@ngstarter-ui/components 1.0.25 → 1.0.27
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.
|
@@ -346,6 +346,8 @@ class CommentEditor {
|
|
|
346
346
|
fullViewMode = input(false, { ...(ngDevMode ? { debugName: "fullViewMode" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
347
347
|
cancelButtonAlwaysVisible = input(false, { ...(ngDevMode ? { debugName: "cancelButtonAlwaysVisible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
348
348
|
allowEmptyContent = input(false, { ...(ngDevMode ? { debugName: "allowEmptyContent" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
349
|
+
autoClear = input(true, { ...(ngDevMode ? { debugName: "autoClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
350
|
+
loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
349
351
|
imageUploadFn = input(...(ngDevMode ? [undefined, { debugName: "imageUploadFn" }] : /* istanbul ignore next */ []));
|
|
350
352
|
sent = output();
|
|
351
353
|
canceled = output();
|
|
@@ -361,7 +363,8 @@ class CommentEditor {
|
|
|
361
363
|
isToolbarActive: () => this.showToolbar,
|
|
362
364
|
toggleToolbar: () => this.toggleToolbar(),
|
|
363
365
|
isEditorActivated: () => this.fullView || this.fullViewMode(),
|
|
364
|
-
insertText: (text) => this.insertText(text)
|
|
366
|
+
insertText: (text) => this.insertText(text),
|
|
367
|
+
clear: () => this.clear()
|
|
365
368
|
};
|
|
366
369
|
}
|
|
367
370
|
insertText(text) {
|
|
@@ -437,10 +440,21 @@ class CommentEditor {
|
|
|
437
440
|
this.sent.emit(this._value);
|
|
438
441
|
this.showToolbar = false;
|
|
439
442
|
this.fullView = false;
|
|
443
|
+
if (this.autoClear()) {
|
|
444
|
+
this.clear();
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
clear() {
|
|
440
448
|
this._value = '';
|
|
441
|
-
this.editor
|
|
449
|
+
this.editor?.commands.clearContent(true);
|
|
442
450
|
}
|
|
443
|
-
activateFullView() {
|
|
451
|
+
activateFullView(event) {
|
|
452
|
+
if (event) {
|
|
453
|
+
const target = event.target;
|
|
454
|
+
if (target.closest('button')) {
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
444
458
|
if (this.fullView) {
|
|
445
459
|
return;
|
|
446
460
|
}
|
|
@@ -454,8 +468,7 @@ class CommentEditor {
|
|
|
454
468
|
event.preventDefault();
|
|
455
469
|
this.showToolbar = false;
|
|
456
470
|
this.fullView = false;
|
|
457
|
-
this.
|
|
458
|
-
this.editor.commands.clearContent(true);
|
|
471
|
+
this.clear();
|
|
459
472
|
this.canceled.emit();
|
|
460
473
|
}
|
|
461
474
|
_runCommand(command) {
|
|
@@ -534,17 +547,18 @@ class CommentEditor {
|
|
|
534
547
|
content: '',
|
|
535
548
|
onUpdate: ({ editor }) => {
|
|
536
549
|
this._value = !editor.isEmpty ? editor.getHTML() : '';
|
|
550
|
+
this._cdr.markForCheck();
|
|
537
551
|
}
|
|
538
552
|
});
|
|
539
553
|
this._cdr.detectChanges();
|
|
540
554
|
}
|
|
541
555
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CommentEditor, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
542
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CommentEditor, isStandalone: true, selector: "ngs-comment-editor", inputs: { contentMaxHeight: { classPropertyName: "contentMaxHeight", publicName: "contentMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, buttonCancelLabel: { classPropertyName: "buttonCancelLabel", publicName: "buttonCancelLabel", isSignal: true, isRequired: false, transformFunction: null }, buttonSendLabel: { classPropertyName: "buttonSendLabel", publicName: "buttonSendLabel", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, toolbarAlwaysVisible: { classPropertyName: "toolbarAlwaysVisible", publicName: "toolbarAlwaysVisible", isSignal: true, isRequired: false, transformFunction: null }, fullViewMode: { classPropertyName: "fullViewMode", publicName: "fullViewMode", isSignal: true, isRequired: false, transformFunction: null }, cancelButtonAlwaysVisible: { classPropertyName: "cancelButtonAlwaysVisible", publicName: "cancelButtonAlwaysVisible", isSignal: true, isRequired: false, transformFunction: null }, allowEmptyContent: { classPropertyName: "allowEmptyContent", publicName: "allowEmptyContent", isSignal: true, isRequired: false, transformFunction: null }, imageUploadFn: { classPropertyName: "imageUploadFn", publicName: "imageUploadFn", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sent: "sent", canceled: "canceled" }, host: { listeners: { "click": "activateFullView()" }, properties: { "class.full-view": "fullView || fullViewMode()" }, classAttribute: "ngs-comment-editor" }, providers: [
|
|
556
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CommentEditor, isStandalone: true, selector: "ngs-comment-editor", inputs: { contentMaxHeight: { classPropertyName: "contentMaxHeight", publicName: "contentMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, buttonCancelLabel: { classPropertyName: "buttonCancelLabel", publicName: "buttonCancelLabel", isSignal: true, isRequired: false, transformFunction: null }, buttonSendLabel: { classPropertyName: "buttonSendLabel", publicName: "buttonSendLabel", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, toolbarAlwaysVisible: { classPropertyName: "toolbarAlwaysVisible", publicName: "toolbarAlwaysVisible", isSignal: true, isRequired: false, transformFunction: null }, fullViewMode: { classPropertyName: "fullViewMode", publicName: "fullViewMode", isSignal: true, isRequired: false, transformFunction: null }, cancelButtonAlwaysVisible: { classPropertyName: "cancelButtonAlwaysVisible", publicName: "cancelButtonAlwaysVisible", isSignal: true, isRequired: false, transformFunction: null }, allowEmptyContent: { classPropertyName: "allowEmptyContent", publicName: "allowEmptyContent", isSignal: true, isRequired: false, transformFunction: null }, autoClear: { classPropertyName: "autoClear", publicName: "autoClear", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, imageUploadFn: { classPropertyName: "imageUploadFn", publicName: "imageUploadFn", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sent: "sent", canceled: "canceled" }, host: { listeners: { "click": "activateFullView($event)" }, properties: { "class.full-view": "fullView || fullViewMode()" }, classAttribute: "ngs-comment-editor" }, providers: [
|
|
543
557
|
{
|
|
544
558
|
provide: COMMENT_EDITOR,
|
|
545
559
|
useExisting: forwardRef(() => CommentEditor)
|
|
546
560
|
}
|
|
547
|
-
], viewQueries: [{ propertyName: "_content", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "_bubbleMenu", first: true, predicate: ["bubbleMenu"], descendants: true, isSignal: true }, { propertyName: "_imageBubbleMenu", first: true, predicate: ["imageBubbleMenu"], descendants: true, isSignal: true }], exportAs: ["ngsCommentEditor"], ngImport: i0, template: "@if ((showToolbar || toolbarAlwaysVisible()) && (fullView || fullViewMode())) {\n <div class=\"toolbar\">\n <ng-content select=\"ngs-comment-editor-toolbar\"/>\n </div>\n}\n<div #content class=\"content prose dark:prose-invert max-w-full\"></div>\n<div class=\"editor-content\">\n <ng-content/>\n</div>\n<div class=\"footer\">\n <div class=\"flex items-center gap-0.5 grow pe-3\">\n <ng-content select=\"ngs-comment-editor-footer-bar\"/>\n </div>\n <div class=\"flex items-center gap-2\">\n @if ((fullView && !fullViewMode()) || cancelButtonAlwaysVisible()) {\n <button ngsButton (click)=\"cancel($event)\">{{ buttonCancelLabel() }}</button>\n }\n <button ngsButton=\"filled\"\n [disabled]=\"(!allowEmptyContent() && !_value) || null\"\n (click)=\"send($event)\">{{ buttonSendLabel() }}\n </button>\n </div>\n</div>\n<div #imageBubbleMenu class=\"ngs-comment-editor-bubble-menu\">\n</div>\n<div #bubbleMenu>\n <ng-content select=\"ngs-comment-editor-bubble-menu\"/>\n</div>\n<!--<div #floatingMenu class=\"floating-menu\">-->\n<!-- @if (editor) {-->\n<!-- <div class=\"flex items-center gap-1.5\">-->\n<!-- <button class=\"button\"-->\n<!-- [disabled]=\"isCommandDisabled('toggleCodeBlock')\"-->\n<!-- [class.active]=\"editor && editor.isActive('codeBlock')\"-->\n<!-- (click)=\"onButtonClick('toggleCodeBlock')\">-->\n<!-- <ngs-icon name=\"fluent:code-24-regular\"/>-->\n<!-- </button>-->\n<!-- <button class=\"button\">-->\n<!-- <ngs-icon name=\"fluent:image-24-regular\"/>-->\n<!-- </button>-->\n<!-- </div>-->\n<!-- }-->\n<!--</div>-->\n", styles: [":host{--ngs-comment-editor-bg: transparent;--ngs-comment-editor-content-max-height: 9999px;display:block;position:relative;overflow:hidden;background:var(--ngs-comment-editor-bg)}:host .floating-menu{box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;background:var(--dropdown-bg);padding-top:calc(var(--spacing, .25rem) * 1.5);padding-bottom:calc(var(--spacing, .25rem) * 1.5);padding-inline-start:calc(var(--spacing, .25rem) * 2);padding-inline-end:calc(var(--spacing, .25rem) * 2);border:1px solid var(--color-border);border-radius:calc(infinity * 1px)}:host .floating-menu .button:hover{color:var(--color-primary);border-radius:calc(infinity * 1px)}:host .floating-menu .button ngs-icon{width:calc(var(--spacing, .25rem) * 6);height:calc(var(--spacing, .25rem) * 6);font-size:1.25rem;line-height:1.25}:host .floating-menu .button:disabled{pointer-events:none;opacity:70%}:host .content{position:absolute;inset:0;height:calc(var(--spacing, .25rem) * 14)}:host .content ::ng-deep .single-emoji{font-size:1.875rem}:host .content ::ng-deep .tiptap{padding:calc(var(--spacing, .25rem) * 4);min-height:calc(var(--spacing, .25rem) * 10)}:host .content ::ng-deep .tiptap:focus{outline:none}:host .content ::ng-deep .tiptap div[data-youtube-video]{cursor:move;background:var(--color-neutral-100);padding:calc(var(--spacing, .25rem) * 6);display:flex;align-items:center;justify-content:center}:host .content ::ng-deep .tiptap div[data-youtube-video] iframe{width:100%;aspect-ratio:16/9;border:none;display:block;min-height:200px;min-width:200px;outline:none}:host .content ::ng-deep .tiptap div[data-youtube-video].ProseMirror-selectednode iframe{outline:var(--sys-tertiary) solid 4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host .content ::ng-deep .tiptap img{display:block;height:auto;margin:calc(var(--spacing, .25rem) * 6) 0;max-width:100%}:host .content ::ng-deep .tiptap img.ProseMirror-selectednode{outline:var(--sys-tertiary) solid 4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host .content ::ng-deep .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--color-neutral-500);float:left;height:0;pointer-events:none;font-size:14px}:host .content ::ng-deep .tiptap.ProseMirror-focused p.is-editor-empty:first-child:before{content:none}:host .content ::ng-deep .tiptap p.is-empty:before{content:attr(data-placeholder);color:var(--color-neutral-500);float:left;height:0;pointer-events:none;font-size:14px}:host .content ::ng-deep p:first-child,:host .content ::ng-deep pre:first-child{margin-top:0}:host .content ::ng-deep p:last-child,:host .content ::ng-deep pre:last-child{margin-bottom:0}:host .editor-content{padding:0 calc(var(--spacing, .25rem) * 4)}:host .editor-content:empty{display:none}:host.full-view .content{position:static;height:auto;min-height:calc(var(--spacing, .25rem) * 12);max-height:var(--ngs-comment-editor-content-max-height);overflow-y:auto}:host .footer{height:calc(var(--spacing, .25rem) * 14);padding:0 calc(var(--spacing, .25rem) * 2.5);display:flex;align-items:center;justify-content:space-between}:host .toolbar{border-bottom:1px solid var(--color-border);height:calc(var(--spacing, .25rem) * 14);padding:0 calc(var(--spacing, .25rem) * 3);display:flex;align-items:center;justify-content:space-between}:host .button.active,:host ::ng-deep .button.active{background:var(--color-neutral-200)}:host-context(html.dark) .button.active,:host-context(html.dark) ::ng-deep .button.active{background:var(--color-neutral-650);color:var(--color-neutral-200)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: Button, selector: " button[ngsButton], button[ngsIconButton], a[ngsButton], a[ngsIconButton] ", inputs: ["ngsButton", "ngsIconButton", "loading", "disabled", "disabledInteractive", "disableRipple", "reverse", "fullWidth", "hideTextOnMobile"], exportAs: ["ngsButton"] }] });
|
|
561
|
+
], viewQueries: [{ propertyName: "_content", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "_bubbleMenu", first: true, predicate: ["bubbleMenu"], descendants: true, isSignal: true }, { propertyName: "_imageBubbleMenu", first: true, predicate: ["imageBubbleMenu"], descendants: true, isSignal: true }], exportAs: ["ngsCommentEditor"], ngImport: i0, template: "@if ((showToolbar || toolbarAlwaysVisible()) && (fullView || fullViewMode())) {\n <div class=\"toolbar\">\n <ng-content select=\"ngs-comment-editor-toolbar\"/>\n </div>\n}\n<div #content class=\"content prose dark:prose-invert max-w-full\"></div>\n<div class=\"editor-content\">\n <ng-content/>\n</div>\n<div class=\"footer\">\n <div class=\"flex items-center gap-0.5 grow pe-3\">\n <ng-content select=\"ngs-comment-editor-footer-bar\"/>\n </div>\n <div class=\"flex items-center gap-2\">\n @if ((fullView && !fullViewMode()) || cancelButtonAlwaysVisible()) {\n <button ngsButton (click)=\"cancel($event)\">{{ buttonCancelLabel() }}</button>\n }\n <button ngsButton=\"filled\"\n [disabled]=\"(!allowEmptyContent() && !_value) || null\"\n [loading]=\"loading()\"\n (click)=\"send($event)\">{{ buttonSendLabel() }}\n </button>\n </div>\n</div>\n<div #imageBubbleMenu class=\"ngs-comment-editor-bubble-menu\">\n</div>\n<div #bubbleMenu>\n <ng-content select=\"ngs-comment-editor-bubble-menu\"/>\n</div>\n<!--<div #floatingMenu class=\"floating-menu\">-->\n<!-- @if (editor) {-->\n<!-- <div class=\"flex items-center gap-1.5\">-->\n<!-- <button class=\"button\"-->\n<!-- [disabled]=\"isCommandDisabled('toggleCodeBlock')\"-->\n<!-- [class.active]=\"editor && editor.isActive('codeBlock')\"-->\n<!-- (click)=\"onButtonClick('toggleCodeBlock')\">-->\n<!-- <ngs-icon name=\"fluent:code-24-regular\"/>-->\n<!-- </button>-->\n<!-- <button class=\"button\">-->\n<!-- <ngs-icon name=\"fluent:image-24-regular\"/>-->\n<!-- </button>-->\n<!-- </div>-->\n<!-- }-->\n<!--</div>-->\n", styles: [":host{--ngs-comment-editor-bg: transparent;--ngs-comment-editor-content-max-height: 9999px;display:block;position:relative;overflow:hidden;background:var(--ngs-comment-editor-bg)}:host .floating-menu{box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;background:var(--dropdown-bg);padding-top:calc(var(--spacing, .25rem) * 1.5);padding-bottom:calc(var(--spacing, .25rem) * 1.5);padding-inline-start:calc(var(--spacing, .25rem) * 2);padding-inline-end:calc(var(--spacing, .25rem) * 2);border:1px solid var(--color-border);border-radius:calc(infinity * 1px)}:host .floating-menu .button:hover{color:var(--color-primary);border-radius:calc(infinity * 1px)}:host .floating-menu .button ngs-icon{width:calc(var(--spacing, .25rem) * 6);height:calc(var(--spacing, .25rem) * 6);font-size:1.25rem;line-height:1.25}:host .floating-menu .button:disabled{pointer-events:none;opacity:70%}:host .content{position:absolute;inset:0;height:calc(var(--spacing, .25rem) * 14)}:host .content ::ng-deep .single-emoji{font-size:1.875rem}:host .content ::ng-deep .tiptap{padding:calc(var(--spacing, .25rem) * 4);min-height:calc(var(--spacing, .25rem) * 10)}:host .content ::ng-deep .tiptap:focus{outline:none}:host .content ::ng-deep .tiptap div[data-youtube-video]{cursor:move;background:var(--color-neutral-100);padding:calc(var(--spacing, .25rem) * 6);display:flex;align-items:center;justify-content:center}:host .content ::ng-deep .tiptap div[data-youtube-video] iframe{width:100%;aspect-ratio:16/9;border:none;display:block;min-height:200px;min-width:200px;outline:none}:host .content ::ng-deep .tiptap div[data-youtube-video].ProseMirror-selectednode iframe{outline:var(--sys-tertiary) solid 4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host .content ::ng-deep .tiptap img{display:block;height:auto;margin:calc(var(--spacing, .25rem) * 6) 0;max-width:100%}:host .content ::ng-deep .tiptap img.ProseMirror-selectednode{outline:var(--sys-tertiary) solid 4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host .content ::ng-deep .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--color-neutral-500);float:left;height:0;pointer-events:none;font-size:14px}:host .content ::ng-deep .tiptap.ProseMirror-focused p.is-editor-empty:first-child:before{content:none}:host .content ::ng-deep .tiptap p.is-empty:before{content:attr(data-placeholder);color:var(--color-neutral-500);float:left;height:0;pointer-events:none;font-size:14px}:host .content ::ng-deep p:first-child,:host .content ::ng-deep pre:first-child{margin-top:0}:host .content ::ng-deep p:last-child,:host .content ::ng-deep pre:last-child{margin-bottom:0}:host .editor-content{padding:0 calc(var(--spacing, .25rem) * 4)}:host .editor-content:empty{display:none}:host.full-view .content{position:static;height:auto;min-height:calc(var(--spacing, .25rem) * 12);max-height:var(--ngs-comment-editor-content-max-height);overflow-y:auto}:host .footer{height:calc(var(--spacing, .25rem) * 14);padding:0 calc(var(--spacing, .25rem) * 2.5);display:flex;align-items:center;justify-content:space-between}:host .toolbar{border-bottom:1px solid var(--color-border);height:calc(var(--spacing, .25rem) * 14);padding:0 calc(var(--spacing, .25rem) * 3);display:flex;align-items:center;justify-content:space-between}:host .button.active,:host ::ng-deep .button.active{background:var(--color-neutral-200)}:host-context(html.dark) .button.active,:host-context(html.dark) ::ng-deep .button.active{background:var(--color-neutral-650);color:var(--color-neutral-200)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: Button, selector: " button[ngsButton], button[ngsIconButton], a[ngsButton], a[ngsIconButton] ", inputs: ["ngsButton", "ngsIconButton", "loading", "disabled", "disabledInteractive", "disableRipple", "reverse", "fullWidth", "hideTextOnMobile"], exportAs: ["ngsButton"] }] });
|
|
548
562
|
}
|
|
549
563
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CommentEditor, decorators: [{
|
|
550
564
|
type: Component,
|
|
@@ -558,9 +572,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
558
572
|
], host: {
|
|
559
573
|
'class': 'ngs-comment-editor',
|
|
560
574
|
'[class.full-view]': 'fullView || fullViewMode()',
|
|
561
|
-
'(click)': 'activateFullView()'
|
|
562
|
-
}, template: "@if ((showToolbar || toolbarAlwaysVisible()) && (fullView || fullViewMode())) {\n <div class=\"toolbar\">\n <ng-content select=\"ngs-comment-editor-toolbar\"/>\n </div>\n}\n<div #content class=\"content prose dark:prose-invert max-w-full\"></div>\n<div class=\"editor-content\">\n <ng-content/>\n</div>\n<div class=\"footer\">\n <div class=\"flex items-center gap-0.5 grow pe-3\">\n <ng-content select=\"ngs-comment-editor-footer-bar\"/>\n </div>\n <div class=\"flex items-center gap-2\">\n @if ((fullView && !fullViewMode()) || cancelButtonAlwaysVisible()) {\n <button ngsButton (click)=\"cancel($event)\">{{ buttonCancelLabel() }}</button>\n }\n <button ngsButton=\"filled\"\n [disabled]=\"(!allowEmptyContent() && !_value) || null\"\n (click)=\"send($event)\">{{ buttonSendLabel() }}\n </button>\n </div>\n</div>\n<div #imageBubbleMenu class=\"ngs-comment-editor-bubble-menu\">\n</div>\n<div #bubbleMenu>\n <ng-content select=\"ngs-comment-editor-bubble-menu\"/>\n</div>\n<!--<div #floatingMenu class=\"floating-menu\">-->\n<!-- @if (editor) {-->\n<!-- <div class=\"flex items-center gap-1.5\">-->\n<!-- <button class=\"button\"-->\n<!-- [disabled]=\"isCommandDisabled('toggleCodeBlock')\"-->\n<!-- [class.active]=\"editor && editor.isActive('codeBlock')\"-->\n<!-- (click)=\"onButtonClick('toggleCodeBlock')\">-->\n<!-- <ngs-icon name=\"fluent:code-24-regular\"/>-->\n<!-- </button>-->\n<!-- <button class=\"button\">-->\n<!-- <ngs-icon name=\"fluent:image-24-regular\"/>-->\n<!-- </button>-->\n<!-- </div>-->\n<!-- }-->\n<!--</div>-->\n", styles: [":host{--ngs-comment-editor-bg: transparent;--ngs-comment-editor-content-max-height: 9999px;display:block;position:relative;overflow:hidden;background:var(--ngs-comment-editor-bg)}:host .floating-menu{box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;background:var(--dropdown-bg);padding-top:calc(var(--spacing, .25rem) * 1.5);padding-bottom:calc(var(--spacing, .25rem) * 1.5);padding-inline-start:calc(var(--spacing, .25rem) * 2);padding-inline-end:calc(var(--spacing, .25rem) * 2);border:1px solid var(--color-border);border-radius:calc(infinity * 1px)}:host .floating-menu .button:hover{color:var(--color-primary);border-radius:calc(infinity * 1px)}:host .floating-menu .button ngs-icon{width:calc(var(--spacing, .25rem) * 6);height:calc(var(--spacing, .25rem) * 6);font-size:1.25rem;line-height:1.25}:host .floating-menu .button:disabled{pointer-events:none;opacity:70%}:host .content{position:absolute;inset:0;height:calc(var(--spacing, .25rem) * 14)}:host .content ::ng-deep .single-emoji{font-size:1.875rem}:host .content ::ng-deep .tiptap{padding:calc(var(--spacing, .25rem) * 4);min-height:calc(var(--spacing, .25rem) * 10)}:host .content ::ng-deep .tiptap:focus{outline:none}:host .content ::ng-deep .tiptap div[data-youtube-video]{cursor:move;background:var(--color-neutral-100);padding:calc(var(--spacing, .25rem) * 6);display:flex;align-items:center;justify-content:center}:host .content ::ng-deep .tiptap div[data-youtube-video] iframe{width:100%;aspect-ratio:16/9;border:none;display:block;min-height:200px;min-width:200px;outline:none}:host .content ::ng-deep .tiptap div[data-youtube-video].ProseMirror-selectednode iframe{outline:var(--sys-tertiary) solid 4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host .content ::ng-deep .tiptap img{display:block;height:auto;margin:calc(var(--spacing, .25rem) * 6) 0;max-width:100%}:host .content ::ng-deep .tiptap img.ProseMirror-selectednode{outline:var(--sys-tertiary) solid 4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host .content ::ng-deep .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--color-neutral-500);float:left;height:0;pointer-events:none;font-size:14px}:host .content ::ng-deep .tiptap.ProseMirror-focused p.is-editor-empty:first-child:before{content:none}:host .content ::ng-deep .tiptap p.is-empty:before{content:attr(data-placeholder);color:var(--color-neutral-500);float:left;height:0;pointer-events:none;font-size:14px}:host .content ::ng-deep p:first-child,:host .content ::ng-deep pre:first-child{margin-top:0}:host .content ::ng-deep p:last-child,:host .content ::ng-deep pre:last-child{margin-bottom:0}:host .editor-content{padding:0 calc(var(--spacing, .25rem) * 4)}:host .editor-content:empty{display:none}:host.full-view .content{position:static;height:auto;min-height:calc(var(--spacing, .25rem) * 12);max-height:var(--ngs-comment-editor-content-max-height);overflow-y:auto}:host .footer{height:calc(var(--spacing, .25rem) * 14);padding:0 calc(var(--spacing, .25rem) * 2.5);display:flex;align-items:center;justify-content:space-between}:host .toolbar{border-bottom:1px solid var(--color-border);height:calc(var(--spacing, .25rem) * 14);padding:0 calc(var(--spacing, .25rem) * 3);display:flex;align-items:center;justify-content:space-between}:host .button.active,:host ::ng-deep .button.active{background:var(--color-neutral-200)}:host-context(html.dark) .button.active,:host-context(html.dark) ::ng-deep .button.active{background:var(--color-neutral-650);color:var(--color-neutral-200)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
|
|
563
|
-
}], propDecorators: { _content: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], _bubbleMenu: [{ type: i0.ViewChild, args: ['bubbleMenu', { isSignal: true }] }], _imageBubbleMenu: [{ type: i0.ViewChild, args: ['imageBubbleMenu', { isSignal: true }] }], contentMaxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentMaxHeight", required: false }] }], buttonCancelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonCancelLabel", required: false }] }], buttonSendLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonSendLabel", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], toolbarAlwaysVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbarAlwaysVisible", required: false }] }], fullViewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullViewMode", required: false }] }], cancelButtonAlwaysVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelButtonAlwaysVisible", required: false }] }], allowEmptyContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowEmptyContent", required: false }] }], imageUploadFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageUploadFn", required: false }] }], sent: [{ type: i0.Output, args: ["sent"] }], canceled: [{ type: i0.Output, args: ["canceled"] }] } });
|
|
575
|
+
'(click)': 'activateFullView($event)'
|
|
576
|
+
}, template: "@if ((showToolbar || toolbarAlwaysVisible()) && (fullView || fullViewMode())) {\n <div class=\"toolbar\">\n <ng-content select=\"ngs-comment-editor-toolbar\"/>\n </div>\n}\n<div #content class=\"content prose dark:prose-invert max-w-full\"></div>\n<div class=\"editor-content\">\n <ng-content/>\n</div>\n<div class=\"footer\">\n <div class=\"flex items-center gap-0.5 grow pe-3\">\n <ng-content select=\"ngs-comment-editor-footer-bar\"/>\n </div>\n <div class=\"flex items-center gap-2\">\n @if ((fullView && !fullViewMode()) || cancelButtonAlwaysVisible()) {\n <button ngsButton (click)=\"cancel($event)\">{{ buttonCancelLabel() }}</button>\n }\n <button ngsButton=\"filled\"\n [disabled]=\"(!allowEmptyContent() && !_value) || null\"\n [loading]=\"loading()\"\n (click)=\"send($event)\">{{ buttonSendLabel() }}\n </button>\n </div>\n</div>\n<div #imageBubbleMenu class=\"ngs-comment-editor-bubble-menu\">\n</div>\n<div #bubbleMenu>\n <ng-content select=\"ngs-comment-editor-bubble-menu\"/>\n</div>\n<!--<div #floatingMenu class=\"floating-menu\">-->\n<!-- @if (editor) {-->\n<!-- <div class=\"flex items-center gap-1.5\">-->\n<!-- <button class=\"button\"-->\n<!-- [disabled]=\"isCommandDisabled('toggleCodeBlock')\"-->\n<!-- [class.active]=\"editor && editor.isActive('codeBlock')\"-->\n<!-- (click)=\"onButtonClick('toggleCodeBlock')\">-->\n<!-- <ngs-icon name=\"fluent:code-24-regular\"/>-->\n<!-- </button>-->\n<!-- <button class=\"button\">-->\n<!-- <ngs-icon name=\"fluent:image-24-regular\"/>-->\n<!-- </button>-->\n<!-- </div>-->\n<!-- }-->\n<!--</div>-->\n", styles: [":host{--ngs-comment-editor-bg: transparent;--ngs-comment-editor-content-max-height: 9999px;display:block;position:relative;overflow:hidden;background:var(--ngs-comment-editor-bg)}:host .floating-menu{box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a;background:var(--dropdown-bg);padding-top:calc(var(--spacing, .25rem) * 1.5);padding-bottom:calc(var(--spacing, .25rem) * 1.5);padding-inline-start:calc(var(--spacing, .25rem) * 2);padding-inline-end:calc(var(--spacing, .25rem) * 2);border:1px solid var(--color-border);border-radius:calc(infinity * 1px)}:host .floating-menu .button:hover{color:var(--color-primary);border-radius:calc(infinity * 1px)}:host .floating-menu .button ngs-icon{width:calc(var(--spacing, .25rem) * 6);height:calc(var(--spacing, .25rem) * 6);font-size:1.25rem;line-height:1.25}:host .floating-menu .button:disabled{pointer-events:none;opacity:70%}:host .content{position:absolute;inset:0;height:calc(var(--spacing, .25rem) * 14)}:host .content ::ng-deep .single-emoji{font-size:1.875rem}:host .content ::ng-deep .tiptap{padding:calc(var(--spacing, .25rem) * 4);min-height:calc(var(--spacing, .25rem) * 10)}:host .content ::ng-deep .tiptap:focus{outline:none}:host .content ::ng-deep .tiptap div[data-youtube-video]{cursor:move;background:var(--color-neutral-100);padding:calc(var(--spacing, .25rem) * 6);display:flex;align-items:center;justify-content:center}:host .content ::ng-deep .tiptap div[data-youtube-video] iframe{width:100%;aspect-ratio:16/9;border:none;display:block;min-height:200px;min-width:200px;outline:none}:host .content ::ng-deep .tiptap div[data-youtube-video].ProseMirror-selectednode iframe{outline:var(--sys-tertiary) solid 4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host .content ::ng-deep .tiptap img{display:block;height:auto;margin:calc(var(--spacing, .25rem) * 6) 0;max-width:100%}:host .content ::ng-deep .tiptap img.ProseMirror-selectednode{outline:var(--sys-tertiary) solid 4px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host .content ::ng-deep .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--color-neutral-500);float:left;height:0;pointer-events:none;font-size:14px}:host .content ::ng-deep .tiptap.ProseMirror-focused p.is-editor-empty:first-child:before{content:none}:host .content ::ng-deep .tiptap p.is-empty:before{content:attr(data-placeholder);color:var(--color-neutral-500);float:left;height:0;pointer-events:none;font-size:14px}:host .content ::ng-deep p:first-child,:host .content ::ng-deep pre:first-child{margin-top:0}:host .content ::ng-deep p:last-child,:host .content ::ng-deep pre:last-child{margin-bottom:0}:host .editor-content{padding:0 calc(var(--spacing, .25rem) * 4)}:host .editor-content:empty{display:none}:host.full-view .content{position:static;height:auto;min-height:calc(var(--spacing, .25rem) * 12);max-height:var(--ngs-comment-editor-content-max-height);overflow-y:auto}:host .footer{height:calc(var(--spacing, .25rem) * 14);padding:0 calc(var(--spacing, .25rem) * 2.5);display:flex;align-items:center;justify-content:space-between}:host .toolbar{border-bottom:1px solid var(--color-border);height:calc(var(--spacing, .25rem) * 14);padding:0 calc(var(--spacing, .25rem) * 3);display:flex;align-items:center;justify-content:space-between}:host .button.active,:host ::ng-deep .button.active{background:var(--color-neutral-200)}:host-context(html.dark) .button.active,:host-context(html.dark) ::ng-deep .button.active{background:var(--color-neutral-650);color:var(--color-neutral-200)}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
|
|
577
|
+
}], propDecorators: { _content: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], _bubbleMenu: [{ type: i0.ViewChild, args: ['bubbleMenu', { isSignal: true }] }], _imageBubbleMenu: [{ type: i0.ViewChild, args: ['imageBubbleMenu', { isSignal: true }] }], contentMaxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentMaxHeight", required: false }] }], buttonCancelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonCancelLabel", required: false }] }], buttonSendLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonSendLabel", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], toolbarAlwaysVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbarAlwaysVisible", required: false }] }], fullViewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullViewMode", required: false }] }], cancelButtonAlwaysVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelButtonAlwaysVisible", required: false }] }], allowEmptyContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowEmptyContent", required: false }] }], autoClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoClear", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], imageUploadFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageUploadFn", required: false }] }], sent: [{ type: i0.Output, args: ["sent"] }], canceled: [{ type: i0.Output, args: ["canceled"] }] } });
|
|
564
578
|
|
|
565
579
|
class CommentEditorDivider {
|
|
566
580
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CommentEditorDivider, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngstarter-ui-components-comment-editor.mjs","sources":["../../../projects/components/comment-editor/src/types.ts","../../../projects/components/comment-editor/src/extensions/angular-renderer.ts","../../../projects/components/comment-editor/src/extensions/angular-node-view-renderer.ts","../../../projects/components/comment-editor/src/extensions/angular-node-view.ts","../../../projects/components/comment-editor/src/extensions/image-uploading-placeholder/image-uploading-placeholder.ts","../../../projects/components/comment-editor/src/extensions/image-uploading-placeholder/image-uploading-placeholder.html","../../../projects/components/comment-editor/src/extensions/image-uploading-placeholder.ts","../../../projects/components/comment-editor/src/extensions/single-emoji.ts","../../../projects/components/comment-editor/src/comment-editor/comment-editor.ts","../../../projects/components/comment-editor/src/comment-editor/comment-editor.html","../../../projects/components/comment-editor/src/comment-editor-divider/comment-editor-divider.ts","../../../projects/components/comment-editor/src/comment-editor-divider/comment-editor-divider.html","../../../projects/components/comment-editor/src/comment-editor-toolbar/comment-editor-toolbar.ts","../../../projects/components/comment-editor/src/comment-editor-toolbar/comment-editor-toolbar.html","../../../projects/components/comment-editor/src/comment-editor-bubble-menu/comment-editor-bubble-menu.ts","../../../projects/components/comment-editor/src/comment-editor-bubble-menu/comment-editor-bubble-menu.html","../../../projects/components/comment-editor/src/comment-editor-footer-bar/comment-editor-footer-bar.ts","../../../projects/components/comment-editor/src/comment-editor-footer-bar/comment-editor-footer-bar.html","../../../projects/components/comment-editor/src/_commands/comment-editor-command.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-bold.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-italic.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-strike.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-bullet-list.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-ordered-list.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-blockquote.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-code-block.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-image.directive.ts","../../../projects/components/comment-editor/src/youtube/youtube.dialog.ts","../../../projects/components/comment-editor/src/youtube/youtube.dialog.html","../../../projects/components/comment-editor/src/_commands/comment-editor-command-youtube.directive.ts","../../../projects/components/comment-editor/src/link/link.dialog.ts","../../../projects/components/comment-editor/src/link/link.dialog.html","../../../projects/components/comment-editor/src/_commands/comment-editor-command-link.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-code.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-edit-link.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-unset-link.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-toggle-toolbar.directive.ts","../../../projects/components/comment-editor/ngstarter-ui-components-comment-editor.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Editor } from '@tiptap/core';\n\nexport interface CommentEditorInterface {\n api: CommentEditorAPI;\n}\n\nexport interface CommentEditorAPI {\n isCommandDisabled: (command: string) => boolean | null;\n isActive: (command: string) => boolean | null;\n runCommand: (command: string) => void;\n editor: () => Editor;\n isToolbarActive: () => boolean;\n toggleToolbar: () => void;\n isEditorActivated: () => boolean;\n insertText: (text: string) => void;\n}\n\nexport const COMMENT_EDITOR = new InjectionToken('COMMENT_EDITOR');\nexport const COMMENT_EDITOR_BUBBLE_MENU = new InjectionToken('COMMENT_EDITOR_BUBBLE_MENU');\n","import {\n ApplicationRef, ComponentRef, ElementRef,\n Injector, Type, createComponent,\n} from '@angular/core';\n\nexport class AngularRenderer<C, P> {\n private applicationRef: ApplicationRef;\n private componentRef: ComponentRef<C>;\n\n constructor(ViewComponent: Type<C>, injector: Injector, props: Partial<P>) {\n this.applicationRef = injector.get(ApplicationRef);\n this.componentRef = createComponent(ViewComponent, {\n environmentInjector: this.applicationRef.injector,\n elementInjector: injector,\n });\n\n // set input props to the component\n this.updateProps(props);\n this.applicationRef.attachView(this.componentRef.hostView);\n }\n\n get instance(): C {\n return this.componentRef.instance;\n }\n\n get elementRef(): ElementRef {\n return this.componentRef.injector.get(ElementRef);\n }\n\n get dom(): HTMLElement {\n return this.elementRef.nativeElement;\n }\n\n updateProps<T extends P>(props: Partial<T>): void {\n Object.entries(props).forEach(([key, value]) => {\n this.componentRef.setInput(key, value);\n });\n }\n\n detectChanges(): void {\n this.componentRef.changeDetectorRef.detectChanges();\n }\n\n destroy(): void {\n this.componentRef.destroy();\n this.applicationRef.detachView(this.componentRef.hostView);\n }\n}\n","import { Injector, Type } from '@angular/core';\nimport {\n Editor, NodeView, NodeViewProps,\n NodeViewRenderer, NodeViewRendererProps, NodeViewRendererOptions, DecorationWithType,\n} from '@tiptap/core';\nimport type { Decoration } from '@tiptap/pm/view';\nimport type { Node as ProseMirrorNode } from '@tiptap/pm/model';\nimport { AngularRenderer } from './angular-renderer';\n\ninterface RendererUpdateProps {\n oldNode: ProseMirrorNode;\n oldDecorations: Decoration[];\n newNode: ProseMirrorNode;\n newDecorations: Decoration[];\n updateProps: () => void;\n}\n\ninterface AngularNodeViewRendererOptions extends NodeViewRendererOptions {\n update?: ((props: RendererUpdateProps) => boolean) | null;\n injector: Injector;\n}\n\nclass AngularNodeViewContainer extends NodeView<Type<any>, Editor, AngularNodeViewRendererOptions> {\n renderer!: AngularRenderer<any, NodeViewProps>;\n contentDOMElement!: HTMLElement | null;\n\n override mount() {\n const injector = this.options.injector as Injector;\n const props: NodeViewProps = {\n editor: this.editor,\n node: this.node,\n // @ts-ignore\n decorations: this.decorations,\n selected: false,\n extension: this.extension,\n getPos: () => this.getPos(),\n updateAttributes: (attributes = {}) => this.updateAttributes(attributes),\n deleteNode: () => this.deleteNode(),\n };\n\n this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this);\n this.editor.on('selectionUpdate', this.handleSelectionUpdate);\n\n // create renderer\n this.renderer = new AngularRenderer(this.component, injector, props);\n\n // Register drag handler\n if (this.extension.config.draggable) {\n this.renderer.elementRef.nativeElement.ondragstart = (e: DragEvent) => {\n this.onDragStart(e);\n };\n }\n\n this.contentDOMElement = this.node.isLeaf ? null : document.createElement(this.node.isInline ? 'span' : 'div');\n\n if (this.contentDOMElement) {\n // For some reason the whiteSpace prop is not inherited properly in Chrome and Safari\n // With this fix it seems to work fine\n // See: https://github.com/ueberdosis/tiptap/issues/1197\n this.contentDOMElement.style.whiteSpace = 'inherit';\n\n // Required for editable node views\n // The content won't be rendered if `editable` is set to `false`\n this.renderer.detectChanges();\n }\n\n this.appendContendDom();\n }\n\n override get dom() {\n return this.renderer.dom;\n }\n\n override get contentDOM() {\n if (this.node.isLeaf) {\n return null;\n }\n\n return this.contentDOMElement;\n }\n\n private appendContendDom() {\n const contentElement = this.dom.querySelector('[data-node-view-content]');\n\n if (\n this.contentDOMElement\n && contentElement\n && !contentElement.contains(this.contentDOMElement)\n ) {\n contentElement.appendChild(this.contentDOMElement);\n }\n }\n\n handleSelectionUpdate() {\n const { from, to } = this.editor.state.selection;\n\n if (from <= this.getPos() && to >= this.getPos() + this.node.nodeSize) {\n this.selectNode();\n } else {\n this.deselectNode();\n }\n }\n\n update(node: ProseMirrorNode, decorations: DecorationWithType[]): boolean {\n const updateProps = () => {\n this.renderer.updateProps({ node, decorations });\n };\n\n if (this.options.update) {\n const oldNode = this.node;\n const oldDecorations = this.decorations;\n this.node = node;\n this.decorations = decorations;\n return this.options.update({\n oldNode,\n // @ts-ignore\n oldDecorations,\n newNode: node,\n newDecorations: decorations,\n updateProps: () => updateProps(),\n });\n }\n\n if (node.type !== this.node.type) {\n return false;\n }\n\n if (node === this.node && this.decorations === decorations) {\n return true;\n }\n\n this.node = node;\n this.decorations = decorations;\n updateProps();\n\n return true;\n }\n\n selectNode() {\n this.renderer.updateProps({ selected: true });\n }\n\n deselectNode() {\n this.renderer.updateProps({ selected: false });\n }\n\n destroy() {\n this.renderer.destroy();\n this.editor.off('selectionUpdate', this.handleSelectionUpdate);\n this.contentDOMElement = null;\n }\n}\n\nexport const AngularNodeViewRenderer = (\n ViewComponent: Type<any>,\n options: Partial<AngularNodeViewRendererOptions>,\n): NodeViewRenderer => {\n // @ts-ignore\n return (props: NodeViewRendererProps) => {\n return new AngularNodeViewContainer(ViewComponent, props, options);\n };\n};\n","import { Component, input } from '@angular/core';\nimport type { NodeViewProps } from '@tiptap/core';\n\n@Component({standalone: true, template: ''})\nexport class AngularNodeView {\n editor = input.required<NodeViewProps['editor']>();\n node = input.required<NodeViewProps['node']>();\n decorations = input.required<NodeViewProps['decorations']>();\n selected = input.required<NodeViewProps['selected']>();\n extension = input.required<NodeViewProps['extension']>();\n getPos = input.required<NodeViewProps['getPos']>();\n updateAttributes = input.required<NodeViewProps['updateAttributes']>();\n deleteNode = input.required<NodeViewProps['deleteNode']>();\n HTMLAttributes = input<Record<string, any>>({});\n innerDecorations = input<any>(undefined);\n view = input<any>(undefined);\n}\n","import { Component, OnDestroy, OnInit } from '@angular/core';\nimport { AngularNodeView } from '../angular-node-view';\nimport { ProgressSpinner } from '@ngstarter-ui/components/spinner';\n\n@Component({\n selector: 'ngs-image-uploading-placeholder',\n imports: [\n ProgressSpinner\n ],\n templateUrl: './image-uploading-placeholder.html',\n styleUrl: './image-uploading-placeholder.scss',\n host: {\n 'class': 'ngs-image-uploading-placeholder',\n '[class.selected]': 'selected()'\n }\n})\nexport class ImageUploadingPlaceholder extends AngularNodeView implements OnInit, OnDestroy {\n protected src: string;\n protected error: string;\n private _canceled = false;\n\n ngOnInit() {\n const uploadFn = this.extension().options['uploadFn'];\n this.src = this.node().attrs['src'];\n const blob = this._dataURItoBlob(this.src);\n uploadFn(blob).then((src: string) => {\n if (this._canceled) {\n return;\n }\n\n const image = new Image();\n image.src = src;\n image.onload = () => {\n this.editor().chain().focus().setImage({ src }).run();\n };\n }, (error: string) => {\n this.error = error;\n });\n }\n\n ngOnDestroy() {\n this._canceled = true;\n }\n\n private _dataURItoBlob(dataURI: string): Blob {\n // convert base64 to raw binary data held in a string\n // doesn't handle URLEncoded DataURIs - see SO answer #6850276 for code that does this\n const byteString = atob(dataURI.split(',')[1]);\n\n // separate out the mime component\n const mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];\n\n // write the bytes of the string to an ArrayBuffer\n const ab = new ArrayBuffer(byteString.length);\n const ia = new Uint8Array(ab);\n\n for (var i = 0; i < byteString.length; i++) {\n ia[i] = byteString.charCodeAt(i);\n }\n\n return new Blob([ab], { type: mimeString });\n }\n}\n","@if (src) {\n <div class=\"flex items-center justify-center relative\">\n @if (error) {\n <div class=\"absolute top-0 start-0 right-0 min-h-8 bg-error z-[2]\n text-on-error text-tiny flex items-center px-3\">{{ error }}</div>\n }\n <div class=\"w-max absolute start-1/2 top-1/2 z-[1] -translate-y-1/2 -translate-x-1/2\">\n @if (!error) {\n <ngs-progress-spinner />\n }\n </div>\n <img [src]=\"src\" alt=\"\" class=\"max-w-full opacity-70\">\n </div>\n}\n","import { mergeAttributes, Node } from '@tiptap/core'\nimport { Injector } from '@angular/core';\nimport { AngularNodeViewRenderer } from './angular-node-view-renderer';\nimport {\n ImageUploadingPlaceholder\n} from './image-uploading-placeholder/image-uploading-placeholder';\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n imageUploadingPlaceholder: {\n /** Add an image */\n addImageUploadingPlaceholder: (options: { src: string, file: File }) => ReturnType\n }\n }\n}\n\ninterface ImageUploadingPlaceholderOptions {\n uploadFn: ((file: Blob) => Promise<string>) | undefined;\n}\n\nconst ImageUploadingPlaceholderExtension = (injector: Injector, options: ImageUploadingPlaceholderOptions): Node => {\n return Node.create({\n name: 'imageUploadingPlaceholder',\n draggable: false,\n group: 'block',\n addOptions() {\n return {\n uploadFn: options.uploadFn\n }\n },\n addAttributes() {\n return {\n uploadId: {\n default: ''\n },\n src: {\n default: null\n }\n };\n },\n addCommands() {\n return {\n addImageUploadingPlaceholder: options => ({ commands }) => {\n return commands.insertContent({\n type: this.name,\n attrs: {\n src: options.src\n }\n });\n },\n }\n },\n addNodeView() {\n return AngularNodeViewRenderer(ImageUploadingPlaceholder, { injector });\n },\n parseHTML() {\n return [\n {\n tag: 'image-uploading-placeholder',\n }\n ]\n },\n renderHTML({ HTMLAttributes }) {\n return [\n 'image-uploading-placeholder', mergeAttributes(HTMLAttributes),\n ];\n }\n })\n};\n\nexport default ImageUploadingPlaceholderExtension;\n","import { Mark, mergeAttributes } from '@tiptap/core';\n\nexport const SingleEmoji = Mark.create({\n name: 'singleEmoji',\n\n inclusive: false,\n\n addOptions() {\n return {\n HTMLAttributes: {\n class: 'single-emoji',\n },\n };\n },\n\n parseHTML() {\n return [\n {\n tag: 'span.single-emoji',\n },\n ];\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['span', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];\n },\n});\n","import {\n booleanAttribute, ChangeDetectorRef,\n Component,\n ElementRef, forwardRef,\n inject, Injector,\n input,\n OnDestroy, OnInit,\n output, PLATFORM_ID,\n viewChild,\n DOCUMENT\n} from '@angular/core';\nimport { Editor } from '@tiptap/core';\nimport Document from '@tiptap/extension-document';\nimport Paragraph from '@tiptap/extension-paragraph';\nimport Text from '@tiptap/extension-text';\nimport Bold from '@tiptap/extension-bold';\nimport Italic from '@tiptap/extension-italic';\nimport Strike from '@tiptap/extension-strike';\nimport CodeBlock from '@tiptap/extension-code-block';\nimport { Blockquote } from '@tiptap/extension-blockquote';\nimport BulletList from '@tiptap/extension-bullet-list';\nimport OrderedList from '@tiptap/extension-ordered-list';\nimport ListItem from '@tiptap/extension-list-item';\nimport Link from '@tiptap/extension-link';\nimport Placeholder from '@tiptap/extension-placeholder';\nimport Youtube from '@tiptap/extension-youtube';\nimport BubbleMenu from '@tiptap/extension-bubble-menu';\nimport Code from '@tiptap/extension-code';\nimport History from '@tiptap/extension-history';\nimport Dropcursor from '@tiptap/extension-dropcursor';\nimport Image from '@tiptap/extension-image';\nimport { isPlatformServer } from '@angular/common';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { COMMENT_EDITOR, CommentEditorAPI } from '../types';\nimport ImageUploadingPlaceholderExtension from '../extensions/image-uploading-placeholder';\nimport { SingleEmoji } from '../extensions/single-emoji';\n\n@Component({\n selector: 'ngs-comment-editor',\n exportAs: 'ngsCommentEditor',\n imports: [\n Button\n ],\n templateUrl: './comment-editor.html',\n styleUrl: './comment-editor.scss',\n providers: [\n {\n provide: COMMENT_EDITOR,\n useExisting: forwardRef(() => CommentEditor)\n }\n ],\n host: {\n 'class': 'ngs-comment-editor',\n '[class.full-view]': 'fullView || fullViewMode()',\n '(click)': 'activateFullView()'\n }\n})\nexport class CommentEditor implements OnInit, OnDestroy {\n private _platformId = inject(PLATFORM_ID);\n private _document = inject(DOCUMENT);\n private _cdr = inject(ChangeDetectorRef);\n private _injector = inject(Injector);\n private _content = viewChild.required<ElementRef>('content');\n private _bubbleMenu = viewChild.required<ElementRef>('bubbleMenu');\n private _imageBubbleMenu = viewChild.required<ElementRef>('imageBubbleMenu');\n protected _value = '';\n protected editor: Editor;\n protected showToolbar = false;\n protected fullView = false;\n\n contentMaxHeight = input<number>();\n buttonCancelLabel = input<string>('Cancel');\n buttonSendLabel = input<string>('Send');\n placeholder = input('Write something …');\n toolbarAlwaysVisible = input(false, {\n transform: booleanAttribute\n });\n fullViewMode = input(false, {\n transform: booleanAttribute\n });\n cancelButtonAlwaysVisible = input(false, {\n transform: booleanAttribute\n });\n allowEmptyContent = input(false, {\n transform: booleanAttribute\n });\n imageUploadFn = input<(file: Blob) => Promise<string>>();\n\n readonly sent = output<string>();\n readonly canceled = output<void>();\n\n ngOnInit() {\n this._init();\n }\n\n get api(): CommentEditorAPI {\n return {\n isCommandDisabled: (command: string) => this.isCommandDisabled(command),\n isActive: (command: string) => this.editor?.isActive(command),\n runCommand: (command: string) => this._runCommand(command),\n editor: () => this.editor,\n isToolbarActive: () => this.showToolbar,\n toggleToolbar: () => this.toggleToolbar(),\n isEditorActivated: () => this.fullView || this.fullViewMode(),\n insertText: (text: string) => this.insertText(text)\n }\n }\n\n insertText(text: string): void {\n if (!this.editor) {\n return;\n }\n\n const isOnlyEmoji = (str: string) => {\n if (!str) {\n return false;\n }\n const emojiRegex = /^(\\u00a9|\\u00ae|[\\u2000-\\u3300]|\\ud83c[\\ud000-\\udfff]|\\ud83d[\\ud000-\\udfff]|\\ud83e[\\ud000-\\udfff])+$/;\n return emojiRegex.test(str.trim());\n };\n\n if (this.editor.isFocused) {\n const { selection } = this.editor.state;\n const isParentEmpty = selection.$from.parent.content.size === 0;\n\n if (isOnlyEmoji(text) && isParentEmpty) {\n this.editor.chain().focus().insertContent({\n type: 'text',\n text,\n marks: [{ type: 'singleEmoji' }]\n }).run();\n } else {\n this.editor.chain().focus().insertContent(text).run();\n }\n } else {\n const content = this.editor.getText();\n let textToInsert: any = text;\n if (content.length > 0) {\n textToInsert = ` ${text} `;\n }\n const lastNode = this.editor.state.doc.lastChild;\n if (lastNode && lastNode.type.name === 'paragraph') {\n const isLastNodeEmpty = lastNode.content.size === 0;\n const pos = this.editor.state.doc.content.size - 1;\n\n if (isOnlyEmoji(text) && isLastNodeEmpty) {\n this.editor.chain().focus().insertContentAt(pos, {\n type: 'text',\n text,\n marks: [{ type: 'singleEmoji' }]\n }).run();\n } else {\n this.editor.chain().focus().insertContentAt(pos, textToInsert).run();\n }\n } else {\n this.editor.chain().focus().insertContentAt(this.editor.state.doc.content.size, textToInsert).run();\n }\n this.activateFullView();\n }\n }\n\n isCommandDisabled(command: string): boolean | null {\n if (!this.editor) {\n return true;\n }\n\n try {\n const canFocus = this.editor.can().chain().focus() as any;\n return !canFocus[command]().run() || null;\n } catch (e) {\n return true;\n }\n }\n\n ngOnDestroy() {\n this.editor?.destroy();\n }\n\n send(event: MouseEvent): void {\n event.stopPropagation();\n event.preventDefault();\n this.sent.emit(this._value);\n this.showToolbar = false;\n this.fullView = false;\n this._value = '';\n this.editor.commands.clearContent(true);\n }\n\n activateFullView(): void {\n if (this.fullView) {\n return;\n }\n\n this.fullView = true;\n }\n\n toggleToolbar(): void {\n this.showToolbar = !this.showToolbar;\n }\n\n cancel(event: MouseEvent): void {\n event.stopPropagation();\n event.preventDefault();\n this.showToolbar = false;\n this.fullView = false;\n this._value = '';\n this.editor.commands.clearContent(true);\n this.canceled.emit();\n }\n\n private _runCommand(command: string): void {\n if (!this.editor) {\n return;\n }\n\n const chainFocus = this.editor.chain().focus() as any;\n chainFocus[command]().run();\n }\n\n private _init(): void {\n if (isPlatformServer(this._platformId)) {\n return;\n }\n\n this.editor = new Editor({\n element: this._content().nativeElement,\n extensions: [\n Document,\n Paragraph,\n Text,\n Bold,\n Italic,\n Strike,\n Blockquote,\n CodeBlock,\n BulletList,\n OrderedList,\n ListItem,\n Code,\n History,\n Dropcursor,\n Youtube.configure({\n controls: false,\n nocookie: true,\n }),\n ImageUploadingPlaceholderExtension(this._injector, {\n uploadFn: this.imageUploadFn(),\n }),\n Image.configure({\n inline: true,\n allowBase64: true\n }),\n SingleEmoji,\n Link.configure({\n openOnClick: false,\n defaultProtocol: 'https',\n }),\n Placeholder.configure({\n placeholder: this.placeholder()\n }),\n // FloatingMenu.configure({\n // element: this._floatingMenu().nativeElement\n // }),\n BubbleMenu.configure({\n pluginKey: 'imageBubbleMenu',\n element: this._imageBubbleMenu().nativeElement,\n shouldShow: ({ editor, view, state, oldState, from, to }) => {\n // return editor.isActive('image');\n return false;\n },\n }),\n BubbleMenu.configure({\n pluginKey: 'bubbleMenu',\n element: this._bubbleMenu().nativeElement,\n tippyOptions: {\n appendTo: this._document.body,\n zIndex: 999\n },\n shouldShow: ({ editor, view, state, oldState, from, to }) => {\n return !editor.isActive('image') &&\n !editor.isActive('youtube') &&\n !editor.isActive('imageUploadingPlaceholder') &&\n !editor.view.state.selection.empty\n ;\n },\n })\n ],\n content: '',\n onUpdate: ({ editor }) => {\n this._value = !editor.isEmpty ? editor.getHTML() : '';\n }\n });\n this._cdr.detectChanges();\n }\n}\n","@if ((showToolbar || toolbarAlwaysVisible()) && (fullView || fullViewMode())) {\n <div class=\"toolbar\">\n <ng-content select=\"ngs-comment-editor-toolbar\"/>\n </div>\n}\n<div #content class=\"content prose dark:prose-invert max-w-full\"></div>\n<div class=\"editor-content\">\n <ng-content/>\n</div>\n<div class=\"footer\">\n <div class=\"flex items-center gap-0.5 grow pe-3\">\n <ng-content select=\"ngs-comment-editor-footer-bar\"/>\n </div>\n <div class=\"flex items-center gap-2\">\n @if ((fullView && !fullViewMode()) || cancelButtonAlwaysVisible()) {\n <button ngsButton (click)=\"cancel($event)\">{{ buttonCancelLabel() }}</button>\n }\n <button ngsButton=\"filled\"\n [disabled]=\"(!allowEmptyContent() && !_value) || null\"\n (click)=\"send($event)\">{{ buttonSendLabel() }}\n </button>\n </div>\n</div>\n<div #imageBubbleMenu class=\"ngs-comment-editor-bubble-menu\">\n</div>\n<div #bubbleMenu>\n <ng-content select=\"ngs-comment-editor-bubble-menu\"/>\n</div>\n<!--<div #floatingMenu class=\"floating-menu\">-->\n<!-- @if (editor) {-->\n<!-- <div class=\"flex items-center gap-1.5\">-->\n<!-- <button class=\"button\"-->\n<!-- [disabled]=\"isCommandDisabled('toggleCodeBlock')\"-->\n<!-- [class.active]=\"editor && editor.isActive('codeBlock')\"-->\n<!-- (click)=\"onButtonClick('toggleCodeBlock')\">-->\n<!-- <ngs-icon name=\"fluent:code-24-regular\"/>-->\n<!-- </button>-->\n<!-- <button class=\"button\">-->\n<!-- <ngs-icon name=\"fluent:image-24-regular\"/>-->\n<!-- </button>-->\n<!-- </div>-->\n<!-- }-->\n<!--</div>-->\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-comment-editor-divider',\n imports: [],\n templateUrl: './comment-editor-divider.html',\n styleUrl: './comment-editor-divider.scss'\n})\nexport class CommentEditorDivider {\n\n}\n","<div class=\"divider\"></div>\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-comment-editor-toolbar',\n exportAs: 'ngsCommentEditorToolbar',\n templateUrl: './comment-editor-toolbar.html',\n styleUrl: './comment-editor-toolbar.scss',\n host: {\n 'class': 'ngs-comment-editor-toolbar',\n }\n})\nexport class CommentEditorToolbar {\n}\n","<ng-content select=\"[ngsCommentEditorCommand],ngs-comment-editor-divider\" />\n","import { Component, forwardRef, inject } from '@angular/core';\nimport { COMMENT_EDITOR, COMMENT_EDITOR_BUBBLE_MENU, CommentEditorInterface } from '../types';\n\n@Component({\n selector: 'ngs-comment-editor-bubble-menu',\n exportAs: 'ngsCommentEditorBubbleMenu',\n providers: [\n {\n provide: COMMENT_EDITOR_BUBBLE_MENU,\n useExisting: forwardRef(() => CommentEditorBubbleMenu)\n }\n ],\n templateUrl: './comment-editor-bubble-menu.html',\n styleUrl: './comment-editor-bubble-menu.scss',\n host: {\n 'class': 'ngs-comment-editor-bubble-menu',\n }\n})\nexport class CommentEditorBubbleMenu {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n getLinkUrl(): string | null {\n return (this.commentEditor.api.editor()?.getAttributes('link') as HTMLLinkElement).href || null;\n }\n}\n","@if (this.commentEditor.api.isActive('link') && getLinkUrl()) {\n <div class=\"flex items-center gap-1 h-11 border-b border-b-muted border-b-neutral-700\">\n <div class=\"grow text-sm overflow-hidden text-ellipsis whitespace-nowrap w-[116px]\">\n <a [href]=\"getLinkUrl()\" target=\"_blank\" class=\"link\">{{ getLinkUrl() }}</a>\n </div>\n <div class=\"flex items-center flex-none\">\n <ng-content select=\"[ngsCommentEditorCommandEditLink],[ngsCommentEditorCommandUnsetLink]\" />\n </div>\n </div>\n}\n<div class=\"h-12 flex items-center justify-center gap-0.5\">\n <ng-content select=\"[ngsCommentEditorCommand],ngs-comment-editor-divider\" />\n</div>\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-comment-editor-footer-bar',\n exportAs: 'ngsCommentEditorFooterBar',\n templateUrl: './comment-editor-footer-bar.html',\n styleUrl: './comment-editor-footer-bar.scss',\n host: {\n 'class': 'ngs-comment-editor-footer-bar',\n }\n})\nexport class CommentEditorFooterBar {\n\n}\n","<ng-content select=\"[ngsCommentEditorCommand],ngs-comment-editor-divider\" />\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngsCommentEditorCommand]',\n standalone: true,\n host: {\n '[class.button]': 'true'\n }\n})\nexport class CommentEditorCommandDirective {\n\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandBold]',\n exportAs: 'ngsCommentEditorCommandBold',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleBold')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('bold')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandBoldDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleBold');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandItalic]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleItalic')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('italic')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandItalicDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleItalic');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandStrike]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleStrike')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('strike')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandStrikeDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleStrike');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandBulletList]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleBulletList')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('bulletList')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandBulletListDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleBulletList');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandOrderedList]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleOrderedList')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('orderedList')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandOrderedListDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleOrderedList');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandBlockquote]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleBlockquote')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('blockquote')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandBlockquoteDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleBlockquote');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandCodeBlock]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleCodeBlock')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('codeBlock')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandCodeBlockDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleCodeBlock');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\nimport { UploadFileSelectedEvent, UploadTriggerDirective } from '@ngstarter-ui/components/upload';\n\n@Directive({\n selector: '[ngsCommentEditorCommandImage]',\n standalone: true,\n hostDirectives: [\n {\n directive: UploadTriggerDirective,\n outputs: ['fileSelected']\n }\n ],\n host: {\n '[attr.accept]': '\"image/*\"',\n '(fileSelected)': `onImageSelected($event)`\n }\n})\nexport class CommentEditorCommandImageDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onImageSelected(event: UploadFileSelectedEvent): void {\n const file = event.files[0];\n const reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = () => {\n const src = reader.result as string;\n this.commentEditor.api.editor().chain().focus().addImageUploadingPlaceholder({ src, file }).run();\n };\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport {\n DIALOG_DATA,\n DialogActions,\n DialogContent,\n DialogRef,\n DialogTitle\n} from '@ngstarter-ui/components/dialog';\nimport { Input } from '@ngstarter-ui/components/input';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { FormField, Label } from '@ngstarter-ui/components/form-field';\n\n@Component({\n selector: 'ngs-youtube',\n imports: [\n FormsModule,\n Button,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormField,\n Input,\n Label,\n ReactiveFormsModule\n ],\n templateUrl: './youtube.dialog.html',\n styleUrl: './youtube.dialog.scss'\n})\nexport class YoutubeDialog {\n private _dialogRef = inject(DialogRef);\n private _data = inject(DIALOG_DATA);\n linkUrl = this._data.linkUrl || '';\n isUpdate = !!this._data.linkUrl;\n\n onSubmit(): void {\n this._dialogRef.close(this.linkUrl);\n }\n\n _onNoClick(): void {\n this._dialogRef.close();\n }\n}\n","<form class=\"w-[500px]\" (ngSubmit)=\"onSubmit()\">\n <h3 ngs-dialog-title>\n @if (isUpdate) {\n Update Youtube\n } @else {\n Add Youtube\n }\n </h3>\n <ngs-dialog-content>\n <div class=\"pt-4\">\n <ngs-form-field class=\"w-full\">\n <ngs-label>Paste Url</ngs-label>\n <input name=\"linkUrl\" ngsInput [(ngModel)]=\"linkUrl\">\n </ngs-form-field>\n </div>\n </ngs-dialog-content>\n <div ngs-dialog-actions align=\"end\">\n <button ngsButton (click)=\"_onNoClick()\">Cancel</button>\n <button type=\"submit\" ngsButton=\"filled\" color=\"primary\"\n cdkFocusInitial [disabled]=\"!linkUrl.trim() || null\">\n @if (isUpdate) {\n Save\n } @else {\n Add url\n }\n </button>\n </div>\n</form>\n","import { DestroyRef, Directive, inject } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { Dialog } from '@ngstarter-ui/components/dialog';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\nimport { YoutubeDialog } from '../youtube/youtube.dialog';\n\n@Directive({\n selector: '[ngsCommentEditorCommandYoutube]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleBlockquote')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('blockquote')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandYoutubeDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n private _dialog = inject(Dialog);\n private _destroyRef = inject(DestroyRef);\n\n protected onClick(): void {\n const dialogRef = this._dialog.open(YoutubeDialog, {\n data: {\n linkUrl: (this.commentEditor.api.editor().getAttributes('iframe') as HTMLIFrameElement).src\n }\n });\n dialogRef\n .afterClosed()\n .pipe(\n takeUntilDestroyed(this._destroyRef)\n )\n .subscribe((linkUrl: string) => {\n if (typeof linkUrl === 'undefined') {\n return;\n }\n\n this.commentEditor.api.editor().commands.setYoutubeVideo({\n src: linkUrl\n });\n })\n ;\n }\n}\n","import { Component, inject } from '@angular/core';\nimport {\n DIALOG_DATA,\n DialogActions,\n DialogContent,\n DialogRef,\n DialogTitle\n} from '@ngstarter-ui/components/dialog';\nimport { Input } from '@ngstarter-ui/components/input';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { FormField, Label } from '@ngstarter-ui/components/form-field';\n\n@Component({\n selector: 'ngs-link',\n imports: [\n Button,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormField,\n Input,\n Label,\n ReactiveFormsModule,\n FormsModule\n ],\n templateUrl: './link.dialog.html',\n styleUrl: './link.dialog.scss'\n})\nexport class LinkDialog {\n private _dialogRef = inject(DialogRef);\n private _data = inject(DIALOG_DATA);\n linkUrl = this._data.linkUrl || '';\n isUpdate = !!this._data.linkUrl;\n\n onSubmit(): void {\n this._dialogRef.close(this.linkUrl);\n }\n\n _onNoClick(): void {\n this._dialogRef.close();\n }\n}\n","<form class=\"w-[500px]\" (ngSubmit)=\"onSubmit()\">\n <h3 ngs-dialog-title>\n @if (isUpdate) {\n Update Link\n } @else {\n Add Link\n }</h3>\n <ngs-dialog-content>\n <div class=\"pt-4\">\n <ngs-form-field class=\"w-full\">\n <ngs-label>Paste Link</ngs-label>\n <input name=\"linkUrl\" ngsInput [(ngModel)]=\"linkUrl\">\n </ngs-form-field>\n </div>\n </ngs-dialog-content>\n <div ngs-dialog-actions align=\"end\">\n <button ngsButton (click)=\"_onNoClick()\">Cancel</button>\n <button type=\"submit\" ngsButton=\"filled\" color=\"primary\"\n cdkFocusInitial [disabled]=\"!linkUrl.trim() || null\">\n @if (isUpdate) {\n Save\n } @else {\n Add link\n }\n </button>\n </div>\n</form>\n","import { DestroyRef, Directive, inject } from '@angular/core';\nimport { Dialog } from '@ngstarter-ui/components/dialog';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\nimport { LinkDialog } from '../link/link.dialog';\n\n@Directive({\n selector: '[ngsCommentEditorCommandLink]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleLink')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('link')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandLinkDirective {\n private _destroyRef = inject(DestroyRef);\n private _dialog = inject(Dialog);\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n protected setLinkActive = false;\n\n protected onClick(): void {\n this.setLinkActive = true;\n const dialogRef = this._dialog.open(LinkDialog, {\n data: {\n linkUrl: (this.commentEditor.api.editor().getAttributes('link') as HTMLLinkElement).href\n }\n });\n dialogRef\n .afterClosed()\n .pipe(\n takeUntilDestroyed(this._destroyRef)\n )\n .subscribe((linkUrl: string) => {\n this.setLinkActive = false;\n\n if (typeof linkUrl === 'undefined') {\n return;\n }\n\n this._setLink(linkUrl);\n })\n ;\n }\n\n private _setLink(url: string): void {\n // cancelled\n if (url === null) {\n return;\n }\n\n // empty\n if (url === '') {\n this.commentEditor.api.editor()\n .chain()\n .focus()\n .extendMarkRange('link')\n .unsetLink()\n .run()\n ;\n return;\n }\n\n // update link\n this.commentEditor.api.editor()\n .chain()\n .focus()\n .extendMarkRange('link')\n .setLink({ href: url })\n .run()\n ;\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandCode]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleCode')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('code')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandCodeDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleCode');\n }\n}\n","import { DestroyRef, Directive, inject } from '@angular/core';\nimport { Dialog } from '@ngstarter-ui/components/dialog';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\nimport { LinkDialog } from '../link/link.dialog';\n\n@Directive({\n selector: '[ngsCommentEditorCommandEditLink]',\n standalone: true,\n host: {\n '[class.button]': 'true',\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandEditLinkDirective {\n private _destroyRef = inject(DestroyRef);\n private _dialog = inject(Dialog);\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n protected setLinkActive = false;\n\n protected onClick(): void {\n this.setLinkActive = true;\n const dialogRef = this._dialog.open(LinkDialog, {\n data: {\n linkUrl: (this.commentEditor.api.editor().getAttributes('link') as HTMLLinkElement).href\n }\n });\n dialogRef\n .afterClosed()\n .pipe(\n takeUntilDestroyed(this._destroyRef)\n )\n .subscribe((linkUrl: string) => {\n this.setLinkActive = false;\n\n if (typeof linkUrl === 'undefined') {\n return;\n }\n\n this._setLink(linkUrl);\n })\n ;\n }\n\n private _setLink(url: string): void {\n // cancelled\n if (url === null) {\n return;\n }\n\n // empty\n if (url === '') {\n this.commentEditor.api.editor()\n .chain()\n .focus()\n .extendMarkRange('link')\n .unsetLink()\n .run()\n ;\n return;\n }\n\n // update link\n this.commentEditor.api.editor()\n .chain()\n .focus()\n .extendMarkRange('link')\n .setLink({ href: url })\n .run()\n ;\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandUnsetLink]',\n standalone: true,\n host: {\n '[class.button]': 'true',\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandUnsetLinkDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.editor().commands.unsetLink();\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandToggleToolbar]',\n standalone: true,\n host: {\n '[class.active]': `commentEditor && commentEditor.api.isToolbarActive()`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandToggleToolbarDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick(): void {\n this.commentEditor.api.toggleToolbar();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["Image","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkBa,cAAc,GAAG,IAAI,cAAc,CAAC,gBAAgB;MACpD,0BAA0B,GAAG,IAAI,cAAc,CAAC,4BAA4B;;MCd5E,eAAe,CAAA;AAClB,IAAA,cAAc;AACd,IAAA,YAAY;AAEpB,IAAA,WAAA,CAAY,aAAsB,EAAE,QAAkB,EAAE,KAAiB,EAAA;QACvE,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC;AAClD,QAAA,IAAI,CAAC,YAAY,GAAG,eAAe,CAAC,aAAa,EAAE;AACjD,YAAA,mBAAmB,EAAE,IAAI,CAAC,cAAc,CAAC,QAAQ;AACjD,YAAA,eAAe,EAAE,QAAQ;AAC1B,SAAA,CAAC;;AAGF,QAAA,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;QACvB,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;IAC5D;AAEA,IAAA,IAAI,QAAQ,GAAA;AACV,QAAA,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ;IACnC;AAEA,IAAA,IAAI,UAAU,GAAA;QACZ,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC;IACnD;AAEA,IAAA,IAAI,GAAG,GAAA;AACL,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa;IACtC;AAEA,IAAA,WAAW,CAAc,KAAiB,E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A,CAAA,SAAA,EAAA,CAAA;2FAA1C,0CAA0C,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wCAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,WAAA,EAAA,EAAA,UAAA,EAAA,EAAA,cAAA,EAAA,sDAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA1C,0CAA0C,EAAA,UAAA,EAAA,CAAA;kBARtD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wCAAwC;AAClD,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,gBAAgB,EAAE,CAAA,oDAAA,CAAsD;AACxE,wBAAA,SAAS,EAAE,CAAA,SAAA;AACZ;AACF,iBAAA;;;ACVD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngstarter-ui-components-comment-editor.mjs","sources":["../../../projects/components/comment-editor/src/types.ts","../../../projects/components/comment-editor/src/extensions/angular-renderer.ts","../../../projects/components/comment-editor/src/extensions/angular-node-view-renderer.ts","../../../projects/components/comment-editor/src/extensions/angular-node-view.ts","../../../projects/components/comment-editor/src/extensions/image-uploading-placeholder/image-uploading-placeholder.ts","../../../projects/components/comment-editor/src/extensions/image-uploading-placeholder/image-uploading-placeholder.html","../../../projects/components/comment-editor/src/extensions/image-uploading-placeholder.ts","../../../projects/components/comment-editor/src/extensions/single-emoji.ts","../../../projects/components/comment-editor/src/comment-editor/comment-editor.ts","../../../projects/components/comment-editor/src/comment-editor/comment-editor.html","../../../projects/components/comment-editor/src/comment-editor-divider/comment-editor-divider.ts","../../../projects/components/comment-editor/src/comment-editor-divider/comment-editor-divider.html","../../../projects/components/comment-editor/src/comment-editor-toolbar/comment-editor-toolbar.ts","../../../projects/components/comment-editor/src/comment-editor-toolbar/comment-editor-toolbar.html","../../../projects/components/comment-editor/src/comment-editor-bubble-menu/comment-editor-bubble-menu.ts","../../../projects/components/comment-editor/src/comment-editor-bubble-menu/comment-editor-bubble-menu.html","../../../projects/components/comment-editor/src/comment-editor-footer-bar/comment-editor-footer-bar.ts","../../../projects/components/comment-editor/src/comment-editor-footer-bar/comment-editor-footer-bar.html","../../../projects/components/comment-editor/src/_commands/comment-editor-command.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-bold.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-italic.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-strike.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-bullet-list.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-ordered-list.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-blockquote.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-code-block.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-image.directive.ts","../../../projects/components/comment-editor/src/youtube/youtube.dialog.ts","../../../projects/components/comment-editor/src/youtube/youtube.dialog.html","../../../projects/components/comment-editor/src/_commands/comment-editor-command-youtube.directive.ts","../../../projects/components/comment-editor/src/link/link.dialog.ts","../../../projects/components/comment-editor/src/link/link.dialog.html","../../../projects/components/comment-editor/src/_commands/comment-editor-command-link.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-code.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-edit-link.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-unset-link.directive.ts","../../../projects/components/comment-editor/src/_commands/comment-editor-command-toggle-toolbar.directive.ts","../../../projects/components/comment-editor/ngstarter-ui-components-comment-editor.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Editor } from '@tiptap/core';\n\nexport interface CommentEditorInterface {\n api: CommentEditorAPI;\n}\n\nexport interface CommentEditorAPI {\n isCommandDisabled: (command: string) => boolean | null;\n isActive: (command: string) => boolean | null;\n runCommand: (command: string) => void;\n editor: () => Editor;\n isToolbarActive: () => boolean;\n toggleToolbar: () => void;\n isEditorActivated: () => boolean;\n insertText: (text: string) => void;\n clear: () => void;\n}\n\nexport const COMMENT_EDITOR = new InjectionToken('COMMENT_EDITOR');\nexport const COMMENT_EDITOR_BUBBLE_MENU = new InjectionToken('COMMENT_EDITOR_BUBBLE_MENU');\n","import {\n ApplicationRef, ComponentRef, ElementRef,\n Injector, Type, createComponent,\n} from '@angular/core';\n\nexport class AngularRenderer<C, P> {\n private applicationRef: ApplicationRef;\n private componentRef: ComponentRef<C>;\n\n constructor(ViewComponent: Type<C>, injector: Injector, props: Partial<P>) {\n this.applicationRef = injector.get(ApplicationRef);\n this.componentRef = createComponent(ViewComponent, {\n environmentInjector: this.applicationRef.injector,\n elementInjector: injector,\n });\n\n // set input props to the component\n this.updateProps(props);\n this.applicationRef.attachView(this.componentRef.hostView);\n }\n\n get instance(): C {\n return this.componentRef.instance;\n }\n\n get elementRef(): ElementRef {\n return this.componentRef.injector.get(ElementRef);\n }\n\n get dom(): HTMLElement {\n return this.elementRef.nativeElement;\n }\n\n updateProps<T extends P>(props: Partial<T>): void {\n Object.entries(props).forEach(([key, value]) => {\n this.componentRef.setInput(key, value);\n });\n }\n\n detectChanges(): void {\n this.componentRef.changeDetectorRef.detectChanges();\n }\n\n destroy(): void {\n this.componentRef.destroy();\n this.applicationRef.detachView(this.componentRef.hostView);\n }\n}\n","import { Injector, Type } from '@angular/core';\nimport {\n Editor, NodeView, NodeViewProps,\n NodeViewRenderer, NodeViewRendererProps, NodeViewRendererOptions, DecorationWithType,\n} from '@tiptap/core';\nimport type { Decoration } from '@tiptap/pm/view';\nimport type { Node as ProseMirrorNode } from '@tiptap/pm/model';\nimport { AngularRenderer } from './angular-renderer';\n\ninterface RendererUpdateProps {\n oldNode: ProseMirrorNode;\n oldDecorations: Decoration[];\n newNode: ProseMirrorNode;\n newDecorations: Decoration[];\n updateProps: () => void;\n}\n\ninterface AngularNodeViewRendererOptions extends NodeViewRendererOptions {\n update?: ((props: RendererUpdateProps) => boolean) | null;\n injector: Injector;\n}\n\nclass AngularNodeViewContainer extends NodeView<Type<any>, Editor, AngularNodeViewRendererOptions> {\n renderer!: AngularRenderer<any, NodeViewProps>;\n contentDOMElement!: HTMLElement | null;\n\n override mount() {\n const injector = this.options.injector as Injector;\n const props: NodeViewProps = {\n editor: this.editor,\n node: this.node,\n // @ts-ignore\n decorations: this.decorations,\n selected: false,\n extension: this.extension,\n getPos: () => this.getPos(),\n updateAttributes: (attributes = {}) => this.updateAttributes(attributes),\n deleteNode: () => this.deleteNode(),\n };\n\n this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this);\n this.editor.on('selectionUpdate', this.handleSelectionUpdate);\n\n // create renderer\n this.renderer = new AngularRenderer(this.component, injector, props);\n\n // Register drag handler\n if (this.extension.config.draggable) {\n this.renderer.elementRef.nativeElement.ondragstart = (e: DragEvent) => {\n this.onDragStart(e);\n };\n }\n\n this.contentDOMElement = this.node.isLeaf ? null : document.createElement(this.node.isInline ? 'span' : 'div');\n\n if (this.contentDOMElement) {\n // For some reason the whiteSpace prop is not inherited properly in Chrome and Safari\n // With this fix it seems to work fine\n // See: https://github.com/ueberdosis/tiptap/issues/1197\n this.contentDOMElement.style.whiteSpace = 'inherit';\n\n // Required for editable node views\n // The content won't be rendered if `editable` is set to `false`\n this.renderer.detectChanges();\n }\n\n this.appendContendDom();\n }\n\n override get dom() {\n return this.renderer.dom;\n }\n\n override get contentDOM() {\n if (this.node.isLeaf) {\n return null;\n }\n\n return this.contentDOMElement;\n }\n\n private appendContendDom() {\n const contentElement = this.dom.querySelector('[data-node-view-content]');\n\n if (\n this.contentDOMElement\n && contentElement\n && !contentElement.contains(this.contentDOMElement)\n ) {\n contentElement.appendChild(this.contentDOMElement);\n }\n }\n\n handleSelectionUpdate() {\n const { from, to } = this.editor.state.selection;\n\n if (from <= this.getPos() && to >= this.getPos() + this.node.nodeSize) {\n this.selectNode();\n } else {\n this.deselectNode();\n }\n }\n\n update(node: ProseMirrorNode, decorations: DecorationWithType[]): boolean {\n const updateProps = () => {\n this.renderer.updateProps({ node, decorations });\n };\n\n if (this.options.update) {\n const oldNode = this.node;\n const oldDecorations = this.decorations;\n this.node = node;\n this.decorations = decorations;\n return this.options.update({\n oldNode,\n // @ts-ignore\n oldDecorations,\n newNode: node,\n newDecorations: decorations,\n updateProps: () => updateProps(),\n });\n }\n\n if (node.type !== this.node.type) {\n return false;\n }\n\n if (node === this.node && this.decorations === decorations) {\n return true;\n }\n\n this.node = node;\n this.decorations = decorations;\n updateProps();\n\n return true;\n }\n\n selectNode() {\n this.renderer.updateProps({ selected: true });\n }\n\n deselectNode() {\n this.renderer.updateProps({ selected: false });\n }\n\n destroy() {\n this.renderer.destroy();\n this.editor.off('selectionUpdate', this.handleSelectionUpdate);\n this.contentDOMElement = null;\n }\n}\n\nexport const AngularNodeViewRenderer = (\n ViewComponent: Type<any>,\n options: Partial<AngularNodeViewRendererOptions>,\n): NodeViewRenderer => {\n // @ts-ignore\n return (props: NodeViewRendererProps) => {\n return new AngularNodeViewContainer(ViewComponent, props, options);\n };\n};\n","import { Component, input } from '@angular/core';\nimport type { NodeViewProps } from '@tiptap/core';\n\n@Component({standalone: true, template: ''})\nexport class AngularNodeView {\n editor = input.required<NodeViewProps['editor']>();\n node = input.required<NodeViewProps['node']>();\n decorations = input.required<NodeViewProps['decorations']>();\n selected = input.required<NodeViewProps['selected']>();\n extension = input.required<NodeViewProps['extension']>();\n getPos = input.required<NodeViewProps['getPos']>();\n updateAttributes = input.required<NodeViewProps['updateAttributes']>();\n deleteNode = input.required<NodeViewProps['deleteNode']>();\n HTMLAttributes = input<Record<string, any>>({});\n innerDecorations = input<any>(undefined);\n view = input<any>(undefined);\n}\n","import { Component, OnDestroy, OnInit } from '@angular/core';\nimport { AngularNodeView } from '../angular-node-view';\nimport { ProgressSpinner } from '@ngstarter-ui/components/spinner';\n\n@Component({\n selector: 'ngs-image-uploading-placeholder',\n imports: [\n ProgressSpinner\n ],\n templateUrl: './image-uploading-placeholder.html',\n styleUrl: './image-uploading-placeholder.scss',\n host: {\n 'class': 'ngs-image-uploading-placeholder',\n '[class.selected]': 'selected()'\n }\n})\nexport class ImageUploadingPlaceholder extends AngularNodeView implements OnInit, OnDestroy {\n protected src: string;\n protected error: string;\n private _canceled = false;\n\n ngOnInit() {\n const uploadFn = this.extension().options['uploadFn'];\n this.src = this.node().attrs['src'];\n const blob = this._dataURItoBlob(this.src);\n uploadFn(blob).then((src: string) => {\n if (this._canceled) {\n return;\n }\n\n const image = new Image();\n image.src = src;\n image.onload = () => {\n this.editor().chain().focus().setImage({ src }).run();\n };\n }, (error: string) => {\n this.error = error;\n });\n }\n\n ngOnDestroy() {\n this._canceled = true;\n }\n\n private _dataURItoBlob(dataURI: string): Blob {\n // convert base64 to raw binary data held in a string\n // doesn't handle URLEncoded DataURIs - see SO answer #6850276 for code that does this\n const byteString = atob(dataURI.split(',')[1]);\n\n // separate out the mime component\n const mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];\n\n // write the bytes of the string to an ArrayBuffer\n const ab = new ArrayBuffer(byteString.length);\n const ia = new Uint8Array(ab);\n\n for (var i = 0; i < byteString.length; i++) {\n ia[i] = byteString.charCodeAt(i);\n }\n\n return new Blob([ab], { type: mimeString });\n }\n}\n","@if (src) {\n <div class=\"flex items-center justify-center relative\">\n @if (error) {\n <div class=\"absolute top-0 start-0 right-0 min-h-8 bg-error z-[2]\n text-on-error text-tiny flex items-center px-3\">{{ error }}</div>\n }\n <div class=\"w-max absolute start-1/2 top-1/2 z-[1] -translate-y-1/2 -translate-x-1/2\">\n @if (!error) {\n <ngs-progress-spinner />\n }\n </div>\n <img [src]=\"src\" alt=\"\" class=\"max-w-full opacity-70\">\n </div>\n}\n","import { mergeAttributes, Node } from '@tiptap/core'\nimport { Injector } from '@angular/core';\nimport { AngularNodeViewRenderer } from './angular-node-view-renderer';\nimport {\n ImageUploadingPlaceholder\n} from './image-uploading-placeholder/image-uploading-placeholder';\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n imageUploadingPlaceholder: {\n /** Add an image */\n addImageUploadingPlaceholder: (options: { src: string, file: File }) => ReturnType\n }\n }\n}\n\ninterface ImageUploadingPlaceholderOptions {\n uploadFn: ((file: Blob) => Promise<string>) | undefined;\n}\n\nconst ImageUploadingPlaceholderExtension = (injector: Injector, options: ImageUploadingPlaceholderOptions): Node => {\n return Node.create({\n name: 'imageUploadingPlaceholder',\n draggable: false,\n group: 'block',\n addOptions() {\n return {\n uploadFn: options.uploadFn\n }\n },\n addAttributes() {\n return {\n uploadId: {\n default: ''\n },\n src: {\n default: null\n }\n };\n },\n addCommands() {\n return {\n addImageUploadingPlaceholder: options => ({ commands }) => {\n return commands.insertContent({\n type: this.name,\n attrs: {\n src: options.src\n }\n });\n },\n }\n },\n addNodeView() {\n return AngularNodeViewRenderer(ImageUploadingPlaceholder, { injector });\n },\n parseHTML() {\n return [\n {\n tag: 'image-uploading-placeholder',\n }\n ]\n },\n renderHTML({ HTMLAttributes }) {\n return [\n 'image-uploading-placeholder', mergeAttributes(HTMLAttributes),\n ];\n }\n })\n};\n\nexport default ImageUploadingPlaceholderExtension;\n","import { Mark, mergeAttributes } from '@tiptap/core';\n\nexport const SingleEmoji = Mark.create({\n name: 'singleEmoji',\n\n inclusive: false,\n\n addOptions() {\n return {\n HTMLAttributes: {\n class: 'single-emoji',\n },\n };\n },\n\n parseHTML() {\n return [\n {\n tag: 'span.single-emoji',\n },\n ];\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['span', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];\n },\n});\n","import {\n booleanAttribute,\n ChangeDetectorRef,\n Component,\n ElementRef, forwardRef,\n inject, Injector,\n input,\n OnDestroy, OnInit,\n output, PLATFORM_ID,\n viewChild,\n DOCUMENT, signal\n} from '@angular/core';\nimport { Editor } from '@tiptap/core';\nimport Document from '@tiptap/extension-document';\nimport Paragraph from '@tiptap/extension-paragraph';\nimport Text from '@tiptap/extension-text';\nimport Bold from '@tiptap/extension-bold';\nimport Italic from '@tiptap/extension-italic';\nimport Strike from '@tiptap/extension-strike';\nimport CodeBlock from '@tiptap/extension-code-block';\nimport { Blockquote } from '@tiptap/extension-blockquote';\nimport BulletList from '@tiptap/extension-bullet-list';\nimport OrderedList from '@tiptap/extension-ordered-list';\nimport ListItem from '@tiptap/extension-list-item';\nimport Link from '@tiptap/extension-link';\nimport Placeholder from '@tiptap/extension-placeholder';\nimport Youtube from '@tiptap/extension-youtube';\nimport BubbleMenu from '@tiptap/extension-bubble-menu';\nimport Code from '@tiptap/extension-code';\nimport History from '@tiptap/extension-history';\nimport Dropcursor from '@tiptap/extension-dropcursor';\nimport Image from '@tiptap/extension-image';\nimport { isPlatformServer } from '@angular/common';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { COMMENT_EDITOR, CommentEditorAPI } from '../types';\nimport ImageUploadingPlaceholderExtension from '../extensions/image-uploading-placeholder';\nimport { SingleEmoji } from '../extensions/single-emoji';\n\n@Component({\n selector: 'ngs-comment-editor',\n exportAs: 'ngsCommentEditor',\n imports: [\n Button\n ],\n templateUrl: './comment-editor.html',\n styleUrl: './comment-editor.scss',\n providers: [\n {\n provide: COMMENT_EDITOR,\n useExisting: forwardRef(() => CommentEditor)\n }\n ],\n host: {\n 'class': 'ngs-comment-editor',\n '[class.full-view]': 'fullView || fullViewMode()',\n '(click)': 'activateFullView($event)'\n }\n})\nexport class CommentEditor implements OnInit, OnDestroy {\n private _platformId = inject(PLATFORM_ID);\n private _document = inject(DOCUMENT);\n private _cdr = inject(ChangeDetectorRef);\n private _injector = inject(Injector);\n private _content = viewChild.required<ElementRef>('content');\n private _bubbleMenu = viewChild.required<ElementRef>('bubbleMenu');\n private _imageBubbleMenu = viewChild.required<ElementRef>('imageBubbleMenu');\n protected _value = '';\n protected editor: Editor;\n protected showToolbar = false;\n protected fullView = false;\n\n contentMaxHeight = input<number>();\n buttonCancelLabel = input<string>('Cancel');\n buttonSendLabel = input<string>('Send');\n placeholder = input('Write something …');\n toolbarAlwaysVisible = input(false, {\n transform: booleanAttribute\n });\n fullViewMode = input(false, {\n transform: booleanAttribute\n });\n cancelButtonAlwaysVisible = input(false, {\n transform: booleanAttribute\n });\n allowEmptyContent = input(false, {\n transform: booleanAttribute\n });\n autoClear = input(true, {\n transform: booleanAttribute\n });\n loading = input(false);\n imageUploadFn = input<(file: Blob) => Promise<string>>();\n\n readonly sent = output<string>();\n readonly canceled = output<void>();\n\n ngOnInit() {\n this._init();\n }\n\n get api(): CommentEditorAPI {\n return {\n isCommandDisabled: (command: string) => this.isCommandDisabled(command),\n isActive: (command: string) => this.editor?.isActive(command),\n runCommand: (command: string) => this._runCommand(command),\n editor: () => this.editor,\n isToolbarActive: () => this.showToolbar,\n toggleToolbar: () => this.toggleToolbar(),\n isEditorActivated: () => this.fullView || this.fullViewMode(),\n insertText: (text: string) => this.insertText(text),\n clear: () => this.clear()\n }\n }\n\n insertText(text: string): void {\n if (!this.editor) {\n return;\n }\n\n const isOnlyEmoji = (str: string) => {\n if (!str) {\n return false;\n }\n const emojiRegex = /^(\\u00a9|\\u00ae|[\\u2000-\\u3300]|\\ud83c[\\ud000-\\udfff]|\\ud83d[\\ud000-\\udfff]|\\ud83e[\\ud000-\\udfff])+$/;\n return emojiRegex.test(str.trim());\n };\n\n if (this.editor.isFocused) {\n const { selection } = this.editor.state;\n const isParentEmpty = selection.$from.parent.content.size === 0;\n\n if (isOnlyEmoji(text) && isParentEmpty) {\n this.editor.chain().focus().insertContent({\n type: 'text',\n text,\n marks: [{ type: 'singleEmoji' }]\n }).run();\n } else {\n this.editor.chain().focus().insertContent(text).run();\n }\n } else {\n const content = this.editor.getText();\n let textToInsert: any = text;\n if (content.length > 0) {\n textToInsert = ` ${text} `;\n }\n const lastNode = this.editor.state.doc.lastChild;\n if (lastNode && lastNode.type.name === 'paragraph') {\n const isLastNodeEmpty = lastNode.content.size === 0;\n const pos = this.editor.state.doc.content.size - 1;\n\n if (isOnlyEmoji(text) && isLastNodeEmpty) {\n this.editor.chain().focus().insertContentAt(pos, {\n type: 'text',\n text,\n marks: [{ type: 'singleEmoji' }]\n }).run();\n } else {\n this.editor.chain().focus().insertContentAt(pos, textToInsert).run();\n }\n } else {\n this.editor.chain().focus().insertContentAt(this.editor.state.doc.content.size, textToInsert).run();\n }\n this.activateFullView();\n }\n }\n\n isCommandDisabled(command: string): boolean | null {\n if (!this.editor) {\n return true;\n }\n\n try {\n const canFocus = this.editor.can().chain().focus() as any;\n return !canFocus[command]().run() || null;\n } catch (e) {\n return true;\n }\n }\n\n ngOnDestroy() {\n this.editor?.destroy();\n }\n\n send(event: MouseEvent): void {\n event.stopPropagation();\n event.preventDefault();\n this.sent.emit(this._value);\n this.showToolbar = false;\n this.fullView = false;\n if (this.autoClear()) {\n this.clear();\n }\n }\n\n clear(): void {\n this._value = '';\n this.editor?.commands.clearContent(true);\n }\n\n activateFullView(event?: MouseEvent): void {\n if (event) {\n const target = event.target as HTMLElement;\n if (target.closest('button')) {\n return;\n }\n }\n\n if (this.fullView) {\n return;\n }\n\n this.fullView = true;\n }\n\n toggleToolbar(): void {\n this.showToolbar = !this.showToolbar;\n }\n\n cancel(event: MouseEvent): void {\n event.stopPropagation();\n event.preventDefault();\n this.showToolbar = false;\n this.fullView = false;\n this.clear();\n this.canceled.emit();\n }\n\n private _runCommand(command: string): void {\n if (!this.editor) {\n return;\n }\n\n const chainFocus = this.editor.chain().focus() as any;\n chainFocus[command]().run();\n }\n\n private _init(): void {\n if (isPlatformServer(this._platformId)) {\n return;\n }\n\n this.editor = new Editor({\n element: this._content().nativeElement,\n extensions: [\n Document,\n Paragraph,\n Text,\n Bold,\n Italic,\n Strike,\n Blockquote,\n CodeBlock,\n BulletList,\n OrderedList,\n ListItem,\n Code,\n History,\n Dropcursor,\n Youtube.configure({\n controls: false,\n nocookie: true,\n }),\n ImageUploadingPlaceholderExtension(this._injector, {\n uploadFn: this.imageUploadFn(),\n }),\n Image.configure({\n inline: true,\n allowBase64: true\n }),\n SingleEmoji,\n Link.configure({\n openOnClick: false,\n defaultProtocol: 'https',\n }),\n Placeholder.configure({\n placeholder: this.placeholder()\n }),\n // FloatingMenu.configure({\n // element: this._floatingMenu().nativeElement\n // }),\n BubbleMenu.configure({\n pluginKey: 'imageBubbleMenu',\n element: this._imageBubbleMenu().nativeElement,\n shouldShow: ({ editor, view, state, oldState, from, to }) => {\n // return editor.isActive('image');\n return false;\n },\n }),\n BubbleMenu.configure({\n pluginKey: 'bubbleMenu',\n element: this._bubbleMenu().nativeElement,\n tippyOptions: {\n appendTo: this._document.body,\n zIndex: 999\n },\n shouldShow: ({ editor, view, state, oldState, from, to }) => {\n return !editor.isActive('image') &&\n !editor.isActive('youtube') &&\n !editor.isActive('imageUploadingPlaceholder') &&\n !editor.view.state.selection.empty\n ;\n },\n })\n ],\n content: '',\n onUpdate: ({ editor }) => {\n this._value = !editor.isEmpty ? editor.getHTML() : '';\n this._cdr.markForCheck();\n }\n });\n this._cdr.detectChanges();\n }\n}\n","@if ((showToolbar || toolbarAlwaysVisible()) && (fullView || fullViewMode())) {\n <div class=\"toolbar\">\n <ng-content select=\"ngs-comment-editor-toolbar\"/>\n </div>\n}\n<div #content class=\"content prose dark:prose-invert max-w-full\"></div>\n<div class=\"editor-content\">\n <ng-content/>\n</div>\n<div class=\"footer\">\n <div class=\"flex items-center gap-0.5 grow pe-3\">\n <ng-content select=\"ngs-comment-editor-footer-bar\"/>\n </div>\n <div class=\"flex items-center gap-2\">\n @if ((fullView && !fullViewMode()) || cancelButtonAlwaysVisible()) {\n <button ngsButton (click)=\"cancel($event)\">{{ buttonCancelLabel() }}</button>\n }\n <button ngsButton=\"filled\"\n [disabled]=\"(!allowEmptyContent() && !_value) || null\"\n [loading]=\"loading()\"\n (click)=\"send($event)\">{{ buttonSendLabel() }}\n </button>\n </div>\n</div>\n<div #imageBubbleMenu class=\"ngs-comment-editor-bubble-menu\">\n</div>\n<div #bubbleMenu>\n <ng-content select=\"ngs-comment-editor-bubble-menu\"/>\n</div>\n<!--<div #floatingMenu class=\"floating-menu\">-->\n<!-- @if (editor) {-->\n<!-- <div class=\"flex items-center gap-1.5\">-->\n<!-- <button class=\"button\"-->\n<!-- [disabled]=\"isCommandDisabled('toggleCodeBlock')\"-->\n<!-- [class.active]=\"editor && editor.isActive('codeBlock')\"-->\n<!-- (click)=\"onButtonClick('toggleCodeBlock')\">-->\n<!-- <ngs-icon name=\"fluent:code-24-regular\"/>-->\n<!-- </button>-->\n<!-- <button class=\"button\">-->\n<!-- <ngs-icon name=\"fluent:image-24-regular\"/>-->\n<!-- </button>-->\n<!-- </div>-->\n<!-- }-->\n<!--</div>-->\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-comment-editor-divider',\n imports: [],\n templateUrl: './comment-editor-divider.html',\n styleUrl: './comment-editor-divider.scss'\n})\nexport class CommentEditorDivider {\n\n}\n","<div class=\"divider\"></div>\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-comment-editor-toolbar',\n exportAs: 'ngsCommentEditorToolbar',\n templateUrl: './comment-editor-toolbar.html',\n styleUrl: './comment-editor-toolbar.scss',\n host: {\n 'class': 'ngs-comment-editor-toolbar',\n }\n})\nexport class CommentEditorToolbar {\n}\n","<ng-content select=\"[ngsCommentEditorCommand],ngs-comment-editor-divider\" />\n","import { Component, forwardRef, inject } from '@angular/core';\nimport { COMMENT_EDITOR, COMMENT_EDITOR_BUBBLE_MENU, CommentEditorInterface } from '../types';\n\n@Component({\n selector: 'ngs-comment-editor-bubble-menu',\n exportAs: 'ngsCommentEditorBubbleMenu',\n providers: [\n {\n provide: COMMENT_EDITOR_BUBBLE_MENU,\n useExisting: forwardRef(() => CommentEditorBubbleMenu)\n }\n ],\n templateUrl: './comment-editor-bubble-menu.html',\n styleUrl: './comment-editor-bubble-menu.scss',\n host: {\n 'class': 'ngs-comment-editor-bubble-menu',\n }\n})\nexport class CommentEditorBubbleMenu {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n getLinkUrl(): string | null {\n return (this.commentEditor.api.editor()?.getAttributes('link') as HTMLLinkElement).href || null;\n }\n}\n","@if (this.commentEditor.api.isActive('link') && getLinkUrl()) {\n <div class=\"flex items-center gap-1 h-11 border-b border-b-muted border-b-neutral-700\">\n <div class=\"grow text-sm overflow-hidden text-ellipsis whitespace-nowrap w-[116px]\">\n <a [href]=\"getLinkUrl()\" target=\"_blank\" class=\"link\">{{ getLinkUrl() }}</a>\n </div>\n <div class=\"flex items-center flex-none\">\n <ng-content select=\"[ngsCommentEditorCommandEditLink],[ngsCommentEditorCommandUnsetLink]\" />\n </div>\n </div>\n}\n<div class=\"h-12 flex items-center justify-center gap-0.5\">\n <ng-content select=\"[ngsCommentEditorCommand],ngs-comment-editor-divider\" />\n</div>\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-comment-editor-footer-bar',\n exportAs: 'ngsCommentEditorFooterBar',\n templateUrl: './comment-editor-footer-bar.html',\n styleUrl: './comment-editor-footer-bar.scss',\n host: {\n 'class': 'ngs-comment-editor-footer-bar',\n }\n})\nexport class CommentEditorFooterBar {\n\n}\n","<ng-content select=\"[ngsCommentEditorCommand],ngs-comment-editor-divider\" />\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngsCommentEditorCommand]',\n standalone: true,\n host: {\n '[class.button]': 'true'\n }\n})\nexport class CommentEditorCommandDirective {\n\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandBold]',\n exportAs: 'ngsCommentEditorCommandBold',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleBold')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('bold')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandBoldDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleBold');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandItalic]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleItalic')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('italic')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandItalicDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleItalic');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandStrike]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleStrike')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('strike')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandStrikeDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleStrike');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandBulletList]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleBulletList')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('bulletList')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandBulletListDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleBulletList');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandOrderedList]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleOrderedList')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('orderedList')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandOrderedListDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleOrderedList');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandBlockquote]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleBlockquote')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('blockquote')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandBlockquoteDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleBlockquote');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandCodeBlock]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleCodeBlock')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('codeBlock')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandCodeBlockDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleCodeBlock');\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\nimport { UploadFileSelectedEvent, UploadTriggerDirective } from '@ngstarter-ui/components/upload';\n\n@Directive({\n selector: '[ngsCommentEditorCommandImage]',\n standalone: true,\n hostDirectives: [\n {\n directive: UploadTriggerDirective,\n outputs: ['fileSelected']\n }\n ],\n host: {\n '[attr.accept]': '\"image/*\"',\n '(fileSelected)': `onImageSelected($event)`\n }\n})\nexport class CommentEditorCommandImageDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onImageSelected(event: UploadFileSelectedEvent): void {\n const file = event.files[0];\n const reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = () => {\n const src = reader.result as string;\n this.commentEditor.api.editor().chain().focus().addImageUploadingPlaceholder({ src, file }).run();\n };\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport {\n DIALOG_DATA,\n DialogActions,\n DialogContent,\n DialogRef,\n DialogTitle\n} from '@ngstarter-ui/components/dialog';\nimport { Input } from '@ngstarter-ui/components/input';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { FormField, Label } from '@ngstarter-ui/components/form-field';\n\n@Component({\n selector: 'ngs-youtube',\n imports: [\n FormsModule,\n Button,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormField,\n Input,\n Label,\n ReactiveFormsModule\n ],\n templateUrl: './youtube.dialog.html',\n styleUrl: './youtube.dialog.scss'\n})\nexport class YoutubeDialog {\n private _dialogRef = inject(DialogRef);\n private _data = inject(DIALOG_DATA);\n linkUrl = this._data.linkUrl || '';\n isUpdate = !!this._data.linkUrl;\n\n onSubmit(): void {\n this._dialogRef.close(this.linkUrl);\n }\n\n _onNoClick(): void {\n this._dialogRef.close();\n }\n}\n","<form class=\"w-[500px]\" (ngSubmit)=\"onSubmit()\">\n <h3 ngs-dialog-title>\n @if (isUpdate) {\n Update Youtube\n } @else {\n Add Youtube\n }\n </h3>\n <ngs-dialog-content>\n <div class=\"pt-4\">\n <ngs-form-field class=\"w-full\">\n <ngs-label>Paste Url</ngs-label>\n <input name=\"linkUrl\" ngsInput [(ngModel)]=\"linkUrl\">\n </ngs-form-field>\n </div>\n </ngs-dialog-content>\n <div ngs-dialog-actions align=\"end\">\n <button ngsButton (click)=\"_onNoClick()\">Cancel</button>\n <button type=\"submit\" ngsButton=\"filled\" color=\"primary\"\n cdkFocusInitial [disabled]=\"!linkUrl.trim() || null\">\n @if (isUpdate) {\n Save\n } @else {\n Add url\n }\n </button>\n </div>\n</form>\n","import { DestroyRef, Directive, inject } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { Dialog } from '@ngstarter-ui/components/dialog';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\nimport { YoutubeDialog } from '../youtube/youtube.dialog';\n\n@Directive({\n selector: '[ngsCommentEditorCommandYoutube]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleBlockquote')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('blockquote')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandYoutubeDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n private _dialog = inject(Dialog);\n private _destroyRef = inject(DestroyRef);\n\n protected onClick(): void {\n const dialogRef = this._dialog.open(YoutubeDialog, {\n data: {\n linkUrl: (this.commentEditor.api.editor().getAttributes('iframe') as HTMLIFrameElement).src\n }\n });\n dialogRef\n .afterClosed()\n .pipe(\n takeUntilDestroyed(this._destroyRef)\n )\n .subscribe((linkUrl: string) => {\n if (typeof linkUrl === 'undefined') {\n return;\n }\n\n this.commentEditor.api.editor().commands.setYoutubeVideo({\n src: linkUrl\n });\n })\n ;\n }\n}\n","import { Component, inject } from '@angular/core';\nimport {\n DIALOG_DATA,\n DialogActions,\n DialogContent,\n DialogRef,\n DialogTitle\n} from '@ngstarter-ui/components/dialog';\nimport { Input } from '@ngstarter-ui/components/input';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { FormField, Label } from '@ngstarter-ui/components/form-field';\n\n@Component({\n selector: 'ngs-link',\n imports: [\n Button,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormField,\n Input,\n Label,\n ReactiveFormsModule,\n FormsModule\n ],\n templateUrl: './link.dialog.html',\n styleUrl: './link.dialog.scss'\n})\nexport class LinkDialog {\n private _dialogRef = inject(DialogRef);\n private _data = inject(DIALOG_DATA);\n linkUrl = this._data.linkUrl || '';\n isUpdate = !!this._data.linkUrl;\n\n onSubmit(): void {\n this._dialogRef.close(this.linkUrl);\n }\n\n _onNoClick(): void {\n this._dialogRef.close();\n }\n}\n","<form class=\"w-[500px]\" (ngSubmit)=\"onSubmit()\">\n <h3 ngs-dialog-title>\n @if (isUpdate) {\n Update Link\n } @else {\n Add Link\n }</h3>\n <ngs-dialog-content>\n <div class=\"pt-4\">\n <ngs-form-field class=\"w-full\">\n <ngs-label>Paste Link</ngs-label>\n <input name=\"linkUrl\" ngsInput [(ngModel)]=\"linkUrl\">\n </ngs-form-field>\n </div>\n </ngs-dialog-content>\n <div ngs-dialog-actions align=\"end\">\n <button ngsButton (click)=\"_onNoClick()\">Cancel</button>\n <button type=\"submit\" ngsButton=\"filled\" color=\"primary\"\n cdkFocusInitial [disabled]=\"!linkUrl.trim() || null\">\n @if (isUpdate) {\n Save\n } @else {\n Add link\n }\n </button>\n </div>\n</form>\n","import { DestroyRef, Directive, inject } from '@angular/core';\nimport { Dialog } from '@ngstarter-ui/components/dialog';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\nimport { LinkDialog } from '../link/link.dialog';\n\n@Directive({\n selector: '[ngsCommentEditorCommandLink]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleLink')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('link')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandLinkDirective {\n private _destroyRef = inject(DestroyRef);\n private _dialog = inject(Dialog);\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n protected setLinkActive = false;\n\n protected onClick(): void {\n this.setLinkActive = true;\n const dialogRef = this._dialog.open(LinkDialog, {\n data: {\n linkUrl: (this.commentEditor.api.editor().getAttributes('link') as HTMLLinkElement).href\n }\n });\n dialogRef\n .afterClosed()\n .pipe(\n takeUntilDestroyed(this._destroyRef)\n )\n .subscribe((linkUrl: string) => {\n this.setLinkActive = false;\n\n if (typeof linkUrl === 'undefined') {\n return;\n }\n\n this._setLink(linkUrl);\n })\n ;\n }\n\n private _setLink(url: string): void {\n // cancelled\n if (url === null) {\n return;\n }\n\n // empty\n if (url === '') {\n this.commentEditor.api.editor()\n .chain()\n .focus()\n .extendMarkRange('link')\n .unsetLink()\n .run()\n ;\n return;\n }\n\n // update link\n this.commentEditor.api.editor()\n .chain()\n .focus()\n .extendMarkRange('link')\n .setLink({ href: url })\n .run()\n ;\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandCode]',\n standalone: true,\n host: {\n '[attr.disabled]': `(commentEditor && commentEditor.api.isCommandDisabled('toggleCode')) ? '' : null`,\n '[class.active]': `commentEditor && commentEditor.api.isActive('code')`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandCodeDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.runCommand('toggleCode');\n }\n}\n","import { DestroyRef, Directive, inject } from '@angular/core';\nimport { Dialog } from '@ngstarter-ui/components/dialog';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\nimport { LinkDialog } from '../link/link.dialog';\n\n@Directive({\n selector: '[ngsCommentEditorCommandEditLink]',\n standalone: true,\n host: {\n '[class.button]': 'true',\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandEditLinkDirective {\n private _destroyRef = inject(DestroyRef);\n private _dialog = inject(Dialog);\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n protected setLinkActive = false;\n\n protected onClick(): void {\n this.setLinkActive = true;\n const dialogRef = this._dialog.open(LinkDialog, {\n data: {\n linkUrl: (this.commentEditor.api.editor().getAttributes('link') as HTMLLinkElement).href\n }\n });\n dialogRef\n .afterClosed()\n .pipe(\n takeUntilDestroyed(this._destroyRef)\n )\n .subscribe((linkUrl: string) => {\n this.setLinkActive = false;\n\n if (typeof linkUrl === 'undefined') {\n return;\n }\n\n this._setLink(linkUrl);\n })\n ;\n }\n\n private _setLink(url: string): void {\n // cancelled\n if (url === null) {\n return;\n }\n\n // empty\n if (url === '') {\n this.commentEditor.api.editor()\n .chain()\n .focus()\n .extendMarkRange('link')\n .unsetLink()\n .run()\n ;\n return;\n }\n\n // update link\n this.commentEditor.api.editor()\n .chain()\n .focus()\n .extendMarkRange('link')\n .setLink({ href: url })\n .run()\n ;\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandUnsetLink]',\n standalone: true,\n host: {\n '[class.button]': 'true',\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandUnsetLinkDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick() {\n this.commentEditor.api.editor().commands.unsetLink();\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { COMMENT_EDITOR, CommentEditorInterface } from '../types';\n\n@Directive({\n selector: '[ngsCommentEditorCommandToggleToolbar]',\n standalone: true,\n host: {\n '[class.active]': `commentEditor && commentEditor.api.isToolbarActive()`,\n '(click)': `onClick()`\n }\n})\nexport class CommentEditorCommandToggleToolbarDirective {\n protected commentEditor = inject<CommentEditorInterface>(COMMENT_EDITOR);\n\n protected onClick(): void {\n this.commentEditor.api.toggleToolbar();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["Image","i1"],"mappings":";;;;;;;;;;;;;;;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AAA,CAAsD;AACxE,wBAAA,SAAS,EAAE,CAAA,SAAA;AACZ;AACF,iBAAA;;;ACVD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngstarter-ui/components",
|
|
3
3
|
"description": "NgStarter - AI-friendly Enterprise Angular UI Components and Admin Panel",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.27",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/elementarlabsdev/ngstarter.git"
|
|
@@ -16,6 +16,7 @@ interface CommentEditorAPI {
|
|
|
16
16
|
toggleToolbar: () => void;
|
|
17
17
|
isEditorActivated: () => boolean;
|
|
18
18
|
insertText: (text: string) => void;
|
|
19
|
+
clear: () => void;
|
|
19
20
|
}
|
|
20
21
|
declare const COMMENT_EDITOR: InjectionToken<unknown>;
|
|
21
22
|
declare const COMMENT_EDITOR_BUBBLE_MENU: InjectionToken<unknown>;
|
|
@@ -40,6 +41,8 @@ declare class CommentEditor implements OnInit, OnDestroy {
|
|
|
40
41
|
fullViewMode: i0.InputSignalWithTransform<boolean, unknown>;
|
|
41
42
|
cancelButtonAlwaysVisible: i0.InputSignalWithTransform<boolean, unknown>;
|
|
42
43
|
allowEmptyContent: i0.InputSignalWithTransform<boolean, unknown>;
|
|
44
|
+
autoClear: i0.InputSignalWithTransform<boolean, unknown>;
|
|
45
|
+
loading: i0.InputSignal<boolean>;
|
|
43
46
|
imageUploadFn: i0.InputSignal<((file: Blob) => Promise<string>) | undefined>;
|
|
44
47
|
readonly sent: i0.OutputEmitterRef<string>;
|
|
45
48
|
readonly canceled: i0.OutputEmitterRef<void>;
|
|
@@ -49,13 +52,14 @@ declare class CommentEditor implements OnInit, OnDestroy {
|
|
|
49
52
|
isCommandDisabled(command: string): boolean | null;
|
|
50
53
|
ngOnDestroy(): void;
|
|
51
54
|
send(event: MouseEvent): void;
|
|
52
|
-
|
|
55
|
+
clear(): void;
|
|
56
|
+
activateFullView(event?: MouseEvent): void;
|
|
53
57
|
toggleToolbar(): void;
|
|
54
58
|
cancel(event: MouseEvent): void;
|
|
55
59
|
private _runCommand;
|
|
56
60
|
private _init;
|
|
57
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommentEditor, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentEditor, "ngs-comment-editor", ["ngsCommentEditor"], { "contentMaxHeight": { "alias": "contentMaxHeight"; "required": false; "isSignal": true; }; "buttonCancelLabel": { "alias": "buttonCancelLabel"; "required": false; "isSignal": true; }; "buttonSendLabel": { "alias": "buttonSendLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "toolbarAlwaysVisible": { "alias": "toolbarAlwaysVisible"; "required": false; "isSignal": true; }; "fullViewMode": { "alias": "fullViewMode"; "required": false; "isSignal": true; }; "cancelButtonAlwaysVisible": { "alias": "cancelButtonAlwaysVisible"; "required": false; "isSignal": true; }; "allowEmptyContent": { "alias": "allowEmptyContent"; "required": false; "isSignal": true; }; "imageUploadFn": { "alias": "imageUploadFn"; "required": false; "isSignal": true; }; }, { "sent": "sent"; "canceled": "canceled"; }, never, ["ngs-comment-editor-toolbar", "*", "ngs-comment-editor-footer-bar", "ngs-comment-editor-bubble-menu"], true, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentEditor, "ngs-comment-editor", ["ngsCommentEditor"], { "contentMaxHeight": { "alias": "contentMaxHeight"; "required": false; "isSignal": true; }; "buttonCancelLabel": { "alias": "buttonCancelLabel"; "required": false; "isSignal": true; }; "buttonSendLabel": { "alias": "buttonSendLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "toolbarAlwaysVisible": { "alias": "toolbarAlwaysVisible"; "required": false; "isSignal": true; }; "fullViewMode": { "alias": "fullViewMode"; "required": false; "isSignal": true; }; "cancelButtonAlwaysVisible": { "alias": "cancelButtonAlwaysVisible"; "required": false; "isSignal": true; }; "allowEmptyContent": { "alias": "allowEmptyContent"; "required": false; "isSignal": true; }; "autoClear": { "alias": "autoClear"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "imageUploadFn": { "alias": "imageUploadFn"; "required": false; "isSignal": true; }; }, { "sent": "sent"; "canceled": "canceled"; }, never, ["ngs-comment-editor-toolbar", "*", "ngs-comment-editor-footer-bar", "ngs-comment-editor-bubble-menu"], true, never>;
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
declare class CommentEditorDivider {
|