@molecule/app-ui-angular 1.4.2 → 1.5.1
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 +966 -1013
- package/dist/components/alert.component.d.ts +11 -16
- package/dist/components/alert.component.d.ts.map +1 -1
- package/dist/components/alert.component.js +22 -51
- package/dist/components/alert.component.js.map +1 -1
- package/dist/components/auth-guard.component.d.ts +36 -28
- package/dist/components/auth-guard.component.d.ts.map +1 -1
- package/dist/components/auth-guard.component.js +59 -67
- package/dist/components/auth-guard.component.js.map +1 -1
- package/dist/components/avatar.component.d.ts +13 -10
- package/dist/components/avatar.component.d.ts.map +1 -1
- package/dist/components/avatar.component.js +27 -25
- package/dist/components/avatar.component.js.map +1 -1
- package/dist/components/button.component.d.ts +26 -30
- package/dist/components/button.component.d.ts.map +1 -1
- package/dist/components/button.component.js +41 -75
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/checkbox.component.d.ts +5 -4
- package/dist/components/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox.component.js +14 -9
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/confirm-button.component.d.ts +11 -28
- package/dist/components/confirm-button.component.d.ts.map +1 -1
- package/dist/components/confirm-button.component.js +31 -63
- package/dist/components/confirm-button.component.js.map +1 -1
- package/dist/components/confirm-dialog.component.d.ts +28 -17
- package/dist/components/confirm-dialog.component.d.ts.map +1 -1
- package/dist/components/confirm-dialog.component.js +98 -69
- package/dist/components/confirm-dialog.component.js.map +1 -1
- package/dist/components/dropdown.component.d.ts +29 -16
- package/dist/components/dropdown.component.d.ts.map +1 -1
- package/dist/components/dropdown.component.js +134 -105
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/empty-state.component.d.ts +10 -15
- package/dist/components/empty-state.component.d.ts.map +1 -1
- package/dist/components/empty-state.component.js +23 -27
- package/dist/components/empty-state.component.js.map +1 -1
- package/dist/components/form-field.component.d.ts +26 -11
- package/dist/components/form-field.component.d.ts.map +1 -1
- package/dist/components/form-field.component.js +86 -25
- package/dist/components/form-field.component.js.map +1 -1
- package/dist/components/input.component.d.ts +20 -23
- package/dist/components/input.component.d.ts.map +1 -1
- package/dist/components/input.component.js +45 -54
- package/dist/components/input.component.js.map +1 -1
- package/dist/components/language-picker.component.d.ts +15 -18
- package/dist/components/language-picker.component.d.ts.map +1 -1
- package/dist/components/language-picker.component.js +25 -35
- package/dist/components/language-picker.component.js.map +1 -1
- package/dist/components/load-error-banner.component.d.ts +14 -26
- package/dist/components/load-error-banner.component.d.ts.map +1 -1
- package/dist/components/load-error-banner.component.js +28 -62
- package/dist/components/load-error-banner.component.js.map +1 -1
- package/dist/components/modal.component.d.ts +25 -21
- package/dist/components/modal.component.d.ts.map +1 -1
- package/dist/components/modal.component.js +42 -78
- package/dist/components/modal.component.js.map +1 -1
- package/dist/components/molecule/button.component.d.ts +13 -2
- package/dist/components/molecule/button.component.d.ts.map +1 -1
- package/dist/components/molecule/button.component.js +45 -15
- package/dist/components/molecule/button.component.js.map +1 -1
- package/dist/components/molecule/toast.component.d.ts +2 -1
- package/dist/components/molecule/toast.component.d.ts.map +1 -1
- package/dist/components/molecule/toast.component.js +9 -7
- package/dist/components/molecule/toast.component.js.map +1 -1
- package/dist/components/molecule/tooltip.component.d.ts +4 -2
- package/dist/components/molecule/tooltip.component.d.ts.map +1 -1
- package/dist/components/molecule/tooltip.component.js +19 -14
- package/dist/components/molecule/tooltip.component.js.map +1 -1
- package/dist/components/optimistic-toggle-button.component.d.ts +13 -25
- package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -1
- package/dist/components/optimistic-toggle-button.component.js +33 -63
- package/dist/components/optimistic-toggle-button.component.js.map +1 -1
- package/dist/components/page-header.component.d.ts +8 -13
- package/dist/components/page-header.component.d.ts.map +1 -1
- package/dist/components/page-header.component.js +16 -24
- package/dist/components/page-header.component.js.map +1 -1
- package/dist/components/page-shell.component.d.ts +8 -14
- package/dist/components/page-shell.component.d.ts.map +1 -1
- package/dist/components/page-shell.component.js +18 -28
- package/dist/components/page-shell.component.js.map +1 -1
- package/dist/components/panel-close.component.d.ts +14 -8
- package/dist/components/panel-close.component.d.ts.map +1 -1
- package/dist/components/panel-close.component.js +28 -17
- package/dist/components/panel-close.component.js.map +1 -1
- package/dist/components/prompt-dialog.component.d.ts +32 -10
- package/dist/components/prompt-dialog.component.d.ts.map +1 -1
- package/dist/components/prompt-dialog.component.js +110 -73
- package/dist/components/prompt-dialog.component.js.map +1 -1
- package/dist/components/responsive-app-shell.component.d.ts +34 -41
- package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
- package/dist/components/responsive-app-shell.component.js +126 -147
- package/dist/components/responsive-app-shell.component.js.map +1 -1
- package/dist/components/sidebar-user-card.component.d.ts +8 -12
- package/dist/components/sidebar-user-card.component.d.ts.map +1 -1
- package/dist/components/sidebar-user-card.component.js +19 -35
- package/dist/components/sidebar-user-card.component.js.map +1 -1
- package/dist/components/switch.component.d.ts +13 -8
- package/dist/components/switch.component.d.ts.map +1 -1
- package/dist/components/switch.component.js +29 -20
- package/dist/components/switch.component.js.map +1 -1
- package/dist/components/table.component.d.ts +22 -14
- package/dist/components/table.component.d.ts.map +1 -1
- package/dist/components/table.component.js +34 -32
- package/dist/components/table.component.js.map +1 -1
- package/dist/components/toast.component.d.ts +34 -30
- package/dist/components/toast.component.d.ts.map +1 -1
- package/dist/components/toast.component.js +74 -84
- package/dist/components/toast.component.js.map +1 -1
- package/dist/components/tooltip.component.d.ts +14 -11
- package/dist/components/tooltip.component.d.ts.map +1 -1
- package/dist/components/tooltip.component.js +47 -47
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/components/user-menu-popover.component.d.ts +6 -12
- package/dist/components/user-menu-popover.component.d.ts.map +1 -1
- package/dist/components/user-menu-popover.component.js +40 -77
- package/dist/components/user-menu-popover.component.js.map +1 -1
- package/dist/components/user-menu.component.d.ts +8 -11
- package/dist/components/user-menu.component.d.ts.map +1 -1
- package/dist/components/user-menu.component.js +19 -27
- package/dist/components/user-menu.component.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/utilities/dom-context.d.ts +62 -15
- package/dist/utilities/dom-context.d.ts.map +1 -1
- package/dist/utilities/dom-context.js +79 -34
- package/dist/utilities/dom-context.js.map +1 -1
- package/dist/utilities/form-field-context.d.ts +2 -0
- package/dist/utilities/form-field-context.d.ts.map +1 -1
- package/dist/utilities/form-field-context.js +4 -2
- package/dist/utilities/form-field-context.js.map +1 -1
- package/dist/utilities/node-value.d.ts +8 -0
- package/dist/utilities/node-value.d.ts.map +1 -1
- package/dist/utilities/node-value.js +10 -0
- package/dist/utilities/node-value.js.map +1 -1
- package/dist/utilities/rest-attrs.d.ts +2 -2
- package/dist/utilities/rest-attrs.js +1 -1
- package/package.json +3 -3
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component, ElementRef, inject,
|
|
6
|
+
import { Component, ElementRef, inject, ViewChild } from '@angular/core';
|
|
7
|
+
import { MolPlacement, setElementPresent, usePlacement, } from '@molecule/app-angular';
|
|
7
8
|
import { getClassMap } from '@molecule/app-ui';
|
|
8
9
|
import { hostElement } from '../utilities/element.js';
|
|
9
10
|
import { styleText } from '../utilities/style.js';
|
|
10
|
-
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "@molecule/app-angular";
|
|
12
13
|
const _c0 = ["iconSlot"];
|
|
13
14
|
const _c1 = ["actionSlot"];
|
|
14
15
|
const _c2 = [[["", "slot", "icon"]], [["", "slot", "action"]]];
|
|
@@ -29,8 +30,8 @@ function EmptyState_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
29
30
|
* Shown when a list or section has no data: an optional icon badge, a title,
|
|
30
31
|
* a description, and an optional action slot. React renders the icon/action
|
|
31
32
|
* wrapper divs only when those node props exist; here the wrappers always
|
|
32
|
-
* exist as projection capture points and are
|
|
33
|
-
* (
|
|
33
|
+
* exist as projection capture points and are taken out of the DOM when empty
|
|
34
|
+
* (`setElementPresent`).
|
|
34
35
|
*/
|
|
35
36
|
export class EmptyState {
|
|
36
37
|
/** An `icon` node prop (TemplateRef), when passed as a prop instead of a slot. */
|
|
@@ -55,10 +56,13 @@ export class EmptyState {
|
|
|
55
56
|
actionSlot;
|
|
56
57
|
hasIcon = false;
|
|
57
58
|
hasAction = false;
|
|
58
|
-
sync = new SlotWrapper(inject(ElementRef), inject(Renderer2));
|
|
59
59
|
host = inject(ElementRef);
|
|
60
60
|
/** The element a caller's ref receives: the host `<div>`. */
|
|
61
61
|
element = hostElement(this.host);
|
|
62
|
+
/** Detaches the icon and action wrappers React would not render. */
|
|
63
|
+
constructor() {
|
|
64
|
+
usePlacement((hasContent) => this.syncWrappers(hasContent));
|
|
65
|
+
}
|
|
62
66
|
/**
|
|
63
67
|
* The current class map.
|
|
64
68
|
* @returns The UIClassMap.
|
|
@@ -81,30 +85,21 @@ export class EmptyState {
|
|
|
81
85
|
return styleText(this.style);
|
|
82
86
|
}
|
|
83
87
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
88
|
+
* Applies React's `{icon && <div>…}` / `{action && <div>…}` conditions.
|
|
89
|
+
*
|
|
90
|
+
* @param hasContent - Reads whether a slot has content.
|
|
86
91
|
*/
|
|
87
|
-
|
|
92
|
+
syncWrappers(hasContent) {
|
|
88
93
|
this.hasIcon =
|
|
89
|
-
this.icon !== undefined && this.icon !== null
|
|
94
|
+
this.icon !== undefined && this.icon !== null
|
|
95
|
+
? true
|
|
96
|
+
: hasContent(this.iconSlot?.nativeElement);
|
|
90
97
|
this.hasAction =
|
|
91
98
|
this.action !== undefined && this.action !== null
|
|
92
99
|
? true
|
|
93
|
-
:
|
|
94
|
-
this.
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Re-reconciles wrappers on later passes.
|
|
98
|
-
*/
|
|
99
|
-
ngDoCheck() {
|
|
100
|
-
this.syncWrappers();
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Applies React's `{icon && <div>…}` / `{action && <div>…}` conditions.
|
|
104
|
-
*/
|
|
105
|
-
syncWrappers() {
|
|
106
|
-
this.sync.sync(this.iconSlot?.nativeElement, this.hasIcon);
|
|
107
|
-
this.sync.sync(this.actionSlot?.nativeElement, this.hasAction);
|
|
100
|
+
: hasContent(this.actionSlot?.nativeElement);
|
|
101
|
+
setElementPresent(this.iconSlot?.nativeElement, this.hasIcon);
|
|
102
|
+
setElementPresent(this.actionSlot?.nativeElement, this.hasAction);
|
|
108
103
|
}
|
|
109
104
|
static ɵfac = function EmptyState_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EmptyState)(); };
|
|
110
105
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EmptyState, selectors: [["div", "mol-empty-state", ""]], viewQuery: function EmptyState_Query(rf, ctx) { if (rf & 1) {
|
|
@@ -117,7 +112,7 @@ export class EmptyState {
|
|
|
117
112
|
i0.ɵɵattribute("title", null)("data-testid", ctx.testId)("data-mol-id", ctx.automationId);
|
|
118
113
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
119
114
|
i0.ɵɵclassMap(ctx.classes());
|
|
120
|
-
} }, inputs: { icon: "icon", title: "title", description: "description", action: "action", className: "className", style: "style", testId: "testId", automationId: "automationId" }, ngContentSelectors: _c3, decls: 9, vars: 8, consts: [["iconSlot", ""], ["actionSlot", ""], [3, "class"]], template: function EmptyState_Template(rf, ctx) { if (rf & 1) {
|
|
115
|
+
} }, inputs: { icon: "icon", title: "title", description: "description", action: "action", className: "className", style: "style", testId: "testId", automationId: "automationId" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c3, decls: 9, vars: 8, consts: [["iconSlot", ""], ["actionSlot", ""], [3, "class"]], template: function EmptyState_Template(rf, ctx) { if (rf & 1) {
|
|
121
116
|
i0.ɵɵprojectionDef(_c2);
|
|
122
117
|
i0.ɵɵdomElementStart(0, "div", null, 0);
|
|
123
118
|
i0.ɵɵprojection(2);
|
|
@@ -146,6 +141,7 @@ export class EmptyState {
|
|
|
146
141
|
args: [{
|
|
147
142
|
selector: 'div[mol-empty-state]',
|
|
148
143
|
standalone: true,
|
|
144
|
+
hostDirectives: [MolPlacement],
|
|
149
145
|
inputs: [
|
|
150
146
|
'icon',
|
|
151
147
|
'title',
|
|
@@ -176,12 +172,12 @@ export class EmptyState {
|
|
|
176
172
|
<ng-content select="[slot=action]"></ng-content>
|
|
177
173
|
</div>`,
|
|
178
174
|
}]
|
|
179
|
-
}],
|
|
175
|
+
}], () => [], { iconSlot: [{
|
|
180
176
|
type: ViewChild,
|
|
181
177
|
args: ['iconSlot']
|
|
182
178
|
}], actionSlot: [{
|
|
183
179
|
type: ViewChild,
|
|
184
180
|
args: ['actionSlot']
|
|
185
181
|
}] }); })();
|
|
186
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EmptyState, { className: "EmptyState", filePath: "components/empty-state.component.ts", lineNumber:
|
|
182
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EmptyState, { className: "EmptyState", filePath: "components/empty-state.component.ts", lineNumber: 64 }); })();
|
|
187
183
|
//# sourceMappingURL=empty-state.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-state.component.js","sourceRoot":"","sources":["../../src/components/empty-state.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"empty-state.component.js","sourceRoot":"","sources":["../../src/components/empty-state.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAExE,OAAO,EACL,YAAY,EACZ,iBAAiB,EAEjB,YAAY,GACb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ACR,WAAW;oBACX,OAAO;oBACP,QAAQ;oBACR,cAAc;iBACf;gBACD,IAAI,EAAE;oBACJ,8FAA8F;oBAC9F,2EAA2E;oBAC3E,cAAc,EAAE,MAAM;oBACtB,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,aAAa;oBACxB,oBAAoB,EAAE,QAAQ;oBAC9B,oBAAoB,EAAE,cAAc;iBACrC;gBACD,QAAQ,EAAE;;;;;;;;;WASD;aACV;;kBAoBE,SAAS;mBAAC,UAAU;;kBAEpB,SAAS;mBAAC,YAAY;;kFArBZ,UAAU"}
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { ElementRef, type OnDestroy } from '@angular/core';
|
|
7
7
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
8
8
|
import { type HasElement } from '../utilities/element.js';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@molecule/app-angular";
|
|
10
11
|
/**
|
|
11
12
|
* FormField component.
|
|
12
13
|
*
|
|
@@ -16,7 +17,7 @@ import * as i0 from "@angular/core";
|
|
|
16
17
|
* registered on the host as a {@link FormFieldContext} that the field
|
|
17
18
|
* components (`Input`, `Select`, `Textarea`, `Checkbox`) read.
|
|
18
19
|
*/
|
|
19
|
-
export declare class FormField implements
|
|
20
|
+
export declare class FormField implements OnDestroy, HasElement<HTMLDivElement> {
|
|
20
21
|
/** Field label. */
|
|
21
22
|
label?: string;
|
|
22
23
|
/** Field name (drives the ids). */
|
|
@@ -46,10 +47,18 @@ export declare class FormField implements AfterViewInit, OnDestroy, HasElement<H
|
|
|
46
47
|
private readonly host;
|
|
47
48
|
/** The element a caller's ref receives: the host `<div>`. */
|
|
48
49
|
readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Whether the children are one element (React clones only a single child), as
|
|
52
|
+
* the last placement run read them; null before it. A signal, so a child that
|
|
53
|
+
* reads the field context (Input's id) renders again when it changes.
|
|
54
|
+
*/
|
|
55
|
+
private readonly singleState;
|
|
56
|
+
/** The native control this field patched, with the attributes it had before. */
|
|
57
|
+
private patched;
|
|
58
|
+
/** The first projected node the last adoption saw: a different one is adopted again. */
|
|
59
|
+
private adopted;
|
|
60
|
+
/** Whether the adopted content was a single element child. */
|
|
61
|
+
private single;
|
|
53
62
|
/** Registers the field context before any projected child resolves it. */
|
|
54
63
|
constructor();
|
|
55
64
|
/**
|
|
@@ -93,14 +102,16 @@ export declare class FormField implements AfterViewInit, OnDestroy, HasElement<H
|
|
|
93
102
|
*/
|
|
94
103
|
molId(): string | undefined;
|
|
95
104
|
/**
|
|
96
|
-
* The capture span (a view query before
|
|
97
|
-
* the span lives directly under the host and is
|
|
105
|
+
* The capture span (a view query before the first render, a DOM lookup
|
|
106
|
+
* after — the span lives directly under the host and is detached once its
|
|
107
|
+
* content is adopted).
|
|
98
108
|
* @returns The capture element, or null.
|
|
99
109
|
*/
|
|
100
110
|
private captureEl;
|
|
101
111
|
/**
|
|
102
112
|
* Whether the projected content is exactly one element (React clones only a
|
|
103
|
-
* single child).
|
|
113
|
+
* single child). Set by each placement run, which reads the children where
|
|
114
|
+
* they render; before the first run they are still inside the capture span.
|
|
104
115
|
* @returns True for a single element child.
|
|
105
116
|
*/
|
|
106
117
|
singleChild(): boolean;
|
|
@@ -108,16 +119,20 @@ export declare class FormField implements AfterViewInit, OnDestroy, HasElement<H
|
|
|
108
119
|
* Adopts the projected children bare into the host (React renders them
|
|
109
120
|
* directly), resolves the label target from the single child's control and
|
|
110
121
|
* patches a plain native control child (React's cloneElement props).
|
|
122
|
+
*
|
|
123
|
+
* @param hasContent - Reads whether the slot has content.
|
|
111
124
|
*/
|
|
112
|
-
|
|
125
|
+
private reconcile;
|
|
113
126
|
/**
|
|
114
127
|
* Applies React's cloned props to a plain native form control child.
|
|
115
128
|
* @param control - The native control element.
|
|
116
129
|
*/
|
|
117
130
|
private patchNativeControl;
|
|
131
|
+
/** Puts back the attributes a patched control had before this field cloned it. */
|
|
132
|
+
private unpatchNativeControl;
|
|
118
133
|
/** Removes the context registration (unmount). */
|
|
119
134
|
ngOnDestroy(): void;
|
|
120
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormField, never>;
|
|
121
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormField, "div[mol-form-field]", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; }, {}, never, ["*"], true,
|
|
136
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormField, "div[mol-form-field]", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; }, {}, never, ["*"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
122
137
|
}
|
|
123
138
|
//# sourceMappingURL=form-field.component.d.ts.map
|
|
@@ -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;;;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;IACnC,8DAA8D;IAC9D,OAAO,CAAC,MAAM,CAAQ;IAEtB,0EAA0E;;IAM1E;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED;;;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;IA+CjB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAgB1B,kFAAkF;IAClF,OAAO,CAAC,oBAAoB;IAW5B,kDAAkD;IAClD,WAAW,IAAI,IAAI;yCAnPR,SAAS;2CAAT,SAAS;CAsPrB"}
|
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component, ElementRef, inject,
|
|
6
|
+
import { Component, ElementRef, inject, signal, ViewChild } from '@angular/core';
|
|
7
|
+
import { MolPlacement, placeContent, setElementPresent, usePlacement, } from '@molecule/app-angular';
|
|
7
8
|
import { getClassMap } from '@molecule/app-ui';
|
|
8
|
-
import { provideDomContext, removeDomContext } from '../utilities/dom-context.js';
|
|
9
9
|
import { hostElement } from '../utilities/element.js';
|
|
10
|
+
import { FormFieldDomContext } from '../utilities/form-field-context.js';
|
|
10
11
|
import { nextInstanceId } from '../utilities/ids.js';
|
|
11
12
|
import { styleText } from '../utilities/style.js';
|
|
12
|
-
import { SlotWrapper } from './button.component.js';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
|
+
import * as i1 from "@molecule/app-angular";
|
|
14
15
|
const _c0 = ["capture"];
|
|
15
16
|
const _c1 = ["*"];
|
|
16
17
|
const _c2 = a0 => ({ required: a0 });
|
|
@@ -49,6 +50,8 @@ function FormField_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
49
50
|
} }
|
|
50
51
|
/** The native controls a single field child may render. */
|
|
51
52
|
const FIELD_SELECTOR = 'input, select, textarea';
|
|
53
|
+
/** The attributes React's cloneElement sets on a single native control child. */
|
|
54
|
+
const PATCHED_ATTRIBUTES = ['id', 'aria-describedby', 'aria-invalid'];
|
|
52
55
|
/**
|
|
53
56
|
* FormField component.
|
|
54
57
|
*
|
|
@@ -89,13 +92,23 @@ export class FormField {
|
|
|
89
92
|
host = inject(ElementRef);
|
|
90
93
|
/** The element a caller's ref receives: the host `<div>`. */
|
|
91
94
|
element = hostElement(this.host);
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
/**
|
|
96
|
+
* Whether the children are one element (React clones only a single child), as
|
|
97
|
+
* the last placement run read them; null before it. A signal, so a child that
|
|
98
|
+
* reads the field context (Input's id) renders again when it changes.
|
|
99
|
+
*/
|
|
100
|
+
singleState = signal(null, /* @ts-ignore */
|
|
101
|
+
...(ngDevMode ? [{ debugName: "singleState" }] : /* istanbul ignore next */ []));
|
|
102
|
+
/** The native control this field patched, with the attributes it had before. */
|
|
103
|
+
patched = null;
|
|
104
|
+
/** The first projected node the last adoption saw: a different one is adopted again. */
|
|
105
|
+
adopted = null;
|
|
106
|
+
/** Whether the adopted content was a single element child. */
|
|
107
|
+
single = false;
|
|
96
108
|
/** Registers the field context before any projected child resolves it. */
|
|
97
109
|
constructor() {
|
|
98
|
-
|
|
110
|
+
FormFieldDomContext.provide(this.host.nativeElement, new FormFieldContextValue(this));
|
|
111
|
+
usePlacement((hasContent) => this.reconcile(hasContent));
|
|
99
112
|
}
|
|
100
113
|
/**
|
|
101
114
|
* The current class map.
|
|
@@ -161,8 +174,9 @@ export class FormField {
|
|
|
161
174
|
undefined);
|
|
162
175
|
}
|
|
163
176
|
/**
|
|
164
|
-
* The capture span (a view query before
|
|
165
|
-
* the span lives directly under the host and is
|
|
177
|
+
* The capture span (a view query before the first render, a DOM lookup
|
|
178
|
+
* after — the span lives directly under the host and is detached once its
|
|
179
|
+
* content is adopted).
|
|
166
180
|
* @returns The capture element, or null.
|
|
167
181
|
*/
|
|
168
182
|
captureEl() {
|
|
@@ -171,38 +185,65 @@ export class FormField {
|
|
|
171
185
|
}
|
|
172
186
|
/**
|
|
173
187
|
* Whether the projected content is exactly one element (React clones only a
|
|
174
|
-
* single child).
|
|
188
|
+
* single child). Set by each placement run, which reads the children where
|
|
189
|
+
* they render; before the first run they are still inside the capture span.
|
|
175
190
|
* @returns True for a single element child.
|
|
176
191
|
*/
|
|
177
192
|
singleChild() {
|
|
178
|
-
|
|
179
|
-
|
|
193
|
+
const single = this.singleState();
|
|
194
|
+
if (single !== null)
|
|
195
|
+
return single;
|
|
180
196
|
const capture = this.captureEl();
|
|
181
197
|
if (!capture)
|
|
182
198
|
return false;
|
|
183
199
|
const children = Array.from(capture.childNodes);
|
|
184
200
|
const elements = children.filter((node) => node.nodeType === 1);
|
|
185
201
|
const hasText = children.some((node) => node.nodeType === 3 && (node.textContent ?? '').trim());
|
|
186
|
-
|
|
187
|
-
return this.singleCache;
|
|
202
|
+
return elements.length === 1 && !hasText;
|
|
188
203
|
}
|
|
189
204
|
/**
|
|
190
205
|
* Adopts the projected children bare into the host (React renders them
|
|
191
206
|
* directly), resolves the label target from the single child's control and
|
|
192
207
|
* patches a plain native control child (React's cloneElement props).
|
|
208
|
+
*
|
|
209
|
+
* @param hasContent - Reads whether the slot has content.
|
|
193
210
|
*/
|
|
194
|
-
|
|
211
|
+
reconcile(hasContent) {
|
|
195
212
|
const capture = this.captureEl();
|
|
196
213
|
if (!capture)
|
|
197
214
|
return;
|
|
215
|
+
const children = hasContent.nodes(capture);
|
|
216
|
+
if (children.length === 0) {
|
|
217
|
+
this.adopted = null;
|
|
218
|
+
this.single = false;
|
|
219
|
+
this.singleState.set(null);
|
|
220
|
+
this.unpatchNativeControl();
|
|
221
|
+
this.labelFor.set(this.fieldId());
|
|
222
|
+
setElementPresent(capture, false);
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
const first = children[0];
|
|
226
|
+
// Angular inserts a list's nodes one at a time, and this runs after each:
|
|
227
|
+
// a second child arriving after the first makes the field "not single" again.
|
|
228
|
+
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
|
+
}
|
|
198
239
|
const host = this.host.nativeElement;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
240
|
+
this.singleState.set(single);
|
|
241
|
+
this.single = single;
|
|
242
|
+
placeContent(capture, host, capture);
|
|
243
|
+
// React renders a child it no longer clones with its own props.
|
|
244
|
+
this.unpatchNativeControl();
|
|
204
245
|
if (single) {
|
|
205
|
-
const child =
|
|
246
|
+
const child = first;
|
|
206
247
|
const control = child.matches(FIELD_SELECTOR)
|
|
207
248
|
? child
|
|
208
249
|
: child.querySelector(FIELD_SELECTOR);
|
|
@@ -213,13 +254,18 @@ export class FormField {
|
|
|
213
254
|
else {
|
|
214
255
|
this.labelFor.set(this.fieldId());
|
|
215
256
|
}
|
|
216
|
-
|
|
257
|
+
setElementPresent(capture, false);
|
|
258
|
+
this.adopted = first;
|
|
217
259
|
}
|
|
218
260
|
/**
|
|
219
261
|
* Applies React's cloned props to a plain native form control child.
|
|
220
262
|
* @param control - The native control element.
|
|
221
263
|
*/
|
|
222
264
|
patchNativeControl(control) {
|
|
265
|
+
this.patched = {
|
|
266
|
+
control,
|
|
267
|
+
attributes: Object.fromEntries(PATCHED_ATTRIBUTES.map((name) => [name, control.getAttribute(name)])),
|
|
268
|
+
};
|
|
223
269
|
control.setAttribute('id', this.fieldId());
|
|
224
270
|
const describedBy = this.describedByTarget();
|
|
225
271
|
if (describedBy) {
|
|
@@ -229,9 +275,23 @@ export class FormField {
|
|
|
229
275
|
if (this.error)
|
|
230
276
|
control.setAttribute('aria-invalid', 'true');
|
|
231
277
|
}
|
|
278
|
+
/** Puts back the attributes a patched control had before this field cloned it. */
|
|
279
|
+
unpatchNativeControl() {
|
|
280
|
+
if (this.patched === null)
|
|
281
|
+
return;
|
|
282
|
+
const { control, attributes } = this.patched;
|
|
283
|
+
this.patched = null;
|
|
284
|
+
for (const name of PATCHED_ATTRIBUTES) {
|
|
285
|
+
const value = attributes[name];
|
|
286
|
+
if (value === null)
|
|
287
|
+
control.removeAttribute(name);
|
|
288
|
+
else
|
|
289
|
+
control.setAttribute(name, value);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
232
292
|
/** Removes the context registration (unmount). */
|
|
233
293
|
ngOnDestroy() {
|
|
234
|
-
|
|
294
|
+
FormFieldDomContext.remove(this.host.nativeElement);
|
|
235
295
|
}
|
|
236
296
|
static ɵfac = function FormField_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FormField)(); };
|
|
237
297
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormField, selectors: [["div", "mol-form-field", ""]], viewQuery: function FormField_Query(rf, ctx) { if (rf & 1) {
|
|
@@ -243,7 +303,7 @@ export class FormField {
|
|
|
243
303
|
i0.ɵɵattribute("data-testid", ctx.testId)("data-mol-id", ctx.molId());
|
|
244
304
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
245
305
|
i0.ɵɵclassMap(ctx.classes());
|
|
246
|
-
} }, 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"] }, ngContentSelectors: _c1, decls: 6, vars: 3, consts: [["capture", ""], [3, "class"], ["data-mol-field-capture", ""]], template: function FormField_Template(rf, ctx) { if (rf & 1) {
|
|
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) {
|
|
247
307
|
i0.ɵɵprojectionDef();
|
|
248
308
|
i0.ɵɵconditionalCreate(0, FormField_Conditional_0_Template, 2, 6, "label", 1);
|
|
249
309
|
i0.ɵɵdomElementStart(1, "span", 2, 0);
|
|
@@ -264,6 +324,7 @@ export class FormField {
|
|
|
264
324
|
args: [{
|
|
265
325
|
selector: 'div[mol-form-field]',
|
|
266
326
|
standalone: true,
|
|
327
|
+
hostDirectives: [MolPlacement],
|
|
267
328
|
inputs: [
|
|
268
329
|
'label',
|
|
269
330
|
'name',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.component.js","sourceRoot":"","sources":["../../src/components/form-field.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"form-field.component.js","sourceRoot":"","sources":["../../src/components/form-field.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAkB,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEhG,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,iBAAiB,EAEjB,YAAY,GACb,MAAM,uBAAuB,CAA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@
|
|
|
1
|
-
import { type AfterViewChecked,
|
|
1
|
+
import { type AfterViewChecked, ElementRef, EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import type { FocusEventHandler, KeyboardEventHandler, Size, UIClassMap } from '@molecule/app-ui';
|
|
3
3
|
import type { HasElement } from '../utilities/element.js';
|
|
4
4
|
import type { FormFieldContext } from '../utilities/form-field-context.js';
|
|
5
5
|
import { type ResolvedIcon } from '../utilities/render-icon.js';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@molecule/app-angular";
|
|
7
8
|
/**
|
|
8
9
|
* Input component.
|
|
9
10
|
*
|
|
@@ -13,10 +14,10 @@ import * as i0 from "@angular/core";
|
|
|
13
14
|
*
|
|
14
15
|
* The adornment wrappers React renders conditionally
|
|
15
16
|
* (`{!!leftElement && <div …>}` / `{(rightElement || (clearable && value)) && …}`)
|
|
16
|
-
* are always-mounted `<ng-content>` capture points that are
|
|
17
|
-
* DOM whenever React would render nothing (
|
|
17
|
+
* are always-mounted `<ng-content>` capture points that are taken out of the
|
|
18
|
+
* DOM whenever React would render nothing (`setElementPresent`).
|
|
18
19
|
*/
|
|
19
|
-
export declare class Input implements AfterViewChecked,
|
|
20
|
+
export declare class Input implements AfterViewChecked, HasElement<HTMLInputElement> {
|
|
20
21
|
/** Input type. */
|
|
21
22
|
type?: string;
|
|
22
23
|
/** Input size. */
|
|
@@ -85,6 +86,11 @@ export declare class Input implements AfterViewChecked, DoCheck, HasElement<HTML
|
|
|
85
86
|
/** The right adornment inner span (React's ternary else branch). */
|
|
86
87
|
rightInner?: ElementRef<HTMLSpanElement>;
|
|
87
88
|
private readonly host;
|
|
89
|
+
/** Whether an adornment wrapper renders on each side (signals the class list reads). */
|
|
90
|
+
private readonly hasLeft;
|
|
91
|
+
private readonly hasRight;
|
|
92
|
+
/** Attaches or detaches each adornment wrapper exactly when React renders it. */
|
|
93
|
+
constructor();
|
|
88
94
|
/** The per-instance id used when the caller gives no `id` or `name` (React's `useId`). */
|
|
89
95
|
private readonly generatedId;
|
|
90
96
|
/**
|
|
@@ -93,10 +99,6 @@ export declare class Input implements AfterViewChecked, DoCheck, HasElement<HTML
|
|
|
93
99
|
* does not).
|
|
94
100
|
*/
|
|
95
101
|
private readonly i18n;
|
|
96
|
-
private readonly sync;
|
|
97
|
-
private readonly parents;
|
|
98
|
-
private hasLeft;
|
|
99
|
-
private hasRight;
|
|
100
102
|
private movedRest;
|
|
101
103
|
/** The `aria-describedby` the caller spread onto the host (React's rest). */
|
|
102
104
|
private restDescribedBy;
|
|
@@ -175,23 +177,18 @@ export declare class Input implements AfterViewChecked, DoCheck, HasElement<HTML
|
|
|
175
177
|
*/
|
|
176
178
|
ngAfterViewChecked(): void;
|
|
177
179
|
/**
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* runs before the template bindings of the same pass, so the first render
|
|
184
|
-
* already carries the right padding classes.
|
|
180
|
+
* Attaches or detaches each adornment wrapper exactly when React renders
|
|
181
|
+
* it. The input's class list reads the presence signals, so the padding
|
|
182
|
+
* classes follow.
|
|
183
|
+
*
|
|
184
|
+
* @param hasContent - Reads whether a slot has content.
|
|
185
185
|
*/
|
|
186
|
-
|
|
186
|
+
private syncAdornments;
|
|
187
187
|
/**
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
* @param el - The wrapper element.
|
|
192
|
-
* @returns The original parent, if known.
|
|
188
|
+
* Moves the caller's rest attributes onto the input and keeps its controlled
|
|
189
|
+
* value in step with the `value` input.
|
|
193
190
|
*/
|
|
194
|
-
|
|
191
|
+
ngDoCheck(): void;
|
|
195
192
|
/**
|
|
196
193
|
* Casts a node-valued input to its TemplateRef form (the adapter projects
|
|
197
194
|
* node props as templates).
|
|
@@ -215,6 +212,6 @@ export declare class Input implements AfterViewChecked, DoCheck, HasElement<HTML
|
|
|
215
212
|
*/
|
|
216
213
|
private isGiven;
|
|
217
214
|
static ɵfac: i0.ɵɵFactoryDeclaration<Input, never>;
|
|
218
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Input, "div[mol-input]", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "align": { "alias": "align"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "leftElement": { "alias": "leftElement"; "required": false; }; "rightElement": { "alias": "rightElement"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "clearLabel": { "alias": "clearLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "name": { "alias": "name"; "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"; "clear": "clear"; }, never, ["[slot=leftElement]", "[slot=rightElement]"], true,
|
|
215
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Input, "div[mol-input]", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "align": { "alias": "align"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "leftElement": { "alias": "leftElement"; "required": false; }; "rightElement": { "alias": "rightElement"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "clearLabel": { "alias": "clearLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "name": { "alias": "name"; "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"; "clear": "clear"; }, never, ["[slot=leftElement]", "[slot=rightElement]"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
219
216
|
}
|
|
220
217
|
//# sourceMappingURL=input.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.component.d.ts","sourceRoot":"","sources":["../../src/components/input.component.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,gBAAgB,EAErB,
|
|
1
|
+
{"version":3,"file":"input.component.d.ts","sourceRoot":"","sources":["../../src/components/input.component.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,gBAAgB,EAErB,UAAU,EACV,YAAY,EAIZ,WAAW,EAEZ,MAAM,eAAe,CAAA;AAStB,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGjG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AAG1E,OAAO,EAAc,KAAK,YAAY,EAAe,MAAM,6BAA6B,CAAA;;;AAQxF;;;;;;;;;;;GAWG;AACH,qBAoGa,KAAM,YAAW,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAC1E,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,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