@molecule/app-ui-angular 1.13.1 → 1.13.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.
- package/README.md +43 -3
- package/dist/components/floating-input.component.d.ts +13 -1
- package/dist/components/floating-input.component.d.ts.map +1 -1
- package/dist/components/floating-input.component.js +28 -3
- package/dist/components/floating-input.component.js.map +1 -1
- package/dist/components/switch.component.d.ts +7 -1
- package/dist/components/switch.component.d.ts.map +1 -1
- package/dist/components/switch.component.js +20 -5
- package/dist/components/switch.component.js.map +1 -1
- package/package.json +5 -5
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-28T23:29:00.500Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-ui-angular
|
|
@@ -5434,6 +5434,10 @@ uncontrolled (internal state seeded from `defaultValue`).
|
|
|
5434
5434
|
selector: 'span[mol-floating-input]',
|
|
5435
5435
|
standalone: true,
|
|
5436
5436
|
inputs: [
|
|
5437
|
+
'type',
|
|
5438
|
+
'name',
|
|
5439
|
+
'disabled',
|
|
5440
|
+
'required',
|
|
5437
5441
|
'placeholder',
|
|
5438
5442
|
'className',
|
|
5439
5443
|
'value',
|
|
@@ -5449,8 +5453,12 @@ uncontrolled (internal state seeded from `defaultValue`).
|
|
|
5449
5453
|
'[class]': 'cm().floatingInputWrapper',
|
|
5450
5454
|
},
|
|
5451
5455
|
template: `<input
|
|
5456
|
+
[attr.type]="type ?? null"
|
|
5457
|
+
[attr.name]="name ?? null"
|
|
5452
5458
|
[attr.id]="inputId()"
|
|
5453
5459
|
[attr.placeholder]="placeholder"
|
|
5460
|
+
[disabled]="isDisabled()"
|
|
5461
|
+
[attr.required]="isRequired() ? '' : null"
|
|
5454
5462
|
[class]="classes()"
|
|
5455
5463
|
[attr.value]="currentValue()"
|
|
5456
5464
|
[attr.data-mol-id]="molId()"
|
|
@@ -5468,6 +5476,14 @@ uncontrolled (internal state seeded from `defaultValue`).
|
|
|
5468
5476
|
export class FloatingInput
|
|
5469
5477
|
implements OnInit, AfterViewInit, AfterViewChecked, HasElement<HTMLInputElement>
|
|
5470
5478
|
{
|
|
5479
|
+
/** Input type attribute. */
|
|
5480
|
+
type?: string
|
|
5481
|
+
/** Form field name attribute. */
|
|
5482
|
+
name?: string
|
|
5483
|
+
/** Whether the input is disabled (accepts boolean binding or static HTML attribute). */
|
|
5484
|
+
disabled?: boolean | ''
|
|
5485
|
+
/** Whether the input is required (accepts boolean binding or static HTML attribute). */
|
|
5486
|
+
required?: boolean | ''
|
|
5471
5487
|
/** Placeholder text, also rendered as the floating label. */
|
|
5472
5488
|
placeholder?: string
|
|
5473
5489
|
/** Extra classes joined onto the input classes. */
|
|
@@ -5541,6 +5557,16 @@ export class FloatingInput
|
|
|
5541
5557
|
return this.automationId ?? this.dataMolId ?? this.externalMolId
|
|
5542
5558
|
}
|
|
5543
5559
|
|
|
5560
|
+
/** Whether the input is disabled (handles `[disabled]="true"` and static `disabled`). */
|
|
5561
|
+
isDisabled(): boolean {
|
|
5562
|
+
return this.disabled === true || this.disabled === ''
|
|
5563
|
+
}
|
|
5564
|
+
|
|
5565
|
+
/** Whether the input is required (handles `[required]="true"` and static `required`). */
|
|
5566
|
+
isRequired(): boolean {
|
|
5567
|
+
return this.required === true || this.required === ''
|
|
5568
|
+
}
|
|
5569
|
+
|
|
5544
5570
|
/**
|
|
5545
5571
|
* Computes the input class list.
|
|
5546
5572
|
* @returns The class string.
|
|
@@ -12809,6 +12835,9 @@ forwarded as the `change` output.
|
|
|
12809
12835
|
'className',
|
|
12810
12836
|
'style',
|
|
12811
12837
|
'testId',
|
|
12838
|
+
'name',
|
|
12839
|
+
'value',
|
|
12840
|
+
'required',
|
|
12812
12841
|
'disabled',
|
|
12813
12842
|
'automationId',
|
|
12814
12843
|
'dataMolId: data-mol-id',
|
|
@@ -12816,6 +12845,9 @@ forwarded as the `change` output.
|
|
|
12816
12845
|
],
|
|
12817
12846
|
template: `<input
|
|
12818
12847
|
type="checkbox"
|
|
12848
|
+
[attr.name]="name"
|
|
12849
|
+
[attr.value]="value"
|
|
12850
|
+
[required]="!!required"
|
|
12819
12851
|
[molChecked]="!!checked"
|
|
12820
12852
|
[disabled]="disabled"
|
|
12821
12853
|
aria-hidden="true"
|
|
@@ -12860,6 +12892,12 @@ export class Switch implements AfterViewChecked, HasElement<HTMLButtonElement> {
|
|
|
12860
12892
|
style?: Record<string, unknown>
|
|
12861
12893
|
/** `data-testid` for the button. */
|
|
12862
12894
|
testId?: string
|
|
12895
|
+
/** The name submitted with the checked value. */
|
|
12896
|
+
name?: string
|
|
12897
|
+
/** The value submitted while the switch is checked. */
|
|
12898
|
+
value?: string | number | readonly string[]
|
|
12899
|
+
/** Requires the switch to be on before submitting. */
|
|
12900
|
+
required?: boolean
|
|
12863
12901
|
/** Disables the switch. */
|
|
12864
12902
|
disabled?: boolean
|
|
12865
12903
|
/** `data-mol-id` automation id (React's `automationId`). */
|
|
@@ -12911,7 +12949,9 @@ export class Switch implements AfterViewChecked, HasElement<HTMLButtonElement> {
|
|
|
12911
12949
|
placeContentBefore(host, host)
|
|
12912
12950
|
setElementPresent(host, false)
|
|
12913
12951
|
// React spreads the rest props on the switch button.
|
|
12914
|
-
setHostRoot(host, this.trigger?.nativeElement, {
|
|
12952
|
+
setHostRoot(host, this.trigger?.nativeElement, {
|
|
12953
|
+
except: ['data-mol-id', 'name', 'value', 'required'],
|
|
12954
|
+
})
|
|
12915
12955
|
this.hasLabel = !!this.label || hasContent(this.labelSlot?.nativeElement)
|
|
12916
12956
|
setElementPresent(this.labelSlot?.nativeElement, this.hasLabel)
|
|
12917
12957
|
})
|
|
@@ -16305,7 +16345,7 @@ Peer dependencies:
|
|
|
16305
16345
|
- `@angular/common` ^22.0.0
|
|
16306
16346
|
- `@angular/core` ^22.0.0
|
|
16307
16347
|
- `@angular/platform-browser` ^22.0.0
|
|
16308
|
-
- `@molecule/app-angular` ^3.16.1
|
|
16348
|
+
- `@molecule/app-angular` ^3.16.1 || ^4.0.0
|
|
16309
16349
|
- `@molecule/app-filesystem` ^1.1.0
|
|
16310
16350
|
- `@molecule/app-i18n` ^1.0.1
|
|
16311
16351
|
- `@molecule/app-icons` ^1.0.1
|
|
@@ -16,6 +16,14 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
* uncontrolled (internal state seeded from `defaultValue`).
|
|
17
17
|
*/
|
|
18
18
|
export declare class FloatingInput implements OnInit, AfterViewInit, AfterViewChecked, HasElement<HTMLInputElement> {
|
|
19
|
+
/** Input type attribute. */
|
|
20
|
+
type?: string;
|
|
21
|
+
/** Form field name attribute. */
|
|
22
|
+
name?: string;
|
|
23
|
+
/** Whether the input is disabled (accepts boolean binding or static HTML attribute). */
|
|
24
|
+
disabled?: boolean | '';
|
|
25
|
+
/** Whether the input is required (accepts boolean binding or static HTML attribute). */
|
|
26
|
+
required?: boolean | '';
|
|
19
27
|
/** Placeholder text, also rendered as the floating label. */
|
|
20
28
|
placeholder?: string;
|
|
21
29
|
/** Extra classes joined onto the input classes. */
|
|
@@ -69,6 +77,10 @@ export declare class FloatingInput implements OnInit, AfterViewInit, AfterViewCh
|
|
|
69
77
|
* @returns The attribute value.
|
|
70
78
|
*/
|
|
71
79
|
molId(): string | undefined;
|
|
80
|
+
/** Whether the input is disabled (handles `[disabled]="true"` and static `disabled`). */
|
|
81
|
+
isDisabled(): boolean;
|
|
82
|
+
/** Whether the input is required (handles `[required]="true"` and static `required`). */
|
|
83
|
+
isRequired(): boolean;
|
|
72
84
|
/**
|
|
73
85
|
* Computes the input class list.
|
|
74
86
|
* @returns The class string.
|
|
@@ -115,6 +127,6 @@ export declare class FloatingInput implements OnInit, AfterViewInit, AfterViewCh
|
|
|
115
127
|
/** Takes a `data-mol-id` off the host and keeps it for the input's binding. */
|
|
116
128
|
private adoptHostMolId;
|
|
117
129
|
static ɵfac: i0.ɵɵFactoryDeclaration<FloatingInput, never>;
|
|
118
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FloatingInput, "span[mol-floating-input]", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "className": { "alias": "className"; "required": false; }; "value": { "alias": "value"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "id": { "alias": "id"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; "onFocus": { "alias": "onFocus"; "required": false; }; "onBlur": { "alias": "onBlur"; "required": false; }; "onKeyDown": { "alias": "onKeyDown"; "required": false; }; }, { "change": "change"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
130
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FloatingInput, "span[mol-floating-input]", never, { "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "className": { "alias": "className"; "required": false; }; "value": { "alias": "value"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "id": { "alias": "id"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; "onFocus": { "alias": "onFocus"; "required": false; }; "onBlur": { "alias": "onBlur"; "required": false; }; "onKeyDown": { "alias": "onKeyDown"; "required": false; }; }, { "change": "change"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
119
131
|
}
|
|
120
132
|
//# sourceMappingURL=floating-input.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating-input.component.d.ts","sourceRoot":"","sources":["../../src/components/floating-input.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAElB,UAAU,EACV,YAAY,EAEZ,KAAK,MAAM,EAIZ,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAG3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;;AAIzD;;;;;;;GAOG;AACH,
|
|
1
|
+
{"version":3,"file":"floating-input.component.d.ts","sourceRoot":"","sources":["../../src/components/floating-input.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAElB,UAAU,EACV,YAAY,EAEZ,KAAK,MAAM,EAIZ,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAG3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;;AAIzD;;;;;;;GAOG;AACH,qBA2Ca,aACX,YAAW,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAEhF,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wFAAwF;IACxF,QAAQ,CAAC,EAAE,OAAO,GAAG,EAAE,CAAA;IACvB,wFAAwF;IACxF,QAAQ,CAAC,EAAE,OAAO,GAAG,EAAE,CAAA;IACvB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAA;IAC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AE,KAAK,GAAG,IAAI;IAInC;;;OAGG;IACH,QAAQ,IAAI,IAAI;IAIhB;;;;OAIG;IACH,eAAe,IAAI,IAAI;IAKvB;;;OAGG;IACH,kBAAkB,IAAI,IAAI;IAI1B,+EAA+E;IAC/E,OAAO,CAAC,cAAc;yCAvKX,aAAa;2CAAb,aAAa;CAiLzB"}
|
|
@@ -29,6 +29,14 @@ function FloatingInput_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
29
29
|
* uncontrolled (internal state seeded from `defaultValue`).
|
|
30
30
|
*/
|
|
31
31
|
export class FloatingInput {
|
|
32
|
+
/** Input type attribute. */
|
|
33
|
+
type;
|
|
34
|
+
/** Form field name attribute. */
|
|
35
|
+
name;
|
|
36
|
+
/** Whether the input is disabled (accepts boolean binding or static HTML attribute). */
|
|
37
|
+
disabled;
|
|
38
|
+
/** Whether the input is required (accepts boolean binding or static HTML attribute). */
|
|
39
|
+
required;
|
|
32
40
|
/** Placeholder text, also rendered as the floating label. */
|
|
33
41
|
placeholder;
|
|
34
42
|
/** Extra classes joined onto the input classes. */
|
|
@@ -92,6 +100,14 @@ export class FloatingInput {
|
|
|
92
100
|
molId() {
|
|
93
101
|
return this.automationId ?? this.dataMolId ?? this.externalMolId;
|
|
94
102
|
}
|
|
103
|
+
/** Whether the input is disabled (handles `[disabled]="true"` and static `disabled`). */
|
|
104
|
+
isDisabled() {
|
|
105
|
+
return this.disabled === true || this.disabled === '';
|
|
106
|
+
}
|
|
107
|
+
/** Whether the input is required (handles `[required]="true"` and static `required`). */
|
|
108
|
+
isRequired() {
|
|
109
|
+
return this.required === true || this.required === '';
|
|
110
|
+
}
|
|
95
111
|
/**
|
|
96
112
|
* Computes the input class list.
|
|
97
113
|
* @returns The class string.
|
|
@@ -173,14 +189,15 @@ export class FloatingInput {
|
|
|
173
189
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElQuery = _t.first);
|
|
174
190
|
} }, hostVars: 2, hostBindings: function FloatingInput_HostBindings(rf, ctx) { if (rf & 2) {
|
|
175
191
|
i0.ɵɵclassMap(ctx.cm().floatingInputWrapper);
|
|
176
|
-
} }, inputs: { placeholder: "placeholder", className: "className", value: "value", defaultValue: "defaultValue", id: "id", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"], onFocus: "onFocus", onBlur: "onBlur", onKeyDown: "onKeyDown" }, outputs: { change: "change", valueChange: "valueChange" }, decls: 3, vars:
|
|
192
|
+
} }, inputs: { type: "type", name: "name", disabled: "disabled", required: "required", placeholder: "placeholder", className: "className", value: "value", defaultValue: "defaultValue", id: "id", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"], onFocus: "onFocus", onBlur: "onBlur", onKeyDown: "onKeyDown" }, outputs: { change: "change", valueChange: "valueChange" }, decls: 3, vars: 11, consts: [["inputEl", ""], [3, "input", "change", "focusin", "focusout", "keydown", "disabled"], [3, "class"]], template: function FloatingInput_Template(rf, ctx) { if (rf & 1) {
|
|
177
193
|
i0.ɵɵdomElementStart(0, "input", 1, 0);
|
|
178
194
|
i0.ɵɵdomListener("input", function FloatingInput_Template_input_input_0_listener($event) { return ctx.handleInput($event); })("change", function FloatingInput_Template_input_change_0_listener($event) { return ctx.stopPropagation($event); })("focusin", function FloatingInput_Template_input_focusin_0_listener($event) { return ctx.onFocus?.($event); })("focusout", function FloatingInput_Template_input_focusout_0_listener($event) { return ctx.onBlur?.($event); })("keydown", function FloatingInput_Template_input_keydown_0_listener($event) { return ctx.onKeyDown?.($event); });
|
|
179
195
|
i0.ɵɵdomElementEnd();
|
|
180
196
|
i0.ɵɵconditionalCreate(2, FloatingInput_Conditional_2_Template, 2, 4, "label", 2);
|
|
181
197
|
} if (rf & 2) {
|
|
182
198
|
i0.ɵɵclassMap(ctx.classes());
|
|
183
|
-
i0.ɵɵ
|
|
199
|
+
i0.ɵɵdomProperty("disabled", ctx.isDisabled());
|
|
200
|
+
i0.ɵɵattribute("type", ctx.type ?? null)("name", ctx.name ?? null)("id", ctx.inputId())("placeholder", ctx.placeholder)("required", ctx.isRequired() ? "" : null)("value", ctx.currentValue())("data-mol-id", ctx.molId());
|
|
184
201
|
i0.ɵɵadvance(2);
|
|
185
202
|
i0.ɵɵconditional(ctx.placeholder ? 2 : -1);
|
|
186
203
|
} }, encapsulation: 2 });
|
|
@@ -191,6 +208,10 @@ export class FloatingInput {
|
|
|
191
208
|
selector: 'span[mol-floating-input]',
|
|
192
209
|
standalone: true,
|
|
193
210
|
inputs: [
|
|
211
|
+
'type',
|
|
212
|
+
'name',
|
|
213
|
+
'disabled',
|
|
214
|
+
'required',
|
|
194
215
|
'placeholder',
|
|
195
216
|
'className',
|
|
196
217
|
'value',
|
|
@@ -206,8 +227,12 @@ export class FloatingInput {
|
|
|
206
227
|
'[class]': 'cm().floatingInputWrapper',
|
|
207
228
|
},
|
|
208
229
|
template: `<input
|
|
230
|
+
[attr.type]="type ?? null"
|
|
231
|
+
[attr.name]="name ?? null"
|
|
209
232
|
[attr.id]="inputId()"
|
|
210
233
|
[attr.placeholder]="placeholder"
|
|
234
|
+
[disabled]="isDisabled()"
|
|
235
|
+
[attr.required]="isRequired() ? '' : null"
|
|
211
236
|
[class]="classes()"
|
|
212
237
|
[attr.value]="currentValue()"
|
|
213
238
|
[attr.data-mol-id]="molId()"
|
|
@@ -230,5 +255,5 @@ export class FloatingInput {
|
|
|
230
255
|
type: ViewChild,
|
|
231
256
|
args: ['inputEl']
|
|
232
257
|
}] }); })();
|
|
233
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FloatingInput, { className: "FloatingInput", filePath: "components/floating-input.component.ts", lineNumber:
|
|
258
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FloatingInput, { className: "FloatingInput", filePath: "components/floating-input.component.ts", lineNumber: 78 }); })();
|
|
234
259
|
//# sourceMappingURL=floating-input.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating-input.component.js","sourceRoot":"","sources":["../../src/components/floating-input.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EAEN,MAAM,EACN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;;;;
|
|
1
|
+
{"version":3,"file":"floating-input.component.js","sourceRoot":"","sources":["../../src/components/floating-input.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EAEN,MAAM,EACN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;;;;IAkD7E,gCAA2D;IAAA,YAAiB;IAAA,oBAAQ;;;IAAtD,wCAA4B;;IAAC,cAAiB;IAAjB,wCAAiB;;AAhDlF;;;;;;;GAOG;AA4CH,MAAM,OAAO,aAAa;IAGxB,4BAA4B;IAC5B,IAAI,CAAS;IACb,iCAAiC;IACjC,IAAI,CAAS;IACb,wFAAwF;IACxF,QAAQ,CAAe;IACvB,wFAAwF;IACxF,QAAQ,CAAe;IACvB,6DAA6D;IAC7D,WAAW,CAAS;IACpB,mDAAmD;IACnD,SAAS,CAAS;IAClB,wBAAwB;IACxB,KAAK,CAAS;IACd,6DAA6D;IAC7D,YAAY,CAAS;IACrB,yBAAyB;IACzB,EAAE,CAAS;IACX,4DAA4D;IAC5D,YAAY,CAA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;;MAmBN;aACL;;kBAmCE,MAAM;;kBAGN,MAAM;;kBAKN,SAAS;mBAAC,SAAS;;kFA1CT,aAAa"}
|
|
@@ -32,6 +32,12 @@ export declare class Switch implements AfterViewChecked, HasElement<HTMLButtonEl
|
|
|
32
32
|
style?: Record<string, unknown>;
|
|
33
33
|
/** `data-testid` for the button. */
|
|
34
34
|
testId?: string;
|
|
35
|
+
/** The name submitted with the checked value. */
|
|
36
|
+
name?: string;
|
|
37
|
+
/** The value submitted while the switch is checked. */
|
|
38
|
+
value?: string | number | readonly string[];
|
|
39
|
+
/** Requires the switch to be on before submitting. */
|
|
40
|
+
required?: boolean;
|
|
35
41
|
/** Disables the switch. */
|
|
36
42
|
disabled?: boolean;
|
|
37
43
|
/** `data-mol-id` automation id (React's `automationId`). */
|
|
@@ -122,6 +128,6 @@ export declare class Switch implements AfterViewChecked, HasElement<HTMLButtonEl
|
|
|
122
128
|
*/
|
|
123
129
|
ngAfterViewChecked(): void;
|
|
124
130
|
static ɵfac: i0.ɵɵFactoryDeclaration<Switch, never>;
|
|
125
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Switch, "mol-switch", never, { "label": { "alias": "label"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; }, { "change": "change"; "checkedChange": "checkedChange"; }, never, ["[slot=label]"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
131
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Switch, "mol-switch", never, { "label": { "alias": "label"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; }, { "change": "change"; "checkedChange": "checkedChange"; }, never, ["[slot=label]"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
126
132
|
}
|
|
127
133
|
//# sourceMappingURL=switch.component.d.ts.map
|
|
@@ -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;AAStB,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGzF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;;;AAKzD;;;;;;;;GAQG;AACH,
|
|
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;AAStB,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGzF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;;;AAKzD;;;;;;;;GAQG;AACH,qBAuDa,MAAO,YAAW,gBAAgB,EAAE,UAAU,CAAC,iBAAiB,CAAC;IAC5E,8DAA8D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e,CAAC,CAAA;IAE/D,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;IAC1C,OAAO,CAAC,QAAQ,CAAQ;IACxB,wFAAwF;IACxF,OAAO,CAAC,aAAa,CAAoB;IAEzC;;;;OAIG;;IAeH;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,KAAK,IAAI,SAAS,GAAG,WAAW;IAIhC;;;OAGG;IACH,OAAO,IAAI,MAAM;IAOjB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B;;;OAGG;IACH,KAAK,IAAI,MAAM,GAAG,SAAS;IAI3B;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAKpC;;;;;;;;;OASG;IACH,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAShC;;OAEG;IACH,kBAAkB,IAAI,IAAI;yCArKf,MAAM;2CAAN,MAAM;CA+KlB"}
|
|
@@ -41,6 +41,12 @@ export class Switch {
|
|
|
41
41
|
style;
|
|
42
42
|
/** `data-testid` for the button. */
|
|
43
43
|
testId;
|
|
44
|
+
/** The name submitted with the checked value. */
|
|
45
|
+
name;
|
|
46
|
+
/** The value submitted while the switch is checked. */
|
|
47
|
+
value;
|
|
48
|
+
/** Requires the switch to be on before submitting. */
|
|
49
|
+
required;
|
|
44
50
|
/** Disables the switch. */
|
|
45
51
|
disabled;
|
|
46
52
|
/** `data-mol-id` automation id (React's `automationId`). */
|
|
@@ -86,7 +92,9 @@ export class Switch {
|
|
|
86
92
|
placeContentBefore(host, host);
|
|
87
93
|
setElementPresent(host, false);
|
|
88
94
|
// React spreads the rest props on the switch button.
|
|
89
|
-
setHostRoot(host, this.trigger?.nativeElement, {
|
|
95
|
+
setHostRoot(host, this.trigger?.nativeElement, {
|
|
96
|
+
except: ['data-mol-id', 'name', 'value', 'required'],
|
|
97
|
+
});
|
|
90
98
|
this.hasLabel = !!this.label || hasContent(this.labelSlot?.nativeElement);
|
|
91
99
|
setElementPresent(this.labelSlot?.nativeElement, this.hasLabel);
|
|
92
100
|
});
|
|
@@ -181,7 +189,7 @@ export class Switch {
|
|
|
181
189
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.hiddenInput = _t.first);
|
|
182
190
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.triggerQuery = _t.first);
|
|
183
191
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelSlot = _t.first);
|
|
184
|
-
} }, inputs: { label: "label", checked: "checked", size: "size", color: "color", className: "className", style: "style", testId: "testId", disabled: "disabled", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"], onClick: "onClick" }, outputs: { change: "change", checkedChange: "checkedChange" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c4, decls: 10, vars:
|
|
192
|
+
} }, inputs: { label: "label", checked: "checked", size: "size", color: "color", className: "className", style: "style", testId: "testId", name: "name", value: "value", required: "required", disabled: "disabled", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"], onClick: "onClick" }, outputs: { change: "change", checkedChange: "checkedChange" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c4, decls: 10, vars: 25, consts: [["hiddenInput", ""], ["trigger", ""], ["labelSlot", ""], ["type", "checkbox", "aria-hidden", "true", "tabindex", "-1", 3, "change", "required", "molChecked", "disabled"], ["type", "button", "role", "switch", 3, "click", "disabled"]], template: function Switch_Template(rf, ctx) { if (rf & 1) {
|
|
185
193
|
i0.ɵɵprojectionDef(_c3);
|
|
186
194
|
i0.ɵɵelementStart(0, "input", 3, 0);
|
|
187
195
|
i0.ɵɵlistener("change", function Switch_Template_input_change_0_listener($event) { return ctx.handleChange($event); });
|
|
@@ -196,7 +204,8 @@ export class Switch {
|
|
|
196
204
|
i0.ɵɵelementEnd()();
|
|
197
205
|
} if (rf & 2) {
|
|
198
206
|
i0.ɵɵclassMap(ctx.cm().srOnly);
|
|
199
|
-
i0.ɵɵproperty("molChecked", !!ctx.checked)("disabled", ctx.disabled);
|
|
207
|
+
i0.ɵɵproperty("required", !!ctx.required)("molChecked", !!ctx.checked)("disabled", ctx.disabled);
|
|
208
|
+
i0.ɵɵattribute("name", ctx.name)("value", ctx.value);
|
|
200
209
|
i0.ɵɵadvance(2);
|
|
201
210
|
i0.ɵɵclassMap(ctx.labelClasses());
|
|
202
211
|
i0.ɵɵadvance();
|
|
@@ -204,7 +213,7 @@ export class Switch {
|
|
|
204
213
|
i0.ɵɵproperty("disabled", ctx.disabled);
|
|
205
214
|
i0.ɵɵattribute("aria-checked", ctx.checked ? "true" : "false")("data-state", ctx.state())("style", ctx.hostStyle(), i0.ɵɵsanitizeStyle)("data-testid", ctx.testId)("data-mol-id", ctx.molId());
|
|
206
215
|
i0.ɵɵadvance(2);
|
|
207
|
-
i0.ɵɵclassMap(ctx.cm().switchThumb(i0.ɵɵpureFunction1(
|
|
216
|
+
i0.ɵɵclassMap(ctx.cm().switchThumb(i0.ɵɵpureFunction1(23, _c5, ctx.size ?? "md")));
|
|
208
217
|
i0.ɵɵattribute("data-state", ctx.state());
|
|
209
218
|
i0.ɵɵadvance();
|
|
210
219
|
i0.ɵɵclassMap(ctx.cm().controlText);
|
|
@@ -227,6 +236,9 @@ export class Switch {
|
|
|
227
236
|
'className',
|
|
228
237
|
'style',
|
|
229
238
|
'testId',
|
|
239
|
+
'name',
|
|
240
|
+
'value',
|
|
241
|
+
'required',
|
|
230
242
|
'disabled',
|
|
231
243
|
'automationId',
|
|
232
244
|
'dataMolId: data-mol-id',
|
|
@@ -234,6 +246,9 @@ export class Switch {
|
|
|
234
246
|
],
|
|
235
247
|
template: `<input
|
|
236
248
|
type="checkbox"
|
|
249
|
+
[attr.name]="name"
|
|
250
|
+
[attr.value]="value"
|
|
251
|
+
[required]="!!required"
|
|
237
252
|
[molChecked]="!!checked"
|
|
238
253
|
[disabled]="disabled"
|
|
239
254
|
aria-hidden="true"
|
|
@@ -277,5 +292,5 @@ export class Switch {
|
|
|
277
292
|
type: ViewChild,
|
|
278
293
|
args: ['labelSlot']
|
|
279
294
|
}] }); })();
|
|
280
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Switch, { className: "Switch", filePath: "components/switch.component.ts", lineNumber:
|
|
295
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Switch, { className: "Switch", filePath: "components/switch.component.ts", lineNumber: 97 }); })();
|
|
281
296
|
//# 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,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,YAAY,GACb,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;;;;;;;;;AAExE;;;;;;;;GAQG;
|
|
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,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,YAAY,EACZ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AAM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-ui-angular",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.3",
|
|
4
4
|
"description": "Angular UI components for molecule.dev",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@molecule/app-inline-style-dom": "1.2.0",
|
|
42
42
|
"@molecule/app-overlay-dom": "1.1.0",
|
|
43
|
-
"@molecule/app-pointer-events-dom": "1.
|
|
43
|
+
"@molecule/app-pointer-events-dom": "1.3.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@angular/common": "^22.0.0",
|
|
47
47
|
"@angular/core": "^22.0.0",
|
|
48
48
|
"@angular/platform-browser": "^22.0.0",
|
|
49
|
-
"@molecule/app-angular": "^3.16.1",
|
|
49
|
+
"@molecule/app-angular": "^3.16.1 || ^4.0.0",
|
|
50
50
|
"@molecule/app-filesystem": "^1.1.0",
|
|
51
51
|
"@molecule/app-i18n": "^1.0.1",
|
|
52
52
|
"@molecule/app-icons": "^1.0.1",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"@angular/core": "22.2.3",
|
|
60
60
|
"@angular/platform-browser": "22.2.3",
|
|
61
61
|
"@angular/platform-server": "22.2.3",
|
|
62
|
-
"@molecule/app-angular": "
|
|
63
|
-
"@molecule/app-filesystem": "1.1.
|
|
62
|
+
"@molecule/app-angular": "4.0.0",
|
|
63
|
+
"@molecule/app-filesystem": "1.1.1",
|
|
64
64
|
"@molecule/app-framework-conformance": "0.0.0",
|
|
65
65
|
"@molecule/app-i18n": "1.4.0",
|
|
66
66
|
"@molecule/app-icons": "1.0.4",
|