@energinet/watt 4.3.63 → 4.3.65

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 (108) hide show
  1. package/fesm2022/energinet-watt-badge.mjs +9 -9
  2. package/fesm2022/energinet-watt-badge.mjs.map +1 -1
  3. package/fesm2022/energinet-watt-breadcrumbs.mjs +7 -7
  4. package/fesm2022/energinet-watt-breadcrumbs.mjs.map +1 -1
  5. package/fesm2022/energinet-watt-button.mjs +13 -13
  6. package/fesm2022/energinet-watt-button.mjs.map +1 -1
  7. package/fesm2022/energinet-watt-card.mjs +9 -9
  8. package/fesm2022/energinet-watt-card.mjs.map +1 -1
  9. package/fesm2022/energinet-watt-checkbox.mjs +6 -6
  10. package/fesm2022/energinet-watt-checkbox.mjs.map +1 -1
  11. package/fesm2022/energinet-watt-chip.mjs +58 -58
  12. package/fesm2022/energinet-watt-chip.mjs.map +1 -1
  13. package/fesm2022/energinet-watt-clipboard.mjs +7 -7
  14. package/fesm2022/energinet-watt-clipboard.mjs.map +1 -1
  15. package/fesm2022/energinet-watt-code.mjs +14 -14
  16. package/fesm2022/energinet-watt-code.mjs.map +1 -1
  17. package/fesm2022/energinet-watt-core-breakpoints.mjs +3 -3
  18. package/fesm2022/energinet-watt-core-color.mjs +3 -3
  19. package/fesm2022/energinet-watt-core-date.mjs +12 -12
  20. package/fesm2022/energinet-watt-core-date.mjs.map +1 -1
  21. package/fesm2022/energinet-watt-data.mjs +29 -29
  22. package/fesm2022/energinet-watt-data.mjs.map +1 -1
  23. package/fesm2022/energinet-watt-datetime-field.mjs +10 -10
  24. package/fesm2022/energinet-watt-datetime-field.mjs.map +1 -1
  25. package/fesm2022/energinet-watt-description-list.mjs +14 -14
  26. package/fesm2022/energinet-watt-description-list.mjs.map +1 -1
  27. package/fesm2022/energinet-watt-drawer.mjs +24 -24
  28. package/fesm2022/energinet-watt-drawer.mjs.map +1 -1
  29. package/fesm2022/energinet-watt-dropdown.mjs +21 -21
  30. package/fesm2022/energinet-watt-dropdown.mjs.map +1 -1
  31. package/fesm2022/energinet-watt-dropzone.mjs +19 -19
  32. package/fesm2022/energinet-watt-dropzone.mjs.map +1 -1
  33. package/fesm2022/energinet-watt-empty-state.mjs +24 -24
  34. package/fesm2022/energinet-watt-empty-state.mjs.map +1 -1
  35. package/fesm2022/energinet-watt-expandable-card.mjs +14 -14
  36. package/fesm2022/energinet-watt-expandable-card.mjs.map +1 -1
  37. package/fesm2022/energinet-watt-field.mjs +35 -35
  38. package/fesm2022/energinet-watt-field.mjs.map +1 -1
  39. package/fesm2022/energinet-watt-file-field.mjs +6 -6
  40. package/fesm2022/energinet-watt-file-field.mjs.map +1 -1
  41. package/fesm2022/energinet-watt-heading.mjs +5 -5
  42. package/fesm2022/energinet-watt-heading.mjs.map +1 -1
  43. package/fesm2022/energinet-watt-icon-flags.mjs +33 -33
  44. package/fesm2022/energinet-watt-icon-flags.mjs.map +1 -1
  45. package/fesm2022/energinet-watt-icon.mjs +10 -10
  46. package/fesm2022/energinet-watt-icon.mjs.map +1 -1
  47. package/fesm2022/energinet-watt-json-viewer.mjs +37 -37
  48. package/fesm2022/energinet-watt-json-viewer.mjs.map +1 -1
  49. package/fesm2022/energinet-watt-menu.mjs +15 -15
  50. package/fesm2022/energinet-watt-menu.mjs.map +1 -1
  51. package/fesm2022/energinet-watt-modal.mjs +24 -24
  52. package/fesm2022/energinet-watt-modal.mjs.map +1 -1
  53. package/fesm2022/energinet-watt-paginator.mjs +14 -14
  54. package/fesm2022/energinet-watt-paginator.mjs.map +1 -1
  55. package/fesm2022/energinet-watt-phone-field.mjs +10 -10
  56. package/fesm2022/energinet-watt-phone-field.mjs.map +1 -1
  57. package/fesm2022/energinet-watt-picker-__shared.mjs +24 -24
  58. package/fesm2022/energinet-watt-picker-__shared.mjs.map +1 -1
  59. package/fesm2022/energinet-watt-picker-datepicker.mjs +28 -28
  60. package/fesm2022/energinet-watt-picker-datepicker.mjs.map +1 -1
  61. package/fesm2022/energinet-watt-picker-timepicker.mjs +10 -10
  62. package/fesm2022/energinet-watt-picker-timepicker.mjs.map +1 -1
  63. package/fesm2022/energinet-watt-progress-tracker.mjs +11 -11
  64. package/fesm2022/energinet-watt-progress-tracker.mjs.map +1 -1
  65. package/fesm2022/energinet-watt-query-params.mjs +3 -3
  66. package/fesm2022/energinet-watt-radio.mjs +20 -20
  67. package/fesm2022/energinet-watt-radio.mjs.map +1 -1
  68. package/fesm2022/energinet-watt-search.mjs +14 -14
  69. package/fesm2022/energinet-watt-search.mjs.map +1 -1
  70. package/fesm2022/energinet-watt-segmented-buttons.mjs +11 -11
  71. package/fesm2022/energinet-watt-segmented-buttons.mjs.map +1 -1
  72. package/fesm2022/energinet-watt-separator.mjs +5 -5
  73. package/fesm2022/energinet-watt-separator.mjs.map +1 -1
  74. package/fesm2022/energinet-watt-shell.mjs +20 -20
  75. package/fesm2022/energinet-watt-shell.mjs.map +1 -1
  76. package/fesm2022/energinet-watt-skeleton.mjs +6 -6
  77. package/fesm2022/energinet-watt-skeleton.mjs.map +1 -1
  78. package/fesm2022/energinet-watt-slide-toggle.mjs +6 -6
  79. package/fesm2022/energinet-watt-slide-toggle.mjs.map +1 -1
  80. package/fesm2022/energinet-watt-slider.mjs +8 -8
  81. package/fesm2022/energinet-watt-slider.mjs.map +1 -1
  82. package/fesm2022/energinet-watt-spinner.mjs +6 -6
  83. package/fesm2022/energinet-watt-spinner.mjs.map +1 -1
  84. package/fesm2022/energinet-watt-stepper.mjs +17 -17
  85. package/fesm2022/energinet-watt-stepper.mjs.map +1 -1
  86. package/fesm2022/energinet-watt-table.mjs +45 -45
  87. package/fesm2022/energinet-watt-table.mjs.map +1 -1
  88. package/fesm2022/energinet-watt-tabs.mjs +22 -22
  89. package/fesm2022/energinet-watt-tabs.mjs.map +1 -1
  90. package/fesm2022/energinet-watt-text-field.mjs +18 -18
  91. package/fesm2022/energinet-watt-text-field.mjs.map +1 -1
  92. package/fesm2022/energinet-watt-textarea-field.mjs +16 -16
  93. package/fesm2022/energinet-watt-textarea-field.mjs.map +1 -1
  94. package/fesm2022/energinet-watt-toast.mjs +6 -6
  95. package/fesm2022/energinet-watt-tooltip.mjs +18 -18
  96. package/fesm2022/energinet-watt-tooltip.mjs.map +1 -1
  97. package/fesm2022/energinet-watt-utils-css.mjs +3 -3
  98. package/fesm2022/energinet-watt-utils-intersection-observer.mjs +3 -3
  99. package/fesm2022/energinet-watt-utils-resize-observer.mjs +6 -6
  100. package/fesm2022/energinet-watt-validation-message.mjs +11 -11
  101. package/fesm2022/energinet-watt-validation-message.mjs.map +1 -1
  102. package/fesm2022/energinet-watt-vater.mjs +60 -60
  103. package/fesm2022/energinet-watt-vater.mjs.map +1 -1
  104. package/fesm2022/energinet-watt-year-field.mjs +11 -11
  105. package/fesm2022/energinet-watt-year-field.mjs.map +1 -1
  106. package/fesm2022/energinet-watt-yearmonth-field.mjs +12 -12
  107. package/fesm2022/energinet-watt-yearmonth-field.mjs.map +1 -1
  108. package/package.json +9 -9
@@ -29,20 +29,20 @@ class WattValidationMessageComponent {
29
29
  * @ignore
30
30
  */
31
31
  elementRef = inject(ElementRef);
32
- label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
33
- message = input('', ...(ngDevMode ? [{ debugName: "message" }] : []));
34
- icon = input(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : []));
35
- type = input('info', ...(ngDevMode ? [{ debugName: "type" }] : []));
36
- size = input('compact', ...(ngDevMode ? [{ debugName: "size" }] : []));
37
- autoScrollIntoView = input(true, ...(ngDevMode ? [{ debugName: "autoScrollIntoView" }] : []));
32
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
33
+ message = input('', ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
34
+ icon = input(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
35
+ type = input('info', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
36
+ size = input('compact', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
37
+ autoScrollIntoView = input(true, ...(ngDevMode ? [{ debugName: "autoScrollIntoView" }] : /* istanbul ignore next */ []));
38
38
  /**
39
39
  * @ignore
40
40
  */
41
- cssClass = computed(() => `watt-validation-message-type--${this.type()} watt-validation-message-size--${this.size()}`, ...(ngDevMode ? [{ debugName: "cssClass" }] : []));
41
+ cssClass = computed(() => `watt-validation-message-type--${this.type()} watt-validation-message-size--${this.size()}`, ...(ngDevMode ? [{ debugName: "cssClass" }] : /* istanbul ignore next */ []));
42
42
  /**
43
43
  * @ignore
44
44
  */
45
- ariaRole = computed(() => this.type() === 'warning' || this.type() === 'danger' ? 'alert' : 'status', ...(ngDevMode ? [{ debugName: "ariaRole" }] : []));
45
+ ariaRole = computed(() => this.type() === 'warning' || this.type() === 'danger' ? 'alert' : 'status', ...(ngDevMode ? [{ debugName: "ariaRole" }] : /* istanbul ignore next */ []));
46
46
  /**
47
47
  * @ignore
48
48
  */
@@ -54,8 +54,8 @@ class WattValidationMessageComponent {
54
54
  }, 100);
55
55
  }
56
56
  }
57
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: WattValidationMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
58
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.6", type: WattValidationMessageComponent, isStandalone: true, selector: "watt-validation-message", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, autoScrollIntoView: { classPropertyName: "autoScrollIntoView", publicName: "autoScrollIntoView", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "cssClass()", "attr.role": "ariaRole()" } }, ngImport: i0, template: `
57
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: WattValidationMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
58
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: WattValidationMessageComponent, isStandalone: true, selector: "watt-validation-message", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, autoScrollIntoView: { classPropertyName: "autoScrollIntoView", publicName: "autoScrollIntoView", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "cssClass()", "attr.role": "ariaRole()" } }, ngImport: i0, template: `
59
59
  @if (icon()) {
60
60
  <watt-icon [name]="icon()" />
61
61
  }
@@ -68,7 +68,7 @@ class WattValidationMessageComponent {
68
68
  </div>
69
69
  `, isInline: true, styles: [":host{align-items:center;border-radius:4px;display:flex}:host.watt-validation-message-size--compact{padding:var(--watt-space-xs) var(--watt-space-s)}:host.watt-validation-message-size--compact watt-icon{margin-right:var(--watt-space-s)}:host.watt-validation-message-size--compact strong{color:var(--watt-typography-label-color);font-size:.875rem;line-height:1.25rem;font-weight:600}:host.watt-validation-message-size--compact strong:not(:empty):after{content:\":\"}:host.watt-validation-message-size--compact .watt-validation-message-text{font-size:.875rem;line-height:1.25rem}:host.watt-validation-message-size--normal{padding:1.5rem var(--watt-space-m)}:host.watt-validation-message-size--normal strong{color:var(--watt-typography-headline-color);font-size:1rem;line-height:1.5rem;font-weight:600;text-transform:none;letter-spacing:0;display:inline-block;width:100%;margin-bottom:var(--watt-space-s)}:host.watt-validation-message-size--normal watt-icon{margin-right:var(--watt-space-m)}:host watt-icon{align-self:flex-start}:host.watt-validation-message-type--info{background-color:var(--watt-color-state-info-light)}:host.watt-validation-message-type--warning{background-color:var(--watt-color-state-warning-light)}:host.watt-validation-message-type--success{background-color:var(--watt-color-state-success-light)}:host.watt-validation-message-type--danger{background-color:var(--watt-color-state-danger-light)}\n"], dependencies: [{ kind: "component", type: WattIconComponent, selector: "watt-icon", inputs: ["name", "label", "size", "state"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
70
70
  }
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: WattValidationMessageComponent, decorators: [{
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: WattValidationMessageComponent, decorators: [{
72
72
  type: Component,
73
73
  args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'watt-validation-message', imports: [WattIconComponent], host: {
74
74
  '[class]': `cssClass()`,
@@ -1 +1 @@
1
- {"version":3,"file":"energinet-watt-validation-message.mjs","sources":["../../../libs/watt/package/validation-message/watt-validation-message.component.ts","../../../libs/watt/package/validation-message/index.ts","../../../libs/watt/package/validation-message/energinet-watt-validation-message.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 {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n} from '@angular/core';\n\nimport { WattIcon, WattIconComponent } from '@energinet/watt/icon';\n\nexport type WattValidationMessageType = 'info' | 'warning' | 'success' | 'danger';\nexport type WattValidationMessageSize = 'compact' | 'normal';\n\n/**\n * Usage:\n * `import { WattValidationMessageComponent } from '@energinet/watt/validation-message';`\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'watt-validation-message',\n styleUrl: './watt-validation-message.component.scss',\n imports: [WattIconComponent],\n host: {\n '[class]': `cssClass()`,\n '[attr.role]': 'ariaRole()',\n },\n template: `\n @if (icon()) {\n <watt-icon [name]=\"icon()\" />\n }\n <div>\n @if (label()) {\n <strong>{{ label() }}</strong>\n }\n {{ message() }}\n <ng-content />\n </div>\n `,\n})\nexport class WattValidationMessageComponent implements AfterViewInit {\n /**\n * @ignore\n */\n private elementRef = inject(ElementRef);\n\n label = input('');\n message = input('');\n icon = input<WattIcon | undefined>(undefined);\n type = input<WattValidationMessageType>('info');\n size = input<WattValidationMessageSize>('compact');\n autoScrollIntoView = input(true);\n\n /**\n * @ignore\n */\n cssClass = computed(\n () =>\n `watt-validation-message-type--${this.type()} watt-validation-message-size--${this.size()}`\n );\n\n /**\n * @ignore\n */\n ariaRole = computed(() =>\n this.type() === 'warning' || this.type() === 'danger' ? 'alert' : 'status'\n );\n\n /**\n * @ignore\n */\n ngAfterViewInit() {\n if (this.autoScrollIntoView()) {\n // Try to win over other auto scrolling behavior such as auto focus\n setTimeout(() => {\n this.elementRef.nativeElement.scrollIntoView();\n }, 100);\n }\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 {\n WattValidationMessageComponent,\n WattValidationMessageType,\n} from './watt-validation-message.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAgBA;;;AAGG;MAuBU,8BAA8B,CAAA;AACzC;;AAEG;AACK,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAEvC,IAAA,KAAK,GAAG,KAAK,CAAC,EAAE,iDAAC;AACjB,IAAA,OAAO,GAAG,KAAK,CAAC,EAAE,mDAAC;AACnB,IAAA,IAAI,GAAG,KAAK,CAAuB,SAAS,gDAAC;AAC7C,IAAA,IAAI,GAAG,KAAK,CAA4B,MAAM,gDAAC;AAC/C,IAAA,IAAI,GAAG,KAAK,CAA4B,SAAS,gDAAC;AAClD,IAAA,kBAAkB,GAAG,KAAK,CAAC,IAAI,8DAAC;AAEhC;;AAEG;AACH,IAAA,QAAQ,GAAG,QAAQ,CACjB,MACE,iCAAiC,IAAI,CAAC,IAAI,EAAE,kCAAkC,IAAI,CAAC,IAAI,EAAE,CAAA,CAAE,oDAC9F;AAED;;AAEG;AACH,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAClB,IAAI,CAAC,IAAI,EAAE,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,QAAQ,GAAG,OAAO,GAAG,QAAQ,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAC3E;AAED;;AAEG;IACH,eAAe,GAAA;AACb,QAAA,IAAI,IAAI,CAAC,kBAAkB,EAAE,EAAE;;YAE7B,UAAU,CAAC,MAAK;AACd,gBAAA,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,EAAE;YAChD,CAAC,EAAE,GAAG,CAAC;QACT;IACF;uGAtCW,8BAA8B,EAAA,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,WAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAb/B;;;;;;;;;;;AAWT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,04CAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAhBS,iBAAiB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAkBhB,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAtB1C,SAAS;sCACS,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC,yBAAyB,WAE1B,CAAC,iBAAiB,CAAC,EAAA,IAAA,EACtB;AACJ,wBAAA,SAAS,EAAE,CAAA,UAAA,CAAY;AACvB,wBAAA,aAAa,EAAE,YAAY;qBAC5B,EAAA,QAAA,EACS;;;;;;;;;;;AAWT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,04CAAA,CAAA,EAAA;;;ACzDH;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
1
+ {"version":3,"file":"energinet-watt-validation-message.mjs","sources":["../../../libs/watt/package/validation-message/watt-validation-message.component.ts","../../../libs/watt/package/validation-message/index.ts","../../../libs/watt/package/validation-message/energinet-watt-validation-message.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 {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n} from '@angular/core';\n\nimport { WattIcon, WattIconComponent } from '@energinet/watt/icon';\n\nexport type WattValidationMessageType = 'info' | 'warning' | 'success' | 'danger';\nexport type WattValidationMessageSize = 'compact' | 'normal';\n\n/**\n * Usage:\n * `import { WattValidationMessageComponent } from '@energinet/watt/validation-message';`\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'watt-validation-message',\n styleUrl: './watt-validation-message.component.scss',\n imports: [WattIconComponent],\n host: {\n '[class]': `cssClass()`,\n '[attr.role]': 'ariaRole()',\n },\n template: `\n @if (icon()) {\n <watt-icon [name]=\"icon()\" />\n }\n <div>\n @if (label()) {\n <strong>{{ label() }}</strong>\n }\n {{ message() }}\n <ng-content />\n </div>\n `,\n})\nexport class WattValidationMessageComponent implements AfterViewInit {\n /**\n * @ignore\n */\n private elementRef = inject(ElementRef);\n\n label = input('');\n message = input('');\n icon = input<WattIcon | undefined>(undefined);\n type = input<WattValidationMessageType>('info');\n size = input<WattValidationMessageSize>('compact');\n autoScrollIntoView = input(true);\n\n /**\n * @ignore\n */\n cssClass = computed(\n () =>\n `watt-validation-message-type--${this.type()} watt-validation-message-size--${this.size()}`\n );\n\n /**\n * @ignore\n */\n ariaRole = computed(() =>\n this.type() === 'warning' || this.type() === 'danger' ? 'alert' : 'status'\n );\n\n /**\n * @ignore\n */\n ngAfterViewInit() {\n if (this.autoScrollIntoView()) {\n // Try to win over other auto scrolling behavior such as auto focus\n setTimeout(() => {\n this.elementRef.nativeElement.scrollIntoView();\n }, 100);\n }\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 {\n WattValidationMessageComponent,\n WattValidationMessageType,\n} from './watt-validation-message.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAgBA;;;AAGG;MAuBU,8BAA8B,CAAA;AACzC;;AAEG;AACK,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAEvC,IAAA,KAAK,GAAG,KAAK,CAAC,EAAE,4EAAC;AACjB,IAAA,OAAO,GAAG,KAAK,CAAC,EAAE,8EAAC;AACnB,IAAA,IAAI,GAAG,KAAK,CAAuB,SAAS,2EAAC;AAC7C,IAAA,IAAI,GAAG,KAAK,CAA4B,MAAM,2EAAC;AAC/C,IAAA,IAAI,GAAG,KAAK,CAA4B,SAAS,2EAAC;AAClD,IAAA,kBAAkB,GAAG,KAAK,CAAC,IAAI,yFAAC;AAEhC;;AAEG;AACH,IAAA,QAAQ,GAAG,QAAQ,CACjB,MACE,iCAAiC,IAAI,CAAC,IAAI,EAAE,kCAAkC,IAAI,CAAC,IAAI,EAAE,CAAA,CAAE,+EAC9F;AAED;;AAEG;AACH,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAClB,IAAI,CAAC,IAAI,EAAE,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,QAAQ,GAAG,OAAO,GAAG,QAAQ,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAC3E;AAED;;AAEG;IACH,eAAe,GAAA;AACb,QAAA,IAAI,IAAI,CAAC,kBAAkB,EAAE,EAAE;;YAE7B,UAAU,CAAC,MAAK;AACd,gBAAA,IAAI,CAAC,UA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iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,YAAA,EAAA,WAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAb/B;;;;;;;;;;;AAWT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,04CAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAhBS,iBAAiB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAkBhB,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAtB1C,SAAS;sCACS,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC,yBAAyB,WAE1B,CAAC,iBAAiB,CAAC,EAAA,IAAA,EACtB;AACJ,wBAAA,SAAS,EAAE,CAAA,UAAA,CAAY;AACvB,wBAAA,aAAa,EAAE,YAAY;qBAC5B,EAAA,QAAA,EACS;;;;;;;;;;;AAWT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,04CAAA,CAAA,EAAA;;;ACzDH;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
@@ -22,28 +22,28 @@ import { input, booleanAttribute, computed, Directive, ViewEncapsulation, Compon
22
22
  /* eslint-disable @angular-eslint/no-input-rename */
23
23
  class VaterUtilityDirective {
24
24
  /** Center the element horizontally and vertically. */
25
- center = input(false, { ...(ngDevMode ? { debugName: "center" } : {}), transform: booleanAttribute });
25
+ center = input(false, { ...(ngDevMode ? { debugName: "center" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
26
26
  /** Stretch the element to fill the available space in one or both directions. */
27
- fill = input(...(ngDevMode ? [undefined, { debugName: "fill" }] : []));
27
+ fill = input(...(ngDevMode ? [undefined, { debugName: "fill" }] : /* istanbul ignore next */ []));
28
28
  /** Position the element absolute with the provided inset value. */
29
- inset = input(...(ngDevMode ? [undefined, { debugName: "inset" }] : []));
29
+ inset = input(...(ngDevMode ? [undefined, { debugName: "inset" }] : /* istanbul ignore next */ []));
30
30
  /** Make the element scrollable. */
31
- scrollable = input(false, { ...(ngDevMode ? { debugName: "scrollable" } : {}), transform: booleanAttribute });
31
+ scrollable = input(false, { ...(ngDevMode ? { debugName: "scrollable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
32
32
  /** Make the element sticky. */
33
- sticky = input(...(ngDevMode ? [undefined, { debugName: "sticky" }] : []));
33
+ sticky = input(...(ngDevMode ? [undefined, { debugName: "sticky" }] : /* istanbul ignore next */ []));
34
34
  /** Replace this element with its children (display: contents). */
35
- fragment = input(false, { ...(ngDevMode ? { debugName: "fragment" } : {}), transform: booleanAttribute });
35
+ fragment = input(false, { ...(ngDevMode ? { debugName: "fragment" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
36
36
  /** Make the element contain (TODO: Better comment). */
37
- contain = input(false, { ...(ngDevMode ? { debugName: "contain" } : {}), transform: booleanAttribute });
37
+ contain = input(false, { ...(ngDevMode ? { debugName: "contain" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
38
38
  // Computed class names
39
- fillClass = computed(() => this.fill() && `vater-fill-${this.fill()}`, ...(ngDevMode ? [{ debugName: "fillClass" }] : []));
40
- insetClass = computed(() => this.inset() && `vater-inset-${this.inset()}`, ...(ngDevMode ? [{ debugName: "insetClass" }] : []));
41
- stickyClass = computed(() => this.sticky() && `vater-sticky-${this.sticky()}`, ...(ngDevMode ? [{ debugName: "stickyClass" }] : []));
42
- class = computed(() => [this.fillClass(), this.insetClass(), this.stickyClass()].filter(Boolean), ...(ngDevMode ? [{ debugName: "class" }] : []));
43
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterUtilityDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
44
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.6", type: VaterUtilityDirective, isStandalone: true, selector: "[vater]", inputs: { center: { classPropertyName: "center", publicName: "center", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, inset: { classPropertyName: "inset", publicName: "inset", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, fragment: { classPropertyName: "fragment", publicName: "fragment", isSignal: true, isRequired: false, transformFunction: null }, contain: { classPropertyName: "contain", publicName: "contain", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "class()", "class.vater-center": "center()", "class.vater-scrollable": "scrollable()", "class.vater-fragment": "fragment()", "class.vater-contain": "contain()", "attr.center": "null", "attr.fill": "null", "attr.inset": "null", "attr.scrollable": "null", "attr.sticky": "null" } }, ngImport: i0 });
39
+ fillClass = computed(() => this.fill() && `vater-fill-${this.fill()}`, ...(ngDevMode ? [{ debugName: "fillClass" }] : /* istanbul ignore next */ []));
40
+ insetClass = computed(() => this.inset() && `vater-inset-${this.inset()}`, ...(ngDevMode ? [{ debugName: "insetClass" }] : /* istanbul ignore next */ []));
41
+ stickyClass = computed(() => this.sticky() && `vater-sticky-${this.sticky()}`, ...(ngDevMode ? [{ debugName: "stickyClass" }] : /* istanbul ignore next */ []));
42
+ class = computed(() => [this.fillClass(), this.insetClass(), this.stickyClass()].filter(Boolean), ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
43
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterUtilityDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
44
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.5", type: VaterUtilityDirective, isStandalone: true, selector: "[vater]", inputs: { center: { classPropertyName: "center", publicName: "center", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, inset: { classPropertyName: "inset", publicName: "inset", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, fragment: { classPropertyName: "fragment", publicName: "fragment", isSignal: true, isRequired: false, transformFunction: null }, contain: { classPropertyName: "contain", publicName: "contain", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "class()", "class.vater-center": "center()", "class.vater-scrollable": "scrollable()", "class.vater-fragment": "fragment()", "class.vater-contain": "contain()", "attr.center": "null", "attr.fill": "null", "attr.inset": "null", "attr.scrollable": "null", "attr.sticky": "null" } }, ngImport: i0 });
45
45
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterUtilityDirective, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterUtilityDirective, decorators: [{
47
47
  type: Directive,
48
48
  args: [{
49
49
  selector: '[vater]',
@@ -82,15 +82,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
82
82
  //#endregion
83
83
  class VaterFlexboxDirective {
84
84
  /** Direction of the flex items. Defaults to `column`. */
85
- direction = input('column', ...(ngDevMode ? [{ debugName: "direction" }] : []));
85
+ direction = input('column', ...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
86
86
  /** Whether the flex items should wrap. */
87
- wrap = input(false, { ...(ngDevMode ? { debugName: "wrap" } : {}), transform: booleanAttribute });
87
+ wrap = input(false, { ...(ngDevMode ? { debugName: "wrap" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
88
88
  // Computed class names
89
- class = computed(() => this.direction() && `vater-${this.direction()}`, ...(ngDevMode ? [{ debugName: "class" }] : []));
90
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterFlexboxDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
91
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.6", type: VaterFlexboxDirective, isStandalone: true, inputs: { direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "class()", "class.vater-wrap": "wrap()", "attr.direction": "null", "attr.wrap": "null" } }, ngImport: i0 });
89
+ class = computed(() => this.direction() && `vater-${this.direction()}`, ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
90
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterFlexboxDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
91
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.5", type: VaterFlexboxDirective, isStandalone: true, inputs: { direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "class()", "class.vater-wrap": "wrap()", "attr.direction": "null", "attr.wrap": "null" } }, ngImport: i0 });
92
92
  }
93
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterFlexboxDirective, decorators: [{
93
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterFlexboxDirective, decorators: [{
94
94
  type: Directive,
95
95
  args: [{
96
96
  host: {
@@ -122,23 +122,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
122
122
  //#endregion
123
123
  class VaterLayoutDirective {
124
124
  /** Spacing between items. */
125
- gap = input(...(ngDevMode ? [undefined, { debugName: "gap" }] : []));
125
+ gap = input(...(ngDevMode ? [undefined, { debugName: "gap" }] : /* istanbul ignore next */ []));
126
126
  /** Offset to apply along the main axis (or both axes for grids). */
127
- offset = input(...(ngDevMode ? [undefined, { debugName: "offset" }] : []));
127
+ offset = input(...(ngDevMode ? [undefined, { debugName: "offset" }] : /* istanbul ignore next */ []));
128
128
  /** Main axis alignment of the child items. */
129
- justify = input(...(ngDevMode ? [undefined, { debugName: "justify" }] : []));
129
+ justify = input(...(ngDevMode ? [undefined, { debugName: "justify" }] : /* istanbul ignore next */ []));
130
130
  /** Cross axis alignment of the flex items. */
131
- align = input(...(ngDevMode ? [undefined, { debugName: "align" }] : []));
131
+ align = input(...(ngDevMode ? [undefined, { debugName: "align" }] : /* istanbul ignore next */ []));
132
132
  // Computed class names
133
- gapClass = computed(() => this.gap() && `vater-gap-${this.gap()}`, ...(ngDevMode ? [{ debugName: "gapClass" }] : []));
134
- offsetClass = computed(() => this.offset() && `vater-offset-${this.offset()}`, ...(ngDevMode ? [{ debugName: "offsetClass" }] : []));
135
- justifyClass = computed(() => this.justify() && `vater-justify-${this.justify()}`, ...(ngDevMode ? [{ debugName: "justifyClass" }] : []));
136
- alignClass = computed(() => this.align() && `vater-align-${this.align()}`, ...(ngDevMode ? [{ debugName: "alignClass" }] : []));
137
- class = computed(() => [this.gapClass(), this.offsetClass(), this.justifyClass(), this.alignClass()].filter(Boolean), ...(ngDevMode ? [{ debugName: "class" }] : []));
138
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterLayoutDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
139
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.6", type: VaterLayoutDirective, isStandalone: true, inputs: { gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "class()", "attr.gap": "null", "attr.offset": "null", "attr.justify": "null", "attr.align": "null" } }, ngImport: i0 });
133
+ gapClass = computed(() => this.gap() && `vater-gap-${this.gap()}`, ...(ngDevMode ? [{ debugName: "gapClass" }] : /* istanbul ignore next */ []));
134
+ offsetClass = computed(() => this.offset() && `vater-offset-${this.offset()}`, ...(ngDevMode ? [{ debugName: "offsetClass" }] : /* istanbul ignore next */ []));
135
+ justifyClass = computed(() => this.justify() && `vater-justify-${this.justify()}`, ...(ngDevMode ? [{ debugName: "justifyClass" }] : /* istanbul ignore next */ []));
136
+ alignClass = computed(() => this.align() && `vater-align-${this.align()}`, ...(ngDevMode ? [{ debugName: "alignClass" }] : /* istanbul ignore next */ []));
137
+ class = computed(() => [this.gapClass(), this.offsetClass(), this.justifyClass(), this.alignClass()].filter(Boolean), ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
138
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterLayoutDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
139
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.5", type: VaterLayoutDirective, isStandalone: true, inputs: { gap: { classPropertyName: "gap", publicName: "gap", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "class()", "attr.gap": "null", "attr.offset": "null", "attr.justify": "null", "attr.align": "null" } }, ngImport: i0 });
140
140
  }
141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterLayoutDirective, decorators: [{
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterLayoutDirective, decorators: [{
142
142
  type: Directive,
143
143
  args: [{
144
144
  host: {
@@ -176,11 +176,11 @@ class VaterFlexComponent {
176
176
  * @remarks
177
177
  * Prefer setting `fill` on flex items over using `autoSize`.
178
178
  */
179
- autoSize = input(false, { ...(ngDevMode ? { debugName: "autoSize" } : {}), transform: booleanAttribute });
180
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterFlexComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
181
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.6", type: VaterFlexComponent, isStandalone: true, selector: "vater-flex, [vater-flex]", inputs: { autoSize: { classPropertyName: "autoSize", publicName: "autoSize", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.vater-flex-auto": "autoSize()" } }, hostDirectives: [{ directive: VaterFlexboxDirective, inputs: ["direction", "direction", "wrap", "wrap"] }, { directive: VaterLayoutDirective, inputs: ["gap", "gap", "offset", "offset", "justify", "justify", "align", "align"] }, { directive: VaterUtilityDirective, inputs: ["center", "center", "fill", "fill", "inset", "inset", "scrollable", "scrollable", "sticky", "sticky"] }], ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["vater-flex,[vater-flex]{display:flex;line-height:normal}\n"], encapsulation: i0.ViewEncapsulation.None });
179
+ autoSize = input(false, { ...(ngDevMode ? { debugName: "autoSize" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
180
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterFlexComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
181
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.5", type: VaterFlexComponent, isStandalone: true, selector: "vater-flex, [vater-flex]", inputs: { autoSize: { classPropertyName: "autoSize", publicName: "autoSize", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.vater-flex-auto": "autoSize()" } }, hostDirectives: [{ directive: VaterFlexboxDirective, inputs: ["direction", "direction", "wrap", "wrap"] }, { directive: VaterLayoutDirective, inputs: ["gap", "gap", "offset", "offset", "justify", "justify", "align", "align"] }, { directive: VaterUtilityDirective, inputs: ["center", "center", "fill", "fill", "inset", "inset", "scrollable", "scrollable", "sticky", "sticky"] }], ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["vater-flex,[vater-flex]{display:flex;line-height:normal}\n"], encapsulation: i0.ViewEncapsulation.None });
182
182
  }
183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterFlexComponent, decorators: [{
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterFlexComponent, decorators: [{
184
184
  type: Component,
185
185
  args: [{ selector: 'vater-flex, [vater-flex]', encapsulation: ViewEncapsulation.None, hostDirectives: [
186
186
  {
@@ -218,22 +218,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
218
218
  //#endregion
219
219
  class VaterGridAreaComponent {
220
220
  /** Optional input for providing a descriptive name. Unused by the component. */
221
- name = input('', ...(ngDevMode ? [{ debugName: "name" }] : []));
221
+ name = input('', ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
222
222
  /** Specify the grid areas size and location within a grid column (`grid-column`). */
223
- column = input(...(ngDevMode ? [undefined, { debugName: "column" }] : []));
223
+ column = input(...(ngDevMode ? [undefined, { debugName: "column" }] : /* istanbul ignore next */ []));
224
224
  /** Specify the grid areas size and location within a grid row (`grid-row`). */
225
- row = input(...(ngDevMode ? [undefined, { debugName: "row" }] : []));
225
+ row = input(...(ngDevMode ? [undefined, { debugName: "row" }] : /* istanbul ignore next */ []));
226
226
  /**
227
227
  * Whether the grid area should also be a grid and inherit track sizing
228
228
  * for `columns`, `rows` or `both` from the parent grid.
229
229
  */
230
- subgrid = input(...(ngDevMode ? [undefined, { debugName: "subgrid" }] : []));
230
+ subgrid = input(...(ngDevMode ? [undefined, { debugName: "subgrid" }] : /* istanbul ignore next */ []));
231
231
  // Computed class name
232
- class = computed(() => this.subgrid() && `vater-subgrid-${this.subgrid()}`, ...(ngDevMode ? [{ debugName: "class" }] : []));
233
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterGridAreaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
234
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.6", type: VaterGridAreaComponent, isStandalone: true, selector: "vater-grid-area, [vater-grid-area]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, column: { classPropertyName: "column", publicName: "column", isSignal: true, isRequired: false, transformFunction: null }, row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: false, transformFunction: null }, subgrid: { classPropertyName: "subgrid", publicName: "subgrid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "class()", "style.gridColumn": "column()", "style.gridRow": "row()" } }, hostDirectives: [{ directive: VaterLayoutDirective, inputs: ["gap", "gap", "offset", "offset"] }, { directive: VaterUtilityDirective, inputs: ["fill", "fill", "scrollable", "scrollable"] }], ngImport: i0, template: `<ng-content />`, isInline: true, encapsulation: i0.ViewEncapsulation.None });
232
+ class = computed(() => this.subgrid() && `vater-subgrid-${this.subgrid()}`, ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
233
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterGridAreaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
234
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.5", type: VaterGridAreaComponent, isStandalone: true, selector: "vater-grid-area, [vater-grid-area]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, column: { classPropertyName: "column", publicName: "column", isSignal: true, isRequired: false, transformFunction: null }, row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: false, transformFunction: null }, subgrid: { classPropertyName: "subgrid", publicName: "subgrid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "class()", "style.gridColumn": "column()", "style.gridRow": "row()" } }, hostDirectives: [{ directive: VaterLayoutDirective, inputs: ["gap", "gap", "offset", "offset"] }, { directive: VaterUtilityDirective, inputs: ["fill", "fill", "scrollable", "scrollable"] }], ngImport: i0, template: `<ng-content />`, isInline: true, encapsulation: i0.ViewEncapsulation.None });
235
235
  }
236
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterGridAreaComponent, decorators: [{
236
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterGridAreaComponent, decorators: [{
237
237
  type: Component,
238
238
  args: [{
239
239
  selector: 'vater-grid-area, [vater-grid-area]',
@@ -277,23 +277,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
277
277
  //#endregion
278
278
  class VaterGridComponent {
279
279
  /** Column template (`grid-template-columns`) or number of equal sized columns. */
280
- columns = input(...(ngDevMode ? [undefined, { debugName: "columns" }] : []));
280
+ columns = input(...(ngDevMode ? [undefined, { debugName: "columns" }] : /* istanbul ignore next */ []));
281
281
  /** Row template (`grid-template-rows`) or number of equal sized rows. */
282
- rows = input(...(ngDevMode ? [undefined, { debugName: "rows" }] : []));
282
+ rows = input(...(ngDevMode ? [undefined, { debugName: "rows" }] : /* istanbul ignore next */ []));
283
283
  /** Column template for implicitly-created columns (`grid-auto-columns`). */
284
- autoColumns = input(...(ngDevMode ? [undefined, { debugName: "autoColumns" }] : []));
284
+ autoColumns = input(...(ngDevMode ? [undefined, { debugName: "autoColumns" }] : /* istanbul ignore next */ []));
285
285
  /** Row template for implicitly-created rows (`grid-auto-rows`). */
286
- autoRows = input(...(ngDevMode ? [undefined, { debugName: "autoRows" }] : []));
286
+ autoRows = input(...(ngDevMode ? [undefined, { debugName: "autoRows" }] : /* istanbul ignore next */ []));
287
287
  /** Specifies how auto-placed items flows into the grid (`grid-auto-flow`). */
288
- flow = input(...(ngDevMode ? [undefined, { debugName: "flow" }] : []));
288
+ flow = input(...(ngDevMode ? [undefined, { debugName: "flow" }] : /* istanbul ignore next */ []));
289
289
  // Computed templates
290
- templateColumns = computed(() => this.makeTrackList(this.columns()), ...(ngDevMode ? [{ debugName: "templateColumns" }] : []));
291
- templateRows = computed(() => this.makeTrackList(this.rows()), ...(ngDevMode ? [{ debugName: "templateRows" }] : []));
290
+ templateColumns = computed(() => this.makeTrackList(this.columns()), ...(ngDevMode ? [{ debugName: "templateColumns" }] : /* istanbul ignore next */ []));
291
+ templateRows = computed(() => this.makeTrackList(this.rows()), ...(ngDevMode ? [{ debugName: "templateRows" }] : /* istanbul ignore next */ []));
292
292
  makeTrackList = (input) => typeof input === 'number' ? 'auto '.repeat(input).trim() : input;
293
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
294
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.6", type: VaterGridComponent, isStandalone: true, selector: "vater-grid, [vater-grid]", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, autoColumns: { classPropertyName: "autoColumns", publicName: "autoColumns", isSignal: true, isRequired: false, transformFunction: null }, autoRows: { classPropertyName: "autoRows", publicName: "autoRows", isSignal: true, isRequired: false, transformFunction: null }, flow: { classPropertyName: "flow", publicName: "flow", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.gridTemplateColumns": "templateColumns()", "style.gridTemplateRows": "templateRows()", "style.gridAutoColumns": "autoColumns()", "style.gridAutoRows": "autoRows()", "style.gridAutoFlow": "flow()" } }, hostDirectives: [{ directive: VaterLayoutDirective, inputs: ["gap", "gap", "offset", "offset", "justify", "justify", "align", "align"] }, { directive: VaterUtilityDirective, inputs: ["center", "center", "fill", "fill", "inset", "inset", "scrollable", "scrollable", "sticky", "sticky"] }], ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["vater-grid,[vater-grid]{display:grid}\n"], encapsulation: i0.ViewEncapsulation.None });
293
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
294
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.5", type: VaterGridComponent, isStandalone: true, selector: "vater-grid, [vater-grid]", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, autoColumns: { classPropertyName: "autoColumns", publicName: "autoColumns", isSignal: true, isRequired: false, transformFunction: null }, autoRows: { classPropertyName: "autoRows", publicName: "autoRows", isSignal: true, isRequired: false, transformFunction: null }, flow: { classPropertyName: "flow", publicName: "flow", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.gridTemplateColumns": "templateColumns()", "style.gridTemplateRows": "templateRows()", "style.gridAutoColumns": "autoColumns()", "style.gridAutoRows": "autoRows()", "style.gridAutoFlow": "flow()" } }, hostDirectives: [{ directive: VaterLayoutDirective, inputs: ["gap", "gap", "offset", "offset", "justify", "justify", "align", "align"] }, { directive: VaterUtilityDirective, inputs: ["center", "center", "fill", "fill", "inset", "inset", "scrollable", "scrollable", "sticky", "sticky"] }], ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["vater-grid,[vater-grid]{display:grid}\n"], encapsulation: i0.ViewEncapsulation.None });
295
295
  }
296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterGridComponent, decorators: [{
296
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterGridComponent, decorators: [{
297
297
  type: Component,
298
298
  args: [{ selector: 'vater-grid, [vater-grid]', encapsulation: ViewEncapsulation.None, hostDirectives: [
299
299
  {
@@ -332,10 +332,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
332
332
  */
333
333
  //#endregion
334
334
  class VaterSpacerComponent {
335
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
336
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.6", type: VaterSpacerComponent, isStandalone: true, selector: "vater-spacer, [vater-spacer]", ngImport: i0, template: '<ng-content />', isInline: true, styles: ["vater-spacer,[vater-spacer]{flex:1;align-self:stretch}\n"], encapsulation: i0.ViewEncapsulation.None });
335
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
336
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.5", type: VaterSpacerComponent, isStandalone: true, selector: "vater-spacer, [vater-spacer]", ngImport: i0, template: '<ng-content />', isInline: true, styles: ["vater-spacer,[vater-spacer]{flex:1;align-self:stretch}\n"], encapsulation: i0.ViewEncapsulation.None });
337
337
  }
338
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterSpacerComponent, decorators: [{
338
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterSpacerComponent, decorators: [{
339
339
  type: Component,
340
340
  args: [{ selector: 'vater-spacer, [vater-spacer]', encapsulation: ViewEncapsulation.None, template: '<ng-content />', styles: ["vater-spacer,[vater-spacer]{flex:1;align-self:stretch}\n"] }]
341
341
  }] });
@@ -359,10 +359,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
359
359
  */
360
360
  //#endregion
361
361
  class VaterStackComponent {
362
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterStackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
363
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.6", type: VaterStackComponent, isStandalone: true, selector: "vater-stack, [vater-stack]", hostDirectives: [{ directive: VaterFlexboxDirective, inputs: ["direction", "direction", "wrap", "wrap"] }, { directive: VaterLayoutDirective, inputs: ["gap", "gap", "offset", "offset", "justify", "justify", "align", "align"] }, { directive: VaterUtilityDirective, inputs: ["center", "center", "fill", "fill", "inset", "inset", "scrollable", "scrollable", "sticky", "sticky"] }], ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["vater-stack,[vater-stack]{display:flex;line-height:normal}\n"], encapsulation: i0.ViewEncapsulation.None });
362
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterStackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
363
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.5", type: VaterStackComponent, isStandalone: true, selector: "vater-stack, [vater-stack]", hostDirectives: [{ directive: VaterFlexboxDirective, inputs: ["direction", "direction", "wrap", "wrap"] }, { directive: VaterLayoutDirective, inputs: ["gap", "gap", "offset", "offset", "justify", "justify", "align", "align"] }, { directive: VaterUtilityDirective, inputs: ["center", "center", "fill", "fill", "inset", "inset", "scrollable", "scrollable", "sticky", "sticky"] }], ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["vater-stack,[vater-stack]{display:flex;line-height:normal}\n"], encapsulation: i0.ViewEncapsulation.None });
364
364
  }
365
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: VaterStackComponent, decorators: [{
365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: VaterStackComponent, decorators: [{
366
366
  type: Component,
367
367
  args: [{ selector: 'vater-stack, [vater-stack]', encapsulation: ViewEncapsulation.None, hostDirectives: [
368
368
  {
@@ -1 +1 @@
1
- {"version":3,"file":"energinet-watt-vater.mjs","sources":["../../../libs/watt/package/vater/vater-utility.directive.ts","../../../libs/watt/package/vater/vater-flexbox.directive.ts","../../../libs/watt/package/vater/vater-layout.directive.ts","../../../libs/watt/package/vater/vater-flex.component.ts","../../../libs/watt/package/vater/vater-grid-area.component.ts","../../../libs/watt/package/vater/vater-grid.component.ts","../../../libs/watt/package/vater/vater-spacer.component.ts","../../../libs/watt/package/vater/vater-stack.component.ts","../../../libs/watt/package/vater/index.ts","../../../libs/watt/package/vater/energinet-watt-vater.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 { booleanAttribute, computed, Directive, input } from '@angular/core';\nimport { Anchor, Fill, Inset } from './types';\n\n/* eslint-disable @angular-eslint/no-input-rename */\n@Directive({\n selector: '[vater]',\n host: {\n '[class]': 'class()',\n '[class.vater-center]': 'center()',\n '[class.vater-scrollable]': 'scrollable()',\n '[class.vater-fragment]': 'fragment()',\n '[class.vater-contain]': 'contain()',\n '[attr.center]': 'null',\n '[attr.fill]': 'null',\n '[attr.inset]': 'null',\n '[attr.scrollable]': 'null',\n '[attr.sticky]': 'null',\n },\n})\nexport class VaterUtilityDirective {\n /** Center the element horizontally and vertically. */\n center = input(false, { transform: booleanAttribute });\n\n /** Stretch the element to fill the available space in one or both directions. */\n fill = input<Fill>();\n\n /** Position the element absolute with the provided inset value. */\n inset = input<Inset>();\n\n /** Make the element scrollable. */\n scrollable = input(false, { transform: booleanAttribute });\n\n /** Make the element sticky. */\n sticky = input<Anchor>();\n\n /** Replace this element with its children (display: contents). */\n fragment = input(false, { transform: booleanAttribute });\n\n /** Make the element contain (TODO: Better comment). */\n contain = input(false, { transform: booleanAttribute });\n\n // Computed class names\n protected fillClass = computed(() => this.fill() && `vater-fill-${this.fill()}`);\n protected insetClass = computed(() => this.inset() && `vater-inset-${this.inset()}`);\n protected stickyClass = computed(() => this.sticky() && `vater-sticky-${this.sticky()}`);\n protected class = computed(() =>\n [this.fillClass(), this.insetClass(), this.stickyClass()].filter(Boolean)\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 { booleanAttribute, computed, Directive, input } from '@angular/core';\nimport { Direction } from './types';\n\n@Directive({\n host: {\n '[class]': 'class()',\n '[class.vater-wrap]': 'wrap()',\n '[attr.direction]': 'null',\n '[attr.wrap]': 'null',\n },\n})\nexport class VaterFlexboxDirective {\n /** Direction of the flex items. Defaults to `column`. */\n direction = input<Direction>('column');\n\n /** Whether the flex items should wrap. */\n wrap = input(false, { transform: booleanAttribute });\n\n // Computed class names\n protected class = computed(() => this.direction() && `vater-${this.direction()}`);\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, Directive, input } from '@angular/core';\nimport { Align, Justify, Spacing } from './types';\n\n@Directive({\n host: {\n '[class]': 'class()',\n '[attr.gap]': 'null',\n '[attr.offset]': 'null',\n '[attr.justify]': 'null',\n '[attr.align]': 'null',\n },\n})\nexport class VaterLayoutDirective {\n /** Spacing between items. */\n gap = input<Spacing | 'dividers'>();\n\n /** Offset to apply along the main axis (or both axes for grids). */\n offset = input<Spacing>();\n\n /** Main axis alignment of the child items. */\n justify = input<Justify>();\n\n /** Cross axis alignment of the flex items. */\n align = input<Align>();\n\n // Computed class names\n protected gapClass = computed(() => this.gap() && `vater-gap-${this.gap()}`);\n protected offsetClass = computed(() => this.offset() && `vater-offset-${this.offset()}`);\n protected justifyClass = computed(() => this.justify() && `vater-justify-${this.justify()}`);\n protected alignClass = computed(() => this.align() && `vater-align-${this.align()}`);\n protected class = computed(() =>\n [this.gapClass(), this.offsetClass(), this.justifyClass(), this.alignClass()].filter(Boolean)\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 { booleanAttribute, Component, input, ViewEncapsulation } from '@angular/core';\nimport { VaterUtilityDirective } from './vater-utility.directive';\nimport { VaterFlexboxDirective } from './vater-flexbox.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\n\n@Component({\n selector: 'vater-flex, [vater-flex]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterFlexboxDirective,\n inputs: ['direction', 'wrap'],\n },\n {\n directive: VaterLayoutDirective,\n inputs: ['gap', 'offset', 'justify', 'align'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['center', 'fill', 'inset', 'scrollable', 'sticky'],\n },\n ],\n host: { '[class.vater-flex-auto]': 'autoSize()' },\n styles: `\n vater-flex,\n [vater-flex] {\n display: flex;\n line-height: normal;\n }\n `,\n template: `<ng-content />`,\n})\nexport class VaterFlexComponent {\n /**\n * When set, sizes the flex items according to their width or height properties.\n * @see https://drafts.csswg.org/css-flexbox-1/#flex-common\n * @remarks\n * Prefer setting `fill` on flex items over using `autoSize`.\n */\n autoSize = input(false, { transform: booleanAttribute });\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 { Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { VaterUtilityDirective } from './vater-utility.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\n\n@Component({\n selector: 'vater-grid-area, [vater-grid-area]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterLayoutDirective,\n inputs: ['gap', 'offset'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['fill', 'scrollable'],\n },\n ],\n host: {\n '[class]': 'class()',\n '[style.gridColumn]': 'column()',\n '[style.gridRow]': 'row()',\n },\n template: `<ng-content />`,\n})\nexport class VaterGridAreaComponent {\n /** Optional input for providing a descriptive name. Unused by the component. */\n name = input('');\n\n /** Specify the grid areas size and location within a grid column (`grid-column`). */\n column = input<string | number>();\n\n /** Specify the grid areas size and location within a grid row (`grid-row`). */\n row = input<string | number>();\n\n /**\n * Whether the grid area should also be a grid and inherit track sizing\n * for `columns`, `rows` or `both` from the parent grid.\n */\n subgrid = input<'columns' | 'rows' | 'both'>();\n\n // Computed class name\n protected class = computed(() => this.subgrid() && `vater-subgrid-${this.subgrid()}`);\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 { Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { VaterUtilityDirective } from './vater-utility.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\n\n@Component({\n selector: 'vater-grid, [vater-grid]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterLayoutDirective,\n inputs: ['gap', 'offset', 'justify', 'align'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['center', 'fill', 'inset', 'scrollable', 'sticky'],\n },\n ],\n host: {\n '[style.gridTemplateColumns]': 'templateColumns()',\n '[style.gridTemplateRows]': 'templateRows()',\n '[style.gridAutoColumns]': 'autoColumns()',\n '[style.gridAutoRows]': 'autoRows()',\n '[style.gridAutoFlow]': 'flow()',\n },\n styles: `\n vater-grid,\n [vater-grid] {\n display: grid;\n }\n `,\n template: `<ng-content />`,\n})\nexport class VaterGridComponent {\n /** Column template (`grid-template-columns`) or number of equal sized columns. */\n columns = input<string | number>();\n\n /** Row template (`grid-template-rows`) or number of equal sized rows. */\n rows = input<string | number>();\n\n /** Column template for implicitly-created columns (`grid-auto-columns`). */\n autoColumns = input<string>();\n\n /** Row template for implicitly-created rows (`grid-auto-rows`). */\n autoRows = input<string>();\n\n /** Specifies how auto-placed items flows into the grid (`grid-auto-flow`). */\n flow = input<'row' | 'column'>();\n\n // Computed templates\n protected templateColumns = computed(() => this.makeTrackList(this.columns()));\n protected templateRows = computed(() => this.makeTrackList(this.rows()));\n private makeTrackList = (input?: string | number) =>\n typeof input === 'number' ? 'auto '.repeat(input).trim() : input;\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 { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'vater-spacer, [vater-spacer]',\n encapsulation: ViewEncapsulation.None,\n styles: `\n vater-spacer,\n [vater-spacer] {\n flex: 1;\n align-self: stretch;\n }\n `,\n template: '<ng-content />',\n})\nexport class VaterSpacerComponent {}\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 { Component, ViewEncapsulation } from '@angular/core';\nimport { VaterFlexboxDirective } from './vater-flexbox.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\nimport { VaterUtilityDirective } from './vater-utility.directive';\n\n@Component({\n selector: 'vater-stack, [vater-stack]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterFlexboxDirective,\n inputs: ['direction', 'wrap'],\n },\n {\n directive: VaterLayoutDirective,\n inputs: ['gap', 'offset', 'justify', 'align'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['center', 'fill', 'inset', 'scrollable', 'sticky'],\n },\n ],\n styles: `\n vater-stack,\n [vater-stack] {\n display: flex;\n line-height: normal;\n }\n `,\n template: `<ng-content />`,\n})\nexport class VaterStackComponent {}\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 { VaterFlexComponent } from './vater-flex.component';\nimport { VaterGridAreaComponent } from './vater-grid-area.component';\nimport { VaterGridComponent } from './vater-grid.component';\nimport { VaterSpacerComponent } from './vater-spacer.component';\nimport { VaterStackComponent } from './vater-stack.component';\nimport { VaterUtilityDirective } from './vater-utility.directive';\n\n// Must be exposed for ng-packagr to work\nexport { VaterLayoutDirective } from './vater-layout.directive';\nexport { VaterFlexboxDirective } from './vater-flexbox.directive';\n\nexport {\n VaterFlexComponent,\n VaterGridAreaComponent,\n VaterGridComponent,\n VaterSpacerComponent,\n VaterStackComponent,\n VaterUtilityDirective,\n};\n\nexport const VATER = [\n VaterFlexComponent,\n VaterGridAreaComponent,\n VaterGridComponent,\n VaterSpacerComponent,\n VaterStackComponent,\n VaterUtilityDirective,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAIA;MAgBa,qBAAqB,CAAA;;IAEhC,MAAM,GAAG,KAAK,CAAC,KAAK,mDAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAGtD,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAQ;;IAGpB,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAS;;IAGtB,UAAU,GAAG,KAAK,CAAC,KAAK,uDAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAG1D,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;;IAGxB,QAAQ,GAAG,KAAK,CAAC,KAAK,qDAAI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sources":["../../../libs/watt/package/vater/vater-utility.directive.ts","../../../libs/watt/package/vater/vater-flexbox.directive.ts","../../../libs/watt/package/vater/vater-layout.directive.ts","../../../libs/watt/package/vater/vater-flex.component.ts","../../../libs/watt/package/vater/vater-grid-area.component.ts","../../../libs/watt/package/vater/vater-grid.component.ts","../../../libs/watt/package/vater/vater-spacer.component.ts","../../../libs/watt/package/vater/vater-stack.component.ts","../../../libs/watt/package/vater/index.ts","../../../libs/watt/package/vater/energinet-watt-vater.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 { booleanAttribute, computed, Directive, input } from '@angular/core';\nimport { Anchor, Fill, Inset } from './types';\n\n/* eslint-disable @angular-eslint/no-input-rename */\n@Directive({\n selector: '[vater]',\n host: {\n '[class]': 'class()',\n '[class.vater-center]': 'center()',\n '[class.vater-scrollable]': 'scrollable()',\n '[class.vater-fragment]': 'fragment()',\n '[class.vater-contain]': 'contain()',\n '[attr.center]': 'null',\n '[attr.fill]': 'null',\n '[attr.inset]': 'null',\n '[attr.scrollable]': 'null',\n '[attr.sticky]': 'null',\n },\n})\nexport class VaterUtilityDirective {\n /** Center the element horizontally and vertically. */\n center = input(false, { transform: booleanAttribute });\n\n /** Stretch the element to fill the available space in one or both directions. */\n fill = input<Fill>();\n\n /** Position the element absolute with the provided inset value. */\n inset = input<Inset>();\n\n /** Make the element scrollable. */\n scrollable = input(false, { transform: booleanAttribute });\n\n /** Make the element sticky. */\n sticky = input<Anchor>();\n\n /** Replace this element with its children (display: contents). */\n fragment = input(false, { transform: booleanAttribute });\n\n /** Make the element contain (TODO: Better comment). */\n contain = input(false, { transform: booleanAttribute });\n\n // Computed class names\n protected fillClass = computed(() => this.fill() && `vater-fill-${this.fill()}`);\n protected insetClass = computed(() => this.inset() && `vater-inset-${this.inset()}`);\n protected stickyClass = computed(() => this.sticky() && `vater-sticky-${this.sticky()}`);\n protected class = computed(() =>\n [this.fillClass(), this.insetClass(), this.stickyClass()].filter(Boolean)\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 { booleanAttribute, computed, Directive, input } from '@angular/core';\nimport { Direction } from './types';\n\n@Directive({\n host: {\n '[class]': 'class()',\n '[class.vater-wrap]': 'wrap()',\n '[attr.direction]': 'null',\n '[attr.wrap]': 'null',\n },\n})\nexport class VaterFlexboxDirective {\n /** Direction of the flex items. Defaults to `column`. */\n direction = input<Direction>('column');\n\n /** Whether the flex items should wrap. */\n wrap = input(false, { transform: booleanAttribute });\n\n // Computed class names\n protected class = computed(() => this.direction() && `vater-${this.direction()}`);\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, Directive, input } from '@angular/core';\nimport { Align, Justify, Spacing } from './types';\n\n@Directive({\n host: {\n '[class]': 'class()',\n '[attr.gap]': 'null',\n '[attr.offset]': 'null',\n '[attr.justify]': 'null',\n '[attr.align]': 'null',\n },\n})\nexport class VaterLayoutDirective {\n /** Spacing between items. */\n gap = input<Spacing | 'dividers'>();\n\n /** Offset to apply along the main axis (or both axes for grids). */\n offset = input<Spacing>();\n\n /** Main axis alignment of the child items. */\n justify = input<Justify>();\n\n /** Cross axis alignment of the flex items. */\n align = input<Align>();\n\n // Computed class names\n protected gapClass = computed(() => this.gap() && `vater-gap-${this.gap()}`);\n protected offsetClass = computed(() => this.offset() && `vater-offset-${this.offset()}`);\n protected justifyClass = computed(() => this.justify() && `vater-justify-${this.justify()}`);\n protected alignClass = computed(() => this.align() && `vater-align-${this.align()}`);\n protected class = computed(() =>\n [this.gapClass(), this.offsetClass(), this.justifyClass(), this.alignClass()].filter(Boolean)\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 { booleanAttribute, Component, input, ViewEncapsulation } from '@angular/core';\nimport { VaterUtilityDirective } from './vater-utility.directive';\nimport { VaterFlexboxDirective } from './vater-flexbox.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\n\n@Component({\n selector: 'vater-flex, [vater-flex]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterFlexboxDirective,\n inputs: ['direction', 'wrap'],\n },\n {\n directive: VaterLayoutDirective,\n inputs: ['gap', 'offset', 'justify', 'align'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['center', 'fill', 'inset', 'scrollable', 'sticky'],\n },\n ],\n host: { '[class.vater-flex-auto]': 'autoSize()' },\n styles: `\n vater-flex,\n [vater-flex] {\n display: flex;\n line-height: normal;\n }\n `,\n template: `<ng-content />`,\n})\nexport class VaterFlexComponent {\n /**\n * When set, sizes the flex items according to their width or height properties.\n * @see https://drafts.csswg.org/css-flexbox-1/#flex-common\n * @remarks\n * Prefer setting `fill` on flex items over using `autoSize`.\n */\n autoSize = input(false, { transform: booleanAttribute });\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 { Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { VaterUtilityDirective } from './vater-utility.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\n\n@Component({\n selector: 'vater-grid-area, [vater-grid-area]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterLayoutDirective,\n inputs: ['gap', 'offset'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['fill', 'scrollable'],\n },\n ],\n host: {\n '[class]': 'class()',\n '[style.gridColumn]': 'column()',\n '[style.gridRow]': 'row()',\n },\n template: `<ng-content />`,\n})\nexport class VaterGridAreaComponent {\n /** Optional input for providing a descriptive name. Unused by the component. */\n name = input('');\n\n /** Specify the grid areas size and location within a grid column (`grid-column`). */\n column = input<string | number>();\n\n /** Specify the grid areas size and location within a grid row (`grid-row`). */\n row = input<string | number>();\n\n /**\n * Whether the grid area should also be a grid and inherit track sizing\n * for `columns`, `rows` or `both` from the parent grid.\n */\n subgrid = input<'columns' | 'rows' | 'both'>();\n\n // Computed class name\n protected class = computed(() => this.subgrid() && `vater-subgrid-${this.subgrid()}`);\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 { Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { VaterUtilityDirective } from './vater-utility.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\n\n@Component({\n selector: 'vater-grid, [vater-grid]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterLayoutDirective,\n inputs: ['gap', 'offset', 'justify', 'align'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['center', 'fill', 'inset', 'scrollable', 'sticky'],\n },\n ],\n host: {\n '[style.gridTemplateColumns]': 'templateColumns()',\n '[style.gridTemplateRows]': 'templateRows()',\n '[style.gridAutoColumns]': 'autoColumns()',\n '[style.gridAutoRows]': 'autoRows()',\n '[style.gridAutoFlow]': 'flow()',\n },\n styles: `\n vater-grid,\n [vater-grid] {\n display: grid;\n }\n `,\n template: `<ng-content />`,\n})\nexport class VaterGridComponent {\n /** Column template (`grid-template-columns`) or number of equal sized columns. */\n columns = input<string | number>();\n\n /** Row template (`grid-template-rows`) or number of equal sized rows. */\n rows = input<string | number>();\n\n /** Column template for implicitly-created columns (`grid-auto-columns`). */\n autoColumns = input<string>();\n\n /** Row template for implicitly-created rows (`grid-auto-rows`). */\n autoRows = input<string>();\n\n /** Specifies how auto-placed items flows into the grid (`grid-auto-flow`). */\n flow = input<'row' | 'column'>();\n\n // Computed templates\n protected templateColumns = computed(() => this.makeTrackList(this.columns()));\n protected templateRows = computed(() => this.makeTrackList(this.rows()));\n private makeTrackList = (input?: string | number) =>\n typeof input === 'number' ? 'auto '.repeat(input).trim() : input;\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 { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'vater-spacer, [vater-spacer]',\n encapsulation: ViewEncapsulation.None,\n styles: `\n vater-spacer,\n [vater-spacer] {\n flex: 1;\n align-self: stretch;\n }\n `,\n template: '<ng-content />',\n})\nexport class VaterSpacerComponent {}\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 { Component, ViewEncapsulation } from '@angular/core';\nimport { VaterFlexboxDirective } from './vater-flexbox.directive';\nimport { VaterLayoutDirective } from './vater-layout.directive';\nimport { VaterUtilityDirective } from './vater-utility.directive';\n\n@Component({\n selector: 'vater-stack, [vater-stack]',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: VaterFlexboxDirective,\n inputs: ['direction', 'wrap'],\n },\n {\n directive: VaterLayoutDirective,\n inputs: ['gap', 'offset', 'justify', 'align'],\n },\n {\n directive: VaterUtilityDirective,\n inputs: ['center', 'fill', 'inset', 'scrollable', 'sticky'],\n },\n ],\n styles: `\n vater-stack,\n [vater-stack] {\n display: flex;\n line-height: normal;\n }\n `,\n template: `<ng-content />`,\n})\nexport class VaterStackComponent {}\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 { VaterFlexComponent } from './vater-flex.component';\nimport { VaterGridAreaComponent } from './vater-grid-area.component';\nimport { VaterGridComponent } from './vater-grid.component';\nimport { VaterSpacerComponent } from './vater-spacer.component';\nimport { VaterStackComponent } from './vater-stack.component';\nimport { VaterUtilityDirective } from './vater-utility.directive';\n\n// Must be exposed for ng-packagr to work\nexport { VaterLayoutDirective } from './vater-layout.directive';\nexport { VaterFlexboxDirective } from './vater-flexbox.directive';\n\nexport {\n VaterFlexComponent,\n VaterGridAreaComponent,\n VaterGridComponent,\n VaterSpacerComponent,\n VaterStackComponent,\n VaterUtilityDirective,\n};\n\nexport const VATER = [\n VaterFlexComponent,\n VaterGridAreaComponent,\n VaterGridComponent,\n VaterSpacerComponent,\n VaterStackComponent,\n VaterUtilityDirective,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAIA;MAgBa,qBAAqB,CAAA;;IAEhC,MAAM,GAAG,KAAK,CAAC,KAAK,8EAAI,SAAS,EAAE,gBAAgB,EAAA,CA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AAM,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC;AAC9C,yBAAA;AACD,wBAAA;AACE,4BAAA,SAAS,EAAE,qBAAqB;4BAChC,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,CAAC;AAC5D,yBAAA;AACF,qBAAA,EAAA,QAAA,EAQS,CAAA,cAAA,CAAgB,EAAA,MAAA,EAAA,CAAA,8DAAA,CAAA,EAAA;;;AC/C5B;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAqBO,MAAM,KAAK,GAAG;IACnB,kBAAkB;IAClB,sBAAsB;IACtB,kBAAkB;IAClB,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;;;AC5CvB;;AAEG;;;;"}
@@ -47,25 +47,25 @@ class WattYearField {
47
47
  if (date.isValid())
48
48
  return date.toDate();
49
49
  return undefined;
50
- }, ...(ngDevMode ? [{ debugName: "selected" }] : []));
50
+ }, ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
51
51
  // This is used to reset the MatCalendar component by destroying and then recreating it
52
52
  // whenever the picker is opened. There is no methods to do it programatically.
53
- isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
53
+ isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
54
54
  /** Set the label text for `watt-field`. */
55
- label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
55
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
56
56
  /** The minimum selectable date. */
57
- min = input(...(ngDevMode ? [undefined, { debugName: "min" }] : []));
57
+ min = input(...(ngDevMode ? [undefined, { debugName: "min" }] : /* istanbul ignore next */ []));
58
58
  /** The maximum selectable date. */
59
- max = input(...(ngDevMode ? [undefined, { debugName: "max" }] : []));
59
+ max = input(...(ngDevMode ? [undefined, { debugName: "max" }] : /* istanbul ignore next */ []));
60
60
  /** Enable buttons to step through years. */
61
- canStepThroughYears = input(false, { ...(ngDevMode ? { debugName: "canStepThroughYears" } : {}), transform: booleanAttribute });
61
+ canStepThroughYears = input(false, { ...(ngDevMode ? { debugName: "canStepThroughYears" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
62
62
  /** Emits when the selected year has changed. */
63
63
  yearChange = outputFromObservable(this.valueChanges);
64
64
  /** Emits when the field loses focus. */
65
65
  // eslint-disable-next-line @angular-eslint/no-output-native
66
66
  blur = output();
67
- isPrevYearButtonDisabled = computed(() => this.isPrevYearBeforeOrEqualToMinDate(), ...(ngDevMode ? [{ debugName: "isPrevYearButtonDisabled" }] : []));
68
- isNextYearButtonDisabled = computed(() => this.isNextYearAfterOrEqualToMaxDate(), ...(ngDevMode ? [{ debugName: "isNextYearButtonDisabled" }] : []));
67
+ isPrevYearButtonDisabled = computed(() => this.isPrevYearBeforeOrEqualToMinDate(), ...(ngDevMode ? [{ debugName: "isPrevYearButtonDisabled" }] : /* istanbul ignore next */ []));
68
+ isNextYearButtonDisabled = computed(() => this.isNextYearAfterOrEqualToMaxDate(), ...(ngDevMode ? [{ debugName: "isNextYearButtonDisabled" }] : /* istanbul ignore next */ []));
69
69
  handleFocus = (picker) => {
70
70
  this.isOpen.set(true);
71
71
  picker.showPopover();
@@ -137,8 +137,8 @@ class WattYearField {
137
137
  const isSame = selectedDate.isSame(max, 'year');
138
138
  return isSame || isAfter;
139
139
  }
140
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: WattYearField, deps: [], target: i0.ɵɵFactoryTarget.Component });
141
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.6", type: WattYearField, isStandalone: true, selector: "watt-year-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 }, canStepThroughYears: { classPropertyName: "canStepThroughYears", publicName: "canStepThroughYears", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { yearChange: "yearChange", blur: "blur" }, providers: [
140
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: WattYearField, deps: [], target: i0.ɵɵFactoryTarget.Component });
141
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: WattYearField, isStandalone: true, selector: "watt-year-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 }, canStepThroughYears: { classPropertyName: "canStepThroughYears", publicName: "canStepThroughYears", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { yearChange: "yearChange", blur: "blur" }, providers: [
142
142
  {
143
143
  provide: NG_VALUE_ACCESSOR,
144
144
  useExisting: forwardRef(() => WattYearField),
@@ -196,7 +196,7 @@ class WattYearField {
196
196
  }
197
197
  `, isInline: true, styles: ["watt-year-field{display:block;width:100%}watt-year-field:has(.watt-year-field__step-through){display:flex;flex-align:flex-start}watt-year-field:has(.watt-year-field__step-through) .watt-year-field__step-through{display:flex}watt-year-field:has(.watt-year-field__has-label) .watt-year-field__step-through{margin-top:28px}.watt-year-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 });
198
198
  }
199
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: WattYearField, decorators: [{
199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: WattYearField, decorators: [{
200
200
  type: Component,
201
201
  args: [{ selector: 'watt-year-field', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
202
202
  {