@aeris-ui/core 22.0.0-alpha.11 → 22.0.0-alpha.13
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 +3 -3
- package/fesm2022/aeris-ui-core-accordion.mjs +14 -14
- 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-auto-complete.mjs +21 -20
- 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-avatar.mjs +6 -6
- package/fesm2022/aeris-ui-core-badge.mjs +6 -6
- package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +12 -12
- package/fesm2022/aeris-ui-core-button-forms.mjs +3 -3
- package/fesm2022/aeris-ui-core-button-group.mjs +6 -6
- package/fesm2022/aeris-ui-core-button.mjs +9 -9
- package/fesm2022/aeris-ui-core-card.mjs +18 -18
- package/fesm2022/aeris-ui-core-carousel.mjs +12 -12
- package/fesm2022/aeris-ui-core-cascade-select.mjs +17 -14
- 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-checkbox.mjs +3 -3
- package/fesm2022/aeris-ui-core-chip.mjs +12 -12
- package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
- package/fesm2022/aeris-ui-core-code-block.mjs +3 -3
- package/fesm2022/aeris-ui-core-color-picker.mjs +6 -4
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-command-palette.mjs +18 -18
- package/fesm2022/aeris-ui-core-compare.mjs +12 -12
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +53 -26
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +54 -27
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +7 -7
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/{aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs → aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs} +4 -4
- package/fesm2022/{aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map → aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs.map} +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +528 -151
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +16 -16
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +3 -3
- package/fesm2022/aeris-ui-core-drawer.mjs +16 -16
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +27 -14
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +5 -5
- 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-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-focus-trap.mjs +3 -3
- package/fesm2022/aeris-ui-core-form-field.mjs +15 -15
- package/fesm2022/aeris-ui-core-galleria.mjs +35 -35
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +3 -3
- package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
- package/fesm2022/aeris-ui-core-inplace.mjs +9 -9
- package/fesm2022/aeris-ui-core-input-group.mjs +15 -15
- package/fesm2022/aeris-ui-core-input-mask.mjs +3 -3
- package/fesm2022/aeris-ui-core-input-number.mjs +3 -3
- package/fesm2022/aeris-ui-core-input-otp.mjs +19 -8
- 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-kbd.mjs +9 -9
- package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
- package/fesm2022/aeris-ui-core-listbox.mjs +15 -15
- package/fesm2022/aeris-ui-core-mega-menu.mjs +6 -6
- package/fesm2022/aeris-ui-core-menu.mjs +16 -16
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +12 -12
- package/fesm2022/aeris-ui-core-message.mjs +9 -9
- package/fesm2022/aeris-ui-core-meter-group.mjs +15 -15
- package/fesm2022/aeris-ui-core-multi-select.mjs +36 -24
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-navbar.mjs +25 -25
- package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +9 -9
- package/fesm2022/aeris-ui-core-organization-chart.mjs +117 -50
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +7 -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-password.mjs +13 -13
- 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-popover.mjs +16 -16
- 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-spinner.mjs +6 -6
- package/fesm2022/aeris-ui-core-radio-button.mjs +3 -3
- package/fesm2022/aeris-ui-core-rating.mjs +15 -5
- 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-top.mjs +3 -3
- package/fesm2022/aeris-ui-core-select-native.mjs +3 -3
- package/fesm2022/aeris-ui-core-select.mjs +41 -39
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-sidebar.mjs +24 -24
- package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
- package/fesm2022/aeris-ui-core-slider.mjs +23 -12
- 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-split-button.mjs +7 -7
- 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-stepper.mjs +12 -12
- package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
- package/fesm2022/aeris-ui-core-table.mjs +21 -21
- package/fesm2022/aeris-ui-core-tabs.mjs +12 -12
- package/fesm2022/aeris-ui-core-textarea.mjs +6 -6
- 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 +7 -7
- 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-toast.mjs +69 -46
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +3 -3
- package/fesm2022/aeris-ui-core-toolbar.mjs +30 -30
- package/fesm2022/aeris-ui-core-tooltip.mjs +6 -6
- package/fesm2022/aeris-ui-core-tree-select.mjs +37 -26
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +18 -18
- package/fesm2022/aeris-ui-core-tree.mjs +12 -12
- package/fesm2022/aeris-ui-core.mjs +40 -17
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +2 -2
- package/types/aeris-ui-core-code-block.d.ts +0 -4
- package/types/aeris-ui-core-confirm-dialog.d.ts +2 -0
- package/types/aeris-ui-core-confirm-popup.d.ts +2 -0
- package/types/aeris-ui-core-date-picker.d.ts +5 -44
- package/types/aeris-ui-core-drawer.d.ts +0 -6
- package/types/aeris-ui-core-dynamic-dialog.d.ts +1 -0
- package/types/aeris-ui-core-organization-chart.d.ts +6 -2
- package/types/aeris-ui-core-toast.d.ts +4 -2
- package/types/aeris-ui-core-tree-select.d.ts +1 -0
- package/types/aeris-ui-core.d.ts +4 -3
|
@@ -511,7 +511,7 @@ var AerisEditorComponent = class AerisEditorComponent {
|
|
|
511
511
|
}
|
|
512
512
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
513
513
|
minVersion: "12.0.0",
|
|
514
|
-
version: "22.2.
|
|
514
|
+
version: "22.2.4",
|
|
515
515
|
ngImport: i0,
|
|
516
516
|
type: AerisEditorComponent,
|
|
517
517
|
deps: [],
|
|
@@ -519,7 +519,7 @@ var AerisEditorComponent = class AerisEditorComponent {
|
|
|
519
519
|
});
|
|
520
520
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
521
521
|
minVersion: "17.0.0",
|
|
522
|
-
version: "22.2.
|
|
522
|
+
version: "22.2.4",
|
|
523
523
|
type: AerisEditorComponent,
|
|
524
524
|
isStandalone: true,
|
|
525
525
|
selector: "aeris-editor",
|
|
@@ -1508,7 +1508,7 @@ var AerisEditorComponent = class AerisEditorComponent {
|
|
|
1508
1508
|
</div>
|
|
1509
1509
|
|
|
1510
1510
|
@if (name()) {
|
|
1511
|
-
<input type="hidden" [name]="name()" [value]="value()" />
|
|
1511
|
+
<input type="hidden" [name]="name()" [value]="value()" [disabled]="effectiveDisabled()" />
|
|
1512
1512
|
}
|
|
1513
1513
|
</div>
|
|
1514
1514
|
`,
|
|
@@ -1529,7 +1529,7 @@ var AerisEditorComponent = class AerisEditorComponent {
|
|
|
1529
1529
|
};
|
|
1530
1530
|
i0.ɵɵngDeclareClassMetadata({
|
|
1531
1531
|
minVersion: "12.0.0",
|
|
1532
|
-
version: "22.2.
|
|
1532
|
+
version: "22.2.4",
|
|
1533
1533
|
ngImport: i0,
|
|
1534
1534
|
type: AerisEditorComponent,
|
|
1535
1535
|
decorators: [{
|
|
@@ -2330,7 +2330,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2330
2330
|
</div>
|
|
2331
2331
|
|
|
2332
2332
|
@if (name()) {
|
|
2333
|
-
<input type="hidden" [name]="name()" [value]="value()" />
|
|
2333
|
+
<input type="hidden" [name]="name()" [value]="value()" [disabled]="effectiveDisabled()" />
|
|
2334
2334
|
}
|
|
2335
2335
|
</div>
|
|
2336
2336
|
`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aeris-ui-core-editor.mjs","names":[],"sources":["../../../projects/aeris-ui/editor/aeris-editor.ts"],"sourcesContent":["import { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n TemplateRef,\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 { ɵaerisDisplayInvalid } from '@aeris-ui/core';\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 imports: [NgTemplateOutlet],\n template: `\n <div\n class=\"aeris-editor\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-invalid]=\"displayInvalid() || 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 @if (toolbarIcons()['undo']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M3 7v6h6\" />\n <path d=\"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13\" />\n </svg>\n }\n </button>\n }\n @if (availableFormats().has('redo')) {\n <button type=\"button\" aria-label=\"Redo\" [disabled]=\"toolbarDisabled()\" (click)=\"redo()\">\n @if (toolbarIcons()['redo']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 7v6h-6\" />\n <path d=\"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7\" />\n </svg>\n }\n </button>\n }\n\n @if (toolbarSeparators().inline) {\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 @if (toolbarIcons()['bold']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8\" />\n </svg>\n }\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 @if (toolbarIcons()['italic']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <line x1=\"19\" x2=\"10\" y1=\"4\" y2=\"4\" />\n <line x1=\"14\" x2=\"5\" y1=\"20\" y2=\"20\" />\n <line x1=\"15\" x2=\"9\" y1=\"4\" y2=\"20\" />\n </svg>\n }\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 @if (toolbarIcons()['underline']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M6 4v6a6 6 0 0 0 12 0V4\" />\n <line x1=\"4\" x2=\"20\" y1=\"20\" y2=\"20\" />\n </svg>\n }\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 @if (toolbarIcons()['strikethrough']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M16 4H9a3 3 0 0 0-2.83 4\" />\n <path d=\"M14 12a4 4 0 0 1 0 8H6\" />\n <line x1=\"4\" x2=\"20\" y1=\"12\" y2=\"12\" />\n </svg>\n }\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 @if (toolbarIcons()['code']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m16 18 6-6-6-6\" />\n <path d=\"m8 6-6 6 6 6\" />\n </svg>\n }\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 @if (toolbarIcons()['highlight']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m9 11-6 6v3h9l3-3\" />\n <path d=\"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4\" />\n </svg>\n }\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 @if (toolbarIcons()['subscript']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m4 5 8 8\" />\n <path d=\"m12 5-8 8\" />\n <path\n d=\"M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07\"\n />\n </svg>\n }\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 @if (toolbarIcons()['superscript']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m4 19 8-8\" />\n <path d=\"m12 19-8-8\" />\n <path\n d=\"M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06\"\n />\n </svg>\n }\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 @if (toolbarIcons()['lowercase']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M10 9v7\" />\n <path d=\"M14 6v10\" />\n <circle cx=\"17.5\" cy=\"12.5\" r=\"3.5\" />\n <circle cx=\"6.5\" cy=\"12.5\" r=\"3.5\" />\n </svg>\n }\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 @if (toolbarIcons()['uppercase']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path\n d=\"M15 11h4.5a1 1 0 0 1 0 5h-4a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h3a1 1 0 0 1 0 5\"\n />\n <path d=\"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16\" />\n <path d=\"M3.304 13h6.392\" />\n </svg>\n }\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 @if (toolbarIcons()['capitalize']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16\" />\n <path d=\"M22 9v7\" />\n <path d=\"M3.304 13h6.392\" />\n <circle cx=\"18.5\" cy=\"12.5\" r=\"3.5\" />\n </svg>\n }\n </button>\n }\n\n @if (toolbarSeparators().block) {\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 @if (toolbarIcons()['paragraph']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M13 4v16\" />\n <path d=\"M17 4v16\" />\n <path d=\"M19 4H9.5a4.5 4.5 0 0 0 0 9H13\" />\n </svg>\n }\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 @if (toolbarIcons()['heading1']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n <path d=\"M12 18V6\" />\n <path d=\"m17 12 3-2v8\" />\n </svg>\n }\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 @if (toolbarIcons()['heading']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n <path d=\"M12 18V6\" />\n <path d=\"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1\" />\n </svg>\n }\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 @if (toolbarIcons()['heading2']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n <path d=\"M12 18V6\" />\n <path d=\"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1\" />\n </svg>\n }\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 @if (toolbarIcons()['heading3']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n <path d=\"M12 18V6\" />\n <path d=\"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2\" />\n <path d=\"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2\" />\n </svg>\n }\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 @if (toolbarIcons()['heading4']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M12 18V6\" />\n <path d=\"M17 10v3a1 1 0 0 0 1 1h3\" />\n <path d=\"M21 10v8\" />\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n </svg>\n }\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 @if (toolbarIcons()['heading5']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n <path d=\"M12 18V6\" />\n <path d=\"M17 13v-3h4\" />\n <path d=\"M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17\" />\n </svg>\n }\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 @if (toolbarIcons()['heading6']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n <path d=\"M12 18V6\" />\n <circle cx=\"19\" cy=\"16\" r=\"2\" />\n <path d=\"M20 10c-2 2-3 3.5-3 6\" />\n </svg>\n }\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 @if (toolbarIcons()['quote']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path\n d=\"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z\"\n />\n <path\n d=\"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z\"\n />\n </svg>\n }\n </button>\n }\n\n @if (toolbarSeparators().list) {\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 @if (toolbarIcons()['bulletList']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M3 5h.01\" />\n <path d=\"M3 12h.01\" />\n <path d=\"M3 19h.01\" />\n <path d=\"M8 5h13\" />\n <path d=\"M8 12h13\" />\n <path d=\"M8 19h13\" />\n </svg>\n }\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 @if (toolbarIcons()['numberedList']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M11 5h10\" />\n <path d=\"M11 12h10\" />\n <path d=\"M11 19h10\" />\n <path d=\"M4 4h1v5\" />\n <path d=\"M4 9h2\" />\n <path d=\"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02\" />\n </svg>\n }\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 @if (toolbarIcons()['checkList']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M13 5h8\" />\n <path d=\"M13 12h8\" />\n <path d=\"M13 19h8\" />\n <path d=\"m3 17 2 2 4-4\" />\n <path d=\"m3 7 2 2 4-4\" />\n </svg>\n }\n </button>\n }\n\n @if (toolbarSeparators().alignment) {\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 @if (toolbarIcons()['alignLeft']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H3\" />\n <path d=\"M15 12H3\" />\n <path d=\"M17 19H3\" />\n </svg>\n }\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 @if (toolbarIcons()['alignStart']; as customIcon) {\n <span\n class=\"aeris-custom-icon aeris-editor__logical-icon\"\n aria-hidden=\"true\"\n data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg class=\"aeris-editor__logical-icon\" aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H3\" />\n <path d=\"M15 12H3\" />\n <path d=\"M17 19H3\" />\n </svg>\n }\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 @if (toolbarIcons()['alignCenter']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H3\" />\n <path d=\"M17 12H7\" />\n <path d=\"M19 19H5\" />\n </svg>\n }\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 @if (toolbarIcons()['alignRight']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H3\" />\n <path d=\"M21 12H9\" />\n <path d=\"M21 19H7\" />\n </svg>\n }\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 @if (toolbarIcons()['alignEnd']; as customIcon) {\n <span\n class=\"aeris-custom-icon aeris-editor__logical-icon\"\n aria-hidden=\"true\"\n data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg class=\"aeris-editor__logical-icon\" aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H3\" />\n <path d=\"M21 12H9\" />\n <path d=\"M21 19H7\" />\n </svg>\n }\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 @if (toolbarIcons()['alignJustify']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M3 5h18\" />\n <path d=\"M3 12h18\" />\n <path d=\"M3 19h18\" />\n </svg>\n }\n </button>\n }\n\n @if (toolbarSeparators().document) {\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 @if (toolbarIcons()['outdent']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg class=\"aeris-editor__logical-icon\" aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H11\" />\n <path d=\"M21 12H11\" />\n <path d=\"M21 19H11\" />\n <path d=\"m7 8-4 4 4 4\" />\n </svg>\n }\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 @if (toolbarIcons()['indent']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg class=\"aeris-editor__logical-icon\" aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H11\" />\n <path d=\"M21 12H11\" />\n <path d=\"M21 19H11\" />\n <path d=\"m3 8 4 4-4 4\" />\n </svg>\n }\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 @if (toolbarIcons()['clear']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 7V4h16v3\" />\n <path d=\"M5 20h6\" />\n <path d=\"M13 4 8 20\" />\n <path d=\"m15 15 5 5\" />\n <path d=\"m20 15-5 5\" />\n </svg>\n }\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]=\"displayInvalid() || 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 readonly toolbarIcons = input<Readonly<Partial<Record<AerisEditorFormat, TemplateRef<void>>>>>(\n {},\n );\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 touched = input<boolean | null>(null);\n protected readonly displayInvalid = computed(() =>\n ɵaerisDisplayInvalid(this.invalid(), this.touched()),\n );\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly showToolbar = input(true, { transform: booleanAttribute });\n\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 protected readonly toolbarSeparators = computed(() => {\n let hasPreviousGroup =\n this.availableFormats().has('undo') || this.availableFormats().has('redo');\n const beforeGroup = (hasActions: boolean) => {\n const show = hasPreviousGroup && hasActions;\n hasPreviousGroup ||= hasActions;\n return show;\n };\n return {\n inline: beforeGroup(this.hasInlineActions()),\n block: beforeGroup(this.hasBlockActions()),\n list: beforeGroup(this.hasListActions()),\n alignment: beforeGroup(this.hasAlignmentActions()),\n document: beforeGroup(this.hasDocumentActions()),\n };\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.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"],"mappings":";;;;;;;;;;;;AA2HA,MAAa,+BAA+B;CAC1C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AAC+C;AAEjD,MAAa,2BAA2B;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AAC+C;AAOjD,IAAI,WAAW;AA+yBf,IAAa,uBAAb,MAAa,qBAAoB;CACtB,eAAe,MACtB,CAAA,GACD,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;CACgB,WAAW,OAAO,QAAQ;CAC1B,YAAY,OAAO,YAAY;CACvC,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACjB,UAAU,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACnB,OAAO,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAChB,cAAc,MAAM,sBAAqB,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CACzC,YAAY,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CACrB,iBAAiB,MAAM,IA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;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,OAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,OAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,cAAY,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AAuelF,MAAa,cAAc,CAAC,oBAAoB"}
|
|
1
|
+
{"version":3,"file":"aeris-ui-core-editor.mjs","names":[],"sources":["../../../projects/aeris-ui/editor/aeris-editor.ts"],"sourcesContent":["import { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n TemplateRef,\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 { ɵaerisDisplayInvalid } from '@aeris-ui/core';\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 imports: [NgTemplateOutlet],\n template: `\n <div\n class=\"aeris-editor\"\n [attr.data-size]=\"size()\"\n [attr.data-appearance]=\"appearance()\"\n [attr.data-invalid]=\"displayInvalid() || 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 @if (toolbarIcons()['undo']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M3 7v6h6\" />\n <path d=\"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13\" />\n </svg>\n }\n </button>\n }\n @if (availableFormats().has('redo')) {\n <button type=\"button\" aria-label=\"Redo\" [disabled]=\"toolbarDisabled()\" (click)=\"redo()\">\n @if (toolbarIcons()['redo']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 7v6h-6\" />\n <path d=\"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7\" />\n </svg>\n }\n </button>\n }\n\n @if (toolbarSeparators().inline) {\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 @if (toolbarIcons()['bold']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8\" />\n </svg>\n }\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 @if (toolbarIcons()['italic']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <line x1=\"19\" x2=\"10\" y1=\"4\" y2=\"4\" />\n <line x1=\"14\" x2=\"5\" y1=\"20\" y2=\"20\" />\n <line x1=\"15\" x2=\"9\" y1=\"4\" y2=\"20\" />\n </svg>\n }\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 @if (toolbarIcons()['underline']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M6 4v6a6 6 0 0 0 12 0V4\" />\n <line x1=\"4\" x2=\"20\" y1=\"20\" y2=\"20\" />\n </svg>\n }\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 @if (toolbarIcons()['strikethrough']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M16 4H9a3 3 0 0 0-2.83 4\" />\n <path d=\"M14 12a4 4 0 0 1 0 8H6\" />\n <line x1=\"4\" x2=\"20\" y1=\"12\" y2=\"12\" />\n </svg>\n }\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 @if (toolbarIcons()['code']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m16 18 6-6-6-6\" />\n <path d=\"m8 6-6 6 6 6\" />\n </svg>\n }\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 @if (toolbarIcons()['highlight']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m9 11-6 6v3h9l3-3\" />\n <path d=\"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4\" />\n </svg>\n }\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 @if (toolbarIcons()['subscript']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m4 5 8 8\" />\n <path d=\"m12 5-8 8\" />\n <path\n d=\"M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07\"\n />\n </svg>\n }\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 @if (toolbarIcons()['superscript']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m4 19 8-8\" />\n <path d=\"m12 19-8-8\" />\n <path\n d=\"M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06\"\n />\n </svg>\n }\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 @if (toolbarIcons()['lowercase']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M10 9v7\" />\n <path d=\"M14 6v10\" />\n <circle cx=\"17.5\" cy=\"12.5\" r=\"3.5\" />\n <circle cx=\"6.5\" cy=\"12.5\" r=\"3.5\" />\n </svg>\n }\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 @if (toolbarIcons()['uppercase']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path\n d=\"M15 11h4.5a1 1 0 0 1 0 5h-4a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h3a1 1 0 0 1 0 5\"\n />\n <path d=\"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16\" />\n <path d=\"M3.304 13h6.392\" />\n </svg>\n }\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 @if (toolbarIcons()['capitalize']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16\" />\n <path d=\"M22 9v7\" />\n <path d=\"M3.304 13h6.392\" />\n <circle cx=\"18.5\" cy=\"12.5\" r=\"3.5\" />\n </svg>\n }\n </button>\n }\n\n @if (toolbarSeparators().block) {\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 @if (toolbarIcons()['paragraph']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M13 4v16\" />\n <path d=\"M17 4v16\" />\n <path d=\"M19 4H9.5a4.5 4.5 0 0 0 0 9H13\" />\n </svg>\n }\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 @if (toolbarIcons()['heading1']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n <path d=\"M12 18V6\" />\n <path d=\"m17 12 3-2v8\" />\n </svg>\n }\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 @if (toolbarIcons()['heading']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n <path d=\"M12 18V6\" />\n <path d=\"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1\" />\n </svg>\n }\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 @if (toolbarIcons()['heading2']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n <path d=\"M12 18V6\" />\n <path d=\"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1\" />\n </svg>\n }\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 @if (toolbarIcons()['heading3']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n <path d=\"M12 18V6\" />\n <path d=\"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2\" />\n <path d=\"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2\" />\n </svg>\n }\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 @if (toolbarIcons()['heading4']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M12 18V6\" />\n <path d=\"M17 10v3a1 1 0 0 0 1 1h3\" />\n <path d=\"M21 10v8\" />\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n </svg>\n }\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 @if (toolbarIcons()['heading5']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n <path d=\"M12 18V6\" />\n <path d=\"M17 13v-3h4\" />\n <path d=\"M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17\" />\n </svg>\n }\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 @if (toolbarIcons()['heading6']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 12h8\" />\n <path d=\"M4 18V6\" />\n <path d=\"M12 18V6\" />\n <circle cx=\"19\" cy=\"16\" r=\"2\" />\n <path d=\"M20 10c-2 2-3 3.5-3 6\" />\n </svg>\n }\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 @if (toolbarIcons()['quote']; as customIcon) {\n <span class=\"aeris-custom-icon\" data-aeris-custom-icon aria-hidden=\"true\"\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path\n d=\"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z\"\n />\n <path\n d=\"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z\"\n />\n </svg>\n }\n </button>\n }\n\n @if (toolbarSeparators().list) {\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 @if (toolbarIcons()['bulletList']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M3 5h.01\" />\n <path d=\"M3 12h.01\" />\n <path d=\"M3 19h.01\" />\n <path d=\"M8 5h13\" />\n <path d=\"M8 12h13\" />\n <path d=\"M8 19h13\" />\n </svg>\n }\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 @if (toolbarIcons()['numberedList']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M11 5h10\" />\n <path d=\"M11 12h10\" />\n <path d=\"M11 19h10\" />\n <path d=\"M4 4h1v5\" />\n <path d=\"M4 9h2\" />\n <path d=\"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02\" />\n </svg>\n }\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 @if (toolbarIcons()['checkList']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M13 5h8\" />\n <path d=\"M13 12h8\" />\n <path d=\"M13 19h8\" />\n <path d=\"m3 17 2 2 4-4\" />\n <path d=\"m3 7 2 2 4-4\" />\n </svg>\n }\n </button>\n }\n\n @if (toolbarSeparators().alignment) {\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 @if (toolbarIcons()['alignLeft']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H3\" />\n <path d=\"M15 12H3\" />\n <path d=\"M17 19H3\" />\n </svg>\n }\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 @if (toolbarIcons()['alignStart']; as customIcon) {\n <span\n class=\"aeris-custom-icon aeris-editor__logical-icon\"\n aria-hidden=\"true\"\n data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg class=\"aeris-editor__logical-icon\" aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H3\" />\n <path d=\"M15 12H3\" />\n <path d=\"M17 19H3\" />\n </svg>\n }\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 @if (toolbarIcons()['alignCenter']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H3\" />\n <path d=\"M17 12H7\" />\n <path d=\"M19 19H5\" />\n </svg>\n }\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 @if (toolbarIcons()['alignRight']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H3\" />\n <path d=\"M21 12H9\" />\n <path d=\"M21 19H7\" />\n </svg>\n }\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 @if (toolbarIcons()['alignEnd']; as customIcon) {\n <span\n class=\"aeris-custom-icon aeris-editor__logical-icon\"\n aria-hidden=\"true\"\n data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg class=\"aeris-editor__logical-icon\" aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H3\" />\n <path d=\"M21 12H9\" />\n <path d=\"M21 19H7\" />\n </svg>\n }\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 @if (toolbarIcons()['alignJustify']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M3 5h18\" />\n <path d=\"M3 12h18\" />\n <path d=\"M3 19h18\" />\n </svg>\n }\n </button>\n }\n\n @if (toolbarSeparators().document) {\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 @if (toolbarIcons()['outdent']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg class=\"aeris-editor__logical-icon\" aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H11\" />\n <path d=\"M21 12H11\" />\n <path d=\"M21 19H11\" />\n <path d=\"m7 8-4 4 4 4\" />\n </svg>\n }\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 @if (toolbarIcons()['indent']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg class=\"aeris-editor__logical-icon\" aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M21 5H11\" />\n <path d=\"M21 12H11\" />\n <path d=\"M21 19H11\" />\n <path d=\"m3 8 4 4-4 4\" />\n </svg>\n }\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 @if (toolbarIcons()['clear']; as customIcon) {\n <span class=\"aeris-custom-icon\" aria-hidden=\"true\" data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\">\n <path d=\"M4 7V4h16v3\" />\n <path d=\"M5 20h6\" />\n <path d=\"M13 4 8 20\" />\n <path d=\"m15 15 5 5\" />\n <path d=\"m20 15-5 5\" />\n </svg>\n }\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]=\"displayInvalid() || 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()\" [disabled]=\"effectiveDisabled()\" />\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 readonly toolbarIcons = input<Readonly<Partial<Record<AerisEditorFormat, TemplateRef<void>>>>>(\n {},\n );\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 touched = input<boolean | null>(null);\n protected readonly displayInvalid = computed(() =>\n ɵaerisDisplayInvalid(this.invalid(), this.touched()),\n );\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly showToolbar = input(true, { transform: booleanAttribute });\n\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 protected readonly toolbarSeparators = computed(() => {\n let hasPreviousGroup =\n this.availableFormats().has('undo') || this.availableFormats().has('redo');\n const beforeGroup = (hasActions: boolean) => {\n const show = hasPreviousGroup && hasActions;\n hasPreviousGroup ||= hasActions;\n return show;\n };\n return {\n inline: beforeGroup(this.hasInlineActions()),\n block: beforeGroup(this.hasBlockActions()),\n list: beforeGroup(this.hasListActions()),\n alignment: beforeGroup(this.hasAlignmentActions()),\n document: beforeGroup(this.hasDocumentActions()),\n };\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.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"],"mappings":";;;;;;;;;;;;AA2HA,MAAa,+BAA+B;CAC1C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AAC+C;AAEjD,MAAa,2BAA2B;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AAC+C;AAOjD,IAAI,WAAW;AA+yBf,IAAa,uBAAb,MAAa,qBAAoB;CACtB,eAAe,MACtB,CAAA,GACD,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;CACgB,WAAW,OAAO,QAAQ;CAC1B,YAAY,OAAO,YAAY;CACvC,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACjB,UAAU,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACnB,OAAO,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAChB,cAAc,MAAM,sBAAqB,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BA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