@mediusinc/mng-commons 0.2.0 → 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/karma.conf.js +51 -0
- package/ng-package.json +14 -0
- package/package.json +3 -24
- 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/filter-match-type.model.d.ts → src/lib/api/models/query-mode.model.ts} +18 -23
- 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/{lib/api/services/index.d.ts → src/lib/api/services/index.ts} +1 -1
- 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/{lib/components/action/models/action-confirmation-service.model.d.ts → src/lib/components/action/models/action-confirmation-service.model.ts} +7 -6
- package/src/lib/components/action/models/action-execution.model.ts +81 -0
- package/{lib/components/action/models/index.d.ts → src/lib/components/action/models/index.ts} +2 -2
- 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/{lib/components/form/index.d.ts → src/lib/components/form/index.ts} +3 -3
- package/src/lib/components/form/models/form-editor.event.ts +7 -0
- package/{lib/components/form/models/index.d.ts → src/lib/components/form/models/index.ts} +1 -1
- 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/{lib/components/layout/index.d.ts → src/lib/components/layout/index.ts} +6 -6
- 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/{lib/components/layout/services/index.d.ts → src/lib/components/layout/services/index.ts} +1 -1
- 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 -5
- package/{lib/components/tableview/models/index.d.ts → src/lib/components/tableview/models/index.ts} +1 -1
- 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/{lib/components/tableview/services/index.d.ts → src/lib/components/tableview/services/index.ts} +1 -1
- 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/config/models/index.d.ts → src/lib/config/models/index.ts} +1 -1
- package/{lib/config/models/mng-config.model.d.ts → src/lib/config/models/mng-config.model.ts} +35 -34
- package/src/lib/data-providers/base.data-provider.ts +42 -0
- package/src/lib/data-providers/editor.data-provider.ts +60 -0
- package/{lib/data-providers/index.d.ts → src/lib/data-providers/index.ts} +5 -5
- package/src/lib/data-providers/lookup.data-provider.ts +29 -0
- package/{lib/data-providers/table.data-provider.d.ts → src/lib/data-providers/table.data-provider.ts} +8 -6
- 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/{lib/descriptors/index.d.ts → src/lib/descriptors/index.ts} +7 -7
- package/{lib/descriptors/lookup.descriptor.d.ts → src/lib/descriptors/lookup.descriptor.ts} +20 -17
- 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/{lib/directives/index.d.ts → src/lib/directives/index.ts} +2 -2
- package/src/lib/directives/template.directive.ts +24 -0
- package/src/lib/mng-commons.module.ts +240 -0
- package/{lib/models/index.d.ts → src/lib/models/index.ts} +2 -2
- package/src/lib/models/router.model.ts +16 -0
- package/{lib/models/user.model.d.ts → src/lib/models/user.model.ts} +9 -8
- package/src/lib/pipes/boolean.pipe.ts +17 -0
- package/{lib/pipes/index.d.ts → src/lib/pipes/index.ts} +2 -2
- 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 -4
- 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 -3
- package/src/lib/services/tokens/browser-storage.token.ts +9 -0
- package/{lib/services/tokens/index.d.ts → src/lib/services/tokens/index.ts} +2 -2
- package/src/lib/services/tokens/module-config.token.ts +5 -0
- package/{lib/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 -5
- 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 -25
- 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 -48
- package/esm2020/lib/api/models/filter-match-type.model.mjs +0 -26
- 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/crud-api.abstract.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 -122
- package/esm2020/lib/api/utils/object-serializer.util.mjs +0 -226
- package/esm2020/lib/components/action/action.component.mjs +0 -65
- 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/models/action-confirmation-service.model.mjs +0 -2
- package/esm2020/lib/components/action/models/action-execution.model.mjs +0 -58
- package/esm2020/lib/components/action/models/index.mjs +0 -3
- package/esm2020/lib/components/action/route/action-route.component.mjs +0 -144
- package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +0 -114
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +0 -113
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +0 -141
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +0 -19
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +0 -19
- 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 -109
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +0 -122
- 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 -4
- package/esm2020/lib/components/form/models/form-editor.event.mjs +0 -7
- package/esm2020/lib/components/form/models/index.mjs +0 -2
- package/esm2020/lib/components/layout/breadcrumb.component.mjs +0 -17
- package/esm2020/lib/components/layout/footer.component.mjs +0 -17
- package/esm2020/lib/components/layout/index.mjs +0 -7
- package/esm2020/lib/components/layout/main-layout.component.mjs +0 -54
- package/esm2020/lib/components/layout/menu-item.component.mjs +0 -173
- package/esm2020/lib/components/layout/menu.component.mjs +0 -20
- package/esm2020/lib/components/layout/services/index.mjs +0 -2
- package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +0 -190
- package/esm2020/lib/components/layout/topbar.component.mjs +0 -59
- package/esm2020/lib/components/tableview/index.mjs +0 -6
- package/esm2020/lib/components/tableview/models/index.mjs +0 -2
- package/esm2020/lib/components/tableview/models/table.event.mjs +0 -16
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +0 -24
- package/esm2020/lib/components/tableview/services/index.mjs +0 -2
- package/esm2020/lib/components/tableview/services/tableview.component.service.mjs +0 -17
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +0 -74
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +0 -25
- package/esm2020/lib/components/tableview/table/table.component.mjs +0 -307
- package/esm2020/lib/components/tableview/tableview.component.mjs +0 -82
- package/esm2020/lib/config/formly.config.mjs +0 -136
- package/esm2020/lib/config/index.mjs +0 -2
- package/esm2020/lib/config/models/index.mjs +0 -2
- package/esm2020/lib/config/models/mng-config.model.mjs +0 -2
- package/esm2020/lib/data-providers/base.data-provider.mjs +0 -24
- package/esm2020/lib/data-providers/editor.data-provider.mjs +0 -37
- package/esm2020/lib/data-providers/index.mjs +0 -6
- package/esm2020/lib/data-providers/lookup.data-provider.mjs +0 -16
- package/esm2020/lib/data-providers/table.data-provider.mjs +0 -2
- package/esm2020/lib/data-providers/tableview.data-provider.mjs +0 -17
- package/esm2020/lib/descriptors/action.descriptor.mjs +0 -332
- package/esm2020/lib/descriptors/editor.descriptor.mjs +0 -670
- package/esm2020/lib/descriptors/field.validator.mjs +0 -21
- package/esm2020/lib/descriptors/index.mjs +0 -8
- package/esm2020/lib/descriptors/lookup.descriptor.mjs +0 -2
- package/esm2020/lib/descriptors/model.descriptor.mjs +0 -34
- package/esm2020/lib/descriptors/table.descriptor.mjs +0 -401
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +0 -131
- package/esm2020/lib/directives/component.directive.mjs +0 -23
- package/esm2020/lib/directives/index.mjs +0 -3
- package/esm2020/lib/directives/template.directive.mjs +0 -29
- package/esm2020/lib/mng-commons.module.mjs +0 -410
- package/esm2020/lib/models/index.mjs +0 -3
- package/esm2020/lib/models/router.model.mjs +0 -2
- package/esm2020/lib/models/user.model.mjs +0 -2
- package/esm2020/lib/pipes/boolean.pipe.mjs +0 -22
- package/esm2020/lib/pipes/index.mjs +0 -3
- package/esm2020/lib/pipes/property-path.pipe.mjs +0 -36
- package/esm2020/lib/services/action.service.mjs +0 -269
- package/esm2020/lib/services/commons.service.mjs +0 -353
- package/esm2020/lib/services/configuration.service.mjs +0 -78
- package/esm2020/lib/services/index.mjs +0 -5
- package/esm2020/lib/services/navigation.service.mjs +0 -48
- package/esm2020/lib/services/providers/commons-init.provider.mjs +0 -4
- package/esm2020/lib/services/providers/config-service.provider.mjs +0 -20
- package/esm2020/lib/services/providers/formly-config.provider.mjs +0 -31
- package/esm2020/lib/services/providers/index.mjs +0 -4
- package/esm2020/lib/services/tokens/browser-storage.token.mjs +0 -6
- package/esm2020/lib/services/tokens/index.mjs +0 -3
- package/esm2020/lib/services/tokens/module-config.token.mjs +0 -3
- package/esm2020/lib/types/index.mjs +0 -3
- package/esm2020/lib/types/type.decorator.mjs +0 -7
- package/esm2020/lib/types/type.model.mjs +0 -2
- package/esm2020/lib/utils/editor-formly.util.mjs +0 -176
- package/esm2020/lib/utils/i18n.util.mjs +0 -125
- package/esm2020/lib/utils/index.mjs +0 -6
- package/esm2020/lib/utils/model.util.mjs +0 -57
- package/esm2020/lib/utils/toast.util.mjs +0 -39
- package/esm2020/lib/utils/type.util.mjs +0 -39
- package/esm2020/mediusinc-mng-commons.mjs +0 -5
- package/esm2020/public-api.mjs +0 -36
- package/fesm2015/mediusinc-mng-commons.mjs +0 -6250
- package/fesm2015/mediusinc-mng-commons.mjs.map +0 -1
- package/fesm2020/mediusinc-mng-commons.mjs +0 -6176
- 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-param.model.d.ts +0 -23
- package/lib/api/models/mappers.d.ts +0 -6
- package/lib/api/models/query-mode.model.d.ts +0 -16
- 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/crud-api.abstract.service.d.ts +0 -23
- package/lib/api/utils/medius-rest.util.d.ts +0 -12
- 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 -46
- package/lib/components/action/models/action-execution.model.d.ts +0 -53
- package/lib/components/action/route/action-route.component.d.ts +0 -32
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +0 -36
- package/lib/components/form/dropdown/dropdown.component.d.ts +0 -34
- package/lib/components/form/editor/form-editor.component.d.ts +0 -39
- package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +0 -11
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +0 -11
- 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/models/form-editor.event.d.ts +0 -5
- package/lib/components/layout/breadcrumb.component.d.ts +0 -8
- package/lib/components/layout/footer.component.d.ts +0 -9
- package/lib/components/layout/main-layout.component.d.ts +0 -21
- package/lib/components/layout/menu-item.component.d.ts +0 -29
- package/lib/components/layout/menu.component.d.ts +0 -10
- package/lib/components/layout/services/main-layout.component.service.d.ts +0 -65
- package/lib/components/layout/topbar.component.d.ts +0 -25
- package/lib/components/tableview/models/table.event.d.ts +0 -17
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +0 -14
- package/lib/components/tableview/services/tableview.component.service.d.ts +0 -13
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +0 -22
- package/lib/components/tableview/table/column-value/column-value.component.d.ts +0 -12
- package/lib/components/tableview/table/table.component.d.ts +0 -79
- package/lib/components/tableview/tableview.component.d.ts +0 -35
- package/lib/config/formly.config.d.ts +0 -14
- package/lib/data-providers/base.data-provider.d.ts +0 -17
- package/lib/data-providers/editor.data-provider.d.ts +0 -25
- package/lib/data-providers/lookup.data-provider.d.ts +0 -14
- package/lib/data-providers/tableview.data-provider.d.ts +0 -15
- package/lib/descriptors/action.descriptor.d.ts +0 -148
- package/lib/descriptors/editor.descriptor.d.ts +0 -255
- package/lib/descriptors/field.validator.d.ts +0 -18
- package/lib/descriptors/model.descriptor.d.ts +0 -15
- package/lib/descriptors/table.descriptor.d.ts +0 -164
- package/lib/descriptors/tableview.descriptor.d.ts +0 -39
- package/lib/directives/component.directive.d.ts +0 -11
- package/lib/directives/template.directive.d.ts +0 -13
- package/lib/mng-commons.module.d.ts +0 -79
- package/lib/models/router.model.d.ts +0 -14
- package/lib/pipes/boolean.pipe.d.ts +0 -7
- package/lib/pipes/property-path.pipe.d.ts +0 -7
- package/lib/services/action.service.d.ts +0 -92
- package/lib/services/commons.service.d.ts +0 -72
- package/lib/services/configuration.service.d.ts +0 -35
- package/lib/services/navigation.service.d.ts +0 -14
- package/lib/services/providers/commons-init.provider.d.ts +0 -2
- 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/tokens/browser-storage.token.d.ts +0 -2
- package/lib/services/tokens/module-config.token.d.ts +0 -3
- package/lib/types/type.decorator.d.ts +0 -2
- package/lib/types/type.model.d.ts +0 -10
- package/lib/utils/editor-formly.util.d.ts +0 -9
- package/lib/utils/i18n.util.d.ts +0 -18
- package/lib/utils/model.util.d.ts +0 -7
- package/lib/utils/toast.util.d.ts +0 -13
- package/lib/utils/type.util.d.ts +0 -15
- package/mediusinc-mng-commons-0.2.0.tgz +0 -0
- package/mediusinc-mng-commons.d.ts +0 -5
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, QueryList, Type } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
import { MngCommonsService } from '../../services';
|
|
4
|
-
import { MngMainLayoutComponentService } from './services';
|
|
5
|
-
import { MngTemplateDirective } from '../../directives';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class MngMainLayoutComponent implements AfterViewInit {
|
|
8
|
-
private route;
|
|
9
|
-
mngCommons: MngCommonsService;
|
|
10
|
-
mainLayoutService: MngMainLayoutComponentService;
|
|
11
|
-
templates: QueryList<MngTemplateDirective>;
|
|
12
|
-
topbarComponent: Type<any>;
|
|
13
|
-
menuComponent: Type<any>;
|
|
14
|
-
footerComponent: Type<any>;
|
|
15
|
-
constructor(route: ActivatedRoute, mngCommons: MngCommonsService, mainLayoutService: MngMainLayoutComponentService);
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
ngAfterViewInit(): void;
|
|
18
|
-
onWindowResize(event: UIEvent): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngMainLayoutComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngMainLayoutComponent, "mng-main-layout", never, {}, {}, never, never>;
|
|
21
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
4
|
-
import { MngCommonsService } from '../../services';
|
|
5
|
-
import { MngMainLayoutComponentService } from './services';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class MngMenuItemComponent implements OnInit, OnDestroy {
|
|
8
|
-
router: Router;
|
|
9
|
-
private cd;
|
|
10
|
-
mngCommons: MngCommonsService;
|
|
11
|
-
mainLayoutService: MngMainLayoutComponentService;
|
|
12
|
-
item: any;
|
|
13
|
-
index: number;
|
|
14
|
-
root: boolean;
|
|
15
|
-
parentKey: string | null;
|
|
16
|
-
active: boolean;
|
|
17
|
-
hover: boolean;
|
|
18
|
-
menuSourceSubscription: Subscription;
|
|
19
|
-
menuResetSubscription: Subscription;
|
|
20
|
-
key: string;
|
|
21
|
-
constructor(router: Router, cd: ChangeDetectorRef, mngCommons: MngCommonsService, mainLayoutService: MngMainLayoutComponentService);
|
|
22
|
-
ngOnInit(): void;
|
|
23
|
-
updateActiveStateFromRoute(): void;
|
|
24
|
-
itemClick(event: Event): void;
|
|
25
|
-
onMouseEnter(): void;
|
|
26
|
-
ngOnDestroy(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngMenuItemComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuItemComponent, "[mng-menuitem]", never, { "item": "item"; "index": "index"; "root": "root"; "parentKey": "parentKey"; }, {}, never, never>;
|
|
29
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MngCommonsService } from '../../services';
|
|
2
|
-
import { MngMainLayoutComponentService } from './services';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MngMenuComponent {
|
|
5
|
-
mngCommons: MngCommonsService;
|
|
6
|
-
mainLayoutService: MngMainLayoutComponentService;
|
|
7
|
-
constructor(mngCommons: MngCommonsService, mainLayoutService: MngMainLayoutComponentService);
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngMenuComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuComponent, "mng-menu", never, {}, {}, never, never>;
|
|
10
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { MngCommonsService } from '../../../services';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MngMainLayoutComponentService {
|
|
5
|
-
private mngCommons;
|
|
6
|
-
private _overlayMenuActive;
|
|
7
|
-
private _overlayMenuActiveSubject;
|
|
8
|
-
private _staticMenuDesktopInactive;
|
|
9
|
-
private _staticMenuDesktopInactiveSubject;
|
|
10
|
-
private _staticMenuMobileActive;
|
|
11
|
-
private _staticMenuMobileActiveSubject;
|
|
12
|
-
private _sidebarActive;
|
|
13
|
-
private _sidebarActiveSubject;
|
|
14
|
-
private _sidebarStatic;
|
|
15
|
-
private _sidebarStaticSubject;
|
|
16
|
-
private _menuClick;
|
|
17
|
-
private _menuHoverActive;
|
|
18
|
-
private _topbarItemClick;
|
|
19
|
-
private _activeTopbarItem;
|
|
20
|
-
private _activeTopbarItemSubject;
|
|
21
|
-
private _pinActive;
|
|
22
|
-
private _pinActiveSubject;
|
|
23
|
-
private _innerWidth;
|
|
24
|
-
private _innerWidthSubject;
|
|
25
|
-
constructor(mngCommons: MngCommonsService);
|
|
26
|
-
get overlayMenuActive$(): Observable<boolean>;
|
|
27
|
-
set overlayMenuActive(value: boolean);
|
|
28
|
-
get staticMenuDesktopInactive$(): Observable<boolean>;
|
|
29
|
-
set staticMenuDesktopInactive(value: boolean);
|
|
30
|
-
get staticMenuMobileActive$(): Observable<boolean>;
|
|
31
|
-
set staticMenuMobileActive(value: boolean);
|
|
32
|
-
get sidebarActive$(): Observable<boolean>;
|
|
33
|
-
set sidebarActive(value: boolean);
|
|
34
|
-
get sidebarStatic$(): Observable<boolean>;
|
|
35
|
-
set sidebarStatic(value: boolean);
|
|
36
|
-
set menuHoverActive(value: boolean);
|
|
37
|
-
set topbarItemClick(value: boolean);
|
|
38
|
-
get activeTopbarItem$(): Observable<any>;
|
|
39
|
-
set activeTopbarItem(value: any);
|
|
40
|
-
get pinActive$(): Observable<boolean>;
|
|
41
|
-
set pinActive(value: boolean);
|
|
42
|
-
get isDesktop$(): Observable<boolean>;
|
|
43
|
-
get isMobile$(): Observable<boolean>;
|
|
44
|
-
set innerWidth(value: number);
|
|
45
|
-
onLayoutClick(): void;
|
|
46
|
-
onSidebarClick(event: any): void;
|
|
47
|
-
onToggleMenu(event: any): void;
|
|
48
|
-
onSidebarMouseOver(event: any): void;
|
|
49
|
-
onSidebarMouseLeave(event: any): void;
|
|
50
|
-
onMenuButtonClick(event: any): void;
|
|
51
|
-
onTopbarItemClick(event: any, item: any): void;
|
|
52
|
-
onTopbarSubItemClick(event: any): void;
|
|
53
|
-
/**
|
|
54
|
-
* Checks if is desktop width, DO NOT use within HTML templates or within functions called by HTML templates
|
|
55
|
-
*/
|
|
56
|
-
isDesktop(): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Checks if is mobile width, DO NOT use within HTML templates or within functions called by HTML templates
|
|
59
|
-
*/
|
|
60
|
-
isMobile(): boolean;
|
|
61
|
-
private isWidthDesktop;
|
|
62
|
-
private isWidthMobile;
|
|
63
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngMainLayoutComponentService, never>;
|
|
64
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MngMainLayoutComponentService>;
|
|
65
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { OnInit, QueryList, Type } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
import { MngMainLayoutComponentService } from './services';
|
|
4
|
-
import { MngCommonsService } from '../../services';
|
|
5
|
-
import { MngTemplateDirective } from '../../directives';
|
|
6
|
-
import { IUser } from '../../models';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class MngTopbarComponent implements OnInit {
|
|
9
|
-
private route;
|
|
10
|
-
mngCommons: MngCommonsService;
|
|
11
|
-
mainLayoutService: MngMainLayoutComponentService;
|
|
12
|
-
templates: QueryList<MngTemplateDirective>;
|
|
13
|
-
breadcrumbComponent: Type<any>;
|
|
14
|
-
menuComponent: Type<any>;
|
|
15
|
-
languages: Array<string>;
|
|
16
|
-
selectedLanguage: string;
|
|
17
|
-
user?: IUser;
|
|
18
|
-
constructor(route: ActivatedRoute, mngCommons: MngCommonsService, mainLayoutService: MngMainLayoutComponentService);
|
|
19
|
-
ngOnInit(): void;
|
|
20
|
-
ngAfterViewInit(): void;
|
|
21
|
-
switchLanguage(language: string): void;
|
|
22
|
-
logout(user: IUser, event: Event): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngTopbarComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTopbarComponent, "mng-topbar", never, {}, {}, never, never>;
|
|
25
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LazyLoadEvent } from 'primeng/api';
|
|
2
|
-
import { MediusQueryParam } from '../../../api/models';
|
|
3
|
-
import { ColumnDescriptor } from '../../../descriptors';
|
|
4
|
-
export declare class MngTableLoadEvent {
|
|
5
|
-
queryParam?: MediusQueryParam;
|
|
6
|
-
originalEvent?: LazyLoadEvent;
|
|
7
|
-
}
|
|
8
|
-
export declare class MngTableCellClickEvent<T> {
|
|
9
|
-
readonly column: ColumnDescriptor<any, T>;
|
|
10
|
-
readonly rowItem: T;
|
|
11
|
-
readonly rowIndex: number;
|
|
12
|
-
constructor(column: ColumnDescriptor<any, T>, rowItem: T, rowIndex: number);
|
|
13
|
-
}
|
|
14
|
-
export declare class MngTableReloadEvent {
|
|
15
|
-
resetParams: boolean;
|
|
16
|
-
emitEvent: boolean;
|
|
17
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TableviewDescriptor, ActionDescriptor } from '../../../descriptors';
|
|
2
|
-
import { ITableviewDataProvider } from '../../../data-providers';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare abstract class AMngTableviewRouteComponent<T, S> {
|
|
5
|
-
descriptor: TableviewDescriptor<T>;
|
|
6
|
-
dataProvider: ITableviewDataProvider<T, S>;
|
|
7
|
-
actions: Array<ActionDescriptor<T>>;
|
|
8
|
-
protected constructor();
|
|
9
|
-
protected abstract createTableviewDescriptor(): TableviewDescriptor<T>;
|
|
10
|
-
protected abstract createTableviewDataProvider(): ITableviewDataProvider<T, S>;
|
|
11
|
-
protected createActionDescriptors(): Array<ActionDescriptor<T>>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AMngTableviewRouteComponent<any, any>, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AMngTableviewRouteComponent<any, any>, never, never, {}, {}, never>;
|
|
14
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MessageService } from 'primeng/api';
|
|
2
|
-
import { ITableviewDataProvider } from '../../../data-providers';
|
|
3
|
-
import { ActionDescriptor } from '../../../descriptors';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TableviewComponentService<T, S> {
|
|
6
|
-
dataProvider?: ITableviewDataProvider<T, S>;
|
|
7
|
-
messageService?: MessageService;
|
|
8
|
-
actions: Array<ActionDescriptor<T>>;
|
|
9
|
-
constructor();
|
|
10
|
-
reloadTable(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableviewComponentService<any, any>, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TableviewComponentService<any, any>>;
|
|
13
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FilterDescriptor, FilterLookupDescriptor, TableDescriptor } from '../../../../descriptors';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Cannot be on push change detection strategy because of filter updates triggered from route which causes to force update values in force metadata
|
|
6
|
-
* and these must be propagated through to this component and beyond to primeNG.
|
|
7
|
-
*/
|
|
8
|
-
export declare class MngTableColumnFilterComponent<T> implements OnInit {
|
|
9
|
-
readonly lookupTypeDropdown: FilterLookupDescriptor.LookupTypeEnum;
|
|
10
|
-
readonly lookupTypeAutocomplete: FilterLookupDescriptor.LookupTypeEnum;
|
|
11
|
-
descriptor: FilterDescriptor<T>;
|
|
12
|
-
display: TableDescriptor.FilterDisplayEnum;
|
|
13
|
-
lookupDescriptor?: FilterLookupDescriptor<T>;
|
|
14
|
-
primeField: string;
|
|
15
|
-
primeType: string;
|
|
16
|
-
primeDefaultMatchMode: string;
|
|
17
|
-
primeDisplay: string;
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
autocompleteFilter(value: T, filterCallback: Function): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableColumnFilterComponent<any>, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnFilterComponent<any>, "mng-table-column-filter", never, { "descriptor": "descriptor"; "display": "display"; }, {}, never, never>;
|
|
22
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ColumnDescriptor } from '../../../../descriptors';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MngTableColumnValueComponent<T, TT> {
|
|
4
|
-
readonly columnTypeString: ColumnDescriptor.TypeEnum;
|
|
5
|
-
readonly columnTypeNumber: ColumnDescriptor.TypeEnum;
|
|
6
|
-
readonly columnTypeBoolean: ColumnDescriptor.TypeEnum;
|
|
7
|
-
readonly columnTypeDate: ColumnDescriptor.TypeEnum;
|
|
8
|
-
descriptor: ColumnDescriptor<T, TT>;
|
|
9
|
-
item: any;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableColumnValueComponent<any, any>, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnValueComponent<any, any>, "mng-table-column-value", never, { "descriptor": "descriptor"; "item": "item"; }, {}, never, never>;
|
|
12
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, Injector, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { LazyLoadEvent, SortMeta } from 'primeng/api';
|
|
4
|
-
import { FilterMetadata } from 'primeng/api/filtermetadata';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
-
import { MediusQueryResult } from '../../../api/models';
|
|
8
|
-
import { ColumnDescriptor, TableDescriptor } from '../../../descriptors';
|
|
9
|
-
import { ITableDataProvider } from '../../../data-providers';
|
|
10
|
-
import { MngTemplateDirective } from '../../../directives';
|
|
11
|
-
import { TableviewComponentService } from '../services';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class MngTableComponent<T, S> implements OnInit, AfterContentInit, OnDestroy {
|
|
14
|
-
private injector;
|
|
15
|
-
private router;
|
|
16
|
-
private activatedRoute;
|
|
17
|
-
private translate;
|
|
18
|
-
private tableviewService;
|
|
19
|
-
readonly filterDisplayRow: TableDescriptor.FilterDisplayEnum;
|
|
20
|
-
readonly filterDisplayMenu: TableDescriptor.FilterDisplayEnum;
|
|
21
|
-
descriptor: TableDescriptor<T>;
|
|
22
|
-
items?: Observable<Array<T>> | Array<T>;
|
|
23
|
-
queryResult?: Observable<MediusQueryResult<T>> | MediusQueryResult<T>;
|
|
24
|
-
loading?: Observable<boolean> | boolean;
|
|
25
|
-
dataProvider?: ITableDataProvider<T, any>;
|
|
26
|
-
useQueryParams: boolean;
|
|
27
|
-
selectionEnabled: boolean;
|
|
28
|
-
private loadEventEmitter;
|
|
29
|
-
private cellClickEventEmitter;
|
|
30
|
-
private selectionChangeEventEmitter;
|
|
31
|
-
templates: QueryList<MngTemplateDirective>;
|
|
32
|
-
private primeTable;
|
|
33
|
-
captionTemplate?: TemplateRef<any>;
|
|
34
|
-
columnActionTemplate?: TemplateRef<any>;
|
|
35
|
-
useDataProvider: boolean;
|
|
36
|
-
useQueryParamsInitialized: boolean;
|
|
37
|
-
queryResult$?: Observable<MediusQueryResult<T>>;
|
|
38
|
-
loading$?: Observable<boolean>;
|
|
39
|
-
dataProviderInfiniteScrollItems: Array<T>;
|
|
40
|
-
private dataProviderService;
|
|
41
|
-
private dataProviderQueryResultSubject;
|
|
42
|
-
private dataProviderLoadingSubject;
|
|
43
|
-
private dataProviderLatestLazyLoadEvent?;
|
|
44
|
-
private dataProviderLatestLazyLoadEventVersion;
|
|
45
|
-
private dataProviderLatestQueryParam?;
|
|
46
|
-
private dataProviderLatestQueryParamVersion;
|
|
47
|
-
private dataProviderSubscription?;
|
|
48
|
-
readonly rowsPerPageOptions: number[];
|
|
49
|
-
rows: number;
|
|
50
|
-
offset: number;
|
|
51
|
-
multiSortMeta: SortMeta[] | null;
|
|
52
|
-
filterMetadata: {
|
|
53
|
-
[s: string]: FilterMetadata | FilterMetadata[];
|
|
54
|
-
};
|
|
55
|
-
private isFilterChanged;
|
|
56
|
-
private isSortChanged;
|
|
57
|
-
infiniteScroll: boolean;
|
|
58
|
-
scrollHeight: 'flex' | null;
|
|
59
|
-
rowHeight: number | null;
|
|
60
|
-
selection: Array<T>;
|
|
61
|
-
private subscriptions;
|
|
62
|
-
private filterDescriptors;
|
|
63
|
-
constructor(injector: Injector, router: Router, activatedRoute: ActivatedRoute, translate: TranslateService, tableviewService: TableviewComponentService<T, S>);
|
|
64
|
-
ngOnInit(): void;
|
|
65
|
-
ngAfterContentInit(): void;
|
|
66
|
-
ngOnDestroy(): void;
|
|
67
|
-
reload(emitEvent?: boolean, resetParams?: boolean): void;
|
|
68
|
-
onTableLazyLoad(event: LazyLoadEvent): void;
|
|
69
|
-
onTableSort(event: any): void;
|
|
70
|
-
onTableFilter(event: any): void;
|
|
71
|
-
onCellClick(col: ColumnDescriptor<any, T>, item: T, idx: number): void;
|
|
72
|
-
onSelectionChange(event: Array<T>): void;
|
|
73
|
-
private loadTableWithDataProvider;
|
|
74
|
-
private loadTableFromRouteUpdate;
|
|
75
|
-
private updatePrimeSortAndFilter;
|
|
76
|
-
private getDefaultSortMeta;
|
|
77
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableComponent<any, any>, [null, null, null, null, { optional: true; }]>;
|
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "descriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionEnabled": "selectionEnabled"; }, { "loadEventEmitter": "onLoad"; "cellClickEventEmitter": "onCellClick"; "selectionChangeEventEmitter": "onSelectionChange"; }, ["templates"], never>;
|
|
79
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
5
|
-
import { DialogService } from 'primeng/dynamicdialog';
|
|
6
|
-
import { MngActionService } from '../../services';
|
|
7
|
-
import { TableviewDescriptor, ActionDescriptor } from '../../descriptors';
|
|
8
|
-
import { ITableviewDataProvider } from '../../data-providers';
|
|
9
|
-
import { MngTableCellClickEvent } from './models';
|
|
10
|
-
import { TableviewComponentService } from './services';
|
|
11
|
-
import { MngTableComponent } from './table/table.component';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class MngTableviewComponent<T, S> implements OnInit {
|
|
14
|
-
private route;
|
|
15
|
-
private messageService;
|
|
16
|
-
private translateService;
|
|
17
|
-
private dialogService;
|
|
18
|
-
private confirmationService;
|
|
19
|
-
private actionService;
|
|
20
|
-
private tableviewService;
|
|
21
|
-
descriptor: TableviewDescriptor<T>;
|
|
22
|
-
dataProvider?: ITableviewDataProvider<T, S>;
|
|
23
|
-
actions: Array<ActionDescriptor<T>>;
|
|
24
|
-
tableComponent: MngTableComponent<T, S> | null;
|
|
25
|
-
rowClickActions: ActionDescriptor<T>[];
|
|
26
|
-
rowInlineActions: ActionDescriptor<T>[];
|
|
27
|
-
toolbarLeftActions: ActionDescriptor<T>[];
|
|
28
|
-
toolbarRightActions: ActionDescriptor<T>[];
|
|
29
|
-
constructor(route: ActivatedRoute, messageService: MessageService, translateService: TranslateService, dialogService: DialogService, confirmationService: ConfirmationService, actionService: MngActionService, tableviewService: TableviewComponentService<T, S>);
|
|
30
|
-
ngOnInit(): void;
|
|
31
|
-
reloadTable(): void;
|
|
32
|
-
onTableCellClick(event: MngTableCellClickEvent<T>): void;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableviewComponent<any, any>, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewComponent<any, any>, "mng-tableview", never, { "descriptor": "descriptor"; "dataProvider": "dataProvider"; "actions": "actions"; }, {}, never, never>;
|
|
35
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
-
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { MngFormlyFieldWrapperComponent } from '../components/form/formly/wrappers';
|
|
5
|
-
export declare const formlyWrappersConfig: {
|
|
6
|
-
name: string;
|
|
7
|
-
component: typeof MngFormlyFieldWrapperComponent;
|
|
8
|
-
}[];
|
|
9
|
-
export declare const formlyTypesConfig: any[];
|
|
10
|
-
export declare function getRequiredValidationMessage(translate: TranslateService): (error: any, field: FormlyFieldConfig) => Observable<string>;
|
|
11
|
-
export declare function getMinLengthValidationMessage(translate: TranslateService): (error: any, field: FormlyFieldConfig) => Observable<string> | undefined;
|
|
12
|
-
export declare function getMaxLengthValidationMessage(translate: TranslateService): (error: any, field: FormlyFieldConfig) => Observable<string> | undefined;
|
|
13
|
-
export declare function getTextPatternValidationMessage(translate: TranslateService): (error: any, field: FormlyFieldConfig) => Observable<string> | undefined;
|
|
14
|
-
export declare const getFormlyValidationMessages: (translate: TranslateService) => any[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { ClassType } from '../types';
|
|
3
|
-
export interface IDataProvider<T, S> {
|
|
4
|
-
modelType: ClassType<T> | null;
|
|
5
|
-
serviceType?: Type<S>;
|
|
6
|
-
}
|
|
7
|
-
export declare class DataProvider<T, S> {
|
|
8
|
-
protected _modelType: ClassType<T> | null;
|
|
9
|
-
protected _serviceType?: Type<S>;
|
|
10
|
-
protected _enumName?: string;
|
|
11
|
-
constructor(modelType: ClassType<T> | null, serviceType?: Type<S>);
|
|
12
|
-
get serviceType(): Type<S> | undefined;
|
|
13
|
-
get modelType(): ClassType<T> | null;
|
|
14
|
-
get enumName(): string | undefined;
|
|
15
|
-
withServiceType(type: Type<S>): this;
|
|
16
|
-
withEnumName(enumName: string): this;
|
|
17
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ClassType, IdType } from '../types';
|
|
4
|
-
import { DataProvider, IDataProvider } from './base.data-provider';
|
|
5
|
-
export interface IEditorDataProvider<T, S> extends IDataProvider<T, S> {
|
|
6
|
-
fetch: (id: IdType, service?: S) => Observable<T>;
|
|
7
|
-
create?: (item?: T, service?: S) => Observable<T>;
|
|
8
|
-
update?: (id: IdType, item?: T, service?: S) => Observable<T>;
|
|
9
|
-
delete?: (id: IdType, item?: T, service?: S) => Observable<T>;
|
|
10
|
-
}
|
|
11
|
-
export declare class EditorDataProvider<T, S> extends DataProvider<T, S> implements IEditorDataProvider<T, S> {
|
|
12
|
-
protected _fetch: (id: IdType, service?: S) => Observable<T>;
|
|
13
|
-
protected _create?: (item?: T, service?: S) => Observable<T>;
|
|
14
|
-
protected _update?: (id: IdType, item?: T, service?: S) => Observable<T>;
|
|
15
|
-
protected _delete?: (id: IdType, item?: T, service?: S) => Observable<T>;
|
|
16
|
-
constructor(modelType: ClassType<T>, serviceType?: Type<S>);
|
|
17
|
-
get fetch(): (id: IdType, service?: S | undefined) => Observable<T>;
|
|
18
|
-
get create(): ((item?: T | undefined, service?: S | undefined) => Observable<T>) | undefined;
|
|
19
|
-
get update(): ((id: IdType, item?: T | undefined, service?: S | undefined) => Observable<T>) | undefined;
|
|
20
|
-
get delete(): ((id: IdType, item?: T | undefined, service?: S | undefined) => Observable<T>) | undefined;
|
|
21
|
-
withFetch(fetch: (id: IdType, service?: S) => Observable<T>): this;
|
|
22
|
-
withCreate(create: (item?: T, service?: S) => Observable<T>): this;
|
|
23
|
-
withUpdate(update: (id: IdType, item?: T, service?: S) => Observable<T>): this;
|
|
24
|
-
withDelete(deleteFn: (id: IdType, item?: T, service?: S) => Observable<T>): this;
|
|
25
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { MediusQueryParam } from '../api/models';
|
|
4
|
-
import { ClassType } from '../types';
|
|
5
|
-
import { DataProvider, IDataProvider } from './base.data-provider';
|
|
6
|
-
export interface ILookupDataProvider<T, S> extends IDataProvider<T, S> {
|
|
7
|
-
lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>;
|
|
8
|
-
}
|
|
9
|
-
export declare class LookupDataProvider<T, S> extends DataProvider<T, S> implements ILookupDataProvider<T, S> {
|
|
10
|
-
protected _lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>;
|
|
11
|
-
constructor(modelType: ClassType<T> | null, serviceType?: Type<S>);
|
|
12
|
-
get lookup(): (queryParam?: MediusQueryParam | undefined, service?: S | undefined, search?: string | undefined) => Observable<T[]>;
|
|
13
|
-
withLookup(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>): this;
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { MediusQueryParam, MediusQueryResult } from '../api/models';
|
|
4
|
-
import { ClassType } from '../types';
|
|
5
|
-
import { EditorDataProvider, IEditorDataProvider } from './editor.data-provider';
|
|
6
|
-
import { ITableDataProvider } from './table.data-provider';
|
|
7
|
-
export interface ITableviewDataProvider<T, S> extends IEditorDataProvider<T, S> {
|
|
8
|
-
getAll: (queryParam: MediusQueryParam, service?: S) => Observable<MediusQueryResult<T>>;
|
|
9
|
-
}
|
|
10
|
-
export declare class TableviewDataProvider<T, S> extends EditorDataProvider<T, S> implements ITableviewDataProvider<T, S>, ITableDataProvider<T, S>, IEditorDataProvider<T, S> {
|
|
11
|
-
protected _getAll: (queryParam: MediusQueryParam, service?: S) => Observable<MediusQueryResult<T>>;
|
|
12
|
-
constructor(modelType: ClassType<T>, serviceType?: Type<S>);
|
|
13
|
-
get getAll(): (queryParam: MediusQueryParam, service?: S | undefined) => Observable<MediusQueryResult<T>>;
|
|
14
|
-
withGetAll(getAll: (queryParam: MediusQueryParam, service?: S) => Observable<MediusQueryResult<T>>): this;
|
|
15
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ClassType } from '../types';
|
|
3
|
-
import { EditorDescriptor, ModelDescriptor } from './';
|
|
4
|
-
import { IDataProvider, IEditorDataProvider } from '../data-providers';
|
|
5
|
-
import { ActionExecContext } from '../components/action/models';
|
|
6
|
-
export declare class ActionDescriptor<T> {
|
|
7
|
-
protected readonly _model: ModelDescriptor<T>;
|
|
8
|
-
protected readonly _actionName: string;
|
|
9
|
-
protected readonly _parentType?: ClassType<any>;
|
|
10
|
-
protected readonly _parentTypeName?: string;
|
|
11
|
-
protected readonly _parentProperty?: string;
|
|
12
|
-
protected readonly _i18nModelActionBaseKey: string;
|
|
13
|
-
protected _type: ActionTypeEnum;
|
|
14
|
-
protected _activationTrigger: ActionActivationTriggerEnum;
|
|
15
|
-
protected _position: ActionPositionEnum;
|
|
16
|
-
protected _level: ActionLevelEnum;
|
|
17
|
-
protected _routeUrl: string | null;
|
|
18
|
-
protected _title?: string | null;
|
|
19
|
-
protected _icon?: string;
|
|
20
|
-
protected _className: string;
|
|
21
|
-
protected _tooltip?: string | null;
|
|
22
|
-
protected _runFunction?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<T>;
|
|
23
|
-
protected _isVisibleFunction?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>;
|
|
24
|
-
protected _isEnabledFunction?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>;
|
|
25
|
-
private _hasRunConfirmation;
|
|
26
|
-
private _runConfirmationIcon?;
|
|
27
|
-
private _runConfirmationTitle?;
|
|
28
|
-
private _runConfirmationMessage?;
|
|
29
|
-
private _runConfirmationAcceptTitle?;
|
|
30
|
-
private _runConfirmationRejectTitle?;
|
|
31
|
-
protected _hasRunNotificationSuccess: boolean;
|
|
32
|
-
private _runNotificationSuccessTitle?;
|
|
33
|
-
private _runNotificationSuccessMessage?;
|
|
34
|
-
private _hasRunNotificationError;
|
|
35
|
-
private _runNotificationErrorTitle?;
|
|
36
|
-
private _runNotificationErrorMessage?;
|
|
37
|
-
constructor(model: ModelDescriptor<T>, actionName: string, parentType?: ClassType<any>, parentProperty?: string);
|
|
38
|
-
get model(): ModelDescriptor<T>;
|
|
39
|
-
get parentTypeName(): string | undefined;
|
|
40
|
-
get parentProperty(): string | undefined;
|
|
41
|
-
get i18nModelActionBaseKey(): string;
|
|
42
|
-
get type(): ActionTypeEnum;
|
|
43
|
-
get activationTrigger(): ActionActivationTriggerEnum;
|
|
44
|
-
get position(): ActionPositionEnum;
|
|
45
|
-
get level(): ActionLevelEnum;
|
|
46
|
-
get routeUrl(): string | null;
|
|
47
|
-
get title(): string | null | undefined;
|
|
48
|
-
get icon(): string | undefined;
|
|
49
|
-
get tooltip(): string | null | undefined;
|
|
50
|
-
get runFunction(): (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<T>;
|
|
51
|
-
get isVisibleFunction(): ((ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>) | undefined;
|
|
52
|
-
get isEnabledFunction(): ((ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>) | undefined;
|
|
53
|
-
get actionName(): string;
|
|
54
|
-
get className(): string;
|
|
55
|
-
get hasRunConfirmation(): boolean;
|
|
56
|
-
get runConfirmationIcon(): string | undefined;
|
|
57
|
-
get runConfirmationTitle(): string | undefined;
|
|
58
|
-
get runConfirmationMessage(): string | undefined;
|
|
59
|
-
get runConfirmationAcceptTitle(): string | undefined;
|
|
60
|
-
get runConfirmationRejectTitle(): string | undefined;
|
|
61
|
-
get hasRunNotificationSuccess(): boolean;
|
|
62
|
-
get runNotificationSuccessTitle(): string | undefined;
|
|
63
|
-
get runNotificationSuccessMessage(): string | undefined;
|
|
64
|
-
get hasRunNotificationError(): boolean;
|
|
65
|
-
get runNotificationErrorTitle(): string | undefined;
|
|
66
|
-
get runNotificationErrorMessage(): string | undefined;
|
|
67
|
-
withRunFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<T>): this;
|
|
68
|
-
withIsVisibleFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<boolean>): this;
|
|
69
|
-
withIsEnabledFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<boolean>): this;
|
|
70
|
-
withRouteTrigger(routeUrl: string): this;
|
|
71
|
-
withLevel(level: ActionLevelEnum): this;
|
|
72
|
-
/**
|
|
73
|
-
* Overrides default title key with model action key (${model.typeName}.actions.${actionName}). Not relevant if parentType name is provided.
|
|
74
|
-
*/
|
|
75
|
-
withModelTitle(): this;
|
|
76
|
-
/**
|
|
77
|
-
* Overrides default title key (${actionName}.title). If null, no title will be shown.
|
|
78
|
-
* @param title Title i18n key or title.
|
|
79
|
-
*/
|
|
80
|
-
withTitle(title: string | null): this;
|
|
81
|
-
withIcon(icon: string): this;
|
|
82
|
-
withTooltip(tooltip: string | null): this;
|
|
83
|
-
withClassName(className: string): this;
|
|
84
|
-
withPosition(position: ActionPositionEnum): this;
|
|
85
|
-
withRunConfirmation(icon?: string, title?: string, message?: string, acceptTitle?: string, rejectTitle?: string): this;
|
|
86
|
-
withRunNotificationSuccess(title?: string, message?: string, hasNotification?: boolean): void;
|
|
87
|
-
withRunNotificationError(title?: string, message?: string, hasNotification?: boolean): void;
|
|
88
|
-
}
|
|
89
|
-
export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
90
|
-
private readonly _editorDescriptor;
|
|
91
|
-
protected _editorTitle?: string;
|
|
92
|
-
private _hasFetchNotificationSuccess;
|
|
93
|
-
private _fetchNotificationSuccessTitle?;
|
|
94
|
-
private _fetchNotificationSuccessMessage?;
|
|
95
|
-
protected _fetchFunction?: (ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>;
|
|
96
|
-
protected _submitFunction?: (ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>;
|
|
97
|
-
constructor(editorDescriptor: EditorDescriptor<T>, actionName: string, parentType?: ClassType<any>, parentProperty?: string);
|
|
98
|
-
get editorTitle(): string | undefined;
|
|
99
|
-
get editorDescriptor(): EditorDescriptor<T>;
|
|
100
|
-
get hasFetchNotificationSuccess(): boolean;
|
|
101
|
-
get fetchNotificationSuccessTitle(): string | undefined;
|
|
102
|
-
get fetchNotificationSuccessMessage(): string | undefined;
|
|
103
|
-
get runFunction(): (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<T>;
|
|
104
|
-
get fetchFunction(): (ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>;
|
|
105
|
-
get submitFunction(): ((ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>) | undefined;
|
|
106
|
-
withEditorTitle(title: string): this;
|
|
107
|
-
withRunFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<T>): this;
|
|
108
|
-
withFetchFunction<S>(fn: (ctx: ActionExecContext<T, S, IEditorDataProvider<T, S>>) => Observable<T>): this;
|
|
109
|
-
withSubmitFunction<S>(fn: (ctx: ActionExecContext<T, S, IEditorDataProvider<T, S>>) => Observable<T>): this;
|
|
110
|
-
withFetchNotificationError(title?: string, message?: string, hasNotification?: boolean): void;
|
|
111
|
-
}
|
|
112
|
-
export declare class ActionEditorDetailsDescriptor<T> extends ActionEditorDescriptor<T> {
|
|
113
|
-
constructor(editorDescriptor: EditorDescriptor<T>);
|
|
114
|
-
}
|
|
115
|
-
export declare class ActionEditorAddDescriptor<T> extends ActionEditorDescriptor<T> {
|
|
116
|
-
constructor(editorDescriptor: EditorDescriptor<T>);
|
|
117
|
-
}
|
|
118
|
-
export declare class ActionEditorEditDescriptor<T> extends ActionEditorDescriptor<T> {
|
|
119
|
-
constructor(editorDescriptor: EditorDescriptor<T>);
|
|
120
|
-
}
|
|
121
|
-
export declare class ActionDeleteDescriptor<T> extends ActionDescriptor<T> {
|
|
122
|
-
constructor(model: ModelDescriptor<T>);
|
|
123
|
-
}
|
|
124
|
-
export declare enum ActionPositionEnum {
|
|
125
|
-
ToolbarLeft = 0,
|
|
126
|
-
ToolbarRight = 1,
|
|
127
|
-
TableHeader = 2,
|
|
128
|
-
RowInline = 3,
|
|
129
|
-
RowClick = 4
|
|
130
|
-
}
|
|
131
|
-
export declare enum ActionActivationTriggerEnum {
|
|
132
|
-
OnClick = 0,
|
|
133
|
-
OnRoute = 1
|
|
134
|
-
}
|
|
135
|
-
export declare enum ActionTypeEnum {
|
|
136
|
-
Direct = 0,
|
|
137
|
-
Editor = 1
|
|
138
|
-
}
|
|
139
|
-
export declare enum ActionLevelEnum {
|
|
140
|
-
Default = 0,
|
|
141
|
-
Primary = 1,
|
|
142
|
-
Secondary = 2,
|
|
143
|
-
Info = 3,
|
|
144
|
-
Help = 4,
|
|
145
|
-
Success = 5,
|
|
146
|
-
Warning = 6,
|
|
147
|
-
Danger = 7
|
|
148
|
-
}
|