@wirabyte/ui 3.0.0-beta.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/README.md +6 -6
- package/fesm2022/wirabyte-ui-accordion.mjs +4 -4
- package/fesm2022/wirabyte-ui-accordion.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-alert.mjs +2 -2
- package/fesm2022/wirabyte-ui-alert.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-asidemenu.mjs +2 -2
- package/fesm2022/wirabyte-ui-asidemenu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-avatar.mjs +13 -6
- package/fesm2022/wirabyte-ui-avatar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-breadcrumb.mjs +4 -2
- package/fesm2022/wirabyte-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-button.mjs +3 -3
- package/fesm2022/wirabyte-ui-button.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-card.mjs +8 -8
- package/fesm2022/wirabyte-ui-card.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-chat.mjs +391 -0
- package/fesm2022/wirabyte-ui-chat.mjs.map +1 -0
- package/fesm2022/wirabyte-ui-config.mjs +55 -2
- package/fesm2022/wirabyte-ui-config.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-core.mjs +155 -2
- package/fesm2022/wirabyte-ui-core.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-datepicker.mjs +6 -5
- package/fesm2022/wirabyte-ui-datepicker.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-descriptions.mjs +133 -0
- package/fesm2022/wirabyte-ui-descriptions.mjs.map +1 -0
- package/fesm2022/wirabyte-ui-dialog.mjs +2 -2
- package/fesm2022/wirabyte-ui-dialog.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-drawer.mjs +2 -2
- package/fesm2022/wirabyte-ui-drawer.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-emptystate.mjs +2 -2
- package/fesm2022/wirabyte-ui-emptystate.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-errorpage.mjs +2 -2
- package/fesm2022/wirabyte-ui-errorpage.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-fieldset.mjs +4 -4
- package/fesm2022/wirabyte-ui-fieldset.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-metergroup.mjs +19 -5
- package/fesm2022/wirabyte-ui-metergroup.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-navbar.mjs +2 -2
- package/fesm2022/wirabyte-ui-navbar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-panel.mjs +6 -6
- package/fesm2022/wirabyte-ui-panel.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-popover.mjs +2 -2
- package/fesm2022/wirabyte-ui-popover.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-result.mjs +2 -2
- package/fesm2022/wirabyte-ui-result.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-scheduler.mjs +505 -0
- package/fesm2022/wirabyte-ui-scheduler.mjs.map +1 -0
- package/fesm2022/wirabyte-ui-selectbutton.mjs +25 -4
- package/fesm2022/wirabyte-ui-selectbutton.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-signaturepad.mjs +310 -0
- package/fesm2022/wirabyte-ui-signaturepad.mjs.map +1 -0
- package/fesm2022/wirabyte-ui-sitefooter.mjs +1 -1
- package/fesm2022/wirabyte-ui-sitefooter.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-stat.mjs +149 -0
- package/fesm2022/wirabyte-ui-stat.mjs.map +1 -0
- package/fesm2022/wirabyte-ui-table.mjs +3 -3
- package/fesm2022/wirabyte-ui-table.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-tabs.mjs +3 -3
- package/fesm2022/wirabyte-ui-tabs.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-tag.mjs +2 -2
- package/fesm2022/wirabyte-ui-tag.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-textarea.mjs +32 -0
- package/fesm2022/wirabyte-ui-textarea.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-thai.mjs +2 -2
- package/fesm2022/wirabyte-ui-thai.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-toolbar.mjs +6 -6
- package/fesm2022/wirabyte-ui-toolbar.mjs.map +1 -1
- package/package.json +21 -1
- package/schematics/core/catalog.cjs +22 -1
- package/schematics/core/families.cjs +42 -0
- package/schematics/core/overrides.cjs +25 -0
- package/schematics/core/thai/locale.cjs +66 -0
- package/schematics/ng-add/index.cjs +3 -1
- package/theme/_data.scss +239 -7
- package/theme/_index.scss +29 -0
- package/themes/glass/amber.css +36 -7
- package/themes/glass/blue.css +36 -7
- package/themes/glass/cyan.css +36 -7
- package/themes/glass/emerald.css +36 -7
- package/themes/glass/fuchsia.css +36 -7
- package/themes/glass/green.css +36 -7
- package/themes/glass/indigo.css +36 -7
- package/themes/glass/lime.css +36 -7
- package/themes/glass/orange.css +36 -7
- package/themes/glass/pink.css +36 -7
- package/themes/glass/purple.css +36 -7
- package/themes/glass/red.css +36 -7
- package/themes/glass/rose.css +36 -7
- package/themes/glass/sky.css +36 -7
- package/themes/glass/teal.css +36 -7
- package/themes/glass/theme.css +36 -7
- package/themes/glass/violet.css +36 -7
- package/themes/glass/wira.css +36 -7
- package/themes/glass/yellow.css +36 -7
- package/themes/lanna/amber.css +36 -7
- package/themes/lanna/blue.css +36 -7
- package/themes/lanna/cyan.css +36 -7
- package/themes/lanna/emerald.css +36 -7
- package/themes/lanna/fuchsia.css +36 -7
- package/themes/lanna/green.css +36 -7
- package/themes/lanna/indigo.css +36 -7
- package/themes/lanna/lime.css +36 -7
- package/themes/lanna/orange.css +36 -7
- package/themes/lanna/pink.css +36 -7
- package/themes/lanna/purple.css +36 -7
- package/themes/lanna/red.css +36 -7
- package/themes/lanna/rose.css +36 -7
- package/themes/lanna/sky.css +36 -7
- package/themes/lanna/teal.css +36 -7
- package/themes/lanna/theme.css +36 -7
- package/themes/lanna/violet.css +36 -7
- package/themes/lanna/wira.css +36 -7
- package/themes/lanna/yellow.css +36 -7
- package/themes/mali/amber.css +30 -1
- package/themes/mali/blue.css +30 -1
- package/themes/mali/cyan.css +30 -1
- package/themes/mali/emerald.css +30 -1
- package/themes/mali/fuchsia.css +30 -1
- package/themes/mali/green.css +30 -1
- package/themes/mali/indigo.css +30 -1
- package/themes/mali/lime.css +30 -1
- package/themes/mali/orange.css +30 -1
- package/themes/mali/pink.css +30 -1
- package/themes/mali/purple.css +30 -1
- package/themes/mali/red.css +30 -1
- package/themes/mali/rose.css +30 -1
- package/themes/mali/sky.css +30 -1
- package/themes/mali/teal.css +30 -1
- package/themes/mali/theme.css +30 -1
- package/themes/mali/violet.css +30 -1
- package/themes/mali/wira.css +30 -1
- package/themes/mali/yellow.css +30 -1
- package/themes/material/amber.css +30 -1
- package/themes/material/blue.css +30 -1
- package/themes/material/cyan.css +30 -1
- package/themes/material/emerald.css +30 -1
- package/themes/material/fuchsia.css +30 -1
- package/themes/material/green.css +30 -1
- package/themes/material/indigo.css +30 -1
- package/themes/material/lime.css +30 -1
- package/themes/material/orange.css +30 -1
- package/themes/material/pink.css +30 -1
- package/themes/material/purple.css +30 -1
- package/themes/material/red.css +30 -1
- package/themes/material/rose.css +30 -1
- package/themes/material/sky.css +30 -1
- package/themes/material/teal.css +30 -1
- package/themes/material/theme.css +30 -1
- package/themes/material/violet.css +30 -1
- package/themes/material/wira.css +30 -1
- package/themes/material/yellow.css +30 -1
- package/themes/nakhon/amber.css +36 -7
- package/themes/nakhon/blue.css +36 -7
- package/themes/nakhon/cyan.css +36 -7
- package/themes/nakhon/emerald.css +36 -7
- package/themes/nakhon/fuchsia.css +36 -7
- package/themes/nakhon/green.css +36 -7
- package/themes/nakhon/indigo.css +36 -7
- package/themes/nakhon/lime.css +36 -7
- package/themes/nakhon/orange.css +36 -7
- package/themes/nakhon/pink.css +36 -7
- package/themes/nakhon/purple.css +36 -7
- package/themes/nakhon/red.css +36 -7
- package/themes/nakhon/rose.css +36 -7
- package/themes/nakhon/sky.css +36 -7
- package/themes/nakhon/teal.css +36 -7
- package/themes/nakhon/theme.css +36 -7
- package/themes/nakhon/violet.css +36 -7
- package/themes/nakhon/wira.css +36 -7
- package/themes/nakhon/yellow.css +36 -7
- package/themes/phet/amber.css +30 -1
- package/themes/phet/blue.css +30 -1
- package/themes/phet/cyan.css +30 -1
- package/themes/phet/emerald.css +30 -1
- package/themes/phet/fuchsia.css +30 -1
- package/themes/phet/green.css +30 -1
- package/themes/phet/indigo.css +30 -1
- package/themes/phet/lime.css +30 -1
- package/themes/phet/orange.css +30 -1
- package/themes/phet/pink.css +30 -1
- package/themes/phet/purple.css +30 -1
- package/themes/phet/red.css +30 -1
- package/themes/phet/rose.css +30 -1
- package/themes/phet/sky.css +30 -1
- package/themes/phet/teal.css +30 -1
- package/themes/phet/theme.css +30 -1
- package/themes/phet/violet.css +30 -1
- package/themes/phet/wira.css +30 -1
- package/themes/phet/yellow.css +30 -1
- package/themes/siam/amber.css +36 -7
- package/themes/siam/blue.css +36 -7
- package/themes/siam/cyan.css +36 -7
- package/themes/siam/emerald.css +36 -7
- package/themes/siam/fuchsia.css +36 -7
- package/themes/siam/green.css +36 -7
- package/themes/siam/indigo.css +36 -7
- package/themes/siam/lime.css +36 -7
- package/themes/siam/orange.css +36 -7
- package/themes/siam/pink.css +36 -7
- package/themes/siam/purple.css +36 -7
- package/themes/siam/red.css +36 -7
- package/themes/siam/rose.css +36 -7
- package/themes/siam/sky.css +36 -7
- package/themes/siam/teal.css +36 -7
- package/themes/siam/theme.css +36 -7
- package/themes/siam/violet.css +36 -7
- package/themes/siam/wira.css +36 -7
- package/themes/siam/yellow.css +36 -7
- package/themes/sila/amber.css +30 -1
- package/themes/sila/blue.css +30 -1
- package/themes/sila/cyan.css +30 -1
- package/themes/sila/emerald.css +30 -1
- package/themes/sila/fuchsia.css +30 -1
- package/themes/sila/green.css +30 -1
- package/themes/sila/indigo.css +30 -1
- package/themes/sila/lime.css +30 -1
- package/themes/sila/orange.css +30 -1
- package/themes/sila/pink.css +30 -1
- package/themes/sila/purple.css +30 -1
- package/themes/sila/red.css +30 -1
- package/themes/sila/rose.css +30 -1
- package/themes/sila/sky.css +30 -1
- package/themes/sila/teal.css +30 -1
- package/themes/sila/theme.css +30 -1
- package/themes/sila/violet.css +30 -1
- package/themes/sila/wira.css +30 -1
- package/themes/sila/yellow.css +30 -1
- package/themes/wira/amber.css +45 -16
- package/themes/wira/blue.css +45 -16
- package/themes/wira/cyan.css +45 -16
- package/themes/wira/emerald.css +45 -16
- package/themes/wira/fuchsia.css +45 -16
- package/themes/wira/green.css +45 -16
- package/themes/wira/indigo.css +45 -16
- package/themes/wira/lime.css +45 -16
- package/themes/wira/orange.css +45 -16
- package/themes/wira/pink.css +45 -16
- package/themes/wira/purple.css +45 -16
- package/themes/wira/red.css +45 -16
- package/themes/wira/rose.css +45 -16
- package/themes/wira/sky.css +45 -16
- package/themes/wira/teal.css +45 -16
- package/themes/wira/theme.css +45 -16
- package/themes/wira/violet.css +45 -16
- package/themes/wira/wira.css +45 -16
- package/themes/wira/yellow.css +45 -16
- package/types/wirabyte-ui-avatar.d.ts +8 -3
- package/types/wirabyte-ui-breadcrumb.d.ts +3 -1
- package/types/wirabyte-ui-button.d.ts +1 -1
- package/types/wirabyte-ui-chat.d.ts +192 -0
- package/types/wirabyte-ui-config.d.ts +34 -0
- package/types/wirabyte-ui-core.d.ts +62 -3
- package/types/wirabyte-ui-datepicker.d.ts +3 -2
- package/types/wirabyte-ui-descriptions.d.ts +67 -0
- package/types/wirabyte-ui-metergroup.d.ts +17 -2
- package/types/wirabyte-ui-scheduler.d.ts +199 -0
- package/types/wirabyte-ui-selectbutton.d.ts +12 -1
- package/types/wirabyte-ui-signaturepad.d.ts +108 -0
- package/types/wirabyte-ui-stat.d.ts +72 -0
- package/types/wirabyte-ui-textarea.d.ts +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirabyte-ui-alert.mjs","sources":["../../lib/alert/alert-dialog.base.ts","../../lib/alert/alert-dialog.component.ts","../../lib/alert/alert-dialog.component.html","../../lib/alert/alert.module.ts","../../lib/alert/alert.service.ts","../../lib/alert/wirabyte-ui-alert.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { AfterViewChecked, ChangeDetectorRef, Directive, ElementRef, inject, OnDestroy, ViewChild } from '@angular/core';\nimport { ɵlockScroll, ɵuniqueId, WuConfig } from '@wirabyte/ui/config';\nimport { WuLocale } from '@wirabyte/ui/core';\nimport { WuAlertDismissReason, WuAlertIcon, WuAlertOptions, WuAlertResult } from './alert.types';\n\ntype Icon = 'success' | 'error' | 'warning' | 'info' | 'question';\nconst ICONS: Record<WuAlertIcon, Icon> = {\n success: 'success',\n error: 'error',\n danger: 'error',\n warning: 'warning',\n warn: 'warning',\n info: 'info',\n question: 'question',\n help: 'question',\n};\n\n/**\n * The popup behind `WuAlert.fire()`: one per app, created on first use and reused. Shared logic of the v1 and\n * v2/v3 templates. A native modal <dialog>, so it opens above everything, dialogs included.\n */\n@Directive()\nexport abstract class ɵWuAlertDialogBase implements AfterViewChecked, OnDestroy {\n @ViewChild('mask') maskRef?: ElementRef<HTMLDialogElement>;\n @ViewChild('popup') popupRef?: ElementRef<HTMLElement>;\n\n o: WuAlertOptions = {};\n rendered = false;\n leaving = false;\n loading = false;\n icon: Icon | null = null;\n /** What the input holds, as the result will carry it. */\n inputValue: unknown = '';\n validation: string | null = null;\n /** One entry, changed on every fire, so the icon animation plays again. */\n runs: number[] = [0];\n readonly titleId = ɵuniqueId('wu-alert-title');\n readonly textId = ɵuniqueId('wu-alert-text');\n\n private run = 0;\n private resolveFn: ((r: WuAlertResult) => void) | null = null;\n private pendingShow = false;\n private downOnMask = false;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n private timer: ReturnType<typeof setTimeout> | null = null;\n private unlockScroll: (() => void) | null = null;\n private returnFocus: HTMLElement | null = null;\n protected readonly cdr = inject(ChangeDetectorRef);\n private readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n\n get t(): WuLocale {\n return this.config.translation;\n }\n get confirmText(): string {\n return this.o.confirmButtonText ?? this.t.accept;\n }\n get cancelText(): string {\n return this.o.cancelButtonText ?? this.t.cancel;\n }\n get denyText(): string {\n return this.o.denyButtonText ?? this.t.no;\n }\n get showConfirm(): boolean {\n return this.o.showConfirmButton !== false;\n }\n /** The buttons in screen and Tab order: cancel, deny, confirm unless `reverseButtons: false`. */\n get actions(): ('confirm' | 'deny' | 'cancel')[] {\n const list: ('confirm' | 'deny' | 'cancel')[] = [];\n if (this.showConfirm) list.push('confirm');\n if (this.o.showDenyButton) list.push('deny');\n if (this.o.showCancelButton) list.push('cancel');\n return this.o.reverseButtons === false ? list : list.reverse();\n }\n get hasActions(): boolean {\n return !this.loading && (this.showConfirm || !!this.o.showCancelButton || !!this.o.showDenyButton);\n }\n get popupWidth(): string | null {\n const w = this.o.width;\n return w === undefined || w === null || w === '' ? null : typeof w === 'number' ? `${w}px` : w;\n }\n get options(): { value: string; label: string }[] {\n return Object.entries(this.o.inputOptions || {}).map(([value, label]) => ({ value, label }));\n }\n get isTextInput(): boolean {\n const i = this.o.input;\n return !!i && i !== 'textarea' && i !== 'select' && i !== 'radio' && i !== 'checkbox';\n }\n /** A class from `customClass` for one part (a plain string goes on the popup). */\n part(name: 'popup' | 'title' | 'htmlContainer' | 'confirmButton' | 'cancelButton' | 'denyButton'): string {\n const c = this.o.customClass;\n if (!c) return '';\n if (typeof c === 'string') return name === 'popup' ? c : '';\n return c[name] || '';\n }\n\n // ---------- called by WuAlertService ----------\n\n open(options: WuAlertOptions): Promise<WuAlertResult> {\n // A new alert replaces the one on screen, which resolves as dismissed.\n if (this.resolveFn) this.settle({ isConfirmed: false, isDenied: false, isDismissed: true, dismiss: 'close' }, false);\n this.clearTimers();\n if (!this.rendered || this.leaving) {\n if (!this.rendered) {\n const active = this.doc.activeElement as HTMLElement | null;\n this.returnFocus = active && active !== this.doc.body ? active : null;\n }\n this.leaving = false;\n }\n this.o = { ...options };\n this.icon = options.icon ? ICONS[options.icon] || null : null;\n this.inputValue = options.inputValue ?? (options.input === 'checkbox' ? false : '');\n this.validation = null;\n this.loading = false;\n this.runs = [++this.run];\n this.rendered = true;\n this.pendingShow = true;\n const promise = new Promise<WuAlertResult>((resolve) => (this.resolveFn = resolve));\n this.render();\n // Opened here, not only in ngAfterViewChecked: this popup lives outside the page's view tree, and in zoneless apps\n // nothing else checks it again.\n this.showIfPending();\n return promise;\n }\n\n /** Closes the alert on screen; it resolves as dismissed. */\n closeAlert(result?: Partial<WuAlertResult>): void {\n if (!this.resolveFn) return;\n this.settle({ isConfirmed: false, isDenied: false, isDismissed: true, ...result });\n }\n\n setLoading(on: boolean): void {\n this.loading = on;\n if (on) this.validation = null;\n this.render();\n }\n\n showValidation(message: string | null): void {\n this.validation = message;\n this.render();\n }\n\n get isOpen(): boolean {\n return this.rendered && !this.leaving;\n }\n\n // ---------- template events ----------\n\n async confirm(): Promise<void> {\n if (this.loading || !this.resolveFn) return;\n const run = this.run;\n let value: unknown = this.o.input ? this.readInput() : true;\n const field = this.field();\n if (field && 'checkValidity' in field && !field.checkValidity()) {\n this.showValidation(this.o.validationMessage || field.validationMessage);\n field.focus();\n return;\n }\n if (this.o.inputValidator) {\n const message = await this.o.inputValidator(value);\n if (run !== this.run) return;\n if (message) {\n this.showValidation(message);\n field?.focus();\n return;\n }\n }\n if (this.o.preConfirm) {\n this.setLoading(true);\n try {\n const r = await this.o.preConfirm(value);\n if (run !== this.run) return;\n if (r === false) {\n this.setLoading(false);\n return;\n }\n if (r !== undefined) value = r;\n } catch (e) {\n if (run !== this.run) return;\n this.loading = false;\n this.showValidation(e instanceof Error ? e.message : String(e));\n return;\n }\n }\n this.settle({ isConfirmed: true, isDenied: false, isDismissed: false, value });\n }\n\n deny(): void {\n if (this.loading) return;\n this.settle({ isConfirmed: false, isDenied: true, isDismissed: false, value: false });\n }\n\n dismiss(reason: WuAlertDismissReason): void {\n this.settle({ isConfirmed: false, isDenied: false, isDismissed: true, dismiss: reason });\n }\n\n typed(event: Event): void {\n const el = event.target as HTMLInputElement;\n this.inputValue = el.type === 'checkbox' ? el.checked : el.value;\n if (this.validation) this.showValidation(null);\n }\n\n keydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n // Ours to decide, so the browser does not close the <dialog> by itself.\n event.preventDefault();\n event.stopPropagation();\n if (this.o.allowEscapeKey !== false && !this.loading) this.dismiss('esc');\n } else if (event.key === 'Enter' && this.o.allowEnterKey !== false && !event.isComposing) {\n const t = event.target as HTMLElement;\n if (t.classList.contains('wu-alert-field') && t.tagName === 'INPUT') {\n event.preventDefault();\n this.confirm();\n }\n }\n }\n\n cancelEvent(event: Event): void {\n event.preventDefault();\n if (this.o.allowEscapeKey !== false && !this.loading) this.dismiss('esc');\n }\n\n maskPointerdown(event: PointerEvent): void {\n this.downOnMask = event.target === this.maskRef?.nativeElement;\n }\n\n maskClick(event: MouseEvent): void {\n const onMask = this.downOnMask && event.target === this.maskRef?.nativeElement;\n this.downOnMask = false;\n if (!onMask || this.loading) return;\n const allow = this.o.allowOutsideClick;\n if (allow === undefined || allow === true || (typeof allow === 'function' && allow())) this.dismiss('backdrop');\n }\n\n // ---------- lifecycle ----------\n\n ngAfterViewChecked(): void {\n this.showIfPending();\n }\n\n private showIfPending(): void {\n if (!this.pendingShow) return;\n const el = this.maskRef?.nativeElement;\n const popup = this.popupRef?.nativeElement;\n if (!el || !popup) return;\n this.pendingShow = false;\n if (!el.open) {\n try {\n el.showModal();\n } catch {\n el.setAttribute('open', '');\n }\n this.unlockScroll = this.unlockScroll || ɵlockScroll(this.doc);\n // Toasts on screen move back above this alert.\n this.doc.dispatchEvent(new CustomEvent('wu-modal-open'));\n }\n const field = this.field();\n if (field) for (const [k, v] of Object.entries(this.o.inputAttributes || {})) field.setAttribute(k, v);\n const focus =\n field ||\n popup.querySelector<HTMLElement>(this.o.focusCancel ? '.wu-alert-cancel' : '.wu-alert-confirm') ||\n popup.querySelector<HTMLElement>('.wu-alert-button, .wu-alert-close') ||\n popup;\n focus.focus({ preventScroll: true });\n if (this.o.timer) this.timer = setTimeout(() => this.dismiss('timer'), this.o.timer);\n // Callbacks often change the alert (showLoading in didOpen); run them after this check.\n const didOpen = this.o.didOpen;\n if (didOpen) Promise.resolve().then(() => didOpen(popup));\n }\n\n ngOnDestroy(): void {\n this.clearTimers();\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.unlockScroll?.();\n }\n\n // ---------- internals ----------\n\n private settle(result: WuAlertResult, animate = true): void {\n const resolve = this.resolveFn;\n this.resolveFn = null;\n this.clearTimers();\n if (animate) this.beginClose();\n resolve?.(result);\n }\n\n private beginClose(): void {\n const popup = this.popupRef?.nativeElement;\n const o = this.o;\n if (popup) o.willClose?.(popup);\n this.leaving = true;\n this.loading = false;\n this.render();\n const win = this.doc.defaultView;\n const reduce = !!win?.matchMedia && win.matchMedia('(prefers-reduced-motion: reduce)').matches;\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.closeTimer = setTimeout(() => {\n this.closeTimer = null;\n // A new alert opened during the fade-out takes the popup over.\n if (!this.leaving) return;\n const el = this.maskRef?.nativeElement;\n const hadFocus = !!el && el.contains(this.doc.activeElement);\n if (el?.open) el.close();\n this.unlockScroll?.();\n this.unlockScroll = null;\n this.rendered = false;\n this.leaving = false;\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back && back.isConnected && (hadFocus || this.doc.activeElement === this.doc.body)) back.focus({ preventScroll: true });\n this.render();\n o.didClose?.();\n }, reduce ? 0 : 150);\n }\n\n private readInput(): unknown {\n if (this.o.input === 'checkbox') return this.inputValue ? 1 : 0;\n return this.inputValue === null || this.inputValue === undefined ? '' : this.inputValue;\n }\n\n private field(): HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null {\n return this.popupRef?.nativeElement.querySelector('.wu-alert-field') ?? null;\n }\n\n private clearTimers(): void {\n if (this.timer) clearTimeout(this.timer);\n this.timer = null;\n }\n\n /** Draws now when called from app code (outside change detection), and marks the view for the next check too. */\n private render(): void {\n this.cdr.markForCheck();\n try {\n this.cdr.detectChanges();\n } catch {\n // Inside a check already: the mark above draws it.\n }\n }\n}\n","import { NgClass } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵWU_SKIP_VERSION_CHECK, ɵWuStyleLoader } from '@wirabyte/ui/config';\nimport { ɵWU_INPUTTEXT_CSS } from '@wirabyte/ui/inputtext';\nimport { ɵWuAlertDialogBase } from './alert-dialog.base';\n\n/** The popup `WuAlert.fire()` shows. Created by `WuAlertService`; apps do not place it in templates. */\n@Component({\n selector: 'wu-alertdialog',\n standalone: true,\n imports: [NgClass],\n templateUrl: './alert-dialog.component.html',\n styleUrl: './alert.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAlertDialog extends ɵWuAlertDialogBase {\n constructor() {\n super();\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n inject(ɵWuStyleLoader).load('inputtext', ɵWU_INPUTTEXT_CSS);\n }\n}\n","@if (rendered) {\n <dialog\n #mask\n role=\"alertdialog\"\n class=\"wu-alert-mask\"\n [class.wu-alert-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"o.title ? titleId : null\"\n [attr.aria-describedby]=\"o.text || o.html ? textId : null\"\n [attr.aria-busy]=\"loading || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancelEvent($event)\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div #popup tabindex=\"-1\" class=\"wu-alert\" [ngClass]=\"part('popup')\" [style.width]=\"popupWidth\">\n @if (o.showCloseButton) {\n <button type=\"button\" class=\"wu-alert-close\" [attr.aria-label]=\"t.close\" (click)=\"dismiss('close')\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n }\n\n @for (r of runs; track r) {\n @if (icon) {\n <div class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\">\n <circle class=\"wu-alert-halo\" cx=\"40\" cy=\"40\" r=\"40\"></circle>\n <circle class=\"wu-alert-ring\" cx=\"40\" cy=\"40\" r=\"36\"></circle>\n @switch (icon) {\n @case ('success') {\n <path class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n }\n @case ('error') {\n <path class=\"wu-alert-mark\" d=\"M29 29l22 22\"></path>\n <path class=\"wu-alert-mark wu-alert-mark-2\" d=\"M51 29L29 51\"></path>\n }\n @case ('warning') {\n <path class=\"wu-alert-mark\" d=\"M40 22v22\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"55\" r=\"3.5\"></circle>\n }\n @case ('info') {\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"25\" r=\"3.5\"></circle>\n <path class=\"wu-alert-mark\" d=\"M40 36v22\"></path>\n }\n @case ('question') {\n <path class=\"wu-alert-mark\" d=\"M31 31a9 9 0 1 1 13 8c-3 1.8-4 3.4-4 6.5\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"56\" r=\"3.5\"></circle>\n }\n }\n </svg>\n </div>\n }\n }\n\n @if (o.title) {\n <h2 class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n }\n @if (o.html) {\n <div class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n } @else if (o.text) {\n <p class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n }\n\n @if (o.input) {\n <div class=\"wu-alert-input\">\n @if (o.inputLabel && o.input !== 'checkbox') {\n <label class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n }\n @if (isTextInput) {\n <input\n [id]=\"titleId + '-field'\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [type]=\"o.input\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n [attr.aria-invalid]=\"validation ? true : null\"\n (input)=\"typed($event)\"\n />\n } @else if (o.input === 'textarea') {\n <textarea\n [id]=\"titleId + '-field'\"\n rows=\"4\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n (input)=\"typed($event)\"\n ></textarea>\n } @else if (o.input === 'select') {\n <select [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n @if (o.inputPlaceholder) {\n <option value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n }\n @for (opt of options; track opt.value) {\n <option [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n }\n </select>\n } @else if (o.input === 'radio') {\n <div class=\"wu-alert-choices\" role=\"radiogroup\">\n @for (opt of options; track opt.value; let i = $index) {\n <label class=\"wu-alert-choice\">\n <input\n type=\"radio\"\n [name]=\"titleId + '-radio'\"\n [value]=\"opt.value\"\n [checked]=\"opt.value === inputValue\"\n [class.wu-alert-field]=\"i === 0\"\n (change)=\"typed($event)\"\n />\n {{ opt.label }}\n </label>\n }\n </div>\n } @else if (o.input === 'checkbox') {\n <label class=\"wu-alert-choice wu-alert-choices\">\n <input type=\"checkbox\" class=\"wu-alert-field\" [checked]=\"!!inputValue\" (change)=\"typed($event)\" />\n {{ o.inputPlaceholder || o.inputLabel }}\n </label>\n }\n </div>\n }\n\n @if (validation) {\n <div class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n }\n @if (loading) {\n <div class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n }\n\n @if (hasActions) {\n <div class=\"wu-alert-actions\">\n @for (b of actions; track b) {\n @switch (b) {\n @case ('confirm') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-confirm\"\n [ngClass]=\"part('confirmButton')\"\n [class.wu-alert-custom]=\"!!o.confirmButtonColor\"\n [style.background]=\"o.confirmButtonColor || null\"\n [style.border-color]=\"o.confirmButtonColor || null\"\n (click)=\"confirm()\"\n >{{ confirmText }}</button>\n }\n @case ('deny') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-deny\"\n [ngClass]=\"part('denyButton')\"\n [class.wu-alert-custom]=\"!!o.denyButtonColor\"\n [style.background]=\"o.denyButtonColor || null\"\n [style.border-color]=\"o.denyButtonColor || null\"\n (click)=\"deny()\"\n >{{ denyText }}</button>\n }\n @case ('cancel') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-cancel\"\n [ngClass]=\"part('cancelButton')\"\n [class.wu-alert-custom]=\"!!o.cancelButtonColor\"\n [style.background]=\"o.cancelButtonColor || null\"\n [style.border-color]=\"o.cancelButtonColor || null\"\n (click)=\"dismiss('cancel')\"\n >{{ cancelText }}</button>\n }\n }\n }\n </div>\n }\n\n @if (o.footer) {\n <div class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n }\n @if (o.timer && o.timerProgressBar) {\n <div class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n }\n </div>\n </dialog>\n}\n","import { NgModule } from '@angular/core';\nimport { WuAlertDialog } from './alert-dialog.component';\n\n/** For NgModule apps; nothing to declare in templates, as alerts are opened from code (`WuAlertService`, `WuAlert`). */\n@NgModule({\n imports: [WuAlertDialog],\n exports: [WuAlertDialog],\n})\nexport class WuAlertModule {}\n","import { DOCUMENT } from '@angular/common';\nimport { ApplicationRef, ComponentRef, createComponent, EnvironmentInjector, inject, Injectable, OnDestroy } from '@angular/core';\nimport { ɵwuRootInjector } from '@wirabyte/ui/config';\nimport { WuAlertDialog } from './alert-dialog.component';\nimport { WuAlertDismissReason, WuAlertIcon, WuAlertOptions, WuAlertResult } from './alert.types';\n\n/**\n * Ready-made alerts and questions: an animated icon, a title, text or HTML, optional input, and buttons.\n *\n * ```ts\n * const r = await alert.fire({ title: 'ลบรายการนี้?', icon: 'warning', showCancelButton: true });\n * if (r.isConfirmed) …\n * alert.fire('บันทึกแล้ว', '', 'success');\n * ```\n * The same calls work statically through `WuAlert`, so code written for a global alert function moves over by\n * changing its import.\n */\n@Injectable({ providedIn: 'root' })\nexport class WuAlertService implements OnDestroy {\n private host: ComponentRef<WuAlertDialog> | null = null;\n private readonly appRef = inject(ApplicationRef);\n private readonly injector = inject(EnvironmentInjector);\n private readonly doc = inject(DOCUMENT);\n\n fire<T = any>(options: WuAlertOptions): Promise<WuAlertResult<T>>;\n fire<T = any>(title?: string, text?: string, icon?: WuAlertIcon): Promise<WuAlertResult<T>>;\n fire<T = any>(a?: string | WuAlertOptions, text?: string, icon?: WuAlertIcon): Promise<WuAlertResult<T>> {\n const options = typeof a === 'object' && a !== null ? a : { title: a, text, icon };\n return this.dialog().open(options) as Promise<WuAlertResult<T>>;\n }\n\n success(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'success' });\n }\n error(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'error' });\n }\n warning(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'warning' });\n }\n info(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'info' });\n }\n question(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'question' });\n }\n\n /** A yes/no question that resolves to true only on confirm. Cancel is focused, so Enter does not confirm by accident. */\n async confirm(options: WuAlertOptions | string, text?: string): Promise<boolean> {\n const o = typeof options === 'string' ? { title: options, text } : options;\n const r = await this.fire({ icon: 'question', showCancelButton: true, focusCancel: true, ...o });\n return r.isConfirmed;\n }\n\n /** A preset that later calls build on: `const toastLike = alert.mixin({ timer: 2000 })`. */\n mixin(defaults: WuAlertOptions): Pick<WuAlertService, 'fire'> {\n return {\n fire: ((a?: string | WuAlertOptions, text?: string, icon?: WuAlertIcon) =>\n this.fire({ ...defaults, ...(typeof a === 'object' && a !== null ? a : { title: a, text, icon }) })) as WuAlertService['fire'],\n };\n }\n\n /** Closes the alert on screen (it resolves as dismissed). */\n close(result?: Partial<WuAlertResult>): void {\n this.host?.instance.closeAlert(result);\n }\n\n /** A spinner in place of the buttons. Opens an alert with only the spinner when none is showing. */\n showLoading(): void {\n const d = this.dialog();\n if (!d.isOpen) d.open({ showConfirmButton: false, allowOutsideClick: false, allowEscapeKey: false });\n d.setLoading(true);\n }\n hideLoading(): void {\n this.host?.instance.setLoading(false);\n }\n isLoading(): boolean {\n return !!this.host?.instance.loading;\n }\n isVisible(): boolean {\n return !!this.host?.instance.isOpen;\n }\n /** The popup element, or null. */\n getPopup(): HTMLElement | null {\n return this.isVisible() ? this.host?.instance.popupRef?.nativeElement ?? null : null;\n }\n clickConfirm(): void {\n this.host?.instance.confirm();\n }\n clickCancel(): void {\n this.host?.instance.dismiss('cancel');\n }\n showValidationMessage(message: string): void {\n this.host?.instance.showValidation(message);\n }\n resetValidationMessage(): void {\n this.host?.instance.showValidation(null);\n }\n\n ngOnDestroy(): void {\n this.host?.destroy();\n this.host = null;\n }\n\n private dialog(): WuAlertDialog {\n if (!this.host) {\n this.host = createComponent(WuAlertDialog, { environmentInjector: this.injector });\n this.appRef.attachView(this.host.hostView);\n this.doc.body.appendChild(this.host.location.nativeElement);\n }\n return this.host.instance;\n }\n}\n\nfunction service(): WuAlertService {\n const injector = ɵwuRootInjector();\n if (!injector) throw new Error('WuAlert needs provideWiraUI() (or WiraUIModule.forRoot()) in the app providers.');\n return injector.get(WuAlertService);\n}\n\nconst DISMISS: Record<WuAlertDismissReason, WuAlertDismissReason> = { cancel: 'cancel', backdrop: 'backdrop', close: 'close', esc: 'esc', timer: 'timer' };\n\n/**\n * `WuAlertService` without injection, for code that calls an alert from anywhere:\n * `import { WuAlert as Swal } from '@wirabyte/ui/alert'` keeps `Swal.fire(...)` calls working as they are.\n */\nexport const WuAlert = {\n fire: ((a?: string | WuAlertOptions, text?: string, icon?: WuAlertIcon) => service().fire(a as string, text, icon)) as WuAlertService['fire'],\n success: (title: string, text?: string) => service().success(title, text),\n error: (title: string, text?: string) => service().error(title, text),\n warning: (title: string, text?: string) => service().warning(title, text),\n info: (title: string, text?: string) => service().info(title, text),\n question: (title: string, text?: string) => service().question(title, text),\n confirm: (options: WuAlertOptions | string, text?: string) => service().confirm(options, text),\n mixin: (defaults: WuAlertOptions) => service().mixin(defaults),\n close: (result?: Partial<WuAlertResult>) => service().close(result),\n showLoading: () => service().showLoading(),\n hideLoading: () => service().hideLoading(),\n isLoading: () => service().isLoading(),\n isVisible: () => service().isVisible(),\n getPopup: () => service().getPopup(),\n clickConfirm: () => service().clickConfirm(),\n clickCancel: () => service().clickCancel(),\n showValidationMessage: (message: string) => service().showValidationMessage(message),\n resetValidationMessage: () => service().resetValidationMessage(),\n DismissReason: DISMISS,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵuniqueId","ɵlockScroll","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵWuStyleLoader","ɵWU_INPUTTEXT_CSS","ɵwuRootInjector"],"mappings":";;;;;;AAOA,MAAM,KAAK,GAA8B;AACvC,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,IAAI,EAAE,UAAU;CACjB;AAED;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;IAC1C,WAAW,EAAE,MAAM,OAAO,EAAE,CAAC,WAAW,EAAE;IAC1C,SAAS,EAAE,MAAM,OAAO,EAAE,CAAC,SAAS,EAAE;IACtC,SAAS,EAAE,MAAM,OAAO,EAAE,CAAC,SAAS,EAAE;IACtC,QAAQ,EAAE,MAAM,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,MAAM,OAAO,EAAE,CAAC,YAAY,EAAE;IAC5C,WAAW,EAAE,MAAM,OAAO,EAAE,CAAC,WAAW,EAAE;AAC1C,IAAA,qBAAqB,EAAE,CAAC,OAAe,KAAK,OAAO,EAAE,CAAC,qBAAqB,CAAC,OAAO,CAAC;IACpF,sBAAsB,EAAE,MAAM,OAAO,EAAE,CAAC,sBAAsB,EAAE;AAChE,IAAA,aAAa,EAAE,OAAO;;;ACjJxB;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-alert.mjs","sources":["../../lib/alert/alert-dialog.base.ts","../../lib/alert/alert-dialog.component.ts","../../lib/alert/alert-dialog.component.html","../../lib/alert/alert.module.ts","../../lib/alert/alert.service.ts","../../lib/alert/wirabyte-ui-alert.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { AfterViewChecked, ChangeDetectorRef, Directive, ElementRef, inject, OnDestroy, ViewChild } from '@angular/core';\nimport { ɵlockScroll, ɵuniqueId, WuConfig } from '@wirabyte/ui/config';\nimport { WuLocale } from '@wirabyte/ui/core';\nimport { WuAlertDismissReason, WuAlertIcon, WuAlertOptions, WuAlertResult } from './alert.types';\n\ntype Icon = 'success' | 'error' | 'warning' | 'info' | 'question';\nconst ICONS: Record<WuAlertIcon, Icon> = {\n success: 'success',\n error: 'error',\n danger: 'error',\n warning: 'warning',\n warn: 'warning',\n info: 'info',\n question: 'question',\n help: 'question',\n};\n\n/**\n * The popup behind `WuAlert.fire()`: one per app, created on first use and reused. Shared logic of the v1 and\n * v2/v3 templates. A native modal <dialog>, so it opens above everything, dialogs included.\n */\n@Directive()\nexport abstract class ɵWuAlertDialogBase implements AfterViewChecked, OnDestroy {\n @ViewChild('mask') maskRef?: ElementRef<HTMLDialogElement>;\n @ViewChild('popup') popupRef?: ElementRef<HTMLElement>;\n\n o: WuAlertOptions = {};\n rendered = false;\n leaving = false;\n loading = false;\n icon: Icon | null = null;\n /** What the input holds, as the result will carry it. */\n inputValue: unknown = '';\n validation: string | null = null;\n /** One entry, changed on every fire, so the icon animation plays again. */\n runs: number[] = [0];\n readonly titleId = ɵuniqueId('wu-alert-title');\n readonly textId = ɵuniqueId('wu-alert-text');\n\n private run = 0;\n private resolveFn: ((r: WuAlertResult) => void) | null = null;\n private pendingShow = false;\n private downOnMask = false;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n private timer: ReturnType<typeof setTimeout> | null = null;\n private unlockScroll: (() => void) | null = null;\n private returnFocus: HTMLElement | null = null;\n protected readonly cdr = inject(ChangeDetectorRef);\n private readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n\n get t(): WuLocale {\n return this.config.translation;\n }\n get confirmText(): string {\n return this.o.confirmButtonText ?? this.t.accept;\n }\n get cancelText(): string {\n return this.o.cancelButtonText ?? this.t.cancel;\n }\n get denyText(): string {\n return this.o.denyButtonText ?? this.t.no;\n }\n get showConfirm(): boolean {\n return this.o.showConfirmButton !== false;\n }\n /** The buttons in screen and Tab order: cancel, deny, confirm unless `reverseButtons: false`. */\n get actions(): ('confirm' | 'deny' | 'cancel')[] {\n const list: ('confirm' | 'deny' | 'cancel')[] = [];\n if (this.showConfirm) list.push('confirm');\n if (this.o.showDenyButton) list.push('deny');\n if (this.o.showCancelButton) list.push('cancel');\n return this.o.reverseButtons === false ? list : list.reverse();\n }\n get hasActions(): boolean {\n return !this.loading && (this.showConfirm || !!this.o.showCancelButton || !!this.o.showDenyButton);\n }\n get popupWidth(): string | null {\n const w = this.o.width;\n return w === undefined || w === null || w === '' ? null : typeof w === 'number' ? `${w}px` : w;\n }\n get options(): { value: string; label: string }[] {\n return Object.entries(this.o.inputOptions || {}).map(([value, label]) => ({ value, label }));\n }\n get isTextInput(): boolean {\n const i = this.o.input;\n return !!i && i !== 'textarea' && i !== 'select' && i !== 'radio' && i !== 'checkbox';\n }\n /** A class from `customClass` for one part (a plain string goes on the popup). */\n part(name: 'popup' | 'title' | 'htmlContainer' | 'confirmButton' | 'cancelButton' | 'denyButton'): string {\n const c = this.o.customClass;\n if (!c) return '';\n if (typeof c === 'string') return name === 'popup' ? c : '';\n return c[name] || '';\n }\n\n // ---------- called by WuAlertService ----------\n\n open(options: WuAlertOptions): Promise<WuAlertResult> {\n // A new alert replaces the one on screen, which resolves as dismissed.\n if (this.resolveFn) this.settle({ isConfirmed: false, isDenied: false, isDismissed: true, dismiss: 'close' }, false);\n this.clearTimers();\n if (!this.rendered || this.leaving) {\n if (!this.rendered) {\n const active = this.doc.activeElement as HTMLElement | null;\n this.returnFocus = active && active !== this.doc.body ? active : null;\n }\n this.leaving = false;\n }\n this.o = { ...options };\n this.icon = options.icon ? ICONS[options.icon] || null : null;\n this.inputValue = options.inputValue ?? (options.input === 'checkbox' ? false : '');\n this.validation = null;\n this.loading = false;\n this.runs = [++this.run];\n this.rendered = true;\n this.pendingShow = true;\n const promise = new Promise<WuAlertResult>((resolve) => (this.resolveFn = resolve));\n this.render();\n // Opened here, not only in ngAfterViewChecked: this popup lives outside the page's view tree, and in zoneless apps\n // nothing else checks it again.\n this.showIfPending();\n return promise;\n }\n\n /** Closes the alert on screen; it resolves as dismissed. */\n closeAlert(result?: Partial<WuAlertResult>): void {\n if (!this.resolveFn) return;\n this.settle({ isConfirmed: false, isDenied: false, isDismissed: true, ...result });\n }\n\n setLoading(on: boolean): void {\n this.loading = on;\n if (on) this.validation = null;\n this.render();\n }\n\n showValidation(message: string | null): void {\n this.validation = message;\n this.render();\n }\n\n get isOpen(): boolean {\n return this.rendered && !this.leaving;\n }\n\n // ---------- template events ----------\n\n async confirm(): Promise<void> {\n if (this.loading || !this.resolveFn) return;\n const run = this.run;\n let value: unknown = this.o.input ? this.readInput() : true;\n const field = this.field();\n if (field && 'checkValidity' in field && !field.checkValidity()) {\n this.showValidation(this.o.validationMessage || field.validationMessage);\n field.focus();\n return;\n }\n if (this.o.inputValidator) {\n const message = await this.o.inputValidator(value);\n if (run !== this.run) return;\n if (message) {\n this.showValidation(message);\n field?.focus();\n return;\n }\n }\n if (this.o.preConfirm) {\n this.setLoading(true);\n try {\n const r = await this.o.preConfirm(value);\n if (run !== this.run) return;\n if (r === false) {\n this.setLoading(false);\n return;\n }\n if (r !== undefined) value = r;\n } catch (e) {\n if (run !== this.run) return;\n this.loading = false;\n this.showValidation(e instanceof Error ? e.message : String(e));\n return;\n }\n }\n this.settle({ isConfirmed: true, isDenied: false, isDismissed: false, value });\n }\n\n deny(): void {\n if (this.loading) return;\n this.settle({ isConfirmed: false, isDenied: true, isDismissed: false, value: false });\n }\n\n dismiss(reason: WuAlertDismissReason): void {\n this.settle({ isConfirmed: false, isDenied: false, isDismissed: true, dismiss: reason });\n }\n\n typed(event: Event): void {\n const el = event.target as HTMLInputElement;\n this.inputValue = el.type === 'checkbox' ? el.checked : el.value;\n if (this.validation) this.showValidation(null);\n }\n\n keydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n // Ours to decide, so the browser does not close the <dialog> by itself.\n event.preventDefault();\n event.stopPropagation();\n if (this.o.allowEscapeKey !== false && !this.loading) this.dismiss('esc');\n } else if (event.key === 'Enter' && this.o.allowEnterKey !== false && !event.isComposing) {\n const t = event.target as HTMLElement;\n if (t.classList.contains('wu-alert-field') && t.tagName === 'INPUT') {\n event.preventDefault();\n this.confirm();\n }\n }\n }\n\n cancelEvent(event: Event): void {\n event.preventDefault();\n if (this.o.allowEscapeKey !== false && !this.loading) this.dismiss('esc');\n }\n\n maskPointerdown(event: PointerEvent): void {\n this.downOnMask = event.target === this.maskRef?.nativeElement;\n }\n\n maskClick(event: MouseEvent): void {\n const onMask = this.downOnMask && event.target === this.maskRef?.nativeElement;\n this.downOnMask = false;\n if (!onMask || this.loading) return;\n const allow = this.o.allowOutsideClick;\n if (allow === undefined || allow === true || (typeof allow === 'function' && allow())) this.dismiss('backdrop');\n }\n\n // ---------- lifecycle ----------\n\n ngAfterViewChecked(): void {\n this.showIfPending();\n }\n\n private showIfPending(): void {\n if (!this.pendingShow) return;\n const el = this.maskRef?.nativeElement;\n const popup = this.popupRef?.nativeElement;\n if (!el || !popup) return;\n this.pendingShow = false;\n if (!el.open) {\n try {\n el.showModal();\n } catch {\n el.setAttribute('open', '');\n }\n this.unlockScroll = this.unlockScroll || ɵlockScroll(this.doc);\n // Toasts on screen move back above this alert.\n this.doc.dispatchEvent(new CustomEvent('wu-modal-open'));\n }\n const field = this.field();\n if (field) for (const [k, v] of Object.entries(this.o.inputAttributes || {})) field.setAttribute(k, v);\n const focus =\n field ||\n popup.querySelector<HTMLElement>(this.o.focusCancel ? '.wu-alert-cancel' : '.wu-alert-confirm') ||\n popup.querySelector<HTMLElement>('.wu-alert-button, .wu-alert-close') ||\n popup;\n focus.focus({ preventScroll: true });\n if (this.o.timer) this.timer = setTimeout(() => this.dismiss('timer'), this.o.timer);\n // Callbacks often change the alert (showLoading in didOpen); run them after this check.\n const didOpen = this.o.didOpen;\n if (didOpen) Promise.resolve().then(() => didOpen(popup));\n }\n\n ngOnDestroy(): void {\n this.clearTimers();\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.unlockScroll?.();\n }\n\n // ---------- internals ----------\n\n private settle(result: WuAlertResult, animate = true): void {\n const resolve = this.resolveFn;\n this.resolveFn = null;\n this.clearTimers();\n if (animate) this.beginClose();\n resolve?.(result);\n }\n\n private beginClose(): void {\n const popup = this.popupRef?.nativeElement;\n const o = this.o;\n if (popup) o.willClose?.(popup);\n this.leaving = true;\n this.loading = false;\n this.render();\n const win = this.doc.defaultView;\n const reduce = !!win?.matchMedia && win.matchMedia('(prefers-reduced-motion: reduce)').matches;\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.closeTimer = setTimeout(() => {\n this.closeTimer = null;\n // A new alert opened during the fade-out takes the popup over.\n if (!this.leaving) return;\n const el = this.maskRef?.nativeElement;\n const hadFocus = !!el && el.contains(this.doc.activeElement);\n if (el?.open) el.close();\n this.unlockScroll?.();\n this.unlockScroll = null;\n this.rendered = false;\n this.leaving = false;\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back && back.isConnected && (hadFocus || this.doc.activeElement === this.doc.body)) back.focus({ preventScroll: true });\n this.render();\n o.didClose?.();\n }, reduce ? 0 : 150);\n }\n\n private readInput(): unknown {\n if (this.o.input === 'checkbox') return this.inputValue ? 1 : 0;\n return this.inputValue === null || this.inputValue === undefined ? '' : this.inputValue;\n }\n\n private field(): HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null {\n return this.popupRef?.nativeElement.querySelector('.wu-alert-field') ?? null;\n }\n\n private clearTimers(): void {\n if (this.timer) clearTimeout(this.timer);\n this.timer = null;\n }\n\n /** Draws now when called from app code (outside change detection), and marks the view for the next check too. */\n private render(): void {\n this.cdr.markForCheck();\n try {\n this.cdr.detectChanges();\n } catch {\n // Inside a check already: the mark above draws it.\n }\n }\n}\n","import { NgClass } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵWU_SKIP_VERSION_CHECK, ɵWuStyleLoader } from '@wirabyte/ui/config';\nimport { ɵWU_INPUTTEXT_CSS } from '@wirabyte/ui/inputtext';\nimport { ɵWuAlertDialogBase } from './alert-dialog.base';\n\n/** The popup `WuAlert.fire()` shows. Created by `WuAlertService`; apps do not place it in templates. */\n@Component({\n selector: 'wu-alertdialog',\n standalone: true,\n imports: [NgClass],\n templateUrl: './alert-dialog.component.html',\n styleUrl: './alert.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAlertDialog extends ɵWuAlertDialogBase {\n constructor() {\n super();\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n inject(ɵWuStyleLoader).load('inputtext', ɵWU_INPUTTEXT_CSS);\n }\n}\n","@if (rendered) {\n <dialog\n #mask\n role=\"alertdialog\"\n class=\"wu-alert-mask\"\n [class.wu-alert-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"o.title ? titleId : null\"\n [attr.aria-describedby]=\"o.text || o.html ? textId : null\"\n [attr.aria-busy]=\"loading || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancelEvent($event)\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div #popup tabindex=\"-1\" class=\"wu-alert\" [ngClass]=\"part('popup')\" [style.width]=\"popupWidth\">\n @if (o.showCloseButton) {\n <button type=\"button\" class=\"wu-alert-close\" [attr.aria-label]=\"t.close\" (click)=\"dismiss('close')\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n }\n\n @for (r of runs; track r) {\n @if (icon) {\n <div class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\">\n <circle class=\"wu-alert-halo\" cx=\"40\" cy=\"40\" r=\"40\"></circle>\n <circle class=\"wu-alert-ring\" cx=\"40\" cy=\"40\" r=\"36\"></circle>\n @switch (icon) {\n @case ('success') {\n <path class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n }\n @case ('error') {\n <path class=\"wu-alert-mark\" d=\"M29 29l22 22\"></path>\n <path class=\"wu-alert-mark wu-alert-mark-2\" d=\"M51 29L29 51\"></path>\n }\n @case ('warning') {\n <path class=\"wu-alert-mark\" d=\"M40 22v22\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"55\" r=\"3.5\"></circle>\n }\n @case ('info') {\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"25\" r=\"3.5\"></circle>\n <path class=\"wu-alert-mark\" d=\"M40 36v22\"></path>\n }\n @case ('question') {\n <path class=\"wu-alert-mark\" d=\"M31 31a9 9 0 1 1 13 8c-3 1.8-4 3.4-4 6.5\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"56\" r=\"3.5\"></circle>\n }\n }\n </svg>\n </div>\n }\n }\n\n @if (o.title) {\n <h2 class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n }\n @if (o.html) {\n <div class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n } @else if (o.text) {\n <p class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n }\n\n @if (o.input) {\n <div class=\"wu-alert-input\">\n @if (o.inputLabel && o.input !== 'checkbox') {\n <label class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n }\n @if (isTextInput) {\n <input\n [id]=\"titleId + '-field'\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [type]=\"o.input\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n [attr.aria-invalid]=\"validation ? true : null\"\n (input)=\"typed($event)\"\n />\n } @else if (o.input === 'textarea') {\n <textarea\n [id]=\"titleId + '-field'\"\n rows=\"4\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n (input)=\"typed($event)\"\n ></textarea>\n } @else if (o.input === 'select') {\n <select [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n @if (o.inputPlaceholder) {\n <option value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n }\n @for (opt of options; track opt.value) {\n <option [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n }\n </select>\n } @else if (o.input === 'radio') {\n <div class=\"wu-alert-choices\" role=\"radiogroup\">\n @for (opt of options; track opt.value; let i = $index) {\n <label class=\"wu-alert-choice\">\n <input\n type=\"radio\"\n [name]=\"titleId + '-radio'\"\n [value]=\"opt.value\"\n [checked]=\"opt.value === inputValue\"\n [class.wu-alert-field]=\"i === 0\"\n (change)=\"typed($event)\"\n />\n {{ opt.label }}\n </label>\n }\n </div>\n } @else if (o.input === 'checkbox') {\n <label class=\"wu-alert-choice wu-alert-choices\">\n <input type=\"checkbox\" class=\"wu-alert-field\" [checked]=\"!!inputValue\" (change)=\"typed($event)\" />\n {{ o.inputPlaceholder || o.inputLabel }}\n </label>\n }\n </div>\n }\n\n @if (validation) {\n <div class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n }\n @if (loading) {\n <div class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n }\n\n @if (hasActions) {\n <div class=\"wu-alert-actions\">\n @for (b of actions; track b) {\n @switch (b) {\n @case ('confirm') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-confirm\"\n [ngClass]=\"part('confirmButton')\"\n [class.wu-alert-custom]=\"!!o.confirmButtonColor\"\n [style.background]=\"o.confirmButtonColor || null\"\n [style.border-color]=\"o.confirmButtonColor || null\"\n (click)=\"confirm()\"\n >{{ confirmText }}</button>\n }\n @case ('deny') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-deny\"\n [ngClass]=\"part('denyButton')\"\n [class.wu-alert-custom]=\"!!o.denyButtonColor\"\n [style.background]=\"o.denyButtonColor || null\"\n [style.border-color]=\"o.denyButtonColor || null\"\n (click)=\"deny()\"\n >{{ denyText }}</button>\n }\n @case ('cancel') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-cancel\"\n [ngClass]=\"part('cancelButton')\"\n [class.wu-alert-custom]=\"!!o.cancelButtonColor\"\n [style.background]=\"o.cancelButtonColor || null\"\n [style.border-color]=\"o.cancelButtonColor || null\"\n (click)=\"dismiss('cancel')\"\n >{{ cancelText }}</button>\n }\n }\n }\n </div>\n }\n\n @if (o.footer) {\n <div class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n }\n @if (o.timer && o.timerProgressBar) {\n <div class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n }\n </div>\n </dialog>\n}\n","import { NgModule } from '@angular/core';\nimport { WuAlertDialog } from './alert-dialog.component';\n\n/** For NgModule apps; nothing to declare in templates, as alerts are opened from code (`WuAlertService`, `WuAlert`). */\n@NgModule({\n imports: [WuAlertDialog],\n exports: [WuAlertDialog],\n})\nexport class WuAlertModule {}\n","import { DOCUMENT } from '@angular/common';\nimport { ApplicationRef, ComponentRef, createComponent, EnvironmentInjector, inject, Injectable, OnDestroy } from '@angular/core';\nimport { ɵwuRootInjector } from '@wirabyte/ui/config';\nimport { WuAlertDialog } from './alert-dialog.component';\nimport { WuAlertDismissReason, WuAlertIcon, WuAlertOptions, WuAlertResult } from './alert.types';\n\n/**\n * Ready-made alerts and questions: an animated icon, a title, text or HTML, optional input, and buttons.\n *\n * ```ts\n * const r = await alert.fire({ title: 'ลบรายการนี้?', icon: 'warning', showCancelButton: true });\n * if (r.isConfirmed) …\n * alert.fire('บันทึกแล้ว', '', 'success');\n * ```\n * The same calls work statically through `WuAlert`, so code written for a global alert function moves over by\n * changing its import.\n */\n@Injectable({ providedIn: 'root' })\nexport class WuAlertService implements OnDestroy {\n private host: ComponentRef<WuAlertDialog> | null = null;\n private readonly appRef = inject(ApplicationRef);\n private readonly injector = inject(EnvironmentInjector);\n private readonly doc = inject(DOCUMENT);\n\n fire<T = any>(options: WuAlertOptions): Promise<WuAlertResult<T>>;\n fire<T = any>(title?: string, text?: string, icon?: WuAlertIcon): Promise<WuAlertResult<T>>;\n fire<T = any>(a?: string | WuAlertOptions, text?: string, icon?: WuAlertIcon): Promise<WuAlertResult<T>> {\n const options = typeof a === 'object' && a !== null ? a : { title: a, text, icon };\n return this.dialog().open(options) as Promise<WuAlertResult<T>>;\n }\n\n success(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'success' });\n }\n error(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'error' });\n }\n warning(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'warning' });\n }\n info(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'info' });\n }\n question(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'question' });\n }\n\n /** A yes/no question that resolves to true only on confirm. Cancel is focused, so Enter does not confirm by accident. */\n async confirm(options: WuAlertOptions | string, text?: string): Promise<boolean> {\n const o = typeof options === 'string' ? { title: options, text } : options;\n const r = await this.fire({ icon: 'question', showCancelButton: true, focusCancel: true, ...o });\n return r.isConfirmed;\n }\n\n /** A preset that later calls build on: `const toastLike = alert.mixin({ timer: 2000 })`. */\n mixin(defaults: WuAlertOptions): Pick<WuAlertService, 'fire'> {\n return {\n fire: ((a?: string | WuAlertOptions, text?: string, icon?: WuAlertIcon) =>\n this.fire({ ...defaults, ...(typeof a === 'object' && a !== null ? a : { title: a, text, icon }) })) as WuAlertService['fire'],\n };\n }\n\n /** Closes the alert on screen (it resolves as dismissed). */\n close(result?: Partial<WuAlertResult>): void {\n this.host?.instance.closeAlert(result);\n }\n\n /** A spinner in place of the buttons. Opens an alert with only the spinner when none is showing. */\n showLoading(): void {\n const d = this.dialog();\n if (!d.isOpen) d.open({ showConfirmButton: false, allowOutsideClick: false, allowEscapeKey: false });\n d.setLoading(true);\n }\n hideLoading(): void {\n this.host?.instance.setLoading(false);\n }\n isLoading(): boolean {\n return !!this.host?.instance.loading;\n }\n isVisible(): boolean {\n return !!this.host?.instance.isOpen;\n }\n /** The popup element, or null. */\n getPopup(): HTMLElement | null {\n return this.isVisible() ? this.host?.instance.popupRef?.nativeElement ?? null : null;\n }\n clickConfirm(): void {\n this.host?.instance.confirm();\n }\n clickCancel(): void {\n this.host?.instance.dismiss('cancel');\n }\n showValidationMessage(message: string): void {\n this.host?.instance.showValidation(message);\n }\n resetValidationMessage(): void {\n this.host?.instance.showValidation(null);\n }\n\n ngOnDestroy(): void {\n this.host?.destroy();\n this.host = null;\n }\n\n private dialog(): WuAlertDialog {\n if (!this.host) {\n this.host = createComponent(WuAlertDialog, { environmentInjector: this.injector });\n this.appRef.attachView(this.host.hostView);\n this.doc.body.appendChild(this.host.location.nativeElement);\n }\n return this.host.instance;\n }\n}\n\nfunction service(): WuAlertService {\n const injector = ɵwuRootInjector();\n if (!injector) throw new Error('WuAlert needs provideWiraUI() (or WiraUIModule.forRoot()) in the app providers.');\n return injector.get(WuAlertService);\n}\n\nconst DISMISS: Record<WuAlertDismissReason, WuAlertDismissReason> = { cancel: 'cancel', backdrop: 'backdrop', close: 'close', esc: 'esc', timer: 'timer' };\n\n/**\n * `WuAlertService` without injection, for code that calls an alert from anywhere:\n * `import { WuAlert as Swal } from '@wirabyte/ui/alert'` keeps `Swal.fire(...)` calls working as they are.\n */\nexport const WuAlert = {\n fire: ((a?: string | WuAlertOptions, text?: string, icon?: WuAlertIcon) => service().fire(a as string, text, icon)) as WuAlertService['fire'],\n success: (title: string, text?: string) => service().success(title, text),\n error: (title: string, text?: string) => service().error(title, text),\n warning: (title: string, text?: string) => service().warning(title, text),\n info: (title: string, text?: string) => service().info(title, text),\n question: (title: string, text?: string) => service().question(title, text),\n confirm: (options: WuAlertOptions | string, text?: string) => service().confirm(options, text),\n mixin: (defaults: WuAlertOptions) => service().mixin(defaults),\n close: (result?: Partial<WuAlertResult>) => service().close(result),\n showLoading: () => service().showLoading(),\n hideLoading: () => service().hideLoading(),\n isLoading: () => service().isLoading(),\n isVisible: () => service().isVisible(),\n getPopup: () => service().getPopup(),\n clickConfirm: () => service().clickConfirm(),\n clickCancel: () => service().clickCancel(),\n showValidationMessage: (message: string) => service().showValidationMessage(message),\n resetValidationMessage: () => service().resetValidationMessage(),\n DismissReason: DISMISS,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵuniqueId","ɵlockScroll","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵWuStyleLoader","ɵWU_INPUTTEXT_CSS","ɵwuRootInjector"],"mappings":";;;;;;AAOA,MAAM,KAAK,GAA8B;AACvC,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,IAAI,EAAE,UAAU;CACjB;AAED;;;AAGG;MAEmB,kBAAkB,CAAA;AADxC,IAAA,WAAA,GAAA;QAKE,IAAA,CAAA,CAAC,GAAmB,EAAE;QACtB,IAAA,CAAA,QAAQ,GAAG,KAAK;QAChB,IAAA,CAAA,OAAO,GAAG,KAAK;QACf,IAAA,CAAA,OAAO,GAAG,KAAK;QACf,IAAA,CAAA,IAAI,GAAgB,IAAI;;QAExB,IAAA,CAAA,UAAU,GAAY,EAAE;QACxB,IAAA,CAAA,UAAU,GAAkB,IAAI;;AAEhC,QAAA,IAAA,CAAA,IAAI,GAAa,CAAC,CAAC,CAAC;AACX,QAAA,IAAA,CAAA,OAAO,GAAGA,SAAS,CAAC,gBAAgB,CAAC;AACrC,QAAA,IAAA,CAAA,MAAM,GAAGA,SAAS,CAAC,eAAe,CAAC;QAEpC,IAAA,CAAA,GAAG,GAAG,CAAC;QACP,IAAA,CAAA,SAAS,GAAwC,IAAI;QACrD,IAAA,CAAA,WAAW,GAAG,KAAK;QACnB,IAAA,CAAA,UAAU,GAAG,KAAK;QAClB,IAAA,CAAA,UAAU,GAAyC,IAAI;QACvD,IAAA,CAAA,K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type: WuAsideMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
758
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: WuAsideMenu, isStandalone: true, selector: "wu-aside-menu", inputs: { model: "model", activeItem: "activeItem", multiple: "multiple", sections: "sections", collapsed: "collapsed", visible: "visible", showCollapseButton: "showCollapseButton", breakpoint: "breakpoint", ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style" }, outputs: { visibleChange: "visibleChange", collapsedChange: "collapsedChange" }, host: { properties: { "class.wu-aside-menu-host-mobile": "mobile", "class.wu-aside-menu-host-collapsed": "narrow", "class.wu-aside-menu-host-sliding": "!!sliding" } }, queries: [{ propertyName: "startRef", first: true, predicate: ["start"] }, { propertyName: "endRef", first: true, predicate: ["end"] }, { propertyName: "itemRef", first: true, predicate: ["item"] }, { propertyName: "templates", predicate: WuTemplate }], viewQueries: [{ propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true, static: true }, { propertyName: "closeRef", first: true, predicate: ["closeButton"], descendants: true }], exportAs: ["wuAsideMenu"], ngImport: i0, template: "<div *ngIf=\"mobile\" class=\"wu-aside-menu-mask\" [class.wu-aside-menu-mask-visible]=\"visible\" [class.wu-aside-menu-animated]=\"animated\" aria-hidden=\"true\" (click)=\"close()\"></div>\n\n<nav\n #panel\n class=\"wu-aside-menu\"\n [class]=\"styleClass || ''\"\n [class.wu-aside-menu-mobile]=\"mobile\"\n [class.wu-aside-menu-open]=\"mobile && visible\"\n [class.wu-aside-menu-animated]=\"animated\"\n [class.wu-aside-menu-collapsed]=\"rail\"\n [class.wu-aside-menu-sliding]=\"!!sliding\"\n [class.wu-aside-menu-sliding-collapse]=\"sliding === 'collapse'\"\n [class.wu-aside-menu-sliding-expand]=\"sliding === 'expand'\"\n [style]=\"rootStyle\"\n [id]=\"panelId\"\n tabindex=\"-1\"\n [attr.aria-label]=\"navLabel\"\n [attr.inert]=\"mobile && !visible ? '' : null\"\n (keydown)=\"keydown($event)\"\n>\n <div class=\"wu-aside-menu-header\">\n <ng-content select=\"[wuAsideMenuStart]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"startTemplate; context: slotContext\"></ng-container>\n <button *ngIf=\"mobile\" #closeButton type=\"button\" class=\"wu-aside-menu-close\" [attr.aria-label]=\"t.close\" (click)=\"close()\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n </div>\n\n <div class=\"wu-aside-menu-body\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-root\" role=\"list\" [class.wu-aside-menu-rail]=\"rail\">\n <ng-container *ngIf=\"guestShown\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: guestGroup, key: 'g', depth: 0, rail: false }\"></ng-container>\n <li class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: items, parent: '', depth: 0, rail: rail }\"></ng-container>\n </ul>\n </div>\n\n <div class=\"wu-aside-menu-footer\">\n <ng-content select=\"[wuAsideMenuEnd]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"endTemplate; context: slotContext\"></ng-container>\n <button\n *ngIf=\"showCollapseButton && !mobile\"\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-collapse\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [attr.aria-controls]=\"panelId\"\n [attr.title]=\"rail ? collapseLabel : null\"\n (click)=\"toggleCollapsed()\"\n >\n <svg class=\"wu-aside-menu-collapse-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.5 4 3.5 8l4 4M12.5 4l-4 4 4 4\"></path></svg>\n <span class=\"wu-aside-menu-label\">{{ collapseLabel }}</span>\n </button>\n </div>\n</nav>\n\n<!-- A list of items at one level. -->\n<ng-template #tree let-list let-parent=\"parent\" let-depth=\"depth\" let-rail=\"rail\">\n <ng-container *ngFor=\"let item of list; let i = index\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: item, key: keyOf(parent, i), depth: depth, rail: rail }\"></ng-container>\n </ng-container>\n</ng-template>\n\n<!-- One item: a separator, a section heading, a group (in place, or a flyout on the icon rail), or a link. -->\n<ng-template #entry let-item let-key=\"key\" let-depth=\"depth\" let-rail=\"rail\">\n <li *ngIf=\"item.separator\" class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n\n <li *ngIf=\"!item.separator && isSection(item, depth)\" class=\"wu-aside-menu-section\" [ngClass]=\"item.styleClass || ''\" [ngStyle]=\"item.style || null\">\n <span class=\"wu-aside-menu-section-label\" [id]=\"itemId(key) + '_label'\">{{ textOf(item) }}</span>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"itemId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: rail }\"></ng-container>\n </ul>\n </li>\n\n <li\n *ngIf=\"!item.separator && !isSection(item, depth)\"\n class=\"wu-aside-menu-item\"\n [ngClass]=\"item.styleClass || ''\"\n [ngStyle]=\"item.style || null\"\n [class.wu-aside-menu-item-disabled]=\"item.disabled\"\n >\n <ng-container *ngIf=\"hasChildren(item); else leafEntry\">\n <ng-container *ngIf=\"rail; else inPlace\">\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group wu-aside-menu-link-rail\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n data-wu-flyout=\"\"\n [attr.title]=\"railTitle(item)\"\n [attr.aria-expanded]=\"flyoutKey === key\"\n [attr.aria-controls]=\"flyoutKey === key ? flyoutId(key) : null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"railGroupClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: true, group: true }\"></ng-container>\n </button>\n <div *ngIf=\"flyoutKey === key\" class=\"wu-aside-menu-flyout\" popover=\"manual\" [id]=\"flyoutId(key)\" (focusout)=\"flyoutFocusOut($event)\">\n <div class=\"wu-aside-menu-flyout-title\" [id]=\"flyoutId(key) + '_label'\">{{ textOf(item) }}</div>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"flyoutId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </ng-container>\n <ng-template #inPlace>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"item.title || null\"\n [attr.aria-expanded]=\"isOpen(item)\"\n [attr.aria-controls]=\"itemId(key) + '_children'\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"groupClick(item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: false, group: true }\"></ng-container>\n </button>\n <div class=\"wu-aside-menu-children\" [class.wu-aside-menu-children-open]=\"isOpen(item)\" [id]=\"itemId(key) + '_children'\" [attr.inert]=\"isOpen(item) ? null : ''\">\n <div class=\"wu-aside-menu-children-inner\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-sublist\" role=\"list\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </div>\n </ng-template>\n </ng-container>\n <ng-template #leafEntry>\n <ng-container *ngTemplateOutlet=\"leaf; context: { $implicit: item, key: key, rail: rail }\"></ng-container>\n </ng-template>\n </li>\n</ng-template>\n\n<!-- A link: router link, plain link, or a button that runs the command. -->\n<ng-template #leaf let-item let-key=\"key\" let-rail=\"rail\">\n <a\n *ngIf=\"routed(item); else plainLink\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.target]=\"item.target || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [fragment]=\"item.fragment\"\n [preserveFragment]=\"!!item.preserveFragment\"\n [skipLocationChange]=\"!!item.skipLocationChange\"\n [replaceUrl]=\"!!item.replaceUrl\"\n [state]=\"item.state\"\n routerLinkActive=\"wu-aside-menu-link-active\"\n ariaCurrentWhenActive=\"page\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #plainLink>\n <a\n *ngIf=\"item.url; else commandButton\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [class.wu-aside-menu-link-disabled]=\"item.disabled\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.href]=\"hrefOf(item)\"\n [attr.target]=\"item.target || null\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #commandButton>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </button>\n </ng-template>\n </ng-template>\n</ng-template>\n\n<ng-template #content let-item let-rail=\"rail\" let-group=\"group\">\n <ng-container *ngIf=\"itemTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, collapsed: rail }\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <span *ngIf=\"item.icon\" class=\"wu-aside-menu-icon\" [ngClass]=\"item.icon\" [ngStyle]=\"item.iconStyle || null\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!item.icon && rail\" class=\"wu-aside-menu-initial\" aria-hidden=\"true\">{{ initialOf(item) }}</span>\n <span *ngIf=\"item.escape !== false\" class=\"wu-aside-menu-label\">{{ item.label }}</span>\n <span *ngIf=\"item.escape === false\" class=\"wu-aside-menu-label\" [innerHTML]=\"item.label\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-aside-menu-badge\" [ngClass]=\"item.badgeStyleClass || ''\">{{ item.badge }}</span>\n <svg *ngIf=\"group && !rail\" class=\"wu-aside-menu-chevron\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4 6 4 4 4-4\"></path></svg>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-aside-menu{position:sticky;top:var(--wu-aside-menu-top);display:block;flex:none;align-self:flex-start;box-sizing:border-box;width:var(--wu-aside-menu-width);max-width:100%;height:calc(100vh - var(--wu-aside-menu-top));height:calc(100dvh - var(--wu-aside-menu-top));transition:width var(--wu-transition) ease}wu-aside-menu.wu-aside-menu-host-collapsed{width:var(--wu-aside-menu-collapsed-width)}wu-aside-menu.wu-aside-menu-host-sliding{overflow:hidden}wu-aside-menu.wu-aside-menu-host-sliding:after{content:\"\";position:absolute;inset-block:0;inset-inline-end:0;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);pointer-events:none}wu-aside-menu.wu-aside-menu-host-mobile{display:contents}.wu-aside-menu{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;overflow:hidden;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);background:var(--wu-aside-menu-bg);color:var(--wu-aside-menu-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu.wu-aside-menu-sliding{width:var(--wu-aside-menu-width);border-inline-end-color:transparent}.wu-aside-menu-sliding :is(.wu-aside-menu-label,.wu-aside-menu-section-label){overflow:hidden;white-space:nowrap}.wu-aside-menu-sliding-collapse :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){opacity:0;transition:opacity var(--wu-transition) ease}.wu-aside-menu-sliding-expand :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){animation:wu-aside-menu-fade-in var(--wu-transition) ease both}@keyframes wu-aside-menu-fade-in{0%{opacity:0}}.wu-aside-menu:focus{outline:none}.wu-aside-menu-header,.wu-aside-menu-footer{display:flex;flex:none;gap:.5rem;min-width:0;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-header{align-items:center}.wu-aside-menu-footer{flex-direction:column;align-items:stretch;border-top:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color)}.wu-aside-menu-header:empty,.wu-aside-menu-footer:empty{display:none}.wu-aside-menu-collapsed .wu-aside-menu-header{overflow:hidden}.wu-aside-menu-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-list{display:flex;flex-direction:column;gap:var(--wu-menu-gap);margin:0;padding:0;list-style:none}.wu-aside-menu-sublist{padding-block-start:var(--wu-menu-gap);padding-inline-start:var(--wu-aside-menu-indent)}.wu-aside-menu-item,.wu-aside-menu-section{display:flex;flex-direction:column;min-width:0}.wu-aside-menu-section{gap:var(--wu-menu-gap)}.wu-aside-menu-section-label{display:block;padding:var(--wu-aside-menu-section-padding);color:var(--wu-aside-menu-section-color);font-size:var(--wu-aside-menu-section-size);font-weight:600;overflow-wrap:anywhere}.wu-aside-menu-separator{margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-link{position:relative;display:flex;align-items:center;gap:var(--wu-aside-menu-item-gap);box-sizing:border-box;width:100%;min-width:0;min-height:var(--wu-aside-menu-item-height);margin:0;padding:var(--wu-aside-menu-item-padding);border:0;border-radius:var(--wu-aside-menu-item-radius);background:transparent;color:var(--wu-aside-menu-item-color);font:inherit;text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-aside-menu-link:where(:not(:disabled,.wu-aside-menu-link-disabled)):hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-link:focus-visible{background:var(--wu-aside-menu-item-hover-bg);outline:var(--wu-control-focus-outline);outline-offset:calc(-1 * var(--wu-control-focus-offset) - 1px);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-group-active{color:var(--wu-aside-menu-group-active-color)}.wu-aside-menu-link.wu-aside-menu-link-active{background:var(--wu-aside-menu-item-active-bg);color:var(--wu-aside-menu-item-active-color)}.wu-aside-menu-link:disabled,.wu-aside-menu-link-disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-aside-menu-icon{flex:none;width:1.25rem;color:var(--wu-aside-menu-item-icon-color);text-align:center}.wu-aside-menu-link-active .wu-aside-menu-icon,.wu-aside-menu-group-active .wu-aside-menu-icon{color:inherit}.wu-aside-menu-label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.wu-aside-menu-badge{display:inline-grid;flex:none;place-items:center;min-width:1.25rem;height:1.25rem;padding:0 .375rem;border-radius:999px;background:var(--wu-primary-color);color:var(--wu-primary-contrast);font-size:.75rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-badge{background:var(--wu-aside-menu-item-active-color);color:var(--wu-primary-color)}.wu-aside-menu-chevron{flex:none;width:.875rem;height:.875rem;margin-inline-start:auto;transform:rotate(-90deg);transition:transform var(--wu-transition)}[aria-expanded=true]>.wu-aside-menu-chevron{transform:none}.wu-aside-menu-children{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--wu-transition) ease}.wu-aside-menu-children-open{grid-template-rows:1fr}.wu-aside-menu-children-inner{min-height:0;overflow:hidden}.wu-aside-menu-link-rail{justify-content:center;gap:0;padding-inline:0}.wu-aside-menu-link-rail .wu-aside-menu-label,.wu-aside-menu-rail .wu-aside-menu-section-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}.wu-aside-menu-link-rail .wu-aside-menu-badge{position:absolute;top:.375rem;inset-inline-end:.375rem;min-width:.5rem;height:.5rem;padding:0;font-size:0}.wu-aside-menu-initial{display:inline-grid;flex:none;place-items:center;width:1.75rem;height:1.75rem;border-radius:var(--wu-radius-full);background:var(--wu-aside-menu-item-hover-bg);font-size:.875rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-initial{background:transparent}.wu-aside-menu-rail>.wu-aside-menu-section:not(:first-child):before{content:\"\";display:block;margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-collapse{color:var(--wu-aside-menu-item-icon-color)}.wu-aside-menu-collapse-icon{flex:none;width:1.25rem;height:1rem;transition:transform var(--wu-transition)}.wu-aside-menu-collapsed .wu-aside-menu-collapse-icon{transform:scaleX(-1)}.wu-aside-menu-close{display:inline-grid;flex:none;place-items:center;width:var(--wu-aside-menu-item-height);height:var(--wu-aside-menu-item-height);margin:0;margin-inline-start:auto;padding:0;border:0;border-radius:var(--wu-radius-full);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color var(--wu-transition)}.wu-aside-menu-close:hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-close svg{width:1.125rem;height:1.125rem}.wu-aside-menu-mobile{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:var(--wu-aside-menu-z-index);width:var(--wu-aside-menu-mobile-width);max-width:100vw;height:auto;border-inline-end:0;box-shadow:var(--wu-aside-menu-mobile-shadow);visibility:hidden;transform:translate(-100%)}.wu-aside-menu-mobile:dir(rtl){transform:translate(100%)}.wu-aside-menu-mobile.wu-aside-menu-open{visibility:visible;transform:none}.wu-aside-menu-mobile.wu-aside-menu-animated{transition:transform var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open{transition:transform var(--wu-transition) ease,visibility 0s}.wu-aside-menu-mask{position:fixed;inset:0;z-index:var(--wu-aside-menu-z-index);background:var(--wu-mask);opacity:0;visibility:hidden}.wu-aside-menu-mask-visible{opacity:1;visibility:visible}.wu-aside-menu-mask.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s}.wu-aside-menu-flyout{position:fixed;inset:auto;z-index:1200;box-sizing:border-box;min-width:var(--wu-menu-min-width);max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem);margin:0;overflow-y:auto;padding:var(--wu-menu-padding);border:var(--wu-menu-overlay-border-width) solid var(--wu-border);border-radius:var(--wu-menu-radius);background:var(--wu-menu-overlay-bg);box-shadow:var(--wu-menu-shadow);color:var(--wu-aside-menu-item-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu-flyout-title{padding:var(--wu-menu-submenu-label-padding);background:var(--wu-menu-submenu-label-bg);color:var(--wu-menu-submenu-label-color);font-weight:var(--wu-menu-submenu-label-weight)}@media(prefers-reduced-motion:reduce){wu-aside-menu,.wu-aside-menu-link,.wu-aside-menu-chevron,.wu-aside-menu-children,.wu-aside-menu-collapse-icon,.wu-aside-menu-close,.wu-aside-menu-mobile.wu-aside-menu-animated,.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open,.wu-aside-menu-mask.wu-aside-menu-animated,.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:none}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
758
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: WuAsideMenu, isStandalone: true, selector: "wu-aside-menu", inputs: { model: "model", activeItem: "activeItem", multiple: "multiple", sections: "sections", collapsed: "collapsed", visible: "visible", showCollapseButton: "showCollapseButton", breakpoint: "breakpoint", ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style" }, outputs: { visibleChange: "visibleChange", collapsedChange: "collapsedChange" }, host: { properties: { "class.wu-aside-menu-host-mobile": "mobile", "class.wu-aside-menu-host-collapsed": "narrow", "class.wu-aside-menu-host-sliding": "!!sliding" } }, queries: [{ propertyName: "startRef", first: true, predicate: ["start"] }, { propertyName: "endRef", first: true, predicate: ["end"] }, { propertyName: "itemRef", first: true, predicate: ["item"] }, { propertyName: "templates", predicate: WuTemplate }], viewQueries: [{ propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true, static: true }, { propertyName: "closeRef", first: true, predicate: ["closeButton"], descendants: true }], exportAs: ["wuAsideMenu"], ngImport: i0, template: "<div *ngIf=\"mobile\" class=\"wu-aside-menu-mask\" [class.wu-aside-menu-mask-visible]=\"visible\" [class.wu-aside-menu-animated]=\"animated\" aria-hidden=\"true\" (click)=\"close()\"></div>\n\n<nav\n #panel\n class=\"wu-aside-menu\"\n [class]=\"styleClass || ''\"\n [class.wu-aside-menu-mobile]=\"mobile\"\n [class.wu-aside-menu-open]=\"mobile && visible\"\n [class.wu-aside-menu-animated]=\"animated\"\n [class.wu-aside-menu-collapsed]=\"rail\"\n [class.wu-aside-menu-sliding]=\"!!sliding\"\n [class.wu-aside-menu-sliding-collapse]=\"sliding === 'collapse'\"\n [class.wu-aside-menu-sliding-expand]=\"sliding === 'expand'\"\n [style]=\"rootStyle\"\n [id]=\"panelId\"\n tabindex=\"-1\"\n [attr.aria-label]=\"navLabel\"\n [attr.inert]=\"mobile && !visible ? '' : null\"\n (keydown)=\"keydown($event)\"\n>\n <div class=\"wu-aside-menu-header\">\n <ng-content select=\"[wuAsideMenuStart]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"startTemplate; context: slotContext\"></ng-container>\n <button *ngIf=\"mobile\" #closeButton type=\"button\" class=\"wu-aside-menu-close\" [attr.aria-label]=\"t.close\" (click)=\"close()\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n </div>\n\n <div class=\"wu-aside-menu-body\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-root\" role=\"list\" [class.wu-aside-menu-rail]=\"rail\">\n <ng-container *ngIf=\"guestShown\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: guestGroup, key: 'g', depth: 0, rail: false }\"></ng-container>\n <li class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: items, parent: '', depth: 0, rail: rail }\"></ng-container>\n </ul>\n </div>\n\n <div class=\"wu-aside-menu-footer\">\n <ng-content select=\"[wuAsideMenuEnd]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"endTemplate; context: slotContext\"></ng-container>\n <button\n *ngIf=\"showCollapseButton && !mobile\"\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-collapse\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [attr.aria-controls]=\"panelId\"\n [attr.title]=\"rail ? collapseLabel : null\"\n (click)=\"toggleCollapsed()\"\n >\n <svg class=\"wu-aside-menu-collapse-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.5 4 3.5 8l4 4M12.5 4l-4 4 4 4\"></path></svg>\n <span class=\"wu-aside-menu-label\">{{ collapseLabel }}</span>\n </button>\n </div>\n</nav>\n\n<!-- A list of items at one level. -->\n<ng-template #tree let-list let-parent=\"parent\" let-depth=\"depth\" let-rail=\"rail\">\n <ng-container *ngFor=\"let item of list; let i = index\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: item, key: keyOf(parent, i), depth: depth, rail: rail }\"></ng-container>\n </ng-container>\n</ng-template>\n\n<!-- One item: a separator, a section heading, a group (in place, or a flyout on the icon rail), or a link. -->\n<ng-template #entry let-item let-key=\"key\" let-depth=\"depth\" let-rail=\"rail\">\n <li *ngIf=\"item.separator\" class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n\n <li *ngIf=\"!item.separator && isSection(item, depth)\" class=\"wu-aside-menu-section\" [ngClass]=\"item.styleClass || ''\" [ngStyle]=\"item.style || null\">\n <span class=\"wu-aside-menu-section-label\" [id]=\"itemId(key) + '_label'\">{{ textOf(item) }}</span>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"itemId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: rail }\"></ng-container>\n </ul>\n </li>\n\n <li\n *ngIf=\"!item.separator && !isSection(item, depth)\"\n class=\"wu-aside-menu-item\"\n [ngClass]=\"item.styleClass || ''\"\n [ngStyle]=\"item.style || null\"\n [class.wu-aside-menu-item-disabled]=\"item.disabled\"\n >\n <ng-container *ngIf=\"hasChildren(item); else leafEntry\">\n <ng-container *ngIf=\"rail; else inPlace\">\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group wu-aside-menu-link-rail\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n data-wu-flyout=\"\"\n [attr.title]=\"railTitle(item)\"\n [attr.aria-expanded]=\"flyoutKey === key\"\n [attr.aria-controls]=\"flyoutKey === key ? flyoutId(key) : null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"railGroupClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: true, group: true }\"></ng-container>\n </button>\n <div *ngIf=\"flyoutKey === key\" class=\"wu-aside-menu-flyout\" popover=\"manual\" [id]=\"flyoutId(key)\" (focusout)=\"flyoutFocusOut($event)\">\n <div class=\"wu-aside-menu-flyout-title\" [id]=\"flyoutId(key) + '_label'\">{{ textOf(item) }}</div>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"flyoutId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </ng-container>\n <ng-template #inPlace>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"item.title || null\"\n [attr.aria-expanded]=\"isOpen(item)\"\n [attr.aria-controls]=\"itemId(key) + '_children'\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"groupClick(item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: false, group: true }\"></ng-container>\n </button>\n <div class=\"wu-aside-menu-children\" [class.wu-aside-menu-children-open]=\"isOpen(item)\" [id]=\"itemId(key) + '_children'\" [attr.inert]=\"isOpen(item) ? null : ''\">\n <div class=\"wu-aside-menu-children-inner\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-sublist\" role=\"list\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </div>\n </ng-template>\n </ng-container>\n <ng-template #leafEntry>\n <ng-container *ngTemplateOutlet=\"leaf; context: { $implicit: item, key: key, rail: rail }\"></ng-container>\n </ng-template>\n </li>\n</ng-template>\n\n<!-- A link: router link, plain link, or a button that runs the command. -->\n<ng-template #leaf let-item let-key=\"key\" let-rail=\"rail\">\n <a\n *ngIf=\"routed(item); else plainLink\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.target]=\"item.target || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [fragment]=\"item.fragment\"\n [preserveFragment]=\"!!item.preserveFragment\"\n [skipLocationChange]=\"!!item.skipLocationChange\"\n [replaceUrl]=\"!!item.replaceUrl\"\n [state]=\"item.state\"\n routerLinkActive=\"wu-aside-menu-link-active\"\n ariaCurrentWhenActive=\"page\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #plainLink>\n <a\n *ngIf=\"item.url; else commandButton\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [class.wu-aside-menu-link-disabled]=\"item.disabled\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.href]=\"hrefOf(item)\"\n [attr.target]=\"item.target || null\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #commandButton>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </button>\n </ng-template>\n </ng-template>\n</ng-template>\n\n<ng-template #content let-item let-rail=\"rail\" let-group=\"group\">\n <ng-container *ngIf=\"itemTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, collapsed: rail }\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <span *ngIf=\"item.icon\" class=\"wu-aside-menu-icon\" [ngClass]=\"item.icon\" [ngStyle]=\"item.iconStyle || null\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!item.icon && rail\" class=\"wu-aside-menu-initial\" aria-hidden=\"true\">{{ initialOf(item) }}</span>\n <span *ngIf=\"item.escape !== false\" class=\"wu-aside-menu-label\">{{ item.label }}</span>\n <span *ngIf=\"item.escape === false\" class=\"wu-aside-menu-label\" [innerHTML]=\"item.label\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-aside-menu-badge\" [ngClass]=\"item.badgeStyleClass || ''\">{{ item.badge }}</span>\n <svg *ngIf=\"group && !rail\" class=\"wu-aside-menu-chevron\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4 6 4 4 4-4\"></path></svg>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-aside-menu{position:sticky;top:var(--wu-aside-menu-top);display:block;flex:none;align-self:flex-start;box-sizing:border-box;width:var(--wu-aside-menu-width);max-width:100%;height:calc(100vh - var(--wu-aside-menu-top));height:calc(100dvh - var(--wu-aside-menu-top));transition:width var(--wu-transition) ease}wu-aside-menu.wu-aside-menu-host-collapsed{width:var(--wu-aside-menu-collapsed-width)}wu-aside-menu.wu-aside-menu-host-sliding{overflow:hidden}wu-aside-menu.wu-aside-menu-host-sliding:after{content:\"\";position:absolute;inset-block:0;inset-inline-end:0;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);pointer-events:none}wu-aside-menu.wu-aside-menu-host-mobile{display:contents}.wu-aside-menu{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;overflow:hidden;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);background:var(--wu-aside-menu-bg);color:var(--wu-aside-menu-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu.wu-aside-menu-sliding{width:var(--wu-aside-menu-width);border-inline-end-color:transparent}.wu-aside-menu-sliding :is(.wu-aside-menu-label,.wu-aside-menu-section-label){overflow:hidden;white-space:nowrap}.wu-aside-menu-sliding-collapse :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){opacity:0;transition:opacity var(--wu-transition) ease}.wu-aside-menu-sliding-expand :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){animation:wu-aside-menu-fade-in var(--wu-transition) ease both}@keyframes wu-aside-menu-fade-in{0%{opacity:0}}.wu-aside-menu:focus{outline:none}.wu-aside-menu-header,.wu-aside-menu-footer{display:flex;flex:none;gap:.5rem;min-width:0;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-header{align-items:center}.wu-aside-menu-footer{flex-direction:column;align-items:stretch;border-top:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color)}.wu-aside-menu-header:empty,.wu-aside-menu-footer:empty{display:none}.wu-aside-menu-collapsed .wu-aside-menu-header{overflow:hidden}.wu-aside-menu-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-list{display:flex;flex-direction:column;gap:var(--wu-menu-gap);margin:0;padding:0;list-style:none}.wu-aside-menu-sublist{padding-block-start:var(--wu-menu-gap);padding-inline-start:var(--wu-aside-menu-indent)}.wu-aside-menu-item,.wu-aside-menu-section{display:flex;flex-direction:column;min-width:0}.wu-aside-menu-section{gap:var(--wu-menu-gap)}.wu-aside-menu-section-label{display:block;padding:var(--wu-aside-menu-section-padding);color:var(--wu-aside-menu-section-color);font-size:var(--wu-aside-menu-section-size);font-weight:600;overflow-wrap:anywhere}.wu-aside-menu-separator{margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-link{position:relative;display:flex;align-items:center;gap:var(--wu-aside-menu-item-gap);box-sizing:border-box;width:100%;min-width:0;min-height:var(--wu-aside-menu-item-height);margin:0;padding:var(--wu-aside-menu-item-padding);border:0;border-radius:var(--wu-aside-menu-item-radius);background:transparent;color:var(--wu-aside-menu-item-color);font:inherit;text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-aside-menu-link:where(:not(:disabled,.wu-aside-menu-link-disabled)):hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-link:focus-visible{background:var(--wu-aside-menu-item-hover-bg);outline:var(--wu-control-focus-outline);outline-offset:calc(-1 * var(--wu-control-focus-offset) - 1px);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-group-active{color:var(--wu-aside-menu-group-active-color)}.wu-aside-menu-link.wu-aside-menu-link-active{background:var(--wu-aside-menu-item-active-bg);color:var(--wu-aside-menu-item-active-color)}.wu-aside-menu-link:disabled,.wu-aside-menu-link-disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-aside-menu-icon{flex:none;width:1.25rem;color:var(--wu-aside-menu-item-icon-color);text-align:center}.wu-aside-menu-link-active .wu-aside-menu-icon,.wu-aside-menu-group-active .wu-aside-menu-icon{color:inherit}.wu-aside-menu-label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.wu-aside-menu-badge{display:inline-grid;flex:none;place-items:center;min-width:1.25rem;height:1.25rem;padding:0 .375rem;border-radius:999px;background:var(--wu-primary-color);color:var(--wu-primary-contrast);font-size:.75rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-badge{background:var(--wu-aside-menu-item-active-color);color:var(--wu-primary-color)}.wu-aside-menu-chevron{flex:none;width:.875rem;height:.875rem;margin-inline-start:auto;transform:rotate(-90deg);transition:transform var(--wu-transition)}[aria-expanded=true]>.wu-aside-menu-chevron{transform:none}.wu-aside-menu-children{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--wu-transition) ease}.wu-aside-menu-children-open{grid-template-rows:1fr}.wu-aside-menu-children-inner{min-height:0;overflow:hidden}.wu-aside-menu-link-rail{justify-content:center;gap:0;padding-inline:0}.wu-aside-menu-link-rail .wu-aside-menu-label,.wu-aside-menu-rail .wu-aside-menu-section-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}.wu-aside-menu-link-rail .wu-aside-menu-badge{position:absolute;top:.375rem;inset-inline-end:.375rem;min-width:.5rem;height:.5rem;padding:0;font-size:0}.wu-aside-menu-initial{display:inline-grid;flex:none;place-items:center;width:1.75rem;height:1.75rem;border-radius:var(--wu-radius-full);background:var(--wu-aside-menu-item-hover-bg);font-size:.875rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-initial{background:transparent}.wu-aside-menu-rail>.wu-aside-menu-section:not(:first-child):before{content:\"\";display:block;margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-collapse{color:var(--wu-aside-menu-item-icon-color)}.wu-aside-menu-collapse-icon{flex:none;width:1.25rem;height:1rem;transition:transform var(--wu-transition)}.wu-aside-menu-collapsed .wu-aside-menu-collapse-icon{transform:scaleX(-1)}.wu-aside-menu-close{display:inline-grid;flex:none;place-items:center;width:var(--wu-aside-menu-item-height);height:var(--wu-aside-menu-item-height);margin:0;margin-inline-start:auto;padding:0;border:0;border-radius:var(--wu-radius-full);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color var(--wu-transition)}.wu-aside-menu-close:hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-close svg{width:1.125rem;height:1.125rem}.wu-aside-menu-mobile .wu-aside-menu-header{position:relative;min-height:calc(var(--wu-aside-menu-item-height) + 2 * var(--wu-aside-menu-padding))}.wu-aside-menu-mobile .wu-aside-menu-close{position:absolute;inset-block-start:var(--wu-aside-menu-padding);inset-inline-end:var(--wu-aside-menu-padding)}.wu-aside-menu-mobile .wu-aside-menu-header>:first-child:nth-last-child(2){flex:1 1 auto;min-width:0}.wu-aside-menu-mobile{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:var(--wu-aside-menu-z-index);width:var(--wu-aside-menu-mobile-width);max-width:100vw;height:auto;border-inline-end:0;box-shadow:var(--wu-aside-menu-mobile-shadow);visibility:hidden;transform:translate(-100%)}.wu-aside-menu-mobile:dir(rtl){transform:translate(100%)}.wu-aside-menu-mobile.wu-aside-menu-open{visibility:visible;transform:none}.wu-aside-menu-mobile.wu-aside-menu-animated{transition:transform var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open{transition:transform var(--wu-transition) ease,visibility 0s}.wu-aside-menu-mask{position:fixed;inset:0;z-index:var(--wu-aside-menu-z-index);background:var(--wu-mask);opacity:0;visibility:hidden}.wu-aside-menu-mask-visible{opacity:1;visibility:visible}.wu-aside-menu-mask.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s}.wu-aside-menu-flyout{position:fixed;inset:auto;z-index:1200;box-sizing:border-box;min-width:var(--wu-menu-min-width);max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem);margin:0;overflow-y:auto;padding:var(--wu-menu-padding);border:var(--wu-menu-overlay-border-width) solid var(--wu-border);border-radius:var(--wu-menu-radius);background:var(--wu-menu-overlay-bg);box-shadow:var(--wu-menu-shadow);color:var(--wu-aside-menu-item-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu-flyout-title{padding:var(--wu-menu-submenu-label-padding);background:var(--wu-menu-submenu-label-bg);color:var(--wu-menu-submenu-label-color);font-weight:var(--wu-menu-submenu-label-weight)}@media(prefers-reduced-motion:reduce){wu-aside-menu,.wu-aside-menu-link,.wu-aside-menu-chevron,.wu-aside-menu-children,.wu-aside-menu-collapse-icon,.wu-aside-menu-close,.wu-aside-menu-mobile.wu-aside-menu-animated,.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open,.wu-aside-menu-mask.wu-aside-menu-animated,.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:none}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
759
759
|
}
|
|
760
760
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuAsideMenu, decorators: [{
|
|
761
761
|
type: Component,
|
|
@@ -763,7 +763,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
763
763
|
'[class.wu-aside-menu-host-mobile]': 'mobile',
|
|
764
764
|
'[class.wu-aside-menu-host-collapsed]': 'narrow',
|
|
765
765
|
'[class.wu-aside-menu-host-sliding]': '!!sliding',
|
|
766
|
-
}, template: "<div *ngIf=\"mobile\" class=\"wu-aside-menu-mask\" [class.wu-aside-menu-mask-visible]=\"visible\" [class.wu-aside-menu-animated]=\"animated\" aria-hidden=\"true\" (click)=\"close()\"></div>\n\n<nav\n #panel\n class=\"wu-aside-menu\"\n [class]=\"styleClass || ''\"\n [class.wu-aside-menu-mobile]=\"mobile\"\n [class.wu-aside-menu-open]=\"mobile && visible\"\n [class.wu-aside-menu-animated]=\"animated\"\n [class.wu-aside-menu-collapsed]=\"rail\"\n [class.wu-aside-menu-sliding]=\"!!sliding\"\n [class.wu-aside-menu-sliding-collapse]=\"sliding === 'collapse'\"\n [class.wu-aside-menu-sliding-expand]=\"sliding === 'expand'\"\n [style]=\"rootStyle\"\n [id]=\"panelId\"\n tabindex=\"-1\"\n [attr.aria-label]=\"navLabel\"\n [attr.inert]=\"mobile && !visible ? '' : null\"\n (keydown)=\"keydown($event)\"\n>\n <div class=\"wu-aside-menu-header\">\n <ng-content select=\"[wuAsideMenuStart]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"startTemplate; context: slotContext\"></ng-container>\n <button *ngIf=\"mobile\" #closeButton type=\"button\" class=\"wu-aside-menu-close\" [attr.aria-label]=\"t.close\" (click)=\"close()\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n </div>\n\n <div class=\"wu-aside-menu-body\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-root\" role=\"list\" [class.wu-aside-menu-rail]=\"rail\">\n <ng-container *ngIf=\"guestShown\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: guestGroup, key: 'g', depth: 0, rail: false }\"></ng-container>\n <li class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: items, parent: '', depth: 0, rail: rail }\"></ng-container>\n </ul>\n </div>\n\n <div class=\"wu-aside-menu-footer\">\n <ng-content select=\"[wuAsideMenuEnd]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"endTemplate; context: slotContext\"></ng-container>\n <button\n *ngIf=\"showCollapseButton && !mobile\"\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-collapse\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [attr.aria-controls]=\"panelId\"\n [attr.title]=\"rail ? collapseLabel : null\"\n (click)=\"toggleCollapsed()\"\n >\n <svg class=\"wu-aside-menu-collapse-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.5 4 3.5 8l4 4M12.5 4l-4 4 4 4\"></path></svg>\n <span class=\"wu-aside-menu-label\">{{ collapseLabel }}</span>\n </button>\n </div>\n</nav>\n\n<!-- A list of items at one level. -->\n<ng-template #tree let-list let-parent=\"parent\" let-depth=\"depth\" let-rail=\"rail\">\n <ng-container *ngFor=\"let item of list; let i = index\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: item, key: keyOf(parent, i), depth: depth, rail: rail }\"></ng-container>\n </ng-container>\n</ng-template>\n\n<!-- One item: a separator, a section heading, a group (in place, or a flyout on the icon rail), or a link. -->\n<ng-template #entry let-item let-key=\"key\" let-depth=\"depth\" let-rail=\"rail\">\n <li *ngIf=\"item.separator\" class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n\n <li *ngIf=\"!item.separator && isSection(item, depth)\" class=\"wu-aside-menu-section\" [ngClass]=\"item.styleClass || ''\" [ngStyle]=\"item.style || null\">\n <span class=\"wu-aside-menu-section-label\" [id]=\"itemId(key) + '_label'\">{{ textOf(item) }}</span>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"itemId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: rail }\"></ng-container>\n </ul>\n </li>\n\n <li\n *ngIf=\"!item.separator && !isSection(item, depth)\"\n class=\"wu-aside-menu-item\"\n [ngClass]=\"item.styleClass || ''\"\n [ngStyle]=\"item.style || null\"\n [class.wu-aside-menu-item-disabled]=\"item.disabled\"\n >\n <ng-container *ngIf=\"hasChildren(item); else leafEntry\">\n <ng-container *ngIf=\"rail; else inPlace\">\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group wu-aside-menu-link-rail\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n data-wu-flyout=\"\"\n [attr.title]=\"railTitle(item)\"\n [attr.aria-expanded]=\"flyoutKey === key\"\n [attr.aria-controls]=\"flyoutKey === key ? flyoutId(key) : null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"railGroupClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: true, group: true }\"></ng-container>\n </button>\n <div *ngIf=\"flyoutKey === key\" class=\"wu-aside-menu-flyout\" popover=\"manual\" [id]=\"flyoutId(key)\" (focusout)=\"flyoutFocusOut($event)\">\n <div class=\"wu-aside-menu-flyout-title\" [id]=\"flyoutId(key) + '_label'\">{{ textOf(item) }}</div>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"flyoutId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </ng-container>\n <ng-template #inPlace>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"item.title || null\"\n [attr.aria-expanded]=\"isOpen(item)\"\n [attr.aria-controls]=\"itemId(key) + '_children'\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"groupClick(item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: false, group: true }\"></ng-container>\n </button>\n <div class=\"wu-aside-menu-children\" [class.wu-aside-menu-children-open]=\"isOpen(item)\" [id]=\"itemId(key) + '_children'\" [attr.inert]=\"isOpen(item) ? null : ''\">\n <div class=\"wu-aside-menu-children-inner\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-sublist\" role=\"list\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </div>\n </ng-template>\n </ng-container>\n <ng-template #leafEntry>\n <ng-container *ngTemplateOutlet=\"leaf; context: { $implicit: item, key: key, rail: rail }\"></ng-container>\n </ng-template>\n </li>\n</ng-template>\n\n<!-- A link: router link, plain link, or a button that runs the command. -->\n<ng-template #leaf let-item let-key=\"key\" let-rail=\"rail\">\n <a\n *ngIf=\"routed(item); else plainLink\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.target]=\"item.target || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [fragment]=\"item.fragment\"\n [preserveFragment]=\"!!item.preserveFragment\"\n [skipLocationChange]=\"!!item.skipLocationChange\"\n [replaceUrl]=\"!!item.replaceUrl\"\n [state]=\"item.state\"\n routerLinkActive=\"wu-aside-menu-link-active\"\n ariaCurrentWhenActive=\"page\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #plainLink>\n <a\n *ngIf=\"item.url; else commandButton\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [class.wu-aside-menu-link-disabled]=\"item.disabled\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.href]=\"hrefOf(item)\"\n [attr.target]=\"item.target || null\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #commandButton>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </button>\n </ng-template>\n </ng-template>\n</ng-template>\n\n<ng-template #content let-item let-rail=\"rail\" let-group=\"group\">\n <ng-container *ngIf=\"itemTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, collapsed: rail }\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <span *ngIf=\"item.icon\" class=\"wu-aside-menu-icon\" [ngClass]=\"item.icon\" [ngStyle]=\"item.iconStyle || null\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!item.icon && rail\" class=\"wu-aside-menu-initial\" aria-hidden=\"true\">{{ initialOf(item) }}</span>\n <span *ngIf=\"item.escape !== false\" class=\"wu-aside-menu-label\">{{ item.label }}</span>\n <span *ngIf=\"item.escape === false\" class=\"wu-aside-menu-label\" [innerHTML]=\"item.label\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-aside-menu-badge\" [ngClass]=\"item.badgeStyleClass || ''\">{{ item.badge }}</span>\n <svg *ngIf=\"group && !rail\" class=\"wu-aside-menu-chevron\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4 6 4 4 4-4\"></path></svg>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-aside-menu{position:sticky;top:var(--wu-aside-menu-top);display:block;flex:none;align-self:flex-start;box-sizing:border-box;width:var(--wu-aside-menu-width);max-width:100%;height:calc(100vh - var(--wu-aside-menu-top));height:calc(100dvh - var(--wu-aside-menu-top));transition:width var(--wu-transition) ease}wu-aside-menu.wu-aside-menu-host-collapsed{width:var(--wu-aside-menu-collapsed-width)}wu-aside-menu.wu-aside-menu-host-sliding{overflow:hidden}wu-aside-menu.wu-aside-menu-host-sliding:after{content:\"\";position:absolute;inset-block:0;inset-inline-end:0;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);pointer-events:none}wu-aside-menu.wu-aside-menu-host-mobile{display:contents}.wu-aside-menu{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;overflow:hidden;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);background:var(--wu-aside-menu-bg);color:var(--wu-aside-menu-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu.wu-aside-menu-sliding{width:var(--wu-aside-menu-width);border-inline-end-color:transparent}.wu-aside-menu-sliding :is(.wu-aside-menu-label,.wu-aside-menu-section-label){overflow:hidden;white-space:nowrap}.wu-aside-menu-sliding-collapse :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){opacity:0;transition:opacity var(--wu-transition) ease}.wu-aside-menu-sliding-expand :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){animation:wu-aside-menu-fade-in var(--wu-transition) ease both}@keyframes wu-aside-menu-fade-in{0%{opacity:0}}.wu-aside-menu:focus{outline:none}.wu-aside-menu-header,.wu-aside-menu-footer{display:flex;flex:none;gap:.5rem;min-width:0;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-header{align-items:center}.wu-aside-menu-footer{flex-direction:column;align-items:stretch;border-top:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color)}.wu-aside-menu-header:empty,.wu-aside-menu-footer:empty{display:none}.wu-aside-menu-collapsed .wu-aside-menu-header{overflow:hidden}.wu-aside-menu-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-list{display:flex;flex-direction:column;gap:var(--wu-menu-gap);margin:0;padding:0;list-style:none}.wu-aside-menu-sublist{padding-block-start:var(--wu-menu-gap);padding-inline-start:var(--wu-aside-menu-indent)}.wu-aside-menu-item,.wu-aside-menu-section{display:flex;flex-direction:column;min-width:0}.wu-aside-menu-section{gap:var(--wu-menu-gap)}.wu-aside-menu-section-label{display:block;padding:var(--wu-aside-menu-section-padding);color:var(--wu-aside-menu-section-color);font-size:var(--wu-aside-menu-section-size);font-weight:600;overflow-wrap:anywhere}.wu-aside-menu-separator{margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-link{position:relative;display:flex;align-items:center;gap:var(--wu-aside-menu-item-gap);box-sizing:border-box;width:100%;min-width:0;min-height:var(--wu-aside-menu-item-height);margin:0;padding:var(--wu-aside-menu-item-padding);border:0;border-radius:var(--wu-aside-menu-item-radius);background:transparent;color:var(--wu-aside-menu-item-color);font:inherit;text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-aside-menu-link:where(:not(:disabled,.wu-aside-menu-link-disabled)):hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-link:focus-visible{background:var(--wu-aside-menu-item-hover-bg);outline:var(--wu-control-focus-outline);outline-offset:calc(-1 * var(--wu-control-focus-offset) - 1px);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-group-active{color:var(--wu-aside-menu-group-active-color)}.wu-aside-menu-link.wu-aside-menu-link-active{background:var(--wu-aside-menu-item-active-bg);color:var(--wu-aside-menu-item-active-color)}.wu-aside-menu-link:disabled,.wu-aside-menu-link-disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-aside-menu-icon{flex:none;width:1.25rem;color:var(--wu-aside-menu-item-icon-color);text-align:center}.wu-aside-menu-link-active .wu-aside-menu-icon,.wu-aside-menu-group-active .wu-aside-menu-icon{color:inherit}.wu-aside-menu-label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.wu-aside-menu-badge{display:inline-grid;flex:none;place-items:center;min-width:1.25rem;height:1.25rem;padding:0 .375rem;border-radius:999px;background:var(--wu-primary-color);color:var(--wu-primary-contrast);font-size:.75rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-badge{background:var(--wu-aside-menu-item-active-color);color:var(--wu-primary-color)}.wu-aside-menu-chevron{flex:none;width:.875rem;height:.875rem;margin-inline-start:auto;transform:rotate(-90deg);transition:transform var(--wu-transition)}[aria-expanded=true]>.wu-aside-menu-chevron{transform:none}.wu-aside-menu-children{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--wu-transition) ease}.wu-aside-menu-children-open{grid-template-rows:1fr}.wu-aside-menu-children-inner{min-height:0;overflow:hidden}.wu-aside-menu-link-rail{justify-content:center;gap:0;padding-inline:0}.wu-aside-menu-link-rail .wu-aside-menu-label,.wu-aside-menu-rail .wu-aside-menu-section-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}.wu-aside-menu-link-rail .wu-aside-menu-badge{position:absolute;top:.375rem;inset-inline-end:.375rem;min-width:.5rem;height:.5rem;padding:0;font-size:0}.wu-aside-menu-initial{display:inline-grid;flex:none;place-items:center;width:1.75rem;height:1.75rem;border-radius:var(--wu-radius-full);background:var(--wu-aside-menu-item-hover-bg);font-size:.875rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-initial{background:transparent}.wu-aside-menu-rail>.wu-aside-menu-section:not(:first-child):before{content:\"\";display:block;margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-collapse{color:var(--wu-aside-menu-item-icon-color)}.wu-aside-menu-collapse-icon{flex:none;width:1.25rem;height:1rem;transition:transform var(--wu-transition)}.wu-aside-menu-collapsed .wu-aside-menu-collapse-icon{transform:scaleX(-1)}.wu-aside-menu-close{display:inline-grid;flex:none;place-items:center;width:var(--wu-aside-menu-item-height);height:var(--wu-aside-menu-item-height);margin:0;margin-inline-start:auto;padding:0;border:0;border-radius:var(--wu-radius-full);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color var(--wu-transition)}.wu-aside-menu-close:hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-close svg{width:1.125rem;height:1.125rem}.wu-aside-menu-mobile{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:var(--wu-aside-menu-z-index);width:var(--wu-aside-menu-mobile-width);max-width:100vw;height:auto;border-inline-end:0;box-shadow:var(--wu-aside-menu-mobile-shadow);visibility:hidden;transform:translate(-100%)}.wu-aside-menu-mobile:dir(rtl){transform:translate(100%)}.wu-aside-menu-mobile.wu-aside-menu-open{visibility:visible;transform:none}.wu-aside-menu-mobile.wu-aside-menu-animated{transition:transform var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open{transition:transform var(--wu-transition) ease,visibility 0s}.wu-aside-menu-mask{position:fixed;inset:0;z-index:var(--wu-aside-menu-z-index);background:var(--wu-mask);opacity:0;visibility:hidden}.wu-aside-menu-mask-visible{opacity:1;visibility:visible}.wu-aside-menu-mask.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s}.wu-aside-menu-flyout{position:fixed;inset:auto;z-index:1200;box-sizing:border-box;min-width:var(--wu-menu-min-width);max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem);margin:0;overflow-y:auto;padding:var(--wu-menu-padding);border:var(--wu-menu-overlay-border-width) solid var(--wu-border);border-radius:var(--wu-menu-radius);background:var(--wu-menu-overlay-bg);box-shadow:var(--wu-menu-shadow);color:var(--wu-aside-menu-item-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu-flyout-title{padding:var(--wu-menu-submenu-label-padding);background:var(--wu-menu-submenu-label-bg);color:var(--wu-menu-submenu-label-color);font-weight:var(--wu-menu-submenu-label-weight)}@media(prefers-reduced-motion:reduce){wu-aside-menu,.wu-aside-menu-link,.wu-aside-menu-chevron,.wu-aside-menu-children,.wu-aside-menu-collapse-icon,.wu-aside-menu-close,.wu-aside-menu-mobile.wu-aside-menu-animated,.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open,.wu-aside-menu-mask.wu-aside-menu-animated,.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:none}}}\n"] }]
|
|
766
|
+
}, template: "<div *ngIf=\"mobile\" class=\"wu-aside-menu-mask\" [class.wu-aside-menu-mask-visible]=\"visible\" [class.wu-aside-menu-animated]=\"animated\" aria-hidden=\"true\" (click)=\"close()\"></div>\n\n<nav\n #panel\n class=\"wu-aside-menu\"\n [class]=\"styleClass || ''\"\n [class.wu-aside-menu-mobile]=\"mobile\"\n [class.wu-aside-menu-open]=\"mobile && visible\"\n [class.wu-aside-menu-animated]=\"animated\"\n [class.wu-aside-menu-collapsed]=\"rail\"\n [class.wu-aside-menu-sliding]=\"!!sliding\"\n [class.wu-aside-menu-sliding-collapse]=\"sliding === 'collapse'\"\n [class.wu-aside-menu-sliding-expand]=\"sliding === 'expand'\"\n [style]=\"rootStyle\"\n [id]=\"panelId\"\n tabindex=\"-1\"\n [attr.aria-label]=\"navLabel\"\n [attr.inert]=\"mobile && !visible ? '' : null\"\n (keydown)=\"keydown($event)\"\n>\n <div class=\"wu-aside-menu-header\">\n <ng-content select=\"[wuAsideMenuStart]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"startTemplate; context: slotContext\"></ng-container>\n <button *ngIf=\"mobile\" #closeButton type=\"button\" class=\"wu-aside-menu-close\" [attr.aria-label]=\"t.close\" (click)=\"close()\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n </div>\n\n <div class=\"wu-aside-menu-body\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-root\" role=\"list\" [class.wu-aside-menu-rail]=\"rail\">\n <ng-container *ngIf=\"guestShown\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: guestGroup, key: 'g', depth: 0, rail: false }\"></ng-container>\n <li class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: items, parent: '', depth: 0, rail: rail }\"></ng-container>\n </ul>\n </div>\n\n <div class=\"wu-aside-menu-footer\">\n <ng-content select=\"[wuAsideMenuEnd]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"endTemplate; context: slotContext\"></ng-container>\n <button\n *ngIf=\"showCollapseButton && !mobile\"\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-collapse\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [attr.aria-controls]=\"panelId\"\n [attr.title]=\"rail ? collapseLabel : null\"\n (click)=\"toggleCollapsed()\"\n >\n <svg class=\"wu-aside-menu-collapse-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.5 4 3.5 8l4 4M12.5 4l-4 4 4 4\"></path></svg>\n <span class=\"wu-aside-menu-label\">{{ collapseLabel }}</span>\n </button>\n </div>\n</nav>\n\n<!-- A list of items at one level. -->\n<ng-template #tree let-list let-parent=\"parent\" let-depth=\"depth\" let-rail=\"rail\">\n <ng-container *ngFor=\"let item of list; let i = index\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: item, key: keyOf(parent, i), depth: depth, rail: rail }\"></ng-container>\n </ng-container>\n</ng-template>\n\n<!-- One item: a separator, a section heading, a group (in place, or a flyout on the icon rail), or a link. -->\n<ng-template #entry let-item let-key=\"key\" let-depth=\"depth\" let-rail=\"rail\">\n <li *ngIf=\"item.separator\" class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n\n <li *ngIf=\"!item.separator && isSection(item, depth)\" class=\"wu-aside-menu-section\" [ngClass]=\"item.styleClass || ''\" [ngStyle]=\"item.style || null\">\n <span class=\"wu-aside-menu-section-label\" [id]=\"itemId(key) + '_label'\">{{ textOf(item) }}</span>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"itemId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: rail }\"></ng-container>\n </ul>\n </li>\n\n <li\n *ngIf=\"!item.separator && !isSection(item, depth)\"\n class=\"wu-aside-menu-item\"\n [ngClass]=\"item.styleClass || ''\"\n [ngStyle]=\"item.style || null\"\n [class.wu-aside-menu-item-disabled]=\"item.disabled\"\n >\n <ng-container *ngIf=\"hasChildren(item); else leafEntry\">\n <ng-container *ngIf=\"rail; else inPlace\">\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group wu-aside-menu-link-rail\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n data-wu-flyout=\"\"\n [attr.title]=\"railTitle(item)\"\n [attr.aria-expanded]=\"flyoutKey === key\"\n [attr.aria-controls]=\"flyoutKey === key ? flyoutId(key) : null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"railGroupClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: true, group: true }\"></ng-container>\n </button>\n <div *ngIf=\"flyoutKey === key\" class=\"wu-aside-menu-flyout\" popover=\"manual\" [id]=\"flyoutId(key)\" (focusout)=\"flyoutFocusOut($event)\">\n <div class=\"wu-aside-menu-flyout-title\" [id]=\"flyoutId(key) + '_label'\">{{ textOf(item) }}</div>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"flyoutId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </ng-container>\n <ng-template #inPlace>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"item.title || null\"\n [attr.aria-expanded]=\"isOpen(item)\"\n [attr.aria-controls]=\"itemId(key) + '_children'\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"groupClick(item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: false, group: true }\"></ng-container>\n </button>\n <div class=\"wu-aside-menu-children\" [class.wu-aside-menu-children-open]=\"isOpen(item)\" [id]=\"itemId(key) + '_children'\" [attr.inert]=\"isOpen(item) ? null : ''\">\n <div class=\"wu-aside-menu-children-inner\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-sublist\" role=\"list\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </div>\n </ng-template>\n </ng-container>\n <ng-template #leafEntry>\n <ng-container *ngTemplateOutlet=\"leaf; context: { $implicit: item, key: key, rail: rail }\"></ng-container>\n </ng-template>\n </li>\n</ng-template>\n\n<!-- A link: router link, plain link, or a button that runs the command. -->\n<ng-template #leaf let-item let-key=\"key\" let-rail=\"rail\">\n <a\n *ngIf=\"routed(item); else plainLink\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.target]=\"item.target || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [fragment]=\"item.fragment\"\n [preserveFragment]=\"!!item.preserveFragment\"\n [skipLocationChange]=\"!!item.skipLocationChange\"\n [replaceUrl]=\"!!item.replaceUrl\"\n [state]=\"item.state\"\n routerLinkActive=\"wu-aside-menu-link-active\"\n ariaCurrentWhenActive=\"page\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #plainLink>\n <a\n *ngIf=\"item.url; else commandButton\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [class.wu-aside-menu-link-disabled]=\"item.disabled\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.href]=\"hrefOf(item)\"\n [attr.target]=\"item.target || null\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #commandButton>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </button>\n </ng-template>\n </ng-template>\n</ng-template>\n\n<ng-template #content let-item let-rail=\"rail\" let-group=\"group\">\n <ng-container *ngIf=\"itemTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, collapsed: rail }\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <span *ngIf=\"item.icon\" class=\"wu-aside-menu-icon\" [ngClass]=\"item.icon\" [ngStyle]=\"item.iconStyle || null\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!item.icon && rail\" class=\"wu-aside-menu-initial\" aria-hidden=\"true\">{{ initialOf(item) }}</span>\n <span *ngIf=\"item.escape !== false\" class=\"wu-aside-menu-label\">{{ item.label }}</span>\n <span *ngIf=\"item.escape === false\" class=\"wu-aside-menu-label\" [innerHTML]=\"item.label\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-aside-menu-badge\" [ngClass]=\"item.badgeStyleClass || ''\">{{ item.badge }}</span>\n <svg *ngIf=\"group && !rail\" class=\"wu-aside-menu-chevron\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4 6 4 4 4-4\"></path></svg>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-aside-menu{position:sticky;top:var(--wu-aside-menu-top);display:block;flex:none;align-self:flex-start;box-sizing:border-box;width:var(--wu-aside-menu-width);max-width:100%;height:calc(100vh - var(--wu-aside-menu-top));height:calc(100dvh - var(--wu-aside-menu-top));transition:width var(--wu-transition) ease}wu-aside-menu.wu-aside-menu-host-collapsed{width:var(--wu-aside-menu-collapsed-width)}wu-aside-menu.wu-aside-menu-host-sliding{overflow:hidden}wu-aside-menu.wu-aside-menu-host-sliding:after{content:\"\";position:absolute;inset-block:0;inset-inline-end:0;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);pointer-events:none}wu-aside-menu.wu-aside-menu-host-mobile{display:contents}.wu-aside-menu{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;overflow:hidden;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);background:var(--wu-aside-menu-bg);color:var(--wu-aside-menu-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu.wu-aside-menu-sliding{width:var(--wu-aside-menu-width);border-inline-end-color:transparent}.wu-aside-menu-sliding :is(.wu-aside-menu-label,.wu-aside-menu-section-label){overflow:hidden;white-space:nowrap}.wu-aside-menu-sliding-collapse :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){opacity:0;transition:opacity var(--wu-transition) ease}.wu-aside-menu-sliding-expand :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){animation:wu-aside-menu-fade-in var(--wu-transition) ease both}@keyframes wu-aside-menu-fade-in{0%{opacity:0}}.wu-aside-menu:focus{outline:none}.wu-aside-menu-header,.wu-aside-menu-footer{display:flex;flex:none;gap:.5rem;min-width:0;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-header{align-items:center}.wu-aside-menu-footer{flex-direction:column;align-items:stretch;border-top:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color)}.wu-aside-menu-header:empty,.wu-aside-menu-footer:empty{display:none}.wu-aside-menu-collapsed .wu-aside-menu-header{overflow:hidden}.wu-aside-menu-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-list{display:flex;flex-direction:column;gap:var(--wu-menu-gap);margin:0;padding:0;list-style:none}.wu-aside-menu-sublist{padding-block-start:var(--wu-menu-gap);padding-inline-start:var(--wu-aside-menu-indent)}.wu-aside-menu-item,.wu-aside-menu-section{display:flex;flex-direction:column;min-width:0}.wu-aside-menu-section{gap:var(--wu-menu-gap)}.wu-aside-menu-section-label{display:block;padding:var(--wu-aside-menu-section-padding);color:var(--wu-aside-menu-section-color);font-size:var(--wu-aside-menu-section-size);font-weight:600;overflow-wrap:anywhere}.wu-aside-menu-separator{margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-link{position:relative;display:flex;align-items:center;gap:var(--wu-aside-menu-item-gap);box-sizing:border-box;width:100%;min-width:0;min-height:var(--wu-aside-menu-item-height);margin:0;padding:var(--wu-aside-menu-item-padding);border:0;border-radius:var(--wu-aside-menu-item-radius);background:transparent;color:var(--wu-aside-menu-item-color);font:inherit;text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-aside-menu-link:where(:not(:disabled,.wu-aside-menu-link-disabled)):hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-link:focus-visible{background:var(--wu-aside-menu-item-hover-bg);outline:var(--wu-control-focus-outline);outline-offset:calc(-1 * var(--wu-control-focus-offset) - 1px);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-group-active{color:var(--wu-aside-menu-group-active-color)}.wu-aside-menu-link.wu-aside-menu-link-active{background:var(--wu-aside-menu-item-active-bg);color:var(--wu-aside-menu-item-active-color)}.wu-aside-menu-link:disabled,.wu-aside-menu-link-disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-aside-menu-icon{flex:none;width:1.25rem;color:var(--wu-aside-menu-item-icon-color);text-align:center}.wu-aside-menu-link-active .wu-aside-menu-icon,.wu-aside-menu-group-active .wu-aside-menu-icon{color:inherit}.wu-aside-menu-label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.wu-aside-menu-badge{display:inline-grid;flex:none;place-items:center;min-width:1.25rem;height:1.25rem;padding:0 .375rem;border-radius:999px;background:var(--wu-primary-color);color:var(--wu-primary-contrast);font-size:.75rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-badge{background:var(--wu-aside-menu-item-active-color);color:var(--wu-primary-color)}.wu-aside-menu-chevron{flex:none;width:.875rem;height:.875rem;margin-inline-start:auto;transform:rotate(-90deg);transition:transform var(--wu-transition)}[aria-expanded=true]>.wu-aside-menu-chevron{transform:none}.wu-aside-menu-children{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--wu-transition) ease}.wu-aside-menu-children-open{grid-template-rows:1fr}.wu-aside-menu-children-inner{min-height:0;overflow:hidden}.wu-aside-menu-link-rail{justify-content:center;gap:0;padding-inline:0}.wu-aside-menu-link-rail .wu-aside-menu-label,.wu-aside-menu-rail .wu-aside-menu-section-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}.wu-aside-menu-link-rail .wu-aside-menu-badge{position:absolute;top:.375rem;inset-inline-end:.375rem;min-width:.5rem;height:.5rem;padding:0;font-size:0}.wu-aside-menu-initial{display:inline-grid;flex:none;place-items:center;width:1.75rem;height:1.75rem;border-radius:var(--wu-radius-full);background:var(--wu-aside-menu-item-hover-bg);font-size:.875rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-initial{background:transparent}.wu-aside-menu-rail>.wu-aside-menu-section:not(:first-child):before{content:\"\";display:block;margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-collapse{color:var(--wu-aside-menu-item-icon-color)}.wu-aside-menu-collapse-icon{flex:none;width:1.25rem;height:1rem;transition:transform var(--wu-transition)}.wu-aside-menu-collapsed .wu-aside-menu-collapse-icon{transform:scaleX(-1)}.wu-aside-menu-close{display:inline-grid;flex:none;place-items:center;width:var(--wu-aside-menu-item-height);height:var(--wu-aside-menu-item-height);margin:0;margin-inline-start:auto;padding:0;border:0;border-radius:var(--wu-radius-full);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color var(--wu-transition)}.wu-aside-menu-close:hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-close svg{width:1.125rem;height:1.125rem}.wu-aside-menu-mobile .wu-aside-menu-header{position:relative;min-height:calc(var(--wu-aside-menu-item-height) + 2 * var(--wu-aside-menu-padding))}.wu-aside-menu-mobile .wu-aside-menu-close{position:absolute;inset-block-start:var(--wu-aside-menu-padding);inset-inline-end:var(--wu-aside-menu-padding)}.wu-aside-menu-mobile .wu-aside-menu-header>:first-child:nth-last-child(2){flex:1 1 auto;min-width:0}.wu-aside-menu-mobile{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:var(--wu-aside-menu-z-index);width:var(--wu-aside-menu-mobile-width);max-width:100vw;height:auto;border-inline-end:0;box-shadow:var(--wu-aside-menu-mobile-shadow);visibility:hidden;transform:translate(-100%)}.wu-aside-menu-mobile:dir(rtl){transform:translate(100%)}.wu-aside-menu-mobile.wu-aside-menu-open{visibility:visible;transform:none}.wu-aside-menu-mobile.wu-aside-menu-animated{transition:transform var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open{transition:transform var(--wu-transition) ease,visibility 0s}.wu-aside-menu-mask{position:fixed;inset:0;z-index:var(--wu-aside-menu-z-index);background:var(--wu-mask);opacity:0;visibility:hidden}.wu-aside-menu-mask-visible{opacity:1;visibility:visible}.wu-aside-menu-mask.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s}.wu-aside-menu-flyout{position:fixed;inset:auto;z-index:1200;box-sizing:border-box;min-width:var(--wu-menu-min-width);max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem);margin:0;overflow-y:auto;padding:var(--wu-menu-padding);border:var(--wu-menu-overlay-border-width) solid var(--wu-border);border-radius:var(--wu-menu-radius);background:var(--wu-menu-overlay-bg);box-shadow:var(--wu-menu-shadow);color:var(--wu-aside-menu-item-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu-flyout-title{padding:var(--wu-menu-submenu-label-padding);background:var(--wu-menu-submenu-label-bg);color:var(--wu-menu-submenu-label-color);font-weight:var(--wu-menu-submenu-label-weight)}@media(prefers-reduced-motion:reduce){wu-aside-menu,.wu-aside-menu-link,.wu-aside-menu-chevron,.wu-aside-menu-children,.wu-aside-menu-collapse-icon,.wu-aside-menu-close,.wu-aside-menu-mobile.wu-aside-menu-animated,.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open,.wu-aside-menu-mask.wu-aside-menu-animated,.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:none}}}\n"] }]
|
|
767
767
|
}], ctorParameters: () => [], propDecorators: { model: [{
|
|
768
768
|
type: Input
|
|
769
769
|
}], activeItem: [{
|