@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
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, Type } from '@angular/core';
|
|
2
|
-
import { APermissions, ClassType, IActionDescriptor, IDataProvider, ServiceClassType, StyleLevelEnum } from '@mediusinc/mng-commons/core';
|
|
3
|
-
import { IActionButtonDescriptor } from '@mediusinc/mng-commons/form/api';
|
|
4
|
-
import { ModelDescriptor } from '@mediusinc/mng-commons/model';
|
|
5
|
-
import { IActionComponent } from '../models/action-component.model';
|
|
6
|
-
import { ActionConfirmation } from '../models/action-confirmation.model';
|
|
7
|
-
import { ActionNotificationType, ActionRunFnType, ActionValidationFnType } from '../models/action-descriptor.types';
|
|
8
|
-
import { ActionActivationTriggerEnum, ActionPositionEnum, ActionTypeEnum } from '../models/action.type';
|
|
9
|
-
import { IActionContext } from '../models/execution/action-context.model';
|
|
10
|
-
export type ActionDescriptorCreateOptsProviderType<Item, Service> = {
|
|
11
|
-
serviceType?: ServiceClassType<Service>;
|
|
12
|
-
dataProvider?: IDataProvider<Item, Service>;
|
|
13
|
-
};
|
|
14
|
-
export type ActionDescriptorCreateOptsParentType = {
|
|
15
|
-
parentModel?: ModelDescriptor<any>;
|
|
16
|
-
parentProperty?: string;
|
|
17
|
-
};
|
|
18
|
-
export type ActionDescriptorConstructorOptsType<Item, Service> = ActionDescriptorCreateOptsParentType & ActionDescriptorCreateOptsProviderType<Item, Service> & {
|
|
19
|
-
model?: ModelDescriptor<Item>;
|
|
20
|
-
};
|
|
21
|
-
type AfterRunActionType<RunReturnItem> = ActionDescriptorInst<any, any, RunReturnItem, any, undefined>;
|
|
22
|
-
type OnErrorActionType<RunInputItem> = ActionDescriptorInst<any, any, RunInputItem, any, undefined>;
|
|
23
|
-
export declare class ActionDescriptorInst<Item, Service = any, RunInputItem = Item, RunReturnItem = Item, ValidationInputItem = RunInputItem> implements IActionDescriptor<Item, Service> {
|
|
24
|
-
protected readonly _model?: ModelDescriptor<Item>;
|
|
25
|
-
protected readonly _actionName: string;
|
|
26
|
-
protected readonly _actionNameLong: string;
|
|
27
|
-
protected readonly _parentModel?: ModelDescriptor<any>;
|
|
28
|
-
protected readonly _parentProperty?: string;
|
|
29
|
-
protected readonly _dataProvider?: IDataProvider<Item, Service>;
|
|
30
|
-
protected _i18nModelActionBaseKey?: string;
|
|
31
|
-
protected _type: ActionTypeEnum;
|
|
32
|
-
protected _activationTrigger: ActionActivationTriggerEnum;
|
|
33
|
-
protected _position: ActionPositionEnum;
|
|
34
|
-
protected _level: StyleLevelEnum;
|
|
35
|
-
private _positionTableviewCategories?;
|
|
36
|
-
protected _tableviewCategory?: string;
|
|
37
|
-
protected _routeUrl: string | null;
|
|
38
|
-
protected _runFunction?: ActionRunFnType<Item, Service, RunInputItem, RunReturnItem>;
|
|
39
|
-
protected _isVisibleFunction?: ActionValidationFnType<ValidationInputItem, Service>;
|
|
40
|
-
protected _isEnabledFunction?: ActionValidationFnType<ValidationInputItem, Service>;
|
|
41
|
-
protected _runConfirmation?: ActionConfirmation<Item, RunInputItem, Service>;
|
|
42
|
-
protected _runNotificationOnSuccess?: ActionNotificationType | boolean;
|
|
43
|
-
protected _runNotificationOnError?: ActionNotificationType | boolean;
|
|
44
|
-
protected _afterRunAction?: AfterRunActionType<RunReturnItem> | ((ctx: IActionContext<Item, RunInputItem, any, any>) => AfterRunActionType<RunReturnItem>);
|
|
45
|
-
protected _onRunErrorAction?: OnErrorActionType<RunInputItem> | ((ctx: IActionContext<Item, RunInputItem, any, any>) => OnErrorActionType<RunInputItem>);
|
|
46
|
-
protected _permissions?: APermissions;
|
|
47
|
-
protected _button?: IActionButtonDescriptor;
|
|
48
|
-
protected _hasItemsSelection: boolean;
|
|
49
|
-
protected _component?: Type<IActionComponent<Item>>;
|
|
50
|
-
protected _componentFromDi?: InjectionToken<Type<any>>;
|
|
51
|
-
protected _subactionsAsMenu: boolean;
|
|
52
|
-
protected _subactions: Array<ActionDescriptorInst<Item, any, RunInputItem, any>>;
|
|
53
|
-
constructor(actionName: string, cfg?: ActionDescriptorConstructorOptsType<Item, Service>);
|
|
54
|
-
get model(): ModelDescriptor<Item> | undefined;
|
|
55
|
-
get parentModel(): ModelDescriptor<any> | undefined;
|
|
56
|
-
get parentProperty(): string | undefined;
|
|
57
|
-
get i18nModelActionBaseKey(): string | undefined;
|
|
58
|
-
get type(): ActionTypeEnum;
|
|
59
|
-
get activationTrigger(): ActionActivationTriggerEnum;
|
|
60
|
-
get position(): ActionPositionEnum;
|
|
61
|
-
get routeUrl(): string | null;
|
|
62
|
-
get dataProvider(): IDataProvider<Item, Service> | undefined;
|
|
63
|
-
get hasRunFunction(): boolean;
|
|
64
|
-
get runFunction(): ActionRunFnType<Item, Service, RunInputItem, RunReturnItem>;
|
|
65
|
-
get isVisibleFunction(): ActionValidationFnType<ValidationInputItem, Service> | undefined;
|
|
66
|
-
get isEnabledFunction(): ActionValidationFnType<ValidationInputItem, Service> | undefined;
|
|
67
|
-
get actionName(): string;
|
|
68
|
-
get actionNameLong(): string;
|
|
69
|
-
get runConfirmation(): ActionConfirmation<Item, RunInputItem, Service> | undefined;
|
|
70
|
-
get runNotificationOnSuccess(): boolean | ActionNotificationType | undefined;
|
|
71
|
-
get runNotificationOnError(): boolean | ActionNotificationType | undefined;
|
|
72
|
-
get afterRunAction(): AfterRunActionType<RunReturnItem> | ((ctx: IActionContext<Item, RunInputItem, any, any>) => AfterRunActionType<RunReturnItem>) | undefined;
|
|
73
|
-
get onRunErrorAction(): OnErrorActionType<RunInputItem> | ((ctx: IActionContext<Item, RunInputItem, any, any>) => OnErrorActionType<RunInputItem>) | undefined;
|
|
74
|
-
get permissions(): APermissions | undefined;
|
|
75
|
-
get tableviewCategory(): string | undefined;
|
|
76
|
-
get hasItemsSelection(): boolean;
|
|
77
|
-
get button(): IActionButtonDescriptor | undefined;
|
|
78
|
-
get component(): Type<IActionComponent<Item, undefined>> | undefined;
|
|
79
|
-
get componentFromDi(): InjectionToken<Type<any>> | undefined;
|
|
80
|
-
get positionTableviewCategories(): string[] | undefined;
|
|
81
|
-
get subactionsAsMenu(): boolean;
|
|
82
|
-
get subactions(): ActionDescriptorInst<Item, any, RunInputItem, any, RunInputItem>[];
|
|
83
|
-
protected setI18nModelActionBaseKey(base?: string): void;
|
|
84
|
-
withRunFunction(fn: ActionRunFnType<Item, Service, RunInputItem, RunReturnItem>): this;
|
|
85
|
-
withIsVisibleFunction(fn?: ActionValidationFnType<ValidationInputItem, Service>): this;
|
|
86
|
-
withIsEnabledFunction(fn?: ActionValidationFnType<ValidationInputItem, Service>): this;
|
|
87
|
-
withRouteTrigger(routeUrl: string): this;
|
|
88
|
-
withPosition(position: ActionPositionEnum): this;
|
|
89
|
-
/**
|
|
90
|
-
* Creates confirmation action with default style based on action descriptor
|
|
91
|
-
*/
|
|
92
|
-
withRunConfirmation(opts?: boolean | ActionConfirmation<Item, RunInputItem, Service>): this;
|
|
93
|
-
/**
|
|
94
|
-
* Override default notifications setup. Notifications can either be overridden with custom text or turned on/off.
|
|
95
|
-
*
|
|
96
|
-
* @param opts Provide config for texts or on/off flag for run success/error notifications.
|
|
97
|
-
*/
|
|
98
|
-
withNotifications(opts?: {
|
|
99
|
-
runOnSuccess?: ActionNotificationType | boolean;
|
|
100
|
-
runOnError?: ActionNotificationType | boolean;
|
|
101
|
-
} | boolean): this;
|
|
102
|
-
withAfterRunAction(action?: AfterRunActionType<RunReturnItem> | ((ctx: IActionContext<Item, RunInputItem, any, any>) => AfterRunActionType<RunReturnItem>)): this;
|
|
103
|
-
withOnRunErrorAction(action?: OnErrorActionType<RunInputItem> | ((ctx: IActionContext<Item, RunInputItem, any, any>) => OnErrorActionType<RunInputItem>)): this;
|
|
104
|
-
withPermissions(permissions: APermissions): this;
|
|
105
|
-
withTableviewCategory(category: string): this;
|
|
106
|
-
withButtonOpts(button?: IActionButtonDescriptor): this;
|
|
107
|
-
withButton(label?: string | null, icon?: string | null, level?: StyleLevelEnum): this;
|
|
108
|
-
withItemsSelection(hasSelection?: boolean): this;
|
|
109
|
-
withComponent(component: Type<IActionComponent<Item>>): this;
|
|
110
|
-
withComponentFromDi(injectionToken: InjectionToken<Type<any>>): this;
|
|
111
|
-
withPositionTableviewCategories(positionTableviewCategories: string[]): this;
|
|
112
|
-
withI18nBase(base: ClassType<unknown> | string): this;
|
|
113
|
-
withSubactionsAsMenu(subactionsAsMenu?: boolean): this;
|
|
114
|
-
withSubactions(...subactions: Array<ActionDescriptorInst<Item, any, RunInputItem, any>>): this;
|
|
115
|
-
copyFieldsTo(descriptor: ActionDescriptorInst<Item, Service, RunInputItem, RunReturnItem, ValidationInputItem>): ActionDescriptorInst<Item, Service, RunInputItem, RunReturnItem, ValidationInputItem>;
|
|
116
|
-
copy(): ActionDescriptorInst<Item, Service, RunInputItem, RunReturnItem, ValidationInputItem>;
|
|
117
|
-
}
|
|
118
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ModelDescriptor } from '@mediusinc/mng-commons/model';
|
|
2
|
-
import { EditorDescriptorInst } from '../../editor/descriptors/editor.descriptor';
|
|
3
|
-
import { ActionPositionEnum } from '../models/action.type';
|
|
4
|
-
import { ActionProviderType } from './action-descriptor.factory';
|
|
5
|
-
import { ActionDescriptorInst } from './action.descriptor';
|
|
6
|
-
/**
|
|
7
|
-
* Defines an action to be positioned on a specified editor with editor-specific execution context.
|
|
8
|
-
*
|
|
9
|
-
* @param {string} actionName - The name identifying the action to be performed.
|
|
10
|
-
* @param {EditorDescriptorInst<EditorModel>} editor - The descriptor of the editor on which the action will be placed and executed.
|
|
11
|
-
* @param {Object} [opts] - Options for configuring the action behavior.
|
|
12
|
-
* @param {ModelDescriptor<Model>} [opts.model] - The model descriptor associated with the action.
|
|
13
|
-
* @param {ActionProviderType<Model, Service>} [opts.serviceProvider] - The service provider type for execution context.
|
|
14
|
-
* @param {ActionPositionEnum.FooterLeft | ActionPositionEnum.FooterRight | ActionPositionEnum.ToolbarLeft | ActionPositionEnum.ToolbarRight} [opts.position] - The position of action on editor.
|
|
15
|
-
* @return {ActionDescriptorInst<Model, Service, EditorModel, Model, EditorModel>} - An instance representing the configured action descriptor for the specified editor and model.
|
|
16
|
-
*/
|
|
17
|
-
export declare function actionOnEditor<Model, EditorModel, Service = undefined>(actionName: string, editor: EditorDescriptorInst<EditorModel, any>, opts?: {
|
|
18
|
-
model?: ModelDescriptor<Model>;
|
|
19
|
-
serviceProvider?: ActionProviderType<Model, Service>;
|
|
20
|
-
position?: ActionPositionEnum.FooterLeft | ActionPositionEnum.FooterRight | ActionPositionEnum.ToolbarLeft | ActionPositionEnum.ToolbarRight;
|
|
21
|
-
}): ActionDescriptorInst<Model, Service, EditorModel, Model, EditorModel>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ModelDescriptor } from '@mediusinc/mng-commons/model';
|
|
2
|
-
import { EditorDescriptorInst } from '../../editor/descriptors/editor.descriptor';
|
|
3
|
-
import { ActionPositionEnum } from '../models/action.type';
|
|
4
|
-
import { ActionEditorProviderType } from './action-editor-descriptor.factory';
|
|
5
|
-
import { ActionEditorDescriptorInst } from './action-editor.descriptor';
|
|
6
|
-
/**
|
|
7
|
-
* Creates and returns an instance of `ActionEditorDescriptorInst` when positioned on another (parent) editor.
|
|
8
|
-
*
|
|
9
|
-
* @param {string} actionName - The name of the action associated with the editor.
|
|
10
|
-
* @param {EditorDescriptorInst<EditorModel, ParentEditor>} editor - The editor descriptor defining editor on action.
|
|
11
|
-
* @param {Object} [opts] - Optional parameters for configuring the action editor.
|
|
12
|
-
* @param {ModelDescriptor<Model>} [opts.model] - The descriptor for the model associated with the action.
|
|
13
|
-
* @param {ActionEditorProviderType<Model, Service>} [opts.serviceProvider] - The service provider type for the action editor.
|
|
14
|
-
* @param {ActionPositionEnum.FooterLeft | ActionPositionEnum.FooterRight | ActionPositionEnum.ToolbarLeft | ActionPositionEnum.ToolbarRight} [opts.position] - The desired position of action on the editor.
|
|
15
|
-
* @return {ActionEditorDescriptorInst<Model, Service, EditorModel, ParentEditor, EditorModel, ParentEditor>} A configured instance of `ActionEditorDescriptorInst` representing the action editor.
|
|
16
|
-
*/
|
|
17
|
-
export declare function actionEditorOnEditor<EditorModel, ParentEditor, Model = EditorModel, Service = undefined>(actionName: string, editor: EditorDescriptorInst<EditorModel, ParentEditor>, opts?: {
|
|
18
|
-
model?: ModelDescriptor<Model>;
|
|
19
|
-
serviceProvider?: ActionEditorProviderType<Model, Service>;
|
|
20
|
-
position?: ActionPositionEnum.FooterLeft | ActionPositionEnum.FooterRight | ActionPositionEnum.ToolbarLeft | ActionPositionEnum.ToolbarRight;
|
|
21
|
-
}): ActionEditorDescriptorInst<Model, Service, EditorModel, ParentEditor, EditorModel, ParentEditor, ParentEditor>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ModelDescriptor } from '@mediusinc/mng-commons/model';
|
|
2
|
-
import { TableDescriptorInst } from '@mediusinc/mng-commons/table/api';
|
|
3
|
-
import { ActionPositionEnum } from '../models/action.type';
|
|
4
|
-
import { ActionProviderType } from './action-descriptor.factory';
|
|
5
|
-
import { ActionDescriptorInst } from './action.descriptor';
|
|
6
|
-
/**
|
|
7
|
-
* Defines an action to be positioned on a specified table with table row execution context.
|
|
8
|
-
*
|
|
9
|
-
* @param {string} actionName - The name identifying the action to be performed.
|
|
10
|
-
* @param {TableDescriptorInst<TableModel, any, any>} table - The descriptor of the table on which the action will be placed and executed.
|
|
11
|
-
* @param {Object} [opts] - Options for configuring the action behavior.
|
|
12
|
-
* @param {ModelDescriptor<Model>} [opts.model] - The model descriptor associated with the action.
|
|
13
|
-
* @param {ActionProviderType<Model, Service>} [opts.serviceProvider] - The service provider type for execution context.
|
|
14
|
-
* @param {ActionPositionEnum.RowInline | ActionPositionEnum.RowClick} [opts.position] - The position of action on table.
|
|
15
|
-
* @return {ActionDescriptorInst<Model, Service, TableModel, Model, TableModel>} - An instance representing the configured action descriptor for the specified table row and model.
|
|
16
|
-
*/
|
|
17
|
-
export declare function actionOnTableRow<Model, TableModel, Service = undefined>(actionName: string, table: TableDescriptorInst<TableModel, any, any>, opts?: {
|
|
18
|
-
model?: ModelDescriptor<Model>;
|
|
19
|
-
serviceProvider?: ActionProviderType<Model, Service>;
|
|
20
|
-
position?: ActionPositionEnum.RowInline | ActionPositionEnum.RowClick;
|
|
21
|
-
}): ActionDescriptorInst<Model, Service, TableModel, Model, TableModel>;
|
|
22
|
-
/**
|
|
23
|
-
* Defines an action to be positioned on a specified table with table header or footer execution context.
|
|
24
|
-
*
|
|
25
|
-
* @param {string} actionName - The name identifying the action to be performed.
|
|
26
|
-
* @param {Object} [opts] - Options for configuring the action behavior.
|
|
27
|
-
* @param {ModelDescriptor<Model>} [opts.model] - The model descriptor associated with the action.
|
|
28
|
-
* @param {ActionProviderType<Model, Service>} [opts.serviceProvider] - The service provider type for execution context.
|
|
29
|
-
* @param {ActionPositionEnum.ToolbarLeft | ActionPositionEnum.ToolbarRight | ActionPositionEnum.TableHeader} [opts.position] - The position of action on table.
|
|
30
|
-
* @return {ActionDescriptorInst<Model, Service, TableModel, Model, TableModel>} - An instance representing the configured action descriptor for the specified table top and model.
|
|
31
|
-
*/
|
|
32
|
-
export declare function actionOnTableTop<Model, Service = undefined>(actionName: string, opts?: {
|
|
33
|
-
model?: ModelDescriptor<Model>;
|
|
34
|
-
serviceProvider?: ActionProviderType<Model, Service>;
|
|
35
|
-
position?: ActionPositionEnum.ToolbarLeft | ActionPositionEnum.ToolbarRight | ActionPositionEnum.TableHeader;
|
|
36
|
-
}): ActionDescriptorInst<Model, Service, undefined, Model, undefined>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ModelDescriptor } from '@mediusinc/mng-commons/model';
|
|
2
|
-
import { TableDescriptorInst } from '@mediusinc/mng-commons/table/api';
|
|
3
|
-
import { EditorDescriptorInst } from '../../editor/descriptors/editor.descriptor';
|
|
4
|
-
import { ActionPositionEnum } from '../models/action.type';
|
|
5
|
-
import { ActionEditorProviderType } from './action-editor-descriptor.factory';
|
|
6
|
-
import { ActionEditorDescriptorInst } from './action-editor.descriptor';
|
|
7
|
-
/**
|
|
8
|
-
* Creates and returns an ActionEditorDescriptorInst for displaying editor action on table row.
|
|
9
|
-
*
|
|
10
|
-
* @param {string} actionName - The name of the action.
|
|
11
|
-
* @param {EditorDescriptorInst<EditorModel, any>} editor - The editor descriptor instance responsible for configuring the editor behavior.
|
|
12
|
-
* @param {TableDescriptorInst<TableModel, any, any>} table - The table descriptor instance representing the table on which the action is positioned.
|
|
13
|
-
* @param {Object} [opts] - Optional configurations for the action editor.
|
|
14
|
-
* @param {ModelDescriptor<Model>} [opts.model] - The model descriptor associated with the action editor.
|
|
15
|
-
* @param {ActionEditorProviderType<Model, Service>} [opts.serviceProvider] - The service provider for additional configurations or services for the action editor.
|
|
16
|
-
* @param {ActionPositionEnum.RowInline | ActionPositionEnum.RowClick} [opts.position] - The position where the action should be displayed on the table row.
|
|
17
|
-
* @return {ActionEditorDescriptorInst<Model, Service, EditorModel, TableModel, EditorModel, TableModel>} The configured action editor descriptor instance.
|
|
18
|
-
*/
|
|
19
|
-
export declare function actionEditorOnTableRow<EditorModel, ParentEditorItem, TableModel, Model = EditorModel, Service = undefined>(actionName: string, editor: EditorDescriptorInst<EditorModel, ParentEditorItem>, table: TableDescriptorInst<TableModel, any, any>, opts?: {
|
|
20
|
-
model?: ModelDescriptor<Model>;
|
|
21
|
-
serviceProvider?: ActionEditorProviderType<Model, Service>;
|
|
22
|
-
position?: ActionPositionEnum.RowInline | ActionPositionEnum.RowClick;
|
|
23
|
-
}): ActionEditorDescriptorInst<Model, Service, EditorModel, TableModel, EditorModel, TableModel, ParentEditorItem>;
|
|
24
|
-
/**
|
|
25
|
-
* Creates and returns an action editor descriptor configured with the given parameters.
|
|
26
|
-
* This is used to define an action editor positioned relative to a table.
|
|
27
|
-
*
|
|
28
|
-
* @param {string} actionName - The name of the action.
|
|
29
|
-
* @param {EditorDescriptorInst<EditorModel, any>} editor - The editor descriptor instance responsible for configuring the editor behavior.
|
|
30
|
-
* @param {Object} [opts] - Optional configurations for the action editor.
|
|
31
|
-
* @param {ModelDescriptor<Model>} [opts.model] - The model descriptor associated with the action editor.
|
|
32
|
-
* @param {ActionEditorProviderType<Model, Service>} [opts.serviceProvider] - The service provider for additional configurations or services for the action editor.
|
|
33
|
-
* @param {ActionPositionEnum.ToolbarLeft | ActionPositionEnum.ToolbarRight | ActionPositionEnum.TableHeader} [opts.position] - The position of the action on the table.
|
|
34
|
-
* @return {ActionEditorDescriptorInst<Model, Service, EditorModel, undefined, EditorModel, undefined>} The configured action editor descriptor instance.
|
|
35
|
-
*/
|
|
36
|
-
export declare function actionEditorOnTableTop<EditorModel, ParentEditorItem, Model = EditorModel, Service = undefined>(actionName: string, editor: EditorDescriptorInst<EditorModel, ParentEditorItem>, opts?: {
|
|
37
|
-
model?: ModelDescriptor<Model>;
|
|
38
|
-
serviceProvider?: ActionEditorProviderType<Model, Service>;
|
|
39
|
-
position?: ActionPositionEnum.ToolbarLeft | ActionPositionEnum.ToolbarRight | ActionPositionEnum.TableHeader;
|
|
40
|
-
}): ActionEditorDescriptorInst<Model, Service, EditorModel, undefined, EditorModel, undefined, ParentEditorItem>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DataListResult, IDataProvider, Nullable } from '@mediusinc/mng-commons/core';
|
|
4
|
-
import { IActionContext } from '../models/execution/action-context.model';
|
|
5
|
-
export declare function runFnFromDataProviderOrFallback<Item, ParameterItem, Service, Return, FallbackReturn = Return>(ctx: IActionContext<Item, ParameterItem, Service>, fn: (ctx: IActionContext<Item, ParameterItem, Service>) => Observable<Return> | null, fallback: Observable<FallbackReturn>): Observable<Return | FallbackReturn>;
|
|
6
|
-
export declare function runFnFromDataProviderOrFail<Item, ParameterItem, Service, Return>(ctx: IActionContext<Item, ParameterItem, Service>, fn: (ctx: IActionContext<Item, ParameterItem, Service>) => Observable<Return> | null): Observable<Return>;
|
|
7
|
-
export declare function runGetAllFromDataProvider<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<DataListResult<Item>> | null;
|
|
8
|
-
export type RunFetchFromDataProviderOptsType = {
|
|
9
|
-
strict?: boolean;
|
|
10
|
-
reason?: RunFetchFromDataProviderReasonType;
|
|
11
|
-
};
|
|
12
|
-
export type RunFetchFromDataProviderReasonType = 'create' | 'update' | 'fetch';
|
|
13
|
-
export declare function runFetchFromDataProvider<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, opts?: RunFetchFromDataProviderOptsType): Observable<Item> | null;
|
|
14
|
-
export declare function runCreateFromDataProvider<Item, ParameterItem, Service>(ctx: IActionContext<Item, ParameterItem, Service>): Observable<Nullable<Item>> | null;
|
|
15
|
-
export declare function runUpdateFromDataProvider<Item, ParameterItem, service>(ctx: IActionContext<Item, ParameterItem, service>): Observable<Nullable<Item>> | null;
|
|
16
|
-
export declare function runDeleteFromDataProvider<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Nullable<Item>> | null;
|
|
17
|
-
/**
|
|
18
|
-
* Gets service instance of data provider.
|
|
19
|
-
*
|
|
20
|
-
* @param injector Injector instance
|
|
21
|
-
* @param dataProvider Data provider instance.
|
|
22
|
-
*/
|
|
23
|
-
export declare function getDataProviderService<Item, Service>(injector: Injector, dataProvider?: IDataProvider<Item, Service>): Service | null;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { InputSignal, OutputEmitterRef } from '@angular/core';
|
|
2
|
-
import { ActionData, ActionParameters, IdType } from '@mediusinc/mng-commons/core';
|
|
3
|
-
import { ActionDescriptorInst } from '../descriptors/action.descriptor';
|
|
4
|
-
export interface IActionComponent<Item = any, Service = undefined> {
|
|
5
|
-
action: InputSignal<ActionDescriptorInst<Item, Service, any, any, any>>;
|
|
6
|
-
item: InputSignal<Item>;
|
|
7
|
-
itemId: InputSignal<IdType>;
|
|
8
|
-
actionData: InputSignal<ActionData>;
|
|
9
|
-
enabled: InputSignal<boolean>;
|
|
10
|
-
loading: InputSignal<boolean>;
|
|
11
|
-
trigger: OutputEmitterRef<ActionParameters<Item>>;
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Confirmation } from 'primeng/api';
|
|
2
|
-
import { IActionButtonDescriptor } from '@mediusinc/mng-commons/form/api';
|
|
3
|
-
import { IActionContext } from './execution/action-context.model';
|
|
4
|
-
export interface ActionConfirmation<Model, ParametersItem, Service> {
|
|
5
|
-
icon?: string | null;
|
|
6
|
-
title?: string | null;
|
|
7
|
-
message?: string | null;
|
|
8
|
-
acceptButton?: IActionButtonDescriptor;
|
|
9
|
-
rejectButton?: IActionButtonDescriptor | false;
|
|
10
|
-
closeOnEscape?: boolean;
|
|
11
|
-
closable?: boolean;
|
|
12
|
-
configMapFn?: ConfigurationConfigMapFn<ParametersItem>;
|
|
13
|
-
shouldShowFn?: ConfigurationShouldShowFn<Model, ParametersItem, Service>;
|
|
14
|
-
}
|
|
15
|
-
export type ConfigurationConfigMapFn<Item> = (ctx: IActionContext<any, Item, any, any, any>, confirmConfig: Confirmation) => Confirmation;
|
|
16
|
-
export type ConfigurationShouldShowFn<Item, ParametersItem, Service> = (ctx: IActionContext<Item, ParametersItem, Service, any, any>) => boolean;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ItemOrObservable, Nullable } from '@mediusinc/mng-commons/core';
|
|
2
|
-
import { ActionContextValidation } from './execution/action-context-validation.model';
|
|
3
|
-
import { IActionContext, IActionEditorContext } from './execution/action-context.model';
|
|
4
|
-
export type ActionRunFnType<Item, Service = undefined, InputItem = Item, ReturnItem = Item, Return = ItemOrObservable<Nullable<ReturnItem>>> = (ctx: IActionContext<Item, InputItem, Service>) => Return;
|
|
5
|
-
export type ActionEditorRunFnType<Item, ParentItem, Service = undefined, InputItem = Item, ReturnItem = Item, Return = ItemOrObservable<Nullable<ReturnItem>>> = (ctx: IActionEditorContext<Item, ParentItem, InputItem, Service>) => Return;
|
|
6
|
-
export type ActionValidationFnType<Item, Service = undefined, InputItem = Item, Return = ItemOrObservable<boolean>> = (ctx: ActionContextValidation<Item, InputItem, Service>) => Return;
|
|
7
|
-
export type ActionNotificationType = {
|
|
8
|
-
title?: string;
|
|
9
|
-
message?: string;
|
|
10
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import { ACommonsErrorBase, CommonsErrorBaseOptions, ICommonsActionError } from '@mediusinc/mng-commons/core';
|
|
3
|
-
import { IActionContext } from './execution/action-context.model';
|
|
4
|
-
export interface CommonsActionErrorOptions extends CommonsErrorBaseOptions {
|
|
5
|
-
actionContext?: IActionContext<any, any, any>;
|
|
6
|
-
httpError?: HttpErrorResponse;
|
|
7
|
-
}
|
|
8
|
-
export declare class CommonsActionError extends ACommonsErrorBase implements ICommonsActionError {
|
|
9
|
-
readonly type = "CommonsActionError";
|
|
10
|
-
readonly actionId: string;
|
|
11
|
-
readonly actionContext?: IActionContext<any, any>;
|
|
12
|
-
readonly httpError?: HttpErrorResponse;
|
|
13
|
-
constructor(message: string, actionName: string, options?: CommonsActionErrorOptions);
|
|
14
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare enum ActionPositionEnum {
|
|
2
|
-
ToolbarLeft = 0,
|
|
3
|
-
ToolbarRight = 1,
|
|
4
|
-
TableHeader = 2,
|
|
5
|
-
RowInline = 3,
|
|
6
|
-
RowClick = 4,
|
|
7
|
-
FooterLeft = 5,
|
|
8
|
-
FooterRight = 6
|
|
9
|
-
}
|
|
10
|
-
export declare enum ActionActivationTriggerEnum {
|
|
11
|
-
OnClick = 0,// action is triggered for activation on click
|
|
12
|
-
OnRoute = 1
|
|
13
|
-
}
|
|
14
|
-
export declare enum ActionTypeEnum {
|
|
15
|
-
Direct = 0,// action is directly activated and executed
|
|
16
|
-
Editor = 1
|
|
17
|
-
}
|
|
18
|
-
export declare enum ActionEditorSubmitTypeEnum {
|
|
19
|
-
Submit = 0,
|
|
20
|
-
Cancel = 1
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ActionParameters, IDataProvider } from '@mediusinc/mng-commons/core';
|
|
2
|
-
import { ActionDescriptorInst } from '../../descriptors/action.descriptor';
|
|
3
|
-
/**
|
|
4
|
-
* Class containing all main data for action validations (enabled/visible) to be executed in validation states.
|
|
5
|
-
*/
|
|
6
|
-
export interface ActionContextValidation<Item, ParametersItem, Service = undefined> {
|
|
7
|
-
descriptor: ActionDescriptorInst<Item, Service>;
|
|
8
|
-
parameters: ActionParameters<ParametersItem>;
|
|
9
|
-
serviceInstance: Service;
|
|
10
|
-
dataProvider?: IDataProvider<Item, Service>;
|
|
11
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { Confirmation, ToastMessageOptions } from 'primeng/api';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { ActionParameters, IDataProvider } from '@mediusinc/mng-commons/core';
|
|
5
|
-
import { IActionInstance } from './action-instance.model';
|
|
6
|
-
import { IViewContainer } from './view-container.model';
|
|
7
|
-
/**
|
|
8
|
-
* Class containing all main data for action to be executed in run/fetch/submit states.
|
|
9
|
-
*/
|
|
10
|
-
export interface IActionContext<Item, ParametersItem, Service = undefined, Instance extends IActionInstance<Item, Service> = IActionInstance<Item, Service>, ViewContainer extends IViewContainer<Item, Service, Instance> = IViewContainer<Item, Service, Instance>> {
|
|
11
|
-
contextLongName: string;
|
|
12
|
-
instance: Instance;
|
|
13
|
-
parameters: ActionParameters<ParametersItem, ParametersItem, ParametersItem, ParametersItem>;
|
|
14
|
-
functionName: 'run' | 'fetch' | 'submit';
|
|
15
|
-
serviceInstance: Service;
|
|
16
|
-
dataProvider?: IDataProvider<Item, Service>;
|
|
17
|
-
viewContainer?: ViewContainer;
|
|
18
|
-
injector: Injector;
|
|
19
|
-
previousActionInstance?: IActionInstance<any, any>;
|
|
20
|
-
confirmation?: Confirmation;
|
|
21
|
-
notification?: ToastMessageOptions;
|
|
22
|
-
execution$: Observable<Item | null | undefined>;
|
|
23
|
-
executionIsRunning$: Observable<boolean>;
|
|
24
|
-
}
|
|
25
|
-
export type IActionEditorContext<Item, ParentItem, ParametersItem, Service = undefined, Instance extends IActionInstance<Item, Service> = IActionInstance<Item, Service>, ViewContainer extends IViewContainer<Item, Service, Instance> = IViewContainer<Item, Service, Instance>> = IActionContext<Item, ParametersItem, Service, Instance, ViewContainer>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* States of action. Enums ending with "*Final" are supposed to be final.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ActionInstanceStateEnum {
|
|
5
|
-
TriggerStart = 0,// action was triggered (click or direct)
|
|
6
|
-
TriggerEnd = 1,
|
|
7
|
-
ActivationStart = 2,// action activation started (direct, event or editor)
|
|
8
|
-
ActivationEnd = 3,// action activation ended
|
|
9
|
-
FetchStart = 4,// fetch started
|
|
10
|
-
FetchEnd = 5,// fetch ended
|
|
11
|
-
FetchError = 6,// fetch error
|
|
12
|
-
RunConfirmationStart = 7,// confirmation for run is started
|
|
13
|
-
RunConfirmationEndAccept = 8,// confirmation accepted
|
|
14
|
-
RunConfirmationEndReject = 9,// confirmation rejected
|
|
15
|
-
RunStart = 10,// action was run by calling main function
|
|
16
|
-
RunEnd = 11,// action run function executed
|
|
17
|
-
RunError = 12,// action run function executed with error
|
|
18
|
-
NextActionStart = 13,// next action started
|
|
19
|
-
NextActionEnd = 14,// next action finished
|
|
20
|
-
ErrorActionStart = 15,// error action started
|
|
21
|
-
ErrorActionEnd = 16,// error action finished
|
|
22
|
-
FinishSuccessFinal = 17,// action executed successfully
|
|
23
|
-
FinishErrorFinal = 18,// action executed with error
|
|
24
|
-
FinishDismissedFinal = 19,// action was dismissed by user
|
|
25
|
-
FinishSuccessReactivateFinal = 20,// action executed successfully, another instance will directly start from previous
|
|
26
|
-
FinishComponentDestroyFinal = 21,// action was dismissed by destroying component that was executing it
|
|
27
|
-
FinishRouteUntriggerStart = 22,
|
|
28
|
-
FinishRouteUntriggerEndFinal = 23,
|
|
29
|
-
FinishRouteUntriggerTimeoutFinal = 24
|
|
30
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ActionParameters } from '@mediusinc/mng-commons/core';
|
|
4
|
-
import { ActionDescriptorInst } from '../../descriptors/action.descriptor';
|
|
5
|
-
import { IActionEditorComponent } from '../action-editor.model';
|
|
6
|
-
import { ActionExecutionError } from './action-execution-error.model';
|
|
7
|
-
import { ActionInstanceStateEnum } from './action-instance-state.model';
|
|
8
|
-
export interface IActionInstance<Item, Service> {
|
|
9
|
-
instanceId: string;
|
|
10
|
-
instanceLongName: string;
|
|
11
|
-
action: ActionDescriptorInst<Item, any, any, any, any>;
|
|
12
|
-
createdDate: Date;
|
|
13
|
-
triggerParameters?: ActionParameters<Item>;
|
|
14
|
-
activationParameters?: ActionParameters<Item>;
|
|
15
|
-
state: ActionInstanceStateEnum;
|
|
16
|
-
state$: Observable<ActionInstanceStateEnum>;
|
|
17
|
-
isRunLoading$: Observable<boolean>;
|
|
18
|
-
execution$: Observable<Item | null | undefined>;
|
|
19
|
-
executionIsRunning$: Observable<boolean>;
|
|
20
|
-
result?: Item | null;
|
|
21
|
-
result$: Observable<Item | null | undefined>;
|
|
22
|
-
error?: ActionExecutionError;
|
|
23
|
-
error$: Observable<ActionExecutionError>;
|
|
24
|
-
activationDialogRef?: DynamicDialogRef;
|
|
25
|
-
activationEditorComponentRef?: IActionEditorComponent;
|
|
26
|
-
reactivationPreviousInstance?: IActionInstance<Item, Service>;
|
|
27
|
-
previousInstance?: IActionInstance<any, any>;
|
|
28
|
-
nextActionInstance?: IActionInstance<any, any>;
|
|
29
|
-
errorActionInstance?: IActionInstance<Item, Service>;
|
|
30
|
-
reactivationInstance?: IActionInstance<Item, Service>;
|
|
31
|
-
reactivationInstance$: Observable<IActionInstance<Item, Service>>;
|
|
32
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { WritableSignal } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { IDataProvider } from '@mediusinc/mng-commons/core';
|
|
4
|
-
import { TableReloadEvent } from '@mediusinc/mng-commons/table/api';
|
|
5
|
-
import { EditorResetEvent } from '../../../editor/models/form-editor.event';
|
|
6
|
-
import { ActionDescriptorInst } from '../../descriptors/action.descriptor';
|
|
7
|
-
import { IActionInstance } from './action-instance.model';
|
|
8
|
-
export interface IViewContainer<Item, Service, ActionInstance extends IActionInstance<Item, Service> = IActionInstance<Item, Service>> {
|
|
9
|
-
dataProvider: WritableSignal<IDataProvider<Item, Service> | undefined>;
|
|
10
|
-
routeTriggeredActionInstance: WritableSignal<ActionInstance | undefined>;
|
|
11
|
-
actions: WritableSignal<Array<ActionDescriptorInst<any>>>;
|
|
12
|
-
tableReload$: Observable<TableReloadEvent>;
|
|
13
|
-
editorReset$: Observable<EditorResetEvent<Item>>;
|
|
14
|
-
editorClose$: Observable<ViewContainerEditorCloseEvent<Item>>;
|
|
15
|
-
reloadTable(event?: TableReloadEvent): void;
|
|
16
|
-
resetEditor(event?: EditorResetEvent<Item> | undefined): void;
|
|
17
|
-
closeEditor(event?: ViewContainerEditorCloseEvent<Item>): void;
|
|
18
|
-
}
|
|
19
|
-
export interface ViewContainerEditorCloseEvent<T> {
|
|
20
|
-
emitEvent?: boolean;
|
|
21
|
-
item?: T;
|
|
22
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Default categories for tableview actions
|
|
3
|
-
*/
|
|
4
|
-
export declare class TableviewActionDefaultCategories {
|
|
5
|
-
static readonly READ = "_defaultTwRead";
|
|
6
|
-
static readonly ADD = "_defaultTwAdd";
|
|
7
|
-
static readonly EDIT = "_defaultTwEdit";
|
|
8
|
-
static readonly DELETE = "_defaultTwDelete";
|
|
9
|
-
static readonly DETAILS = "_defaultTwDetails";
|
|
10
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DataListResult, IDataProvider, Nullable } from '@mediusinc/mng-commons/core';
|
|
4
|
-
import { RunFetchFromDataProviderReasonType } from '../helpers/data-provider-executors';
|
|
5
|
-
import { IActionContext } from '../models/execution/action-context.model';
|
|
6
|
-
export declare abstract class DataProviderExecutor {
|
|
7
|
-
runGetAllOrFail<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<DataListResult<Item>>;
|
|
8
|
-
abstract runGetAll<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<DataListResult<Item>> | null;
|
|
9
|
-
abstract runGetAll<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: Observable<DataListResult<Item>>): Observable<DataListResult<Item>>;
|
|
10
|
-
abstract runGetAll<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: undefined): Observable<DataListResult<Item>> | null;
|
|
11
|
-
abstract runGetAll<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback?: Observable<DataListResult<Item>>): Observable<DataListResult<Item>> | null;
|
|
12
|
-
runFetchOrFail<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fetchReason?: RunFetchFromDataProviderReasonType): Observable<Item>;
|
|
13
|
-
abstract runFetch<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fetchReason?: RunFetchFromDataProviderReasonType): Observable<Item> | null;
|
|
14
|
-
abstract runFetch<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fetchReason: RunFetchFromDataProviderReasonType | undefined, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
|
|
15
|
-
abstract runFetch<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fetchReason: RunFetchFromDataProviderReasonType | undefined, fallback: undefined): Observable<Nullable<Item>> | null;
|
|
16
|
-
abstract runFetch<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fetchReason: RunFetchFromDataProviderReasonType | undefined, fallback?: Observable<Nullable<Item>>): Observable<Nullable<Item>> | null;
|
|
17
|
-
runCreateOrFail<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Item>;
|
|
18
|
-
abstract runCreate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Item> | null;
|
|
19
|
-
abstract runCreate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
|
|
20
|
-
abstract runCreate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
|
|
21
|
-
abstract runCreate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback?: Observable<Nullable<Item>>): Observable<Nullable<Item>> | null;
|
|
22
|
-
runUpdateOrFail<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Item>;
|
|
23
|
-
abstract runUpdate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Item> | null;
|
|
24
|
-
abstract runUpdate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
|
|
25
|
-
abstract runUpdate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
|
|
26
|
-
abstract runUpdate<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback?: Observable<Nullable<Item>>): Observable<Nullable<Item>> | null;
|
|
27
|
-
runDeleteOrFail<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Item | null>;
|
|
28
|
-
abstract runDelete<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>): Observable<Nullable<Item>> | null;
|
|
29
|
-
abstract runDelete<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: Observable<Nullable<Item>>): Observable<Nullable<Item>>;
|
|
30
|
-
abstract runDelete<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback: undefined): Observable<Nullable<Item>> | null;
|
|
31
|
-
abstract runDelete<Item, ParametersItem, Service>(ctx: IActionContext<Item, ParametersItem, Service>, fallback?: Observable<Nullable<Item>>): Observable<Nullable<Item>> | null;
|
|
32
|
-
/**
|
|
33
|
-
* Gets service instance of data provider.
|
|
34
|
-
*
|
|
35
|
-
* @param injector Injector instance
|
|
36
|
-
* @param dataProvider Data provider instance.
|
|
37
|
-
*/
|
|
38
|
-
getDataProviderService<Item, Service>(injector: Injector, dataProvider?: IDataProvider<Item, Service>): Service | null;
|
|
39
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ClassAttributeDef, ClassType } from '@mediusinc/mng-commons/core';
|
|
2
|
-
import { ColumnDisplayTypeEnum, ColumnTypeEnum } from '@mediusinc/mng-commons/table/api';
|
|
3
|
-
import { FieldInputTypeEnum } from '@mediusinc/mng-commons/tableview/api';
|
|
4
|
-
import { EditorClassAttributeDef } from './class-editor-attribute.model';
|
|
5
|
-
/**
|
|
6
|
-
* converts string type to type enum, default is text
|
|
7
|
-
* @param attributeType
|
|
8
|
-
*/
|
|
9
|
-
export declare function getFieldInputTypeFromClassAttributeDefType(attributeType: string): FieldInputTypeEnum;
|
|
10
|
-
/**
|
|
11
|
-
* convert column type to equivalent field input type
|
|
12
|
-
* @param type column type
|
|
13
|
-
* @param displayType column display type
|
|
14
|
-
*/
|
|
15
|
-
export declare function getFieldInputTypeFromColumnType(type: ColumnTypeEnum, displayType?: ColumnDisplayTypeEnum): FieldInputTypeEnum;
|
|
16
|
-
export declare function expandClassAttributeDefWithEditorDef(attributes?: Array<ClassAttributeDef> | null): EditorClassAttributeDef[];
|
|
17
|
-
/**
|
|
18
|
-
* returns attributes from class type and extends to typed def with column and field enum type
|
|
19
|
-
* @param type class type
|
|
20
|
-
*/
|
|
21
|
-
export declare function getEditorClassAttributeDef<T>(type: ClassType<T>): EditorClassAttributeDef[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ClassAttributeDef, ClassType, EnumType } from '@mediusinc/mng-commons/core';
|
|
2
|
-
import { FieldInputTypeEnum } from '@mediusinc/mng-commons/tableview/api';
|
|
3
|
-
export interface EditorClassAttributeDef extends ClassAttributeDef {
|
|
4
|
-
classType?: ClassType<any>;
|
|
5
|
-
fieldType?: FieldInputTypeEnum;
|
|
6
|
-
enumType?: EnumType;
|
|
7
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ClassType, ServiceClassType } from '@mediusinc/mng-commons/core';
|
|
2
|
-
import { EditorDataProviderInst } from '@mediusinc/mng-commons/tableview/api';
|
|
3
|
-
export declare function editorDataProviderFromClass<Model>(type: ClassType<Model>): EditorDataProviderInst<Model, undefined, undefined>;
|
|
4
|
-
export declare function editorDataProviderFromClass<Model, Service = any>(type: ClassType<Model>, serviceType: ServiceClassType<Service>): EditorDataProviderInst<Model, Service, ServiceClassType<Service>>;
|