@masterteam/properties 0.0.34 → 0.0.36
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.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/properties",
|
|
6
6
|
"linkDirectory": false,
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"tailwindcss-primeui": "^0.6.1",
|
|
21
21
|
"@ngxs/store": "^20.1.0",
|
|
22
22
|
"@masterteam/formula-builder": "^0.0.2",
|
|
23
|
-
"@masterteam/
|
|
24
|
-
"@masterteam/forms": "^0.0.
|
|
25
|
-
"@masterteam/
|
|
23
|
+
"@masterteam/components": "^0.0.102",
|
|
24
|
+
"@masterteam/forms": "^0.0.49",
|
|
25
|
+
"@masterteam/icons": "^0.0.13"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"exports": {
|
|
@@ -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<
|
|
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<
|
|
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;
|