@qxs-bns/components 0.0.89 → 0.0.91

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 (799) hide show
  1. package/README.md +11 -15
  2. package/es/base/define.mjs +2 -0
  3. package/es/base/define.mjs.map +1 -0
  4. package/es/base/uid.mjs +2 -0
  5. package/es/base/uid.mjs.map +1 -0
  6. package/es/data-chart.mjs +142 -0
  7. package/es/data-chart.mjs.map +1 -0
  8. package/es/editor/blocksuite-editor.mjs +1115 -0
  9. package/es/editor/blocksuite-editor.mjs.map +1 -0
  10. package/es/editor/content-format.mjs +2 -0
  11. package/es/editor/content-format.mjs.map +1 -0
  12. package/es/editor/index.mjs +2 -0
  13. package/es/editor/index.mjs.map +1 -0
  14. package/es/editor/toolbar.mjs +2 -0
  15. package/es/editor/toolbar.mjs.map +1 -0
  16. package/es/entry-data-chart.mjs +2 -0
  17. package/es/entry-data-chart.mjs.map +1 -0
  18. package/es/entry-editor.mjs +2 -0
  19. package/es/entry-editor.mjs.map +1 -0
  20. package/es/entry-file-upload.mjs +2 -0
  21. package/es/entry-file-upload.mjs.map +1 -0
  22. package/es/entry-fixed-action-bar.mjs +2 -0
  23. package/es/entry-fixed-action-bar.mjs.map +1 -0
  24. package/es/entry-icon.mjs +2 -0
  25. package/es/entry-icon.mjs.map +1 -0
  26. package/es/entry-image-upload.mjs +2 -0
  27. package/es/entry-image-upload.mjs.map +1 -0
  28. package/es/entry-photo-crop-tool.mjs +2 -0
  29. package/es/entry-photo-crop-tool.mjs.map +1 -0
  30. package/es/entry-subject.mjs +2 -0
  31. package/es/entry-subject.mjs.map +1 -0
  32. package/es/file-upload.mjs +157 -0
  33. package/es/file-upload.mjs.map +1 -0
  34. package/es/fixed-action-bar.mjs +39 -0
  35. package/es/fixed-action-bar.mjs.map +1 -0
  36. package/es/icon.mjs +20 -0
  37. package/es/icon.mjs.map +1 -0
  38. package/es/image-upload.mjs +333 -0
  39. package/es/image-upload.mjs.map +1 -0
  40. package/es/index.mjs +1 -1
  41. package/es/index.mjs.map +1 -1
  42. package/es/node_modules/.pnpm/@iconify_vue@5.0.0_vue@3.5.18_typescript@5.9.2_/node_modules/@iconify/vue/dist/iconify.mjs +1 -1
  43. package/es/node_modules/.pnpm/@iconify_vue@5.0.0_vue@3.5.18_typescript@5.9.2_/node_modules/@iconify/vue/dist/iconify.mjs.map +1 -1
  44. package/es/node_modules/.pnpm/marked@17.0.6/node_modules/marked/lib/marked.esm.mjs +2 -0
  45. package/es/node_modules/.pnpm/marked@17.0.6/node_modules/marked/lib/marked.esm.mjs.map +1 -0
  46. package/es/node_modules/.pnpm/turndown-plugin-gfm@1.0.2/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.es.mjs +2 -0
  47. package/es/node_modules/.pnpm/turndown-plugin-gfm@1.0.2/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.es.mjs.map +1 -0
  48. package/es/node_modules/.pnpm/turndown@7.2.4/node_modules/turndown/lib/turndown.es.mjs +2 -0
  49. package/es/node_modules/.pnpm/turndown@7.2.4/node_modules/turndown/lib/turndown.es.mjs.map +1 -0
  50. package/es/package.json.mjs +1 -1
  51. package/es/photo-crop-tool.mjs +147 -0
  52. package/es/photo-crop-tool.mjs.map +1 -0
  53. package/es/src/alert/index.mjs +2 -0
  54. package/es/src/alert/index.mjs.map +1 -0
  55. package/es/src/alert/src/alert.mjs +2 -0
  56. package/es/src/alert/src/alert.mjs.map +1 -0
  57. package/es/src/components.mjs +1 -1
  58. package/es/src/data-chart/index.mjs +1 -1
  59. package/es/src/data-chart/index.mjs.map +1 -1
  60. package/es/src/dialog/src/dialog.mjs +2 -0
  61. package/es/src/dialog/src/dialog.mjs.map +1 -0
  62. package/es/src/feedback-plugin/index.mjs +2 -0
  63. package/es/src/feedback-plugin/index.mjs.map +1 -0
  64. package/es/src/file-upload/index.mjs +1 -1
  65. package/es/src/file-upload/index.mjs.map +1 -1
  66. package/es/src/image-upload/index.mjs +1 -1
  67. package/es/src/image-upload/index.mjs.map +1 -1
  68. package/es/src/make-installer.mjs +1 -1
  69. package/es/src/make-installer.mjs.map +1 -1
  70. package/es/src/message/src/message.mjs +2 -0
  71. package/es/src/message/src/message.mjs.map +1 -0
  72. package/es/src/photo-crop-tool/index.mjs +1 -1
  73. package/es/src/photo-crop-tool/index.mjs.map +1 -1
  74. package/es/src/tiny-mce-editor/src/tiny-mce-editor.vue.mjs +1 -1
  75. package/es/src/tiny-mce-editor/src/tiny-mce-editor.vue.mjs.map +1 -1
  76. package/es/src/ui/button/index.mjs +2 -0
  77. package/es/src/ui/button/index.mjs.map +1 -0
  78. package/es/src/ui/checkbox/index.mjs +2 -0
  79. package/es/src/ui/checkbox/index.mjs.map +1 -0
  80. package/es/src/ui/dialog/index.mjs +2 -0
  81. package/es/src/ui/dialog/index.mjs.map +1 -0
  82. package/es/src/ui/input/index.mjs +2 -0
  83. package/es/src/ui/input/index.mjs.map +1 -0
  84. package/es/src/ui/input-number/index.mjs +2 -0
  85. package/es/src/ui/input-number/index.mjs.map +1 -0
  86. package/es/src/ui/layout/index.mjs +2 -0
  87. package/es/src/ui/layout/index.mjs.map +1 -0
  88. package/es/src/ui/link/index.mjs +2 -0
  89. package/es/src/ui/link/index.mjs.map +1 -0
  90. package/es/src/ui/popover/index.mjs +2 -0
  91. package/es/src/ui/popover/index.mjs.map +1 -0
  92. package/es/src/ui/radio/index.mjs +2 -0
  93. package/es/src/ui/radio/index.mjs.map +1 -0
  94. package/es/src/ui/scrollbar/index.mjs +2 -0
  95. package/es/src/ui/scrollbar/index.mjs.map +1 -0
  96. package/es/src/ui/select/index.mjs +2 -0
  97. package/es/src/ui/select/index.mjs.map +1 -0
  98. package/es/src/ui/table/index.mjs +2 -0
  99. package/es/src/ui/table/index.mjs.map +1 -0
  100. package/es/src/ui/tag/index.mjs +2 -0
  101. package/es/src/ui/tag/index.mjs.map +1 -0
  102. package/es/src/wc-bridge.mjs +2 -0
  103. package/es/src/wc-bridge.mjs.map +1 -0
  104. package/es/subject/action.mjs +171 -0
  105. package/es/subject/action.mjs.map +1 -0
  106. package/es/subject/blank-fill.mjs +385 -0
  107. package/es/subject/blank-fill.mjs.map +1 -0
  108. package/es/subject/draft.mjs +2 -0
  109. package/es/subject/draft.mjs.map +1 -0
  110. package/es/subject/layout.mjs +21 -0
  111. package/es/subject/layout.mjs.map +1 -0
  112. package/es/subject/page-end.mjs +28 -0
  113. package/es/subject/page-end.mjs.map +1 -0
  114. package/es/subject/pagination.mjs +2 -0
  115. package/es/subject/pagination.mjs.map +1 -0
  116. package/es/subject/runtime.mjs +2 -0
  117. package/es/subject/runtime.mjs.map +1 -0
  118. package/es/subject/scale.mjs +267 -0
  119. package/es/subject/scale.mjs.map +1 -0
  120. package/es/subject/shared-methods.mjs +2 -0
  121. package/es/subject/shared-methods.mjs.map +1 -0
  122. package/es/subject/shared-styles.mjs +75 -0
  123. package/es/subject/shared-styles.mjs.map +1 -0
  124. package/es/subject/single.mjs +600 -0
  125. package/es/subject/single.mjs.map +1 -0
  126. package/es/subject/sort-controller.mjs +2 -0
  127. package/es/subject/sort-controller.mjs.map +1 -0
  128. package/es/subject/sortable.mjs +30 -0
  129. package/es/subject/sortable.mjs.map +1 -0
  130. package/es/subject/sorting-card.mjs +52 -0
  131. package/es/subject/sorting-card.mjs.map +1 -0
  132. package/es/subject/text-fill.mjs +395 -0
  133. package/es/subject/text-fill.mjs.map +1 -0
  134. package/es/subject/title-prefix.mjs +2 -0
  135. package/es/subject/title-prefix.mjs.map +1 -0
  136. package/es/subject/types.mjs +2 -0
  137. package/es/subject/types.mjs.map +1 -0
  138. package/lib/base/define.cjs +2 -0
  139. package/lib/base/define.cjs.map +1 -0
  140. package/lib/base/uid.cjs +2 -0
  141. package/lib/base/uid.cjs.map +1 -0
  142. package/lib/data-chart.cjs +142 -0
  143. package/lib/data-chart.cjs.map +1 -0
  144. package/lib/editor/blocksuite-editor.cjs +1115 -0
  145. package/lib/editor/blocksuite-editor.cjs.map +1 -0
  146. package/lib/editor/content-format.cjs +2 -0
  147. package/lib/editor/content-format.cjs.map +1 -0
  148. package/lib/editor/index.cjs +2 -0
  149. package/lib/editor/index.cjs.map +1 -0
  150. package/lib/editor/toolbar.cjs +2 -0
  151. package/lib/editor/toolbar.cjs.map +1 -0
  152. package/lib/entry-data-chart.cjs +2 -0
  153. package/lib/entry-data-chart.cjs.map +1 -0
  154. package/lib/entry-editor.cjs +2 -0
  155. package/lib/entry-editor.cjs.map +1 -0
  156. package/lib/entry-file-upload.cjs +2 -0
  157. package/lib/entry-file-upload.cjs.map +1 -0
  158. package/lib/entry-fixed-action-bar.cjs +2 -0
  159. package/lib/entry-fixed-action-bar.cjs.map +1 -0
  160. package/lib/entry-icon.cjs +2 -0
  161. package/lib/entry-icon.cjs.map +1 -0
  162. package/lib/entry-image-upload.cjs +2 -0
  163. package/lib/entry-image-upload.cjs.map +1 -0
  164. package/lib/entry-photo-crop-tool.cjs +2 -0
  165. package/lib/entry-photo-crop-tool.cjs.map +1 -0
  166. package/lib/entry-subject.cjs +2 -0
  167. package/lib/entry-subject.cjs.map +1 -0
  168. package/lib/file-upload.cjs +157 -0
  169. package/lib/file-upload.cjs.map +1 -0
  170. package/lib/fixed-action-bar.cjs +39 -0
  171. package/lib/fixed-action-bar.cjs.map +1 -0
  172. package/lib/icon.cjs +20 -0
  173. package/lib/icon.cjs.map +1 -0
  174. package/lib/image-upload.cjs +333 -0
  175. package/lib/image-upload.cjs.map +1 -0
  176. package/lib/index.cjs +1 -1
  177. package/lib/index.cjs.map +1 -1
  178. package/lib/node_modules/.pnpm/@iconify_vue@5.0.0_vue@3.5.18_typescript@5.9.2_/node_modules/@iconify/vue/dist/iconify.cjs +1 -1
  179. package/lib/node_modules/.pnpm/@iconify_vue@5.0.0_vue@3.5.18_typescript@5.9.2_/node_modules/@iconify/vue/dist/iconify.cjs.map +1 -1
  180. package/lib/node_modules/.pnpm/marked@17.0.6/node_modules/marked/lib/marked.esm.cjs +2 -0
  181. package/lib/node_modules/.pnpm/marked@17.0.6/node_modules/marked/lib/marked.esm.cjs.map +1 -0
  182. package/lib/node_modules/.pnpm/turndown-plugin-gfm@1.0.2/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.es.cjs +2 -0
  183. package/lib/node_modules/.pnpm/turndown-plugin-gfm@1.0.2/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.es.cjs.map +1 -0
  184. package/lib/node_modules/.pnpm/turndown@7.2.4/node_modules/turndown/lib/turndown.es.cjs +2 -0
  185. package/lib/node_modules/.pnpm/turndown@7.2.4/node_modules/turndown/lib/turndown.es.cjs.map +1 -0
  186. package/lib/package.json.cjs +1 -1
  187. package/lib/photo-crop-tool.cjs +147 -0
  188. package/lib/photo-crop-tool.cjs.map +1 -0
  189. package/lib/src/alert/index.cjs +2 -0
  190. package/lib/src/alert/index.cjs.map +1 -0
  191. package/lib/src/alert/src/alert.cjs +2 -0
  192. package/lib/src/alert/src/alert.cjs.map +1 -0
  193. package/lib/src/components.cjs +1 -1
  194. package/lib/src/data-chart/index.cjs +1 -1
  195. package/lib/src/data-chart/index.cjs.map +1 -1
  196. package/lib/src/dialog/src/dialog.cjs +2 -0
  197. package/lib/src/dialog/src/dialog.cjs.map +1 -0
  198. package/lib/src/feedback-plugin/index.cjs +2 -0
  199. package/lib/src/feedback-plugin/index.cjs.map +1 -0
  200. package/lib/src/file-upload/index.cjs +1 -1
  201. package/lib/src/file-upload/index.cjs.map +1 -1
  202. package/lib/src/image-upload/index.cjs +1 -1
  203. package/lib/src/image-upload/index.cjs.map +1 -1
  204. package/lib/src/make-installer.cjs +1 -1
  205. package/lib/src/make-installer.cjs.map +1 -1
  206. package/lib/src/message/src/message.cjs +2 -0
  207. package/lib/src/message/src/message.cjs.map +1 -0
  208. package/lib/src/photo-crop-tool/index.cjs +1 -1
  209. package/lib/src/photo-crop-tool/index.cjs.map +1 -1
  210. package/lib/src/tiny-mce-editor/src/tiny-mce-editor.vue.cjs +1 -1
  211. package/lib/src/tiny-mce-editor/src/tiny-mce-editor.vue.cjs.map +1 -1
  212. package/lib/src/ui/button/index.cjs +2 -0
  213. package/lib/src/ui/button/index.cjs.map +1 -0
  214. package/lib/src/ui/checkbox/index.cjs +2 -0
  215. package/lib/src/ui/checkbox/index.cjs.map +1 -0
  216. package/lib/src/ui/dialog/index.cjs +2 -0
  217. package/lib/src/ui/dialog/index.cjs.map +1 -0
  218. package/lib/src/ui/input/index.cjs +2 -0
  219. package/lib/src/ui/input/index.cjs.map +1 -0
  220. package/lib/src/ui/input-number/index.cjs +2 -0
  221. package/lib/src/ui/input-number/index.cjs.map +1 -0
  222. package/lib/src/ui/layout/index.cjs +2 -0
  223. package/lib/src/ui/layout/index.cjs.map +1 -0
  224. package/lib/src/ui/link/index.cjs +2 -0
  225. package/lib/src/ui/link/index.cjs.map +1 -0
  226. package/lib/src/ui/popover/index.cjs +2 -0
  227. package/lib/src/ui/popover/index.cjs.map +1 -0
  228. package/lib/src/ui/radio/index.cjs +2 -0
  229. package/lib/src/ui/radio/index.cjs.map +1 -0
  230. package/lib/src/ui/scrollbar/index.cjs +2 -0
  231. package/lib/src/ui/scrollbar/index.cjs.map +1 -0
  232. package/lib/src/ui/select/index.cjs +2 -0
  233. package/lib/src/ui/select/index.cjs.map +1 -0
  234. package/lib/src/ui/table/index.cjs +2 -0
  235. package/lib/src/ui/table/index.cjs.map +1 -0
  236. package/lib/src/ui/tag/index.cjs +2 -0
  237. package/lib/src/ui/tag/index.cjs.map +1 -0
  238. package/lib/src/wc-bridge.cjs +2 -0
  239. package/lib/src/wc-bridge.cjs.map +1 -0
  240. package/lib/subject/action.cjs +171 -0
  241. package/lib/subject/action.cjs.map +1 -0
  242. package/lib/subject/blank-fill.cjs +385 -0
  243. package/lib/subject/blank-fill.cjs.map +1 -0
  244. package/lib/subject/draft.cjs +2 -0
  245. package/lib/subject/draft.cjs.map +1 -0
  246. package/lib/subject/layout.cjs +21 -0
  247. package/lib/subject/layout.cjs.map +1 -0
  248. package/lib/subject/page-end.cjs +28 -0
  249. package/lib/subject/page-end.cjs.map +1 -0
  250. package/lib/subject/pagination.cjs +2 -0
  251. package/lib/subject/pagination.cjs.map +1 -0
  252. package/lib/subject/runtime.cjs +2 -0
  253. package/lib/subject/runtime.cjs.map +1 -0
  254. package/lib/subject/scale.cjs +267 -0
  255. package/lib/subject/scale.cjs.map +1 -0
  256. package/lib/subject/shared-methods.cjs +2 -0
  257. package/lib/subject/shared-methods.cjs.map +1 -0
  258. package/lib/subject/shared-styles.cjs +75 -0
  259. package/lib/subject/shared-styles.cjs.map +1 -0
  260. package/lib/subject/single.cjs +600 -0
  261. package/lib/subject/single.cjs.map +1 -0
  262. package/lib/subject/sort-controller.cjs +2 -0
  263. package/lib/subject/sort-controller.cjs.map +1 -0
  264. package/lib/subject/sortable.cjs +30 -0
  265. package/lib/subject/sortable.cjs.map +1 -0
  266. package/lib/subject/sorting-card.cjs +52 -0
  267. package/lib/subject/sorting-card.cjs.map +1 -0
  268. package/lib/subject/text-fill.cjs +395 -0
  269. package/lib/subject/text-fill.cjs.map +1 -0
  270. package/lib/subject/title-prefix.cjs +2 -0
  271. package/lib/subject/title-prefix.cjs.map +1 -0
  272. package/lib/subject/types.cjs +2 -0
  273. package/lib/subject/types.cjs.map +1 -0
  274. package/package.json +94 -41
  275. package/types/base/define.d.ts +1 -0
  276. package/types/base/uid.d.ts +1 -0
  277. package/types/data-chart.d.ts +65 -0
  278. package/types/editor/blocksuite-editor.d.ts +191 -0
  279. package/types/editor/content-format.d.ts +4 -0
  280. package/types/editor/index.d.ts +4 -0
  281. package/types/editor/toolbar.d.ts +6 -0
  282. package/types/editor/types.d.ts +42 -0
  283. package/types/entry-data-chart.d.ts +1 -0
  284. package/types/entry-editor.d.ts +2 -0
  285. package/types/entry-file-upload.d.ts +1 -0
  286. package/types/entry-fixed-action-bar.d.ts +1 -0
  287. package/types/entry-icon.d.ts +2 -0
  288. package/types/entry-image-upload.d.ts +1 -0
  289. package/types/entry-photo-crop-tool.d.ts +1 -0
  290. package/types/entry-subject.d.ts +2 -0
  291. package/types/file-upload.d.ts +48 -0
  292. package/types/fixed-action-bar.d.ts +25 -0
  293. package/types/icon.d.ts +30 -0
  294. package/types/image-upload.d.ts +68 -0
  295. package/types/index.d.ts +21 -6
  296. package/types/photo-crop-tool.d.ts +43 -0
  297. package/types/src/alert/index.d.ts +66 -0
  298. package/types/src/alert/index.d.ts.map +1 -0
  299. package/types/src/alert/src/alert.d.ts +73 -0
  300. package/types/src/alert/src/alert.d.ts.map +1 -0
  301. package/types/src/components.d.ts +4 -6
  302. package/types/src/components.d.ts.map +1 -1
  303. package/types/src/data-chart/index.d.ts +11 -27
  304. package/types/src/data-chart/index.d.ts.map +1 -1
  305. package/types/src/dialog/index.d.ts +3 -0
  306. package/types/src/dialog/index.d.ts.map +1 -0
  307. package/types/src/dialog/src/dialog.d.ts +25 -0
  308. package/types/src/dialog/src/dialog.d.ts.map +1 -0
  309. package/types/src/feedback-plugin/index.d.ts +9 -0
  310. package/types/src/feedback-plugin/index.d.ts.map +1 -0
  311. package/types/src/file-upload/index.d.ts +10 -28
  312. package/types/src/file-upload/index.d.ts.map +1 -1
  313. package/types/src/icon/index.d.ts +3 -3
  314. package/types/src/icon/src/icon.d.ts +3 -3
  315. package/types/src/image-upload/index.d.ts +10 -46
  316. package/types/src/image-upload/index.d.ts.map +1 -1
  317. package/types/src/make-installer.d.ts +1 -4
  318. package/types/src/make-installer.d.ts.map +1 -1
  319. package/types/src/message/index.d.ts +3 -0
  320. package/types/src/message/index.d.ts.map +1 -0
  321. package/types/src/message/src/message.d.ts +21 -0
  322. package/types/src/message/src/message.d.ts.map +1 -0
  323. package/types/src/message/src/toaster.vue.d.ts +3 -0
  324. package/types/src/message/src/toaster.vue.d.ts.map +1 -0
  325. package/types/src/photo-crop-tool/index.d.ts +9 -52
  326. package/types/src/photo-crop-tool/index.d.ts.map +1 -1
  327. package/types/src/subject-action/src/subject-action.vue.d.ts.map +1 -1
  328. package/types/src/subject-layout/index.d.ts +2 -2
  329. package/types/src/subject-layout/src/subject-layout.vue.d.ts +2 -2
  330. package/types/src/subject-layout/src/subject-layout.vue.d.ts.map +1 -1
  331. package/types/src/subject-list/src/components/subject-blank-fill.vue.d.ts.map +1 -1
  332. package/types/src/subject-list/src/components/subject-scale.vue.d.ts.map +1 -1
  333. package/types/src/subject-list/src/components/subject-single.vue.d.ts.map +1 -1
  334. package/types/src/subject-list/src/components/subject-text-fill.vue.d.ts.map +1 -1
  335. package/types/src/subject-list/src/subject-list.vue.d.ts.map +1 -1
  336. package/types/src/subject-type/src/subject-type.vue.d.ts.map +1 -1
  337. package/types/src/ui/button/index.d.ts +96 -0
  338. package/types/src/ui/button/index.d.ts.map +1 -0
  339. package/types/src/ui/checkbox/index.d.ts +111 -0
  340. package/types/src/ui/checkbox/index.d.ts.map +1 -0
  341. package/types/src/ui/dialog/index.d.ts +134 -0
  342. package/types/src/ui/dialog/index.d.ts.map +1 -0
  343. package/types/src/ui/index.d.ts +16 -0
  344. package/types/src/ui/index.d.ts.map +1 -0
  345. package/types/src/ui/input/index.d.ts +132 -0
  346. package/types/src/ui/input/index.d.ts.map +1 -0
  347. package/types/src/ui/input-number/index.d.ts +106 -0
  348. package/types/src/ui/input-number/index.d.ts.map +1 -0
  349. package/types/src/ui/layout/index.d.ts +373 -0
  350. package/types/src/ui/layout/index.d.ts.map +1 -0
  351. package/types/src/ui/link/index.d.ts +57 -0
  352. package/types/src/ui/link/index.d.ts.map +1 -0
  353. package/types/src/ui/popover/index.d.ts +89 -0
  354. package/types/src/ui/popover/index.d.ts.map +1 -0
  355. package/types/src/ui/radio/index.d.ts +84 -0
  356. package/types/src/ui/radio/index.d.ts.map +1 -0
  357. package/types/src/ui/scrollbar/index.d.ts +35 -0
  358. package/types/src/ui/scrollbar/index.d.ts.map +1 -0
  359. package/types/src/ui/select/index.d.ts +113 -0
  360. package/types/src/ui/select/index.d.ts.map +1 -0
  361. package/types/src/ui/table/index.d.ts +152 -0
  362. package/types/src/ui/table/index.d.ts.map +1 -0
  363. package/types/src/ui/tag/index.d.ts +69 -0
  364. package/types/src/ui/tag/index.d.ts.map +1 -0
  365. package/types/src/wc-bridge.d.ts +23 -0
  366. package/types/src/wc-bridge.d.ts.map +1 -0
  367. package/types/subject/action.d.ts +37 -0
  368. package/types/subject/blank-fill.d.ts +79 -0
  369. package/types/subject/draft.d.ts +63 -0
  370. package/types/subject/index.d.ts +13 -0
  371. package/types/subject/layout.d.ts +7 -0
  372. package/types/subject/page-end.d.ts +16 -0
  373. package/types/subject/pagination.d.ts +23 -0
  374. package/types/subject/runtime.d.ts +12 -0
  375. package/types/subject/scale.d.ts +55 -0
  376. package/types/subject/shared-methods.d.ts +8 -0
  377. package/types/subject/shared-styles.d.ts +5 -0
  378. package/types/subject/single.d.ts +288 -0
  379. package/types/subject/sort-controller.d.ts +3 -0
  380. package/types/subject/sortable.d.ts +19 -0
  381. package/types/subject/sorting-card.d.ts +2 -0
  382. package/types/subject/text-fill.d.ts +88 -0
  383. package/types/subject/title-prefix.d.ts +2 -0
  384. package/types/subject/types.d.ts +12 -0
  385. package/types/tsconfig.tsbuildinfo +1 -1
  386. package/es/_virtual/_plugin-vue_export-helper.mjs +0 -2
  387. package/es/_virtual/_plugin-vue_export-helper.mjs.map +0 -1
  388. package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -2
  389. package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs.map +0 -1
  390. package/es/src/data-chart/src/analyze.mjs +0 -2
  391. package/es/src/data-chart/src/analyze.mjs.map +0 -1
  392. package/es/src/data-chart/src/components/area.vue.mjs +0 -2
  393. package/es/src/data-chart/src/components/area.vue.mjs.map +0 -1
  394. package/es/src/data-chart/src/components/area.vue2.mjs +0 -2
  395. package/es/src/data-chart/src/components/area.vue2.mjs.map +0 -1
  396. package/es/src/data-chart/src/components/area.vue3.mjs +0 -2
  397. package/es/src/data-chart/src/components/area.vue3.mjs.map +0 -1
  398. package/es/src/data-chart/src/components/bar.vue.mjs +0 -2
  399. package/es/src/data-chart/src/components/bar.vue.mjs.map +0 -1
  400. package/es/src/data-chart/src/components/bar.vue2.mjs +0 -2
  401. package/es/src/data-chart/src/components/bar.vue2.mjs.map +0 -1
  402. package/es/src/data-chart/src/components/bar.vue3.mjs +0 -2
  403. package/es/src/data-chart/src/components/bar.vue3.mjs.map +0 -1
  404. package/es/src/data-chart/src/components/card.vue.mjs +0 -2
  405. package/es/src/data-chart/src/components/card.vue.mjs.map +0 -1
  406. package/es/src/data-chart/src/components/card.vue2.mjs +0 -2
  407. package/es/src/data-chart/src/components/card.vue2.mjs.map +0 -1
  408. package/es/src/data-chart/src/components/card.vue3.mjs +0 -2
  409. package/es/src/data-chart/src/components/card.vue3.mjs.map +0 -1
  410. package/es/src/data-chart/src/components/data-chart-card-bg-left.svg.mjs +0 -2
  411. package/es/src/data-chart/src/components/data-chart-card-bg-left.svg.mjs.map +0 -1
  412. package/es/src/data-chart/src/components/data-chart-card-bg-right.svg.mjs +0 -2
  413. package/es/src/data-chart/src/components/data-chart-card-bg-right.svg.mjs.map +0 -1
  414. package/es/src/data-chart/src/components/empty.svg.mjs +0 -2
  415. package/es/src/data-chart/src/components/empty.svg.mjs.map +0 -1
  416. package/es/src/data-chart/src/components/empty.vue.mjs +0 -2
  417. package/es/src/data-chart/src/components/empty.vue.mjs.map +0 -1
  418. package/es/src/data-chart/src/components/empty.vue2.mjs +0 -2
  419. package/es/src/data-chart/src/components/empty.vue2.mjs.map +0 -1
  420. package/es/src/data-chart/src/components/funnel.vue.mjs +0 -2
  421. package/es/src/data-chart/src/components/funnel.vue.mjs.map +0 -1
  422. package/es/src/data-chart/src/components/funnel.vue2.mjs +0 -2
  423. package/es/src/data-chart/src/components/funnel.vue2.mjs.map +0 -1
  424. package/es/src/data-chart/src/components/funnel.vue3.mjs +0 -2
  425. package/es/src/data-chart/src/components/funnel.vue3.mjs.map +0 -1
  426. package/es/src/data-chart/src/components/line.vue.mjs +0 -2
  427. package/es/src/data-chart/src/components/line.vue.mjs.map +0 -1
  428. package/es/src/data-chart/src/components/line.vue2.mjs +0 -2
  429. package/es/src/data-chart/src/components/line.vue2.mjs.map +0 -1
  430. package/es/src/data-chart/src/components/line.vue3.mjs +0 -2
  431. package/es/src/data-chart/src/components/line.vue3.mjs.map +0 -1
  432. package/es/src/data-chart/src/components/pie.vue.mjs +0 -2
  433. package/es/src/data-chart/src/components/pie.vue.mjs.map +0 -1
  434. package/es/src/data-chart/src/components/pie.vue2.mjs +0 -2
  435. package/es/src/data-chart/src/components/pie.vue2.mjs.map +0 -1
  436. package/es/src/data-chart/src/components/pie.vue3.mjs +0 -2
  437. package/es/src/data-chart/src/components/pie.vue3.mjs.map +0 -1
  438. package/es/src/data-chart/src/components/radar.vue.mjs +0 -2
  439. package/es/src/data-chart/src/components/radar.vue.mjs.map +0 -1
  440. package/es/src/data-chart/src/components/radar.vue2.mjs +0 -2
  441. package/es/src/data-chart/src/components/radar.vue2.mjs.map +0 -1
  442. package/es/src/data-chart/src/components/radar.vue3.mjs +0 -2
  443. package/es/src/data-chart/src/components/radar.vue3.mjs.map +0 -1
  444. package/es/src/data-chart/src/components/scatter-simple.vue.mjs +0 -2
  445. package/es/src/data-chart/src/components/scatter-simple.vue.mjs.map +0 -1
  446. package/es/src/data-chart/src/components/scatter-simple.vue2.mjs +0 -2
  447. package/es/src/data-chart/src/components/scatter-simple.vue2.mjs.map +0 -1
  448. package/es/src/data-chart/src/components/scatter-simple.vue3.mjs +0 -2
  449. package/es/src/data-chart/src/components/scatter-simple.vue3.mjs.map +0 -1
  450. package/es/src/data-chart/src/components/scatter.vue.mjs +0 -2
  451. package/es/src/data-chart/src/components/scatter.vue.mjs.map +0 -1
  452. package/es/src/data-chart/src/components/scatter.vue2.mjs +0 -2
  453. package/es/src/data-chart/src/components/scatter.vue2.mjs.map +0 -1
  454. package/es/src/data-chart/src/components/scatter.vue3.mjs +0 -2
  455. package/es/src/data-chart/src/components/scatter.vue3.mjs.map +0 -1
  456. package/es/src/data-chart/src/components/table.vue.mjs +0 -2
  457. package/es/src/data-chart/src/components/table.vue.mjs.map +0 -1
  458. package/es/src/data-chart/src/components/table.vue2.mjs +0 -2
  459. package/es/src/data-chart/src/components/table.vue2.mjs.map +0 -1
  460. package/es/src/data-chart/src/data-chart.vue.mjs +0 -2
  461. package/es/src/data-chart/src/data-chart.vue.mjs.map +0 -1
  462. package/es/src/data-chart/src/data-chart.vue2.mjs +0 -2
  463. package/es/src/data-chart/src/data-chart.vue2.mjs.map +0 -1
  464. package/es/src/data-chart/src/utils/config.mjs +0 -2
  465. package/es/src/data-chart/src/utils/config.mjs.map +0 -1
  466. package/es/src/data-chart/src/utils/injectionKeys.mjs +0 -2
  467. package/es/src/data-chart/src/utils/injectionKeys.mjs.map +0 -1
  468. package/es/src/data-chart/src/utils/mapData.mjs +0 -2
  469. package/es/src/data-chart/src/utils/mapData.mjs.map +0 -1
  470. package/es/src/data-chart/src/utils/safe-eval.mjs +0 -2
  471. package/es/src/data-chart/src/utils/safe-eval.mjs.map +0 -1
  472. package/es/src/data-chart/src/utils/types.mjs +0 -2
  473. package/es/src/data-chart/src/utils/types.mjs.map +0 -1
  474. package/es/src/data-chart/src/utils/useCharts.mjs +0 -2
  475. package/es/src/data-chart/src/utils/useCharts.mjs.map +0 -1
  476. package/es/src/file-upload/src/file-upload.vue.mjs +0 -2
  477. package/es/src/file-upload/src/file-upload.vue.mjs.map +0 -1
  478. package/es/src/file-upload/src/file-upload.vue2.mjs +0 -2
  479. package/es/src/file-upload/src/file-upload.vue2.mjs.map +0 -1
  480. package/es/src/fixed-action-bar/index.mjs +0 -2
  481. package/es/src/fixed-action-bar/index.mjs.map +0 -1
  482. package/es/src/fixed-action-bar/src/fixed-action-bar.vue.mjs +0 -2
  483. package/es/src/fixed-action-bar/src/fixed-action-bar.vue.mjs.map +0 -1
  484. package/es/src/fixed-action-bar/src/fixed-action-bar.vue2.mjs +0 -2
  485. package/es/src/fixed-action-bar/src/fixed-action-bar.vue2.mjs.map +0 -1
  486. package/es/src/image-upload/src/image-upload.vue.mjs +0 -2
  487. package/es/src/image-upload/src/image-upload.vue.mjs.map +0 -1
  488. package/es/src/image-upload/src/image-upload.vue2.mjs +0 -2
  489. package/es/src/image-upload/src/image-upload.vue2.mjs.map +0 -1
  490. package/es/src/photo-crop-tool/src/composables.mjs +0 -2
  491. package/es/src/photo-crop-tool/src/composables.mjs.map +0 -1
  492. package/es/src/photo-crop-tool/src/photo-crop-tool.vue.mjs +0 -2
  493. package/es/src/photo-crop-tool/src/photo-crop-tool.vue.mjs.map +0 -1
  494. package/es/src/photo-crop-tool/src/photo-crop-tool.vue2.mjs +0 -2
  495. package/es/src/photo-crop-tool/src/photo-crop-tool.vue2.mjs.map +0 -1
  496. package/es/src/subject-action/index.mjs +0 -2
  497. package/es/src/subject-action/index.mjs.map +0 -1
  498. package/es/src/subject-action/src/subject-action.vue.mjs +0 -2
  499. package/es/src/subject-action/src/subject-action.vue.mjs.map +0 -1
  500. package/es/src/subject-action/src/subject-action.vue2.mjs +0 -2
  501. package/es/src/subject-action/src/subject-action.vue2.mjs.map +0 -1
  502. package/es/src/subject-layout/index.mjs +0 -2
  503. package/es/src/subject-layout/index.mjs.map +0 -1
  504. package/es/src/subject-layout/src/subject-layout.vue.mjs +0 -2
  505. package/es/src/subject-layout/src/subject-layout.vue.mjs.map +0 -1
  506. package/es/src/subject-layout/src/subject-layout.vue2.mjs +0 -2
  507. package/es/src/subject-layout/src/subject-layout.vue2.mjs.map +0 -1
  508. package/es/src/subject-list/index.mjs +0 -2
  509. package/es/src/subject-list/index.mjs.map +0 -1
  510. package/es/src/subject-list/src/components/SubjectPageEnd.vue.mjs +0 -2
  511. package/es/src/subject-list/src/components/SubjectPageEnd.vue.mjs.map +0 -1
  512. package/es/src/subject-list/src/components/SubjectPageEnd.vue2.mjs +0 -2
  513. package/es/src/subject-list/src/components/SubjectPageEnd.vue2.mjs.map +0 -1
  514. package/es/src/subject-list/src/components/SubjectRichText.vue.mjs +0 -2
  515. package/es/src/subject-list/src/components/SubjectRichText.vue.mjs.map +0 -1
  516. package/es/src/subject-list/src/components/SubjectRichText.vue2.mjs +0 -2
  517. package/es/src/subject-list/src/components/SubjectRichText.vue2.mjs.map +0 -1
  518. package/es/src/subject-list/src/components/subject-blank-fill.vue.mjs +0 -2
  519. package/es/src/subject-list/src/components/subject-blank-fill.vue.mjs.map +0 -1
  520. package/es/src/subject-list/src/components/subject-blank-fill.vue2.mjs +0 -2
  521. package/es/src/subject-list/src/components/subject-blank-fill.vue2.mjs.map +0 -1
  522. package/es/src/subject-list/src/components/subject-scale.vue.mjs +0 -2
  523. package/es/src/subject-list/src/components/subject-scale.vue.mjs.map +0 -1
  524. package/es/src/subject-list/src/components/subject-scale.vue2.mjs +0 -2
  525. package/es/src/subject-list/src/components/subject-scale.vue2.mjs.map +0 -1
  526. package/es/src/subject-list/src/components/subject-single.vue.mjs +0 -2
  527. package/es/src/subject-list/src/components/subject-single.vue.mjs.map +0 -1
  528. package/es/src/subject-list/src/components/subject-single.vue2.mjs +0 -2
  529. package/es/src/subject-list/src/components/subject-single.vue2.mjs.map +0 -1
  530. package/es/src/subject-list/src/components/subject-text-fill.vue.mjs +0 -2
  531. package/es/src/subject-list/src/components/subject-text-fill.vue.mjs.map +0 -1
  532. package/es/src/subject-list/src/components/subject-text-fill.vue2.mjs +0 -2
  533. package/es/src/subject-list/src/components/subject-text-fill.vue2.mjs.map +0 -1
  534. package/es/src/subject-list/src/subject-list.vue.mjs +0 -2
  535. package/es/src/subject-list/src/subject-list.vue.mjs.map +0 -1
  536. package/es/src/subject-list/src/subject-list.vue2.mjs +0 -2
  537. package/es/src/subject-list/src/subject-list.vue2.mjs.map +0 -1
  538. package/es/src/subject-type/index.mjs +0 -2
  539. package/es/src/subject-type/index.mjs.map +0 -1
  540. package/es/src/subject-type/src/subject-type.vue.mjs +0 -2
  541. package/es/src/subject-type/src/subject-type.vue.mjs.map +0 -1
  542. package/es/src/subject-type/src/subject-type.vue2.mjs +0 -2
  543. package/es/src/subject-type/src/subject-type.vue2.mjs.map +0 -1
  544. package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -2
  545. package/lib/_virtual/_plugin-vue_export-helper.cjs.map +0 -1
  546. package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.cjs +0 -2
  547. package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.cjs.map +0 -1
  548. package/lib/src/data-chart/src/analyze.cjs +0 -2
  549. package/lib/src/data-chart/src/analyze.cjs.map +0 -1
  550. package/lib/src/data-chart/src/components/area.vue.cjs +0 -2
  551. package/lib/src/data-chart/src/components/area.vue.cjs.map +0 -1
  552. package/lib/src/data-chart/src/components/area.vue2.cjs +0 -2
  553. package/lib/src/data-chart/src/components/area.vue2.cjs.map +0 -1
  554. package/lib/src/data-chart/src/components/area.vue3.cjs +0 -2
  555. package/lib/src/data-chart/src/components/area.vue3.cjs.map +0 -1
  556. package/lib/src/data-chart/src/components/bar.vue.cjs +0 -2
  557. package/lib/src/data-chart/src/components/bar.vue.cjs.map +0 -1
  558. package/lib/src/data-chart/src/components/bar.vue2.cjs +0 -2
  559. package/lib/src/data-chart/src/components/bar.vue2.cjs.map +0 -1
  560. package/lib/src/data-chart/src/components/bar.vue3.cjs +0 -2
  561. package/lib/src/data-chart/src/components/bar.vue3.cjs.map +0 -1
  562. package/lib/src/data-chart/src/components/card.vue.cjs +0 -2
  563. package/lib/src/data-chart/src/components/card.vue.cjs.map +0 -1
  564. package/lib/src/data-chart/src/components/card.vue2.cjs +0 -2
  565. package/lib/src/data-chart/src/components/card.vue2.cjs.map +0 -1
  566. package/lib/src/data-chart/src/components/card.vue3.cjs +0 -2
  567. package/lib/src/data-chart/src/components/card.vue3.cjs.map +0 -1
  568. package/lib/src/data-chart/src/components/data-chart-card-bg-left.svg.cjs +0 -2
  569. package/lib/src/data-chart/src/components/data-chart-card-bg-left.svg.cjs.map +0 -1
  570. package/lib/src/data-chart/src/components/data-chart-card-bg-right.svg.cjs +0 -2
  571. package/lib/src/data-chart/src/components/data-chart-card-bg-right.svg.cjs.map +0 -1
  572. package/lib/src/data-chart/src/components/empty.svg.cjs +0 -2
  573. package/lib/src/data-chart/src/components/empty.svg.cjs.map +0 -1
  574. package/lib/src/data-chart/src/components/empty.vue.cjs +0 -2
  575. package/lib/src/data-chart/src/components/empty.vue.cjs.map +0 -1
  576. package/lib/src/data-chart/src/components/empty.vue2.cjs +0 -2
  577. package/lib/src/data-chart/src/components/empty.vue2.cjs.map +0 -1
  578. package/lib/src/data-chart/src/components/funnel.vue.cjs +0 -2
  579. package/lib/src/data-chart/src/components/funnel.vue.cjs.map +0 -1
  580. package/lib/src/data-chart/src/components/funnel.vue2.cjs +0 -2
  581. package/lib/src/data-chart/src/components/funnel.vue2.cjs.map +0 -1
  582. package/lib/src/data-chart/src/components/funnel.vue3.cjs +0 -2
  583. package/lib/src/data-chart/src/components/funnel.vue3.cjs.map +0 -1
  584. package/lib/src/data-chart/src/components/line.vue.cjs +0 -2
  585. package/lib/src/data-chart/src/components/line.vue.cjs.map +0 -1
  586. package/lib/src/data-chart/src/components/line.vue2.cjs +0 -2
  587. package/lib/src/data-chart/src/components/line.vue2.cjs.map +0 -1
  588. package/lib/src/data-chart/src/components/line.vue3.cjs +0 -2
  589. package/lib/src/data-chart/src/components/line.vue3.cjs.map +0 -1
  590. package/lib/src/data-chart/src/components/pie.vue.cjs +0 -2
  591. package/lib/src/data-chart/src/components/pie.vue.cjs.map +0 -1
  592. package/lib/src/data-chart/src/components/pie.vue2.cjs +0 -2
  593. package/lib/src/data-chart/src/components/pie.vue2.cjs.map +0 -1
  594. package/lib/src/data-chart/src/components/pie.vue3.cjs +0 -2
  595. package/lib/src/data-chart/src/components/pie.vue3.cjs.map +0 -1
  596. package/lib/src/data-chart/src/components/radar.vue.cjs +0 -2
  597. package/lib/src/data-chart/src/components/radar.vue.cjs.map +0 -1
  598. package/lib/src/data-chart/src/components/radar.vue2.cjs +0 -2
  599. package/lib/src/data-chart/src/components/radar.vue2.cjs.map +0 -1
  600. package/lib/src/data-chart/src/components/radar.vue3.cjs +0 -2
  601. package/lib/src/data-chart/src/components/radar.vue3.cjs.map +0 -1
  602. package/lib/src/data-chart/src/components/scatter-simple.vue.cjs +0 -2
  603. package/lib/src/data-chart/src/components/scatter-simple.vue.cjs.map +0 -1
  604. package/lib/src/data-chart/src/components/scatter-simple.vue2.cjs +0 -2
  605. package/lib/src/data-chart/src/components/scatter-simple.vue2.cjs.map +0 -1
  606. package/lib/src/data-chart/src/components/scatter-simple.vue3.cjs +0 -2
  607. package/lib/src/data-chart/src/components/scatter-simple.vue3.cjs.map +0 -1
  608. package/lib/src/data-chart/src/components/scatter.vue.cjs +0 -2
  609. package/lib/src/data-chart/src/components/scatter.vue.cjs.map +0 -1
  610. package/lib/src/data-chart/src/components/scatter.vue2.cjs +0 -2
  611. package/lib/src/data-chart/src/components/scatter.vue2.cjs.map +0 -1
  612. package/lib/src/data-chart/src/components/scatter.vue3.cjs +0 -2
  613. package/lib/src/data-chart/src/components/scatter.vue3.cjs.map +0 -1
  614. package/lib/src/data-chart/src/components/table.vue.cjs +0 -2
  615. package/lib/src/data-chart/src/components/table.vue.cjs.map +0 -1
  616. package/lib/src/data-chart/src/components/table.vue2.cjs +0 -2
  617. package/lib/src/data-chart/src/components/table.vue2.cjs.map +0 -1
  618. package/lib/src/data-chart/src/data-chart.vue.cjs +0 -2
  619. package/lib/src/data-chart/src/data-chart.vue.cjs.map +0 -1
  620. package/lib/src/data-chart/src/data-chart.vue2.cjs +0 -2
  621. package/lib/src/data-chart/src/data-chart.vue2.cjs.map +0 -1
  622. package/lib/src/data-chart/src/utils/config.cjs +0 -2
  623. package/lib/src/data-chart/src/utils/config.cjs.map +0 -1
  624. package/lib/src/data-chart/src/utils/injectionKeys.cjs +0 -2
  625. package/lib/src/data-chart/src/utils/injectionKeys.cjs.map +0 -1
  626. package/lib/src/data-chart/src/utils/mapData.cjs +0 -2
  627. package/lib/src/data-chart/src/utils/mapData.cjs.map +0 -1
  628. package/lib/src/data-chart/src/utils/safe-eval.cjs +0 -2
  629. package/lib/src/data-chart/src/utils/safe-eval.cjs.map +0 -1
  630. package/lib/src/data-chart/src/utils/types.cjs +0 -2
  631. package/lib/src/data-chart/src/utils/types.cjs.map +0 -1
  632. package/lib/src/data-chart/src/utils/useCharts.cjs +0 -2
  633. package/lib/src/data-chart/src/utils/useCharts.cjs.map +0 -1
  634. package/lib/src/file-upload/src/file-upload.vue.cjs +0 -2
  635. package/lib/src/file-upload/src/file-upload.vue.cjs.map +0 -1
  636. package/lib/src/file-upload/src/file-upload.vue2.cjs +0 -2
  637. package/lib/src/file-upload/src/file-upload.vue2.cjs.map +0 -1
  638. package/lib/src/fixed-action-bar/index.cjs +0 -2
  639. package/lib/src/fixed-action-bar/index.cjs.map +0 -1
  640. package/lib/src/fixed-action-bar/src/fixed-action-bar.vue.cjs +0 -2
  641. package/lib/src/fixed-action-bar/src/fixed-action-bar.vue.cjs.map +0 -1
  642. package/lib/src/fixed-action-bar/src/fixed-action-bar.vue2.cjs +0 -2
  643. package/lib/src/fixed-action-bar/src/fixed-action-bar.vue2.cjs.map +0 -1
  644. package/lib/src/image-upload/src/image-upload.vue.cjs +0 -2
  645. package/lib/src/image-upload/src/image-upload.vue.cjs.map +0 -1
  646. package/lib/src/image-upload/src/image-upload.vue2.cjs +0 -2
  647. package/lib/src/image-upload/src/image-upload.vue2.cjs.map +0 -1
  648. package/lib/src/photo-crop-tool/src/composables.cjs +0 -2
  649. package/lib/src/photo-crop-tool/src/composables.cjs.map +0 -1
  650. package/lib/src/photo-crop-tool/src/photo-crop-tool.vue.cjs +0 -2
  651. package/lib/src/photo-crop-tool/src/photo-crop-tool.vue.cjs.map +0 -1
  652. package/lib/src/photo-crop-tool/src/photo-crop-tool.vue2.cjs +0 -2
  653. package/lib/src/photo-crop-tool/src/photo-crop-tool.vue2.cjs.map +0 -1
  654. package/lib/src/subject-action/index.cjs +0 -2
  655. package/lib/src/subject-action/index.cjs.map +0 -1
  656. package/lib/src/subject-action/src/subject-action.vue.cjs +0 -2
  657. package/lib/src/subject-action/src/subject-action.vue.cjs.map +0 -1
  658. package/lib/src/subject-action/src/subject-action.vue2.cjs +0 -2
  659. package/lib/src/subject-action/src/subject-action.vue2.cjs.map +0 -1
  660. package/lib/src/subject-layout/index.cjs +0 -2
  661. package/lib/src/subject-layout/index.cjs.map +0 -1
  662. package/lib/src/subject-layout/src/subject-layout.vue.cjs +0 -2
  663. package/lib/src/subject-layout/src/subject-layout.vue.cjs.map +0 -1
  664. package/lib/src/subject-layout/src/subject-layout.vue2.cjs +0 -2
  665. package/lib/src/subject-layout/src/subject-layout.vue2.cjs.map +0 -1
  666. package/lib/src/subject-list/index.cjs +0 -2
  667. package/lib/src/subject-list/index.cjs.map +0 -1
  668. package/lib/src/subject-list/src/components/SubjectPageEnd.vue.cjs +0 -2
  669. package/lib/src/subject-list/src/components/SubjectPageEnd.vue.cjs.map +0 -1
  670. package/lib/src/subject-list/src/components/SubjectPageEnd.vue2.cjs +0 -2
  671. package/lib/src/subject-list/src/components/SubjectPageEnd.vue2.cjs.map +0 -1
  672. package/lib/src/subject-list/src/components/SubjectRichText.vue.cjs +0 -2
  673. package/lib/src/subject-list/src/components/SubjectRichText.vue.cjs.map +0 -1
  674. package/lib/src/subject-list/src/components/SubjectRichText.vue2.cjs +0 -2
  675. package/lib/src/subject-list/src/components/SubjectRichText.vue2.cjs.map +0 -1
  676. package/lib/src/subject-list/src/components/subject-blank-fill.vue.cjs +0 -2
  677. package/lib/src/subject-list/src/components/subject-blank-fill.vue.cjs.map +0 -1
  678. package/lib/src/subject-list/src/components/subject-blank-fill.vue2.cjs +0 -2
  679. package/lib/src/subject-list/src/components/subject-blank-fill.vue2.cjs.map +0 -1
  680. package/lib/src/subject-list/src/components/subject-scale.vue.cjs +0 -2
  681. package/lib/src/subject-list/src/components/subject-scale.vue.cjs.map +0 -1
  682. package/lib/src/subject-list/src/components/subject-scale.vue2.cjs +0 -2
  683. package/lib/src/subject-list/src/components/subject-scale.vue2.cjs.map +0 -1
  684. package/lib/src/subject-list/src/components/subject-single.vue.cjs +0 -2
  685. package/lib/src/subject-list/src/components/subject-single.vue.cjs.map +0 -1
  686. package/lib/src/subject-list/src/components/subject-single.vue2.cjs +0 -2
  687. package/lib/src/subject-list/src/components/subject-single.vue2.cjs.map +0 -1
  688. package/lib/src/subject-list/src/components/subject-text-fill.vue.cjs +0 -2
  689. package/lib/src/subject-list/src/components/subject-text-fill.vue.cjs.map +0 -1
  690. package/lib/src/subject-list/src/components/subject-text-fill.vue2.cjs +0 -2
  691. package/lib/src/subject-list/src/components/subject-text-fill.vue2.cjs.map +0 -1
  692. package/lib/src/subject-list/src/subject-list.vue.cjs +0 -2
  693. package/lib/src/subject-list/src/subject-list.vue.cjs.map +0 -1
  694. package/lib/src/subject-list/src/subject-list.vue2.cjs +0 -2
  695. package/lib/src/subject-list/src/subject-list.vue2.cjs.map +0 -1
  696. package/lib/src/subject-type/index.cjs +0 -2
  697. package/lib/src/subject-type/index.cjs.map +0 -1
  698. package/lib/src/subject-type/src/subject-type.vue.cjs +0 -2
  699. package/lib/src/subject-type/src/subject-type.vue.cjs.map +0 -1
  700. package/lib/src/subject-type/src/subject-type.vue2.cjs +0 -2
  701. package/lib/src/subject-type/src/subject-type.vue2.cjs.map +0 -1
  702. package/theme-chalk/index.css +0 -1
  703. package/theme-chalk/index.scss +0 -17
  704. package/theme-chalk/src/base.css +0 -1
  705. package/theme-chalk/src/base.scss +0 -16
  706. package/theme-chalk/src/common/element-plus-deps.css +0 -1
  707. package/theme-chalk/src/common/element-plus-deps.scss +0 -40
  708. package/theme-chalk/src/common/element-plus.css +0 -1
  709. package/theme-chalk/src/common/element-plus.scss +0 -606
  710. package/theme-chalk/src/data-chart/empty.css +0 -1
  711. package/theme-chalk/src/data-chart/empty.scss +0 -24
  712. package/theme-chalk/src/data-chart/index.css +0 -1
  713. package/theme-chalk/src/data-chart/index.scss +0 -11
  714. package/theme-chalk/src/data-chart/table.css +0 -1
  715. package/theme-chalk/src/data-chart/table.scss +0 -43
  716. package/theme-chalk/src/file-upload.css +0 -1
  717. package/theme-chalk/src/file-upload.scss +0 -34
  718. package/theme-chalk/src/fixed-action-bar.css +0 -1
  719. package/theme-chalk/src/fixed-action-bar.scss +0 -18
  720. package/theme-chalk/src/icon.css +0 -1
  721. package/theme-chalk/src/icon.scss +0 -35
  722. package/theme-chalk/src/image-upload.css +0 -1
  723. package/theme-chalk/src/image-upload.scss +0 -157
  724. package/theme-chalk/src/mixins/_var.css +0 -0
  725. package/theme-chalk/src/mixins/_var.scss +0 -24
  726. package/theme-chalk/src/mixins/config.css +0 -0
  727. package/theme-chalk/src/mixins/config.scss +0 -12
  728. package/theme-chalk/src/mixins/function.css +0 -0
  729. package/theme-chalk/src/mixins/function.scss +0 -95
  730. package/theme-chalk/src/mixins/mixins.css +0 -0
  731. package/theme-chalk/src/mixins/mixins.scss +0 -102
  732. package/theme-chalk/src/normalize.css +0 -1
  733. package/theme-chalk/src/normalize.scss +0 -11
  734. package/theme-chalk/src/photo-crop-tool.css +0 -1
  735. package/theme-chalk/src/photo-crop-tool.scss +0 -98
  736. package/theme-chalk/src/subject-action.css +0 -1
  737. package/theme-chalk/src/subject-action.scss +0 -37
  738. package/theme-chalk/src/subject-layout.css +0 -1
  739. package/theme-chalk/src/subject-layout.scss +0 -28
  740. package/theme-chalk/src/subject-list.css +0 -1
  741. package/theme-chalk/src/subject-list.scss +0 -290
  742. package/theme-chalk/src/subject-template.css +0 -1
  743. package/theme-chalk/src/subject-template.scss +0 -5
  744. package/theme-chalk/src/subject-type.css +0 -1
  745. package/theme-chalk/src/subject-type.scss +0 -32
  746. package/theme-chalk/src/tiny-mce-editor.css +0 -1
  747. package/theme-chalk/src/tiny-mce-editor.scss +0 -29
  748. package/types/src/data-chart/src/analyze.d.ts +0 -23
  749. package/types/src/data-chart/src/analyze.d.ts.map +0 -1
  750. package/types/src/data-chart/src/components/area.vue.d.ts +0 -12
  751. package/types/src/data-chart/src/components/area.vue.d.ts.map +0 -1
  752. package/types/src/data-chart/src/components/bar.vue.d.ts +0 -12
  753. package/types/src/data-chart/src/components/bar.vue.d.ts.map +0 -1
  754. package/types/src/data-chart/src/components/card.vue.d.ts +0 -27
  755. package/types/src/data-chart/src/components/card.vue.d.ts.map +0 -1
  756. package/types/src/data-chart/src/components/empty.vue.d.ts +0 -11
  757. package/types/src/data-chart/src/components/empty.vue.d.ts.map +0 -1
  758. package/types/src/data-chart/src/components/funnel.vue.d.ts +0 -11
  759. package/types/src/data-chart/src/components/funnel.vue.d.ts.map +0 -1
  760. package/types/src/data-chart/src/components/line.vue.d.ts +0 -12
  761. package/types/src/data-chart/src/components/line.vue.d.ts.map +0 -1
  762. package/types/src/data-chart/src/components/pie.vue.d.ts +0 -12
  763. package/types/src/data-chart/src/components/pie.vue.d.ts.map +0 -1
  764. package/types/src/data-chart/src/components/radar.vue.d.ts +0 -11
  765. package/types/src/data-chart/src/components/radar.vue.d.ts.map +0 -1
  766. package/types/src/data-chart/src/components/scatter-simple.vue.d.ts +0 -11
  767. package/types/src/data-chart/src/components/scatter-simple.vue.d.ts.map +0 -1
  768. package/types/src/data-chart/src/components/scatter.vue.d.ts +0 -11
  769. package/types/src/data-chart/src/components/scatter.vue.d.ts.map +0 -1
  770. package/types/src/data-chart/src/components/table.vue.d.ts +0 -27
  771. package/types/src/data-chart/src/components/table.vue.d.ts.map +0 -1
  772. package/types/src/data-chart/src/data-chart.vue.d.ts +0 -28
  773. package/types/src/data-chart/src/data-chart.vue.d.ts.map +0 -1
  774. package/types/src/data-chart/src/utils/config.d.ts +0 -41
  775. package/types/src/data-chart/src/utils/config.d.ts.map +0 -1
  776. package/types/src/data-chart/src/utils/injectionKeys.d.ts +0 -3
  777. package/types/src/data-chart/src/utils/injectionKeys.d.ts.map +0 -1
  778. package/types/src/data-chart/src/utils/mapData.d.ts +0 -64
  779. package/types/src/data-chart/src/utils/mapData.d.ts.map +0 -1
  780. package/types/src/data-chart/src/utils/safe-eval.d.ts +0 -9
  781. package/types/src/data-chart/src/utils/safe-eval.d.ts.map +0 -1
  782. package/types/src/data-chart/src/utils/types.d.ts +0 -72
  783. package/types/src/data-chart/src/utils/types.d.ts.map +0 -1
  784. package/types/src/data-chart/src/utils/useCharts.d.ts +0 -16
  785. package/types/src/data-chart/src/utils/useCharts.d.ts.map +0 -1
  786. package/types/src/file-upload/src/file-upload.vue.d.ts +0 -20
  787. package/types/src/file-upload/src/file-upload.vue.d.ts.map +0 -1
  788. package/types/src/fixed-action-bar/index.d.ts +0 -56
  789. package/types/src/fixed-action-bar/index.d.ts.map +0 -1
  790. package/types/src/fixed-action-bar/src/fixed-action-bar.vue.d.ts +0 -31
  791. package/types/src/fixed-action-bar/src/fixed-action-bar.vue.d.ts.map +0 -1
  792. package/types/src/image-upload/src/image-upload.vue.d.ts +0 -59
  793. package/types/src/image-upload/src/image-upload.vue.d.ts.map +0 -1
  794. package/types/src/photo-crop-tool/src/composables.d.ts +0 -7
  795. package/types/src/photo-crop-tool/src/composables.d.ts.map +0 -1
  796. package/types/src/photo-crop-tool/src/photo-crop-tool.vue.d.ts +0 -65
  797. package/types/src/photo-crop-tool/src/photo-crop-tool.vue.d.ts.map +0 -1
  798. package/types/src/subject-list/src/components/SubjectRichText.vue.d.ts +0 -25
  799. package/types/src/subject-list/src/components/SubjectRichText.vue.d.ts.map +0 -1
@@ -0,0 +1,1115 @@
1
+ "use strict";var e=require("@tiptap/core"),t=require("@tiptap/extension-blockquote"),i=require("@tiptap/extension-bold"),o=require("@tiptap/extension-bullet-list"),r=require("@tiptap/extension-code"),s=require("@tiptap/extension-document"),n=require("@tiptap/extension-heading"),l=require("@tiptap/extension-history"),a=require("@tiptap/extension-horizontal-rule"),d=require("@tiptap/extension-image"),h=require("@tiptap/extension-italic"),c=require("@tiptap/extension-link"),p=require("@tiptap/extension-list-item"),u=require("@tiptap/extension-ordered-list"),b=require("@tiptap/extension-paragraph"),g=require("@tiptap/extension-placeholder"),m=require("@tiptap/extension-strike"),_=require("@tiptap/extension-table"),x=require("@tiptap/extension-table-cell"),f=require("@tiptap/extension-table-header"),y=require("@tiptap/extension-table-row"),v=require("@tiptap/extension-text"),k=require("@tiptap/extension-text-align"),w=require("@tiptap/extension-underline"),T=require("lit"),C=require("lit/decorators.js"),M=require("./content-format.cjs"),I=require("./toolbar.cjs"),S=require("../base/define.cjs"),B=Object.defineProperty,E=Object.getOwnPropertyDescriptor,L=(e,t,i,o)=>{for(var r,s=o>1?void 0:o?E(t,i):t,n=e.length-1;n>=0;n--)(r=e[n])&&(s=(o?r(t,i,s):r(s))||s);return o&&s&&B(t,i,s),s};const $="输入内容",A="输入 / 唤出快捷命令",q="80px",R=new Set(["bold","italic","underline","strike","code","link","image","bulletList","orderedList","taskList","blockquote","table"]),P=e.Node.create({name:"taskList",group:"block list",content:"taskItem+",defining:!0,parseHTML:()=>[{tag:'ul[data-type="taskList"]'}],renderHTML(t){let{HTMLAttributes:i}=t;return["ul",e.mergeAttributes(i,{"data-type":"taskList"}),0]},addCommands(){return{toggleTaskList:()=>e=>{let{commands:t}=e;return t.toggleList(this.name,"taskItem")}}}}),V=e.Node.create({name:"taskItem",defining:!0,content:"paragraph block*",addAttributes:()=>({checked:{default:!1,parseHTML:e=>"true"===e.getAttribute("data-checked"),renderHTML:e=>({"data-checked":String(Boolean(e.checked))})}}),parseHTML:()=>[{tag:'li[data-type="taskItem"]'}],renderHTML(t){let{HTMLAttributes:i}=t;const o=Boolean(i.checked);return["li",e.mergeAttributes(i,{"data-type":"taskItem"}),["label",{contenteditable:"false"},["input",{type:"checkbox",checked:o?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),F=d.extend({addAttributes(){return{...this.parent?.(),width:{default:null,parseHTML:e=>{const t=e.getAttribute("width"),i=Number(t);return Number.isFinite(i)&&i>0?i:null},renderHTML:e=>e.width?{width:String(e.width)}:{}},align:{default:"left",parseHTML:e=>e.getAttribute("data-align")||"left",renderHTML:e=>e.align?{"data-align":String(e.align)}:{}}}},renderHTML(t){let{HTMLAttributes:i}=t;const o=Number(i.width),r=["max-width:100%","height:auto",Number.isFinite(o)&&o>0?`width:${o}px`:"",i.style||""].filter(Boolean).join(";");return["img",e.mergeAttributes(this.options.HTMLAttributes,i,{style:r})]}});exports.QxsBlocksuiteEditor=class extends T.LitElement{constructor(){super(...arguments),this.content="",this["model-value"]="",this.placeholder=$,this["toolbar-mode"]="header",this.toolbar="",this["toolbar-preset"]="full",this["header-toolbar-labels"]="",this["header-always-visible"]="false",this["use-model"]="false",this.readonly="false",this.preview="false",this.editable=null,this["min-height"]=q,this["max-height"]="",this["show-character-count"]="false",this["toolbar-position"]="top",this["custom-styles"]="",this["content-format"]="html",this["deserialize-content"]=null,this["serialize-content"]=null,this._injectedStyleEl=null,this["upload-image"]=async e=>new Promise((t,i)=>{const o=new FileReader;o.onload=e=>t(e.target?.result),o.onerror=i,o.readAsDataURL(e)}),this._editor=null,this._pendingContent=null,this._tableRows=3,this._tableCols=3,this._hoverRow=0,this._hoverCol=0,this._tableDropdownOpen=!1,this._tableCellToolbar={x:0,y:0,visible:!1,cellRow:0,cellCol:0},this._imageToolbar={x:0,y:0,visible:!1},this._linkEditor={x:0,y:0,visible:!1,url:"",label:""},this._isEditorFocused=!1,this._selectedImage=null,this._hasSlashCommand=!1,this._slashCommandRange=null,this._slashInlineMarkState=null,this._isComposingText=!1,this._isUpdating=!1,this._pendingImageInsertPos=null,this._linkSelection=null,this._preserveFocusOnInternalClick=!1,this._tableEdgeDetectionSetup=!1,this._handleCompositionStart=()=>{this._isComposingText=!0},this._handleCompositionEnd=()=>{this._isComposingText=!1,requestAnimationFrame(()=>{this._syncSlashInlineMarkState(),this._restoreSlashInlineMarkIfNeeded()})}}_injectCustomStyles(){const e=this.shadowRoot;if(!e)return;if(this._injectedStyleEl&&(this._injectedStyleEl.remove(),this._injectedStyleEl=null),!this["custom-styles"])return;const t=document.createElement("style");t.textContent=this["custom-styles"],e.appendChild(t),this._injectedStyleEl=t}get _useModelValue(){return!0===this["use-model"]||"true"===this["use-model"]||""===this["use-model"]||this.hasAttribute("use-model")}get _readonlyValue(){return!1!==this.readonly&&"false"!==this.readonly}get _previewValue(){return!1!==this.preview&&"false"!==this.preview}get _editableValue(){return null===this.editable||void 0===this.editable?null:!1!==this.editable&&"false"!==this.editable}get _isEditable(){return!this._previewValue&&(null!==this._editableValue?this._editableValue:!this._readonlyValue)}get _toolbarModeValue(){return"header"===this["toolbar-mode"]?"header":"slash"}get _headerAlwaysVisibleValue(){return!0===this["header-always-visible"]||"true"===this["header-always-visible"]||""===this["header-always-visible"]||this.hasAttribute("header-always-visible")}get _toolbarPositionValue(){return"bottom"===this["toolbar-position"]?"bottom":"top"}get _toolbarPresetValue(){return"simple"===this["toolbar-preset"]?"simple":"none"===this["toolbar-preset"]?"none":"full"}get _contentFormatValue(){return"markdown"===this["content-format"]?"markdown":"custom"===this["content-format"]?"custom":"html"}get _showCharacterCountValue(){return!0===this["show-character-count"]||"true"===this["show-character-count"]||""===this["show-character-count"]||this.hasAttribute("show-character-count")}get _resolvedMinHeight(){return this["min-height"]?.trim()||q}get _resolvedMaxHeight(){return this["max-height"]?.trim()||"none"}get _wrapperStyleValue(){const e=this["max-height"]?.trim()?"auto":"visible";return[`--qxs-editor-min-height: ${this._resolvedMinHeight}`,`--qxs-editor-max-height: ${this._resolvedMaxHeight}`,`--qxs-editor-overflow-y: ${e}`].join("; ")}get _resolvedPlaceholder(){return this.placeholder&&this.placeholder!==$&&this.placeholder!==A?this.placeholder:"header"===this._toolbarModeValue?$:A}get _toolbarItemsValue(){return Array.isArray(this.toolbar)||"string"==typeof this.toolbar&&this.toolbar.trim()?I.parseEditorToolbarItems(this.toolbar):"simple"===this._toolbarPresetValue?[...I.SIMPLE_EDITOR_TOOLBAR]:"none"===this._toolbarPresetValue?[]:[...I.DEFAULT_EDITOR_TOOLBAR]}_hasToolbarItem(e){return this._toolbarItemsValue.includes(e)}get _headerToolbarLabelsValue(){const e=this["header-toolbar-labels"];if(!e)return{};let t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){return{}}if(!t||"object"!=typeof t||Array.isArray(t))return{};const i={};for(const[e,o]of Object.entries(t))R.has(e)&&"string"==typeof o&&o.trim()&&(i[e]=o.trim());return i}_getHeaderToolbarLabel(e){return"header"!==this._toolbarModeValue?"":this._headerToolbarLabelsValue[e]||""}_renderToolbarButton(e,t){const i=this._getHeaderToolbarLabel(e),o=["bubble-btn",t.active?"is-active":"",t.danger?"danger":"",i?"has-label":""].filter(Boolean).join(" ");return T.html`
2
+ <button class=${o} @click=${t.onClick} title=${t.title}>
3
+ ${t.icon}
4
+ ${i?T.html`<span class="bubble-btn__label">${i}</span>`:null}
5
+ </button>
6
+ `}_transformIncomingContent(e){const t=e||"",i=this["deserialize-content"];if(!i)return M.transformIncomingContentByFormat(t,this._contentFormatValue);try{return i(t)||M.EMPTY_EDITOR_HTML}catch(e){return M.transformIncomingContentByFormat(t,this._contentFormatValue)}}_transformOutgoingContent(e){const t=this["serialize-content"];if(!t)return M.transformOutgoingContentByFormat(e,this._contentFormatValue);try{return t(e)}catch(t){return M.transformOutgoingContentByFormat(e,this._contentFormatValue)}}_getEditorCharacterCount(){return this._editor?.getText().length??0}_initEditor(){if(this._editor)return;const d=this.shadowRoot?.querySelector(".editor-content");if(!d)return void requestAnimationFrame(()=>this._initEditor());for(;d.firstChild;)d.removeChild(d.firstChild);const T=this._useModelValue,C=this.getAttribute("model-value")??this["model-value"],M=this.content,I=T?this._transformIncomingContent(this._pendingContent??C):this._transformIncomingContent(this._pendingContent??M),S=[s,b,v,i,h,w,m,r,n.configure({levels:[1,2,3]}),o,u,P,V,p,t,a,l,F.configure({inline:!1,allowBase64:!0}),c.extend({inclusive:!1}).configure({openOnClick:!1,HTMLAttributes:{rel:"noopener noreferrer"}}),k.configure({types:["heading","paragraph"]}),_.Table.configure({resizable:!0}),y.TableRow,x.TableCell,f.TableHeader,g.configure({placeholder:this._resolvedPlaceholder})];this._editor=new e.Editor({element:d,extensions:S,editable:this._isEditable,content:I}),this._editor.view.dom.addEventListener("compositionstart",this._handleCompositionStart),this._editor.view.dom.addEventListener("compositionend",this._handleCompositionEnd),this._pendingContent=null,this._editor.on("selectionUpdate",()=>{this._syncSlashInlineMarkState(),this._restoreSlashInlineMarkIfNeeded(),"slash"===this._toolbarModeValue&&this._updateBubbleMenuPosition(),this._editor?.isActive("table")?this._showTableCellToolbar():this._hideTableCellToolbar(),this._syncImageSelectionState()}),this._editor.on("transaction",()=>{this._editor?.isActive("table")?this._showTableCellToolbar():this._hideTableCellToolbar(),this._checkSlashCommand(),this._syncSlashInlineMarkState(),this._restoreSlashInlineMarkIfNeeded(),this._setupTableEdgeDetection(),this._syncImageSelectionState()}),this._editor.on("update",()=>{this._emitContentChange()})}_toggleTaskItemChecked(e){const t=e.target,i=this._editor;if(!(t instanceof HTMLInputElement&&"checkbox"===t.type&&i))return;const o=t.closest('li[data-type="taskItem"]');if(!o)return;e.preventDefault(),e.stopPropagation();const r=i.view.posAtDOM(o,0),s=Math.max(0,r-2),n=Math.min(i.state.doc.content.size,r+2);let l=null;if(i.state.doc.nodesBetween(s,n,(e,t)=>{if("taskItem"===e.type.name)return l=t,!1}),null===l)return;const a=i.state.doc.nodeAt(l);a&&"taskItem"===a.type.name&&i.view.dispatch(i.state.tr.setNodeMarkup(l,void 0,{...a.attrs,checked:!a.attrs.checked}))}_emitContentChange(){if(!this._editor)return;const e=this.getContentSnapshot();this._showCharacterCountValue&&this.requestUpdate(),this.dispatchEvent(new CustomEvent("content-update",{detail:e,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("content-change",{detail:e.value,bubbles:!0,composed:!0}))}_setupTableEdgeDetection(){const e=this.shadowRoot?.querySelector(".editor-content"),t=this.shadowRoot?.querySelector(".editor-wrapper");if(!e||this._tableEdgeDetectionSetup)return;this._tableEdgeDetectionSetup=!0;const i=e=>{this._toggleTaskItemChecked(e);const t=e.target;t instanceof Element&&t.closest(".editor-header, .bubble-menu, .table-cell-toolbar, .image-toolbar, .link-editor")||this._isEditable&&this._editor?.chain().focus().run()};e.addEventListener("click",i),t?.addEventListener("click",i)}_handleWrapperFocusIn(){this._preserveFocusOnInternalClick=!1,this._isEditorFocused=!0}_handleHeaderToolbarMouseDown(e){if(!this._isEditable)return;const t=e.target;t instanceof Element&&t.closest("button, .bubble-dropdown, .table-cell")&&(e.preventDefault(),this._preserveFocusOnInternalClick=!0,requestAnimationFrame(()=>{this._preserveFocusOnInternalClick=!1}))}_handleWrapperMouseDown(e){const t=e.target;this._isEditable&&t instanceof Element&&!t.closest(".editor-header, .bubble-menu, .table-cell-toolbar, .image-toolbar, .link-editor")&&(this._preserveFocusOnInternalClick=!0,requestAnimationFrame(()=>{this._preserveFocusOnInternalClick=!1}))}_handleWrapperFocusOut(e){const t=e.relatedTarget,i=this.shadowRoot?.querySelector(".editor-wrapper");this._preserveFocusOnInternalClick||t&&i?.contains(t)||(this._isEditorFocused=!1,this._tableDropdownOpen=!1,this._closeLinkEditor())}_isHeaderVisible(){return"header"===this._toolbarModeValue&&!this._previewValue&&(this._headerAlwaysVisibleValue||this._isEditorFocused||this._tableDropdownOpen||Boolean(this._selectedImage))}_getImageSelection(){const e=this._editor,t=e?.state.selection;return e&&t?.node&&"image"===t.node.type?.name?{pos:t.from,attrs:t.node.attrs??{}}:null}_getImageMaxWidth(){const e=this.shadowRoot?.querySelector(".editor-content"),t=(e?.clientWidth??560)-32;return Math.max(24,Math.min(560,t))}async _getImageNaturalWidth(e){return await new Promise(t=>{const i=URL.createObjectURL(e),o=new window.Image;o.onload=()=>{const e=o.naturalWidth;URL.revokeObjectURL(i),t(Number.isFinite(e)&&e>0?e:null)},o.onerror=()=>{URL.revokeObjectURL(i),t(null)},o.src=i})}_syncImageSelectionState(){const e=this._getImageSelection();if(!e)return this._selectedImage=null,void("slash"===this._toolbarModeValue&&this._hideImageToolbar());const t=Number(e.attrs.width),i=String(e.attrs.align||"left");if(this._selectedImage={pos:e.pos,width:Number.isFinite(t)&&t>0?t:this._getImageMaxWidth(),align:i},"slash"!==this._toolbarModeValue)return void this._hideImageToolbar();const o=this._editor,r=this.shadowRoot?.querySelector(".editor-wrapper")?.getBoundingClientRect();if(!o||!r)return;const s=o.view.coordsAtPos(e.pos),n=s.left-r.left+(s.right-s.left)/2,l=s.top-r.top-40;this._showImageToolbar({x:n,y:l})}_clearSlashCommandText(){if(!this._editor||!this._slashCommandRange)return;const{from:e,to:t}=this._slashCommandRange;this._editor.chain().focus().deleteRange({from:e,to:t}).run(),this._hasSlashCommand=!1,this._slashCommandRange=null}_checkSlashCommand(){if(!this._editor)return;const{selection:e}=this._editor.state;if(!e.empty)return this._hasSlashCommand=!1,void(this._slashCommandRange=null);const{$from:t}=e,i=t.parent.textBetween(0,t.parentOffset," "," "),o=/(?:^|\s)(\/\S*)$/.exec(i);if(!o)return this._hasSlashCommand=!1,void(this._slashCommandRange=null);const r=o[1];this._hasSlashCommand=!0,this._slashCommandRange={from:e.from-r.length,to:e.from}}firstUpdated(){this._injectCustomStyles(),queueMicrotask(()=>{this.isConnected&&this._initEditor()})}updated(e){if(e.has("custom-styles")&&this._injectCustomStyles(),this._editor){if(e.has("content")||e.has("model-value")&&this._useModelValue||e.has("deserialize-content")||e.has("content-format")){const e=this._transformIncomingContent(this._useModelValue?this["model-value"]:this.content);e!==this._editor.getHTML()&&this._editor.commands.setContent(e)}(e.has("readonly")||e.has("preview")||e.has("editable"))&&this._editor.setEditable(this._isEditable)}else e.has("content")&&(this._pendingContent=this.content),e.has("model-value")&&this._useModelValue&&(this._pendingContent=this["model-value"])}disconnectedCallback(){super.disconnectedCallback();const e=this._editor?.view?.dom;e?.removeEventListener("compositionstart",this._handleCompositionStart),e?.removeEventListener("compositionend",this._handleCompositionEnd),this._editor?.destroy(),this._editor=null}getContent(){return this.getContentSnapshot().value}getContentSnapshot(){const e=this._editor?.getHTML()??"",t=this._editor?.getText().trim()??"";return{value:e?this._transformOutgoingContent(e):"",html:e,text:t,format:this._contentFormatValue}}forceUpdate(){if(this.requestUpdate(),this._editor){const e=this._transformIncomingContent(this._useModelValue?this["model-value"]:this.content);e!==this._editor.getHTML()&&this._editor.commands.setContent(e)}}_applyFormat(e){this._clearSlashCommandText(),this._clearSlashInlineMarkState(!0),e()}_getCurrentLineStart(e){const{selection:t}=e.state;return t.empty?t.$from.start():null}_getSlashCommandContext(){const e=this._editor,t=this._slashCommandRange;if(!e||!t)return null;return{lineFrom:e.state.doc.resolve(t.from).start(),lineTo:t.from}}_clearSlashInlineMarkState(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this._editor,i=this._slashInlineMarkState;if(!t||!i)return;const{selection:o}=t.state,r=this._getCurrentLineStart(t);if(!e&&r===i.lineStart&&o.empty&&o.to>=i.startPos)return;this._slashInlineMarkState=null;const s=t.state.selection.to;let n=t.chain().focus().setTextSelection({from:s,to:s});switch(i.type){case"bold":n=n.unsetBold();break;case"italic":n=n.unsetItalic();break;case"underline":n=n.unsetUnderline();break;case"strike":n=n.unsetStrike();break;case"code":n=n.unsetCode()}n.run()}_runInlineMarkAction(e,t,i){switch(e){case"bold":return"set"===i?t.setBold():t.unsetBold();case"italic":return"set"===i?t.setItalic():t.unsetItalic();case"underline":return"set"===i?t.setUnderline():t.unsetUnderline();case"strike":return"set"===i?t.setStrike():t.unsetStrike();case"code":return"set"===i?t.setCode():t.unsetCode()}}_syncSlashInlineMarkState(){this._slashInlineMarkState&&this._editor&&(this._isComposingText||(this._shouldEndSlashInlineMarkAtCursor()?this._clearSlashInlineMarkState(!0):this._clearSlashInlineMarkState()))}_shouldEndSlashInlineMarkAtCursor(){const e=this._editor,t=this._slashInlineMarkState;if(!e||!t)return!1;const{selection:i}=e.state,o=this._getCurrentLineStart(e);if(!i.empty||o!==t.lineStart||i.to<=t.startPos)return!1;const r=e.state.doc.textBetween(i.to-1,i.to,"\n","\n");return/\s/.test(r)}_hasInlineMarkAtCursor(e){const t=this._editor;if(!t)return!1;const i=t.schema.marks[e];if(!i)return!1;const{selection:o,storedMarks:r}=t.state;if(!o.empty)return!1;return(r??o.$from.marks()).some(e=>e.type===i)}_restoreSlashInlineMarkIfNeeded(){const e=this._editor,t=this._slashInlineMarkState;if(!e||!t)return;const{selection:i}=e.state,o=this._getCurrentLineStart(e);if(!i.empty||o!==t.lineStart||i.to<t.startPos)return;if(this._hasInlineMarkAtCursor(t.type))return;const r=e.state.selection.to;this._runInlineMarkAction(t.type,e.chain().focus().setTextSelection({from:r,to:r}),"set").run()}_setInlineMarkState(e,t){const i=this._getCurrentLineStart(this._editor);this._slashInlineMarkState=null===i?null:{type:e,lineStart:i,startPos:t}}_applyInlineMarkToCurrentLine(e,t){const i=this._editor;if(!i)return!1;const{selection:o}=i.state;if(!o.empty)return this._runInlineMarkAction(e,i.chain().focus().setTextSelection({from:o.from,to:o.to}),t).run(),"unset"===t&&this._clearSlashInlineMarkState(!0),!0;const r=o.from,s=i.state.doc.resolve(r),n={from:s.start(),to:s.end()};return this._clearSlashInlineMarkState(!0),n.from<n.to&&this._runInlineMarkAction(e,i.chain().focus().setTextSelection(n),t).run(),this._runInlineMarkAction(e,i.chain().focus().setTextSelection({from:r,to:r}),t).run(),"set"===t&&this._setInlineMarkState(e,r),!0}_toggleToolbarInlineMark(e){return this._applyInlineMarkToCurrentLine(e,this._hasInlineMarkAtCursor(e)?"unset":"set")}_applySlashInlineMark(e){const t=this._editor,i=this._getSlashCommandContext();if(!t||!i)return!1;this._clearSlashCommandText(),this._clearSlashInlineMarkState(!0);const o=t.state.selection.to,r={from:i.lineFrom,to:t.state.doc.resolve(o).end()};return r.from<r.to&&this._runInlineMarkAction(e,t.chain().focus().setTextSelection(r),"set").run(),this._runInlineMarkAction(e,t.chain().focus().setTextSelection({from:o,to:o}),"set").run(),this._setInlineMarkState(e,o),!0}_applySlashLineBlock(e){const t=this._editor,i=this._getSlashCommandContext();return!(!t||!i)&&(this._clearSlashCommandText(),e(t.chain().focus().setTextSelection({from:i.lineFrom,to:i.lineTo})).run(),!0)}_toggleBold(){this._applySlashInlineMark("bold")||this._toggleToolbarInlineMark("bold")}_toggleItalic(){this._applySlashInlineMark("italic")||this._toggleToolbarInlineMark("italic")}_toggleUnderline(){this._applySlashInlineMark("underline")||this._toggleToolbarInlineMark("underline")}_toggleStrike(){this._applySlashInlineMark("strike")||this._toggleToolbarInlineMark("strike")}_toggleCode(){this._applySlashInlineMark("code")||this._toggleToolbarInlineMark("code")}_setHeading(e){this._applySlashLineBlock(t=>t.setHeading({level:e}))||this._applyFormat(()=>this._editor?.chain().focus().toggleHeading({level:e}).run())}_setParagraph(){this._applySlashLineBlock(e=>e.setParagraph())||this._applyFormat(()=>this._editor?.chain().focus().setParagraph().run())}_toggleBulletList(){this._applySlashLineBlock(e=>e.toggleBulletList())||this._applyFormat(()=>this._editor?.chain().focus().toggleBulletList().run())}_toggleOrderedList(){this._applySlashLineBlock(e=>e.toggleOrderedList())||this._applyFormat(()=>this._editor?.chain().focus().toggleOrderedList().run())}_toggleTaskList(){this._applySlashLineBlock(e=>e.toggleTaskList())||this._applyFormat(()=>this._editor?.chain().focus().toggleTaskList().run())}_toggleBlockquote(){this._applySlashLineBlock(e=>e.toggleBlockquote())||this._applyFormat(()=>this._editor?.chain().focus().toggleBlockquote().run())}_setTextAlign(e){this._applySlashLineBlock(t=>t.setTextAlign(e))||this._applyFormat(()=>this._editor?.chain().focus().setTextAlign(e).run())}_normalizeLinkUrl(e){const t=e.trim();return t?/^(https?:\/\/|mailto:|tel:|#|\/)/i.test(t)?t:`https://${t}`:""}_getLinkLabelFromRange(e){const t=this._editor;return!t||!e||e.from>=e.to?"":t.state.doc.textBetween(e.from,e.to,"")}_getLinkTargetRange(){const e=this._editor;if(!e)return null;const{selection:t}=e.state;if(!t.empty)return{from:t.from,to:t.to};if(e.isActive("link"))return e.chain().focus().extendMarkRange("link").run(),{from:e.state.selection.from,to:e.state.selection.to};const i=e.state.doc.resolve(t.from);return{from:i.start(),to:i.end()}}_setLink(e){const t=this._editor,i=this.shadowRoot?.querySelector(".editor-wrapper"),o=e.currentTarget instanceof HTMLElement?e.currentTarget:null;if(!t||!i||!o)return;const r=this._getLinkTargetRange();this._linkSelection=r;const s=i.getBoundingClientRect(),n=o.getBoundingClientRect(),l=Math.max(12,s.width-332),a=Math.min(Math.max(12,n.left-s.left),l),d=n.bottom-s.top+8,h=String(t.getAttributes("link").href||""),c=this._getLinkLabelFromRange(r);this._linkEditor={x:a,y:d,visible:!0,url:h,label:c},this.updateComplete.then(()=>{const e=this.shadowRoot?.querySelector('.link-editor__input[data-field="url"]');e?.focus(),e?.select()})}_closeLinkEditor(){this._linkEditor={...this._linkEditor,visible:!1}}_handleLinkEditorInput(e){const t=e.target,i="label"===t.dataset.field?"label":"url";this._linkEditor={...this._linkEditor,[i]:t.value}}_applyLink(){const e=this._editor,t=this._normalizeLinkUrl(this._linkEditor.url),i=this._linkEditor.label.trim()||t;if(!e||!t)return;this._clearSlashCommandText();const o=this._linkSelection??this._getLinkTargetRange()??e.state.selection,r=o.from+i.length;e.chain().focus().insertContentAt({from:o.from,to:o.to},{type:"text",text:i,marks:[{type:"link",attrs:{href:t}}]}).setTextSelection({from:r,to:r}).run(),this._closeLinkEditor()}_removeLink(){const e=this._editor;if(!e)return;const t=this._linkSelection??e.state.selection;let i=e.chain().focus();t.from!==t.to&&(i=i.setTextSelection(t)),i.extendMarkRange("link").unsetLink().run(),this._closeLinkEditor()}_handleLinkEditorKeydown(e){if("Enter"===e.key)return e.preventDefault(),void this._applyLink();"Escape"===e.key&&(e.preventDefault(),this._closeLinkEditor())}_insertTable(e,t){this._editor?.chain().focus().insertTable({rows:e??this._tableRows,cols:t??this._tableCols,withHeaderRow:!0}).run()}async _handleImageUpload(e){const t=e.target,i=t.files?.[0];if(i)try{const e=await this._getImageNaturalWidth(i),t=await this["upload-image"](i),o=e?Math.min(e,this._getImageMaxWidth()):this._getImageMaxWidth();this._clearSlashCommandText();const r=this._pendingImageInsertPos;this._pendingImageInsertPos=null,null!==r?this._insertImageAt(r,{src:t,width:o,align:"left"}):this._editor?.chain().focus().setImage({src:t,width:o,align:"left"}).run()}catch(e){const t=e instanceof Error?e:new Error("图片上传失败");this.dispatchEvent(new CustomEvent("image-upload-error",{detail:{file:i,error:t},bubbles:!0,composed:!0}))}t.value=""}_triggerImageUpload(){this._clearSlashCommandText();const e=this.shadowRoot?.querySelector(".image-input");e?.click()}_insertTableByClick(e,t){this._clearSlashCommandText(),this._tableRows=e,this._tableCols=t,this._insertTable(e,t)}_showTableCellToolbar(){if(!this._editor?.isActive("table"))return;const{state:e}=this._editor,{selection:t}=e,i=this._editor.view.coordsAtPos(t.from),o=this.shadowRoot?.querySelector(".editor-wrapper");if(!o)return;const r=o.getBoundingClientRect(),s=this._getTableCellRow(),n=this._getTableCellCol();(0===s||0===n)&&requestAnimationFrame(()=>{this._tableCellToolbar={x:i.left-r.left,y:i.bottom-r.top+8,visible:!0,cellRow:s,cellCol:n}})}_getTableCellRow(){if(!this._editor)return 0;const{selection:e}=this._editor.state,t=this._editor.state.doc.resolve(e.from);for(let e=t.depth;e>0;e--){if("tableCell"===t.node(e).type.name)return t.index(e-1)}return 0}_getTableCellCol(){if(!this._editor)return 0;const{selection:e}=this._editor.state,t=this._editor.state.doc.resolve(e.from);for(let e=t.depth;e>0;e--){if("tableCell"===t.node(e).type.name)return t.index(e)}return 0}_hideTableCellToolbar(){requestAnimationFrame(()=>{this._tableCellToolbar={...this._tableCellToolbar,visible:!1}})}_addTableRowAbove(){this._editor?.chain().focus().addRowBefore().run(),this._hideTableCellToolbar()}_addTableRowBelow(){this._editor?.chain().focus().addRowAfter().run(),this._hideTableCellToolbar()}_addTableColumnLeft(){this._editor?.chain().focus().addColumnBefore().run(),this._hideTableCellToolbar()}_addTableColumnRight(){this._editor?.chain().focus().addColumnAfter().run(),this._hideTableCellToolbar()}_deleteTableRow(){this._editor?.chain().focus().deleteRow().run(),this._hideTableCellToolbar()}_deleteTableColumn(){this._editor?.chain().focus().deleteColumn().run(),this._hideTableCellToolbar()}_deleteTable(){this._editor?.chain().focus().deleteTable().run(),this._hideTableCellToolbar()}_showImageToolbar(e){requestAnimationFrame(()=>{this._imageToolbar={x:e.x,y:e.y,visible:!0}})}_hideImageToolbar(){requestAnimationFrame(()=>{this._imageToolbar={...this._imageToolbar,visible:!1}})}_deleteImage(){const e=this._getSelectedImageNode();if(!e)return;const{editor:t,pos:i,node:o}=e;t.view.dispatch(t.state.tr.delete(i,i+o.nodeSize)),this._selectedImage=null,this._pendingImageInsertPos=null,this._hideImageToolbar()}_insertImageAfter(){const e=this._getSelectedImageNode();e?(this._pendingImageInsertPos=e.pos+e.node.nodeSize,this._triggerImageUpload()):this._triggerImageUpload()}_getSelectedImageNode(){const e=this._editor,t=this._selectedImage?.pos;if(!e||void 0===t)return null;const i=e.state.doc.nodeAt(t);return i&&"image"===i.type.name?{editor:e,pos:t,node:i}:null}_insertImageAt(e,t){const i=this._editor;if(!i)return;const o=Math.max(0,Math.min(e,i.state.doc.content.size));i.chain().insertContentAt(o,{type:"image",attrs:t}).setNodeSelection(o).run()}_updateSelectedImageAttributes(e){const t=this._getSelectedImageNode();if(!t)return;const{editor:i,pos:o,node:r}=t;i.view.dispatch(i.state.tr.setNodeMarkup(o,void 0,{...r.attrs,...e}))}_setImageWidth(e){const t=Math.max(24,Math.min(this._getImageMaxWidth(),Math.round(e)));this._updateSelectedImageAttributes({width:t})}_handleImageWidthInput(e){const t=e.target.value.trim();if(!t)return;const i=Number(t);Number.isFinite(i)&&this._setImageWidth(i)}_setImageAlignLeft(){this._updateSelectedImageAttributes({align:"left"})}_setImageAlignCenter(){this._updateSelectedImageAttributes({align:"center"})}_setImageAlignRight(){this._updateSelectedImageAttributes({align:"right"})}_getTextLabel(){const e=this._editor;return e?e.isActive("heading",{level:1})?"标题 1":e.isActive("heading",{level:2})?"标题 2":e.isActive("heading",{level:3})?"标题 3":"正文":"正文"}_getAlignLabel(){const e=this._editor;return e?e.isActive({textAlign:"center"})?"居中":e.isActive({textAlign:"right"})?"右对齐":"左对齐":"对齐"}_renderImageControls(){const e=this._selectedImage;return e?T.html`
7
+ <button class="bubble-btn danger" title="删除图片" @click=${this._deleteImage}>
8
+ <svg viewBox="0 0 24 24"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>
9
+ </button>
10
+ <button class="bubble-btn" title="添加图片" @click=${this._insertImageAfter}>
11
+ <svg viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>
12
+ </button>
13
+ <div class="bubble-divider"></div>
14
+ <span class="image-control-label">对齐</span>
15
+ <button class="bubble-btn ${"left"===e.align?"is-active":""}" title="左对齐" @click=${this._setImageAlignLeft}>
16
+ <svg viewBox="0 0 24 24"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="15" y2="12"/><line x1="3" y1="18" x2="18" y2="18"/></svg>
17
+ </button>
18
+ <button class="bubble-btn ${"center"===e.align?"is-active":""}" title="居中" @click=${this._setImageAlignCenter}>
19
+ <svg viewBox="0 0 24 24"><line x1="3" y1="6" x2="21" y2="6"/><line x1="6" y1="12" x2="18" y2="12"/><line x1="4" y1="18" x2="20" y2="18"/></svg>
20
+ </button>
21
+ <button class="bubble-btn ${"right"===e.align?"is-active":""}" title="右对齐" @click=${this._setImageAlignRight}>
22
+ <svg viewBox="0 0 24 24"><line x1="3" y1="6" x2="21" y2="6"/><line x1="9" y1="12" x2="21" y2="12"/><line x1="6" y1="18" x2="21" y2="18"/></svg>
23
+ </button>
24
+ <div class="image-size-control">
25
+ <span class="image-size-label">宽度</span>
26
+ <input
27
+ class="image-size-range"
28
+ type="number"
29
+ min="${24}"
30
+ max="${this._getImageMaxWidth()}"
31
+ .value=${String(e.width)}
32
+ @input=${this._handleImageWidthInput}
33
+ />
34
+ </div>
35
+ `:""}_joinToolbarGroups(e){return e.flatMap((e,t)=>0===t?[e]:[T.html`<div class="bubble-divider"></div>`,e])}_renderFormatToolbarGroup(e){return T.html`
36
+ ${this._renderToolbarButton("bold",{title:"加粗",active:e?.isActive("bold"),onClick:this._toggleBold,icon:T.html`<svg viewBox="0 0 24 24"><path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"/><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"/></svg>`})}
37
+ ${this._renderToolbarButton("italic",{title:"斜体",active:e?.isActive("italic"),onClick:this._toggleItalic,icon:T.html`<svg viewBox="0 0 24 24"><line x1="19" y1="4" x2="10" y2="4"/><line x1="14" y1="20" x2="5" y2="20"/><line x1="15" y1="4" x2="9" y2="20"/></svg>`})}
38
+ ${this._renderToolbarButton("underline",{title:"下划线",active:e?.isActive("underline"),onClick:this._toggleUnderline,icon:T.html`<svg viewBox="0 0 24 24"><path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"/><line x1="4" y1="21" x2="20" y2="21"/></svg>`})}
39
+ ${this._renderToolbarButton("strike",{title:"删除线",active:e?.isActive("strike"),onClick:this._toggleStrike,icon:T.html`<svg viewBox="0 0 24 24"><path d="M17.3 4.9c-2.3-.6-4.4-1-6.2-.9-2.7 0-5.3.7-5.3 3.6 0 1.5 1.8 3.3 5.3 3.9h.2m8.2 3.2c.3.4.4.8.4 1.3 0 2.9-2.7 3.6-6.2 3.6-2.3 0-4.4-.3-6.2-.9M4 12h16"/></svg>`})}
40
+ `}_renderHeadingToolbarGroup(e){return T.html`
41
+ <div class="bubble-dropdown">
42
+ <button class="bubble-dropdown-btn">
43
+ ${this._getTextLabel()}
44
+ <svg viewBox="0 0 24 24"><polyline points="6 9 12 15 18 9"/></svg>
45
+ </button>
46
+ <div class="bubble-dropdown-menu">
47
+ <button class="bubble-dropdown-item ${e?.isActive("heading")?"":"is-active"}" @click=${this._setParagraph}>正文</button>
48
+ <button class="bubble-dropdown-item ${e?.isActive("heading",{level:1})?"is-active":""}" @click=${()=>this._setHeading(1)}>标题 1</button>
49
+ <button class="bubble-dropdown-item ${e?.isActive("heading",{level:2})?"is-active":""}" @click=${()=>this._setHeading(2)}>标题 2</button>
50
+ <button class="bubble-dropdown-item ${e?.isActive("heading",{level:3})?"is-active":""}" @click=${()=>this._setHeading(3)}>标题 3</button>
51
+ </div>
52
+ </div>
53
+ `}_renderAlignToolbarGroup(e){return T.html`
54
+ <div class="bubble-dropdown">
55
+ <button class="bubble-dropdown-btn">
56
+ ${this._getAlignLabel()}
57
+ <svg viewBox="0 0 24 24"><polyline points="6 9 12 15 18 9"/></svg>
58
+ </button>
59
+ <div class="bubble-dropdown-menu">
60
+ <button class="bubble-dropdown-item ${e?.isActive({textAlign:"left"})?"is-active":""}" @click=${()=>this._setTextAlign("left")}>
61
+ <svg viewBox="0 0 24 24"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="15" y2="12"/><line x1="3" y1="18" x2="18" y2="18"/></svg>
62
+ 左对齐
63
+ </button>
64
+ <button class="bubble-dropdown-item ${e?.isActive({textAlign:"center"})?"is-active":""}" @click=${()=>this._setTextAlign("center")}>
65
+ <svg viewBox="0 0 24 24"><line x1="3" y1="6" x2="21" y2="6"/><line x1="6" y1="12" x2="18" y2="12"/><line x1="4" y1="18" x2="20" y2="18"/></svg>
66
+ 居中
67
+ </button>
68
+ <button class="bubble-dropdown-item ${e?.isActive({textAlign:"right"})?"is-active":""}" @click=${()=>this._setTextAlign("right")}>
69
+ <svg viewBox="0 0 24 24"><line x1="3" y1="6" x2="21" y2="6"/><line x1="9" y1="12" x2="21" y2="12"/><line x1="6" y1="18" x2="21" y2="18"/></svg>
70
+ 右对齐
71
+ </button>
72
+ </div>
73
+ </div>
74
+ `}_renderCodeLinkImageToolbarGroup(e){return T.html`
75
+ ${this._hasToolbarItem("code")?this._renderToolbarButton("code",{title:"行内代码",active:e?.isActive("code"),onClick:this._toggleCode,icon:T.html`<svg viewBox="0 0 24 24"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`}):""}
76
+ ${this._hasToolbarItem("link")?this._renderToolbarButton("link",{title:"链接",active:e?.isActive("link"),onClick:this._setLink,icon:T.html`<svg viewBox="0 0 24 24"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`}):""}
77
+ ${this._hasToolbarItem("image")?this._renderToolbarButton("image",{title:"图片",onClick:this._triggerImageUpload,icon:T.html`<svg viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>`}):""}
78
+ `}_renderCodeToolbarButton(e){return this._renderToolbarButton("code",{title:"行内代码",active:e?.isActive("code"),onClick:this._toggleCode,icon:T.html`<svg viewBox="0 0 24 24"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`})}_renderLinkToolbarButton(e){return this._renderToolbarButton("link",{title:"链接",active:e?.isActive("link"),onClick:this._setLink,icon:T.html`<svg viewBox="0 0 24 24"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`})}_renderImageToolbarButton(){return this._renderToolbarButton("image",{title:"图片",onClick:this._triggerImageUpload,icon:T.html`<svg viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>`})}_renderListToolbarGroup(e){return T.html`
79
+ ${this._renderToolbarButton("bulletList",{title:"无序列表",active:e?.isActive("bulletList"),onClick:this._toggleBulletList,icon:T.html`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
80
+ <line x1="9" y1="6" x2="20" y2="6"/>
81
+ <line x1="9" y1="12" x2="20" y2="12"/>
82
+ <line x1="9" y1="18" x2="20" y2="18"/>
83
+ <circle cx="4" cy="6" r="0.5" fill="currentColor" stroke="none"/>
84
+ <circle cx="4" cy="12" r="0.5" fill="currentColor" stroke="none"/>
85
+ <circle cx="4" cy="18" r="0.5" fill="currentColor" stroke="none"/>
86
+ </svg>`})}
87
+ ${this._renderToolbarButton("orderedList",{title:"有序列表",active:e?.isActive("orderedList"),onClick:this._toggleOrderedList,icon:T.html`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
88
+ <line x1="10" y1="6" x2="21" y2="6"/>
89
+ <line x1="10" y1="12" x2="21" y2="12"/>
90
+ <line x1="10" y1="18" x2="21" y2="18"/>
91
+ <path d="M4 6h1v4"/>
92
+ <path d="M4 10h2"/>
93
+ <path d="M6 18H4c0-1 2-2 2-3s-1-1.5-2-1.5"/>
94
+ </svg>`})}
95
+ ${this._renderToolbarButton("taskList",{title:"待办列表",active:e?.isActive("taskList"),onClick:this._toggleTaskList,icon:T.html`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
96
+ <rect x="3" y="5" width="4" height="4" rx="1"/>
97
+ <polyline points="4 7 5 8 6.5 6.5"/>
98
+ <line x1="10" y1="7" x2="21" y2="7"/>
99
+ <rect x="3" y="15" width="4" height="4" rx="1"/>
100
+ <line x1="10" y1="17" x2="21" y2="17"/>
101
+ </svg>`})}
102
+ `}_renderBlockquoteToolbarGroup(e){return T.html`
103
+ ${this._renderToolbarButton("blockquote",{title:"引用",active:e?.isActive("blockquote"),onClick:this._toggleBlockquote,icon:T.html`<svg viewBox="0 0 24 24"><path d="M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V21z"/><path d="M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z"/></svg>`})}
104
+ `}_renderTableToolbarGroup(){const e=this._getHeaderToolbarLabel("table");return T.html`
105
+ <div
106
+ class="bubble-dropdown ${this._tableDropdownOpen?"is-open":""}"
107
+ @mouseenter=${()=>{this._tableDropdownOpen=!0,this._hoverRow=0,this._hoverCol=0}}
108
+ @mouseleave=${()=>this._tableDropdownOpen=!1}
109
+ >
110
+ <button class="bubble-dropdown-btn ${e?"has-label":""}" title="表格">
111
+ <svg viewBox="0 0 24 24" style="width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="3" y1="15" x2="21" y2="15"/><line x1="9" y1="3" x2="9" y2="21"/><line x1="15" y1="3" x2="15" y2="21"/></svg>
112
+ ${e?T.html`<span class="bubble-dropdown-btn__label">${e}</span>`:null}
113
+ </button>
114
+ <div class="bubble-dropdown-menu">
115
+ <div class="table-grid-preview">
116
+ ${this._renderTableGrid()}
117
+ </div>
118
+ <div class="table-size-hint">
119
+ <span>${this._hoverRow>0?`${this._hoverRow} × ${this._hoverCol}`:`${this._tableRows} × ${this._tableCols}`}</span>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ `}_getToolbarMergeKey(e){return"code"===e||"link"===e||"image"===e?"code-link-image":e}_renderToolbarItemByKey(e,t){switch(t){case"format":return this._renderFormatToolbarGroup(e);case"heading":return this._renderHeadingToolbarGroup(e);case"align":return this._renderAlignToolbarGroup(e);case"code":return this._renderCodeToolbarButton(e);case"link":return this._renderLinkToolbarButton(e);case"image":return this._renderImageToolbarButton();case"list":return this._renderListToolbarGroup(e);case"blockquote":return this._renderBlockquoteToolbarGroup(e);case"table":return this._renderTableToolbarGroup();default:return null}}_renderTextToolbar(e){const t=[];let i="",o=[];const r=()=>{o.length&&(t.push([...o]),o=[])};for(const t of this._toolbarItemsValue){const s=this._renderToolbarItemByKey(e,t);if(!s)continue;const n=this._getToolbarMergeKey(t);o.length&&n!==i&&r(),i=n,o.push(s)}return r(),this._joinToolbarGroups(t)}_updateBubbleMenuPosition(){"slash"===this._toolbarModeValue&&requestAnimationFrame(()=>{const e=this.shadowRoot?.querySelector(".bubble-menu"),t=this.shadowRoot?.querySelector(".ProseMirror"),i=this.shadowRoot?.querySelector(".editor-wrapper");if(!e||!t||!i)return;const o=this._editor,r=o?.isActive("table")??!1,{selection:s}=o?.state??{selection:null};if(r&&s&&!s.empty&&o){const{from:t,to:i}=s,r=o.state.doc.resolve(t),n=o.state.doc.resolve(i);let l=!1;for(let e=r.depth;e>=0;e--)if("table"===r.node(e).type.name){l=!0;break}const a=r.node(r.depth),d=n.node(n.depth);if("table"!==a.type.name&&"table"!==d.type.name||(l=!0),l)return e.style.opacity="0",void(e.style.visibility="hidden")}if(s&&!s.empty);else if(!s||s.empty&&!this._hasSlashCommand)return e.style.opacity="0",void(e.style.visibility="hidden");const n=i.getBoundingClientRect(),l=e.getBoundingClientRect(),{from:a}=s,d=this._editor?.view.coordsAtPos(a);if(!d)return;let h=d.left-n.left,c=d.top-n.top-40;h+l.width>n.width&&(h=n.width-l.width-8),h<0&&(h=8),c<0&&(c=d.bottom-n.top+8),e.style.left=`${h}px`,e.style.top=`${c}px`,e.style.opacity="1",e.style.visibility="visible"})}render(){const e=this._editor,t=this._previewValue||"header"!==this._toolbarModeValue?null:T.html`
124
+ <div class="editor-header ${this._isHeaderVisible()?"is-visible":""}">
125
+ <div class="editor-header__inner" @mousedown=${this._handleHeaderToolbarMouseDown}>
126
+ ${this._selectedImage?this._renderImageControls():this._renderTextToolbar(e)}
127
+ </div>
128
+ </div>
129
+ `,i=this._showCharacterCountValue&&!this._previewValue;return T.html`
130
+ <div
131
+ class="editor-wrapper ${e?"":"loading"} ${this._previewValue?"preview":""} ${"bottom"===this._toolbarPositionValue?"toolbar-bottom":""}"
132
+ style=${this._wrapperStyleValue}
133
+ @mousedown=${this._handleWrapperMouseDown}
134
+ @focusin=${this._handleWrapperFocusIn}
135
+ @focusout=${this._handleWrapperFocusOut}
136
+ >
137
+ ${e?"":T.html`
138
+ <div class="loading-placeholder">
139
+ <div class="loading-spinner"></div>
140
+ <span>编辑器加载中...</span>
141
+ </div>
142
+ `}
143
+ <input
144
+ type="file"
145
+ accept="image/*"
146
+ class="image-input"
147
+ @change=${this._handleImageUpload}
148
+ />
149
+
150
+ ${"top"===this._toolbarPositionValue?t:null}
151
+
152
+ <!-- Bubble Menu (悬浮操作栏) -->
153
+ ${this._previewValue||"slash"!==this._toolbarModeValue?"":T.html`
154
+ <div class="bubble-menu">
155
+ ${this._renderTextToolbar(e)}
156
+ </div>
157
+ `}
158
+
159
+ <div class="editor-content" data-empty-hint=${this._resolvedPlaceholder}></div>
160
+
161
+ ${"bottom"===this._toolbarPositionValue?t:null}
162
+
163
+ ${i?T.html`<div class="editor-footer">${this._getEditorCharacterCount()} 字符</div>`:null}
164
+
165
+ ${this._linkEditor.visible?T.html`
166
+ <div
167
+ class="link-editor"
168
+ style="left: ${this._linkEditor.x}px; top: ${this._linkEditor.y}px;"
169
+ @mousedown=${e=>e.stopPropagation()}
170
+ @click=${e=>e.stopPropagation()}
171
+ >
172
+ <div class="link-editor__field">
173
+ <span class="link-editor__label">链接地址</span>
174
+ <input
175
+ class="link-editor__input"
176
+ data-field="url"
177
+ type="text"
178
+ placeholder="输入或粘贴链接"
179
+ .value=${this._linkEditor.url}
180
+ @input=${this._handleLinkEditorInput}
181
+ @keydown=${this._handleLinkEditorKeydown}
182
+ />
183
+ </div>
184
+ <div class="link-editor__field">
185
+ <span class="link-editor__label">链接名字</span>
186
+ <input
187
+ class="link-editor__input"
188
+ data-field="label"
189
+ type="text"
190
+ placeholder="输入展示名称"
191
+ .value=${this._linkEditor.label}
192
+ @input=${this._handleLinkEditorInput}
193
+ @keydown=${this._handleLinkEditorKeydown}
194
+ />
195
+ </div>
196
+ <div class="link-editor__actions">
197
+ <button class="link-editor__action primary" title="应用链接" @click=${this._applyLink}>应用</button>
198
+ <button class="link-editor__action" title="取消链接编辑" @click=${this._closeLinkEditor}>取消</button>
199
+ ${e?.isActive("link")||this._linkEditor.url?T.html`<button class="link-editor__action danger" title="移除链接" @click=${this._removeLink}>移除</button>`:""}
200
+ </div>
201
+ </div>
202
+ `:""}
203
+
204
+ <!-- Table Cell Toolbar -->
205
+ ${this._tableCellToolbar.visible&&e?.isActive("table")?T.html`
206
+ <div
207
+ class="table-cell-toolbar"
208
+ style="left: ${this._tableCellToolbar.x}px; top: ${this._tableCellToolbar.y}px;"
209
+ @mousedown=${e=>e.preventDefault()}
210
+ >
211
+ ${0===this._tableCellToolbar.cellRow?T.html`
212
+ <button class="table-cell-toolbar-btn" title="上方添加行" @click=${this._addTableRowAbove}>
213
+ <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><rect x="4" y="8" width="16" height="8" rx="1"/><line x1="12" y1="3" x2="12" y2="7"/><line x1="10" y1="5" x2="14" y2="5"/></svg>
214
+ </button>
215
+ <button class="table-cell-toolbar-btn" title="下方添加行" @click=${this._addTableRowBelow}>
216
+ <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><rect x="4" y="8" width="16" height="8" rx="1"/><line x1="12" y1="21" x2="12" y2="17"/><line x1="10" y1="19" x2="14" y2="19"/></svg>
217
+ </button>
218
+ <button class="table-cell-toolbar-btn danger" title="删除行" @click=${this._deleteTableRow}>
219
+ <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><rect x="4" y="8" width="16" height="8" rx="1"/><line x1="9" y1="10" x2="9" y2="14"/><line x1="15" y1="10" x2="15" y2="14"/></svg>
220
+ </button>
221
+ `:""}
222
+ ${0===this._tableCellToolbar.cellCol?T.html`
223
+ ${0!==this._tableCellToolbar.cellRow?T.html`<div style="width:1px;height:20px;background:#e3e3e3;margin:0 4px;"></div>`:""}
224
+ <button class="table-cell-toolbar-btn" title="左侧添加列" @click=${this._addTableColumnLeft}>
225
+ <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><rect x="8" y="4" width="8" height="16" rx="1"/><line x1="3" y1="12" x2="7" y2="12"/><line x1="5" y1="10" x2="5" y2="14"/></svg>
226
+ </button>
227
+ <button class="table-cell-toolbar-btn" title="右侧添加列" @click=${this._addTableColumnRight}>
228
+ <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><rect x="8" y="4" width="8" height="16" rx="1"/><line x1="21" y1="12" x2="17" y2="12"/><line x1="19" y1="10" x2="19" y2="14"/></svg>
229
+ </button>
230
+ <button class="table-cell-toolbar-btn danger" title="删除列" @click=${this._deleteTableColumn}>
231
+ <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><rect x="8" y="4" width="8" height="16" rx="1"/><line x1="10" y1="9" x2="14" y2="9"/><line x1="10" y1="15" x2="14" y2="15"/></svg>
232
+ </button>
233
+ `:""}
234
+ ${0===this._tableCellToolbar.cellRow&&0===this._tableCellToolbar.cellCol?T.html`
235
+ <div style="width:1px;height:20px;background:#e3e3e3;margin:0 4px;"></div>
236
+ <button class="table-cell-toolbar-btn danger" title="删除表格" @click=${this._deleteTable}>
237
+ <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>
238
+ </button>
239
+ `:""}
240
+ </div>
241
+ `:""}
242
+
243
+ <!-- Image Toolbar -->
244
+ ${"slash"===this._toolbarModeValue&&this._imageToolbar.visible?T.html`
245
+ <div
246
+ class="image-toolbar"
247
+ style="left: ${this._imageToolbar.x}px; top: ${this._imageToolbar.y}px;"
248
+ @mousedown=${e=>e.preventDefault()}
249
+ >
250
+ ${this._renderImageControls()}
251
+ </div>
252
+ `:""}
253
+ </div>
254
+ `}_renderTableGrid(){const e=[];for(let t=0;t<100;t++){const i=Math.floor(t/10)+1,o=t%10+1,r=this._hoverRow>0&&i<=this._hoverRow&&o<=this._hoverCol;e.push(T.html`
255
+ <div
256
+ class="table-cell ${r?"selected":""}"
257
+ @click=${()=>{this._insertTableByClick(i,o),this._tableDropdownOpen=!1}}
258
+ @mouseenter=${()=>{this._hoverRow=i,this._hoverCol=o}}
259
+ @mouseleave=${()=>{this._hoverRow=0,this._hoverCol=0}}
260
+ ></div>
261
+ `)}return e}},exports.QxsBlocksuiteEditor.styles=T.css`
262
+ :host {
263
+ display: block;
264
+ font-family: inherit;
265
+ }
266
+
267
+ .editor-wrapper {
268
+ border: 1px solid #e3e3e3;
269
+ border-radius: 12px;
270
+ background: #fff;
271
+ overflow: visible;
272
+ position: relative;
273
+ min-height: var(--qxs-editor-min-height, 80px);
274
+ }
275
+
276
+ .editor-wrapper:focus-within {
277
+ border-color: var(--qxs-color-primary, #3D61E3);
278
+ }
279
+
280
+ .editor-wrapper.preview {
281
+ border: none;
282
+ border-radius: 0;
283
+ background: transparent;
284
+ }
285
+
286
+ .editor-wrapper.preview .editor-content {
287
+ padding: 8px 12px;
288
+ min-height: unset;
289
+ max-height: none;
290
+ overflow: visible;
291
+ }
292
+
293
+ .editor-wrapper.toolbar-bottom .editor-header {
294
+ border-bottom: none;
295
+ border-top: 1px solid transparent;
296
+ }
297
+
298
+ .editor-wrapper.toolbar-bottom .editor-header.is-visible {
299
+ border-top-color: #eef1f5;
300
+ border-bottom-color: transparent;
301
+ }
302
+
303
+ .editor-header {
304
+ max-height: 0;
305
+ opacity: 0;
306
+ overflow: hidden;
307
+ padding: 0 16px;
308
+ border-bottom: 1px solid transparent;
309
+ transition:
310
+ max-height 0.24s ease,
311
+ opacity 0.18s ease,
312
+ padding 0.24s ease,
313
+ border-color 0.24s ease;
314
+ }
315
+
316
+ .editor-header.is-visible {
317
+ max-height: 132px;
318
+ opacity: 1;
319
+ overflow: visible;
320
+ padding: 10px 12px;
321
+ border-bottom-color: #eef1f5;
322
+ }
323
+
324
+ .editor-header__inner {
325
+ display: flex;
326
+ align-items: center;
327
+ flex-wrap: wrap;
328
+ overflow: visible;
329
+ }
330
+
331
+ .editor-content {
332
+ padding: 12px 16px;
333
+ min-height: var(--qxs-editor-min-height, 80px);
334
+ max-height: var(--qxs-editor-max-height, none);
335
+ overflow-y: var(--qxs-editor-overflow-y, visible);
336
+ cursor: text;
337
+ }
338
+
339
+ .editor-content:empty::before {
340
+ content: attr(data-empty-hint);
341
+ color: #c0c0c0;
342
+ pointer-events: none;
343
+ display: block;
344
+ padding-top: 28px;
345
+ text-align: center;
346
+ }
347
+
348
+ .editor-wrapper:not(.preview) .ProseMirror {
349
+ min-height: var(--qxs-editor-min-height, 80px);
350
+ }
351
+
352
+ .editor-footer {
353
+ display: flex;
354
+ justify-content: flex-end;
355
+ padding: 0 16px 12px;
356
+ color: #909399;
357
+ font-size: 12px;
358
+ line-height: 1;
359
+ }
360
+
361
+ .ProseMirror p.is-editor-empty:first-child::before {
362
+ content: attr(data-placeholder);
363
+ color: #c0c0c0;
364
+ pointer-events: none;
365
+ float: left;
366
+ height: 0;
367
+ }
368
+
369
+ .ProseMirror p.is-empty:only-child::before,
370
+ .ProseMirror p.is-empty:only-child > br:first-child + *::before {
371
+ content: attr(data-placeholder);
372
+ color: #c0c0c0;
373
+ pointer-events: none;
374
+ float: left;
375
+ height: 0;
376
+ }
377
+
378
+ .editor-wrapper.loading {
379
+ display: flex;
380
+ align-items: center;
381
+ justify-content: center;
382
+ min-height: 200px;
383
+ background: #fafafa;
384
+ }
385
+
386
+ .loading-placeholder {
387
+ display: flex;
388
+ flex-direction: column;
389
+ align-items: center;
390
+ gap: 12px;
391
+ color: #909399;
392
+ font-size: 14px;
393
+ }
394
+
395
+ .loading-spinner {
396
+ width: 24px;
397
+ height: 24px;
398
+ border: 2px solid #e3e3e3;
399
+ border-top-color: var(--qxs-color-primary, #3D61E3);
400
+ border-radius: 50%;
401
+ animation: spin 0.8s linear infinite;
402
+ }
403
+
404
+ @keyframes spin {
405
+ to { transform: rotate(360deg); }
406
+ }
407
+
408
+ .ProseMirror {
409
+ outline: none;
410
+ line-height: 1.7;
411
+ color: #37352f;
412
+ font-size: 15px;
413
+ }
414
+
415
+ .ProseMirror > * + * {
416
+ margin-top: 0.5em;
417
+ }
418
+
419
+ .ProseMirror > *:first-child {
420
+ margin-top: 0 !important;
421
+ }
422
+
423
+ .ProseMirror p {
424
+ margin: 0;
425
+ }
426
+
427
+ .ProseMirror h1 {
428
+ font-size: 1.875em;
429
+ font-weight: 700;
430
+ margin: 0 0 0.25em;
431
+ line-height: 1.3;
432
+ }
433
+
434
+ .ProseMirror > h1:first-child {
435
+ margin-top: 0 !important;
436
+ line-height: 1.15;
437
+ }
438
+
439
+ .ProseMirror > p:first-child {
440
+ margin-top: 0 !important;
441
+ }
442
+
443
+ .ProseMirror h2 {
444
+ font-size: 1.5em;
445
+ font-weight: 600;
446
+ margin: 0.5em 0 0.25em;
447
+ line-height: 1.3;
448
+ }
449
+
450
+ .ProseMirror h3 {
451
+ font-size: 1.25em;
452
+ font-weight: 600;
453
+ margin: 0.5em 0 0.25em;
454
+ line-height: 1.3;
455
+ }
456
+
457
+ .ProseMirror ul,
458
+ .ProseMirror ol {
459
+ padding-left: 1.5em;
460
+ margin: 0;
461
+ }
462
+
463
+ .ProseMirror ul[data-type="taskList"] {
464
+ padding-left: 0;
465
+ list-style: none;
466
+ }
467
+
468
+ .ProseMirror li[data-type="taskItem"] {
469
+ display: flex;
470
+ align-items: flex-start;
471
+ gap: 8px;
472
+ list-style: none;
473
+ margin: 0.2em 0;
474
+ }
475
+
476
+ .ProseMirror li[data-type="taskItem"] > label {
477
+ display: inline-flex;
478
+ align-items: center;
479
+ justify-content: center;
480
+ width: 18px;
481
+ height: 28px;
482
+ flex: 0 0 18px;
483
+ cursor: pointer;
484
+ user-select: none;
485
+ }
486
+
487
+ .ProseMirror li[data-type="taskItem"] > label > input {
488
+ width: 14px;
489
+ height: 14px;
490
+ margin: 0;
491
+ cursor: pointer;
492
+ }
493
+
494
+ .ProseMirror li[data-type="taskItem"] > label > span {
495
+ display: none;
496
+ }
497
+
498
+ .ProseMirror li[data-type="taskItem"] > div {
499
+ flex: 1;
500
+ min-width: 0;
501
+ }
502
+
503
+ .ProseMirror li[data-type="taskItem"][data-checked="true"] > div p {
504
+ color: #8a8f98;
505
+ text-decoration: line-through;
506
+ }
507
+
508
+ .ProseMirror li {
509
+ margin: 0.1em 0;
510
+ }
511
+
512
+ .ProseMirror li::marker {
513
+ color: #37352f;
514
+ }
515
+
516
+ .ProseMirror strong {
517
+ font-weight: 700;
518
+ }
519
+
520
+ .ProseMirror em {
521
+ font-style: italic;
522
+ font-synthesis: none;
523
+ transform: skewX(-12deg);
524
+ display: inline-block;
525
+ }
526
+
527
+ .ProseMirror u {
528
+ text-decoration: underline;
529
+ }
530
+
531
+ .ProseMirror s {
532
+ text-decoration: line-through;
533
+ color: #787774;
534
+ }
535
+
536
+ .ProseMirror code {
537
+ background: rgba(135, 131, 120, 0.14);
538
+ color: #eb5757;
539
+ padding: 2px 4px;
540
+ border-radius: 4px;
541
+ font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
542
+ font-size: 85%;
543
+ }
544
+
545
+ .ProseMirror pre {
546
+ background: #f6f6f7;
547
+ border-radius: 8px;
548
+ padding: 12px 16px;
549
+ overflow-x: auto;
550
+ }
551
+
552
+ .ProseMirror pre code {
553
+ background: none;
554
+ padding: 0;
555
+ color: #37352f;
556
+ }
557
+
558
+ .ProseMirror blockquote {
559
+ border-left: 3px solid #e3e3e3;
560
+ padding-left: 1em;
561
+ margin: 0.75em 0;
562
+ color: #787774;
563
+ }
564
+
565
+ .ProseMirror hr {
566
+ border: none;
567
+ border-top: 1px solid #e3e3e3;
568
+ margin: 1.5em 0;
569
+ }
570
+
571
+ .ProseMirror img {
572
+ max-width: 100%;
573
+ height: auto;
574
+ border-radius: 8px;
575
+ }
576
+
577
+ .ProseMirror img[data-align="left"] {
578
+ display: block !important;
579
+ margin: 16px auto 16px 0 !important;
580
+ }
581
+
582
+ .ProseMirror img[data-align="center"] {
583
+ display: block !important;
584
+ margin: 16px auto !important;
585
+ }
586
+
587
+ .ProseMirror img[data-align="right"] {
588
+ display: block !important;
589
+ margin: 16px 0 16px auto !important;
590
+ }
591
+
592
+ .ProseMirror a {
593
+ color: var(--qxs-color-primary, #3D61E3);
594
+ text-decoration: underline;
595
+ cursor: pointer;
596
+ }
597
+
598
+ .ProseMirror img.ProseMirror-selectednode {
599
+ outline: 2px solid var(--qxs-color-primary, #3D61E3);
600
+ outline-offset: 2px;
601
+ box-shadow: 0 0 0 4px rgba(61, 97, 227, 0.12);
602
+ }
603
+
604
+ /* Table styles */
605
+ .ProseMirror table {
606
+ border-collapse: collapse;
607
+ width: 100%;
608
+ margin: 1em 0;
609
+ border: 1px solid #e3e3e3;
610
+ border-radius: 8px;
611
+ overflow: hidden;
612
+ }
613
+
614
+ .ProseMirror th,
615
+ .ProseMirror td {
616
+ border: 1px solid #e3e3e3;
617
+ padding: 8px 12px;
618
+ text-align: left;
619
+ vertical-align: top;
620
+ }
621
+
622
+ .ProseMirror th {
623
+ background: #fafafa;
624
+ font-weight: 600;
625
+ }
626
+
627
+ .ProseMirror .selectedCell {
628
+ background: rgba(30, 150, 252, 0.1);
629
+ }
630
+
631
+ /* Table Cell Toolbar */
632
+ .table-cell-toolbar {
633
+ position: absolute;
634
+ z-index: 50;
635
+ display: flex;
636
+ gap: 2px;
637
+ padding: 4px;
638
+ background: #fff;
639
+ border: 1px solid #e3e3e3;
640
+ border-radius: 6px;
641
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
642
+ }
643
+
644
+ .table-cell-toolbar-btn {
645
+ display: flex;
646
+ align-items: center;
647
+ justify-content: center;
648
+ width: 28px;
649
+ height: 28px;
650
+ border: none;
651
+ background: transparent;
652
+ border-radius: 4px;
653
+ cursor: pointer;
654
+ color: #606266;
655
+ transition: all 0.15s;
656
+ }
657
+
658
+ .table-cell-toolbar-btn:hover {
659
+ background: #ecf5ff;
660
+ color: var(--qxs-color-primary, #3D61E3);
661
+ }
662
+
663
+ .table-cell-toolbar-btn.danger:hover {
664
+ background: #fef0f0;
665
+ color: #f56c6c;
666
+ }
667
+
668
+ /* Bubble Menu */
669
+ .bubble-menu {
670
+ position: absolute;
671
+ display: flex;
672
+ align-items: center;
673
+ gap: 2px;
674
+ padding: 4px 6px;
675
+ background: #fff;
676
+ border: 1px solid #e3e3e3;
677
+ border-radius: 8px;
678
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
679
+ z-index: 100;
680
+ opacity: 0;
681
+ visibility: hidden;
682
+ transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
683
+ transform: translateY(4px);
684
+ max-width: calc(100vw - 40px);
685
+ }
686
+
687
+ .bubble-menu.is-visible {
688
+ opacity: 1;
689
+ visibility: visible;
690
+ transform: translateY(0);
691
+ }
692
+
693
+ .bubble-btn {
694
+ display: flex;
695
+ align-items: center;
696
+ justify-content: center;
697
+ width: 28px;
698
+ height: 28px;
699
+ border: none;
700
+ background: transparent;
701
+ color: #37352f;
702
+ border-radius: 4px;
703
+ cursor: pointer;
704
+ transition: all 0.15s;
705
+ position: relative;
706
+ }
707
+
708
+ .bubble-btn.has-label {
709
+ gap: 6px;
710
+ width: auto;
711
+ padding: 0 10px;
712
+ white-space: nowrap;
713
+ }
714
+
715
+ .bubble-btn:hover {
716
+ background: rgba(55, 53, 47, 0.08);
717
+ }
718
+
719
+ .bubble-btn.is-active {
720
+ background: var(--qxs-color-primary, #3D61E3);
721
+ color: #fff;
722
+ }
723
+
724
+ .bubble-btn.danger:hover {
725
+ background: #fef0f0;
726
+ color: #f56c6c;
727
+ }
728
+
729
+ .bubble-btn svg {
730
+ width: 16px;
731
+ height: 16px;
732
+ stroke: currentColor;
733
+ stroke-width: 2;
734
+ fill: none;
735
+ flex: 0 0 auto;
736
+ }
737
+
738
+ .bubble-btn__label {
739
+ font-size: 12px;
740
+ font-weight: 500;
741
+ line-height: 1;
742
+ }
743
+
744
+ .bubble-divider {
745
+ width: 1px;
746
+ height: 16px;
747
+ background: #e3e3e3;
748
+ margin: 0 3px;
749
+ }
750
+
751
+ /* Dropdown */
752
+ .bubble-dropdown {
753
+ position: relative;
754
+ }
755
+
756
+ .bubble-dropdown-btn {
757
+ display: flex;
758
+ align-items: center;
759
+ gap: 4px;
760
+ padding: 0 6px;
761
+ height: 28px;
762
+ border: none;
763
+ background: transparent;
764
+ color: #37352f;
765
+ border-radius: 4px;
766
+ cursor: pointer;
767
+ font-size: 12px;
768
+ font-weight: 500;
769
+ font-family: inherit;
770
+ transition: all 0.15s;
771
+ white-space: nowrap;
772
+ }
773
+
774
+ .bubble-dropdown-btn.has-label {
775
+ gap: 6px;
776
+ padding: 0 10px;
777
+ }
778
+
779
+ .bubble-dropdown-btn:hover {
780
+ background: rgba(55, 53, 47, 0.08);
781
+ }
782
+
783
+ .bubble-dropdown-btn svg {
784
+ width: 12px;
785
+ height: 12px;
786
+ stroke: currentColor;
787
+ stroke-width: 2;
788
+ fill: none;
789
+ }
790
+
791
+ .bubble-dropdown-btn__label {
792
+ font-size: 12px;
793
+ font-weight: 500;
794
+ line-height: 1;
795
+ }
796
+
797
+ .bubble-dropdown-menu {
798
+ position: absolute;
799
+ top: 100%;
800
+ left: 0;
801
+ margin-top: 4px;
802
+ min-width: 120px;
803
+ background: #fff;
804
+ border: 1px solid #e3e3e3;
805
+ border-radius: 6px;
806
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
807
+ padding: 4px;
808
+ opacity: 0;
809
+ visibility: hidden;
810
+ transform: translateY(-4px);
811
+ transition: all 0.15s;
812
+ z-index: 101;
813
+ }
814
+
815
+ .bubble-dropdown:hover .bubble-dropdown-menu,
816
+ .bubble-dropdown.is-open .bubble-dropdown-menu {
817
+ opacity: 1;
818
+ visibility: visible;
819
+ transform: translateY(0);
820
+ }
821
+
822
+ .bubble-dropdown-item {
823
+ display: flex;
824
+ align-items: center;
825
+ gap: 6px;
826
+ width: 100%;
827
+ padding: 6px 8px;
828
+ border: none;
829
+ background: transparent;
830
+ color: #37352f;
831
+ border-radius: 4px;
832
+ cursor: pointer;
833
+ font-size: 12px;
834
+ font-weight: 500;
835
+ font-family: inherit;
836
+ text-align: left;
837
+ transition: all 0.15s;
838
+ }
839
+
840
+ .bubble-dropdown-item:hover {
841
+ background: rgba(55, 53, 47, 0.08);
842
+ }
843
+
844
+ .bubble-dropdown-item.is-active {
845
+ background: var(--qxs-color-primary, #3D61E3);
846
+ color: #fff;
847
+ }
848
+
849
+ .bubble-dropdown-item svg {
850
+ width: 16px;
851
+ height: 16px;
852
+ stroke: currentColor;
853
+ stroke-width: 2;
854
+ fill: none;
855
+ }
856
+
857
+ .image-input {
858
+ display: none;
859
+ }
860
+
861
+ .table-grid-preview {
862
+ display: grid;
863
+ grid-template-columns: repeat(10, 18px);
864
+ gap: 2px;
865
+ padding: 8px;
866
+ }
867
+
868
+ .table-grid-preview .table-cell {
869
+ width: 18px;
870
+ height: 18px;
871
+ border: 1px solid #e3e3e3;
872
+ border-radius: 2px;
873
+ background: #fff;
874
+ cursor: pointer;
875
+ transition: all 0.1s;
876
+ }
877
+
878
+ .table-grid-preview .table-cell:hover {
879
+ background: rgba(30, 150, 252, 0.3);
880
+ border-color: var(--qxs-color-primary, #3D61E3);
881
+ }
882
+
883
+ .table-grid-preview .table-cell.selected {
884
+ background: rgba(30, 150, 252, 0.15);
885
+ border-color: rgba(30, 150, 252, 0.5);
886
+ }
887
+
888
+ .table-size-hint {
889
+ text-align: center;
890
+ padding: 4px 8px 6px;
891
+ font-size: 10px;
892
+ color: #8c8c8c;
893
+ }
894
+
895
+ .image-size-control {
896
+ display: flex;
897
+ align-items: center;
898
+ gap: 6px;
899
+ padding-left: 8px;
900
+ margin-left: 2px;
901
+ border-left: 1px solid #e3e3e3;
902
+ white-space: nowrap;
903
+ }
904
+
905
+ .image-size-label {
906
+ font-size: 12px;
907
+ color: #7a7f88;
908
+ }
909
+
910
+ .image-size-range {
911
+ width: 72px;
912
+ height: 26px;
913
+ padding: 0 8px;
914
+ border: 1px solid #d8dde6;
915
+ border-radius: 6px;
916
+ font-size: 12px;
917
+ color: #37352f;
918
+ background: #fff;
919
+ outline: none;
920
+ }
921
+
922
+ .image-size-range:focus {
923
+ border-color: var(--qxs-color-primary, #3D61E3);
924
+ }
925
+
926
+ .link-editor {
927
+ position: absolute;
928
+ z-index: 120;
929
+ display: grid;
930
+ gap: 8px;
931
+ min-width: 320px;
932
+ padding: 10px;
933
+ background: #fff;
934
+ border: 1px solid #e3e3e3;
935
+ border-radius: 10px;
936
+ box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
937
+ }
938
+
939
+ .link-editor__field {
940
+ display: grid;
941
+ gap: 4px;
942
+ }
943
+
944
+ .link-editor__label {
945
+ font-size: 12px;
946
+ color: #6b7280;
947
+ line-height: 1;
948
+ }
949
+
950
+ .link-editor__input {
951
+ min-width: 0;
952
+ height: 32px;
953
+ padding: 0 10px;
954
+ border: 1px solid #d8dde6;
955
+ border-radius: 8px;
956
+ outline: none;
957
+ font-size: 13px;
958
+ color: #37352f;
959
+ background: #fff;
960
+ }
961
+
962
+ .link-editor__input:focus {
963
+ border-color: var(--qxs-color-primary, #3D61E3);
964
+ }
965
+
966
+ .link-editor__actions {
967
+ display: flex;
968
+ align-items: center;
969
+ gap: 8px;
970
+ }
971
+
972
+ .link-editor__action {
973
+ height: 32px;
974
+ padding: 0 12px;
975
+ border: 1px solid #d8dde6;
976
+ border-radius: 8px;
977
+ background: #fff;
978
+ color: #4b5563;
979
+ font-size: 12px;
980
+ font-family: inherit;
981
+ cursor: pointer;
982
+ transition: all 0.15s ease;
983
+ white-space: nowrap;
984
+ }
985
+
986
+ .link-editor__action:hover {
987
+ border-color: #c3cad5;
988
+ background: #f8fafc;
989
+ }
990
+
991
+ .link-editor__action.primary {
992
+ border-color: var(--qxs-color-primary, #3D61E3);
993
+ background: var(--qxs-color-primary, #3D61E3);
994
+ color: #fff;
995
+ }
996
+
997
+ .link-editor__action.danger {
998
+ color: #f56c6c;
999
+ }
1000
+
1001
+ /* Image Toolbar */
1002
+ .image-toolbar {
1003
+ position: absolute;
1004
+ display: flex;
1005
+ align-items: center;
1006
+ gap: 2px;
1007
+ padding: 4px 6px;
1008
+ background: #fff;
1009
+ border: 1px solid #e3e3e3;
1010
+ border-radius: 6px;
1011
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
1012
+ z-index: 100;
1013
+ transform: translateX(-50%);
1014
+ }
1015
+
1016
+ .image-toolbar-btn {
1017
+ display: flex;
1018
+ align-items: center;
1019
+ justify-content: center;
1020
+ width: 28px;
1021
+ height: 28px;
1022
+ border: none;
1023
+ background: transparent;
1024
+ border-radius: 4px;
1025
+ cursor: pointer;
1026
+ color: #595959;
1027
+ transition: all 0.15s;
1028
+ }
1029
+
1030
+ .image-toolbar-btn:hover {
1031
+ background: #f5f5f5;
1032
+ color: var(--qxs-color-primary, #3D61E3);
1033
+ }
1034
+
1035
+ .image-toolbar-btn.danger:hover {
1036
+ background: #fff1f0;
1037
+ color: #ff4d4f;
1038
+ }
1039
+
1040
+ .image-toolbar-btn svg {
1041
+ width: 16px;
1042
+ height: 16px;
1043
+ stroke: currentColor;
1044
+ stroke-width: 2;
1045
+ fill: none;
1046
+ }
1047
+
1048
+ .image-toolbar-divider {
1049
+ width: 1px;
1050
+ height: 20px;
1051
+ background: #e3e3e3;
1052
+ margin: 0 4px;
1053
+ }
1054
+
1055
+ .image-control-label {
1056
+ display: inline-flex;
1057
+ align-items: center;
1058
+ padding: 0 4px;
1059
+ font-size: 12px;
1060
+ color: #909399;
1061
+ user-select: none;
1062
+ white-space: nowrap;
1063
+ }
1064
+
1065
+ /* Image More Menu */
1066
+ .image-more-menu {
1067
+ position: absolute;
1068
+ top: 100%;
1069
+ right: 0;
1070
+ margin-top: 4px;
1071
+ padding: 4px;
1072
+ background: #fff;
1073
+ border: 1px solid #e3e3e3;
1074
+ border-radius: 6px;
1075
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
1076
+ z-index: 101;
1077
+ min-width: 120px;
1078
+ }
1079
+
1080
+ .image-more-menu-item {
1081
+ display: flex;
1082
+ align-items: center;
1083
+ gap: 8px;
1084
+ padding: 8px 12px;
1085
+ border: none;
1086
+ background: transparent;
1087
+ width: 100%;
1088
+ text-align: left;
1089
+ font-size: 13px;
1090
+ color: #595959;
1091
+ border-radius: 4px;
1092
+ cursor: pointer;
1093
+ transition: all 0.15s;
1094
+ }
1095
+
1096
+ .image-more-menu-item:hover {
1097
+ background: #f5f5f5;
1098
+ color: var(--qxs-color-primary, #3D61E3);
1099
+ }
1100
+
1101
+ .image-more-menu-item svg {
1102
+ width: 14px;
1103
+ height: 14px;
1104
+ stroke: currentColor;
1105
+ stroke-width: 2;
1106
+ fill: none;
1107
+ }
1108
+
1109
+ /* Selected Image */
1110
+ .ProseMirror img.selected {
1111
+ outline: 2px solid var(--qxs-color-primary, #3D61E3);
1112
+ outline-offset: 2px;
1113
+ }
1114
+ `,L([C.property({type:String,attribute:"content"})],exports.QxsBlocksuiteEditor.prototype,"content",2),L([C.property({type:String,attribute:"model-value"})],exports.QxsBlocksuiteEditor.prototype,"model-value",2),L([C.property({type:String,attribute:"placeholder"})],exports.QxsBlocksuiteEditor.prototype,"placeholder",2),L([C.property({type:String,attribute:"toolbar-mode"})],exports.QxsBlocksuiteEditor.prototype,"toolbar-mode",2),L([C.property({attribute:"toolbar"})],exports.QxsBlocksuiteEditor.prototype,"toolbar",2),L([C.property({type:String,attribute:"toolbar-preset"})],exports.QxsBlocksuiteEditor.prototype,"toolbar-preset",2),L([C.property({attribute:"header-toolbar-labels"})],exports.QxsBlocksuiteEditor.prototype,"header-toolbar-labels",2),L([C.property({type:String,attribute:"header-always-visible"})],exports.QxsBlocksuiteEditor.prototype,"header-always-visible",2),L([C.property({type:String,attribute:"use-model"})],exports.QxsBlocksuiteEditor.prototype,"use-model",2),L([C.property({type:String,attribute:"readonly"})],exports.QxsBlocksuiteEditor.prototype,"readonly",2),L([C.property({type:String,attribute:"preview"})],exports.QxsBlocksuiteEditor.prototype,"preview",2),L([C.property({attribute:"editable"})],exports.QxsBlocksuiteEditor.prototype,"editable",2),L([C.property({type:String,attribute:"min-height"})],exports.QxsBlocksuiteEditor.prototype,"min-height",2),L([C.property({type:String,attribute:"max-height"})],exports.QxsBlocksuiteEditor.prototype,"max-height",2),L([C.property({type:String,attribute:"show-character-count"})],exports.QxsBlocksuiteEditor.prototype,"show-character-count",2),L([C.property({type:String,attribute:"toolbar-position"})],exports.QxsBlocksuiteEditor.prototype,"toolbar-position",2),L([C.property({type:String,attribute:"custom-styles"})],exports.QxsBlocksuiteEditor.prototype,"custom-styles",2),L([C.property({type:String,attribute:"content-format"})],exports.QxsBlocksuiteEditor.prototype,"content-format",2),L([C.property({type:Object,attribute:"deserialize-content"})],exports.QxsBlocksuiteEditor.prototype,"deserialize-content",2),L([C.property({type:Object,attribute:"serialize-content"})],exports.QxsBlocksuiteEditor.prototype,"serialize-content",2),L([C.property({type:Object,attribute:"upload-image"})],exports.QxsBlocksuiteEditor.prototype,"upload-image",2),L([C.state()],exports.QxsBlocksuiteEditor.prototype,"_editor",2),L([C.state()],exports.QxsBlocksuiteEditor.prototype,"_hoverRow",2),L([C.state()],exports.QxsBlocksuiteEditor.prototype,"_hoverCol",2),L([C.state()],exports.QxsBlocksuiteEditor.prototype,"_tableDropdownOpen",2),L([C.state()],exports.QxsBlocksuiteEditor.prototype,"_tableCellToolbar",2),L([C.state()],exports.QxsBlocksuiteEditor.prototype,"_imageToolbar",2),L([C.state()],exports.QxsBlocksuiteEditor.prototype,"_linkEditor",2),L([C.state()],exports.QxsBlocksuiteEditor.prototype,"_isEditorFocused",2),L([C.state()],exports.QxsBlocksuiteEditor.prototype,"_selectedImage",2),exports.QxsBlocksuiteEditor=L([S.safeCustomElement("qxs-blocksuite-editor")],exports.QxsBlocksuiteEditor);
1115
+ //# sourceMappingURL=blocksuite-editor.cjs.map