@energinet/watt 0.0.1
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/LICENSE +201 -0
- package/badge/index.d.ts +17 -0
- package/badge/watt-badge.component.d.ts +15 -0
- package/breadcrumbs/index.d.ts +17 -0
- package/breadcrumbs/watt-breadcrumbs.component.d.ts +23 -0
- package/button/index.d.ts +17 -0
- package/button/watt-button.component.d.ts +20 -0
- package/card/index.d.ts +18 -0
- package/card/watt-card-title.component.d.ts +6 -0
- package/card/watt-card.component.d.ts +15 -0
- package/checkbox/index.d.ts +17 -0
- package/checkbox/watt-checkbox.component.d.ts +17 -0
- package/chip/index.d.ts +23 -0
- package/chip/watt-action-chip.component.d.ts +8 -0
- package/chip/watt-chip.component.d.ts +8 -0
- package/chip/watt-chip.directive.d.ts +16 -0
- package/chip/watt-date-chip.component.d.ts +29 -0
- package/chip/watt-date-range-chip.component.d.ts +50 -0
- package/chip/watt-filter-chip.component.d.ts +30 -0
- package/chip/watt-menu-chip.component.d.ts +30 -0
- package/clipboard/index.d.ts +18 -0
- package/clipboard/watt-clipboard-intl.service.d.ts +7 -0
- package/clipboard/watt-copy-to-clipboard.directive.d.ts +12 -0
- package/code/index.d.ts +18 -0
- package/code/watt-code.component.d.ts +32 -0
- package/code/watt-code.worker.token.d.ts +18 -0
- package/core/breakpoints/_breakpoints.import.scss +53 -0
- package/core/breakpoints/_include-media.scss +568 -0
- package/core/breakpoints/breakpoints-observer.d.ts +39 -0
- package/core/breakpoints/breakpoints.d.ts +29 -0
- package/core/breakpoints/index.d.ts +18 -0
- package/core/color/+storybook/storybook-colors-overview.component.scss +50 -0
- package/core/color/color-helper.service.d.ts +12 -0
- package/core/color/colors.d.ts +51 -0
- package/core/color/index.d.ts +18 -0
- package/core/date/dayjs.d.ts +22 -0
- package/core/date/index.d.ts +23 -0
- package/core/date/watt-danish-datetime.providers.d.ts +1 -0
- package/core/date/watt-date-adapter.d.ts +31 -0
- package/core/date/watt-date-range.d.ts +25 -0
- package/core/date/watt-date.pipe.d.ts +28 -0
- package/core/date/watt-format-date.d.ts +11 -0
- package/core/date/watt-locale.service.d.ts +13 -0
- package/core/styles/@energinet-datahub/watt/_index.scss +52 -0
- package/core/styles/@energinet-datahub/watt/_utils.scss +16 -0
- package/core/styles/@energinet-datahub/watt/theme/light-theme.scss +71 -0
- package/core/styles/@energinet-datahub/watt/theme/material-overwrites/datepicker.scss +69 -0
- package/core/styles/@energinet-datahub/watt/theme/material-overwrites/snack-bar.scss +26 -0
- package/core/styles/_box-sizing.scss +22 -0
- package/core/styles/_chips.scss +22 -0
- package/core/styles/_elevation.scss +18 -0
- package/core/styles/_hr.scss +20 -0
- package/core/styles/_table.scss +89 -0
- package/core/styles/_tokens.scss +134 -0
- package/core/styles/_tooltip.scss +64 -0
- package/core/styles/_variables.scss +106 -0
- package/core/styles/_vater.scss +69 -0
- package/core/styles/spacing/+storybook/storybook-spacing-overview.component.scss +25 -0
- package/core/styles/spacing/_baseline.scss +23 -0
- package/core/styles/spacing/_inline.scss +38 -0
- package/core/styles/spacing/_inset.scss +61 -0
- package/core/styles/spacing/_spacing.import.scss +113 -0
- package/core/styles/spacing/_stack.scss +38 -0
- package/core/styles/spacing/_variables.scss +14 -0
- package/core/styles/spacing/index.scss +18 -0
- package/core/styles/typography/+storybook/storybook-typography-overview.component.scss +78 -0
- package/core/styles/typography/_rem.scss +24 -0
- package/core/styles/typography/_typography.import.scss +195 -0
- package/core/styles/typography/index.scss +118 -0
- package/data/index.d.ts +20 -0
- package/data/watt-data-actions.component.d.ts +5 -0
- package/data/watt-data-filters.component.d.ts +5 -0
- package/data/watt-data-intl.service.d.ts +15 -0
- package/data/watt-data-table.component.d.ts +27 -0
- package/datetime-field/index.d.ts +17 -0
- package/datetime-field/watt-datetime-field.component.d.ts +39 -0
- package/description-list/index.d.ts +17 -0
- package/description-list/watt-description-list-item.component.d.ts +27 -0
- package/description-list/watt-description-list.component.d.ts +19 -0
- package/drawer/index.d.ts +21 -0
- package/drawer/watt-drawer-actions.component.d.ts +5 -0
- package/drawer/watt-drawer-content.component.d.ts +5 -0
- package/drawer/watt-drawer-heading.component.d.ts +5 -0
- package/drawer/watt-drawer-topbar.component.d.ts +5 -0
- package/drawer/watt-drawer.component.d.ts +61 -0
- package/dropdown/index.d.ts +19 -0
- package/dropdown/watt-dropdown-option.d.ts +22 -0
- package/dropdown/watt-dropdown-value.d.ts +17 -0
- package/dropdown/watt-dropdown.component.d.ts +195 -0
- package/empty-state/icons/explore.d.ts +5 -0
- package/empty-state/icons/no-results.d.ts +5 -0
- package/empty-state/icons/power.d.ts +5 -0
- package/empty-state/index.d.ts +20 -0
- package/empty-state/watt-empty-state.component.d.ts +16 -0
- package/expandable-card/index.d.ts +19 -0
- package/expandable-card/watt-expandable-card.component.d.ts +34 -0
- package/expansion/expansion.component.d.ts +18 -0
- package/expansion/index.d.ts +17 -0
- package/fesm2022/energinet-watt-badge.mjs +66 -0
- package/fesm2022/energinet-watt-badge.mjs.map +1 -0
- package/fesm2022/energinet-watt-breadcrumbs.mjs +116 -0
- package/fesm2022/energinet-watt-breadcrumbs.mjs.map +1 -0
- package/fesm2022/energinet-watt-button.mjs +120 -0
- package/fesm2022/energinet-watt-button.mjs.map +1 -0
- package/fesm2022/energinet-watt-card.mjs +117 -0
- package/fesm2022/energinet-watt-card.mjs.map +1 -0
- package/fesm2022/energinet-watt-checkbox.mjs +118 -0
- package/fesm2022/energinet-watt-checkbox.mjs.map +1 -0
- package/fesm2022/energinet-watt-chip.mjs +760 -0
- package/fesm2022/energinet-watt-chip.mjs.map +1 -0
- package/fesm2022/energinet-watt-clipboard.mjs +118 -0
- package/fesm2022/energinet-watt-clipboard.mjs.map +1 -0
- package/fesm2022/energinet-watt-code.mjs +119 -0
- package/fesm2022/energinet-watt-code.mjs.map +1 -0
- package/fesm2022/energinet-watt-core-breakpoints.mjs +100 -0
- package/fesm2022/energinet-watt-core-breakpoints.mjs.map +1 -0
- package/fesm2022/energinet-watt-core-color.mjs +127 -0
- package/fesm2022/energinet-watt-core-color.mjs.map +1 -0
- package/fesm2022/energinet-watt-core-date.mjs +260 -0
- package/fesm2022/energinet-watt-core-date.mjs.map +1 -0
- package/fesm2022/energinet-watt-data.mjs +286 -0
- package/fesm2022/energinet-watt-data.mjs.map +1 -0
- package/fesm2022/energinet-watt-datetime-field.mjs +233 -0
- package/fesm2022/energinet-watt-datetime-field.mjs.map +1 -0
- package/fesm2022/energinet-watt-description-list.mjs +130 -0
- package/fesm2022/energinet-watt-description-list.mjs.map +1 -0
- package/fesm2022/energinet-watt-drawer.mjs +271 -0
- package/fesm2022/energinet-watt-drawer.mjs.map +1 -0
- package/fesm2022/energinet-watt-dropdown.mjs +423 -0
- package/fesm2022/energinet-watt-dropdown.mjs.map +1 -0
- package/fesm2022/energinet-watt-empty-state.mjs +299 -0
- package/fesm2022/energinet-watt-empty-state.mjs.map +1 -0
- package/fesm2022/energinet-watt-expandable-card.mjs +151 -0
- package/fesm2022/energinet-watt-expandable-card.mjs.map +1 -0
- package/fesm2022/energinet-watt-expansion.mjs +78 -0
- package/fesm2022/energinet-watt-expansion.mjs.map +1 -0
- package/fesm2022/energinet-watt-field.mjs +249 -0
- package/fesm2022/energinet-watt-field.mjs.map +1 -0
- package/fesm2022/energinet-watt-icon-flags.mjs +376 -0
- package/fesm2022/energinet-watt-icon-flags.mjs.map +1 -0
- package/fesm2022/energinet-watt-icon.mjs +195 -0
- package/fesm2022/energinet-watt-icon.mjs.map +1 -0
- package/fesm2022/energinet-watt-modal.mjs +260 -0
- package/fesm2022/energinet-watt-modal.mjs.map +1 -0
- package/fesm2022/energinet-watt-paginator.mjs +164 -0
- package/fesm2022/energinet-watt-paginator.mjs.map +1 -0
- package/fesm2022/energinet-watt-phone-field.mjs +322 -0
- package/fesm2022/energinet-watt-phone-field.mjs.map +1 -0
- package/fesm2022/energinet-watt-picker-__shared.mjs +384 -0
- package/fesm2022/energinet-watt-picker-__shared.mjs.map +1 -0
- package/fesm2022/energinet-watt-picker-datepicker.mjs +430 -0
- package/fesm2022/energinet-watt-picker-datepicker.mjs.map +1 -0
- package/fesm2022/energinet-watt-picker-timepicker.mjs +394 -0
- package/fesm2022/energinet-watt-picker-timepicker.mjs.map +1 -0
- package/fesm2022/energinet-watt-progress-tracker.mjs +141 -0
- package/fesm2022/energinet-watt-progress-tracker.mjs.map +1 -0
- package/fesm2022/energinet-watt-query-params.mjs +95 -0
- package/fesm2022/energinet-watt-query-params.mjs.map +1 -0
- package/fesm2022/energinet-watt-radio.mjs +125 -0
- package/fesm2022/energinet-watt-radio.mjs.map +1 -0
- package/fesm2022/energinet-watt-search.mjs +126 -0
- package/fesm2022/energinet-watt-search.mjs.map +1 -0
- package/fesm2022/energinet-watt-shell.mjs +315 -0
- package/fesm2022/energinet-watt-shell.mjs.map +1 -0
- package/fesm2022/energinet-watt-slider.mjs +159 -0
- package/fesm2022/energinet-watt-slider.mjs.map +1 -0
- package/fesm2022/energinet-watt-spinner.mjs +72 -0
- package/fesm2022/energinet-watt-spinner.mjs.map +1 -0
- package/fesm2022/energinet-watt-stepper.mjs +185 -0
- package/fesm2022/energinet-watt-stepper.mjs.map +1 -0
- package/fesm2022/energinet-watt-table.mjs +423 -0
- package/fesm2022/energinet-watt-table.mjs.map +1 -0
- package/fesm2022/energinet-watt-tabs.mjs +254 -0
- package/fesm2022/energinet-watt-tabs.mjs.map +1 -0
- package/fesm2022/energinet-watt-text-field.mjs +316 -0
- package/fesm2022/energinet-watt-text-field.mjs.map +1 -0
- package/fesm2022/energinet-watt-textarea-field.mjs +136 -0
- package/fesm2022/energinet-watt-textarea-field.mjs.map +1 -0
- package/fesm2022/energinet-watt-toast.mjs +174 -0
- package/fesm2022/energinet-watt-toast.mjs.map +1 -0
- package/fesm2022/energinet-watt-tooltip.mjs +214 -0
- package/fesm2022/energinet-watt-tooltip.mjs.map +1 -0
- package/fesm2022/energinet-watt-utils-css.mjs +72 -0
- package/fesm2022/energinet-watt-utils-css.mjs.map +1 -0
- package/fesm2022/energinet-watt-utils-intersection-observer.mjs +83 -0
- package/fesm2022/energinet-watt-utils-intersection-observer.mjs.map +1 -0
- package/fesm2022/energinet-watt-utils-resize-observer.mjs +144 -0
- package/fesm2022/energinet-watt-utils-resize-observer.mjs.map +1 -0
- package/fesm2022/energinet-watt-validation-message.mjs +114 -0
- package/fesm2022/energinet-watt-validation-message.mjs.map +1 -0
- package/fesm2022/energinet-watt-validators.mjs +40 -0
- package/fesm2022/energinet-watt-validators.mjs.map +1 -0
- package/fesm2022/energinet-watt-vater.mjs +287 -0
- package/fesm2022/energinet-watt-vater.mjs.map +1 -0
- package/fesm2022/energinet-watt.mjs +47 -0
- package/fesm2022/energinet-watt.mjs.map +1 -0
- package/field/index.d.ts +20 -0
- package/field/watt-field-error.component.d.ts +5 -0
- package/field/watt-field-hint.component.d.ts +5 -0
- package/field/watt-field-intl.service.d.ts +8 -0
- package/field/watt-field.component.d.ts +42 -0
- package/icon/flags/index.d.ts +23 -0
- package/icon/flags/watt-flag-de.d.ts +5 -0
- package/icon/flags/watt-flag-dk.d.ts +5 -0
- package/icon/flags/watt-flag-fi.d.ts +5 -0
- package/icon/flags/watt-flag-no.d.ts +5 -0
- package/icon/flags/watt-flag-pl.d.ts +5 -0
- package/icon/flags/watt-flag-se.d.ts +5 -0
- package/icon/flags/watt-flag.d.ts +13 -0
- package/icon/icon.component.d.ts +20 -0
- package/icon/icons.d.ts +82 -0
- package/icon/index.d.ts +17 -0
- package/index.d.ts +33 -0
- package/modal/index.d.ts +18 -0
- package/modal/watt-modal.component.d.ts +86 -0
- package/modal/watt-modal.service.d.ts +62 -0
- package/package.json +237 -0
- package/paginator/index.d.ts +18 -0
- package/paginator/watt-paginator-intl.service.d.ts +14 -0
- package/paginator/watt-paginator.component.d.ts +53 -0
- package/phone-field/index.d.ts +18 -0
- package/phone-field/watt-phone-field-intl.service.d.ts +14 -0
- package/phone-field/watt-phone-field.component.d.ts +75 -0
- package/picker/__shared/index.d.ts +19 -0
- package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.d.ts +34 -0
- package/picker/__shared/watt-picker-base.d.ts +201 -0
- package/picker/__shared/watt-picker-value.d.ts +18 -0
- package/picker/datepicker/index.d.ts +19 -0
- package/picker/datepicker/watt-datepicker-intl.service.d.ts +7 -0
- package/picker/datepicker/watt-datepicker.component.d.ts +149 -0
- package/picker/timepicker/index.d.ts +17 -0
- package/picker/timepicker/maskito-time-range-mask.d.ts +18 -0
- package/picker/timepicker/watt-timepicker.component.d.ts +132 -0
- package/progress-tracker/index.d.ts +20 -0
- package/progress-tracker/watt-progress-tracker-step.component.d.ts +10 -0
- package/progress-tracker/watt-progress-tracker.component.d.ts +5 -0
- package/query-params/index.d.ts +17 -0
- package/query-params/watt-query-params.directive.d.ts +27 -0
- package/radio/index.d.ts +17 -0
- package/radio/watt-radio.component.d.ts +24 -0
- package/search/index.d.ts +17 -0
- package/search/watt-search.component.d.ts +31 -0
- package/shell/index.d.ts +18 -0
- package/shell/nav-list/index.d.ts +18 -0
- package/shell/nav-list/watt-expand-on-active-link.directive.d.ts +26 -0
- package/shell/nav-list/watt-nav-list-item.component.d.ts +16 -0
- package/shell/nav-list/watt-nav-list.component.d.ts +12 -0
- package/shell/shell.component.d.ts +28 -0
- package/slider/index.d.ts +17 -0
- package/slider/watt-slider.component.d.ts +57 -0
- package/spinner/index.d.ts +17 -0
- package/spinner/watt-spinner.component.d.ts +15 -0
- package/stepper/index.d.ts +18 -0
- package/stepper/watt-stepper-step.component.d.ts +34 -0
- package/stepper/watt-stepper.component.d.ts +40 -0
- package/table/index.d.ts +18 -0
- package/table/watt-table-data-source.d.ts +37 -0
- package/table/watt-table.component.d.ts +239 -0
- package/tabs/index.d.ts +26 -0
- package/tabs/watt-link-tab.component.d.ts +7 -0
- package/tabs/watt-link-tabs.component.d.ts +7 -0
- package/tabs/watt-tab.component.d.ts +26 -0
- package/tabs/watt-tabs-action.component.d.ts +5 -0
- package/tabs/watt-tabs.component.d.ts +36 -0
- package/text-field/index.d.ts +17 -0
- package/text-field/watt-text-field.component.d.ts +77 -0
- package/textarea-field/index.d.ts +17 -0
- package/textarea-field/watt-textarea-field.component.d.ts +27 -0
- package/toast/index.d.ts +19 -0
- package/toast/watt-toast.component.d.ts +47 -0
- package/toast/watt-toast.service.d.ts +13 -0
- package/tooltip/index.d.ts +17 -0
- package/tooltip/watt-tooltip.component.d.ts +47 -0
- package/tooltip/watt-tooltip.directive.d.ts +31 -0
- package/utils/css/css-custom-properties.service.d.ts +10 -0
- package/utils/css/index.d.ts +17 -0
- package/utils/intersection-observer/index.d.ts +17 -0
- package/utils/intersection-observer/watt-intersection-observer.service.d.ts +21 -0
- package/utils/resize-observer/index.d.ts +18 -0
- package/utils/resize-observer/watt-resize-observer.directive.d.ts +35 -0
- package/utils/resize-observer/watt-resize-observer.service.d.ts +39 -0
- package/validation-message/index.d.ts +17 -0
- package/validation-message/watt-validation-message.component.d.ts +50 -0
- package/validators/index.d.ts +17 -0
- package/validators/watt-range.validators.d.ts +23 -0
- package/vater/index.d.ts +20 -0
- package/vater/types.d.ts +21 -0
- package/vater/vater-flex.component.d.ts +19 -0
- package/vater/vater-spacer.component.d.ts +5 -0
- package/vater/vater-stack.component.d.ts +14 -0
- package/vater/vater-utility.directive.d.ts +16 -0
package/icon/icons.d.ts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export declare const WattIconMap: {
|
|
18
|
+
search: string;
|
|
19
|
+
filter: string;
|
|
20
|
+
plus: string;
|
|
21
|
+
minus: string;
|
|
22
|
+
edit: string;
|
|
23
|
+
redo: string;
|
|
24
|
+
undo: string;
|
|
25
|
+
remove: string;
|
|
26
|
+
removeForever: string;
|
|
27
|
+
close: string;
|
|
28
|
+
cancel: string;
|
|
29
|
+
checkmark: string;
|
|
30
|
+
user: string;
|
|
31
|
+
settings: string;
|
|
32
|
+
contentCopy: string;
|
|
33
|
+
date: string;
|
|
34
|
+
time: string;
|
|
35
|
+
email: string;
|
|
36
|
+
markEmailUnread: string;
|
|
37
|
+
link: string;
|
|
38
|
+
openInNew: string;
|
|
39
|
+
monetization: string;
|
|
40
|
+
payments: string;
|
|
41
|
+
forwardMessage: string;
|
|
42
|
+
menu: string;
|
|
43
|
+
moreVertical: string;
|
|
44
|
+
logout: string;
|
|
45
|
+
login: string;
|
|
46
|
+
help: string;
|
|
47
|
+
alternateEmail: string;
|
|
48
|
+
refresh: string;
|
|
49
|
+
language: string;
|
|
50
|
+
pendingActions: string;
|
|
51
|
+
toggleOn: string;
|
|
52
|
+
toggleOff: string;
|
|
53
|
+
personCheck: string;
|
|
54
|
+
left: string;
|
|
55
|
+
right: string;
|
|
56
|
+
up: string;
|
|
57
|
+
down: string;
|
|
58
|
+
arrowDropDown: string;
|
|
59
|
+
arrowRightAlt: string;
|
|
60
|
+
danger: string;
|
|
61
|
+
warning: string;
|
|
62
|
+
success: string;
|
|
63
|
+
info: string;
|
|
64
|
+
feedback: string;
|
|
65
|
+
save: string;
|
|
66
|
+
upload: string;
|
|
67
|
+
download: string;
|
|
68
|
+
fileDownload: string;
|
|
69
|
+
print: string;
|
|
70
|
+
preview: string;
|
|
71
|
+
power: string;
|
|
72
|
+
location: string;
|
|
73
|
+
smartDisplay: string;
|
|
74
|
+
windmill: string;
|
|
75
|
+
solarPower: string;
|
|
76
|
+
priorityHigh: string;
|
|
77
|
+
notifications: string;
|
|
78
|
+
notificationsUnread: string;
|
|
79
|
+
horizontalRule: string;
|
|
80
|
+
wrongLocation: string;
|
|
81
|
+
heatPump: string;
|
|
82
|
+
};
|
package/icon/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export { WattIconComponent, WattIcon, WattIconSize, WattIconState } from './icon.component';
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* @license
|
|
19
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
20
|
+
*
|
|
21
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
22
|
+
* you may not use this file except in compliance with the License.
|
|
23
|
+
* You may obtain a copy of the License at
|
|
24
|
+
*
|
|
25
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
26
|
+
*
|
|
27
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
28
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
29
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
30
|
+
* See the License for the specific language governing permissions and
|
|
31
|
+
* limitations under the License.
|
|
32
|
+
*/
|
|
33
|
+
export declare const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;
|
package/modal/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export { WattModalComponent, WattModalActionsComponent, WATT_MODAL } from './watt-modal.component';
|
|
18
|
+
export { WattModalService, WattModalConfig, WattTypedModal } from './watt-modal.service';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
18
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
19
|
+
import * as i0 from "@angular/core";
|
|
20
|
+
export type WattModalSize = 'small' | 'medium' | 'large';
|
|
21
|
+
/**
|
|
22
|
+
* Component for representing a binary decision in the form of
|
|
23
|
+
* a modal window that appears in front of the entire content.
|
|
24
|
+
*
|
|
25
|
+
* Usage:
|
|
26
|
+
* `import { WATT_MODAL } from '@energinet-datahub/watt/modal';`
|
|
27
|
+
*/
|
|
28
|
+
export declare class WattModalComponent {
|
|
29
|
+
private modalService;
|
|
30
|
+
protected dialogRef: MatDialogRef<unknown, any> | null;
|
|
31
|
+
/** Title to stay fixed to top of modal. */
|
|
32
|
+
title: string;
|
|
33
|
+
size: WattModalSize;
|
|
34
|
+
/** Whether the modal should show a loading state. */
|
|
35
|
+
loading: boolean;
|
|
36
|
+
/** Whether the modal should show a loading text for the loading state. */
|
|
37
|
+
loadingMessage: string;
|
|
38
|
+
/** Disable ESC, close button and backdrop click as methods of closing. */
|
|
39
|
+
disableClose: boolean;
|
|
40
|
+
/** Whether to show the close button */
|
|
41
|
+
hideCloseButton: boolean;
|
|
42
|
+
/** Disable ESC, backdrop click as methods of closing. */
|
|
43
|
+
disableEscAndBackdropClose: boolean;
|
|
44
|
+
/** The aria-label for the close button. */
|
|
45
|
+
closeLabel: string;
|
|
46
|
+
/** Classes added to the modal panel */
|
|
47
|
+
panelClass: string[];
|
|
48
|
+
minHeight: string;
|
|
49
|
+
/** Whether the dialog should restore focus to the previously-focused element, after it's closed. */
|
|
50
|
+
restoreFocus: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* When modal is closed, emits `true` if it was "accepted",
|
|
53
|
+
* otherwise emits `false`.
|
|
54
|
+
* @ignore
|
|
55
|
+
*/
|
|
56
|
+
closed: EventEmitter<boolean>;
|
|
57
|
+
/** @ignore */
|
|
58
|
+
modal: TemplateRef<Element>;
|
|
59
|
+
/** @ignore */
|
|
60
|
+
scrollable: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Opens the modal. Subsequent calls are ignored while the modal is opened.
|
|
63
|
+
* @ignore
|
|
64
|
+
*/
|
|
65
|
+
open(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Closes the modal with `true` for acceptance or `false` for rejection.
|
|
68
|
+
* @ignore
|
|
69
|
+
*/
|
|
70
|
+
close(result: boolean): void;
|
|
71
|
+
/**
|
|
72
|
+
* Called when the modal content element changes size.
|
|
73
|
+
* @ignore
|
|
74
|
+
*/
|
|
75
|
+
onResize(event: ResizeObserverEntry): void;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattModalComponent, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattModalComponent, "watt-modal", never, { "title": { "alias": "title"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "hideCloseButton": { "alias": "hideCloseButton"; "required": false; }; "disableEscAndBackdropClose": { "alias": "disableEscAndBackdropClose"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; }; }, { "closed": "closed"; }, never, ["*", "watt-modal-actions"], true, never>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Component for projecting buttons (actions) to the bottom of the modal.
|
|
81
|
+
*/
|
|
82
|
+
export declare class WattModalActionsComponent {
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattModalActionsComponent, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattModalActionsComponent, "watt-modal-actions", never, {}, {}, never, ["*"], true, never>;
|
|
85
|
+
}
|
|
86
|
+
export declare const WATT_MODAL: (typeof WattModalActionsComponent)[];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
18
|
+
import { EventEmitter, Injector, TemplateRef } from '@angular/core';
|
|
19
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
import * as i1 from "@angular/material/dialog";
|
|
22
|
+
export interface WattModalConfig<T> {
|
|
23
|
+
templateRef?: TemplateRef<unknown>;
|
|
24
|
+
component?: ComponentType<WattTypedModal<T>>;
|
|
25
|
+
data?: T;
|
|
26
|
+
disableClose?: boolean;
|
|
27
|
+
onClosed?: EventEmitter<boolean> | ((result: boolean) => void);
|
|
28
|
+
minHeight?: string;
|
|
29
|
+
panelClass?: string[];
|
|
30
|
+
injector?: Injector;
|
|
31
|
+
restoreFocus?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare abstract class WattTypedModal<T = void> {
|
|
34
|
+
protected modalData: T;
|
|
35
|
+
protected dialogRef: MatDialogRef<WattTypedModal<T>>;
|
|
36
|
+
}
|
|
37
|
+
export declare class WattModalService {
|
|
38
|
+
private readonly dialog;
|
|
39
|
+
private matDialogRef;
|
|
40
|
+
/**
|
|
41
|
+
* Opens the modal. Subsequent calls are ignored while the modal is opened.
|
|
42
|
+
* @ignore
|
|
43
|
+
*/
|
|
44
|
+
open: <T>(config: WattModalConfig<T>) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Opens the modal using the provided template and configuration.
|
|
47
|
+
*/
|
|
48
|
+
private openModal;
|
|
49
|
+
/**
|
|
50
|
+
* Closes the modal with `true` for acceptance or `false` for rejection.
|
|
51
|
+
* @ignore
|
|
52
|
+
*/
|
|
53
|
+
close(result: boolean): void;
|
|
54
|
+
private setMinHeight;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattModalService, never>;
|
|
56
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WattModalService>;
|
|
57
|
+
}
|
|
58
|
+
export declare class WattModalModule {
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattModalModule, never>;
|
|
60
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WattModalModule, never, [typeof i1.MatDialogModule], never>;
|
|
61
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<WattModalModule>;
|
|
62
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "module",
|
|
3
|
+
"name": "@energinet/watt",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"sass": "./core/styles/@energinet-datahub/watt/_index.scss",
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"default": "./fesm2022/energinet-watt.mjs"
|
|
11
|
+
},
|
|
12
|
+
"./utils": {
|
|
13
|
+
"sass": "./core/styles/@energinet-datahub/watt/_utils.scss"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"./badge": {
|
|
19
|
+
"types": "./badge/index.d.ts",
|
|
20
|
+
"default": "./fesm2022/energinet-watt-badge.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./breadcrumbs": {
|
|
23
|
+
"types": "./breadcrumbs/index.d.ts",
|
|
24
|
+
"default": "./fesm2022/energinet-watt-breadcrumbs.mjs"
|
|
25
|
+
},
|
|
26
|
+
"./card": {
|
|
27
|
+
"types": "./card/index.d.ts",
|
|
28
|
+
"default": "./fesm2022/energinet-watt-card.mjs"
|
|
29
|
+
},
|
|
30
|
+
"./button": {
|
|
31
|
+
"types": "./button/index.d.ts",
|
|
32
|
+
"default": "./fesm2022/energinet-watt-button.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./checkbox": {
|
|
35
|
+
"types": "./checkbox/index.d.ts",
|
|
36
|
+
"default": "./fesm2022/energinet-watt-checkbox.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./chip": {
|
|
39
|
+
"types": "./chip/index.d.ts",
|
|
40
|
+
"default": "./fesm2022/energinet-watt-chip.mjs"
|
|
41
|
+
},
|
|
42
|
+
"./clipboard": {
|
|
43
|
+
"types": "./clipboard/index.d.ts",
|
|
44
|
+
"default": "./fesm2022/energinet-watt-clipboard.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./code": {
|
|
47
|
+
"types": "./code/index.d.ts",
|
|
48
|
+
"default": "./fesm2022/energinet-watt-code.mjs"
|
|
49
|
+
},
|
|
50
|
+
"./data": {
|
|
51
|
+
"types": "./data/index.d.ts",
|
|
52
|
+
"default": "./fesm2022/energinet-watt-data.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./datetime-field": {
|
|
55
|
+
"types": "./datetime-field/index.d.ts",
|
|
56
|
+
"default": "./fesm2022/energinet-watt-datetime-field.mjs"
|
|
57
|
+
},
|
|
58
|
+
"./description-list": {
|
|
59
|
+
"types": "./description-list/index.d.ts",
|
|
60
|
+
"default": "./fesm2022/energinet-watt-description-list.mjs"
|
|
61
|
+
},
|
|
62
|
+
"./drawer": {
|
|
63
|
+
"types": "./drawer/index.d.ts",
|
|
64
|
+
"default": "./fesm2022/energinet-watt-drawer.mjs"
|
|
65
|
+
},
|
|
66
|
+
"./dropdown": {
|
|
67
|
+
"types": "./dropdown/index.d.ts",
|
|
68
|
+
"default": "./fesm2022/energinet-watt-dropdown.mjs"
|
|
69
|
+
},
|
|
70
|
+
"./empty-state": {
|
|
71
|
+
"types": "./empty-state/index.d.ts",
|
|
72
|
+
"default": "./fesm2022/energinet-watt-empty-state.mjs"
|
|
73
|
+
},
|
|
74
|
+
"./expandable-card": {
|
|
75
|
+
"types": "./expandable-card/index.d.ts",
|
|
76
|
+
"default": "./fesm2022/energinet-watt-expandable-card.mjs"
|
|
77
|
+
},
|
|
78
|
+
"./expansion": {
|
|
79
|
+
"types": "./expansion/index.d.ts",
|
|
80
|
+
"default": "./fesm2022/energinet-watt-expansion.mjs"
|
|
81
|
+
},
|
|
82
|
+
"./field": {
|
|
83
|
+
"types": "./field/index.d.ts",
|
|
84
|
+
"default": "./fesm2022/energinet-watt-field.mjs"
|
|
85
|
+
},
|
|
86
|
+
"./icon": {
|
|
87
|
+
"types": "./icon/index.d.ts",
|
|
88
|
+
"default": "./fesm2022/energinet-watt-icon.mjs"
|
|
89
|
+
},
|
|
90
|
+
"./modal": {
|
|
91
|
+
"types": "./modal/index.d.ts",
|
|
92
|
+
"default": "./fesm2022/energinet-watt-modal.mjs"
|
|
93
|
+
},
|
|
94
|
+
"./paginator": {
|
|
95
|
+
"types": "./paginator/index.d.ts",
|
|
96
|
+
"default": "./fesm2022/energinet-watt-paginator.mjs"
|
|
97
|
+
},
|
|
98
|
+
"./phone-field": {
|
|
99
|
+
"types": "./phone-field/index.d.ts",
|
|
100
|
+
"default": "./fesm2022/energinet-watt-phone-field.mjs"
|
|
101
|
+
},
|
|
102
|
+
"./progress-tracker": {
|
|
103
|
+
"types": "./progress-tracker/index.d.ts",
|
|
104
|
+
"default": "./fesm2022/energinet-watt-progress-tracker.mjs"
|
|
105
|
+
},
|
|
106
|
+
"./query-params": {
|
|
107
|
+
"types": "./query-params/index.d.ts",
|
|
108
|
+
"default": "./fesm2022/energinet-watt-query-params.mjs"
|
|
109
|
+
},
|
|
110
|
+
"./radio": {
|
|
111
|
+
"types": "./radio/index.d.ts",
|
|
112
|
+
"default": "./fesm2022/energinet-watt-radio.mjs"
|
|
113
|
+
},
|
|
114
|
+
"./search": {
|
|
115
|
+
"types": "./search/index.d.ts",
|
|
116
|
+
"default": "./fesm2022/energinet-watt-search.mjs"
|
|
117
|
+
},
|
|
118
|
+
"./shell": {
|
|
119
|
+
"types": "./shell/index.d.ts",
|
|
120
|
+
"default": "./fesm2022/energinet-watt-shell.mjs"
|
|
121
|
+
},
|
|
122
|
+
"./slider": {
|
|
123
|
+
"types": "./slider/index.d.ts",
|
|
124
|
+
"default": "./fesm2022/energinet-watt-slider.mjs"
|
|
125
|
+
},
|
|
126
|
+
"./spinner": {
|
|
127
|
+
"types": "./spinner/index.d.ts",
|
|
128
|
+
"default": "./fesm2022/energinet-watt-spinner.mjs"
|
|
129
|
+
},
|
|
130
|
+
"./stepper": {
|
|
131
|
+
"types": "./stepper/index.d.ts",
|
|
132
|
+
"default": "./fesm2022/energinet-watt-stepper.mjs"
|
|
133
|
+
},
|
|
134
|
+
"./table": {
|
|
135
|
+
"types": "./table/index.d.ts",
|
|
136
|
+
"default": "./fesm2022/energinet-watt-table.mjs"
|
|
137
|
+
},
|
|
138
|
+
"./tabs": {
|
|
139
|
+
"types": "./tabs/index.d.ts",
|
|
140
|
+
"default": "./fesm2022/energinet-watt-tabs.mjs"
|
|
141
|
+
},
|
|
142
|
+
"./text-field": {
|
|
143
|
+
"types": "./text-field/index.d.ts",
|
|
144
|
+
"default": "./fesm2022/energinet-watt-text-field.mjs"
|
|
145
|
+
},
|
|
146
|
+
"./textarea-field": {
|
|
147
|
+
"types": "./textarea-field/index.d.ts",
|
|
148
|
+
"default": "./fesm2022/energinet-watt-textarea-field.mjs"
|
|
149
|
+
},
|
|
150
|
+
"./toast": {
|
|
151
|
+
"types": "./toast/index.d.ts",
|
|
152
|
+
"default": "./fesm2022/energinet-watt-toast.mjs"
|
|
153
|
+
},
|
|
154
|
+
"./tooltip": {
|
|
155
|
+
"types": "./tooltip/index.d.ts",
|
|
156
|
+
"default": "./fesm2022/energinet-watt-tooltip.mjs"
|
|
157
|
+
},
|
|
158
|
+
"./validation-message": {
|
|
159
|
+
"types": "./validation-message/index.d.ts",
|
|
160
|
+
"default": "./fesm2022/energinet-watt-validation-message.mjs"
|
|
161
|
+
},
|
|
162
|
+
"./validators": {
|
|
163
|
+
"types": "./validators/index.d.ts",
|
|
164
|
+
"default": "./fesm2022/energinet-watt-validators.mjs"
|
|
165
|
+
},
|
|
166
|
+
"./vater": {
|
|
167
|
+
"types": "./vater/index.d.ts",
|
|
168
|
+
"default": "./fesm2022/energinet-watt-vater.mjs"
|
|
169
|
+
},
|
|
170
|
+
"./core/breakpoints": {
|
|
171
|
+
"types": "./core/breakpoints/index.d.ts",
|
|
172
|
+
"default": "./fesm2022/energinet-watt-core-breakpoints.mjs"
|
|
173
|
+
},
|
|
174
|
+
"./core/color": {
|
|
175
|
+
"types": "./core/color/index.d.ts",
|
|
176
|
+
"default": "./fesm2022/energinet-watt-core-color.mjs"
|
|
177
|
+
},
|
|
178
|
+
"./core/date": {
|
|
179
|
+
"types": "./core/date/index.d.ts",
|
|
180
|
+
"default": "./fesm2022/energinet-watt-core-date.mjs"
|
|
181
|
+
},
|
|
182
|
+
"./icon/flags": {
|
|
183
|
+
"types": "./icon/flags/index.d.ts",
|
|
184
|
+
"default": "./fesm2022/energinet-watt-icon-flags.mjs"
|
|
185
|
+
},
|
|
186
|
+
"./picker/__shared": {
|
|
187
|
+
"types": "./picker/__shared/index.d.ts",
|
|
188
|
+
"default": "./fesm2022/energinet-watt-picker-__shared.mjs"
|
|
189
|
+
},
|
|
190
|
+
"./picker/datepicker": {
|
|
191
|
+
"types": "./picker/datepicker/index.d.ts",
|
|
192
|
+
"default": "./fesm2022/energinet-watt-picker-datepicker.mjs"
|
|
193
|
+
},
|
|
194
|
+
"./picker/timepicker": {
|
|
195
|
+
"types": "./picker/timepicker/index.d.ts",
|
|
196
|
+
"default": "./fesm2022/energinet-watt-picker-timepicker.mjs"
|
|
197
|
+
},
|
|
198
|
+
"./utils/css": {
|
|
199
|
+
"types": "./utils/css/index.d.ts",
|
|
200
|
+
"default": "./fesm2022/energinet-watt-utils-css.mjs"
|
|
201
|
+
},
|
|
202
|
+
"./utils/intersection-observer": {
|
|
203
|
+
"types": "./utils/intersection-observer/index.d.ts",
|
|
204
|
+
"default": "./fesm2022/energinet-watt-utils-intersection-observer.mjs"
|
|
205
|
+
},
|
|
206
|
+
"./utils/resize-observer": {
|
|
207
|
+
"types": "./utils/resize-observer/index.d.ts",
|
|
208
|
+
"default": "./fesm2022/energinet-watt-utils-resize-observer.mjs"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"module": "fesm2022/energinet-watt.mjs",
|
|
212
|
+
"typings": "index.d.ts",
|
|
213
|
+
"sideEffects": false,
|
|
214
|
+
"dependencies": {
|
|
215
|
+
"tslib": "^2.3.0"
|
|
216
|
+
},
|
|
217
|
+
"peerDependencies": {
|
|
218
|
+
"@angular/cdk": "^19.2.2",
|
|
219
|
+
"@angular/common": "^19.2.1",
|
|
220
|
+
"@angular/core": "^19.2.1",
|
|
221
|
+
"@angular/forms": "^19.2.1",
|
|
222
|
+
"@angular/material": "^19.2.2",
|
|
223
|
+
"@angular/platform-browser": "^19.2.1",
|
|
224
|
+
"@angular/router": "^19.2.1",
|
|
225
|
+
"@maskito/angular": "^2.5.0",
|
|
226
|
+
"@maskito/core": "^2.5.0",
|
|
227
|
+
"@maskito/kit": "^2.5.0",
|
|
228
|
+
"@maskito/phone": "^2.5.0",
|
|
229
|
+
"@popperjs/core": "^2.11.8",
|
|
230
|
+
"@rx-angular/template": "^17.1.0",
|
|
231
|
+
"dayjs": "^1.11.13",
|
|
232
|
+
"libphonenumber-js": "^1.11.9",
|
|
233
|
+
"ngx-mat-select-search": "^8.0.0",
|
|
234
|
+
"qs": "^6.12.1",
|
|
235
|
+
"rxjs": "^7.8.2"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export { WattPaginatorComponent } from './watt-paginator.component';
|
|
18
|
+
export { WattPaginatorIntlService } from './watt-paginator-intl.service';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class WattPaginatorIntlService {
|
|
4
|
+
readonly changes: Subject<void>;
|
|
5
|
+
description: string;
|
|
6
|
+
itemsPerPage: string;
|
|
7
|
+
nextPage: string;
|
|
8
|
+
previousPage: string;
|
|
9
|
+
firstPage: string;
|
|
10
|
+
lastPage: string;
|
|
11
|
+
of: string;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattPaginatorIntlService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WattPaginatorIntlService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { OnInit } from '@angular/core';
|
|
18
|
+
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
19
|
+
import { IWattTableDataSource } from '@energinet/watt/table';
|
|
20
|
+
import { WattPaginatorIntlService } from './watt-paginator-intl.service';
|
|
21
|
+
import * as i0 from "@angular/core";
|
|
22
|
+
/**
|
|
23
|
+
* Usage:
|
|
24
|
+
* `import { WattPaginatorComponent } from '@energinet-datahub/watt/paginator';`
|
|
25
|
+
*/
|
|
26
|
+
export declare class WattPaginatorComponent<T> implements OnInit {
|
|
27
|
+
private intl;
|
|
28
|
+
private matPaginatorIntl;
|
|
29
|
+
length: import("@angular/core").InputSignal<number>;
|
|
30
|
+
pageSizeOptions: import("@angular/core").InputSignal<number[]>;
|
|
31
|
+
pageSize: import("@angular/core").InputSignal<number>;
|
|
32
|
+
pageIndex: import("@angular/core").InputSignal<number>;
|
|
33
|
+
for: import("@angular/core").InputSignal<IWattTableDataSource<T> | undefined>;
|
|
34
|
+
changed: import("@angular/core").OutputEmitterRef<PageEvent>;
|
|
35
|
+
instance: import("@angular/core").Signal<MatPaginator>;
|
|
36
|
+
changes: import("@angular/core").Signal<WattPaginatorIntlService | {
|
|
37
|
+
changes: import("rxjs").Subject<void>;
|
|
38
|
+
description: string;
|
|
39
|
+
itemsPerPage: string;
|
|
40
|
+
nextPage: string;
|
|
41
|
+
previousPage: string;
|
|
42
|
+
firstPage: string;
|
|
43
|
+
lastPage: string;
|
|
44
|
+
of: string;
|
|
45
|
+
}>;
|
|
46
|
+
description: import("@angular/core").Signal<string>;
|
|
47
|
+
updateDataSource: import("@angular/core").EffectRef;
|
|
48
|
+
updateLabels: import("@angular/core").EffectRef;
|
|
49
|
+
ngOnInit(): void;
|
|
50
|
+
private getRangeLabel;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattPaginatorComponent<any>, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattPaginatorComponent<any>, "watt-paginator", never, { "length": { "alias": "length"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageIndex": { "alias": "pageIndex"; "required": false; "isSignal": true; }; "for": { "alias": "for"; "required": false; "isSignal": true; }; }, { "changed": "changed"; }, never, never, true, never>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Energinet DataHub A/S
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export { WattPhoneFieldComponent } from './watt-phone-field.component';
|
|
18
|
+
export { WattPhoneFieldIntlService } from './watt-phone-field-intl.service';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class WattPhoneFieldIntlService {
|
|
4
|
+
readonly changes: Subject<void>;
|
|
5
|
+
invalidPhoneNumber: string;
|
|
6
|
+
DK: string;
|
|
7
|
+
DE: string;
|
|
8
|
+
FI: string;
|
|
9
|
+
NO: string;
|
|
10
|
+
SE: string;
|
|
11
|
+
PL: string;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattPhoneFieldIntlService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WattPhoneFieldIntlService>;
|
|
14
|
+
}
|