@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":"select.component.js","sourceRoot":"","sources":["../../src/components/select.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file":"select.component.js","sourceRoot":"","sources":["../../src/components/select.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EACN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAE,UAAU,EAAqB,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;;;;;;IAgD3C,6BAGG;IAAA,YAAW;IAAA,iBACb;;;IAFC,uHAAwE;;IAC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cAgBC;YAhBD,cAAA,kBAAc,CAgBb;YAEE,eAAgC;YAAhC,yCAAgC;;YACrB,cAAkB;YAAlB,oCAAkB;YAGpC,cAEC;YAFD,qCAEC;YACD,cAEC;YAFD,kDAEC;4BA5EO,UAAU;;iFA8ET,MAAM;cAjFlB,SAAS;eAAC;gBACT,QAAQ,EAAE,iBAAiB;gBAC3B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,UAAU,CAAC;gBACrB,MAAM,EAAE;oBACN,SAAS;oBACT,OAAO;oBACP,cAAc;oBACd,MAAM;oBACN,OAAO;oBACP,aAAa;oBACb,OAAO;oBACP,MAAM;oBACN,WAAW;oBACX,WAAW;oBACX,OAAO;oBACP,QAAQ;oBACR,UAAU;oBACV,UAAU;oBACV,MAAM;oBACN,IAAI;iBACL;gBACD,IAAI,EAAE;oBACJ,SAAS,EAAE,mBAAmB;iBAC/B;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsDN;aACL;;kBAoCE,MAAM;;kBAEN,MAAM;;kBAGN,SAAS;mBAAC,UAAU;;kFAxCV,MAAM"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { UIClassMap } from '@molecule/app-ui';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Separator component.
|
|
5
|
+
*
|
|
6
|
+
* Decorative separators render `role="none"` and no orientation; a semantic
|
|
7
|
+
* one (`decorative={false}`) renders `role="separator"` plus
|
|
8
|
+
* `aria-orientation`.
|
|
9
|
+
*/
|
|
10
|
+
export declare class Separator {
|
|
11
|
+
/** Orientation of the separator. */
|
|
12
|
+
orientation: 'horizontal' | 'vertical';
|
|
13
|
+
/** Decorative separators are purely visual. */
|
|
14
|
+
decorative: boolean;
|
|
15
|
+
/** Extra classes. */
|
|
16
|
+
className?: string;
|
|
17
|
+
/** Inline style object (React camelCase). */
|
|
18
|
+
style?: Record<string, unknown>;
|
|
19
|
+
/** `data-testid`. */
|
|
20
|
+
testId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The current class map.
|
|
23
|
+
* @returns The UIClassMap.
|
|
24
|
+
*/
|
|
25
|
+
cm(): UIClassMap;
|
|
26
|
+
/**
|
|
27
|
+
* Computes the separator class list.
|
|
28
|
+
* @returns The class string.
|
|
29
|
+
*/
|
|
30
|
+
classes(): string;
|
|
31
|
+
/**
|
|
32
|
+
* Serializes the inline style.
|
|
33
|
+
* @returns The style attribute text.
|
|
34
|
+
*/
|
|
35
|
+
hostStyle(): string | null;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Separator, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Separator, "div[mol-separator]", never, { "orientation": { "alias": "orientation"; "required": false; }; "decorative": { "alias": "decorative"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, never, true, never>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=separator.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.component.d.ts","sourceRoot":"","sources":["../../src/components/separator.component.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAKlD;;;;;;GAMG;AACH,qBAaa,SAAS;IACpB,oCAAoC;IACpC,WAAW,EAAE,YAAY,GAAG,UAAU,CAAe;IACrD,+CAA+C;IAC/C,UAAU,UAAO;IACjB,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;IAEf;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;yCAhCf,SAAS;2CAAT,SAAS;CAmCrB"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Separator component (React parity).
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { Component } from '@angular/core';
|
|
7
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
8
|
+
import { styleText } from '../utilities/style.js';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* Separator component.
|
|
12
|
+
*
|
|
13
|
+
* Decorative separators render `role="none"` and no orientation; a semantic
|
|
14
|
+
* one (`decorative={false}`) renders `role="separator"` plus
|
|
15
|
+
* `aria-orientation`.
|
|
16
|
+
*/
|
|
17
|
+
export class Separator {
|
|
18
|
+
/** Orientation of the separator. */
|
|
19
|
+
orientation = 'horizontal';
|
|
20
|
+
/** Decorative separators are purely visual. */
|
|
21
|
+
decorative = true;
|
|
22
|
+
/** Extra classes. */
|
|
23
|
+
className;
|
|
24
|
+
/** Inline style object (React camelCase). */
|
|
25
|
+
style;
|
|
26
|
+
/** `data-testid`. */
|
|
27
|
+
testId;
|
|
28
|
+
/**
|
|
29
|
+
* The current class map.
|
|
30
|
+
* @returns The UIClassMap.
|
|
31
|
+
*/
|
|
32
|
+
cm() {
|
|
33
|
+
return getClassMap();
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Computes the separator class list.
|
|
37
|
+
* @returns The class string.
|
|
38
|
+
*/
|
|
39
|
+
classes() {
|
|
40
|
+
return this.cm().cn(this.cm().separator({ orientation: this.orientation }), this.className);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Serializes the inline style.
|
|
44
|
+
* @returns The style attribute text.
|
|
45
|
+
*/
|
|
46
|
+
hostStyle() {
|
|
47
|
+
return styleText(this.style);
|
|
48
|
+
}
|
|
49
|
+
static ɵfac = function Separator_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Separator)(); };
|
|
50
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Separator, selectors: [["div", "mol-separator", ""]], hostVars: 7, hostBindings: function Separator_HostBindings(rf, ctx) { if (rf & 2) {
|
|
51
|
+
i0.ɵɵattribute("role", ctx.decorative ? "none" : "separator")("aria-orientation", ctx.decorative ? null : ctx.orientation)("data-testid", ctx.testId);
|
|
52
|
+
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
53
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
54
|
+
} }, inputs: { orientation: "orientation", decorative: "decorative", className: "className", style: "style", testId: "testId" }, decls: 0, vars: 0, template: function Separator_Template(rf, ctx) { }, encapsulation: 2 });
|
|
55
|
+
}
|
|
56
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Separator, [{
|
|
57
|
+
type: Component,
|
|
58
|
+
args: [{
|
|
59
|
+
selector: 'div[mol-separator]',
|
|
60
|
+
standalone: true,
|
|
61
|
+
inputs: ['orientation', 'decorative', 'className', 'style', 'testId'],
|
|
62
|
+
host: {
|
|
63
|
+
'[attr.role]': 'decorative ? "none" : "separator"',
|
|
64
|
+
'[attr.aria-orientation]': 'decorative ? null : orientation',
|
|
65
|
+
'[class]': 'classes()',
|
|
66
|
+
'[style]': 'hostStyle()',
|
|
67
|
+
'[attr.data-testid]': 'testId',
|
|
68
|
+
},
|
|
69
|
+
template: '',
|
|
70
|
+
}]
|
|
71
|
+
}], null, null); })();
|
|
72
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Separator, { className: "Separator", filePath: "components/separator.component.ts", lineNumber: 34 }); })();
|
|
73
|
+
//# sourceMappingURL=separator.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.component.js","sourceRoot":"","sources":["../../src/components/separator.component.ts"],"names":[],"mappings":"AAAA;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,QAAQ,EAAE,EAAE;aACb;;kFACY,SAAS"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SidebarUserCard component (React parity): a sidebar-resident account
|
|
3
|
+
* trigger that opens the settings drawer.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import { type AfterViewInit, ElementRef, type OnDestroy } from '@angular/core';
|
|
8
|
+
import type { UIClassMap } from '@molecule/app-ui';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/** The auth user shape this component reads. */
|
|
11
|
+
interface AccountUserShape {
|
|
12
|
+
/** Display name. */
|
|
13
|
+
name?: string | null;
|
|
14
|
+
/** Fallback when no name is supplied. */
|
|
15
|
+
email?: string | null;
|
|
16
|
+
/** Optional avatar image URL. */
|
|
17
|
+
avatarUrl?: string | null;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* SidebarUserCard component.
|
|
21
|
+
*
|
|
22
|
+
* React's root is a FRAGMENT (the trigger button plus a drawer), so the host
|
|
23
|
+
* is unwrapped (`data-parity-unwrap`, `display: contents`) and the trigger
|
|
24
|
+
* button is adopted beside it. Identity comes from `useAuth()` unless the
|
|
25
|
+
* matching props override it.
|
|
26
|
+
*/
|
|
27
|
+
export declare class SidebarUserCard implements AfterViewInit, OnDestroy {
|
|
28
|
+
/** Display name override (falls back to the auth user, then the guest label). */
|
|
29
|
+
name?: string;
|
|
30
|
+
/** Secondary line under the name (falls back to the auth user's email). */
|
|
31
|
+
secondaryLine?: string;
|
|
32
|
+
/** Avatar image URL override. */
|
|
33
|
+
avatarUrl?: string;
|
|
34
|
+
/** i18n key for the trigger's aria-label (default `sidebarUserCard.open`). */
|
|
35
|
+
ariaLabelKey?: string;
|
|
36
|
+
/** Fallback aria-label (default `Open account menu`). */
|
|
37
|
+
ariaLabelDefault?: string;
|
|
38
|
+
/** `data-mol-id` for the trigger (default `sidebar-user-card`). */
|
|
39
|
+
dataMolId: string;
|
|
40
|
+
/** Extra classes for the trigger. */
|
|
41
|
+
className?: string;
|
|
42
|
+
/** Whether the drawer is open. */
|
|
43
|
+
readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
44
|
+
/** Auth state (identity defaults). */
|
|
45
|
+
readonly auth: import("@molecule/app-angular").UseAuthResult<AccountUserShape, Record<never, never>>;
|
|
46
|
+
/** Router state: a route change closes the drawer. */
|
|
47
|
+
readonly router: import("@molecule/app-angular").UseRouterResult;
|
|
48
|
+
/**
|
|
49
|
+
* Reactive translation, read in the injection context. Its `t` reads the
|
|
50
|
+
* locale, so the view re-renders the text on a locale switch (the static `t`
|
|
51
|
+
* does not).
|
|
52
|
+
*/
|
|
53
|
+
private readonly i18n;
|
|
54
|
+
/** The trigger button (adopted beside the host). */
|
|
55
|
+
trigger?: ElementRef<HTMLButtonElement>;
|
|
56
|
+
private readonly host;
|
|
57
|
+
private adopted;
|
|
58
|
+
private movedRest;
|
|
59
|
+
private readonly routeEffect;
|
|
60
|
+
/**
|
|
61
|
+
* The current class map.
|
|
62
|
+
* @returns The UIClassMap.
|
|
63
|
+
*/
|
|
64
|
+
cm(): UIClassMap;
|
|
65
|
+
/** The trigger's accessible label. */
|
|
66
|
+
ariaLabel(): string;
|
|
67
|
+
/**
|
|
68
|
+
* The resolved display name (React's fallback chain).
|
|
69
|
+
* @returns The name.
|
|
70
|
+
*/
|
|
71
|
+
displayName(): string;
|
|
72
|
+
/**
|
|
73
|
+
* The resolved secondary line (prop override, else the auth email).
|
|
74
|
+
* @returns The line, or undefined.
|
|
75
|
+
*/
|
|
76
|
+
displaySecondary(): string | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* The resolved avatar URL (prop override, else the auth user's).
|
|
79
|
+
* @returns The URL, or undefined.
|
|
80
|
+
*/
|
|
81
|
+
displayAvatar(): string | undefined;
|
|
82
|
+
/** The name/email initials. */
|
|
83
|
+
initials(): string;
|
|
84
|
+
/** The trigger's class list. */
|
|
85
|
+
triggerClasses(): string;
|
|
86
|
+
/** The avatar image class list. */
|
|
87
|
+
avatarClasses(): string;
|
|
88
|
+
/** The initials badge class list. */
|
|
89
|
+
initialsClasses(): string;
|
|
90
|
+
/** The initials badge's inline style. */
|
|
91
|
+
initialsStyle(): string | null;
|
|
92
|
+
/** The display-name class list. */
|
|
93
|
+
nameClasses(): string;
|
|
94
|
+
/** The secondary-line class list. */
|
|
95
|
+
secondaryClasses(): string;
|
|
96
|
+
/** Closes the drawer (the panel-close context's callback). */
|
|
97
|
+
closePanel: () => void;
|
|
98
|
+
/** Adopts the trigger beside the host and moves rest props onto it. */
|
|
99
|
+
ngAfterViewInit(): void;
|
|
100
|
+
/** Restores the adopted trigger (unmount). */
|
|
101
|
+
ngOnDestroy(): void;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarUserCard, never>;
|
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarUserCard, "mol-sidebar-user-card", never, { "name": { "alias": "name"; "required": false; }; "secondaryLine": { "alias": "secondaryLine"; "required": false; }; "avatarUrl": { "alias": "avatarUrl"; "required": false; }; "ariaLabelKey": { "alias": "ariaLabelKey"; "required": false; }; "ariaLabelDefault": { "alias": "ariaLabelDefault"; "required": false; }; "dataMolId": { "alias": "dataMolId"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
104
|
+
}
|
|
105
|
+
export {};
|
|
106
|
+
//# sourceMappingURL=sidebar-user-card.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-user-card.component.d.ts","sourceRoot":"","sources":["../../src/components/sidebar-user-card.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,aAAa,EAGlB,UAAU,EAEV,KAAK,SAAS,EAGf,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AASlD,gDAAgD;AAChD,UAAU,gBA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AI,MAAM,GAAG,SAAS;IAInC,+BAA+B;IAC/B,QAAQ,IAAI,MAAM;IAIlB,gCAAgC;IAChC,cAAc,IAAI,MAAM;IAUxB,mCAAmC;IACnC,aAAa,IAAI,MAAM;IAUvB,qCAAqC;IACrC,eAAe,IAAI,MAAM;IAYzB,yCAAyC;IACzC,aAAa,IAAI,MAAM,GAAG,IAAI;IAO9B,mCAAmC;IACnC,WAAW,IAAI,MAAM;IASrB,qCAAqC;IACrC,gBAAgB,IAAI,MAAM;IAS1B,8DAA8D;IAC9D,UAAU,QAAO,IAAI,CAEpB;IAED,uEAAuE;IACvE,eAAe,IAAI,IAAI;IAcvB,8CAA8C;IAC9C,WAAW,IAAI,IAAI;yCAnLR,eAAe;2CAAf,eAAe;CAsL3B"}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SidebarUserCard component (React parity): a sidebar-resident account
|
|
3
|
+
* trigger that opens the settings drawer.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import { Component, effect, ElementRef, inject, signal, ViewChild, } from '@angular/core';
|
|
8
|
+
import { useAuth, useRouter, useTranslation } from '@molecule/app-angular';
|
|
9
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
10
|
+
import { getInitials } from '../utilities/initials.js';
|
|
11
|
+
import { moveRestAttributes } from '../utilities/rest-attrs.js';
|
|
12
|
+
import { styleText } from '../utilities/style.js';
|
|
13
|
+
import { Modal } from './modal.component.js';
|
|
14
|
+
import { PanelCloseProvider } from './panel-close.component.js';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
const _c0 = ["trigger"];
|
|
17
|
+
const _c1 = ["*"];
|
|
18
|
+
function SidebarUserCard_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
+
i0.ɵɵelement(0, "img", 7);
|
|
20
|
+
} if (rf & 2) {
|
|
21
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
22
|
+
i0.ɵɵclassMap(ctx_r0.avatarClasses());
|
|
23
|
+
i0.ɵɵproperty("src", ctx);
|
|
24
|
+
} }
|
|
25
|
+
function SidebarUserCard_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
26
|
+
i0.ɵɵelementStart(0, "span", 8);
|
|
27
|
+
i0.ɵɵtext(1);
|
|
28
|
+
i0.ɵɵelementEnd();
|
|
29
|
+
} if (rf & 2) {
|
|
30
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
31
|
+
i0.ɵɵstyleMap(ctx_r0.initialsStyle());
|
|
32
|
+
i0.ɵɵclassMap(ctx_r0.initialsClasses());
|
|
33
|
+
i0.ɵɵadvance();
|
|
34
|
+
i0.ɵɵtextInterpolate(ctx_r0.initials());
|
|
35
|
+
} }
|
|
36
|
+
function SidebarUserCard_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
37
|
+
i0.ɵɵelementStart(0, "span");
|
|
38
|
+
i0.ɵɵtext(1);
|
|
39
|
+
i0.ɵɵelementEnd();
|
|
40
|
+
} if (rf & 2) {
|
|
41
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
42
|
+
i0.ɵɵclassMap(ctx_r0.secondaryClasses());
|
|
43
|
+
i0.ɵɵadvance();
|
|
44
|
+
i0.ɵɵtextInterpolate(ctx);
|
|
45
|
+
} }
|
|
46
|
+
/**
|
|
47
|
+
* SidebarUserCard component.
|
|
48
|
+
*
|
|
49
|
+
* React's root is a FRAGMENT (the trigger button plus a drawer), so the host
|
|
50
|
+
* is unwrapped (`data-parity-unwrap`, `display: contents`) and the trigger
|
|
51
|
+
* button is adopted beside it. Identity comes from `useAuth()` unless the
|
|
52
|
+
* matching props override it.
|
|
53
|
+
*/
|
|
54
|
+
export class SidebarUserCard {
|
|
55
|
+
/** Display name override (falls back to the auth user, then the guest label). */
|
|
56
|
+
name;
|
|
57
|
+
/** Secondary line under the name (falls back to the auth user's email). */
|
|
58
|
+
secondaryLine;
|
|
59
|
+
/** Avatar image URL override. */
|
|
60
|
+
avatarUrl;
|
|
61
|
+
/** i18n key for the trigger's aria-label (default `sidebarUserCard.open`). */
|
|
62
|
+
ariaLabelKey;
|
|
63
|
+
/** Fallback aria-label (default `Open account menu`). */
|
|
64
|
+
ariaLabelDefault;
|
|
65
|
+
/** `data-mol-id` for the trigger (default `sidebar-user-card`). */
|
|
66
|
+
dataMolId = 'sidebar-user-card';
|
|
67
|
+
/** Extra classes for the trigger. */
|
|
68
|
+
className;
|
|
69
|
+
/** Whether the drawer is open. */
|
|
70
|
+
isOpen = signal(false, /* @ts-ignore */
|
|
71
|
+
...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
72
|
+
/** Auth state (identity defaults). */
|
|
73
|
+
auth = useAuth();
|
|
74
|
+
/** Router state: a route change closes the drawer. */
|
|
75
|
+
router = useRouter();
|
|
76
|
+
/**
|
|
77
|
+
* Reactive translation, read in the injection context. Its `t` reads the
|
|
78
|
+
* locale, so the view re-renders the text on a locale switch (the static `t`
|
|
79
|
+
* does not).
|
|
80
|
+
*/
|
|
81
|
+
i18n = useTranslation();
|
|
82
|
+
/** The trigger button (adopted beside the host). */
|
|
83
|
+
trigger;
|
|
84
|
+
host = inject(ElementRef);
|
|
85
|
+
adopted = false;
|
|
86
|
+
movedRest = false;
|
|
87
|
+
routeEffect = effect(() => {
|
|
88
|
+
const location = this.router.location();
|
|
89
|
+
void `${location.pathname}${location.search}`;
|
|
90
|
+
this.isOpen.set(false);
|
|
91
|
+
}, /* @ts-ignore */
|
|
92
|
+
...(ngDevMode ? [{ debugName: "routeEffect" }] : /* istanbul ignore next */ []));
|
|
93
|
+
/**
|
|
94
|
+
* The current class map.
|
|
95
|
+
* @returns The UIClassMap.
|
|
96
|
+
*/
|
|
97
|
+
cm() {
|
|
98
|
+
return getClassMap();
|
|
99
|
+
}
|
|
100
|
+
/** The trigger's accessible label. */
|
|
101
|
+
ariaLabel() {
|
|
102
|
+
return this.i18n.t(this.ariaLabelKey ?? 'sidebarUserCard.open', {}, {
|
|
103
|
+
defaultValue: this.ariaLabelDefault ?? 'Open account menu',
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The resolved display name (React's fallback chain).
|
|
108
|
+
* @returns The name.
|
|
109
|
+
*/
|
|
110
|
+
displayName() {
|
|
111
|
+
return (this.name ??
|
|
112
|
+
this.auth.user()?.name ??
|
|
113
|
+
this.auth.user()?.email ??
|
|
114
|
+
this.i18n.t('sidebarUserCard.guest', {}, { defaultValue: 'Guest' }));
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The resolved secondary line (prop override, else the auth email).
|
|
118
|
+
* @returns The line, or undefined.
|
|
119
|
+
*/
|
|
120
|
+
displaySecondary() {
|
|
121
|
+
return this.secondaryLine ?? this.auth.user()?.email ?? undefined;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The resolved avatar URL (prop override, else the auth user's).
|
|
125
|
+
* @returns The URL, or undefined.
|
|
126
|
+
*/
|
|
127
|
+
displayAvatar() {
|
|
128
|
+
return this.avatarUrl ?? this.auth.user()?.avatarUrl ?? undefined;
|
|
129
|
+
}
|
|
130
|
+
/** The name/email initials. */
|
|
131
|
+
initials() {
|
|
132
|
+
return getInitials(this.displayName());
|
|
133
|
+
}
|
|
134
|
+
/** The trigger's class list. */
|
|
135
|
+
triggerClasses() {
|
|
136
|
+
return this.cm().cn(this.cm().flex({ align: 'center', gap: 'sm' }), this.cm().sp('px', 3), this.cm().sp('py', 3), this.cm().sidebarUserCardTrigger, this.className);
|
|
137
|
+
}
|
|
138
|
+
/** The avatar image class list. */
|
|
139
|
+
avatarClasses() {
|
|
140
|
+
return this.cm().cn(this.cm().w(10), this.cm().h(10), this.cm().roundedFull, this.cm().shrink0, this.cm().objectCover);
|
|
141
|
+
}
|
|
142
|
+
/** The initials badge class list. */
|
|
143
|
+
initialsClasses() {
|
|
144
|
+
return this.cm().cn(this.cm().w(10), this.cm().h(10), this.cm().roundedFull, this.cm().flex({ align: 'center', justify: 'center' }), this.cm().textSize('sm'), this.cm().fontWeight('bold'), this.cm().shrink0);
|
|
145
|
+
}
|
|
146
|
+
/** The initials badge's inline style. */
|
|
147
|
+
initialsStyle() {
|
|
148
|
+
return styleText({
|
|
149
|
+
backgroundColor: 'var(--color-primary)',
|
|
150
|
+
color: 'var(--color-on-primary, #ffffff)',
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/** The display-name class list. */
|
|
154
|
+
nameClasses() {
|
|
155
|
+
return this.cm().cn(this.cm().textSize('sm'), this.cm().fontWeight('semibold'), this.cm().displayBlock, this.cm().textTruncate);
|
|
156
|
+
}
|
|
157
|
+
/** The secondary-line class list. */
|
|
158
|
+
secondaryClasses() {
|
|
159
|
+
return this.cm().cn(this.cm().textSize('xs'), this.cm().displayBlock, this.cm().textTruncate, this.cm().textMuted);
|
|
160
|
+
}
|
|
161
|
+
/** Closes the drawer (the panel-close context's callback). */
|
|
162
|
+
closePanel = () => {
|
|
163
|
+
this.isOpen.set(false);
|
|
164
|
+
};
|
|
165
|
+
/** Adopts the trigger beside the host and moves rest props onto it. */
|
|
166
|
+
ngAfterViewInit() {
|
|
167
|
+
const trigger = this.trigger?.nativeElement;
|
|
168
|
+
const host = this.host.nativeElement;
|
|
169
|
+
if (!trigger)
|
|
170
|
+
return;
|
|
171
|
+
if (host.parentNode) {
|
|
172
|
+
host.parentNode.insertBefore(trigger, host);
|
|
173
|
+
this.adopted = true;
|
|
174
|
+
}
|
|
175
|
+
if (!this.movedRest) {
|
|
176
|
+
moveRestAttributes(host, trigger);
|
|
177
|
+
this.movedRest = true;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/** Restores the adopted trigger (unmount). */
|
|
181
|
+
ngOnDestroy() {
|
|
182
|
+
if (this.adopted)
|
|
183
|
+
this.host.nativeElement.appendChild(this.trigger?.nativeElement);
|
|
184
|
+
}
|
|
185
|
+
static ɵfac = function SidebarUserCard_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SidebarUserCard)(); };
|
|
186
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SidebarUserCard, selectors: [["mol-sidebar-user-card"]], viewQuery: function SidebarUserCard_Query(rf, ctx) { if (rf & 1) {
|
|
187
|
+
i0.ɵɵviewQuery(_c0, 5);
|
|
188
|
+
} if (rf & 2) {
|
|
189
|
+
let _t;
|
|
190
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.trigger = _t.first);
|
|
191
|
+
} }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { name: "name", secondaryLine: "secondaryLine", avatarUrl: "avatarUrl", ariaLabelKey: "ariaLabelKey", ariaLabelDefault: "ariaLabelDefault", dataMolId: "dataMolId", className: "className" }, ngContentSelectors: _c1, decls: 11, vars: 14, consts: [["trigger", ""], ["type", "button", 3, "click"], ["alt", "", 3, "src", "class"], ["aria-hidden", "true", 3, "class", "style"], [3, "class"], [3, "close", "open", "className"], [3, "close"], ["alt", "", 3, "src"], ["aria-hidden", "true"]], template: function SidebarUserCard_Template(rf, ctx) { if (rf & 1) {
|
|
192
|
+
i0.ɵɵprojectionDef();
|
|
193
|
+
i0.ɵɵelementStart(0, "button", 1, 0);
|
|
194
|
+
i0.ɵɵlistener("click", function SidebarUserCard_Template_button_click_0_listener() { return ctx.isOpen.set(true); });
|
|
195
|
+
i0.ɵɵconditionalCreate(2, SidebarUserCard_Conditional_2_Template, 1, 3, "img", 2)(3, SidebarUserCard_Conditional_3_Template, 2, 5, "span", 3);
|
|
196
|
+
i0.ɵɵelementStart(4, "span")(5, "span");
|
|
197
|
+
i0.ɵɵtext(6);
|
|
198
|
+
i0.ɵɵelementEnd();
|
|
199
|
+
i0.ɵɵconditionalCreate(7, SidebarUserCard_Conditional_7_Template, 2, 3, "span", 4);
|
|
200
|
+
i0.ɵɵelementEnd()();
|
|
201
|
+
i0.ɵɵelementStart(8, "mol-modal", 5);
|
|
202
|
+
i0.ɵɵlistener("close", function SidebarUserCard_Template_mol_modal_close_8_listener() { return ctx.isOpen.set(false); });
|
|
203
|
+
i0.ɵɵelementStart(9, "mol-panel-close-provider", 6);
|
|
204
|
+
i0.ɵɵprojection(10);
|
|
205
|
+
i0.ɵɵelementEnd()();
|
|
206
|
+
} if (rf & 2) {
|
|
207
|
+
let tmp_4_0;
|
|
208
|
+
let tmp_8_0;
|
|
209
|
+
i0.ɵɵclassMap(ctx.triggerClasses());
|
|
210
|
+
i0.ɵɵattribute("aria-label", ctx.ariaLabel())("data-mol-id", ctx.dataMolId);
|
|
211
|
+
i0.ɵɵadvance(2);
|
|
212
|
+
i0.ɵɵconditional((tmp_4_0 = ctx.displayAvatar()) ? 2 : 3, tmp_4_0);
|
|
213
|
+
i0.ɵɵadvance(2);
|
|
214
|
+
i0.ɵɵclassMap(ctx.cm().cn(ctx.cm().minW(0), ctx.cm().flex1));
|
|
215
|
+
i0.ɵɵadvance();
|
|
216
|
+
i0.ɵɵclassMap(ctx.nameClasses());
|
|
217
|
+
i0.ɵɵadvance();
|
|
218
|
+
i0.ɵɵtextInterpolate(ctx.displayName());
|
|
219
|
+
i0.ɵɵadvance();
|
|
220
|
+
i0.ɵɵconditional((tmp_8_0 = ctx.displaySecondary()) ? 7 : -1, tmp_8_0);
|
|
221
|
+
i0.ɵɵadvance();
|
|
222
|
+
i0.ɵɵproperty("open", ctx.isOpen())("className", ctx.cm().drawer);
|
|
223
|
+
i0.ɵɵadvance();
|
|
224
|
+
i0.ɵɵproperty("close", ctx.closePanel);
|
|
225
|
+
} }, dependencies: [Modal, PanelCloseProvider], encapsulation: 2 });
|
|
226
|
+
}
|
|
227
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidebarUserCard, [{
|
|
228
|
+
type: Component,
|
|
229
|
+
args: [{
|
|
230
|
+
selector: 'mol-sidebar-user-card',
|
|
231
|
+
standalone: true,
|
|
232
|
+
imports: [Modal, PanelCloseProvider],
|
|
233
|
+
inputs: [
|
|
234
|
+
'name',
|
|
235
|
+
'secondaryLine',
|
|
236
|
+
'avatarUrl',
|
|
237
|
+
'ariaLabelKey',
|
|
238
|
+
'ariaLabelDefault',
|
|
239
|
+
'dataMolId',
|
|
240
|
+
'className',
|
|
241
|
+
],
|
|
242
|
+
host: {
|
|
243
|
+
'data-parity-unwrap': '',
|
|
244
|
+
style: 'display: contents',
|
|
245
|
+
},
|
|
246
|
+
template: `<button
|
|
247
|
+
#trigger
|
|
248
|
+
type="button"
|
|
249
|
+
(click)="isOpen.set(true)"
|
|
250
|
+
[attr.aria-label]="ariaLabel()"
|
|
251
|
+
[attr.data-mol-id]="dataMolId"
|
|
252
|
+
[class]="triggerClasses()"
|
|
253
|
+
>
|
|
254
|
+
@if (displayAvatar(); as avatar) {
|
|
255
|
+
<img [src]="avatar" alt="" [class]="avatarClasses()" />
|
|
256
|
+
} @else {
|
|
257
|
+
<span aria-hidden="true" [class]="initialsClasses()" [style]="initialsStyle()">{{
|
|
258
|
+
initials()
|
|
259
|
+
}}</span>
|
|
260
|
+
}
|
|
261
|
+
<span [class]="cm().cn(cm().minW(0), cm().flex1)"
|
|
262
|
+
><span [class]="nameClasses()">{{ displayName() }}</span>
|
|
263
|
+
@if (displaySecondary(); as secondary) {
|
|
264
|
+
<span [class]="secondaryClasses()">{{ secondary }}</span>
|
|
265
|
+
}
|
|
266
|
+
</span></button
|
|
267
|
+
><mol-modal [open]="isOpen()" (close)="isOpen.set(false)" [className]="cm().drawer"
|
|
268
|
+
><mol-panel-close-provider [close]="closePanel"
|
|
269
|
+
><ng-content></ng-content></mol-panel-close-provider
|
|
270
|
+
></mol-modal>`,
|
|
271
|
+
}]
|
|
272
|
+
}], null, { trigger: [{
|
|
273
|
+
type: ViewChild,
|
|
274
|
+
args: ['trigger']
|
|
275
|
+
}] }); })();
|
|
276
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SidebarUserCard, { className: "SidebarUserCard", filePath: "components/sidebar-user-card.component.ts", lineNumber: 90 }); })();
|
|
277
|
+
//# sourceMappingURL=sidebar-user-card.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-user-card.component.js","sourceRoot":"","sources":["../../src/components/sidebar-user-card.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,SAAS,EACT,MAAM,EACN,UAAU,EACV,MAAM,EAEN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;;;;;IA8CvD,yBAAuD;;;IAA5B,qCAAyB;IAA/C,yBAAc;;;IAEnB,+BAA+E;IAAA,YAE7E;IAAA,iBAAO;;;IAF4C,qCAAyB;IAArD,uCAA2B;IAA2B,cAE7E;IAF6E,uCAE7E;;;IAKA,4BAAmC;IAAA,YAAe;IAAA,iBAAO;;;IAAnD,wCAA4B;IAAC,cAAe;IAAf,yBAAe;;AA3C5D;;;;;;;GAOG;AA4CH,MAAM,OAAO,eAAe;IAC1B,iFAAiF;IACjF,IAAI,CAAS;IACb,2EAA2E;IAC3E,aAAa,CAAS;IACtB,iCAAiC;IACjC,SAAS,CAAS;IAClB,8EAA8E;IAC9E,YAAY,CAAS;IACrB,yDAAyD;IACzD,gBAAgB,CAAS;IACzB,mEAAmE;IACnE,SAAS,GAAG,mBAAmB,CA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