@quoreadmin/ui 1.10.11 → 1.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index105.js +1 -1
- package/dist/index111.js +1 -1
- package/dist/index115.js +1 -1
- package/dist/index136.js +1 -1
- package/dist/index138.js +1 -1
- package/dist/index147.js +2 -2
- package/dist/index149.js +1 -1
- package/dist/index151.js +6 -6
- package/dist/index157.js +172 -163
- package/dist/index162.js +1 -1
- package/dist/index165.js +1 -1
- package/dist/index169.js +7 -7
- package/dist/index173.js +2 -2
- package/dist/index180.js +1151 -228
- package/dist/index182.js +14 -14
- package/dist/index183.js +266 -96
- package/dist/index184.js +106 -2
- package/dist/index185.js +2 -1376
- package/dist/index186.js +1378 -0
- package/dist/index188.js +12 -12
- package/dist/index189.js +10 -10
- package/dist/index190.js +12 -12
- package/dist/index191.js +14 -21
- package/dist/index192.js +23 -757
- package/dist/index193.js +759 -1144
- package/dist/index194.js +1155 -1234
- package/dist/index195.js +1205 -11248
- package/dist/index196.js +11212 -1134
- package/dist/index197.js +1228 -36
- package/dist/index199.js +5816 -1106
- package/dist/index200.js +209 -0
- package/dist/index201.js +19 -5922
- package/dist/index202.js +10 -199
- package/dist/index203.js +76 -33
- package/dist/index204.js +249 -14
- package/dist/index205.js +13678 -72
- package/dist/index206.js +27 -253
- package/dist/index207.js +48 -13669
- package/dist/index208.js +236 -25
- package/dist/index209.js +293 -45
- package/dist/index210.js +236 -179
- package/dist/index211.js +36 -311
- package/dist/index212.js +43 -294
- package/dist/index213.js +30 -158
- package/dist/index214.js +112 -224
- package/dist/index215.js +31 -32
- package/dist/index216.js +26 -10
- package/dist/index217.js +31 -83
- package/dist/index218.js +48 -404
- package/dist/index219.js +43 -22
- package/dist/index220.js +3 -32
- package/dist/index221.js +9 -116
- package/dist/index222.js +18 -35
- package/dist/index223.js +10 -26
- package/dist/index224.js +10 -36
- package/dist/index225.js +36 -48
- package/dist/index226.js +21 -43
- package/dist/index227.js +87 -3
- package/dist/index228.js +407 -9
- package/dist/index229.js +22 -19
- package/dist/index230.js +161 -10
- package/dist/index231.js +227 -9
- package/dist/index232.js +34 -36
- package/dist/index233.js +10 -21
- package/dist/index234.js +3618 -109
- package/dist/index235.js +49 -32
- package/dist/index236.js +70 -73
- package/dist/index237.js +52 -20
- package/dist/index238.js +215 -20
- package/dist/index239.js +10 -20
- package/dist/index240.js +57 -20
- package/dist/index241.js +61 -20
- package/dist/index242.js +48 -155
- package/dist/index243.js +75 -20
- package/dist/index244.js +725 -21
- package/dist/index245.js +33 -190
- package/dist/index246.js +60 -66
- package/dist/index247.js +10 -33
- package/dist/index248.js +699 -34
- package/dist/index249.js +801 -234
- package/dist/index250.js +161 -8
- package/dist/index251.js +20 -138
- package/dist/index252.js +20 -83
- package/dist/index253.js +12 -12
- package/dist/index254.js +198 -21
- package/dist/index255.js +69 -19
- package/dist/index256.js +34 -836
- package/dist/index257.js +24 -686
- package/dist/index258.js +22 -176
- package/dist/index259.js +6 -6
- package/dist/index260.js +7 -7
- package/dist/index261.js +836 -20
- package/dist/index262.js +702 -3
- package/dist/index263.js +172 -183
- package/dist/index264.js +18 -131
- package/dist/index265.js +20 -1223
- package/dist/index266.js +13 -11
- package/dist/index267.js +13 -15
- package/dist/index268.js +13 -15
- package/dist/index269.js +3 -29
- package/dist/index270.js +186 -19
- package/dist/index271.js +131 -18
- package/dist/index272.js +1223 -2
- package/dist/index273.js +127 -2
- package/dist/index274.js +20 -2
- package/dist/index275.js +21 -78
- package/dist/index276.js +22 -3636
- package/dist/index277.js +32 -49
- package/dist/index278.js +29 -77
- package/dist/index279.js +20 -52
- package/dist/index280.js +20 -215
- package/dist/index281.js +2 -10
- package/dist/index282.js +2 -57
- package/dist/index283.js +79 -60
- package/dist/index284.js +20 -54
- package/dist/index285.js +20 -75
- package/dist/index286.js +235 -708
- package/dist/index287.js +7 -41
- package/dist/index288.js +134 -60
- package/dist/index289.js +83 -11
- package/dist/index290.js +3 -705
- package/dist/index291.js +21 -814
- package/dist/index292.js +1534 -3
- package/dist/index293.js +382 -23
- package/dist/index294.js +2731 -54
- package/dist/index295.js +85 -25
- package/dist/index296.js +3792 -22
- package/dist/index297.js +59 -21
- package/dist/index298.js +15 -16
- package/dist/index299.js +84 -17
- package/dist/index3.js +2 -2
- package/dist/index300.js +201 -22
- package/dist/index301.js +241 -74
- package/dist/index302.js +53 -21
- package/dist/index303.js +54 -910
- package/dist/index304.js +17 -13
- package/dist/index305.js +13 -11
- package/dist/index306.js +15 -13
- package/dist/index307.js +14 -67
- package/dist/index308.js +14 -16
- package/dist/index309.js +21 -17
- package/dist/index310.js +261 -21
- package/dist/index311.js +5 -21
- package/dist/index312.js +139 -62
- package/dist/index313.js +67 -256
- package/dist/index314.js +86 -5
- package/dist/index315.js +26 -137
- package/dist/index316.js +14 -71
- package/dist/index317.js +71 -83
- package/dist/index318.js +3 -28
- package/dist/index319.js +2 -16
- package/dist/index320.js +78 -70
- package/dist/index321.js +52 -3
- package/dist/index322.js +6 -2
- package/dist/index323.js +4 -82
- package/dist/index324.js +177 -51
- package/dist/index325.js +62 -5
- package/dist/index326.js +75 -5
- package/dist/index327.js +74 -174
- package/dist/index328.js +21 -62
- package/dist/index329.js +934 -74
- package/dist/index330.js +21 -36
- package/dist/index331.js +20 -1534
- package/dist/index332.js +20 -386
- package/dist/index333.js +69 -2731
- package/dist/index334.js +19 -86
- package/dist/index335.js +19 -3792
- package/dist/index336.js +21 -59
- package/dist/index337.js +22 -15
- package/dist/index338.js +63 -84
- package/dist/index339.js +2 -202
- package/dist/index340.js +8 -245
- package/dist/index341.js +12 -9
- package/dist/index342.js +55 -10
- package/dist/index343.js +12 -14
- package/dist/index344.js +14 -10
- package/dist/index345.js +56 -15
- package/dist/index346.js +51 -8
- package/dist/index347.js +30 -12
- package/dist/index348.js +2 -55
- package/dist/index349.js +5 -12
- package/dist/index350.js +2 -14
- package/dist/index351.js +22 -57
- package/dist/index352.js +39 -50
- package/dist/index353.js +2 -31
- package/dist/index354.js +11 -2
- package/dist/index355.js +20 -5
- package/dist/index356.js +10 -2
- package/dist/index357.js +9 -22
- package/dist/index358.js +14 -38
- package/dist/index359.js +2 -2
- package/dist/index360.js +8 -10
- package/dist/index361.js +9 -19
- package/dist/index362.js +14 -2
- package/dist/index363.js +37 -9
- package/dist/index364.js +18 -19
- package/dist/index365.js +56 -19
- package/dist/index366.js +27 -62
- package/dist/index367.js +7 -37
- package/dist/index368.js +49 -16
- package/dist/index369.js +7 -57
- package/dist/index370.js +10 -27
- package/dist/index371.js +7 -7
- package/dist/index372.js +27 -51
- package/dist/index373.js +2 -7
- package/dist/index374.js +69 -11
- package/dist/index375.js +166 -6
- package/dist/index376.js +20 -28
- package/dist/index377.js +20 -2
- package/dist/index378.js +61 -67
- package/dist/index379.js +36 -166
- package/dist/index380.js +98 -28
- package/dist/index381.js +90 -10
- package/dist/index382.js +98 -4
- package/dist/index383.js +30 -3
- package/dist/index384.js +11 -17
- package/dist/index385.js +4 -13
- package/dist/index386.js +4 -7
- package/dist/index387.js +13 -12
- package/dist/index388.js +7 -5
- package/dist/index389.js +12 -33
- package/dist/index390.js +5 -31
- package/dist/index391.js +32 -27
- package/dist/index392.js +28 -58
- package/dist/index393.js +27 -97
- package/dist/index394.js +59 -99
- package/dist/index395.js +17 -91
- package/dist/index396.js +1 -1
- package/dist/index401.js +1 -1
- package/dist/index402.js +2 -2
- package/dist/index50.js +1 -1
- package/dist/index62.js +1 -1
- package/dist/index66.js +17 -17
- package/dist/index78.js +1 -1
- package/dist/index88.js +1 -1
- package/dist/index92.js +1 -1
- package/dist/index98.js +2 -2
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index187.js +0 -20
- package/dist/index198.js +0 -46
package/dist/index241.js
CHANGED
|
@@ -1,22 +1,63 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
1
|
+
import { Node as l, textblockTypeInputRule as i, mergeAttributes as a } from "./index234.js";
|
|
2
|
+
var d = l.create({
|
|
3
|
+
name: "heading",
|
|
4
|
+
addOptions() {
|
|
5
|
+
return {
|
|
6
|
+
levels: [1, 2, 3, 4, 5, 6],
|
|
7
|
+
HTMLAttributes: {}
|
|
8
|
+
};
|
|
9
|
+
},
|
|
10
|
+
content: "inline*",
|
|
11
|
+
group: "block",
|
|
12
|
+
defining: !0,
|
|
13
|
+
addAttributes() {
|
|
14
|
+
return {
|
|
15
|
+
level: {
|
|
16
|
+
default: 1,
|
|
17
|
+
rendered: !1
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
parseHTML() {
|
|
22
|
+
return this.options.levels.map((e) => ({
|
|
23
|
+
tag: `h${e}`,
|
|
24
|
+
attrs: { level: e }
|
|
25
|
+
}));
|
|
26
|
+
},
|
|
27
|
+
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
28
|
+
return [`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`, a(this.options.HTMLAttributes, t), 0];
|
|
29
|
+
},
|
|
30
|
+
parseMarkdown: (e, t) => t.createNode("heading", { level: e.depth || 1 }, t.parseInline(e.tokens || [])),
|
|
31
|
+
renderMarkdown: (e, t) => {
|
|
32
|
+
var r;
|
|
33
|
+
const n = (r = e.attrs) != null && r.level ? parseInt(e.attrs.level, 10) : 1, s = "#".repeat(n);
|
|
34
|
+
return e.content ? `${s} ${t.renderChildren(e.content)}` : "";
|
|
35
|
+
},
|
|
36
|
+
addCommands() {
|
|
37
|
+
return {
|
|
38
|
+
setHeading: (e) => ({ commands: t }) => this.options.levels.includes(e.level) ? t.setNode(this.name, e) : !1,
|
|
39
|
+
toggleHeading: (e) => ({ commands: t }) => this.options.levels.includes(e.level) ? t.toggleNode(this.name, "paragraph", e) : !1
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
addKeyboardShortcuts() {
|
|
43
|
+
return this.options.levels.reduce(
|
|
44
|
+
(e, t) => ({
|
|
45
|
+
...e,
|
|
46
|
+
[`Mod-Alt-${t}`]: () => this.editor.commands.toggleHeading({ level: t })
|
|
47
|
+
}),
|
|
48
|
+
{}
|
|
49
|
+
);
|
|
50
|
+
},
|
|
51
|
+
addInputRules() {
|
|
52
|
+
return this.options.levels.map((e) => i({
|
|
53
|
+
find: new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),
|
|
54
|
+
type: this.type,
|
|
55
|
+
getAttributes: {
|
|
56
|
+
level: e
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
20
61
|
export {
|
|
21
|
-
|
|
62
|
+
d as Heading
|
|
22
63
|
};
|
package/dist/index242.js
CHANGED
|
@@ -1,163 +1,56 @@
|
|
|
1
|
-
import y from "./
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { resolveComponent as r, resolveDirective as S, withDirectives as B, openBlock as n, createElementBlock as i, mergeProps as t, renderSlot as o, normalizeClass as d, createBlock as p, createCommentVNode as u, createElementVNode as I, toDisplayString as $ } from "vue";
|
|
7
|
-
var k = {
|
|
8
|
-
name: "BaseButton",
|
|
9
|
-
extends: v,
|
|
10
|
-
props: {
|
|
11
|
-
label: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: null
|
|
14
|
-
},
|
|
15
|
-
icon: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: null
|
|
18
|
-
},
|
|
19
|
-
iconPos: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: "left"
|
|
22
|
-
},
|
|
23
|
-
iconClass: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: null
|
|
26
|
-
},
|
|
27
|
-
badge: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: null
|
|
30
|
-
},
|
|
31
|
-
badgeClass: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: null
|
|
34
|
-
},
|
|
35
|
-
badgeSeverity: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: null
|
|
38
|
-
},
|
|
39
|
-
loading: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: !1
|
|
42
|
-
},
|
|
43
|
-
loadingIcon: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: void 0
|
|
46
|
-
},
|
|
47
|
-
link: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: !1
|
|
50
|
-
},
|
|
51
|
-
severity: {
|
|
52
|
-
type: String,
|
|
53
|
-
default: null
|
|
54
|
-
},
|
|
55
|
-
raised: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: !1
|
|
58
|
-
},
|
|
59
|
-
rounded: {
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: !1
|
|
62
|
-
},
|
|
63
|
-
text: {
|
|
64
|
-
type: Boolean,
|
|
65
|
-
default: !1
|
|
66
|
-
},
|
|
67
|
-
outlined: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: !1
|
|
70
|
-
},
|
|
71
|
-
size: {
|
|
72
|
-
type: String,
|
|
73
|
-
default: null
|
|
74
|
-
},
|
|
75
|
-
plain: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
default: !1
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
style: h,
|
|
81
|
-
provide: function() {
|
|
1
|
+
import { Node as m, nodeInputRule as f, canInsertNode as h, isNodeSelection as T, mergeAttributes as y } from "./index234.js";
|
|
2
|
+
import { TextSelection as s, NodeSelection as N } from "./index249.js";
|
|
3
|
+
var M = m.create({
|
|
4
|
+
name: "horizontalRule",
|
|
5
|
+
addOptions() {
|
|
82
6
|
return {
|
|
83
|
-
|
|
7
|
+
HTMLAttributes: {},
|
|
8
|
+
nextNodeType: "paragraph"
|
|
84
9
|
};
|
|
85
|
-
}
|
|
86
|
-
}, C = {
|
|
87
|
-
name: "Button",
|
|
88
|
-
extends: k,
|
|
89
|
-
inheritAttrs: !1,
|
|
90
|
-
methods: {
|
|
91
|
-
getPTOptions: function(l) {
|
|
92
|
-
var s = l === "root" ? this.ptmi : this.ptm;
|
|
93
|
-
return s(l, {
|
|
94
|
-
context: {
|
|
95
|
-
disabled: this.disabled
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
10
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
hasIcon: function() {
|
|
108
|
-
return this.icon || this.$slots.icon;
|
|
109
|
-
}
|
|
11
|
+
group: "block",
|
|
12
|
+
parseHTML() {
|
|
13
|
+
return [{ tag: "hr" }];
|
|
14
|
+
},
|
|
15
|
+
renderHTML({ HTMLAttributes: n }) {
|
|
16
|
+
return ["hr", y(this.options.HTMLAttributes, n)];
|
|
110
17
|
},
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
18
|
+
markdownTokenName: "hr",
|
|
19
|
+
parseMarkdown: (n, o) => o.createNode("horizontalRule"),
|
|
20
|
+
renderMarkdown: () => "---",
|
|
21
|
+
addCommands() {
|
|
22
|
+
return {
|
|
23
|
+
setHorizontalRule: () => ({ chain: n, state: o }) => {
|
|
24
|
+
if (!h(o, o.schema.nodes[this.name]))
|
|
25
|
+
return !1;
|
|
26
|
+
const { selection: i } = o, { $to: l } = i, r = n();
|
|
27
|
+
return T(i) ? r.insertContentAt(l.pos, {
|
|
28
|
+
type: this.name
|
|
29
|
+
}) : r.insertContent({ type: this.name }), r.command(({ state: p, tr: e, dispatch: u }) => {
|
|
30
|
+
if (u) {
|
|
31
|
+
const { $to: t } = e.selection, a = t.end();
|
|
32
|
+
if (t.nodeAfter)
|
|
33
|
+
t.nodeAfter.isTextblock ? e.setSelection(s.create(e.doc, t.pos + 1)) : t.nodeAfter.isBlock ? e.setSelection(N.create(e.doc, t.pos)) : e.setSelection(s.create(e.doc, t.pos));
|
|
34
|
+
else {
|
|
35
|
+
const c = p.schema.nodes[this.options.nextNodeType] || t.parent.type.contentMatch.defaultType, d = c?.create();
|
|
36
|
+
d && (e.insert(a, d), e.setSelection(s.create(e.doc, a + 1)));
|
|
37
|
+
}
|
|
38
|
+
e.scrollIntoView();
|
|
39
|
+
}
|
|
40
|
+
return !0;
|
|
41
|
+
}).run();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
114
44
|
},
|
|
115
|
-
|
|
116
|
-
|
|
45
|
+
addInputRules() {
|
|
46
|
+
return [
|
|
47
|
+
f({
|
|
48
|
+
find: /^(?:---|—-|___\s|\*\*\*\s)$/,
|
|
49
|
+
type: this.type
|
|
50
|
+
})
|
|
51
|
+
];
|
|
117
52
|
}
|
|
118
|
-
}
|
|
119
|
-
function A(e, l, s, L, D, a) {
|
|
120
|
-
var c = r("SpinnerIcon"), f = r("Badge"), g = S("ripple");
|
|
121
|
-
return B((n(), i("button", t({
|
|
122
|
-
class: e.cx("root"),
|
|
123
|
-
type: "button",
|
|
124
|
-
"aria-label": a.defaultAriaLabel,
|
|
125
|
-
disabled: a.disabled
|
|
126
|
-
}, a.getPTOptions("root"), {
|
|
127
|
-
"data-p-severity": e.severity
|
|
128
|
-
}), [o(e.$slots, "default", {}, function() {
|
|
129
|
-
return [e.loading ? o(e.$slots, "loadingicon", {
|
|
130
|
-
key: 0,
|
|
131
|
-
class: d([e.cx("loadingIcon"), e.cx("icon")])
|
|
132
|
-
}, function() {
|
|
133
|
-
return [e.loadingIcon ? (n(), i("span", t({
|
|
134
|
-
key: 0,
|
|
135
|
-
class: [e.cx("loadingIcon"), e.cx("icon"), e.loadingIcon]
|
|
136
|
-
}, e.ptm("loadingIcon")), null, 16)) : (n(), p(c, t({
|
|
137
|
-
key: 1,
|
|
138
|
-
class: [e.cx("loadingIcon"), e.cx("icon")],
|
|
139
|
-
spin: ""
|
|
140
|
-
}, e.ptm("loadingIcon")), null, 16, ["class"]))];
|
|
141
|
-
}) : o(e.$slots, "icon", {
|
|
142
|
-
key: 1,
|
|
143
|
-
class: d([e.cx("icon")])
|
|
144
|
-
}, function() {
|
|
145
|
-
return [e.icon ? (n(), i("span", t({
|
|
146
|
-
key: 0,
|
|
147
|
-
class: [e.cx("icon"), e.icon, e.iconClass]
|
|
148
|
-
}, e.ptm("icon")), null, 16)) : u("", !0)];
|
|
149
|
-
}), I("span", t({
|
|
150
|
-
class: e.cx("label")
|
|
151
|
-
}, e.ptm("label")), $(e.label || " "), 17), e.badge ? (n(), p(f, t({
|
|
152
|
-
key: 2,
|
|
153
|
-
value: e.badge,
|
|
154
|
-
class: e.badgeClass,
|
|
155
|
-
severity: e.badgeSeverity,
|
|
156
|
-
unstyled: e.unstyled
|
|
157
|
-
}, e.ptm("badge")), null, 16, ["value", "class", "severity", "unstyled"])) : u("", !0)];
|
|
158
|
-
})], 16, P)), [[g]]);
|
|
159
|
-
}
|
|
160
|
-
C.render = A;
|
|
53
|
+
});
|
|
161
54
|
export {
|
|
162
|
-
|
|
55
|
+
M as HorizontalRule
|
|
163
56
|
};
|
package/dist/index243.js
CHANGED
|
@@ -1,22 +1,77 @@
|
|
|
1
|
-
import r from "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { Mark as s, markPasteRule as r, markInputRule as a, mergeAttributes as n } from "./index234.js";
|
|
2
|
+
var i = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, d = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, o = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, l = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, m = s.create({
|
|
3
|
+
name: "italic",
|
|
4
|
+
addOptions() {
|
|
5
|
+
return {
|
|
6
|
+
HTMLAttributes: {}
|
|
7
|
+
};
|
|
8
|
+
},
|
|
9
|
+
parseHTML() {
|
|
10
|
+
return [
|
|
11
|
+
{
|
|
12
|
+
tag: "em"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
tag: "i",
|
|
16
|
+
getAttrs: (t) => t.style.fontStyle !== "normal" && null
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
style: "font-style=normal",
|
|
20
|
+
clearMark: (t) => t.type.name === this.name
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
style: "font-style=italic"
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
},
|
|
27
|
+
renderHTML({ HTMLAttributes: t }) {
|
|
28
|
+
return ["em", n(this.options.HTMLAttributes, t), 0];
|
|
29
|
+
},
|
|
30
|
+
addCommands() {
|
|
31
|
+
return {
|
|
32
|
+
setItalic: () => ({ commands: t }) => t.setMark(this.name),
|
|
33
|
+
toggleItalic: () => ({ commands: t }) => t.toggleMark(this.name),
|
|
34
|
+
unsetItalic: () => ({ commands: t }) => t.unsetMark(this.name)
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
markdownTokenName: "em",
|
|
38
|
+
parseMarkdown: (t, e) => e.applyMark("italic", e.parseInline(t.tokens || [])),
|
|
39
|
+
renderMarkdown: (t, e) => `*${e.renderChildren(t)}*`,
|
|
40
|
+
addKeyboardShortcuts() {
|
|
41
|
+
return {
|
|
42
|
+
"Mod-i": () => this.editor.commands.toggleItalic(),
|
|
43
|
+
"Mod-I": () => this.editor.commands.toggleItalic()
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
addInputRules() {
|
|
47
|
+
return [
|
|
48
|
+
a({
|
|
49
|
+
find: i,
|
|
50
|
+
type: this.type
|
|
51
|
+
}),
|
|
52
|
+
a({
|
|
53
|
+
find: o,
|
|
54
|
+
type: this.type
|
|
55
|
+
})
|
|
56
|
+
];
|
|
57
|
+
},
|
|
58
|
+
addPasteRules() {
|
|
59
|
+
return [
|
|
60
|
+
r({
|
|
61
|
+
find: d,
|
|
62
|
+
type: this.type
|
|
63
|
+
}),
|
|
64
|
+
r({
|
|
65
|
+
find: l,
|
|
66
|
+
type: this.type
|
|
67
|
+
})
|
|
68
|
+
];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
20
71
|
export {
|
|
21
|
-
|
|
72
|
+
m as Italic,
|
|
73
|
+
i as starInputRegex,
|
|
74
|
+
d as starPasteRegex,
|
|
75
|
+
o as underscoreInputRegex,
|
|
76
|
+
l as underscorePasteRegex
|
|
22
77
|
};
|