@ngstarter-ui/components 21.0.73 → 21.0.75

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.
Files changed (38) hide show
  1. package/ai/component-registry.json +97 -1
  2. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-BZniTqu-.mjs → ngstarter-ui-components-content-editor-code-block.component-CLfzSb69.mjs} +2 -2
  3. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-BZniTqu-.mjs.map → ngstarter-ui-components-content-editor-code-block.component-CLfzSb69.mjs.map} +1 -1
  4. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-QzDMzd3u.mjs → ngstarter-ui-components-content-editor-embed-block-BMBObSRE.mjs} +2 -2
  5. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-QzDMzd3u.mjs.map → ngstarter-ui-components-content-editor-embed-block-BMBObSRE.mjs.map} +1 -1
  6. package/fesm2022/{ngstarter-ui-components-content-editor-heading-block.component-CnYRnDBY.mjs → ngstarter-ui-components-content-editor-heading-block.component-DL9PehLX.mjs} +2 -2
  7. package/fesm2022/{ngstarter-ui-components-content-editor-heading-block.component-CnYRnDBY.mjs.map → ngstarter-ui-components-content-editor-heading-block.component-DL9PehLX.mjs.map} +1 -1
  8. package/fesm2022/{ngstarter-ui-components-content-editor-image-block.component-IP_eRCQ2.mjs → ngstarter-ui-components-content-editor-image-block.component-DJWItlMf.mjs} +2 -2
  9. package/fesm2022/{ngstarter-ui-components-content-editor-image-block.component-IP_eRCQ2.mjs.map → ngstarter-ui-components-content-editor-image-block.component-DJWItlMf.mjs.map} +1 -1
  10. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-amyfzXOW.mjs → ngstarter-ui-components-content-editor-list-block.component-J9vhrddX.mjs} +2 -2
  11. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-amyfzXOW.mjs.map → ngstarter-ui-components-content-editor-list-block.component-J9vhrddX.mjs.map} +1 -1
  12. package/fesm2022/{ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-DA-VnRa_.mjs → ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-Be8dDH3z.mjs} +40 -40
  13. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-Be8dDH3z.mjs.map +1 -0
  14. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-DtophI4_.mjs → ngstarter-ui-components-content-editor-paragraph-block.component-DxE2SXVt.mjs} +2 -2
  15. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-DtophI4_.mjs.map → ngstarter-ui-components-content-editor-paragraph-block.component-DxE2SXVt.mjs.map} +1 -1
  16. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-B20eHQdw.mjs → ngstarter-ui-components-content-editor-quote-block.component-BEt5JkO8.mjs} +2 -2
  17. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-B20eHQdw.mjs.map → ngstarter-ui-components-content-editor-quote-block.component-BEt5JkO8.mjs.map} +1 -1
  18. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-hJ4OxKRX.mjs → ngstarter-ui-components-content-editor-table-block.component-BeCHXahH.mjs} +9 -9
  19. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BeCHXahH.mjs.map +1 -0
  20. package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-Cs7L1wwX.mjs → ngstarter-ui-components-content-editor-video-block.component-BzFQtQwc.mjs} +2 -2
  21. package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-Cs7L1wwX.mjs.map → ngstarter-ui-components-content-editor-video-block.component-BzFQtQwc.mjs.map} +1 -1
  22. package/fesm2022/ngstarter-ui-components-content-editor.mjs +1 -1
  23. package/fesm2022/ngstarter-ui-components-dialog.mjs +2 -2
  24. package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
  25. package/fesm2022/ngstarter-ui-components-form-builder.mjs +23 -35
  26. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  27. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +60 -29
  28. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  29. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +805 -0
  30. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -0
  31. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +2 -2
  32. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  33. package/package.json +5 -1
  34. package/types/ngstarter-ui-components-form-builder.d.ts +2 -4
  35. package/types/ngstarter-ui-components-pdf-builder.d.ts +119 -3
  36. package/types/ngstarter-ui-components-pdf-signer.d.ts +144 -0
  37. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-DA-VnRa_.mjs.map +0 -1
  38. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-hJ4OxKRX.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ngstarter-ui-components-content-editor-list-block.component-amyfzXOW.mjs","sources":["../../../projects/components/content-editor/src/content-observer.directive.ts","../../../projects/components/content-editor/src/_builder/list-block/list-block.component.ts","../../../projects/components/content-editor/src/_builder/list-block/list-block.component.html"],"sourcesContent":["import { Directive, ElementRef, inject, input, OnDestroy, OnInit, output, PLATFORM_ID } from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\n\n@Directive({\n selector: '[ngsContentObserver]'\n})\nexport class ContentObserverDirective implements OnInit, OnDestroy {\n private _platformId = inject(PLATFORM_ID);\n private _elementRef = inject(ElementRef);\n private _observer!: MutationObserver;\n\n detectAddedNode = input.required();\n\n readonly nodeAdded = output<HTMLElement>();\n\n ngOnInit() {\n if (isPlatformServer(this._platformId)) {\n return;\n }\n\n const config = { attributes: false, childList: true, subtree: false };\n const callback = (mutationList: any, observer: any) => {\n for (const mutation of mutationList) {\n if (mutation.type === 'childList') {\n const addedNode = mutation.addedNodes[0];\n\n if (addedNode && addedNode.tagName && addedNode.classList.contains(this.detectAddedNode())) {\n this.nodeAdded.emit(addedNode);\n }\n }\n }\n };\n this._observer = new MutationObserver(callback);\n this._observer.observe(this._elementRef.nativeElement, config);\n }\n\n ngOnDestroy() {\n this._observer?.disconnect();\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n inject,\n input,\n OnInit,\n signal\n} from '@angular/core';\nimport { ContentBuilderStore } from '../../content-builder.store';\nimport {\n CONTENT_BUILDER, CONTENT_EDITOR_BLOCK,\n ContentEditorDataBlock,\n ContentEditorItemProperty,\n ContentEditorListItem,\n ContentEditorListSettings\n} from '../../types';\nimport { ContentEditorContentEditableDirective } from '../../content-editor-content-editable.directive';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ContentObserverDirective } from '../../content-observer.directive';\nimport { CursorController } from '../../utils/cursor-controller';\nimport { ContentBuilderComponent } from '../../content-builder/content-builder.component';\n\n@Component({\n selector: 'ngs-list-block',\n exportAs: 'ngsListBlock',\n imports: [\n ContentEditorContentEditableDirective,\n NgTemplateOutlet,\n ContentObserverDirective\n ],\n templateUrl: './list-block.component.html',\n styleUrl: './list-block.component.scss',\n providers: [\n {\n provide: CONTENT_EDITOR_BLOCK,\n useExisting: ListBlockComponent,\n multi: true\n }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.list-bullet]': \"_listStyle() === 'bullet'\",\n '[class.list-ordered]': \"_listStyle() === 'ordered'\",\n }\n})\nexport class ListBlockComponent implements OnInit, ContentEditorDataBlock, AfterViewInit {\n private _store = inject(ContentBuilderStore);\n private _contentBuilder = inject<ContentBuilderComponent>(CONTENT_BUILDER);\n\n id = input.required<string>();\n content = input.required<ContentEditorListItem[]>();\n settings = input.required<ContentEditorListSettings>();\n index = input.required<number>();\n\n protected _placeholder = signal<string>('List item');\n protected _content = signal<ContentEditorListItem[]>([\n {\n content: '',\n props: [],\n children: []\n }\n ]);\n protected _listStyle = signal('');\n readonly initialized = signal(false);\n\n ngOnInit() {\n this._listStyle.set(this.settings().listStyle);\n\n if (this.content().length !== 0) {\n this._content.set(this.content());\n }\n }\n\n ngAfterViewInit() {\n this.initialized.set(true);\n }\n\n focus() {\n }\n\n protected onContentChanged(content: string, list: ContentEditorListItem[], index: number) {\n if (!list[index]) {\n return;\n }\n\n list[index].content = content;\n this.update();\n }\n\n protected onPressedEnter(\n event: KeyboardEvent,\n contentEditable: ContentEditorContentEditableDirective,\n list: ContentEditorListItem[],\n index: number,\n level: number,\n parentItem: ContentEditorListItem | null,\n parentList: ContentEditorListItem[]\n ) {\n event.preventDefault();\n event.stopPropagation();\n\n if (level === 0) {\n const content = contentEditable.getContent();\n\n if (content) {\n list.splice(index + 1, 0, {\n content: '',\n props: [],\n styles: {},\n children: []\n });\n } else {\n list.splice(index, 1);\n\n if (list.length === 0) {\n this._contentBuilder.deleteBlock(this.id());\n }\n\n this._contentBuilder.insertEmptyBlock(this.index());\n }\n } else {\n if (list[index] && !list[index].content) {\n list.splice(index, 1);\n const parentIndex = parentList.findIndex(item => item === parentItem);\n parentList.splice(parentIndex + 1, 0, {\n content: '',\n props: [],\n children: []\n });\n } else {\n list.splice(index + 1, 0, {\n content: '',\n props: [],\n styles: {},\n children: []\n });\n }\n }\n\n this.update();\n }\n\n getId(level: number, index: number): string {\n return 'item-level-' + (level + index + 2).toString();\n }\n\n getData(): any {\n return {\n content: this._content(),\n settings: {\n ...this.settings(),\n }\n };\n }\n\n isEmpty(): boolean {\n return this.getData().content.find((item: any) => item.content.trim().length > 0);\n }\n\n protected _onNodeAdded(node: HTMLElement) {\n this._focusItem(node.querySelector('.list-item-content') as HTMLElement);\n }\n\n protected _focusItem(element: HTMLElement) {\n const cursorController = new CursorController(element);\n cursorController.setToEnd();\n }\n\n protected _onKeyDown(\n event: KeyboardEvent,\n contentEditable: ContentEditorContentEditableDirective,\n list: ContentEditorListItem[],\n index: number,\n level: number,\n parentItem: ContentEditorListItem | null,\n parentList: ContentEditorListItem[],\n listItem: HTMLElement\n ) {\n if (event.key === 'Backspace' && !contentEditable.getContent()) {\n const latestElementInParentList = (listItem.closest('.list') as HTMLElement)?.parentNode;\n list.splice(index, 1);\n const prevElement = listItem.previousSibling as HTMLElement;\n\n if (prevElement) {\n this._focusItem(prevElement.querySelector('.list-item-content') as HTMLElement);\n } else {\n if (latestElementInParentList) {\n this._focusItem(latestElementInParentList.querySelector('.list-item-content') as HTMLElement);\n }\n }\n } else if (event.key === 'Tab') {\n event.preventDefault();\n event.stopPropagation();\n\n if (event.shiftKey && parentItem) {\n const cached = JSON.parse(JSON.stringify(list[index]));\n list.splice(index, 1);\n const parentIndex = parentList.findIndex(item => item === parentItem);\n parentList.splice(parentIndex + 1, 0, cached);\n } else {\n if (list[index - 1]) {\n const cached = JSON.parse(JSON.stringify(list[index]));\n list.splice(index, 1);\n list[index - 1].children.push(cached);\n }\n }\n }\n\n if (level === 0 && list.length === 0) {\n this._contentBuilder.deleteBlock(this.id());\n }\n\n this.update();\n }\n\n onPropsChanged(props: ContentEditorItemProperty[], item: any) {\n item.props = props;\n this.update();\n }\n\n private update() {\n this._store.updateBlock(this.id(), {...this.getData(), isEmpty: this.isEmpty()});\n this._contentBuilder.emitContentChangeEvent();\n }\n}\n","<ul class=\"list\"\n ngsContentObserver\n detectAddedNode=\"list-item\"\n (nodeAdded)=\"_onNodeAdded($event)\">\n <ng-container [ngTemplateOutlet]=\"listTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: _content(), level: 0, parentItem: null, parentList: [] }\"/>\n</ul>\n\n<ng-template #listTpl let-list let-level=\"level\" let-parentItem=\"parentItem\" let-parentList=\"parentList\">\n @for (item of list; track $index; let index = $index) {\n <li #listItem class=\"list-item\" [attr.id]=\"getId(level, index)\">\n <div [ngsContentEditorContentEditable]=\"item.content\"\n [props]=\"item.props\"\n (propsChanged)=\"onPropsChanged($event, item)\"\n #contentEditable=\"ngsContentEditorContentEditable\"\n class=\"list-item-content\"\n (contentChanged)=\"onContentChanged($event, list, index)\"\n (pressedEnter)=\"onPressedEnter($event, contentEditable, list, index, level, parentItem, parentList)\"\n (keydown)=\"_onKeyDown($event, contentEditable, list, index, level, parentItem, parentList, listItem)\"\n [attr.data-empty-placeholder]=\"_placeholder()\"></div>\n @if (item.children.length > 0) {\n <ol class=\"list\"\n ngsContentObserver\n detectAddedNode=\"list-item\"\n (nodeAdded)=\"_onNodeAdded($event)\">\n <ng-container [ngTemplateOutlet]=\"listTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item.children, level: level + 1, parentItem: item, parentList: list }\"/>\n </ol>\n }\n </li>\n }\n</ng-template>\n"],"names":[],"mappings":";;;;;;;MAMa,wBAAwB,CAAA;AAC3B,IAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;AACjC,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,IAAA,SAAS;AAEjB,IAAA,eAAe,GAAG,KAAK,CAAC,QAAQ,qFAAE;IAEzB,SAAS,GAAG,MAAM,EAAe;IAE1C,QAAQ,GAAA;AACN,QAAA,IAAI,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;YACtC;QACF;AAEA,QAAA,MAAM,MAAM,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;AACrE,QAAA,MAAM,QAAQ,GAAG,CAAC,YAAiB,EAAE,QAAa,KAAI;AACpD,YAAA,KAAK,MAAM,QAAQ,IAAI,YAAY,EAAE;AACnC,gBAAA,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW,EAAE;oBACjC,MAAM,SAAS,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAExC,oBAAA,IAAI,SAAS,IAAI,SAAS,CAAC,OAAO,IAAI,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE;AAC1F,wBAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC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;AACrD,qBAAA,EAAA,QAAA,EAAA,ylDAAA,EAAA,MAAA,EAAA,CAAA,koBAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"ngstarter-ui-components-content-editor-list-block.component-J9vhrddX.mjs","sources":["../../../projects/components/content-editor/src/content-observer.directive.ts","../../../projects/components/content-editor/src/_builder/list-block/list-block.component.ts","../../../projects/components/content-editor/src/_builder/list-block/list-block.component.html"],"sourcesContent":["import { Directive, ElementRef, inject, input, OnDestroy, OnInit, output, PLATFORM_ID } from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\n\n@Directive({\n selector: '[ngsContentObserver]'\n})\nexport class ContentObserverDirective implements OnInit, OnDestroy {\n private _platformId = inject(PLATFORM_ID);\n private _elementRef = inject(ElementRef);\n private _observer!: MutationObserver;\n\n detectAddedNode = input.required();\n\n readonly nodeAdded = output<HTMLElement>();\n\n ngOnInit() {\n if (isPlatformServer(this._platformId)) {\n return;\n }\n\n const config = { attributes: false, childList: true, subtree: false };\n const callback = (mutationList: any, observer: any) => {\n for (const mutation of mutationList) {\n if (mutation.type === 'childList') {\n const addedNode = mutation.addedNodes[0];\n\n if (addedNode && addedNode.tagName && addedNode.classList.contains(this.detectAddedNode())) {\n this.nodeAdded.emit(addedNode);\n }\n }\n }\n };\n this._observer = new MutationObserver(callback);\n this._observer.observe(this._elementRef.nativeElement, config);\n }\n\n ngOnDestroy() {\n this._observer?.disconnect();\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n inject,\n input,\n OnInit,\n signal\n} from '@angular/core';\nimport { ContentBuilderStore } from '../../content-builder.store';\nimport {\n CONTENT_BUILDER, CONTENT_EDITOR_BLOCK,\n ContentEditorDataBlock,\n ContentEditorItemProperty,\n ContentEditorListItem,\n ContentEditorListSettings\n} from '../../types';\nimport { ContentEditorContentEditableDirective } from '../../content-editor-content-editable.directive';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ContentObserverDirective } from '../../content-observer.directive';\nimport { CursorController } from '../../utils/cursor-controller';\nimport { ContentBuilderComponent } from '../../content-builder/content-builder.component';\n\n@Component({\n selector: 'ngs-list-block',\n exportAs: 'ngsListBlock',\n imports: [\n ContentEditorContentEditableDirective,\n NgTemplateOutlet,\n ContentObserverDirective\n ],\n templateUrl: './list-block.component.html',\n styleUrl: './list-block.component.scss',\n providers: [\n {\n provide: CONTENT_EDITOR_BLOCK,\n useExisting: ListBlockComponent,\n multi: true\n }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.list-bullet]': \"_listStyle() === 'bullet'\",\n '[class.list-ordered]': \"_listStyle() === 'ordered'\",\n }\n})\nexport class ListBlockComponent implements OnInit, ContentEditorDataBlock, AfterViewInit {\n private _store = inject(ContentBuilderStore);\n private _contentBuilder = inject<ContentBuilderComponent>(CONTENT_BUILDER);\n\n id = input.required<string>();\n content = input.required<ContentEditorListItem[]>();\n settings = input.required<ContentEditorListSettings>();\n index = input.required<number>();\n\n protected _placeholder = signal<string>('List item');\n protected _content = signal<ContentEditorListItem[]>([\n {\n content: '',\n props: [],\n children: []\n }\n ]);\n protected _listStyle = signal('');\n readonly initialized = signal(false);\n\n ngOnInit() {\n this._listStyle.set(this.settings().listStyle);\n\n if (this.content().length !== 0) {\n this._content.set(this.content());\n }\n }\n\n ngAfterViewInit() {\n this.initialized.set(true);\n }\n\n focus() {\n }\n\n protected onContentChanged(content: string, list: ContentEditorListItem[], index: number) {\n if (!list[index]) {\n return;\n }\n\n list[index].content = content;\n this.update();\n }\n\n protected onPressedEnter(\n event: KeyboardEvent,\n contentEditable: ContentEditorContentEditableDirective,\n list: ContentEditorListItem[],\n index: number,\n level: number,\n parentItem: ContentEditorListItem | null,\n parentList: ContentEditorListItem[]\n ) {\n event.preventDefault();\n event.stopPropagation();\n\n if (level === 0) {\n const content = contentEditable.getContent();\n\n if (content) {\n list.splice(index + 1, 0, {\n content: '',\n props: [],\n styles: {},\n children: []\n });\n } else {\n list.splice(index, 1);\n\n if (list.length === 0) {\n this._contentBuilder.deleteBlock(this.id());\n }\n\n this._contentBuilder.insertEmptyBlock(this.index());\n }\n } else {\n if (list[index] && !list[index].content) {\n list.splice(index, 1);\n const parentIndex = parentList.findIndex(item => item === parentItem);\n parentList.splice(parentIndex + 1, 0, {\n content: '',\n props: [],\n children: []\n });\n } else {\n list.splice(index + 1, 0, {\n content: '',\n props: [],\n styles: {},\n children: []\n });\n }\n }\n\n this.update();\n }\n\n getId(level: number, index: number): string {\n return 'item-level-' + (level + index + 2).toString();\n }\n\n getData(): any {\n return {\n content: this._content(),\n settings: {\n ...this.settings(),\n }\n };\n }\n\n isEmpty(): boolean {\n return this.getData().content.find((item: any) => item.content.trim().length > 0);\n }\n\n protected _onNodeAdded(node: HTMLElement) {\n this._focusItem(node.querySelector('.list-item-content') as HTMLElement);\n }\n\n protected _focusItem(element: HTMLElement) {\n const cursorController = new CursorController(element);\n cursorController.setToEnd();\n }\n\n protected _onKeyDown(\n event: KeyboardEvent,\n contentEditable: ContentEditorContentEditableDirective,\n list: ContentEditorListItem[],\n index: number,\n level: number,\n parentItem: ContentEditorListItem | null,\n parentList: ContentEditorListItem[],\n listItem: HTMLElement\n ) {\n if (event.key === 'Backspace' && !contentEditable.getContent()) {\n const latestElementInParentList = (listItem.closest('.list') as HTMLElement)?.parentNode;\n list.splice(index, 1);\n const prevElement = listItem.previousSibling as HTMLElement;\n\n if (prevElement) {\n this._focusItem(prevElement.querySelector('.list-item-content') as HTMLElement);\n } else {\n if (latestElementInParentList) {\n this._focusItem(latestElementInParentList.querySelector('.list-item-content') as HTMLElement);\n }\n }\n } else if (event.key === 'Tab') {\n event.preventDefault();\n event.stopPropagation();\n\n if (event.shiftKey && parentItem) {\n const cached = JSON.parse(JSON.stringify(list[index]));\n list.splice(index, 1);\n const parentIndex = parentList.findIndex(item => item === parentItem);\n parentList.splice(parentIndex + 1, 0, cached);\n } else {\n if (list[index - 1]) {\n const cached = JSON.parse(JSON.stringify(list[index]));\n list.splice(index, 1);\n list[index - 1].children.push(cached);\n }\n }\n }\n\n if (level === 0 && list.length === 0) {\n this._contentBuilder.deleteBlock(this.id());\n }\n\n this.update();\n }\n\n onPropsChanged(props: ContentEditorItemProperty[], item: any) {\n item.props = props;\n this.update();\n }\n\n private update() {\n this._store.updateBlock(this.id(), {...this.getData(), isEmpty: this.isEmpty()});\n this._contentBuilder.emitContentChangeEvent();\n }\n}\n","<ul class=\"list\"\n ngsContentObserver\n detectAddedNode=\"list-item\"\n (nodeAdded)=\"_onNodeAdded($event)\">\n <ng-container [ngTemplateOutlet]=\"listTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: _content(), level: 0, parentItem: null, parentList: [] }\"/>\n</ul>\n\n<ng-template #listTpl let-list let-level=\"level\" let-parentItem=\"parentItem\" let-parentList=\"parentList\">\n @for (item of list; track $index; let index = $index) {\n <li #listItem class=\"list-item\" [attr.id]=\"getId(level, index)\">\n <div [ngsContentEditorContentEditable]=\"item.content\"\n [props]=\"item.props\"\n (propsChanged)=\"onPropsChanged($event, item)\"\n #contentEditable=\"ngsContentEditorContentEditable\"\n class=\"list-item-content\"\n (contentChanged)=\"onContentChanged($event, list, index)\"\n (pressedEnter)=\"onPressedEnter($event, contentEditable, list, index, level, parentItem, parentList)\"\n (keydown)=\"_onKeyDown($event, contentEditable, list, index, level, parentItem, parentList, listItem)\"\n [attr.data-empty-placeholder]=\"_placeholder()\"></div>\n @if (item.children.length > 0) {\n <ol class=\"list\"\n ngsContentObserver\n detectAddedNode=\"list-item\"\n (nodeAdded)=\"_onNodeAdded($event)\">\n <ng-container [ngTemplateOutlet]=\"listTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item.children, level: level + 1, parentItem: item, parentList: list }\"/>\n </ol>\n }\n </li>\n }\n</ng-template>\n"],"names":[],"mappings":";;;;;;;MAMa,wBAAwB,CAAA;AAC3B,IAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;AACjC,IAAA,WAAW,GAAG,MA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A,aAAA,EAAA,cAAA,CAAA,EAAA,QAAA,EAAA,CAAA,iCAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACrC,gBAAgB,oJAChB,wBAAwB,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAiBf,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAvB9B,SAAS;+BACE,gBAAgB,EAAA,QAAA,EAChB,cAAc,EAAA,OAAA,EACf;wBACP,qCAAqC;wBACrC,gBAAgB;wBAChB;qBACD,EAAA,SAAA,EAGU;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,oBAAoB;AAC7B,4BAAA,WAAW,EAAA,kBAAoB;AAC/B,4BAAA,KAAK,EAAE;AACR;qBACF,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,qBAAqB,EAAE,2BAA2B;AAClD,wBAAA,sBAAsB,EAAE,4BAA4B;AACrD,qBAAA,EAAA,QAAA,EAAA,ylDAAA,EAAA,MAAA,EAAA,CAAA,koBAAA,CAAA,EAAA;;;;;"}
@@ -36,16 +36,16 @@ class TextHighlightService {
36
36
  const selection = window.getSelection();
37
37
  const range = this.getCurrentRangeInternal(selection);
38
38
  this.savedRange = range ? range.cloneRange() : null;
39
- // // console.log('TextHighlightService: Выделение сохранено/очищено.');
39
+ // // console.log('TextHighlightService: Selection saved/cleared.');
40
40
  }
41
41
  restoreSelection() {
42
42
  if (!this.savedRange) {
43
- // // console.warn('TextHighlightService: Нет сохраненного выделения для восстановления.');
43
+ // // console.warn('TextHighlightService: No saved selection to restore.');
44
44
  return;
45
45
  }
46
46
  const selection = window.getSelection();
47
47
  if (!selection) {
48
- // // console.error('TextHighlightService: Не удалось получить window.getSelection() для восстановления.');
48
+ // // console.error('TextHighlightService: Failed to get window.getSelection() for restoration.');
49
49
  this.savedRange = null;
50
50
  return;
51
51
  }
@@ -53,15 +53,15 @@ class TextHighlightService {
53
53
  try {
54
54
  selection.removeAllRanges();
55
55
  selection.addRange(this.savedRange);
56
- // // console.log('TextHighlightService: Выделение восстановлено.');
56
+ // // console.log('TextHighlightService: Selection restored.');
57
57
  }
58
58
  catch (e) {
59
- // // console.error('TextHighlightService: Ошибка при восстановлении выделения:', e);
59
+ // // console.error('TextHighlightService: Error restoring selection:', e);
60
60
  this.savedRange = null;
61
61
  }
62
62
  }
63
63
  else {
64
- // // console.warn('TextHighlightService: Сохраненный диапазон стал невалидным, восстановление невозможно.');
64
+ // // console.warn('TextHighlightService: The saved range is no longer valid and cannot be restored.');
65
65
  this.savedRange = null;
66
66
  }
67
67
  }
@@ -76,7 +76,7 @@ class TextHighlightService {
76
76
  const selection = window.getSelection();
77
77
  const range = this.getCurrentRangeInternal(selection);
78
78
  if (!range || !selection) {
79
- // // console.warn('TextHighlightService (wrapSelection): Нет валидного выделения.');
79
+ // // console.warn('TextHighlightService (wrapSelection): No valid selection.');
80
80
  return;
81
81
  }
82
82
  const normalizedTagName = tagName.toLowerCase();
@@ -87,11 +87,11 @@ class TextHighlightService {
87
87
  const newExactRange = document.createRange();
88
88
  newExactRange.selectNodeContents(exactExistingContainer);
89
89
  selection.addRange(newExactRange);
90
- // // console.log(`TextHighlightService (wrapSelection): Модифицирован существующий элемент <${normalizedTagName}>.`);
90
+ // // console.log(`TextHighlightService (wrapSelection): Modified existing <${normalizedTagName}> element.`);
91
91
  }
92
92
  else {
93
93
  this.wrapRange(selection, range, normalizedTagName, styles, classNames, attrs);
94
- // // console.log(`TextHighlightService (wrapSelection): Создана новая обертка <${normalizedTagName}>.`);
94
+ // // console.log(`TextHighlightService (wrapSelection): Created a new <${normalizedTagName}> wrapper.`);
95
95
  }
96
96
  }
97
97
  /**
@@ -104,7 +104,7 @@ class TextHighlightService {
104
104
  const selection = window.getSelection();
105
105
  const range = this.getCurrentRangeInternal(selection);
106
106
  if (!range || !selection) {
107
- // // console.warn('TextHighlightService (wrapOrSplitInlineSelection): Нет валидного выделения.');
107
+ // // console.warn('TextHighlightService (wrapOrSplitInlineSelection): No valid selection.');
108
108
  return;
109
109
  }
110
110
  const normalizedTagName = tagName.toLowerCase();
@@ -115,16 +115,16 @@ class TextHighlightService {
115
115
  const newExactRange = document.createRange();
116
116
  newExactRange.selectNodeContents(exactContainer);
117
117
  selection.addRange(newExactRange);
118
- // // console.log(`TextHighlightService (wrapOrSplitInlineSelection): Модифицирован существующий <${normalizedTagName}>.`);
118
+ // // console.log(`TextHighlightService (wrapOrSplitInlineSelection): Modified existing <${normalizedTagName}>.`);
119
119
  return;
120
120
  }
121
121
  const containingAncestor = this.findContainingAncestor(range, normalizedTagName);
122
122
  if (containingAncestor && this.isInlineElement(containingAncestor)) {
123
- // // console.log(`TextHighlightService (wrapOrSplitInlineSelection): Попытка разделить inline <${normalizedTagName}>.`);
123
+ // // console.log(`TextHighlightService (wrapOrSplitInlineSelection): Attempting to split inline <${normalizedTagName}>.`);
124
124
  this.splitInlineElementAndApplyToSelection(selection, range, containingAncestor, normalizedTagName, styles, classNames, attrs);
125
125
  return;
126
126
  }
127
- // // console.log(`TextHighlightService (wrapOrSplitInlineSelection): Создаем новую обертку <${normalizedTagName}>.`);
127
+ // // console.log(`TextHighlightService (wrapOrSplitInlineSelection): Creating a new <${normalizedTagName}> wrapper.`);
128
128
  this.wrapRange(selection, range, normalizedTagName, styles, classNames, attrs);
129
129
  }
130
130
  unwrapSelection(tagName) {
@@ -137,10 +137,10 @@ class TextHighlightService {
137
137
  ?? this.findContainingAncestor(range, normalizedTagName);
138
138
  if (elementToUnwrap) {
139
139
  this.unwrapElementAndReselect(selection, elementToUnwrap);
140
- // // console.log(`TextHighlightService (unwrapSelection): <${normalizedTagName}> развернут.`);
140
+ // // console.log(`TextHighlightService (unwrapSelection): Unwrapped <${normalizedTagName}>.`);
141
141
  }
142
142
  else {
143
- // // console.warn(`TextHighlightService (unwrapSelection): Не найден <${normalizedTagName}> для разворачивания.`);
143
+ // // console.warn(`TextHighlightService (unwrapSelection): No <${normalizedTagName}> found to unwrap.`);
144
144
  }
145
145
  }
146
146
  toggleWrapSelection(tagName, styles, classNames, attrs) {
@@ -480,15 +480,15 @@ class TextHighlightService {
480
480
  originalElementAttributes[attr.name] = attr.value;
481
481
  }
482
482
  const prefixRange = document.createRange();
483
- prefixRange.setStart(existingElement, 0); // От начала содержимого existingElement
483
+ prefixRange.setStart(existingElement, 0); // From the start of existingElement's contents
484
484
  try {
485
485
  prefixRange.setEnd(selectedRange.startContainer, selectedRange.startOffset);
486
486
  }
487
487
  catch (e) {
488
- // Если selectedRange.startContainer не является потомком existingElement, это может вызвать ошибку.
489
- // В таком случае, префиксной части нет или она не может быть корректно определена этим способом.
488
+ // If selectedRange.startContainer is not a descendant of existingElement, this may throw an error.
489
+ // In that case, there is no prefix, or it cannot be determined correctly this way.
490
490
  // console.warn("Error setting prefixRange end:", e);
491
- prefixRange.setEnd(existingElement, 0); // Схлопываем в начало
491
+ prefixRange.setEnd(existingElement, 0); // Collapse to the start
492
492
  }
493
493
  let prefixElementClone = null;
494
494
  if (!prefixRange.collapsed) {
@@ -504,17 +504,17 @@ class TextHighlightService {
504
504
  }
505
505
  catch (e) {
506
506
  // console.error("Error extracting/creating prefix:", e);
507
- prefixElementClone = null; // Не удалось создать префикс
507
+ prefixElementClone = null; // Failed to create the prefix
508
508
  }
509
509
  }
510
- // Извлекаем выделенное содержимое ДО работы с суффиксом, так как selectedRange может стать невалидным
510
+ // Extract the selected content BEFORE processing the suffix because selectedRange may become invalid
511
511
  let selectedFragment;
512
512
  try {
513
513
  if (selectedRange.commonAncestorContainer.isConnected && !selectedRange.collapsed) {
514
514
  selectedFragment = selectedRange.extractContents();
515
515
  }
516
516
  else {
517
- selectedFragment = document.createDocumentFragment(); // Пустой, если не удалось извлечь
517
+ selectedFragment = document.createDocumentFragment(); // Empty if extraction failed
518
518
  }
519
519
  }
520
520
  catch (e) {
@@ -522,7 +522,7 @@ class TextHighlightService {
522
522
  selectedFragment = document.createDocumentFragment();
523
523
  }
524
524
  let suffixElementClone = null;
525
- // То, что осталось в existingElement после извлечения префикса и выделенной части, - это суффикс
525
+ // What remains in existingElement after extracting the prefix and selected part is the suffix
526
526
  if (existingElement.hasChildNodes()) {
527
527
  suffixElementClone = document.createElement(existingElement.tagName);
528
528
  for (const attrName in originalElementAttributes) {
@@ -1515,7 +1515,7 @@ class ContentBuilderComponent {
1515
1515
  }
1516
1516
  },
1517
1517
  {
1518
- component: () => import('./ngstarter-ui-components-content-editor-paragraph-block.component-DtophI4_.mjs').then(c => c.ParagraphBlockComponent),
1518
+ component: () => import('./ngstarter-ui-components-content-editor-paragraph-block.component-DxE2SXVt.mjs').then(c => c.ParagraphBlockComponent),
1519
1519
  type: 'paragraph',
1520
1520
  options: {},
1521
1521
  empty: () => {
@@ -1527,7 +1527,7 @@ class ContentBuilderComponent {
1527
1527
  }
1528
1528
  },
1529
1529
  {
1530
- component: () => import('./ngstarter-ui-components-content-editor-code-block.component-BZniTqu-.mjs').then(c => c.CodeBlockComponent),
1530
+ component: () => import('./ngstarter-ui-components-content-editor-code-block.component-CLfzSb69.mjs').then(c => c.CodeBlockComponent),
1531
1531
  type: 'code',
1532
1532
  options: {},
1533
1533
  empty: () => {
@@ -1540,7 +1540,7 @@ class ContentBuilderComponent {
1540
1540
  }
1541
1541
  },
1542
1542
  {
1543
- component: () => import('./ngstarter-ui-components-content-editor-heading-block.component-CnYRnDBY.mjs').then(c => c.HeadingBlockComponent),
1543
+ component: () => import('./ngstarter-ui-components-content-editor-heading-block.component-DL9PehLX.mjs').then(c => c.HeadingBlockComponent),
1544
1544
  type: 'heading',
1545
1545
  options: {},
1546
1546
  empty: () => {
@@ -1554,7 +1554,7 @@ class ContentBuilderComponent {
1554
1554
  }
1555
1555
  },
1556
1556
  {
1557
- component: () => import('./ngstarter-ui-components-content-editor-image-block.component-IP_eRCQ2.mjs').then(c => c.ImageBlockComponent),
1557
+ component: () => import('./ngstarter-ui-components-content-editor-image-block.component-DJWItlMf.mjs').then(c => c.ImageBlockComponent),
1558
1558
  type: 'image',
1559
1559
  options: {
1560
1560
  uploadFn: (file, base64) => {
@@ -1581,7 +1581,7 @@ class ContentBuilderComponent {
1581
1581
  }
1582
1582
  },
1583
1583
  {
1584
- component: () => import('./ngstarter-ui-components-content-editor-video-block.component-Cs7L1wwX.mjs').then(c => c.VideoBlockComponent),
1584
+ component: () => import('./ngstarter-ui-components-content-editor-video-block.component-BzFQtQwc.mjs').then(c => c.VideoBlockComponent),
1585
1585
  type: 'video',
1586
1586
  options: {
1587
1587
  uploadFn: (file, base64) => {
@@ -1609,7 +1609,7 @@ class ContentBuilderComponent {
1609
1609
  }
1610
1610
  },
1611
1611
  {
1612
- component: () => import('./ngstarter-ui-components-content-editor-list-block.component-amyfzXOW.mjs').then(c => c.ListBlockComponent),
1612
+ component: () => import('./ngstarter-ui-components-content-editor-list-block.component-J9vhrddX.mjs').then(c => c.ListBlockComponent),
1613
1613
  type: 'bulletList',
1614
1614
  options: {},
1615
1615
  empty: () => {
@@ -1622,7 +1622,7 @@ class ContentBuilderComponent {
1622
1622
  }
1623
1623
  },
1624
1624
  {
1625
- component: () => import('./ngstarter-ui-components-content-editor-list-block.component-amyfzXOW.mjs').then(c => c.ListBlockComponent),
1625
+ component: () => import('./ngstarter-ui-components-content-editor-list-block.component-J9vhrddX.mjs').then(c => c.ListBlockComponent),
1626
1626
  type: 'orderedList',
1627
1627
  options: {},
1628
1628
  empty: () => {
@@ -1635,7 +1635,7 @@ class ContentBuilderComponent {
1635
1635
  }
1636
1636
  },
1637
1637
  {
1638
- component: () => import('./ngstarter-ui-components-content-editor-table-block.component-hJ4OxKRX.mjs').then(c => c.TableBlockComponent),
1638
+ component: () => import('./ngstarter-ui-components-content-editor-table-block.component-BeCHXahH.mjs').then(c => c.TableBlockComponent),
1639
1639
  type: 'table',
1640
1640
  options: {},
1641
1641
  empty: () => {
@@ -1704,7 +1704,7 @@ class ContentBuilderComponent {
1704
1704
  }
1705
1705
  },
1706
1706
  {
1707
- component: () => import('./ngstarter-ui-components-content-editor-quote-block.component-B20eHQdw.mjs').then(c => c.QuoteBlockComponent),
1707
+ component: () => import('./ngstarter-ui-components-content-editor-quote-block.component-BEt5JkO8.mjs').then(c => c.QuoteBlockComponent),
1708
1708
  type: 'quote',
1709
1709
  options: {},
1710
1710
  empty: () => {
@@ -1724,7 +1724,7 @@ class ContentBuilderComponent {
1724
1724
  }
1725
1725
  },
1726
1726
  {
1727
- component: () => import('./ngstarter-ui-components-content-editor-embed-block-QzDMzd3u.mjs').then(c => c.EmbedBlock),
1727
+ component: () => import('./ngstarter-ui-components-content-editor-embed-block-BMBObSRE.mjs').then(c => c.EmbedBlock),
1728
1728
  type: 'embed',
1729
1729
  options: {},
1730
1730
  empty: () => {
@@ -1951,7 +1951,7 @@ class ContentBuilderComponent {
1951
1951
  }
1952
1952
  // Initial resolve after view init
1953
1953
  this._resolvedScrollContainer = this._computeScrollContainer();
1954
- // Привязываем подписку на скролл к текущему контейнеру
1954
+ // Bind the scroll subscription to the current container
1955
1955
  this._rebindScrollListener();
1956
1956
  // Watch for changes of the input selector and recompute when it changes.
1957
1957
  // Create the signal effect within a valid injection context to satisfy Angular's requirement.
@@ -1959,7 +1959,7 @@ class ContentBuilderComponent {
1959
1959
  this._scrollEffect = effect(() => {
1960
1960
  const _selector = this.scrollContainer();
1961
1961
  this._resolvedScrollContainer = this._computeScrollContainer();
1962
- // Перепривязка слушателя при смене контейнера
1962
+ // Rebind the listener when the container changes
1963
1963
  this._rebindScrollListener();
1964
1964
  }, ...(ngDevMode ? [{ debugName: "_scrollEffect" }] : /* istanbul ignore next */ []));
1965
1965
  });
@@ -2024,7 +2024,7 @@ class ContentBuilderComponent {
2024
2024
  if (isPlatformServer(this._platformId)) {
2025
2025
  return;
2026
2026
  }
2027
- // Отписываемся от предыдущего контейнера, если был
2027
+ // Unsubscribe from the previous container, if any
2028
2028
  if (this._scrollBindSub) {
2029
2029
  try {
2030
2030
  this._scrollBindSub.unsubscribe();
@@ -2037,7 +2037,7 @@ class ContentBuilderComponent {
2037
2037
  if (!container) {
2038
2038
  return;
2039
2039
  }
2040
- // Формируем источник скролла
2040
+ // Create the scroll source
2041
2041
  const getTop = () => {
2042
2042
  if (container instanceof Window) {
2043
2043
  return container.scrollY || container.pageYOffset || 0;
@@ -2045,12 +2045,12 @@ class ContentBuilderComponent {
2045
2045
  return container.scrollTop || 0;
2046
2046
  };
2047
2047
  const source$ = fromEvent(container, 'scroll').pipe(auditTime(50), map(() => getTop()), startWith(getTop()), distinctUntilChanged());
2048
- // Подписка: проксируем значения в общий Subject
2048
+ // Subscribe and forward values to the shared Subject
2049
2049
  this._scrollBindSub = source$.subscribe(top => {
2050
2050
  this._scrollSubject.next(top);
2051
2051
  });
2052
2052
  }
2053
- // удалён дубликат ngOnDestroy — см. реализацию в конце класса
2053
+ // Duplicate ngOnDestroy removed; see the implementation at the end of the class
2054
2054
  appendBlock(type, focus = true) {
2055
2055
  this.insertBlock(type, this._content().length, {}, focus);
2056
2056
  }
@@ -2961,4 +2961,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
2961
2961
  */
2962
2962
 
2963
2963
  export { BlockSelectionDirective as B, ContentBuilderStore as C, TextSelectionPopupDirective as T, CONTENT_BUILDER as a, CONTENT_EDITOR_BLOCK as b, CONTENT_EDITOR_BLOCK_RENDERERS as c, CONTENT_EDITOR_DEFAULT_RENDERERS as d, CommandBarComponent as e, ContentBuilderComponent as f, ContentEditorCodeRenderer as g, ContentEditorDividerRenderer as h, ContentEditorEmbedRenderer as i, ContentEditorHeadingRenderer as j, ContentEditorImageRenderer as k, ContentEditorListRenderer as l, ContentEditorParagraphRenderer as m, ContentEditorQuoteRenderer as n, ContentEditorRenderer as o, ContentEditorTableRenderer as p, ContentEditorVideoRenderer as q, provideContentEditorRenderer as r, provideContentEditorRenderers as s };
2964
- //# sourceMappingURL=ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-DA-VnRa_.mjs.map
2964
+ //# sourceMappingURL=ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-Be8dDH3z.mjs.map