@energinet/watt 4.2.15-alpha.0 → 4.2.16
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/{types/energinet-watt-button.d.ts → button/index.d.ts} +1 -1
- package/{types/energinet-watt-chip.d.ts → chip/index.d.ts} +1 -1
- package/{types/energinet-watt-core-date.d.ts → core/date/index.d.ts} +7 -24
- package/{types/energinet-watt-data.d.ts → data/index.d.ts} +1 -1
- package/{types/energinet-watt-empty-state.d.ts → empty-state/index.d.ts} +1 -1
- package/fesm2022/energinet-watt-core-date.mjs.map +1 -1
- package/fesm2022/energinet-watt-icon.mjs +2 -0
- package/fesm2022/energinet-watt-icon.mjs.map +1 -1
- package/{types/energinet-watt-icon.d.ts → icon/index.d.ts} +3 -1
- package/{types/energinet-watt-modal.d.ts → modal/index.d.ts} +1 -1
- package/package.json +87 -87
- package/{types/energinet-watt-text-field.d.ts → text-field/index.d.ts} +1 -1
- package/{types/energinet-watt-validation-message.d.ts → validation-message/index.d.ts} +1 -1
- /package/{types/energinet-watt-badge.d.ts → badge/index.d.ts} +0 -0
- /package/{types/energinet-watt-breadcrumbs.d.ts → breadcrumbs/index.d.ts} +0 -0
- /package/{types/energinet-watt-card.d.ts → card/index.d.ts} +0 -0
- /package/{types/energinet-watt-checkbox.d.ts → checkbox/index.d.ts} +0 -0
- /package/{types/energinet-watt-clipboard.d.ts → clipboard/index.d.ts} +0 -0
- /package/{types/energinet-watt-code.d.ts → code/index.d.ts} +0 -0
- /package/{types/energinet-watt-core-breakpoints.d.ts → core/breakpoints/index.d.ts} +0 -0
- /package/{types/energinet-watt-core-color.d.ts → core/color/index.d.ts} +0 -0
- /package/{types/energinet-watt-datetime-field.d.ts → datetime-field/index.d.ts} +0 -0
- /package/{types/energinet-watt-description-list.d.ts → description-list/index.d.ts} +0 -0
- /package/{types/energinet-watt-drawer.d.ts → drawer/index.d.ts} +0 -0
- /package/{types/energinet-watt-dropdown.d.ts → dropdown/index.d.ts} +0 -0
- /package/{types/energinet-watt-dropzone.d.ts → dropzone/index.d.ts} +0 -0
- /package/{types/energinet-watt-expandable-card.d.ts → expandable-card/index.d.ts} +0 -0
- /package/{types/energinet-watt-field.d.ts → field/index.d.ts} +0 -0
- /package/{types/energinet-watt-file-field.d.ts → file-field/index.d.ts} +0 -0
- /package/{types/energinet-watt-icon-flags.d.ts → icon/flags/index.d.ts} +0 -0
- /package/{types/energinet-watt.d.ts → index.d.ts} +0 -0
- /package/{types/energinet-watt-menu.d.ts → menu/index.d.ts} +0 -0
- /package/{types/energinet-watt-paginator.d.ts → paginator/index.d.ts} +0 -0
- /package/{types/energinet-watt-phone-field.d.ts → phone-field/index.d.ts} +0 -0
- /package/{types/energinet-watt-picker-__shared.d.ts → picker/__shared/index.d.ts} +0 -0
- /package/{types/energinet-watt-picker-datepicker.d.ts → picker/datepicker/index.d.ts} +0 -0
- /package/{types/energinet-watt-picker-timepicker.d.ts → picker/timepicker/index.d.ts} +0 -0
- /package/{types/energinet-watt-progress-tracker.d.ts → progress-tracker/index.d.ts} +0 -0
- /package/{types/energinet-watt-query-params.d.ts → query-params/index.d.ts} +0 -0
- /package/{types/energinet-watt-radio.d.ts → radio/index.d.ts} +0 -0
- /package/{types/energinet-watt-search.d.ts → search/index.d.ts} +0 -0
- /package/{types/energinet-watt-segmented-buttons.d.ts → segmented-buttons/index.d.ts} +0 -0
- /package/{types/energinet-watt-shell.d.ts → shell/index.d.ts} +0 -0
- /package/{types/energinet-watt-slide-toggle.d.ts → slide-toggle/index.d.ts} +0 -0
- /package/{types/energinet-watt-slider.d.ts → slider/index.d.ts} +0 -0
- /package/{types/energinet-watt-spinner.d.ts → spinner/index.d.ts} +0 -0
- /package/{types/energinet-watt-stepper.d.ts → stepper/index.d.ts} +0 -0
- /package/{types/energinet-watt-table.d.ts → table/index.d.ts} +0 -0
- /package/{types/energinet-watt-tabs.d.ts → tabs/index.d.ts} +0 -0
- /package/{types/energinet-watt-textarea-field.d.ts → textarea-field/index.d.ts} +0 -0
- /package/{types/energinet-watt-toast.d.ts → toast/index.d.ts} +0 -0
- /package/{types/energinet-watt-tooltip.d.ts → tooltip/index.d.ts} +0 -0
- /package/{types/energinet-watt-utils-css.d.ts → utils/css/index.d.ts} +0 -0
- /package/{types/energinet-watt-utils-intersection-observer.d.ts → utils/intersection-observer/index.d.ts} +0 -0
- /package/{types/energinet-watt-utils-resize-observer.d.ts → utils/resize-observer/index.d.ts} +0 -0
- /package/{types/energinet-watt-validators.d.ts → validators/index.d.ts} +0 -0
- /package/{types/energinet-watt-vater.d.ts → vater/index.d.ts} +0 -0
- /package/{types/energinet-watt-year-field.d.ts → year-field/index.d.ts} +0 -0
- /package/{types/energinet-watt-yearmonth-field.d.ts → yearmonth-field/index.d.ts} +0 -0
|
@@ -3,7 +3,7 @@ import * as _angular_core from '@angular/core';
|
|
|
3
3
|
type WattButtonType = 'button' | 'reset' | 'submit';
|
|
4
4
|
type WattButtonSize = 'small' | 'medium';
|
|
5
5
|
declare class WattButtonComponent {
|
|
6
|
-
icon: _angular_core.InputSignal<"search" | "filter" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "email" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | undefined>;
|
|
6
|
+
icon: _angular_core.InputSignal<"search" | "filter" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "email" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "send" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "attachFile" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | undefined>;
|
|
7
7
|
variant: _angular_core.InputSignal<"primary" | "secondary" | "text" | "icon" | "selection">;
|
|
8
8
|
size: _angular_core.InputSignal<WattButtonSize>;
|
|
9
9
|
type: _angular_core.InputSignal<WattButtonType>;
|
|
@@ -6,7 +6,7 @@ import { WattDatepickerIntlService } from '@energinet/watt/picker/datepicker';
|
|
|
6
6
|
|
|
7
7
|
declare class WattActionChipComponent {
|
|
8
8
|
disabled: _angular_core.InputSignal<boolean>;
|
|
9
|
-
icon: _angular_core.InputSignal<"search" | "filter" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "email" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on">;
|
|
9
|
+
icon: _angular_core.InputSignal<"search" | "filter" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "email" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "send" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "attachFile" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on">;
|
|
10
10
|
action: _angular_core.OutputEmitterRef<void>;
|
|
11
11
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WattActionChipComponent, never>;
|
|
12
12
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WattActionChipComponent, "watt-action-chip", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; }, { "action": "action"; }, never, ["*"], true, never>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import utc from 'dayjs/plugin/utc';
|
|
2
|
+
import timezone from 'dayjs/plugin/timezone';
|
|
3
|
+
import duration from 'dayjs/plugin/duration';
|
|
4
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
3
5
|
import * as _angular_core from '@angular/core';
|
|
4
6
|
import { PipeTransform } from '@angular/core';
|
|
5
7
|
import { NativeDateAdapter } from '@angular/material/core';
|
|
8
|
+
export { default as dayjs } from 'dayjs';
|
|
6
9
|
|
|
7
10
|
/**
|
|
8
11
|
* @license
|
|
@@ -21,27 +24,7 @@ import { NativeDateAdapter } from '@angular/material/core';
|
|
|
21
24
|
* limitations under the License.
|
|
22
25
|
*/
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
interface Dayjs {
|
|
26
|
-
tz(timezone?: string, keepLocalTime?: boolean): dayjs.Dayjs;
|
|
27
|
-
offsetName(type?: 'short' | 'long'): string | undefined;
|
|
28
|
-
}
|
|
29
|
-
interface DayjsTimezone {
|
|
30
|
-
(date?: dayjs.ConfigType, timezone?: string): dayjs.Dayjs;
|
|
31
|
-
(date: dayjs.ConfigType, format: string, timezone?: string): dayjs.Dayjs;
|
|
32
|
-
guess(): string;
|
|
33
|
-
setDefault(timezone?: string): void;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
declare module 'dayjs' {
|
|
37
|
-
interface Dayjs {
|
|
38
|
-
utc(keepLocalTime?: boolean): dayjs.Dayjs;
|
|
39
|
-
local(): dayjs.Dayjs;
|
|
40
|
-
isUTC(): boolean;
|
|
41
|
-
utcOffset(offset: number | string, keepLocalTime?: boolean): dayjs.Dayjs;
|
|
42
|
-
}
|
|
43
|
-
function utc(config?: dayjs.ConfigType, format?: string, strict?: boolean): dayjs.Dayjs;
|
|
44
|
-
}
|
|
27
|
+
type __ngPackagrDayjsTypeScriptWorkaround = typeof utc | typeof timezone | typeof duration | typeof customParseFormat;
|
|
45
28
|
|
|
46
29
|
declare const danishDatetimeProviders: _angular_core.EnvironmentProviders;
|
|
47
30
|
|
|
@@ -151,4 +134,4 @@ declare class WattLocaleService {
|
|
|
151
134
|
}
|
|
152
135
|
|
|
153
136
|
export { WattDateAdapter, WattDatePipe, WattLocaleService, danishDatetimeProviders, wattFormatDate };
|
|
154
|
-
export type { WattDateRange, WattRange, WattSupportedLocales };
|
|
137
|
+
export type { WattDateRange, WattRange, WattSupportedLocales, __ngPackagrDayjsTypeScriptWorkaround };
|
|
@@ -46,7 +46,7 @@ declare class WattDataTableComponent {
|
|
|
46
46
|
count: _angular_core.InputSignal<number | undefined>;
|
|
47
47
|
autoSize: _angular_core.InputSignal<boolean>;
|
|
48
48
|
variant: _angular_core.InputSignal<WATT_CARD_VARIANT>;
|
|
49
|
-
emptyStateIcon: _angular_core.InputSignal<"search" | "filter" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "email" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | "custom-power" | "custom-explore" | "custom-no-results">;
|
|
49
|
+
emptyStateIcon: _angular_core.InputSignal<"search" | "filter" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "email" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "send" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "attachFile" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | "custom-power" | "custom-explore" | "custom-no-results">;
|
|
50
50
|
clear: _angular_core.OutputEmitterRef<void>;
|
|
51
51
|
pageChanged: _angular_core.OutputEmitterRef<PageEvent>;
|
|
52
52
|
retry: _angular_core.OutputEmitterRef<void>;
|
|
@@ -6,7 +6,7 @@ import { WattIconSize } from '@energinet/watt/icon';
|
|
|
6
6
|
* `import { WattEmptyStateComponent } from '@energinet/watt/empty-state';`
|
|
7
7
|
*/
|
|
8
8
|
declare class WattEmptyStateComponent {
|
|
9
|
-
icon: i0.InputSignal<"search" | "filter" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "email" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | "custom-power" | "custom-explore" | "custom-no-results" | undefined>;
|
|
9
|
+
icon: i0.InputSignal<"search" | "filter" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "email" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "send" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "attachFile" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | "custom-power" | "custom-explore" | "custom-no-results" | undefined>;
|
|
10
10
|
size: i0.InputSignal<"small" | "large">;
|
|
11
11
|
title: i0.InputSignal<string>;
|
|
12
12
|
message: i0.InputSignal<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"energinet-watt-core-date.mjs","sources":["../../../libs/watt/package/core/date/dayjs.ts","../../../libs/watt/package/core/date/watt-date-adapter.ts","../../../libs/watt/package/core/date/watt-danish-datetime.providers.ts","../../../libs/watt/package/core/date/watt-format-date.ts","../../../libs/watt/package/core/date/watt-date.pipe.ts","../../../libs/watt/package/core/date/watt-locale.service.ts","../../../libs/watt/package/core/date/index.ts","../../../libs/watt/package/core/date/energinet-watt-core-date.ts"],"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 dayjs from 'dayjs'; // eslint-disable-line no-restricted-imports\nimport utc from 'dayjs/plugin/utc';\nimport timezone from 'dayjs/plugin/timezone';\nimport duration from 'dayjs/plugin/duration';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\n\ndayjs.extend(utc);\ndayjs.extend(timezone);\ndayjs.extend(duration);\ndayjs.extend(customParseFormat);\n\ndeclare module 'dayjs' {\n interface Dayjs {\n tz(timezone?: string, keepLocalTime?: boolean): dayjs.Dayjs;\n offsetName(type?: 'short' | 'long'): string | undefined;\n }\n interface DayjsTimezone {\n (date?: dayjs.ConfigType, timezone?: string): dayjs.Dayjs;\n (date: dayjs.ConfigType, format: string, timezone?: string): dayjs.Dayjs;\n guess(): string;\n setDefault(timezone?: string): void;\n }\n}\n\ndeclare module 'dayjs' {\n interface Dayjs {\n utc(keepLocalTime?: boolean): dayjs.Dayjs;\n local(): dayjs.Dayjs;\n isUTC(): boolean;\n utcOffset(offset: number | string, keepLocalTime?: boolean): dayjs.Dayjs;\n }\n\n export function utc(config?: dayjs.ConfigType, format?: string, strict?: boolean): dayjs.Dayjs;\n}\n\nexport { dayjs };\n","//#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 { NativeDateAdapter } from '@angular/material/core';\n\nexport type WattSupportedLocales = 'da' | 'en';\nconst danishLocale = 'da';\n\nexport class WattDateAdapter extends NativeDateAdapter {\n setActiveLocale(language: WattSupportedLocales): void {\n this.setLocale(language === danishLocale ? danishLocale : 'en-GB');\n }\n\n /**\n * This is necessary to remove the dots from the date (ordinals) for danish locale in the calendar view.\n * due to `Intl.DateTimeFormat`\n */\n override getDateNames(): string[] {\n const dateNames = super.getDateNames();\n\n return this.locale === danishLocale\n ? dateNames.map((dateName) => dateName.replace(/\\./g, ''))\n : dateNames;\n }\n\n /**\n * Our week starts on Monday\n * @returns 0 for Sunday, 1 for Monday, etc.\n */\n override getFirstDayOfWeek(): number {\n return 1;\n }\n}\n","//#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 DateAdapter,\n MAT_DATE_FORMATS,\n MAT_DATE_LOCALE,\n MAT_NATIVE_DATE_FORMATS,\n} from '@angular/material/core';\nimport { makeEnvironmentProviders } from '@angular/core';\n\nimport { WattDateAdapter } from './watt-date-adapter';\n\nexport const danishDatetimeProviders = makeEnvironmentProviders([\n { provide: MAT_DATE_LOCALE, useValue: 'da' },\n {\n provide: DateAdapter,\n useClass: WattDateAdapter,\n deps: [MAT_DATE_LOCALE],\n },\n { provide: MAT_DATE_FORMATS, useValue: MAT_NATIVE_DATE_FORMATS },\n]);\n","//#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 { dayjs } from './dayjs';\nimport { WattRange } from './watt-date-range';\n\nexport const formatStrings = {\n monthYear: 'MMMM YYYY',\n short: 'DD-MM-YYYY',\n shortAbbr: 'DD. MMM YYYY',\n long: 'DD-MM-YYYY HH:mm',\n longAbbr: 'DD. MMM YYYY HH:mm',\n time: 'HH:mm',\n longAbbrWithSeconds: 'DD-MMM YYYY HH:mm:ss',\n};\n\nexport function wattFormatDate(\n input?: WattRange<Date> | WattRange<string> | Date | string | number | null,\n format: keyof typeof formatStrings = 'short',\n timeZone = 'Europe/Copenhagen'\n): string | null {\n if (!input) return null;\n\n if (input instanceof Date || typeof input === 'string') {\n return dayjs(input).tz(timeZone).format(formatStrings[format]);\n } else if (typeof input === 'number') {\n return dayjs(new Date(input)).tz(timeZone).format(formatStrings[format]);\n } else {\n return transformRange(input, format);\n }\n}\n\nfunction transformRange(\n input: WattRange<Date | string>,\n format: keyof typeof formatStrings\n): string | null {\n if (dayjs(input.start).isSame(dayjs(input.end), 'day') || input.end === null) {\n return wattFormatDate(input.start, format);\n } else {\n return `${wattFormatDate(input.start, format)} ― ${wattFormatDate(input.end, format)}`;\n }\n}\n","//#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","//#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","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { dayjs } from './dayjs';\nexport { danishDatetimeProviders } from './watt-danish-datetime.providers';\nexport { WattDateAdapter, WattSupportedLocales } from './watt-date-adapter';\nexport { type WattRange, type WattDateRange } from './watt-date-range';\nexport { WattDatePipe } from './watt-date.pipe';\nexport { wattFormatDate } from './watt-format-date';\nexport { WattLocaleService } from './watt-locale.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAOA,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC;AACjB,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;AACtB,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;AACtB,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC;;AC3B/B;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAIA,MAAM,YAAY,GAAG,IAAI;AAEnB,MAAO,eAAgB,SAAQ,iBAAiB,CAAA;AACpD,IAAA,eAAe,CAAC,QAA8B,EAAA;AAC5C,QAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,KAAK,YAAY,GAAG,YAAY,GAAG,OAAO,CAAC;IACpE;AAEA;;;AAGG;IACM,YAAY,GAAA;AACnB,QAAA,MAAM,SAAS,GAAG,KAAK,CAAC,YAAY,EAAE;AAEtC,QAAA,OAAO,IAAI,CAAC,MAA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../libs/watt/package/core/date/watt-date-adapter.ts","../../../libs/watt/package/core/date/watt-danish-datetime.providers.ts","../../../libs/watt/package/core/date/watt-format-date.ts","../../../libs/watt/package/core/date/watt-date.pipe.ts","../../../libs/watt/package/core/date/watt-locale.service.ts","../../../libs/watt/package/core/date/index.ts","../../../libs/watt/package/core/date/energinet-watt-core-date.ts"],"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 dayjs from 'dayjs'; // eslint-disable-line no-restricted-imports\nimport utc from 'dayjs/plugin/utc';\nimport timezone from 'dayjs/plugin/timezone';\nimport duration from 'dayjs/plugin/duration';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\n\n// Force import of plugins in generated .d.ts file by exporting their types\ntype __ngPackagrDayjsTypeScriptWorkaround =\n | typeof utc\n | typeof timezone\n | typeof duration\n | typeof customParseFormat;\n\ndayjs.extend(utc);\ndayjs.extend(timezone);\ndayjs.extend(duration);\ndayjs.extend(customParseFormat);\n\nexport { dayjs, __ngPackagrDayjsTypeScriptWorkaround };\n","//#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 { NativeDateAdapter } from '@angular/material/core';\n\nexport type WattSupportedLocales = 'da' | 'en';\nconst danishLocale = 'da';\n\nexport class WattDateAdapter extends NativeDateAdapter {\n setActiveLocale(language: WattSupportedLocales): void {\n this.setLocale(language === danishLocale ? danishLocale : 'en-GB');\n }\n\n /**\n * This is necessary to remove the dots from the date (ordinals) for danish locale in the calendar view.\n * due to `Intl.DateTimeFormat`\n */\n override getDateNames(): string[] {\n const dateNames = super.getDateNames();\n\n return this.locale === danishLocale\n ? dateNames.map((dateName) => dateName.replace(/\\./g, ''))\n : dateNames;\n }\n\n /**\n * Our week starts on Monday\n * @returns 0 for Sunday, 1 for Monday, etc.\n */\n override getFirstDayOfWeek(): number {\n return 1;\n }\n}\n","//#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 DateAdapter,\n MAT_DATE_FORMATS,\n MAT_DATE_LOCALE,\n MAT_NATIVE_DATE_FORMATS,\n} from '@angular/material/core';\nimport { makeEnvironmentProviders } from '@angular/core';\n\nimport { WattDateAdapter } from './watt-date-adapter';\n\nexport const danishDatetimeProviders = makeEnvironmentProviders([\n { provide: MAT_DATE_LOCALE, useValue: 'da' },\n {\n provide: DateAdapter,\n useClass: WattDateAdapter,\n deps: [MAT_DATE_LOCALE],\n },\n { provide: MAT_DATE_FORMATS, useValue: MAT_NATIVE_DATE_FORMATS },\n]);\n","//#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 { dayjs } from './dayjs';\nimport { WattRange } from './watt-date-range';\n\nexport const formatStrings = {\n monthYear: 'MMMM YYYY',\n short: 'DD-MM-YYYY',\n shortAbbr: 'DD. MMM YYYY',\n long: 'DD-MM-YYYY HH:mm',\n longAbbr: 'DD. MMM YYYY HH:mm',\n time: 'HH:mm',\n longAbbrWithSeconds: 'DD-MMM YYYY HH:mm:ss',\n};\n\nexport function wattFormatDate(\n input?: WattRange<Date> | WattRange<string> | Date | string | number | null,\n format: keyof typeof formatStrings = 'short',\n timeZone = 'Europe/Copenhagen'\n): string | null {\n if (!input) return null;\n\n if (input instanceof Date || typeof input === 'string') {\n return dayjs(input).tz(timeZone).format(formatStrings[format]);\n } else if (typeof input === 'number') {\n return dayjs(new Date(input)).tz(timeZone).format(formatStrings[format]);\n } else {\n return transformRange(input, format);\n }\n}\n\nfunction transformRange(\n input: WattRange<Date | string>,\n format: keyof typeof formatStrings\n): string | null {\n if (dayjs(input.start).isSame(dayjs(input.end), 'day') || input.end === null) {\n return wattFormatDate(input.start, format);\n } else {\n return `${wattFormatDate(input.start, format)} ― ${wattFormatDate(input.end, format)}`;\n }\n}\n","//#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","//#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","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { dayjs, __ngPackagrDayjsTypeScriptWorkaround } from './dayjs';\nexport { danishDatetimeProviders } from './watt-danish-datetime.providers';\nexport { WattDateAdapter, WattSupportedLocales } from './watt-date-adapter';\nexport { type WattRange, type WattDateRange } from './watt-date-range';\nexport { WattDatePipe } from './watt-date.pipe';\nexport { wattFormatDate } from './watt-format-date';\nexport { WattLocaleService } from './watt-locale.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAcA,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC;AACjB,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;AACtB,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;AACtB,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC;;AClC/B;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAIA,MAAM,YAAY,GAAG,IAAI;AAEnB,MAAO,eAAgB,SAAQ,iBAAiB,CAAA;AACpD,IAAA,eAAe,CAAC,QAA8B,EAAA;AAC5C,QAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,KAAK,YAAY,GAAG,YAAY,GAAG,OAAO,CAAC;IACpE;AAEA;;;AAGG;IACM,YAAY,GAAA;AACnB,QAAA,MAAM,SAAS,GAAG,KAAK,CAAC,YAAY,EAAE;AAEtC,QAAA,OAAO,IAAI,CAAC,MAAM,KAAK;AACrB,cAAE,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;cACv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
63
64
|
right: 'navigate_next',
|
|
@@ -80,6 +81,7 @@ const WattIconMap = {
|
|
|
80
81
|
fileUpload: 'upload',
|
|
81
82
|
print: 'print',
|
|
82
83
|
preview: 'preview',
|
|
84
|
+
attachFile: 'attach_file',
|
|
83
85
|
// Other
|
|
84
86
|
power: 'power',
|
|
85
87
|
location: 'location_on',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"energinet-watt-icon.mjs","sources":["../../../libs/watt/package/icon/icons.ts","../../../libs/watt/package/icon/icon.component.ts","../../../libs/watt/package/icon/index.ts","../../../libs/watt/package/icon/energinet-watt-icon.ts"],"sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport const WattIconMap = {\n search: 'search',\n filter: 'filter_list',\n plus: 'add',\n minus: 'remove',\n edit: 'edit',\n redo: 'redo',\n undo: 'undo',\n remove: 'delete',\n removeForever: 'delete_forever',\n close: 'close',\n cancel: 'cancel',\n checkmark: 'check',\n user: 'account_circle',\n settings: 'settings',\n contentCopy: 'content_copy',\n date: 'calendar_today',\n time: 'schedule',\n email: 'email',\n markEmailUnread: 'mark_email_unread',\n link: 'link',\n openInNew: 'open_in_new',\n monetization: 'monetization_on',\n payments: 'payments',\n forwardMessage: 'forward_to_inbox',\n forward: 'forward',\n menu: 'menu',\n moreVertical: 'more_vert',\n logout: 'logout',\n login: 'lock_open',\n help: 'help',\n alternateEmail: 'alternate_email',\n refresh: 'refresh',\n language: 'language',\n pendingActions: 'pending_actions',\n toggleOn: 'toggle_on',\n toggleOff: 'toggle_off',\n personCheck: 'person_check',\n // Navigation\n left: 'navigate_before',\n right: 'navigate_next',\n up: 'expand_less',\n down: 'expand_more',\n arrowDropDown: 'arrow_drop_down',\n arrowRightAlt: 'arrow_right_alt',\n arrowLeftAlt: 'arrow_left_alt',\n // Alerts\n danger: 'dangerous',\n warning: 'report_problem',\n success: 'check_circle',\n info: 'info',\n feedback: 'feedback',\n // Files\n save: 'save_alt',\n upload: 'cloud_upload',\n download: 'cloud_download',\n fileDownload: 'download',\n fileUpload: 'upload',\n print: 'print',\n preview: 'preview',\n // Other\n power: 'power',\n location: 'location_on',\n smartDisplay: 'smart_display',\n windmill: 'energy',\n solarPower: 'solar_power',\n priorityHigh: 'priority_high',\n notifications: 'notifications',\n notificationsUnread: 'notifications_unread',\n horizontalRule: 'horizontal_rule',\n wrongLocation: 'wrong_location',\n heatPump: 'heat_pump',\n inventory: 'inventory',\n globe: 'globe',\n calculate: 'calculate',\n bar_chart_4_bars: 'bar_chart_4_bars',\n view_list: 'view_list',\n view_stream: 'view_stream',\n construction: 'construction',\n factory: 'factory',\n nest_eco_leaf: 'nest_eco_leaf',\n flash_on: 'flash_on',\n};\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n input,\n} from '@angular/core';\nimport { MatIcon } from '@angular/material/icon';\nimport { WattIconMap } from './icons';\n\nexport type WattIcon = keyof typeof WattIconMap;\nexport type WattIconSize = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\nexport type WattIconState = 'default' | 'success' | 'danger' | 'warning' | 'info';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { '[class]': 'classNames()' },\n imports: [MatIcon],\n selector: 'watt-icon',\n styleUrls: ['./icon.component.scss'],\n template: `\n @if (icon()) {\n <mat-icon aria-hidden=\"false\" [attr.aria-label]=\"label()\" fontSet=\"material-symbols-sharp\">\n {{ icon() }}\n </mat-icon>\n } @else {\n <div class=\"watt-custom-icon\">\n <ng-content />\n </div>\n }\n `,\n})\nexport class WattIconComponent {\n /** Name of an icon within the font set. */\n name = input<WattIcon>();\n\n /** Accessible label for the icon. */\n label = input<string>();\n\n /** Size of the icon. */\n size = input<WattIconSize>('m');\n\n /** Color the icon to match a chosen state. */\n state = input<WattIconState>();\n\n icon = computed(() => {\n const name = this.name();\n if (!name) return null;\n return WattIconMap[name];\n });\n\n computedState = computed(() => {\n const name = this.name();\n const state = this.state();\n if (state) return state;\n switch (name) {\n case 'success':\n case 'danger':\n case 'warning':\n case 'info':\n return name;\n default:\n return 'default';\n }\n });\n\n classNames = computed(() => `icon-size-${this.size()} icon-state-${this.computedState()}`);\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattIconComponent, WattIcon, WattIconSize, WattIconState } from './icon.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AACO,MAAM,WAAW,GAAG;AACzB,IAA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QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;4FAeN,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAnB7B,SAAS;AACS,YAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,QAC/B,EAAE,SAAS,EAAE,cAAc,EAAE,EAAA,OAAA,EAC1B,CAAC,OAAO,CAAC,EAAA,QAAA,EACR,WAAW,EAAA,QAAA,EAEX;;;;;;;;;;AAUT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,gpFAAA,CAAA,EAAA;;;ACjDH;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"energinet-watt-icon.mjs","sources":["../../../libs/watt/package/icon/icons.ts","../../../libs/watt/package/icon/icon.component.ts","../../../libs/watt/package/icon/index.ts","../../../libs/watt/package/icon/energinet-watt-icon.ts"],"sourcesContent":["//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport const WattIconMap = {\n search: 'search',\n filter: 'filter_list',\n plus: 'add',\n minus: 'remove',\n edit: 'edit',\n redo: 'redo',\n undo: 'undo',\n remove: 'delete',\n removeForever: 'delete_forever',\n close: 'close',\n cancel: 'cancel',\n checkmark: 'check',\n user: 'account_circle',\n settings: 'settings',\n contentCopy: 'content_copy',\n date: 'calendar_today',\n time: 'schedule',\n email: 'email',\n markEmailUnread: 'mark_email_unread',\n link: 'link',\n openInNew: 'open_in_new',\n monetization: 'monetization_on',\n payments: 'payments',\n forwardMessage: 'forward_to_inbox',\n forward: 'forward',\n menu: 'menu',\n moreVertical: 'more_vert',\n logout: 'logout',\n login: 'lock_open',\n help: 'help',\n alternateEmail: 'alternate_email',\n refresh: 'refresh',\n language: 'language',\n pendingActions: 'pending_actions',\n toggleOn: 'toggle_on',\n toggleOff: 'toggle_off',\n personCheck: 'person_check',\n send: 'send',\n // Navigation\n left: 'navigate_before',\n right: 'navigate_next',\n up: 'expand_less',\n down: 'expand_more',\n arrowDropDown: 'arrow_drop_down',\n arrowRightAlt: 'arrow_right_alt',\n arrowLeftAlt: 'arrow_left_alt',\n // Alerts\n danger: 'dangerous',\n warning: 'report_problem',\n success: 'check_circle',\n info: 'info',\n feedback: 'feedback',\n // Files\n save: 'save_alt',\n upload: 'cloud_upload',\n download: 'cloud_download',\n fileDownload: 'download',\n fileUpload: 'upload',\n print: 'print',\n preview: 'preview',\n attachFile: 'attach_file',\n // Other\n power: 'power',\n location: 'location_on',\n smartDisplay: 'smart_display',\n windmill: 'energy',\n solarPower: 'solar_power',\n priorityHigh: 'priority_high',\n notifications: 'notifications',\n notificationsUnread: 'notifications_unread',\n horizontalRule: 'horizontal_rule',\n wrongLocation: 'wrong_location',\n heatPump: 'heat_pump',\n inventory: 'inventory',\n globe: 'globe',\n calculate: 'calculate',\n bar_chart_4_bars: 'bar_chart_4_bars',\n view_list: 'view_list',\n view_stream: 'view_stream',\n construction: 'construction',\n factory: 'factory',\n nest_eco_leaf: 'nest_eco_leaf',\n flash_on: 'flash_on',\n};\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n input,\n} from '@angular/core';\nimport { MatIcon } from '@angular/material/icon';\nimport { WattIconMap } from './icons';\n\nexport type WattIcon = keyof typeof WattIconMap;\nexport type WattIconSize = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\nexport type WattIconState = 'default' | 'success' | 'danger' | 'warning' | 'info';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { '[class]': 'classNames()' },\n imports: [MatIcon],\n selector: 'watt-icon',\n styleUrls: ['./icon.component.scss'],\n template: `\n @if (icon()) {\n <mat-icon aria-hidden=\"false\" [attr.aria-label]=\"label()\" fontSet=\"material-symbols-sharp\">\n {{ icon() }}\n </mat-icon>\n } @else {\n <div class=\"watt-custom-icon\">\n <ng-content />\n </div>\n }\n `,\n})\nexport class WattIconComponent {\n /** Name of an icon within the font set. */\n name = input<WattIcon>();\n\n /** Accessible label for the icon. */\n label = input<string>();\n\n /** Size of the icon. */\n size = input<WattIconSize>('m');\n\n /** Color the icon to match a chosen state. */\n state = input<WattIconState>();\n\n icon = computed(() => {\n const name = this.name();\n if (!name) return null;\n return WattIconMap[name];\n });\n\n computedState = computed(() => {\n const name = this.name();\n const state = this.state();\n if (state) return state;\n switch (name) {\n case 'success':\n case 'danger':\n case 'warning':\n case 'info':\n return name;\n default:\n return 'default';\n }\n });\n\n classNames = computed(() => `icon-size-${this.size()} icon-state-${this.computedState()}`);\n}\n","//#region License\n/**\n * @license\n * Copyright 2020 Energinet DataHub A/S\n *\n * Licensed under the Apache License, Version 2.0 (the \"License2\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n//#endregion\nexport { WattIconComponent, WattIcon, WattIconSize, WattIconState } from './icon.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AACO,MAAM,WAAW,GAAG;AACzB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,aAAa,EAAE,gBAAgB;AAC/B,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,SAAS,EAAE,OAAO;AAClB,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,WAAW,EAAE,cAAc;AAC3B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,eAAe,EAAE,mBAAmB;AACpC,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,cAAc,EAAE,kBAAkB;AAClC,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,YAAY,EAAE,WAAW;AACzB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAA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,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,cAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAZlB;;;;;;;;;;AAUT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,gpFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAbS,OAAO,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;4FAeN,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAnB7B,SAAS;AACS,YAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,QAC/B,EAAE,SAAS,EAAE,cAAc,EAAE,EAAA,OAAA,EAC1B,CAAC,OAAO,CAAC,EAAA,QAAA,EACR,WAAW,EAAA,QAAA,EAEX;;;;;;;;;;AAUT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,gpFAAA,CAAA,EAAA;;;ACjDH;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
|
|
@@ -54,6 +54,7 @@ declare const WattIconMap: {
|
|
|
54
54
|
toggleOn: string;
|
|
55
55
|
toggleOff: string;
|
|
56
56
|
personCheck: string;
|
|
57
|
+
send: string;
|
|
57
58
|
left: string;
|
|
58
59
|
right: string;
|
|
59
60
|
up: string;
|
|
@@ -73,6 +74,7 @@ declare const WattIconMap: {
|
|
|
73
74
|
fileUpload: string;
|
|
74
75
|
print: string;
|
|
75
76
|
preview: string;
|
|
77
|
+
attachFile: string;
|
|
76
78
|
power: string;
|
|
77
79
|
location: string;
|
|
78
80
|
smartDisplay: string;
|
|
@@ -101,7 +103,7 @@ type WattIconSize = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
|
101
103
|
type WattIconState = 'default' | 'success' | 'danger' | 'warning' | 'info';
|
|
102
104
|
declare class WattIconComponent {
|
|
103
105
|
/** Name of an icon within the font set. */
|
|
104
|
-
name: _angular_core.InputSignal<"search" | "remove" | "edit" | "redo" | "undo" | "close" | "cancel" | "settings" | "email" | "link" | "payments" | "forward" | "menu" | "logout" | "help" | "refresh" | "language" | "info" | "feedback" | "download" | "upload" | "print" | "preview" | "power" | "notifications" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | "success" | "danger" | "warning" | "filter" | "plus" | "minus" | "removeForever" | "checkmark" | "user" | "contentCopy" | "date" | "time" | "markEmailUnread" | "openInNew" | "monetization" | "forwardMessage" | "moreVertical" | "login" | "alternateEmail" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "save" | "fileDownload" | "fileUpload" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | undefined>;
|
|
106
|
+
name: _angular_core.InputSignal<"search" | "remove" | "edit" | "redo" | "undo" | "close" | "cancel" | "settings" | "email" | "link" | "payments" | "forward" | "menu" | "logout" | "help" | "refresh" | "language" | "send" | "info" | "feedback" | "download" | "upload" | "print" | "preview" | "power" | "notifications" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | "success" | "danger" | "warning" | "filter" | "plus" | "minus" | "removeForever" | "checkmark" | "user" | "contentCopy" | "date" | "time" | "markEmailUnread" | "openInNew" | "monetization" | "forwardMessage" | "moreVertical" | "login" | "alternateEmail" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "save" | "fileDownload" | "fileUpload" | "attachFile" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | undefined>;
|
|
105
107
|
/** Accessible label for the icon. */
|
|
106
108
|
label: _angular_core.InputSignal<string | undefined>;
|
|
107
109
|
/** Size of the icon. */
|
|
@@ -35,7 +35,7 @@ declare class WattModalComponent {
|
|
|
35
35
|
/** Whether the dialog should restore focus to the previously-focused element, after it's closed. */
|
|
36
36
|
restoreFocus: _angular_core.InputSignal<boolean>;
|
|
37
37
|
/** Icon displayed next to the modal title. */
|
|
38
|
-
titleIcon: _angular_core.InputSignal<"filter" | "close" | "link" | "menu" | "search" | "time" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "email" | "markEmailUnread" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | undefined>;
|
|
38
|
+
titleIcon: _angular_core.InputSignal<"filter" | "close" | "link" | "menu" | "search" | "time" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "email" | "markEmailUnread" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "send" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "attachFile" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | undefined>;
|
|
39
39
|
/** Whether the modal should open automatically when rendered. */
|
|
40
40
|
autoOpen: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
41
41
|
closed: _angular_core.OutputEmitterRef<boolean>;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@energinet/watt",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.16",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"sass": "./core/styles/@energinet/watt/_index.scss",
|
|
9
|
-
"types": "./
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
10
|
"default": "./fesm2022/energinet-watt.mjs"
|
|
11
11
|
},
|
|
12
12
|
"./utils": {
|
|
@@ -16,220 +16,220 @@
|
|
|
16
16
|
"default": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"./badge": {
|
|
19
|
-
"types": "./
|
|
19
|
+
"types": "./badge/index.d.ts",
|
|
20
20
|
"default": "./fesm2022/energinet-watt-badge.mjs"
|
|
21
21
|
},
|
|
22
22
|
"./breadcrumbs": {
|
|
23
|
-
"types": "./
|
|
23
|
+
"types": "./breadcrumbs/index.d.ts",
|
|
24
24
|
"default": "./fesm2022/energinet-watt-breadcrumbs.mjs"
|
|
25
25
|
},
|
|
26
26
|
"./button": {
|
|
27
|
-
"types": "./
|
|
27
|
+
"types": "./button/index.d.ts",
|
|
28
28
|
"default": "./fesm2022/energinet-watt-button.mjs"
|
|
29
29
|
},
|
|
30
30
|
"./card": {
|
|
31
|
-
"types": "./
|
|
31
|
+
"types": "./card/index.d.ts",
|
|
32
32
|
"default": "./fesm2022/energinet-watt-card.mjs"
|
|
33
33
|
},
|
|
34
34
|
"./checkbox": {
|
|
35
|
-
"types": "./
|
|
35
|
+
"types": "./checkbox/index.d.ts",
|
|
36
36
|
"default": "./fesm2022/energinet-watt-checkbox.mjs"
|
|
37
37
|
},
|
|
38
38
|
"./chip": {
|
|
39
|
-
"types": "./
|
|
39
|
+
"types": "./chip/index.d.ts",
|
|
40
40
|
"default": "./fesm2022/energinet-watt-chip.mjs"
|
|
41
41
|
},
|
|
42
42
|
"./clipboard": {
|
|
43
|
-
"types": "./
|
|
43
|
+
"types": "./clipboard/index.d.ts",
|
|
44
44
|
"default": "./fesm2022/energinet-watt-clipboard.mjs"
|
|
45
45
|
},
|
|
46
46
|
"./code": {
|
|
47
|
-
"types": "./
|
|
47
|
+
"types": "./code/index.d.ts",
|
|
48
48
|
"default": "./fesm2022/energinet-watt-code.mjs"
|
|
49
49
|
},
|
|
50
|
-
"./core/breakpoints": {
|
|
51
|
-
"types": "./types/energinet-watt-core-breakpoints.d.ts",
|
|
52
|
-
"default": "./fesm2022/energinet-watt-core-breakpoints.mjs"
|
|
53
|
-
},
|
|
54
|
-
"./core/color": {
|
|
55
|
-
"types": "./types/energinet-watt-core-color.d.ts",
|
|
56
|
-
"default": "./fesm2022/energinet-watt-core-color.mjs"
|
|
57
|
-
},
|
|
58
|
-
"./core/date": {
|
|
59
|
-
"types": "./types/energinet-watt-core-date.d.ts",
|
|
60
|
-
"default": "./fesm2022/energinet-watt-core-date.mjs"
|
|
61
|
-
},
|
|
62
50
|
"./data": {
|
|
63
|
-
"types": "./
|
|
51
|
+
"types": "./data/index.d.ts",
|
|
64
52
|
"default": "./fesm2022/energinet-watt-data.mjs"
|
|
65
53
|
},
|
|
66
54
|
"./datetime-field": {
|
|
67
|
-
"types": "./
|
|
55
|
+
"types": "./datetime-field/index.d.ts",
|
|
68
56
|
"default": "./fesm2022/energinet-watt-datetime-field.mjs"
|
|
69
57
|
},
|
|
70
58
|
"./description-list": {
|
|
71
|
-
"types": "./
|
|
59
|
+
"types": "./description-list/index.d.ts",
|
|
72
60
|
"default": "./fesm2022/energinet-watt-description-list.mjs"
|
|
73
61
|
},
|
|
74
62
|
"./drawer": {
|
|
75
|
-
"types": "./
|
|
63
|
+
"types": "./drawer/index.d.ts",
|
|
76
64
|
"default": "./fesm2022/energinet-watt-drawer.mjs"
|
|
77
65
|
},
|
|
78
66
|
"./dropdown": {
|
|
79
|
-
"types": "./
|
|
67
|
+
"types": "./dropdown/index.d.ts",
|
|
80
68
|
"default": "./fesm2022/energinet-watt-dropdown.mjs"
|
|
81
69
|
},
|
|
82
70
|
"./dropzone": {
|
|
83
|
-
"types": "./
|
|
71
|
+
"types": "./dropzone/index.d.ts",
|
|
84
72
|
"default": "./fesm2022/energinet-watt-dropzone.mjs"
|
|
85
73
|
},
|
|
86
74
|
"./empty-state": {
|
|
87
|
-
"types": "./
|
|
75
|
+
"types": "./empty-state/index.d.ts",
|
|
88
76
|
"default": "./fesm2022/energinet-watt-empty-state.mjs"
|
|
89
77
|
},
|
|
90
78
|
"./expandable-card": {
|
|
91
|
-
"types": "./
|
|
79
|
+
"types": "./expandable-card/index.d.ts",
|
|
92
80
|
"default": "./fesm2022/energinet-watt-expandable-card.mjs"
|
|
93
81
|
},
|
|
94
82
|
"./field": {
|
|
95
|
-
"types": "./
|
|
83
|
+
"types": "./field/index.d.ts",
|
|
96
84
|
"default": "./fesm2022/energinet-watt-field.mjs"
|
|
97
85
|
},
|
|
98
86
|
"./file-field": {
|
|
99
|
-
"types": "./
|
|
87
|
+
"types": "./file-field/index.d.ts",
|
|
100
88
|
"default": "./fesm2022/energinet-watt-file-field.mjs"
|
|
101
89
|
},
|
|
102
90
|
"./icon": {
|
|
103
|
-
"types": "./
|
|
91
|
+
"types": "./icon/index.d.ts",
|
|
104
92
|
"default": "./fesm2022/energinet-watt-icon.mjs"
|
|
105
93
|
},
|
|
106
|
-
"./icon/flags": {
|
|
107
|
-
"types": "./types/energinet-watt-icon-flags.d.ts",
|
|
108
|
-
"default": "./fesm2022/energinet-watt-icon-flags.mjs"
|
|
109
|
-
},
|
|
110
94
|
"./menu": {
|
|
111
|
-
"types": "./
|
|
95
|
+
"types": "./menu/index.d.ts",
|
|
112
96
|
"default": "./fesm2022/energinet-watt-menu.mjs"
|
|
113
97
|
},
|
|
114
98
|
"./modal": {
|
|
115
|
-
"types": "./
|
|
99
|
+
"types": "./modal/index.d.ts",
|
|
116
100
|
"default": "./fesm2022/energinet-watt-modal.mjs"
|
|
117
101
|
},
|
|
118
102
|
"./paginator": {
|
|
119
|
-
"types": "./
|
|
103
|
+
"types": "./paginator/index.d.ts",
|
|
120
104
|
"default": "./fesm2022/energinet-watt-paginator.mjs"
|
|
121
105
|
},
|
|
122
106
|
"./phone-field": {
|
|
123
|
-
"types": "./
|
|
107
|
+
"types": "./phone-field/index.d.ts",
|
|
124
108
|
"default": "./fesm2022/energinet-watt-phone-field.mjs"
|
|
125
109
|
},
|
|
126
|
-
"./picker/__shared": {
|
|
127
|
-
"types": "./types/energinet-watt-picker-__shared.d.ts",
|
|
128
|
-
"default": "./fesm2022/energinet-watt-picker-__shared.mjs"
|
|
129
|
-
},
|
|
130
|
-
"./picker/datepicker": {
|
|
131
|
-
"types": "./types/energinet-watt-picker-datepicker.d.ts",
|
|
132
|
-
"default": "./fesm2022/energinet-watt-picker-datepicker.mjs"
|
|
133
|
-
},
|
|
134
|
-
"./picker/timepicker": {
|
|
135
|
-
"types": "./types/energinet-watt-picker-timepicker.d.ts",
|
|
136
|
-
"default": "./fesm2022/energinet-watt-picker-timepicker.mjs"
|
|
137
|
-
},
|
|
138
110
|
"./progress-tracker": {
|
|
139
|
-
"types": "./
|
|
111
|
+
"types": "./progress-tracker/index.d.ts",
|
|
140
112
|
"default": "./fesm2022/energinet-watt-progress-tracker.mjs"
|
|
141
113
|
},
|
|
142
114
|
"./query-params": {
|
|
143
|
-
"types": "./
|
|
115
|
+
"types": "./query-params/index.d.ts",
|
|
144
116
|
"default": "./fesm2022/energinet-watt-query-params.mjs"
|
|
145
117
|
},
|
|
146
118
|
"./radio": {
|
|
147
|
-
"types": "./
|
|
119
|
+
"types": "./radio/index.d.ts",
|
|
148
120
|
"default": "./fesm2022/energinet-watt-radio.mjs"
|
|
149
121
|
},
|
|
150
122
|
"./search": {
|
|
151
|
-
"types": "./
|
|
123
|
+
"types": "./search/index.d.ts",
|
|
152
124
|
"default": "./fesm2022/energinet-watt-search.mjs"
|
|
153
125
|
},
|
|
154
126
|
"./segmented-buttons": {
|
|
155
|
-
"types": "./
|
|
127
|
+
"types": "./segmented-buttons/index.d.ts",
|
|
156
128
|
"default": "./fesm2022/energinet-watt-segmented-buttons.mjs"
|
|
157
129
|
},
|
|
158
130
|
"./shell": {
|
|
159
|
-
"types": "./
|
|
131
|
+
"types": "./shell/index.d.ts",
|
|
160
132
|
"default": "./fesm2022/energinet-watt-shell.mjs"
|
|
161
133
|
},
|
|
162
134
|
"./slide-toggle": {
|
|
163
|
-
"types": "./
|
|
135
|
+
"types": "./slide-toggle/index.d.ts",
|
|
164
136
|
"default": "./fesm2022/energinet-watt-slide-toggle.mjs"
|
|
165
137
|
},
|
|
166
138
|
"./slider": {
|
|
167
|
-
"types": "./
|
|
139
|
+
"types": "./slider/index.d.ts",
|
|
168
140
|
"default": "./fesm2022/energinet-watt-slider.mjs"
|
|
169
141
|
},
|
|
170
142
|
"./spinner": {
|
|
171
|
-
"types": "./
|
|
143
|
+
"types": "./spinner/index.d.ts",
|
|
172
144
|
"default": "./fesm2022/energinet-watt-spinner.mjs"
|
|
173
145
|
},
|
|
174
146
|
"./stepper": {
|
|
175
|
-
"types": "./
|
|
147
|
+
"types": "./stepper/index.d.ts",
|
|
176
148
|
"default": "./fesm2022/energinet-watt-stepper.mjs"
|
|
177
149
|
},
|
|
178
150
|
"./table": {
|
|
179
|
-
"types": "./
|
|
151
|
+
"types": "./table/index.d.ts",
|
|
180
152
|
"default": "./fesm2022/energinet-watt-table.mjs"
|
|
181
153
|
},
|
|
182
154
|
"./tabs": {
|
|
183
|
-
"types": "./
|
|
155
|
+
"types": "./tabs/index.d.ts",
|
|
184
156
|
"default": "./fesm2022/energinet-watt-tabs.mjs"
|
|
185
157
|
},
|
|
186
158
|
"./text-field": {
|
|
187
|
-
"types": "./
|
|
159
|
+
"types": "./text-field/index.d.ts",
|
|
188
160
|
"default": "./fesm2022/energinet-watt-text-field.mjs"
|
|
189
161
|
},
|
|
190
162
|
"./textarea-field": {
|
|
191
|
-
"types": "./
|
|
163
|
+
"types": "./textarea-field/index.d.ts",
|
|
192
164
|
"default": "./fesm2022/energinet-watt-textarea-field.mjs"
|
|
193
165
|
},
|
|
194
166
|
"./toast": {
|
|
195
|
-
"types": "./
|
|
167
|
+
"types": "./toast/index.d.ts",
|
|
196
168
|
"default": "./fesm2022/energinet-watt-toast.mjs"
|
|
197
169
|
},
|
|
198
170
|
"./tooltip": {
|
|
199
|
-
"types": "./
|
|
171
|
+
"types": "./tooltip/index.d.ts",
|
|
200
172
|
"default": "./fesm2022/energinet-watt-tooltip.mjs"
|
|
201
173
|
},
|
|
202
|
-
"./utils/css": {
|
|
203
|
-
"types": "./types/energinet-watt-utils-css.d.ts",
|
|
204
|
-
"default": "./fesm2022/energinet-watt-utils-css.mjs"
|
|
205
|
-
},
|
|
206
|
-
"./utils/intersection-observer": {
|
|
207
|
-
"types": "./types/energinet-watt-utils-intersection-observer.d.ts",
|
|
208
|
-
"default": "./fesm2022/energinet-watt-utils-intersection-observer.mjs"
|
|
209
|
-
},
|
|
210
|
-
"./utils/resize-observer": {
|
|
211
|
-
"types": "./types/energinet-watt-utils-resize-observer.d.ts",
|
|
212
|
-
"default": "./fesm2022/energinet-watt-utils-resize-observer.mjs"
|
|
213
|
-
},
|
|
214
174
|
"./validation-message": {
|
|
215
|
-
"types": "./
|
|
175
|
+
"types": "./validation-message/index.d.ts",
|
|
216
176
|
"default": "./fesm2022/energinet-watt-validation-message.mjs"
|
|
217
177
|
},
|
|
218
178
|
"./validators": {
|
|
219
|
-
"types": "./
|
|
179
|
+
"types": "./validators/index.d.ts",
|
|
220
180
|
"default": "./fesm2022/energinet-watt-validators.mjs"
|
|
221
181
|
},
|
|
222
182
|
"./vater": {
|
|
223
|
-
"types": "./
|
|
183
|
+
"types": "./vater/index.d.ts",
|
|
224
184
|
"default": "./fesm2022/energinet-watt-vater.mjs"
|
|
225
185
|
},
|
|
226
186
|
"./year-field": {
|
|
227
|
-
"types": "./
|
|
187
|
+
"types": "./year-field/index.d.ts",
|
|
228
188
|
"default": "./fesm2022/energinet-watt-year-field.mjs"
|
|
229
189
|
},
|
|
230
190
|
"./yearmonth-field": {
|
|
231
|
-
"types": "./
|
|
191
|
+
"types": "./yearmonth-field/index.d.ts",
|
|
232
192
|
"default": "./fesm2022/energinet-watt-yearmonth-field.mjs"
|
|
193
|
+
},
|
|
194
|
+
"./core/breakpoints": {
|
|
195
|
+
"types": "./core/breakpoints/index.d.ts",
|
|
196
|
+
"default": "./fesm2022/energinet-watt-core-breakpoints.mjs"
|
|
197
|
+
},
|
|
198
|
+
"./core/color": {
|
|
199
|
+
"types": "./core/color/index.d.ts",
|
|
200
|
+
"default": "./fesm2022/energinet-watt-core-color.mjs"
|
|
201
|
+
},
|
|
202
|
+
"./core/date": {
|
|
203
|
+
"types": "./core/date/index.d.ts",
|
|
204
|
+
"default": "./fesm2022/energinet-watt-core-date.mjs"
|
|
205
|
+
},
|
|
206
|
+
"./icon/flags": {
|
|
207
|
+
"types": "./icon/flags/index.d.ts",
|
|
208
|
+
"default": "./fesm2022/energinet-watt-icon-flags.mjs"
|
|
209
|
+
},
|
|
210
|
+
"./picker/__shared": {
|
|
211
|
+
"types": "./picker/__shared/index.d.ts",
|
|
212
|
+
"default": "./fesm2022/energinet-watt-picker-__shared.mjs"
|
|
213
|
+
},
|
|
214
|
+
"./picker/datepicker": {
|
|
215
|
+
"types": "./picker/datepicker/index.d.ts",
|
|
216
|
+
"default": "./fesm2022/energinet-watt-picker-datepicker.mjs"
|
|
217
|
+
},
|
|
218
|
+
"./picker/timepicker": {
|
|
219
|
+
"types": "./picker/timepicker/index.d.ts",
|
|
220
|
+
"default": "./fesm2022/energinet-watt-picker-timepicker.mjs"
|
|
221
|
+
},
|
|
222
|
+
"./utils/css": {
|
|
223
|
+
"types": "./utils/css/index.d.ts",
|
|
224
|
+
"default": "./fesm2022/energinet-watt-utils-css.mjs"
|
|
225
|
+
},
|
|
226
|
+
"./utils/intersection-observer": {
|
|
227
|
+
"types": "./utils/intersection-observer/index.d.ts",
|
|
228
|
+
"default": "./fesm2022/energinet-watt-utils-intersection-observer.mjs"
|
|
229
|
+
},
|
|
230
|
+
"./utils/resize-observer": {
|
|
231
|
+
"types": "./utils/resize-observer/index.d.ts",
|
|
232
|
+
"default": "./fesm2022/energinet-watt-utils-resize-observer.mjs"
|
|
233
233
|
}
|
|
234
234
|
},
|
|
235
235
|
"peerDependencies": {
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
"rxjs": "^7.8.2"
|
|
254
254
|
},
|
|
255
255
|
"module": "fesm2022/energinet-watt.mjs",
|
|
256
|
-
"typings": "
|
|
256
|
+
"typings": "index.d.ts",
|
|
257
257
|
"sideEffects": false,
|
|
258
258
|
"dependencies": {
|
|
259
259
|
"tslib": "^2.3.0"
|
|
@@ -10,7 +10,7 @@ declare class WattTextFieldComponent implements ControlValueAccessor, AfterViewI
|
|
|
10
10
|
placeholder: _angular_core.InputSignal<string>;
|
|
11
11
|
label: _angular_core.InputSignal<string>;
|
|
12
12
|
tooltip: _angular_core.InputSignal<string>;
|
|
13
|
-
prefix: _angular_core.InputSignal<"email" | "filter" | "search" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | undefined>;
|
|
13
|
+
prefix: _angular_core.InputSignal<"email" | "filter" | "search" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "send" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "danger" | "warning" | "success" | "info" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "attachFile" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | undefined>;
|
|
14
14
|
size: _angular_core.InputSignal<string | number | null>;
|
|
15
15
|
maxLength: _angular_core.InputSignal<string | number | null>;
|
|
16
16
|
formControl: _angular_core.InputSignal<FormControl<any>>;
|
|
@@ -14,7 +14,7 @@ declare class WattValidationMessageComponent implements AfterViewInit {
|
|
|
14
14
|
private elementRef;
|
|
15
15
|
label: _angular_core.InputSignal<string>;
|
|
16
16
|
message: _angular_core.InputSignal<string>;
|
|
17
|
-
icon: _angular_core.InputSignal<"info" | "warning" | "success" | "danger" | "search" | "filter" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "email" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | undefined>;
|
|
17
|
+
icon: _angular_core.InputSignal<"info" | "warning" | "success" | "danger" | "search" | "filter" | "plus" | "minus" | "edit" | "redo" | "undo" | "remove" | "removeForever" | "close" | "cancel" | "checkmark" | "user" | "settings" | "contentCopy" | "date" | "time" | "email" | "markEmailUnread" | "link" | "openInNew" | "monetization" | "payments" | "forwardMessage" | "forward" | "menu" | "moreVertical" | "logout" | "login" | "help" | "alternateEmail" | "refresh" | "language" | "pendingActions" | "toggleOn" | "toggleOff" | "personCheck" | "send" | "left" | "right" | "up" | "down" | "arrowDropDown" | "arrowRightAlt" | "arrowLeftAlt" | "feedback" | "save" | "upload" | "download" | "fileDownload" | "fileUpload" | "print" | "preview" | "attachFile" | "power" | "location" | "smartDisplay" | "windmill" | "solarPower" | "priorityHigh" | "notifications" | "notificationsUnread" | "horizontalRule" | "wrongLocation" | "heatPump" | "inventory" | "globe" | "calculate" | "bar_chart_4_bars" | "view_list" | "view_stream" | "construction" | "factory" | "nest_eco_leaf" | "flash_on" | undefined>;
|
|
18
18
|
type: _angular_core.InputSignal<WattValidationMessageType>;
|
|
19
19
|
size: _angular_core.InputSignal<WattValidationMessageSize>;
|
|
20
20
|
autoScrollIntoView: _angular_core.InputSignal<boolean>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{types/energinet-watt-utils-resize-observer.d.ts → utils/resize-observer/index.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|