@quoreadmin/ui 1.7.9 → 1.7.10

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.
Files changed (205) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index140.js +2 -2
  3. package/dist/index142.js +13 -13
  4. package/dist/index144.js +4 -4
  5. package/dist/index155.js +1 -1
  6. package/dist/index159.js +7 -7
  7. package/dist/index172.js +14 -14
  8. package/dist/index173.js +3 -3
  9. package/dist/index183.js +2 -2
  10. package/dist/index185.js +9 -9
  11. package/dist/index187.js +5938 -36
  12. package/dist/index188.js +205 -42
  13. package/dist/index189.js +25 -1180
  14. package/dist/index190.js +20 -0
  15. package/dist/index191.js +72 -5932
  16. package/dist/index192.js +245 -199
  17. package/dist/index193.js +13674 -25
  18. package/dist/index194.js +26 -17
  19. package/dist/index195.js +61 -76
  20. package/dist/index196.js +224 -239
  21. package/dist/index197.js +283 -13659
  22. package/dist/index198.js +288 -27
  23. package/dist/index199.js +36 -63
  24. package/dist/index200.js +44 -238
  25. package/dist/index201.js +1169 -287
  26. package/dist/index203.js +29 -84
  27. package/dist/index204.js +109 -400
  28. package/dist/index205.js +36 -22
  29. package/dist/index206.js +26 -33
  30. package/dist/index207.js +31 -111
  31. package/dist/index208.js +9 -36
  32. package/dist/index209.js +19 -26
  33. package/dist/index210.js +10 -36
  34. package/dist/index211.js +10 -9
  35. package/dist/index212.js +50 -18
  36. package/dist/index213.js +43 -10
  37. package/dist/index214.js +4 -10
  38. package/dist/index215.js +36 -48
  39. package/dist/index216.js +21 -43
  40. package/dist/index217.js +87 -3
  41. package/dist/index218.js +403 -35
  42. package/dist/index219.js +22 -21
  43. package/dist/index220.js +4 -4
  44. package/dist/index221.js +1 -1
  45. package/dist/index222.js +1 -1
  46. package/dist/index223.js +1 -1
  47. package/dist/index224.js +7 -7
  48. package/dist/index225.js +2 -2
  49. package/dist/index227.js +2 -2
  50. package/dist/index232.js +3614 -109
  51. package/dist/index233.js +49 -32
  52. package/dist/index234.js +70 -73
  53. package/dist/index235.js +52 -20
  54. package/dist/index236.js +215 -20
  55. package/dist/index237.js +10 -20
  56. package/dist/index238.js +57 -20
  57. package/dist/index239.js +61 -22
  58. package/dist/index240.js +54 -22
  59. package/dist/index241.js +75 -20
  60. package/dist/index242.js +678 -791
  61. package/dist/index243.js +32 -695
  62. package/dist/index244.js +56 -168
  63. package/dist/index245.js +11 -22
  64. package/dist/index246.js +705 -20
  65. package/dist/index247.js +820 -20
  66. package/dist/index248.js +127 -3
  67. package/dist/index249.js +24 -173
  68. package/dist/index250.js +78 -131
  69. package/dist/index251.js +20 -1223
  70. package/dist/index252.js +10 -10
  71. package/dist/index253.js +13 -15
  72. package/dist/index254.js +13 -15
  73. package/dist/index255.js +15 -22
  74. package/dist/index256.js +15 -13
  75. package/dist/index257.js +12 -12
  76. package/dist/index258.js +836 -2
  77. package/dist/index259.js +702 -2
  78. package/dist/index260.js +170 -3626
  79. package/dist/index261.js +22 -55
  80. package/dist/index262.js +20 -77
  81. package/dist/index263.js +20 -52
  82. package/dist/index264.js +3 -215
  83. package/dist/index265.js +187 -10
  84. package/dist/index266.js +128 -52
  85. package/dist/index267.js +1214 -52
  86. package/dist/index268.js +20 -54
  87. package/dist/index269.js +22 -75
  88. package/dist/index270.js +21 -722
  89. package/dist/index271.js +29 -39
  90. package/dist/index272.js +20 -64
  91. package/dist/index273.js +20 -11
  92. package/dist/index274.js +2 -705
  93. package/dist/index275.js +2 -820
  94. package/dist/index280.js +54 -3
  95. package/dist/index281.js +77 -25
  96. package/dist/index282.js +25 -53
  97. package/dist/index283.js +21 -78
  98. package/dist/index284.js +13 -17
  99. package/dist/index285.js +16 -22
  100. package/dist/index286.js +17 -22
  101. package/dist/index287.js +22 -15
  102. package/dist/index288.js +3 -17
  103. package/dist/index289.js +27 -23
  104. package/dist/index290.js +1518 -2
  105. package/dist/index291.js +366 -215
  106. package/dist/index292.js +2729 -4
  107. package/dist/index293.js +83 -131
  108. package/dist/index294.js +3768 -66
  109. package/dist/index295.js +56 -83
  110. package/dist/index296.js +15 -29
  111. package/dist/index297.js +83 -8
  112. package/dist/index298.js +191 -64
  113. package/dist/index299.js +245 -3
  114. package/dist/index300.js +2 -2
  115. package/dist/index301.js +74 -78
  116. package/dist/index302.js +21 -53
  117. package/dist/index303.js +934 -5
  118. package/dist/index304.js +21 -4
  119. package/dist/index305.js +19 -178
  120. package/dist/index306.js +19 -62
  121. package/dist/index307.js +68 -74
  122. package/dist/index308.js +19 -1518
  123. package/dist/index309.js +19 -386
  124. package/dist/index310.js +22 -2731
  125. package/dist/index311.js +21 -85
  126. package/dist/index312.js +63 -3770
  127. package/dist/index313.js +227 -52
  128. package/dist/index314.js +5 -78
  129. package/dist/index315.js +133 -21
  130. package/dist/index316.js +62 -929
  131. package/dist/index317.js +86 -21
  132. package/dist/index318.js +28 -19
  133. package/dist/index319.js +7 -18
  134. package/dist/index320.js +73 -67
  135. package/dist/index321.js +4 -19
  136. package/dist/index322.js +2 -19
  137. package/dist/index323.js +82 -21
  138. package/dist/index324.js +53 -21
  139. package/dist/index325.js +6 -63
  140. package/dist/index326.js +5 -15
  141. package/dist/index327.js +166 -71
  142. package/dist/index328.js +57 -196
  143. package/dist/index329.js +75 -246
  144. package/dist/index330.js +36 -8
  145. package/dist/index331.js +8 -12
  146. package/dist/index332.js +12 -54
  147. package/dist/index333.js +52 -9
  148. package/dist/index334.js +11 -13
  149. package/dist/index335.js +9 -53
  150. package/dist/index336.js +55 -49
  151. package/dist/index337.js +49 -28
  152. package/dist/index338.js +31 -2
  153. package/dist/index339.js +2 -5
  154. package/dist/index340.js +5 -2
  155. package/dist/index341.js +2 -23
  156. package/dist/index342.js +21 -39
  157. package/dist/index343.js +41 -2
  158. package/dist/index344.js +2 -11
  159. package/dist/index345.js +11 -20
  160. package/dist/index346.js +18 -15
  161. package/dist/index347.js +16 -9
  162. package/dist/index348.js +9 -9
  163. package/dist/index349.js +10 -2
  164. package/dist/index350.js +2 -9
  165. package/dist/index351.js +9 -10
  166. package/dist/index352.js +10 -14
  167. package/dist/index353.js +14 -37
  168. package/dist/index354.js +19 -20
  169. package/dist/index355.js +19 -55
  170. package/dist/index356.js +63 -28
  171. package/dist/index357.js +37 -7
  172. package/dist/index358.js +18 -49
  173. package/dist/index359.js +56 -6
  174. package/dist/index360.js +27 -10
  175. package/dist/index361.js +7 -7
  176. package/dist/index362.js +51 -27
  177. package/dist/index363.js +6 -2
  178. package/dist/index364.js +11 -69
  179. package/dist/index365.js +6 -166
  180. package/dist/index366.js +28 -20
  181. package/dist/index367.js +2 -20
  182. package/dist/index368.js +67 -61
  183. package/dist/index369.js +166 -36
  184. package/dist/index370.js +98 -28
  185. package/dist/index371.js +90 -10
  186. package/dist/index372.js +98 -4
  187. package/dist/index373.js +17 -4
  188. package/dist/index374.js +30 -12
  189. package/dist/index375.js +11 -7
  190. package/dist/index376.js +3 -11
  191. package/dist/index377.js +3 -4
  192. package/dist/index378.js +13 -33
  193. package/dist/index379.js +7 -31
  194. package/dist/index380.js +12 -28
  195. package/dist/index381.js +5 -61
  196. package/dist/index382.js +33 -101
  197. package/dist/index383.js +31 -91
  198. package/dist/index384.js +27 -16
  199. package/dist/index385.js +59 -96
  200. package/dist/index386.js +1 -1
  201. package/dist/index391.js +1 -1
  202. package/dist/index392.js +2 -2
  203. package/dist/index44.js +22 -22
  204. package/package.json +1 -1
  205. package/dist/index202.js +0 -290
package/dist/index239.js CHANGED
@@ -1,24 +1,63 @@
1
- import r from "./index283.js";
2
- import { createElementBlock as o, openBlock as t, mergeProps as n, createElementVNode as C } from "vue";
3
- var l = {
4
- name: "ArrowDownIcon",
5
- extends: r
6
- }, i = /* @__PURE__ */ C("path", {
7
- "fill-rule": "evenodd",
8
- "clip-rule": "evenodd",
9
- d: "M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z",
10
- fill: "currentColor"
11
- }, null, -1), p = [i];
12
- function d(e, s, a, c, m, h) {
13
- return t(), o("svg", n({
14
- width: "14",
15
- height: "14",
16
- viewBox: "0 0 14 14",
17
- fill: "none",
18
- xmlns: "http://www.w3.org/2000/svg"
19
- }, e.pti()), p, 16);
20
- }
21
- l.render = d;
1
+ import { Node as l, textblockTypeInputRule as i, mergeAttributes as a } from "./index232.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
+ });
22
61
  export {
23
- l as default
62
+ d as Heading
24
63
  };
package/dist/index240.js CHANGED
@@ -1,24 +1,56 @@
1
- import r from "./index283.js";
2
- import { createElementBlock as o, openBlock as t, mergeProps as n, createElementVNode as C } from "vue";
3
- var l = {
4
- name: "ArrowUpIcon",
5
- extends: r
6
- }, i = /* @__PURE__ */ C("path", {
7
- "fill-rule": "evenodd",
8
- "clip-rule": "evenodd",
9
- d: "M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z",
10
- fill: "currentColor"
11
- }, null, -1), p = [i];
12
- function d(e, s, a, c, m, h) {
13
- return t(), o("svg", n({
14
- width: "14",
15
- height: "14",
16
- viewBox: "0 0 14 14",
17
- fill: "none",
18
- xmlns: "http://www.w3.org/2000/svg"
19
- }, e.pti()), p, 16);
20
- }
21
- l.render = d;
1
+ import { Node as m, nodeInputRule as f, canInsertNode as h, isNodeSelection as T, mergeAttributes as y } from "./index232.js";
2
+ import { TextSelection as s, NodeSelection as N } from "./index247.js";
3
+ var M = m.create({
4
+ name: "horizontalRule",
5
+ addOptions() {
6
+ return {
7
+ HTMLAttributes: {},
8
+ nextNodeType: "paragraph"
9
+ };
10
+ },
11
+ group: "block",
12
+ parseHTML() {
13
+ return [{ tag: "hr" }];
14
+ },
15
+ renderHTML({ HTMLAttributes: n }) {
16
+ return ["hr", y(this.options.HTMLAttributes, n)];
17
+ },
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
+ };
44
+ },
45
+ addInputRules() {
46
+ return [
47
+ f({
48
+ find: /^(?:---|—-|___\s|\*\*\*\s)$/,
49
+ type: this.type
50
+ })
51
+ ];
52
+ }
53
+ });
22
54
  export {
23
- l as default
55
+ M as HorizontalRule
24
56
  };
package/dist/index241.js CHANGED
@@ -1,22 +1,77 @@
1
- import C from "./index283.js";
2
- import { createElementBlock as r, openBlock as t, mergeProps as o, createElementVNode as n } from "vue";
3
- var i = {
4
- name: "SpinnerIcon",
5
- extends: C
6
- }, p = /* @__PURE__ */ n("path", {
7
- d: "M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",
8
- fill: "currentColor"
9
- }, null, -1), l = [p];
10
- function s(e, a, c, d, m, h) {
11
- return t(), r("svg", o({
12
- width: "14",
13
- height: "14",
14
- viewBox: "0 0 14 14",
15
- fill: "none",
16
- xmlns: "http://www.w3.org/2000/svg"
17
- }, e.pti()), l, 16);
18
- }
19
- i.render = s;
1
+ import { Mark as s, markPasteRule as r, markInputRule as a, mergeAttributes as n } from "./index232.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
- i as default
72
+ m as Italic,
73
+ i as starInputRegex,
74
+ d as starPasteRegex,
75
+ o as underscoreInputRegex,
76
+ l as underscorePasteRegex
22
77
  };