@masterteam/properties 0.0.28 → 0.0.29

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.28",
3
+ "version": "0.0.29",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/properties",
6
6
  "linkDirectory": false,
@@ -19,8 +19,9 @@
19
19
  "tailwindcss": "^4.1.17",
20
20
  "tailwindcss-primeui": "^0.6.1",
21
21
  "@ngxs/store": "^20.1.0",
22
- "@masterteam/components": "^0.0.79",
23
22
  "@masterteam/forms": "^0.0.34",
23
+ "@masterteam/formula-builder": "^0.0.1",
24
+ "@masterteam/components": "^0.0.81",
24
25
  "@masterteam/icons": "^0.0.12"
25
26
  },
26
27
  "sideEffects": false,
@@ -3,6 +3,7 @@ import { BreadcrumbItem } from '@masterteam/components/breadcrumb';
3
3
  import * as _angular_core from '@angular/core';
4
4
  import { OnDestroy } from '@angular/core';
5
5
  import { ColumnDef, TableAction } from '@masterteam/components/table';
6
+ import { FormulaBuilderValue } from '@masterteam/formula-builder';
6
7
  import { DynamicFormConfig } from '@masterteam/components';
7
8
  import { FormGroup, FormControl } from '@angular/forms';
8
9
  import * as rxjs from 'rxjs';
@@ -28,7 +29,7 @@ interface PropertyItem {
28
29
  canBeDeleted?: boolean;
29
30
  displayOverView?: boolean;
30
31
  enabled?: boolean;
31
- formula?: unknown[];
32
+ formula?: FormulaBuilderValue | null;
32
33
  isBasic?: boolean;
33
34
  isCalculated?: boolean;
34
35
  isConfigurable?: boolean;
@@ -151,6 +152,7 @@ interface PropertiesQueryParams {
151
152
  interface PropertyPayload {
152
153
  viewType: string;
153
154
  isCalculated: boolean;
155
+ formula?: FormulaBuilderValue | null;
154
156
  name: Record<string, string>;
155
157
  description?: string;
156
158
  defaultValue?: any;
@@ -268,6 +270,8 @@ declare class PropertiesState {
268
270
  private readonly apiDetectUrl;
269
271
  static properties(state: PropertiesStateModel): PropertyItem[];
270
272
  static selectedProperty(state: PropertiesStateModel): PropertyItem | null;
273
+ static moduleId(state: PropertiesStateModel): string | number | null;
274
+ static parentModuleId(state: PropertiesStateModel): string | number | null;
271
275
  static lookups(state: PropertiesStateModel): LookupDefinition[];
272
276
  static configTypeProperties(state: PropertiesStateModel): PropertyItem[];
273
277
  static groups(state: PropertiesStateModel): GroupDefinition[];
@@ -310,6 +314,8 @@ declare class PropertiesFacade {
310
314
  readonly list: _angular_core.Signal<PropertyItem[]>;
311
315
  readonly propertyTypes: _angular_core.Signal<any>;
312
316
  readonly selected: _angular_core.Signal<PropertyItem | null>;
317
+ readonly moduleId: _angular_core.Signal<string | number | null>;
318
+ readonly parentModuleId: _angular_core.Signal<string | number | null>;
313
319
  readonly lookups: _angular_core.Signal<LookupDefinition[]>;
314
320
  readonly configProperties: _angular_core.Signal<PropertyItem[]>;
315
321
  readonly groups: _angular_core.Signal<GroupDefinition[]>;
@@ -397,14 +403,18 @@ declare class PropertyForm implements OnDestroy {
397
403
  readonly propertyForm: FormGroup<{
398
404
  main: FormControl<any>;
399
405
  configuration: FormControl<any>;
406
+ formula: FormControl<FormulaBuilderValue | null>;
400
407
  }>;
401
408
  private readonly mainControl;
402
409
  private readonly configurationControl;
410
+ private readonly formulaControl;
403
411
  private readonly creating;
404
412
  private readonly updating;
405
413
  readonly loading: _angular_core.Signal<boolean>;
406
414
  readonly submitting: _angular_core.Signal<boolean>;
407
415
  readonly propertyType: _angular_core.Signal<any>;
416
+ readonly isCalculated: _angular_core.Signal<boolean>;
417
+ readonly formulaSchemaId: _angular_core.Signal<number | undefined>;
408
418
  private readonly selectedPropertyTypeConfiguration;
409
419
  readonly configurationFormConfig: _angular_core.Signal<any>;
410
420
  private configurationHost?;
@@ -426,6 +436,7 @@ declare class PropertyForm implements OnDestroy {
426
436
  private extractConfigurationForm;
427
437
  private resolveConfigurationComponent;
428
438
  private applyConfigurationComponentResult;
439
+ private resolveSchemaId;
429
440
  createOrEditProperty(): void;
430
441
  private syncFormWithSelectedProperty;
431
442
  goBack(): void;