@mediusinc/mng-commons 2.6.0 → 3.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -4
- package/dev-scripts/version-info.js +1 -0
- package/esm2022/lib/api/models/filter-param.model.mjs +33 -0
- package/esm2022/lib/api/models/query-param.model.mjs +68 -0
- package/esm2022/lib/api/models/query-result.model.mjs +24 -0
- package/esm2022/lib/api/utils/medius-rest.util.mjs +255 -0
- package/esm2022/lib/api/utils/object-serializer.util.mjs +258 -0
- package/esm2022/lib/components/action/action.component.mjs +304 -0
- package/esm2022/lib/components/action/editor/action-editor.component.mjs +386 -0
- package/esm2022/lib/components/action/localization/data-language-dropdown.component.mjs +54 -0
- package/{esm2020 → esm2022}/lib/components/action/models/action-execution.model.mjs +1 -1
- package/esm2022/lib/components/action/models/tableview-action-default-categories.model.mjs +11 -0
- package/{esm2020 → esm2022}/lib/components/action/route/action-route.component.mjs +4 -4
- package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +300 -0
- package/{esm2020 → esm2022}/lib/components/form/date-range/date-range.component.mjs +5 -5
- package/esm2022/lib/components/form/dropdown/dropdown.component.mjs +212 -0
- package/esm2022/lib/components/form/editor/form-editor.component.mjs +288 -0
- package/{esm2020 → esm2022}/lib/components/form/formly/fields/formly-field-action/formly-field-action.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/form/formly/fields/formly-field-custom/formly-custom-field-base.model.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/form/formly/fields/formly-field-custom/formly-field-custom.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +7 -7
- package/{esm2020 → esm2022}/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +4 -4
- package/esm2022/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +19 -0
- package/{esm2020 → esm2022}/lib/components/form/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +4 -4
- package/esm2022/lib/components/form/models/form-editor.event.mjs +49 -0
- package/esm2022/lib/components/layout/breadcrumb.component.mjs +34 -0
- package/{esm2020 → esm2022}/lib/components/layout/footer.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/layout/main-layout.component.mjs +4 -4
- package/esm2022/lib/components/layout/menu-item.component.mjs +297 -0
- package/{esm2020 → esm2022}/lib/components/layout/menu.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/layout/services/main-layout.component.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/layout/topbar-user.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/layout/topbar.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/layout/version.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/pages/error/error-page.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/pages/not-found/not-found-page.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/tableview/models/table.event.mjs +1 -1
- package/{esm2020 → esm2022}/lib/components/tableview/route/tableview-route.abstract.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/components/tableview/route/tableview-route.component.mjs +4 -4
- package/esm2022/lib/components/tableview/table/column-filter/column-filter.component.mjs +124 -0
- package/esm2022/lib/components/tableview/table/column-value/column-value.component.mjs +110 -0
- package/esm2022/lib/components/tableview/table/table.component.mjs +747 -0
- package/esm2022/lib/components/tableview/tableview.component.mjs +147 -0
- package/esm2022/lib/descriptors/action/action.descriptor.mjs +634 -0
- package/esm2022/lib/descriptors/editor/editor.descriptor.mjs +304 -0
- package/esm2022/lib/descriptors/table/table.descriptor.mjs +542 -0
- package/esm2022/lib/descriptors/tableview/tableview.descriptor.mjs +352 -0
- package/{esm2020 → esm2022}/lib/descriptors/types/table.type.mjs +1 -5
- package/{esm2020 → esm2022}/lib/directives/component.directive.mjs +5 -5
- package/{esm2020 → esm2022}/lib/directives/template.directive.mjs +5 -5
- package/esm2022/lib/mng-commons.module.mjs +465 -0
- package/{esm2020 → esm2022}/lib/pipes/boolean.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/class-map.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/enum.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/enumerate-async.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/enumerate.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/getter.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/i18n-property.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/json-path.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/locale-default-row-class.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/parametrize.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/pipes/template.pipe.mjs +4 -4
- package/esm2022/lib/router/route-builder.mjs +308 -0
- package/esm2022/lib/router/routes-builder.mjs +61 -0
- package/esm2022/lib/security/authorization.guard.mjs +15 -0
- package/{esm2020 → esm2022}/lib/security/authorization.service.mjs +4 -4
- package/esm2022/lib/services/action-executor.service.mjs +703 -0
- package/{esm2020 → esm2022}/lib/services/commons.service.mjs +4 -4
- package/esm2022/lib/services/configuration.service.mjs +150 -0
- package/{esm2020 → esm2022}/lib/services/internal/commons-init.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/services/mng-localstorage-config.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/services/navigation.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/services/router.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/services/version.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/services/view-container.component.service.mjs +4 -4
- package/esm2022/lib/styles/styles.util.mjs +42 -0
- package/esm2022/lib/types/type.model.mjs +2 -0
- package/esm2022/lib/utils/date.util.mjs +120 -0
- package/esm2022/lib/utils/tableview.util.mjs +193 -0
- package/esm2022/lib/utils/type.util.mjs +94 -0
- package/{fesm2020 → fesm2022}/mediusinc-mng-commons.mjs +930 -908
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -0
- package/lib/api/utils/medius-rest.util.d.ts +4 -3
- package/lib/components/action/action.component.d.ts +1 -1
- package/lib/components/action/editor/action-editor.component.d.ts +6 -9
- package/lib/components/action/localization/data-language-dropdown.component.d.ts +1 -1
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +4 -4
- package/lib/components/form/date-range/date-range.component.d.ts +1 -1
- package/lib/components/form/dropdown/dropdown.component.d.ts +3 -3
- package/lib/components/form/editor/form-editor.component.d.ts +1 -1
- package/lib/components/form/formly/fields/formly-field-custom/formly-custom-field-base.model.d.ts +1 -1
- package/lib/components/layout/breadcrumb.component.d.ts +5 -0
- package/lib/components/layout/menu-item.component.d.ts +1 -1
- package/lib/components/layout/version.component.d.ts +1 -1
- package/lib/components/tableview/models/table.event.d.ts +2 -2
- package/lib/components/tableview/route/tableview-route.component.d.ts +1 -1
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +2 -2
- package/lib/components/tableview/table/column-value/column-value.component.d.ts +1 -1
- package/lib/components/tableview/table/table.component.d.ts +6 -7
- package/lib/components/tableview/tableview.component.d.ts +7 -11
- package/lib/descriptors/editor/editor.descriptor.d.ts +1 -1
- package/lib/descriptors/table/table.descriptor.d.ts +7 -1
- package/lib/descriptors/tableview/tableview.descriptor.d.ts +4 -4
- package/lib/descriptors/types/table.type.d.ts +1 -5
- package/lib/directives/component.directive.d.ts +1 -1
- package/lib/directives/template.directive.d.ts +1 -1
- package/lib/router/route-builder.d.ts +6 -10
- package/lib/router/routes-builder.d.ts +0 -5
- package/lib/security/authorization.guard.d.ts +2 -11
- package/lib/services/action-executor.service.d.ts +1 -15
- package/lib/utils/route.util.d.ts +8 -19
- package/lib/utils/tableview.util.d.ts +5 -0
- package/package.json +12 -19
- package/esm2020/lib/api/models/filter-param.model.mjs +0 -33
- package/esm2020/lib/api/models/query-param.model.mjs +0 -68
- package/esm2020/lib/api/models/query-result.model.mjs +0 -24
- package/esm2020/lib/api/utils/medius-rest.util.mjs +0 -246
- package/esm2020/lib/api/utils/object-serializer.util.mjs +0 -258
- package/esm2020/lib/components/action/action.component.mjs +0 -303
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +0 -390
- package/esm2020/lib/components/action/localization/data-language-dropdown.component.mjs +0 -47
- package/esm2020/lib/components/action/models/tableview-action-default-categories.model.mjs +0 -11
- package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +0 -303
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +0 -214
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +0 -288
- package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +0 -19
- package/esm2020/lib/components/form/models/form-editor.event.mjs +0 -49
- package/esm2020/lib/components/layout/breadcrumb.component.mjs +0 -19
- package/esm2020/lib/components/layout/menu-item.component.mjs +0 -294
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +0 -126
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +0 -108
- package/esm2020/lib/components/tableview/table/table.component.mjs +0 -749
- package/esm2020/lib/components/tableview/tableview.component.mjs +0 -146
- package/esm2020/lib/descriptors/action/action.descriptor.mjs +0 -634
- package/esm2020/lib/descriptors/editor/editor.descriptor.mjs +0 -304
- package/esm2020/lib/descriptors/table/table.descriptor.mjs +0 -521
- package/esm2020/lib/descriptors/tableview/tableview.descriptor.mjs +0 -347
- package/esm2020/lib/mng-commons.module.mjs +0 -469
- package/esm2020/lib/router/route-builder.mjs +0 -312
- package/esm2020/lib/router/routes-builder.mjs +0 -68
- package/esm2020/lib/security/authorization.guard.mjs +0 -30
- package/esm2020/lib/services/action-executor.service.mjs +0 -722
- package/esm2020/lib/services/configuration.service.mjs +0 -150
- package/esm2020/lib/styles/styles.util.mjs +0 -42
- package/esm2020/lib/types/type.model.mjs +0 -2
- package/esm2020/lib/utils/date.util.mjs +0 -120
- package/esm2020/lib/utils/tableview.util.mjs +0 -171
- package/esm2020/lib/utils/type.util.mjs +0 -94
- package/fesm2015/mediusinc-mng-commons.mjs +0 -15900
- package/fesm2015/mediusinc-mng-commons.mjs.map +0 -1
- package/fesm2020/mediusinc-mng-commons.mjs.map +0 -1
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/api/models/builders/query-param.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/api/models/filter-match-type.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/api/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/api/models/mappers.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/api/models/query-mode.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/api/models/serialization.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/api/services/api.abstract.service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/api/services/crud-api.abstract.service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/api/services/get-all-api.abstract.service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/api/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/api/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/action/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/action/models/action-component.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/action/models/action-confirmation-service.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/action/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/form/formly/fields/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/form/formly/formly.config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/form/formly/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/form/formly/models/formly-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/form/formly/models/formly-field.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/form/formly/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/form/formly/wrappers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/form/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/form/models/field-action-context.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/form/models/form-editor.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/form/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/layout/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/layout/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/pages/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tableview/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tableview/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tableview/table/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tableview/table/models/table.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data-providers/base.data-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data-providers/editor.data-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data-providers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data-providers/lookup.data-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data-providers/table.data-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data-providers/tableview-crud.data-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data-providers/tableview.data-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/action/action-button.descriptor.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/action/action-confirmation.descriptor.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/action/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/editor/field-validation.descriptor.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/editor/field.descriptor.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/editor/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/filter/filter.descriptor.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/filter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/interfaces/field-config.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/interfaces/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/interfaces/lookup-descriptor.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/model.descriptor.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/table/column.descriptor.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/table/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/tableview/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/types/action.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/types/column.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/types/editor.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/types/field.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/types/filter.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/descriptors/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/directives/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/column-value.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/enum.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/error-internal.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/error.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/menu.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/tableview-attr.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/user.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/version.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/view-container.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/pipes/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/pipes/models/internal/enumrate-pipe-i18n.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/pipes/models/internal/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/provide-commons.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/models/router.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/tableview-route-builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/security/authorization.util.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/security/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/security/model/authorization.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/security/model/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/security/model/permission-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/security/model/permissions.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/error-mapper.service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/internal/commons-init.provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/internal/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/providers/config-service.provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/providers/formly-config.provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/providers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/tokens/browser-storage.token.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/tokens/commons-init.token.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/tokens/default-setting.token.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/tokens/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/tokens/module-config.token.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/styles/button-style.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/styles/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/styles/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/styles/models/style-level.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/styles/models/style-size.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/types/i18n.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/types/mng-localstorage-config-value.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/types/type.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/action-data-provider.util.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/editor-formly.util.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/enum.util.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/export.util.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/file.util.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/i18n.util.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/model.util.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/notification.util.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/object.util.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/route.util.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/string.util.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/field.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/validators/index.mjs +0 -0
- /package/{esm2020 → esm2022}/mediusinc-mng-commons.mjs +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Params } from '@angular/router';
|
|
2
|
-
import { FilterMetadata
|
|
2
|
+
import { FilterMetadata } from 'primeng/api';
|
|
3
|
+
import { TableLazyLoadEvent } from 'primeng/table';
|
|
3
4
|
import { FilterDescriptor } from '../../descriptors/filter';
|
|
4
5
|
import { ColumnDescriptor } from '../../descriptors/table';
|
|
5
6
|
import { FilterTypeEnum } from '../../descriptors/types';
|
|
@@ -21,10 +22,10 @@ export declare class MediusRestUtil {
|
|
|
21
22
|
dateOnlyDisabled?: boolean;
|
|
22
23
|
}): void;
|
|
23
24
|
fromAngularQueryParamsToMediusQueryParams(params: Params, filterDescriptors: Array<FilterDescriptor<any>>, defaultItemsPerPage?: number, defaultOffset?: number): MediusQueryParam;
|
|
24
|
-
fromPrimeLazyLoadEventToAngularQueryParams(event:
|
|
25
|
+
fromPrimeLazyLoadEventToAngularQueryParams(event: TableLazyLoadEvent): Params;
|
|
25
26
|
modifySortProperties(mediusQueryParams: MediusQueryParam, columnDescriptors: Array<ColumnDescriptor<any, any>> | undefined): void;
|
|
26
27
|
modifyFilterProperties(mediusQueryParams: MediusQueryParam, filterDescriptors: Array<FilterDescriptor<any>>): void;
|
|
27
|
-
fromPrimeLazyLoadEventToMediusQueryParams(event:
|
|
28
|
+
fromPrimeLazyLoadEventToMediusQueryParams(event: TableLazyLoadEvent): MediusQueryParam;
|
|
28
29
|
addMediusFilterFromPrimeFilterMetadata(queryParamBuilder: MediusQueryParamBuilder, property: string, filterMetadata: FilterMetadata): void;
|
|
29
30
|
getMediusFilterMatchTypeFromPrimeMatchMode(matchMode: string, dataType?: FilterTypeEnum): MediusFilterMatchType;
|
|
30
31
|
getMapping(matchMode: string, dataType?: FilterTypeEnum, idx?: number): MatchModeMapType | null;
|
|
@@ -76,5 +76,5 @@ export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDe
|
|
|
76
76
|
private processSubscriptions;
|
|
77
77
|
private initializeViewContainer;
|
|
78
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionComponent<any, any>, [null, null, null, null, null, { optional: true; }]>;
|
|
79
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionComponent<any, any>, "mng-action", never, { "action": "action"; "item": "item"; "itemId": "itemId"; "actionData": "actionData"; "queryParam": "queryParam"; "dataProvider": "dataProvider"; "hostComponent": "hostComponent"; "routeInit": "route"; "inputDisabled": "disabled"; "inputLoading": "loading"; "viewContainerInit": "viewContainer"; "selectedItems": "selectedItems"; }, { "finishEventEmitter": "finish"; }, never, never, true, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionComponent<any, any>, "mng-action", never, { "action": { "alias": "action"; "required": true; }; "item": { "alias": "item"; "required": false; }; "itemId": { "alias": "itemId"; "required": false; }; "actionData": { "alias": "actionData"; "required": false; }; "queryParam": { "alias": "queryParam"; "required": false; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "hostComponent": { "alias": "hostComponent"; "required": false; }; "routeInit": { "alias": "route"; "required": false; }; "inputDisabled": { "alias": "disabled"; "required": false; }; "inputLoading": { "alias": "loading"; "required": false; }; "viewContainerInit": { "alias": "viewContainer"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; }, { "finishEventEmitter": "finish"; }, never, never, true, never>;
|
|
80
80
|
}
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter,
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { DynamicDialogConfig
|
|
4
|
+
import { DynamicDialogConfig } from 'primeng/dynamicdialog';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { IEditorDataProvider } from '../../../data-providers';
|
|
7
7
|
import { ActionDescriptor, ActionEditorDescriptor } from '../../../descriptors/action';
|
|
8
8
|
import { ActionEditorSubmitTypeEnum } from '../../../descriptors/types';
|
|
9
9
|
import { MngTemplateDirective } from '../../../directives';
|
|
10
10
|
import { IViewContainer } from '../../../models';
|
|
11
|
-
import { MngActionExecutorService, MngCommonsService,
|
|
11
|
+
import { MngActionExecutorService, MngCommonsService, MngViewContainerComponentService } from '../../../services';
|
|
12
12
|
import { IdType } from '../../../types';
|
|
13
13
|
import { MngFormEditorComponent } from '../../form';
|
|
14
14
|
import { MngFormEditorSubmitEvent } from '../../form/models';
|
|
15
15
|
import { ActionData } from '../models';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
export declare class MngActionEditorComponent<T, S> implements OnInit, OnChanges, OnDestroy {
|
|
18
|
-
private injector;
|
|
19
18
|
private translate;
|
|
20
19
|
private actionExecutor;
|
|
21
20
|
private mngCommonsService;
|
|
22
|
-
private navigationService;
|
|
23
|
-
private dialogRef;
|
|
24
21
|
private dialogConfig;
|
|
25
22
|
private viewContainerService;
|
|
26
23
|
readonly actionEditorSubmitTypeSubmit = ActionEditorSubmitTypeEnum.Submit;
|
|
@@ -62,7 +59,7 @@ export declare class MngActionEditorComponent<T, S> implements OnInit, OnChanges
|
|
|
62
59
|
dialogRoute?: ActivatedRoute;
|
|
63
60
|
private sourceComponent;
|
|
64
61
|
private subscriptions;
|
|
65
|
-
constructor(
|
|
62
|
+
constructor(translate: TranslateService, actionExecutor: MngActionExecutorService, mngCommonsService: MngCommonsService, dialogConfig: DynamicDialogConfig | null, viewContainerService: MngViewContainerComponentService<T, S> | null);
|
|
66
63
|
ngOnInit(): void;
|
|
67
64
|
ngOnChanges(changes: SimpleChanges): void;
|
|
68
65
|
ngOnDestroy(): void;
|
|
@@ -79,6 +76,6 @@ export declare class MngActionEditorComponent<T, S> implements OnInit, OnChanges
|
|
|
79
76
|
private setEditorEnabled;
|
|
80
77
|
private processActionInstance;
|
|
81
78
|
private unsetInstance;
|
|
82
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionEditorComponent<any, any>, [null, null, null,
|
|
83
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionEditorComponent<any, any>, "mng-action-editor", never, { "action": "action"; "itemIdInit": "itemId"; "itemInit": "item"; "actionData": "actionData"; "dataProvider": "dataProvider"; "viewContainerInit": "viewContainer"; }, { "actionRunEventEmitter": "actionSubmit"; "actionCancelEventEmitter": "actionCancel"; }, ["templates"], never, true, never>;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionEditorComponent<any, any>, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionEditorComponent<any, any>, "mng-action-editor", never, { "action": { "alias": "action"; "required": true; }; "itemIdInit": { "alias": "itemId"; "required": false; }; "itemInit": { "alias": "item"; "required": false; }; "actionData": { "alias": "actionData"; "required": false; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "viewContainerInit": { "alias": "viewContainer"; "required": false; }; }, { "actionRunEventEmitter": "actionSubmit"; "actionCancelEventEmitter": "actionCancel"; }, ["templates"], never, true, never>;
|
|
84
81
|
}
|
|
@@ -21,5 +21,5 @@ export declare class MngDataLanguageDropdownComponent<T> implements IActionCompo
|
|
|
21
21
|
constructor(mngCommons: MngCommonsService);
|
|
22
22
|
updateDataLanguage(dataLang: string): void;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngDataLanguageDropdownComponent<any>, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngDataLanguageDropdownComponent<any>, "mng-data-language-dropdown", never, { "action": "action"; "actionData": "actionData"; "item": "item"; "itemId": "itemId"; "enabled": "enabled"; "loading": "loading"; "viewContainer": "viewContainer"; }, { "triggerActionEventEmitter": "triggerActionEventEmitter"; }, never, never, true, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngDataLanguageDropdownComponent<any>, "mng-data-language-dropdown", never, { "action": { "alias": "action"; "required": true; }; "actionData": { "alias": "actionData"; "required": true; }; "item": { "alias": "item"; "required": true; }; "itemId": { "alias": "itemId"; "required": true; }; "enabled": { "alias": "enabled"; "required": true; }; "loading": { "alias": "loading"; "required": true; }; "viewContainer": { "alias": "viewContainer"; "required": true; }; }, { "triggerActionEventEmitter": "triggerActionEventEmitter"; }, never, never, true, never>;
|
|
25
25
|
}
|
|
@@ -20,8 +20,8 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
|
|
|
20
20
|
openOnFocus: boolean;
|
|
21
21
|
multiselect: boolean;
|
|
22
22
|
placeholder?: string;
|
|
23
|
-
className
|
|
24
|
-
dropdownClassName
|
|
23
|
+
className?: string;
|
|
24
|
+
dropdownClassName?: string;
|
|
25
25
|
showClear: boolean;
|
|
26
26
|
autoClear: boolean;
|
|
27
27
|
selectFirst: boolean;
|
|
@@ -45,7 +45,7 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
|
|
|
45
45
|
onSelect(value: any): void;
|
|
46
46
|
onFocus(event: Event): void;
|
|
47
47
|
onBlur(event: any): void;
|
|
48
|
-
onClear(
|
|
48
|
+
onClear(): void;
|
|
49
49
|
registerOnChange(fn: any): void;
|
|
50
50
|
registerOnTouched(fn: any): void;
|
|
51
51
|
setDisabledState(isDisabled: boolean): void;
|
|
@@ -57,5 +57,5 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
|
|
|
57
57
|
private i18nPopulateItems;
|
|
58
58
|
private setSuggestionsFromItems;
|
|
59
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngAutocompleteComponent, [null, null, { optional: true; }]>;
|
|
60
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsValuePropertyInit": "itemsValueProperty"; "itemsLabelPropertyInit": "itemsLabelProperty"; "itemsLabelTranslate": "itemsLabelTranslate"; "inlineSearch": "inlineSearch"; "openOnFocus": "openOnFocus"; "multiselect": "multiselect"; "placeholder": "placeholder"; "className": "className"; "dropdownClassName": "dropdownClassName"; "showClear": "showClear"; "autoClear": "autoClear"; "selectFirst": "selectFirst"; }, { "valueChangeEventEmitter": "valueChange"; }, never, never, true, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": { "alias": "dataProvider"; "required": false; }; "dataKeyProperty": { "alias": "dataKeyProperty"; "required": false; }; "itemsValuePropertyInit": { "alias": "itemsValueProperty"; "required": false; }; "itemsLabelPropertyInit": { "alias": "itemsLabelProperty"; "required": false; }; "itemsLabelTranslate": { "alias": "itemsLabelTranslate"; "required": false; }; "inlineSearch": { "alias": "inlineSearch"; "required": false; }; "openOnFocus": { "alias": "openOnFocus"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "className": { "alias": "className"; "required": false; }; "dropdownClassName": { "alias": "dropdownClassName"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "autoClear": { "alias": "autoClear"; "required": false; }; "selectFirst": { "alias": "selectFirst"; "required": false; }; }, { "valueChangeEventEmitter": "valueChange"; }, never, never, true, never>;
|
|
61
61
|
}
|
|
@@ -24,5 +24,5 @@ export declare class MngDateRangeComponent implements OnInit, OnDestroy, Control
|
|
|
24
24
|
writeValue(obj: any): void;
|
|
25
25
|
private onValueChange;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngDateRangeComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngDateRangeComponent, "mng-date-range", never, { "placeholder": "placeholder"; "showTime": "showTime"; "showSeconds": "showSeconds"; "dateFormat": "dateFormat"; }, {}, never, never, true, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngDateRangeComponent, "mng-date-range", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
28
|
}
|
|
@@ -21,8 +21,8 @@ export declare class MngDropdownComponent implements OnInit, OnDestroy, ControlV
|
|
|
21
21
|
placeholder?: string;
|
|
22
22
|
showClear: boolean;
|
|
23
23
|
selectFirstItem: boolean;
|
|
24
|
-
className
|
|
25
|
-
dropdownClassName
|
|
24
|
+
className?: string;
|
|
25
|
+
dropdownClassName?: string;
|
|
26
26
|
changeValueOnBlur: boolean;
|
|
27
27
|
private loadingSubject;
|
|
28
28
|
$loading: Observable<boolean>;
|
|
@@ -55,5 +55,5 @@ export declare class MngDropdownComponent implements OnInit, OnDestroy, ControlV
|
|
|
55
55
|
*/
|
|
56
56
|
private isValueAccessorInitialized;
|
|
57
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngDropdownComponent, [null, null, { optional: true; }]>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelPropertyInit": "itemsLabelProperty"; "itemsLabelTranslate": "itemsLabelTranslate"; "itemsValuePropertyInit": "itemsValueProperty"; "itemsDisabledProperty": "itemsDisabledProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "showClear": "showClear"; "selectFirstItem": "selectFirstItem"; "className": "className"; "dropdownClassName": "dropdownClassName"; "changeValueOnBlur": "changeValueOnBlur"; }, { "valueChangeEventEmitter": "valueChange"; }, never, never, true, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": { "alias": "dataProvider"; "required": false; }; "dataKeyProperty": { "alias": "dataKeyProperty"; "required": false; }; "itemsLabelPropertyInit": { "alias": "itemsLabelProperty"; "required": false; }; "itemsLabelTranslate": { "alias": "itemsLabelTranslate"; "required": false; }; "itemsValuePropertyInit": { "alias": "itemsValueProperty"; "required": false; }; "itemsDisabledProperty": { "alias": "itemsDisabledProperty"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "selectFirstItem": { "alias": "selectFirstItem"; "required": false; }; "className": { "alias": "className"; "required": false; }; "dropdownClassName": { "alias": "dropdownClassName"; "required": false; }; "changeValueOnBlur": { "alias": "changeValueOnBlur"; "required": false; }; }, { "valueChangeEventEmitter": "valueChange"; }, never, never, true, never>;
|
|
59
59
|
}
|
|
@@ -52,5 +52,5 @@ export declare class MngFormEditorComponent<T> implements IFormEditorComponent<T
|
|
|
52
52
|
*/
|
|
53
53
|
private setInitialFormState;
|
|
54
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormEditorComponent<any>, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "viewContainerInit": "viewContainer"; "isFormDisabled": "isFormDisabled"; }, { "formSubmitEventEmitter": "formSubmit"; }, ["templates"], never, true, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": { "alias": "descriptor"; "required": false; }; "submitLoading": { "alias": "submitLoading"; "required": false; }; "item": { "alias": "item"; "required": false; }; "viewContainerInit": { "alias": "viewContainer"; "required": false; }; "isFormDisabled": { "alias": "isFormDisabled"; "required": false; }; }, { "formSubmitEventEmitter": "formSubmit"; }, ["templates"], never, true, never>;
|
|
56
56
|
}
|
package/lib/components/form/formly/fields/formly-field-custom/formly-custom-field-base.model.d.ts
CHANGED
|
@@ -23,5 +23,5 @@ export declare abstract class AMngFormlyCustomFieldComponent extends FieldType<M
|
|
|
23
23
|
get id(): string;
|
|
24
24
|
get formState(): any;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<AMngFormlyCustomFieldComponent, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AMngFormlyCustomFieldComponent, never, never, { "field": "field"; "_model": "model"; "_form": "form"; "_options": "options"; "_key": "key"; "_formControl": "formControl"; "_props": "props"; "_showError": "showError"; "_id": "id"; "_formState": "formState"; }, {}, never, never, false, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AMngFormlyCustomFieldComponent, never, never, { "field": { "alias": "field"; "required": false; }; "_model": { "alias": "model"; "required": false; }; "_form": { "alias": "form"; "required": false; }; "_options": { "alias": "options"; "required": false; }; "_key": { "alias": "key"; "required": false; }; "_formControl": { "alias": "formControl"; "required": false; }; "_props": { "alias": "props"; "required": false; }; "_showError": { "alias": "showError"; "required": false; }; "_id": { "alias": "id"; "required": false; }; "_formState": { "alias": "formState"; "required": false; }; }, {}, never, never, false, never>;
|
|
27
27
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { MenuItem } from 'primeng/api';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
1
3
|
import { MngCommonsService } from '../../services';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
export declare class MngBreadcrumbComponent {
|
|
4
6
|
mngCommons: MngCommonsService;
|
|
7
|
+
mappedBreadcrumbHome$: Observable<MenuItem | null>;
|
|
8
|
+
mappedBreadcrumbs$: Observable<MenuItem[]>;
|
|
5
9
|
constructor(mngCommons: MngCommonsService);
|
|
10
|
+
private mapMngMenuItem;
|
|
6
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngBreadcrumbComponent, never>;
|
|
7
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngBreadcrumbComponent, "mng-breadcrumb", never, {}, {}, never, never, true, never>;
|
|
8
13
|
}
|
|
@@ -51,5 +51,5 @@ export declare class MngMenuItemComponent implements OnInit, OnDestroy {
|
|
|
51
51
|
private checkIfMenuItemIsAllowedFromGuard;
|
|
52
52
|
private processItemChildrenVisibility;
|
|
53
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngMenuItemComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuItemComponent, "[mng-menuitem]", never, { "item": "item"; "index": "index"; "root": "root"; "parentKey": "parentKey"; }, { "visibleChangeEventEmitter": "visibleChange"; }, never, never, true, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuItemComponent, "[mng-menuitem]", never, { "item": { "alias": "item"; "required": true; }; "index": { "alias": "index"; "required": false; }; "root": { "alias": "root"; "required": false; }; "parentKey": { "alias": "parentKey"; "required": false; }; }, { "visibleChangeEventEmitter": "visibleChange"; }, never, never, true, never>;
|
|
55
55
|
}
|
|
@@ -15,5 +15,5 @@ export declare class MngVersionComponent implements OnInit {
|
|
|
15
15
|
constructor(versionService: MngVersionService, jsonPathPipe: JsonPathPipe);
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngVersionComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngVersionComponent, "mng-version", never, { "initVersion": "version"; }, {}, never, never, true, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngVersionComponent, "mng-version", never, { "initVersion": { "alias": "version"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
19
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TableLazyLoadEvent } from 'primeng/table';
|
|
2
2
|
import { MediusQueryParam } from '../../../api/models';
|
|
3
3
|
import { ColumnDescriptor } from '../../../descriptors/table';
|
|
4
4
|
export declare class MngTableLoadEvent {
|
|
5
5
|
queryParam?: MediusQueryParam;
|
|
6
|
-
originalEvent?:
|
|
6
|
+
originalEvent?: TableLazyLoadEvent;
|
|
7
7
|
}
|
|
8
8
|
export declare class MngTableCellClickEvent<T> {
|
|
9
9
|
readonly column: ColumnDescriptor<any, T>;
|
|
@@ -15,5 +15,5 @@ export declare class MngTableviewRouteComponent<T, S> extends AMngTableviewRoute
|
|
|
15
15
|
protected createActionDescriptors(): Array<ActionDescriptor<T>>;
|
|
16
16
|
reloadTable(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableviewRouteComponent<any, any>, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewRouteComponent<any, any>, "mng-tableview-route", never, { "descriptorInit": "descriptor"; "dataProviderInit": "dataProvider"; "actionsInit": "actions"; }, {}, never, never, true, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewRouteComponent<any, any>, "mng-tableview-route", never, { "descriptorInit": { "alias": "descriptor"; "required": false; }; "dataProviderInit": { "alias": "dataProvider"; "required": false; }; "actionsInit": { "alias": "actions"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
19
|
}
|
|
@@ -21,7 +21,7 @@ export declare class MngTableColumnFilterComponent<T> implements OnInit, OnDestr
|
|
|
21
21
|
primeShowMatchMode: boolean;
|
|
22
22
|
primeDefaultMatchMode: FilterMatchModeEnum;
|
|
23
23
|
primeDisplay: string;
|
|
24
|
-
primeMatchModeCustomOptions
|
|
24
|
+
primeMatchModeCustomOptions?: SelectItem[];
|
|
25
25
|
private dateFilterCallback?;
|
|
26
26
|
private dateDebounceSubject;
|
|
27
27
|
private dateDebounceSubscription?;
|
|
@@ -34,5 +34,5 @@ export declare class MngTableColumnFilterComponent<T> implements OnInit, OnDestr
|
|
|
34
34
|
autocompleteFilter(value: T, filterCallback: Function): void;
|
|
35
35
|
dropdownFilter(value: any, filterCallback: Function): void;
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableColumnFilterComponent<any>, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnFilterComponent<any>, "mng-table-column-filter", never, { "descriptor": "descriptor"; "display": "display"; }, {}, never, never, true, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnFilterComponent<any>, "mng-table-column-filter", never, { "descriptor": { "alias": "descriptor"; "required": true; }; "display": { "alias": "display"; "required": true; }; }, {}, never, never, true, never>;
|
|
38
38
|
}
|
|
@@ -31,5 +31,5 @@ export declare class MngTableColumnValueComponent<T, TT> implements OnInit {
|
|
|
31
31
|
ngOnInit(): void;
|
|
32
32
|
copyToClipboard(event: Event): void;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableColumnValueComponent<any, any>, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnValueComponent<any, any>, "mng-table-column-value", never, { "descriptor": "descriptor"; "item": "item"; }, {}, never, never, true, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnValueComponent<any, any>, "mng-table-column-value", never, { "descriptor": { "alias": "descriptor"; "required": true; }; "item": { "alias": "item"; "required": true; }; }, {}, never, never, true, never>;
|
|
35
35
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AfterContentInit, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef, Type } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { FilterMetadata,
|
|
5
|
-
import { Table } from 'primeng/table';
|
|
4
|
+
import { FilterMetadata, SortMeta } from 'primeng/api';
|
|
5
|
+
import { Table, TableLazyLoadEvent } from 'primeng/table';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { MediusQueryResult } from '../../../api/models';
|
|
8
8
|
import { ITableDataProvider } from '../../../data-providers';
|
|
@@ -26,7 +26,6 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
26
26
|
private viewContainerService;
|
|
27
27
|
private localStorageService;
|
|
28
28
|
readonly filterDisplayRow: TableFilterDisplayEnum;
|
|
29
|
-
readonly filterDisplayMenu: TableFilterDisplayEnum;
|
|
30
29
|
readonly cmpTypeName = "MngTableComponent";
|
|
31
30
|
initialDescriptor: TableDescriptor<T>;
|
|
32
31
|
descriptor?: TableDescriptor<T>;
|
|
@@ -35,7 +34,7 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
35
34
|
loading?: Observable<boolean> | boolean;
|
|
36
35
|
dataProvider?: ITableDataProvider<T, any>;
|
|
37
36
|
useQueryParams: boolean;
|
|
38
|
-
selectionMode:
|
|
37
|
+
selectionMode: 'single' | 'multiple';
|
|
39
38
|
selectionEnabled: boolean;
|
|
40
39
|
actions: Array<ActionDescriptor<T>>;
|
|
41
40
|
isColumnClickable?: boolean;
|
|
@@ -76,7 +75,7 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
76
75
|
infiniteScroll: boolean;
|
|
77
76
|
className: string;
|
|
78
77
|
tableFullHeightOffset: number | null;
|
|
79
|
-
rowHeight
|
|
78
|
+
rowHeight?: number;
|
|
80
79
|
selection: Array<T>;
|
|
81
80
|
private dataProviderService;
|
|
82
81
|
private dataProviderQueryResultSubject;
|
|
@@ -108,7 +107,7 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
108
107
|
ngOnChanges(changes: SimpleChanges): void;
|
|
109
108
|
ngOnDestroy(): void;
|
|
110
109
|
reload(emitEvent?: boolean, resetParams?: boolean): void;
|
|
111
|
-
onTableLazyLoad(event:
|
|
110
|
+
onTableLazyLoad(event: TableLazyLoadEvent): void;
|
|
112
111
|
onTableSort(event: any): void;
|
|
113
112
|
onTableFilter(event: any): void;
|
|
114
113
|
onCellClick(event: Event, col: ColumnDescriptor<any, T>, item: T, idx: number): void;
|
|
@@ -140,5 +139,5 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
140
139
|
*/
|
|
141
140
|
resetDefaultLayout(): void;
|
|
142
141
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableComponent<any, any>, [null, null, null, null, null, null, { optional: true; }, null]>;
|
|
143
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "initialDescriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionMode": "selectionMode"; "selectionEnabled": "selectionEnabled"; "actions": "actions"; "isColumnClickable": "isColumnClickable"; "viewContainerInit": "viewContainer"; "captionComponent": "captionComponent"; "columnActionComponent": "columnActionComponent"; "columnActionMinWidth": "columnActionMinWidth"; "globalFilterFieldsInit": "globalFilterFields"; }, { "loadEventEmitter": "tableLoad"; "cellClickEventEmitter": "cellClick"; "selectionChangeEventEmitter": "selectionChange"; "captionCmpInstEventEmitter": "captionComponentInstance"; "columnActionCmpInstEventEmitter": "columnActionComponentInstance"; }, ["templates"], never, true, never>;
|
|
142
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "initialDescriptor": { "alias": "descriptor"; "required": true; }; "items": { "alias": "items"; "required": false; }; "queryResult": { "alias": "queryResult"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "useQueryParams": { "alias": "useQueryParams"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selectionEnabled": { "alias": "selectionEnabled"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "isColumnClickable": { "alias": "isColumnClickable"; "required": false; }; "viewContainerInit": { "alias": "viewContainer"; "required": false; }; "captionComponent": { "alias": "captionComponent"; "required": false; }; "columnActionComponent": { "alias": "columnActionComponent"; "required": false; }; "columnActionMinWidth": { "alias": "columnActionMinWidth"; "required": false; }; "globalFilterFieldsInit": { "alias": "globalFilterFields"; "required": false; }; }, { "loadEventEmitter": "tableLoad"; "cellClickEventEmitter": "cellClick"; "selectionChangeEventEmitter": "selectionChange"; "captionCmpInstEventEmitter": "captionComponentInstance"; "columnActionCmpInstEventEmitter": "columnActionComponentInstance"; }, ["templates"], never, true, never>;
|
|
144
143
|
}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import { AfterContentInit, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { ConfirmationService, Message, MessageService } from 'primeng/api';
|
|
2
|
+
import { Message, MessageService } from 'primeng/api';
|
|
5
3
|
import { MediusQueryParam } from '../../api/models';
|
|
6
4
|
import { IDataProvider, ITableviewDataProvider } from '../../data-providers';
|
|
7
5
|
import { ActionDescriptor } from '../../descriptors/action';
|
|
8
6
|
import { TableviewDescriptor } from '../../descriptors/tableview';
|
|
9
7
|
import { MngTemplateDirective } from '../../directives';
|
|
10
8
|
import { IViewContainer } from '../../models';
|
|
11
|
-
import {
|
|
9
|
+
import { MngViewContainerComponentService } from '../../services';
|
|
12
10
|
import { MngTableLoadEvent } from './models';
|
|
13
11
|
import { MngTableComponent } from './table/table.component';
|
|
14
12
|
import * as i0 from "@angular/core";
|
|
15
13
|
export declare class MngTableviewComponent<T, S> implements OnInit, OnDestroy, AfterContentInit, IViewContainer<T, S> {
|
|
16
|
-
private route;
|
|
17
14
|
private messageService;
|
|
18
|
-
private translateService;
|
|
19
|
-
private confirmationService;
|
|
20
|
-
private actionExecutor;
|
|
21
15
|
private viewContainerService;
|
|
22
16
|
descriptor: TableviewDescriptor<T>;
|
|
23
17
|
dataProvider?: ITableviewDataProvider<T, S>;
|
|
@@ -32,9 +26,10 @@ export declare class MngTableviewComponent<T, S> implements OnInit, OnDestroy, A
|
|
|
32
26
|
selectedItems: T[];
|
|
33
27
|
templates: QueryList<MngTemplateDirective>;
|
|
34
28
|
footerTemplate?: TemplateRef<any>;
|
|
35
|
-
|
|
29
|
+
isDialogNotificationVisible: boolean;
|
|
30
|
+
dialogNotification: Message | null;
|
|
36
31
|
readonly notificationCutoff = 70;
|
|
37
|
-
constructor(
|
|
32
|
+
constructor(messageService: MessageService, viewContainerService: MngViewContainerComponentService<T, S>);
|
|
38
33
|
ngOnInit(): void;
|
|
39
34
|
ngAfterContentInit(): void;
|
|
40
35
|
ngOnDestroy(): void;
|
|
@@ -44,7 +39,8 @@ export declare class MngTableviewComponent<T, S> implements OnInit, OnDestroy, A
|
|
|
44
39
|
reloadTable(): void;
|
|
45
40
|
onTableLoad(event: MngTableLoadEvent): void;
|
|
46
41
|
selectionChange(selectedItems: Array<T>): void;
|
|
42
|
+
onShowNotificationInDialog(message: Message): void;
|
|
47
43
|
getNotificationIconClass(message: Message | null): string;
|
|
48
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableviewComponent<any, any>, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewComponent<any, any>, "mng-tableview", never, { "descriptor": "descriptor"; "dataProvider": "dataProvider"; "actions": "actions"; }, {}, ["templates"], never, true, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewComponent<any, any>, "mng-tableview", never, { "descriptor": { "alias": "descriptor"; "required": true; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, {}, ["templates"], never, true, never>;
|
|
50
46
|
}
|
|
@@ -3,7 +3,7 @@ import { Observable, Subject } from 'rxjs';
|
|
|
3
3
|
import { MediusQueryParam } from '../../api/models';
|
|
4
4
|
import { MngFieldEventData, MngFormEvent, MngFormEventTypeEnum } from '../../components/form/models';
|
|
5
5
|
import { ILookupDataProvider } from '../../data-providers';
|
|
6
|
-
import { TableviewAttributeDef } from '../../models
|
|
6
|
+
import { TableviewAttributeDef } from '../../models';
|
|
7
7
|
import { ClassType, EnumConstantType, EnumType, MngFieldValidationMessage, MngFieldValidator } from '../../types';
|
|
8
8
|
import { ModelDescriptor } from '../model.descriptor';
|
|
9
9
|
import { TableDescriptor } from '../table';
|
|
@@ -19,6 +19,8 @@ export declare class TableDescriptor<T> {
|
|
|
19
19
|
private _title?;
|
|
20
20
|
private _hideHeader;
|
|
21
21
|
private _dataKeyProperty?;
|
|
22
|
+
private _loadingText?;
|
|
23
|
+
private _loadingIcon;
|
|
22
24
|
private _hasDefaultSort;
|
|
23
25
|
private _defaultSortProperty;
|
|
24
26
|
private _defaultSortAsc;
|
|
@@ -61,6 +63,8 @@ export declare class TableDescriptor<T> {
|
|
|
61
63
|
get title(): string | undefined;
|
|
62
64
|
get hideHeader(): boolean;
|
|
63
65
|
get dataKeyProperty(): string | undefined;
|
|
66
|
+
get loadingText(): string | undefined;
|
|
67
|
+
get loadingIcon(): string | null;
|
|
64
68
|
get hasDefaultSort(): boolean;
|
|
65
69
|
get defaultSortProperty(): string[];
|
|
66
70
|
get defaultSortAsc(): boolean[];
|
|
@@ -99,6 +103,7 @@ export declare class TableDescriptor<T> {
|
|
|
99
103
|
withTitle(title: string): this;
|
|
100
104
|
withHideHeader(hideHeader?: boolean): this;
|
|
101
105
|
withDataKeyProperty(property: string): this;
|
|
106
|
+
withLoading(text?: string, icon?: string | null): this;
|
|
102
107
|
withColumnsReorderable(columnsReorderable?: boolean): this;
|
|
103
108
|
withColumnsToggleable(columnsToggleable?: boolean): this;
|
|
104
109
|
withDefaultSort(property: string, asc?: boolean): this;
|
|
@@ -152,7 +157,7 @@ export declare class TableDynamicDescriptor extends TableDescriptor<any> {
|
|
|
152
157
|
private _sortColumnMode;
|
|
153
158
|
private _filterColumnMode;
|
|
154
159
|
protected _columns: ColumnDynamicDescriptor[];
|
|
155
|
-
constructor(idProperty?: string, titleProperty?: string);
|
|
160
|
+
constructor(idProperty?: string, titleProperty?: string, i18nBaseKey?: string);
|
|
156
161
|
get columns(): ColumnDynamicDescriptor[];
|
|
157
162
|
/**
|
|
158
163
|
* defines excluded columns when generating descriptor
|
|
@@ -175,6 +180,7 @@ export declare class TableDynamicDescriptor extends TableDescriptor<any> {
|
|
|
175
180
|
* sets given type to column with given property and returns this table
|
|
176
181
|
* @param property column's property
|
|
177
182
|
* @param type custom type for column
|
|
183
|
+
* @param displayType custom column value display type
|
|
178
184
|
* @param args addition arguments for column
|
|
179
185
|
*/
|
|
180
186
|
withColumnModifiedType(property: string, type: ColumnTypeEnum, displayType?: ColumnDisplayTypeEnum, ...args: any[]): this;
|
|
@@ -3,8 +3,7 @@ import { FieldValidatorFn } from '@ngx-formly/core/lib/models/config';
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { MediusQueryParam } from '../../api/models';
|
|
5
5
|
import { ILookupDataProvider } from '../../data-providers';
|
|
6
|
-
import { IColumnValueComponent } from '../../models';
|
|
7
|
-
import { TableviewAttributeDef } from '../../models/tableview-attr.model';
|
|
6
|
+
import { IColumnValueComponent, TableviewAttributeDef } from '../../models';
|
|
8
7
|
import { ClassType, EnumConstantType, EnumType } from '../../types';
|
|
9
8
|
import { AFieldDescriptor, EditorDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor } from '../editor';
|
|
10
9
|
import { ModelDescriptor } from '../model.descriptor';
|
|
@@ -111,7 +110,7 @@ export declare class TableviewDescriptor<T> {
|
|
|
111
110
|
}
|
|
112
111
|
export declare class TableviewDynamicDescriptor extends TableviewDescriptor<any> {
|
|
113
112
|
protected _table: TableDynamicDescriptor;
|
|
114
|
-
constructor(idProperty?: string, titleProperty?: string);
|
|
113
|
+
constructor(idProperty?: string, titleProperty?: string, i18nBaseKey?: string);
|
|
115
114
|
get table(): TableDynamicDescriptor;
|
|
116
115
|
/**
|
|
117
116
|
* sets custom table descriptor
|
|
@@ -124,8 +123,9 @@ export declare class TableviewDynamicDescriptor extends TableviewDescriptor<any>
|
|
|
124
123
|
* * @param property column's property
|
|
125
124
|
*/
|
|
126
125
|
removeColumn(property: string): this;
|
|
126
|
+
withEntityForTranslations(i18nBaseKey: string): this;
|
|
127
127
|
/**
|
|
128
|
-
* creates
|
|
128
|
+
* creates deep copy of tableview object and its children
|
|
129
129
|
*/
|
|
130
130
|
copy(): TableviewDynamicDescriptor;
|
|
131
131
|
}
|
|
@@ -16,5 +16,5 @@ export declare class MngComponentDirective<C> implements OnInit {
|
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
private isCmpInstanceOfColumnValue;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngComponentDirective<any>, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MngComponentDirective<any>, "[mngComponent]", never, { "component": "mngComponent"; "inputs": "inputs"; "attachToHost": "attachToHost"; }, { "componentInstanceEventEmitter": "instanceCreated"; }, never, never, true, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MngComponentDirective<any>, "[mngComponent]", never, { "component": { "alias": "mngComponent"; "required": true; }; "inputs": { "alias": "inputs"; "required": false; }; "attachToHost": { "alias": "attachToHost"; "required": false; }; }, { "componentInstanceEventEmitter": "instanceCreated"; }, never, never, true, never>;
|
|
20
20
|
}
|
|
@@ -9,5 +9,5 @@ export declare class MngTemplateDirective {
|
|
|
9
9
|
getType(): string;
|
|
10
10
|
getViewContainerRef(): ViewContainerRef;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTemplateDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MngTemplateDirective, "[mngTemplate]", never, { "type": "type"; "name": "mngTemplate"; }, {}, never, never, true, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MngTemplateDirective, "[mngTemplate]", never, { "type": { "alias": "type"; "required": false; }; "name": { "alias": "mngTemplate"; "required": true; }; }, {}, never, never, true, never>;
|
|
13
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { DefaultExport, LoadChildren, Route } from '@angular/router';
|
|
1
|
+
import { EnvironmentProviders, Provider, Type } from '@angular/core';
|
|
2
|
+
import { CanActivateFn, CanDeactivateFn, DefaultExport, LoadChildren, ResolveFn, Route } from '@angular/router';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { MngMainLayoutComponent } from '../components/layout';
|
|
5
5
|
import { MngMenuItem } from '../models';
|
|
@@ -22,11 +22,6 @@ export declare class RouteBuilder {
|
|
|
22
22
|
protected constructor(route: Route);
|
|
23
23
|
static create(path: string, component: Type<any>): RouteBuilder;
|
|
24
24
|
static createRedirect(path: string, redirectTo: string, pathMatch?: 'full' | 'prefix'): RouteBuilder;
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated This method is deprecated and should not be used.
|
|
27
|
-
* Use method {@link createLazyRouteComponent} or {@link createLazyRouteModule} instead.
|
|
28
|
-
*/
|
|
29
|
-
static createLazyRoute(path: string, loadChildren: LoadChildren, canLoad?: Array<any>): RouteBuilder;
|
|
30
25
|
static createLazyRouteModule(path: string, loadChildren: LoadChildren, canMatch?: Array<any>): RouteBuilder;
|
|
31
26
|
static createLazyRouteComponent(path: string, loadComponent: () => Type<unknown> | Observable<Type<unknown> | DefaultExport<Type<unknown>>> | Promise<Type<unknown> | DefaultExport<Type<unknown>>>, canMatch?: Array<any>): RouteBuilder;
|
|
32
27
|
static createFromRoute(route: Route): RouteBuilder;
|
|
@@ -38,9 +33,10 @@ export declare class RouteBuilder {
|
|
|
38
33
|
withRedirectTo(redirectTo: string): this;
|
|
39
34
|
withPathMatch(pathMatch: 'full' | 'prefix'): this;
|
|
40
35
|
withTitle(title: string): this;
|
|
41
|
-
withCanActivate(diToken:
|
|
42
|
-
withCanDeactivate(diToken: any): this;
|
|
43
|
-
withResolver(diToken: any
|
|
36
|
+
withCanActivate(diToken: CanActivateFn): this;
|
|
37
|
+
withCanDeactivate(diToken: CanDeactivateFn<any>): this;
|
|
38
|
+
withResolver(diToken: ResolveFn<any>, name: string): this;
|
|
39
|
+
withProvider(provider: Provider | EnvironmentProviders): this;
|
|
44
40
|
withData(data: MngRouterData): this;
|
|
45
41
|
withMngMenuItem(menuItem: MngMenuItem): this;
|
|
46
42
|
withMenuItem(icon?: string, label?: string, routerLink?: Array<string>): this;
|
|
@@ -13,11 +13,6 @@ export declare class RoutesBuilder {
|
|
|
13
13
|
static createWithLayout(layoutComponent?: typeof MngMainLayoutComponent): RoutesBuilder;
|
|
14
14
|
addAngularRoute(route: Route): this;
|
|
15
15
|
addRouteRedirect(path: string, redirectTo: string, pathMatch?: 'full' | 'prefix'): this;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated This method is deprecated and should not be used.
|
|
18
|
-
* Use method {@link addLazyRouteComponent} or {@link addLazyRouteModule} instead.
|
|
19
|
-
*/
|
|
20
|
-
addLazyRoute(path: string, loadChildren: LoadChildren, canLoad?: Array<any>): this;
|
|
21
16
|
addLazyRouteComponent(path: string, loadComponent: () => Type<unknown> | Observable<Type<unknown> | DefaultExport<Type<unknown>>> | Promise<Type<unknown> | DefaultExport<Type<unknown>>>, canMatch?: Array<any>): this;
|
|
22
17
|
addLazyRouteModule(path: string, loadChildren: LoadChildren, canMatch?: Array<any>): this;
|
|
23
18
|
addRoute(path: string, component: Type<any>): this;
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { MngAuthorizationService } from './authorization.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MngAuthorizationGuard implements CanActivate {
|
|
6
|
-
private authorization;
|
|
7
|
-
constructor(authorization: MngAuthorizationService);
|
|
8
|
-
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngAuthorizationGuard, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MngAuthorizationGuard>;
|
|
11
|
-
}
|
|
1
|
+
import { CanActivateFn } from '@angular/router';
|
|
2
|
+
export declare const mngAuthorizationGuard: CanActivateFn;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Injector, Type } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { DialogService } from 'primeng/dynamicdialog';
|
|
5
5
|
import { ActionContext, ActionContextValidation, ActionInstance, ActionParameters } from '../components/action/models';
|
|
6
|
-
import { MngTableCellClickEvent } from '../components/tableview/models';
|
|
7
6
|
import { IDataProvider, IEditorDataProvider } from '../data-providers';
|
|
8
7
|
import { ActionDescriptor, ActionEditorDescriptor } from '../descriptors/action';
|
|
9
|
-
import { TableDescriptor } from '../descriptors/table';
|
|
10
8
|
import { MngError } from '../models';
|
|
11
9
|
import { MngParametrizePipe } from '../pipes';
|
|
12
10
|
import { MngCommonsService } from './commons.service';
|
|
@@ -137,18 +135,6 @@ export declare class MngActionExecutorService {
|
|
|
137
135
|
* @param onDestroy Marks if finish is called on component destroy lifecycle hook.
|
|
138
136
|
*/
|
|
139
137
|
finishAction<T, S>(instance: ActionInstance<T, S>, onDestroy?: boolean): void;
|
|
140
|
-
/**
|
|
141
|
-
* Triggers action from table row click position.
|
|
142
|
-
*
|
|
143
|
-
* @param action Action descriptor.
|
|
144
|
-
* @param event Target table click event.
|
|
145
|
-
* @param route Currently activate route.
|
|
146
|
-
* @param tableDescriptor Table descriptor.
|
|
147
|
-
* @param dataKeyProperty Data key property.
|
|
148
|
-
*
|
|
149
|
-
* @deprecated
|
|
150
|
-
*/
|
|
151
|
-
triggerRowClickAction<T>(action: ActionDescriptor<T>, event: MngTableCellClickEvent<T>, route?: ActivatedRoute, tableDescriptor?: TableDescriptor<T>, dataKeyProperty?: string): ActionInstance<T, unknown>;
|
|
152
138
|
/**
|
|
153
139
|
* Triggers action with parameters.
|
|
154
140
|
*
|