@baohu/canvas-editor-ui 1.0.0 → 1.1.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.id="canvas-editor-ui-style",e.appendChild(document.createTextNode(`.ceu-root{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:0;background:#f2f4f7;color:#3d4757;font-size:12px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;box-sizing:border-box}.ceu-root *,.ceu-dialog-container *{box-sizing:border-box}.ceu-main{position:relative;flex:1;min-height:0;overflow:auto}.ceu-editor>div{margin:20px auto}.ceu-icon{display:inline-block;width:16px;height:16px;background-repeat:no-repeat;background-size:100% 100%}.ceu-active{background:#19375814}.ceu-disabled{opacity:.4;pointer-events:none}.ceu-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 2px;padding:8px 12px;background:#f2f4f7;border-bottom:1px solid #e2e6ed;user-select:none}.ceu-toolbar__divider{width:1px;height:16px;margin:0 6px;background:#cfd2d8}.ceu-toolbar__button,.ceu-statusbar__button{position:relative;display:flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 4px;cursor:pointer}.ceu-toolbar__button:hover,.ceu-statusbar__button:hover,.ceu-select:hover{background:#1937580a}.ceu-toolbar__item.ceu-active>.ceu-toolbar__button,.ceu-toolbar__button.ceu-active{background:#19375814}.ceu-toolbar__text{margin-left:2px;white-space:nowrap}.ceu-toolbar__button--arrow:after,.ceu-select:after{content:"";width:0;height:0;margin-left:3px;border:3px solid transparent;border-top:4px solid #767c85;transform:translateY(2px)}.ceu-select{display:flex;align-items:center;justify-content:space-between;height:24px;padding:0 4px;cursor:pointer}.ceu-select__label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ceu-color{flex-direction:column}.ceu-color .ceu-icon{width:14px;height:12px}.ceu-color__bar{width:14px;height:3px;margin-top:1px;border:1px solid #e2e6ed}.ceu-color__input{position:absolute;left:0;bottom:0;width:0;height:0;padding:0;border:0;opacity:0;pointer-events:none}.ceu-dropdown{position:relative}.ceu-dropdown__panel{position:absolute;left:0;z-index:10;display:none;min-width:100%;padding:6px;background:#fff;border:1px solid #e2e6ed;border-radius:2px;box-shadow:0 2px 12px #38383833}.ceu-dropdown__panel--bottom{top:calc(100% + 4px)}.ceu-dropdown__panel--top{bottom:calc(100% + 4px)}.ceu-dropdown__panel--visible{display:block}.ceu-option-list{margin:0;padding:0;list-style:none;max-height:300px;overflow-y:auto}.ceu-option-list li{display:flex;align-items:center;gap:6px;padding:5px 10px;white-space:nowrap;cursor:pointer}.ceu-option-list li:hover{background:#ebecef}.ceu-option-list li.ceu-active{background:#e2e6ed}.ceu-table-picker__title{padding:2px 2px 6px;color:#3d4757}.ceu-table-picker__grid{display:grid;grid-template-columns:repeat(10,16px);gap:3px}.ceu-table-picker__grid span{width:16px;height:16px;border:1px solid #e2e6ed;cursor:pointer}.ceu-table-picker__grid span.ceu-active{background:#4991f226;border-color:#4991f280}.ceu-statusbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;min-height:30px;padding:2px 8px 2px 16px;background:#f2f4f7;border-top:1px solid #e2e6ed;user-select:none}.ceu-statusbar__left,.ceu-statusbar__right,.ceu-statusbar__group{display:flex;align-items:center;gap:4px}.ceu-statusbar__left{gap:12px}.ceu-statusbar__left>span{white-space:nowrap;letter-spacing:1px}.ceu-statusbar__scale,.ceu-statusbar__mode{display:inline-block;padding:0 6px;line-height:24px;white-space:nowrap;cursor:pointer}.ceu-statusbar__scale:hover,.ceu-statusbar__mode:hover{background:#1937580a}.ceu-statusbar .ceu-dropdown__panel{left:auto;right:0}.ceu-dialog-mask{position:fixed;inset:0;z-index:2000;background:#00000080}.ceu-dialog-container{position:fixed;inset:0;z-index:2001;display:flex;align-items:center;justify-content:center;overflow:auto;font-size:14px;color:#3d4757}.ceu-dialog{width:420px;max-width:calc(100vw - 32px);padding:0 24px 24px;background:#fff;border:1px solid #e2e6ed;border-radius:2px;box-shadow:0 2px 12px #38383833}.ceu-dialog__title{display:flex;align-items:center;justify-content:space-between;height:56px;margin-bottom:20px;border-bottom:1px solid #e2e6ed}.ceu-dialog__close{width:16px;height:16px;cursor:pointer;background:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.9%208.192l4.242%204.243-.707.707L8.192%208.9%203.95%2013.142l-.707-.707%204.242-4.243L3.243%203.95l.707-.707%204.242%204.242%204.243-4.242.707.707L8.9%208.192z'%20fill='%236A6A6A'%20fill-rule='evenodd'/%3e%3c/svg%3e") no-repeat}.ceu-dialog__field{display:flex;align-items:center;gap:12px;margin-bottom:16px}.ceu-dialog__label{position:relative;flex-shrink:0;width:64px;text-align:right}.ceu-dialog__label--required:before{content:"*";position:absolute;left:-8px;color:#f56c6c}.ceu-dialog__field input,.ceu-dialog__field textarea,.ceu-dialog__field select{flex:1;min-width:0;height:30px;padding:5px;font:inherit;border:1px solid #d3d3d3;border-radius:2px;outline:none}.ceu-dialog__field textarea{resize:vertical}.ceu-dialog__field input:focus,.ceu-dialog__field textarea:focus,.ceu-dialog__field select:focus{border-color:#4991f2}.ceu-dialog__field .ceu-dialog__input--error{border-color:#f56c6c}.ceu-dialog__footer{display:flex;justify-content:flex-end;gap:12px;margin-top:8px}.ceu-dialog__footer button{padding:0 16px;line-height:26px;font:inherit;background:#fff;border:1px solid #e2e6ed;border-radius:2px;cursor:pointer}.ceu-dialog__footer button:hover{background:#1937580a}.ceu-dialog__footer .ceu-dialog__confirm{color:#fff;background:#4991f2;border-color:#4991f2}.ceu-dialog__footer .ceu-dialog__confirm:hover{background:#5b9cf3}`)),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import
|
|
3
|
-
const
|
|
2
|
+
import X, { EDITOR_COMPONENT as T, EditorComponent as k, EditorMode as w, PageMode as S, PaperDirection as V, RowFlex as L, ElementType as E, TitleLevel as z, ListType as _, ListStyle as y, CheckboxMarkType as D, splitText as Y, ControlType as m } from "@baohu/canvas-editor";
|
|
3
|
+
const j = {
|
|
4
4
|
undo: "撤销",
|
|
5
5
|
redo: "重做",
|
|
6
6
|
painter: "格式刷(双击可连续使用)",
|
|
@@ -53,6 +53,8 @@ const Y = {
|
|
|
53
53
|
无`,
|
|
54
54
|
controlDateFormat: "日期格式",
|
|
55
55
|
checkbox: "复选框",
|
|
56
|
+
checkboxCross: "叉选",
|
|
57
|
+
checkboxCheck: "勾选",
|
|
56
58
|
date: "日期",
|
|
57
59
|
search: "查找替换",
|
|
58
60
|
searchKeyword: "查找",
|
|
@@ -83,18 +85,18 @@ const Y = {
|
|
|
83
85
|
modePrint: "打印模式",
|
|
84
86
|
modeDesign: "设计模式",
|
|
85
87
|
fullscreen: "全屏"
|
|
86
|
-
},
|
|
88
|
+
}, K = "ceu";
|
|
87
89
|
function c(a, n = {}, ...s) {
|
|
88
90
|
const e = document.createElement(a);
|
|
89
91
|
return Object.keys(n).forEach((t) => {
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
+
const o = n[t];
|
|
93
|
+
o === void 0 || o === !1 || (t === "class" ? e.className = String(o) : e.setAttribute(t, o === !0 ? "" : String(o)));
|
|
92
94
|
}), s.forEach((t) => {
|
|
93
95
|
t == null || t === !1 || e.append(t);
|
|
94
96
|
}), e;
|
|
95
97
|
}
|
|
96
98
|
function l(a) {
|
|
97
|
-
return `${
|
|
99
|
+
return `${K}-${a}`;
|
|
98
100
|
}
|
|
99
101
|
function G(a, n) {
|
|
100
102
|
let s = null;
|
|
@@ -107,23 +109,23 @@ function G(a, n) {
|
|
|
107
109
|
s && clearTimeout(s), s = null;
|
|
108
110
|
}, e;
|
|
109
111
|
}
|
|
110
|
-
function
|
|
112
|
+
function W(a) {
|
|
111
113
|
return new Promise((n, s) => {
|
|
112
114
|
const e = new FileReader();
|
|
113
115
|
e.onload = () => n(e.result), e.onerror = s, e.readAsDataURL(a);
|
|
114
116
|
});
|
|
115
117
|
}
|
|
116
|
-
function
|
|
118
|
+
function Z(a) {
|
|
117
119
|
return new Promise((n, s) => {
|
|
118
120
|
const e = new Image();
|
|
119
121
|
e.onload = () => n(e), e.onerror = s, e.src = a;
|
|
120
122
|
});
|
|
121
123
|
}
|
|
122
|
-
function
|
|
124
|
+
function J(a, n) {
|
|
123
125
|
const s = URL.createObjectURL(a);
|
|
124
126
|
c("a", { href: s, download: n }).click(), URL.revokeObjectURL(s);
|
|
125
127
|
}
|
|
126
|
-
function
|
|
128
|
+
function R(a, n) {
|
|
127
129
|
const s = (t) => String(t).padStart(2, "0"), e = `${a.getFullYear()}-${s(a.getMonth() + 1)}-${s(
|
|
128
130
|
a.getDate()
|
|
129
131
|
)}`;
|
|
@@ -131,28 +133,28 @@ function V(a, n) {
|
|
|
131
133
|
a.getSeconds()
|
|
132
134
|
)}` : e;
|
|
133
135
|
}
|
|
134
|
-
class
|
|
136
|
+
class I {
|
|
135
137
|
constructor(n) {
|
|
136
138
|
var s;
|
|
137
|
-
this.inputList = [], this.options = n, this.mask = c("div", { class: l("dialog-mask") }), this.container = this.render(), this.mask.setAttribute(
|
|
139
|
+
this.inputList = [], this.options = n, this.mask = c("div", { class: l("dialog-mask") }), this.container = this.render(), this.mask.setAttribute(T, k.COMPONENT), this.container.setAttribute(T, k.COMPONENT), document.body.append(this.mask, this.container), this.keydownHandler = (e) => {
|
|
138
140
|
e.key === "Escape" && this.close();
|
|
139
141
|
}, document.addEventListener("keydown", this.keydownHandler), (s = this.inputList[0]) == null || s.focus();
|
|
140
142
|
}
|
|
141
143
|
render() {
|
|
142
|
-
const { title: n, fields: s, confirmText: e = "确定", cancelText: t = "取消" } = this.options,
|
|
143
|
-
|
|
144
|
-
const
|
|
144
|
+
const { title: n, fields: s, confirmText: e = "确定", cancelText: t = "取消" } = this.options, o = c("i", { class: l("dialog__close") });
|
|
145
|
+
o.onclick = () => this.close();
|
|
146
|
+
const i = c("div", { class: l("dialog__body") });
|
|
145
147
|
s.forEach((g) => {
|
|
146
148
|
const u = this.createInput(g);
|
|
147
149
|
this.inputList.push(u);
|
|
148
|
-
const
|
|
150
|
+
const M = g.label ? c(
|
|
149
151
|
"span",
|
|
150
152
|
{
|
|
151
153
|
class: `${l("dialog__label")}${g.required ? ` ${l("dialog__label--required")}` : ""}`
|
|
152
154
|
},
|
|
153
155
|
g.label
|
|
154
156
|
) : null;
|
|
155
|
-
|
|
157
|
+
i.append(c("label", { class: l("dialog__field") }, M, u));
|
|
156
158
|
});
|
|
157
159
|
const r = c("button", { type: "button" }, t);
|
|
158
160
|
r.onclick = () => this.close();
|
|
@@ -165,8 +167,8 @@ class k {
|
|
|
165
167
|
const h = c(
|
|
166
168
|
"div",
|
|
167
169
|
{ class: l("dialog") },
|
|
168
|
-
c("div", { class: l("dialog__title") }, c("span", {}, n),
|
|
169
|
-
|
|
170
|
+
c("div", { class: l("dialog__title") }, c("span", {}, n), o),
|
|
171
|
+
i,
|
|
170
172
|
c("div", { class: l("dialog__footer") }, r, d)
|
|
171
173
|
);
|
|
172
174
|
return h.addEventListener("keydown", (g) => {
|
|
@@ -184,10 +186,10 @@ class k {
|
|
|
184
186
|
confirm() {
|
|
185
187
|
const { fields: n, onConfirm: s } = this.options, e = {};
|
|
186
188
|
let t = !0;
|
|
187
|
-
this.inputList.forEach((
|
|
188
|
-
e[
|
|
189
|
-
const r = n[
|
|
190
|
-
|
|
189
|
+
this.inputList.forEach((o, i) => {
|
|
190
|
+
e[o.name] = o.value;
|
|
191
|
+
const r = n[i].required && !o.value.trim();
|
|
192
|
+
o.classList.toggle(l("dialog__input--error"), !!r), r && (t = !1);
|
|
191
193
|
}), t && (s && s(e) === !1 || this.dispose());
|
|
192
194
|
}
|
|
193
195
|
close() {
|
|
@@ -198,13 +200,13 @@ class k {
|
|
|
198
200
|
document.removeEventListener("keydown", this.keydownHandler), this.mask.remove(), this.container.remove();
|
|
199
201
|
}
|
|
200
202
|
}
|
|
201
|
-
const
|
|
203
|
+
const x = /* @__PURE__ */ new Set();
|
|
202
204
|
function A(a) {
|
|
203
|
-
|
|
205
|
+
x.forEach((n) => {
|
|
204
206
|
n.el.contains(a.target) || n.close();
|
|
205
207
|
});
|
|
206
208
|
}
|
|
207
|
-
class
|
|
209
|
+
class C {
|
|
208
210
|
constructor(n, s, e = "bottom") {
|
|
209
211
|
this.panel = c(
|
|
210
212
|
"div",
|
|
@@ -213,16 +215,16 @@ class I {
|
|
|
213
215
|
), this.el = c("div", { class: l("dropdown") }, n, this.panel), n.addEventListener("click", () => this.toggle());
|
|
214
216
|
}
|
|
215
217
|
toggle() {
|
|
216
|
-
|
|
218
|
+
x.has(this) ? this.close() : this.open();
|
|
217
219
|
}
|
|
218
220
|
open() {
|
|
219
|
-
|
|
221
|
+
x.forEach((s) => s.close()), this.panel.classList.add(l("dropdown__panel--visible")), this.panel.style.left = "", this.panel.style.right = "", this.panel.getBoundingClientRect().right > window.innerWidth && (this.panel.style.left = "auto", this.panel.style.right = "0"), x.size || document.addEventListener("mousedown", A), x.add(this);
|
|
220
222
|
}
|
|
221
223
|
close() {
|
|
222
|
-
this.panel.classList.remove(l("dropdown__panel--visible")),
|
|
224
|
+
this.panel.classList.remove(l("dropdown__panel--visible")), x.delete(this), x.size || document.removeEventListener("mousedown", A);
|
|
223
225
|
}
|
|
224
226
|
}
|
|
225
|
-
function
|
|
227
|
+
function p(a, n) {
|
|
226
228
|
const s = c("ul", { class: l("option-list") });
|
|
227
229
|
return a.forEach((e) => {
|
|
228
230
|
const t = c(
|
|
@@ -234,15 +236,15 @@ function w(a, n) {
|
|
|
234
236
|
}) : null,
|
|
235
237
|
e.label
|
|
236
238
|
);
|
|
237
|
-
t.addEventListener("mousedown", (
|
|
239
|
+
t.addEventListener("mousedown", (o) => o.preventDefault()), t.addEventListener("click", () => n(e.value)), s.append(t);
|
|
238
240
|
}), s;
|
|
239
241
|
}
|
|
240
|
-
function
|
|
242
|
+
function b(a, n) {
|
|
241
243
|
a.querySelectorAll("li").forEach((s) => {
|
|
242
244
|
s.classList.toggle(l("active"), s.dataset.value === n);
|
|
243
245
|
});
|
|
244
246
|
}
|
|
245
|
-
const
|
|
247
|
+
const Q = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M9%209h1v4H9z'/%3e%3cpath%20d='M9%209h4v1H9zM7%207H6V3h1z'/%3e%3cpath%20d='M7%207H3V6h4z'/%3e%3c/g%3e%3c/svg%3e", ee = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(2%201)'%3e%3crect%20stroke='%233D4757'%20x='.5'%20y='.5'%20width='11'%20height='8'%20rx='1'/%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M2%203h4v1H2zm0%202h8v1H2z'/%3e%3c/g%3e%3cg%20fill='%233D4757'%20fill-rule='nonzero'%3e%3cpath%20d='M14%2015h-1v-5H3v5H2V9h12v6z'/%3e%3cpath%20d='M4%2012h4v1H4zm0%202h8v1H4z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", te = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%207V3h2v4h4v2H9v4H7V9H3V7h4z'%20fill='%23636363'%20fill-rule='evenodd'/%3e%3c/svg%3e", ne = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%207h10v2H3z'%20fill='%23636363'%20fill-rule='evenodd'/%3e%3c/svg%3e", se = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_1-文字_x2F_04页面_x2F_纸张方向-16px'%3e%3cg%20id='编组'%20transform='translate(1%201)'%3e%3cpath%20id='合并形状'%20class='st0'%20d='M14%206v7c0%20.6-.4%201-1%201H4c-.6%200-1-.4-1-1V6c0-.6.4-1%201-1h9c.6%200%201%20.4%201%201zm-1%200H4v7h9V6z'/%3e%3cpath%20id='路径'%20class='st0'%20d='M9%204H8V1H1v9h1v1H1c-.6%200-1-.4-1-1V1c0-.6.4-1%201-1h7c.6%200%201%20.4%201%201v3z'/%3e%3cpath%20id='矩形'%20class='st0'%20d='M11%207h1v5h-1z'/%3e%3cpath%20id='矩形-copy-2'%20class='st0'%20d='M2%202h5v1H2z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", ae = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3crect%20stroke='%233D4757'%20x='2.5'%20y='1.5'%20width='11'%20height='13'%20rx='1'/%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M3%204h10v1H3zm0%207h10v1H3z'/%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M5%2014V2h1v12zm5%200V2h1v12z'/%3e%3c/g%3e%3c/svg%3e", B = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M3%203h1v4H3z'/%3e%3cpath%20d='M3%203h4v1H3zm10%2010h-1V9h1z'/%3e%3cpath%20d='M13%2013H9v-1h4z'/%3e%3c/g%3e%3c/svg%3e", U = [
|
|
246
248
|
"pageNo",
|
|
247
249
|
"wordCount",
|
|
248
250
|
"rowCol",
|
|
@@ -251,8 +253,8 @@ const J = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://
|
|
|
251
253
|
"paperDirection",
|
|
252
254
|
"paperMargin",
|
|
253
255
|
"fullscreen"
|
|
254
|
-
],
|
|
255
|
-
function
|
|
256
|
+
], oe = ["pageNo", "wordCount", "rowCol"];
|
|
257
|
+
function H(a, n, s) {
|
|
256
258
|
const e = c(
|
|
257
259
|
"div",
|
|
258
260
|
{ class: l("statusbar__button"), title: n },
|
|
@@ -261,121 +263,121 @@ function M(a, n, s) {
|
|
|
261
263
|
return e.addEventListener("click", s), e;
|
|
262
264
|
}
|
|
263
265
|
class ie {
|
|
264
|
-
constructor(n, s =
|
|
265
|
-
this.disposeList = [], this.updaterList = [], this.on = (
|
|
266
|
+
constructor(n, s = U) {
|
|
267
|
+
this.disposeList = [], this.updaterList = [], this.on = (o, i) => {
|
|
266
268
|
const { eventBus: r } = this.ui.editor;
|
|
267
|
-
r.on(
|
|
269
|
+
r.on(o, i), this.disposeList.push(() => r.off(o, i));
|
|
268
270
|
}, this.ui = n;
|
|
269
271
|
const e = c("div", { class: l("statusbar__left") }), t = c("div", { class: l("statusbar__right") });
|
|
270
|
-
this.el = c("div", { class: l("statusbar") }, e, t), this.el.setAttribute(
|
|
271
|
-
const
|
|
272
|
-
|
|
272
|
+
this.el = c("div", { class: l("statusbar") }, e, t), this.el.setAttribute(T, k.FOOTER), this.el.addEventListener("mousedown", (o) => o.preventDefault()), s.forEach((o) => {
|
|
273
|
+
const i = this.createItem(o);
|
|
274
|
+
i && (i.classList.add(l("statusbar__item")), (oe.includes(o) ? e : t).append(i));
|
|
273
275
|
});
|
|
274
276
|
}
|
|
275
277
|
createItem(n) {
|
|
276
278
|
const { editor: s, locale: e } = this.ui;
|
|
277
279
|
switch (n) {
|
|
278
280
|
case "pageNo": {
|
|
279
|
-
const t = c("span", {}, "1"),
|
|
280
|
-
return this.on("intersectionPageNoChange", (
|
|
281
|
-
t.innerText = String(
|
|
282
|
-
}), this.on("pageSizeChange", (
|
|
283
|
-
|
|
284
|
-
}), c("span", {}, `${e.pageNo}:`, t, "/",
|
|
281
|
+
const t = c("span", {}, "1"), o = c("span", {}, String(this.ui.getPageSize()));
|
|
282
|
+
return this.on("intersectionPageNoChange", (i) => {
|
|
283
|
+
t.innerText = String(i + 1);
|
|
284
|
+
}), this.on("pageSizeChange", (i) => {
|
|
285
|
+
o.innerText = String(i);
|
|
286
|
+
}), c("span", {}, `${e.pageNo}:`, t, "/", o);
|
|
285
287
|
}
|
|
286
288
|
case "wordCount": {
|
|
287
|
-
const t = c("span", {}, "0"),
|
|
289
|
+
const t = c("span", {}, "0"), o = G(async () => {
|
|
288
290
|
t.innerText = String(await s.command.getWordCount());
|
|
289
291
|
}, 300);
|
|
290
|
-
return this.on("contentChange",
|
|
292
|
+
return this.on("contentChange", o), this.disposeList.push(o.cancel), o(), c("span", {}, `${e.wordCount}:`, t);
|
|
291
293
|
}
|
|
292
294
|
case "rowCol": {
|
|
293
295
|
const t = c("span", {}, "1:1");
|
|
294
296
|
return this.on("rangeStyleChange", () => {
|
|
295
|
-
const
|
|
296
|
-
|
|
297
|
+
const o = s.command.getRangeContext();
|
|
298
|
+
o && (t.innerText = `${o.startRowNo + 1}:${o.startColNo + 1}`);
|
|
297
299
|
}), c("span", {}, `${e.rowCol}:`, t);
|
|
298
300
|
}
|
|
299
301
|
case "pageMode": {
|
|
300
|
-
const t =
|
|
301
|
-
}),
|
|
302
|
+
const t = H(ee, "", () => {
|
|
303
|
+
}), o = p(
|
|
302
304
|
[
|
|
303
305
|
{ label: e.pageModePaging, value: S.PAGING },
|
|
304
306
|
{ label: e.pageModeContinuity, value: S.CONTINUITY }
|
|
305
307
|
],
|
|
306
308
|
(d) => {
|
|
307
|
-
|
|
309
|
+
i.close(), s.command.executePageMode(d);
|
|
308
310
|
}
|
|
309
|
-
),
|
|
310
|
-
|
|
311
|
+
), i = new C(t, o, "top"), r = (d) => {
|
|
312
|
+
b(o, d), t.title = d === S.CONTINUITY ? e.pageModeContinuity : e.pageModePaging;
|
|
311
313
|
};
|
|
312
|
-
return r(s.command.getOptions().pageMode), this.on("pageModeChange", r),
|
|
314
|
+
return r(s.command.getOptions().pageMode), this.on("pageModeChange", r), i.el;
|
|
313
315
|
}
|
|
314
316
|
case "scale": {
|
|
315
317
|
const t = c("span", {
|
|
316
318
|
class: l("statusbar__scale"),
|
|
317
319
|
title: e.scaleRecovery
|
|
318
|
-
}),
|
|
319
|
-
t.innerText = `${Math.round(
|
|
320
|
+
}), o = (i) => {
|
|
321
|
+
t.innerText = `${Math.round(i * 100)}%`;
|
|
320
322
|
};
|
|
321
|
-
return
|
|
323
|
+
return o(s.command.getOptions().scale), this.on("pageScaleChange", o), t.addEventListener(
|
|
322
324
|
"click",
|
|
323
325
|
() => s.command.executePageScaleRecovery()
|
|
324
326
|
), c(
|
|
325
327
|
"div",
|
|
326
328
|
{ class: l("statusbar__group") },
|
|
327
|
-
|
|
328
|
-
|
|
329
|
+
H(
|
|
330
|
+
ne,
|
|
329
331
|
e.scaleMinus,
|
|
330
332
|
() => s.command.executePageScaleMinus()
|
|
331
333
|
),
|
|
332
334
|
t,
|
|
333
|
-
|
|
334
|
-
|
|
335
|
+
H(
|
|
336
|
+
te,
|
|
335
337
|
e.scaleAdd,
|
|
336
338
|
() => s.command.executePageScaleAdd()
|
|
337
339
|
)
|
|
338
340
|
);
|
|
339
341
|
}
|
|
340
342
|
case "paperDirection":
|
|
341
|
-
return
|
|
343
|
+
return H(se, e.paperDirection, () => {
|
|
342
344
|
const { paperDirection: t } = s.command.getOptions();
|
|
343
345
|
s.command.executePaperDirection(
|
|
344
|
-
t ===
|
|
346
|
+
t === V.HORIZONTAL ? V.VERTICAL : V.HORIZONTAL
|
|
345
347
|
);
|
|
346
348
|
});
|
|
347
349
|
case "paperMargin":
|
|
348
|
-
return
|
|
349
|
-
|
|
350
|
+
return H(
|
|
351
|
+
ae,
|
|
350
352
|
e.paperMargin,
|
|
351
353
|
() => this.openPaperMarginDialog()
|
|
352
354
|
);
|
|
353
355
|
case "mode": {
|
|
354
356
|
const t = [
|
|
355
|
-
{ label: e.modeEdit, value:
|
|
356
|
-
{ label: e.modeClean, value:
|
|
357
|
-
{ label: e.modeReadonly, value:
|
|
358
|
-
{ label: e.modeForm, value:
|
|
359
|
-
{ label: e.modePrint, value:
|
|
360
|
-
{ label: e.modeDesign, value:
|
|
361
|
-
],
|
|
357
|
+
{ label: e.modeEdit, value: w.EDIT },
|
|
358
|
+
{ label: e.modeClean, value: w.CLEAN },
|
|
359
|
+
{ label: e.modeReadonly, value: w.READONLY },
|
|
360
|
+
{ label: e.modeForm, value: w.FORM },
|
|
361
|
+
{ label: e.modePrint, value: w.PRINT },
|
|
362
|
+
{ label: e.modeDesign, value: w.DESIGN }
|
|
363
|
+
], o = c("span", { class: l("statusbar__mode") }), i = p(t, (h) => {
|
|
362
364
|
r.close(), this.ui.setMode(h);
|
|
363
|
-
}), r = new
|
|
365
|
+
}), r = new C(o, i, "top"), d = () => {
|
|
364
366
|
var g;
|
|
365
367
|
const h = s.command.getOptions().mode;
|
|
366
|
-
|
|
368
|
+
o.innerText = ((g = t.find((u) => u.value === h)) == null ? void 0 : g.label) || h, b(i, h);
|
|
367
369
|
};
|
|
368
370
|
return d(), this.updaterList.push(d), r.el;
|
|
369
371
|
}
|
|
370
372
|
case "fullscreen": {
|
|
371
|
-
const t =
|
|
373
|
+
const t = H(B, e.fullscreen, () => {
|
|
372
374
|
document.fullscreenElement ? document.exitFullscreen() : this.ui.root.requestFullscreen();
|
|
373
|
-
}),
|
|
374
|
-
const
|
|
375
|
-
t.querySelector("i").style.backgroundImage = `url("${
|
|
375
|
+
}), o = () => {
|
|
376
|
+
const i = document.fullscreenElement ? Q : B;
|
|
377
|
+
t.querySelector("i").style.backgroundImage = `url("${i}")`;
|
|
376
378
|
};
|
|
377
|
-
return document.addEventListener("fullscreenchange",
|
|
378
|
-
() => document.removeEventListener("fullscreenchange",
|
|
379
|
+
return document.addEventListener("fullscreenchange", o), this.disposeList.push(
|
|
380
|
+
() => document.removeEventListener("fullscreenchange", o)
|
|
379
381
|
), t;
|
|
380
382
|
}
|
|
381
383
|
default:
|
|
@@ -388,23 +390,23 @@ class ie {
|
|
|
388
390
|
s.marginRight,
|
|
389
391
|
s.marginBottom,
|
|
390
392
|
s.marginLeft
|
|
391
|
-
],
|
|
392
|
-
new
|
|
393
|
+
], o = n.command.getPaperMargin();
|
|
394
|
+
new I({
|
|
393
395
|
title: s.paperMargin,
|
|
394
396
|
confirmText: s.confirm,
|
|
395
397
|
cancelText: s.cancel,
|
|
396
|
-
fields: e.map((
|
|
398
|
+
fields: e.map((i, r) => ({
|
|
397
399
|
type: "number",
|
|
398
|
-
name:
|
|
400
|
+
name: i,
|
|
399
401
|
label: t[r],
|
|
400
402
|
required: !0,
|
|
401
|
-
value: String(
|
|
403
|
+
value: String(o[r])
|
|
402
404
|
})),
|
|
403
|
-
onConfirm: (
|
|
405
|
+
onConfirm: (i) => {
|
|
404
406
|
const [r, d, h, g] = e.map(
|
|
405
|
-
(
|
|
407
|
+
(M) => Number(i[M])
|
|
406
408
|
), u = [r, d, h, g];
|
|
407
|
-
if (u.some((
|
|
409
|
+
if (u.some((M) => isNaN(M) || M < 0)) return !1;
|
|
408
410
|
n.command.executeSetPaperMargin(u);
|
|
409
411
|
}
|
|
410
412
|
});
|
|
@@ -417,7 +419,7 @@ class ie {
|
|
|
417
419
|
this.disposeList.forEach((n) => n()), this.el.remove();
|
|
418
420
|
}
|
|
419
421
|
}
|
|
420
|
-
const oe = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2013h12v1H2v-1zm0-3h12v1H2v-1zm0-3h12v1H2V7zm0-6h12v1H2V1zm0%203h12v1H2V4z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", ce = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.131%206.9c2.035%200%202.569-.9%202.569-1.869%200-.968-.64-1.831-2.623-1.831H5.2v3.7h2.931zm.524%205.9c2.045%200%202.545-1.305%202.545-2.3%200-.985-.506-2.4-2.81-2.4H5.2v4.7h3.455zM4%202h4.71c2.367%200%203.19%201.583%203.19%203s-.325%201.852-1.1%202.5c1.2.5%201.569%201.379%201.6%203%20.03%201.606-.586%203.5-3.769%203.5H4V2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", le = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2013h12v1H2v-1zm2-3h8v1H4v-1zM2%207h12v1H2V7zm0-6h12v1H2V1zm2%203h8v1H4V4z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", re = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_1-文字_x2F_01开始_x2F_任务列表-16px'%3e%3cpath%20id='合并形状'%20class='st0'%20d='M10.1%202H2v11h11V8.7l1-1V13c0%20.6-.4%201-1%201H2c-.6%200-1-.4-1-1V2c0-.6.4-1%201-1h9.1l-1%201z'/%3e%3cpath%20id='路径'%20class='st0'%20d='M7.7%208.5l5.7-5.8.9.8-6.1%205.9-.5.5-3.9-3.4.8-.7z'/%3e%3c/g%3e%3c/svg%3e", de = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.997%203.429L6.398%208h3.2L7.997%203.429zM8.497%202L12%2012h-1L9.949%209h-3.9L5%2012H4L7.496%202h1z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", he = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M9.793%201.5H3a.5.5%200%2000-.5.5v12a.5.5%200%2000.5.5h9a.5.5%200%2000.5-.5V4.207L9.793%201.5z'%20stroke='%233D4757'/%3e%3cg%20fill='%233D4757'%3e%3cpath%20d='M7%207h1v5H7z'/%3e%3cpath%20d='M5%207h5v1H5z'/%3e%3c/g%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M9%202h1v3H9z'/%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M9%204h3v1H9z'/%3e%3c/g%3e%3c/svg%3e", ge = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M7.5%2014.154a5.654%205.654%200%20100-11.308%205.654%205.654%200%20000%2011.308zm0%20.846a6.5%206.5%200%20110-13%206.5%206.5%200%20010%2013z'%20fill-rule='nonzero'/%3e%3cpath%20d='M8%208h4v1H7V4h1v4z'/%3e%3c/g%3e%3c/svg%3e", ve = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M8.213%2013H6.8l6.636-6.636-4.243-4.243-7.07%207.071L5.928%2013H4.515L1.06%209.546a.5.5%200%20010-.707L8.839%201.06a.5.5%200%2001.707%200l4.95%204.95a.5.5%200%20010%20.707L8.213%2013z'%20fill-rule='nonzero'/%3e%3cpath%20d='M4.536%206.364l4.95%204.95-.707.707-4.95-4.95zM4.521%2013h10.03v1H5.496z'/%3e%3c/g%3e%3c/svg%3e", ue = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M13.31%205h-1.92a2.203%202.203%200%2000-.39-.034c-.135%200-.27.012-.402.034H10v.18c-.578.256-1%20.714-1%201.214v1.928c0%20.196.117.43.3.658v1.23a3.543%203.543%200%2001-.3-.4V11H8V1h1v4.265C9%204.763%2010%204%2010.942%204c1.19%200%201.92.422%202.367%201zM2%206c-.03-.498-.175-2%202.5-2C7.11%204%207%205%207%206.902V11H5.984v-.993c.38.662-.115.993-1.484.993C2.708%2011%202%209.931%202%209c0-1.428.447-2%202.5-2h1.484c0-1%20.031-2-1.484-2-1.533%200-1.577.485-1.577%201H2zm2.5%202C3.601%208%203%207.768%203%209c0%201.31.438%201%201.5%201%20.617%200%201.484-.665%201.484-1.847V8H4.5z'/%3e%3cpath%20d='M13.085%206.316l-2.814%203a1%201%200%20101.458%201.368l2.815-3a1%201%200%2000-1.459-1.368z'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e", me = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='rotate(45%205.5%2013.328)'%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M7%206H6V3.515a2.5%202.5%200%2010-5%200V6H0V3.515a3.5%203.5%200%20117%200V6zm0%204v2.5a3.5%203.5%200%2001-7%200V10h1v2.5a2.5%202.5%200%20105%200V10h1z'%20fill-rule='nonzero'/%3e%3crect%20x='3.062'%20y='5.209'%20width='1'%20height='5.5'%20rx='.5'/%3e%3c/g%3e%3c/svg%3e", pe = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_0-公共_x2F_02工具栏_x2F_插入图片-16px-'%3e%3cg%20id='Group-19'%20transform='translate(1%201)'%3e%3cpath%20id='Combined-Shape'%20class='st0'%20d='M1%200h12c.6%200%201%20.4%201%201v11c0%20.6-.4%201-1%201H1c-.6%200-1-.4-1-1V1c0-.6.4-1%201-1zm0%201v11h12V1H1z'/%3e%3ccircle%20id='椭圆形'%20class='st0'%20cx='10'%20cy='4'%20r='1'/%3e%3cpath%20id='Path'%20class='st0'%20d='M8.5%2011.2l-4-4.1L1%2010.7V9.2c1.7-1.6%202.7-2.5%203-2.8.4-.5.7-.4%201%200L8.5%2010%2011%207.3c.4-.5.6-.5%201-.1l2%202.8v1.5l-2.5-3.4-3%203.1z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", we = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.017%203L8.08%2013H9v1H6v-1h1.182L9%203H8V2h3v1h-.983z'%20fill='%233D4757'/%3e%3c/svg%3e", fe = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20stroke='%233D4757'%20fill='%233D4757'%20d='M2%2010.5H14M2%2013.5H14'%20stroke-linecap='round'%20stroke-linejoin='miter'%3e%3c/path%3e%3cpath%20stroke='%233D4757'%20fill='%233D4757'%20d='M14%203.5L12%201.5M14%203.5L12%205.5M14%203.5L2%203.5M4%201.5L2%203.5M2%203.5L4%205.5'%20stroke-linecap='round'%20stroke-linejoin='miter'%3e%3c/path%3e%3c/svg%3e", xe = "data:image/svg+xml,%3csvg%20height='16'%20viewBox='0%200%2016%2016'%20width='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2013h12v1H2zm0-3h8v1H2zm0-3h12v1H2zm0-6h12v1H2zm0%203h8v1H2z'%20fill='%233d4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", be = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M7%2012h7v1H7zm0-5h7v1H7zm0-5h7v1H7zM3%204V2H2V1h2v3h1v1H2V4h1z'/%3e%3cpath%20d='M2%206h3v1H2V6zm0%203h3v1H2V9z'%20fill='%234F4F4F'/%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M4.5%206L5%207l-2.5%203L2%209z'/%3e%3cpath%20d='M4%2014l-1-2H2v-1h3v1H4l1%202v1H2v-1h2z'%20fill='%233D4757'/%3e%3c/g%3e%3c/svg%3e", Me = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:none;stroke:%233d4757}.st1{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_1-文字_x2F_02插入_x2F_分页-16px'%3e%3cpath%20id='矩形'%20class='st0'%20d='M5.5%202.5h7c.6%200%201%20.4%201%201v3c0%20.6-.4%201-1%201h-7c-.6%200-1-.4-1-1v-3c0-.6.4-1%201-1z'/%3e%3cpath%20id='三角形'%20class='st1'%20d='M4%208.5L1%206v5z'/%3e%3cpath%20id='合并形状'%20class='st0'%20d='M10.8%209.5H5c-.3%200-.5.2-.5.5v4c0%20.3.2.5.5.5h8c.3%200%20.5-.2.5-.5v-1.8l-2.7-2.7z'/%3e%3cpath%20id='矩形_1_'%20class='st1'%20d='M10%2010h1v3h-1z'/%3e%3cpath%20id='矩形-copy-2'%20class='st1'%20d='M10%2012h3v1h-3z'/%3e%3c/g%3e%3c/svg%3e", B = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M7.5%202v2.5H4a.5.5%200%2000-.5.5v2a.5.5%200%2000.5.5h9a.5.5%200%2000.5-.5V5a.5.5%200%2000-.5-.5H9.5V2a.5.5%200%2000-.5-.5H8a.5.5%200%2000-.5.5z'%20stroke='%233D4757'/%3e%3cpath%20fill='%233D4757'%20d='M13%207h1v4h-1z'/%3e%3cpath%20d='M11%2013a2%202%200%20002-2V8.764A3%203%200%20118.764%2013H11z'%20fill='%233D4757'/%3e%3cpath%20fill='%233D4757'%20d='M1%2013h10v1H1z'/%3e%3cpath%20d='M1%2013a2%202%200%20002-2V8.764A3%203%200%20011%2014v-1z'%20fill='%233D4757'/%3e%3cpath%20fill='%233D4757'%20d='M3%207h1v4H3z'/%3e%3c/g%3e%3c/svg%3e", ze = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M10%201l4%204v9a1%201%200%2001-1%201H3a1%201%200%2001-1-1V2a1%201%200%20011-1h7zm-.414%201H3v12h10V5.414L9.586%202z'/%3e%3cpath%20d='M9%201h1v4h4v1H9z'/%3e%3cpath%20d='M8%207h1v4.293l1.646-1.647.708.708L8.5%2013.207l-2.854-2.853.708-.708L8%2011.293z'%20transform='translate(-.5)'/%3e%3c/g%3e%3c/svg%3e", He = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M12%204h-1V2H5v2H4V2a1%201%200%20011-1h6a1%201%200%20011%201v2zm0%205v4a1%201%200%2001-1%201H5a1%201%200%2001-1-1V9h1v4h6V9h1z'/%3e%3cpath%20d='M12%2012v-1h2V5H2v6h2v1H2a1%201%200%2001-1-1V5a1%201%200%20011-1h12a1%201%200%20011%201v6a1%201%200%2001-1%201h-2z'/%3e%3cpath%20d='M3%208h10v1H3zm8-2h2v1h-2z'/%3e%3c/g%3e%3c/svg%3e", Le = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%2014v-3a4%204%200%20014-4h3V6H7a5%205%200%2000-5%205v3h1zm7.016-11.282v7.543l4.29-3.73z'%20fill='%233D4757'/%3e%3c/svg%3e", _e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2013h12v1H2v-1zm4-3h8v1H6v-1zM2%207h12v1H2V7zm0-6h12v1H2V1zm4%203h8v1H6V4z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", ye = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2014h12v1H2v-1zm7-5h5v1H9V9zm0-3h5v1H9V6zM2%201h12v1H2V1zm2.5%203L7%207H2zm0%208L7%209H2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", De = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3ccircle%20stroke='%233D4757'%20cx='6'%20cy='6'%20r='4.5'/%3e%3cpath%20d='M10.061%2010.968L8.707%209.414l.707-.707%201.514%201.457.435-.404%202.632%202.462a1.154%201.154%200%2001.05%201.635%201.184%201.184%200%2001-1.655.064l-2.788-2.527.46-.426z'%20fill='%233D4757'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e", Ee = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.9%202.8l2.01%202.506c.2.25.58.25.78%200L8.7%202.799l2.01%202.507c.2.25.58.25.78%200l2.4-2.993-.78-.626-2.01%202.507-2.01-2.507a.5.5%200%2000-.78%200L6.3%204.194%204.29%201.687a.5.5%200%2000-.78%200l-2.4%203%20.78.625L3.9%202.8zM1%208h13v1H1zm0%204h3v1H1zm5%200h3v1H6zm5%200h3v1h-3z'%20fill='%233D4757'/%3e%3c/svg%3e", Te = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M6.215%203.29H7.64L11.855%2014H10.52l-1.14-3H4.46l-1.14%203H2L6.215%203.29zM4.85%209.965h4.14L6.965%204.61h-.06L4.85%209.965z'/%3e%3cpath%20d='M12%204V2h1v2h2v1h-2v2h-1V5h-2V4h2z'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e", Ie = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20fill-rule='nonzero'%20d='M11%204h4v1h-4z'/%3e%3cpath%20d='M6.215%203.29H7.64L11.855%2014H10.52l-1.14-3H4.46l-1.14%203H2L6.215%203.29zM4.85%209.965h4.14L6.965%204.61h-.06L4.85%209.965z'/%3e%3c/g%3e%3c/svg%3e", ke = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M10.42%207.903H6.692a9.182%209.182%200%2001-.41-.172%205.54%205.54%200%2001-.814-.447%202.955%202.955%200%2001-.655-.595%202.728%202.728%200%2001-.44-.777%202.877%202.877%200%2001-.162-1.006c0-.472.094-.888.282-1.25.188-.36.453-.663.793-.907s.747-.43%201.22-.558A5.97%205.97%200%20018.063%202c.504%200%20.95.049%201.337.147.387.097.725.23%201.013.398.287.169.53.365.73.59a3.337%203.337%200%2001.772%201.486c.03.13.054.255.073.379h-1.276a2.393%202.393%200%2000-.22-.615%202.315%202.315%200%2000-.59-.724%202.467%202.467%200%2000-.834-.44%203.376%203.376%200%2000-1.005-.146%204.69%204.69%200%2000-.958.097%202.77%202.77%200%2000-.839.314%201.765%201.765%200%2000-.597.566c-.152.233-.229.518-.229.854%200%20.348.086.642.258.884.171.241.401.449.689.622.287.174.615.323.983.448s.749.247%201.142.367c.31.097.62.196.934.297a8.439%208.439%200%2001.973.38zm1.376%201c.175.217.315.466.418.746.105.285.158.612.158.98%200%20.554-.104%201.041-.312%201.462-.207.42-.496.772-.867%201.054-.37.282-.81.495-1.32.64A6.12%206.12%200%20018.205%2014c-.543%200-1.071-.09-1.586-.273a4.44%204.44%200%2001-1.374-.773%203.873%203.873%200%2001-.97-1.217%203.695%203.695%200%2001-.395-1.612h1.27c.028.407.122.78.282%201.12a2.835%202.835%200%20001.581%201.465c.363.138.76.207%201.192.207.387%200%20.758-.042%201.112-.126a2.85%202.85%200%2000.938-.399%202.01%202.01%200%2000.647-.708c.16-.29.241-.642.241-1.054%200-.337-.087-.623-.261-.86a2.333%202.333%200%2000-.69-.61%204.651%204.651%200%2000-.495-.257h2.099z'/%3e%3cpath%20d='M3%207h10v1H3z'/%3e%3c/g%3e%3c/svg%3e", Se = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_0-公共_x2F_02工具栏_x2F_subscript'%3e%3cpath%20id='_x32_'%20class='st0'%20d='M15%2013.3v.7h-3c0-.3.1-.5.3-.8.2-.2.5-.6%201-1%20.4-.3.6-.5.7-.7.1-.2.2-.3.2-.5s-.1-.3-.2-.4c-.1-.1-.2-.1-.4-.1s-.3%200-.4.1-.2.4-.2.7l-.9-.1c.1-.4.2-.7.5-.9.3-.2.6-.3%201-.3s.8.1%201%20.3c.3.2.4.5.4.8%200%20.2%200%20.4-.1.5-.1.2-.2.3-.3.5-.1.1-.3.3-.6.5s-.4.4-.5.4c-.1.1-.1.2-.2.3H15z'/%3e%3cpath%20id='合并形状'%20class='st0'%20d='M7.2%208.5l4%205.5H9.8L6.5%209.4%203.2%2014H1.8l4-5.5-4-5.5h1.4l3.3%204.6L9.8%203h1.3L7.2%208.5z'/%3e%3c/g%3e%3c/svg%3e", Ce = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_0-公共_x2F_02工具栏_x2F_superscript'%3e%3cpath%20id='_x32_'%20class='st0'%20d='M15%206.3V7h-3c0-.3.1-.5.3-.8.2-.2.5-.6%201-1%20.3-.2.6-.5.7-.6.1-.2.2-.3.2-.5s-.1-.3-.2-.4c-.1-.1-.2-.1-.4-.1s-.3%200-.4.1-.2.3-.2.6l-.9-.1c.1-.4.2-.7.5-.9s.6-.3%201-.3.8.1%201%20.3c.3.2.4.5.4.8%200%20.2%200%20.4-.1.5s-.2.4-.4.5c-.1.1-.3.3-.6.5s-.4.4-.4.5c-.1.1-.1.2-.2.3l1.7-.1z'/%3e%3cpath%20id='合并形状'%20class='st0'%20d='M7.4%208.5l4%205.5H10L6.7%209.4%203.4%2014H2l4-5.5L2%203h1.4l3.3%204.6L10%203h1.3L7.4%208.5z'/%3e%3c/g%3e%3c/svg%3e", Ve = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3crect%20x='.5'%20y='.5'%20width='12'%20height='12'%20rx='1'%20transform='translate(1%201)'%20stroke='%233D4757'/%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M2%209h12v1H2zm0-4h12v1H2z'/%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M5%201h1v13H5zm4%200h1v13H9z'/%3e%3c/g%3e%3c/svg%3e", Ae = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M14%201a1%201%200%20011%201v12a1%201%200%2001-1%201H2a1%201%200%2001-1-1V2a1%201%200%20011-1h12zm0%201H2v12h12V2z'%20fill-rule='nonzero'/%3e%3cpath%20fill-rule='nonzero'%20d='M4%2011h8v1H4zm0-3h4v1H4zm0-3h2v1H4z'/%3e%3cpath%20d='M9%205h1v4H9z'/%3e%3cpath%20d='M7%205h5v1H7z'/%3e%3c/g%3e%3c/svg%3e", Re = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%202v6a3%203%200%20106%200V2h1v6a4%204%200%2011-8%200V2h1zM4%2013h8v1H4z'%20fill='%233D4757'/%3e%3c/svg%3e", Be = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%202.763v7.544l-4.29-3.73zM13%2014v-3a4%204%200%2000-4-4H6V6h3a5%205%200%20015%205v3h-1z'%20fill='%233D4757'/%3e%3c/svg%3e", $e = [
|
|
422
|
+
const ce = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2013h12v1H2v-1zm0-3h12v1H2v-1zm0-3h12v1H2V7zm0-6h12v1H2V1zm0%203h12v1H2V4z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", le = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.131%206.9c2.035%200%202.569-.9%202.569-1.869%200-.968-.64-1.831-2.623-1.831H5.2v3.7h2.931zm.524%205.9c2.045%200%202.545-1.305%202.545-2.3%200-.985-.506-2.4-2.81-2.4H5.2v4.7h3.455zM4%202h4.71c2.367%200%203.19%201.583%203.19%203s-.325%201.852-1.1%202.5c1.2.5%201.569%201.379%201.6%203%20.03%201.606-.586%203.5-3.769%203.5H4V2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", re = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2013h12v1H2v-1zm2-3h8v1H4v-1zM2%207h12v1H2V7zm0-6h12v1H2V1zm2%203h8v1H4V4z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", de = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_1-文字_x2F_01开始_x2F_任务列表-16px'%3e%3cpath%20id='合并形状'%20class='st0'%20d='M10.1%202H2v11h11V8.7l1-1V13c0%20.6-.4%201-1%201H2c-.6%200-1-.4-1-1V2c0-.6.4-1%201-1h9.1l-1%201z'/%3e%3cpath%20id='路径'%20class='st0'%20d='M7.7%208.5l5.7-5.8.9.8-6.1%205.9-.5.5-3.9-3.4.8-.7z'/%3e%3c/g%3e%3c/svg%3e", he = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.997%203.429L6.398%208h3.2L7.997%203.429zM8.497%202L12%2012h-1L9.949%209h-3.9L5%2012H4L7.496%202h1z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", ge = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M9.793%201.5H3a.5.5%200%2000-.5.5v12a.5.5%200%2000.5.5h9a.5.5%200%2000.5-.5V4.207L9.793%201.5z'%20stroke='%233D4757'/%3e%3cg%20fill='%233D4757'%3e%3cpath%20d='M7%207h1v5H7z'/%3e%3cpath%20d='M5%207h5v1H5z'/%3e%3c/g%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M9%202h1v3H9z'/%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M9%204h3v1H9z'/%3e%3c/g%3e%3c/svg%3e", ve = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M7.5%2014.154a5.654%205.654%200%20100-11.308%205.654%205.654%200%20000%2011.308zm0%20.846a6.5%206.5%200%20110-13%206.5%206.5%200%20010%2013z'%20fill-rule='nonzero'/%3e%3cpath%20d='M8%208h4v1H7V4h1v4z'/%3e%3c/g%3e%3c/svg%3e", ue = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M8.213%2013H6.8l6.636-6.636-4.243-4.243-7.07%207.071L5.928%2013H4.515L1.06%209.546a.5.5%200%20010-.707L8.839%201.06a.5.5%200%2001.707%200l4.95%204.95a.5.5%200%20010%20.707L8.213%2013z'%20fill-rule='nonzero'/%3e%3cpath%20d='M4.536%206.364l4.95%204.95-.707.707-4.95-4.95zM4.521%2013h10.03v1H5.496z'/%3e%3c/g%3e%3c/svg%3e", me = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M13.31%205h-1.92a2.203%202.203%200%2000-.39-.034c-.135%200-.27.012-.402.034H10v.18c-.578.256-1%20.714-1%201.214v1.928c0%20.196.117.43.3.658v1.23a3.543%203.543%200%2001-.3-.4V11H8V1h1v4.265C9%204.763%2010%204%2010.942%204c1.19%200%201.92.422%202.367%201zM2%206c-.03-.498-.175-2%202.5-2C7.11%204%207%205%207%206.902V11H5.984v-.993c.38.662-.115.993-1.484.993C2.708%2011%202%209.931%202%209c0-1.428.447-2%202.5-2h1.484c0-1%20.031-2-1.484-2-1.533%200-1.577.485-1.577%201H2zm2.5%202C3.601%208%203%207.768%203%209c0%201.31.438%201%201.5%201%20.617%200%201.484-.665%201.484-1.847V8H4.5z'/%3e%3cpath%20d='M13.085%206.316l-2.814%203a1%201%200%20101.458%201.368l2.815-3a1%201%200%2000-1.459-1.368z'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e", pe = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='rotate(45%205.5%2013.328)'%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M7%206H6V3.515a2.5%202.5%200%2010-5%200V6H0V3.515a3.5%203.5%200%20117%200V6zm0%204v2.5a3.5%203.5%200%2001-7%200V10h1v2.5a2.5%202.5%200%20105%200V10h1z'%20fill-rule='nonzero'/%3e%3crect%20x='3.062'%20y='5.209'%20width='1'%20height='5.5'%20rx='.5'/%3e%3c/g%3e%3c/svg%3e", we = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_0-公共_x2F_02工具栏_x2F_插入图片-16px-'%3e%3cg%20id='Group-19'%20transform='translate(1%201)'%3e%3cpath%20id='Combined-Shape'%20class='st0'%20d='M1%200h12c.6%200%201%20.4%201%201v11c0%20.6-.4%201-1%201H1c-.6%200-1-.4-1-1V1c0-.6.4-1%201-1zm0%201v11h12V1H1z'/%3e%3ccircle%20id='椭圆形'%20class='st0'%20cx='10'%20cy='4'%20r='1'/%3e%3cpath%20id='Path'%20class='st0'%20d='M8.5%2011.2l-4-4.1L1%2010.7V9.2c1.7-1.6%202.7-2.5%203-2.8.4-.5.7-.4%201%200L8.5%2010%2011%207.3c.4-.5.6-.5%201-.1l2%202.8v1.5l-2.5-3.4-3%203.1z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", fe = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.017%203L8.08%2013H9v1H6v-1h1.182L9%203H8V2h3v1h-.983z'%20fill='%233D4757'/%3e%3c/svg%3e", xe = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20stroke='%233D4757'%20fill='%233D4757'%20d='M2%2010.5H14M2%2013.5H14'%20stroke-linecap='round'%20stroke-linejoin='miter'%3e%3c/path%3e%3cpath%20stroke='%233D4757'%20fill='%233D4757'%20d='M14%203.5L12%201.5M14%203.5L12%205.5M14%203.5L2%203.5M4%201.5L2%203.5M2%203.5L4%205.5'%20stroke-linecap='round'%20stroke-linejoin='miter'%3e%3c/path%3e%3c/svg%3e", be = "data:image/svg+xml,%3csvg%20height='16'%20viewBox='0%200%2016%2016'%20width='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2013h12v1H2zm0-3h8v1H2zm0-3h12v1H2zm0-6h12v1H2zm0%203h8v1H2z'%20fill='%233d4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", Me = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M7%2012h7v1H7zm0-5h7v1H7zm0-5h7v1H7zM3%204V2H2V1h2v3h1v1H2V4h1z'/%3e%3cpath%20d='M2%206h3v1H2V6zm0%203h3v1H2V9z'%20fill='%234F4F4F'/%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M4.5%206L5%207l-2.5%203L2%209z'/%3e%3cpath%20d='M4%2014l-1-2H2v-1h3v1H4l1%202v1H2v-1h2z'%20fill='%233D4757'/%3e%3c/g%3e%3c/svg%3e", ze = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:none;stroke:%233d4757}.st1{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_1-文字_x2F_02插入_x2F_分页-16px'%3e%3cpath%20id='矩形'%20class='st0'%20d='M5.5%202.5h7c.6%200%201%20.4%201%201v3c0%20.6-.4%201-1%201h-7c-.6%200-1-.4-1-1v-3c0-.6.4-1%201-1z'/%3e%3cpath%20id='三角形'%20class='st1'%20d='M4%208.5L1%206v5z'/%3e%3cpath%20id='合并形状'%20class='st0'%20d='M10.8%209.5H5c-.3%200-.5.2-.5.5v4c0%20.3.2.5.5.5h8c.3%200%20.5-.2.5-.5v-1.8l-2.7-2.7z'/%3e%3cpath%20id='矩形_1_'%20class='st1'%20d='M10%2010h1v3h-1z'/%3e%3cpath%20id='矩形-copy-2'%20class='st1'%20d='M10%2012h3v1h-3z'/%3e%3c/g%3e%3c/svg%3e", $ = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M7.5%202v2.5H4a.5.5%200%2000-.5.5v2a.5.5%200%2000.5.5h9a.5.5%200%2000.5-.5V5a.5.5%200%2000-.5-.5H9.5V2a.5.5%200%2000-.5-.5H8a.5.5%200%2000-.5.5z'%20stroke='%233D4757'/%3e%3cpath%20fill='%233D4757'%20d='M13%207h1v4h-1z'/%3e%3cpath%20d='M11%2013a2%202%200%20002-2V8.764A3%203%200%20118.764%2013H11z'%20fill='%233D4757'/%3e%3cpath%20fill='%233D4757'%20d='M1%2013h10v1H1z'/%3e%3cpath%20d='M1%2013a2%202%200%20002-2V8.764A3%203%200%20011%2014v-1z'%20fill='%233D4757'/%3e%3cpath%20fill='%233D4757'%20d='M3%207h1v4H3z'/%3e%3c/g%3e%3c/svg%3e", He = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M10%201l4%204v9a1%201%200%2001-1%201H3a1%201%200%2001-1-1V2a1%201%200%20011-1h7zm-.414%201H3v12h10V5.414L9.586%202z'/%3e%3cpath%20d='M9%201h1v4h4v1H9z'/%3e%3cpath%20d='M8%207h1v4.293l1.646-1.647.708.708L8.5%2013.207l-2.854-2.853.708-.708L8%2011.293z'%20transform='translate(-.5)'/%3e%3c/g%3e%3c/svg%3e", Le = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M12%204h-1V2H5v2H4V2a1%201%200%20011-1h6a1%201%200%20011%201v2zm0%205v4a1%201%200%2001-1%201H5a1%201%200%2001-1-1V9h1v4h6V9h1z'/%3e%3cpath%20d='M12%2012v-1h2V5H2v6h2v1H2a1%201%200%2001-1-1V5a1%201%200%20011-1h12a1%201%200%20011%201v6a1%201%200%2001-1%201h-2z'/%3e%3cpath%20d='M3%208h10v1H3zm8-2h2v1h-2z'/%3e%3c/g%3e%3c/svg%3e", _e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%2014v-3a4%204%200%20014-4h3V6H7a5%205%200%2000-5%205v3h1zm7.016-11.282v7.543l4.29-3.73z'%20fill='%233D4757'/%3e%3c/svg%3e", ye = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2013h12v1H2v-1zm4-3h8v1H6v-1zM2%207h12v1H2V7zm0-6h12v1H2V1zm4%203h8v1H6V4z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", Ee = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2014h12v1H2v-1zm7-5h5v1H9V9zm0-3h5v1H9V6zM2%201h12v1H2V1zm2.5%203L7%207H2zm0%208L7%209H2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e", De = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3ccircle%20stroke='%233D4757'%20cx='6'%20cy='6'%20r='4.5'/%3e%3cpath%20d='M10.061%2010.968L8.707%209.414l.707-.707%201.514%201.457.435-.404%202.632%202.462a1.154%201.154%200%2001.05%201.635%201.184%201.184%200%2001-1.655.064l-2.788-2.527.46-.426z'%20fill='%233D4757'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e", Te = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.9%202.8l2.01%202.506c.2.25.58.25.78%200L8.7%202.799l2.01%202.507c.2.25.58.25.78%200l2.4-2.993-.78-.626-2.01%202.507-2.01-2.507a.5.5%200%2000-.78%200L6.3%204.194%204.29%201.687a.5.5%200%2000-.78%200l-2.4%203%20.78.625L3.9%202.8zM1%208h13v1H1zm0%204h3v1H1zm5%200h3v1H6zm5%200h3v1h-3z'%20fill='%233D4757'/%3e%3c/svg%3e", ke = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M6.215%203.29H7.64L11.855%2014H10.52l-1.14-3H4.46l-1.14%203H2L6.215%203.29zM4.85%209.965h4.14L6.965%204.61h-.06L4.85%209.965z'/%3e%3cpath%20d='M12%204V2h1v2h2v1h-2v2h-1V5h-2V4h2z'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e", Ce = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20fill-rule='nonzero'%20d='M11%204h4v1h-4z'/%3e%3cpath%20d='M6.215%203.29H7.64L11.855%2014H10.52l-1.14-3H4.46l-1.14%203H2L6.215%203.29zM4.85%209.965h4.14L6.965%204.61h-.06L4.85%209.965z'/%3e%3c/g%3e%3c/svg%3e", Ie = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M10.42%207.903H6.692a9.182%209.182%200%2001-.41-.172%205.54%205.54%200%2001-.814-.447%202.955%202.955%200%2001-.655-.595%202.728%202.728%200%2001-.44-.777%202.877%202.877%200%2001-.162-1.006c0-.472.094-.888.282-1.25.188-.36.453-.663.793-.907s.747-.43%201.22-.558A5.97%205.97%200%20018.063%202c.504%200%20.95.049%201.337.147.387.097.725.23%201.013.398.287.169.53.365.73.59a3.337%203.337%200%2001.772%201.486c.03.13.054.255.073.379h-1.276a2.393%202.393%200%2000-.22-.615%202.315%202.315%200%2000-.59-.724%202.467%202.467%200%2000-.834-.44%203.376%203.376%200%2000-1.005-.146%204.69%204.69%200%2000-.958.097%202.77%202.77%200%2000-.839.314%201.765%201.765%200%2000-.597.566c-.152.233-.229.518-.229.854%200%20.348.086.642.258.884.171.241.401.449.689.622.287.174.615.323.983.448s.749.247%201.142.367c.31.097.62.196.934.297a8.439%208.439%200%2001.973.38zm1.376%201c.175.217.315.466.418.746.105.285.158.612.158.98%200%20.554-.104%201.041-.312%201.462-.207.42-.496.772-.867%201.054-.37.282-.81.495-1.32.64A6.12%206.12%200%20018.205%2014c-.543%200-1.071-.09-1.586-.273a4.44%204.44%200%2001-1.374-.773%203.873%203.873%200%2001-.97-1.217%203.695%203.695%200%2001-.395-1.612h1.27c.028.407.122.78.282%201.12a2.835%202.835%200%20001.581%201.465c.363.138.76.207%201.192.207.387%200%20.758-.042%201.112-.126a2.85%202.85%200%2000.938-.399%202.01%202.01%200%2000.647-.708c.16-.29.241-.642.241-1.054%200-.337-.087-.623-.261-.86a2.333%202.333%200%2000-.69-.61%204.651%204.651%200%2000-.495-.257h2.099z'/%3e%3cpath%20d='M3%207h10v1H3z'/%3e%3c/g%3e%3c/svg%3e", Se = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_0-公共_x2F_02工具栏_x2F_subscript'%3e%3cpath%20id='_x32_'%20class='st0'%20d='M15%2013.3v.7h-3c0-.3.1-.5.3-.8.2-.2.5-.6%201-1%20.4-.3.6-.5.7-.7.1-.2.2-.3.2-.5s-.1-.3-.2-.4c-.1-.1-.2-.1-.4-.1s-.3%200-.4.1-.2.4-.2.7l-.9-.1c.1-.4.2-.7.5-.9.3-.2.6-.3%201-.3s.8.1%201%20.3c.3.2.4.5.4.8%200%20.2%200%20.4-.1.5-.1.2-.2.3-.3.5-.1.1-.3.3-.6.5s-.4.4-.5.4c-.1.1-.1.2-.2.3H15z'/%3e%3cpath%20id='合并形状'%20class='st0'%20d='M7.2%208.5l4%205.5H9.8L6.5%209.4%203.2%2014H1.8l4-5.5-4-5.5h1.4l3.3%204.6L9.8%203h1.3L7.2%208.5z'/%3e%3c/g%3e%3c/svg%3e", Ve = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_0-公共_x2F_02工具栏_x2F_superscript'%3e%3cpath%20id='_x32_'%20class='st0'%20d='M15%206.3V7h-3c0-.3.1-.5.3-.8.2-.2.5-.6%201-1%20.3-.2.6-.5.7-.6.1-.2.2-.3.2-.5s-.1-.3-.2-.4c-.1-.1-.2-.1-.4-.1s-.3%200-.4.1-.2.3-.2.6l-.9-.1c.1-.4.2-.7.5-.9s.6-.3%201-.3.8.1%201%20.3c.3.2.4.5.4.8%200%20.2%200%20.4-.1.5s-.2.4-.4.5c-.1.1-.3.3-.6.5s-.4.4-.4.5c-.1.1-.1.2-.2.3l1.7-.1z'/%3e%3cpath%20id='合并形状'%20class='st0'%20d='M7.4%208.5l4%205.5H10L6.7%209.4%203.4%2014H2l4-5.5L2%203h1.4l3.3%204.6L10%203h1.3L7.4%208.5z'/%3e%3c/g%3e%3c/svg%3e", Re = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3crect%20x='.5'%20y='.5'%20width='12'%20height='12'%20rx='1'%20transform='translate(1%201)'%20stroke='%233D4757'/%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M2%209h12v1H2zm0-4h12v1H2z'/%3e%3cpath%20fill='%233D4757'%20fill-rule='nonzero'%20d='M5%201h1v13H5zm4%200h1v13H9z'/%3e%3c/g%3e%3c/svg%3e", Ae = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M14%201a1%201%200%20011%201v12a1%201%200%2001-1%201H2a1%201%200%2001-1-1V2a1%201%200%20011-1h12zm0%201H2v12h12V2z'%20fill-rule='nonzero'/%3e%3cpath%20fill-rule='nonzero'%20d='M4%2011h8v1H4zm0-3h4v1H4zm0-3h2v1H4z'/%3e%3cpath%20d='M9%205h1v4H9z'/%3e%3cpath%20d='M7%205h5v1H7z'/%3e%3c/g%3e%3c/svg%3e", Be = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%202v6a3%203%200%20106%200V2h1v6a4%204%200%2011-8%200V2h1zM4%2013h8v1H4z'%20fill='%233D4757'/%3e%3c/svg%3e", $e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%202.763v7.544l-4.29-3.73zM13%2014v-3a4%204%200%2000-4-4H6V6h3a5%205%200%20015%205v3h-1z'%20fill='%233D4757'/%3e%3c/svg%3e", Ne = [
|
|
421
423
|
"Microsoft YaHei",
|
|
422
424
|
"宋体",
|
|
423
425
|
"黑体",
|
|
@@ -436,7 +438,7 @@ const oe = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%20
|
|
|
436
438
|
label: a === "Microsoft YaHei" ? "微软雅黑" : a,
|
|
437
439
|
value: a,
|
|
438
440
|
style: `font-family:'${a}'`
|
|
439
|
-
})),
|
|
441
|
+
})), Oe = [
|
|
440
442
|
["初号", 56],
|
|
441
443
|
["小初", 48],
|
|
442
444
|
["一号", 34],
|
|
@@ -453,7 +455,7 @@ const oe = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%20
|
|
|
453
455
|
["小六", 8],
|
|
454
456
|
["七号", 7],
|
|
455
457
|
["八号", 6]
|
|
456
|
-
].map(([a, n]) => ({ label: String(a), value: String(n) })),
|
|
458
|
+
].map(([a, n]) => ({ label: String(a), value: String(n) })), Fe = ["1", "1.25", "1.5", "1.75", "2", "2.5", "3"], N = [
|
|
457
459
|
{ label: "———— 实线", dashArray: [] },
|
|
458
460
|
{ label: "··········· 点线", dashArray: [1, 1] },
|
|
459
461
|
{ label: "- - - - - 短虚线", dashArray: [3, 1] },
|
|
@@ -464,40 +466,40 @@ const oe = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%20
|
|
|
464
466
|
function v(a, n, s, e, t = {}) {
|
|
465
467
|
return { key: a, title: n, icon: s, onClick: e, ...t };
|
|
466
468
|
}
|
|
467
|
-
function
|
|
469
|
+
function O(a, n, s, e, t, o) {
|
|
468
470
|
return {
|
|
469
471
|
key: a,
|
|
470
472
|
title: n,
|
|
471
|
-
render: (
|
|
473
|
+
render: (i) => {
|
|
472
474
|
const r = c("span", { class: l("select__label") }), d = c(
|
|
473
475
|
"div",
|
|
474
476
|
{ class: l("select"), title: n, style: `width:${e}px` },
|
|
475
477
|
r
|
|
476
|
-
), h =
|
|
477
|
-
g.close(), t(
|
|
478
|
-
}), g = new
|
|
478
|
+
), h = p(s, (u) => {
|
|
479
|
+
g.close(), t(i, u);
|
|
480
|
+
}), g = new C(d, h);
|
|
479
481
|
return g.el;
|
|
480
482
|
},
|
|
481
|
-
update: (
|
|
482
|
-
const d = i
|
|
483
|
-
r.querySelector(`.${l("select__label")}`).innerText = h ? h.label : d || "",
|
|
483
|
+
update: (i, r) => {
|
|
484
|
+
const d = o(i), h = s.find((g) => g.value === d);
|
|
485
|
+
r.querySelector(`.${l("select__label")}`).innerText = h ? h.label : d || "", b(r, d);
|
|
484
486
|
}
|
|
485
487
|
};
|
|
486
488
|
}
|
|
487
|
-
function
|
|
489
|
+
function f(a, n, s, e, t = {}) {
|
|
488
490
|
return {
|
|
489
491
|
key: a,
|
|
490
492
|
title: n,
|
|
491
|
-
render: (
|
|
492
|
-
const
|
|
493
|
+
render: (o) => {
|
|
494
|
+
const i = c(
|
|
493
495
|
"div",
|
|
494
496
|
{ class: `${l("toolbar__button")} ${l("toolbar__button--arrow")}`, title: n },
|
|
495
497
|
c("i", { class: l("icon"), style: `background-image:url("${s}")` })
|
|
496
|
-
), r = c("div"), d = new
|
|
497
|
-
return
|
|
498
|
+
), r = c("div"), d = new C(i, r);
|
|
499
|
+
return i.addEventListener(
|
|
498
500
|
"click",
|
|
499
501
|
() => {
|
|
500
|
-
r.innerHTML = "", r.append(e(
|
|
502
|
+
r.innerHTML = "", r.append(e(o, () => d.close()));
|
|
501
503
|
},
|
|
502
504
|
!0
|
|
503
505
|
), d.el;
|
|
@@ -505,35 +507,35 @@ function z(a, n, s, e, t = {}) {
|
|
|
505
507
|
...t
|
|
506
508
|
};
|
|
507
509
|
}
|
|
508
|
-
function
|
|
510
|
+
function F(a, n, s, e, t) {
|
|
509
511
|
return {
|
|
510
512
|
key: a,
|
|
511
513
|
title: n,
|
|
512
|
-
render: (
|
|
513
|
-
const
|
|
514
|
-
|
|
514
|
+
render: (o) => {
|
|
515
|
+
const i = c("input", { type: "color", class: l("color__input") });
|
|
516
|
+
i.addEventListener("input", () => e(o, i.value));
|
|
515
517
|
const r = c("span", { class: l("color__bar") }), d = c(
|
|
516
518
|
"div",
|
|
517
519
|
{ class: `${l("toolbar__button")} ${l("color")}`, title: n },
|
|
518
520
|
c("i", { class: l("icon"), style: `background-image:url("${s}")` }),
|
|
519
521
|
r,
|
|
520
|
-
|
|
522
|
+
i
|
|
521
523
|
);
|
|
522
|
-
return d.addEventListener("click", () =>
|
|
524
|
+
return d.addEventListener("click", () => i.click()), d;
|
|
523
525
|
},
|
|
524
|
-
update: (
|
|
525
|
-
const r = t(
|
|
526
|
-
|
|
526
|
+
update: (o, i) => {
|
|
527
|
+
const r = t(o);
|
|
528
|
+
i.querySelector(`.${l("color__bar")}`).style.background = r || "transparent";
|
|
527
529
|
}
|
|
528
530
|
};
|
|
529
531
|
}
|
|
530
|
-
function
|
|
532
|
+
function Pe(a) {
|
|
531
533
|
const n = c("input", { type: "file", accept: "image/*" });
|
|
532
534
|
n.addEventListener("change", async () => {
|
|
533
|
-
var
|
|
534
|
-
const s = (
|
|
535
|
+
var o;
|
|
536
|
+
const s = (o = n.files) == null ? void 0 : o[0];
|
|
535
537
|
if (!s) return;
|
|
536
|
-
const e = await
|
|
538
|
+
const e = await W(s), t = await Z(e);
|
|
537
539
|
a.editor.command.executeImage({
|
|
538
540
|
value: e,
|
|
539
541
|
width: t.width,
|
|
@@ -541,8 +543,8 @@ function Fe(a) {
|
|
|
541
543
|
});
|
|
542
544
|
}), n.click();
|
|
543
545
|
}
|
|
544
|
-
function
|
|
545
|
-
new
|
|
546
|
+
function Ue({ editor: a, locale: n }) {
|
|
547
|
+
new I({
|
|
546
548
|
title: n.hyperlink,
|
|
547
549
|
confirmText: n.confirm,
|
|
548
550
|
cancelText: n.cancel,
|
|
@@ -565,18 +567,18 @@ function Pe({ editor: a, locale: n }) {
|
|
|
565
567
|
onConfirm: ({ text: s, url: e }) => {
|
|
566
568
|
a.command.executeHyperlink({
|
|
567
569
|
url: e,
|
|
568
|
-
valueList:
|
|
570
|
+
valueList: Y(s).map((t) => ({ value: t }))
|
|
569
571
|
});
|
|
570
572
|
}
|
|
571
573
|
});
|
|
572
574
|
}
|
|
573
|
-
const
|
|
575
|
+
const P = [
|
|
574
576
|
m.SELECT,
|
|
575
577
|
m.CHECKBOX,
|
|
576
578
|
m.RADIO
|
|
577
579
|
];
|
|
578
|
-
function
|
|
579
|
-
new
|
|
580
|
+
function qe({ editor: a, locale: n }) {
|
|
581
|
+
new I({
|
|
580
582
|
title: n.control,
|
|
581
583
|
confirmText: n.confirm,
|
|
582
584
|
cancelText: n.cancel,
|
|
@@ -618,24 +620,24 @@ function Ue({ editor: a, locale: n }) {
|
|
|
618
620
|
],
|
|
619
621
|
onConfirm: (s) => {
|
|
620
622
|
const e = s.type, t = s.valueSets.split(`
|
|
621
|
-
`).map((
|
|
622
|
-
if (
|
|
623
|
+
`).map((i) => i.trim()).filter(Boolean).map((i) => ({ value: i, code: i }));
|
|
624
|
+
if (P.includes(e) && !t.length)
|
|
623
625
|
return !1;
|
|
624
|
-
const
|
|
626
|
+
const o = {
|
|
625
627
|
type: e,
|
|
626
628
|
value: null,
|
|
627
629
|
placeholder: s.placeholder || void 0
|
|
628
630
|
};
|
|
629
|
-
|
|
630
|
-
type:
|
|
631
|
+
P.includes(e) && (o.code = null, o.valueSets = t), e === m.CHECKBOX && (o.markType = D.CROSS), e === m.DATE && (o.dateFormat = s.dateFormat), a.command.executeInsertControl({
|
|
632
|
+
type: E.CONTROL,
|
|
631
633
|
value: "",
|
|
632
|
-
control:
|
|
634
|
+
control: o
|
|
633
635
|
});
|
|
634
636
|
}
|
|
635
637
|
});
|
|
636
638
|
}
|
|
637
|
-
function
|
|
638
|
-
new
|
|
639
|
+
function Xe({ editor: a, locale: n }) {
|
|
640
|
+
new I({
|
|
639
641
|
title: n.search,
|
|
640
642
|
confirmText: n.confirm,
|
|
641
643
|
cancelText: n.cancel,
|
|
@@ -660,45 +662,45 @@ function qe({ editor: a, locale: n }) {
|
|
|
660
662
|
onClose: () => a.command.executeSearch(null)
|
|
661
663
|
});
|
|
662
664
|
}
|
|
663
|
-
function
|
|
664
|
-
const e = c("div", { class: l("table-picker__title") }, a.locale.table), t = c("div", { class: l("table-picker__grid") }),
|
|
665
|
-
for (let
|
|
665
|
+
function Ye(a, n) {
|
|
666
|
+
const e = c("div", { class: l("table-picker__title") }, a.locale.table), t = c("div", { class: l("table-picker__grid") }), o = [];
|
|
667
|
+
for (let i = 1; i <= 10; i++)
|
|
666
668
|
for (let r = 1; r <= 10; r++) {
|
|
667
|
-
const d = c("span", { "data-row":
|
|
668
|
-
|
|
669
|
+
const d = c("span", { "data-row": i, "data-col": r });
|
|
670
|
+
o.push(d), t.append(d);
|
|
669
671
|
}
|
|
670
|
-
return t.addEventListener("mouseover", (
|
|
671
|
-
const r =
|
|
672
|
-
!d || !h || (e.innerText = `${d} × ${h}`,
|
|
672
|
+
return t.addEventListener("mouseover", (i) => {
|
|
673
|
+
const r = i.target, d = Number(r.dataset.row), h = Number(r.dataset.col);
|
|
674
|
+
!d || !h || (e.innerText = `${d} × ${h}`, o.forEach((g) => {
|
|
673
675
|
g.classList.toggle(
|
|
674
676
|
l("active"),
|
|
675
677
|
Number(g.dataset.row) <= d && Number(g.dataset.col) <= h
|
|
676
678
|
);
|
|
677
679
|
}));
|
|
678
|
-
}), t.addEventListener("mousedown", (
|
|
679
|
-
const r =
|
|
680
|
+
}), t.addEventListener("mousedown", (i) => i.preventDefault()), t.addEventListener("click", (i) => {
|
|
681
|
+
const r = i.target, d = Number(r.dataset.row), h = Number(r.dataset.col);
|
|
680
682
|
!d || !h || (n(), a.editor.command.executeInsertTable(d, h));
|
|
681
683
|
}), c("div", { class: l("table-picker") }, e, t);
|
|
682
684
|
}
|
|
683
|
-
const
|
|
684
|
-
["left",
|
|
685
|
-
["center",
|
|
686
|
-
["right",
|
|
687
|
-
["alignment",
|
|
688
|
-
["justify",
|
|
685
|
+
const je = [
|
|
686
|
+
["left", L.LEFT, be],
|
|
687
|
+
["center", L.CENTER, re],
|
|
688
|
+
["right", L.RIGHT, ye],
|
|
689
|
+
["alignment", L.ALIGNMENT, ce],
|
|
690
|
+
["justify", L.JUSTIFY, xe]
|
|
689
691
|
];
|
|
690
|
-
function
|
|
692
|
+
function Ke(a) {
|
|
691
693
|
const n = [
|
|
692
|
-
v("undo", a.undo,
|
|
694
|
+
v("undo", a.undo, $e, ({ editor: e }) => e.command.executeUndo(), {
|
|
693
695
|
isDisabled: ({ style: e }) => !!e && !e.undo
|
|
694
696
|
}),
|
|
695
|
-
v("redo", a.redo,
|
|
697
|
+
v("redo", a.redo, _e, ({ editor: e }) => e.command.executeRedo(), {
|
|
696
698
|
isDisabled: ({ style: e }) => !!e && !e.redo
|
|
697
699
|
}),
|
|
698
700
|
{
|
|
699
701
|
key: "painter",
|
|
700
702
|
title: a.painter,
|
|
701
|
-
icon:
|
|
703
|
+
icon: $,
|
|
702
704
|
isActive: ({ style: e }) => !!(e != null && e.painter),
|
|
703
705
|
render: ({ editor: e }) => {
|
|
704
706
|
const t = c(
|
|
@@ -706,37 +708,37 @@ function je(a) {
|
|
|
706
708
|
{ class: l("toolbar__button"), title: a.painter },
|
|
707
709
|
c("i", {
|
|
708
710
|
class: l("icon"),
|
|
709
|
-
style: `background-image:url("${
|
|
711
|
+
style: `background-image:url("${$}")`
|
|
710
712
|
})
|
|
711
713
|
);
|
|
712
|
-
let
|
|
714
|
+
let o = null;
|
|
713
715
|
return t.addEventListener("click", () => {
|
|
714
|
-
|
|
715
|
-
|
|
716
|
+
o && clearTimeout(o), o = setTimeout(() => {
|
|
717
|
+
o = null, e.command.executePainter({ isDblclick: !1 });
|
|
716
718
|
}, 200);
|
|
717
719
|
}), t.addEventListener("dblclick", () => {
|
|
718
|
-
|
|
720
|
+
o && clearTimeout(o), o = null, e.command.executePainter({ isDblclick: !0 });
|
|
719
721
|
}), t;
|
|
720
722
|
}
|
|
721
723
|
},
|
|
722
724
|
v(
|
|
723
725
|
"format",
|
|
724
726
|
a.format,
|
|
725
|
-
|
|
727
|
+
ue,
|
|
726
728
|
({ editor: e }) => e.command.executeFormat()
|
|
727
729
|
),
|
|
728
|
-
|
|
730
|
+
O(
|
|
729
731
|
"font",
|
|
730
732
|
a.font,
|
|
731
|
-
|
|
733
|
+
Ne,
|
|
732
734
|
90,
|
|
733
735
|
({ editor: e }, t) => e.command.executeFont(t),
|
|
734
736
|
({ editor: e, style: t }) => (t == null ? void 0 : t.font) || e.command.getOptions().defaultFont
|
|
735
737
|
),
|
|
736
|
-
|
|
738
|
+
O(
|
|
737
739
|
"size",
|
|
738
740
|
a.size,
|
|
739
|
-
|
|
741
|
+
Oe,
|
|
740
742
|
54,
|
|
741
743
|
({ editor: e }, t) => e.command.executeSize(Number(t)),
|
|
742
744
|
({ editor: e, style: t }) => String(t ? t.size : e.command.getOptions().defaultSize)
|
|
@@ -744,124 +746,124 @@ function je(a) {
|
|
|
744
746
|
v(
|
|
745
747
|
"sizeAdd",
|
|
746
748
|
a.sizeAdd,
|
|
747
|
-
|
|
749
|
+
ke,
|
|
748
750
|
({ editor: e }) => e.command.executeSizeAdd()
|
|
749
751
|
),
|
|
750
752
|
v(
|
|
751
753
|
"sizeMinus",
|
|
752
754
|
a.sizeMinus,
|
|
753
|
-
|
|
755
|
+
Ce,
|
|
754
756
|
({ editor: e }) => e.command.executeSizeMinus()
|
|
755
757
|
),
|
|
756
|
-
v("bold", a.bold,
|
|
758
|
+
v("bold", a.bold, le, ({ editor: e }) => e.command.executeBold(), {
|
|
757
759
|
isActive: ({ style: e }) => !!(e != null && e.bold)
|
|
758
760
|
}),
|
|
759
|
-
v("italic", a.italic,
|
|
761
|
+
v("italic", a.italic, fe, ({ editor: e }) => e.command.executeItalic(), {
|
|
760
762
|
isActive: ({ style: e }) => !!(e != null && e.italic)
|
|
761
763
|
}),
|
|
762
|
-
v("underline", a.underline,
|
|
764
|
+
v("underline", a.underline, Be, ({ editor: e }) => e.command.executeUnderline(), {
|
|
763
765
|
isActive: ({ style: e }) => !!(e != null && e.underline)
|
|
764
766
|
}),
|
|
765
|
-
v("strikeout", a.strikeout,
|
|
767
|
+
v("strikeout", a.strikeout, Ie, ({ editor: e }) => e.command.executeStrikeout(), {
|
|
766
768
|
isActive: ({ style: e }) => !!(e != null && e.strikeout)
|
|
767
769
|
}),
|
|
768
|
-
v("superscript", a.superscript,
|
|
769
|
-
isActive: ({ style: e }) => (e == null ? void 0 : e.type) ===
|
|
770
|
+
v("superscript", a.superscript, Ve, ({ editor: e }) => e.command.executeSuperscript(), {
|
|
771
|
+
isActive: ({ style: e }) => (e == null ? void 0 : e.type) === E.SUPERSCRIPT
|
|
770
772
|
}),
|
|
771
773
|
v("subscript", a.subscript, Se, ({ editor: e }) => e.command.executeSubscript(), {
|
|
772
|
-
isActive: ({ style: e }) => (e == null ? void 0 : e.type) ===
|
|
774
|
+
isActive: ({ style: e }) => (e == null ? void 0 : e.type) === E.SUBSCRIPT
|
|
773
775
|
}),
|
|
774
|
-
|
|
776
|
+
F(
|
|
775
777
|
"color",
|
|
776
778
|
a.color,
|
|
777
|
-
|
|
779
|
+
he,
|
|
778
780
|
({ editor: e }, t) => e.command.executeColor(t),
|
|
779
781
|
({ style: e }) => (e == null ? void 0 : e.color) || "#000000"
|
|
780
782
|
),
|
|
781
|
-
|
|
783
|
+
F(
|
|
782
784
|
"highlight",
|
|
783
785
|
a.highlight,
|
|
784
|
-
|
|
786
|
+
me,
|
|
785
787
|
({ editor: e }, t) => e.command.executeHighlight(t),
|
|
786
788
|
({ style: e }) => (e == null ? void 0 : e.highlight) || null
|
|
787
789
|
),
|
|
788
|
-
|
|
789
|
-
const
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
790
|
+
f("title", a.title, Ae, ({ editor: e, style: t }, o) => {
|
|
791
|
+
const i = [
|
|
792
|
+
z.FIRST,
|
|
793
|
+
z.SECOND,
|
|
794
|
+
z.THIRD,
|
|
795
|
+
z.FOURTH,
|
|
796
|
+
z.FIFTH,
|
|
797
|
+
z.SIXTH
|
|
796
798
|
], r = [
|
|
797
799
|
{ label: a.text, value: "" },
|
|
798
|
-
...
|
|
800
|
+
...i.map((h, g) => ({
|
|
799
801
|
label: `${a.title}${g + 1}`,
|
|
800
802
|
value: h,
|
|
801
803
|
style: `font-size:${26 - g * 2}px;font-weight:bold`
|
|
802
804
|
}))
|
|
803
|
-
], d =
|
|
804
|
-
|
|
805
|
+
], d = p(r, (h) => {
|
|
806
|
+
o(), e.command.executeTitle(h || null);
|
|
805
807
|
});
|
|
806
|
-
return
|
|
808
|
+
return b(d, (t == null ? void 0 : t.level) || ""), d;
|
|
807
809
|
}),
|
|
808
|
-
...
|
|
809
|
-
([e, t,
|
|
810
|
-
isActive: ({ style:
|
|
810
|
+
...je.map(
|
|
811
|
+
([e, t, o]) => v(e, a[e], o, ({ editor: i }) => i.command.executeRowFlex(t), {
|
|
812
|
+
isActive: ({ style: i }) => ((i == null ? void 0 : i.rowFlex) || L.LEFT) === t
|
|
811
813
|
})
|
|
812
814
|
),
|
|
813
|
-
|
|
815
|
+
f(
|
|
814
816
|
"rowMargin",
|
|
815
817
|
a.rowMargin,
|
|
816
|
-
|
|
817
|
-
({ editor: e, style: t },
|
|
818
|
-
const
|
|
819
|
-
|
|
818
|
+
Ee,
|
|
819
|
+
({ editor: e, style: t }, o) => {
|
|
820
|
+
const i = p(
|
|
821
|
+
Fe.map((r) => ({ label: r, value: r })),
|
|
820
822
|
(r) => {
|
|
821
|
-
|
|
823
|
+
o(), e.command.executeRowMargin(Number(r));
|
|
822
824
|
}
|
|
823
825
|
);
|
|
824
|
-
return
|
|
826
|
+
return b(i, t ? String(t.rowMargin) : null), i;
|
|
825
827
|
}
|
|
826
828
|
),
|
|
827
|
-
|
|
829
|
+
f(
|
|
828
830
|
"list",
|
|
829
831
|
a.list,
|
|
830
|
-
|
|
831
|
-
({ editor: e, style: t },
|
|
832
|
-
const
|
|
832
|
+
Me,
|
|
833
|
+
({ editor: e, style: t }, o) => {
|
|
834
|
+
const i = [
|
|
833
835
|
{ label: a.listDecimal, value: `${_.OL}|${y.DECIMAL}` },
|
|
834
836
|
{ label: a.listCheckbox, value: `${_.UL}|${y.CHECKBOX}` },
|
|
835
837
|
{ label: a.listDisc, value: `${_.UL}|${y.DISC}` },
|
|
836
838
|
{ label: a.listCircle, value: `${_.UL}|${y.CIRCLE}` },
|
|
837
839
|
{ label: a.listSquare, value: `${_.UL}|${y.SQUARE}` }
|
|
838
|
-
], r =
|
|
839
|
-
|
|
840
|
+
], r = p(i, (d) => {
|
|
841
|
+
o();
|
|
840
842
|
const [h, g] = d.split("|");
|
|
841
843
|
e.command.executeList(h, g);
|
|
842
844
|
});
|
|
843
|
-
return
|
|
845
|
+
return b(
|
|
844
846
|
r,
|
|
845
847
|
t != null && t.listType ? `${t.listType}|${t.listStyle}` : null
|
|
846
848
|
), r;
|
|
847
849
|
},
|
|
848
850
|
{ isActive: ({ style: e }) => !!(e != null && e.listType) }
|
|
849
851
|
),
|
|
850
|
-
|
|
851
|
-
v("image", a.image,
|
|
852
|
-
v("hyperlink", a.hyperlink,
|
|
853
|
-
|
|
852
|
+
f("table", a.table, Re, Ye),
|
|
853
|
+
v("image", a.image, we, Pe),
|
|
854
|
+
v("hyperlink", a.hyperlink, pe, Ue),
|
|
855
|
+
f(
|
|
854
856
|
"separator",
|
|
855
857
|
a.separator,
|
|
856
|
-
|
|
857
|
-
({ editor: e }, t) =>
|
|
858
|
-
|
|
859
|
-
label:
|
|
860
|
-
value: String(
|
|
858
|
+
Te,
|
|
859
|
+
({ editor: e }, t) => p(
|
|
860
|
+
N.map((o, i) => ({
|
|
861
|
+
label: o.label,
|
|
862
|
+
value: String(i)
|
|
861
863
|
})),
|
|
862
|
-
(
|
|
864
|
+
(o) => {
|
|
863
865
|
t(), e.command.executeSeparator(
|
|
864
|
-
|
|
866
|
+
N[Number(o)].dashArray
|
|
865
867
|
);
|
|
866
868
|
}
|
|
867
869
|
)
|
|
@@ -869,34 +871,44 @@ function je(a) {
|
|
|
869
871
|
v(
|
|
870
872
|
"pageBreak",
|
|
871
873
|
a.pageBreak,
|
|
872
|
-
|
|
874
|
+
ze,
|
|
873
875
|
({ editor: e }) => e.command.executePageBreak()
|
|
874
876
|
),
|
|
875
|
-
v("control", a.control,
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
877
|
+
v("control", a.control, ge, qe),
|
|
878
|
+
f("checkbox", a.checkbox, de, ({ editor: e }, t) => {
|
|
879
|
+
const o = p(
|
|
880
|
+
[
|
|
881
|
+
{ label: `☒ ${a.checkboxCross}`, value: D.CROSS },
|
|
882
|
+
{ label: `☑ ${a.checkboxCheck}`, value: D.CHECK }
|
|
883
|
+
],
|
|
884
|
+
(i) => {
|
|
885
|
+
t(), e.command.executeInsertElementList([
|
|
886
|
+
{
|
|
887
|
+
type: E.CHECKBOX,
|
|
888
|
+
value: "",
|
|
889
|
+
checkbox: { value: !1, markType: i }
|
|
890
|
+
}
|
|
891
|
+
]);
|
|
892
|
+
}
|
|
893
|
+
);
|
|
894
|
+
return b(o, D.CROSS), o;
|
|
895
|
+
}),
|
|
896
|
+
f("date", a.date, ve, ({ editor: e }, t) => {
|
|
897
|
+
const o = /* @__PURE__ */ new Date(), i = [
|
|
898
|
+
{ format: "yyyy-MM-dd", text: R(o, !1) },
|
|
899
|
+
{ format: "yyyy-MM-dd HH:mm:ss", text: R(o, !0) }
|
|
888
900
|
];
|
|
889
|
-
return
|
|
890
|
-
|
|
901
|
+
return p(
|
|
902
|
+
i.map((r, d) => ({
|
|
891
903
|
label: r.text,
|
|
892
904
|
value: String(d)
|
|
893
905
|
})),
|
|
894
906
|
(r) => {
|
|
895
907
|
t();
|
|
896
|
-
const { format: d, text: h } =
|
|
908
|
+
const { format: d, text: h } = i[Number(r)];
|
|
897
909
|
e.command.executeInsertElementList([
|
|
898
910
|
{
|
|
899
|
-
type:
|
|
911
|
+
type: E.DATE,
|
|
900
912
|
value: "",
|
|
901
913
|
dateFormat: d,
|
|
902
914
|
valueList: [{ value: h }]
|
|
@@ -905,19 +917,19 @@ function je(a) {
|
|
|
905
917
|
}
|
|
906
918
|
);
|
|
907
919
|
}),
|
|
908
|
-
v("search", a.search, De,
|
|
920
|
+
v("search", a.search, De, Xe, {
|
|
909
921
|
keepEnabledInReadonly: !0
|
|
910
922
|
}),
|
|
911
|
-
v("print", a.print,
|
|
923
|
+
v("print", a.print, Le, ({ editor: e }) => e.command.executePrint(), {
|
|
912
924
|
keepEnabledInReadonly: !0
|
|
913
925
|
}),
|
|
914
926
|
v(
|
|
915
927
|
"pdf",
|
|
916
928
|
a.pdf,
|
|
917
|
-
|
|
929
|
+
He,
|
|
918
930
|
async ({ editor: e }) => {
|
|
919
931
|
const t = await e.command.getPdf();
|
|
920
|
-
|
|
932
|
+
J(t, `document-${Date.now()}.pdf`);
|
|
921
933
|
},
|
|
922
934
|
{ keepEnabledInReadonly: !0 }
|
|
923
935
|
)
|
|
@@ -926,7 +938,7 @@ function je(a) {
|
|
|
926
938
|
s[e.key] = e;
|
|
927
939
|
}), s;
|
|
928
940
|
}
|
|
929
|
-
const
|
|
941
|
+
const q = [
|
|
930
942
|
"undo",
|
|
931
943
|
"redo",
|
|
932
944
|
"painter",
|
|
@@ -963,10 +975,10 @@ const U = [
|
|
|
963
975
|
"date",
|
|
964
976
|
"|",
|
|
965
977
|
"search"
|
|
966
|
-
], Ge = [
|
|
967
|
-
class
|
|
968
|
-
constructor(n, s =
|
|
969
|
-
this.style = null, this.renderedList = [], this.ui = n, this.el = c("div", { class: l("toolbar") }), this.el.setAttribute(
|
|
978
|
+
], Ge = [w.READONLY, w.PRINT];
|
|
979
|
+
class We {
|
|
980
|
+
constructor(n, s = q) {
|
|
981
|
+
this.style = null, this.renderedList = [], this.ui = n, this.el = c("div", { class: l("toolbar") }), this.el.setAttribute(T, k.MENU), this.el.addEventListener("mousedown", (e) => {
|
|
970
982
|
const t = e.target.tagName;
|
|
971
983
|
t !== "INPUT" && t !== "SELECT" && t !== "TEXTAREA" && e.preventDefault();
|
|
972
984
|
}), this.render(s), this.rangeStyleChange = (e) => {
|
|
@@ -982,19 +994,19 @@ class Ke {
|
|
|
982
994
|
};
|
|
983
995
|
}
|
|
984
996
|
render(n) {
|
|
985
|
-
const s =
|
|
997
|
+
const s = Ke(this.ui.locale), e = this.getContext();
|
|
986
998
|
n.forEach((t) => {
|
|
987
999
|
if (t === "|") {
|
|
988
1000
|
this.el.append(c("span", { class: l("toolbar__divider") }));
|
|
989
1001
|
return;
|
|
990
1002
|
}
|
|
991
|
-
const
|
|
992
|
-
if (!
|
|
1003
|
+
const o = typeof t == "string" ? s[t] : t;
|
|
1004
|
+
if (!o) {
|
|
993
1005
|
console.warn(`[canvas-editor-ui] unknown toolbar item: ${t}`);
|
|
994
1006
|
return;
|
|
995
1007
|
}
|
|
996
|
-
const
|
|
997
|
-
|
|
1008
|
+
const i = o.render ? o.render(e) : this.renderButton(o);
|
|
1009
|
+
i.classList.add(l("toolbar__item")), i.dataset.key = o.key, this.el.append(i), this.renderedList.push({ item: o, el: i });
|
|
998
1010
|
});
|
|
999
1011
|
}
|
|
1000
1012
|
renderButton(n) {
|
|
@@ -1015,25 +1027,25 @@ class Ke {
|
|
|
1015
1027
|
// 根据光标样式与编辑模式刷新按钮状态
|
|
1016
1028
|
update() {
|
|
1017
1029
|
const n = this.getContext(), s = this.ui.editor.command.getOptions().mode, e = Ge.includes(s);
|
|
1018
|
-
this.renderedList.forEach(({ item: t, el:
|
|
1030
|
+
this.renderedList.forEach(({ item: t, el: o }) => {
|
|
1019
1031
|
var r, d, h;
|
|
1020
|
-
const
|
|
1021
|
-
|
|
1032
|
+
const i = e && !t.keepEnabledInReadonly || !!((r = t.isDisabled) != null && r.call(t, n));
|
|
1033
|
+
o.classList.toggle(l("disabled"), i), o.classList.toggle(l("active"), !!((d = t.isActive) != null && d.call(t, n))), (h = t.update) == null || h.call(t, n, o);
|
|
1022
1034
|
});
|
|
1023
1035
|
}
|
|
1024
1036
|
destroy() {
|
|
1025
1037
|
this.ui.editor.eventBus.off("rangeStyleChange", this.rangeStyleChange), this.el.remove();
|
|
1026
1038
|
}
|
|
1027
1039
|
}
|
|
1028
|
-
let
|
|
1029
|
-
class
|
|
1040
|
+
let Ze = 0;
|
|
1041
|
+
class Je {
|
|
1030
1042
|
constructor(n, s = {}) {
|
|
1031
|
-
this.toolbar = null, this.statusbar = null, this.locale = { ...
|
|
1032
|
-
const e = `${l("root")}-${++
|
|
1033
|
-
this.main = c("div", { class: l("main") }, t), this.root = c("div", { class: l("root"), id: e }, this.main), n.append(this.root), this.editor = new
|
|
1043
|
+
this.toolbar = null, this.statusbar = null, this.locale = { ...j, ...s.locale };
|
|
1044
|
+
const e = `${l("root")}-${++Ze}`, t = c("div", { class: l("editor") });
|
|
1045
|
+
this.main = c("div", { class: l("main") }, t), this.root = c("div", { class: l("root"), id: e }, this.main), n.append(this.root), this.editor = new X(t, s.data || { main: [] }, {
|
|
1034
1046
|
scrollContainerSelector: `#${e} .${l("main")}`,
|
|
1035
1047
|
...s.options
|
|
1036
|
-
}), s.toolbar !== !1 && (this.toolbar = new
|
|
1048
|
+
}), s.toolbar !== !1 && (this.toolbar = new We(this, s.toolbar || q), this.root.prepend(this.toolbar.el)), s.statusbar !== !1 && (this.statusbar = new ie(this, s.statusbar || U), this.root.append(this.statusbar.el)), this.mode = this.editor.command.getOptions().mode, this.renderChange = () => {
|
|
1037
1049
|
this.editor.command.getOptions().mode !== this.mode && this.syncMode();
|
|
1038
1050
|
}, this.editor.eventBus.on("renderChange", this.renderChange);
|
|
1039
1051
|
}
|
|
@@ -1054,20 +1066,20 @@ class Ze {
|
|
|
1054
1066
|
this.editor.eventBus.off("renderChange", this.renderChange), (n = this.toolbar) == null || n.destroy(), (s = this.statusbar) == null || s.destroy(), this.editor.destroy(), this.root.remove();
|
|
1055
1067
|
}
|
|
1056
1068
|
}
|
|
1057
|
-
function
|
|
1069
|
+
function e0(a, n) {
|
|
1058
1070
|
const s = typeof a == "string" ? document.querySelector(a) : a;
|
|
1059
1071
|
if (!s)
|
|
1060
1072
|
throw new Error(`[canvas-editor-ui] container not found: ${a}`);
|
|
1061
|
-
return new
|
|
1073
|
+
return new Je(s, n);
|
|
1062
1074
|
}
|
|
1063
1075
|
export {
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1076
|
+
U as DEFAULT_STATUSBAR,
|
|
1077
|
+
q as DEFAULT_TOOLBAR,
|
|
1078
|
+
I as Dialog,
|
|
1079
|
+
Je as EditorUI,
|
|
1080
|
+
Ne as FONT_LIST,
|
|
1081
|
+
Oe as SIZE_LIST,
|
|
1082
|
+
e0 as createEditorUI,
|
|
1083
|
+
j as defaultLocale
|
|
1072
1084
|
};
|
|
1073
1085
|
//# sourceMappingURL=canvas-editor-ui.esm.js.map
|