@mediusinc/mng-commons 6.2.0-rc.0 → 7.0.0-rc.0
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/core/index.d.ts +1743 -84
- package/fesm2022/mediusinc-mng-commons-core.mjs +104 -87
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-filter.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +97 -97
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-model-class.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-model.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api-class.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-Dvenjj9n.mjs +30 -0
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-Dvenjj9n.mjs.map +1 -0
- package/fesm2022/{mediusinc-mng-commons-table-mediusinc-mng-commons-table-8TdW6NCC.mjs → mediusinc-mng-commons-table-mediusinc-mng-commons-table-DFcdSUCN.mjs} +183 -186
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-DFcdSUCN.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table.mjs +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api-class.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +3 -3
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +305 -289
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/filter/index.d.ts +398 -5
- package/form/api/index.d.ts +134 -7
- package/form/index.d.ts +301 -6
- package/index.d.ts +11 -1
- package/model/class/index.d.ts +25 -4
- package/model/index.d.ts +71 -5
- package/package.json +10 -10
- package/table/api/class/index.d.ts +77 -5
- package/table/api/index.d.ts +1161 -14
- package/table/index.d.ts +545 -17
- package/tableview/api/class/index.d.ts +141 -10
- package/tableview/api/index.d.ts +2542 -63
- package/tableview/index.d.ts +1274 -54
- package/version-info.json +5 -5
- package/core/action/action-data.model.d.ts +0 -3
- package/core/action/action-parameters.model.d.ts +0 -44
- package/core/components/notification/notification-wrapper.component.d.ts +0 -14
- package/core/data-list/data-list-params-helpers.d.ts +0 -93
- package/core/data-list/data-list.model.d.ts +0 -28
- package/core/data-list/filter-match.model.d.ts +0 -36
- package/core/data-list/filter-metadata.model.d.ts +0 -20
- package/core/data-providers/base.data-provider.d.ts +0 -17
- package/core/data-providers/lookup.data-provider.d.ts +0 -10
- package/core/descriptors/action.descriptor.d.ts +0 -12
- package/core/descriptors/column.descriptor.d.ts +0 -3
- package/core/descriptors/editor.descriptor.d.ts +0 -11
- package/core/descriptors/enum.descriptor.d.ts +0 -6
- package/core/descriptors/filter.descriptor.d.ts +0 -3
- package/core/descriptors/lookup.descriptor.d.ts +0 -12
- package/core/descriptors/model.descriptor.d.ts +0 -5
- package/core/descriptors/table.descriptor.d.ts +0 -11
- package/core/descriptors/tableview.descriptor.d.ts +0 -11
- package/core/directives/component.directive.d.ts +0 -18
- package/core/directives/rerender.directive.d.ts +0 -9
- package/core/directives/template.directive.d.ts +0 -8
- package/core/enum/enum-helpers.d.ts +0 -54
- package/core/enum/enum.model.d.ts +0 -8
- package/core/error/error-handler.d.ts +0 -6
- package/core/error/error-helpers.d.ts +0 -136
- package/core/error/error.model.d.ts +0 -53
- package/core/helpers/coercion.d.ts +0 -10
- package/core/helpers/date.d.ts +0 -14
- package/core/helpers/notification.d.ts +0 -18
- package/core/helpers/number.d.ts +0 -5
- package/core/helpers/object.d.ts +0 -27
- package/core/helpers/route.d.ts +0 -34
- package/core/helpers/string.d.ts +0 -7
- package/core/helpers/templates.d.ts +0 -3
- package/core/helpers/type-helpers.d.ts +0 -37
- package/core/i18n/i18n-common.d.ts +0 -6
- package/core/i18n/i18n-error.d.ts +0 -3
- package/core/i18n/i18n-type.d.ts +0 -11
- package/core/log/log-publisher-console.service.d.ts +0 -4
- package/core/log/log.model.d.ts +0 -40
- package/core/log/logger.service.d.ts +0 -33
- package/core/models/class-attribute.model.d.ts +0 -6
- package/core/models/class-service.model.d.ts +0 -7
- package/core/models/getter.model.d.ts +0 -2
- package/core/models/i18n.model.d.ts +0 -1
- package/core/models/menu.model.d.ts +0 -42
- package/core/models/user.model.d.ts +0 -8
- package/core/models/version.model.d.ts +0 -31
- package/core/pipes/boolean.pipe.d.ts +0 -7
- package/core/pipes/class-map.pipe.d.ts +0 -7
- package/core/pipes/enum.pipe.d.ts +0 -8
- package/core/pipes/enumerate-async.pipe.d.ts +0 -9
- package/core/pipes/enumerate.pipe.d.ts +0 -16
- package/core/pipes/getter.pipe.d.ts +0 -8
- package/core/pipes/i18n-property.pipe.d.ts +0 -8
- package/core/pipes/json-path.pipe.d.ts +0 -13
- package/core/pipes/parametrize.pipe.d.ts +0 -16
- package/core/pipes/template.pipe.d.ts +0 -8
- package/core/provide.d.ts +0 -13
- package/core/reactivity/effect.d.ts +0 -16
- package/core/reflect/type-enum-decorator.d.ts +0 -2
- package/core/reflect/type-enum-metadata.d.ts +0 -32
- package/core/registry/registry.model.d.ts +0 -8
- package/core/registry/type-registry.d.ts +0 -27
- package/core/router/route-builder.d.ts +0 -187
- package/core/router/router.model.d.ts +0 -13
- package/core/router/routes-builder.d.ts +0 -33
- package/core/rxjs/map-data-list-result-operator.d.ts +0 -9
- package/core/security/permission-helpers.d.ts +0 -3
- package/core/security/permission.guard.d.ts +0 -2
- package/core/security/permission.service.d.ts +0 -25
- package/core/security/permissions.model.d.ts +0 -82
- package/core/services/commons-configuration.service.d.ts +0 -81
- package/core/services/commons-init.service.d.ts +0 -30
- package/core/services/commons-router.service.d.ts +0 -37
- package/core/services/commons-storage.service.d.ts +0 -12
- package/core/services/commons.service.d.ts +0 -47
- package/core/services/providers/commons-init.provider.d.ts +0 -4
- package/core/services/tokens/browser-storage.token.d.ts +0 -2
- package/core/services/tokens/commons-init.token.d.ts +0 -3
- package/core/services/tokens/log-publisher.token.d.ts +0 -3
- package/core/services/tokens/module-config.token.d.ts +0 -28
- package/core/styles/style-constants.d.ts +0 -11
- package/core/styles/style.model.d.ts +0 -18
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-CCyGSxaD.mjs +0 -30
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-CCyGSxaD.mjs.map +0 -1
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-8TdW6NCC.mjs.map +0 -1
- package/filter/descriptors/filter-generic.descriptor.d.ts +0 -14
- package/filter/descriptors/filter-lookup.descriptor.d.ts +0 -97
- package/filter/descriptors/filter.descriptor.d.ts +0 -264
- package/filter/models/filter-generic-property.model.d.ts +0 -7
- package/filter/models/filter.model.d.ts +0 -16
- package/form/api/data-providers/lookup-data-provider.factory.d.ts +0 -19
- package/form/api/data-providers/lookup.data-provider.d.ts +0 -7
- package/form/api/descriptors/action-button.descriptor.d.ts +0 -23
- package/form/api/descriptors/button-style.builder.d.ts +0 -54
- package/form/api/models/button.model.d.ts +0 -19
- package/form/api/models/empty-value.model.d.ts +0 -7
- package/form/api/models/trim.model.d.ts +0 -1
- package/form/components/autocomplete/autocomplete.component.d.ts +0 -99
- package/form/components/date-range/date-range.component.d.ts +0 -37
- package/form/components/dropdown/dropdown.component.d.ts +0 -89
- package/form/components/number-range/number-range.component.d.ts +0 -35
- package/form/directives/input-empty-value.directive.d.ts +0 -40
- package/form/directives/input-trim.directive.d.ts +0 -9
- package/model/class/data-providers/base-from-class-data-provider.factory.d.ts +0 -3
- package/model/class/descriptors/model-class.descriptor.d.ts +0 -12
- package/model/class/descriptors/type-class.descriptor.d.ts +0 -3
- package/model/class/helpers/model.d.ts +0 -4
- package/model/data-providers/base-from-type-data-provider.factory.d.ts +0 -15
- package/model/descriptors/enum.descriptor.d.ts +0 -13
- package/model/descriptors/model.descriptor.d.ts +0 -25
- package/model/descriptors/type.descriptor.d.ts +0 -3
- package/model/helpers/i18n.d.ts +0 -13
- package/provide.d.ts +0 -7
- package/table/api/class/class-table-attribute-converter.d.ts +0 -15
- package/table/api/class/class-table-attribute.model.d.ts +0 -8
- package/table/api/class/class-table-data-provider.factory.d.ts +0 -4
- package/table/api/class/class-table-descriptor-helpers.d.ts +0 -42
- package/table/api/class/class-table-descriptor.factory.d.ts +0 -11
- package/table/api/data-providers/table-data-provider.factory.d.ts +0 -19
- package/table/api/data-providers/table.data-provider.d.ts +0 -27
- package/table/api/descriptors/column.descriptor.d.ts +0 -269
- package/table/api/descriptors/sort.descriptor.d.ts +0 -39
- package/table/api/descriptors/table-descriptor.factory.d.ts +0 -12
- package/table/api/descriptors/table.descriptor.d.ts +0 -672
- package/table/api/helpers/column-converter.d.ts +0 -7
- package/table/api/helpers/table-data-provider-descriptor-convert.d.ts +0 -20
- package/table/api/models/column-value.model.d.ts +0 -7
- package/table/api/models/column.model.d.ts +0 -18
- package/table/api/models/row-expandable-component.model.d.ts +0 -4
- package/table/api/models/table-columns.model.d.ts +0 -42
- package/table/api/models/table-event.model.d.ts +0 -18
- package/table/api/models/table.model.d.ts +0 -22
- package/table/components/column-filter/column-filter.component.d.ts +0 -81
- package/table/components/column-toggle/column-toggle.component.d.ts +0 -12
- package/table/components/column-value/column-value.component.d.ts +0 -33
- package/table/components/filter/filter-active-tag/filter-active-tag.component.d.ts +0 -20
- package/table/components/filter/filter-form/filter-form.component.d.ts +0 -56
- package/table/components/filter/filter-overlay-with-tag/filter-overlay-with-tag.component.d.ts +0 -54
- package/table/components/table/table.component.d.ts +0 -83
- package/table/helpers/filters.d.ts +0 -37
- package/table/helpers/notification.d.ts +0 -13
- package/table/helpers/table-layout-prefs.d.ts +0 -7
- package/table/helpers/table.d.ts +0 -6
- package/table/models/column-preferences.model.d.ts +0 -12
- package/table/models/filter.model.d.ts +0 -36
- package/table/pipes/filter-value.pipe.d.ts +0 -19
- package/table/pipes/locale-default-row-class.pipe.d.ts +0 -10
- package/table/pipes/table-column-filter-class.pipe.d.ts +0 -8
- package/table/provide.d.ts +0 -15
- package/table/services/table-data.service.d.ts +0 -37
- package/table/services/table-feature-config.token.d.ts +0 -7
- package/table/services/table-metadata.service.d.ts +0 -31
- package/table/services/table-preferences.service.d.ts +0 -25
- package/tableview/action/components/action/action.component.d.ts +0 -63
- package/tableview/action/components/editor/action-editor.component.d.ts +0 -32
- package/tableview/action/components/editor/injector-context/action-editor-injector-context.component.d.ts +0 -79
- package/tableview/action/components/localization/data-language-dropdown.component.d.ts +0 -19
- package/tableview/action/components/route/action-route.component.d.ts +0 -26
- package/tableview/action/components/table/action-table.component.d.ts +0 -50
- package/tableview/action/guards/unsaved-changes.guard.d.ts +0 -3
- package/tableview/action/helpers/action-execution.d.ts +0 -7
- package/tableview/action/helpers/i18n.d.ts +0 -47
- package/tableview/action/helpers/inject.d.ts +0 -39
- package/tableview/action/helpers/notification.d.ts +0 -40
- package/tableview/action/helpers/styles.d.ts +0 -5
- package/tableview/action/models/action-editor-dialog-data.model.d.ts +0 -11
- package/tableview/action/models/can-component-deactivate.model.d.ts +0 -4
- package/tableview/action/models/execution/action-context.model.d.ts +0 -43
- package/tableview/action/models/execution/action-instance.model.d.ts +0 -56
- package/tableview/action/services/action-error-mapper.service.d.ts +0 -18
- package/tableview/action/services/action-executor.service.d.ts +0 -174
- package/tableview/action/services/component-action-executor.service.d.ts +0 -9
- package/tableview/action/services/data-provider-executor.service.d.ts +0 -23
- package/tableview/action/services/navigation.service.d.ts +0 -15
- package/tableview/action/services/providers/provide-action-executor.d.ts +0 -2
- package/tableview/action/services/providers/provide-view-container.d.ts +0 -2
- package/tableview/action/services/root-action-executor.service.d.ts +0 -9
- package/tableview/action/services/tokens/action-editor.token.d.ts +0 -2
- package/tableview/action/services/view-container.service.d.ts +0 -25
- package/tableview/api/action/descriptors/action-descriptor.factory.d.ts +0 -25
- package/tableview/api/action/descriptors/action-editor-descriptor.factory.d.ts +0 -24
- package/tableview/api/action/descriptors/action-editor.descriptor.d.ts +0 -105
- package/tableview/api/action/descriptors/action-link-descriptor.factory.d.ts +0 -23
- package/tableview/api/action/descriptors/action-link.descriptor.d.ts +0 -27
- package/tableview/api/action/descriptors/action.descriptor.d.ts +0 -118
- package/tableview/api/action/descriptors/editor-action-descriptor.factory.d.ts +0 -21
- package/tableview/api/action/descriptors/editor-action-editor-descriptor.factory.d.ts +0 -21
- package/tableview/api/action/descriptors/table-action-descriptor.factory.d.ts +0 -36
- package/tableview/api/action/descriptors/table-action-editor-descriptor.factory.d.ts +0 -40
- package/tableview/api/action/helpers/data-provider-executors.d.ts +0 -23
- package/tableview/api/action/models/action-component.model.d.ts +0 -12
- package/tableview/api/action/models/action-confirmation.model.d.ts +0 -16
- package/tableview/api/action/models/action-descriptor.types.d.ts +0 -10
- package/tableview/api/action/models/action-editor.model.d.ts +0 -4
- package/tableview/api/action/models/action-error.model.d.ts +0 -14
- package/tableview/api/action/models/action.type.d.ts +0 -21
- package/tableview/api/action/models/execution/action-context-validation.model.d.ts +0 -11
- package/tableview/api/action/models/execution/action-context.model.d.ts +0 -25
- package/tableview/api/action/models/execution/action-execution-error.model.d.ts +0 -4
- package/tableview/api/action/models/execution/action-instance-state.model.d.ts +0 -30
- package/tableview/api/action/models/execution/action-instance.model.d.ts +0 -32
- package/tableview/api/action/models/execution/view-container.model.d.ts +0 -22
- package/tableview/api/action/models/tableview-action-default-categories.model.d.ts +0 -10
- package/tableview/api/action/services/data-provider-executor.service.d.ts +0 -39
- package/tableview/api/action/services/tokens/data-language-dropdown.token.d.ts +0 -2
- package/tableview/api/class/editor/class-editor-attribute-converter.d.ts +0 -21
- package/tableview/api/class/editor/class-editor-attribute.model.d.ts +0 -7
- package/tableview/api/class/editor/class-editor-data-provider.factory.d.ts +0 -4
- package/tableview/api/class/editor/class-editor-descriptor-helpers.d.ts +0 -40
- package/tableview/api/class/editor/class-editor-descriptor.factory.d.ts +0 -11
- package/tableview/api/class/tableview/class-tableview-attribute-converter.d.ts +0 -8
- package/tableview/api/class/tableview/class-tableview-attribute.model.d.ts +0 -3
- package/tableview/api/class/tableview/class-tableview-data-provider.factory.d.ts +0 -4
- package/tableview/api/class/tableview/class-tableview-descriptor-helpers.d.ts +0 -41
- package/tableview/api/class/tableview/class-tableview-descriptor.factory.d.ts +0 -12
- package/tableview/api/editor/data-providers/editor-data-provider.factory.d.ts +0 -19
- package/tableview/api/editor/data-providers/editor.data-provider.d.ts +0 -119
- package/tableview/api/editor/descriptors/editor-descriptor.factory.d.ts +0 -11
- package/tableview/api/editor/descriptors/editor.descriptor.d.ts +0 -254
- package/tableview/api/editor/descriptors/field-action.descriptor.d.ts +0 -21
- package/tableview/api/editor/descriptors/field-base.descriptor.d.ts +0 -147
- package/tableview/api/editor/descriptors/field-group.descriptor.d.ts +0 -58
- package/tableview/api/editor/descriptors/field-lookup.descriptor.d.ts +0 -80
- package/tableview/api/editor/descriptors/field-many.descriptor.d.ts +0 -56
- package/tableview/api/editor/descriptors/field-validation.descriptor.d.ts +0 -16
- package/tableview/api/editor/descriptors/field.descriptor.d.ts +0 -239
- package/tableview/api/editor/descriptors/wrappers/editor-descriptor-nested-object-wrapper.d.ts +0 -25
- package/tableview/api/editor/models/editor-fields.model.d.ts +0 -42
- package/tableview/api/editor/models/editor.model.d.ts +0 -7
- package/tableview/api/editor/models/field-action-context.model.d.ts +0 -26
- package/tableview/api/editor/models/field-image-preview.model.d.ts +0 -4
- package/tableview/api/editor/models/field-validation.model.d.ts +0 -26
- package/tableview/api/editor/models/field.model.d.ts +0 -56
- package/tableview/api/editor/models/form-editor.event.d.ts +0 -74
- package/tableview/api/editor/models/form-editor.interface.d.ts +0 -53
- package/tableview/api/editor/models/formly-custom-field.model.d.ts +0 -30
- package/tableview/api/editor/models/formly-field.model.d.ts +0 -42
- package/tableview/api/editor/models/formly-options.model.d.ts +0 -15
- package/tableview/api/editor/models/radio.model.d.ts +0 -6
- package/tableview/api/tableview/data-providers/tableview-data-provider.factory.d.ts +0 -24
- package/tableview/api/tableview/data-providers/tableview.data-provider.d.ts +0 -33
- package/tableview/api/tableview/descriptors/tableview-descriptor.factory.d.ts +0 -23
- package/tableview/api/tableview/descriptors/tableview.descriptor.d.ts +0 -153
- package/tableview/api/tableview/helpers/files-export.d.ts +0 -4
- package/tableview/api/tableview/helpers/tableview-create.d.ts +0 -29
- package/tableview/api/tableview/helpers/tableview-data-provider-descriptor-convert.d.ts +0 -20
- package/tableview/api/tableview/helpers/tableview-default-actions.d.ts +0 -93
- package/tableview/api/tableview/helpers/tableview-input-builder.d.ts +0 -192
- package/tableview/api/tableview/models/tableview-descriptor-fields-manage-helper.type.d.ts +0 -9
- package/tableview/api/tableview/models/tableview-descriptor-helper.type.d.ts +0 -2
- package/tableview/api/tableview/models/tableview-input.model.d.ts +0 -8
- package/tableview/api/tableview/models/tableview-route.model.d.ts +0 -20
- package/tableview/editor/components/editor/auto-save-status/auto-save-status.component.d.ts +0 -10
- package/tableview/editor/components/editor/form-editor.component.d.ts +0 -117
- package/tableview/editor/components/formly/constants.d.ts +0 -1
- package/tableview/editor/components/formly/fields/formly-field-action/formly-field-action.component.d.ts +0 -15
- package/tableview/editor/components/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +0 -11
- package/tableview/editor/components/formly/fields/formly-field-custom/formly-field-custom.component.d.ts +0 -10
- package/tableview/editor/components/formly/fields/formly-field-datepicker/formly-field-datepicker.component.d.ts +0 -24
- package/tableview/editor/components/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +0 -10
- package/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +0 -12
- package/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.d.ts +0 -33
- package/tableview/editor/components/formly/fields/formly-field-label/formly-field-label.component.d.ts +0 -10
- package/tableview/editor/components/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +0 -36
- package/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +0 -22
- package/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +0 -37
- package/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +0 -10
- package/tableview/editor/components/formly/fields/formly-field-type.abstract.component.d.ts +0 -11
- package/tableview/editor/components/formly/fields/formly-group-type.abstract.component.d.ts +0 -7
- package/tableview/editor/components/formly/fields/formly-type.abstract.component.d.ts +0 -20
- package/tableview/editor/components/formly/pipes/formly-field-label.pipe.d.ts +0 -8
- package/tableview/editor/components/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.d.ts +0 -18
- package/tableview/editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +0 -16
- package/tableview/editor/helpers/editor-autosave.d.ts +0 -17
- package/tableview/editor/helpers/editor-field.d.ts +0 -2
- package/tableview/editor/helpers/editor-formly.d.ts +0 -11
- package/tableview/editor/helpers/editor-validators.d.ts +0 -7
- package/tableview/editor/helpers/field-create.d.ts +0 -9
- package/tableview/editor/helpers/formly-config.d.ts +0 -18
- package/tableview/editor/helpers/notification.d.ts +0 -4
- package/tableview/editor/models/editor-auto-save-preview.model.d.ts +0 -10
- package/tableview/editor/models/formly-config.model.d.ts +0 -14
- package/tableview/editor/models/formly.model.d.ts +0 -23
- package/tableview/editor/services/form-editor.service.d.ts +0 -39
- package/tableview/editor/services/formly-config.provider.d.ts +0 -5
- package/tableview/provide.d.ts +0 -15
- package/tableview/tableview/components/route/tableview-route.component.d.ts +0 -7
- package/tableview/tableview/components/tableview/tableview.component.d.ts +0 -29
- package/tableview/tableview/router/tableview-route-builder.d.ts +0 -43
- package/tableview/tableview/services/tableview-feature-config.token.d.ts +0 -18
package/tableview/index.d.ts
CHANGED
|
@@ -1,54 +1,1274 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
import * as _angular_router from '@angular/router';
|
|
2
|
+
import { ActivatedRoute, CanDeactivateFn, Router, DefaultExport, Route } from '@angular/router';
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { Injector, OnDestroy, InputSignal, InputSignalWithTransform, WritableSignal, Provider, OnInit, AfterViewInit, ElementRef, Type, Signal, QueryList, TemplateRef, InjectionToken, DestroyRef, ChangeDetectorRef } from '@angular/core';
|
|
5
|
+
import { Confirmation, ToastMessageOptions, MenuItem, MessageService, ConfirmationService } from 'primeng/api';
|
|
6
|
+
import { Menu } from 'primeng/menu';
|
|
7
|
+
import * as _mediusinc_mng_commons_core from '@mediusinc/mng-commons/core';
|
|
8
|
+
import { IDataProvider, ActionParameters, ICommonsError, IdType, ActionData, DataListParams, CommonsService, DataListResult, TemplateDirective, I18nMissingTranslationStrategy, ParametrizePipe, LoggerService, Nullable, KeyofAndOfType, RouteBuilder, APermissions, CommonsFeature } from '@mediusinc/mng-commons/core';
|
|
9
|
+
import * as _mediusinc_mng_commons_tableview_api from '@mediusinc/mng-commons/tableview/api';
|
|
10
|
+
import { IViewContainer, ActionDescriptorInst, EditorResetEvent, ViewContainerEditorCloseEvent, IActionContext, IActionInstance, IActionEditorComponent, ActionInstanceStateEnum, ActionExecutionError, ActionLinkDescriptorInst, IActionComponent, IFormEditorComponent, EditorDescriptorInst, CommonsFormlyFormOptions, FormEditorGetFormValueOpts, FormEditorResetFormModelOpts, FormEditorSubmitEvent, FormEditorSetFieldValueOpts, FormEditorPatchFieldValueOpts, FormEditorResetFieldValueOpts, ActionEditorDescriptorInst, ActionActivationTriggerEnum, ActionEditorSubmitTypeEnum, IActionEditorContext, ActionNotificationType, DataProviderExecutor, ActionContextValidation, RunFetchFromDataProviderReasonType, AGenericFieldDescriptor, CommonsFormlyFieldConfig, CommonsFormlyFormState, AFieldDescriptor, FieldActionDescriptor, FieldActionResultMessage, FieldLookupDescriptor, FieldInputDescriptor, AFieldGroupDescriptor, FieldGroupDescriptor, FieldGroupTypeEnum, FieldInputTypeEnum, FieldLookupConfig, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, FieldTabGroupDescriptor, FieldValidationDescriptor, CommonsFormlyValidation, FieldInputDatePickerDynamicMinMaxFnType, FieldValidator, TableviewDescriptorType, TableviewDescriptorInst, EditorDescriptorNestedObjectWrapper, FieldLookupProviderType, TableviewInput, ITableviewDataProvider, TableviewRouteData } from '@mediusinc/mng-commons/tableview/api';
|
|
11
|
+
import { DynamicDialogRef, DynamicDialogConfig, DialogService } from 'primeng/dynamicdialog';
|
|
12
|
+
import * as rxjs from 'rxjs';
|
|
13
|
+
import { Observable, Subscription, ReplaySubject, BehaviorSubject } from 'rxjs';
|
|
14
|
+
import { TableReloadEvent, TableDescriptorInst, ITableDataProvider, TableLoadEvent, TableCellClickEvent } from '@mediusinc/mng-commons/table/api';
|
|
15
|
+
import * as _mediusinc_mng_commons_tableview from '@mediusinc/mng-commons/tableview';
|
|
16
|
+
import * as _ngx_formly_core from '@ngx-formly/core';
|
|
17
|
+
import { FormlyFormOptions, FormlyFieldConfig, FieldType, FieldWrapper, FormlyConfig, ConfigOption } from '@ngx-formly/core';
|
|
18
|
+
import { FormGroup, AbstractControl, UntypedFormGroup, FormControl, FormArray, ValidationErrors } from '@angular/forms';
|
|
19
|
+
import { LookupDataProviderInst } from '@mediusinc/mng-commons/form/api';
|
|
20
|
+
import { TableRowReorderEvent } from 'primeng/table';
|
|
21
|
+
import { TableComponent } from '@mediusinc/mng-commons/table';
|
|
22
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
23
|
+
import { ModelDescriptor, TypeDescriptor } from '@mediusinc/mng-commons/model';
|
|
24
|
+
import { DatePipe } from '@angular/common';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Should be used with providers defined within component.
|
|
28
|
+
*/
|
|
29
|
+
declare class ViewContainer<Item, Service = undefined> implements IViewContainer<Item, Service, ActionInstance<Item, Service>> {
|
|
30
|
+
dataProvider: _angular_core.WritableSignal<IDataProvider<Item, Service> | undefined>;
|
|
31
|
+
routeTriggeredActionInstance: _angular_core.WritableSignal<ActionInstance<Item, Service> | undefined>;
|
|
32
|
+
actions: _angular_core.WritableSignal<ActionDescriptorInst<any, any, any, any, any>[]>;
|
|
33
|
+
private _tableReloadSubject;
|
|
34
|
+
private _editorResetSubject;
|
|
35
|
+
private _editorCloseSubject;
|
|
36
|
+
get tableReload$(): Observable<TableReloadEvent>;
|
|
37
|
+
reloadTable(event?: TableReloadEvent): void;
|
|
38
|
+
get editorReset$(): Observable<EditorResetEvent<Item>>;
|
|
39
|
+
resetEditor(event?: EditorResetEvent<Item> | undefined): void;
|
|
40
|
+
get editorClose$(): Observable<ViewContainerEditorCloseEvent<Item>>;
|
|
41
|
+
closeEditor(event?: ViewContainerEditorCloseEvent<Item>): void;
|
|
42
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ViewContainer<any, any>, never>;
|
|
43
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ViewContainer<any, any>>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Class containing all main data for action to be executed in run/fetch/submit states.
|
|
48
|
+
*/
|
|
49
|
+
declare class ActionContext<Item, ParametersItem, Service = undefined> implements IActionContext<Item, ParametersItem, Service, ActionInstance<Item, Service>, ViewContainer<Item, Service>> {
|
|
50
|
+
readonly injector: Injector;
|
|
51
|
+
readonly instance: ActionInstance<Item, Service>;
|
|
52
|
+
readonly parameters: ActionParameters<ParametersItem>;
|
|
53
|
+
readonly functionName: 'run' | 'fetch' | 'submit';
|
|
54
|
+
readonly serviceInstance: Service;
|
|
55
|
+
readonly dataProvider?: IDataProvider<Item, Service> | undefined;
|
|
56
|
+
readonly viewContainer?: ViewContainer<Item, Service> | undefined;
|
|
57
|
+
private readonly executionSubject;
|
|
58
|
+
private readonly executionIsRunningSubject;
|
|
59
|
+
private readonly logger;
|
|
60
|
+
readonly contextLongName: string;
|
|
61
|
+
previousActionInstance?: IActionInstance<any, any>;
|
|
62
|
+
confirmation?: Confirmation;
|
|
63
|
+
notification?: ToastMessageOptions;
|
|
64
|
+
runSubscription?: Subscription;
|
|
65
|
+
dataProviderSource: ActionDataProviderSource;
|
|
66
|
+
constructor(injector: Injector, instance: ActionInstance<Item, Service>, parameters: ActionParameters<ParametersItem>, functionName: 'run' | 'fetch' | 'submit', serviceInstance: Service, dataProvider?: IDataProvider<Item, Service> | undefined, viewContainer?: ViewContainer<Item, Service> | undefined, executionSubject?: ReplaySubject<Item | null | undefined>, executionIsRunningSubject?: BehaviorSubject<boolean>);
|
|
67
|
+
get execution$(): rxjs.Observable<Item | null | undefined>;
|
|
68
|
+
get executionIsRunning$(): rxjs.Observable<boolean>;
|
|
69
|
+
executionStart(): void;
|
|
70
|
+
executionNext(next: Item | null | undefined, finish?: boolean): void;
|
|
71
|
+
executionComplete(): void;
|
|
72
|
+
executionError(err: ICommonsError): void;
|
|
73
|
+
finish(): void;
|
|
74
|
+
isClosed(): boolean;
|
|
75
|
+
}
|
|
76
|
+
declare enum ActionDataProviderSource {
|
|
77
|
+
Undefined = 0,
|
|
78
|
+
ViewContainer = 1,
|
|
79
|
+
Descriptor = 2,
|
|
80
|
+
ParameterOrInput = 3
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Action execution instance containing data about execution state of action
|
|
85
|
+
*/
|
|
86
|
+
declare class ActionInstance<Item, Service = undefined> implements IActionInstance<Item, Service> {
|
|
87
|
+
readonly instanceId: string;
|
|
88
|
+
readonly instanceLongName: string;
|
|
89
|
+
readonly action: ActionDescriptorInst<Item, Service, any, any, any>;
|
|
90
|
+
readonly createdDate: Date;
|
|
91
|
+
private readonly logger;
|
|
92
|
+
readonly isRunLoadingSubject: BehaviorSubject<boolean>;
|
|
93
|
+
triggerParameters?: ActionParameters<Item>;
|
|
94
|
+
activationParameters?: ActionParameters<any>;
|
|
95
|
+
private readonly contexts;
|
|
96
|
+
private readonly executionSubject;
|
|
97
|
+
private readonly executionIsRunningSubject;
|
|
98
|
+
private readonly stateSubject;
|
|
99
|
+
private readonly resultSubject;
|
|
100
|
+
private readonly errorSubject;
|
|
101
|
+
private contextExecutionSubscriptions;
|
|
102
|
+
private _result?;
|
|
103
|
+
private _error?;
|
|
104
|
+
activationDialogRef?: DynamicDialogRef;
|
|
105
|
+
activationEditorComponentRef?: IActionEditorComponent;
|
|
106
|
+
private _reactivationInstanceSubject;
|
|
107
|
+
reactivationPreviousInstance?: IActionInstance<Item, Service>;
|
|
108
|
+
previousInstance?: IActionInstance<any, any>;
|
|
109
|
+
nextActionInstance?: IActionInstance<any, any>;
|
|
110
|
+
errorActionInstance?: IActionInstance<Item, Service>;
|
|
111
|
+
constructor(action: ActionDescriptorInst<Item, Service, any, any, any>, state?: ActionInstanceStateEnum);
|
|
112
|
+
get isRunLoading$(): Observable<boolean>;
|
|
113
|
+
get context(): ActionContext<Item, any, Service> | undefined;
|
|
114
|
+
get execution$(): Observable<Item | null | undefined>;
|
|
115
|
+
get executionIsRunning$(): Observable<boolean>;
|
|
116
|
+
get state(): ActionInstanceStateEnum;
|
|
117
|
+
set state(state: ActionInstanceStateEnum);
|
|
118
|
+
get state$(): Observable<ActionInstanceStateEnum>;
|
|
119
|
+
get result(): Item | null | undefined;
|
|
120
|
+
set result(result: Item | null | undefined);
|
|
121
|
+
get result$(): Observable<Item | null>;
|
|
122
|
+
get error(): ActionExecutionError | undefined;
|
|
123
|
+
set error(error: ActionExecutionError | undefined);
|
|
124
|
+
get error$(): Observable<ActionExecutionError>;
|
|
125
|
+
set reactivationInstance(instance: IActionInstance<Item, Service> | undefined);
|
|
126
|
+
get reactivationInstance(): IActionInstance<Item, Service> | undefined;
|
|
127
|
+
get reactivationInstance$(): Observable<IActionInstance<Item, Service>>;
|
|
128
|
+
contextAt(idx: number): ActionContext<Item, any, Service> | undefined;
|
|
129
|
+
newContext(context: ActionContext<Item, any, Service>, finishPrevious?: boolean): void;
|
|
130
|
+
forceFinish(): void;
|
|
131
|
+
private finish;
|
|
132
|
+
isClosed(): boolean;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
declare class ActionComponent<Item = any, Service = undefined> implements OnDestroy {
|
|
136
|
+
#private;
|
|
137
|
+
private readonly routeService;
|
|
138
|
+
private readonly translate;
|
|
139
|
+
private readonly authorization;
|
|
140
|
+
private readonly actionExecutor;
|
|
141
|
+
private readonly viewContainer;
|
|
142
|
+
action: _angular_core.InputSignal<ActionDescriptorInst<Item, Service, any, any, any>>;
|
|
143
|
+
item: _angular_core.InputSignal<Item | undefined>;
|
|
144
|
+
itemId: _angular_core.InputSignal<IdType | undefined>;
|
|
145
|
+
actionData: _angular_core.InputSignal<ActionData | undefined>;
|
|
146
|
+
dataListParams: _angular_core.InputSignal<DataListParams<string, string> | undefined>;
|
|
147
|
+
dataProvider: _angular_core.InputSignal<IDataProvider<Item, Service> | undefined>;
|
|
148
|
+
hostComponent: _angular_core.InputSignal<any>;
|
|
149
|
+
routeInit: _angular_core.InputSignal<ActivatedRoute | undefined>;
|
|
150
|
+
inputDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
151
|
+
inputLoading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
152
|
+
selectedItems: _angular_core.InputSignal<Item[]>;
|
|
153
|
+
finish: _angular_core.OutputEmitterRef<ActionInstance<Item, Service>>;
|
|
154
|
+
subactionsMenu: _angular_core.Signal<Menu | undefined>;
|
|
155
|
+
hostClass: _angular_core.Signal<string>;
|
|
156
|
+
isHostHidden: _angular_core.Signal<boolean>;
|
|
157
|
+
loading: _angular_core.WritableSignal<boolean>;
|
|
158
|
+
private isVisibleSubscription?;
|
|
159
|
+
isVisible: _angular_core.WritableSignal<boolean>;
|
|
160
|
+
private isPermittedSubscription?;
|
|
161
|
+
isPermitted: _angular_core.WritableSignal<boolean>;
|
|
162
|
+
private isEnabledSubscription?;
|
|
163
|
+
isEnabled: _angular_core.WritableSignal<boolean>;
|
|
164
|
+
private labelSubscription?;
|
|
165
|
+
label: _angular_core.WritableSignal<string>;
|
|
166
|
+
private tooltipSubscription?;
|
|
167
|
+
tooltip: _angular_core.WritableSignal<string>;
|
|
168
|
+
actionLink: _angular_core.Signal<ActionLinkDescriptorInst<Item, Item> | undefined>;
|
|
169
|
+
hasNoTitle: _angular_core.Signal<boolean>;
|
|
170
|
+
private resultSubscription?;
|
|
171
|
+
private errorSubscription?;
|
|
172
|
+
private stateSubscription?;
|
|
173
|
+
private cmpInstSubscription?;
|
|
174
|
+
route: _angular_core.Signal<ActivatedRoute>;
|
|
175
|
+
routeData: _angular_core.Signal<_angular_router.Data | undefined>;
|
|
176
|
+
private routePermissions;
|
|
177
|
+
buttonClass: _angular_core.Signal<string>;
|
|
178
|
+
subactions: _angular_core.WritableSignal<MenuItem[]>;
|
|
179
|
+
private subactionSubscriptions;
|
|
180
|
+
private instance?;
|
|
181
|
+
constructor();
|
|
182
|
+
ngOnDestroy(): void;
|
|
183
|
+
triggerAction(action: ActionDescriptorInst<Item, Service>, parameters?: ActionParameters<Item>, event?: Event): void;
|
|
184
|
+
onCustomActionCmpInst(instance: IActionComponent<Item>): void;
|
|
185
|
+
private processSubscriptions;
|
|
186
|
+
private processSubactions;
|
|
187
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionComponent<any, any>, never>;
|
|
188
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionComponent<any, any>, "mng-action", never, { "action": { "alias": "action"; "required": true; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; "itemId": { "alias": "itemId"; "required": false; "isSignal": true; }; "actionData": { "alias": "actionData"; "required": false; "isSignal": true; }; "dataListParams": { "alias": "dataListParams"; "required": false; "isSignal": true; }; "dataProvider": { "alias": "dataProvider"; "required": false; "isSignal": true; }; "hostComponent": { "alias": "hostComponent"; "required": false; "isSignal": true; }; "routeInit": { "alias": "route"; "required": false; "isSignal": true; }; "inputDisabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inputLoading": { "alias": "loading"; "required": false; "isSignal": true; }; "selectedItems": { "alias": "selectedItems"; "required": false; "isSignal": true; }; }, { "finish": "finish"; }, never, never, true, never>;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface EditorAutoSavePreviewModel<Item> {
|
|
192
|
+
saved?: Item;
|
|
193
|
+
original?: Item;
|
|
194
|
+
savedAt?: Date;
|
|
195
|
+
}
|
|
196
|
+
type EditorAutoSaveStates = 'initial' | 'saved' | 'saving' | 'preview' | 'previewCurrent' | 'restored';
|
|
197
|
+
interface EditorAutoSaveStatus {
|
|
198
|
+
state: EditorAutoSaveStates;
|
|
199
|
+
timestamp?: Date;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare class FormEditorService<Item, ParentItem = any> implements IFormEditorComponent<Item, ParentItem> {
|
|
203
|
+
private readonly _parentForm?;
|
|
204
|
+
private _formComponent?;
|
|
205
|
+
get parent(): IFormEditorComponent<ParentItem> | undefined;
|
|
206
|
+
get parentService(): FormEditorService<ParentItem, any> | undefined;
|
|
207
|
+
get formComponent(): IFormEditorComponent<Item>;
|
|
208
|
+
get descriptor(): InputSignal<EditorDescriptorInst<Item>>;
|
|
209
|
+
get isFormDisabled(): InputSignalWithTransform<boolean, unknown>;
|
|
210
|
+
get formMessages(): WritableSignal<ToastMessageOptions[]>;
|
|
211
|
+
get form(): FormGroup<{
|
|
212
|
+
[K in keyof Item]: AbstractControl<Item[K]>;
|
|
213
|
+
}>;
|
|
214
|
+
get formUnsafe(): UntypedFormGroup;
|
|
215
|
+
get formlyOptions(): FormlyFormOptions & CommonsFormlyFormOptions<Item>;
|
|
216
|
+
get formlyFields(): FormlyFieldConfig[];
|
|
217
|
+
get formlyInitialItem(): any;
|
|
218
|
+
submit(): void;
|
|
219
|
+
getFormValue(opts?: FormEditorGetFormValueOpts): Item;
|
|
220
|
+
resetFormModel(item?: Item, opts?: FormEditorResetFormModelOpts): void;
|
|
221
|
+
getField(key: keyof Item): AbstractControl | null;
|
|
222
|
+
getFieldUnsafe(key: string): AbstractControl | null;
|
|
223
|
+
setFieldValue<Property extends keyof Item>(key: Property, value: Item[Property]): boolean;
|
|
224
|
+
setFieldValueUnsafe(key: string, value: any): boolean;
|
|
225
|
+
patchFieldValue<Property extends keyof Item>(key: Property, value: Item[Property]): boolean;
|
|
226
|
+
patchFieldValueUnsafe(key: string, value: any): boolean;
|
|
227
|
+
resetFieldValue<Property extends keyof Item>(key: Property, value?: Item[Property]): boolean;
|
|
228
|
+
resetFieldValueUnsafe(key: string, value?: any): boolean;
|
|
229
|
+
constructor(parentForm?: FormEditorService<ParentItem>);
|
|
230
|
+
init(formComponent: IFormEditorComponent<Item>): void;
|
|
231
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormEditorService<any, any>, never>;
|
|
232
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormEditorService<any, any>>;
|
|
233
|
+
}
|
|
234
|
+
declare function provideFormComponent(): Provider;
|
|
235
|
+
|
|
236
|
+
declare class FormEditorComponent<Item = any, ParentItem = any> implements IFormEditorComponent<Item, ParentItem>, OnInit, AfterViewInit, OnDestroy {
|
|
237
|
+
#private;
|
|
238
|
+
private readonly destroyRef;
|
|
239
|
+
private readonly elementRef;
|
|
240
|
+
private readonly formlyConfig;
|
|
241
|
+
private readonly translateService;
|
|
242
|
+
private readonly commons;
|
|
243
|
+
readonly cmpTypeName = "FormEditorComponent";
|
|
244
|
+
private readonly logger;
|
|
245
|
+
readonly formService: FormEditorService<Item, ParentItem>;
|
|
246
|
+
private readonly commonsStorageService;
|
|
247
|
+
private readonly router;
|
|
248
|
+
private autoSaveStorageKeyCompInit;
|
|
249
|
+
private autoSaveStorageKey;
|
|
250
|
+
descriptor: _angular_core.InputSignal<EditorDescriptorInst<Item, undefined>>;
|
|
251
|
+
submitLoading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
252
|
+
item: _angular_core.ModelSignal<Item | undefined>;
|
|
253
|
+
isFormDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
254
|
+
editorId: _angular_core.InputSignal<string | undefined>;
|
|
255
|
+
itemId: _angular_core.InputSignal<IdType | undefined>;
|
|
256
|
+
showAutoSaveStatus: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
257
|
+
formSubmit: _angular_core.OutputEmitterRef<FormEditorSubmitEvent<Item>>;
|
|
258
|
+
valueChange: _angular_core.OutputEmitterRef<Item>;
|
|
259
|
+
private autoSaveStatusSubject;
|
|
260
|
+
autoSaveStatus: _angular_core.OutputRef<EditorAutoSaveStatus>;
|
|
261
|
+
submitButtonElementRef: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
262
|
+
private focusThiefElRef;
|
|
263
|
+
private readonly _form;
|
|
264
|
+
private readonly _formlyStateDisabledSubject;
|
|
265
|
+
private readonly _formlyStateDisabled;
|
|
266
|
+
private readonly _formlyOptions;
|
|
267
|
+
private _formlyFields;
|
|
268
|
+
private _formlyInitialItem;
|
|
269
|
+
private initialItemInput;
|
|
270
|
+
private setterFields;
|
|
271
|
+
formMessages: _angular_core.WritableSignal<ToastMessageOptions[]>;
|
|
272
|
+
readonly restoreLocalStateButtonStyle: string;
|
|
273
|
+
readonly previewLocalStateButtonStyle: string;
|
|
274
|
+
readonly clearLocalStateButtonStyle: string;
|
|
275
|
+
autoSaveRestore: _angular_core.WritableSignal<EditorAutoSavePreviewModel<Item> | null>;
|
|
276
|
+
autoSave: _angular_core.Signal<EditorAutoSaveStatus | undefined>;
|
|
277
|
+
autoSavePreviewButtonLabel: _angular_core.Signal<"mngEditor.autoSave.restore.previewCurrent" | "mngEditor.autoSave.restore.previewAutosaved" | "mngEditor.autoSave.restore.preview">;
|
|
278
|
+
autoSaveShowRestore: _angular_core.Signal<boolean>;
|
|
279
|
+
private autoSavePreviewDisabledForm;
|
|
280
|
+
private autoSaveEventsSubscription?;
|
|
281
|
+
autofocusEnabled: _angular_core.Signal<boolean>;
|
|
282
|
+
get parent(): IFormEditorComponent<ParentItem, any> | undefined;
|
|
283
|
+
get form(): FormGroup<{
|
|
284
|
+
[K in keyof Item]: AbstractControl<Item[K]>;
|
|
285
|
+
}>;
|
|
286
|
+
get formUnsafe(): UntypedFormGroup;
|
|
287
|
+
get formlyOptions(): CommonsFormlyFormOptions<Item>;
|
|
288
|
+
get formlyFields(): FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
289
|
+
[additionalProperties: string]: any;
|
|
290
|
+
}>[];
|
|
291
|
+
/**
|
|
292
|
+
* Only used for form initialization. Further changes should be done using {resetFormModel}.
|
|
293
|
+
*/
|
|
294
|
+
get formlyInitialItem(): {};
|
|
295
|
+
constructor();
|
|
296
|
+
ngOnInit(): void;
|
|
297
|
+
ngAfterViewInit(): void;
|
|
298
|
+
ngOnDestroy(): void;
|
|
299
|
+
submit(): void;
|
|
300
|
+
onSubmit(event: Event): void;
|
|
301
|
+
getFormValue(opts?: {
|
|
302
|
+
omitSetters?: boolean;
|
|
303
|
+
}): Item;
|
|
304
|
+
resetFormModel(item?: Item, opts?: FormEditorResetFormModelOpts): void;
|
|
305
|
+
getField(key: keyof Item): AbstractControl<any, any, any> | null;
|
|
306
|
+
getFieldUnsafe(key: string): AbstractControl<any, any, any> | null;
|
|
307
|
+
setFieldValue<Property extends keyof Item>(key: Property, value: Item[Property], opts?: FormEditorSetFieldValueOpts): boolean;
|
|
308
|
+
setFieldValueUnsafe(key: string, value: any, opts?: FormEditorSetFieldValueOpts): boolean;
|
|
309
|
+
patchFieldValue<Property extends keyof Item>(key: Property, value: Item[Property], opts?: FormEditorPatchFieldValueOpts): boolean;
|
|
310
|
+
patchFieldValueUnsafe(key: string, value: any, opts?: FormEditorPatchFieldValueOpts): boolean;
|
|
311
|
+
resetFieldValue<Property extends keyof Item>(key: Property, value?: Item[Property], opts?: FormEditorResetFieldValueOpts): boolean;
|
|
312
|
+
resetFieldValueUnsafe(key: string, value?: any, opts?: FormEditorResetFieldValueOpts): boolean;
|
|
313
|
+
/**
|
|
314
|
+
* Restores the saved local state.
|
|
315
|
+
* If local storage keys exist for local state and local timestamp, restore their corresponding values.
|
|
316
|
+
*/
|
|
317
|
+
onAutoSaveRestore(): void;
|
|
318
|
+
/**
|
|
319
|
+
* Previews the saved local state.
|
|
320
|
+
* If local storage keys exist for local state and local timestamp, restore their corresponding values.
|
|
321
|
+
*/
|
|
322
|
+
onAutoSavePreview(): void;
|
|
323
|
+
/**
|
|
324
|
+
* Removes local state from local storage.
|
|
325
|
+
* If local storage keys exist for local state and local timestamp, remove their corresponding values.
|
|
326
|
+
*/
|
|
327
|
+
onAutoSaveDismiss(): void;
|
|
328
|
+
private getFormModelFromItem;
|
|
329
|
+
private findFormField;
|
|
330
|
+
private isAnyFieldInvalid;
|
|
331
|
+
private autoSaveStartEventChangeListen;
|
|
332
|
+
private autoSaveStopValueChangeListen;
|
|
333
|
+
/**
|
|
334
|
+
* Saves the form value to localStorage if autoSave is enabled and the required keys are defined.
|
|
335
|
+
* @returns {void}
|
|
336
|
+
*/
|
|
337
|
+
private autoSaveSaveToStorage;
|
|
338
|
+
/**
|
|
339
|
+
* Loads the value from the local storage if available
|
|
340
|
+
*/
|
|
341
|
+
private autoSaveLoadSavedFromStorage;
|
|
342
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormEditorComponent<any, any>, never>;
|
|
343
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormEditorComponent<any, any>, "mng-form-editor", never, { "descriptor": { "alias": "descriptor"; "required": true; "isSignal": true; }; "submitLoading": { "alias": "submitLoading"; "required": false; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; "isFormDisabled": { "alias": "isFormDisabled"; "required": false; "isSignal": true; }; "editorId": { "alias": "editorId"; "required": false; "isSignal": true; }; "itemId": { "alias": "itemId"; "required": false; "isSignal": true; }; "showAutoSaveStatus": { "alias": "showAutoSaveStatus"; "required": false; "isSignal": true; }; }, { "item": "itemChange"; "formSubmit": "formSubmit"; "valueChange": "valueChange"; "autoSaveStatus": "autoSaveStatus"; }, never, never, true, never>;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
declare class ActionEditorInjectorContextComponent<Item = any, Service = any> implements OnDestroy, IActionEditorComponent {
|
|
347
|
+
#private;
|
|
348
|
+
protected readonly ActionActivationTriggerEnum: typeof ActionActivationTriggerEnum;
|
|
349
|
+
readonly actionEditorSubmitTypeSubmit = ActionEditorSubmitTypeEnum.Submit;
|
|
350
|
+
private readonly translate;
|
|
351
|
+
private readonly confirmationService;
|
|
352
|
+
private readonly dialogService;
|
|
353
|
+
private readonly logger;
|
|
354
|
+
private readonly commonsService;
|
|
355
|
+
private readonly actionExecutor;
|
|
356
|
+
private readonly viewContainer;
|
|
357
|
+
data: _angular_core.InputSignal<ActionEditorInjectorContextInputData<Item, Service>>;
|
|
358
|
+
actionRun: _angular_core.OutputEmitterRef<Item | null | undefined>;
|
|
359
|
+
actionCancel: _angular_core.OutputEmitterRef<Item | null | undefined>;
|
|
360
|
+
formEditorCmp: _angular_core.Signal<FormEditorComponent<Item, any> | undefined>;
|
|
361
|
+
private hasTitle;
|
|
362
|
+
title: _angular_core.WritableSignal<string | undefined>;
|
|
363
|
+
isFormDisabled: _angular_core.WritableSignal<boolean>;
|
|
364
|
+
item: _angular_core.WritableSignal<Item | undefined>;
|
|
365
|
+
itemId: _angular_core.WritableSignal<IdType | undefined>;
|
|
366
|
+
actionData: _angular_core.WritableSignal<ActionData | undefined>;
|
|
367
|
+
editorAction: _angular_core.Signal<ActionEditorDescriptorInst<Item, Service, Item, Item, Item, Item, undefined>>;
|
|
368
|
+
private actions;
|
|
369
|
+
toolbarLeftActions: _angular_core.Signal<ActionDescriptorInst<Item, any, Item, Item, Item>[]>;
|
|
370
|
+
toolbarRightActions: _angular_core.Signal<ActionDescriptorInst<Item, any, Item, Item, Item>[]>;
|
|
371
|
+
footerLeftActions: _angular_core.Signal<ActionDescriptorInst<Item, any, Item, Item, Item>[]>;
|
|
372
|
+
footerRightActions: _angular_core.Signal<ActionDescriptorInst<Item, any, Item, Item, Item>[]>;
|
|
373
|
+
private instance?;
|
|
374
|
+
private instanceStateSubscription?;
|
|
375
|
+
private instanceReactivationSubscription?;
|
|
376
|
+
loading: _angular_core.WritableSignal<boolean>;
|
|
377
|
+
private fetchExecutionSubscription?;
|
|
378
|
+
formValue: _angular_core.WritableSignal<Item | undefined>;
|
|
379
|
+
submitLoading: _angular_core.WritableSignal<boolean>;
|
|
380
|
+
autoSaveStatus: _angular_core.WritableSignal<EditorAutoSaveStatus | undefined>;
|
|
381
|
+
private submitExecutionSubscription?;
|
|
382
|
+
private lastSubmitItem?;
|
|
383
|
+
ngOnDestroy(): void;
|
|
384
|
+
onSubmit(event: FormEditorSubmitEvent<Item>): void;
|
|
385
|
+
cancel(): void;
|
|
386
|
+
updateItemId(itemId: IdType | undefined): void;
|
|
387
|
+
updateItem(item: Item | undefined): void;
|
|
388
|
+
triggerSubmit(): void;
|
|
389
|
+
onValueChange(value: Item): void;
|
|
390
|
+
onAutoSave(value: EditorAutoSaveStatus): void;
|
|
391
|
+
private fetchItem;
|
|
392
|
+
private setEditorEnabled;
|
|
393
|
+
private processActionInstance;
|
|
394
|
+
private unsetInstance;
|
|
395
|
+
private isActionMainTwEditor;
|
|
396
|
+
private beforeWindowUnload;
|
|
397
|
+
private onEscapePressed;
|
|
398
|
+
closeWithUnsavedChangesConfirmation(callFromGuard?: boolean): Observable<boolean>;
|
|
399
|
+
private showUnsavedChangesConfirmationDialog;
|
|
400
|
+
private onEditorReset;
|
|
401
|
+
private getActionParams;
|
|
402
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionEditorInjectorContextComponent<any, any>, never>;
|
|
403
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionEditorInjectorContextComponent<any, any>, "mng-action-editor-injector-context", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, { "actionRun": "actionRun"; "actionCancel": "actionCancel"; }, never, never, true, never>;
|
|
404
|
+
}
|
|
405
|
+
interface ActionEditorInjectorContextInputData<Item, Service> {
|
|
406
|
+
descriptor: ActionEditorDescriptorInst<Item, Service>;
|
|
407
|
+
isDialog: boolean;
|
|
408
|
+
dialogConfig?: DynamicDialogConfig;
|
|
409
|
+
itemId?: IdType;
|
|
410
|
+
item?: Item;
|
|
411
|
+
actionData?: ActionData;
|
|
412
|
+
dataProvider?: IDataProvider<Item, Service>;
|
|
413
|
+
actionInstance?: ActionInstance<Item, Service>;
|
|
414
|
+
previousActionInstance?: IActionInstance<any, any>;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
declare class ActionEditorComponent<T = any, S = any> {
|
|
418
|
+
readonly injContextCmpType: Type<any>;
|
|
419
|
+
readonly dialogConfig: DynamicDialogConfig<any, any> | null;
|
|
420
|
+
action: _angular_core.InputSignal<ActionEditorDescriptorInst<T, S, T, T, T, T, undefined>>;
|
|
421
|
+
private readonly dialogData;
|
|
422
|
+
private readonly isDialog;
|
|
423
|
+
readonly parentInjector: _angular_core.Injector | undefined;
|
|
424
|
+
itemId: _angular_core.InputSignal<IdType | undefined>;
|
|
425
|
+
item: _angular_core.InputSignal<T | undefined>;
|
|
426
|
+
actionData: _angular_core.InputSignal<ActionData | undefined>;
|
|
427
|
+
dataProvider: _angular_core.InputSignal<IDataProvider<T, S> | undefined>;
|
|
428
|
+
actionRun: _angular_core.OutputEmitterRef<T | null | undefined>;
|
|
429
|
+
actionCancel: _angular_core.OutputEmitterRef<T | null | undefined>;
|
|
430
|
+
private actionEditorWInjContextCmp?;
|
|
431
|
+
actionEditorWInjContextInputData: _angular_core.Signal<ActionEditorInjectorContextInputData<T, S>>;
|
|
432
|
+
private itemIdFirstUpdate;
|
|
433
|
+
private itemFirstUpdate;
|
|
434
|
+
get actionEditor(): ActionEditorInjectorContextComponent<T, S> | undefined;
|
|
435
|
+
get formEditorCmp(): _angular_core.Signal<_mediusinc_mng_commons_tableview.FormEditorComponent<T, any> | undefined> | undefined;
|
|
436
|
+
constructor();
|
|
437
|
+
onActionEditorWInjContextCmp(cmp: ActionEditorInjectorContextComponent<T, S>): void;
|
|
438
|
+
cancel(): void;
|
|
439
|
+
triggerSubmit(): void;
|
|
440
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionEditorComponent<any, any>, never>;
|
|
441
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionEditorComponent<any, any>, "mng-action-editor", never, { "action": { "alias": "action"; "required": true; "isSignal": true; }; "itemId": { "alias": "itemId"; "required": false; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; "actionData": { "alias": "actionData"; "required": false; "isSignal": true; }; "dataProvider": { "alias": "dataProvider"; "required": false; "isSignal": true; }; }, { "actionRun": "actionRun"; "actionCancel": "actionCancel"; }, never, never, true, never>;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
declare class DataLanguageDropdownComponent<T = any> implements IActionComponent<T> {
|
|
445
|
+
private readonly viewContainer;
|
|
446
|
+
readonly commons: CommonsService;
|
|
447
|
+
action: _angular_core.InputSignal<ActionDescriptorInst<T, any, T, T, T>>;
|
|
448
|
+
actionData: _angular_core.InputSignal<ActionData>;
|
|
449
|
+
item: _angular_core.InputSignal<T>;
|
|
450
|
+
itemId: _angular_core.InputSignal<IdType>;
|
|
451
|
+
enabled: _angular_core.InputSignal<boolean>;
|
|
452
|
+
loading: _angular_core.InputSignal<boolean>;
|
|
453
|
+
trigger: _angular_core.OutputEmitterRef<ActionParameters<T, T, T, T>>;
|
|
454
|
+
selectionItemsDataProvider: _angular_core.Signal<LookupDataProviderInst<string, any, number | typeof Symbol.iterator | "length" | "toString" | "concat" | "slice" | "indexOf" | "lastIndexOf" | "includes" | "at" | "valueOf" | "replace" | "charAt" | "charCodeAt" | "localeCompare" | "match" | "search" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "substr" | "codePointAt" | "endsWith" | "normalize" | "repeat" | "startsWith" | "anchor" | "big" | "blink" | "bold" | "fixed" | "fontcolor" | "fontsize" | "italics" | "link" | "small" | "strike" | "sub" | "sup" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll", number | typeof Symbol.iterator | "length" | "toString" | "concat" | "slice" | "indexOf" | "lastIndexOf" | "includes" | "at" | "valueOf" | "replace" | "charAt" | "charCodeAt" | "localeCompare" | "match" | "search" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "substr" | "codePointAt" | "endsWith" | "normalize" | "repeat" | "startsWith" | "anchor" | "big" | "blink" | "bold" | "fixed" | "fontcolor" | "fontsize" | "italics" | "link" | "small" | "strike" | "sub" | "sup" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll", _mediusinc_mng_commons_core.ServiceClassOptType<any>>>;
|
|
455
|
+
updateDataLocale(dataLang: string): void;
|
|
456
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataLanguageDropdownComponent<any>, never>;
|
|
457
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataLanguageDropdownComponent<any>, "mng-data-language-dropdown", never, { "action": { "alias": "action"; "required": true; "isSignal": true; }; "actionData": { "alias": "actionData"; "required": true; "isSignal": true; }; "item": { "alias": "item"; "required": true; "isSignal": true; }; "itemId": { "alias": "itemId"; "required": true; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": true; "isSignal": true; }; "loading": { "alias": "loading"; "required": true; "isSignal": true; }; }, { "trigger": "trigger"; }, never, never, true, never>;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
interface CanComponentDeactivate {
|
|
461
|
+
canDeactivate: () => Observable<boolean>;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
declare class ActionTableComponent<Item = any, Service = undefined, Sorts = keyof Item, Filters extends keyof any = keyof Item> {
|
|
465
|
+
private readonly route;
|
|
466
|
+
private readonly actionExecutor;
|
|
467
|
+
private readonly viewContainer;
|
|
468
|
+
descriptor: _angular_core.InputSignal<TableDescriptorInst<Item, Sorts, Filters>>;
|
|
469
|
+
items: _angular_core.InputSignal<Item[] | undefined>;
|
|
470
|
+
result: _angular_core.InputSignal<DataListResult<Item> | undefined>;
|
|
471
|
+
loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
472
|
+
dataProvider: _angular_core.InputSignal<ITableDataProvider<Item, Service, Sorts, Filters> | undefined>;
|
|
473
|
+
useQueryParams: _angular_core.InputSignal<boolean>;
|
|
474
|
+
tableClassName: _angular_core.InputSignal<string | undefined>;
|
|
475
|
+
selectionMode: _angular_core.InputSignal<"single" | "multiple">;
|
|
476
|
+
selectionEnabled: _angular_core.InputSignal<boolean>;
|
|
477
|
+
globalFilterFields: _angular_core.InputSignal<string[] | undefined>;
|
|
478
|
+
rowReorderEnabled: _angular_core.InputSignal<boolean>;
|
|
479
|
+
actions: _angular_core.InputSignal<ActionDescriptorInst<any, any, any, any, any>[]>;
|
|
480
|
+
captionComponent: _angular_core.InputSignal<Type<any> | undefined>;
|
|
481
|
+
columnActionComponent: _angular_core.InputSignal<Type<any> | undefined>;
|
|
482
|
+
columnActionMinWidthInput: _angular_core.InputSignal<number | undefined>;
|
|
483
|
+
columnActionMinWidth: Signal<number | undefined>;
|
|
484
|
+
tableLoad: _angular_core.OutputEmitterRef<TableLoadEvent>;
|
|
485
|
+
selectionChange: _angular_core.OutputEmitterRef<Item[]>;
|
|
486
|
+
captionComponentInstance: _angular_core.OutputEmitterRef<any>;
|
|
487
|
+
columnActionComponentInstance: _angular_core.OutputEmitterRef<any>;
|
|
488
|
+
rowReorder: _angular_core.OutputEmitterRef<TableRowReorderEvent>;
|
|
489
|
+
templates: Signal<readonly TemplateDirective[]>;
|
|
490
|
+
components: Signal<readonly QueryList<any>[]>;
|
|
491
|
+
table: Signal<TableComponent<any, any, any, any>>;
|
|
492
|
+
captionTemplate: Signal<TemplateRef<any> | null>;
|
|
493
|
+
footerTemplate: Signal<TemplateRef<any> | null>;
|
|
494
|
+
rowExpandTemplate: Signal<TemplateRef<any> | null>;
|
|
495
|
+
rowClickActions: Signal<ActionDescriptorInst<any, any, any, any, any>[]>;
|
|
496
|
+
rowInlineActions: Signal<ActionDescriptorInst<any, any, any, any, any>[]>;
|
|
497
|
+
constructor();
|
|
498
|
+
reload(e?: TableReloadEvent<Sorts, Filters>): void;
|
|
499
|
+
onCellClick(event: TableCellClickEvent<Item>): void;
|
|
500
|
+
onSelectionChange(items: Array<Item>): void;
|
|
501
|
+
onRowReorder(event: TableRowReorderEvent): void;
|
|
502
|
+
onActionFinish(runResult: ActionInstance<Item, Service>): void;
|
|
503
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionTableComponent<any, any, any, any>, never>;
|
|
504
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionTableComponent<any, any, any, any>, "mng-action-table", never, { "descriptor": { "alias": "descriptor"; "required": true; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "result": { "alias": "result"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "dataProvider": { "alias": "dataProvider"; "required": false; "isSignal": true; }; "useQueryParams": { "alias": "useQueryParams"; "required": false; "isSignal": true; }; "tableClassName": { "alias": "tableClassName"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectionEnabled": { "alias": "selectionEnabled"; "required": false; "isSignal": true; }; "globalFilterFields": { "alias": "globalFilterFields"; "required": false; "isSignal": true; }; "rowReorderEnabled": { "alias": "rowReorderEnabled"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "captionComponent": { "alias": "captionComponent"; "required": false; "isSignal": true; }; "columnActionComponent": { "alias": "columnActionComponent"; "required": false; "isSignal": true; }; "columnActionMinWidthInput": { "alias": "columnActionMinWidth"; "required": false; "isSignal": true; }; }, { "tableLoad": "tableLoad"; "selectionChange": "selectionChange"; "captionComponentInstance": "captionComponentInstance"; "columnActionComponentInstance": "columnActionComponentInstance"; "rowReorder": "rowReorder"; }, ["templates"], never, true, never>;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
declare const unsavedChangesGuard: CanDeactivateFn<CanComponentDeactivate>;
|
|
508
|
+
|
|
509
|
+
type ActionI18nOptsType = {
|
|
510
|
+
customKey?: string;
|
|
511
|
+
fallbackKey?: string;
|
|
512
|
+
item?: any;
|
|
513
|
+
params?: any;
|
|
514
|
+
missingTranslationStrategy?: I18nMissingTranslationStrategy;
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* Asynchronously retrieves internationalized text for a specified action.
|
|
518
|
+
*
|
|
519
|
+
* If no translation is found for actionPathKeys, the fallback is used (if provided).
|
|
520
|
+
* If custom key is provided, no other key will be used.
|
|
521
|
+
* Item can be interpolated under itemTitle, itemId (if specified in action model) or under item.* (JSON-like path to property).
|
|
522
|
+
* Params are interpolated in translation.
|
|
523
|
+
*
|
|
524
|
+
* @param {TranslateService} translate - The translation service used for retrieving localized strings.
|
|
525
|
+
* @param {ActionDescriptorInst<any>} action - The action descriptor that provides context for localization keys and parameters.
|
|
526
|
+
* @param {string | Array<string>} pathKeys - A string or array of strings representing the priority order of localization keys to look up for the action.
|
|
527
|
+
* @param {ActionI18nOptsType} [opts] - Optional settings to customize the localization behavior, including custom keys, fallback keys, parameters, and missing translation strategies.
|
|
528
|
+
* @return {Observable<string | null>} An observable that emits the localized string for the action or null if no appropriate translation is found.
|
|
529
|
+
*/
|
|
530
|
+
declare function getI18nForAction(translate: TranslateService, action: ActionDescriptorInst<any>, pathKeys: string | Array<string>, opts?: ActionI18nOptsType): string | null;
|
|
531
|
+
/**
|
|
532
|
+
* Asynchronously retrieves internationalized text for a specified action.
|
|
533
|
+
*
|
|
534
|
+
* If no translation is found for actionPathKeys, the fallback is used (if provided).
|
|
535
|
+
* If custom key is provided, no other key will be used.
|
|
536
|
+
* Item can be interpolated under itemTitle, itemId (if specified in action model) or under item.* (JSON-like path to property).
|
|
537
|
+
* Params are interpolated in translation.
|
|
538
|
+
*
|
|
539
|
+
* @param {TranslateService} translate - The translation service used for retrieving localized strings.
|
|
540
|
+
* @param {ActionDescriptorInst<any>} action - The action descriptor that provides context for localization keys and parameters.
|
|
541
|
+
* @param {string | Array<string>} pathKeys - A string or array of strings representing the priority order of localization keys to look up for the action.
|
|
542
|
+
* @param {ActionI18nOptsType} [opts] - Optional settings to customize the localization behavior, including custom keys, fallback keys, parameters, and missing translation strategies.
|
|
543
|
+
* @return {Observable<string | null>} An observable that emits the localized string for the action or null if no appropriate translation is found.
|
|
544
|
+
*/
|
|
545
|
+
declare function getI18nForActionAsync(translate: TranslateService, action: ActionDescriptorInst<any>, pathKeys: string | Array<string>, opts?: ActionI18nOptsType): Observable<string | null>;
|
|
546
|
+
declare function getI18nActionTitleAsync(translate: TranslateService, action: ActionDescriptorInst<any>, item?: any): Observable<string | null>;
|
|
547
|
+
declare function getI18nActionEditorTitleAsync(translate: TranslateService, action: ActionEditorDescriptorInst<any>, item?: any): Observable<string | null>;
|
|
548
|
+
declare function getI18nActionParams(translate: TranslateService, action: ActionDescriptorInst<any>, item?: any, params?: any): any;
|
|
549
|
+
declare function getI18nActionParamsAsync(translate: TranslateService, action: ActionDescriptorInst<any>, item?: any, params?: any): Observable<any>;
|
|
550
|
+
declare function populateI18nActionParams(params?: any): any;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Retrieves the parent form editor service for a given action editor context. Only applicable for action editor with ParentEditorItem type defined.
|
|
554
|
+
*
|
|
555
|
+
* @param {IActionEditorContext<any, ParentItem, any, any>} ctx - The action editor context containing information about the current editor and its parent.
|
|
556
|
+
*
|
|
557
|
+
* @return {FormEditorService<ParentItem> | null} The parent form editor service if available, or null if not found.
|
|
558
|
+
*/
|
|
559
|
+
declare function getActionParentFormEditor<ParentItem>(ctx: IActionEditorContext<any, ParentItem, any, any>): FormEditorService<ParentItem> | null;
|
|
560
|
+
/**
|
|
561
|
+
* Retrieves the parent form editor service for a given action context and editor/model/type descriptor.
|
|
562
|
+
*
|
|
563
|
+
* @param {IActionContext<any, any, any, any>} ctx - The action context from which the parent editor is resolved.
|
|
564
|
+
* @param {EditorDescriptorInst<ParentItem> | ModelDescriptor<ParentItem> | TypeDescriptor<ParentItem>} editorType - The editor descriptor or type used to locate the parent form editor.
|
|
565
|
+
*
|
|
566
|
+
* @return {FormEditorService<ParentItem> | null} The parent form editor service instance if found, otherwise null.
|
|
567
|
+
*/
|
|
568
|
+
declare function getActionParentFormEditor<ParentItem>(ctx: IActionContext<any, any, any, any> | IActionEditorContext<any, any, any, any>, editorType: EditorDescriptorInst<ParentItem> | ModelDescriptor<ParentItem> | TypeDescriptor<ParentItem>): FormEditorService<ParentItem> | null;
|
|
569
|
+
/**
|
|
570
|
+
* Retrieves the form editor service associated with a given action editor context. Only applicable for action editor.
|
|
571
|
+
*
|
|
572
|
+
* @param {IActionEditorContext<Item, ParentItem, any, any>} ctx - The action editor context containing parameters and state.
|
|
573
|
+
*
|
|
574
|
+
* @return {FormEditorService<Item, ParentItem> | null} The form editor service if available, or null if not found.
|
|
575
|
+
*/
|
|
576
|
+
declare function getActionFormEditor<Item, ParentItem>(ctx: IActionEditorContext<Item, ParentItem, any, any>): FormEditorService<Item, ParentItem> | null;
|
|
577
|
+
/**
|
|
578
|
+
* Retrieves the parent table associated with the given action context and table descriptor. Applies when actions are placed on table or table within tableview.
|
|
579
|
+
*
|
|
580
|
+
* @param {IActionContext<any, any, any, any>} ctx - The action context from which the table is resolved.
|
|
581
|
+
* @param {TableDescriptorInst<Item, Sorts, Filters> | ModelDescriptor<Item> | TypeDescriptor<Item>} tableType - The descriptor of the table that needs to be retrieved.
|
|
582
|
+
*
|
|
583
|
+
* @return {TableComponent<Item, Sorts, Filters> | null} The parent table associated with the action context and descriptor, or null if not found.
|
|
584
|
+
*/
|
|
585
|
+
declare function getActionParentTable<Item, Sorts = keyof Item, Filters = keyof Item>(ctx: IActionContext<any, any, any, any>, tableType: TableDescriptorInst<Item, Sorts, Filters> | ModelDescriptor<Item> | TypeDescriptor<Item>): TableComponent<Item, Sorts, Filters> | null;
|
|
586
|
+
|
|
587
|
+
type ActionNotificationOptsType = ActionNotificationType & {
|
|
588
|
+
item?: any;
|
|
589
|
+
functionName?: string;
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* Executes a notification success action for a given operation, translating
|
|
593
|
+
* and displaying a success message using the specified translation and message services.
|
|
594
|
+
*
|
|
595
|
+
* Provide title or message for custom titles (unrelated to model/action base paths for i18n).
|
|
596
|
+
* Item is interpolated as itemId, itemTitle or item.* for accessing desired properties.
|
|
597
|
+
* Set functionName in order to get specific translations for executing function (run, fetch, submit).
|
|
598
|
+
*
|
|
599
|
+
* @param {TranslateService} translate - The translation service used to retrieve localized messages.
|
|
600
|
+
* @param {MessageService} messageService - The message service responsible for displaying notifications.
|
|
601
|
+
* @param {ActionDescriptorInst<any>} action - The action descriptor instance that defines the operation.
|
|
602
|
+
* @param {ActionNotificationOptsType} [opts] - Optional configuration for customizing the success notification.
|
|
603
|
+
* @return {Message | undefined} The generated message object if a success message is found, otherwise undefined.
|
|
604
|
+
*/
|
|
605
|
+
declare function actionNotificationSuccess(translate: TranslateService, messageService: MessageService, action: ActionDescriptorInst<any>, opts?: ActionNotificationOptsType): ToastMessageOptions | undefined;
|
|
606
|
+
/**
|
|
607
|
+
* Displays a notification for an error that occurred during an action execution.
|
|
608
|
+
*
|
|
609
|
+
* Provide title or message for custom titles (unrelated to model/action base paths for i18n).
|
|
610
|
+
* Item is interpolated as itemId, itemTitle or item.* for accessing desired properties.
|
|
611
|
+
* Set functionName in order to get specific translations for executing function (run, fetch, submit).
|
|
612
|
+
*
|
|
613
|
+
* @param {TranslateService} translate - The service used for translations.
|
|
614
|
+
* @param {MessageService} messageService - The service used for displaying messages.
|
|
615
|
+
* @param {ActionDescriptorInst<any>} action - The action descriptor instance related to the error.
|
|
616
|
+
* @param {ICommonsError} error - The error object containing details about the error.
|
|
617
|
+
* @param {'warn' | 'error'} [severity='error'] - The severity level of the notification (either 'warn' or 'error').
|
|
618
|
+
* @param {ActionNotificationOptsType} [opts] - Optional parameters for customizing the notification, such as title, message, or function name.
|
|
619
|
+
* @return {Message} - The message object created and displayed as a notification.
|
|
620
|
+
*/
|
|
621
|
+
declare function actionNotificationError(translate: TranslateService, messageService: MessageService, action: ActionDescriptorInst<any>, error: ICommonsError, severity?: 'warn' | 'error', opts?: ActionNotificationOptsType): ToastMessageOptions;
|
|
622
|
+
|
|
623
|
+
declare function calculateTableColumnActionWidth(table: TableDescriptorInst<unknown>, actions: Array<ActionDescriptorInst<any>>): number;
|
|
624
|
+
declare function getTableCellPaddingX(table: TableDescriptorInst<unknown>): number;
|
|
625
|
+
declare function getActionButtonRoundedWidth(action: ActionDescriptorInst<any>): number;
|
|
626
|
+
|
|
627
|
+
interface ActionEditorDialogData<Item, Service> {
|
|
628
|
+
action: {
|
|
629
|
+
descriptor: ActionEditorDescriptorInst<Item>;
|
|
630
|
+
instance: ActionInstance<Item, Service>;
|
|
631
|
+
previousInstance?: IActionInstance<any, any>;
|
|
632
|
+
};
|
|
633
|
+
injector: Injector;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
declare function provideActionExecutor(): Provider;
|
|
637
|
+
|
|
638
|
+
declare function provideViewContainer(provideParentIfPresent?: boolean): Provider;
|
|
639
|
+
|
|
640
|
+
declare const ACTION_EDITOR_COMPONENT_IT: InjectionToken<Type<any>>;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Service for transforming errors in action execution.
|
|
644
|
+
* Can be used to transform errors to Commons Error interface for correct error message display.
|
|
645
|
+
*/
|
|
646
|
+
declare abstract class ActionErrorMapperService {
|
|
647
|
+
/**
|
|
648
|
+
* Can be used to enrich data from error and make it more "stable". Most use cases cover extracting message or message code of an
|
|
649
|
+
* error out of http response body/headers.
|
|
650
|
+
*
|
|
651
|
+
* @param error Original error (cause).
|
|
652
|
+
* @param commonsError Commons error that wraps original error.
|
|
653
|
+
*/
|
|
654
|
+
abstract toCommonsError(error?: any, commonsError?: ICommonsError): ICommonsError;
|
|
655
|
+
}
|
|
656
|
+
declare class DefaultActionErrorMapperService extends ActionErrorMapperService {
|
|
657
|
+
toCommonsError(error?: any, commonsError?: ICommonsError): ICommonsError;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
declare class NavigationService {
|
|
661
|
+
private readonly router;
|
|
662
|
+
private readonly location;
|
|
663
|
+
private history;
|
|
664
|
+
constructor();
|
|
665
|
+
getCurrentLocationFromHistory(): string | null;
|
|
666
|
+
getCurrentLocationFromUrl(): string;
|
|
667
|
+
getPreviousLocationFromHistory(): string | null;
|
|
668
|
+
back(): void;
|
|
669
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavigationService, never>;
|
|
670
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NavigationService>;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
declare abstract class ActionExecutorService {
|
|
674
|
+
private static readonly className;
|
|
675
|
+
protected readonly injector: Injector;
|
|
676
|
+
protected readonly router: Router;
|
|
677
|
+
protected readonly dialogService: DialogService;
|
|
678
|
+
protected readonly translate: TranslateService;
|
|
679
|
+
protected readonly commons: CommonsService;
|
|
680
|
+
protected readonly dataProviderExecutor: DataProviderExecutor;
|
|
681
|
+
protected readonly navigationService: NavigationService;
|
|
682
|
+
protected readonly errorMapper: ActionErrorMapperService;
|
|
683
|
+
protected readonly config: _mediusinc_mng_commons_tableview.TableviewFeatureConfig | null;
|
|
684
|
+
protected readonly defaultEditorDialogComponent: _angular_core.Type<any>;
|
|
685
|
+
protected readonly messageService: MessageService;
|
|
686
|
+
protected readonly confirmationService: ConfirmationService;
|
|
687
|
+
protected readonly viewContainer: ViewContainer<any, any> | null;
|
|
688
|
+
protected readonly parametrize: ParametrizePipe;
|
|
689
|
+
protected readonly instancesBufferMax = 100;
|
|
690
|
+
protected logger: LoggerService;
|
|
691
|
+
abstract get instances(): ActionInstance<any, any>[];
|
|
692
|
+
/**
|
|
693
|
+
* Prepares action context for usage in validation.
|
|
694
|
+
* @param action Action descriptor.
|
|
695
|
+
* @param parameters Action parameters.
|
|
696
|
+
* @param dataProvider Data provider.
|
|
697
|
+
*/
|
|
698
|
+
prepareActionContextValidation<Item, ParametersItem, Service>(action: ActionDescriptorInst<Item>, parameters: ActionParameters<ParametersItem>, dataProvider?: IDataProvider<Item, Service>): ActionContextValidation<Item, ParametersItem, Service>;
|
|
699
|
+
/**
|
|
700
|
+
* Runs action context by submitting execution results/errors to context, watching over instance results/errors, displaying notifications,
|
|
701
|
+
* running next/error action and triggering dismiss of action. Confirmation is also processed here.
|
|
702
|
+
*
|
|
703
|
+
* @param ctx Action context to run.
|
|
704
|
+
*/
|
|
705
|
+
run<Item, ParametersItem, Service = undefined>(ctx: ActionContext<Item, ParametersItem, Service>): void;
|
|
706
|
+
/**
|
|
707
|
+
* Runs action context by submitting execution results/errors to context, watching over instance results/errors, displaying notifications,
|
|
708
|
+
* running next/error action and triggering dismiss of action. Confirmation
|
|
709
|
+
*
|
|
710
|
+
* @param ctx Action context to run.
|
|
711
|
+
*
|
|
712
|
+
* @returns Action context for submit (=run) function.
|
|
713
|
+
*/
|
|
714
|
+
private runWithoutConfirmation;
|
|
715
|
+
/**
|
|
716
|
+
* Prepares editor action's fetch function by creating new action context for action instance.
|
|
717
|
+
*
|
|
718
|
+
* @param action Action descriptor.
|
|
719
|
+
* @param parameters Action parameters for context.
|
|
720
|
+
* @param dataProvider Editor data provider for context.
|
|
721
|
+
* @param instance Optional existing action instance (if non provided, new will be created).
|
|
722
|
+
* @param previousActionInstance Optional previous action instance to link in next instance.
|
|
723
|
+
*
|
|
724
|
+
* @returns Action context for fetch function.
|
|
725
|
+
*/
|
|
726
|
+
prepareContextForEditorFetch<Item, ParametersItem, Service>(action: ActionEditorDescriptorInst<Item, any, any, ParametersItem, any, any>, parameters: ActionParameters<ParametersItem>, dataProvider?: IDataProvider<Item, Service>, instance?: ActionInstance<Item, Service>, previousActionInstance?: IActionInstance<any, any>): ActionContext<Item, ParametersItem, Service>;
|
|
727
|
+
/**
|
|
728
|
+
* Runs editor action's submit (=main run) function by creating new action context for action instance.
|
|
729
|
+
*
|
|
730
|
+
* @param action Action descriptor.
|
|
731
|
+
* @param parameters Action parameters for context.
|
|
732
|
+
* @param dataProvider Editor data provider for context.
|
|
733
|
+
* @param instance Optional existing action instance (if non provided, new will be created).
|
|
734
|
+
* @param previousActionInstance Optional previous action instance to link in next instance.
|
|
735
|
+
*
|
|
736
|
+
* @returns Action context for submit (=run) function.
|
|
737
|
+
*/
|
|
738
|
+
prepareContextForEditorSubmit<Item, ParametersItem, Service>(action: ActionEditorDescriptorInst<Item, any, ParametersItem, any, any, any>, parameters: ActionParameters<ParametersItem>, dataProvider?: IDataProvider<Item, Service>, instance?: ActionInstance<Item, Service>, previousActionInstance?: IActionInstance<any, any>): ActionContext<Item, ParametersItem, Service>;
|
|
739
|
+
/**
|
|
740
|
+
* Prepares action exec context for action of type editor.
|
|
741
|
+
*
|
|
742
|
+
* @param instance Action instance.
|
|
743
|
+
* @param parameters Action parameters for context.
|
|
744
|
+
* @param functionName Action function name parameter.
|
|
745
|
+
* @param dataProvider Optional data provider. If not provided data provider from either the action editor or view container will be used.
|
|
746
|
+
* @param previousActionInstance Optional previous action instance to link in next instance.
|
|
747
|
+
*/
|
|
748
|
+
private prepareContextForEditor;
|
|
749
|
+
/**
|
|
750
|
+
* Runs action's main run function by creating new action context for action instance.
|
|
751
|
+
*
|
|
752
|
+
* @param action Action descriptor.
|
|
753
|
+
* @param parameters Action parameters for context run.
|
|
754
|
+
* @param instance Optional existing action instance (if non provided, new will be created).
|
|
755
|
+
* @param previousActionInstance Optional previous action instance to link in next instance.
|
|
756
|
+
*
|
|
757
|
+
* @returns Action context for run function.
|
|
758
|
+
*/
|
|
759
|
+
private prepareContext;
|
|
760
|
+
/**
|
|
761
|
+
* Activates action (in case of dialog, dialog will be opened).
|
|
762
|
+
*
|
|
763
|
+
* @param action Action descriptor.
|
|
764
|
+
* @param parameters Action parameters for activation of action instance.
|
|
765
|
+
* @param instance Optional existing action instance (if non provided, new will be created).
|
|
766
|
+
* @param previousActionInstance Optional previous action instance to link in next instance.
|
|
767
|
+
* @param runContext Marks if context should be run.
|
|
768
|
+
*
|
|
769
|
+
* @returns Action instance - if non provided in parameters, the newly created will be returned.
|
|
770
|
+
*/
|
|
771
|
+
activateAction<Item, ParametersItem, Service = undefined>(action: ActionDescriptorInst<Item, any, ParametersItem, any, any>, parameters: ActionParameters<ParametersItem>, instance?: ActionInstance<Item, Service>, previousActionInstance?: ActionInstance<any, any>, runContext?: boolean): ActionInstance<Item, Service>;
|
|
772
|
+
/**
|
|
773
|
+
* To be called when action editor is initialized to correctly activate action.
|
|
774
|
+
* @param action Action descriptor.
|
|
775
|
+
* @param instance Action instance (if available).
|
|
776
|
+
* @param componentRef Optional action editor component reference.
|
|
777
|
+
*/
|
|
778
|
+
onActionEditorInit<T, S>(action: ActionDescriptorInst<T>, instance?: ActionInstance<T, S>, componentRef?: IActionEditorComponent): ActionInstance<T, S>;
|
|
779
|
+
/**
|
|
780
|
+
* To be called when action editor cmp is being destroyed to correctly finish action.
|
|
781
|
+
* @param instance Action instance.
|
|
782
|
+
*/
|
|
783
|
+
onActionDestroy<T, S>(instance?: ActionInstance<T, S>): void;
|
|
784
|
+
/**
|
|
785
|
+
* To be called when action editor cmp is being destroyed to correctly finish action.
|
|
786
|
+
* @param instance Action instance.
|
|
787
|
+
*/
|
|
788
|
+
onActionEditorDestroy<T, S>(instance?: ActionInstance<T, S>): void;
|
|
789
|
+
/**
|
|
790
|
+
* To be called when action route cmp is being destroyed to correctly finish action.
|
|
791
|
+
* @param instance Action instance.
|
|
792
|
+
*/
|
|
793
|
+
onActionRouteDestroy<T, S>(instance?: ActionInstance<T, S>): void;
|
|
794
|
+
/**
|
|
795
|
+
* Deactivates action by choosing final state, closing dialog and completing all subjects in instance and contexts.
|
|
796
|
+
*
|
|
797
|
+
* @param instance Action instance.
|
|
798
|
+
* @param onDestroy Marks if finish is called on component destroy lifecycle hook.
|
|
799
|
+
*/
|
|
800
|
+
finishAction<Item, Service = undefined>(instance: ActionInstance<Item, Service>, onDestroy?: boolean): void;
|
|
801
|
+
/**
|
|
802
|
+
* Triggers action with parameters.
|
|
803
|
+
*
|
|
804
|
+
* @param action Action descriptor.
|
|
805
|
+
* @param parameters Action parameters for action execution to construct new route.
|
|
806
|
+
* @param runContext Marks if context should be run.
|
|
807
|
+
*
|
|
808
|
+
* @returns Action instance - if non provided in parameters, the newly created will be returned.
|
|
809
|
+
*/
|
|
810
|
+
triggerAction<Item, Service = undefined>(action: ActionDescriptorInst<Item>, parameters: ActionParameters<Item>, runContext?: boolean): ActionInstance<Item, Service>;
|
|
811
|
+
/**
|
|
812
|
+
* Deactivates on route triggered action by trying to reroute back to location where action was triggered.
|
|
813
|
+
* @param instance Action instance.
|
|
814
|
+
*/
|
|
815
|
+
finishActionRouteUntrigger<Item, Service = undefined>(instance: ActionInstance<Item, Service>): void;
|
|
816
|
+
/**
|
|
817
|
+
* Transform error of any type to error by using error mapper that could be provided by final project.
|
|
818
|
+
* @param error error of any type.
|
|
819
|
+
* @param context Action context.
|
|
820
|
+
*
|
|
821
|
+
* @returns mapped ICommonsError.
|
|
822
|
+
*/
|
|
823
|
+
toActionError(error?: any, context?: ActionContext<any, any, any>): ICommonsError;
|
|
824
|
+
/**
|
|
825
|
+
* Creates or gets existing action instance.
|
|
826
|
+
* @param instance Action instance.
|
|
827
|
+
* @param action Action descriptor.
|
|
828
|
+
* @param parameters Action parameters.
|
|
829
|
+
* @param instanceInitialStatus Action instance initial status.
|
|
830
|
+
* @param skipInitializationFromViewContainer If initialization of instance from view container should be skipped.
|
|
831
|
+
* @private
|
|
832
|
+
*/
|
|
833
|
+
protected getOrCreateInstance<Item, Service = undefined>(instance: ActionInstance<Item, Service> | undefined, action?: ActionDescriptorInst<Item, Service, any, any, any>, parameters?: ActionParameters<any>, instanceInitialStatus?: ActionInstanceStateEnum, skipInitializationFromViewContainer?: boolean): ActionInstance<Item, Service>;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
declare class ComponentActionExecutorService extends ActionExecutorService {
|
|
837
|
+
private readonly rootActionExecutorService;
|
|
838
|
+
get instances(): ActionInstance<any, any>[];
|
|
839
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComponentActionExecutorService, never>;
|
|
840
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ComponentActionExecutorService>;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
declare class DefaultDataProviderExecutor extends DataProviderExecutor {
|
|
844
|
+
runGetAll<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<DataListResult<Item>> | null;
|
|
845
|
+
runGetAll<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: Observable<DataListResult<Item>>): Observable<DataListResult<Item>>;
|
|
846
|
+
runGetAll<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: undefined): Observable<DataListResult<Item>> | null;
|
|
847
|
+
runFetch<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fetchReason?: RunFetchFromDataProviderReasonType): Observable<Item> | null;
|
|
848
|
+
runFetch<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fetchReason: RunFetchFromDataProviderReasonType | undefined, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
|
|
849
|
+
runFetch<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fetchReason: RunFetchFromDataProviderReasonType | undefined, fallback: undefined): Observable<Nullable<Item>> | null;
|
|
850
|
+
runCreate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Item> | null;
|
|
851
|
+
runCreate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
|
|
852
|
+
runCreate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
|
|
853
|
+
runUpdate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Item> | null;
|
|
854
|
+
runUpdate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
|
|
855
|
+
runUpdate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
|
|
856
|
+
runDelete<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Nullable<Item>> | null;
|
|
857
|
+
runDelete<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
|
|
858
|
+
runDelete<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
|
|
859
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DefaultDataProviderExecutor, never>;
|
|
860
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DefaultDataProviderExecutor>;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
declare class RootActionExecutorService extends ActionExecutorService {
|
|
864
|
+
private readonly _instances;
|
|
865
|
+
get instances(): ActionInstance<any, any>[];
|
|
866
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RootActionExecutorService, never>;
|
|
867
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<RootActionExecutorService>;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
declare class EditorAutoSaveStatusComponent {
|
|
871
|
+
status: _angular_core.InputSignal<EditorAutoSaveStatus | undefined>;
|
|
872
|
+
label: _angular_core.Signal<"mngEditor.autoSave.autosavedAt" | "mngEditor.autoSave.preview" | "mngEditor.autoSave.previewCurrent" | "mngEditor.autoSave.restored" | undefined>;
|
|
873
|
+
timestampDateFormat: _angular_core.Signal<"HH:mm:ss" | "dd. MM. yyyy HH:mm:ss">;
|
|
874
|
+
icon: _angular_core.Signal<"pi pi-save" | "pi pi-hourglass pi-spin" | "pi pi-eye" | "pi pi-sync" | undefined>;
|
|
875
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditorAutoSaveStatusComponent, never>;
|
|
876
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditorAutoSaveStatusComponent, "mng-editor-auto-save-status", never, { "status": { "alias": "status"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
declare abstract class ACommonsFormlyType<Model, EditorModel, Descriptor extends AGenericFieldDescriptor> extends FieldType<CommonsFormlyFieldConfig<Model, EditorModel>> implements OnInit {
|
|
880
|
+
protected readonly destroyRef: DestroyRef;
|
|
881
|
+
protected readonly cd: ChangeDetectorRef;
|
|
882
|
+
protected formStateDisabledSubject: BehaviorSubject<boolean>;
|
|
883
|
+
protected formStateDisabled$: rxjs.Observable<boolean>;
|
|
884
|
+
descriptorSig: _angular_core.WritableSignal<Descriptor | undefined>;
|
|
885
|
+
fieldSig: _angular_core.WritableSignal<CommonsFormlyFieldConfig<Model, EditorModel, any, _mediusinc_mng_commons_tableview_api.CommonsFormlyFieldProps<Model, EditorModel, any>> | undefined>;
|
|
886
|
+
get descriptor(): Descriptor;
|
|
887
|
+
get editorDescriptor(): EditorDescriptorInst<EditorModel, any>;
|
|
888
|
+
get options(): CommonsFormlyFormOptions<EditorModel>;
|
|
889
|
+
get formState(): CommonsFormlyFormState<EditorModel>;
|
|
890
|
+
ngOnInit(): void;
|
|
891
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ACommonsFormlyType<any, any, any>, never>;
|
|
892
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ACommonsFormlyType<any, any, any>, never, never, {}, {}, never, never, true, never>;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
declare abstract class ACommonsFormlyFieldType<Model, EditorModel, Descriptor extends AFieldDescriptor<Model, EditorModel> = AFieldDescriptor<Model, EditorModel>> extends ACommonsFormlyType<Model, EditorModel, Descriptor> {
|
|
896
|
+
controlClassName: _angular_core.Signal<string>;
|
|
897
|
+
labelClassName: _angular_core.Signal<string>;
|
|
898
|
+
controlInputClassName: _angular_core.Signal<string>;
|
|
899
|
+
controlWithInputClassName: _angular_core.Signal<string>;
|
|
900
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ACommonsFormlyFieldType<any, any, any>, never>;
|
|
901
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ACommonsFormlyFieldType<any, any, any>, never, never, {}, {}, never, never, true, never>;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
declare class FormlyFieldActionComponent<EditorModel> extends ACommonsFormlyFieldType<void, EditorModel, FieldActionDescriptor<EditorModel>> implements OnInit, OnDestroy {
|
|
905
|
+
buttonClass: _angular_core.WritableSignal<string>;
|
|
906
|
+
actionMessage?: FieldActionResultMessage;
|
|
907
|
+
private resultSubscription?;
|
|
908
|
+
ngOnInit(): void;
|
|
909
|
+
ngOnDestroy(): void;
|
|
910
|
+
onClick(): void;
|
|
911
|
+
private processResult;
|
|
912
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldActionComponent<any>, never>;
|
|
913
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldActionComponent<any>, "mng-formly-field-action", never, {}, {}, never, never, true, never>;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
declare class FormlyFieldAutocompleteComponent<T, ET> extends ACommonsFormlyFieldType<T, ET, FieldLookupDescriptor<T, ET>> implements OnInit, AfterViewInit, OnDestroy {
|
|
917
|
+
ngOnInit(): void;
|
|
918
|
+
ngAfterViewInit(): void;
|
|
919
|
+
ngOnDestroy(): void;
|
|
920
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldAutocompleteComponent<any, any>, never>;
|
|
921
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldAutocompleteComponent<any, any>, "mng-formly-field-autocomplete", never, {}, {}, never, never, true, never>;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
declare class FormlyFieldCustomComponent<ET> extends ACommonsFormlyFieldType<any, ET, FieldInputDescriptor<ET>> implements OnInit {
|
|
925
|
+
inputs: Record<string, any>;
|
|
926
|
+
ngOnInit(): void;
|
|
927
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldCustomComponent<any>, never>;
|
|
928
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldCustomComponent<any>, "mng-formly-field-custom", never, {}, {}, never, never, true, never>;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
declare class FormlyFieldDropdownComponent<T, ET> extends ACommonsFormlyFieldType<T, ET, FieldLookupDescriptor<T, ET>> implements OnInit, OnDestroy {
|
|
932
|
+
ngOnInit(): void;
|
|
933
|
+
ngOnDestroy(): void;
|
|
934
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldDropdownComponent<any, any>, never>;
|
|
935
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldDropdownComponent<any, any>, "mng-formly-field-dropdown", never, {}, {}, never, never, true, never>;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
declare abstract class ACommonsFormlyGroupType<Model, EditorModel, Descriptor extends AFieldGroupDescriptor<Model, EditorModel>> extends ACommonsFormlyType<Model, EditorModel, Descriptor> {
|
|
939
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ACommonsFormlyGroupType<any, any, any>, never>;
|
|
940
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ACommonsFormlyGroupType<any, any, any>, never, never, {}, {}, never, never, true, never>;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
declare class FormlyFieldFieldsetComponent<ET> extends ACommonsFormlyGroupType<ET, ET, FieldGroupDescriptor<ET>> {
|
|
944
|
+
readonly typeFieldset = FieldGroupTypeEnum.Fieldset;
|
|
945
|
+
fieldGroup: _angular_core.Signal<{
|
|
946
|
+
type: FieldGroupTypeEnum;
|
|
947
|
+
config: CommonsFormlyFieldConfig;
|
|
948
|
+
}[]>;
|
|
949
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldFieldsetComponent<any>, never>;
|
|
950
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldFieldsetComponent<any>, "mng-formly-field-fieldset", never, {}, {}, never, never, true, never>;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
declare class FormlyFieldInputComponent<ET> extends ACommonsFormlyFieldType<any, ET, FieldInputDescriptor<ET>> implements OnInit, OnDestroy {
|
|
954
|
+
readonly NUMBER_MIN_SAFE: number;
|
|
955
|
+
readonly NUMBER_MAX_SAFE: number;
|
|
956
|
+
readonly DESC_INPUT_TYPE_IMAGE_FILE = FieldInputTypeEnum.ImageFile;
|
|
957
|
+
readonly applicationLocale: string;
|
|
958
|
+
private readonly formBuilder;
|
|
959
|
+
private readonly translateService;
|
|
960
|
+
iFormControl: FormControl;
|
|
961
|
+
numberFieldMode: 'decimal' | 'currency';
|
|
962
|
+
currency?: string;
|
|
963
|
+
private files;
|
|
964
|
+
imageFormArray: FormArray;
|
|
965
|
+
formEditorComponent?: IFormEditorComponent<ET, any>;
|
|
966
|
+
ngOnInit(): void;
|
|
967
|
+
ngOnDestroy(): void;
|
|
968
|
+
onFileSelect(event: any): void;
|
|
969
|
+
onFileRemove(event: any): void;
|
|
970
|
+
onFileClear(event: Event): void;
|
|
971
|
+
addImageUrl(value?: string | null): void;
|
|
972
|
+
removeImageUrlAt(idx: number): void;
|
|
973
|
+
onImageUrlLoadError(): void;
|
|
974
|
+
private updateFileFormControl;
|
|
975
|
+
isUrlSvgImage(url: string): boolean;
|
|
976
|
+
isFileImageSvg(file: File): boolean;
|
|
977
|
+
getFileDocumentTypeIcon(file: File): "pi-video" | "pi-volume-up" | "pi-file-pdf" | "pi-file-word" | "pi-file-excel" | "pi-file";
|
|
978
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldInputComponent<any>, never>;
|
|
979
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldInputComponent<any>, "mng-formly-field-input", never, {}, {}, never, never, true, never>;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
declare class FormlyFieldLabelComponent extends ACommonsFormlyFieldType<any, any, FieldInputDescriptor<any>> implements OnInit {
|
|
983
|
+
className: string;
|
|
984
|
+
ngOnInit(): void;
|
|
985
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldLabelComponent, never>;
|
|
986
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldLabelComponent, "mng-formly-field-label", never, {}, {}, never, never, true, never>;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
declare class FormlyFieldLookupDialogComponent<T, ET> extends ACommonsFormlyFieldType<T, ET, FieldLookupDescriptor<T, ET>> implements OnInit, AfterViewInit, OnDestroy {
|
|
990
|
+
private readonly injector;
|
|
991
|
+
private readonly logger;
|
|
992
|
+
config: FieldLookupConfig;
|
|
993
|
+
fieldLabelFormControl: FormControl;
|
|
994
|
+
addItems: _angular_core.WritableSignal<DataListResult<T>>;
|
|
995
|
+
dialogUseDataProvider: boolean;
|
|
996
|
+
private dialogDataProviderService;
|
|
997
|
+
isDialogVisible: boolean;
|
|
998
|
+
dialogAreItemsLoaded: boolean;
|
|
999
|
+
dialogSelectedItem: any;
|
|
1000
|
+
dialogIsLoading: _angular_core.WritableSignal<boolean>;
|
|
1001
|
+
private lookupDataProviderSubscription?;
|
|
1002
|
+
ngOnInit(): void;
|
|
1003
|
+
ngAfterViewInit(): void;
|
|
1004
|
+
ngOnDestroy(): void;
|
|
1005
|
+
openSelectDialog(): void;
|
|
1006
|
+
onSelectionChange(item: any): void;
|
|
1007
|
+
onCaptionCmpInst(instance: any): void;
|
|
1008
|
+
onColumnActionCmpInst(instance: any): void;
|
|
1009
|
+
clear(): void;
|
|
1010
|
+
hideDialog(): void;
|
|
1011
|
+
onAddItem(): void;
|
|
1012
|
+
private setFieldLabelValue;
|
|
1013
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldLookupDialogComponent<any, any>, never>;
|
|
1014
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldLookupDialogComponent<any, any>, "mng-formly-field-lookup-dialog", never, {}, {}, never, never, true, never>;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
declare class FormlyFieldTableDialogFormComponent<T = any, ET = any> extends ACommonsFormlyFieldType<T[], ET, FieldManyEditorDescriptor<T, ET>> implements OnInit, AfterViewInit, OnDestroy {
|
|
1018
|
+
private readonly injector;
|
|
1019
|
+
protected readonly labelInfoTooltipDefaultIcon = "pi pi-info-circle";
|
|
1020
|
+
items: _angular_core.WritableSignal<T[]>;
|
|
1021
|
+
actions: Array<ActionDescriptorInst<any>>;
|
|
1022
|
+
toolbarRightActions: Array<ActionDescriptorInst<any>>;
|
|
1023
|
+
private isDisabledSubject;
|
|
1024
|
+
private isEnabled$;
|
|
1025
|
+
disableRowReorder: _angular_core.Signal<boolean | undefined>;
|
|
1026
|
+
ngOnInit(): void;
|
|
1027
|
+
onRowReorder(event: TableRowReorderEvent): void;
|
|
1028
|
+
ngAfterViewInit(): void;
|
|
1029
|
+
ngOnDestroy(): void;
|
|
1030
|
+
private hideActionsForRowWithDefaultLocalization;
|
|
1031
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldTableDialogFormComponent<any, any>, never>;
|
|
1032
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldTableDialogFormComponent<any, any>, "mng-formly-table-dialog-form-field", never, {}, {}, never, never, true, never>;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
declare class FormlyFieldTableDialogMultiselectComponent extends ACommonsFormlyFieldType<any, any, FieldManyToManyEditorDescriptor<any, any>> implements OnInit, AfterViewInit, OnDestroy {
|
|
1036
|
+
private readonly injector;
|
|
1037
|
+
private readonly logger;
|
|
1038
|
+
protected readonly labelInfoTooltipDefaultIcon = "pi pi-info-circle";
|
|
1039
|
+
items: _angular_core.WritableSignal<any[]>;
|
|
1040
|
+
addItems: _angular_core.WritableSignal<DataListResult<any>>;
|
|
1041
|
+
private dialogDataProviderService;
|
|
1042
|
+
isDialogVisible: boolean;
|
|
1043
|
+
dialogAreItemsLoaded: boolean;
|
|
1044
|
+
dialogSelectedAddItems: Array<any>;
|
|
1045
|
+
dialogIsLoading: _angular_core.WritableSignal<boolean>;
|
|
1046
|
+
hasAddAction: boolean;
|
|
1047
|
+
hasDeleteAction: boolean;
|
|
1048
|
+
private searchDebounceSubject;
|
|
1049
|
+
private lookupDataProviderSubscription?;
|
|
1050
|
+
addTableComponent?: TableComponent;
|
|
1051
|
+
disableRowReorder: _angular_core.Signal<boolean | undefined>;
|
|
1052
|
+
ngOnInit(): void;
|
|
1053
|
+
ngAfterViewInit(): void;
|
|
1054
|
+
ngOnDestroy(): void;
|
|
1055
|
+
openAddDialog(): void;
|
|
1056
|
+
onSelectionChange(items: Array<any>): void;
|
|
1057
|
+
hideDialog(): void;
|
|
1058
|
+
onAddItems(): void;
|
|
1059
|
+
removeItem(item: any): void;
|
|
1060
|
+
onSearch(event: Event): void;
|
|
1061
|
+
onRowReorder(event: TableRowReorderEvent): void;
|
|
1062
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldTableDialogMultiselectComponent, never>;
|
|
1063
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldTableDialogMultiselectComponent, "mng-formly-table-multiselect-add-field", never, {}, {}, never, never, true, never>;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
declare class FormlyFieldTabsComponent extends ACommonsFormlyGroupType<any, any, FieldTabGroupDescriptor<any>> implements OnInit {
|
|
1067
|
+
fieldGroup: _angular_core.WritableSignal<CommonsFormlyFieldConfig<any, any, any, _mediusinc_mng_commons_tableview_api.CommonsFormlyFieldProps<any, any, any>>[]>;
|
|
1068
|
+
ngOnInit(): void;
|
|
1069
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldTabsComponent, never>;
|
|
1070
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldTabsComponent, "mng-formly-field-tabs", never, {}, {}, never, never, true, never>;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
declare class FormlyFieldNoLabelWrapperComponent extends FieldWrapper<CommonsFormlyFieldConfig> implements OnInit {
|
|
1074
|
+
private readonly destroyRef;
|
|
1075
|
+
wrapperClassName: _angular_core.WritableSignal<string>;
|
|
1076
|
+
helpText: _angular_core.WritableSignal<string | undefined>;
|
|
1077
|
+
shouldShowError: _angular_core.WritableSignal<boolean>;
|
|
1078
|
+
descriptor?: AFieldDescriptor<any, any, any, any>;
|
|
1079
|
+
editorDescriptor?: EditorDescriptorInst<any, any>;
|
|
1080
|
+
ngOnInit(): void;
|
|
1081
|
+
sanitizeErrorsForGroups(field: FormlyFieldConfig): FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
1082
|
+
[additionalProperties: string]: any;
|
|
1083
|
+
}>;
|
|
1084
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldNoLabelWrapperComponent, never>;
|
|
1085
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldNoLabelWrapperComponent, "mng-formly-field-no-label-wrapper", never, {}, {}, never, never, true, never>;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
declare class FormlyFieldWrapperComponent extends FieldWrapper<CommonsFormlyFieldConfig> implements OnInit {
|
|
1089
|
+
private readonly destroyRef;
|
|
1090
|
+
protected readonly labelInfoTooltipDefaultIcon = "pi pi-info-circle";
|
|
1091
|
+
wrapperClassName: _angular_core.WritableSignal<string>;
|
|
1092
|
+
emptyLabel: _angular_core.WritableSignal<boolean>;
|
|
1093
|
+
helpText: _angular_core.WritableSignal<string | undefined>;
|
|
1094
|
+
descriptor: AFieldDescriptor<any, any, any, any>;
|
|
1095
|
+
editorDescriptor: EditorDescriptorInst<any, any>;
|
|
1096
|
+
ngOnInit(): void;
|
|
1097
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyFieldWrapperComponent, never>;
|
|
1098
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyFieldWrapperComponent, "mng-formly-field-wrapper", never, {}, {}, never, never, true, never>;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
declare function getEditorFieldLabel(descriptor?: AGenericFieldDescriptor, editorDescriptor?: EditorDescriptorInst<any, any>): string | null;
|
|
1102
|
+
|
|
1103
|
+
declare function createFormlyConfigFromDescriptor<Item>(descriptor: EditorDescriptorInst<any>, formlyConfig: FormlyConfig, formEditorComponent: IFormEditorComponent<Item>): CommonsFormlyFieldConfig[];
|
|
1104
|
+
declare function createFormlyLocalizationsTab<Item>(descriptor: EditorDescriptorInst<Item>): EditorDescriptorInst<Item, undefined>;
|
|
1105
|
+
declare function createFormlyTabType<Item>(tabGroups: FieldTabGroupDescriptor<any>[], editorDescriptor: EditorDescriptorInst<any>, formlyConfig: FormlyConfig, formEditorComponent: IFormEditorComponent<Item>): CommonsFormlyFieldConfig[];
|
|
1106
|
+
declare function createFormlyGroupType<Item>(groups: FieldGroupDescriptor<any>[], editorDescriptor: EditorDescriptorInst<any>, formlyConfig: FormlyConfig, formEditorComponent: IFormEditorComponent<Item>): CommonsFormlyFieldConfig[];
|
|
1107
|
+
declare function createFormlyFields<Item>(descriptor: FieldGroupDescriptor<any>, editorDescriptor: EditorDescriptorInst<any>, formlyConfig: FormlyConfig, formEditorComponent: IFormEditorComponent<Item>): CommonsFormlyFieldConfig[];
|
|
1108
|
+
declare function createFormlyField<Item>(descriptor: AFieldDescriptor<any, any>, editorDescriptor: EditorDescriptorInst<any>, formlyConfig: FormlyConfig, formEditorComponent: IFormEditorComponent<Item>): CommonsFormlyFieldConfig;
|
|
1109
|
+
declare function addValidationsToFormlyField(config: CommonsFormlyFieldConfig, validations: Array<FieldValidationDescriptor<any, any>>, formlyConfig: FormlyConfig): void;
|
|
1110
|
+
declare function addAsyncValidationsToFormlyField(config: CommonsFormlyFieldConfig, asyncValidations: Array<FieldValidationDescriptor<any, any>>, formlyConfig: FormlyConfig): void;
|
|
1111
|
+
declare function createFormlyValidation(config: NonNullable<CommonsFormlyValidation>, validation: FieldValidationDescriptor<any, any>, formlyConfig: FormlyConfig): void;
|
|
1112
|
+
|
|
1113
|
+
interface TypeOption {
|
|
1114
|
+
name: string;
|
|
1115
|
+
component?: Type<FieldType>;
|
|
1116
|
+
wrappers?: string[];
|
|
1117
|
+
extends?: string;
|
|
1118
|
+
defaultOptions?: FormlyFieldConfig;
|
|
1119
|
+
}
|
|
1120
|
+
interface CommonsFormlyTypeConfig extends TypeOption {
|
|
1121
|
+
defaultOptions?: CommonsFormlyFieldConfig<any, any>;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
interface WrapperOption {
|
|
1125
|
+
name: string;
|
|
1126
|
+
component: Type<FieldWrapper>;
|
|
1127
|
+
types?: string[];
|
|
1128
|
+
}
|
|
1129
|
+
type FieldValidatorFn = (c: AbstractControl, field: FormlyFieldConfig, options?: {
|
|
1130
|
+
[id: string]: any;
|
|
1131
|
+
}) => ValidationErrors | null;
|
|
1132
|
+
interface ValidatorOption {
|
|
1133
|
+
name: string;
|
|
1134
|
+
validation: FieldValidatorFn;
|
|
1135
|
+
options?: {
|
|
1136
|
+
[id: string]: any;
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
declare const formlyWrappersConfig: WrapperOption[];
|
|
1141
|
+
declare const formlyTypesConfig: CommonsFormlyTypeConfig[];
|
|
1142
|
+
declare function getRequiredValidationMessage(translate: TranslateService): (error: any, field: CommonsFormlyFieldConfig) => Observable<string>;
|
|
1143
|
+
declare function getMinLengthValidationMessage(translate: TranslateService): (error: any, field: CommonsFormlyFieldConfig) => Observable<string> | undefined;
|
|
1144
|
+
declare function getMaxLengthValidationMessage(translate: TranslateService): (error: any, field: CommonsFormlyFieldConfig) => Observable<string> | undefined;
|
|
1145
|
+
declare function getMinValidationMessage(translate: TranslateService): (error: any, field: CommonsFormlyFieldConfig) => Observable<string> | undefined;
|
|
1146
|
+
declare function getMaxValidationMessage(translate: TranslateService): (error: any, field: CommonsFormlyFieldConfig) => Observable<string> | undefined;
|
|
1147
|
+
declare function getTextPatternValidationMessage(translate: TranslateService): (error: any, field: CommonsFormlyFieldConfig) => Observable<string> | undefined;
|
|
1148
|
+
declare function getEmailValidationMessage(translate: TranslateService): (error: any, field: CommonsFormlyFieldConfig) => Observable<string> | undefined;
|
|
1149
|
+
declare function getMinDateValidationMessage(translate: TranslateService, datePipe: DatePipe): (error: any, field: CommonsFormlyFieldConfig) => Observable<string> | undefined;
|
|
1150
|
+
declare function getMaxDateValidationMessage(translate: TranslateService, datePipe: DatePipe): (error: any, field: CommonsFormlyFieldConfig) => Observable<string> | undefined;
|
|
1151
|
+
declare const getFormlyValidationMessages: (translate: TranslateService, datePipe: DatePipe) => any[];
|
|
1152
|
+
|
|
1153
|
+
declare const minDateValidationName = "minDate";
|
|
1154
|
+
declare const minDateValidator: (min: Date | FieldInputDatePickerDynamicMinMaxFnType<Date | string | number | undefined | null, Date | string | number | undefined | null, undefined> | undefined) => FieldValidator<Date | string | number | undefined | null, any>;
|
|
1155
|
+
declare const maxDateValidationName = "maxDate";
|
|
1156
|
+
declare const maxDateValidator: (max: Date | FieldInputDatePickerDynamicMinMaxFnType<Date | string | number | undefined | null, Date | string | number | undefined | null, undefined> | undefined) => FieldValidator<Date | string | number | undefined | null, any>;
|
|
1157
|
+
declare const emailValidationName = "email";
|
|
1158
|
+
declare const emailValidator: () => FieldValidator<string | undefined | null, any>;
|
|
1159
|
+
|
|
1160
|
+
declare function fieldProjectFieldToProperty<EditorModel, ParentEditorModel, ProjectedProp extends keyof EditorModel>(editor: EditorDescriptorInst<EditorModel, ParentEditorModel> | TableviewDescriptorType<EditorModel, any, any, ParentEditorModel> | TableviewDescriptorInst<any, any, any, ParentEditorModel, any, any, any, EditorModel>, field: AFieldDescriptor<NonNullable<EditorModel[ProjectedProp]>, EditorModel, EditorModel[ProjectedProp], ParentEditorModel>, property: ProjectedProp): AFieldDescriptor<NonNullable<EditorModel[ProjectedProp]>, EditorModel, EditorModel[ProjectedProp], ParentEditorModel>;
|
|
1161
|
+
declare function fieldProjectFieldToProperty<FieldModel, EditorModel, FieldValue, ParentEditorModel, ProjectedProp extends keyof EditorModel>(editor: EditorDescriptorInst<EditorModel, ParentEditorModel> | TableviewDescriptorType<EditorModel, any, any, ParentEditorModel> | TableviewDescriptorInst<any, any, any, ParentEditorModel, any, any, any, EditorModel>, field: AFieldDescriptor<FieldModel, EditorModel, FieldValue, ParentEditorModel>, property: ProjectedProp, mapFn: (value: FieldValue) => EditorModel[ProjectedProp]): AFieldDescriptor<NonNullable<EditorModel[ProjectedProp]>, EditorModel, EditorModel[ProjectedProp], ParentEditorModel>;
|
|
1162
|
+
declare function fieldLookupWithOptionsValueProperty<Property extends keyof EditorModel, EditorModel, ParentEditorModel, Service, LookupModel, LookupValueProperty extends KeyofAndOfType<LookupModel, EditorModel[Property]>, FieldValue = EditorModel[Property]>(editor: EditorDescriptorInst<EditorModel, ParentEditorModel> | EditorDescriptorNestedObjectWrapper<any, ParentEditorModel, EditorModel> | TableviewDescriptorType<EditorModel, any, any, ParentEditorModel> | TableviewDescriptorInst<any, any, any, ParentEditorModel, any, any, any, EditorModel>, property: Property, opts: {
|
|
1163
|
+
serviceProvider?: FieldLookupProviderType<LookupModel, Service>;
|
|
1164
|
+
type?: TypeDescriptor<LookupModel>;
|
|
1165
|
+
}, lookupOptionsValueProperty: LookupValueProperty): FieldLookupDescriptor<LookupModel, EditorModel, Service, FieldValue, ParentEditorModel>;
|
|
1166
|
+
|
|
1167
|
+
declare function getFormEditorInfoMessage(translate: TranslateService, message: string, params?: any): ToastMessageOptions;
|
|
1168
|
+
declare function getFormEditorWarningMessage(translate: TranslateService, message: string): ToastMessageOptions;
|
|
1169
|
+
|
|
1170
|
+
interface TableviewFeatureConfig {
|
|
1171
|
+
formly?: {
|
|
1172
|
+
skip?: boolean;
|
|
1173
|
+
merge?: boolean;
|
|
1174
|
+
types?: CommonsFormlyTypeConfig[];
|
|
1175
|
+
wrappers?: WrapperOption[];
|
|
1176
|
+
validators?: ValidatorOption[];
|
|
1177
|
+
getValidationMessages?: (translate: TranslateService) => any[];
|
|
1178
|
+
};
|
|
1179
|
+
actions?: {
|
|
1180
|
+
debugInstances?: boolean;
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
declare const COMMONS_TABLEVIEW_FEATURE_CONFIG_IT: InjectionToken<TableviewFeatureConfig>;
|
|
1184
|
+
|
|
1185
|
+
declare function commonsFormlyConfigProvider(translate: TranslateService, datePipe: DatePipe, config?: TableviewFeatureConfig): ConfigOption;
|
|
1186
|
+
|
|
1187
|
+
declare class TableviewRouteComponent<Item, Service = undefined, Sorts = keyof Item, Filters extends keyof any = keyof Item> {
|
|
1188
|
+
tableview: _angular_core.InputSignal<TableviewInput<Item, Service, Sorts, Filters, any, any, any, any, any>>;
|
|
1189
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableviewRouteComponent<any, any, any, any>, never>;
|
|
1190
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableviewRouteComponent<any, any, any, any>, "mng-tableview-route", never, { "tableview": { "alias": "tableview"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
declare class TableviewComponent<Item = any, Service = undefined, Sorts = keyof Item, Filters extends keyof any = keyof Item> implements OnInit {
|
|
1194
|
+
readonly viewContainer: ViewContainer<any, any> | null;
|
|
1195
|
+
actionTable: Signal<ActionTableComponent<Item, Service, Sorts, Filters>>;
|
|
1196
|
+
descriptor: _angular_core.InputSignal<TableviewDescriptorInst<Item, Sorts, Filters, any, any, any, any, any>>;
|
|
1197
|
+
dataProvider: _angular_core.InputSignal<ITableviewDataProvider<Item, Service, Sorts, Filters, any, any, any, any> | undefined>;
|
|
1198
|
+
actions: _angular_core.InputSignal<ActionDescriptorInst<any, any, any, any, any>[]>;
|
|
1199
|
+
toolbarLeftActions: Signal<ActionDescriptorInst<any, any, any, any, any>[]>;
|
|
1200
|
+
toolbarRightActions: Signal<ActionDescriptorInst<any, any, any, any, any>[]>;
|
|
1201
|
+
tableActions: Signal<ActionDescriptorInst<any, any, any, any, any>[]>;
|
|
1202
|
+
tableParams: _angular_core.WritableSignal<DataListParams<string, string> | undefined>;
|
|
1203
|
+
hasItemSelectionAction: Signal<boolean>;
|
|
1204
|
+
selectedItems: _angular_core.WritableSignal<Item[]>;
|
|
1205
|
+
templates: Signal<readonly TemplateDirective[]>;
|
|
1206
|
+
footerTemplate: Signal<TemplateRef<any> | null>;
|
|
1207
|
+
rowExpandTemplate: Signal<TemplateRef<any> | null>;
|
|
1208
|
+
ngOnInit(): void;
|
|
1209
|
+
onTableLoad(event: TableLoadEvent): void;
|
|
1210
|
+
selectionChange(selectedItems: Array<Item>): void;
|
|
1211
|
+
private filterActionsByPositions;
|
|
1212
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableviewComponent<any, any, any, any>, never>;
|
|
1213
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableviewComponent<any, any, any, any>, "mng-tableview", never, { "descriptor": { "alias": "descriptor"; "required": true; "isSignal": true; }; "dataProvider": { "alias": "dataProvider"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; }, {}, ["templates"], never, true, never>;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
type TableviewRoutePermissionObjType = {
|
|
1217
|
+
read?: APermissions;
|
|
1218
|
+
add?: APermissions;
|
|
1219
|
+
edit?: APermissions;
|
|
1220
|
+
delete?: APermissions;
|
|
1221
|
+
details?: APermissions;
|
|
1222
|
+
[key: string]: APermissions | undefined;
|
|
1223
|
+
};
|
|
1224
|
+
declare class TableviewRouteBuilder extends RouteBuilder {
|
|
1225
|
+
private path;
|
|
1226
|
+
private readonly descriptor?;
|
|
1227
|
+
private readonly dataProvider?;
|
|
1228
|
+
private readonly actions?;
|
|
1229
|
+
private readonly isFromComponent;
|
|
1230
|
+
protected routeData: TableviewRouteData;
|
|
1231
|
+
private hasDetails;
|
|
1232
|
+
private detailsPath;
|
|
1233
|
+
private hasEdit;
|
|
1234
|
+
private editPath;
|
|
1235
|
+
private hasAdd;
|
|
1236
|
+
private addPath;
|
|
1237
|
+
private hasDelete;
|
|
1238
|
+
private tableviewPermissions?;
|
|
1239
|
+
constructor(path: string, component?: Type<any>, loadComponent?: () => Type<unknown> | Observable<Type<unknown> | DefaultExport<Type<unknown>>> | Promise<Type<unknown> | DefaultExport<Type<unknown>>>);
|
|
1240
|
+
withReadOnly(permissions?: APermissions): this;
|
|
1241
|
+
withDetails(hasDetails?: boolean, permissions?: APermissions, path?: string): this;
|
|
1242
|
+
withAdd(hasAdd?: boolean, permissions?: APermissions, path?: string): this;
|
|
1243
|
+
withEdit(hasEdit?: boolean, permissions?: APermissions, path?: string): this;
|
|
1244
|
+
withDelete(hasDelete?: boolean, permissions?: APermissions): this;
|
|
1245
|
+
withPermissions(read?: APermissions, add?: APermissions, edit?: APermissions, delet?: APermissions, details?: APermissions): this;
|
|
1246
|
+
withPermissionByCategory(key: string, permissions: APermissions): this;
|
|
1247
|
+
withPermissionsObject(permissions: TableviewRoutePermissionObjType): this;
|
|
1248
|
+
build(): Route;
|
|
1249
|
+
protected findMenuItemPermissions(): APermissions | undefined;
|
|
1250
|
+
}
|
|
1251
|
+
declare function createTableviewRoute(path: string, component: Type<any>): TableviewRouteBuilder;
|
|
1252
|
+
declare function createTableviewLazyRoute(path: string, loadComponent: () => Type<unknown> | Observable<Type<unknown> | DefaultExport<Type<unknown>>> | Promise<Type<unknown> | DefaultExport<Type<unknown>>>): TableviewRouteBuilder;
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* Prepares providers for usage of the tableview functionalities.
|
|
1256
|
+
*
|
|
1257
|
+
* @returns {CommonsFeature} The `CommonsFeature` object with the layout configuration.
|
|
1258
|
+
*/
|
|
1259
|
+
declare function withTableview(config?: TableviewFeatureConfig): CommonsFeature;
|
|
1260
|
+
/**
|
|
1261
|
+
* Prepares providers for usage of the tableview functionalities.
|
|
1262
|
+
*
|
|
1263
|
+
* @returns {CommonsFeature} The `CommonsFeature` object with the layout configuration.
|
|
1264
|
+
*/
|
|
1265
|
+
declare function provideTableviewChild(config?: TableviewFeatureConfig): Provider[];
|
|
1266
|
+
/**
|
|
1267
|
+
* Prepares providers for formly, including formly core.
|
|
1268
|
+
* If you choose to include formly with custom initialization and with tableview editor features, used this provider.
|
|
1269
|
+
* Currently multiple injections of `FORMLY_CONFIG` token won't work because of bug: https://github.com/ngx-formly/ngx-formly/issues/4107
|
|
1270
|
+
*/
|
|
1271
|
+
declare function provideTableviewFormly(): Provider[];
|
|
1272
|
+
|
|
1273
|
+
export { ACTION_EDITOR_COMPONENT_IT, ActionComponent, ActionContext, ActionDataProviderSource, ActionEditorComponent, ActionErrorMapperService, ActionExecutorService, ActionInstance, ActionTableComponent, COMMONS_TABLEVIEW_FEATURE_CONFIG_IT, ComponentActionExecutorService, DataLanguageDropdownComponent, DefaultActionErrorMapperService, DefaultDataProviderExecutor, EditorAutoSaveStatusComponent, FormEditorComponent, FormEditorService, FormlyFieldActionComponent, FormlyFieldAutocompleteComponent, FormlyFieldCustomComponent, FormlyFieldDropdownComponent, FormlyFieldFieldsetComponent, FormlyFieldInputComponent, FormlyFieldLabelComponent, FormlyFieldLookupDialogComponent, FormlyFieldNoLabelWrapperComponent, FormlyFieldTableDialogFormComponent, FormlyFieldTableDialogMultiselectComponent, FormlyFieldTabsComponent, FormlyFieldWrapperComponent, NavigationService, RootActionExecutorService, TableviewComponent, TableviewRouteBuilder, TableviewRouteComponent, ViewContainer, actionNotificationError, actionNotificationSuccess, addAsyncValidationsToFormlyField, addValidationsToFormlyField, calculateTableColumnActionWidth, commonsFormlyConfigProvider, createFormlyConfigFromDescriptor, createFormlyField, createFormlyFields, createFormlyGroupType, createFormlyLocalizationsTab, createFormlyTabType, createFormlyValidation, createTableviewLazyRoute, createTableviewRoute, emailValidationName, emailValidator, fieldLookupWithOptionsValueProperty, fieldProjectFieldToProperty, formlyTypesConfig, formlyWrappersConfig, getActionButtonRoundedWidth, getActionFormEditor, getActionParentFormEditor, getActionParentTable, getEditorFieldLabel, getEmailValidationMessage, getFormEditorInfoMessage, getFormEditorWarningMessage, getFormlyValidationMessages, getI18nActionEditorTitleAsync, getI18nActionParams, getI18nActionParamsAsync, getI18nActionTitleAsync, getI18nForAction, getI18nForActionAsync, getMaxDateValidationMessage, getMaxLengthValidationMessage, getMaxValidationMessage, getMinDateValidationMessage, getMinLengthValidationMessage, getMinValidationMessage, getRequiredValidationMessage, getTableCellPaddingX, getTextPatternValidationMessage, maxDateValidationName, maxDateValidator, minDateValidationName, minDateValidator, populateI18nActionParams, provideActionExecutor, provideFormComponent, provideTableviewChild, provideTableviewFormly, provideViewContainer, unsavedChangesGuard, withTableview };
|
|
1274
|
+
export type { ActionEditorDialogData, CanComponentDeactivate, CommonsFormlyTypeConfig, EditorAutoSavePreviewModel, EditorAutoSaveStates, EditorAutoSaveStatus, TableviewFeatureConfig };
|