@masterteam/properties 0.0.68 → 0.0.70
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.70",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/properties",
|
|
6
6
|
"linkDirectory": false,
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"tailwindcss": "^4.2.2",
|
|
20
20
|
"tailwindcss-primeui": "^0.6.1",
|
|
21
21
|
"@ngxs/store": "^20.1.0",
|
|
22
|
-
"@masterteam/
|
|
23
|
-
"@masterteam/
|
|
24
|
-
"@masterteam/
|
|
25
|
-
"@masterteam/
|
|
22
|
+
"@masterteam/icons": "^0.0.17",
|
|
23
|
+
"@masterteam/components": "^0.0.225",
|
|
24
|
+
"@masterteam/forms": "^0.0.114",
|
|
25
|
+
"@masterteam/formula-builder": "^0.0.25"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"exports": {
|
|
@@ -17,6 +17,24 @@ interface LoadingStateShape<L extends string = string> {
|
|
|
17
17
|
errors: Partial<Record<L, string>>;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
type PropertiesScopeId = string | number;
|
|
21
|
+
interface PropertiesScopeTarget {
|
|
22
|
+
type: string;
|
|
23
|
+
id: PropertiesScopeId;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Identifies the effective scope in which properties are being managed.
|
|
27
|
+
*
|
|
28
|
+
* A module nested under a level uses the module as `target` and the level as
|
|
29
|
+
* `parent`. Keeping the route vocabulary out of this contract lets hosts map
|
|
30
|
+
* any URL shape to the same package API.
|
|
31
|
+
*/
|
|
32
|
+
interface PropertiesScope {
|
|
33
|
+
target: PropertiesScopeTarget;
|
|
34
|
+
parent?: PropertiesScopeTarget;
|
|
35
|
+
parentPath?: string;
|
|
36
|
+
}
|
|
37
|
+
declare function buildPropertiesScopeContextKey(scope: PropertiesScope): string;
|
|
20
38
|
interface PropertyItem {
|
|
21
39
|
id: number;
|
|
22
40
|
key: string;
|
|
@@ -384,6 +402,14 @@ declare class PropertiesState extends CrudStateBase<PropertyItem, PropertiesStat
|
|
|
384
402
|
static selectedProperty(state: PropertiesStateModel): PropertyItem | null;
|
|
385
403
|
static moduleId(state: PropertiesStateModel): string | number | null;
|
|
386
404
|
static parentModuleId(state: PropertiesStateModel): string | number | null;
|
|
405
|
+
/**
|
|
406
|
+
* Canonical formula-builder context key for the current scope, in the same
|
|
407
|
+
* format used for the catalog request: `Level:5/Module:10` (module under a
|
|
408
|
+
* level), `Level:5` (level), or `Module:10` (standalone module). Returns
|
|
409
|
+
* null when no scope is set. This lets the formula builder address a
|
|
410
|
+
* standalone module as `Module:{id}` instead of mistaking it for a level.
|
|
411
|
+
*/
|
|
412
|
+
static formulaContextKey(state: PropertiesStateModel): string | null;
|
|
387
413
|
static lookups(state: PropertiesStateModel): LookupDefinition[];
|
|
388
414
|
static configTypeProperties(state: PropertiesStateModel): PropertyItem[];
|
|
389
415
|
static groups(state: PropertiesStateModel): GroupDefinition[];
|
|
@@ -439,6 +465,7 @@ declare class PropertiesFacade {
|
|
|
439
465
|
readonly selected: _angular_core.Signal<_masterteam_properties.PropertyItem | null>;
|
|
440
466
|
readonly moduleId: _angular_core.Signal<string | number | null>;
|
|
441
467
|
readonly parentModuleId: _angular_core.Signal<string | number | null>;
|
|
468
|
+
readonly formulaContextKey: _angular_core.Signal<string | null>;
|
|
442
469
|
readonly lookups: _angular_core.Signal<_masterteam_properties.LookupDefinition[]>;
|
|
443
470
|
readonly configProperties: _angular_core.Signal<_masterteam_properties.PropertyItem[]>;
|
|
444
471
|
readonly groups: _angular_core.Signal<_masterteam_properties.GroupDefinition[]>;
|
|
@@ -487,6 +514,7 @@ declare class PropertiesFacade {
|
|
|
487
514
|
create(payload: PropertyPayload): Observable<unknown>;
|
|
488
515
|
update(id: string | number, payload: PropertyPayload): Observable<unknown>;
|
|
489
516
|
setModuleInfo(moduleType: string, moduleId: string | number, parentModuleType?: string, parentModuleId?: string | number, parentPath?: string): Observable<unknown>;
|
|
517
|
+
setScope(scope: PropertiesScope): Observable<unknown>;
|
|
490
518
|
loadLookups(): Observable<unknown>;
|
|
491
519
|
loadGroups(): Observable<unknown>;
|
|
492
520
|
loadConfigAsType(viewType: string): Observable<unknown>;
|
|
@@ -575,6 +603,7 @@ declare class PropertyForm implements OnDestroy {
|
|
|
575
603
|
private readonly confirmationService;
|
|
576
604
|
private readonly activeLang;
|
|
577
605
|
propertyId: _angular_core.InputSignal<string>;
|
|
606
|
+
readonly scope: _angular_core.InputSignal<PropertiesScope | null>;
|
|
578
607
|
private readonly propertyTypes;
|
|
579
608
|
private readonly legacyReplacedViewTypes;
|
|
580
609
|
private readonly calculatedToggleViewTypes;
|
|
@@ -597,6 +626,13 @@ declare class PropertyForm implements OnDestroy {
|
|
|
597
626
|
readonly propertyType: _angular_core.Signal<any>;
|
|
598
627
|
readonly isCalculated: _angular_core.Signal<boolean>;
|
|
599
628
|
readonly hideFormulaBuilder: _angular_core.Signal<boolean>;
|
|
629
|
+
/**
|
|
630
|
+
* Canonical context key (`Level:5/Module:10` | `Level:5` | `Module:10`) the
|
|
631
|
+
* formula builder uses as the source of truth for the context kind — so a
|
|
632
|
+
* standalone module is addressed as `Module:{id}` rather than mistaken for a
|
|
633
|
+
* level. Undefined when no scope is set.
|
|
634
|
+
*/
|
|
635
|
+
readonly formulaContextKey: _angular_core.Signal<string | undefined>;
|
|
600
636
|
readonly formulaSchemaId: _angular_core.Signal<number | undefined>;
|
|
601
637
|
readonly formulaModuleId: _angular_core.Signal<number | undefined>;
|
|
602
638
|
readonly selectedViewType: _angular_core.Signal<any>;
|
|
@@ -636,8 +672,8 @@ declare class PropertyForm implements OnDestroy {
|
|
|
636
672
|
private scrollToStatusConfiguration;
|
|
637
673
|
ngOnDestroy(): void;
|
|
638
674
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropertyForm, never>;
|
|
639
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PropertyForm, "mt-property-form", never, { "propertyId": { "alias": "propertyId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
675
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PropertyForm, "mt-property-form", never, { "propertyId": { "alias": "propertyId"; "required": false; "isSignal": true; }; "scope": { "alias": "scope"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
640
676
|
}
|
|
641
677
|
|
|
642
|
-
export { CreateProperty, CreatePropertyStatus, DeleteProperty, DeletePropertyStatus, GetConfigAsType, GetCountries, GetGroups, GetLookups, GetProperties, GetPropertiesForConfigType, GetProperty, GetPropertyStatuses, PropertiesActionKey, PropertiesFacade, PropertiesList, PropertiesState, PropertyForm, REQUEST_CONTEXT, ReorderPropertyStatuses, ResetApiConfiguration, ResetConfigProperties, ResetConfigScopes, ResetPropertyStatuses, ResetSelectedProperty, SetBreadcrumb, SetDefaultViewType, SetPropertiesModuleInfo, SetPropertyTypes, TestApiConfiguration, UpdateProperty, UpdatePropertyStatus };
|
|
643
|
-
export type { ApiConfigurationValue, ApiPropertyOption, ApiSchema, ApiSchemaProperty, ApiTestPayload, ApiTestResponse, ConfigScope, CountryDefinition, GroupDefinition, LogDefinition, LookupDefinition, LookupDefinitionItem, PropertiesLoadingName, PropertiesQueryParams, PropertiesStateModel, PropertyItem, PropertyPayload, PropertyStatusItem, PropertyStatusOrderPayload, PropertyStatusPayload };
|
|
678
|
+
export { CreateProperty, CreatePropertyStatus, DeleteProperty, DeletePropertyStatus, GetConfigAsType, GetCountries, GetGroups, GetLookups, GetProperties, GetPropertiesForConfigType, GetProperty, GetPropertyStatuses, PropertiesActionKey, PropertiesFacade, PropertiesList, PropertiesState, PropertyForm, REQUEST_CONTEXT, ReorderPropertyStatuses, ResetApiConfiguration, ResetConfigProperties, ResetConfigScopes, ResetPropertyStatuses, ResetSelectedProperty, SetBreadcrumb, SetDefaultViewType, SetPropertiesModuleInfo, SetPropertyTypes, TestApiConfiguration, UpdateProperty, UpdatePropertyStatus, buildPropertiesScopeContextKey };
|
|
679
|
+
export type { ApiConfigurationValue, ApiPropertyOption, ApiSchema, ApiSchemaProperty, ApiTestPayload, ApiTestResponse, ConfigScope, CountryDefinition, GroupDefinition, LogDefinition, LookupDefinition, LookupDefinitionItem, PropertiesLoadingName, PropertiesQueryParams, PropertiesScope, PropertiesScopeId, PropertiesScopeTarget, PropertiesStateModel, PropertyItem, PropertyPayload, PropertyStatusItem, PropertyStatusOrderPayload, PropertyStatusPayload };
|