@energinet/watt 4.2.15-alpha.0 → 4.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badge/energinet-watt-badge.d.ts +5 -0
- package/badge/index.d.ts +17 -0
- package/badge/watt-badge.component.d.ts +15 -0
- package/breadcrumbs/energinet-watt-breadcrumbs.d.ts +5 -0
- package/breadcrumbs/index.d.ts +17 -0
- package/{types/energinet-watt-breadcrumbs.d.ts → breadcrumbs/watt-breadcrumbs.component.d.ts} +7 -10
- package/button/energinet-watt-button.d.ts +5 -0
- package/button/index.d.ts +17 -0
- package/button/watt-button.component.d.ts +22 -0
- package/card/energinet-watt-card.d.ts +5 -0
- package/card/index.d.ts +18 -0
- package/card/watt-card-title.component.d.ts +6 -0
- package/card/watt-card.component.d.ts +15 -0
- package/checkbox/energinet-watt-checkbox.d.ts +5 -0
- package/checkbox/index.d.ts +17 -0
- package/checkbox/watt-checkbox.component.d.ts +17 -0
- package/chip/energinet-watt-chip.d.ts +5 -0
- package/chip/index.d.ts +23 -0
- package/chip/watt-action-chip.component.d.ts +8 -0
- package/chip/watt-chip.component.d.ts +8 -0
- package/chip/watt-chip.directive.d.ts +16 -0
- package/chip/watt-date-chip.component.d.ts +12 -0
- package/chip/watt-date-range-chip.component.d.ts +50 -0
- package/chip/watt-filter-chip.component.d.ts +13 -0
- package/chip/watt-menu-chip.component.d.ts +13 -0
- package/clipboard/energinet-watt-clipboard.d.ts +5 -0
- package/clipboard/index.d.ts +18 -0
- package/clipboard/watt-clipboard-intl.service.d.ts +7 -0
- package/clipboard/watt-copy-to-clipboard.directive.d.ts +12 -0
- package/code/energinet-watt-code.d.ts +5 -0
- package/code/index.d.ts +19 -0
- package/code/watt-code-intl.service.d.ts +6 -0
- package/code/watt-code.component.d.ts +45 -0
- package/code/watt-code.worker.token.d.ts +18 -0
- package/core/breakpoints/breakpoints-observer.d.ts +21 -0
- package/{types/energinet-watt-core-breakpoints.d.ts → core/breakpoints/breakpoints.d.ts} +2 -27
- package/core/breakpoints/energinet-watt-core-breakpoints.d.ts +5 -0
- package/core/breakpoints/index.d.ts +18 -0
- package/core/color/color-helper.service.d.ts +10 -0
- package/{types/energinet-watt-core-color.d.ts → core/color/colors.d.ts} +2 -15
- package/core/color/energinet-watt-core-color.d.ts +5 -0
- package/{types/energinet-watt.d.ts → core/color/index.d.ts} +2 -3
- package/core/date/dayjs.d.ts +22 -0
- package/core/date/energinet-watt-core-date.d.ts +5 -0
- package/core/date/index.d.ts +23 -0
- package/core/date/watt-danish-datetime.providers.d.ts +1 -0
- package/core/date/watt-date-adapter.d.ts +31 -0
- package/core/date/watt-date-range.d.ts +25 -0
- package/core/date/watt-date.pipe.d.ts +28 -0
- package/core/date/watt-format-date.d.ts +11 -0
- package/core/date/watt-locale.service.d.ts +11 -0
- package/data/energinet-watt-data.d.ts +5 -0
- package/data/index.d.ts +20 -0
- package/data/watt-data-actions.component.d.ts +5 -0
- package/data/watt-data-filters.component.d.ts +5 -0
- package/data/watt-data-intl.service.d.ts +15 -0
- package/data/watt-data-table.component.d.ts +34 -0
- package/datetime-field/energinet-watt-datetime-field.d.ts +5 -0
- package/datetime-field/index.d.ts +17 -0
- package/datetime-field/watt-datetime-field.component.d.ts +39 -0
- package/description-list/energinet-watt-description-list.d.ts +5 -0
- package/description-list/index.d.ts +17 -0
- package/description-list/watt-description-list-item.component.d.ts +27 -0
- package/description-list/watt-description-list.component.d.ts +20 -0
- package/drawer/energinet-watt-drawer.d.ts +5 -0
- package/drawer/index.d.ts +21 -0
- package/drawer/watt-drawer-actions.component.d.ts +5 -0
- package/drawer/watt-drawer-content.component.d.ts +5 -0
- package/drawer/watt-drawer-heading.component.d.ts +5 -0
- package/drawer/watt-drawer-topbar.component.d.ts +5 -0
- package/{types/energinet-watt-drawer.d.ts → drawer/watt-drawer.component.d.ts} +28 -35
- package/dropdown/energinet-watt-dropdown.d.ts +5 -0
- package/dropdown/index.d.ts +19 -0
- package/dropdown/watt-dropdown-option.d.ts +28 -0
- package/dropdown/watt-dropdown-value.d.ts +17 -0
- package/dropdown/watt-dropdown.component.d.ts +133 -0
- package/dropzone/energinet-watt-dropzone.d.ts +5 -0
- package/dropzone/index.d.ts +19 -0
- package/dropzone/watt-dropzone-intl.d.ts +11 -0
- package/dropzone/watt-dropzone-validators.d.ts +27 -0
- package/dropzone/watt-dropzone.d.ts +31 -0
- package/empty-state/energinet-watt-empty-state.d.ts +5 -0
- package/empty-state/icons/explore.d.ts +5 -0
- package/empty-state/icons/no-results.d.ts +5 -0
- package/empty-state/icons/not-found.d.ts +5 -0
- package/empty-state/icons/power.d.ts +5 -0
- package/empty-state/index.d.ts +21 -0
- package/empty-state/watt-empty-state.component.d.ts +16 -0
- package/energinet-watt.d.ts +5 -0
- package/esm2022/badge/energinet-watt-badge.js +5 -0
- package/esm2022/badge/energinet-watt-badge.js.map +1 -0
- package/esm2022/badge/index.js +20 -0
- package/esm2022/badge/index.js.map +1 -0
- package/{fesm2022/energinet-watt-badge.mjs → esm2022/badge/watt-badge.component.js} +4 -30
- package/esm2022/badge/watt-badge.component.js.map +1 -0
- package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js +5 -0
- package/esm2022/breadcrumbs/energinet-watt-breadcrumbs.js.map +1 -0
- package/esm2022/breadcrumbs/index.js +20 -0
- package/esm2022/breadcrumbs/index.js.map +1 -0
- package/{fesm2022/energinet-watt-breadcrumbs.mjs → esm2022/breadcrumbs/watt-breadcrumbs.component.js} +10 -36
- package/esm2022/breadcrumbs/watt-breadcrumbs.component.js.map +1 -0
- package/esm2022/button/energinet-watt-button.js +5 -0
- package/esm2022/button/energinet-watt-button.js.map +1 -0
- package/esm2022/button/index.js +20 -0
- package/esm2022/button/index.js.map +1 -0
- package/{fesm2022/energinet-watt-button.mjs → esm2022/button/watt-button.component.js} +9 -35
- package/esm2022/button/watt-button.component.js.map +1 -0
- package/esm2022/card/energinet-watt-card.js +5 -0
- package/esm2022/card/energinet-watt-card.js.map +1 -0
- package/esm2022/card/index.js +21 -0
- package/esm2022/card/index.js.map +1 -0
- package/esm2022/card/watt-card-title.component.js +33 -0
- package/esm2022/card/watt-card-title.component.js.map +1 -0
- package/{fesm2022/energinet-watt-card.mjs → esm2022/card/watt-card.component.js} +7 -63
- package/esm2022/card/watt-card.component.js.map +1 -0
- package/esm2022/checkbox/energinet-watt-checkbox.js +5 -0
- package/esm2022/checkbox/energinet-watt-checkbox.js.map +1 -0
- package/esm2022/checkbox/index.js +20 -0
- package/esm2022/checkbox/index.js.map +1 -0
- package/{fesm2022/energinet-watt-checkbox.mjs → esm2022/checkbox/watt-checkbox.component.js} +6 -32
- package/esm2022/checkbox/watt-checkbox.component.js.map +1 -0
- package/esm2022/chip/energinet-watt-chip.js +5 -0
- package/esm2022/chip/energinet-watt-chip.js.map +1 -0
- package/esm2022/chip/index.js +26 -0
- package/esm2022/chip/index.js.map +1 -0
- package/esm2022/chip/watt-action-chip.component.js +68 -0
- package/esm2022/chip/watt-action-chip.component.js.map +1 -0
- package/esm2022/chip/watt-chip.component.js +55 -0
- package/esm2022/chip/watt-chip.component.js.map +1 -0
- package/esm2022/chip/watt-chip.directive.js +92 -0
- package/esm2022/chip/watt-chip.directive.js.map +1 -0
- package/esm2022/chip/watt-date-chip.component.js +104 -0
- package/esm2022/chip/watt-date-chip.component.js.map +1 -0
- package/esm2022/chip/watt-date-range-chip.component.js +213 -0
- package/esm2022/chip/watt-date-range-chip.component.js.map +1 -0
- package/esm2022/chip/watt-filter-chip.component.js +82 -0
- package/esm2022/chip/watt-filter-chip.component.js.map +1 -0
- package/esm2022/chip/watt-menu-chip.component.js +80 -0
- package/esm2022/chip/watt-menu-chip.component.js.map +1 -0
- package/esm2022/clipboard/energinet-watt-clipboard.js +5 -0
- package/esm2022/clipboard/energinet-watt-clipboard.js.map +1 -0
- package/esm2022/clipboard/index.js +21 -0
- package/esm2022/clipboard/index.js.map +1 -0
- package/esm2022/clipboard/watt-clipboard-intl.service.js +31 -0
- package/esm2022/clipboard/watt-clipboard-intl.service.js.map +1 -0
- package/{fesm2022/energinet-watt-clipboard.mjs → esm2022/clipboard/watt-copy-to-clipboard.directive.js} +7 -61
- package/esm2022/clipboard/watt-copy-to-clipboard.directive.js.map +1 -0
- package/esm2022/code/energinet-watt-code.js +5 -0
- package/esm2022/code/energinet-watt-code.js.map +1 -0
- package/esm2022/code/index.js +22 -0
- package/esm2022/code/index.js.map +1 -0
- package/esm2022/code/watt-code-intl.service.js +30 -0
- package/esm2022/code/watt-code-intl.service.js.map +1 -0
- package/{fesm2022/energinet-watt-code.mjs → esm2022/code/watt-code.component.js} +11 -83
- package/esm2022/code/watt-code.component.js.map +1 -0
- package/esm2022/code/watt-code.worker.token.js +21 -0
- package/esm2022/code/watt-code.worker.token.js.map +1 -0
- package/esm2022/core/breakpoints/breakpoints-observer.js +41 -0
- package/esm2022/core/breakpoints/breakpoints-observer.js.map +1 -0
- package/esm2022/core/breakpoints/breakpoints.js +31 -0
- package/esm2022/core/breakpoints/breakpoints.js.map +1 -0
- package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js +5 -0
- package/esm2022/core/breakpoints/energinet-watt-core-breakpoints.js.map +1 -0
- package/esm2022/core/breakpoints/index.js +21 -0
- package/esm2022/core/breakpoints/index.js.map +1 -0
- package/esm2022/core/color/color-helper.service.js +41 -0
- package/esm2022/core/color/color-helper.service.js.map +1 -0
- package/esm2022/core/color/colors.js +58 -0
- package/esm2022/core/color/colors.js.map +1 -0
- package/esm2022/core/color/energinet-watt-core-color.js +5 -0
- package/esm2022/core/color/energinet-watt-core-color.js.map +1 -0
- package/esm2022/core/color/index.js +21 -0
- package/esm2022/core/color/index.js.map +1 -0
- package/esm2022/core/date/dayjs.js +34 -0
- package/esm2022/core/date/dayjs.js.map +1 -0
- package/esm2022/core/date/energinet-watt-core-date.js +5 -0
- package/esm2022/core/date/energinet-watt-core-date.js.map +1 -0
- package/esm2022/core/date/index.js +25 -0
- package/esm2022/core/date/index.js.map +1 -0
- package/esm2022/core/date/watt-danish-datetime.providers.js +31 -0
- package/esm2022/core/date/watt-danish-datetime.providers.js.map +1 -0
- package/esm2022/core/date/watt-date-adapter.js +43 -0
- package/esm2022/core/date/watt-date-adapter.js.map +1 -0
- package/esm2022/core/date/watt-date-range.js +2 -0
- package/esm2022/core/date/watt-date-range.js.map +1 -0
- package/esm2022/core/date/watt-date.pipe.js +38 -0
- package/esm2022/core/date/watt-date.pipe.js.map +1 -0
- package/esm2022/core/date/watt-format-date.js +50 -0
- package/esm2022/core/date/watt-format-date.js.map +1 -0
- package/esm2022/core/date/watt-locale.service.js +48 -0
- package/esm2022/core/date/watt-locale.service.js.map +1 -0
- package/esm2022/data/energinet-watt-data.js +5 -0
- package/esm2022/data/energinet-watt-data.js.map +1 -0
- package/esm2022/data/index.js +23 -0
- package/esm2022/data/index.js.map +1 -0
- package/esm2022/data/watt-data-actions.component.js +32 -0
- package/esm2022/data/watt-data-actions.component.js.map +1 -0
- package/esm2022/data/watt-data-filters.component.js +32 -0
- package/esm2022/data/watt-data-filters.component.js.map +1 -0
- package/esm2022/data/watt-data-intl.service.js +39 -0
- package/esm2022/data/watt-data-intl.service.js.map +1 -0
- package/{fesm2022/energinet-watt-data.mjs → esm2022/data/watt-data-table.component.js} +12 -134
- package/esm2022/data/watt-data-table.component.js.map +1 -0
- package/esm2022/datetime-field/energinet-watt-datetime-field.js +5 -0
- package/esm2022/datetime-field/energinet-watt-datetime-field.js.map +1 -0
- package/esm2022/datetime-field/index.js +20 -0
- package/esm2022/datetime-field/index.js.map +1 -0
- package/{fesm2022/energinet-watt-datetime-field.mjs → esm2022/datetime-field/watt-datetime-field.component.js} +14 -40
- package/esm2022/datetime-field/watt-datetime-field.component.js.map +1 -0
- package/esm2022/description-list/energinet-watt-description-list.js +5 -0
- package/esm2022/description-list/energinet-watt-description-list.js.map +1 -0
- package/esm2022/description-list/index.js +20 -0
- package/esm2022/description-list/index.js.map +1 -0
- package/esm2022/description-list/watt-description-list-item.component.js +49 -0
- package/esm2022/description-list/watt-description-list-item.component.js.map +1 -0
- package/{fesm2022/energinet-watt-description-list.mjs → esm2022/description-list/watt-description-list.component.js} +8 -77
- package/esm2022/description-list/watt-description-list.component.js.map +1 -0
- package/esm2022/drawer/energinet-watt-drawer.js +5 -0
- package/esm2022/drawer/energinet-watt-drawer.js.map +1 -0
- package/esm2022/drawer/index.js +24 -0
- package/esm2022/drawer/index.js.map +1 -0
- package/esm2022/drawer/watt-drawer-actions.component.js +29 -0
- package/esm2022/drawer/watt-drawer-actions.component.js.map +1 -0
- package/esm2022/drawer/watt-drawer-content.component.js +29 -0
- package/esm2022/drawer/watt-drawer-content.component.js.map +1 -0
- package/esm2022/drawer/watt-drawer-heading.component.js +29 -0
- package/esm2022/drawer/watt-drawer-heading.component.js.map +1 -0
- package/esm2022/drawer/watt-drawer-topbar.component.js +32 -0
- package/esm2022/drawer/watt-drawer-topbar.component.js.map +1 -0
- package/{fesm2022/energinet-watt-drawer.mjs → esm2022/drawer/watt-drawer.component.js} +17 -150
- package/esm2022/drawer/watt-drawer.component.js.map +1 -0
- package/esm2022/dropdown/energinet-watt-dropdown.js +5 -0
- package/esm2022/dropdown/energinet-watt-dropdown.js.map +1 -0
- package/esm2022/dropdown/index.js +20 -0
- package/esm2022/dropdown/index.js.map +1 -0
- package/esm2022/dropdown/watt-dropdown-option.js +2 -0
- package/esm2022/dropdown/watt-dropdown-option.js.map +1 -0
- package/esm2022/dropdown/watt-dropdown-value.js +2 -0
- package/esm2022/dropdown/watt-dropdown-value.js.map +1 -0
- package/{fesm2022/energinet-watt-dropdown.mjs → esm2022/dropdown/watt-dropdown.component.js} +18 -44
- package/esm2022/dropdown/watt-dropdown.component.js.map +1 -0
- package/esm2022/dropzone/energinet-watt-dropzone.js +5 -0
- package/esm2022/dropzone/energinet-watt-dropzone.js.map +1 -0
- package/esm2022/dropzone/index.js +22 -0
- package/esm2022/dropzone/index.js.map +1 -0
- package/esm2022/dropzone/watt-dropzone-intl.js +35 -0
- package/esm2022/dropzone/watt-dropzone-intl.js.map +1 -0
- package/esm2022/dropzone/watt-dropzone-validators.js +67 -0
- package/esm2022/dropzone/watt-dropzone-validators.js.map +1 -0
- package/{fesm2022/energinet-watt-dropzone.mjs → esm2022/dropzone/watt-dropzone.js} +14 -133
- package/esm2022/dropzone/watt-dropzone.js.map +1 -0
- package/esm2022/empty-state/energinet-watt-empty-state.js +5 -0
- package/esm2022/empty-state/energinet-watt-empty-state.js.map +1 -0
- package/esm2022/empty-state/icons/explore.js +54 -0
- package/esm2022/empty-state/icons/explore.js.map +1 -0
- package/esm2022/empty-state/icons/no-results.js +62 -0
- package/esm2022/empty-state/icons/no-results.js.map +1 -0
- package/{fesm2022/energinet-watt-empty-state.mjs → esm2022/empty-state/icons/not-found.js} +4 -301
- package/esm2022/empty-state/icons/not-found.js.map +1 -0
- package/esm2022/empty-state/icons/power.js +46 -0
- package/esm2022/empty-state/icons/power.js.map +1 -0
- package/esm2022/empty-state/index.js +24 -0
- package/esm2022/empty-state/index.js.map +1 -0
- package/esm2022/empty-state/watt-empty-state.component.js +120 -0
- package/esm2022/empty-state/watt-empty-state.component.js.map +1 -0
- package/esm2022/energinet-watt.js +5 -0
- package/esm2022/energinet-watt.js.map +1 -0
- package/esm2022/expandable-card/energinet-watt-expandable-card.js +5 -0
- package/esm2022/expandable-card/energinet-watt-expandable-card.js.map +1 -0
- package/esm2022/expandable-card/index.js +26 -0
- package/esm2022/expandable-card/index.js.map +1 -0
- package/{fesm2022/energinet-watt-expandable-card.mjs → esm2022/expandable-card/watt-expandable-card.component.js} +9 -40
- package/esm2022/expandable-card/watt-expandable-card.component.js.map +1 -0
- package/esm2022/field/energinet-watt-field.js +5 -0
- package/esm2022/field/energinet-watt-field.js.map +1 -0
- package/esm2022/field/index.js +24 -0
- package/esm2022/field/index.js.map +1 -0
- package/esm2022/field/watt-field-error.component.js +29 -0
- package/esm2022/field/watt-field-error.component.js.map +1 -0
- package/esm2022/field/watt-field-hint.component.js +29 -0
- package/esm2022/field/watt-field-hint.component.js.map +1 -0
- package/esm2022/field/watt-field-intl.service.js +32 -0
- package/esm2022/field/watt-field-intl.service.js.map +1 -0
- package/esm2022/field/watt-field-warning.component.js +29 -0
- package/esm2022/field/watt-field-warning.component.js.map +1 -0
- package/{fesm2022/energinet-watt-field.mjs → esm2022/field/watt-field.component.js} +14 -149
- package/esm2022/field/watt-field.component.js.map +1 -0
- package/esm2022/file-field/energinet-watt-file-field.js +5 -0
- package/esm2022/file-field/energinet-watt-file-field.js.map +1 -0
- package/esm2022/file-field/index.js +20 -0
- package/esm2022/file-field/index.js.map +1 -0
- package/{fesm2022/energinet-watt-file-field.mjs → esm2022/file-field/watt-file-field.component.js} +6 -32
- package/esm2022/file-field/watt-file-field.component.js.map +1 -0
- package/esm2022/icon/energinet-watt-icon.js +5 -0
- package/esm2022/icon/energinet-watt-icon.js.map +1 -0
- package/esm2022/icon/flags/energinet-watt-icon-flags.js +5 -0
- package/esm2022/icon/flags/energinet-watt-icon-flags.js.map +1 -0
- package/esm2022/icon/flags/index.js +29 -0
- package/esm2022/icon/flags/index.js.map +1 -0
- package/esm2022/icon/flags/watt-flag-ch.js +52 -0
- package/esm2022/icon/flags/watt-flag-ch.js.map +1 -0
- package/esm2022/icon/flags/watt-flag-de.js +44 -0
- package/esm2022/icon/flags/watt-flag-de.js.map +1 -0
- package/esm2022/icon/flags/watt-flag-dk.js +44 -0
- package/esm2022/icon/flags/watt-flag-dk.js.map +1 -0
- package/esm2022/icon/flags/watt-flag-fi.js +44 -0
- package/esm2022/icon/flags/watt-flag-fi.js.map +1 -0
- package/esm2022/icon/flags/watt-flag-gb.js +60 -0
- package/esm2022/icon/flags/watt-flag-gb.js.map +1 -0
- package/esm2022/icon/flags/watt-flag-nl.js +44 -0
- package/esm2022/icon/flags/watt-flag-nl.js.map +1 -0
- package/esm2022/icon/flags/watt-flag-no.js +48 -0
- package/esm2022/icon/flags/watt-flag-no.js.map +1 -0
- package/esm2022/icon/flags/watt-flag-pl.js +46 -0
- package/esm2022/icon/flags/watt-flag-pl.js.map +1 -0
- package/esm2022/icon/flags/watt-flag-se.js +42 -0
- package/esm2022/icon/flags/watt-flag-se.js.map +1 -0
- package/esm2022/icon/flags/watt-flag.js +124 -0
- package/esm2022/icon/flags/watt-flag.js.map +1 -0
- package/{fesm2022/energinet-watt-icon.mjs → esm2022/icon/icon.component.js} +6 -133
- package/esm2022/icon/icon.component.js.map +1 -0
- package/esm2022/icon/icons.js +104 -0
- package/esm2022/icon/icons.js.map +1 -0
- package/esm2022/icon/index.js +20 -0
- package/esm2022/icon/index.js.map +1 -0
- package/{fesm2022/energinet-watt.mjs → esm2022/index.js} +2 -8
- package/esm2022/index.js.map +1 -0
- package/esm2022/menu/energinet-watt-menu.js +5 -0
- package/esm2022/menu/energinet-watt-menu.js.map +1 -0
- package/esm2022/menu/index.js +36 -0
- package/esm2022/menu/index.js.map +1 -0
- package/esm2022/menu/watt-menu-group.component.js +45 -0
- package/esm2022/menu/watt-menu-group.component.js.map +1 -0
- package/esm2022/menu/watt-menu-item.component.js +50 -0
- package/esm2022/menu/watt-menu-item.component.js.map +1 -0
- package/esm2022/menu/watt-menu-trigger.directive.js +85 -0
- package/esm2022/menu/watt-menu-trigger.directive.js.map +1 -0
- package/esm2022/menu/watt-menu.component.js +77 -0
- package/esm2022/menu/watt-menu.component.js.map +1 -0
- package/esm2022/modal/energinet-watt-modal.js +5 -0
- package/esm2022/modal/energinet-watt-modal.js.map +1 -0
- package/esm2022/modal/index.js +21 -0
- package/esm2022/modal/index.js.map +1 -0
- package/{fesm2022/energinet-watt-modal.mjs → esm2022/modal/watt-modal.component.js} +13 -109
- package/esm2022/modal/watt-modal.component.js.map +1 -0
- package/esm2022/modal/watt-modal.service.js +74 -0
- package/esm2022/modal/watt-modal.service.js.map +1 -0
- package/esm2022/paginator/energinet-watt-paginator.js +5 -0
- package/esm2022/paginator/energinet-watt-paginator.js.map +1 -0
- package/esm2022/paginator/index.js +21 -0
- package/esm2022/paginator/index.js.map +1 -0
- package/esm2022/paginator/watt-paginator-intl.service.js +38 -0
- package/esm2022/paginator/watt-paginator-intl.service.js.map +1 -0
- package/{fesm2022/energinet-watt-paginator.mjs → esm2022/paginator/watt-paginator.component.js} +9 -69
- package/esm2022/paginator/watt-paginator.component.js.map +1 -0
- package/esm2022/phone-field/energinet-watt-phone-field.js +5 -0
- package/esm2022/phone-field/energinet-watt-phone-field.js.map +1 -0
- package/esm2022/phone-field/index.js +21 -0
- package/esm2022/phone-field/index.js.map +1 -0
- package/esm2022/phone-field/watt-phone-field-intl.service.js +41 -0
- package/esm2022/phone-field/watt-phone-field-intl.service.js.map +1 -0
- package/{fesm2022/energinet-watt-phone-field.mjs → esm2022/phone-field/watt-phone-field.component.js} +16 -80
- package/esm2022/phone-field/watt-phone-field.component.js.map +1 -0
- package/esm2022/picker/__shared/energinet-watt-picker-__shared.js +5 -0
- package/esm2022/picker/__shared/energinet-watt-picker-__shared.js.map +1 -0
- package/esm2022/picker/__shared/index.js +21 -0
- package/esm2022/picker/__shared/index.js.map +1 -0
- package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js +71 -0
- package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js.map +1 -0
- package/esm2022/picker/__shared/watt-picker-base.js +197 -0
- package/esm2022/picker/__shared/watt-picker-base.js.map +1 -0
- package/esm2022/picker/__shared/watt-picker-value.js +2 -0
- package/esm2022/picker/__shared/watt-picker-value.js.map +1 -0
- package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js +5 -0
- package/esm2022/picker/datepicker/energinet-watt-picker-datepicker.js.map +1 -0
- package/esm2022/picker/datepicker/index.js +22 -0
- package/esm2022/picker/datepicker/index.js.map +1 -0
- package/esm2022/picker/datepicker/watt-datepicker-intl.service.js +31 -0
- package/esm2022/picker/datepicker/watt-datepicker-intl.service.js.map +1 -0
- package/{fesm2022/energinet-watt-picker-datepicker.mjs → esm2022/picker/datepicker/watt-datepicker.component.js} +16 -71
- package/esm2022/picker/datepicker/watt-datepicker.component.js.map +1 -0
- package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js +5 -0
- package/esm2022/picker/timepicker/energinet-watt-picker-timepicker.js.map +1 -0
- package/esm2022/picker/timepicker/index.js +20 -0
- package/esm2022/picker/timepicker/index.js.map +1 -0
- package/esm2022/picker/timepicker/maskito-time-range-mask.js +81 -0
- package/esm2022/picker/timepicker/maskito-time-range-mask.js.map +1 -0
- package/{fesm2022/energinet-watt-picker-timepicker.mjs → esm2022/picker/timepicker/watt-timepicker.component.js} +20 -126
- package/esm2022/picker/timepicker/watt-timepicker.component.js.map +1 -0
- package/esm2022/progress-tracker/energinet-watt-progress-tracker.js +5 -0
- package/esm2022/progress-tracker/energinet-watt-progress-tracker.js.map +1 -0
- package/esm2022/progress-tracker/index.js +27 -0
- package/esm2022/progress-tracker/index.js.map +1 -0
- package/{fesm2022/energinet-watt-progress-tracker.mjs → esm2022/progress-tracker/watt-progress-tracker-step.component.js} +6 -64
- package/esm2022/progress-tracker/watt-progress-tracker-step.component.js.map +1 -0
- package/esm2022/progress-tracker/watt-progress-tracker.component.js +30 -0
- package/esm2022/progress-tracker/watt-progress-tracker.component.js.map +1 -0
- package/esm2022/query-params/energinet-watt-query-params.js +5 -0
- package/esm2022/query-params/energinet-watt-query-params.js.map +1 -0
- package/esm2022/query-params/index.js +20 -0
- package/esm2022/query-params/index.js.map +1 -0
- package/{fesm2022/energinet-watt-query-params.mjs → esm2022/query-params/watt-query-params.directive.js} +6 -32
- package/esm2022/query-params/watt-query-params.directive.js.map +1 -0
- package/esm2022/radio/energinet-watt-radio.js +5 -0
- package/esm2022/radio/energinet-watt-radio.js.map +1 -0
- package/esm2022/radio/index.js +21 -0
- package/esm2022/radio/index.js.map +1 -0
- package/esm2022/radio/watt-radio-group.component.js +119 -0
- package/esm2022/radio/watt-radio-group.component.js.map +1 -0
- package/{fesm2022/energinet-watt-radio.mjs → esm2022/radio/watt-radio.component.js} +5 -146
- package/esm2022/radio/watt-radio.component.js.map +1 -0
- package/esm2022/search/energinet-watt-search.js +5 -0
- package/esm2022/search/energinet-watt-search.js.map +1 -0
- package/esm2022/search/index.js +20 -0
- package/esm2022/search/index.js.map +1 -0
- package/{fesm2022/energinet-watt-search.mjs → esm2022/search/watt-search.component.js} +7 -33
- package/esm2022/search/watt-search.component.js.map +1 -0
- package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js +5 -0
- package/esm2022/segmented-buttons/energinet-watt-segmented-buttons.js.map +1 -0
- package/esm2022/segmented-buttons/index.js +27 -0
- package/esm2022/segmented-buttons/index.js.map +1 -0
- package/esm2022/segmented-buttons/watt-segmented-button.component.js +39 -0
- package/esm2022/segmented-buttons/watt-segmented-button.component.js.map +1 -0
- package/{fesm2022/energinet-watt-segmented-buttons.mjs → esm2022/segmented-buttons/watt-segmented-buttons.component.js} +11 -77
- package/esm2022/segmented-buttons/watt-segmented-buttons.component.js.map +1 -0
- package/esm2022/shell/energinet-watt-shell.js +5 -0
- package/esm2022/shell/energinet-watt-shell.js.map +1 -0
- package/esm2022/shell/index.js +21 -0
- package/esm2022/shell/index.js.map +1 -0
- package/esm2022/shell/nav-list/index.js +21 -0
- package/esm2022/shell/nav-list/index.js.map +1 -0
- package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js +47 -0
- package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js.map +1 -0
- package/esm2022/shell/nav-list/watt-nav-list-item.component.js +83 -0
- package/esm2022/shell/nav-list/watt-nav-list-item.component.js.map +1 -0
- package/esm2022/shell/nav-list/watt-nav-list.component.js +80 -0
- package/esm2022/shell/nav-list/watt-nav-list.component.js.map +1 -0
- package/esm2022/shell/shell.component.js +59 -0
- package/esm2022/shell/shell.component.js.map +1 -0
- package/esm2022/slide-toggle/energinet-watt-slide-toggle.js +5 -0
- package/esm2022/slide-toggle/energinet-watt-slide-toggle.js.map +1 -0
- package/esm2022/slide-toggle/index.js +20 -0
- package/esm2022/slide-toggle/index.js.map +1 -0
- package/{fesm2022/energinet-watt-slide-toggle.mjs → esm2022/slide-toggle/watt-slide-toggle.component.js} +8 -34
- package/esm2022/slide-toggle/watt-slide-toggle.component.js.map +1 -0
- package/esm2022/slider/energinet-watt-slider.js +5 -0
- package/esm2022/slider/energinet-watt-slider.js.map +1 -0
- package/esm2022/slider/index.js +20 -0
- package/esm2022/slider/index.js.map +1 -0
- package/{fesm2022/energinet-watt-slider.mjs → esm2022/slider/watt-slider.component.js} +7 -33
- package/esm2022/slider/watt-slider.component.js.map +1 -0
- package/esm2022/spinner/energinet-watt-spinner.js +5 -0
- package/esm2022/spinner/energinet-watt-spinner.js.map +1 -0
- package/esm2022/spinner/index.js +20 -0
- package/esm2022/spinner/index.js.map +1 -0
- package/{fesm2022/energinet-watt-spinner.mjs → esm2022/spinner/watt-spinner.component.js} +4 -30
- package/esm2022/spinner/watt-spinner.component.js.map +1 -0
- package/esm2022/stepper/energinet-watt-stepper.js +5 -0
- package/esm2022/stepper/energinet-watt-stepper.js.map +1 -0
- package/esm2022/stepper/index.js +21 -0
- package/esm2022/stepper/index.js.map +1 -0
- package/esm2022/stepper/watt-stepper-step.component.js +49 -0
- package/esm2022/stepper/watt-stepper-step.component.js.map +1 -0
- package/{fesm2022/energinet-watt-stepper.mjs → esm2022/stepper/watt-stepper.component.js} +15 -85
- package/esm2022/stepper/watt-stepper.component.js.map +1 -0
- package/esm2022/table/energinet-watt-table.js +5 -0
- package/esm2022/table/energinet-watt-table.js.map +1 -0
- package/esm2022/table/index.js +21 -0
- package/esm2022/table/index.js.map +1 -0
- package/esm2022/table/watt-table-data-source.js +27 -0
- package/esm2022/table/watt-table-data-source.js.map +1 -0
- package/esm2022/table/watt-table-expand-animation.js +65 -0
- package/esm2022/table/watt-table-expand-animation.js.map +1 -0
- package/{fesm2022/energinet-watt-table.mjs → esm2022/table/watt-table.component.js} +22 -134
- package/esm2022/table/watt-table.component.js.map +1 -0
- package/esm2022/tabs/energinet-watt-tabs.js +5 -0
- package/esm2022/tabs/energinet-watt-tabs.js.map +1 -0
- package/esm2022/tabs/index.js +31 -0
- package/esm2022/tabs/index.js.map +1 -0
- package/esm2022/tabs/watt-link-tab.component.js +34 -0
- package/esm2022/tabs/watt-link-tab.component.js.map +1 -0
- package/esm2022/tabs/watt-link-tabs.component.js +71 -0
- package/esm2022/tabs/watt-link-tabs.component.js.map +1 -0
- package/esm2022/tabs/watt-tab.component.js +42 -0
- package/esm2022/tabs/watt-tab.component.js.map +1 -0
- package/esm2022/tabs/watt-tabs-action.component.js +32 -0
- package/esm2022/tabs/watt-tabs-action.component.js.map +1 -0
- package/esm2022/tabs/watt-tabs.component.js +60 -0
- package/esm2022/tabs/watt-tabs.component.js.map +1 -0
- package/esm2022/text-field/energinet-watt-text-field.js +5 -0
- package/esm2022/text-field/energinet-watt-text-field.js.map +1 -0
- package/esm2022/text-field/index.js +20 -0
- package/esm2022/text-field/index.js.map +1 -0
- package/{fesm2022/energinet-watt-text-field.mjs → esm2022/text-field/watt-text-field.component.js} +10 -36
- package/esm2022/text-field/watt-text-field.component.js.map +1 -0
- package/esm2022/textarea-field/energinet-watt-textarea-field.js +5 -0
- package/esm2022/textarea-field/energinet-watt-textarea-field.js.map +1 -0
- package/esm2022/textarea-field/index.js +20 -0
- package/esm2022/textarea-field/index.js.map +1 -0
- package/{fesm2022/energinet-watt-textarea-field.mjs → esm2022/textarea-field/watt-textarea-field.component.js} +6 -32
- package/esm2022/textarea-field/watt-textarea-field.component.js.map +1 -0
- package/esm2022/toast/energinet-watt-toast.js +5 -0
- package/esm2022/toast/energinet-watt-toast.js.map +1 -0
- package/esm2022/toast/index.js +21 -0
- package/esm2022/toast/index.js.map +1 -0
- package/{fesm2022/energinet-watt-toast.mjs → esm2022/toast/watt-toast.component.js} +9 -82
- package/esm2022/toast/watt-toast.component.js.map +1 -0
- package/esm2022/toast/watt-toast.service.js +51 -0
- package/esm2022/toast/watt-toast.service.js.map +1 -0
- package/esm2022/tooltip/energinet-watt-tooltip.js +5 -0
- package/esm2022/tooltip/energinet-watt-tooltip.js.map +1 -0
- package/esm2022/tooltip/index.js +20 -0
- package/esm2022/tooltip/index.js.map +1 -0
- package/{fesm2022/energinet-watt-tooltip.mjs → esm2022/tooltip/watt-tooltip.component.js} +8 -98
- package/esm2022/tooltip/watt-tooltip.component.js.map +1 -0
- package/esm2022/tooltip/watt-tooltip.directive.js +67 -0
- package/esm2022/tooltip/watt-tooltip.directive.js.map +1 -0
- package/{fesm2022/energinet-watt-utils-css.mjs → esm2022/utils/css/css-custom-properties.service.js} +4 -30
- package/esm2022/utils/css/css-custom-properties.service.js.map +1 -0
- package/esm2022/utils/css/energinet-watt-utils-css.js +5 -0
- package/esm2022/utils/css/energinet-watt-utils-css.js.map +1 -0
- package/esm2022/utils/css/index.js +20 -0
- package/esm2022/utils/css/index.js.map +1 -0
- package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js +5 -0
- package/esm2022/utils/intersection-observer/energinet-watt-utils-intersection-observer.js.map +1 -0
- package/esm2022/utils/intersection-observer/index.js +20 -0
- package/esm2022/utils/intersection-observer/index.js.map +1 -0
- package/{fesm2022/energinet-watt-utils-intersection-observer.mjs → esm2022/utils/intersection-observer/watt-intersection-observer.service.js} +5 -31
- package/esm2022/utils/intersection-observer/watt-intersection-observer.service.js.map +1 -0
- package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js +5 -0
- package/esm2022/utils/resize-observer/energinet-watt-utils-resize-observer.js.map +1 -0
- package/esm2022/utils/resize-observer/index.js +21 -0
- package/esm2022/utils/resize-observer/index.js.map +1 -0
- package/esm2022/utils/resize-observer/watt-resize-observer.directive.js +53 -0
- package/esm2022/utils/resize-observer/watt-resize-observer.directive.js.map +1 -0
- package/esm2022/utils/resize-observer/watt-resize-observer.service.js +67 -0
- package/esm2022/utils/resize-observer/watt-resize-observer.service.js.map +1 -0
- package/esm2022/validation-message/energinet-watt-validation-message.js +5 -0
- package/esm2022/validation-message/energinet-watt-validation-message.js.map +1 -0
- package/esm2022/validation-message/index.js +20 -0
- package/esm2022/validation-message/index.js.map +1 -0
- package/{fesm2022/energinet-watt-validation-message.mjs → esm2022/validation-message/watt-validation-message.component.js} +5 -31
- package/esm2022/validation-message/watt-validation-message.component.js.map +1 -0
- package/esm2022/validators/energinet-watt-validators.js +5 -0
- package/esm2022/validators/energinet-watt-validators.js.map +1 -0
- package/esm2022/validators/index.js +20 -0
- package/esm2022/validators/index.js.map +1 -0
- package/{fesm2022/energinet-watt-validators.mjs → esm2022/validators/watt-range.validators.js} +2 -28
- package/esm2022/validators/watt-range.validators.js.map +1 -0
- package/esm2022/vater/energinet-watt-vater.js +5 -0
- package/esm2022/vater/energinet-watt-vater.js.map +1 -0
- package/esm2022/vater/index.js +24 -0
- package/esm2022/vater/index.js.map +1 -0
- package/esm2022/vater/types.js +20 -0
- package/esm2022/vater/types.js.map +1 -0
- package/esm2022/vater/vater-flex.component.js +49 -0
- package/esm2022/vater/vater-flex.component.js.map +1 -0
- package/esm2022/vater/vater-layout.directive.js +65 -0
- package/esm2022/vater/vater-layout.directive.js.map +1 -0
- package/esm2022/vater/vater-spacer.component.js +29 -0
- package/esm2022/vater/vater-spacer.component.js.map +1 -0
- package/esm2022/vater/vater-stack.component.js +42 -0
- package/esm2022/vater/vater-stack.component.js.map +1 -0
- package/esm2022/vater/vater-utility.directive.js +53 -0
- package/esm2022/vater/vater-utility.directive.js.map +1 -0
- package/esm2022/year-field/energinet-watt-year-field.js +5 -0
- package/esm2022/year-field/energinet-watt-year-field.js.map +1 -0
- package/esm2022/year-field/index.js +20 -0
- package/esm2022/year-field/index.js.map +1 -0
- package/{fesm2022/energinet-watt-year-field.mjs → esm2022/year-field/watt-year-field.component.js} +13 -39
- package/esm2022/year-field/watt-year-field.component.js.map +1 -0
- package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js +5 -0
- package/esm2022/yearmonth-field/energinet-watt-yearmonth-field.js.map +1 -0
- package/esm2022/yearmonth-field/index.js +21 -0
- package/esm2022/yearmonth-field/index.js.map +1 -0
- package/{fesm2022/energinet-watt-yearmonth-field.mjs → esm2022/yearmonth-field/watt-yearmonth-field.component.js} +13 -79
- package/esm2022/yearmonth-field/watt-yearmonth-field.component.js.map +1 -0
- package/esm2022/yearmonth-field/year-month.js +42 -0
- package/esm2022/yearmonth-field/year-month.js.map +1 -0
- package/expandable-card/energinet-watt-expandable-card.d.ts +5 -0
- package/expandable-card/index.d.ts +19 -0
- package/{types/energinet-watt-expandable-card.d.ts → expandable-card/watt-expandable-card.component.d.ts} +9 -31
- package/field/energinet-watt-field.d.ts +5 -0
- package/field/index.d.ts +21 -0
- package/field/watt-field-error.component.d.ts +5 -0
- package/field/watt-field-hint.component.d.ts +5 -0
- package/field/watt-field-intl.service.d.ts +8 -0
- package/field/watt-field-warning.component.d.ts +5 -0
- package/field/watt-field.component.d.ts +53 -0
- package/file-field/energinet-watt-file-field.d.ts +5 -0
- package/file-field/index.d.ts +17 -0
- package/file-field/watt-file-field.component.d.ts +10 -0
- package/icon/energinet-watt-icon.d.ts +5 -0
- package/icon/flags/energinet-watt-icon-flags.d.ts +5 -0
- package/icon/flags/index.d.ts +26 -0
- package/icon/flags/watt-flag-ch.d.ts +5 -0
- package/icon/flags/watt-flag-de.d.ts +5 -0
- package/icon/flags/watt-flag-dk.d.ts +5 -0
- package/icon/flags/watt-flag-fi.d.ts +5 -0
- package/icon/flags/watt-flag-gb.d.ts +5 -0
- package/icon/flags/watt-flag-nl.d.ts +5 -0
- package/icon/flags/watt-flag-no.d.ts +5 -0
- package/icon/flags/watt-flag-pl.d.ts +5 -0
- package/icon/flags/watt-flag-se.d.ts +5 -0
- package/icon/flags/watt-flag.d.ts +13 -0
- package/icon/icon.component.d.ts +20 -0
- package/icon/icons.d.ts +97 -0
- package/icon/index.d.ts +17 -0
- package/index.d.ts +17 -0
- package/menu/energinet-watt-menu.d.ts +5 -0
- package/menu/index.d.ts +25 -0
- package/menu/watt-menu-group.component.d.ts +9 -0
- package/menu/watt-menu-item.component.d.ts +9 -0
- package/menu/watt-menu-trigger.directive.d.ts +36 -0
- package/menu/watt-menu.component.d.ts +44 -0
- package/modal/energinet-watt-modal.d.ts +5 -0
- package/modal/index.d.ts +18 -0
- package/modal/watt-modal.component.d.ts +84 -0
- package/modal/watt-modal.service.d.ts +56 -0
- package/package.json +92 -92
- package/paginator/energinet-watt-paginator.d.ts +5 -0
- package/paginator/index.d.ts +18 -0
- package/paginator/watt-paginator-intl.service.d.ts +14 -0
- package/paginator/watt-paginator.component.d.ts +53 -0
- package/phone-field/energinet-watt-phone-field.d.ts +5 -0
- package/phone-field/index.d.ts +18 -0
- package/phone-field/watt-phone-field-intl.service.d.ts +17 -0
- package/phone-field/watt-phone-field.component.d.ts +75 -0
- package/picker/__shared/energinet-watt-picker-__shared.d.ts +5 -0
- package/picker/__shared/index.d.ts +19 -0
- package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.d.ts +34 -0
- package/{types/energinet-watt-picker-__shared.d.ts → picker/__shared/watt-picker-base.d.ts} +11 -34
- package/picker/__shared/watt-picker-value.d.ts +18 -0
- package/picker/datepicker/energinet-watt-picker-datepicker.d.ts +5 -0
- package/picker/datepicker/index.d.ts +19 -0
- package/picker/datepicker/watt-datepicker-intl.service.d.ts +7 -0
- package/picker/datepicker/watt-datepicker.component.d.ts +95 -0
- package/picker/timepicker/energinet-watt-picker-timepicker.d.ts +5 -0
- package/picker/timepicker/index.d.ts +17 -0
- package/picker/timepicker/maskito-time-range-mask.d.ts +18 -0
- package/{types/energinet-watt-picker-timepicker.d.ts → picker/timepicker/watt-timepicker.component.d.ts} +12 -16
- package/progress-tracker/energinet-watt-progress-tracker.d.ts +5 -0
- package/progress-tracker/index.d.ts +20 -0
- package/progress-tracker/watt-progress-tracker-step.component.d.ts +10 -0
- package/progress-tracker/watt-progress-tracker.component.d.ts +5 -0
- package/query-params/energinet-watt-query-params.d.ts +5 -0
- package/query-params/index.d.ts +17 -0
- package/{types/energinet-watt-query-params.d.ts → query-params/watt-query-params.directive.d.ts} +2 -5
- package/radio/energinet-watt-radio.d.ts +5 -0
- package/radio/index.d.ts +18 -0
- package/radio/watt-radio-group.component.d.ts +47 -0
- package/radio/watt-radio.component.d.ts +23 -0
- package/search/energinet-watt-search.d.ts +5 -0
- package/search/index.d.ts +17 -0
- package/search/watt-search.component.d.ts +44 -0
- package/segmented-buttons/energinet-watt-segmented-buttons.d.ts +5 -0
- package/segmented-buttons/index.d.ts +21 -0
- package/segmented-buttons/watt-segmented-button.component.d.ts +25 -0
- package/segmented-buttons/watt-segmented-buttons.component.d.ts +18 -0
- package/shell/energinet-watt-shell.d.ts +5 -0
- package/shell/index.d.ts +18 -0
- package/shell/nav-list/index.d.ts +18 -0
- package/shell/nav-list/watt-expand-on-active-link.directive.d.ts +9 -0
- package/shell/nav-list/watt-nav-list-item.component.d.ts +16 -0
- package/shell/nav-list/watt-nav-list.component.d.ts +12 -0
- package/shell/shell.component.d.ts +17 -0
- package/slide-toggle/energinet-watt-slide-toggle.d.ts +5 -0
- package/slide-toggle/index.d.ts +17 -0
- package/slide-toggle/watt-slide-toggle.component.d.ts +33 -0
- package/slider/energinet-watt-slider.d.ts +5 -0
- package/slider/index.d.ts +17 -0
- package/slider/watt-slider.component.d.ts +47 -0
- package/spinner/energinet-watt-spinner.d.ts +5 -0
- package/spinner/index.d.ts +17 -0
- package/spinner/watt-spinner.component.d.ts +15 -0
- package/stepper/energinet-watt-stepper.d.ts +5 -0
- package/stepper/index.d.ts +18 -0
- package/stepper/watt-stepper-step.component.d.ts +35 -0
- package/stepper/watt-stepper.component.d.ts +40 -0
- package/table/energinet-watt-table.d.ts +5 -0
- package/table/index.d.ts +18 -0
- package/table/watt-table-data-source.d.ts +39 -0
- package/table/watt-table-expand-animation.d.ts +18 -0
- package/{types/energinet-watt-table.d.ts → table/watt-table.component.d.ts} +49 -72
- package/tabs/energinet-watt-tabs.d.ts +5 -0
- package/tabs/index.d.ts +26 -0
- package/tabs/watt-link-tab.component.d.ts +7 -0
- package/tabs/watt-link-tabs.component.d.ts +7 -0
- package/tabs/watt-tab.component.d.ts +26 -0
- package/tabs/watt-tabs-action.component.d.ts +5 -0
- package/tabs/watt-tabs.component.d.ts +36 -0
- package/text-field/energinet-watt-text-field.d.ts +5 -0
- package/text-field/index.d.ts +17 -0
- package/text-field/watt-text-field.component.d.ts +80 -0
- package/textarea-field/energinet-watt-textarea-field.d.ts +5 -0
- package/textarea-field/index.d.ts +17 -0
- package/textarea-field/watt-textarea-field.component.d.ts +28 -0
- package/toast/energinet-watt-toast.d.ts +5 -0
- package/toast/index.d.ts +19 -0
- package/{types/energinet-watt-toast.d.ts → toast/watt-toast.component.d.ts} +5 -19
- package/toast/watt-toast.service.d.ts +12 -0
- package/tooltip/energinet-watt-tooltip.d.ts +5 -0
- package/tooltip/index.d.ts +17 -0
- package/tooltip/watt-tooltip.component.d.ts +26 -0
- package/tooltip/watt-tooltip.directive.d.ts +16 -0
- package/{types/energinet-watt-utils-css.d.ts → utils/css/css-custom-properties.service.d.ts} +2 -5
- package/utils/css/energinet-watt-utils-css.d.ts +5 -0
- package/utils/css/index.d.ts +17 -0
- package/utils/intersection-observer/energinet-watt-utils-intersection-observer.d.ts +5 -0
- package/utils/intersection-observer/index.d.ts +17 -0
- package/{types/energinet-watt-utils-intersection-observer.d.ts → utils/intersection-observer/watt-intersection-observer.service.d.ts} +3 -7
- package/utils/resize-observer/energinet-watt-utils-resize-observer.d.ts +5 -0
- package/utils/resize-observer/index.d.ts +18 -0
- package/{types/energinet-watt-utils-resize-observer.d.ts → utils/resize-observer/watt-resize-observer.directive.d.ts} +3 -30
- package/utils/resize-observer/watt-resize-observer.service.d.ts +22 -0
- package/validation-message/energinet-watt-validation-message.d.ts +5 -0
- package/validation-message/index.d.ts +17 -0
- package/validation-message/watt-validation-message.component.d.ts +50 -0
- package/validators/energinet-watt-validators.d.ts +5 -0
- package/validators/index.d.ts +17 -0
- package/{types/energinet-watt-validators.d.ts → validators/watt-range.validators.d.ts} +2 -6
- package/vater/energinet-watt-vater.d.ts +5 -0
- package/vater/index.d.ts +21 -0
- package/vater/types.d.ts +22 -0
- package/vater/vater-flex.component.d.ts +14 -0
- package/vater/vater-layout.directive.d.ts +24 -0
- package/vater/vater-spacer.component.d.ts +5 -0
- package/vater/vater-stack.component.d.ts +7 -0
- package/vater/vater-utility.directive.d.ts +17 -0
- package/year-field/energinet-watt-year-field.d.ts +5 -0
- package/year-field/index.d.ts +17 -0
- package/year-field/watt-year-field.component.d.ts +56 -0
- package/yearmonth-field/energinet-watt-yearmonth-field.d.ts +5 -0
- package/yearmonth-field/index.d.ts +18 -0
- package/yearmonth-field/watt-yearmonth-field.component.d.ts +58 -0
- package/yearmonth-field/year-month.d.ts +20 -0
- package/fesm2022/energinet-watt-badge.mjs.map +0 -1
- package/fesm2022/energinet-watt-breadcrumbs.mjs.map +0 -1
- package/fesm2022/energinet-watt-button.mjs.map +0 -1
- package/fesm2022/energinet-watt-card.mjs.map +0 -1
- package/fesm2022/energinet-watt-checkbox.mjs.map +0 -1
- package/fesm2022/energinet-watt-chip.mjs +0 -694
- package/fesm2022/energinet-watt-chip.mjs.map +0 -1
- package/fesm2022/energinet-watt-clipboard.mjs.map +0 -1
- package/fesm2022/energinet-watt-code.mjs.map +0 -1
- package/fesm2022/energinet-watt-core-breakpoints.mjs +0 -97
- package/fesm2022/energinet-watt-core-breakpoints.mjs.map +0 -1
- package/fesm2022/energinet-watt-core-color.mjs +0 -124
- package/fesm2022/energinet-watt-core-color.mjs.map +0 -1
- package/fesm2022/energinet-watt-core-date.mjs +0 -256
- package/fesm2022/energinet-watt-core-date.mjs.map +0 -1
- package/fesm2022/energinet-watt-data.mjs.map +0 -1
- package/fesm2022/energinet-watt-datetime-field.mjs.map +0 -1
- package/fesm2022/energinet-watt-description-list.mjs.map +0 -1
- package/fesm2022/energinet-watt-drawer.mjs.map +0 -1
- package/fesm2022/energinet-watt-dropdown.mjs.map +0 -1
- package/fesm2022/energinet-watt-dropzone.mjs.map +0 -1
- package/fesm2022/energinet-watt-empty-state.mjs.map +0 -1
- package/fesm2022/energinet-watt-expandable-card.mjs.map +0 -1
- package/fesm2022/energinet-watt-field.mjs.map +0 -1
- package/fesm2022/energinet-watt-file-field.mjs.map +0 -1
- package/fesm2022/energinet-watt-icon-flags.mjs +0 -547
- package/fesm2022/energinet-watt-icon-flags.mjs.map +0 -1
- package/fesm2022/energinet-watt-icon.mjs.map +0 -1
- package/fesm2022/energinet-watt-menu.mjs +0 -282
- package/fesm2022/energinet-watt-menu.mjs.map +0 -1
- package/fesm2022/energinet-watt-modal.mjs.map +0 -1
- package/fesm2022/energinet-watt-paginator.mjs.map +0 -1
- package/fesm2022/energinet-watt-phone-field.mjs.map +0 -1
- package/fesm2022/energinet-watt-picker-__shared.mjs +0 -292
- package/fesm2022/energinet-watt-picker-__shared.mjs.map +0 -1
- package/fesm2022/energinet-watt-picker-datepicker.mjs.map +0 -1
- package/fesm2022/energinet-watt-picker-timepicker.mjs.map +0 -1
- package/fesm2022/energinet-watt-progress-tracker.mjs.map +0 -1
- package/fesm2022/energinet-watt-query-params.mjs.map +0 -1
- package/fesm2022/energinet-watt-radio.mjs.map +0 -1
- package/fesm2022/energinet-watt-search.mjs.map +0 -1
- package/fesm2022/energinet-watt-segmented-buttons.mjs.map +0 -1
- package/fesm2022/energinet-watt-shell.mjs +0 -303
- package/fesm2022/energinet-watt-shell.mjs.map +0 -1
- package/fesm2022/energinet-watt-slide-toggle.mjs.map +0 -1
- package/fesm2022/energinet-watt-slider.mjs.map +0 -1
- package/fesm2022/energinet-watt-spinner.mjs.map +0 -1
- package/fesm2022/energinet-watt-stepper.mjs.map +0 -1
- package/fesm2022/energinet-watt-table.mjs.map +0 -1
- package/fesm2022/energinet-watt-tabs.mjs +0 -254
- package/fesm2022/energinet-watt-tabs.mjs.map +0 -1
- package/fesm2022/energinet-watt-text-field.mjs.map +0 -1
- package/fesm2022/energinet-watt-textarea-field.mjs.map +0 -1
- package/fesm2022/energinet-watt-toast.mjs.map +0 -1
- package/fesm2022/energinet-watt-tooltip.mjs.map +0 -1
- package/fesm2022/energinet-watt-utils-css.mjs.map +0 -1
- package/fesm2022/energinet-watt-utils-intersection-observer.mjs.map +0 -1
- package/fesm2022/energinet-watt-utils-resize-observer.mjs +0 -143
- package/fesm2022/energinet-watt-utils-resize-observer.mjs.map +0 -1
- package/fesm2022/energinet-watt-validation-message.mjs.map +0 -1
- package/fesm2022/energinet-watt-validators.mjs.map +0 -1
- package/fesm2022/energinet-watt-vater.mjs +0 -248
- package/fesm2022/energinet-watt-vater.mjs.map +0 -1
- package/fesm2022/energinet-watt-year-field.mjs.map +0 -1
- package/fesm2022/energinet-watt-yearmonth-field.mjs.map +0 -1
- package/fesm2022/energinet-watt.mjs.map +0 -1
- package/types/energinet-watt-badge.d.ts +0 -19
- package/types/energinet-watt-button.d.ts +0 -23
- package/types/energinet-watt-card.d.ts +0 -24
- package/types/energinet-watt-checkbox.d.ts +0 -20
- package/types/energinet-watt-chip.d.ts +0 -104
- package/types/energinet-watt-clipboard.d.ts +0 -22
- package/types/energinet-watt-code.d.ts +0 -56
- package/types/energinet-watt-core-date.d.ts +0 -154
- package/types/energinet-watt-data.d.ts +0 -61
- package/types/energinet-watt-datetime-field.d.ts +0 -44
- package/types/energinet-watt-description-list.d.ts +0 -32
- package/types/energinet-watt-dropdown.d.ts +0 -167
- package/types/energinet-watt-dropzone.d.ts +0 -67
- package/types/energinet-watt-empty-state.d.ts +0 -39
- package/types/energinet-watt-field.d.ts +0 -62
- package/types/energinet-watt-file-field.d.ts +0 -13
- package/types/energinet-watt-icon-flags.d.ts +0 -61
- package/types/energinet-watt-icon.d.ts +0 -119
- package/types/energinet-watt-menu.d.ts +0 -119
- package/types/energinet-watt-modal.d.ts +0 -127
- package/types/energinet-watt-paginator.d.ts +0 -54
- package/types/energinet-watt-phone-field.d.ts +0 -79
- package/types/energinet-watt-picker-datepicker.d.ts +0 -90
- package/types/energinet-watt-progress-tracker.d.ts +0 -37
- package/types/energinet-watt-radio.d.ts +0 -71
- package/types/energinet-watt-search.d.ts +0 -47
- package/types/energinet-watt-segmented-buttons.d.ts +0 -48
- package/types/energinet-watt-shell.d.ts +0 -47
- package/types/energinet-watt-slide-toggle.d.ts +0 -20
- package/types/energinet-watt-slider.d.ts +0 -35
- package/types/energinet-watt-spinner.d.ts +0 -18
- package/types/energinet-watt-stepper.d.ts +0 -59
- package/types/energinet-watt-tabs.d.ts +0 -68
- package/types/energinet-watt-text-field.d.ts +0 -67
- package/types/energinet-watt-textarea-field.d.ts +0 -31
- package/types/energinet-watt-tooltip.d.ts +0 -20
- package/types/energinet-watt-validation-message.d.ts +0 -38
- package/types/energinet-watt-vater.d.ts +0 -87
- package/types/energinet-watt-year-field.d.ts +0 -60
- package/types/energinet-watt-yearmonth-field.d.ts +0 -64
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { viewChild, ViewEncapsulation, Component, contentChildren } from '@angular/core';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
5
|
-
import { outputFromObservable } from '@angular/core/rxjs-interop';
|
|
6
|
-
import { WattIconComponent } from '@energinet/watt/icon';
|
|
7
|
-
|
|
8
1
|
//#region License
|
|
9
2
|
/**
|
|
10
3
|
* @license
|
|
@@ -23,7 +16,13 @@ import { WattIconComponent } from '@energinet/watt/icon';
|
|
|
23
16
|
* limitations under the License.
|
|
24
17
|
*/
|
|
25
18
|
//#endregion
|
|
26
|
-
|
|
19
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
20
|
+
import { Component, ViewEncapsulation, contentChildren, viewChild, } from '@angular/core';
|
|
21
|
+
import { Subject } from 'rxjs';
|
|
22
|
+
import { outputFromObservable } from '@angular/core/rxjs-interop';
|
|
23
|
+
import { WattIconComponent } from '@energinet/watt/icon';
|
|
24
|
+
import * as i0 from "@angular/core";
|
|
25
|
+
export class WattBreadcrumbComponent {
|
|
27
26
|
templateRef = viewChild.required('templateRef');
|
|
28
27
|
// Used to determine if the breadcrumb is interactive or not
|
|
29
28
|
actionEmitter = new Subject();
|
|
@@ -43,7 +42,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
43
42
|
* Usage:
|
|
44
43
|
* `import { WATT_BREADCRUMBS } from '@energinet/watt/breadcrumbs';`
|
|
45
44
|
*/
|
|
46
|
-
class WattBreadcrumbsComponent {
|
|
45
|
+
export class WattBreadcrumbsComponent {
|
|
47
46
|
/**
|
|
48
47
|
* @ignore
|
|
49
48
|
*/
|
|
@@ -87,30 +86,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
87
86
|
</nav>
|
|
88
87
|
`, styles: ["watt-breadcrumbs{display:block;font-size:.875rem;line-height:1.25rem;font-weight:400;text-transform:none;letter-spacing:0}watt-breadcrumbs nav,watt-breadcrumbs .watt-breadcrumb{align-items:center;display:flex}watt-breadcrumbs .watt-breadcrumb{cursor:default}watt-breadcrumbs .watt-breadcrumb.interactive{cursor:pointer}watt-breadcrumbs .watt-breadcrumb:not(:last-child){color:var(--watt-color-primary);text-decoration:none}watt-breadcrumbs mat-icon:hover{color:var(--watt-color-primary-dark)}watt-breadcrumbs mat-icon{color:var(--watt-color-neutral-black)}\n"] }]
|
|
89
88
|
}], propDecorators: { breadcrumbs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => WattBreadcrumbComponent), { isSignal: true }] }] } });
|
|
90
|
-
const WATT_BREADCRUMBS = [WattBreadcrumbsComponent, WattBreadcrumbComponent];
|
|
91
|
-
|
|
92
|
-
//#region License
|
|
93
|
-
/**
|
|
94
|
-
* @license
|
|
95
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
96
|
-
*
|
|
97
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
98
|
-
* you may not use this file except in compliance with the License.
|
|
99
|
-
* You may obtain a copy of the License at
|
|
100
|
-
*
|
|
101
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
102
|
-
*
|
|
103
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
104
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
105
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
106
|
-
* See the License for the specific language governing permissions and
|
|
107
|
-
* limitations under the License.
|
|
108
|
-
*/
|
|
109
|
-
//#endregion
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Generated bundle index. Do not edit.
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
|
-
export { WATT_BREADCRUMBS, WattBreadcrumbComponent, WattBreadcrumbsComponent };
|
|
116
|
-
//# sourceMappingURL=energinet-watt-breadcrumbs.mjs.map
|
|
89
|
+
export const WATT_BREADCRUMBS = [WattBreadcrumbsComponent, WattBreadcrumbComponent];
|
|
90
|
+
//# sourceMappingURL=watt-breadcrumbs.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watt-breadcrumbs.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/breadcrumbs/watt-breadcrumbs.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACL,SAAS,EAET,iBAAiB,EACjB,eAAe,EACf,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;;AAOzD,MAAM,OAAO,uBAAuB;IAClC,WAAW,GAAG,SAAS,CAAC,QAAQ,CAAuB,aAAa,CAAC,CAAC;IACtE,4DAA4D;IAC5D,aAAa,GAAG,IAAI,OAAO,EAAW,CAAC;IACvC,KAAK,GAAG,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;wGAJtC,uBAAuB;4FAAvB,uBAAuB,oOAFxB,wDAAwD;;4FAEvD,uBAAuB;kBALnC,SAAS;mBAAC;oBACT,QAAQ,EAAE,iBAAiB;oBAC3B,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,QAAQ,EAAE,wDAAwD;iBACnE;yEAEwD,aAAa;AAMtE;;;GAGG;AAwBH,MAAM,OAAO,wBAAwB;IACnC;;OAEG;IACH,WAAW,GAAG,eAAe,CAA0B,uBAAuB,uDAAC,CAAC;wGAJrE,wBAAwB;4FAAxB,wBAAwB,wGAIoB,uBAAuB,6CAtBpE;;;;;;;;;;;;;;;;GAgBT,wnBAnBS,gBAAgB,oJAAE,iBAAiB;;4FAqBlC,wBAAwB;kBAvBpC,SAAS;oCACO,iBAAiB,CAAC,IAAI,WAC5B,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,YACpC,kBAAkB,YAElB;;;;;;;;;;;;;;;;GAgBT;mGAMsD,uBAAuB;AAGhF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,wBAAwB,EAAE,uBAAuB,CAAU,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 { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n TemplateRef,\n ViewEncapsulation,\n contentChildren,\n viewChild,\n} from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { outputFromObservable } from '@angular/core/rxjs-interop';\nimport { WattIconComponent } from '@energinet/watt/icon';\n\n@Component({\n selector: 'watt-breadcrumb',\n encapsulation: ViewEncapsulation.None,\n template: `<ng-template #templateRef><ng-content /></ng-template>`,\n})\nexport class WattBreadcrumbComponent {\n templateRef = viewChild.required<TemplateRef<unknown>>('templateRef');\n // Used to determine if the breadcrumb is interactive or not\n actionEmitter = new Subject<unknown>();\n click = outputFromObservable(this.actionEmitter);\n}\n\n/**\n * Usage:\n * `import { WATT_BREADCRUMBS } from '@energinet/watt/breadcrumbs';`\n */\n@Component({\n encapsulation: ViewEncapsulation.None,\n imports: [NgTemplateOutlet, WattIconComponent],\n selector: 'watt-breadcrumbs',\n styleUrls: ['./watt-breadcrumbs.component.scss'],\n template: `\n <nav>\n @for (breadcrumb of breadcrumbs(); track breadcrumb; let isLast = $last) {\n <span\n class=\"watt-breadcrumb\"\n (click)=\"breadcrumb.actionEmitter.next($event)\"\n [class.interactive]=\"breadcrumb.actionEmitter.observed\"\n [attr.role]=\"breadcrumb.actionEmitter.observed ? 'link' : null\"\n >\n <ng-container *ngTemplateOutlet=\"breadcrumb.templateRef()\" />\n @if (!isLast) {\n <watt-icon name=\"right\" />\n }\n </span>\n }\n </nav>\n `,\n})\nexport class WattBreadcrumbsComponent {\n /**\n * @ignore\n */\n breadcrumbs = contentChildren<WattBreadcrumbComponent>(WattBreadcrumbComponent);\n}\n\nexport const WATT_BREADCRUMBS = [WattBreadcrumbsComponent, WattBreadcrumbComponent] as const;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-button.js","sourceRoot":"","sources":["../../../../libs/watt/package/button/energinet-watt-button.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { WattButtonComponent } from './watt-button.component';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/button/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,mBAAmB,EAAE,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 { WattButtonComponent } from './watt-button.component';\n"]}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, computed, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/material/button';
|
|
4
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
-
import { WattSpinnerComponent } from '@energinet/watt/spinner';
|
|
6
|
-
import { WattIconComponent } from '@energinet/watt/icon';
|
|
7
|
-
|
|
8
1
|
//#region License
|
|
9
2
|
/**
|
|
10
3
|
* @license
|
|
@@ -23,8 +16,14 @@ import { WattIconComponent } from '@energinet/watt/icon';
|
|
|
23
16
|
* limitations under the License.
|
|
24
17
|
*/
|
|
25
18
|
//#endregion
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
import { input, computed, Component, ViewEncapsulation, ChangeDetectionStrategy, } from '@angular/core';
|
|
20
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
21
|
+
import { WattSpinnerComponent } from '@energinet/watt/spinner';
|
|
22
|
+
import { WattIconComponent } from '@energinet/watt/icon';
|
|
23
|
+
import * as i0 from "@angular/core";
|
|
24
|
+
import * as i1 from "@angular/material/button";
|
|
25
|
+
export const WattButtonTypes = ['primary', 'secondary', 'text', 'icon', 'selection'];
|
|
26
|
+
export class WattButtonComponent {
|
|
28
27
|
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
29
28
|
variant = input('primary', ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
30
29
|
size = input('medium', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
@@ -95,29 +94,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
95
94
|
</button>
|
|
96
95
|
`, styles: [":root{--watt-button-color: var(--watt-color-primary);--watt-button-text-hover-color: var(--watt-color-primary-dark);--watt-button-text-focus-color: var(--watt-color-primary);--watt-button-text-transform: none;--watt-button-primary-disabled-color: var(--watt-color-neutral-grey-500);--mat-button-text-with-icon-horizontal-padding: var(--watt-space-m)}watt-button{display:inline-block}watt-button.watt-button--primary.watt-button--disabled .mat-mdc-button.mat-primary{background-color:transparent;color:var(--watt-button-primary-disabled-color)}watt-button.watt-button--primary watt-spinner{--watt-spinner-circle-color: var(--watt-color-neutral-white)}watt-button.watt-button--primary .mat-mdc-button.mat-primary{color:var(--watt-color-primary-contrast);background-color:var(--watt-color-primary);border:1px solid var(--watt-color-neutral-grey-300);--mat-button-text-label-text-color: var(--watt-color-primary-contrast)}watt-button.watt-button--primary .mat-mdc-button.mat-primary:focus-visible{background:var(--watt-color-primary-dark);outline:2px solid var(--watt-color-secondary)}watt-button.watt-button--primary .mat-mdc-button.mat-primary:hover,watt-button.watt-button--primary .mat-mdc-button.mat-primary:focus-visible{background:var(--watt-color-primary-dark)}watt-button.watt-button--secondary.watt-button--disabled .mat-mdc-button.mat-secondary{background-color:transparent;border-color:var(--watt-color-neutral-grey-300);color:var(--watt-color-neutral-grey-500)}watt-button.watt-button--secondary .mat-mdc-button.mat-secondary{border:1px solid var(--watt-color-primary);color:var(--watt-color-primary)}watt-button.watt-button--secondary .mat-mdc-button.mat-secondary:focus-visible{background:var(--watt-color-primary-light);outline:1px solid var(--watt-color-primary)}watt-button.watt-button--secondary .mat-mdc-button.mat-secondary:hover,watt-button.watt-button--secondary .mat-mdc-button.mat-secondary:focus-visible{background:var(--watt-color-primary-light)}watt-button.watt-button--text.watt-button--disabled .mat-mdc-button.mat-text{background-color:transparent;color:var(--watt-color-neutral-grey-500)}watt-button.watt-button--text .mat-mdc-button.mat-text{color:var(--watt-button-color);text-transform:var(--watt-button-text-transform);outline:2px solid transparent}watt-button.watt-button--text .mat-mdc-button.mat-text:focus-visible{color:var(--watt-button-text-hover-color);outline:2px solid var(--watt-button-text-focus-color)}watt-button.watt-button--text .mat-mdc-button.mat-text:hover,watt-button.watt-button--text .mat-mdc-button.mat-text:focus-visible{color:var(--watt-button-text-hover-color)}watt-button.watt-button--selection .mat-mdc-button.mat-selection{font-size:1rem;line-height:1.5rem;font-weight:400;text-transform:none;letter-spacing:0;border-radius:4px;border:1px solid var(--watt-color-neutral-grey-500)}watt-button.watt-button--selection .mat-mdc-button.mat-selection:hover{background-color:var(--watt-color-neutral-grey-100)}watt-button.watt-button--selection .mat-mdc-button.mat-selection.mat-mdc-button{width:100%;height:56px}watt-button.watt-button--selection .mat-mdc-button.mat-selection.mat-mdc-button .mdc-button__label{justify-content:flex-end;align-items:start;width:100%}watt-button.watt-button--selection .mat-mdc-button.mat-selection.mat-mdc-button .mdc-button__label .content-wrapper{width:100%;display:flex}watt-button.watt-button--selection .mat-mdc-button.mat-selection.mat-mdc-button .mdc-button__label .content-wrapper watt-icon{order:2;margin-left:auto}watt-button.watt-button--icon.watt-button--disabled .mat-mdc-button.mat-icon{background-color:transparent;color:var(--watt-color-neutral-grey-500)}watt-button.watt-button--icon .mat-mdc-button.mat-icon{color:var(--watt-color-primary);padding:var(--watt-space-s)}watt-button.watt-button--icon .mat-mdc-button.mat-icon:focus-visible{color:var(--watt-color-primary-dark);outline:2px solid var(--watt-color-primary)}watt-button.watt-button--icon .mat-mdc-button.mat-icon:hover,watt-button.watt-button--icon .mat-mdc-button.mat-icon:focus-visible{color:var(--watt-color-primary-dark)}watt-button.watt-button--icon .mat-mdc-button.mat-icon.mat-button{min-width:44px}watt-button .mdc-button{font-weight:600;font-size:1rem;line-height:1.5rem;padding:var(--watt-space-s) var(--watt-space-m)}watt-button .mdc-button.mat-mdc-button{min-width:44px;height:44px;--mat-button-text-label-text-tracking: 0;--mat-button-text-state-layer-color: var(--watt-ripple-color);--mat-button-text-ripple-color: var(--watt-ripple-color)}watt-button .mdc-button watt-spinner{position:absolute}watt-button .mdc-button .mat-button-focus-overlay{background:transparent}watt-button .mdc-button .mdc-button__label{display:flex;justify-content:center;align-items:center}watt-button .mdc-button .mdc-button__label .content-wrapper{display:flex;gap:var(--watt-space-s);white-space:nowrap}watt-button .mdc-button .mdc-button__label .content-wrapper--loading{visibility:hidden}watt-button.watt-button-size--small .mdc-button.mat-mdc-button{height:var(--watt-space-l)}\n"] }]
|
|
97
96
|
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], formId: [{ type: i0.Input, args: [{ isSignal: true, alias: "formId", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }] } });
|
|
98
|
-
|
|
99
|
-
//#region License
|
|
100
|
-
/**
|
|
101
|
-
* @license
|
|
102
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
103
|
-
*
|
|
104
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
105
|
-
* you may not use this file except in compliance with the License.
|
|
106
|
-
* You may obtain a copy of the License at
|
|
107
|
-
*
|
|
108
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
109
|
-
*
|
|
110
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
111
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
112
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
113
|
-
* See the License for the specific language governing permissions and
|
|
114
|
-
* limitations under the License.
|
|
115
|
-
*/
|
|
116
|
-
//#endregion
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Generated bundle index. Do not edit.
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
|
-
export { WattButtonComponent };
|
|
123
|
-
//# sourceMappingURL=energinet-watt-button.mjs.map
|
|
97
|
+
//# sourceMappingURL=watt-button.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watt-button.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/button/watt-button.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,KAAK,EACL,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAY,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;;;AAEnE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAU,CAAC;AAuC9F,MAAM,OAAO,mBAAmB;IAC9B,IAAI,GAAG,KAAK,0DAAY,CAAC;IACzB,OAAO,GAAG,KAAK,CAAoB,SAAS,mDAAC,CAAC;IAC9C,IAAI,GAAG,KAAK,CAAiB,QAAQ,gDAAC,CAAC;IACvC,IAAI,GAAG,KAAK,CAAiB,QAAQ,gDAAC,CAAC;IACvC,MAAM,GAAG,KAAK,CAAgB,IAAI,kDAAC,CAAC;IACpC,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC,CAAC;IACxB,OAAO,GAAG,KAAK,CAAC,KAAK,mDAAC,CAAC;IAEvB,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,gBAAgB,IAAI,CAAC,OAAO,EAAE,sBAAsB,IAAI,CAAC,IAAI,EAAE,EAAE,mDAAC,CAAC;IAE5F,0FAA0F;IAC1F,4DAA4D;IAC5D,kGAAkG;IAClG,mEAAmE;IACnE,aAAa,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,yDAAC,CAAC;IAEpE;;OAEG;IACH,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,mDAAC,CAAC;wGApB7B,mBAAmB;4FAAnB,mBAAmB,kjCAvBpB;;;;;;;;;;;;;;;;;;;;;GAqBT,y/JAtBS,iBAAiB,kGAAE,oBAAoB,6FAAE,eAAe;;4FAwBvD,mBAAmB;kBAlC/B,SAAS;+BACE,aAAa,iBACR,iBAAiB,CAAC,IAAI,mBACpB,uBAAuB,CAAC,MAAM,QAEzC;wBACJ,SAAS,EAAE,WAAW;wBACtB,+BAA+B,EAAE,YAAY;wBAC7C,wBAAwB,EAAE,iBAAiB;qBAC5C,WACQ,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,eAAe,CAAC,YACzD;;;;;;;;;;;;;;;;;;;;;GAqBT","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 computed,\n Component,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n} from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { WattSpinnerComponent } from '@energinet/watt/spinner';\nimport { WattIcon, WattIconComponent } from '@energinet/watt/icon';\n\nexport const WattButtonTypes = ['primary', 'secondary', 'text', 'icon', 'selection'] as const;\nexport type WattButtonVariant = (typeof WattButtonTypes)[number];\nexport type WattButtonType = 'button' | 'reset' | 'submit';\nexport type WattButtonSize = 'small' | 'medium';\n\n@Component({\n selector: 'watt-button',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./watt-button.component.scss'],\n host: {\n '[class]': 'classes()',\n '[class.watt-button--disabled]': 'disabled()',\n '[style.pointer-events]': 'pointerEvents()',\n },\n imports: [WattIconComponent, WattSpinnerComponent, MatButtonModule],\n template: `\n <button\n mat-button\n [disableRipple]=\"true\"\n [disabled]=\"disabled()\"\n [type]=\"type()\"\n [color]=\"variant()\"\n [attr.form]=\"type() === 'submit' ? formId() : null\"\n >\n @if (loading()) {\n <watt-spinner [diameter]=\"18\" />\n }\n <div [class.content-wrapper]=\"!loading()\" [class.content-wrapper--loading]=\"loading()\">\n @if (hasIcon()) {\n <watt-icon [name]=\"icon()\" />\n }\n @if (variant() !== 'icon') {\n <ng-content />\n }\n </div>\n </button>\n `,\n})\nexport class WattButtonComponent {\n icon = input<WattIcon>();\n variant = input<WattButtonVariant>('primary');\n size = input<WattButtonSize>('medium');\n type = input<WattButtonType>('button');\n formId = input<string | null>(null);\n disabled = input(false);\n loading = input(false);\n\n classes = computed(() => `watt-button--${this.variant()} watt-button-size--${this.size()}`);\n\n // Prevents emitting a click event in Chrome/Edge/Safari when a disabled button is clicked\n // WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=89041\n // Note: This solution is preferred (in this particular case) over adding styling to the Scss file\n // because the presence of inline styles can be tested with Vitest.\n pointerEvents = computed(() => (this.disabled() ? 'none' : 'auto'));\n\n /**\n * @ignore\n */\n hasIcon = computed(() => !!this.icon());\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-card.js","sourceRoot":"","sources":["../../../../libs/watt/package/card/energinet-watt-card.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { WattCardComponent, WATT_CARD } from './watt-card.component';
|
|
20
|
+
export { WattCardTitleComponent } from './watt-card-title.component';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/card/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAqB,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,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 { WattCardComponent, WATT_CARD, WATT_CARD_VARIANT } from './watt-card.component';\nexport { WattCardTitleComponent } from './watt-card-title.component';\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
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, ViewEncapsulation } from '@angular/core';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
const selector = 'watt-card-title';
|
|
22
|
+
export class WattCardTitleComponent {
|
|
23
|
+
cssClass = () => 'watt-card__title watt-space-stack-m';
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCardTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: WattCardTitleComponent, isStandalone: true, selector: "watt-card-title", host: { properties: { "class": "cssClass()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["watt-card-title{display:block}watt-card-title h4,watt-card-title h3{color:var(--watt-typography-text-color);margin:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCardTitleComponent, decorators: [{
|
|
28
|
+
type: Component,
|
|
29
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: selector, template: `<ng-content />`, encapsulation: ViewEncapsulation.None, host: {
|
|
30
|
+
'[class]': 'cssClass()',
|
|
31
|
+
}, styles: ["watt-card-title{display:block}watt-card-title h4,watt-card-title h3{color:var(--watt-typography-text-color);margin:0}\n"] }]
|
|
32
|
+
}] });
|
|
33
|
+
//# sourceMappingURL=watt-card-title.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watt-card-title.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/card/watt-card-title.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;;AAEtF,MAAM,QAAQ,GAAG,iBAAiB,CAAC;AAuBnC,MAAM,OAAO,sBAAsB;IACjC,QAAQ,GAAG,GAAG,EAAE,CAAC,qCAAqC,CAAC;wGAD5C,sBAAsB;4FAAtB,sBAAsB,4HANvB,gBAAgB;;4FAMf,sBAAsB;kBArBlC,SAAS;sCACS,uBAAuB,CAAC,MAAM,YAC/C,QAAQ,YAaE,gBAAgB,iBACX,iBAAiB,CAAC,IAAI,QAC/B;wBACJ,SAAS,EAAE,YAAY;qBACxB","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, ViewEncapsulation } from '@angular/core';\n\nconst selector = 'watt-card-title';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector,\n styles: [\n `\n ${selector} {\n display: block;\n }\n\n ${selector} h4, ${selector} h3 {\n color: var(--watt-typography-text-color);\n margin: 0;\n }\n `,\n ],\n template: `<ng-content />`,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class]': 'cssClass()',\n },\n})\nexport class WattCardTitleComponent {\n cssClass = () => 'watt-card__title watt-space-stack-m';\n}\n"]}
|
|
@@ -1,38 +1,3 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { ViewEncapsulation, ChangeDetectionStrategy, Component, input, computed } from '@angular/core';
|
|
3
|
-
import { WattSpinnerComponent } from '@energinet/watt/spinner';
|
|
4
|
-
|
|
5
|
-
//#region License
|
|
6
|
-
/**
|
|
7
|
-
* @license
|
|
8
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
|
-
//#endregion
|
|
23
|
-
const selector = 'watt-card-title';
|
|
24
|
-
class WattCardTitleComponent {
|
|
25
|
-
cssClass = () => 'watt-card__title watt-space-stack-m';
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCardTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: WattCardTitleComponent, isStandalone: true, selector: "watt-card-title", host: { properties: { "class": "cssClass()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["watt-card-title{display:block}watt-card-title h4,watt-card-title h3{color:var(--watt-typography-text-color);margin:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
28
|
-
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCardTitleComponent, decorators: [{
|
|
30
|
-
type: Component,
|
|
31
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: selector, template: `<ng-content />`, encapsulation: ViewEncapsulation.None, host: {
|
|
32
|
-
'[class]': 'cssClass()',
|
|
33
|
-
}, styles: ["watt-card-title{display:block}watt-card-title h4,watt-card-title h3{color:var(--watt-typography-text-color);margin:0}\n"] }]
|
|
34
|
-
}] });
|
|
35
|
-
|
|
36
1
|
//#region License
|
|
37
2
|
/**
|
|
38
3
|
* @license
|
|
@@ -51,11 +16,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
51
16
|
* limitations under the License.
|
|
52
17
|
*/
|
|
53
18
|
//#endregion
|
|
19
|
+
import { input, computed, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
20
|
+
import { WattCardTitleComponent } from './watt-card-title.component';
|
|
21
|
+
import { WattSpinnerComponent } from '@energinet/watt/spinner';
|
|
22
|
+
import * as i0 from "@angular/core";
|
|
54
23
|
/**
|
|
55
24
|
* Usage:
|
|
56
25
|
* `import { WattCardComponent } from '@energinet/watt/card';`
|
|
57
26
|
*/
|
|
58
|
-
class WattCardComponent {
|
|
27
|
+
export class WattCardComponent {
|
|
59
28
|
variant = input('solid', ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
60
29
|
loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
61
30
|
cardVariant = computed(() => `watt-card watt-${this.variant()}`, ...(ngDevMode ? [{ debugName: "cardVariant" }] : []));
|
|
@@ -88,30 +57,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
88
57
|
'[class]': 'cardVariant()',
|
|
89
58
|
}, styles: [":host{border-radius:var(--watt-radius-m);display:block;padding:var(--watt-space-m);background:var(--bg-card)}:host.watt-solid{border:1px solid var(--watt-color-neutral-grey-300)}:host.watt-fill{border:1px solid var(--watt-color-neutral-grey-100);background:var(--watt-color-neutral-grey-100)}.watt-card__spinner{z-index:1;position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background-color:var(--watt-color-neutral-white);opacity:.5}\n"] }]
|
|
90
59
|
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }] } });
|
|
91
|
-
const WATT_CARD = [WattCardComponent, WattCardTitleComponent];
|
|
92
|
-
|
|
93
|
-
//#region License
|
|
94
|
-
/**
|
|
95
|
-
* @license
|
|
96
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
97
|
-
*
|
|
98
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
99
|
-
* you may not use this file except in compliance with the License.
|
|
100
|
-
* You may obtain a copy of the License at
|
|
101
|
-
*
|
|
102
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
103
|
-
*
|
|
104
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
105
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
106
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
107
|
-
* See the License for the specific language governing permissions and
|
|
108
|
-
* limitations under the License.
|
|
109
|
-
*/
|
|
110
|
-
//#endregion
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Generated bundle index. Do not edit.
|
|
114
|
-
*/
|
|
115
|
-
|
|
116
|
-
export { WATT_CARD, WattCardComponent, WattCardTitleComponent };
|
|
117
|
-
//# sourceMappingURL=energinet-watt-card.mjs.map
|
|
60
|
+
export const WATT_CARD = [WattCardComponent, WattCardTitleComponent];
|
|
61
|
+
//# sourceMappingURL=watt-card.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watt-card.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/card/watt-card.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAEpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;;AAE/D;;;GAGG;AAqDH,MAAM,OAAO,iBAAiB;IAC5B,OAAO,GAAG,KAAK,CAAoB,OAAO,mDAAC,CAAC;IAC5C,OAAO,GAAG,KAAK,CAAU,KAAK,mDAAC,CAAC;IAChC,WAAW,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,kBAAkB,IAAI,CAAC,OAAO,EAAE,EAAE,uDAAC,CAAC;wGAHtD,iBAAiB;4FAAjB,iBAAiB,iYAhBlB;;;;;;;;;;GAUT,2hBACS,oBAAoB;;4FAKnB,iBAAiB;kBApD7B,SAAS;sCACS,uBAAuB,CAAC,MAAM,YACrC,WAAW,YAkCX;;;;;;;;;;GAUT,WACQ,CAAC,oBAAoB,CAAC,QACzB;wBACJ,SAAS,EAAE,eAAe;qBAC3B;;AASH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,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 { input, computed, Component, ChangeDetectionStrategy } from '@angular/core';\n\nimport { WattCardTitleComponent } from './watt-card-title.component';\nimport { WattSpinnerComponent } from '@energinet/watt/spinner';\n\n/**\n * Usage:\n * `import { WattCardComponent } from '@energinet/watt/card';`\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'watt-card',\n styles: [\n `\n :host {\n border-radius: var(--watt-radius-m);\n display: block;\n padding: var(--watt-space-m); /* 24px */\n background: var(--bg-card);\n }\n\n :host.watt-solid {\n border: 1px solid var(--watt-color-neutral-grey-300);\n }\n\n :host.watt-fill {\n border: 1px solid var(--watt-color-neutral-grey-100);\n background: var(--watt-color-neutral-grey-100);\n }\n\n .watt-card__spinner {\n z-index: 1;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: var(--watt-color-neutral-white);\n opacity: 0.5;\n }\n `,\n ],\n template: `\n <ng-content select=\"watt-card-title\" />\n\n <ng-content />\n\n @if (loading()) {\n <div class=\"watt-card__spinner\">\n <watt-spinner />\n </div>\n }\n `,\n imports: [WattSpinnerComponent],\n host: {\n '[class]': 'cardVariant()',\n },\n})\nexport class WattCardComponent {\n variant = input<WATT_CARD_VARIANT>('solid');\n loading = input<boolean>(false);\n cardVariant = computed(() => `watt-card watt-${this.variant()}`);\n}\n\nexport type WATT_CARD_VARIANT = 'solid' | 'elevation' | 'fill';\nexport const WATT_CARD = [WattCardComponent, WattCardTitleComponent];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-checkbox.js","sourceRoot":"","sources":["../../../../libs/watt/package/checkbox/energinet-watt-checkbox.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { WattCheckboxComponent } from './watt-checkbox.component';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/checkbox/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 { WattCheckboxComponent } from './watt-checkbox.component';\n"]}
|
package/{fesm2022/energinet-watt-checkbox.mjs → esm2022/checkbox/watt-checkbox.component.js}
RENAMED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, signal, input, forwardRef, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/forms';
|
|
4
|
-
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
|
-
|
|
6
1
|
//#region License
|
|
7
2
|
/**
|
|
8
3
|
* @license
|
|
@@ -21,7 +16,11 @@ import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
|
21
16
|
* limitations under the License.
|
|
22
17
|
*/
|
|
23
18
|
//#endregion
|
|
24
|
-
|
|
19
|
+
import { input, signal, inject, Component, ElementRef, forwardRef, ViewEncapsulation, } from '@angular/core';
|
|
20
|
+
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
21
|
+
import * as i0 from "@angular/core";
|
|
22
|
+
import * as i1 from "@angular/forms";
|
|
23
|
+
export class WattCheckboxComponent {
|
|
25
24
|
element = inject(ElementRef);
|
|
26
25
|
checked = null;
|
|
27
26
|
isdisabled = signal(false, ...(ngDevMode ? [{ debugName: "isdisabled" }] : []));
|
|
@@ -94,29 +93,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
94
93
|
</label>
|
|
95
94
|
`, styles: ["form.ng-submitted watt-checkbox.ng-invalid label{color:var(--watt-checkbox-error-color)}form.ng-submitted watt-checkbox.ng-invalid input{border-color:var(--watt-checkbox-error-color)}form.ng-submitted watt-checkbox.watt-checkbox--indeterminate.ng-invalid input{background-color:var(--watt-checkbox-error-color)}watt-checkbox{--watt-checkbox-disabled-color: var(--watt-color-neutral-grey-500);--watt-checkbox-color: var(--watt-color-primary);--watt-checkbox-color-focus: var(--watt-color-primary-dark);--watt-checkbox-color-hover: var(--watt-color-primary-dark);--watt-checkbox-border-color: var(--watt-on-light-low-emphasis);--watt-checkbox-border-color-hover: var(--watt-on-light-medium-emphasis);--watt-checkbox-border-color-focus: var(--watt-color-primary);--watt-checkbox-checkmark-color: var(--watt-on-dark-high-emphasis);--watt-checkbox-error-color: var(--watt-color-state-danger);display:block}watt-checkbox.ng-dirty.ng-invalid label{color:var(--watt-checkbox-error-color)}watt-checkbox.ng-dirty.ng-invalid input{border-color:var(--watt-checkbox-error-color)}watt-checkbox input{appearance:none;margin:0;padding:0;width:16px;height:16px;border:1px solid var(--watt-checkbox-border-color);border-radius:2px;display:grid;place-content:center;cursor:pointer}watt-checkbox input:before{content:\"\";width:.65em;height:.65em;transform:scale(0);transition:.12s transform ease-in-out;background-color:var(--watt-checkbox-checkmark-color);transform-origin:bottom left;clip-path:polygon(8.79% 46.33%,.66% 56%,40.8% 89.74%,99.73% 25.3%,91.52% 17.78%,40.8% 73.23%)}watt-checkbox input:focus-visible{outline:none}watt-checkbox:not(.ng-dirty.ng-invalid) input:not(:disabled):hover{border-color:var(--watt-checkbox-border-color-hover)}watt-checkbox:not(.ng-dirty.ng-invalid) input:not(:disabled):hover:checked,watt-checkbox:not(.ng-dirty.ng-invalid) input:not(:disabled):hover:indeterminate{background-color:var(--watt-checkbox-color-hover);border-color:var(--watt-checkbox-color-hover)}watt-checkbox:not(.ng-dirty.ng-invalid) input:not(:disabled):focus-visible{border-color:var(--watt-checkbox-border-color-focus)}watt-checkbox:not(.ng-dirty.ng-invalid) input:not(:disabled):focus-visible:checked,watt-checkbox:not(.ng-dirty.ng-invalid) input:not(:disabled):focus-visible:indeterminate{background-color:var(--watt-checkbox-color-focus);border-color:var(--watt-checkbox-color-focus)}watt-checkbox.watt-checkbox--indeterminate input:before{width:10px;height:1px;clip-path:none;transform:scale(1)}watt-checkbox input:checked:before{transform:scale(1)}watt-checkbox input:checked,watt-checkbox.watt-checkbox--indeterminate input{border-color:var(--watt-checkbox-color);background-color:var(--watt-checkbox-color)}watt-checkbox input:disabled{border-color:var(--watt-checkbox-disabled-color);cursor:inherit}watt-checkbox input:disabled:checked{background-color:var(--watt-checkbox-disabled-color)}watt-checkbox.watt-checkbox--disabled label{color:var(--watt-checkbox-disabled-color);cursor:inherit}watt-checkbox label{display:grid;grid-template-columns:1em auto;gap:.5em;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer}\n"] }]
|
|
96
95
|
}], propDecorators: { required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }] } });
|
|
97
|
-
|
|
98
|
-
//#region License
|
|
99
|
-
/**
|
|
100
|
-
* @license
|
|
101
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
102
|
-
*
|
|
103
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
104
|
-
* you may not use this file except in compliance with the License.
|
|
105
|
-
* You may obtain a copy of the License at
|
|
106
|
-
*
|
|
107
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
108
|
-
*
|
|
109
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
110
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
111
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
112
|
-
* See the License for the specific language governing permissions and
|
|
113
|
-
* limitations under the License.
|
|
114
|
-
*/
|
|
115
|
-
//#endregion
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Generated bundle index. Do not edit.
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
export { WattCheckboxComponent };
|
|
122
|
-
//# sourceMappingURL=energinet-watt-checkbox.mjs.map
|
|
96
|
+
//# sourceMappingURL=watt-checkbox.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watt-checkbox.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/checkbox/watt-checkbox.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,SAAS,EACT,UAAU,EACV,UAAU,EACV,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAwB,iBAAiB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;;;AAgCtF,MAAM,OAAO,qBAAqB;IACxB,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAErC,OAAO,GAAmB,IAAI,CAAC;IAE/B,UAAU,GAAG,MAAM,CAAC,KAAK,sDAAC,CAAC;IAC3B,aAAa,GAAG,MAAM,CAAC,KAAK,yDAAC,CAAC;IAC9B,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC,CAAC;IAExB,QAAQ,GAA6B,GAAG,EAAE;QACxC,EAAE;IACJ,CAAC,CAAC;IAEF,gBAAgB,CAAC,EAA4B;QAC3C,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACrB,CAAC;IAED,iBAAiB,CAAC,EAA4B;QAC5C,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,UAAU,CAAC,OAAuB;QAChC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,aAAa,CAAC,CAAU;QACtB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC;IAED,gBAAgB,CAAC,UAAmB;QAClC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;wGAlCU,qBAAqB;4FAArB,qBAAqB,6UA1BrB;YACT;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;gBACpD,KAAK,EAAE,IAAI;aACZ;SACF,0BAMS;;;;;;;;;;;;GAYT,2oGAbS,WAAW;;4FAeV,qBAAqB;kBA9BjC,SAAS;+BACE,eAAe,iBACV,iBAAiB,CAAC,IAAI,aAE1B;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,sBAAsB,CAAC;4BACpD,KAAK,EAAE,IAAI;yBACZ;qBACF,QACK;wBACJ,iCAAiC,EAAE,cAAc;wBACjD,sCAAsC,EAAE,iBAAiB;qBAC1D,WACQ,CAAC,WAAW,CAAC,YACZ;;;;;;;;;;;;GAYT","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 signal,\n inject,\n Component,\n ElementRef,\n forwardRef,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'watt-checkbox',\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./watt-checkbox.component.scss'],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WattCheckboxComponent),\n multi: true,\n },\n ],\n host: {\n '[class.watt-checkbox--disabled]': 'isdisabled()',\n '[class.watt-checkbox--indeterminate]': 'indeterminate()',\n },\n imports: [FormsModule],\n template: `\n <label class=\"watt-text-s\">\n <input\n [ngModel]=\"checked\"\n [disabled]=\"isdisabled()\"\n [indeterminate]=\"indeterminate()\"\n [required]=\"required()\"\n (ngModelChange)=\"onModelChange($event)\"\n type=\"checkbox\"\n />\n <ng-content />\n </label>\n `,\n})\nexport class WattCheckboxComponent implements ControlValueAccessor {\n private element = inject(ElementRef);\n\n checked: boolean | null = null;\n\n isdisabled = signal(false);\n indeterminate = signal(false);\n required = input(false);\n\n onChange: (value: boolean) => void = () => {\n //\n };\n\n registerOnChange(fn: (value: boolean) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: (value: boolean) => void): void {\n this.element.nativeElement.addEventListener('focusout', fn);\n }\n\n writeValue(checked: boolean | null) {\n this.indeterminate.set(checked === null ? true : false);\n this.checked = checked;\n }\n\n onModelChange(e: boolean) {\n this.indeterminate.set(false);\n this.checked = e;\n this.onChange(e);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.isdisabled.set(isDisabled);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-chip.js","sourceRoot":"","sources":["../../../../libs/watt/package/chip/energinet-watt-chip.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { WattActionChipComponent } from './watt-action-chip.component';
|
|
20
|
+
export { WattChipComponent } from './watt-chip.component';
|
|
21
|
+
export { WattDateChipComponent } from './watt-date-chip.component';
|
|
22
|
+
export { WattDateRangeChipComponent } from './watt-date-range-chip.component';
|
|
23
|
+
export { WattFilterChipComponent } from './watt-filter-chip.component';
|
|
24
|
+
export { WattFormChipDirective } from './watt-chip.directive';
|
|
25
|
+
export { WattMenuChipComponent } from './watt-menu-chip.component';
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/chip/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,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 { WattActionChipComponent } from './watt-action-chip.component';\nexport { WattChipComponent } from './watt-chip.component';\nexport { WattDateChipComponent } from './watt-date-chip.component';\nexport { WattDateRangeChipComponent } from './watt-date-range-chip.component';\nexport { WattFilterChipComponent } from './watt-filter-chip.component';\nexport { WattFormChipDirective } from './watt-chip.directive';\nexport { WattMenuChipComponent } from './watt-menu-chip.component';\n"]}
|
|
@@ -0,0 +1,68 @@
|
|
|
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, input, output } from '@angular/core';
|
|
20
|
+
import { WattIconComponent } from '@energinet/watt/icon';
|
|
21
|
+
import { WattChipComponent } from './watt-chip.component';
|
|
22
|
+
import * as i0 from "@angular/core";
|
|
23
|
+
export class WattActionChipComponent {
|
|
24
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
25
|
+
icon = input.required(...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
26
|
+
action = output();
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattActionChipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: WattActionChipComponent, isStandalone: true, selector: "watt-action-chip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { action: "action" }, ngImport: i0, template: `
|
|
29
|
+
<watt-chip [disabled]="disabled()">
|
|
30
|
+
<button
|
|
31
|
+
type="button"
|
|
32
|
+
class="cdk-visually-hidden"
|
|
33
|
+
(click)="$event.stopImmediatePropagation(); action.emit()"
|
|
34
|
+
[disabled]="disabled()"
|
|
35
|
+
></button>
|
|
36
|
+
<ng-content />
|
|
37
|
+
<watt-icon
|
|
38
|
+
size="s"
|
|
39
|
+
[name]="icon()"
|
|
40
|
+
class="menu-icon"
|
|
41
|
+
[attr.aria-hidden]="true"
|
|
42
|
+
[class.disabled]="disabled()"
|
|
43
|
+
/>
|
|
44
|
+
</watt-chip>
|
|
45
|
+
`, isInline: true, styles: [":host{display:block}.disabled{color:var(--watt-on-light-low-emphasis)}\n"], dependencies: [{ kind: "component", type: WattChipComponent, selector: "watt-chip", inputs: ["selected", "disabled", "readonly"] }, { kind: "component", type: WattIconComponent, selector: "watt-icon", inputs: ["name", "label", "size", "state"] }] });
|
|
46
|
+
}
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattActionChipComponent, decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{ imports: [WattChipComponent, WattIconComponent], selector: 'watt-action-chip', template: `
|
|
50
|
+
<watt-chip [disabled]="disabled()">
|
|
51
|
+
<button
|
|
52
|
+
type="button"
|
|
53
|
+
class="cdk-visually-hidden"
|
|
54
|
+
(click)="$event.stopImmediatePropagation(); action.emit()"
|
|
55
|
+
[disabled]="disabled()"
|
|
56
|
+
></button>
|
|
57
|
+
<ng-content />
|
|
58
|
+
<watt-icon
|
|
59
|
+
size="s"
|
|
60
|
+
[name]="icon()"
|
|
61
|
+
class="menu-icon"
|
|
62
|
+
[attr.aria-hidden]="true"
|
|
63
|
+
[class.disabled]="disabled()"
|
|
64
|
+
/>
|
|
65
|
+
</watt-chip>
|
|
66
|
+
`, styles: [":host{display:block}.disabled{color:var(--watt-on-light-low-emphasis)}\n"] }]
|
|
67
|
+
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], action: [{ type: i0.Output, args: ["action"] }] } });
|
|
68
|
+
//# sourceMappingURL=watt-action-chip.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watt-action-chip.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/chip/watt-action-chip.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAY,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;AAmC1D,MAAM,OAAO,uBAAuB;IAClC,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC,CAAC;IACxB,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAY,CAAC;IAClC,MAAM,GAAG,MAAM,EAAQ,CAAC;wGAHb,uBAAuB;4FAAvB,uBAAuB,4WAnBxB;;;;;;;;;;;;;;;;;GAiBT,kJA9BS,iBAAiB,oGAAE,iBAAiB;;4FAgCnC,uBAAuB;kBAjCnC,SAAS;8BACC,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,YACrC,kBAAkB,YAYlB;;;;;;;;;;;;;;;;;GAiBT","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, input, output } from '@angular/core';\n\nimport { WattIcon, WattIconComponent } from '@energinet/watt/icon';\nimport { WattChipComponent } from './watt-chip.component';\n\n@Component({\n imports: [WattChipComponent, WattIconComponent],\n selector: 'watt-action-chip',\n styles: [\n `\n :host {\n display: block;\n }\n\n .disabled {\n color: var(--watt-on-light-low-emphasis);\n }\n `,\n ],\n template: `\n <watt-chip [disabled]=\"disabled()\">\n <button\n type=\"button\"\n class=\"cdk-visually-hidden\"\n (click)=\"$event.stopImmediatePropagation(); action.emit()\"\n [disabled]=\"disabled()\"\n ></button>\n <ng-content />\n <watt-icon\n size=\"s\"\n [name]=\"icon()\"\n class=\"menu-icon\"\n [attr.aria-hidden]=\"true\"\n [class.disabled]=\"disabled()\"\n />\n </watt-chip>\n `,\n})\nexport class WattActionChipComponent {\n disabled = input(false);\n icon = input.required<WattIcon>();\n action = output<void>();\n}\n"]}
|