@mediusinc/mng-commons 5.5.0-rc.0 → 5.5.0-rc.2

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.
Files changed (170) hide show
  1. package/core/descriptors/table.descriptor.d.ts +4 -2
  2. package/core/directives/rerender.directive.d.ts +9 -0
  3. package/core/helpers/route.d.ts +25 -25
  4. package/core/index.d.ts +2 -0
  5. package/core/reactivity/effect.d.ts +16 -0
  6. package/esm2022/core/components/notification/notification-wrapper.component.mjs +4 -4
  7. package/esm2022/core/components/pages/error/error.page.component.mjs +4 -4
  8. package/esm2022/core/components/pages/not-found/not-found.page.component.mjs +4 -4
  9. package/esm2022/core/data-list/data-list-params-helpers.mjs +18 -3
  10. package/esm2022/core/descriptors/table.descriptor.mjs +1 -1
  11. package/esm2022/core/directives/component.directive.mjs +4 -4
  12. package/esm2022/core/directives/rerender.directive.mjs +25 -0
  13. package/esm2022/core/directives/template.directive.mjs +4 -4
  14. package/esm2022/core/index.mjs +4 -1
  15. package/esm2022/core/pipes/boolean.pipe.mjs +6 -6
  16. package/esm2022/core/pipes/class-map.pipe.mjs +4 -4
  17. package/esm2022/core/pipes/enum.pipe.mjs +4 -4
  18. package/esm2022/core/pipes/enumerate-async.pipe.mjs +4 -4
  19. package/esm2022/core/pipes/enumerate.pipe.mjs +4 -4
  20. package/esm2022/core/pipes/getter.pipe.mjs +5 -5
  21. package/esm2022/core/pipes/i18n-property.pipe.mjs +4 -4
  22. package/esm2022/core/pipes/json-path.pipe.mjs +4 -4
  23. package/esm2022/core/pipes/parametrize.pipe.mjs +4 -4
  24. package/esm2022/core/pipes/template.pipe.mjs +4 -4
  25. package/esm2022/core/reactivity/effect.mjs +22 -0
  26. package/esm2022/core/security/permission.service.mjs +4 -4
  27. package/esm2022/core/services/commons-init.service.mjs +4 -4
  28. package/esm2022/core/services/commons-router.service.mjs +4 -4
  29. package/esm2022/core/services/commons-storage.service.mjs +4 -4
  30. package/esm2022/core/services/commons.service.mjs +8 -8
  31. package/esm2022/filter/descriptors/filter-lookup.descriptor.mjs +32 -25
  32. package/esm2022/filter/descriptors/filter.descriptor.mjs +53 -1
  33. package/esm2022/form/components/autocomplete/autocomplete.component.mjs +4 -4
  34. package/esm2022/form/components/date-range/date-range.component.mjs +4 -4
  35. package/esm2022/form/components/dropdown/dropdown.component.mjs +4 -4
  36. package/esm2022/form/components/number-range/number-range.component.mjs +4 -4
  37. package/esm2022/form/directives/input-trim.directive.mjs +4 -4
  38. package/esm2022/table/api/descriptors/sort.descriptor.mjs +2 -2
  39. package/esm2022/table/api/descriptors/table.descriptor.mjs +32 -8
  40. package/esm2022/table/components/column-filter/column-filter.component.mjs +33 -40
  41. package/esm2022/table/components/column-value/column-value.component.mjs +6 -6
  42. package/esm2022/table/components/filter/filter-active-tag/filter-active-tag.component.mjs +7 -7
  43. package/esm2022/table/components/filter/filter-form/filter-form.component.mjs +24 -34
  44. package/esm2022/table/components/filter/filter-overlay-with-tag/filter-overlay-with-tag.component.mjs +44 -45
  45. package/esm2022/table/components/table/table.component.mjs +114 -430
  46. package/esm2022/table/helpers/filters.mjs +9 -25
  47. package/esm2022/table/helpers/table.mjs +24 -0
  48. package/esm2022/table/index.mjs +2 -2
  49. package/esm2022/table/models/column-preferences.model.mjs +1 -1
  50. package/esm2022/table/models/filter.model.mjs +1 -1
  51. package/esm2022/table/pipes/filter-value.pipe.mjs +4 -4
  52. package/esm2022/table/pipes/locale-default-row-class.pipe.mjs +4 -4
  53. package/esm2022/table/pipes/table-column-filter-class.pipe.mjs +4 -4
  54. package/esm2022/table/services/table-data.service.mjs +194 -0
  55. package/esm2022/table/services/table-metadata.service.mjs +136 -0
  56. package/esm2022/table/services/table-preferences.service.mjs +142 -0
  57. package/esm2022/tableview/action/components/action/action.component.mjs +6 -7
  58. package/esm2022/tableview/action/components/editor/action-editor.component.mjs +4 -4
  59. package/esm2022/tableview/action/components/editor/injector-context/action-editor-injector-context.component.mjs +69 -46
  60. package/esm2022/tableview/action/components/localization/data-language-dropdown.component.mjs +4 -4
  61. package/esm2022/tableview/action/components/route/action-route.component.mjs +5 -6
  62. package/esm2022/tableview/action/components/table/action-table.component.mjs +4 -4
  63. package/esm2022/tableview/action/helpers/action-execution.mjs +25 -0
  64. package/esm2022/tableview/action/models/execution/action-instance.model.mjs +2 -3
  65. package/esm2022/tableview/action/services/action-executor.service.mjs +12 -79
  66. package/esm2022/tableview/action/services/component-action-executor.service.mjs +4 -4
  67. package/esm2022/tableview/action/services/data-provider-executor.service.mjs +4 -4
  68. package/esm2022/tableview/action/services/navigation.service.mjs +4 -4
  69. package/esm2022/tableview/action/services/root-action-executor.service.mjs +4 -4
  70. package/esm2022/tableview/action/services/view-container.service.mjs +4 -4
  71. package/esm2022/tableview/api/action/descriptors/action-confirmation.descriptor.mjs +13 -1
  72. package/esm2022/tableview/api/action/descriptors/action-editor.descriptor.mjs +67 -10
  73. package/esm2022/tableview/api/action/descriptors/action-link-descriptor.factory.mjs +2 -2
  74. package/esm2022/tableview/api/action/descriptors/action-link.descriptor.mjs +17 -1
  75. package/esm2022/tableview/api/action/descriptors/action.descriptor.mjs +32 -7
  76. package/esm2022/tableview/api/action/models/execution/action-instance-state.model.mjs +2 -2
  77. package/esm2022/tableview/api/editor/descriptors/field-base.descriptor.mjs +20 -1
  78. package/esm2022/tableview/api/editor/descriptors/field-many.descriptor.mjs +2 -1
  79. package/esm2022/tableview/api/editor/models/formly-custom-field.model.mjs +4 -4
  80. package/esm2022/tableview/api/tableview/descriptors/tableview.descriptor.mjs +13 -5
  81. package/esm2022/tableview/api/tableview/helpers/tableview-default-actions.mjs +3 -2
  82. package/esm2022/tableview/api/tableview/helpers/tableview-descriptor-helpers.mjs +2 -2
  83. package/esm2022/tableview/editor/components/editor/auto-save-status/auto-save-status.component.mjs +4 -4
  84. package/esm2022/tableview/editor/components/editor/form-editor.component.mjs +31 -38
  85. package/esm2022/tableview/editor/components/formly/constants.mjs +2 -0
  86. package/esm2022/tableview/editor/components/formly/fields/formly-field-action/formly-field-action.component.mjs +4 -4
  87. package/esm2022/tableview/editor/components/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +7 -5
  88. package/esm2022/tableview/editor/components/formly/fields/formly-field-custom/formly-field-custom.component.mjs +4 -4
  89. package/esm2022/tableview/editor/components/formly/fields/formly-field-datepicker/formly-field-datepicker.component.mjs +7 -5
  90. package/esm2022/tableview/editor/components/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +7 -5
  91. package/esm2022/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +4 -4
  92. package/esm2022/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.mjs +5 -5
  93. package/esm2022/tableview/editor/components/formly/fields/formly-field-label/formly-field-label.component.mjs +4 -4
  94. package/esm2022/tableview/editor/components/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +5 -6
  95. package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +10 -6
  96. package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +11 -7
  97. package/esm2022/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +4 -4
  98. package/esm2022/tableview/editor/components/formly/fields/formly-field-type.abstract.component.mjs +6 -5
  99. package/esm2022/tableview/editor/components/formly/pipes/formly-field-label.pipe.mjs +4 -4
  100. package/esm2022/tableview/editor/components/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.mjs +4 -4
  101. package/esm2022/tableview/editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +10 -5
  102. package/esm2022/tableview/editor/helpers/editor-autosave.mjs +2 -2
  103. package/esm2022/tableview/editor/services/form-editor.service.mjs +4 -4
  104. package/esm2022/tableview/index.mjs +1 -2
  105. package/esm2022/tableview/tableview/components/route/tableview-route.component.mjs +4 -4
  106. package/esm2022/tableview/tableview/components/tableview/tableview.component.mjs +4 -4
  107. package/fesm2022/mediusinc-mng-commons-core.mjs +130 -71
  108. package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
  109. package/fesm2022/mediusinc-mng-commons-filter.mjs +83 -24
  110. package/fesm2022/mediusinc-mng-commons-filter.mjs.map +1 -1
  111. package/fesm2022/mediusinc-mng-commons-form-api.mjs.map +1 -1
  112. package/fesm2022/mediusinc-mng-commons-form.mjs +15 -15
  113. package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
  114. package/fesm2022/mediusinc-mng-commons-model.mjs.map +1 -1
  115. package/fesm2022/mediusinc-mng-commons-table-api.mjs +32 -8
  116. package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
  117. package/fesm2022/mediusinc-mng-commons-table.mjs +700 -603
  118. package/fesm2022/mediusinc-mng-commons-table.mjs.map +1 -1
  119. package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +165 -26
  120. package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
  121. package/fesm2022/mediusinc-mng-commons-tableview.mjs +265 -317
  122. package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
  123. package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
  124. package/filter/descriptors/filter-lookup.descriptor.d.ts +17 -20
  125. package/filter/descriptors/filter.descriptor.d.ts +32 -2
  126. package/form/components/date-range/date-range.component.d.ts +3 -3
  127. package/form/components/number-range/number-range.component.d.ts +2 -2
  128. package/package.json +4 -4
  129. package/table/api/descriptors/column.descriptor.d.ts +1 -1
  130. package/table/api/descriptors/sort.descriptor.d.ts +2 -2
  131. package/table/api/descriptors/table.descriptor.d.ts +21 -7
  132. package/table/components/column-filter/column-filter.component.d.ts +8 -14
  133. package/table/components/filter/filter-active-tag/filter-active-tag.component.d.ts +5 -5
  134. package/table/components/filter/filter-form/filter-form.component.d.ts +10 -19
  135. package/table/components/filter/filter-overlay-with-tag/filter-overlay-with-tag.component.d.ts +11 -13
  136. package/table/components/table/table.component.d.ts +20 -64
  137. package/table/helpers/filters.d.ts +4 -7
  138. package/table/helpers/table.d.ts +6 -0
  139. package/table/index.d.ts +1 -1
  140. package/table/models/column-preferences.model.d.ts +2 -2
  141. package/table/models/filter.model.d.ts +14 -2
  142. package/table/services/table-data.service.d.ts +36 -0
  143. package/table/services/table-metadata.service.d.ts +31 -0
  144. package/table/services/table-preferences.service.d.ts +25 -0
  145. package/tableview/action/components/editor/injector-context/action-editor-injector-context.component.d.ts +4 -7
  146. package/tableview/action/components/localization/data-language-dropdown.component.d.ts +1 -1
  147. package/tableview/action/helpers/action-execution.d.ts +7 -0
  148. package/tableview/action/models/execution/action-instance.model.d.ts +1 -2
  149. package/tableview/action/services/action-executor.service.d.ts +1 -2
  150. package/tableview/api/action/descriptors/action-confirmation.descriptor.d.ts +1 -0
  151. package/tableview/api/action/descriptors/action-editor.descriptor.d.ts +12 -4
  152. package/tableview/api/action/descriptors/action-link.descriptor.d.ts +1 -0
  153. package/tableview/api/action/descriptors/action.descriptor.d.ts +5 -3
  154. package/tableview/api/action/models/execution/action-instance-state.model.d.ts +1 -1
  155. package/tableview/api/editor/descriptors/field-base.descriptor.d.ts +15 -10
  156. package/tableview/api/editor/descriptors/field-group.descriptor.d.ts +1 -1
  157. package/tableview/api/tableview/descriptors/tableview.descriptor.d.ts +6 -4
  158. package/tableview/editor/components/editor/form-editor.component.d.ts +3 -2
  159. package/tableview/editor/components/formly/constants.d.ts +1 -0
  160. package/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +1 -1
  161. package/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +1 -0
  162. package/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +1 -0
  163. package/tableview/editor/components/formly/fields/formly-field-type.abstract.component.d.ts +2 -1
  164. package/tableview/editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +1 -0
  165. package/tableview/index.d.ts +0 -1
  166. package/version-info.json +5 -5
  167. package/esm2022/table/services/data-list.service.mjs +0 -29
  168. package/esm2022/tableview/action/models/execution/action-instance-state.model.mjs +0 -32
  169. package/table/services/data-list.service.d.ts +0 -19
  170. package/tableview/action/models/execution/action-instance-state.model.d.ts +0 -30
@@ -60,18 +60,20 @@ export declare class TableviewDescriptorInst<TableviewModel, Sorts = keyof Table
60
60
  addSortUnsafe(property: string, isDefault?: boolean, ascending?: boolean): import("@mediusinc/mng-commons/table/api").SortDescriptor<TableviewModel>;
61
61
  withSort(property: Sorts, isDefault?: boolean, ascending?: boolean): this;
62
62
  withSortUnsafe(property: string, isDefault?: boolean, ascending?: boolean): this;
63
- withDefaultSort(property: Sorts, ascending?: boolean, order?: number, enabled?: boolean): this;
64
- withDefaultSortUnsafe(property: string, ascending?: boolean, order?: number, enabled?: boolean): this;
63
+ withDefaultSort(property: Sorts, ascending?: boolean, enabled?: boolean): this;
64
+ withDefaultSortUnsafe(property: string, ascending?: boolean, enabled?: boolean): this;
65
65
  withSorts(...properties: Sorts[]): this;
66
66
  withSortsUnsafe(...properties: string[]): this;
67
+ withDefaultSorts(...properties: Sorts[]): this;
68
+ withoutDefaultSorts(): this;
67
69
  getFilter<FilterModel = Filters extends keyof TableviewModel ? NonNullable<TableviewModel[Filters]> : any>(property: Filters): FilterDescriptor<FilterModel, TableviewModel> | null;
68
70
  getFilterUnsafe<FilterModel = any>(property: string): FilterDescriptor<FilterModel, TableviewModel> | null;
69
71
  removeFilter(property: Filters): void;
70
72
  removeFilterUnsafe(property: string): void;
71
73
  addFilter<FilterModel = Filters extends keyof TableviewModel ? TableviewModel[Filters] : never>(property: Filters): FilterDescriptor<FilterModel, TableviewModel>;
72
74
  addFilterUnsafe<FilterModel>(property: string): FilterDescriptor<FilterModel, TableviewModel>;
73
- addFilterLookup<FilterModel = Filters extends keyof TableviewModel ? NonNullable<TableviewModel[Filters]> : never, Service = undefined>(property: Filters, provider?: ILookupDataProvider<FilterModel, Service>, optionsValueProperty?: keyof FilterModel): import("@mediusinc/mng-commons/filter").FilterLookupDescriptor<FilterModel, TableviewModel, Service, keyof FilterModel, keyof FilterModel>;
74
- addFilterLookupUnsafe<FilterModel, Service = undefined>(property: string, provider?: ILookupDataProvider<FilterModel, Service>, optionsValueProperty?: string): import("@mediusinc/mng-commons/filter").FilterLookupDescriptor<FilterModel, TableviewModel, Service, keyof FilterModel, keyof FilterModel>;
75
+ addFilterLookup<FilterModel = Filters extends keyof TableviewModel ? NonNullable<TableviewModel[Filters]> : never, Service = undefined>(property: Filters, provider?: ILookupDataProvider<FilterModel, Service>, optionsValueProperty?: keyof FilterModel): import("@mediusinc/mng-commons/filter").FilterLookupDescriptor<FilterModel, TableviewModel, Service, FilterModel, keyof FilterModel, keyof FilterModel>;
76
+ addFilterLookupUnsafe<FilterModel, Service = undefined>(property: string, provider?: ILookupDataProvider<FilterModel, Service>, optionsValueProperty?: string): import("@mediusinc/mng-commons/filter").FilterLookupDescriptor<FilterModel, TableviewModel, Service, FilterModel, keyof FilterModel, keyof FilterModel>;
75
77
  addFilterLookupEnum<Enum>(property: Filters, enumDesc: EnumDescriptor<Enum>, options?: Array<Enum>): import("@mediusinc/mng-commons/filter").FilterLookupEnumDescriptor<Enum, unknown>;
76
78
  addFilterLookupEnumUnsafe<Enum = EnumConstantType>(property: string, enumDesc: EnumDescriptor<Enum>, options?: Array<Enum>): import("@mediusinc/mng-commons/filter").FilterLookupEnumDescriptor<Enum, unknown>;
77
79
  addFilterFromColumn<Property extends keyof TableviewModel, FilterModel = NonNullable<TableviewModel[Property]>>(property: Extract<Filters, Property>, displayType?: FilterDisplayTypeEnum, forceSimple?: boolean): FilterDescriptor<FilterModel, TableviewModel>;
@@ -1,4 +1,4 @@
1
- import { ElementRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl, FormGroup, UntypedFormGroup } from '@angular/forms';
3
3
  import { FormlyFieldConfig } from '@ngx-formly/core';
4
4
  import { Message } from 'primeng/api';
@@ -6,7 +6,7 @@ import { IdType } from '@mediusinc/mng-commons/core';
6
6
  import { CommonsFormlyFormOptions, EditorDescriptorInst, FormEditorPatchFieldValueOpts, FormEditorResetFieldValueOpts, FormEditorResetFormModelOpts, FormEditorSetFieldValueOpts, FormEditorSubmitEvent, IFormEditorComponent } from '@mediusinc/mng-commons/tableview/api';
7
7
  import { EditorAutoSavePreviewModel, EditorAutoSaveStatus } from '../../models/editor-auto-save-preview.model';
8
8
  import * as i0 from "@angular/core";
9
- export declare class FormEditorComponent<Item = any, ParentItem = any> implements IFormEditorComponent<Item, ParentItem>, OnInit, OnDestroy {
9
+ export declare class FormEditorComponent<Item = any, ParentItem = any> implements IFormEditorComponent<Item, ParentItem>, OnInit, AfterViewInit, OnDestroy {
10
10
  private readonly destroyRef;
11
11
  private readonly elementRef;
12
12
  private readonly formlyConfig;
@@ -66,6 +66,7 @@ export declare class FormEditorComponent<Item = any, ParentItem = any> implement
66
66
  get formlyInitialItem(): {};
67
67
  constructor();
68
68
  ngOnInit(): void;
69
+ ngAfterViewInit(): void;
69
70
  ngOnDestroy(): void;
70
71
  submit(): void;
71
72
  onSubmit(event: Event): void;
@@ -0,0 +1 @@
1
+ export declare const labelInfoTooltipDefaultIcon = "pi pi-info-circle";
@@ -6,7 +6,7 @@ export declare class FormlyFieldFieldsetComponent<ET> extends ACommonsFormlyFiel
6
6
  readonly typeFieldset = FieldGroupTypeEnum.Fieldset;
7
7
  fieldGroup: import("@angular/core").WritableSignal<{
8
8
  config: CommonsFormlyFieldConfig;
9
- type?: FieldGroupTypeEnum | undefined;
9
+ type?: FieldGroupTypeEnum;
10
10
  }[]>;
11
11
  ngOnInit(): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldFieldsetComponent<any>, never>;
@@ -5,6 +5,7 @@ import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class FormlyFieldTableDialogFormComponent<T = any, ET = any> extends ACommonsFormlyFieldType<T[], ET, FieldManyEditorDescriptor<T, ET>> implements OnInit, AfterViewInit, OnDestroy {
7
7
  private readonly injector;
8
+ protected readonly labelInfoTooltipDefaultIcon = "pi pi-info-circle";
8
9
  items: import("@angular/core").WritableSignal<T[]>;
9
10
  actions: Array<ActionDescriptorInst<T>>;
10
11
  toolbarRightActions: Array<ActionDescriptorInst<T>>;
@@ -8,6 +8,7 @@ import * as i0 from "@angular/core";
8
8
  export declare class FormlyFieldTableDialogMultiselectComponent extends ACommonsFormlyFieldType<any, any, FieldManyToManyEditorDescriptor<any, any>> implements OnInit, AfterViewInit, OnDestroy {
9
9
  private readonly injector;
10
10
  private readonly logger;
11
+ protected readonly labelInfoTooltipDefaultIcon = "pi pi-info-circle";
11
12
  items: import("@angular/core").WritableSignal<any[]>;
12
13
  addItems: import("@angular/core").WritableSignal<DataListResult<any>>;
13
14
  private dialogDataProviderService;
@@ -1,10 +1,11 @@
1
- import { DestroyRef, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, DestroyRef, OnInit } from '@angular/core';
2
2
  import { FieldType } from '@ngx-formly/core';
3
3
  import { BehaviorSubject } from 'rxjs';
4
4
  import { AFieldDescriptor, CommonsFormlyFieldConfig, CommonsFormlyFormOptions, CommonsFormlyFormState, EditorDescriptorInst } from '@mediusinc/mng-commons/tableview/api';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare abstract class ACommonsFormlyFieldType<Model, EditorModel, Descriptor = AFieldDescriptor<Model, EditorModel>> extends FieldType<CommonsFormlyFieldConfig<Model, EditorModel>> implements OnInit {
7
7
  protected readonly destroyRef: DestroyRef;
8
+ protected readonly cd: ChangeDetectorRef;
8
9
  protected formStateDisabledSubject: BehaviorSubject<boolean>;
9
10
  protected formStateDisabled$: import("rxjs").Observable<boolean>;
10
11
  get descriptor(): Descriptor;
@@ -4,6 +4,7 @@ import { AFieldDescriptor, CommonsFormlyFieldConfig, EditorDescriptorInst } from
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class FormlyFieldWrapperComponent extends FieldWrapper<CommonsFormlyFieldConfig> implements OnInit {
6
6
  private readonly destroyRef;
7
+ protected readonly labelInfoTooltipDefaultIcon = "pi pi-info-circle";
7
8
  helpText: import("@angular/core").WritableSignal<string | undefined>;
8
9
  fieldClassName: import("@angular/core").WritableSignal<string>;
9
10
  descriptor: AFieldDescriptor<any, any, any, any>;
@@ -9,7 +9,6 @@ export * from './action/helpers/notification';
9
9
  export * from './action/helpers/styles';
10
10
  export * from './action/models/execution/action-context.model';
11
11
  export * from './action/models/execution/action-instance.model';
12
- export * from './action/models/execution/action-instance-state.model';
13
12
  export * from './action/models/action-editor-dialog-data.model';
14
13
  export * from './action/models/can-component-deactivate.model';
15
14
  export * from './action/services/providers/provide-action-executor';
package/version-info.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "5.5.0-rc.0",
3
+ "version": "5.5.0-rc.2",
4
4
  "tag": "v5.4.0-rc.7",
5
- "distance": 5,
6
- "hash": "4f490c8b",
5
+ "distance": 24,
6
+ "hash": "ab9f34bd",
7
7
  "dirty": true,
8
- "semver": "5.4.0-rc.7+5.g4f490c8b.dirty",
8
+ "semver": "5.4.0-rc.7+24.gab9f34bd.dirty",
9
9
  "buildTimestamp": null,
10
- "raw": "v5.4.0-rc.7-5-4f490c8b-dirty"
10
+ "raw": "v5.4.0-rc.7-24-ab9f34bd-dirty"
11
11
  }
@@ -1,29 +0,0 @@
1
- import { Injectable, signal } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class DataListService {
4
- constructor() {
5
- // pagination
6
- this.sortMeta = signal(null);
7
- this.filterMeta = signal({});
8
- this.rowsPerPageOptions = signal([25, 50, 100]);
9
- this.rows = signal(this.rowsPerPageOptions()[0]);
10
- this.offset = signal(0);
11
- this.globalFilterFields = signal([]);
12
- // data
13
- this._data = signal([]);
14
- this._count = signal(0);
15
- this.data = this._data.asReadonly();
16
- this.count = this._count.asReadonly();
17
- this.loading = signal(true);
18
- }
19
- setData(data, count) {
20
- this._data.set([...data]);
21
- this._count.set(count ?? data.length);
22
- }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: DataListService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
24
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: DataListService }); }
25
- }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: DataListService, decorators: [{
27
- type: Injectable
28
- }] });
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1saXN0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi90YWJsZS9zcmMvc2VydmljZXMvZGF0YS1saXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFVBQVUsRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7O0FBT2pELE1BQU0sT0FBTyxlQUFlO0lBRDVCO1FBRUksYUFBYTtRQUNOLGFBQVEsR0FBRyxNQUFNLENBQW9CLElBQUksQ0FBQyxDQUFDO1FBQzNDLGVBQVUsR0FBRyxNQUFNLENBQXdDLEVBQUUsQ0FBQyxDQUFDO1FBQy9ELHVCQUFrQixHQUFHLE1BQU0sQ0FBQyxDQUFDLEVBQUUsRUFBRSxFQUFFLEVBQUUsR0FBRyxDQUFDLENBQUMsQ0FBQztRQUMzQyxTQUFJLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxrQkFBa0IsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDNUMsV0FBTSxH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XG4gICAgcHVibGljIHNvcnRNZXRhID0gc2lnbmFsPFNvcnRNZXRhW10gfCBudWxsPihudWxsKTtcbiAgICBwdWJsaWMgZmlsdGVyTWV0YSA9IHNpZ25hbDxSZWNvcmQ8c3RyaW5nLCBDb21tb25zRmlsdGVyTWV0YWRhdGE+Pih7fSk7XG4gICAgcHVibGljIHJvd3NQZXJQYWdlT3B0aW9ucyA9IHNpZ25hbChbMjUsIDUwLCAxMDBdKTtcbiAgICBwdWJsaWMgcm93cyA9IHNpZ25hbCh0aGlzLnJvd3NQZXJQYWdlT3B0aW9ucygpWzBdKTtcbiAgICBwdWJsaWMgb2Zmc2V0ID0gc2lnbmFsKDApO1xuICAgIHB1YmxpYyBnbG9iYWxGaWx0ZXJGaWVsZHMgPSBzaWduYWw8c3RyaW5nW10+KFtdKTtcblxuICAgIC8vIGRhdGFcbiAgICBwcml2YXRlIF9kYXRhID0gc2lnbmFsPEl0ZW1bXT4oW10pO1xuICAgIHByaXZhdGUgX2NvdW50ID0gc2lnbmFsKDApO1xuICAgIHB1YmxpYyBkYXRhID0gdGhpcy5fZGF0YS5hc1JlYWRvbmx5KCk7XG4gICAgcHVibGljIGNvdW50ID0gdGhpcy5fY291bnQuYXNSZWFkb25seSgpO1xuICAgIHB1YmxpYyBsb2FkaW5nID0gc2lnbmFsKHRydWUpO1xuXG4gICAgcHVibGljIHNldERhdGEoZGF0YTogSXRlbVtdLCBjb3VudD86IG51bWJlcikge1xuICAgICAgICB0aGlzLl9kYXRhLnNldChbLi4uZGF0YV0pO1xuICAgICAgICB0aGlzLl9jb3VudC5zZXQoY291bnQgPz8gZGF0YS5sZW5ndGgpO1xuICAgIH1cbn1cbiJdfQ==
@@ -1,32 +0,0 @@
1
- /**
2
- * States of action. Enums ending with `*Final` are supposed to be final.
3
- */
4
- export var ActionInstanceStateEnum;
5
- (function (ActionInstanceStateEnum) {
6
- ActionInstanceStateEnum[ActionInstanceStateEnum["TriggerStart"] = 0] = "TriggerStart";
7
- ActionInstanceStateEnum[ActionInstanceStateEnum["TriggerEnd"] = 1] = "TriggerEnd";
8
- ActionInstanceStateEnum[ActionInstanceStateEnum["ActivationStart"] = 2] = "ActivationStart";
9
- ActionInstanceStateEnum[ActionInstanceStateEnum["ActivationEnd"] = 3] = "ActivationEnd";
10
- ActionInstanceStateEnum[ActionInstanceStateEnum["FetchStart"] = 4] = "FetchStart";
11
- ActionInstanceStateEnum[ActionInstanceStateEnum["FetchEnd"] = 5] = "FetchEnd";
12
- ActionInstanceStateEnum[ActionInstanceStateEnum["FetchError"] = 6] = "FetchError";
13
- ActionInstanceStateEnum[ActionInstanceStateEnum["RunConfirmationStart"] = 7] = "RunConfirmationStart";
14
- ActionInstanceStateEnum[ActionInstanceStateEnum["RunConfirmationEndAccept"] = 8] = "RunConfirmationEndAccept";
15
- ActionInstanceStateEnum[ActionInstanceStateEnum["RunConfirmationEndReject"] = 9] = "RunConfirmationEndReject";
16
- ActionInstanceStateEnum[ActionInstanceStateEnum["RunStart"] = 10] = "RunStart";
17
- ActionInstanceStateEnum[ActionInstanceStateEnum["RunEnd"] = 11] = "RunEnd";
18
- ActionInstanceStateEnum[ActionInstanceStateEnum["RunError"] = 12] = "RunError";
19
- ActionInstanceStateEnum[ActionInstanceStateEnum["NextActionStart"] = 13] = "NextActionStart";
20
- ActionInstanceStateEnum[ActionInstanceStateEnum["NextActionEnd"] = 14] = "NextActionEnd";
21
- ActionInstanceStateEnum[ActionInstanceStateEnum["ErrorActionStart"] = 15] = "ErrorActionStart";
22
- ActionInstanceStateEnum[ActionInstanceStateEnum["ErrorActionEnd"] = 16] = "ErrorActionEnd";
23
- ActionInstanceStateEnum[ActionInstanceStateEnum["FinishSuccessFinal"] = 17] = "FinishSuccessFinal";
24
- ActionInstanceStateEnum[ActionInstanceStateEnum["FinishErrorFinal"] = 18] = "FinishErrorFinal";
25
- ActionInstanceStateEnum[ActionInstanceStateEnum["FinishDismissedFinal"] = 19] = "FinishDismissedFinal";
26
- ActionInstanceStateEnum[ActionInstanceStateEnum["FinishSuccessReactivateFinal"] = 20] = "FinishSuccessReactivateFinal";
27
- ActionInstanceStateEnum[ActionInstanceStateEnum["FinishComponentDestroyFinal"] = 21] = "FinishComponentDestroyFinal";
28
- ActionInstanceStateEnum[ActionInstanceStateEnum["FinishRouteUntriggerStart"] = 22] = "FinishRouteUntriggerStart";
29
- ActionInstanceStateEnum[ActionInstanceStateEnum["FinishRouteUntriggerEndFinal"] = 23] = "FinishRouteUntriggerEndFinal";
30
- ActionInstanceStateEnum[ActionInstanceStateEnum["FinishRouteUntriggerTimeoutFinal"] = 24] = "FinishRouteUntriggerTimeoutFinal";
31
- })(ActionInstanceStateEnum || (ActionInstanceStateEnum = {}));
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLWluc3RhbmNlLXN0YXRlLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vdGFibGV2aWV3L3NyYy9hY3Rpb24vbW9kZWxzL2V4ZWN1dGlvbi9hY3Rpb24taW5zdGFuY2Utc3RhdGUubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxNQUFNLENBQU4sSUFBWSx1QkEwQlg7QUExQkQsV0FBWSx1QkFBdUI7SUFDL0IscUZBQVksQ0FBQTtJQUNaLGlGQUFVLENBQUE7SUFDViwyRkFBZSxDQUFBO0lBQ2YsdUZBQWEsQ0FBQTtJQUNiLGlGQUFVLENBQUE7SUFDViw2RUFBUSxDQUFBO0lBQ1IsaUZBQVUsQ0FBQTtJQUNWLHFHQUFvQixDQUFBO0lBQ3BCLDZHQUF3QixDQUFBO0lBQ3hCLDZHQUF3QixDQUFBO0lBQ3hCLDhFQUFRLENBQUE7SUFDUiwwRUFBTSxDQUFBO0lBQ04sOEVBQVEsQ0FBQTtJQUNSLDRGQUFlLENBQUE7SUFDZix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aW5pc2hSb3V0ZVVudHJpZ2dlclN0YXJ0LFxuICAgIEZpbmlzaFJvdXRlVW50cmlnZ2VyRW5kRmluYWwsXG4gICAgRmluaXNoUm91dGVVbnRyaWdnZXJUaW1lb3V0RmluYWxcbn1cbiJdfQ==
@@ -1,19 +0,0 @@
1
- import { SortMeta } from 'primeng/api';
2
- import { CommonsFilterMetadata } from '@mediusinc/mng-commons/core';
3
- import * as i0 from "@angular/core";
4
- export declare class DataListService<Item> {
5
- sortMeta: import("@angular/core").WritableSignal<SortMeta[] | null>;
6
- filterMeta: import("@angular/core").WritableSignal<Record<string, CommonsFilterMetadata>>;
7
- rowsPerPageOptions: import("@angular/core").WritableSignal<number[]>;
8
- rows: import("@angular/core").WritableSignal<number>;
9
- offset: import("@angular/core").WritableSignal<number>;
10
- globalFilterFields: import("@angular/core").WritableSignal<string[]>;
11
- private _data;
12
- private _count;
13
- data: import("@angular/core").Signal<Item[]>;
14
- count: import("@angular/core").Signal<number>;
15
- loading: import("@angular/core").WritableSignal<boolean>;
16
- setData(data: Item[], count?: number): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DataListService<any>, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<DataListService<any>>;
19
- }
@@ -1,30 +0,0 @@
1
- /**
2
- * States of action. Enums ending with `*Final` are supposed to be final.
3
- */
4
- export declare enum ActionInstanceStateEnum {
5
- TriggerStart = 0,// action was triggered (click or direct)
6
- TriggerEnd = 1,
7
- ActivationStart = 2,// action activation started (direct, event or editor)
8
- ActivationEnd = 3,// action activation ended
9
- FetchStart = 4,// fetch started
10
- FetchEnd = 5,// fetch ended
11
- FetchError = 6,// fetch error
12
- RunConfirmationStart = 7,// confirmation for run is started
13
- RunConfirmationEndAccept = 8,// confirmation accepted
14
- RunConfirmationEndReject = 9,// confirmation rejected
15
- RunStart = 10,// action was run by calling main function
16
- RunEnd = 11,// action run function executed
17
- RunError = 12,// action run function executed with error
18
- NextActionStart = 13,// next action started
19
- NextActionEnd = 14,// next action finished
20
- ErrorActionStart = 15,// error action started
21
- ErrorActionEnd = 16,// error action finished
22
- FinishSuccessFinal = 17,// action executed successfully
23
- FinishErrorFinal = 18,// action executed with error
24
- FinishDismissedFinal = 19,// action was dismissed by user
25
- FinishSuccessReactivateFinal = 20,// action executed successfully, another instance will directly start from previous
26
- FinishComponentDestroyFinal = 21,// action was dismissed by destroying component that was executing it
27
- FinishRouteUntriggerStart = 22,
28
- FinishRouteUntriggerEndFinal = 23,
29
- FinishRouteUntriggerTimeoutFinal = 24
30
- }