@energinet/watt 4.3.32 → 4.3.34
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/core/styles/spacing/+storybook/storybook-spacing-overview.component.scss +11 -0
- package/core/styles/spacing/_baseline.scss +1 -0
- package/core/styles/spacing/_inset.scss +9 -0
- package/core/styles/spacing/_spacing.import.scss +9 -0
- package/fesm2022/energinet-watt-badge.mjs +3 -3
- package/fesm2022/energinet-watt-breadcrumbs.mjs +6 -6
- package/fesm2022/energinet-watt-button.mjs +3 -3
- package/fesm2022/energinet-watt-card.mjs +6 -6
- package/fesm2022/energinet-watt-checkbox.mjs +3 -3
- package/fesm2022/energinet-watt-chip.mjs +27 -27
- package/fesm2022/energinet-watt-clipboard.mjs +6 -6
- package/fesm2022/energinet-watt-code.mjs +6 -6
- package/fesm2022/energinet-watt-core-breakpoints.mjs +3 -3
- package/fesm2022/energinet-watt-core-color.mjs +3 -3
- package/fesm2022/energinet-watt-core-date.mjs +12 -7
- package/fesm2022/energinet-watt-core-date.mjs.map +1 -1
- package/fesm2022/energinet-watt-data.mjs +12 -12
- package/fesm2022/energinet-watt-datetime-field.mjs +3 -3
- package/fesm2022/energinet-watt-description-list.mjs +6 -6
- package/fesm2022/energinet-watt-drawer.mjs +15 -15
- package/fesm2022/energinet-watt-dropdown.mjs +3 -3
- package/fesm2022/energinet-watt-dropzone.mjs +12 -12
- package/fesm2022/energinet-watt-empty-state.mjs +18 -18
- package/fesm2022/energinet-watt-expandable-card.mjs +9 -9
- package/fesm2022/energinet-watt-field.mjs +15 -15
- package/fesm2022/energinet-watt-file-field.mjs +3 -3
- package/fesm2022/energinet-watt-heading.mjs +3 -3
- package/fesm2022/energinet-watt-icon-flags.mjs +30 -30
- package/fesm2022/energinet-watt-icon.mjs +3 -3
- package/fesm2022/energinet-watt-json-viewer.mjs +9 -9
- package/fesm2022/energinet-watt-menu.mjs +12 -12
- package/fesm2022/energinet-watt-modal.mjs +9 -9
- package/fesm2022/energinet-watt-paginator.mjs +6 -6
- package/fesm2022/energinet-watt-phone-field.mjs +6 -6
- package/fesm2022/energinet-watt-picker-__shared.mjs +6 -6
- package/fesm2022/energinet-watt-picker-datepicker.mjs +6 -6
- package/fesm2022/energinet-watt-picker-timepicker.mjs +3 -3
- package/fesm2022/energinet-watt-progress-tracker.mjs +6 -6
- package/fesm2022/energinet-watt-query-params.mjs +3 -3
- package/fesm2022/energinet-watt-radio.mjs +6 -6
- package/fesm2022/energinet-watt-search.mjs +6 -6
- package/fesm2022/energinet-watt-segmented-buttons.mjs +6 -6
- package/fesm2022/energinet-watt-separator.mjs +3 -3
- package/fesm2022/energinet-watt-shell.mjs +12 -12
- package/fesm2022/energinet-watt-slide-toggle.mjs +3 -3
- package/fesm2022/energinet-watt-slider.mjs +3 -3
- package/fesm2022/energinet-watt-spinner.mjs +3 -3
- package/fesm2022/energinet-watt-stepper.mjs +6 -6
- package/fesm2022/energinet-watt-table.mjs +9 -9
- package/fesm2022/energinet-watt-tabs.mjs +15 -15
- package/fesm2022/energinet-watt-text-field.mjs +3 -3
- package/fesm2022/energinet-watt-textarea-field.mjs +6 -6
- package/fesm2022/energinet-watt-toast.mjs +6 -6
- package/fesm2022/energinet-watt-tooltip.mjs +6 -6
- package/fesm2022/energinet-watt-utils-css.mjs +3 -3
- package/fesm2022/energinet-watt-utils-intersection-observer.mjs +3 -3
- package/fesm2022/energinet-watt-utils-resize-observer.mjs +6 -6
- package/fesm2022/energinet-watt-validation-message.mjs +3 -3
- package/fesm2022/energinet-watt-vater.mjs +24 -24
- package/fesm2022/energinet-watt-year-field.mjs +3 -3
- package/fesm2022/energinet-watt-yearmonth-field.mjs +3 -3
- package/package.json +9 -9
- package/types/energinet-watt-core-date.d.ts +11 -26
|
@@ -175,8 +175,8 @@ class WattYearMonthField {
|
|
|
175
175
|
const isSame = selectedDate.isSame(max, 'month');
|
|
176
176
|
return isSame || isAfter;
|
|
177
177
|
}
|
|
178
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.
|
|
179
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.
|
|
178
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: WattYearMonthField, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
179
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.6", type: WattYearMonthField, isStandalone: true, selector: "watt-yearmonth-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, startView: { classPropertyName: "startView", publicName: "startView", isSignal: true, isRequired: false, transformFunction: null }, canStepThroughMonths: { classPropertyName: "canStepThroughMonths", publicName: "canStepThroughMonths", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { monthChange: "monthChange", blur: "blur" }, providers: [
|
|
180
180
|
{
|
|
181
181
|
provide: NG_VALUE_ACCESSOR,
|
|
182
182
|
useExisting: forwardRef(() => WattYearMonthField),
|
|
@@ -237,7 +237,7 @@ class WattYearMonthField {
|
|
|
237
237
|
}
|
|
238
238
|
`, isInline: true, styles: ["watt-yearmonth-field{display:block;width:100%}watt-yearmonth-field input{text-transform:capitalize}watt-yearmonth-field:has(.watt-yearmonth-field__step-through){display:flex;flex-align:flex-start}watt-yearmonth-field:has(.watt-yearmonth-field__step-through) .watt-yearmonth-field__step-through{display:flex}watt-yearmonth-field:has(.watt-yearmonth-field__has-label) .watt-yearmonth-field__step-through{margin-top:28px}.watt-yearmonth-field-picker{position:fixed;position-area:bottom span-right;position-try-fallbacks:flip-block;width:296px;height:354px;inset:unset;margin:unset;border:0}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection", "_userDragDrop"], exportAs: ["matCalendar"] }, { kind: "component", type: WattButtonComponent, selector: "watt-button", inputs: ["icon", "variant", "size", "type", "formId", "disabled", "loading"] }, { kind: "component", type: WattFieldComponent, selector: "watt-field", inputs: ["control", "label", "id", "chipMode", "tooltip", "placeholder", "anchorName", "displayMode", "autoFocus", "showErrors"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
239
239
|
}
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: WattYearMonthField, decorators: [{
|
|
241
241
|
type: Component,
|
|
242
242
|
args: [{ selector: 'watt-yearmonth-field', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
243
243
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@energinet/watt",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.34",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -246,14 +246,14 @@
|
|
|
246
246
|
},
|
|
247
247
|
"peerDependencies": {
|
|
248
248
|
"@analogjs/vite-plugin-angular": "^2.2.3",
|
|
249
|
-
"@angular/cdk": "^21.1.
|
|
250
|
-
"@angular/common": "^21.1.
|
|
251
|
-
"@angular/compiler": "^21.1.
|
|
252
|
-
"@angular/core": "^21.1.
|
|
253
|
-
"@angular/forms": "^21.1.
|
|
254
|
-
"@angular/material": "^21.1.
|
|
255
|
-
"@angular/platform-browser": "^21.1.
|
|
256
|
-
"@angular/router": "^21.1.
|
|
249
|
+
"@angular/cdk": "^21.1.6",
|
|
250
|
+
"@angular/common": "^21.1.6",
|
|
251
|
+
"@angular/compiler": "^21.1.6",
|
|
252
|
+
"@angular/core": "^21.1.6",
|
|
253
|
+
"@angular/forms": "^21.1.6",
|
|
254
|
+
"@angular/material": "^21.1.6",
|
|
255
|
+
"@angular/platform-browser": "^21.1.6",
|
|
256
|
+
"@angular/router": "^21.1.6",
|
|
257
257
|
"@maskito/angular": "^2.5.0",
|
|
258
258
|
"@maskito/core": "^2.5.0",
|
|
259
259
|
"@maskito/kit": "^2.5.0",
|
|
@@ -2,7 +2,7 @@ import utc from 'dayjs/plugin/utc';
|
|
|
2
2
|
import timezone from 'dayjs/plugin/timezone';
|
|
3
3
|
import duration from 'dayjs/plugin/duration';
|
|
4
4
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
6
|
import { PipeTransform } from '@angular/core';
|
|
7
7
|
import { NativeDateAdapter } from '@angular/material/core';
|
|
8
8
|
export { default as dayjs } from 'dayjs';
|
|
@@ -26,24 +26,7 @@ export { default as dayjs } from 'dayjs';
|
|
|
26
26
|
|
|
27
27
|
type __ngPackagrDayjsTypeScriptWorkaround = typeof utc | typeof timezone | typeof duration | typeof customParseFormat;
|
|
28
28
|
|
|
29
|
-
declare const danishDatetimeProviders:
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @license
|
|
33
|
-
* Copyright 2020 Energinet DataHub A/S
|
|
34
|
-
*
|
|
35
|
-
* Licensed under the Apache License, Version 2.0 (the "License2");
|
|
36
|
-
* you may not use this file except in compliance with the License.
|
|
37
|
-
* You may obtain a copy of the License at
|
|
38
|
-
*
|
|
39
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
40
|
-
*
|
|
41
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
42
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
43
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
44
|
-
* See the License for the specific language governing permissions and
|
|
45
|
-
* limitations under the License.
|
|
46
|
-
*/
|
|
29
|
+
declare const danishDatetimeProviders: i0.EnvironmentProviders;
|
|
47
30
|
|
|
48
31
|
type WattSupportedLocales = 'da' | 'en';
|
|
49
32
|
declare class WattDateAdapter extends NativeDateAdapter {
|
|
@@ -58,6 +41,8 @@ declare class WattDateAdapter extends NativeDateAdapter {
|
|
|
58
41
|
* @returns 0 for Sunday, 1 for Monday, etc.
|
|
59
42
|
*/
|
|
60
43
|
getFirstDayOfWeek(): number;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattDateAdapter, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WattDateAdapter>;
|
|
61
46
|
}
|
|
62
47
|
|
|
63
48
|
/**
|
|
@@ -120,18 +105,18 @@ declare class WattDatePipe implements PipeTransform {
|
|
|
120
105
|
* @param input WattDateRange or string in ISO 8601 format or unix timestamp number
|
|
121
106
|
*/
|
|
122
107
|
transform(input?: WattRange<Date> | WattRange<string> | Date | string | number | null, format?: keyof typeof formatStrings, timeZone?: string): string | null;
|
|
123
|
-
static ɵfac:
|
|
124
|
-
static ɵpipe:
|
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattDatePipe, never>;
|
|
109
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<WattDatePipe, "wattDate", true>;
|
|
125
110
|
}
|
|
126
111
|
|
|
127
112
|
declare class WattLocaleService {
|
|
128
113
|
private readonly dateAdapter;
|
|
129
|
-
locale:
|
|
130
|
-
isDanish:
|
|
131
|
-
isEnglish:
|
|
114
|
+
locale: i0.WritableSignal<WattSupportedLocales>;
|
|
115
|
+
isDanish: i0.Signal<boolean>;
|
|
116
|
+
isEnglish: i0.Signal<boolean>;
|
|
132
117
|
setActiveLocale(locale: WattSupportedLocales): Promise<void>;
|
|
133
|
-
static ɵfac:
|
|
134
|
-
static ɵprov:
|
|
118
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WattLocaleService, never>;
|
|
119
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WattLocaleService>;
|
|
135
120
|
}
|
|
136
121
|
|
|
137
122
|
export { WattDateAdapter, WattDatePipe, WattLocaleService, danishDatetimeProviders, wattFormatDate };
|