@aeris-ui/core 22.0.0-alpha.4 → 22.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/fesm2022/aeris-ui-core-accordion.mjs +12 -12
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-complete.mjs +59 -54
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-avatar.mjs +9 -9
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-badge.mjs +10 -10
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +12 -12
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-group.mjs +3 -3
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +8 -8
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +18 -18
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-carousel.mjs +12 -12
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +40 -39
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +3 -3
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +5 -5
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +9 -9
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-color-picker.mjs +10 -20
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-compare.mjs +12 -12
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +19 -19
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +19 -19
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +15 -8
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +306 -302
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +30 -24
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +3 -3
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-drawer.mjs +30 -24
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +7 -7
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +3 -3
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +24 -24
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-form-field.mjs +181 -0
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-galleria.mjs +27 -27
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +3 -3
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-inplace.mjs +9 -9
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +15 -15
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +5 -5
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +77 -22
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +6 -6
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +6 -6
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-mega-menu.mjs +15 -7
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +38 -18
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +135 -15
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +9 -9
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +15 -15
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +34 -44
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +9 -9
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +9 -9
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +9 -5
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +15 -15
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +21 -17
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +9 -9
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +30 -19
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +9 -9
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +6 -6
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +5 -5
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +3 -3
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-top.mjs +3 -3
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select.mjs +78 -66
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-slider.mjs +3 -3
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +3 -3
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +9 -5
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +6 -6
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +12 -12
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-table.mjs +19 -19
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +76 -25
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +6 -6
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +3 -3
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +29 -10
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +15 -15
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +47 -36
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +5 -5
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toolbar.mjs +18 -18
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +29 -30
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +92 -66
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +16 -16
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +12 -12
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +305 -56
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +6 -2
- package/styles/aeris.css +63 -0
- package/styles/controls.css +9 -2
- package/types/aeris-ui-core-auto-complete.d.ts +4 -2
- package/types/aeris-ui-core-cascade-select.d.ts +4 -2
- package/types/aeris-ui-core-color-picker.d.ts +3 -2
- package/types/aeris-ui-core-context-menu.d.ts +3 -1
- package/types/aeris-ui-core-date-picker.d.ts +5 -2
- package/types/aeris-ui-core-dialog.d.ts +5 -3
- package/types/aeris-ui-core-drawer.d.ts +5 -3
- package/types/aeris-ui-core-form-field.d.ts +65 -0
- package/types/aeris-ui-core-input-number.d.ts +2 -0
- package/types/aeris-ui-core-mega-menu.d.ts +4 -2
- package/types/aeris-ui-core-menu.d.ts +3 -2
- package/types/aeris-ui-core-menubar.d.ts +27 -3
- package/types/aeris-ui-core-multi-select.d.ts +4 -2
- package/types/aeris-ui-core-paginator.d.ts +3 -2
- package/types/aeris-ui-core-password.d.ts +3 -2
- package/types/aeris-ui-core-popover.d.ts +2 -2
- package/types/aeris-ui-core-select.d.ts +6 -2
- package/types/aeris-ui-core-split-button.d.ts +3 -2
- package/types/aeris-ui-core-tabs.d.ts +23 -5
- package/types/aeris-ui-core-tiered-menu.d.ts +5 -3
- package/types/aeris-ui-core-toast.d.ts +3 -2
- package/types/aeris-ui-core-tooltip.d.ts +2 -4
- package/types/aeris-ui-core-tree-select.d.ts +4 -2
- package/types/aeris-ui-core.d.ts +44 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aeris-ui-core-dynamic-dialog.mjs","sources":["../../../projects/aeris-ui/dynamic-dialog/aeris-dynamic-dialog.ts","../../../projects/aeris-ui/dynamic-dialog/aeris-ui-core-dynamic-dialog.ts"],"sourcesContent":["import { DOCUMENT, NgComponentOutlet } from '@angular/common';\nimport {\n ApplicationRef,\n Component,\n ComponentRef,\n EmbeddedViewRef,\n EnvironmentInjector,\n InjectionToken,\n Injector,\n Service,\n Type,\n computed,\n createComponent,\n inject,\n input,\n linkedSignal,\n signal,\n viewChild,\n} from '@angular/core';\n\nimport {\n AerisDialog,\n type AerisDialogCloseReason,\n type AerisDialogPosition,\n type AerisDialogSize,\n type AerisDialogVisibilityChangeEvent,\n} from '@aeris-ui/core/dialog';\nimport type { AerisAppendTo } from '@aeris-ui/core';\n\nexport interface AerisDynamicDialogConfig<TData = unknown> {\n readonly header?: string;\n readonly appendTo?: AerisAppendTo;\n readonly data?: TData;\n readonly inputValues?: Record<string, unknown>;\n readonly modal?: boolean;\n readonly backdrop?: boolean;\n readonly backdropBlur?: boolean;\n readonly backdropBlurAmount?: string;\n readonly dismissibleMask?: boolean;\n readonly closeOnEscape?: boolean;\n readonly closable?: boolean;\n readonly maximizable?: boolean;\n readonly maximized?: boolean;\n readonly draggable?: boolean;\n readonly resizable?: boolean;\n readonly blockScroll?: boolean;\n readonly focusTrap?: boolean;\n readonly restoreFocus?: boolean;\n readonly autoFocus?: boolean;\n readonly initialFocus?: string;\n readonly position?: AerisDialogPosition;\n readonly size?: AerisDialogSize;\n readonly width?: string;\n readonly minWidth?: string;\n readonly maxWidth?: string;\n readonly height?: string;\n readonly maxHeight?: string;\n readonly mobileWidth?: string;\n readonly closeAriaLabel?: string;\n readonly ariaLabel?: string;\n readonly ariaLabelledBy?: string;\n readonly ariaDescribedBy?: string;\n}\n\nexport interface AerisDynamicDialogResolvedConfig<TData = unknown> {\n readonly header: string;\n readonly appendTo: AerisAppendTo;\n readonly data: TData | undefined;\n readonly inputValues: Record<string, unknown>;\n readonly modal: boolean;\n readonly backdrop: boolean;\n readonly backdropBlur: boolean;\n readonly backdropBlurAmount: string;\n readonly dismissibleMask: boolean;\n readonly closeOnEscape: boolean;\n readonly closable: boolean;\n readonly maximizable: boolean;\n readonly maximized: boolean;\n readonly draggable: boolean;\n readonly resizable: boolean;\n readonly blockScroll: boolean;\n readonly focusTrap: boolean;\n readonly restoreFocus: boolean;\n readonly autoFocus: boolean;\n readonly initialFocus: string;\n readonly position: AerisDialogPosition;\n readonly size: AerisDialogSize;\n readonly width: string;\n readonly minWidth: string;\n readonly maxWidth: string;\n readonly height: string;\n readonly maxHeight: string;\n readonly mobileWidth: string;\n readonly closeAriaLabel: string;\n readonly ariaLabel: string;\n readonly ariaLabelledBy: string;\n readonly ariaDescribedBy: string;\n}\n\nexport interface AerisDynamicDialogShowEvent {\n readonly originalEvent: Event | null;\n}\n\nexport interface AerisDynamicDialogCloseEvent<TResult = unknown> {\n readonly originalEvent: Event | null;\n readonly reason: AerisDialogCloseReason;\n readonly result: TResult | undefined;\n}\n\nexport interface AerisDynamicDialogSubscription {\n unsubscribe(): void;\n}\n\nexport interface AerisDynamicDialogSubscribable<T> {\n subscribe(next: (event: T) => void): AerisDynamicDialogSubscription;\n}\n\nexport const AERIS_DYNAMIC_DIALOG_CONFIG = new InjectionToken<\n AerisDynamicDialogResolvedConfig\n>('AERIS_DYNAMIC_DIALOG_CONFIG');\n\nexport const AERIS_DYNAMIC_DIALOG_DATA = new InjectionToken<unknown>(\n 'AERIS_DYNAMIC_DIALOG_DATA',\n);\n\ninterface AerisDynamicDialogRefController<TResult> {\n readonly close: (result: TResult | undefined, originalEvent: Event | null) => void;\n readonly destroy: () => void;\n readonly focus: (options?: FocusOptions) => void;\n readonly maximize: () => void;\n readonly restore: () => void;\n readonly toggleMaximized: () => void;\n}\n\nclass AerisDynamicDialogEventStream<T> implements AerisDynamicDialogSubscribable<T> {\n private readonly listeners = new Set<(event: T) => void>();\n private completed = false;\n\n subscribe(next: (event: T) => void): AerisDynamicDialogSubscription {\n if (this.completed) return { unsubscribe: () => undefined };\n this.listeners.add(next);\n return {\n unsubscribe: () => {\n this.listeners.delete(next);\n },\n };\n }\n\n next(event: T): void {\n if (this.completed) return;\n for (const listener of [...this.listeners]) listener(event);\n }\n\n complete(): void {\n this.completed = true;\n this.listeners.clear();\n }\n}\n\nexport class AerisDynamicDialogRef<TResult = unknown> {\n private readonly closedStream = new AerisDynamicDialogEventStream<\n AerisDynamicDialogCloseEvent<TResult>\n >();\n private readonly shownStream = new AerisDynamicDialogEventStream<AerisDynamicDialogShowEvent>();\n private controller: AerisDynamicDialogRefController<TResult> | null = null;\n private closedOnce = false;\n\n readonly closed: AerisDynamicDialogSubscribable<AerisDynamicDialogCloseEvent<TResult>> =\n this.closedStream;\n readonly shown: AerisDynamicDialogSubscribable<AerisDynamicDialogShowEvent> = this.shownStream;\n\n close(result?: TResult, originalEvent: Event | null = null): void {\n if (this.closedOnce) return;\n this.controller?.close(result, originalEvent);\n }\n\n destroy(): void {\n if (this.closedOnce) return;\n this.closedOnce = true;\n this.controller?.destroy();\n this.closedStream.complete();\n this.shownStream.complete();\n this.controller = null;\n }\n\n focus(options?: FocusOptions): void {\n this.controller?.focus(options);\n }\n\n maximize(): void {\n this.controller?.maximize();\n }\n\n restore(): void {\n this.controller?.restore();\n }\n\n toggleMaximized(): void {\n this.controller?.toggleMaximized();\n }\n\n attach(controller: AerisDynamicDialogRefController<TResult>): void {\n this.controller = controller;\n }\n\n notifyShown(event: AerisDynamicDialogShowEvent): void {\n if (this.closedOnce) return;\n this.shownStream.next(event);\n }\n\n notifyClosed(event: AerisDynamicDialogCloseEvent<TResult>): void {\n if (this.closedOnce) return;\n this.closedOnce = true;\n this.closedStream.next(event);\n this.closedStream.complete();\n this.shownStream.complete();\n this.controller = null;\n }\n}\n\n@Component({\n selector: 'aeris-dynamic-dialog-host',\n imports: [AerisDialog, NgComponentOutlet],\n template: `\n <aeris-dialog\n #dialog\n [appendTo]=\"settings().appendTo\"\n [header]=\"settings().header\"\n [modal]=\"settings().modal\"\n [backdrop]=\"settings().backdrop\"\n [backdropBlur]=\"settings().backdropBlur\"\n [backdropBlurAmount]=\"settings().backdropBlurAmount\"\n [dismissibleMask]=\"settings().dismissibleMask\"\n [closeOnEscape]=\"settings().closeOnEscape\"\n [closable]=\"settings().closable\"\n [maximizable]=\"settings().maximizable\"\n [(maximized)]=\"maximized\"\n [draggable]=\"settings().draggable\"\n [resizable]=\"settings().resizable\"\n [blockScroll]=\"settings().blockScroll\"\n [focusTrap]=\"settings().focusTrap\"\n [restoreFocus]=\"settings().restoreFocus\"\n [autoFocus]=\"settings().autoFocus\"\n [initialFocus]=\"settings().initialFocus\"\n [position]=\"settings().position\"\n [size]=\"settings().size\"\n [width]=\"settings().width\"\n [minWidth]=\"settings().minWidth\"\n [maxWidth]=\"settings().maxWidth\"\n [height]=\"settings().height\"\n [maxHeight]=\"settings().maxHeight\"\n [mobileWidth]=\"settings().mobileWidth\"\n [closeAriaLabel]=\"settings().closeAriaLabel\"\n [ariaLabel]=\"settings().ariaLabel\"\n [ariaLabelledBy]=\"settings().ariaLabelledBy\"\n [ariaDescribedBy]=\"settings().ariaDescribedBy\"\n [visible]=\"visible()\"\n (shown)=\"handleShown($event)\"\n (hidden)=\"handleHidden($event)\"\n >\n <ng-container\n [ngComponentOutlet]=\"componentType()\"\n [ngComponentOutletInputs]=\"settings().inputValues\"\n [ngComponentOutletInjector]=\"contentInjector()\"\n />\n </aeris-dialog>\n `,\n host: {\n class: 'aeris-dynamic-dialog-host',\n },\n})\nexport class AerisDynamicDialogHost {\n readonly componentType = input.required<Type<unknown>>();\n readonly contentInjector = input.required<Injector>();\n readonly config = input.required<AerisDynamicDialogResolvedConfig>();\n readonly dialogRef = input.required<AerisDynamicDialogRef>();\n\n protected readonly dialog = viewChild<AerisDialog>('dialog');\n protected readonly visible = signal(true);\n protected readonly settings = computed(() => this.config());\n protected readonly maximized = linkedSignal(() => this.settings().maximized);\n private closeResult: unknown;\n\n closeWithResult(result: unknown, originalEvent: Event | null): void {\n this.closeResult = result;\n this.dialog()?.hide(originalEvent, 'api');\n }\n\n focus(options?: FocusOptions): void {\n this.dialog()?.focus(options);\n }\n\n maximize(): void {\n this.dialog()?.maximize();\n }\n\n restore(): void {\n this.dialog()?.restore();\n }\n\n toggleMaximized(): void {\n this.dialog()?.toggleMaximized();\n }\n\n protected handleShown(event: AerisDialogVisibilityChangeEvent): void {\n queueMicrotask(() => this.dialogRef().notifyShown({ originalEvent: event.originalEvent }));\n }\n\n protected handleHidden(event: AerisDialogVisibilityChangeEvent): void {\n this.visible.set(false);\n this.dialogRef().notifyClosed({\n originalEvent: event.originalEvent,\n reason: event.reason,\n result: this.closeResult,\n });\n }\n}\n\n@Service()\nexport class AerisDynamicDialogService {\n private readonly appRef = inject(ApplicationRef);\n private readonly document = inject(DOCUMENT);\n private readonly environmentInjector = inject(EnvironmentInjector);\n private readonly activeRefs = new Set<AerisDynamicDialogRef<unknown>>();\n\n open<TComponent, TData = unknown, TResult = unknown>(\n componentType: Type<TComponent>,\n config: AerisDynamicDialogConfig<TData> = {},\n ): AerisDynamicDialogRef<TResult> {\n const resolvedConfig = this.resolveConfig(config);\n const ref = new AerisDynamicDialogRef<TResult>();\n const contentInjector = Injector.create({\n parent: this.environmentInjector,\n providers: [\n { provide: AerisDynamicDialogRef, useValue: ref },\n { provide: AERIS_DYNAMIC_DIALOG_CONFIG, useValue: resolvedConfig },\n { provide: AERIS_DYNAMIC_DIALOG_DATA, useValue: resolvedConfig.data },\n ],\n });\n const hostRef = createComponent(AerisDynamicDialogHost, {\n environmentInjector: this.environmentInjector,\n });\n const cleanup = (): void => {\n if (!this.activeRefs.delete(ref as AerisDynamicDialogRef<unknown>)) return;\n this.appRef.detachView(hostRef.hostView);\n hostRef.destroy();\n };\n\n ref.attach({\n close: (result, originalEvent) => {\n hostRef.instance.closeWithResult(result, originalEvent);\n hostRef.changeDetectorRef.detectChanges();\n },\n destroy: cleanup,\n focus: (options) => hostRef.instance.focus(options),\n maximize: () => hostRef.instance.maximize(),\n restore: () => hostRef.instance.restore(),\n toggleMaximized: () => hostRef.instance.toggleMaximized(),\n });\n ref.closed.subscribe(() => queueMicrotask(cleanup));\n this.activeRefs.add(ref as AerisDynamicDialogRef<unknown>);\n\n hostRef.setInput('componentType', componentType);\n hostRef.setInput('contentInjector', contentInjector);\n hostRef.setInput('config', resolvedConfig);\n hostRef.setInput('dialogRef', ref);\n this.appRef.attachView(hostRef.hostView);\n this.document.body.appendChild(this.rootNode(hostRef));\n hostRef.changeDetectorRef.detectChanges();\n\n return ref;\n }\n\n closeAll(): void {\n for (const ref of [...this.activeRefs].reverse()) ref.close();\n }\n\n destroyAll(): void {\n for (const ref of [...this.activeRefs].reverse()) ref.destroy();\n }\n\n private resolveConfig<TData>(\n config: AerisDynamicDialogConfig<TData>,\n ): AerisDynamicDialogResolvedConfig<TData> {\n return {\n header: config.header ?? '',\n appendTo: config.appendTo ?? 'body',\n data: config.data,\n inputValues: config.inputValues ?? {},\n modal: config.modal ?? true,\n backdrop: config.backdrop ?? true,\n backdropBlur: config.backdropBlur ?? true,\n backdropBlurAmount: config.backdropBlurAmount ?? '',\n dismissibleMask: config.dismissibleMask ?? false,\n closeOnEscape: config.closeOnEscape ?? true,\n closable: config.closable ?? true,\n maximizable: config.maximizable ?? false,\n maximized: config.maximized ?? false,\n draggable: config.draggable ?? false,\n resizable: config.resizable ?? false,\n blockScroll: config.blockScroll ?? true,\n focusTrap: config.focusTrap ?? true,\n restoreFocus: config.restoreFocus ?? true,\n autoFocus: config.autoFocus ?? true,\n initialFocus: config.initialFocus ?? '',\n position: config.position ?? 'center',\n size: config.size ?? 'md',\n width: config.width ?? '',\n minWidth: config.minWidth ?? '',\n maxWidth: config.maxWidth ?? '',\n height: config.height ?? '',\n maxHeight: config.maxHeight ?? '',\n mobileWidth: config.mobileWidth ?? '',\n closeAriaLabel: config.closeAriaLabel ?? 'Close dialog',\n ariaLabel: config.ariaLabel ?? '',\n ariaLabelledBy: config.ariaLabelledBy ?? '',\n ariaDescribedBy: config.ariaDescribedBy ?? '',\n };\n }\n\n private rootNode(hostRef: ComponentRef<AerisDynamicDialogHost>): Node {\n const [node] = (hostRef.hostView as EmbeddedViewRef<unknown>).rootNodes;\n return node instanceof Node ? node : this.document.createTextNode('');\n }\n}\n\nexport const AerisDynamicDialogModule = [AerisDynamicDialogHost] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAqHa,2BAA2B,GAAG,IAAI,cAAc,CAE3D,6BAA6B;MAElB,yBAAyB,GAAG,IAAI,cAAc,CACzD,2BAA2B;AAY7B,MAAM,6BAA6B,CAAA;AAChB,IAAA,SAAS,GAAG,IAAI,GAAG,EAAsB;IAClD,SAAS,GAAG,KAAK;AAEzB,IAAA,SAAS,CAAC,IAAwB,EAAA;QAChC,IAAI,IAAI,CAAC,SAAS;YAAE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,EAAE;AAC3D,QAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;QACxB,OAAO;YACL,WAAW,EAAE,MAAK;AAChB,gBAAA,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;YAC7B,CAAC;SACF;IACH;AAEA,IAAA,IAAI,CAAC,KAAQ,EAAA;QACX,IAAI,IAAI,CAAC,SAAS;YAAE;QACpB,KAAK,MAAM,QAAQ,IAAI,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;YAAE,QAAQ,CAAC,KAA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EAAA,UAAA,EAAA,CAAA;kBADrC;;AA4GM,MAAM,wBAAwB,GAAG,CAAC,sBAAsB;;AC1a/D;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"aeris-ui-core-dynamic-dialog.mjs","sources":["../../../projects/aeris-ui/dynamic-dialog/aeris-dynamic-dialog.ts","../../../projects/aeris-ui/dynamic-dialog/aeris-ui-core-dynamic-dialog.ts"],"sourcesContent":["import { DOCUMENT, NgComponentOutlet } from '@angular/common';\nimport {\n ApplicationRef,\n Component,\n ComponentRef,\n EmbeddedViewRef,\n EnvironmentInjector,\n InjectionToken,\n Injector,\n Service,\n Type,\n computed,\n createComponent,\n inject,\n input,\n linkedSignal,\n signal,\n viewChild,\n} from '@angular/core';\n\nimport {\n AerisDialog,\n type AerisDialogCloseReason,\n type AerisDialogPosition,\n type AerisDialogSize,\n type AerisDialogVisibilityChangeEvent,\n} from '@aeris-ui/core/dialog';\nimport type { AerisAppendTo } from '@aeris-ui/core';\n\nexport interface AerisDynamicDialogConfig<TData = unknown> {\n readonly header?: string;\n readonly appendTo?: AerisAppendTo;\n readonly data?: TData;\n readonly inputValues?: Record<string, unknown>;\n readonly modal?: boolean;\n readonly backdrop?: boolean;\n readonly backdropBlur?: boolean;\n readonly backdropBlurAmount?: string;\n readonly dismissibleMask?: boolean;\n readonly closeOnEscape?: boolean;\n readonly closable?: boolean;\n readonly maximizable?: boolean;\n readonly maximized?: boolean;\n readonly draggable?: boolean;\n readonly resizable?: boolean;\n readonly blockScroll?: boolean;\n readonly focusTrap?: boolean;\n readonly restoreFocus?: boolean;\n readonly autoFocus?: boolean;\n readonly initialFocus?: string;\n readonly position?: AerisDialogPosition;\n readonly size?: AerisDialogSize;\n readonly width?: string;\n readonly minWidth?: string;\n readonly maxWidth?: string;\n readonly height?: string;\n readonly maxHeight?: string;\n readonly mobileWidth?: string;\n readonly closeAriaLabel?: string;\n readonly ariaLabel?: string;\n readonly ariaLabelledBy?: string;\n readonly ariaDescribedBy?: string;\n}\n\nexport interface AerisDynamicDialogResolvedConfig<TData = unknown> {\n readonly header: string;\n readonly appendTo: AerisAppendTo;\n readonly data: TData | undefined;\n readonly inputValues: Record<string, unknown>;\n readonly modal: boolean;\n readonly backdrop: boolean;\n readonly backdropBlur: boolean;\n readonly backdropBlurAmount: string;\n readonly dismissibleMask: boolean;\n readonly closeOnEscape: boolean;\n readonly closable: boolean;\n readonly maximizable: boolean;\n readonly maximized: boolean;\n readonly draggable: boolean;\n readonly resizable: boolean;\n readonly blockScroll: boolean;\n readonly focusTrap: boolean;\n readonly restoreFocus: boolean;\n readonly autoFocus: boolean;\n readonly initialFocus: string;\n readonly position: AerisDialogPosition;\n readonly size: AerisDialogSize;\n readonly width: string;\n readonly minWidth: string;\n readonly maxWidth: string;\n readonly height: string;\n readonly maxHeight: string;\n readonly mobileWidth: string;\n readonly closeAriaLabel: string;\n readonly ariaLabel: string;\n readonly ariaLabelledBy: string;\n readonly ariaDescribedBy: string;\n}\n\nexport interface AerisDynamicDialogShowEvent {\n readonly originalEvent: Event | null;\n}\n\nexport interface AerisDynamicDialogCloseEvent<TResult = unknown> {\n readonly originalEvent: Event | null;\n readonly reason: AerisDialogCloseReason;\n readonly result: TResult | undefined;\n}\n\nexport interface AerisDynamicDialogSubscription {\n unsubscribe(): void;\n}\n\nexport interface AerisDynamicDialogSubscribable<T> {\n subscribe(next: (event: T) => void): AerisDynamicDialogSubscription;\n}\n\nexport const AERIS_DYNAMIC_DIALOG_CONFIG = new InjectionToken<\n AerisDynamicDialogResolvedConfig\n>('AERIS_DYNAMIC_DIALOG_CONFIG');\n\nexport const AERIS_DYNAMIC_DIALOG_DATA = new InjectionToken<unknown>(\n 'AERIS_DYNAMIC_DIALOG_DATA',\n);\n\ninterface AerisDynamicDialogRefController<TResult> {\n readonly close: (result: TResult | undefined, originalEvent: Event | null) => void;\n readonly destroy: () => void;\n readonly focus: (options?: FocusOptions) => void;\n readonly maximize: () => void;\n readonly restore: () => void;\n readonly toggleMaximized: () => void;\n}\n\nclass AerisDynamicDialogEventStream<T> implements AerisDynamicDialogSubscribable<T> {\n private readonly listeners = new Set<(event: T) => void>();\n private completed = false;\n\n subscribe(next: (event: T) => void): AerisDynamicDialogSubscription {\n if (this.completed) return { unsubscribe: () => undefined };\n this.listeners.add(next);\n return {\n unsubscribe: () => {\n this.listeners.delete(next);\n },\n };\n }\n\n next(event: T): void {\n if (this.completed) return;\n for (const listener of [...this.listeners]) listener(event);\n }\n\n complete(): void {\n this.completed = true;\n this.listeners.clear();\n }\n}\n\nexport class AerisDynamicDialogRef<TResult = unknown> {\n private readonly closedStream = new AerisDynamicDialogEventStream<\n AerisDynamicDialogCloseEvent<TResult>\n >();\n private readonly shownStream = new AerisDynamicDialogEventStream<AerisDynamicDialogShowEvent>();\n private controller: AerisDynamicDialogRefController<TResult> | null = null;\n private closedOnce = false;\n\n readonly closed: AerisDynamicDialogSubscribable<AerisDynamicDialogCloseEvent<TResult>> =\n this.closedStream;\n readonly shown: AerisDynamicDialogSubscribable<AerisDynamicDialogShowEvent> = this.shownStream;\n\n close(result?: TResult, originalEvent: Event | null = null): void {\n if (this.closedOnce) return;\n this.controller?.close(result, originalEvent);\n }\n\n destroy(): void {\n if (this.closedOnce) return;\n this.closedOnce = true;\n this.controller?.destroy();\n this.closedStream.complete();\n this.shownStream.complete();\n this.controller = null;\n }\n\n focus(options?: FocusOptions): void {\n this.controller?.focus(options);\n }\n\n maximize(): void {\n this.controller?.maximize();\n }\n\n restore(): void {\n this.controller?.restore();\n }\n\n toggleMaximized(): void {\n this.controller?.toggleMaximized();\n }\n\n attach(controller: AerisDynamicDialogRefController<TResult>): void {\n this.controller = controller;\n }\n\n notifyShown(event: AerisDynamicDialogShowEvent): void {\n if (this.closedOnce) return;\n this.shownStream.next(event);\n }\n\n notifyClosed(event: AerisDynamicDialogCloseEvent<TResult>): void {\n if (this.closedOnce) return;\n this.closedOnce = true;\n this.closedStream.next(event);\n this.closedStream.complete();\n this.shownStream.complete();\n this.controller = null;\n }\n}\n\n@Component({\n selector: 'aeris-dynamic-dialog-host',\n imports: [AerisDialog, NgComponentOutlet],\n template: `\n <aeris-dialog\n #dialog\n [appendTo]=\"settings().appendTo\"\n [header]=\"settings().header\"\n [modal]=\"settings().modal\"\n [backdrop]=\"settings().backdrop\"\n [backdropBlur]=\"settings().backdropBlur\"\n [backdropBlurAmount]=\"settings().backdropBlurAmount\"\n [dismissibleMask]=\"settings().dismissibleMask\"\n [closeOnEscape]=\"settings().closeOnEscape\"\n [closable]=\"settings().closable\"\n [maximizable]=\"settings().maximizable\"\n [(maximized)]=\"maximized\"\n [draggable]=\"settings().draggable\"\n [resizable]=\"settings().resizable\"\n [blockScroll]=\"settings().blockScroll\"\n [focusTrap]=\"settings().focusTrap\"\n [restoreFocus]=\"settings().restoreFocus\"\n [autoFocus]=\"settings().autoFocus\"\n [initialFocus]=\"settings().initialFocus\"\n [position]=\"settings().position\"\n [size]=\"settings().size\"\n [width]=\"settings().width\"\n [minWidth]=\"settings().minWidth\"\n [maxWidth]=\"settings().maxWidth\"\n [height]=\"settings().height\"\n [maxHeight]=\"settings().maxHeight\"\n [mobileWidth]=\"settings().mobileWidth\"\n [closeAriaLabel]=\"settings().closeAriaLabel\"\n [ariaLabel]=\"settings().ariaLabel\"\n [ariaLabelledBy]=\"settings().ariaLabelledBy\"\n [ariaDescribedBy]=\"settings().ariaDescribedBy\"\n [visible]=\"visible()\"\n (shown)=\"handleShown($event)\"\n (hidden)=\"handleHidden($event)\"\n >\n <ng-container\n [ngComponentOutlet]=\"componentType()\"\n [ngComponentOutletInputs]=\"settings().inputValues\"\n [ngComponentOutletInjector]=\"contentInjector()\"\n />\n </aeris-dialog>\n `,\n host: {\n class: 'aeris-dynamic-dialog-host',\n },\n})\nexport class AerisDynamicDialogHost {\n readonly componentType = input.required<Type<unknown>>();\n readonly contentInjector = input.required<Injector>();\n readonly config = input.required<AerisDynamicDialogResolvedConfig>();\n readonly dialogRef = input.required<AerisDynamicDialogRef>();\n\n protected readonly dialog = viewChild<AerisDialog>('dialog');\n protected readonly visible = signal(true);\n protected readonly settings = computed(() => this.config());\n protected readonly maximized = linkedSignal(() => this.settings().maximized);\n private closeResult: unknown;\n\n closeWithResult(result: unknown, originalEvent: Event | null): void {\n this.closeResult = result;\n this.dialog()?.hide(originalEvent, 'api');\n }\n\n focus(options?: FocusOptions): void {\n this.dialog()?.focus(options);\n }\n\n maximize(): void {\n this.dialog()?.maximize();\n }\n\n restore(): void {\n this.dialog()?.restore();\n }\n\n toggleMaximized(): void {\n this.dialog()?.toggleMaximized();\n }\n\n protected handleShown(event: AerisDialogVisibilityChangeEvent): void {\n queueMicrotask(() => this.dialogRef().notifyShown({ originalEvent: event.originalEvent }));\n }\n\n protected handleHidden(event: AerisDialogVisibilityChangeEvent): void {\n this.visible.set(false);\n this.dialogRef().notifyClosed({\n originalEvent: event.originalEvent,\n reason: event.reason,\n result: this.closeResult,\n });\n }\n}\n\n@Service()\nexport class AerisDynamicDialogService {\n private readonly appRef = inject(ApplicationRef);\n private readonly document = inject(DOCUMENT);\n private readonly environmentInjector = inject(EnvironmentInjector);\n private readonly activeRefs = new Set<AerisDynamicDialogRef<unknown>>();\n\n open<TComponent, TData = unknown, TResult = unknown>(\n componentType: Type<TComponent>,\n config: AerisDynamicDialogConfig<TData> = {},\n ): AerisDynamicDialogRef<TResult> {\n const resolvedConfig = this.resolveConfig(config);\n const ref = new AerisDynamicDialogRef<TResult>();\n const contentInjector = Injector.create({\n parent: this.environmentInjector,\n providers: [\n { provide: AerisDynamicDialogRef, useValue: ref },\n { provide: AERIS_DYNAMIC_DIALOG_CONFIG, useValue: resolvedConfig },\n { provide: AERIS_DYNAMIC_DIALOG_DATA, useValue: resolvedConfig.data },\n ],\n });\n const hostRef = createComponent(AerisDynamicDialogHost, {\n environmentInjector: this.environmentInjector,\n });\n const cleanup = (): void => {\n if (!this.activeRefs.delete(ref as AerisDynamicDialogRef<unknown>)) return;\n this.appRef.detachView(hostRef.hostView);\n hostRef.destroy();\n };\n\n ref.attach({\n close: (result, originalEvent) => {\n hostRef.instance.closeWithResult(result, originalEvent);\n hostRef.changeDetectorRef.detectChanges();\n },\n destroy: cleanup,\n focus: (options) => hostRef.instance.focus(options),\n maximize: () => hostRef.instance.maximize(),\n restore: () => hostRef.instance.restore(),\n toggleMaximized: () => hostRef.instance.toggleMaximized(),\n });\n ref.closed.subscribe(() => queueMicrotask(cleanup));\n this.activeRefs.add(ref as AerisDynamicDialogRef<unknown>);\n\n hostRef.setInput('componentType', componentType);\n hostRef.setInput('contentInjector', contentInjector);\n hostRef.setInput('config', resolvedConfig);\n hostRef.setInput('dialogRef', ref);\n this.appRef.attachView(hostRef.hostView);\n this.document.body.appendChild(this.rootNode(hostRef));\n hostRef.changeDetectorRef.detectChanges();\n\n return ref;\n }\n\n closeAll(): void {\n for (const ref of [...this.activeRefs].reverse()) ref.close();\n }\n\n destroyAll(): void {\n for (const ref of [...this.activeRefs].reverse()) ref.destroy();\n }\n\n private resolveConfig<TData>(\n config: AerisDynamicDialogConfig<TData>,\n ): AerisDynamicDialogResolvedConfig<TData> {\n return {\n header: config.header ?? '',\n appendTo: config.appendTo ?? 'body',\n data: config.data,\n inputValues: config.inputValues ?? {},\n modal: config.modal ?? true,\n backdrop: config.backdrop ?? true,\n backdropBlur: config.backdropBlur ?? true,\n backdropBlurAmount: config.backdropBlurAmount ?? '',\n dismissibleMask: config.dismissibleMask ?? false,\n closeOnEscape: config.closeOnEscape ?? true,\n closable: config.closable ?? true,\n maximizable: config.maximizable ?? false,\n maximized: config.maximized ?? false,\n draggable: config.draggable ?? false,\n resizable: config.resizable ?? false,\n blockScroll: config.blockScroll ?? true,\n focusTrap: config.focusTrap ?? true,\n restoreFocus: config.restoreFocus ?? true,\n autoFocus: config.autoFocus ?? true,\n initialFocus: config.initialFocus ?? '',\n position: config.position ?? 'center',\n size: config.size ?? 'md',\n width: config.width ?? '',\n minWidth: config.minWidth ?? '',\n maxWidth: config.maxWidth ?? '',\n height: config.height ?? '',\n maxHeight: config.maxHeight ?? '',\n mobileWidth: config.mobileWidth ?? '',\n closeAriaLabel: config.closeAriaLabel ?? 'Close dialog',\n ariaLabel: config.ariaLabel ?? '',\n ariaLabelledBy: config.ariaLabelledBy ?? '',\n ariaDescribedBy: config.ariaDescribedBy ?? '',\n };\n }\n\n private rootNode(hostRef: ComponentRef<AerisDynamicDialogHost>): Node {\n const [node] = (hostRef.hostView as EmbeddedViewRef<unknown>).rootNodes;\n return node instanceof Node ? node : this.document.createTextNode('');\n }\n}\n\nexport const AerisDynamicDialogModule = [AerisDynamicDialogHost] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAqHa,2BAA2B,GAAG,IAAI,cAAc,CAE3D,6BAA6B;MAElB,yBAAyB,GAAG,IAAI,cAAc,CACzD,2BAA2B;AAY7B,MAAM,6BAA6B,CAAA;AAChB,IAAA,SAAS,GAAG,IAAI,GAAG,EAAsB;IAClD,SAAS,GAAG,KAAK;AAEzB,IAAA,SAAS,CAAC,IAAwB,EAAA;QAChC,IAAI,IAAI,CAAC,SAAS;YAAE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,EAAE;AAC3D,QAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;QACxB,OAAO;YACL,WAAW,EAAE,MAAK;AAChB,gBAAA,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;YAC7B,CAAC;SACF;IACH;AAEA,IAAA,IAAI,CAAC,KAAQ,EAAA;QACX,IAAI,IAAI,CAAC,SAAS;YAAE;QACpB,KAAK,MAAM,QAAQ,IAAI,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;YAAE,QAAQ,CAAC,KAAK,CAAC;IAC7D;IAEA,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,SAAS,GAAG,IAAI;AACrB,QAAA,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE;IACxB;AACD;MAEY,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
543
543
|
}
|
|
544
544
|
this.activeList.set(currentNode instanceof ListNode ? currentNode.getListType() : null);
|
|
545
545
|
}
|
|
546
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
547
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
546
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
547
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: AerisEditorComponent, isStandalone: true, selector: "aeris-editor", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, toolbarAriaLabel: { classPropertyName: "toolbarAriaLabel", publicName: "toolbarAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, minHeight: { classPropertyName: "minHeight", publicName: "minHeight", isSignal: true, isRequired: false, transformFunction: null }, formats: { classPropertyName: "formats", publicName: "formats", isSignal: true, isRequired: false, transformFunction: null }, namespace: { classPropertyName: "namespace", publicName: "namespace", isSignal: true, isRequired: false, transformFunction: null }, lexicalTheme: { classPropertyName: "lexicalTheme", publicName: "lexicalTheme", isSignal: true, isRequired: false, transformFunction: null }, htmlConfig: { classPropertyName: "htmlConfig", publicName: "htmlConfig", isSignal: true, isRequired: false, transformFunction: null }, extensions: { classPropertyName: "extensions", publicName: "extensions", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, showToolbar: { classPropertyName: "showToolbar", publicName: "showToolbar", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "valueInput", changed: "changed", focused: "focused", blurred: "blurred", touch: "touch", ready: "ready" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
|
|
548
548
|
{
|
|
549
549
|
provide: NG_VALUE_ACCESSOR,
|
|
550
550
|
useExisting: forwardRef(() => AerisEditorComponent),
|
|
@@ -1039,7 +1039,7 @@ class AerisEditorComponent {
|
|
|
1039
1039
|
</div>
|
|
1040
1040
|
`, isInline: true, styles: [":host{display:inline-block;color:var(--aeris-text)}:host([data-fluid]){display:block;width:100%}.aeris-editor{--aeris-editor-padding: .875rem;--aeris-editor-font-size: .9375rem;--aeris-editor-line-height: 1.6;display:grid;overflow:hidden;width:min(100%,44rem);border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-md, .875rem);background:var(--aeris-surface);box-shadow:var(--aeris-shadow-xs, 0 1px 2px rgba(15, 23, 42, .05));transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.aeris-editor[data-fluid]{width:100%}.aeris-editor[data-size=sm]{--aeris-editor-padding: .75rem;--aeris-editor-font-size: .875rem}.aeris-editor[data-size=lg]{--aeris-editor-padding: 1rem;--aeris-editor-font-size: 1rem}.aeris-editor[data-appearance=filled]{background:var(--aeris-surface-2)}.aeris-editor:focus-within{border-color:var(--aeris-focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus) 18%,transparent)}.aeris-editor[data-invalid]{border-color:var(--aeris-danger)}.aeris-editor[data-disabled]{cursor:not-allowed;opacity:.62}.aeris-editor__toolbar{display:flex;flex-wrap:wrap;gap:.25rem;align-items:center;padding:.5rem;border-bottom:1px solid var(--aeris-border);background:color-mix(in srgb,var(--aeris-surface-2) 82%,transparent)}.aeris-editor__toolbar button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:0;border-radius:var(--aeris-radius-sm, .625rem);background:transparent;color:var(--aeris-text);font:inherit;font-size:.8125rem;font-weight:700;cursor:pointer;transition:background .14s ease,color .14s ease,box-shadow .14s ease}.aeris-editor__toolbar button:hover:not(:disabled),.aeris-editor__toolbar button[aria-pressed=true]{background:var(--aeris-primary-soft);color:var(--aeris-text)}.aeris-editor__toolbar button:focus-visible{outline:2px solid var(--aeris-focus);outline-offset:2px}.aeris-editor__toolbar button:disabled{cursor:not-allowed;opacity:.45}.aeris-editor__toolbar svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.9}:dir(rtl) .aeris-editor__logical-icon{transform:scaleX(-1)}.aeris-editor__separator{width:1px;height:1.5rem;margin-inline:.125rem;background:var(--aeris-border)}.aeris-editor__underline{text-decoration:underline;text-underline-offset:.14em}.aeris-editor__strikethrough{text-decoration:line-through}.aeris-editor__toolbar sub,.aeris-editor__toolbar sup{font-size:.65em}.aeris-editor__content-shell{position:relative;display:grid}.aeris-editor__content{position:relative;z-index:1;min-width:0;padding:var(--aeris-editor-padding);color:var(--aeris-text);font-size:var(--aeris-editor-font-size);line-height:var(--aeris-editor-line-height);outline:0;overflow-wrap:anywhere}.aeris-editor__content[contenteditable=false]{cursor:default}.aeris-editor__placeholder{position:absolute;inset-block-start:var(--aeris-editor-padding);inset-inline-start:var(--aeris-editor-padding);color:var(--aeris-text-muted);font-size:var(--aeris-editor-font-size);line-height:var(--aeris-editor-line-height);pointer-events:none}.aeris-editor-content__paragraph{margin:0 0 .65rem}.aeris-editor-content__paragraph:last-child{margin-bottom:0}.aeris-editor-content__heading{margin:0 0 .75rem;color:var(--aeris-text);font-size:1.3em;line-height:1.25}.aeris-editor-content__heading--h1{font-size:1.65em}.aeris-editor-content__heading--h2{font-size:1.35em}.aeris-editor-content__heading--h3{font-size:1.15em}.aeris-editor-content__heading--h4{font-size:1.05em}.aeris-editor-content__heading--h5{font-size:.95em}.aeris-editor-content__heading--h6{font-size:.85em;letter-spacing:.02em;text-transform:uppercase}.aeris-editor-content__quote{margin:0 0 .75rem;padding-inline-start:.875rem;border-inline-start:3px solid var(--aeris-primary);color:var(--aeris-text-muted)}.aeris-editor-content__unordered-list,.aeris-editor-content__ordered-list{margin:0 0 .75rem;padding-inline-start:1.35rem}.aeris-editor-content__nested-list-item{list-style-type:none}.aeris-editor-content__check-list{margin:0 0 .75rem;padding-inline-start:0;list-style:none}.aeris-editor-content__list-item--checked,.aeris-editor-content__list-item--unchecked{position:relative;padding-inline-start:1.75rem;list-style:none}.aeris-editor-content__list-item--checked:before,.aeris-editor-content__list-item--unchecked:before{position:absolute;inset-block-start:.26em;inset-inline-start:0;width:1rem;height:1rem;border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-xs, .25rem);background:var(--aeris-surface);content:\"\"}.aeris-editor-content__list-item--checked:before{border-color:var(--aeris-primary);background:var(--aeris-primary)}.aeris-editor-content__list-item--checked:after{position:absolute;inset-block-start:.43em;inset-inline-start:.27rem;width:.45rem;height:.24rem;border-block-end:2px solid var(--aeris-primary-contrast, white);border-inline-start:2px solid var(--aeris-primary-contrast, white);content:\"\";transform:rotate(-45deg)}.aeris-editor-content__list-item--checked{color:var(--aeris-text-muted);text-decoration:line-through}.aeris-editor-content__bold{font-weight:700}.aeris-editor-content__italic{font-style:italic}.aeris-editor-content__underline{text-decoration:underline;text-underline-offset:.14em}.aeris-editor-content__strikethrough{text-decoration:line-through}.aeris-editor-content__code{padding:.12em .32em;border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-xs, .25rem);background:var(--aeris-surface-2);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em}.aeris-editor-content__highlight{border-radius:.18em;background:color-mix(in srgb,var(--aeris-warning, #c38600) 28%,transparent)}.aeris-editor-content__lowercase{text-transform:lowercase}.aeris-editor-content__uppercase{text-transform:uppercase}.aeris-editor-content__capitalize{text-transform:capitalize}.aeris-editor-content__subscript,.aeris-editor-content__superscript{font-size:.75em;line-height:0}.aeris-editor-content__subscript{vertical-align:sub}.aeris-editor-content__superscript{vertical-align:super}@media(prefers-reduced-motion:reduce){.aeris-editor,.aeris-editor__toolbar button{transition:none}}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
1041
1041
|
}
|
|
1042
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
1042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisEditorComponent, decorators: [{
|
|
1043
1043
|
type: Component,
|
|
1044
1044
|
args: [{ selector: 'aeris-editor', template: `
|
|
1045
1045
|
<div
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aeris-ui-core-editor.mjs","sources":["../../../projects/aeris-ui/editor/aeris-editor.ts","../../../projects/aeris-ui/editor/aeris-ui-core-editor.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport {\n Component,\n ElementRef,\n SecurityContext,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport {\n $createParagraphNode,\n $getRoot,\n $getSelection,\n $isElementNode,\n $isRangeSelection,\n $isTextNode,\n COMMAND_PRIORITY_LOW,\n FORMAT_ELEMENT_COMMAND,\n FORMAT_TEXT_COMMAND,\n INDENT_CONTENT_COMMAND,\n OUTDENT_CONTENT_COMMAND,\n REDO_COMMAND,\n SELECTION_CHANGE_COMMAND,\n UNDO_COMMAND,\n createEditor,\n type EditorThemeClasses,\n type ElementFormatType,\n type HTMLConfig,\n type LexicalEditor,\n type LexicalNode,\n type LexicalNodeConfig,\n type TextFormatType,\n} from 'lexical';\nimport {\n $createHeadingNode,\n $createQuoteNode,\n HeadingNode,\n QuoteNode,\n registerRichText,\n type HeadingTagType,\n} from '@lexical/rich-text';\nimport { $generateHtmlFromNodes, $generateNodesFromDOM } from '@lexical/html';\nimport {\n INSERT_CHECK_LIST_COMMAND,\n INSERT_ORDERED_LIST_COMMAND,\n INSERT_UNORDERED_LIST_COMMAND,\n ListItemNode,\n ListNode,\n REMOVE_LIST_COMMAND,\n registerCheckList,\n registerList,\n} from '@lexical/list';\nimport { createEmptyHistoryState, registerHistory } from '@lexical/history';\nimport { $setBlocksType } from '@lexical/selection';\n\nexport type AerisEditorSize = 'sm' | 'md' | 'lg';\nexport type AerisEditorAppearance = 'outline' | 'filled';\nexport type AerisEditorBlock = 'paragraph' | 'heading' | HeadingTagType | 'quote';\nexport type AerisEditorTextFormat = Extract<\n TextFormatType,\n | 'bold'\n | 'italic'\n | 'underline'\n | 'strikethrough'\n | 'code'\n | 'highlight'\n | 'subscript'\n | 'superscript'\n | 'lowercase'\n | 'uppercase'\n | 'capitalize'\n>;\nexport type AerisEditorAlignment = Extract<\n ElementFormatType,\n 'left' | 'start' | 'center' | 'right' | 'end' | 'justify'\n>;\nexport type AerisEditorFormat =\n | AerisEditorTextFormat\n | 'paragraph'\n | 'heading'\n | 'heading1'\n | 'heading2'\n | 'heading3'\n | 'heading4'\n | 'heading5'\n | 'heading6'\n | 'quote'\n | 'bulletList'\n | 'numberedList'\n | 'checkList'\n | 'alignLeft'\n | 'alignStart'\n | 'alignCenter'\n | 'alignRight'\n | 'alignEnd'\n | 'alignJustify'\n | 'outdent'\n | 'indent'\n | 'clear'\n | 'undo'\n | 'redo';\n\n/**\n * Registers additional Lexical nodes and behavior while keeping the Aeris shell,\n * forms integration, serialization, and accessibility contract.\n */\nexport interface AerisEditorExtension {\n readonly nodes?: readonly LexicalNodeConfig[];\n readonly setup?: (editor: LexicalEditor) => void | (() => void);\n}\n\nexport const AERIS_EDITOR_DEFAULT_FORMATS = [\n 'undo',\n 'redo',\n 'bold',\n 'italic',\n 'underline',\n 'heading',\n 'quote',\n 'bulletList',\n 'numberedList',\n] as const satisfies readonly AerisEditorFormat[];\n\nexport const AERIS_EDITOR_ALL_FORMATS = [\n 'undo',\n 'redo',\n 'bold',\n 'italic',\n 'underline',\n 'strikethrough',\n 'code',\n 'highlight',\n 'subscript',\n 'superscript',\n 'lowercase',\n 'uppercase',\n 'capitalize',\n 'paragraph',\n 'heading1',\n 'heading2',\n 'heading3',\n 'heading4',\n 'heading5',\n 'heading6',\n 'quote',\n 'bulletList',\n 'numberedList',\n 'checkList',\n 'alignLeft',\n 'alignStart',\n 'alignCenter',\n 'alignRight',\n 'alignEnd',\n 'alignJustify',\n 'outdent',\n 'indent',\n 'clear',\n] as const satisfies readonly AerisEditorFormat[];\n\nexport interface AerisEditorChangeEvent {\n readonly value: string;\n readonly textContent: string;\n}\n\nlet editorId = 0;\n\n@Component({\n selector: 'aeris-editor',\n template: `\n <div\n class=\"aeris-editor\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-invalid]=\"invalid() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-fluid]=\"fluid() || null\"\n (focusout)=\"handleFocusOut($event)\"\n >\n @if (showToolbar()) {\n <div class=\"aeris-editor__toolbar\" role=\"toolbar\" [attr.aria-label]=\"toolbarAriaLabel()\">\n @if (availableFormats().has('undo')) {\n <button type=\"button\" aria-label=\"Undo\" [disabled]=\"toolbarDisabled()\" (click)=\"undo()\">\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M9 8H4V3\" />\n <path d=\"M4 8c2.1-2.7 5-4 8.1-4A8 8 0 1 1 6 17.1\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('redo')) {\n <button type=\"button\" aria-label=\"Redo\" [disabled]=\"toolbarDisabled()\" (click)=\"redo()\">\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M15 8h5V3\" />\n <path d=\"M20 8c-2.1-2.7-5-4-8.1-4A8 8 0 1 0 18 17.1\" />\n </svg>\n </button>\n }\n\n @if (hasInlineActions()) {\n <span class=\"aeris-editor__separator\" aria-hidden=\"true\"></span>\n }\n @if (availableFormats().has('bold')) {\n <button\n type=\"button\"\n aria-label=\"Bold\"\n [attr.aria-pressed]=\"activeBold()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('bold')\"\n >\n <strong>B</strong>\n </button>\n }\n @if (availableFormats().has('italic')) {\n <button\n type=\"button\"\n aria-label=\"Italic\"\n [attr.aria-pressed]=\"activeItalic()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('italic')\"\n >\n <em>I</em>\n </button>\n }\n @if (availableFormats().has('underline')) {\n <button\n type=\"button\"\n aria-label=\"Underline\"\n [attr.aria-pressed]=\"activeUnderline()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('underline')\"\n >\n <span class=\"aeris-editor__underline\">U</span>\n </button>\n }\n @if (availableFormats().has('strikethrough')) {\n <button\n type=\"button\"\n aria-label=\"Strikethrough\"\n [attr.aria-pressed]=\"activeStrikethrough()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('strikethrough')\"\n >\n <span class=\"aeris-editor__strikethrough\">S</span>\n </button>\n }\n @if (availableFormats().has('code')) {\n <button\n type=\"button\"\n aria-label=\"Inline code\"\n [attr.aria-pressed]=\"activeCode()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('code')\"\n >\n <span aria-hidden=\"true\"></></span>\n </button>\n }\n @if (availableFormats().has('highlight')) {\n <button\n type=\"button\"\n aria-label=\"Highlight\"\n [attr.aria-pressed]=\"activeHighlight()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('highlight')\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m9 11 4 4\" />\n <path d=\"m14.5 4.5 5 5L10 19H5v-5Z\" />\n <path d=\"M4 21h16\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('subscript')) {\n <button\n type=\"button\"\n aria-label=\"Subscript\"\n [attr.aria-pressed]=\"activeSubscript()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('subscript')\"\n >\n <span aria-hidden=\"true\">X<sub>2</sub></span>\n </button>\n }\n @if (availableFormats().has('superscript')) {\n <button\n type=\"button\"\n aria-label=\"Superscript\"\n [attr.aria-pressed]=\"activeSuperscript()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('superscript')\"\n >\n <span aria-hidden=\"true\">X<sup>2</sup></span>\n </button>\n }\n @if (availableFormats().has('lowercase')) {\n <button\n type=\"button\"\n aria-label=\"Lowercase\"\n [attr.aria-pressed]=\"activeLowercase()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('lowercase')\"\n >\n aa\n </button>\n }\n @if (availableFormats().has('uppercase')) {\n <button\n type=\"button\"\n aria-label=\"Uppercase\"\n [attr.aria-pressed]=\"activeUppercase()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('uppercase')\"\n >\n AA\n </button>\n }\n @if (availableFormats().has('capitalize')) {\n <button\n type=\"button\"\n aria-label=\"Capitalize\"\n [attr.aria-pressed]=\"activeCapitalize()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('capitalize')\"\n >\n Aa\n </button>\n }\n\n @if (hasBlockActions()) {\n <span class=\"aeris-editor__separator\" aria-hidden=\"true\"></span>\n }\n @if (availableFormats().has('paragraph')) {\n <button\n type=\"button\"\n aria-label=\"Paragraph\"\n [attr.aria-pressed]=\"activeBlock() === 'paragraph'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('paragraph')\"\n >\n P\n </button>\n }\n @if (availableFormats().has('heading1')) {\n <button\n type=\"button\"\n aria-label=\"Heading 1\"\n [attr.aria-pressed]=\"activeBlock() === 'h1'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('h1')\"\n >\n H1\n </button>\n }\n @if (availableFormats().has('heading')) {\n <button\n type=\"button\"\n aria-label=\"Heading\"\n [attr.aria-pressed]=\"activeBlock() === 'h2'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('heading')\"\n >\n H2\n </button>\n }\n @if (availableFormats().has('heading2')) {\n <button\n type=\"button\"\n aria-label=\"Heading 2\"\n [attr.aria-pressed]=\"activeBlock() === 'h2'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('h2')\"\n >\n H2\n </button>\n }\n @if (availableFormats().has('heading3')) {\n <button\n type=\"button\"\n aria-label=\"Heading 3\"\n [attr.aria-pressed]=\"activeBlock() === 'h3'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('h3')\"\n >\n H3\n </button>\n }\n @if (availableFormats().has('heading4')) {\n <button\n type=\"button\"\n aria-label=\"Heading 4\"\n [attr.aria-pressed]=\"activeBlock() === 'h4'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('h4')\"\n >\n H4\n </button>\n }\n @if (availableFormats().has('heading5')) {\n <button\n type=\"button\"\n aria-label=\"Heading 5\"\n [attr.aria-pressed]=\"activeBlock() === 'h5'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('h5')\"\n >\n H5\n </button>\n }\n @if (availableFormats().has('heading6')) {\n <button\n type=\"button\"\n aria-label=\"Heading 6\"\n [attr.aria-pressed]=\"activeBlock() === 'h6'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('h6')\"\n >\n H6\n </button>\n }\n @if (availableFormats().has('quote')) {\n <button\n type=\"button\"\n aria-label=\"Quote\"\n [attr.aria-pressed]=\"activeBlock() === 'quote'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('quote')\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path\n d=\"M8 6H5.8C4.8 7.7 4.3 9.3 4.3 11c0 2.1 1.1 3.6 3 3.6 1.5 0 2.7-1.1 2.7-2.7 0-1.4-1-2.5-2.4-2.7.1-.9.5-1.9 1.1-3.2Z\"\n />\n <path\n d=\"M18 6h-2.2c-1 1.7-1.5 3.3-1.5 5 0 2.1 1.1 3.6 3 3.6 1.5 0 2.7-1.1 2.7-2.7 0-1.4-1-2.5-2.4-2.7.1-.9.5-1.9 1.1-3.2Z\"\n />\n </svg>\n </button>\n }\n\n @if (hasListActions()) {\n <span class=\"aeris-editor__separator\" aria-hidden=\"true\"></span>\n }\n @if (availableFormats().has('bulletList')) {\n <button\n type=\"button\"\n aria-label=\"Bulleted list\"\n [attr.aria-pressed]=\"activeList() === 'bullet'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"toggleBulletList()\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M8 6h12\" />\n <path d=\"M8 12h12\" />\n <path d=\"M8 18h12\" />\n <circle cx=\"4\" cy=\"6\" r=\"1\" />\n <circle cx=\"4\" cy=\"12\" r=\"1\" />\n <circle cx=\"4\" cy=\"18\" r=\"1\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('numberedList')) {\n <button\n type=\"button\"\n aria-label=\"Numbered list\"\n [attr.aria-pressed]=\"activeList() === 'number'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"toggleNumberedList()\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M10 6h10\" />\n <path d=\"M10 12h10\" />\n <path d=\"M10 18h10\" />\n <path d=\"M4 5h1v3\" />\n <path d=\"M3.7 8h2.6\" />\n <path\n d=\"M3.6 11.4c.3-.4.8-.6 1.4-.6.8 0 1.4.5 1.4 1.2 0 .5-.3.9-.8 1.2L4 14.5h2.5\"\n />\n <path\n d=\"M3.7 17h2.1l-1 1h.3c.8 0 1.4.4 1.4 1.1 0 .7-.6 1.2-1.5 1.2-.6 0-1.1-.2-1.5-.6\"\n />\n </svg>\n </button>\n }\n @if (availableFormats().has('checkList')) {\n <button\n type=\"button\"\n aria-label=\"Checklist\"\n [attr.aria-pressed]=\"activeList() === 'check'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"toggleCheckList()\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <rect x=\"3\" y=\"4\" width=\"5\" height=\"5\" rx=\"1\" />\n <path d=\"m4.5 6.5 1.2 1.2L8.3 5\" />\n <path d=\"M11 6.5h10\" />\n <rect x=\"3\" y=\"15\" width=\"5\" height=\"5\" rx=\"1\" />\n <path d=\"M11 17.5h10\" />\n </svg>\n </button>\n }\n\n @if (hasAlignmentActions()) {\n <span class=\"aeris-editor__separator\" aria-hidden=\"true\"></span>\n }\n @if (availableFormats().has('alignLeft')) {\n <button\n type=\"button\"\n aria-label=\"Align left\"\n [attr.aria-pressed]=\"activeAlignment() === 'left'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"align('left')\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 6h16M4 10h11M4 14h16M4 18h11\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('alignStart')) {\n <button\n type=\"button\"\n aria-label=\"Align start\"\n [attr.aria-pressed]=\"activeAlignment() === 'start'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"align('start')\"\n >\n <svg class=\"aeris-editor__logical-icon\" aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 6h16M4 10h11M4 14h16M4 18h11\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('alignCenter')) {\n <button\n type=\"button\"\n aria-label=\"Align center\"\n [attr.aria-pressed]=\"activeAlignment() === 'center'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"align('center')\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 6h16M6.5 10h11M4 14h16M6.5 18h11\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('alignRight')) {\n <button\n type=\"button\"\n aria-label=\"Align right\"\n [attr.aria-pressed]=\"activeAlignment() === 'right'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"align('right')\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 6h16M9 10h11M4 14h16M9 18h11\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('alignEnd')) {\n <button\n type=\"button\"\n aria-label=\"Align end\"\n [attr.aria-pressed]=\"activeAlignment() === 'end'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"align('end')\"\n >\n <svg class=\"aeris-editor__logical-icon\" aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 6h16M9 10h11M4 14h16M9 18h11\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('alignJustify')) {\n <button\n type=\"button\"\n aria-label=\"Justify\"\n [attr.aria-pressed]=\"activeAlignment() === 'justify'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"align('justify')\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 6h16M4 10h16M4 14h16M4 18h16\" />\n </svg>\n </button>\n }\n\n @if (hasDocumentActions()) {\n <span class=\"aeris-editor__separator\" aria-hidden=\"true\"></span>\n }\n @if (availableFormats().has('outdent')) {\n <button\n type=\"button\"\n aria-label=\"Decrease indent\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"outdent()\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M11 6h9M11 10h9M11 14h9M11 18h9\" />\n <path d=\"m8 9-4 3 4 3\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('indent')) {\n <button\n type=\"button\"\n aria-label=\"Increase indent\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"indent()\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M11 6h9M11 10h9M11 14h9M11 18h9\" />\n <path d=\"m4 9 4 3-4 3\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('clear')) {\n <button\n type=\"button\"\n aria-label=\"Clear formatting\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"clearFormatting()\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m4 20 16-16\" />\n <path d=\"M6.5 4h9l-1.5 5\" />\n <path d=\"m9.5 15-.5 2H5\" />\n </svg>\n </button>\n }\n </div>\n }\n\n <div class=\"aeris-editor__content-shell\" [style.min-height]=\"minHeight()\">\n <div\n #editorRoot\n class=\"aeris-editor__content\"\n role=\"textbox\"\n aria-multiline=\"true\"\n [id]=\"resolvedInputId()\"\n [attr.contenteditable]=\"editable()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-describedby]=\"ariaDescribedby() || null\"\n [attr.aria-invalid]=\"invalid() || null\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-placeholder]=\"placeholder() || null\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"handleBlur($event)\"\n ></div>\n\n @if (placeholderVisible()) {\n <span class=\"aeris-editor__placeholder\">{{ placeholder() }}</span>\n }\n </div>\n\n @if (name()) {\n <input type=\"hidden\" [name]=\"name()\" [value]=\"value()\" />\n }\n </div>\n `,\n styleUrl: './aeris-editor.scss',\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisEditorComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisEditorComponent implements ControlValueAccessor {\n private readonly document = inject(DOCUMENT);\n private readonly sanitizer = inject(DomSanitizer);\n readonly value = model('');\n readonly inputId = input('');\n readonly name = input('');\n readonly placeholder = input('Write something...');\n readonly ariaLabel = input('');\n readonly ariaLabelledby = input('');\n readonly ariaDescribedby = input('');\n readonly toolbarAriaLabel = input('Formatting tools');\n readonly size = input<AerisEditorSize>('md');\n readonly appearance = input<AerisEditorAppearance>('outline');\n readonly minHeight = input('12rem');\n readonly formats = input<readonly AerisEditorFormat[]>(AERIS_EDITOR_DEFAULT_FORMATS);\n readonly namespace = input('AerisEditor');\n readonly lexicalTheme = input<EditorThemeClasses>({});\n readonly htmlConfig = input<HTMLConfig>({});\n readonly extensions = input<readonly AerisEditorExtension[]>([]);\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly showToolbar = input(true, { transform: booleanAttribute });\n\n readonly valueInput = output<string>();\n readonly changed = output<AerisEditorChangeEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n readonly ready = output<LexicalEditor>();\n\n private readonly editorRoot = viewChild<ElementRef<HTMLDivElement>>('editorRoot');\n private readonly generatedId = `aeris-editor-${++editorId}`;\n private readonly formDisabled = signal(false);\n private readonly isEditorReady = signal(false);\n private readonly hasFocus = signal(false);\n protected readonly textContent = signal('');\n protected readonly activeBold = signal(false);\n protected readonly activeItalic = signal(false);\n protected readonly activeUnderline = signal(false);\n protected readonly activeStrikethrough = signal(false);\n protected readonly activeCode = signal(false);\n protected readonly activeHighlight = signal(false);\n protected readonly activeSubscript = signal(false);\n protected readonly activeSuperscript = signal(false);\n protected readonly activeLowercase = signal(false);\n protected readonly activeUppercase = signal(false);\n protected readonly activeCapitalize = signal(false);\n protected readonly activeBlock = signal<AerisEditorBlock>('paragraph');\n protected readonly activeList = signal<'bullet' | 'number' | 'check' | null>(null);\n protected readonly activeAlignment = signal<AerisEditorAlignment>('left');\n protected readonly availableFormats = computed(() => new Set(this.formats()));\n\n protected readonly hasInlineActions = computed(() =>\n this.formats().some((format) =>\n [\n 'bold',\n 'italic',\n 'underline',\n 'strikethrough',\n 'code',\n 'highlight',\n 'subscript',\n 'superscript',\n 'lowercase',\n 'uppercase',\n 'capitalize',\n ].includes(format),\n ),\n );\n protected readonly hasBlockActions = computed(() =>\n this.formats().some((format) =>\n [\n 'paragraph',\n 'heading',\n 'heading1',\n 'heading2',\n 'heading3',\n 'heading4',\n 'heading5',\n 'heading6',\n 'quote',\n ].includes(format),\n ),\n );\n protected readonly hasListActions = computed(() =>\n this.formats().some((format) => ['bulletList', 'numberedList', 'checkList'].includes(format)),\n );\n protected readonly hasAlignmentActions = computed(() =>\n this.formats().some((format) =>\n ['alignLeft', 'alignStart', 'alignCenter', 'alignRight', 'alignEnd', 'alignJustify'].includes(\n format,\n ),\n ),\n );\n protected readonly hasDocumentActions = computed(() =>\n this.formats().some((format) => ['outdent', 'indent', 'clear'].includes(format)),\n );\n\n protected readonly resolvedInputId = computed(() => this.inputId() || this.generatedId);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly editable = computed(() => !this.effectiveDisabled() && !this.readonly());\n protected readonly toolbarDisabled = computed(() => !this.editable() || !this.isEditorReady());\n protected readonly placeholderVisible = computed(\n () => !this.hasFocus() && !this.textContent().trim() && !!this.placeholder(),\n );\n\n private editor: LexicalEditor | null = null;\n private unregisterEditor: (() => void) | null = null;\n private lastSyncedValue = '';\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n constructor() {\n effect(() => {\n const editable = this.editable();\n this.editor?.setEditable(editable);\n });\n\n effect(() => {\n const nextValue = this.value();\n if (!this.editor || nextValue === this.lastSyncedValue) return;\n this.writeEditorValue(nextValue);\n });\n }\n\n ngAfterViewInit(): void {\n this.createEditor();\n }\n\n ngOnDestroy(): void {\n this.unregisterEditor?.();\n this.unregisterEditor = null;\n this.editor?.setRootElement(null);\n this.editor = null;\n this.isEditorReady.set(false);\n }\n\n writeValue(value: unknown): void {\n const nextValue = value == null ? '' : String(value);\n this.value.set(nextValue);\n this.writeEditorValue(nextValue);\n }\n\n registerOnChange(callback: (value: string) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(): void {\n this.editor?.focus();\n }\n\n clear(): void {\n if (!this.editable()) return;\n this.writeEditorValue('');\n this.focus();\n }\n\n reset(): void {\n this.clear();\n }\n\n format(format: AerisEditorTextFormat): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(FORMAT_TEXT_COMMAND, format);\n }\n\n setBlock(block: AerisEditorBlock): void {\n if (!this.editable()) return;\n this.editor?.update(() => {\n const selection = $getSelection();\n if (!$isRangeSelection(selection)) return;\n\n if (block === 'heading') {\n block = 'h2';\n }\n\n if (block.startsWith('h') && this.activeBlock() !== block) {\n $setBlocksType(selection, () => $createHeadingNode(block as HeadingTagType));\n return;\n }\n\n if (block === 'quote' && this.activeBlock() !== 'quote') {\n $setBlocksType(selection, () => $createQuoteNode());\n return;\n }\n\n $setBlocksType(selection, () => $createParagraphNode());\n });\n }\n\n toggleBulletList(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, undefined);\n }\n\n toggleNumberedList(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, undefined);\n }\n\n toggleCheckList(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(INSERT_CHECK_LIST_COMMAND, undefined);\n }\n\n removeList(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(REMOVE_LIST_COMMAND, undefined);\n }\n\n undo(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(UNDO_COMMAND, undefined);\n }\n\n redo(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(REDO_COMMAND, undefined);\n }\n\n align(alignment: AerisEditorAlignment): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(FORMAT_ELEMENT_COMMAND, alignment);\n }\n\n indent(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(INDENT_CONTENT_COMMAND, undefined);\n }\n\n outdent(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(OUTDENT_CONTENT_COMMAND, undefined);\n }\n\n clearFormatting(): void {\n if (!this.editable()) return;\n this.editor?.update(() => {\n const selection = $getSelection();\n if (!$isRangeSelection(selection)) return;\n\n selection.setFormat(0);\n for (const node of selection.getNodes()) {\n if ($isTextNode(node)) {\n node.setFormat(0);\n node.setStyle('');\n }\n }\n });\n }\n\n getLexicalEditor(): LexicalEditor | null {\n return this.editor;\n }\n\n protected handleFocus(event: FocusEvent): void {\n this.hasFocus.set(true);\n this.focused.emit(event);\n }\n\n protected handleBlur(event: FocusEvent): void {\n this.blurred.emit(event);\n }\n\n protected handleFocusOut(event: FocusEvent): void {\n const relatedTarget = event.relatedTarget;\n const root = this.editorRoot()?.nativeElement;\n if (relatedTarget instanceof Node && root?.parentElement?.contains(relatedTarget)) return;\n this.hasFocus.set(false);\n this.touch.emit();\n this.onTouched();\n }\n\n private createEditor(): void {\n const rootElement = this.editorRoot()?.nativeElement;\n if (!rootElement) return;\n\n const extensions = this.extensions();\n const editor = createEditor({\n namespace: this.namespace(),\n html: this.htmlConfig(),\n nodes: [\n HeadingNode,\n QuoteNode,\n ListNode,\n ListItemNode,\n ...extensions.flatMap((extension) => extension.nodes ?? []),\n ],\n onError(error) {\n throw error;\n },\n theme: this.resolveTheme(),\n });\n\n this.editor = editor;\n editor.setRootElement(rootElement);\n editor.setEditable(this.editable());\n this.isEditorReady.set(true);\n\n const historyState = createEmptyHistoryState();\n const cleanups = [\n registerRichText(editor),\n registerList(editor),\n registerCheckList(editor),\n registerHistory(editor, historyState, 250),\n ...extensions.flatMap((extension) => {\n const cleanup = extension.setup?.(editor);\n return cleanup ? [cleanup] : [];\n }),\n editor.registerUpdateListener(({ editorState }) => {\n editorState.read(\n () => {\n const root = $getRoot();\n const textContent = root.getTextContent();\n const hasStructuredContent = root\n .getChildren()\n .some((node) => !['paragraph', 'heading', 'quote'].includes(node.getType()));\n const html =\n textContent.trim() || hasStructuredContent\n ? $generateHtmlFromNodes(editor, null)\n : '';\n this.syncSelectionState();\n this.emitValue(html, textContent);\n },\n { editor },\n );\n }),\n editor.registerCommand(\n SELECTION_CHANGE_COMMAND,\n () => {\n this.syncSelectionState();\n return false;\n },\n COMMAND_PRIORITY_LOW,\n ),\n ];\n\n this.unregisterEditor = () => {\n for (const cleanup of cleanups) cleanup();\n };\n\n this.writeEditorValue(this.value());\n this.ready.emit(editor);\n }\n\n private resolveTheme(): EditorThemeClasses {\n const customTheme = this.lexicalTheme();\n return {\n ...customTheme,\n heading: {\n h1: 'aeris-editor-content__heading aeris-editor-content__heading--h1',\n h2: 'aeris-editor-content__heading aeris-editor-content__heading--h2',\n h3: 'aeris-editor-content__heading aeris-editor-content__heading--h3',\n h4: 'aeris-editor-content__heading aeris-editor-content__heading--h4',\n h5: 'aeris-editor-content__heading aeris-editor-content__heading--h5',\n h6: 'aeris-editor-content__heading aeris-editor-content__heading--h6',\n ...customTheme.heading,\n },\n list: {\n checklist: 'aeris-editor-content__check-list',\n listitem: 'aeris-editor-content__list-item',\n listitemChecked: 'aeris-editor-content__list-item--checked',\n listitemUnchecked: 'aeris-editor-content__list-item--unchecked',\n ol: 'aeris-editor-content__ordered-list',\n ul: 'aeris-editor-content__unordered-list',\n ...customTheme.list,\n nested: {\n listitem: 'aeris-editor-content__nested-list-item',\n ...customTheme.list?.nested,\n },\n },\n paragraph: customTheme.paragraph ?? 'aeris-editor-content__paragraph',\n quote: customTheme.quote ?? 'aeris-editor-content__quote',\n text: {\n bold: 'aeris-editor-content__bold',\n capitalize: 'aeris-editor-content__capitalize',\n code: 'aeris-editor-content__code',\n highlight: 'aeris-editor-content__highlight',\n italic: 'aeris-editor-content__italic',\n lowercase: 'aeris-editor-content__lowercase',\n strikethrough: 'aeris-editor-content__strikethrough',\n subscript: 'aeris-editor-content__subscript',\n superscript: 'aeris-editor-content__superscript',\n underline: 'aeris-editor-content__underline',\n underlineStrikethrough:\n 'aeris-editor-content__underline aeris-editor-content__strikethrough',\n uppercase: 'aeris-editor-content__uppercase',\n ...customTheme.text,\n },\n };\n }\n\n private writeEditorValue(value: string): void {\n if (!this.editor) return;\n this.lastSyncedValue = value;\n this.editor.update(() => {\n const root = $getRoot();\n root.clear();\n const sanitizedValue = this.sanitizer.sanitize(SecurityContext.HTML, value) ?? '';\n\n if (!sanitizedValue.trim()) {\n root.append($createParagraphNode());\n this.textContent.set('');\n return;\n }\n\n const Parser = this.document.defaultView?.DOMParser;\n if (!Parser) {\n root.append($createParagraphNode());\n this.textContent.set('');\n return;\n }\n\n const parser = new Parser();\n const dom = parser.parseFromString(sanitizedValue, 'text/html');\n const nodes = $generateNodesFromDOM(this.editor as LexicalEditor, dom);\n root.append(...(nodes.length ? nodes : [$createParagraphNode()]));\n this.textContent.set(root.getTextContent());\n });\n }\n\n private emitValue(value: string, textContent: string): void {\n this.textContent.set(textContent);\n this.syncSelectionState();\n if (value === this.lastSyncedValue && value === this.value()) return;\n\n this.lastSyncedValue = value;\n this.value.set(value);\n this.valueInput.emit(value);\n this.changed.emit({ value, textContent });\n this.onChange(value);\n }\n\n private syncSelectionState(): void {\n const selection = $getSelection();\n if (!$isRangeSelection(selection)) {\n this.activeBold.set(false);\n this.activeItalic.set(false);\n this.activeUnderline.set(false);\n this.activeStrikethrough.set(false);\n this.activeCode.set(false);\n this.activeHighlight.set(false);\n this.activeSubscript.set(false);\n this.activeSuperscript.set(false);\n this.activeLowercase.set(false);\n this.activeUppercase.set(false);\n this.activeCapitalize.set(false);\n this.activeBlock.set('paragraph');\n this.activeList.set(null);\n this.activeAlignment.set('left');\n return;\n }\n\n this.activeBold.set(selection.hasFormat('bold'));\n this.activeItalic.set(selection.hasFormat('italic'));\n this.activeUnderline.set(selection.hasFormat('underline'));\n this.activeStrikethrough.set(selection.hasFormat('strikethrough'));\n this.activeCode.set(selection.hasFormat('code'));\n this.activeHighlight.set(selection.hasFormat('highlight'));\n this.activeSubscript.set(selection.hasFormat('subscript'));\n this.activeSuperscript.set(selection.hasFormat('superscript'));\n this.activeLowercase.set(selection.hasFormat('lowercase'));\n this.activeUppercase.set(selection.hasFormat('uppercase'));\n this.activeCapitalize.set(selection.hasFormat('capitalize'));\n\n const nodes = selection.getNodes();\n const topLevel = nodes[0]?.getTopLevelElementOrThrow();\n if (topLevel instanceof HeadingNode) {\n this.activeBlock.set(topLevel.getTag());\n } else if (topLevel instanceof QuoteNode) {\n this.activeBlock.set('quote');\n } else {\n this.activeBlock.set('paragraph');\n }\n\n const elementAlignment = $isElementNode(topLevel) ? topLevel.getFormatType() : '';\n this.activeAlignment.set(\n elementAlignment === 'center' ||\n elementAlignment === 'start' ||\n elementAlignment === 'right' ||\n elementAlignment === 'end' ||\n elementAlignment === 'justify'\n ? elementAlignment\n : 'left',\n );\n\n let currentNode: LexicalNode | null = nodes[0] ?? null;\n while (currentNode && !(currentNode instanceof ListNode)) {\n currentNode = currentNode.getParent();\n }\n this.activeList.set(currentNode instanceof ListNode ? currentNode.getListType() : null);\n }\n}\n\nexport const AerisEditor = [AerisEditorComponent] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAyHO,MAAM,4BAA4B,GAAG;IAC1C,MAAM;IACN,MAAM;IACN,MAAM;IACN,QAAQ;IACR,WAAW;IACX,SAAS;IACT,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ris-ui-core-editor.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport {\n Component,\n ElementRef,\n SecurityContext,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport {\n $createParagraphNode,\n $getRoot,\n $getSelection,\n $isElementNode,\n $isRangeSelection,\n $isTextNode,\n COMMAND_PRIORITY_LOW,\n FORMAT_ELEMENT_COMMAND,\n FORMAT_TEXT_COMMAND,\n INDENT_CONTENT_COMMAND,\n OUTDENT_CONTENT_COMMAND,\n REDO_COMMAND,\n SELECTION_CHANGE_COMMAND,\n UNDO_COMMAND,\n createEditor,\n type EditorThemeClasses,\n type ElementFormatType,\n type HTMLConfig,\n type LexicalEditor,\n type LexicalNode,\n type LexicalNodeConfig,\n type TextFormatType,\n} from 'lexical';\nimport {\n $createHeadingNode,\n $createQuoteNode,\n HeadingNode,\n QuoteNode,\n registerRichText,\n type HeadingTagType,\n} from '@lexical/rich-text';\nimport { $generateHtmlFromNodes, $generateNodesFromDOM } from '@lexical/html';\nimport {\n INSERT_CHECK_LIST_COMMAND,\n INSERT_ORDERED_LIST_COMMAND,\n INSERT_UNORDERED_LIST_COMMAND,\n ListItemNode,\n ListNode,\n REMOVE_LIST_COMMAND,\n registerCheckList,\n registerList,\n} from '@lexical/list';\nimport { createEmptyHistoryState, registerHistory } from '@lexical/history';\nimport { $setBlocksType } from '@lexical/selection';\n\nexport type AerisEditorSize = 'sm' | 'md' | 'lg';\nexport type AerisEditorAppearance = 'outline' | 'filled';\nexport type AerisEditorBlock = 'paragraph' | 'heading' | HeadingTagType | 'quote';\nexport type AerisEditorTextFormat = Extract<\n TextFormatType,\n | 'bold'\n | 'italic'\n | 'underline'\n | 'strikethrough'\n | 'code'\n | 'highlight'\n | 'subscript'\n | 'superscript'\n | 'lowercase'\n | 'uppercase'\n | 'capitalize'\n>;\nexport type AerisEditorAlignment = Extract<\n ElementFormatType,\n 'left' | 'start' | 'center' | 'right' | 'end' | 'justify'\n>;\nexport type AerisEditorFormat =\n | AerisEditorTextFormat\n | 'paragraph'\n | 'heading'\n | 'heading1'\n | 'heading2'\n | 'heading3'\n | 'heading4'\n | 'heading5'\n | 'heading6'\n | 'quote'\n | 'bulletList'\n | 'numberedList'\n | 'checkList'\n | 'alignLeft'\n | 'alignStart'\n | 'alignCenter'\n | 'alignRight'\n | 'alignEnd'\n | 'alignJustify'\n | 'outdent'\n | 'indent'\n | 'clear'\n | 'undo'\n | 'redo';\n\n/**\n * Registers additional Lexical nodes and behavior while keeping the Aeris shell,\n * forms integration, serialization, and accessibility contract.\n */\nexport interface AerisEditorExtension {\n readonly nodes?: readonly LexicalNodeConfig[];\n readonly setup?: (editor: LexicalEditor) => void | (() => void);\n}\n\nexport const AERIS_EDITOR_DEFAULT_FORMATS = [\n 'undo',\n 'redo',\n 'bold',\n 'italic',\n 'underline',\n 'heading',\n 'quote',\n 'bulletList',\n 'numberedList',\n] as const satisfies readonly AerisEditorFormat[];\n\nexport const AERIS_EDITOR_ALL_FORMATS = [\n 'undo',\n 'redo',\n 'bold',\n 'italic',\n 'underline',\n 'strikethrough',\n 'code',\n 'highlight',\n 'subscript',\n 'superscript',\n 'lowercase',\n 'uppercase',\n 'capitalize',\n 'paragraph',\n 'heading1',\n 'heading2',\n 'heading3',\n 'heading4',\n 'heading5',\n 'heading6',\n 'quote',\n 'bulletList',\n 'numberedList',\n 'checkList',\n 'alignLeft',\n 'alignStart',\n 'alignCenter',\n 'alignRight',\n 'alignEnd',\n 'alignJustify',\n 'outdent',\n 'indent',\n 'clear',\n] as const satisfies readonly AerisEditorFormat[];\n\nexport interface AerisEditorChangeEvent {\n readonly value: string;\n readonly textContent: string;\n}\n\nlet editorId = 0;\n\n@Component({\n selector: 'aeris-editor',\n template: `\n <div\n class=\"aeris-editor\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-invalid]=\"invalid() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-readonly]=\"readonly() || null\"\n [attr.data-fluid]=\"fluid() || null\"\n (focusout)=\"handleFocusOut($event)\"\n >\n @if (showToolbar()) {\n <div class=\"aeris-editor__toolbar\" role=\"toolbar\" [attr.aria-label]=\"toolbarAriaLabel()\">\n @if (availableFormats().has('undo')) {\n <button type=\"button\" aria-label=\"Undo\" [disabled]=\"toolbarDisabled()\" (click)=\"undo()\">\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M9 8H4V3\" />\n <path d=\"M4 8c2.1-2.7 5-4 8.1-4A8 8 0 1 1 6 17.1\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('redo')) {\n <button type=\"button\" aria-label=\"Redo\" [disabled]=\"toolbarDisabled()\" (click)=\"redo()\">\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M15 8h5V3\" />\n <path d=\"M20 8c-2.1-2.7-5-4-8.1-4A8 8 0 1 0 18 17.1\" />\n </svg>\n </button>\n }\n\n @if (hasInlineActions()) {\n <span class=\"aeris-editor__separator\" aria-hidden=\"true\"></span>\n }\n @if (availableFormats().has('bold')) {\n <button\n type=\"button\"\n aria-label=\"Bold\"\n [attr.aria-pressed]=\"activeBold()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('bold')\"\n >\n <strong>B</strong>\n </button>\n }\n @if (availableFormats().has('italic')) {\n <button\n type=\"button\"\n aria-label=\"Italic\"\n [attr.aria-pressed]=\"activeItalic()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('italic')\"\n >\n <em>I</em>\n </button>\n }\n @if (availableFormats().has('underline')) {\n <button\n type=\"button\"\n aria-label=\"Underline\"\n [attr.aria-pressed]=\"activeUnderline()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('underline')\"\n >\n <span class=\"aeris-editor__underline\">U</span>\n </button>\n }\n @if (availableFormats().has('strikethrough')) {\n <button\n type=\"button\"\n aria-label=\"Strikethrough\"\n [attr.aria-pressed]=\"activeStrikethrough()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('strikethrough')\"\n >\n <span class=\"aeris-editor__strikethrough\">S</span>\n </button>\n }\n @if (availableFormats().has('code')) {\n <button\n type=\"button\"\n aria-label=\"Inline code\"\n [attr.aria-pressed]=\"activeCode()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('code')\"\n >\n <span aria-hidden=\"true\"></></span>\n </button>\n }\n @if (availableFormats().has('highlight')) {\n <button\n type=\"button\"\n aria-label=\"Highlight\"\n [attr.aria-pressed]=\"activeHighlight()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('highlight')\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m9 11 4 4\" />\n <path d=\"m14.5 4.5 5 5L10 19H5v-5Z\" />\n <path d=\"M4 21h16\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('subscript')) {\n <button\n type=\"button\"\n aria-label=\"Subscript\"\n [attr.aria-pressed]=\"activeSubscript()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('subscript')\"\n >\n <span aria-hidden=\"true\">X<sub>2</sub></span>\n </button>\n }\n @if (availableFormats().has('superscript')) {\n <button\n type=\"button\"\n aria-label=\"Superscript\"\n [attr.aria-pressed]=\"activeSuperscript()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('superscript')\"\n >\n <span aria-hidden=\"true\">X<sup>2</sup></span>\n </button>\n }\n @if (availableFormats().has('lowercase')) {\n <button\n type=\"button\"\n aria-label=\"Lowercase\"\n [attr.aria-pressed]=\"activeLowercase()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('lowercase')\"\n >\n aa\n </button>\n }\n @if (availableFormats().has('uppercase')) {\n <button\n type=\"button\"\n aria-label=\"Uppercase\"\n [attr.aria-pressed]=\"activeUppercase()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('uppercase')\"\n >\n AA\n </button>\n }\n @if (availableFormats().has('capitalize')) {\n <button\n type=\"button\"\n aria-label=\"Capitalize\"\n [attr.aria-pressed]=\"activeCapitalize()\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"format('capitalize')\"\n >\n Aa\n </button>\n }\n\n @if (hasBlockActions()) {\n <span class=\"aeris-editor__separator\" aria-hidden=\"true\"></span>\n }\n @if (availableFormats().has('paragraph')) {\n <button\n type=\"button\"\n aria-label=\"Paragraph\"\n [attr.aria-pressed]=\"activeBlock() === 'paragraph'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('paragraph')\"\n >\n P\n </button>\n }\n @if (availableFormats().has('heading1')) {\n <button\n type=\"button\"\n aria-label=\"Heading 1\"\n [attr.aria-pressed]=\"activeBlock() === 'h1'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('h1')\"\n >\n H1\n </button>\n }\n @if (availableFormats().has('heading')) {\n <button\n type=\"button\"\n aria-label=\"Heading\"\n [attr.aria-pressed]=\"activeBlock() === 'h2'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('heading')\"\n >\n H2\n </button>\n }\n @if (availableFormats().has('heading2')) {\n <button\n type=\"button\"\n aria-label=\"Heading 2\"\n [attr.aria-pressed]=\"activeBlock() === 'h2'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('h2')\"\n >\n H2\n </button>\n }\n @if (availableFormats().has('heading3')) {\n <button\n type=\"button\"\n aria-label=\"Heading 3\"\n [attr.aria-pressed]=\"activeBlock() === 'h3'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('h3')\"\n >\n H3\n </button>\n }\n @if (availableFormats().has('heading4')) {\n <button\n type=\"button\"\n aria-label=\"Heading 4\"\n [attr.aria-pressed]=\"activeBlock() === 'h4'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('h4')\"\n >\n H4\n </button>\n }\n @if (availableFormats().has('heading5')) {\n <button\n type=\"button\"\n aria-label=\"Heading 5\"\n [attr.aria-pressed]=\"activeBlock() === 'h5'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('h5')\"\n >\n H5\n </button>\n }\n @if (availableFormats().has('heading6')) {\n <button\n type=\"button\"\n aria-label=\"Heading 6\"\n [attr.aria-pressed]=\"activeBlock() === 'h6'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('h6')\"\n >\n H6\n </button>\n }\n @if (availableFormats().has('quote')) {\n <button\n type=\"button\"\n aria-label=\"Quote\"\n [attr.aria-pressed]=\"activeBlock() === 'quote'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"setBlock('quote')\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path\n d=\"M8 6H5.8C4.8 7.7 4.3 9.3 4.3 11c0 2.1 1.1 3.6 3 3.6 1.5 0 2.7-1.1 2.7-2.7 0-1.4-1-2.5-2.4-2.7.1-.9.5-1.9 1.1-3.2Z\"\n />\n <path\n d=\"M18 6h-2.2c-1 1.7-1.5 3.3-1.5 5 0 2.1 1.1 3.6 3 3.6 1.5 0 2.7-1.1 2.7-2.7 0-1.4-1-2.5-2.4-2.7.1-.9.5-1.9 1.1-3.2Z\"\n />\n </svg>\n </button>\n }\n\n @if (hasListActions()) {\n <span class=\"aeris-editor__separator\" aria-hidden=\"true\"></span>\n }\n @if (availableFormats().has('bulletList')) {\n <button\n type=\"button\"\n aria-label=\"Bulleted list\"\n [attr.aria-pressed]=\"activeList() === 'bullet'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"toggleBulletList()\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M8 6h12\" />\n <path d=\"M8 12h12\" />\n <path d=\"M8 18h12\" />\n <circle cx=\"4\" cy=\"6\" r=\"1\" />\n <circle cx=\"4\" cy=\"12\" r=\"1\" />\n <circle cx=\"4\" cy=\"18\" r=\"1\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('numberedList')) {\n <button\n type=\"button\"\n aria-label=\"Numbered list\"\n [attr.aria-pressed]=\"activeList() === 'number'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"toggleNumberedList()\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M10 6h10\" />\n <path d=\"M10 12h10\" />\n <path d=\"M10 18h10\" />\n <path d=\"M4 5h1v3\" />\n <path d=\"M3.7 8h2.6\" />\n <path\n d=\"M3.6 11.4c.3-.4.8-.6 1.4-.6.8 0 1.4.5 1.4 1.2 0 .5-.3.9-.8 1.2L4 14.5h2.5\"\n />\n <path\n d=\"M3.7 17h2.1l-1 1h.3c.8 0 1.4.4 1.4 1.1 0 .7-.6 1.2-1.5 1.2-.6 0-1.1-.2-1.5-.6\"\n />\n </svg>\n </button>\n }\n @if (availableFormats().has('checkList')) {\n <button\n type=\"button\"\n aria-label=\"Checklist\"\n [attr.aria-pressed]=\"activeList() === 'check'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"toggleCheckList()\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <rect x=\"3\" y=\"4\" width=\"5\" height=\"5\" rx=\"1\" />\n <path d=\"m4.5 6.5 1.2 1.2L8.3 5\" />\n <path d=\"M11 6.5h10\" />\n <rect x=\"3\" y=\"15\" width=\"5\" height=\"5\" rx=\"1\" />\n <path d=\"M11 17.5h10\" />\n </svg>\n </button>\n }\n\n @if (hasAlignmentActions()) {\n <span class=\"aeris-editor__separator\" aria-hidden=\"true\"></span>\n }\n @if (availableFormats().has('alignLeft')) {\n <button\n type=\"button\"\n aria-label=\"Align left\"\n [attr.aria-pressed]=\"activeAlignment() === 'left'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"align('left')\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 6h16M4 10h11M4 14h16M4 18h11\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('alignStart')) {\n <button\n type=\"button\"\n aria-label=\"Align start\"\n [attr.aria-pressed]=\"activeAlignment() === 'start'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"align('start')\"\n >\n <svg class=\"aeris-editor__logical-icon\" aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 6h16M4 10h11M4 14h16M4 18h11\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('alignCenter')) {\n <button\n type=\"button\"\n aria-label=\"Align center\"\n [attr.aria-pressed]=\"activeAlignment() === 'center'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"align('center')\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 6h16M6.5 10h11M4 14h16M6.5 18h11\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('alignRight')) {\n <button\n type=\"button\"\n aria-label=\"Align right\"\n [attr.aria-pressed]=\"activeAlignment() === 'right'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"align('right')\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 6h16M9 10h11M4 14h16M9 18h11\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('alignEnd')) {\n <button\n type=\"button\"\n aria-label=\"Align end\"\n [attr.aria-pressed]=\"activeAlignment() === 'end'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"align('end')\"\n >\n <svg class=\"aeris-editor__logical-icon\" aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 6h16M9 10h11M4 14h16M9 18h11\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('alignJustify')) {\n <button\n type=\"button\"\n aria-label=\"Justify\"\n [attr.aria-pressed]=\"activeAlignment() === 'justify'\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"align('justify')\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 6h16M4 10h16M4 14h16M4 18h16\" />\n </svg>\n </button>\n }\n\n @if (hasDocumentActions()) {\n <span class=\"aeris-editor__separator\" aria-hidden=\"true\"></span>\n }\n @if (availableFormats().has('outdent')) {\n <button\n type=\"button\"\n aria-label=\"Decrease indent\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"outdent()\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M11 6h9M11 10h9M11 14h9M11 18h9\" />\n <path d=\"m8 9-4 3 4 3\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('indent')) {\n <button\n type=\"button\"\n aria-label=\"Increase indent\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"indent()\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M11 6h9M11 10h9M11 14h9M11 18h9\" />\n <path d=\"m4 9 4 3-4 3\" />\n </svg>\n </button>\n }\n @if (availableFormats().has('clear')) {\n <button\n type=\"button\"\n aria-label=\"Clear formatting\"\n [disabled]=\"toolbarDisabled()\"\n (click)=\"clearFormatting()\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m4 20 16-16\" />\n <path d=\"M6.5 4h9l-1.5 5\" />\n <path d=\"m9.5 15-.5 2H5\" />\n </svg>\n </button>\n }\n </div>\n }\n\n <div class=\"aeris-editor__content-shell\" [style.min-height]=\"minHeight()\">\n <div\n #editorRoot\n class=\"aeris-editor__content\"\n role=\"textbox\"\n aria-multiline=\"true\"\n [id]=\"resolvedInputId()\"\n [attr.contenteditable]=\"editable()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-describedby]=\"ariaDescribedby() || null\"\n [attr.aria-invalid]=\"invalid() || null\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-placeholder]=\"placeholder() || null\"\n [attr.tabindex]=\"effectiveDisabled() ? -1 : 0\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"handleBlur($event)\"\n ></div>\n\n @if (placeholderVisible()) {\n <span class=\"aeris-editor__placeholder\">{{ placeholder() }}</span>\n }\n </div>\n\n @if (name()) {\n <input type=\"hidden\" [name]=\"name()\" [value]=\"value()\" />\n }\n </div>\n `,\n styleUrl: './aeris-editor.scss',\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisEditorComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-fluid]': 'fluid() || null',\n },\n})\nexport class AerisEditorComponent implements ControlValueAccessor {\n private readonly document = inject(DOCUMENT);\n private readonly sanitizer = inject(DomSanitizer);\n readonly value = model('');\n readonly inputId = input('');\n readonly name = input('');\n readonly placeholder = input('Write something...');\n readonly ariaLabel = input('');\n readonly ariaLabelledby = input('');\n readonly ariaDescribedby = input('');\n readonly toolbarAriaLabel = input('Formatting tools');\n readonly size = input<AerisEditorSize>('md');\n readonly appearance = input<AerisEditorAppearance>('outline');\n readonly minHeight = input('12rem');\n readonly formats = input<readonly AerisEditorFormat[]>(AERIS_EDITOR_DEFAULT_FORMATS);\n readonly namespace = input('AerisEditor');\n readonly lexicalTheme = input<EditorThemeClasses>({});\n readonly htmlConfig = input<HTMLConfig>({});\n readonly extensions = input<readonly AerisEditorExtension[]>([]);\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly showToolbar = input(true, { transform: booleanAttribute });\n\n readonly valueInput = output<string>();\n readonly changed = output<AerisEditorChangeEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n readonly ready = output<LexicalEditor>();\n\n private readonly editorRoot = viewChild<ElementRef<HTMLDivElement>>('editorRoot');\n private readonly generatedId = `aeris-editor-${++editorId}`;\n private readonly formDisabled = signal(false);\n private readonly isEditorReady = signal(false);\n private readonly hasFocus = signal(false);\n protected readonly textContent = signal('');\n protected readonly activeBold = signal(false);\n protected readonly activeItalic = signal(false);\n protected readonly activeUnderline = signal(false);\n protected readonly activeStrikethrough = signal(false);\n protected readonly activeCode = signal(false);\n protected readonly activeHighlight = signal(false);\n protected readonly activeSubscript = signal(false);\n protected readonly activeSuperscript = signal(false);\n protected readonly activeLowercase = signal(false);\n protected readonly activeUppercase = signal(false);\n protected readonly activeCapitalize = signal(false);\n protected readonly activeBlock = signal<AerisEditorBlock>('paragraph');\n protected readonly activeList = signal<'bullet' | 'number' | 'check' | null>(null);\n protected readonly activeAlignment = signal<AerisEditorAlignment>('left');\n protected readonly availableFormats = computed(() => new Set(this.formats()));\n\n protected readonly hasInlineActions = computed(() =>\n this.formats().some((format) =>\n [\n 'bold',\n 'italic',\n 'underline',\n 'strikethrough',\n 'code',\n 'highlight',\n 'subscript',\n 'superscript',\n 'lowercase',\n 'uppercase',\n 'capitalize',\n ].includes(format),\n ),\n );\n protected readonly hasBlockActions = computed(() =>\n this.formats().some((format) =>\n [\n 'paragraph',\n 'heading',\n 'heading1',\n 'heading2',\n 'heading3',\n 'heading4',\n 'heading5',\n 'heading6',\n 'quote',\n ].includes(format),\n ),\n );\n protected readonly hasListActions = computed(() =>\n this.formats().some((format) => ['bulletList', 'numberedList', 'checkList'].includes(format)),\n );\n protected readonly hasAlignmentActions = computed(() =>\n this.formats().some((format) =>\n ['alignLeft', 'alignStart', 'alignCenter', 'alignRight', 'alignEnd', 'alignJustify'].includes(\n format,\n ),\n ),\n );\n protected readonly hasDocumentActions = computed(() =>\n this.formats().some((format) => ['outdent', 'indent', 'clear'].includes(format)),\n );\n\n protected readonly resolvedInputId = computed(() => this.inputId() || this.generatedId);\n protected readonly effectiveDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly editable = computed(() => !this.effectiveDisabled() && !this.readonly());\n protected readonly toolbarDisabled = computed(() => !this.editable() || !this.isEditorReady());\n protected readonly placeholderVisible = computed(\n () => !this.hasFocus() && !this.textContent().trim() && !!this.placeholder(),\n );\n\n private editor: LexicalEditor | null = null;\n private unregisterEditor: (() => void) | null = null;\n private lastSyncedValue = '';\n private onChange: (value: string) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n constructor() {\n effect(() => {\n const editable = this.editable();\n this.editor?.setEditable(editable);\n });\n\n effect(() => {\n const nextValue = this.value();\n if (!this.editor || nextValue === this.lastSyncedValue) return;\n this.writeEditorValue(nextValue);\n });\n }\n\n ngAfterViewInit(): void {\n this.createEditor();\n }\n\n ngOnDestroy(): void {\n this.unregisterEditor?.();\n this.unregisterEditor = null;\n this.editor?.setRootElement(null);\n this.editor = null;\n this.isEditorReady.set(false);\n }\n\n writeValue(value: unknown): void {\n const nextValue = value == null ? '' : String(value);\n this.value.set(nextValue);\n this.writeEditorValue(nextValue);\n }\n\n registerOnChange(callback: (value: string) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(): void {\n this.editor?.focus();\n }\n\n clear(): void {\n if (!this.editable()) return;\n this.writeEditorValue('');\n this.focus();\n }\n\n reset(): void {\n this.clear();\n }\n\n format(format: AerisEditorTextFormat): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(FORMAT_TEXT_COMMAND, format);\n }\n\n setBlock(block: AerisEditorBlock): void {\n if (!this.editable()) return;\n this.editor?.update(() => {\n const selection = $getSelection();\n if (!$isRangeSelection(selection)) return;\n\n if (block === 'heading') {\n block = 'h2';\n }\n\n if (block.startsWith('h') && this.activeBlock() !== block) {\n $setBlocksType(selection, () => $createHeadingNode(block as HeadingTagType));\n return;\n }\n\n if (block === 'quote' && this.activeBlock() !== 'quote') {\n $setBlocksType(selection, () => $createQuoteNode());\n return;\n }\n\n $setBlocksType(selection, () => $createParagraphNode());\n });\n }\n\n toggleBulletList(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, undefined);\n }\n\n toggleNumberedList(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, undefined);\n }\n\n toggleCheckList(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(INSERT_CHECK_LIST_COMMAND, undefined);\n }\n\n removeList(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(REMOVE_LIST_COMMAND, undefined);\n }\n\n undo(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(UNDO_COMMAND, undefined);\n }\n\n redo(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(REDO_COMMAND, undefined);\n }\n\n align(alignment: AerisEditorAlignment): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(FORMAT_ELEMENT_COMMAND, alignment);\n }\n\n indent(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(INDENT_CONTENT_COMMAND, undefined);\n }\n\n outdent(): void {\n if (!this.editable()) return;\n this.editor?.dispatchCommand(OUTDENT_CONTENT_COMMAND, undefined);\n }\n\n clearFormatting(): void {\n if (!this.editable()) return;\n this.editor?.update(() => {\n const selection = $getSelection();\n if (!$isRangeSelection(selection)) return;\n\n selection.setFormat(0);\n for (const node of selection.getNodes()) {\n if ($isTextNode(node)) {\n node.setFormat(0);\n node.setStyle('');\n }\n }\n });\n }\n\n getLexicalEditor(): LexicalEditor | null {\n return this.editor;\n }\n\n protected handleFocus(event: FocusEvent): void {\n this.hasFocus.set(true);\n this.focused.emit(event);\n }\n\n protected handleBlur(event: FocusEvent): void {\n this.blurred.emit(event);\n }\n\n protected handleFocusOut(event: FocusEvent): void {\n const relatedTarget = event.relatedTarget;\n const root = this.editorRoot()?.nativeElement;\n if (relatedTarget instanceof Node && root?.parentElement?.contains(relatedTarget)) return;\n this.hasFocus.set(false);\n this.touch.emit();\n this.onTouched();\n }\n\n private createEditor(): void {\n const rootElement = this.editorRoot()?.nativeElement;\n if (!rootElement) return;\n\n const extensions = this.extensions();\n const editor = createEditor({\n namespace: this.namespace(),\n html: this.htmlConfig(),\n nodes: [\n HeadingNode,\n QuoteNode,\n ListNode,\n ListItemNode,\n ...extensions.flatMap((extension) => extension.nodes ?? []),\n ],\n onError(error) {\n throw error;\n },\n theme: this.resolveTheme(),\n });\n\n this.editor = editor;\n editor.setRootElement(rootElement);\n editor.setEditable(this.editable());\n this.isEditorReady.set(true);\n\n const historyState = createEmptyHistoryState();\n const cleanups = [\n registerRichText(editor),\n registerList(editor),\n registerCheckList(editor),\n registerHistory(editor, historyState, 250),\n ...extensions.flatMap((extension) => {\n const cleanup = extension.setup?.(editor);\n return cleanup ? [cleanup] : [];\n }),\n editor.registerUpdateListener(({ editorState }) => {\n editorState.read(\n () => {\n const root = $getRoot();\n const textContent = root.getTextContent();\n const hasStructuredContent = root\n .getChildren()\n .some((node) => !['paragraph', 'heading', 'quote'].includes(node.getType()));\n const html =\n textContent.trim() || hasStructuredContent\n ? $generateHtmlFromNodes(editor, null)\n : '';\n this.syncSelectionState();\n this.emitValue(html, textContent);\n },\n { editor },\n );\n }),\n editor.registerCommand(\n SELECTION_CHANGE_COMMAND,\n () => {\n this.syncSelectionState();\n return false;\n },\n COMMAND_PRIORITY_LOW,\n ),\n ];\n\n this.unregisterEditor = () => {\n for (const cleanup of cleanups) cleanup();\n };\n\n this.writeEditorValue(this.value());\n this.ready.emit(editor);\n }\n\n private resolveTheme(): EditorThemeClasses {\n const customTheme = this.lexicalTheme();\n return {\n ...customTheme,\n heading: {\n h1: 'aeris-editor-content__heading aeris-editor-content__heading--h1',\n h2: 'aeris-editor-content__heading aeris-editor-content__heading--h2',\n h3: 'aeris-editor-content__heading aeris-editor-content__heading--h3',\n h4: 'aeris-editor-content__heading aeris-editor-content__heading--h4',\n h5: 'aeris-editor-content__heading aeris-editor-content__heading--h5',\n h6: 'aeris-editor-content__heading aeris-editor-content__heading--h6',\n ...customTheme.heading,\n },\n list: {\n checklist: 'aeris-editor-content__check-list',\n listitem: 'aeris-editor-content__list-item',\n listitemChecked: 'aeris-editor-content__list-item--checked',\n listitemUnchecked: 'aeris-editor-content__list-item--unchecked',\n ol: 'aeris-editor-content__ordered-list',\n ul: 'aeris-editor-content__unordered-list',\n ...customTheme.list,\n nested: {\n listitem: 'aeris-editor-content__nested-list-item',\n ...customTheme.list?.nested,\n },\n },\n paragraph: customTheme.paragraph ?? 'aeris-editor-content__paragraph',\n quote: customTheme.quote ?? 'aeris-editor-content__quote',\n text: {\n bold: 'aeris-editor-content__bold',\n capitalize: 'aeris-editor-content__capitalize',\n code: 'aeris-editor-content__code',\n highlight: 'aeris-editor-content__highlight',\n italic: 'aeris-editor-content__italic',\n lowercase: 'aeris-editor-content__lowercase',\n strikethrough: 'aeris-editor-content__strikethrough',\n subscript: 'aeris-editor-content__subscript',\n superscript: 'aeris-editor-content__superscript',\n underline: 'aeris-editor-content__underline',\n underlineStrikethrough:\n 'aeris-editor-content__underline aeris-editor-content__strikethrough',\n uppercase: 'aeris-editor-content__uppercase',\n ...customTheme.text,\n },\n };\n }\n\n private writeEditorValue(value: string): void {\n if (!this.editor) return;\n this.lastSyncedValue = value;\n this.editor.update(() => {\n const root = $getRoot();\n root.clear();\n const sanitizedValue = this.sanitizer.sanitize(SecurityContext.HTML, value) ?? '';\n\n if (!sanitizedValue.trim()) {\n root.append($createParagraphNode());\n this.textContent.set('');\n return;\n }\n\n const Parser = this.document.defaultView?.DOMParser;\n if (!Parser) {\n root.append($createParagraphNode());\n this.textContent.set('');\n return;\n }\n\n const parser = new Parser();\n const dom = parser.parseFromString(sanitizedValue, 'text/html');\n const nodes = $generateNodesFromDOM(this.editor as LexicalEditor, dom);\n root.append(...(nodes.length ? nodes : [$createParagraphNode()]));\n this.textContent.set(root.getTextContent());\n });\n }\n\n private emitValue(value: string, textContent: string): void {\n this.textContent.set(textContent);\n this.syncSelectionState();\n if (value === this.lastSyncedValue && value === this.value()) return;\n\n this.lastSyncedValue = value;\n this.value.set(value);\n this.valueInput.emit(value);\n this.changed.emit({ value, textContent });\n this.onChange(value);\n }\n\n private syncSelectionState(): void {\n const selection = $getSelection();\n if (!$isRangeSelection(selection)) {\n this.activeBold.set(false);\n this.activeItalic.set(false);\n this.activeUnderline.set(false);\n this.activeStrikethrough.set(false);\n this.activeCode.set(false);\n this.activeHighlight.set(false);\n this.activeSubscript.set(false);\n this.activeSuperscript.set(false);\n this.activeLowercase.set(false);\n this.activeUppercase.set(false);\n this.activeCapitalize.set(false);\n this.activeBlock.set('paragraph');\n this.activeList.set(null);\n this.activeAlignment.set('left');\n return;\n }\n\n this.activeBold.set(selection.hasFormat('bold'));\n this.activeItalic.set(selection.hasFormat('italic'));\n this.activeUnderline.set(selection.hasFormat('underline'));\n this.activeStrikethrough.set(selection.hasFormat('strikethrough'));\n this.activeCode.set(selection.hasFormat('code'));\n this.activeHighlight.set(selection.hasFormat('highlight'));\n this.activeSubscript.set(selection.hasFormat('subscript'));\n this.activeSuperscript.set(selection.hasFormat('superscript'));\n this.activeLowercase.set(selection.hasFormat('lowercase'));\n this.activeUppercase.set(selection.hasFormat('uppercase'));\n this.activeCapitalize.set(selection.hasFormat('capitalize'));\n\n const nodes = selection.getNodes();\n const topLevel = nodes[0]?.getTopLevelElementOrThrow();\n if (topLevel instanceof HeadingNode) {\n this.activeBlock.set(topLevel.getTag());\n } else if (topLevel instanceof QuoteNode) {\n this.activeBlock.set('quote');\n } else {\n this.activeBlock.set('paragraph');\n }\n\n const elementAlignment = $isElementNode(topLevel) ? topLevel.getFormatType() : '';\n this.activeAlignment.set(\n elementAlignment === 'center' ||\n elementAlignment === 'start' ||\n elementAlignment === 'right' ||\n elementAlignment === 'end' ||\n elementAlignment === 'justify'\n ? elementAlignment\n : 'left',\n );\n\n let currentNode: LexicalNode | null = nodes[0] ?? null;\n while (currentNode && !(currentNode instanceof ListNode)) {\n currentNode = currentNode.getParent();\n }\n this.activeList.set(currentNode instanceof ListNode ? currentNode.getListType() : null);\n }\n}\n\nexport const AerisEditor = [AerisEditorComponent] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAyHO,MAAM,4BAA4B,GAAG;IAC1C,MAAM;IACN,MAAM;IACN,MAAM;IACN,QAAQ;IACR,WAAW;IACX,SAAS;IACT,OAAO;IACP,YAAY;IACZ,cAAc;;AAGT,MAAM,wBAAwB,GAAG;IACtC,MAAM;IACN,MAAM;IACN,MAAM;IACN,QAAQ;IACR,WAAW;IACX,eAAe;IACf,MAAM;IACN,WAAW;IACX,WAAW;IACX,aAAa;IACb,WAAW;IACX,WAAW;IACX,YAAY;IACZ,WAAW;IACX,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,OAAO;IACP,YAAY;IACZ,cAAc;IACd,WAAW;IACX,WAAW;IACX,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,UAAU;IACV,cAAc;IACd,SAAS;IACT,QAAQ;IACR,OAAO;;AAQT,IAAI,QAAQ,GAAG,CAAC;MAyfH,oBAAoB,CAAA;AACd,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,SAAS,GAAG,MAAM,CAAC,YAAY,CAAC;IACxC,KAAK,GAAG,KAAK,CAAC,EAAE;8EAAC;IACjB,OAAO,GAAG,KAAK,CAAC,EAAE;gFAAC;IACnB,IAAI,GAAG,KAAK,CAAC,EAAE;6EAAC;IAChB,WAAW,GAAG,KAAK,CAAC,oBAAoB;oFAAC;IACzC,SAAS,GAAG,KAAK,CAAC,EAAE;kFAAC;IACrB,cAAc,GAAG,KAAK,CAAC,EAAE;uFAAC;IAC1B,eAAe,GAAG,KAAK,CAAC,EAAE;wFAAC;IAC3B,gBAAgB,GAAG,KAAK,CAAC,kBAAkB;yFAAC;IAC5C,IAAI,GAAG,KAAK,CAAkB,IAAI;6EAAC;IACnC,UAAU,GAAG,KAAK,CAAwB,SAAS;mFAAC;IACp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