@energinet/watt 4.3.1 → 4.3.3

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, NgZone, Injectable, ElementRef, EventEmitter, Output, Directive } from '@angular/core';
2
+ import { inject, NgZone, Injectable, ElementRef, output, Directive } from '@angular/core';
3
3
  import { Subject, filter, finalize } from 'rxjs';
4
4
 
5
5
  //#region License
@@ -92,15 +92,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
92
92
  * `import { WattResizeObserverDirective } from '@energinet/watt/resize-observer';`
93
93
  */
94
94
  class WattResizeObserverDirective {
95
- el = inject(ElementRef);
95
+ elementRef = inject(ElementRef);
96
96
  resizeObserverService = inject(WattResizeObserverService);
97
97
  // The `resize` event only natively exists on `window`.
98
98
  // eslint-disable-next-line @angular-eslint/no-output-native
99
- resize = new EventEmitter();
99
+ resize = output();
100
100
  subscription;
101
101
  constructor() {
102
102
  this.subscription = this.resizeObserverService
103
- .observe(this.el.nativeElement)
103
+ .observe(this.elementRef.nativeElement)
104
104
  .subscribe((entry) => this.resize.emit(entry));
105
105
  }
106
106
  ngOnDestroy() {
@@ -112,9 +112,7 @@ class WattResizeObserverDirective {
112
112
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: WattResizeObserverDirective, decorators: [{
113
113
  type: Directive,
114
114
  args: [{ selector: '[wattResizeObserver]' }]
115
- }], ctorParameters: () => [], propDecorators: { resize: [{
116
- type: Output
117
- }] } });
115
+ }], ctorParameters: () => [], propDecorators: { resize: [{ type: i0.Output, args: ["resize"] }] } });
118
116
 
119
117
  //#region License
120
118
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"energinet-watt-utils-resize-observer.mjs","sources":["../../../libs/watt/package/utils/resize-observer/watt-resize-observer.service.ts","../../../libs/watt/package/utils/resize-observer/watt-resize-observer.directive.ts","../../../libs/watt/package/utils/resize-observer/index.ts","../../../libs/watt/package/utils/resize-observer/energinet-watt-utils-resize-observer.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 { Injectable, NgZone, inject } from '@angular/core';\nimport { filter, finalize, Subject } from 'rxjs';\n\n/**\n * Service for observing changes to an elements size. Typically used by\n * the `WattResizeObserverDirective`, but can also be imported directly.\n *\n * Usage:\n * `import { WattResizeObserverService } from '@energinet/watt/resize-observer';`\n */\n@Injectable({ providedIn: 'root' })\nexport class WattResizeObserverService {\n private readonly ngZone = inject(NgZone);\n\n private resizeObserver?: ResizeObserver;\n private entrySubject = new Subject<ResizeObserverEntry>();\n\n constructor() {\n if (window.ResizeObserver) {\n this.resizeObserver = new ResizeObserver((entries) => {\n // Resize callback is running outside of Angular zone\n this.ngZone.run(() => {\n /**\n * Ensure that the function is executed only once per frame, and avoid:\n * \"Error: ResizeObserver loop limit exceeded\"\n */\n requestAnimationFrame(() => {\n for (const entry of entries) {\n this.entrySubject.next(entry);\n }\n });\n });\n });\n }\n }\n\n /**\n * Add an element to be observed, returning an observable that\n * emits whenever that element changes size. Element will\n * automatically be unobserved when the observable is unsubscribed.\n */\n observe(element: Element) {\n this.resizeObserver?.observe(element);\n return this.entrySubject.asObservable().pipe(\n filter((entry) => entry.target === element),\n finalize(() => this.resizeObserver?.unobserve(element))\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\nimport { Directive, ElementRef, EventEmitter, OnDestroy, Output, inject } from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { WattResizeObserverService } from './watt-resize-observer.service';\n\n/**\n * A directive for subscribing to changes to the size of an element.\n * The `resize` event emits initially and then everytime the element is resized.\n *\n * Usage:\n * `import { WattResizeObserverDirective } from '@energinet/watt/resize-observer';`\n */\n@Directive({ selector: '[wattResizeObserver]' })\nexport class WattResizeObserverDirective implements OnDestroy {\n private el = inject(ElementRef);\n private resizeObserverService = inject(WattResizeObserverService);\n // The `resize` event only natively exists on `window`.\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() resize: EventEmitter<ResizeObserverEntry> = new EventEmitter();\n\n private subscription: Subscription;\n\n constructor() {\n this.subscription = this.resizeObserverService\n .observe(this.el.nativeElement)\n .subscribe((entry) => this.resize.emit(entry));\n }\n\n public ngOnDestroy(): void {\n this.subscription.unsubscribe();\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 { WattResizeObserverDirective } from './watt-resize-observer.directive';\nexport { WattResizeObserverService } from './watt-resize-observer.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nex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A,EAAA,yBAAyB,cADZ,MAAM,EAAA,CAAA;;4FACnB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;AC5BlC;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAKA;;;;;;AAMG;MAEU,2BAA2B,CAAA;AAC9B,IAAA,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;AACvB,IAAA,qBAAqB,GAAG,MAAM,CAAC,yBAAyB,CAAC;;;AAGvD,IAAA,MAAM,GAAsC,IAAI,YAAY,EAAE;AAEhE,IAAA,YAAY;AAEpB,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;AACtB,aAAA,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa;AAC7B,aAAA,SAAS,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClD;IAEO,WAAW,GAAA;AAChB,QAAA,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE;IACjC;wGAjBW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBADvC,SAAS;mBAAC,EAAE,QAAQ,EAAE,sBAAsB,EAAE;;sBAM5C;;;ACnCH;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
1
+ {"version":3,"file":"energinet-watt-utils-resize-observer.mjs","sources":["../../../libs/watt/package/utils/resize-observer/watt-resize-observer.service.ts","../../../libs/watt/package/utils/resize-observer/watt-resize-observer.directive.ts","../../../libs/watt/package/utils/resize-observer/index.ts","../../../libs/watt/package/utils/resize-observer/energinet-watt-utils-resize-observer.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 { Injectable, NgZone, inject } from '@angular/core';\nimport { filter, finalize, Subject } from 'rxjs';\n\n/**\n * Service for observing changes to an elements size. Typically used by\n * the `WattResizeObserverDirective`, but can also be imported directly.\n *\n * Usage:\n * `import { WattResizeObserverService } from '@energinet/watt/resize-observer';`\n */\n@Injectable({ providedIn: 'root' })\nexport class WattResizeObserverService {\n private readonly ngZone = inject(NgZone);\n\n private resizeObserver?: ResizeObserver;\n private entrySubject = new Subject<ResizeObserverEntry>();\n\n constructor() {\n if (window.ResizeObserver) {\n this.resizeObserver = new ResizeObserver((entries) => {\n // Resize callback is running outside of Angular zone\n this.ngZone.run(() => {\n /**\n * Ensure that the function is executed only once per frame, and avoid:\n * \"Error: ResizeObserver loop limit exceeded\"\n */\n requestAnimationFrame(() => {\n for (const entry of entries) {\n this.entrySubject.next(entry);\n }\n });\n });\n });\n }\n }\n\n /**\n * Add an element to be observed, returning an observable that\n * emits whenever that element changes size. Element will\n * automatically be unobserved when the observable is unsubscribed.\n */\n observe(element: Element) {\n this.resizeObserver?.observe(element);\n return this.entrySubject.asObservable().pipe(\n filter((entry) => entry.target === element),\n finalize(() => this.resizeObserver?.unobserve(element))\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\nimport { Directive, ElementRef, OnDestroy, inject, output } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { WattResizeObserverService } from './watt-resize-observer.service';\n\n/**\n * A directive for subscribing to changes to the size of an element.\n * The `resize` event emits initially and then everytime the element is resized.\n *\n * Usage:\n * `import { WattResizeObserverDirective } from '@energinet/watt/resize-observer';`\n */\n@Directive({ selector: '[wattResizeObserver]' })\nexport class WattResizeObserverDirective implements OnDestroy {\n private elementRef = inject(ElementRef);\n private resizeObserverService = inject(WattResizeObserverService);\n\n // The `resize` event only natively exists on `window`.\n // eslint-disable-next-line @angular-eslint/no-output-native\n resize = output<ResizeObserverEntry>();\n\n private subscription: Subscription;\n\n constructor() {\n this.subscription = this.resizeObserverService\n .observe(this.elementRef.nativeElement)\n .subscribe((entry) => this.resize.emit(entry));\n }\n\n public ngOnDestroy(): void {\n this.subscription.unsubscribe();\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 { WattResizeObserverDirective } from './watt-resize-observer.directive';\nexport { WattResizeObserverService } from './watt-resize-observer.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;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1
  import * as _angular_core from '@angular/core';
2
- import { ChangeDetectorRef, OnInit, AfterViewInit, OnDestroy, DestroyRef, ElementRef, Signal } from '@angular/core';
2
+ import { ChangeDetectorRef, OnInit, AfterViewInit, DestroyRef, ElementRef, Signal } from '@angular/core';
3
3
  import { MaskitoOptions, Maskito } from '@maskito/core';
4
4
  import { ControlValueAccessor, NgControl, FormControl } from '@angular/forms';
5
5
  import { BooleanInput } from '@angular/cdk/coercion';
6
- import { Subject } from 'rxjs';
7
6
  import { WattDateRange } from '@energinet/watt/core/date';
8
7
 
9
8
  declare class WattPlaceholderMaskComponent {
@@ -41,7 +40,7 @@ declare class WattPlaceholderMaskComponent {
41
40
 
42
41
  type WattPickerValue = string | WattDateRange | null | undefined;
43
42
 
44
- declare abstract class WattPickerBase implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor {
43
+ declare abstract class WattPickerBase implements OnInit, AfterViewInit, ControlValueAccessor {
45
44
  protected destroyRef: DestroyRef;
46
45
  protected changeDetectionRef: ChangeDetectorRef;
47
46
  protected ngControl: NgControl | null;
@@ -52,27 +51,20 @@ declare abstract class WattPickerBase implements OnInit, AfterViewInit, OnDestro
52
51
  static nextId: number;
53
52
  id: string;
54
53
  initialValue: WattPickerValue;
55
- focused: boolean;
54
+ focused: _angular_core.WritableSignal<boolean>;
56
55
  controlType: string;
57
- stateChanges: Subject<void>;
58
56
  userAriaDescribedBy: _angular_core.InputSignal<string | undefined>;
59
- get placeholder(): string;
60
- set placeholder(value: string);
61
- protected abstract _placeholder: string;
57
+ placeholder: _angular_core.WritableSignal<string>;
62
58
  get value(): WattDateRange | null;
63
- set value(value: WattPickerValue);
64
- set range(range: boolean);
65
- get range(): boolean;
66
- private _range;
67
- get required(): boolean;
68
- set required(value: BooleanInput);
69
- private _required;
70
- get disabled(): boolean;
71
- set disabled(value: BooleanInput);
72
- private _disabled;
59
+ protected setValue(value: WattPickerValue): void;
60
+ range: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
61
+ required: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
62
+ disabledInput: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
63
+ protected disabledState: _angular_core.WritableSignal<boolean>;
64
+ disabled: Signal<boolean>;
73
65
  get empty(): boolean;
74
66
  get errorState(): boolean;
75
- get shouldLabelFloat(): boolean;
67
+ shouldLabelFloat: Signal<boolean>;
76
68
  /**
77
69
  *
78
70
  * @ignore
@@ -81,7 +73,6 @@ declare abstract class WattPickerBase implements OnInit, AfterViewInit, OnDestro
81
73
  constructor(id: string);
82
74
  ngOnInit(): void;
83
75
  ngAfterViewInit(): void;
84
- ngOnDestroy(): void;
85
76
  protected abstract initRangeInput(): void;
86
77
  protected abstract initSingleInput(): void;
87
78
  protected abstract setSingleValue(value: Exclude<WattPickerValue, WattDateRange>, input: HTMLInputElement): void;
@@ -97,7 +88,7 @@ declare abstract class WattPickerBase implements OnInit, AfterViewInit, OnDestro
97
88
  protected changeParentValue: (value: string | WattDateRange) => void;
98
89
  protected markParentControlAsTouched: () => void;
99
90
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<WattPickerBase, never>;
100
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WattPickerBase, never, never, { "userAriaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; "range": { "alias": "range"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
91
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WattPickerBase, never, never, { "userAriaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "range": { "alias": "range"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
101
92
  }
102
93
 
103
94
  export { WattPickerBase, WattPlaceholderMaskComponent };
@@ -19,7 +19,6 @@ declare class WattDatepickerComponent extends WattPickerBase implements Validato
19
19
  protected changeDetectionRef: ChangeDetectorRef;
20
20
  protected ngControl: NgControl | null;
21
21
  private localeService;
22
- private locale;
23
22
  max: _angular_core.InputSignal<Date | undefined>;
24
23
  min: _angular_core.InputSignal<Date | undefined>;
25
24
  label: _angular_core.InputSignal<string>;
@@ -36,12 +35,11 @@ declare class WattDatepickerComponent extends WattPickerBase implements Validato
36
35
  input: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
37
36
  endInput: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
38
37
  startInput: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
39
- protected _placeholder: string;
40
38
  rangeSeparator: string;
41
- rangePlaceholder: string;
39
+ rangePlaceholder: _angular_core.WritableSignal<string>;
42
40
  inputMask: _angular_core.Signal<Required<_maskito_core.MaskitoOptions>>;
43
41
  rangeInputMask: _angular_core.Signal<Required<_maskito_core.MaskitoOptions>>;
44
- getPlaceholderByLocale(locale: WattSupportedLocales): string;
42
+ getPlaceholderByLocale: (locale: WattSupportedLocales) => "dd-mm-åååå" | "dd-mm-yyyy";
45
43
  getRangePlaceholder(): string;
46
44
  isPrevDayButtonDisabled: _angular_core.WritableSignal<boolean>;
47
45
  isNextDayButtonDisabled: _angular_core.WritableSignal<boolean>;
@@ -32,16 +32,15 @@ declare class WattTimepickerComponent extends WattPickerBase {
32
32
  * the slider overlay (since the DOM hierarchy cannot be used).
33
33
  * @ignore
34
34
  */
35
- get ariaOwns(): string | undefined;
35
+ ariaOwns: _angular_core.Signal<string | undefined>;
36
36
  hoursMinutesPlaceholder: string;
37
37
  rangeSeparator: string;
38
38
  rangePlaceholder: string;
39
- protected _placeholder: string;
40
39
  /**
41
40
  * Whether the slider is open.
42
41
  * @ignore
43
42
  */
44
- sliderOpen: boolean;
43
+ sliderOpen: _angular_core.WritableSignal<boolean>;
45
44
  sliderSteps: number[];
46
45
  sliderChange$: Subject<WattSliderValue>;
47
46
  get sliderValue(): WattSliderValue;
@@ -1,24 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnDestroy, EventEmitter } from '@angular/core';
2
+ import { OnDestroy } from '@angular/core';
3
3
  import * as rxjs from 'rxjs';
4
4
 
5
- /**
6
- * @license
7
- * Copyright 2020 Energinet DataHub A/S
8
- *
9
- * Licensed under the Apache License, Version 2.0 (the "License2");
10
- * you may not use this file except in compliance with the License.
11
- * You may obtain a copy of the License at
12
- *
13
- * http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software
16
- * distributed under the License is distributed on an "AS IS" BASIS,
17
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- * See the License for the specific language governing permissions and
19
- * limitations under the License.
20
- */
21
-
22
5
  /**
23
6
  * A directive for subscribing to changes to the size of an element.
24
7
  * The `resize` event emits initially and then everytime the element is resized.
@@ -27,9 +10,9 @@ import * as rxjs from 'rxjs';
27
10
  * `import { WattResizeObserverDirective } from '@energinet/watt/resize-observer';`
28
11
  */
29
12
  declare class WattResizeObserverDirective implements OnDestroy {
30
- private el;
13
+ private elementRef;
31
14
  private resizeObserverService;
32
- resize: EventEmitter<ResizeObserverEntry>;
15
+ resize: i0.OutputEmitterRef<ResizeObserverEntry>;
33
16
  private subscription;
34
17
  constructor();
35
18
  ngOnDestroy(): void;