@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.
Files changed (63) hide show
  1. package/core/styles/spacing/+storybook/storybook-spacing-overview.component.scss +11 -0
  2. package/core/styles/spacing/_baseline.scss +1 -0
  3. package/core/styles/spacing/_inset.scss +9 -0
  4. package/core/styles/spacing/_spacing.import.scss +9 -0
  5. package/fesm2022/energinet-watt-badge.mjs +3 -3
  6. package/fesm2022/energinet-watt-breadcrumbs.mjs +6 -6
  7. package/fesm2022/energinet-watt-button.mjs +3 -3
  8. package/fesm2022/energinet-watt-card.mjs +6 -6
  9. package/fesm2022/energinet-watt-checkbox.mjs +3 -3
  10. package/fesm2022/energinet-watt-chip.mjs +27 -27
  11. package/fesm2022/energinet-watt-clipboard.mjs +6 -6
  12. package/fesm2022/energinet-watt-code.mjs +6 -6
  13. package/fesm2022/energinet-watt-core-breakpoints.mjs +3 -3
  14. package/fesm2022/energinet-watt-core-color.mjs +3 -3
  15. package/fesm2022/energinet-watt-core-date.mjs +12 -7
  16. package/fesm2022/energinet-watt-core-date.mjs.map +1 -1
  17. package/fesm2022/energinet-watt-data.mjs +12 -12
  18. package/fesm2022/energinet-watt-datetime-field.mjs +3 -3
  19. package/fesm2022/energinet-watt-description-list.mjs +6 -6
  20. package/fesm2022/energinet-watt-drawer.mjs +15 -15
  21. package/fesm2022/energinet-watt-dropdown.mjs +3 -3
  22. package/fesm2022/energinet-watt-dropzone.mjs +12 -12
  23. package/fesm2022/energinet-watt-empty-state.mjs +18 -18
  24. package/fesm2022/energinet-watt-expandable-card.mjs +9 -9
  25. package/fesm2022/energinet-watt-field.mjs +15 -15
  26. package/fesm2022/energinet-watt-file-field.mjs +3 -3
  27. package/fesm2022/energinet-watt-heading.mjs +3 -3
  28. package/fesm2022/energinet-watt-icon-flags.mjs +30 -30
  29. package/fesm2022/energinet-watt-icon.mjs +3 -3
  30. package/fesm2022/energinet-watt-json-viewer.mjs +9 -9
  31. package/fesm2022/energinet-watt-menu.mjs +12 -12
  32. package/fesm2022/energinet-watt-modal.mjs +9 -9
  33. package/fesm2022/energinet-watt-paginator.mjs +6 -6
  34. package/fesm2022/energinet-watt-phone-field.mjs +6 -6
  35. package/fesm2022/energinet-watt-picker-__shared.mjs +6 -6
  36. package/fesm2022/energinet-watt-picker-datepicker.mjs +6 -6
  37. package/fesm2022/energinet-watt-picker-timepicker.mjs +3 -3
  38. package/fesm2022/energinet-watt-progress-tracker.mjs +6 -6
  39. package/fesm2022/energinet-watt-query-params.mjs +3 -3
  40. package/fesm2022/energinet-watt-radio.mjs +6 -6
  41. package/fesm2022/energinet-watt-search.mjs +6 -6
  42. package/fesm2022/energinet-watt-segmented-buttons.mjs +6 -6
  43. package/fesm2022/energinet-watt-separator.mjs +3 -3
  44. package/fesm2022/energinet-watt-shell.mjs +12 -12
  45. package/fesm2022/energinet-watt-slide-toggle.mjs +3 -3
  46. package/fesm2022/energinet-watt-slider.mjs +3 -3
  47. package/fesm2022/energinet-watt-spinner.mjs +3 -3
  48. package/fesm2022/energinet-watt-stepper.mjs +6 -6
  49. package/fesm2022/energinet-watt-table.mjs +9 -9
  50. package/fesm2022/energinet-watt-tabs.mjs +15 -15
  51. package/fesm2022/energinet-watt-text-field.mjs +3 -3
  52. package/fesm2022/energinet-watt-textarea-field.mjs +6 -6
  53. package/fesm2022/energinet-watt-toast.mjs +6 -6
  54. package/fesm2022/energinet-watt-tooltip.mjs +6 -6
  55. package/fesm2022/energinet-watt-utils-css.mjs +3 -3
  56. package/fesm2022/energinet-watt-utils-intersection-observer.mjs +3 -3
  57. package/fesm2022/energinet-watt-utils-resize-observer.mjs +6 -6
  58. package/fesm2022/energinet-watt-validation-message.mjs +3 -3
  59. package/fesm2022/energinet-watt-vater.mjs +24 -24
  60. package/fesm2022/energinet-watt-year-field.mjs +3 -3
  61. package/fesm2022/energinet-watt-yearmonth-field.mjs +3 -3
  62. package/package.json +9 -9
  63. 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.5", ngImport: i0, type: WattYearMonthField, deps: [], target: i0.ɵɵFactoryTarget.Component });
179
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", 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: [
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.5", ngImport: i0, type: WattYearMonthField, decorators: [{
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.32",
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.5",
250
- "@angular/common": "^21.1.5",
251
- "@angular/compiler": "^21.1.5",
252
- "@angular/core": "^21.1.5",
253
- "@angular/forms": "^21.1.5",
254
- "@angular/material": "^21.1.5",
255
- "@angular/platform-browser": "^21.1.5",
256
- "@angular/router": "^21.1.5",
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 _angular_core from '@angular/core';
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: _angular_core.EnvironmentProviders;
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: _angular_core.ɵɵFactoryDeclaration<WattDatePipe, never>;
124
- static ɵpipe: _angular_core.ɵɵPipeDeclaration<WattDatePipe, "wattDate", true>;
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: _angular_core.WritableSignal<WattSupportedLocales>;
130
- isDanish: _angular_core.Signal<boolean>;
131
- isEnglish: _angular_core.Signal<boolean>;
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: _angular_core.ɵɵFactoryDeclaration<WattLocaleService, never>;
134
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<WattLocaleService>;
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 };