@masterteam/properties 0.0.69 → 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.69",
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/components": "^0.0.227",
23
- "@masterteam/formula-builder": "^0.0.27",
24
22
  "@masterteam/icons": "^0.0.17",
25
- "@masterteam/forms": "^0.0.116"
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;
@@ -496,6 +514,7 @@ declare class PropertiesFacade {
496
514
  create(payload: PropertyPayload): Observable<unknown>;
497
515
  update(id: string | number, payload: PropertyPayload): Observable<unknown>;
498
516
  setModuleInfo(moduleType: string, moduleId: string | number, parentModuleType?: string, parentModuleId?: string | number, parentPath?: string): Observable<unknown>;
517
+ setScope(scope: PropertiesScope): Observable<unknown>;
499
518
  loadLookups(): Observable<unknown>;
500
519
  loadGroups(): Observable<unknown>;
501
520
  loadConfigAsType(viewType: string): Observable<unknown>;
@@ -584,6 +603,7 @@ declare class PropertyForm implements OnDestroy {
584
603
  private readonly confirmationService;
585
604
  private readonly activeLang;
586
605
  propertyId: _angular_core.InputSignal<string>;
606
+ readonly scope: _angular_core.InputSignal<PropertiesScope | null>;
587
607
  private readonly propertyTypes;
588
608
  private readonly legacyReplacedViewTypes;
589
609
  private readonly calculatedToggleViewTypes;
@@ -652,8 +672,8 @@ declare class PropertyForm implements OnDestroy {
652
672
  private scrollToStatusConfiguration;
653
673
  ngOnDestroy(): void;
654
674
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropertyForm, never>;
655
- 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>;
656
676
  }
657
677
 
658
- 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 };
659
- 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 };