Skip to content

Commit 22adcfb

Browse files
authored
fix: add schematics check on undefined on falsy
* fix: headTr correct name and readme update * fix: add schematics check on undefined on falsy
1 parent 0bd8f02 commit 22adcfb

File tree

6 files changed

+5
-24
lines changed

6 files changed

+5
-24
lines changed

README.md

-14
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,6 @@ coming—stay tuned!
1515
<img src="logo.png" alt="Logo" width="200px" />
1616
</p>
1717

18-
## Usage
19-
20-
### Installation
21-
22-
```bash
23-
ng add ngverse
24-
```
25-
26-
### Generate Elements
27-
28-
```bash
29-
ng g ngverse:element button
30-
```
31-
3218
## Creators
3319

3420
| | |

projects/docs/src/app/examples/table/show-case-table/show-case-table.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { TableDirective } from '@/ui/table/table.directive';
66
import { SortChangeType } from '@/ui/table/table.types';
77
import { TdDirective } from '@/ui/table/td.directive';
88
import { ThDirective } from '@/ui/table/th.directive';
9-
import { HeadTrDirective } from '@/ui/table/tr-head.directive';
9+
import { TrHeadDirective } from '@/ui/table/tr-head.directive';
1010
import { TrDirective } from '@/ui/table/tr.directive';
1111
import {
1212
ChangeDetectionStrategy,
@@ -65,7 +65,7 @@ const ELEMENT_DATA = generatePeriodicElements();
6565
TrDirective,
6666
TdDirective,
6767
ThDirective,
68-
HeadTrDirective,
68+
TrHeadDirective,
6969
TableLayoutComponent,
7070
SortHeaderComponent,
7171
SortDirective,

projects/docs/src/app/features/home-page/home-page.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h2 class="text-center text-xl leading-normal font-medium capitalize">
3232
</div>
3333
</h2>
3434
<div class="mt-6 flex items-center justify-center gap-2">
35-
<a [routerLink]="['/doc']">
35+
<a [routerLink]="['/doc/introduction']">
3636
<button appButton color="primary" class="h-14 w-40" size="none">
3737
Get Started
3838
</button>

projects/docs/src/tree-structure.json

-5
Original file line numberDiff line numberDiff line change
@@ -893,11 +893,6 @@
893893
"name": "option.component.ts",
894894
"language": "ts"
895895
},
896-
{
897-
"path": "select/select-label.directive.spec.ts",
898-
"name": "select-label.directive.spec.ts",
899-
"language": "spec.ts"
900-
},
901896
{
902897
"path": "select/select-label.directive.ts",
903898
"name": "select-label.directive.ts",

projects/ngverse/schematics/add/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function add(options: Schema) {
5656
}
5757
let content = host.read(filePath)?.toString('utf-8');
5858

59-
if (content) {
59+
if (content !== undefined) {
6060
if (!prefixIsDefault(prefix)) {
6161
content = updatePrefix(content, prefix);
6262
}

projects/ngverse/src/lib/table/tr-head.directive.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ import { booleanAttribute, Directive, input } from '@angular/core';
99
'[class.z-1]': 'sticky()',
1010
},
1111
})
12-
export class HeadTrDirective {
12+
export class TrHeadDirective {
1313
sticky = input(false, { transform: booleanAttribute });
1414
}

0 commit comments

Comments
 (0)