@masterteam/properties 0.0.11 → 0.0.12

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/index.d.ts CHANGED
@@ -139,6 +139,7 @@ interface PropertiesStateModel extends LoadingStateShape<PropertiesLoadingName>
139
139
  apiProperties: ApiPropertyOption[];
140
140
  propertyTypes?: any[];
141
141
  breadcrumbItems: BreadcrumbItem[];
142
+ defaultViewType: string | null;
142
143
  }
143
144
  interface PropertiesQueryParams {
144
145
  includeLog?: boolean;
@@ -240,6 +241,11 @@ declare class SetBreadcrumb {
240
241
  static readonly type = "[Properties] Set Breadcrumb";
241
242
  constructor(items: BreadcrumbItem[]);
242
243
  }
244
+ declare class SetDefaultViewType {
245
+ readonly viewType: string;
246
+ static readonly type = "[Properties] Set Default ViewType";
247
+ constructor(viewType: string);
248
+ }
243
249
 
244
250
  interface Response<T> {
245
251
  endpoint: string;
@@ -272,19 +278,20 @@ declare class PropertiesState {
272
278
  static apiProperties(state: PropertiesStateModel): ApiPropertyOption[];
273
279
  static propertyTypes(state: PropertiesStateModel): any[];
274
280
  static breadcrumbItems(state: PropertiesStateModel): BreadcrumbItem[];
281
+ static defaultViewType(state: PropertiesStateModel): string | null;
275
282
  static isLoadingFactory(state: PropertiesStateModel): (loadingName: PropertiesLoadingName) => boolean;
276
283
  static errorFactory(state: PropertiesStateModel): (loadingName: PropertiesLoadingName) => string | null;
277
284
  static propertyById(state: PropertiesStateModel): (id: number | string) => PropertyItem | null;
278
285
  getAll(ctx: StateContext<PropertiesStateModel>, action: GetProperties): rxjs.Observable<Response<PropertyItem[]> | null>;
279
286
  getOne(ctx: StateContext<PropertiesStateModel>, action: GetProperty): rxjs.Observable<Response<PropertyItem> | null>;
280
- getLookups(ctx: StateContext<PropertiesStateModel>, _action: GetLookups): rxjs.Observable<LookupDefinition[]> | rxjs.Observable<never[] | Response<LookupDefinition[]>>;
287
+ getLookups(ctx: StateContext<PropertiesStateModel>, _action: GetLookups): rxjs.Observable<LookupDefinition[]> | rxjs.Observable<Response<LookupDefinition[]> | never[]>;
281
288
  getGroups(ctx: StateContext<PropertiesStateModel>, _action: GetGroups): rxjs.Observable<GroupDefinition[]> | rxjs.Observable<never[] | Response<GroupDefinition[]>>;
282
289
  getConfigAsType(ctx: StateContext<PropertiesStateModel>, action: GetConfigAsType): rxjs.Observable<ConfigScope[]> | rxjs.Observable<never[] | Response<ConfigScope[]>>;
283
290
  getCountries(ctx: StateContext<PropertiesStateModel>, _action: GetCountries): rxjs.Observable<CountryDefinition[]>;
284
291
  testApiConfiguration(ctx: StateContext<PropertiesStateModel>, action: TestApiConfiguration): rxjs.Observable<Response<ApiSchema> | null>;
285
292
  resetApiConfiguration(ctx: StateContext<PropertiesStateModel>): void;
286
293
  private mapSchemaToOptions;
287
- getPropertiesForConfigType(ctx: StateContext<PropertiesStateModel>, action: GetPropertiesForConfigType): rxjs.Observable<never[] | Response<PropertyItem[]>>;
294
+ getPropertiesForConfigType(ctx: StateContext<PropertiesStateModel>, action: GetPropertiesForConfigType): rxjs.Observable<Response<PropertyItem[]> | never[]>;
288
295
  resetConfigProperties(ctx: StateContext<PropertiesStateModel>): void;
289
296
  resetConfigScopes(ctx: StateContext<PropertiesStateModel>): void;
290
297
  resetSelectedProperty(ctx: StateContext<PropertiesStateModel>): void;
@@ -294,6 +301,7 @@ declare class PropertiesState {
294
301
  delete(ctx: StateContext<PropertiesStateModel>, action: DeleteProperty): rxjs.Observable<void | null>;
295
302
  SetPropertyTypes(ctx: StateContext<PropertiesStateModel>, action: SetPropertyTypes): void;
296
303
  setBreadcrumb(ctx: StateContext<PropertiesStateModel>, action: SetBreadcrumb): void;
304
+ setDefaultViewType(ctx: StateContext<PropertiesStateModel>, action: SetDefaultViewType): void;
297
305
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropertiesState, never>;
298
306
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<PropertiesState>;
299
307
  }
@@ -311,6 +319,7 @@ declare class PropertiesFacade {
311
319
  readonly apiSchema: _angular_core.Signal<ApiSchema | null>;
312
320
  readonly apiProperties: _angular_core.Signal<ApiPropertyOption[]>;
313
321
  readonly breadcrumbItems: _angular_core.Signal<BreadcrumbItem[]>;
322
+ readonly defaultViewType: _angular_core.Signal<string | null>;
314
323
  readonly systemProperties: _angular_core.Signal<PropertyItem[]>;
315
324
  readonly customProperties: _angular_core.Signal<PropertyItem[]>;
316
325
  isLoading(loadingName: PropertiesLoadingName): _angular_core.Signal<boolean>;
@@ -332,6 +341,7 @@ declare class PropertiesFacade {
332
341
  resetConfigProperties(): Observable<unknown>;
333
342
  resetConfigScopes(): Observable<unknown>;
334
343
  setBreadcrumb(items: BreadcrumbItem[]): Observable<unknown>;
344
+ setDefaultViewType(viewType: string): Observable<unknown>;
335
345
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropertiesFacade, never>;
336
346
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<PropertiesFacade>;
337
347
  }
@@ -359,6 +369,7 @@ declare class PropertiesList {
359
369
  private editRow;
360
370
  private deleteRow;
361
371
  createProperty(): void;
372
+ createPropertyWithType(viewType: string): void;
362
373
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropertiesList, never>;
363
374
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PropertiesList, "mt-properties-list", never, {}, {}, never, never, true, never>;
364
375
  }
@@ -411,5 +422,5 @@ declare class PropertyForm implements OnDestroy {
411
422
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PropertyForm, "mt-property-form", never, { "propertyId": { "alias": "propertyId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
412
423
  }
413
424
 
414
- export { CreateProperty, DeleteProperty, GetConfigAsType, GetCountries, GetGroups, GetLookups, GetProperties, GetPropertiesForConfigType, GetProperty, PropertiesFacade, PropertiesList, PropertiesState, PropertyForm, REQUEST_CONTEXT, ResetApiConfiguration, ResetConfigProperties, ResetConfigScopes, ResetSelectedProperty, SetBreadcrumb, SetPropertiesModuleInfo, SetPropertyTypes, TestApiConfiguration, UpdateProperty };
425
+ export { CreateProperty, DeleteProperty, GetConfigAsType, GetCountries, GetGroups, GetLookups, GetProperties, GetPropertiesForConfigType, GetProperty, PropertiesFacade, PropertiesList, PropertiesState, PropertyForm, REQUEST_CONTEXT, ResetApiConfiguration, ResetConfigProperties, ResetConfigScopes, ResetSelectedProperty, SetBreadcrumb, SetDefaultViewType, SetPropertiesModuleInfo, SetPropertyTypes, TestApiConfiguration, UpdateProperty };
415
426
  export type { ApiConfigurationValue, ApiPropertyOption, ApiSchema, ApiSchemaProperty, ApiTestPayload, ApiTestResponse, ConfigScope, CountryDefinition, GroupDefinition, LogDefinition, LookupDefinition, LookupDefinitionItem, PropertiesLoadingName, PropertiesQueryParams, PropertiesStateModel, PropertyItem, PropertyPayload };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/properties",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "publishConfig": {
5
5
  "directory": ".",
6
6
  "linkDirectory": false,