@molecule/app-ui-angular 1.2.1 → 1.3.0
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 +2744 -912
- package/dist/components/accordion.component.d.ts +17 -2
- package/dist/components/accordion.component.d.ts.map +1 -1
- package/dist/components/accordion.component.js +31 -7
- package/dist/components/accordion.component.js.map +1 -1
- package/dist/components/alert.component.d.ts +15 -2
- package/dist/components/alert.component.d.ts.map +1 -1
- package/dist/components/alert.component.js +25 -4
- package/dist/components/alert.component.js.map +1 -1
- package/dist/components/auth-guard.component.d.ts +41 -9
- package/dist/components/auth-guard.component.d.ts.map +1 -1
- package/dist/components/auth-guard.component.js +58 -23
- package/dist/components/auth-guard.component.js.map +1 -1
- package/dist/components/avatar.component.d.ts +15 -2
- package/dist/components/avatar.component.d.ts.map +1 -1
- package/dist/components/avatar.component.js +35 -5
- package/dist/components/avatar.component.js.map +1 -1
- package/dist/components/badge.component.d.ts +15 -2
- package/dist/components/badge.component.d.ts.map +1 -1
- package/dist/components/badge.component.js +35 -6
- package/dist/components/badge.component.js.map +1 -1
- package/dist/components/button.component.d.ts +20 -2
- package/dist/components/button.component.d.ts.map +1 -1
- package/dist/components/button.component.js +30 -4
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/card.component.d.ts +67 -9
- package/dist/components/card.component.d.ts.map +1 -1
- package/dist/components/card.component.js +99 -17
- package/dist/components/card.component.js.map +1 -1
- package/dist/components/checkbox.component.d.ts +35 -5
- package/dist/components/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox.component.js +59 -9
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/confirm-button.component.d.ts +85 -17
- package/dist/components/confirm-button.component.d.ts.map +1 -1
- package/dist/components/confirm-button.component.js +112 -25
- package/dist/components/confirm-button.component.js.map +1 -1
- package/dist/components/confirm-dialog.component.d.ts +50 -13
- package/dist/components/confirm-dialog.component.d.ts.map +1 -1
- package/dist/components/confirm-dialog.component.js +118 -31
- package/dist/components/confirm-dialog.component.js.map +1 -1
- package/dist/components/dropdown.component.d.ts +30 -4
- package/dist/components/dropdown.component.d.ts.map +1 -1
- package/dist/components/dropdown.component.js +80 -13
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/empty-state.component.d.ts +5 -1
- package/dist/components/empty-state.component.d.ts.map +1 -1
- package/dist/components/empty-state.component.js +5 -1
- package/dist/components/empty-state.component.js.map +1 -1
- package/dist/components/floating-input.component.d.ts +18 -4
- package/dist/components/floating-input.component.d.ts.map +1 -1
- package/dist/components/floating-input.component.js +38 -8
- package/dist/components/floating-input.component.js.map +1 -1
- package/dist/components/form-field.component.d.ts +14 -2
- package/dist/components/form-field.component.d.ts.map +1 -1
- package/dist/components/form-field.component.js +34 -5
- package/dist/components/form-field.component.js.map +1 -1
- package/dist/components/form.component.d.ts +61 -15
- package/dist/components/form.component.d.ts.map +1 -1
- package/dist/components/form.component.js +65 -14
- package/dist/components/form.component.js.map +1 -1
- package/dist/components/icon.component.d.ts +22 -4
- package/dist/components/icon.component.d.ts.map +1 -1
- package/dist/components/icon.component.js +1 -1
- package/dist/components/icon.component.js.map +1 -1
- package/dist/components/input.component.d.ts +34 -4
- package/dist/components/input.component.d.ts.map +1 -1
- package/dist/components/input.component.js +66 -11
- package/dist/components/input.component.js.map +1 -1
- package/dist/components/label.component.d.ts +5 -1
- package/dist/components/label.component.d.ts.map +1 -1
- package/dist/components/label.component.js +6 -2
- package/dist/components/label.component.js.map +1 -1
- package/dist/components/language-picker.component.d.ts +44 -8
- package/dist/components/language-picker.component.d.ts.map +1 -1
- package/dist/components/language-picker.component.js +29 -17
- package/dist/components/language-picker.component.js.map +1 -1
- package/dist/components/layout.component.d.ts +57 -8
- package/dist/components/layout.component.d.ts.map +1 -1
- package/dist/components/layout.component.js +134 -21
- package/dist/components/layout.component.js.map +1 -1
- package/dist/components/load-error-banner.component.d.ts +39 -7
- package/dist/components/load-error-banner.component.d.ts.map +1 -1
- package/dist/components/load-error-banner.component.js +68 -21
- package/dist/components/load-error-banner.component.js.map +1 -1
- package/dist/components/modal.component.d.ts +20 -3
- package/dist/components/modal.component.d.ts.map +1 -1
- package/dist/components/modal.component.js +40 -6
- package/dist/components/modal.component.js.map +1 -1
- package/dist/components/optimistic-toggle-button.component.d.ts +80 -19
- package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -1
- package/dist/components/optimistic-toggle-button.component.js +86 -25
- package/dist/components/optimistic-toggle-button.component.js.map +1 -1
- package/dist/components/page-header.component.d.ts +5 -1
- package/dist/components/page-header.component.d.ts.map +1 -1
- package/dist/components/page-header.component.js +5 -1
- package/dist/components/page-header.component.js.map +1 -1
- package/dist/components/page-shell.component.d.ts +5 -1
- package/dist/components/page-shell.component.d.ts.map +1 -1
- package/dist/components/page-shell.component.js +5 -1
- package/dist/components/page-shell.component.js.map +1 -1
- package/dist/components/pagination.component.d.ts +15 -2
- package/dist/components/pagination.component.d.ts.map +1 -1
- package/dist/components/pagination.component.js +26 -5
- package/dist/components/pagination.component.js.map +1 -1
- package/dist/components/panel-close.component.d.ts +10 -1
- package/dist/components/panel-close.component.d.ts.map +1 -1
- package/dist/components/panel-close.component.js +1 -1
- package/dist/components/panel-close.component.js.map +1 -1
- package/dist/components/progress.component.d.ts +51 -8
- package/dist/components/progress.component.d.ts.map +1 -1
- package/dist/components/progress.component.js +26 -5
- package/dist/components/progress.component.js.map +1 -1
- package/dist/components/prompt-dialog.component.d.ts +59 -16
- package/dist/components/prompt-dialog.component.d.ts.map +1 -1
- package/dist/components/prompt-dialog.component.js +129 -41
- package/dist/components/prompt-dialog.component.js.map +1 -1
- package/dist/components/radio-group.component.d.ts +16 -2
- package/dist/components/radio-group.component.d.ts.map +1 -1
- package/dist/components/radio-group.component.js +28 -5
- package/dist/components/radio-group.component.js.map +1 -1
- package/dist/components/responsive-app-shell.component.d.ts +155 -31
- package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
- package/dist/components/responsive-app-shell.component.js +163 -54
- package/dist/components/responsive-app-shell.component.js.map +1 -1
- package/dist/components/select.component.d.ts +29 -4
- package/dist/components/select.component.d.ts.map +1 -1
- package/dist/components/select.component.js +55 -9
- package/dist/components/select.component.js.map +1 -1
- package/dist/components/separator.component.d.ts +37 -7
- package/dist/components/separator.component.d.ts.map +1 -1
- package/dist/components/separator.component.js +33 -6
- package/dist/components/separator.component.js.map +1 -1
- package/dist/components/sidebar-user-card.component.d.ts +28 -7
- package/dist/components/sidebar-user-card.component.d.ts.map +1 -1
- package/dist/components/sidebar-user-card.component.js +1 -1
- package/dist/components/sidebar-user-card.component.js.map +1 -1
- package/dist/components/skeleton.component.d.ts +23 -4
- package/dist/components/skeleton.component.d.ts.map +1 -1
- package/dist/components/skeleton.component.js +34 -7
- package/dist/components/skeleton.component.js.map +1 -1
- package/dist/components/spinner.component.d.ts +15 -2
- package/dist/components/spinner.component.d.ts.map +1 -1
- package/dist/components/spinner.component.js +34 -6
- package/dist/components/spinner.component.js.map +1 -1
- package/dist/components/switch.component.d.ts +30 -7
- package/dist/components/switch.component.d.ts.map +1 -1
- package/dist/components/switch.component.js +56 -11
- package/dist/components/switch.component.js.map +1 -1
- package/dist/components/table.component.d.ts +29 -3
- package/dist/components/table.component.d.ts.map +1 -1
- package/dist/components/table.component.js +63 -8
- package/dist/components/table.component.js.map +1 -1
- package/dist/components/tabs.component.d.ts +18 -3
- package/dist/components/tabs.component.d.ts.map +1 -1
- package/dist/components/tabs.component.js +74 -39
- package/dist/components/tabs.component.js.map +1 -1
- package/dist/components/textarea.component.d.ts +29 -4
- package/dist/components/textarea.component.d.ts.map +1 -1
- package/dist/components/textarea.component.js +55 -9
- package/dist/components/textarea.component.js.map +1 -1
- package/dist/components/theme-toggle.component.d.ts +25 -6
- package/dist/components/theme-toggle.component.d.ts.map +1 -1
- package/dist/components/theme-toggle.component.js +1 -1
- package/dist/components/theme-toggle.component.js.map +1 -1
- package/dist/components/toast.component.d.ts +27 -6
- package/dist/components/toast.component.d.ts.map +1 -1
- package/dist/components/toast.component.js +48 -14
- package/dist/components/toast.component.js.map +1 -1
- package/dist/components/tooltip.component.d.ts +57 -5
- package/dist/components/tooltip.component.d.ts.map +1 -1
- package/dist/components/tooltip.component.js +103 -11
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/components/user-menu-popover.component.d.ts +68 -14
- package/dist/components/user-menu-popover.component.d.ts.map +1 -1
- package/dist/components/user-menu-popover.component.js +4 -4
- package/dist/components/user-menu-popover.component.js.map +1 -1
- package/dist/components/user-menu.component.d.ts +33 -9
- package/dist/components/user-menu.component.d.ts.map +1 -1
- package/dist/components/user-menu.component.js +1 -1
- package/dist/components/user-menu.component.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utilities/element-props.d.ts +78 -0
- package/dist/utilities/element-props.d.ts.map +1 -0
- package/dist/utilities/element-props.js +166 -0
- package/dist/utilities/element-props.js.map +1 -0
- package/dist/utilities/element.d.ts +34 -0
- package/dist/utilities/element.d.ts.map +1 -0
- package/dist/utilities/element.js +24 -0
- package/dist/utilities/element.js.map +1 -0
- package/dist/utilities/index.d.ts +2 -0
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/index.js +2 -0
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/node-value.d.ts +1 -1
- package/dist/utilities/node-value.d.ts.map +1 -1
- package/dist/utilities/node-value.js +6 -2
- package/dist/utilities/node-value.js.map +1 -1
- package/dist/utilities/render-icon.d.ts +3 -2
- package/dist/utilities/render-icon.d.ts.map +1 -1
- package/dist/utilities/render-icon.js +6 -3
- package/dist/utilities/render-icon.js.map +1 -1
- package/dist/utilities/rest-attrs.d.ts +26 -2
- package/dist/utilities/rest-attrs.d.ts.map +1 -1
- package/dist/utilities/rest-attrs.js +37 -0
- package/dist/utilities/rest-attrs.js.map +1 -1
- package/package.json +4 -3
|
@@ -8,24 +8,76 @@ import { Component, EventEmitter, Output, signal, ViewChild, } from '@angular/co
|
|
|
8
8
|
import { useTranslation } from '@molecule/app-angular';
|
|
9
9
|
import { getClassMap } from '@molecule/app-ui';
|
|
10
10
|
import { nextInstanceId } from '../utilities/ids.js';
|
|
11
|
+
import { asTemplate, isGiven, nodeText } from '../utilities/node-value.js';
|
|
11
12
|
import { Button } from './button.component.js';
|
|
12
13
|
import { Input } from './input.component.js';
|
|
13
14
|
import { Modal } from './modal.component.js';
|
|
15
|
+
import { MolTemplateOutlet } from './template-outlet.directive.js';
|
|
14
16
|
import * as i0 from "@angular/core";
|
|
15
17
|
const _c0 = ["titleSlot"];
|
|
16
|
-
const _c1 = [[["", "slot", "title"]]
|
|
17
|
-
const _c2 = ["[slot=title]"
|
|
18
|
+
const _c1 = ["*", [["", "slot", "title"]]];
|
|
19
|
+
const _c2 = ["*", "[slot=title]"];
|
|
18
20
|
const _c3 = () => ({ justify: "end", gap: "sm" });
|
|
21
|
+
function PromptDialog_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
22
|
+
i0.ɵɵelementContainer(0, 8);
|
|
23
|
+
i0.ɵɵtext(1);
|
|
24
|
+
} if (rf & 2) {
|
|
25
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
26
|
+
i0.ɵɵproperty("molTemplateOutlet", ctx_r0.asTemplate(ctx_r0.title));
|
|
27
|
+
i0.ɵɵadvance();
|
|
28
|
+
i0.ɵɵtextInterpolate1("", ctx_r0.nodeText(ctx_r0.title), " ");
|
|
29
|
+
} }
|
|
19
30
|
function PromptDialog_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
31
|
+
i0.ɵɵprojection(0, 1);
|
|
32
|
+
} }
|
|
33
|
+
function PromptDialog_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
20
34
|
i0.ɵɵelementStart(0, "p");
|
|
21
|
-
i0.ɵɵ
|
|
35
|
+
i0.ɵɵelementContainer(1, 8);
|
|
22
36
|
i0.ɵɵelementEnd();
|
|
23
37
|
} if (rf & 2) {
|
|
24
38
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
25
39
|
i0.ɵɵclassMap(ctx_r0.cm().textSize("sm"));
|
|
26
40
|
i0.ɵɵattribute("id", ctx_r0.descriptionId);
|
|
27
41
|
i0.ɵɵadvance();
|
|
28
|
-
i0.ɵɵ
|
|
42
|
+
i0.ɵɵproperty("molTemplateOutlet", ctx);
|
|
43
|
+
} }
|
|
44
|
+
function PromptDialog_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
45
|
+
i0.ɵɵelement(0, "p", 9);
|
|
46
|
+
} if (rf & 2) {
|
|
47
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
48
|
+
i0.ɵɵclassMap(ctx_r0.cm().textSize("sm"));
|
|
49
|
+
i0.ɵɵproperty("textContent", ctx_r0.nodeText(ctx_r0.description));
|
|
50
|
+
i0.ɵɵattribute("id", ctx_r0.descriptionId);
|
|
51
|
+
} }
|
|
52
|
+
function PromptDialog_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
53
|
+
i0.ɵɵelementContainer(0, 8);
|
|
54
|
+
i0.ɵɵtext(1);
|
|
55
|
+
} if (rf & 2) {
|
|
56
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
57
|
+
i0.ɵɵproperty("molTemplateOutlet", ctx_r0.asTemplate(ctx_r0.cancelLabel));
|
|
58
|
+
i0.ɵɵadvance();
|
|
59
|
+
i0.ɵɵtextInterpolate1("", ctx_r0.nodeText(ctx_r0.cancelLabel), " ");
|
|
60
|
+
} }
|
|
61
|
+
function PromptDialog_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
62
|
+
i0.ɵɵtext(0);
|
|
63
|
+
} if (rf & 2) {
|
|
64
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
65
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.cancelText(), " ");
|
|
66
|
+
} }
|
|
67
|
+
function PromptDialog_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
68
|
+
i0.ɵɵelementContainer(0, 8);
|
|
69
|
+
i0.ɵɵtext(1);
|
|
70
|
+
} if (rf & 2) {
|
|
71
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
72
|
+
i0.ɵɵproperty("molTemplateOutlet", ctx_r0.asTemplate(ctx_r0.confirmLabel));
|
|
73
|
+
i0.ɵɵadvance();
|
|
74
|
+
i0.ɵɵtextInterpolate1("", ctx_r0.nodeText(ctx_r0.confirmLabel), " ");
|
|
75
|
+
} }
|
|
76
|
+
function PromptDialog_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
77
|
+
i0.ɵɵtext(0);
|
|
78
|
+
} if (rf & 2) {
|
|
79
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
80
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.confirmText(), " ");
|
|
29
81
|
} }
|
|
30
82
|
/**
|
|
31
83
|
* PromptDialog component.
|
|
@@ -40,7 +92,7 @@ export class PromptDialog {
|
|
|
40
92
|
open = false;
|
|
41
93
|
/** Dialog heading (node-valued prop). */
|
|
42
94
|
title;
|
|
43
|
-
/** Explanatory line under the title. */
|
|
95
|
+
/** Explanatory line under the title (node-valued prop). */
|
|
44
96
|
description;
|
|
45
97
|
/** Input placeholder. */
|
|
46
98
|
placeholder;
|
|
@@ -51,9 +103,9 @@ export class PromptDialog {
|
|
|
51
103
|
* reject or throw to keep it open.
|
|
52
104
|
*/
|
|
53
105
|
onSubmit;
|
|
54
|
-
/** Confirm-button label. */
|
|
106
|
+
/** Confirm-button label (node-valued prop). */
|
|
55
107
|
confirmLabel;
|
|
56
|
-
/** Cancel-button label. */
|
|
108
|
+
/** Cancel-button label (node-valued prop). */
|
|
57
109
|
cancelLabel;
|
|
58
110
|
/** Renders the confirm button in the error color. */
|
|
59
111
|
destructive = false;
|
|
@@ -63,6 +115,12 @@ export class PromptDialog {
|
|
|
63
115
|
confirmMolId;
|
|
64
116
|
/** `data-mol-id` for the cancel button. */
|
|
65
117
|
cancelMolId;
|
|
118
|
+
/** Template helpers (templates see only class members). */
|
|
119
|
+
asTemplate = asTemplate;
|
|
120
|
+
/** Renders a plain-string/number node value. */
|
|
121
|
+
nodeText = nodeText;
|
|
122
|
+
/** Whether a node-valued prop was given. */
|
|
123
|
+
isGiven = isGiven;
|
|
66
124
|
/** Fires when the dialog should close (escape, backdrop, cancel, a fulfilled submit). */
|
|
67
125
|
close = new EventEmitter();
|
|
68
126
|
/** The dialog heading element (its text seeds the input's aria-label). */
|
|
@@ -111,14 +169,18 @@ export class PromptDialog {
|
|
|
111
169
|
* @returns The label text.
|
|
112
170
|
*/
|
|
113
171
|
cancelText() {
|
|
114
|
-
return this.cancelLabel
|
|
172
|
+
return typeof this.cancelLabel === 'string'
|
|
173
|
+
? this.cancelLabel
|
|
174
|
+
: this.i18n.t('prompt.cancel', {}, { defaultValue: 'Cancel' });
|
|
115
175
|
}
|
|
116
176
|
/**
|
|
117
177
|
* The confirm button's label.
|
|
118
178
|
* @returns The label text.
|
|
119
179
|
*/
|
|
120
180
|
confirmText() {
|
|
121
|
-
return this.confirmLabel
|
|
181
|
+
return typeof this.confirmLabel === 'string'
|
|
182
|
+
? this.confirmLabel
|
|
183
|
+
: this.i18n.t('prompt.confirm', {}, { defaultValue: 'Confirm' });
|
|
122
184
|
}
|
|
123
185
|
/**
|
|
124
186
|
* The input's accessible label: React uses the title when it is a plain
|
|
@@ -143,9 +205,9 @@ export class PromptDialog {
|
|
|
143
205
|
ngAfterViewInit() {
|
|
144
206
|
this.applyInputLabel();
|
|
145
207
|
this.lastOpen = !!this.open;
|
|
146
|
-
this.lastInitial = this.initialValue;
|
|
208
|
+
this.lastInitial = this.initialValue ?? '';
|
|
147
209
|
if (this.open) {
|
|
148
|
-
this.value.set(this.initialValue);
|
|
210
|
+
this.value.set(this.initialValue ?? '');
|
|
149
211
|
this.pending.set(false);
|
|
150
212
|
// The dialog exists to take one string, so opening it puts focus in the
|
|
151
213
|
// input — after the Modal has focused the dialog's first control.
|
|
@@ -163,9 +225,9 @@ export class PromptDialog {
|
|
|
163
225
|
this.applyInputLabel();
|
|
164
226
|
if (open !== this.lastOpen || (open && this.initialValue !== this.lastInitial)) {
|
|
165
227
|
this.lastOpen = open;
|
|
166
|
-
this.lastInitial = this.initialValue;
|
|
228
|
+
this.lastInitial = this.initialValue ?? '';
|
|
167
229
|
if (open) {
|
|
168
|
-
this.value.set(this.initialValue);
|
|
230
|
+
this.value.set(this.initialValue ?? '');
|
|
169
231
|
this.pending.set(false);
|
|
170
232
|
this.pendingInputFocus = true;
|
|
171
233
|
}
|
|
@@ -249,60 +311,63 @@ export class PromptDialog {
|
|
|
249
311
|
let _t;
|
|
250
312
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.titleSlot = _t.first);
|
|
251
313
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputComponent = _t.first);
|
|
252
|
-
} }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { open: "open", title: "title", description: "description", placeholder: "placeholder", initialValue: "initialValue", onSubmit: "onSubmit", confirmLabel: "confirmLabel", cancelLabel: "cancelLabel", destructive: "destructive", inputMolId: "inputMolId", confirmMolId: "confirmMolId", cancelMolId: "cancelMolId" }, outputs: { close: "close" }, ngContentSelectors: _c2, decls:
|
|
314
|
+
} }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { open: "open", title: "title", description: "description", placeholder: "placeholder", initialValue: "initialValue", onSubmit: "onSubmit", confirmLabel: "confirmLabel", cancelLabel: "cancelLabel", destructive: "destructive", inputMolId: "inputMolId", confirmMolId: "confirmMolId", cancelMolId: "cancelMolId" }, outputs: { close: "close" }, ngContentSelectors: _c2, decls: 18, vars: 28, consts: [["titleSlot", ""], [3, "close", "open"], [3, "submit"], [3, "class"], [3, "class", "textContent"], ["mol-input", "", 3, "change", "value", "placeholder", "disabled"], ["mol-button", "", 3, "click", "type", "variant", "disabled"], ["mol-button", "", 3, "type", "variant", "color", "disabled"], [3, "molTemplateOutlet"], [3, "textContent"]], template: function PromptDialog_Template(rf, ctx) { if (rf & 1) {
|
|
253
315
|
i0.ɵɵprojectionDef(_c1);
|
|
254
316
|
i0.ɵɵelementStart(0, "mol-modal", 1);
|
|
255
317
|
i0.ɵɵlistener("close", function PromptDialog_Template_mol_modal_close_0_listener() { return ctx.onModalClose(); });
|
|
256
318
|
i0.ɵɵelementStart(1, "form", 2);
|
|
257
319
|
i0.ɵɵlistener("submit", function PromptDialog_Template_form_submit_1_listener($event) { return ctx.handleSubmit($event); });
|
|
258
320
|
i0.ɵɵelementStart(2, "div")(3, "h2", null, 0);
|
|
259
|
-
i0.ɵɵ
|
|
321
|
+
i0.ɵɵconditionalCreate(5, PromptDialog_Conditional_5_Template, 2, 2)(6, PromptDialog_Conditional_6_Template, 1, 0);
|
|
260
322
|
i0.ɵɵelementEnd();
|
|
261
|
-
i0.ɵɵconditionalCreate(
|
|
262
|
-
i0.ɵɵelementStart(
|
|
263
|
-
i0.ɵɵlistener("change", function
|
|
323
|
+
i0.ɵɵconditionalCreate(7, PromptDialog_Conditional_7_Template, 2, 4, "p", 3)(8, PromptDialog_Conditional_8_Template, 1, 4, "p", 4);
|
|
324
|
+
i0.ɵɵelementStart(9, "div", 5);
|
|
325
|
+
i0.ɵɵlistener("change", function PromptDialog_Template_div_change_9_listener($event) { return ctx.onInput($event); });
|
|
264
326
|
i0.ɵɵelementEnd();
|
|
265
|
-
i0.ɵɵprojection(
|
|
266
|
-
i0.ɵɵelementStart(
|
|
267
|
-
i0.ɵɵlistener("click", function
|
|
268
|
-
i0.ɵɵ
|
|
327
|
+
i0.ɵɵprojection(10);
|
|
328
|
+
i0.ɵɵelementStart(11, "div")(12, "button", 6);
|
|
329
|
+
i0.ɵɵlistener("click", function PromptDialog_Template_button_click_12_listener($event) { return ctx.close.emit($event); });
|
|
330
|
+
i0.ɵɵconditionalCreate(13, PromptDialog_Conditional_13_Template, 2, 2)(14, PromptDialog_Conditional_14_Template, 1, 1);
|
|
269
331
|
i0.ɵɵelementEnd();
|
|
270
|
-
i0.ɵɵelementStart(
|
|
271
|
-
i0.ɵɵ
|
|
332
|
+
i0.ɵɵelementStart(15, "button", 7);
|
|
333
|
+
i0.ɵɵconditionalCreate(16, PromptDialog_Conditional_16_Template, 2, 2)(17, PromptDialog_Conditional_17_Template, 1, 1);
|
|
272
334
|
i0.ɵɵelementEnd()()()()();
|
|
273
335
|
} if (rf & 2) {
|
|
336
|
+
let tmp_8_0;
|
|
274
337
|
i0.ɵɵproperty("open", ctx.open);
|
|
275
|
-
i0.ɵɵattribute("aria-labelledby", ctx.titleId)("aria-describedby", ctx.description ? ctx.descriptionId : null);
|
|
338
|
+
i0.ɵɵattribute("aria-labelledby", ctx.titleId)("aria-describedby", ctx.isGiven(ctx.description) ? ctx.descriptionId : null);
|
|
276
339
|
i0.ɵɵadvance(2);
|
|
277
340
|
i0.ɵɵclassMap(ctx.cm().stack(3));
|
|
278
341
|
i0.ɵɵadvance();
|
|
279
342
|
i0.ɵɵclassMap(ctx.cm().cn(ctx.cm().textSize("lg"), ctx.cm().fontWeight("bold")));
|
|
280
343
|
i0.ɵɵattribute("id", ctx.titleId);
|
|
281
|
-
i0.ɵɵadvance(
|
|
282
|
-
i0.ɵɵconditional(ctx.
|
|
283
|
-
i0.ɵɵadvance();
|
|
344
|
+
i0.ɵɵadvance(2);
|
|
345
|
+
i0.ɵɵconditional(ctx.isGiven(ctx.title) ? 5 : 6);
|
|
346
|
+
i0.ɵɵadvance(2);
|
|
347
|
+
i0.ɵɵconditional((tmp_8_0 = ctx.asTemplate(ctx.description)) ? 7 : ctx.isGiven(ctx.description) ? 8 : -1, tmp_8_0);
|
|
348
|
+
i0.ɵɵadvance(2);
|
|
284
349
|
i0.ɵɵproperty("value", ctx.value())("placeholder", ctx.placeholder)("disabled", ctx.pending());
|
|
285
350
|
i0.ɵɵattribute("data-mol-id", ctx.inputMolId);
|
|
286
351
|
i0.ɵɵadvance(2);
|
|
287
|
-
i0.ɵɵclassMap(ctx.cm().flex(i0.ɵɵpureFunction0(
|
|
352
|
+
i0.ɵɵclassMap(ctx.cm().flex(i0.ɵɵpureFunction0(27, _c3)));
|
|
288
353
|
i0.ɵɵadvance();
|
|
289
354
|
i0.ɵɵproperty("type", "button")("variant", "ghost")("disabled", ctx.pending());
|
|
290
355
|
i0.ɵɵattribute("data-mol-id", ctx.cancelMolId);
|
|
291
356
|
i0.ɵɵadvance();
|
|
292
|
-
i0.ɵɵ
|
|
293
|
-
i0.ɵɵadvance();
|
|
357
|
+
i0.ɵɵconditional(ctx.isGiven(ctx.cancelLabel) ? 13 : 14);
|
|
358
|
+
i0.ɵɵadvance(2);
|
|
294
359
|
i0.ɵɵproperty("type", "submit")("variant", "solid")("color", ctx.destructive ? "error" : "primary")("disabled", ctx.pending());
|
|
295
360
|
i0.ɵɵattribute("data-mol-id", ctx.confirmMolId);
|
|
296
361
|
i0.ɵɵadvance();
|
|
297
|
-
i0.ɵɵ
|
|
298
|
-
} }, dependencies: [Button, Input, Modal], encapsulation: 2 });
|
|
362
|
+
i0.ɵɵconditional(ctx.isGiven(ctx.confirmLabel) ? 16 : 17);
|
|
363
|
+
} }, dependencies: [Button, Input, Modal, MolTemplateOutlet], encapsulation: 2 });
|
|
299
364
|
}
|
|
300
365
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PromptDialog, [{
|
|
301
366
|
type: Component,
|
|
302
367
|
args: [{
|
|
303
368
|
selector: 'mol-prompt-dialog',
|
|
304
369
|
standalone: true,
|
|
305
|
-
imports: [Button, Input, Modal],
|
|
370
|
+
imports: [Button, Input, Modal, MolTemplateOutlet],
|
|
306
371
|
inputs: [
|
|
307
372
|
'open',
|
|
308
373
|
'title',
|
|
@@ -326,7 +391,7 @@ export class PromptDialog {
|
|
|
326
391
|
[open]="open"
|
|
327
392
|
(close)="onModalClose()"
|
|
328
393
|
[attr.aria-labelledby]="titleId"
|
|
329
|
-
[attr.aria-describedby]="description ? descriptionId : null"
|
|
394
|
+
[attr.aria-describedby]="isGiven(description) ? descriptionId : null"
|
|
330
395
|
><form (submit)="handleSubmit($event)">
|
|
331
396
|
<div [class]="cm().stack(3)">
|
|
332
397
|
<h2
|
|
@@ -334,10 +399,23 @@ export class PromptDialog {
|
|
|
334
399
|
[attr.id]="titleId"
|
|
335
400
|
[class]="cm().cn(cm().textSize('lg'), cm().fontWeight('bold'))"
|
|
336
401
|
>
|
|
337
|
-
|
|
402
|
+
@if (isGiven(title)) {
|
|
403
|
+
<ng-container [molTemplateOutlet]="asTemplate(title)"></ng-container
|
|
404
|
+
>{{ nodeText(title) }}
|
|
405
|
+
} @else {
|
|
406
|
+
<ng-content select="[slot=title]"></ng-content>
|
|
407
|
+
}
|
|
338
408
|
</h2>
|
|
339
|
-
@if (description) {
|
|
340
|
-
<p [attr.id]="descriptionId" [class]="cm().textSize('sm')">
|
|
409
|
+
@if (asTemplate(description); as descriptionTemplate) {
|
|
410
|
+
<p [attr.id]="descriptionId" [class]="cm().textSize('sm')">
|
|
411
|
+
<ng-container [molTemplateOutlet]="descriptionTemplate"></ng-container>
|
|
412
|
+
</p>
|
|
413
|
+
} @else if (isGiven(description)) {
|
|
414
|
+
<p
|
|
415
|
+
[attr.id]="descriptionId"
|
|
416
|
+
[class]="cm().textSize('sm')"
|
|
417
|
+
[textContent]="nodeText(description)"
|
|
418
|
+
></p>
|
|
341
419
|
}
|
|
342
420
|
<div
|
|
343
421
|
mol-input
|
|
@@ -357,7 +435,12 @@ export class PromptDialog {
|
|
|
357
435
|
(click)="close.emit($event)"
|
|
358
436
|
[attr.data-mol-id]="cancelMolId"
|
|
359
437
|
>
|
|
360
|
-
|
|
438
|
+
@if (isGiven(cancelLabel)) {
|
|
439
|
+
<ng-container [molTemplateOutlet]="asTemplate(cancelLabel)"></ng-container
|
|
440
|
+
>{{ nodeText(cancelLabel) }}
|
|
441
|
+
} @else {
|
|
442
|
+
{{ cancelText() }}
|
|
443
|
+
}</button
|
|
361
444
|
><button
|
|
362
445
|
mol-button
|
|
363
446
|
[type]="'submit'"
|
|
@@ -366,7 +449,12 @@ export class PromptDialog {
|
|
|
366
449
|
[disabled]="pending()"
|
|
367
450
|
[attr.data-mol-id]="confirmMolId"
|
|
368
451
|
>
|
|
369
|
-
|
|
452
|
+
@if (isGiven(confirmLabel)) {
|
|
453
|
+
<ng-container [molTemplateOutlet]="asTemplate(confirmLabel)"></ng-container
|
|
454
|
+
>{{ nodeText(confirmLabel) }}
|
|
455
|
+
} @else {
|
|
456
|
+
{{ confirmText() }}
|
|
457
|
+
}
|
|
370
458
|
</button>
|
|
371
459
|
</div>
|
|
372
460
|
</div>
|
|
@@ -382,5 +470,5 @@ export class PromptDialog {
|
|
|
382
470
|
type: ViewChild,
|
|
383
471
|
args: [Input]
|
|
384
472
|
}] }); })();
|
|
385
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PromptDialog, { className: "PromptDialog", filePath: "components/prompt-dialog.component.ts", lineNumber:
|
|
473
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PromptDialog, { className: "PromptDialog", filePath: "components/prompt-dialog.component.ts", lineNumber: 174 }); })();
|
|
386
474
|
//# sourceMappingURL=prompt-dialog.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-dialog.component.js","sourceRoot":"","sources":["../../src/components/prompt-dialog.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAGL,SAAS,EAGT,YAAY,EACZ,MAAM,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"prompt-dialog.component.js","sourceRoot":"","sources":["../../src/components/prompt-dialog.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAGL,SAAS,EAGT,YAAY,EACZ,MAAM,EACN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assMap } from '@molecule/app-ui';
|
|
8
|
+
import { type HasElement } from '../utilities/element.js';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
/** One radio option. */
|
|
10
11
|
export interface RadioOption {
|
|
@@ -22,7 +23,7 @@ export interface RadioOption {
|
|
|
22
23
|
* emits that option's VALUE (not the DOM event) through the `change` output,
|
|
23
24
|
* exactly like React's per-option handler.
|
|
24
25
|
*/
|
|
25
|
-
export declare class RadioGroup {
|
|
26
|
+
export declare class RadioGroup implements HasElement<HTMLDivElement> {
|
|
26
27
|
/** The options to render. */
|
|
27
28
|
options?: RadioOption[];
|
|
28
29
|
/** The selected option value. */
|
|
@@ -45,6 +46,10 @@ export declare class RadioGroup {
|
|
|
45
46
|
testId?: string;
|
|
46
47
|
/** Disables every option. */
|
|
47
48
|
disabled?: boolean;
|
|
49
|
+
/** `data-mol-id` automation id (React's `automationId`). */
|
|
50
|
+
automationId?: string;
|
|
51
|
+
/** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
|
|
52
|
+
dataMolId?: string;
|
|
48
53
|
/**
|
|
49
54
|
* The current class map.
|
|
50
55
|
* @returns The UIClassMap.
|
|
@@ -70,6 +75,11 @@ export declare class RadioGroup {
|
|
|
70
75
|
* @returns The style attribute text.
|
|
71
76
|
*/
|
|
72
77
|
hostStyle(): string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The `data-mol-id` value (`automationId` wins over a rest `data-mol-id`).
|
|
80
|
+
* @returns The attribute value.
|
|
81
|
+
*/
|
|
82
|
+
molId(): string | undefined;
|
|
73
83
|
/**
|
|
74
84
|
* Emits the selected option's value; the change event stops here so the
|
|
75
85
|
* host-level `change` output binding does not record it a second time. Every
|
|
@@ -89,7 +99,11 @@ export declare class RadioGroup {
|
|
|
89
99
|
*/
|
|
90
100
|
private readonly i18n;
|
|
91
101
|
private readonly host;
|
|
102
|
+
/** The element a caller's ref receives: the host `role="radiogroup"` `<div>`. */
|
|
103
|
+
readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
|
|
104
|
+
/** The per-instance native radio-group name when the caller gives none (React's `useId`). */
|
|
105
|
+
private readonly generatedName;
|
|
92
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroup, never>;
|
|
93
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroup, "div[mol-radio-group]", never, { "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "error": { "alias": "error"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
107
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroup, "div[mol-radio-group]", never, { "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "error": { "alias": "error"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
94
108
|
}
|
|
95
109
|
//# sourceMappingURL=radio-group.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.component.d.ts","sourceRoot":"","sources":["../../src/components/radio-group.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAyB,YAAY,EAAkB,MAAM,eAAe,CAAA;AAGnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;
|
|
1
|
+
{"version":3,"file":"radio-group.component.d.ts","sourceRoot":"","sources":["../../src/components/radio-group.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAyB,YAAY,EAAkB,MAAM,eAAe,CAAA;AAGnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,yBAAyB,CAAA;;AAKtE,wBAAwB;AACxB,MAAM,WAAW,WAAW;IAC1B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,iCAAiC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;GAMG;AACH,qBAyDa,UAAW,YAAW,UAAU,CAAC,cAAc,CAAC;IAC3D,6BAA6B;IAC7B,OAAO,CAAC,EAAE,WAAW,EAAE,CAAA;IACvB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yCAAyC;IACzC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qEAAqE;IACrE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wBAAwB;IACxB,SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,CAAA;IACrC,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4DAA4D;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,SAAS,IAAI,MAAM;IAInB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,UAAU,IAAI,MAAM;IAMpB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B;;;OAGG;IACH,KAAK,IAAI,MAAM,GAAG,SAAS;IAS3B;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAS1B,yCAAyC;IAC/B,QAAQ,CAAC,MAAM,uBAA6B;IAEtD;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;IAExC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiD;IACtE,iFAAiF;IACjF,QAAQ,CAAC,OAAO,wDAAyB;IAEzC,6FAA6F;IAC7F,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAmB;yCApHtC,UAAU;2CAAV,UAAU;CAqHtB"}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
import { Component, ElementRef, EventEmitter, inject, Output } from '@angular/core';
|
|
7
7
|
import { useTranslation } from '@molecule/app-angular';
|
|
8
8
|
import { getClassMap } from '@molecule/app-ui';
|
|
9
|
+
import { hostElement } from '../utilities/element.js';
|
|
10
|
+
import { nextInstanceId } from '../utilities/ids.js';
|
|
9
11
|
import { styleText } from '../utilities/style.js';
|
|
10
12
|
import { MolControlledChecked } from './controlled-checked.directive.js';
|
|
11
13
|
import * as i0 from "@angular/core";
|
|
@@ -85,6 +87,10 @@ export class RadioGroup {
|
|
|
85
87
|
testId;
|
|
86
88
|
/** Disables every option. */
|
|
87
89
|
disabled;
|
|
90
|
+
/** `data-mol-id` automation id (React's `automationId`). */
|
|
91
|
+
automationId;
|
|
92
|
+
/** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
|
|
93
|
+
dataMolId;
|
|
88
94
|
/**
|
|
89
95
|
* The current class map.
|
|
90
96
|
* @returns The UIClassMap.
|
|
@@ -97,7 +103,7 @@ export class RadioGroup {
|
|
|
97
103
|
* @returns The name value.
|
|
98
104
|
*/
|
|
99
105
|
groupName() {
|
|
100
|
-
return this.name ||
|
|
106
|
+
return this.name || this.generatedName;
|
|
101
107
|
}
|
|
102
108
|
/**
|
|
103
109
|
* The error paragraph id.
|
|
@@ -120,6 +126,16 @@ export class RadioGroup {
|
|
|
120
126
|
hostStyle() {
|
|
121
127
|
return styleText(this.style);
|
|
122
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* The `data-mol-id` value (`automationId` wins over a rest `data-mol-id`).
|
|
131
|
+
* @returns The attribute value.
|
|
132
|
+
*/
|
|
133
|
+
molId() {
|
|
134
|
+
return (this.automationId ??
|
|
135
|
+
this.dataMolId ??
|
|
136
|
+
this.host.nativeElement.getAttribute('data-mol-id') ??
|
|
137
|
+
undefined);
|
|
138
|
+
}
|
|
123
139
|
/**
|
|
124
140
|
* Emits the selected option's value; the change event stops here so the
|
|
125
141
|
* host-level `change` output binding does not record it a second time. Every
|
|
@@ -146,12 +162,16 @@ export class RadioGroup {
|
|
|
146
162
|
*/
|
|
147
163
|
i18n = useTranslation();
|
|
148
164
|
host = inject(ElementRef);
|
|
165
|
+
/** The element a caller's ref receives: the host `role="radiogroup"` `<div>`. */
|
|
166
|
+
element = hostElement(this.host);
|
|
167
|
+
/** The per-instance native radio-group name when the caller gives none (React's `useId`). */
|
|
168
|
+
generatedName = nextInstanceId();
|
|
149
169
|
static ɵfac = function RadioGroup_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || RadioGroup)(); };
|
|
150
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RadioGroup, selectors: [["div", "mol-radio-group", ""]], hostVars:
|
|
151
|
-
i0.ɵɵattribute("data-testid", ctx.testId)("role", "radiogroup")("aria-label", ctx.groupLabel())("aria-invalid", ctx.error ? "true" : null)("aria-describedby", ctx.error ? ctx.errorId() : null);
|
|
170
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RadioGroup, selectors: [["div", "mol-radio-group", ""]], hostVars: 10, hostBindings: function RadioGroup_HostBindings(rf, ctx) { if (rf & 2) {
|
|
171
|
+
i0.ɵɵattribute("data-testid", ctx.testId)("data-mol-id", ctx.molId())("role", "radiogroup")("aria-label", ctx.groupLabel())("aria-invalid", ctx.error ? "true" : null)("aria-describedby", ctx.error ? ctx.errorId() : null);
|
|
152
172
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
153
173
|
i0.ɵɵclassMap(ctx.className);
|
|
154
|
-
} }, inputs: { options: "options", value: "value", size: "size", label: "label", name: "name", direction: "direction", error: "error", className: "className", style: "style", testId: "testId", disabled: "disabled" }, outputs: { change: "change" }, decls: 5, vars: 5, consts: [[3, "class"], ["type", "radio", 3, "change", "molChecked", "disabled"]], template: function RadioGroup_Template(rf, ctx) { if (rf & 1) {
|
|
174
|
+
} }, inputs: { options: "options", value: "value", size: "size", label: "label", name: "name", direction: "direction", error: "error", className: "className", style: "style", testId: "testId", disabled: "disabled", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, outputs: { change: "change" }, decls: 5, vars: 5, consts: [[3, "class"], ["type", "radio", 3, "change", "molChecked", "disabled"]], template: function RadioGroup_Template(rf, ctx) { if (rf & 1) {
|
|
155
175
|
i0.ɵɵconditionalCreate(0, RadioGroup_Conditional_0_Template, 2, 4, "div", 0);
|
|
156
176
|
i0.ɵɵelementStart(1, "div");
|
|
157
177
|
i0.ɵɵrepeaterCreate(2, RadioGroup_For_3_Template, 4, 14, "label", 0, _forTrack0);
|
|
@@ -185,11 +205,14 @@ export class RadioGroup {
|
|
|
185
205
|
'style',
|
|
186
206
|
'testId',
|
|
187
207
|
'disabled',
|
|
208
|
+
'automationId',
|
|
209
|
+
'dataMolId: data-mol-id',
|
|
188
210
|
],
|
|
189
211
|
host: {
|
|
190
212
|
'[class]': 'className',
|
|
191
213
|
'[style]': 'hostStyle()',
|
|
192
214
|
'[attr.data-testid]': 'testId',
|
|
215
|
+
'[attr.data-mol-id]': 'molId()',
|
|
193
216
|
'[attr.role]': '"radiogroup"',
|
|
194
217
|
'[attr.aria-label]': 'groupLabel()',
|
|
195
218
|
'[attr.aria-invalid]': 'error ? "true" : null',
|
|
@@ -226,5 +249,5 @@ export class RadioGroup {
|
|
|
226
249
|
}], null, { change: [{
|
|
227
250
|
type: Output
|
|
228
251
|
}] }); })();
|
|
229
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RadioGroup, { className: "RadioGroup", filePath: "components/radio-group.component.ts", lineNumber:
|
|
252
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RadioGroup, { className: "RadioGroup", filePath: "components/radio-group.component.ts", lineNumber: 92 }); })();
|
|
230
253
|
//# sourceMappingURL=radio-group.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.component.js","sourceRoot":"","sources":["../../src/components/radio-group.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAEnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;;;;;;;
|
|
1
|
+
{"version":3,"file":"radio-group.component.js","sourceRoot":"","sources":["../../src/components/radio-group.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAEnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,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