tailjng 0.0.28 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -102,8 +102,8 @@ function getComponentList() {
102
102
  path: "src/lib/components/filter/filter-complete",
103
103
  dependencies: ["select-dropdown", "select-multi-table", "button", "dialog", "checkbox-switch"],
104
104
  },
105
- 'card-complete': {
106
- path: "src/lib/components/card/card-complete",
105
+ 'card-crud-complete': {
106
+ path: "src/lib/components/card/card-crud-complete",
107
107
  dependencies: ["paginator-complete", "filter-complete"],
108
108
  },
109
109
  'menu-options-table': {
@@ -114,6 +114,10 @@ function getComponentList() {
114
114
 
115
115
 
116
116
 
117
+ 'table-crud-complete': {
118
+ path: "src/lib/components/table/table-crud-complete",
119
+ dependencies: ["button", "paginator-complete", "filter-complete", "checkbox-input", "menu-options-table", "dialog", "image-viewer", "select-dropdown", "input"],
120
+ },
117
121
  'table-complete': {
118
122
  path: "src/lib/components/table/table-complete",
119
123
  dependencies: ["button", "paginator-complete", "filter-complete", "checkbox-input", "menu-options-table", "dialog", "image-viewer", "select-dropdown", "input"],
@@ -27,7 +27,7 @@ Authors:
27
27
  License:
28
28
  This project is licensed under the BSD 3-Clause - see the LICENSE file for more details.
29
29
 
30
- Version: 0.0.28
30
+ Version: 0.0.30
31
31
  Creation Date: 2025-01-04
32
32
  ===============================================`
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailjng",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0",
@@ -27,7 +27,7 @@
27
27
  </div>
28
28
  }
29
29
 
30
- @if (!isLoading && text) {
30
+ @if (text) {
31
31
  <span>{{ text }}</span>
32
32
  }
33
33
 
@@ -9,11 +9,11 @@ import { JCompletePaginatorComponent } from '../../paginator/paginator-complete/
9
9
  import { JCompleteFilterComponent } from '../../filter/filter-complete/complete-filter.component';
10
10
 
11
11
  @Component({
12
- selector: 'JCompleteCard',
12
+ selector: 'JCompleteCrudCard',
13
13
  standalone: true,
14
14
  imports: [CommonModule, FormsModule, JCompletePaginatorComponent, JCompleteFilterComponent, LucideAngularModule],
15
- templateUrl: './complete-card.component.html',
16
- styleUrl: './complete-card.component.scss',
15
+ templateUrl: './complete-crud-card.component.html',
16
+ styleUrl: './complete-crud-card.component.scss',
17
17
  animations: [
18
18
  trigger('slideToggle', [
19
19
  state('collapsed', style({
@@ -31,7 +31,7 @@ import { JCompleteFilterComponent } from '../../filter/filter-complete/complete-
31
31
  ])
32
32
  ]
33
33
  })
34
- export class JCompleteCardComponent implements OnInit {
34
+ export class JCompleteCrudCardComponent implements OnInit {
35
35
 
36
36
  Math = Math;
37
37
 
@@ -285,17 +285,9 @@ export class JCompleteCardComponent implements OnInit {
285
285
  // Default column values
286
286
  columnDefaults() {
287
287
  this.columns.forEach(column => {
288
- if (column.visible === undefined) {
289
- column.visible = true;
290
- }
291
-
292
- if (column.sortable === undefined) {
293
- column.sortable = true;
294
- }
295
-
296
- if (column.isSearchable === undefined) {
297
- column.isSearchable = true;
298
- }
288
+ column.visible ??= true;
289
+ column.sortable ??= true;
290
+ column.isSearchable ??= true;
299
291
  });
300
292
  }
301
293