@mediusinc/mng-commons 0.0.1-rc.3 → 0.2.1-rc
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/.browserslistrc +16 -0
- package/README.md +96 -1
- package/assets/i18n/en.json +156 -0
- package/assets/i18n/sl.json +156 -0
- package/assets/images/effect-ondark.png +0 -0
- package/assets/images/effect-ondark.svg +38 -0
- package/assets/images/effect-ondark@2x.png +0 -0
- package/assets/images/effect-onlight.png +0 -0
- package/assets/images/effect-onlight.svg +38 -0
- package/assets/images/effect-onlight@2x.png +0 -0
- package/assets/images/pages/exception-ondark.png +0 -0
- package/assets/images/pages/exception-onlight.png +0 -0
- package/assets/images/pages/login-ondark.png +0 -0
- package/assets/images/pages/login-onlight.png +0 -0
- package/assets/templates/tableview-route.component.html +5 -0
- package/karma.conf.js +51 -0
- package/ng-package.json +14 -0
- package/package.json +3 -24
- package/scss/common/layout/_breadcrumb.scss +96 -0
- package/scss/common/layout/_config.scss +101 -0
- package/scss/common/layout/_dashboard.scss +16 -0
- package/scss/common/layout/_exception.scss +131 -0
- package/scss/common/layout/_footer.scss +29 -0
- package/scss/common/layout/_help.scss +157 -0
- package/scss/common/layout/_inlinemenu.scss +55 -0
- package/scss/common/layout/_invoice.scss +176 -0
- package/scss/common/layout/_landing.scss +639 -0
- package/scss/common/layout/_layout_dark.scss +23 -0
- package/scss/common/layout/_layout_light.scss +23 -0
- package/scss/common/layout/_loader.scss +18 -0
- package/scss/common/layout/_login.scss +106 -0
- package/scss/common/layout/_main.scss +45 -0
- package/scss/common/layout/_mixins.scss +214 -0
- package/scss/common/layout/_rightmenu.scss +125 -0
- package/scss/common/layout/_topbar.scss +189 -0
- package/scss/common/layout/_typography.scss +63 -0
- package/scss/common/layout/_utils.scss +96 -0
- package/scss/common/layout/_widgets.scss +391 -0
- package/scss/common/layout/menu/_menu.scss +7 -0
- package/scss/common/layout/menu/_menu_common.scss +183 -0
- package/scss/common/layout/menu/_menu_overlay.scss +52 -0
- package/scss/common/layout/menu/_menu_sidebar.scss +232 -0
- package/scss/common/layout/menu/_menu_slim.scss +138 -0
- package/scss/common/layout/menu/_menu_static.scss +70 -0
- package/scss/common/layout/menu/_menu_theme.scss +365 -0
- package/scss/common/theme/_theme_dark.scss +5 -0
- package/scss/common/theme/_theme_light.scss +5 -0
- package/scss/common/theme/designer/_colors.scss +18 -0
- package/scss/common/theme/designer/_common.scss +40 -0
- package/scss/common/theme/designer/_components.scss +101 -0
- package/scss/common/theme/designer/_mixins.scss +174 -0
- package/scss/common/theme/designer/components/button/_button.scss +560 -0
- package/scss/common/theme/designer/components/button/_speeddial.scss +79 -0
- package/scss/common/theme/designer/components/button/_splitbutton.scss +1 -0
- package/scss/common/theme/designer/components/data/_carousel.scss +37 -0
- package/scss/common/theme/designer/components/data/_datatable.scss +266 -0
- package/scss/common/theme/designer/components/data/_dataview.scss +55 -0
- package/scss/common/theme/designer/components/data/_filter.scss +138 -0
- package/scss/common/theme/designer/components/data/_fullcalendar.scss +324 -0
- package/scss/common/theme/designer/components/data/_orderlist.scss +91 -0
- package/scss/common/theme/designer/components/data/_organizationchart.scss +50 -0
- package/scss/common/theme/designer/components/data/_paginator.scss +83 -0
- package/scss/common/theme/designer/components/data/_picklist.scss +91 -0
- package/scss/common/theme/designer/components/data/_timeline.scss +38 -0
- package/scss/common/theme/designer/components/data/_tree.scss +144 -0
- package/scss/common/theme/designer/components/data/_treetable.scss +242 -0
- package/scss/common/theme/designer/components/data/_virtualscroller.scss +28 -0
- package/scss/common/theme/designer/components/file/_fileupload.scss +58 -0
- package/scss/common/theme/designer/components/input/_autocomplete.scss +103 -0
- package/scss/common/theme/designer/components/input/_calendar.scss +212 -0
- package/scss/common/theme/designer/components/input/_cascadeselect.scss +98 -0
- package/scss/common/theme/designer/components/input/_checkbox.scss +85 -0
- package/scss/common/theme/designer/components/input/_chips.scss +41 -0
- package/scss/common/theme/designer/components/input/_colorpicker.scss +19 -0
- package/scss/common/theme/designer/components/input/_dropdown.scss +136 -0
- package/scss/common/theme/designer/components/input/_editor.scss +122 -0
- package/scss/common/theme/designer/components/input/_inputgroup.scss +69 -0
- package/scss/common/theme/designer/components/input/_inputmask.scss +3 -0
- package/scss/common/theme/designer/components/input/_inputnumber.scss +3 -0
- package/scss/common/theme/designer/components/input/_inputswitch.scss +58 -0
- package/scss/common/theme/designer/components/input/_inputtext.scss +97 -0
- package/scss/common/theme/designer/components/input/_listbox.scss +82 -0
- package/scss/common/theme/designer/components/input/_multiselect.scss +164 -0
- package/scss/common/theme/designer/components/input/_password.scss +33 -0
- package/scss/common/theme/designer/components/input/_radiobutton.scss +78 -0
- package/scss/common/theme/designer/components/input/_rating.scss +48 -0
- package/scss/common/theme/designer/components/input/_selectbutton.scss +50 -0
- package/scss/common/theme/designer/components/input/_slider.scss +69 -0
- package/scss/common/theme/designer/components/input/_togglebutton.scss +48 -0
- package/scss/common/theme/designer/components/input/_treeselect.scss +89 -0
- package/scss/common/theme/designer/components/menu/_breadcrumb.scss +42 -0
- package/scss/common/theme/designer/components/menu/_contextmenu.scss +50 -0
- package/scss/common/theme/designer/components/menu/_dock.scss +51 -0
- package/scss/common/theme/designer/components/menu/_megamenu.scss +102 -0
- package/scss/common/theme/designer/components/menu/_menu.scss +41 -0
- package/scss/common/theme/designer/components/menu/_menubar.scss +179 -0
- package/scss/common/theme/designer/components/menu/_panelmenu.scss +137 -0
- package/scss/common/theme/designer/components/menu/_slidemenu.scss +55 -0
- package/scss/common/theme/designer/components/menu/_steps.scss +55 -0
- package/scss/common/theme/designer/components/menu/_tabmenu.scss +49 -0
- package/scss/common/theme/designer/components/menu/_tieredmenu.scss +56 -0
- package/scss/common/theme/designer/components/messages/_inlinemessage.scss +64 -0
- package/scss/common/theme/designer/components/messages/_message.scss +102 -0
- package/scss/common/theme/designer/components/messages/_toast.scss +95 -0
- package/scss/common/theme/designer/components/misc/_avatar.scss +30 -0
- package/scss/common/theme/designer/components/misc/_badge.scss +48 -0
- package/scss/common/theme/designer/components/misc/_blockui.scss +3 -0
- package/scss/common/theme/designer/components/misc/_chip.scss +36 -0
- package/scss/common/theme/designer/components/misc/_inplace.scss +17 -0
- package/scss/common/theme/designer/components/misc/_progressbar.scss +17 -0
- package/scss/common/theme/designer/components/misc/_scrolltop.scss +20 -0
- package/scss/common/theme/designer/components/misc/_skeleton.scss +8 -0
- package/scss/common/theme/designer/components/misc/_tag.scss +33 -0
- package/scss/common/theme/designer/components/misc/_terminal.scss +11 -0
- package/scss/common/theme/designer/components/multimedia/_galleria.scss +141 -0
- package/scss/common/theme/designer/components/overlay/_confirmpopup.scss +67 -0
- package/scss/common/theme/designer/components/overlay/_dialog.scss +63 -0
- package/scss/common/theme/designer/components/overlay/_overlaypanel.scss +62 -0
- package/scss/common/theme/designer/components/overlay/_sidebar.scss +27 -0
- package/scss/common/theme/designer/components/overlay/_tooltip.scss +33 -0
- package/scss/common/theme/designer/components/panel/_accordion.scss +119 -0
- package/scss/common/theme/designer/components/panel/_card.scss +30 -0
- package/scss/common/theme/designer/components/panel/_divider.scss +31 -0
- package/scss/common/theme/designer/components/panel/_fieldset.scss +47 -0
- package/scss/common/theme/designer/components/panel/_panel.scss +42 -0
- package/scss/common/theme/designer/components/panel/_scrollpanel.scss +6 -0
- package/scss/common/theme/designer/components/panel/_splitter.scss +19 -0
- package/scss/common/theme/designer/components/panel/_tabview.scss +66 -0
- package/scss/common/theme/designer/components/panel/_toolbar.scss +10 -0
- package/scss/common/theme/extensions/_button.scss +99 -0
- package/scss/common/theme/extensions/_calendar.scss +18 -0
- package/scss/common/theme/extensions/_card.scss +6 -0
- package/scss/common/theme/extensions/_carousel.scss +13 -0
- package/scss/common/theme/extensions/_checkbox.scss +10 -0
- package/scss/common/theme/extensions/_contextmenu.scss +16 -0
- package/scss/common/theme/extensions/_datatable.scss +83 -0
- package/scss/common/theme/extensions/_dialog.scss +14 -0
- package/scss/common/theme/extensions/_fieldset.scss +6 -0
- package/scss/common/theme/extensions/_galleria.scss +25 -0
- package/scss/common/theme/extensions/_megamenu.scss +18 -0
- package/scss/common/theme/extensions/_menu.scss +14 -0
- package/scss/common/theme/extensions/_menubar.scss +14 -0
- package/scss/common/theme/extensions/_orderlist.scss +38 -0
- package/scss/common/theme/extensions/_paginator.scss +19 -0
- package/scss/common/theme/extensions/_panelmenu.scss +20 -0
- package/scss/common/theme/extensions/_password.scss +5 -0
- package/scss/common/theme/extensions/_picklist.scss +38 -0
- package/scss/common/theme/extensions/_radiobutton.scss +8 -0
- package/scss/common/theme/extensions/_sidebar.scss +19 -0
- package/scss/common/theme/extensions/_slidemenu.scss +10 -0
- package/scss/common/theme/extensions/_slider.scss +6 -0
- package/scss/common/theme/extensions/_steps.scss +50 -0
- package/scss/common/theme/extensions/_tieredmenu.scss +14 -0
- package/scss/common/theme/extensions/_toast.scss +6 -0
- package/scss/common/theme/extensions/_tree.scss +36 -0
- package/scss/common/theme/extensions/_treetable.scss +35 -0
- package/scss/common/theme/extensions/_vendor_extensions.scss +27 -0
- package/scss/common/variables/layout/_common.scss +12 -0
- package/scss/common/variables/layout/_layout_dark.scss +71 -0
- package/scss/common/variables/layout/_layout_light.scss +71 -0
- package/scss/common/variables/theme/_theme_dark.scss +897 -0
- package/scss/common/variables/theme/_theme_light.scss +885 -0
- package/scss/layout/default/_mng-variables-layout-dark.scss +2 -0
- package/scss/layout/default/_mng-variables-layout-light.scss +2 -0
- package/scss/layout/default/layout-dark.scss +2 -0
- package/scss/layout/default/layout-light.scss +2 -0
- package/scss/mng-commons-dark.scss +5 -0
- package/scss/mng-commons-light.scss +5 -0
- package/scss/mng-overrides/_layout_action.scss +3 -0
- package/scss/mng-overrides/_layout_dialog.scss +34 -0
- package/scss/mng-overrides/_layout_forms.scss +31 -0
- package/scss/mng-overrides/_layout_radio.scss +3 -0
- package/scss/mng-overrides/_layout_styles.scss +4 -0
- package/scss/mng-overrides/_theme_datatable.scss +9 -0
- package/scss/mng-overrides/_theme_dialog.scss +9 -0
- package/scss/mng-overrides/_theme_dropdown.scss +6 -0
- package/scss/mng-overrides/_theme_styles.scss +9 -0
- package/scss/mng-overrides/_theme_tableview.scss +94 -0
- package/scss/theme/default/_mng-variables-theme-dark.scss +8 -0
- package/scss/theme/default/_mng-variables-theme-light.scss +8 -0
- package/scss/theme/default/theme-dark.scss +2 -0
- package/scss/theme/default/theme-light.scss +2 -0
- package/src/lib/api/models/builders/query-param.builder.ts +54 -0
- package/src/lib/api/models/filter-match-type.model.ts +25 -0
- package/src/lib/api/models/filter-param.model.ts +59 -0
- package/{lib/api/models/index.d.ts → src/lib/api/models/index.ts} +10 -8
- package/src/lib/api/models/mappers.ts +18 -0
- package/{lib/api/models/query-mode.model.d.ts → src/lib/api/models/query-mode.model.ts} +18 -16
- package/src/lib/api/models/query-param.model.ts +99 -0
- package/src/lib/api/models/query-result.model.ts +77 -0
- package/{lib/api/models/serialization.model.d.ts → src/lib/api/models/serialization.model.ts} +9 -8
- package/src/lib/api/services/crud-api.abstract.service.ts +113 -0
- package/src/lib/api/services/index.ts +1 -0
- package/{lib/api/utils/index.d.ts → src/lib/api/utils/index.ts} +2 -2
- package/src/lib/api/utils/medius-rest.util.ts +146 -0
- package/src/lib/api/utils/object-serializer.util.ts +227 -0
- package/src/lib/components/action/action.component.html +30 -0
- package/src/lib/components/action/action.component.ts +77 -0
- package/src/lib/components/action/dialog/action-dialog.component.html +26 -0
- package/src/lib/components/action/dialog/action-dialog.component.ts +171 -0
- package/{lib/components/action/index.d.ts → src/lib/components/action/index.ts} +3 -3
- package/src/lib/components/action/models/action-confirmation-service.model.ts +7 -0
- package/src/lib/components/action/models/action-execution.model.ts +81 -0
- package/src/lib/components/action/models/index.ts +2 -0
- package/src/lib/components/action/route/action-route.component.html +1 -0
- package/src/lib/components/action/route/action-route.component.ts +159 -0
- package/src/lib/components/form/autocomplete/autocomplete.component.html +16 -0
- package/src/lib/components/form/autocomplete/autocomplete.component.ts +113 -0
- package/src/lib/components/form/dropdown/dropdown.component.html +29 -0
- package/src/lib/components/form/dropdown/dropdown.component.ts +109 -0
- package/src/lib/components/form/editor/form-editor.component.html +5 -0
- package/src/lib/components/form/editor/form-editor.component.ts +149 -0
- package/src/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.html +7 -0
- package/src/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.ts +21 -0
- package/src/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.html +9 -0
- package/src/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.ts +22 -0
- package/src/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.html +8 -0
- package/src/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.ts +10 -0
- package/src/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.html +56 -0
- package/src/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.ts +22 -0
- package/src/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.html +13 -0
- package/src/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.scss +4 -0
- package/src/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.ts +114 -0
- package/src/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.html +37 -0
- package/src/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.ts +133 -0
- package/src/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.html +10 -0
- package/src/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.ts +10 -0
- package/{lib/components/form/formly/fields/index.d.ts → src/lib/components/form/formly/fields/index.ts} +7 -7
- package/src/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.html +7 -0
- package/src/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.ts +13 -0
- package/src/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.html +6 -0
- package/src/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.ts +13 -0
- package/{lib/components/form/formly/wrappers/index.d.ts → src/lib/components/form/formly/wrappers/index.ts} +2 -2
- package/src/lib/components/form/index.ts +3 -0
- package/src/lib/components/form/models/form-editor.event.ts +7 -0
- package/src/lib/components/form/models/index.ts +1 -0
- package/src/lib/components/layout/breadcrumb.component.html +5 -0
- package/src/lib/components/layout/breadcrumb.component.ts +12 -0
- package/src/lib/components/layout/footer.component.html +7 -0
- package/src/lib/components/layout/footer.component.ts +15 -0
- package/src/lib/components/layout/index.ts +6 -0
- package/src/lib/components/layout/main-layout.component.html +26 -0
- package/src/lib/components/layout/main-layout.component.ts +54 -0
- package/src/lib/components/layout/menu-item.component.html +41 -0
- package/src/lib/components/layout/menu-item.component.ts +170 -0
- package/src/lib/components/layout/menu.component.html +27 -0
- package/src/lib/components/layout/menu.component.ts +17 -0
- package/src/lib/components/layout/services/index.ts +1 -0
- package/src/lib/components/layout/services/main-layout.component.service.ts +231 -0
- package/src/lib/components/layout/topbar.component.html +38 -0
- package/src/lib/components/layout/topbar.component.ts +62 -0
- package/{lib/components/tableview/index.d.ts → src/lib/components/tableview/index.ts} +5 -3
- package/src/lib/components/tableview/models/index.ts +1 -0
- package/src/lib/components/tableview/models/table.event.ts +22 -0
- package/src/lib/components/tableview/route/tableview-route.abstract.component.ts +31 -0
- package/src/lib/components/tableview/services/index.ts +1 -0
- package/src/lib/components/tableview/services/tableview.component.service.ts +22 -0
- package/src/lib/components/tableview/table/column-filter/column-filter.component.html +36 -0
- package/src/lib/components/tableview/table/column-filter/column-filter.component.ts +70 -0
- package/src/lib/components/tableview/table/column-value/column-value.component.html +14 -0
- package/src/lib/components/tableview/table/column-value/column-value.component.ts +19 -0
- package/src/lib/components/tableview/table/table.component.html +110 -0
- package/src/lib/components/tableview/table/table.component.ts +327 -0
- package/src/lib/components/tableview/tableview.component.html +37 -0
- package/src/lib/components/tableview/tableview.component.ts +78 -0
- package/src/lib/config/formly.config.ts +154 -0
- package/{lib/config/index.d.ts → src/lib/config/index.ts} +1 -1
- package/{lib/models/config/index.d.ts → src/lib/config/models/index.ts} +1 -1
- package/src/lib/config/models/mng-config.model.ts +35 -0
- package/src/lib/data-providers/base.data-provider.ts +42 -0
- package/src/lib/data-providers/editor.data-provider.ts +60 -0
- package/src/lib/data-providers/index.ts +5 -0
- package/src/lib/data-providers/lookup.data-provider.ts +29 -0
- package/src/lib/data-providers/table.data-provider.ts +8 -0
- package/src/lib/data-providers/tableview.data-provider.ts +29 -0
- package/src/lib/descriptors/action.descriptor.ts +439 -0
- package/src/lib/descriptors/editor.descriptor.ts +880 -0
- package/src/lib/descriptors/field.validator.ts +35 -0
- package/src/lib/descriptors/index.ts +7 -0
- package/src/lib/descriptors/lookup.descriptor.ts +20 -0
- package/src/lib/descriptors/model.descriptor.ts +47 -0
- package/src/lib/descriptors/table.descriptor.ts +514 -0
- package/src/lib/descriptors/tableview.descriptor.ts +180 -0
- package/src/lib/directives/component.directive.ts +18 -0
- package/src/lib/directives/index.ts +2 -0
- package/src/lib/directives/template.directive.ts +24 -0
- package/src/lib/mng-commons.module.ts +240 -0
- package/src/lib/models/index.ts +2 -0
- package/src/lib/models/router.model.ts +16 -0
- package/src/lib/models/user.model.ts +9 -0
- package/src/lib/pipes/boolean.pipe.ts +17 -0
- package/{lib/pipes/index.d.ts → src/lib/pipes/index.ts} +2 -1
- package/src/lib/pipes/property-path.pipe.ts +30 -0
- package/src/lib/services/action.service.ts +310 -0
- package/src/lib/services/commons.service.ts +407 -0
- package/src/lib/services/configuration.service.ts +98 -0
- package/{lib/services/index.d.ts → src/lib/services/index.ts} +4 -6
- package/src/lib/services/navigation.service.ts +42 -0
- package/src/lib/services/providers/commons-init.provider.ts +5 -0
- package/src/lib/services/providers/config-service.provider.ts +22 -0
- package/src/lib/services/providers/formly-config.provider.ts +39 -0
- package/{lib/services/providers/index.d.ts → src/lib/services/providers/index.ts} +3 -2
- package/src/lib/services/tokens/browser-storage.token.ts +9 -0
- package/src/lib/services/tokens/index.ts +2 -0
- package/src/lib/services/tokens/module-config.token.ts +5 -0
- package/{lib/models/types/index.d.ts → src/lib/types/index.ts} +2 -2
- package/src/lib/types/type.decorator.ts +7 -0
- package/src/lib/types/type.model.ts +12 -0
- package/src/lib/utils/editor-formly.util.ts +193 -0
- package/src/lib/utils/i18n.util.ts +148 -0
- package/{lib/utils/index.d.ts → src/lib/utils/index.ts} +5 -4
- package/src/lib/utils/model.util.ts +66 -0
- package/src/lib/utils/toast.util.ts +49 -0
- package/src/lib/utils/type.util.ts +44 -0
- package/{public-api.d.ts → src/public-api.ts} +42 -22
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/esm2020/lib/api/models/builders/query-param.builder.mjs +0 -49
- package/esm2020/lib/api/models/filter-match-type.model.mjs +0 -24
- package/esm2020/lib/api/models/filter-param.model.mjs +0 -46
- package/esm2020/lib/api/models/index.mjs +0 -9
- package/esm2020/lib/api/models/mappers.mjs +0 -17
- package/esm2020/lib/api/models/query-mode.model.mjs +0 -19
- package/esm2020/lib/api/models/query-param.model.mjs +0 -69
- package/esm2020/lib/api/models/query-result.model.mjs +0 -45
- package/esm2020/lib/api/models/serialization.model.mjs +0 -2
- package/esm2020/lib/api/services/abstract-crud-api.service.mjs +0 -72
- package/esm2020/lib/api/services/index.mjs +0 -2
- package/esm2020/lib/api/utils/index.mjs +0 -3
- package/esm2020/lib/api/utils/medius-rest.util.mjs +0 -70
- package/esm2020/lib/api/utils/object-serializer.util.mjs +0 -226
- package/esm2020/lib/components/action/action.component.mjs +0 -63
- package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +0 -148
- package/esm2020/lib/components/action/index.mjs +0 -4
- package/esm2020/lib/components/action/route/action-route.component.mjs +0 -144
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +0 -140
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +0 -58
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +0 -51
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +0 -16
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +0 -26
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +0 -94
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +0 -124
- package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +0 -17
- package/esm2020/lib/components/form/formly/fields/index.mjs +0 -8
- package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +0 -17
- package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +0 -16
- package/esm2020/lib/components/form/formly/wrappers/index.mjs +0 -3
- package/esm2020/lib/components/form/index.mjs +0 -2
- package/esm2020/lib/components/layout/app.breadcrumb.component.mjs +0 -27
- package/esm2020/lib/components/layout/app.footer.component.mjs +0 -35
- package/esm2020/lib/components/layout/app.main.component.mjs +0 -25
- package/esm2020/lib/components/layout/app.main.component.service.mjs +0 -133
- package/esm2020/lib/components/layout/app.menu.component.mjs +0 -38
- package/esm2020/lib/components/layout/app.menuitem.component.mjs +0 -243
- package/esm2020/lib/components/layout/app.topbar.component.mjs +0 -135
- package/esm2020/lib/components/layout/index.mjs +0 -7
- package/esm2020/lib/components/tableview/index.mjs +0 -4
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +0 -31
- package/esm2020/lib/components/tableview/table/table.component.mjs +0 -173
- package/esm2020/lib/components/tableview/tableview.component.mjs +0 -82
- package/esm2020/lib/components/tableview/tableview.component.service.mjs +0 -18
- package/esm2020/lib/config/formly.config.mjs +0 -165
- package/esm2020/lib/config/index.mjs +0 -2
- package/esm2020/lib/directives/index.mjs +0 -2
- package/esm2020/lib/directives/template.directive.mjs +0 -25
- package/esm2020/lib/mng-commons.module.mjs +0 -338
- package/esm2020/lib/models/action/action.model.mjs +0 -58
- package/esm2020/lib/models/action/index.mjs +0 -2
- package/esm2020/lib/models/config/index.mjs +0 -2
- package/esm2020/lib/models/config/mng-config.model.mjs +0 -3
- package/esm2020/lib/models/descriptors/action-descriptor.model.mjs +0 -283
- package/esm2020/lib/models/descriptors/editor-descriptor.model.mjs +0 -647
- package/esm2020/lib/models/descriptors/index.mjs +0 -6
- package/esm2020/lib/models/descriptors/model-descriptor.model.mjs +0 -34
- package/esm2020/lib/models/descriptors/table-descriptor.model.mjs +0 -123
- package/esm2020/lib/models/descriptors/tableview-descriptor.model.mjs +0 -124
- package/esm2020/lib/models/events/editor-event.model.mjs +0 -14
- package/esm2020/lib/models/events/index.mjs +0 -3
- package/esm2020/lib/models/events/table-event.model.mjs +0 -16
- package/esm2020/lib/models/interfaces/confirmation-service.model.mjs +0 -2
- package/esm2020/lib/models/interfaces/index.mjs +0 -2
- package/esm2020/lib/models/providers/data-provider.model.mjs +0 -86
- package/esm2020/lib/models/providers/index.mjs +0 -2
- package/esm2020/lib/models/types/index.mjs +0 -3
- package/esm2020/lib/models/types/type.decorator.mjs +0 -8
- package/esm2020/lib/models/types/type.model.mjs +0 -2
- package/esm2020/lib/models/validators/field.validator.mjs +0 -21
- package/esm2020/lib/models/validators/index.mjs +0 -2
- package/esm2020/lib/pipes/index.mjs +0 -2
- package/esm2020/lib/pipes/property-path.pipe.mjs +0 -36
- package/esm2020/lib/services/action.service.mjs +0 -239
- package/esm2020/lib/services/breadcrumb.service.mjs +0 -21
- package/esm2020/lib/services/configuration.service.mjs +0 -77
- package/esm2020/lib/services/index.mjs +0 -7
- package/esm2020/lib/services/menu.service.mjs +0 -26
- package/esm2020/lib/services/navigation.service.mjs +0 -49
- package/esm2020/lib/services/providers/config-service.provider.mjs +0 -12
- package/esm2020/lib/services/providers/formly-config.provider.mjs +0 -31
- package/esm2020/lib/services/providers/index.mjs +0 -3
- package/esm2020/lib/services/settings.service.mjs +0 -40
- package/esm2020/lib/utils/editor-formly.util.mjs +0 -165
- package/esm2020/lib/utils/i18n.util.mjs +0 -75
- package/esm2020/lib/utils/index.mjs +0 -5
- package/esm2020/lib/utils/model.util.mjs +0 -38
- package/esm2020/lib/utils/type.util.mjs +0 -43
- package/esm2020/mediusinc-mng-commons.mjs +0 -5
- package/esm2020/public-api.mjs +0 -33
- package/fesm2015/mediusinc-mng-commons.mjs +0 -5056
- package/fesm2015/mediusinc-mng-commons.mjs.map +0 -1
- package/fesm2020/mediusinc-mng-commons.mjs +0 -5012
- package/fesm2020/mediusinc-mng-commons.mjs.map +0 -1
- package/lib/api/models/builders/query-param.builder.d.ts +0 -11
- package/lib/api/models/filter-match-type.model.d.ts +0 -21
- package/lib/api/models/filter-param.model.d.ts +0 -23
- package/lib/api/models/mappers.d.ts +0 -6
- package/lib/api/models/query-param.model.d.ts +0 -31
- package/lib/api/models/query-result.model.d.ts +0 -36
- package/lib/api/services/abstract-crud-api.service.d.ts +0 -23
- package/lib/api/services/index.d.ts +0 -1
- package/lib/api/utils/medius-rest.util.d.ts +0 -6
- package/lib/api/utils/object-serializer.util.d.ts +0 -30
- package/lib/components/action/action.component.d.ts +0 -36
- package/lib/components/action/dialog/action-dialog.component.d.ts +0 -48
- package/lib/components/action/route/action-route.component.d.ts +0 -32
- package/lib/components/form/editor/form-editor.component.d.ts +0 -37
- package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +0 -21
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +0 -19
- package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +0 -6
- package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +0 -12
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +0 -17
- package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +0 -36
- package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +0 -6
- package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +0 -8
- package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +0 -8
- package/lib/components/form/index.d.ts +0 -1
- package/lib/components/layout/app.breadcrumb.component.d.ts +0 -16
- package/lib/components/layout/app.footer.component.d.ts +0 -8
- package/lib/components/layout/app.main.component.d.ts +0 -12
- package/lib/components/layout/app.main.component.service.d.ts +0 -40
- package/lib/components/layout/app.menu.component.d.ts +0 -14
- package/lib/components/layout/app.menuitem.component.d.ts +0 -31
- package/lib/components/layout/app.topbar.component.d.ts +0 -16
- package/lib/components/layout/index.d.ts +0 -6
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +0 -15
- package/lib/components/tableview/table/table.component.d.ts +0 -47
- package/lib/components/tableview/tableview.component.d.ts +0 -36
- package/lib/components/tableview/tableview.component.service.d.ts +0 -11
- package/lib/config/formly.config.d.ts +0 -8
- package/lib/directives/index.d.ts +0 -1
- package/lib/directives/template.directive.d.ts +0 -11
- package/lib/mng-commons.module.d.ts +0 -74
- package/lib/models/action/action.model.d.ts +0 -53
- package/lib/models/action/index.d.ts +0 -1
- package/lib/models/config/mng-config.model.d.ts +0 -19
- package/lib/models/descriptors/action-descriptor.model.d.ts +0 -124
- package/lib/models/descriptors/editor-descriptor.model.d.ts +0 -248
- package/lib/models/descriptors/index.d.ts +0 -5
- package/lib/models/descriptors/model-descriptor.model.d.ts +0 -15
- package/lib/models/descriptors/table-descriptor.model.d.ts +0 -45
- package/lib/models/descriptors/tableview-descriptor.model.d.ts +0 -38
- package/lib/models/events/editor-event.model.d.ts +0 -11
- package/lib/models/events/index.d.ts +0 -2
- package/lib/models/events/table-event.model.d.ts +0 -17
- package/lib/models/interfaces/confirmation-service.model.d.ts +0 -6
- package/lib/models/interfaces/index.d.ts +0 -1
- package/lib/models/providers/data-provider.model.d.ts +0 -62
- package/lib/models/providers/index.d.ts +0 -1
- package/lib/models/types/type.decorator.d.ts +0 -2
- package/lib/models/types/type.model.d.ts +0 -10
- package/lib/models/validators/field.validator.d.ts +0 -18
- package/lib/models/validators/index.d.ts +0 -1
- package/lib/pipes/property-path.pipe.d.ts +0 -7
- package/lib/services/action.service.d.ts +0 -92
- package/lib/services/breadcrumb.service.d.ts +0 -9
- package/lib/services/configuration.service.d.ts +0 -35
- package/lib/services/menu.service.d.ts +0 -11
- package/lib/services/navigation.service.d.ts +0 -14
- package/lib/services/providers/config-service.provider.d.ts +0 -5
- package/lib/services/providers/formly-config.provider.d.ts +0 -4
- package/lib/services/settings.service.d.ts +0 -18
- package/lib/utils/editor-formly.util.d.ts +0 -9
- package/lib/utils/i18n.util.d.ts +0 -14
- package/lib/utils/model.util.d.ts +0 -5
- package/lib/utils/type.util.d.ts +0 -15
- package/mediusinc-mng-commons-0.0.1-rc.3.tgz +0 -0
- package/mediusinc-mng-commons.d.ts +0 -5
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { AbstractControl } from '@angular/forms';
|
|
3
|
-
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { ClassType, EnumMemberType } from '../../models/types';
|
|
6
|
-
import { ILookupDataProvider, ITableDataProvider } from '../../models/providers';
|
|
7
|
-
import { ModelDescriptor, TableDescriptor, TableviewDescriptor } from '../../models/descriptors';
|
|
8
|
-
import { FieldValidator } from '../../models/validators';
|
|
9
|
-
import { QueryParam, QueryResult } from '../../api/models';
|
|
10
|
-
export declare class EditorDescriptor<T> {
|
|
11
|
-
static readonly defaultGroupName = "_default";
|
|
12
|
-
private readonly _model;
|
|
13
|
-
private readonly _tabs;
|
|
14
|
-
private readonly _groups;
|
|
15
|
-
private readonly _fields;
|
|
16
|
-
private _currentTabGroup?;
|
|
17
|
-
private _currentGroup?;
|
|
18
|
-
private _disabled;
|
|
19
|
-
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
20
|
-
get model(): ModelDescriptor<T>;
|
|
21
|
-
get tabs(): FieldTabGroupDescriptor<T>[];
|
|
22
|
-
get disabled(): boolean;
|
|
23
|
-
get fields(): AFieldDescriptor<any, T>[];
|
|
24
|
-
createTabGroup(name: string, title?: string): FieldTabGroupDescriptor<T>;
|
|
25
|
-
createFieldGroup(name: string, title?: string): FieldGroupDescriptor<T>;
|
|
26
|
-
addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
|
|
27
|
-
addField(property: string): FieldInputDescriptor<T>;
|
|
28
|
-
removeField(property: string): this;
|
|
29
|
-
getField(property: string): AFieldDescriptor<any, T> | null;
|
|
30
|
-
addFieldLookup<FT>(property: string, modelType: ClassType<FT>): FieldLookupDescriptor<FT, T>;
|
|
31
|
-
addFieldLookupEnum(property: string, options: Array<EnumMemberType>): FieldLookupEnumDescriptor<T>;
|
|
32
|
-
addFieldManyEditor<FT>(property: string, type: ClassType<FT>, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
|
|
33
|
-
addFieldManyToManyEditor<FT>(property: string, type: ClassType<FT>, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
|
|
34
|
-
withDisabled(disabled?: boolean): this;
|
|
35
|
-
addValidator(name: string, expression: (control: AbstractControl) => boolean): void;
|
|
36
|
-
copy(): EditorDescriptor<T>;
|
|
37
|
-
private createTabGroupDescriptor;
|
|
38
|
-
createFieldGroupDescriptor(fieldGroup: FieldGroupDescriptor<T>): this;
|
|
39
|
-
private createDefaultGroup;
|
|
40
|
-
private createDefaultTabGroup;
|
|
41
|
-
}
|
|
42
|
-
export declare abstract class AGenericFieldDescriptor<ET> {
|
|
43
|
-
protected readonly _editor: EditorDescriptor<ET>;
|
|
44
|
-
protected constructor(editor: EditorDescriptor<ET>);
|
|
45
|
-
get editor(): EditorDescriptor<ET>;
|
|
46
|
-
}
|
|
47
|
-
export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescriptor<ET> {
|
|
48
|
-
protected readonly _property: string;
|
|
49
|
-
protected _group?: AFieldGroupDescriptor<ET>;
|
|
50
|
-
protected _label?: string;
|
|
51
|
-
protected _placeholder?: string;
|
|
52
|
-
protected _required: boolean;
|
|
53
|
-
protected _disabled: boolean;
|
|
54
|
-
protected _className: string;
|
|
55
|
-
protected _getter?: (item: ET) => T;
|
|
56
|
-
protected _setter?: (item: ET, value: T) => void;
|
|
57
|
-
protected _validators: Array<FieldValidator>;
|
|
58
|
-
protected constructor(editor: EditorDescriptor<ET>, property: string);
|
|
59
|
-
abstract copy(): AFieldDescriptor<T, ET>;
|
|
60
|
-
get property(): string;
|
|
61
|
-
get group(): AFieldGroupDescriptor<ET> | undefined;
|
|
62
|
-
get label(): string | undefined;
|
|
63
|
-
get placeholder(): string | undefined;
|
|
64
|
-
get required(): boolean;
|
|
65
|
-
get disabled(): boolean;
|
|
66
|
-
get className(): string;
|
|
67
|
-
get getter(): ((item: ET) => T) | undefined;
|
|
68
|
-
get setter(): ((item: ET, value: T) => void) | undefined;
|
|
69
|
-
get validators(): FieldValidator[];
|
|
70
|
-
withLabel(label: string): this;
|
|
71
|
-
withPlaceholder(placeholder: string): this;
|
|
72
|
-
withRequired(required?: boolean): this;
|
|
73
|
-
withDisabled(disabled?: boolean): this;
|
|
74
|
-
withClassName(className: string): this;
|
|
75
|
-
withGetter(getter: (item: ET) => T): this;
|
|
76
|
-
withSetter(setter: (item: ET, value: T) => void): this;
|
|
77
|
-
withValidator(name: string, expression: (control: AbstractControl) => boolean, message: (err: any, field: FormlyFieldConfig) => string): this;
|
|
78
|
-
protected copyFieldsTo(obj: AFieldDescriptor<T, ET>): void;
|
|
79
|
-
}
|
|
80
|
-
export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string | number | boolean | Date, ET> {
|
|
81
|
-
private _fieldType;
|
|
82
|
-
private _rows?;
|
|
83
|
-
private _numberMin?;
|
|
84
|
-
private _numberMax?;
|
|
85
|
-
private _numberStep?;
|
|
86
|
-
private _numberMinFractionDigits?;
|
|
87
|
-
private _numberMaxFractionDigits?;
|
|
88
|
-
private _radioOptions;
|
|
89
|
-
private _datePickerFormat?;
|
|
90
|
-
private _datePickerMin?;
|
|
91
|
-
private _datePickerMax?;
|
|
92
|
-
private _datePickerShowTime;
|
|
93
|
-
constructor(editor: EditorDescriptor<ET>, property: string);
|
|
94
|
-
get fieldType(): FieldInputDescriptor.TypeEnum;
|
|
95
|
-
get numberStep(): number | undefined;
|
|
96
|
-
get numberMin(): number | undefined;
|
|
97
|
-
get numberMax(): number | undefined;
|
|
98
|
-
get rows(): number | undefined;
|
|
99
|
-
get numberMinFractionDigits(): number | undefined;
|
|
100
|
-
get numberMaxFractionDigits(): number | undefined;
|
|
101
|
-
get radioOptions(): string[];
|
|
102
|
-
get datePickerFormat(): string | undefined;
|
|
103
|
-
get datePickerMin(): Date | undefined;
|
|
104
|
-
get datePickerMax(): Date | undefined;
|
|
105
|
-
get datePickerShowTime(): boolean;
|
|
106
|
-
asTextarea(rows?: number): this;
|
|
107
|
-
asNumber(step?: number, min?: number, max?: number, minFractionDigits?: number, maxFractionDigits?: number): this;
|
|
108
|
-
asSwitch(): this;
|
|
109
|
-
asRadio(options: Array<string>): this;
|
|
110
|
-
asDatePicker(format?: string, min?: Date, max?: Date, showTime?: boolean): this;
|
|
111
|
-
copy(): FieldInputDescriptor<ET>;
|
|
112
|
-
}
|
|
113
|
-
export declare namespace FieldInputDescriptor {
|
|
114
|
-
enum TypeEnum {
|
|
115
|
-
Text = 0,
|
|
116
|
-
Textarea = 1,
|
|
117
|
-
Number = 2,
|
|
118
|
-
Switch = 3,
|
|
119
|
-
Radio = 4,
|
|
120
|
-
Datepicker = 5
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET> {
|
|
124
|
-
protected readonly _modelType: ClassType<T> | null;
|
|
125
|
-
protected _fieldType: FieldLookupDescriptor.TypeEnum;
|
|
126
|
-
protected _itemsLabelProperty?: string;
|
|
127
|
-
protected _itemsValueProperty?: string;
|
|
128
|
-
protected _dataKeyProperty?: string;
|
|
129
|
-
protected _dataProvider?: ILookupDataProvider<T, any>;
|
|
130
|
-
constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T> | null);
|
|
131
|
-
get fieldType(): FieldLookupDescriptor.TypeEnum;
|
|
132
|
-
get itemsLabelProperty(): string | undefined;
|
|
133
|
-
get itemsValueProperty(): string | undefined;
|
|
134
|
-
get dataKeyProperty(): string | undefined;
|
|
135
|
-
get dataProvider(): ILookupDataProvider<T, any> | undefined;
|
|
136
|
-
withItemsLabelProperty(itemsLabelProperty: string): this;
|
|
137
|
-
withItemsValueProperty(itemsValueProperty: string): this;
|
|
138
|
-
withDataKeyProperty(property: string): this;
|
|
139
|
-
withLookup<S>(lookup: (queryParam?: QueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
|
|
140
|
-
withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
|
|
141
|
-
asAutocomplete(): this;
|
|
142
|
-
copy(): FieldLookupDescriptor<T, ET>;
|
|
143
|
-
}
|
|
144
|
-
export declare namespace FieldLookupDescriptor {
|
|
145
|
-
enum TypeEnum {
|
|
146
|
-
Dropdown = 0,
|
|
147
|
-
Autocomplete = 1
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
export declare class FieldLookupEnumDescriptor<ET> extends FieldLookupDescriptor<EnumMemberType, ET> {
|
|
151
|
-
private readonly _enumName;
|
|
152
|
-
constructor(editor: EditorDescriptor<ET>, property: string, enumName: string, options: Array<EnumMemberType>);
|
|
153
|
-
get enumName(): string;
|
|
154
|
-
copy(): FieldLookupEnumDescriptor<ET>;
|
|
155
|
-
}
|
|
156
|
-
export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescriptor<T, ET> {
|
|
157
|
-
private readonly _model;
|
|
158
|
-
private readonly _mainTableDescriptor;
|
|
159
|
-
private readonly _lookupTableDescriptor;
|
|
160
|
-
private _fieldType;
|
|
161
|
-
private _lookupTableDataProvider;
|
|
162
|
-
private _actions;
|
|
163
|
-
private _hasLookupExcludeValues;
|
|
164
|
-
private _excludeFilterProperty;
|
|
165
|
-
private _excludeValueProperty;
|
|
166
|
-
constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T>, mainTableDescriptor: TableDescriptor<T>, lookupTableDescriptor: TableDescriptor<T>);
|
|
167
|
-
get mainTableDescriptor(): TableDescriptor<T>;
|
|
168
|
-
get lookupTableDescriptor(): TableDescriptor<T>;
|
|
169
|
-
get lookupTableDataProvider(): ITableDataProvider<T, any> | null;
|
|
170
|
-
get actions(): FieldManyToManyEditorDescriptor.ActionEnum[];
|
|
171
|
-
get fieldType(): FieldManyToManyEditorDescriptor.TypeEnum;
|
|
172
|
-
get hasLookupExcludeValues(): boolean;
|
|
173
|
-
get excludeFilterProperty(): string;
|
|
174
|
-
get excludeValueProperty(): string;
|
|
175
|
-
withLookup<S>(getAll: (queryParam: QueryParam, service?: S) => Observable<QueryResult<T>>, serviceType?: Type<S>): this;
|
|
176
|
-
withLookupDataProvider(dataProvider: ITableDataProvider<T, any>): this;
|
|
177
|
-
withActions(actions?: Array<FieldManyToManyEditorDescriptor.ActionEnum>): this;
|
|
178
|
-
withLookupExclude(filterProperty: string, valueProperty: string, hasLookupExclude?: boolean): this;
|
|
179
|
-
copy(): FieldManyToManyEditorDescriptor<T, ET>;
|
|
180
|
-
}
|
|
181
|
-
export declare namespace FieldManyToManyEditorDescriptor {
|
|
182
|
-
enum TypeEnum {
|
|
183
|
-
DialogTableMultiselect = 0
|
|
184
|
-
}
|
|
185
|
-
enum ActionEnum {
|
|
186
|
-
Add = 0,
|
|
187
|
-
Delete = 1
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
export declare class FieldManyEditorDescriptor<T, ET> extends AFieldDescriptor<T, ET> {
|
|
191
|
-
private readonly _modelType;
|
|
192
|
-
private readonly _tableviewDescriptor;
|
|
193
|
-
private _fieldType;
|
|
194
|
-
private _actions;
|
|
195
|
-
constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T>, tableviewDescriptor: TableviewDescriptor<T>);
|
|
196
|
-
get tableviewDescriptor(): TableviewDescriptor<T>;
|
|
197
|
-
get tableDescriptor(): TableDescriptor<T>;
|
|
198
|
-
get editorForCreate(): EditorDescriptor<T>;
|
|
199
|
-
get editorForRead(): EditorDescriptor<T>;
|
|
200
|
-
get editorForUpdate(): EditorDescriptor<T>;
|
|
201
|
-
get fieldType(): FieldManyEditorDescriptor.TypeEnum;
|
|
202
|
-
get actions(): FieldManyEditorDescriptor.ActionEnum[];
|
|
203
|
-
withActions(actions?: Array<FieldManyToManyEditorDescriptor.ActionEnum>): this;
|
|
204
|
-
copy(): FieldManyEditorDescriptor<T, ET>;
|
|
205
|
-
}
|
|
206
|
-
export declare namespace FieldManyEditorDescriptor {
|
|
207
|
-
enum TypeEnum {
|
|
208
|
-
DialogEditor = 0
|
|
209
|
-
}
|
|
210
|
-
enum ActionEnum {
|
|
211
|
-
Add = 0,
|
|
212
|
-
Edit = 1,
|
|
213
|
-
Delete = 2
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
export declare abstract class AFieldGroupDescriptor<ET> extends AGenericFieldDescriptor<ET> {
|
|
217
|
-
protected readonly _name: string;
|
|
218
|
-
protected readonly _default: boolean;
|
|
219
|
-
protected _title?: string;
|
|
220
|
-
protected _fields: AGenericFieldDescriptor<ET>[];
|
|
221
|
-
protected _validators: Array<FieldValidator>;
|
|
222
|
-
protected constructor(editor: EditorDescriptor<ET>, name: string);
|
|
223
|
-
abstract get fields(): AGenericFieldDescriptor<ET>[];
|
|
224
|
-
abstract groupName(): string;
|
|
225
|
-
abstract addField(field: AGenericFieldDescriptor<ET>): this;
|
|
226
|
-
abstract copy(): AFieldGroupDescriptor<ET>;
|
|
227
|
-
get baseName(): string;
|
|
228
|
-
get name(): string;
|
|
229
|
-
get default(): boolean;
|
|
230
|
-
get title(): string | undefined;
|
|
231
|
-
get validators(): FieldValidator[];
|
|
232
|
-
withTitle(title: string): this;
|
|
233
|
-
withValidator(name: string, expression: (control: AbstractControl) => boolean): this;
|
|
234
|
-
}
|
|
235
|
-
export declare class FieldTabGroupDescriptor<ET> extends AFieldGroupDescriptor<ET> {
|
|
236
|
-
constructor(editor: EditorDescriptor<ET>, name: string);
|
|
237
|
-
get fields(): Array<FieldGroupDescriptor<ET>>;
|
|
238
|
-
groupName(): string;
|
|
239
|
-
addField(field: FieldGroupDescriptor<ET>): this;
|
|
240
|
-
copy(): FieldTabGroupDescriptor<ET>;
|
|
241
|
-
}
|
|
242
|
-
export declare class FieldGroupDescriptor<ET> extends AFieldGroupDescriptor<ET> {
|
|
243
|
-
constructor(editor: EditorDescriptor<ET>, name: string);
|
|
244
|
-
get fields(): Array<AFieldDescriptor<any, ET>>;
|
|
245
|
-
groupName(): string;
|
|
246
|
-
addField(field: AFieldDescriptor<any, ET>): this;
|
|
247
|
-
copy(): FieldGroupDescriptor<ET>;
|
|
248
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ClassType } from '../types';
|
|
2
|
-
export declare class ModelDescriptor<T> {
|
|
3
|
-
private readonly _type;
|
|
4
|
-
private readonly _typeName;
|
|
5
|
-
private _idPropertyName?;
|
|
6
|
-
private _titlePropertyName?;
|
|
7
|
-
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
8
|
-
get type(): ClassType<T>;
|
|
9
|
-
get typeName(): string;
|
|
10
|
-
get idPropertyName(): string | undefined;
|
|
11
|
-
get titlePropertyName(): string | undefined;
|
|
12
|
-
withIdPropertyName(idProperty: string): this;
|
|
13
|
-
withTitlePropertyName(titleProperty: string): this;
|
|
14
|
-
copy(): ModelDescriptor<T>;
|
|
15
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ModelDescriptor } from './model-descriptor.model';
|
|
2
|
-
import { ClassType } from '../types';
|
|
3
|
-
export declare class TableDescriptor<T> {
|
|
4
|
-
private readonly _model;
|
|
5
|
-
private _columns;
|
|
6
|
-
private _title?;
|
|
7
|
-
private _dataKeyProperty?;
|
|
8
|
-
private _hasDefaultSort;
|
|
9
|
-
private _defaultSortProperty;
|
|
10
|
-
private _defaultSortAsc;
|
|
11
|
-
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
12
|
-
get model(): ModelDescriptor<T>;
|
|
13
|
-
get columns(): ColumnDescriptor<any>[];
|
|
14
|
-
get title(): string | undefined;
|
|
15
|
-
get dataKeyProperty(): string | undefined;
|
|
16
|
-
get hasDefaultSort(): boolean;
|
|
17
|
-
get defaultSortProperty(): string[];
|
|
18
|
-
get defaultSortAsc(): boolean[];
|
|
19
|
-
addColumnDescriptor<CT>(column: ColumnDescriptor<CT>): TableDescriptor<T>;
|
|
20
|
-
addColumn(property: string): ColumnDescriptor<string>;
|
|
21
|
-
addColumnNumber(property: string): ColumnDescriptor<number>;
|
|
22
|
-
withTitle(title: string): TableDescriptor<T>;
|
|
23
|
-
withDataKeyProperty(property: string): TableDescriptor<T>;
|
|
24
|
-
withDefaultSort(property: string, asc?: boolean): TableDescriptor<T>;
|
|
25
|
-
private setDataKeyFromColumn;
|
|
26
|
-
copy(): TableDescriptor<T>;
|
|
27
|
-
}
|
|
28
|
-
export declare class ColumnDescriptor<T> {
|
|
29
|
-
private readonly _property;
|
|
30
|
-
private _displayPropertyPath?;
|
|
31
|
-
private _title?;
|
|
32
|
-
private _isSortEnabled;
|
|
33
|
-
private _isFilterEnabled;
|
|
34
|
-
constructor(property: string);
|
|
35
|
-
get property(): string;
|
|
36
|
-
get displayPropertyPath(): string | undefined;
|
|
37
|
-
get title(): string | undefined;
|
|
38
|
-
get isSortEnabled(): boolean;
|
|
39
|
-
get isFilterEnabled(): boolean;
|
|
40
|
-
withTitle(title: string): ColumnDescriptor<T>;
|
|
41
|
-
withDisplayPropertyPath(displayPropertyPath: string): ColumnDescriptor<T>;
|
|
42
|
-
withFilter(isEnabled?: boolean): ColumnDescriptor<T>;
|
|
43
|
-
withSort(isEnabled?: boolean): ColumnDescriptor<T>;
|
|
44
|
-
copy(): ColumnDescriptor<T>;
|
|
45
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { AbstractControl } from '@angular/forms';
|
|
2
|
-
import { ModelDescriptor } from './model-descriptor.model';
|
|
3
|
-
import { AFieldDescriptor, EditorDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor } from './editor-descriptor.model';
|
|
4
|
-
import { ColumnDescriptor, TableDescriptor } from './table-descriptor.model';
|
|
5
|
-
import { ClassType, EnumMemberType } from '../types';
|
|
6
|
-
export declare class TableviewDescriptor<T> {
|
|
7
|
-
private readonly _model;
|
|
8
|
-
private _table;
|
|
9
|
-
private _viewEditor;
|
|
10
|
-
private _addEditor;
|
|
11
|
-
private _editEditor;
|
|
12
|
-
private _tableTitle;
|
|
13
|
-
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
14
|
-
get model(): ModelDescriptor<T>;
|
|
15
|
-
get table(): TableDescriptor<T>;
|
|
16
|
-
get viewEditor(): EditorDescriptor<T>;
|
|
17
|
-
get addEditor(): EditorDescriptor<T>;
|
|
18
|
-
get editEditor(): EditorDescriptor<T>;
|
|
19
|
-
get tableTitle(): string;
|
|
20
|
-
withTableDescriptor(descriptor: TableDescriptor<T>): this;
|
|
21
|
-
withViewDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
22
|
-
withAddDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
23
|
-
withEditDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
24
|
-
withTableTitle(title: string): this;
|
|
25
|
-
withValidator(name: string, expression: (control: AbstractControl) => boolean): this;
|
|
26
|
-
addColumnDescriptor<CT>(column: ColumnDescriptor<CT>): TableDescriptor<T>;
|
|
27
|
-
addColumn(property: string): ColumnDescriptor<string>;
|
|
28
|
-
addColumnNumber(property: string): ColumnDescriptor<number>;
|
|
29
|
-
createTabGroup(name: string, title?: string): this;
|
|
30
|
-
createFieldGroup(name: string, title?: string): this;
|
|
31
|
-
addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
|
|
32
|
-
addField(property: string): FieldInputDescriptor<T>;
|
|
33
|
-
addFieldLookup<FT>(property: string, modelType: ClassType<FT>): FieldLookupDescriptor<FT, T>;
|
|
34
|
-
addFieldLookupEnum(property: string, options: Array<EnumMemberType>): FieldLookupEnumDescriptor<T>;
|
|
35
|
-
addFieldManyEditor<FT>(property: string, type: ClassType<FT>, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
|
|
36
|
-
addFieldManyToManyEditor<FT>(property: string, type: ClassType<FT>, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
|
|
37
|
-
copy(): TableviewDescriptor<T>;
|
|
38
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare class MngEditorSubmitEvent<T> {
|
|
2
|
-
readonly formItem: T;
|
|
3
|
-
success: boolean;
|
|
4
|
-
constructor(formItem: T);
|
|
5
|
-
}
|
|
6
|
-
export declare class MngEditorItemEvent<T> {
|
|
7
|
-
readonly item: T;
|
|
8
|
-
constructor(item: T);
|
|
9
|
-
}
|
|
10
|
-
export declare class MngEditorSubmitTriggerEvent {
|
|
11
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LazyLoadEvent } from 'primeng/api';
|
|
2
|
-
import { QueryParam } from '../../api/models';
|
|
3
|
-
import { ColumnDescriptor } from '../descriptors';
|
|
4
|
-
export declare class MngTableLoadEvent {
|
|
5
|
-
queryParam?: QueryParam;
|
|
6
|
-
originalEvent?: LazyLoadEvent;
|
|
7
|
-
}
|
|
8
|
-
export declare class MngTableCellClickEvent<T> {
|
|
9
|
-
readonly column: ColumnDescriptor<any>;
|
|
10
|
-
readonly rowItem: T;
|
|
11
|
-
readonly rowIndex: number;
|
|
12
|
-
constructor(column: ColumnDescriptor<any>, rowItem: T, rowIndex: number);
|
|
13
|
-
}
|
|
14
|
-
export declare class MngTableReloadEvent {
|
|
15
|
-
resetParams: boolean;
|
|
16
|
-
emitEvent: boolean;
|
|
17
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ConfirmationService } from 'primeng/api';
|
|
2
|
-
import { ActionDescriptor } from '../descriptors';
|
|
3
|
-
export interface IConfirmationService {
|
|
4
|
-
getConfirmationService(): ConfirmationService;
|
|
5
|
-
getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './confirmation-service.model';
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { QueryParam, QueryResult } from '../../api/models';
|
|
4
|
-
import { ClassType, IdType } from '../types';
|
|
5
|
-
export interface IDataProvider<T, S> {
|
|
6
|
-
modelType: ClassType<T> | null;
|
|
7
|
-
serviceType?: Type<S>;
|
|
8
|
-
}
|
|
9
|
-
export interface ITableDataProvider<T, S> extends IDataProvider<T, S> {
|
|
10
|
-
getAll: (queryParam: QueryParam, service?: S) => Observable<QueryResult<T>>;
|
|
11
|
-
}
|
|
12
|
-
export interface IEditorDataProvider<T, S> extends IDataProvider<T, S> {
|
|
13
|
-
fetch: (id: IdType, service?: S) => Observable<T>;
|
|
14
|
-
create?: (item?: T, service?: S) => Observable<T>;
|
|
15
|
-
update?: (id: IdType, item?: T, service?: S) => Observable<T>;
|
|
16
|
-
delete?: (id: IdType, item?: T, service?: S) => Observable<T>;
|
|
17
|
-
}
|
|
18
|
-
export interface ITableviewDataProvider<T, S> extends IEditorDataProvider<T, S> {
|
|
19
|
-
getAll: (queryParam: QueryParam, service?: S) => Observable<QueryResult<T>>;
|
|
20
|
-
}
|
|
21
|
-
export interface ILookupDataProvider<T, S> extends IDataProvider<T, S> {
|
|
22
|
-
lookup: (queryParam?: QueryParam, service?: S, search?: string) => Observable<Array<T>>;
|
|
23
|
-
}
|
|
24
|
-
declare class DataProvider<T, S> {
|
|
25
|
-
protected _modelType: ClassType<T> | null;
|
|
26
|
-
protected _serviceType?: Type<S>;
|
|
27
|
-
protected _enumName?: string;
|
|
28
|
-
constructor(modelType: ClassType<T> | null, serviceType?: Type<S>);
|
|
29
|
-
get serviceType(): Type<S> | undefined;
|
|
30
|
-
get modelType(): ClassType<T> | null;
|
|
31
|
-
get enumName(): string | undefined;
|
|
32
|
-
withServiceType(type: Type<S>): this;
|
|
33
|
-
withEnumName(enumName: string): this;
|
|
34
|
-
}
|
|
35
|
-
export declare class LookupDataProvider<T, S> extends DataProvider<T, S> implements ILookupDataProvider<T, S> {
|
|
36
|
-
protected _lookup: (queryParam?: QueryParam, service?: S, search?: string) => Observable<Array<T>>;
|
|
37
|
-
constructor(modelType: ClassType<T> | null, serviceType?: Type<S>);
|
|
38
|
-
get lookup(): (queryParam?: QueryParam | undefined, service?: S | undefined, search?: string | undefined) => Observable<T[]>;
|
|
39
|
-
withLookup(lookup: (queryParam?: QueryParam, service?: S, search?: string) => Observable<Array<T>>): this;
|
|
40
|
-
}
|
|
41
|
-
export declare class EditorDataProvider<T, S> extends DataProvider<T, S> implements IEditorDataProvider<T, S> {
|
|
42
|
-
protected _fetch: (id: IdType, service?: S) => Observable<T>;
|
|
43
|
-
protected _create?: (item?: T, service?: S) => Observable<T>;
|
|
44
|
-
protected _update?: (id: IdType, item?: T, service?: S) => Observable<T>;
|
|
45
|
-
protected _delete?: (id: IdType, item?: T, service?: S) => Observable<T>;
|
|
46
|
-
constructor(modelType: ClassType<T>, serviceType?: Type<S>);
|
|
47
|
-
get fetch(): (id: IdType, service?: S | undefined) => Observable<T>;
|
|
48
|
-
get create(): ((item?: T | undefined, service?: S | undefined) => Observable<T>) | undefined;
|
|
49
|
-
get update(): ((id: IdType, item?: T | undefined, service?: S | undefined) => Observable<T>) | undefined;
|
|
50
|
-
get delete(): ((id: IdType, item?: T | undefined, service?: S | undefined) => Observable<T>) | undefined;
|
|
51
|
-
withFetch(fetch: (id: IdType, service?: S) => Observable<T>): this;
|
|
52
|
-
withCreate(create: (item?: T, service?: S) => Observable<T>): this;
|
|
53
|
-
withUpdate(update: (id: IdType, item?: T, service?: S) => Observable<T>): this;
|
|
54
|
-
withDelete(deleteFn: (id: IdType, item?: T, service?: S) => Observable<T>): this;
|
|
55
|
-
}
|
|
56
|
-
export declare class TableviewDataProvider<T, S> extends EditorDataProvider<T, S> implements ITableviewDataProvider<T, S>, ITableDataProvider<T, S>, IEditorDataProvider<T, S> {
|
|
57
|
-
protected _getAll: (queryParam: QueryParam, service?: S) => Observable<QueryResult<T>>;
|
|
58
|
-
constructor(modelType: ClassType<T>, serviceType?: Type<S>);
|
|
59
|
-
get getAll(): (queryParam: QueryParam, service?: S | undefined) => Observable<QueryResult<T>>;
|
|
60
|
-
withGetAll(getAll: (queryParam: QueryParam, service?: S) => Observable<QueryResult<T>>): this;
|
|
61
|
-
}
|
|
62
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './data-provider.model';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface ClassType<T> extends Function {
|
|
2
|
-
new (...args: any[]): T;
|
|
3
|
-
}
|
|
4
|
-
export interface EnumType {
|
|
5
|
-
[key: number]: EnumMemberType;
|
|
6
|
-
}
|
|
7
|
-
export declare type EnumMemberType = string | number;
|
|
8
|
-
export declare type IdType = number | string;
|
|
9
|
-
export declare type PrimitiveType = string | boolean | number;
|
|
10
|
-
export declare type PropertyType = PrimitiveType | Date | EnumType;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AbstractControl } from '@angular/forms';
|
|
2
|
-
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
export declare class FieldValidator {
|
|
5
|
-
private readonly _name;
|
|
6
|
-
private readonly _expression?;
|
|
7
|
-
private readonly _message?;
|
|
8
|
-
private readonly _options?;
|
|
9
|
-
constructor(name: string, expression?: (control: AbstractControl) => boolean, message?: (err: any, field: FormlyFieldConfig) => string | Observable<string>, options?: {
|
|
10
|
-
errorPath: string;
|
|
11
|
-
});
|
|
12
|
-
get name(): string;
|
|
13
|
-
get expression(): ((control: AbstractControl) => boolean) | undefined;
|
|
14
|
-
get message(): ((err: any, field: FormlyFieldConfig) => string | Observable<string>) | undefined;
|
|
15
|
-
get options(): {
|
|
16
|
-
errorPath: string;
|
|
17
|
-
} | undefined;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './field.validator';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class PropertyPathPipe implements PipeTransform {
|
|
4
|
-
transform(value: any, path?: string): any;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyPathPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<PropertyPathPipe, "propertyPath">;
|
|
7
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { DialogService } from 'primeng/dynamicdialog';
|
|
4
|
-
import { ConfirmationService } from 'primeng/api';
|
|
5
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
7
|
-
import { ActionActivationResult, ActionData, ActionExecContext, ActionRunResult, ActionTriggerResult } from '../models/action';
|
|
8
|
-
import { ActionDescriptor, ActionEditorDescriptor } from '../models/descriptors';
|
|
9
|
-
import { MngTableCellClickEvent } from '../models/events';
|
|
10
|
-
import { IDataProvider, IEditorDataProvider } from '../models/providers';
|
|
11
|
-
import { IdType } from '../models/types';
|
|
12
|
-
import { TableviewComponentService } from '../components/tableview/tableview.component.service';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
export declare class ActionService {
|
|
15
|
-
private injector;
|
|
16
|
-
private router;
|
|
17
|
-
private dialogService;
|
|
18
|
-
private confirmationService;
|
|
19
|
-
private translate;
|
|
20
|
-
constructor(injector: Injector, router: Router, dialogService: DialogService, confirmationService: ConfirmationService, translate: TranslateService);
|
|
21
|
-
getActionExecContext<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, dataProvider?: IDataProvider<T, S>, tableview?: TableviewComponentService<T, S>, sourceComponent?: any, actionData?: ActionData): ActionExecContext<T, S, IDataProvider<T, S>>;
|
|
22
|
-
runAction<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, dataProvider?: IDataProvider<T, S>, sourceComponent?: any, tableview?: TableviewComponentService<T, S>, actionData?: ActionData): Observable<ActionRunResult<T, S, IDataProvider<T, S>>>;
|
|
23
|
-
/**
|
|
24
|
-
* Runs editor action save function usually triggered on form submit.
|
|
25
|
-
*
|
|
26
|
-
* @param action Action descriptor.
|
|
27
|
-
* @param itemId Item id (if exists).
|
|
28
|
-
* @param formItem Item instance (from form).
|
|
29
|
-
* @param dataProvider Data provider
|
|
30
|
-
* @param sourceComponent Source component from where the fetch function was called.
|
|
31
|
-
* @param tableview Tableview component.
|
|
32
|
-
* @param actionData Additional action data.
|
|
33
|
-
*/
|
|
34
|
-
runEditorSave<T, S>(action: ActionEditorDescriptor<T>, itemId?: IdType, formItem?: T, dataProvider?: IEditorDataProvider<T, S>, sourceComponent?: any, tableview?: TableviewComponentService<T, S>, actionData?: ActionData): Observable<ActionRunResult<T, S, IEditorDataProvider<T, S>>>;
|
|
35
|
-
/**
|
|
36
|
-
* Runs editor action fetch function.
|
|
37
|
-
*
|
|
38
|
-
* @param action Action descriptor.
|
|
39
|
-
* @param itemId Item id.
|
|
40
|
-
* @param dataProvider Data provider
|
|
41
|
-
* @param sourceComponent Source component from where the fetch function was called.
|
|
42
|
-
* @param tableview Tableview component.
|
|
43
|
-
* @param actionData Additional action data.
|
|
44
|
-
*/
|
|
45
|
-
runEditorFetch<T, S>(action: ActionEditorDescriptor<T>, itemId?: IdType, dataProvider?: IEditorDataProvider<T, S>, sourceComponent?: any, tableview?: TableviewComponentService<T, S>, actionData?: ActionData): Observable<ActionRunResult<T, S, IEditorDataProvider<T, S>>>;
|
|
46
|
-
/**
|
|
47
|
-
* Prepares action run context for action of type editor.
|
|
48
|
-
*
|
|
49
|
-
* @param item Item instance (if exists).
|
|
50
|
-
* @param itemId Item id (if exists).
|
|
51
|
-
* @param dataProvider Data provider.
|
|
52
|
-
* @param sourceComponent Source component from where the context preparation was called.
|
|
53
|
-
* @param tableview Tableview component.
|
|
54
|
-
* @param actionData Additional action data.
|
|
55
|
-
*/
|
|
56
|
-
private prepareRunContextForEditor;
|
|
57
|
-
/**
|
|
58
|
-
* Gets service instance of data provider.
|
|
59
|
-
*
|
|
60
|
-
* @param dataProvider Data provider instance.
|
|
61
|
-
*/
|
|
62
|
-
private getDataProviderService;
|
|
63
|
-
/**
|
|
64
|
-
* Activates action.
|
|
65
|
-
*
|
|
66
|
-
* @param action Action descriptor.
|
|
67
|
-
* @param item Item instance (if exists).
|
|
68
|
-
* @param itemId Item id (if exists).
|
|
69
|
-
* @param actionData Optional additional action data.
|
|
70
|
-
* @param tableview Tableview component.
|
|
71
|
-
* @param sourceComponent Source activation component.
|
|
72
|
-
*/
|
|
73
|
-
activateAction<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, actionData?: ActionData, tableview?: TableviewComponentService<T, S>, sourceComponent?: any): Observable<ActionActivationResult<T, S, IDataProvider<T, S>>>;
|
|
74
|
-
/**
|
|
75
|
-
* Triggers action from table row click position.
|
|
76
|
-
*
|
|
77
|
-
* @param action Action descriptor.
|
|
78
|
-
* @param event Target table click event.
|
|
79
|
-
* @param route Currently activate route.
|
|
80
|
-
*/
|
|
81
|
-
triggerRowClickAction<T>(action: ActionDescriptor<T>, event: MngTableCellClickEvent<T>, route?: ActivatedRoute | null): Observable<ActionTriggerResult<T, unknown, IDataProvider<T, unknown>>>;
|
|
82
|
-
/**
|
|
83
|
-
* Triggers action with optional data (item, itemId, ...) and currently activated route.
|
|
84
|
-
*
|
|
85
|
-
* @param action Action.
|
|
86
|
-
* @param actionData Optional action data.
|
|
87
|
-
* @param route Optional activated route.
|
|
88
|
-
*/
|
|
89
|
-
triggerAction<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, actionData?: ActionData, route?: ActivatedRoute, tableview?: TableviewComponentService<T, S>, sourceComponent?: any): Observable<ActionTriggerResult<T, S, IDataProvider<T, S>>>;
|
|
90
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionService, never>;
|
|
91
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ActionService>;
|
|
92
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MenuItem } from 'primeng/api';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class AppBreadcrumbService {
|
|
4
|
-
private itemsSource;
|
|
5
|
-
itemsHandler: import("rxjs").Observable<MenuItem[]>;
|
|
6
|
-
setItems(items: MenuItem[]): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppBreadcrumbService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AppBreadcrumbService>;
|
|
9
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export declare class ConfigurationService {
|
|
4
|
-
private http;
|
|
5
|
-
private static _instance;
|
|
6
|
-
static init(httpClient: HttpClient): ConfigurationService;
|
|
7
|
-
static get(): ConfigurationService;
|
|
8
|
-
private projectEnvironment?;
|
|
9
|
-
private jsonEnvironments;
|
|
10
|
-
private configuration;
|
|
11
|
-
private constructor();
|
|
12
|
-
/**
|
|
13
|
-
* Add project environment source.
|
|
14
|
-
* @param environemnt Environment.
|
|
15
|
-
*/
|
|
16
|
-
addEnvironmentSource(environment: any): void;
|
|
17
|
-
/**
|
|
18
|
-
* Adds new config source from JSON file.
|
|
19
|
-
* @param url Url to JSON file.
|
|
20
|
-
*/
|
|
21
|
-
addJsonSource(url?: string): Observable<boolean>;
|
|
22
|
-
/**
|
|
23
|
-
* Get configuration.
|
|
24
|
-
*/
|
|
25
|
-
getConfig(): any;
|
|
26
|
-
/**
|
|
27
|
-
* Get configuration value for key.
|
|
28
|
-
* @param key Configuration key.
|
|
29
|
-
*/
|
|
30
|
-
getConfigValue(key: string): any;
|
|
31
|
-
/**
|
|
32
|
-
* Merges configuration from multiple sources with
|
|
33
|
-
*/
|
|
34
|
-
private mergeConfigs;
|
|
35
|
-
}
|