@masterteam/properties 0.0.52 → 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.
|
|
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.
|
|
23
|
-
"@masterteam/forms": "^0.0.
|
|
24
|
-
"@masterteam/formula-builder": "^0.0.
|
|
22
|
+
"@masterteam/components": "^0.0.173",
|
|
23
|
+
"@masterteam/forms": "^0.0.79",
|
|
24
|
+
"@masterteam/formula-builder": "^0.0.13",
|
|
25
25
|
"@masterteam/icons": "^0.0.15"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
@@ -31,6 +31,7 @@ interface PropertyItem {
|
|
|
31
31
|
displayOverView?: boolean;
|
|
32
32
|
enabled?: boolean;
|
|
33
33
|
formula?: FormulaBuilderValue | null;
|
|
34
|
+
addToForm?: boolean;
|
|
34
35
|
isBasic?: boolean;
|
|
35
36
|
isCalculated?: boolean;
|
|
36
37
|
isConfigurable?: boolean;
|
|
@@ -204,6 +205,7 @@ interface PropertiesQueryParams {
|
|
|
204
205
|
interface PropertyPayload {
|
|
205
206
|
viewType: string;
|
|
206
207
|
isCalculated: boolean;
|
|
208
|
+
addToForm?: boolean;
|
|
207
209
|
formula?: FormulaBuilderValue | null;
|
|
208
210
|
name: Record<string, string>;
|
|
209
211
|
description?: Record<string, string>;
|
|
@@ -342,12 +344,19 @@ interface Response<T> {
|
|
|
342
344
|
data: T;
|
|
343
345
|
cacheSession?: string;
|
|
344
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
|
+
}
|
|
345
353
|
interface CatalogPropertyDto {
|
|
346
354
|
id: number;
|
|
347
355
|
key: string;
|
|
348
356
|
normalizedKey: string;
|
|
349
357
|
label: string;
|
|
350
358
|
viewType: string;
|
|
359
|
+
viewTypeName?: ViewTypeName;
|
|
351
360
|
configuration: Record<string, unknown> | null;
|
|
352
361
|
source?: string;
|
|
353
362
|
order?: number;
|
|
@@ -503,6 +512,7 @@ declare const REQUEST_CONTEXT: HttpContextToken<{
|
|
|
503
512
|
|
|
504
513
|
declare class PropertiesList {
|
|
505
514
|
readonly isCalculatedTpl: _angular_core.Signal<TemplateRef<any>>;
|
|
515
|
+
readonly viewTypeTpl: _angular_core.Signal<TemplateRef<any>>;
|
|
506
516
|
private readonly facade;
|
|
507
517
|
private readonly router;
|
|
508
518
|
private readonly route;
|
|
@@ -514,12 +524,27 @@ declare class PropertiesList {
|
|
|
514
524
|
value: string;
|
|
515
525
|
}[]>;
|
|
516
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
|
+
*/
|
|
517
532
|
propertyTypes: _angular_core.WritableSignal<{
|
|
518
533
|
label: string;
|
|
519
534
|
icon: string;
|
|
520
535
|
value: string;
|
|
521
536
|
color: string;
|
|
522
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
|
+
}[]>;
|
|
523
548
|
readonly tableColumns: _angular_core.WritableSignal<ColumnDef[]>;
|
|
524
549
|
tableActions: _angular_core.Signal<TableAction[]>;
|
|
525
550
|
deletingRowIds: _angular_core.WritableSignal<any[]>;
|
|
@@ -543,6 +568,7 @@ declare class PropertyForm implements OnDestroy {
|
|
|
543
568
|
private readonly router;
|
|
544
569
|
private readonly route;
|
|
545
570
|
private readonly transloco;
|
|
571
|
+
private readonly confirmationService;
|
|
546
572
|
private readonly activeLang;
|
|
547
573
|
propertyId: _angular_core.InputSignal<string>;
|
|
548
574
|
private readonly propertyTypes;
|
|
@@ -597,7 +623,8 @@ declare class PropertyForm implements OnDestroy {
|
|
|
597
623
|
private resolveConfigurationComponent;
|
|
598
624
|
private applyConfigurationComponentResult;
|
|
599
625
|
private resolveSchemaId;
|
|
600
|
-
createOrEditProperty(): void;
|
|
626
|
+
createOrEditProperty(event?: Event): void;
|
|
627
|
+
private submitProperty;
|
|
601
628
|
private syncFormWithSelectedProperty;
|
|
602
629
|
goBack(): void;
|
|
603
630
|
private handleStatusPropertySave;
|