@molecule/app-ui-angular 1.13.4 → 1.13.5
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 +416 -276
- package/dist/components/button.component.d.ts +10 -2
- package/dist/components/button.component.d.ts.map +1 -1
- package/dist/components/button.component.js +16 -5
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/checkbox.component.d.ts +2 -2
- package/dist/components/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox.component.js +1 -1
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/confirm-dialog.component.d.ts +1 -1
- package/dist/components/confirm-dialog.component.d.ts.map +1 -1
- package/dist/components/confirm-dialog.component.js.map +1 -1
- package/dist/components/form-field.component.d.ts +14 -5
- package/dist/components/form-field.component.d.ts.map +1 -1
- package/dist/components/form-field.component.js +79 -51
- package/dist/components/form-field.component.js.map +1 -1
- package/dist/components/input.component.d.ts +10 -7
- package/dist/components/input.component.d.ts.map +1 -1
- package/dist/components/input.component.js +30 -30
- package/dist/components/input.component.js.map +1 -1
- package/dist/components/layout.component.d.ts +7 -7
- package/dist/components/layout.component.d.ts.map +1 -1
- package/dist/components/layout.component.js +29 -20
- package/dist/components/layout.component.js.map +1 -1
- package/dist/components/molecule/input.component.d.ts +7 -4
- package/dist/components/molecule/input.component.d.ts.map +1 -1
- package/dist/components/molecule/input.component.js +18 -8
- package/dist/components/molecule/input.component.js.map +1 -1
- package/dist/components/molecule/modal.component.d.ts +9 -30
- package/dist/components/molecule/modal.component.d.ts.map +1 -1
- package/dist/components/molecule/modal.component.js +69 -81
- package/dist/components/molecule/modal.component.js.map +1 -1
- package/dist/components/molecule/select.component.d.ts +4 -3
- package/dist/components/molecule/select.component.d.ts.map +1 -1
- package/dist/components/molecule/select.component.js +13 -7
- package/dist/components/molecule/select.component.js.map +1 -1
- package/dist/components/prompt-dialog.component.d.ts +3 -3
- package/dist/components/prompt-dialog.component.d.ts.map +1 -1
- package/dist/components/prompt-dialog.component.js.map +1 -1
- package/dist/components/radio-group.component.d.ts +2 -2
- package/dist/components/radio-group.component.d.ts.map +1 -1
- package/dist/components/radio-group.component.js +2 -0
- package/dist/components/radio-group.component.js.map +1 -1
- package/dist/components/select.component.d.ts +12 -9
- package/dist/components/select.component.d.ts.map +1 -1
- package/dist/components/select.component.js +34 -32
- package/dist/components/select.component.js.map +1 -1
- package/dist/components/spinner.component.d.ts.map +1 -1
- package/dist/components/spinner.component.js +1 -3
- package/dist/components/spinner.component.js.map +1 -1
- package/dist/components/table.component.d.ts +16 -11
- package/dist/components/table.component.d.ts.map +1 -1
- package/dist/components/table.component.js +12 -14
- package/dist/components/table.component.js.map +1 -1
- package/dist/components/tabs.component.d.ts +1 -3
- package/dist/components/tabs.component.d.ts.map +1 -1
- package/dist/components/tabs.component.js +13 -11
- package/dist/components/tabs.component.js.map +1 -1
- package/dist/components/textarea.component.d.ts +13 -15
- package/dist/components/textarea.component.d.ts.map +1 -1
- package/dist/components/textarea.component.js +35 -38
- package/dist/components/textarea.component.js.map +1 -1
- package/dist/components/tooltip.component.js +1 -1
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/components/user-menu.component.d.ts +1 -1
- package/dist/components/user-menu.component.d.ts.map +1 -1
- package/dist/components/user-menu.component.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utilities/form-field-context.d.ts +10 -1
- package/dist/utilities/form-field-context.d.ts.map +1 -1
- package/dist/utilities/form-field-context.js +18 -0
- package/dist/utilities/form-field-context.js.map +1 -1
- package/dist/utilities/rest-attrs.d.ts +4 -1
- package/dist/utilities/rest-attrs.d.ts.map +1 -1
- package/dist/utilities/rest-attrs.js +6 -1
- package/dist/utilities/rest-attrs.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
6
|
import { ElementRef, type Renderer2 } from '@angular/core';
|
|
7
|
-
import type { ButtonVariant, ColorVariant, Size, UIClassMap } from '@molecule/app-ui';
|
|
7
|
+
import type { AriaBoolean, ButtonVariant, ColorVariant, Size, UIClassMap } from '@molecule/app-ui';
|
|
8
8
|
import { type HasElement } from '../utilities/element.js';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
import * as i1 from "@molecule/app-angular";
|
|
@@ -89,6 +89,8 @@ export declare class Button implements HasElement<HTMLButtonElement> {
|
|
|
89
89
|
disabled: boolean;
|
|
90
90
|
/** The button's `type` attribute. */
|
|
91
91
|
type: 'button' | 'submit' | 'reset';
|
|
92
|
+
/** Explicit `aria-busy` (`loading` stays busy even when this is false). */
|
|
93
|
+
ariaBusy?: AriaBoolean;
|
|
92
94
|
/** The left icon wrapper (always in the template; detached when unused). */
|
|
93
95
|
leftSlot?: ElementRef<HTMLSpanElement>;
|
|
94
96
|
/** The right icon wrapper. */
|
|
@@ -108,6 +110,12 @@ export declare class Button implements HasElement<HTMLButtonElement> {
|
|
|
108
110
|
* @returns The attribute value, or undefined.
|
|
109
111
|
*/
|
|
110
112
|
molId(): string | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* The `aria-busy` attribute value (`loading` stays busy even when an explicit
|
|
115
|
+
* `aria-busy` is false; an explicit truthy `aria-busy` applies otherwise).
|
|
116
|
+
* @returns `"true"` or `"false"`.
|
|
117
|
+
*/
|
|
118
|
+
ariaBusyAttr(): 'true' | 'false';
|
|
111
119
|
/**
|
|
112
120
|
* Computes the button class list.
|
|
113
121
|
* @returns The class string.
|
|
@@ -129,6 +137,6 @@ export declare class Button implements HasElement<HTMLButtonElement> {
|
|
|
129
137
|
*/
|
|
130
138
|
private syncWrappers;
|
|
131
139
|
static ɵfac: i0.ɵɵFactoryDeclaration<Button, never>;
|
|
132
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Button, "button[mol-button]", never, { "variant": { "alias": "variant"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; }, {}, never, ["[slot=leftIcon]", "*", "[slot=rightIcon]"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
140
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Button, "button[mol-button]", never, { "variant": { "alias": "variant"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "ariaBusy": { "alias": "aria-busy"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; }, {}, never, ["[slot=leftIcon]", "*", "[slot=rightIcon]"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
133
141
|
}
|
|
134
142
|
//# sourceMappingURL=button.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../src/components/button.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAa,UAAU,EAAU,KAAK,SAAS,EAAa,MAAM,eAAe,CAAA;AAUxF,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"button.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AAE,MAAM,CAAA;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2BAA2B;IAC3B,QAAQ,UAAQ;IAChB,qCAAqC;IACrC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAW;IAC9C,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,WAAW,CAAA;IAEtB,4EAA4E;IACrD,QAAQ,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,CAAA;IAC7D,8BAA8B;IACN,SAAS,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,CAAA;IAE/D,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAoD;IACzE,gEAAgE;IAChE,QAAQ,CAAC,OAAO,2DAAyB;IAEzC;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;;;OAKG;IACH,KAAK,IAAI,MAAM,GAAG,SAAS;IAS3B;;;;OAIG;IACH,YAAY,IAAI,MAAM,GAAG,OAAO;IAIhC;;;OAGG;IACH,OAAO,IAAI,MAAM;IAYjB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,QAAQ,CAAQ;IAExB,yDAAyD;;IAKzD;;;;OAIG;IACH,OAAO,CAAC,YAAY;yCA/GT,MAAM;2CAAN,MAAM;CAuHlB"}
|
|
@@ -120,6 +120,8 @@ export class Button {
|
|
|
120
120
|
disabled = false;
|
|
121
121
|
/** The button's `type` attribute. */
|
|
122
122
|
type = 'button';
|
|
123
|
+
/** Explicit `aria-busy` (`loading` stays busy even when this is false). */
|
|
124
|
+
ariaBusy;
|
|
123
125
|
/** The left icon wrapper (always in the template; detached when unused). */
|
|
124
126
|
leftSlot;
|
|
125
127
|
/** The right icon wrapper. */
|
|
@@ -146,6 +148,14 @@ export class Button {
|
|
|
146
148
|
this.host.nativeElement.getAttribute('data-mol-id') ??
|
|
147
149
|
undefined);
|
|
148
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* The `aria-busy` attribute value (`loading` stays busy even when an explicit
|
|
153
|
+
* `aria-busy` is false; an explicit truthy `aria-busy` applies otherwise).
|
|
154
|
+
* @returns `"true"` or `"false"`.
|
|
155
|
+
*/
|
|
156
|
+
ariaBusyAttr() {
|
|
157
|
+
return this.loading || this.ariaBusy === true || this.ariaBusy === 'true' ? 'true' : 'false';
|
|
158
|
+
}
|
|
149
159
|
/**
|
|
150
160
|
* Computes the button class list.
|
|
151
161
|
* @returns The class string.
|
|
@@ -193,10 +203,10 @@ export class Button {
|
|
|
193
203
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.rightSlot = _t.first);
|
|
194
204
|
} }, hostVars: 9, hostBindings: function Button_HostBindings(rf, ctx) { if (rf & 2) {
|
|
195
205
|
i0.ɵɵdomProperty("disabled", ctx.disabled || ctx.loading);
|
|
196
|
-
i0.ɵɵattribute("data-testid", ctx.testId)("data-mol-id", ctx.molId())("type", ctx.type)("aria-busy", ctx.
|
|
206
|
+
i0.ɵɵattribute("data-testid", ctx.testId)("data-mol-id", ctx.molId())("type", ctx.type ?? "button")("aria-busy", ctx.ariaBusyAttr());
|
|
197
207
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
198
208
|
i0.ɵɵclassMap(ctx.classes());
|
|
199
|
-
} }, inputs: { variant: "variant", color: "color", size: "size", loading: "loading", loadingText: "loadingText", fullWidth: "fullWidth", className: "className", style: "style", testId: "testId", disabled: "disabled", type: "type", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c3, decls: 9, vars: 6, consts: [["leftSlot", ""], ["rightSlot", ""], ["mol-spinner", "", 3, "size", "className"]], template: function Button_Template(rf, ctx) { if (rf & 1) {
|
|
209
|
+
} }, inputs: { variant: "variant", color: "color", size: "size", loading: "loading", loadingText: "loadingText", fullWidth: "fullWidth", className: "className", style: "style", testId: "testId", disabled: "disabled", type: "type", ariaBusy: [0, "aria-busy", "ariaBusy"], automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c3, decls: 9, vars: 6, consts: [["leftSlot", ""], ["rightSlot", ""], ["mol-spinner", "", 3, "size", "className"]], template: function Button_Template(rf, ctx) { if (rf & 1) {
|
|
200
210
|
i0.ɵɵprojectionDef(_c2);
|
|
201
211
|
i0.ɵɵconditionalCreate(0, Button_Conditional_0_Template, 1, 2, "div", 2);
|
|
202
212
|
i0.ɵɵelementStart(1, "span", null, 0);
|
|
@@ -235,6 +245,7 @@ export class Button {
|
|
|
235
245
|
'testId',
|
|
236
246
|
'disabled',
|
|
237
247
|
'type',
|
|
248
|
+
'ariaBusy: aria-busy',
|
|
238
249
|
'automationId',
|
|
239
250
|
'dataMolId: data-mol-id',
|
|
240
251
|
],
|
|
@@ -243,9 +254,9 @@ export class Button {
|
|
|
243
254
|
'[style]': 'hostStyle()',
|
|
244
255
|
'[attr.data-testid]': 'testId',
|
|
245
256
|
'[attr.data-mol-id]': 'molId()',
|
|
246
|
-
'[attr.type]': 'type',
|
|
257
|
+
'[attr.type]': 'type ?? "button"',
|
|
247
258
|
'[disabled]': 'disabled || loading',
|
|
248
|
-
'[attr.aria-busy]': '
|
|
259
|
+
'[attr.aria-busy]': 'ariaBusyAttr()',
|
|
249
260
|
},
|
|
250
261
|
template: `@if (loading) {
|
|
251
262
|
<div mol-spinner [size]="'sm'" [className]="cm().buttonIconLeft"></div>
|
|
@@ -269,5 +280,5 @@ export class Button {
|
|
|
269
280
|
type: ViewChild,
|
|
270
281
|
args: ['rightSlot']
|
|
271
282
|
}] }); })();
|
|
272
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Button, { className: "Button", filePath: "components/button.component.ts", lineNumber:
|
|
283
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Button, { className: "Button", filePath: "components/button.component.ts", lineNumber: 127 }); })();
|
|
273
284
|
//# sourceMappingURL=button.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.component.js","sourceRoot":"","sources":["../../src/components/button.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAkB,SAAS,EAAE,MAAM,eAAe,CAAA;AAExF,OAAO;AACL,6HAA6H;AAC7H,UAAU,EACV,YAAY,EACZ,iBAAiB,EAEjB,YAAY,GACb,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;;;;;;;;
|
|
1
|
+
{"version":3,"file":"button.component.js","sourceRoot":"","sources":["../../src/components/button.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAkB,SAAS,EAAE,MAAM,eAAe,CAAA;AAExF,OAAO;AACL,6HAA6H;AAC7H,UAAU,EACV,YAAY,EACZ,iBAAiB,EAEjB,YAAY,GACb,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;;;;;;;;IA2F1C,yBAAuE;;;IAAxC,AAAd,2BAAa,yCAAkC;;;IAMhE,6BAAc;IAAA,YAAiB;;;;IAAjB,cAAiB;IAAjB,wCAAiB;;;IAE/B,qBAAy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;oBACnC,kBAAkB,EAAE,gBAAgB;iBACrC;gBACD,QAAQ,EAAE;;;;;;;;;;;;;aAaC;aACZ;;kBAmCE,SAAS;mBAAC,UAAU;;kBAEpB,SAAS;mBAAC,WAAW;;kFApCX,MAAM"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
6
|
import { type AfterViewChecked, ElementRef, EventEmitter } from '@angular/core';
|
|
7
|
-
import type { FocusEventHandler, KeyboardEventHandler, MouseEventHandler, UIClassMap } from '@molecule/app-ui';
|
|
7
|
+
import type { FocusEventHandler, KeyboardEventHandler, MouseEventHandler, Size, UIClassMap } from '@molecule/app-ui';
|
|
8
8
|
import type { HasElement } from '../utilities/element.js';
|
|
9
9
|
import type { FormFieldContext } from '../utilities/form-field-context.js';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
@@ -25,7 +25,7 @@ export declare class Checkbox implements AfterViewChecked, HasElement<HTMLInputE
|
|
|
25
25
|
/** Whether the checkbox renders the indeterminate state. */
|
|
26
26
|
indeterminate?: boolean;
|
|
27
27
|
/** Checkbox size (kept for prop parity). */
|
|
28
|
-
size?:
|
|
28
|
+
size?: Size;
|
|
29
29
|
/** Error message (renders and associates via aria-describedby). */
|
|
30
30
|
error?: string;
|
|
31
31
|
/** Extra classes joined onto the checkbox classes. */
|
|
@@ -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;AAGtB,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACX,MAAM,kBAAkB,CAAA;AAGzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;;;AAO1E;;;;;;;GAOG;AACH,qBA0Da,QAAS,YAAW,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAC7E,gEAAgE;IAChE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,
|
|
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;AAGtB,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,IAAI,EACJ,UAAU,EACX,MAAM,kBAAkB,CAAA;AAGzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;;;AAO1E;;;;;;;GAOG;AACH,qBA0Da,QAAS,YAAW,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAC7E,gEAAgE;IAChE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CA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AC,iBAAiB,CAAQ;IAEjC,6DAA6D;;IAQ7D;;;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;;;OAGG;IACH,KAAK,IAAI,MAAM,GAAG,SAAS;IAI3B;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAOpC;;;;;;;;OAQG;IACH,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAMhC,OAAO,CAAC,WAAW,CAAQ;IAE3B,6DAA6D;IAC7D,OAAO,CAAC,UAAU;IAMlB;;OAEG;IACH,kBAAkB,IAAI,IAAI;yCAnMf,QAAQ;2CAAR,QAAQ;CAyNpB"}
|
|
@@ -332,5 +332,5 @@ export class Checkbox {
|
|
|
332
332
|
type: ViewChild,
|
|
333
333
|
args: ['labelSlot']
|
|
334
334
|
}] }); })();
|
|
335
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Checkbox, { className: "Checkbox", filePath: "components/checkbox.component.ts", lineNumber:
|
|
335
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Checkbox, { className: "Checkbox", filePath: "components/checkbox.component.ts", lineNumber: 102 }); })();
|
|
336
336
|
//# sourceMappingURL=checkbox.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.component.js","sourceRoot":"","sources":["../../src/components/checkbox.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,EAAE,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"checkbox.component.js","sourceRoot":"","sources":["../../src/components/checkbox.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,EAAE,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAQrF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;;;;;;;;IAiElE,yBAA6E;IAAA,YAAW;IAAA,iBAAI;;;IAAnE,6EAAmD;;IAAC,cAAW;IAAX,kCAAW;;AA/D9F;;;;;;;GAOG;AA2DH,MAAM,OAAO,QAAQ;IACnB,gEAAgE;IAChE,KAAK,CAAU;IACf,uCAAuC;IACvC,OAAO,CAAU;IACjB,4DAA4D;IAC5D,aAAa,CAAU;IACvB,4CAA4C;IAC5C,IAAI,CAAO;IACX,mEAAmE;IACnE,KAAK,CAAS;IACd,sDAAsD;IACtD,SAAS,CAAS;IAClB,6CAA6C;IAC7C,KAAK,CAA0B;IAC/B,mCAAmC;IACnC,MAAM,CAAS;IACf,6BAA6B;IAC7B,QAAQ,CAAU;IAClB,uBA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C;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;oBAChB,cAAc;oBACd,wBAAwB;oBACxB,SAAS;oBACT,SAAS;oBACT,QAAQ;oBACR,WAAW;iBACZ;gBACD,IAAI,EAAE;oBACJ,SAAS,EAAE,uBAAuB;iBACnC;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4BN;aACL;;kBA6CE,MAAM;;kBAEN,MAAM;;kBAKN,SAAS;mBAAC,OAAO;;kBAUjB,SAAS;mBAAC,WAAW;;kFA7DX,QAAQ"}
|
|
@@ -82,7 +82,7 @@ export declare class ConfirmDialog {
|
|
|
82
82
|
/** Whether a node-valued prop was given. */
|
|
83
83
|
readonly isGiven: typeof isGiven;
|
|
84
84
|
/** Fires when the dialog should close (escape, backdrop, cancel). */
|
|
85
|
-
readonly close: EventEmitter<
|
|
85
|
+
readonly close: EventEmitter<MouseEvent | undefined>;
|
|
86
86
|
/** Fires when the user confirms. */
|
|
87
87
|
readonly confirm: EventEmitter<void>;
|
|
88
88
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-dialog.component.d.ts","sourceRoot":"","sources":["../../src/components/confirm-dialog.component.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,UAAU,EACV,YAAY,EAKZ,KAAK,WAAW,EAEjB,MAAM,eAAe,CAAA;AAStB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAIlD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAe,MAAM,4BAA4B,CAAA;;;AAQvF;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IACjC,kCAAkC;IAClC,IAAI,EAAE,OAAO,CAAA;IACb,2EAA2E;IAC3E,OAAO,E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IhB;;;;OAIG;IACH,QAAQ,CAAC,eAAe,wDAA8B;IAEtD;;;OAGG;IACH,QAAQ,CAAC,cAAc,wDAA8B;IAErD,sHAAsH;IAC5E,YAAY,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IAEhF,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA8C;IACnE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyC;IAEjE;;;;;OAKG;;IAgBH;;;OAGG;IACH,UAAU,IAAI,MAAM;IAMpB;;;;OAIG;IACH,WAAW,IAAI,MAAM;yCA7HV,aAAa;2CAAb,aAAa;CAmIzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-dialog.component.js","sourceRoot":"","sources":["../../src/components/confirm-dialog.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EACL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EACN,MAAM,EACN,WAAW,EACX,MAAM,EAEN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,cAAc,GACf,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACvF,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;;;;;;;;;;IAgExD,2BAAqE;IAAA,YACvE;;;IADgB,mEAAuC;IAAgB,cACvE;IADuE,6DACvE;;;IAKE,2BACC;IAAA,YACH;;;IAFgB,yEAA6C;IAC1D,cACH;IADG,mEACH;;;IAOI,2BACC;IAAA,YACH;;;IAFgB,yEAA6C;IAC1D,cACH;IADG,mEACH;;;IACE,YACF;;;IADE,oDACF;;;IASE,2BACC;IAAA,YACH;;;IAFgB,0EAA8C;IAC3D,cACH;IADG,oEACH;;;IACE,YACF;;;IADE,qDACF;;AA9FV,+EAA+E;AAC/E,IAAI,sBAAsB,GAAG,CAAC,CAAA;AAgC9B;;;;;;;;GAQG;AA2DH,MAAM,OAAO,aAAa;IACxB;;;;;;OAMG;IACM,OAAO,GAAG,4BAA4B,EAAE,sBAAsB,EAAE,CAAA;IAEzE;;;;;OAKG;IACM,aAAa,GAAG,cAAc,EAAE,CAAA;IAEzC,kFAAkF;IAClF,4EAA4E;IAC5E,uEAAuE;IACvE,0EAA0E;IAE1E,eAAe,CAAmC;IAElD,sFAAsF;IAC5C,SAAS,CAAiC;IAEpF,kCAAkC;IAClC,IAAI,GAA+B,KAAK,CAAA;IACxC,gCAAgC;IAChC,KAAK,CAA8B;IACnC,8CAA8C;IAC9C,WAAW,CAAoC;IAC/C,+CAA+C;IAC/C,YAAY,CAAqC;IACjD,8CAA8C;IAC9C,WAAW,CAAoC;IAC/C,gEAAgE;IAChE,WAAW,GAAuC,IAAI,CAAA;IACtD,iEAAiE;IACjE,OAAO,CAAgC;IAEvC,2DAA2D;IAClD,UAAU,GAAG,UAAU,CAAA;IAChC,gDAAgD;IACvC,QAAQ,GAAG,QAAQ,CAAA;IAC5B,4CAA4C;IACnC,OAAO,GAAG,OAAO,CAAA;IAE1B,qEAAqE;IAClD,KAAK,GAAG,IAAI,YAAY,
|
|
1
|
+
{"version":3,"file":"confirm-dialog.component.js","sourceRoot":"","sources":["../../src/components/confirm-dialog.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EACL,SAAS,EACT,UAAU,EAC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,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { ElementRef, type OnDestroy } from '@angular/core';
|
|
6
|
+
import { ElementRef, type OnChanges, type OnDestroy } from '@angular/core';
|
|
7
7
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
8
8
|
import { type HasElement } from '../utilities/element.js';
|
|
9
|
+
import { type FormFieldContext } from '../utilities/form-field-context.js';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "@molecule/app-angular";
|
|
11
12
|
/**
|
|
@@ -17,10 +18,10 @@ import * as i1 from "@molecule/app-angular";
|
|
|
17
18
|
* registered on the host as a {@link FormFieldContext} that the field
|
|
18
19
|
* components (`Input`, `Select`, `Textarea`, `Checkbox`) read.
|
|
19
20
|
*/
|
|
20
|
-
export declare class FormField implements OnDestroy, HasElement<HTMLDivElement> {
|
|
21
|
+
export declare class FormField implements OnChanges, OnDestroy, HasElement<HTMLDivElement> {
|
|
21
22
|
/** Field label. */
|
|
22
23
|
label?: string;
|
|
23
|
-
/** Field name
|
|
24
|
+
/** Field name. */
|
|
24
25
|
name?: string;
|
|
25
26
|
/** Error message (renders and associates via aria-describedby). */
|
|
26
27
|
error?: string;
|
|
@@ -42,8 +43,10 @@ export declare class FormField implements OnDestroy, HasElement<HTMLDivElement>
|
|
|
42
43
|
capture?: ElementRef<HTMLSpanElement>;
|
|
43
44
|
/** The label's `for` target (the single child's control id, read after view init). */
|
|
44
45
|
readonly labelFor: import("@angular/core").WritableSignal<string>;
|
|
45
|
-
/**
|
|
46
|
+
/** Distinct from other instances, including fields with the same submission name. */
|
|
46
47
|
private readonly generatedId;
|
|
48
|
+
/** Current accessibility inputs for projected components that render in their own views. */
|
|
49
|
+
readonly context: import("@angular/core").WritableSignal<FormFieldContext>;
|
|
47
50
|
private readonly host;
|
|
48
51
|
/** The element a caller's ref receives: the host `<div>`. */
|
|
49
52
|
readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
|
|
@@ -67,7 +70,7 @@ export declare class FormField implements OnDestroy, HasElement<HTMLDivElement>
|
|
|
67
70
|
*/
|
|
68
71
|
cm(): UIClassMap;
|
|
69
72
|
/**
|
|
70
|
-
* The
|
|
73
|
+
* The stable id supplied to a child that has no explicit id.
|
|
71
74
|
* @returns The id.
|
|
72
75
|
*/
|
|
73
76
|
fieldId(): string;
|
|
@@ -128,6 +131,12 @@ export declare class FormField implements OnDestroy, HasElement<HTMLDivElement>
|
|
|
128
131
|
* @param control - The native control element.
|
|
129
132
|
*/
|
|
130
133
|
private patchNativeControl;
|
|
134
|
+
/** Keeps projected fields and plain controls in sync with field validation. */
|
|
135
|
+
ngOnChanges(): void;
|
|
136
|
+
/** Merges validation with the projected control's latest native bindings. */
|
|
137
|
+
ngAfterContentChecked(): void;
|
|
138
|
+
/** Applies a field's label, description and validity after projected bindings run. */
|
|
139
|
+
private syncNativeControl;
|
|
131
140
|
/** Puts back the attributes a patched control had before this field cloned it. */
|
|
132
141
|
private unpatchNativeControl;
|
|
133
142
|
/** Removes the context registration (unmount). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.component.d.ts","sourceRoot":"","sources":["../../src/components/form-field.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"form-field.component.d.ts","sourceRoot":"","sources":["../../src/components/form-field.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,UAAU,EAEV,KAAK,SAAS,EACd,KAAK,SAAS,EAGf,MAAM,eAAe,CAAA;AAStB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,oCAAoC,CAAA;;;AAc3C;;;;;;;;GAQG;AACH,qBAqCa,SAAU,YAAW,SAAS,EAAE,SAAS,EAA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;;OAGG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;OAGG;IACH,iBAAiB,IAAI,MAAM,GAAG,SAAS;IAMvC;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B;;;OAGG;IACH,KAAK,IAAI,MAAM,GAAG,SAAS;IAS3B;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IAOjB;;;;;OAKG;IACH,WAAW,IAAI,OAAO;IAWtB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IAmCjB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAU1B,+EAA+E;IAC/E,WAAW,IAAI,IAAI;IAQnB,6EAA6E;IAC7E,qBAAqB,IAAI,IAAI;IAI7B,sFAAsF;IACtF,OAAO,CAAC,iBAAiB;IAsBzB,kFAAkF;IAClF,OAAO,CAAC,oBAAoB;IAY5B,kDAAkD;IAClD,WAAW,IAAI,IAAI;yCA1QR,SAAS;2CAAT,SAAS;CA6QrB"}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component, ElementRef, inject, signal, ViewChild } from '@angular/core';
|
|
6
|
+
import { Component, ElementRef, inject, signal, ViewChild, } from '@angular/core';
|
|
7
7
|
import { MolPlacement, placeContent, setElementPresent, usePlacement, } from '@molecule/app-angular';
|
|
8
8
|
import { getClassMap } from '@molecule/app-ui';
|
|
9
9
|
import { hostElement } from '../utilities/element.js';
|
|
10
|
-
import { FormFieldDomContext } from '../utilities/form-field-context.js';
|
|
10
|
+
import { descriptionIds, FormFieldDomContext, } from '../utilities/form-field-context.js';
|
|
11
11
|
import { nextInstanceId } from '../utilities/ids.js';
|
|
12
12
|
import { styleText } from '../utilities/style.js';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
@@ -22,7 +22,7 @@ function FormField_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
22
22
|
} if (rf & 2) {
|
|
23
23
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
24
24
|
i0.ɵɵclassMap(ctx_r0.cm().cn(ctx_r0.cm().label(i0.ɵɵpureFunction1(4, _c2, !!ctx_r0.required)), ctx_r0.cm().labelBlock));
|
|
25
|
-
i0.ɵɵattribute("for", ctx_r0.labelFor() || ctx_r0.fieldId());
|
|
25
|
+
i0.ɵɵattribute("for", ctx_r0.singleChild() ? ctx_r0.labelFor() || ctx_r0.fieldId() : ctx_r0.name || ctx_r0.fieldId());
|
|
26
26
|
i0.ɵɵadvance();
|
|
27
27
|
i0.ɵɵtextInterpolate(ctx_r0.label);
|
|
28
28
|
} }
|
|
@@ -49,7 +49,9 @@ function FormField_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
49
49
|
i0.ɵɵtextInterpolate(ctx_r0.hint);
|
|
50
50
|
} }
|
|
51
51
|
/** The native controls a single field child may render. */
|
|
52
|
-
const FIELD_SELECTOR = 'input, select, textarea';
|
|
52
|
+
const FIELD_SELECTOR = 'input:not([type="hidden"]), select, textarea';
|
|
53
|
+
/** Components that apply FormFieldDomContext to their own native control. */
|
|
54
|
+
const FIELD_COMPONENT = '[mol-input], [mol-select], [mol-textarea], [mol-checkbox]';
|
|
53
55
|
/** The attributes React's cloneElement sets on a single native control child. */
|
|
54
56
|
const PATCHED_ATTRIBUTES = ['id', 'aria-describedby', 'aria-invalid'];
|
|
55
57
|
/**
|
|
@@ -64,7 +66,7 @@ const PATCHED_ATTRIBUTES = ['id', 'aria-describedby', 'aria-invalid'];
|
|
|
64
66
|
export class FormField {
|
|
65
67
|
/** Field label. */
|
|
66
68
|
label;
|
|
67
|
-
/** Field name
|
|
69
|
+
/** Field name. */
|
|
68
70
|
name;
|
|
69
71
|
/** Error message (renders and associates via aria-describedby). */
|
|
70
72
|
error;
|
|
@@ -87,8 +89,11 @@ export class FormField {
|
|
|
87
89
|
/** The label's `for` target (the single child's control id, read after view init). */
|
|
88
90
|
labelFor = signal('', /* @ts-ignore */
|
|
89
91
|
...(ngDevMode ? [{ debugName: "labelFor" }] : /* istanbul ignore next */ []));
|
|
90
|
-
/**
|
|
92
|
+
/** Distinct from other instances, including fields with the same submission name. */
|
|
91
93
|
generatedId = nextInstanceId();
|
|
94
|
+
/** Current accessibility inputs for projected components that render in their own views. */
|
|
95
|
+
context = signal({}, /* @ts-ignore */
|
|
96
|
+
...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
|
|
92
97
|
host = inject(ElementRef);
|
|
93
98
|
/** The element a caller's ref receives: the host `<div>`. */
|
|
94
99
|
element = hostElement(this.host);
|
|
@@ -118,11 +123,11 @@ export class FormField {
|
|
|
118
123
|
return getClassMap();
|
|
119
124
|
}
|
|
120
125
|
/**
|
|
121
|
-
* The
|
|
126
|
+
* The stable id supplied to a child that has no explicit id.
|
|
122
127
|
* @returns The id.
|
|
123
128
|
*/
|
|
124
129
|
fieldId() {
|
|
125
|
-
return this.
|
|
130
|
+
return this.generatedId;
|
|
126
131
|
}
|
|
127
132
|
/**
|
|
128
133
|
* The error paragraph's id.
|
|
@@ -226,62 +231,85 @@ export class FormField {
|
|
|
226
231
|
// Angular inserts a list's nodes one at a time, and this runs after each:
|
|
227
232
|
// a second child arriving after the first makes the field "not single" again.
|
|
228
233
|
const single = children.length === 1 && first.nodeType === 1;
|
|
229
|
-
if (this.adopted === first && this.single === single) {
|
|
230
|
-
// The adopted control's own id may bind after the first run; keep the
|
|
231
|
-
// label pointed at it as it settles (React adopts the child's id).
|
|
232
|
-
const control = this.single
|
|
233
|
-
? this.host.nativeElement.querySelector(FIELD_SELECTOR)
|
|
234
|
-
: null;
|
|
235
|
-
this.labelFor.set(control?.id || this.fieldId());
|
|
236
|
-
setElementPresent(capture, false);
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
234
|
const host = this.host.nativeElement;
|
|
240
|
-
this.
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
if (single) {
|
|
246
|
-
const child = first;
|
|
247
|
-
const control = child.matches(FIELD_SELECTOR)
|
|
248
|
-
? child
|
|
249
|
-
: child.querySelector(FIELD_SELECTOR);
|
|
250
|
-
if (child.matches(FIELD_SELECTOR))
|
|
251
|
-
this.patchNativeControl(child);
|
|
252
|
-
this.labelFor.set(control?.id || this.fieldId());
|
|
235
|
+
if (this.adopted !== first || this.single !== single) {
|
|
236
|
+
this.singleState.set(single);
|
|
237
|
+
this.single = single;
|
|
238
|
+
this.adopted = first;
|
|
239
|
+
placeContent(capture, host, capture);
|
|
253
240
|
}
|
|
254
|
-
|
|
255
|
-
|
|
241
|
+
const controls = single ? host.querySelectorAll(FIELD_SELECTOR) : null;
|
|
242
|
+
const control = controls?.length === 1 ? controls[0] : undefined;
|
|
243
|
+
const native = control && !control.closest(FIELD_COMPONENT) ? control : undefined;
|
|
244
|
+
if (this.patched?.control !== native) {
|
|
245
|
+
this.unpatchNativeControl();
|
|
246
|
+
if (native)
|
|
247
|
+
this.patchNativeControl(native);
|
|
256
248
|
}
|
|
249
|
+
this.labelFor.set(control?.id || this.fieldId());
|
|
257
250
|
setElementPresent(capture, false);
|
|
258
|
-
this.adopted = first;
|
|
259
251
|
}
|
|
260
252
|
/**
|
|
261
253
|
* Applies React's cloned props to a plain native form control child.
|
|
262
254
|
* @param control - The native control element.
|
|
263
255
|
*/
|
|
264
256
|
patchNativeControl(control) {
|
|
265
|
-
|
|
266
|
-
control,
|
|
267
|
-
|
|
257
|
+
const attributes = {
|
|
258
|
+
id: control.getAttribute('id'),
|
|
259
|
+
'aria-describedby': control.getAttribute('aria-describedby'),
|
|
260
|
+
'aria-invalid': control.getAttribute('aria-invalid'),
|
|
261
|
+
};
|
|
262
|
+
this.patched = { control, attributes, applied: { ...attributes } };
|
|
263
|
+
this.syncNativeControl();
|
|
264
|
+
}
|
|
265
|
+
/** Keeps projected fields and plain controls in sync with field validation. */
|
|
266
|
+
ngOnChanges() {
|
|
267
|
+
this.context.set({
|
|
268
|
+
id: this.fieldId(),
|
|
269
|
+
describedBy: this.describedByTarget(),
|
|
270
|
+
invalid: !!this.error,
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
/** Merges validation with the projected control's latest native bindings. */
|
|
274
|
+
ngAfterContentChecked() {
|
|
275
|
+
this.syncNativeControl();
|
|
276
|
+
}
|
|
277
|
+
/** Applies a field's label, description and validity after projected bindings run. */
|
|
278
|
+
syncNativeControl() {
|
|
279
|
+
if (!this.patched)
|
|
280
|
+
return;
|
|
281
|
+
const { control, attributes, applied } = this.patched;
|
|
282
|
+
for (const name of PATCHED_ATTRIBUTES) {
|
|
283
|
+
const current = control.getAttribute(name);
|
|
284
|
+
if (current !== applied[name])
|
|
285
|
+
attributes[name] = current;
|
|
286
|
+
}
|
|
287
|
+
const next = {
|
|
288
|
+
id: attributes.id || this.fieldId(),
|
|
289
|
+
'aria-describedby': descriptionIds(attributes['aria-describedby'], this.describedByTarget()),
|
|
290
|
+
'aria-invalid': this.error ? 'true' : attributes['aria-invalid'],
|
|
268
291
|
};
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
292
|
+
for (const name of PATCHED_ATTRIBUTES) {
|
|
293
|
+
const value = next[name];
|
|
294
|
+
if (control.getAttribute(name) === value)
|
|
295
|
+
continue;
|
|
296
|
+
if (value === null)
|
|
297
|
+
control.removeAttribute(name);
|
|
298
|
+
else
|
|
299
|
+
control.setAttribute(name, value);
|
|
274
300
|
}
|
|
275
|
-
|
|
276
|
-
|
|
301
|
+
this.patched.applied = next;
|
|
302
|
+
this.labelFor.set(control.id);
|
|
277
303
|
}
|
|
278
304
|
/** Puts back the attributes a patched control had before this field cloned it. */
|
|
279
305
|
unpatchNativeControl() {
|
|
280
306
|
if (this.patched === null)
|
|
281
307
|
return;
|
|
282
|
-
const { control, attributes } = this.patched;
|
|
308
|
+
const { control, attributes, applied } = this.patched;
|
|
283
309
|
this.patched = null;
|
|
284
310
|
for (const name of PATCHED_ATTRIBUTES) {
|
|
311
|
+
if (control.getAttribute(name) !== applied[name])
|
|
312
|
+
continue;
|
|
285
313
|
const value = attributes[name];
|
|
286
314
|
if (value === null)
|
|
287
315
|
control.removeAttribute(name);
|
|
@@ -303,7 +331,7 @@ export class FormField {
|
|
|
303
331
|
i0.ɵɵattribute("data-testid", ctx.testId)("data-mol-id", ctx.molId());
|
|
304
332
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
305
333
|
i0.ɵɵclassMap(ctx.classes());
|
|
306
|
-
} }, inputs: { label: "label", name: "name", error: "error", hint: "hint", required: "required", className: "className", style: "style", testId: "testId", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c1, decls: 6, vars: 3, consts: [["capture", ""], [3, "class"], ["data-mol-field-capture", ""]], template: function FormField_Template(rf, ctx) { if (rf & 1) {
|
|
334
|
+
} }, inputs: { label: "label", name: "name", error: "error", hint: "hint", required: "required", className: "className", style: "style", testId: "testId", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement]), i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1, decls: 6, vars: 3, consts: [["capture", ""], [3, "class"], ["data-mol-field-capture", ""]], template: function FormField_Template(rf, ctx) { if (rf & 1) {
|
|
307
335
|
i0.ɵɵprojectionDef();
|
|
308
336
|
i0.ɵɵconditionalCreate(0, FormField_Conditional_0_Template, 2, 6, "label", 1);
|
|
309
337
|
i0.ɵɵdomElementStart(1, "span", 2, 0);
|
|
@@ -345,7 +373,7 @@ export class FormField {
|
|
|
345
373
|
},
|
|
346
374
|
template: `@if (label) {
|
|
347
375
|
<label
|
|
348
|
-
[attr.for]="labelFor() || fieldId()"
|
|
376
|
+
[attr.for]="singleChild() ? labelFor() || fieldId() : name || fieldId()"
|
|
349
377
|
[class]="cm().cn(cm().label({ required: !!required }), cm().labelBlock)"
|
|
350
378
|
>{{ label }}</label
|
|
351
379
|
>
|
|
@@ -362,7 +390,7 @@ export class FormField {
|
|
|
362
390
|
type: ViewChild,
|
|
363
391
|
args: ['capture']
|
|
364
392
|
}] }); })();
|
|
365
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormField, { className: "FormField", filePath: "components/form-field.component.ts", lineNumber:
|
|
393
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormField, { className: "FormField", filePath: "components/form-field.component.ts", lineNumber: 92 }); })();
|
|
366
394
|
/** The field context a `FormField` registers (React's cloned child props). */
|
|
367
395
|
class FormFieldContextValue {
|
|
368
396
|
field;
|
|
@@ -376,15 +404,15 @@ class FormFieldContextValue {
|
|
|
376
404
|
}
|
|
377
405
|
/** The field id (only for a single cloned child). */
|
|
378
406
|
get id() {
|
|
379
|
-
return this.field.singleChild() ? this.field.fieldId() : undefined;
|
|
407
|
+
return this.field.singleChild() ? (this.field.context().id ?? this.field.fieldId()) : undefined;
|
|
380
408
|
}
|
|
381
409
|
/** The error/hint target (only for a single cloned child). */
|
|
382
410
|
get describedBy() {
|
|
383
|
-
return this.field.singleChild() ? this.field.
|
|
411
|
+
return this.field.singleChild() ? this.field.context().describedBy : undefined;
|
|
384
412
|
}
|
|
385
413
|
/** Whether the field is invalid (only for a single cloned child). */
|
|
386
414
|
get invalid() {
|
|
387
|
-
return this.field.singleChild() ?
|
|
415
|
+
return this.field.singleChild() ? this.field.context().invalid : undefined;
|
|
388
416
|
}
|
|
389
417
|
}
|
|
390
418
|
//# sourceMappingURL=form-field.component.js.map
|