@3kles/kles-richtext-editor 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -2
- package/fesm2022/3kles-kles-richtext-editor-dynamicforms.mjs +179 -0
- package/fesm2022/3kles-kles-richtext-editor-dynamicforms.mjs.map +1 -0
- package/fesm2022/3kles-kles-richtext-editor-richtext-toolbar-menu.component-Dq2K0CY3.mjs +183 -0
- package/fesm2022/3kles-kles-richtext-editor-richtext-toolbar-menu.component-Dq2K0CY3.mjs.map +1 -0
- package/fesm2022/3kles-kles-richtext-editor-toolbar-configuration-DsbPfSEO.mjs +337 -0
- package/fesm2022/3kles-kles-richtext-editor-toolbar-configuration-DsbPfSEO.mjs.map +1 -0
- package/fesm2022/3kles-kles-richtext-editor.mjs +296 -395
- package/fesm2022/3kles-kles-richtext-editor.mjs.map +1 -1
- package/package.json +15 -4
- package/types/3kles-kles-richtext-editor-dynamicforms.d.ts +24 -0
- package/types/3kles-kles-richtext-editor-dynamicforms.d.ts.map +1 -0
- package/types/3kles-kles-richtext-editor.d.ts +90 -8
- package/types/3kles-kles-richtext-editor.d.ts.map +1 -1
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { APP_ID, Injectable, inject } from "@angular/core";
|
|
3
|
+
import { TEXT_STYLE_PROPERTIES, isTextStyleMarkType } from "@3kles/richtext-core";
|
|
4
|
+
const RICHTEXT_MESSAGES_FR = Object.freeze({
|
|
5
|
+
editorLabel: "Contenu du document",
|
|
6
|
+
invalidDocument: "La valeur doit être un document 3KLES valide.",
|
|
7
|
+
requiredDocument: "Le document doit contenir du texte.",
|
|
8
|
+
validationError: "Le document comporte une erreur de validation.",
|
|
9
|
+
previewLabel: "Représentation JSON du document",
|
|
10
|
+
toolbarLabel: "Mise en forme du document",
|
|
11
|
+
toolbarFields: "Options de titre et de lien",
|
|
12
|
+
toolbarStyleFields: "Options de mise en forme",
|
|
13
|
+
menuSearch: "Rechercher",
|
|
14
|
+
menuNoResults: "Aucun résultat.",
|
|
15
|
+
headingLevel: "Niveau",
|
|
16
|
+
headingLevelLabel: "Niveau du titre",
|
|
17
|
+
fontFamily: "Police",
|
|
18
|
+
fontSize: "Taille de police",
|
|
19
|
+
color: "Couleur du texte",
|
|
20
|
+
backgroundColor: "Couleur de fond",
|
|
21
|
+
lineHeight: "Interligne",
|
|
22
|
+
defaultStyle: "Par défaut",
|
|
23
|
+
mixedStyles: "Plusieurs valeurs",
|
|
24
|
+
resetColor: "Réinitialiser la couleur du texte",
|
|
25
|
+
resetBackgroundColor: "Réinitialiser la couleur de fond",
|
|
26
|
+
linkAddress: "Adresse du lien",
|
|
27
|
+
applyLink: "Appliquer le lien",
|
|
28
|
+
removeLink: "Retirer le lien",
|
|
29
|
+
invalidLink: "Saisissez une adresse HTTP, HTTPS, mailto ou une destination dynamique valide.",
|
|
30
|
+
actionUnavailable: "Cette action ne peut pas être appliquée à la sélection.",
|
|
31
|
+
undoDone: "Annulation effectuée.",
|
|
32
|
+
redoDone: "Rétablissement effectué.",
|
|
33
|
+
formatDone: "Mise en forme mise à jour.",
|
|
34
|
+
linkApplied: "Lien appliqué.",
|
|
35
|
+
linkNotApplied: "Le lien ne peut pas être appliqué à la sélection.",
|
|
36
|
+
linkRemoved: "Lien retiré.",
|
|
37
|
+
linkNotRemoved: "Le lien ne peut pas être retiré de la sélection.",
|
|
38
|
+
bold: "Gras",
|
|
39
|
+
italic: "Italique",
|
|
40
|
+
underline: "Souligné",
|
|
41
|
+
paragraph: "Paragraphe",
|
|
42
|
+
heading: "Titre",
|
|
43
|
+
strike: "Barré",
|
|
44
|
+
code: "Code en ligne",
|
|
45
|
+
bulletList: "Liste à puces",
|
|
46
|
+
orderedList: "Liste numérotée",
|
|
47
|
+
indent: "Indenter",
|
|
48
|
+
outdent: "Réduire le retrait",
|
|
49
|
+
blockquote: "Citation",
|
|
50
|
+
codeBlock: "Bloc de code",
|
|
51
|
+
clear: "Effacer la mise en forme",
|
|
52
|
+
undo: "Annuler",
|
|
53
|
+
redo: "Rétablir"
|
|
54
|
+
});
|
|
55
|
+
const RICHTEXT_MESSAGES_EN = Object.freeze({
|
|
56
|
+
editorLabel: "Document content",
|
|
57
|
+
invalidDocument: "The value must be a valid 3KLES document.",
|
|
58
|
+
requiredDocument: "The document must contain text.",
|
|
59
|
+
validationError: "The document has a validation error.",
|
|
60
|
+
previewLabel: "Document JSON representation",
|
|
61
|
+
toolbarLabel: "Document formatting",
|
|
62
|
+
toolbarFields: "Heading and link options",
|
|
63
|
+
toolbarStyleFields: "Formatting options",
|
|
64
|
+
menuSearch: "Search",
|
|
65
|
+
menuNoResults: "No results.",
|
|
66
|
+
headingLevel: "Level",
|
|
67
|
+
headingLevelLabel: "Heading level",
|
|
68
|
+
fontFamily: "Font family",
|
|
69
|
+
fontSize: "Font size",
|
|
70
|
+
color: "Text color",
|
|
71
|
+
backgroundColor: "Background color",
|
|
72
|
+
lineHeight: "Line height",
|
|
73
|
+
defaultStyle: "Default",
|
|
74
|
+
mixedStyles: "Mixed values",
|
|
75
|
+
resetColor: "Reset text color",
|
|
76
|
+
resetBackgroundColor: "Reset background color",
|
|
77
|
+
linkAddress: "Link address",
|
|
78
|
+
applyLink: "Apply link",
|
|
79
|
+
removeLink: "Remove link",
|
|
80
|
+
invalidLink: "Enter a valid HTTP, HTTPS, mailto, or dynamic link destination.",
|
|
81
|
+
actionUnavailable: "This action cannot be applied to the selection.",
|
|
82
|
+
undoDone: "Undo completed.",
|
|
83
|
+
redoDone: "Redo completed.",
|
|
84
|
+
formatDone: "Formatting updated.",
|
|
85
|
+
linkApplied: "Link applied.",
|
|
86
|
+
linkNotApplied: "The link cannot be applied to the selection.",
|
|
87
|
+
linkRemoved: "Link removed.",
|
|
88
|
+
linkNotRemoved: "The link cannot be removed from the selection.",
|
|
89
|
+
bold: "Bold",
|
|
90
|
+
italic: "Italic",
|
|
91
|
+
underline: "Underline",
|
|
92
|
+
paragraph: "Paragraph",
|
|
93
|
+
heading: "Heading",
|
|
94
|
+
strike: "Strikethrough",
|
|
95
|
+
code: "Inline code",
|
|
96
|
+
bulletList: "Bullet list",
|
|
97
|
+
orderedList: "Numbered list",
|
|
98
|
+
indent: "Indent",
|
|
99
|
+
outdent: "Outdent",
|
|
100
|
+
blockquote: "Blockquote",
|
|
101
|
+
codeBlock: "Code block",
|
|
102
|
+
clear: "Clear formatting",
|
|
103
|
+
undo: "Undo",
|
|
104
|
+
redo: "Redo"
|
|
105
|
+
});
|
|
106
|
+
function richTextLocale(locale) {
|
|
107
|
+
return locale?.trim().toLowerCase().split(/[-_]/u)[0] === "en" ? "en" : "fr";
|
|
108
|
+
}
|
|
109
|
+
function resolveRichTextMessages(locale, ...overrides) {
|
|
110
|
+
const messages = { ...richTextLocale(locale) === "en" ? RICHTEXT_MESSAGES_EN : RICHTEXT_MESSAGES_FR };
|
|
111
|
+
for (const override of overrides) {
|
|
112
|
+
if (!override) continue;
|
|
113
|
+
for (const [key, value] of Object.entries(override)) if (typeof value === "string" && value.trim().length > 0) Object.defineProperty(messages, key, {
|
|
114
|
+
value,
|
|
115
|
+
enumerable: true,
|
|
116
|
+
configurable: true,
|
|
117
|
+
writable: true
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
return Object.freeze(messages);
|
|
121
|
+
}
|
|
122
|
+
function richTextLabel(value, fallback) {
|
|
123
|
+
return value?.trim() ? value : fallback;
|
|
124
|
+
}
|
|
125
|
+
var RichTextAccessibilityIds = class RichTextAccessibilityIds {
|
|
126
|
+
appId = inject(APP_ID);
|
|
127
|
+
sequence = 0;
|
|
128
|
+
next(purpose) {
|
|
129
|
+
return `${this.appId}-kles-richtext-${purpose}-${++this.sequence}`;
|
|
130
|
+
}
|
|
131
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
132
|
+
minVersion: "12.0.0",
|
|
133
|
+
version: "22.2.6",
|
|
134
|
+
ngImport: i0,
|
|
135
|
+
type: RichTextAccessibilityIds,
|
|
136
|
+
deps: [],
|
|
137
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
138
|
+
});
|
|
139
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
140
|
+
minVersion: "12.0.0",
|
|
141
|
+
version: "22.2.6",
|
|
142
|
+
ngImport: i0,
|
|
143
|
+
type: RichTextAccessibilityIds,
|
|
144
|
+
providedIn: "root"
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
148
|
+
minVersion: "12.0.0",
|
|
149
|
+
version: "22.2.6",
|
|
150
|
+
ngImport: i0,
|
|
151
|
+
type: RichTextAccessibilityIds,
|
|
152
|
+
decorators: [{
|
|
153
|
+
type: Injectable,
|
|
154
|
+
args: [{ providedIn: "root" }]
|
|
155
|
+
}]
|
|
156
|
+
});
|
|
157
|
+
const TOOLBAR_ACTIONS = Object.freeze([
|
|
158
|
+
{
|
|
159
|
+
id: "bold",
|
|
160
|
+
key: "bold",
|
|
161
|
+
command: "bold",
|
|
162
|
+
toggle: true
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: "italic",
|
|
166
|
+
key: "italic",
|
|
167
|
+
command: "italic",
|
|
168
|
+
toggle: true
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: "underline",
|
|
172
|
+
key: "underline",
|
|
173
|
+
command: "underline",
|
|
174
|
+
toggle: true
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
id: "paragraph",
|
|
178
|
+
key: "paragraph",
|
|
179
|
+
command: "paragraph",
|
|
180
|
+
toggle: true
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: "heading",
|
|
184
|
+
key: "heading",
|
|
185
|
+
command: "heading",
|
|
186
|
+
toggle: true
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: "strike",
|
|
190
|
+
key: "strike",
|
|
191
|
+
command: "strike",
|
|
192
|
+
toggle: true
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: "code",
|
|
196
|
+
key: "code",
|
|
197
|
+
command: "code",
|
|
198
|
+
toggle: true
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
id: "bulletList",
|
|
202
|
+
key: "bulletList",
|
|
203
|
+
command: "bulletList",
|
|
204
|
+
toggle: true
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
id: "orderedList",
|
|
208
|
+
key: "orderedList",
|
|
209
|
+
command: "orderedList",
|
|
210
|
+
toggle: true
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
id: "indent",
|
|
214
|
+
key: "indent",
|
|
215
|
+
command: Object.freeze({ type: "indentListItem" })
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
id: "outdent",
|
|
219
|
+
key: "outdent",
|
|
220
|
+
command: Object.freeze({ type: "outdentListItem" })
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
id: "blockquote",
|
|
224
|
+
key: "blockquote",
|
|
225
|
+
command: "blockquote",
|
|
226
|
+
toggle: true
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: "codeBlock",
|
|
230
|
+
key: "codeBlock",
|
|
231
|
+
command: "codeBlock",
|
|
232
|
+
toggle: true
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: "clear",
|
|
236
|
+
key: "clear",
|
|
237
|
+
command: Object.freeze({ type: "clearFormatting" })
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
id: "undo",
|
|
241
|
+
key: "undo",
|
|
242
|
+
command: "undo"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
id: "redo",
|
|
246
|
+
key: "redo",
|
|
247
|
+
command: "redo"
|
|
248
|
+
}
|
|
249
|
+
]);
|
|
250
|
+
const DEFAULT_RICHTEXT_TOOLBAR_ITEMS = Object.freeze([
|
|
251
|
+
...TOOLBAR_ACTIONS.map(({ id }) => id),
|
|
252
|
+
"headingLevel",
|
|
253
|
+
"link"
|
|
254
|
+
]);
|
|
255
|
+
const FULL_RICHTEXT_TOOLBAR_ITEMS = Object.freeze([...DEFAULT_RICHTEXT_TOOLBAR_ITEMS, ...Object.keys(TEXT_STYLE_PROPERTIES).filter(isTextStyleMarkType)]);
|
|
256
|
+
function isToolbarField(id) {
|
|
257
|
+
return id === "headingLevel" || id === "link" || isTextStyleMarkType(id);
|
|
258
|
+
}
|
|
259
|
+
function resolveToolbarItems(items) {
|
|
260
|
+
const seen = /* @__PURE__ */ new Set();
|
|
261
|
+
const resolved = [];
|
|
262
|
+
for (const input of items) {
|
|
263
|
+
const item = typeof input === "string" ? { id: input } : input;
|
|
264
|
+
if (!item.id.trim()) throw new TypeError("Toolbar item IDs must be nonempty.");
|
|
265
|
+
if (seen.has(item.id)) throw new TypeError(`Duplicate toolbar item ID: ${item.id}`);
|
|
266
|
+
seen.add(item.id);
|
|
267
|
+
if (item.visible === false) continue;
|
|
268
|
+
if ("kind" in item) {
|
|
269
|
+
if (TOOLBAR_ACTIONS.some((action) => action.id === item.id) || isToolbarField(item.id)) throw new TypeError(`Custom toolbar item uses a reserved ID: ${item.id}`);
|
|
270
|
+
if (!item.label.trim()) throw new TypeError("Custom toolbar items need a nonempty label.");
|
|
271
|
+
if (item.kind === "menu") resolved.push(Object.freeze({ ...item }));
|
|
272
|
+
else resolved.push(Object.freeze({
|
|
273
|
+
...item,
|
|
274
|
+
kind: "action",
|
|
275
|
+
builtin: false,
|
|
276
|
+
toggle: item.toggle ?? false
|
|
277
|
+
}));
|
|
278
|
+
} else if (isToolbarField(item.id)) resolved.push(Object.freeze({
|
|
279
|
+
...item,
|
|
280
|
+
kind: "field",
|
|
281
|
+
id: item.id
|
|
282
|
+
}));
|
|
283
|
+
else {
|
|
284
|
+
const definition = TOOLBAR_ACTIONS.find((action) => action.id === item.id);
|
|
285
|
+
if (!definition) throw new TypeError(`Unknown toolbar item ID: ${item.id}`);
|
|
286
|
+
resolved.push(Object.freeze({
|
|
287
|
+
...item,
|
|
288
|
+
...definition,
|
|
289
|
+
kind: "action",
|
|
290
|
+
builtin: true,
|
|
291
|
+
toggle: definition.toggle ?? false
|
|
292
|
+
}));
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return Object.freeze(resolved);
|
|
296
|
+
}
|
|
297
|
+
function toolbarActionQueries(items) {
|
|
298
|
+
return items.filter((item) => item.kind === "action").map((item) => ({
|
|
299
|
+
id: item.id,
|
|
300
|
+
builtin: item.builtin,
|
|
301
|
+
command: item.command,
|
|
302
|
+
disabled: item.disabled ?? false,
|
|
303
|
+
toggle: item.toggle
|
|
304
|
+
}));
|
|
305
|
+
}
|
|
306
|
+
function sameToolbarActionQueries(left, right) {
|
|
307
|
+
return left.length === right.length && left.every((item, index) => {
|
|
308
|
+
const next = right[index];
|
|
309
|
+
return next !== void 0 && item.id === next.id && item.builtin === next.builtin && item.command === next.command && item.disabled === next.disabled && item.toggle === next.toggle;
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
function toolbarPresentationLabel(item, messages, fallback) {
|
|
313
|
+
const override = item.labelKey !== void 0 && Object.hasOwn(messages, item.labelKey) ? messages[item.labelKey] : void 0;
|
|
314
|
+
return (typeof override === "string" && override.trim() ? override : void 0) ?? (item.label?.trim() ? item.label : void 0) ?? fallback;
|
|
315
|
+
}
|
|
316
|
+
function toolbarItemLabel(item, messages) {
|
|
317
|
+
return toolbarPresentationLabel(item, messages, item.kind === "action" && item.key ? messages[item.key] : item.kind === "field" ? messages[item.id === "link" ? "linkAddress" : item.id] : messages.actionUnavailable);
|
|
318
|
+
}
|
|
319
|
+
function toolbarButtonContent(action, messages, preferIconOnly = false) {
|
|
320
|
+
const label = toolbarItemLabel(action, messages);
|
|
321
|
+
const ariaLabel = richTextLabel(action.ariaLabel, label);
|
|
322
|
+
const icon = action.icon?.trim();
|
|
323
|
+
if (!icon) return {
|
|
324
|
+
label,
|
|
325
|
+
ariaLabel
|
|
326
|
+
};
|
|
327
|
+
const iconType = action.iconType ?? (icon === "undo" || icon === "redo" ? "material" : "text");
|
|
328
|
+
return {
|
|
329
|
+
icon,
|
|
330
|
+
iconType,
|
|
331
|
+
label: preferIconOnly || action.label?.trim() === "" || iconType === "material" && action.label === void 0 && action.labelKey === void 0 ? "" : label,
|
|
332
|
+
ariaLabel
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
export { toolbarActionQueries as a, toolbarPresentationLabel as c, RICHTEXT_MESSAGES_FR as d, resolveRichTextMessages as f, sameToolbarActionQueries as i, RichTextAccessibilityIds as l, FULL_RICHTEXT_TOOLBAR_ITEMS as n, toolbarButtonContent as o, richTextLabel as p, resolveToolbarItems as r, toolbarItemLabel as s, DEFAULT_RICHTEXT_TOOLBAR_ITEMS as t, RICHTEXT_MESSAGES_EN as u };
|
|
336
|
+
|
|
337
|
+
//# sourceMappingURL=3kles-kles-richtext-editor-toolbar-configuration-DsbPfSEO.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3kles-kles-richtext-editor-toolbar-configuration-DsbPfSEO.mjs","names":[],"sources":["../../../projects/kles-richtext-editor/src/lib/i18n/messages.ts","../../../projects/kles-richtext-editor/src/lib/editor/accessibility-ids.ts","../../../projects/kles-richtext-editor/src/lib/toolbar/toolbar-configuration.ts"],"sourcesContent":["/** UI messages only; the document's content and language remain owned by the application. */\nexport interface RichTextMessages {\n readonly editorLabel: string;\n readonly invalidDocument: string;\n readonly requiredDocument: string;\n readonly validationError: string;\n readonly previewLabel: string;\n readonly toolbarLabel: string;\n readonly toolbarFields: string;\n readonly toolbarStyleFields: string;\n readonly menuSearch: string;\n readonly menuNoResults: string;\n readonly headingLevel: string;\n readonly headingLevelLabel: string;\n readonly fontFamily: string;\n readonly fontSize: string;\n readonly color: string;\n readonly backgroundColor: string;\n readonly lineHeight: string;\n readonly defaultStyle: string;\n readonly mixedStyles: string;\n readonly resetColor: string;\n readonly resetBackgroundColor: string;\n readonly linkAddress: string;\n readonly applyLink: string;\n readonly removeLink: string;\n readonly invalidLink: string;\n readonly actionUnavailable: string;\n readonly undoDone: string;\n readonly redoDone: string;\n readonly formatDone: string;\n readonly linkApplied: string;\n readonly linkNotApplied: string;\n readonly linkRemoved: string;\n readonly linkNotRemoved: string;\n readonly bold: string;\n readonly italic: string;\n readonly underline: string;\n readonly paragraph: string;\n readonly heading: string;\n readonly strike: string;\n readonly code: string;\n readonly bulletList: string;\n readonly orderedList: string;\n readonly indent: string;\n readonly outdent: string;\n readonly blockquote: string;\n readonly codeBlock: string;\n readonly clear: string;\n readonly undo: string;\n readonly redo: string;\n}\n\nexport type RichTextMessageKey = keyof RichTextMessages;\n/** Additional keys can supply translations for application-defined command buttons. */\nexport type RichTextMessageOverrides = Partial<RichTextMessages> | Readonly<Record<string, string | undefined>>;\nexport type ResolvedRichTextMessages = RichTextMessages & Readonly<Record<string, string>>;\nexport type RichTextLocale = 'fr' | 'en';\n\nexport interface RichTextI18nOptions {\n /** fr/fr-* and en/en-* are built in. Other locale codes fall back to French before overrides. */\n readonly locale?: string;\n readonly messages?: RichTextMessageOverrides;\n}\n\nexport const RICHTEXT_MESSAGES_FR: RichTextMessages = Object.freeze({\n editorLabel: 'Contenu du document',\n invalidDocument: 'La valeur doit être un document 3KLES valide.',\n requiredDocument: 'Le document doit contenir du texte.',\n validationError: 'Le document comporte une erreur de validation.',\n previewLabel: 'Représentation JSON du document',\n toolbarLabel: 'Mise en forme du document',\n toolbarFields: 'Options de titre et de lien',\n toolbarStyleFields: 'Options de mise en forme',\n menuSearch: 'Rechercher',\n menuNoResults: 'Aucun résultat.',\n headingLevel: 'Niveau',\n headingLevelLabel: 'Niveau du titre',\n fontFamily: 'Police',\n fontSize: 'Taille de police',\n color: 'Couleur du texte',\n backgroundColor: 'Couleur de fond',\n lineHeight: 'Interligne',\n defaultStyle: 'Par défaut',\n mixedStyles: 'Plusieurs valeurs',\n resetColor: 'Réinitialiser la couleur du texte',\n resetBackgroundColor: 'Réinitialiser la couleur de fond',\n linkAddress: 'Adresse du lien',\n applyLink: 'Appliquer le lien',\n removeLink: 'Retirer le lien',\n invalidLink: 'Saisissez une adresse HTTP, HTTPS, mailto ou une destination dynamique valide.',\n actionUnavailable: 'Cette action ne peut pas être appliquée à la sélection.',\n undoDone: 'Annulation effectuée.',\n redoDone: 'Rétablissement effectué.',\n formatDone: 'Mise en forme mise à jour.',\n linkApplied: 'Lien appliqué.',\n linkNotApplied: 'Le lien ne peut pas être appliqué à la sélection.',\n linkRemoved: 'Lien retiré.',\n linkNotRemoved: 'Le lien ne peut pas être retiré de la sélection.',\n bold: 'Gras',\n italic: 'Italique',\n underline: 'Souligné',\n paragraph: 'Paragraphe',\n heading: 'Titre',\n strike: 'Barré',\n code: 'Code en ligne',\n bulletList: 'Liste à puces',\n orderedList: 'Liste numérotée',\n indent: 'Indenter',\n outdent: 'Réduire le retrait',\n blockquote: 'Citation',\n codeBlock: 'Bloc de code',\n clear: 'Effacer la mise en forme',\n undo: 'Annuler',\n redo: 'Rétablir',\n});\n\nexport const RICHTEXT_MESSAGES_EN: RichTextMessages = Object.freeze({\n editorLabel: 'Document content',\n invalidDocument: 'The value must be a valid 3KLES document.',\n requiredDocument: 'The document must contain text.',\n validationError: 'The document has a validation error.',\n previewLabel: 'Document JSON representation',\n toolbarLabel: 'Document formatting',\n toolbarFields: 'Heading and link options',\n toolbarStyleFields: 'Formatting options',\n menuSearch: 'Search',\n menuNoResults: 'No results.',\n headingLevel: 'Level',\n headingLevelLabel: 'Heading level',\n fontFamily: 'Font family',\n fontSize: 'Font size',\n color: 'Text color',\n backgroundColor: 'Background color',\n lineHeight: 'Line height',\n defaultStyle: 'Default',\n mixedStyles: 'Mixed values',\n resetColor: 'Reset text color',\n resetBackgroundColor: 'Reset background color',\n linkAddress: 'Link address',\n applyLink: 'Apply link',\n removeLink: 'Remove link',\n invalidLink: 'Enter a valid HTTP, HTTPS, mailto, or dynamic link destination.',\n actionUnavailable: 'This action cannot be applied to the selection.',\n undoDone: 'Undo completed.',\n redoDone: 'Redo completed.',\n formatDone: 'Formatting updated.',\n linkApplied: 'Link applied.',\n linkNotApplied: 'The link cannot be applied to the selection.',\n linkRemoved: 'Link removed.',\n linkNotRemoved: 'The link cannot be removed from the selection.',\n bold: 'Bold',\n italic: 'Italic',\n underline: 'Underline',\n paragraph: 'Paragraph',\n heading: 'Heading',\n strike: 'Strikethrough',\n code: 'Inline code',\n bulletList: 'Bullet list',\n orderedList: 'Numbered list',\n indent: 'Indent',\n outdent: 'Outdent',\n blockquote: 'Blockquote',\n codeBlock: 'Code block',\n clear: 'Clear formatting',\n undo: 'Undo',\n redo: 'Redo',\n});\n\nexport function richTextLocale(locale: string | undefined): RichTextLocale {\n return locale?.trim().toLowerCase().split(/[-_]/u)[0] === 'en' ? 'en' : 'fr';\n}\n\nexport function resolveRichTextMessages(\n locale?: string,\n ...overrides: readonly (RichTextMessageOverrides | undefined)[]\n): ResolvedRichTextMessages {\n const messages: RichTextMessages & Record<string, string> = {\n ...(richTextLocale(locale) === 'en' ? RICHTEXT_MESSAGES_EN : RICHTEXT_MESSAGES_FR),\n };\n for (const override of overrides) {\n if (!override) continue;\n for (const [key, value] of Object.entries(override)) {\n if (typeof value === 'string' && value.trim().length > 0)\n Object.defineProperty(messages, key, { value, enumerable: true, configurable: true, writable: true });\n }\n }\n return Object.freeze(messages);\n}\n\nexport function richTextLabel(value: string | undefined, fallback: string): string {\n return value?.trim() ? value : fallback;\n}\n","import { APP_ID, Injectable, inject } from '@angular/core';\n\n/** IDs are unique within an Angular application, without module-global mutable state. */\n@Injectable({ providedIn: 'root' })\nexport class RichTextAccessibilityIds {\n private readonly appId = inject(APP_ID);\n private sequence = 0;\n\n next(purpose: string): string {\n return `${this.appId}-kles-richtext-${purpose}-${++this.sequence}`;\n }\n}\n","import type { EditorCommand } from '@3kles/richtext-dom';\nimport { isTextStyleMarkType, TEXT_STYLE_PROPERTIES } from '@3kles/richtext-core';\nimport type { TextStyleMarkType } from '@3kles/richtext-core';\nimport { richTextLabel } from '../i18n/messages.js';\nimport type { RichTextMessageKey, ResolvedRichTextMessages } from '../i18n/messages.js';\n\nexport type RichTextToolbarActionId =\n | 'bold'\n | 'italic'\n | 'underline'\n | 'paragraph'\n | 'heading'\n | 'strike'\n | 'code'\n | 'bulletList'\n | 'orderedList'\n | 'indent'\n | 'outdent'\n | 'blockquote'\n | 'codeBlock'\n | 'clear'\n | 'undo'\n | 'redo';\nexport type RichTextToolbarFieldId = 'headingLevel' | 'link' | TextStyleMarkType;\nexport type RichTextToolbarBuiltinId = RichTextToolbarActionId | RichTextToolbarFieldId;\nexport type RichTextToolbarIconType = 'text' | 'material';\n\ninterface ToolbarPresentation {\n readonly visible?: boolean;\n readonly disabled?: boolean;\n /** A literal fallback. A blank label on a built-in button with an icon hides its visible text. */\n readonly label?: string;\n readonly labelKey?: string;\n readonly ariaLabel?: string;\n readonly icon?: string;\n /** Undo and redo icon names default to Material. Other icons default to text. */\n readonly iconType?: RichTextToolbarIconType;\n}\n\nexport interface RichTextToolbarBuiltinItem extends ToolbarPresentation {\n readonly id: RichTextToolbarBuiltinId;\n}\n\nexport interface RichTextToolbarCommandItem extends ToolbarPresentation {\n readonly kind: 'command';\n readonly id: string;\n readonly command: EditorCommand;\n /** Required fallback also provides an accessible name when an application translation is absent. */\n readonly label: string;\n readonly toggle?: boolean;\n}\n\nexport interface RichTextToolbarMenuCommand {\n readonly id: string;\n readonly label: string;\n readonly labelKey?: string;\n readonly command: EditorCommand;\n readonly searchTerms?: readonly string[];\n readonly disabled?: boolean;\n}\n\nexport interface RichTextToolbarMenuGroup {\n readonly id: string;\n readonly label?: string;\n readonly labelKey?: string;\n readonly items: readonly RichTextToolbarMenuCommand[];\n}\n\nexport interface RichTextToolbarMenuItem extends ToolbarPresentation {\n readonly kind: 'menu';\n readonly id: string;\n readonly label: string;\n readonly groups: readonly RichTextToolbarMenuGroup[];\n}\n\nexport type RichTextToolbarItem =\n RichTextToolbarBuiltinId | RichTextToolbarBuiltinItem | RichTextToolbarCommandItem | RichTextToolbarMenuItem;\n\nexport interface RichTextToolbarConfig {\n /** Commands and fields each preserve their configured order inside their respective keyboard groups. */\n readonly items?: readonly RichTextToolbarItem[];\n /** Show command icons without text and use Material icons for the link buttons. */\n readonly iconOnly?: boolean;\n}\n\nexport interface RichTextToolbarButton {\n readonly id: string;\n /** Visible button text. For an icon-only button, use ariaLabel for its name. */\n readonly label: string;\n readonly ariaLabel: string;\n readonly command: EditorCommand;\n readonly disabled: boolean;\n readonly pressed?: boolean;\n readonly icon?: string;\n readonly iconType?: RichTextToolbarIconType;\n}\n\n/** The template supplies button content only; the toolbar retains the semantic button and its handlers. */\nexport interface RichTextToolbarButtonContext {\n readonly $implicit: RichTextToolbarButton;\n readonly item: RichTextToolbarButton;\n}\n\nexport interface ToolbarActionDefinition {\n readonly id: RichTextToolbarActionId;\n readonly key: RichTextMessageKey;\n readonly command: EditorCommand;\n readonly toggle?: boolean;\n}\n\nexport const TOOLBAR_ACTIONS: readonly ToolbarActionDefinition[] = Object.freeze([\n { id: 'bold', key: 'bold', command: 'bold', toggle: true },\n { id: 'italic', key: 'italic', command: 'italic', toggle: true },\n { id: 'underline', key: 'underline', command: 'underline', toggle: true },\n { id: 'paragraph', key: 'paragraph', command: 'paragraph', toggle: true },\n { id: 'heading', key: 'heading', command: 'heading', toggle: true },\n { id: 'strike', key: 'strike', command: 'strike', toggle: true },\n { id: 'code', key: 'code', command: 'code', toggle: true },\n { id: 'bulletList', key: 'bulletList', command: 'bulletList', toggle: true },\n { id: 'orderedList', key: 'orderedList', command: 'orderedList', toggle: true },\n { id: 'indent', key: 'indent', command: Object.freeze({ type: 'indentListItem' }) },\n { id: 'outdent', key: 'outdent', command: Object.freeze({ type: 'outdentListItem' }) },\n { id: 'blockquote', key: 'blockquote', command: 'blockquote', toggle: true },\n { id: 'codeBlock', key: 'codeBlock', command: 'codeBlock', toggle: true },\n { id: 'clear', key: 'clear', command: Object.freeze({ type: 'clearFormatting' }) },\n { id: 'undo', key: 'undo', command: 'undo' },\n { id: 'redo', key: 'redo', command: 'redo' },\n]);\n\nexport const DEFAULT_RICHTEXT_TOOLBAR_ITEMS: readonly RichTextToolbarItem[] = Object.freeze([\n ...TOOLBAR_ACTIONS.map(({ id }) => id),\n 'headingLevel',\n 'link',\n]);\n\nexport const FULL_RICHTEXT_TOOLBAR_ITEMS: readonly RichTextToolbarItem[] = Object.freeze([\n ...DEFAULT_RICHTEXT_TOOLBAR_ITEMS,\n ...Object.keys(TEXT_STYLE_PROPERTIES).filter(isTextStyleMarkType),\n]);\n\nfunction isToolbarField(id: string): id is RichTextToolbarFieldId {\n return id === 'headingLevel' || id === 'link' || isTextStyleMarkType(id);\n}\n\nexport interface ResolvedToolbarAction extends ToolbarPresentation {\n readonly kind: 'action';\n readonly id: string;\n readonly builtin: boolean;\n readonly command: EditorCommand;\n readonly key?: RichTextMessageKey;\n readonly toggle: boolean;\n}\nexport interface ResolvedToolbarField extends ToolbarPresentation {\n readonly kind: 'field';\n readonly id: RichTextToolbarFieldId;\n}\nexport type ResolvedToolbarItem = ResolvedToolbarAction | ResolvedToolbarField | RichTextToolbarMenuItem;\n\n/** Resolves structural configuration without reading translations or querying editor capabilities. */\nexport function resolveToolbarItems(items: readonly RichTextToolbarItem[]): readonly ResolvedToolbarItem[] {\n const seen = new Set<string>();\n const resolved: ResolvedToolbarItem[] = [];\n for (const input of items) {\n const item = typeof input === 'string' ? { id: input } : input;\n if (!item.id.trim()) throw new TypeError('Toolbar item IDs must be nonempty.');\n if (seen.has(item.id)) throw new TypeError(`Duplicate toolbar item ID: ${item.id}`);\n seen.add(item.id);\n if (item.visible === false) continue;\n if ('kind' in item) {\n if (TOOLBAR_ACTIONS.some((action) => action.id === item.id) || isToolbarField(item.id))\n throw new TypeError(`Custom toolbar item uses a reserved ID: ${item.id}`);\n if (!item.label.trim()) throw new TypeError('Custom toolbar items need a nonempty label.');\n if (item.kind === 'menu') resolved.push(Object.freeze({ ...item }));\n else\n resolved.push(Object.freeze({ ...item, kind: 'action', builtin: false, toggle: item.toggle ?? false }));\n } else if (isToolbarField(item.id)) resolved.push(Object.freeze({ ...item, kind: 'field', id: item.id }));\n else {\n const definition = TOOLBAR_ACTIONS.find((action) => action.id === item.id);\n if (!definition) throw new TypeError(`Unknown toolbar item ID: ${item.id}`);\n resolved.push(\n Object.freeze({\n ...item,\n ...definition,\n kind: 'action',\n builtin: true,\n toggle: definition.toggle ?? false,\n }),\n );\n }\n }\n return Object.freeze(resolved);\n}\n\nexport interface ToolbarActionQuery {\n readonly id: string;\n readonly builtin: boolean;\n readonly command: EditorCommand;\n readonly disabled: boolean;\n readonly toggle: boolean;\n}\n\nexport function toolbarActionQueries(items: readonly ResolvedToolbarItem[]): readonly ToolbarActionQuery[] {\n return items\n .filter((item): item is ResolvedToolbarAction => item.kind === 'action')\n .map((item) => ({\n id: item.id,\n builtin: item.builtin,\n command: item.command,\n disabled: item.disabled ?? false,\n toggle: item.toggle,\n }));\n}\n\n/** Presentation-only updates do not invalidate expensive capability queries. Command identity stays explicit. */\nexport function sameToolbarActionQueries(\n left: readonly ToolbarActionQuery[],\n right: readonly ToolbarActionQuery[],\n): boolean {\n return (\n left.length === right.length &&\n left.every((item, index) => {\n const next = right[index];\n return (\n next !== undefined &&\n item.id === next.id &&\n item.builtin === next.builtin &&\n item.command === next.command &&\n item.disabled === next.disabled &&\n item.toggle === next.toggle\n );\n })\n );\n}\n\nexport function toolbarPresentationLabel(\n item: Pick<ToolbarPresentation, 'label' | 'labelKey'>,\n messages: ResolvedRichTextMessages,\n fallback: string,\n): string {\n const override =\n item.labelKey !== undefined && Object.hasOwn(messages, item.labelKey) ? messages[item.labelKey] : undefined;\n return (\n (typeof override === 'string' && override.trim() ? override : undefined) ??\n (item.label?.trim() ? item.label : undefined) ??\n fallback\n );\n}\n\nexport function toolbarItemLabel(item: ResolvedToolbarItem, messages: ResolvedRichTextMessages): string {\n return toolbarPresentationLabel(\n item,\n messages,\n item.kind === 'action' && item.key\n ? messages[item.key]\n : item.kind === 'field'\n ? messages[item.id === 'link' ? 'linkAddress' : item.id]\n : messages.actionUnavailable,\n );\n}\n\nexport function toolbarButtonContent(\n action: ResolvedToolbarAction | RichTextToolbarMenuItem,\n messages: ResolvedRichTextMessages,\n preferIconOnly = false,\n): Pick<RichTextToolbarButton, 'label' | 'ariaLabel' | 'icon' | 'iconType'> {\n const label = toolbarItemLabel(action, messages);\n const ariaLabel = richTextLabel(action.ariaLabel, label);\n const icon = action.icon?.trim();\n if (!icon) return { label, ariaLabel };\n\n const iconType = action.iconType ?? (icon === 'undo' || icon === 'redo' ? 'material' : 'text');\n const iconOnly =\n preferIconOnly ||\n action.label?.trim() === '' ||\n (iconType === 'material' && action.label === undefined && action.labelKey === undefined);\n return { icon, iconType, label: iconOnly ? '' : label, ariaLabel };\n}\n"],"mappings":";;;AAiEA,MAAa,uBAAyC,OAAO,OAAO;CAChE,aAAa;CACb,iBAAiB;CACjB,kBAAkB;CAClB,iBAAiB;CACjB,cAAc;CACd,cAAc;CACd,eAAe;CACf,oBAAoB;CACpB,YAAY;CACZ,eAAe;CACf,cAAc;CACd,mBAAmB;CACnB,YAAY;CACZ,UAAU;CACV,OAAO;CACP,iBAAiB;CACjB,YAAY;CACZ,cAAc;CACd,aAAa;CACb,YAAY;CACZ,sBAAsB;CACtB,aAAa;CACb,WAAW;CACX,YAAY;CACZ,aAAa;CACb,mBAAmB;CACnB,UAAU;CACV,UAAU;CACV,YAAY;CACZ,aAAa;CACb,gBAAgB;CAChB,aAAa;CACb,gBAAgB;CAChB,MAAM;CACN,QAAQ;CACR,WAAW;CACX,WAAW;CACX,SAAS;CACT,QAAQ;CACR,MAAM;CACN,YAAY;CACZ,aAAa;CACb,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,WAAW;CACX,OAAO;CACP,MAAM;CACN,MAAM;AACT,CAAA;AAED,MAAa,uBAAyC,OAAO,OAAO;CAChE,aAAa;CACb,iBAAiB;CACjB,kBAAkB;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