@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,47 @@
|
|
|
1
|
+
import { Component, SkipSelf } from '@angular/core';
|
|
2
|
+
import { DialogRef } from '@angular/cdk/dialog';
|
|
3
|
+
import { QdFileCollectorService } from '../services/file-collector.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../services/file-collector.service";
|
|
6
|
+
import * as i2 from "@angular/cdk/dialog";
|
|
7
|
+
import * as i3 from "@angular/common";
|
|
8
|
+
import * as i4 from "../../button/button/button.component";
|
|
9
|
+
import * as i5 from "../../dialog/action/dialog-action.component";
|
|
10
|
+
import * as i6 from "../../dialog/dialog.component";
|
|
11
|
+
import * as i7 from "./item/file-collector-dialog-item.component";
|
|
12
|
+
import * as i8 from "@ngx-translate/core";
|
|
13
|
+
export class QdFileCollectorDialogComponent {
|
|
14
|
+
fileCollectorService;
|
|
15
|
+
dialogFileCollectorService;
|
|
16
|
+
dialogRef;
|
|
17
|
+
get fileUploads() {
|
|
18
|
+
return this.dialogFileCollectorService.fileUploads;
|
|
19
|
+
}
|
|
20
|
+
constructor(fileCollectorService, dialogFileCollectorService, dialogRef) {
|
|
21
|
+
this.fileCollectorService = fileCollectorService;
|
|
22
|
+
this.dialogFileCollectorService = dialogFileCollectorService;
|
|
23
|
+
this.dialogRef = dialogRef;
|
|
24
|
+
this.dialogFileCollectorService.config = this.fileCollectorService.config;
|
|
25
|
+
}
|
|
26
|
+
uploadFiles(files) {
|
|
27
|
+
Array.from(files).forEach((file) => this.dialogFileCollectorService.uploadFile(file));
|
|
28
|
+
}
|
|
29
|
+
close() {
|
|
30
|
+
this.dialogRef.close(this.fileUploads);
|
|
31
|
+
}
|
|
32
|
+
isCloseButtonDisabled() {
|
|
33
|
+
return !this.fileUploads.every(this._isFileUploadCompleted);
|
|
34
|
+
}
|
|
35
|
+
_isFileUploadCompleted(fileUpload) {
|
|
36
|
+
return !!fileUpload.error || fileUpload.progress === 100;
|
|
37
|
+
}
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdFileCollectorDialogComponent, deps: [{ token: i1.QdFileCollectorService, skipSelf: true }, { token: i1.QdFileCollectorService }, { token: i2.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: QdFileCollectorDialogComponent, selector: "qd-file-collector-dialog", providers: [QdFileCollectorService], ngImport: i0, template: "<qd-dialog>\n <qd-file-collector-dialog-item\n *ngFor=\"let fileUpload of this.fileUploads\"\n [progress]=\"fileUpload.progress\"\n [collectedFile]=\"fileUpload.collectedFile\"\n [error]=\"fileUpload.error\"\n ></qd-file-collector-dialog-item>\n <qd-dialog-action>\n <button qdButton (click)=\"close()\" [disabled]=\"isCloseButtonDisabled()\">\n {{ \"i18n.qd.fileCollector.button.finish\" | translate }}\n </button>\n </qd-dialog-action>\n</qd-dialog>\n", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i4.QdButtonComponent, selector: "button[qdButton], a[qdButton], button[qd-button]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "component", type: i5.QdDialogActionComponent, selector: "qd-dialog-action" }, { kind: "component", type: i6.QdDialogComponent, selector: "qd-dialog" }, { kind: "component", type: i7.QdFileCollectorDialogItemComponent, selector: "qd-file-collector-dialog-item", inputs: ["progress", "collectedFile", "error"] }, { kind: "pipe", type: i8.TranslatePipe, name: "translate" }] });
|
|
40
|
+
}
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdFileCollectorDialogComponent, decorators: [{
|
|
42
|
+
type: Component,
|
|
43
|
+
args: [{ selector: 'qd-file-collector-dialog', providers: [QdFileCollectorService], template: "<qd-dialog>\n <qd-file-collector-dialog-item\n *ngFor=\"let fileUpload of this.fileUploads\"\n [progress]=\"fileUpload.progress\"\n [collectedFile]=\"fileUpload.collectedFile\"\n [error]=\"fileUpload.error\"\n ></qd-file-collector-dialog-item>\n <qd-dialog-action>\n <button qdButton (click)=\"close()\" [disabled]=\"isCloseButtonDisabled()\">\n {{ \"i18n.qd.fileCollector.button.finish\" | translate }}\n </button>\n </qd-dialog-action>\n</qd-dialog>\n" }]
|
|
44
|
+
}], ctorParameters: () => [{ type: i1.QdFileCollectorService, decorators: [{
|
|
45
|
+
type: SkipSelf
|
|
46
|
+
}] }, { type: i1.QdFileCollectorService }, { type: i2.DialogRef }] });
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1jb2xsZWN0b3ItZGlhbG9nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcWQtdWkvc3JjL2xpYi9maWxlLWNvbGxlY3Rvci9kaWFsb2cvZmlsZS1jb2xsZWN0b3ItZGlhbG9nLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcWQtdWkvc3JjL2xpYi9maWxlLWNvbGxlY3Rvci9kaWFsb2cvZmlsZS1jb2xsZWN0b3ItZGlhbG9nLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3BELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUdoRCxPQUFPLEVBQUUs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maWxlVXBsb2Fkc1wiXG4gICAgW3Byb2dyZXNzXT1cImZpbGVVcGxvYWQucHJvZ3Jlc3NcIlxuICAgIFtjb2xsZWN0ZWRGaWxlXT1cImZpbGVVcGxvYWQuY29sbGVjdGVkRmlsZVwiXG4gICAgW2Vycm9yXT1cImZpbGVVcGxvYWQuZXJyb3JcIlxuICA+PC9xZC1maWxlLWNvbGxlY3Rvci1kaWFsb2ctaXRlbT5cbiAgPHFkLWRpYWxvZy1hY3Rpb24+XG4gICAgPGJ1dHRvbiBxZEJ1dHRvbiAoY2xpY2spPVwiY2xvc2UoKVwiIFtkaXNhYmxlZF09XCJpc0Nsb3NlQnV0dG9uRGlzYWJsZWQoKVwiPlxuICAgICAge3sgXCJpMThuLnFkLmZpbGVDb2xsZWN0b3IuYnV0dG9uLmZpbmlzaFwiIHwgdHJhbnNsYXRlIH19XG4gICAgPC9idXR0b24+XG4gIDwvcWQtZGlhbG9nLWFjdGlvbj5cbjwvcWQtZGlhbG9nPlxuIl19
|
package/esm2022/lib/file-collector/dialog/item/error/file-collector-dialog-item-error.component.mjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// @ts-strict-ignore
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
3
|
+
import { QdUploadErrorType } from '../../../models/file-upload';
|
|
4
|
+
import { QdFileCollectorService } from '../../../services/file-collector.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../../services/file-collector.service";
|
|
7
|
+
import * as i2 from "@angular/common";
|
|
8
|
+
import * as i3 from "@ngx-translate/core";
|
|
9
|
+
import * as i4 from "../../../../core/pipes/placeholder.pipe";
|
|
10
|
+
import * as i5 from "../../../pipes/filesize.pipe";
|
|
11
|
+
export class QdFileCollectorDialogItemErrorComponent {
|
|
12
|
+
fileCollectorService;
|
|
13
|
+
error;
|
|
14
|
+
QdUploadErrorType = QdUploadErrorType;
|
|
15
|
+
get maxFileSizeInBytes() {
|
|
16
|
+
return this.config?.maxFileSizeInBytes;
|
|
17
|
+
}
|
|
18
|
+
get invalidMimeTypeErrorMessageI18n() {
|
|
19
|
+
return this.config?.invalidMimeTypeErrorMessageI18n;
|
|
20
|
+
}
|
|
21
|
+
get invalidFileNameErrorMessageI18n() {
|
|
22
|
+
return this.config?.invalidFileNameErrorMessageI18n;
|
|
23
|
+
}
|
|
24
|
+
get config() {
|
|
25
|
+
return this.fileCollectorService.config;
|
|
26
|
+
}
|
|
27
|
+
constructor(fileCollectorService) {
|
|
28
|
+
this.fileCollectorService = fileCollectorService;
|
|
29
|
+
}
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdFileCollectorDialogItemErrorComponent, deps: [{ token: i1.QdFileCollectorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: QdFileCollectorDialogItemErrorComponent, selector: "qd-file-collector-dialog-item-error", inputs: { error: "error" }, ngImport: i0, template: "<span *ngIf=\"error.message; else errorMessageNotGiven\">{{ error.message }}</span>\n<ng-template #errorMessageNotGiven [ngSwitch]=\"error.type\">\n <span *ngSwitchCase=\"QdUploadErrorType.INVALID_MIME_TYPE\">{{\n invalidMimeTypeErrorMessageI18n || \"i18n.qd.fileCollector.invalid.fileType\" | translate\n }}</span>\n <span *ngSwitchCase=\"QdUploadErrorType.INVALID_FILE_SIZE\">{{\n \"i18n.qd.fileCollector.invalid.fileSize\"\n | translate\n | placeholder: \"maxFileSize\" : (maxFileSizeInBytes | filesize | async)\n }}</span>\n <span *ngSwitchCase=\"QdUploadErrorType.INVALID_FILE_NAME\">{{\n invalidFileNameErrorMessageI18n || \"i18n.qd.fileCollector.invalid.fileName\" | translate\n }}</span>\n <span *ngSwitchCase=\"QdUploadErrorType.UNKNOWN_ERROR\">{{ \"i18n.qd.fileCollector.invalid.unknown\" | translate }}</span>\n</ng-template>\n", styles: [":host{display:flex;width:100%;align-items:center}:host span{color:#c70023}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "pipe", type: i4.QdPlaceholderPipe, name: "placeholder" }, { kind: "pipe", type: i5.QdFileSizePipe, name: "filesize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
32
|
+
}
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdFileCollectorDialogItemErrorComponent, decorators: [{
|
|
34
|
+
type: Component,
|
|
35
|
+
args: [{ selector: 'qd-file-collector-dialog-item-error', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span *ngIf=\"error.message; else errorMessageNotGiven\">{{ error.message }}</span>\n<ng-template #errorMessageNotGiven [ngSwitch]=\"error.type\">\n <span *ngSwitchCase=\"QdUploadErrorType.INVALID_MIME_TYPE\">{{\n invalidMimeTypeErrorMessageI18n || \"i18n.qd.fileCollector.invalid.fileType\" | translate\n }}</span>\n <span *ngSwitchCase=\"QdUploadErrorType.INVALID_FILE_SIZE\">{{\n \"i18n.qd.fileCollector.invalid.fileSize\"\n | translate\n | placeholder: \"maxFileSize\" : (maxFileSizeInBytes | filesize | async)\n }}</span>\n <span *ngSwitchCase=\"QdUploadErrorType.INVALID_FILE_NAME\">{{\n invalidFileNameErrorMessageI18n || \"i18n.qd.fileCollector.invalid.fileName\" | translate\n }}</span>\n <span *ngSwitchCase=\"QdUploadErrorType.UNKNOWN_ERROR\">{{ \"i18n.qd.fileCollector.invalid.unknown\" | translate }}</span>\n</ng-template>\n", styles: [":host{display:flex;width:100%;align-items:center}:host span{color:#c70023}\n"] }]
|
|
36
|
+
}], ctorParameters: () => [{ type: i1.QdFileCollectorService }], propDecorators: { error: [{
|
|
37
|
+
type: Input
|
|
38
|
+
}] } });
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1jb2xsZWN0b3ItZGlhbG9nLWl0ZW0tZXJyb3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9xZC11aS9zcmMvbGliL2ZpbGUtY29sbGVjdG9yL2RpYWxvZy9pdGVtL2Vycm9yL2ZpbGUtY29sbGVjdG9yLWRpYWxvZy1pdGVtLWVycm9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcWQtdWkvc3JjL2xpYi9maWxlLWNvbGxlY3Rvci9kaWFsb2cvaXRlbS9lcnJvci9maWxlLWNvbGxlY3Rvci1kaWFsb2ctaXRlbS1lcnJvci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQkFBb0I7QUFDcEIsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUUsT0FBTyxFQUFpQixpQkFBaUIsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBQy9FLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDBDQUEwQyxDQUFDOzs7Ozs7O0FBU2xGLE1BQU0sT0FBTyx1Q0FBdUM7SUFxQnJCO0lBcEJwQixLQUFLLENBQWdCO0lBRVgsaUJBQWlCLEdBQUcsaUJBQWlCLENBQUM7SUFFekQsSUFBSSxrQkFBa0I7UUFDcEIsT0FBTyxJQUFJLENBQUMsTUFBTSxFQUFFLGtC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HJhbnNsYXRlXG4gIH19PC9zcGFuPlxuICA8c3BhbiAqbmdTd2l0Y2hDYXNlPVwiUWRVcGxvYWRFcnJvclR5cGUuVU5LTk9XTl9FUlJPUlwiPnt7IFwiaTE4bi5xZC5maWxlQ29sbGVjdG9yLmludmFsaWQudW5rbm93blwiIHwgdHJhbnNsYXRlIH19PC9zcGFuPlxuPC9uZy10ZW1wbGF0ZT5cbiJdfQ==
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// @ts-strict-ignore
|
|
2
|
+
import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "../../../icon/icon/icon.component";
|
|
6
|
+
import * as i3 from "./progress/file-collector-dialog-item-progress.component";
|
|
7
|
+
import * as i4 from "./error/file-collector-dialog-item-error.component";
|
|
8
|
+
import * as i5 from "../../pipes/filesize.pipe";
|
|
9
|
+
export class QdFileCollectorDialogItemComponent {
|
|
10
|
+
progress;
|
|
11
|
+
collectedFile;
|
|
12
|
+
error;
|
|
13
|
+
get isSuccessful() {
|
|
14
|
+
return !this.error && this.progress === 100;
|
|
15
|
+
}
|
|
16
|
+
get hasError() {
|
|
17
|
+
return !!this.error;
|
|
18
|
+
}
|
|
19
|
+
canUpload() {
|
|
20
|
+
return false; // TODO discuss whether we want this feature; return !!this.error;
|
|
21
|
+
}
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdFileCollectorDialogItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: QdFileCollectorDialogItemComponent, selector: "qd-file-collector-dialog-item", inputs: { progress: "progress", collectedFile: "collectedFile", error: "error" }, host: { properties: { "class.success": "this.isSuccessful", "class.error": "this.hasError" } }, ngImport: i0, template: "<span class=\"name\">{{ this.collectedFile.name }}</span>\n<qd-file-collector-dialog-item-progress\n [progress]=\"this.progress\"\n [error]=\"this.error\"\n></qd-file-collector-dialog-item-progress>\n<span class=\"filesize\">{{ this.collectedFile.size | filesize | async }}</span>\n<qd-icon class=\"upload\" icon=\"dataUpload\" *ngIf=\"canUpload()\"></qd-icon>\n<qd-file-collector-dialog-item-error [error]=\"this.error\" *ngIf=\"!!this.error\"></qd-file-collector-dialog-item-error>\n", styles: [":host{color:#333;font-size:.875rem;font-weight:400;line-height:1.3125rem;position:relative;display:grid;align-items:self-start;padding:.625rem 1rem .625rem 2.875rem;border-left:transparent .1875rem solid;margin-bottom:.75rem;background:#fff;gap:.25rem 1rem;grid-template-columns:30rem auto max-content;outline:rgb(151,151,151) .0625rem solid}:host qd-file-collector-dialog-item-error{grid-column:span 2}:host .filesize{text-align:right}@media (max-width: 959.98px){:host{grid-template-columns:18.75rem auto max-content}:host .name{overflow:auto;overflow-wrap:break-word}}@media (max-width: 599.98px){:host{grid-template-columns:auto auto auto}:host .name,:host qd-file-collector-dialog-item-progress{grid-column:span 2}:host qd-file-collector-dialog-item-progress,:host .filesize{order:-1}}:host:last-child{margin-bottom:0}:host.error{border-left-color:#c70023}:host.success{border-left-color:#00813a}:host:before{position:absolute;top:.5625rem;left:.875rem;content:\"\\e964\";font-family:Quadrel-Icon,sans-serif;font-size:1.25rem}:host .upload{color:#454545;cursor:pointer;font-size:1rem}:host .upload:hover,:host .upload:focus{color:#171717}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.QdIconComponent, selector: "qd-icon", inputs: ["icon"] }, { kind: "component", type: i3.QdFileCollectorDialogItemProgressComponent, selector: "qd-file-collector-dialog-item-progress", inputs: ["progress", "error"] }, { kind: "component", type: i4.QdFileCollectorDialogItemErrorComponent, selector: "qd-file-collector-dialog-item-error", inputs: ["error"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.QdFileSizePipe, name: "filesize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdFileCollectorDialogItemComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{ selector: 'qd-file-collector-dialog-item', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"name\">{{ this.collectedFile.name }}</span>\n<qd-file-collector-dialog-item-progress\n [progress]=\"this.progress\"\n [error]=\"this.error\"\n></qd-file-collector-dialog-item-progress>\n<span class=\"filesize\">{{ this.collectedFile.size | filesize | async }}</span>\n<qd-icon class=\"upload\" icon=\"dataUpload\" *ngIf=\"canUpload()\"></qd-icon>\n<qd-file-collector-dialog-item-error [error]=\"this.error\" *ngIf=\"!!this.error\"></qd-file-collector-dialog-item-error>\n", styles: [":host{color:#333;font-size:.875rem;font-weight:400;line-height:1.3125rem;position:relative;display:grid;align-items:self-start;padding:.625rem 1rem .625rem 2.875rem;border-left:transparent .1875rem solid;margin-bottom:.75rem;background:#fff;gap:.25rem 1rem;grid-template-columns:30rem auto max-content;outline:rgb(151,151,151) .0625rem solid}:host qd-file-collector-dialog-item-error{grid-column:span 2}:host .filesize{text-align:right}@media (max-width: 959.98px){:host{grid-template-columns:18.75rem auto max-content}:host .name{overflow:auto;overflow-wrap:break-word}}@media (max-width: 599.98px){:host{grid-template-columns:auto auto auto}:host .name,:host qd-file-collector-dialog-item-progress{grid-column:span 2}:host qd-file-collector-dialog-item-progress,:host .filesize{order:-1}}:host:last-child{margin-bottom:0}:host.error{border-left-color:#c70023}:host.success{border-left-color:#00813a}:host:before{position:absolute;top:.5625rem;left:.875rem;content:\"\\e964\";font-family:Quadrel-Icon,sans-serif;font-size:1.25rem}:host .upload{color:#454545;cursor:pointer;font-size:1rem}:host .upload:hover,:host .upload:focus{color:#171717}\n"] }]
|
|
28
|
+
}], propDecorators: { progress: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], collectedFile: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}], error: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], isSuccessful: [{
|
|
35
|
+
type: HostBinding,
|
|
36
|
+
args: ['class.success']
|
|
37
|
+
}], hasError: [{
|
|
38
|
+
type: HostBinding,
|
|
39
|
+
args: ['class.error']
|
|
40
|
+
}] } });
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1jb2xsZWN0b3ItZGlhbG9nLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9xZC11aS9zcmMvbGliL2ZpbGUtY29sbGVjdG9yL2RpYWxvZy9pdGVtL2ZpbGUtY29sbGVjdG9yLWRpYWxvZy1pdGVtLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcWQtdWkvc3JjL2xpYi9maWxlLWNvbGxlY3Rvci9kaWFsb2cvaXRlbS9maWxlLWNvbGxlY3Rvci1kaWFsb2ctaXRlbS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQkFBb0I7QUFDcEIsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxXQUFXLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7Ozs7O0FBVXZGLE1BQU0sT0FBTyxrQ0FBa0M7SUFDcEMsUUFBUSxDQUFTO0lBQ2pCLGFBQWEsQ0FBa0I7SUFDL0IsS0FBSyxDQUFnQjtJQUU5QixJQUFrQyxZQUFZO1FBQzVDLE9BQU8sQ0FBQyxJQUFJLENBQUMsS0FBSyxJQUFJLElBQUksQ0FBQyxRQUFRLEtBQUssR0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iZmlsZXNpemVcIj57eyB0aGlzLmNvbGxlY3RlZEZpbGUuc2l6ZSB8IGZpbGVzaXplIHwgYXN5bmMgfX08L3NwYW4+XG48cWQtaWNvbiBjbGFzcz1cInVwbG9hZFwiIGljb249XCJkYXRhVXBsb2FkXCIgKm5nSWY9XCJjYW5VcGxvYWQoKVwiPjwvcWQtaWNvbj5cbjxxZC1maWxlLWNvbGxlY3Rvci1kaWFsb2ctaXRlbS1lcnJvciBbZXJyb3JdPVwidGhpcy5lcnJvclwiICpuZ0lmPVwiISF0aGlzLmVycm9yXCI+PC9xZC1maWxlLWNvbGxlY3Rvci1kaWFsb2ctaXRlbS1lcnJvcj5cbiJdfQ==
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// @ts-strict-ignore
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
3
|
+
import { QdUploadProgressState } from '../../../models/upload-progress';
|
|
4
|
+
import { BehaviorSubject, NEVER, Subject, switchMap, timer } from 'rxjs';
|
|
5
|
+
import { takeUntil } from 'rxjs/operators';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/common";
|
|
8
|
+
import * as i2 from "@ngx-translate/core";
|
|
9
|
+
export class QdFileCollectorDialogItemProgressComponent {
|
|
10
|
+
progress = 0;
|
|
11
|
+
error;
|
|
12
|
+
_uploadStateSubject = new BehaviorSubject(QdUploadProgressState.STARTING);
|
|
13
|
+
_destroyed$ = new Subject();
|
|
14
|
+
uploadState$ = this._uploadStateSubject.asObservable();
|
|
15
|
+
changeUploadStateFinishingToSuccessDelay = 1000;
|
|
16
|
+
ngOnInit() {
|
|
17
|
+
this.updateUploadState();
|
|
18
|
+
this.changeUploadStateFinishingToSuccessAfterDelay();
|
|
19
|
+
}
|
|
20
|
+
changeUploadStateFinishingToSuccessAfterDelay() {
|
|
21
|
+
this.uploadState$
|
|
22
|
+
.pipe(switchMap(uploadState => uploadState === QdUploadProgressState.FINISHING ? timer(this.changeUploadStateFinishingToSuccessDelay) : NEVER), takeUntil(this._destroyed$))
|
|
23
|
+
.subscribe(() => {
|
|
24
|
+
this._uploadStateSubject.next(QdUploadProgressState.SUCCESS);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
ngOnDestroy() {
|
|
28
|
+
this._destroyed$.complete();
|
|
29
|
+
}
|
|
30
|
+
ngOnChanges(changes) {
|
|
31
|
+
if ((changes['progress'] && !changes['progress'].firstChange) ||
|
|
32
|
+
(changes['error'] && !changes['error'].firstChange)) {
|
|
33
|
+
this.updateUploadState();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
updateUploadState() {
|
|
37
|
+
this._uploadStateSubject.next(this.getUploadState());
|
|
38
|
+
}
|
|
39
|
+
getUploadState() {
|
|
40
|
+
if (this.error)
|
|
41
|
+
return QdUploadProgressState.ERROR;
|
|
42
|
+
if (this.progress === 0) {
|
|
43
|
+
return QdUploadProgressState.STARTING;
|
|
44
|
+
}
|
|
45
|
+
else if (this.progress === 100) {
|
|
46
|
+
return QdUploadProgressState.FINISHING;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
return QdUploadProgressState.IN_PROGRESS;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
QdUploadState = QdUploadProgressState;
|
|
53
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdFileCollectorDialogItemProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
54
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: QdFileCollectorDialogItemProgressComponent, selector: "qd-file-collector-dialog-item-progress", inputs: { progress: "progress", error: "error" }, host: { classAttribute: "qd-file-collector-dialog-item-progress" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"uploadState$ | async as uploadState\">\n <span\n [class]=\"'upload-progress-bar-container'\"\n *ngIf=\"\n [QdUploadState.STARTING, QdUploadState.IN_PROGRESS, QdUploadState.FINISHING].includes(uploadState);\n else completed\n \"\n >\n <span\n [ngClass]=\"{\n 'upload-progress-bar-progress': true,\n filled: [QdUploadState.IN_PROGRESS, QdUploadState.FINISHING].includes(uploadState),\n success: QdUploadState.FINISHING === uploadState\n }\"\n [class]=\"'upload-progress-bar-progress'\"\n [ngStyle]=\"{ minWidth: progress + '%' }\"\n >\n {{ progress ? progress : 0 }}%\n </span>\n </span>\n <ng-template #completed>\n <span [class]=\"'upload-state-chip ' + uploadState\">\n {{ \"i18n.qd.fileCollector.uploadState.\" + uploadState | translate }}\n </span>\n </ng-template>\n</ng-container>\n", styles: [":host{position:relative;display:flex;margin-top:.0625rem}:host .upload-progress-bar-container{width:12.5rem}:host .upload-progress-bar-progress,:host .upload-state-chip{color:#e97e00;font-size:.625rem;font-weight:500;line-height:1rem;display:inline-block;padding-right:.375rem;padding-left:.5rem;border:solid .0625rem rgb(233,126,0);border-radius:.5rem;background:#fff;transition:min-width 1s}:host .upload-progress-bar-progress.filled,:host .upload-state-chip.filled{border-color:#e97e00;background:#e97e00;color:#fff}:host .upload-progress-bar-progress.success,:host .upload-state-chip.success{border-color:#00813a;background:#fff;color:#00813a}:host .upload-progress-bar-progress.success.filled,:host .upload-state-chip.success.filled{border-color:#00813a;background:#00813a;color:#fff}:host .upload-progress-bar-progress.error,:host .upload-state-chip.error{border-color:#c70023;background:#fff;color:#c70023}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
55
|
+
}
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdFileCollectorDialogItemProgressComponent, decorators: [{
|
|
57
|
+
type: Component,
|
|
58
|
+
args: [{ selector: 'qd-file-collector-dialog-item-progress', host: { class: 'qd-file-collector-dialog-item-progress' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"uploadState$ | async as uploadState\">\n <span\n [class]=\"'upload-progress-bar-container'\"\n *ngIf=\"\n [QdUploadState.STARTING, QdUploadState.IN_PROGRESS, QdUploadState.FINISHING].includes(uploadState);\n else completed\n \"\n >\n <span\n [ngClass]=\"{\n 'upload-progress-bar-progress': true,\n filled: [QdUploadState.IN_PROGRESS, QdUploadState.FINISHING].includes(uploadState),\n success: QdUploadState.FINISHING === uploadState\n }\"\n [class]=\"'upload-progress-bar-progress'\"\n [ngStyle]=\"{ minWidth: progress + '%' }\"\n >\n {{ progress ? progress : 0 }}%\n </span>\n </span>\n <ng-template #completed>\n <span [class]=\"'upload-state-chip ' + uploadState\">\n {{ \"i18n.qd.fileCollector.uploadState.\" + uploadState | translate }}\n </span>\n </ng-template>\n</ng-container>\n", styles: [":host{position:relative;display:flex;margin-top:.0625rem}:host .upload-progress-bar-container{width:12.5rem}:host .upload-progress-bar-progress,:host .upload-state-chip{color:#e97e00;font-size:.625rem;font-weight:500;line-height:1rem;display:inline-block;padding-right:.375rem;padding-left:.5rem;border:solid .0625rem rgb(233,126,0);border-radius:.5rem;background:#fff;transition:min-width 1s}:host .upload-progress-bar-progress.filled,:host .upload-state-chip.filled{border-color:#e97e00;background:#e97e00;color:#fff}:host .upload-progress-bar-progress.success,:host .upload-state-chip.success{border-color:#00813a;background:#fff;color:#00813a}:host .upload-progress-bar-progress.success.filled,:host .upload-state-chip.success.filled{border-color:#00813a;background:#00813a;color:#fff}:host .upload-progress-bar-progress.error,:host .upload-state-chip.error{border-color:#c70023;background:#fff;color:#c70023}\n"] }]
|
|
59
|
+
}], propDecorators: { progress: [{
|
|
60
|
+
type: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dGUgI2NvbXBsZXRlZD5cbiAgICA8c3BhbiBbY2xhc3NdPVwiJ3VwbG9hZC1zdGF0ZS1jaGlwICcgKyB1cGxvYWRTdGF0ZVwiPlxuICAgICAge3sgXCJpMThuLnFkLmZpbGVDb2xsZWN0b3IudXBsb2FkU3RhdGUuXCIgKyB1cGxvYWRTdGF0ZSB8IHRyYW5zbGF0ZSB9fVxuICAgIDwvc3Bhbj5cbiAgPC9uZy10ZW1wbGF0ZT5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
// @ts-strict-ignore
|
|
2
|
+
import { Component, ElementRef, HostBinding, Input, Optional, ViewChild, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import isEqual from 'lodash/isEqual';
|
|
4
|
+
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
5
|
+
import { filter } from 'rxjs/operators';
|
|
6
|
+
import { QdContainerActionService } from '../container/services/container-action.service';
|
|
7
|
+
import { QdDialogSize } from '../dialog/models/dialog-config.model';
|
|
8
|
+
import { QdDialogService } from '../dialog/services/dialog.service';
|
|
9
|
+
import { QdSectionToolbarActionService } from '../section/services/section-toolbar-action.service';
|
|
10
|
+
import { QdFileCollectorDialogComponent } from './dialog/file-collector-dialog.component';
|
|
11
|
+
import { QdFileCollectorValidationService } from './services/file-collector-validation.service';
|
|
12
|
+
import { QdFileCollectorService } from './services/file-collector.service';
|
|
13
|
+
import { QdEventBrokerService } from '../core/services/event-broker.service';
|
|
14
|
+
import { QdFileTypeService } from './services/file-type.service';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
import * as i1 from "../container/services/container-action.service";
|
|
17
|
+
import * as i2 from "../section/services/section-toolbar-action.service";
|
|
18
|
+
import * as i3 from "../core/services/event-broker.service";
|
|
19
|
+
import * as i4 from "./services/file-collector.service";
|
|
20
|
+
import * as i5 from "./services/file-collector-validation.service";
|
|
21
|
+
import * as i6 from "./services/file-type.service";
|
|
22
|
+
import * as i7 from "../dialog/services/dialog.service";
|
|
23
|
+
import * as i8 from "@angular/common";
|
|
24
|
+
import * as i9 from "../button/button/button.component";
|
|
25
|
+
import * as i10 from "../button/directives/button.directives";
|
|
26
|
+
import * as i11 from "./allowed-files-description/file-collector-allowed-files-description.component";
|
|
27
|
+
import * as i12 from "./item/file-collector-item.component";
|
|
28
|
+
import * as i13 from "@ngx-translate/core";
|
|
29
|
+
/**
|
|
30
|
+
* **QdFileCollectorComponent** is a flexible component for managing files within an application.
|
|
31
|
+
* It supports uploading, downloading, and displaying files, offering various options for customization and configuration.
|
|
32
|
+
*
|
|
33
|
+
* #### **Features**
|
|
34
|
+
*
|
|
35
|
+
* - **Upload**: Allows users to add new files with restrictions on file type and size.
|
|
36
|
+
* - **Download**: Enables downloads directly via URL or, if needed, through Angular’s `HttpClient`, for example, to support authorization.
|
|
37
|
+
* - **Customizable Error Handling**: Validates file size, type, and name pattern, with customizable error messages for user guidance.
|
|
38
|
+
* - **Read-only Mode**: Disables interactions in read-only mode, allowing only viewing or downloading of files.
|
|
39
|
+
* - **Standalone Enabled**: Detects if used within or outside a QLS section structure and, if outside, enables file uploads in standalone mode.
|
|
40
|
+
*
|
|
41
|
+
* #### **Interactions**
|
|
42
|
+
*
|
|
43
|
+
* File interactions are managed through several key functions:
|
|
44
|
+
*
|
|
45
|
+
* - **upload**: Adds a file to the files list if validation is successful.
|
|
46
|
+
* - **delete**: Opens a confirmation dialog that, if confirmed, removes the file from the list.
|
|
47
|
+
* - **readonly/viewonly**: In read-only or view-only mode, upload and delete functions are disabled, limiting user actions.
|
|
48
|
+
*
|
|
49
|
+
* #### **Standalone Mode**
|
|
50
|
+
*
|
|
51
|
+
* Following Quadrel’s design principles, QdFileCollector includes a standalone mode, allowing it to work independently.
|
|
52
|
+
* It automatically detects when used outside a QLS section structure and, in standalone mode, displays an "Add New" button to support file uploads.
|
|
53
|
+
*
|
|
54
|
+
* #### **File Restrictions**
|
|
55
|
+
*
|
|
56
|
+
* - **allowedFileTypes** and **allowedMimeTypes** should not be used together; using both will trigger an error log.
|
|
57
|
+
* - **maxFileSizeInBytes** sets a maximum file size allowed for uploads.
|
|
58
|
+
* - **allowedFileNamePattern** defines a regex pattern for file names; files that don’t match the pattern are rejected.
|
|
59
|
+
*
|
|
60
|
+
* #### **Error Handling**
|
|
61
|
+
*
|
|
62
|
+
* Upload errors can occur in the following cases:
|
|
63
|
+
* - **Invalid MIME Type**: When the file type is not in `allowedMimeTypes`.
|
|
64
|
+
* - **Invalid File Size**: When the file size exceeds `maxFileSizeInBytes`.
|
|
65
|
+
* - **Invalid File Name Pattern**: When the file name does not match `allowedFileNamePattern`.
|
|
66
|
+
*
|
|
67
|
+
* Error messages can be customized:
|
|
68
|
+
* - **invalidMimeTypeErrorMessageI18n**: Custom message for unsupported MIME types.
|
|
69
|
+
* - **invalidFileNameErrorMessageI18n**: Custom message for unsupported file names.
|
|
70
|
+
*
|
|
71
|
+
* #### **File Manager**
|
|
72
|
+
*
|
|
73
|
+
* QdFileManager is an interface that provides methods for uploading and deleting files.
|
|
74
|
+
* To use it with QdFileCollectorComponent, implement this interface in a custom service and provide it via the `QD_FILE_MANAGER_TOKEN` token.
|
|
75
|
+
* This service enables you to create custom file-handling logic.
|
|
76
|
+
*
|
|
77
|
+
* #### **Usage**
|
|
78
|
+
*
|
|
79
|
+
* ```typescript
|
|
80
|
+
* @Injectable()
|
|
81
|
+
* export class MyFileManager implements QdFileManager {
|
|
82
|
+
* upload(file: File): Observable<QdUploadProgress> {
|
|
83
|
+
* // custom implementation here
|
|
84
|
+
* }
|
|
85
|
+
*
|
|
86
|
+
* delete(collectedFile: QdCollectedFile): Observable<boolean> {
|
|
87
|
+
* // custom implementation here
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
*
|
|
91
|
+
* @Component({
|
|
92
|
+
* selector: 'my-file-collector',
|
|
93
|
+
* providers: [
|
|
94
|
+
* {
|
|
95
|
+
* provide: QD_FILE_MANAGER_TOKEN,
|
|
96
|
+
* useClass: MyFileManager
|
|
97
|
+
* }
|
|
98
|
+
* ]
|
|
99
|
+
* })
|
|
100
|
+
* class MyFileCollectorComponent {
|
|
101
|
+
* fileCollectorConfig: QdFileCollectorConfig = {
|
|
102
|
+
* // configuration options here
|
|
103
|
+
* };
|
|
104
|
+
* }
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* ```html
|
|
108
|
+
* <qd-file-collector [config]="fileCollectorConfig"></qd-file-collector>
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
export class QdFileCollectorComponent {
|
|
112
|
+
containerActionService;
|
|
113
|
+
sectionActionService;
|
|
114
|
+
eventBroker;
|
|
115
|
+
fileCollectorService;
|
|
116
|
+
fileCollectorValidationService;
|
|
117
|
+
fileTypeService;
|
|
118
|
+
dialogService;
|
|
119
|
+
viewContainerRef;
|
|
120
|
+
/**
|
|
121
|
+
* Configuration settings for the file collector.
|
|
122
|
+
*/
|
|
123
|
+
config;
|
|
124
|
+
/**
|
|
125
|
+
* Static test ID for integration testing.
|
|
126
|
+
*/
|
|
127
|
+
testId = 'file-collector';
|
|
128
|
+
fileInput;
|
|
129
|
+
get hasContainer() {
|
|
130
|
+
return !!this.containerActionService;
|
|
131
|
+
}
|
|
132
|
+
_subscriptions = new Subscription();
|
|
133
|
+
_viewonly$ = new BehaviorSubject(false);
|
|
134
|
+
get fileUploads() {
|
|
135
|
+
return this.fileCollectorService.fileUploads;
|
|
136
|
+
}
|
|
137
|
+
get canShowAddButton() {
|
|
138
|
+
return (!this.containerActionService && !this.sectionActionService && !this.config?.readonly && !this._viewonly$.value);
|
|
139
|
+
}
|
|
140
|
+
constructor(containerActionService, sectionActionService, eventBroker, fileCollectorService, fileCollectorValidationService, fileTypeService, dialogService, viewContainerRef) {
|
|
141
|
+
this.containerActionService = containerActionService;
|
|
142
|
+
this.sectionActionService = sectionActionService;
|
|
143
|
+
this.eventBroker = eventBroker;
|
|
144
|
+
this.fileCollectorService = fileCollectorService;
|
|
145
|
+
this.fileCollectorValidationService = fileCollectorValidationService;
|
|
146
|
+
this.fileTypeService = fileTypeService;
|
|
147
|
+
this.dialogService = dialogService;
|
|
148
|
+
this.viewContainerRef = viewContainerRef;
|
|
149
|
+
}
|
|
150
|
+
ngOnInit() {
|
|
151
|
+
this.initializeConfig(this.config);
|
|
152
|
+
this.fileCollectorService.initialize(this.config);
|
|
153
|
+
this.fileCollectorValidationService.initialize(this.config);
|
|
154
|
+
this.initViewMode();
|
|
155
|
+
if (this.containerActionService) {
|
|
156
|
+
this._subscriptions.add(this.containerActionService.action$.subscribe(() => this.clickFileInput()));
|
|
157
|
+
}
|
|
158
|
+
if (this.sectionActionService) {
|
|
159
|
+
this._subscriptions.add(this.sectionActionService.action$.pipe(filter(type => type === 'addNew')).subscribe(() => this.clickFileInput()));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
ngOnChanges(changes) {
|
|
163
|
+
if (changes['config'] && !changes['config'].firstChange) {
|
|
164
|
+
this.fileCollectorService.initialize(this.config);
|
|
165
|
+
this.fileCollectorValidationService.initialize(this.config);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
ngOnDestroy() {
|
|
169
|
+
this._subscriptions.unsubscribe();
|
|
170
|
+
}
|
|
171
|
+
handleFiles(event) {
|
|
172
|
+
const dialogRef = this.dialogService.open(QdFileCollectorDialogComponent, {
|
|
173
|
+
dialogSize: QdDialogSize.Default,
|
|
174
|
+
hideCloseHeaderButton: true,
|
|
175
|
+
disableClose: true,
|
|
176
|
+
title: { i18n: 'i18n.qd.fileCollector.title' },
|
|
177
|
+
viewContainerRef: this.viewContainerRef
|
|
178
|
+
});
|
|
179
|
+
dialogRef.closed.subscribe((fileUploads = []) => {
|
|
180
|
+
fileUploads
|
|
181
|
+
.filter(fileUpload => !fileUpload.error && fileUpload.progress === 100)
|
|
182
|
+
.forEach(fileUpload => this.fileUploads.push({ ...fileUpload, newlyUploaded: true }));
|
|
183
|
+
});
|
|
184
|
+
const fileCollectorDialog = dialogRef.componentInstance;
|
|
185
|
+
fileCollectorDialog.uploadFiles(event.target.files);
|
|
186
|
+
event.target.value = '';
|
|
187
|
+
}
|
|
188
|
+
clickFileInput() {
|
|
189
|
+
if (this.fileInput.nativeElement.disabled) {
|
|
190
|
+
this.logError('Uploads disabled via config (readonly/viewonly). Remove the flag or the addNew button.');
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
this.fileInput.nativeElement.click();
|
|
194
|
+
}
|
|
195
|
+
initializeConfig(config) {
|
|
196
|
+
if (!this.validateConfig(config))
|
|
197
|
+
return;
|
|
198
|
+
if (config?.allowedFileTypes) {
|
|
199
|
+
config.allowedMimeTypes = this.fileTypeService.getMimeTypes(config.allowedFileTypes);
|
|
200
|
+
config.allowedFileNamePattern = this.fileTypeService.getFileNamePattern(config.allowedFileTypes);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
validateConfig(config) {
|
|
204
|
+
if (!config)
|
|
205
|
+
return true;
|
|
206
|
+
if (this.hasIncompatibleFileTypeSettings(config) && !this.isConfigConsistentWithAllowedFileTypes(config)) {
|
|
207
|
+
this.logError('Use either "allowedFileTypes" alone or "allowedMimeTypes" + "allowedFileNamePattern", not both.');
|
|
208
|
+
return false;
|
|
209
|
+
}
|
|
210
|
+
return true;
|
|
211
|
+
}
|
|
212
|
+
hasIncompatibleFileTypeSettings(config) {
|
|
213
|
+
return !!config.allowedFileTypes && (!!config.allowedMimeTypes || !!config.allowedFileNamePattern);
|
|
214
|
+
}
|
|
215
|
+
initViewMode() {
|
|
216
|
+
if (typeof this.config?.viewonly === 'boolean') {
|
|
217
|
+
this._viewonly$.next(this.config.viewonly);
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
if (this.eventBroker)
|
|
221
|
+
this._subscriptions.add(this.eventBroker
|
|
222
|
+
.consume('operation_mode_changed')
|
|
223
|
+
.subscribe(({ payload }) => this._viewonly$.next(payload.isViewonly)));
|
|
224
|
+
}
|
|
225
|
+
isConfigConsistentWithAllowedFileTypes(config) {
|
|
226
|
+
return (isEqual(config.allowedMimeTypes, this.fileTypeService.getMimeTypes(config.allowedFileTypes)) &&
|
|
227
|
+
isEqual(config.allowedFileNamePattern, this.fileTypeService.getFileNamePattern(config.allowedFileTypes)));
|
|
228
|
+
}
|
|
229
|
+
logError(message) {
|
|
230
|
+
console.error(`QD-UI | QdFileCollector - ${message}`);
|
|
231
|
+
}
|
|
232
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdFileCollectorComponent, deps: [{ token: i1.QdContainerActionService, optional: true }, { token: i2.QdSectionToolbarActionService, optional: true }, { token: i3.QdEventBrokerService, optional: true }, { token: i4.QdFileCollectorService }, { token: i5.QdFileCollectorValidationService }, { token: i6.QdFileTypeService }, { token: i7.QdDialogService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
233
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: QdFileCollectorComponent, selector: "qd-file-collector", inputs: { config: "config", testId: ["data-test-id", "testId"] }, host: { properties: { "class.has-container": "this.hasContainer" } }, providers: [QdFileCollectorService, QdFileCollectorValidationService], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<button\n qdButton\n qdButtonGhost\n icon=\"plus\"\n *ngIf=\"canShowAddButton\"\n (click)=\"clickFileInput()\"\n [data-test-id]=\"testId + '-button-add-new'\"\n>\n {{ config?.standaloneAddNewLabel?.i18n || \"i18n.qd.fileCollector.standalone.addNew\" | translate }}\n</button>\n\n<input\n [disabled]=\"config?.readonly || config?.viewonly\"\n type=\"file\"\n (change)=\"handleFiles($event)\"\n #fileInput\n hidden\n multiple=\"multiple\"\n/>\n\n<qd-file-collector-allowed-files-description\n *ngIf=\"!config?.readonly && !config?.viewonly\"\n></qd-file-collector-allowed-files-description>\n\n<ng-container *ngFor=\"let fileUpload of this.fileUploads\">\n <qd-file-collector-item\n *ngIf=\"!fileUpload.error && fileUpload.progress === 100\"\n [progress]=\"fileUpload.progress\"\n [newlyUploaded]=\"fileUpload.newlyUploaded\"\n [collectedFile]=\"fileUpload.collectedFile\"\n [error]=\"fileUpload.error\"\n [readonly]=\"config?.readonly\"\n [viewonly]=\"config?.viewonly\"\n [downloadFilesWithHttpClient]=\"config?.downloadFilesWithHttpClient\"\n ></qd-file-collector-item>\n</ng-container>\n", styles: [":host{display:flex;flex-direction:column}:host>.qd-button{align-self:end;margin-bottom:1.5rem}\n"], dependencies: [{ kind: "directive", type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i9.QdButtonComponent, selector: "button[qdButton], a[qdButton], button[qd-button]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "directive", type: i10.QdButtonGhostDirective, selector: "button[qdButtonGhost], a[qdButtonGhost]" }, { kind: "component", type: i11.QdFileCollectorAllowedFilesDescriptionComponent, selector: "qd-file-collector-allowed-files-description" }, { kind: "component", type: i12.QdFileCollectorItemComponent, selector: "qd-file-collector-item", inputs: ["progress", "newlyUploaded", "collectedFile", "error", "readonly", "viewonly", "downloadFilesWithHttpClient"] }, { kind: "pipe", type: i13.TranslatePipe, name: "translate" }] });
|
|
234
|
+
}
|
|
235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: QdFileCollectorComponent, decorators: [{
|
|
236
|
+
type: Component,
|
|
237
|
+
args: [{ selector: 'qd-file-collector', providers: [QdFileCollectorService, QdFileCollectorValidationService], template: "<button\n qdButton\n qdButtonGhost\n icon=\"plus\"\n *ngIf=\"canShowAddButton\"\n (click)=\"clickFileInput()\"\n [data-test-id]=\"testId + '-button-add-new'\"\n>\n {{ config?.standaloneAddNewLabel?.i18n || \"i18n.qd.fileCollector.standalone.addNew\" | translate }}\n</button>\n\n<input\n [disabled]=\"config?.readonly || config?.viewonly\"\n type=\"file\"\n (change)=\"handleFiles($event)\"\n #fileInput\n hidden\n multiple=\"multiple\"\n/>\n\n<qd-file-collector-allowed-files-description\n *ngIf=\"!config?.readonly && !config?.viewonly\"\n></qd-file-collector-allowed-files-description>\n\n<ng-container *ngFor=\"let fileUpload of this.fileUploads\">\n <qd-file-collector-item\n *ngIf=\"!fileUpload.error && fileUpload.progress === 100\"\n [progress]=\"fileUpload.progress\"\n [newlyUploaded]=\"fileUpload.newlyUploaded\"\n [collectedFile]=\"fileUpload.collectedFile\"\n [error]=\"fileUpload.error\"\n [readonly]=\"config?.readonly\"\n [viewonly]=\"config?.viewonly\"\n [downloadFilesWithHttpClient]=\"config?.downloadFilesWithHttpClient\"\n ></qd-file-collector-item>\n</ng-container>\n", styles: [":host{display:flex;flex-direction:column}:host>.qd-button{align-self:end;margin-bottom:1.5rem}\n"] }]
|
|
238
|
+
}], ctorParameters: () => [{ type: i1.QdContainerActionService, decorators: [{
|
|
239
|
+
type: Optional
|
|
240
|
+
}] }, { type: i2.QdSectionToolbarActionService, decorators: [{
|
|
241
|
+
type: Optional
|
|
242
|
+
}] }, { type: i3.QdEventBrokerService, decorators: [{
|
|
243
|
+
type: Optional
|
|
244
|
+
}] }, { type: i4.QdFileCollectorService }, { type: i5.QdFileCollectorValidationService }, { type: i6.QdFileTypeService }, { type: i7.QdDialogService }, { type: i0.ViewContainerRef }], propDecorators: { config: [{
|
|
245
|
+
type: Input
|
|
246
|
+
}], testId: [{
|
|
247
|
+
type: Input,
|
|
248
|
+
args: ['data-test-id']
|
|
249
|
+
}], fileInput: [{
|
|
250
|
+
type: ViewChild,
|
|
251
|
+
args: ['fileInput']
|
|
252
|
+
}], hasContainer: [{
|
|
253
|
+
type: HostBinding,
|
|
254
|
+
args: ['class.has-container']
|
|
255
|
+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