@quadrel-enterprise-ui/framework 1.0.0 → 18.19.2
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/esm2022/global-vars.json +18 -0
- package/esm2022/lib/button/__mocks__/mock-button-grid.component.mjs +14 -0
- package/esm2022/lib/button/__mocks__/mock-button-stack-button.component.mjs +21 -0
- package/esm2022/lib/button/__mocks__/mock-button-stack.component.mjs +14 -0
- package/esm2022/lib/button/__mocks__/mock-button.component.mjs +30 -0
- package/esm2022/lib/button/__mocks__/mock-button.directives.mjs +19 -0
- package/esm2022/lib/button/__mocks__/mock-button.module.mjs +52 -0
- package/esm2022/lib/button/__mocks__/mock-icon-button.component.mjs +17 -0
- package/esm2022/lib/button/button/additional-info/button-additional-info.component.mjs +48 -0
- package/esm2022/lib/button/button/button.component.mjs +98 -0
- package/esm2022/lib/button/button-grid/button-grid.component.mjs +16 -0
- package/esm2022/lib/button/button-stack/button-stack-button/button-stack-button.component.mjs +46 -0
- package/esm2022/lib/button/button-stack/button-stack-container/button-stack.component.mjs +39 -0
- package/esm2022/lib/button/button.module.mjs +89 -0
- package/esm2022/lib/button/directives/button.directives.mjs +40 -0
- package/esm2022/lib/button/icon-button/icon-button.component.mjs +51 -0
- package/esm2022/lib/button/menu-button/menu-button.component.mjs +95 -0
- package/esm2022/lib/button/model/button-config.mjs +2 -0
- package/esm2022/lib/button/model/button.types.mjs +2 -0
- package/esm2022/lib/chips/__mocks__/mock-chip.component.mjs +42 -0
- package/esm2022/lib/chips/__mocks__/mock-chips.module.mjs +19 -0
- package/esm2022/lib/chips/chip/chip.component.mjs +79 -0
- package/esm2022/lib/chips/chips.module.mjs +20 -0
- package/esm2022/lib/chips/interfaces/chip.interface.mjs +2 -0
- package/esm2022/lib/comments/add-comment/add-comment-dialog.component.mjs +138 -0
- package/esm2022/lib/comments/comments.component.mjs +73 -0
- package/esm2022/lib/comments/comments.module.mjs +60 -0
- package/esm2022/lib/comments/menu/comment-menu.component.mjs +19 -0
- package/esm2022/lib/comments/model/comments.interface.mjs +2 -0
- package/esm2022/lib/comments/pipes/stripe-html.pipe.mjs +18 -0
- package/esm2022/lib/contact-card/__mocks__/mock-contact-card.component.mjs +19 -0
- package/esm2022/lib/contact-card/__mocks__/mock-contact-card.module.mjs +19 -0
- package/esm2022/lib/contact-card/contact-card.component.mjs +285 -0
- package/esm2022/lib/contact-card/contact-card.module.mjs +25 -0
- package/esm2022/lib/contact-card/menu/contact-card-menu.component.mjs +80 -0
- package/esm2022/lib/contact-card/model/contact-card-actions-config.interface.mjs +2 -0
- package/esm2022/lib/contact-card/model/contact-data.interface.mjs +2 -0
- package/esm2022/lib/container/__mocks__/mock-action-footer.component.mjs +14 -0
- package/esm2022/lib/container/__mocks__/mock-container-create-content.component.mjs +22 -0
- package/esm2022/lib/container/__mocks__/mock-container-create-default.component.mjs +18 -0
- package/esm2022/lib/container/__mocks__/mock-container-section.component.mjs +18 -0
- package/esm2022/lib/container/__mocks__/mock-container-toolbar-action.component.mjs +41 -0
- package/esm2022/lib/container/__mocks__/mock-container-toolbar-filter.component.mjs +14 -0
- package/esm2022/lib/container/__mocks__/mock-container-toolbar-title.component.mjs +14 -0
- package/esm2022/lib/container/__mocks__/mock-container-toolbar.component.mjs +17 -0
- package/esm2022/lib/container/__mocks__/mock-container.component.mjs +40 -0
- package/esm2022/lib/container/__mocks__/mock-container.module.mjs +85 -0
- package/esm2022/lib/container/__mocks__/mock-create-delete-alert.component.mjs +20 -0
- package/esm2022/lib/container/__mocks__/mock-form-group.component.mjs +39 -0
- package/esm2022/lib/container/container.component.mjs +217 -0
- package/esm2022/lib/container/container.module.mjs +64 -0
- package/esm2022/lib/container/model/container-type.mjs +2 -0
- package/esm2022/lib/container/model/toolbar.interface.mjs +2 -0
- package/esm2022/lib/container/section/container-section.component.mjs +41 -0
- package/esm2022/lib/container/section/header/container-section-header.component.mjs +16 -0
- package/esm2022/lib/container/section/info/container-section-info.component.mjs +14 -0
- package/esm2022/lib/container/services/container-action.service.mjs +19 -0
- package/esm2022/lib/container/services/container-layout.service.mjs +33 -0
- package/esm2022/lib/container/toolbar/action/container-toolbar-action.component.mjs +107 -0
- package/esm2022/lib/container/toolbar/container-toolbar.component.mjs +76 -0
- package/esm2022/lib/container/toolbar/filter/container-toolbar-filter.component.mjs +17 -0
- package/esm2022/lib/container/toolbar/title/container-toolbar-title.component.mjs +16 -0
- package/esm2022/lib/content-grid/__mocks__/mock-content-grid-column.mjs +14 -0
- package/esm2022/lib/content-grid/__mocks__/mock-content-grid-row.mjs +14 -0
- package/esm2022/lib/content-grid/__mocks__/mock-content-grid.mjs +14 -0
- package/esm2022/lib/content-grid/__mocks__/mock-content-grid.module.mjs +19 -0
- package/esm2022/lib/content-grid/content-grid/content-grid.component.mjs +31 -0
- package/esm2022/lib/content-grid/content-grid-column/content-grid-column.component.mjs +17 -0
- package/esm2022/lib/content-grid/content-grid-row/content-grid-row.component.mjs +18 -0
- package/esm2022/lib/content-grid/content-grid.module.mjs +21 -0
- package/esm2022/lib/core/__mocks__/mock-breakpoint.service.mjs +8 -0
- package/esm2022/lib/core/__mocks__/mock-core.module.mjs +42 -0
- package/esm2022/lib/core/__mocks__/mock-disabled.directive.mjs +14 -0
- package/esm2022/lib/core/__mocks__/mock-popover-on-click.directive.mjs +107 -0
- package/esm2022/lib/core/__mocks__/mock-rwd-disabled.directive.mjs +14 -0
- package/esm2022/lib/core/__mocks__/mock-translate.pipe.mjs +14 -0
- package/esm2022/lib/core/__mocks__/mock-visually-hidden.directive.mjs +14 -0
- package/esm2022/lib/core/autofocus/autofocus.directive.mjs +42 -0
- package/esm2022/lib/core/autofocus/autofocus.module.mjs +18 -0
- package/esm2022/lib/core/autofocus/autofocus.service.mjs +20 -0
- package/esm2022/lib/core/breadcrumbs/breadcrumbs.component.mjs +154 -0
- package/esm2022/lib/core/breadcrumbs/breadcrumbs.module.mjs +21 -0
- package/esm2022/lib/core/breadcrumbs/model/breadcrumbs.interface.mjs +2 -0
- package/esm2022/lib/core/breadcrumbs/services/breadcrumbs.service.mjs +61 -0
- package/esm2022/lib/core/breadcrumbs/services/dialog-breadcrumbs.service.mjs +15 -0
- package/esm2022/lib/core/core.module.mjs +54 -0
- package/esm2022/lib/core/data-facets/blank/data-facets-blank.component.mjs +34 -0
- package/esm2022/lib/core/data-facets/boolean/data-facets-boolean.component.mjs +23 -0
- package/esm2022/lib/core/data-facets/chip/data-facets-chip.component.mjs +63 -0
- package/esm2022/lib/core/data-facets/chip/data-facets-chip.interfaces.mjs +2 -0
- package/esm2022/lib/core/data-facets/chip/truncated-indicator/data-facets-chip-truncated-indicator.component.mjs +98 -0
- package/esm2022/lib/core/data-facets/chip/truncated-tooltip/data-facets-chip-truncated-tooltip.component.mjs +139 -0
- package/esm2022/lib/core/data-facets/currency/data-facets-currency.component.mjs +71 -0
- package/esm2022/lib/core/data-facets/currency/data-facets-currency.interfaces.mjs +2 -0
- package/esm2022/lib/core/data-facets/data-facets-context.service.mjs +17 -0
- package/esm2022/lib/core/data-facets/data-facets.model.mjs +34 -0
- package/esm2022/lib/core/data-facets/data-facets.module.mjs +62 -0
- package/esm2022/lib/core/data-facets/date/data-facets-date.component.mjs +98 -0
- package/esm2022/lib/core/data-facets/date/data-facets-date.interfaces.mjs +2 -0
- package/esm2022/lib/core/data-facets/icon/data-facets-icon.component.mjs +24 -0
- package/esm2022/lib/core/data-facets/integer/data-facets-integer.component.mjs +22 -0
- package/esm2022/lib/core/data-facets/link/data-facets-link.component.mjs +70 -0
- package/esm2022/lib/core/data-facets/link/data-facets-link.interfaces.mjs +2 -0
- package/esm2022/lib/core/data-facets/progress/data-facets-progress.component.mjs +34 -0
- package/esm2022/lib/core/data-facets/status/data-facets-status.component.mjs +24 -0
- package/esm2022/lib/core/data-facets/status/data-facets-status.interfaces.mjs +2 -0
- package/esm2022/lib/core/data-facets/text/data-facets-text.component.mjs +49 -0
- package/esm2022/lib/core/data-facets/text/data-facets-text.interfaces.mjs +2 -0
- package/esm2022/lib/core/disabled/disabled.directive.mjs +14 -0
- package/esm2022/lib/core/focusable/focusable.directive.mjs +27 -0
- package/esm2022/lib/core/focusable/focusable.mjs +2 -0
- package/esm2022/lib/core/focusable/focusable.module.mjs +16 -0
- package/esm2022/lib/core/focusable/focusable.token.mjs +6 -0
- package/esm2022/lib/core/model/app-enviroment.interface.mjs +2 -0
- package/esm2022/lib/core/model/app-enviroment.token.mjs +3 -0
- package/esm2022/lib/core/model/breakpoint.interface.mjs +3 -0
- package/esm2022/lib/core/model/translation.interface.mjs +2 -0
- package/esm2022/lib/core/pipes/file-size.pipe.mjs +41 -0
- package/esm2022/lib/core/pipes/placeholder.pipe.mjs +17 -0
- package/esm2022/lib/core/pipes/placeholders.pipe.mjs +20 -0
- package/esm2022/lib/core/pipes/sanitize-html.pipe.mjs +20 -0
- package/esm2022/lib/core/popover/popover/popover.component.mjs +52 -0
- package/esm2022/lib/core/popover/popover-on-click/popover-on-click.directive.mjs +261 -0
- package/esm2022/lib/core/popover/popover-on-hover/popover-on-hover.directive.mjs +91 -0
- package/esm2022/lib/core/popover/popover-parent.service.mjs +11 -0
- package/esm2022/lib/core/popover/popover-sizing.service.mjs +163 -0
- package/esm2022/lib/core/popover/popover-top-first.token.mjs +3 -0
- package/esm2022/lib/core/popover/popover.module.mjs +22 -0
- package/esm2022/lib/core/popover/popover.service.mjs +18 -0
- package/esm2022/lib/core/projection-guard/projection-guard.component.mjs +33 -0
- package/esm2022/lib/core/rwd-disabled/rwd-disabled.directive.mjs +14 -0
- package/esm2022/lib/core/rxjs/delay-and-hold.operator.mjs +52 -0
- package/esm2022/lib/core/services/breakpoint.service.mjs +34 -0
- package/esm2022/lib/core/services/element.service.mjs +16 -0
- package/esm2022/lib/core/services/event-broker.service.mjs +76 -0
- package/esm2022/lib/core/services/push-events.service.mjs +153 -0
- package/esm2022/lib/core/services/scrolling.service.mjs +47 -0
- package/esm2022/lib/core/services/translate.service.mjs +48 -0
- package/esm2022/lib/core/tools/constantCase.tools.mjs +3 -0
- package/esm2022/lib/core/tools/convertPxToRem.tools.mjs +3 -0
- package/esm2022/lib/core/tooltip/model/tooltip-content.interface.mjs +2 -0
- package/esm2022/lib/core/tooltip/tooltip/tooltip.component.mjs +15 -0
- package/esm2022/lib/core/tooltip/tooltip-at-intersection/tooltip-at-intersection.directive.mjs +115 -0
- package/esm2022/lib/core/tooltip/tooltip-on-tap-hover/tooltip-on-click.directive.mjs +101 -0
- package/esm2022/lib/core/tooltip/tooltip.module.mjs +21 -0
- package/esm2022/lib/core/types/utility.types.mjs +2 -0
- package/esm2022/lib/core/visually-hidden/visually-hidden.directive.mjs +14 -0
- package/esm2022/lib/dialog/action/dialog-action.component.mjs +11 -0
- package/esm2022/lib/dialog/auth-session-end/dialog-auth-session-end.component.mjs +33 -0
- package/esm2022/lib/dialog/confirmation/dialog-confirmation.component.mjs +227 -0
- package/esm2022/lib/dialog/dialog.component.mjs +100 -0
- package/esm2022/lib/dialog/dialog.module.mjs +106 -0
- package/esm2022/lib/dialog/models/confirmation.model.mjs +6 -0
- package/esm2022/lib/dialog/models/dialog-config.model.mjs +10 -0
- package/esm2022/lib/dialog/models/record-stepper.model.mjs +2 -0
- package/esm2022/lib/dialog/models/session-end-result.model.mjs +2 -0
- package/esm2022/lib/dialog/page-dialog-with-breadcrumbs/page-dialog-with-breadcrumbs.component.mjs +14 -0
- package/esm2022/lib/dialog/record-stepper/dialog-record-stepper.component.mjs +80 -0
- package/esm2022/lib/dialog/services/dialog-auth-session-end.service.mjs +38 -0
- package/esm2022/lib/dialog/services/dialog.service.mjs +128 -0
- package/esm2022/lib/file-collector/__mocks__/mock-file-collector-dialog-item-error.component.mjs +19 -0
- package/esm2022/lib/file-collector/__mocks__/mock-file-collector-dialog-item-progress.component.mjs +21 -0
- package/esm2022/lib/file-collector/__mocks__/mock-file-collector-dialog-item.component.mjs +25 -0
- package/esm2022/lib/file-collector/__mocks__/mock-file-collector-item-name.component.mjs +18 -0
- package/esm2022/lib/file-collector/__mocks__/mock-file-collector-item-size.component.mjs +18 -0
- package/esm2022/lib/file-collector/__mocks__/mock-file-collector-item-tools.component.mjs +34 -0
- package/esm2022/lib/file-collector/__mocks__/mock-file-collector-item.component.mjs +40 -0
- package/esm2022/lib/file-collector/__mocks__/mock-file-collector.component.mjs +14 -0
- package/esm2022/lib/file-collector/__mocks__/mock-file-collector.module.mjs +42 -0
- package/esm2022/lib/file-collector/allowed-files-description/file-collector-allowed-files-description.component.mjs +34 -0
- package/esm2022/lib/file-collector/dialog/file-collector-dialog.component.mjs +47 -0
- package/esm2022/lib/file-collector/dialog/item/error/file-collector-dialog-item-error.component.mjs +39 -0
- package/esm2022/lib/file-collector/dialog/item/file-collector-dialog-item.component.mjs +41 -0
- package/esm2022/lib/file-collector/dialog/item/progress/file-collector-dialog-item-progress.component.mjs +64 -0
- package/esm2022/lib/file-collector/file-collector.component.mjs +256 -0
- package/esm2022/lib/file-collector/file-collector.module.mjs +95 -0
- package/esm2022/lib/file-collector/file-delete-dialog/file-delete-dialog.component.mjs +35 -0
- package/esm2022/lib/file-collector/item/file-collector-item.component.mjs +44 -0
- package/esm2022/lib/file-collector/item/name/file-collector-item-name.component.mjs +15 -0
- package/esm2022/lib/file-collector/item/size/file-collector-item-size.component.mjs +17 -0
- package/esm2022/lib/file-collector/item/tools/file-collector-item-tools.component.mjs +79 -0
- package/esm2022/lib/file-collector/item/upload-timestamp/upload-timestamp.component.mjs +16 -0
- package/esm2022/lib/file-collector/models/collected-file.mjs +2 -0
- package/esm2022/lib/file-collector/models/file-collector-config.mjs +2 -0
- package/esm2022/lib/file-collector/models/file-manager-token.mjs +3 -0
- package/esm2022/lib/file-collector/models/file-manager.mjs +2 -0
- package/esm2022/lib/file-collector/models/file-type.mjs +2 -0
- package/esm2022/lib/file-collector/models/file-upload.mjs +9 -0
- package/esm2022/lib/file-collector/models/upload-progress.mjs +12 -0
- package/esm2022/lib/file-collector/pipes/filesize.pipe.mjs +40 -0
- package/esm2022/lib/file-collector/pipes/upload-timestamp.pipe.mjs +26 -0
- package/esm2022/lib/file-collector/services/file-collector-validation.service.mjs +36 -0
- package/esm2022/lib/file-collector/services/file-collector.service.mjs +86 -0
- package/esm2022/lib/file-collector/services/file-type.service.mjs +119 -0
- package/esm2022/lib/filter/__mocks__/mock-filter-category-boolean.mjs +31 -0
- package/esm2022/lib/filter/__mocks__/mock-filter-category-date-range.mjs +35 -0
- package/esm2022/lib/filter/__mocks__/mock-filter-category-date.mjs +35 -0
- package/esm2022/lib/filter/__mocks__/mock-filter-category-free-text.mjs +34 -0
- package/esm2022/lib/filter/__mocks__/mock-filter-category-select.mjs +31 -0
- package/esm2022/lib/filter/__mocks__/mock-filter-category.mjs +35 -0
- package/esm2022/lib/filter/__mocks__/mock-filter-item-boolean.mjs +37 -0
- package/esm2022/lib/filter/__mocks__/mock-filter-item-date-range.mjs +38 -0
- package/esm2022/lib/filter/__mocks__/mock-filter-item-date.mjs +38 -0
- package/esm2022/lib/filter/__mocks__/mock-filter-item-free-text.mjs +37 -0
- package/esm2022/lib/filter/__mocks__/mock-filter-item-multi-select.mjs +34 -0
- package/esm2022/lib/filter/__mocks__/mock-filter-item-single-select.mjs +34 -0
- package/esm2022/lib/filter/__mocks__/mock-filter.mjs +32 -0
- package/esm2022/lib/filter/__mocks__/mock-filter.module.mjs +89 -0
- package/esm2022/lib/filter/__mocks__/mock-filter.service.mjs +87 -0
- package/esm2022/lib/filter/__mocks__/mock-localeDate.pipe.mjs +15 -0
- package/esm2022/lib/filter/category/boolean/filter-category-boolean.component.mjs +36 -0
- package/esm2022/lib/filter/category/date/filter-category-date.component.mjs +62 -0
- package/esm2022/lib/filter/category/date-range/filter-category-date-range.component.mjs +75 -0
- package/esm2022/lib/filter/category/filter-category.component.mjs +110 -0
- package/esm2022/lib/filter/category/free-text/filter-category-free-text.component.mjs +61 -0
- package/esm2022/lib/filter/category/select/filter-category-select.component.mjs +129 -0
- package/esm2022/lib/filter/filter-service/filter.service.mjs +206 -0
- package/esm2022/lib/filter/filter.component.mjs +308 -0
- package/esm2022/lib/filter/filter.module.mjs +101 -0
- package/esm2022/lib/filter/helpers/filter-active-items.helper.mjs +26 -0
- package/esm2022/lib/filter/helpers/filter-active.helper.mjs +6 -0
- package/esm2022/lib/filter/helpers/filter-get.helper.mjs +18 -0
- package/esm2022/lib/filter/helpers/filter-postbody.helper.mjs +6 -0
- package/esm2022/lib/filter/helpers/filter-query-parser.helper.mjs +27 -0
- package/esm2022/lib/filter/helpers/filter-query.helper.mjs +39 -0
- package/esm2022/lib/filter/helpers/filter-selection-validator.helper.mjs +33 -0
- package/esm2022/lib/filter/helpers/filter-state.helpers.mjs +88 -0
- package/esm2022/lib/filter/helpers/filter-update.helper.mjs +84 -0
- package/esm2022/lib/filter/item/boolean/filter-item-boolean.component.mjs +62 -0
- package/esm2022/lib/filter/item/date/filter-item-date.component.mjs +68 -0
- package/esm2022/lib/filter/item/date-range/filter-item-date-range.component.mjs +107 -0
- package/esm2022/lib/filter/item/free-text/filter-item-free-text.component.mjs +82 -0
- package/esm2022/lib/filter/item/multi-select/filter-item-multi-select.component.mjs +62 -0
- package/esm2022/lib/filter/item/single-select/filter-item-single-select.component.mjs +72 -0
- package/esm2022/lib/filter/model/filter-config.interface.mjs +2 -0
- package/esm2022/lib/filter/model/filter-post-body.interface.mjs +2 -0
- package/esm2022/lib/filter/model/filter-reducer.interface.mjs +2 -0
- package/esm2022/lib/filter/model/filter-state.interface.mjs +2 -0
- package/esm2022/lib/filter/model/filter-types.interface.mjs +2 -0
- package/esm2022/lib/filter/pipes/localeDate.pipe.mjs +54 -0
- package/esm2022/lib/filter/services/dependent-filters.service.mjs +61 -0
- package/esm2022/lib/filter/services/filter-rest-param.tools.mjs +27 -0
- package/esm2022/lib/filter/services/filter-router-connector.service.mjs +111 -0
- package/esm2022/lib/filter/store/filter.actions.mjs +25 -0
- package/esm2022/lib/filter/store/filter.reducer.mjs +98 -0
- package/esm2022/lib/filter/store/filter.selector.mjs +38 -0
- package/esm2022/lib/forms/__mocks__/mock-calendar.component.mjs +31 -0
- package/esm2022/lib/forms/__mocks__/mock-checkbox-chips-item.component.mjs +23 -0
- package/esm2022/lib/forms/__mocks__/mock-checkbox-chips.component.mjs +32 -0
- package/esm2022/lib/forms/__mocks__/mock-checkbox.component.mjs +38 -0
- package/esm2022/lib/forms/__mocks__/mock-checkboxes.component.mjs +35 -0
- package/esm2022/lib/forms/__mocks__/mock-datepicker.component.mjs +34 -0
- package/esm2022/lib/forms/__mocks__/mock-dropdown.component.mjs +44 -0
- package/esm2022/lib/forms/__mocks__/mock-filter-form-items.component.mjs +27 -0
- package/esm2022/lib/forms/__mocks__/mock-form-error.component.mjs +19 -0
- package/esm2022/lib/forms/__mocks__/mock-form-group-error.component.mjs +22 -0
- package/esm2022/lib/forms/__mocks__/mock-form-hint.component.mjs +31 -0
- package/esm2022/lib/forms/__mocks__/mock-form-label.component.mjs +39 -0
- package/esm2022/lib/forms/__mocks__/mock-form-readonly.component.mjs +26 -0
- package/esm2022/lib/forms/__mocks__/mock-form-viewonly.component.mjs +26 -0
- package/esm2022/lib/forms/__mocks__/mock-forms.module.mjs +118 -0
- package/esm2022/lib/forms/__mocks__/mock-input.component.mjs +95 -0
- package/esm2022/lib/forms/__mocks__/mock-pin-code.component.mjs +76 -0
- package/esm2022/lib/forms/__mocks__/mock-radio-buttons.component.mjs +38 -0
- package/esm2022/lib/forms/__mocks__/mock-switch.component.mjs +56 -0
- package/esm2022/lib/forms/__mocks__/mock-switches.component.mjs +54 -0
- package/esm2022/lib/forms/__mocks__/mock-textarea.component.mjs +50 -0
- package/esm2022/lib/forms/checkbox-chips/checkbox-chips.component.mjs +250 -0
- package/esm2022/lib/forms/checkbox-chips/item/checkbox-chips-item.component.mjs +34 -0
- package/esm2022/lib/forms/checkbox-chips/services/checkbox-chips.service.mjs +33 -0
- package/esm2022/lib/forms/checkboxes/checkbox/checkbox.component.mjs +93 -0
- package/esm2022/lib/forms/checkboxes/checkboxes-service/checkboxes.service.mjs +106 -0
- package/esm2022/lib/forms/checkboxes/checkboxes.component.mjs +354 -0
- package/esm2022/lib/forms/datepicker/adapter/date-adapter.mjs +116 -0
- package/esm2022/lib/forms/datepicker/calendar/calendar.component.mjs +186 -0
- package/esm2022/lib/forms/datepicker/datepicker.component.mjs +490 -0
- package/esm2022/lib/forms/datepicker/service/timepicker.service.mjs +68 -0
- package/esm2022/lib/forms/dropdown/dropdown.component.mjs +491 -0
- package/esm2022/lib/forms/dropdown/options/dropdown-options.component.mjs +90 -0
- package/esm2022/lib/forms/file-upload/file-upload.component.mjs +333 -0
- package/esm2022/lib/forms/file-upload/model/file-upload.model.mjs +46 -0
- package/esm2022/lib/forms/file-upload/services/file-upload.service.mjs +61 -0
- package/esm2022/lib/forms/forms/forms.component.mjs +16 -0
- package/esm2022/lib/forms/input/helpers/get-value-with-unit.mjs +22 -0
- package/esm2022/lib/forms/input/input.component.mjs +601 -0
- package/esm2022/lib/forms/input/options/input-options.component.mjs +64 -0
- package/esm2022/lib/forms/input/options/input-options.directive.mjs +281 -0
- package/esm2022/lib/forms/input/units/input-units.component.mjs +62 -0
- package/esm2022/lib/forms/model/datepicker.mjs +7 -0
- package/esm2022/lib/forms/model/form-options-resolver.mjs +22 -0
- package/esm2022/lib/forms/model/forms.interface.mjs +2 -0
- package/esm2022/lib/forms/model/options.interface.mjs +2 -0
- package/esm2022/lib/forms/model/radio-buttons.mjs +2 -0
- package/esm2022/lib/forms/multi-input/interfaces/multi-input-chip.interface.mjs +2 -0
- package/esm2022/lib/forms/multi-input/multi-input-chip/multi-input-chip.component.mjs +95 -0
- package/esm2022/lib/forms/multi-input/multi-input-menu/multi-input-menu.component.mjs +83 -0
- package/esm2022/lib/forms/multi-input/multi-input-service/multi-input.service.mjs +102 -0
- package/esm2022/lib/forms/multi-input/multi-input.component.mjs +540 -0
- package/esm2022/lib/forms/pin-code/pin-code-service/pin-code.service.mjs +90 -0
- package/esm2022/lib/forms/pin-code/pin-code.component.mjs +454 -0
- package/esm2022/lib/forms/qd-form.module.mjs +189 -0
- package/esm2022/lib/forms/radio-buttons/radio-buttons-service/radio-buttons.service.mjs +45 -0
- package/esm2022/lib/forms/radio-buttons/radio-buttons.component.mjs +326 -0
- package/esm2022/lib/forms/reactive-forms/controls/form-array-factory.service.mjs +72 -0
- package/esm2022/lib/forms/reactive-forms/controls/form-array.mjs +320 -0
- package/esm2022/lib/forms/reactive-forms/controls/form-builder.mjs +126 -0
- package/esm2022/lib/forms/reactive-forms/controls/form-control.mjs +61 -0
- package/esm2022/lib/forms/reactive-forms/controls/form-group.mjs +4 -0
- package/esm2022/lib/forms/richtext/richtext.component.mjs +214 -0
- package/esm2022/lib/forms/shared/components/filter-form-items/filter-form-items.component.mjs +34 -0
- package/esm2022/lib/forms/shared/components/form-error/form-error.component.mjs +48 -0
- package/esm2022/lib/forms/shared/components/form-hint/form-hint.component.mjs +40 -0
- package/esm2022/lib/forms/shared/components/form-input/form-input.component.mjs +43 -0
- package/esm2022/lib/forms/shared/components/form-label/form-label.component.mjs +59 -0
- package/esm2022/lib/forms/shared/components/form-readonly/form-readonly.component.mjs +45 -0
- package/esm2022/lib/forms/shared/components/form-viewonly/form-viewonly.component.mjs +50 -0
- package/esm2022/lib/forms/shared/helpers/forms-options.helpers.mjs +21 -0
- package/esm2022/lib/forms/shared/helpers/forms.helpers.mjs +87 -0
- package/esm2022/lib/forms/shared/helpers/has-validators.helpers.mjs +10 -0
- package/esm2022/lib/forms/shared/services/action-emitter.service.mjs +17 -0
- package/esm2022/lib/forms/shared/services/form-keyboard.service.mjs +52 -0
- package/esm2022/lib/forms/shared/services/form-options.service.mjs +102 -0
- package/esm2022/lib/forms/shared/services/options-resolver.registry.mjs +32 -0
- package/esm2022/lib/forms/shared/validators/validators.mjs +247 -0
- package/esm2022/lib/forms/switches/switch/switch.component.mjs +102 -0
- package/esm2022/lib/forms/switches/switches-service/switches.service.mjs +67 -0
- package/esm2022/lib/forms/switches/switches.component.mjs +300 -0
- package/esm2022/lib/forms/textarea/textarea.component.mjs +296 -0
- package/esm2022/lib/grid/__mocks__/mock-column.directive.mjs +17 -0
- package/esm2022/lib/grid/__mocks__/mock-columns.directive.mjs +26 -0
- package/esm2022/lib/grid/__mocks__/mock-grid.module.mjs +18 -0
- package/esm2022/lib/grid/directives/column-auto-fill.directive.mjs +54 -0
- package/esm2022/lib/grid/directives/column-break-before.directive.mjs +55 -0
- package/esm2022/lib/grid/directives/column-disable-responsive-colspans.directive.mjs +60 -0
- package/esm2022/lib/grid/directives/column-full-grid-width.directive.mjs +56 -0
- package/esm2022/lib/grid/directives/column-next-in-same-row.directive.mjs +79 -0
- package/esm2022/lib/grid/directives/column.directive.mjs +91 -0
- package/esm2022/lib/grid/directives/columns-disable-auto-fill.directive.mjs +55 -0
- package/esm2022/lib/grid/directives/columns-disable-responsive-colspans.directive.mjs +56 -0
- package/esm2022/lib/grid/directives/columns-max.directive.mjs +67 -0
- package/esm2022/lib/grid/directives/columns.directive.mjs +83 -0
- package/esm2022/lib/grid/grid.component.mjs +67 -0
- package/esm2022/lib/grid/grid.module.mjs +77 -0
- package/esm2022/lib/grid/model/grid-config.interface.mjs +2 -0
- package/esm2022/lib/grid/model/subgrid-config.interface.mjs +2 -0
- package/esm2022/lib/grid/services/grid-auto-fill.service.mjs +165 -0
- package/esm2022/lib/grid/services/grid.service.mjs +22 -0
- package/esm2022/lib/grid/subgrid/subgrid.component.mjs +77 -0
- package/esm2022/lib/helpers/html-plaintext.helper.mjs +11 -0
- package/esm2022/lib/helpers/language.helper.mjs +5 -0
- package/esm2022/lib/helpers/load-javascript-asset.helper.mjs +10 -0
- package/esm2022/lib/helpers/relative-time.helper.mjs +22 -0
- package/esm2022/lib/icon/__mocks__/mock-icon.component.mjs +36 -0
- package/esm2022/lib/icon/__mocks__/mock-icon.module.mjs +17 -0
- package/esm2022/lib/icon/custom-icons/logo.mjs +201 -0
- package/esm2022/lib/icon/icon/icon-definitions.mjs +287 -0
- package/esm2022/lib/icon/icon/icon.component.mjs +78 -0
- package/esm2022/lib/icon/icon.module.mjs +19 -0
- package/esm2022/lib/image/__mocks__/mock-image.component.mjs +30 -0
- package/esm2022/lib/image/__mocks__/mock-image.module.mjs +17 -0
- package/esm2022/lib/image/image/image.component.mjs +83 -0
- package/esm2022/lib/image/image.module.mjs +21 -0
- package/esm2022/lib/layout/__mocks__/mock-action-bar.component.mjs +37 -0
- package/esm2022/lib/layout/__mocks__/mock-active-content-tab.directive.mjs +18 -0
- package/esm2022/lib/layout/__mocks__/mock-button-enabled.directive.mjs +21 -0
- package/esm2022/lib/layout/__mocks__/mock-layout-container.component.mjs +14 -0
- package/esm2022/lib/layout/__mocks__/mock-layout-renderer.component.mjs +37 -0
- package/esm2022/lib/layout/__mocks__/mock-layout.module.mjs +97 -0
- package/esm2022/lib/layout/__mocks__/mock-page-process-header-title.component.mjs +14 -0
- package/esm2022/lib/layout/__mocks__/mock-page-process-header.component.mjs +66 -0
- package/esm2022/lib/layout/__mocks__/mock-page-title.component.mjs +16 -0
- package/esm2022/lib/layout/__mocks__/mock-panel-title.component.mjs +18 -0
- package/esm2022/lib/layout/__mocks__/mock-panel.component.mjs +24 -0
- package/esm2022/lib/layout/__mocks__/mock-truncated-text.directive.mjs +43 -0
- package/esm2022/lib/layout/action-bar/action-bar.component.mjs +78 -0
- package/esm2022/lib/layout/action-bar/button-enabled.directive.mjs +63 -0
- package/esm2022/lib/layout/container/container.component.mjs +153 -0
- package/esm2022/lib/layout/content/page-process-header/page-process-header/page-process-header.component.mjs +181 -0
- package/esm2022/lib/layout/content/page-process-header/page-process-header-title/page-process-header-title.component.mjs +17 -0
- package/esm2022/lib/layout/content/page-title/page-title.component.mjs +37 -0
- package/esm2022/lib/layout/directives/active-content-tab.directive.mjs +55 -0
- package/esm2022/lib/layout/directives/calculate-full-height.directive.mjs +57 -0
- package/esm2022/lib/layout/directives/viewport-adaptive.directive.mjs +25 -0
- package/esm2022/lib/layout/force-line-break/force-line-break.directive.mjs +17 -0
- package/esm2022/lib/layout/interfaces/process-list.mjs +2 -0
- package/esm2022/lib/layout/layout-renderer/layout-renderer.component.mjs +79 -0
- package/esm2022/lib/layout/layout.module.mjs +175 -0
- package/esm2022/lib/layout/modal-fullscreen-container/modal-fullscreen-container.component.mjs +157 -0
- package/esm2022/lib/layout/panel/container/panel.component.mjs +80 -0
- package/esm2022/lib/layout/panel/title/panel-title.component.mjs +50 -0
- package/esm2022/lib/layout/panel/types/panel-types.mjs +2 -0
- package/esm2022/lib/layout/service/layout.service.mjs +42 -0
- package/esm2022/lib/layout/service/panel.service.mjs +43 -0
- package/esm2022/lib/lists/__mocks__/mock-container-pairs-caption.component.mjs +14 -0
- package/esm2022/lib/lists/__mocks__/mock-container-pairs-container.component.mjs +14 -0
- package/esm2022/lib/lists/__mocks__/mock-container-pairs-header.component.mjs +14 -0
- package/esm2022/lib/lists/__mocks__/mock-container-pairs-item.component.mjs +14 -0
- package/esm2022/lib/lists/__mocks__/mock-container-pairs-value.component.mjs +14 -0
- package/esm2022/lib/lists/__mocks__/mock-list.module.mjs +86 -0
- package/esm2022/lib/lists/__mocks__/mock-status-error.component.mjs +14 -0
- package/esm2022/lib/lists/__mocks__/mock-status-pairs-caption.component.mjs +14 -0
- package/esm2022/lib/lists/__mocks__/mock-status-pairs-item.component.mjs +14 -0
- package/esm2022/lib/lists/__mocks__/mock-status-pairs-value.component.mjs +14 -0
- package/esm2022/lib/lists/__mocks__/mock-status-pairs.component.mjs +14 -0
- package/esm2022/lib/lists/__mocks__/mock-vertical-pairs-caption.component.mjs +18 -0
- package/esm2022/lib/lists/__mocks__/mock-vertical-pairs-item.component.mjs +14 -0
- package/esm2022/lib/lists/__mocks__/mock-vertical-pairs-value.component.mjs +18 -0
- package/esm2022/lib/lists/__mocks__/mock-vertical-pairs.component.mjs +14 -0
- package/esm2022/lib/lists/list.module.mjs +111 -0
- package/esm2022/lib/lists/model/list.interface.mjs +2 -0
- package/esm2022/lib/lists/pairs/container-pairs/container-pairs-caption/container-pairs-caption.component.mjs +16 -0
- package/esm2022/lib/lists/pairs/container-pairs/container-pairs-container/container-pairs-container.component.mjs +30 -0
- package/esm2022/lib/lists/pairs/container-pairs/container-pairs-header/container-pairs-header.component.mjs +16 -0
- package/esm2022/lib/lists/pairs/container-pairs/container-pairs-item/container-pairs-item.component.mjs +17 -0
- package/esm2022/lib/lists/pairs/container-pairs/container-pairs-value/container-pairs-value.component.mjs +16 -0
- package/esm2022/lib/lists/pairs/horizontal-pairs/horizontal-pairs-caption/horizontal-pairs-caption.component.mjs +16 -0
- package/esm2022/lib/lists/pairs/horizontal-pairs/horizontal-pairs-container/horizontal-pairs.component.mjs +41 -0
- package/esm2022/lib/lists/pairs/horizontal-pairs/horizontal-pairs-item/horizontal-pairs-item.component.mjs +17 -0
- package/esm2022/lib/lists/pairs/horizontal-pairs/horizontal-pairs-value/horizontal-pairs-value.component.mjs +16 -0
- package/esm2022/lib/lists/pairs/status-pairs/status-pairs-caption/status-pairs-caption.component.mjs +16 -0
- package/esm2022/lib/lists/pairs/status-pairs/status-pairs-container/status-pairs.component.mjs +65 -0
- package/esm2022/lib/lists/pairs/status-pairs/status-pairs-error/status-pairs-error.component.mjs +29 -0
- package/esm2022/lib/lists/pairs/status-pairs/status-pairs-item/status-pairs-item.component.mjs +29 -0
- package/esm2022/lib/lists/pairs/status-pairs/status-pairs-value/status-pairs-value.component.mjs +16 -0
- package/esm2022/lib/lists/pairs/vertical-pairs/vertical-pairs-caption/vertical-pairs-caption.component.mjs +16 -0
- package/esm2022/lib/lists/pairs/vertical-pairs/vertical-pairs-container/vertical-pairs.component.mjs +41 -0
- package/esm2022/lib/lists/pairs/vertical-pairs/vertical-pairs-item/vertical-pairs-item.component.mjs +27 -0
- package/esm2022/lib/lists/pairs/vertical-pairs/vertical-pairs-value/vertical-pairs-value.component.mjs +16 -0
- package/esm2022/lib/master-layout/__mocks__/mock-header-widget.component.mjs +45 -0
- package/esm2022/lib/master-layout/__mocks__/mock-master-layout-banner.component.mjs +14 -0
- package/esm2022/lib/master-layout/__mocks__/mock-master-layout-footer.component.mjs +14 -0
- package/esm2022/lib/master-layout/__mocks__/mock-master-layout-header.component.mjs +43 -0
- package/esm2022/lib/master-layout/__mocks__/mock-master-layout.component.mjs +27 -0
- package/esm2022/lib/master-layout/__mocks__/mock-master-layout.module.mjs +43 -0
- package/esm2022/lib/master-layout/header-widget/header-widget.component.mjs +164 -0
- package/esm2022/lib/master-layout/master-layout/master-layout.component.mjs +132 -0
- package/esm2022/lib/master-layout/master-layout-banner/master-layout-banner.component.mjs +47 -0
- package/esm2022/lib/master-layout/master-layout-footer/master-layout-footer.component.mjs +20 -0
- package/esm2022/lib/master-layout/master-layout-header/master-layout-header.component.mjs +98 -0
- package/esm2022/lib/master-layout/master-layout.module.mjs +82 -0
- package/esm2022/lib/master-layout/model/page-level.mjs +7 -0
- package/esm2022/lib/master-layout/model/service-navigation.mjs +2 -0
- package/esm2022/lib/master-layout/service/language-from-url.service.mjs +63 -0
- package/esm2022/lib/master-layout/service/master-layout.service.mjs +43 -0
- package/esm2022/lib/master-layout/service-navigation/service-navigation.component.mjs +21 -0
- package/esm2022/lib/navigation/stepper/__mocks__/mock-step-action.component.mjs +49 -0
- package/esm2022/lib/navigation/stepper/__mocks__/mock-step-item.component.mjs +53 -0
- package/esm2022/lib/navigation/stepper/__mocks__/mock-step.component.mjs +50 -0
- package/esm2022/lib/navigation/stepper/__mocks__/mock-stepper.component.mjs +25 -0
- package/esm2022/lib/navigation/stepper/__mocks__/mock-stepper.module.mjs +22 -0
- package/esm2022/lib/navigation/stepper/interfaces/stepper.mjs +2 -0
- package/esm2022/lib/navigation/stepper/step/step.component.mjs +182 -0
- package/esm2022/lib/navigation/stepper/step-action/step-action.component.mjs +73 -0
- package/esm2022/lib/navigation/stepper/step-item/step-item.component.mjs +108 -0
- package/esm2022/lib/navigation/stepper/stepper/stepper.component.mjs +368 -0
- package/esm2022/lib/navigation/stepper/stepper.module.mjs +27 -0
- package/esm2022/lib/navigation/tab-bar/__mocks__/mock-tab-bar.module.mjs +20 -0
- package/esm2022/lib/navigation/tab-bar/__mocks__/mock-tab-link.component.mjs +23 -0
- package/esm2022/lib/navigation/tab-bar/__mocks__/mock-tab-nav-bar.component.mjs +15 -0
- package/esm2022/lib/navigation/tab-bar/tab-bar.module.mjs +21 -0
- package/esm2022/lib/navigation/tab-bar/tab-link/tab-link.component.mjs +52 -0
- package/esm2022/lib/navigation/tab-bar/tab-nav-bar/tab-nav-bar.component.mjs +17 -0
- package/esm2022/lib/navigation/tabs/__mocks__/mock-tab-action.component.mjs +34 -0
- package/esm2022/lib/navigation/tabs/__mocks__/mock-tab-item.component.mjs +51 -0
- package/esm2022/lib/navigation/tabs/__mocks__/mock-tab-pending-tasks.component.mjs +29 -0
- package/esm2022/lib/navigation/tabs/__mocks__/mock-tab.component.mjs +54 -0
- package/esm2022/lib/navigation/tabs/__mocks__/mock-tabs-page-leave-handler.component.mjs +25 -0
- package/esm2022/lib/navigation/tabs/__mocks__/mock-tabs.component.mjs +43 -0
- package/esm2022/lib/navigation/tabs/__mocks__/mock-tabs.module.mjs +48 -0
- package/esm2022/lib/navigation/tabs/interfaces/tabs.interface.mjs +2 -0
- package/esm2022/lib/navigation/tabs/services/tabs.service.mjs +72 -0
- package/esm2022/lib/navigation/tabs/tab/tab.component.mjs +135 -0
- package/esm2022/lib/navigation/tabs/tab-action/tab-action.component.mjs +33 -0
- package/esm2022/lib/navigation/tabs/tab-item/tab-item.component.mjs +92 -0
- package/esm2022/lib/navigation/tabs/tab-pending-tasks/tab-pending-tasks.component.mjs +36 -0
- package/esm2022/lib/navigation/tabs/tabs/tabs.component.mjs +245 -0
- package/esm2022/lib/navigation/tabs/tabs.module.mjs +51 -0
- package/esm2022/lib/navigation-tiles/__mocks__/mock-navigation-tile.component.mjs +21 -0
- package/esm2022/lib/navigation-tiles/__mocks__/mock-navigation-tiles.component.mjs +14 -0
- package/esm2022/lib/navigation-tiles/__mocks__/mock-navigation-tiles.module.mjs +18 -0
- package/esm2022/lib/navigation-tiles/navigation-tile/navigation-tile.component.mjs +42 -0
- package/esm2022/lib/navigation-tiles/navigation-tiles/navigation-tiles.component.mjs +23 -0
- package/esm2022/lib/navigation-tiles/navigation-tiles.module.mjs +22 -0
- package/esm2022/lib/notifications/__mocks__/mock-notification.component.mjs +29 -0
- package/esm2022/lib/notifications/__mocks__/mock-notification.content.component.mjs +15 -0
- package/esm2022/lib/notifications/__mocks__/mock-notifications-service.service.mjs +32 -0
- package/esm2022/lib/notifications/__mocks__/mock-notifications.component.mjs +17 -0
- package/esm2022/lib/notifications/__mocks__/mock-notifications.module.mjs +24 -0
- package/esm2022/lib/notifications/directives/snackbar-listener.directive.mjs +70 -0
- package/esm2022/lib/notifications/interfaces/notifications.mjs +2 -0
- package/esm2022/lib/notifications/notification/notification.component.mjs +547 -0
- package/esm2022/lib/notifications/notification-content/notification-content.component.mjs +14 -0
- package/esm2022/lib/notifications/notifications/notifications.component.mjs +35 -0
- package/esm2022/lib/notifications/notifications.module.mjs +47 -0
- package/esm2022/lib/notifications/services/notifications-http-interceptor.service.mjs +111 -0
- package/esm2022/lib/notifications/services/notifications-service.service.mjs +122 -0
- package/esm2022/lib/notifications/services/os-notifications/desktop-notifications.service.mjs +85 -0
- package/esm2022/lib/notifications/services/os-notifications/os-notifications.service.mjs +29 -0
- package/esm2022/lib/notifications/services/snackbar.service.mjs +65 -0
- package/esm2022/lib/notifications/snackbar/snackbar.component.mjs +25 -0
- package/esm2022/lib/page/__mocks__/mock-page-footer.component.mjs +14 -0
- package/esm2022/lib/page/__mocks__/mock-page-header.component.mjs +14 -0
- package/esm2022/lib/page/__mocks__/mock-page.component.mjs +19 -0
- package/esm2022/lib/page/__mocks__/mock-page.module.mjs +21 -0
- package/esm2022/lib/page/cancel-confirmation-dialog/page-cancel-confirmation-dialog.component.mjs +38 -0
- package/esm2022/lib/page/control-panel/page-control-panel.component.mjs +55 -0
- package/esm2022/lib/page/footer/page-footer-custom-content.directive.mjs +25 -0
- package/esm2022/lib/page/footer/page-footer.component.mjs +30 -0
- package/esm2022/lib/page/info-banner/page-info-banner.component.mjs +124 -0
- package/esm2022/lib/page/model/page-config.interface.mjs +2 -0
- package/esm2022/lib/page/model/page-control-panel-config.interface.mjs +2 -0
- package/esm2022/lib/page/model/page-footer-action.interface.mjs +9 -0
- package/esm2022/lib/page/model/page-header-facet.interface.mjs +2 -0
- package/esm2022/lib/page/model/page-info-banner.interface.mjs +2 -0
- package/esm2022/lib/page/model/page-object-resolver.mjs +6 -0
- package/esm2022/lib/page/object-header/context-select-dialog/context-select-dialog.component.mjs +95 -0
- package/esm2022/lib/page/object-header/dynamic-facet/dynamic-facet.component.mjs +53 -0
- package/esm2022/lib/page/object-header/dynamic-facet/dynamic-facet.directive.mjs +17 -0
- package/esm2022/lib/page/object-header/dynamic-facets.service.mjs +38 -0
- package/esm2022/lib/page/object-header/facets/crititcality-facet/criticality-facet.component.mjs +29 -0
- package/esm2022/lib/page/object-header/facets/date-facet/date-facet.component.mjs +22 -0
- package/esm2022/lib/page/object-header/facets/multi-select-facet/multi-select-facet.component.mjs +27 -0
- package/esm2022/lib/page/object-header/facets/progress-facet/progress-facet.component.mjs +21 -0
- package/esm2022/lib/page/object-header/facets/references-facet/references-facet.component.mjs +22 -0
- package/esm2022/lib/page/object-header/facets/single-select-facet/single-select-facet.component.mjs +27 -0
- package/esm2022/lib/page/object-header/facets/status-facet/status-facet.component.mjs +25 -0
- package/esm2022/lib/page/object-header/facets/value-facet/value-facet.component.mjs +21 -0
- package/esm2022/lib/page/object-header/page-object-header.component.mjs +307 -0
- package/esm2022/lib/page/page.component.mjs +632 -0
- package/esm2022/lib/page/page.module.mjs +168 -0
- package/esm2022/lib/page/shared/directives/connect-form-state-to-page.directive.mjs +91 -0
- package/esm2022/lib/page/shared/services/context.service.mjs +75 -0
- package/esm2022/lib/page/shared/services/form-group-manager.service.mjs +180 -0
- package/esm2022/lib/page/shared/services/page-footer.service.mjs +54 -0
- package/esm2022/lib/page/shared/services/page-store.service.mjs +33 -0
- package/esm2022/lib/page/shared/services/page-submit-action.service.mjs +69 -0
- package/esm2022/lib/page/shared/services/resolver-trigger.service.mjs +57 -0
- package/esm2022/lib/page-stepper/adaptors/page-stepper-adapter.directive.mjs +66 -0
- package/esm2022/lib/page-stepper/cancel-dialog/page-stepper-cancel-dialog.component.mjs +50 -0
- package/esm2022/lib/page-stepper/header/page-step-header.component.mjs +60 -0
- package/esm2022/lib/page-stepper/model/page-step-resolver.token.mjs +3 -0
- package/esm2022/lib/page-stepper/model/page-step.resolver.mjs +2 -0
- package/esm2022/lib/page-stepper/model/qd-page-stepper-config.mjs +2 -0
- package/esm2022/lib/page-stepper/page-step/page-step.component.mjs +79 -0
- package/esm2022/lib/page-stepper/page-stepper.component.mjs +295 -0
- package/esm2022/lib/page-stepper/page-stepper.module.mjs +61 -0
- package/esm2022/lib/page-tabs/adaptors/page-tabs-adapter.directive.mjs +68 -0
- package/esm2022/lib/page-tabs/model/page-tabs-config.mjs +2 -0
- package/esm2022/lib/page-tabs/model/page-tabs-selection-event.mjs +2 -0
- package/esm2022/lib/page-tabs/page-tab/page-tab.component.mjs +84 -0
- package/esm2022/lib/page-tabs/page-tab-header/counter/page-tab-header-counters.component.mjs +33 -0
- package/esm2022/lib/page-tabs/page-tab-header/page-tab-header.component.mjs +57 -0
- package/esm2022/lib/page-tabs/page-tabs.component.mjs +314 -0
- package/esm2022/lib/page-tabs/page-tabs.module.mjs +54 -0
- package/esm2022/lib/panel-section/actions/panel-section-actions.component.mjs +61 -0
- package/esm2022/lib/panel-section/model/panel-section-config.interface.mjs +2 -0
- package/esm2022/lib/panel-section/model/panel-section-status-config.interface.mjs +2 -0
- package/esm2022/lib/panel-section/model/panel-section-text-paragraph-config.interface.mjs +2 -0
- package/esm2022/lib/panel-section/panel-section.component.mjs +98 -0
- package/esm2022/lib/panel-section/panel-section.module.mjs +41 -0
- package/esm2022/lib/panel-section/services/panel-section-action.service.mjs +18 -0
- package/esm2022/lib/panel-section/status/panel-section-status.component.mjs +23 -0
- package/esm2022/lib/panel-section/text-paragraph/panel-section-text-paragraph.component.mjs +19 -0
- package/esm2022/lib/place-holder/__mocks__/mock-place-holder.component.mjs +19 -0
- package/esm2022/lib/place-holder/__mocks__/mock-place-holder.module.mjs +17 -0
- package/esm2022/lib/place-holder/place-holder/place-holder.component.mjs +21 -0
- package/esm2022/lib/place-holder/place-holder.module.mjs +19 -0
- package/esm2022/lib/progress-bar/__mocks__/mock-indeterminate-progress-bar.component.mjs +15 -0
- package/esm2022/lib/progress-bar/__mocks__/mock-percentage-progress-bar.component.mjs +28 -0
- package/esm2022/lib/progress-bar/__mocks__/mock-progress-bar.module.mjs +19 -0
- package/esm2022/lib/progress-bar/indeterminate/indeterminate-progress-bar.component.mjs +14 -0
- package/esm2022/lib/progress-bar/percentage/percentage-progress-bar.component.mjs +51 -0
- package/esm2022/lib/progress-bar/progress-bar.module.mjs +21 -0
- package/esm2022/lib/qd-ui-mock.module.mjs +149 -0
- package/esm2022/lib/qd-ui.module.mjs +233 -0
- package/esm2022/lib/quick-edit/model/quick-edit-config.mjs +2 -0
- package/esm2022/lib/quick-edit/model/quick-edit-data.mjs +2 -0
- package/esm2022/lib/quick-edit/qd-ng-for.directive.mjs +58 -0
- package/esm2022/lib/quick-edit/quick-edit.component.mjs +391 -0
- package/esm2022/lib/quick-edit/quick-edit.module.mjs +62 -0
- package/esm2022/lib/search/__mocks__/mock-search.component.mjs +19 -0
- package/esm2022/lib/search/__mocks__/mock-search.module.mjs +19 -0
- package/esm2022/lib/search/helpers/search-update.helper.mjs +19 -0
- package/esm2022/lib/search/model/search-options.interface.mjs +2 -0
- package/esm2022/lib/search/model/search-post-body.mjs +2 -0
- package/esm2022/lib/search/model/search-store.interface.mjs +2 -0
- package/esm2022/lib/search/search.component.mjs +209 -0
- package/esm2022/lib/search/search.module.mjs +45 -0
- package/esm2022/lib/search/services/search-router-connector.service.mjs +109 -0
- package/esm2022/lib/search/services/search-store.service.mjs +34 -0
- package/esm2022/lib/search/services/search.service.mjs +106 -0
- package/esm2022/lib/search/store/search.actions.mjs +10 -0
- package/esm2022/lib/search/store/search.reducer.mjs +10 -0
- package/esm2022/lib/search/store/search.selector.mjs +8 -0
- package/esm2022/lib/section/__mocks__/mock-section-toolbar.component.mjs +19 -0
- package/esm2022/lib/section/__mocks__/mock-section.component.mjs +19 -0
- package/esm2022/lib/section/__mocks__/mock-section.module.mjs +20 -0
- package/esm2022/lib/section/adaptors/section-adapter.directive.mjs +66 -0
- package/esm2022/lib/section/connectors/table/connector-table-context.directive.mjs +150 -0
- package/esm2022/lib/section/connectors/table/connector-table-filter.directive.mjs +97 -0
- package/esm2022/lib/section/connectors/table/connector-table-search.directive.mjs +91 -0
- package/esm2022/lib/section/model/section-config.interface.mjs +2 -0
- package/esm2022/lib/section/model/toolbar-components.interface.mjs +2 -0
- package/esm2022/lib/section/section.component.mjs +185 -0
- package/esm2022/lib/section/section.module.mjs +77 -0
- package/esm2022/lib/section/services/section-toolbar-action.service.mjs +18 -0
- package/esm2022/lib/section/services/toolbar-components.service.mjs +17 -0
- package/esm2022/lib/section/toolbar/action/section-toolbar-action.component.mjs +158 -0
- package/esm2022/lib/section/toolbar/section-toolbar.component.mjs +59 -0
- package/esm2022/lib/shell/__mocks__/mock-counter-badge.component.mjs +14 -0
- package/esm2022/lib/shell/__mocks__/mock-header-widget-desktop.component.mjs +37 -0
- package/esm2022/lib/shell/__mocks__/mock-header-widget-mobile.component.mjs +37 -0
- package/esm2022/lib/shell/__mocks__/mock-shell-footer.component.mjs +14 -0
- package/esm2022/lib/shell/__mocks__/mock-shell-header-banner.component.mjs +14 -0
- package/esm2022/lib/shell/__mocks__/mock-shell-header-search.component.mjs +14 -0
- package/esm2022/lib/shell/__mocks__/mock-shell-header-widget.component.mjs +18 -0
- package/esm2022/lib/shell/__mocks__/mock-shell-header.component.mjs +19 -0
- package/esm2022/lib/shell/__mocks__/mock-shell-toolbar-item.component.mjs +19 -0
- package/esm2022/lib/shell/__mocks__/mock-shell-toolbar.component.mjs +14 -0
- package/esm2022/lib/shell/__mocks__/mock-shell.component.mjs +19 -0
- package/esm2022/lib/shell/__mocks__/mock-shell.module.mjs +69 -0
- package/esm2022/lib/shell/footer/shell-footer.component.mjs +24 -0
- package/esm2022/lib/shell/header/banner/shell-header-banner.component.mjs +33 -0
- package/esm2022/lib/shell/header/counter-badge/counter-badge.component.mjs +18 -0
- package/esm2022/lib/shell/header/search/shell-header-search.component.mjs +16 -0
- package/esm2022/lib/shell/header/service-navigation/shell-service-navigation.component.mjs +156 -0
- package/esm2022/lib/shell/header/service-navigation/shell-service-navigation.module.mjs +19 -0
- package/esm2022/lib/shell/header/shell-header.component.mjs +193 -0
- package/esm2022/lib/shell/header/toolbar/shell-toolbar.component.mjs +20 -0
- package/esm2022/lib/shell/header/toolbar/toolbar-item/shell-toolbar-item.component.mjs +25 -0
- package/esm2022/lib/shell/header/widget/shell-header-widget.component.mjs +115 -0
- package/esm2022/lib/shell/left/navigation/link/shell-left-navigation-link.component.mjs +27 -0
- package/esm2022/lib/shell/left/navigation/shell-left-navigation.component.mjs +17 -0
- package/esm2022/lib/shell/left/shell-left.component.mjs +29 -0
- package/esm2022/lib/shell/model/default-config.mjs +8 -0
- package/esm2022/lib/shell/model/eportal.interface.mjs +2 -0
- package/esm2022/lib/shell/model/route-data.interface.mjs +2 -0
- package/esm2022/lib/shell/model/shell-config.interface.mjs +2 -0
- package/esm2022/lib/shell/model/shell-footer-copyright-info.interface.mjs +2 -0
- package/esm2022/lib/shell/model/shell-header-widget-config.interface.mjs +2 -0
- package/esm2022/lib/shell/model/shell-navigation-config.interface.mjs +2 -0
- package/esm2022/lib/shell/model/shell-service-navigation-config.interface.mjs +2 -0
- package/esm2022/lib/shell/model/shell-toolbar-config.interface.mjs +2 -0
- package/esm2022/lib/shell/right/notification/shell-notification.component.mjs +95 -0
- package/esm2022/lib/shell/right/notifications/shell-notifications.component.mjs +25 -0
- package/esm2022/lib/shell/right/shell-right.component.mjs +56 -0
- package/esm2022/lib/shell/right/toolbar/shell-right-toolbar.component.mjs +28 -0
- package/esm2022/lib/shell/services/banner.service.mjs +27 -0
- package/esm2022/lib/shell/services/eportal-language.service.mjs +44 -0
- package/esm2022/lib/shell/services/navigation.service.mjs +60 -0
- package/esm2022/lib/shell/services/pams-environment.service.mjs +22 -0
- package/esm2022/lib/shell/services/service-navigation.service.mjs +208 -0
- package/esm2022/lib/shell/services/shell-header-minimization.service.mjs +37 -0
- package/esm2022/lib/shell/services/shell-header-widget.service.mjs +178 -0
- package/esm2022/lib/shell/services/shell-left.service.mjs +27 -0
- package/esm2022/lib/shell/services/shell-right.service.mjs +46 -0
- package/esm2022/lib/shell/shell.component.mjs +199 -0
- package/esm2022/lib/shell/shell.module.mjs +134 -0
- package/esm2022/lib/spinner/spinner.component.mjs +11 -0
- package/esm2022/lib/spinner/spinner.module.mjs +19 -0
- package/esm2022/lib/status-indicator/__mocks__/mock-status-indicator-cpation.component.mjs +14 -0
- package/esm2022/lib/status-indicator/__mocks__/mock-status-indicator-item.component.mjs +22 -0
- package/esm2022/lib/status-indicator/__mocks__/mock-status-indicator.component.mjs +33 -0
- package/esm2022/lib/status-indicator/__mocks__/mock-status-indicator.module.mjs +27 -0
- package/esm2022/lib/status-indicator/interfaces/status-indicator.interface.mjs +2 -0
- package/esm2022/lib/status-indicator/status-indicator/status-indicator.component.mjs +48 -0
- package/esm2022/lib/status-indicator/status-indicator-caption/status-indicator-caption.component.mjs +14 -0
- package/esm2022/lib/status-indicator/status-indicator-item/status-indicator-item.component.mjs +45 -0
- package/esm2022/lib/status-indicator/status-indicator.module.mjs +21 -0
- package/esm2022/lib/table/__mocks__/mock-sort.component.mjs +29 -0
- package/esm2022/lib/table/__mocks__/mock-table-body-plain.component.mjs +27 -0
- package/esm2022/lib/table/__mocks__/mock-table-body-tree.component.mjs +27 -0
- package/esm2022/lib/table/__mocks__/mock-table-data-blank.component.mjs +15 -0
- package/esm2022/lib/table/__mocks__/mock-table-data-boolean.component.mjs +19 -0
- package/esm2022/lib/table/__mocks__/mock-table-data-date.component.mjs +23 -0
- package/esm2022/lib/table/__mocks__/mock-table-data-integer.component.mjs +19 -0
- package/esm2022/lib/table/__mocks__/mock-table-data-link.component.mjs +29 -0
- package/esm2022/lib/table/__mocks__/mock-table-data-progress.component.mjs +19 -0
- package/esm2022/lib/table/__mocks__/mock-table-data-text.component.mjs +26 -0
- package/esm2022/lib/table/__mocks__/mock-table-empty-state.component.mjs +22 -0
- package/esm2022/lib/table/__mocks__/mock-table-head.component.mjs +24 -0
- package/esm2022/lib/table/__mocks__/mock-table-paginator-page-size.directive.mjs +18 -0
- package/esm2022/lib/table/__mocks__/mock-table-paginator.component.mjs +24 -0
- package/esm2022/lib/table/__mocks__/mock-table.component.mjs +33 -0
- package/esm2022/lib/table/__mocks__/mock-table.module.mjs +63 -0
- package/esm2022/lib/table/body/table-body.component.mjs +57 -0
- package/esm2022/lib/table/empty-state/table-empty-state.component.mjs +34 -0
- package/esm2022/lib/table/head/table-head.component.mjs +65 -0
- package/esm2022/lib/table/helpers/spring-tools.mjs +20 -0
- package/esm2022/lib/table/model/connectors-state.enum.mjs +7 -0
- package/esm2022/lib/table/model/paginator-direction.enum.mjs +8 -0
- package/esm2022/lib/table/model/sort-direction.enum.mjs +7 -0
- package/esm2022/lib/table/model/table-config-actions.interface.mjs +2 -0
- package/esm2022/lib/table/model/table-config-content.interface.mjs +2 -0
- package/esm2022/lib/table/model/table-config.interface.mjs +2 -0
- package/esm2022/lib/table/model/table-data-resolver.mjs +10 -0
- package/esm2022/lib/table/model/table-data-resolver.token.mjs +6 -0
- package/esm2022/lib/table/model/table-data.interface.mjs +2 -0
- package/esm2022/lib/table/model/table-row-selection.interface.mjs +2 -0
- package/esm2022/lib/table/model/table-store.interface.mjs +2 -0
- package/esm2022/lib/table/paginator/page-size/table-paginator-page-size.component.mjs +104 -0
- package/esm2022/lib/table/paginator/page-size/table-paginator-page-size.directive.mjs +53 -0
- package/esm2022/lib/table/paginator/scroll-to-pagination.directive.mjs +77 -0
- package/esm2022/lib/table/paginator/table-paginator.component.mjs +128 -0
- package/esm2022/lib/table/row/actions/secondary/menu/table-row-actions-secondary-menu.component.mjs +94 -0
- package/esm2022/lib/table/row/selection/table-row-selection.component.mjs +49 -0
- package/esm2022/lib/table/row/table-row.component.mjs +102 -0
- package/esm2022/lib/table/services/empty-state.service.mjs +25 -0
- package/esm2022/lib/table/services/external-action-result.service.mjs +16 -0
- package/esm2022/lib/table/services/filling-width.service.mjs +174 -0
- package/esm2022/lib/table/services/resolver.service.mjs +82 -0
- package/esm2022/lib/table/services/responsive-row.service.mjs +106 -0
- package/esm2022/lib/table/services/row-selection.service.mjs +60 -0
- package/esm2022/lib/table/services/secondary-actions.service.mjs +18 -0
- package/esm2022/lib/table/sort/table-sort.component.mjs +126 -0
- package/esm2022/lib/table/store/table-store-selector.service.mjs +123 -0
- package/esm2022/lib/table/store/table-store.service.mjs +138 -0
- package/esm2022/lib/table/store/table-update.helper.mjs +81 -0
- package/esm2022/lib/table/store/table.actions.mjs +40 -0
- package/esm2022/lib/table/store/table.reducer.mjs +21 -0
- package/esm2022/lib/table/table.component.mjs +472 -0
- package/esm2022/lib/table/table.module.mjs +105 -0
- package/esm2022/lib/text-section/__mocks__/mock-text-section-headline.component.mjs +14 -0
- package/esm2022/lib/text-section/__mocks__/mock-text-section-paragraph.component.mjs +14 -0
- package/esm2022/lib/text-section/__mocks__/mock-text-section.component.mjs +14 -0
- package/esm2022/lib/text-section/__mocks__/mock-text-section.module.mjs +19 -0
- package/esm2022/lib/text-section/text-section-headline/text-section-headline.component.mjs +16 -0
- package/esm2022/lib/text-section/text-section-paragraph/text-section-paragraph.component.mjs +16 -0
- package/esm2022/lib/text-section/text-section.component.mjs +28 -0
- package/esm2022/lib/text-section/text-section.module.mjs +21 -0
- package/esm2022/lib/tiles/__mocks__/mock-tile-button-list.component.mjs +14 -0
- package/esm2022/lib/tiles/__mocks__/mock-tile-text-list-item.component.mjs +14 -0
- package/esm2022/lib/tiles/__mocks__/mock-tile-text-list.component.mjs +14 -0
- package/esm2022/lib/tiles/__mocks__/mock-tile-title.component.mjs +14 -0
- package/esm2022/lib/tiles/__mocks__/mock-tile.component.mjs +18 -0
- package/esm2022/lib/tiles/__mocks__/mock-tiles-container-title.component.mjs +14 -0
- package/esm2022/lib/tiles/__mocks__/mock-tiles-container.component.mjs +18 -0
- package/esm2022/lib/tiles/__mocks__/mock-tiles.module.mjs +51 -0
- package/esm2022/lib/tiles/model/tile-config.mjs +2 -0
- package/esm2022/lib/tiles/model/tiles-config.mjs +2 -0
- package/esm2022/lib/tiles/tile/tile.component.mjs +42 -0
- package/esm2022/lib/tiles/tile-button-list/tile-button-list.component.mjs +15 -0
- package/esm2022/lib/tiles/tile-text-list/tile-text-list.component.mjs +11 -0
- package/esm2022/lib/tiles/tile-text-list-item/tile-text-list-item.component.mjs +11 -0
- package/esm2022/lib/tiles/tile-title/tile-title.component.mjs +11 -0
- package/esm2022/lib/tiles/tiles-title/tiles-title.component.mjs +11 -0
- package/esm2022/lib/tiles/tiles.component.mjs +22 -0
- package/esm2022/lib/tiles/tiles.module.mjs +55 -0
- package/esm2022/lib/tree/body/tree-body.component.mjs +46 -0
- package/esm2022/lib/tree/empty-state/tree-empty-state.component.mjs +34 -0
- package/esm2022/lib/tree/error/grouped-indices-not-consecutive.error.mjs +7 -0
- package/esm2022/lib/tree/head/tree-head.component.mjs +64 -0
- package/esm2022/lib/tree/model/tree-column-detail.interface.mjs +2 -0
- package/esm2022/lib/tree/model/tree-config-actions.interface.mjs +2 -0
- package/esm2022/lib/tree/model/tree-config.interface.mjs +2 -0
- package/esm2022/lib/tree/model/tree-data.interface.mjs +2 -0
- package/esm2022/lib/tree/row/actions/secondary/menu/tree-row-actions-secondary-menu.component.mjs +98 -0
- package/esm2022/lib/tree/row/tree-row.component.mjs +85 -0
- package/esm2022/lib/tree/services/row-expander.service.mjs +117 -0
- package/esm2022/lib/tree/services/tree-group.service.mjs +87 -0
- package/esm2022/lib/tree/services/tree-rows.service.mjs +151 -0
- package/esm2022/lib/tree/tree.component.mjs +244 -0
- package/esm2022/lib/tree/tree.module.mjs +80 -0
- package/esm2022/public-api.mjs +79 -0
- package/esm2022/quadrel-ui-qd-ui.mjs +5 -0
- package/fesm2022/quadrel-ui-qd-ui.mjs +37960 -0
- package/fesm2022/quadrel-ui-qd-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/button/__mocks__/mock-button-grid.component.d.ts +5 -0
- package/lib/button/__mocks__/mock-button-stack-button.component.d.ts +7 -0
- package/lib/button/__mocks__/mock-button-stack.component.d.ts +5 -0
- package/lib/button/__mocks__/mock-button.component.d.ts +10 -0
- package/lib/button/__mocks__/mock-button.directives.d.ts +9 -0
- package/lib/button/__mocks__/mock-button.module.d.ts +20 -0
- package/lib/button/__mocks__/mock-icon-button.component.d.ts +7 -0
- package/lib/button/button/additional-info/button-additional-info.component.d.ts +14 -0
- package/lib/button/button/button.component.d.ts +40 -0
- package/lib/button/button-grid/button-grid.component.d.ts +10 -0
- package/lib/button/button-stack/button-stack-button/button-stack-button.component.d.ts +23 -0
- package/lib/button/button-stack/button-stack-container/button-stack.component.d.ts +16 -0
- package/lib/button/button.module.d.ts +31 -0
- package/lib/button/directives/button.directives.d.ts +24 -0
- package/lib/button/icon-button/icon-button.component.d.ts +25 -0
- package/lib/button/menu-button/menu-button.component.d.ts +57 -0
- package/lib/button/model/button-config.d.ts +75 -0
- package/lib/button/model/button.types.d.ts +1 -0
- package/lib/chips/__mocks__/mock-chip.component.d.ts +14 -0
- package/lib/chips/__mocks__/mock-chips.module.d.ts +10 -0
- package/lib/chips/chip/chip.component.d.ts +42 -0
- package/lib/chips/chips.module.d.ts +12 -0
- package/lib/chips/interfaces/chip.interface.d.ts +2 -0
- package/lib/comments/add-comment/add-comment-dialog.component.d.ts +29 -0
- package/lib/comments/comments.component.d.ts +21 -0
- package/lib/comments/comments.module.d.ts +22 -0
- package/lib/comments/menu/comment-menu.component.d.ts +8 -0
- package/lib/comments/model/comments.interface.d.ts +192 -0
- package/lib/comments/pipes/stripe-html.pipe.d.ts +7 -0
- package/lib/contact-card/__mocks__/mock-contact-card.component.d.ts +7 -0
- package/lib/contact-card/__mocks__/mock-contact-card.module.d.ts +10 -0
- package/lib/contact-card/contact-card.component.d.ts +166 -0
- package/lib/contact-card/contact-card.module.d.ts +16 -0
- package/lib/contact-card/menu/contact-card-menu.component.d.ts +31 -0
- package/lib/contact-card/model/contact-card-actions-config.interface.d.ts +43 -0
- package/lib/contact-card/model/contact-data.interface.d.ts +162 -0
- package/lib/container/__mocks__/mock-action-footer.component.d.ts +5 -0
- package/lib/container/__mocks__/mock-container-create-content.component.d.ts +9 -0
- package/lib/container/__mocks__/mock-container-create-default.component.d.ts +7 -0
- package/lib/container/__mocks__/mock-container-section.component.d.ts +7 -0
- package/lib/container/__mocks__/mock-container-toolbar-action.component.d.ts +16 -0
- package/lib/container/__mocks__/mock-container-toolbar-filter.component.d.ts +5 -0
- package/lib/container/__mocks__/mock-container-toolbar-title.component.d.ts +5 -0
- package/lib/container/__mocks__/mock-container-toolbar.component.d.ts +8 -0
- package/lib/container/__mocks__/mock-container.component.d.ts +17 -0
- package/lib/container/__mocks__/mock-container.module.d.ts +30 -0
- package/lib/container/__mocks__/mock-create-delete-alert.component.d.ts +7 -0
- package/lib/container/__mocks__/mock-form-group.component.d.ts +14 -0
- package/lib/container/container.component.d.ts +86 -0
- package/lib/container/container.module.d.ts +31 -0
- package/lib/container/model/container-type.d.ts +12 -0
- package/lib/container/model/toolbar.interface.d.ts +40 -0
- package/lib/container/section/container-section.component.d.ts +22 -0
- package/lib/container/section/header/container-section-header.component.d.ts +10 -0
- package/lib/container/section/info/container-section-info.component.d.ts +8 -0
- package/lib/container/services/container-action.service.d.ts +10 -0
- package/lib/container/services/container-layout.service.d.ts +20 -0
- package/lib/container/toolbar/action/container-toolbar-action.component.d.ts +45 -0
- package/lib/container/toolbar/container-toolbar.component.d.ts +26 -0
- package/lib/container/toolbar/filter/container-toolbar-filter.component.d.ts +11 -0
- package/lib/container/toolbar/title/container-toolbar-title.component.d.ts +10 -0
- package/lib/content-grid/__mocks__/mock-content-grid-column.d.ts +5 -0
- package/lib/content-grid/__mocks__/mock-content-grid-row.d.ts +5 -0
- package/lib/content-grid/__mocks__/mock-content-grid.d.ts +5 -0
- package/lib/content-grid/__mocks__/mock-content-grid.module.d.ts +13 -0
- package/lib/content-grid/content-grid/content-grid.component.d.ts +15 -0
- package/lib/content-grid/content-grid-column/content-grid-column.component.d.ts +11 -0
- package/lib/content-grid/content-grid-row/content-grid-row.component.d.ts +12 -0
- package/lib/content-grid/content-grid.module.d.ts +14 -0
- package/lib/core/__mocks__/mock-breakpoint.service.d.ts +5 -0
- package/lib/core/__mocks__/mock-core.module.d.ts +18 -0
- package/lib/core/__mocks__/mock-disabled.directive.d.ts +5 -0
- package/lib/core/__mocks__/mock-popover-on-click.directive.d.ts +33 -0
- package/lib/core/__mocks__/mock-rwd-disabled.directive.d.ts +5 -0
- package/lib/core/__mocks__/mock-translate.pipe.d.ts +7 -0
- package/lib/core/__mocks__/mock-visually-hidden.directive.d.ts +5 -0
- package/lib/core/autofocus/autofocus.directive.d.ts +13 -0
- package/lib/core/autofocus/autofocus.module.d.ts +8 -0
- package/lib/core/autofocus/autofocus.service.d.ts +8 -0
- package/lib/core/breadcrumbs/breadcrumbs.component.d.ts +124 -0
- package/lib/core/breadcrumbs/breadcrumbs.module.d.ts +11 -0
- package/lib/core/breadcrumbs/model/breadcrumbs.interface.d.ts +26 -0
- package/lib/core/breadcrumbs/services/breadcrumbs.service.d.ts +20 -0
- package/lib/core/breadcrumbs/services/dialog-breadcrumbs.service.d.ts +7 -0
- package/lib/core/core.module.d.ts +28 -0
- package/lib/core/data-facets/blank/data-facets-blank.component.d.ts +14 -0
- package/lib/core/data-facets/boolean/data-facets-boolean.component.d.ts +12 -0
- package/lib/core/data-facets/chip/data-facets-chip.component.d.ts +27 -0
- package/lib/core/data-facets/chip/data-facets-chip.interfaces.d.ts +43 -0
- package/lib/core/data-facets/chip/truncated-indicator/data-facets-chip-truncated-indicator.component.d.ts +30 -0
- package/lib/core/data-facets/chip/truncated-tooltip/data-facets-chip-truncated-tooltip.component.d.ts +38 -0
- package/lib/core/data-facets/currency/data-facets-currency.component.d.ts +26 -0
- package/lib/core/data-facets/currency/data-facets-currency.interfaces.d.ts +17 -0
- package/lib/core/data-facets/data-facets-context.service.d.ts +12 -0
- package/lib/core/data-facets/data-facets.model.d.ts +36 -0
- package/lib/core/data-facets/data-facets.module.d.ts +32 -0
- package/lib/core/data-facets/date/data-facets-date.component.d.ts +33 -0
- package/lib/core/data-facets/date/data-facets-date.interfaces.d.ts +47 -0
- package/lib/core/data-facets/icon/data-facets-icon.component.d.ts +12 -0
- package/lib/core/data-facets/integer/data-facets-integer.component.d.ts +12 -0
- package/lib/core/data-facets/link/data-facets-link.component.d.ts +24 -0
- package/lib/core/data-facets/link/data-facets-link.interfaces.d.ts +49 -0
- package/lib/core/data-facets/progress/data-facets-progress.component.d.ts +17 -0
- package/lib/core/data-facets/status/data-facets-status.component.d.ts +13 -0
- package/lib/core/data-facets/status/data-facets-status.interfaces.d.ts +14 -0
- package/lib/core/data-facets/text/data-facets-text.component.d.ts +19 -0
- package/lib/core/data-facets/text/data-facets-text.interfaces.d.ts +17 -0
- package/lib/core/disabled/disabled.directive.d.ts +5 -0
- package/lib/core/focusable/focusable.d.ts +9 -0
- package/lib/core/focusable/focusable.directive.d.ts +9 -0
- package/lib/core/focusable/focusable.module.d.ts +7 -0
- package/lib/core/focusable/focusable.token.d.ts +5 -0
- package/lib/core/model/app-enviroment.interface.d.ts +32 -0
- package/lib/core/model/app-enviroment.token.d.ts +4 -0
- package/lib/core/model/breakpoint.interface.d.ts +9 -0
- package/lib/core/model/translation.interface.d.ts +20 -0
- package/lib/core/pipes/file-size.pipe.d.ts +10 -0
- package/lib/core/pipes/placeholder.pipe.d.ts +7 -0
- package/lib/core/pipes/placeholders.pipe.d.ts +9 -0
- package/lib/core/pipes/sanitize-html.pipe.d.ts +10 -0
- package/lib/core/popover/popover/popover.component.d.ts +22 -0
- package/lib/core/popover/popover-on-click/popover-on-click.directive.d.ts +54 -0
- package/lib/core/popover/popover-on-hover/popover-on-hover.directive.d.ts +26 -0
- package/lib/core/popover/popover-parent.service.d.ts +7 -0
- package/lib/core/popover/popover-sizing.service.d.ts +62 -0
- package/lib/core/popover/popover-top-first.token.d.ts +2 -0
- package/lib/core/popover/popover.module.d.ts +10 -0
- package/lib/core/popover/popover.service.d.ts +11 -0
- package/lib/core/projection-guard/projection-guard.component.d.ts +13 -0
- package/lib/core/rwd-disabled/rwd-disabled.directive.d.ts +5 -0
- package/lib/core/rxjs/delay-and-hold.operator.d.ts +51 -0
- package/lib/core/services/breakpoint.service.d.ts +18 -0
- package/lib/core/services/element.service.d.ts +6 -0
- package/lib/core/services/event-broker.service.d.ts +55 -0
- package/lib/core/services/push-events.service.d.ts +77 -0
- package/lib/core/services/scrolling.service.d.ts +14 -0
- package/lib/core/services/translate.service.d.ts +15 -0
- package/lib/core/tools/constantCase.tools.d.ts +1 -0
- package/lib/core/tools/convertPxToRem.tools.d.ts +1 -0
- package/lib/core/tooltip/model/tooltip-content.interface.d.ts +17 -0
- package/lib/core/tooltip/tooltip/tooltip.component.d.ts +9 -0
- package/lib/core/tooltip/tooltip-at-intersection/tooltip-at-intersection.directive.d.ts +36 -0
- package/lib/core/tooltip/tooltip-on-tap-hover/tooltip-on-click.directive.d.ts +23 -0
- package/lib/core/tooltip/tooltip.module.d.ts +11 -0
- package/lib/core/types/utility.types.d.ts +2 -0
- package/lib/core/visually-hidden/visually-hidden.directive.d.ts +5 -0
- package/lib/dialog/action/dialog-action.component.d.ts +5 -0
- package/lib/dialog/auth-session-end/dialog-auth-session-end.component.d.ts +15 -0
- package/lib/dialog/confirmation/dialog-confirmation.component.d.ts +121 -0
- package/lib/dialog/dialog.component.d.ts +60 -0
- package/lib/dialog/dialog.module.d.ts +36 -0
- package/lib/dialog/models/confirmation.model.d.ts +116 -0
- package/lib/dialog/models/dialog-config.model.d.ts +50 -0
- package/lib/dialog/models/record-stepper.model.d.ts +25 -0
- package/lib/dialog/models/session-end-result.model.d.ts +13 -0
- package/lib/dialog/page-dialog-with-breadcrumbs/page-dialog-with-breadcrumbs.component.d.ts +5 -0
- package/lib/dialog/record-stepper/dialog-record-stepper.component.d.ts +33 -0
- package/lib/dialog/services/dialog-auth-session-end.service.d.ts +20 -0
- package/lib/dialog/services/dialog.service.d.ts +49 -0
- package/lib/file-collector/__mocks__/mock-file-collector-dialog-item-error.component.d.ts +7 -0
- package/lib/file-collector/__mocks__/mock-file-collector-dialog-item-progress.component.d.ts +7 -0
- package/lib/file-collector/__mocks__/mock-file-collector-dialog-item.component.d.ts +10 -0
- package/lib/file-collector/__mocks__/mock-file-collector-item-name.component.d.ts +7 -0
- package/lib/file-collector/__mocks__/mock-file-collector-item-size.component.d.ts +7 -0
- package/lib/file-collector/__mocks__/mock-file-collector-item-tools.component.d.ts +13 -0
- package/lib/file-collector/__mocks__/mock-file-collector-item.component.d.ts +15 -0
- package/lib/file-collector/__mocks__/mock-file-collector.component.d.ts +5 -0
- package/lib/file-collector/__mocks__/mock-file-collector.module.d.ts +17 -0
- package/lib/file-collector/allowed-files-description/file-collector-allowed-files-description.component.d.ts +13 -0
- package/lib/file-collector/dialog/file-collector-dialog.component.d.ts +17 -0
- package/lib/file-collector/dialog/item/error/file-collector-dialog-item-error.component.d.ts +15 -0
- package/lib/file-collector/dialog/item/file-collector-dialog-item.component.d.ts +13 -0
- package/lib/file-collector/dialog/item/progress/file-collector-dialog-item-progress.component.d.ts +21 -0
- package/lib/file-collector/file-collector.component.d.ts +131 -0
- package/lib/file-collector/file-collector.module.d.ts +36 -0
- package/lib/file-collector/file-delete-dialog/file-delete-dialog.component.d.ts +13 -0
- package/lib/file-collector/item/file-collector-item.component.d.ts +15 -0
- package/lib/file-collector/item/name/file-collector-item-name.component.d.ts +6 -0
- package/lib/file-collector/item/size/file-collector-item-size.component.d.ts +6 -0
- package/lib/file-collector/item/tools/file-collector-item-tools.component.d.ts +23 -0
- package/lib/file-collector/item/upload-timestamp/upload-timestamp.component.d.ts +6 -0
- package/lib/file-collector/models/collected-file.d.ts +32 -0
- package/lib/file-collector/models/file-collector-config.d.ts +75 -0
- package/lib/file-collector/models/file-manager-token.d.ts +2 -0
- package/lib/file-collector/models/file-manager.d.ts +17 -0
- package/lib/file-collector/models/file-type.d.ts +6 -0
- package/lib/file-collector/models/file-upload.d.ts +14 -0
- package/lib/file-collector/models/upload-progress.d.ts +32 -0
- package/lib/file-collector/pipes/filesize.pipe.d.ts +9 -0
- package/lib/file-collector/pipes/upload-timestamp.pipe.d.ts +10 -0
- package/lib/file-collector/services/file-collector-validation.service.d.ts +13 -0
- package/lib/file-collector/services/file-collector.service.d.ts +21 -0
- package/lib/file-collector/services/file-type.service.d.ts +10 -0
- package/lib/filter/__mocks__/mock-filter-category-boolean.d.ts +9 -0
- package/lib/filter/__mocks__/mock-filter-category-date-range.d.ts +11 -0
- package/lib/filter/__mocks__/mock-filter-category-date.d.ts +11 -0
- package/lib/filter/__mocks__/mock-filter-category-free-text.d.ts +10 -0
- package/lib/filter/__mocks__/mock-filter-category-select.d.ts +9 -0
- package/lib/filter/__mocks__/mock-filter-category.d.ts +10 -0
- package/lib/filter/__mocks__/mock-filter-item-boolean.d.ts +11 -0
- package/lib/filter/__mocks__/mock-filter-item-date-range.d.ts +12 -0
- package/lib/filter/__mocks__/mock-filter-item-date.d.ts +12 -0
- package/lib/filter/__mocks__/mock-filter-item-free-text.d.ts +11 -0
- package/lib/filter/__mocks__/mock-filter-item-multi-select.d.ts +10 -0
- package/lib/filter/__mocks__/mock-filter-item-single-select.d.ts +10 -0
- package/lib/filter/__mocks__/mock-filter.d.ts +10 -0
- package/lib/filter/__mocks__/mock-filter.module.d.ts +37 -0
- package/lib/filter/__mocks__/mock-filter.service.d.ts +35 -0
- package/lib/filter/__mocks__/mock-localeDate.pipe.d.ts +8 -0
- package/lib/filter/category/boolean/filter-category-boolean.component.d.ts +15 -0
- package/lib/filter/category/date/filter-category-date.component.d.ts +26 -0
- package/lib/filter/category/date-range/filter-category-date-range.component.d.ts +31 -0
- package/lib/filter/category/filter-category.component.d.ts +35 -0
- package/lib/filter/category/free-text/filter-category-free-text.component.d.ts +21 -0
- package/lib/filter/category/select/filter-category-select.component.d.ts +34 -0
- package/lib/filter/filter-service/filter.service.d.ts +54 -0
- package/lib/filter/filter.component.d.ts +122 -0
- package/lib/filter/filter.module.d.ts +36 -0
- package/lib/filter/helpers/filter-active-items.helper.d.ts +3 -0
- package/lib/filter/helpers/filter-active.helper.d.ts +3 -0
- package/lib/filter/helpers/filter-get.helper.d.ts +12 -0
- package/lib/filter/helpers/filter-postbody.helper.d.ts +3 -0
- package/lib/filter/helpers/filter-query-parser.helper.d.ts +2 -0
- package/lib/filter/helpers/filter-query.helper.d.ts +8 -0
- package/lib/filter/helpers/filter-selection-validator.helper.d.ts +2 -0
- package/lib/filter/helpers/filter-state.helpers.d.ts +10 -0
- package/lib/filter/helpers/filter-update.helper.d.ts +12 -0
- package/lib/filter/item/boolean/filter-item-boolean.component.d.ts +21 -0
- package/lib/filter/item/date/filter-item-date.component.d.ts +24 -0
- package/lib/filter/item/date-range/filter-item-date-range.component.d.ts +31 -0
- package/lib/filter/item/free-text/filter-item-free-text.component.d.ts +25 -0
- package/lib/filter/item/multi-select/filter-item-multi-select.component.d.ts +21 -0
- package/lib/filter/item/single-select/filter-item-single-select.component.d.ts +24 -0
- package/lib/filter/model/filter-config.interface.d.ts +83 -0
- package/lib/filter/model/filter-post-body.interface.d.ts +8 -0
- package/lib/filter/model/filter-reducer.interface.d.ts +4 -0
- package/lib/filter/model/filter-state.interface.d.ts +12 -0
- package/lib/filter/model/filter-types.interface.d.ts +1 -0
- package/lib/filter/pipes/localeDate.pipe.d.ts +15 -0
- package/lib/filter/services/dependent-filters.service.d.ts +19 -0
- package/lib/filter/services/filter-rest-param.tools.d.ts +22 -0
- package/lib/filter/services/filter-router-connector.service.d.ts +23 -0
- package/lib/filter/store/filter.actions.d.ts +91 -0
- package/lib/filter/store/filter.reducer.d.ts +3 -0
- package/lib/filter/store/filter.selector.d.ts +128 -0
- package/lib/forms/__mocks__/mock-calendar.component.d.ts +11 -0
- package/lib/forms/__mocks__/mock-checkbox-chips-item.component.d.ts +8 -0
- package/lib/forms/__mocks__/mock-checkbox-chips.component.d.ts +10 -0
- package/lib/forms/__mocks__/mock-checkbox.component.d.ts +14 -0
- package/lib/forms/__mocks__/mock-checkboxes.component.d.ts +11 -0
- package/lib/forms/__mocks__/mock-datepicker.component.d.ts +12 -0
- package/lib/forms/__mocks__/mock-dropdown.component.d.ts +15 -0
- package/lib/forms/__mocks__/mock-filter-form-items.component.d.ts +8 -0
- package/lib/forms/__mocks__/mock-form-error.component.d.ts +7 -0
- package/lib/forms/__mocks__/mock-form-group-error.component.d.ts +8 -0
- package/lib/forms/__mocks__/mock-form-hint.component.d.ts +10 -0
- package/lib/forms/__mocks__/mock-form-label.component.d.ts +12 -0
- package/lib/forms/__mocks__/mock-form-readonly.component.d.ts +8 -0
- package/lib/forms/__mocks__/mock-form-viewonly.component.d.ts +8 -0
- package/lib/forms/__mocks__/mock-forms.module.d.ts +48 -0
- package/lib/forms/__mocks__/mock-input.component.d.ts +25 -0
- package/lib/forms/__mocks__/mock-pin-code.component.d.ts +21 -0
- package/lib/forms/__mocks__/mock-radio-buttons.component.d.ts +14 -0
- package/lib/forms/__mocks__/mock-switch.component.d.ts +19 -0
- package/lib/forms/__mocks__/mock-switches.component.d.ts +19 -0
- package/lib/forms/__mocks__/mock-textarea.component.d.ts +19 -0
- package/lib/forms/checkbox-chips/checkbox-chips.component.d.ts +116 -0
- package/lib/forms/checkbox-chips/item/checkbox-chips-item.component.d.ts +10 -0
- package/lib/forms/checkbox-chips/services/checkbox-chips.service.d.ts +10 -0
- package/lib/forms/checkboxes/checkbox/checkbox.component.d.ts +24 -0
- package/lib/forms/checkboxes/checkboxes-service/checkboxes.service.d.ts +23 -0
- package/lib/forms/checkboxes/checkboxes.component.d.ts +135 -0
- package/lib/forms/datepicker/adapter/date-adapter.d.ts +55 -0
- package/lib/forms/datepicker/calendar/calendar.component.d.ts +57 -0
- package/lib/forms/datepicker/datepicker.component.d.ts +158 -0
- package/lib/forms/datepicker/service/timepicker.service.d.ts +12 -0
- package/lib/forms/dropdown/dropdown.component.d.ts +186 -0
- package/lib/forms/dropdown/options/dropdown-options.component.d.ts +30 -0
- package/lib/forms/file-upload/file-upload.component.d.ts +164 -0
- package/lib/forms/file-upload/model/file-upload.model.d.ts +91 -0
- package/lib/forms/file-upload/services/file-upload.service.d.ts +13 -0
- package/lib/forms/forms/forms.component.d.ts +10 -0
- package/lib/forms/input/helpers/get-value-with-unit.d.ts +2 -0
- package/lib/forms/input/input.component.d.ts +334 -0
- package/lib/forms/input/options/input-options.component.d.ts +26 -0
- package/lib/forms/input/options/input-options.directive.d.ts +81 -0
- package/lib/forms/input/units/input-units.component.d.ts +21 -0
- package/lib/forms/model/datepicker.d.ts +35 -0
- package/lib/forms/model/form-options-resolver.d.ts +65 -0
- package/lib/forms/model/forms.interface.d.ts +520 -0
- package/lib/forms/model/options.interface.d.ts +84 -0
- package/lib/forms/model/radio-buttons.d.ts +6 -0
- package/lib/forms/multi-input/interfaces/multi-input-chip.interface.d.ts +1 -0
- package/lib/forms/multi-input/multi-input-chip/multi-input-chip.component.d.ts +26 -0
- package/lib/forms/multi-input/multi-input-menu/multi-input-menu.component.d.ts +35 -0
- package/lib/forms/multi-input/multi-input-service/multi-input.service.d.ts +27 -0
- package/lib/forms/multi-input/multi-input.component.d.ts +166 -0
- package/lib/forms/pin-code/pin-code-service/pin-code.service.d.ts +28 -0
- package/lib/forms/pin-code/pin-code.component.d.ts +154 -0
- package/lib/forms/qd-form.module.d.ts +72 -0
- package/lib/forms/radio-buttons/radio-buttons-service/radio-buttons.service.d.ts +16 -0
- package/lib/forms/radio-buttons/radio-buttons.component.d.ts +125 -0
- package/lib/forms/reactive-forms/controls/form-array-factory.service.d.ts +13 -0
- package/lib/forms/reactive-forms/controls/form-array.d.ts +236 -0
- package/lib/forms/reactive-forms/controls/form-builder.d.ts +98 -0
- package/lib/forms/reactive-forms/controls/form-control.d.ts +18 -0
- package/lib/forms/reactive-forms/controls/form-group.d.ts +3 -0
- package/lib/forms/richtext/richtext.component.d.ts +108 -0
- package/lib/forms/shared/components/filter-form-items/filter-form-items.component.d.ts +12 -0
- package/lib/forms/shared/components/form-error/form-error.component.d.ts +17 -0
- package/lib/forms/shared/components/form-hint/form-hint.component.d.ts +14 -0
- package/lib/forms/shared/components/form-input/form-input.component.d.ts +18 -0
- package/lib/forms/shared/components/form-label/form-label.component.d.ts +17 -0
- package/lib/forms/shared/components/form-readonly/form-readonly.component.d.ts +15 -0
- package/lib/forms/shared/components/form-viewonly/form-viewonly.component.d.ts +18 -0
- package/lib/forms/shared/helpers/forms-options.helpers.d.ts +5 -0
- package/lib/forms/shared/helpers/forms.helpers.d.ts +81 -0
- package/lib/forms/shared/helpers/has-validators.helpers.d.ts +2 -0
- package/lib/forms/shared/services/action-emitter.service.d.ts +12 -0
- package/lib/forms/shared/services/form-keyboard.service.d.ts +15 -0
- package/lib/forms/shared/services/form-options.service.d.ts +33 -0
- package/lib/forms/shared/services/options-resolver.registry.d.ts +11 -0
- package/lib/forms/shared/validators/validators.d.ts +126 -0
- package/lib/forms/switches/switch/switch.component.d.ts +27 -0
- package/lib/forms/switches/switches-service/switches.service.d.ts +14 -0
- package/lib/forms/switches/switches.component.d.ts +125 -0
- package/lib/forms/textarea/textarea.component.d.ts +118 -0
- package/lib/grid/__mocks__/mock-column.directive.d.ts +6 -0
- package/lib/grid/__mocks__/mock-columns.directive.d.ts +11 -0
- package/lib/grid/__mocks__/mock-grid.module.d.ts +11 -0
- package/lib/grid/directives/column-auto-fill.directive.d.ts +30 -0
- package/lib/grid/directives/column-break-before.directive.d.ts +30 -0
- package/lib/grid/directives/column-disable-responsive-colspans.directive.d.ts +35 -0
- package/lib/grid/directives/column-full-grid-width.directive.d.ts +31 -0
- package/lib/grid/directives/column-next-in-same-row.directive.d.ts +35 -0
- package/lib/grid/directives/column.directive.d.ts +49 -0
- package/lib/grid/directives/columns-disable-auto-fill.directive.d.ts +32 -0
- package/lib/grid/directives/columns-disable-responsive-colspans.directive.d.ts +30 -0
- package/lib/grid/directives/columns-max.directive.d.ts +35 -0
- package/lib/grid/directives/columns.directive.d.ts +43 -0
- package/lib/grid/grid.component.d.ts +31 -0
- package/lib/grid/grid.module.d.ts +34 -0
- package/lib/grid/model/grid-config.interface.d.ts +34 -0
- package/lib/grid/model/subgrid-config.interface.d.ts +27 -0
- package/lib/grid/services/grid-auto-fill.service.d.ts +39 -0
- package/lib/grid/services/grid.service.d.ts +12 -0
- package/lib/grid/subgrid/subgrid.component.d.ts +43 -0
- package/lib/helpers/html-plaintext.helper.d.ts +1 -0
- package/lib/helpers/language.helper.d.ts +1 -0
- package/lib/helpers/load-javascript-asset.helper.d.ts +1 -0
- package/lib/helpers/relative-time.helper.d.ts +3 -0
- package/lib/icon/__mocks__/mock-icon.component.d.ts +9 -0
- package/lib/icon/__mocks__/mock-icon.module.d.ts +9 -0
- package/lib/icon/custom-icons/logo.d.ts +1 -0
- package/lib/icon/icon/icon-definitions.d.ts +6 -0
- package/lib/icon/icon/icon.component.d.ts +28 -0
- package/lib/icon/icon.module.d.ts +10 -0
- package/lib/image/__mocks__/mock-image.component.d.ts +10 -0
- package/lib/image/__mocks__/mock-image.module.d.ts +9 -0
- package/lib/image/image/image.component.d.ts +63 -0
- package/lib/image/image.module.d.ts +12 -0
- package/lib/layout/__mocks__/mock-action-bar.component.d.ts +14 -0
- package/lib/layout/__mocks__/mock-active-content-tab.directive.d.ts +7 -0
- package/lib/layout/__mocks__/mock-button-enabled.directive.d.ts +7 -0
- package/lib/layout/__mocks__/mock-layout-container.component.d.ts +5 -0
- package/lib/layout/__mocks__/mock-layout-renderer.component.d.ts +13 -0
- package/lib/layout/__mocks__/mock-layout.module.d.ts +30 -0
- package/lib/layout/__mocks__/mock-page-process-header-title.component.d.ts +5 -0
- package/lib/layout/__mocks__/mock-page-process-header.component.d.ts +26 -0
- package/lib/layout/__mocks__/mock-page-title.component.d.ts +7 -0
- package/lib/layout/__mocks__/mock-panel-title.component.d.ts +7 -0
- package/lib/layout/__mocks__/mock-panel.component.d.ts +9 -0
- package/lib/layout/__mocks__/mock-truncated-text.directive.d.ts +12 -0
- package/lib/layout/action-bar/action-bar.component.d.ts +33 -0
- package/lib/layout/action-bar/button-enabled.directive.d.ts +25 -0
- package/lib/layout/container/container.component.d.ts +67 -0
- package/lib/layout/content/page-process-header/page-process-header/page-process-header.component.d.ts +101 -0
- package/lib/layout/content/page-process-header/page-process-header-title/page-process-header-title.component.d.ts +10 -0
- package/lib/layout/content/page-title/page-title.component.d.ts +22 -0
- package/lib/layout/directives/active-content-tab.directive.d.ts +21 -0
- package/lib/layout/directives/calculate-full-height.directive.d.ts +21 -0
- package/lib/layout/directives/viewport-adaptive.directive.d.ts +7 -0
- package/lib/layout/force-line-break/force-line-break.directive.d.ts +8 -0
- package/lib/layout/interfaces/process-list.d.ts +9 -0
- package/lib/layout/layout-renderer/layout-renderer.component.d.ts +26 -0
- package/lib/layout/layout.module.d.ts +49 -0
- package/lib/layout/modal-fullscreen-container/modal-fullscreen-container.component.d.ts +47 -0
- package/lib/layout/panel/container/panel.component.d.ts +29 -0
- package/lib/layout/panel/title/panel-title.component.d.ts +23 -0
- package/lib/layout/panel/types/panel-types.d.ts +5 -0
- package/lib/layout/service/layout.service.d.ts +24 -0
- package/lib/layout/service/panel.service.d.ts +13 -0
- package/lib/lists/__mocks__/mock-container-pairs-caption.component.d.ts +5 -0
- package/lib/lists/__mocks__/mock-container-pairs-container.component.d.ts +5 -0
- package/lib/lists/__mocks__/mock-container-pairs-header.component.d.ts +5 -0
- package/lib/lists/__mocks__/mock-container-pairs-item.component.d.ts +5 -0
- package/lib/lists/__mocks__/mock-container-pairs-value.component.d.ts +5 -0
- package/lib/lists/__mocks__/mock-list.module.d.ts +35 -0
- package/lib/lists/__mocks__/mock-status-error.component.d.ts +5 -0
- package/lib/lists/__mocks__/mock-status-pairs-caption.component.d.ts +5 -0
- package/lib/lists/__mocks__/mock-status-pairs-item.component.d.ts +5 -0
- package/lib/lists/__mocks__/mock-status-pairs-value.component.d.ts +5 -0
- package/lib/lists/__mocks__/mock-status-pairs.component.d.ts +5 -0
- package/lib/lists/__mocks__/mock-vertical-pairs-caption.component.d.ts +6 -0
- package/lib/lists/__mocks__/mock-vertical-pairs-item.component.d.ts +5 -0
- package/lib/lists/__mocks__/mock-vertical-pairs-value.component.d.ts +6 -0
- package/lib/lists/__mocks__/mock-vertical-pairs.component.d.ts +5 -0
- package/lib/lists/list.module.d.ts +45 -0
- package/lib/lists/model/list.interface.d.ts +5 -0
- package/lib/lists/pairs/container-pairs/container-pairs-caption/container-pairs-caption.component.d.ts +10 -0
- package/lib/lists/pairs/container-pairs/container-pairs-container/container-pairs-container.component.d.ts +24 -0
- package/lib/lists/pairs/container-pairs/container-pairs-header/container-pairs-header.component.d.ts +10 -0
- package/lib/lists/pairs/container-pairs/container-pairs-item/container-pairs-item.component.d.ts +11 -0
- package/lib/lists/pairs/container-pairs/container-pairs-value/container-pairs-value.component.d.ts +10 -0
- package/lib/lists/pairs/horizontal-pairs/horizontal-pairs-caption/horizontal-pairs-caption.component.d.ts +10 -0
- package/lib/lists/pairs/horizontal-pairs/horizontal-pairs-container/horizontal-pairs.component.d.ts +25 -0
- package/lib/lists/pairs/horizontal-pairs/horizontal-pairs-item/horizontal-pairs-item.component.d.ts +11 -0
- package/lib/lists/pairs/horizontal-pairs/horizontal-pairs-value/horizontal-pairs-value.component.d.ts +10 -0
- package/lib/lists/pairs/status-pairs/status-pairs-caption/status-pairs-caption.component.d.ts +10 -0
- package/lib/lists/pairs/status-pairs/status-pairs-container/status-pairs.component.d.ts +36 -0
- package/lib/lists/pairs/status-pairs/status-pairs-error/status-pairs-error.component.d.ts +16 -0
- package/lib/lists/pairs/status-pairs/status-pairs-item/status-pairs-item.component.d.ts +17 -0
- package/lib/lists/pairs/status-pairs/status-pairs-value/status-pairs-value.component.d.ts +10 -0
- package/lib/lists/pairs/vertical-pairs/vertical-pairs-caption/vertical-pairs-caption.component.d.ts +10 -0
- package/lib/lists/pairs/vertical-pairs/vertical-pairs-container/vertical-pairs.component.d.ts +25 -0
- package/lib/lists/pairs/vertical-pairs/vertical-pairs-item/vertical-pairs-item.component.d.ts +20 -0
- package/lib/lists/pairs/vertical-pairs/vertical-pairs-value/vertical-pairs-value.component.d.ts +10 -0
- package/lib/master-layout/__mocks__/mock-header-widget.component.d.ts +16 -0
- package/lib/master-layout/__mocks__/mock-master-layout-banner.component.d.ts +5 -0
- package/lib/master-layout/__mocks__/mock-master-layout-footer.component.d.ts +5 -0
- package/lib/master-layout/__mocks__/mock-master-layout-header.component.d.ts +15 -0
- package/lib/master-layout/__mocks__/mock-master-layout.component.d.ts +9 -0
- package/lib/master-layout/__mocks__/mock-master-layout.module.d.ts +18 -0
- package/lib/master-layout/header-widget/header-widget.component.d.ts +55 -0
- package/lib/master-layout/master-layout/master-layout.component.d.ts +48 -0
- package/lib/master-layout/master-layout-banner/master-layout-banner.component.d.ts +25 -0
- package/lib/master-layout/master-layout-footer/master-layout-footer.component.d.ts +10 -0
- package/lib/master-layout/master-layout-header/master-layout-header.component.d.ts +48 -0
- package/lib/master-layout/master-layout.module.d.ts +30 -0
- package/lib/master-layout/model/page-level.d.ts +5 -0
- package/lib/master-layout/model/service-navigation.d.ts +3 -0
- package/lib/master-layout/service/language-from-url.service.d.ts +14 -0
- package/lib/master-layout/service/master-layout.service.d.ts +16 -0
- package/lib/master-layout/service-navigation/service-navigation.component.d.ts +13 -0
- package/lib/navigation/stepper/__mocks__/mock-step-action.component.d.ts +16 -0
- package/lib/navigation/stepper/__mocks__/mock-step-item.component.d.ts +17 -0
- package/lib/navigation/stepper/__mocks__/mock-step.component.d.ts +18 -0
- package/lib/navigation/stepper/__mocks__/mock-stepper.component.d.ts +7 -0
- package/lib/navigation/stepper/__mocks__/mock-stepper.module.d.ts +16 -0
- package/lib/navigation/stepper/interfaces/stepper.d.ts +12 -0
- package/lib/navigation/stepper/step/step.component.d.ts +125 -0
- package/lib/navigation/stepper/step-action/step-action.component.d.ts +29 -0
- package/lib/navigation/stepper/step-item/step-item.component.d.ts +35 -0
- package/lib/navigation/stepper/stepper/stepper.component.d.ts +127 -0
- package/lib/navigation/stepper/stepper.module.d.ts +21 -0
- package/lib/navigation/tab-bar/__mocks__/mock-tab-bar.module.d.ts +12 -0
- package/lib/navigation/tab-bar/__mocks__/mock-tab-link.component.d.ts +7 -0
- package/lib/navigation/tab-bar/__mocks__/mock-tab-nav-bar.component.d.ts +5 -0
- package/lib/navigation/tab-bar/tab-bar.module.d.ts +13 -0
- package/lib/navigation/tab-bar/tab-link/tab-link.component.d.ts +26 -0
- package/lib/navigation/tab-bar/tab-nav-bar/tab-nav-bar.component.d.ts +11 -0
- package/lib/navigation/tabs/__mocks__/mock-tab-action.component.d.ts +11 -0
- package/lib/navigation/tabs/__mocks__/mock-tab-item.component.d.ts +17 -0
- package/lib/navigation/tabs/__mocks__/mock-tab-pending-tasks.component.d.ts +9 -0
- package/lib/navigation/tabs/__mocks__/mock-tab.component.d.ts +19 -0
- package/lib/navigation/tabs/__mocks__/mock-tabs-page-leave-handler.component.d.ts +7 -0
- package/lib/navigation/tabs/__mocks__/mock-tabs.component.d.ts +15 -0
- package/lib/navigation/tabs/__mocks__/mock-tabs.module.d.ts +20 -0
- package/lib/navigation/tabs/interfaces/tabs.interface.d.ts +27 -0
- package/lib/navigation/tabs/services/tabs.service.d.ts +25 -0
- package/lib/navigation/tabs/tab/tab.component.d.ts +79 -0
- package/lib/navigation/tabs/tab-action/tab-action.component.d.ts +16 -0
- package/lib/navigation/tabs/tab-item/tab-item.component.d.ts +34 -0
- package/lib/navigation/tabs/tab-pending-tasks/tab-pending-tasks.component.d.ts +21 -0
- package/lib/navigation/tabs/tabs/tabs.component.d.ts +81 -0
- package/lib/navigation/tabs/tabs.module.d.ts +22 -0
- package/lib/navigation-tiles/__mocks__/mock-navigation-tile.component.d.ts +7 -0
- package/lib/navigation-tiles/__mocks__/mock-navigation-tiles.component.d.ts +5 -0
- package/lib/navigation-tiles/__mocks__/mock-navigation-tiles.module.d.ts +11 -0
- package/lib/navigation-tiles/navigation-tile/navigation-tile.component.d.ts +22 -0
- package/lib/navigation-tiles/navigation-tiles/navigation-tiles.component.d.ts +17 -0
- package/lib/navigation-tiles/navigation-tiles.module.d.ts +14 -0
- package/lib/notifications/__mocks__/mock-notification.component.d.ts +10 -0
- package/lib/notifications/__mocks__/mock-notification.content.component.d.ts +5 -0
- package/lib/notifications/__mocks__/mock-notifications-service.service.d.ts +24 -0
- package/lib/notifications/__mocks__/mock-notifications.component.d.ts +6 -0
- package/lib/notifications/__mocks__/mock-notifications.module.d.ts +15 -0
- package/lib/notifications/directives/snackbar-listener.directive.d.ts +21 -0
- package/lib/notifications/interfaces/notifications.d.ts +119 -0
- package/lib/notifications/notification/notification.component.d.ts +498 -0
- package/lib/notifications/notification-content/notification-content.component.d.ts +8 -0
- package/lib/notifications/notifications/notifications.component.d.ts +19 -0
- package/lib/notifications/notifications.module.d.ts +23 -0
- package/lib/notifications/services/notifications-http-interceptor.service.d.ts +24 -0
- package/lib/notifications/services/notifications-service.service.d.ts +32 -0
- package/lib/notifications/services/os-notifications/desktop-notifications.service.d.ts +19 -0
- package/lib/notifications/services/os-notifications/os-notifications.service.d.ts +12 -0
- package/lib/notifications/services/snackbar.service.d.ts +20 -0
- package/lib/notifications/snackbar/snackbar.component.d.ts +15 -0
- package/lib/page/__mocks__/mock-page-footer.component.d.ts +5 -0
- package/lib/page/__mocks__/mock-page-header.component.d.ts +5 -0
- package/lib/page/__mocks__/mock-page.component.d.ts +6 -0
- package/lib/page/__mocks__/mock-page.module.d.ts +12 -0
- package/lib/page/cancel-confirmation-dialog/page-cancel-confirmation-dialog.component.d.ts +14 -0
- package/lib/page/control-panel/page-control-panel.component.d.ts +46 -0
- package/lib/page/footer/page-footer-custom-content.directive.d.ts +11 -0
- package/lib/page/footer/page-footer.component.d.ts +18 -0
- package/lib/page/info-banner/page-info-banner.component.d.ts +93 -0
- package/lib/page/model/page-config.interface.d.ts +494 -0
- package/lib/page/model/page-control-panel-config.interface.d.ts +23 -0
- package/lib/page/model/page-footer-action.interface.d.ts +45 -0
- package/lib/page/model/page-header-facet.interface.d.ts +85 -0
- package/lib/page/model/page-info-banner.interface.d.ts +28 -0
- package/lib/page/model/page-object-resolver.d.ts +48 -0
- package/lib/page/object-header/context-select-dialog/context-select-dialog.component.d.ts +34 -0
- package/lib/page/object-header/dynamic-facet/dynamic-facet.component.d.ts +21 -0
- package/lib/page/object-header/dynamic-facet/dynamic-facet.directive.d.ts +8 -0
- package/lib/page/object-header/dynamic-facets.service.d.ts +11 -0
- package/lib/page/object-header/facets/crititcality-facet/criticality-facet.component.d.ts +11 -0
- package/lib/page/object-header/facets/date-facet/date-facet.component.d.ts +9 -0
- package/lib/page/object-header/facets/multi-select-facet/multi-select-facet.component.d.ts +10 -0
- package/lib/page/object-header/facets/progress-facet/progress-facet.component.d.ts +9 -0
- package/lib/page/object-header/facets/references-facet/references-facet.component.d.ts +12 -0
- package/lib/page/object-header/facets/single-select-facet/single-select-facet.component.d.ts +10 -0
- package/lib/page/object-header/facets/status-facet/status-facet.component.d.ts +10 -0
- package/lib/page/object-header/facets/value-facet/value-facet.component.d.ts +9 -0
- package/lib/page/object-header/page-object-header.component.d.ts +79 -0
- package/lib/page/page.component.d.ts +445 -0
- package/lib/page/page.module.d.ts +52 -0
- package/lib/page/shared/directives/connect-form-state-to-page.directive.d.ts +47 -0
- package/lib/page/shared/services/context.service.d.ts +50 -0
- package/lib/page/shared/services/form-group-manager.service.d.ts +86 -0
- package/lib/page/shared/services/page-footer.service.d.ts +23 -0
- package/lib/page/shared/services/page-store.service.d.ts +15 -0
- package/lib/page/shared/services/page-submit-action.service.d.ts +22 -0
- package/lib/page/shared/services/resolver-trigger.service.d.ts +13 -0
- package/lib/page-stepper/adaptors/page-stepper-adapter.directive.d.ts +46 -0
- package/lib/page-stepper/cancel-dialog/page-stepper-cancel-dialog.component.d.ts +9 -0
- package/lib/page-stepper/header/page-step-header.component.d.ts +32 -0
- package/lib/page-stepper/model/page-step-resolver.token.d.ts +3 -0
- package/lib/page-stepper/model/page-step.resolver.d.ts +10 -0
- package/lib/page-stepper/model/qd-page-stepper-config.d.ts +86 -0
- package/lib/page-stepper/page-step/page-step.component.d.ts +32 -0
- package/lib/page-stepper/page-stepper.component.d.ts +62 -0
- package/lib/page-stepper/page-stepper.module.d.ts +26 -0
- package/lib/page-tabs/adaptors/page-tabs-adapter.directive.d.ts +48 -0
- package/lib/page-tabs/model/page-tabs-config.d.ts +125 -0
- package/lib/page-tabs/model/page-tabs-selection-event.d.ts +22 -0
- package/lib/page-tabs/page-tab/page-tab.component.d.ts +33 -0
- package/lib/page-tabs/page-tab-header/counter/page-tab-header-counters.component.d.ts +13 -0
- package/lib/page-tabs/page-tab-header/page-tab-header.component.d.ts +34 -0
- package/lib/page-tabs/page-tabs.component.d.ts +154 -0
- package/lib/page-tabs/page-tabs.module.d.ts +22 -0
- package/lib/panel-section/actions/panel-section-actions.component.d.ts +15 -0
- package/lib/panel-section/model/panel-section-config.interface.d.ts +68 -0
- package/lib/panel-section/model/panel-section-status-config.interface.d.ts +12 -0
- package/lib/panel-section/model/panel-section-text-paragraph-config.interface.d.ts +15 -0
- package/lib/panel-section/panel-section.component.d.ts +55 -0
- package/lib/panel-section/panel-section.module.d.ts +19 -0
- package/lib/panel-section/services/panel-section-action.service.d.ts +9 -0
- package/lib/panel-section/status/panel-section-status.component.d.ts +8 -0
- package/lib/panel-section/text-paragraph/panel-section-text-paragraph.component.d.ts +10 -0
- package/lib/place-holder/__mocks__/mock-place-holder.component.d.ts +6 -0
- package/lib/place-holder/__mocks__/mock-place-holder.module.d.ts +9 -0
- package/lib/place-holder/place-holder/place-holder.component.d.ts +11 -0
- package/lib/place-holder/place-holder.module.d.ts +10 -0
- package/lib/progress-bar/__mocks__/mock-indeterminate-progress-bar.component.d.ts +5 -0
- package/lib/progress-bar/__mocks__/mock-percentage-progress-bar.component.d.ts +8 -0
- package/lib/progress-bar/__mocks__/mock-progress-bar.module.d.ts +12 -0
- package/lib/progress-bar/indeterminate/indeterminate-progress-bar.component.d.ts +8 -0
- package/lib/progress-bar/percentage/percentage-progress-bar.component.d.ts +24 -0
- package/lib/progress-bar/progress-bar.module.d.ts +13 -0
- package/lib/qd-ui-mock.module.d.ts +33 -0
- package/lib/qd-ui.module.d.ts +47 -0
- package/lib/quick-edit/model/quick-edit-config.d.ts +171 -0
- package/lib/quick-edit/model/quick-edit-data.d.ts +13 -0
- package/lib/quick-edit/qd-ng-for.directive.d.ts +16 -0
- package/lib/quick-edit/quick-edit.component.d.ts +198 -0
- package/lib/quick-edit/quick-edit.module.d.ts +23 -0
- package/lib/search/__mocks__/mock-search.component.d.ts +7 -0
- package/lib/search/__mocks__/mock-search.module.d.ts +10 -0
- package/lib/search/helpers/search-update.helper.d.ts +4 -0
- package/lib/search/model/search-options.interface.d.ts +133 -0
- package/lib/search/model/search-post-body.d.ts +10 -0
- package/lib/search/model/search-store.interface.d.ts +10 -0
- package/lib/search/search.component.d.ts +84 -0
- package/lib/search/search.module.d.ts +18 -0
- package/lib/search/services/search-router-connector.service.d.ts +25 -0
- package/lib/search/services/search-store.service.d.ts +14 -0
- package/lib/search/services/search.service.d.ts +27 -0
- package/lib/search/store/search.actions.d.ts +25 -0
- package/lib/search/store/search.reducer.d.ts +3 -0
- package/lib/search/store/search.selector.d.ts +14 -0
- package/lib/section/__mocks__/mock-section-toolbar.component.d.ts +6 -0
- package/lib/section/__mocks__/mock-section.component.d.ts +6 -0
- package/lib/section/__mocks__/mock-section.module.d.ts +11 -0
- package/lib/section/adaptors/section-adapter.directive.d.ts +46 -0
- package/lib/section/connectors/table/connector-table-context.directive.d.ts +122 -0
- package/lib/section/connectors/table/connector-table-filter.directive.d.ts +52 -0
- package/lib/section/connectors/table/connector-table-search.directive.d.ts +51 -0
- package/lib/section/model/section-config.interface.d.ts +243 -0
- package/lib/section/model/toolbar-components.interface.d.ts +27 -0
- package/lib/section/section.component.d.ts +115 -0
- package/lib/section/section.module.d.ts +28 -0
- package/lib/section/services/section-toolbar-action.service.d.ts +10 -0
- package/lib/section/services/toolbar-components.service.d.ts +9 -0
- package/lib/section/toolbar/action/section-toolbar-action.component.d.ts +35 -0
- package/lib/section/toolbar/section-toolbar.component.d.ts +23 -0
- package/lib/shell/__mocks__/mock-counter-badge.component.d.ts +5 -0
- package/lib/shell/__mocks__/mock-header-widget-desktop.component.d.ts +15 -0
- package/lib/shell/__mocks__/mock-header-widget-mobile.component.d.ts +15 -0
- package/lib/shell/__mocks__/mock-shell-footer.component.d.ts +5 -0
- package/lib/shell/__mocks__/mock-shell-header-banner.component.d.ts +5 -0
- package/lib/shell/__mocks__/mock-shell-header-search.component.d.ts +5 -0
- package/lib/shell/__mocks__/mock-shell-header-widget.component.d.ts +6 -0
- package/lib/shell/__mocks__/mock-shell-header.component.d.ts +6 -0
- package/lib/shell/__mocks__/mock-shell-toolbar-item.component.d.ts +6 -0
- package/lib/shell/__mocks__/mock-shell-toolbar.component.d.ts +5 -0
- package/lib/shell/__mocks__/mock-shell.component.d.ts +6 -0
- package/lib/shell/__mocks__/mock-shell.module.d.ts +28 -0
- package/lib/shell/footer/shell-footer.component.d.ts +10 -0
- package/lib/shell/header/banner/shell-header-banner.component.d.ts +11 -0
- package/lib/shell/header/counter-badge/counter-badge.component.d.ts +9 -0
- package/lib/shell/header/search/shell-header-search.component.d.ts +7 -0
- package/lib/shell/header/service-navigation/shell-service-navigation.component.d.ts +43 -0
- package/lib/shell/header/service-navigation/shell-service-navigation.module.d.ts +8 -0
- package/lib/shell/header/shell-header.component.d.ts +71 -0
- package/lib/shell/header/toolbar/shell-toolbar.component.d.ts +10 -0
- package/lib/shell/header/toolbar/toolbar-item/shell-toolbar-item.component.d.ts +11 -0
- package/lib/shell/header/widget/shell-header-widget.component.d.ts +33 -0
- package/lib/shell/left/navigation/link/shell-left-navigation-link.component.d.ts +8 -0
- package/lib/shell/left/navigation/shell-left-navigation.component.d.ts +7 -0
- package/lib/shell/left/shell-left.component.d.ts +11 -0
- package/lib/shell/model/default-config.d.ts +2 -0
- package/lib/shell/model/eportal.interface.d.ts +19 -0
- package/lib/shell/model/route-data.interface.d.ts +2 -0
- package/lib/shell/model/shell-config.interface.d.ts +80 -0
- package/lib/shell/model/shell-footer-copyright-info.interface.d.ts +15 -0
- package/lib/shell/model/shell-header-widget-config.interface.d.ts +307 -0
- package/lib/shell/model/shell-navigation-config.interface.d.ts +24 -0
- package/lib/shell/model/shell-service-navigation-config.interface.d.ts +341 -0
- package/lib/shell/model/shell-toolbar-config.interface.d.ts +21 -0
- package/lib/shell/right/notification/shell-notification.component.d.ts +31 -0
- package/lib/shell/right/notifications/shell-notifications.component.d.ts +13 -0
- package/lib/shell/right/shell-right.component.d.ts +19 -0
- package/lib/shell/right/toolbar/shell-right-toolbar.component.d.ts +12 -0
- package/lib/shell/services/banner.service.d.ts +11 -0
- package/lib/shell/services/eportal-language.service.d.ts +14 -0
- package/lib/shell/services/navigation.service.d.ts +23 -0
- package/lib/shell/services/pams-environment.service.d.ts +8 -0
- package/lib/shell/services/service-navigation.service.d.ts +58 -0
- package/lib/shell/services/shell-header-minimization.service.d.ts +18 -0
- package/lib/shell/services/shell-header-widget.service.d.ts +33 -0
- package/lib/shell/services/shell-left.service.d.ts +15 -0
- package/lib/shell/services/shell-right.service.d.ts +23 -0
- package/lib/shell/shell.component.d.ts +102 -0
- package/lib/shell/shell.module.d.ts +33 -0
- package/lib/spinner/spinner.component.d.ts +5 -0
- package/lib/spinner/spinner.module.d.ts +10 -0
- package/lib/status-indicator/__mocks__/mock-status-indicator-cpation.component.d.ts +5 -0
- package/lib/status-indicator/__mocks__/mock-status-indicator-item.component.d.ts +8 -0
- package/lib/status-indicator/__mocks__/mock-status-indicator.component.d.ts +11 -0
- package/lib/status-indicator/__mocks__/mock-status-indicator.module.d.ts +14 -0
- package/lib/status-indicator/interfaces/status-indicator.interface.d.ts +8 -0
- package/lib/status-indicator/status-indicator/status-indicator.component.d.ts +27 -0
- package/lib/status-indicator/status-indicator-caption/status-indicator-caption.component.d.ts +8 -0
- package/lib/status-indicator/status-indicator-item/status-indicator-item.component.d.ts +20 -0
- package/lib/status-indicator/status-indicator.module.d.ts +12 -0
- package/lib/table/__mocks__/mock-sort.component.d.ts +9 -0
- package/lib/table/__mocks__/mock-table-body-plain.component.d.ts +8 -0
- package/lib/table/__mocks__/mock-table-body-tree.component.d.ts +8 -0
- package/lib/table/__mocks__/mock-table-data-blank.component.d.ts +5 -0
- package/lib/table/__mocks__/mock-table-data-boolean.component.d.ts +6 -0
- package/lib/table/__mocks__/mock-table-data-date.component.d.ts +7 -0
- package/lib/table/__mocks__/mock-table-data-integer.component.d.ts +6 -0
- package/lib/table/__mocks__/mock-table-data-link.component.d.ts +9 -0
- package/lib/table/__mocks__/mock-table-data-progress.component.d.ts +6 -0
- package/lib/table/__mocks__/mock-table-data-text.component.d.ts +8 -0
- package/lib/table/__mocks__/mock-table-empty-state.component.d.ts +8 -0
- package/lib/table/__mocks__/mock-table-head.component.d.ts +7 -0
- package/lib/table/__mocks__/mock-table-paginator-page-size.directive.d.ts +6 -0
- package/lib/table/__mocks__/mock-table-paginator.component.d.ts +7 -0
- package/lib/table/__mocks__/mock-table.component.d.ts +14 -0
- package/lib/table/__mocks__/mock-table.module.d.ts +24 -0
- package/lib/table/body/table-body.component.d.ts +22 -0
- package/lib/table/empty-state/table-empty-state.component.d.ts +12 -0
- package/lib/table/head/table-head.component.d.ts +24 -0
- package/lib/table/helpers/spring-tools.d.ts +5 -0
- package/lib/table/model/connectors-state.enum.d.ts +5 -0
- package/lib/table/model/paginator-direction.enum.d.ts +6 -0
- package/lib/table/model/sort-direction.enum.d.ts +5 -0
- package/lib/table/model/table-config-actions.interface.d.ts +164 -0
- package/lib/table/model/table-config-content.interface.d.ts +199 -0
- package/lib/table/model/table-config.interface.d.ts +261 -0
- package/lib/table/model/table-data-resolver.d.ts +75 -0
- package/lib/table/model/table-data-resolver.token.d.ts +5 -0
- package/lib/table/model/table-data.interface.d.ts +78 -0
- package/lib/table/model/table-row-selection.interface.d.ts +11 -0
- package/lib/table/model/table-store.interface.d.ts +54 -0
- package/lib/table/paginator/page-size/table-paginator-page-size.component.d.ts +36 -0
- package/lib/table/paginator/page-size/table-paginator-page-size.directive.d.ts +22 -0
- package/lib/table/paginator/scroll-to-pagination.directive.d.ts +27 -0
- package/lib/table/paginator/table-paginator.component.d.ts +43 -0
- package/lib/table/row/actions/secondary/menu/table-row-actions-secondary-menu.component.d.ts +34 -0
- package/lib/table/row/selection/table-row-selection.component.d.ts +17 -0
- package/lib/table/row/table-row.component.d.ts +34 -0
- package/lib/table/services/empty-state.service.d.ts +12 -0
- package/lib/table/services/external-action-result.service.d.ts +8 -0
- package/lib/table/services/filling-width.service.d.ts +38 -0
- package/lib/table/services/resolver.service.d.ts +25 -0
- package/lib/table/services/responsive-row.service.d.ts +27 -0
- package/lib/table/services/row-selection.service.d.ts +24 -0
- package/lib/table/services/secondary-actions.service.d.ts +10 -0
- package/lib/table/sort/table-sort.component.d.ts +38 -0
- package/lib/table/store/table-store-selector.service.d.ts +47 -0
- package/lib/table/store/table-store.service.d.ts +64 -0
- package/lib/table/store/table-update.helper.d.ts +22 -0
- package/lib/table/store/table.actions.d.ts +153 -0
- package/lib/table/store/table.reducer.d.ts +3 -0
- package/lib/table/table.component.d.ts +248 -0
- package/lib/table/table.module.d.ts +42 -0
- package/lib/text-section/__mocks__/mock-text-section-headline.component.d.ts +5 -0
- package/lib/text-section/__mocks__/mock-text-section-paragraph.component.d.ts +5 -0
- package/lib/text-section/__mocks__/mock-text-section.component.d.ts +5 -0
- package/lib/text-section/__mocks__/mock-text-section.module.d.ts +13 -0
- package/lib/text-section/text-section-headline/text-section-headline.component.d.ts +10 -0
- package/lib/text-section/text-section-paragraph/text-section-paragraph.component.d.ts +10 -0
- package/lib/text-section/text-section.component.d.ts +22 -0
- package/lib/text-section/text-section.module.d.ts +14 -0
- package/lib/tiles/__mocks__/mock-tile-button-list.component.d.ts +5 -0
- package/lib/tiles/__mocks__/mock-tile-text-list-item.component.d.ts +5 -0
- package/lib/tiles/__mocks__/mock-tile-text-list.component.d.ts +5 -0
- package/lib/tiles/__mocks__/mock-tile-title.component.d.ts +5 -0
- package/lib/tiles/__mocks__/mock-tile.component.d.ts +6 -0
- package/lib/tiles/__mocks__/mock-tiles-container-title.component.d.ts +5 -0
- package/lib/tiles/__mocks__/mock-tiles-container.component.d.ts +6 -0
- package/lib/tiles/__mocks__/mock-tiles.module.d.ts +21 -0
- package/lib/tiles/model/tile-config.d.ts +24 -0
- package/lib/tiles/model/tiles-config.d.ts +9 -0
- package/lib/tiles/tile/tile.component.d.ts +22 -0
- package/lib/tiles/tile-button-list/tile-button-list.component.d.ts +5 -0
- package/lib/tiles/tile-text-list/tile-text-list.component.d.ts +5 -0
- package/lib/tiles/tile-text-list-item/tile-text-list-item.component.d.ts +5 -0
- package/lib/tiles/tile-title/tile-title.component.d.ts +5 -0
- package/lib/tiles/tiles-title/tiles-title.component.d.ts +5 -0
- package/lib/tiles/tiles.component.d.ts +13 -0
- package/lib/tiles/tiles.module.d.ts +26 -0
- package/lib/tree/body/tree-body.component.d.ts +22 -0
- package/lib/tree/empty-state/tree-empty-state.component.d.ts +12 -0
- package/lib/tree/error/grouped-indices-not-consecutive.error.d.ts +3 -0
- package/lib/tree/head/tree-head.component.d.ts +24 -0
- package/lib/tree/model/tree-column-detail.interface.d.ts +52 -0
- package/lib/tree/model/tree-config-actions.interface.d.ts +57 -0
- package/lib/tree/model/tree-config.interface.d.ts +237 -0
- package/lib/tree/model/tree-data.interface.d.ts +43 -0
- package/lib/tree/row/actions/secondary/menu/tree-row-actions-secondary-menu.component.d.ts +32 -0
- package/lib/tree/row/tree-row.component.d.ts +27 -0
- package/lib/tree/services/row-expander.service.d.ts +53 -0
- package/lib/tree/services/tree-group.service.d.ts +27 -0
- package/lib/tree/services/tree-rows.service.d.ts +29 -0
- package/lib/tree/tree.component.d.ts +114 -0
- package/lib/tree/tree.module.d.ts +28 -0
- package/package.json +14 -7
- package/public-api.d.ts +80 -0
- package/src/assets/i18n/de.json +483 -0
- package/src/assets/i18n/en.json +414 -0
- package/src/assets/i18n/fr.json +336 -0
- package/src/assets/i18n/it.json +336 -0
- package/src/assets/styles/components/_components.all.scss +11 -0
- package/src/assets/styles/components/_components.button.scss +213 -0
- package/src/assets/styles/components/_components.chips.scss +205 -0
- package/src/assets/styles/components/_components.datePicker.scss +204 -0
- package/src/assets/styles/components/_components.dialog.scss +31 -0
- package/src/assets/styles/components/_components.grid.scss +37 -0
- package/src/assets/styles/components/_components.master-layout.scss +97 -0
- package/src/assets/styles/components/_components.menuPanel.scss +49 -0
- package/src/assets/styles/components/_components.paginator.scss +43 -0
- package/src/assets/styles/components/_components.radio-button.scss +17 -0
- package/src/assets/styles/components/_components.table.scss +230 -0
- package/src/assets/styles/components/forms/_components.forms.all.scss +8 -0
- package/src/assets/styles/components/forms/_components.forms.dropdown.scss +19 -0
- package/src/assets/styles/components/forms/_components.forms.inputFields.scss +260 -0
- package/src/assets/styles/components/forms/_components.forms.selectBox.scss +245 -0
- package/src/assets/styles/components/forms/_components.forms.textField.scss +126 -0
- package/src/assets/styles/elements/_elements.all.scss +1 -0
- package/src/assets/styles/generic/_generic.all.scss +6 -0
- package/src/assets/styles/generic/_generic.checkbox.scss +1 -0
- package/src/assets/styles/generic/_generic.fonts.scss +7 -0
- package/src/assets/styles/generic/_generic.layout.scss +19 -0
- package/src/assets/styles/generic/_generic.material.scss +0 -0
- package/src/assets/styles/generic/_generic.normalize.scss +356 -0
- package/src/assets/styles/generic/_generic.resetButton.scss +6 -0
- package/src/assets/styles/index.scss +9 -0
- package/src/assets/styles/objects/_objects.a11y.scss +24 -0
- package/src/assets/styles/objects/_objects.all.scss +3 -0
- package/src/assets/styles/objects/_objects.forceLineBreak.scss +7 -0
- package/src/assets/styles/objects/_objects.hasTooltip.scss +3 -0
- package/src/assets/styles/settings/_setting.all.scss +13 -0
- package/src/assets/styles/settings/_settings.colors.scss +50 -0
- package/src/assets/styles/settings/_settings.fonts.scss +39 -0
- package/src/assets/styles/settings/_settings.formFields.scss +4 -0
- package/src/assets/styles/settings/_settings.globalVars.scss +18 -0
- package/src/assets/styles/settings/_settings.grid.scss +43 -0
- package/src/assets/styles/settings/_settings.horizontalSpacing.scss +5 -0
- package/src/assets/styles/settings/_settings.iconFont.scss +4 -0
- package/src/assets/styles/settings/_settings.layoutHeader.scss +15 -0
- package/src/assets/styles/settings/_settings.material.scss +98 -0
- package/src/assets/styles/settings/_settings.page.scss +4 -0
- package/src/assets/styles/settings/_settings.shell.scss +6 -0
- package/src/assets/styles/settings/_settings.variables.scss +17 -0
- package/src/assets/styles/settings/_settings.verticalRythm.scss +6 -0
- package/src/assets/styles/tools/_tools.all.scss +15 -0
- package/src/assets/styles/tools/_tools.boxShadowOverlay.scss +6 -0
- package/src/assets/styles/tools/_tools.breakpoints.scss +117 -0
- package/src/assets/styles/tools/_tools.colorMapper.scss +21 -0
- package/src/assets/styles/tools/_tools.convertPxToRem.scss +60 -0
- package/src/assets/styles/tools/_tools.fonts.scss +51 -0
- package/src/assets/styles/tools/_tools.getBaseFontSize.scss +15 -0
- package/src/assets/styles/tools/_tools.grid.scss +163 -0
- package/src/assets/styles/tools/_tools.layoutHeader.scss +15 -0
- package/src/assets/styles/tools/_tools.layoutWidth.scss +18 -0
- package/src/assets/styles/tools/_tools.mixins.scss +99 -0
- package/src/assets/styles/tools/_tools.overlayBackdrop.scss +12 -0
- package/src/assets/styles/tools/_tools.rwdDisabled.scss +33 -0
- package/src/assets/styles/tools/_tools.text.scss +19 -0
- package/src/assets/styles/tools/_tools.toolTip.scss +17 -0
- package/src/assets/styles/utilities/_utilities.all.scss +1 -0
- package/src/assets/styles/utilities/_utilities.display.scss +3 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
2
|
+
import isEqual from 'lodash/isEqual';
|
|
3
|
+
import { first, Subject, switchMap } from 'rxjs';
|
|
4
|
+
import { distinctUntilChanged, filter, map, takeUntil, tap } from 'rxjs/operators';
|
|
5
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import { QdTableConnectorState } from '../model/connectors-state.enum';
|
|
7
|
+
import { QdTableRequestState } from '../model/table-data-resolver';
|
|
8
|
+
import { QD_TABLE_DATA_RESOLVER_TOKEN } from '../model/table-data-resolver.token';
|
|
9
|
+
import { QdTableStoreService } from '../store/table-store.service';
|
|
10
|
+
import { QdTableExternalActionResultService } from './external-action-result.service';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "../store/table-store.service";
|
|
13
|
+
import * as i2 from "@ngx-translate/core";
|
|
14
|
+
import * as i3 from "./external-action-result.service";
|
|
15
|
+
export class QdTableResolverService {
|
|
16
|
+
tableDataResolver;
|
|
17
|
+
tableStoreService;
|
|
18
|
+
translateService;
|
|
19
|
+
actionResultService;
|
|
20
|
+
_destroyed$ = new Subject();
|
|
21
|
+
_refreshSubscription;
|
|
22
|
+
constructor(tableDataResolver, tableStoreService, translateService, actionResultService) {
|
|
23
|
+
this.tableDataResolver = tableDataResolver;
|
|
24
|
+
this.tableStoreService = tableStoreService;
|
|
25
|
+
this.translateService = translateService;
|
|
26
|
+
this.actionResultService = actionResultService;
|
|
27
|
+
this.subscribeToExternalRefresh();
|
|
28
|
+
}
|
|
29
|
+
ngOnDestroy() {
|
|
30
|
+
this._destroyed$.complete();
|
|
31
|
+
}
|
|
32
|
+
init(refreshOnLanguageChange) {
|
|
33
|
+
if (!this.tableDataResolver)
|
|
34
|
+
return;
|
|
35
|
+
if (refreshOnLanguageChange)
|
|
36
|
+
this.subscribeToLangChanges();
|
|
37
|
+
// TODO: Add Error handling
|
|
38
|
+
this.tableStoreService
|
|
39
|
+
.selectDataResolutionCriteria$()
|
|
40
|
+
.pipe(takeUntil(this._destroyed$), distinctUntilChanged(isEqual), filter(resolutionCriteria => this.shouldDataBeResolved(resolutionCriteria)), map(({ tableParams, connectorParams }) => ({ ...tableParams, ...connectorParams })), tap(() => this.tableStoreService.setRequestState(QdTableRequestState.PENDING)), switchMap(resolutionParams => this.tableDataResolver.resolve(resolutionParams)), tap(({ data, size, page, totalElements }) => this.tableStoreService.setPage(page, size, totalElements, data)), tap(() => this.tableStoreService.setRequestState(QdTableRequestState.SUCCESS)))
|
|
41
|
+
.subscribe();
|
|
42
|
+
}
|
|
43
|
+
refresh(resolverOptions = {}) {
|
|
44
|
+
if (!this.tableDataResolver)
|
|
45
|
+
return console.warn('QD-UI | QdTable - Refresh skipped: resolver not provided.');
|
|
46
|
+
const { pageIndex } = resolverOptions;
|
|
47
|
+
if (this._refreshSubscription)
|
|
48
|
+
this._refreshSubscription.unsubscribe();
|
|
49
|
+
this._refreshSubscription = this.tableStoreService
|
|
50
|
+
.selectDataResolutionCriteria$()
|
|
51
|
+
.pipe(first(), tap(() => this.tableStoreService.setRequestState(QdTableRequestState.PENDING)), switchMap(resolutionCriteria => this.tableDataResolver.resolve({
|
|
52
|
+
...resolutionCriteria.tableParams,
|
|
53
|
+
...resolutionCriteria.connectorParams,
|
|
54
|
+
...(pageIndex !== undefined ? { page: pageIndex } : {})
|
|
55
|
+
})), tap(({ page, data, size, totalElements }) => this.tableStoreService.setPage(page, size, totalElements, data)), tap(() => this.tableStoreService.setRequestState(QdTableRequestState.SUCCESS)))
|
|
56
|
+
.subscribe();
|
|
57
|
+
}
|
|
58
|
+
subscribeToLangChanges() {
|
|
59
|
+
this.translateService.onLangChange.pipe(takeUntil(this._destroyed$)).subscribe(() => this.refresh());
|
|
60
|
+
}
|
|
61
|
+
shouldDataBeResolved({ hasConnectors, connectorsState, tableParams }) {
|
|
62
|
+
if (hasConnectors && connectorsState === QdTableConnectorState.AWAITING)
|
|
63
|
+
return false;
|
|
64
|
+
return tableParams.size !== undefined && tableParams.page !== undefined;
|
|
65
|
+
}
|
|
66
|
+
subscribeToExternalRefresh() {
|
|
67
|
+
this.actionResultService.actionSuccess$
|
|
68
|
+
.pipe(takeUntil(this._destroyed$))
|
|
69
|
+
.subscribe(pageIndex => this.refresh({ pageIndex }));
|
|
70
|
+
}
|
|
71
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableResolverService, deps: [{ token: QD_TABLE_DATA_RESOLVER_TOKEN, optional: true }, { token: i1.QdTableStoreService }, { token: i2.TranslateService }, { token: i3.QdTableExternalActionResultService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
72
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableResolverService });
|
|
73
|
+
}
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableResolverService, decorators: [{
|
|
75
|
+
type: Injectable
|
|
76
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
77
|
+
type: Optional
|
|
78
|
+
}, {
|
|
79
|
+
type: Inject,
|
|
80
|
+
args: [QD_TABLE_DATA_RESOLVER_TOKEN]
|
|
81
|
+
}] }, { type: i1.QdTableStoreService }, { type: i2.TranslateService }, { type: i3.QdTableExternalActionResultService }] });
|
|
82
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb2x2ZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpY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N0YXRlLFxuICAgIHRhYmxlUGFyYW1zXG4gIH06IFFkVGFibGVEYXRhUmVzb2x1dGlvbkNyaXRlcmlhPFQ+KTogYm9vbGVhbiB7XG4gICAgaWYgKGhhc0Nvbm5lY3RvcnMgJiYgY29ubmVjdG9yc1N0YXRlID09PSBRZFRhYmxlQ29ubmVjdG9yU3RhdGUuQVdBSVRJTkcpIHJldHVybiBmYWxzZTtcblxuICAgIHJldHVybiB0YWJsZVBhcmFtcy5zaXplICE9PSB1bmRlZmluZWQgJiYgdGFibGVQYXJhbXMucGFnZSAhPT0gdW5kZWZpbmVkO1xuICB9XG5cbiAgcHJpdmF0ZSBzdWJzY3JpYmVUb0V4dGVybmFsUmVmcmVzaCgpOiB2b2lkIHtcbiAgICB0aGlzLmFjdGlvblJlc3VsdFNlcnZpY2UuYWN0aW9uU3VjY2VzcyRcbiAgICAgIC5waXBlKHRha2VVbnRpbCh0aGlzLl9kZXN0cm95ZWQkKSlcbiAgICAgIC5zdWJzY3JpYmUocGFnZUluZGV4ID0+IHRoaXMucmVmcmVzaCh7IHBhZ2VJbmRleCB9KSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// @ts-strict-ignore
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import isEqual from 'lodash/isEqual';
|
|
4
|
+
import isObject from 'lodash/isObject';
|
|
5
|
+
import { breakpoints } from '../../core/model/breakpoint.interface';
|
|
6
|
+
import { ReplaySubject } from 'rxjs';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class QdTableResponsiveRowService {
|
|
9
|
+
_config;
|
|
10
|
+
_breakpoints = breakpoints;
|
|
11
|
+
_currentBreakpoint = Object.keys(breakpoints)[0];
|
|
12
|
+
_defaultColumnMapping = { xs: 1, sm: 2, md: 4, lg: 6, xl: 8, xxl: 10 };
|
|
13
|
+
_headCellDefinitionsSubject = new ReplaySubject(1);
|
|
14
|
+
_columnsDefinitions;
|
|
15
|
+
_columnsDefinitionsSubject = new ReplaySubject(1);
|
|
16
|
+
headCellDefinitions$ = this._headCellDefinitionsSubject.asObservable();
|
|
17
|
+
columnsDefinitions$ = this._columnsDefinitionsSubject.asObservable();
|
|
18
|
+
set config(config) {
|
|
19
|
+
this._config = config;
|
|
20
|
+
this.updateDefinitions();
|
|
21
|
+
}
|
|
22
|
+
get config() {
|
|
23
|
+
return this._config;
|
|
24
|
+
}
|
|
25
|
+
set currentBreakpoint(currentBreakpoint) {
|
|
26
|
+
this._currentBreakpoint = currentBreakpoint;
|
|
27
|
+
this.updateDefinitions();
|
|
28
|
+
}
|
|
29
|
+
get currentBreakpoint() {
|
|
30
|
+
return this._currentBreakpoint;
|
|
31
|
+
}
|
|
32
|
+
get mainColumn() {
|
|
33
|
+
return this._config.mainColumn || this._config.columns[0].column;
|
|
34
|
+
}
|
|
35
|
+
get mainColumnIndex() {
|
|
36
|
+
if (!this._config.mainColumn)
|
|
37
|
+
return 0;
|
|
38
|
+
return this._config.columns.findIndex(column => column.column === this._config.mainColumn);
|
|
39
|
+
}
|
|
40
|
+
get columnMapping() {
|
|
41
|
+
return Object.keys(this._breakpoints).reduce((acc, cur) => ({
|
|
42
|
+
...acc,
|
|
43
|
+
...{ [cur]: this._config.columnMapping?.[cur] || this._defaultColumnMapping[cur] }
|
|
44
|
+
}), {});
|
|
45
|
+
}
|
|
46
|
+
isMainColumn(column) {
|
|
47
|
+
return this.mainColumn === column || isObject(column);
|
|
48
|
+
}
|
|
49
|
+
isLastColumn(column) {
|
|
50
|
+
const columnsDefinitions = this._columnsDefinitions;
|
|
51
|
+
const lastColumnDefinition = columnsDefinitions[columnsDefinitions.length - 1];
|
|
52
|
+
return isEqual(lastColumnDefinition, column) || lastColumnDefinition.includes?.(column) || false;
|
|
53
|
+
}
|
|
54
|
+
updateDefinitions() {
|
|
55
|
+
this._headCellDefinitionsSubject.next(this.getHeadCellDefinitions());
|
|
56
|
+
this._columnsDefinitions = this.getColumnsDefinitions();
|
|
57
|
+
this._columnsDefinitionsSubject.next(this._columnsDefinitions);
|
|
58
|
+
}
|
|
59
|
+
getHeadCellDefinitions() {
|
|
60
|
+
if (!this._config || !this._currentBreakpoint)
|
|
61
|
+
return [];
|
|
62
|
+
const columnsLength = this._config.columns.length;
|
|
63
|
+
const maxCurrentColumns = this.columnMapping[this._currentBreakpoint];
|
|
64
|
+
if (maxCurrentColumns >= columnsLength || this.mainColumnIndex >= maxCurrentColumns)
|
|
65
|
+
return [];
|
|
66
|
+
return [...Array(columnsLength - maxCurrentColumns).keys()].map(i => this.mainColumnIndex + i + 1);
|
|
67
|
+
}
|
|
68
|
+
getColumnsDefinitions() {
|
|
69
|
+
if (!this._config || !this._currentBreakpoint)
|
|
70
|
+
return [];
|
|
71
|
+
const columnsLength = this._config.columns.length;
|
|
72
|
+
const maxCurrentColumns = this.columnMapping[this._currentBreakpoint];
|
|
73
|
+
let columnsDefinitions = this._config.columns.map(column => column.column);
|
|
74
|
+
if (this.mainColumnIndex >= maxCurrentColumns) {
|
|
75
|
+
console.warn('QD-UI | QdTableComponent - The index of the "mainColumn" cannot be equal or greater than maximum columns for this breakpoint.');
|
|
76
|
+
return columnsDefinitions;
|
|
77
|
+
}
|
|
78
|
+
if (maxCurrentColumns >= columnsLength)
|
|
79
|
+
return columnsDefinitions;
|
|
80
|
+
columnsDefinitions = [];
|
|
81
|
+
const mergedColumns = [];
|
|
82
|
+
let alreadyMerged = false;
|
|
83
|
+
for (let i = 0; i <= columnsLength - maxCurrentColumns; i++) {
|
|
84
|
+
mergedColumns.push(this.getColumnByIndex(this.mainColumnIndex + i));
|
|
85
|
+
}
|
|
86
|
+
for (let i = 0; i < columnsLength; i++) {
|
|
87
|
+
if (mergedColumns.includes(this.getColumnByIndex(i)) && !alreadyMerged) {
|
|
88
|
+
columnsDefinitions.push(mergedColumns);
|
|
89
|
+
alreadyMerged = true;
|
|
90
|
+
}
|
|
91
|
+
if (!mergedColumns.includes(this.getColumnByIndex(i))) {
|
|
92
|
+
columnsDefinitions.push(this.getColumnByIndex(i));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return columnsDefinitions;
|
|
96
|
+
}
|
|
97
|
+
getColumnByIndex(columnIndex) {
|
|
98
|
+
return this._config.columns[columnIndex].column;
|
|
99
|
+
}
|
|
100
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableResponsiveRowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
101
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableResponsiveRowService });
|
|
102
|
+
}
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableResponsiveRowService, decorators: [{
|
|
104
|
+
type: Injectable
|
|
105
|
+
}] });
|
|
106
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2l2ZS1yb3cuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcWQtdWkvc3JjL2xpYi90YWJsZS9zZXJ2aWNlcy9yZXNwb25zaXZlLXJvdy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9CQUFvQjtBQUNwQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sT0FBTyxNQUFNLGdCQUFnQixDQUFDO0FBQ3JDLE9BQU8sUUFBUSxNQUFNLGlCQUFpQixDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUNwRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sTUFBTSxDQUFDOztBQUdyQyxNQUFNL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gICAgIGNvbHVtbnNEZWZpbml0aW9ucy5wdXNoKHRoaXMuZ2V0Q29sdW1uQnlJbmRleChpKSk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIGNvbHVtbnNEZWZpbml0aW9ucztcbiAgfVxuXG4gIHByaXZhdGUgZ2V0Q29sdW1uQnlJbmRleChjb2x1bW5JbmRleDogbnVtYmVyKTogVCB7XG4gICAgcmV0dXJuIHRoaXMuX2NvbmZpZy5jb2x1bW5zW2NvbHVtbkluZGV4XS5jb2x1bW47XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// @ts-strict-ignore
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { combineLatest } from 'rxjs';
|
|
4
|
+
import { map, skip, tap } from 'rxjs/operators';
|
|
5
|
+
import { QdTableStoreService } from '../store/table-store.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../store/table-store.service";
|
|
8
|
+
export class QdTableRowSelectionService {
|
|
9
|
+
tableStoreService;
|
|
10
|
+
_config;
|
|
11
|
+
_selectedRows = [];
|
|
12
|
+
constructor(tableStoreService) {
|
|
13
|
+
this.tableStoreService = tableStoreService;
|
|
14
|
+
}
|
|
15
|
+
set config(config) {
|
|
16
|
+
this._config = config;
|
|
17
|
+
this.tableStoreService.initTableStateSelectedRows(config.selection?.selectedRows || []);
|
|
18
|
+
}
|
|
19
|
+
get tableId() {
|
|
20
|
+
return this.tableStoreService.tableId;
|
|
21
|
+
}
|
|
22
|
+
get selectionType() {
|
|
23
|
+
return this._config.selection.type;
|
|
24
|
+
}
|
|
25
|
+
get selectedRows$() {
|
|
26
|
+
const isRowSelected = this.isRowSelected.bind(this);
|
|
27
|
+
return combineLatest([
|
|
28
|
+
this.tableStoreService.tableDataEntries$(),
|
|
29
|
+
this.tableStoreService.selectedRows$().pipe(tap(selectedRows => {
|
|
30
|
+
this._selectedRows = selectedRows;
|
|
31
|
+
}))
|
|
32
|
+
]).pipe(skip(this._config.selection?.emitOutputInitially ? 0 : 1), map(([tableData]) => (tableData || []).map(this.getIndexedRows).filter(isRowSelected)));
|
|
33
|
+
}
|
|
34
|
+
isRowSelected(row, index) {
|
|
35
|
+
return this._selectedRows.includes(row.uid) || this._selectedRows.includes(index);
|
|
36
|
+
}
|
|
37
|
+
getIndexedRows(row, index) {
|
|
38
|
+
return { ...row, index };
|
|
39
|
+
}
|
|
40
|
+
isRowSelected$(rowIndex) {
|
|
41
|
+
return this.tableStoreService.isTableRowSelected$(rowIndex);
|
|
42
|
+
}
|
|
43
|
+
setRowSelected(rowIndex) {
|
|
44
|
+
if (this._config.selection.type === 'singleSelect') {
|
|
45
|
+
this.tableStoreService.updateTableStateSingleRowToSelected(rowIndex);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.tableStoreService.updateTableStateRowToSelected(rowIndex);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
setRowUnselected(rowIndex) {
|
|
52
|
+
this.tableStoreService.updateTableStateRowToUnselected(rowIndex);
|
|
53
|
+
}
|
|
54
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableRowSelectionService, deps: [{ token: i1.QdTableStoreService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
55
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableRowSelectionService });
|
|
56
|
+
}
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableRowSelectionService, decorators: [{
|
|
58
|
+
type: Injectable
|
|
59
|
+
}], ctorParameters: () => [{ type: i1.QdTableStoreService }] });
|
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm93LXNlbGVjdGlvbi5zZXJ2aWNlLmpzIiwic291cmNl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IGdldEluZGV4ZWRSb3dzKHJvdzogUWRUYWJsZURhdGFSb3c8VD4sIGluZGV4OiBudW1iZXIpOiBRZFRhYmxlU2VsZWN0ZWRSb3c8VD4ge1xuICAgIHJldHVybiB7IC4uLnJvdywgaW5kZXggfTtcbiAgfVxuXG4gIGlzUm93U2VsZWN0ZWQkKHJvd0luZGV4OiBRZFRhYmxlUm93SW5kZXgpOiBPYnNlcnZhYmxlPGJvb2xlYW4+IHtcbiAgICByZXR1cm4gdGhpcy50YWJsZVN0b3JlU2VydmljZS5pc1RhYmxlUm93U2VsZWN0ZWQkKHJvd0luZGV4KTtcbiAgfVxuXG4gIHNldFJvd1NlbGVjdGVkKHJvd0luZGV4OiBRZFRhYmxlUm93SW5kZXgpOiB2b2lkIHtcbiAgICBpZiAodGhpcy5fY29uZmlnLnNlbGVjdGlvbi50eXBlID09PSAnc2luZ2xlU2VsZWN0Jykge1xuICAgICAgdGhpcy50YWJsZVN0b3JlU2VydmljZS51cGRhdGVUYWJsZVN0YXRlU2luZ2xlUm93VG9TZWxlY3RlZChyb3dJbmRleCk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMudGFibGVTdG9yZVNlcnZpY2UudXBkYXRlVGFibGVTdGF0ZVJvd1RvU2VsZWN0ZWQocm93SW5kZXgpO1xuICAgIH1cbiAgfVxuXG4gIHNldFJvd1Vuc2VsZWN0ZWQocm93SW5kZXg6IFFkVGFibGVSb3dJbmRleCk6IHZvaWQge1xuICAgIHRoaXMudGFibGVTdG9yZVNlcnZpY2UudXBkYXRlVGFibGVTdGF0ZVJvd1RvVW5zZWxlY3RlZChyb3dJbmRleCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { ReplaySubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class QdTableSecondaryActionsService {
|
|
5
|
+
_configSubject = new ReplaySubject(1);
|
|
6
|
+
set configs(config) {
|
|
7
|
+
this._configSubject.next(config);
|
|
8
|
+
}
|
|
9
|
+
get configs$() {
|
|
10
|
+
return this._configSubject.asObservable();
|
|
11
|
+
}
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableSecondaryActionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableSecondaryActionsService });
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableSecondaryActionsService, decorators: [{
|
|
16
|
+
type: Injectable
|
|
17
|
+
}] });
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Vjb25kYXJ5LWFjdGlvbnMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcWQtdWkvc3JjL2xpYi90YWJsZS9zZXJ2aWNlcy9zZWNvbmRhcnktYWN0aW9ucy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFjLGFBQWEsRUFBRSxNQUFNLE1BQU0sQ0FBQzs7QUFLakQsTUFBTSxPQUFPLDhCQUE4QjtJQUNqQyxjQUFjLEdBQUcsSUFBSSxhQUFhLENBQThCLENBQUMsQ0FBQyxDQUFDO0lBRTNFLElBQUksT0FBTyxDQUFDLE1BQW1DO1FBQzdDLElBQUksQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ25DLENBQUM7SUFFRCxJQUFJLFFBQVE7UUFDVixPQUFPLElBQUksQ0FBQyxjQUFjLENBQUMsWUFBWSxFQUFFLENBQUM7SUFDNUMsQ0FBQzt1R0FUVSw4QkFBOEI7MkdBQTlCLDhCQUE4Qjs7MkZBQTlCLDhCQUE4QjtrQkFEMUMsVUFBVSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IE9ic2VydmFibGUsIFJlcGxheVN1YmplY3QgfSBmcm9tICdyeGpzJztcblxuaW1wb3J0IHsgUWRUYWJsZVNlY29uZGFyeUFjdGlvbiB9IGZyb20gJy4uL21vZGVsL3RhYmxlLWNvbmZpZy1hY3Rpb25zLmludGVyZmFjZSc7XG5cbkBJbmplY3RhYmxlKClcbmV4cG9ydCBjbGFzcyBRZFRhYmxlU2Vjb25kYXJ5QWN0aW9uc1NlcnZpY2U8VCBleHRlbmRzIHN0cmluZz4ge1xuICBwcml2YXRlIF9jb25maWdTdWJqZWN0ID0gbmV3IFJlcGxheVN1YmplY3Q8UWRUYWJsZVNlY29uZGFyeUFjdGlvbjxUPltdPigxKTtcblxuICBzZXQgY29uZmlncyhjb25maWc6IFFkVGFibGVTZWNvbmRhcnlBY3Rpb248VD5bXSkge1xuICAgIHRoaXMuX2NvbmZpZ1N1YmplY3QubmV4dChjb25maWcpO1xuICB9XG5cbiAgZ2V0IGNvbmZpZ3MkKCk6IE9ic2VydmFibGU8UWRUYWJsZVNlY29uZGFyeUFjdGlvbjxUPltdPiB7XG4gICAgcmV0dXJuIHRoaXMuX2NvbmZpZ1N1YmplY3QuYXNPYnNlcnZhYmxlKCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
3
|
+
import { filter, map, tap } from 'rxjs/operators';
|
|
4
|
+
import { QdSortDirection } from '../model/sort-direction.enum';
|
|
5
|
+
import { QdTableStoreService } from '../store/table-store.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../store/table-store.service";
|
|
8
|
+
import * as i2 from "@angular/common";
|
|
9
|
+
import * as i3 from "../../icon/icon/icon.component";
|
|
10
|
+
// TODO: Add multi sort feature
|
|
11
|
+
const MULTI_SORT = false;
|
|
12
|
+
export class QdTableSortComponent {
|
|
13
|
+
tableStoreService;
|
|
14
|
+
isSortable = false;
|
|
15
|
+
config;
|
|
16
|
+
column;
|
|
17
|
+
testId;
|
|
18
|
+
isHovered = false;
|
|
19
|
+
isActive = false;
|
|
20
|
+
showAsc$;
|
|
21
|
+
showDesc$;
|
|
22
|
+
_isActiveSubscription = new Subscription();
|
|
23
|
+
_direction = QdSortDirection.NONE;
|
|
24
|
+
_multiSort = MULTI_SORT;
|
|
25
|
+
get direction() {
|
|
26
|
+
return this._direction;
|
|
27
|
+
}
|
|
28
|
+
set direction(direction) {
|
|
29
|
+
this._direction = direction;
|
|
30
|
+
this.isActive = direction === QdSortDirection.ASC || direction === QdSortDirection.DESC;
|
|
31
|
+
}
|
|
32
|
+
get sortDirection() {
|
|
33
|
+
return QdSortDirection;
|
|
34
|
+
}
|
|
35
|
+
constructor(tableStoreService) {
|
|
36
|
+
this.tableStoreService = tableStoreService;
|
|
37
|
+
}
|
|
38
|
+
ngOnInit() {
|
|
39
|
+
this.setInitialSort();
|
|
40
|
+
this.subscribeIsActive();
|
|
41
|
+
this.setShowAsc();
|
|
42
|
+
this.setShowDesc();
|
|
43
|
+
}
|
|
44
|
+
ngOnDestroy() {
|
|
45
|
+
this._isActiveSubscription.unsubscribe(); // takeUntil(_$destroyed) does not prevent call of selector projector
|
|
46
|
+
}
|
|
47
|
+
getOpacity() {
|
|
48
|
+
return this.isSortable && !this.isActive ? '.5' : '1';
|
|
49
|
+
}
|
|
50
|
+
handleMouseEnter() {
|
|
51
|
+
this.isHovered = true;
|
|
52
|
+
}
|
|
53
|
+
handleMouseLeave() {
|
|
54
|
+
this.isHovered = false;
|
|
55
|
+
}
|
|
56
|
+
handleClick() {
|
|
57
|
+
if (!this.isSortable)
|
|
58
|
+
return;
|
|
59
|
+
this.updateSortDirection();
|
|
60
|
+
if (!this._multiSort)
|
|
61
|
+
this.tableStoreService.setSort(this.column, this.direction);
|
|
62
|
+
if (this._multiSort)
|
|
63
|
+
this.tableStoreService.updateSort(this.column, this.direction);
|
|
64
|
+
}
|
|
65
|
+
setInitialSort() {
|
|
66
|
+
this.direction = this.config?.direction || QdSortDirection.NONE;
|
|
67
|
+
}
|
|
68
|
+
subscribeIsActive() {
|
|
69
|
+
this._isActiveSubscription = this.tableStoreService
|
|
70
|
+
.columnSortDirection$(this.column)
|
|
71
|
+
.pipe(filter(() => this.isSortable), tap(direction => (this.isActive = direction !== QdSortDirection.NONE)), tap(() => {
|
|
72
|
+
if (!this.isActive && !this._multiSort)
|
|
73
|
+
this.direction = QdSortDirection.NONE;
|
|
74
|
+
}))
|
|
75
|
+
.subscribe();
|
|
76
|
+
}
|
|
77
|
+
updateSortDirection() {
|
|
78
|
+
switch (this.direction) {
|
|
79
|
+
case QdSortDirection.NONE:
|
|
80
|
+
this.direction = QdSortDirection.ASC;
|
|
81
|
+
break;
|
|
82
|
+
case QdSortDirection.ASC:
|
|
83
|
+
this.direction = QdSortDirection.DESC;
|
|
84
|
+
break;
|
|
85
|
+
default:
|
|
86
|
+
this.direction = QdSortDirection.NONE;
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
setShowAsc() {
|
|
91
|
+
this.showAsc$ = this.tableStoreService
|
|
92
|
+
.columnSortDirection$(this.column)
|
|
93
|
+
.pipe(map(direction => this.shouldShowArrow(direction, QdSortDirection.ASC)));
|
|
94
|
+
}
|
|
95
|
+
setShowDesc() {
|
|
96
|
+
this.showDesc$ = this.tableStoreService
|
|
97
|
+
.columnSortDirection$(this.column)
|
|
98
|
+
.pipe(map(direction => this.shouldShowArrow(direction, QdSortDirection.DESC)));
|
|
99
|
+
}
|
|
100
|
+
shouldShowArrow(direction, targetDirection) {
|
|
101
|
+
return (!this.isActive && direction !== targetDirection) || direction === targetDirection;
|
|
102
|
+
}
|
|
103
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableSortComponent, deps: [{ token: i1.QdTableStoreService }], target: i0.ɵɵFactoryTarget.Component });
|
|
104
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: QdTableSortComponent, selector: "qd-table-sort", inputs: { isSortable: "isSortable", config: "config", column: "column", testId: ["data-test-id", "testId"] }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "click": "handleClick()" }, properties: { "class.sortable": "isSortable", "class.active": "isActive", "class.hovered": "isHovered" } }, ngImport: i0, template: "<div class=\"heading\">\n <ng-content></ng-content>\n</div>\n\n<div *ngIf=\"isSortable\" class=\"buttons\" [style.opacity]=\"getOpacity()\" [attr.data-test-id]=\"testId + '-buttons'\">\n <qd-icon *ngIf=\"showDesc$ | async\" icon=\"arrowDown\" [attr.data-test-id]=\"testId + '-button-arrow-down'\"></qd-icon>\n <qd-icon *ngIf=\"showAsc$ | async\" icon=\"arrowTop\" [attr.data-test-id]=\"testId + '-button-arrow-top'\"></qd-icon>\n</div>\n", styles: [":host.sortable{display:flex;width:100%;height:2.625rem;box-sizing:content-box;justify-content:flex-end;border:solid rgb(229,229,229);border-width:0 1rem;margin-top:-.125rem;margin-left:-1rem;cursor:pointer}:host.active,:host.hovered{border-color:#d5d5d5;background:#d5d5d5}:host.active .buttons,:host.hovered .buttons{opacity:1!important}:host .heading{flex-grow:1}:host .buttons{width:1.75rem;margin-left:-1.875rem;transform:translate(1.75rem)}.qd-icon{display:inline-flex;width:.5rem;font-size:1rem;font-weight:400;transform:translate(-.625rem)}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.QdIconComponent, selector: "qd-icon", inputs: ["icon"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
105
|
+
}
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableSortComponent, decorators: [{
|
|
107
|
+
type: Component,
|
|
108
|
+
args: [{ selector: 'qd-table-sort', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
109
|
+
'[class.sortable]': 'isSortable',
|
|
110
|
+
'[class.active]': 'isActive',
|
|
111
|
+
'[class.hovered]': 'isHovered',
|
|
112
|
+
'(mouseenter)': 'handleMouseEnter()',
|
|
113
|
+
'(mouseleave)': 'handleMouseLeave()',
|
|
114
|
+
'(click)': 'handleClick()'
|
|
115
|
+
}, template: "<div class=\"heading\">\n <ng-content></ng-content>\n</div>\n\n<div *ngIf=\"isSortable\" class=\"buttons\" [style.opacity]=\"getOpacity()\" [attr.data-test-id]=\"testId + '-buttons'\">\n <qd-icon *ngIf=\"showDesc$ | async\" icon=\"arrowDown\" [attr.data-test-id]=\"testId + '-button-arrow-down'\"></qd-icon>\n <qd-icon *ngIf=\"showAsc$ | async\" icon=\"arrowTop\" [attr.data-test-id]=\"testId + '-button-arrow-top'\"></qd-icon>\n</div>\n", styles: [":host.sortable{display:flex;width:100%;height:2.625rem;box-sizing:content-box;justify-content:flex-end;border:solid rgb(229,229,229);border-width:0 1rem;margin-top:-.125rem;margin-left:-1rem;cursor:pointer}:host.active,:host.hovered{border-color:#d5d5d5;background:#d5d5d5}:host.active .buttons,:host.hovered .buttons{opacity:1!important}:host .heading{flex-grow:1}:host .buttons{width:1.75rem;margin-left:-1.875rem;transform:translate(1.75rem)}.qd-icon{display:inline-flex;width:.5rem;font-size:1rem;font-weight:400;transform:translate(-.625rem)}\n"] }]
|
|
116
|
+
}], ctorParameters: () => [{ type: i1.QdTableStoreService }], propDecorators: { isSortable: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], config: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], column: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], testId: [{
|
|
123
|
+
type: Input,
|
|
124
|
+
args: ['data-test-id']
|
|
125
|
+
}] } });
|
|
126
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtc29ydC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3FkLXVpL3NyYy9saWIvdGFibGUvc29ydC90YWJsZS1zb3J0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcWQtdWkvc3JjL2xpYi90YWJsZS9zb3J0L3RhYmxlLXNvcnQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQXFCLE1BQU0sZUFBZSxDQUFDO0FBQzdGLE9BQU8sRUFBYyxZQUFZLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDaEQsT0FBTyxFQUFFLE1BQU0sRUFBRSxHQUFHLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFbEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBRS9ELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDhCQUE4QixDQUFDOzs7OztBQUVuRSwrQkFBK0I7QUFDL0IsTUFBTSxVQUFVLEdBQUcsS0FBSyxDQUFDO0FBZ0J6QixNQUFNLE9BQU8sb0JBQW9CO0lBNkJGO0lBNUJwQixVQUFVLEdBQUcsS0FBSyxDQUFDO0lBQ25CLE1BQU0sQ0FBMkI7S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nZXREaXJlY3Rpb24pIHx8IGRpcmVjdGlvbiA9PT0gdGFyZ2V0RGlyZWN0aW9uO1xuICB9XG59XG4iLCI8ZGl2IGNsYXNzPVwiaGVhZGluZ1wiPlxuICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG48L2Rpdj5cblxuPGRpdiAqbmdJZj1cImlzU29ydGFibGVcIiBjbGFzcz1cImJ1dHRvbnNcIiBbc3R5bGUub3BhY2l0eV09XCJnZXRPcGFjaXR5KClcIiBbYXR0ci5kYXRhLXRlc3QtaWRdPVwidGVzdElkICsgJy1idXR0b25zJ1wiPlxuICA8cWQtaWNvbiAqbmdJZj1cInNob3dEZXNjJCB8IGFzeW5jXCIgaWNvbj1cImFycm93RG93blwiIFthdHRyLmRhdGEtdGVzdC1pZF09XCJ0ZXN0SWQgKyAnLWJ1dHRvbi1hcnJvdy1kb3duJ1wiPjwvcWQtaWNvbj5cbiAgPHFkLWljb24gKm5nSWY9XCJzaG93QXNjJCB8IGFzeW5jXCIgaWNvbj1cImFycm93VG9wXCIgW2F0dHIuZGF0YS10ZXN0LWlkXT1cInRlc3RJZCArICctYnV0dG9uLWFycm93LXRvcCdcIj48L3FkLWljb24+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { createSelector } from '@ngrx/store';
|
|
3
|
+
import { QdTableConnectorState } from '../model/connectors-state.enum';
|
|
4
|
+
import { QdSortDirection } from '../model/sort-direction.enum';
|
|
5
|
+
import { QdTableRequestState } from '../model/table-data-resolver';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export class QdTableStoreSelectorService {
|
|
8
|
+
_tableId;
|
|
9
|
+
set tableId(tableId) {
|
|
10
|
+
this._tableId = tableId;
|
|
11
|
+
}
|
|
12
|
+
table() {
|
|
13
|
+
return createSelector(this.selectTables, tables => this.getTable(tables));
|
|
14
|
+
}
|
|
15
|
+
tableDataEntries() {
|
|
16
|
+
return createSelector(this.selectTables, tables => this.getTable(tables)?.data ?? []);
|
|
17
|
+
}
|
|
18
|
+
tableRow(rowIndex) {
|
|
19
|
+
return createSelector(this.selectTables, tables => this.getTable(tables)?.data[rowIndex]);
|
|
20
|
+
}
|
|
21
|
+
selectedRows() {
|
|
22
|
+
return createSelector(this.selectTables, tables => this.getTable(tables)?.selectedRows ?? []);
|
|
23
|
+
}
|
|
24
|
+
isTableRowSelected(rowIndex) {
|
|
25
|
+
return createSelector(this.selectTables, tables => {
|
|
26
|
+
const table = this.getTable(tables);
|
|
27
|
+
if (!table)
|
|
28
|
+
return false;
|
|
29
|
+
const tableUid = table.data[rowIndex]?.uid;
|
|
30
|
+
return table.selectedRows?.includes(rowIndex) || (tableUid && table.selectedRows?.includes(tableUid)) || false;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
recentSecondaryAction() {
|
|
34
|
+
return createSelector(this.selectTables, tables => this.getTable(tables)?.recentSecondaryAction);
|
|
35
|
+
}
|
|
36
|
+
canPageForward() {
|
|
37
|
+
return createSelector(this.selectTables, tables => (this.getTable(tables)?.pageSize ?? 0) * ((this.getTable(tables)?.pageIndex ?? 0) + 1) <
|
|
38
|
+
(this.getTable(tables)?.totalCount ?? 0));
|
|
39
|
+
}
|
|
40
|
+
canPageBackward() {
|
|
41
|
+
return createSelector(this.selectTables, tables => (this.getTable(tables)?.pageIndex ?? 0) > 0);
|
|
42
|
+
}
|
|
43
|
+
pageSize() {
|
|
44
|
+
return createSelector(this.selectTables, tables => this.getTable(tables)?.pageSize ?? 0);
|
|
45
|
+
}
|
|
46
|
+
pageInfo() {
|
|
47
|
+
return createSelector(this.selectTables, tables => {
|
|
48
|
+
const { pageIndex, pageSize, totalCount } = this.getTable(tables) || {};
|
|
49
|
+
if (pageIndex === undefined || pageSize === undefined || totalCount === undefined)
|
|
50
|
+
return undefined;
|
|
51
|
+
return {
|
|
52
|
+
start: pageIndex * pageSize + 1,
|
|
53
|
+
end: pageSize * (pageIndex + 1) < totalCount ? (pageIndex + 1) * pageSize : totalCount,
|
|
54
|
+
totalCount
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
totalCount() {
|
|
59
|
+
return createSelector(this.selectTables, tables => this.getTable(tables)?.totalCount ?? 0);
|
|
60
|
+
}
|
|
61
|
+
pageChangeInfo() {
|
|
62
|
+
return createSelector(this.selectTables, tables => {
|
|
63
|
+
const { pageIndex, pageSize, requestState } = this.getTable(tables) || {};
|
|
64
|
+
if (pageIndex === undefined || pageSize === undefined || requestState === undefined)
|
|
65
|
+
return undefined;
|
|
66
|
+
return {
|
|
67
|
+
pageIndex,
|
|
68
|
+
pageSize,
|
|
69
|
+
requestState
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
columnSortDirection(column) {
|
|
74
|
+
return createSelector(this.selectTables, tables => {
|
|
75
|
+
const { sort } = this.getTable(tables) || {};
|
|
76
|
+
if (!sort)
|
|
77
|
+
return QdSortDirection.NONE;
|
|
78
|
+
return sort.find(entry => entry.column === column)?.direction ?? QdSortDirection.NONE;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
selectIsLoading() {
|
|
82
|
+
return createSelector(this.selectTables, tables => {
|
|
83
|
+
const { requestState } = this.getTable(tables) || {};
|
|
84
|
+
return requestState === QdTableRequestState.PENDING;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
selectConnectorState(connectorName) {
|
|
88
|
+
return createSelector(this.selectTables, tables => {
|
|
89
|
+
const { connectors } = this.getTable(tables) || {};
|
|
90
|
+
return (connectors?.find(connector => connector.connectorName === connectorName)?.connectorState ??
|
|
91
|
+
QdTableConnectorState.NONE);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
selectDataResolutionCriteria() {
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
return createSelector(this.selectTables, tables => {
|
|
97
|
+
const { connectors, connectorCriteria, pageIndex, pageSize, sort } = this.getTable(tables) || {};
|
|
98
|
+
const connectorsState = connectors?.some(c => c.connectorState === QdTableConnectorState.AWAITING)
|
|
99
|
+
? QdTableConnectorState.AWAITING
|
|
100
|
+
: connectors
|
|
101
|
+
? QdTableConnectorState.ESTABLISHED
|
|
102
|
+
: QdTableConnectorState.NONE;
|
|
103
|
+
return {
|
|
104
|
+
hasConnectors: (connectors?.length ?? 0) > 0,
|
|
105
|
+
connectorsState,
|
|
106
|
+
tableParams: { page: pageIndex, size: pageSize, sort },
|
|
107
|
+
connectorParams: connectorCriteria ? { ...connectorCriteria } : undefined
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
selectTables(state) {
|
|
112
|
+
return state.qdUiTable;
|
|
113
|
+
}
|
|
114
|
+
getTable(tables) {
|
|
115
|
+
return this._tableId ? tables[this._tableId] : undefined;
|
|
116
|
+
}
|
|
117
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableStoreSelectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
118
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableStoreSelectorService });
|
|
119
|
+
}
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdTableStoreSelectorService, decorators: [{
|
|
121
|
+
type: Injectable
|
|
122
|
+
}] });
|
|
123
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtc3RvcmUtc2VsZWN0b3Iuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcWQtdWkvc3JjL2xpYi90YWJsZS9zdG9yZS90YWJsZS1zdG9yZS1zZWxlY3Rvci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWF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