@mediusinc/mng-commons 6.2.0-rc.0 → 7.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/core/index.d.ts +1743 -84
- package/fesm2022/mediusinc-mng-commons-core.mjs +104 -87
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-filter.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +97 -97
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-model-class.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-model.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api-class.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-Dvenjj9n.mjs +30 -0
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-Dvenjj9n.mjs.map +1 -0
- package/fesm2022/{mediusinc-mng-commons-table-mediusinc-mng-commons-table-8TdW6NCC.mjs → mediusinc-mng-commons-table-mediusinc-mng-commons-table-DFcdSUCN.mjs} +183 -186
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-DFcdSUCN.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table.mjs +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api-class.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +3 -3
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +305 -289
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/filter/index.d.ts +398 -5
- package/form/api/index.d.ts +134 -7
- package/form/index.d.ts +301 -6
- package/index.d.ts +11 -1
- package/model/class/index.d.ts +25 -4
- package/model/index.d.ts +71 -5
- package/package.json +10 -10
- package/table/api/class/index.d.ts +77 -5
- package/table/api/index.d.ts +1161 -14
- package/table/index.d.ts +545 -17
- package/tableview/api/class/index.d.ts +141 -10
- package/tableview/api/index.d.ts +2542 -63
- package/tableview/index.d.ts +1274 -54
- package/version-info.json +5 -5
- package/core/action/action-data.model.d.ts +0 -3
- package/core/action/action-parameters.model.d.ts +0 -44
- package/core/components/notification/notification-wrapper.component.d.ts +0 -14
- package/core/data-list/data-list-params-helpers.d.ts +0 -93
- package/core/data-list/data-list.model.d.ts +0 -28
- package/core/data-list/filter-match.model.d.ts +0 -36
- package/core/data-list/filter-metadata.model.d.ts +0 -20
- package/core/data-providers/base.data-provider.d.ts +0 -17
- package/core/data-providers/lookup.data-provider.d.ts +0 -10
- package/core/descriptors/action.descriptor.d.ts +0 -12
- package/core/descriptors/column.descriptor.d.ts +0 -3
- package/core/descriptors/editor.descriptor.d.ts +0 -11
- package/core/descriptors/enum.descriptor.d.ts +0 -6
- package/core/descriptors/filter.descriptor.d.ts +0 -3
- package/core/descriptors/lookup.descriptor.d.ts +0 -12
- package/core/descriptors/model.descriptor.d.ts +0 -5
- package/core/descriptors/table.descriptor.d.ts +0 -11
- package/core/descriptors/tableview.descriptor.d.ts +0 -11
- package/core/directives/component.directive.d.ts +0 -18
- package/core/directives/rerender.directive.d.ts +0 -9
- package/core/directives/template.directive.d.ts +0 -8
- package/core/enum/enum-helpers.d.ts +0 -54
- package/core/enum/enum.model.d.ts +0 -8
- package/core/error/error-handler.d.ts +0 -6
- package/core/error/error-helpers.d.ts +0 -136
- package/core/error/error.model.d.ts +0 -53
- package/core/helpers/coercion.d.ts +0 -10
- package/core/helpers/date.d.ts +0 -14
- package/core/helpers/notification.d.ts +0 -18
- package/core/helpers/number.d.ts +0 -5
- package/core/helpers/object.d.ts +0 -27
- package/core/helpers/route.d.ts +0 -34
- package/core/helpers/string.d.ts +0 -7
- package/core/helpers/templates.d.ts +0 -3
- package/core/helpers/type-helpers.d.ts +0 -37
- package/core/i18n/i18n-common.d.ts +0 -6
- package/core/i18n/i18n-error.d.ts +0 -3
- package/core/i18n/i18n-type.d.ts +0 -11
- package/core/log/log-publisher-console.service.d.ts +0 -4
- package/core/log/log.model.d.ts +0 -40
- package/core/log/logger.service.d.ts +0 -33
- package/core/models/class-attribute.model.d.ts +0 -6
- package/core/models/class-service.model.d.ts +0 -7
- package/core/models/getter.model.d.ts +0 -2
- package/core/models/i18n.model.d.ts +0 -1
- package/core/models/menu.model.d.ts +0 -42
- package/core/models/user.model.d.ts +0 -8
- package/core/models/version.model.d.ts +0 -31
- package/core/pipes/boolean.pipe.d.ts +0 -7
- package/core/pipes/class-map.pipe.d.ts +0 -7
- package/core/pipes/enum.pipe.d.ts +0 -8
- package/core/pipes/enumerate-async.pipe.d.ts +0 -9
- package/core/pipes/enumerate.pipe.d.ts +0 -16
- package/core/pipes/getter.pipe.d.ts +0 -8
- package/core/pipes/i18n-property.pipe.d.ts +0 -8
- package/core/pipes/json-path.pipe.d.ts +0 -13
- package/core/pipes/parametrize.pipe.d.ts +0 -16
- package/core/pipes/template.pipe.d.ts +0 -8
- package/core/provide.d.ts +0 -13
- package/core/reactivity/effect.d.ts +0 -16
- package/core/reflect/type-enum-decorator.d.ts +0 -2
- package/core/reflect/type-enum-metadata.d.ts +0 -32
- package/core/registry/registry.model.d.ts +0 -8
- package/core/registry/type-registry.d.ts +0 -27
- package/core/router/route-builder.d.ts +0 -187
- package/core/router/router.model.d.ts +0 -13
- package/core/router/routes-builder.d.ts +0 -33
- package/core/rxjs/map-data-list-result-operator.d.ts +0 -9
- package/core/security/permission-helpers.d.ts +0 -3
- package/core/security/permission.guard.d.ts +0 -2
- package/core/security/permission.service.d.ts +0 -25
- package/core/security/permissions.model.d.ts +0 -82
- package/core/services/commons-configuration.service.d.ts +0 -81
- package/core/services/commons-init.service.d.ts +0 -30
- package/core/services/commons-router.service.d.ts +0 -37
- package/core/services/commons-storage.service.d.ts +0 -12
- package/core/services/commons.service.d.ts +0 -47
- package/core/services/providers/commons-init.provider.d.ts +0 -4
- package/core/services/tokens/browser-storage.token.d.ts +0 -2
- package/core/services/tokens/commons-init.token.d.ts +0 -3
- package/core/services/tokens/log-publisher.token.d.ts +0 -3
- package/core/services/tokens/module-config.token.d.ts +0 -28
- package/core/styles/style-constants.d.ts +0 -11
- package/core/styles/style.model.d.ts +0 -18
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-CCyGSxaD.mjs +0 -30
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-CCyGSxaD.mjs.map +0 -1
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-8TdW6NCC.mjs.map +0 -1
- package/filter/descriptors/filter-generic.descriptor.d.ts +0 -14
- package/filter/descriptors/filter-lookup.descriptor.d.ts +0 -97
- package/filter/descriptors/filter.descriptor.d.ts +0 -264
- package/filter/models/filter-generic-property.model.d.ts +0 -7
- package/filter/models/filter.model.d.ts +0 -16
- package/form/api/data-providers/lookup-data-provider.factory.d.ts +0 -19
- package/form/api/data-providers/lookup.data-provider.d.ts +0 -7
- package/form/api/descriptors/action-button.descriptor.d.ts +0 -23
- package/form/api/descriptors/button-style.builder.d.ts +0 -54
- package/form/api/models/button.model.d.ts +0 -19
- package/form/api/models/empty-value.model.d.ts +0 -7
- package/form/api/models/trim.model.d.ts +0 -1
- package/form/components/autocomplete/autocomplete.component.d.ts +0 -99
- package/form/components/date-range/date-range.component.d.ts +0 -37
- package/form/components/dropdown/dropdown.component.d.ts +0 -89
- package/form/components/number-range/number-range.component.d.ts +0 -35
- package/form/directives/input-empty-value.directive.d.ts +0 -40
- package/form/directives/input-trim.directive.d.ts +0 -9
- package/model/class/data-providers/base-from-class-data-provider.factory.d.ts +0 -3
- package/model/class/descriptors/model-class.descriptor.d.ts +0 -12
- package/model/class/descriptors/type-class.descriptor.d.ts +0 -3
- package/model/class/helpers/model.d.ts +0 -4
- package/model/data-providers/base-from-type-data-provider.factory.d.ts +0 -15
- package/model/descriptors/enum.descriptor.d.ts +0 -13
- package/model/descriptors/model.descriptor.d.ts +0 -25
- package/model/descriptors/type.descriptor.d.ts +0 -3
- package/model/helpers/i18n.d.ts +0 -13
- package/provide.d.ts +0 -7
- package/table/api/class/class-table-attribute-converter.d.ts +0 -15
- package/table/api/class/class-table-attribute.model.d.ts +0 -8
- package/table/api/class/class-table-data-provider.factory.d.ts +0 -4
- package/table/api/class/class-table-descriptor-helpers.d.ts +0 -42
- package/table/api/class/class-table-descriptor.factory.d.ts +0 -11
- package/table/api/data-providers/table-data-provider.factory.d.ts +0 -19
- package/table/api/data-providers/table.data-provider.d.ts +0 -27
- package/table/api/descriptors/column.descriptor.d.ts +0 -269
- package/table/api/descriptors/sort.descriptor.d.ts +0 -39
- package/table/api/descriptors/table-descriptor.factory.d.ts +0 -12
- package/table/api/descriptors/table.descriptor.d.ts +0 -672
- package/table/api/helpers/column-converter.d.ts +0 -7
- package/table/api/helpers/table-data-provider-descriptor-convert.d.ts +0 -20
- package/table/api/models/column-value.model.d.ts +0 -7
- package/table/api/models/column.model.d.ts +0 -18
- package/table/api/models/row-expandable-component.model.d.ts +0 -4
- package/table/api/models/table-columns.model.d.ts +0 -42
- package/table/api/models/table-event.model.d.ts +0 -18
- package/table/api/models/table.model.d.ts +0 -22
- package/table/components/column-filter/column-filter.component.d.ts +0 -81
- package/table/components/column-toggle/column-toggle.component.d.ts +0 -12
- package/table/components/column-value/column-value.component.d.ts +0 -33
- package/table/components/filter/filter-active-tag/filter-active-tag.component.d.ts +0 -20
- package/table/components/filter/filter-form/filter-form.component.d.ts +0 -56
- package/table/components/filter/filter-overlay-with-tag/filter-overlay-with-tag.component.d.ts +0 -54
- package/table/components/table/table.component.d.ts +0 -83
- package/table/helpers/filters.d.ts +0 -37
- package/table/helpers/notification.d.ts +0 -13
- package/table/helpers/table-layout-prefs.d.ts +0 -7
- package/table/helpers/table.d.ts +0 -6
- package/table/models/column-preferences.model.d.ts +0 -12
- package/table/models/filter.model.d.ts +0 -36
- package/table/pipes/filter-value.pipe.d.ts +0 -19
- package/table/pipes/locale-default-row-class.pipe.d.ts +0 -10
- package/table/pipes/table-column-filter-class.pipe.d.ts +0 -8
- package/table/provide.d.ts +0 -15
- package/table/services/table-data.service.d.ts +0 -37
- package/table/services/table-feature-config.token.d.ts +0 -7
- package/table/services/table-metadata.service.d.ts +0 -31
- package/table/services/table-preferences.service.d.ts +0 -25
- package/tableview/action/components/action/action.component.d.ts +0 -63
- package/tableview/action/components/editor/action-editor.component.d.ts +0 -32
- package/tableview/action/components/editor/injector-context/action-editor-injector-context.component.d.ts +0 -79
- package/tableview/action/components/localization/data-language-dropdown.component.d.ts +0 -19
- package/tableview/action/components/route/action-route.component.d.ts +0 -26
- package/tableview/action/components/table/action-table.component.d.ts +0 -50
- package/tableview/action/guards/unsaved-changes.guard.d.ts +0 -3
- package/tableview/action/helpers/action-execution.d.ts +0 -7
- package/tableview/action/helpers/i18n.d.ts +0 -47
- package/tableview/action/helpers/inject.d.ts +0 -39
- package/tableview/action/helpers/notification.d.ts +0 -40
- package/tableview/action/helpers/styles.d.ts +0 -5
- package/tableview/action/models/action-editor-dialog-data.model.d.ts +0 -11
- package/tableview/action/models/can-component-deactivate.model.d.ts +0 -4
- package/tableview/action/models/execution/action-context.model.d.ts +0 -43
- package/tableview/action/models/execution/action-instance.model.d.ts +0 -56
- package/tableview/action/services/action-error-mapper.service.d.ts +0 -18
- package/tableview/action/services/action-executor.service.d.ts +0 -174
- package/tableview/action/services/component-action-executor.service.d.ts +0 -9
- package/tableview/action/services/data-provider-executor.service.d.ts +0 -23
- package/tableview/action/services/navigation.service.d.ts +0 -15
- package/tableview/action/services/providers/provide-action-executor.d.ts +0 -2
- package/tableview/action/services/providers/provide-view-container.d.ts +0 -2
- package/tableview/action/services/root-action-executor.service.d.ts +0 -9
- package/tableview/action/services/tokens/action-editor.token.d.ts +0 -2
- package/tableview/action/services/view-container.service.d.ts +0 -25
- package/tableview/api/action/descriptors/action-descriptor.factory.d.ts +0 -25
- package/tableview/api/action/descriptors/action-editor-descriptor.factory.d.ts +0 -24
- package/tableview/api/action/descriptors/action-editor.descriptor.d.ts +0 -105
- package/tableview/api/action/descriptors/action-link-descriptor.factory.d.ts +0 -23
- package/tableview/api/action/descriptors/action-link.descriptor.d.ts +0 -27
- package/tableview/api/action/descriptors/action.descriptor.d.ts +0 -118
- package/tableview/api/action/descriptors/editor-action-descriptor.factory.d.ts +0 -21
- package/tableview/api/action/descriptors/editor-action-editor-descriptor.factory.d.ts +0 -21
- package/tableview/api/action/descriptors/table-action-descriptor.factory.d.ts +0 -36
- package/tableview/api/action/descriptors/table-action-editor-descriptor.factory.d.ts +0 -40
- package/tableview/api/action/helpers/data-provider-executors.d.ts +0 -23
- package/tableview/api/action/models/action-component.model.d.ts +0 -12
- package/tableview/api/action/models/action-confirmation.model.d.ts +0 -16
- package/tableview/api/action/models/action-descriptor.types.d.ts +0 -10
- package/tableview/api/action/models/action-editor.model.d.ts +0 -4
- package/tableview/api/action/models/action-error.model.d.ts +0 -14
- package/tableview/api/action/models/action.type.d.ts +0 -21
- package/tableview/api/action/models/execution/action-context-validation.model.d.ts +0 -11
- package/tableview/api/action/models/execution/action-context.model.d.ts +0 -25
- package/tableview/api/action/models/execution/action-execution-error.model.d.ts +0 -4
- package/tableview/api/action/models/execution/action-instance-state.model.d.ts +0 -30
- package/tableview/api/action/models/execution/action-instance.model.d.ts +0 -32
- package/tableview/api/action/models/execution/view-container.model.d.ts +0 -22
- package/tableview/api/action/models/tableview-action-default-categories.model.d.ts +0 -10
- package/tableview/api/action/services/data-provider-executor.service.d.ts +0 -39
- package/tableview/api/action/services/tokens/data-language-dropdown.token.d.ts +0 -2
- package/tableview/api/class/editor/class-editor-attribute-converter.d.ts +0 -21
- package/tableview/api/class/editor/class-editor-attribute.model.d.ts +0 -7
- package/tableview/api/class/editor/class-editor-data-provider.factory.d.ts +0 -4
- package/tableview/api/class/editor/class-editor-descriptor-helpers.d.ts +0 -40
- package/tableview/api/class/editor/class-editor-descriptor.factory.d.ts +0 -11
- package/tableview/api/class/tableview/class-tableview-attribute-converter.d.ts +0 -8
- package/tableview/api/class/tableview/class-tableview-attribute.model.d.ts +0 -3
- package/tableview/api/class/tableview/class-tableview-data-provider.factory.d.ts +0 -4
- package/tableview/api/class/tableview/class-tableview-descriptor-helpers.d.ts +0 -41
- package/tableview/api/class/tableview/class-tableview-descriptor.factory.d.ts +0 -12
- package/tableview/api/editor/data-providers/editor-data-provider.factory.d.ts +0 -19
- package/tableview/api/editor/data-providers/editor.data-provider.d.ts +0 -119
- package/tableview/api/editor/descriptors/editor-descriptor.factory.d.ts +0 -11
- package/tableview/api/editor/descriptors/editor.descriptor.d.ts +0 -254
- package/tableview/api/editor/descriptors/field-action.descriptor.d.ts +0 -21
- package/tableview/api/editor/descriptors/field-base.descriptor.d.ts +0 -147
- package/tableview/api/editor/descriptors/field-group.descriptor.d.ts +0 -58
- package/tableview/api/editor/descriptors/field-lookup.descriptor.d.ts +0 -80
- package/tableview/api/editor/descriptors/field-many.descriptor.d.ts +0 -56
- package/tableview/api/editor/descriptors/field-validation.descriptor.d.ts +0 -16
- package/tableview/api/editor/descriptors/field.descriptor.d.ts +0 -239
- package/tableview/api/editor/descriptors/wrappers/editor-descriptor-nested-object-wrapper.d.ts +0 -25
- package/tableview/api/editor/models/editor-fields.model.d.ts +0 -42
- package/tableview/api/editor/models/editor.model.d.ts +0 -7
- package/tableview/api/editor/models/field-action-context.model.d.ts +0 -26
- package/tableview/api/editor/models/field-image-preview.model.d.ts +0 -4
- package/tableview/api/editor/models/field-validation.model.d.ts +0 -26
- package/tableview/api/editor/models/field.model.d.ts +0 -56
- package/tableview/api/editor/models/form-editor.event.d.ts +0 -74
- package/tableview/api/editor/models/form-editor.interface.d.ts +0 -53
- package/tableview/api/editor/models/formly-custom-field.model.d.ts +0 -30
- package/tableview/api/editor/models/formly-field.model.d.ts +0 -42
- package/tableview/api/editor/models/formly-options.model.d.ts +0 -15
- package/tableview/api/editor/models/radio.model.d.ts +0 -6
- package/tableview/api/tableview/data-providers/tableview-data-provider.factory.d.ts +0 -24
- package/tableview/api/tableview/data-providers/tableview.data-provider.d.ts +0 -33
- package/tableview/api/tableview/descriptors/tableview-descriptor.factory.d.ts +0 -23
- package/tableview/api/tableview/descriptors/tableview.descriptor.d.ts +0 -153
- package/tableview/api/tableview/helpers/files-export.d.ts +0 -4
- package/tableview/api/tableview/helpers/tableview-create.d.ts +0 -29
- package/tableview/api/tableview/helpers/tableview-data-provider-descriptor-convert.d.ts +0 -20
- package/tableview/api/tableview/helpers/tableview-default-actions.d.ts +0 -93
- package/tableview/api/tableview/helpers/tableview-input-builder.d.ts +0 -192
- package/tableview/api/tableview/models/tableview-descriptor-fields-manage-helper.type.d.ts +0 -9
- package/tableview/api/tableview/models/tableview-descriptor-helper.type.d.ts +0 -2
- package/tableview/api/tableview/models/tableview-input.model.d.ts +0 -8
- package/tableview/api/tableview/models/tableview-route.model.d.ts +0 -20
- package/tableview/editor/components/editor/auto-save-status/auto-save-status.component.d.ts +0 -10
- package/tableview/editor/components/editor/form-editor.component.d.ts +0 -117
- package/tableview/editor/components/formly/constants.d.ts +0 -1
- package/tableview/editor/components/formly/fields/formly-field-action/formly-field-action.component.d.ts +0 -15
- package/tableview/editor/components/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +0 -11
- package/tableview/editor/components/formly/fields/formly-field-custom/formly-field-custom.component.d.ts +0 -10
- package/tableview/editor/components/formly/fields/formly-field-datepicker/formly-field-datepicker.component.d.ts +0 -24
- package/tableview/editor/components/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +0 -10
- package/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +0 -12
- package/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.d.ts +0 -33
- package/tableview/editor/components/formly/fields/formly-field-label/formly-field-label.component.d.ts +0 -10
- package/tableview/editor/components/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +0 -36
- package/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +0 -22
- package/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +0 -37
- package/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +0 -10
- package/tableview/editor/components/formly/fields/formly-field-type.abstract.component.d.ts +0 -11
- package/tableview/editor/components/formly/fields/formly-group-type.abstract.component.d.ts +0 -7
- package/tableview/editor/components/formly/fields/formly-type.abstract.component.d.ts +0 -20
- package/tableview/editor/components/formly/pipes/formly-field-label.pipe.d.ts +0 -8
- package/tableview/editor/components/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.d.ts +0 -18
- package/tableview/editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +0 -16
- package/tableview/editor/helpers/editor-autosave.d.ts +0 -17
- package/tableview/editor/helpers/editor-field.d.ts +0 -2
- package/tableview/editor/helpers/editor-formly.d.ts +0 -11
- package/tableview/editor/helpers/editor-validators.d.ts +0 -7
- package/tableview/editor/helpers/field-create.d.ts +0 -9
- package/tableview/editor/helpers/formly-config.d.ts +0 -18
- package/tableview/editor/helpers/notification.d.ts +0 -4
- package/tableview/editor/models/editor-auto-save-preview.model.d.ts +0 -10
- package/tableview/editor/models/formly-config.model.d.ts +0 -14
- package/tableview/editor/models/formly.model.d.ts +0 -23
- package/tableview/editor/services/form-editor.service.d.ts +0 -39
- package/tableview/editor/services/formly-config.provider.d.ts +0 -5
- package/tableview/provide.d.ts +0 -15
- package/tableview/tableview/components/route/tableview-route.component.d.ts +0 -7
- package/tableview/tableview/components/tableview/tableview.component.d.ts +0 -29
- package/tableview/tableview/router/tableview-route-builder.d.ts +0 -43
- package/tableview/tableview/services/tableview-feature-config.token.d.ts +0 -18
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import { ToastMessageOptions } from 'primeng/api';
|
|
3
|
-
import { ActionParameters } from '../action/action-parameters.model';
|
|
4
|
-
export type ErrorTypes = 'CommonsInternalError' | 'CommonsActionError' | 'CommonsHttpError';
|
|
5
|
-
/**
|
|
6
|
-
* Main use for commons error from action execution.
|
|
7
|
-
* If http error is thrown, add it in cause.
|
|
8
|
-
*/
|
|
9
|
-
export interface ICommonsError extends Error {
|
|
10
|
-
type: ErrorTypes;
|
|
11
|
-
messageCode?: number | string;
|
|
12
|
-
message: string;
|
|
13
|
-
details?: any;
|
|
14
|
-
stack?: string;
|
|
15
|
-
cause?: Error | unknown;
|
|
16
|
-
notification?: ToastMessageOptions;
|
|
17
|
-
notificationEmitSource?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface CommonsErrorBaseOptions {
|
|
20
|
-
name?: string;
|
|
21
|
-
messageCode?: number | string;
|
|
22
|
-
details?: any;
|
|
23
|
-
cause?: Error;
|
|
24
|
-
stack?: string;
|
|
25
|
-
location?: string;
|
|
26
|
-
notification?: ToastMessageOptions;
|
|
27
|
-
}
|
|
28
|
-
export declare abstract class ACommonsErrorBase extends Error implements ICommonsError {
|
|
29
|
-
abstract readonly type: ErrorTypes;
|
|
30
|
-
readonly messageCode?: number | string;
|
|
31
|
-
readonly location?: string;
|
|
32
|
-
readonly details?: any;
|
|
33
|
-
readonly notification?: ToastMessageOptions;
|
|
34
|
-
readonly notificationEmitSource?: string;
|
|
35
|
-
protected constructor(message: string, options?: CommonsErrorBaseOptions);
|
|
36
|
-
}
|
|
37
|
-
export declare class CommonsInternalError extends ACommonsErrorBase implements ICommonsError {
|
|
38
|
-
readonly type = "CommonsInternalError";
|
|
39
|
-
constructor(message: string, options?: CommonsErrorBaseOptions);
|
|
40
|
-
}
|
|
41
|
-
export declare class CommonsHttpError extends ACommonsErrorBase implements ICommonsError {
|
|
42
|
-
readonly type = "CommonsHttpError";
|
|
43
|
-
readonly httpError: HttpErrorResponse;
|
|
44
|
-
constructor(message: string, httpError: HttpErrorResponse, options?: CommonsErrorBaseOptions);
|
|
45
|
-
}
|
|
46
|
-
export interface ICommonsActionError extends ICommonsError {
|
|
47
|
-
type: 'CommonsActionError';
|
|
48
|
-
httpError?: HttpErrorResponse;
|
|
49
|
-
actionContext?: ICommonsActionErrorContext;
|
|
50
|
-
}
|
|
51
|
-
export interface ICommonsActionErrorContext {
|
|
52
|
-
parameters: ActionParameters<any>;
|
|
53
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { IdType, Nullable } from './type-helpers';
|
|
3
|
-
export declare function boolean$Attribute(value: unknown): Observable<boolean>;
|
|
4
|
-
export declare function booleanOrUndefinedAttribute(value: unknown): boolean | undefined;
|
|
5
|
-
export declare function number$Attribute(value: unknown): Observable<number>;
|
|
6
|
-
export declare const toObservable: <T>(value: T | Observable<T>) => Observable<T>;
|
|
7
|
-
export declare const itemIdToNumber: (value?: IdType) => number;
|
|
8
|
-
export declare const itemIdToString: (value?: IdType) => string;
|
|
9
|
-
export declare const itemIdToDefined: (value?: IdType) => IdType;
|
|
10
|
-
export declare const valueToDefined: <T>(value: Nullable<T>) => T;
|
package/core/helpers/date.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type toIsoStringTypeOptType = 'date' | 'date-time' | 'dateTime';
|
|
2
|
-
export type toIsoStringDateTimeOptsType = {
|
|
3
|
-
utc?: boolean;
|
|
4
|
-
noTimezone?: boolean;
|
|
5
|
-
noMillis?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare function dateToIsoString(value: string | number | Date, type?: 'date'): string;
|
|
8
|
-
export declare function dateToIsoString(value: string | number | Date, type: 'date-time' | 'dateTime', dateTimeOpts?: toIsoStringDateTimeOptsType): string;
|
|
9
|
-
export declare function dateToIsoString(value: undefined | null | unknown, type?: 'date'): null;
|
|
10
|
-
export declare function dateToIsoString(value: undefined | null | unknown, type: 'date-time' | 'dateTime', dateTimeOpts?: toIsoStringDateTimeOptsType): null;
|
|
11
|
-
export declare function dateToIsoString(value: unknown, type?: toIsoStringTypeOptType, dateTimeOpts?: toIsoStringDateTimeOptsType): string | null;
|
|
12
|
-
export declare function fromAngularDateFormatToPrime(ngDateFormat: string): string;
|
|
13
|
-
export declare function angularDateFormatHasTime(ngDateFormat: string): boolean;
|
|
14
|
-
export declare function angularDateFormatHasSeconds(ngDateFormat: string): boolean;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { MessageService, ToastMessageOptions } from 'primeng/api';
|
|
2
|
-
type ToastMessageOptsType = {
|
|
3
|
-
messageService?: MessageService;
|
|
4
|
-
title?: string;
|
|
5
|
-
sticky?: boolean;
|
|
6
|
-
closable?: boolean;
|
|
7
|
-
icon?: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Displays a toast notification message with a specified severity level and optional customization. Presets the life of message and requires message.
|
|
11
|
-
*
|
|
12
|
-
* @param {string} message - The content of the toast message to be displayed.
|
|
13
|
-
* @param {'success' | 'warn' | 'warning' | 'error'} [severity='success'] - The severity level of the message.
|
|
14
|
-
* @param {ToastMessageOptsType} [opts] - Optional configuration for the toast message, which can include a title, icon, and message service for displaying the notification. If message service is provided, the message will be automatically added.
|
|
15
|
-
* @return {Message} - The notification message object created for the toast.
|
|
16
|
-
*/
|
|
17
|
-
export declare function toastMessage(message: string, severity?: 'success' | 'warn' | 'warning' | 'error', opts?: ToastMessageOptsType): ToastMessageOptions;
|
|
18
|
-
export {};
|
package/core/helpers/number.d.ts
DELETED
package/core/helpers/object.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ClassType } from '../models/class-service.model';
|
|
2
|
-
interface DeepCopyPropsOptions {
|
|
3
|
-
mapGettersToProperties?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export interface DeepCopyOptions<P = object> extends DeepCopyPropsOptions {
|
|
6
|
-
objectPrototype?: ClassType<P>;
|
|
7
|
-
}
|
|
8
|
-
export declare function objectDeepCopy<T = object, P = object>(obj: T, options: DeepCopyOptions<P> & {
|
|
9
|
-
mapGettersToProperties: true;
|
|
10
|
-
}): T | Record<string, any>;
|
|
11
|
-
export declare function objectDeepCopy<T = object, P = object>(obj: T, options: DeepCopyOptions<P> & {
|
|
12
|
-
objectPrototype: ClassType<P>;
|
|
13
|
-
} & {
|
|
14
|
-
mapGettersToProperties?: false;
|
|
15
|
-
}): P;
|
|
16
|
-
export declare function objectDeepCopy<T = object, P = object>(obj: T, options: DeepCopyOptions<P> & {
|
|
17
|
-
objectPrototype: ClassType<P>;
|
|
18
|
-
} & {
|
|
19
|
-
mapGettersToProperties: true;
|
|
20
|
-
}): P | Record<string, any>;
|
|
21
|
-
export declare function objectDeepCopy<T = object, P = object>(obj: T, options?: DeepCopyOptions<P>): T;
|
|
22
|
-
export declare function objectDeepMerge(target: Record<string, any>, source: Record<string, any>): Record<string, any>;
|
|
23
|
-
export declare function getObjectProperties(obj: object): string[];
|
|
24
|
-
export declare function getObjectGetters(obj: any): string[];
|
|
25
|
-
export declare function getObjectPropertyByPath(value: any, path: string): any | undefined;
|
|
26
|
-
export declare function flattenObjectKeys(objectModel: any): string[];
|
|
27
|
-
export {};
|
package/core/helpers/route.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { MenuItem as PrimeMenuItem } from 'primeng/api';
|
|
2
|
-
import { CommonsMenuItem, InternalCommonsMenuItem } from '../models/menu.model';
|
|
3
|
-
export declare function removeRouteEmptyPathSegments(path: Array<string>): string[];
|
|
4
|
-
export declare function appendRoutePathToBasePath(basePath: Array<string>, path: Array<string>): string[];
|
|
5
|
-
export declare function doesUrlMatchRouterLink(link: Array<string> | string, url: Array<string> | string): boolean;
|
|
6
|
-
export declare function adjustRouteMenuLazyChildrenRouterLinks(rootMenuItem: PrimeMenuItem | InternalCommonsMenuItem, lazyChildren: Array<CommonsMenuItem>): {
|
|
7
|
-
index?: number;
|
|
8
|
-
id?: string;
|
|
9
|
-
positionIndex?: number;
|
|
10
|
-
label?: string;
|
|
11
|
-
icon?: string;
|
|
12
|
-
items?: Array<CommonsMenuItem>;
|
|
13
|
-
permissions?: import("@mediusinc/mng-commons/core").APermissions;
|
|
14
|
-
separator?: boolean;
|
|
15
|
-
className?: string;
|
|
16
|
-
badge?: string;
|
|
17
|
-
badgeClassName?: string;
|
|
18
|
-
isVisible?: ((menuItem: CommonsMenuItem) => import("rxjs").Observable<boolean> | boolean) | boolean;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
routerLink?: string | Array<string> | null;
|
|
21
|
-
href?: string;
|
|
22
|
-
hrefExternalIcon?: string | null;
|
|
23
|
-
target?: string;
|
|
24
|
-
queryParams?: {
|
|
25
|
-
[k: string]: any;
|
|
26
|
-
};
|
|
27
|
-
fragment?: string;
|
|
28
|
-
queryParamsHandling?: import("@angular/router").QueryParamsHandling;
|
|
29
|
-
preserveFragment?: boolean;
|
|
30
|
-
skipLocationChange?: boolean;
|
|
31
|
-
replaceUrl?: boolean;
|
|
32
|
-
updated?: boolean;
|
|
33
|
-
lazyChildren?: boolean;
|
|
34
|
-
}[];
|
package/core/helpers/string.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function escapeHtml(value: string): any;
|
|
2
|
-
export declare function escapeHtmlAny(value?: any): any;
|
|
3
|
-
/**
|
|
4
|
-
* Stringifies a value - primitives with toString, dates with dateUtil, objects with JSON.stringify.
|
|
5
|
-
* @param value Any value.
|
|
6
|
-
*/
|
|
7
|
-
export declare function stringify(value: any): string;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export type KeyOfType = string | number | symbol;
|
|
3
|
-
export type Nullable<T> = T | null | undefined;
|
|
4
|
-
export type Undefined<T> = T | undefined;
|
|
5
|
-
export type ObjectOptPropType<OT, P extends keyof OT, PT> = P extends keyof OT ? (OT[P] extends Nullable<PT> ? P : never) : never;
|
|
6
|
-
export type KeyofAndOfType<Type, PropertyType> = {
|
|
7
|
-
[K in keyof Type]: NonNullable<Type[K]> extends NonNullable<PropertyType> ? K : never;
|
|
8
|
-
}[keyof Type];
|
|
9
|
-
export type ArrayItemType<T> = NonNullable<T> extends Array<infer U> ? U : T;
|
|
10
|
-
export type SingleOrArrayType<T> = T | Array<T>;
|
|
11
|
-
export type IdType = number | string;
|
|
12
|
-
export type PrimitiveType = string | boolean | number;
|
|
13
|
-
export type PropertyType = PrimitiveType | Date | EnumType;
|
|
14
|
-
export type ItemOrObservable<T> = T | Observable<T>;
|
|
15
|
-
export type EnumConstantType = string | number;
|
|
16
|
-
export interface EnumType<V = EnumConstantType> {
|
|
17
|
-
[key: string]: V;
|
|
18
|
-
}
|
|
19
|
-
export type ClassFunctionKeysType<Clazz> = {
|
|
20
|
-
[K in keyof Clazz]: Clazz[K] extends (...args: any[]) => any ? K : never;
|
|
21
|
-
}[keyof Clazz];
|
|
22
|
-
export type ClassFunctionKeysWithReturnType<Clazz, Return> = {
|
|
23
|
-
[K in keyof Clazz]: Clazz[K] extends () => Return ? K : never;
|
|
24
|
-
}[keyof Clazz];
|
|
25
|
-
export type ClassFunctionKeysWithAnyArgsAndReturnType<Clazz, Return> = {
|
|
26
|
-
[K in keyof Clazz]: Clazz[K] extends (...args: any[]) => Return ? K : never;
|
|
27
|
-
}[keyof Clazz];
|
|
28
|
-
export type ClassFunctionKeysWithParamAndReturnType<Clazz, Param, Return> = {
|
|
29
|
-
[K in keyof Clazz]: Clazz[K] extends (param: Param, ...args: any[]) => Return ? K : never;
|
|
30
|
-
}[keyof Clazz];
|
|
31
|
-
export type ClassFunctionKeyParam1ObjKeyExtendsOfTargetType<Service, FnKey extends keyof Service, Param1Target = unknown> = Service[FnKey] extends (...args: infer Params) => any ? Params[0] extends object ? {
|
|
32
|
-
[Key in keyof Params[0]]: Param1Target extends Params[0][Key] ? Key : never;
|
|
33
|
-
}[keyof Params[0]] : never : never;
|
|
34
|
-
export type CommonKeyof3<T, U, V> = keyof T & keyof U & keyof V;
|
|
35
|
-
export type CommonPropsObjType3<T, U, V> = {
|
|
36
|
-
[K in CommonKeyof3<T, U, V>]: T[K];
|
|
37
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { TranslateService, TranslationObject } from '@ngx-translate/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export declare function getI18nAsync(translate: TranslateService, params?: any, ...keys: Array<string>): Observable<string | null>;
|
|
4
|
-
export declare function getI18n(translate: TranslateService, params?: any, ...keys: Array<string>): string | null;
|
|
5
|
-
export declare function populateI18nParams(item?: any, params?: any): any;
|
|
6
|
-
export declare function selectI18n(keys: string[], i18n: TranslationObject): string | null;
|
package/core/i18n/i18n-type.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export declare function getI18nTypeNameAsync(translate: TranslateService, typeName: string, singular?: boolean): Observable<string | null>;
|
|
4
|
-
export declare function getI18nTypeName(translate: TranslateService, typeName: string, singular?: boolean): string | null;
|
|
5
|
-
export declare function getI18nTypeTabKey(typeName: string, tab: string): string;
|
|
6
|
-
export declare function getI18nTypeGroupKey(typeName: string, group: string): string;
|
|
7
|
-
export declare function getI18nTypePropertyKey(typeName: string, property: string): string;
|
|
8
|
-
export declare function getI18nTypeKeyBasePath(typeName: string, ...path: Array<string>): string;
|
|
9
|
-
export declare function getI18nTypeParams(translate: TranslateService, typeName?: string, item?: any, params?: any): any;
|
|
10
|
-
export declare function getI18nTypeParamsAsync(translate: TranslateService, typeName?: string, item?: any, params?: any): Observable<any>;
|
|
11
|
-
export declare function populateI18nTypeParams(i18nTypeName?: string, item?: any, params?: any): any;
|
package/core/log/log.model.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export declare enum LogLevelEnum {
|
|
2
|
-
Trace = 0,
|
|
3
|
-
Debug = 1,
|
|
4
|
-
Log = 2,
|
|
5
|
-
Info = 3,
|
|
6
|
-
Warning = 4,
|
|
7
|
-
Error = 5
|
|
8
|
-
}
|
|
9
|
-
export interface LogEntry {
|
|
10
|
-
level: LogLevelEnum;
|
|
11
|
-
message: string;
|
|
12
|
-
messageDetails?: string;
|
|
13
|
-
timestamp: Date;
|
|
14
|
-
timestampFormatted?: string;
|
|
15
|
-
category?: string;
|
|
16
|
-
error?: Error;
|
|
17
|
-
data?: any[];
|
|
18
|
-
}
|
|
19
|
-
export interface LogConfig {
|
|
20
|
-
level?: LogLevelEnum;
|
|
21
|
-
timestampFormat?: string;
|
|
22
|
-
category?: {
|
|
23
|
-
[category: string]: {
|
|
24
|
-
level?: LogLevelEnum;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export interface ILoggerService {
|
|
29
|
-
create(context: string): ILoggerService;
|
|
30
|
-
trace(msgOrError: string | Error, ...data: any[]): void;
|
|
31
|
-
debug(msgOrError: string | Error, ...data: any[]): void;
|
|
32
|
-
log(msgOrError: string | Error, logLevel: LogLevelEnum, category: string | undefined, ...data: any[]): void;
|
|
33
|
-
logEntry(logEntry: Partial<LogEntry>): void;
|
|
34
|
-
info(msgOrError: string | Error, ...data: any[]): void;
|
|
35
|
-
warn(msgOrError: string | Error, ...data: any[]): void;
|
|
36
|
-
error(msgOrError: string | Error, ...data: any[]): void;
|
|
37
|
-
}
|
|
38
|
-
export interface ILogPublisher {
|
|
39
|
-
addEntry(entry: LogEntry): void;
|
|
40
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { CommonsConfigurationService } from '../services/commons-configuration.service';
|
|
2
|
-
import { ILogPublisher, ILoggerService, LogEntry, LogLevelEnum } from './log.model';
|
|
3
|
-
export declare class LoggerService implements ILoggerService {
|
|
4
|
-
private static _instance;
|
|
5
|
-
private static _isInit;
|
|
6
|
-
private static _configurationService?;
|
|
7
|
-
private static _publishers;
|
|
8
|
-
private static _entriesBuffer;
|
|
9
|
-
private static _categoryInstances;
|
|
10
|
-
private static _timestampFormat;
|
|
11
|
-
private category?;
|
|
12
|
-
private readonly defaultLogLevel;
|
|
13
|
-
private datePipe;
|
|
14
|
-
private constructor();
|
|
15
|
-
static get(): LoggerService;
|
|
16
|
-
static configure(config: {
|
|
17
|
-
timestampFormat?: string;
|
|
18
|
-
}): void;
|
|
19
|
-
static init(configurationService: CommonsConfigurationService, publishers: ILogPublisher[]): void;
|
|
20
|
-
private static _flushBuffer;
|
|
21
|
-
static create(category: string): LoggerService;
|
|
22
|
-
create(category: string): LoggerService;
|
|
23
|
-
private _processLog;
|
|
24
|
-
private _getTimestamps;
|
|
25
|
-
private _log;
|
|
26
|
-
trace(msgOrError: string | Error, ...data: any[]): void;
|
|
27
|
-
debug(msgOrError: string | Error, ...data: any[]): void;
|
|
28
|
-
log(msgOrError: string | Error, logLevel?: LogLevelEnum, category?: string | undefined, ...data: any[]): void;
|
|
29
|
-
logEntry<E extends Partial<LogEntry>>(logEntry: E): void;
|
|
30
|
-
info(msgOrError: string | Error, ...data: any[]): void;
|
|
31
|
-
warn(msgOrError: string | Error, ...data: any[]): void;
|
|
32
|
-
error(msgOrError: string | Error, ...data: any[]): void;
|
|
33
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
export type ServiceClassType<S> = Type<S>;
|
|
3
|
-
export type ServiceClassOptType<S> = ServiceClassType<S> | undefined;
|
|
4
|
-
export interface ClassType<T> extends Function {
|
|
5
|
-
new (...args: any[]): T;
|
|
6
|
-
}
|
|
7
|
-
export type ClassOptType<T> = ClassType<T> | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type I18nMissingTranslationStrategy = 'returnNull' | 'returnFallbackKey' | 'returnFirstKey';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Signal, WritableSignal } from '@angular/core';
|
|
2
|
-
import { QueryParamsHandling } from '@angular/router';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { APermissions } from '../security/permissions.model';
|
|
5
|
-
export interface CommonsMenuItem {
|
|
6
|
-
index?: number;
|
|
7
|
-
id?: string;
|
|
8
|
-
positionIndex?: number;
|
|
9
|
-
label?: string;
|
|
10
|
-
icon?: string;
|
|
11
|
-
items?: Array<CommonsMenuItem>;
|
|
12
|
-
permissions?: APermissions;
|
|
13
|
-
separator?: boolean;
|
|
14
|
-
className?: string;
|
|
15
|
-
badge?: string;
|
|
16
|
-
badgeClassName?: string;
|
|
17
|
-
isVisible?: ((menuItem: CommonsMenuItem) => Observable<boolean> | boolean) | boolean;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
routerLink?: string | Array<string> | null;
|
|
20
|
-
href?: string;
|
|
21
|
-
hrefExternalIcon?: string | null;
|
|
22
|
-
target?: string;
|
|
23
|
-
queryParams?: {
|
|
24
|
-
[k: string]: any;
|
|
25
|
-
};
|
|
26
|
-
fragment?: string;
|
|
27
|
-
queryParamsHandling?: QueryParamsHandling;
|
|
28
|
-
preserveFragment?: boolean;
|
|
29
|
-
skipLocationChange?: boolean;
|
|
30
|
-
replaceUrl?: boolean;
|
|
31
|
-
updated?: boolean;
|
|
32
|
-
lazyChildren?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export type InternalCommonsMenuItem = Omit<CommonsMenuItem, 'key' | 'items' | 'lazyChildren' | 'visible'> & {
|
|
35
|
-
key: string;
|
|
36
|
-
config: CommonsMenuItem;
|
|
37
|
-
items: WritableSignal<InternalCommonsMenuItem[]>;
|
|
38
|
-
hasItems: Signal<boolean>;
|
|
39
|
-
itemsVisibility: WritableSignal<WritableSignal<boolean>[]>;
|
|
40
|
-
lazyChildren: WritableSignal<boolean>;
|
|
41
|
-
hasItemsOrLazyChildren: Signal<boolean>;
|
|
42
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export type VersionConfigType = VersionConfig | VersionInfo | string | Array<VersionConfig> | undefined;
|
|
2
|
-
export type VersionConfig = {
|
|
3
|
-
source: 'info' | 'httpResource' | 'config';
|
|
4
|
-
displayName?: string;
|
|
5
|
-
} & (VersionConfigFromInfo | VersionConfigFromHttpResource | VersionConfigFromConfiguration);
|
|
6
|
-
export interface VersionConfigFromInfo {
|
|
7
|
-
source: 'info';
|
|
8
|
-
info: VersionInfo | string;
|
|
9
|
-
}
|
|
10
|
-
export interface VersionConfigFromHttpResource {
|
|
11
|
-
source: 'httpResource';
|
|
12
|
-
urlPath: string;
|
|
13
|
-
urlBaseConfigKey?: string;
|
|
14
|
-
infoJsonPath?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface VersionConfigFromConfiguration {
|
|
17
|
-
source: 'config';
|
|
18
|
-
configKey: string;
|
|
19
|
-
}
|
|
20
|
-
export interface VersionInfo {
|
|
21
|
-
source?: undefined;
|
|
22
|
-
name: string;
|
|
23
|
-
version: string | null;
|
|
24
|
-
tag: string | null;
|
|
25
|
-
distance: number | null;
|
|
26
|
-
hash: string | null;
|
|
27
|
-
dirty: boolean;
|
|
28
|
-
semver: string | null;
|
|
29
|
-
raw: string;
|
|
30
|
-
buildTimestamp: number | null;
|
|
31
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BooleanPipe implements PipeTransform {
|
|
4
|
-
transform(value: any, yes?: string, no?: string, icon?: boolean): any;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<BooleanPipe, "mngBoolean", true>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ClassMapPipe<T> implements PipeTransform {
|
|
4
|
-
transform(className?: string, classNameMapFn?: (className?: string, item?: T) => string, item?: T): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClassMapPipe<any>, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ClassMapPipe<any>, "mngClassMap", true>;
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { IEnumDescriptor } from '../descriptors/enum.descriptor';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class EnumPipe implements PipeTransform {
|
|
5
|
-
transform(value: unknown, enumDesc?: IEnumDescriptor, i18nPath?: string | null): any;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EnumPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<EnumPipe, "mngEnum", true>;
|
|
8
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class EnumerateAsyncPipe implements PipeTransform {
|
|
5
|
-
private readonly translate;
|
|
6
|
-
transform(value: Observable<Array<unknown> | Set<unknown>>, jsonPath?: string, valueSeparator?: string, emptyValueReturn?: string, i18nBaseKey?: string): Observable<string>;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EnumerateAsyncPipe, never>;
|
|
8
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<EnumerateAsyncPipe, "mngEnumerateAsync", true>;
|
|
9
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class EnumeratePipe implements PipeTransform {
|
|
4
|
-
private readonly translate;
|
|
5
|
-
transform<T>(value: Array<T> | Set<T>, jsonPath?: string, valueSeparator?: string, emptyValueReturn?: string, i18nBaseKey?: string): string;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EnumeratePipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<EnumeratePipe, "mngEnumerate", true>;
|
|
8
|
-
}
|
|
9
|
-
export declare function getEnumerationI18nBaseKey(baseKey: string): string;
|
|
10
|
-
export declare function selectEnumerationI18n(value: EnumeratePipeI18nInternal, baseKey: string): string;
|
|
11
|
-
export declare function toEnumerationI18nEnumerate(value: unknown, jsonPath: string, baseKey: string): EnumeratePipeI18nInternal;
|
|
12
|
-
export interface EnumeratePipeI18nInternal {
|
|
13
|
-
value: string;
|
|
14
|
-
i18nKey: string;
|
|
15
|
-
i18n: string;
|
|
16
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { GetterFn } from '../models/getter.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class GetterPipe implements PipeTransform {
|
|
5
|
-
transform(value: unknown, getterFn?: GetterFn, item?: unknown): any;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GetterPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<GetterPipe, "mngGetter", true>;
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { IModelDescriptor } from '../descriptors/model.descriptor';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class I18nPropertyPipe implements PipeTransform {
|
|
5
|
-
transform(property: string, model: IModelDescriptor<any>): any;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<I18nPropertyPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<I18nPropertyPipe, "mngI18nProperty", true>;
|
|
8
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Imitation of JSONPath Syntax. Supports:
|
|
5
|
-
* - Root object notation with '$'
|
|
6
|
-
* - Dot notation (e.g.: $.foo.bar), no bracket notation for properties
|
|
7
|
-
* - Array notation (e.g.: [0])
|
|
8
|
-
*/
|
|
9
|
-
export declare class JsonPathPipe implements PipeTransform {
|
|
10
|
-
transform(value: any, path?: string): any;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<JsonPathPipe, never>;
|
|
12
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<JsonPathPipe, "mngJsonPath", true>;
|
|
13
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { IdType } from '../helpers/type-helpers';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
type TransformOptsType = {
|
|
5
|
-
encodeParams?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare class ParametrizePipe implements PipeTransform {
|
|
8
|
-
private jsonPath;
|
|
9
|
-
transform(value: unknown, itemId?: IdType, item?: any, data?: Record<string, any>, opts?: TransformOptsType): any;
|
|
10
|
-
private transformString;
|
|
11
|
-
private parametrizeStringAsRouterLink;
|
|
12
|
-
private parametrizeString;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ParametrizePipe, never>;
|
|
14
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ParametrizePipe, "mngParametrize", true>;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TemplatePipe implements PipeTransform {
|
|
4
|
-
private parametrizePipe;
|
|
5
|
-
transform(value: unknown, template?: string): any;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TemplatePipe, "template", true>;
|
|
8
|
-
}
|
package/core/provide.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EnvironmentProviders, Provider } from '@angular/core';
|
|
2
|
-
import { CommonsModuleConfig } from './services/tokens/module-config.token';
|
|
3
|
-
export declare enum CommonsFeatureTypeEnum {
|
|
4
|
-
Layout = 0,
|
|
5
|
-
Table = 1,
|
|
6
|
-
Tableview = 2,
|
|
7
|
-
DataApiAsClassV1 = 3
|
|
8
|
-
}
|
|
9
|
-
export interface CommonsFeature {
|
|
10
|
-
type: CommonsFeatureTypeEnum;
|
|
11
|
-
providers: (Provider | EnvironmentProviders)[];
|
|
12
|
-
}
|
|
13
|
-
export declare function provideCommons(config?: CommonsModuleConfig, ...features: CommonsFeature[]): (Provider | EnvironmentProviders)[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { EffectRef } from '@angular/core';
|
|
2
|
-
type EffectWithDepsValues<T> = {
|
|
3
|
-
[K in keyof T]: () => T[K];
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Effect function with explicit declaration of dependencies. Dependencies will be tracked, whereas the main execution will not be.
|
|
7
|
-
*
|
|
8
|
-
* @param deps Array of dependencies to be tracked.
|
|
9
|
-
* @param fn Function where dependencies will no longer be tracked.
|
|
10
|
-
* @param opts Additional options:
|
|
11
|
-
* - firstOnly Executes effect only once, then destroy it.
|
|
12
|
-
*/
|
|
13
|
-
export declare function effectWithDeps<Input extends readonly unknown[], Params = Input>(deps: readonly [...EffectWithDepsValues<Input>], fn: (deps: Params) => void, opts?: {
|
|
14
|
-
firstOnly?: boolean;
|
|
15
|
-
}): EffectRef;
|
|
16
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import 'reflect-metadata';
|
|
2
|
-
import { EnumType } from '../helpers/type-helpers';
|
|
3
|
-
import { ClassType } from '../models/class-service.model';
|
|
4
|
-
export declare const reflectTypeNameKey = "typeName";
|
|
5
|
-
export declare const reflectEnumNameKey = "enumName";
|
|
6
|
-
/**
|
|
7
|
-
* Defines type name decorator.
|
|
8
|
-
* @param targetType class.
|
|
9
|
-
* @param typeName Name of the type.
|
|
10
|
-
*/
|
|
11
|
-
export declare function defineReflectTypeName(targetType: ClassType<any>, typeName: string): void;
|
|
12
|
-
/**
|
|
13
|
-
* Defines enum name decorator.
|
|
14
|
-
* @param targetType enum object.
|
|
15
|
-
* @param enumName Name of the enum.
|
|
16
|
-
*/
|
|
17
|
-
export declare function defineReflectEnumName(targetType: EnumType, enumName: string): void;
|
|
18
|
-
/**
|
|
19
|
-
* Gets type name from reflect metadata.
|
|
20
|
-
* @param type Class.
|
|
21
|
-
*/
|
|
22
|
-
export declare function findReflectTypeName<T>(type?: ClassType<T>): string | null;
|
|
23
|
-
/**
|
|
24
|
-
* Gets type name from either decorator or reflect metadata.
|
|
25
|
-
* @param type Class.
|
|
26
|
-
*/
|
|
27
|
-
export declare function reflectTypeNameExists(type: ClassType<any>): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Gets enum name from either decorator or reflect metadata.
|
|
30
|
-
* @param enumType Class.
|
|
31
|
-
*/
|
|
32
|
-
export declare function findReflectEnumName(enumType: EnumType): string | null;
|