@3kles/kles-richtext-editor 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/3kles-kles-richtext-editor-material.mjs +523 -0
- package/fesm2022/3kles-kles-richtext-editor-material.mjs.map +1 -0
- package/fesm2022/3kles-kles-richtext-editor-richtext-toolbar-button.component-B0aePmqW.mjs +96 -0
- package/fesm2022/3kles-kles-richtext-editor-richtext-toolbar-button.component-B0aePmqW.mjs.map +1 -0
- package/fesm2022/3kles-kles-richtext-editor-richtext-toolbar-fields.component-DZrj7frn.mjs +163 -0
- package/fesm2022/3kles-kles-richtext-editor-richtext-toolbar-fields.component-DZrj7frn.mjs.map +1 -0
- package/fesm2022/3kles-kles-richtext-editor-richtext-toolbar-menu.component-DkaxVVT8.mjs +224 -0
- package/fesm2022/3kles-kles-richtext-editor-richtext-toolbar-menu.component-DkaxVVT8.mjs.map +1 -0
- package/fesm2022/3kles-kles-richtext-editor.mjs +40 -22
- package/fesm2022/3kles-kles-richtext-editor.mjs.map +1 -1
- package/package.json +16 -4
- package/types/3kles-kles-richtext-editor-material.d.ts +5 -0
- package/types/3kles-kles-richtext-editor-material.d.ts.map +1 -0
- package/types/3kles-kles-richtext-editor.d.ts +82 -5
- package/types/3kles-kles-richtext-editor.d.ts.map +1 -1
- package/fesm2022/3kles-kles-richtext-editor-richtext-toolbar-menu.component-Dq2K0CY3.mjs +0 -183
- package/fesm2022/3kles-kles-richtext-editor-richtext-toolbar-menu.component-Dq2K0CY3.mjs.map +0 -1
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
import { provideRichTextToolbarAppearance } from "@3kles/kles-richtext-editor";
|
|
2
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import { ChangeDetectionStrategy, Component, effect, input, signal, viewChild } from "@angular/core";
|
|
5
|
+
import { MatButton, MatIconButton } from "@angular/material/button";
|
|
6
|
+
import { MatIcon } from "@angular/material/icon";
|
|
7
|
+
import { MaterialColorPickerPanelComponent } from "@3kles/kles-material-color-picker";
|
|
8
|
+
import { MatFormField, MatLabel } from "@angular/material/form-field";
|
|
9
|
+
import { MatInput } from "@angular/material/input";
|
|
10
|
+
import * as i1 from "@angular/material/list";
|
|
11
|
+
import { MatListModule, MatSelectionList } from "@angular/material/list";
|
|
12
|
+
var RichTextMaterialToolbarButtonComponent = class RichTextMaterialToolbarButtonComponent {
|
|
13
|
+
control = input.required(...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
|
|
14
|
+
preserveSelection(event) {
|
|
15
|
+
if (event.button === 0) event.preventDefault();
|
|
16
|
+
}
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
18
|
+
minVersion: "12.0.0",
|
|
19
|
+
version: "22.2.6",
|
|
20
|
+
ngImport: i0,
|
|
21
|
+
type: RichTextMaterialToolbarButtonComponent,
|
|
22
|
+
deps: [],
|
|
23
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
24
|
+
});
|
|
25
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
26
|
+
minVersion: "17.0.0",
|
|
27
|
+
version: "22.2.6",
|
|
28
|
+
type: RichTextMaterialToolbarButtonComponent,
|
|
29
|
+
isStandalone: true,
|
|
30
|
+
selector: "kles-richtext-material-toolbar-button",
|
|
31
|
+
inputs: { control: {
|
|
32
|
+
classPropertyName: "control",
|
|
33
|
+
publicName: "control",
|
|
34
|
+
isSignal: true,
|
|
35
|
+
isRequired: true,
|
|
36
|
+
transformFunction: null
|
|
37
|
+
} },
|
|
38
|
+
ngImport: i0,
|
|
39
|
+
template: "@let button = control();\n<ng-template #contents>\n @if (button.content; as content) {\n <ng-container [ngTemplateOutlet]=\"content.template\" [ngTemplateOutletContext]=\"content.context\" />\n } @else {\n @if (button.iconType === 'material' && button.icon) {\n <mat-icon aria-hidden=\"true\">{{ button.icon }}</mat-icon>\n } @else if (button.icon) {\n <span aria-hidden=\"true\">{{ button.icon }}</span>\n }\n {{ button.label }}\n }\n</ng-template>\n\n@if (!button.label && button.icon && !button.content) {\n <button\n matIconButton\n type=\"button\"\n [attr.data-richtext-action]=\"button.actionId\"\n [attr.data-richtext-field]=\"button.fieldId\"\n [attr.aria-label]=\"button.ariaLabel\"\n [attr.aria-pressed]=\"button.pressed ?? null\"\n [attr.aria-haspopup]=\"button.popoverTarget ? 'dialog' : null\"\n [attr.popovertarget]=\"button.popoverTarget\"\n [title]=\"button.ariaLabel\"\n [tabIndex]=\"button.tabStop ?? 0\"\n [disabled]=\"button.disabled\"\n (mousedown)=\"preserveSelection($event)\"\n (click)=\"button.activate?.()\"\n >\n <ng-container *ngTemplateOutlet=\"contents\" />\n </button>\n} @else {\n <button\n [matButton]=\"button.pressed ? 'tonal' : 'text'\"\n type=\"button\"\n [attr.data-richtext-action]=\"button.actionId\"\n [attr.data-richtext-field]=\"button.fieldId\"\n [attr.aria-label]=\"button.ariaLabel\"\n [attr.aria-pressed]=\"button.pressed ?? null\"\n [attr.aria-haspopup]=\"button.popoverTarget ? 'dialog' : null\"\n [attr.popovertarget]=\"button.popoverTarget\"\n [tabIndex]=\"button.tabStop ?? 0\"\n [disabled]=\"button.disabled\"\n (mousedown)=\"preserveSelection($event)\"\n (click)=\"button.activate?.()\"\n >\n <ng-container *ngTemplateOutlet=\"contents\" />\n </button>\n}\n",
|
|
40
|
+
styles: [":host{display:contents}mat-icon{font-family:var(--kles-richtext-toolbar-material-icon-font, \"Material Icons\")}button[matIconButton][aria-pressed=true]{--mat-icon-button-icon-color: var(--mat-sys-on-secondary-container);background-color:var(--mat-sys-secondary-container)}\n"],
|
|
41
|
+
dependencies: [
|
|
42
|
+
{
|
|
43
|
+
kind: "component",
|
|
44
|
+
type: MatButton,
|
|
45
|
+
selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ",
|
|
46
|
+
inputs: ["matButton"],
|
|
47
|
+
exportAs: ["matButton", "matAnchor"]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
kind: "component",
|
|
51
|
+
type: MatIconButton,
|
|
52
|
+
selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]",
|
|
53
|
+
exportAs: ["matButton", "matAnchor"]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
kind: "component",
|
|
57
|
+
type: MatIcon,
|
|
58
|
+
selector: "mat-icon",
|
|
59
|
+
inputs: [
|
|
60
|
+
"color",
|
|
61
|
+
"inline",
|
|
62
|
+
"svgIcon",
|
|
63
|
+
"fontSet",
|
|
64
|
+
"fontIcon"
|
|
65
|
+
],
|
|
66
|
+
exportAs: ["matIcon"]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
kind: "directive",
|
|
70
|
+
type: NgTemplateOutlet,
|
|
71
|
+
selector: "[ngTemplateOutlet]",
|
|
72
|
+
inputs: [
|
|
73
|
+
"ngTemplateOutletContext",
|
|
74
|
+
"ngTemplateOutlet",
|
|
75
|
+
"ngTemplateOutletInjector"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
83
|
+
minVersion: "12.0.0",
|
|
84
|
+
version: "22.2.6",
|
|
85
|
+
ngImport: i0,
|
|
86
|
+
type: RichTextMaterialToolbarButtonComponent,
|
|
87
|
+
decorators: [{
|
|
88
|
+
type: Component,
|
|
89
|
+
args: [{
|
|
90
|
+
selector: "kles-richtext-material-toolbar-button",
|
|
91
|
+
imports: [
|
|
92
|
+
MatButton,
|
|
93
|
+
MatIconButton,
|
|
94
|
+
MatIcon,
|
|
95
|
+
NgTemplateOutlet
|
|
96
|
+
],
|
|
97
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
98
|
+
template: "@let button = control();\n<ng-template #contents>\n @if (button.content; as content) {\n <ng-container [ngTemplateOutlet]=\"content.template\" [ngTemplateOutletContext]=\"content.context\" />\n } @else {\n @if (button.iconType === 'material' && button.icon) {\n <mat-icon aria-hidden=\"true\">{{ button.icon }}</mat-icon>\n } @else if (button.icon) {\n <span aria-hidden=\"true\">{{ button.icon }}</span>\n }\n {{ button.label }}\n }\n</ng-template>\n\n@if (!button.label && button.icon && !button.content) {\n <button\n matIconButton\n type=\"button\"\n [attr.data-richtext-action]=\"button.actionId\"\n [attr.data-richtext-field]=\"button.fieldId\"\n [attr.aria-label]=\"button.ariaLabel\"\n [attr.aria-pressed]=\"button.pressed ?? null\"\n [attr.aria-haspopup]=\"button.popoverTarget ? 'dialog' : null\"\n [attr.popovertarget]=\"button.popoverTarget\"\n [title]=\"button.ariaLabel\"\n [tabIndex]=\"button.tabStop ?? 0\"\n [disabled]=\"button.disabled\"\n (mousedown)=\"preserveSelection($event)\"\n (click)=\"button.activate?.()\"\n >\n <ng-container *ngTemplateOutlet=\"contents\" />\n </button>\n} @else {\n <button\n [matButton]=\"button.pressed ? 'tonal' : 'text'\"\n type=\"button\"\n [attr.data-richtext-action]=\"button.actionId\"\n [attr.data-richtext-field]=\"button.fieldId\"\n [attr.aria-label]=\"button.ariaLabel\"\n [attr.aria-pressed]=\"button.pressed ?? null\"\n [attr.aria-haspopup]=\"button.popoverTarget ? 'dialog' : null\"\n [attr.popovertarget]=\"button.popoverTarget\"\n [tabIndex]=\"button.tabStop ?? 0\"\n [disabled]=\"button.disabled\"\n (mousedown)=\"preserveSelection($event)\"\n (click)=\"button.activate?.()\"\n >\n <ng-container *ngTemplateOutlet=\"contents\" />\n </button>\n}\n",
|
|
99
|
+
styles: [":host{display:contents}mat-icon{font-family:var(--kles-richtext-toolbar-material-icon-font, \"Material Icons\")}button[matIconButton][aria-pressed=true]{--mat-icon-button-icon-color: var(--mat-sys-on-secondary-container);background-color:var(--mat-sys-secondary-container)}\n"]
|
|
100
|
+
}]
|
|
101
|
+
}],
|
|
102
|
+
propDecorators: { control: [{
|
|
103
|
+
type: i0.Input,
|
|
104
|
+
args: [{
|
|
105
|
+
isSignal: true,
|
|
106
|
+
alias: "control",
|
|
107
|
+
required: true
|
|
108
|
+
}]
|
|
109
|
+
}] }
|
|
110
|
+
});
|
|
111
|
+
var RichTextMaterialToolbarColorComponent = class RichTextMaterialToolbarColorComponent {
|
|
112
|
+
control = input.required(...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
|
|
113
|
+
open = signal(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
114
|
+
panel = viewChild("panel", ...ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []);
|
|
115
|
+
constructor() {
|
|
116
|
+
effect(() => {
|
|
117
|
+
const panel = this.panel()?.nativeElement;
|
|
118
|
+
if (this.control().disabled && panel?.matches(":popover-open")) panel.hidePopover();
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
preserveSelection(event) {
|
|
122
|
+
if (event.button === 0) event.preventDefault();
|
|
123
|
+
}
|
|
124
|
+
syncPopover(panel) {
|
|
125
|
+
this.open.set(panel.matches(":popover-open"));
|
|
126
|
+
}
|
|
127
|
+
cancel(panel, trigger, event) {
|
|
128
|
+
if (event instanceof KeyboardEvent && event.isComposing) return;
|
|
129
|
+
event?.preventDefault();
|
|
130
|
+
event?.stopPropagation();
|
|
131
|
+
trigger.focus("program", { preventScroll: true });
|
|
132
|
+
panel.hidePopover();
|
|
133
|
+
}
|
|
134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
135
|
+
minVersion: "12.0.0",
|
|
136
|
+
version: "22.2.6",
|
|
137
|
+
ngImport: i0,
|
|
138
|
+
type: RichTextMaterialToolbarColorComponent,
|
|
139
|
+
deps: [],
|
|
140
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
141
|
+
});
|
|
142
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
143
|
+
minVersion: "17.0.0",
|
|
144
|
+
version: "22.2.6",
|
|
145
|
+
type: RichTextMaterialToolbarColorComponent,
|
|
146
|
+
isStandalone: true,
|
|
147
|
+
selector: "kles-richtext-material-toolbar-color",
|
|
148
|
+
inputs: { control: {
|
|
149
|
+
classPropertyName: "control",
|
|
150
|
+
publicName: "control",
|
|
151
|
+
isSignal: true,
|
|
152
|
+
isRequired: true,
|
|
153
|
+
transformFunction: null
|
|
154
|
+
} },
|
|
155
|
+
viewQueries: [{
|
|
156
|
+
propertyName: "panel",
|
|
157
|
+
first: true,
|
|
158
|
+
predicate: ["panel"],
|
|
159
|
+
descendants: true,
|
|
160
|
+
isSignal: true
|
|
161
|
+
}],
|
|
162
|
+
ngImport: i0,
|
|
163
|
+
template: "@let color = control();\n<div class=\"color-field\" [attr.data-richtext-field]=\"color.id\">\n <button\n matIconButton\n #trigger\n type=\"button\"\n [disabled]=\"color.disabled\"\n [attr.aria-label]=\"color.ariaLabel\"\n [title]=\"color.label\"\n [attr.popovertarget]=\"color.popoverId\"\n aria-haspopup=\"dialog\"\n (mousedown)=\"preserveSelection($event)\"\n >\n <mat-icon [style.border-block-end-color]=\"color.value || null\">\n {{ color.id === 'color' ? 'format_color_text' : 'format_color_fill' }}\n </mat-icon>\n </button>\n @if (color.value !== undefined) {\n <button\n matIconButton\n type=\"button\"\n [disabled]=\"color.disabled\"\n [attr.aria-label]=\"color.resetLabel\"\n [title]=\"color.resetLabel\"\n (mousedown)=\"preserveSelection($event)\"\n (click)=\"color.change('')\"\n >\n <mat-icon>close</mat-icon>\n </button>\n }\n</div>\n<div\n #panel\n [id]=\"color.popoverId\"\n class=\"color-panel\"\n role=\"dialog\"\n [attr.aria-label]=\"color.ariaLabel\"\n popover=\"auto\"\n tabindex=\"-1\"\n autofocus\n (toggle)=\"syncPopover(panel)\"\n (keydown.escape)=\"cancel(panel, trigger, $event)\"\n>\n @if (open()) {\n <kles-material-color-picker-panel\n [color]=\"color.value ?? color.fallback\"\n [fallbackColor]=\"color.fallback\"\n [disabled]=\"color.disabled\"\n commitMode=\"apply\"\n outputFormat=\"hex8\"\n (colorChange)=\"color.change($event)\"\n (applied)=\"panel.hidePopover()\"\n (cancelled)=\"cancel(panel, trigger)\"\n />\n }\n</div>\n",
|
|
164
|
+
styles: [":host{display:contents}.color-field{display:inline-flex;align-items:center}mat-icon{font-family:var(--kles-richtext-toolbar-material-icon-font, \"Material Icons\");border-block-end:.15em solid transparent}.color-panel{max-inline-size:calc(100vw - 1rem);max-block-size:calc(100dvh - 1rem);overflow:auto;border:none;padding:0;background-color:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface);border-radius:var(--mat-sys-corner-medium);box-shadow:var(--mat-sys-level3)}@supports (position-area: block-end span-inline-end){.color-panel{inset:auto;margin:.25rem 0;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,flip-block flip-inline}}\n"],
|
|
165
|
+
dependencies: [
|
|
166
|
+
{
|
|
167
|
+
kind: "component",
|
|
168
|
+
type: MatIconButton,
|
|
169
|
+
selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]",
|
|
170
|
+
exportAs: ["matButton", "matAnchor"]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
kind: "component",
|
|
174
|
+
type: MatIcon,
|
|
175
|
+
selector: "mat-icon",
|
|
176
|
+
inputs: [
|
|
177
|
+
"color",
|
|
178
|
+
"inline",
|
|
179
|
+
"svgIcon",
|
|
180
|
+
"fontSet",
|
|
181
|
+
"fontIcon"
|
|
182
|
+
],
|
|
183
|
+
exportAs: ["matIcon"]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
kind: "component",
|
|
187
|
+
type: MaterialColorPickerPanelComponent,
|
|
188
|
+
selector: "kles-material-color-picker-panel",
|
|
189
|
+
inputs: [
|
|
190
|
+
"color",
|
|
191
|
+
"outputFormat",
|
|
192
|
+
"commitMode",
|
|
193
|
+
"alpha",
|
|
194
|
+
"eyeDropper",
|
|
195
|
+
"disabled",
|
|
196
|
+
"fallbackColor",
|
|
197
|
+
"presets"
|
|
198
|
+
],
|
|
199
|
+
outputs: [
|
|
200
|
+
"draftChange",
|
|
201
|
+
"colorChange",
|
|
202
|
+
"applied",
|
|
203
|
+
"cancelled"
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
208
|
+
});
|
|
209
|
+
};
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
211
|
+
minVersion: "12.0.0",
|
|
212
|
+
version: "22.2.6",
|
|
213
|
+
ngImport: i0,
|
|
214
|
+
type: RichTextMaterialToolbarColorComponent,
|
|
215
|
+
decorators: [{
|
|
216
|
+
type: Component,
|
|
217
|
+
args: [{
|
|
218
|
+
selector: "kles-richtext-material-toolbar-color",
|
|
219
|
+
imports: [
|
|
220
|
+
MatIconButton,
|
|
221
|
+
MatIcon,
|
|
222
|
+
MaterialColorPickerPanelComponent
|
|
223
|
+
],
|
|
224
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
225
|
+
template: "@let color = control();\n<div class=\"color-field\" [attr.data-richtext-field]=\"color.id\">\n <button\n matIconButton\n #trigger\n type=\"button\"\n [disabled]=\"color.disabled\"\n [attr.aria-label]=\"color.ariaLabel\"\n [title]=\"color.label\"\n [attr.popovertarget]=\"color.popoverId\"\n aria-haspopup=\"dialog\"\n (mousedown)=\"preserveSelection($event)\"\n >\n <mat-icon [style.border-block-end-color]=\"color.value || null\">\n {{ color.id === 'color' ? 'format_color_text' : 'format_color_fill' }}\n </mat-icon>\n </button>\n @if (color.value !== undefined) {\n <button\n matIconButton\n type=\"button\"\n [disabled]=\"color.disabled\"\n [attr.aria-label]=\"color.resetLabel\"\n [title]=\"color.resetLabel\"\n (mousedown)=\"preserveSelection($event)\"\n (click)=\"color.change('')\"\n >\n <mat-icon>close</mat-icon>\n </button>\n }\n</div>\n<div\n #panel\n [id]=\"color.popoverId\"\n class=\"color-panel\"\n role=\"dialog\"\n [attr.aria-label]=\"color.ariaLabel\"\n popover=\"auto\"\n tabindex=\"-1\"\n autofocus\n (toggle)=\"syncPopover(panel)\"\n (keydown.escape)=\"cancel(panel, trigger, $event)\"\n>\n @if (open()) {\n <kles-material-color-picker-panel\n [color]=\"color.value ?? color.fallback\"\n [fallbackColor]=\"color.fallback\"\n [disabled]=\"color.disabled\"\n commitMode=\"apply\"\n outputFormat=\"hex8\"\n (colorChange)=\"color.change($event)\"\n (applied)=\"panel.hidePopover()\"\n (cancelled)=\"cancel(panel, trigger)\"\n />\n }\n</div>\n",
|
|
226
|
+
styles: [":host{display:contents}.color-field{display:inline-flex;align-items:center}mat-icon{font-family:var(--kles-richtext-toolbar-material-icon-font, \"Material Icons\");border-block-end:.15em solid transparent}.color-panel{max-inline-size:calc(100vw - 1rem);max-block-size:calc(100dvh - 1rem);overflow:auto;border:none;padding:0;background-color:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface);border-radius:var(--mat-sys-corner-medium);box-shadow:var(--mat-sys-level3)}@supports (position-area: block-end span-inline-end){.color-panel{inset:auto;margin:.25rem 0;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,flip-block flip-inline}}\n"]
|
|
227
|
+
}]
|
|
228
|
+
}],
|
|
229
|
+
ctorParameters: () => [],
|
|
230
|
+
propDecorators: {
|
|
231
|
+
control: [{
|
|
232
|
+
type: i0.Input,
|
|
233
|
+
args: [{
|
|
234
|
+
isSignal: true,
|
|
235
|
+
alias: "control",
|
|
236
|
+
required: true
|
|
237
|
+
}]
|
|
238
|
+
}],
|
|
239
|
+
panel: [{
|
|
240
|
+
type: i0.ViewChild,
|
|
241
|
+
args: ["panel", { isSignal: true }]
|
|
242
|
+
}]
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
var RichTextMaterialToolbarFieldComponent = class RichTextMaterialToolbarFieldComponent {
|
|
246
|
+
control = input.required(...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
|
|
247
|
+
errorStateMatcher = { isErrorState: () => {
|
|
248
|
+
const field = this.control();
|
|
249
|
+
return field.kind === "link" && field.invalid;
|
|
250
|
+
} };
|
|
251
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
252
|
+
minVersion: "12.0.0",
|
|
253
|
+
version: "22.2.6",
|
|
254
|
+
ngImport: i0,
|
|
255
|
+
type: RichTextMaterialToolbarFieldComponent,
|
|
256
|
+
deps: [],
|
|
257
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
258
|
+
});
|
|
259
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
260
|
+
minVersion: "17.0.0",
|
|
261
|
+
version: "22.2.6",
|
|
262
|
+
type: RichTextMaterialToolbarFieldComponent,
|
|
263
|
+
isStandalone: true,
|
|
264
|
+
selector: "kles-richtext-material-toolbar-field",
|
|
265
|
+
inputs: { control: {
|
|
266
|
+
classPropertyName: "control",
|
|
267
|
+
publicName: "control",
|
|
268
|
+
isSignal: true,
|
|
269
|
+
isRequired: true,
|
|
270
|
+
transformFunction: null
|
|
271
|
+
} },
|
|
272
|
+
host: { properties: { "class.link-field": "control().kind === \"link\"" } },
|
|
273
|
+
ngImport: i0,
|
|
274
|
+
template: "@let field = control();\n<mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" [attr.data-richtext-field]=\"field.id\">\n <mat-label>{{ field.label }}</mat-label>\n @if (field.kind === 'link') {\n <input\n #url\n matInput\n type=\"text\"\n inputmode=\"url\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [attr.aria-label]=\"field.ariaLabel\"\n [aria-describedby]=\"field.invalid ? field.errorId : ''\"\n [disabled]=\"field.disabled\"\n [value]=\"field.value\"\n (input)=\"field.change(url.value)\"\n (keydown.enter)=\"field.submit($event)\"\n />\n } @else {\n <select\n #choice\n matNativeControl\n [attr.aria-label]=\"field.ariaLabel\"\n [disabled]=\"field.disabled\"\n (change)=\"field.change(choice.value)\"\n >\n @for (option of field.options; track option.value) {\n <option\n [value]=\"option.value\"\n [selected]=\"option.value === field.value\"\n [disabled]=\"option.disabled ?? false\"\n >\n {{ option.label }}\n </option>\n }\n </select>\n }\n</mat-form-field>\n",
|
|
275
|
+
styles: [":host{display:block;min-inline-size:0}:host(.link-field){flex:1 1 14rem;max-inline-size:28rem}mat-form-field{inline-size:100%}\n"],
|
|
276
|
+
dependencies: [
|
|
277
|
+
{
|
|
278
|
+
kind: "component",
|
|
279
|
+
type: MatFormField,
|
|
280
|
+
selector: "mat-form-field",
|
|
281
|
+
inputs: [
|
|
282
|
+
"hideRequiredMarker",
|
|
283
|
+
"color",
|
|
284
|
+
"floatLabel",
|
|
285
|
+
"appearance",
|
|
286
|
+
"subscriptSizing",
|
|
287
|
+
"hintLabel"
|
|
288
|
+
],
|
|
289
|
+
exportAs: ["matFormField"]
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
kind: "directive",
|
|
293
|
+
type: MatLabel,
|
|
294
|
+
selector: "mat-label"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
kind: "directive",
|
|
298
|
+
type: MatInput,
|
|
299
|
+
selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]",
|
|
300
|
+
inputs: [
|
|
301
|
+
"disabled",
|
|
302
|
+
"id",
|
|
303
|
+
"placeholder",
|
|
304
|
+
"name",
|
|
305
|
+
"required",
|
|
306
|
+
"type",
|
|
307
|
+
"errorStateMatcher",
|
|
308
|
+
"aria-describedby",
|
|
309
|
+
"value",
|
|
310
|
+
"readonly",
|
|
311
|
+
"disabledInteractive"
|
|
312
|
+
],
|
|
313
|
+
exportAs: ["matInput"]
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
317
|
+
});
|
|
318
|
+
};
|
|
319
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
320
|
+
minVersion: "12.0.0",
|
|
321
|
+
version: "22.2.6",
|
|
322
|
+
ngImport: i0,
|
|
323
|
+
type: RichTextMaterialToolbarFieldComponent,
|
|
324
|
+
decorators: [{
|
|
325
|
+
type: Component,
|
|
326
|
+
args: [{
|
|
327
|
+
selector: "kles-richtext-material-toolbar-field",
|
|
328
|
+
imports: [
|
|
329
|
+
MatFormField,
|
|
330
|
+
MatLabel,
|
|
331
|
+
MatInput
|
|
332
|
+
],
|
|
333
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
334
|
+
host: { "[class.link-field]": "control().kind === \"link\"" },
|
|
335
|
+
template: "@let field = control();\n<mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" [attr.data-richtext-field]=\"field.id\">\n <mat-label>{{ field.label }}</mat-label>\n @if (field.kind === 'link') {\n <input\n #url\n matInput\n type=\"text\"\n inputmode=\"url\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [attr.aria-label]=\"field.ariaLabel\"\n [aria-describedby]=\"field.invalid ? field.errorId : ''\"\n [disabled]=\"field.disabled\"\n [value]=\"field.value\"\n (input)=\"field.change(url.value)\"\n (keydown.enter)=\"field.submit($event)\"\n />\n } @else {\n <select\n #choice\n matNativeControl\n [attr.aria-label]=\"field.ariaLabel\"\n [disabled]=\"field.disabled\"\n (change)=\"field.change(choice.value)\"\n >\n @for (option of field.options; track option.value) {\n <option\n [value]=\"option.value\"\n [selected]=\"option.value === field.value\"\n [disabled]=\"option.disabled ?? false\"\n >\n {{ option.label }}\n </option>\n }\n </select>\n }\n</mat-form-field>\n",
|
|
336
|
+
styles: [":host{display:block;min-inline-size:0}:host(.link-field){flex:1 1 14rem;max-inline-size:28rem}mat-form-field{inline-size:100%}\n"]
|
|
337
|
+
}]
|
|
338
|
+
}],
|
|
339
|
+
propDecorators: { control: [{
|
|
340
|
+
type: i0.Input,
|
|
341
|
+
args: [{
|
|
342
|
+
isSignal: true,
|
|
343
|
+
alias: "control",
|
|
344
|
+
required: true
|
|
345
|
+
}]
|
|
346
|
+
}] }
|
|
347
|
+
});
|
|
348
|
+
var RichTextMaterialToolbarMenuComponent = class RichTextMaterialToolbarMenuComponent {
|
|
349
|
+
control = input.required(...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
|
|
350
|
+
list = viewChild(MatSelectionList, ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
|
|
351
|
+
choose(event) {
|
|
352
|
+
const value = event.options[0]?.value;
|
|
353
|
+
const menu = this.control();
|
|
354
|
+
const item = menu.groups.flatMap((group) => group.items).find((item) => item === value);
|
|
355
|
+
if (item) menu.choose(item);
|
|
356
|
+
}
|
|
357
|
+
focusResults(event) {
|
|
358
|
+
event.preventDefault();
|
|
359
|
+
this.list()?.options.find((option) => !option.disabled)?.focus();
|
|
360
|
+
}
|
|
361
|
+
chooseFirst(event) {
|
|
362
|
+
event.preventDefault();
|
|
363
|
+
const menu = this.control();
|
|
364
|
+
const item = menu.groups.flatMap((group) => group.items).find((item) => !item.disabled);
|
|
365
|
+
if (item) menu.choose(item);
|
|
366
|
+
}
|
|
367
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
368
|
+
minVersion: "12.0.0",
|
|
369
|
+
version: "22.2.6",
|
|
370
|
+
ngImport: i0,
|
|
371
|
+
type: RichTextMaterialToolbarMenuComponent,
|
|
372
|
+
deps: [],
|
|
373
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
374
|
+
});
|
|
375
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
376
|
+
minVersion: "17.0.0",
|
|
377
|
+
version: "22.2.6",
|
|
378
|
+
type: RichTextMaterialToolbarMenuComponent,
|
|
379
|
+
isStandalone: true,
|
|
380
|
+
selector: "kles-richtext-material-toolbar-menu",
|
|
381
|
+
inputs: { control: {
|
|
382
|
+
classPropertyName: "control",
|
|
383
|
+
publicName: "control",
|
|
384
|
+
isSignal: true,
|
|
385
|
+
isRequired: true,
|
|
386
|
+
transformFunction: null
|
|
387
|
+
} },
|
|
388
|
+
viewQueries: [{
|
|
389
|
+
propertyName: "list",
|
|
390
|
+
first: true,
|
|
391
|
+
predicate: MatSelectionList,
|
|
392
|
+
descendants: true,
|
|
393
|
+
isSignal: true
|
|
394
|
+
}],
|
|
395
|
+
ngImport: i0,
|
|
396
|
+
template: "@let menu = control();\n<div class=\"menu\">\n <mat-form-field class=\"menu-search\" appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ menu.searchLabel }}</mat-label>\n <input\n #query\n matInput\n type=\"search\"\n autofocus\n [value]=\"menu.query\"\n [attr.aria-label]=\"menu.searchLabel\"\n (input)=\"menu.search(query.value)\"\n (keydown.arrowdown)=\"focusResults($event)\"\n (keydown.enter)=\"chooseFirst($event)\"\n />\n </mat-form-field>\n @if (menu.open) {\n @if (menu.groups.length) {\n <mat-selection-list\n class=\"menu-list\"\n [multiple]=\"false\"\n [hideSingleSelectionIndicator]=\"true\"\n [attr.aria-label]=\"menu.label\"\n (selectionChange)=\"choose($event)\"\n >\n @for (group of menu.groups; track group.id) {\n <div [attr.role]=\"group.label ? 'group' : null\" [attr.aria-label]=\"group.label || null\">\n @if (group.label) {\n <div mat-subheader aria-hidden=\"true\">{{ group.label }}</div>\n }\n @for (item of group.items; track item.id) {\n <mat-list-option\n [attr.data-richtext-menu-command]=\"item.id\"\n [value]=\"item\"\n [disabled]=\"item.disabled ?? false\"\n >\n {{ item.label }}\n </mat-list-option>\n }\n </div>\n }\n </mat-selection-list>\n } @else {\n <div class=\"menu-empty\" role=\"status\">{{ menu.noResults }}</div>\n }\n }\n</div>\n",
|
|
397
|
+
styles: [".menu{display:flex;flex-direction:column;max-block-size:min(24rem,55dvh);border-radius:var(--mat-sys-corner-medium);background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface);box-shadow:var(--mat-sys-level2)}.menu-search{box-sizing:border-box;inline-size:100%;padding:.5rem .5rem 0;flex:none}.menu-list{min-block-size:0;overflow-y:auto}.menu-list [mat-subheader]{color:var(--mat-sys-on-surface);font:var(--mat-sys-title-small);font-weight:600;letter-spacing:var(--mat-sys-title-small-tracking)}.menu-list [role=group] mat-list-option{padding-inline-start:2rem}.menu-empty{padding:.75rem;color:var(--mat-sys-on-surface-variant)}\n"],
|
|
398
|
+
dependencies: [
|
|
399
|
+
{
|
|
400
|
+
kind: "component",
|
|
401
|
+
type: MatFormField,
|
|
402
|
+
selector: "mat-form-field",
|
|
403
|
+
inputs: [
|
|
404
|
+
"hideRequiredMarker",
|
|
405
|
+
"color",
|
|
406
|
+
"floatLabel",
|
|
407
|
+
"appearance",
|
|
408
|
+
"subscriptSizing",
|
|
409
|
+
"hintLabel"
|
|
410
|
+
],
|
|
411
|
+
exportAs: ["matFormField"]
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
kind: "directive",
|
|
415
|
+
type: MatLabel,
|
|
416
|
+
selector: "mat-label"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
kind: "directive",
|
|
420
|
+
type: MatInput,
|
|
421
|
+
selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]",
|
|
422
|
+
inputs: [
|
|
423
|
+
"disabled",
|
|
424
|
+
"id",
|
|
425
|
+
"placeholder",
|
|
426
|
+
"name",
|
|
427
|
+
"required",
|
|
428
|
+
"type",
|
|
429
|
+
"errorStateMatcher",
|
|
430
|
+
"aria-describedby",
|
|
431
|
+
"value",
|
|
432
|
+
"readonly",
|
|
433
|
+
"disabledInteractive"
|
|
434
|
+
],
|
|
435
|
+
exportAs: ["matInput"]
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
kind: "ngmodule",
|
|
439
|
+
type: MatListModule
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
kind: "component",
|
|
443
|
+
type: i1.MatSelectionList,
|
|
444
|
+
selector: "mat-selection-list",
|
|
445
|
+
inputs: [
|
|
446
|
+
"color",
|
|
447
|
+
"compareWith",
|
|
448
|
+
"multiple",
|
|
449
|
+
"hideSingleSelectionIndicator",
|
|
450
|
+
"disabled"
|
|
451
|
+
],
|
|
452
|
+
outputs: ["selectionChange"],
|
|
453
|
+
exportAs: ["matSelectionList"]
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
kind: "component",
|
|
457
|
+
type: i1.MatListOption,
|
|
458
|
+
selector: "mat-list-option",
|
|
459
|
+
inputs: [
|
|
460
|
+
"togglePosition",
|
|
461
|
+
"color",
|
|
462
|
+
"value",
|
|
463
|
+
"selected"
|
|
464
|
+
],
|
|
465
|
+
outputs: ["selectedChange"],
|
|
466
|
+
exportAs: ["matListOption"]
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
kind: "directive",
|
|
470
|
+
type: i1.MatListSubheaderCssMatStyler,
|
|
471
|
+
selector: "[mat-subheader], [matSubheader]"
|
|
472
|
+
}
|
|
473
|
+
],
|
|
474
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
475
|
+
});
|
|
476
|
+
};
|
|
477
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
478
|
+
minVersion: "12.0.0",
|
|
479
|
+
version: "22.2.6",
|
|
480
|
+
ngImport: i0,
|
|
481
|
+
type: RichTextMaterialToolbarMenuComponent,
|
|
482
|
+
decorators: [{
|
|
483
|
+
type: Component,
|
|
484
|
+
args: [{
|
|
485
|
+
selector: "kles-richtext-material-toolbar-menu",
|
|
486
|
+
imports: [
|
|
487
|
+
MatFormField,
|
|
488
|
+
MatLabel,
|
|
489
|
+
MatInput,
|
|
490
|
+
MatListModule
|
|
491
|
+
],
|
|
492
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
493
|
+
template: "@let menu = control();\n<div class=\"menu\">\n <mat-form-field class=\"menu-search\" appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ menu.searchLabel }}</mat-label>\n <input\n #query\n matInput\n type=\"search\"\n autofocus\n [value]=\"menu.query\"\n [attr.aria-label]=\"menu.searchLabel\"\n (input)=\"menu.search(query.value)\"\n (keydown.arrowdown)=\"focusResults($event)\"\n (keydown.enter)=\"chooseFirst($event)\"\n />\n </mat-form-field>\n @if (menu.open) {\n @if (menu.groups.length) {\n <mat-selection-list\n class=\"menu-list\"\n [multiple]=\"false\"\n [hideSingleSelectionIndicator]=\"true\"\n [attr.aria-label]=\"menu.label\"\n (selectionChange)=\"choose($event)\"\n >\n @for (group of menu.groups; track group.id) {\n <div [attr.role]=\"group.label ? 'group' : null\" [attr.aria-label]=\"group.label || null\">\n @if (group.label) {\n <div mat-subheader aria-hidden=\"true\">{{ group.label }}</div>\n }\n @for (item of group.items; track item.id) {\n <mat-list-option\n [attr.data-richtext-menu-command]=\"item.id\"\n [value]=\"item\"\n [disabled]=\"item.disabled ?? false\"\n >\n {{ item.label }}\n </mat-list-option>\n }\n </div>\n }\n </mat-selection-list>\n } @else {\n <div class=\"menu-empty\" role=\"status\">{{ menu.noResults }}</div>\n }\n }\n</div>\n",
|
|
494
|
+
styles: [".menu{display:flex;flex-direction:column;max-block-size:min(24rem,55dvh);border-radius:var(--mat-sys-corner-medium);background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface);box-shadow:var(--mat-sys-level2)}.menu-search{box-sizing:border-box;inline-size:100%;padding:.5rem .5rem 0;flex:none}.menu-list{min-block-size:0;overflow-y:auto}.menu-list [mat-subheader]{color:var(--mat-sys-on-surface);font:var(--mat-sys-title-small);font-weight:600;letter-spacing:var(--mat-sys-title-small-tracking)}.menu-list [role=group] mat-list-option{padding-inline-start:2rem}.menu-empty{padding:.75rem;color:var(--mat-sys-on-surface-variant)}\n"]
|
|
495
|
+
}]
|
|
496
|
+
}],
|
|
497
|
+
propDecorators: {
|
|
498
|
+
control: [{
|
|
499
|
+
type: i0.Input,
|
|
500
|
+
args: [{
|
|
501
|
+
isSignal: true,
|
|
502
|
+
alias: "control",
|
|
503
|
+
required: true
|
|
504
|
+
}]
|
|
505
|
+
}],
|
|
506
|
+
list: [{
|
|
507
|
+
type: i0.ViewChild,
|
|
508
|
+
args: [i0.forwardRef(() => MatSelectionList), { isSignal: true }]
|
|
509
|
+
}]
|
|
510
|
+
}
|
|
511
|
+
});
|
|
512
|
+
function provideRichTextMaterialToolbar(overrides = {}) {
|
|
513
|
+
return provideRichTextToolbarAppearance({
|
|
514
|
+
button: RichTextMaterialToolbarButtonComponent,
|
|
515
|
+
color: RichTextMaterialToolbarColorComponent,
|
|
516
|
+
field: RichTextMaterialToolbarFieldComponent,
|
|
517
|
+
menu: RichTextMaterialToolbarMenuComponent,
|
|
518
|
+
...overrides
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
export { provideRichTextMaterialToolbar };
|
|
522
|
+
|
|
523
|
+
//# sourceMappingURL=3kles-kles-richtext-editor-material.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3kles-kles-richtext-editor-material.mjs","names":[],"sources":["../../../projects/kles-richtext-editor/material/src/material-toolbar-button.component.ts","../../../projects/kles-richtext-editor/material/src/material-toolbar-button.component.html","../../../projects/kles-richtext-editor/material/src/material-toolbar-color.component.ts","../../../projects/kles-richtext-editor/material/src/material-toolbar-color.component.html","../../../projects/kles-richtext-editor/material/src/material-toolbar-field.component.ts","../../../projects/kles-richtext-editor/material/src/material-toolbar-field.component.html","../../../projects/kles-richtext-editor/material/src/material-toolbar-menu.component.ts","../../../projects/kles-richtext-editor/material/src/material-toolbar-menu.component.html","../../../projects/kles-richtext-editor/material/src/public-api.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { MatButton, MatIconButton } from '@angular/material/button';\nimport { MatIcon } from '@angular/material/icon';\nimport type { RichTextToolbarButtonControl } from '@3kles/kles-richtext-editor';\n\n@Component({\n selector: 'kles-richtext-material-toolbar-button',\n imports: [MatButton, MatIconButton, MatIcon, NgTemplateOutlet],\n templateUrl: './material-toolbar-button.component.html',\n styleUrl: './material-toolbar-button.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class RichTextMaterialToolbarButtonComponent {\n readonly control = input.required<RichTextToolbarButtonControl>();\n\n protected preserveSelection(event: MouseEvent): void {\n if (event.button === 0) event.preventDefault();\n }\n}\n","@let button = control();\n<ng-template #contents>\n @if (button.content; as content) {\n <ng-container [ngTemplateOutlet]=\"content.template\" [ngTemplateOutletContext]=\"content.context\" />\n } @else {\n @if (button.iconType === 'material' && button.icon) {\n <mat-icon aria-hidden=\"true\">{{ button.icon }}</mat-icon>\n } @else if (button.icon) {\n <span aria-hidden=\"true\">{{ button.icon }}</span>\n }\n {{ button.label }}\n }\n</ng-template>\n\n@if (!button.label && button.icon && !button.content) {\n <button\n matIconButton\n type=\"button\"\n [attr.data-richtext-action]=\"button.actionId\"\n [attr.data-richtext-field]=\"button.fieldId\"\n [attr.aria-label]=\"button.ariaLabel\"\n [attr.aria-pressed]=\"button.pressed ?? null\"\n [attr.aria-haspopup]=\"button.popoverTarget ? 'dialog' : null\"\n [attr.popovertarget]=\"button.popoverTarget\"\n [title]=\"button.ariaLabel\"\n [tabIndex]=\"button.tabStop ?? 0\"\n [disabled]=\"button.disabled\"\n (mousedown)=\"preserveSelection($event)\"\n (click)=\"button.activate?.()\"\n >\n <ng-container *ngTemplateOutlet=\"contents\" />\n </button>\n} @else {\n <button\n [matButton]=\"button.pressed ? 'tonal' : 'text'\"\n type=\"button\"\n [attr.data-richtext-action]=\"button.actionId\"\n [attr.data-richtext-field]=\"button.fieldId\"\n [attr.aria-label]=\"button.ariaLabel\"\n [attr.aria-pressed]=\"button.pressed ?? null\"\n [attr.aria-haspopup]=\"button.popoverTarget ? 'dialog' : null\"\n [attr.popovertarget]=\"button.popoverTarget\"\n [tabIndex]=\"button.tabStop ?? 0\"\n [disabled]=\"button.disabled\"\n (mousedown)=\"preserveSelection($event)\"\n (click)=\"button.activate?.()\"\n >\n <ng-container *ngTemplateOutlet=\"contents\" />\n </button>\n}\n","import { ChangeDetectionStrategy, Component, effect, input, signal, viewChild } from '@angular/core';\nimport type { ElementRef } from '@angular/core';\nimport { MatIconButton } from '@angular/material/button';\nimport { MatIcon } from '@angular/material/icon';\nimport { MaterialColorPickerPanelComponent } from '@3kles/kles-material-color-picker';\nimport type { RichTextToolbarColorControl } from '@3kles/kles-richtext-editor';\n\n@Component({\n selector: 'kles-richtext-material-toolbar-color',\n imports: [MatIconButton, MatIcon, MaterialColorPickerPanelComponent],\n templateUrl: './material-toolbar-color.component.html',\n styleUrl: './material-toolbar-color.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class RichTextMaterialToolbarColorComponent {\n readonly control = input.required<RichTextToolbarColorControl>();\n protected readonly open = signal(false);\n private readonly panel = viewChild<ElementRef<HTMLElement>>('panel');\n\n constructor() {\n effect(() => {\n const panel = this.panel()?.nativeElement;\n if (this.control().disabled && panel?.matches(':popover-open')) panel.hidePopover();\n });\n }\n\n protected preserveSelection(event: MouseEvent): void {\n if (event.button === 0) event.preventDefault();\n }\n\n protected syncPopover(panel: HTMLElement): void {\n this.open.set(panel.matches(':popover-open'));\n }\n\n protected cancel(panel: HTMLElement, trigger: MatIconButton, event?: Event): void {\n if (event instanceof KeyboardEvent && event.isComposing) return;\n event?.preventDefault();\n event?.stopPropagation();\n trigger.focus('program', { preventScroll: true });\n panel.hidePopover();\n }\n}\n","@let color = control();\n<div class=\"color-field\" [attr.data-richtext-field]=\"color.id\">\n <button\n matIconButton\n #trigger\n type=\"button\"\n [disabled]=\"color.disabled\"\n [attr.aria-label]=\"color.ariaLabel\"\n [title]=\"color.label\"\n [attr.popovertarget]=\"color.popoverId\"\n aria-haspopup=\"dialog\"\n (mousedown)=\"preserveSelection($event)\"\n >\n <mat-icon [style.border-block-end-color]=\"color.value || null\">\n {{ color.id === 'color' ? 'format_color_text' : 'format_color_fill' }}\n </mat-icon>\n </button>\n @if (color.value !== undefined) {\n <button\n matIconButton\n type=\"button\"\n [disabled]=\"color.disabled\"\n [attr.aria-label]=\"color.resetLabel\"\n [title]=\"color.resetLabel\"\n (mousedown)=\"preserveSelection($event)\"\n (click)=\"color.change('')\"\n >\n <mat-icon>close</mat-icon>\n </button>\n }\n</div>\n<div\n #panel\n [id]=\"color.popoverId\"\n class=\"color-panel\"\n role=\"dialog\"\n [attr.aria-label]=\"color.ariaLabel\"\n popover=\"auto\"\n tabindex=\"-1\"\n autofocus\n (toggle)=\"syncPopover(panel)\"\n (keydown.escape)=\"cancel(panel, trigger, $event)\"\n>\n @if (open()) {\n <kles-material-color-picker-panel\n [color]=\"color.value ?? color.fallback\"\n [fallbackColor]=\"color.fallback\"\n [disabled]=\"color.disabled\"\n commitMode=\"apply\"\n outputFormat=\"hex8\"\n (colorChange)=\"color.change($event)\"\n (applied)=\"panel.hidePopover()\"\n (cancelled)=\"cancel(panel, trigger)\"\n />\n }\n</div>\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport type { ErrorStateMatcher } from '@angular/material/core';\nimport { MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport type { RichTextToolbarFieldControl } from '@3kles/kles-richtext-editor';\n\n@Component({\n selector: 'kles-richtext-material-toolbar-field',\n imports: [MatFormField, MatLabel, MatInput],\n templateUrl: './material-toolbar-field.component.html',\n styleUrl: './material-toolbar-field.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class.link-field]': 'control().kind === \"link\"' },\n})\nexport class RichTextMaterialToolbarFieldComponent {\n readonly control = input.required<RichTextToolbarFieldControl>();\n protected readonly errorStateMatcher: ErrorStateMatcher = {\n isErrorState: () => {\n const field = this.control();\n return field.kind === 'link' && field.invalid;\n },\n };\n}\n","@let field = control();\n<mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" [attr.data-richtext-field]=\"field.id\">\n <mat-label>{{ field.label }}</mat-label>\n @if (field.kind === 'link') {\n <input\n #url\n matInput\n type=\"text\"\n inputmode=\"url\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [attr.aria-label]=\"field.ariaLabel\"\n [aria-describedby]=\"field.invalid ? field.errorId : ''\"\n [disabled]=\"field.disabled\"\n [value]=\"field.value\"\n (input)=\"field.change(url.value)\"\n (keydown.enter)=\"field.submit($event)\"\n />\n } @else {\n <select\n #choice\n matNativeControl\n [attr.aria-label]=\"field.ariaLabel\"\n [disabled]=\"field.disabled\"\n (change)=\"field.change(choice.value)\"\n >\n @for (option of field.options; track option.value) {\n <option\n [value]=\"option.value\"\n [selected]=\"option.value === field.value\"\n [disabled]=\"option.disabled ?? false\"\n >\n {{ option.label }}\n </option>\n }\n </select>\n }\n</mat-form-field>\n","import { ChangeDetectionStrategy, Component, input, viewChild } from '@angular/core';\nimport { MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport { MatListModule, MatSelectionList } from '@angular/material/list';\nimport type { MatSelectionListChange } from '@angular/material/list';\nimport type { RichTextToolbarMenuControl } from '@3kles/kles-richtext-editor';\n\n@Component({\n selector: 'kles-richtext-material-toolbar-menu',\n imports: [MatFormField, MatLabel, MatInput, MatListModule],\n templateUrl: './material-toolbar-menu.component.html',\n styleUrl: './material-toolbar-menu.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class RichTextMaterialToolbarMenuComponent {\n readonly control = input.required<RichTextToolbarMenuControl>();\n private readonly list = viewChild(MatSelectionList);\n\n protected choose(event: MatSelectionListChange): void {\n const value: unknown = event.options[0]?.value;\n const menu = this.control();\n const item = menu.groups.flatMap((group) => group.items).find((item) => item === value);\n if (item) menu.choose(item);\n }\n\n protected focusResults(event: Event): void {\n event.preventDefault();\n this.list()\n ?.options.find((option) => !option.disabled)\n ?.focus();\n }\n\n protected chooseFirst(event: Event): void {\n event.preventDefault();\n const menu = this.control();\n const item = menu.groups.flatMap((group) => group.items).find((item) => !item.disabled);\n if (item) menu.choose(item);\n }\n}\n","@let menu = control();\n<div class=\"menu\">\n <mat-form-field class=\"menu-search\" appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ menu.searchLabel }}</mat-label>\n <input\n #query\n matInput\n type=\"search\"\n autofocus\n [value]=\"menu.query\"\n [attr.aria-label]=\"menu.searchLabel\"\n (input)=\"menu.search(query.value)\"\n (keydown.arrowdown)=\"focusResults($event)\"\n (keydown.enter)=\"chooseFirst($event)\"\n />\n </mat-form-field>\n @if (menu.open) {\n @if (menu.groups.length) {\n <mat-selection-list\n class=\"menu-list\"\n [multiple]=\"false\"\n [hideSingleSelectionIndicator]=\"true\"\n [attr.aria-label]=\"menu.label\"\n (selectionChange)=\"choose($event)\"\n >\n @for (group of menu.groups; track group.id) {\n <div [attr.role]=\"group.label ? 'group' : null\" [attr.aria-label]=\"group.label || null\">\n @if (group.label) {\n <div mat-subheader aria-hidden=\"true\">{{ group.label }}</div>\n }\n @for (item of group.items; track item.id) {\n <mat-list-option\n [attr.data-richtext-menu-command]=\"item.id\"\n [value]=\"item\"\n [disabled]=\"item.disabled ?? false\"\n >\n {{ item.label }}\n </mat-list-option>\n }\n </div>\n }\n </mat-selection-list>\n } @else {\n <div class=\"menu-empty\" role=\"status\">{{ menu.noResults }}</div>\n }\n }\n</div>\n","import { provideRichTextToolbarAppearance } from '@3kles/kles-richtext-editor';\nimport type { RichTextToolbarAppearance } from '@3kles/kles-richtext-editor';\nimport type { Provider } from '@angular/core';\nimport { RichTextMaterialToolbarButtonComponent } from './material-toolbar-button.component.js';\nimport { RichTextMaterialToolbarColorComponent } from './material-toolbar-color.component.js';\nimport { RichTextMaterialToolbarFieldComponent } from './material-toolbar-field.component.js';\nimport { RichTextMaterialToolbarMenuComponent } from './material-toolbar-menu.component.js';\n\n/** Display toolbar controls using the application's Angular Material theme. */\nexport function provideRichTextMaterialToolbar(overrides: RichTextToolbarAppearance = {}): Provider {\n return provideRichTextToolbarAppearance({\n button: RichTextMaterialToolbarButtonComponent,\n color: RichTextMaterialToolbarColorComponent,\n field: RichTextMaterialToolbarFieldComponent,\n menu: RichTextMaterialToolbarMenuComponent,\n ...overrides,\n });\n}\n"],"mappings":";;;;;;;;;;;AAaA,IAAa,yCAAb,MAAa,uCAAsC;CACtC,UAAU,MAAM,SAAwC,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAEvD,kBAAkB,OAAiB;EACzC,IAAI,MAAM,WAAW,GAAG,MAAM,eAAc;CAChD;CALS,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAsC,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAtC,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAsC,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,SAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,UAAA;EAAA,UCbnD;EAkDA,QAAA,CAAA,qRAAA;EAAA,cAAA;GAAA;IAAA,MAAA;IAAA,MD1Cc;IAAS,UAAA;IAAA,QAAA,CAAA,WAAA;IAAA,UAAA,CAAA,aAAA,WAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAa,UAAA;IAAA,UAAA,CAAA,aAAA,WAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAO,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;IAAA,UAAA,CAAA,SAAA;GAAA;GAAA;IAAA,MAAA;IAAA,MAAE;IAAgB,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;IAAA;GAAA;EAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAKpD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAsC,YAAA,C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