@masterteam/properties 0.0.71 → 0.0.72

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.71",
3
+ "version": "0.0.72",
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.228",
23
- "@masterteam/forms": "^0.0.117",
22
+ "@masterteam/icons": "^0.0.17",
24
23
  "@masterteam/formula-builder": "^0.0.27",
25
- "@masterteam/icons": "^0.0.17"
24
+ "@masterteam/forms": "^0.0.127",
25
+ "@masterteam/components": "^0.0.239"
26
26
  },
27
27
  "sideEffects": false,
28
28
  "exports": {
@@ -607,6 +607,14 @@ declare class PropertyForm implements OnDestroy {
607
607
  private readonly propertyTypes;
608
608
  private readonly legacyReplacedViewTypes;
609
609
  private readonly calculatedToggleViewTypes;
610
+ /**
611
+ * View types whose value is always produced by a formula — the backend owns
612
+ * the value and nothing in the runtime writes it back. The Calculated toggle
613
+ * is still rendered (it is what reveals the formula card) but is pinned on
614
+ * and locked: authoring the formula is the only thing left to the user, on
615
+ * create and on edit alike, whether or not the property is a system one.
616
+ */
617
+ private readonly alwaysCalculatedViewTypes;
610
618
  private readonly translatableToggleViewTypes;
611
619
  submitLabel: _angular_core.Signal<string>;
612
620
  isEditing: _angular_core.Signal<boolean>;
@@ -624,6 +632,15 @@ declare class PropertyForm implements OnDestroy {
624
632
  readonly loading: _angular_core.Signal<boolean>;
625
633
  readonly submitting: _angular_core.Signal<boolean>;
626
634
  readonly propertyType: _angular_core.Signal<any>;
635
+ /** True while the selected view type is calculated by definition. */
636
+ readonly isAlwaysCalculatedType: _angular_core.Signal<boolean>;
637
+ /**
638
+ * Keys DynamicForm must lock in the "main" form. `forcedDisabledFieldKeys`
639
+ * (rather than a `disabled` field config) is what keeps the pinned `true`
640
+ * intact — a field disabled by config is treated as a normal disable and has
641
+ * its value reset, a forced-disabled one is treated as a context lock.
642
+ */
643
+ readonly lockedMainFieldKeys: _angular_core.Signal<string[]>;
627
644
  readonly isCalculated: _angular_core.Signal<boolean>;
628
645
  readonly hideFormulaBuilder: _angular_core.Signal<boolean>;
629
646
  /**
@@ -665,6 +682,14 @@ declare class PropertyForm implements OnDestroy {
665
682
  private applyConfigurationComponentResult;
666
683
  private resolveSchemaId;
667
684
  createOrEditProperty(event?: Event): void;
685
+ /**
686
+ * The flag to persist for the given view type:
687
+ * - always-calculated types are `true` regardless of what the form holds;
688
+ * - types that render the toggle use the toggle's value;
689
+ * - for the rest the toggle is hidden, and DynamicForm clears hidden field
690
+ * values, so the loaded property's backend-managed flag is preserved.
691
+ */
692
+ private resolveIsCalculated;
668
693
  private submitProperty;
669
694
  private syncFormWithSelectedProperty;
670
695
  goBack(): void;