@molecule/app-ui-angular 1.0.6 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11740 -1143
- package/dist/components/accordion.component.d.ts +114 -0
- package/dist/components/accordion.component.d.ts.map +1 -0
- package/dist/components/accordion.component.js +286 -0
- package/dist/components/accordion.component.js.map +1 -0
- package/dist/components/alert.component.d.ts +81 -37
- package/dist/components/alert.component.d.ts.map +1 -1
- package/dist/components/alert.component.js +232 -146
- package/dist/components/alert.component.js.map +1 -1
- package/dist/components/auth-guard.component.d.ts +94 -0
- package/dist/components/auth-guard.component.d.ts.map +1 -0
- package/dist/components/auth-guard.component.js +212 -0
- package/dist/components/auth-guard.component.js.map +1 -0
- package/dist/components/avatar.component.d.ts +97 -0
- package/dist/components/avatar.component.d.ts.map +1 -0
- package/dist/components/avatar.component.js +216 -0
- package/dist/components/avatar.component.js.map +1 -0
- package/dist/components/badge.component.d.ts +27 -12
- package/dist/components/badge.component.d.ts.map +1 -1
- package/dist/components/badge.component.js +47 -47
- package/dist/components/badge.component.js.map +1 -1
- package/dist/components/button.component.d.ts +96 -14
- package/dist/components/button.component.d.ts.map +1 -1
- package/dist/components/button.component.js +232 -87
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/card.component.d.ts +135 -0
- package/dist/components/card.component.d.ts.map +1 -0
- package/dist/components/card.component.js +291 -0
- package/dist/components/card.component.js.map +1 -0
- package/dist/components/checkbox.component.d.ts +102 -29
- package/dist/components/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox.component.js +222 -113
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/confirm-button.component.d.ts +130 -0
- package/dist/components/confirm-button.component.d.ts.map +1 -0
- package/dist/components/confirm-button.component.js +322 -0
- package/dist/components/confirm-button.component.js.map +1 -0
- package/dist/components/confirm-dialog.component.d.ts +60 -0
- package/dist/components/confirm-dialog.component.d.ts.map +1 -0
- package/dist/components/confirm-dialog.component.js +152 -0
- package/dist/components/confirm-dialog.component.js.map +1 -0
- package/dist/components/dropdown.component.d.ts +313 -0
- package/dist/components/dropdown.component.d.ts.map +1 -0
- package/dist/components/dropdown.component.js +919 -0
- package/dist/components/dropdown.component.js.map +1 -0
- package/dist/components/empty-state.component.d.ts +73 -0
- package/dist/components/empty-state.component.d.ts.map +1 -0
- package/dist/components/empty-state.component.js +180 -0
- package/dist/components/empty-state.component.js.map +1 -0
- package/dist/components/floating-input.component.d.ts +86 -0
- package/dist/components/floating-input.component.d.ts.map +1 -0
- package/dist/components/floating-input.component.js +167 -0
- package/dist/components/floating-input.component.js.map +1 -0
- package/dist/components/form-field.component.d.ts +111 -0
- package/dist/components/form-field.component.d.ts.map +1 -0
- package/dist/components/form-field.component.js +300 -0
- package/dist/components/form-field.component.js.map +1 -0
- package/dist/components/form.component.d.ts +77 -0
- package/dist/components/form.component.d.ts.map +1 -0
- package/dist/components/form.component.js +222 -0
- package/dist/components/form.component.js.map +1 -0
- package/dist/components/icon.component.d.ts +85 -0
- package/dist/components/icon.component.d.ts.map +1 -0
- package/dist/components/icon.component.js +187 -0
- package/dist/components/icon.component.js.map +1 -0
- package/dist/components/index.d.ts +49 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +49 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/input.component.d.ts +157 -54
- package/dist/components/input.component.d.ts.map +1 -1
- package/dist/components/input.component.js +437 -222
- package/dist/components/input.component.js.map +1 -1
- package/dist/components/label.component.d.ts +29 -0
- package/dist/components/label.component.d.ts.map +1 -0
- package/dist/components/label.component.js +60 -0
- package/dist/components/label.component.js.map +1 -0
- package/dist/components/language-picker.component.d.ts +124 -0
- package/dist/components/language-picker.component.d.ts.map +1 -0
- package/dist/components/language-picker.component.js +305 -0
- package/dist/components/language-picker.component.js.map +1 -0
- package/dist/components/layout.component.d.ts +167 -0
- package/dist/components/layout.component.d.ts.map +1 -0
- package/dist/components/layout.component.js +364 -0
- package/dist/components/layout.component.js.map +1 -0
- package/dist/components/load-error-banner.component.d.ts +103 -0
- package/dist/components/load-error-banner.component.d.ts.map +1 -0
- package/dist/components/load-error-banner.component.js +263 -0
- package/dist/components/load-error-banner.component.js.map +1 -0
- package/dist/components/modal.component.d.ts +125 -95
- package/dist/components/modal.component.d.ts.map +1 -1
- package/dist/components/modal.component.js +458 -271
- package/dist/components/modal.component.js.map +1 -1
- package/dist/components/molecule/alert.component.d.ts +77 -0
- package/dist/components/molecule/alert.component.d.ts.map +1 -0
- package/dist/components/molecule/alert.component.js +229 -0
- package/dist/components/molecule/alert.component.js.map +1 -0
- package/dist/components/molecule/badge.component.d.ts +27 -0
- package/dist/components/molecule/badge.component.d.ts.map +1 -0
- package/dist/components/molecule/badge.component.js +79 -0
- package/dist/components/molecule/badge.component.js.map +1 -0
- package/dist/components/molecule/button.component.d.ts +38 -0
- package/dist/components/molecule/button.component.d.ts.map +1 -0
- package/dist/components/molecule/button.component.js +137 -0
- package/dist/components/molecule/button.component.js.map +1 -0
- package/dist/components/molecule/checkbox.component.d.ts +53 -0
- package/dist/components/molecule/checkbox.component.d.ts.map +1 -0
- package/dist/components/molecule/checkbox.component.js +166 -0
- package/dist/components/molecule/checkbox.component.js.map +1 -0
- package/dist/components/molecule/index.d.ts +18 -0
- package/dist/components/molecule/index.d.ts.map +1 -0
- package/dist/components/molecule/index.js +18 -0
- package/dist/components/molecule/index.js.map +1 -0
- package/dist/components/molecule/input.component.d.ts +93 -0
- package/dist/components/molecule/input.component.d.ts.map +1 -0
- package/dist/components/molecule/input.component.js +314 -0
- package/dist/components/molecule/input.component.js.map +1 -0
- package/dist/components/molecule/modal.component.d.ts +148 -0
- package/dist/components/molecule/modal.component.d.ts.map +1 -0
- package/dist/components/molecule/modal.component.js +382 -0
- package/dist/components/molecule/modal.component.js.map +1 -0
- package/dist/components/molecule/radio-group.component.d.ts +63 -0
- package/dist/components/molecule/radio-group.component.d.ts.map +1 -0
- package/dist/components/molecule/radio-group.component.js +208 -0
- package/dist/components/molecule/radio-group.component.js.map +1 -0
- package/dist/components/molecule/select.component.d.ts +72 -0
- package/dist/components/molecule/select.component.d.ts.map +1 -0
- package/dist/components/molecule/select.component.js +274 -0
- package/dist/components/molecule/select.component.js.map +1 -0
- package/dist/components/molecule/spinner.component.d.ts +42 -0
- package/dist/components/molecule/spinner.component.d.ts.map +1 -0
- package/dist/components/molecule/spinner.component.js +122 -0
- package/dist/components/molecule/spinner.component.js.map +1 -0
- package/dist/components/molecule/switch.component.d.ts +54 -0
- package/dist/components/molecule/switch.component.d.ts.map +1 -0
- package/dist/components/molecule/switch.component.js +148 -0
- package/dist/components/molecule/switch.component.js.map +1 -0
- package/dist/components/molecule/toast.component.d.ts +98 -0
- package/dist/components/molecule/toast.component.d.ts.map +1 -0
- package/dist/components/molecule/toast.component.js +305 -0
- package/dist/components/molecule/toast.component.js.map +1 -0
- package/dist/components/molecule/tooltip.component.d.ts +77 -0
- package/dist/components/molecule/tooltip.component.d.ts.map +1 -0
- package/dist/components/molecule/tooltip.component.js +316 -0
- package/dist/components/molecule/tooltip.component.js.map +1 -0
- package/dist/components/optimistic-toggle-button.component.d.ts +125 -0
- package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -0
- package/dist/components/optimistic-toggle-button.component.js +296 -0
- package/dist/components/optimistic-toggle-button.component.js.map +1 -0
- package/dist/components/page-header.component.d.ts +77 -0
- package/dist/components/page-header.component.d.ts.map +1 -0
- package/dist/components/page-header.component.js +225 -0
- package/dist/components/page-header.component.js.map +1 -0
- package/dist/components/page-shell.component.d.ts +101 -0
- package/dist/components/page-shell.component.d.ts.map +1 -0
- package/dist/components/page-shell.component.js +221 -0
- package/dist/components/page-shell.component.js.map +1 -0
- package/dist/components/pagination.component.d.ts +137 -0
- package/dist/components/pagination.component.d.ts.map +1 -0
- package/dist/components/pagination.component.js +419 -0
- package/dist/components/pagination.component.js.map +1 -0
- package/dist/components/panel-close.component.d.ts +43 -0
- package/dist/components/panel-close.component.d.ts.map +1 -0
- package/dist/components/panel-close.component.js +75 -0
- package/dist/components/panel-close.component.js.map +1 -0
- package/dist/components/progress.component.d.ts +84 -0
- package/dist/components/progress.component.d.ts.map +1 -0
- package/dist/components/progress.component.js +219 -0
- package/dist/components/progress.component.js.map +1 -0
- package/dist/components/prompt-dialog.component.d.ts +121 -0
- package/dist/components/prompt-dialog.component.d.ts.map +1 -0
- package/dist/components/prompt-dialog.component.js +332 -0
- package/dist/components/prompt-dialog.component.js.map +1 -0
- package/dist/components/radio-group.component.d.ts +66 -34
- package/dist/components/radio-group.component.d.ts.map +1 -1
- package/dist/components/radio-group.component.js +146 -125
- package/dist/components/radio-group.component.js.map +1 -1
- package/dist/components/responsive-app-shell.component.d.ts +408 -0
- package/dist/components/responsive-app-shell.component.d.ts.map +1 -0
- package/dist/components/responsive-app-shell.component.js +1144 -0
- package/dist/components/responsive-app-shell.component.js.map +1 -0
- package/dist/components/select.component.d.ts +135 -38
- package/dist/components/select.component.d.ts.map +1 -1
- package/dist/components/select.component.js +373 -181
- package/dist/components/select.component.js.map +1 -1
- package/dist/components/separator.component.d.ts +39 -0
- package/dist/components/separator.component.d.ts.map +1 -0
- package/dist/components/separator.component.js +73 -0
- package/dist/components/separator.component.js.map +1 -0
- package/dist/components/sidebar-user-card.component.d.ts +106 -0
- package/dist/components/sidebar-user-card.component.d.ts.map +1 -0
- package/dist/components/sidebar-user-card.component.js +277 -0
- package/dist/components/sidebar-user-card.component.js.map +1 -0
- package/dist/components/skeleton.component.d.ts +100 -0
- package/dist/components/skeleton.component.d.ts.map +1 -0
- package/dist/components/skeleton.component.js +214 -0
- package/dist/components/skeleton.component.js.map +1 -0
- package/dist/components/spinner.component.d.ts +36 -19
- package/dist/components/spinner.component.d.ts.map +1 -1
- package/dist/components/spinner.component.js +69 -71
- package/dist/components/spinner.component.js.map +1 -1
- package/dist/components/switch.component.d.ts +72 -29
- package/dist/components/switch.component.d.ts.map +1 -1
- package/dist/components/switch.component.js +163 -91
- package/dist/components/switch.component.js.map +1 -1
- package/dist/components/table.component.d.ts +193 -0
- package/dist/components/table.component.d.ts.map +1 -0
- package/dist/components/table.component.js +550 -0
- package/dist/components/table.component.js.map +1 -0
- package/dist/components/tabs.component.d.ts +140 -0
- package/dist/components/tabs.component.d.ts.map +1 -0
- package/dist/components/tabs.component.js +390 -0
- package/dist/components/tabs.component.js.map +1 -0
- package/dist/components/template-outlet.directive.d.ts +50 -0
- package/dist/components/template-outlet.directive.d.ts.map +1 -0
- package/dist/components/template-outlet.directive.js +81 -0
- package/dist/components/template-outlet.directive.js.map +1 -0
- package/dist/components/textarea.component.d.ts +151 -0
- package/dist/components/textarea.component.d.ts.map +1 -0
- package/dist/components/textarea.component.js +340 -0
- package/dist/components/textarea.component.js.map +1 -0
- package/dist/components/theme-toggle.component.d.ts +58 -0
- package/dist/components/theme-toggle.component.d.ts.map +1 -0
- package/dist/components/theme-toggle.component.js +124 -0
- package/dist/components/theme-toggle.component.js.map +1 -0
- package/dist/components/toast.component.d.ts +237 -49
- package/dist/components/toast.component.d.ts.map +1 -1
- package/dist/components/toast.component.js +636 -201
- package/dist/components/toast.component.js.map +1 -1
- package/dist/components/tooltip.component.d.ts +95 -45
- package/dist/components/tooltip.component.d.ts.map +1 -1
- package/dist/components/tooltip.component.js +372 -221
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/components/user-menu-popover.component.d.ts +283 -0
- package/dist/components/user-menu-popover.component.d.ts.map +1 -0
- package/dist/components/user-menu-popover.component.js +646 -0
- package/dist/components/user-menu-popover.component.js.map +1 -0
- package/dist/components/user-menu.component.d.ts +95 -0
- package/dist/components/user-menu.component.d.ts.map +1 -0
- package/dist/components/user-menu.component.js +218 -0
- package/dist/components/user-menu.component.js.map +1 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +7 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/use-is-desktop.d.ts +22 -0
- package/dist/hooks/use-is-desktop.d.ts.map +1 -0
- package/dist/hooks/use-is-desktop.js +37 -0
- package/dist/hooks/use-is-desktop.js.map +1 -0
- package/dist/index.d.ts +32 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -17
- 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/dom-context.d.ts +42 -0
- package/dist/utilities/dom-context.d.ts.map +1 -0
- package/dist/utilities/dom-context.js +66 -0
- package/dist/utilities/dom-context.js.map +1 -0
- package/dist/utilities/focus.d.ts +32 -0
- package/dist/utilities/focus.d.ts.map +1 -0
- package/dist/utilities/focus.js +47 -0
- package/dist/utilities/focus.js.map +1 -0
- package/dist/utilities/form-field-context.d.ts +34 -0
- package/dist/utilities/form-field-context.d.ts.map +1 -0
- package/dist/utilities/form-field-context.js +28 -0
- package/dist/utilities/form-field-context.js.map +1 -0
- package/dist/utilities/form-submit-error.d.ts +17 -0
- package/dist/utilities/form-submit-error.d.ts.map +1 -0
- package/dist/utilities/form-submit-error.js +42 -0
- package/dist/utilities/form-submit-error.js.map +1 -0
- package/dist/utilities/icon-markup.d.ts +17 -0
- package/dist/utilities/icon-markup.d.ts.map +1 -0
- package/dist/utilities/icon-markup.js +46 -0
- package/dist/utilities/icon-markup.js.map +1 -0
- package/dist/utilities/ids.d.ts +15 -0
- package/dist/utilities/ids.d.ts.map +1 -0
- package/dist/utilities/ids.js +19 -0
- package/dist/utilities/ids.js.map +1 -0
- package/dist/utilities/index.d.ts +11 -0
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/index.js +11 -0
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/initials.d.ts +13 -0
- package/dist/utilities/initials.d.ts.map +1 -0
- package/dist/utilities/initials.js +23 -0
- package/dist/utilities/initials.js.map +1 -0
- package/dist/utilities/node-value.d.ts +31 -0
- package/dist/utilities/node-value.d.ts.map +1 -0
- package/dist/utilities/node-value.js +37 -0
- package/dist/utilities/node-value.js.map +1 -0
- package/dist/utilities/optimistic-value.d.ts +81 -0
- package/dist/utilities/optimistic-value.d.ts.map +1 -0
- package/dist/utilities/optimistic-value.js +154 -0
- package/dist/utilities/optimistic-value.js.map +1 -0
- package/dist/utilities/render-icon.d.ts +77 -7
- package/dist/utilities/render-icon.d.ts.map +1 -1
- package/dist/utilities/render-icon.js +123 -33
- package/dist/utilities/render-icon.js.map +1 -1
- package/dist/utilities/rest-attrs.d.ts +21 -0
- package/dist/utilities/rest-attrs.d.ts.map +1 -0
- package/dist/utilities/rest-attrs.js +37 -0
- package/dist/utilities/rest-attrs.js.map +1 -0
- package/dist/utilities/style.d.ts +23 -0
- package/dist/utilities/style.d.ts.map +1 -0
- package/dist/utilities/style.js +86 -0
- package/dist/utilities/style.js.map +1 -0
- package/package.json +6 -4
|
@@ -1,54 +1,97 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Switch component (React parity).
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { EventEmitter } from '@angular/core';
|
|
6
|
+
import { type AfterViewChecked, ElementRef, EventEmitter } from '@angular/core';
|
|
7
7
|
import type { ColorVariant, Size, UIClassMap } from '@molecule/app-ui';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Switch component.
|
|
11
|
+
*
|
|
12
|
+
* React's root is a fragment (hidden native checkbox + label); the host
|
|
13
|
+
* element is unwrapped by the DOM normalizer (`data-parity-unwrap`) and
|
|
14
|
+
* `display: contents` keeps real layout fragment-like. Clicking the visible
|
|
15
|
+
* button clicks the hidden checkbox, whose GENUINE native `change` event is
|
|
16
|
+
* forwarded as the `change` output.
|
|
11
17
|
*/
|
|
12
|
-
export declare class
|
|
13
|
-
label
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
export declare class Switch implements AfterViewChecked {
|
|
19
|
+
/** Switch label (text, or projected `[slot=label]` nodes). */
|
|
20
|
+
label?: unknown;
|
|
21
|
+
/** Whether the switch is on. */
|
|
22
|
+
checked?: boolean;
|
|
23
|
+
/** Switch size. */
|
|
24
|
+
size?: Size;
|
|
25
|
+
/** Switch color. */
|
|
16
26
|
color?: ColorVariant;
|
|
27
|
+
/** Extra classes joined onto the switch classes. */
|
|
17
28
|
className?: string;
|
|
18
|
-
style
|
|
29
|
+
/** Inline style object (React camelCase). */
|
|
30
|
+
style?: Record<string, unknown>;
|
|
31
|
+
/** `data-testid` for the button. */
|
|
19
32
|
testId?: string;
|
|
20
|
-
|
|
21
|
-
|
|
33
|
+
/** Disables the switch. */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** The genuine native `change` event of the hidden checkbox. */
|
|
36
|
+
readonly change: EventEmitter<Event>;
|
|
37
|
+
/** The hidden native checkbox. */
|
|
38
|
+
hiddenInput?: ElementRef<HTMLInputElement>;
|
|
39
|
+
/** The visible trigger button (React's `...rest` spread target). */
|
|
40
|
+
trigger?: ElementRef<HTMLButtonElement>;
|
|
41
|
+
/** The label text wrapper. */
|
|
42
|
+
labelSlot?: ElementRef<HTMLSpanElement>;
|
|
43
|
+
private readonly host;
|
|
44
|
+
private hasLabel;
|
|
45
|
+
private readonly sync;
|
|
46
|
+
/**
|
|
47
|
+
* The current class map.
|
|
48
|
+
* @returns The UIClassMap.
|
|
49
|
+
*/
|
|
50
|
+
cm(): UIClassMap;
|
|
51
|
+
/**
|
|
52
|
+
* The data-state of the switch and thumb.
|
|
53
|
+
* @returns `checked` or `unchecked`.
|
|
54
|
+
*/
|
|
55
|
+
state(): 'checked' | 'unchecked';
|
|
22
56
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @returns The
|
|
57
|
+
* Computes the switch button class list.
|
|
58
|
+
* @returns The class string.
|
|
25
59
|
*/
|
|
26
|
-
|
|
60
|
+
classes(): string;
|
|
27
61
|
/**
|
|
28
|
-
* Computes the
|
|
29
|
-
* @returns The
|
|
62
|
+
* Computes the label class list.
|
|
63
|
+
* @returns The class string.
|
|
30
64
|
*/
|
|
31
|
-
|
|
65
|
+
labelClasses(): string;
|
|
32
66
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @returns The
|
|
67
|
+
* Serializes the inline style for the button.
|
|
68
|
+
* @returns The style attribute text.
|
|
35
69
|
*/
|
|
36
|
-
|
|
70
|
+
hostStyle(): string | null;
|
|
37
71
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
72
|
+
* Clicking the button clicks the hidden checkbox (unless disabled or the
|
|
73
|
+
* event was vetoed), exactly like React's handler.
|
|
74
|
+
*
|
|
75
|
+
* @param event - The button click event.
|
|
40
76
|
*/
|
|
41
|
-
|
|
77
|
+
handleClick(event: Event): void;
|
|
42
78
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
79
|
+
* Forwards the hidden checkbox's genuine native `change` event (React
|
|
80
|
+
* forwards the raw browser event, not a React synthetic one) and then
|
|
81
|
+
* restores the controlled value, like React's controlled-input state
|
|
82
|
+
* restore (the input mirrors the `checked` prop, never free user state).
|
|
83
|
+
* The event's propagation stops here so the host-level `change` binding
|
|
84
|
+
* does not record it a second time.
|
|
85
|
+
*
|
|
86
|
+
* @param event - The native change event.
|
|
45
87
|
*/
|
|
46
|
-
|
|
88
|
+
handleChange(event: Event): void;
|
|
47
89
|
/**
|
|
48
|
-
*
|
|
90
|
+
* Moves rest attributes onto the button and applies React's
|
|
91
|
+
* `{!!label && <span>}` label condition after queries resolve.
|
|
49
92
|
*/
|
|
50
|
-
|
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
93
|
+
ngAfterViewChecked(): void;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Switch, never>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Switch, "mol-switch", never, { "label": { "alias": "label"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "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, ["[slot=label]"], true, never>;
|
|
53
96
|
}
|
|
54
97
|
//# sourceMappingURL=switch.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.component.d.ts","sourceRoot":"","sources":["../../src/components/switch.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"switch.component.d.ts","sourceRoot":"","sources":["../../src/components/switch.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,gBAAgB,EAErB,UAAU,EACV,YAAY,EAKb,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAOtE;;;;;;;;GAQG;AACH,qBAsCa,MAAO,YAAW,gBAAgB;IAC7C,8DAA8D;IAC9D,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mBAAmB;IACnB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,oBAAoB;IACpB,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,gEAAgE;IACtD,QAAQ,CAAC,MAAM,sBAA4B;IAErD,kCAAkC;IACR,WAAW,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;IACpE,oEAAoE;IAC9C,OAAO,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAA;IAC7D,8BAA8B;IACN,SAAS,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,CAAA;IAE/D,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;IAC1C,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyD;IAE9E;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,KAAK,IAAI,SAAS,GAAG,WAAW;IAIhC;;;OAGG;IACH,OAAO,IAAI,MAAM;IAOjB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B;;;;;OAKG;IACH,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAI/B;;;;;;;;;OASG;IACH,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAOhC;;;OAGG;IACH,kBAAkB,IAAI,IAAI;yCA1Gf,MAAM;2CAAN,MAAM;CAmHlB"}
|
|
@@ -1,147 +1,219 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Switch component (React parity).
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { Component, ElementRef, EventEmitter, inject, Output, Renderer2, ViewChild, } from '@angular/core';
|
|
7
7
|
import { getClassMap } from '@molecule/app-ui';
|
|
8
|
+
import { moveRestAttributes } from '../utilities/rest-attrs.js';
|
|
9
|
+
import { styleText } from '../utilities/style.js';
|
|
10
|
+
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
8
11
|
import * as i0 from "@angular/core";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
i0.ɵɵclassMap(ctx_r0.cm.controlText);
|
|
16
|
-
i0.ɵɵadvance();
|
|
17
|
-
i0.ɵɵtextInterpolate(ctx_r0.label);
|
|
18
|
-
} }
|
|
12
|
+
const _c0 = ["hiddenInput"];
|
|
13
|
+
const _c1 = ["trigger"];
|
|
14
|
+
const _c2 = ["labelSlot"];
|
|
15
|
+
const _c3 = [[["", "slot", "label"]]];
|
|
16
|
+
const _c4 = ["[slot=label]"];
|
|
17
|
+
const _c5 = a0 => ({ size: a0 });
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*
|
|
19
|
+
* Switch component.
|
|
20
|
+
*
|
|
21
|
+
* React's root is a fragment (hidden native checkbox + label); the host
|
|
22
|
+
* element is unwrapped by the DOM normalizer (`data-parity-unwrap`) and
|
|
23
|
+
* `display: contents` keeps real layout fragment-like. Clicking the visible
|
|
24
|
+
* button clicks the hidden checkbox, whose GENUINE native `change` event is
|
|
25
|
+
* forwarded as the `change` output.
|
|
24
26
|
*/
|
|
25
|
-
export class
|
|
27
|
+
export class Switch {
|
|
28
|
+
/** Switch label (text, or projected `[slot=label]` nodes). */
|
|
26
29
|
label;
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
/** Whether the switch is on. */
|
|
31
|
+
checked;
|
|
32
|
+
/** Switch size. */
|
|
33
|
+
size;
|
|
34
|
+
/** Switch color. */
|
|
29
35
|
color;
|
|
36
|
+
/** Extra classes joined onto the switch classes. */
|
|
30
37
|
className;
|
|
38
|
+
/** Inline style object (React camelCase). */
|
|
31
39
|
style;
|
|
40
|
+
/** `data-testid` for the button. */
|
|
32
41
|
testId;
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
/** Disables the switch. */
|
|
43
|
+
disabled;
|
|
44
|
+
/** The genuine native `change` event of the hidden checkbox. */
|
|
45
|
+
change = new EventEmitter();
|
|
46
|
+
/** The hidden native checkbox. */
|
|
47
|
+
hiddenInput;
|
|
48
|
+
/** The visible trigger button (React's `...rest` spread target). */
|
|
49
|
+
trigger;
|
|
50
|
+
/** The label text wrapper. */
|
|
51
|
+
labelSlot;
|
|
52
|
+
host = inject(ElementRef);
|
|
53
|
+
hasLabel = false;
|
|
54
|
+
sync = new SlotWrapper(inject(ElementRef), inject(Renderer2));
|
|
35
55
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @returns The UIClassMap
|
|
56
|
+
* The current class map.
|
|
57
|
+
* @returns The UIClassMap.
|
|
38
58
|
*/
|
|
39
|
-
|
|
59
|
+
cm() {
|
|
40
60
|
return getClassMap();
|
|
41
61
|
}
|
|
42
62
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @returns
|
|
63
|
+
* The data-state of the switch and thumb.
|
|
64
|
+
* @returns `checked` or `unchecked`.
|
|
45
65
|
*/
|
|
46
|
-
|
|
66
|
+
state() {
|
|
47
67
|
return this.checked ? 'checked' : 'unchecked';
|
|
48
68
|
}
|
|
49
69
|
/**
|
|
50
|
-
* Computes the
|
|
51
|
-
* @returns The
|
|
70
|
+
* Computes the switch button class list.
|
|
71
|
+
* @returns The class string.
|
|
72
|
+
*/
|
|
73
|
+
classes() {
|
|
74
|
+
return this.cm().cn(this.cm().switchBase({ size: this.size ?? 'md', color: this.color }), this.className);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Computes the label class list.
|
|
78
|
+
* @returns The class string.
|
|
52
79
|
*/
|
|
53
|
-
|
|
54
|
-
return this.cm.cn(this.cm.controlLabel, this.disabled && this.cm.controlDisabled);
|
|
80
|
+
labelClasses() {
|
|
81
|
+
return this.cm().cn(this.cm().controlLabel, this.disabled && this.cm().controlDisabled);
|
|
55
82
|
}
|
|
56
83
|
/**
|
|
57
|
-
*
|
|
58
|
-
* @returns The
|
|
84
|
+
* Serializes the inline style for the button.
|
|
85
|
+
* @returns The style attribute text.
|
|
59
86
|
*/
|
|
60
|
-
|
|
61
|
-
return
|
|
87
|
+
hostStyle() {
|
|
88
|
+
return styleText(this.style);
|
|
62
89
|
}
|
|
63
90
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
91
|
+
* Clicking the button clicks the hidden checkbox (unless disabled or the
|
|
92
|
+
* event was vetoed), exactly like React's handler.
|
|
93
|
+
*
|
|
94
|
+
* @param event - The button click event.
|
|
66
95
|
*/
|
|
67
|
-
|
|
68
|
-
|
|
96
|
+
handleClick(event) {
|
|
97
|
+
if (!this.disabled && !event.defaultPrevented)
|
|
98
|
+
this.hiddenInput?.nativeElement.click();
|
|
69
99
|
}
|
|
70
100
|
/**
|
|
71
|
-
*
|
|
101
|
+
* Forwards the hidden checkbox's genuine native `change` event (React
|
|
102
|
+
* forwards the raw browser event, not a React synthetic one) and then
|
|
103
|
+
* restores the controlled value, like React's controlled-input state
|
|
104
|
+
* restore (the input mirrors the `checked` prop, never free user state).
|
|
105
|
+
* The event's propagation stops here so the host-level `change` binding
|
|
106
|
+
* does not record it a second time.
|
|
107
|
+
*
|
|
108
|
+
* @param event - The native change event.
|
|
72
109
|
*/
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
110
|
+
handleChange(event) {
|
|
111
|
+
event.stopPropagation();
|
|
112
|
+
this.change.emit(event);
|
|
113
|
+
const input = this.hiddenInput?.nativeElement;
|
|
114
|
+
if (input)
|
|
115
|
+
input.checked = !!this.checked;
|
|
77
116
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
117
|
+
/**
|
|
118
|
+
* Moves rest attributes onto the button and applies React's
|
|
119
|
+
* `{!!label && <span>}` label condition after queries resolve.
|
|
120
|
+
*/
|
|
121
|
+
ngAfterViewChecked() {
|
|
122
|
+
moveRestAttributes(this.host.nativeElement, this.trigger?.nativeElement);
|
|
123
|
+
this.hasLabel = !!this.label || hasNodes(this.labelSlot?.nativeElement);
|
|
124
|
+
this.sync.sync(this.labelSlot?.nativeElement, this.hasLabel, this.labelSlot?.nativeElement.parentElement ?? undefined);
|
|
125
|
+
}
|
|
126
|
+
static ɵfac = function Switch_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Switch)(); };
|
|
127
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Switch, selectors: [["mol-switch"]], viewQuery: function Switch_Query(rf, ctx) { if (rf & 1) {
|
|
128
|
+
i0.ɵɵviewQuery(_c0, 5)(_c1, 5)(_c2, 5);
|
|
129
|
+
} if (rf & 2) {
|
|
130
|
+
let _t;
|
|
131
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.hiddenInput = _t.first);
|
|
132
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.trigger = _t.first);
|
|
133
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelSlot = _t.first);
|
|
134
|
+
} }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { label: "label", checked: "checked", size: "size", color: "color", className: "className", style: "style", testId: "testId", disabled: "disabled" }, outputs: { change: "change" }, ngContentSelectors: _c4, decls: 10, vars: 21, consts: [["hiddenInput", ""], ["trigger", ""], ["labelSlot", ""], ["type", "checkbox", "aria-hidden", "true", "tabindex", "-1", 3, "change", "disabled"], ["type", "button", "role", "switch", 3, "click", "disabled"]], template: function Switch_Template(rf, ctx) { if (rf & 1) {
|
|
135
|
+
i0.ɵɵprojectionDef(_c3);
|
|
136
|
+
i0.ɵɵdomElementStart(0, "input", 3, 0);
|
|
137
|
+
i0.ɵɵdomListener("change", function Switch_Template_input_change_0_listener($event) { return ctx.handleChange($event); });
|
|
83
138
|
i0.ɵɵdomElementEnd();
|
|
84
|
-
i0.ɵɵ
|
|
139
|
+
i0.ɵɵdomElementStart(2, "label")(3, "button", 4, 1);
|
|
140
|
+
i0.ɵɵdomListener("click", function Switch_Template_button_click_3_listener($event) { return ctx.handleClick($event); });
|
|
141
|
+
i0.ɵɵdomElement(5, "span");
|
|
85
142
|
i0.ɵɵdomElementEnd();
|
|
143
|
+
i0.ɵɵdomElementStart(6, "span", null, 2);
|
|
144
|
+
i0.ɵɵtext(8);
|
|
145
|
+
i0.ɵɵprojection(9);
|
|
146
|
+
i0.ɵɵdomElementEnd()();
|
|
86
147
|
} if (rf & 2) {
|
|
87
|
-
i0.ɵɵclassMap(ctx.
|
|
88
|
-
i0.ɵɵadvance();
|
|
89
|
-
i0.ɵɵstyleMap(ctx.style);
|
|
90
|
-
i0.ɵɵclassMap(ctx.switchClasses);
|
|
148
|
+
i0.ɵɵclassMap(ctx.cm().srOnly);
|
|
91
149
|
i0.ɵɵdomProperty("disabled", ctx.disabled);
|
|
92
|
-
i0.ɵɵattribute("
|
|
150
|
+
i0.ɵɵattribute("checked", ctx.checked ? "" : null);
|
|
151
|
+
i0.ɵɵadvance(2);
|
|
152
|
+
i0.ɵɵclassMap(ctx.labelClasses());
|
|
93
153
|
i0.ɵɵadvance();
|
|
94
|
-
i0.ɵɵclassMap(ctx.
|
|
95
|
-
i0.ɵɵ
|
|
154
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
155
|
+
i0.ɵɵdomProperty("disabled", ctx.disabled);
|
|
156
|
+
i0.ɵɵattribute("aria-checked", ctx.checked ? "true" : "false")("data-state", ctx.state())("style", ctx.hostStyle(), i0.ɵɵsanitizeStyle)("data-testid", ctx.testId);
|
|
157
|
+
i0.ɵɵadvance(2);
|
|
158
|
+
i0.ɵɵclassMap(ctx.cm().switchThumb(i0.ɵɵpureFunction1(19, _c5, ctx.size ?? "md")));
|
|
159
|
+
i0.ɵɵattribute("data-state", ctx.state());
|
|
96
160
|
i0.ɵɵadvance();
|
|
97
|
-
i0.ɵɵ
|
|
161
|
+
i0.ɵɵclassMap(ctx.cm().controlText);
|
|
162
|
+
i0.ɵɵadvance(2);
|
|
163
|
+
i0.ɵɵtextInterpolate(ctx.label);
|
|
98
164
|
} }, encapsulation: 2 });
|
|
99
165
|
}
|
|
100
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(
|
|
166
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Switch, [{
|
|
101
167
|
type: Component,
|
|
102
168
|
args: [{
|
|
103
169
|
selector: 'mol-switch',
|
|
104
170
|
standalone: true,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
171
|
+
inputs: ['label', 'checked', 'size', 'color', 'className', 'style', 'testId', 'disabled'],
|
|
172
|
+
host: {
|
|
173
|
+
'data-parity-unwrap': '',
|
|
174
|
+
style: 'display: contents',
|
|
175
|
+
},
|
|
176
|
+
template: `<input
|
|
177
|
+
type="checkbox"
|
|
178
|
+
[attr.checked]="checked ? '' : null"
|
|
179
|
+
[disabled]="disabled"
|
|
180
|
+
aria-hidden="true"
|
|
181
|
+
tabindex="-1"
|
|
182
|
+
[class]="cm().srOnly"
|
|
183
|
+
(change)="handleChange($event)"
|
|
184
|
+
#hiddenInput
|
|
185
|
+
/>
|
|
186
|
+
<label [class]="labelClasses()">
|
|
108
187
|
<button
|
|
109
188
|
type="button"
|
|
110
189
|
role="switch"
|
|
111
|
-
[attr.aria-checked]="checked"
|
|
190
|
+
[attr.aria-checked]="checked ? 'true' : 'false'"
|
|
112
191
|
[disabled]="disabled"
|
|
113
|
-
[attr.data-state]="state"
|
|
114
|
-
|
|
115
|
-
[
|
|
192
|
+
[attr.data-state]="state()"
|
|
193
|
+
(click)="handleClick($event)"
|
|
194
|
+
[class]="classes()"
|
|
195
|
+
[attr.style]="hostStyle()"
|
|
116
196
|
[attr.data-testid]="testId"
|
|
117
|
-
|
|
197
|
+
#trigger
|
|
118
198
|
>
|
|
119
|
-
<span [attr.data-state]="state" [class]="
|
|
199
|
+
<span [attr.data-state]="state()" [class]="cm().switchThumb({ size: size ?? 'md' })"></span>
|
|
120
200
|
</button>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
</label
|
|
125
|
-
`,
|
|
201
|
+
<span [class]="cm().controlText" #labelSlot
|
|
202
|
+
>{{ label }}<ng-content select="[slot=label]"></ng-content
|
|
203
|
+
></span>
|
|
204
|
+
</label>`,
|
|
126
205
|
}]
|
|
127
|
-
}], null, {
|
|
128
|
-
type: Input
|
|
129
|
-
}], checked: [{
|
|
130
|
-
type: Input
|
|
131
|
-
}], size: [{
|
|
132
|
-
type: Input
|
|
133
|
-
}], color: [{
|
|
134
|
-
type: Input
|
|
135
|
-
}], className: [{
|
|
136
|
-
type: Input
|
|
137
|
-
}], style: [{
|
|
138
|
-
type: Input
|
|
139
|
-
}], testId: [{
|
|
140
|
-
type: Input
|
|
141
|
-
}], disabled: [{
|
|
142
|
-
type: Input
|
|
143
|
-
}], checkedChange: [{
|
|
206
|
+
}], null, { change: [{
|
|
144
207
|
type: Output
|
|
208
|
+
}], hiddenInput: [{
|
|
209
|
+
type: ViewChild,
|
|
210
|
+
args: ['hiddenInput']
|
|
211
|
+
}], trigger: [{
|
|
212
|
+
type: ViewChild,
|
|
213
|
+
args: ['trigger']
|
|
214
|
+
}], labelSlot: [{
|
|
215
|
+
type: ViewChild,
|
|
216
|
+
args: ['labelSlot']
|
|
145
217
|
}] }); })();
|
|
146
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(
|
|
218
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Switch, { className: "Switch", filePath: "components/switch.component.ts", lineNumber: 72 }); })();
|
|
147
219
|
//# sourceMappingURL=switch.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.component.js","sourceRoot":"","sources":["../../src/components/switch.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"switch.component.js","sourceRoot":"","sources":["../../src/components/switch.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EACN,MAAM,EACN,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW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