@mediusinc/mng-commons 3.6.0-rc.3 → 3.7.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { PrimeNGConfig, SelectItem } from 'primeng/api';
|
|
3
|
-
import { ColumnFilter } from 'primeng/table';
|
|
4
|
-
import { FilterDescriptor, FilterLookupDescriptor } from '../../../../descriptors/filter';
|
|
5
|
-
import { FilterLookupTypeEnum, FilterMatchModeEnum } from '../../../../descriptors/types';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Cannot be on push change detection strategy because of filter updates triggered from route which causes to force update values in force metadata
|
|
9
|
-
* and these must be propagated through to this component and beyond to primeNG.
|
|
10
|
-
*/
|
|
11
|
-
export declare class MngTableColumnFilterComponent<T> implements OnInit, OnDestroy {
|
|
12
|
-
private primeConfig;
|
|
13
|
-
readonly lookupTypeDropdown: FilterLookupTypeEnum;
|
|
14
|
-
readonly lookupTypeAutocomplete: FilterLookupTypeEnum;
|
|
15
|
-
descriptor: FilterDescriptor<T>;
|
|
16
|
-
primeColumnFilter: ColumnFilter;
|
|
17
|
-
lookupDescriptor?: FilterLookupDescriptor<T>;
|
|
18
|
-
primeField: string;
|
|
19
|
-
primeType: string;
|
|
20
|
-
primeShowMatchMode: boolean;
|
|
21
|
-
primeDefaultMatchMode: FilterMatchModeEnum;
|
|
22
|
-
primeDisplay: string;
|
|
23
|
-
primeMatchModeCustomOptions?: SelectItem[];
|
|
24
|
-
private dateFilterCallback?;
|
|
25
|
-
private dateDebounceSubject;
|
|
26
|
-
private dateDebounceSubscription?;
|
|
27
|
-
constructor(primeConfig: PrimeNGConfig);
|
|
28
|
-
get activeMatchMode(): FilterMatchModeEnum | undefined;
|
|
29
|
-
ngOnInit(): void;
|
|
30
|
-
ngOnDestroy(): void;
|
|
31
|
-
dateFilter(value: Date | Date[] | null, filterCallback: Function): void;
|
|
32
|
-
dateRangeChange(value: Date[] | null, filterCallback: Function): void;
|
|
33
|
-
autocompleteFilter(value: T, filterCallback: Function): void;
|
|
34
|
-
dropdownFilter(value: any, filterCallback: Function): void;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableColumnFilterComponent<any>, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnFilterComponent<any>, "mng-table-column-filter", never, { "descriptor": { "alias": "descriptor"; "required": true; }; }, {}, never, never, true, never>;
|
|
37
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ClassType } from '../types';
|
|
2
|
-
export declare class ModelDescriptor<T> {
|
|
3
|
-
private readonly _type;
|
|
4
|
-
private readonly _typeName;
|
|
5
|
-
private _i18nBaseKey;
|
|
6
|
-
private _idPropertyName?;
|
|
7
|
-
private _titlePropertyName?;
|
|
8
|
-
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string, i18nBaseKey?: string | ClassType<unknown>);
|
|
9
|
-
get type(): ClassType<T>;
|
|
10
|
-
get typeName(): string;
|
|
11
|
-
get i18nBaseKey(): string;
|
|
12
|
-
get idPropertyName(): string | undefined;
|
|
13
|
-
get titlePropertyName(): string | undefined;
|
|
14
|
-
withIdPropertyName(idProperty: string): this;
|
|
15
|
-
withTitlePropertyName(titleProperty: string): this;
|
|
16
|
-
withI18nBase(base: ClassType<T> | string): this;
|
|
17
|
-
copy(): ModelDescriptor<T>;
|
|
18
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { InputTextModule } from 'primeng/inputtext';
|
|
3
|
-
import { MngModuleConfig } from './models';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "@angular/router";
|
|
7
|
-
import * as i3 from "@angular/common/http";
|
|
8
|
-
import * as i4 from "@angular/forms";
|
|
9
|
-
import * as i5 from "@ngx-translate/core";
|
|
10
|
-
import * as i6 from "@ngx-formly/core";
|
|
11
|
-
import * as i7 from "primeng/autocomplete";
|
|
12
|
-
import * as i8 from "primeng/breadcrumb";
|
|
13
|
-
import * as i9 from "primeng/button";
|
|
14
|
-
import * as i10 from "primeng/calendar";
|
|
15
|
-
import * as i11 from "primeng/card";
|
|
16
|
-
import * as i12 from "primeng/checkbox";
|
|
17
|
-
import * as i13 from "primeng/chip";
|
|
18
|
-
import * as i14 from "primeng/confirmdialog";
|
|
19
|
-
import * as i15 from "primeng/confirmpopup";
|
|
20
|
-
import * as i16 from "primeng/dialog";
|
|
21
|
-
import * as i17 from "primeng/dynamicdialog";
|
|
22
|
-
import * as i18 from "primeng/dropdown";
|
|
23
|
-
import * as i19 from "primeng/fileupload";
|
|
24
|
-
import * as i20 from "primeng/inputnumber";
|
|
25
|
-
import * as i21 from "primeng/inputmask";
|
|
26
|
-
import * as i22 from "primeng/inputswitch";
|
|
27
|
-
import * as i23 from "primeng/inputtext";
|
|
28
|
-
import * as i24 from "primeng/inputtextarea";
|
|
29
|
-
import * as i25 from "primeng/paginator";
|
|
30
|
-
import * as i26 from "primeng/radiobutton";
|
|
31
|
-
import * as i27 from "primeng/ripple";
|
|
32
|
-
import * as i28 from "primeng/selectbutton";
|
|
33
|
-
import * as i29 from "primeng/splitbutton";
|
|
34
|
-
import * as i30 from "primeng/table";
|
|
35
|
-
import * as i31 from "primeng/tag";
|
|
36
|
-
import * as i32 from "primeng/toast";
|
|
37
|
-
import * as i33 from "primeng/togglebutton";
|
|
38
|
-
import * as i34 from "primeng/toolbar";
|
|
39
|
-
import * as i35 from "primeng/tooltip";
|
|
40
|
-
import * as i36 from "primeng/messages";
|
|
41
|
-
import * as i37 from "primeng/progressspinner";
|
|
42
|
-
import * as i38 from "primeng/tabview";
|
|
43
|
-
import * as i39 from "primeng/fieldset";
|
|
44
|
-
import * as i40 from "primeng/multiselect";
|
|
45
|
-
import * as i41 from "primeng/skeleton";
|
|
46
|
-
import * as i42 from "primeng/slidemenu";
|
|
47
|
-
import * as i43 from "primeng/image";
|
|
48
|
-
import * as i44 from "./components/action/route/action-route.component";
|
|
49
|
-
import * as i45 from "./directives/component.directive";
|
|
50
|
-
import * as i46 from "./directives/dialog-keydown-handler.directive";
|
|
51
|
-
import * as i47 from "./directives/template.directive";
|
|
52
|
-
import * as i48 from "./pipes/json-path.pipe";
|
|
53
|
-
import * as i49 from "./pipes/enum.pipe";
|
|
54
|
-
import * as i50 from "./pipes/boolean.pipe";
|
|
55
|
-
import * as i51 from "./pipes/i18n-property.pipe";
|
|
56
|
-
import * as i52 from "./pipes/parametrize.pipe";
|
|
57
|
-
import * as i53 from "./pipes/getter.pipe";
|
|
58
|
-
import * as i54 from "./pipes/template.pipe";
|
|
59
|
-
import * as i55 from "./pipes/class-map.pipe";
|
|
60
|
-
import * as i56 from "./pipes/enumerate.pipe";
|
|
61
|
-
import * as i57 from "./pipes/enumerate-async.pipe";
|
|
62
|
-
import * as i58 from "./pipes/locale-default-row-class.pipe";
|
|
63
|
-
import * as i59 from "./components/layout/breadcrumb.component";
|
|
64
|
-
import * as i60 from "./components/layout/footer.component";
|
|
65
|
-
import * as i61 from "./components/layout/main-layout.component";
|
|
66
|
-
import * as i62 from "./components/layout/menu.component";
|
|
67
|
-
import * as i63 from "./components/layout/menu-item.component";
|
|
68
|
-
import * as i64 from "./components/layout/topbar.component";
|
|
69
|
-
import * as i65 from "./components/layout/topbar-user.component";
|
|
70
|
-
import * as i66 from "./components/layout/version.component";
|
|
71
|
-
import * as i67 from "./components/form/autocomplete/autocomplete.component";
|
|
72
|
-
import * as i68 from "./components/form/dropdown/dropdown.component";
|
|
73
|
-
import * as i69 from "./components/form/date-range/date-range.component";
|
|
74
|
-
import * as i70 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
|
|
75
|
-
import * as i71 from "./components/form/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component";
|
|
76
|
-
import * as i72 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
|
|
77
|
-
import * as i73 from "./components/form/formly/fields/formly-field-label/formly-field-label.component";
|
|
78
|
-
import * as i74 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
|
|
79
|
-
import * as i75 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
|
|
80
|
-
import * as i76 from "./components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component";
|
|
81
|
-
import * as i77 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
|
|
82
|
-
import * as i78 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
|
|
83
|
-
import * as i79 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
|
|
84
|
-
import * as i80 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
|
|
85
|
-
import * as i81 from "./components/form/formly/fields/formly-field-action/formly-field-action.component";
|
|
86
|
-
import * as i82 from "./components/form/formly/fields/formly-field-custom/formly-field-custom.component";
|
|
87
|
-
import * as i83 from "./components/tableview/table/table.component";
|
|
88
|
-
import * as i84 from "./components/tableview/tableview.component";
|
|
89
|
-
import * as i85 from "./components/tableview/table/column-value/column-value.component";
|
|
90
|
-
import * as i86 from "./components/tableview/table/column-filter/column-filter.component";
|
|
91
|
-
import * as i87 from "./components/tableview/table/column-filter-full/column-filter-full.component";
|
|
92
|
-
import * as i88 from "./components/tableview/route/tableview-route.component";
|
|
93
|
-
import * as i89 from "./components/form/editor/form-editor.component";
|
|
94
|
-
import * as i90 from "./components/action/action.component";
|
|
95
|
-
import * as i91 from "./components/action/editor/action-editor.component";
|
|
96
|
-
import * as i92 from "./components/action/localization/data-language-dropdown.component";
|
|
97
|
-
import * as i93 from "./components/pages/error/error.page.component";
|
|
98
|
-
import * as i94 from "./components/pages/not-found/not-found.page.component";
|
|
99
|
-
export declare const primeNgModules: (typeof InputTextModule)[];
|
|
100
|
-
export declare class MngCommonsModule {
|
|
101
|
-
static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
|
|
102
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
|
|
103
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.HttpClientModule, typeof i4.ReactiveFormsModule, typeof i5.TranslateModule, typeof i6.FormlyModule, typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngDialogKeydownHandlerDirective, typeof i47.MngTemplateDirective, typeof i48.JsonPathPipe, typeof i49.MngEnumPipe, typeof i50.MngBooleanPipe, typeof i51.MngI18nPropertyPipe, typeof i52.MngParametrizePipe, typeof i53.MngGetterPipe, typeof i54.MngTemplatePipe, typeof i55.MngClassMapPipe, typeof i56.MngEnumeratePipe, typeof i57.MngEnumerateAsyncPipe, typeof i58.MngLocaleDefaultRowClassPipe, typeof i59.MngBreadcrumbComponent, typeof i60.MngFooterComponent, typeof i61.MngMainLayoutComponent, typeof i62.MngMenuComponent, typeof i63.MngMenuItemComponent, typeof i64.MngTopbarComponent, typeof i65.MngTopbarUserComponent, typeof i66.MngVersionComponent, typeof i67.MngAutocompleteComponent, typeof i68.MngDropdownComponent, typeof i69.MngDateRangeComponent, typeof i70.MngFormlyFieldWrapperComponent, typeof i71.MngFormlyFieldNoLabelWrapperComponent, typeof i72.MngFormlyFieldInputComponent, typeof i73.MngFormlyFieldLabelComponent, typeof i74.MngFormlyFieldDropdownComponent, typeof i75.MngFormlyFieldAutocompleteComponent, typeof i76.MngFormlyFieldLookupDialogComponent, typeof i77.MngFormlyFieldTableDialogMultiselectComponent, typeof i78.MngFormlyFieldTableDialogFormComponent, typeof i79.MngFormlyFieldTabsComponent, typeof i80.MngFormlyFieldFieldsetComponent, typeof i81.MngFormlyFieldActionComponent, typeof i82.MngFormlyFieldCustomComponent, typeof i83.MngTableComponent, typeof i84.MngTableviewComponent, typeof i85.MngTableColumnValueComponent, typeof i86.MngTableColumnFilterComponent, typeof i87.MngTableColumnFilterFullComponent, typeof i88.MngTableviewRouteComponent, typeof i89.MngFormEditorComponent, typeof i90.MngActionComponent, typeof i91.MngActionEditorComponent, typeof i92.MngDataLanguageDropdownComponent, typeof i93.MngErrorPageComponent, typeof i94.MngNotFoundPageComponent], [typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngDialogKeydownHandlerDirective, typeof i47.MngTemplateDirective, typeof i48.JsonPathPipe, typeof i49.MngEnumPipe, typeof i50.MngBooleanPipe, typeof i51.MngI18nPropertyPipe, typeof i52.MngParametrizePipe, typeof i53.MngGetterPipe, typeof i54.MngTemplatePipe, typeof i55.MngClassMapPipe, typeof i56.MngEnumeratePipe, typeof i57.MngEnumerateAsyncPipe, typeof i58.MngLocaleDefaultRowClassPipe, typeof i59.MngBreadcrumbComponent, typeof i60.MngFooterComponent, typeof i61.MngMainLayoutComponent, typeof i62.MngMenuComponent, typeof i63.MngMenuItemComponent, typeof i64.MngTopbarComponent, typeof i65.MngTopbarUserComponent, typeof i66.MngVersionComponent, typeof i67.MngAutocompleteComponent, typeof i68.MngDropdownComponent, typeof i69.MngDateRangeComponent, typeof i70.MngFormlyFieldWrapperComponent, typeof i71.MngFormlyFieldNoLabelWrapperComponent, typeof i72.MngFormlyFieldInputComponent, typeof i73.MngFormlyFieldLabelComponent, typeof i74.MngFormlyFieldDropdownComponent, typeof i75.MngFormlyFieldAutocompleteComponent, typeof i76.MngFormlyFieldLookupDialogComponent, typeof i77.MngFormlyFieldTableDialogMultiselectComponent, typeof i78.MngFormlyFieldTableDialogFormComponent, typeof i79.MngFormlyFieldTabsComponent, typeof i80.MngFormlyFieldFieldsetComponent, typeof i81.MngFormlyFieldActionComponent, typeof i82.MngFormlyFieldCustomComponent, typeof i83.MngTableComponent, typeof i84.MngTableviewComponent, typeof i85.MngTableColumnValueComponent, typeof i86.MngTableColumnFilterComponent, typeof i87.MngTableColumnFilterFullComponent, typeof i88.MngTableviewRouteComponent, typeof i89.MngFormEditorComponent, typeof i90.MngActionComponent, typeof i91.MngActionEditorComponent, typeof i92.MngDataLanguageDropdownComponent, typeof i93.MngErrorPageComponent, typeof i94.MngNotFoundPageComponent]>;
|
|
104
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
|
|
105
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type MngLocalstorageConfigValueType = string | number | Date | object | boolean;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
{{>licenseInfo}}
|
|
2
|
-
{{#models}}
|
|
3
|
-
{{#model}}
|
|
4
|
-
{{#isEnum}}
|
|
5
|
-
import {ObjectSerializer} from '@mediusinc/mng-commons';
|
|
6
|
-
{{/isEnum}}
|
|
7
|
-
{{^isEnum}}
|
|
8
|
-
import {AttributeDef, ObjectSerializer, TypeName} from '@mediusinc/mng-commons';
|
|
9
|
-
{{/isEnum}}
|
|
10
|
-
|
|
11
|
-
{{#tsImports}}
|
|
12
|
-
{{=<% %>=}}
|
|
13
|
-
import {<%classname%>} from '<%filename%>';
|
|
14
|
-
<%={{ }}=%>
|
|
15
|
-
{{/tsImports}}
|
|
16
|
-
{{#description}}
|
|
17
|
-
/**
|
|
18
|
-
* {{{.}}}
|
|
19
|
-
*/
|
|
20
|
-
{{/description}}
|
|
21
|
-
{{^isEnum}}
|
|
22
|
-
@TypeName('{{classname}}')
|
|
23
|
-
export class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{
|
|
24
|
-
{{#vars}}
|
|
25
|
-
{{#description}}
|
|
26
|
-
/**
|
|
27
|
-
* {{{.}}}
|
|
28
|
-
*/
|
|
29
|
-
{{/description}}
|
|
30
|
-
{{name}}?: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{#isDate}}Date{{/isDate}}{{^isDate}}{{{dataType}}}{{/isDate}}{{#isNullable}}|null{{/isNullable}}{{/isEnum}}{{#jsonSchema.default}} = {{{.}}}{{/jsonSchema.default}}{{^jsonSchema.default}}{{#isNullable}} = null{{/isNullable}}{{/jsonSchema.default}};
|
|
31
|
-
{{/vars}}
|
|
32
|
-
|
|
33
|
-
{{#discriminator}}
|
|
34
|
-
public static discriminator?: string = '{{discriminatorName}}';
|
|
35
|
-
{{/discriminator}}
|
|
36
|
-
{{^discriminator}}
|
|
37
|
-
public static discriminator?: string;
|
|
38
|
-
{{/discriminator}}
|
|
39
|
-
|
|
40
|
-
{{^isArray}}
|
|
41
|
-
public static attributeTypeMap: Array<AttributeDef> = [
|
|
42
|
-
{{#vars}}
|
|
43
|
-
{
|
|
44
|
-
name: '{{name}}',
|
|
45
|
-
baseName: '{{baseName}}',
|
|
46
|
-
type: '{{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{#isDate}}Date{{/isDate}}{{^isDate}}{{{dataType}}}{{/isDate}}{{/isEnum}}'{{#isDate}},
|
|
47
|
-
subtype: 'date'{{/isDate}}{{#isDateTime}},
|
|
48
|
-
subtype: 'dateTime'{{/isDateTime}}
|
|
49
|
-
}{{^-last}},
|
|
50
|
-
{{/-last}}
|
|
51
|
-
{{/vars}}
|
|
52
|
-
|
|
53
|
-
];
|
|
54
|
-
|
|
55
|
-
public static getAttributeTypeMap() {
|
|
56
|
-
{{#parent}}
|
|
57
|
-
return super.getAttributeTypeMap().concat({{classname}}.attributeTypeMap);
|
|
58
|
-
{{/parent}}
|
|
59
|
-
{{^parent}}
|
|
60
|
-
return {{classname}}.attributeTypeMap;
|
|
61
|
-
{{/parent}}
|
|
62
|
-
}
|
|
63
|
-
{{/isArray}}
|
|
64
|
-
}
|
|
65
|
-
{{#hasEnums}}
|
|
66
|
-
export namespace {{classname}} {
|
|
67
|
-
{{#vars}}
|
|
68
|
-
{{#isEnum}}
|
|
69
|
-
export enum {{enumName}} {
|
|
70
|
-
{{#allowableValues}}
|
|
71
|
-
{{#enumVars}}
|
|
72
|
-
{{name}} = {{{value}}}{{^-last}},{{/-last}}
|
|
73
|
-
{{/enumVars}}
|
|
74
|
-
{{/allowableValues}}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
ObjectSerializer.get().registerEnum({{enumName}}, '{{classname}}.{{enumName}}');
|
|
78
|
-
{{/isEnum}}
|
|
79
|
-
{{/vars}}
|
|
80
|
-
}
|
|
81
|
-
{{/hasEnums}}
|
|
82
|
-
|
|
83
|
-
ObjectSerializer.get().registerType({{classname}});
|
|
84
|
-
{{/isEnum}}
|
|
85
|
-
{{#isEnum}}
|
|
86
|
-
export enum {{classname}} {
|
|
87
|
-
{{#allowableValues}}
|
|
88
|
-
{{#enumVars}}
|
|
89
|
-
{{name}} = {{{value}}}{{^-last}},{{/-last}}
|
|
90
|
-
{{/enumVars}}
|
|
91
|
-
{{/allowableValues}}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
ObjectSerializer.get().registerEnum({{classname}}, '{{classname}}');
|
|
95
|
-
{{/isEnum}}
|
|
96
|
-
{{/model}}
|
|
97
|
-
{{/models}}
|
|
File without changes
|