@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.component.js","sourceRoot":"","sources":["../../src/components/button.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"button.component.js","sourceRoot":"","sources":["../../src/components/button.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,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;;;;;;;IA6G1C,yBAAuE;;;IAAxC,AAAd,2BAAa,yCAAkC;;;IAMhE,6BAAc;IAAA,YAAiB;;;;IAAjB,cAAiB;IAAjB,wCAAiB;;;IAE/B,qBAAyB;;AAnH/B;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,EAA8B;IACrD,IAAI,CAAC,EAAE;QAAE,OAAO,KAAK,CAAA;IACrB,KAAK,MAAM,IAAI,I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AW,CAAL;YAAN,cAAA,aAAS,CAAH;;;YAfN,wEAAe;YAGxB,qCACG;YAAA,kBACF;YAAA,iBAAO;YAGN,AAFF,8EAA8B,wCAErB;YAGT,qCACG;YAAA,qBACF;YAAA,iBAAO;;YAbC,sCAER;YACK,cAA6B;YAA7B,sCAA6B;YAGnC,eAIC;YAJD,wDAIC;YACK,eAA8B;YAA9B,uCAA8B;4BAjC5B,OAAO;;iFAqCN,MAAM;cAxClB,SAAS;eAAC;gBACT,QAAQ,EAAE,oBAAoB;gBAC9B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,OAAO,CAAC;gBAClB,MAAM,EAAE;oBACN,SAAS;oBACT,OAAO;oBACP,MAAM;oBACN,SAAS;oBACT,aAAa;oBACb,WAAW;oBACX,WAAW;oBACX,OAAO;oBACP,QAAQ;oBACR,UAAU;oBACV,MAAM;iBACP;gBACD,IAAI,EAAE;oBACJ,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,aAAa;oBACxB,oBAAoB,EAAE,QAAQ;oBAC9B,aAAa,EAAE,MAAM;oBACrB,YAAY,EAAE,qBAAqB;oBACnC,kBAAkB,EAAE,4BAA4B;iBACjD;gBACD,QAAQ,EAAE;;;;;;;;;;;;;aAaC;aACZ;;kBA0BE,SAAS;mBAAC,UAAU;;kBAEpB,SAAS;mBAAC,WAAW;;kFA3BX,MAAM"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { UIClassMap } from '@molecule/app-ui';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Card component.
|
|
5
|
+
*
|
|
6
|
+
* An interactive card renders `role="button"` and joins the keyboard tab
|
|
7
|
+
* order; rest props (`aria-*`, `data-*`, `id`) land on the host.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Card {
|
|
10
|
+
/** Card variant. */
|
|
11
|
+
variant: 'default' | 'elevated' | 'outlined' | 'filled' | 'ghost';
|
|
12
|
+
/** Whether the card is keyboard-interactive. */
|
|
13
|
+
interactive?: boolean;
|
|
14
|
+
/** Padding preset (`none` for no padding class). */
|
|
15
|
+
padding: 'none' | 'sm' | 'md' | 'lg';
|
|
16
|
+
/** Extra classes. */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** Inline style object (React camelCase). */
|
|
19
|
+
style?: Record<string, unknown>;
|
|
20
|
+
/** `data-testid`. */
|
|
21
|
+
testId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The current class map.
|
|
24
|
+
* @returns The UIClassMap.
|
|
25
|
+
*/
|
|
26
|
+
cm(): UIClassMap;
|
|
27
|
+
/**
|
|
28
|
+
* Computes the card class list.
|
|
29
|
+
* @returns The class string.
|
|
30
|
+
*/
|
|
31
|
+
classes(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Serializes the inline style.
|
|
34
|
+
* @returns The style attribute text.
|
|
35
|
+
*/
|
|
36
|
+
hostStyle(): string | null;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Card, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Card, "div[mol-card]", never, { "variant": { "alias": "variant"; "required": false; }; "interactive": { "alias": "interactive"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Card header.
|
|
42
|
+
*/
|
|
43
|
+
export declare class CardHeader {
|
|
44
|
+
/** Extra classes. */
|
|
45
|
+
className?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The current class map.
|
|
48
|
+
* @returns The UIClassMap.
|
|
49
|
+
*/
|
|
50
|
+
cm(): UIClassMap;
|
|
51
|
+
/**
|
|
52
|
+
* Computes the class list.
|
|
53
|
+
* @returns The class string.
|
|
54
|
+
*/
|
|
55
|
+
classes(): string;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardHeader, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardHeader, "div[mol-card-header]", never, { "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Card title (an `h3`).
|
|
61
|
+
*/
|
|
62
|
+
export declare class CardTitle {
|
|
63
|
+
/** Extra classes. */
|
|
64
|
+
className?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The current class map.
|
|
67
|
+
* @returns The UIClassMap.
|
|
68
|
+
*/
|
|
69
|
+
cm(): UIClassMap;
|
|
70
|
+
/**
|
|
71
|
+
* Computes the class list.
|
|
72
|
+
* @returns The class string.
|
|
73
|
+
*/
|
|
74
|
+
classes(): string;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardTitle, never>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardTitle, "h3[mol-card-title]", never, { "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Card description (a `p`).
|
|
80
|
+
*/
|
|
81
|
+
export declare class CardDescription {
|
|
82
|
+
/** Extra classes. */
|
|
83
|
+
className?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The current class map.
|
|
86
|
+
* @returns The UIClassMap.
|
|
87
|
+
*/
|
|
88
|
+
cm(): UIClassMap;
|
|
89
|
+
/**
|
|
90
|
+
* Computes the class list.
|
|
91
|
+
* @returns The class string.
|
|
92
|
+
*/
|
|
93
|
+
classes(): string;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardDescription, never>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardDescription, "p[mol-card-description]", never, { "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Card content.
|
|
99
|
+
*/
|
|
100
|
+
export declare class CardContent {
|
|
101
|
+
/** Extra classes. */
|
|
102
|
+
className?: string;
|
|
103
|
+
/**
|
|
104
|
+
* The current class map.
|
|
105
|
+
* @returns The UIClassMap.
|
|
106
|
+
*/
|
|
107
|
+
cm(): UIClassMap;
|
|
108
|
+
/**
|
|
109
|
+
* Computes the class list.
|
|
110
|
+
* @returns The class string.
|
|
111
|
+
*/
|
|
112
|
+
classes(): string;
|
|
113
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardContent, never>;
|
|
114
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardContent, "div[mol-card-content]", never, { "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Card footer.
|
|
118
|
+
*/
|
|
119
|
+
export declare class CardFooter {
|
|
120
|
+
/** Extra classes. */
|
|
121
|
+
className?: string;
|
|
122
|
+
/**
|
|
123
|
+
* The current class map.
|
|
124
|
+
* @returns The UIClassMap.
|
|
125
|
+
*/
|
|
126
|
+
cm(): UIClassMap;
|
|
127
|
+
/**
|
|
128
|
+
* Computes the class list.
|
|
129
|
+
* @returns The class string.
|
|
130
|
+
*/
|
|
131
|
+
classes(): string;
|
|
132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardFooter, never>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardFooter, "div[mol-card-footer]", never, { "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=card.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.component.d.ts","sourceRoot":"","sources":["../../src/components/card.component.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAYlD;;;;;GAKG;AACH,qBAaa,IAAI;IACf,oBAAoB;IACpB,OAAO,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG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MAAM;yCAhBN,WAAW;2CAAX,WAAW;CAmBvB;AAED;;GAEG;AACH,qBASa,UAAU;IACrB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,MAAM;yCAhBN,UAAU;2CAAV,UAAU;CAmBtB"}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Card components (React parity): Card, CardHeader, CardTitle,
|
|
3
|
+
* CardDescription, CardContent, CardFooter.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import { Component } from '@angular/core';
|
|
8
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
9
|
+
import { styleText } from '../utilities/style.js';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
const _c0 = ["*"];
|
|
12
|
+
/** React's variant spellings → class-map variants. */
|
|
13
|
+
const VARIANT_MAP = {
|
|
14
|
+
elevated: 'elevated',
|
|
15
|
+
outlined: 'outline',
|
|
16
|
+
filled: 'default',
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Card component.
|
|
20
|
+
*
|
|
21
|
+
* An interactive card renders `role="button"` and joins the keyboard tab
|
|
22
|
+
* order; rest props (`aria-*`, `data-*`, `id`) land on the host.
|
|
23
|
+
*/
|
|
24
|
+
export class Card {
|
|
25
|
+
/** Card variant. */
|
|
26
|
+
variant = 'elevated';
|
|
27
|
+
/** Whether the card is keyboard-interactive. */
|
|
28
|
+
interactive;
|
|
29
|
+
/** Padding preset (`none` for no padding class). */
|
|
30
|
+
padding = 'md';
|
|
31
|
+
/** Extra classes. */
|
|
32
|
+
className;
|
|
33
|
+
/** Inline style object (React camelCase). */
|
|
34
|
+
style;
|
|
35
|
+
/** `data-testid`. */
|
|
36
|
+
testId;
|
|
37
|
+
/**
|
|
38
|
+
* The current class map.
|
|
39
|
+
* @returns The UIClassMap.
|
|
40
|
+
*/
|
|
41
|
+
cm() {
|
|
42
|
+
return getClassMap();
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Computes the card class list.
|
|
46
|
+
* @returns The class string.
|
|
47
|
+
*/
|
|
48
|
+
classes() {
|
|
49
|
+
const paddingClass = this.padding === 'none' ? '' : this.cm().cardPadding(this.padding);
|
|
50
|
+
return this.cm().cn(this.cm().card({ variant: VARIANT_MAP[this.variant] || 'default' }), paddingClass, this.interactive && this.cm().cardInteractive, this.className);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Serializes the inline style.
|
|
54
|
+
* @returns The style attribute text.
|
|
55
|
+
*/
|
|
56
|
+
hostStyle() {
|
|
57
|
+
return styleText(this.style);
|
|
58
|
+
}
|
|
59
|
+
static ɵfac = function Card_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Card)(); };
|
|
60
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Card, selectors: [["div", "mol-card", ""]], hostVars: 7, hostBindings: function Card_HostBindings(rf, ctx) { if (rf & 2) {
|
|
61
|
+
i0.ɵɵattribute("data-testid", ctx.testId)("role", ctx.interactive ? "button" : null)("tabindex", ctx.interactive ? 0 : null);
|
|
62
|
+
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
63
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
64
|
+
} }, inputs: { variant: "variant", interactive: "interactive", padding: "padding", className: "className", style: "style", testId: "testId" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function Card_Template(rf, ctx) { if (rf & 1) {
|
|
65
|
+
i0.ɵɵprojectionDef();
|
|
66
|
+
i0.ɵɵprojection(0);
|
|
67
|
+
} }, encapsulation: 2 });
|
|
68
|
+
}
|
|
69
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Card, [{
|
|
70
|
+
type: Component,
|
|
71
|
+
args: [{
|
|
72
|
+
selector: 'div[mol-card]',
|
|
73
|
+
standalone: true,
|
|
74
|
+
inputs: ['variant', 'interactive', 'padding', 'className', 'style', 'testId'],
|
|
75
|
+
host: {
|
|
76
|
+
'[class]': 'classes()',
|
|
77
|
+
'[style]': 'hostStyle()',
|
|
78
|
+
'[attr.data-testid]': 'testId',
|
|
79
|
+
'[attr.role]': 'interactive ? "button" : null',
|
|
80
|
+
'[attr.tabindex]': 'interactive ? 0 : null',
|
|
81
|
+
},
|
|
82
|
+
template: `<ng-content></ng-content>`,
|
|
83
|
+
}]
|
|
84
|
+
}], null, null); })();
|
|
85
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Card, { className: "Card", filePath: "components/card.component.ts", lineNumber: 41 }); })();
|
|
86
|
+
/**
|
|
87
|
+
* Card header.
|
|
88
|
+
*/
|
|
89
|
+
export class CardHeader {
|
|
90
|
+
/** Extra classes. */
|
|
91
|
+
className;
|
|
92
|
+
/**
|
|
93
|
+
* The current class map.
|
|
94
|
+
* @returns The UIClassMap.
|
|
95
|
+
*/
|
|
96
|
+
cm() {
|
|
97
|
+
return getClassMap();
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Computes the class list.
|
|
101
|
+
* @returns The class string.
|
|
102
|
+
*/
|
|
103
|
+
classes() {
|
|
104
|
+
return this.cm().cn(this.cm().cardHeader, this.className);
|
|
105
|
+
}
|
|
106
|
+
static ɵfac = function CardHeader_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CardHeader)(); };
|
|
107
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardHeader, selectors: [["div", "mol-card-header", ""]], hostVars: 2, hostBindings: function CardHeader_HostBindings(rf, ctx) { if (rf & 2) {
|
|
108
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
109
|
+
} }, inputs: { className: "className" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function CardHeader_Template(rf, ctx) { if (rf & 1) {
|
|
110
|
+
i0.ɵɵprojectionDef();
|
|
111
|
+
i0.ɵɵprojection(0);
|
|
112
|
+
} }, encapsulation: 2 });
|
|
113
|
+
}
|
|
114
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardHeader, [{
|
|
115
|
+
type: Component,
|
|
116
|
+
args: [{
|
|
117
|
+
selector: 'div[mol-card-header]',
|
|
118
|
+
standalone: true,
|
|
119
|
+
inputs: ['className'],
|
|
120
|
+
host: {
|
|
121
|
+
'[class]': 'classes()',
|
|
122
|
+
},
|
|
123
|
+
template: `<ng-content></ng-content>`,
|
|
124
|
+
}]
|
|
125
|
+
}], null, null); })();
|
|
126
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CardHeader, { className: "CardHeader", filePath: "components/card.component.ts", lineNumber: 98 }); })();
|
|
127
|
+
/**
|
|
128
|
+
* Card title (an `h3`).
|
|
129
|
+
*/
|
|
130
|
+
export class CardTitle {
|
|
131
|
+
/** Extra classes. */
|
|
132
|
+
className;
|
|
133
|
+
/**
|
|
134
|
+
* The current class map.
|
|
135
|
+
* @returns The UIClassMap.
|
|
136
|
+
*/
|
|
137
|
+
cm() {
|
|
138
|
+
return getClassMap();
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Computes the class list.
|
|
142
|
+
* @returns The class string.
|
|
143
|
+
*/
|
|
144
|
+
classes() {
|
|
145
|
+
return this.cm().cn(this.cm().cardTitle, this.className);
|
|
146
|
+
}
|
|
147
|
+
static ɵfac = function CardTitle_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CardTitle)(); };
|
|
148
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardTitle, selectors: [["h3", "mol-card-title", ""]], hostVars: 2, hostBindings: function CardTitle_HostBindings(rf, ctx) { if (rf & 2) {
|
|
149
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
150
|
+
} }, inputs: { className: "className" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function CardTitle_Template(rf, ctx) { if (rf & 1) {
|
|
151
|
+
i0.ɵɵprojectionDef();
|
|
152
|
+
i0.ɵɵprojection(0);
|
|
153
|
+
} }, encapsulation: 2 });
|
|
154
|
+
}
|
|
155
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardTitle, [{
|
|
156
|
+
type: Component,
|
|
157
|
+
args: [{
|
|
158
|
+
selector: 'h3[mol-card-title]',
|
|
159
|
+
standalone: true,
|
|
160
|
+
inputs: ['className'],
|
|
161
|
+
host: {
|
|
162
|
+
'[class]': 'classes()',
|
|
163
|
+
},
|
|
164
|
+
template: `<ng-content></ng-content>`,
|
|
165
|
+
}]
|
|
166
|
+
}], null, null); })();
|
|
167
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CardTitle, { className: "CardTitle", filePath: "components/card.component.ts", lineNumber: 131 }); })();
|
|
168
|
+
/**
|
|
169
|
+
* Card description (a `p`).
|
|
170
|
+
*/
|
|
171
|
+
export class CardDescription {
|
|
172
|
+
/** Extra classes. */
|
|
173
|
+
className;
|
|
174
|
+
/**
|
|
175
|
+
* The current class map.
|
|
176
|
+
* @returns The UIClassMap.
|
|
177
|
+
*/
|
|
178
|
+
cm() {
|
|
179
|
+
return getClassMap();
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Computes the class list.
|
|
183
|
+
* @returns The class string.
|
|
184
|
+
*/
|
|
185
|
+
classes() {
|
|
186
|
+
return this.cm().cn(this.cm().cardDescription, this.className);
|
|
187
|
+
}
|
|
188
|
+
static ɵfac = function CardDescription_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CardDescription)(); };
|
|
189
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardDescription, selectors: [["p", "mol-card-description", ""]], hostVars: 2, hostBindings: function CardDescription_HostBindings(rf, ctx) { if (rf & 2) {
|
|
190
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
191
|
+
} }, inputs: { className: "className" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function CardDescription_Template(rf, ctx) { if (rf & 1) {
|
|
192
|
+
i0.ɵɵprojectionDef();
|
|
193
|
+
i0.ɵɵprojection(0);
|
|
194
|
+
} }, encapsulation: 2 });
|
|
195
|
+
}
|
|
196
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardDescription, [{
|
|
197
|
+
type: Component,
|
|
198
|
+
args: [{
|
|
199
|
+
selector: 'p[mol-card-description]',
|
|
200
|
+
standalone: true,
|
|
201
|
+
inputs: ['className'],
|
|
202
|
+
host: {
|
|
203
|
+
'[class]': 'classes()',
|
|
204
|
+
},
|
|
205
|
+
template: `<ng-content></ng-content>`,
|
|
206
|
+
}]
|
|
207
|
+
}], null, null); })();
|
|
208
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CardDescription, { className: "CardDescription", filePath: "components/card.component.ts", lineNumber: 164 }); })();
|
|
209
|
+
/**
|
|
210
|
+
* Card content.
|
|
211
|
+
*/
|
|
212
|
+
export class CardContent {
|
|
213
|
+
/** Extra classes. */
|
|
214
|
+
className;
|
|
215
|
+
/**
|
|
216
|
+
* The current class map.
|
|
217
|
+
* @returns The UIClassMap.
|
|
218
|
+
*/
|
|
219
|
+
cm() {
|
|
220
|
+
return getClassMap();
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Computes the class list.
|
|
224
|
+
* @returns The class string.
|
|
225
|
+
*/
|
|
226
|
+
classes() {
|
|
227
|
+
return this.cm().cn(this.cm().cardContent, this.className);
|
|
228
|
+
}
|
|
229
|
+
static ɵfac = function CardContent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CardContent)(); };
|
|
230
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardContent, selectors: [["div", "mol-card-content", ""]], hostVars: 2, hostBindings: function CardContent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
231
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
232
|
+
} }, inputs: { className: "className" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function CardContent_Template(rf, ctx) { if (rf & 1) {
|
|
233
|
+
i0.ɵɵprojectionDef();
|
|
234
|
+
i0.ɵɵprojection(0);
|
|
235
|
+
} }, encapsulation: 2 });
|
|
236
|
+
}
|
|
237
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardContent, [{
|
|
238
|
+
type: Component,
|
|
239
|
+
args: [{
|
|
240
|
+
selector: 'div[mol-card-content]',
|
|
241
|
+
standalone: true,
|
|
242
|
+
inputs: ['className'],
|
|
243
|
+
host: {
|
|
244
|
+
'[class]': 'classes()',
|
|
245
|
+
},
|
|
246
|
+
template: `<ng-content></ng-content>`,
|
|
247
|
+
}]
|
|
248
|
+
}], null, null); })();
|
|
249
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CardContent, { className: "CardContent", filePath: "components/card.component.ts", lineNumber: 197 }); })();
|
|
250
|
+
/**
|
|
251
|
+
* Card footer.
|
|
252
|
+
*/
|
|
253
|
+
export class CardFooter {
|
|
254
|
+
/** Extra classes. */
|
|
255
|
+
className;
|
|
256
|
+
/**
|
|
257
|
+
* The current class map.
|
|
258
|
+
* @returns The UIClassMap.
|
|
259
|
+
*/
|
|
260
|
+
cm() {
|
|
261
|
+
return getClassMap();
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Computes the class list.
|
|
265
|
+
* @returns The class string.
|
|
266
|
+
*/
|
|
267
|
+
classes() {
|
|
268
|
+
return this.cm().cn(this.cm().cardFooter, this.className);
|
|
269
|
+
}
|
|
270
|
+
static ɵfac = function CardFooter_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CardFooter)(); };
|
|
271
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardFooter, selectors: [["div", "mol-card-footer", ""]], hostVars: 2, hostBindings: function CardFooter_HostBindings(rf, ctx) { if (rf & 2) {
|
|
272
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
273
|
+
} }, inputs: { className: "className" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function CardFooter_Template(rf, ctx) { if (rf & 1) {
|
|
274
|
+
i0.ɵɵprojectionDef();
|
|
275
|
+
i0.ɵɵprojection(0);
|
|
276
|
+
} }, encapsulation: 2 });
|
|
277
|
+
}
|
|
278
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardFooter, [{
|
|
279
|
+
type: Component,
|
|
280
|
+
args: [{
|
|
281
|
+
selector: 'div[mol-card-footer]',
|
|
282
|
+
standalone: true,
|
|
283
|
+
inputs: ['className'],
|
|
284
|
+
host: {
|
|
285
|
+
'[class]': 'classes()',
|
|
286
|
+
},
|
|
287
|
+
template: `<ng-content></ng-content>`,
|
|
288
|
+
}]
|
|
289
|
+
}], null, null); })();
|
|
290
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CardFooter, { className: "CardFooter", filePath: "components/card.component.ts", lineNumber: 230 }); })();
|
|
291
|
+
//# sourceMappingURL=card.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.component.js","sourceRoot":"","sources":["../../src/components/card.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAGzC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;;;AAEjD,sDAAsD;AACtD,MAAM,WAAW,GAAiE;IAChF,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,SAAS;IACnB,MAAM,EAAE,SAAS;CAClB,CAAA;AAED;;;;;GAKG;AAcH,MAAM,OAAO,IAAI;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B,IAAI,EAAE;oBACJ,SAAS,EAAE,WAAW;iBACvB;gBACD,QAAQ,EAAE,2BAA2B;aACtC;;kFACY,WAAW;AAqBxB;;GAEG;AAUH,MAAM,OAAO,UAAU;IACrB,qBAAqB;IACrB,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,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC3D,CAAC;oGAlBU,UAAU;6DAAV,UAAU;YAAV,cAAA,aAAS,CAAC;;;YAFV,kBAAyB;;;iFAEzB,UAAU;cATtB,SAAS;eAAC;gBACT,QAAQ,EAAE,sBAAsB;gBAChC,UAAU,EAAE,IAAI;gBAChB,MAAM,EAAE,CAAC,WAAW,CAAC;gBACrB,IAAI,EAAE;oBACJ,SAAS,EAAE,WAAW;iBACvB;gBACD,QAAQ,EAAE,2BAA2B;aACtC;;kFACY,UAAU"}
|
|
@@ -1,53 +1,126 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Checkbox component (React parity).
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { EventEmitter } from '@angular/core';
|
|
7
|
-
import type {
|
|
6
|
+
import { type AfterViewChecked, ElementRef, EventEmitter } from '@angular/core';
|
|
7
|
+
import type { UIClassMap } from '@molecule/app-ui';
|
|
8
|
+
import type { FormFieldContext } from '../utilities/form-field-context.js';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
/**
|
|
10
|
-
*
|
|
11
|
+
* Checkbox component.
|
|
12
|
+
*
|
|
13
|
+
* The host is the `div.formFieldWrapper` React renders. The error message is
|
|
14
|
+
* programmatically associated with the input through `aria-describedby`;
|
|
15
|
+
* the input is React's `...rest` spread target, so rest attributes move
|
|
16
|
+
* there at view init.
|
|
11
17
|
*/
|
|
12
|
-
export declare class
|
|
13
|
-
label
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
export declare class Checkbox implements AfterViewChecked {
|
|
19
|
+
/** Checkbox label (text, or projected `[slot=label]` nodes). */
|
|
20
|
+
label?: unknown;
|
|
21
|
+
/** Whether the checkbox is checked. */
|
|
22
|
+
checked?: boolean;
|
|
23
|
+
/** Whether the checkbox renders the indeterminate state. */
|
|
24
|
+
indeterminate?: boolean;
|
|
25
|
+
/** Checkbox size (kept for prop parity). */
|
|
26
|
+
size?: unknown;
|
|
27
|
+
/** Error message (renders and associates via aria-describedby). */
|
|
17
28
|
error?: string;
|
|
29
|
+
/** Extra classes joined onto the checkbox classes. */
|
|
18
30
|
className?: string;
|
|
19
|
-
style
|
|
31
|
+
/** Inline style object (React camelCase). */
|
|
32
|
+
style?: Record<string, unknown>;
|
|
33
|
+
/** `data-testid` for the input. */
|
|
20
34
|
testId?: string;
|
|
21
|
-
|
|
35
|
+
/** Disables the checkbox. */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Form field name. */
|
|
22
38
|
name?: string;
|
|
39
|
+
/** Explicit id (defaults to the name). */
|
|
23
40
|
id?: string;
|
|
24
|
-
|
|
41
|
+
/** Uncontrolled initial checked state (renders as the checked attribute). */
|
|
42
|
+
defaultChecked?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The controlled-or-default checked state (React: `checked ?? defaultChecked`).
|
|
45
|
+
* @returns True when the checked attribute renders.
|
|
46
|
+
*/
|
|
47
|
+
isChecked(): boolean;
|
|
48
|
+
/** The genuine native `change` event. */
|
|
49
|
+
readonly change: EventEmitter<Event>;
|
|
50
|
+
/** The native input (React's `...rest` spread target). */
|
|
51
|
+
input?: ElementRef<HTMLInputElement>;
|
|
52
|
+
/** The label text wrapper. */
|
|
53
|
+
labelSlot?: ElementRef<HTMLSpanElement>;
|
|
54
|
+
private readonly host;
|
|
55
|
+
/** The `aria-describedby` the caller spread onto the host (React's rest). */
|
|
56
|
+
private restDescribedBy;
|
|
57
|
+
/** Whether the rest-describedby value was captured. */
|
|
58
|
+
private restDescribedByCaptured;
|
|
59
|
+
private readonly sync;
|
|
60
|
+
private hasLabel;
|
|
61
|
+
private syncIndeterminate;
|
|
62
|
+
/**
|
|
63
|
+
* The current class map.
|
|
64
|
+
* @returns The UIClassMap.
|
|
65
|
+
*/
|
|
66
|
+
cm(): UIClassMap;
|
|
67
|
+
/**
|
|
68
|
+
* The id of the label-side element (`id` or `name`).
|
|
69
|
+
* @returns The id value or undefined.
|
|
70
|
+
*/
|
|
71
|
+
checkboxId(): string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* The error message id (a stable generated id, renumbered consistently by
|
|
74
|
+
* the DOM normalizer like React's `useId`).
|
|
75
|
+
* @returns The error element id.
|
|
76
|
+
*/
|
|
77
|
+
errorId(): string;
|
|
78
|
+
/**
|
|
79
|
+
* The nearest enclosing `FormField` context (React's cloned props).
|
|
80
|
+
* @returns The context, or null.
|
|
81
|
+
*/
|
|
82
|
+
fieldContext(): FormFieldContext | null;
|
|
83
|
+
/**
|
|
84
|
+
* The final `aria-describedby`: the enclosing FormField's error/hint
|
|
85
|
+
* target, then this checkbox's own error (React's cloneElement join).
|
|
86
|
+
* @returns The attribute value, or null.
|
|
87
|
+
*/
|
|
88
|
+
mergedDescribedBy(): string | null;
|
|
25
89
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @returns The
|
|
90
|
+
* Computes the checkbox class list.
|
|
91
|
+
* @returns The class string.
|
|
28
92
|
*/
|
|
29
|
-
|
|
93
|
+
classes(): string;
|
|
30
94
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @returns The
|
|
95
|
+
* Serializes the inline style for the input.
|
|
96
|
+
* @returns The style attribute text.
|
|
33
97
|
*/
|
|
34
|
-
|
|
98
|
+
hostStyle(): string | null;
|
|
35
99
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
100
|
+
* React's checkbox `onChange` fires on the checkbox's CLICK event (React's
|
|
101
|
+
* change-event plugin maps checkbox/radio changes to the click), so the
|
|
102
|
+
* click event object is what callers receive.
|
|
103
|
+
*
|
|
104
|
+
* @param event - The native click event.
|
|
38
105
|
*/
|
|
39
|
-
|
|
106
|
+
handleClick(event: Event): void;
|
|
40
107
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
108
|
+
* A native change that did not come from this tick's click (a synthetic
|
|
109
|
+
* `dispatchEvent`) is forwarded like React would; the event never reaches
|
|
110
|
+
* the host, where the `change` output binding would record it twice. A
|
|
111
|
+
* CONTROLLED checkbox (`checked` prop given) is restored to the prop value
|
|
112
|
+
* afterwards, exactly like React's controlled-input state restore.
|
|
113
|
+
*
|
|
114
|
+
* @param event - The native change event.
|
|
43
115
|
*/
|
|
44
|
-
|
|
116
|
+
handleChange(event: Event): void;
|
|
117
|
+
private justClicked;
|
|
45
118
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
119
|
+
* Applies the indeterminate DOM flag (a property, not an attribute) and
|
|
120
|
+
* React's `{!!label && <span>}` label condition.
|
|
48
121
|
*/
|
|
49
|
-
|
|
50
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
122
|
+
ngAfterViewChecked(): void;
|
|
123
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Checkbox, never>;
|
|
124
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Checkbox, "div[mol-checkbox]", never, { "label": { "alias": "label"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "size": { "alias": "size"; "required": false; }; "error": { "alias": "error"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "defaultChecked": { "alias": "defaultChecked"; "required": false; }; }, { "change": "change"; }, never, ["[slot=label]"], true, never>;
|
|
52
125
|
}
|
|
53
126
|
//# sourceMappingURL=checkbox.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.component.d.ts","sourceRoot":"","sources":["../../src/components/checkbox.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"checkbox.component.d.ts","sourceRoot":"","sources":["../../src/components/checkbox.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,gBAAgB,EAErB,UAAU,EACV,YAAY,EAKb,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;;AAM1E;;;;;;;GAOG;AACH,qBA6Ca,QAAS,YAAW,gBAAgB;IAC/C,gEAAgE;IAChE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,6EAA6E;IAC7E,cAAc,CA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