@harbour-enterprises/superdoc 0.12.18 → 0.12.19
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/dist/chunks/{super-editor.es-DIiFOcde.es.js → super-editor.es-C_GbwRpZ.es.js} +112 -52
- package/dist/chunks/{super-editor.es-DK2NC1Gl.cjs → super-editor.es-DmWvNj76.cjs} +112 -52
- package/dist/core/SuperDoc.d.ts +5 -0
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BbPgOxa0.js → converter-DhgEAlTO.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-Ce0B_FTd.js → docx-zipper-BSaSIAeQ.js} +1 -1
- package/dist/super-editor/chunks/{editor-CU4NcQRP.js → editor-BfaGq_P9.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-BhjcMYDy.js → toolbar-DSWq6Fuv.js} +2 -2
- package/dist/super-editor/components/toolbar/defaultItems.d.ts +1 -1
- package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts +5 -0
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
- package/dist/super-editor/components/toolbar/toolbarTexts.d.ts +51 -0
- package/dist/super-editor/components/toolbar/toolbarTexts.d.ts.map +1 -0
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +116 -55
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +4 -2
- package/dist/superdoc.es.js +5 -3
- package/dist/superdoc.umd.js +115 -53
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export namespace toolbarTexts {
|
|
2
|
+
let bold: string;
|
|
3
|
+
let fontFamily: string;
|
|
4
|
+
let ai: string;
|
|
5
|
+
let fontSize: string;
|
|
6
|
+
let italic: string;
|
|
7
|
+
let underline: string;
|
|
8
|
+
let highlight: string;
|
|
9
|
+
let color: string;
|
|
10
|
+
let search: string;
|
|
11
|
+
let link: string;
|
|
12
|
+
let image: string;
|
|
13
|
+
let table: string;
|
|
14
|
+
let addRowBefore: string;
|
|
15
|
+
let addRowAfter: string;
|
|
16
|
+
let addColumnBefore: string;
|
|
17
|
+
let addColumnAfter: string;
|
|
18
|
+
let deleteRow: string;
|
|
19
|
+
let deleteColumn: string;
|
|
20
|
+
let deleteTable: string;
|
|
21
|
+
let transparentBorders: string;
|
|
22
|
+
let mergeCells: string;
|
|
23
|
+
let splitCell: string;
|
|
24
|
+
let fixTables: string;
|
|
25
|
+
let textAlign: string;
|
|
26
|
+
let bulletList: string;
|
|
27
|
+
let numberedList: string;
|
|
28
|
+
let indentLeft: string;
|
|
29
|
+
let indentRight: string;
|
|
30
|
+
let zoom: string;
|
|
31
|
+
let undo: string;
|
|
32
|
+
let redo: string;
|
|
33
|
+
let trackChanges: string;
|
|
34
|
+
let trackChangesAccept: string;
|
|
35
|
+
let trackChangesReject: string;
|
|
36
|
+
let trackChangesOriginal: string;
|
|
37
|
+
let trackChangesFinal: string;
|
|
38
|
+
let clearFormatting: string;
|
|
39
|
+
let copyFormat: string;
|
|
40
|
+
let lineHeight: string;
|
|
41
|
+
let formatText: string;
|
|
42
|
+
let ruler: string;
|
|
43
|
+
let pageBreak: string;
|
|
44
|
+
let documentEditingMode: string;
|
|
45
|
+
let documentSuggestingMode: string;
|
|
46
|
+
let documentViewingMode: string;
|
|
47
|
+
let documentEditingModeDescription: string;
|
|
48
|
+
let documentSuggestingModeDescription: string;
|
|
49
|
+
let documentViewingModeDescription: string;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=toolbarTexts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbarTexts.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/toolbarTexts.js"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-BfaGq_P9.js";
|
|
2
|
+
import "./chunks/converter-DhgEAlTO.js";
|
|
3
|
+
import "./chunks/docx-zipper-BSaSIAeQ.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions, M as Mark, j as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
13
|
-
import { C, T, l, n, k, m } from "./chunks/editor-
|
|
14
|
-
import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-
|
|
15
|
-
import { O } from "./chunks/converter-
|
|
12
|
+
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions, M as Mark, j as Extension, A as Attribute, N as Node } from "./chunks/editor-BfaGq_P9.js";
|
|
13
|
+
import { C, T, l, n, k, m } from "./chunks/editor-BfaGq_P9.js";
|
|
14
|
+
import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-DhgEAlTO.js";
|
|
15
|
+
import { O } from "./chunks/converter-DhgEAlTO.js";
|
|
16
16
|
import { ref, createElementBlock, openBlock, createElementVNode, unref, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, normalizeClass, withModifiers, vModelText, createTextVNode, toDisplayString, Fragment, renderList, normalizeStyle, createVNode, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-DSWq6Fuv.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-BSaSIAeQ.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
(function(module) {
|
|
@@ -1047,6 +1047,7 @@ const closeDropdown = (dropdown) => {
|
|
|
1047
1047
|
const makeDefaultItems = ({
|
|
1048
1048
|
superToolbar,
|
|
1049
1049
|
toolbarIcons: toolbarIcons2,
|
|
1050
|
+
toolbarTexts: toolbarTexts2,
|
|
1050
1051
|
toolbarFonts,
|
|
1051
1052
|
hideButtons,
|
|
1052
1053
|
availableWidth,
|
|
@@ -1058,12 +1059,12 @@ const makeDefaultItems = ({
|
|
|
1058
1059
|
name: "bold",
|
|
1059
1060
|
command: "toggleBold",
|
|
1060
1061
|
icon: toolbarIcons2.bold,
|
|
1061
|
-
tooltip:
|
|
1062
|
+
tooltip: toolbarTexts2.bold
|
|
1062
1063
|
});
|
|
1063
1064
|
const fontButton = useToolbarItem({
|
|
1064
1065
|
type: "dropdown",
|
|
1065
1066
|
name: "fontFamily",
|
|
1066
|
-
tooltip:
|
|
1067
|
+
tooltip: toolbarTexts2.fontFamily,
|
|
1067
1068
|
command: "setFontFamily",
|
|
1068
1069
|
defaultLabel: "Arial",
|
|
1069
1070
|
label: "Arial",
|
|
@@ -1087,7 +1088,7 @@ const makeDefaultItems = ({
|
|
|
1087
1088
|
outline: "none"
|
|
1088
1089
|
},
|
|
1089
1090
|
name: "ai",
|
|
1090
|
-
tooltip:
|
|
1091
|
+
tooltip: toolbarTexts2.ai,
|
|
1091
1092
|
icon: toolbarIcons2.ai,
|
|
1092
1093
|
hideLabel: true,
|
|
1093
1094
|
hasCaret: false,
|
|
@@ -1133,7 +1134,7 @@ const makeDefaultItems = ({
|
|
|
1133
1134
|
minWidth: "50px",
|
|
1134
1135
|
markName: "textStyle",
|
|
1135
1136
|
labelAttr: "fontSize",
|
|
1136
|
-
tooltip:
|
|
1137
|
+
tooltip: toolbarTexts2.fontSize,
|
|
1137
1138
|
hasCaret: true,
|
|
1138
1139
|
hasInlineTextInput: false,
|
|
1139
1140
|
inlineTextInputVisible: true,
|
|
@@ -1175,14 +1176,14 @@ const makeDefaultItems = ({
|
|
|
1175
1176
|
name: "italic",
|
|
1176
1177
|
command: "toggleItalic",
|
|
1177
1178
|
icon: toolbarIcons2.italic,
|
|
1178
|
-
tooltip:
|
|
1179
|
+
tooltip: toolbarTexts2.italic
|
|
1179
1180
|
});
|
|
1180
1181
|
const underline = useToolbarItem({
|
|
1181
1182
|
type: "button",
|
|
1182
1183
|
name: "underline",
|
|
1183
1184
|
command: "toggleUnderline",
|
|
1184
1185
|
icon: toolbarIcons2.underline,
|
|
1185
|
-
tooltip:
|
|
1186
|
+
tooltip: toolbarTexts2.underline
|
|
1186
1187
|
});
|
|
1187
1188
|
const highlight = useToolbarItem({
|
|
1188
1189
|
type: "dropdown",
|
|
@@ -1191,7 +1192,7 @@ const makeDefaultItems = ({
|
|
|
1191
1192
|
hideLabel: true,
|
|
1192
1193
|
markName: "highlight",
|
|
1193
1194
|
labelAttr: "color",
|
|
1194
|
-
tooltip:
|
|
1195
|
+
tooltip: toolbarTexts2.highlight,
|
|
1195
1196
|
command: "setHighlight",
|
|
1196
1197
|
noArgumentCommand: "unsetHighlight",
|
|
1197
1198
|
suppressActiveHighlight: true,
|
|
@@ -1214,7 +1215,7 @@ const makeDefaultItems = ({
|
|
|
1214
1215
|
hideLabel: true,
|
|
1215
1216
|
markName: "textStyle",
|
|
1216
1217
|
labelAttr: "color",
|
|
1217
|
-
tooltip:
|
|
1218
|
+
tooltip: toolbarTexts2.color,
|
|
1218
1219
|
command: "setColor",
|
|
1219
1220
|
suppressActiveHighlight: true,
|
|
1220
1221
|
options: [
|
|
@@ -1234,7 +1235,7 @@ const makeDefaultItems = ({
|
|
|
1234
1235
|
type: "dropdown",
|
|
1235
1236
|
name: "search",
|
|
1236
1237
|
icon: toolbarIcons2.search,
|
|
1237
|
-
tooltip:
|
|
1238
|
+
tooltip: toolbarTexts2.search,
|
|
1238
1239
|
group: "right",
|
|
1239
1240
|
inputRef: searchRef,
|
|
1240
1241
|
options: [
|
|
@@ -1261,7 +1262,7 @@ const makeDefaultItems = ({
|
|
|
1261
1262
|
name: "link",
|
|
1262
1263
|
markName: "link",
|
|
1263
1264
|
icon: toolbarIcons2.link,
|
|
1264
|
-
tooltip:
|
|
1265
|
+
tooltip: toolbarTexts2.link,
|
|
1265
1266
|
options: [
|
|
1266
1267
|
{
|
|
1267
1268
|
type: "render",
|
|
@@ -1314,7 +1315,7 @@ const makeDefaultItems = ({
|
|
|
1314
1315
|
name: "image",
|
|
1315
1316
|
command: "startImageUpload",
|
|
1316
1317
|
icon: toolbarIcons2.image,
|
|
1317
|
-
tooltip:
|
|
1318
|
+
tooltip: toolbarTexts2.image,
|
|
1318
1319
|
disabled: false
|
|
1319
1320
|
});
|
|
1320
1321
|
const tableItem = useToolbarItem({
|
|
@@ -1323,7 +1324,7 @@ const makeDefaultItems = ({
|
|
|
1323
1324
|
icon: toolbarIcons2.table,
|
|
1324
1325
|
hideLabel: true,
|
|
1325
1326
|
labelAttr: "table",
|
|
1326
|
-
tooltip:
|
|
1327
|
+
tooltip: toolbarTexts2.table,
|
|
1327
1328
|
command: "insertTable",
|
|
1328
1329
|
suppressActiveHighlight: true,
|
|
1329
1330
|
options: [
|
|
@@ -1361,69 +1362,69 @@ const makeDefaultItems = ({
|
|
|
1361
1362
|
});
|
|
1362
1363
|
const tableActionsOptions = [
|
|
1363
1364
|
{
|
|
1364
|
-
label:
|
|
1365
|
+
label: toolbarTexts2.addRowBefore,
|
|
1365
1366
|
command: "addRowBefore",
|
|
1366
1367
|
icon: toolbarIcons2.addRowBefore,
|
|
1367
1368
|
props: { "data-item": "btn-tableActions-option" }
|
|
1368
1369
|
},
|
|
1369
1370
|
{
|
|
1370
|
-
label:
|
|
1371
|
+
label: toolbarTexts2.addRowAfter,
|
|
1371
1372
|
command: "addRowAfter",
|
|
1372
1373
|
icon: toolbarIcons2.addRowAfter,
|
|
1373
1374
|
props: { "data-item": "btn-tableActions-option" }
|
|
1374
1375
|
},
|
|
1375
1376
|
{
|
|
1376
|
-
label:
|
|
1377
|
+
label: toolbarTexts2.addColumnBefore,
|
|
1377
1378
|
command: "addColumnBefore",
|
|
1378
1379
|
icon: toolbarIcons2.addColumnBefore,
|
|
1379
1380
|
props: { "data-item": "btn-tableActions-option" }
|
|
1380
1381
|
},
|
|
1381
1382
|
{
|
|
1382
|
-
label:
|
|
1383
|
+
label: toolbarTexts2.addColumnAfter,
|
|
1383
1384
|
command: "addColumnAfter",
|
|
1384
1385
|
icon: toolbarIcons2.addColumnAfter,
|
|
1385
1386
|
bottomBorder: true,
|
|
1386
1387
|
props: { "data-item": "btn-tableActions-option" }
|
|
1387
1388
|
},
|
|
1388
1389
|
{
|
|
1389
|
-
label:
|
|
1390
|
+
label: toolbarTexts2.deleteRow,
|
|
1390
1391
|
command: "deleteRow",
|
|
1391
1392
|
icon: toolbarIcons2.deleteRow,
|
|
1392
1393
|
props: { "data-item": "btn-tableActions-option" }
|
|
1393
1394
|
},
|
|
1394
1395
|
{
|
|
1395
|
-
label:
|
|
1396
|
+
label: toolbarTexts2.deleteColumn,
|
|
1396
1397
|
command: "deleteColumn",
|
|
1397
1398
|
icon: toolbarIcons2.deleteColumn,
|
|
1398
1399
|
props: { "data-item": "btn-tableActions-option" }
|
|
1399
1400
|
},
|
|
1400
1401
|
{
|
|
1401
|
-
label:
|
|
1402
|
+
label: toolbarTexts2.deleteTable,
|
|
1402
1403
|
command: "deleteTable",
|
|
1403
1404
|
icon: toolbarIcons2.deleteTable,
|
|
1404
1405
|
props: { "data-item": "btn-tableActions-option" }
|
|
1405
1406
|
},
|
|
1406
1407
|
{
|
|
1407
|
-
label:
|
|
1408
|
+
label: toolbarTexts2.transparentBorders,
|
|
1408
1409
|
command: "deleteCellAndTableBorders",
|
|
1409
1410
|
icon: toolbarIcons2.deleteBorders,
|
|
1410
1411
|
bottomBorder: true,
|
|
1411
1412
|
props: { "data-item": "btn-tableActions-option" }
|
|
1412
1413
|
},
|
|
1413
1414
|
{
|
|
1414
|
-
label:
|
|
1415
|
+
label: toolbarTexts2.mergeCells,
|
|
1415
1416
|
command: "mergeCells",
|
|
1416
1417
|
icon: toolbarIcons2.mergeCells,
|
|
1417
1418
|
props: { "data-item": "btn-tableActions-option" }
|
|
1418
1419
|
},
|
|
1419
1420
|
{
|
|
1420
|
-
label:
|
|
1421
|
+
label: toolbarTexts2.splitCell,
|
|
1421
1422
|
command: "splitCell",
|
|
1422
1423
|
icon: toolbarIcons2.splitCell,
|
|
1423
1424
|
props: { "data-item": "btn-tableActions-option" }
|
|
1424
1425
|
},
|
|
1425
1426
|
{
|
|
1426
|
-
label:
|
|
1427
|
+
label: toolbarTexts2.fixTables,
|
|
1427
1428
|
command: "fixTables",
|
|
1428
1429
|
icon: toolbarIcons2.fixTables,
|
|
1429
1430
|
props: { "data-item": "btn-tableActions-option" }
|
|
@@ -1442,7 +1443,7 @@ const makeDefaultItems = ({
|
|
|
1442
1443
|
const alignment2 = useToolbarItem({
|
|
1443
1444
|
type: "dropdown",
|
|
1444
1445
|
name: "textAlign",
|
|
1445
|
-
tooltip:
|
|
1446
|
+
tooltip: toolbarTexts2.textAlign,
|
|
1446
1447
|
icon: toolbarIcons2.alignLeft,
|
|
1447
1448
|
command: "setTextAlign",
|
|
1448
1449
|
hasCaret: true,
|
|
@@ -1492,21 +1493,21 @@ const makeDefaultItems = ({
|
|
|
1492
1493
|
name: "list",
|
|
1493
1494
|
command: "toggleBulletList",
|
|
1494
1495
|
icon: toolbarIcons2.bulletList,
|
|
1495
|
-
tooltip:
|
|
1496
|
+
tooltip: toolbarTexts2.bulletList
|
|
1496
1497
|
});
|
|
1497
1498
|
const numberedList = useToolbarItem({
|
|
1498
1499
|
type: "button",
|
|
1499
1500
|
name: "numberedlist",
|
|
1500
1501
|
command: "toggleOrderedList",
|
|
1501
1502
|
icon: toolbarIcons2.numberedList,
|
|
1502
|
-
tooltip:
|
|
1503
|
+
tooltip: toolbarTexts2.numberedList
|
|
1503
1504
|
});
|
|
1504
1505
|
const indentLeft = useToolbarItem({
|
|
1505
1506
|
type: "button",
|
|
1506
1507
|
name: "indentleft",
|
|
1507
1508
|
command: "decreaseTextIndent",
|
|
1508
1509
|
icon: toolbarIcons2.indentLeft,
|
|
1509
|
-
tooltip:
|
|
1510
|
+
tooltip: toolbarTexts2.indentLeft,
|
|
1510
1511
|
disabled: false
|
|
1511
1512
|
});
|
|
1512
1513
|
const indentRight = useToolbarItem({
|
|
@@ -1514,7 +1515,7 @@ const makeDefaultItems = ({
|
|
|
1514
1515
|
name: "indentright",
|
|
1515
1516
|
command: "increaseTextIndent",
|
|
1516
1517
|
icon: toolbarIcons2.indentRight,
|
|
1517
|
-
tooltip:
|
|
1518
|
+
tooltip: toolbarTexts2.indentRight,
|
|
1518
1519
|
disabled: false
|
|
1519
1520
|
});
|
|
1520
1521
|
const overflow = useToolbarItem({
|
|
@@ -1528,7 +1529,7 @@ const makeDefaultItems = ({
|
|
|
1528
1529
|
type: "dropdown",
|
|
1529
1530
|
name: "zoom",
|
|
1530
1531
|
allowWithoutEditor: true,
|
|
1531
|
-
tooltip:
|
|
1532
|
+
tooltip: toolbarTexts2.zoom,
|
|
1532
1533
|
defaultLabel: "100%",
|
|
1533
1534
|
label: "100%",
|
|
1534
1535
|
hasCaret: true,
|
|
@@ -1554,7 +1555,7 @@ const makeDefaultItems = ({
|
|
|
1554
1555
|
type: "button",
|
|
1555
1556
|
name: "undo",
|
|
1556
1557
|
disabled: true,
|
|
1557
|
-
tooltip:
|
|
1558
|
+
tooltip: toolbarTexts2.undo,
|
|
1558
1559
|
command: "undo",
|
|
1559
1560
|
icon: toolbarIcons2.undo,
|
|
1560
1561
|
group: "left",
|
|
@@ -1566,7 +1567,7 @@ const makeDefaultItems = ({
|
|
|
1566
1567
|
type: "button",
|
|
1567
1568
|
disabled: true,
|
|
1568
1569
|
name: "redo",
|
|
1569
|
-
tooltip:
|
|
1570
|
+
tooltip: toolbarTexts2.redo,
|
|
1570
1571
|
command: "redo",
|
|
1571
1572
|
icon: toolbarIcons2.redo,
|
|
1572
1573
|
group: "left",
|
|
@@ -1578,7 +1579,7 @@ const makeDefaultItems = ({
|
|
|
1578
1579
|
type: "button",
|
|
1579
1580
|
disabled: false,
|
|
1580
1581
|
name: "toggleTrackChanges",
|
|
1581
|
-
tooltip:
|
|
1582
|
+
tooltip: toolbarTexts2.trackChanges,
|
|
1582
1583
|
command: "toggleTrackChanges",
|
|
1583
1584
|
icon: toolbarIcons2.trackChanges,
|
|
1584
1585
|
group: "left"
|
|
@@ -1587,7 +1588,7 @@ const makeDefaultItems = ({
|
|
|
1587
1588
|
type: "button",
|
|
1588
1589
|
disabled: false,
|
|
1589
1590
|
name: "acceptTrackedChangeBySelection",
|
|
1590
|
-
tooltip:
|
|
1591
|
+
tooltip: toolbarTexts2.trackChangesAccept,
|
|
1591
1592
|
command: "acceptTrackedChangeBySelection",
|
|
1592
1593
|
icon: toolbarIcons2.trackChangesAccept,
|
|
1593
1594
|
group: "left"
|
|
@@ -1596,7 +1597,7 @@ const makeDefaultItems = ({
|
|
|
1596
1597
|
type: "button",
|
|
1597
1598
|
disabled: false,
|
|
1598
1599
|
name: "rejectTrackedChangeOnSelection",
|
|
1599
|
-
tooltip:
|
|
1600
|
+
tooltip: toolbarTexts2.trackChangesReject,
|
|
1600
1601
|
command: "rejectTrackedChangeOnSelection",
|
|
1601
1602
|
icon: toolbarIcons2.trackChangesReject,
|
|
1602
1603
|
group: "left"
|
|
@@ -1605,7 +1606,7 @@ const makeDefaultItems = ({
|
|
|
1605
1606
|
type: "button",
|
|
1606
1607
|
disabled: false,
|
|
1607
1608
|
name: "toggleTrackChangesShowOriginal",
|
|
1608
|
-
tooltip:
|
|
1609
|
+
tooltip: toolbarTexts2.trackChangesOriginal,
|
|
1609
1610
|
command: "toggleTrackChangesShowOriginal",
|
|
1610
1611
|
icon: toolbarIcons2.trackChangesOriginal,
|
|
1611
1612
|
group: "left"
|
|
@@ -1614,7 +1615,7 @@ const makeDefaultItems = ({
|
|
|
1614
1615
|
type: "button",
|
|
1615
1616
|
disabled: false,
|
|
1616
1617
|
name: "toggleTrackChangesShowFinal",
|
|
1617
|
-
tooltip:
|
|
1618
|
+
tooltip: toolbarTexts2.trackChangesFinal,
|
|
1618
1619
|
command: "toggleTrackChangesShowFinal",
|
|
1619
1620
|
icon: toolbarIcons2.trackChangesFinal,
|
|
1620
1621
|
group: "left"
|
|
@@ -1623,7 +1624,7 @@ const makeDefaultItems = ({
|
|
|
1623
1624
|
type: "button",
|
|
1624
1625
|
name: "clearFormatting",
|
|
1625
1626
|
command: "clearFormat",
|
|
1626
|
-
tooltip:
|
|
1627
|
+
tooltip: toolbarTexts2.clearFormatting,
|
|
1627
1628
|
icon: toolbarIcons2.clearFormatting
|
|
1628
1629
|
});
|
|
1629
1630
|
[
|
|
@@ -1638,7 +1639,7 @@ const makeDefaultItems = ({
|
|
|
1638
1639
|
const copyFormat = useToolbarItem({
|
|
1639
1640
|
type: "button",
|
|
1640
1641
|
name: "copyFormat",
|
|
1641
|
-
tooltip:
|
|
1642
|
+
tooltip: toolbarTexts2.copyFormat,
|
|
1642
1643
|
icon: toolbarIcons2.copyFormat,
|
|
1643
1644
|
command: "copyFormat"
|
|
1644
1645
|
});
|
|
@@ -1680,22 +1681,22 @@ const makeDefaultItems = ({
|
|
|
1680
1681
|
});
|
|
1681
1682
|
const documentOptions = [
|
|
1682
1683
|
{
|
|
1683
|
-
label:
|
|
1684
|
+
label: toolbarTexts2.documentEditingMode,
|
|
1684
1685
|
value: "editing",
|
|
1685
1686
|
icon: toolbarIcons2.documentEditingMode,
|
|
1686
|
-
description:
|
|
1687
|
+
description: toolbarTexts2.documentEditingModeDescription
|
|
1687
1688
|
},
|
|
1688
1689
|
{
|
|
1689
|
-
label:
|
|
1690
|
+
label: toolbarTexts2.documentSuggestingMode,
|
|
1690
1691
|
value: "suggesting",
|
|
1691
1692
|
icon: toolbarIcons2.documentSuggestingMode,
|
|
1692
|
-
description:
|
|
1693
|
+
description: toolbarTexts2.documentSuggestingModeDescription
|
|
1693
1694
|
},
|
|
1694
1695
|
{
|
|
1695
|
-
label:
|
|
1696
|
+
label: toolbarTexts2.documentViewingMode,
|
|
1696
1697
|
value: "viewing",
|
|
1697
1698
|
icon: toolbarIcons2.documentViewingMode,
|
|
1698
|
-
description:
|
|
1699
|
+
description: toolbarTexts2.documentViewingModeDescription
|
|
1699
1700
|
}
|
|
1700
1701
|
];
|
|
1701
1702
|
function renderDocumentMode(renderDocumentButton) {
|
|
@@ -1716,7 +1717,7 @@ const makeDefaultItems = ({
|
|
|
1716
1717
|
name: "pageBreakTool",
|
|
1717
1718
|
command: "insertPageBreak",
|
|
1718
1719
|
icon: toolbarIcons2.pageBreak,
|
|
1719
|
-
tooltip:
|
|
1720
|
+
tooltip: toolbarTexts2.pageBreak
|
|
1720
1721
|
});
|
|
1721
1722
|
const controlSizes = /* @__PURE__ */ new Map([
|
|
1722
1723
|
["separator", 20],
|
|
@@ -1734,7 +1735,7 @@ const makeDefaultItems = ({
|
|
|
1734
1735
|
name: "ruler",
|
|
1735
1736
|
command: "toggleRuler",
|
|
1736
1737
|
icon: toolbarIcons2.ruler,
|
|
1737
|
-
tooltip:
|
|
1738
|
+
tooltip: toolbarTexts2.ruler
|
|
1738
1739
|
});
|
|
1739
1740
|
const selectedLinkedStyle = ref(null);
|
|
1740
1741
|
const linkedStyles = useToolbarItem({
|
|
@@ -1742,8 +1743,8 @@ const makeDefaultItems = ({
|
|
|
1742
1743
|
name: "linkedStyles",
|
|
1743
1744
|
command: "setLinkedStyle",
|
|
1744
1745
|
icon: toolbarIcons2.paintbrush,
|
|
1745
|
-
defaultLabel:
|
|
1746
|
-
label:
|
|
1746
|
+
defaultLabel: toolbarTexts2.formatText,
|
|
1747
|
+
label: toolbarTexts2.formatText,
|
|
1747
1748
|
hasCaret: true,
|
|
1748
1749
|
isWide: true,
|
|
1749
1750
|
style: { width: "140px" },
|
|
@@ -1787,7 +1788,7 @@ const makeDefaultItems = ({
|
|
|
1787
1788
|
const lineHeight = useToolbarItem({
|
|
1788
1789
|
type: "dropdown",
|
|
1789
1790
|
name: "lineHeight",
|
|
1790
|
-
tooltip:
|
|
1791
|
+
tooltip: toolbarTexts2.lineHeight,
|
|
1791
1792
|
icon: toolbarIcons2.lineHeight,
|
|
1792
1793
|
hasCaret: false,
|
|
1793
1794
|
hasInlineTextInput: false,
|
|
@@ -2049,6 +2050,56 @@ const startImageUpload = async ({ editor, view, file }) => {
|
|
|
2049
2050
|
}
|
|
2050
2051
|
);
|
|
2051
2052
|
};
|
|
2053
|
+
const toolbarTexts = {
|
|
2054
|
+
bold: "Bold",
|
|
2055
|
+
fontFamily: "Font",
|
|
2056
|
+
ai: "AI text generation",
|
|
2057
|
+
fontSize: "Font size",
|
|
2058
|
+
italic: "Italic",
|
|
2059
|
+
underline: "Underline",
|
|
2060
|
+
highlight: "Highlight color",
|
|
2061
|
+
color: "Text color",
|
|
2062
|
+
search: "Search",
|
|
2063
|
+
link: "Link",
|
|
2064
|
+
image: "Image",
|
|
2065
|
+
table: "Insert table",
|
|
2066
|
+
addRowBefore: "Insert row above",
|
|
2067
|
+
addRowAfter: "Insert row below",
|
|
2068
|
+
addColumnBefore: "Insert column left",
|
|
2069
|
+
addColumnAfter: "Insert column right",
|
|
2070
|
+
deleteRow: "Delete row",
|
|
2071
|
+
deleteColumn: "Delete column",
|
|
2072
|
+
deleteTable: "Delete table",
|
|
2073
|
+
transparentBorders: "Transparent borders",
|
|
2074
|
+
mergeCells: "Merge cells",
|
|
2075
|
+
splitCell: "Split cell",
|
|
2076
|
+
fixTables: "Fix tables",
|
|
2077
|
+
textAlign: "Alignment",
|
|
2078
|
+
bulletList: "Bullet list",
|
|
2079
|
+
numberedList: "Numbered list",
|
|
2080
|
+
indentLeft: "Left indent",
|
|
2081
|
+
indentRight: "Right indent",
|
|
2082
|
+
zoom: "Zoom",
|
|
2083
|
+
undo: "Undo",
|
|
2084
|
+
redo: "Redo",
|
|
2085
|
+
trackChanges: "Track Changes",
|
|
2086
|
+
trackChangesAccept: "Accept changes under selection",
|
|
2087
|
+
trackChangesReject: "Reject changes under selection",
|
|
2088
|
+
trackChangesOriginal: "Toggle Show Original",
|
|
2089
|
+
trackChangesFinal: "Toggle Show Final",
|
|
2090
|
+
clearFormatting: "Clear formatting",
|
|
2091
|
+
copyFormat: "Format painter",
|
|
2092
|
+
lineHeight: "Line height",
|
|
2093
|
+
formatText: "Format text",
|
|
2094
|
+
ruler: "Show or hide ruler",
|
|
2095
|
+
pageBreak: "Insert page break",
|
|
2096
|
+
documentEditingMode: "Editing",
|
|
2097
|
+
documentSuggestingMode: "Suggesting",
|
|
2098
|
+
documentViewingMode: "Viewing",
|
|
2099
|
+
documentEditingModeDescription: "Edit document directly",
|
|
2100
|
+
documentSuggestingModeDescription: "Edits become suggestions",
|
|
2101
|
+
documentViewingModeDescription: "View clean version of document only"
|
|
2102
|
+
};
|
|
2052
2103
|
class SuperToolbar extends EventEmitter {
|
|
2053
2104
|
/**
|
|
2054
2105
|
* Creates a new SuperToolbar instance
|
|
@@ -2068,6 +2119,7 @@ class SuperToolbar extends EventEmitter {
|
|
|
2068
2119
|
role: "editor",
|
|
2069
2120
|
pagination: false,
|
|
2070
2121
|
icons: { ...toolbarIcons },
|
|
2122
|
+
texts: { ...toolbarTexts },
|
|
2071
2123
|
fonts: null,
|
|
2072
2124
|
hideButtons: true,
|
|
2073
2125
|
responsiveToContainer: false,
|
|
@@ -2340,6 +2392,7 @@ class SuperToolbar extends EventEmitter {
|
|
|
2340
2392
|
__privateMethod(this, _SuperToolbar_instances, makeToolbarItems_fn).call(this, {
|
|
2341
2393
|
superToolbar: this,
|
|
2342
2394
|
icons: this.config.icons,
|
|
2395
|
+
texts: this.config.texts,
|
|
2343
2396
|
fonts: this.config.fonts,
|
|
2344
2397
|
hideButtons: this.config.hideButtons,
|
|
2345
2398
|
isDev: this.isDev
|
|
@@ -2363,6 +2416,10 @@ class SuperToolbar extends EventEmitter {
|
|
|
2363
2416
|
...toolbarIcons,
|
|
2364
2417
|
...config.icons
|
|
2365
2418
|
};
|
|
2419
|
+
this.config.texts = {
|
|
2420
|
+
...toolbarTexts,
|
|
2421
|
+
...config.texts
|
|
2422
|
+
};
|
|
2366
2423
|
this.config.hideButtons = config.hideButtons ?? true;
|
|
2367
2424
|
this.config.responsiveToContainer = config.responsiveToContainer ?? false;
|
|
2368
2425
|
if (!this.config.selector && this.config.element) {
|
|
@@ -2376,6 +2433,7 @@ class SuperToolbar extends EventEmitter {
|
|
|
2376
2433
|
__privateMethod(this, _SuperToolbar_instances, makeToolbarItems_fn).call(this, {
|
|
2377
2434
|
superToolbar: this,
|
|
2378
2435
|
icons: this.config.icons,
|
|
2436
|
+
texts: this.config.texts,
|
|
2379
2437
|
fonts: this.config.fonts,
|
|
2380
2438
|
hideButtons: this.config.hideButtons,
|
|
2381
2439
|
isDev: config.isDev
|
|
@@ -2559,6 +2617,7 @@ _interceptedCommands = new WeakMap();
|
|
|
2559
2617
|
* @private
|
|
2560
2618
|
* @param {SuperToolbar} options.superToolbar - The toolbar instance
|
|
2561
2619
|
* @param {Object} options.icons - Icons to use for toolbar items
|
|
2620
|
+
* @param {Object} options.texts - Texts to use for toolbar items
|
|
2562
2621
|
* @param {Array} options.fonts - Fonts for the toolbar item
|
|
2563
2622
|
* @param {boolean} options.isDev - Whether in development mode
|
|
2564
2623
|
* @returns {void}
|
|
@@ -2566,6 +2625,7 @@ _interceptedCommands = new WeakMap();
|
|
|
2566
2625
|
makeToolbarItems_fn = function({
|
|
2567
2626
|
superToolbar,
|
|
2568
2627
|
icons: icons2,
|
|
2628
|
+
texts,
|
|
2569
2629
|
fonts,
|
|
2570
2630
|
hideButtons,
|
|
2571
2631
|
isDev = false
|
|
@@ -2576,6 +2636,7 @@ makeToolbarItems_fn = function({
|
|
|
2576
2636
|
const { defaultItems, overflowItems } = makeDefaultItems({
|
|
2577
2637
|
superToolbar,
|
|
2578
2638
|
toolbarIcons: icons2,
|
|
2639
|
+
toolbarTexts: texts,
|
|
2579
2640
|
toolbarFonts: fonts,
|
|
2580
2641
|
hideButtons,
|
|
2581
2642
|
availableWidth,
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-DmWvNj76.cjs");
|
|
4
4
|
require("./chunks/vue-DPZkajuO.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.BasicUpload = superEditor_es._sfc_main$1;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, _, C, D, E, a, S, b, c, d, T, e, f, i, g, h, j, k, l, m, n } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, _, C, D, E, a, S, b, c, d, T, e, f, i, g, h, j, k, l, m, n } from "./chunks/super-editor.es-C_GbwRpZ.es.js";
|
|
2
2
|
import "./chunks/vue-IIIZMHTg.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|