@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
|
@@ -0,0 +1,80 @@
|
|
|
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 WattMenuChipComponent {
|
|
24
|
+
opened = input(false, ...(ngDevMode ? [{ debugName: "opened" }] : []));
|
|
25
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
26
|
+
name = input(undefined, ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
27
|
+
value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
28
|
+
selected = input(false, ...(ngDevMode ? [{ debugName: "selected" }] : []));
|
|
29
|
+
hasPopup = input('menu', ...(ngDevMode ? [{ debugName: "hasPopup" }] : []));
|
|
30
|
+
toggleChange = output();
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattMenuChipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: WattMenuChipComponent, isStandalone: true, selector: "watt-menu-chip", inputs: { opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, hasPopup: { classPropertyName: "hasPopup", publicName: "hasPopup", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggleChange: "toggleChange" }, ngImport: i0, template: `
|
|
33
|
+
<watt-chip [disabled]="disabled()" [selected]="selected()">
|
|
34
|
+
<button
|
|
35
|
+
class="cdk-visually-hidden"
|
|
36
|
+
[attr.aria-haspopup]="hasPopup()"
|
|
37
|
+
[attr.aria-expanded]="opened()"
|
|
38
|
+
[attr.aria-pressed]="selected()"
|
|
39
|
+
(click)="toggleChange.emit()"
|
|
40
|
+
[disabled]="disabled()"
|
|
41
|
+
></button>
|
|
42
|
+
<ng-content />
|
|
43
|
+
<watt-icon
|
|
44
|
+
size="s"
|
|
45
|
+
name="arrowDropDown"
|
|
46
|
+
class="menu-icon"
|
|
47
|
+
[attr.aria-hidden]="true"
|
|
48
|
+
[class.opened]="opened()"
|
|
49
|
+
[class.selected]="selected()"
|
|
50
|
+
[class.disabled]="disabled()"
|
|
51
|
+
/>
|
|
52
|
+
</watt-chip>
|
|
53
|
+
`, isInline: true, styles: [":host{display:block}.menu-icon{margin-left:var(--watt-space-xs);transition:linear .2s all;color:var(--watt-color-primary)}.menu-icon.disabled{color:var(--watt-on-light-low-emphasis)}.opened{transform:rotate(180deg)}.selected{color:var(--watt-color-neutral-white)}.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"] }] });
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattMenuChipComponent, decorators: [{
|
|
56
|
+
type: Component,
|
|
57
|
+
args: [{ imports: [WattChipComponent, WattIconComponent], selector: 'watt-menu-chip', template: `
|
|
58
|
+
<watt-chip [disabled]="disabled()" [selected]="selected()">
|
|
59
|
+
<button
|
|
60
|
+
class="cdk-visually-hidden"
|
|
61
|
+
[attr.aria-haspopup]="hasPopup()"
|
|
62
|
+
[attr.aria-expanded]="opened()"
|
|
63
|
+
[attr.aria-pressed]="selected()"
|
|
64
|
+
(click)="toggleChange.emit()"
|
|
65
|
+
[disabled]="disabled()"
|
|
66
|
+
></button>
|
|
67
|
+
<ng-content />
|
|
68
|
+
<watt-icon
|
|
69
|
+
size="s"
|
|
70
|
+
name="arrowDropDown"
|
|
71
|
+
class="menu-icon"
|
|
72
|
+
[attr.aria-hidden]="true"
|
|
73
|
+
[class.opened]="opened()"
|
|
74
|
+
[class.selected]="selected()"
|
|
75
|
+
[class.disabled]="disabled()"
|
|
76
|
+
/>
|
|
77
|
+
</watt-chip>
|
|
78
|
+
`, styles: [":host{display:block}.menu-icon{margin-left:var(--watt-space-xs);transition:linear .2s all;color:var(--watt-color-primary)}.menu-icon.disabled{color:var(--watt-on-light-low-emphasis)}.opened{transform:rotate(180deg)}.selected{color:var(--watt-color-neutral-white)}.disabled{color:var(--watt-on-light-low-emphasis)}\n"] }]
|
|
79
|
+
}], propDecorators: { opened: [{ type: i0.Input, args: [{ isSignal: true, alias: "opened", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], hasPopup: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasPopup", required: false }] }], toggleChange: [{ type: i0.Output, args: ["toggleChange"] }] } });
|
|
80
|
+
//# sourceMappingURL=watt-menu-chip.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watt-menu-chip.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/chip/watt-menu-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,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;AA2D1D,MAAM,OAAO,qBAAqB;IAChC,MAAM,GAAG,KAAK,CAAC,KAAK,kDAAC,CAAC;IACtB,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC,CAAC;IACxB,IAAI,GAAG,KAAK,CAAqB,SAAS,gDAAC,CAAC;IAC5C,KAAK,GAAG,KAAK,CAAqB,SAAS,iDAAC,CAAC;IAC7C,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC,CAAC;IACxB,QAAQ,GAAG,KAAK,CAAuB,MAAM,oDAAC,CAAC;IAC/C,YAAY,GAAG,MAAM,EAAQ,CAAC;wGAPnB,qBAAqB;4FAArB,qBAAqB,42BAvBtB;;;;;;;;;;;;;;;;;;;;;GAqBT,qYApDS,iBAAiB,oGAAE,iBAAiB;;4FAsDnC,qBAAqB;kBAvDjC,SAAS;8BACC,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,YACrC,gBAAgB,YA8BhB;;;;;;;;;;;;;;;;;;;;;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 { Component, input, output } from '@angular/core';\n\nimport { WattIconComponent } from '@energinet/watt/icon';\nimport { WattChipComponent } from './watt-chip.component';\n\nexport type WattMenuChipHasPopup = 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';\n\n@Component({\n imports: [WattChipComponent, WattIconComponent],\n selector: 'watt-menu-chip',\n styles: [\n `\n :host {\n display: block;\n }\n\n .menu-icon {\n margin-left: var(--watt-space-xs);\n transition: linear 0.2s all;\n color: var(--watt-color-primary);\n\n &.disabled {\n color: var(--watt-on-light-low-emphasis);\n }\n }\n\n .opened {\n transform: rotate(180deg);\n }\n\n .selected {\n color: var(--watt-color-neutral-white);\n }\n\n .disabled {\n color: var(--watt-on-light-low-emphasis);\n }\n `,\n ],\n template: `\n <watt-chip [disabled]=\"disabled()\" [selected]=\"selected()\">\n <button\n class=\"cdk-visually-hidden\"\n [attr.aria-haspopup]=\"hasPopup()\"\n [attr.aria-expanded]=\"opened()\"\n [attr.aria-pressed]=\"selected()\"\n (click)=\"toggleChange.emit()\"\n [disabled]=\"disabled()\"\n ></button>\n <ng-content />\n <watt-icon\n size=\"s\"\n name=\"arrowDropDown\"\n class=\"menu-icon\"\n [attr.aria-hidden]=\"true\"\n [class.opened]=\"opened()\"\n [class.selected]=\"selected()\"\n [class.disabled]=\"disabled()\"\n />\n </watt-chip>\n `,\n})\nexport class WattMenuChipComponent {\n opened = input(false);\n disabled = input(false);\n name = input<string | undefined>(undefined);\n value = input<string | undefined>(undefined);\n selected = input(false);\n hasPopup = input<WattMenuChipHasPopup>('menu');\n toggleChange = output<void>();\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-clipboard.js","sourceRoot":"","sources":["../../../../libs/watt/package/clipboard/energinet-watt-clipboard.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 { WattCopyToClipboardDirective } from './watt-copy-to-clipboard.directive';
|
|
20
|
+
export { WattClipboardIntlService } from './watt-clipboard-intl.service';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/clipboard/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,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 { WattCopyToClipboardDirective } from './watt-copy-to-clipboard.directive';\nexport { WattClipboardIntlService } from './watt-clipboard-intl.service';\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { Injectable } from '@angular/core';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
export class WattClipboardIntlService {
|
|
22
|
+
success = 'Copied to clipboard';
|
|
23
|
+
error = 'Failed to copy';
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattClipboardIntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
25
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattClipboardIntlService, providedIn: 'root' });
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattClipboardIntlService, decorators: [{
|
|
28
|
+
type: Injectable,
|
|
29
|
+
args: [{ providedIn: 'root' }]
|
|
30
|
+
}] });
|
|
31
|
+
//# sourceMappingURL=watt-clipboard-intl.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watt-clipboard-intl.service.js","sourceRoot":"","sources":["../../../../libs/watt/package/clipboard/watt-clipboard-intl.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAG3C,MAAM,OAAO,wBAAwB;IACnC,OAAO,GAAG,qBAAqB,CAAC;IAChC,KAAK,GAAG,gBAAgB,CAAC;wGAFd,wBAAwB;4GAAxB,wBAAwB,cADX,MAAM;;4FACnB,wBAAwB;kBADpC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class WattClipboardIntlService {\n success = 'Copied to clipboard';\n error = 'Failed to copy';\n}\n"]}
|
|
@@ -1,37 +1,3 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, inject, ElementRef, input, output, Directive } from '@angular/core';
|
|
3
|
-
import { Clipboard } from '@angular/cdk/clipboard';
|
|
4
|
-
import { WattToastService } from '@energinet/watt/toast';
|
|
5
|
-
|
|
6
|
-
//#region License
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
10
|
-
*
|
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
12
|
-
* you may not use this file except in compliance with the License.
|
|
13
|
-
* You may obtain a copy of the License at
|
|
14
|
-
*
|
|
15
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
* See the License for the specific language governing permissions and
|
|
21
|
-
* limitations under the License.
|
|
22
|
-
*/
|
|
23
|
-
//#endregion
|
|
24
|
-
class WattClipboardIntlService {
|
|
25
|
-
success = 'Copied to clipboard';
|
|
26
|
-
error = 'Failed to copy';
|
|
27
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattClipboardIntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
28
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattClipboardIntlService, providedIn: 'root' });
|
|
29
|
-
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattClipboardIntlService, decorators: [{
|
|
31
|
-
type: Injectable,
|
|
32
|
-
args: [{ providedIn: 'root' }]
|
|
33
|
-
}] });
|
|
34
|
-
|
|
35
1
|
//#region License
|
|
36
2
|
/**
|
|
37
3
|
* @license
|
|
@@ -50,7 +16,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
50
16
|
* limitations under the License.
|
|
51
17
|
*/
|
|
52
18
|
//#endregion
|
|
53
|
-
|
|
19
|
+
import { input, output, inject, Directive, ElementRef } from '@angular/core';
|
|
20
|
+
import { Clipboard } from '@angular/cdk/clipboard';
|
|
21
|
+
import { WattToastService } from '@energinet/watt/toast';
|
|
22
|
+
import { WattClipboardIntlService } from './watt-clipboard-intl.service';
|
|
23
|
+
import * as i0 from "@angular/core";
|
|
24
|
+
export class WattCopyToClipboardDirective {
|
|
54
25
|
element = inject(ElementRef);
|
|
55
26
|
clipboard = inject(Clipboard);
|
|
56
27
|
toast = inject(WattToastService);
|
|
@@ -90,29 +61,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
90
61
|
},
|
|
91
62
|
}]
|
|
92
63
|
}], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "wattCopyToClipboard", required: false }] }], copySuccess: [{ type: i0.Output, args: ["copySuccess"] }] } });
|
|
93
|
-
|
|
94
|
-
//#region License
|
|
95
|
-
/**
|
|
96
|
-
* @license
|
|
97
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
98
|
-
*
|
|
99
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
100
|
-
* you may not use this file except in compliance with the License.
|
|
101
|
-
* You may obtain a copy of the License at
|
|
102
|
-
*
|
|
103
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
104
|
-
*
|
|
105
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
106
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
107
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
108
|
-
* See the License for the specific language governing permissions and
|
|
109
|
-
* limitations under the License.
|
|
110
|
-
*/
|
|
111
|
-
//#endregion
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Generated bundle index. Do not edit.
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
export { WattClipboardIntlService, WattCopyToClipboardDirective };
|
|
118
|
-
//# sourceMappingURL=energinet-watt-clipboard.mjs.map
|
|
64
|
+
//# sourceMappingURL=watt-copy-to-clipboard.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watt-copy-to-clipboard.directive.js","sourceRoot":"","sources":["../../../../libs/watt/package/clipboard/watt-copy-to-clipboard.directive.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;;AASzE,MAAM,OAAO,4BAA4B;IAC/B,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAC7B,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IAC9B,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACjC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC;IAEhD,IAAI,GAAG,KAAK,CAAS,SAAS,wCAAI,KAAK,EAAE,qBAAqB,OAA9B,EAAE,KAAK,EAAE,qBAAqB,EAAE,GAAC,CAAC;IAElE,WAAW,GAAG,MAAM,EAAW,CAAC;IAEhC,eAAe;QACb,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QACzB,MAAM,OAAO,GAAG,IAAI;YAClB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YAC3B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;QAE9D,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO;aAC3B,CAAC,CAAC;YAEH,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK;aACzB,CAAC,CAAC;YAEH,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;wGA/BU,4BAA4B;4FAA5B,4BAA4B;;4FAA5B,4BAA4B;kBAPxC,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,IAAI,EAAE;wBACJ,gBAAgB,EAAE,WAAW;wBAC7B,SAAS,EAAE,mBAAmB;qBAC/B;iBACF","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, output, inject, Directive, ElementRef } from '@angular/core';\nimport { Clipboard } from '@angular/cdk/clipboard';\n\nimport { WattToastService } from '@energinet/watt/toast';\nimport { WattClipboardIntlService } from './watt-clipboard-intl.service';\n\n@Directive({\n selector: '[wattCopyToClipboard]',\n host: {\n '[style.cursor]': \"'pointer'\",\n '(click)': 'handleHostClick()',\n },\n})\nexport class WattCopyToClipboardDirective {\n private element = inject(ElementRef);\n private clipboard = inject(Clipboard);\n private toast = inject(WattToastService);\n private intl = inject(WattClipboardIntlService);\n\n text = input<string>(undefined, { alias: 'wattCopyToClipboard' });\n\n copySuccess = output<boolean>();\n\n handleHostClick() {\n const text = this.text();\n const success = text\n ? this.clipboard.copy(text)\n : this.clipboard.copy(this.element.nativeElement.innerText);\n\n if (success) {\n this.toast.open({\n type: 'success',\n message: this.intl.success,\n });\n\n this.copySuccess.emit(true);\n } else {\n this.toast.open({\n type: 'danger',\n message: this.intl.error,\n });\n\n this.copySuccess.emit(false);\n }\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-code.js","sourceRoot":"","sources":["../../../../libs/watt/package/code/energinet-watt-code.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,22 @@
|
|
|
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 { WattCodeComponent } from './watt-code.component';
|
|
20
|
+
export { WATT_CODE_HIGHLIGHT_WORKER_FACTORY } from './watt-code.worker.token';
|
|
21
|
+
export { WattCodeIntlService } from './watt-code-intl.service';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/watt/package/code/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,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 { WattCodeComponent } from './watt-code.component';\nexport { WATT_CODE_HIGHLIGHT_WORKER_FACTORY } from './watt-code.worker.token';\nexport { WattCodeIntlService } from './watt-code-intl.service';\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { Injectable } from '@angular/core';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
export class WattCodeIntlService {
|
|
22
|
+
searchPlaceholder = 'Search in code';
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCodeIntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
24
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCodeIntlService, providedIn: 'root' });
|
|
25
|
+
}
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCodeIntlService, decorators: [{
|
|
27
|
+
type: Injectable,
|
|
28
|
+
args: [{ providedIn: 'root' }]
|
|
29
|
+
}] });
|
|
30
|
+
//# sourceMappingURL=watt-code-intl.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watt-code-intl.service.js","sourceRoot":"","sources":["../../../../libs/watt/package/code/watt-code-intl.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAG3C,MAAM,OAAO,mBAAmB;IAC9B,iBAAiB,GAAG,gBAAgB,CAAC;wGAD1B,mBAAmB;4GAAnB,mBAAmB,cADN,MAAM;;4FACnB,mBAAmB;kBAD/B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class WattCodeIntlService {\n searchPlaceholder = 'Search in code';\n}\n"]}
|
|
@@ -1,39 +1,3 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, InjectionToken, inject, viewChild, input, signal, output, computed, effect, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/cdk/scrolling';
|
|
4
|
-
import { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';
|
|
5
|
-
import { VaterStackComponent } from '@energinet/watt/vater';
|
|
6
|
-
import { WattSearchComponent } from '@energinet/watt/search';
|
|
7
|
-
import { WattSpinnerComponent } from '@energinet/watt/spinner';
|
|
8
|
-
|
|
9
|
-
//#region License
|
|
10
|
-
/**
|
|
11
|
-
* @license
|
|
12
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
13
|
-
*
|
|
14
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
15
|
-
* you may not use this file except in compliance with the License.
|
|
16
|
-
* You may obtain a copy of the License at
|
|
17
|
-
*
|
|
18
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
19
|
-
*
|
|
20
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
21
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
22
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
23
|
-
* See the License for the specific language governing permissions and
|
|
24
|
-
* limitations under the License.
|
|
25
|
-
*/
|
|
26
|
-
//#endregion
|
|
27
|
-
class WattCodeIntlService {
|
|
28
|
-
searchPlaceholder = 'Search in code';
|
|
29
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCodeIntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
30
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCodeIntlService, providedIn: 'root' });
|
|
31
|
-
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCodeIntlService, decorators: [{
|
|
33
|
-
type: Injectable,
|
|
34
|
-
args: [{ providedIn: 'root' }]
|
|
35
|
-
}] });
|
|
36
|
-
|
|
37
1
|
//#region License
|
|
38
2
|
/**
|
|
39
3
|
* @license
|
|
@@ -52,27 +16,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
52
16
|
* limitations under the License.
|
|
53
17
|
*/
|
|
54
18
|
//#endregion
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
|
|
65
|
-
*
|
|
66
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
67
|
-
*
|
|
68
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
69
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
70
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
71
|
-
* See the License for the specific language governing permissions and
|
|
72
|
-
* limitations under the License.
|
|
73
|
-
*/
|
|
74
|
-
//#endregion
|
|
75
|
-
class WattCodeComponent {
|
|
19
|
+
import { input, output, signal, inject, effect, computed, viewChild, Component, ViewEncapsulation, ChangeDetectionStrategy, } from '@angular/core';
|
|
20
|
+
import { ScrollingModule, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
21
|
+
import { VaterStackComponent } from '@energinet/watt/vater';
|
|
22
|
+
import { WattSearchComponent } from '@energinet/watt/search';
|
|
23
|
+
import { WattSpinnerComponent } from '@energinet/watt/spinner';
|
|
24
|
+
import { WattCodeIntlService } from './watt-code-intl.service';
|
|
25
|
+
import { WATT_CODE_HIGHLIGHT_WORKER_FACTORY } from './watt-code.worker.token';
|
|
26
|
+
import * as i0 from "@angular/core";
|
|
27
|
+
import * as i1 from "@angular/cdk/scrolling";
|
|
28
|
+
export class WattCodeComponent {
|
|
76
29
|
highlightWorkerFactory = inject(WATT_CODE_HIGHLIGHT_WORKER_FACTORY);
|
|
77
30
|
worker = this.highlightWorkerFactory?.();
|
|
78
31
|
intl = inject(WattCodeIntlService);
|
|
@@ -215,29 +168,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
215
168
|
}
|
|
216
169
|
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [WattSpinnerComponent, VaterStackComponent, ScrollingModule, WattSearchComponent], styles: ["watt-tabs watt-code pre code.watt-code-content{padding:0}watt-code{display:block;height:100%;width:100%}watt-code pre{display:flex;margin:0;padding:0;height:calc(100% - 60px);width:100%;word-wrap:break-word}watt-code pre .cdk-virtual-scroll-content-wrapper{width:100%}watt-code pre .cdk-virtual-scroll-content-wrapper code{padding:2px 8px;line-height:20px;font-family:monospace;white-space:pre;width:100%;display:block;font-size:14px}watt-code pre .cdk-virtual-scroll-content-wrapper code.highlight{background-color:#ffeb3b4d;font-weight:700}\n"] }]
|
|
217
170
|
}], ctorParameters: () => [], propDecorators: { viewport: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkVirtualScrollViewport), { isSignal: true }] }], code: [{ type: i0.Input, args: [{ isSignal: true, alias: "code", required: true }] }], language: [{ type: i0.Input, args: [{ isSignal: true, alias: "language", required: false }] }], discoveredLanguage: [{ type: i0.Output, args: ["discoveredLanguage"] }] } });
|
|
218
|
-
|
|
219
|
-
//#region License
|
|
220
|
-
/**
|
|
221
|
-
* @license
|
|
222
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
223
|
-
*
|
|
224
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
225
|
-
* you may not use this file except in compliance with the License.
|
|
226
|
-
* You may obtain a copy of the License at
|
|
227
|
-
*
|
|
228
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
229
|
-
*
|
|
230
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
231
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
232
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
233
|
-
* See the License for the specific language governing permissions and
|
|
234
|
-
* limitations under the License.
|
|
235
|
-
*/
|
|
236
|
-
//#endregion
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Generated bundle index. Do not edit.
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
|
-
export { WATT_CODE_HIGHLIGHT_WORKER_FACTORY, WattCodeComponent, WattCodeIntlService };
|
|
243
|
-
//# sourceMappingURL=energinet-watt-code.mjs.map
|
|
171
|
+
//# sourceMappingURL=watt-code.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watt-code.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/code/watt-code.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EAET,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;;;AAoC9E,MAAM,OAAO,iBAAiB;IACpB,sBAAsB,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAAC;IACpE,MAAM,GAAG,IAAI,CAAC,sBAAsB,EAAE,EAAE,CAAC;IACjD,IAAI,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAEnC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;IAExD,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAA6B,CAAC;IACnD,QAAQ,GAAG,KAAK,CAA0B,MAAM,oDAAC,CAAC;IAElD,cAAc;IACd,aAAa,GAAG,MAAM,CAAS,EAAE,yDAAC,CAAC;IACnC,cAAc;IACd,OAAO,GAAG,MAAM,CAAC,KAAK,mDAAC,CAAC;IAExB,kBAAkB,GAAG,MAAM,EAAkB,CAAC;IAE9C,uBAAuB;IACvB,UAAU,GAAG,MAAM,CAAC,EAAE,sDAAC,CAAC;IACxB,YAAY,GAAG,MAAM,CAAW,EAAE,wDAAC,CAAC;IACpC,iBAAiB,GAAG,MAAM,CAAS,CAAC,CAAC,6DAAC,CAAC;IAEvC,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE;QACrB,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QAClC,IAAI,CAAC,IAAI;YAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QACvB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC/B,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC3C,CAAC,kDAAC,CAAC;IAEH;QACE,MAAM,CAAC,GAAG,EAAE;YACV,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;YACzB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAE3B,IAAI,CAAC,IAAI;gBAAE,OAAO;YAClB,IAAI,CAAC,IAAI,CAAC,MAAM;gBAAE,OAAO;YACzB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACvB,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC,KAAK,EAAE,EAAE;gBAChC,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC;gBACzD,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;gBACtC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;gBACjD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC1B,CAAC,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAW,CAAC,CAAC;QAC9E,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,GAAG,EAAE;YACV,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YAE/B,IAAI,CAAC,IAAI;gBAAE,OAAO;YAElB,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,EAAE;iBAClC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;iBACtF,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;YAEnC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;YACvC,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC;gBAClE,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YAChC,CAAC;iBAAM,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACxC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACjC,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,iBAAiB,CAAC,KAAa;QAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAC5C,IAAI,UAAU,KAAK,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;QACpC,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC,UAAU,CAAC,KAAK,KAAK,CAAC;IACnD,CAAC;IAED,UAAU;QACR,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QACjC,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACpC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO;QAEjC,IAAI,SAAS,GAAG,IAAI,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;QAC7C,IAAI,SAAS,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YAChC,SAAS,GAAG,CAAC,CAAC;QAChB,CAAC;QAED,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAEtC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;QACrC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,QAAQ,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IAED,SAAS,CAAC,KAAa;QACrB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,cAAc;IACd,WAAW;QACT,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC;IAC3B,CAAC;wGA/FU,iBAAiB;4FAAjB,iBAAiB,uaAKE,wBAAwB,gEArC5C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BT,0mBAIS,oBAAoB,8FAAE,mBAAmB,sEAAE,eAAe,4jBAAE,mBAAmB;;4FAE9E,iBAAiB;kBAlC7B,SAAS;+BACE,WAAW,YACX;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BT,mBAEgB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,WAC5B,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,eAAe,EAAE,mBAAmB,CAAC;oHAO5D,wBAAwB","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 output,\n signal,\n inject,\n effect,\n computed,\n viewChild,\n Component,\n OnDestroy,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { ScrollingModule, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';\n\nimport { VaterStackComponent } from '@energinet/watt/vater';\nimport { WattSearchComponent } from '@energinet/watt/search';\nimport { WattSpinnerComponent } from '@energinet/watt/spinner';\n\nimport { WattCodeIntlService } from './watt-code-intl.service';\nimport { WATT_CODE_HIGHLIGHT_WORKER_FACTORY } from './watt-code.worker.token';\n\n@Component({\n selector: 'watt-code',\n template: `\n @if (loading()) {\n <vater-stack fill=\"horizontal\" align=\"center\">\n <watt-spinner />\n </vater-stack>\n } @else {\n <watt-search\n size=\"m\"\n [label]=\"intl.searchPlaceholder\"\n (search)=\"searchTerm.set($event)\"\n (keyup.enter)=\"searchNext()\"\n />\n <pre>\n <cdk-virtual-scroll-viewport \n [itemSize]=\"20\" \n minBufferPx=\"500\"\n maxBufferPx=\"1000\"\n class=\"viewport\" \n style=\"height: 100%; width: 100%;\">\n <code *cdkVirtualFor=\"let item of chunks(); let i = index; trackBy: trackByFn\" \n [attr.data-index]=\"i\"\n [innerHTML]=\"item\" \n [class.highlight]=\"isLineHighlighted(i)\"></code>\n </cdk-virtual-scroll-viewport>\n </pre>\n }\n `,\n styleUrls: ['./watt-code.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [WattSpinnerComponent, VaterStackComponent, ScrollingModule, WattSearchComponent],\n})\nexport class WattCodeComponent implements OnDestroy {\n private highlightWorkerFactory = inject(WATT_CODE_HIGHLIGHT_WORKER_FACTORY);\n private worker = this.highlightWorkerFactory?.();\n intl = inject(WattCodeIntlService);\n\n viewport = viewChild.required(CdkVirtualScrollViewport);\n\n code = input.required<string | null | undefined>();\n language = input<'xml' | 'json' | 'auto'>('auto');\n\n /** @ignore */\n formattedCode = signal<string>('');\n /** @ignore */\n loading = signal(false);\n\n discoveredLanguage = output<'json' | 'xml'>();\n\n // Search functionality\n searchTerm = signal('');\n matchIndices = signal<number[]>([]);\n currentMatchIndex = signal<number>(-1);\n\n chunks = computed(() => {\n const code = this.formattedCode();\n if (!code) return [''];\n const lines = code.split('\\n');\n return lines.length === 0 ? [''] : lines;\n });\n\n constructor() {\n effect(() => {\n const code = this.code();\n this.formattedCode.set('');\n\n if (!code) return;\n if (!this.worker) return;\n this.loading.set(true);\n this.worker.onmessage = (event) => {\n const { formattedData, discoveredLanguage } = event.data;\n this.formattedCode.set(formattedData);\n this.discoveredLanguage.emit(discoveredLanguage);\n this.loading.set(false);\n };\n this.worker.postMessage({ data: code, language: this.language() } as const);\n });\n\n effect(() => {\n const term = this.searchTerm();\n\n if (!term) return;\n\n const newMatchIndices = this.chunks()\n .map((chunk, index) => (chunk.toLowerCase().includes(term.toLowerCase()) ? index : -1))\n .filter((index) => index !== -1);\n\n this.matchIndices.set(newMatchIndices);\n if (newMatchIndices.length > 0 && this.currentMatchIndex() === -1) {\n this.currentMatchIndex.set(0);\n } else if (newMatchIndices.length === 0) {\n this.currentMatchIndex.set(-1);\n }\n });\n }\n\n isLineHighlighted(index: number): boolean {\n const matchIndex = this.currentMatchIndex();\n if (matchIndex === -1) return false;\n return this.matchIndices()[matchIndex] === index;\n }\n\n searchNext(): void {\n const viewport = this.viewport();\n const matches = this.matchIndices();\n if (matches.length === 0) return;\n\n let nextIndex = this.currentMatchIndex() + 1;\n if (nextIndex >= matches.length) {\n nextIndex = 0;\n }\n\n this.currentMatchIndex.set(nextIndex);\n\n const lineIndex = matches[nextIndex];\n if (lineIndex !== undefined) {\n viewport.scrollToIndex(lineIndex);\n }\n }\n\n trackByFn(index: number): number {\n return index;\n }\n\n /** @ignore */\n ngOnDestroy(): void {\n this.worker?.terminate();\n }\n}\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
|
+
import { InjectionToken } from '@angular/core';
|
|
20
|
+
export const WATT_CODE_HIGHLIGHT_WORKER_FACTORY = new InjectionToken('WattCodeHighlightWorkerFactory', { factory: () => null });
|
|
21
|
+
//# sourceMappingURL=watt-code.worker.token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watt-code.worker.token.js","sourceRoot":"","sources":["../../../../libs/watt/package/code/watt-code.worker.token.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,CAAC,MAAM,kCAAkC,GAAG,IAAI,cAAc,CAClE,gCAAgC,EAChC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CACxB,CAAC","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { InjectionToken } from '@angular/core';\n\nexport const WATT_CODE_HIGHLIGHT_WORKER_FACTORY = new InjectionToken<(() => Worker) | null>(\n 'WattCodeHighlightWorkerFactory',\n { factory: () => null }\n);\n"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { BreakpointObserver } from '@angular/cdk/layout';
|
|
20
|
+
import { Injectable, inject } from '@angular/core';
|
|
21
|
+
import { WattBreakpoint } from './breakpoints';
|
|
22
|
+
import * as i0 from "@angular/core";
|
|
23
|
+
export class WattBreakpointsObserver {
|
|
24
|
+
breakpointObserver = inject(BreakpointObserver);
|
|
25
|
+
observe(breakpoints) {
|
|
26
|
+
if (Array.isArray(breakpoints)) {
|
|
27
|
+
return this.breakpointObserver.observe(breakpoints.map((bp) => WattBreakpoint[bp]));
|
|
28
|
+
}
|
|
29
|
+
return this.breakpointObserver.observe(WattBreakpoint[breakpoints]);
|
|
30
|
+
}
|
|
31
|
+
isMatched(breakpoint) {
|
|
32
|
+
return this.breakpointObserver.isMatched(WattBreakpoint[breakpoint]);
|
|
33
|
+
}
|
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattBreakpointsObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
35
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattBreakpointsObserver, providedIn: 'root' });
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattBreakpointsObserver, decorators: [{
|
|
38
|
+
type: Injectable,
|
|
39
|
+
args: [{ providedIn: 'root' }]
|
|
40
|
+
}] });
|
|
41
|
+
//# sourceMappingURL=breakpoints-observer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoints-observer.js","sourceRoot":"","sources":["../../../../../libs/watt/package/core/breakpoints/breakpoints-observer.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,cAAc,EAAsB,MAAM,eAAe,CAAC;;AAenE,MAAM,OAAO,uBAAuB;IACjB,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAEjE,OAAO,CAAC,WAAsD;QAC5D,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;YAC/B,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACtF,CAAC;QACD,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,SAAS,CAAC,UAA8B;QACtC,OAAO,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;IACvE,CAAC;wGAZU,uBAAuB;4GAAvB,uBAAuB,cADV,MAAM;;4FACnB,uBAAuB;kBADnC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { BreakpointObserver } from '@angular/cdk/layout';\nimport { Injectable, inject } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { WattBreakpoint, WattBreakpointType } from './breakpoints';\n\nexport interface WattBreakpointState {\n /** Whether the breakpoint is currently matching. */\n matches: boolean;\n /**\n * A key boolean pair for each query provided to the observe method,\n * with its current matched state.\n */\n breakpoints: {\n [key: string]: boolean;\n };\n}\n\n@Injectable({ providedIn: 'root' })\nexport class WattBreakpointsObserver {\n private readonly breakpointObserver = inject(BreakpointObserver);\n\n observe(breakpoints: WattBreakpointType | WattBreakpointType[]): Observable<WattBreakpointState> {\n if (Array.isArray(breakpoints)) {\n return this.breakpointObserver.observe(breakpoints.map((bp) => WattBreakpoint[bp]));\n }\n return this.breakpointObserver.observe(WattBreakpoint[breakpoints]);\n }\n\n isMatched(breakpoint: WattBreakpointType): boolean {\n return this.breakpointObserver.isMatched(WattBreakpoint[breakpoint]);\n }\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
/**
|
|
20
|
+
* NOTE: Keep in sync with ./_breakpoints.scss
|
|
21
|
+
* NOTE: We don't use CSS Custom Properties for our breakpoints,
|
|
22
|
+
* because they can't be used in media queries and we don't want those changed on the fly
|
|
23
|
+
*/
|
|
24
|
+
export const WattBreakpoint = {
|
|
25
|
+
XSmall: '(max-width: 599.98px)',
|
|
26
|
+
Small: '(min-width: 600px) and (max-width: 959.98px)',
|
|
27
|
+
Medium: '(min-width: 960px) and (max-width: 1279.98px)',
|
|
28
|
+
Large: '(min-width: 1280px) and (max-width: 1919.98px)',
|
|
29
|
+
XLarge: '(min-width: 1920px)',
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=breakpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../../../../libs/watt/package/core/breakpoints/breakpoints.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,MAAM,EAAE,uBAAgC;IACxC,KAAK,EAAE,8CAAuD;IAC9D,MAAM,EAAE,+CAAwD;IAChE,KAAK,EAAE,gDAAyD;IAChE,MAAM,EAAE,qBAA8B;CACvC,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\n/**\n * NOTE: Keep in sync with ./_breakpoints.scss\n * NOTE: We don't use CSS Custom Properties for our breakpoints,\n * because they can't be used in media queries and we don't want those changed on the fly\n */\nexport const WattBreakpoint = {\n XSmall: '(max-width: 599.98px)' as const,\n Small: '(min-width: 600px) and (max-width: 959.98px)' as const,\n Medium: '(min-width: 960px) and (max-width: 1279.98px)' as const,\n Large: '(min-width: 1280px) and (max-width: 1919.98px)' as const,\n XLarge: '(min-width: 1920px)' as const,\n};\n\nexport type WattBreakpointType = keyof typeof WattBreakpoint;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energinet-watt-core-breakpoints.js","sourceRoot":"","sources":["../../../../../libs/watt/package/core/breakpoints/energinet-watt-core-breakpoints.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 { WattBreakpointsObserver } from './breakpoints-observer';
|
|
20
|
+
export { WattBreakpoint } from './breakpoints';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|