@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,247 @@
|
|
|
1
|
+
import { FormControl, Validators } from '@angular/forms';
|
|
2
|
+
import moment from 'moment';
|
|
3
|
+
import { TimePickerService } from '../../datepicker/service/timepicker.service';
|
|
4
|
+
function hasUnit(control) {
|
|
5
|
+
return control.value?.value != null && control.value?.unit != null;
|
|
6
|
+
}
|
|
7
|
+
export class QdValidators {
|
|
8
|
+
/**
|
|
9
|
+
* Validates that the value of the form field is at least the specified minimum.
|
|
10
|
+
*
|
|
11
|
+
* #### **Usage**
|
|
12
|
+
* ```ts
|
|
13
|
+
* new QdFormControl('', QdValidators.min(3));
|
|
14
|
+
* new QdFormControl('', QdValidators.min(3, 'custom-error'));
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
static min(min, errorKey = 'i18n.qd.form.error.min') {
|
|
18
|
+
const validFn = (control) => {
|
|
19
|
+
if (hasUnit(control))
|
|
20
|
+
return Validators.min(min)(new FormControl(control.value.value)) ? { min: errorKey } : null;
|
|
21
|
+
return Validators.min(min)(control) ? { min: errorKey } : null;
|
|
22
|
+
};
|
|
23
|
+
return validFn;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Validates that the value of the form field does not exceed the specified maximum.
|
|
27
|
+
*
|
|
28
|
+
* #### **Usage**
|
|
29
|
+
* ```ts
|
|
30
|
+
* new QdFormControl('', QdValidators.max(10));
|
|
31
|
+
* new QdFormControl('', QdValidators.max(10, 'custom-error'));
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
static max(max, errorKey = 'i18n.qd.form.error.max') {
|
|
35
|
+
const validFn = (control) => {
|
|
36
|
+
if (hasUnit(control))
|
|
37
|
+
return Validators.max(max)(new FormControl(control.value.value)) ? { max: errorKey } : null;
|
|
38
|
+
return Validators.max(max)(control) ? { max: errorKey } : null;
|
|
39
|
+
};
|
|
40
|
+
return validFn;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Ensures that the form field is not empty.
|
|
44
|
+
*
|
|
45
|
+
* #### **Usage**
|
|
46
|
+
* ```ts
|
|
47
|
+
* new QdFormControl('', QdValidators.required());
|
|
48
|
+
* new QdFormControl('', QdValidators.required('custom-error'));
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
static required(errorKey = 'i18n.qd.form.error.required') {
|
|
52
|
+
const validFn = (control) => {
|
|
53
|
+
if (Array.isArray(control.value))
|
|
54
|
+
return Validators.required(control) ? { required: errorKey } : null;
|
|
55
|
+
return this.isEmptyInputValue(control.value) ? { required: errorKey } : null;
|
|
56
|
+
};
|
|
57
|
+
return validFn;
|
|
58
|
+
}
|
|
59
|
+
static isEmptyInputValue(value) {
|
|
60
|
+
if (value !== null && typeof value === 'object') {
|
|
61
|
+
return Object.keys(value).some(key => this.isEmptyInputValue(value[key]));
|
|
62
|
+
}
|
|
63
|
+
return value == null || (typeof value === 'string' && value.length === 0);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Validates that the form field contains a valid email address.
|
|
67
|
+
*
|
|
68
|
+
* #### **Usage**
|
|
69
|
+
* ```ts
|
|
70
|
+
* new QdFormControl('', QdValidators.email());
|
|
71
|
+
* new QdFormControl('', QdValidators.email('custom-error'));
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
static email(errorKey = 'i18n.qd.form.error.email') {
|
|
75
|
+
// regex from https://regexr.com/ community patterns "RFC2822 Email Validation"
|
|
76
|
+
const emailValidatorRegex = /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;
|
|
77
|
+
const validFn = (control) => Validators.pattern(emailValidatorRegex)(control) ? { email: errorKey } : null;
|
|
78
|
+
return validFn;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Ensures that the form field contains at least the specified number of characters.
|
|
82
|
+
*
|
|
83
|
+
* #### **Usage**
|
|
84
|
+
* ```ts
|
|
85
|
+
* new QdFormControl('', QdValidators.minLength(3));
|
|
86
|
+
* new QdFormControl('', QdValidators.minLength(3, 'custom-error'));
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
static minLength(minLength, errorKey = 'i18n.qd.form.error.minLength') {
|
|
90
|
+
const validFn = (control) => {
|
|
91
|
+
if (hasUnit(control))
|
|
92
|
+
return Validators.minLength(minLength)(new FormControl(control.value.value)) ? { minLength: errorKey } : null;
|
|
93
|
+
return Validators.minLength(minLength)(control) ? { minLength: errorKey } : null;
|
|
94
|
+
};
|
|
95
|
+
return validFn;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Ensures that the form field contains no more than the specified number of characters.
|
|
99
|
+
*
|
|
100
|
+
* #### **Usage**
|
|
101
|
+
* ```ts
|
|
102
|
+
* new QdFormControl('', QdValidators.maxLength(10));
|
|
103
|
+
* new QdFormControl('', QdValidators.maxLength(10, 'custom-error'));
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
static maxLength(maxLength, errorKey = 'i18n.qd.form.error.maxLength') {
|
|
107
|
+
const validFn = (control) => {
|
|
108
|
+
if (hasUnit(control))
|
|
109
|
+
return Validators.maxLength(maxLength)(new FormControl(control.value.value)) ? { maxLength: errorKey } : null;
|
|
110
|
+
return Validators.maxLength(maxLength)(control) ? { maxLength: errorKey } : null;
|
|
111
|
+
};
|
|
112
|
+
validFn.maxLength = maxLength;
|
|
113
|
+
return validFn;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Ensures that the form field matches a given regular expression pattern.
|
|
117
|
+
*
|
|
118
|
+
* #### **Usage**
|
|
119
|
+
* ```ts
|
|
120
|
+
* new QdFormControl('', QdValidators.pattern(/\d/));
|
|
121
|
+
* new QdFormControl('', QdValidators.pattern('[A-Za-z]+'));
|
|
122
|
+
* new QdFormControl('', QdValidators.pattern(/\d/, 'custom-error'));
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
static pattern(pattern, errorKey = 'i18n.qd.form.error.pattern') {
|
|
126
|
+
const validFn = (control) => {
|
|
127
|
+
if (hasUnit(control))
|
|
128
|
+
return Validators.pattern(pattern)(new FormControl(control.value.value)) ? { pattern: errorKey } : null;
|
|
129
|
+
return Validators.pattern(pattern)(control) ? { pattern: errorKey } : null;
|
|
130
|
+
};
|
|
131
|
+
return validFn;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Ensures that the form field contains a valid date.
|
|
135
|
+
*
|
|
136
|
+
* #### **Usage**
|
|
137
|
+
* ```ts
|
|
138
|
+
* new QdFormControl('', QdValidators.date());
|
|
139
|
+
* new QdFormControl(new Date(), QdValidators.date());
|
|
140
|
+
* new QdFormControl(new Date(), QdValidators.date('date-error'));
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
static date(errorKey = 'i18n.qd.form.error.date') {
|
|
144
|
+
return ({ value }) => {
|
|
145
|
+
if (!value)
|
|
146
|
+
return null;
|
|
147
|
+
const localizedFormat = moment().locale('de').format('L');
|
|
148
|
+
const formattedErrorKey = { date: { key: errorKey, params: { format: localizedFormat } } };
|
|
149
|
+
if (value === 'Invalid Date')
|
|
150
|
+
return formattedErrorKey;
|
|
151
|
+
if (!(value instanceof Date) || isNaN(value.getTime()))
|
|
152
|
+
return formattedErrorKey;
|
|
153
|
+
return null;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Ensures that the selected date is not within a range of disabled dates.
|
|
158
|
+
*
|
|
159
|
+
* #### **Usage**
|
|
160
|
+
* ```ts
|
|
161
|
+
* new QdFormControl('', QdValidators.disabledDates([{ from: new Date('2025-01-01') }]));
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
static disabledDates(disabledDates, errorKey = 'i18n.qd.form.error.disabledDates') {
|
|
165
|
+
const validFn = (control) => {
|
|
166
|
+
if (!control.value || isNaN(control.value?.getTime?.()))
|
|
167
|
+
return null;
|
|
168
|
+
const date = moment(control.value.getTime());
|
|
169
|
+
return this.isDateDisabled(disabledDates, date) ? { disabledDates: errorKey } : null;
|
|
170
|
+
};
|
|
171
|
+
return validFn;
|
|
172
|
+
}
|
|
173
|
+
static isDateDisabled(disabledDates, date) {
|
|
174
|
+
return disabledDates.some(disabledDate => {
|
|
175
|
+
let fromDate = moment(disabledDate.from);
|
|
176
|
+
let toDate = moment(disabledDate.to);
|
|
177
|
+
if (!disabledDate.from)
|
|
178
|
+
fromDate = moment('1900-01-01T00:00:00.000Z');
|
|
179
|
+
if (!disabledDate.to)
|
|
180
|
+
toDate = moment('2100-01-01T00:00:00.000Z');
|
|
181
|
+
return date.isAfter(fromDate, 'day') && date.isBefore(toDate, 'day');
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Ensures that the selected time is not within a range of disabled times.
|
|
186
|
+
*
|
|
187
|
+
* #### **Usage**
|
|
188
|
+
* ```ts
|
|
189
|
+
* new QdFormControl('', QdValidators.disabledTimes([{ from: '15:00' }]));
|
|
190
|
+
* ```
|
|
191
|
+
*/
|
|
192
|
+
static disabledTimes(disabledTimes, errorKey = 'i18n.qd.form.error.disabledTimes') {
|
|
193
|
+
const validFn = (control) => {
|
|
194
|
+
if (!control.value || isNaN(control.value?.getTime?.()))
|
|
195
|
+
return null;
|
|
196
|
+
const time = moment(control.value).format('HH:mm');
|
|
197
|
+
return TimePickerService.isTimeDisabled(time, disabledTimes) ? { disabledTimes: errorKey } : null;
|
|
198
|
+
};
|
|
199
|
+
return validFn;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Ensures that the selected file does not exceed the given maximum size in megabytes.
|
|
203
|
+
*
|
|
204
|
+
* #### **Usage**
|
|
205
|
+
* ```ts
|
|
206
|
+
* new QdFormControl(null, QdValidators.fileSize(5));
|
|
207
|
+
* new QdFormControl(null, QdValidators.fileSize(10, 'custom-error'));
|
|
208
|
+
* ```
|
|
209
|
+
*/
|
|
210
|
+
static fileSize(maxMb, errorKey = 'i18n.qd.form.error.fileSize') {
|
|
211
|
+
return (control) => {
|
|
212
|
+
const file = control.value;
|
|
213
|
+
if (!file || !(file instanceof File))
|
|
214
|
+
return null;
|
|
215
|
+
const maxBytes = maxMb * 1024 * 1024;
|
|
216
|
+
return file.size > maxBytes ? { fileSize: { key: errorKey, params: { maxMb } } } : null;
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Validates that the file type or file extension matches one of the accepted types.
|
|
221
|
+
*
|
|
222
|
+
* #### **Usage**
|
|
223
|
+
* ```ts
|
|
224
|
+
* new QdFormControl(null, QdValidators.fileType(['image/*', '.pdf']));
|
|
225
|
+
* new QdFormControl(null, QdValidators.fileType(['application/msword'], 'custom-error'));
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
static fileType(accepted, errorKey = 'i18n.qd.form.error.fileType') {
|
|
229
|
+
return (control) => {
|
|
230
|
+
const file = control.value;
|
|
231
|
+
if (!file || !(file instanceof File))
|
|
232
|
+
return null;
|
|
233
|
+
const fileName = file.name.toLowerCase();
|
|
234
|
+
const mimeType = file.type.toLowerCase();
|
|
235
|
+
const isAccepted = accepted.some(type => {
|
|
236
|
+
const t = type.toLowerCase().trim();
|
|
237
|
+
if (t.endsWith('/*')) {
|
|
238
|
+
const baseType = t.slice(0, t.indexOf('/'));
|
|
239
|
+
return mimeType.startsWith(`${baseType}/`);
|
|
240
|
+
}
|
|
241
|
+
return mimeType === t || fileName.endsWith(t);
|
|
242
|
+
});
|
|
243
|
+
return !isAccepted ? { fileType: { key: errorKey, params: { accepted } } } : null;
|
|
244
|
+
};
|
|
245
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mluZ1tdLCBlcnJvcktleSA9ICdpMThuLnFkLmZvcm0uZXJyb3IuZmlsZVR5cGUnKTogVmFsaWRhdG9yRm4ge1xuICAgIHJldHVybiAoY29udHJvbDogQWJzdHJhY3RDb250cm9sKTogVmFsaWRhdGlvbkVycm9ycyB8IG51bGwgPT4ge1xuICAgICAgY29uc3QgZmlsZSA9IGNvbnRyb2wudmFsdWUgYXMgRmlsZSB8IG51bGw7XG5cbiAgICAgIGlmICghZmlsZSB8fCAhKGZpbGUgaW5zdGFuY2VvZiBGaWxlKSkgcmV0dXJuIG51bGw7XG5cbiAgICAgIGNvbnN0IGZpbGVOYW1lID0gZmlsZS5uYW1lLnRvTG93ZXJDYXNlKCk7XG4gICAgICBjb25zdCBtaW1lVHlwZSA9IGZpbGUudHlwZS50b0xvd2VyQ2FzZSgpO1xuXG4gICAgICBjb25zdCBpc0FjY2VwdGVkID0gYWNjZXB0ZWQuc29tZSh0eXBlID0+IHtcbiAgICAgICAgY29uc3QgdCA9IHR5cGUudG9Mb3dlckNhc2UoKS50cmltKCk7XG4gICAgICAgIGlmICh0LmVuZHNXaXRoKCcvKicpKSB7XG4gICAgICAgICAgY29uc3QgYmFzZVR5cGUgPSB0LnNsaWNlKDAsIHQuaW5kZXhPZignLycpKTtcblxuICAgICAgICAgIHJldHVybiBtaW1lVHlwZS5zdGFydHNXaXRoKGAke2Jhc2VUeXBlfS9gKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBtaW1lVHlwZSA9PT0gdCB8fCBmaWxlTmFtZS5lbmRzV2l0aCh0KTtcbiAgICAgIH0pO1xuXG4gICAgICByZXR1cm4gIWlzQWNjZXB0ZWQgPyB7IGZpbGVUeXBlOiB7IGtleTogZXJyb3JLZXksIHBhcmFtczogeyBhY2NlcHRlZCB9IH0gfSA6IG51bGw7XG4gICAgfTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// @ts-strict-ignore
|
|
2
|
+
import { Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation } from '@angular/core';
|
|
3
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
+
import { v4 as uuid } from 'uuid';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
7
|
+
import * as i2 from "@ngx-translate/core";
|
|
8
|
+
export class QdSwitchComponent {
|
|
9
|
+
// TODO: Refactor FormInput for better internal interface
|
|
10
|
+
inputData;
|
|
11
|
+
value;
|
|
12
|
+
id;
|
|
13
|
+
disabled = false;
|
|
14
|
+
testId = 'switch';
|
|
15
|
+
valueChange = new EventEmitter();
|
|
16
|
+
get active() {
|
|
17
|
+
return this.inputData.active;
|
|
18
|
+
}
|
|
19
|
+
get isDisabled() {
|
|
20
|
+
return this.inputData.disabled || this.disabled;
|
|
21
|
+
}
|
|
22
|
+
get toggleId() {
|
|
23
|
+
const uid = this.inputData ? this.inputData.value + this.id : this.id;
|
|
24
|
+
return `switch-toggle-${uid}`;
|
|
25
|
+
}
|
|
26
|
+
get label() {
|
|
27
|
+
return this.inputData.i18n;
|
|
28
|
+
}
|
|
29
|
+
get labelPosition() {
|
|
30
|
+
return this.inputData.labelPosition || 'right';
|
|
31
|
+
}
|
|
32
|
+
_onChange = () => { };
|
|
33
|
+
_onTouch = () => { };
|
|
34
|
+
ngOnInit() {
|
|
35
|
+
if (!this.id) {
|
|
36
|
+
this.id = uuid();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
registerOnChange(fn) {
|
|
40
|
+
this._onChange = fn;
|
|
41
|
+
this._onChange(this.value);
|
|
42
|
+
}
|
|
43
|
+
registerOnTouched(fn) {
|
|
44
|
+
this._onTouch = fn;
|
|
45
|
+
}
|
|
46
|
+
setDisabledState(state) {
|
|
47
|
+
this.disabled = state;
|
|
48
|
+
}
|
|
49
|
+
writeValue(value) {
|
|
50
|
+
this.value = value;
|
|
51
|
+
this.valueChange.emit(this.value);
|
|
52
|
+
}
|
|
53
|
+
handleClick(value, event) {
|
|
54
|
+
event.stopPropagation();
|
|
55
|
+
if (this.disabled) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const _value = value !== this.value ? value : null;
|
|
59
|
+
this._onChange(_value);
|
|
60
|
+
this._onTouch(_value);
|
|
61
|
+
this.value = _value;
|
|
62
|
+
this.valueChange.emit(this.value);
|
|
63
|
+
}
|
|
64
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: QdSwitchComponent, selector: "qd-switch", inputs: { inputData: "inputData", value: "value", id: "id", disabled: "disabled", testId: ["data-test-id", "testId"] }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.qd-switch-active": "this.active", "class.qd-switch-disabled": "this.isDisabled" }, classAttribute: "qd-switch" }, providers: [
|
|
66
|
+
{
|
|
67
|
+
provide: NG_VALUE_ACCESSOR,
|
|
68
|
+
useExisting: QdSwitchComponent,
|
|
69
|
+
multi: true
|
|
70
|
+
}
|
|
71
|
+
], ngImport: i0, template: "<label [for]=\"toggleId\">\n <div class=\"switch-content\" *ngIf=\"labelPosition === 'left'\" [attr.data-test-id]=\"testId + '-label'\">\n {{ label | translate }}\n </div>\n <div class=\"switch-toggle-bar\">\n <input\n class=\"switch-toggle-input\"\n name=\"switch-toggle\"\n type=\"checkbox\"\n [id]=\"toggleId\"\n (click)=\"handleClick(value, $event)\"\n [value]=\"value\"\n [disabled]=\"isDisabled\"\n [attr.data-test-id]=\"testId + '-input'\"\n />\n <div class=\"switch-toggle-button\"></div>\n </div>\n <div class=\"switch-content\" *ngIf=\"labelPosition === 'right'\" [attr.data-test-id]=\"testId + '-content'\">\n {{ label | translate }}\n </div>\n</label>\n", styles: [".qd-switch label{display:flex;width:max-content;align-items:center}.qd-switch label:hover{cursor:pointer}.qd-switch .switch-toggle-bar{position:relative;width:2.5rem;height:1.25rem;border-radius:1.25rem;background-color:#e5e5e5}.qd-switch .switch-toggle-bar input{appearance:none}.qd-switch .switch-toggle-bar .switch-toggle-button{position:absolute;top:0;width:1.25rem;height:1.25rem;border-radius:1.25rem;background-color:#b4b4b4;transition:all 80ms linear;transition-property:transform}.qd-switch .switch-content{margin-right:.75rem;margin-left:.75rem;color:#171717;font-size:.875rem;font-weight:400;line-height:.875rem}.qd-switch:hover .switch-toggle-bar{background-color:#d5d5d5}.qd-switch:hover .switch-toggle-bar .switch-toggle-button{background-color:#979797}.qd-switch.qd-switch-active .switch-toggle-bar{background-color:#c3e8cd}.qd-switch.qd-switch-active .switch-toggle-bar .switch-toggle-button{background-color:#00813a;transform:translate(1.25rem)}.qd-switch.qd-switch-active:hover .switch-toggle-bar .switch-toggle-button{background-color:#006226}.qd-switch.qd-switch-disabled label:hover{cursor:initial}.qd-switch.qd-switch-disabled .switch-toggle-bar{background-color:#efefef}.qd-switch.qd-switch-disabled .switch-toggle-bar .switch-toggle-button{background-color:#d5d5d5}.qd-switch.qd-switch-disabled .switch-content{color:#757575}.qd-switch.qd-switch-disabled:hover .switch-toggle-bar{background-color:#efefef}.qd-switch.qd-switch-disabled:hover .switch-toggle-bar .switch-toggle-button{background-color:#d5d5d5}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
72
|
+
}
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdSwitchComponent, decorators: [{
|
|
74
|
+
type: Component,
|
|
75
|
+
args: [{ selector: 'qd-switch', encapsulation: ViewEncapsulation.None, providers: [
|
|
76
|
+
{
|
|
77
|
+
provide: NG_VALUE_ACCESSOR,
|
|
78
|
+
useExisting: QdSwitchComponent,
|
|
79
|
+
multi: true
|
|
80
|
+
}
|
|
81
|
+
], host: { class: 'qd-switch' }, template: "<label [for]=\"toggleId\">\n <div class=\"switch-content\" *ngIf=\"labelPosition === 'left'\" [attr.data-test-id]=\"testId + '-label'\">\n {{ label | translate }}\n </div>\n <div class=\"switch-toggle-bar\">\n <input\n class=\"switch-toggle-input\"\n name=\"switch-toggle\"\n type=\"checkbox\"\n [id]=\"toggleId\"\n (click)=\"handleClick(value, $event)\"\n [value]=\"value\"\n [disabled]=\"isDisabled\"\n [attr.data-test-id]=\"testId + '-input'\"\n />\n <div class=\"switch-toggle-button\"></div>\n </div>\n <div class=\"switch-content\" *ngIf=\"labelPosition === 'right'\" [attr.data-test-id]=\"testId + '-content'\">\n {{ label | translate }}\n </div>\n</label>\n", styles: [".qd-switch label{display:flex;width:max-content;align-items:center}.qd-switch label:hover{cursor:pointer}.qd-switch .switch-toggle-bar{position:relative;width:2.5rem;height:1.25rem;border-radius:1.25rem;background-color:#e5e5e5}.qd-switch .switch-toggle-bar input{appearance:none}.qd-switch .switch-toggle-bar .switch-toggle-button{position:absolute;top:0;width:1.25rem;height:1.25rem;border-radius:1.25rem;background-color:#b4b4b4;transition:all 80ms linear;transition-property:transform}.qd-switch .switch-content{margin-right:.75rem;margin-left:.75rem;color:#171717;font-size:.875rem;font-weight:400;line-height:.875rem}.qd-switch:hover .switch-toggle-bar{background-color:#d5d5d5}.qd-switch:hover .switch-toggle-bar .switch-toggle-button{background-color:#979797}.qd-switch.qd-switch-active .switch-toggle-bar{background-color:#c3e8cd}.qd-switch.qd-switch-active .switch-toggle-bar .switch-toggle-button{background-color:#00813a;transform:translate(1.25rem)}.qd-switch.qd-switch-active:hover .switch-toggle-bar .switch-toggle-button{background-color:#006226}.qd-switch.qd-switch-disabled label:hover{cursor:initial}.qd-switch.qd-switch-disabled .switch-toggle-bar{background-color:#efefef}.qd-switch.qd-switch-disabled .switch-toggle-bar .switch-toggle-button{background-color:#d5d5d5}.qd-switch.qd-switch-disabled .switch-content{color:#757575}.qd-switch.qd-switch-disabled:hover .switch-toggle-bar{background-color:#efefef}.qd-switch.qd-switch-disabled:hover .switch-toggle-bar .switch-toggle-button{background-color:#d5d5d5}\n"] }]
|
|
82
|
+
}], propDecorators: { inputData: [{
|
|
83
|
+
type: Input
|
|
84
|
+
}], value: [{
|
|
85
|
+
type: Input
|
|
86
|
+
}], id: [{
|
|
87
|
+
type: Input
|
|
88
|
+
}], disabled: [{
|
|
89
|
+
type: Input
|
|
90
|
+
}], testId: [{
|
|
91
|
+
type: Input,
|
|
92
|
+
args: ['data-test-id']
|
|
93
|
+
}], valueChange: [{
|
|
94
|
+
type: Output
|
|
95
|
+
}], active: [{
|
|
96
|
+
type: HostBinding,
|
|
97
|
+
args: ['class.qd-switch-active']
|
|
98
|
+
}], isDisabled: [{
|
|
99
|
+
type: HostBinding,
|
|
100
|
+
args: ['class.qd-switch-disabled']
|
|
101
|
+
}] } });
|
|
102
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dpdGNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcWQtdWkvc3JjL2xpYi9mb3Jtcy9zd2l0Y2hlcy9zd2l0Y2gvc3dpdGNoLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcWQtdWkvc3JjL2xpYi9mb3Jtcy9zd2l0Y2hlcy9zd2l0Y2gvc3dpdGNoLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9CQUFvQjtBQUNwQixPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxXQUFXLEVBQUUsS0FBSyxFQUFVLE1BQU0sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMvRyxPQ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CJ0ZXN0SWQgKyAnLWxhYmVsJ1wiPlxuICAgIHt7IGxhYmVsIHwgdHJhbnNsYXRlIH19XG4gIDwvZGl2PlxuICA8ZGl2IGNsYXNzPVwic3dpdGNoLXRvZ2dsZS1iYXJcIj5cbiAgICA8aW5wdXRcbiAgICAgIGNsYXNzPVwic3dpdGNoLXRvZ2dsZS1pbnB1dFwiXG4gICAgICBuYW1lPVwic3dpdGNoLXRvZ2dsZVwiXG4gICAgICB0eXBlPVwiY2hlY2tib3hcIlxuICAgICAgW2lkXT1cInRvZ2dsZUlkXCJcbiAgICAgIChjbGljayk9XCJoYW5kbGVDbGljayh2YWx1ZSwgJGV2ZW50KVwiXG4gICAgICBbdmFsdWVdPVwidmFsdWVcIlxuICAgICAgW2Rpc2FibGVkXT1cImlzRGlzYWJsZWRcIlxuICAgICAgW2F0dHIuZGF0YS10ZXN0LWlkXT1cInRlc3RJZCArICctaW5wdXQnXCJcbiAgICAvPlxuICAgIDxkaXYgY2xhc3M9XCJzd2l0Y2gtdG9nZ2xlLWJ1dHRvblwiPjwvZGl2PlxuICA8L2Rpdj5cbiAgPGRpdiBjbGFzcz1cInN3aXRjaC1jb250ZW50XCIgKm5nSWY9XCJsYWJlbFBvc2l0aW9uID09PSAncmlnaHQnXCIgW2F0dHIuZGF0YS10ZXN0LWlkXT1cInRlc3RJZCArICctY29udGVudCdcIj5cbiAgICB7eyBsYWJlbCB8IHRyYW5zbGF0ZSB9fVxuICA8L2Rpdj5cbjwvbGFiZWw+XG4iXX0=
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// @ts-strict-ignore
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class QdSwitchesService {
|
|
5
|
+
switchesList;
|
|
6
|
+
formatFormControlValues(formControlValues) {
|
|
7
|
+
const values = formControlValues || [];
|
|
8
|
+
return values.map(formControlValue => {
|
|
9
|
+
if (formControlValue.hasOwnProperty('value')) {
|
|
10
|
+
return formControlValue;
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
return { value: formControlValue };
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
isAtLeastOneSelected(list) {
|
|
18
|
+
return list.reduce((hasValue, item) => hasValue || item.active, false);
|
|
19
|
+
}
|
|
20
|
+
setList(list) {
|
|
21
|
+
this.switchesList = list.map(item => ({ ...item, disabled: item.disabled || false }));
|
|
22
|
+
}
|
|
23
|
+
getList() {
|
|
24
|
+
return this.switchesList;
|
|
25
|
+
}
|
|
26
|
+
fillListWithDefaults(formControlValues) {
|
|
27
|
+
const _formControlValue = this.formatFormControlValues(formControlValues);
|
|
28
|
+
this.switchesList = this.switchesList.map((item, index) => {
|
|
29
|
+
let values;
|
|
30
|
+
_formControlValue.forEach(formControlValue => {
|
|
31
|
+
if (formControlValue.value === item.value) {
|
|
32
|
+
values = { active: true, disabled: formControlValue.disabled || item.disabled || false };
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return {
|
|
36
|
+
...item,
|
|
37
|
+
...{ active: item.active || false },
|
|
38
|
+
...{ index },
|
|
39
|
+
...values
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
getValues() {
|
|
44
|
+
if (this.isAtLeastOneSelected(this.switchesList)) {
|
|
45
|
+
return this.switchesList.map(checkbox => (checkbox.active ? checkbox.value : null));
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return [];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
updateList(value) {
|
|
52
|
+
this.switchesList = this.switchesList.map(item => {
|
|
53
|
+
if (item.value === value) {
|
|
54
|
+
return { ...item, ...{ active: !item.active } };
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return item;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdSwitchesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
62
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdSwitchesService });
|
|
63
|
+
}
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdSwitchesService, decorators: [{
|
|
65
|
+
type: Injectable
|
|
66
|
+
}] });
|
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dpdGNoZXMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcWQtdWkvc3JjL2xpYi9mb3Jtcy9zd2l0Y2hlcy9zd2l0Y2hlcy1zZXJ2aWNlL3N3aXRjaGVzLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0JBQW9CO0FBQ3BCLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBSzNDLE1BQU0sT0FBTyxpQkFBaUI7SUFDcEIsWUFBWSxDQUFrQjtJQUU5Qix1QkFBdUIsQ0FBQyxpQkFBaUI7UUFDL0MsTUFBTSxNQUFNLEdBQUcsaUJBQWlCLElBQUksRUFBRSxDQUFDO1FBRXZDLE9BQU8sTUFBTSxDQUFDLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQyxFQUFFO1lBQ25DLElBQUksZ0JBQWdCLENBQUMsY0FBYyxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUM7Z0JBQzdDLE9BQU8sZ0JBQWdCLENBQUM7WUFDMUIsQ0FBQztpQkFBTSxDQUFDO2dCQUNOLE9BQU8sRUFBRSxLQUFLLEVBQUUsZ0JBQWdCLEVBQUUsQ0FBQztZQUNyQyxDQUFDO1FBQ0gsQ0FBQyxDQU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