Skip to content

Commit

Permalink
Merge pull request #139 from Rikarin/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
Rikarin authored Jun 6, 2024
2 parents 602f79b + af9faec commit e46e086
Show file tree
Hide file tree
Showing 21 changed files with 327 additions and 157 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/app/docs/components/example/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</xui-tab-group>

<div *ngIf="files || todo" class="menu">
<div *ngIf="todo" class="todo">TODO</div>
<div *ngIf="todo()" class="todo">TODO</div>
@if (files) {
<xui-icon (click)="openProject()" xuiTooltip="Edit in StackBlitz" icon="open_in_new"></xui-icon>
}
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/app/docs/components/example/example.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChangeDetectionStrategy, Component, Inject, Input, OnInit } from '@angular/core';
import { InputBoolean, XuiCard, XuiCardModule, XuiIcon, XuiTabModule, XuiTooltipModule } from '@xui/components';
import { ChangeDetectionStrategy, Component, Inject, input, Input, OnInit } from '@angular/core';
import { convertToBoolean, XuiCardModule, XuiIcon, XuiTabModule, XuiTooltipModule } from '@xui/components';
import sdk, { Project, ProjectFiles } from '@stackblitz/sdk';
import { HttpClient } from '@angular/common/http';
import { BehaviorSubject, lastValueFrom } from 'rxjs';
Expand Down Expand Up @@ -32,7 +32,7 @@ export class Example implements OnInit {
content$ = new BehaviorSubject<File[]>([]);

@Input() files: { [name: string]: FileType } = {};
@Input() @InputBoolean() todo = false;
todo = input(false, { transform: (v: string | boolean) => convertToBoolean(v) });

get project(): Project {
return <Project>{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ <h4>Theming</h4>
<pre>Components can be themed by setting SCSS variables similar to Material Design</pre>

<pre>
<code [highlight]="code" language="scss"></code>
<code lineNumbers="true" [highlight]="code" language="scss"></code>
</pre>

<app-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import { STYLE_SCSS } from '../../../../templates/angular';
import { HighlightModule } from 'ngx-highlightjs';
import { Example } from '../example';
import { XuiTooltipModule } from '@xui/components';
import { HighlightLineNumbers } from 'ngx-highlightjs/line-numbers';

@Component({
standalone: true,
imports: [HighlightModule, Example, XuiTooltipModule],
imports: [HighlightModule, HighlightLineNumbers, Example, XuiTooltipModule],
selector: 'app-theming',
templateUrl: './theming.component.html',
styleUrls: ['./theming.component.scss']
Expand Down
Loading

0 comments on commit e46e086

Please sign in to comment.