@energinet/watt 4.2.15 → 4.2.16
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/badge/index.d.ts +17 -15
- package/breadcrumbs/index.d.ts +24 -15
- package/button/index.d.ts +23 -17
- package/card/index.d.ts +22 -16
- package/checkbox/index.d.ts +20 -17
- package/chip/index.d.ts +104 -23
- package/clipboard/index.d.ts +22 -18
- package/code/index.d.ts +40 -3
- package/core/breakpoints/index.d.ts +38 -2
- package/core/color/index.d.ts +48 -2
- package/core/date/index.d.ts +121 -7
- package/data/index.d.ts +61 -20
- package/datetime-field/index.d.ts +44 -17
- package/description-list/index.d.ts +30 -15
- package/drawer/index.d.ts +73 -21
- package/dropdown/index.d.ts +151 -3
- package/dropzone/index.d.ts +65 -17
- package/empty-state/index.d.ts +37 -19
- package/expandable-card/index.d.ts +39 -2
- package/{esm2022/badge/watt-badge.component.js → fesm2022/energinet-watt-badge.mjs} +30 -4
- package/fesm2022/energinet-watt-badge.mjs.map +1 -0
- package/{esm2022/breadcrumbs/watt-breadcrumbs.component.js → fesm2022/energinet-watt-breadcrumbs.mjs} +36 -10
- package/fesm2022/energinet-watt-breadcrumbs.mjs.map +1 -0
- package/{esm2022/button/watt-button.component.js → fesm2022/energinet-watt-button.mjs} +35 -9
- package/fesm2022/energinet-watt-button.mjs.map +1 -0
- package/{esm2022/card/watt-card.component.js → fesm2022/energinet-watt-card.mjs} +63 -7
- package/fesm2022/energinet-watt-card.mjs.map +1 -0
- package/{esm2022/checkbox/watt-checkbox.component.js → fesm2022/energinet-watt-checkbox.mjs} +32 -6
- package/fesm2022/energinet-watt-checkbox.mjs.map +1 -0
- package/fesm2022/energinet-watt-chip.mjs +694 -0
- package/fesm2022/energinet-watt-chip.mjs.map +1 -0
- package/{esm2022/clipboard/watt-copy-to-clipboard.directive.js → fesm2022/energinet-watt-clipboard.mjs} +61 -7
- package/fesm2022/energinet-watt-clipboard.mjs.map +1 -0
- package/{esm2022/code/watt-code.component.js → fesm2022/energinet-watt-code.mjs} +83 -11
- package/fesm2022/energinet-watt-code.mjs.map +1 -0
- package/fesm2022/energinet-watt-core-breakpoints.mjs +97 -0
- package/fesm2022/energinet-watt-core-breakpoints.mjs.map +1 -0
- package/fesm2022/energinet-watt-core-color.mjs +124 -0
- package/fesm2022/energinet-watt-core-color.mjs.map +1 -0
- package/fesm2022/energinet-watt-core-date.mjs +256 -0
- package/fesm2022/energinet-watt-core-date.mjs.map +1 -0
- package/{esm2022/data/watt-data-table.component.js → fesm2022/energinet-watt-data.mjs} +134 -12
- package/fesm2022/energinet-watt-data.mjs.map +1 -0
- package/{esm2022/datetime-field/watt-datetime-field.component.js → fesm2022/energinet-watt-datetime-field.mjs} +40 -14
- package/fesm2022/energinet-watt-datetime-field.mjs.map +1 -0
- package/{esm2022/description-list/watt-description-list.component.js → fesm2022/energinet-watt-description-list.mjs} +77 -8
- package/fesm2022/energinet-watt-description-list.mjs.map +1 -0
- package/{esm2022/drawer/watt-drawer.component.js → fesm2022/energinet-watt-drawer.mjs} +150 -17
- package/fesm2022/energinet-watt-drawer.mjs.map +1 -0
- package/{esm2022/dropdown/watt-dropdown.component.js → fesm2022/energinet-watt-dropdown.mjs} +44 -18
- package/fesm2022/energinet-watt-dropdown.mjs.map +1 -0
- package/{esm2022/dropzone/watt-dropzone.js → fesm2022/energinet-watt-dropzone.mjs} +133 -14
- package/fesm2022/energinet-watt-dropzone.mjs.map +1 -0
- package/{esm2022/empty-state/icons/not-found.js → fesm2022/energinet-watt-empty-state.mjs} +301 -4
- package/fesm2022/energinet-watt-empty-state.mjs.map +1 -0
- package/{esm2022/expandable-card/watt-expandable-card.component.js → fesm2022/energinet-watt-expandable-card.mjs} +40 -9
- package/fesm2022/energinet-watt-expandable-card.mjs.map +1 -0
- package/{esm2022/field/watt-field.component.js → fesm2022/energinet-watt-field.mjs} +149 -14
- package/fesm2022/energinet-watt-field.mjs.map +1 -0
- package/{esm2022/file-field/watt-file-field.component.js → fesm2022/energinet-watt-file-field.mjs} +32 -6
- package/fesm2022/energinet-watt-file-field.mjs.map +1 -0
- package/fesm2022/energinet-watt-icon-flags.mjs +547 -0
- package/fesm2022/energinet-watt-icon-flags.mjs.map +1 -0
- package/{esm2022/icon/icon.component.js → fesm2022/energinet-watt-icon.mjs} +135 -6
- package/fesm2022/energinet-watt-icon.mjs.map +1 -0
- package/fesm2022/energinet-watt-menu.mjs +282 -0
- package/fesm2022/energinet-watt-menu.mjs.map +1 -0
- package/{esm2022/modal/watt-modal.component.js → fesm2022/energinet-watt-modal.mjs} +109 -13
- package/fesm2022/energinet-watt-modal.mjs.map +1 -0
- package/{esm2022/paginator/watt-paginator.component.js → fesm2022/energinet-watt-paginator.mjs} +69 -9
- package/fesm2022/energinet-watt-paginator.mjs.map +1 -0
- package/{esm2022/phone-field/watt-phone-field.component.js → fesm2022/energinet-watt-phone-field.mjs} +80 -16
- package/fesm2022/energinet-watt-phone-field.mjs.map +1 -0
- package/fesm2022/energinet-watt-picker-__shared.mjs +292 -0
- package/fesm2022/energinet-watt-picker-__shared.mjs.map +1 -0
- package/{esm2022/picker/datepicker/watt-datepicker.component.js → fesm2022/energinet-watt-picker-datepicker.mjs} +71 -16
- package/fesm2022/energinet-watt-picker-datepicker.mjs.map +1 -0
- package/{esm2022/picker/timepicker/watt-timepicker.component.js → fesm2022/energinet-watt-picker-timepicker.mjs} +126 -20
- package/fesm2022/energinet-watt-picker-timepicker.mjs.map +1 -0
- package/{esm2022/progress-tracker/watt-progress-tracker-step.component.js → fesm2022/energinet-watt-progress-tracker.mjs} +64 -6
- package/fesm2022/energinet-watt-progress-tracker.mjs.map +1 -0
- package/{esm2022/query-params/watt-query-params.directive.js → fesm2022/energinet-watt-query-params.mjs} +32 -6
- package/fesm2022/energinet-watt-query-params.mjs.map +1 -0
- package/{esm2022/radio/watt-radio.component.js → fesm2022/energinet-watt-radio.mjs} +146 -5
- package/fesm2022/energinet-watt-radio.mjs.map +1 -0
- package/{esm2022/search/watt-search.component.js → fesm2022/energinet-watt-search.mjs} +33 -7
- package/fesm2022/energinet-watt-search.mjs.map +1 -0
- package/{esm2022/segmented-buttons/watt-segmented-buttons.component.js → fesm2022/energinet-watt-segmented-buttons.mjs} +77 -11
- package/fesm2022/energinet-watt-segmented-buttons.mjs.map +1 -0
- package/fesm2022/energinet-watt-shell.mjs +303 -0
- package/fesm2022/energinet-watt-shell.mjs.map +1 -0
- package/{esm2022/slide-toggle/watt-slide-toggle.component.js → fesm2022/energinet-watt-slide-toggle.mjs} +34 -8
- package/fesm2022/energinet-watt-slide-toggle.mjs.map +1 -0
- package/{esm2022/slider/watt-slider.component.js → fesm2022/energinet-watt-slider.mjs} +33 -7
- package/fesm2022/energinet-watt-slider.mjs.map +1 -0
- package/{esm2022/spinner/watt-spinner.component.js → fesm2022/energinet-watt-spinner.mjs} +30 -4
- package/fesm2022/energinet-watt-spinner.mjs.map +1 -0
- package/{esm2022/stepper/watt-stepper.component.js → fesm2022/energinet-watt-stepper.mjs} +85 -15
- package/fesm2022/energinet-watt-stepper.mjs.map +1 -0
- package/{esm2022/table/watt-table.component.js → fesm2022/energinet-watt-table.mjs} +134 -22
- package/fesm2022/energinet-watt-table.mjs.map +1 -0
- package/fesm2022/energinet-watt-tabs.mjs +254 -0
- package/fesm2022/energinet-watt-tabs.mjs.map +1 -0
- package/{esm2022/text-field/watt-text-field.component.js → fesm2022/energinet-watt-text-field.mjs} +36 -10
- package/fesm2022/energinet-watt-text-field.mjs.map +1 -0
- package/{esm2022/textarea-field/watt-textarea-field.component.js → fesm2022/energinet-watt-textarea-field.mjs} +32 -6
- package/fesm2022/energinet-watt-textarea-field.mjs.map +1 -0
- package/{esm2022/toast/watt-toast.component.js → fesm2022/energinet-watt-toast.mjs} +82 -9
- package/fesm2022/energinet-watt-toast.mjs.map +1 -0
- package/{esm2022/tooltip/watt-tooltip.component.js → fesm2022/energinet-watt-tooltip.mjs} +98 -8
- package/fesm2022/energinet-watt-tooltip.mjs.map +1 -0
- package/{esm2022/utils/css/css-custom-properties.service.js → fesm2022/energinet-watt-utils-css.mjs} +30 -4
- package/fesm2022/energinet-watt-utils-css.mjs.map +1 -0
- package/{esm2022/utils/intersection-observer/watt-intersection-observer.service.js → fesm2022/energinet-watt-utils-intersection-observer.mjs} +31 -5
- package/fesm2022/energinet-watt-utils-intersection-observer.mjs.map +1 -0
- package/fesm2022/energinet-watt-utils-resize-observer.mjs +143 -0
- package/fesm2022/energinet-watt-utils-resize-observer.mjs.map +1 -0
- package/{esm2022/validation-message/watt-validation-message.component.js → fesm2022/energinet-watt-validation-message.mjs} +31 -5
- package/fesm2022/energinet-watt-validation-message.mjs.map +1 -0
- package/{esm2022/validators/watt-range.validators.js → fesm2022/energinet-watt-validators.mjs} +28 -2
- package/fesm2022/energinet-watt-validators.mjs.map +1 -0
- package/fesm2022/energinet-watt-vater.mjs +248 -0
- package/fesm2022/energinet-watt-vater.mjs.map +1 -0
- package/{esm2022/year-field/watt-year-field.component.js → fesm2022/energinet-watt-year-field.mjs} +39 -13
- package/fesm2022/energinet-watt-year-field.mjs.map +1 -0
- package/{esm2022/yearmonth-field/watt-yearmonth-field.component.js → fesm2022/energinet-watt-yearmonth-field.mjs} +79 -13
- package/fesm2022/energinet-watt-yearmonth-field.mjs.map +1 -0
- package/{esm2022/index.js → fesm2022/energinet-watt.mjs} +8 -2
- package/fesm2022/energinet-watt.mjs.map +1 -0
- package/field/index.d.ts +62 -21
- package/file-field/index.d.ts +13 -17
- package/icon/flags/index.d.ts +61 -26
- package/icon/index.d.ts +105 -1
- package/index.d.ts +3 -1
- package/menu/index.d.ts +103 -9
- package/modal/index.d.ts +111 -2
- package/package.json +9 -9
- package/paginator/index.d.ts +52 -16
- package/phone-field/index.d.ts +79 -18
- package/picker/__shared/index.d.ts +88 -3
- package/picker/datepicker/index.d.ts +87 -16
- package/picker/timepicker/index.d.ts +70 -14
- package/progress-tracker/index.d.ts +21 -4
- package/query-params/index.d.ts +12 -17
- package/radio/index.d.ts +71 -18
- package/search/index.d.ts +47 -17
- package/segmented-buttons/index.d.ts +32 -5
- package/shell/index.d.ts +47 -18
- package/slide-toggle/index.d.ts +18 -15
- package/slider/index.d.ts +33 -15
- package/spinner/index.d.ts +16 -15
- package/stepper/index.d.ts +43 -2
- package/table/index.d.ts +301 -2
- package/tabs/index.d.ts +52 -10
- package/text-field/index.d.ts +67 -17
- package/textarea-field/index.d.ts +31 -17
- package/toast/index.d.ts +59 -17
- package/tooltip/index.d.ts +20 -17
- package/utils/css/index.d.ts +12 -17
- package/utils/intersection-observer/index.d.ts +22 -14
- package/utils/resize-observer/index.d.ts +46 -2
- package/validation-message/index.d.ts +36 -15
- package/validators/index.d.ts +12 -1
- package/vater/index.d.ts +71 -5
- package/year-field/index.d.ts +60 -17
- package/yearmonth-field/index.d.ts +64 -18
- package/badge/energinet-watt-badge.d.ts +0 -5
- package/badge/watt-badge.component.d.ts +0 -15
- package/breadcrumbs/energinet-watt-breadcrumbs.d.ts +0 -5
- package/breadcrumbs/watt-breadcrumbs.component.d.ts +0 -23
- package/button/energinet-watt-button.d.ts +0 -5
- package/button/watt-button.component.d.ts +0 -22
- package/card/energinet-watt-card.d.ts +0 -5
- package/card/watt-card-title.component.d.ts +0 -6
- package/card/watt-card.component.d.ts +0 -15
- package/checkbox/energinet-watt-checkbox.d.ts +0 -5
- package/checkbox/watt-checkbox.component.d.ts +0 -17
- package/chip/energinet-watt-chip.d.ts +0 -5
- package/chip/watt-action-chip.component.d.ts +0 -8
- package/chip/watt-chip.component.d.ts +0 -8
- package/chip/watt-chip.directive.d.ts +0 -16
- package/chip/watt-date-chip.component.d.ts +0 -12
- package/chip/watt-date-range-chip.component.d.ts +0 -50
- package/chip/watt-filter-chip.component.d.ts +0 -13
- package/chip/watt-menu-chip.component.d.ts +0 -13
- package/clipboard/energinet-watt-clipboard.d.ts +0 -5
- package/clipboard/watt-clipboard-intl.service.d.ts +0 -7
- package/clipboard/watt-copy-to-clipboard.directive.d.ts +0 -12
- package/code/energinet-watt-code.d.ts +0 -5
- package/code/watt-code-intl.service.d.ts +0 -6
- package/code/watt-code.component.d.ts +0 -45
- package/code/watt-code.worker.token.d.ts +0 -18
- package/core/breakpoints/breakpoints-observer.d.ts +0 -21
- package/core/breakpoints/breakpoints.d.ts +0 -29
- package/core/breakpoints/energinet-watt-core-breakpoints.d.ts +0 -5
- package/core/color/color-helper.service.d.ts +0 -10
- package/core/color/colors.d.ts +0 -51
- package/core/color/energinet-watt-core-color.d.ts +0 -5
- package/core/date/dayjs.d.ts +0 -22
- package/core/date/energinet-watt-core-date.d.ts +0 -5
- package/core/date/watt-danish-datetime.providers.d.ts +0 -1
- package/core/date/watt-date-adapter.d.ts +0 -31
- package/core/date/watt-date-range.d.ts +0 -25
- package/core/date/watt-date.pipe.d.ts +0 -28
- package/core/date/watt-format-date.d.ts +0 -11
- package/core/date/watt-locale.service.d.ts +0 -11
- package/data/energinet-watt-data.d.ts +0 -5
- package/data/watt-data-actions.component.d.ts +0 -5
- package/data/watt-data-filters.component.d.ts +0 -5
- package/data/watt-data-intl.service.d.ts +0 -15
- package/data/watt-data-table.component.d.ts +0 -34
- package/datetime-field/energinet-watt-datetime-field.d.ts +0 -5
- package/datetime-field/watt-datetime-field.component.d.ts +0 -39
- package/description-list/energinet-watt-description-list.d.ts +0 -5
- package/description-list/watt-description-list-item.component.d.ts +0 -27
- package/description-list/watt-description-list.component.d.ts +0 -20
- package/drawer/energinet-watt-drawer.d.ts +0 -5
- package/drawer/watt-drawer-actions.component.d.ts +0 -5
- package/drawer/watt-drawer-content.component.d.ts +0 -5
- package/drawer/watt-drawer-heading.component.d.ts +0 -5
- package/drawer/watt-drawer-topbar.component.d.ts +0 -5
- package/drawer/watt-drawer.component.d.ts +0 -66
- package/dropdown/energinet-watt-dropdown.d.ts +0 -5
- package/dropdown/watt-dropdown-option.d.ts +0 -28
- package/dropdown/watt-dropdown-value.d.ts +0 -17
- package/dropdown/watt-dropdown.component.d.ts +0 -133
- package/dropzone/energinet-watt-dropzone.d.ts +0 -5
- package/dropzone/watt-dropzone-intl.d.ts +0 -11
- package/dropzone/watt-dropzone-validators.d.ts +0 -27
- package/dropzone/watt-dropzone.d.ts +0 -31
- package/empty-state/energinet-watt-empty-state.d.ts +0 -5
- package/empty-state/icons/explore.d.ts +0 -5
- package/empty-state/icons/no-results.d.ts +0 -5
- package/empty-state/icons/not-found.d.ts +0 -5
- package/empty-state/icons/power.d.ts +0 -5
- package/empty-state/watt-empty-state.component.d.ts +0 -16
- package/energinet-watt.d.ts +0 -5
- package/esm2022/badge/energinet-watt-badge.js +0 -5
- package/esm2022/badge/energinet-watt-badge.js.map +0 -1
- package/esm2022/badge/index.js +0 -20
- package/esm2022/badge/index.js.map +0 -1
- package/esm2022/badge/watt-badge.component.js.map +0 -1
- package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js +0 -5
- package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js.map +0 -1
- package/esm2022/breadcrumbs/index.js +0 -20
- package/esm2022/breadcrumbs/index.js.map +0 -1
- package/esm2022/breadcrumbs/watt-breadcrumbs.component.js.map +0 -1
- package/esm2022/button/energinet-watt-button.js +0 -5
- package/esm2022/button/energinet-watt-button.js.map +0 -1
- package/esm2022/button/index.js +0 -20
- package/esm2022/button/index.js.map +0 -1
- package/esm2022/button/watt-button.component.js.map +0 -1
- package/esm2022/card/energinet-watt-card.js +0 -5
- package/esm2022/card/energinet-watt-card.js.map +0 -1
- package/esm2022/card/index.js +0 -21
- package/esm2022/card/index.js.map +0 -1
- package/esm2022/card/watt-card-title.component.js +0 -33
- package/esm2022/card/watt-card-title.component.js.map +0 -1
- package/esm2022/card/watt-card.component.js.map +0 -1
- package/esm2022/checkbox/energinet-watt-checkbox.js +0 -5
- package/esm2022/checkbox/energinet-watt-checkbox.js.map +0 -1
- package/esm2022/checkbox/index.js +0 -20
- package/esm2022/checkbox/index.js.map +0 -1
- package/esm2022/checkbox/watt-checkbox.component.js.map +0 -1
- package/esm2022/chip/energinet-watt-chip.js +0 -5
- package/esm2022/chip/energinet-watt-chip.js.map +0 -1
- package/esm2022/chip/index.js +0 -26
- package/esm2022/chip/index.js.map +0 -1
- package/esm2022/chip/watt-action-chip.component.js +0 -68
- package/esm2022/chip/watt-action-chip.component.js.map +0 -1
- package/esm2022/chip/watt-chip.component.js +0 -55
- package/esm2022/chip/watt-chip.component.js.map +0 -1
- package/esm2022/chip/watt-chip.directive.js +0 -92
- package/esm2022/chip/watt-chip.directive.js.map +0 -1
- package/esm2022/chip/watt-date-chip.component.js +0 -104
- package/esm2022/chip/watt-date-chip.component.js.map +0 -1
- package/esm2022/chip/watt-date-range-chip.component.js +0 -213
- package/esm2022/chip/watt-date-range-chip.component.js.map +0 -1
- package/esm2022/chip/watt-filter-chip.component.js +0 -82
- package/esm2022/chip/watt-filter-chip.component.js.map +0 -1
- package/esm2022/chip/watt-menu-chip.component.js +0 -80
- package/esm2022/chip/watt-menu-chip.component.js.map +0 -1
- package/esm2022/clipboard/energinet-watt-clipboard.js +0 -5
- package/esm2022/clipboard/energinet-watt-clipboard.js.map +0 -1
- package/esm2022/clipboard/index.js +0 -21
- package/esm2022/clipboard/index.js.map +0 -1
- package/esm2022/clipboard/watt-clipboard-intl.service.js +0 -31
- package/esm2022/clipboard/watt-clipboard-intl.service.js.map +0 -1
- package/esm2022/clipboard/watt-copy-to-clipboard.directive.js.map +0 -1
- package/esm2022/code/energinet-watt-code.js +0 -5
- package/esm2022/code/energinet-watt-code.js.map +0 -1
- package/esm2022/code/index.js +0 -22
- package/esm2022/code/index.js.map +0 -1
- package/esm2022/code/watt-code-intl.service.js +0 -30
- package/esm2022/code/watt-code-intl.service.js.map +0 -1
- package/esm2022/code/watt-code.component.js.map +0 -1
- package/esm2022/code/watt-code.worker.token.js +0 -21
- package/esm2022/code/watt-code.worker.token.js.map +0 -1
- package/esm2022/core/breakpoints/breakpoints-observer.js +0 -41
- package/esm2022/core/breakpoints/breakpoints-observer.js.map +0 -1
- package/esm2022/core/breakpoints/breakpoints.js +0 -31
- package/esm2022/core/breakpoints/breakpoints.js.map +0 -1
- package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js +0 -5
- package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js.map +0 -1
- package/esm2022/core/breakpoints/index.js +0 -21
- package/esm2022/core/breakpoints/index.js.map +0 -1
- package/esm2022/core/color/color-helper.service.js +0 -41
- package/esm2022/core/color/color-helper.service.js.map +0 -1
- package/esm2022/core/color/colors.js +0 -58
- package/esm2022/core/color/colors.js.map +0 -1
- package/esm2022/core/color/energinet-watt-core-color.js +0 -5
- package/esm2022/core/color/energinet-watt-core-color.js.map +0 -1
- package/esm2022/core/color/index.js +0 -21
- package/esm2022/core/color/index.js.map +0 -1
- package/esm2022/core/date/dayjs.js +0 -34
- package/esm2022/core/date/dayjs.js.map +0 -1
- package/esm2022/core/date/energinet-watt-core-date.js +0 -5
- package/esm2022/core/date/energinet-watt-core-date.js.map +0 -1
- package/esm2022/core/date/index.js +0 -25
- package/esm2022/core/date/index.js.map +0 -1
- package/esm2022/core/date/watt-danish-datetime.providers.js +0 -31
- package/esm2022/core/date/watt-danish-datetime.providers.js.map +0 -1
- package/esm2022/core/date/watt-date-adapter.js +0 -43
- package/esm2022/core/date/watt-date-adapter.js.map +0 -1
- package/esm2022/core/date/watt-date-range.js +0 -2
- package/esm2022/core/date/watt-date-range.js.map +0 -1
- package/esm2022/core/date/watt-date.pipe.js +0 -38
- package/esm2022/core/date/watt-date.pipe.js.map +0 -1
- package/esm2022/core/date/watt-format-date.js +0 -50
- package/esm2022/core/date/watt-format-date.js.map +0 -1
- package/esm2022/core/date/watt-locale.service.js +0 -48
- package/esm2022/core/date/watt-locale.service.js.map +0 -1
- package/esm2022/data/energinet-watt-data.js +0 -5
- package/esm2022/data/energinet-watt-data.js.map +0 -1
- package/esm2022/data/index.js +0 -23
- package/esm2022/data/index.js.map +0 -1
- package/esm2022/data/watt-data-actions.component.js +0 -32
- package/esm2022/data/watt-data-actions.component.js.map +0 -1
- package/esm2022/data/watt-data-filters.component.js +0 -32
- package/esm2022/data/watt-data-filters.component.js.map +0 -1
- package/esm2022/data/watt-data-intl.service.js +0 -39
- package/esm2022/data/watt-data-intl.service.js.map +0 -1
- package/esm2022/data/watt-data-table.component.js.map +0 -1
- package/esm2022/datetime-field/energinet-watt-datetime-field.js +0 -5
- package/esm2022/datetime-field/energinet-watt-datetime-field.js.map +0 -1
- package/esm2022/datetime-field/index.js +0 -20
- package/esm2022/datetime-field/index.js.map +0 -1
- package/esm2022/datetime-field/watt-datetime-field.component.js.map +0 -1
- package/esm2022/description-list/energinet-watt-description-list.js +0 -5
- package/esm2022/description-list/energinet-watt-description-list.js.map +0 -1
- package/esm2022/description-list/index.js +0 -20
- package/esm2022/description-list/index.js.map +0 -1
- package/esm2022/description-list/watt-description-list-item.component.js +0 -49
- package/esm2022/description-list/watt-description-list-item.component.js.map +0 -1
- package/esm2022/description-list/watt-description-list.component.js.map +0 -1
- package/esm2022/drawer/energinet-watt-drawer.js +0 -5
- package/esm2022/drawer/energinet-watt-drawer.js.map +0 -1
- package/esm2022/drawer/index.js +0 -24
- package/esm2022/drawer/index.js.map +0 -1
- package/esm2022/drawer/watt-drawer-actions.component.js +0 -29
- package/esm2022/drawer/watt-drawer-actions.component.js.map +0 -1
- package/esm2022/drawer/watt-drawer-content.component.js +0 -29
- package/esm2022/drawer/watt-drawer-content.component.js.map +0 -1
- package/esm2022/drawer/watt-drawer-heading.component.js +0 -29
- package/esm2022/drawer/watt-drawer-heading.component.js.map +0 -1
- package/esm2022/drawer/watt-drawer-topbar.component.js +0 -32
- package/esm2022/drawer/watt-drawer-topbar.component.js.map +0 -1
- package/esm2022/drawer/watt-drawer.component.js.map +0 -1
- package/esm2022/dropdown/energinet-watt-dropdown.js +0 -5
- package/esm2022/dropdown/energinet-watt-dropdown.js.map +0 -1
- package/esm2022/dropdown/index.js +0 -20
- package/esm2022/dropdown/index.js.map +0 -1
- package/esm2022/dropdown/watt-dropdown-option.js +0 -2
- package/esm2022/dropdown/watt-dropdown-option.js.map +0 -1
- package/esm2022/dropdown/watt-dropdown-value.js +0 -2
- package/esm2022/dropdown/watt-dropdown-value.js.map +0 -1
- package/esm2022/dropdown/watt-dropdown.component.js.map +0 -1
- package/esm2022/dropzone/energinet-watt-dropzone.js +0 -5
- package/esm2022/dropzone/energinet-watt-dropzone.js.map +0 -1
- package/esm2022/dropzone/index.js +0 -22
- package/esm2022/dropzone/index.js.map +0 -1
- package/esm2022/dropzone/watt-dropzone-intl.js +0 -35
- package/esm2022/dropzone/watt-dropzone-intl.js.map +0 -1
- package/esm2022/dropzone/watt-dropzone-validators.js +0 -67
- package/esm2022/dropzone/watt-dropzone-validators.js.map +0 -1
- package/esm2022/dropzone/watt-dropzone.js.map +0 -1
- package/esm2022/empty-state/energinet-watt-empty-state.js +0 -5
- package/esm2022/empty-state/energinet-watt-empty-state.js.map +0 -1
- package/esm2022/empty-state/icons/explore.js +0 -54
- package/esm2022/empty-state/icons/explore.js.map +0 -1
- package/esm2022/empty-state/icons/no-results.js +0 -62
- package/esm2022/empty-state/icons/no-results.js.map +0 -1
- package/esm2022/empty-state/icons/not-found.js.map +0 -1
- package/esm2022/empty-state/icons/power.js +0 -46
- package/esm2022/empty-state/icons/power.js.map +0 -1
- package/esm2022/empty-state/index.js +0 -24
- package/esm2022/empty-state/index.js.map +0 -1
- package/esm2022/empty-state/watt-empty-state.component.js +0 -120
- package/esm2022/empty-state/watt-empty-state.component.js.map +0 -1
- package/esm2022/energinet-watt.js +0 -5
- package/esm2022/energinet-watt.js.map +0 -1
- package/esm2022/expandable-card/energinet-watt-expandable-card.js +0 -5
- package/esm2022/expandable-card/energinet-watt-expandable-card.js.map +0 -1
- package/esm2022/expandable-card/index.js +0 -26
- package/esm2022/expandable-card/index.js.map +0 -1
- package/esm2022/expandable-card/watt-expandable-card.component.js.map +0 -1
- package/esm2022/field/energinet-watt-field.js +0 -5
- package/esm2022/field/energinet-watt-field.js.map +0 -1
- package/esm2022/field/index.js +0 -24
- package/esm2022/field/index.js.map +0 -1
- package/esm2022/field/watt-field-error.component.js +0 -29
- package/esm2022/field/watt-field-error.component.js.map +0 -1
- package/esm2022/field/watt-field-hint.component.js +0 -29
- package/esm2022/field/watt-field-hint.component.js.map +0 -1
- package/esm2022/field/watt-field-intl.service.js +0 -32
- package/esm2022/field/watt-field-intl.service.js.map +0 -1
- package/esm2022/field/watt-field-warning.component.js +0 -29
- package/esm2022/field/watt-field-warning.component.js.map +0 -1
- package/esm2022/field/watt-field.component.js.map +0 -1
- package/esm2022/file-field/energinet-watt-file-field.js +0 -5
- package/esm2022/file-field/energinet-watt-file-field.js.map +0 -1
- package/esm2022/file-field/index.js +0 -20
- package/esm2022/file-field/index.js.map +0 -1
- package/esm2022/file-field/watt-file-field.component.js.map +0 -1
- package/esm2022/icon/energinet-watt-icon.js +0 -5
- package/esm2022/icon/energinet-watt-icon.js.map +0 -1
- package/esm2022/icon/flags/energinet-watt-icon-flags.js +0 -5
- package/esm2022/icon/flags/energinet-watt-icon-flags.js.map +0 -1
- package/esm2022/icon/flags/index.js +0 -29
- package/esm2022/icon/flags/index.js.map +0 -1
- package/esm2022/icon/flags/watt-flag-ch.js +0 -52
- package/esm2022/icon/flags/watt-flag-ch.js.map +0 -1
- package/esm2022/icon/flags/watt-flag-de.js +0 -44
- package/esm2022/icon/flags/watt-flag-de.js.map +0 -1
- package/esm2022/icon/flags/watt-flag-dk.js +0 -44
- package/esm2022/icon/flags/watt-flag-dk.js.map +0 -1
- package/esm2022/icon/flags/watt-flag-fi.js +0 -44
- package/esm2022/icon/flags/watt-flag-fi.js.map +0 -1
- package/esm2022/icon/flags/watt-flag-gb.js +0 -60
- package/esm2022/icon/flags/watt-flag-gb.js.map +0 -1
- package/esm2022/icon/flags/watt-flag-nl.js +0 -44
- package/esm2022/icon/flags/watt-flag-nl.js.map +0 -1
- package/esm2022/icon/flags/watt-flag-no.js +0 -48
- package/esm2022/icon/flags/watt-flag-no.js.map +0 -1
- package/esm2022/icon/flags/watt-flag-pl.js +0 -46
- package/esm2022/icon/flags/watt-flag-pl.js.map +0 -1
- package/esm2022/icon/flags/watt-flag-se.js +0 -42
- package/esm2022/icon/flags/watt-flag-se.js.map +0 -1
- package/esm2022/icon/flags/watt-flag.js +0 -124
- package/esm2022/icon/flags/watt-flag.js.map +0 -1
- package/esm2022/icon/icon.component.js.map +0 -1
- package/esm2022/icon/icons.js +0 -104
- package/esm2022/icon/icons.js.map +0 -1
- package/esm2022/icon/index.js +0 -20
- package/esm2022/icon/index.js.map +0 -1
- package/esm2022/index.js.map +0 -1
- package/esm2022/menu/energinet-watt-menu.js +0 -5
- package/esm2022/menu/energinet-watt-menu.js.map +0 -1
- package/esm2022/menu/index.js +0 -36
- package/esm2022/menu/index.js.map +0 -1
- package/esm2022/menu/watt-menu-group.component.js +0 -45
- package/esm2022/menu/watt-menu-group.component.js.map +0 -1
- package/esm2022/menu/watt-menu-item.component.js +0 -50
- package/esm2022/menu/watt-menu-item.component.js.map +0 -1
- package/esm2022/menu/watt-menu-trigger.directive.js +0 -85
- package/esm2022/menu/watt-menu-trigger.directive.js.map +0 -1
- package/esm2022/menu/watt-menu.component.js +0 -77
- package/esm2022/menu/watt-menu.component.js.map +0 -1
- package/esm2022/modal/energinet-watt-modal.js +0 -5
- package/esm2022/modal/energinet-watt-modal.js.map +0 -1
- package/esm2022/modal/index.js +0 -21
- package/esm2022/modal/index.js.map +0 -1
- package/esm2022/modal/watt-modal.component.js.map +0 -1
- package/esm2022/modal/watt-modal.service.js +0 -74
- package/esm2022/modal/watt-modal.service.js.map +0 -1
- package/esm2022/paginator/energinet-watt-paginator.js +0 -5
- package/esm2022/paginator/energinet-watt-paginator.js.map +0 -1
- package/esm2022/paginator/index.js +0 -21
- package/esm2022/paginator/index.js.map +0 -1
- package/esm2022/paginator/watt-paginator-intl.service.js +0 -38
- package/esm2022/paginator/watt-paginator-intl.service.js.map +0 -1
- package/esm2022/paginator/watt-paginator.component.js.map +0 -1
- package/esm2022/phone-field/energinet-watt-phone-field.js +0 -5
- package/esm2022/phone-field/energinet-watt-phone-field.js.map +0 -1
- package/esm2022/phone-field/index.js +0 -21
- package/esm2022/phone-field/index.js.map +0 -1
- package/esm2022/phone-field/watt-phone-field-intl.service.js +0 -41
- package/esm2022/phone-field/watt-phone-field-intl.service.js.map +0 -1
- package/esm2022/phone-field/watt-phone-field.component.js.map +0 -1
- package/esm2022/picker/__shared/energinet-watt-picker-__shared.js +0 -5
- package/esm2022/picker/__shared/energinet-watt-picker-__shared.js.map +0 -1
- package/esm2022/picker/__shared/index.js +0 -21
- package/esm2022/picker/__shared/index.js.map +0 -1
- package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js +0 -71
- package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js.map +0 -1
- package/esm2022/picker/__shared/watt-picker-base.js +0 -197
- package/esm2022/picker/__shared/watt-picker-base.js.map +0 -1
- package/esm2022/picker/__shared/watt-picker-value.js +0 -2
- package/esm2022/picker/__shared/watt-picker-value.js.map +0 -1
- package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js +0 -5
- package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js.map +0 -1
- package/esm2022/picker/datepicker/index.js +0 -22
- package/esm2022/picker/datepicker/index.js.map +0 -1
- package/esm2022/picker/datepicker/watt-datepicker-intl.service.js +0 -31
- package/esm2022/picker/datepicker/watt-datepicker-intl.service.js.map +0 -1
- package/esm2022/picker/datepicker/watt-datepicker.component.js.map +0 -1
- package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js +0 -5
- package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js.map +0 -1
- package/esm2022/picker/timepicker/index.js +0 -20
- package/esm2022/picker/timepicker/index.js.map +0 -1
- package/esm2022/picker/timepicker/maskito-time-range-mask.js +0 -81
- package/esm2022/picker/timepicker/maskito-time-range-mask.js.map +0 -1
- package/esm2022/picker/timepicker/watt-timepicker.component.js.map +0 -1
- package/esm2022/progress-tracker/energinet-watt-progress-tracker.js +0 -5
- package/esm2022/progress-tracker/energinet-watt-progress-tracker.js.map +0 -1
- package/esm2022/progress-tracker/index.js +0 -27
- package/esm2022/progress-tracker/index.js.map +0 -1
- package/esm2022/progress-tracker/watt-progress-tracker-step.component.js.map +0 -1
- package/esm2022/progress-tracker/watt-progress-tracker.component.js +0 -30
- package/esm2022/progress-tracker/watt-progress-tracker.component.js.map +0 -1
- package/esm2022/query-params/energinet-watt-query-params.js +0 -5
- package/esm2022/query-params/energinet-watt-query-params.js.map +0 -1
- package/esm2022/query-params/index.js +0 -20
- package/esm2022/query-params/index.js.map +0 -1
- package/esm2022/query-params/watt-query-params.directive.js.map +0 -1
- package/esm2022/radio/energinet-watt-radio.js +0 -5
- package/esm2022/radio/energinet-watt-radio.js.map +0 -1
- package/esm2022/radio/index.js +0 -21
- package/esm2022/radio/index.js.map +0 -1
- package/esm2022/radio/watt-radio-group.component.js +0 -119
- package/esm2022/radio/watt-radio-group.component.js.map +0 -1
- package/esm2022/radio/watt-radio.component.js.map +0 -1
- package/esm2022/search/energinet-watt-search.js +0 -5
- package/esm2022/search/energinet-watt-search.js.map +0 -1
- package/esm2022/search/index.js +0 -20
- package/esm2022/search/index.js.map +0 -1
- package/esm2022/search/watt-search.component.js.map +0 -1
- package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js +0 -5
- package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js.map +0 -1
- package/esm2022/segmented-buttons/index.js +0 -27
- package/esm2022/segmented-buttons/index.js.map +0 -1
- package/esm2022/segmented-buttons/watt-segmented-button.component.js +0 -39
- package/esm2022/segmented-buttons/watt-segmented-button.component.js.map +0 -1
- package/esm2022/segmented-buttons/watt-segmented-buttons.component.js.map +0 -1
- package/esm2022/shell/energinet-watt-shell.js +0 -5
- package/esm2022/shell/energinet-watt-shell.js.map +0 -1
- package/esm2022/shell/index.js +0 -21
- package/esm2022/shell/index.js.map +0 -1
- package/esm2022/shell/nav-list/index.js +0 -21
- package/esm2022/shell/nav-list/index.js.map +0 -1
- package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js +0 -47
- package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js.map +0 -1
- package/esm2022/shell/nav-list/watt-nav-list-item.component.js +0 -83
- package/esm2022/shell/nav-list/watt-nav-list-item.component.js.map +0 -1
- package/esm2022/shell/nav-list/watt-nav-list.component.js +0 -80
- package/esm2022/shell/nav-list/watt-nav-list.component.js.map +0 -1
- package/esm2022/shell/shell.component.js +0 -59
- package/esm2022/shell/shell.component.js.map +0 -1
- package/esm2022/slide-toggle/energinet-watt-slide-toggle.js +0 -5
- package/esm2022/slide-toggle/energinet-watt-slide-toggle.js.map +0 -1
- package/esm2022/slide-toggle/index.js +0 -20
- package/esm2022/slide-toggle/index.js.map +0 -1
- package/esm2022/slide-toggle/watt-slide-toggle.component.js.map +0 -1
- package/esm2022/slider/energinet-watt-slider.js +0 -5
- package/esm2022/slider/energinet-watt-slider.js.map +0 -1
- package/esm2022/slider/index.js +0 -20
- package/esm2022/slider/index.js.map +0 -1
- package/esm2022/slider/watt-slider.component.js.map +0 -1
- package/esm2022/spinner/energinet-watt-spinner.js +0 -5
- package/esm2022/spinner/energinet-watt-spinner.js.map +0 -1
- package/esm2022/spinner/index.js +0 -20
- package/esm2022/spinner/index.js.map +0 -1
- package/esm2022/spinner/watt-spinner.component.js.map +0 -1
- package/esm2022/stepper/energinet-watt-stepper.js +0 -5
- package/esm2022/stepper/energinet-watt-stepper.js.map +0 -1
- package/esm2022/stepper/index.js +0 -21
- package/esm2022/stepper/index.js.map +0 -1
- package/esm2022/stepper/watt-stepper-step.component.js +0 -49
- package/esm2022/stepper/watt-stepper-step.component.js.map +0 -1
- package/esm2022/stepper/watt-stepper.component.js.map +0 -1
- package/esm2022/table/energinet-watt-table.js +0 -5
- package/esm2022/table/energinet-watt-table.js.map +0 -1
- package/esm2022/table/index.js +0 -21
- package/esm2022/table/index.js.map +0 -1
- package/esm2022/table/watt-table-data-source.js +0 -27
- package/esm2022/table/watt-table-data-source.js.map +0 -1
- package/esm2022/table/watt-table-expand-animation.js +0 -65
- package/esm2022/table/watt-table-expand-animation.js.map +0 -1
- package/esm2022/table/watt-table.component.js.map +0 -1
- package/esm2022/tabs/energinet-watt-tabs.js +0 -5
- package/esm2022/tabs/energinet-watt-tabs.js.map +0 -1
- package/esm2022/tabs/index.js +0 -31
- package/esm2022/tabs/index.js.map +0 -1
- package/esm2022/tabs/watt-link-tab.component.js +0 -34
- package/esm2022/tabs/watt-link-tab.component.js.map +0 -1
- package/esm2022/tabs/watt-link-tabs.component.js +0 -71
- package/esm2022/tabs/watt-link-tabs.component.js.map +0 -1
- package/esm2022/tabs/watt-tab.component.js +0 -42
- package/esm2022/tabs/watt-tab.component.js.map +0 -1
- package/esm2022/tabs/watt-tabs-action.component.js +0 -32
- package/esm2022/tabs/watt-tabs-action.component.js.map +0 -1
- package/esm2022/tabs/watt-tabs.component.js +0 -60
- package/esm2022/tabs/watt-tabs.component.js.map +0 -1
- package/esm2022/text-field/energinet-watt-text-field.js +0 -5
- package/esm2022/text-field/energinet-watt-text-field.js.map +0 -1
- package/esm2022/text-field/index.js +0 -20
- package/esm2022/text-field/index.js.map +0 -1
- package/esm2022/text-field/watt-text-field.component.js.map +0 -1
- package/esm2022/textarea-field/energinet-watt-textarea-field.js +0 -5
- package/esm2022/textarea-field/energinet-watt-textarea-field.js.map +0 -1
- package/esm2022/textarea-field/index.js +0 -20
- package/esm2022/textarea-field/index.js.map +0 -1
- package/esm2022/textarea-field/watt-textarea-field.component.js.map +0 -1
- package/esm2022/toast/energinet-watt-toast.js +0 -5
- package/esm2022/toast/energinet-watt-toast.js.map +0 -1
- package/esm2022/toast/index.js +0 -21
- package/esm2022/toast/index.js.map +0 -1
- package/esm2022/toast/watt-toast.component.js.map +0 -1
- package/esm2022/toast/watt-toast.service.js +0 -51
- package/esm2022/toast/watt-toast.service.js.map +0 -1
- package/esm2022/tooltip/energinet-watt-tooltip.js +0 -5
- package/esm2022/tooltip/energinet-watt-tooltip.js.map +0 -1
- package/esm2022/tooltip/index.js +0 -20
- package/esm2022/tooltip/index.js.map +0 -1
- package/esm2022/tooltip/watt-tooltip.component.js.map +0 -1
- package/esm2022/tooltip/watt-tooltip.directive.js +0 -67
- package/esm2022/tooltip/watt-tooltip.directive.js.map +0 -1
- package/esm2022/utils/css/css-custom-properties.service.js.map +0 -1
- package/esm2022/utils/css/energinet-watt-utils-css.js +0 -5
- package/esm2022/utils/css/energinet-watt-utils-css.js.map +0 -1
- package/esm2022/utils/css/index.js +0 -20
- package/esm2022/utils/css/index.js.map +0 -1
- package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js +0 -5
- package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js.map +0 -1
- package/esm2022/utils/intersection-observer/index.js +0 -20
- package/esm2022/utils/intersection-observer/index.js.map +0 -1
- package/esm2022/utils/intersection-observer/watt-intersection-observer.service.js.map +0 -1
- package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js +0 -5
- package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js.map +0 -1
- package/esm2022/utils/resize-observer/index.js +0 -21
- package/esm2022/utils/resize-observer/index.js.map +0 -1
- package/esm2022/utils/resize-observer/watt-resize-observer.directive.js +0 -53
- package/esm2022/utils/resize-observer/watt-resize-observer.directive.js.map +0 -1
- package/esm2022/utils/resize-observer/watt-resize-observer.service.js +0 -67
- package/esm2022/utils/resize-observer/watt-resize-observer.service.js.map +0 -1
- package/esm2022/validation-message/energinet-watt-validation-message.js +0 -5
- package/esm2022/validation-message/energinet-watt-validation-message.js.map +0 -1
- package/esm2022/validation-message/index.js +0 -20
- package/esm2022/validation-message/index.js.map +0 -1
- package/esm2022/validation-message/watt-validation-message.component.js.map +0 -1
- package/esm2022/validators/energinet-watt-validators.js +0 -5
- package/esm2022/validators/energinet-watt-validators.js.map +0 -1
- package/esm2022/validators/index.js +0 -20
- package/esm2022/validators/index.js.map +0 -1
- package/esm2022/validators/watt-range.validators.js.map +0 -1
- package/esm2022/vater/energinet-watt-vater.js +0 -5
- package/esm2022/vater/energinet-watt-vater.js.map +0 -1
- package/esm2022/vater/index.js +0 -24
- package/esm2022/vater/index.js.map +0 -1
- package/esm2022/vater/types.js +0 -20
- package/esm2022/vater/types.js.map +0 -1
- package/esm2022/vater/vater-flex.component.js +0 -49
- package/esm2022/vater/vater-flex.component.js.map +0 -1
- package/esm2022/vater/vater-layout.directive.js +0 -65
- package/esm2022/vater/vater-layout.directive.js.map +0 -1
- package/esm2022/vater/vater-spacer.component.js +0 -29
- package/esm2022/vater/vater-spacer.component.js.map +0 -1
- package/esm2022/vater/vater-stack.component.js +0 -42
- package/esm2022/vater/vater-stack.component.js.map +0 -1
- package/esm2022/vater/vater-utility.directive.js +0 -53
- package/esm2022/vater/vater-utility.directive.js.map +0 -1
- package/esm2022/year-field/energinet-watt-year-field.js +0 -5
- package/esm2022/year-field/energinet-watt-year-field.js.map +0 -1
- package/esm2022/year-field/index.js +0 -20
- package/esm2022/year-field/index.js.map +0 -1
- package/esm2022/year-field/watt-year-field.component.js.map +0 -1
- package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js +0 -5
- package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js.map +0 -1
- package/esm2022/yearmonth-field/index.js +0 -21
- package/esm2022/yearmonth-field/index.js.map +0 -1
- package/esm2022/yearmonth-field/watt-yearmonth-field.component.js.map +0 -1
- package/esm2022/yearmonth-field/year-month.js +0 -42
- package/esm2022/yearmonth-field/year-month.js.map +0 -1
- package/expandable-card/energinet-watt-expandable-card.d.ts +0 -5
- package/expandable-card/watt-expandable-card.component.d.ts +0 -34
- package/field/energinet-watt-field.d.ts +0 -5
- package/field/watt-field-error.component.d.ts +0 -5
- package/field/watt-field-hint.component.d.ts +0 -5
- package/field/watt-field-intl.service.d.ts +0 -8
- package/field/watt-field-warning.component.d.ts +0 -5
- package/field/watt-field.component.d.ts +0 -53
- package/file-field/energinet-watt-file-field.d.ts +0 -5
- package/file-field/watt-file-field.component.d.ts +0 -10
- package/icon/energinet-watt-icon.d.ts +0 -5
- package/icon/flags/energinet-watt-icon-flags.d.ts +0 -5
- package/icon/flags/watt-flag-ch.d.ts +0 -5
- package/icon/flags/watt-flag-de.d.ts +0 -5
- package/icon/flags/watt-flag-dk.d.ts +0 -5
- package/icon/flags/watt-flag-fi.d.ts +0 -5
- package/icon/flags/watt-flag-gb.d.ts +0 -5
- package/icon/flags/watt-flag-nl.d.ts +0 -5
- package/icon/flags/watt-flag-no.d.ts +0 -5
- package/icon/flags/watt-flag-pl.d.ts +0 -5
- package/icon/flags/watt-flag-se.d.ts +0 -5
- package/icon/flags/watt-flag.d.ts +0 -13
- package/icon/icon.component.d.ts +0 -20
- package/icon/icons.d.ts +0 -97
- package/menu/energinet-watt-menu.d.ts +0 -5
- package/menu/watt-menu-group.component.d.ts +0 -9
- package/menu/watt-menu-item.component.d.ts +0 -9
- package/menu/watt-menu-trigger.directive.d.ts +0 -36
- package/menu/watt-menu.component.d.ts +0 -44
- package/modal/energinet-watt-modal.d.ts +0 -5
- package/modal/watt-modal.component.d.ts +0 -84
- package/modal/watt-modal.service.d.ts +0 -56
- package/paginator/energinet-watt-paginator.d.ts +0 -5
- package/paginator/watt-paginator-intl.service.d.ts +0 -14
- package/paginator/watt-paginator.component.d.ts +0 -53
- package/phone-field/energinet-watt-phone-field.d.ts +0 -5
- package/phone-field/watt-phone-field-intl.service.d.ts +0 -17
- package/phone-field/watt-phone-field.component.d.ts +0 -75
- package/picker/__shared/energinet-watt-picker-__shared.d.ts +0 -5
- package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.d.ts +0 -34
- package/picker/__shared/watt-picker-base.d.ts +0 -81
- package/picker/__shared/watt-picker-value.d.ts +0 -18
- package/picker/datepicker/energinet-watt-picker-datepicker.d.ts +0 -5
- package/picker/datepicker/watt-datepicker-intl.service.d.ts +0 -7
- package/picker/datepicker/watt-datepicker.component.d.ts +0 -95
- package/picker/timepicker/energinet-watt-picker-timepicker.d.ts +0 -5
- package/picker/timepicker/maskito-time-range-mask.d.ts +0 -18
- package/picker/timepicker/watt-timepicker.component.d.ts +0 -69
- package/progress-tracker/energinet-watt-progress-tracker.d.ts +0 -5
- package/progress-tracker/watt-progress-tracker-step.component.d.ts +0 -10
- package/progress-tracker/watt-progress-tracker.component.d.ts +0 -5
- package/query-params/energinet-watt-query-params.d.ts +0 -5
- package/query-params/watt-query-params.directive.d.ts +0 -9
- package/radio/energinet-watt-radio.d.ts +0 -5
- package/radio/watt-radio-group.component.d.ts +0 -47
- package/radio/watt-radio.component.d.ts +0 -23
- package/search/energinet-watt-search.d.ts +0 -5
- package/search/watt-search.component.d.ts +0 -44
- package/segmented-buttons/energinet-watt-segmented-buttons.d.ts +0 -5
- package/segmented-buttons/watt-segmented-button.component.d.ts +0 -25
- package/segmented-buttons/watt-segmented-buttons.component.d.ts +0 -18
- package/shell/energinet-watt-shell.d.ts +0 -5
- package/shell/nav-list/index.d.ts +0 -18
- package/shell/nav-list/watt-expand-on-active-link.directive.d.ts +0 -9
- package/shell/nav-list/watt-nav-list-item.component.d.ts +0 -16
- package/shell/nav-list/watt-nav-list.component.d.ts +0 -12
- package/shell/shell.component.d.ts +0 -17
- package/slide-toggle/energinet-watt-slide-toggle.d.ts +0 -5
- package/slide-toggle/watt-slide-toggle.component.d.ts +0 -33
- package/slider/energinet-watt-slider.d.ts +0 -5
- package/slider/watt-slider.component.d.ts +0 -47
- package/spinner/energinet-watt-spinner.d.ts +0 -5
- package/spinner/watt-spinner.component.d.ts +0 -15
- package/stepper/energinet-watt-stepper.d.ts +0 -5
- package/stepper/watt-stepper-step.component.d.ts +0 -35
- package/stepper/watt-stepper.component.d.ts +0 -40
- package/table/energinet-watt-table.d.ts +0 -5
- package/table/watt-table-data-source.d.ts +0 -39
- package/table/watt-table-expand-animation.d.ts +0 -18
- package/table/watt-table.component.d.ts +0 -294
- package/tabs/energinet-watt-tabs.d.ts +0 -5
- package/tabs/watt-link-tab.component.d.ts +0 -7
- package/tabs/watt-link-tabs.component.d.ts +0 -7
- package/tabs/watt-tab.component.d.ts +0 -26
- package/tabs/watt-tabs-action.component.d.ts +0 -5
- package/tabs/watt-tabs.component.d.ts +0 -36
- package/text-field/energinet-watt-text-field.d.ts +0 -5
- package/text-field/watt-text-field.component.d.ts +0 -80
- package/textarea-field/energinet-watt-textarea-field.d.ts +0 -5
- package/textarea-field/watt-textarea-field.component.d.ts +0 -28
- package/toast/energinet-watt-toast.d.ts +0 -5
- package/toast/watt-toast.component.d.ts +0 -47
- package/toast/watt-toast.service.d.ts +0 -12
- package/tooltip/energinet-watt-tooltip.d.ts +0 -5
- package/tooltip/watt-tooltip.component.d.ts +0 -26
- package/tooltip/watt-tooltip.directive.d.ts +0 -16
- package/utils/css/css-custom-properties.service.d.ts +0 -9
- package/utils/css/energinet-watt-utils-css.d.ts +0 -5
- package/utils/intersection-observer/energinet-watt-utils-intersection-observer.d.ts +0 -5
- package/utils/intersection-observer/watt-intersection-observer.service.d.ts +0 -21
- package/utils/resize-observer/energinet-watt-utils-resize-observer.d.ts +0 -5
- package/utils/resize-observer/watt-resize-observer.directive.d.ts +0 -35
- package/utils/resize-observer/watt-resize-observer.service.d.ts +0 -22
- package/validation-message/energinet-watt-validation-message.d.ts +0 -5
- package/validation-message/watt-validation-message.component.d.ts +0 -50
- package/validators/energinet-watt-validators.d.ts +0 -5
- package/validators/watt-range.validators.d.ts +0 -24
- package/vater/energinet-watt-vater.d.ts +0 -5
- package/vater/types.d.ts +0 -22
- package/vater/vater-flex.component.d.ts +0 -14
- package/vater/vater-layout.directive.d.ts +0 -24
- package/vater/vater-spacer.component.d.ts +0 -5
- package/vater/vater-stack.component.d.ts +0 -7
- package/vater/vater-utility.directive.d.ts +0 -17
- package/year-field/energinet-watt-year-field.d.ts +0 -5
- package/year-field/watt-year-field.component.d.ts +0 -56
- package/yearmonth-field/energinet-watt-yearmonth-field.d.ts +0 -5
- package/yearmonth-field/watt-yearmonth-field.component.d.ts +0 -58
- package/yearmonth-field/year-month.d.ts +0 -20
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
import * as i1 from '@angular/common';
|
|
2
|
+
import { NgClass, NgTemplateOutlet } from '@angular/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { viewChild, input, ChangeDetectionStrategy, Component, inject, contentChildren, computed, effect, ViewEncapsulation } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
//#region License
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
10
|
+
*
|
|
11
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
12
|
+
* you may not use this file except in compliance with the License.
|
|
13
|
+
* You may obtain a copy of the License at
|
|
14
|
+
*
|
|
15
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
+
*
|
|
17
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
+
* See the License for the specific language governing permissions and
|
|
21
|
+
* limitations under the License.
|
|
22
|
+
*/
|
|
23
|
+
//#endregion
|
|
24
|
+
class WattDescriptionListItemComponent {
|
|
25
|
+
templateRef = viewChild.required('templateRef');
|
|
26
|
+
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
27
|
+
value = input(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
28
|
+
forceNewRow = input(false, ...(ngDevMode ? [{ debugName: "forceNewRow" }] : []));
|
|
29
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDescriptionListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.15", type: WattDescriptionListItemComponent, isStandalone: true, selector: "watt-description-list-item", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, forceNewRow: { classPropertyName: "forceNewRow", publicName: "forceNewRow", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.NgClass }], ngImport: i0, template: `<ng-template #templateRef
|
|
31
|
+
><div [ngClass]="{ 'force-new-row': forceNewRow() }">
|
|
32
|
+
<dt class="watt-label watt-on-light--high-emphasis">{{ label() }}</dt>
|
|
33
|
+
<dd class="watt-text-s">{{ value() }}<ng-content /></dd></div
|
|
34
|
+
></ng-template>`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDescriptionListItemComponent, decorators: [{
|
|
37
|
+
type: Component,
|
|
38
|
+
args: [{
|
|
39
|
+
imports: [NgClass],
|
|
40
|
+
selector: 'watt-description-list-item',
|
|
41
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
42
|
+
hostDirectives: [NgClass],
|
|
43
|
+
template: `<ng-template #templateRef
|
|
44
|
+
><div [ngClass]="{ 'force-new-row': forceNewRow() }">
|
|
45
|
+
<dt class="watt-label watt-on-light--high-emphasis">{{ label() }}</dt>
|
|
46
|
+
<dd class="watt-text-s">{{ value() }}<ng-content /></dd></div
|
|
47
|
+
></ng-template>`,
|
|
48
|
+
}]
|
|
49
|
+
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], forceNewRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceNewRow", required: false }] }] } });
|
|
50
|
+
|
|
1
51
|
//#region License
|
|
2
52
|
/**
|
|
3
53
|
* @license
|
|
@@ -16,11 +66,6 @@
|
|
|
16
66
|
* limitations under the License.
|
|
17
67
|
*/
|
|
18
68
|
//#endregion
|
|
19
|
-
import { NgClass, NgTemplateOutlet } from '@angular/common';
|
|
20
|
-
import { Component, computed, contentChildren, effect, inject, input, ViewEncapsulation, } from '@angular/core';
|
|
21
|
-
import { WattDescriptionListItemComponent } from './watt-description-list-item.component';
|
|
22
|
-
import * as i0 from "@angular/core";
|
|
23
|
-
import * as i1 from "@angular/common";
|
|
24
69
|
/**
|
|
25
70
|
* Usage:
|
|
26
71
|
* `import { WattDescriptionListComponent } from '@energinet/watt/description-list';`
|
|
@@ -57,9 +102,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
57
102
|
'[class]': 'descriptionVariant()',
|
|
58
103
|
}, styles: ["watt-description-list{display:block}watt-description-list.watt-description-list-flow dl{display:grid;gap:var(--watt-space-ml);grid-template-columns:repeat(var(--watt-description-list-groups-per-row, 3),1fr)}watt-description-list.watt-description-list-flow dl dd{margin:0}watt-description-list.watt-description-list-flow dl .force-new-row{grid-column-start:1}watt-description-list.watt-description-list-inline-flow dl{display:flex;gap:var(--watt-space-ml)}watt-description-list.watt-description-list-inline-flow dl dd{margin:0}watt-description-list.watt-description-list-inline-flow dl div{display:flex;gap:var(--watt-space-xs);width:max-content}watt-description-list.watt-description-list-stack dl{display:grid;gap:var(--watt-space-m);grid-template-columns:1fr}watt-description-list.watt-description-list-stack dl dd{margin:0;flex:1}watt-description-list.watt-description-list-stack dl dt{width:240px}watt-description-list.watt-description-list-stack dl div{display:flex;align-items:baseline}watt-description-list.watt-description-list-stack.item-separators dl div{border-bottom:1px solid var(--watt-color-neutral-grey-300);padding-bottom:var(--watt-space-m)}watt-description-list.watt-description-list-compact dl{display:grid;gap:var(--watt-space-m) var(--watt-space-l);grid-template-columns:max-content max-content}watt-description-list.watt-description-list-compact dl dd{margin:0}watt-description-list.watt-description-list-compact dl div{display:contents}\n"] }]
|
|
59
104
|
}], ctorParameters: () => [], propDecorators: { descriptionItems: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => WattDescriptionListItemComponent), { isSignal: true }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], groupsPerRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupsPerRow", required: false }] }], itemSeparators: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSeparators", required: false }] }] } });
|
|
60
|
-
|
|
61
|
-
export const WATT_DESCRIPTION_LIST = [
|
|
105
|
+
const WATT_DESCRIPTION_LIST = [
|
|
62
106
|
WattDescriptionListComponent,
|
|
63
107
|
WattDescriptionListItemComponent,
|
|
64
108
|
];
|
|
65
|
-
|
|
109
|
+
|
|
110
|
+
//#region License
|
|
111
|
+
/**
|
|
112
|
+
* @license
|
|
113
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
114
|
+
*
|
|
115
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
116
|
+
* you may not use this file except in compliance with the License.
|
|
117
|
+
* You may obtain a copy of the License at
|
|
118
|
+
*
|
|
119
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
120
|
+
*
|
|
121
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
122
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
123
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
124
|
+
* See the License for the specific language governing permissions and
|
|
125
|
+
* limitations under the License.
|
|
126
|
+
*/
|
|
127
|
+
//#endregion
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Generated bundle index. Do not edit.
|
|
131
|
+
*/
|
|
132
|
+
|
|
133
|
+
export { WATT_DESCRIPTION_LIST, WattDescriptionListComponent, WattDescriptionListItemComponent };
|
|
134
|
+
//# sourceMappingURL=energinet-watt-description-list.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-description-list.mjs","sources":["../../../libs/watt/package/description-list/watt-description-list-item.component.ts","../../../libs/watt/package/description-list/watt-description-list.component.ts","../../../libs/watt/package/description-list/index.ts","../../../libs/watt/package/description-list/energinet-watt-description-list.ts"],"sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { ChangeDetectionStrategy, Component, input, TemplateRef, viewChild } from '@angular/core';\nimport { NgClass } from '@angular/common';\n\n@Component({\n imports: [NgClass],\n selector: 'watt-description-list-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [NgClass],\n template: `<ng-template #templateRef\n ><div [ngClass]=\"{ 'force-new-row': forceNewRow() }\">\n <dt class=\"watt-label watt-on-light--high-emphasis\">{{ label() }}</dt>\n <dd class=\"watt-text-s\">{{ value() }}<ng-content /></dd></div\n ></ng-template>`,\n})\nexport class WattDescriptionListItemComponent<T> {\n templateRef = viewChild.required<TemplateRef<unknown | null>>('templateRef');\n label = input<string>('');\n value = input<T | null>(null);\n forceNewRow = input(false);\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n computed,\n contentChildren,\n effect,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { WattDescriptionListItemComponent } from './watt-description-list-item.component';\n/**\n * Usage:\n * `import { WattDescriptionListComponent } from '@energinet/watt/description-list';`\n */\n@Component({\n encapsulation: ViewEncapsulation.None,\n selector: 'watt-description-list',\n styleUrls: ['./watt-description-list.component.scss'],\n imports: [NgTemplateOutlet],\n template: `<dl>\n @for (item of descriptionItems(); track item) {\n <ng-container *ngTemplateOutlet=\"item.templateRef()\" />\n }\n </dl>`,\n hostDirectives: [NgClass],\n host: {\n '[style.--watt-description-list-groups-per-row]': 'groupsPerRow()',\n '[class]': 'descriptionVariant()',\n },\n})\nclass WattDescriptionListComponent<T> {\n private ngClass = inject(NgClass);\n descriptionItems = contentChildren(WattDescriptionListItemComponent<T>);\n variant = input<'flow' | 'inline-flow' | 'stack' | 'compact'>('flow');\n descriptionVariant = computed(() => `watt-description-list-${this.variant()}`);\n groupsPerRow = input<number>(3);\n itemSeparators = input(true);\n\n constructor() {\n effect(() => {\n this.ngClass.ngClass = {\n [`item-separators`]: this.itemSeparators(),\n };\n });\n }\n}\n\nexport { WattDescriptionListItemComponent, WattDescriptionListComponent };\nexport const WATT_DESCRIPTION_LIST = [\n WattDescriptionListComponent,\n WattDescriptionListItemComponent,\n] as const;\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport {\n WattDescriptionListComponent,\n WattDescriptionListItemComponent,\n WATT_DESCRIPTION_LIST,\n} from './watt-description-list.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;MAea,gCAAgC,CAAA;AAC3C,IAAA,WAAW,GAAG,SAAS,CAAC,QAAQ,CAA8B,aAAa,CAAC;AAC5E,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,iDAAC;AACzB,IAAA,KAAK,GAAG,KAAK,CAAW,IAAI,iDAAC;AAC7B,IAAA,WAAW,GAAG,KAAK,CAAC,KAAK,uDAAC;wGAJf,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAhC,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gCAAgC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAA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gBAAgB,CAAC,EAAA,QAAA,EACjB,CAAA;;;;QAIJ,EAAA,cAAA,EACU,CAAC,OAAO,CAAC,EAAA,IAAA,EACnB;AACJ,wBAAA,gDAAgD,EAAE,gBAAgB;AAClE,wBAAA,SAAS,EAAE,sBAAsB;AAClC,qBAAA,EAAA,MAAA,EAAA,CAAA,w7CAAA,CAAA,EAAA;kIAIkC,gCAAmC,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,SAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,cAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;AAgBjE,MAAM,qBAAqB,GAAG;IACnC,4BAA4B;IAC5B,gCAAgC;;;ACtElC;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
|
|
@@ -1,3 +1,125 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ViewEncapsulation, inject, ElementRef, contentChild, viewChild, signal, input, booleanAttribute, output, afterRenderEffect, untracked, effect, ChangeDetectionStrategy } from '@angular/core';
|
|
3
|
+
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
4
|
+
import * as i1 from '@angular/cdk/a11y';
|
|
5
|
+
import { CdkTrapFocus, A11yModule } from '@angular/cdk/a11y';
|
|
6
|
+
import * as i2 from '@angular/material/sidenav';
|
|
7
|
+
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
8
|
+
import { VaterFlexComponent, VaterStackComponent, VaterSpacerComponent, VaterUtilityDirective } from '@energinet/watt/vater';
|
|
9
|
+
import { WattButtonComponent } from '@energinet/watt/button';
|
|
10
|
+
import { WattSpinnerComponent } from '@energinet/watt/spinner';
|
|
11
|
+
|
|
12
|
+
//#region License
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
16
|
+
*
|
|
17
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
18
|
+
* you may not use this file except in compliance with the License.
|
|
19
|
+
* You may obtain a copy of the License at
|
|
20
|
+
*
|
|
21
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
24
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
25
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
26
|
+
* See the License for the specific language governing permissions and
|
|
27
|
+
* limitations under the License.
|
|
28
|
+
*/
|
|
29
|
+
//#endregion
|
|
30
|
+
class WattDrawerTopbarComponent {
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerTopbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: WattDrawerTopbarComponent, isStandalone: true, selector: "watt-drawer-topbar", ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerTopbarComponent, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{
|
|
37
|
+
selector: 'watt-drawer-topbar',
|
|
38
|
+
template: `<ng-content />`,
|
|
39
|
+
}]
|
|
40
|
+
}] });
|
|
41
|
+
|
|
42
|
+
//#region License
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
46
|
+
*
|
|
47
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
48
|
+
* you may not use this file except in compliance with the License.
|
|
49
|
+
* You may obtain a copy of the License at
|
|
50
|
+
*
|
|
51
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
52
|
+
*
|
|
53
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
54
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
55
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
56
|
+
* See the License for the specific language governing permissions and
|
|
57
|
+
* limitations under the License.
|
|
58
|
+
*/
|
|
59
|
+
//#endregion
|
|
60
|
+
class WattDrawerActionsComponent {
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: WattDrawerActionsComponent, isStandalone: true, selector: "watt-drawer-actions", ngImport: i0, template: `<ng-content select="watt-button" />`, isInline: true, styles: [":host{display:flex;gap:var(--watt-space-s)}\n"] });
|
|
63
|
+
}
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerActionsComponent, decorators: [{
|
|
65
|
+
type: Component,
|
|
66
|
+
args: [{ selector: 'watt-drawer-actions', template: `<ng-content select="watt-button" />`, styles: [":host{display:flex;gap:var(--watt-space-s)}\n"] }]
|
|
67
|
+
}] });
|
|
68
|
+
|
|
69
|
+
//#region License
|
|
70
|
+
/**
|
|
71
|
+
* @license
|
|
72
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
73
|
+
*
|
|
74
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
75
|
+
* you may not use this file except in compliance with the License.
|
|
76
|
+
* You may obtain a copy of the License at
|
|
77
|
+
*
|
|
78
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
79
|
+
*
|
|
80
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
81
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
82
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
83
|
+
* See the License for the specific language governing permissions and
|
|
84
|
+
* limitations under the License.
|
|
85
|
+
*/
|
|
86
|
+
//#endregion
|
|
87
|
+
class WattDrawerContentComponent {
|
|
88
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
89
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: WattDrawerContentComponent, isStandalone: true, selector: "watt-drawer-content", ngImport: i0, template: `<ng-content />`, isInline: true, styles: [":host{overflow:auto;padding:var(--watt-space-ml)}\n"] });
|
|
90
|
+
}
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerContentComponent, decorators: [{
|
|
92
|
+
type: Component,
|
|
93
|
+
args: [{ selector: 'watt-drawer-content', template: `<ng-content />`, styles: [":host{overflow:auto;padding:var(--watt-space-ml)}\n"] }]
|
|
94
|
+
}] });
|
|
95
|
+
|
|
96
|
+
//#region License
|
|
97
|
+
/**
|
|
98
|
+
* @license
|
|
99
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
100
|
+
*
|
|
101
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
102
|
+
* you may not use this file except in compliance with the License.
|
|
103
|
+
* You may obtain a copy of the License at
|
|
104
|
+
*
|
|
105
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
106
|
+
*
|
|
107
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
108
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
109
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
110
|
+
* See the License for the specific language governing permissions and
|
|
111
|
+
* limitations under the License.
|
|
112
|
+
*/
|
|
113
|
+
//#endregion
|
|
114
|
+
class WattDrawerHeadingComponent {
|
|
115
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerHeadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
116
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: WattDrawerHeadingComponent, isStandalone: true, selector: "watt-drawer-heading", ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["watt-drawer-heading{width:100%;display:block}watt-drawer-heading h1,watt-drawer-heading h2,watt-drawer-heading h3,watt-drawer-heading h4,watt-drawer-heading h5,watt-drawer-heading h6{margin:0;line-height:48px!important}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
117
|
+
}
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerHeadingComponent, decorators: [{
|
|
119
|
+
type: Component,
|
|
120
|
+
args: [{ selector: 'watt-drawer-heading', encapsulation: ViewEncapsulation.None, template: `<ng-content />`, styles: ["watt-drawer-heading{width:100%;display:block}watt-drawer-heading h1,watt-drawer-heading h2,watt-drawer-heading h3,watt-drawer-heading h4,watt-drawer-heading h5,watt-drawer-heading h6{margin:0;line-height:48px!important}\n"] }]
|
|
121
|
+
}] });
|
|
122
|
+
|
|
1
123
|
//#region License
|
|
2
124
|
/**
|
|
3
125
|
* @license
|
|
@@ -16,26 +138,12 @@
|
|
|
16
138
|
* limitations under the License.
|
|
17
139
|
*/
|
|
18
140
|
//#endregion
|
|
19
|
-
import { inject, input, output, Component, viewChild, ElementRef, ChangeDetectionStrategy, signal, untracked, booleanAttribute, contentChild, effect, afterRenderEffect, } from '@angular/core';
|
|
20
|
-
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
21
|
-
import { CdkTrapFocus, A11yModule } from '@angular/cdk/a11y';
|
|
22
|
-
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
23
|
-
import { VaterFlexComponent, VaterSpacerComponent, VaterStackComponent, VaterUtilityDirective, } from '@energinet/watt/vater';
|
|
24
|
-
import { WattButtonComponent } from '@energinet/watt/button';
|
|
25
|
-
import { WattSpinnerComponent } from '@energinet/watt/spinner';
|
|
26
|
-
import { WattDrawerTopbarComponent } from './watt-drawer-topbar.component';
|
|
27
|
-
import { WattDrawerActionsComponent } from './watt-drawer-actions.component';
|
|
28
|
-
import { WattDrawerContentComponent } from './watt-drawer-content.component';
|
|
29
|
-
import { WattDrawerHeadingComponent } from './watt-drawer-heading.component';
|
|
30
|
-
import * as i0 from "@angular/core";
|
|
31
|
-
import * as i1 from "@angular/cdk/a11y";
|
|
32
|
-
import * as i2 from "@angular/material/sidenav";
|
|
33
141
|
const APPEAR_ANIMATION_DELAY = 250;
|
|
34
142
|
const APPEAR_ANIMATION_FRAMES = {
|
|
35
143
|
transform: ['translateX(30px)', 'translateX(0)'],
|
|
36
144
|
opacity: ['0', '1'],
|
|
37
145
|
};
|
|
38
|
-
|
|
146
|
+
class WattDrawerComponent {
|
|
39
147
|
elementRef = inject(ElementRef);
|
|
40
148
|
overlayContainer = inject(OverlayContainer);
|
|
41
149
|
content = contentChild(WattDrawerContentComponent, ...(ngDevMode ? [{ debugName: "content", read: ElementRef }] : [{ read: ElementRef }]));
|
|
@@ -179,11 +287,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
179
287
|
WattSpinnerComponent,
|
|
180
288
|
], template: "<!--\n@license\nCopyright 2020 Energinet DataHub A/S\n\nLicensed under the Apache License, Version 2.0 (the \"License2\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n<mat-drawer-container class=\"watt-drawer-container\" [hasBackdrop]=\"false\">\n <mat-drawer\n class=\"watt-drawer watt-drawer--{{ size() }}\"\n mode=\"side\"\n position=\"end\"\n [opened]=\"isOpen()\"\n (closed)=\"closed.emit()\"\n [disableClose]=\"true\"\n [autoFocus]=\"true\"\n [cdkTrapFocus]=\"true\"\n >\n <article vater-flex fill=\"vertical\">\n <header vater-stack align=\"stretch\" offset=\"m\" gap=\"s\">\n <vater-stack direction=\"row\" offset=\"ml\" gap=\"s\" align=\"center\">\n <ng-content select=\"watt-drawer-topbar\" />\n <vater-spacer />\n <watt-button variant=\"icon\" icon=\"close\" (click)=\"close()\" />\n </vater-stack>\n <vater-flex\n autoSize\n direction=\"row\"\n offset=\"ml\"\n justify=\"space-between\"\n gap=\"s\"\n align=\"center\"\n >\n <ng-content select=\"watt-drawer-heading\" />\n <ng-content select=\"watt-drawer-actions\" />\n </vater-flex>\n </header>\n <ng-content />\n <ng-content select=\"watt-drawer-content\" />\n </article>\n\n @if (loading()) {\n <div class=\"watt-drawer__spinner\">\n <watt-spinner />\n </div>\n }\n </mat-drawer>\n</mat-drawer-container>\n", styles: [":host{display:block}.watt-drawer-container{box-shadow:0 4px 64px 3px #2e323440;height:100vh;position:fixed;right:0;top:0;width:auto;z-index:500}.watt-drawer--small{width:460px;max-width:100vw}.watt-drawer--normal{width:906px;max-width:100vw}.watt-drawer--large{width:1174px;max-width:100vw}.watt-drawer header{flex:0;border-bottom:1px solid var(--watt-color-neutral-grey-300)}.watt-drawer__spinner{z-index:1;position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background-color:var(--watt-color-neutral-white);opacity:.5}\n"] }]
|
|
181
289
|
}], ctorParameters: () => [], propDecorators: { content: [{ type: i0.ContentChild, args: [i0.forwardRef(() => WattDrawerContentComponent), { ...{ read: ElementRef }, isSignal: true }] }], heading: [{ type: i0.ContentChild, args: [i0.forwardRef(() => WattDrawerHeadingComponent), { ...{ read: ElementRef }, isSignal: true }] }], topBar: [{ type: i0.ContentChild, args: [i0.forwardRef(() => WattDrawerTopbarComponent), { ...{ read: ElementRef }, isSignal: true }] }], cdkTrapFocus: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkTrapFocus), { isSignal: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], autoOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoOpen", required: false }] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], animateOnKeyChange: [{ type: i0.Input, args: [{ isSignal: true, alias: "animateOnKeyChange", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
182
|
-
|
|
290
|
+
const WATT_DRAWER = [
|
|
183
291
|
WattDrawerComponent,
|
|
184
292
|
WattDrawerTopbarComponent,
|
|
185
293
|
WattDrawerActionsComponent,
|
|
186
294
|
WattDrawerContentComponent,
|
|
187
295
|
WattDrawerHeadingComponent,
|
|
188
296
|
];
|
|
189
|
-
|
|
297
|
+
|
|
298
|
+
//#region License
|
|
299
|
+
/**
|
|
300
|
+
* @license
|
|
301
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
302
|
+
*
|
|
303
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
304
|
+
* you may not use this file except in compliance with the License.
|
|
305
|
+
* You may obtain a copy of the License at
|
|
306
|
+
*
|
|
307
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
308
|
+
*
|
|
309
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
310
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
311
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
312
|
+
* See the License for the specific language governing permissions and
|
|
313
|
+
* limitations under the License.
|
|
314
|
+
*/
|
|
315
|
+
//#endregion
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Generated bundle index. Do not edit.
|
|
319
|
+
*/
|
|
320
|
+
|
|
321
|
+
export { WATT_DRAWER, WattDrawerActionsComponent, WattDrawerComponent, WattDrawerContentComponent, WattDrawerHeadingComponent, WattDrawerTopbarComponent };
|
|
322
|
+
//# sourceMappingURL=energinet-watt-drawer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-drawer.mjs","sources":["../../../libs/watt/package/drawer/watt-drawer-topbar.component.ts","../../../libs/watt/package/drawer/watt-drawer-actions.component.ts","../../../libs/watt/package/drawer/watt-drawer-content.component.ts","../../../libs/watt/package/drawer/watt-drawer-heading.component.ts","../../../libs/watt/package/drawer/watt-drawer.component.ts","../../../libs/watt/package/drawer/watt-drawer.component.html","../../../libs/watt/package/drawer/index.ts","../../../libs/watt/package/drawer/energinet-watt-drawer.ts"],"sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'watt-drawer-topbar',\n template: `<ng-content />`,\n})\nexport class WattDrawerTopbarComponent {}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'watt-drawer-actions',\n styles: `\n :host {\n display: flex;\n gap: var(--watt-space-s);\n }\n `,\n template: `<ng-content select=\"watt-button\" />`,\n})\nexport class WattDrawerActionsComponent {}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'watt-drawer-content',\n template: `<ng-content />`,\n styles: [\n `\n :host {\n overflow: auto;\n padding: var(--watt-space-ml);\n }\n `,\n ],\n})\nexport class WattDrawerContentComponent {}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'watt-drawer-heading',\n encapsulation: ViewEncapsulation.None,\n template: `<ng-content />`,\n styles: [\n `\n watt-drawer-heading {\n width: 100%;\n display: block;\n }\n\n watt-drawer-heading h1,\n watt-drawer-heading h2,\n watt-drawer-heading h3,\n watt-drawer-heading h4,\n watt-drawer-heading h5,\n watt-drawer-heading h6 {\n margin: 0;\n line-height: 48px !important; /* align with actions */\n }\n `,\n ],\n})\nexport class WattDrawerHeadingComponent {}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport {\n inject,\n input,\n output,\n Component,\n OnDestroy,\n viewChild,\n ElementRef,\n ChangeDetectionStrategy,\n signal,\n untracked,\n booleanAttribute,\n contentChild,\n effect,\n afterRenderEffect,\n} from '@angular/core';\n\nimport { OverlayContainer } from '@angular/cdk/overlay';\nimport { CdkTrapFocus, A11yModule } from '@angular/cdk/a11y';\nimport { MatSidenavModule } from '@angular/material/sidenav';\n\nimport {\n VaterFlexComponent,\n VaterSpacerComponent,\n VaterStackComponent,\n VaterUtilityDirective,\n} from '@energinet/watt/vater';\nimport { WattButtonComponent } from '@energinet/watt/button';\nimport { WattSpinnerComponent } from '@energinet/watt/spinner';\n\nimport { WattDrawerTopbarComponent } from './watt-drawer-topbar.component';\nimport { WattDrawerActionsComponent } from './watt-drawer-actions.component';\nimport { WattDrawerContentComponent } from './watt-drawer-content.component';\nimport { WattDrawerHeadingComponent } from './watt-drawer-heading.component';\n\nexport type WattDrawerSize = 'small' | 'normal' | 'large';\n\nconst APPEAR_ANIMATION_DELAY = 250;\nconst APPEAR_ANIMATION_FRAMES = {\n transform: ['translateX(30px)', 'translateX(0)'],\n opacity: ['0', '1'],\n};\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'watt-drawer',\n styleUrls: ['./watt-drawer.component.scss'],\n templateUrl: './watt-drawer.component.html',\n host: {\n '(document:click)': 'handleDocumentClick($event)',\n '(keydown.escape)': 'handleEscKeyPressed()',\n },\n imports: [\n A11yModule,\n MatSidenavModule,\n VaterFlexComponent,\n VaterStackComponent,\n VaterSpacerComponent,\n VaterUtilityDirective,\n WattButtonComponent,\n WattSpinnerComponent,\n ],\n})\nexport class WattDrawerComponent implements OnDestroy {\n private elementRef = inject(ElementRef);\n private overlayContainer = inject(OverlayContainer);\n private content = contentChild(WattDrawerContentComponent, { read: ElementRef });\n private heading = contentChild(WattDrawerHeadingComponent, { read: ElementRef });\n private topBar = contentChild(WattDrawerTopbarComponent, { read: ElementRef });\n private cdkTrapFocus = viewChild.required(CdkTrapFocus);\n private bypassClickCheck = false;\n private writableIsOpen = signal(false);\n\n // Multiple drawers open at the same time are not allowed. This keeps track of\n // the currently opened drawer and closes it when a new drawer is opened.\n private static currentDrawer?: WattDrawerComponent;\n\n /** Used to adjust drawer size to best fit the content. */\n size = input<WattDrawerSize>('normal');\n\n /**\n * Whether the drawer should open automatically. If `key` is provided and\n * `autoOpen` is true, the drawer will open every time the key changes.\n */\n autoOpen = input(false, { transform: booleanAttribute });\n\n /**\n * Used to track the current drawer when reusing the same drawer instance to\n * render different content. This is required when interactions outside the\n * drawer should result in updating the drawer's content instead of closing it.\n */\n key = input<unknown>();\n\n /** Whether the drawer should show a loading state. */\n loading = input(false);\n\n /** Adds a brief animation to indicate that the content has changed. */\n animateOnKeyChange = input(false);\n\n /** Emits whenever the drawer is fully closed. */\n closed = output<void>();\n\n /** Whether the drawer is open. */\n isOpen = this.writableIsOpen.asReadonly();\n\n constructor() {\n afterRenderEffect({\n read: () => {\n this.key();\n if (this.autoOpen()) this.open();\n if (!this.animateOnKeyChange()) return;\n untracked(() => {\n if (!this.isOpen()) return;\n this.content()?.nativeElement.animate(APPEAR_ANIMATION_FRAMES, APPEAR_ANIMATION_DELAY);\n this.heading()?.nativeElement.animate(APPEAR_ANIMATION_FRAMES, APPEAR_ANIMATION_DELAY);\n this.topBar()?.nativeElement.animate(APPEAR_ANIMATION_FRAMES, APPEAR_ANIMATION_DELAY);\n });\n },\n });\n\n // Who doesn't love a good workaround, right?\n // Let's make the drawer resize itself whenever the `size` input changes.\n //\n // The `mat-drawer` component offers the `autosize` input for this.\n // However, it is specifically mentioned that this options should be used at own risk,\n // as it could cause performance issues.\n // See: https://material.angular.dev/components/sidenav/overview#resizing-an-open-sidenav\n //\n // So to work around this, a simple `resize` event is dispatched whenever the `size` input changes.\n // This works because `mat-drawer` uses `ViewportRuler` from `@angular/cdk/scrolling`\n // (see https://github.com/angular/components/blob/19.2.1/src/material/sidenav/drawer.ts#L811-L816)\n // to listen to `resize` events and re-calculates margins applied to the drawer content\n // (see https://github.com/angular/components/blob/20.0.0-rc.2/src/cdk/scrolling/viewport-ruler.ts#L50-L53).\n effect(() => {\n this.size();\n\n document.dispatchEvent(new Event('resize', { bubbles: true }));\n });\n }\n\n /** @ignore */\n handleDocumentClick(event: MouseEvent) {\n // Prevent closing when the click triggered a call to `open`\n if (this.bypassClickCheck) return;\n\n // Check if the click originated from within the drawer element\n const isClickInside = this.elementRef.nativeElement.contains(event.target);\n if (isClickInside) return;\n\n // Check if the click originated from within an overlay (such as a modal)\n const overlayContainerEl = this.overlayContainer.getContainerElement();\n const isOverlayClick = overlayContainerEl.contains(event.target as Node);\n if (isOverlayClick) return;\n\n // Click is allowed to close the drawer now\n this.close();\n }\n\n /** @ignore */\n handleEscKeyPressed() {\n this.close();\n }\n\n /** @ignore */\n ngOnDestroy(): void {\n if (WattDrawerComponent.currentDrawer === this) {\n WattDrawerComponent.currentDrawer = undefined;\n }\n }\n\n /** Opens the drawer. Subsequent calls are ignored while the drawer is opened. */\n open() {\n // Trap focus whenever open is called. This doesn't work on the\n // initial call (when first opening the drawer), but this is\n // handled by the autoFocus property on mat-drawer.\n this.cdkTrapFocus().focusTrap.focusInitialElementWhenReady();\n\n // Disable click outside check until the current event loop is finished.\n // This might seem hackish, but the order of execution is stable here.\n // Also prevents an issue when the drawer is destroyed and then recreated,\n // causing the click outside check to trigger immediately if the drawer\n // is created and opened in response to a click event.\n this.bypassClickCheck = true;\n setTimeout(() => {\n this.bypassClickCheck = false;\n }, 0);\n\n // Without `untracked`, if this is called in a reactive context (such as an `effect`),\n // it will be triggered twice due to `isOpen` being tracked and immediately updated.\n if (untracked(this.isOpen)) return;\n WattDrawerComponent.currentDrawer?.close();\n WattDrawerComponent.currentDrawer = this;\n this.writableIsOpen.set(true);\n }\n\n /** Closes the drawer. */\n close() {\n if (!untracked(this.isOpen)) return;\n WattDrawerComponent.currentDrawer = undefined;\n this.writableIsOpen.set(false);\n }\n}\n\nexport const WATT_DRAWER = [\n WattDrawerComponent,\n WattDrawerTopbarComponent,\n WattDrawerActionsComponent,\n WattDrawerContentComponent,\n WattDrawerHeadingComponent,\n];\n","<!--\n@license\nCopyright 2020 Energinet DataHub A/S\n\nLicensed under the Apache License, Version 2.0 (the \"License2\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n<mat-drawer-container class=\"watt-drawer-container\" [hasBackdrop]=\"false\">\n <mat-drawer\n class=\"watt-drawer watt-drawer--{{ size() }}\"\n mode=\"side\"\n position=\"end\"\n [opened]=\"isOpen()\"\n (closed)=\"closed.emit()\"\n [disableClose]=\"true\"\n [autoFocus]=\"true\"\n [cdkTrapFocus]=\"true\"\n >\n <article vater-flex fill=\"vertical\">\n <header vater-stack align=\"stretch\" offset=\"m\" gap=\"s\">\n <vater-stack direction=\"row\" offset=\"ml\" gap=\"s\" align=\"center\">\n <ng-content select=\"watt-drawer-topbar\" />\n <vater-spacer />\n <watt-button variant=\"icon\" icon=\"close\" (click)=\"close()\" />\n </vater-stack>\n <vater-flex\n autoSize\n direction=\"row\"\n offset=\"ml\"\n justify=\"space-between\"\n gap=\"s\"\n align=\"center\"\n >\n <ng-content select=\"watt-drawer-heading\" />\n <ng-content select=\"watt-drawer-actions\" />\n </vater-flex>\n </header>\n <ng-content />\n <ng-content select=\"watt-drawer-content\" />\n </article>\n\n @if (loading()) {\n <div class=\"watt-drawer__spinner\">\n <watt-spinner />\n </div>\n }\n </mat-drawer>\n</mat-drawer-container>\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattDrawerTopbarComponent } from './watt-drawer-topbar.component';\nexport { WattDrawerActionsComponent } from './watt-drawer-actions.component';\nexport { WattDrawerContentComponent } from './watt-drawer-content.component';\nexport { WattDrawerHeadingComponent } from './watt-drawer-heading.component';\nexport { WattDrawerComponent, WATT_DRAWER, WattDrawerSize } from './watt-drawer.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;MAOa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,IAAA,EAAA,KAAA,EAAA,SAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,kBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;AAsIjD,MAAM,WAAW,GAAG;IACzB,mBAAmB;IACnB,yBAAyB;IACzB,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;;;AElO5B;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
|
package/{esm2022/dropdown/watt-dropdown.component.js → fesm2022/energinet-watt-dropdown.mjs}
RENAMED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, DestroyRef, signal, viewChild, input, model, computed, effect, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/forms';
|
|
4
|
+
import { NgControl, FormControl, UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { NgClass } from '@angular/common';
|
|
6
|
+
import { RxPush } from '@rx-angular/template/push';
|
|
7
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
8
|
+
import { ReplaySubject, mergeWith, take, map, of } from 'rxjs';
|
|
9
|
+
import * as i3 from 'ngx-mat-select-search';
|
|
10
|
+
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
|
11
|
+
import * as i1 from '@angular/material/select';
|
|
12
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
13
|
+
import { MatOptionModule } from '@angular/material/core';
|
|
14
|
+
import { WattIconComponent } from '@energinet/watt/icon';
|
|
15
|
+
import { WattFieldComponent } from '@energinet/watt/field';
|
|
16
|
+
import { WattMenuChipComponent } from '@energinet/watt/chip';
|
|
17
|
+
|
|
1
18
|
//#region License
|
|
2
19
|
/**
|
|
3
20
|
* @license
|
|
@@ -16,23 +33,7 @@
|
|
|
16
33
|
* limitations under the License.
|
|
17
34
|
*/
|
|
18
35
|
//#endregion
|
|
19
|
-
|
|
20
|
-
import { NgControl, FormControl, UntypedFormControl, ReactiveFormsModule, } from '@angular/forms';
|
|
21
|
-
import { NgClass } from '@angular/common';
|
|
22
|
-
import { RxPush } from '@rx-angular/template/push';
|
|
23
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
24
|
-
import { of, ReplaySubject, map, take, mergeWith } from 'rxjs';
|
|
25
|
-
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
|
26
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
27
|
-
import { MatOptionModule } from '@angular/material/core';
|
|
28
|
-
import { WattIconComponent } from '@energinet/watt/icon';
|
|
29
|
-
import { WattFieldComponent } from '@energinet/watt/field';
|
|
30
|
-
import { WattMenuChipComponent } from '@energinet/watt/chip';
|
|
31
|
-
import * as i0 from "@angular/core";
|
|
32
|
-
import * as i1 from "@angular/material/select";
|
|
33
|
-
import * as i2 from "@angular/forms";
|
|
34
|
-
import * as i3 from "ngx-mat-select-search";
|
|
35
|
-
export class WattDropdownComponent {
|
|
36
|
+
class WattDropdownComponent {
|
|
36
37
|
parentControlDirective = inject(NgControl, { host: true });
|
|
37
38
|
destroyRef = inject(DestroyRef);
|
|
38
39
|
validateParent;
|
|
@@ -343,4 +344,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
343
344
|
'[class.watt-chip-mode]': 'chipMode()',
|
|
344
345
|
}, template: "<!--\n@license\nCopyright 2020 Energinet DataHub A/S\n\nLicensed under the Apache License, Version 2.0 (the \"License2\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n<watt-field\n [control]=\"parentControl\"\n [chipMode]=\"chipMode()\"\n [label]=\"label()\"\n (click)=\"matSelect.open()\"\n>\n @if (chipMode()) {\n <watt-menu-chip\n [opened]=\"matSelect.panelOpen\"\n (toggleChange)=\"matSelect.open()\"\n [selected]=\"!!matSelect?.triggerValue && !disableSelectedMode()\"\n [disabled]=\"matSelectControl.disabled\"\n >\n {{ placeholder() }}\n @if (showTriggerValue) {\n <span>\n @if (placeholder()) {\n :\n }\n {{ getCustomTrigger()?.(matSelect.value) ?? matSelect?.triggerValue }}\n </span>\n }\n @if (showChipLabel) {\n <span class=\"watt-chip-label\">{{ matSelectControl.value?.length }}</span>\n }\n </watt-menu-chip>\n }\n\n <mat-select\n [attr.aria-label]=\"label()\"\n [formControl]=\"matSelectControl\"\n [placeholder]=\"placeholder()\"\n #matSelect\n [panelWidth]=\"panelWidth()\"\n [multiple]=\"multiple()\"\n [ngClass]=\"{ chip: chipMode(), 'mat-mdc-select-multiple': multiple() }\"\n [panelClass]=\"{\n 'watt-dropdown-panel': true,\n 'watt-dropdown-panel-chip-mode': chipMode(),\n 'mat-mdc-select-panel-multiple': multiple(),\n }\"\n >\n <!-- We use this instead of ngIf, since it will trigger a NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. -->\n <mat-option [style.display]=\"!hideSearch() ? 'block' : 'none'\">\n <ngx-mat-select-search\n [formControl]=\"filterControl\"\n [placeholderLabel]=\"placeholder()\"\n closeIcon=\"close\"\n [showToggleAllCheckbox]=\"multiple()\"\n (toggleAll)=\"onToggleAll($event)\"\n [toggleAllCheckboxChecked]=\"isToggleAllChecked\"\n [toggleAllCheckboxIndeterminate]=\"isToggleAllIndeterminate\"\n [noEntriesFoundLabel]=\"noOptionsFoundLabel()\"\n >\n <watt-icon ngxMatSelectSearchClear name=\"close\" size=\"s\" />\n </ngx-mat-select-search>\n </mat-option>\n\n @if (!multiple() && showResetOption()) {\n <mat-option>{{ emDash }}</mat-option>\n }\n\n @if (hasGroups()) {\n @for (item of filteredGroupedOptions$ | push; track item) {\n @if (\"options\" in item) {\n <mat-optgroup [label]=\"item.label\" [disabled]=\"item.disabled\">\n @for (option of item.options; track option) {\n <mat-option\n [value]=\"option.value\"\n [disabled]=\"option.disabled\"\n [class.mat-mdc-option-multiple]=\"multiple()\"\n >\n {{ option.displayValue }}\n </mat-option>\n }\n </mat-optgroup>\n }\n }\n } @else {\n @for (option of filteredOptions$ | push; track option) {\n <mat-option\n [value]=\"option.value\"\n [disabled]=\"option.disabled\"\n [class.mat-mdc-option-multiple]=\"multiple()\"\n >\n {{ option.displayValue }}\n </mat-option>\n }\n }\n </mat-select>\n <ng-content />\n <ng-content ngProjectAs=\"watt-field-hint\" select=\"watt-field-hint\" />\n <ng-content ngProjectAs=\"watt-field-error\" select=\"watt-field-error\" />\n</watt-field>\n", styles: ["watt-dropdown:not(.watt-chip-mode){width:100%}watt-dropdown{--watt-input-color: var(--watt-typography-text-color);--watt-input-placeholder-color: var(--watt-on-light-high-emphasis);display:block;width:auto}watt-dropdown watt-field label .watt-field-wrapper{padding:0;position:relative}watt-dropdown.watt-chip-mode.ng-dirty.ng-invalid .watt-field-wrapper watt-chip label{border:1px solid var(--watt-color-state-danger)}watt-dropdown.watt-chip-mode[disabled=true] watt-field label .watt-field-wrapper{background-color:transparent}watt-dropdown .mat-input-element{font-size:.875rem;line-height:1.25rem;font-weight:400;text-transform:none;letter-spacing:0;color:var(--watt-input-color);caret-color:var(--watt-color-neutral-grey-900)!important;padding:0 12px}watt-dropdown .mat-mdc-select-arrow{color:var(--watt-dropdown-arrow-color, rgba(0, 0, 0, .54));border:none;width:auto;height:auto}watt-dropdown .mat-mdc-select-arrow:before{width:.6em;height:.6em;bottom:.2em;position:relative;display:inline-block;border-style:solid;border-width:0 0 .15em .15em;transform:rotate(315deg);border-color:var(--watt-color-primary);content:\"\"}watt-dropdown .mat-mdc-select-arrow svg{display:none}watt-dropdown .mat-mdc-select-trigger{font-size:.875rem;line-height:1.25rem;font-weight:400;text-transform:none;letter-spacing:0;padding:0 var(--watt-space-m)}watt-dropdown .mat-mdc-select-value{color:var(--watt-color-neutral-black);padding-right:var(--watt-space-m)}watt-dropdown .mat-mdc-select.mat-mdc-select-invalid.ng-pristine .mat-mdc-select-arrow{color:currentColor}watt-dropdown .watt-chip-label{float:right;margin-left:var(--watt-space-s);background:var(--watt-color-neutral-white)}watt-dropdown .watt-field--chip .mat-mdc-select{visibility:hidden;position:absolute;width:100%}watt-dropdown .mat-mdc-select-placeholder{color:var(--watt-input-placeholder-color)}watt-dropdown watt-field label .watt-field-wrapper{background-color:transparent}.watt-dropdown-panel{--watt-input-color: var(--watt-typography-text-color);padding:0}.watt-dropdown-panel .mat-select-search-inner-row .mat-select-search-input,.watt-dropdown-panel mat-option.contains-mat-select-search{height:48px}.watt-dropdown-panel:not(.watt-dropdown-panel-chip-mode){min-width:calc(100% + 2px)!important;margin-top:-36px;margin-left:-1px;min-height:48px}.watt-dropdown-panel .mat-mdc-checkbox.mat-select-search-toggle-all-checkbox{padding:0;margin:0 var(--watt-space-m)}.watt-dropdown-panel .mat-datepicker-content .mat-mdc-icon-button{--mat-mdc-button-persistent-ripple-color: transparent;--mat-mdc-button-ripple-color: transparent}.watt-dropdown-panel.watt-dropdown-panel-chip-mode{margin-top:4px}.watt-dropdown-panel.mat-mdc-select-search-panel{transform:scaleY(1)!important}.watt-dropdown-panel .mat-mdc-option.mdc-list-item.contains-mat-select-search.mat-mdc-option-multiple{background-color:transparent}.watt-dropdown-panel ngx-mat-select-search .mat-select-search-inner-multiple .mat-select-search-inner-row{margin-left:5px}.watt-dropdown-panel ngx-mat-select-search .mat-mdc-checkbox.mat-select-search-toggle-all-checkbox{margin:0}.watt-dropdown-panel .mdc-list-item .mat-select-search-input,.watt-dropdown-panel .mat-mdc-option.mdc-list-item,.watt-dropdown-panel .mat-select-search-no-entries-found{font-size:.875rem;line-height:1.25rem;font-weight:400;text-transform:none;letter-spacing:0;color:var(--watt-input-color)}.watt-dropdown-panel .mat-mdc-optgroup-label{font-size:.875rem;line-height:1.25rem;font-weight:600;text-transform:none;letter-spacing:0;color:var(--watt-input-color)}.watt-dropdown-panel .mat-mdc-option.mdc-list-item .mat-select-search-no-entries-found{padding:var(--watt-space-s)}.watt-dropdown-panel .mat-checkbox-frame,.watt-dropdown-panel .mat-mdc-checkbox{border-color:var(--watt-color-primary)}.watt-dropdown-panel :not(.mat-mdc-option-multiple) .mat-pseudo-checkbox{display:none}.watt-dropdown-panel .mat-mdc-option-multiple .mat-pseudo-checkbox{display:inline-block}.watt-dropdown-panel .mat-pseudo-checkbox,.watt-dropdown-panel .mat-mdc-checkbox{color:var(--watt-color-primary)}.watt-dropdown-panel .mat-mdc-option{color:var(--watt-color-neutral-black);min-height:42px}.watt-dropdown-panel .mat-mdc-option[aria-disabled=true].contains-mat-select-search{margin-top:0;top:auto}.watt-dropdown-panel .mat-mdc-option.mdc-list-item.mat-mdc-option-active,.watt-dropdown-panel .mat-mdc-option.mdc-list-item.mdc-list-item--selected.mat-mdc-option-active:not(.mat-mdc-option-multiple),.watt-dropdown-panel .mat-mdc-option:hover:not(.mat-mdc-option-disabled,.contains-mat-select-search),.watt-dropdown-panel .mat-mdc-option:focus:not(.mat-mdc-option-disabled){background-color:var(--watt-color-primary-light)}.watt-dropdown-panel .mat-mdc-option .mat-mdc-select-search-no-entries-found{text-align:center;padding:0}.watt-dropdown-panel .mat-mdc-option.mat-mdc-option-disabled{color:var(--watt-color-neutral-grey-400);cursor:not-allowed}.watt-dropdown-panel .mat-mdc-select-search-input:not(.mat-mdc-select-search-hidden){color:var(--watt-color-neutral-black)}.watt-dropdown-panel .mat-mdc-select-search-clear{background-color:var(--watt-color-neutral-white);color:var(--watt-color-neutral-grey-400)}.watt-dropdown-panel .mat-mdc-select-search-clear mat-icon{line-height:20px!important}\n"] }]
|
|
345
346
|
}], ctorParameters: () => [], propDecorators: { matSelect: [{ type: i0.ViewChild, args: ['matSelect', { isSignal: true }] }], hideSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideSearch", required: false }] }], panelWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelWidth", required: false }] }], getCustomTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "getCustomTrigger", required: false }] }], chipMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "chipMode", required: false }] }], disableSelectedMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableSelectedMode", required: false }] }], sortDirection: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortDirection", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }, { type: i0.Output, args: ["optionsChange"] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], showResetOption: [{ type: i0.Input, args: [{ isSignal: true, alias: "showResetOption", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], noOptionsFoundLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "noOptionsFoundLabel", required: false }] }] } });
|
|
346
|
-
|
|
347
|
+
|
|
348
|
+
//#region License
|
|
349
|
+
/**
|
|
350
|
+
* @license
|
|
351
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
352
|
+
*
|
|
353
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
354
|
+
* you may not use this file except in compliance with the License.
|
|
355
|
+
* You may obtain a copy of the License at
|
|
356
|
+
*
|
|
357
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
358
|
+
*
|
|
359
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
360
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
361
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
362
|
+
* See the License for the specific language governing permissions and
|
|
363
|
+
* limitations under the License.
|
|
364
|
+
*/
|
|
365
|
+
//#endregion
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Generated bundle index. Do not edit.
|
|
369
|
+
*/
|
|
370
|
+
|
|
371
|
+
export { WattDropdownComponent };
|
|
372
|
+
//# sourceMappingURL=energinet-watt-dropdown.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-dropdown.mjs","sources":["../../../libs/watt/package/dropdown/watt-dropdown.component.ts","../../../libs/watt/package/dropdown/watt-dropdown.component.html","../../../libs/watt/package/dropdown/index.ts","../../../libs/watt/package/dropdown/energinet-watt-dropdown.ts"],"sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport {\n input,\n model,\n signal,\n effect,\n OnInit,\n inject,\n Component,\n viewChild,\n DestroyRef,\n ViewEncapsulation,\n computed,\n} from '@angular/core';\n\nimport {\n NgControl,\n ValidatorFn,\n FormControl,\n ValidationErrors,\n AsyncValidatorFn,\n UntypedFormControl,\n ReactiveFormsModule,\n ControlValueAccessor,\n} from '@angular/forms';\n\nimport { NgClass } from '@angular/common';\n\nimport { RxPush } from '@rx-angular/template/push';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { of, ReplaySubject, map, take, mergeWith } from 'rxjs';\nimport { NgxMatSelectSearchModule } from 'ngx-mat-select-search';\nimport { MatSelectModule, MatSelect } from '@angular/material/select';\nimport { MatOptionModule } from '@angular/material/core';\n\nimport { WattIconComponent } from '@energinet/watt/icon';\nimport { WattFieldComponent } from '@energinet/watt/field';\nimport { WattMenuChipComponent } from '@energinet/watt/chip';\n\nimport type { WattDropdownValue } from './watt-dropdown-value';\nimport type {\n WattDropdownOptions,\n WattDropdownOptionGroup,\n WattDropdownGroupedOptions,\n} from './watt-dropdown-option';\n\n@Component({\n selector: 'watt-dropdown',\n templateUrl: './watt-dropdown.component.html',\n styleUrls: ['./watt-dropdown.component.scss'],\n encapsulation: ViewEncapsulation.None,\n imports: [\n RxPush,\n NgClass,\n MatSelectModule,\n MatOptionModule,\n ReactiveFormsModule,\n NgxMatSelectSearchModule,\n\n WattIconComponent,\n WattFieldComponent,\n WattMenuChipComponent,\n ],\n host: {\n '[attr.watt-field-disabled]': 'isDisabled()',\n '[class.watt-chip-mode]': 'chipMode()',\n },\n})\nexport class WattDropdownComponent<T = string> implements ControlValueAccessor, OnInit {\n private parentControlDirective = inject(NgControl, { host: true });\n private destroyRef = inject(DestroyRef);\n private validateParent?: ValidatorFn;\n private validateParentAsync?: AsyncValidatorFn;\n private _options: WattDropdownOptions = [];\n private _groupedOptions: WattDropdownGroupedOptions = [];\n parentControl: FormControl | null = null;\n matSelectControl = new FormControl<string | string[] | undefined | null>(null);\n\n /**\n * Control for the MatSelect filter keyword\n */\n filterControl = new UntypedFormControl();\n\n /**\n * List of options filtered by search keyword\n */\n filteredOptions$ = new ReplaySubject<WattDropdownOptions>(1);\n\n /**\n * List of grouped options filtered by search keyword\n */\n filteredGroupedOptions$ = new ReplaySubject<WattDropdownGroupedOptions>(1);\n\n mergedFilteredOptions$ = this.filteredOptions$.pipe(\n mergeWith(this.filteredGroupedOptions$),\n take(1),\n map((options) => {\n if (this.hasGroups()) {\n return (options as WattDropdownGroupedOptions)\n .flatMap((group) => ('options' in group ? group.options : []))\n .map((option) => option.value);\n }\n\n return (options as WattDropdownOptions).map((option) => option.value);\n })\n );\n\n emDash = '—';\n isToggleAllChecked = false;\n isToggleAllIndeterminate = false;\n isDisabled = signal(false);\n\n get showTriggerValue(): boolean {\n const multiple = this.multiple();\n return (multiple &&\n this.matSelectControl.value?.length === 1 &&\n this.matSelectControl.value[0] !== '') ||\n (!multiple && this.matSelect()?.triggerValue)\n ? true\n : false;\n }\n\n get showChipLabel() {\n return this.multiple() && this.matSelectControl.value && this.matSelectControl.value.length > 1\n ? true\n : false;\n }\n\n matSelect = viewChild<MatSelect>('matSelect');\n hideSearch = input(false);\n panelWidth = input<null | 'auto'>(null);\n getCustomTrigger = input<(value: string | string[]) => string>();\n\n /**\n * Set the mode of the dropdown.\n */\n chipMode = input(false);\n disableSelectedMode = input(false);\n sortDirection = input<'asc' | 'desc'>();\n\n /**\n * Sets the options for the dropdown.\n * Can be a flat array of options or an array containing both options and option groups.\n */\n options = model<WattDropdownOptions<T> | WattDropdownGroupedOptions<T>>([]);\n\n /**\n * Sets support for selecting multiple dropdown options.\n */\n multiple = input(false);\n\n /**\n * Sets support for hiding the reset option in \"single\" select mode.\n */\n showResetOption = input(true);\n\n /**\n * Sets the placeholder for the dropdown.\n */\n placeholder = input('');\n\n /**\n * Sets the label for the dropdown.\n */\n label = input('');\n\n /**\n * Label to be shown when no options are found after filtering.\n *\n * Note: The label is visible in \"multiple\" mode only.\n */\n noOptionsFoundLabel = input('');\n\n hasGroups = computed(() => {\n const options = this.options() ?? [];\n return options.some(\n (option) => 'options' in option && Array.isArray((option as WattDropdownOptionGroup).options)\n );\n });\n\n constructor() {\n effect(() => {\n const options = this.options();\n if (Array.isArray(options)) {\n const optionsCopy = [...options];\n\n if (this.hasGroups()) {\n this.handleGroup(optionsCopy as WattDropdownGroupedOptions);\n } else {\n this.handleFlat(optionsCopy as WattDropdownOptions);\n }\n }\n });\n this.parentControlDirective.valueAccessor = this;\n }\n\n private handleFlat(optionsCopy: WattDropdownOptions) {\n if (this.sortDirection()) {\n optionsCopy = this.sortOptions(optionsCopy);\n }\n\n this._options = optionsCopy;\n this.filteredOptions$.next(this._options);\n }\n\n private handleGroup(optionsCopy: WattDropdownGroupedOptions) {\n this._groupedOptions = this.processGroupedOptions(optionsCopy);\n this.filteredGroupedOptions$.next(this._groupedOptions);\n }\n\n private processGroupedOptions(options: WattDropdownGroupedOptions): WattDropdownGroupedOptions {\n return options.map((group) => {\n if (this.sortDirection()) {\n group.options = this.sortOptions(group.options);\n }\n return group;\n });\n }\n\n ngOnInit() {\n this.listenForFilterFieldValueChanges();\n this.initializePropertiesFromParent();\n this.bindParentValidatorsToControl();\n this.bindControlToParent();\n }\n\n writeValue(value: WattDropdownValue) {\n this.matSelectControl.setValue(value);\n }\n\n registerOnChange(onChangeFn: (value: WattDropdownValue) => void) {\n this.changeParentValue = onChangeFn;\n }\n\n registerOnTouched(onTouchFn: () => void) {\n this.markParentControlAsTouched = onTouchFn;\n }\n\n setDisabledState(shouldDisable: boolean) {\n this.isDisabled.set(shouldDisable);\n if (shouldDisable) {\n this.matSelectControl.disable();\n } else {\n this.matSelectControl.enable();\n }\n }\n\n onToggleAll(toggleAllState: boolean) {\n this.mergedFilteredOptions$.subscribe((filteredOptions: string[]) => {\n const optionsToSelect = toggleAllState ? filteredOptions : [];\n this.matSelectControl.patchValue(optionsToSelect);\n });\n }\n\n public sortOptions(options: WattDropdownOptions): WattDropdownOptions {\n return [...options].sort((a, b) => {\n return this.sortDirection() === 'asc'\n ? a.displayValue.localeCompare(b.displayValue)\n : b.displayValue.localeCompare(a.displayValue);\n });\n }\n\n private listenForFilterFieldValueChanges() {\n this.filterControl.valueChanges.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this.filterOptions();\n\n if (this.multiple()) {\n this.determineToggleAllCheckboxState();\n }\n });\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n private changeParentValue = (value: WattDropdownValue) => {\n // Intentionally left empty\n };\n\n private markParentControlAsTouched = () => {\n // Intentionally left empty\n };\n\n /**\n * @ignore\n *\n * Store the parent control, its validators and async validators in properties\n * of this component.\n */\n private initializePropertiesFromParent() {\n this.parentControl = this.parentControlDirective.control as UntypedFormControl;\n\n this.validateParent =\n (this.parentControl.validator && this.parentControl.validator.bind(this.parentControl)) ||\n (() => null);\n\n this.validateParentAsync =\n (this.parentControl.asyncValidator &&\n this.parentControl.asyncValidator.bind(this.parentControl)) ||\n (() => of(null));\n }\n\n /**\n * @ignore\n *\n * Inherit validators from parent form control.\n */\n private bindParentValidatorsToControl() {\n const validators = !this.matSelectControl.validator\n ? [this.validateParent]\n : Array.isArray(this.matSelectControl.validator)\n ? [...this.matSelectControl.validator, this.validateParent]\n : [this.matSelectControl.validator, this.validateParent];\n this.matSelectControl.setValidators(validators);\n\n const asyncValidators = !this.matSelectControl.asyncValidator\n ? [this.validateParentAsync]\n : Array.isArray(this.matSelectControl.asyncValidator)\n ? [...this.matSelectControl.asyncValidator, this.validateParentAsync]\n : [this.matSelectControl.asyncValidator, this.validateParentAsync];\n this.matSelectControl.setAsyncValidators(asyncValidators);\n\n this.matSelectControl.updateValueAndValidity();\n }\n\n /**\n * @ignore\n *\n * Emit values to the parent form control when our form control's value\n * changes.\n *\n * Reflect parent validation errors in our form control.\n */\n private bindControlToParent() {\n this.handleValueChange();\n this.handleStatusChange();\n }\n\n private handleStatusChange() {\n this.parentControl?.statusChanges\n .pipe(\n map(\n () =>\n ({\n ...this.parentControl?.errors,\n }) as ValidationErrors\n ),\n map((errors) => (Object.keys(errors).length > 0 ? errors : null)),\n takeUntilDestroyed(this.destroyRef)\n )\n .subscribe((errors) => {\n this.matSelectControl.setErrors(errors);\n });\n }\n\n private handleValueChange() {\n this.matSelectControl.valueChanges\n .pipe(\n map((value) => (value === undefined ? null : value)),\n map((value: WattDropdownValue) => {\n if (Array.isArray(value) && value.length === 0) {\n return null;\n }\n\n return value;\n }),\n takeUntilDestroyed(this.destroyRef)\n )\n .subscribe((value: WattDropdownValue) => {\n if (this.multiple()) {\n this.determineToggleAllCheckboxState();\n }\n\n this.markParentControlAsTouched();\n this.changeParentValue(value);\n });\n }\n\n private filterOptions() {\n if (!this._options) {\n return;\n }\n\n const search = (this.filterControl.value as string).trim().toLowerCase();\n\n if (!search) {\n this.filteredOptions$.next(this._options.slice());\n\n if (this.hasGroups()) {\n this.filteredGroupedOptions$.next(this._groupedOptions.slice());\n }\n return;\n }\n\n const filteredFlatOptions = this._options.filter(\n (option) => option.displayValue.toLowerCase().indexOf(search) > -1\n );\n\n this.filteredOptions$.next(filteredFlatOptions);\n\n if (this.hasGroups()) {\n this.filterGroups(search);\n }\n }\n\n private filterGroups(search: string) {\n const filteredGroups = this._groupedOptions\n .map((item) => {\n if (!('options' in item)) {\n return null;\n }\n const filteredGroupOptions = item.options.filter(\n (option) => option.displayValue.toLowerCase().indexOf(search) > -1\n );\n\n return filteredGroupOptions.length > 0 ? { ...item, options: filteredGroupOptions } : null;\n })\n .filter(Boolean) as WattDropdownGroupedOptions;\n\n this.filteredGroupedOptions$.next(filteredGroups);\n }\n\n private determineToggleAllCheckboxState() {\n this.mergedFilteredOptions$.subscribe((filteredOptions: string[]) => {\n const selectedOptions = this.matSelectControl.value;\n\n if (Array.isArray(selectedOptions)) {\n const selectedFilteredOptions = filteredOptions.filter((option) =>\n selectedOptions.includes(option)\n );\n\n this.isToggleAllIndeterminate =\n selectedFilteredOptions.length > 0 &&\n selectedFilteredOptions.length < filteredOptions.length;\n\n this.isToggleAllChecked =\n selectedFilteredOptions.length > 0 &&\n selectedFilteredOptions.length === filteredOptions.length;\n }\n });\n }\n}\n","<!--\n@license\nCopyright 2020 Energinet DataHub A/S\n\nLicensed under the Apache License, Version 2.0 (the \"License2\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n<watt-field\n [control]=\"parentControl\"\n [chipMode]=\"chipMode()\"\n [label]=\"label()\"\n (click)=\"matSelect.open()\"\n>\n @if (chipMode()) {\n <watt-menu-chip\n [opened]=\"matSelect.panelOpen\"\n (toggleChange)=\"matSelect.open()\"\n [selected]=\"!!matSelect?.triggerValue && !disableSelectedMode()\"\n [disabled]=\"matSelectControl.disabled\"\n >\n {{ placeholder() }}\n @if (showTriggerValue) {\n <span>\n @if (placeholder()) {\n :\n }\n {{ getCustomTrigger()?.(matSelect.value) ?? matSelect?.triggerValue }}\n </span>\n }\n @if (showChipLabel) {\n <span class=\"watt-chip-label\">{{ matSelectControl.value?.length }}</span>\n }\n </watt-menu-chip>\n }\n\n <mat-select\n [attr.aria-label]=\"label()\"\n [formControl]=\"matSelectControl\"\n [placeholder]=\"placeholder()\"\n #matSelect\n [panelWidth]=\"panelWidth()\"\n [multiple]=\"multiple()\"\n [ngClass]=\"{ chip: chipMode(), 'mat-mdc-select-multiple': multiple() }\"\n [panelClass]=\"{\n 'watt-dropdown-panel': true,\n 'watt-dropdown-panel-chip-mode': chipMode(),\n 'mat-mdc-select-panel-multiple': multiple(),\n }\"\n >\n <!-- We use this instead of ngIf, since it will trigger a NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. -->\n <mat-option [style.display]=\"!hideSearch() ? 'block' : 'none'\">\n <ngx-mat-select-search\n [formControl]=\"filterControl\"\n [placeholderLabel]=\"placeholder()\"\n closeIcon=\"close\"\n [showToggleAllCheckbox]=\"multiple()\"\n (toggleAll)=\"onToggleAll($event)\"\n [toggleAllCheckboxChecked]=\"isToggleAllChecked\"\n [toggleAllCheckboxIndeterminate]=\"isToggleAllIndeterminate\"\n [noEntriesFoundLabel]=\"noOptionsFoundLabel()\"\n >\n <watt-icon ngxMatSelectSearchClear name=\"close\" size=\"s\" />\n </ngx-mat-select-search>\n </mat-option>\n\n @if (!multiple() && showResetOption()) {\n <mat-option>{{ emDash }}</mat-option>\n }\n\n @if (hasGroups()) {\n @for (item of filteredGroupedOptions$ | push; track item) {\n @if (\"options\" in item) {\n <mat-optgroup [label]=\"item.label\" [disabled]=\"item.disabled\">\n @for (option of item.options; track option) {\n <mat-option\n [value]=\"option.value\"\n [disabled]=\"option.disabled\"\n [class.mat-mdc-option-multiple]=\"multiple()\"\n >\n {{ option.displayValue }}\n </mat-option>\n }\n </mat-optgroup>\n }\n }\n } @else {\n @for (option of filteredOptions$ | push; track option) {\n <mat-option\n [value]=\"option.value\"\n [disabled]=\"option.disabled\"\n [class.mat-mdc-option-multiple]=\"multiple()\"\n >\n {{ option.displayValue }}\n </mat-option>\n }\n }\n </mat-select>\n <ng-content />\n <ng-content ngProjectAs=\"watt-field-hint\" select=\"watt-field-hint\" />\n <ng-content ngProjectAs=\"watt-field-error\" select=\"watt-field-error\" />\n</watt-field>\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattDropdownComponent } from './watt-dropdown.component';\nexport {\n type WattDropdownOption,\n type WattDropdownOptions,\n type WattDropdownGroupedOptions,\n type WattDropdownOptionGroup,\n} from './watt-dropdown-option';\nexport { type WattDropdownValue } from './watt-dropdown-value';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;MAqEa,qBAAqB,CAAA;IACxB,sBAAsB,GAAG,MAAM,CAAC,SAAS,EAA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