@molecule/app-ui-angular 1.2.0 → 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 +2796 -800
- 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 +32 -5
- package/dist/components/dropdown.component.d.ts.map +1 -1
- package/dist/components/dropdown.component.js +86 -17
- 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
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
6
|
import { type AfterViewChecked, type AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
7
|
-
import type { Size, UIClassMap } from '@molecule/app-ui';
|
|
7
|
+
import type { FocusEventHandler, KeyboardEventHandler, Size, UIClassMap } from '@molecule/app-ui';
|
|
8
|
+
import type { HasElement } from '../utilities/element.js';
|
|
8
9
|
import type { FormFieldContext } from '../utilities/form-field-context.js';
|
|
9
10
|
import { type ResolvedIcon } from '../utilities/render-icon.js';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
@@ -27,7 +28,7 @@ export interface SelectPropsOption {
|
|
|
27
28
|
* a controlled `value` is restored after a change exactly like React's
|
|
28
29
|
* controlled-input state restore.
|
|
29
30
|
*/
|
|
30
|
-
export declare class Select implements AfterViewInit, AfterViewChecked {
|
|
31
|
+
export declare class Select implements AfterViewInit, AfterViewChecked, HasElement<HTMLSelectElement> {
|
|
31
32
|
/** The options to render. */
|
|
32
33
|
options?: SelectPropsOption[];
|
|
33
34
|
/** Controlled value. */
|
|
@@ -60,13 +61,30 @@ export declare class Select implements AfterViewInit, AfterViewChecked {
|
|
|
60
61
|
name?: string;
|
|
61
62
|
/** Explicit select id. */
|
|
62
63
|
id?: string;
|
|
64
|
+
/** `data-mol-id` automation id (React's `automationId`). */
|
|
65
|
+
automationId?: string;
|
|
66
|
+
/** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
|
|
67
|
+
dataMolId?: string;
|
|
68
|
+
/** React's `onFocus`, which React spreads onto the <select>: its `currentTarget` is that element. */
|
|
69
|
+
onFocus?: FocusEventHandler;
|
|
70
|
+
/** React's `onBlur`, which React spreads onto the <select>: its `currentTarget` is that element. */
|
|
71
|
+
onBlur?: FocusEventHandler;
|
|
72
|
+
/** React's `onKeyDown`, which React spreads onto the <select>: its `currentTarget` is that element. */
|
|
73
|
+
onKeyDown?: KeyboardEventHandler;
|
|
63
74
|
/** Fires the raw `change` event (React's onChange). */
|
|
64
75
|
readonly change: EventEmitter<Event>;
|
|
65
76
|
/** Fires the selected option's value. */
|
|
66
77
|
readonly valueChange: EventEmitter<string>;
|
|
67
78
|
/** The native select (React's `...rest` spread target). */
|
|
68
|
-
selectEl
|
|
79
|
+
private selectEl?;
|
|
80
|
+
/** The native select view query; also feeds the caller's ref element. */
|
|
81
|
+
set selectElQuery(ref: ElementRef<HTMLSelectElement> | undefined);
|
|
82
|
+
private readonly inner;
|
|
83
|
+
/** The element a caller's ref receives: the native `<select>`. */
|
|
84
|
+
readonly element: import("@angular/core").Signal<HTMLSelectElement | null>;
|
|
69
85
|
private readonly host;
|
|
86
|
+
/** The per-instance id used when the caller gives no `id` or `name` (React's `useId`). */
|
|
87
|
+
private readonly generatedId;
|
|
70
88
|
/**
|
|
71
89
|
* Reactive translation, read in the injection context. Its `t` reads the
|
|
72
90
|
* locale, so the view re-renders the text on a locale switch (the static `t`
|
|
@@ -77,6 +95,8 @@ export declare class Select implements AfterViewInit, AfterViewChecked {
|
|
|
77
95
|
private restDescribedBy;
|
|
78
96
|
/** Whether the rest-describedby value was captured. */
|
|
79
97
|
private restDescribedByCaptured;
|
|
98
|
+
/** The `data-mol-id` a caller bound on the host (React spreads it onto the select). */
|
|
99
|
+
private externalMolId;
|
|
80
100
|
/**
|
|
81
101
|
* The current class map.
|
|
82
102
|
* @returns The UIClassMap.
|
|
@@ -133,6 +153,11 @@ export declare class Select implements AfterViewInit, AfterViewChecked {
|
|
|
133
153
|
* @returns The style attribute text.
|
|
134
154
|
*/
|
|
135
155
|
hostStyle(): string | null;
|
|
156
|
+
/**
|
|
157
|
+
* The `data-mol-id` value (`automationId` wins over a rest `data-mol-id`).
|
|
158
|
+
* @returns The attribute value.
|
|
159
|
+
*/
|
|
160
|
+
molId(): string | undefined;
|
|
136
161
|
/**
|
|
137
162
|
* React's change handler: the raw event first, then the selected value; the
|
|
138
163
|
* event never reaches the host, where the `change` output binding would
|
|
@@ -166,6 +191,6 @@ export declare class Select implements AfterViewInit, AfterViewChecked {
|
|
|
166
191
|
*/
|
|
167
192
|
private applyValue;
|
|
168
193
|
static ɵfac: i0.ɵɵFactoryDeclaration<Select, never>;
|
|
169
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Select, "div[mol-select]", never, { "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "clearable": { "alias": "clearable"; "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; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "change": "change"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
194
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Select, "div[mol-select]", never, { "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "clearable": { "alias": "clearable"; "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; }; "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"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
170
195
|
}
|
|
171
196
|
//# sourceMappingURL=select.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.component.d.ts","sourceRoot":"","sources":["../../src/components/select.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAElB,UAAU,EACV,YAAY,
|
|
1
|
+
{"version":3,"file":"select.component.d.ts","sourceRoot":"","sources":["../../src/components/select.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAElB,UAAU,EACV,YAAY,EAKb,MAAM,eAAe,CAAA;AAGtB,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,kDAAkD;AAClD,MAAM,WAAW,iBAAiB;IAChC,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,0BAA0B;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;GAOG;AACH,qBA0Fa,MAAO,YAAW,aAAa,EAAE,gBAAgB,EAAE,UAAU,CAAC,iBAAiB,CAAC;IAC3F,6BAA6B;IAC7B,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM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|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component, ElementRef, EventEmitter, inject, Output, ViewChild, } from '@angular/core';
|
|
6
|
+
import { Component, ElementRef, EventEmitter, inject, Output, signal, ViewChild, } from '@angular/core';
|
|
7
7
|
import { useTranslation } from '@molecule/app-angular';
|
|
8
8
|
import { getClassMap } from '@molecule/app-ui';
|
|
9
9
|
import { fieldContext } from '../utilities/form-field-context.js';
|
|
10
|
+
import { nextInstanceId } from '../utilities/ids.js';
|
|
10
11
|
import { MolIconSvg, resolveIcon } from '../utilities/render-icon.js';
|
|
11
|
-
import { moveRestAttributes, reapplyRestAttributes } from '../utilities/rest-attrs.js';
|
|
12
|
+
import { adoptHostDataMolId, moveRestAttributes, reapplyRestAttributes, } from '../utilities/rest-attrs.js';
|
|
12
13
|
import { styleText } from '../utilities/style.js';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
const _c0 = ["selectEl"];
|
|
@@ -148,13 +149,34 @@ export class Select {
|
|
|
148
149
|
name;
|
|
149
150
|
/** Explicit select id. */
|
|
150
151
|
id;
|
|
152
|
+
/** `data-mol-id` automation id (React's `automationId`). */
|
|
153
|
+
automationId;
|
|
154
|
+
/** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
|
|
155
|
+
dataMolId;
|
|
156
|
+
/** React's `onFocus`, which React spreads onto the <select>: its `currentTarget` is that element. */
|
|
157
|
+
onFocus;
|
|
158
|
+
/** React's `onBlur`, which React spreads onto the <select>: its `currentTarget` is that element. */
|
|
159
|
+
onBlur;
|
|
160
|
+
/** React's `onKeyDown`, which React spreads onto the <select>: its `currentTarget` is that element. */
|
|
161
|
+
onKeyDown;
|
|
151
162
|
/** Fires the raw `change` event (React's onChange). */
|
|
152
163
|
change = new EventEmitter();
|
|
153
164
|
/** Fires the selected option's value. */
|
|
154
165
|
valueChange = new EventEmitter();
|
|
155
166
|
/** The native select (React's `...rest` spread target). */
|
|
156
167
|
selectEl;
|
|
168
|
+
/** The native select view query; also feeds the caller's ref element. */
|
|
169
|
+
set selectElQuery(ref) {
|
|
170
|
+
this.selectEl = ref;
|
|
171
|
+
this.inner.set(ref?.nativeElement ?? null);
|
|
172
|
+
}
|
|
173
|
+
inner = signal(null, /* @ts-ignore */
|
|
174
|
+
...(ngDevMode ? [{ debugName: "inner" }] : /* istanbul ignore next */ []));
|
|
175
|
+
/** The element a caller's ref receives: the native `<select>`. */
|
|
176
|
+
element = this.inner.asReadonly();
|
|
157
177
|
host = inject(ElementRef);
|
|
178
|
+
/** The per-instance id used when the caller gives no `id` or `name` (React's `useId`). */
|
|
179
|
+
generatedId = nextInstanceId();
|
|
158
180
|
/**
|
|
159
181
|
* Reactive translation, read in the injection context. Its `t` reads the
|
|
160
182
|
* locale, so the view re-renders the text on a locale switch (the static `t`
|
|
@@ -165,6 +187,8 @@ export class Select {
|
|
|
165
187
|
restDescribedBy = null;
|
|
166
188
|
/** Whether the rest-describedby value was captured. */
|
|
167
189
|
restDescribedByCaptured = false;
|
|
190
|
+
/** The `data-mol-id` a caller bound on the host (React spreads it onto the select). */
|
|
191
|
+
externalMolId;
|
|
168
192
|
/**
|
|
169
193
|
* The current class map.
|
|
170
194
|
* @returns The UIClassMap.
|
|
@@ -178,7 +202,7 @@ export class Select {
|
|
|
178
202
|
* @returns The id value.
|
|
179
203
|
*/
|
|
180
204
|
selectId() {
|
|
181
|
-
return this.id || this.fieldContext()?.id || this.name ||
|
|
205
|
+
return this.id || this.fieldContext()?.id || this.name || this.generatedId;
|
|
182
206
|
}
|
|
183
207
|
/**
|
|
184
208
|
* The aria-describedby target (error or hint paragraph).
|
|
@@ -254,6 +278,13 @@ export class Select {
|
|
|
254
278
|
hostStyle() {
|
|
255
279
|
return styleText(this.style);
|
|
256
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* The `data-mol-id` value (`automationId` wins over a rest `data-mol-id`).
|
|
283
|
+
* @returns The attribute value.
|
|
284
|
+
*/
|
|
285
|
+
molId() {
|
|
286
|
+
return this.automationId ?? this.dataMolId ?? this.externalMolId;
|
|
287
|
+
}
|
|
257
288
|
/**
|
|
258
289
|
* React's change handler: the raw event first, then the selected value; the
|
|
259
290
|
* event never reaches the host, where the `change` output binding would
|
|
@@ -276,6 +307,9 @@ export class Select {
|
|
|
276
307
|
this.restDescribedBy = this.host.nativeElement.getAttribute('aria-describedby');
|
|
277
308
|
this.restDescribedByCaptured = true;
|
|
278
309
|
}
|
|
310
|
+
adoptHostDataMolId(this.host.nativeElement, this.selectEl?.nativeElement, (id) => {
|
|
311
|
+
this.externalMolId = id;
|
|
312
|
+
}, () => this.molId());
|
|
279
313
|
moveRestAttributes(this.host.nativeElement, this.selectEl?.nativeElement);
|
|
280
314
|
this.applyValue(true);
|
|
281
315
|
}
|
|
@@ -292,6 +326,9 @@ export class Select {
|
|
|
292
326
|
// detection never re-checks this view — the parent's re-bound
|
|
293
327
|
// `[attr.aria-label]` would land on the host and stay there.
|
|
294
328
|
void this.i18n.locale();
|
|
329
|
+
adoptHostDataMolId(this.host.nativeElement, this.selectEl?.nativeElement, (id) => {
|
|
330
|
+
this.externalMolId = id;
|
|
331
|
+
}, () => this.molId());
|
|
295
332
|
reapplyRestAttributes(this.host.nativeElement, this.selectEl?.nativeElement);
|
|
296
333
|
this.applyValue(false);
|
|
297
334
|
}
|
|
@@ -337,13 +374,13 @@ export class Select {
|
|
|
337
374
|
i0.ɵɵviewQuery(_c0, 5);
|
|
338
375
|
} if (rf & 2) {
|
|
339
376
|
let _t;
|
|
340
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
|
377
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectElQuery = _t.first);
|
|
341
378
|
} }, hostVars: 2, hostBindings: function Select_HostBindings(rf, ctx) { if (rf & 2) {
|
|
342
379
|
i0.ɵɵclassMap(ctx.cm().inputWrapper);
|
|
343
|
-
} }, inputs: { options: "options", value: "value", defaultValue: "defaultValue", size: "size", label: "label", placeholder: "placeholder", error: "error", hint: "hint", clearable: "clearable", className: "className", style: "style", testId: "testId", disabled: "disabled", required: "required", name: "name", id: "id" }, outputs: { change: "change", valueChange: "valueChange" }, decls: 12, vars:
|
|
380
|
+
} }, inputs: { options: "options", value: "value", defaultValue: "defaultValue", size: "size", label: "label", placeholder: "placeholder", error: "error", hint: "hint", clearable: "clearable", className: "className", style: "style", testId: "testId", disabled: "disabled", required: "required", name: "name", id: "id", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"], onFocus: "onFocus", onBlur: "onBlur", onKeyDown: "onKeyDown" }, outputs: { change: "change", valueChange: "valueChange" }, decls: 12, vars: 22, consts: [["selectEl", ""], [3, "class"], [3, "change", "focusin", "focusout", "keydown", "disabled"], ["value", "", "disabled", ""], ["value", ""], ["mol-icon", "", 3, "data"]], template: function Select_Template(rf, ctx) { if (rf & 1) {
|
|
344
381
|
i0.ɵɵconditionalCreate(0, Select_Conditional_0_Template, 2, 6, "label", 1);
|
|
345
382
|
i0.ɵɵelementStart(1, "div")(2, "select", 2, 0);
|
|
346
|
-
i0.ɵɵlistener("change", function Select_Template_select_change_2_listener($event) { return ctx.handleChange($event); });
|
|
383
|
+
i0.ɵɵlistener("change", function Select_Template_select_change_2_listener($event) { return ctx.handleChange($event); })("focusin", function Select_Template_select_focusin_2_listener($event) { return ctx.onFocus?.($event); })("focusout", function Select_Template_select_focusout_2_listener($event) { return ctx.onBlur?.($event); })("keydown", function Select_Template_select_keydown_2_listener($event) { return ctx.onKeyDown?.($event); });
|
|
347
384
|
i0.ɵɵconditionalCreate(4, Select_Conditional_4_Template, 2, 1, "option", 3);
|
|
348
385
|
i0.ɵɵconditionalCreate(5, Select_Conditional_5_Template, 2, 1, "option", 4);
|
|
349
386
|
i0.ɵɵrepeaterCreate(6, Select_For_7_Template, 2, 1, null, null, i0.ɵɵrepeaterTrackByIndex);
|
|
@@ -361,7 +398,7 @@ export class Select {
|
|
|
361
398
|
i0.ɵɵadvance();
|
|
362
399
|
i0.ɵɵclassMap(ctx.classes());
|
|
363
400
|
i0.ɵɵproperty("disabled", ctx.disabled);
|
|
364
|
-
i0.ɵɵattribute("id", ctx.selectId())("name", ctx.name)("required", ctx.required ? "" : null)("aria-invalid", ctx.error || ctx.fieldContext()?.invalid ? "true" : "false")("aria-describedby", ctx.mergedDescribedBy())("style", ctx.hostStyle(), i0.ɵɵsanitizeStyle)("data-testid", ctx.testId);
|
|
401
|
+
i0.ɵɵattribute("id", ctx.selectId())("name", ctx.name)("required", ctx.required ? "" : null)("aria-invalid", ctx.error || ctx.fieldContext()?.invalid ? "true" : "false")("aria-describedby", ctx.mergedDescribedBy())("style", ctx.hostStyle(), i0.ɵɵsanitizeStyle)("data-testid", ctx.testId)("data-mol-id", ctx.molId());
|
|
365
402
|
i0.ɵɵadvance(2);
|
|
366
403
|
i0.ɵɵconditional(ctx.placeholder ? 4 : -1);
|
|
367
404
|
i0.ɵɵadvance();
|
|
@@ -402,6 +439,11 @@ export class Select {
|
|
|
402
439
|
'required',
|
|
403
440
|
'name',
|
|
404
441
|
'id',
|
|
442
|
+
'automationId',
|
|
443
|
+
'dataMolId: data-mol-id',
|
|
444
|
+
'onFocus',
|
|
445
|
+
'onBlur',
|
|
446
|
+
'onKeyDown',
|
|
405
447
|
],
|
|
406
448
|
host: {
|
|
407
449
|
'[class]': 'cm().inputWrapper',
|
|
@@ -424,7 +466,11 @@ export class Select {
|
|
|
424
466
|
[class]="classes()"
|
|
425
467
|
[attr.style]="hostStyle()"
|
|
426
468
|
[attr.data-testid]="testId"
|
|
469
|
+
[attr.data-mol-id]="molId()"
|
|
427
470
|
(change)="handleChange($event)"
|
|
471
|
+
(focusin)="onFocus?.($event)"
|
|
472
|
+
(focusout)="onBlur?.($event)"
|
|
473
|
+
(keydown)="onKeyDown?.($event)"
|
|
428
474
|
#selectEl
|
|
429
475
|
>
|
|
430
476
|
@if (placeholder) {
|
|
@@ -466,9 +512,9 @@ export class Select {
|
|
|
466
512
|
type: Output
|
|
467
513
|
}], valueChange: [{
|
|
468
514
|
type: Output
|
|
469
|
-
}],
|
|
515
|
+
}], selectElQuery: [{
|
|
470
516
|
type: ViewChild,
|
|
471
517
|
args: ['selectEl']
|
|
472
518
|
}] }); })();
|
|
473
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Select, { className: "Select", filePath: "components/select.component.ts", lineNumber:
|
|
519
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Select, { className: "Select", filePath: "components/select.component.ts", lineNumber: 145 }); })();
|
|
474
520
|
//# sourceMappingURL=select.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.component.js","sourceRoot":"","sources":["../../src/components/select.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EACN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"select.component.js","sourceRoot":"","sources":["../../src/components/select.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EACN,MAAM,EACN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAqB,WAAW,EAAE,MAAM,6B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AAU;;kFArDV,MAAM"}
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
2
|
+
import { type HasElement } from '../utilities/element.js';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Props for {@link Separator} (React's `SeparatorProps`, in Angular's form).
|
|
6
|
+
*/
|
|
7
|
+
export interface SeparatorProps {
|
|
8
|
+
/** Orientation of the separator. Defaults to `horizontal`. */
|
|
9
|
+
orientation?: 'horizontal' | 'vertical';
|
|
10
|
+
/** Decorative separators are purely visual (default true). */
|
|
11
|
+
decorative?: boolean;
|
|
12
|
+
/** Extra classes. */
|
|
13
|
+
className?: string;
|
|
14
|
+
/** Inline style object (React camelCase). */
|
|
15
|
+
style?: Record<string, unknown>;
|
|
16
|
+
/** `data-testid`. */
|
|
17
|
+
testId?: string;
|
|
18
|
+
/** `data-mol-id` automation id (React's `automationId`). */
|
|
19
|
+
automationId?: string;
|
|
20
|
+
}
|
|
3
21
|
/**
|
|
4
22
|
* Separator component.
|
|
5
23
|
*
|
|
@@ -7,17 +25,24 @@ import * as i0 from "@angular/core";
|
|
|
7
25
|
* one (`decorative={false}`) renders `role="separator"` plus
|
|
8
26
|
* `aria-orientation`.
|
|
9
27
|
*/
|
|
10
|
-
export declare class Separator {
|
|
28
|
+
export declare class Separator implements HasElement<HTMLDivElement> {
|
|
29
|
+
private readonly host;
|
|
30
|
+
/** The element a caller's ref receives: the host `<div>`. */
|
|
31
|
+
readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
|
|
11
32
|
/** Orientation of the separator. */
|
|
12
|
-
orientation: '
|
|
33
|
+
orientation: SeparatorProps['orientation'];
|
|
13
34
|
/** Decorative separators are purely visual. */
|
|
14
|
-
decorative:
|
|
35
|
+
decorative: SeparatorProps['decorative'];
|
|
15
36
|
/** Extra classes. */
|
|
16
|
-
className?:
|
|
37
|
+
className?: SeparatorProps['className'];
|
|
17
38
|
/** Inline style object (React camelCase). */
|
|
18
|
-
style?:
|
|
39
|
+
style?: SeparatorProps['style'];
|
|
19
40
|
/** `data-testid`. */
|
|
20
|
-
testId?:
|
|
41
|
+
testId?: SeparatorProps['testId'];
|
|
42
|
+
/** `data-mol-id` automation id (React's `automationId`). */
|
|
43
|
+
automationId?: SeparatorProps['automationId'];
|
|
44
|
+
/** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
|
|
45
|
+
dataMolId?: string;
|
|
21
46
|
/**
|
|
22
47
|
* The current class map.
|
|
23
48
|
* @returns The UIClassMap.
|
|
@@ -28,12 +53,17 @@ export declare class Separator {
|
|
|
28
53
|
* @returns The class string.
|
|
29
54
|
*/
|
|
30
55
|
classes(): string;
|
|
56
|
+
/**
|
|
57
|
+
* The `data-mol-id` value (`automationId` wins over a rest `data-mol-id`).
|
|
58
|
+
* @returns The attribute value.
|
|
59
|
+
*/
|
|
60
|
+
molId(): string | undefined;
|
|
31
61
|
/**
|
|
32
62
|
* Serializes the inline style.
|
|
33
63
|
* @returns The style attribute text.
|
|
34
64
|
*/
|
|
35
65
|
hostStyle(): string | null;
|
|
36
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<Separator, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Separator, "div[mol-separator]", never, { "orientation": { "alias": "orientation"; "required": false; }; "decorative": { "alias": "decorative"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, never, true, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Separator, "div[mol-separator]", never, { "orientation": { "alias": "orientation"; "required": false; }; "decorative": { "alias": "decorative"; "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, never, true, never>;
|
|
38
68
|
}
|
|
39
69
|
//# sourceMappingURL=separator.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.component.d.ts","sourceRoot":"","sources":["../../src/components/separator.component.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;
|
|
1
|
+
{"version":3,"file":"separator.component.d.ts","sourceRoot":"","sources":["../../src/components/separator.component.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,yBAAyB,CAAA;;AAGtE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,8DAA8D;IAC9D,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qBAAqB;IACrB,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,4DAA4D;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;;;;GAMG;AACH,qBAsBa,SAAU,YAAW,UAAU,CAAC,cAAc,CAAC;IAC1D,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiD;IACtE,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,wDAAyB;IAEzC,oCAAoC;IACpC,WAAW,EAAE,cAAc,CAAC,aAAa,CAAC,CAAe;IACzD,+CAA+C;IAC/C,UAAU,EAAE,cAAc,CAAC,YAAY,CAAC,CAAO;IAC/C,qBAAqB;IACrB,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAA;IACvC,6CAA6C;IAC7C,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,qBAAqB;IACrB,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAA;IACjC,4DAA4D;IAC5D,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;IAC7C,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,KAAK,IAAI,MAAM,GAAG,SAAS;IAS3B;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;yCArDf,SAAS;2CAAT,SAAS;CAwDrB"}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component } from '@angular/core';
|
|
6
|
+
import { Component, ElementRef, inject } from '@angular/core';
|
|
7
7
|
import { getClassMap } from '@molecule/app-ui';
|
|
8
|
+
import { hostElement } from '../utilities/element.js';
|
|
8
9
|
import { styleText } from '../utilities/style.js';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
|
@@ -15,6 +16,9 @@ import * as i0 from "@angular/core";
|
|
|
15
16
|
* `aria-orientation`.
|
|
16
17
|
*/
|
|
17
18
|
export class Separator {
|
|
19
|
+
host = inject(ElementRef);
|
|
20
|
+
/** The element a caller's ref receives: the host `<div>`. */
|
|
21
|
+
element = hostElement(this.host);
|
|
18
22
|
/** Orientation of the separator. */
|
|
19
23
|
orientation = 'horizontal';
|
|
20
24
|
/** Decorative separators are purely visual. */
|
|
@@ -25,6 +29,10 @@ export class Separator {
|
|
|
25
29
|
style;
|
|
26
30
|
/** `data-testid`. */
|
|
27
31
|
testId;
|
|
32
|
+
/** `data-mol-id` automation id (React's `automationId`). */
|
|
33
|
+
automationId;
|
|
34
|
+
/** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
|
|
35
|
+
dataMolId;
|
|
28
36
|
/**
|
|
29
37
|
* The current class map.
|
|
30
38
|
* @returns The UIClassMap.
|
|
@@ -39,6 +47,16 @@ export class Separator {
|
|
|
39
47
|
classes() {
|
|
40
48
|
return this.cm().cn(this.cm().separator({ orientation: this.orientation }), this.className);
|
|
41
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* The `data-mol-id` value (`automationId` wins over a rest `data-mol-id`).
|
|
52
|
+
* @returns The attribute value.
|
|
53
|
+
*/
|
|
54
|
+
molId() {
|
|
55
|
+
return (this.automationId ??
|
|
56
|
+
this.dataMolId ??
|
|
57
|
+
this.host.nativeElement.getAttribute('data-mol-id') ??
|
|
58
|
+
undefined);
|
|
59
|
+
}
|
|
42
60
|
/**
|
|
43
61
|
* Serializes the inline style.
|
|
44
62
|
* @returns The style attribute text.
|
|
@@ -47,27 +65,36 @@ export class Separator {
|
|
|
47
65
|
return styleText(this.style);
|
|
48
66
|
}
|
|
49
67
|
static ɵfac = function Separator_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Separator)(); };
|
|
50
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Separator, selectors: [["div", "mol-separator", ""]], hostVars:
|
|
51
|
-
i0.ɵɵattribute("role", ctx.decorative ? "none" : "separator")("aria-orientation", ctx.decorative ? null : ctx.orientation)("data-testid", ctx.testId);
|
|
68
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Separator, selectors: [["div", "mol-separator", ""]], hostVars: 8, hostBindings: function Separator_HostBindings(rf, ctx) { if (rf & 2) {
|
|
69
|
+
i0.ɵɵattribute("role", ctx.decorative ? "none" : "separator")("aria-orientation", ctx.decorative ? null : ctx.orientation)("data-testid", ctx.testId)("data-mol-id", ctx.molId());
|
|
52
70
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
53
71
|
i0.ɵɵclassMap(ctx.classes());
|
|
54
|
-
} }, inputs: { orientation: "orientation", decorative: "decorative", className: "className", style: "style", testId: "testId" }, decls: 0, vars: 0, template: function Separator_Template(rf, ctx) { }, encapsulation: 2 });
|
|
72
|
+
} }, inputs: { orientation: "orientation", decorative: "decorative", className: "className", style: "style", testId: "testId", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, decls: 0, vars: 0, template: function Separator_Template(rf, ctx) { }, encapsulation: 2 });
|
|
55
73
|
}
|
|
56
74
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Separator, [{
|
|
57
75
|
type: Component,
|
|
58
76
|
args: [{
|
|
59
77
|
selector: 'div[mol-separator]',
|
|
60
78
|
standalone: true,
|
|
61
|
-
inputs: [
|
|
79
|
+
inputs: [
|
|
80
|
+
'orientation',
|
|
81
|
+
'decorative',
|
|
82
|
+
'className',
|
|
83
|
+
'style',
|
|
84
|
+
'testId',
|
|
85
|
+
'automationId',
|
|
86
|
+
'dataMolId: data-mol-id',
|
|
87
|
+
],
|
|
62
88
|
host: {
|
|
63
89
|
'[attr.role]': 'decorative ? "none" : "separator"',
|
|
64
90
|
'[attr.aria-orientation]': 'decorative ? null : orientation',
|
|
65
91
|
'[class]': 'classes()',
|
|
66
92
|
'[style]': 'hostStyle()',
|
|
67
93
|
'[attr.data-testid]': 'testId',
|
|
94
|
+
'[attr.data-mol-id]': 'molId()',
|
|
68
95
|
},
|
|
69
96
|
template: '',
|
|
70
97
|
}]
|
|
71
98
|
}], null, null); })();
|
|
72
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Separator, { className: "Separator", filePath: "components/separator.component.ts", lineNumber:
|
|
99
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Separator, { className: "Separator", filePath: "components/separator.component.ts", lineNumber: 62 }); })();
|
|
73
100
|
//# sourceMappingURL=separator.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.component.js","sourceRoot":"","sources":["../../src/components/separator.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"separator.component.js","sourceRoot":"","sources":["../../src/components/separator.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG7D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;;AAoBjD;;;;;;GAMG;AAuBH,MAAM,OAAO,SAAS;IACH,IAAI,GAA+B,MAAM,CAAC,UAAU,CAAC,CAAA;IACtE,6DAA6D;IACpD,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAEzC,oCAAoC;IACpC,WAAW,GAAkC,YAAY,CAAA;IACzD,+CAA+C;IAC/C,UAAU,GAAiC,IAAI,CAAA;IAC/C,qBAAqB;IACrB,SAAS,CAA8B;IACvC,6CAA6C;IAC7C,KAAK,CAA0B;IAC/B,qBAAqB;IACrB,MAAM,CAA2B;IACjC,4DAA4D;IAC5D,YAAY,CAAiC;IAC7C,wFAAwF;IACxF,SAAS,CAAS;IAElB;;;OAGG;IACH,EAAE;QACA,OAAO,WAAW,EAAE,CAAA;IACtB,CAAC;IAED;;;OAGG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC7F,CAAC;IAED;;;OAGG;IACH,KAAK;QACH,OAAO,CACL,IAAI,CAAC,YAAY;YACjB,IAAI,CAAC,SAAS;YACd,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,aAAa,CAAC;YACnD,SAAS,CACV,CAAA;IACH,CAAC;IAED;;;OAGG;IACH,SAAS;QACP,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;mGAvDU,SAAS;6DAAT,SAAS;oDAAI,MAAM,GAAG,WAAW,uCAApB,IAAI,8DAAjB,WAAO;YAAP,cAAA,eAAW,CAAF;YAAT,cAAA,aAAS,CAAA;;;iFAAT,SAAS;cAtBrB,SAAS;eAAC;gBACT,QAAQ,EAAE,oBAAoB;gBAC9B,UAAU,EAAE,IAAI;gBAChB,MAAM,EAAE;oBACN,aAAa;oBACb,YAAY;oBACZ,WAAW;oBACX,OAAO;oBACP,QAAQ;oBACR,cAAc;oBACd,wBAAwB;iBACzB;gBACD,IAAI,EAAE;oBACJ,aAAa,EAAE,mCAAmC;oBAClD,yBAAyB,EAAE,iCAAiC;oBAC5D,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,aAAa;oBACxB,oBAAoB,EAAE,QAAQ;oBAC9B,oBAAoB,EAAE,SAAS;iBAChC;gBACD,QAAQ,EAAE,EAAE;aACb;;kFACY,SAAS"}
|
|
@@ -16,6 +16,27 @@ interface AccountUserShape {
|
|
|
16
16
|
/** Optional avatar image URL. */
|
|
17
17
|
avatarUrl?: string | null;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Props for {@link SidebarUserCard} (React's `SidebarUserCardProps`, in
|
|
21
|
+
* Angular's form). The panel content is projected content, so it has no
|
|
22
|
+
* member; the trigger's extra `<button>` attributes land on the host.
|
|
23
|
+
*/
|
|
24
|
+
export interface SidebarUserCardProps {
|
|
25
|
+
/** Display name override. */
|
|
26
|
+
name?: string;
|
|
27
|
+
/** Secondary line under the name. */
|
|
28
|
+
secondaryLine?: string;
|
|
29
|
+
/** Avatar image URL override. */
|
|
30
|
+
avatarUrl?: string;
|
|
31
|
+
/** i18n key for the trigger's aria-label (default `sidebarUserCard.open`). */
|
|
32
|
+
ariaLabelKey?: string;
|
|
33
|
+
/** Fallback aria-label if the i18n key is missing. */
|
|
34
|
+
ariaLabelDefault?: string;
|
|
35
|
+
/** `data-mol-id` for the trigger (default `sidebar-user-card`). */
|
|
36
|
+
dataMolId?: string;
|
|
37
|
+
/** Extra classes for the trigger. */
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
19
40
|
/**
|
|
20
41
|
* SidebarUserCard component.
|
|
21
42
|
*
|
|
@@ -26,19 +47,19 @@ interface AccountUserShape {
|
|
|
26
47
|
*/
|
|
27
48
|
export declare class SidebarUserCard implements AfterViewInit, OnDestroy {
|
|
28
49
|
/** Display name override (falls back to the auth user, then the guest label). */
|
|
29
|
-
name?:
|
|
50
|
+
name?: SidebarUserCardProps['name'];
|
|
30
51
|
/** Secondary line under the name (falls back to the auth user's email). */
|
|
31
|
-
secondaryLine?:
|
|
52
|
+
secondaryLine?: SidebarUserCardProps['secondaryLine'];
|
|
32
53
|
/** Avatar image URL override. */
|
|
33
|
-
avatarUrl?:
|
|
54
|
+
avatarUrl?: SidebarUserCardProps['avatarUrl'];
|
|
34
55
|
/** i18n key for the trigger's aria-label (default `sidebarUserCard.open`). */
|
|
35
|
-
ariaLabelKey?:
|
|
56
|
+
ariaLabelKey?: SidebarUserCardProps['ariaLabelKey'];
|
|
36
57
|
/** Fallback aria-label (default `Open account menu`). */
|
|
37
|
-
ariaLabelDefault?:
|
|
58
|
+
ariaLabelDefault?: SidebarUserCardProps['ariaLabelDefault'];
|
|
38
59
|
/** `data-mol-id` for the trigger (default `sidebar-user-card`). */
|
|
39
|
-
dataMolId
|
|
60
|
+
dataMolId?: SidebarUserCardProps['dataMolId'];
|
|
40
61
|
/** Extra classes for the trigger. */
|
|
41
|
-
className?:
|
|
62
|
+
className?: SidebarUserCardProps['className'];
|
|
42
63
|
/** Whether the drawer is open. */
|
|
43
64
|
readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
44
65
|
/** Auth state (identity defaults). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-user-card.component.d.ts","sourceRoot":"","sources":["../../src/components/sidebar-user-card.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,aAAa,EAGlB,UAAU,EAEV,KAAK,SAAS,EAGf,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AASlD,gDAAgD;AAChD,UAAU,gBAAgB;IACxB,oBAAoB;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED;;;;;;;GAOG;AACH,qBA+Ca,eAAgB,YAAW,aAAa,EAAE,SAAS;IAC9D,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"sidebar-user-card.component.d.ts","sourceRoot":"","sources":["../../src/components/sidebar-user-card.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,aAAa,EAGlB,UAAU,EAEV,KAAK,SAAS,EAGf,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AASlD,gDAAgD;AAChD,UAAU,gBAAgB;IACxB,oBAAoB;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,6BAA6B;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,i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,QAAQ,CAAC,WAAW,CAI1B;IAEF;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB,sCAAsC;IACtC,SAAS,IAAI,MAAM;IAUnB;;;;;;;;OAQG;IACH,WAAW,IAAI,MAAM;IAIrB;;;OAGG;IACH,WAAW,IAAI,MAAM;IASrB;;;OAGG;IACH,gBAAgB,IAAI,MAAM,GAAG,SAAS;IAItC;;;OAGG;IACH,aAAa,IAAI,MAAM,GAAG,SAAS;IAInC,+BAA+B;IAC/B,QAAQ,IAAI,MAAM;IAIlB,gCAAgC;IAChC,cAAc,IAAI,MAAM;IAUxB,mCAAmC;IACnC,aAAa,IAAI,MAAM;IAUvB,qCAAqC;IACrC,eAAe,IAAI,MAAM;IAYzB,yCAAyC;IACzC,aAAa,IAAI,MAAM,GAAG,IAAI;IAO9B,mCAAmC;IACnC,WAAW,IAAI,MAAM;IASrB,qCAAqC;IACrC,gBAAgB,IAAI,MAAM;IAS1B,8DAA8D;IAC9D,UAAU,QAAO,IAAI,CAEpB;IAED,uEAAuE;IACvE,eAAe,IAAI,IAAI;IAcvB,8CAA8C;IAC9C,WAAW,IAAI,IAAI;yCAhMR,eAAe;2CAAf,eAAe;CAmM3B"}
|
|
@@ -290,5 +290,5 @@ export class SidebarUserCard {
|
|
|
290
290
|
type: ViewChild,
|
|
291
291
|
args: ['trigger']
|
|
292
292
|
}] }); })();
|
|
293
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SidebarUserCard, { className: "SidebarUserCard", filePath: "components/sidebar-user-card.component.ts", lineNumber:
|
|
293
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SidebarUserCard, { className: "SidebarUserCard", filePath: "components/sidebar-user-card.component.ts", lineNumber: 116 }); })();
|
|
294
294
|
//# sourceMappingURL=sidebar-user-card.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-user-card.component.js","sourceRoot":"","sources":["../../src/components/sidebar-user-card.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,SAAS,EACT,MAAM,EACN,UAAU,EACV,MAAM,EAEN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;;;;;
|
|
1
|
+
{"version":3,"file":"sidebar-user-card.component.js","sourceRoot":"","sources":["../../src/components/sidebar-user-card.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,SAAS,EACT,MAAM,EACN,UAAU,EACV,MAAM,EAEN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;;;;;IAoEvD,yBAAuD;;;IAA5B,qCAAyB;IAA/C,yBAAc;;;IAEnB,+BAA+E;I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