@masterteam/properties 0.0.9 → 0.0.11

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
@@ -1,3 +1,5 @@
1
+ import * as _masterteam_components_breadcrumb from '@masterteam/components/breadcrumb';
2
+ import { BreadcrumbItem } from '@masterteam/components/breadcrumb';
1
3
  import * as _angular_core from '@angular/core';
2
4
  import { OnDestroy } from '@angular/core';
3
5
  import { ColumnDef, TableAction } from '@masterteam/components/table';
@@ -136,6 +138,7 @@ interface PropertiesStateModel extends LoadingStateShape<PropertiesLoadingName>
136
138
  apiSchema: ApiSchema | null;
137
139
  apiProperties: ApiPropertyOption[];
138
140
  propertyTypes?: any[];
141
+ breadcrumbItems: BreadcrumbItem[];
139
142
  }
140
143
  interface PropertiesQueryParams {
141
144
  includeLog?: boolean;
@@ -232,6 +235,11 @@ declare class SetPropertyTypes {
232
235
  static readonly type = "[Properties] Set Property Types";
233
236
  constructor(payload: any);
234
237
  }
238
+ declare class SetBreadcrumb {
239
+ readonly items: BreadcrumbItem[];
240
+ static readonly type = "[Properties] Set Breadcrumb";
241
+ constructor(items: BreadcrumbItem[]);
242
+ }
235
243
 
236
244
  interface Response<T> {
237
245
  endpoint: string;
@@ -263,19 +271,20 @@ declare class PropertiesState {
263
271
  static apiSchema(state: PropertiesStateModel): ApiSchema | null;
264
272
  static apiProperties(state: PropertiesStateModel): ApiPropertyOption[];
265
273
  static propertyTypes(state: PropertiesStateModel): any[];
274
+ static breadcrumbItems(state: PropertiesStateModel): BreadcrumbItem[];
266
275
  static isLoadingFactory(state: PropertiesStateModel): (loadingName: PropertiesLoadingName) => boolean;
267
276
  static errorFactory(state: PropertiesStateModel): (loadingName: PropertiesLoadingName) => string | null;
268
277
  static propertyById(state: PropertiesStateModel): (id: number | string) => PropertyItem | null;
269
278
  getAll(ctx: StateContext<PropertiesStateModel>, action: GetProperties): rxjs.Observable<Response<PropertyItem[]> | null>;
270
279
  getOne(ctx: StateContext<PropertiesStateModel>, action: GetProperty): rxjs.Observable<Response<PropertyItem> | null>;
271
- getLookups(ctx: StateContext<PropertiesStateModel>, _action: GetLookups): rxjs.Observable<LookupDefinition[]> | rxjs.Observable<Response<LookupDefinition[]> | never[]>;
280
+ getLookups(ctx: StateContext<PropertiesStateModel>, _action: GetLookups): rxjs.Observable<LookupDefinition[]> | rxjs.Observable<never[] | Response<LookupDefinition[]>>;
272
281
  getGroups(ctx: StateContext<PropertiesStateModel>, _action: GetGroups): rxjs.Observable<GroupDefinition[]> | rxjs.Observable<never[] | Response<GroupDefinition[]>>;
273
282
  getConfigAsType(ctx: StateContext<PropertiesStateModel>, action: GetConfigAsType): rxjs.Observable<ConfigScope[]> | rxjs.Observable<never[] | Response<ConfigScope[]>>;
274
283
  getCountries(ctx: StateContext<PropertiesStateModel>, _action: GetCountries): rxjs.Observable<CountryDefinition[]>;
275
284
  testApiConfiguration(ctx: StateContext<PropertiesStateModel>, action: TestApiConfiguration): rxjs.Observable<Response<ApiSchema> | null>;
276
285
  resetApiConfiguration(ctx: StateContext<PropertiesStateModel>): void;
277
286
  private mapSchemaToOptions;
278
- getPropertiesForConfigType(ctx: StateContext<PropertiesStateModel>, action: GetPropertiesForConfigType): rxjs.Observable<Response<PropertyItem[]> | never[]>;
287
+ getPropertiesForConfigType(ctx: StateContext<PropertiesStateModel>, action: GetPropertiesForConfigType): rxjs.Observable<never[] | Response<PropertyItem[]>>;
279
288
  resetConfigProperties(ctx: StateContext<PropertiesStateModel>): void;
280
289
  resetConfigScopes(ctx: StateContext<PropertiesStateModel>): void;
281
290
  resetSelectedProperty(ctx: StateContext<PropertiesStateModel>): void;
@@ -284,6 +293,7 @@ declare class PropertiesState {
284
293
  update(ctx: StateContext<PropertiesStateModel>, action: UpdateProperty): rxjs.Observable<Response<PropertyItem> | null>;
285
294
  delete(ctx: StateContext<PropertiesStateModel>, action: DeleteProperty): rxjs.Observable<void | null>;
286
295
  SetPropertyTypes(ctx: StateContext<PropertiesStateModel>, action: SetPropertyTypes): void;
296
+ setBreadcrumb(ctx: StateContext<PropertiesStateModel>, action: SetBreadcrumb): void;
287
297
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropertiesState, never>;
288
298
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<PropertiesState>;
289
299
  }
@@ -300,6 +310,7 @@ declare class PropertiesFacade {
300
310
  readonly countries: _angular_core.Signal<CountryDefinition[]>;
301
311
  readonly apiSchema: _angular_core.Signal<ApiSchema | null>;
302
312
  readonly apiProperties: _angular_core.Signal<ApiPropertyOption[]>;
313
+ readonly breadcrumbItems: _angular_core.Signal<BreadcrumbItem[]>;
303
314
  readonly systemProperties: _angular_core.Signal<PropertyItem[]>;
304
315
  readonly customProperties: _angular_core.Signal<PropertyItem[]>;
305
316
  isLoading(loadingName: PropertiesLoadingName): _angular_core.Signal<boolean>;
@@ -320,6 +331,7 @@ declare class PropertiesFacade {
320
331
  resetSelectedProperty(): Observable<unknown>;
321
332
  resetConfigProperties(): Observable<unknown>;
322
333
  resetConfigScopes(): Observable<unknown>;
334
+ setBreadcrumb(items: BreadcrumbItem[]): Observable<unknown>;
323
335
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropertiesFacade, never>;
324
336
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<PropertiesFacade>;
325
337
  }
@@ -338,10 +350,12 @@ declare class PropertiesList {
338
350
  }[]>;
339
351
  activeTab: _angular_core.WritableSignal<string>;
340
352
  readonly tableColumns: _angular_core.WritableSignal<ColumnDef[]>;
341
- tableActions: _angular_core.WritableSignal<TableAction[]>;
353
+ propertyTypes: _angular_core.WritableSignal<any[]>;
354
+ tableActions: _angular_core.Signal<TableAction[]>;
342
355
  readonly rowActions: _angular_core.WritableSignal<TableAction[]>;
343
356
  readonly loading: _angular_core.Signal<boolean>;
344
357
  readonly tableData: _angular_core.Signal<PropertyItem[]>;
358
+ readonly breadcrumbItems: _angular_core.Signal<_masterteam_components_breadcrumb.BreadcrumbItem[]>;
345
359
  private editRow;
346
360
  private deleteRow;
347
361
  createProperty(): void;
@@ -355,7 +369,7 @@ declare class PropertyForm implements OnDestroy {
355
369
  private readonly route;
356
370
  propertyId: _angular_core.InputSignal<string>;
357
371
  private readonly propertyTypes;
358
- submitLabel: _angular_core.Signal<"Update" | "Create">;
372
+ submitLabel: _angular_core.Signal<"Create" | "Update">;
359
373
  isEditing: _angular_core.Signal<boolean>;
360
374
  readonly propertyForm: FormGroup<{
361
375
  main: FormControl<any>;
@@ -397,5 +411,5 @@ declare class PropertyForm implements OnDestroy {
397
411
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PropertyForm, "mt-property-form", never, { "propertyId": { "alias": "propertyId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
398
412
  }
399
413
 
400
- export { CreateProperty, DeleteProperty, GetConfigAsType, GetCountries, GetGroups, GetLookups, GetProperties, GetPropertiesForConfigType, GetProperty, PropertiesFacade, PropertiesList, PropertiesState, PropertyForm, REQUEST_CONTEXT, ResetApiConfiguration, ResetConfigProperties, ResetConfigScopes, ResetSelectedProperty, SetPropertiesModuleInfo, SetPropertyTypes, TestApiConfiguration, UpdateProperty };
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 };
401
415
  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.9",
3
+ "version": "0.0.11",
4
4
  "publishConfig": {
5
5
  "directory": ".",
6
6
  "linkDirectory": false,