@molecule/app-ui-angular 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -12
- package/dist/components/checkbox.component.d.ts +0 -5
- package/dist/components/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox.component.js +16 -20
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/controlled-checked.directive.d.ts +45 -0
- package/dist/components/controlled-checked.directive.d.ts.map +1 -0
- package/dist/components/controlled-checked.directive.js +74 -0
- package/dist/components/controlled-checked.directive.js.map +1 -0
- package/dist/components/radio-group.component.d.ts.map +1 -1
- package/dist/components/radio-group.component.js +19 -17
- package/dist/components/radio-group.component.js.map +1 -1
- package/dist/components/switch.component.d.ts.map +1 -1
- package/dist/components/switch.component.js +17 -16
- package/dist/components/switch.component.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-14T14:59:19.917Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-ui-angular
|
|
@@ -3104,6 +3104,7 @@ there at view init.
|
|
|
3104
3104
|
@Component({
|
|
3105
3105
|
selector: 'div[mol-checkbox]',
|
|
3106
3106
|
standalone: true,
|
|
3107
|
+
imports: [MolControlledChecked],
|
|
3107
3108
|
inputs: [
|
|
3108
3109
|
'label',
|
|
3109
3110
|
'checked',
|
|
@@ -3126,7 +3127,8 @@ there at view init.
|
|
|
3126
3127
|
type="checkbox"
|
|
3127
3128
|
[attr.id]="checkboxId()"
|
|
3128
3129
|
[attr.name]="name"
|
|
3129
|
-
[
|
|
3130
|
+
[molChecked]="checked"
|
|
3131
|
+
[molDefaultChecked]="defaultChecked"
|
|
3130
3132
|
[disabled]="disabled"
|
|
3131
3133
|
[attr.data-state]="checked ? 'checked' : 'unchecked'"
|
|
3132
3134
|
[attr.aria-invalid]="error || fieldContext()?.invalid ? 'true' : 'false'"
|
|
@@ -3172,14 +3174,6 @@ export class Checkbox implements AfterViewChecked {
|
|
|
3172
3174
|
/** Uncontrolled initial checked state (renders as the checked attribute). */
|
|
3173
3175
|
defaultChecked?: boolean
|
|
3174
3176
|
|
|
3175
|
-
/**
|
|
3176
|
-
* The controlled-or-default checked state (React: `checked ?? defaultChecked`).
|
|
3177
|
-
* @returns True when the checked attribute renders.
|
|
3178
|
-
*/
|
|
3179
|
-
isChecked(): boolean {
|
|
3180
|
-
return (this.checked ?? this.defaultChecked) === true
|
|
3181
|
-
}
|
|
3182
|
-
|
|
3183
3177
|
/** The genuine native `change` event. */
|
|
3184
3178
|
@Output() readonly change = new EventEmitter<Event>()
|
|
3185
3179
|
|
|
@@ -9158,6 +9152,7 @@ exactly like React's per-option handler.
|
|
|
9158
9152
|
@Component({
|
|
9159
9153
|
selector: 'div[mol-radio-group]',
|
|
9160
9154
|
standalone: true,
|
|
9155
|
+
imports: [MolControlledChecked],
|
|
9161
9156
|
inputs: [
|
|
9162
9157
|
'options',
|
|
9163
9158
|
'value',
|
|
@@ -9194,7 +9189,7 @@ exactly like React's per-option handler.
|
|
|
9194
9189
|
type="radio"
|
|
9195
9190
|
[attr.name]="groupName()"
|
|
9196
9191
|
[attr.value]="option.value"
|
|
9197
|
-
[
|
|
9192
|
+
[molChecked]="value === option.value"
|
|
9198
9193
|
[disabled]="disabled || option.disabled"
|
|
9199
9194
|
(change)="select($event)"
|
|
9200
9195
|
[attr.data-state]="value === option.value ? 'checked' : 'unchecked'"
|
|
@@ -10933,6 +10928,7 @@ forwarded as the `change` output.
|
|
|
10933
10928
|
@Component({
|
|
10934
10929
|
selector: 'mol-switch',
|
|
10935
10930
|
standalone: true,
|
|
10931
|
+
imports: [MolControlledChecked],
|
|
10936
10932
|
inputs: ['label', 'checked', 'size', 'color', 'className', 'style', 'testId', 'disabled'],
|
|
10937
10933
|
host: {
|
|
10938
10934
|
'data-parity-unwrap': '',
|
|
@@ -10940,7 +10936,7 @@ forwarded as the `change` output.
|
|
|
10940
10936
|
},
|
|
10941
10937
|
template: `<input
|
|
10942
10938
|
type="checkbox"
|
|
10943
|
-
[
|
|
10939
|
+
[molChecked]="!!checked"
|
|
10944
10940
|
[disabled]="disabled"
|
|
10945
10941
|
aria-hidden="true"
|
|
10946
10942
|
tabindex="-1"
|
|
@@ -40,11 +40,6 @@ export declare class Checkbox implements AfterViewChecked {
|
|
|
40
40
|
id?: string;
|
|
41
41
|
/** Uncontrolled initial checked state (renders as the checked attribute). */
|
|
42
42
|
defaultChecked?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* The controlled-or-default checked state (React: `checked ?? defaultChecked`).
|
|
45
|
-
* @returns True when the checked attribute renders.
|
|
46
|
-
*/
|
|
47
|
-
isChecked(): boolean;
|
|
48
43
|
/** The genuine native `change` event. */
|
|
49
44
|
readonly change: EventEmitter<Event>;
|
|
50
45
|
/** The native input (React's `...rest` spread target). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.component.d.ts","sourceRoot":"","sources":["../../src/components/checkbox.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,gBAAgB,EAErB,UAAU,EACV,YAAY,EAKb,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;;
|
|
1
|
+
{"version":3,"file":"checkbox.component.d.ts","sourceRoot":"","sources":["../../src/components/checkbox.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,K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AAC,IAAI,CAAyD;IAC9E,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,iBAAiB,CAAQ;IAEjC;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,UAAU,IAAI,MAAM,GAAG,SAAS;IAIhC;;;;OAIG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,YAAY,IAAI,gBAAgB,GAAG,IAAI;IAIvC;;;;OAIG;IACH,iBAAiB,IAAI,MAAM,GAAG,IAAI;IAQlC;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAM/B;;;;;;;;OAQG;IACH,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAMhC,OAAO,CAAC,WAAW,CAAQ;IAE3B;;;OAGG;IACH,kBAAkB,IAAI,IAAI;yCA3If,QAAQ;2CAAR,QAAQ;CA+JpB"}
|
|
@@ -9,15 +9,16 @@ import { fieldContext } from '../utilities/form-field-context.js';
|
|
|
9
9
|
import { moveRestAttributes } from '../utilities/rest-attrs.js';
|
|
10
10
|
import { styleText } from '../utilities/style.js';
|
|
11
11
|
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
12
|
+
import { MolControlledChecked } from './controlled-checked.directive.js';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
const _c0 = ["input"];
|
|
14
15
|
const _c1 = ["labelSlot"];
|
|
15
16
|
const _c2 = [[["", "slot", "label"]]];
|
|
16
17
|
const _c3 = ["[slot=label]"];
|
|
17
18
|
function Checkbox_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
-
i0.ɵɵ
|
|
19
|
+
i0.ɵɵelementStart(0, "p");
|
|
19
20
|
i0.ɵɵtext(1);
|
|
20
|
-
i0.ɵɵ
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
21
22
|
} if (rf & 2) {
|
|
22
23
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
23
24
|
i0.ɵɵclassMap(ctx_r0.cm().cn(ctx_r0.cm().formError, ctx_r0.cm().sp("mt", 1)));
|
|
@@ -58,13 +59,6 @@ export class Checkbox {
|
|
|
58
59
|
id;
|
|
59
60
|
/** Uncontrolled initial checked state (renders as the checked attribute). */
|
|
60
61
|
defaultChecked;
|
|
61
|
-
/**
|
|
62
|
-
* The controlled-or-default checked state (React: `checked ?? defaultChecked`).
|
|
63
|
-
* @returns True when the checked attribute renders.
|
|
64
|
-
*/
|
|
65
|
-
isChecked() {
|
|
66
|
-
return (this.checked ?? this.defaultChecked) === true;
|
|
67
|
-
}
|
|
68
62
|
/** The genuine native `change` event. */
|
|
69
63
|
change = new EventEmitter();
|
|
70
64
|
/** The native input (React's `...rest` spread target). */
|
|
@@ -190,35 +184,36 @@ export class Checkbox {
|
|
|
190
184
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelSlot = _t.first);
|
|
191
185
|
} }, hostVars: 2, hostBindings: function Checkbox_HostBindings(rf, ctx) { if (rf & 2) {
|
|
192
186
|
i0.ɵɵclassMap(ctx.cm().formFieldWrapper);
|
|
193
|
-
} }, inputs: { label: "label", checked: "checked", indeterminate: "indeterminate", size: "size", error: "error", className: "className", style: "style", testId: "testId", disabled: "disabled", name: "name", id: "id", defaultChecked: "defaultChecked" }, outputs: { change: "change" }, ngContentSelectors: _c3, decls: 8, vars:
|
|
187
|
+
} }, inputs: { label: "label", checked: "checked", indeterminate: "indeterminate", size: "size", error: "error", className: "className", style: "style", testId: "testId", disabled: "disabled", name: "name", id: "id", defaultChecked: "defaultChecked" }, outputs: { change: "change" }, ngContentSelectors: _c3, decls: 8, vars: 18, consts: [["input", ""], ["labelSlot", ""], ["type", "checkbox", 3, "click", "change", "molChecked", "molDefaultChecked", "disabled"], [3, "class"]], template: function Checkbox_Template(rf, ctx) { if (rf & 1) {
|
|
194
188
|
i0.ɵɵprojectionDef(_c2);
|
|
195
|
-
i0.ɵɵ
|
|
196
|
-
i0.ɵɵ
|
|
197
|
-
i0.ɵɵ
|
|
198
|
-
i0.ɵɵ
|
|
189
|
+
i0.ɵɵelementStart(0, "label")(1, "input", 2, 0);
|
|
190
|
+
i0.ɵɵlistener("click", function Checkbox_Template_input_click_1_listener($event) { return ctx.handleClick($event); })("change", function Checkbox_Template_input_change_1_listener($event) { return ctx.handleChange($event); });
|
|
191
|
+
i0.ɵɵelementEnd();
|
|
192
|
+
i0.ɵɵelementStart(3, "span", null, 1);
|
|
199
193
|
i0.ɵɵtext(5);
|
|
200
194
|
i0.ɵɵprojection(6);
|
|
201
|
-
i0.ɵɵ
|
|
195
|
+
i0.ɵɵelementEnd()();
|
|
202
196
|
i0.ɵɵconditionalCreate(7, Checkbox_Conditional_7_Template, 2, 4, "p", 3);
|
|
203
197
|
} if (rf & 2) {
|
|
204
198
|
i0.ɵɵclassMap(ctx.cm().controlLabel);
|
|
205
199
|
i0.ɵɵadvance();
|
|
206
200
|
i0.ɵɵclassMap(ctx.classes());
|
|
207
|
-
i0.ɵɵ
|
|
208
|
-
i0.ɵɵattribute("id", ctx.checkboxId())("name", ctx.name)("
|
|
201
|
+
i0.ɵɵproperty("molChecked", ctx.checked)("molDefaultChecked", ctx.defaultChecked)("disabled", ctx.disabled);
|
|
202
|
+
i0.ɵɵattribute("id", ctx.checkboxId())("name", ctx.name)("data-state", ctx.checked ? "checked" : "unchecked")("aria-invalid", ctx.error || ctx.fieldContext()?.invalid ? "true" : "false")("aria-describedby", ctx.mergedDescribedBy())("style", ctx.hostStyle(), i0.ɵɵsanitizeStyle)("data-testid", ctx.testId);
|
|
209
203
|
i0.ɵɵadvance(2);
|
|
210
204
|
i0.ɵɵclassMap(ctx.cm().cn(ctx.cm().controlText, ctx.disabled && ctx.cm().controlDisabled));
|
|
211
205
|
i0.ɵɵadvance(2);
|
|
212
206
|
i0.ɵɵtextInterpolate(ctx.label);
|
|
213
207
|
i0.ɵɵadvance(2);
|
|
214
208
|
i0.ɵɵconditional(ctx.error ? 7 : -1);
|
|
215
|
-
} }, encapsulation: 2 });
|
|
209
|
+
} }, dependencies: [MolControlledChecked], encapsulation: 2 });
|
|
216
210
|
}
|
|
217
211
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Checkbox, [{
|
|
218
212
|
type: Component,
|
|
219
213
|
args: [{
|
|
220
214
|
selector: 'div[mol-checkbox]',
|
|
221
215
|
standalone: true,
|
|
216
|
+
imports: [MolControlledChecked],
|
|
222
217
|
inputs: [
|
|
223
218
|
'label',
|
|
224
219
|
'checked',
|
|
@@ -241,7 +236,8 @@ export class Checkbox {
|
|
|
241
236
|
type="checkbox"
|
|
242
237
|
[attr.id]="checkboxId()"
|
|
243
238
|
[attr.name]="name"
|
|
244
|
-
[
|
|
239
|
+
[molChecked]="checked"
|
|
240
|
+
[molDefaultChecked]="defaultChecked"
|
|
245
241
|
[disabled]="disabled"
|
|
246
242
|
[attr.data-state]="checked ? 'checked' : 'unchecked'"
|
|
247
243
|
[attr.aria-invalid]="error || fieldContext()?.invalid ? 'true' : 'false'"
|
|
@@ -270,5 +266,5 @@ export class Checkbox {
|
|
|
270
266
|
type: ViewChild,
|
|
271
267
|
args: ['labelSlot']
|
|
272
268
|
}] }); })();
|
|
273
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Checkbox, { className: "Checkbox", filePath: "components/checkbox.component.ts", lineNumber:
|
|
269
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Checkbox, { className: "Checkbox", filePath: "components/checkbox.component.ts", lineNumber: 83 }); })();
|
|
274
270
|
//# sourceMappingURL=checkbox.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.component.js","sourceRoot":"","sources":["../../src/components/checkbox.component.ts"],"names":[],"mappings":"AAAA;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AAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,oBAAoB,CAAC;gBAC/B,MAAM,EAAE;oBACN,OAAO;oBACP,SAAS;oBACT,eAAe;oBACf,MAAM;oBACN,OAAO;oBACP,WAAW;oBACX,OAAO;oBACP,QAAQ;oBACR,UAAU;oBACV,MAAM;oBACN,IAAI;oBACJ,gBAAgB;iBACjB;gBACD,IAAI,EAAE;oBACJ,SAAS,EAAE,uBAAuB;iBACnC;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;MAwBN;aACL;;kBA4BE,MAAM;;kBAGN,SAAS;mBAAC,OAAO;;kBAEjB,SAAS;mBAAC,WAAW;;kFAhCX,QAAQ"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Writes a checkbox's or radio's `checked` state the way React writes it.
|
|
3
|
+
*
|
|
4
|
+
* React treats creation and update differently: when it creates the input it
|
|
5
|
+
* sets the reflected `checked` attribute (from `checked ?? defaultChecked`);
|
|
6
|
+
* on every later render it sets only the property. A switch created unchecked
|
|
7
|
+
* and turned on therefore has no `checked` attribute, and one created checked
|
|
8
|
+
* and turned off keeps it. An `[attr.checked]` binding rewrites the attribute
|
|
9
|
+
* on every change, so the UI components bind `checked` through this directive
|
|
10
|
+
* instead.
|
|
11
|
+
*
|
|
12
|
+
* @module
|
|
13
|
+
*/
|
|
14
|
+
import { type OnChanges, type SimpleChanges } from '@angular/core';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
/**
|
|
17
|
+
* `<input type="checkbox" [molChecked]="checked" [molDefaultChecked]="defaultChecked">`:
|
|
18
|
+
* a controlled `molChecked` sets the property on every change and the
|
|
19
|
+
* attribute only at creation; with `molChecked` undefined the input is
|
|
20
|
+
* uncontrolled and its attribute follows `molDefaultChecked`, which the
|
|
21
|
+
* user's own toggles never touch.
|
|
22
|
+
*/
|
|
23
|
+
export declare class MolControlledChecked implements OnChanges {
|
|
24
|
+
/** The controlled value, or `undefined` for an uncontrolled input. */
|
|
25
|
+
molChecked?: boolean;
|
|
26
|
+
/** The uncontrolled initial value (React's `defaultChecked`). */
|
|
27
|
+
molDefaultChecked?: boolean;
|
|
28
|
+
private readonly element;
|
|
29
|
+
private created;
|
|
30
|
+
/**
|
|
31
|
+
* Applies the first values as React's creation does, and later ones as its updates do.
|
|
32
|
+
*
|
|
33
|
+
* @param changes - The inputs that changed.
|
|
34
|
+
*/
|
|
35
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
36
|
+
/**
|
|
37
|
+
* Sets or removes the reflected `checked` attribute.
|
|
38
|
+
*
|
|
39
|
+
* @param on - Whether the attribute is present.
|
|
40
|
+
*/
|
|
41
|
+
private reflect;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MolControlledChecked, never>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MolControlledChecked, "input[molChecked], input[molDefaultChecked]", never, { "molChecked": { "alias": "molChecked"; "required": false; }; "molDefaultChecked": { "alias": "molDefaultChecked"; "required": false; }; }, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=controlled-checked.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controlled-checked.directive.d.ts","sourceRoot":"","sources":["../../src/components/controlled-checked.directive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAiC,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAA;;AAEjG;;;;;;GAMG;AACH,qBAKa,oBAAqB,YAAW,SAAS;IACpD,sEAAsE;IACtE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAE3B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmD;IAC3E,OAAO,CAAC,OAAO,CAAQ;IAEvB;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAczC;;;;OAIG;IACH,OAAO,CAAC,OAAO;yCAjCJ,oBAAoB;2CAApB,oBAAoB;CAsChC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Writes a checkbox's or radio's `checked` state the way React writes it.
|
|
3
|
+
*
|
|
4
|
+
* React treats creation and update differently: when it creates the input it
|
|
5
|
+
* sets the reflected `checked` attribute (from `checked ?? defaultChecked`);
|
|
6
|
+
* on every later render it sets only the property. A switch created unchecked
|
|
7
|
+
* and turned on therefore has no `checked` attribute, and one created checked
|
|
8
|
+
* and turned off keeps it. An `[attr.checked]` binding rewrites the attribute
|
|
9
|
+
* on every change, so the UI components bind `checked` through this directive
|
|
10
|
+
* instead.
|
|
11
|
+
*
|
|
12
|
+
* @module
|
|
13
|
+
*/
|
|
14
|
+
import { Directive, ElementRef, inject } from '@angular/core';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
/**
|
|
17
|
+
* `<input type="checkbox" [molChecked]="checked" [molDefaultChecked]="defaultChecked">`:
|
|
18
|
+
* a controlled `molChecked` sets the property on every change and the
|
|
19
|
+
* attribute only at creation; with `molChecked` undefined the input is
|
|
20
|
+
* uncontrolled and its attribute follows `molDefaultChecked`, which the
|
|
21
|
+
* user's own toggles never touch.
|
|
22
|
+
*/
|
|
23
|
+
export class MolControlledChecked {
|
|
24
|
+
/** The controlled value, or `undefined` for an uncontrolled input. */
|
|
25
|
+
molChecked;
|
|
26
|
+
/** The uncontrolled initial value (React's `defaultChecked`). */
|
|
27
|
+
molDefaultChecked;
|
|
28
|
+
element = inject(ElementRef);
|
|
29
|
+
created = false;
|
|
30
|
+
/**
|
|
31
|
+
* Applies the first values as React's creation does, and later ones as its updates do.
|
|
32
|
+
*
|
|
33
|
+
* @param changes - The inputs that changed.
|
|
34
|
+
*/
|
|
35
|
+
ngOnChanges(changes) {
|
|
36
|
+
const input = this.element.nativeElement;
|
|
37
|
+
const controlled = this.molChecked !== undefined;
|
|
38
|
+
if (!this.created) {
|
|
39
|
+
this.created = true;
|
|
40
|
+
this.reflect((this.molChecked ?? this.molDefaultChecked) === true);
|
|
41
|
+
if (controlled)
|
|
42
|
+
input.checked = !!this.molChecked;
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (controlled)
|
|
46
|
+
input.checked = !!this.molChecked;
|
|
47
|
+
// React keeps an uncontrolled input's attribute on its `defaultChecked`.
|
|
48
|
+
else if (changes['molDefaultChecked'])
|
|
49
|
+
this.reflect(this.molDefaultChecked === true);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Sets or removes the reflected `checked` attribute.
|
|
53
|
+
*
|
|
54
|
+
* @param on - Whether the attribute is present.
|
|
55
|
+
*/
|
|
56
|
+
reflect(on) {
|
|
57
|
+
const input = this.element.nativeElement;
|
|
58
|
+
if (on)
|
|
59
|
+
input.setAttribute('checked', '');
|
|
60
|
+
else
|
|
61
|
+
input.removeAttribute('checked');
|
|
62
|
+
}
|
|
63
|
+
static ɵfac = function MolControlledChecked_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MolControlledChecked)(); };
|
|
64
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: MolControlledChecked, selectors: [["input", "molChecked", ""], ["input", "molDefaultChecked", ""]], inputs: { molChecked: "molChecked", molDefaultChecked: "molDefaultChecked" }, features: [i0.ɵɵNgOnChangesFeature] });
|
|
65
|
+
}
|
|
66
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MolControlledChecked, [{
|
|
67
|
+
type: Directive,
|
|
68
|
+
args: [{
|
|
69
|
+
selector: 'input[molChecked], input[molDefaultChecked]',
|
|
70
|
+
standalone: true,
|
|
71
|
+
inputs: ['molChecked', 'molDefaultChecked'],
|
|
72
|
+
}]
|
|
73
|
+
}], null, null); })();
|
|
74
|
+
//# sourceMappingURL=controlled-checked.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controlled-checked.directive.js","sourceRoot":"","sources":["../../src/components/controlled-checked.directive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAsC,MAAM,eAAe,CAAA;;AAEjG;;;;;;GAMG;AAMH,MAAM,OAAO,oBAAoB;IAC/B,sEAAsE;IACtE,UAAU,CAAU;IACpB,iEAAiE;IACjE,iBAAiB,CAAU;IAEV,OAAO,GAAG,MAAM,CAA+B,UAAU,CAAC,CAAA;IACnE,OAAO,GAAG,KAAK,CAAA;IAEvB;;;;OAIG;IACH,WAAW,CAAC,OAAsB;QAChC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAA;QACxC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,KAAK,SAAS,CAAA;QAChD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;YACnB,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC,CAAA;YAClE,IAAI,UAAU;gBAAE,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,CAAA;YACjD,OAAM;QACR,CAAC;QACD,IAAI,UAAU;YAAE,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,CAAA;QACjD,yEAAyE;aACpE,IAAI,OAAO,CAAC,mBAAmB,CAAC;YAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,KAAK,IAAI,CAAC,CAAA;IACtF,CAAC;IAED;;;;OAIG;IACK,OAAO,CAAC,EAAW;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAA;QACxC,IAAI,EAAE;YAAE,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,EAAE,CAAC,CAAA;;YACpC,KAAK,CAAC,eAAe,CAAC,SAAS,CAAC,CAAA;IACvC,CAAC;8GArCU,oBAAoB;6DAApB,oBAAoB;;iFAApB,oBAAoB;cALhC,SAAS;eAAC;gBACT,QAAQ,EAAE,6CAA6C;gBACvD,UAAU,EAAE,IAAI;gBAChB,MAAM,EAAE,CAAC,YAAY,EAAE,mBAAmB,CAAC;aAC5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.component.d.ts","sourceRoot":"","sources":["../../src/components/radio-group.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAyB,YAAY,EAAkB,MAAM,eAAe,CAAA;AAGnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;
|
|
1
|
+
{"version":3,"file":"radio-group.component.d.ts","sourceRoot":"","sources":["../../src/components/radio-group.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAyB,YAAY,EAAkB,MAAM,eAAe,CAAA;AAGnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAMlD,wBAAwB;AACxB,MAAM,WAAW,WAAW;IAC1B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,iCAAiC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;GAMG;AACH,qBAsDa,UAAU;IACrB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,WAAW,EAAE,CAAA;IACvB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yCAAyC;IACzC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qEAAqE;IACrE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wBAAwB;IACxB,SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,CAAA;IACrC,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,SAAS,IAAI,MAAM;IAInB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,UAAU,IAAI,MAAM;IAMpB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAS1B,yCAAyC;IAC/B,QAAQ,CAAC,MAAM,uBAA6B;IAEtD;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;IAExC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;yCA9F/B,UAAU;2CAAV,UAAU;CA+FtB"}
|
|
@@ -7,15 +7,16 @@ import { Component, ElementRef, EventEmitter, inject, Output } from '@angular/co
|
|
|
7
7
|
import { useTranslation } from '@molecule/app-angular';
|
|
8
8
|
import { getClassMap } from '@molecule/app-ui';
|
|
9
9
|
import { styleText } from '../utilities/style.js';
|
|
10
|
+
import { MolControlledChecked } from './controlled-checked.directive.js';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
const _c0 = () => [];
|
|
12
13
|
const _c1 = () => ({ required: false });
|
|
13
14
|
const _c2 = a0 => ({ error: a0 });
|
|
14
15
|
const _forTrack0 = ($index, $item) => $item.value;
|
|
15
16
|
function RadioGroup_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
16
|
-
i0.ɵɵ
|
|
17
|
+
i0.ɵɵelementStart(0, "div");
|
|
17
18
|
i0.ɵɵtext(1);
|
|
18
|
-
i0.ɵɵ
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
19
20
|
} if (rf & 2) {
|
|
20
21
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
21
22
|
i0.ɵɵclassMap(ctx_r0.cm().cn(ctx_r0.cm().label(i0.ɵɵpureFunction0(3, _c1)), ctx_r0.cm().sp("mb", 2)));
|
|
@@ -24,29 +25,29 @@ function RadioGroup_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
24
25
|
} }
|
|
25
26
|
function RadioGroup_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
26
27
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
27
|
-
i0.ɵɵ
|
|
28
|
-
i0.ɵɵ
|
|
29
|
-
i0.ɵɵ
|
|
30
|
-
i0.ɵɵ
|
|
28
|
+
i0.ɵɵelementStart(0, "label")(1, "input", 1);
|
|
29
|
+
i0.ɵɵlistener("change", function RadioGroup_For_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.select($event)); });
|
|
30
|
+
i0.ɵɵelementEnd();
|
|
31
|
+
i0.ɵɵelementStart(2, "span");
|
|
31
32
|
i0.ɵɵtext(3);
|
|
32
|
-
i0.ɵɵ
|
|
33
|
+
i0.ɵɵelementEnd()();
|
|
33
34
|
} if (rf & 2) {
|
|
34
35
|
const option_r3 = ctx.$implicit;
|
|
35
36
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
36
37
|
i0.ɵɵclassMap(ctx_r0.cm().cn(ctx_r0.cm().controlLabel, (ctx_r0.disabled || option_r3.disabled) && ctx_r0.cm().controlDisabled));
|
|
37
38
|
i0.ɵɵadvance();
|
|
38
39
|
i0.ɵɵclassMap(ctx_r0.cm().cn(ctx_r0.cm().radio(i0.ɵɵpureFunction1(12, _c2, !!ctx_r0.error)), ctx_r0.cm().cursorPointer));
|
|
39
|
-
i0.ɵɵ
|
|
40
|
-
i0.ɵɵattribute("name", ctx_r0.groupName())("value", option_r3.value)("
|
|
40
|
+
i0.ɵɵproperty("molChecked", ctx_r0.value === option_r3.value)("disabled", ctx_r0.disabled || option_r3.disabled);
|
|
41
|
+
i0.ɵɵattribute("name", ctx_r0.groupName())("value", option_r3.value)("data-state", ctx_r0.value === option_r3.value ? "checked" : "unchecked");
|
|
41
42
|
i0.ɵɵadvance();
|
|
42
43
|
i0.ɵɵclassMap(ctx_r0.cm().controlText);
|
|
43
44
|
i0.ɵɵadvance();
|
|
44
45
|
i0.ɵɵtextInterpolate(option_r3.label);
|
|
45
46
|
} }
|
|
46
47
|
function RadioGroup_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
47
|
-
i0.ɵɵ
|
|
48
|
+
i0.ɵɵelementStart(0, "p");
|
|
48
49
|
i0.ɵɵtext(1);
|
|
49
|
-
i0.ɵɵ
|
|
50
|
+
i0.ɵɵelementEnd();
|
|
50
51
|
} if (rf & 2) {
|
|
51
52
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
52
53
|
i0.ɵɵclassMap(ctx_r0.cm().cn(ctx_r0.cm().formError, ctx_r0.cm().sp("mt", 1)));
|
|
@@ -150,11 +151,11 @@ export class RadioGroup {
|
|
|
150
151
|
i0.ɵɵattribute("data-testid", ctx.testId)("role", "radiogroup")("aria-label", ctx.groupLabel())("aria-invalid", ctx.error ? "true" : null)("aria-describedby", ctx.error ? ctx.errorId() : null);
|
|
151
152
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
152
153
|
i0.ɵɵclassMap(ctx.className);
|
|
153
|
-
} }, inputs: { options: "options", value: "value", size: "size", label: "label", name: "name", direction: "direction", error: "error", className: "className", style: "style", testId: "testId", disabled: "disabled" }, outputs: { change: "change" }, decls: 5, vars: 5, consts: [[3, "class"], ["type", "radio", 3, "change", "disabled"]], template: function RadioGroup_Template(rf, ctx) { if (rf & 1) {
|
|
154
|
+
} }, inputs: { options: "options", value: "value", size: "size", label: "label", name: "name", direction: "direction", error: "error", className: "className", style: "style", testId: "testId", disabled: "disabled" }, outputs: { change: "change" }, decls: 5, vars: 5, consts: [[3, "class"], ["type", "radio", 3, "change", "molChecked", "disabled"]], template: function RadioGroup_Template(rf, ctx) { if (rf & 1) {
|
|
154
155
|
i0.ɵɵconditionalCreate(0, RadioGroup_Conditional_0_Template, 2, 4, "div", 0);
|
|
155
|
-
i0.ɵɵ
|
|
156
|
+
i0.ɵɵelementStart(1, "div");
|
|
156
157
|
i0.ɵɵrepeaterCreate(2, RadioGroup_For_3_Template, 4, 14, "label", 0, _forTrack0);
|
|
157
|
-
i0.ɵɵ
|
|
158
|
+
i0.ɵɵelementEnd();
|
|
158
159
|
i0.ɵɵconditionalCreate(4, RadioGroup_Conditional_4_Template, 2, 4, "p", 0);
|
|
159
160
|
} if (rf & 2) {
|
|
160
161
|
i0.ɵɵconditional(ctx.label ? 0 : -1);
|
|
@@ -164,13 +165,14 @@ export class RadioGroup {
|
|
|
164
165
|
i0.ɵɵrepeater(ctx.options ?? i0.ɵɵpureFunction0(4, _c0));
|
|
165
166
|
i0.ɵɵadvance(2);
|
|
166
167
|
i0.ɵɵconditional(ctx.error ? 4 : -1);
|
|
167
|
-
} }, encapsulation: 2 });
|
|
168
|
+
} }, dependencies: [MolControlledChecked], encapsulation: 2 });
|
|
168
169
|
}
|
|
169
170
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RadioGroup, [{
|
|
170
171
|
type: Component,
|
|
171
172
|
args: [{
|
|
172
173
|
selector: 'div[mol-radio-group]',
|
|
173
174
|
standalone: true,
|
|
175
|
+
imports: [MolControlledChecked],
|
|
174
176
|
inputs: [
|
|
175
177
|
'options',
|
|
176
178
|
'value',
|
|
@@ -207,7 +209,7 @@ export class RadioGroup {
|
|
|
207
209
|
type="radio"
|
|
208
210
|
[attr.name]="groupName()"
|
|
209
211
|
[attr.value]="option.value"
|
|
210
|
-
[
|
|
212
|
+
[molChecked]="value === option.value"
|
|
211
213
|
[disabled]="disabled || option.disabled"
|
|
212
214
|
(change)="select($event)"
|
|
213
215
|
[attr.data-state]="value === option.value ? 'checked' : 'unchecked'"
|
|
@@ -224,5 +226,5 @@ export class RadioGroup {
|
|
|
224
226
|
}], null, { change: [{
|
|
225
227
|
type: Output
|
|
226
228
|
}] }); })();
|
|
227
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RadioGroup, { className: "RadioGroup", filePath: "components/radio-group.component.ts", lineNumber:
|
|
229
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RadioGroup, { className: "RadioGroup", filePath: "components/radio-group.component.ts", lineNumber: 87 }); })();
|
|
228
230
|
//# sourceMappingURL=radio-group.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.component.js","sourceRoot":"","sources":["../../src/components/radio-group.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAEnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;;;;;;;
|
|
1
|
+
{"version":3,"file":"radio-group.component.js","sourceRoot":"","sources":["../../src/components/radio-group.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAEnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE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,IAAI;gBAChB,OAAO,EAAE,CAAC,oBAAoB,CAAC;gBAC/B,MAAM,EAAE;oBACN,SAAS;oBACT,OAAO;oBACP,MAAM;oBACN,OAAO;oBACP,MAAM;oBACN,WAAW;oBACX,OAAO;oBACP,WAAW;oBACX,OAAO;oBACP,QAAQ;oBACR,UAAU;iBACX;gBACD,IAAI,EAAE;oBACJ,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,aAAa;oBACxB,oBAAoB,EAAE,QAAQ;oBAC9B,aAAa,EAAE,cAAc;oBAC7B,mBAAmB,EAAE,cAAc;oBACnC,qBAAqB,EAAE,uBAAuB;oBAC9C,yBAAyB,EAAE,0BAA0B;iBACtD;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;MA0BN;aACL;;kBAsFE,MAAM;;kFArFI,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.component.d.ts","sourceRoot":"","sources":["../../src/components/switch.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,gBAAgB,EAErB,UAAU,EACV,YAAY,EAKb,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;
|
|
1
|
+
{"version":3,"file":"switch.component.d.ts","sourceRoot":"","sources":["../../src/components/switch.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,gBAAgB,EAErB,UAAU,EACV,YAAY,EAKb,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAQtE;;;;;;;;GAQG;AACH,qBAuCa,MAAO,YAAW,gBAAgB;IAC7C,8DAA8D;IAC9D,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mBA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js';
|
|
9
9
|
import { styleText } from '../utilities/style.js';
|
|
10
10
|
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
11
|
+
import { MolControlledChecked } from './controlled-checked.directive.js';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
const _c0 = ["hiddenInput"];
|
|
13
14
|
const _c1 = ["trigger"];
|
|
@@ -131,28 +132,27 @@ export class Switch {
|
|
|
131
132
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.hiddenInput = _t.first);
|
|
132
133
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.trigger = _t.first);
|
|
133
134
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelSlot = _t.first);
|
|
134
|
-
} }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { label: "label", checked: "checked", size: "size", color: "color", className: "className", style: "style", testId: "testId", disabled: "disabled" }, outputs: { change: "change" }, ngContentSelectors: _c4, decls: 10, vars: 21, consts: [["hiddenInput", ""], ["trigger", ""], ["labelSlot", ""], ["type", "checkbox", "aria-hidden", "true", "tabindex", "-1", 3, "change", "disabled"], ["type", "button", "role", "switch", 3, "click", "disabled"]], template: function Switch_Template(rf, ctx) { if (rf & 1) {
|
|
135
|
+
} }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { label: "label", checked: "checked", size: "size", color: "color", className: "className", style: "style", testId: "testId", disabled: "disabled" }, outputs: { change: "change" }, ngContentSelectors: _c4, decls: 10, vars: 21, consts: [["hiddenInput", ""], ["trigger", ""], ["labelSlot", ""], ["type", "checkbox", "aria-hidden", "true", "tabindex", "-1", 3, "change", "molChecked", "disabled"], ["type", "button", "role", "switch", 3, "click", "disabled"]], template: function Switch_Template(rf, ctx) { if (rf & 1) {
|
|
135
136
|
i0.ɵɵprojectionDef(_c3);
|
|
136
|
-
i0.ɵɵ
|
|
137
|
-
i0.ɵɵ
|
|
138
|
-
i0.ɵɵ
|
|
139
|
-
i0.ɵɵ
|
|
140
|
-
i0.ɵɵ
|
|
141
|
-
i0.ɵɵ
|
|
142
|
-
i0.ɵɵ
|
|
143
|
-
i0.ɵɵ
|
|
137
|
+
i0.ɵɵelementStart(0, "input", 3, 0);
|
|
138
|
+
i0.ɵɵlistener("change", function Switch_Template_input_change_0_listener($event) { return ctx.handleChange($event); });
|
|
139
|
+
i0.ɵɵelementEnd();
|
|
140
|
+
i0.ɵɵelementStart(2, "label")(3, "button", 4, 1);
|
|
141
|
+
i0.ɵɵlistener("click", function Switch_Template_button_click_3_listener($event) { return ctx.handleClick($event); });
|
|
142
|
+
i0.ɵɵelement(5, "span");
|
|
143
|
+
i0.ɵɵelementEnd();
|
|
144
|
+
i0.ɵɵelementStart(6, "span", null, 2);
|
|
144
145
|
i0.ɵɵtext(8);
|
|
145
146
|
i0.ɵɵprojection(9);
|
|
146
|
-
i0.ɵɵ
|
|
147
|
+
i0.ɵɵelementEnd()();
|
|
147
148
|
} if (rf & 2) {
|
|
148
149
|
i0.ɵɵclassMap(ctx.cm().srOnly);
|
|
149
|
-
i0.ɵɵ
|
|
150
|
-
i0.ɵɵattribute("checked", ctx.checked ? "" : null);
|
|
150
|
+
i0.ɵɵproperty("molChecked", !!ctx.checked)("disabled", ctx.disabled);
|
|
151
151
|
i0.ɵɵadvance(2);
|
|
152
152
|
i0.ɵɵclassMap(ctx.labelClasses());
|
|
153
153
|
i0.ɵɵadvance();
|
|
154
154
|
i0.ɵɵclassMap(ctx.classes());
|
|
155
|
-
i0.ɵɵ
|
|
155
|
+
i0.ɵɵproperty("disabled", ctx.disabled);
|
|
156
156
|
i0.ɵɵattribute("aria-checked", ctx.checked ? "true" : "false")("data-state", ctx.state())("style", ctx.hostStyle(), i0.ɵɵsanitizeStyle)("data-testid", ctx.testId);
|
|
157
157
|
i0.ɵɵadvance(2);
|
|
158
158
|
i0.ɵɵclassMap(ctx.cm().switchThumb(i0.ɵɵpureFunction1(19, _c5, ctx.size ?? "md")));
|
|
@@ -161,13 +161,14 @@ export class Switch {
|
|
|
161
161
|
i0.ɵɵclassMap(ctx.cm().controlText);
|
|
162
162
|
i0.ɵɵadvance(2);
|
|
163
163
|
i0.ɵɵtextInterpolate(ctx.label);
|
|
164
|
-
} }, encapsulation: 2 });
|
|
164
|
+
} }, dependencies: [MolControlledChecked], encapsulation: 2 });
|
|
165
165
|
}
|
|
166
166
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Switch, [{
|
|
167
167
|
type: Component,
|
|
168
168
|
args: [{
|
|
169
169
|
selector: 'mol-switch',
|
|
170
170
|
standalone: true,
|
|
171
|
+
imports: [MolControlledChecked],
|
|
171
172
|
inputs: ['label', 'checked', 'size', 'color', 'className', 'style', 'testId', 'disabled'],
|
|
172
173
|
host: {
|
|
173
174
|
'data-parity-unwrap': '',
|
|
@@ -175,7 +176,7 @@ export class Switch {
|
|
|
175
176
|
},
|
|
176
177
|
template: `<input
|
|
177
178
|
type="checkbox"
|
|
178
|
-
[
|
|
179
|
+
[molChecked]="!!checked"
|
|
179
180
|
[disabled]="disabled"
|
|
180
181
|
aria-hidden="true"
|
|
181
182
|
tabindex="-1"
|
|
@@ -215,5 +216,5 @@ export class Switch {
|
|
|
215
216
|
type: ViewChild,
|
|
216
217
|
args: ['labelSlot']
|
|
217
218
|
}] }); })();
|
|
218
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Switch, { className: "Switch", filePath: "components/switch.component.ts", lineNumber:
|
|
219
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Switch, { className: "Switch", filePath: "components/switch.component.ts", lineNumber: 74 }); })();
|
|
219
220
|
//# sourceMappingURL=switch.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.component.js","sourceRoot":"","sources":["../../src/components/switch.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EACN,MAAM,EACN,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;;;;;;;
|
|
1
|
+
{"version":3,"file":"switch.component.js","sourceRoot":"","sources":["../../src/components/switch.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EACN,MAAM,EACN,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;;;;;;;;AAExE;;;;;;;;GAQG;AAwCH,MAAM,OAAO,MAAM;IACjB,8DAA8D;IAC9D,KAAK,CAAU;IACf,gCAAgC;IAChC,OAAO,CAAU;IACjB,mBAAmB;IACnB,IAAI,CAAO;IACX,oBAAoB;IACpB,KAAK,CAAe;IACpB,oDAAoD;IACpD,SAAS,CAAS;IAClB,6CAA6C;IAC7C,KAAK,CAA0B;IAC/B,oCAAoC;IACpC,MAAM,CAAS;IACf,2BAA2B;IAC3B,QAAQ,CAAU;IAElB,gEAAgE;IAC7C,MAAM,GAAG,IAAI,YAAY,EAAS,CAAA;IAErD,kCAAkC;IACR,WAAW,CAA+B;IACp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,oBAAoB,CAAC;gBAC/B,MAAM,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC;gBACzF,IAAI,EAAE;oBACJ,oBAAoB,EAAE,EAAE;oBACxB,KAAK,EAAE,mBAAmB;iBAC3B;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA4BC;aACZ;;kBAoBE,MAAM;;kBAGN,SAAS;mBAAC,aAAa;;kBAEvB,SAAS;mBAAC,SAAS;;kBAEnB,SAAS;mBAAC,WAAW;;kFA1BX,MAAM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-ui-angular",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Angular UI components for molecule.dev",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"@angular/compiler-cli": "22.2.3",
|
|
41
41
|
"@angular/core": "22.2.3",
|
|
42
42
|
"@angular/platform-browser": "22.2.3",
|
|
43
|
-
"@molecule/app-angular": "3.
|
|
43
|
+
"@molecule/app-angular": "3.6.0",
|
|
44
44
|
"@molecule/app-framework-conformance": "0.0.0",
|
|
45
|
-
"@molecule/app-i18n": "1.2.
|
|
45
|
+
"@molecule/app-i18n": "1.2.1",
|
|
46
46
|
"@molecule/app-icons": "1.0.4",
|
|
47
47
|
"@types/node": "26.6.5",
|
|
48
48
|
"jsdom": "30.1.3",
|