@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,21 +3,24 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component, EventEmitter, Output, ViewChild, } from '@angular/core';
|
|
7
|
-
import { useTranslation } from '@molecule/app-angular';
|
|
6
|
+
import { Component, ElementRef, EventEmitter, inject, Output, signal, ViewChild, } from '@angular/core';
|
|
7
|
+
import { MolPlacement, setElementPresent, setHostRoot, usePlacement, useTranslation, } from '@molecule/app-angular';
|
|
8
8
|
import { getClassMap } from '@molecule/app-ui';
|
|
9
9
|
import { nextInstanceId } from '../utilities/ids.js';
|
|
10
|
-
import { asTemplate, isGiven, nodeText } from '../utilities/node-value.js';
|
|
11
|
-
import { Button
|
|
10
|
+
import { asTemplate, isGiven, nodeText, rendersNode } from '../utilities/node-value.js';
|
|
11
|
+
import { Button } from './button.component.js';
|
|
12
12
|
import { Modal } from './modal.component.js';
|
|
13
13
|
import { MolTemplateOutlet } from './template-outlet.directive.js';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
|
+
import * as i1 from "@molecule/app-angular";
|
|
15
16
|
const _c0 = ["descriptionSlot"];
|
|
16
|
-
const _c1 = [
|
|
17
|
-
const _c2 = ["
|
|
18
|
-
const _c3 =
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
const _c1 = ["titleSlot"];
|
|
18
|
+
const _c2 = ["modal"];
|
|
19
|
+
const _c3 = [[["", "slot", "title"]], [["", "slot", "description"]], "*"];
|
|
20
|
+
const _c4 = ["[slot=title]", "[slot=description]", "*"];
|
|
21
|
+
const _c5 = () => ({ justify: "end", gap: "sm" });
|
|
22
|
+
function ConfirmDialog_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
i0.ɵɵelementContainer(0, 6);
|
|
21
24
|
i0.ɵɵtext(1);
|
|
22
25
|
} if (rf & 2) {
|
|
23
26
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -25,8 +28,8 @@ function ConfirmDialog_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
25
28
|
i0.ɵɵadvance();
|
|
26
29
|
i0.ɵɵtextInterpolate1("", ctx_r0.nodeText(ctx_r0.title), " ");
|
|
27
30
|
} }
|
|
28
|
-
function
|
|
29
|
-
i0.ɵɵelementContainer(0,
|
|
31
|
+
function ConfirmDialog_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
+
i0.ɵɵelementContainer(0, 6);
|
|
30
33
|
i0.ɵɵtext(1);
|
|
31
34
|
} if (rf & 2) {
|
|
32
35
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -34,8 +37,8 @@ function ConfirmDialog_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
34
37
|
i0.ɵɵadvance();
|
|
35
38
|
i0.ɵɵtextInterpolate1("", ctx_r0.nodeText(ctx_r0.description), " ");
|
|
36
39
|
} }
|
|
37
|
-
function
|
|
38
|
-
i0.ɵɵelementContainer(0,
|
|
40
|
+
function ConfirmDialog_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
41
|
+
i0.ɵɵelementContainer(0, 6);
|
|
39
42
|
i0.ɵɵtext(1);
|
|
40
43
|
} if (rf & 2) {
|
|
41
44
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -43,14 +46,14 @@ function ConfirmDialog_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
|
43
46
|
i0.ɵɵadvance();
|
|
44
47
|
i0.ɵɵtextInterpolate1("", ctx_r0.nodeText(ctx_r0.cancelLabel), " ");
|
|
45
48
|
} }
|
|
46
|
-
function
|
|
49
|
+
function ConfirmDialog_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
47
50
|
i0.ɵɵtext(0);
|
|
48
51
|
} if (rf & 2) {
|
|
49
52
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
50
53
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.cancelText(), " ");
|
|
51
54
|
} }
|
|
52
|
-
function
|
|
53
|
-
i0.ɵɵelementContainer(0,
|
|
55
|
+
function ConfirmDialog_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
56
|
+
i0.ɵɵelementContainer(0, 6);
|
|
54
57
|
i0.ɵɵtext(1);
|
|
55
58
|
} if (rf & 2) {
|
|
56
59
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -58,7 +61,7 @@ function ConfirmDialog_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
|
58
61
|
i0.ɵɵadvance();
|
|
59
62
|
i0.ɵɵtextInterpolate1("", ctx_r0.nodeText(ctx_r0.confirmLabel), " ");
|
|
60
63
|
} }
|
|
61
|
-
function
|
|
64
|
+
function ConfirmDialog_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
62
65
|
i0.ɵɵtext(0);
|
|
63
66
|
} if (rf & 2) {
|
|
64
67
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -71,22 +74,22 @@ let confirmDialogInstances = 0;
|
|
|
71
74
|
*
|
|
72
75
|
* Composed from `Modal` and `Button` exactly as React composes them; the
|
|
73
76
|
* dialog's own title/description/children are projected content (`[slot=title]`,
|
|
74
|
-
* `[slot=description]`, default) or node-valued inputs.
|
|
75
|
-
*
|
|
77
|
+
* `[slot=description]`, default) or node-valued inputs. React's root is a
|
|
78
|
+
* `Modal`, which renders a portal while open and nothing while closed, so the
|
|
79
|
+
* host element leaves the page and the portal renders in `document.body`.
|
|
76
80
|
*/
|
|
77
81
|
export class ConfirmDialog {
|
|
78
82
|
/**
|
|
79
83
|
* Per-instance id of the rendered title heading, wired as the dialog's
|
|
80
|
-
* accessible name: the binding on `<mol-modal>`
|
|
81
|
-
*
|
|
84
|
+
* accessible name: the binding on `<mol-modal>` reaches the dialog `<div>`,
|
|
85
|
+
* React's `{...rest}` target (Modal names it with `setHostRoot`) —
|
|
82
86
|
* `aria-labelledby` pointing at the visible `<h2>` (WAI-ARIA dialog
|
|
83
87
|
* pattern; axe `aria-dialog-name`).
|
|
84
88
|
*/
|
|
85
89
|
titleId = `mol-confirm-dialog-title-${++confirmDialogInstances}`;
|
|
86
90
|
/**
|
|
87
91
|
* Per-instance id of the rendered description paragraph, wired as the
|
|
88
|
-
* dialog's accessible description
|
|
89
|
-
* the title (only bound when projected description content renders — a
|
|
92
|
+
* dialog's accessible description the same way as the title (only bound when projected description content renders — a
|
|
90
93
|
* reference to an empty paragraph describes nothing, axe
|
|
91
94
|
* `aria-dialog-name`/`aria-valid-attr-value`).
|
|
92
95
|
*/
|
|
@@ -96,6 +99,8 @@ export class ConfirmDialog {
|
|
|
96
99
|
// are readable on the FIRST change-detection pass — a non-static query
|
|
97
100
|
// resolves after view init, one pass too late for the description wiring.
|
|
98
101
|
descriptionSlot;
|
|
102
|
+
/** The title heading (its projected nodes decide whether the dialog points at it). */
|
|
103
|
+
titleSlot;
|
|
99
104
|
/** Whether the dialog is open. */
|
|
100
105
|
open = false;
|
|
101
106
|
/** Title (node-valued prop). */
|
|
@@ -135,21 +140,35 @@ export class ConfirmDialog {
|
|
|
135
140
|
}
|
|
136
141
|
/**
|
|
137
142
|
* The dialog's accessible description id, or null when no description
|
|
138
|
-
* content renders. A
|
|
139
|
-
*
|
|
140
|
-
* value forever. Re-read each pass from the projected description nodes.
|
|
143
|
+
* content renders. A signal the template reads, so the association follows
|
|
144
|
+
* the projected description in the pass where it changes.
|
|
141
145
|
*/
|
|
142
|
-
ariaDescribedBy = null
|
|
146
|
+
ariaDescribedBy = signal(null, /* @ts-ignore */
|
|
147
|
+
...(ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
|
|
143
148
|
/**
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
* later change to what renders is picked up on the next pass.
|
|
149
|
+
* The title heading's id, which the dialog's `aria-labelledby` points at, or null while the title
|
|
150
|
+
* renders nothing (React's `slot(title)`): a heading with no text names nothing.
|
|
147
151
|
*/
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
152
|
+
ariaLabelledBy = signal(null, /* @ts-ignore */
|
|
153
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
154
|
+
/** The composed Modal's element: what the caller binds on this tag lands there, and Modal passes it to its dialog. */
|
|
155
|
+
modalElement;
|
|
156
|
+
host = inject(ElementRef);
|
|
157
|
+
/**
|
|
158
|
+
* Recomputes {@link ariaLabelledBy} and {@link ariaDescribedBy} from the
|
|
159
|
+
* title and description inputs and their projected nodes in
|
|
160
|
+
* the placement function, and takes the host out of the page (React renders
|
|
161
|
+
* the composed `Modal`'s portal in `document.body`, nothing here).
|
|
162
|
+
*/
|
|
163
|
+
constructor() {
|
|
164
|
+
usePlacement((hasContent) => {
|
|
165
|
+
this.ariaLabelledBy.set(rendersNode(this.title) || hasContent(this.titleSlot?.nativeElement) ? this.titleId : null);
|
|
166
|
+
this.ariaDescribedBy.set(rendersNode(this.description) || hasContent(this.descriptionSlot?.nativeElement)
|
|
151
167
|
? this.descriptionId
|
|
152
|
-
: null;
|
|
168
|
+
: null);
|
|
169
|
+
setElementPresent(this.host.nativeElement, false);
|
|
170
|
+
setHostRoot(this.host.nativeElement, this.modalElement?.nativeElement);
|
|
171
|
+
});
|
|
153
172
|
}
|
|
154
173
|
/**
|
|
155
174
|
* The cancel button's label.
|
|
@@ -174,56 +193,58 @@ export class ConfirmDialog {
|
|
|
174
193
|
}
|
|
175
194
|
static ɵfac = function ConfirmDialog_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ConfirmDialog)(); };
|
|
176
195
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmDialog, selectors: [["mol-confirm-dialog"]], viewQuery: function ConfirmDialog_Query(rf, ctx) { if (rf & 1) {
|
|
177
|
-
i0.ɵɵviewQuery(_c0, 7);
|
|
196
|
+
i0.ɵɵviewQuery(_c0, 7)(_c1, 7)(_c2, 5, ElementRef);
|
|
178
197
|
} if (rf & 2) {
|
|
179
198
|
let _t;
|
|
180
199
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.descriptionSlot = _t.first);
|
|
181
|
-
|
|
182
|
-
i0.ɵɵ
|
|
183
|
-
|
|
200
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.titleSlot = _t.first);
|
|
201
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modalElement = _t.first);
|
|
202
|
+
} }, inputs: { open: "open", title: "title", description: "description", confirmLabel: "confirmLabel", cancelLabel: "cancelLabel", destructive: "destructive", loading: "loading" }, outputs: { close: "close", confirm: "confirm" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c4, decls: 19, vars: 23, consts: [["modal", ""], ["titleSlot", ""], ["descriptionSlot", ""], [3, "close", "open"], ["mol-button", "", 3, "click", "variant", "disabled"], ["mol-button", "", 3, "click", "variant", "color", "disabled"], [3, "molTemplateOutlet"]], template: function ConfirmDialog_Template(rf, ctx) { if (rf & 1) {
|
|
203
|
+
i0.ɵɵprojectionDef(_c3);
|
|
204
|
+
i0.ɵɵelementStart(0, "mol-modal", 3, 0);
|
|
184
205
|
i0.ɵɵlistener("close", function ConfirmDialog_Template_mol_modal_close_0_listener($event) { return ctx.close.emit($event); });
|
|
185
|
-
i0.ɵɵelementStart(
|
|
186
|
-
i0.ɵɵconditionalCreate(
|
|
187
|
-
i0.ɵɵprojection(
|
|
206
|
+
i0.ɵɵelementStart(2, "div")(3, "h2", null, 1);
|
|
207
|
+
i0.ɵɵconditionalCreate(5, ConfirmDialog_Conditional_5_Template, 2, 2);
|
|
208
|
+
i0.ɵɵprojection(6);
|
|
188
209
|
i0.ɵɵelementEnd();
|
|
189
|
-
i0.ɵɵelementStart(
|
|
190
|
-
i0.ɵɵconditionalCreate(
|
|
191
|
-
i0.ɵɵprojection(
|
|
210
|
+
i0.ɵɵelementStart(7, "p", null, 2);
|
|
211
|
+
i0.ɵɵconditionalCreate(9, ConfirmDialog_Conditional_9_Template, 2, 2);
|
|
212
|
+
i0.ɵɵprojection(10, 1);
|
|
192
213
|
i0.ɵɵelementEnd();
|
|
193
|
-
i0.ɵɵprojection(
|
|
194
|
-
i0.ɵɵelementStart(
|
|
195
|
-
i0.ɵɵlistener("click", function
|
|
196
|
-
i0.ɵɵconditionalCreate(
|
|
214
|
+
i0.ɵɵprojection(11, 2);
|
|
215
|
+
i0.ɵɵelementStart(12, "div")(13, "button", 4);
|
|
216
|
+
i0.ɵɵlistener("click", function ConfirmDialog_Template_button_click_13_listener($event) { return ctx.close.emit($event); });
|
|
217
|
+
i0.ɵɵconditionalCreate(14, ConfirmDialog_Conditional_14_Template, 2, 2)(15, ConfirmDialog_Conditional_15_Template, 1, 1);
|
|
197
218
|
i0.ɵɵelementEnd();
|
|
198
|
-
i0.ɵɵelementStart(
|
|
199
|
-
i0.ɵɵlistener("click", function
|
|
200
|
-
i0.ɵɵconditionalCreate(
|
|
219
|
+
i0.ɵɵelementStart(16, "button", 5);
|
|
220
|
+
i0.ɵɵlistener("click", function ConfirmDialog_Template_button_click_16_listener() { return ctx.confirm.emit(); });
|
|
221
|
+
i0.ɵɵconditionalCreate(17, ConfirmDialog_Conditional_17_Template, 2, 2)(18, ConfirmDialog_Conditional_18_Template, 1, 1);
|
|
201
222
|
i0.ɵɵelementEnd()()()();
|
|
202
223
|
} if (rf & 2) {
|
|
203
224
|
i0.ɵɵproperty("open", ctx.open);
|
|
204
|
-
i0.ɵɵattribute("aria-labelledby", ctx.
|
|
205
|
-
i0.ɵɵadvance();
|
|
225
|
+
i0.ɵɵattribute("aria-labelledby", ctx.ariaLabelledBy())("aria-describedby", ctx.ariaDescribedBy());
|
|
226
|
+
i0.ɵɵadvance(2);
|
|
206
227
|
i0.ɵɵclassMap(ctx.cm().stack(3));
|
|
207
228
|
i0.ɵɵadvance();
|
|
208
229
|
i0.ɵɵclassMap(ctx.cm().cn(ctx.cm().textSize("lg"), ctx.cm().fontWeight("bold")));
|
|
209
|
-
i0.ɵɵattribute("id", ctx.
|
|
210
|
-
i0.ɵɵadvance();
|
|
211
|
-
i0.ɵɵconditional(ctx.isGiven(ctx.title) ?
|
|
230
|
+
i0.ɵɵattribute("id", ctx.ariaLabelledBy());
|
|
231
|
+
i0.ɵɵadvance(2);
|
|
232
|
+
i0.ɵɵconditional(ctx.isGiven(ctx.title) ? 5 : -1);
|
|
212
233
|
i0.ɵɵadvance(2);
|
|
213
234
|
i0.ɵɵclassMap(ctx.cm().textSize("sm"));
|
|
214
235
|
i0.ɵɵattribute("id", ctx.descriptionId);
|
|
215
236
|
i0.ɵɵadvance(2);
|
|
216
|
-
i0.ɵɵconditional(ctx.isGiven(ctx.description) ?
|
|
237
|
+
i0.ɵɵconditional(ctx.isGiven(ctx.description) ? 9 : -1);
|
|
217
238
|
i0.ɵɵadvance(3);
|
|
218
|
-
i0.ɵɵclassMap(ctx.cm().flex(i0.ɵɵpureFunction0(22,
|
|
239
|
+
i0.ɵɵclassMap(ctx.cm().flex(i0.ɵɵpureFunction0(22, _c5)));
|
|
219
240
|
i0.ɵɵadvance();
|
|
220
241
|
i0.ɵɵproperty("variant", "ghost")("disabled", !!ctx.loading);
|
|
221
242
|
i0.ɵɵadvance();
|
|
222
|
-
i0.ɵɵconditional(ctx.isGiven(ctx.cancelLabel) ?
|
|
243
|
+
i0.ɵɵconditional(ctx.isGiven(ctx.cancelLabel) ? 14 : 15);
|
|
223
244
|
i0.ɵɵadvance(2);
|
|
224
245
|
i0.ɵɵproperty("variant", "solid")("color", ctx.destructive === false ? "primary" : "error")("disabled", !!ctx.loading);
|
|
225
246
|
i0.ɵɵadvance();
|
|
226
|
-
i0.ɵɵconditional(ctx.isGiven(ctx.confirmLabel) && !ctx.loading ?
|
|
247
|
+
i0.ɵɵconditional(ctx.isGiven(ctx.confirmLabel) && !ctx.loading ? 17 : 18);
|
|
227
248
|
} }, dependencies: [Button, Modal, MolTemplateOutlet], encapsulation: 2 });
|
|
228
249
|
}
|
|
229
250
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfirmDialog, [{
|
|
@@ -231,20 +252,22 @@ export class ConfirmDialog {
|
|
|
231
252
|
args: [{
|
|
232
253
|
selector: 'mol-confirm-dialog',
|
|
233
254
|
standalone: true,
|
|
255
|
+
hostDirectives: [MolPlacement],
|
|
234
256
|
imports: [Button, Modal, MolTemplateOutlet],
|
|
235
257
|
inputs: ['open', 'title', 'description', 'confirmLabel', 'cancelLabel', 'destructive', 'loading'],
|
|
236
258
|
outputs: ['close', 'confirm'],
|
|
237
|
-
host: {
|
|
238
|
-
'data-parity-unwrap': '',
|
|
239
|
-
style: 'display: contents',
|
|
240
|
-
},
|
|
241
259
|
template: `<mol-modal
|
|
260
|
+
#modal
|
|
242
261
|
[open]="open"
|
|
243
262
|
(close)="close.emit($event)"
|
|
244
|
-
[attr.aria-labelledby]="
|
|
245
|
-
[attr.aria-describedby]="ariaDescribedBy"
|
|
263
|
+
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
264
|
+
[attr.aria-describedby]="ariaDescribedBy()"
|
|
246
265
|
><div [class]="cm().stack(3)">
|
|
247
|
-
<h2
|
|
266
|
+
<h2
|
|
267
|
+
#titleSlot
|
|
268
|
+
[attr.id]="ariaLabelledBy()"
|
|
269
|
+
[class]="cm().cn(cm().textSize('lg'), cm().fontWeight('bold'))"
|
|
270
|
+
>
|
|
248
271
|
@if (isGiven(title)) {
|
|
249
272
|
<ng-container [molTemplateOutlet]="asTemplate(title)"></ng-container>{{ nodeText(title) }}
|
|
250
273
|
}
|
|
@@ -284,13 +307,19 @@ export class ConfirmDialog {
|
|
|
284
307
|
</div></mol-modal
|
|
285
308
|
>`,
|
|
286
309
|
}]
|
|
287
|
-
}],
|
|
310
|
+
}], () => [], { descriptionSlot: [{
|
|
288
311
|
type: ViewChild,
|
|
289
312
|
args: ['descriptionSlot', { static: true }]
|
|
313
|
+
}], titleSlot: [{
|
|
314
|
+
type: ViewChild,
|
|
315
|
+
args: ['titleSlot', { static: true }]
|
|
290
316
|
}], close: [{
|
|
291
317
|
type: Output
|
|
292
318
|
}], confirm: [{
|
|
293
319
|
type: Output
|
|
320
|
+
}], modalElement: [{
|
|
321
|
+
type: ViewChild,
|
|
322
|
+
args: ['modal', { read: ElementRef }]
|
|
294
323
|
}] }); })();
|
|
295
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfirmDialog, { className: "ConfirmDialog", filePath: "components/confirm-dialog.component.ts", lineNumber:
|
|
324
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfirmDialog, { className: "ConfirmDialog", filePath: "components/confirm-dialog.component.ts", lineNumber: 134 }); })();
|
|
296
325
|
//# sourceMappingURL=confirm-dialog.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-dialog.component.js","sourceRoot":"","sources":["../../src/components/confirm-dialog.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"confirm-dialog.component.js","sourceRoot":"","sources":["../../src/components/confir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, type OnDest
|
|
|
8
8
|
import type { DropdownItem, UIClassMap } from '@molecule/app-ui';
|
|
9
9
|
import { type HasElement } from '../utilities/element.js';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "@molecule/app-angular";
|
|
11
12
|
/** The dropdown placement values (React's union). */
|
|
12
13
|
type DropdownPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'right';
|
|
13
14
|
/** The dropdown alignment values (React's union). */
|
|
@@ -23,9 +24,11 @@ type DropdownAlign = 'start' | 'center' | 'end';
|
|
|
23
24
|
* `document.body` (React's portal) and carries the position, width and
|
|
24
25
|
* roving-tabindex behavior.
|
|
25
26
|
*
|
|
26
|
-
* The React root is a FRAGMENT (trigger + portal), so the
|
|
27
|
-
*
|
|
28
|
-
*
|
|
27
|
+
* The React root is a FRAGMENT (trigger + portal), so the trigger renders in
|
|
28
|
+
* front of the host (`placeContentBefore` / `placeElementBefore`) and the
|
|
29
|
+
* host itself leaves the DOM. The trigger follows the projected content: an
|
|
30
|
+
* element that replaces it becomes the new trigger, text next to it switches
|
|
31
|
+
* to the fallback wrapper.
|
|
29
32
|
*/
|
|
30
33
|
export declare class Dropdown implements AfterViewInit, DoCheck, OnDestroy, HasElement<HTMLDivElement> {
|
|
31
34
|
/** Dropdown trigger (node-valued prop). */
|
|
@@ -56,6 +59,8 @@ export declare class Dropdown implements AfterViewInit, DoCheck, OnDestroy, HasE
|
|
|
56
59
|
readonly openChange: EventEmitter<boolean>;
|
|
57
60
|
/** The trigger projection capture point (removed once the trigger is adopted). */
|
|
58
61
|
triggerCapture?: ElementRef<HTMLSpanElement>;
|
|
62
|
+
/** React's fallback `role="button"` wrapper, for a trigger that is not one element. */
|
|
63
|
+
fallback?: ElementRef<HTMLDivElement>;
|
|
59
64
|
/** The menu's view anchor. */
|
|
60
65
|
menuAnchor?: ViewContainerRef;
|
|
61
66
|
/** The menu markup template. */
|
|
@@ -88,6 +93,10 @@ export declare class Dropdown implements AfterViewInit, DoCheck, OnDestroy, HasE
|
|
|
88
93
|
private triggerOwnDisabled;
|
|
89
94
|
/** Whether the adopted trigger is the fallback `role="button"` wrapper (not a cloned element). */
|
|
90
95
|
private triggerIsFallback;
|
|
96
|
+
/** The cloned trigger's own `tabindex`, restored when it stops being the trigger. */
|
|
97
|
+
private triggerOwnTabindex;
|
|
98
|
+
/** The trigger's click and keydown listeners. */
|
|
99
|
+
private triggerListeners;
|
|
91
100
|
/** The menu's embedded view, while open. */
|
|
92
101
|
private menuView?;
|
|
93
102
|
/** The portal menu element, while open. */
|
|
@@ -221,10 +230,7 @@ export declare class Dropdown implements AfterViewInit, DoCheck, OnDestroy, HasE
|
|
|
221
230
|
* `closeAndRefocusTrigger`).
|
|
222
231
|
*/
|
|
223
232
|
closeAndRefocusTrigger(): void;
|
|
224
|
-
/**
|
|
225
|
-
* Adopts the projected trigger at view init (React's cloneElement), then
|
|
226
|
-
* reconciles the menu once.
|
|
227
|
-
*/
|
|
233
|
+
/** Reconciles the menu once the view queries exist. */
|
|
228
234
|
ngAfterViewInit(): void;
|
|
229
235
|
/**
|
|
230
236
|
* Reconciles menu creation/destruction and the trigger's ARIA state on
|
|
@@ -234,17 +240,24 @@ export declare class Dropdown implements AfterViewInit, DoCheck, OnDestroy, HasE
|
|
|
234
240
|
/** Removes the document listeners and the menu view (unmount). */
|
|
235
241
|
ngOnDestroy(): void;
|
|
236
242
|
/**
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
243
|
+
* Renders the trigger in front of the host and makes it the real control,
|
|
244
|
+
* like React's cloneElement: a single projected element is the trigger
|
|
245
|
+
* itself; anything else renders inside the fallback `role="button"`
|
|
246
|
+
* wrapper. Runs whenever the projected trigger changes.
|
|
247
|
+
*
|
|
248
|
+
* @param hasContent - The slot reader `usePlacement` passes.
|
|
240
249
|
*/
|
|
241
|
-
private
|
|
250
|
+
private placeTrigger;
|
|
242
251
|
/**
|
|
243
|
-
*
|
|
252
|
+
* Makes `target` the trigger: listens to it and applies the clone's
|
|
253
|
+
* attributes. The previous trigger gets its own attributes back.
|
|
244
254
|
*
|
|
245
|
-
* @param target - The
|
|
255
|
+
* @param target - The projected element, or the fallback wrapper.
|
|
256
|
+
* @param isFallback - Whether `target` is the fallback wrapper.
|
|
246
257
|
*/
|
|
247
|
-
private
|
|
258
|
+
private adopt;
|
|
259
|
+
/** Stops listening to the trigger and gives a cloned element its own attributes back. */
|
|
260
|
+
private release;
|
|
248
261
|
/** The non-separator, non-disabled item indexes (React's `focusableItemIndexes`). */
|
|
249
262
|
private focusableIndexes;
|
|
250
263
|
/**
|
|
@@ -290,12 +303,12 @@ export declare class Dropdown implements AfterViewInit, DoCheck, OnDestroy, HasE
|
|
|
290
303
|
private updatePosition;
|
|
291
304
|
/** Adds the outside-mousedown and Escape listeners while open (React's effect). */
|
|
292
305
|
private addListeners;
|
|
293
|
-
/** Removes
|
|
306
|
+
/** Removes the document listeners added while open. */
|
|
294
307
|
private removeListeners;
|
|
295
308
|
/** Applies React's cloned-trigger attributes to the adopted trigger. */
|
|
296
309
|
private syncTrigger;
|
|
297
310
|
static ɵfac: i0.ɵɵFactoryDeclaration<Dropdown, never>;
|
|
298
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Dropdown, "mol-dropdown", never, { "trigger": { "alias": "trigger"; "required": false; }; "items": { "alias": "items"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "open": { "alias": "open"; "required": false; }; "align": { "alias": "align"; "required": false; }; "width": { "alias": "width"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "select": "select"; "openChange": "openChange"; }, never, ["[slot=trigger]"], true,
|
|
311
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Dropdown, "mol-dropdown", never, { "trigger": { "alias": "trigger"; "required": false; }; "items": { "alias": "items"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "open": { "alias": "open"; "required": false; }; "align": { "alias": "align"; "required": false; }; "width": { "alias": "width"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "select": "select"; "openChange": "openChange"; }, never, ["[slot=trigger]"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
299
312
|
}
|
|
300
313
|
/**
|
|
301
314
|
* DropdownLabel component: a group label inside a menu.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.component.d.ts","sourceRoot":"","sources":["../../src/components/dropdown.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAGL,KAAK,aAAa,EAGlB,KAAK,OAAO,EAEZ,UAAU,EAEV,YAAY,EAGZ,KAAK,SAAS,EAId,WAAW,EAEX,gBAAgB,EACjB,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"dropdown.component.d.ts","sourceRoot":"","sources":["../../src/components/dropdown.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAGL,KAAK,aAAa,EAGlB,KAAK,OAAO,EAEZ,UAAU,EAEV,YAAY,EAGZ,KAAK,SAAS,EAId,WAAW,EAEX,gBAAgB,EACjB,MAAM,eAAe,CAAA;AAatB,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,yBAAyB,CAAA;;;AAsEtE,qDAAqD;AACrD,KAAK,iBAAiB,GACpB,KAAK,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,CAAA;AAE/F,qDAAqD;AACrD,KAAK,aAAa,GAAG,OAAO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