@energinet/watt 4.2.4 → 4.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/badge/watt-badge.component.js +3 -3
- package/esm2022/badge/watt-badge.component.js.map +1 -1
- package/esm2022/breadcrumbs/watt-breadcrumbs.component.js +6 -6
- package/esm2022/breadcrumbs/watt-breadcrumbs.component.js.map +1 -1
- package/esm2022/button/watt-button.component.js +3 -3
- package/esm2022/button/watt-button.component.js.map +1 -1
- package/esm2022/card/watt-card-title.component.js +3 -3
- package/esm2022/card/watt-card-title.component.js.map +1 -1
- package/esm2022/card/watt-card.component.js +3 -3
- package/esm2022/card/watt-card.component.js.map +1 -1
- package/esm2022/checkbox/watt-checkbox.component.js +3 -3
- package/esm2022/checkbox/watt-checkbox.component.js.map +1 -1
- package/esm2022/chip/watt-action-chip.component.js +3 -3
- package/esm2022/chip/watt-action-chip.component.js.map +1 -1
- package/esm2022/chip/watt-chip.component.js +3 -3
- package/esm2022/chip/watt-chip.component.js.map +1 -1
- package/esm2022/chip/watt-chip.directive.js +3 -3
- package/esm2022/chip/watt-chip.directive.js.map +1 -1
- package/esm2022/chip/watt-date-chip.component.js +3 -3
- package/esm2022/chip/watt-date-chip.component.js.map +1 -1
- package/esm2022/chip/watt-date-range-chip.component.js +6 -6
- package/esm2022/chip/watt-date-range-chip.component.js.map +1 -1
- package/esm2022/chip/watt-filter-chip.component.js +3 -3
- package/esm2022/chip/watt-filter-chip.component.js.map +1 -1
- package/esm2022/chip/watt-menu-chip.component.js +3 -3
- package/esm2022/chip/watt-menu-chip.component.js.map +1 -1
- package/esm2022/clipboard/watt-clipboard-intl.service.js +3 -3
- package/esm2022/clipboard/watt-clipboard-intl.service.js.map +1 -1
- package/esm2022/clipboard/watt-copy-to-clipboard.directive.js +3 -3
- package/esm2022/clipboard/watt-copy-to-clipboard.directive.js.map +1 -1
- package/esm2022/code/watt-code-intl.service.js +3 -3
- package/esm2022/code/watt-code-intl.service.js.map +1 -1
- package/esm2022/code/watt-code.component.js +3 -3
- package/esm2022/code/watt-code.component.js.map +1 -1
- package/esm2022/core/breakpoints/breakpoints-observer.js +3 -3
- package/esm2022/core/breakpoints/breakpoints-observer.js.map +1 -1
- package/esm2022/core/color/color-helper.service.js +3 -3
- package/esm2022/core/color/color-helper.service.js.map +1 -1
- package/esm2022/core/date/watt-date.pipe.js +3 -3
- package/esm2022/core/date/watt-date.pipe.js.map +1 -1
- package/esm2022/core/date/watt-locale.service.js +3 -3
- package/esm2022/core/date/watt-locale.service.js.map +1 -1
- package/esm2022/data/watt-data-actions.component.js +3 -3
- package/esm2022/data/watt-data-actions.component.js.map +1 -1
- package/esm2022/data/watt-data-filters.component.js +3 -3
- package/esm2022/data/watt-data-filters.component.js.map +1 -1
- package/esm2022/data/watt-data-intl.service.js +3 -3
- package/esm2022/data/watt-data-intl.service.js.map +1 -1
- package/esm2022/data/watt-data-table.component.js +3 -3
- package/esm2022/data/watt-data-table.component.js.map +1 -1
- package/esm2022/datetime-field/watt-datetime-field.component.js +3 -3
- package/esm2022/datetime-field/watt-datetime-field.component.js.map +1 -1
- package/esm2022/description-list/watt-description-list-item.component.js +3 -3
- package/esm2022/description-list/watt-description-list-item.component.js.map +1 -1
- package/esm2022/description-list/watt-description-list.component.js +3 -3
- package/esm2022/description-list/watt-description-list.component.js.map +1 -1
- package/esm2022/drawer/watt-drawer-actions.component.js +3 -3
- package/esm2022/drawer/watt-drawer-actions.component.js.map +1 -1
- package/esm2022/drawer/watt-drawer-content.component.js +3 -3
- package/esm2022/drawer/watt-drawer-content.component.js.map +1 -1
- package/esm2022/drawer/watt-drawer-heading.component.js +3 -3
- package/esm2022/drawer/watt-drawer-heading.component.js.map +1 -1
- package/esm2022/drawer/watt-drawer-topbar.component.js +3 -3
- package/esm2022/drawer/watt-drawer-topbar.component.js.map +1 -1
- package/esm2022/drawer/watt-drawer.component.js +3 -3
- package/esm2022/drawer/watt-drawer.component.js.map +1 -1
- package/esm2022/dropdown/watt-dropdown.component.js +3 -3
- package/esm2022/dropdown/watt-dropdown.component.js.map +1 -1
- package/esm2022/dropzone/watt-dropzone-intl.js +3 -3
- package/esm2022/dropzone/watt-dropzone-intl.js.map +1 -1
- package/esm2022/dropzone/watt-dropzone-validators.js +6 -6
- package/esm2022/dropzone/watt-dropzone-validators.js.map +1 -1
- package/esm2022/dropzone/watt-dropzone.js +3 -3
- package/esm2022/dropzone/watt-dropzone.js.map +1 -1
- package/esm2022/empty-state/icons/explore.js +3 -3
- package/esm2022/empty-state/icons/explore.js.map +1 -1
- package/esm2022/empty-state/icons/no-results.js +3 -3
- package/esm2022/empty-state/icons/no-results.js.map +1 -1
- package/esm2022/empty-state/icons/not-found.js +3 -3
- package/esm2022/empty-state/icons/not-found.js.map +1 -1
- package/esm2022/empty-state/icons/power.js +3 -3
- package/esm2022/empty-state/icons/power.js.map +1 -1
- package/esm2022/empty-state/watt-empty-state.component.js +3 -3
- package/esm2022/empty-state/watt-empty-state.component.js.map +1 -1
- package/esm2022/expandable-card/watt-expandable-card.component.js +9 -9
- package/esm2022/expandable-card/watt-expandable-card.component.js.map +1 -1
- package/esm2022/field/watt-field-error.component.js +3 -3
- package/esm2022/field/watt-field-error.component.js.map +1 -1
- package/esm2022/field/watt-field-hint.component.js +3 -3
- package/esm2022/field/watt-field-hint.component.js.map +1 -1
- package/esm2022/field/watt-field-intl.service.js +3 -3
- package/esm2022/field/watt-field-intl.service.js.map +1 -1
- package/esm2022/field/watt-field-warning.component.js +3 -3
- package/esm2022/field/watt-field-warning.component.js.map +1 -1
- package/esm2022/field/watt-field.component.js +3 -3
- package/esm2022/field/watt-field.component.js.map +1 -1
- package/esm2022/file-field/watt-file-field.component.js +3 -3
- package/esm2022/file-field/watt-file-field.component.js.map +1 -1
- package/esm2022/icon/flags/watt-flag-ch.js +3 -3
- package/esm2022/icon/flags/watt-flag-ch.js.map +1 -1
- package/esm2022/icon/flags/watt-flag-de.js +3 -3
- package/esm2022/icon/flags/watt-flag-de.js.map +1 -1
- package/esm2022/icon/flags/watt-flag-dk.js +3 -3
- package/esm2022/icon/flags/watt-flag-dk.js.map +1 -1
- package/esm2022/icon/flags/watt-flag-fi.js +3 -3
- package/esm2022/icon/flags/watt-flag-fi.js.map +1 -1
- package/esm2022/icon/flags/watt-flag-gb.js +3 -3
- package/esm2022/icon/flags/watt-flag-gb.js.map +1 -1
- package/esm2022/icon/flags/watt-flag-nl.js +3 -3
- package/esm2022/icon/flags/watt-flag-nl.js.map +1 -1
- package/esm2022/icon/flags/watt-flag-no.js +3 -3
- package/esm2022/icon/flags/watt-flag-no.js.map +1 -1
- package/esm2022/icon/flags/watt-flag-pl.js +3 -3
- package/esm2022/icon/flags/watt-flag-pl.js.map +1 -1
- package/esm2022/icon/flags/watt-flag-se.js +3 -3
- package/esm2022/icon/flags/watt-flag-se.js.map +1 -1
- package/esm2022/icon/flags/watt-flag.js +3 -3
- package/esm2022/icon/flags/watt-flag.js.map +1 -1
- package/esm2022/icon/icon.component.js +3 -3
- package/esm2022/icon/icon.component.js.map +1 -1
- package/esm2022/menu/watt-menu-group.component.js +3 -3
- package/esm2022/menu/watt-menu-group.component.js.map +1 -1
- package/esm2022/menu/watt-menu-item.component.js +3 -3
- package/esm2022/menu/watt-menu-item.component.js.map +1 -1
- package/esm2022/menu/watt-menu-trigger.directive.js +3 -3
- package/esm2022/menu/watt-menu-trigger.directive.js.map +1 -1
- package/esm2022/menu/watt-menu.component.js +3 -3
- package/esm2022/menu/watt-menu.component.js.map +1 -1
- package/esm2022/modal/watt-modal.component.js +6 -6
- package/esm2022/modal/watt-modal.component.js.map +1 -1
- package/esm2022/modal/watt-modal.service.js +3 -3
- package/esm2022/modal/watt-modal.service.js.map +1 -1
- package/esm2022/paginator/watt-paginator-intl.service.js +3 -3
- package/esm2022/paginator/watt-paginator-intl.service.js.map +1 -1
- package/esm2022/paginator/watt-paginator.component.js +3 -3
- package/esm2022/paginator/watt-paginator.component.js.map +1 -1
- package/esm2022/phone-field/watt-phone-field-intl.service.js +3 -3
- package/esm2022/phone-field/watt-phone-field-intl.service.js.map +1 -1
- package/esm2022/phone-field/watt-phone-field.component.js +3 -3
- package/esm2022/phone-field/watt-phone-field.component.js.map +1 -1
- package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js +3 -3
- package/esm2022/picker/__shared/placeholder-mask/watt-placeholder-mask.component.js.map +1 -1
- package/esm2022/picker/__shared/watt-picker-base.js +3 -3
- package/esm2022/picker/__shared/watt-picker-base.js.map +1 -1
- package/esm2022/picker/datepicker/watt-datepicker-intl.service.js +3 -3
- package/esm2022/picker/datepicker/watt-datepicker-intl.service.js.map +1 -1
- package/esm2022/picker/datepicker/watt-datepicker.component.js +3 -3
- package/esm2022/picker/datepicker/watt-datepicker.component.js.map +1 -1
- package/esm2022/picker/timepicker/watt-timepicker.component.js +3 -3
- package/esm2022/picker/timepicker/watt-timepicker.component.js.map +1 -1
- package/esm2022/progress-tracker/watt-progress-tracker-step.component.js +3 -3
- package/esm2022/progress-tracker/watt-progress-tracker-step.component.js.map +1 -1
- package/esm2022/progress-tracker/watt-progress-tracker.component.js +3 -3
- package/esm2022/progress-tracker/watt-progress-tracker.component.js.map +1 -1
- package/esm2022/query-params/watt-query-params.directive.js +3 -3
- package/esm2022/query-params/watt-query-params.directive.js.map +1 -1
- package/esm2022/radio/watt-radio-group.component.js +3 -3
- package/esm2022/radio/watt-radio-group.component.js.map +1 -1
- package/esm2022/radio/watt-radio.component.js +3 -3
- package/esm2022/radio/watt-radio.component.js.map +1 -1
- package/esm2022/search/watt-search.component.js +3 -3
- package/esm2022/search/watt-search.component.js.map +1 -1
- package/esm2022/segmented-buttons/watt-segmented-button.component.js +3 -3
- package/esm2022/segmented-buttons/watt-segmented-button.component.js.map +1 -1
- package/esm2022/segmented-buttons/watt-segmented-buttons.component.js +3 -3
- package/esm2022/segmented-buttons/watt-segmented-buttons.component.js.map +1 -1
- package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js +3 -3
- package/esm2022/shell/nav-list/watt-expand-on-active-link.directive.js.map +1 -1
- package/esm2022/shell/nav-list/watt-nav-list-item.component.js +3 -3
- package/esm2022/shell/nav-list/watt-nav-list-item.component.js.map +1 -1
- package/esm2022/shell/nav-list/watt-nav-list.component.js +3 -3
- package/esm2022/shell/nav-list/watt-nav-list.component.js.map +1 -1
- package/esm2022/shell/shell.component.js +3 -3
- package/esm2022/shell/shell.component.js.map +1 -1
- package/esm2022/slide-toggle/watt-slide-toggle.component.js +3 -3
- package/esm2022/slide-toggle/watt-slide-toggle.component.js.map +1 -1
- package/esm2022/slider/watt-slider.component.js +3 -3
- package/esm2022/slider/watt-slider.component.js.map +1 -1
- package/esm2022/spinner/watt-spinner.component.js +3 -3
- package/esm2022/spinner/watt-spinner.component.js.map +1 -1
- package/esm2022/stepper/watt-stepper-step.component.js +3 -3
- package/esm2022/stepper/watt-stepper-step.component.js.map +1 -1
- package/esm2022/stepper/watt-stepper.component.js +3 -3
- package/esm2022/stepper/watt-stepper.component.js.map +1 -1
- package/esm2022/table/watt-table.component.js +9 -9
- package/esm2022/table/watt-table.component.js.map +1 -1
- package/esm2022/tabs/watt-link-tab.component.js +3 -3
- package/esm2022/tabs/watt-link-tab.component.js.map +1 -1
- package/esm2022/tabs/watt-link-tabs.component.js +3 -3
- package/esm2022/tabs/watt-link-tabs.component.js.map +1 -1
- package/esm2022/tabs/watt-tab.component.js +3 -3
- package/esm2022/tabs/watt-tab.component.js.map +1 -1
- package/esm2022/tabs/watt-tabs-action.component.js +3 -3
- package/esm2022/tabs/watt-tabs-action.component.js.map +1 -1
- package/esm2022/tabs/watt-tabs.component.js +3 -3
- package/esm2022/tabs/watt-tabs.component.js.map +1 -1
- package/esm2022/text-field/watt-text-field.component.js +3 -3
- package/esm2022/text-field/watt-text-field.component.js.map +1 -1
- package/esm2022/textarea-field/watt-textarea-field.component.js +3 -3
- package/esm2022/textarea-field/watt-textarea-field.component.js.map +1 -1
- package/esm2022/toast/watt-toast.component.js +3 -3
- package/esm2022/toast/watt-toast.component.js.map +1 -1
- package/esm2022/toast/watt-toast.service.js +3 -3
- package/esm2022/toast/watt-toast.service.js.map +1 -1
- package/esm2022/tooltip/watt-tooltip.component.js +3 -3
- package/esm2022/tooltip/watt-tooltip.component.js.map +1 -1
- package/esm2022/tooltip/watt-tooltip.directive.js +3 -3
- package/esm2022/tooltip/watt-tooltip.directive.js.map +1 -1
- package/esm2022/utils/css/css-custom-properties.service.js +3 -3
- package/esm2022/utils/css/css-custom-properties.service.js.map +1 -1
- package/esm2022/utils/intersection-observer/watt-intersection-observer.service.js +3 -3
- package/esm2022/utils/intersection-observer/watt-intersection-observer.service.js.map +1 -1
- package/esm2022/utils/resize-observer/watt-resize-observer.directive.js +3 -3
- package/esm2022/utils/resize-observer/watt-resize-observer.directive.js.map +1 -1
- package/esm2022/utils/resize-observer/watt-resize-observer.service.js +3 -3
- package/esm2022/utils/resize-observer/watt-resize-observer.service.js.map +1 -1
- package/esm2022/validation-message/watt-validation-message.component.js +3 -3
- package/esm2022/validation-message/watt-validation-message.component.js.map +1 -1
- package/esm2022/vater/vater-flex.component.js +3 -3
- package/esm2022/vater/vater-flex.component.js.map +1 -1
- package/esm2022/vater/vater-layout.directive.js +3 -3
- package/esm2022/vater/vater-layout.directive.js.map +1 -1
- package/esm2022/vater/vater-spacer.component.js +3 -3
- package/esm2022/vater/vater-spacer.component.js.map +1 -1
- package/esm2022/vater/vater-stack.component.js +3 -3
- package/esm2022/vater/vater-stack.component.js.map +1 -1
- package/esm2022/vater/vater-utility.directive.js +3 -3
- package/esm2022/vater/vater-utility.directive.js.map +1 -1
- package/esm2022/year-field/watt-year-field.component.js +3 -3
- package/esm2022/year-field/watt-year-field.component.js.map +1 -1
- package/esm2022/yearmonth-field/watt-yearmonth-field.component.js +3 -3
- package/esm2022/yearmonth-field/watt-yearmonth-field.component.js.map +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wat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,CAAC,IAAI,CAAC,iBAAiB,EAAE;4BAC1E,IAAI,EAAE,4BAA4B;yBACnC;qBACF,YACS,sBAAsB,iBACjB,iBAAiB,CAAC,IAAI,YAqB3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDT,QACK;wBACJ,yBAAyB,EAAE,eAAe;qBAC3C","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 { FormControl } from '@angular/forms';\nimport {\n input,\n model,\n output,\n inject,\n Component,\n Injectable,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DateAdapter } from '@angular/material/core';\n\nimport {\n DateRange,\n MatDatepickerModule,\n MAT_DATE_RANGE_SELECTION_STRATEGY,\n DefaultMatCalendarRangeStrategy,\n} from '@angular/material/datepicker';\n\nimport { WattFieldComponent } from '@energinet/watt/field';\nimport { WattButtonComponent } from '@energinet/watt/button';\nimport { dayjs, WattDatePipe, WattRange } from '@energinet/watt/core/date';\nimport { WattDatepickerIntlService } from '@energinet/watt/picker/datepicker';\n\nimport { WattMenuChipComponent } from './watt-menu-chip.component';\n\ntype customSelectionStrategy = (date: Date | null) => DateRange<Date>;\n@Injectable({\n providedIn: 'root',\n})\nexport class WattDateRangeSelectionStrategy extends DefaultMatCalendarRangeStrategy<Date> {\n private customSelectionStrategy!: customSelectionStrategy;\n\n setCustomSelectionStrategy(strategy: customSelectionStrategy) {\n this.customSelectionStrategy = strategy;\n }\n\n override selectionFinished(date: Date, currentRange: DateRange<Date>): DateRange<Date> {\n let range: DateRange<Date> = super.selectionFinished(date, currentRange);\n\n if (this.customSelectionStrategy) {\n range = this.customSelectionStrategy(date);\n }\n\n return range.end ? new DateRange(range.start, dayjs(range.end).endOf('day').toDate()) : range;\n }\n\n override createPreview(activeDate: Date | null, currentRange: DateRange<Date>): DateRange<Date> {\n if (!this.customSelectionStrategy) {\n return super.createPreview(activeDate, currentRange);\n } else {\n return this.customSelectionStrategy(activeDate);\n }\n }\n}\n\n@Component({\n imports: [\n MatDatepickerModule,\n WattDatePipe,\n WattFieldComponent,\n WattButtonComponent,\n WattMenuChipComponent,\n ],\n providers: [\n {\n provide: MAT_DATE_RANGE_SELECTION_STRATEGY,\n useFactory: (comp: WattDateRangeChipComponent) => comp.selectionStrategy(),\n deps: [WattDateRangeChipComponent],\n },\n ],\n selector: 'watt-date-range-chip',\n encapsulation: ViewEncapsulation.None,\n styles: [\n `\n watt-date-range-chip {\n mat-date-range-input {\n top: 0;\n bottom: 0;\n height: auto;\n visibility: hidden;\n }\n\n &.has-placeholder .value::before {\n content: ':';\n }\n\n watt-field label .watt-field-wrapper {\n background-color: transparent;\n }\n }\n `,\n ],\n template: `\n <mat-date-range-picker #picker>\n @if (showActions()) {\n <mat-date-range-picker-actions>\n <watt-button variant=\"text\" (click)=\"clearInput()\" icon=\"remove\">{{\n intl.clear\n }}</watt-button>\n <watt-button variant=\"primary\" matDateRangePickerApply>{{ intl.select }}</watt-button>\n </mat-date-range-picker-actions>\n }\n </mat-date-range-picker>\n\n <watt-field [control]=\"formControl()\" [chipMode]=\"true\">\n <watt-menu-chip\n hasPopup=\"dialog\"\n [disabled]=\"disabled()\"\n [selected]=\"value()?.start && value()?.end ? true : false\"\n [opened]=\"picker.opened\"\n (toggleChange)=\"picker.open()\"\n >\n <mat-date-range-input\n #input\n class=\"cdk-visually-hidden\"\n separator=\"\"\n [rangePicker]=\"picker\"\n >\n <input\n type=\"text\"\n matStartDate\n tabindex=\"-1\"\n role=\"none\"\n [value]=\"value() ? value()?.start : null\"\n (dateChange)=\"updateStartDate($event.value!)\"\n (dateChange)=\"showActions() && onSelectionChange($event.value ? input.value! : null)\"\n />\n <input\n type=\"text\"\n matEndDate\n tabindex=\"-1\"\n role=\"none\"\n [value]=\"value() ? value()?.end : null\"\n (dateChange)=\"updateEndDate($event.value!)\"\n (dateChange)=\"onSelectionChange($event.value ? input.value! : null)\"\n />\n </mat-date-range-input>\n <ng-content />\n @if (value()?.start && value()?.end) {\n <span class=\"value\">\n {{ value() | wattDate }}\n </span>\n }\n </watt-menu-chip>\n <ng-content ngProjectAs=\"watt-field-hint\" select=\"watt-field-hint\" />\n <ng-content ngProjectAs=\"watt-field-error\" select=\"watt-field-error\" />\n </watt-field>\n `,\n host: {\n '[class.has-placeholder]': 'placeholder()',\n },\n})\nexport class WattDateRangeChipComponent {\n protected intl = inject(WattDatepickerIntlService);\n private dateAdapter = inject(DateAdapter);\n\n disabled = model(false);\n label = input<string>();\n value = model<WattRange<Date> | null>(null);\n formControl = input.required<FormControl>();\n placeholder = input(true);\n showActions = input(false);\n customSelectionStrategy = input<(date: Date | null) => DateRange<Date>>();\n\n selectionChange = output<WattRange<Date> | null>();\n\n selectionStrategy() {\n const customStrategy = this.customSelectionStrategy();\n const strategy = new WattDateRangeSelectionStrategy(this.dateAdapter);\n if (customStrategy) strategy.setCustomSelectionStrategy(customStrategy);\n return strategy;\n }\n\n clearInput() {\n this.value.set(null);\n this.selectionChange.emit(null);\n }\n\n onSelectionChange(value: WattRange<Date> | null) {\n if (value === null || (value?.start && value?.end)) {\n this.selectionChange.emit(value);\n }\n }\n\n updateStartDate(startDate: Date) {\n this.value.set({ start: startDate, end: null });\n }\n\n updateEndDate(endDate: Date | null) {\n const dateRange = this.value();\n if (dateRange) {\n this.value.set({ start: dateRange.start, end: endDate });\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"watt-date-range-chip.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/chip/watt-date-range-chip.component.ts"],"names":[],"mappings":"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BAAsB,iBACjB,iBAAiB,CAAC,IAAI,YAqB3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDT,QACK;wBACJ,yBAAyB,EAAE,eAAe;qBAC3C","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 { FormControl } from '@angular/forms';\nimport {\n input,\n model,\n output,\n inject,\n Component,\n Injectable,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DateAdapter } from '@angular/material/core';\n\nimport {\n DateRange,\n MatDatepickerModule,\n MAT_DATE_RANGE_SELECTION_STRATEGY,\n DefaultMatCalendarRangeStrategy,\n} from '@angular/material/datepicker';\n\nimport { WattFieldComponent } from '@energinet/watt/field';\nimport { WattButtonComponent } from '@energinet/watt/button';\nimport { dayjs, WattDatePipe, WattRange } from '@energinet/watt/core/date';\nimport { WattDatepickerIntlService } from '@energinet/watt/picker/datepicker';\n\nimport { WattMenuChipComponent } from './watt-menu-chip.component';\n\ntype customSelectionStrategy = (date: Date | null) => DateRange<Date>;\n@Injectable({\n providedIn: 'root',\n})\nexport class WattDateRangeSelectionStrategy extends DefaultMatCalendarRangeStrategy<Date> {\n private customSelectionStrategy!: customSelectionStrategy;\n\n setCustomSelectionStrategy(strategy: customSelectionStrategy) {\n this.customSelectionStrategy = strategy;\n }\n\n override selectionFinished(date: Date, currentRange: DateRange<Date>): DateRange<Date> {\n let range: DateRange<Date> = super.selectionFinished(date, currentRange);\n\n if (this.customSelectionStrategy) {\n range = this.customSelectionStrategy(date);\n }\n\n return range.end ? new DateRange(range.start, dayjs(range.end).endOf('day').toDate()) : range;\n }\n\n override createPreview(activeDate: Date | null, currentRange: DateRange<Date>): DateRange<Date> {\n if (!this.customSelectionStrategy) {\n return super.createPreview(activeDate, currentRange);\n } else {\n return this.customSelectionStrategy(activeDate);\n }\n }\n}\n\n@Component({\n imports: [\n MatDatepickerModule,\n WattDatePipe,\n WattFieldComponent,\n WattButtonComponent,\n WattMenuChipComponent,\n ],\n providers: [\n {\n provide: MAT_DATE_RANGE_SELECTION_STRATEGY,\n useFactory: (comp: WattDateRangeChipComponent) => comp.selectionStrategy(),\n deps: [WattDateRangeChipComponent],\n },\n ],\n selector: 'watt-date-range-chip',\n encapsulation: ViewEncapsulation.None,\n styles: [\n `\n watt-date-range-chip {\n mat-date-range-input {\n top: 0;\n bottom: 0;\n height: auto;\n visibility: hidden;\n }\n\n &.has-placeholder .value::before {\n content: ':';\n }\n\n watt-field label .watt-field-wrapper {\n background-color: transparent;\n }\n }\n `,\n ],\n template: `\n <mat-date-range-picker #picker>\n @if (showActions()) {\n <mat-date-range-picker-actions>\n <watt-button variant=\"text\" (click)=\"clearInput()\" icon=\"remove\">{{\n intl.clear\n }}</watt-button>\n <watt-button variant=\"primary\" matDateRangePickerApply>{{ intl.select }}</watt-button>\n </mat-date-range-picker-actions>\n }\n </mat-date-range-picker>\n\n <watt-field [control]=\"formControl()\" [chipMode]=\"true\">\n <watt-menu-chip\n hasPopup=\"dialog\"\n [disabled]=\"disabled()\"\n [selected]=\"value()?.start && value()?.end ? true : false\"\n [opened]=\"picker.opened\"\n (toggleChange)=\"picker.open()\"\n >\n <mat-date-range-input\n #input\n class=\"cdk-visually-hidden\"\n separator=\"\"\n [rangePicker]=\"picker\"\n >\n <input\n type=\"text\"\n matStartDate\n tabindex=\"-1\"\n role=\"none\"\n [value]=\"value() ? value()?.start : null\"\n (dateChange)=\"updateStartDate($event.value!)\"\n (dateChange)=\"showActions() && onSelectionChange($event.value ? input.value! : null)\"\n />\n <input\n type=\"text\"\n matEndDate\n tabindex=\"-1\"\n role=\"none\"\n [value]=\"value() ? value()?.end : null\"\n (dateChange)=\"updateEndDate($event.value!)\"\n (dateChange)=\"onSelectionChange($event.value ? input.value! : null)\"\n />\n </mat-date-range-input>\n <ng-content />\n @if (value()?.start && value()?.end) {\n <span class=\"value\">\n {{ value() | wattDate }}\n </span>\n }\n </watt-menu-chip>\n <ng-content ngProjectAs=\"watt-field-hint\" select=\"watt-field-hint\" />\n <ng-content ngProjectAs=\"watt-field-error\" select=\"watt-field-error\" />\n </watt-field>\n `,\n host: {\n '[class.has-placeholder]': 'placeholder()',\n },\n})\nexport class WattDateRangeChipComponent {\n protected intl = inject(WattDatepickerIntlService);\n private dateAdapter = inject(DateAdapter);\n\n disabled = model(false);\n label = input<string>();\n value = model<WattRange<Date> | null>(null);\n formControl = input.required<FormControl>();\n placeholder = input(true);\n showActions = input(false);\n customSelectionStrategy = input<(date: Date | null) => DateRange<Date>>();\n\n selectionChange = output<WattRange<Date> | null>();\n\n selectionStrategy() {\n const customStrategy = this.customSelectionStrategy();\n const strategy = new WattDateRangeSelectionStrategy(this.dateAdapter);\n if (customStrategy) strategy.setCustomSelectionStrategy(customStrategy);\n return strategy;\n }\n\n clearInput() {\n this.value.set(null);\n this.selectionChange.emit(null);\n }\n\n onSelectionChange(value: WattRange<Date> | null) {\n if (value === null || (value?.start && value?.end)) {\n this.selectionChange.emit(value);\n }\n }\n\n updateStartDate(startDate: Date) {\n this.value.set({ start: startDate, end: null });\n }\n\n updateEndDate(endDate: Date | null) {\n const dateRange = this.value();\n if (dateRange) {\n this.value.set({ start: dateRange.start, end: endDate });\n }\n }\n}\n"]}
|
|
@@ -40,8 +40,8 @@ export class WattFilterChipComponent {
|
|
|
40
40
|
const value = this.choice() !== undefined ? input.value : input.checked;
|
|
41
41
|
this.selectionChange.emit(value);
|
|
42
42
|
}
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
44
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattFilterChipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: WattFilterChipComponent, isStandalone: true, selector: "watt-filter-chip", inputs: { selected: { classPropertyName: "selected", publicName: "selected", 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 }, choice: { classPropertyName: "choice", publicName: "choice", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange", value: "valueChange", selectionChange: "selectionChange" }, ngImport: i0, template: `
|
|
45
45
|
<watt-chip [disabled]="disabled()" [selected]="isFirstRender() ? selected() : input.checked">
|
|
46
46
|
<input
|
|
47
47
|
#input
|
|
@@ -57,7 +57,7 @@ export class WattFilterChipComponent {
|
|
|
57
57
|
</watt-chip>
|
|
58
58
|
`, isInline: true, dependencies: [{ kind: "component", type: WattChipComponent, selector: "watt-chip", inputs: ["selected", "disabled", "readonly"] }] });
|
|
59
59
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattFilterChipComponent, decorators: [{
|
|
61
61
|
type: Component,
|
|
62
62
|
args: [{
|
|
63
63
|
imports: [WattChipComponent],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watt-filter-chip.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/chip/watt-filter-chip.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;AAE1D,SAAS,aAAa;IACpB,IAAI,aAAa,GAAG,IAAI,CAAC;IACzB,OAAO,GAAG,EAAE;QACV,IAAI,CAAC,aAAa;YAAE,OAAO,KAAK,CAAC;QACjC,aAAa,GAAG,KAAK,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAqBD,MAAM,OAAO,uBAAuB;IAClC,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC,CAAC;IACxB,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC,CAAC;IACxB,IAAI,GAAG,KAAK,0DAAU,CAAC;IACvB,KAAK,GAAG,KAAK,2DAAK,CAAC;IACnB,MAAM,GAAG,KAAK,4DAAU,CAAC;IACzB,eAAe,GAAG,MAAM,EAAK,CAAC;IAC9B,aAAa,GAAG,aAAa,EAAE,CAAC;IAEhC,QAAQ,CAAC,KAAuB;QAC9B,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;QACxE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAU,CAAC,CAAC;IACxC,CAAC;
|
|
1
|
+
{"version":3,"file":"watt-filter-chip.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/chip/watt-filter-chip.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;AAE1D,SAAS,aAAa;IACpB,IAAI,aAAa,GAAG,IAAI,CAAC;IACzB,OAAO,GAAG,EAAE;QACV,IAAI,CAAC,aAAa;YAAE,OAAO,KAAK,CAAC;QACjC,aAAa,GAAG,KAAK,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAqBD,MAAM,OAAO,uBAAuB;IAClC,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC,CAAC;IACxB,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC,CAAC;IACxB,IAAI,GAAG,KAAK,0DAAU,CAAC;IACvB,KAAK,GAAG,KAAK,2DAAK,CAAC;IACnB,MAAM,GAAG,KAAK,4DAAU,CAAC;IACzB,eAAe,GAAG,MAAM,EAAK,CAAC;IAC9B,aAAa,GAAG,aAAa,EAAE,CAAC;IAEhC,QAAQ,CAAC,KAAuB;QAC9B,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;QACxE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAU,CAAC,CAAC;IACxC,CAAC;wGAZU,uBAAuB;4FAAvB,uBAAuB,qyBAhBxB;;;;;;;;;;;;;;GAcT,4DAhBS,iBAAiB;;4FAkBhB,uBAAuB;kBAnBnC,SAAS;mBAAC;oBACT,OAAO,EAAE,CAAC,iBAAiB,CAAC;oBAC5B,QAAQ,EAAE,kBAAkB;oBAC5B,QAAQ,EAAE;;;;;;;;;;;;;;GAcT;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 { Component, input, model, output } from '@angular/core';\n\nimport { WattChipComponent } from './watt-chip.component';\n\nfunction isFirstRender() {\n let isFirstRender = true;\n return () => {\n if (!isFirstRender) return false;\n isFirstRender = false;\n return true;\n };\n}\n\n@Component({\n imports: [WattChipComponent],\n selector: 'watt-filter-chip',\n template: `\n <watt-chip [disabled]=\"disabled()\" [selected]=\"isFirstRender() ? selected() : input.checked\">\n <input\n #input\n class=\"cdk-visually-hidden\"\n [type]=\"choice() === undefined ? 'checkbox' : 'radio'\"\n [name]=\"name()\"\n [value]=\"value()\"\n [checked]=\"selected()\"\n [disabled]=\"disabled()\"\n (change)=\"onChange(input)\"\n />\n <ng-content />\n </watt-chip>\n `,\n})\nexport class WattFilterChipComponent<T = string> {\n selected = input(false);\n disabled = model(false);\n name = input<string>();\n value = model<T>();\n choice = input<string>();\n selectionChange = output<T>();\n isFirstRender = isFirstRender();\n\n onChange(input: HTMLInputElement): void {\n const value = this.choice() !== undefined ? input.value : input.checked;\n this.selectionChange.emit(value as T);\n }\n}\n"]}
|
|
@@ -28,8 +28,8 @@ export class WattMenuChipComponent {
|
|
|
28
28
|
selected = input(false, ...(ngDevMode ? [{ debugName: "selected" }] : []));
|
|
29
29
|
hasPopup = input('menu', ...(ngDevMode ? [{ debugName: "hasPopup" }] : []));
|
|
30
30
|
toggleChange = output();
|
|
31
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
32
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.
|
|
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
33
|
<watt-chip [disabled]="disabled()" [selected]="selected()">
|
|
34
34
|
<button
|
|
35
35
|
class="cdk-visually-hidden"
|
|
@@ -52,7 +52,7 @@ export class WattMenuChipComponent {
|
|
|
52
52
|
</watt-chip>
|
|
53
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
54
|
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattMenuChipComponent, decorators: [{
|
|
56
56
|
type: Component,
|
|
57
57
|
args: [{ imports: [WattChipComponent, WattIconComponent], selector: 'watt-menu-chip', template: `
|
|
58
58
|
<watt-chip [disabled]="disabled()" [selected]="selected()">
|
|
@@ -1 +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;
|
|
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"]}
|
|
@@ -21,10 +21,10 @@ import * as i0 from "@angular/core";
|
|
|
21
21
|
export class WattClipboardIntlService {
|
|
22
22
|
success = 'Copied to clipboard';
|
|
23
23
|
error = 'Failed to copy';
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
25
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
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
26
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattClipboardIntlService, decorators: [{
|
|
28
28
|
type: Injectable,
|
|
29
29
|
args: [{ providedIn: 'root' }]
|
|
30
30
|
}] });
|
|
@@ -1 +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;
|
|
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"]}
|
|
@@ -48,10 +48,10 @@ export class WattCopyToClipboardDirective {
|
|
|
48
48
|
this.copySuccess.emit(false);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
52
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
51
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCopyToClipboardDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
52
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: WattCopyToClipboardDirective, isStandalone: true, selector: "[wattCopyToClipboard]", inputs: { text: { classPropertyName: "text", publicName: "wattCopyToClipboard", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { copySuccess: "copySuccess" }, host: { listeners: { "click": "handleHostClick()" }, properties: { "style.cursor": "'pointer'" } }, ngImport: i0 });
|
|
53
53
|
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCopyToClipboardDirective, decorators: [{
|
|
55
55
|
type: Directive,
|
|
56
56
|
args: [{
|
|
57
57
|
selector: '[wattCopyToClipboard]',
|
|
@@ -1 +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,SAA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QAC/B,CAAC;IACH,CAAC;
|
|
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"]}
|
|
@@ -20,10 +20,10 @@ import { Injectable } from '@angular/core';
|
|
|
20
20
|
import * as i0 from "@angular/core";
|
|
21
21
|
export class WattCodeIntlService {
|
|
22
22
|
searchPlaceholder = 'Search in code';
|
|
23
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
24
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
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
25
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCodeIntlService, decorators: [{
|
|
27
27
|
type: Injectable,
|
|
28
28
|
args: [{ providedIn: 'root' }]
|
|
29
29
|
}] });
|
|
@@ -1 +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;
|
|
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"]}
|
|
@@ -109,8 +109,8 @@ export class WattCodeComponent {
|
|
|
109
109
|
ngOnDestroy() {
|
|
110
110
|
this.worker?.terminate();
|
|
111
111
|
}
|
|
112
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
113
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
112
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
113
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: WattCodeComponent, isStandalone: true, selector: "watt-code", inputs: { code: { classPropertyName: "code", publicName: "code", isSignal: true, isRequired: true, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { discoveredLanguage: "discoveredLanguage" }, viewQueries: [{ propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
114
114
|
@if (loading()) {
|
|
115
115
|
<vater-stack fill="horizontal" align="center">
|
|
116
116
|
<watt-spinner />
|
|
@@ -138,7 +138,7 @@ export class WattCodeComponent {
|
|
|
138
138
|
}
|
|
139
139
|
`, isInline: true, 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"], dependencies: [{ kind: "component", type: WattSpinnerComponent, selector: "watt-spinner", inputs: ["diameter", "strokeWidth"] }, { kind: "component", type: VaterStackComponent, selector: "vater-stack, [vater-stack]" }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: WattSearchComponent, selector: "watt-search", inputs: ["label", "debounceTime", "trim", "size"], outputs: ["search"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
140
140
|
}
|
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattCodeComponent, decorators: [{
|
|
142
142
|
type: Component,
|
|
143
143
|
args: [{ selector: 'watt-code', template: `
|
|
144
144
|
@if (loading()) {
|
|
@@ -1 +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,MAA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AAC,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;
|
|
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,M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E,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"]}
|
|
@@ -31,10 +31,10 @@ export class WattBreakpointsObserver {
|
|
|
31
31
|
isMatched(breakpoint) {
|
|
32
32
|
return this.breakpointObserver.isMatched(WattBreakpoint[breakpoint]);
|
|
33
33
|
}
|
|
34
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
35
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
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
36
|
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattBreakpointsObserver, decorators: [{
|
|
38
38
|
type: Injectable,
|
|
39
39
|
args: [{ providedIn: 'root' }]
|
|
40
40
|
}] });
|
|
@@ -1 +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;
|
|
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"]}
|
|
@@ -29,10 +29,10 @@ export class WattColorHelperService {
|
|
|
29
29
|
getColorContrast(color) {
|
|
30
30
|
return this.cssCustomPropertiesService.getPropertyValue(`${WattColor[color]}-${this.colorContrastSuffix}`);
|
|
31
31
|
}
|
|
32
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
33
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattColorHelperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
33
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattColorHelperService, providedIn: 'root' });
|
|
34
34
|
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattColorHelperService, decorators: [{
|
|
36
36
|
type: Injectable,
|
|
37
37
|
args: [{
|
|
38
38
|
providedIn: 'root',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-helper.service.js","sourceRoot":"","sources":["../../../../../libs/watt/package/core/color/color-helper.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAiB,MAAM,UAAU,CAAC;;AAKpD,MAAM,OAAO,sBAAsB;IAChB,0BAA0B,GAAG,MAAM,CAAC,8BAA8B,CAAC,CAAC;IACpE,mBAAmB,GAAG,UAAU,CAAC;IAE3C,QAAQ,CAAC,KAAoB;QAClC,OAAO,IAAI,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5E,CAAC;IAEM,gBAAgB,CAAC,KAAoB;QAC1C,OAAO,IAAI,CAAC,0BAA0B,CAAC,gBAAgB,CACrD,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAClD,CAAC;IACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"color-helper.service.js","sourceRoot":"","sources":["../../../../../libs/watt/package/core/color/color-helper.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAiB,MAAM,UAAU,CAAC;;AAKpD,MAAM,OAAO,sBAAsB;IAChB,0BAA0B,GAAG,MAAM,CAAC,8BAA8B,CAAC,CAAC;IACpE,mBAAmB,GAAG,UAAU,CAAC;IAE3C,QAAQ,CAAC,KAAoB;QAClC,OAAO,IAAI,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5E,CAAC;IAEM,gBAAgB,CAAC,KAAoB;QAC1C,OAAO,IAAI,CAAC,0BAA0B,CAAC,gBAAgB,CACrD,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAClD,CAAC;IACJ,CAAC;wGAZU,sBAAsB;4GAAtB,sBAAsB,cAFrB,MAAM;;4FAEP,sBAAsB;kBAHlC,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","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, inject } from '@angular/core';\n\nimport { WattCssCustomPropertiesService } from '@energinet/watt/utils/css';\nimport { WattColor, WattColorType } from './colors';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class WattColorHelperService {\n private readonly cssCustomPropertiesService = inject(WattCssCustomPropertiesService);\n private readonly colorContrastSuffix = 'contrast';\n\n public getColor(color: WattColorType): string {\n return this.cssCustomPropertiesService.getPropertyValue(WattColor[color]);\n }\n\n public getColorContrast(color: WattColorType): string {\n return this.cssCustomPropertiesService.getPropertyValue(\n `${WattColor[color]}-${this.colorContrastSuffix}`\n );\n }\n}\n"]}
|
|
@@ -26,10 +26,10 @@ export class WattDatePipe {
|
|
|
26
26
|
transform(input, format = 'short', timeZone = 'Europe/Copenhagen') {
|
|
27
27
|
return wattFormatDate(input, format, timeZone);
|
|
28
28
|
}
|
|
29
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
30
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.
|
|
29
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
30
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: WattDatePipe, isStandalone: true, name: "wattDate" });
|
|
31
31
|
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDatePipe, decorators: [{
|
|
33
33
|
type: Pipe,
|
|
34
34
|
args: [{
|
|
35
35
|
name: 'wattDate',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watt-date.pipe.js","sourceRoot":"","sources":["../../../../../libs/watt/package/core/date/watt-date.pipe.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAiB,cAAc,EAAE,MAAM,oBAAoB,CAAC;;AAKnE,MAAM,OAAO,YAAY;IACvB;;OAEG;IACH,SAAS,CACP,KAA2E,EAC3E,SAAqC,OAAO,EAC5C,QAAQ,GAAG,mBAAmB;QAE9B,OAAO,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IACjD,CAAC;
|
|
1
|
+
{"version":3,"file":"watt-date.pipe.js","sourceRoot":"","sources":["../../../../../libs/watt/package/core/date/watt-date.pipe.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAiB,cAAc,EAAE,MAAM,oBAAoB,CAAC;;AAKnE,MAAM,OAAO,YAAY;IACvB;;OAEG;IACH,SAAS,CACP,KAA2E,EAC3E,SAAqC,OAAO,EAC5C,QAAQ,GAAG,mBAAmB;QAE9B,OAAO,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IACjD,CAAC;wGAVU,YAAY;sGAAZ,YAAY;;4FAAZ,YAAY;kBAHxB,IAAI;mBAAC;oBACJ,IAAI,EAAE,UAAU;iBACjB","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 { Pipe, PipeTransform } from '@angular/core';\n\nimport { WattRange } from './watt-date-range';\nimport { formatStrings, wattFormatDate } from './watt-format-date';\n\n@Pipe({\n name: 'wattDate',\n})\nexport class WattDatePipe implements PipeTransform {\n /**\n * @param input WattDateRange or string in ISO 8601 format or unix timestamp number\n */\n transform(\n input?: WattRange<Date> | WattRange<string> | Date | string | number | null,\n format: keyof typeof formatStrings = 'short',\n timeZone = 'Europe/Copenhagen'\n ): string | null {\n return wattFormatDate(input, format, timeZone);\n }\n}\n"]}
|
|
@@ -36,10 +36,10 @@ export class WattLocaleService {
|
|
|
36
36
|
this.dateAdapter.setActiveLocale(locale);
|
|
37
37
|
this.locale.set(locale);
|
|
38
38
|
}
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
40
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattLocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
40
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattLocaleService, providedIn: 'root' });
|
|
41
41
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattLocaleService, decorators: [{
|
|
43
43
|
type: Injectable,
|
|
44
44
|
args: [{
|
|
45
45
|
providedIn: 'root',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watt-locale.service.js","sourceRoot":"","sources":["../../../../../libs/watt/package/core/date/watt-locale.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;AAKhC,MAAM,OAAO,iBAAiB;IACX,WAAW,GAAG,MAAM,CAAuB,WAAW,CAAC,CAAC;IAEzE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAuB,SAAS,CAAC,kDAAC,CAAC;IACzD,QAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,IAAI,oDAAC,CAAC;IACjD,SAAS,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,IAAI,qDAAC,CAAC;IAElD,KAAK,CAAC,eAAe,CAAC,MAA4B;QAChD,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YACpB,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAClC,CAAC;QAED,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YACpB,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAClC,CAAC;QAED,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,WAA+B,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAC9D,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,CAAC;
|
|
1
|
+
{"version":3,"file":"watt-locale.service.js","sourceRoot":"","sources":["../../../../../libs/watt/package/core/date/watt-locale.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;AAKhC,MAAM,OAAO,iBAAiB;IACX,WAAW,GAAG,MAAM,CAAuB,WAAW,CAAC,CAAC;IAEzE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAuB,SAAS,CAAC,kDAAC,CAAC;IACzD,QAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,IAAI,oDAAC,CAAC;IACjD,SAAS,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,IAAI,qDAAC,CAAC;IAElD,KAAK,CAAC,eAAe,CAAC,MAA4B;QAChD,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YACpB,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAClC,CAAC;QAED,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YACpB,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAClC,CAAC;QAED,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,WAA+B,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAC9D,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,CAAC;wGAnBU,iBAAiB;4GAAjB,iBAAiB,cAFhB,MAAM;;4FAEP,iBAAiB;kBAH7B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","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 { computed, inject, Injectable, LOCALE_ID, signal } from '@angular/core';\nimport { DateAdapter } from '@angular/material/core';\n\nimport { WattDateAdapter, WattSupportedLocales } from './watt-date-adapter';\nimport { dayjs } from './dayjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class WattLocaleService {\n private readonly dateAdapter = inject<DateAdapter<unknown>>(DateAdapter);\n\n locale = signal(inject<WattSupportedLocales>(LOCALE_ID));\n isDanish = computed(() => this.locale() == 'da');\n isEnglish = computed(() => this.locale() == 'en');\n\n async setActiveLocale(locale: WattSupportedLocales): Promise<void> {\n if (locale === 'da') {\n await import('dayjs/locale/da');\n }\n\n if (locale === 'en') {\n await import('dayjs/locale/en');\n }\n\n dayjs.locale(locale);\n (this.dateAdapter as WattDateAdapter).setActiveLocale(locale);\n this.locale.set(locale);\n }\n}\n"]}
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
import { Component } from '@angular/core';
|
|
20
20
|
import * as i0 from "@angular/core";
|
|
21
21
|
export class WattDataActionsComponent {
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
23
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDataActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: WattDataActionsComponent, isStandalone: true, selector: "watt-data-actions", ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDataActionsComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{
|
|
28
28
|
selector: 'watt-data-actions',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watt-data-actions.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/data/watt-data-actions.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAM1C,MAAM,OAAO,wBAAwB;
|
|
1
|
+
{"version":3,"file":"watt-data-actions.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/data/watt-data-actions.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAM1C,MAAM,OAAO,wBAAwB;wGAAxB,wBAAwB;4FAAxB,wBAAwB,6EAFzB,gBAAgB;;4FAEf,wBAAwB;kBAJpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,mBAAmB;oBAC7B,QAAQ,EAAE,gBAAgB;iBAC3B","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'watt-data-actions',\n template: `<ng-content />`,\n})\nexport class WattDataActionsComponent {}\n"]}
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
import { Component } from '@angular/core';
|
|
20
20
|
import * as i0 from "@angular/core";
|
|
21
21
|
export class WattDataFiltersComponent {
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
23
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDataFiltersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: WattDataFiltersComponent, isStandalone: true, selector: "watt-data-filters", ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDataFiltersComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{
|
|
28
28
|
selector: 'watt-data-filters',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watt-data-filters.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/data/watt-data-filters.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAM1C,MAAM,OAAO,wBAAwB;
|
|
1
|
+
{"version":3,"file":"watt-data-filters.component.js","sourceRoot":"","sources":["../../../../libs/watt/package/data/watt-data-filters.component.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAM1C,MAAM,OAAO,wBAAwB;wGAAxB,wBAAwB;4FAAxB,wBAAwB,6EAFzB,gBAAgB;;4FAEf,wBAAwB;kBAJpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,mBAAmB;oBAC7B,QAAQ,EAAE,gBAAgB;iBAC3B","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'watt-data-filters',\n template: `<ng-content />`,\n})\nexport class WattDataFiltersComponent {}\n"]}
|
|
@@ -29,10 +29,10 @@ export class WattDataIntlService {
|
|
|
29
29
|
errorText = 'Unfortunately, an error occurred while retrieving the necessary information.';
|
|
30
30
|
defaultTitle = 'An unexpected error occured';
|
|
31
31
|
defaultText = 'Unfortunately, an error occurred while retrieving the necessary information.';
|
|
32
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
33
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDataIntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
33
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDataIntlService, providedIn: 'root' });
|
|
34
34
|
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDataIntlService, decorators: [{
|
|
36
36
|
type: Injectable,
|
|
37
37
|
args: [{ providedIn: 'root' }]
|
|
38
38
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watt-data-intl.service.js","sourceRoot":"","sources":["../../../../libs/watt/package/data/watt-data-intl.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;AAG/B,MAAM,OAAO,mBAAmB;IACrB,OAAO,GAAkB,IAAI,OAAO,EAAQ,CAAC;IACtD,MAAM,GAAG,QAAQ,CAAC;IAClB,UAAU,GAAG,kBAAkB,CAAC;IAChC,SAAS,GAAG,mCAAmC,CAAC;IAChD,UAAU,GAAG,OAAO,CAAC;IACrB,UAAU,GAAG,6BAA6B,CAAC;IAC3C,SAAS,GAAG,8EAA8E,CAAC;IAC3F,YAAY,GAAG,6BAA6B,CAAC;IAC7C,WAAW,GAAG,8EAA8E,CAAC;
|
|
1
|
+
{"version":3,"file":"watt-data-intl.service.js","sourceRoot":"","sources":["../../../../libs/watt/package/data/watt-data-intl.service.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;;;;;;GAeG;AACH,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;AAG/B,MAAM,OAAO,mBAAmB;IACrB,OAAO,GAAkB,IAAI,OAAO,EAAQ,CAAC;IACtD,MAAM,GAAG,QAAQ,CAAC;IAClB,UAAU,GAAG,kBAAkB,CAAC;IAChC,SAAS,GAAG,mCAAmC,CAAC;IAChD,UAAU,GAAG,OAAO,CAAC;IACrB,UAAU,GAAG,6BAA6B,CAAC;IAC3C,SAAS,GAAG,8EAA8E,CAAC;IAC3F,YAAY,GAAG,6BAA6B,CAAC;IAC7C,WAAW,GAAG,8EAA8E,CAAC;wGATlF,mBAAmB;4GAAnB,mBAAmB,cADN,MAAM;;4FACnB,mBAAmB;kBAD/B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class WattDataIntlService {\n readonly changes: Subject<void> = new Subject<void>();\n search = 'Search';\n emptyTitle = 'No results found';\n emptyText = 'Try changing the search criteria.';\n emptyRetry = 'Retry';\n errorTitle = 'An unexpected error occured';\n errorText = 'Unfortunately, an error occurred while retrieving the necessary information.';\n defaultTitle = 'An unexpected error occured';\n defaultText = 'Unfortunately, an error occurred while retrieving the necessary information.';\n}\n"]}
|
|
@@ -55,8 +55,8 @@ export class WattDataTableComponent {
|
|
|
55
55
|
if (!value)
|
|
56
56
|
this.clear.emit();
|
|
57
57
|
}
|
|
58
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
59
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
58
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
59
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: WattDataTableComponent, isStandalone: true, selector: "watt-data-table", inputs: { error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, ready: { classPropertyName: "ready", publicName: "ready", isSignal: true, isRequired: false, transformFunction: null }, enableSearch: { classPropertyName: "enableSearch", publicName: "enableSearch", isSignal: true, isRequired: false, transformFunction: null }, trimSearch: { classPropertyName: "trimSearch", publicName: "trimSearch", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, enableRetry: { classPropertyName: "enableRetry", publicName: "enableRetry", isSignal: true, isRequired: false, transformFunction: null }, enableCount: { classPropertyName: "enableCount", publicName: "enableCount", isSignal: true, isRequired: false, transformFunction: null }, enableEmptyState: { classPropertyName: "enableEmptyState", publicName: "enableEmptyState", isSignal: true, isRequired: false, transformFunction: null }, queryTime: { classPropertyName: "queryTime", publicName: "queryTime", isSignal: true, isRequired: false, transformFunction: null }, searchLabel: { classPropertyName: "searchLabel", publicName: "searchLabel", isSignal: true, isRequired: false, transformFunction: null }, enablePaginator: { classPropertyName: "enablePaginator", publicName: "enablePaginator", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: false, transformFunction: null }, autoSize: { classPropertyName: "autoSize", publicName: "autoSize", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, emptyStateIcon: { classPropertyName: "emptyStateIcon", publicName: "emptyStateIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clear: "clear", pageChanged: "pageChanged", retry: "retry" }, queries: [{ propertyName: "table", first: true, predicate: (WattTableComponent), descendants: true, isSignal: true }], viewQueries: [{ propertyName: "search", first: true, predicate: WattSearchComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
60
60
|
<watt-card vater fill="vertical" [variant]="variant()">
|
|
61
61
|
<vater-flex autoSize fill="vertical" gap="m">
|
|
62
62
|
@if (header()) {
|
|
@@ -125,7 +125,7 @@ export class WattDataTableComponent {
|
|
|
125
125
|
</watt-card>
|
|
126
126
|
`, isInline: true, styles: ["watt-data-table h3,watt-data-table h4{line-height:44px;min-height:44px;margin:0}watt-data-table watt-paginator{display:block;margin:calc(-1 * var(--watt-space-m)) -24px -24px}watt-data-table watt-table .mat-mdc-table tr.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}watt-data-table watt-empty-state{margin:var(--watt-space-xl) 0}\n"], dependencies: [{ kind: "component", type: VaterFlexComponent, selector: "vater-flex, [vater-flex]", inputs: ["autoSize"] }, { kind: "component", type: VaterSpacerComponent, selector: "vater-spacer, [vater-spacer]" }, { kind: "component", type: VaterStackComponent, selector: "vater-stack, [vater-stack]" }, { kind: "directive", type: VaterUtilityDirective, selector: "[vater]", inputs: ["center", "fill", "inset", "scrollable"] }, { kind: "component", type: WattCardComponent, selector: "watt-card", inputs: ["variant", "loading"] }, { kind: "component", type: WattEmptyStateComponent, selector: "watt-empty-state", inputs: ["icon", "size", "title", "message", "useHTML"] }, { kind: "component", type: WattPaginatorComponent, selector: "watt-paginator", inputs: ["length", "pageSizeOptions", "pageSize", "pageIndex", "for"], outputs: ["changed"] }, { kind: "component", type: WattSearchComponent, selector: "watt-search", inputs: ["label", "debounceTime", "trim", "size"], outputs: ["search"] }, { kind: "component", type: WattButtonComponent, selector: "watt-button", inputs: ["icon", "variant", "size", "type", "formId", "disabled", "loading"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
127
127
|
}
|
|
128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattDataTableComponent, decorators: [{
|
|
129
129
|
type: Component,
|
|
130
130
|
args: [{ selector: 'watt-data-table', imports: [
|
|
131
131
|
VaterFlexComponent,
|