@mediusinc/mng-commons 5.0.0-rc.0 → 5.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/data-list/data-list-params-helpers.d.ts +82 -0
- package/core/descriptors/action.descriptor.d.ts +3 -3
- package/core/descriptors/column.descriptor.d.ts +1 -1
- package/core/descriptors/editor.descriptor.d.ts +6 -6
- package/core/descriptors/enum.descriptor.d.ts +6 -0
- package/core/descriptors/filter.descriptor.d.ts +1 -1
- package/core/descriptors/model.descriptor.d.ts +1 -1
- package/core/descriptors/table.descriptor.d.ts +6 -6
- package/core/descriptors/tableview.descriptor.d.ts +10 -10
- package/core/enum/enum-helpers.d.ts +49 -0
- package/core/error/error-helpers.d.ts +114 -0
- package/core/helpers/date.d.ts +14 -0
- package/core/helpers/object.d.ts +27 -0
- package/core/helpers/route.d.ts +35 -0
- package/core/helpers/string.d.ts +7 -0
- package/core/helpers/templates.d.ts +3 -0
- package/core/i18n/i18n-common.d.ts +6 -0
- package/core/i18n/i18n-error.d.ts +4 -0
- package/core/i18n/i18n-type.d.ts +20 -0
- package/core/index.d.ts +15 -9
- package/{model → core}/pipes/enum.pipe.d.ts +2 -2
- package/core/pipes/enumerate.pipe.d.ts +3 -3
- package/{model → core}/pipes/i18n-property.pipe.d.ts +2 -2
- package/core/pipes/template.pipe.d.ts +0 -2
- package/core/router/route-builder.d.ts +151 -30
- package/core/router/routes-builder.d.ts +29 -15
- package/core/security/permission-helpers.d.ts +3 -0
- package/core/security/permissions.model.d.ts +2 -2
- package/esm2022/core/components/notification/notification-wrapper.component.mjs +4 -4
- package/esm2022/core/components/pages/error/error.page.component.mjs +3 -3
- package/esm2022/core/components/pages/not-found/not-found.page.component.mjs +3 -3
- package/esm2022/core/data-list/data-list-params-helpers.mjs +415 -0
- package/esm2022/core/data-list/filter-match.model.mjs +1 -1
- package/esm2022/core/data-providers/base.data-provider.mjs +1 -1
- package/esm2022/core/descriptors/action.descriptor.mjs +1 -1
- package/esm2022/core/descriptors/column.descriptor.mjs +1 -1
- package/esm2022/core/descriptors/editor.descriptor.mjs +1 -1
- package/esm2022/core/descriptors/enum.descriptor.mjs +2 -0
- package/esm2022/core/descriptors/filter.descriptor.mjs +1 -1
- package/esm2022/core/descriptors/model.descriptor.mjs +1 -1
- package/esm2022/core/descriptors/table.descriptor.mjs +1 -1
- package/esm2022/core/descriptors/tableview.descriptor.mjs +1 -1
- package/esm2022/core/directives/component.directive.mjs +4 -4
- package/esm2022/core/directives/dialog-keydown-handler.directive.mjs +4 -4
- package/esm2022/core/directives/template.directive.mjs +3 -3
- package/esm2022/core/enum/enum-helpers.mjs +81 -0
- package/esm2022/core/error/error-handler.mjs +3 -3
- package/esm2022/core/error/error-helpers.mjs +247 -0
- package/esm2022/core/helpers/coercion.mjs +1 -1
- package/esm2022/core/helpers/date.mjs +119 -0
- package/esm2022/core/helpers/object.mjs +145 -0
- package/esm2022/core/helpers/route.mjs +58 -0
- package/esm2022/core/helpers/string.mjs +57 -0
- package/esm2022/core/helpers/templates.mjs +4 -0
- package/esm2022/core/i18n/i18n-common.mjs +24 -0
- package/esm2022/core/i18n/i18n-error.mjs +27 -0
- package/esm2022/core/i18n/i18n-type.mjs +79 -0
- package/esm2022/core/index.mjs +17 -11
- package/esm2022/core/log/log-publisher-console.service.mjs +3 -3
- package/esm2022/core/log/logger.service.mjs +3 -3
- package/esm2022/core/pipes/boolean.pipe.mjs +4 -4
- package/esm2022/core/pipes/class-map.pipe.mjs +4 -4
- package/esm2022/core/pipes/enum.pipe.mjs +27 -0
- package/esm2022/core/pipes/enumerate-async.pipe.mjs +8 -8
- package/esm2022/core/pipes/enumerate.pipe.mjs +10 -10
- package/esm2022/core/pipes/getter.pipe.mjs +4 -4
- package/esm2022/core/pipes/i18n-property.pipe.mjs +19 -0
- package/esm2022/core/pipes/json-path.pipe.mjs +6 -6
- package/esm2022/core/pipes/parametrize.pipe.mjs +6 -6
- package/esm2022/core/pipes/template.pipe.mjs +7 -8
- package/esm2022/core/provide.mjs +1 -21
- package/esm2022/core/reflect/type-enum-metadata.mjs +1 -1
- package/esm2022/core/registry/type-registry.mjs +1 -1
- package/esm2022/core/router/route-builder.mjs +218 -107
- package/esm2022/core/router/routes-builder.mjs +42 -43
- package/esm2022/core/security/permission-helpers.mjs +14 -0
- package/esm2022/core/security/permission.guard.mjs +1 -1
- package/esm2022/core/security/permission.service.mjs +6 -6
- package/esm2022/core/security/permissions.model.mjs +1 -1
- package/esm2022/core/services/commons-configuration.service.mjs +6 -6
- package/esm2022/core/services/commons-init.service.mjs +4 -4
- package/esm2022/core/services/commons-router.service.mjs +4 -4
- package/esm2022/core/services/commons.service.mjs +4 -4
- package/esm2022/core/services/local-storage-config.service.mjs +4 -4
- package/esm2022/filter/descriptors/filter-lookup.descriptor.mjs +9 -10
- package/esm2022/filter/descriptors/filter.descriptor.mjs +1 -1
- package/esm2022/form/api/data-providers/lookup.data-provider.mjs +1 -1
- package/esm2022/form/api/descriptors/button-style.builder.mjs +1 -1
- package/esm2022/form/components/autocomplete/autocomplete.component.mjs +39 -45
- package/esm2022/form/components/date-range/date-range.component.mjs +4 -4
- package/esm2022/form/components/dropdown/dropdown.component.mjs +7 -7
- package/esm2022/form/directives/input-trim.directive.mjs +4 -4
- package/esm2022/model/descriptors/enum.descriptor.mjs +1 -1
- package/esm2022/model/descriptors/model.descriptor.mjs +4 -4
- package/esm2022/model/helpers/i18n.mjs +45 -0
- package/esm2022/model/helpers/model.mjs +71 -0
- package/esm2022/model/index.mjs +4 -7
- package/esm2022/table/api/data-providers/table.data-provider.mjs +1 -1
- package/esm2022/table/api/descriptors/column.descriptor.mjs +1 -1
- package/esm2022/table/api/descriptors/table.descriptor.mjs +36 -8
- package/esm2022/table/api/helpers/class-attribute-converter.mjs +1 -1
- package/esm2022/table/components/column-filter-full/column-filter-full.component.mjs +9 -9
- package/esm2022/table/components/column-value/column-value.component.mjs +12 -14
- package/esm2022/table/components/table/table.component.mjs +20 -37
- package/esm2022/table/helpers/notification.mjs +4 -4
- package/esm2022/table/pipes/locale-default-row-class.pipe.mjs +4 -4
- package/esm2022/table/pipes/table-column-filter-class.pipe.mjs +4 -4
- package/esm2022/table/services/data-list.service.mjs +3 -3
- package/esm2022/tableview/action/components/action/action.component.mjs +9 -9
- package/esm2022/tableview/action/components/editor/action-editor.component.mjs +4 -4
- package/esm2022/tableview/action/components/editor/injector-context/action-editor-injector-context.component.mjs +22 -21
- package/esm2022/tableview/action/components/localization/data-language-dropdown.component.mjs +3 -3
- package/esm2022/tableview/action/components/route/action-route.component.mjs +6 -5
- package/esm2022/tableview/action/components/table/action-table.component.mjs +12 -24
- package/esm2022/tableview/action/helpers/i18n.mjs +82 -0
- package/esm2022/tableview/action/helpers/notification.mjs +8 -8
- package/esm2022/tableview/action/helpers/styles.mjs +1 -1
- package/esm2022/tableview/action/models/execution/action-context.model.mjs +1 -1
- package/esm2022/tableview/action/models/execution/action-instance.model.mjs +1 -1
- package/esm2022/tableview/action/services/action-error-mapper.service.mjs +1 -1
- package/esm2022/tableview/action/services/action-executor.service.mjs +10 -9
- package/esm2022/tableview/action/services/component-action-executor.service.mjs +3 -3
- package/esm2022/tableview/action/services/data-provider-executor.service.mjs +3 -3
- package/esm2022/tableview/action/services/navigation.service.mjs +4 -4
- package/esm2022/tableview/action/services/providers/provide-view-container.mjs +1 -1
- package/esm2022/tableview/action/services/root-action-executor.service.mjs +3 -3
- package/esm2022/tableview/action/services/view-container.service.mjs +3 -3
- package/esm2022/tableview/api/action/descriptors/action-confirmation.descriptor.mjs +1 -1
- package/esm2022/tableview/api/action/descriptors/action-editor.descriptor.mjs +9 -1
- package/esm2022/tableview/api/action/descriptors/action.descriptor.mjs +1 -1
- package/esm2022/tableview/api/action/helpers/data-provider-executors.mjs +1 -1
- package/esm2022/tableview/api/action/models/execution/action-instance.model.mjs +1 -1
- package/esm2022/tableview/api/editor/data-providers/editor.data-provider.mjs +1 -1
- package/esm2022/tableview/api/editor/descriptors/editor.descriptor.mjs +21 -32
- package/esm2022/tableview/api/editor/descriptors/field-action.descriptor.mjs +1 -1
- package/esm2022/tableview/api/editor/descriptors/field-base.descriptor.mjs +3 -3
- package/esm2022/tableview/api/editor/descriptors/field-group.descriptor.mjs +3 -3
- package/esm2022/tableview/api/editor/descriptors/field-lookup.descriptor.mjs +8 -8
- package/esm2022/tableview/api/editor/descriptors/field-many.descriptor.mjs +1 -1
- package/esm2022/tableview/api/editor/descriptors/field-validation.descriptor.mjs +1 -1
- package/esm2022/tableview/api/editor/descriptors/field.descriptor.mjs +39 -10
- package/esm2022/tableview/api/editor/helpers/class-attribute-converter.mjs +1 -1
- package/esm2022/tableview/api/editor/helpers/field-validators.mjs +15 -25
- package/esm2022/tableview/api/editor/models/editor-fields.model.mjs +1 -1
- package/esm2022/tableview/api/editor/models/field.model.mjs +1 -1
- package/esm2022/tableview/api/editor/models/form-editor.event.mjs +1 -1
- package/esm2022/tableview/api/editor/models/form-editor.interface.mjs +1 -1
- package/esm2022/tableview/api/editor/models/formly-custom-field.model.mjs +3 -3
- package/esm2022/tableview/api/editor/models/formly-field.model.mjs +1 -1
- package/esm2022/tableview/api/tableview/data-providers/tableview.data-provider.mjs +1 -1
- package/esm2022/tableview/api/tableview/descriptors/tableview.descriptor.mjs +15 -22
- package/esm2022/tableview/api/tableview/helpers/class-attribute-converter.mjs +1 -1
- package/esm2022/tableview/api/tableview/helpers/files-export.mjs +1 -1
- package/esm2022/tableview/api/tableview/helpers/tableview-default-actions.mjs +4 -4
- package/esm2022/tableview/api/tableview/helpers/tableview-input-builder.mjs +1 -1
- package/esm2022/tableview/editor/components/editor/form-editor.component.mjs +158 -138
- package/esm2022/tableview/editor/components/formly/fields/formly-field-action/formly-field-action.component.mjs +4 -4
- package/esm2022/tableview/editor/components/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +5 -7
- package/esm2022/tableview/editor/components/formly/fields/formly-field-custom/formly-field-custom.component.mjs +3 -3
- package/esm2022/tableview/editor/components/formly/fields/formly-field-datepicker/formly-field-datepicker.component.mjs +103 -0
- package/esm2022/tableview/editor/components/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +5 -7
- package/esm2022/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +3 -3
- package/esm2022/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.mjs +33 -50
- package/esm2022/tableview/editor/components/formly/fields/formly-field-label/formly-field-label.component.mjs +3 -3
- package/esm2022/tableview/editor/components/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +8 -10
- package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +6 -8
- package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +19 -18
- package/esm2022/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +3 -3
- package/esm2022/tableview/editor/components/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.mjs +4 -4
- package/esm2022/tableview/editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +4 -4
- package/esm2022/tableview/editor/helpers/editor-formly.mjs +343 -0
- package/esm2022/tableview/editor/helpers/formly-config.mjs +5 -3
- package/esm2022/tableview/editor/models/formly-config.model.mjs +1 -1
- package/esm2022/tableview/editor/services/formly-config.provider.mjs +1 -1
- package/esm2022/tableview/index.mjs +3 -5
- package/esm2022/tableview/provide.mjs +2 -1
- package/esm2022/tableview/tableview/components/route/tableview-route.component.mjs +10 -10
- package/esm2022/tableview/tableview/components/tableview/tableview.component.mjs +30 -56
- package/esm2022/tableview/tableview/router/tableview-route-builder.mjs +17 -43
- package/fesm2022/mediusinc-mng-commons-core.mjs +1599 -1496
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-filter.mjs +8 -9
- 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 +51 -56
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-model.mjs +99 -148
- package/fesm2022/mediusinc-mng-commons-model.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api.mjs +35 -7
- package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table.mjs +48 -65
- package/fesm2022/mediusinc-mng-commons-table.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +105 -96
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +865 -868
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/filter/descriptors/filter.descriptor.d.ts +2 -2
- package/form/components/autocomplete/autocomplete.component.d.ts +8 -7
- package/model/descriptors/model.descriptor.d.ts +2 -2
- package/model/helpers/i18n.d.ts +10 -0
- package/model/helpers/model.d.ts +5 -0
- package/model/index.d.ts +2 -4
- package/package.json +7 -7
- package/table/api/descriptors/table.descriptor.d.ts +10 -0
- package/table/components/column-value/column-value.component.d.ts +3 -4
- package/table/components/table/table.component.d.ts +13 -13
- package/tableview/action/components/editor/injector-context/action-editor-injector-context.component.d.ts +1 -3
- package/tableview/action/components/route/action-route.component.d.ts +1 -1
- package/tableview/action/components/table/action-table.component.d.ts +6 -6
- package/tableview/action/helpers/i18n.d.ts +22 -0
- package/tableview/action/models/execution/action-instance-state.model.d.ts +21 -21
- package/tableview/action/models/execution/action-instance.model.d.ts +2 -1
- package/tableview/action/services/action-executor.service.d.ts +1 -1
- package/tableview/api/action/descriptors/action-editor.descriptor.d.ts +9 -1
- package/tableview/api/action/descriptors/action.descriptor.d.ts +3 -3
- package/tableview/api/action/models/action.type.d.ts +2 -2
- package/tableview/api/action/models/execution/action-instance-state.model.d.ts +21 -21
- package/tableview/api/action/models/execution/action-instance.model.d.ts +2 -1
- package/tableview/api/editor/descriptors/editor.descriptor.d.ts +16 -21
- package/tableview/api/editor/descriptors/field-action.descriptor.d.ts +2 -2
- package/tableview/api/editor/descriptors/field-base.descriptor.d.ts +29 -29
- package/tableview/api/editor/descriptors/field-group.descriptor.d.ts +9 -9
- package/tableview/api/editor/descriptors/field-lookup.descriptor.d.ts +4 -4
- package/tableview/api/editor/descriptors/field-many.descriptor.d.ts +4 -4
- package/tableview/api/editor/descriptors/field-validation.descriptor.d.ts +10 -13
- package/tableview/api/editor/descriptors/field.descriptor.d.ts +17 -2
- package/tableview/api/editor/helpers/field-validators.d.ts +6 -2
- package/tableview/api/editor/models/editor-fields.model.d.ts +9 -7
- package/tableview/api/editor/models/field.model.d.ts +16 -7
- package/tableview/api/editor/models/form-editor.event.d.ts +6 -4
- package/tableview/api/editor/models/form-editor.interface.d.ts +37 -8
- package/tableview/api/editor/models/formly-custom-field.model.d.ts +1 -1
- package/tableview/api/editor/models/formly-field.model.d.ts +9 -7
- package/tableview/api/tableview/descriptors/tableview.descriptor.d.ts +8 -9
- package/tableview/editor/components/editor/form-editor.component.d.ts +51 -35
- package/tableview/editor/components/formly/fields/formly-field-datepicker/formly-field-datepicker.component.d.ts +22 -0
- package/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.d.ts +5 -7
- package/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +0 -1
- package/tableview/editor/helpers/editor-formly.d.ts +11 -0
- package/tableview/editor/models/formly-config.model.d.ts +1 -1
- package/tableview/index.d.ts +2 -2
- package/tableview/tableview/components/route/tableview-route.component.d.ts +2 -2
- package/tableview/tableview/components/tableview/tableview.component.d.ts +16 -15
- package/tableview/tableview/router/tableview-route-builder.d.ts +7 -13
- package/version-info.json +11 -0
- package/core/data-list/data-list-params.util.d.ts +0 -84
- package/core/enum/enum.util.d.ts +0 -51
- package/core/error/error.util.d.ts +0 -116
- package/core/security/permission.util.d.ts +0 -5
- package/core/utils/date.util.d.ts +0 -20
- package/core/utils/i18n.util.d.ts +0 -36
- package/core/utils/object.util.d.ts +0 -31
- package/core/utils/route.util.d.ts +0 -37
- package/core/utils/string.util.d.ts +0 -9
- package/esm2022/core/data-list/data-list-params.util.mjs +0 -417
- package/esm2022/core/enum/enum.util.mjs +0 -83
- package/esm2022/core/error/error.util.mjs +0 -249
- package/esm2022/core/security/permission.util.mjs +0 -16
- package/esm2022/core/utils/date.util.mjs +0 -136
- package/esm2022/core/utils/i18n.util.mjs +0 -137
- package/esm2022/core/utils/object.util.mjs +0 -147
- package/esm2022/core/utils/route.util.mjs +0 -60
- package/esm2022/core/utils/string.util.mjs +0 -59
- package/esm2022/model/pipes/enum.pipe.mjs +0 -26
- package/esm2022/model/pipes/i18n-property.pipe.mjs +0 -19
- package/esm2022/model/utils/i18n.util.mjs +0 -51
- package/esm2022/model/utils/model.util.mjs +0 -73
- package/esm2022/tableview/action/utils/i18n.util.mjs +0 -126
- package/esm2022/tableview/editor/utils/editor-formly.util.mjs +0 -337
- package/model/utils/i18n.util.d.ts +0 -15
- package/model/utils/model.util.d.ts +0 -8
- package/tableview/action/utils/i18n.util.d.ts +0 -48
- package/tableview/editor/utils/editor-formly.util.d.ts +0 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { of, throwError, isObservable, Subject, tap } from 'rxjs';
|
|
2
|
-
import { StyleLevelEnum, CommonsInternalError, findReflectTypeName, DataProvider, LoggerService, StyleSizeEnum, DataProviderInst, ACommonsErrorBase, toObservable, TypeRegistry,
|
|
2
|
+
import { StyleLevelEnum, CommonsInternalError, findReflectTypeName, DataProvider, LoggerService, StyleSizeEnum, DataProviderInst, ACommonsErrorBase, toObservable, TypeRegistry, getI18nTypePropertyKey, fromEnumValuesAsValueArray, fromEnumConstantsAsValueArray, getEnumConstantName, getI18nTypeTabKey, getI18nTypeGroupKey, GetterPipe, copyDataListParams } from '@mediusinc/mng-commons/core';
|
|
3
3
|
import { ActionButtonDescriptor, ButtonStyleBuilder, LookupDataProvider, ButtonStyleRoundedEnum } from '@mediusinc/mng-commons/form/api';
|
|
4
|
-
import { ModelDescriptor,
|
|
4
|
+
import { ModelDescriptor, trySetLookupItemsProperties, enumModelGeneric, findClassTitleAttribute } from '@mediusinc/mng-commons/model';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { InjectionToken, Directive, Input, inject, Injector } from '@angular/core';
|
|
7
7
|
import { ColumnTypeEnum, ColumnDisplayTypeEnum, TableDataProvider, getColumnTypeFromClassAttributeDefType, getColumnDisplayTypeFromColumnType, TableDescriptor, TableDynamicDescriptor } from '@mediusinc/mng-commons/table/api';
|
|
@@ -741,6 +741,14 @@ class ActionEditorDescriptorInst extends ActionDescriptorInst {
|
|
|
741
741
|
this._editorComponent = editorComponent;
|
|
742
742
|
return this;
|
|
743
743
|
}
|
|
744
|
+
/**
|
|
745
|
+
* Enables or disables resubmit resubmit - this means the form will not exit after successful submission, but will instead remain open.
|
|
746
|
+
*
|
|
747
|
+
* @param {boolean} [enabled=true] - Specifies whether resubmit is enabled or disabled. Defaults to true if not provided.
|
|
748
|
+
* @param {boolean} [refetch=true] - Specifies whether the data should be refetched after resubmit. If not, the data in the form stays as is. Defaults to true if not provided.
|
|
749
|
+
*
|
|
750
|
+
* @returns {this} - Returns the current instance with the resubmit configuration updated.
|
|
751
|
+
*/
|
|
744
752
|
withResubmit(enabled, refetch = true) {
|
|
745
753
|
this._resubmitEnabled = enabled;
|
|
746
754
|
this._resubmitRefetch = refetch;
|
|
@@ -1315,7 +1323,7 @@ class AFieldDescriptor extends AGenericFieldDescriptor {
|
|
|
1315
1323
|
/** @ignore */ this._isLocalized = false;
|
|
1316
1324
|
/** @ignore */ this._eventsSubject = new Subject();
|
|
1317
1325
|
this._property = property;
|
|
1318
|
-
this._label =
|
|
1326
|
+
this._label = getI18nTypePropertyKey(this._editor.model.i18nBaseKey, property);
|
|
1319
1327
|
}
|
|
1320
1328
|
get property() {
|
|
1321
1329
|
return this._property;
|
|
@@ -1631,8 +1639,8 @@ class AFieldGroupDescriptor extends AGenericFieldDescriptor {
|
|
|
1631
1639
|
this._title = title;
|
|
1632
1640
|
return this;
|
|
1633
1641
|
}
|
|
1634
|
-
withValidation(name, validator, message) {
|
|
1635
|
-
this._validations.push(new FieldValidationDescriptor(name, validator, message));
|
|
1642
|
+
withValidation(name, validator, message, opts) {
|
|
1643
|
+
this._validations.push(new FieldValidationDescriptor(name, validator, message, opts));
|
|
1636
1644
|
return this;
|
|
1637
1645
|
}
|
|
1638
1646
|
}
|
|
@@ -1719,7 +1727,7 @@ class FieldLookupDescriptor extends AFieldDescriptor {
|
|
|
1719
1727
|
this._dataProvider = LookupDataProvider.fromAnyParam(cfg?.type, cfg?.serviceType);
|
|
1720
1728
|
}
|
|
1721
1729
|
this._optionsValueProperty = cfg?.optionsValueProperty;
|
|
1722
|
-
|
|
1730
|
+
trySetLookupItemsProperties(this);
|
|
1723
1731
|
}
|
|
1724
1732
|
get lookupType() {
|
|
1725
1733
|
return this._lookupType;
|
|
@@ -1850,8 +1858,8 @@ class FieldLookupEnumDescriptor extends FieldLookupDescriptor {
|
|
|
1850
1858
|
});
|
|
1851
1859
|
this._enumModel = enumModel;
|
|
1852
1860
|
this._optionEnumValues = Array.isArray(options)
|
|
1853
|
-
?
|
|
1854
|
-
:
|
|
1861
|
+
? fromEnumValuesAsValueArray(this._enumModel.type, options, this._enumModel.nameAsValue, this._enumModel.i18nBaseKey ?? undefined)
|
|
1862
|
+
: fromEnumConstantsAsValueArray(this._enumModel.type, this._enumModel.nameAsValue, this._enumModel.i18nBaseKey ?? undefined);
|
|
1855
1863
|
this.withLookup(() => of(this._optionEnumValues));
|
|
1856
1864
|
this.withOptionsLabelProperty('title', this._enumModel.i18nBaseKey !== null);
|
|
1857
1865
|
this.withOptionsDisabledProperty('disabled');
|
|
@@ -1861,7 +1869,7 @@ class FieldLookupEnumDescriptor extends FieldLookupDescriptor {
|
|
|
1861
1869
|
}
|
|
1862
1870
|
withDisabledOptions(...disabledOptions) {
|
|
1863
1871
|
for (const disabledOption of disabledOptions) {
|
|
1864
|
-
const disabledOptionValue = this._enumModel.nameAsValue ?
|
|
1872
|
+
const disabledOptionValue = this._enumModel.nameAsValue ? getEnumConstantName(this._enumModel.type, disabledOption) : disabledOption;
|
|
1865
1873
|
if (disabledOptionValue) {
|
|
1866
1874
|
const option = this._optionEnumValues.find(o => o.value === disabledOptionValue);
|
|
1867
1875
|
if (option) {
|
|
@@ -1872,7 +1880,7 @@ class FieldLookupEnumDescriptor extends FieldLookupDescriptor {
|
|
|
1872
1880
|
return this;
|
|
1873
1881
|
}
|
|
1874
1882
|
withDefaultValueEnum(defaultValue) {
|
|
1875
|
-
const defaultOptionValue = this._enumModel.nameAsValue ?
|
|
1883
|
+
const defaultOptionValue = this._enumModel.nameAsValue ? getEnumConstantName(this._enumModel.type, defaultValue) : defaultValue;
|
|
1876
1884
|
if (defaultOptionValue) {
|
|
1877
1885
|
const option = this._optionEnumValues.find(o => o.value === defaultOptionValue);
|
|
1878
1886
|
if (option) {
|
|
@@ -2050,36 +2058,25 @@ class FieldManyEditorDescriptor extends AFieldDescriptor {
|
|
|
2050
2058
|
}
|
|
2051
2059
|
}
|
|
2052
2060
|
|
|
2061
|
+
const minDateValidationName = 'minDate';
|
|
2053
2062
|
const minDateValidator = (min) => {
|
|
2054
2063
|
return (c) => {
|
|
2055
|
-
const date = c?.value;
|
|
2056
|
-
|
|
2057
|
-
if (!valid) {
|
|
2058
|
-
const newErrors = { ...c.errors, minDate: true };
|
|
2059
|
-
c?.markAsDirty();
|
|
2060
|
-
c.setErrors(newErrors);
|
|
2061
|
-
return newErrors;
|
|
2062
|
-
}
|
|
2063
|
-
if (c?.hasError('minDate')) {
|
|
2064
|
-
c.setErrors({ ...c.errors, minDate: null });
|
|
2065
|
-
}
|
|
2066
|
-
return null;
|
|
2064
|
+
const date = c?.value == null ? undefined : new Date(c.value);
|
|
2065
|
+
return !date || date >= min;
|
|
2067
2066
|
};
|
|
2068
2067
|
};
|
|
2068
|
+
const maxDateValidationName = 'maxDate';
|
|
2069
2069
|
const maxDateValidator = (max) => {
|
|
2070
2070
|
return (c) => {
|
|
2071
|
-
const date = c?.value;
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
c.setErrors({ ...c.errors, maxDate: null });
|
|
2081
|
-
}
|
|
2082
|
-
return null;
|
|
2071
|
+
const date = c?.value == null ? undefined : new Date(c.value);
|
|
2072
|
+
return !date || date <= max;
|
|
2073
|
+
};
|
|
2074
|
+
};
|
|
2075
|
+
const emailValidationName = 'email';
|
|
2076
|
+
const emailValidator = () => {
|
|
2077
|
+
return (c) => {
|
|
2078
|
+
const error = Validators.email(c);
|
|
2079
|
+
return error === null;
|
|
2083
2080
|
};
|
|
2084
2081
|
};
|
|
2085
2082
|
|
|
@@ -2174,6 +2171,18 @@ class FieldInputDescriptor extends AFieldDescriptor {
|
|
|
2174
2171
|
get datePickerShowSeconds() {
|
|
2175
2172
|
return this._datePickerShowSeconds;
|
|
2176
2173
|
}
|
|
2174
|
+
get datePickerValueUtc() {
|
|
2175
|
+
return this._datePickerValueUtc;
|
|
2176
|
+
}
|
|
2177
|
+
get datePickerValueNoTimezone() {
|
|
2178
|
+
return this._datePickerValueNoTimezone;
|
|
2179
|
+
}
|
|
2180
|
+
get datePickerValueNoTime() {
|
|
2181
|
+
return this._datePickerValueNoTime;
|
|
2182
|
+
}
|
|
2183
|
+
get datePickerValueAsDateObj() {
|
|
2184
|
+
return this._datePickerValueAsDateObj;
|
|
2185
|
+
}
|
|
2177
2186
|
get maxLength() {
|
|
2178
2187
|
return this._maxLength;
|
|
2179
2188
|
}
|
|
@@ -2286,8 +2295,8 @@ class FieldInputDescriptor extends AFieldDescriptor {
|
|
|
2286
2295
|
asRadioFromEnum(enumModel, values) {
|
|
2287
2296
|
this._fieldType = FieldInputTypeEnum.Radio;
|
|
2288
2297
|
this._radioOptions = Array.isArray(values)
|
|
2289
|
-
?
|
|
2290
|
-
:
|
|
2298
|
+
? fromEnumValuesAsValueArray(enumModel.type, values, enumModel.nameAsValue, enumModel.i18nBaseKey ?? undefined)
|
|
2299
|
+
: fromEnumConstantsAsValueArray(enumModel.type, enumModel.nameAsValue, enumModel.i18nBaseKey ?? undefined);
|
|
2291
2300
|
return this;
|
|
2292
2301
|
}
|
|
2293
2302
|
asDatePicker(opts) {
|
|
@@ -2297,11 +2306,18 @@ class FieldInputDescriptor extends AFieldDescriptor {
|
|
|
2297
2306
|
this._datePickerMax = opts?.max;
|
|
2298
2307
|
this._datePickerShowTime = opts?.showTime;
|
|
2299
2308
|
this._datePickerShowSeconds = opts?.showSeconds;
|
|
2309
|
+
this._datePickerValueAsDateObj = opts?.asDateObj;
|
|
2310
|
+
this.withDateValue({
|
|
2311
|
+
asDateObj: opts?.asDateObj,
|
|
2312
|
+
utc: opts?.utc,
|
|
2313
|
+
noTimeZone: opts?.noTimeZone,
|
|
2314
|
+
noTime: opts?.noTime
|
|
2315
|
+
});
|
|
2300
2316
|
if (opts?.min != undefined) {
|
|
2301
|
-
this.withValidation(
|
|
2317
|
+
this.withValidation(minDateValidationName, minDateValidator(opts.min));
|
|
2302
2318
|
}
|
|
2303
2319
|
if (opts?.max !== undefined) {
|
|
2304
|
-
this.withValidation(
|
|
2320
|
+
this.withValidation(maxDateValidationName, maxDateValidator(opts.max));
|
|
2305
2321
|
}
|
|
2306
2322
|
return this;
|
|
2307
2323
|
}
|
|
@@ -2367,12 +2383,19 @@ class FieldInputDescriptor extends AFieldDescriptor {
|
|
|
2367
2383
|
this._inputTrim = trimOption;
|
|
2368
2384
|
return this;
|
|
2369
2385
|
}
|
|
2386
|
+
withDateValue(opts) {
|
|
2387
|
+
this._datePickerValueAsDateObj = opts?.asDateObj;
|
|
2388
|
+
this._datePickerValueUtc = opts?.utc;
|
|
2389
|
+
this._datePickerValueNoTimezone = opts?.noTimeZone;
|
|
2390
|
+
this._datePickerValueNoTime = opts?.noTime;
|
|
2391
|
+
return this;
|
|
2392
|
+
}
|
|
2370
2393
|
withTextValidationEmail(email = true) {
|
|
2371
2394
|
if (this.fieldType === FieldInputTypeEnum.Text && email) {
|
|
2372
|
-
this.withValidation(
|
|
2395
|
+
this.withValidation(emailValidationName, emailValidator());
|
|
2373
2396
|
}
|
|
2374
2397
|
else if (!email) {
|
|
2375
|
-
this.removeValidation(
|
|
2398
|
+
this.removeValidation(emailValidationName);
|
|
2376
2399
|
}
|
|
2377
2400
|
return this;
|
|
2378
2401
|
}
|
|
@@ -2398,6 +2421,10 @@ class FieldInputDescriptor extends AFieldDescriptor {
|
|
|
2398
2421
|
field._datePickerMax = this._datePickerMax;
|
|
2399
2422
|
field._datePickerShowTime = this._datePickerShowTime;
|
|
2400
2423
|
field._datePickerShowSeconds = this._datePickerShowSeconds;
|
|
2424
|
+
field._datePickerValueUtc = this._datePickerValueUtc;
|
|
2425
|
+
field._datePickerValueNoTimezone = this._datePickerValueNoTimezone;
|
|
2426
|
+
field._datePickerValueNoTime = this._datePickerValueNoTime;
|
|
2427
|
+
field._datePickerValueAsDateObj = this._datePickerValueAsDateObj;
|
|
2401
2428
|
field._maxLength = this._maxLength;
|
|
2402
2429
|
field._minLength = this._minLength;
|
|
2403
2430
|
field._pattern = this._pattern;
|
|
@@ -2488,7 +2515,7 @@ class EditorDescriptorInst {
|
|
|
2488
2515
|
createTabGroup(name, title) {
|
|
2489
2516
|
const tabGroup = new FieldTabGroupDescriptor(this, name);
|
|
2490
2517
|
if (!title) {
|
|
2491
|
-
title =
|
|
2518
|
+
title = getI18nTypeTabKey(this.model.i18nBaseKey, name);
|
|
2492
2519
|
}
|
|
2493
2520
|
tabGroup.withTitle(title);
|
|
2494
2521
|
this.createTabGroupDescriptor(tabGroup);
|
|
@@ -2503,7 +2530,7 @@ class EditorDescriptorInst {
|
|
|
2503
2530
|
const fieldGroup = new FieldGroupDescriptor(this, name);
|
|
2504
2531
|
if (title !== null) {
|
|
2505
2532
|
if (!title) {
|
|
2506
|
-
title =
|
|
2533
|
+
title = getI18nTypeGroupKey(this.model.i18nBaseKey, name);
|
|
2507
2534
|
}
|
|
2508
2535
|
fieldGroup.withTitle(title);
|
|
2509
2536
|
}
|
|
@@ -2769,30 +2796,10 @@ class EditorDescriptorInst {
|
|
|
2769
2796
|
this.addFieldDescriptor(field);
|
|
2770
2797
|
return field;
|
|
2771
2798
|
}
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
* @param property Model's property name.
|
|
2775
|
-
* @param mainTableDescriptor Main table descriptor for displaying items added to main model's property.
|
|
2776
|
-
* @param lookupTableDescriptor Lookup table descriptor for displaying items to be added to main model's property.
|
|
2777
|
-
*/
|
|
2778
|
-
addFieldManyToManyEditor(property, mainTableDescriptor, lookupTableDescriptor) {
|
|
2779
|
-
return this.addFieldManyToManyEditorUnsafe(property, mainTableDescriptor, lookupTableDescriptor);
|
|
2780
|
-
}
|
|
2781
|
-
/**
|
|
2782
|
-
* Adds tables for many-to-many (m:n) relations (UNSAFE).
|
|
2783
|
-
* @param property Model's property name.
|
|
2784
|
-
* @param mainTableDescriptor Main table descriptor for displaying items added to main model's property.
|
|
2785
|
-
* @param lookupTableDescriptor Lookup table descriptor for displaying items to be added to main model's property.
|
|
2786
|
-
*/
|
|
2787
|
-
addFieldManyToManyEditorUnsafe(property, mainTableDescriptor, lookupTableDescriptor) {
|
|
2788
|
-
const field = new FieldManyToManyEditorDescriptor(this, property, mainTableDescriptor, lookupTableDescriptor);
|
|
2789
|
-
this.addFieldDescriptor(field);
|
|
2790
|
-
return field;
|
|
2791
|
-
}
|
|
2792
|
-
addFieldManyToManyEditorWithProvider(property, mainTableDescriptor, lookupTableDescriptor, lookupDataProvider) {
|
|
2793
|
-
return this.addFieldManyToManyEditorWithProviderUnsafe(property, mainTableDescriptor, lookupTableDescriptor, lookupDataProvider);
|
|
2799
|
+
addFieldManyToManyEditor(property, mainTableDescriptor, lookupTableDescriptor, lookupDataProvider) {
|
|
2800
|
+
return this.addFieldManyToManyEditorUnsafe(property, mainTableDescriptor, lookupTableDescriptor, lookupDataProvider);
|
|
2794
2801
|
}
|
|
2795
|
-
|
|
2802
|
+
addFieldManyToManyEditorUnsafe(property, mainTableDescriptor, lookupTableDescriptor, lookupDataProvider) {
|
|
2796
2803
|
const cfg = fieldManyToManyGetProviderCfgObj(lookupDataProvider);
|
|
2797
2804
|
const field = new FieldManyToManyEditorDescriptor(this, property, mainTableDescriptor, lookupTableDescriptor, {
|
|
2798
2805
|
...cfg
|
|
@@ -2813,11 +2820,23 @@ class EditorDescriptorInst {
|
|
|
2813
2820
|
* @param name Name of the validation.
|
|
2814
2821
|
* @param validator Field validator function.
|
|
2815
2822
|
* @param message Field validation message.
|
|
2823
|
+
* @param opts Additional configuration for validation.
|
|
2824
|
+
*/
|
|
2825
|
+
withValidation(name, validator, message, opts) {
|
|
2826
|
+
return this.withValidationUnsafe(name, validator, message, opts);
|
|
2827
|
+
}
|
|
2828
|
+
/**
|
|
2829
|
+
* Adds group validator to editor.
|
|
2830
|
+
* @param name Name of the validation.
|
|
2831
|
+
* @param validator Field validator function.
|
|
2832
|
+
* @param message Field validation message.
|
|
2833
|
+
* @param opts Additional configuration for validation.
|
|
2816
2834
|
*/
|
|
2817
|
-
|
|
2835
|
+
withValidationUnsafe(name, validator, message, opts) {
|
|
2818
2836
|
if (this._currentGroup) {
|
|
2819
|
-
this._currentGroup.withValidation(name, validator, message);
|
|
2837
|
+
this._currentGroup.withValidation(name, validator, message, opts);
|
|
2820
2838
|
}
|
|
2839
|
+
return this;
|
|
2821
2840
|
}
|
|
2822
2841
|
/**
|
|
2823
2842
|
* Creates a copy of editor descriptor object.
|
|
@@ -2963,9 +2982,6 @@ class EditorDescriptorInst {
|
|
|
2963
2982
|
data: data
|
|
2964
2983
|
});
|
|
2965
2984
|
}
|
|
2966
|
-
completeEvents() {
|
|
2967
|
-
this._eventsSubject.complete();
|
|
2968
|
-
}
|
|
2969
2985
|
get events$() {
|
|
2970
2986
|
return this._eventsSubject.asObservable();
|
|
2971
2987
|
}
|
|
@@ -3089,10 +3105,10 @@ class AFormlyCustomFieldComponent extends FieldType {
|
|
|
3089
3105
|
get formState() {
|
|
3090
3106
|
return this._formState;
|
|
3091
3107
|
}
|
|
3092
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
3093
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.
|
|
3108
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: AFormlyCustomFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3109
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.4", type: AFormlyCustomFieldComponent, inputs: { field: "field", _model: ["model", "_model"], _form: ["form", "_form"], _options: ["options", "_options"], _key: ["key", "_key"], _formControl: ["formControl", "_formControl"], _props: ["props", "_props"], _showError: ["showError", "_showError"], _id: ["id", "_id"], _formState: ["formState", "_formState"] }, usesInheritance: true, ngImport: i0 }); }
|
|
3094
3110
|
}
|
|
3095
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
3111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: AFormlyCustomFieldComponent, decorators: [{
|
|
3096
3112
|
type: Directive
|
|
3097
3113
|
}], propDecorators: { field: [{
|
|
3098
3114
|
type: Input,
|
|
@@ -3334,10 +3350,13 @@ class TableviewDescriptorInst {
|
|
|
3334
3350
|
this._tableTitle = title;
|
|
3335
3351
|
return this;
|
|
3336
3352
|
}
|
|
3337
|
-
|
|
3338
|
-
this.
|
|
3339
|
-
|
|
3340
|
-
|
|
3353
|
+
withValidation(name, expression, message, opts) {
|
|
3354
|
+
return this.withValidationUnsafe(name, expression, message, opts);
|
|
3355
|
+
}
|
|
3356
|
+
withValidationUnsafe(name, expression, message, opts) {
|
|
3357
|
+
this._detailsEditor.withValidationUnsafe(name, expression, message, opts);
|
|
3358
|
+
this._addEditor.withValidationUnsafe(name, expression, message, opts);
|
|
3359
|
+
this._editEditor.withValidationUnsafe(name, expression, message, opts);
|
|
3341
3360
|
return this;
|
|
3342
3361
|
}
|
|
3343
3362
|
getColumn(property) {
|
|
@@ -3674,23 +3693,13 @@ class TableviewDescriptorInst {
|
|
|
3674
3693
|
this.addFieldToEditAndAdd(field);
|
|
3675
3694
|
return field;
|
|
3676
3695
|
}
|
|
3677
|
-
addFieldManyToManyEditor(property, mainTableDescriptor, lookupTableDescriptor) {
|
|
3678
|
-
const field = this._detailsEditor.addFieldManyToManyEditor(property, mainTableDescriptor, lookupTableDescriptor);
|
|
3679
|
-
this.addFieldToEditAndAdd(field);
|
|
3680
|
-
return field;
|
|
3681
|
-
}
|
|
3682
|
-
addFieldManyToManyEditorUnsafe(property, mainTableDescriptor, lookupTableDescriptor) {
|
|
3683
|
-
const field = this._detailsEditor.addFieldManyToManyEditorUnsafe(property, mainTableDescriptor, lookupTableDescriptor);
|
|
3684
|
-
this.addFieldToEditAndAdd(field);
|
|
3685
|
-
return field;
|
|
3686
|
-
}
|
|
3687
|
-
addFieldManyToManyEditorWithProvider(property, mainTableDescriptor, lookupTableDescriptor, lookupDataProvider) {
|
|
3688
|
-
const field = this._detailsEditor.addFieldManyToManyEditorWithProvider(property, mainTableDescriptor, lookupTableDescriptor, lookupDataProvider);
|
|
3696
|
+
addFieldManyToManyEditor(property, mainTableDescriptor, lookupTableDescriptor, lookupDataProvider) {
|
|
3697
|
+
const field = this._detailsEditor.addFieldManyToManyEditor(property, mainTableDescriptor, lookupTableDescriptor, lookupDataProvider);
|
|
3689
3698
|
this.addFieldToEditAndAdd(field);
|
|
3690
3699
|
return field;
|
|
3691
3700
|
}
|
|
3692
|
-
|
|
3693
|
-
const field = this._detailsEditor.
|
|
3701
|
+
addFieldManyToManyEditorUnsafe(property, mainTableDescriptor, lookupTableDescriptor, lookupDataProvider) {
|
|
3702
|
+
const field = this._detailsEditor.addFieldManyToManyEditorUnsafe(property, mainTableDescriptor, lookupTableDescriptor, lookupDataProvider);
|
|
3694
3703
|
this.addFieldToEditAndAdd(field);
|
|
3695
3704
|
return field;
|
|
3696
3705
|
}
|
|
@@ -3792,7 +3801,7 @@ class TableviewDescriptorInst {
|
|
|
3792
3801
|
const attributeDef = getTableviewClassAttributeDef(this.model.type).find(attr => attr.name === property);
|
|
3793
3802
|
if (attributeDef != null) {
|
|
3794
3803
|
type ??= attributeDef.classType ?? TypeRegistry.get().findType(attributeDef.type);
|
|
3795
|
-
titleProperty ??= type ?
|
|
3804
|
+
titleProperty ??= type ? findClassTitleAttribute(type) ?? undefined : undefined;
|
|
3796
3805
|
optionsLabelProperty ??= titleProperty;
|
|
3797
3806
|
attributeDef.columnType = ColumnTypeEnum.String;
|
|
3798
3807
|
attributeDef.fieldType = FieldInputTypeEnum.Text;
|
|
@@ -3874,7 +3883,7 @@ class TableviewDynamicDescriptorInt extends TableviewDescriptorInst {
|
|
|
3874
3883
|
constructor(model) {
|
|
3875
3884
|
super(model);
|
|
3876
3885
|
this._table = TableDynamicDescriptor.fromModel(this.model);
|
|
3877
|
-
|
|
3886
|
+
this._tableTitle = undefined;
|
|
3878
3887
|
}
|
|
3879
3888
|
get table() {
|
|
3880
3889
|
return this._table;
|
|
@@ -4122,7 +4131,7 @@ function tableviewExportJsonAction(descriptor, injector) {
|
|
|
4122
4131
|
const dataProviderExecutor = getInjector(injector)?.get(DataProviderExecutor);
|
|
4123
4132
|
return ActionDescriptor.fromModel(descriptor.model, 'exportJson')
|
|
4124
4133
|
.withRunFunction(ctx => {
|
|
4125
|
-
const params = ctx.parameters.dataListParams ?
|
|
4134
|
+
const params = ctx.parameters.dataListParams ? copyDataListParams(ctx.parameters.dataListParams) : {};
|
|
4126
4135
|
params.offset = 0;
|
|
4127
4136
|
params.limit = 500;
|
|
4128
4137
|
ctx.parameters.dataListParams = params;
|
|
@@ -4142,7 +4151,7 @@ function tableviewExportCsvAction(descriptor, injector) {
|
|
|
4142
4151
|
const dataProviderExecutor = getInjector(injector)?.get(DataProviderExecutor);
|
|
4143
4152
|
return ActionDescriptor.fromModel(descriptor.model, 'exportCsv')
|
|
4144
4153
|
.withRunFunction(ctx => {
|
|
4145
|
-
const params = ctx.parameters.dataListParams ?
|
|
4154
|
+
const params = ctx.parameters.dataListParams ? copyDataListParams(ctx.parameters.dataListParams) : {};
|
|
4146
4155
|
params.offset = 0;
|
|
4147
4156
|
params.limit = 500;
|
|
4148
4157
|
ctx.parameters.dataListParams = params;
|
|
@@ -4368,5 +4377,5 @@ function tableviewWithSortAndFilter(model, service, sorts, filters, buildFn) {
|
|
|
4368
4377
|
* Generated bundle index. Do not edit.
|
|
4369
4378
|
*/
|
|
4370
4379
|
|
|
4371
|
-
export { AFieldDescriptor, AFieldGroupDescriptor, AFormlyCustomFieldComponent, AGenericFieldDescriptor, ActionActivationTriggerEnum, ActionConfirmationDescriptor, ActionDeleteDescriptor, ActionDeleteDescriptorInst, ActionDescriptor, ActionDescriptorInst, ActionEditorAddDescriptor, ActionEditorAddDescriptorInst, ActionEditorDescriptor, ActionEditorDescriptorInst, ActionEditorDetailsDescriptor, ActionEditorDetailsDescriptorInst, ActionEditorEditDescriptor, ActionEditorEditDescriptorInst, ActionEditorSubmitDescriptor, ActionEditorSubmitDescriptorInst, ActionEditorSubmitTypeEnum, ActionInstanceStateEnum, ActionLinkDescriptor, ActionLinkDescriptorInst, ActionPositionEnum, ActionTypeEnum, CommonsActionError, DATA_LANGUAGE_DROPDOWN_COMPONENT_IT, DataProviderExecutor, DynamicTableviewDataProvider, DynamicTableviewDataProviderInst, EDITOR_DEFAULT_GROUP_NAME, EditorDataProvider, EditorDataProviderInst, EditorDescriptor, EditorDescriptorInst, FieldActionDescriptor, FieldGroupDescriptor, FieldGroupTypeEnum, FieldInputDescriptor, FieldInputTypeEnum, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldLookupTypeEnum, FieldManyEditorActionEnum, FieldManyEditorDescriptor, FieldManyEditorTypeEnum, FieldManyToManyEditorActionEnum, FieldManyToManyEditorDescriptor, FieldManyToManyEditorTypeEnum, FieldSizeEnum, FieldTabGroupDescriptor, FieldValidationDescriptor, FormEventTypeEnum, FormFieldEventComponentSubtype, FormFieldEventDialogSubtype, FormFieldEventTypeEnum, TableviewActionDefaultCategories, TableviewDataProvider, TableviewDataProviderInst, TableviewDefaultActionsEnum, TableviewDescriptor, TableviewDescriptorInst, TableviewDynamicDescriptor, TableviewDynamicDescriptorInt, TableviewEditorTypeEnum, TableviewInputBuilder, actionEditorGetProviderCfgObj, actionGetProviderCfgObj, convertDataToStringWithDelimiter, createTableviewAction, createTableviewActions, expandClassAttributeDefWithEditorDef, expandClassAttributeDefWithTableviewDef, fieldLookupGetProviderCfgObj, fieldManyToManyGetProviderCfgObj, getDataProviderService, getEditorClassAttributeDef, getFieldInputTypeFromClassAttributeDefType, getFieldInputTypeFromColumnType, getTableviewClassAttributeDef, getTableviewDefaultActions, maxDateValidator, minDateValidator, runCreateFromDataProvider, runDeleteFromDataProvider, runFetchFromDataProvider, runFnFromDataProviderOrFail, runFnFromDataProviderOrFallback, runGetAllFromDataProvider, runUpdateFromDataProvider, saveFileAs, tableview, tableviewAddAction, tableviewAddActionWithProvider, tableviewDeleteAction, tableviewDeleteActionWithProvider, tableviewDeleteOnDetailsAction, tableviewDetailsAction, tableviewDetailsActionWithProvider, tableviewEditAction, tableviewEditActionWithProvider, tableviewEditOnDetailsAction, tableviewExportAction, tableviewExportCsvAction, tableviewExportJsonAction, tableviewLocalizationLanguageSelectAction, tableviewRefreshAction, tableviewWithSortAndFilter };
|
|
4380
|
+
export { AFieldDescriptor, AFieldGroupDescriptor, AFormlyCustomFieldComponent, AGenericFieldDescriptor, ActionActivationTriggerEnum, ActionConfirmationDescriptor, ActionDeleteDescriptor, ActionDeleteDescriptorInst, ActionDescriptor, ActionDescriptorInst, ActionEditorAddDescriptor, ActionEditorAddDescriptorInst, ActionEditorDescriptor, ActionEditorDescriptorInst, ActionEditorDetailsDescriptor, ActionEditorDetailsDescriptorInst, ActionEditorEditDescriptor, ActionEditorEditDescriptorInst, ActionEditorSubmitDescriptor, ActionEditorSubmitDescriptorInst, ActionEditorSubmitTypeEnum, ActionInstanceStateEnum, ActionLinkDescriptor, ActionLinkDescriptorInst, ActionPositionEnum, ActionTypeEnum, CommonsActionError, DATA_LANGUAGE_DROPDOWN_COMPONENT_IT, DataProviderExecutor, DynamicTableviewDataProvider, DynamicTableviewDataProviderInst, EDITOR_DEFAULT_GROUP_NAME, EditorDataProvider, EditorDataProviderInst, EditorDescriptor, EditorDescriptorInst, FieldActionDescriptor, FieldGroupDescriptor, FieldGroupTypeEnum, FieldInputDescriptor, FieldInputTypeEnum, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldLookupTypeEnum, FieldManyEditorActionEnum, FieldManyEditorDescriptor, FieldManyEditorTypeEnum, FieldManyToManyEditorActionEnum, FieldManyToManyEditorDescriptor, FieldManyToManyEditorTypeEnum, FieldSizeEnum, FieldTabGroupDescriptor, FieldValidationDescriptor, FormEventTypeEnum, FormFieldEventComponentSubtype, FormFieldEventDialogSubtype, FormFieldEventTypeEnum, TableviewActionDefaultCategories, TableviewDataProvider, TableviewDataProviderInst, TableviewDefaultActionsEnum, TableviewDescriptor, TableviewDescriptorInst, TableviewDynamicDescriptor, TableviewDynamicDescriptorInt, TableviewEditorTypeEnum, TableviewInputBuilder, actionEditorGetProviderCfgObj, actionGetProviderCfgObj, convertDataToStringWithDelimiter, createTableviewAction, createTableviewActions, emailValidationName, emailValidator, expandClassAttributeDefWithEditorDef, expandClassAttributeDefWithTableviewDef, fieldLookupGetProviderCfgObj, fieldManyToManyGetProviderCfgObj, getDataProviderService, getEditorClassAttributeDef, getFieldInputTypeFromClassAttributeDefType, getFieldInputTypeFromColumnType, getTableviewClassAttributeDef, getTableviewDefaultActions, maxDateValidationName, maxDateValidator, minDateValidationName, minDateValidator, runCreateFromDataProvider, runDeleteFromDataProvider, runFetchFromDataProvider, runFnFromDataProviderOrFail, runFnFromDataProviderOrFallback, runGetAllFromDataProvider, runUpdateFromDataProvider, saveFileAs, tableview, tableviewAddAction, tableviewAddActionWithProvider, tableviewDeleteAction, tableviewDeleteActionWithProvider, tableviewDeleteOnDetailsAction, tableviewDetailsAction, tableviewDetailsActionWithProvider, tableviewEditAction, tableviewEditActionWithProvider, tableviewEditOnDetailsAction, tableviewExportAction, tableviewExportCsvAction, tableviewExportJsonAction, tableviewLocalizationLanguageSelectAction, tableviewRefreshAction, tableviewWithSortAndFilter };
|
|
4372
4381
|
//# sourceMappingURL=mediusinc-mng-commons-tableview-api.mjs.map
|