@masterteam/properties 0.0.33 → 0.0.35

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,28 +1,28 @@
1
1
  {
2
2
  "name": "@masterteam/properties",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/properties",
6
6
  "linkDirectory": false,
7
7
  "access": "public"
8
8
  },
9
9
  "peerDependencies": {
10
- "@angular/common": "^21.0.3",
11
- "@angular/core": "^21.0.3",
12
- "@angular/forms": "^21.0.3",
13
- "@primeuix/themes": "^2.0.2",
14
- "@tailwindcss/postcss": "^4.1.17",
15
- "@jsverse/transloco": "^8.0.2",
16
- "postcss": "^8.5.6",
17
- "primeng": "21.0.1",
18
- "rxjs": "^7.8.2",
19
- "tailwindcss": "^4.1.17",
20
- "tailwindcss-primeui": "^0.6.1",
10
+ "@angular/common": "catalog:angular21",
11
+ "@angular/core": "catalog:angular21",
12
+ "@angular/forms": "catalog:angular21",
13
+ "@primeuix/themes": "catalog:",
14
+ "@tailwindcss/postcss": "catalog:",
15
+ "@jsverse/transloco": "catalog:i18n",
16
+ "postcss": "catalog:",
17
+ "primeng": "catalog:",
18
+ "rxjs": "catalog:angular21",
19
+ "tailwindcss": "catalog:",
20
+ "tailwindcss-primeui": "catalog:",
21
21
  "@ngxs/store": "^20.1.0",
22
- "@masterteam/components": "^0.0.100",
23
- "@masterteam/forms": "^0.0.46",
24
- "@masterteam/icons": "^0.0.13",
25
- "@masterteam/formula-builder": "^0.0.2"
22
+ "@masterteam/components": "workspace:^",
23
+ "@masterteam/formula-builder": "workspace:^",
24
+ "@masterteam/forms": "workspace:^",
25
+ "@masterteam/icons": "workspace:^"
26
26
  },
27
27
  "sideEffects": false,
28
28
  "exports": {
@@ -43,6 +43,6 @@
43
43
  "module": "fesm2022/masterteam-properties.mjs",
44
44
  "typings": "types/masterteam-properties.d.ts",
45
45
  "dependencies": {
46
- "tslib": "^2.8.1"
46
+ "tslib": "catalog:angular21"
47
47
  }
48
48
  }
@@ -342,6 +342,22 @@ interface Response<T> {
342
342
  data: T;
343
343
  cacheSession?: string;
344
344
  }
345
+ interface CatalogPropertyDto {
346
+ id: number;
347
+ key: string;
348
+ normalizedKey: string;
349
+ label: string;
350
+ viewType: string;
351
+ configuration: Record<string, unknown> | null;
352
+ source?: string;
353
+ order?: number;
354
+ isRequired?: boolean;
355
+ isSystem?: boolean;
356
+ }
357
+ interface PropertyCatalogResponseDto {
358
+ contextKey: string;
359
+ properties: CatalogPropertyDto[];
360
+ }
345
361
 
346
362
  declare class PropertiesState extends CrudStateBase<PropertyItem, PropertiesStateModel, PropertiesActionKey> {
347
363
  private readonly http;
@@ -370,7 +386,7 @@ declare class PropertiesState extends CrudStateBase<PropertyItem, PropertiesStat
370
386
  static getLoadingActive(state: PropertiesStateModel): string[];
371
387
  static getErrors(state: PropertiesStateModel): Record<string, string | null>;
372
388
  static propertyById(state: PropertiesStateModel): (id: number | string) => PropertyItem | null;
373
- getAll(ctx: StateContext<PropertiesStateModel>, action: GetProperties): rxjs.Observable<Response<PropertyItem[]>>;
389
+ getAll(ctx: StateContext<PropertiesStateModel>, action: GetProperties): rxjs.Observable<Response<PropertyCatalogResponseDto>>;
374
390
  getOne(ctx: StateContext<PropertiesStateModel>, action: GetProperty): rxjs.Observable<Response<PropertyItem>>;
375
391
  getLookups(ctx: StateContext<PropertiesStateModel>, _action: GetLookups): rxjs.Observable<LookupDefinition[]> | rxjs.Observable<Response<LookupDefinition[]>>;
376
392
  getGroups(ctx: StateContext<PropertiesStateModel>, _action: GetGroups): rxjs.Observable<GroupDefinition[]> | rxjs.Observable<Response<GroupDefinition[]>>;
@@ -382,7 +398,7 @@ declare class PropertiesState extends CrudStateBase<PropertyItem, PropertiesStat
382
398
  updatePropertyStatus(ctx: StateContext<PropertiesStateModel>, action: UpdatePropertyStatus): rxjs.Observable<Response<PropertyStatusItem>>;
383
399
  deletePropertyStatus(ctx: StateContext<PropertiesStateModel>, action: DeletePropertyStatus): rxjs.Observable<Response<boolean>>;
384
400
  reorderPropertyStatuses(ctx: StateContext<PropertiesStateModel>, action: ReorderPropertyStatuses): rxjs.Observable<Response<unknown>>;
385
- getPropertiesForConfigType(ctx: StateContext<PropertiesStateModel>, action: GetPropertiesForConfigType): rxjs.Observable<Response<PropertyItem[]>>;
401
+ getPropertiesForConfigType(ctx: StateContext<PropertiesStateModel>, action: GetPropertiesForConfigType): rxjs.Observable<Response<CatalogPropertyDto[]>>;
386
402
  resetConfigProperties(ctx: StateContext<PropertiesStateModel>): void;
387
403
  resetConfigScopes(ctx: StateContext<PropertiesStateModel>): void;
388
404
  resetSelectedProperty(ctx: StateContext<PropertiesStateModel>): void;
@@ -538,6 +554,7 @@ declare class PropertyForm implements OnDestroy {
538
554
  private readonly mainControl;
539
555
  private readonly configurationControl;
540
556
  private readonly formulaControl;
557
+ private readonly mainValue;
541
558
  private readonly creating;
542
559
  private readonly updating;
543
560
  readonly loading: _angular_core.Signal<boolean>;
@@ -559,6 +576,7 @@ declare class PropertyForm implements OnDestroy {
559
576
  private configurationComponentLoadId;
560
577
  private readonly externalConfigurationForm;
561
578
  private externalConfigurationSubscriptions;
579
+ private readonly subscriptions;
562
580
  private readonly externalConfigurationInvalid;
563
581
  private readonly lastStatusScrollKey;
564
582
  readonly configurationComponentExists: _angular_core.Signal<boolean>;