@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/version-info.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-rc.0",
|
|
4
4
|
"tag": "v6.2.0-rc.0",
|
|
5
|
-
"distance":
|
|
6
|
-
"hash": "
|
|
5
|
+
"distance": 6,
|
|
6
|
+
"hash": "ce245f4b",
|
|
7
7
|
"dirty": true,
|
|
8
|
-
"semver": "6.2.0-rc.0+
|
|
8
|
+
"semver": "6.2.0-rc.0+6.gce245f4b.dirty",
|
|
9
9
|
"buildTimestamp": null,
|
|
10
|
-
"raw": "v6.2.0-rc.0-
|
|
10
|
+
"raw": "v6.2.0-rc.0-6-ce245f4b-dirty"
|
|
11
11
|
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ActivatedRoute } from '@angular/router';
|
|
2
|
-
import { DataListParams } from '../data-list/data-list.model';
|
|
3
|
-
import { IdType } from '../helpers/type-helpers';
|
|
4
|
-
import { ActionData } from './action-data.model';
|
|
5
|
-
export interface ActionParameters<Item, TableItem = Item, FormItem = Item, SubmitResultItem = Item> {
|
|
6
|
-
/**
|
|
7
|
-
* Identificator of an item.
|
|
8
|
-
*/
|
|
9
|
-
itemId?: IdType;
|
|
10
|
-
/**
|
|
11
|
-
* Item value.
|
|
12
|
-
*/
|
|
13
|
-
item?: Item;
|
|
14
|
-
/**
|
|
15
|
-
* Additional action data.
|
|
16
|
-
*/
|
|
17
|
-
actionData?: ActionData;
|
|
18
|
-
/**
|
|
19
|
-
* Data list params when action is activated from table.
|
|
20
|
-
*/
|
|
21
|
-
dataListParams?: DataListParams<any, any>;
|
|
22
|
-
/**
|
|
23
|
-
* Represents the component where which activates the action.
|
|
24
|
-
*/
|
|
25
|
-
sourceComponent?: any;
|
|
26
|
-
/**
|
|
27
|
-
* Represents the component where the action is hosted or placed (activation button).
|
|
28
|
-
*/
|
|
29
|
-
hostComponent?: unknown;
|
|
30
|
-
route?: ActivatedRoute;
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated Selected items should accessed using `getActionParentTable`.
|
|
33
|
-
*/
|
|
34
|
-
selectedItems?: TableItem[];
|
|
35
|
-
locale?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Used on fetch fn to provide the form item of previous submit.
|
|
38
|
-
*/
|
|
39
|
-
formItem?: FormItem | null;
|
|
40
|
-
/**
|
|
41
|
-
* Used on fetch fn to provide the result of previous submit (return of submit fn).
|
|
42
|
-
*/
|
|
43
|
-
submitResult?: SubmitResultItem | null;
|
|
44
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ToastMessageOptions } from 'primeng/api';
|
|
2
|
-
import { Nullable } from '../../helpers/type-helpers';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NotificationWrapperComponent {
|
|
5
|
-
readonly notificationCutoff = 70;
|
|
6
|
-
isDialogNotificationVisible: import("@angular/core").Signal<boolean>;
|
|
7
|
-
dialogNotification: import("@angular/core").WritableSignal<ToastMessageOptions | null>;
|
|
8
|
-
dialogNotificationIconClass: import("@angular/core").Signal<string>;
|
|
9
|
-
getMessageIcon(message: Nullable<ToastMessageOptions>): string;
|
|
10
|
-
onShowNotificationInDialog(message: ToastMessageOptions): void;
|
|
11
|
-
onDialogNotificationVisibilityChange(visible: boolean): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationWrapperComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationWrapperComponent, "mng-notification-wrapper", never, {}, {}, never, ["*"], true, never>;
|
|
14
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { Params } from '@angular/router';
|
|
2
|
-
import { TableLazyLoadEvent } from 'primeng/table';
|
|
3
|
-
import { DataListFilter, DataListParams } from './data-list.model';
|
|
4
|
-
/**
|
|
5
|
-
* Converts a TableLazyLoadEvent to DataListParams.
|
|
6
|
-
*
|
|
7
|
-
* @param {TableLazyLoadEvent} event - The event containing the data to convert.
|
|
8
|
-
* @return {DataListParams} - The converted DataListParams object.
|
|
9
|
-
*/
|
|
10
|
-
export declare function fromTableLoadToDataListParams(event: TableLazyLoadEvent): DataListParams;
|
|
11
|
-
/**
|
|
12
|
-
* Converts the given parameters to URL query parameters.
|
|
13
|
-
* Sorts are formatted in Medius data API sort query language: `asc:prop1,desc:prop2`, ...
|
|
14
|
-
* Filter keys are "flattened" in the new object, values are formatted in Medius data API filter query language: `cs:eq:asd`, `in:asd,qwe`, `ex`, ...
|
|
15
|
-
*
|
|
16
|
-
* @param {DataListParams} params - The parameters to convert.
|
|
17
|
-
* @param {DataListParams|null} defaults - The default parameters used if no matching property in params is available. Defaults to { limit: 25, offset: 0 } if not provided.
|
|
18
|
-
* @param opts - Options in converting to url query:
|
|
19
|
-
* - prependFilterName Prepends filter key with provided string
|
|
20
|
-
* @returns {Params} - The URL query parameters object.
|
|
21
|
-
*/
|
|
22
|
-
export declare function dataListParamsToUrlQuery(params: DataListParams<any, any>, defaults?: DataListParams<any, any> | null, opts?: {
|
|
23
|
-
prependFilterName?: string;
|
|
24
|
-
skipPresetDefaultsLimit?: boolean;
|
|
25
|
-
}): Params;
|
|
26
|
-
/**
|
|
27
|
-
* Merges the provided parameters with default values and returns the merged object.
|
|
28
|
-
*
|
|
29
|
-
* @param {DataListParams} params - The parameters to merge with defaults.
|
|
30
|
-
* @param {DataListParams} defaults - The default values to merge with params (optional, default is { limit: 25, offset: 0 }).
|
|
31
|
-
* @returns {DataListParams} - The merged parameters object.
|
|
32
|
-
*/
|
|
33
|
-
export declare function mergeDataListParamsWithDefaults<Sorts = any, Filters extends keyof any = any>(params: DataListParams<Sorts, Filters>, defaults?: DataListParams<Sorts, Filters>): DataListParams<Sorts, Filters>;
|
|
34
|
-
/**
|
|
35
|
-
* Converts an object of parameters to a URL query string for sorting.
|
|
36
|
-
* Sorts are formatted in Medius data API sort query language: `asc:prop1,desc:prop2`, ...
|
|
37
|
-
*
|
|
38
|
-
* @param {DataListParams} params - An optional object containing sort parameters.
|
|
39
|
-
* @returns A string representing the URL query or undefined if no sort parameters are provided.
|
|
40
|
-
*/
|
|
41
|
-
export declare function dataListParamsSortToUrlQuery(params?: DataListParams<any, any>): string | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Converts a specific filter parameter (by key) from DataListParams object to a URL query string.
|
|
44
|
-
* Filter keys are "flattened" in the new object, values are formatted in Medius data API filter query language: `cs:eq:asd`, `in:asd,qwe`, `ex`, ...
|
|
45
|
-
*
|
|
46
|
-
* @param {DataListParams<any, Filters> | undefined} params - The DataListParams object containing the filters.
|
|
47
|
-
* @param {Filters} key - The key of the filter to convert.
|
|
48
|
-
* @param {boolean} [allowNull=false] - Indicates whether to allow null values in the query string.
|
|
49
|
-
* @return {string | undefined} - The URL query string representing the specified filter, or undefined if the filter is not found.
|
|
50
|
-
*/
|
|
51
|
-
export declare function dataListParamsFiltersToUrlQuery<Filters extends keyof any = string>(params: DataListParams<any, Filters> | undefined, key: Filters, allowNull?: boolean): string | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Converts a filter to a URL query string.
|
|
54
|
-
* Filter keys are "flattened" in the new object, values are formatted in Medius data API filter query language: `cs:eq:asd`, `in:asd,qwe`, `ex`, ...
|
|
55
|
-
*
|
|
56
|
-
* @param {DataListFilter} paramFilter - The filter object to be converted.
|
|
57
|
-
* @param {boolean} [allowNull=false] - Indicates whether to allow null values in the filter.
|
|
58
|
-
* @returns {string|undefined} - The filter converted to a URL query string, or undefined if no filter is provided or the filter has empty or invalid values.
|
|
59
|
-
* @throws {CommonsInternalError} - If the filter has invalid values.
|
|
60
|
-
*/
|
|
61
|
-
export declare function dataListParamsFilterToUrlQuery(paramFilter?: DataListFilter, allowNull?: boolean): string | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* Converts URL query parameters to a DataListParams object.
|
|
64
|
-
* Sorts are formatted from Medius data API sort query language: `asc:prop1,desc:prop2`, ...
|
|
65
|
-
* Filter keys are all keys in Params object that are not matched elsewhere, values are formatted from Medius data API filter query language: `cs:eq:asd`, `in:asd,qwe`, `ex`, ...
|
|
66
|
-
*
|
|
67
|
-
* @param {Params} urlParams - The URL query parameters.
|
|
68
|
-
* @param opts Additional options for conversion:
|
|
69
|
-
* - searchAsGlobal - The URL query parameters.
|
|
70
|
-
* - prependFilterName - Filter names are prepended with provided string.
|
|
71
|
-
* @return {DataListParams} - The converted DataListParams object.
|
|
72
|
-
*/
|
|
73
|
-
export declare function fromUrlQueryToDataListParams(urlParams: Params, opts?: {
|
|
74
|
-
searchAsGlobal?: boolean;
|
|
75
|
-
prependFilterName?: string;
|
|
76
|
-
}): DataListParams;
|
|
77
|
-
/**
|
|
78
|
-
* Makes a copy of the given DataListParams object.
|
|
79
|
-
*
|
|
80
|
-
* @param {DataListParams<Sorts, Filters>} params - The DataListParams object to be copied.
|
|
81
|
-
* @returns {DataListParams<Sorts, Filters>} - Returns a new copy of the DataListParams object.
|
|
82
|
-
*/
|
|
83
|
-
export declare function copyDataListParams<Sorts = string, Filters extends keyof any = string>(params: DataListParams<Sorts, Filters>): DataListParams<Sorts, Filters>;
|
|
84
|
-
/**
|
|
85
|
-
* Converts a value to a URL query param string representation.
|
|
86
|
-
*
|
|
87
|
-
* @param {unknown} value - The value to be converted.
|
|
88
|
-
* @param {boolean} [allowNull=false] - Indicates whether null values are allowed.
|
|
89
|
-
* @returns {string} The URL parameter representation of the value.
|
|
90
|
-
* @throws {CommonsInternalError} If an undefined value is passed without allowNull set to true.
|
|
91
|
-
* @throws {CommonsInternalError} If the value is an object (excluding Date).
|
|
92
|
-
*/
|
|
93
|
-
export declare function dataListParamsFilterValueToUrlString(value: unknown, allowNull?: boolean): string;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { FilterMatchModeExtendedType } from './filter-match.model';
|
|
2
|
-
export interface DataListParams<Sorts = string, Filters extends keyof any = string> {
|
|
3
|
-
offset?: number;
|
|
4
|
-
limit?: number;
|
|
5
|
-
sort?: DataListSort<Sorts>[];
|
|
6
|
-
search?: string;
|
|
7
|
-
searchCaseSensitive?: boolean;
|
|
8
|
-
filters?: Partial<DataListFiltersType<Filters>>;
|
|
9
|
-
}
|
|
10
|
-
export interface DataListSort<Property = string> {
|
|
11
|
-
property: Property;
|
|
12
|
-
ascending?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export type DataListFilterBaseValueType = string | number | boolean | Date | undefined | null;
|
|
15
|
-
export type DataListFilterValueType = DataListFilterBaseValueType | DataListFilterBaseValueType[] | undefined | null;
|
|
16
|
-
export type DataListFilterFromUrlValueType = string | string[] | undefined | null;
|
|
17
|
-
export type DataListFiltersType<Filters extends keyof any = string> = {
|
|
18
|
-
[Prop in Filters]: DataListFilter;
|
|
19
|
-
};
|
|
20
|
-
export interface DataListFilter<Value = DataListFilterValueType> {
|
|
21
|
-
value?: Value;
|
|
22
|
-
matchMode?: FilterMatchModeExtendedType;
|
|
23
|
-
caseSensitive?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface DataListResult<Item = any> {
|
|
26
|
-
data: Item[];
|
|
27
|
-
totalCount?: number;
|
|
28
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export type FilterMatchModeType = 'equals' | 'notEquals' | 'contains' | 'notContains' | 'in' | 'notIn' | 'startsWith' | 'endsWith' | 'lessThan' | 'lessThanOrEqualTo' | 'greaterThan' | 'greaterThanOrEqualTo' | 'between' | 'exists' | 'doesNotExist';
|
|
2
|
-
export type FilterMatchModeExtendedType = FilterMatchModeType | string;
|
|
3
|
-
export declare class FilterMatchMode {
|
|
4
|
-
static Equals: FilterMatchModeType;
|
|
5
|
-
static EqualsAbbr: string;
|
|
6
|
-
static NotEquals: FilterMatchModeType;
|
|
7
|
-
static NotEqualsAbbr: string;
|
|
8
|
-
static Contains: FilterMatchModeType;
|
|
9
|
-
static ContainsAbbr: string;
|
|
10
|
-
static NotContains: FilterMatchModeType;
|
|
11
|
-
static NotContainsAbbr: string;
|
|
12
|
-
static In: FilterMatchModeType;
|
|
13
|
-
static InAbbr: string;
|
|
14
|
-
static NotIn: FilterMatchModeType;
|
|
15
|
-
static NotInAbbr: string;
|
|
16
|
-
static StartsWith: FilterMatchModeType;
|
|
17
|
-
static StartsWithAbbr: string;
|
|
18
|
-
static EndsWith: FilterMatchModeType;
|
|
19
|
-
static EndsWithAbbr: string;
|
|
20
|
-
static LessThan: FilterMatchModeType;
|
|
21
|
-
static LessThanAbbr: string;
|
|
22
|
-
static LessThanOrEqualTo: FilterMatchModeType;
|
|
23
|
-
static LessThanOrEqualToAbbr: string;
|
|
24
|
-
static GreaterThan: FilterMatchModeType;
|
|
25
|
-
static GreaterThanAbbr: string;
|
|
26
|
-
static GreaterThanOrEqualTo: FilterMatchModeType;
|
|
27
|
-
static GreaterThanOrEqualToAbbr: string;
|
|
28
|
-
static Between: FilterMatchModeType;
|
|
29
|
-
static BetweenAbbr: string;
|
|
30
|
-
static Exists: FilterMatchModeType;
|
|
31
|
-
static ExistsAbbr: string;
|
|
32
|
-
static DoesNotExist: FilterMatchModeType;
|
|
33
|
-
static DoesNotExistAbbr: string;
|
|
34
|
-
static getAbbreviation(mode: string): string | null;
|
|
35
|
-
static fromAbbreviation(abbr: string): string | null;
|
|
36
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FilterMetadata } from 'primeng/api';
|
|
2
|
-
import { FilterMatchModeExtendedType } from '../data-list/filter-match.model';
|
|
3
|
-
export interface CommonsFilterMetadata extends Omit<FilterMetadata, 'matchMode'> {
|
|
4
|
-
/**
|
|
5
|
-
* The value used for display.
|
|
6
|
-
*/
|
|
7
|
-
displayValue?: any;
|
|
8
|
-
/**
|
|
9
|
-
* The match mode for display.
|
|
10
|
-
*/
|
|
11
|
-
displayMatchMode?: FilterMatchModeExtendedType;
|
|
12
|
-
/**
|
|
13
|
-
* Overridden PrimeNg FilterMetadata to have more specific type.
|
|
14
|
-
*/
|
|
15
|
-
matchMode?: FilterMatchModeExtendedType;
|
|
16
|
-
/**
|
|
17
|
-
* Case sensitive filter flag.
|
|
18
|
-
*/
|
|
19
|
-
caseSensitive?: boolean;
|
|
20
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ServiceClassOptType } from '../models/class-service.model';
|
|
2
|
-
export type IDataProvider<ModelType = any, ServiceType = any, ST = ServiceClassOptType<ServiceType>> = {
|
|
3
|
-
serviceType: ST;
|
|
4
|
-
isDataProvider: boolean;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* A base data provider class used for handling data operations.
|
|
8
|
-
*
|
|
9
|
-
* @tparam Model - The type of data this data provider will handle.
|
|
10
|
-
* @tparam Service - The type of service used by this data provider (optional).
|
|
11
|
-
* @tparam ServiceClass - The service type for the data provider (optional).
|
|
12
|
-
*/
|
|
13
|
-
export declare class DataProviderInst<Model, Service = any, ServiceClass = ServiceClassOptType<Service>> implements IDataProvider<Model, Service, ServiceClass> {
|
|
14
|
-
readonly serviceType: ServiceClass;
|
|
15
|
-
constructor(serviceType: ServiceClass);
|
|
16
|
-
get isDataProvider(): boolean;
|
|
17
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DataListParams } from '../data-list/data-list.model';
|
|
2
|
-
import { ItemOrObservable } from '../helpers/type-helpers';
|
|
3
|
-
import { ServiceClassOptType } from '../models/class-service.model';
|
|
4
|
-
import { IDataProvider } from './base.data-provider';
|
|
5
|
-
export type LookupDataProviderLookupFnType<Model = any, Service = undefined, Sorts = keyof Model, Filters extends keyof any = keyof Model, ReturnType = ItemOrObservable<Array<Model>>> = (params: DataListParams<Sorts, Filters> | undefined, service: Service, search?: string) => ReturnType;
|
|
6
|
-
export interface ILookupDataProviderLookup<Model, Service, Sorts = keyof Model, Filters extends keyof any = keyof Model> {
|
|
7
|
-
lookup: LookupDataProviderLookupFnType<Model, Service, Sorts, Filters>;
|
|
8
|
-
withLookup(fn?: LookupDataProviderLookupFnType<Model, Service, Sorts, Filters>): this;
|
|
9
|
-
}
|
|
10
|
-
export type ILookupDataProvider<Model = any, Service = any, Sorts = keyof Model, Filters extends keyof any = keyof Model, ServiceClass = ServiceClassOptType<Service>> = IDataProvider<Model, Service, ServiceClass> & ILookupDataProviderLookup<Model, Service, Sorts, Filters>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IDataProvider } from '../data-providers/base.data-provider';
|
|
2
|
-
import { ClassType } from '../models/class-service.model';
|
|
3
|
-
import { IModelDescriptor } from './model.descriptor';
|
|
4
|
-
export interface IActionDescriptor<Model, Service = any> {
|
|
5
|
-
model?: IModelDescriptor<Model>;
|
|
6
|
-
actionName: string;
|
|
7
|
-
actionNameLong: string;
|
|
8
|
-
parentType?: ClassType<unknown>;
|
|
9
|
-
parentTypeName?: string;
|
|
10
|
-
parentProperty?: string;
|
|
11
|
-
dataProvider?: IDataProvider<Model, Service>;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ArrayItemType } from '../helpers/type-helpers';
|
|
2
|
-
import { IModelDescriptor } from './model.descriptor';
|
|
3
|
-
export interface IEditorDescriptor<EditorModel, ParentEditorModel = undefined> {
|
|
4
|
-
model: IModelDescriptor<EditorModel>;
|
|
5
|
-
isLocalized: boolean;
|
|
6
|
-
localizationLocaleProperty?: string;
|
|
7
|
-
localizationModel?: IModelDescriptor<any>;
|
|
8
|
-
localizationLocalizationProperty?: string;
|
|
9
|
-
localized<K extends keyof EditorModel, LocalizationModel = ArrayItemType<EditorModel[K]>>(property: K, model: IModelDescriptor<LocalizationModel>, localeProperty: keyof LocalizationModel): this;
|
|
10
|
-
localizedUnsafe<LocalizationModel>(property: string, model: IModelDescriptor<LocalizationModel>, localeProperty: string): this;
|
|
11
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ILookupDataProvider, LookupDataProviderLookupFnType } from '../data-providers/lookup.data-provider';
|
|
2
|
-
export interface ILookupDescriptor<Model, Service = any, Sorts = keyof Model, Filters extends keyof any = keyof Model> {
|
|
3
|
-
optionsLabelProperty?: string;
|
|
4
|
-
optionsValueProperty?: string;
|
|
5
|
-
optionsTrackProperty?: string;
|
|
6
|
-
dataProvider: ILookupDataProvider<Model, Service, Sorts, Filters>;
|
|
7
|
-
withOptionsLabelProperty(property: keyof Model): this;
|
|
8
|
-
withOptionsLabelPropertyUnsafe(property: string): this;
|
|
9
|
-
withOptionsTrackProperty(property: keyof Model): this;
|
|
10
|
-
withOptionsTrackPropertyUnsafe(property: string): this;
|
|
11
|
-
withLookup(lookup: LookupDataProviderLookupFnType<Model, Service, Sorts, Filters>): this;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IColumnDescriptor } from './column.descriptor';
|
|
2
|
-
import { IFilterDescriptor } from './filter.descriptor';
|
|
3
|
-
import { IModelDescriptor } from './model.descriptor';
|
|
4
|
-
export interface ITableDescriptor<TableModel, Sorts, Filters> {
|
|
5
|
-
model: IModelDescriptor<TableModel>;
|
|
6
|
-
withDefaultSortUnsafe(property: string, ascending?: boolean, enabled?: boolean): this;
|
|
7
|
-
withSortUnsafe(property: string, isDefault: boolean, ascending?: boolean): this;
|
|
8
|
-
withDefaultSorts(...properties: Sorts[]): this;
|
|
9
|
-
withoutDefaultSorts(): this;
|
|
10
|
-
addFilterFromColumnDescriptorUnsafe<FilterModel>(column: IColumnDescriptor<FilterModel, TableModel, any>, forceSimple: boolean): IFilterDescriptor<any, TableModel>;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IEditorDescriptor } from './editor.descriptor';
|
|
2
|
-
import { IModelDescriptor } from './model.descriptor';
|
|
3
|
-
import { ITableDescriptor } from './table.descriptor';
|
|
4
|
-
export interface ITableviewDescriptor<TableviewModel, SortProperty, FilterProperty, ParentEditorModel = undefined, TableModel = TableviewModel, AddModel = TableviewModel, EditModel = TableviewModel> {
|
|
5
|
-
model: IModelDescriptor<TableviewModel>;
|
|
6
|
-
table: ITableDescriptor<TableModel, SortProperty, FilterProperty>;
|
|
7
|
-
detailsEditor: IEditorDescriptor<TableviewModel, ParentEditorModel>;
|
|
8
|
-
addEditor: IEditorDescriptor<AddModel, ParentEditorModel>;
|
|
9
|
-
editEditor: IEditorDescriptor<EditModel, ParentEditorModel>;
|
|
10
|
-
copy(): ITableviewDescriptor<TableviewModel, SortProperty, FilterProperty, ParentEditorModel, TableModel, AddModel, EditModel>;
|
|
11
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ComponentRef, InjectionToken, Injector, Type } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ComponentDirective<C> {
|
|
4
|
-
private readonly injector;
|
|
5
|
-
private readonly elementRef;
|
|
6
|
-
private readonly applicationRef;
|
|
7
|
-
private readonly viewContainerRef;
|
|
8
|
-
readonly component: import("@angular/core").InputSignal<Type<C> | undefined>;
|
|
9
|
-
readonly componentIt: import("@angular/core").InputSignal<InjectionToken<Type<C>> | undefined>;
|
|
10
|
-
readonly inputs: import("@angular/core").InputSignal<Record<string, any> | undefined>;
|
|
11
|
-
readonly attachToHost: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
|
-
readonly parentInjector: import("@angular/core").InputSignal<Injector | undefined>;
|
|
13
|
-
readonly instanceCreated: import("@angular/core").OutputEmitterRef<C>;
|
|
14
|
-
componentRef?: ComponentRef<C>;
|
|
15
|
-
constructor();
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentDirective<any>, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentDirective<any>, "[mngComponent]", never, { "component": { "alias": "mngComponent"; "required": false; "isSignal": true; }; "componentIt": { "alias": "injectionToken"; "required": false; "isSignal": true; }; "inputs": { "alias": "inputs"; "required": false; "isSignal": true; }; "attachToHost": { "alias": "attachToHost"; "required": false; "isSignal": true; }; "parentInjector": { "alias": "parentInjector"; "required": false; "isSignal": true; }; }, { "instanceCreated": "instanceCreated"; }, never, never, true, never>;
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class RerenderDirective {
|
|
3
|
-
private readonly templateRef;
|
|
4
|
-
private readonly viewContainerRef;
|
|
5
|
-
readonly mngRerender: import("@angular/core").InputSignal<unknown>;
|
|
6
|
-
constructor();
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RerenderDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RerenderDirective, "[mngRerender]", never, { "mngRerender": { "alias": "mngRerender"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TemplateDirective {
|
|
4
|
-
readonly template: TemplateRef<any>;
|
|
5
|
-
readonly name: import("@angular/core").InputSignal<string>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateDirective, "[mngTemplate]", never, { "name": { "alias": "mngTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { EnumConstantType, EnumType } from '../helpers/type-helpers';
|
|
2
|
-
import { EnumValue } from './enum.model';
|
|
3
|
-
/**
|
|
4
|
-
* Returns array of names for constants in enum.
|
|
5
|
-
* @param enumType Enum object.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getEnumConstantNames(enumType: EnumType): Array<string>;
|
|
8
|
-
/**
|
|
9
|
-
* Returns array of names for constants in enum.
|
|
10
|
-
* @param enumObj Enum object.
|
|
11
|
-
*/
|
|
12
|
-
export declare function getEnumConstantNamesFromObject(enumObj: object): Array<string>;
|
|
13
|
-
/**
|
|
14
|
-
* Returns array of values for constants in enum.
|
|
15
|
-
* @param enumType Enum object.
|
|
16
|
-
*/
|
|
17
|
-
export declare function getEnumConstantValues(enumType: EnumType): Array<EnumConstantType>;
|
|
18
|
-
/**
|
|
19
|
-
* Returns array of string values for constants in enum.
|
|
20
|
-
* @param enumType Enum object.
|
|
21
|
-
*/
|
|
22
|
-
export declare function getEnumConstantValuesAsString(enumType: EnumType): Array<string>;
|
|
23
|
-
/**
|
|
24
|
-
* Returns array of number values for constants in enum.
|
|
25
|
-
* @param enumType Enum object.
|
|
26
|
-
*/
|
|
27
|
-
export declare function getEnumConstantValuesAsNumber(enumType: EnumType): Array<number>;
|
|
28
|
-
/**
|
|
29
|
-
* Returns array of type EnumValue for all constants in enum.
|
|
30
|
-
* @param enumType Enum object.
|
|
31
|
-
* @param nameAsValue If use name of constant as value (optional, default: false).
|
|
32
|
-
* @param titlePath Base path for title to use as translation (optional).
|
|
33
|
-
*/
|
|
34
|
-
export declare function fromEnumConstantsAsValueArray(enumType: EnumType, nameAsValue?: boolean, titlePath?: string): EnumValue[];
|
|
35
|
-
/**
|
|
36
|
-
* Returns array of type EnumValue for provided values in enum.
|
|
37
|
-
* @param enumType Enum object.
|
|
38
|
-
* @param values Enum values (constants).
|
|
39
|
-
* @param nameAsValue If use name of constant as value (optional, default: false).
|
|
40
|
-
* @param titlePath Base path for title to use as translation (optional).
|
|
41
|
-
*/
|
|
42
|
-
export declare function fromEnumValuesAsValueArray<EnumConstant = EnumConstantType>(enumType: EnumType, values: Array<EnumConstant>, nameAsValue?: boolean, titlePath?: string): EnumValue[];
|
|
43
|
-
/**
|
|
44
|
-
* Gets constant name for value.
|
|
45
|
-
* @param enumType Enum object.
|
|
46
|
-
* @param value Value of enum constant.
|
|
47
|
-
*/
|
|
48
|
-
export declare function getEnumConstantName<EnumConstant = EnumConstantType>(enumType: EnumType, value: EnumConstant): string | null;
|
|
49
|
-
/**
|
|
50
|
-
* Gets constant name for value.
|
|
51
|
-
* @param enumObj Enum object.
|
|
52
|
-
* @param value Value of enum constant.
|
|
53
|
-
*/
|
|
54
|
-
export declare function getEnumConstantNameFromObject<EnumConstant = EnumConstantType>(enumObj: object, value: EnumConstant): string | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { EnumConstantType, EnumType } from '../helpers/type-helpers';
|
|
2
|
-
export interface EnumValue {
|
|
3
|
-
name?: string;
|
|
4
|
-
value: EnumConstantType;
|
|
5
|
-
title: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export type EnumFromProperty<Type, Property extends keyof Type> = Type[Property] extends EnumType | undefined | null ? NonNullable<Type[Property]> : never;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import { LogLevelEnum } from '../log/log.model';
|
|
3
|
-
import { ACommonsErrorBase, CommonsErrorBaseOptions, ICommonsActionError } from './error.model';
|
|
4
|
-
/**
|
|
5
|
-
* Converts RxJS subscription error to CommonsError.
|
|
6
|
-
* @param error Error.
|
|
7
|
-
* @param name Optional name to write in commons error.
|
|
8
|
-
* @param details Optional details of error.
|
|
9
|
-
*/
|
|
10
|
-
export declare function fromSubscribeError(error: any, name?: string, details?: any): ACommonsErrorBase;
|
|
11
|
-
/**
|
|
12
|
-
* Checks if error is Http error (Angular or Commons).
|
|
13
|
-
* @param error
|
|
14
|
-
*/
|
|
15
|
-
export declare function isHttpErrorResponse(error: any): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Gets HttpErrorResponse from error (Angular or Commons).
|
|
18
|
-
* @param error Error.
|
|
19
|
-
*/
|
|
20
|
-
export declare function getHttpErrorResponse(error: any): HttpErrorResponse | null;
|
|
21
|
-
/**
|
|
22
|
-
* Gets HttpErrorResponse status from error (Angular or Commons).
|
|
23
|
-
* @param error Error.
|
|
24
|
-
*/
|
|
25
|
-
export declare function getHttpErrorResponseStatus(error: any): number | null;
|
|
26
|
-
/**
|
|
27
|
-
* Gets HttpErrorResponse status text from error (Angular or Commons).
|
|
28
|
-
* @param error Error.
|
|
29
|
-
*/
|
|
30
|
-
export declare function getHttpErrorResponseStatusText(error: any): string | null;
|
|
31
|
-
/**
|
|
32
|
-
* Get error log level. All is error, except if error is http error with status >=400 and <500.
|
|
33
|
-
* @param error Error.
|
|
34
|
-
*/
|
|
35
|
-
export declare function getErrorLogLevel(error: any): LogLevelEnum;
|
|
36
|
-
/**
|
|
37
|
-
* Get error name (prototype name or type from commons error if name is not provided).
|
|
38
|
-
* @param error Error.
|
|
39
|
-
*/
|
|
40
|
-
export declare function getErrorName(error: any): string;
|
|
41
|
-
/**
|
|
42
|
-
* Writes http error to string with all headers and body.
|
|
43
|
-
* @param error Http response error.
|
|
44
|
-
* @param opts Options for hiding parts of error:
|
|
45
|
-
* - hideMessage Hides message of error (message include url, status and status text!).
|
|
46
|
-
* - hideHeaders Hides headers.
|
|
47
|
-
* - hideBody Hides JSON representation of body.
|
|
48
|
-
*/
|
|
49
|
-
export declare function httpErrorResponseToString(error: HttpErrorResponse, opts?: HttpErrorResponseToStringOptionsType): string;
|
|
50
|
-
/**
|
|
51
|
-
* Error to string.
|
|
52
|
-
* @param error Error.
|
|
53
|
-
* @param opts Options for hiding parts of error:
|
|
54
|
-
* - hideMessage Hides message of error.
|
|
55
|
-
* - hideName Hides error name.
|
|
56
|
-
* - hideCause Hides cause of an error (if present, see @link(errorCauseToString) for other options).
|
|
57
|
-
* - hideStack Hides stack of an error (if present).
|
|
58
|
-
* - hideDetails Hides JSON detail's representation of error (if present).
|
|
59
|
-
* - hideLocation Hides location (URL) where error was thrown.
|
|
60
|
-
* - hideHttp Hides http error portion of error if http error response (see @link(httpErrorResponseToString) for other options).
|
|
61
|
-
*/
|
|
62
|
-
export declare function errorToString(error: Error, opts?: ErrorToStringOptionsType): string;
|
|
63
|
-
/**
|
|
64
|
-
* Commons error to string.
|
|
65
|
-
* @param error Commons error.
|
|
66
|
-
* @param opts Options for hiding parts of error:
|
|
67
|
-
* - hideMessage Hides message of error.
|
|
68
|
-
* - hideName Hides error name.
|
|
69
|
-
* - hideCause Hides cause of an error (if present, see @link(errorCauseToString) for other options).
|
|
70
|
-
* - hideStack Hides stack of an error (if present).
|
|
71
|
-
* - hideDetails Hides JSON detail's representation of error (if present).
|
|
72
|
-
* - hideLocation Hides location (URL) where error was thrown.
|
|
73
|
-
* - hideHttp Hides http error portion of error if http error response (see @link(httpErrorResponseToString) for other options).
|
|
74
|
-
* - hideItems Hides all item information (http body, action context data).
|
|
75
|
-
* - hideActionData See @link(commonsActionErrorContextToString) for additional info.
|
|
76
|
-
* - hideQueryParams See @link(commonsActionErrorContextToString) for additional info.
|
|
77
|
-
*/
|
|
78
|
-
export declare function commonsErrorToString(error: ACommonsErrorBase, opts?: ErrorToStringOptionsType): string;
|
|
79
|
-
/**
|
|
80
|
-
* Writes commons action error info from context as string.
|
|
81
|
-
* @param error Commons action error.
|
|
82
|
-
* @param opts Options for hiding parts of error:
|
|
83
|
-
* - hideItems Hides all item related information (item, form item, submit item, ...).
|
|
84
|
-
* - hideActionData Hides action data.
|
|
85
|
-
* - hideQueryParams Hides query params.
|
|
86
|
-
*/
|
|
87
|
-
export declare function commonsActionErrorContextToString(error: ICommonsActionError, opts?: ActionErrorContextToStringOptionsType): string;
|
|
88
|
-
/**
|
|
89
|
-
* Writes cause of an error as string.
|
|
90
|
-
* @param error Error.
|
|
91
|
-
* @param opts Options for hiding parts of error:
|
|
92
|
-
* - causeOnErrorOnly Prints only if cause is instance of error.
|
|
93
|
-
* - causeAsJson Print error cause as a JSON (by default, if error only message and name will be printed).
|
|
94
|
-
*/
|
|
95
|
-
export declare function errorCauseToString(error: Error, opts?: ErrorCauseToStringOptionsType): string;
|
|
96
|
-
/**
|
|
97
|
-
* Throws an error with the provided error message.
|
|
98
|
-
* The intended usage is for in-line throwing of an error with TS type narrowing.
|
|
99
|
-
* <br>
|
|
100
|
-
* <i>Example</i>:
|
|
101
|
-
* <pre>
|
|
102
|
-
* const value: string | null = getValue("");
|
|
103
|
-
* const nonNullValue: string = getValue("") ?? throwError("value missing");
|
|
104
|
-
* </pre>
|
|
105
|
-
*
|
|
106
|
-
* @param {string} errorMessage - The error message to be thrown.
|
|
107
|
-
* @param {CommonsErrorBaseOptions} [options] - Additional options for the thrown error.
|
|
108
|
-
* @throws {Error} - The error object with the provided error message.
|
|
109
|
-
* @returns {never} - This function does not return a value.
|
|
110
|
-
* @see CommonsErrorBaseOptions
|
|
111
|
-
*/
|
|
112
|
-
export declare function throwError(errorMessage: string, options?: CommonsErrorBaseOptions): never;
|
|
113
|
-
export type ErrorToStringOptionsType = ErrorToStringOptionsBaseType & HttpErrorResponseToStringOptionsType & ActionErrorContextToStringOptionsType & ErrorCauseToStringOptionsType & {
|
|
114
|
-
hideDetails?: boolean;
|
|
115
|
-
hideLocation?: boolean;
|
|
116
|
-
};
|
|
117
|
-
export interface ErrorToStringOptionsBaseType {
|
|
118
|
-
hideName?: boolean;
|
|
119
|
-
hideStack?: boolean;
|
|
120
|
-
hideCause?: boolean;
|
|
121
|
-
hideHttp?: boolean;
|
|
122
|
-
}
|
|
123
|
-
export interface HttpErrorResponseToStringOptionsType {
|
|
124
|
-
hideMessage?: boolean;
|
|
125
|
-
hideHeaders?: boolean;
|
|
126
|
-
hideBody?: boolean;
|
|
127
|
-
}
|
|
128
|
-
export interface ActionErrorContextToStringOptionsType {
|
|
129
|
-
hideItems?: boolean;
|
|
130
|
-
hideActionData?: boolean;
|
|
131
|
-
hideQueryParams?: boolean;
|
|
132
|
-
}
|
|
133
|
-
export interface ErrorCauseToStringOptionsType {
|
|
134
|
-
causeOnErrorOnly?: boolean;
|
|
135
|
-
causeAsJson?: boolean;
|
|
136
|
-
}
|