@opengis/form 0.1.34 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -61
- package/dist/api/suggest/suggestions_list.json +7 -7
- package/dist/{index-B1Lyq79o.js → index-B3dhJa9_.js} +4052 -4052
- package/dist/index-B9CEJ-PZ.js +187 -0
- package/dist/{index-B1zV9Aax.js → index-Bh8_Wx51.js} +434 -477
- package/dist/index-CHHagWDa.js +2794 -0
- package/dist/{index-W4UOw8lU.js → index-CMmJu2Ql.js} +428 -505
- package/dist/{index-RwV1hx3A.js → index-CQZi4RyF.js} +21 -19
- package/dist/index-C_6bjz0U.js +138 -0
- package/dist/index-D3gVZYzr.js +78 -0
- package/dist/index-DJVijc0x.js +47 -0
- package/dist/{index-B3op5uFx.js → index-DQur75TQ.js} +29 -28
- package/dist/{index-sFkGqyu8.js → index-DsT4tZvp.js} +16 -20
- package/dist/{index-qhd_7MCX.js → index-DspmCbXc.js} +16 -20
- package/dist/index-z-RdtcIQ.js +11862 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +86 -86
- package/dist/src/components/inputs/date/datepicker/Datepicker.vue.d.ts.map +1 -1
- package/dist/src/composables/useInputOptions.d.ts +2 -2
- package/dist/src/composables/useInputOptions.d.ts.map +1 -1
- package/dist/src/utils/file.api.d.ts.map +1 -1
- package/dist/{vs-richtext-_Wtyoi3t.js → vs-richtext-K83Az119.js} +22 -22
- package/locales/en.json +39 -39
- package/locales/uk.json +39 -39
- package/package.json +93 -93
- package/dist/index-BIES3-my.js +0 -3085
- package/dist/index-CkUvn8lm.js +0 -153
- package/dist/index-D49VHc9h.js +0 -237
- package/dist/index-DZ7xh8lh.js +0 -50
- package/dist/index-MfTTOwHR.js +0 -89
- package/dist/index-pYkcVgEL.js +0 -12134
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { E as n } from "./index-
|
|
2
|
-
|
|
1
|
+
import { E as n } from "./index-z-RdtcIQ.js";
|
|
2
|
+
const s = n.create({
|
|
3
3
|
name: "textAlign",
|
|
4
4
|
addOptions() {
|
|
5
5
|
return {
|
|
6
6
|
types: [],
|
|
7
|
-
alignments: [
|
|
7
|
+
alignments: [
|
|
8
|
+
"left",
|
|
9
|
+
"center",
|
|
10
|
+
"right",
|
|
11
|
+
"justify"
|
|
12
|
+
],
|
|
8
13
|
defaultAlignment: null
|
|
9
14
|
};
|
|
10
15
|
},
|
|
11
16
|
addGlobalAttributes() {
|
|
12
|
-
return [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
];
|
|
17
|
+
return [{
|
|
18
|
+
types: this.options.types,
|
|
19
|
+
attributes: { textAlign: {
|
|
20
|
+
default: this.options.defaultAlignment,
|
|
21
|
+
parseHTML: (t) => {
|
|
22
|
+
const e = t.style.textAlign;
|
|
23
|
+
return this.options.alignments.includes(e) ? e : this.options.defaultAlignment;
|
|
24
|
+
},
|
|
25
|
+
renderHTML: (t) => t.textAlign ? { style: `text-align: ${t.textAlign}` } : {}
|
|
26
|
+
} }
|
|
27
|
+
}];
|
|
27
28
|
},
|
|
28
29
|
addCommands() {
|
|
29
30
|
return {
|
|
@@ -40,7 +41,8 @@ var s = n.create({
|
|
|
40
41
|
"Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
|
-
})
|
|
44
|
+
});
|
|
45
|
+
var l = s;
|
|
44
46
|
export {
|
|
45
47
|
s as TextAlign,
|
|
46
48
|
l as default
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { N as M, n as R, m as $, R as x, c as z } from "./index-z-RdtcIQ.js";
|
|
2
|
+
const _ = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, E = M.create({
|
|
3
|
+
name: "image",
|
|
4
|
+
addOptions() {
|
|
5
|
+
return {
|
|
6
|
+
inline: !1,
|
|
7
|
+
allowBase64: !1,
|
|
8
|
+
HTMLAttributes: {},
|
|
9
|
+
resize: !1
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
inline() {
|
|
13
|
+
return this.options.inline;
|
|
14
|
+
},
|
|
15
|
+
group() {
|
|
16
|
+
return this.options.inline ? "inline" : "block";
|
|
17
|
+
},
|
|
18
|
+
draggable: !0,
|
|
19
|
+
addAttributes() {
|
|
20
|
+
return {
|
|
21
|
+
src: { default: null },
|
|
22
|
+
alt: { default: null },
|
|
23
|
+
title: { default: null },
|
|
24
|
+
width: { default: null },
|
|
25
|
+
height: { default: null }
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
parseHTML() {
|
|
29
|
+
return [{ tag: this.options.allowBase64 ? "img[src]" : 'img[src]:not([src^="data:"])' }];
|
|
30
|
+
},
|
|
31
|
+
renderHTML({ HTMLAttributes: e }) {
|
|
32
|
+
return ["img", $(this.options.HTMLAttributes, e)];
|
|
33
|
+
},
|
|
34
|
+
parseMarkdown: (e, s) => s.createNode("image", {
|
|
35
|
+
src: e.href,
|
|
36
|
+
title: e.title,
|
|
37
|
+
alt: e.text
|
|
38
|
+
}),
|
|
39
|
+
renderMarkdown: (e) => {
|
|
40
|
+
var s, o, a, u, d, c;
|
|
41
|
+
const h = (s = (o = e.attrs) === null || o === void 0 ? void 0 : o.src) !== null && s !== void 0 ? s : "", p = (a = (u = e.attrs) === null || u === void 0 ? void 0 : u.alt) !== null && a !== void 0 ? a : "", t = (d = (c = e.attrs) === null || c === void 0 ? void 0 : c.title) !== null && d !== void 0 ? d : "";
|
|
42
|
+
return t ? `` : ``;
|
|
43
|
+
},
|
|
44
|
+
addNodeView() {
|
|
45
|
+
if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
|
|
46
|
+
const { directions: e, minWidth: s, minHeight: o, alwaysPreserveAspectRatio: a } = this.options.resize, u = /* @__PURE__ */ new Set([
|
|
47
|
+
"src",
|
|
48
|
+
"width",
|
|
49
|
+
"height"
|
|
50
|
+
]);
|
|
51
|
+
return ({ node: d, getPos: c, HTMLAttributes: h, editor: p }) => {
|
|
52
|
+
const t = document.createElement("img");
|
|
53
|
+
t.draggable = !1;
|
|
54
|
+
const m = $(this.options.HTMLAttributes, h);
|
|
55
|
+
Object.entries(m).forEach(([r, n]) => {
|
|
56
|
+
if (n != null) switch (r) {
|
|
57
|
+
case "src":
|
|
58
|
+
case "width":
|
|
59
|
+
case "height":
|
|
60
|
+
break;
|
|
61
|
+
default:
|
|
62
|
+
t.setAttribute(r, n);
|
|
63
|
+
}
|
|
64
|
+
}), m.src !== null && (t.src = m.src);
|
|
65
|
+
let g = { ...h };
|
|
66
|
+
const v = (r) => {
|
|
67
|
+
if (typeof r == "string" && r !== "") {
|
|
68
|
+
t.getAttribute("src") !== r && (t.src = r);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
t.hasAttribute("src") && t.removeAttribute("src"), t.src !== "" && (t.src = "");
|
|
72
|
+
};
|
|
73
|
+
v(h.src);
|
|
74
|
+
const y = (r) => {
|
|
75
|
+
if (r.type !== d.type) return !1;
|
|
76
|
+
const n = p.extensionManager.attributes.filter((i) => i.type === r.type.name), l = z(r, n);
|
|
77
|
+
return Object.keys(g).forEach((i) => {
|
|
78
|
+
!u.has(i) && !(i in l) && t.removeAttribute(i);
|
|
79
|
+
}), Object.entries(l).forEach(([i, w]) => {
|
|
80
|
+
u.has(i) || (w != null ? t.setAttribute(i, w) : t.removeAttribute(i));
|
|
81
|
+
}), v(l.src), g = l, !0;
|
|
82
|
+
}, A = new x({
|
|
83
|
+
element: t,
|
|
84
|
+
editor: p,
|
|
85
|
+
node: d,
|
|
86
|
+
getPos: c,
|
|
87
|
+
onResize: (r, n) => {
|
|
88
|
+
t.style.width = `${r}px`, t.style.height = `${n}px`;
|
|
89
|
+
},
|
|
90
|
+
onCommit: (r, n) => {
|
|
91
|
+
const l = c();
|
|
92
|
+
l !== void 0 && this.editor.chain().setNodeSelection(l).updateAttributes(this.name, {
|
|
93
|
+
width: r,
|
|
94
|
+
height: n
|
|
95
|
+
}).run();
|
|
96
|
+
},
|
|
97
|
+
onUpdate: y,
|
|
98
|
+
options: {
|
|
99
|
+
directions: e,
|
|
100
|
+
min: {
|
|
101
|
+
width: s,
|
|
102
|
+
height: o
|
|
103
|
+
},
|
|
104
|
+
preserveAspectRatio: a === !0
|
|
105
|
+
}
|
|
106
|
+
}), f = A.dom, b = () => {
|
|
107
|
+
f.style.visibility = "", f.style.pointerEvents = "";
|
|
108
|
+
};
|
|
109
|
+
return f.style.visibility = "hidden", f.style.pointerEvents = "none", t.complete && t.naturalWidth > 0 ? b() : (t.onload = b, t.onerror = b), A;
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
addCommands() {
|
|
113
|
+
return { setImage: (e) => ({ commands: s }) => s.insertContent({
|
|
114
|
+
type: this.name,
|
|
115
|
+
attrs: e
|
|
116
|
+
}) };
|
|
117
|
+
},
|
|
118
|
+
addInputRules() {
|
|
119
|
+
return [R({
|
|
120
|
+
find: _,
|
|
121
|
+
type: this.type,
|
|
122
|
+
getAttributes: (e) => {
|
|
123
|
+
const [, , s, o, a] = e;
|
|
124
|
+
return {
|
|
125
|
+
src: o,
|
|
126
|
+
alt: s,
|
|
127
|
+
title: a
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
})];
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
var I = E;
|
|
134
|
+
export {
|
|
135
|
+
E as Image,
|
|
136
|
+
I as default,
|
|
137
|
+
_ as inputRegex
|
|
138
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { M as a, a as s, b as l, m as u, g as d } from "./index-z-RdtcIQ.js";
|
|
2
|
+
const h = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, g = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, c = a.create({
|
|
3
|
+
name: "highlight",
|
|
4
|
+
addOptions() {
|
|
5
|
+
return {
|
|
6
|
+
multicolor: !1,
|
|
7
|
+
HTMLAttributes: {}
|
|
8
|
+
};
|
|
9
|
+
},
|
|
10
|
+
addAttributes() {
|
|
11
|
+
return this.options.multicolor ? { color: {
|
|
12
|
+
default: null,
|
|
13
|
+
parseHTML: (t) => t.getAttribute("data-color") || d(t, "background-color") || t.style.backgroundColor,
|
|
14
|
+
renderHTML: (t) => t.color ? {
|
|
15
|
+
"data-color": t.color,
|
|
16
|
+
style: `background-color: ${t.color}; color: inherit`
|
|
17
|
+
} : {}
|
|
18
|
+
} } : {};
|
|
19
|
+
},
|
|
20
|
+
parseHTML() {
|
|
21
|
+
return [{ tag: "mark" }];
|
|
22
|
+
},
|
|
23
|
+
renderHTML({ HTMLAttributes: t }) {
|
|
24
|
+
return [
|
|
25
|
+
"mark",
|
|
26
|
+
u(this.options.HTMLAttributes, t),
|
|
27
|
+
0
|
|
28
|
+
];
|
|
29
|
+
},
|
|
30
|
+
renderMarkdown: (t, r) => `==${r.renderChildren(t)}==`,
|
|
31
|
+
parseMarkdown: (t, r) => r.applyMark("highlight", r.parseInline(t.tokens || [])),
|
|
32
|
+
markdownTokenizer: {
|
|
33
|
+
name: "highlight",
|
|
34
|
+
level: "inline",
|
|
35
|
+
start: (t) => t.indexOf("=="),
|
|
36
|
+
tokenize(t, r, o) {
|
|
37
|
+
const e = /^(==)([^=]+)(==)/.exec(t);
|
|
38
|
+
if (e) {
|
|
39
|
+
const n = e[2].trim(), i = o.inlineTokens(n);
|
|
40
|
+
return {
|
|
41
|
+
type: "highlight",
|
|
42
|
+
raw: e[0],
|
|
43
|
+
text: n,
|
|
44
|
+
tokens: i
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
addCommands() {
|
|
50
|
+
return {
|
|
51
|
+
setHighlight: (t) => ({ commands: r }) => r.setMark(this.name, t),
|
|
52
|
+
toggleHighlight: (t) => ({ commands: r }) => r.toggleMark(this.name, t),
|
|
53
|
+
unsetHighlight: () => ({ commands: t }) => t.unsetMark(this.name)
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
addKeyboardShortcuts() {
|
|
57
|
+
return { "Mod-Shift-h": () => this.editor.commands.toggleHighlight() };
|
|
58
|
+
},
|
|
59
|
+
addInputRules() {
|
|
60
|
+
return [l({
|
|
61
|
+
find: h,
|
|
62
|
+
type: this.type
|
|
63
|
+
})];
|
|
64
|
+
},
|
|
65
|
+
addPasteRules() {
|
|
66
|
+
return [s({
|
|
67
|
+
find: g,
|
|
68
|
+
type: this.type
|
|
69
|
+
})];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
var k = c;
|
|
73
|
+
export {
|
|
74
|
+
c as Highlight,
|
|
75
|
+
k as default,
|
|
76
|
+
h as inputRegex,
|
|
77
|
+
g as pasteRegex
|
|
78
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { N as p, m as u } from "./index-z-RdtcIQ.js";
|
|
2
|
+
const a = " ", s = " ", l = p.create({
|
|
3
|
+
name: "paragraph",
|
|
4
|
+
priority: 1e3,
|
|
5
|
+
addOptions() {
|
|
6
|
+
return { HTMLAttributes: {} };
|
|
7
|
+
},
|
|
8
|
+
group: "block",
|
|
9
|
+
content: "inline*",
|
|
10
|
+
parseHTML() {
|
|
11
|
+
return [{ tag: "p" }];
|
|
12
|
+
},
|
|
13
|
+
renderHTML({ HTMLAttributes: t }) {
|
|
14
|
+
return [
|
|
15
|
+
"p",
|
|
16
|
+
u(this.options.HTMLAttributes, t),
|
|
17
|
+
0
|
|
18
|
+
];
|
|
19
|
+
},
|
|
20
|
+
parseMarkdown: (t, n) => {
|
|
21
|
+
const r = t.tokens || [];
|
|
22
|
+
if (r.length === 1 && r[0].type === "image") return n.parseChildren([r[0]]);
|
|
23
|
+
const e = n.parseInline(r);
|
|
24
|
+
return r.length === 1 && r[0].type === "text" && (r[0].raw === a || r[0].text === a || r[0].raw === s || r[0].text === s) && e.length === 1 && e[0].type === "text" && (e[0].text === a || e[0].text === s) ? n.createNode("paragraph", void 0, []) : n.createNode("paragraph", void 0, e);
|
|
25
|
+
},
|
|
26
|
+
renderMarkdown: (t, n, r) => {
|
|
27
|
+
if (!t) return "";
|
|
28
|
+
const e = Array.isArray(t.content) ? t.content : [];
|
|
29
|
+
if (e.length === 0) {
|
|
30
|
+
var o, i;
|
|
31
|
+
const d = Array.isArray(r == null || (o = r.previousNode) === null || o === void 0 ? void 0 : o.content) ? r.previousNode.content : [];
|
|
32
|
+
return (r == null || (i = r.previousNode) === null || i === void 0 ? void 0 : i.type) === "paragraph" && d.length === 0 ? a : "";
|
|
33
|
+
}
|
|
34
|
+
return n.renderChildren(e);
|
|
35
|
+
},
|
|
36
|
+
addCommands() {
|
|
37
|
+
return { setParagraph: () => ({ commands: t }) => t.setNode(this.name) };
|
|
38
|
+
},
|
|
39
|
+
addKeyboardShortcuts() {
|
|
40
|
+
return { "Mod-Alt-0": () => this.editor.commands.setParagraph() };
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
var h = l;
|
|
44
|
+
export {
|
|
45
|
+
l as Paragraph,
|
|
46
|
+
h as default
|
|
47
|
+
};
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import { N as
|
|
2
|
-
|
|
1
|
+
import { N as a, t as i, m as l } from "./index-z-RdtcIQ.js";
|
|
2
|
+
const o = a.create({
|
|
3
3
|
name: "heading",
|
|
4
4
|
addOptions() {
|
|
5
5
|
return {
|
|
6
|
-
levels: [
|
|
6
|
+
levels: [
|
|
7
|
+
1,
|
|
8
|
+
2,
|
|
9
|
+
3,
|
|
10
|
+
4,
|
|
11
|
+
5,
|
|
12
|
+
6
|
|
13
|
+
],
|
|
7
14
|
HTMLAttributes: {}
|
|
8
15
|
};
|
|
9
16
|
},
|
|
@@ -11,12 +18,10 @@ var o = l.create({
|
|
|
11
18
|
group: "block",
|
|
12
19
|
defining: !0,
|
|
13
20
|
addAttributes() {
|
|
14
|
-
return {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
};
|
|
21
|
+
return { level: {
|
|
22
|
+
default: 1,
|
|
23
|
+
rendered: !1
|
|
24
|
+
} };
|
|
20
25
|
},
|
|
21
26
|
parseHTML() {
|
|
22
27
|
return this.options.levels.map((e) => ({
|
|
@@ -25,16 +30,16 @@ var o = l.create({
|
|
|
25
30
|
}));
|
|
26
31
|
},
|
|
27
32
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
28
|
-
return [
|
|
33
|
+
return [
|
|
34
|
+
`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`,
|
|
35
|
+
l(this.options.HTMLAttributes, t),
|
|
36
|
+
0
|
|
37
|
+
];
|
|
29
38
|
},
|
|
30
|
-
parseMarkdown: (e, t) => t.createNode(
|
|
31
|
-
"heading",
|
|
32
|
-
{ level: e.depth || 1 },
|
|
33
|
-
t.parseInline(e.tokens || [])
|
|
34
|
-
),
|
|
39
|
+
parseMarkdown: (e, t) => t.createNode("heading", { level: e.depth || 1 }, t.parseInline(e.tokens || [])),
|
|
35
40
|
renderMarkdown: (e, t) => {
|
|
36
41
|
var r;
|
|
37
|
-
const s = (r = e.attrs)
|
|
42
|
+
const s = !((r = e.attrs) === null || r === void 0) && r.level ? parseInt(e.attrs.level, 10) : 1, n = "#".repeat(s);
|
|
38
43
|
return e.content ? `${n} ${t.renderChildren(e.content)}` : "";
|
|
39
44
|
},
|
|
40
45
|
addCommands() {
|
|
@@ -44,24 +49,20 @@ var o = l.create({
|
|
|
44
49
|
};
|
|
45
50
|
},
|
|
46
51
|
addKeyboardShortcuts() {
|
|
47
|
-
return this.options.levels.reduce(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}),
|
|
52
|
-
{}
|
|
53
|
-
);
|
|
52
|
+
return this.options.levels.reduce((e, t) => ({
|
|
53
|
+
...e,
|
|
54
|
+
[`Mod-Alt-${t}`]: () => this.editor.commands.toggleHeading({ level: t })
|
|
55
|
+
}), {});
|
|
54
56
|
},
|
|
55
57
|
addInputRules() {
|
|
56
|
-
return this.options.levels.map((e) =>
|
|
58
|
+
return this.options.levels.map((e) => i({
|
|
57
59
|
find: new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),
|
|
58
60
|
type: this.type,
|
|
59
|
-
getAttributes: {
|
|
60
|
-
level: e
|
|
61
|
-
}
|
|
61
|
+
getAttributes: { level: e }
|
|
62
62
|
}));
|
|
63
63
|
}
|
|
64
|
-
})
|
|
64
|
+
});
|
|
65
|
+
var u = o;
|
|
65
66
|
export {
|
|
66
67
|
o as Heading,
|
|
67
68
|
u as default
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { M as r, m as e } from "./index-
|
|
2
|
-
|
|
1
|
+
import { M as r, m as e } from "./index-z-RdtcIQ.js";
|
|
2
|
+
const s = r.create({
|
|
3
3
|
name: "subscript",
|
|
4
4
|
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
HTMLAttributes: {}
|
|
7
|
-
};
|
|
5
|
+
return { HTMLAttributes: {} };
|
|
8
6
|
},
|
|
9
7
|
parseHTML() {
|
|
10
|
-
return [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
style: "vertical-align",
|
|
16
|
-
getAttrs(t) {
|
|
17
|
-
return t !== "sub" ? !1 : null;
|
|
18
|
-
}
|
|
8
|
+
return [{ tag: "sub" }, {
|
|
9
|
+
style: "vertical-align",
|
|
10
|
+
getAttrs(t) {
|
|
11
|
+
return t !== "sub" ? !1 : null;
|
|
19
12
|
}
|
|
20
|
-
];
|
|
13
|
+
}];
|
|
21
14
|
},
|
|
22
15
|
renderHTML({ HTMLAttributes: t }) {
|
|
23
|
-
return [
|
|
16
|
+
return [
|
|
17
|
+
"sub",
|
|
18
|
+
e(this.options.HTMLAttributes, t),
|
|
19
|
+
0
|
|
20
|
+
];
|
|
24
21
|
},
|
|
25
22
|
addCommands() {
|
|
26
23
|
return {
|
|
@@ -30,11 +27,10 @@ var s = r.create({
|
|
|
30
27
|
};
|
|
31
28
|
},
|
|
32
29
|
addKeyboardShortcuts() {
|
|
33
|
-
return {
|
|
34
|
-
"Mod-,": () => this.editor.commands.toggleSubscript()
|
|
35
|
-
};
|
|
30
|
+
return { "Mod-,": () => this.editor.commands.toggleSubscript() };
|
|
36
31
|
}
|
|
37
|
-
})
|
|
32
|
+
});
|
|
33
|
+
var a = s;
|
|
38
34
|
export {
|
|
39
35
|
s as Subscript,
|
|
40
36
|
a as default
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { M as t, m as e } from "./index-
|
|
2
|
-
|
|
1
|
+
import { M as t, m as e } from "./index-z-RdtcIQ.js";
|
|
2
|
+
const s = t.create({
|
|
3
3
|
name: "superscript",
|
|
4
4
|
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
HTMLAttributes: {}
|
|
7
|
-
};
|
|
5
|
+
return { HTMLAttributes: {} };
|
|
8
6
|
},
|
|
9
7
|
parseHTML() {
|
|
10
|
-
return [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
style: "vertical-align",
|
|
16
|
-
getAttrs(r) {
|
|
17
|
-
return r !== "super" ? !1 : null;
|
|
18
|
-
}
|
|
8
|
+
return [{ tag: "sup" }, {
|
|
9
|
+
style: "vertical-align",
|
|
10
|
+
getAttrs(r) {
|
|
11
|
+
return r !== "super" ? !1 : null;
|
|
19
12
|
}
|
|
20
|
-
];
|
|
13
|
+
}];
|
|
21
14
|
},
|
|
22
15
|
renderHTML({ HTMLAttributes: r }) {
|
|
23
|
-
return [
|
|
16
|
+
return [
|
|
17
|
+
"sup",
|
|
18
|
+
e(this.options.HTMLAttributes, r),
|
|
19
|
+
0
|
|
20
|
+
];
|
|
24
21
|
},
|
|
25
22
|
addCommands() {
|
|
26
23
|
return {
|
|
@@ -30,11 +27,10 @@ var s = t.create({
|
|
|
30
27
|
};
|
|
31
28
|
},
|
|
32
29
|
addKeyboardShortcuts() {
|
|
33
|
-
return {
|
|
34
|
-
"Mod-.": () => this.editor.commands.toggleSuperscript()
|
|
35
|
-
};
|
|
30
|
+
return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
|
|
36
31
|
}
|
|
37
|
-
})
|
|
32
|
+
});
|
|
33
|
+
var a = s;
|
|
38
34
|
export {
|
|
39
35
|
s as Superscript,
|
|
40
36
|
a as default
|