@energinet/watt 1.1.1 → 1.2.0

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.
@@ -0,0 +1,104 @@
1
+ import * as i2 from '@angular/forms';
2
+ import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
3
+ import * as i0 from '@angular/core';
4
+ import { inject, ElementRef, model, signal, input, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
5
+ import * as i1 from '@angular/material/slide-toggle';
6
+ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
7
+
8
+ //#region License
9
+ /**
10
+ * @license
11
+ * Copyright 2020 Energinet DataHub A/S
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License2");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * http://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ */
25
+ //#endregion
26
+ /**
27
+ * Slide toggle
28
+ */
29
+ class WattSlideToggleComponent {
30
+ element = inject(ElementRef);
31
+ checked = model(false);
32
+ isDisabled = signal(false);
33
+ required = input(false);
34
+ writeValue(checked) {
35
+ this.checked.set(checked);
36
+ }
37
+ registerOnChange(fn) {
38
+ this.checked.subscribe(fn);
39
+ }
40
+ registerOnTouched(fn) {
41
+ this.element.nativeElement.addEventListener('focusout', fn);
42
+ }
43
+ setDisabledState(isDisabled) {
44
+ this.isDisabled.set(isDisabled);
45
+ }
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattSlideToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
47
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.1", type: WattSlideToggleComponent, isStandalone: true, selector: "watt-slide-toggle", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange" }, providers: [
48
+ {
49
+ provide: NG_VALUE_ACCESSOR,
50
+ useExisting: forwardRef(() => WattSlideToggleComponent),
51
+ multi: true,
52
+ },
53
+ ], ngImport: i0, template: `<mat-slide-toggle
54
+ [disabled]="isDisabled()"
55
+ [required]="required()"
56
+ [(ngModel)]="checked"
57
+ [disableRipple]="true"
58
+ [hideIcon]="true"
59
+ ><ng-content
60
+ /></mat-slide-toggle>`, isInline: true, styles: ["watt-slide-toggle .mat-mdc-slide-toggle{--mat-switch-track-outline-color: var(--watt-on-light-low-emphasis);--mat-switch-selected-track-outline-color: var(--watt-on-light-low-emphasis);--mat-switch-unselected-handle-horizontal-margin: 0 8px;--mat-switch-unselected-pressed-handle-horizontal-margin: 0 8px;--mat-switch-selected-handle-horizontal-margin: 0 -8px;--mat-switch-selected-pressed-handle-horizontal-margin: 0 -8px;--mdc-switch-unselected-hover-handle-color: var(--watt-on-light-low-emphasis);--mdc-switch-unselected-pressed-handle-color: var(--watt-on-light-low-emphasis);--mdc-switch-unselected-handle-color: var(--watt-on-light-low-emphasis);--mdc-switch-unselected-focus-handle-color: var(--watt-on-light-low-emphasis);--mat-switch-selected-track-outline-width: 0px}watt-slide-toggle .mat-mdc-slide-toggle:focus-within{--mat-switch-track-outline-color: var(--watt-color-primary)}watt-slide-toggle .mat-mdc-slide-toggle * label{font-size:1rem;line-height:1.5rem;font-weight:400;text-transform:none;letter-spacing:0;padding-left:8px}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__track{--mdc-switch-track-shape: 100px;--mdc-switch-track-height: 32px;--mdc-switch-unselected-track-color: white;--mdc-switch-unselected-hover-track-color: white;--mdc-switch-unselected-focus-track-color: white;--mdc-switch-unselected-pressed-track-color: white;--mdc-switch-selected-track-color: var(--watt-color-primary);--mdc-switch-selected-pressed-track-color: var(--watt-color-primary);--mdc-switch-selected-hover-track-color: var(--watt-color-primary);--mdc-switch-selected-focus-track-color: var(--watt-color-primary)}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch{--mdc-switch-track-width: 52px;--mdc-switch-handle-elevation-shadow: none}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__handle{--mdc-switch-handle-surface-color: var(--watt-on-light-low-emphasis);--mdc-switch-handle-width: 16px;--mdc-switch-handle-height: 16px;--mdc-switch-handle-shape: 24px;--mat-switch-unselected-handle-size: 16px;--mat-switch-pressed-handle-size: 16px;--mat-switch-selected-handle-size: 16px;--mat-switch-selected-pressed-handle-size: 16px}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__handle,watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch--selected{--mdc-switch-handle-surface-color: white}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__handle,watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch--unselected:enabled:hover:not(:focus):not(:active){--mdc-switch-unselected-hover-handle-color: var(--watt-on-light-low-emphasis)}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__handle-track{--mdc-switch-handle-width: 16px}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__ripple{display:none}\n"], dependencies: [{ kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i1.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
61
+ }
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: WattSlideToggleComponent, decorators: [{
63
+ type: Component,
64
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [MatSlideToggleModule, FormsModule], providers: [
65
+ {
66
+ provide: NG_VALUE_ACCESSOR,
67
+ useExisting: forwardRef(() => WattSlideToggleComponent),
68
+ multi: true,
69
+ },
70
+ ], selector: 'watt-slide-toggle', template: `<mat-slide-toggle
71
+ [disabled]="isDisabled()"
72
+ [required]="required()"
73
+ [(ngModel)]="checked"
74
+ [disableRipple]="true"
75
+ [hideIcon]="true"
76
+ ><ng-content
77
+ /></mat-slide-toggle>`, styles: ["watt-slide-toggle .mat-mdc-slide-toggle{--mat-switch-track-outline-color: var(--watt-on-light-low-emphasis);--mat-switch-selected-track-outline-color: var(--watt-on-light-low-emphasis);--mat-switch-unselected-handle-horizontal-margin: 0 8px;--mat-switch-unselected-pressed-handle-horizontal-margin: 0 8px;--mat-switch-selected-handle-horizontal-margin: 0 -8px;--mat-switch-selected-pressed-handle-horizontal-margin: 0 -8px;--mdc-switch-unselected-hover-handle-color: var(--watt-on-light-low-emphasis);--mdc-switch-unselected-pressed-handle-color: var(--watt-on-light-low-emphasis);--mdc-switch-unselected-handle-color: var(--watt-on-light-low-emphasis);--mdc-switch-unselected-focus-handle-color: var(--watt-on-light-low-emphasis);--mat-switch-selected-track-outline-width: 0px}watt-slide-toggle .mat-mdc-slide-toggle:focus-within{--mat-switch-track-outline-color: var(--watt-color-primary)}watt-slide-toggle .mat-mdc-slide-toggle * label{font-size:1rem;line-height:1.5rem;font-weight:400;text-transform:none;letter-spacing:0;padding-left:8px}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__track{--mdc-switch-track-shape: 100px;--mdc-switch-track-height: 32px;--mdc-switch-unselected-track-color: white;--mdc-switch-unselected-hover-track-color: white;--mdc-switch-unselected-focus-track-color: white;--mdc-switch-unselected-pressed-track-color: white;--mdc-switch-selected-track-color: var(--watt-color-primary);--mdc-switch-selected-pressed-track-color: var(--watt-color-primary);--mdc-switch-selected-hover-track-color: var(--watt-color-primary);--mdc-switch-selected-focus-track-color: var(--watt-color-primary)}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch{--mdc-switch-track-width: 52px;--mdc-switch-handle-elevation-shadow: none}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__handle{--mdc-switch-handle-surface-color: var(--watt-on-light-low-emphasis);--mdc-switch-handle-width: 16px;--mdc-switch-handle-height: 16px;--mdc-switch-handle-shape: 24px;--mat-switch-unselected-handle-size: 16px;--mat-switch-pressed-handle-size: 16px;--mat-switch-selected-handle-size: 16px;--mat-switch-selected-pressed-handle-size: 16px}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__handle,watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch--selected{--mdc-switch-handle-surface-color: white}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__handle,watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch--unselected:enabled:hover:not(:focus):not(:active){--mdc-switch-unselected-hover-handle-color: var(--watt-on-light-low-emphasis)}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__handle-track{--mdc-switch-handle-width: 16px}watt-slide-toggle .mat-mdc-slide-toggle .mdc-switch__ripple{display:none}\n"] }]
78
+ }] });
79
+
80
+ //#region License
81
+ /**
82
+ * @license
83
+ * Copyright 2020 Energinet DataHub A/S
84
+ *
85
+ * Licensed under the Apache License, Version 2.0 (the "License2");
86
+ * you may not use this file except in compliance with the License.
87
+ * You may obtain a copy of the License at
88
+ *
89
+ * http://www.apache.org/licenses/LICENSE-2.0
90
+ *
91
+ * Unless required by applicable law or agreed to in writing, software
92
+ * distributed under the License is distributed on an "AS IS" BASIS,
93
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
94
+ * See the License for the specific language governing permissions and
95
+ * limitations under the License.
96
+ */
97
+ //#endregion
98
+
99
+ /**
100
+ * Generated bundle index. Do not edit.
101
+ */
102
+
103
+ export { WattSlideToggleComponent };
104
+ //# sourceMappingURL=energinet-watt-slide-toggle.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"energinet-watt-slide-toggle.mjs","sources":["../../../libs/watt/package/slide-toggle/watt-slide-toggle.component.ts","../../../libs/watt/package/slide-toggle/index.ts","../../../libs/watt/package/slide-toggle/energinet-watt-slide-toggle.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 { ControlValueAccessor, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';\nimport {\n inject,\n input,\n model,\n signal,\n Component,\n forwardRef,\n ElementRef,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\n\n/**\n * Slide toggle\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [MatSlideToggleModule, FormsModule],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WattSlideToggleComponent),\n multi: true,\n },\n ],\n selector: 'watt-slide-toggle',\n styleUrls: ['./watt-slide-toggle.component.scss'],\n template: `<mat-slide-toggle\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [(ngModel)]=\"checked\"\n [disableRipple]=\"true\"\n [hideIcon]=\"true\"\n ><ng-content\n /></mat-slide-toggle>`,\n})\nexport class WattSlideToggleComponent implements ControlValueAccessor {\n private element = inject(ElementRef);\n\n checked = model(false);\n isDisabled = signal(false);\n required = input(false);\n\n writeValue(checked: boolean): void {\n this.checked.set(checked);\n }\n\n registerOnChange(fn: (value: boolean) => void): void {\n this.checked.subscribe(fn);\n }\n\n registerOnTouched(fn: (value: boolean) => void): void {\n this.element.nativeElement.addEventListener('focusout', fn);\n }\n\n setDisabledState?(isDisabled: boolean): void {\n this.isDisabled.set(isDisabled);\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 { WattSlideToggleComponent } from './watt-slide-toggle.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;AACA;;;;;;;;;;;;;;;AAeG;AACH;AAgBA;;AAEG;MAuBU,wBAAwB,CAAA;AAC3B,IAAA,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC;AAEpC,IAAA,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC;AACtB,IAAA,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC;AAC1B,IAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC;AAEvB,IAAA,UAAU,CAAC,OAAgB,EAAA;AAC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;;AAOY,uBAAA,CAAA,EAAA,MAAA,EAAA,CAAA,kqFAAA,CAAA,EAAA;;;ACxDxB;AACA;;;;;;;;;;;;;;;AAeG;AACH;;ACjBA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@energinet/watt",
4
- "version": "1.1.1",
4
+ "version": "1.2.0",
5
5
  "license": "Apache-2.0",
6
6
  "exports": {
7
7
  ".": {
@@ -119,6 +119,10 @@
119
119
  "types": "./shell/index.d.ts",
120
120
  "default": "./fesm2022/energinet-watt-shell.mjs"
121
121
  },
122
+ "./slide-toggle": {
123
+ "types": "./slide-toggle/index.d.ts",
124
+ "default": "./fesm2022/energinet-watt-slide-toggle.mjs"
125
+ },
122
126
  "./slider": {
123
127
  "types": "./slider/index.d.ts",
124
128
  "default": "./fesm2022/energinet-watt-slider.mjs"
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Energinet DataHub A/S
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License2");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export { WattSlideToggleComponent } from './watt-slide-toggle.component';
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Energinet DataHub A/S
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License2");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { ControlValueAccessor } from '@angular/forms';
18
+ import * as i0 from "@angular/core";
19
+ /**
20
+ * Slide toggle
21
+ */
22
+ export declare class WattSlideToggleComponent implements ControlValueAccessor {
23
+ private element;
24
+ checked: import("@angular/core").ModelSignal<boolean>;
25
+ isDisabled: import("@angular/core").WritableSignal<boolean>;
26
+ required: import("@angular/core").InputSignal<boolean>;
27
+ writeValue(checked: boolean): void;
28
+ registerOnChange(fn: (value: boolean) => void): void;
29
+ registerOnTouched(fn: (value: boolean) => void): void;
30
+ setDisabledState?(isDisabled: boolean): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<WattSlideToggleComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<WattSlideToggleComponent, "watt-slide-toggle", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, never>;
33
+ }