@mediusinc/mng-commons 3.6.0 → 4.0.0-rc.1
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/README.md +6 -5
- package/esm2022/index.mjs +6 -3
- package/esm2022/lib/api/models/filter-param.model.mjs +1 -1
- package/esm2022/lib/api/models/index.mjs +1 -3
- package/esm2022/lib/api/models/query-param.model.mjs +1 -1
- package/esm2022/lib/api/models/query-result.model.mjs +12 -1
- package/esm2022/lib/api/services/api.abstract.service.mjs +2 -2
- package/esm2022/lib/api/services/get-all-api.abstract.service.mjs +1 -1
- package/esm2022/lib/api/utils/index.mjs +2 -2
- package/esm2022/lib/api/utils/object-serializer.util.mjs +53 -137
- package/esm2022/lib/components/action/action.component.mjs +17 -16
- package/esm2022/lib/components/action/editor/action-editor.component.mjs +12 -12
- package/esm2022/lib/components/action/localization/data-language-dropdown.component.mjs +7 -7
- package/esm2022/lib/components/action/models/action-component.model.mjs +1 -1
- package/esm2022/lib/components/action/models/action-confirmation-service.model.mjs +1 -1
- package/esm2022/lib/components/action/models/action-execution.model.mjs +5 -5
- package/esm2022/lib/components/action/route/action-route.component.mjs +6 -6
- package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +74 -65
- package/esm2022/lib/components/form/date-range/date-range.component.mjs +6 -7
- package/esm2022/lib/components/form/dropdown/dropdown.component.mjs +39 -39
- package/esm2022/lib/components/form/editor/form-editor.component.mjs +14 -16
- package/esm2022/lib/components/form/formly/fields/formly-field-action/formly-field-action.component.mjs +6 -6
- package/esm2022/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +5 -5
- package/esm2022/lib/components/form/formly/fields/formly-field-custom/formly-custom-field-base.model.mjs +3 -3
- package/esm2022/lib/components/form/formly/fields/formly-field-custom/formly-field-custom.component.mjs +3 -3
- package/esm2022/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +5 -5
- package/esm2022/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +5 -6
- package/esm2022/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +10 -13
- package/esm2022/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.mjs +3 -3
- package/esm2022/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +13 -13
- package/esm2022/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +26 -15
- package/esm2022/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +14 -14
- package/esm2022/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +5 -6
- package/esm2022/lib/components/form/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.mjs +5 -6
- package/esm2022/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +39 -18
- package/esm2022/lib/components/layout/breadcrumb.component.mjs +4 -4
- package/esm2022/lib/components/layout/footer.component.mjs +4 -4
- package/esm2022/lib/components/layout/main-layout.component.mjs +8 -8
- package/esm2022/lib/components/layout/menu-item.component.mjs +8 -8
- package/esm2022/lib/components/layout/menu.component.mjs +7 -7
- package/esm2022/lib/components/layout/services/main-layout.component.service.mjs +4 -4
- package/esm2022/lib/components/layout/topbar-user.component.mjs +9 -9
- package/esm2022/lib/components/layout/topbar.component.mjs +8 -8
- package/esm2022/lib/components/layout/version.component.mjs +11 -11
- package/esm2022/lib/components/layoutV2/breadcrumb.component.mjs +6 -6
- package/esm2022/lib/components/layoutV2/footer.component.mjs +3 -3
- package/esm2022/lib/components/layoutV2/main-layout.component.mjs +14 -11
- package/esm2022/lib/components/layoutV2/menu-item.component.mjs +12 -9
- package/esm2022/lib/components/layoutV2/menu.component.mjs +5 -6
- package/esm2022/lib/components/layoutV2/model/layout-state.model.mjs +1 -1
- package/esm2022/lib/components/layoutV2/services/main-layout.component.service.mjs +30 -21
- package/esm2022/lib/components/layoutV2/services/menu.service.mjs +3 -3
- package/esm2022/lib/components/layoutV2/sidebar.component.mjs +18 -9
- package/esm2022/lib/components/layoutV2/topbar-user.component.mjs +6 -6
- package/esm2022/lib/components/layoutV2/topbar.component.mjs +6 -7
- package/esm2022/lib/components/layoutV2/version.component.mjs +11 -11
- package/esm2022/lib/components/pages/error/error.page.component.mjs +4 -4
- package/esm2022/lib/components/pages/not-found/not-found.page.component.mjs +4 -4
- package/esm2022/lib/components/tableview/index.mjs +1 -2
- package/esm2022/lib/components/tableview/models/table.event.mjs +1 -1
- package/esm2022/lib/components/tableview/route/tableview-route.abstract.component.mjs +18 -18
- package/esm2022/lib/components/tableview/route/tableview-route.component.mjs +5 -5
- package/esm2022/lib/components/tableview/table/column-filter-full/column-filter-full.component.mjs +8 -12
- package/esm2022/lib/components/tableview/table/column-value/column-value.component.mjs +9 -32
- package/esm2022/lib/components/tableview/table/table.component.mjs +20 -25
- package/esm2022/lib/components/tableview/tableview.component.mjs +8 -10
- package/esm2022/lib/data-providers/base.data-provider.mjs +43 -12
- package/esm2022/lib/data-providers/editor.data-provider.mjs +82 -14
- package/esm2022/lib/data-providers/lookup.data-provider.mjs +38 -9
- package/esm2022/lib/data-providers/table.data-provider.mjs +41 -14
- package/esm2022/lib/data-providers/tableview-crud.data-provider.mjs +14 -6
- package/esm2022/lib/data-providers/tableview.data-provider.mjs +89 -29
- package/esm2022/lib/descriptors/action/action-confirmation.descriptor.mjs +2 -2
- package/esm2022/lib/descriptors/action/action-editor.descriptor.mjs +262 -0
- package/esm2022/lib/descriptors/action/action-link.descriptor.mjs +90 -0
- package/esm2022/lib/descriptors/action/action.descriptor.mjs +91 -352
- package/esm2022/lib/descriptors/action/index.mjs +3 -1
- package/esm2022/lib/descriptors/editor/editor.descriptor.mjs +215 -102
- package/esm2022/lib/descriptors/editor/field-action.descriptor.mjs +50 -0
- package/esm2022/lib/descriptors/editor/field-base.descriptor.mjs +293 -0
- package/esm2022/lib/descriptors/editor/field-group.descriptor.mjs +97 -0
- package/esm2022/lib/descriptors/editor/field-lookup.descriptor.mjs +211 -0
- package/esm2022/lib/descriptors/editor/field-many.descriptor.mjs +153 -0
- package/esm2022/lib/descriptors/editor/field.descriptor.mjs +81 -852
- package/esm2022/lib/descriptors/editor/index.mjs +6 -1
- package/esm2022/lib/descriptors/editor/internal/editor-fields.model.mjs +2 -0
- package/esm2022/lib/descriptors/editor/internal/editor.model.mjs +2 -0
- package/esm2022/lib/descriptors/filter/filter-lookup.descriptor.mjs +210 -0
- package/esm2022/lib/descriptors/filter/filter.descriptor.mjs +2 -208
- package/esm2022/lib/descriptors/filter/index.mjs +2 -1
- package/esm2022/lib/descriptors/interfaces/lookup-descriptor.interface.mjs +1 -1
- package/esm2022/lib/descriptors/model/index.mjs +2 -0
- package/esm2022/lib/descriptors/model/model.descriptor.mjs +70 -0
- package/esm2022/lib/descriptors/table/column.descriptor.mjs +38 -49
- package/esm2022/lib/descriptors/table/internal/table-columns.model.mjs +2 -0
- package/esm2022/lib/descriptors/table/internal/table.model.mjs +2 -0
- package/esm2022/lib/descriptors/table/table.descriptor.mjs +143 -124
- package/esm2022/lib/descriptors/tableview/internal/tableview.model.mjs +2 -0
- package/esm2022/lib/descriptors/tableview/tableview.descriptor.mjs +240 -131
- package/esm2022/lib/directives/component.directive.mjs +11 -11
- package/esm2022/lib/directives/dialog-keydown-handler.directive.mjs +3 -3
- package/esm2022/lib/directives/template.directive.mjs +9 -9
- package/esm2022/lib/helpers/coercion.mjs +45 -0
- package/esm2022/lib/models/class.model.mjs +2 -0
- package/esm2022/lib/models/enum.model.mjs +1 -1
- package/esm2022/lib/models/index.mjs +4 -1
- package/esm2022/lib/models/radio.model.mjs +2 -0
- package/esm2022/lib/models/tableview-attr.model.mjs +1 -1
- package/esm2022/lib/models/type-registry.model.mjs +2 -0
- package/esm2022/lib/models/view-container.model.mjs +1 -1
- package/esm2022/lib/pipes/boolean.pipe.mjs +3 -3
- package/esm2022/lib/pipes/class-map.pipe.mjs +3 -3
- package/esm2022/lib/pipes/enum.pipe.mjs +6 -6
- package/esm2022/lib/pipes/enumerate-async.pipe.mjs +5 -5
- package/esm2022/lib/pipes/enumerate.pipe.mjs +5 -5
- package/esm2022/lib/pipes/getter.pipe.mjs +5 -5
- package/esm2022/lib/pipes/i18n-property.pipe.mjs +4 -4
- package/esm2022/lib/pipes/json-path.pipe.mjs +3 -3
- package/esm2022/lib/pipes/locale-default-row-class.pipe.mjs +5 -5
- package/esm2022/lib/pipes/parametrize.pipe.mjs +3 -3
- package/esm2022/lib/pipes/template.pipe.mjs +4 -4
- package/esm2022/lib/provide-commons.mjs +4 -4
- package/esm2022/lib/registry/type.registry.mjs +114 -0
- package/esm2022/lib/router/models/router.model.mjs +1 -1
- package/esm2022/lib/router/tableview-route-builder.mjs +5 -5
- package/esm2022/lib/security/authorization.service.mjs +9 -11
- package/esm2022/lib/services/action-executor.service.mjs +14 -12
- package/esm2022/lib/services/commons-init.service.mjs +3 -3
- package/esm2022/lib/services/commons.service.mjs +6 -5
- package/esm2022/lib/services/mng-localstorage-config.service.mjs +4 -4
- package/esm2022/lib/services/navigation.service.mjs +5 -5
- package/esm2022/lib/services/router.service.mjs +4 -4
- package/esm2022/lib/services/version.service.mjs +5 -5
- package/esm2022/lib/services/view-container.component.service.mjs +5 -5
- package/esm2022/lib/styles/styles.util.mjs +1 -1
- package/esm2022/lib/types/action-descriptor.types.mjs +2 -0
- package/esm2022/lib/types/data-provider.types.mjs +2 -0
- package/esm2022/lib/types/getter.type.mjs +2 -0
- package/esm2022/lib/types/index.mjs +5 -2
- package/esm2022/lib/types/localstorage-config-value.type.mjs +2 -0
- package/esm2022/lib/types/type.decorator.mjs +4 -14
- package/esm2022/lib/types/type.model.mjs +1 -1
- package/esm2022/lib/utils/action-data-provider.util.mjs +14 -8
- package/esm2022/lib/utils/decorator-metadata.util.mjs +61 -0
- package/esm2022/lib/utils/editor-formly.util.mjs +6 -5
- package/esm2022/lib/utils/enum.util.mjs +1 -1
- package/esm2022/lib/utils/export.util.mjs +5 -4
- package/esm2022/lib/utils/i18n.util.mjs +22 -22
- package/esm2022/lib/utils/index.mjs +2 -3
- package/esm2022/lib/utils/model.util.mjs +40 -36
- package/esm2022/lib/utils/notification.util.mjs +1 -1
- package/esm2022/lib/utils/tableview.util.mjs +17 -17
- package/fesm2022/mediusinc-mng-commons.mjs +11491 -11384
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/index.d.ts +3 -2
- package/lib/api/models/filter-param.model.d.ts +3 -3
- package/lib/api/models/index.d.ts +0 -2
- package/lib/api/models/query-param.model.d.ts +3 -3
- package/lib/api/models/query-result.model.d.ts +3 -3
- package/lib/api/services/api.abstract.service.d.ts +1 -1
- package/lib/api/utils/index.d.ts +1 -1
- package/lib/api/utils/object-serializer.util.d.ts +3 -19
- package/lib/components/action/action.component.d.ts +5 -5
- package/lib/components/action/editor/action-editor.component.d.ts +7 -7
- package/lib/components/action/localization/data-language-dropdown.component.d.ts +6 -6
- package/lib/components/action/models/action-component.model.d.ts +4 -4
- package/lib/components/action/models/action-confirmation-service.model.d.ts +2 -2
- package/lib/components/action/models/action-execution.model.d.ts +14 -14
- package/lib/components/action/route/action-route.component.d.ts +2 -2
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +15 -18
- package/lib/components/form/dropdown/dropdown.component.d.ts +9 -9
- package/lib/components/form/editor/form-editor.component.d.ts +8 -11
- package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +4 -0
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +4 -4
- package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +3 -2
- package/lib/components/layout/topbar-user.component.d.ts +2 -2
- package/lib/components/layout/version.component.d.ts +2 -2
- package/lib/components/layoutV2/model/layout-state.model.d.ts +8 -9
- package/lib/components/layoutV2/services/main-layout.component.service.d.ts +1 -1
- package/lib/components/layoutV2/version.component.d.ts +2 -2
- package/lib/components/tableview/index.d.ts +0 -1
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +20 -20
- package/lib/components/tableview/route/tableview-route.component.d.ts +7 -7
- package/lib/components/tableview/table/table.component.d.ts +9 -9
- package/lib/components/tableview/tableview.component.d.ts +8 -8
- package/lib/data-providers/base.data-provider.d.ts +30 -12
- package/lib/data-providers/editor.data-provider.d.ts +86 -23
- package/lib/data-providers/lookup.data-provider.d.ts +24 -11
- package/lib/data-providers/table.data-provider.d.ts +30 -17
- package/lib/data-providers/tableview-crud.data-provider.d.ts +8 -4
- package/lib/data-providers/tableview.data-provider.d.ts +41 -29
- package/lib/descriptors/action/action-confirmation.descriptor.d.ts +3 -3
- package/lib/descriptors/action/action-editor.descriptor.d.ts +115 -0
- package/lib/descriptors/action/action-link.descriptor.d.ts +34 -0
- package/lib/descriptors/action/action.descriptor.d.ts +74 -160
- package/lib/descriptors/action/index.d.ts +2 -0
- package/lib/descriptors/editor/editor.descriptor.d.ts +131 -79
- package/lib/descriptors/editor/field-action.descriptor.d.ts +23 -0
- package/lib/descriptors/editor/field-base.descriptor.d.ts +126 -0
- package/lib/descriptors/editor/field-group.descriptor.d.ts +42 -0
- package/lib/descriptors/editor/field-lookup.descriptor.d.ts +80 -0
- package/lib/descriptors/editor/field-many.descriptor.d.ts +63 -0
- package/lib/descriptors/editor/field.descriptor.d.ts +100 -326
- package/lib/descriptors/editor/index.d.ts +5 -0
- package/lib/descriptors/editor/internal/editor-fields.model.d.ts +32 -0
- package/lib/descriptors/editor/internal/editor.model.d.ts +15 -0
- package/lib/descriptors/filter/filter-lookup.descriptor.d.ts +69 -0
- package/lib/descriptors/filter/filter.descriptor.d.ts +9 -67
- package/lib/descriptors/filter/index.d.ts +1 -0
- package/lib/descriptors/interfaces/lookup-descriptor.interface.d.ts +11 -16
- package/lib/descriptors/model/model.descriptor.d.ts +22 -0
- package/lib/descriptors/table/column.descriptor.d.ts +45 -33
- package/lib/descriptors/table/internal/table-columns.model.d.ts +11 -0
- package/lib/descriptors/table/internal/table.model.d.ts +9 -0
- package/lib/descriptors/table/table.descriptor.d.ts +82 -71
- package/lib/descriptors/tableview/internal/tableview.model.d.ts +11 -0
- package/lib/descriptors/tableview/tableview.descriptor.d.ts +106 -74
- package/lib/directives/component.directive.d.ts +5 -6
- package/lib/directives/template.directive.d.ts +2 -3
- package/lib/helpers/coercion.d.ts +9 -0
- package/lib/models/class.model.d.ts +6 -0
- package/lib/models/enum.model.d.ts +3 -2
- package/lib/models/index.d.ts +3 -0
- package/lib/models/radio.model.d.ts +6 -0
- package/lib/models/tableview-attr.model.d.ts +2 -2
- package/lib/models/type-registry.model.d.ts +7 -0
- package/lib/models/view-container.model.d.ts +6 -6
- package/lib/pipes/getter.pipe.d.ts +2 -1
- package/lib/pipes/i18n-property.pipe.d.ts +1 -1
- package/lib/pipes/locale-default-row-class.pipe.d.ts +2 -2
- package/lib/registry/type.registry.d.ts +25 -0
- package/lib/router/models/router.model.d.ts +5 -5
- package/lib/router/tableview-route-builder.d.ts +6 -6
- package/lib/security/authorization.service.d.ts +4 -7
- package/lib/services/action-executor.service.d.ts +7 -7
- package/lib/services/mng-localstorage-config.service.d.ts +3 -3
- package/lib/services/view-container.component.service.d.ts +3 -3
- package/lib/styles/styles.util.d.ts +5 -5
- package/lib/types/action-descriptor.types.d.ts +4 -0
- package/lib/types/data-provider.types.d.ts +3 -0
- package/lib/types/getter.type.d.ts +2 -0
- package/lib/types/index.d.ts +4 -1
- package/lib/types/localstorage-config-value.type.d.ts +1 -0
- package/lib/types/type.decorator.d.ts +0 -2
- package/lib/types/type.model.d.ts +12 -2
- package/lib/utils/action-data-provider.util.d.ts +6 -5
- package/lib/utils/{type.util.d.ts → decorator-metadata.util.d.ts} +2 -26
- package/lib/utils/editor-formly.util.d.ts +2 -2
- package/lib/utils/enum.util.d.ts +2 -2
- package/lib/utils/export.util.d.ts +2 -2
- package/lib/utils/i18n.util.d.ts +10 -11
- package/lib/utils/index.d.ts +1 -2
- package/lib/utils/model.util.d.ts +5 -3
- package/lib/utils/notification.util.d.ts +4 -4
- package/lib/utils/tableview.util.d.ts +6 -6
- package/openapi/templates/model.mustache +15 -2
- package/openapi/templates/models.mustache +0 -44
- package/package.json +10 -10
- package/scss/mng-commons-dark-v2.scss +2 -2
- package/scss/mng-commons-light-v2.scss +1 -1
- package/scss/v2/theme/{theme-base/components/data → extensions}/_fullcalendar.scss +14 -15
- package/scss/v2/theme/theme-base/_colors.scss +11 -12
- package/scss/v2/theme/theme-base/_common.scss +8 -5
- package/scss/v2/theme/theme-base/_components.scss +93 -89
- package/scss/v2/theme/theme-base/_mixins.scss +205 -71
- package/scss/v2/theme/theme-base/components/button/_button.scss +80 -68
- package/scss/v2/theme/theme-base/components/button/_speeddial.scss +11 -1
- package/scss/v2/theme/theme-base/components/button/_splitbutton.scss +128 -161
- package/scss/v2/theme/theme-base/components/data/_carousel.scss +1 -1
- package/scss/v2/theme/theme-base/components/data/_datatable.scss +3 -3
- package/scss/v2/theme/theme-base/components/data/_dataview.scss +0 -9
- package/scss/v2/theme/theme-base/components/data/_filter.scss +5 -6
- package/scss/v2/theme/theme-base/components/data/_orderlist.scss +15 -4
- package/scss/v2/theme/theme-base/components/data/_organizationchart.scss +1 -1
- package/scss/v2/theme/theme-base/components/data/_picklist.scss +14 -3
- package/scss/v2/theme/theme-base/components/data/_timeline.scss +3 -6
- package/scss/v2/theme/theme-base/components/data/_tree.scss +7 -6
- package/scss/v2/theme/theme-base/components/data/_treetable.scss +3 -4
- package/scss/v2/theme/theme-base/components/file/_fileupload.scss +6 -0
- package/scss/v2/theme/theme-base/components/input/_autocomplete.scss +43 -24
- package/scss/v2/theme/theme-base/components/input/_calendar.scss +9 -5
- package/scss/v2/theme/theme-base/components/input/_cascadeselect.scss +25 -20
- package/scss/v2/theme/theme-base/components/input/_checkbox.scss +9 -5
- package/scss/v2/theme/theme-base/components/input/_chips.scss +24 -13
- package/scss/v2/theme/theme-base/components/input/_dropdown.scss +29 -13
- package/scss/v2/theme/theme-base/components/input/_editor.scss +7 -7
- package/scss/v2/theme/theme-base/components/input/_inputgroup.scss +1 -2
- package/scss/v2/theme/theme-base/components/input/_inputmask.scss +2 -2
- package/scss/v2/theme/theme-base/components/input/_inputnumber.scss +7 -7
- package/scss/v2/theme/theme-base/components/input/_inputswitch.scss +3 -3
- package/scss/v2/theme/theme-base/components/input/_inputtext.scss +4 -3
- package/scss/v2/theme/theme-base/components/input/_listbox.scss +23 -8
- package/scss/v2/theme/theme-base/components/input/_multiselect.scss +31 -27
- package/scss/v2/theme/theme-base/components/input/_radiobutton.scss +2 -2
- package/scss/v2/theme/theme-base/components/input/_rating.scss +33 -28
- package/scss/v2/theme/theme-base/components/input/_treeselect.scss +6 -6
- package/scss/v2/theme/theme-base/components/menu/_breadcrumb.scss +3 -3
- package/scss/v2/theme/theme-base/components/menu/_contextmenu.scss +8 -30
- package/scss/v2/theme/theme-base/components/menu/_dock.scss +11 -2
- package/scss/v2/theme/theme-base/components/menu/_megamenu.scss +14 -65
- package/scss/v2/theme/theme-base/components/menu/_menu.scss +5 -13
- package/scss/v2/theme/theme-base/components/menu/_menubar.scss +32 -80
- package/scss/v2/theme/theme-base/components/menu/_panelmenu.scss +52 -39
- package/scss/v2/theme/theme-base/components/menu/_slidemenu.scss +15 -20
- package/scss/v2/theme/theme-base/components/menu/_steps.scss +2 -2
- package/scss/v2/theme/theme-base/components/menu/_tabmenu.scss +1 -2
- package/scss/v2/theme/theme-base/components/menu/_tieredmenu.scss +10 -32
- package/scss/v2/theme/theme-base/components/messages/_message.scss +2 -2
- package/scss/v2/theme/theme-base/components/messages/_toast.scss +2 -3
- package/scss/v2/theme/theme-base/components/misc/_chip.scss +7 -3
- package/scss/v2/theme/theme-base/components/misc/_inplace.scss +0 -1
- package/scss/v2/theme/theme-base/components/misc/_terminal.scss +9 -8
- package/scss/v2/theme/theme-base/components/multimedia/_galleria.scss +6 -0
- package/scss/v2/theme/theme-base/components/overlay/_confirmpopup.scss +3 -5
- package/scss/v2/theme/theme-base/components/panel/_accordion.scss +4 -4
- package/scss/v2/theme/theme-base/components/panel/_fieldset.scss +1 -1
- package/scss/v2/theme/theme-base/components/panel/_panel.scss +10 -5
- package/scss/v2/theme/theme-base/components/panel/_tabview.scss +6 -2
- package/scss/v2/theme/theme-dark/_variables.scss +756 -765
- package/scss/v2/theme/theme-dark/blue/theme.scss +1 -0
- package/scss/v2/theme/theme-light/_variables.scss +81 -94
- package/scss/v2/theme/theme-light/blue/theme.scss +1 -0
- package/esm2022/lib/api/models/mappers.mjs +0 -13
- package/esm2022/lib/api/models/serialization.model.mjs +0 -2
- package/esm2022/lib/components/tableview/table/column-filter/column-filter.component.mjs +0 -121
- package/esm2022/lib/descriptors/index.mjs +0 -2
- package/esm2022/lib/descriptors/model.descriptor.mjs +0 -45
- package/esm2022/lib/mng-commons.module.mjs +0 -472
- package/esm2022/lib/types/mng-localstorage-config-value.type.mjs +0 -2
- package/esm2022/lib/utils/coercion.util.mjs +0 -6
- package/esm2022/lib/utils/type.util.mjs +0 -94
- package/lib/api/models/mappers.d.ts +0 -6
- package/lib/api/models/serialization.model.d.ts +0 -9
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +0 -37
- package/lib/descriptors/model.descriptor.d.ts +0 -18
- package/lib/mng-commons.module.d.ts +0 -105
- package/lib/types/mng-localstorage-config-value.type.d.ts +0 -1
- package/lib/utils/coercion.util.d.ts +0 -2
- package/openapi/templates/serializer-registration/model.mustache +0 -97
- package/openapi/templates/serializer-registration/models.mustache +0 -6
- /package/lib/descriptors/{index.d.ts → model/index.d.ts} +0 -0
package/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from './lib/mng-commons.module';
|
|
2
1
|
export * from './lib/provide-commons';
|
|
3
2
|
export * from './lib/api/services';
|
|
4
3
|
export * from './lib/components/layout/services';
|
|
@@ -16,6 +15,7 @@ export * from './lib/components/tableview';
|
|
|
16
15
|
export * from './lib/components/pages';
|
|
17
16
|
export * from './lib/directives';
|
|
18
17
|
export * from './lib/pipes';
|
|
18
|
+
export * from './lib/registry/type.registry';
|
|
19
19
|
export * from './lib/api/models';
|
|
20
20
|
export * from './lib/components/action/models';
|
|
21
21
|
export * from './lib/components/form/models';
|
|
@@ -23,7 +23,7 @@ export * from './lib/components/tableview/models';
|
|
|
23
23
|
export * from './lib/components/form/formly/models';
|
|
24
24
|
export * from './lib/components/form/formly';
|
|
25
25
|
export * from './lib/data-providers';
|
|
26
|
-
export * from './lib/descriptors';
|
|
26
|
+
export * from './lib/descriptors/model';
|
|
27
27
|
export * from './lib/descriptors/action';
|
|
28
28
|
export * from './lib/descriptors/editor';
|
|
29
29
|
export * from './lib/descriptors/filter';
|
|
@@ -37,6 +37,7 @@ export * from './lib/router/models';
|
|
|
37
37
|
export * from './lib/security';
|
|
38
38
|
export * from './lib/security/model';
|
|
39
39
|
export * from './lib/types';
|
|
40
|
+
export * from './lib/helpers/coercion';
|
|
40
41
|
export * from './lib/styles';
|
|
41
42
|
export * from './lib/styles/models';
|
|
42
43
|
export * from './lib/error';
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ClassAttributeDef } from '../../models';
|
|
12
13
|
import { MediusFilterMatchType } from './filter-match-type.model';
|
|
13
|
-
import { AttributeDef } from './serialization.model';
|
|
14
14
|
export declare class MediusFilterParam {
|
|
15
15
|
property?: string;
|
|
16
16
|
filterValue?: any;
|
|
@@ -18,6 +18,6 @@ export declare class MediusFilterParam {
|
|
|
18
18
|
filterMatchType?: MediusFilterMatchType;
|
|
19
19
|
filterMatchCaseSensitive?: boolean;
|
|
20
20
|
static discriminator?: string;
|
|
21
|
-
static attributeTypeMap: Array<
|
|
22
|
-
static getAttributeTypeMap():
|
|
21
|
+
static attributeTypeMap: Array<ClassAttributeDef>;
|
|
22
|
+
static getAttributeTypeMap(): ClassAttributeDef[];
|
|
23
23
|
}
|
|
@@ -3,6 +3,4 @@ export * from './filter-param.model';
|
|
|
3
3
|
export * from './query-mode.model';
|
|
4
4
|
export * from './query-param.model';
|
|
5
5
|
export * from './query-result.model';
|
|
6
|
-
export * from './serialization.model';
|
|
7
6
|
export * from './builders/query-param.builder';
|
|
8
|
-
export * from './mappers';
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ClassAttributeDef } from '../../models';
|
|
12
13
|
import { MediusFilterParam } from './filter-param.model';
|
|
13
14
|
import { MediusQueryMode } from './query-mode.model';
|
|
14
|
-
import { AttributeDef } from './serialization.model';
|
|
15
15
|
export declare class MediusQueryParam {
|
|
16
16
|
sortProperty?: Array<string>;
|
|
17
17
|
sortAsc?: Array<boolean>;
|
|
@@ -26,6 +26,6 @@ export declare class MediusQueryParam {
|
|
|
26
26
|
groupByProperties?: Array<string>;
|
|
27
27
|
queryMode?: MediusQueryMode;
|
|
28
28
|
static discriminator?: string;
|
|
29
|
-
static attributeTypeMap: Array<
|
|
30
|
-
static getAttributeTypeMap():
|
|
29
|
+
static attributeTypeMap: Array<ClassAttributeDef>;
|
|
30
|
+
static getAttributeTypeMap(): ClassAttributeDef[];
|
|
31
31
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ClassAttributeDef } from '../../models';
|
|
1
2
|
/**
|
|
2
3
|
* Generated API
|
|
3
4
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
@@ -9,14 +10,13 @@
|
|
|
9
10
|
* https://openapi-generator.tech
|
|
10
11
|
* Do not edit the class manually.
|
|
11
12
|
*/
|
|
12
|
-
import { AttributeDef } from './serialization.model';
|
|
13
13
|
export declare class MediusQueryResult<T> implements IMediusQueryResult<T> {
|
|
14
14
|
allDataCount?: number;
|
|
15
15
|
pageData?: Array<T>;
|
|
16
16
|
static discriminator?: string;
|
|
17
17
|
static fromArray<T>(pageData: T[], allDataCount?: number): MediusQueryResult<T>;
|
|
18
|
-
static attributeTypeMap: Array<
|
|
19
|
-
static getAttributeTypeMap():
|
|
18
|
+
static attributeTypeMap: Array<ClassAttributeDef>;
|
|
19
|
+
static getAttributeTypeMap(): ClassAttributeDef[];
|
|
20
20
|
}
|
|
21
21
|
export interface IMediusQueryResult<T> {
|
|
22
22
|
allDataCount?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { ClassType } from '../../types';
|
|
3
3
|
import { MediusQueryParam } from '../models';
|
|
4
|
-
import { ObjectSerializer } from '../utils';
|
|
4
|
+
import { ObjectSerializer } from '../utils/object-serializer.util';
|
|
5
5
|
export declare abstract class AMngBaseApiService {
|
|
6
6
|
protected readonly objectSerializer: ObjectSerializer;
|
|
7
7
|
protected readonly http: HttpClient;
|
package/lib/api/utils/index.d.ts
CHANGED
|
@@ -1,42 +1,26 @@
|
|
|
1
1
|
import { ClassType } from '../../types';
|
|
2
|
-
import { AttributeDef, SerializableTypeMap } from '../models';
|
|
3
2
|
export declare class ObjectSerializer {
|
|
4
3
|
private static _instance;
|
|
5
4
|
private readonly _logCategory;
|
|
6
5
|
private readonly _primitives;
|
|
7
|
-
private readonly _typeMap;
|
|
8
|
-
private readonly _enumMap;
|
|
9
6
|
private dateTimeInUtc;
|
|
10
7
|
private dateTimeWithTimezone;
|
|
11
8
|
private dateTimeWithMillis;
|
|
12
9
|
get primitives(): string[];
|
|
13
|
-
get typeMap(): SerializableTypeMap;
|
|
14
|
-
get enumMap(): SerializableTypeMap;
|
|
15
10
|
/**
|
|
16
11
|
* Only use one instance of object (out of Angular context)
|
|
17
12
|
*/
|
|
18
13
|
static get(): ObjectSerializer;
|
|
19
|
-
findAttributeDefinitionByClassType(type: ClassType<any>, attributeName: string): AttributeDef | null;
|
|
20
|
-
findAttributeDefinition(typeName: string, attributeName: string): AttributeDef | null;
|
|
21
|
-
findAttributesDefinitionByClassType(type: ClassType<any>): Array<AttributeDef> | null;
|
|
22
|
-
findAttributesDefinition(typeName: string): Array<AttributeDef> | null;
|
|
23
|
-
findByClassType(type: ClassType<any>): any;
|
|
24
|
-
findType(typeName: string): any;
|
|
25
|
-
findEnum(enumName: string): any;
|
|
26
14
|
configure(config: {
|
|
27
15
|
dateTimeInUtc?: boolean;
|
|
28
16
|
dateTimeWithTimezone?: boolean;
|
|
29
17
|
dateTimeWithMillis?: boolean;
|
|
30
18
|
}): void;
|
|
31
|
-
|
|
32
|
-
registerType(type: ClassType<any>, optTypeName?: string): void;
|
|
33
|
-
registerEnums(enums: SerializableTypeMap): void;
|
|
34
|
-
registerEnum(enumType: any, enumName: string): void;
|
|
35
|
-
findCorrectType(data: any, expectedType: string): any;
|
|
19
|
+
findCorrectType(data: any, expectedTypeName: string): string;
|
|
36
20
|
serializeClass<T>(data: T, type: ClassType<T>): any;
|
|
37
21
|
serializeClassArray<T>(data: Array<T>, type: ClassType<T>): any;
|
|
38
|
-
serialize(data: any,
|
|
22
|
+
serialize(data: any, typeName?: string, subtype?: string): any;
|
|
39
23
|
deserializeClass<T>(data: any, type: ClassType<T>): T;
|
|
40
24
|
deserializeClassArray<T>(data: any, type: ClassType<T>): Array<T>;
|
|
41
|
-
deserialize(data: any, type
|
|
25
|
+
deserialize(data: any, type?: string): any;
|
|
42
26
|
}
|
|
@@ -6,14 +6,14 @@ import { Menu } from 'primeng/menu';
|
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { MediusQueryParam } from '../../api/models';
|
|
8
8
|
import { IDataProvider } from '../../data-providers';
|
|
9
|
-
import {
|
|
9
|
+
import { ActionDescriptorInst, ActionLinkDescriptorInst } from '../../descriptors/action';
|
|
10
10
|
import { IViewContainer } from '../../models';
|
|
11
11
|
import { MngAuthorizationService } from '../../security';
|
|
12
12
|
import { MngActionExecutorService, MngViewContainerComponentService } from '../../services';
|
|
13
13
|
import { IdType } from '../../types';
|
|
14
14
|
import { ActionData, ActionInstance, ActionParameters, IActionComponent, IActionConfirmationService } from './models';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
|
-
export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDestroy, IActionConfirmationService {
|
|
16
|
+
export declare class MngActionComponent<T = any, S = any> implements OnInit, OnChanges, OnDestroy, IActionConfirmationService {
|
|
17
17
|
private routeService;
|
|
18
18
|
private translate;
|
|
19
19
|
private authorization;
|
|
@@ -22,7 +22,7 @@ export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDe
|
|
|
22
22
|
private viewContainerService;
|
|
23
23
|
hostClass: string;
|
|
24
24
|
isHostHidden: boolean;
|
|
25
|
-
action:
|
|
25
|
+
action: ActionDescriptorInst<T, S>;
|
|
26
26
|
item?: T;
|
|
27
27
|
itemId?: IdType;
|
|
28
28
|
actionData?: ActionData;
|
|
@@ -55,7 +55,7 @@ export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDe
|
|
|
55
55
|
private tooltipSubscription?;
|
|
56
56
|
$tooltip: Observable<string | null>;
|
|
57
57
|
viewContainer?: IViewContainer<T, S>;
|
|
58
|
-
actionLink?:
|
|
58
|
+
actionLink?: ActionLinkDescriptorInst<T>;
|
|
59
59
|
hasNoTitle: boolean;
|
|
60
60
|
private subscriptions;
|
|
61
61
|
route: ActivatedRoute;
|
|
@@ -69,7 +69,7 @@ export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDe
|
|
|
69
69
|
ngOnInit(): void;
|
|
70
70
|
ngOnChanges(changes: SimpleChanges): void;
|
|
71
71
|
ngOnDestroy(): void;
|
|
72
|
-
triggerAction(action:
|
|
72
|
+
triggerAction(action: ActionDescriptorInst<T, S>, parameters?: ActionParameters<T, S>, event?: Event): void;
|
|
73
73
|
getConfirmationService(): ConfirmationService;
|
|
74
74
|
getConfirmationServiceInstanceKey(): string;
|
|
75
75
|
onCustomActionCmpInst(instance: IActionComponent<T>): void;
|
|
@@ -5,7 +5,7 @@ import { ConfirmationService } from 'primeng/api';
|
|
|
5
5
|
import { DialogService, DynamicDialogConfig } from 'primeng/dynamicdialog';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { IEditorDataProvider } from '../../../data-providers';
|
|
8
|
-
import {
|
|
8
|
+
import { ActionDescriptorInst, ActionEditorDescriptorInst } from '../../../descriptors/action';
|
|
9
9
|
import { ActionActivationTriggerEnum, ActionEditorSubmitTypeEnum } from '../../../descriptors/types';
|
|
10
10
|
import { MngTemplateDirective } from '../../../directives';
|
|
11
11
|
import { IActionEditorComponent, IViewContainer } from '../../../models';
|
|
@@ -16,7 +16,7 @@ import { MngFormEditorSubmitEvent } from '../../form/models';
|
|
|
16
16
|
import { ActionData } from '../models';
|
|
17
17
|
import * as i0 from "@angular/core";
|
|
18
18
|
import * as i1 from "../../../directives/dialog-keydown-handler.directive";
|
|
19
|
-
export declare class MngActionEditorComponent<T, S> implements OnInit, OnChanges, OnDestroy, IActionEditorComponent {
|
|
19
|
+
export declare class MngActionEditorComponent<T = any, S = any> implements OnInit, OnChanges, OnDestroy, IActionEditorComponent {
|
|
20
20
|
private translate;
|
|
21
21
|
private actionExecutor;
|
|
22
22
|
private mngCommonsService;
|
|
@@ -30,7 +30,7 @@ export declare class MngActionEditorComponent<T, S> implements OnInit, OnChanges
|
|
|
30
30
|
readonly actionEditorSubmitTypeSubmit = ActionEditorSubmitTypeEnum.Submit;
|
|
31
31
|
readonly actionDefaultLoadingInput: Observable<boolean>;
|
|
32
32
|
private readonly logger;
|
|
33
|
-
action:
|
|
33
|
+
action: ActionEditorDescriptorInst<T, S>;
|
|
34
34
|
itemIdInit?: IdType;
|
|
35
35
|
itemInit?: T;
|
|
36
36
|
actionData?: ActionData;
|
|
@@ -52,10 +52,10 @@ export declare class MngActionEditorComponent<T, S> implements OnInit, OnChanges
|
|
|
52
52
|
private instanceSubmitFormItem?;
|
|
53
53
|
private instanceSubmitResult?;
|
|
54
54
|
private previousActionInstance?;
|
|
55
|
-
toolbarLeftActions:
|
|
56
|
-
toolbarRightActions:
|
|
57
|
-
footerLeftActions:
|
|
58
|
-
footerRightActions:
|
|
55
|
+
toolbarLeftActions: ActionDescriptorInst<T, S>[];
|
|
56
|
+
toolbarRightActions: ActionDescriptorInst<T, S>[];
|
|
57
|
+
footerLeftActions: ActionDescriptorInst<T, S>[];
|
|
58
|
+
footerRightActions: ActionDescriptorInst<T, S>[];
|
|
59
59
|
private loadingSubject;
|
|
60
60
|
loading$: Observable<boolean>;
|
|
61
61
|
private fetchExecutionSubscription?;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { LookupDataProviderInst } from '../../../data-providers';
|
|
3
|
+
import { ActionDescriptorInst } from '../../../descriptors/action';
|
|
4
4
|
import { IViewContainer } from '../../../models';
|
|
5
5
|
import { MngCommonsService } from '../../../services';
|
|
6
6
|
import { IdType } from '../../../types';
|
|
7
7
|
import { ActionData, ActionParameters, IActionComponent } from '../models';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class MngDataLanguageDropdownComponent<T> implements IActionComponent<T> {
|
|
9
|
+
export declare class MngDataLanguageDropdownComponent<T = any> implements IActionComponent<T> {
|
|
10
10
|
mngCommons: MngCommonsService;
|
|
11
|
-
action:
|
|
11
|
+
action: ActionDescriptorInst<T>;
|
|
12
12
|
actionData: ActionData;
|
|
13
13
|
item: T;
|
|
14
14
|
itemId: IdType;
|
|
15
15
|
enabled: boolean;
|
|
16
16
|
loading: boolean;
|
|
17
|
-
viewContainer: IViewContainer<T
|
|
17
|
+
viewContainer: IViewContainer<T>;
|
|
18
18
|
triggerActionEventEmitter: EventEmitter<ActionParameters<T>>;
|
|
19
19
|
private dropdown?;
|
|
20
|
-
selectionItemsDataProvider:
|
|
20
|
+
selectionItemsDataProvider: LookupDataProviderInst<string>;
|
|
21
21
|
constructor(mngCommons: MngCommonsService);
|
|
22
22
|
updateDataLanguage(dataLang: string): void;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngDataLanguageDropdownComponent<any>, never>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ActionDescriptorInst } from '../../../descriptors/action';
|
|
3
3
|
import { IViewContainer } from '../../../models';
|
|
4
4
|
import { IdType } from '../../../types';
|
|
5
5
|
import { ActionData, ActionParameters } from './action-execution.model';
|
|
6
|
-
export interface IActionComponent<T> {
|
|
7
|
-
action:
|
|
6
|
+
export interface IActionComponent<T = any, S = undefined> {
|
|
7
|
+
action: ActionDescriptorInst<T, S>;
|
|
8
8
|
item: T;
|
|
9
9
|
itemId: IdType;
|
|
10
10
|
actionData: ActionData;
|
|
11
11
|
enabled: boolean;
|
|
12
12
|
loading: boolean;
|
|
13
|
-
viewContainer: IViewContainer<T,
|
|
13
|
+
viewContainer: IViewContainer<T, S>;
|
|
14
14
|
triggerActionEventEmitter: EventEmitter<ActionParameters<T>>;
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfirmationService } from 'primeng/api';
|
|
2
|
-
import {
|
|
2
|
+
import { ActionDescriptorInst } from '../../../descriptors/action';
|
|
3
3
|
export interface IActionConfirmationService {
|
|
4
4
|
getConfirmationService(): ConfirmationService;
|
|
5
|
-
getConfirmationServiceInstanceKey(action:
|
|
5
|
+
getConfirmationServiceInstanceKey(action: ActionDescriptorInst<any>): string;
|
|
6
6
|
}
|
|
@@ -4,7 +4,7 @@ import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
|
4
4
|
import { BehaviorSubject, Observable, ReplaySubject, Subscription } from 'rxjs';
|
|
5
5
|
import { MediusQueryParam } from '../../../api/models';
|
|
6
6
|
import { IDataProvider } from '../../../data-providers';
|
|
7
|
-
import {
|
|
7
|
+
import { ActionDescriptorInst } from '../../../descriptors/action';
|
|
8
8
|
import { IActionEditorComponent, IMngError, IViewContainer } from '../../../models';
|
|
9
9
|
import { IdType } from '../../../types';
|
|
10
10
|
export declare class ActionError {
|
|
@@ -19,7 +19,7 @@ export declare class ActionError {
|
|
|
19
19
|
export declare class ActionInstance<T, S> {
|
|
20
20
|
readonly instanceId: string;
|
|
21
21
|
readonly instanceLongName: string;
|
|
22
|
-
readonly action:
|
|
22
|
+
readonly action: ActionDescriptorInst<T>;
|
|
23
23
|
readonly createdDate: Date;
|
|
24
24
|
private readonly logger;
|
|
25
25
|
readonly isRunLoadingSubject: BehaviorSubject<boolean>;
|
|
@@ -40,7 +40,7 @@ export declare class ActionInstance<T, S> {
|
|
|
40
40
|
previousInstance?: ActionInstance<T, S>;
|
|
41
41
|
nextActionInstance?: ActionInstance<unknown, unknown>;
|
|
42
42
|
errorActionInstance?: ActionInstance<T, S>;
|
|
43
|
-
constructor(action:
|
|
43
|
+
constructor(action: ActionDescriptorInst<T>, state?: ActionInstanceStateEnum);
|
|
44
44
|
get isRunLoading$(): Observable<boolean>;
|
|
45
45
|
get context(): ActionContext<T, S> | undefined;
|
|
46
46
|
get execution$(): Observable<T | null | undefined>;
|
|
@@ -66,12 +66,12 @@ export declare class ActionInstance<T, S> {
|
|
|
66
66
|
/**
|
|
67
67
|
* Class containing all main data for action to be executed in run/fetch/submit states.
|
|
68
68
|
*/
|
|
69
|
-
export declare class ActionContext<T, S> {
|
|
69
|
+
export declare class ActionContext<T, S = any | undefined> {
|
|
70
70
|
readonly instance: ActionInstance<T, S>;
|
|
71
|
-
readonly parameters: ActionParameters<T>;
|
|
71
|
+
readonly parameters: ActionParameters<T, S>;
|
|
72
72
|
readonly functionName: 'run' | 'fetch' | 'submit';
|
|
73
|
+
readonly serviceInstance: S;
|
|
73
74
|
readonly dataProvider?: IDataProvider<T, S> | undefined;
|
|
74
|
-
readonly serviceInstance?: S | undefined;
|
|
75
75
|
private readonly executionSubject;
|
|
76
76
|
private readonly executionIsRunningSubject;
|
|
77
77
|
private readonly logger;
|
|
@@ -80,7 +80,7 @@ export declare class ActionContext<T, S> {
|
|
|
80
80
|
confirmation?: Confirmation;
|
|
81
81
|
notification?: Message;
|
|
82
82
|
runSubscription?: Subscription;
|
|
83
|
-
constructor(instance: ActionInstance<T, S>, parameters: ActionParameters<T>, functionName: 'run' | 'fetch' | 'submit', dataProvider?: IDataProvider<T, S> | undefined,
|
|
83
|
+
constructor(instance: ActionInstance<T, S>, parameters: ActionParameters<T, S>, functionName: 'run' | 'fetch' | 'submit', serviceInstance: S, dataProvider?: IDataProvider<T, S> | undefined, executionSubject?: ReplaySubject<T | null | undefined>, executionIsRunningSubject?: BehaviorSubject<boolean>);
|
|
84
84
|
get execution$(): Observable<T | null | undefined>;
|
|
85
85
|
get executionIsRunning$(): Observable<boolean>;
|
|
86
86
|
executionStart(): void;
|
|
@@ -93,19 +93,19 @@ export declare class ActionContext<T, S> {
|
|
|
93
93
|
/**
|
|
94
94
|
* Class containing all main data for action validations (enabled/visible) to be executed in validation states.
|
|
95
95
|
*/
|
|
96
|
-
export declare class ActionContextValidation<T, S> {
|
|
97
|
-
readonly descriptor:
|
|
96
|
+
export declare class ActionContextValidation<T, S = undefined> {
|
|
97
|
+
readonly descriptor: ActionDescriptorInst<T, S>;
|
|
98
98
|
readonly parameters: ActionParameters<T>;
|
|
99
|
+
readonly serviceInstance: S;
|
|
99
100
|
readonly dataProvider?: IDataProvider<T, S> | undefined;
|
|
100
|
-
|
|
101
|
-
constructor(descriptor: ActionDescriptor<T>, parameters: ActionParameters<T>, dataProvider?: IDataProvider<T, S> | undefined, serviceInstance?: S | undefined);
|
|
101
|
+
constructor(descriptor: ActionDescriptorInst<T, S>, parameters: ActionParameters<T>, serviceInstance: S, dataProvider?: IDataProvider<T, S> | undefined);
|
|
102
102
|
}
|
|
103
|
-
export declare class ActionParameters<T> {
|
|
103
|
+
export declare class ActionParameters<T, S = any | undefined> {
|
|
104
104
|
itemId?: IdType | undefined;
|
|
105
105
|
item?: T | undefined;
|
|
106
106
|
actionData?: ActionData;
|
|
107
107
|
queryParam?: MediusQueryParam;
|
|
108
|
-
viewContainer?: IViewContainer<T,
|
|
108
|
+
viewContainer?: IViewContainer<T, S>;
|
|
109
109
|
sourceComponent?: any;
|
|
110
110
|
hostComponent?: unknown;
|
|
111
111
|
route?: ActivatedRoute;
|
|
@@ -116,7 +116,7 @@ export declare class ActionParameters<T> {
|
|
|
116
116
|
constructor(itemId?: IdType | undefined, item?: T | undefined);
|
|
117
117
|
withActionData(actionData?: ActionData): this;
|
|
118
118
|
withQueryParam(queryParam?: MediusQueryParam): this;
|
|
119
|
-
withViewContainer(viewContainer?: IViewContainer<T,
|
|
119
|
+
withViewContainer(viewContainer?: IViewContainer<T, S>): this;
|
|
120
120
|
withSourceComponent(sourceComponent?: any): this;
|
|
121
121
|
withHostComponent(hostComponent?: unknown): this;
|
|
122
122
|
withRoute(route?: ActivatedRoute): this;
|
|
@@ -2,7 +2,7 @@ import { OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { ConfirmationService } from 'primeng/api';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import {
|
|
5
|
+
import { ActionDescriptorInst } from '../../../descriptors/action';
|
|
6
6
|
import { CanComponentDeactivate } from '../../../models';
|
|
7
7
|
import { MngActionExecutorService, MngNavigationService, MngViewContainerComponentService } from '../../../services';
|
|
8
8
|
import { IActionConfirmationService } from '../models';
|
|
@@ -25,7 +25,7 @@ export declare class MngActionRouteComponent<T, S> implements OnInit, OnDestroy,
|
|
|
25
25
|
ngOnInit(): void;
|
|
26
26
|
ngOnDestroy(): void;
|
|
27
27
|
getConfirmationService(): ConfirmationService;
|
|
28
|
-
getConfirmationServiceInstanceKey(action:
|
|
28
|
+
getConfirmationServiceInstanceKey(action: ActionDescriptorInst<any>): string;
|
|
29
29
|
private activateAction;
|
|
30
30
|
private untriggerAction;
|
|
31
31
|
private findActionForRoute;
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import { EventEmitter, ExistingProvider,
|
|
1
|
+
import { EventEmitter, ExistingProvider, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { AutoCompleteCompleteEvent, AutoCompleteOnSelectEvent } from 'primeng/autocomplete/autocomplete.interface';
|
|
3
|
+
import { AutoComplete, AutoCompleteSelectEvent } from 'primeng/autocomplete';
|
|
4
|
+
import { AutoCompleteCompleteEvent } from 'primeng/autocomplete/autocomplete.interface';
|
|
6
5
|
import { Observable, ReplaySubject, Subscription } from 'rxjs';
|
|
7
6
|
import { ILookupDataProvider } from '../../../data-providers';
|
|
8
|
-
import { MngFormlyFieldWrapperComponent } from '../formly/wrappers';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
8
|
export declare const MNG_AUTOCOMPLETE_VALUE_ACCESSOR: ExistingProvider;
|
|
11
9
|
export declare class MngAutocompleteComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
12
|
-
private injector;
|
|
13
|
-
private translate;
|
|
14
|
-
private formlyWrapper;
|
|
10
|
+
private readonly injector;
|
|
11
|
+
private readonly translate;
|
|
15
12
|
private readonly logger;
|
|
13
|
+
private readonly formlyWrapper;
|
|
16
14
|
dataProvider?: ILookupDataProvider<any, any>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
optionsTrackProperty?: string;
|
|
16
|
+
optionsValuePropertyInit?: string;
|
|
17
|
+
optionsLabelPropertyInit?: string;
|
|
18
|
+
optionsLabelTranslate: boolean;
|
|
21
19
|
inlineSearch: boolean;
|
|
22
20
|
openOnFocus: boolean;
|
|
23
21
|
multiselect: boolean;
|
|
@@ -35,8 +33,8 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
|
|
|
35
33
|
private dataProviderService;
|
|
36
34
|
private onChangeFn;
|
|
37
35
|
private onTouchedFn;
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
optionsLabelProperty?: string;
|
|
37
|
+
optionsValueProperty?: string;
|
|
40
38
|
autocompleteFormControl: FormControl;
|
|
41
39
|
suggestions$: Observable<Array<any>>;
|
|
42
40
|
suggestionSubscription?: Subscription;
|
|
@@ -44,7 +42,6 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
|
|
|
44
42
|
private isFocused;
|
|
45
43
|
private userSelectedItem?;
|
|
46
44
|
queryResultCacheSubject?: ReplaySubject<any>;
|
|
47
|
-
constructor(injector: Injector, translate: TranslateService, formlyWrapper: MngFormlyFieldWrapperComponent);
|
|
48
45
|
ngOnInit(): void;
|
|
49
46
|
ngOnDestroy(): void;
|
|
50
47
|
onSearch(event: AutoCompleteCompleteEvent, isInit?: boolean): void;
|
|
@@ -52,7 +49,7 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
|
|
|
52
49
|
/**
|
|
53
50
|
* Triggered by user when selecting an item from an autocomplete suggestion list.
|
|
54
51
|
*/
|
|
55
|
-
onSelect(event:
|
|
52
|
+
onSelect(event: AutoCompleteSelectEvent): void;
|
|
56
53
|
/**
|
|
57
54
|
* Selects and sets new value
|
|
58
55
|
*/
|
|
@@ -79,6 +76,6 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
|
|
|
79
76
|
private i18nGetItemsKeys;
|
|
80
77
|
private i18nPopulateItems;
|
|
81
78
|
private setSuggestionsFromItems;
|
|
82
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngAutocompleteComponent,
|
|
83
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": { "alias": "dataProvider"; "required": false; }; "
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngAutocompleteComponent, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": { "alias": "dataProvider"; "required": false; }; "optionsTrackProperty": { "alias": "optionsTrackProperty"; "required": false; }; "optionsValuePropertyInit": { "alias": "optionsValueProperty"; "required": false; }; "optionsLabelPropertyInit": { "alias": "optionsLabelProperty"; "required": false; }; "optionsLabelTranslate": { "alias": "optionsLabelTranslate"; "required": false; }; "inlineSearch": { "alias": "inlineSearch"; "required": false; }; "openOnFocus": { "alias": "openOnFocus"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "className": { "alias": "className"; "required": false; }; "dropdownClassName": { "alias": "dropdownClassName"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "autoClear": { "alias": "autoClear"; "required": false; }; "selectFirst": { "alias": "selectFirst"; "required": false; }; }, { "valueChangeEventEmitter": "valueChange"; }, never, never, true, never>;
|
|
84
81
|
}
|
|
@@ -13,11 +13,11 @@ export declare class MngDropdownComponent implements OnInit, OnDestroy, ControlV
|
|
|
13
13
|
private formlyWrapper;
|
|
14
14
|
private readonly logger;
|
|
15
15
|
dataProvider?: ILookupDataProvider<any, any>;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
optionsTrackProperty?: string;
|
|
17
|
+
optionsLabelPropertyInit?: string;
|
|
18
|
+
optionsLabelTranslate: boolean;
|
|
19
|
+
optionsValuePropertyInit?: string;
|
|
20
|
+
optionsDisabledProperty?: string;
|
|
21
21
|
multiselect: boolean;
|
|
22
22
|
placeholder?: string;
|
|
23
23
|
showClear: boolean;
|
|
@@ -29,9 +29,9 @@ export declare class MngDropdownComponent implements OnInit, OnDestroy, ControlV
|
|
|
29
29
|
$loading: Observable<boolean>;
|
|
30
30
|
valueChangeEventEmitter: EventEmitter<any>;
|
|
31
31
|
primeDropdown?: Dropdown;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
private
|
|
32
|
+
optionsLabelProperty?: string;
|
|
33
|
+
optionsValueProperty?: string;
|
|
34
|
+
private optionsSubject;
|
|
35
35
|
private dataProviderService;
|
|
36
36
|
private onChangeFn;
|
|
37
37
|
private onTouchedFn;
|
|
@@ -56,5 +56,5 @@ export declare class MngDropdownComponent implements OnInit, OnDestroy, ControlV
|
|
|
56
56
|
*/
|
|
57
57
|
private isValueAccessorInitialized;
|
|
58
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngDropdownComponent, [null, null, { optional: true; }]>;
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": { "alias": "dataProvider"; "required": false; }; "
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": { "alias": "dataProvider"; "required": false; }; "optionsTrackProperty": { "alias": "optionsTrackProperty"; "required": false; }; "optionsLabelPropertyInit": { "alias": "optionsLabelProperty"; "required": false; }; "optionsLabelTranslate": { "alias": "optionsLabelTranslate"; "required": false; }; "optionsValuePropertyInit": { "alias": "optionsValueProperty"; "required": false; }; "optionsDisabledProperty": { "alias": "optionsDisabledProperty"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "selectFirstItem": { "alias": "selectFirstItem"; "required": false; }; "className": { "alias": "className"; "required": false; }; "dropdownClassName": { "alias": "dropdownClassName"; "required": false; }; "changeValueOnBlur": { "alias": "changeValueOnBlur"; "required": false; }; }, { "valueChangeEventEmitter": "valueChange"; }, never, never, true, never>;
|
|
60
60
|
}
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
4
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
5
4
|
import { Message } from 'primeng/api';
|
|
6
5
|
import { Observable } from 'rxjs';
|
|
7
|
-
import {
|
|
6
|
+
import { EditorDescriptorInst } from '../../../descriptors/editor';
|
|
8
7
|
import { MngTemplateDirective } from '../../../directives';
|
|
9
8
|
import { IViewContainer } from '../../../models';
|
|
10
|
-
import { MngCommonsService } from '../../../services';
|
|
11
9
|
import { IFormEditorComponent, MngFormEditorSubmitEvent } from '../models';
|
|
12
10
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class MngFormEditorComponent<T> implements IFormEditorComponent<T>, OnInit, OnChanges, OnDestroy {
|
|
14
|
-
private
|
|
15
|
-
private
|
|
11
|
+
export declare class MngFormEditorComponent<T = any, S = any> implements IFormEditorComponent<T>, OnInit, OnChanges, OnDestroy {
|
|
12
|
+
private readonly translateService;
|
|
13
|
+
private readonly mngCommonsService;
|
|
16
14
|
private readonly logger;
|
|
17
|
-
descriptor?:
|
|
15
|
+
descriptor?: EditorDescriptorInst<T>;
|
|
18
16
|
submitLoading: Observable<boolean> | boolean;
|
|
19
17
|
item?: T;
|
|
20
|
-
viewContainerInit?: IViewContainer<T,
|
|
18
|
+
viewContainerInit?: IViewContainer<T, S>;
|
|
21
19
|
private viewContainerSubject;
|
|
22
20
|
viewContainer$: Observable<IViewContainer<T, unknown>>;
|
|
23
21
|
isFormDisabled: boolean;
|
|
@@ -32,7 +30,6 @@ export declare class MngFormEditorComponent<T> implements IFormEditorComponent<T
|
|
|
32
30
|
submitLoading$: Observable<boolean>;
|
|
33
31
|
private originalItemPrototype?;
|
|
34
32
|
private subscriptions;
|
|
35
|
-
constructor(mngCommonsService: MngCommonsService, translateService: TranslateService);
|
|
36
33
|
ngOnInit(): void;
|
|
37
34
|
ngOnChanges(changes: SimpleChanges): void;
|
|
38
35
|
ngOnDestroy(): void;
|
|
@@ -52,6 +49,6 @@ export declare class MngFormEditorComponent<T> implements IFormEditorComponent<T
|
|
|
52
49
|
* Possible options are: disabled, add or edit.
|
|
53
50
|
*/
|
|
54
51
|
private setInitialFormState;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormEditorComponent<any>, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": { "alias": "descriptor"; "required": false; }; "submitLoading": { "alias": "submitLoading"; "required": false; }; "item": { "alias": "item"; "required": false; }; "viewContainerInit": { "alias": "viewContainer"; "required": false; }; "isFormDisabled": { "alias": "isFormDisabled"; "required": false; }; }, { "formSubmitEventEmitter": "formSubmit"; }, ["templates"], never, true, never>;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormEditorComponent<any, any>, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any, any>, "mng-form-editor", never, { "descriptor": { "alias": "descriptor"; "required": false; }; "submitLoading": { "alias": "submitLoading"; "required": false; }; "item": { "alias": "item"; "required": false; }; "viewContainerInit": { "alias": "viewContainer"; "required": false; }; "isFormDisabled": { "alias": "isFormDisabled"; "required": false; }; }, { "formSubmitEventEmitter": "formSubmit"; }, ["templates"], never, true, never>;
|
|
57
54
|
}
|
package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { FormArray, FormBuilder, FormControl } from '@angular/forms';
|
|
|
3
3
|
import { FieldType } from '@ngx-formly/core';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { FieldInputDescriptor } from '../../../../../descriptors/editor';
|
|
6
|
+
import { FieldInputTypeEnum } from '../../../../../descriptors/types';
|
|
6
7
|
import { MngFormEditorComponent } from '../../../editor/form-editor.component';
|
|
7
8
|
import { MngFormlyFieldConfig } from '../../models';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
@@ -10,6 +11,9 @@ export declare class MngFormlyFieldInputComponent<ET> extends FieldType<MngForml
|
|
|
10
11
|
applicationLocale: string;
|
|
11
12
|
private formBuilder;
|
|
12
13
|
private translateService;
|
|
14
|
+
readonly NUMBER_MIN_SAFE: number;
|
|
15
|
+
readonly NUMBER_MAX_SAFE: number;
|
|
16
|
+
readonly DESC_INPUT_TYPE_IMAGE_FILE = FieldInputTypeEnum.ImageFile;
|
|
13
17
|
iFormControl: FormControl;
|
|
14
18
|
descriptor: FieldInputDescriptor<ET>;
|
|
15
19
|
numberFieldMode: 'decimal' | 'currency';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { AfterViewInit, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FieldType } from '@ngx-formly/core';
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
|
-
import {
|
|
4
|
+
import { ActionDescriptorInst } from '../../../../../descriptors/action';
|
|
5
5
|
import { FieldManyEditorDescriptor } from '../../../../../descriptors/editor';
|
|
6
6
|
import { IViewContainer } from '../../../../../models';
|
|
7
7
|
import { MngFormlyFieldConfig } from '../../models';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class MngFormlyFieldTableDialogFormComponent<T, ET> extends FieldType<MngFormlyFieldConfig> implements OnInit, AfterViewInit, OnDestroy {
|
|
9
|
+
export declare class MngFormlyFieldTableDialogFormComponent<T = any, ET = any> extends FieldType<MngFormlyFieldConfig> implements OnInit, AfterViewInit, OnDestroy {
|
|
10
10
|
private injector;
|
|
11
11
|
descriptor: FieldManyEditorDescriptor<T, ET>;
|
|
12
12
|
itemsSubject: Subject<Array<T>>;
|
|
13
13
|
items$: Observable<Array<T>>;
|
|
14
|
-
actions: Array<
|
|
15
|
-
toolbarRightActions: Array<
|
|
14
|
+
actions: Array<ActionDescriptorInst<T>>;
|
|
15
|
+
toolbarRightActions: Array<ActionDescriptorInst<T>>;
|
|
16
16
|
viewContainer?: IViewContainer<any, unknown>;
|
|
17
17
|
private subscriptions;
|
|
18
18
|
private isDisabledSubject;
|