@mediusinc/mng-commons 6.0.0-rc.5 → 6.0.0-rc.6
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/components/notification/notification-wrapper.component.d.ts +4 -4
- package/core/error/error.model.d.ts +4 -4
- package/core/helpers/notification.d.ts +2 -2
- package/core/provide.d.ts +3 -3
- package/core/styles/style-constants.d.ts +9 -8
- package/core/styles/style.model.d.ts +2 -1
- package/fesm2022/mediusinc-mng-commons-core.mjs +91 -104
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form-api.mjs +8 -9
- package/fesm2022/mediusinc-mng-commons-form-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +149 -49
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-DTSBP9WQ.mjs +31 -0
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-DTSBP9WQ.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-JZpyiDIL.mjs +2118 -0
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-JZpyiDIL.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table.mjs +1 -2154
- package/fesm2022/mediusinc-mng-commons-table.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +97 -49
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +326 -290
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/form/api/index.d.ts +1 -0
- package/form/api/models/empty-value.model.d.ts +7 -0
- package/form/components/autocomplete/autocomplete.component.d.ts +1 -2
- package/form/components/date-range/date-range.component.d.ts +4 -3
- package/form/components/dropdown/dropdown.component.d.ts +3 -2
- package/form/components/number-range/number-range.component.d.ts +3 -2
- package/form/directives/input-empty-value.directive.d.ts +40 -0
- package/form/directives/input-trim.directive.d.ts +3 -5
- package/form/index.d.ts +1 -0
- package/i18n/en.json +57 -8
- package/i18n/sl.json +1 -3
- package/package.json +16 -42
- package/provide.d.ts +2 -2
- package/table/components/column-toggle/column-toggle.component.d.ts +12 -0
- package/table/components/filter/filter-form/filter-form.component.d.ts +2 -2
- package/table/components/table/table.component.d.ts +0 -1
- package/table/helpers/filters.d.ts +3 -2
- package/table/helpers/notification.d.ts +2 -2
- package/table/services/table-metadata.service.d.ts +3 -3
- package/tableview/action/components/action/action.component.d.ts +1 -0
- package/tableview/action/components/editor/action-editor.component.d.ts +1 -1
- package/tableview/action/components/table/action-table.component.d.ts +2 -1
- package/tableview/action/helpers/notification.d.ts +3 -3
- package/tableview/action/models/execution/action-context.model.d.ts +2 -2
- package/tableview/action/services/action-executor.service.d.ts +1 -1
- package/tableview/api/action/models/execution/action-context.model.d.ts +2 -2
- package/tableview/api/editor/descriptors/editor.descriptor.d.ts +5 -0
- package/tableview/api/editor/descriptors/field-base.descriptor.d.ts +14 -10
- package/tableview/api/editor/descriptors/field-group.descriptor.d.ts +10 -0
- package/tableview/api/editor/descriptors/field.descriptor.d.ts +36 -9
- package/tableview/api/editor/descriptors/wrappers/editor-descriptor-nested-object-wrapper.d.ts +1 -1
- package/tableview/api/editor/models/field-action-context.model.d.ts +1 -1
- package/tableview/api/editor/models/field.model.d.ts +1 -2
- package/tableview/api/editor/models/form-editor.interface.d.ts +2 -2
- package/tableview/api/editor/models/formly-custom-field.model.d.ts +1 -1
- package/tableview/api/editor/models/formly-field.model.d.ts +2 -2
- package/tableview/editor/components/editor/form-editor.component.d.ts +2 -2
- package/tableview/editor/components/formly/fields/formly-field-action/formly-field-action.component.d.ts +1 -1
- package/tableview/editor/components/formly/fields/formly-field-datepicker/formly-field-datepicker.component.d.ts +2 -1
- package/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +4 -6
- package/tableview/editor/components/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +0 -2
- package/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +2 -2
- package/tableview/editor/components/formly/fields/formly-field-type.abstract.component.d.ts +8 -15
- package/tableview/editor/components/formly/fields/formly-group-type.abstract.component.d.ts +7 -0
- package/tableview/editor/components/formly/fields/formly-type.abstract.component.d.ts +20 -0
- package/tableview/editor/components/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.d.ts +11 -4
- package/tableview/editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +2 -1
- package/tableview/editor/helpers/formly-config.d.ts +1 -1
- package/tableview/editor/helpers/notification.d.ts +3 -3
- package/tableview/editor/models/formly-config.model.d.ts +10 -1
- package/tableview/editor/models/formly.model.d.ts +23 -0
- package/tableview/editor/services/form-editor.service.d.ts +2 -2
- package/tableview/tableview/router/tableview-route-builder.d.ts +10 -3
- package/tableview/tableview/services/tableview-feature-config.token.d.ts +1 -1
- package/version-info.json +3 -3
- package/esm2022/core/action/action-data.model.mjs +0 -2
- package/esm2022/core/action/action-parameters.model.mjs +0 -2
- package/esm2022/core/components/notification/notification-wrapper.component.mjs +0 -50
- package/esm2022/core/data-list/data-list-params-helpers.mjs +0 -465
- package/esm2022/core/data-list/data-list.model.mjs +0 -2
- package/esm2022/core/data-list/filter-match.model.mjs +0 -105
- package/esm2022/core/data-list/filter-metadata.model.mjs +0 -2
- package/esm2022/core/data-providers/base.data-provider.mjs +0 -16
- package/esm2022/core/data-providers/lookup.data-provider.mjs +0 -2
- package/esm2022/core/descriptors/action.descriptor.mjs +0 -2
- package/esm2022/core/descriptors/column.descriptor.mjs +0 -2
- package/esm2022/core/descriptors/editor.descriptor.mjs +0 -2
- package/esm2022/core/descriptors/enum.descriptor.mjs +0 -2
- package/esm2022/core/descriptors/filter.descriptor.mjs +0 -2
- package/esm2022/core/descriptors/lookup.descriptor.mjs +0 -2
- package/esm2022/core/descriptors/model.descriptor.mjs +0 -2
- package/esm2022/core/descriptors/table.descriptor.mjs +0 -2
- package/esm2022/core/descriptors/tableview.descriptor.mjs +0 -2
- package/esm2022/core/directives/component.directive.mjs +0 -75
- package/esm2022/core/directives/rerender.directive.mjs +0 -25
- package/esm2022/core/directives/template.directive.mjs +0 -29
- package/esm2022/core/enum/enum-helpers.mjs +0 -90
- package/esm2022/core/enum/enum.model.mjs +0 -2
- package/esm2022/core/error/error-handler.mjs +0 -20
- package/esm2022/core/error/error-helpers.mjs +0 -273
- package/esm2022/core/error/error.model.mjs +0 -33
- package/esm2022/core/helpers/coercion.mjs +0 -55
- package/esm2022/core/helpers/date.mjs +0 -119
- package/esm2022/core/helpers/notification.mjs +0 -21
- package/esm2022/core/helpers/number.mjs +0 -19
- package/esm2022/core/helpers/object.mjs +0 -152
- package/esm2022/core/helpers/route.mjs +0 -58
- package/esm2022/core/helpers/string.mjs +0 -57
- package/esm2022/core/helpers/templates.mjs +0 -4
- package/esm2022/core/helpers/type-helpers.mjs +0 -2
- package/esm2022/core/i18n/i18n-common.mjs +0 -24
- package/esm2022/core/i18n/i18n-error.mjs +0 -29
- package/esm2022/core/i18n/i18n-type.mjs +0 -46
- package/esm2022/core/index.mjs +0 -107
- package/esm2022/core/log/log-publisher-console.service.mjs +0 -40
- package/esm2022/core/log/log.model.mjs +0 -10
- package/esm2022/core/log/logger.service.mjs +0 -131
- package/esm2022/core/mediusinc-mng-commons-core.mjs +0 -5
- package/esm2022/core/models/class-attribute.model.mjs +0 -2
- package/esm2022/core/models/class-service.model.mjs +0 -2
- package/esm2022/core/models/getter.model.mjs +0 -2
- package/esm2022/core/models/i18n.model.mjs +0 -2
- package/esm2022/core/models/menu.model.mjs +0 -2
- package/esm2022/core/models/user.model.mjs +0 -2
- package/esm2022/core/models/version.model.mjs +0 -2
- package/esm2022/core/pipes/boolean.pipe.mjs +0 -34
- package/esm2022/core/pipes/class-map.pipe.mjs +0 -23
- package/esm2022/core/pipes/enum.pipe.mjs +0 -38
- package/esm2022/core/pipes/enumerate-async.pipe.mjs +0 -36
- package/esm2022/core/pipes/enumerate.pipe.mjs +0 -49
- package/esm2022/core/pipes/getter.pipe.mjs +0 -21
- package/esm2022/core/pipes/i18n-property.pipe.mjs +0 -19
- package/esm2022/core/pipes/json-path.pipe.mjs +0 -25
- package/esm2022/core/pipes/parametrize.pipe.mjs +0 -86
- package/esm2022/core/pipes/template.pipe.mjs +0 -25
- package/esm2022/core/provide.mjs +0 -79
- package/esm2022/core/reactivity/effect.mjs +0 -22
- package/esm2022/core/reflect/type-enum-decorator.mjs +0 -12
- package/esm2022/core/reflect/type-enum-metadata.mjs +0 -62
- package/esm2022/core/registry/registry.model.mjs +0 -2
- package/esm2022/core/registry/type-registry.mjs +0 -106
- package/esm2022/core/router/route-builder.mjs +0 -431
- package/esm2022/core/router/router.model.mjs +0 -2
- package/esm2022/core/router/routes-builder.mjs +0 -52
- package/esm2022/core/rxjs/map-data-list-result-operator.mjs +0 -22
- package/esm2022/core/security/permission-helpers.mjs +0 -14
- package/esm2022/core/security/permission.guard.mjs +0 -15
- package/esm2022/core/security/permission.service.mjs +0 -101
- package/esm2022/core/security/permissions.model.mjs +0 -93
- package/esm2022/core/services/commons-configuration.service.mjs +0 -189
- package/esm2022/core/services/commons-init.service.mjs +0 -111
- package/esm2022/core/services/commons-router.service.mjs +0 -181
- package/esm2022/core/services/commons-storage.service.mjs +0 -31
- package/esm2022/core/services/commons.service.mjs +0 -324
- package/esm2022/core/services/providers/commons-init.provider.mjs +0 -4
- package/esm2022/core/services/tokens/browser-storage.token.mjs +0 -3
- package/esm2022/core/services/tokens/commons-init.token.mjs +0 -3
- package/esm2022/core/services/tokens/log-publisher.token.mjs +0 -3
- package/esm2022/core/services/tokens/module-config.token.mjs +0 -3
- package/esm2022/core/styles/style-constants.mjs +0 -11
- package/esm2022/core/styles/style.model.mjs +0 -20
- package/esm2022/filter/descriptors/filter-generic.descriptor.mjs +0 -31
- package/esm2022/filter/descriptors/filter-lookup.descriptor.mjs +0 -168
- package/esm2022/filter/descriptors/filter.descriptor.mjs +0 -421
- package/esm2022/filter/index.mjs +0 -8
- package/esm2022/filter/mediusinc-mng-commons-filter.mjs +0 -5
- package/esm2022/filter/models/filter-generic-property.model.mjs +0 -2
- package/esm2022/filter/models/filter.model.mjs +0 -20
- package/esm2022/form/api/data-providers/lookup-data-provider.factory.mjs +0 -15
- package/esm2022/form/api/data-providers/lookup.data-provider.mjs +0 -15
- package/esm2022/form/api/descriptors/action-button.descriptor.mjs +0 -56
- package/esm2022/form/api/descriptors/button-style.builder.mjs +0 -153
- package/esm2022/form/api/index.mjs +0 -10
- package/esm2022/form/api/mediusinc-mng-commons-form-api.mjs +0 -5
- package/esm2022/form/api/models/button.model.mjs +0 -2
- package/esm2022/form/api/models/trim.model.mjs +0 -2
- package/esm2022/form/components/autocomplete/autocomplete.component.mjs +0 -436
- package/esm2022/form/components/date-range/date-range.component.mjs +0 -147
- package/esm2022/form/components/dropdown/dropdown.component.mjs +0 -372
- package/esm2022/form/components/number-range/number-range.component.mjs +0 -123
- package/esm2022/form/directives/input-trim.directive.mjs +0 -50
- package/esm2022/form/index.mjs +0 -8
- package/esm2022/form/mediusinc-mng-commons-form.mjs +0 -5
- package/esm2022/index.mjs +0 -2
- package/esm2022/mediusinc-mng-commons.mjs +0 -5
- package/esm2022/model/class/data-providers/base-from-class-data-provider.factory.mjs +0 -5
- package/esm2022/model/class/descriptors/model-class.descriptor.mjs +0 -28
- package/esm2022/model/class/descriptors/type-class.descriptor.mjs +0 -6
- package/esm2022/model/class/helpers/model.mjs +0 -53
- package/esm2022/model/class/index.mjs +0 -8
- package/esm2022/model/class/mediusinc-mng-commons-model-class.mjs +0 -5
- package/esm2022/model/data-providers/base-from-type-data-provider.factory.mjs +0 -13
- package/esm2022/model/descriptors/enum.descriptor.mjs +0 -28
- package/esm2022/model/descriptors/model.descriptor.mjs +0 -53
- package/esm2022/model/descriptors/type.descriptor.mjs +0 -7
- package/esm2022/model/helpers/i18n.mjs +0 -47
- package/esm2022/model/index.mjs +0 -9
- package/esm2022/model/mediusinc-mng-commons-model.mjs +0 -5
- package/esm2022/provide.mjs +0 -6
- package/esm2022/table/api/class/class-table-attribute-converter.mjs +0 -80
- package/esm2022/table/api/class/class-table-attribute.model.mjs +0 -2
- package/esm2022/table/api/class/class-table-data-provider.factory.mjs +0 -5
- package/esm2022/table/api/class/class-table-descriptor-helpers.mjs +0 -99
- package/esm2022/table/api/class/class-table-descriptor.factory.mjs +0 -21
- package/esm2022/table/api/class/index.mjs +0 -6
- package/esm2022/table/api/class/mediusinc-mng-commons-table-api-class.mjs +0 -5
- package/esm2022/table/api/data-providers/table-data-provider.factory.mjs +0 -15
- package/esm2022/table/api/data-providers/table.data-provider.mjs +0 -33
- package/esm2022/table/api/descriptors/column.descriptor.mjs +0 -475
- package/esm2022/table/api/descriptors/sort.descriptor.mjs +0 -67
- package/esm2022/table/api/descriptors/table-descriptor.factory.mjs +0 -22
- package/esm2022/table/api/descriptors/table.descriptor.mjs +0 -1116
- package/esm2022/table/api/helpers/column-converter.mjs +0 -25
- package/esm2022/table/api/helpers/table-data-provider-descriptor-convert.mjs +0 -7
- package/esm2022/table/api/index.mjs +0 -19
- package/esm2022/table/api/mediusinc-mng-commons-table-api.mjs +0 -5
- package/esm2022/table/api/models/column-value.model.mjs +0 -2
- package/esm2022/table/api/models/column.model.mjs +0 -21
- package/esm2022/table/api/models/row-expandable-component.model.mjs +0 -2
- package/esm2022/table/api/models/table-columns.model.mjs +0 -2
- package/esm2022/table/api/models/table-event.model.mjs +0 -2
- package/esm2022/table/api/models/table.model.mjs +0 -21
- package/esm2022/table/components/column-filter/column-filter.component.mjs +0 -389
- package/esm2022/table/components/column-value/column-value.component.mjs +0 -78
- package/esm2022/table/components/filter/filter-active-tag/filter-active-tag.component.mjs +0 -55
- package/esm2022/table/components/filter/filter-form/filter-form.component.mjs +0 -226
- package/esm2022/table/components/filter/filter-overlay-with-tag/filter-overlay-with-tag.component.mjs +0 -219
- package/esm2022/table/components/table/table.component.mjs +0 -319
- package/esm2022/table/helpers/filters.mjs +0 -312
- package/esm2022/table/helpers/notification.mjs +0 -21
- package/esm2022/table/helpers/table-layout-prefs.mjs +0 -10
- package/esm2022/table/helpers/table.mjs +0 -24
- package/esm2022/table/index.mjs +0 -24
- package/esm2022/table/mediusinc-mng-commons-table.mjs +0 -5
- package/esm2022/table/models/column-preferences.model.mjs +0 -2
- package/esm2022/table/models/filter.model.mjs +0 -2
- package/esm2022/table/pipes/filter-value.pipe.mjs +0 -77
- package/esm2022/table/pipes/locale-default-row-class.pipe.mjs +0 -27
- package/esm2022/table/pipes/table-column-filter-class.pipe.mjs +0 -25
- package/esm2022/table/provide.mjs +0 -19
- package/esm2022/table/services/table-data.service.mjs +0 -194
- package/esm2022/table/services/table-feature-config.token.mjs +0 -3
- package/esm2022/table/services/table-metadata.service.mjs +0 -136
- package/esm2022/table/services/table-preferences.service.mjs +0 -142
- package/esm2022/tableview/action/components/action/action.component.mjs +0 -277
- package/esm2022/tableview/action/components/editor/action-editor.component.mjs +0 -86
- package/esm2022/tableview/action/components/editor/injector-context/action-editor-injector-context.component.mjs +0 -428
- package/esm2022/tableview/action/components/localization/data-language-dropdown.component.mjs +0 -35
- package/esm2022/tableview/action/components/route/action-route.component.mjs +0 -146
- package/esm2022/tableview/action/components/table/action-table.component.mjs +0 -102
- package/esm2022/tableview/action/guards/unsaved-changes.guard.mjs +0 -4
- package/esm2022/tableview/action/helpers/action-execution.mjs +0 -25
- package/esm2022/tableview/action/helpers/i18n.mjs +0 -102
- package/esm2022/tableview/action/helpers/notification.mjs +0 -78
- package/esm2022/tableview/action/helpers/styles.mjs +0 -32
- package/esm2022/tableview/action/models/action-editor-dialog-data.model.mjs +0 -2
- package/esm2022/tableview/action/models/can-component-deactivate.model.mjs +0 -2
- package/esm2022/tableview/action/models/execution/action-context.model.mjs +0 -64
- package/esm2022/tableview/action/models/execution/action-instance.model.mjs +0 -169
- package/esm2022/tableview/action/services/action-error-mapper.service.mjs +0 -20
- package/esm2022/tableview/action/services/action-executor.service.mjs +0 -772
- package/esm2022/tableview/action/services/component-action-executor.service.mjs +0 -19
- package/esm2022/tableview/action/services/data-provider-executor.service.mjs +0 -41
- package/esm2022/tableview/action/services/navigation.service.mjs +0 -53
- package/esm2022/tableview/action/services/providers/provide-action-executor.mjs +0 -9
- package/esm2022/tableview/action/services/providers/provide-view-container.mjs +0 -17
- package/esm2022/tableview/action/services/root-action-executor.service.mjs +0 -18
- package/esm2022/tableview/action/services/tokens/action-editor.token.mjs +0 -3
- package/esm2022/tableview/action/services/view-container.service.mjs +0 -40
- package/esm2022/tableview/api/action/descriptors/action-descriptor.factory.mjs +0 -28
- package/esm2022/tableview/api/action/descriptors/action-editor-descriptor.factory.mjs +0 -30
- package/esm2022/tableview/api/action/descriptors/action-editor.descriptor.mjs +0 -223
- package/esm2022/tableview/api/action/descriptors/action-link-descriptor.factory.mjs +0 -32
- package/esm2022/tableview/api/action/descriptors/action-link.descriptor.mjs +0 -74
- package/esm2022/tableview/api/action/descriptors/action.descriptor.mjs +0 -302
- package/esm2022/tableview/api/action/descriptors/editor-action-descriptor.factory.mjs +0 -21
- package/esm2022/tableview/api/action/descriptors/editor-action-editor-descriptor.factory.mjs +0 -21
- package/esm2022/tableview/api/action/descriptors/table-action-descriptor.factory.mjs +0 -37
- package/esm2022/tableview/api/action/descriptors/table-action-editor-descriptor.factory.mjs +0 -40
- package/esm2022/tableview/api/action/helpers/data-provider-executors.mjs +0 -100
- package/esm2022/tableview/api/action/models/action-component.model.mjs +0 -2
- package/esm2022/tableview/api/action/models/action-confirmation.model.mjs +0 -2
- package/esm2022/tableview/api/action/models/action-descriptor.types.mjs +0 -2
- package/esm2022/tableview/api/action/models/action-editor.model.mjs +0 -2
- package/esm2022/tableview/api/action/models/action-error.model.mjs +0 -14
- package/esm2022/tableview/api/action/models/action.type.mjs +0 -26
- package/esm2022/tableview/api/action/models/execution/action-context-validation.model.mjs +0 -2
- package/esm2022/tableview/api/action/models/execution/action-context.model.mjs +0 -2
- package/esm2022/tableview/api/action/models/execution/action-execution-error.model.mjs +0 -2
- package/esm2022/tableview/api/action/models/execution/action-instance-state.model.mjs +0 -32
- package/esm2022/tableview/api/action/models/execution/action-instance.model.mjs +0 -2
- package/esm2022/tableview/api/action/models/execution/view-container.model.mjs +0 -2
- package/esm2022/tableview/api/action/models/tableview-action-default-categories.model.mjs +0 -11
- package/esm2022/tableview/api/action/services/data-provider-executor.service.mjs +0 -28
- package/esm2022/tableview/api/action/services/tokens/data-language-dropdown.token.mjs +0 -3
- package/esm2022/tableview/api/class/editor/class-editor-attribute-converter.mjs +0 -85
- package/esm2022/tableview/api/class/editor/class-editor-attribute.model.mjs +0 -2
- package/esm2022/tableview/api/class/editor/class-editor-data-provider.factory.mjs +0 -5
- package/esm2022/tableview/api/class/editor/class-editor-descriptor-helpers.mjs +0 -95
- package/esm2022/tableview/api/class/editor/class-editor-descriptor.factory.mjs +0 -21
- package/esm2022/tableview/api/class/index.mjs +0 -13
- package/esm2022/tableview/api/class/mediusinc-mng-commons-tableview-api-class.mjs +0 -5
- package/esm2022/tableview/api/class/tableview/class-tableview-attribute-converter.mjs +0 -35
- package/esm2022/tableview/api/class/tableview/class-tableview-attribute.model.mjs +0 -2
- package/esm2022/tableview/api/class/tableview/class-tableview-data-provider.factory.mjs +0 -5
- package/esm2022/tableview/api/class/tableview/class-tableview-descriptor-helpers.mjs +0 -111
- package/esm2022/tableview/api/class/tableview/class-tableview-descriptor.factory.mjs +0 -26
- package/esm2022/tableview/api/editor/data-providers/editor-data-provider.factory.mjs +0 -15
- package/esm2022/tableview/api/editor/data-providers/editor.data-provider.mjs +0 -114
- package/esm2022/tableview/api/editor/descriptors/editor-descriptor.factory.mjs +0 -15
- package/esm2022/tableview/api/editor/descriptors/editor.descriptor.mjs +0 -437
- package/esm2022/tableview/api/editor/descriptors/field-action.descriptor.mjs +0 -51
- package/esm2022/tableview/api/editor/descriptors/field-base.descriptor.mjs +0 -314
- package/esm2022/tableview/api/editor/descriptors/field-group.descriptor.mjs +0 -103
- package/esm2022/tableview/api/editor/descriptors/field-lookup.descriptor.mjs +0 -211
- package/esm2022/tableview/api/editor/descriptors/field-many.descriptor.mjs +0 -142
- package/esm2022/tableview/api/editor/descriptors/field-validation.descriptor.mjs +0 -25
- package/esm2022/tableview/api/editor/descriptors/field.descriptor.mjs +0 -402
- package/esm2022/tableview/api/editor/descriptors/wrappers/editor-descriptor-nested-object-wrapper.mjs +0 -51
- package/esm2022/tableview/api/editor/models/editor-fields.model.mjs +0 -2
- package/esm2022/tableview/api/editor/models/editor.model.mjs +0 -9
- package/esm2022/tableview/api/editor/models/field-action-context.model.mjs +0 -2
- package/esm2022/tableview/api/editor/models/field-image-preview.model.mjs +0 -2
- package/esm2022/tableview/api/editor/models/field-validation.model.mjs +0 -2
- package/esm2022/tableview/api/editor/models/field.model.mjs +0 -57
- package/esm2022/tableview/api/editor/models/form-editor.event.mjs +0 -28
- package/esm2022/tableview/api/editor/models/form-editor.interface.mjs +0 -2
- package/esm2022/tableview/api/editor/models/formly-custom-field.model.mjs +0 -70
- package/esm2022/tableview/api/editor/models/formly-field.model.mjs +0 -2
- package/esm2022/tableview/api/editor/models/formly-options.model.mjs +0 -2
- package/esm2022/tableview/api/editor/models/radio.model.mjs +0 -2
- package/esm2022/tableview/api/index.mjs +0 -76
- package/esm2022/tableview/api/mediusinc-mng-commons-tableview-api.mjs +0 -5
- package/esm2022/tableview/api/tableview/data-providers/tableview-data-provider.factory.mjs +0 -18
- package/esm2022/tableview/api/tableview/data-providers/tableview.data-provider.mjs +0 -84
- package/esm2022/tableview/api/tableview/descriptors/tableview-descriptor.factory.mjs +0 -34
- package/esm2022/tableview/api/tableview/descriptors/tableview.descriptor.mjs +0 -377
- package/esm2022/tableview/api/tableview/helpers/files-export.mjs +0 -34
- package/esm2022/tableview/api/tableview/helpers/tableview-create.mjs +0 -26
- package/esm2022/tableview/api/tableview/helpers/tableview-data-provider-descriptor-convert.mjs +0 -7
- package/esm2022/tableview/api/tableview/helpers/tableview-default-actions.mjs +0 -324
- package/esm2022/tableview/api/tableview/helpers/tableview-input-builder.mjs +0 -319
- package/esm2022/tableview/api/tableview/models/tableview-descriptor-fields-manage-helper.type.mjs +0 -2
- package/esm2022/tableview/api/tableview/models/tableview-descriptor-helper.type.mjs +0 -2
- package/esm2022/tableview/api/tableview/models/tableview-input.model.mjs +0 -2
- package/esm2022/tableview/api/tableview/models/tableview-route.model.mjs +0 -2
- package/esm2022/tableview/editor/components/editor/auto-save-status/auto-save-status.component.mjs +0 -82
- package/esm2022/tableview/editor/components/editor/form-editor.component.mjs +0 -480
- package/esm2022/tableview/editor/components/formly/constants.mjs +0 -2
- package/esm2022/tableview/editor/components/formly/fields/formly-field-action/formly-field-action.component.mjs +0 -66
- package/esm2022/tableview/editor/components/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +0 -47
- package/esm2022/tableview/editor/components/formly/fields/formly-field-custom/formly-field-custom.component.mjs +0 -39
- package/esm2022/tableview/editor/components/formly/fields/formly-field-datepicker/formly-field-datepicker.component.mjs +0 -165
- package/esm2022/tableview/editor/components/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +0 -42
- package/esm2022/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +0 -34
- package/esm2022/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.mjs +0 -211
- package/esm2022/tableview/editor/components/formly/fields/formly-field-label/formly-field-label.component.mjs +0 -23
- package/esm2022/tableview/editor/components/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +0 -195
- package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +0 -239
- package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +0 -205
- package/esm2022/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +0 -28
- package/esm2022/tableview/editor/components/formly/fields/formly-field-type.abstract.component.mjs +0 -46
- package/esm2022/tableview/editor/components/formly/pipes/formly-field-label.pipe.mjs +0 -19
- package/esm2022/tableview/editor/components/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.mjs +0 -33
- package/esm2022/tableview/editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +0 -59
- package/esm2022/tableview/editor/helpers/editor-autosave.mjs +0 -49
- package/esm2022/tableview/editor/helpers/editor-field.mjs +0 -39
- package/esm2022/tableview/editor/helpers/editor-formly.mjs +0 -388
- package/esm2022/tableview/editor/helpers/editor-validators.mjs +0 -25
- package/esm2022/tableview/editor/helpers/field-create.mjs +0 -21
- package/esm2022/tableview/editor/helpers/formly-config.mjs +0 -260
- package/esm2022/tableview/editor/helpers/notification.mjs +0 -11
- package/esm2022/tableview/editor/models/editor-auto-save-preview.model.mjs +0 -2
- package/esm2022/tableview/editor/models/formly-config.model.mjs +0 -2
- package/esm2022/tableview/editor/services/form-editor.service.mjs +0 -96
- package/esm2022/tableview/editor/services/formly-config.provider.mjs +0 -31
- package/esm2022/tableview/index.mjs +0 -67
- package/esm2022/tableview/mediusinc-mng-commons-tableview.mjs +0 -5
- package/esm2022/tableview/provide.mjs +0 -105
- package/esm2022/tableview/tableview/components/route/tableview-route.component.mjs +0 -15
- package/esm2022/tableview/tableview/components/tableview/tableview.component.mjs +0 -59
- package/esm2022/tableview/tableview/router/tableview-route-builder.mjs +0 -175
- package/esm2022/tableview/tableview/services/tableview-feature-config.token.mjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediusinc-mng-commons.mjs","sources":["../../src/provide.ts","../../src/mediusinc-mng-commons.ts"],"sourcesContent":["import {Provider} from '@angular/core';\n\nimport {CommonsModuleConfig, provideCommons} from '@mediusinc/mng-commons/core';\nimport {TableviewFeatureConfig, withTableview} from '@mediusinc/mng-commons/tableview';\n\nexport type CommonsAllConfig = CommonsModuleConfig & {\n tableview?: TableviewFeatureConfig;\n};\n\nexport function provideCommonsWithTableview(config: CommonsAllConfig): Provider[] {\n return provideCommons(config, withTableview(config?.tableview));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AASM,SAAU,2BAA2B,CAAC,MAAwB,EAAA;IAChE,OAAO,cAAc,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AACnE;;ACXA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mediusinc-mng-commons.mjs","sources":["../../src/provide.ts","../../src/mediusinc-mng-commons.ts"],"sourcesContent":["import {EnvironmentProviders, Provider} from '@angular/core';\n\nimport {CommonsModuleConfig, provideCommons} from '@mediusinc/mng-commons/core';\nimport {TableviewFeatureConfig, withTableview} from '@mediusinc/mng-commons/tableview';\n\nexport type CommonsAllConfig = CommonsModuleConfig & {\n tableview?: TableviewFeatureConfig;\n};\n\nexport function provideCommonsWithTableview(config: CommonsAllConfig): (Provider | EnvironmentProviders)[] {\n return provideCommons(config, withTableview(config?.tableview));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AASM,SAAU,2BAA2B,CAAC,MAAwB,EAAA;IAChE,OAAO,cAAc,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AACnE;;ACXA;;AAEG;;;;"}
|
package/form/api/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ export * from './data-providers/lookup-data-provider.factory';
|
|
|
3
3
|
export * from './descriptors/action-button.descriptor';
|
|
4
4
|
export * from './descriptors/button-style.builder';
|
|
5
5
|
export * from './models/button.model';
|
|
6
|
+
export * from './models/empty-value.model';
|
|
6
7
|
export * from './models/trim.model';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definition for specifying how empty string values should be handled.
|
|
3
|
+
*
|
|
4
|
+
* @property 'undefined' - Convert empty strings to undefined (default)
|
|
5
|
+
* @property 'null' - Convert empty strings to null
|
|
6
|
+
*/
|
|
7
|
+
export type EmptyValueType = 'undefined' | 'null' | 'none';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ExistingProvider, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { AutoCompleteSelectEvent, AutoCompleteUnselectEvent } from 'primeng/autocomplete';
|
|
4
|
-
import { AutoCompleteCompleteEvent } from 'primeng/autocomplete/autocomplete.interface';
|
|
3
|
+
import { AutoCompleteCompleteEvent, AutoCompleteSelectEvent, AutoCompleteUnselectEvent } from 'primeng/autocomplete';
|
|
5
4
|
import { ILookupDataProvider } from '@mediusinc/mng-commons/core';
|
|
6
5
|
import { InputTrimType } from '@mediusinc/mng-commons/form/api';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
@@ -9,12 +9,13 @@ export declare class DateRangeComponent implements OnInit, ControlValueAccessor,
|
|
|
9
9
|
private readonly destroyRef;
|
|
10
10
|
private readonly cdr;
|
|
11
11
|
placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
12
|
-
showTime: import("@angular/core").
|
|
13
|
-
showSeconds: import("@angular/core").
|
|
12
|
+
showTime: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
showSeconds: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
14
|
dateFormat: import("@angular/core").InputSignal<string | undefined>;
|
|
15
15
|
className: import("@angular/core").InputSignal<string | undefined>;
|
|
16
16
|
required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
17
17
|
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
vertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
19
|
private fromToFormControl;
|
|
19
20
|
private onChangeFn;
|
|
20
21
|
private onTouchedFn;
|
|
@@ -32,5 +33,5 @@ export declare class DateRangeComponent implements OnInit, ControlValueAccessor,
|
|
|
32
33
|
validate(): ValidationErrors | null;
|
|
33
34
|
private onValueChange;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeComponent, "mng-date-range", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "showTime": { "alias": "showTime"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeComponent, "mng-date-range", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "showTime": { "alias": "showTime"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
36
37
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ExistingProvider } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import {
|
|
3
|
+
import { DropdownChangeEvent } from 'primeng/dropdown';
|
|
4
4
|
import { MultiSelect, MultiSelectBlurEvent, MultiSelectChangeEvent } from 'primeng/multiselect';
|
|
5
|
+
import { Select } from 'primeng/select';
|
|
5
6
|
import { ILookupDataProvider } from '@mediusinc/mng-commons/core';
|
|
6
7
|
import { InputTrimType } from '@mediusinc/mng-commons/form/api';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
@@ -33,7 +34,7 @@ export declare class DropdownComponent implements ControlValueAccessor {
|
|
|
33
34
|
searchTrim: import("@angular/core").InputSignal<InputTrimType | undefined>;
|
|
34
35
|
valueChange: import("@angular/core").OutputEmitterRef<any>;
|
|
35
36
|
blur: import("@angular/core").OutputEmitterRef<Event>;
|
|
36
|
-
|
|
37
|
+
primeSelect: import("@angular/core").Signal<Select | undefined>;
|
|
37
38
|
primeMultiselect: import("@angular/core").Signal<MultiSelect | undefined>;
|
|
38
39
|
private _value?;
|
|
39
40
|
ngModelValue: import("@angular/core").WritableSignal<any>;
|
|
@@ -7,11 +7,12 @@ export declare class NumberRangeComponent implements ControlValueAccessor, Valid
|
|
|
7
7
|
private readonly formBuilder;
|
|
8
8
|
private readonly cdr;
|
|
9
9
|
placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
10
|
-
useGrouping: import("@angular/core").
|
|
10
|
+
useGrouping: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
11
|
minFractionDigits: import("@angular/core").InputSignal<number | undefined>;
|
|
12
12
|
maxFractionDigits: import("@angular/core").InputSignal<number | undefined>;
|
|
13
13
|
required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
14
|
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
vertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
16
|
keyDown: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
16
17
|
private fromToFormControl;
|
|
17
18
|
private onChangeFn;
|
|
@@ -30,5 +31,5 @@ export declare class NumberRangeComponent implements ControlValueAccessor, Valid
|
|
|
30
31
|
private toNumber;
|
|
31
32
|
private onValueChange;
|
|
32
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberRangeComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberRangeComponent, "mng-number-range", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "useGrouping": { "alias": "useGrouping"; "required": false; "isSignal": true; }; "minFractionDigits": { "alias": "minFractionDigits"; "required": false; "isSignal": true; }; "maxFractionDigits": { "alias": "maxFractionDigits"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "keyDown": "keyDown"; }, never, never, true, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberRangeComponent, "mng-number-range", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "useGrouping": { "alias": "useGrouping"; "required": false; "isSignal": true; }; "minFractionDigits": { "alias": "minFractionDigits"; "required": false; "isSignal": true; }; "maxFractionDigits": { "alias": "maxFractionDigits"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; }, { "keyDown": "keyDown"; }, never, never, true, never>;
|
|
34
35
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { EmptyValueType } from '@mediusinc/mng-commons/form/api';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Directive that converts empty string values to undefined or null when the input loses focus.
|
|
5
|
+
* Can also be configured to leave empty strings as is.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* ```html
|
|
9
|
+
* <input mngInputEmptyValue="undefined" />
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // Convert empty strings to undefined (default behavior)
|
|
14
|
+
* <input mngInputEmptyValue />
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* // Convert empty strings to null
|
|
18
|
+
* <input mngInputEmptyValue="null" />
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* // Leave empty strings as is (no conversion)
|
|
22
|
+
* <input mngInputEmptyValue="none" />
|
|
23
|
+
*/
|
|
24
|
+
export declare class InputEmptyValueDirective {
|
|
25
|
+
#private;
|
|
26
|
+
/**
|
|
27
|
+
* Input property that specifies how empty string values should be handled.
|
|
28
|
+
*
|
|
29
|
+
* @default 'undefined'
|
|
30
|
+
*/
|
|
31
|
+
mngInputEmptyValue: import("@angular/core").InputSignal<EmptyValueType>;
|
|
32
|
+
/**
|
|
33
|
+
* Handler for the blur event.
|
|
34
|
+
* Checks if the input value is an empty string and converts it to undefined, null, or leaves it as is
|
|
35
|
+
* based on the configuration.
|
|
36
|
+
*/
|
|
37
|
+
onBlur(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputEmptyValueDirective, never>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputEmptyValueDirective, "[mngInputEmptyValue]", never, { "mngInputEmptyValue": { "alias": "mngInputEmptyValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { InputTrimType } from '@mediusinc/mng-commons/form/api';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class InputTrimDirective {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
onBlur(): void;
|
|
8
|
-
private getTrimmedValue;
|
|
4
|
+
#private;
|
|
5
|
+
readonly mngInputTrim: import("@angular/core").InputSignal<InputTrimType | undefined>;
|
|
6
|
+
protected onBlur(): void;
|
|
9
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputTrimDirective, never>;
|
|
10
8
|
static ɵdir: i0.ɵɵDirectiveDeclaration<InputTrimDirective, "[mngInputTrim]", never, { "mngInputTrim": { "alias": "mngInputTrim"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
9
|
}
|
package/form/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * from './components/autocomplete/autocomplete.component';
|
|
|
2
2
|
export * from './components/date-range/date-range.component';
|
|
3
3
|
export * from './components/dropdown/dropdown.component';
|
|
4
4
|
export * from './components/number-range/number-range.component';
|
|
5
|
+
export * from './directives/input-empty-value.directive';
|
|
5
6
|
export * from './directives/input-trim.directive';
|
package/i18n/en.json
CHANGED
|
@@ -77,10 +77,9 @@
|
|
|
77
77
|
},
|
|
78
78
|
"localizations": {
|
|
79
79
|
"showTranslations": "All translations",
|
|
80
|
-
"missingTranslation": "Missing translation. Default value is
|
|
80
|
+
"missingTranslation": "Missing translation. Default value is shown.",
|
|
81
81
|
"localizationTableviewTitle": "Translations: {{fieldName}}",
|
|
82
|
-
"
|
|
83
|
-
"addInDefaultLanguageDescription": "Localized item values will be saved in default language ({{defaultLanguage}}). To change values for different locales, open the translations dialog for desired field."
|
|
82
|
+
"addInDefaultLanguageDescription": "Localized item values will be saved in default language ({{defaultLanguage}}). To change values for different locales, open the translations tab."
|
|
84
83
|
},
|
|
85
84
|
"imageUrlPlaceholder": "Insert image URL ...",
|
|
86
85
|
"imageUrlAdd": "Add image URL",
|
|
@@ -251,11 +250,61 @@
|
|
|
251
250
|
"choose": "Choose",
|
|
252
251
|
"upload": "Upload",
|
|
253
252
|
"cancel": "Cancel",
|
|
254
|
-
"dayNames": [
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
253
|
+
"dayNames": [
|
|
254
|
+
"Sunday",
|
|
255
|
+
"Monday",
|
|
256
|
+
"Tuesday",
|
|
257
|
+
"Wednesday",
|
|
258
|
+
"Thursday",
|
|
259
|
+
"Friday",
|
|
260
|
+
"Saturday"
|
|
261
|
+
],
|
|
262
|
+
"dayNamesShort": [
|
|
263
|
+
"Sun",
|
|
264
|
+
"Mon",
|
|
265
|
+
"Tue",
|
|
266
|
+
"Wed",
|
|
267
|
+
"Thu",
|
|
268
|
+
"Fri",
|
|
269
|
+
"Sat"
|
|
270
|
+
],
|
|
271
|
+
"dayNamesMin": [
|
|
272
|
+
"Su",
|
|
273
|
+
"Mo",
|
|
274
|
+
"Tu",
|
|
275
|
+
"We",
|
|
276
|
+
"Th",
|
|
277
|
+
"Fr",
|
|
278
|
+
"Sa"
|
|
279
|
+
],
|
|
280
|
+
"monthNames": [
|
|
281
|
+
"January",
|
|
282
|
+
"February",
|
|
283
|
+
"March",
|
|
284
|
+
"April",
|
|
285
|
+
"May",
|
|
286
|
+
"June",
|
|
287
|
+
"July",
|
|
288
|
+
"August",
|
|
289
|
+
"September",
|
|
290
|
+
"October",
|
|
291
|
+
"November",
|
|
292
|
+
"December"
|
|
293
|
+
],
|
|
294
|
+
"monthNamesShort": [
|
|
295
|
+
"Jan",
|
|
296
|
+
"Feb",
|
|
297
|
+
"Mar",
|
|
298
|
+
"Apr",
|
|
299
|
+
"May",
|
|
300
|
+
"Jun",
|
|
301
|
+
"Jul",
|
|
302
|
+
"Aug",
|
|
303
|
+
"Sep",
|
|
304
|
+
"Oct",
|
|
305
|
+
"Nov",
|
|
306
|
+
"Dec"
|
|
307
|
+
],
|
|
259
308
|
"dateFormat": "mm/dd/yy",
|
|
260
309
|
"firstDayOfWeek": 0,
|
|
261
310
|
"today": "Today",
|
package/i18n/sl.json
CHANGED
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
"resetLayout": "Ponastavi postavitev"
|
|
62
62
|
},
|
|
63
63
|
"mngEditor": {
|
|
64
|
-
"invalidFormToastTitle": "Napaka v formi",
|
|
65
64
|
"invalidFormToastMessage": "Forma ni veljavna, prosimo preverite vnesene informacije in jih popravite.",
|
|
66
65
|
"validation": {
|
|
67
66
|
"required": "Polje je obvezno.",
|
|
@@ -78,8 +77,7 @@
|
|
|
78
77
|
"showTranslations": "Vsi prevodi",
|
|
79
78
|
"missingTranslation": "Manjka prevod. Prikazana je privzeta vrednost.",
|
|
80
79
|
"localizationTableviewTitle": "Prevodi: {{fieldName}}",
|
|
81
|
-
"
|
|
82
|
-
"addInDefaultLanguageDescription": "Lokalizirane vrednosti bodo shranjene v privzetem jeziku ({{defaultLanguage}}). Če želite urejati vrednosti za različne prevode, odprite pogovorno okno prevodov za želeno polje."
|
|
80
|
+
"addInDefaultLanguage": "Lokalizirane vrednosti bodo shranjene v privzetem jeziku ({{defaultLanguage}}). Če želite urejati vrednosti za različne prevode, odprite zavihek prevodov."
|
|
83
81
|
},
|
|
84
82
|
"imageUrlPlaceholder": "Vnesi URL do slike ...",
|
|
85
83
|
"imageUrlAdd": "Dodaj URL slike",
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/animations": "^
|
|
6
|
-
"@angular/common": "^
|
|
7
|
-
"@angular/core": "^
|
|
8
|
-
"@angular/forms": "^
|
|
9
|
-
"@angular/platform-browser": "^
|
|
10
|
-
"@angular/router": "^
|
|
5
|
+
"@angular/animations": "^19.0.0",
|
|
6
|
+
"@angular/common": "^19.0.0",
|
|
7
|
+
"@angular/core": "^19.0.0",
|
|
8
|
+
"@angular/forms": "^19.0.0",
|
|
9
|
+
"@angular/platform-browser": "^19.0.0",
|
|
10
|
+
"@angular/router": "^19.0.0",
|
|
11
11
|
"@ngx-formly/core": "6.3.11",
|
|
12
12
|
"@ngx-translate/core": "^15.0.0",
|
|
13
|
-
"primeng": "
|
|
13
|
+
"primeng": "~19.0.9"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"reflect-metadata": "^0.2.2",
|
|
@@ -28,80 +28,54 @@
|
|
|
28
28
|
},
|
|
29
29
|
".": {
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
|
-
"esm2022": "./esm2022/mediusinc-mng-commons.mjs",
|
|
32
|
-
"esm": "./esm2022/mediusinc-mng-commons.mjs",
|
|
33
31
|
"default": "./fesm2022/mediusinc-mng-commons.mjs"
|
|
34
32
|
},
|
|
35
33
|
"./core": {
|
|
36
34
|
"types": "./core/index.d.ts",
|
|
37
|
-
"esm2022": "./esm2022/core/mediusinc-mng-commons-core.mjs",
|
|
38
|
-
"esm": "./esm2022/core/mediusinc-mng-commons-core.mjs",
|
|
39
35
|
"default": "./fesm2022/mediusinc-mng-commons-core.mjs"
|
|
40
36
|
},
|
|
37
|
+
"./model": {
|
|
38
|
+
"types": "./model/index.d.ts",
|
|
39
|
+
"default": "./fesm2022/mediusinc-mng-commons-model.mjs"
|
|
40
|
+
},
|
|
41
41
|
"./filter": {
|
|
42
42
|
"types": "./filter/index.d.ts",
|
|
43
|
-
"esm2022": "./esm2022/filter/mediusinc-mng-commons-filter.mjs",
|
|
44
|
-
"esm": "./esm2022/filter/mediusinc-mng-commons-filter.mjs",
|
|
45
43
|
"default": "./fesm2022/mediusinc-mng-commons-filter.mjs"
|
|
46
44
|
},
|
|
47
45
|
"./form": {
|
|
48
46
|
"types": "./form/index.d.ts",
|
|
49
|
-
"esm2022": "./esm2022/form/mediusinc-mng-commons-form.mjs",
|
|
50
|
-
"esm": "./esm2022/form/mediusinc-mng-commons-form.mjs",
|
|
51
47
|
"default": "./fesm2022/mediusinc-mng-commons-form.mjs"
|
|
52
48
|
},
|
|
53
|
-
"./model": {
|
|
54
|
-
"types": "./model/index.d.ts",
|
|
55
|
-
"esm2022": "./esm2022/model/mediusinc-mng-commons-model.mjs",
|
|
56
|
-
"esm": "./esm2022/model/mediusinc-mng-commons-model.mjs",
|
|
57
|
-
"default": "./fesm2022/mediusinc-mng-commons-model.mjs"
|
|
58
|
-
},
|
|
59
49
|
"./table": {
|
|
60
50
|
"types": "./table/index.d.ts",
|
|
61
|
-
"esm2022": "./esm2022/table/mediusinc-mng-commons-table.mjs",
|
|
62
|
-
"esm": "./esm2022/table/mediusinc-mng-commons-table.mjs",
|
|
63
51
|
"default": "./fesm2022/mediusinc-mng-commons-table.mjs"
|
|
64
52
|
},
|
|
65
53
|
"./tableview": {
|
|
66
54
|
"types": "./tableview/index.d.ts",
|
|
67
|
-
"esm2022": "./esm2022/tableview/mediusinc-mng-commons-tableview.mjs",
|
|
68
|
-
"esm": "./esm2022/tableview/mediusinc-mng-commons-tableview.mjs",
|
|
69
55
|
"default": "./fesm2022/mediusinc-mng-commons-tableview.mjs"
|
|
70
56
|
},
|
|
71
|
-
"./form/api": {
|
|
72
|
-
"types": "./form/api/index.d.ts",
|
|
73
|
-
"esm2022": "./esm2022/form/api/mediusinc-mng-commons-form-api.mjs",
|
|
74
|
-
"esm": "./esm2022/form/api/mediusinc-mng-commons-form-api.mjs",
|
|
75
|
-
"default": "./fesm2022/mediusinc-mng-commons-form-api.mjs"
|
|
76
|
-
},
|
|
77
57
|
"./model/class": {
|
|
78
58
|
"types": "./model/class/index.d.ts",
|
|
79
|
-
"esm2022": "./esm2022/model/class/mediusinc-mng-commons-model-class.mjs",
|
|
80
|
-
"esm": "./esm2022/model/class/mediusinc-mng-commons-model-class.mjs",
|
|
81
59
|
"default": "./fesm2022/mediusinc-mng-commons-model-class.mjs"
|
|
82
60
|
},
|
|
61
|
+
"./form/api": {
|
|
62
|
+
"types": "./form/api/index.d.ts",
|
|
63
|
+
"default": "./fesm2022/mediusinc-mng-commons-form-api.mjs"
|
|
64
|
+
},
|
|
83
65
|
"./table/api": {
|
|
84
66
|
"types": "./table/api/index.d.ts",
|
|
85
|
-
"esm2022": "./esm2022/table/api/mediusinc-mng-commons-table-api.mjs",
|
|
86
|
-
"esm": "./esm2022/table/api/mediusinc-mng-commons-table-api.mjs",
|
|
87
67
|
"default": "./fesm2022/mediusinc-mng-commons-table-api.mjs"
|
|
88
68
|
},
|
|
89
69
|
"./tableview/api": {
|
|
90
70
|
"types": "./tableview/api/index.d.ts",
|
|
91
|
-
"esm2022": "./esm2022/tableview/api/mediusinc-mng-commons-tableview-api.mjs",
|
|
92
|
-
"esm": "./esm2022/tableview/api/mediusinc-mng-commons-tableview-api.mjs",
|
|
93
71
|
"default": "./fesm2022/mediusinc-mng-commons-tableview-api.mjs"
|
|
94
72
|
},
|
|
95
73
|
"./table/api/class": {
|
|
96
74
|
"types": "./table/api/class/index.d.ts",
|
|
97
|
-
"esm2022": "./esm2022/table/api/class/mediusinc-mng-commons-table-api-class.mjs",
|
|
98
|
-
"esm": "./esm2022/table/api/class/mediusinc-mng-commons-table-api-class.mjs",
|
|
99
75
|
"default": "./fesm2022/mediusinc-mng-commons-table-api-class.mjs"
|
|
100
76
|
},
|
|
101
77
|
"./tableview/api/class": {
|
|
102
78
|
"types": "./tableview/api/class/index.d.ts",
|
|
103
|
-
"esm2022": "./esm2022/tableview/api/class/mediusinc-mng-commons-tableview-api-class.mjs",
|
|
104
|
-
"esm": "./esm2022/tableview/api/class/mediusinc-mng-commons-tableview-api-class.mjs",
|
|
105
79
|
"default": "./fesm2022/mediusinc-mng-commons-tableview-api-class.mjs"
|
|
106
80
|
}
|
|
107
81
|
}
|
package/provide.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
1
|
+
import { EnvironmentProviders, Provider } from '@angular/core';
|
|
2
2
|
import { CommonsModuleConfig } from '@mediusinc/mng-commons/core';
|
|
3
3
|
import { TableviewFeatureConfig } from '@mediusinc/mng-commons/tableview';
|
|
4
4
|
export type CommonsAllConfig = CommonsModuleConfig & {
|
|
5
5
|
tableview?: TableviewFeatureConfig;
|
|
6
6
|
};
|
|
7
|
-
export declare function provideCommonsWithTableview(config: CommonsAllConfig): Provider[];
|
|
7
|
+
export declare function provideCommonsWithTableview(config: CommonsAllConfig): (Provider | EnvironmentProviders)[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ColumnWithPreferences } from '../../models/column-preferences.model';
|
|
2
|
+
import { TableMetadataService } from '../../services/table-metadata.service';
|
|
3
|
+
import { TablePreferencesService } from '../../services/table-preferences.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TableColumnToggleComponent {
|
|
6
|
+
protected readonly metadata: TableMetadataService;
|
|
7
|
+
protected readonly prefs: TablePreferencesService;
|
|
8
|
+
readonly columns: import("@angular/core").InputSignal<ColumnWithPreferences[]>;
|
|
9
|
+
protected anyColumnVisible: import("@angular/core").Signal<boolean>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnToggleComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnToggleComponent, "mng-table-column-toggle", never, { "columns": { "alias": "columns"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NgForm } from '@angular/forms';
|
|
2
|
-
import {
|
|
2
|
+
import { Popover } from 'primeng/popover';
|
|
3
3
|
import { FilterMatchMode, FilterMatchModeExtendedType, ILookupDataProvider } from '@mediusinc/mng-commons/core';
|
|
4
4
|
import { FilterGenericDescriptor, FilterLookupDescriptor, FilterLookupTypeEnum, FilterTypeEnum } from '@mediusinc/mng-commons/filter';
|
|
5
5
|
import { ModelDescriptor } from '@mediusinc/mng-commons/model';
|
|
@@ -17,7 +17,7 @@ export declare class TableFilterFormComponent {
|
|
|
17
17
|
genericDescriptor: import("@angular/core").InputSignal<FilterGenericDescriptor | undefined>;
|
|
18
18
|
model: import("@angular/core").InputSignal<ModelDescriptor<any>>;
|
|
19
19
|
filter: import("@angular/core").InputSignal<FilterState | undefined>;
|
|
20
|
-
overlay: import("@angular/core").InputSignal<
|
|
20
|
+
overlay: import("@angular/core").InputSignal<Popover | undefined>;
|
|
21
21
|
disabledProperties: import("@angular/core").InputSignal<string[]>;
|
|
22
22
|
enableCaseSensitive: import("@angular/core").InputSignal<boolean>;
|
|
23
23
|
propertySearch: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -63,7 +63,6 @@ export declare class TableComponent<Item = any, Service = undefined, Sorts = any
|
|
|
63
63
|
areColumnsToggleable: Signal<boolean>;
|
|
64
64
|
hasColumnFilters: Signal<boolean>;
|
|
65
65
|
overlayWithTagFilters: Signal<import("@mediusinc/mng-commons/table").FilterMetadata[]>;
|
|
66
|
-
anyColumnVisible: Signal<boolean>;
|
|
67
66
|
hasCustomLastColumn: Signal<Type<any> | TemplateRef<any> | null>;
|
|
68
67
|
hasLastColumn: Signal<boolean | Type<any> | TemplateRef<any>>;
|
|
69
68
|
private lastLazyLoadEvent?;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SelectItem } from 'primeng/api';
|
|
2
|
+
import { PrimeNG } from 'primeng/config';
|
|
2
3
|
import { CommonsFilterMetadata, CommonsModuleConfig, CommonsSerializationConfig, FilterMatchModeExtendedType, Nullable, SingleOrArrayType } from '@mediusinc/mng-commons/core';
|
|
3
4
|
import { FilterDescriptor, FilterGenericProperty, FilterTypeEnum } from '@mediusinc/mng-commons/filter';
|
|
4
5
|
import { LookupDataProviderInst } from '@mediusinc/mng-commons/form/api';
|
|
5
6
|
import { FilterDateConfig, FilterNumberConfig } from '../models/filter.model';
|
|
6
|
-
export declare function filterGenerateMatchModeOptions(primeConfig:
|
|
7
|
+
export declare function filterGenerateMatchModeOptions(primeConfig: PrimeNG, descriptor: FilterDescriptor<any, any> | undefined, cmpSerCfg?: CommonsSerializationConfig): SelectItem[];
|
|
7
8
|
/**
|
|
8
9
|
* Gets the default match mode for a filter.
|
|
9
10
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
-
import {
|
|
2
|
+
import { MessageService, ToastMessageOptions } from 'primeng/api';
|
|
3
3
|
import { TableDescriptorInst } from '@mediusinc/mng-commons/table/api';
|
|
4
4
|
/**
|
|
5
5
|
* Generates and displays a notification for a table-related error with localized error messages and details.
|
|
@@ -10,4 +10,4 @@ import { TableDescriptorInst } from '@mediusinc/mng-commons/table/api';
|
|
|
10
10
|
* @param {Error} error - The error object providing details about the error that occurred.
|
|
11
11
|
* @return {Message | null} The generated message object for the error notification or null if no notification was created.
|
|
12
12
|
*/
|
|
13
|
-
export declare function tableNotificationError(translate: TranslateService, messageService: MessageService, table: TableDescriptorInst<any>, error: Error):
|
|
13
|
+
export declare function tableNotificationError(translate: TranslateService, messageService: MessageService, table: TableDescriptorInst<any>, error: Error): ToastMessageOptions | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Signal } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { PrimeNG } from 'primeng/config';
|
|
3
3
|
import { CommonsSerializationConfig, DataListParams } from '@mediusinc/mng-commons/core';
|
|
4
4
|
import { FilterDescriptor, FilterDisplayTypeEnum } from '@mediusinc/mng-commons/filter';
|
|
5
5
|
import { TableDescriptorInst } from '@mediusinc/mng-commons/table/api';
|
|
@@ -8,9 +8,9 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
export declare class TableMetadataService {
|
|
9
9
|
#private;
|
|
10
10
|
static readonly cmpTypeName = "TableComponent";
|
|
11
|
-
readonly primeConfig:
|
|
11
|
+
readonly primeConfig: PrimeNG;
|
|
12
12
|
readonly moduleConfig: import("@mediusinc/mng-commons/core").CommonsModuleConfig | null;
|
|
13
|
-
readonly tableModuleConfig: import("
|
|
13
|
+
readonly tableModuleConfig: import("@mediusinc/mng-commons/table").TableFeatureConfig | null;
|
|
14
14
|
readonly serializationCfg: CommonsSerializationConfig;
|
|
15
15
|
readonly defaultFilterDisplayType: FilterDisplayTypeEnum;
|
|
16
16
|
readonly descriptorFromSource: Signal<TableDescriptorInst<any, any, any> | undefined>;
|
|
@@ -7,6 +7,7 @@ import { ActionDescriptorInst, ActionLinkDescriptorInst, IActionComponent } from
|
|
|
7
7
|
import { ActionInstance } from '../../models/execution/action-instance.model';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class ActionComponent<Item = any, Service = undefined> implements OnDestroy {
|
|
10
|
+
#private;
|
|
10
11
|
private readonly routeService;
|
|
11
12
|
private readonly translate;
|
|
12
13
|
private readonly authorization;
|
|
@@ -6,7 +6,7 @@ import { ActionEditorInjectorContextComponent, ActionEditorInjectorContextInputD
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ActionEditorComponent<T = any, S = any> {
|
|
8
8
|
readonly injContextCmpType: Type<any>;
|
|
9
|
-
readonly dialogConfig: DynamicDialogConfig<any> | null;
|
|
9
|
+
readonly dialogConfig: DynamicDialogConfig<any, any> | null;
|
|
10
10
|
action: import("@angular/core").InputSignal<ActionEditorDescriptorInst<T, S, T, T, T, T>>;
|
|
11
11
|
private readonly dialogData;
|
|
12
12
|
private readonly isDialog;
|
|
@@ -16,6 +16,7 @@ export declare class ActionTableComponent<Item = any, Service = undefined, Sorts
|
|
|
16
16
|
loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
17
17
|
dataProvider: import("@angular/core").InputSignal<ITableDataProvider<Item, Service, Sorts, Filters> | undefined>;
|
|
18
18
|
useQueryParams: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
tableClassName: import("@angular/core").InputSignal<string | undefined>;
|
|
19
20
|
selectionMode: import("@angular/core").InputSignal<"single" | "multiple">;
|
|
20
21
|
selectionEnabled: import("@angular/core").InputSignal<boolean>;
|
|
21
22
|
globalFilterFields: import("@angular/core").InputSignal<string[] | undefined>;
|
|
@@ -45,5 +46,5 @@ export declare class ActionTableComponent<Item = any, Service = undefined, Sorts
|
|
|
45
46
|
onRowReorder(event: TableRowReorderEvent): void;
|
|
46
47
|
onActionFinish(runResult: ActionInstance<Item, Service>): void;
|
|
47
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionTableComponent<any, any, any, any>, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionTableComponent<any, any, any, any>, "mng-action-table", never, { "descriptor": { "alias": "descriptor"; "required": true; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "result": { "alias": "result"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "dataProvider": { "alias": "dataProvider"; "required": false; "isSignal": true; }; "useQueryParams": { "alias": "useQueryParams"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectionEnabled": { "alias": "selectionEnabled"; "required": false; "isSignal": true; }; "globalFilterFields": { "alias": "globalFilterFields"; "required": false; "isSignal": true; }; "rowReorderEnabled": { "alias": "rowReorderEnabled"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "captionComponent": { "alias": "captionComponent"; "required": false; "isSignal": true; }; "columnActionComponent": { "alias": "columnActionComponent"; "required": false; "isSignal": true; }; "columnActionMinWidthInput": { "alias": "columnActionMinWidth"; "required": false; "isSignal": true; }; }, { "tableLoad": "tableLoad"; "selectionChange": "selectionChange"; "captionComponentInstance": "captionComponentInstance"; "columnActionComponentInstance": "columnActionComponentInstance"; "rowReorder": "rowReorder"; }, ["templates"], never, true, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionTableComponent<any, any, any, any>, "mng-action-table", never, { "descriptor": { "alias": "descriptor"; "required": true; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "result": { "alias": "result"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "dataProvider": { "alias": "dataProvider"; "required": false; "isSignal": true; }; "useQueryParams": { "alias": "useQueryParams"; "required": false; "isSignal": true; }; "tableClassName": { "alias": "tableClassName"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectionEnabled": { "alias": "selectionEnabled"; "required": false; "isSignal": true; }; "globalFilterFields": { "alias": "globalFilterFields"; "required": false; "isSignal": true; }; "rowReorderEnabled": { "alias": "rowReorderEnabled"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "captionComponent": { "alias": "captionComponent"; "required": false; "isSignal": true; }; "columnActionComponent": { "alias": "columnActionComponent"; "required": false; "isSignal": true; }; "columnActionMinWidthInput": { "alias": "columnActionMinWidth"; "required": false; "isSignal": true; }; }, { "tableLoad": "tableLoad"; "selectionChange": "selectionChange"; "captionComponentInstance": "captionComponentInstance"; "columnActionComponentInstance": "columnActionComponentInstance"; "rowReorder": "rowReorder"; }, ["templates"], never, true, never>;
|
|
49
50
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
-
import {
|
|
2
|
+
import { MessageService, ToastMessageOptions } from 'primeng/api';
|
|
3
3
|
import { ICommonsError } from '@mediusinc/mng-commons/core';
|
|
4
4
|
import { ActionDescriptorInst, ActionNotificationType } from '@mediusinc/mng-commons/tableview/api';
|
|
5
5
|
type ActionNotificationOptsType = ActionNotificationType & {
|
|
@@ -20,7 +20,7 @@ type ActionNotificationOptsType = ActionNotificationType & {
|
|
|
20
20
|
* @param {ActionNotificationOptsType} [opts] - Optional configuration for customizing the success notification.
|
|
21
21
|
* @return {Message | undefined} The generated message object if a success message is found, otherwise undefined.
|
|
22
22
|
*/
|
|
23
|
-
export declare function actionNotificationSuccess(translate: TranslateService, messageService: MessageService, action: ActionDescriptorInst<any>, opts?: ActionNotificationOptsType):
|
|
23
|
+
export declare function actionNotificationSuccess(translate: TranslateService, messageService: MessageService, action: ActionDescriptorInst<any>, opts?: ActionNotificationOptsType): ToastMessageOptions | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* Displays a notification for an error that occurred during an action execution.
|
|
26
26
|
*
|
|
@@ -36,5 +36,5 @@ export declare function actionNotificationSuccess(translate: TranslateService, m
|
|
|
36
36
|
* @param {ActionNotificationOptsType} [opts] - Optional parameters for customizing the notification, such as title, message, or function name.
|
|
37
37
|
* @return {Message} - The message object created and displayed as a notification.
|
|
38
38
|
*/
|
|
39
|
-
export declare function actionNotificationError(translate: TranslateService, messageService: MessageService, action: ActionDescriptorInst<any>, error: ICommonsError, severity?: 'warn' | 'error', opts?: ActionNotificationOptsType):
|
|
39
|
+
export declare function actionNotificationError(translate: TranslateService, messageService: MessageService, action: ActionDescriptorInst<any>, error: ICommonsError, severity?: 'warn' | 'error', opts?: ActionNotificationOptsType): ToastMessageOptions;
|
|
40
40
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import { Confirmation,
|
|
2
|
+
import { Confirmation, ToastMessageOptions } from 'primeng/api';
|
|
3
3
|
import { BehaviorSubject, ReplaySubject, Subscription } from 'rxjs';
|
|
4
4
|
import { ActionParameters, ICommonsError, IDataProvider } from '@mediusinc/mng-commons/core';
|
|
5
5
|
import { IActionContext, IActionInstance } from '@mediusinc/mng-commons/tableview/api';
|
|
@@ -22,7 +22,7 @@ export declare class ActionContext<Item, ParametersItem, Service = undefined> im
|
|
|
22
22
|
readonly contextLongName: string;
|
|
23
23
|
previousActionInstance?: IActionInstance<any, any>;
|
|
24
24
|
confirmation?: Confirmation;
|
|
25
|
-
notification?:
|
|
25
|
+
notification?: ToastMessageOptions;
|
|
26
26
|
runSubscription?: Subscription;
|
|
27
27
|
dataProviderSource: ActionDataProviderSource;
|
|
28
28
|
constructor(injector: Injector, instance: ActionInstance<Item, Service>, parameters: ActionParameters<ParametersItem>, functionName: 'run' | 'fetch' | 'submit', serviceInstance: Service, dataProvider?: IDataProvider<Item, Service> | undefined, viewContainer?: ViewContainer<Item, Service> | undefined, executionSubject?: ReplaySubject<Item | null | undefined>, executionIsRunningSubject?: BehaviorSubject<boolean>);
|
|
@@ -20,7 +20,7 @@ export declare abstract class ActionExecutorService {
|
|
|
20
20
|
protected readonly dataProviderExecutor: DataProviderExecutor;
|
|
21
21
|
protected readonly navigationService: NavigationService;
|
|
22
22
|
protected readonly errorMapper: ActionErrorMapperService;
|
|
23
|
-
protected readonly config: import("
|
|
23
|
+
protected readonly config: import("@mediusinc/mng-commons/tableview").TableviewFeatureConfig | null;
|
|
24
24
|
protected readonly defaultEditorDialogComponent: import("@angular/core").Type<any>;
|
|
25
25
|
protected readonly messageService: MessageService;
|
|
26
26
|
protected readonly confirmationService: ConfirmationService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import { Confirmation,
|
|
2
|
+
import { Confirmation, ToastMessageOptions } from 'primeng/api';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { ActionParameters, IDataProvider } from '@mediusinc/mng-commons/core';
|
|
5
5
|
import { IActionInstance } from './action-instance.model';
|
|
@@ -18,7 +18,7 @@ export interface IActionContext<Item, ParametersItem, Service = undefined, Insta
|
|
|
18
18
|
injector: Injector;
|
|
19
19
|
previousActionInstance?: IActionInstance<any, any>;
|
|
20
20
|
confirmation?: Confirmation;
|
|
21
|
-
notification?:
|
|
21
|
+
notification?: ToastMessageOptions;
|
|
22
22
|
execution$: Observable<Item | null | undefined>;
|
|
23
23
|
executionIsRunning$: Observable<boolean>;
|
|
24
24
|
}
|
|
@@ -88,6 +88,11 @@ export declare class EditorDescriptorInst<EditorModel, ParentEditorModel = undef
|
|
|
88
88
|
* @param title Title key for the tab.7@return Newly created group descriptor.
|
|
89
89
|
*/
|
|
90
90
|
withTabGroup(name: string, title?: string): this;
|
|
91
|
+
/**
|
|
92
|
+
* Gets group by its name (key).
|
|
93
|
+
* @param name Group's key.
|
|
94
|
+
*/
|
|
95
|
+
getGroup(name: string | number): FieldGroupDescriptor<EditorModel> | null;
|
|
91
96
|
/**
|
|
92
97
|
* Creates new field group. Next added fields are added to newly created field group.
|
|
93
98
|
* @param name Name of the group.
|