@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown.component.js","sourceRoot":"","sources":["../../src/components/dropdown.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAGL,iBAAiB,EACjB,SAAS,EAET,MAAM,EACN,UAAU,EAEV,YAAY,EACZ,MAAM,EAEN,MAAM,EACN,SAAS,EACT,MAAM,EACN,WAAW,EACX,SAAS,EACT,gBAAgB,GACjB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;;;;;;;;OAyH1D,8BAAwB;;IAEpB,yBAA6D;;;IAAxD,4CAAgC;;;IAc7B,2BAA2D;;IAA7C,uCAA6B;;;IAE3C,YACF;;;;IADE,8DACF;;;IALF,4BAAsC;IAGlC,AAFF,mIAAyC,0FAEhC;IA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AE,IAAI,CAAC,SAAS,CAAC,CAAA;IAClE,CAAC;2GAlBU,iBAAiB;6DAAjB,iBAAiB;YAAjB,cAAA,aAAS,CAAQ;;;iFAAjB,iBAAiB;cAV7B,SAAS;eAAC;gBACT,QAAQ,EAAE,6BAA6B;gBACvC,UAAU,EAAE,IAAI;gBAChB,MAAM,EAAE,CAAC,WAAW,CAAC;gBACrB,IAAI,EAAE;oBACJ,SAAS,EAAE,WAAW;oBACtB,IAAI,EAAE,WAAW;iBAClB;gBACD,QAAQ,EAAE,EAAE;aACb;;kFACY,iBAAiB"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EmptyState component (React parity).
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { type AfterViewInit, type DoCheck, ElementRef } from '@angular/core';
|
|
7
|
+
import type { UIClassMap } from '@molecule/app-ui';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* EmptyState component.
|
|
11
|
+
*
|
|
12
|
+
* Shown when a list or section has no data: an optional icon badge, a title,
|
|
13
|
+
* a description, and an optional action slot. React renders the icon/action
|
|
14
|
+
* wrapper divs only when those node props exist; here the wrappers always
|
|
15
|
+
* exist as projection capture points and are detached when empty
|
|
16
|
+
* ({@link SlotWrapper}).
|
|
17
|
+
*/
|
|
18
|
+
export declare class EmptyState implements AfterViewInit, DoCheck {
|
|
19
|
+
/** An `icon` node prop (TemplateRef), when passed as a prop instead of a slot. */
|
|
20
|
+
icon?: unknown;
|
|
21
|
+
/** Heading text. */
|
|
22
|
+
title?: string;
|
|
23
|
+
/** Description text. */
|
|
24
|
+
description?: string;
|
|
25
|
+
/** An `action` node prop (TemplateRef), when passed as a prop instead of a slot. */
|
|
26
|
+
action?: unknown;
|
|
27
|
+
/** Extra classes. */
|
|
28
|
+
className?: string;
|
|
29
|
+
/** Inline style object (React camelCase). */
|
|
30
|
+
style?: Record<string, unknown>;
|
|
31
|
+
/** `data-testid`. */
|
|
32
|
+
testId?: string;
|
|
33
|
+
/** `data-mol-id`. */
|
|
34
|
+
automationId?: string;
|
|
35
|
+
/** The icon wrapper (detached unless the slot captured nodes). */
|
|
36
|
+
iconSlot?: ElementRef<HTMLDivElement>;
|
|
37
|
+
/** The action wrapper. */
|
|
38
|
+
actionSlot?: ElementRef<HTMLDivElement>;
|
|
39
|
+
private hasIcon;
|
|
40
|
+
private hasAction;
|
|
41
|
+
private readonly sync;
|
|
42
|
+
/**
|
|
43
|
+
* The current class map.
|
|
44
|
+
* @returns The UIClassMap.
|
|
45
|
+
*/
|
|
46
|
+
cm(): UIClassMap;
|
|
47
|
+
/**
|
|
48
|
+
* Computes the class list.
|
|
49
|
+
* @returns The class string.
|
|
50
|
+
*/
|
|
51
|
+
classes(): string;
|
|
52
|
+
/**
|
|
53
|
+
* Serializes the inline style.
|
|
54
|
+
* @returns The style attribute text.
|
|
55
|
+
*/
|
|
56
|
+
hostStyle(): string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Detects slot content and detaches the wrappers React would not render.
|
|
59
|
+
* View queries resolve only by view init, so presence is read here.
|
|
60
|
+
*/
|
|
61
|
+
ngAfterViewInit(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Re-reconciles wrappers on later passes.
|
|
64
|
+
*/
|
|
65
|
+
ngDoCheck(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Applies React's `{icon && <div>…}` / `{action && <div>…}` conditions.
|
|
68
|
+
*/
|
|
69
|
+
private syncWrappers;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyState, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyState, "div[mol-empty-state]", never, { "icon": { "alias": "icon"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "action": { "alias": "action"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; }, {}, never, ["[slot=icon]", "[slot=action]"], true, never>;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=empty-state.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.component.d.ts","sourceRoot":"","sources":["../../src/components/empty-state.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,UAAU,EAIX,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAMlD;;;;;;;;GAQG;AACH,qBA8Ba,UAAW,YAAW,aAAa,EAAE,OAAO;IACvD,kFAAkF;IAClF,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oFAAoF;IACpF,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,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,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,kEAAkE;IAC3C,QAAQ,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;IAC5D,0BAA0B;IACD,UAAU,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;IAEhE,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,SAAS,CAAQ;IAEzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyD;IAE9E;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B;;;OAGG;IACH,eAAe,IAAI,IAAI;IAUvB;;OAEG;IACH,SAAS,IAAI,IAAI;IAIjB;;OAEG;IACH,OAAO,CAAC,YAAY;yCA5ET,UAAU;2CAAV,UAAU;CAgFtB"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EmptyState component (React parity).
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { Component, ElementRef, inject, Renderer2, ViewChild, } from '@angular/core';
|
|
7
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
8
|
+
import { styleText } from '../utilities/style.js';
|
|
9
|
+
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
const _c0 = ["iconSlot"];
|
|
12
|
+
const _c1 = ["actionSlot"];
|
|
13
|
+
const _c2 = [[["", "slot", "icon"]], [["", "slot", "action"]]];
|
|
14
|
+
const _c3 = ["[slot=icon]", "[slot=action]"];
|
|
15
|
+
function EmptyState_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
16
|
+
i0.ɵɵdomElementStart(0, "p");
|
|
17
|
+
i0.ɵɵtext(1);
|
|
18
|
+
i0.ɵɵdomElementEnd();
|
|
19
|
+
} if (rf & 2) {
|
|
20
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21
|
+
i0.ɵɵclassMap(ctx_r0.cm().emptyStateDescription);
|
|
22
|
+
i0.ɵɵadvance();
|
|
23
|
+
i0.ɵɵtextInterpolate(ctx_r0.description);
|
|
24
|
+
} }
|
|
25
|
+
/**
|
|
26
|
+
* EmptyState component.
|
|
27
|
+
*
|
|
28
|
+
* Shown when a list or section has no data: an optional icon badge, a title,
|
|
29
|
+
* a description, and an optional action slot. React renders the icon/action
|
|
30
|
+
* wrapper divs only when those node props exist; here the wrappers always
|
|
31
|
+
* exist as projection capture points and are detached when empty
|
|
32
|
+
* ({@link SlotWrapper}).
|
|
33
|
+
*/
|
|
34
|
+
export class EmptyState {
|
|
35
|
+
/** An `icon` node prop (TemplateRef), when passed as a prop instead of a slot. */
|
|
36
|
+
icon;
|
|
37
|
+
/** Heading text. */
|
|
38
|
+
title;
|
|
39
|
+
/** Description text. */
|
|
40
|
+
description;
|
|
41
|
+
/** An `action` node prop (TemplateRef), when passed as a prop instead of a slot. */
|
|
42
|
+
action;
|
|
43
|
+
/** Extra classes. */
|
|
44
|
+
className;
|
|
45
|
+
/** Inline style object (React camelCase). */
|
|
46
|
+
style;
|
|
47
|
+
/** `data-testid`. */
|
|
48
|
+
testId;
|
|
49
|
+
/** `data-mol-id`. */
|
|
50
|
+
automationId;
|
|
51
|
+
/** The icon wrapper (detached unless the slot captured nodes). */
|
|
52
|
+
iconSlot;
|
|
53
|
+
/** The action wrapper. */
|
|
54
|
+
actionSlot;
|
|
55
|
+
hasIcon = false;
|
|
56
|
+
hasAction = false;
|
|
57
|
+
sync = new SlotWrapper(inject(ElementRef), inject(Renderer2));
|
|
58
|
+
/**
|
|
59
|
+
* The current class map.
|
|
60
|
+
* @returns The UIClassMap.
|
|
61
|
+
*/
|
|
62
|
+
cm() {
|
|
63
|
+
return getClassMap();
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Computes the class list.
|
|
67
|
+
* @returns The class string.
|
|
68
|
+
*/
|
|
69
|
+
classes() {
|
|
70
|
+
return this.cm().cn(this.cm().emptyState, this.className);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Serializes the inline style.
|
|
74
|
+
* @returns The style attribute text.
|
|
75
|
+
*/
|
|
76
|
+
hostStyle() {
|
|
77
|
+
return styleText(this.style);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Detects slot content and detaches the wrappers React would not render.
|
|
81
|
+
* View queries resolve only by view init, so presence is read here.
|
|
82
|
+
*/
|
|
83
|
+
ngAfterViewInit() {
|
|
84
|
+
this.hasIcon =
|
|
85
|
+
this.icon !== undefined && this.icon !== null ? true : hasNodes(this.iconSlot?.nativeElement);
|
|
86
|
+
this.hasAction =
|
|
87
|
+
this.action !== undefined && this.action !== null
|
|
88
|
+
? true
|
|
89
|
+
: hasNodes(this.actionSlot?.nativeElement);
|
|
90
|
+
this.syncWrappers();
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Re-reconciles wrappers on later passes.
|
|
94
|
+
*/
|
|
95
|
+
ngDoCheck() {
|
|
96
|
+
this.syncWrappers();
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Applies React's `{icon && <div>…}` / `{action && <div>…}` conditions.
|
|
100
|
+
*/
|
|
101
|
+
syncWrappers() {
|
|
102
|
+
this.sync.sync(this.iconSlot?.nativeElement, this.hasIcon);
|
|
103
|
+
this.sync.sync(this.actionSlot?.nativeElement, this.hasAction);
|
|
104
|
+
}
|
|
105
|
+
static ɵfac = function EmptyState_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EmptyState)(); };
|
|
106
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EmptyState, selectors: [["div", "mol-empty-state", ""]], viewQuery: function EmptyState_Query(rf, ctx) { if (rf & 1) {
|
|
107
|
+
i0.ɵɵviewQuery(_c0, 5)(_c1, 5);
|
|
108
|
+
} if (rf & 2) {
|
|
109
|
+
let _t;
|
|
110
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconSlot = _t.first);
|
|
111
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionSlot = _t.first);
|
|
112
|
+
} }, hostVars: 6, hostBindings: function EmptyState_HostBindings(rf, ctx) { if (rf & 2) {
|
|
113
|
+
i0.ɵɵattribute("data-testid", ctx.testId)("data-mol-id", ctx.automationId);
|
|
114
|
+
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
115
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
116
|
+
} }, inputs: { icon: "icon", title: "title", description: "description", action: "action", className: "className", style: "style", testId: "testId", automationId: "automationId" }, ngContentSelectors: _c3, decls: 9, vars: 8, consts: [["iconSlot", ""], ["actionSlot", ""], [3, "class"]], template: function EmptyState_Template(rf, ctx) { if (rf & 1) {
|
|
117
|
+
i0.ɵɵprojectionDef(_c2);
|
|
118
|
+
i0.ɵɵdomElementStart(0, "div", null, 0);
|
|
119
|
+
i0.ɵɵprojection(2);
|
|
120
|
+
i0.ɵɵdomElementEnd();
|
|
121
|
+
i0.ɵɵdomElementStart(3, "h3");
|
|
122
|
+
i0.ɵɵtext(4);
|
|
123
|
+
i0.ɵɵdomElementEnd();
|
|
124
|
+
i0.ɵɵconditionalCreate(5, EmptyState_Conditional_5_Template, 2, 3, "p", 2);
|
|
125
|
+
i0.ɵɵdomElementStart(6, "div", null, 1);
|
|
126
|
+
i0.ɵɵprojection(8, 1);
|
|
127
|
+
i0.ɵɵdomElementEnd();
|
|
128
|
+
} if (rf & 2) {
|
|
129
|
+
i0.ɵɵclassMap(ctx.cm().emptyStateIcon);
|
|
130
|
+
i0.ɵɵadvance(3);
|
|
131
|
+
i0.ɵɵclassMap(ctx.cm().emptyStateTitle);
|
|
132
|
+
i0.ɵɵadvance();
|
|
133
|
+
i0.ɵɵtextInterpolate(ctx.title);
|
|
134
|
+
i0.ɵɵadvance();
|
|
135
|
+
i0.ɵɵconditional(ctx.description ? 5 : -1);
|
|
136
|
+
i0.ɵɵadvance();
|
|
137
|
+
i0.ɵɵclassMap(ctx.cm().emptyStateAction);
|
|
138
|
+
} }, encapsulation: 2 });
|
|
139
|
+
}
|
|
140
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EmptyState, [{
|
|
141
|
+
type: Component,
|
|
142
|
+
args: [{
|
|
143
|
+
selector: 'div[mol-empty-state]',
|
|
144
|
+
standalone: true,
|
|
145
|
+
inputs: [
|
|
146
|
+
'icon',
|
|
147
|
+
'title',
|
|
148
|
+
'description',
|
|
149
|
+
'action',
|
|
150
|
+
'className',
|
|
151
|
+
'style',
|
|
152
|
+
'testId',
|
|
153
|
+
'automationId',
|
|
154
|
+
],
|
|
155
|
+
host: {
|
|
156
|
+
'[class]': 'classes()',
|
|
157
|
+
'[style]': 'hostStyle()',
|
|
158
|
+
'[attr.data-testid]': 'testId',
|
|
159
|
+
'[attr.data-mol-id]': 'automationId',
|
|
160
|
+
},
|
|
161
|
+
template: `<div [class]="cm().emptyStateIcon" #iconSlot>
|
|
162
|
+
<ng-content select="[slot=icon]"></ng-content>
|
|
163
|
+
</div>
|
|
164
|
+
<h3 [class]="cm().emptyStateTitle">{{ title }}</h3>
|
|
165
|
+
@if (description) {
|
|
166
|
+
<p [class]="cm().emptyStateDescription">{{ description }}</p>
|
|
167
|
+
}
|
|
168
|
+
<div [class]="cm().emptyStateAction" #actionSlot>
|
|
169
|
+
<ng-content select="[slot=action]"></ng-content>
|
|
170
|
+
</div>`,
|
|
171
|
+
}]
|
|
172
|
+
}], null, { iconSlot: [{
|
|
173
|
+
type: ViewChild,
|
|
174
|
+
args: ['iconSlot']
|
|
175
|
+
}], actionSlot: [{
|
|
176
|
+
type: ViewChild,
|
|
177
|
+
args: ['actionSlot']
|
|
178
|
+
}] }); })();
|
|
179
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EmptyState, { className: "EmptyState", filePath: "components/empty-state.component.ts", lineNumber: 62 }); })();
|
|
180
|
+
//# sourceMappingURL=empty-state.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.component.js","sourceRoot":"","sources":["../../src/components/empty-state.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EAET,UAAU,EACV,MAAM,EACN,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,SA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,aAAa;oBACxB,oBAAoB,EAAE,QAAQ;oBAC9B,oBAAoB,EAAE,cAAc;iBACrC;gBACD,QAAQ,EAAE;;;;;;;;;WASD;aACV;;kBAoBE,SAAS;mBAAC,UAAU;;kBAEpB,SAAS;mBAAC,YAAY;;kFArBZ,UAAU"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FloatingInput component (React parity).
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { type AfterViewInit, ElementRef, EventEmitter, type OnInit } from '@angular/core';
|
|
7
|
+
import type { UIClassMap } from '@molecule/app-ui';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* FloatingInput component.
|
|
11
|
+
*
|
|
12
|
+
* The host is the `span.floatingInputWrapper` React renders; the input and
|
|
13
|
+
* its floating label sit adjacent with no whitespace (both are inline
|
|
14
|
+
* elements, so a space would draw). Works controlled (`value`) and
|
|
15
|
+
* uncontrolled (internal state seeded from `defaultValue`).
|
|
16
|
+
*/
|
|
17
|
+
export declare class FloatingInput implements OnInit, AfterViewInit {
|
|
18
|
+
/** Placeholder text, also rendered as the floating label. */
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
/** Extra classes joined onto the input classes. */
|
|
21
|
+
className?: string;
|
|
22
|
+
/** Controlled value. */
|
|
23
|
+
value?: string;
|
|
24
|
+
/** Uncontrolled initial value (seeds the internal state). */
|
|
25
|
+
defaultValue?: string;
|
|
26
|
+
/** Explicit input id. */
|
|
27
|
+
id?: string;
|
|
28
|
+
/** Fires the raw `input` event (React's text-input onChange). */
|
|
29
|
+
readonly change: EventEmitter<Event>;
|
|
30
|
+
/** The native input (React's `...rest` spread target). */
|
|
31
|
+
inputEl?: ElementRef<HTMLInputElement>;
|
|
32
|
+
private readonly host;
|
|
33
|
+
private internalValue;
|
|
34
|
+
/**
|
|
35
|
+
* The current class map.
|
|
36
|
+
* @returns The UIClassMap.
|
|
37
|
+
*/
|
|
38
|
+
cm(): UIClassMap;
|
|
39
|
+
/**
|
|
40
|
+
* The input id (`id` or a stable generated id; the DOM normalizer renumbers
|
|
41
|
+
* generated ids in order of appearance, like React's `useId`).
|
|
42
|
+
* @returns The id value.
|
|
43
|
+
*/
|
|
44
|
+
inputId(): string;
|
|
45
|
+
/**
|
|
46
|
+
* Computes the input class list.
|
|
47
|
+
* @returns The class string.
|
|
48
|
+
*/
|
|
49
|
+
classes(): string;
|
|
50
|
+
/**
|
|
51
|
+
* The rendered value: the controlled `value`, else the internal state
|
|
52
|
+
* (seeded from `defaultValue`, updated by typing when uncontrolled).
|
|
53
|
+
* @returns The value string.
|
|
54
|
+
*/
|
|
55
|
+
currentValue(): string;
|
|
56
|
+
/**
|
|
57
|
+
* React's onChange: the raw `input` event, with the internal state updated
|
|
58
|
+
* when uncontrolled and the controlled value restored afterwards. The
|
|
59
|
+
* native change event never reaches the host (its `change` output binding
|
|
60
|
+
* would record it a second time).
|
|
61
|
+
*
|
|
62
|
+
* @param event - The native input event.
|
|
63
|
+
*/
|
|
64
|
+
handleInput(event: Event): void;
|
|
65
|
+
/**
|
|
66
|
+
* Swallows the native change event (React's onChange already fired on the
|
|
67
|
+
* input event).
|
|
68
|
+
*
|
|
69
|
+
* @param event - The native change event.
|
|
70
|
+
*/
|
|
71
|
+
stopPropagation(event: Event): void;
|
|
72
|
+
/**
|
|
73
|
+
* Seeds the internal state (inputs are set by now, and the template's
|
|
74
|
+
* value binding evaluates only after this hook).
|
|
75
|
+
*/
|
|
76
|
+
ngOnInit(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Moves rest attributes (`type`, `name`, `disabled`, `readOnly`,
|
|
79
|
+
* `maxLength`, aria/data) onto the input, where React's `{...props}`
|
|
80
|
+
* spread puts them.
|
|
81
|
+
*/
|
|
82
|
+
ngAfterViewInit(): void;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FloatingInput, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FloatingInput, "span[mol-floating-input]", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "className": { "alias": "className"; "required": false; }; "value": { "alias": "value"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=floating-input.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floating-input.component.d.ts","sourceRoot":"","sources":["../../src/components/floating-input.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,aAAa,EAElB,UAAU,EACV,YAAY,EAEZ,KAAK,MAAM,EAGZ,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAKlD;;;;;;;GAOG;AACH,qBAoBa,aAAc,YAAW,MAAM,EAAE,aAAa;IACzD,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yBAAyB;IACzB,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX,iEAAiE;IACvD,QAAQ,CAAC,MAAM,sBAA4B;IAErD,0DAA0D;IACpC,OAAO,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;IAE5D,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;IAC1C,OAAO,CAAC,aAAa,CAAK;IAE1B;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;;OAIG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;;OAIG;IACH,YAAY,IAAI,MAAM;IAItB;;;;;;;OAOG;IACH,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAS/B;;;;;OAKG;IACH,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAInC;;;OAGG;IACH,QAAQ,IAAI,IAAI;IAIhB;;;;OAIG;IACH,eAAe,IAAI,IAAI;yCA/FZ,aAAa;2CAAb,aAAa;CAkGzB"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FloatingInput component (React parity).
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { Component, ElementRef, EventEmitter, inject, Output, ViewChild, } from '@angular/core';
|
|
7
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
8
|
+
import { moveRestAttributes } from '../utilities/rest-attrs.js';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
const _c0 = ["inputEl"];
|
|
11
|
+
function FloatingInput_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
+
i0.ɵɵdomElementStart(0, "label");
|
|
13
|
+
i0.ɵɵtext(1);
|
|
14
|
+
i0.ɵɵdomElementEnd();
|
|
15
|
+
} if (rf & 2) {
|
|
16
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
17
|
+
i0.ɵɵclassMap(ctx_r0.cm().floatingLabel);
|
|
18
|
+
i0.ɵɵattribute("for", ctx_r0.inputId());
|
|
19
|
+
i0.ɵɵadvance();
|
|
20
|
+
i0.ɵɵtextInterpolate(ctx_r0.placeholder);
|
|
21
|
+
} }
|
|
22
|
+
/**
|
|
23
|
+
* FloatingInput component.
|
|
24
|
+
*
|
|
25
|
+
* The host is the `span.floatingInputWrapper` React renders; the input and
|
|
26
|
+
* its floating label sit adjacent with no whitespace (both are inline
|
|
27
|
+
* elements, so a space would draw). Works controlled (`value`) and
|
|
28
|
+
* uncontrolled (internal state seeded from `defaultValue`).
|
|
29
|
+
*/
|
|
30
|
+
export class FloatingInput {
|
|
31
|
+
/** Placeholder text, also rendered as the floating label. */
|
|
32
|
+
placeholder;
|
|
33
|
+
/** Extra classes joined onto the input classes. */
|
|
34
|
+
className;
|
|
35
|
+
/** Controlled value. */
|
|
36
|
+
value;
|
|
37
|
+
/** Uncontrolled initial value (seeds the internal state). */
|
|
38
|
+
defaultValue;
|
|
39
|
+
/** Explicit input id. */
|
|
40
|
+
id;
|
|
41
|
+
/** Fires the raw `input` event (React's text-input onChange). */
|
|
42
|
+
change = new EventEmitter();
|
|
43
|
+
/** The native input (React's `...rest` spread target). */
|
|
44
|
+
inputEl;
|
|
45
|
+
host = inject(ElementRef);
|
|
46
|
+
internalValue = '';
|
|
47
|
+
/**
|
|
48
|
+
* The current class map.
|
|
49
|
+
* @returns The UIClassMap.
|
|
50
|
+
*/
|
|
51
|
+
cm() {
|
|
52
|
+
return getClassMap();
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The input id (`id` or a stable generated id; the DOM normalizer renumbers
|
|
56
|
+
* generated ids in order of appearance, like React's `useId`).
|
|
57
|
+
* @returns The id value.
|
|
58
|
+
*/
|
|
59
|
+
inputId() {
|
|
60
|
+
return this.id || 'r0';
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Computes the input class list.
|
|
64
|
+
* @returns The class string.
|
|
65
|
+
*/
|
|
66
|
+
classes() {
|
|
67
|
+
return this.cm().cn(this.cm().input(), this.cm().floatingInput, this.className);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The rendered value: the controlled `value`, else the internal state
|
|
71
|
+
* (seeded from `defaultValue`, updated by typing when uncontrolled).
|
|
72
|
+
* @returns The value string.
|
|
73
|
+
*/
|
|
74
|
+
currentValue() {
|
|
75
|
+
return this.value !== undefined ? String(this.value) : this.internalValue;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* React's onChange: the raw `input` event, with the internal state updated
|
|
79
|
+
* when uncontrolled and the controlled value restored afterwards. The
|
|
80
|
+
* native change event never reaches the host (its `change` output binding
|
|
81
|
+
* would record it a second time).
|
|
82
|
+
*
|
|
83
|
+
* @param event - The native input event.
|
|
84
|
+
*/
|
|
85
|
+
handleInput(event) {
|
|
86
|
+
event.stopPropagation();
|
|
87
|
+
const input = event.target;
|
|
88
|
+
if (this.value === undefined)
|
|
89
|
+
this.internalValue = input.value;
|
|
90
|
+
this.change.emit(event);
|
|
91
|
+
if (this.value !== undefined && input.value !== String(this.value))
|
|
92
|
+
input.value = String(this.value);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Swallows the native change event (React's onChange already fired on the
|
|
96
|
+
* input event).
|
|
97
|
+
*
|
|
98
|
+
* @param event - The native change event.
|
|
99
|
+
*/
|
|
100
|
+
stopPropagation(event) {
|
|
101
|
+
event.stopPropagation();
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Seeds the internal state (inputs are set by now, and the template's
|
|
105
|
+
* value binding evaluates only after this hook).
|
|
106
|
+
*/
|
|
107
|
+
ngOnInit() {
|
|
108
|
+
this.internalValue = String(this.defaultValue ?? '');
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Moves rest attributes (`type`, `name`, `disabled`, `readOnly`,
|
|
112
|
+
* `maxLength`, aria/data) onto the input, where React's `{...props}`
|
|
113
|
+
* spread puts them.
|
|
114
|
+
*/
|
|
115
|
+
ngAfterViewInit() {
|
|
116
|
+
moveRestAttributes(this.host.nativeElement, this.inputEl?.nativeElement);
|
|
117
|
+
}
|
|
118
|
+
static ɵfac = function FloatingInput_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FloatingInput)(); };
|
|
119
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FloatingInput, selectors: [["span", "mol-floating-input", ""]], viewQuery: function FloatingInput_Query(rf, ctx) { if (rf & 1) {
|
|
120
|
+
i0.ɵɵviewQuery(_c0, 5);
|
|
121
|
+
} if (rf & 2) {
|
|
122
|
+
let _t;
|
|
123
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
124
|
+
} }, hostVars: 2, hostBindings: function FloatingInput_HostBindings(rf, ctx) { if (rf & 2) {
|
|
125
|
+
i0.ɵɵclassMap(ctx.cm().floatingInputWrapper);
|
|
126
|
+
} }, inputs: { placeholder: "placeholder", className: "className", value: "value", defaultValue: "defaultValue", id: "id" }, outputs: { change: "change" }, decls: 3, vars: 6, consts: [["inputEl", ""], [3, "input", "change"], [3, "class"]], template: function FloatingInput_Template(rf, ctx) { if (rf & 1) {
|
|
127
|
+
i0.ɵɵdomElementStart(0, "input", 1, 0);
|
|
128
|
+
i0.ɵɵdomListener("input", function FloatingInput_Template_input_input_0_listener($event) { return ctx.handleInput($event); })("change", function FloatingInput_Template_input_change_0_listener($event) { return ctx.stopPropagation($event); });
|
|
129
|
+
i0.ɵɵdomElementEnd();
|
|
130
|
+
i0.ɵɵconditionalCreate(2, FloatingInput_Conditional_2_Template, 2, 4, "label", 2);
|
|
131
|
+
} if (rf & 2) {
|
|
132
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
133
|
+
i0.ɵɵattribute("id", ctx.inputId())("placeholder", ctx.placeholder)("value", ctx.currentValue());
|
|
134
|
+
i0.ɵɵadvance(2);
|
|
135
|
+
i0.ɵɵconditional(ctx.placeholder ? 2 : -1);
|
|
136
|
+
} }, encapsulation: 2 });
|
|
137
|
+
}
|
|
138
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FloatingInput, [{
|
|
139
|
+
type: Component,
|
|
140
|
+
args: [{
|
|
141
|
+
selector: 'span[mol-floating-input]',
|
|
142
|
+
standalone: true,
|
|
143
|
+
inputs: ['placeholder', 'className', 'value', 'defaultValue', 'id'],
|
|
144
|
+
host: {
|
|
145
|
+
'[class]': 'cm().floatingInputWrapper',
|
|
146
|
+
},
|
|
147
|
+
template: `<input
|
|
148
|
+
[attr.id]="inputId()"
|
|
149
|
+
[attr.placeholder]="placeholder"
|
|
150
|
+
[class]="classes()"
|
|
151
|
+
[attr.value]="currentValue()"
|
|
152
|
+
(input)="handleInput($event)"
|
|
153
|
+
(change)="stopPropagation($event)"
|
|
154
|
+
#inputEl
|
|
155
|
+
/>
|
|
156
|
+
@if (placeholder) {
|
|
157
|
+
<label [attr.for]="inputId()" [class]="cm().floatingLabel">{{ placeholder }}</label>
|
|
158
|
+
}`,
|
|
159
|
+
}]
|
|
160
|
+
}], null, { change: [{
|
|
161
|
+
type: Output
|
|
162
|
+
}], inputEl: [{
|
|
163
|
+
type: ViewChild,
|
|
164
|
+
args: ['inputEl']
|
|
165
|
+
}] }); })();
|
|
166
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FloatingInput, { className: "FloatingInput", filePath: "components/floating-input.component.ts", lineNumber: 51 }); })();
|
|
167
|
+
//# sourceMappingURL=floating-input.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floating-input.component.js","sourceRoot":"","sources":["../../src/components/floating-input.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EAEN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;;;;IA2BzD,gCAA2D;IAAA,YAAiB;IAAA,oBAAQ;;;IAAtD,wCAA4B;;IAAC,cAAiB;IAAjB,wCAAiB;;AAzBlF;;;;;;;GAOG;AAqBH,MAAM,OAAO,aAAa;IACxB,6DAA6D;IAC7D,WAAW,CAAS;IACpB,mDAAmD;IACnD,SAAS,CAAS;IAClB,wBAAwB;IACxB,KAAK,CAAS;IACd,6DAA6D;IAC7D,YAAY,CAAS;IACrB,yBAAyB;IACzB,EAAE,CAAS;IAEX,iEAAiE;IAC9C,MAAM,GA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