@masterteam/properties 0.0.78 → 0.0.80
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.80",
|
|
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/components": "^0.0.276",
|
|
22
23
|
"@masterteam/formula-builder": "^0.0.30",
|
|
23
|
-
"@masterteam/forms": "^0.0.
|
|
24
|
-
"@masterteam/icons": "^0.0.17"
|
|
25
|
-
"@masterteam/components": "^0.0.274"
|
|
24
|
+
"@masterteam/forms": "^0.0.142",
|
|
25
|
+
"@masterteam/icons": "^0.0.17"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"exports": {
|
|
@@ -231,6 +231,24 @@ interface PropertyPayload {
|
|
|
231
231
|
defaultValue?: any;
|
|
232
232
|
configuration?: Record<string, any> | string | null;
|
|
233
233
|
}
|
|
234
|
+
/** The scope fields a properties catalog request is resolved from. */
|
|
235
|
+
type PropertiesScopeState = Pick<PropertiesStateModel, 'moduleType' | 'moduleId' | 'parentModuleType' | 'parentModuleId'>;
|
|
236
|
+
/**
|
|
237
|
+
* The level the current property scope belongs to, or null on a standalone
|
|
238
|
+
* module screen. On a level/module screen the level is the scope parent; on a
|
|
239
|
+
* level screen it is the scope target itself.
|
|
240
|
+
*/
|
|
241
|
+
declare function resolvePropertiesScopeLevelId(state: PropertiesScopeState): string | null;
|
|
242
|
+
/**
|
|
243
|
+
* Source-field catalog URL for a configuration picker (Record List, module
|
|
244
|
+
* check list).
|
|
245
|
+
*
|
|
246
|
+
* The root `Properties/Module/{id}` route returns only the source module own
|
|
247
|
+
* properties. When the property is authored inside a level, the picker must
|
|
248
|
+
* offer the level-effective catalog instead — otherwise properties configured
|
|
249
|
+
* on that level are missing from it.
|
|
250
|
+
*/
|
|
251
|
+
declare function buildPropertiesCatalogUrl(baseUrl: string, state: PropertiesScopeState, moduleType: string, moduleId: string | number): string;
|
|
234
252
|
|
|
235
253
|
declare class GetProperties {
|
|
236
254
|
readonly params?: PropertiesQueryParams | undefined;
|
|
@@ -403,11 +421,17 @@ declare class PropertiesState extends CrudStateBase<PropertyItem, PropertiesStat
|
|
|
403
421
|
static moduleId(state: PropertiesStateModel): string | number | null;
|
|
404
422
|
static parentModuleId(state: PropertiesStateModel): string | number | null;
|
|
405
423
|
/**
|
|
406
|
-
* Canonical
|
|
407
|
-
*
|
|
408
|
-
*
|
|
409
|
-
*
|
|
410
|
-
*
|
|
424
|
+
* Canonical context key for the current scope, in the same format used for
|
|
425
|
+
* the catalog request: `Level:5/Module:10` (module under a level), `Level:5`
|
|
426
|
+
* (level), or `Module:10` (standalone module). Returns null when no scope is
|
|
427
|
+
* set. Callers use it to tell which scope a loaded catalog belongs to, so a
|
|
428
|
+
* catalog fetched for another level/module is never reused.
|
|
429
|
+
*/
|
|
430
|
+
static scopeContextKey(state: PropertiesStateModel): string | null;
|
|
431
|
+
/**
|
|
432
|
+
* The formula builder addresses the current scope by that same key, so a
|
|
433
|
+
* standalone module reads as `Module:{id}` instead of being mistaken for a
|
|
434
|
+
* level.
|
|
411
435
|
*/
|
|
412
436
|
static formulaContextKey(state: PropertiesStateModel): string | null;
|
|
413
437
|
static lookups(state: PropertiesStateModel): LookupDefinition[];
|
|
@@ -466,6 +490,7 @@ declare class PropertiesFacade {
|
|
|
466
490
|
readonly moduleId: _angular_core.Signal<string | number | null>;
|
|
467
491
|
readonly parentModuleId: _angular_core.Signal<string | number | null>;
|
|
468
492
|
readonly formulaContextKey: _angular_core.Signal<string | null>;
|
|
493
|
+
readonly scopeContextKey: _angular_core.Signal<string | null>;
|
|
469
494
|
readonly lookups: _angular_core.Signal<_masterteam_properties.LookupDefinition[]>;
|
|
470
495
|
readonly configProperties: _angular_core.Signal<_masterteam_properties.PropertyItem[]>;
|
|
471
496
|
readonly groups: _angular_core.Signal<_masterteam_properties.GroupDefinition[]>;
|
|
@@ -700,5 +725,5 @@ declare class PropertyForm implements OnDestroy {
|
|
|
700
725
|
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>;
|
|
701
726
|
}
|
|
702
727
|
|
|
703
|
-
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 };
|
|
704
|
-
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 };
|
|
728
|
+
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, buildPropertiesCatalogUrl, buildPropertiesScopeContextKey, resolvePropertiesScopeLevelId };
|
|
729
|
+
export type { ApiConfigurationValue, ApiPropertyOption, ApiSchema, ApiSchemaProperty, ApiTestPayload, ApiTestResponse, ConfigScope, CountryDefinition, GroupDefinition, LogDefinition, LookupDefinition, LookupDefinitionItem, PropertiesLoadingName, PropertiesQueryParams, PropertiesScope, PropertiesScopeId, PropertiesScopeState, PropertiesScopeTarget, PropertiesStateModel, PropertyItem, PropertyPayload, PropertyStatusItem, PropertyStatusOrderPayload, PropertyStatusPayload };
|