@masterteam/properties 0.0.53 → 0.0.55

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.55",
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",
23
- "@masterteam/forms": "^0.0.79",
24
- "@masterteam/formula-builder": "^0.0.12",
22
+ "@masterteam/components": "^0.0.176",
23
+ "@masterteam/formula-builder": "^0.0.14",
24
+ "@masterteam/forms": "^0.0.81",
25
25
  "@masterteam/icons": "^0.0.15"
26
26
  },
27
27
  "sideEffects": false,
@@ -205,6 +205,7 @@ interface PropertiesQueryParams {
205
205
  interface PropertyPayload {
206
206
  viewType: string;
207
207
  isCalculated: boolean;
208
+ isTranslatable?: boolean;
208
209
  addToForm?: boolean;
209
210
  formula?: FormulaBuilderValue | null;
210
211
  name: Record<string, string>;
@@ -344,16 +345,24 @@ interface Response<T> {
344
345
  data: T;
345
346
  cacheSession?: string;
346
347
  }
348
+ interface ViewTypeName {
349
+ /** Localized name resolved by the backend for the request locale. */
350
+ display: string;
351
+ ar?: string;
352
+ en?: string;
353
+ }
347
354
  interface CatalogPropertyDto {
348
355
  id: number;
349
356
  key: string;
350
357
  normalizedKey: string;
351
358
  label: string;
352
359
  viewType: string;
360
+ viewTypeName?: ViewTypeName;
353
361
  configuration: Record<string, unknown> | null;
354
362
  source?: string;
355
363
  order?: number;
356
364
  isCalculated?: boolean;
365
+ isTranslatable?: boolean;
357
366
  isRequired?: boolean;
358
367
  isSystem?: boolean;
359
368
  }
@@ -505,6 +514,7 @@ declare const REQUEST_CONTEXT: HttpContextToken<{
505
514
 
506
515
  declare class PropertiesList {
507
516
  readonly isCalculatedTpl: _angular_core.Signal<TemplateRef<any>>;
517
+ readonly viewTypeTpl: _angular_core.Signal<TemplateRef<any>>;
508
518
  private readonly facade;
509
519
  private readonly router;
510
520
  private readonly route;
@@ -516,12 +526,27 @@ declare class PropertiesList {
516
526
  value: string;
517
527
  }[]>;
518
528
  activeTab: _angular_core.WritableSignal<string>;
529
+ /**
530
+ * Curated quick-create cards shown in the empty state only. The Type
531
+ * column filter is data-driven (see `viewTypeOptions`) and no longer
532
+ * uses this list.
533
+ */
519
534
  propertyTypes: _angular_core.WritableSignal<{
520
535
  label: string;
521
536
  icon: string;
522
537
  value: string;
523
538
  color: string;
524
539
  }[]>;
540
+ /**
541
+ * Type filter options derived from the loaded properties: option value is
542
+ * the raw `viewType` (so it matches the `viewType` column key) while the
543
+ * label is the localized `viewTypeName` (`viewTypeLabel`). Built from the
544
+ * full list — not the tab-filtered data — so options stay stable per tab.
545
+ */
546
+ readonly viewTypeOptions: _angular_core.Signal<{
547
+ label: string;
548
+ value: string;
549
+ }[]>;
525
550
  readonly tableColumns: _angular_core.WritableSignal<ColumnDef[]>;
526
551
  tableActions: _angular_core.Signal<TableAction[]>;
527
552
  deletingRowIds: _angular_core.WritableSignal<any[]>;
@@ -551,6 +576,7 @@ declare class PropertyForm implements OnDestroy {
551
576
  private readonly propertyTypes;
552
577
  private readonly legacyReplacedViewTypes;
553
578
  private readonly calculatedToggleViewTypes;
579
+ private readonly translatableToggleViewTypes;
554
580
  submitLabel: _angular_core.Signal<string>;
555
581
  isEditing: _angular_core.Signal<boolean>;
556
582
  readonly propertyForm: FormGroup<{