@masterteam/properties 0.0.68 → 0.0.69

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.68",
3
+ "version": "0.0.69",
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.221",
23
- "@masterteam/forms": "^0.0.111",
24
- "@masterteam/formula-builder": "^0.0.23",
25
- "@masterteam/icons": "^0.0.17"
22
+ "@masterteam/components": "^0.0.227",
23
+ "@masterteam/formula-builder": "^0.0.27",
24
+ "@masterteam/icons": "^0.0.17",
25
+ "@masterteam/forms": "^0.0.116"
26
26
  },
27
27
  "sideEffects": false,
28
28
  "exports": {
@@ -384,6 +384,14 @@ declare class PropertiesState extends CrudStateBase<PropertyItem, PropertiesStat
384
384
  static selectedProperty(state: PropertiesStateModel): PropertyItem | null;
385
385
  static moduleId(state: PropertiesStateModel): string | number | null;
386
386
  static parentModuleId(state: PropertiesStateModel): string | number | null;
387
+ /**
388
+ * Canonical formula-builder context key for the current scope, in the same
389
+ * format used for the catalog request: `Level:5/Module:10` (module under a
390
+ * level), `Level:5` (level), or `Module:10` (standalone module). Returns
391
+ * null when no scope is set. This lets the formula builder address a
392
+ * standalone module as `Module:{id}` instead of mistaking it for a level.
393
+ */
394
+ static formulaContextKey(state: PropertiesStateModel): string | null;
387
395
  static lookups(state: PropertiesStateModel): LookupDefinition[];
388
396
  static configTypeProperties(state: PropertiesStateModel): PropertyItem[];
389
397
  static groups(state: PropertiesStateModel): GroupDefinition[];
@@ -439,6 +447,7 @@ declare class PropertiesFacade {
439
447
  readonly selected: _angular_core.Signal<_masterteam_properties.PropertyItem | null>;
440
448
  readonly moduleId: _angular_core.Signal<string | number | null>;
441
449
  readonly parentModuleId: _angular_core.Signal<string | number | null>;
450
+ readonly formulaContextKey: _angular_core.Signal<string | null>;
442
451
  readonly lookups: _angular_core.Signal<_masterteam_properties.LookupDefinition[]>;
443
452
  readonly configProperties: _angular_core.Signal<_masterteam_properties.PropertyItem[]>;
444
453
  readonly groups: _angular_core.Signal<_masterteam_properties.GroupDefinition[]>;
@@ -597,6 +606,13 @@ declare class PropertyForm implements OnDestroy {
597
606
  readonly propertyType: _angular_core.Signal<any>;
598
607
  readonly isCalculated: _angular_core.Signal<boolean>;
599
608
  readonly hideFormulaBuilder: _angular_core.Signal<boolean>;
609
+ /**
610
+ * Canonical context key (`Level:5/Module:10` | `Level:5` | `Module:10`) the
611
+ * formula builder uses as the source of truth for the context kind — so a
612
+ * standalone module is addressed as `Module:{id}` rather than mistaken for a
613
+ * level. Undefined when no scope is set.
614
+ */
615
+ readonly formulaContextKey: _angular_core.Signal<string | undefined>;
600
616
  readonly formulaSchemaId: _angular_core.Signal<number | undefined>;
601
617
  readonly formulaModuleId: _angular_core.Signal<number | undefined>;
602
618
  readonly selectedViewType: _angular_core.Signal<any>;