@quoreadmin/ui 1.10.17 → 1.10.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index138.js +137 -114
- package/dist/index149.js +1 -1
- package/dist/index15.js +43 -38
- package/dist/index151.js +4 -4
- package/dist/index183.js +3 -3
- package/dist/index186.js +4 -4
- package/dist/index193.js +10 -10
- package/dist/index195.js +10 -10
- package/dist/index198.js +17 -17
- 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 +1218 -25
- package/dist/index206.js +2 -2
- package/dist/index208.js +14 -14
- package/dist/index209.js +1 -1
- package/dist/index210.js +1 -1
- package/dist/index211.js +3 -3
- package/dist/index212.js +6 -6
- package/dist/index216.js +2 -2
- package/dist/index217.js +1 -1
- package/dist/index219.js +4 -4
- package/dist/index22.js +28 -26
- package/dist/index221.js +1 -1
- package/dist/index222.js +1 -1
- package/dist/index223.js +1 -1
- package/dist/index224.js +4 -4
- package/dist/index226.js +1 -1
- package/dist/index227.js +157 -84
- package/dist/index228.js +205 -384
- package/dist/index229.js +37 -22
- package/dist/index230.js +10 -127
- package/dist/index231.js +122 -33
- package/dist/index232.js +38 -80
- package/dist/index233.js +407 -20
- package/dist/index234.js +80 -20
- package/dist/index235.js +12 -12
- package/dist/index236.js +87 -19
- package/dist/index237.js +11 -11
- package/dist/index238.js +19 -160
- package/dist/index239.js +11 -11
- package/dist/index240.js +13 -15
- package/dist/index241.js +20 -197
- package/dist/index242.js +3629 -63
- package/dist/index243.js +52 -31
- package/dist/index244.js +73 -36
- package/dist/index245.js +51 -160
- package/dist/index246.js +212 -225
- package/dist/index247.js +10 -37
- package/dist/index248.js +57 -10
- package/dist/index249.js +61 -22
- package/dist/index250.js +54 -22
- package/dist/index251.js +75 -20
- package/dist/index252.js +681 -791
- package/dist/index253.js +33 -693
- package/dist/index254.js +56 -168
- package/dist/index255.js +11 -22
- package/dist/index256.js +705 -20
- package/dist/index257.js +820 -20
- package/dist/index258.js +22 -3
- package/dist/index259.js +21 -186
- package/dist/index260.js +19 -132
- package/dist/index261.js +744 -1131
- package/dist/index262.js +701 -19
- package/dist/index263.js +176 -22
- package/dist/index264.js +8 -8
- package/dist/index265.js +13 -22
- package/dist/index266.js +10 -10
- package/dist/index267.js +3 -20
- package/dist/index268.js +187 -2
- package/dist/index269.js +133 -2
- package/dist/index270.js +149 -3624
- package/dist/index271.js +1216 -48
- package/dist/index272.js +20 -77
- package/dist/index273.js +22 -52
- package/dist/index274.js +20 -215
- package/dist/index275.js +22 -10
- package/dist/index276.js +29 -57
- package/dist/index277.js +20 -61
- package/dist/index278.js +20 -54
- package/dist/index279.js +2 -75
- package/dist/index280.js +2 -726
- package/dist/index281.js +22 -42
- package/dist/index282.js +190 -55
- package/dist/index283.js +70 -11
- package/dist/index284.js +33 -704
- package/dist/index285.js +37 -817
- package/dist/index287.js +2 -8
- package/dist/index290.js +79 -2
- package/dist/index291.js +8 -79
- package/dist/index292.js +3 -54
- package/dist/index293.js +26 -25
- package/dist/index294.js +1534 -22
- package/dist/index295.js +386 -22
- package/dist/index296.js +2731 -16
- package/dist/index297.js +86 -17
- package/dist/index298.js +3792 -23
- package/dist/index299.js +52 -254
- package/dist/index300.js +15 -6
- package/dist/index301.js +74 -130
- package/dist/index302.js +195 -66
- package/dist/index303.js +240 -81
- package/dist/index304.js +256 -23
- package/dist/index305.js +5 -15
- package/dist/index306.js +131 -66
- package/dist/index307.js +72 -3
- package/dist/index308.js +87 -2
- package/dist/index309.js +24 -78
- package/dist/index310.js +10 -47
- package/dist/index311.js +74 -5
- package/dist/index312.js +3 -4
- package/dist/index313.js +2 -179
- package/dist/index314.js +78 -58
- package/dist/index315.js +53 -75
- package/dist/index316.js +6 -3
- package/dist/index317.js +4 -26
- package/dist/index318.js +149 -1504
- package/dist/index319.js +55 -378
- package/dist/index320.js +75 -2731
- package/dist/index321.js +75 -82
- package/dist/index322.js +22 -3792
- package/dist/index323.js +931 -56
- package/dist/index324.js +21 -78
- package/dist/index325.js +13 -15
- package/dist/index326.js +20 -935
- package/dist/index327.js +68 -21
- package/dist/index328.js +19 -20
- package/dist/index329.js +19 -20
- package/dist/index330.js +52 -67
- package/dist/index331.js +22 -19
- package/dist/index332.js +22 -19
- package/dist/index333.js +62 -21
- package/dist/index334.js +19 -15
- package/dist/index335.js +21 -62
- package/dist/index336.js +22 -15
- package/dist/index337.js +16 -84
- package/dist/index338.js +16 -201
- package/dist/index339.js +23 -246
- package/dist/index341.js +8 -18
- package/dist/index342.js +12 -56
- package/dist/index343.js +53 -27
- package/dist/index344.js +11 -6
- package/dist/index345.js +12 -50
- package/dist/index346.js +58 -7
- package/dist/index347.js +50 -10
- package/dist/index348.js +31 -7
- package/dist/index349.js +2 -28
- package/dist/index350.js +5 -2
- package/dist/index351.js +2 -70
- package/dist/index352.js +21 -165
- package/dist/index353.js +40 -8
- package/dist/index354.js +2 -13
- package/dist/index355.js +11 -55
- package/dist/index356.js +18 -10
- package/dist/index357.js +10 -14
- package/dist/index358.js +10 -58
- package/dist/index359.js +16 -51
- package/dist/index360.js +2 -31
- package/dist/index361.js +9 -2
- package/dist/index362.js +10 -5
- package/dist/index363.js +14 -2
- package/dist/index364.js +19 -23
- package/dist/index365.js +56 -40
- package/dist/index366.js +29 -2
- package/dist/index367.js +7 -11
- package/dist/index368.js +49 -17
- package/dist/index369.js +6 -9
- package/dist/index370.js +12 -10
- package/dist/index371.js +6 -16
- package/dist/index372.js +28 -2
- package/dist/index373.js +2 -9
- package/dist/index374.js +70 -10
- package/dist/index375.js +165 -12
- package/dist/index376.js +1 -1
- package/dist/index377.js +1 -1
- package/dist/index378.js +2 -2
- 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 -13
- package/dist/index385.js +4 -7
- package/dist/index386.js +3 -11
- package/dist/index387.js +13 -5
- package/dist/index388.js +7 -33
- package/dist/index389.js +11 -30
- package/dist/index390.js +5 -28
- package/dist/index391.js +33 -61
- package/dist/index392.js +29 -99
- package/dist/index393.js +28 -91
- package/dist/index394.js +60 -16
- package/dist/index395.js +16 -97
- package/dist/index396.js +1 -1
- package/dist/index4.js +19 -21
- package/dist/index401.js +1 -1
- package/dist/index402.js +2 -2
- package/dist/index88.js +43 -31
- package/dist/src/components/comment/comment.d.ts +9 -0
- package/dist/src/components/comment/comment.stories.d.ts +9 -0
- package/dist/src/components/comment-section/comment-section.d.ts +9 -0
- package/dist/src/components/comment-section/comment-section.stories.d.ts +9 -0
- package/dist/src/components/data-filter/data-filter.d.ts +27 -0
- package/dist/src/components/data-filter/data-filter.stories.d.ts +8 -0
- package/dist/src/components/data-list/data-list.d.ts +27 -0
- package/dist/src/components/grid/grid.stories.d.ts +36 -0
- package/dist/src/components/popover/popover.d.ts +17 -2
- package/dist/src/components/popover/popover.stories.d.ts +63 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +9 -0
- package/dist/src/views/lists.vue.d.ts +54 -0
- package/dist/src/views/tables.vue.d.ts +27 -0
- package/package.json +1 -1
- package/dist/index204.js +0 -20
package/dist/index243.js
CHANGED
|
@@ -1,36 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Node as a, wrappingInputRule as c, mergeAttributes as d } from "./index242.js";
|
|
2
|
+
import { createElement as i } from "./index300.js";
|
|
3
|
+
var l = /^\s*>\s$/, g = a.create({
|
|
4
|
+
name: "blockquote",
|
|
5
|
+
addOptions() {
|
|
6
|
+
return {
|
|
7
|
+
HTMLAttributes: {}
|
|
8
|
+
};
|
|
6
9
|
},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"p-disabled": l.disabled,
|
|
13
|
-
"p-focus": o.focused
|
|
14
|
-
}];
|
|
10
|
+
content: "block+",
|
|
11
|
+
group: "block",
|
|
12
|
+
defining: !0,
|
|
13
|
+
parseHTML() {
|
|
14
|
+
return [{ tag: "blockquote" }];
|
|
15
15
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
16
|
+
renderHTML({ HTMLAttributes: t }) {
|
|
17
|
+
return /* @__PURE__ */ i("blockquote", { ...d(this.options.HTMLAttributes, t), children: /* @__PURE__ */ i("slot", {}) });
|
|
18
|
+
},
|
|
19
|
+
parseMarkdown: (t, e) => e.createNode("blockquote", void 0, e.parseChildren(t.tokens || [])),
|
|
20
|
+
renderMarkdown: (t, e) => {
|
|
21
|
+
if (!t.content)
|
|
22
|
+
return "";
|
|
23
|
+
const r = ">", n = [];
|
|
24
|
+
return t.content.forEach((u) => {
|
|
25
|
+
const s = e.renderChildren([u]).split(`
|
|
26
|
+
`).map((o) => o.trim() === "" ? r : `${r} ${o}`);
|
|
27
|
+
n.push(s.join(`
|
|
28
|
+
`));
|
|
29
|
+
}), n.join(`
|
|
30
|
+
${r}
|
|
31
|
+
`);
|
|
32
|
+
},
|
|
33
|
+
addCommands() {
|
|
34
|
+
return {
|
|
35
|
+
setBlockquote: () => ({ commands: t }) => t.wrapIn(this.name),
|
|
36
|
+
toggleBlockquote: () => ({ commands: t }) => t.toggleWrap(this.name),
|
|
37
|
+
unsetBlockquote: () => ({ commands: t }) => t.lift(this.name)
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
addKeyboardShortcuts() {
|
|
41
|
+
return {
|
|
42
|
+
"Mod-Shift-b": () => this.editor.commands.toggleBlockquote()
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
addInputRules() {
|
|
46
|
+
return [
|
|
47
|
+
c({
|
|
48
|
+
find: l,
|
|
49
|
+
type: this.type
|
|
50
|
+
})
|
|
51
|
+
];
|
|
52
|
+
}
|
|
33
53
|
});
|
|
34
54
|
export {
|
|
35
|
-
|
|
55
|
+
g as Blockquote,
|
|
56
|
+
l as inputRegex
|
|
36
57
|
};
|
package/dist/index244.js
CHANGED
|
@@ -1,42 +1,79 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { Mark as a, markPasteRule as r, markInputRule as s, mergeAttributes as o } from "./index242.js";
|
|
2
|
+
import { createElement as n } from "./index300.js";
|
|
3
|
+
var d = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, l = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, i = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, u = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, p = a.create({
|
|
4
|
+
name: "bold",
|
|
5
|
+
addOptions() {
|
|
6
|
+
return {
|
|
7
|
+
HTMLAttributes: {}
|
|
8
|
+
};
|
|
9
|
+
},
|
|
10
|
+
parseHTML() {
|
|
11
|
+
return [
|
|
12
|
+
{
|
|
13
|
+
tag: "strong"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
tag: "b",
|
|
17
|
+
getAttrs: (t) => t.style.fontWeight !== "normal" && null
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
style: "font-weight=400",
|
|
21
|
+
clearMark: (t) => t.type.name === this.name
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
style: "font-weight",
|
|
25
|
+
getAttrs: (t) => /^(bold(er)?|[5-9]\d{2,})$/.test(t) && null
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
},
|
|
29
|
+
renderHTML({ HTMLAttributes: t }) {
|
|
30
|
+
return /* @__PURE__ */ n("strong", { ...o(this.options.HTMLAttributes, t), children: /* @__PURE__ */ n("slot", {}) });
|
|
31
|
+
},
|
|
32
|
+
markdownTokenName: "strong",
|
|
33
|
+
parseMarkdown: (t, e) => e.applyMark("bold", e.parseInline(t.tokens || [])),
|
|
34
|
+
renderMarkdown: (t, e) => `**${e.renderChildren(t)}**`,
|
|
35
|
+
addCommands() {
|
|
36
|
+
return {
|
|
37
|
+
setBold: () => ({ commands: t }) => t.setMark(this.name),
|
|
38
|
+
toggleBold: () => ({ commands: t }) => t.toggleMark(this.name),
|
|
39
|
+
unsetBold: () => ({ commands: t }) => t.unsetMark(this.name)
|
|
40
|
+
};
|
|
20
41
|
},
|
|
21
|
-
|
|
22
|
-
provide: function() {
|
|
42
|
+
addKeyboardShortcuts() {
|
|
23
43
|
return {
|
|
24
|
-
|
|
44
|
+
"Mod-b": () => this.editor.commands.toggleBold(),
|
|
45
|
+
"Mod-B": () => this.editor.commands.toggleBold()
|
|
25
46
|
};
|
|
47
|
+
},
|
|
48
|
+
addInputRules() {
|
|
49
|
+
return [
|
|
50
|
+
s({
|
|
51
|
+
find: d,
|
|
52
|
+
type: this.type
|
|
53
|
+
}),
|
|
54
|
+
s({
|
|
55
|
+
find: i,
|
|
56
|
+
type: this.type
|
|
57
|
+
})
|
|
58
|
+
];
|
|
59
|
+
},
|
|
60
|
+
addPasteRules() {
|
|
61
|
+
return [
|
|
62
|
+
r({
|
|
63
|
+
find: l,
|
|
64
|
+
type: this.type
|
|
65
|
+
}),
|
|
66
|
+
r({
|
|
67
|
+
find: u,
|
|
68
|
+
type: this.type
|
|
69
|
+
})
|
|
70
|
+
];
|
|
26
71
|
}
|
|
27
|
-
}
|
|
28
|
-
name: "Badge",
|
|
29
|
-
extends: l,
|
|
30
|
-
inheritAttrs: !1
|
|
31
|
-
};
|
|
32
|
-
function d(e, c, f, m, g, $) {
|
|
33
|
-
return n(), o("span", a({
|
|
34
|
-
class: e.cx("root")
|
|
35
|
-
}, e.ptmi("root")), [s(e.$slots, "default", {}, function() {
|
|
36
|
-
return [p(i(e.value), 1)];
|
|
37
|
-
})], 16);
|
|
38
|
-
}
|
|
39
|
-
u.render = d;
|
|
72
|
+
});
|
|
40
73
|
export {
|
|
41
|
-
|
|
74
|
+
p as Bold,
|
|
75
|
+
d as starInputRegex,
|
|
76
|
+
l as starPasteRegex,
|
|
77
|
+
i as underscoreInputRegex,
|
|
78
|
+
u as underscorePasteRegex
|
|
42
79
|
};
|
package/dist/index245.js
CHANGED
|
@@ -1,163 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return t.getDate();
|
|
49
|
-
},
|
|
50
|
-
// Day of month: 01, 02, ..., 31
|
|
51
|
-
DD: function(t) {
|
|
52
|
-
return r(t.getDate(), 2);
|
|
53
|
-
},
|
|
54
|
-
// Hour: 0, 1, ... 23
|
|
55
|
-
H: function(t) {
|
|
56
|
-
return t.getHours();
|
|
57
|
-
},
|
|
58
|
-
// Hour: 00, 01, ..., 23
|
|
59
|
-
HH: function(t) {
|
|
60
|
-
return r(t.getHours(), 2);
|
|
61
|
-
},
|
|
62
|
-
// Hour: 1, 2, ..., 12
|
|
63
|
-
h: function(t) {
|
|
64
|
-
var e = t.getHours();
|
|
65
|
-
return e === 0 ? 12 : e > 12 ? e % 12 : e;
|
|
66
|
-
},
|
|
67
|
-
// Hour: 01, 02, ..., 12
|
|
68
|
-
hh: function() {
|
|
69
|
-
var t = i.h.apply(i, arguments);
|
|
70
|
-
return r(t, 2);
|
|
71
|
-
},
|
|
72
|
-
// Minute: 0, 1, ..., 59
|
|
73
|
-
m: function(t) {
|
|
74
|
-
return t.getMinutes();
|
|
75
|
-
},
|
|
76
|
-
// Minute: 00, 01, ..., 59
|
|
77
|
-
mm: function(t) {
|
|
78
|
-
return r(t.getMinutes(), 2);
|
|
79
|
-
},
|
|
80
|
-
// Second: 0, 1, ..., 59
|
|
81
|
-
s: function(t) {
|
|
82
|
-
return t.getSeconds();
|
|
83
|
-
},
|
|
84
|
-
// Second: 00, 01, ..., 59
|
|
85
|
-
ss: function(t) {
|
|
86
|
-
return r(t.getSeconds(), 2);
|
|
87
|
-
},
|
|
88
|
-
// 1/10 of second: 0, 1, ..., 9
|
|
89
|
-
S: function(t) {
|
|
90
|
-
return Math.floor(t.getMilliseconds() / 100);
|
|
91
|
-
},
|
|
92
|
-
// 1/100 of second: 00, 01, ..., 99
|
|
93
|
-
SS: function(t) {
|
|
94
|
-
return r(Math.floor(t.getMilliseconds() / 10), 2);
|
|
95
|
-
},
|
|
96
|
-
// Millisecond: 000, 001, ..., 999
|
|
97
|
-
SSS: function(t) {
|
|
98
|
-
return r(t.getMilliseconds(), 3);
|
|
99
|
-
},
|
|
100
|
-
// Day of week: 0, 1, ..., 6
|
|
101
|
-
d: function(t) {
|
|
102
|
-
return t.getDay();
|
|
103
|
-
},
|
|
104
|
-
// Day of week: 'Su', 'Mo', ..., 'Sa'
|
|
105
|
-
dd: function(t, e) {
|
|
106
|
-
return e.weekdaysMin[t.getDay()];
|
|
107
|
-
},
|
|
108
|
-
// Day of week: 'Sun', 'Mon',..., 'Sat'
|
|
109
|
-
ddd: function(t, e) {
|
|
110
|
-
return e.weekdaysShort[t.getDay()];
|
|
111
|
-
},
|
|
112
|
-
// Day of week: 'Sunday', 'Monday', ...,'Saturday'
|
|
113
|
-
dddd: function(t, e) {
|
|
114
|
-
return e.weekdays[t.getDay()];
|
|
115
|
-
},
|
|
116
|
-
// AM, PM
|
|
117
|
-
A: function(t, e) {
|
|
118
|
-
var u = e.meridiem || d;
|
|
119
|
-
return u(t.getHours(), t.getMinutes(), !1);
|
|
120
|
-
},
|
|
121
|
-
// am, pm
|
|
122
|
-
a: function(t, e) {
|
|
123
|
-
var u = e.meridiem || d;
|
|
124
|
-
return u(t.getHours(), t.getMinutes(), !0);
|
|
125
|
-
},
|
|
126
|
-
// Timezone: -01:00, +00:00, ... +12:00
|
|
127
|
-
Z: function(t) {
|
|
128
|
-
return g(c(t), ":");
|
|
129
|
-
},
|
|
130
|
-
// Timezone: -0100, +0000, ... +1200
|
|
131
|
-
ZZ: function(t) {
|
|
132
|
-
return g(c(t));
|
|
133
|
-
},
|
|
134
|
-
// Seconds timestamp: 512969520
|
|
135
|
-
X: function(t) {
|
|
136
|
-
return Math.floor(t.getTime() / 1e3);
|
|
137
|
-
},
|
|
138
|
-
// Milliseconds timestamp: 512969520900
|
|
139
|
-
x: function(t) {
|
|
140
|
-
return t.getTime();
|
|
141
|
-
},
|
|
142
|
-
w: function(t, e) {
|
|
143
|
-
return l(t, {
|
|
144
|
-
firstDayOfWeek: e.firstDayOfWeek,
|
|
145
|
-
firstWeekContainsDate: e.firstWeekContainsDate
|
|
146
|
-
});
|
|
147
|
-
},
|
|
148
|
-
ww: function(t, e) {
|
|
149
|
-
return r(i.w(t, e), 2);
|
|
1
|
+
import { Mark as r, markPasteRule as n, markInputRule as a, mergeAttributes as d } from "./index242.js";
|
|
2
|
+
var o = /(^|[^`])`([^`]+)`(?!`)$/, u = /(^|[^`])`([^`]+)`(?!`)/g, i = r.create({
|
|
3
|
+
name: "code",
|
|
4
|
+
addOptions() {
|
|
5
|
+
return {
|
|
6
|
+
HTMLAttributes: {}
|
|
7
|
+
};
|
|
8
|
+
},
|
|
9
|
+
excludes: "_",
|
|
10
|
+
code: !0,
|
|
11
|
+
exitable: !0,
|
|
12
|
+
parseHTML() {
|
|
13
|
+
return [{ tag: "code" }];
|
|
14
|
+
},
|
|
15
|
+
renderHTML({ HTMLAttributes: e }) {
|
|
16
|
+
return ["code", d(this.options.HTMLAttributes, e), 0];
|
|
17
|
+
},
|
|
18
|
+
markdownTokenName: "codespan",
|
|
19
|
+
parseMarkdown: (e, t) => t.applyMark("code", [{ type: "text", text: e.text || "" }]),
|
|
20
|
+
renderMarkdown: (e, t) => e.content ? `\`${t.renderChildren(e.content)}\`` : "",
|
|
21
|
+
addCommands() {
|
|
22
|
+
return {
|
|
23
|
+
setCode: () => ({ commands: e }) => e.setMark(this.name),
|
|
24
|
+
toggleCode: () => ({ commands: e }) => e.toggleMark(this.name),
|
|
25
|
+
unsetCode: () => ({ commands: e }) => e.unsetMark(this.name)
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
addKeyboardShortcuts() {
|
|
29
|
+
return {
|
|
30
|
+
"Mod-e": () => this.editor.commands.toggleCode()
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
addInputRules() {
|
|
34
|
+
return [
|
|
35
|
+
a({
|
|
36
|
+
find: o,
|
|
37
|
+
type: this.type
|
|
38
|
+
})
|
|
39
|
+
];
|
|
40
|
+
},
|
|
41
|
+
addPasteRules() {
|
|
42
|
+
return [
|
|
43
|
+
n({
|
|
44
|
+
find: u,
|
|
45
|
+
type: this.type
|
|
46
|
+
})
|
|
47
|
+
];
|
|
150
48
|
}
|
|
151
|
-
};
|
|
152
|
-
function v(n, t) {
|
|
153
|
-
var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, u = t ? String(t) : "YYYY-MM-DDTHH:mm:ss.SSSZ", o = m(n);
|
|
154
|
-
if (!M(o))
|
|
155
|
-
return "Invalid Date";
|
|
156
|
-
var a = e.locale || h;
|
|
157
|
-
return u.replace(Y, function(f, s) {
|
|
158
|
-
return s || (typeof i[f] == "function" ? "".concat(i[f](o, a)) : f);
|
|
159
|
-
});
|
|
160
|
-
}
|
|
49
|
+
});
|
|
161
50
|
export {
|
|
162
|
-
|
|
51
|
+
i as Code,
|
|
52
|
+
o as inputRegex,
|
|
53
|
+
u as pasteRegex
|
|
163
54
|
};
|