@masterteam/properties 0.0.53 → 0.0.54

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/properties",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/properties",
6
6
  "linkDirectory": false,
@@ -19,9 +19,9 @@
19
19
  "tailwindcss": "^4.2.2",
20
20
  "tailwindcss-primeui": "^0.6.1",
21
21
  "@ngxs/store": "^20.1.0",
22
- "@masterteam/components": "^0.0.172",
22
+ "@masterteam/components": "^0.0.173",
23
23
  "@masterteam/forms": "^0.0.79",
24
- "@masterteam/formula-builder": "^0.0.12",
24
+ "@masterteam/formula-builder": "^0.0.13",
25
25
  "@masterteam/icons": "^0.0.15"
26
26
  },
27
27
  "sideEffects": false,
@@ -344,12 +344,19 @@ interface Response<T> {
344
344
  data: T;
345
345
  cacheSession?: string;
346
346
  }
347
+ interface ViewTypeName {
348
+ /** Localized name resolved by the backend for the request locale. */
349
+ display: string;
350
+ ar?: string;
351
+ en?: string;
352
+ }
347
353
  interface CatalogPropertyDto {
348
354
  id: number;
349
355
  key: string;
350
356
  normalizedKey: string;
351
357
  label: string;
352
358
  viewType: string;
359
+ viewTypeName?: ViewTypeName;
353
360
  configuration: Record<string, unknown> | null;
354
361
  source?: string;
355
362
  order?: number;
@@ -505,6 +512,7 @@ declare const REQUEST_CONTEXT: HttpContextToken<{
505
512
 
506
513
  declare class PropertiesList {
507
514
  readonly isCalculatedTpl: _angular_core.Signal<TemplateRef<any>>;
515
+ readonly viewTypeTpl: _angular_core.Signal<TemplateRef<any>>;
508
516
  private readonly facade;
509
517
  private readonly router;
510
518
  private readonly route;
@@ -516,12 +524,27 @@ declare class PropertiesList {
516
524
  value: string;
517
525
  }[]>;
518
526
  activeTab: _angular_core.WritableSignal<string>;
527
+ /**
528
+ * Curated quick-create cards shown in the empty state only. The Type
529
+ * column filter is data-driven (see `viewTypeOptions`) and no longer
530
+ * uses this list.
531
+ */
519
532
  propertyTypes: _angular_core.WritableSignal<{
520
533
  label: string;
521
534
  icon: string;
522
535
  value: string;
523
536
  color: string;
524
537
  }[]>;
538
+ /**
539
+ * Type filter options derived from the loaded properties: option value is
540
+ * the raw `viewType` (so it matches the `viewType` column key) while the
541
+ * label is the localized `viewTypeName` (`viewTypeLabel`). Built from the
542
+ * full list — not the tab-filtered data — so options stay stable per tab.
543
+ */
544
+ readonly viewTypeOptions: _angular_core.Signal<{
545
+ label: string;
546
+ value: string;
547
+ }[]>;
525
548
  readonly tableColumns: _angular_core.WritableSignal<ColumnDef[]>;
526
549
  tableActions: _angular_core.Signal<TableAction[]>;
527
550
  deletingRowIds: _angular_core.WritableSignal<any[]>;