@energinet/watt 4.2.14 → 4.2.15-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{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} +136 -14
- 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} +133 -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} +71 -11
- 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} +136 -24
- 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/package.json +89 -89
- package/types/energinet-watt-badge.d.ts +19 -0
- package/{breadcrumbs/watt-breadcrumbs.component.d.ts → types/energinet-watt-breadcrumbs.d.ts} +10 -7
- package/types/energinet-watt-button.d.ts +23 -0
- package/types/energinet-watt-card.d.ts +24 -0
- package/types/energinet-watt-checkbox.d.ts +20 -0
- package/types/energinet-watt-chip.d.ts +104 -0
- package/types/energinet-watt-clipboard.d.ts +22 -0
- package/types/energinet-watt-code.d.ts +56 -0
- package/{core/breakpoints/breakpoints.d.ts → types/energinet-watt-core-breakpoints.d.ts} +27 -2
- package/{core/color/colors.d.ts → types/energinet-watt-core-color.d.ts} +15 -2
- package/types/energinet-watt-core-date.d.ts +154 -0
- package/types/energinet-watt-data.d.ts +61 -0
- package/types/energinet-watt-datetime-field.d.ts +44 -0
- package/types/energinet-watt-description-list.d.ts +32 -0
- package/{drawer/watt-drawer.component.d.ts → types/energinet-watt-drawer.d.ts} +35 -28
- package/types/energinet-watt-dropdown.d.ts +167 -0
- package/types/energinet-watt-dropzone.d.ts +67 -0
- package/types/energinet-watt-empty-state.d.ts +39 -0
- package/{expandable-card/watt-expandable-card.component.d.ts → types/energinet-watt-expandable-card.d.ts} +31 -9
- package/types/energinet-watt-field.d.ts +62 -0
- package/types/energinet-watt-file-field.d.ts +13 -0
- package/types/energinet-watt-icon-flags.d.ts +61 -0
- package/types/energinet-watt-icon.d.ts +119 -0
- package/types/energinet-watt-menu.d.ts +119 -0
- package/types/energinet-watt-modal.d.ts +127 -0
- package/types/energinet-watt-paginator.d.ts +54 -0
- package/types/energinet-watt-phone-field.d.ts +79 -0
- package/{picker/__shared/watt-picker-base.d.ts → types/energinet-watt-picker-__shared.d.ts} +34 -11
- package/types/energinet-watt-picker-datepicker.d.ts +90 -0
- package/{picker/timepicker/watt-timepicker.component.d.ts → types/energinet-watt-picker-timepicker.d.ts} +16 -12
- package/types/energinet-watt-progress-tracker.d.ts +37 -0
- package/{query-params/watt-query-params.directive.d.ts → types/energinet-watt-query-params.d.ts} +5 -2
- package/types/energinet-watt-radio.d.ts +71 -0
- package/types/energinet-watt-search.d.ts +47 -0
- package/types/energinet-watt-segmented-buttons.d.ts +48 -0
- package/types/energinet-watt-shell.d.ts +47 -0
- package/types/energinet-watt-slide-toggle.d.ts +20 -0
- package/types/energinet-watt-slider.d.ts +35 -0
- package/types/energinet-watt-spinner.d.ts +18 -0
- package/types/energinet-watt-stepper.d.ts +59 -0
- package/{table/watt-table.component.d.ts → types/energinet-watt-table.d.ts} +72 -49
- package/types/energinet-watt-tabs.d.ts +68 -0
- package/types/energinet-watt-text-field.d.ts +67 -0
- package/types/energinet-watt-textarea-field.d.ts +31 -0
- package/{toast/watt-toast.component.d.ts → types/energinet-watt-toast.d.ts} +19 -5
- package/types/energinet-watt-tooltip.d.ts +20 -0
- package/{utils/css/css-custom-properties.service.d.ts → types/energinet-watt-utils-css.d.ts} +5 -2
- package/{utils/intersection-observer/watt-intersection-observer.service.d.ts → types/energinet-watt-utils-intersection-observer.d.ts} +7 -3
- package/{utils/resize-observer/watt-resize-observer.directive.d.ts → types/energinet-watt-utils-resize-observer.d.ts} +30 -3
- package/types/energinet-watt-validation-message.d.ts +38 -0
- package/{validators/watt-range.validators.d.ts → types/energinet-watt-validators.d.ts} +6 -2
- package/types/energinet-watt-vater.d.ts +87 -0
- package/types/energinet-watt-year-field.d.ts +60 -0
- package/types/energinet-watt-yearmonth-field.d.ts +64 -0
- package/{core/color/index.d.ts → types/energinet-watt.d.ts} +3 -2
- package/badge/energinet-watt-badge.d.ts +0 -5
- package/badge/index.d.ts +0 -17
- package/badge/watt-badge.component.d.ts +0 -15
- package/breadcrumbs/energinet-watt-breadcrumbs.d.ts +0 -5
- package/breadcrumbs/index.d.ts +0 -17
- package/button/energinet-watt-button.d.ts +0 -5
- package/button/index.d.ts +0 -17
- package/button/watt-button.component.d.ts +0 -22
- package/card/energinet-watt-card.d.ts +0 -5
- package/card/index.d.ts +0 -18
- 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/index.d.ts +0 -17
- package/checkbox/watt-checkbox.component.d.ts +0 -17
- package/chip/energinet-watt-chip.d.ts +0 -5
- package/chip/index.d.ts +0 -23
- 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/index.d.ts +0 -18
- 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/index.d.ts +0 -19
- 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/energinet-watt-core-breakpoints.d.ts +0 -5
- package/core/breakpoints/index.d.ts +0 -18
- package/core/color/color-helper.service.d.ts +0 -10
- 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/index.d.ts +0 -23
- 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/index.d.ts +0 -20
- 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/index.d.ts +0 -17
- 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/index.d.ts +0 -17
- 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/index.d.ts +0 -21
- 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/dropdown/energinet-watt-dropdown.d.ts +0 -5
- package/dropdown/index.d.ts +0 -19
- 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/index.d.ts +0 -19
- 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/index.d.ts +0 -21
- 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 -102
- 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/index.d.ts +0 -19
- package/field/energinet-watt-field.d.ts +0 -5
- package/field/index.d.ts +0 -21
- 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/index.d.ts +0 -17
- 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/index.d.ts +0 -26
- 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 -95
- package/icon/index.d.ts +0 -17
- package/index.d.ts +0 -17
- package/menu/energinet-watt-menu.d.ts +0 -5
- package/menu/index.d.ts +0 -25
- 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/index.d.ts +0 -18
- 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/index.d.ts +0 -18
- 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/index.d.ts +0 -18
- 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/index.d.ts +0 -19
- package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.d.ts +0 -34
- package/picker/__shared/watt-picker-value.d.ts +0 -18
- package/picker/datepicker/energinet-watt-picker-datepicker.d.ts +0 -5
- package/picker/datepicker/index.d.ts +0 -19
- 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/index.d.ts +0 -17
- package/picker/timepicker/maskito-time-range-mask.d.ts +0 -18
- package/progress-tracker/energinet-watt-progress-tracker.d.ts +0 -5
- package/progress-tracker/index.d.ts +0 -20
- 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/index.d.ts +0 -17
- package/radio/energinet-watt-radio.d.ts +0 -5
- package/radio/index.d.ts +0 -18
- 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/index.d.ts +0 -17
- package/search/watt-search.component.d.ts +0 -44
- package/segmented-buttons/energinet-watt-segmented-buttons.d.ts +0 -5
- package/segmented-buttons/index.d.ts +0 -21
- 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/index.d.ts +0 -18
- 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/index.d.ts +0 -17
- package/slide-toggle/watt-slide-toggle.component.d.ts +0 -33
- package/slider/energinet-watt-slider.d.ts +0 -5
- package/slider/index.d.ts +0 -17
- package/slider/watt-slider.component.d.ts +0 -47
- package/spinner/energinet-watt-spinner.d.ts +0 -5
- package/spinner/index.d.ts +0 -17
- package/spinner/watt-spinner.component.d.ts +0 -15
- package/stepper/energinet-watt-stepper.d.ts +0 -5
- package/stepper/index.d.ts +0 -18
- 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/index.d.ts +0 -18
- package/table/watt-table-data-source.d.ts +0 -39
- package/table/watt-table-expand-animation.d.ts +0 -18
- package/tabs/energinet-watt-tabs.d.ts +0 -5
- package/tabs/index.d.ts +0 -26
- 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/index.d.ts +0 -17
- 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/index.d.ts +0 -17
- package/textarea-field/watt-textarea-field.component.d.ts +0 -28
- package/toast/energinet-watt-toast.d.ts +0 -5
- package/toast/index.d.ts +0 -19
- package/toast/watt-toast.service.d.ts +0 -12
- package/tooltip/energinet-watt-tooltip.d.ts +0 -5
- package/tooltip/index.d.ts +0 -17
- package/tooltip/watt-tooltip.component.d.ts +0 -26
- package/tooltip/watt-tooltip.directive.d.ts +0 -16
- package/utils/css/energinet-watt-utils-css.d.ts +0 -5
- package/utils/css/index.d.ts +0 -17
- package/utils/intersection-observer/energinet-watt-utils-intersection-observer.d.ts +0 -5
- package/utils/intersection-observer/index.d.ts +0 -17
- package/utils/resize-observer/energinet-watt-utils-resize-observer.d.ts +0 -5
- package/utils/resize-observer/index.d.ts +0 -18
- 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/index.d.ts +0 -17
- package/validation-message/watt-validation-message.component.d.ts +0 -50
- package/validators/energinet-watt-validators.d.ts +0 -5
- package/validators/index.d.ts +0 -17
- package/vater/energinet-watt-vater.d.ts +0 -5
- package/vater/index.d.ts +0 -21
- 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/index.d.ts +0 -17
- 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/index.d.ts +0 -18
- package/yearmonth-field/watt-yearmonth-field.component.d.ts +0 -58
- package/yearmonth-field/year-month.d.ts +0 -20
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-data-intl.service.js","sourceRoot":"","sources":["../../../../libs/watt/package/data/watt-data-intl.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;AAG/B,MAAM,OAAO,mBAAmB;IACrB,OAAO,GAAkB,IAAI,OAAO,EAAQ,CAAC;IACtD,MAAM,GAAG,QAAQ,CAAC;IAClB,UAAU,GAAG,kBAAkB,CAAC;IAChC,SAAS,GAAG,mCAAmC,CAAC;IAChD,UAAU,GAAG,OAAO,CAAC;IACrB,UAAU,GAAG,6BAA6B,CAAC;IAC3C,SAAS,GAAG,8EAA8E,CAAC;IAC3F,YAAY,GAAG,6BAA6B,CAAC;IAC7C,WAAW,GAAG,8EAA8E,CAAC;wGATlF,mBAAmB;4GAAnB,mBAAmB,cADN,MAAM;;4FACnB,mBAAmB;kBAD/B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","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 { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class WattDataIntlService {\n readonly changes: Subject<void> = new Subject<void>();\n search = 'Search';\n emptyTitle = 'No results found';\n emptyText = 'Try changing the search criteria.';\n emptyRetry = 'Retry';\n errorTitle = 'An unexpected error occured';\n errorText = 'Unfortunately, an error occurred while retrieving the necessary information.';\n defaultTitle = 'An unexpected error occured';\n defaultText = 'Unfortunately, an error occurred while retrieving the necessary information.';\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-data-table.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/data/watt-data-table.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAqB,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAA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,CAAC,CAAC;IAElF,MAAM,GAAG,SAAS,CAAC,mBAAmB,kDAAC,CAAC;IACxC,KAAK,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC;IAErC,QAAQ,CAAC,KAAa;QACpB,IAAI,CAAC,KAAK,EAAE,CAAC,UAAU,EAAE,CAAC,MAAM,GAAG,KAAK,CAAC;QACzC,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAChC,CAAC;wGAlCU,sBAAsB;4FAAtB,sBAAsB,8xEA0BH,CAAA,kBAA2B,CAAA,wGAEtC,mBAAmB,gEAjG5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmET,uaArGC,kBAAkB,2FAClB,oBAAoB,yEACpB,mBAAmB,uEACnB,qBAAqB,uGACrB,iBAAiB,sFACjB,uBAAuB,sHACvB,sBAAsB,wJACtB,mBAAmB,gIACnB,mBAAmB;;4FA+FV,sBAAsB;kBA1GlC,SAAS;+BACE,iBAAiB,WAClB;wBACP,kBAAkB;wBAClB,oBAAoB;wBACpB,mBAAmB;wBACnB,qBAAqB;wBACrB,iBAAiB;wBACjB,uBAAuB;wBACvB,sBAAsB;wBACtB,mBAAmB;wBACnB,mBAAmB;qBACpB,iBACc,iBAAiB,CAAC,IAAI,YAwB3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmET;qyDA4B6B,kBAA2B,QAAE,EAAE,WAAW,EAAE,IAAI,EAAE,kFAE7D,mBAAmB","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 Component,\n ViewEncapsulation,\n contentChild,\n inject,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport { PageEvent } from '@angular/material/paginator';\n\nimport {\n VaterFlexComponent,\n VaterSpacerComponent,\n VaterStackComponent,\n VaterUtilityDirective,\n} from '@energinet/watt/vater';\nimport { WATT_CARD_VARIANT, WattCardComponent } from '@energinet/watt/card';\nimport { WattButtonComponent } from '@energinet/watt/button';\nimport { WattEmptyStateComponent } from '@energinet/watt/empty-state';\nimport { WattPaginatorComponent } from '@energinet/watt/paginator';\nimport { WattSearchComponent } from '@energinet/watt/search';\nimport { WattTableComponent } from '@energinet/watt/table';\nimport { WattIcon } from '@energinet/watt/icon';\n\nimport { WattDataIntlService } from './watt-data-intl.service';\n\n@Component({\n selector: 'watt-data-table',\n imports: [\n VaterFlexComponent,\n VaterSpacerComponent,\n VaterStackComponent,\n VaterUtilityDirective,\n WattCardComponent,\n WattEmptyStateComponent,\n WattPaginatorComponent,\n WattSearchComponent,\n WattButtonComponent,\n ],\n encapsulation: ViewEncapsulation.None,\n styles: [\n `\n watt-data-table h3,\n watt-data-table h4 {\n line-height: 44px;\n min-height: 44px;\n margin: 0;\n }\n\n watt-data-table watt-paginator {\n display: block;\n margin: calc(-1 * var(--watt-space-m)) -24px -24px;\n }\n\n watt-data-table watt-table .mat-mdc-table tr.mdc-data-table__row:last-child .mat-mdc-cell {\n border-bottom: none;\n }\n\n watt-data-table watt-empty-state {\n margin: var(--watt-space-xl) 0;\n }\n `,\n ],\n template: `\n <watt-card vater fill=\"vertical\" [variant]=\"variant()\">\n <vater-flex autoSize fill=\"vertical\" gap=\"m\">\n @if (header()) {\n <vater-stack direction=\"row\" gap=\"m\">\n <vater-stack direction=\"row\" gap=\"s\">\n <ng-content select=\"h3\" />\n <ng-content select=\"h4\" />\n @if (enableCount()) {\n <span class=\"watt-chip-label\">\n {{ count() ?? table().dataSource().totalCount }}\n </span>\n }\n @if (queryTime()) {\n <span class=\"watt-label\">in {{ queryTime() }} ms</span>\n }\n </vater-stack>\n <ng-content />\n <vater-spacer />\n @if (enableSearch()) {\n <watt-search\n [label]=\"searchLabel() ?? intl.search\"\n [trim]=\"trimSearch()\"\n (search)=\"onSearch($event)\"\n />\n }\n <ng-content select=\"watt-data-actions\" />\n <ng-content select=\"watt-button\" />\n </vater-stack>\n }\n <ng-content select=\"watt-data-filters\" />\n <vater-flex [autoSize]=\"autoSize()\" fill=\"vertical\">\n <ng-content select=\"watt-table\" />\n @if (\n enableEmptyState() &&\n !table().loading() &&\n table().dataSource().filteredData.length === 0\n ) {\n <vater-flex [autoSize]=\"autoSize()\" fill=\"vertical\">\n <vater-stack scrollable justify=\"center\">\n <watt-empty-state\n [icon]=\"error() ? 'custom-power' : ready() ? emptyStateIcon() : 'custom-explore'\"\n [title]=\"\n error() ? intl.errorTitle : ready() ? intl.emptyTitle : intl.defaultTitle\n \"\n [message]=\"error() ? intl.errorText : ready() ? intl.emptyText : intl.defaultText\"\n >\n @if (enableRetry()) {\n <watt-button variant=\"secondary\" (click)=\"retry.emit()\">{{\n intl.emptyRetry\n }}</watt-button>\n }\n </watt-empty-state>\n </vater-stack>\n </vater-flex>\n }\n </vater-flex>\n @if (enablePaginator()) {\n <watt-paginator\n [for]=\"table().dataSource()\"\n [length]=\"count() ?? 0\"\n [pageSize]=\"pageSize()\"\n (changed)=\"pageChanged.emit($event)\"\n />\n }\n </vater-flex>\n </watt-card>\n `,\n})\nexport class WattDataTableComponent {\n intl = inject(WattDataIntlService);\n\n error = input<unknown>();\n ready = input(true);\n enableSearch = input(true);\n trimSearch = input(true);\n header = input(true);\n enableRetry = input(false);\n enableCount = input(true);\n enableEmptyState = input(true);\n queryTime = input<number>();\n searchLabel = input<string>();\n enablePaginator = input(true);\n pageSize = input<number>(50);\n count = input<number>();\n autoSize = input(false);\n variant = input<WATT_CARD_VARIANT>('solid');\n emptyStateIcon = input<WattIcon | 'custom-power' | 'custom-explore' | 'custom-no-results'>(\n 'cancel'\n );\n\n clear = output();\n pageChanged = output<PageEvent>();\n retry = output();\n\n table = contentChild.required(WattTableComponent<unknown>, { descendants: true });\n\n search = viewChild(WattSearchComponent);\n reset = () => this.search()?.clear();\n\n onSearch(value: string) {\n this.table().dataSource().filter = value;\n if (!value) this.clear.emit();\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"energinet-watt-datetime-field.js","sourceRoot":"","sources":["../../../../libs/watt/package/datetime-field/energinet-watt-datetime-field.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//#region License
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
//#endregion
|
|
19
|
-
export { WattDateTimeField } from './watt-datetime-field.component';
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/datetime-field/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC","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\nexport { WattDateTimeField } from './watt-datetime-field.component';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-datetime-field.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/datetime-field/watt-datetime-field.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,EACN,SAAS,EACT,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,iBA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C;4BAChD,KAAK,EAAE,IAAI;yBACZ;qBACF,WACQ;wBACP,mBAAmB;wBACnB,gBAAgB;wBAChB,WAAW;wBACX,mBAAmB;wBACnB,kBAAkB;qBACnB,YAoBS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCT;oHAuBwD,WAAW","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 ChangeDetectionStrategy,\n Component,\n computed,\n forwardRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n ControlValueAccessor,\n FormControl,\n NG_VALUE_ACCESSOR,\n ReactiveFormsModule,\n} from '@angular/forms';\nimport { outputFromObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { MatCalendar } from '@angular/material/datepicker';\nimport { MaskitoDirective } from '@maskito/angular';\nimport { maskitoDateTimeOptionsGenerator } from '@maskito/kit';\nimport { map, share } from 'rxjs';\nimport { dayjs, WattLocaleService } from '@energinet/watt/core/date';\nimport { WattFieldComponent } from '@energinet/watt/field';\nimport { WattButtonComponent } from '@energinet/watt/button';\n\nconst DA_FILLER = 'dd-mm-åååå, tt:mm';\nconst EN_FILLER = 'dd-mm-yyyy, hh:mm';\nconst DATETIME_FORMAT = 'DD-MM-YYYY, HH:mm';\nconst PARTIAL_DATETIME_FORMAT = 'DD-MM-YYYY, ';\nconst DANISH_TIME_ZONE_IDENTIFIER = 'Europe/Copenhagen';\n\n/* eslint-disable @angular-eslint/component-class-suffix */\n@Component({\n selector: 'watt-datetime-field',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WattDateTimeField),\n multi: true,\n },\n ],\n imports: [\n ReactiveFormsModule,\n MaskitoDirective,\n MatCalendar,\n WattButtonComponent,\n WattFieldComponent,\n ],\n styles: [\n `\n watt-datetime-field {\n display: block;\n width: 100%;\n }\n\n .watt-datetime-field-picker {\n position: fixed;\n position-area: bottom span-right;\n position-try-fallbacks: flip-block;\n width: 296px;\n height: 354px;\n inset: unset;\n margin: unset;\n border: 0;\n }\n `,\n ],\n template: `\n <watt-field\n [label]=\"label()\"\n [control]=\"control\"\n [placeholder]=\"placeholder()\"\n [anchorName]=\"anchorName\"\n >\n <input\n #field\n [formControl]=\"control\"\n [maskito]=\"mask()\"\n (focus)=\"picker.showPopover()\"\n (blur)=\"handleBlur(picker, $event)\"\n />\n <watt-button icon=\"date\" variant=\"icon\" (click)=\"field.focus()\" />\n <div\n #picker\n class=\"watt-elevation watt-datetime-field-picker\"\n popover=\"manual\"\n tabindex=\"0\"\n [style.position-anchor]=\"anchorName\"\n >\n <mat-calendar\n [startAt]=\"selected()\"\n [selected]=\"selected()\"\n [minDate]=\"min()\"\n [maxDate]=\"max()\"\n (selectedChange)=\"handleSelectedChange(field, picker, $event)\"\n />\n </div>\n <ng-content />\n <ng-content select=\"watt-field-error\" ngProjectAs=\"watt-field-error\" />\n <ng-content select=\"watt-field-warning\" ngProjectAs=\"watt-field-warning\" />\n <ng-content select=\"watt-field-hint\" ngProjectAs=\"watt-field-hint\" />\n </watt-field>\n `,\n})\nexport class WattDateTimeField implements ControlValueAccessor {\n private locale = inject(WattLocaleService);\n\n // Popovers exists on an entirely different layer, meaning that for anchor positioning they\n // look at the entire tree for the anchor name. This gives each field a unique anchor name.\n private static instance = 0;\n private instance = WattDateTimeField.instance++;\n protected anchorName = `--watt-datetime-field-popover-anchor-${this.instance}`;\n\n /** Converts date from outer FormControl to format of inner FormControl. */\n protected modelToView = (value: Date | null, format = DATETIME_FORMAT) =>\n value ? dayjs(value).tz(DANISH_TIME_ZONE_IDENTIFIER).format(format) : '';\n\n /** Converts value of inner FormControl to type of outer FormControl. */\n protected viewToModel = (value: string) => {\n const date = dayjs(value, DATETIME_FORMAT, true);\n if (!date.isValid()) return null;\n return this.inclusive() ? date.endOf('m').toDate() : date.toDate();\n };\n\n // Must unfortunately be queried in order to update `activeDate`\n private calendar = viewChild.required<MatCalendar<Date>>(MatCalendar);\n\n // This inner FormControl is string only, but the outer FormControl is of type Date.\n protected control = new FormControl('', { nonNullable: true });\n\n // `registerOnChange` may subscribe to this component after it has been destroyed, thus\n // triggering an NG0911 from the `takeUntilDestroyed` operator. By sharing the observable,\n // the observable will already be closed and `subscribe` becomes a proper noop.\n private valueChanges = this.control.valueChanges.pipe(\n map(this.viewToModel),\n takeUntilDestroyed(),\n share()\n );\n\n /** Set the label text for `watt-field`. */\n label = input('');\n\n /** The minimum selectable date. */\n min = input<Date>();\n\n /** The maximum selectable date. */\n max = input<Date>();\n\n /** When true, seconds will be set to 59 and milliseconds to 999. Otherwise, both are 0. */\n inclusive = input(false);\n\n /** Emits when the selected date has changed. */\n dateChange = outputFromObservable(this.valueChanges);\n\n /** Emits when the field loses focus. */\n // eslint-disable-next-line @angular-eslint/no-output-native\n blur = output<FocusEvent>();\n\n protected selected = signal<Date | null>(null);\n protected placeholder = computed(() => (this.locale.isDanish() ? DA_FILLER : EN_FILLER));\n protected mask = computed(() =>\n maskitoDateTimeOptionsGenerator({\n min: this.min(),\n max: this.max(),\n dateMode: 'dd/mm/yyyy',\n timeMode: 'HH:MM',\n dateSeparator: '-',\n timeStep: 1,\n })\n );\n\n protected handleBlur = (picker: HTMLElement, event: FocusEvent) => {\n if (event.relatedTarget instanceof HTMLElement && picker.contains(event.relatedTarget)) {\n const target = event.target as HTMLInputElement; // safe type assertion\n setTimeout(() => target.focus()); // keep focus on input element while using the picker\n } else {\n picker.hidePopover();\n this.blur.emit(event);\n }\n };\n\n protected handleSelectedChange = (\n field: HTMLInputElement,\n picker: HTMLDivElement,\n date: Date\n ) => {\n const prev = this.viewToModel(this.control.value);\n\n // Only write the date part\n field.value = prev\n ? this.modelToView(dayjs(date).set('h', prev.getHours()).set('m', prev.getMinutes()).toDate())\n : this.modelToView(date, PARTIAL_DATETIME_FORMAT);\n\n field.dispatchEvent(new Event('input', { bubbles: true }));\n picker.hidePopover();\n };\n\n constructor() {\n this.valueChanges.subscribe((value) => {\n this.selected.set(value);\n this.calendar().activeDate = value ?? new Date();\n });\n }\n\n // Implementation for ControlValueAccessor\n writeValue = (value: Date | null) => this.control.setValue(this.modelToView(value));\n setDisabledState = (x: boolean) => (x ? this.control.disable() : this.control.enable());\n registerOnTouched = (fn: () => void) => this.blur.subscribe(fn);\n registerOnChange = (fn: (value: Date | null) => void) => this.valueChanges.subscribe(fn);\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"energinet-watt-description-list.js","sourceRoot":"","sources":["../../../../libs/watt/package/description-list/energinet-watt-description-list.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//#region License
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
//#endregion
|
|
19
|
-
export { WattDescriptionListComponent, WattDescriptionListItemComponent, WATT_DESCRIPTION_LIST, } from './watt-description-list.component';
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/description-list/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EAChC,qBAAqB,GACtB,MAAM,mCAAmC,CAAC","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\nexport {\n WattDescriptionListComponent,\n WattDescriptionListItemComponent,\n WATT_DESCRIPTION_LIST,\n} from './watt-description-list.component';\n"]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
//#region License
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
//#endregion
|
|
19
|
-
import { ChangeDetectionStrategy, Component, input, viewChild } from '@angular/core';
|
|
20
|
-
import { NgClass } from '@angular/common';
|
|
21
|
-
import * as i0 from "@angular/core";
|
|
22
|
-
import * as i1 from "@angular/common";
|
|
23
|
-
export class WattDescriptionListItemComponent {
|
|
24
|
-
templateRef = viewChild.required('templateRef');
|
|
25
|
-
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
26
|
-
value = input(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
27
|
-
forceNewRow = input(false, ...(ngDevMode ? [{ debugName: "forceNewRow" }] : []));
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDescriptionListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
-
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
|
|
30
|
-
><div [ngClass]="{ 'force-new-row': forceNewRow() }">
|
|
31
|
-
<dt class="watt-label watt-on-light--high-emphasis">{{ label() }}</dt>
|
|
32
|
-
<dd class="watt-text-s">{{ value() }}<ng-content /></dd></div
|
|
33
|
-
></ng-template>`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
34
|
-
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDescriptionListItemComponent, decorators: [{
|
|
36
|
-
type: Component,
|
|
37
|
-
args: [{
|
|
38
|
-
imports: [NgClass],
|
|
39
|
-
selector: 'watt-description-list-item',
|
|
40
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
41
|
-
hostDirectives: [NgClass],
|
|
42
|
-
template: `<ng-template #templateRef
|
|
43
|
-
><div [ngClass]="{ 'force-new-row': forceNewRow() }">
|
|
44
|
-
<dt class="watt-label watt-on-light--high-emphasis">{{ label() }}</dt>
|
|
45
|
-
<dd class="watt-text-s">{{ value() }}<ng-content /></dd></div
|
|
46
|
-
></ng-template>`,
|
|
47
|
-
}]
|
|
48
|
-
}], 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 }] }] } });
|
|
49
|
-
//# sourceMappingURL=watt-description-list-item.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-description-list-item.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/description-list/watt-description-list-item.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAe,SAAS,EAAE,MAAM,eAAe,CAAC;AAClG,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;;;AAa1C,MAAM,OAAO,gCAAgC;IAC3C,WAAW,GAAG,SAAS,CAAC,QAAQ,CAA8B,aAAa,CAAC,CAAC;IAC7E,KAAK,GAAG,KAAK,CAAS,EAAE,iDAAC,CAAC;IAC1B,KAAK,GAAG,KAAK,CAAW,IAAI,iDAAC,CAAC;IAC9B,WAAW,GAAG,KAAK,CAAC,KAAK,uDAAC,CAAC;wGAJhB,gCAAgC;4FAAhC,gCAAgC,qoBANjC;;;;kBAIM,4DARN,OAAO;;4FAUN,gCAAgC;kBAX5C,SAAS;mBAAC;oBACT,OAAO,EAAE,CAAC,OAAO,CAAC;oBAClB,QAAQ,EAAE,4BAA4B;oBACtC,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,cAAc,EAAE,CAAC,OAAO,CAAC;oBACzB,QAAQ,EAAE;;;;kBAIM;iBACjB;yEAE+D,aAAa","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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-description-list.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/description-list/watt-description-list.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EACL,SAAS,EACT,QAAQ,EACR,eAAe,EACf,MAAM,EACN,MAAM,EACN,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;;;AAC1F;;;GAGG;AACH,MAgBM,4BAA4B;IACxB,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAClC,gBAAgB,GAAG,eAAe,CAAC,CAAA,gCAAmC,CAAA,4DAAC,CAAC;IACxE,OAAO,GAAG,KAAK,CAA+C,MAAM,mDAAC,CAAC;IACtE,kBAAkB,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,yBAAyB,IAAI,CAAC,OAAO,EAAE,EAAE,8DAAC,CAAC;IAC/E,YAAY,GAAG,KAAK,CAAS,CAAC,wDAAC,CAAC;IAChC,cAAc,GAAG,KAAK,CAAC,IAAI,0DAAC,CAAC;IAE7B;QACE,MAAM,CAAC,GAAG,EAAE;YACV,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG;gBACrB,CAAC,iBAAiB,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE;aAC3C,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;wGAdG,4BAA4B;4FAA5B,4BAA4B,ypBAEG,CAAA,gCAAmC,CAAA,0FAb5D;;;;QAIJ,ggDALI,gBAAgB;;4FAYtB,4BAA4B;kBAhBjC,SAAS;oCACO,iBAAiB,CAAC,IAAI,YAC3B,uBAAuB,WAExB,CAAC,gBAAgB,CAAC,YACjB;;;;QAIJ,kBACU,CAAC,OAAO,CAAC,QACnB;wBACJ,gDAAgD,EAAE,gBAAgB;wBAClE,SAAS,EAAE,sBAAsB;qBAClC;kIAIkC,gCAAmC;AAexE,OAAO,EAAE,gCAAgC,EAAE,4BAA4B,EAAE,CAAC;AAC1E,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,4BAA4B;IAC5B,gCAAgC;CACxB,CAAC","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 { 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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"energinet-watt-drawer.js","sourceRoot":"","sources":["../../../../libs/watt/package/drawer/energinet-watt-drawer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
package/esm2022/drawer/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//#region License
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
//#endregion
|
|
19
|
-
export { WattDrawerTopbarComponent } from './watt-drawer-topbar.component';
|
|
20
|
-
export { WattDrawerActionsComponent } from './watt-drawer-actions.component';
|
|
21
|
-
export { WattDrawerContentComponent } from './watt-drawer-content.component';
|
|
22
|
-
export { WattDrawerHeadingComponent } from './watt-drawer-heading.component';
|
|
23
|
-
export { WattDrawerComponent, WATT_DRAWER } from './watt-drawer.component';
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/drawer/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAkB,MAAM,yBAAyB,CAAC","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\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"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region License
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
//#endregion
|
|
19
|
-
import { Component } from '@angular/core';
|
|
20
|
-
import * as i0 from "@angular/core";
|
|
21
|
-
export class WattDrawerActionsComponent {
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
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"] });
|
|
24
|
-
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerActionsComponent, decorators: [{
|
|
26
|
-
type: Component,
|
|
27
|
-
args: [{ selector: 'watt-drawer-actions', template: `<ng-content select="watt-button" />`, styles: [":host{display:flex;gap:var(--watt-space-s)}\n"] }]
|
|
28
|
-
}] });
|
|
29
|
-
//# sourceMappingURL=watt-drawer-actions.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-drawer-actions.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/drawer/watt-drawer-actions.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAY1C,MAAM,OAAO,0BAA0B;wGAA1B,0BAA0B;4FAA1B,0BAA0B,+EAF3B,qCAAqC;;4FAEpC,0BAA0B;kBAVtC,SAAS;+BACE,qBAAqB,YAOrB,qCAAqC","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-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"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region License
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
//#endregion
|
|
19
|
-
import { Component } from '@angular/core';
|
|
20
|
-
import * as i0 from "@angular/core";
|
|
21
|
-
export class WattDrawerContentComponent {
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
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"] });
|
|
24
|
-
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerContentComponent, decorators: [{
|
|
26
|
-
type: Component,
|
|
27
|
-
args: [{ selector: 'watt-drawer-content', template: `<ng-content />`, styles: [":host{overflow:auto;padding:var(--watt-space-ml)}\n"] }]
|
|
28
|
-
}] });
|
|
29
|
-
//# sourceMappingURL=watt-drawer-content.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-drawer-content.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/drawer/watt-drawer-content.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAc1C,MAAM,OAAO,0BAA0B;wGAA1B,0BAA0B;4FAA1B,0BAA0B,+EAV3B,gBAAgB;;4FAUf,0BAA0B;kBAZtC,SAAS;+BACE,qBAAqB,YACrB,gBAAgB","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-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"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region License
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
//#endregion
|
|
19
|
-
import { Component, ViewEncapsulation } from '@angular/core';
|
|
20
|
-
import * as i0 from "@angular/core";
|
|
21
|
-
export class WattDrawerHeadingComponent {
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerHeadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
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 });
|
|
24
|
-
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerHeadingComponent, decorators: [{
|
|
26
|
-
type: Component,
|
|
27
|
-
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"] }]
|
|
28
|
-
}] });
|
|
29
|
-
//# sourceMappingURL=watt-drawer-heading.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-drawer-heading.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/drawer/watt-drawer-heading.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;;AAyB7D,MAAM,OAAO,0BAA0B;wGAA1B,0BAA0B;4FAA1B,0BAA0B,+EApB3B,gBAAgB;;4FAoBf,0BAA0B;kBAvBtC,SAAS;+BACE,qBAAqB,iBAChB,iBAAiB,CAAC,IAAI,YAC3B,gBAAgB","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, 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"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
//#region License
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
//#endregion
|
|
19
|
-
import { Component } from '@angular/core';
|
|
20
|
-
import * as i0 from "@angular/core";
|
|
21
|
-
export class WattDrawerTopbarComponent {
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerTopbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
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 });
|
|
24
|
-
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDrawerTopbarComponent, decorators: [{
|
|
26
|
-
type: Component,
|
|
27
|
-
args: [{
|
|
28
|
-
selector: 'watt-drawer-topbar',
|
|
29
|
-
template: `<ng-content />`,
|
|
30
|
-
}]
|
|
31
|
-
}] });
|
|
32
|
-
//# sourceMappingURL=watt-drawer-topbar.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-drawer-topbar.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/drawer/watt-drawer-topbar.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAM1C,MAAM,OAAO,yBAAyB;wGAAzB,yBAAyB;4FAAzB,yBAAyB,8EAF1B,gBAAgB;;4FAEf,yBAAyB;kBAJrC,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,QAAQ,EAAE,gBAAgB;iBAC3B","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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-drawer.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/drawer/watt-drawer.component.ts","../../../../libs/watt/package/drawer/watt-drawer.component.html"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,EAET,SAAS,EACT,UAAU,EACV,uBAAuB,EACvB,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,MAAM,EACN,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;;;;AAI7E,MAAM,sBAAsB,GAAG,GAAG,CAAC;AACnC,MAAM,uBAAuB,GAAG;IAC9B,SAAS,EAAE,CAAC,kBAAkB,EAAE,eAAe,CAAC;IAChD,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;CACpB,CAAC;AAsBF,MAAM,OAAO,mBAAmB;IACtB,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAChC,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAC5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mB,i5BAGC,0BAA0B,2BAAU,UAAU,uEAC9C,0BAA0B,2BAAU,UAAU,sEAC/C,yBAAyB,2BAAU,UAAU,2FACjC,YAAY,gECvFxD,63DAyDA,gmBDcI,UAAU,yLACV,gBAAgB,ydAChB,kBAAkB,2FAClB,mBAAmB,uEACnB,oBAAoB,yEAEpB,mBAAmB,sIACnB,oBAAoB;;4FAGX,mBAAmB;kBApB/B,SAAS;sCACS,uBAAuB,CAAC,MAAM,YACrC,aAAa,QAGjB;wBACJ,kBAAkB,EAAE,6BAA6B;wBACjD,kBAAkB,EAAE,uBAAuB;qBAC5C,WACQ;wBACP,UAAU;wBACV,gBAAgB;wBAChB,kBAAkB;wBAClB,mBAAmB;wBACnB,oBAAoB;wBACpB,qBAAqB;wBACrB,mBAAmB;wBACnB,oBAAoB;qBACrB;sHAK8B,0BAA0B,QAAE,EAAE,IAAI,EAAE,UAAU,EAAE,sFAChD,0BAA0B,QAAE,EAAE,IAAI,EAAE,UAAU,EAAE,qFACjD,yBAAyB,QAAE,EAAE,IAAI,EAAE,UAAU,EAAE,wFACnC,YAAY;AAsIxD,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,mBAAmB;IACnB,yBAAyB;IACzB,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;CAC3B,CAAC","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 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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"energinet-watt-dropdown.js","sourceRoot":"","sources":["../../../../libs/watt/package/dropdown/energinet-watt-dropdown.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//#region License
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
//#endregion
|
|
19
|
-
export { WattDropdownComponent } from './watt-dropdown.component';
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/dropdown/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC","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\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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-dropdown-option.js","sourceRoot":"","sources":["../../../../libs/watt/package/dropdown/watt-dropdown-option.ts"],"names":[],"mappings":"","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\nexport interface WattDropdownOption {\n value: string;\n displayValue: string;\n disabled?: boolean;\n}\n\nexport interface WattDropdownOptionGroup {\n label: string;\n options: WattDropdownOption[];\n disabled?: boolean;\n}\n\nexport type WattDropdownOptions = WattDropdownOption[];\nexport type WattDropdownGroupedOptions = WattDropdownOptionGroup[];\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-dropdown-value.js","sourceRoot":"","sources":["../../../../libs/watt/package/dropdown/watt-dropdown-value.ts"],"names":[],"mappings":"","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\nexport type WattDropdownValue = string | string[] | null;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watt-dropdown.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/dropdown/watt-dropdown.component.ts","../../../../libs/watt/package/dropdown/watt-dropdown.component.html"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACN,MAAM,EAEN,MAAM,EACN,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,QAAQ,GACT,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,SAAS,EAET,WAAW,EAGX,kBAAkB,EAClB,mBAAmB,GAEpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAa,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;;;;;AA+B7D,MAAM,OAAO,qBAAqB;IACxB,sBAAsB,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3D,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAChC,cAAc,CAAe;IAC7B,mBAAmB,CAAoB;IACvC,QAAQ,GAAwB,EAAE,C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AiB,CAAC,IAAI,WAC5B;wBACP,MAAM;wBACN,OAAO;wBACP,eAAe;wBACf,eAAe;wBACf,mBAAmB;wBACnB,wBAAwB;wBAExB,iBAAiB;wBACjB,kBAAkB;wBAClB,qBAAqB;qBACtB,QACK;wBACJ,4BAA4B,EAAE,cAAc;wBAC5C,wBAAwB,EAAE,YAAY;qBACvC;iGA8DgC,WAAW","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 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 | WattDropdownGroupedOptions>([]);\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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"energinet-watt-dropzone.js","sourceRoot":"","sources":["../../../../libs/watt/package/dropzone/energinet-watt-dropzone.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|