@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.
- package/README.md +11 -15
- package/es/base/define.mjs +2 -0
- package/es/base/define.mjs.map +1 -0
- package/es/base/uid.mjs +2 -0
- package/es/base/uid.mjs.map +1 -0
- package/es/data-chart.mjs +142 -0
- package/es/data-chart.mjs.map +1 -0
- package/es/editor/blocksuite-editor.mjs +1115 -0
- package/es/editor/blocksuite-editor.mjs.map +1 -0
- package/es/editor/content-format.mjs +2 -0
- package/es/editor/content-format.mjs.map +1 -0
- package/es/editor/index.mjs +2 -0
- package/es/editor/index.mjs.map +1 -0
- package/es/editor/toolbar.mjs +2 -0
- package/es/editor/toolbar.mjs.map +1 -0
- package/es/entry-data-chart.mjs +2 -0
- package/es/entry-data-chart.mjs.map +1 -0
- package/es/entry-editor.mjs +2 -0
- package/es/entry-editor.mjs.map +1 -0
- package/es/entry-file-upload.mjs +2 -0
- package/es/entry-file-upload.mjs.map +1 -0
- package/es/entry-fixed-action-bar.mjs +2 -0
- package/es/entry-fixed-action-bar.mjs.map +1 -0
- package/es/entry-icon.mjs +2 -0
- package/es/entry-icon.mjs.map +1 -0
- package/es/entry-image-upload.mjs +2 -0
- package/es/entry-image-upload.mjs.map +1 -0
- package/es/entry-photo-crop-tool.mjs +2 -0
- package/es/entry-photo-crop-tool.mjs.map +1 -0
- package/es/entry-subject.mjs +2 -0
- package/es/entry-subject.mjs.map +1 -0
- package/es/file-upload.mjs +157 -0
- package/es/file-upload.mjs.map +1 -0
- package/es/fixed-action-bar.mjs +39 -0
- package/es/fixed-action-bar.mjs.map +1 -0
- package/es/icon.mjs +20 -0
- package/es/icon.mjs.map +1 -0
- package/es/image-upload.mjs +333 -0
- package/es/image-upload.mjs.map +1 -0
- package/es/index.mjs +1 -1
- package/es/index.mjs.map +1 -1
- 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
- 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
- package/es/node_modules/.pnpm/marked@17.0.6/node_modules/marked/lib/marked.esm.mjs +2 -0
- package/es/node_modules/.pnpm/marked@17.0.6/node_modules/marked/lib/marked.esm.mjs.map +1 -0
- package/es/node_modules/.pnpm/turndown-plugin-gfm@1.0.2/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.es.mjs +2 -0
- 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
- package/es/node_modules/.pnpm/turndown@7.2.4/node_modules/turndown/lib/turndown.es.mjs +2 -0
- package/es/node_modules/.pnpm/turndown@7.2.4/node_modules/turndown/lib/turndown.es.mjs.map +1 -0
- package/es/package.json.mjs +1 -1
- package/es/photo-crop-tool.mjs +147 -0
- package/es/photo-crop-tool.mjs.map +1 -0
- package/es/src/alert/index.mjs +2 -0
- package/es/src/alert/index.mjs.map +1 -0
- package/es/src/alert/src/alert.mjs +2 -0
- package/es/src/alert/src/alert.mjs.map +1 -0
- package/es/src/components.mjs +1 -1
- package/es/src/data-chart/index.mjs +1 -1
- package/es/src/data-chart/index.mjs.map +1 -1
- package/es/src/dialog/src/dialog.mjs +2 -0
- package/es/src/dialog/src/dialog.mjs.map +1 -0
- package/es/src/feedback-plugin/index.mjs +2 -0
- package/es/src/feedback-plugin/index.mjs.map +1 -0
- package/es/src/file-upload/index.mjs +1 -1
- package/es/src/file-upload/index.mjs.map +1 -1
- package/es/src/image-upload/index.mjs +1 -1
- package/es/src/image-upload/index.mjs.map +1 -1
- package/es/src/make-installer.mjs +1 -1
- package/es/src/make-installer.mjs.map +1 -1
- package/es/src/message/src/message.mjs +2 -0
- package/es/src/message/src/message.mjs.map +1 -0
- package/es/src/photo-crop-tool/index.mjs +1 -1
- package/es/src/photo-crop-tool/index.mjs.map +1 -1
- package/es/src/tiny-mce-editor/src/tiny-mce-editor.vue.mjs +1 -1
- package/es/src/tiny-mce-editor/src/tiny-mce-editor.vue.mjs.map +1 -1
- package/es/src/ui/button/index.mjs +2 -0
- package/es/src/ui/button/index.mjs.map +1 -0
- package/es/src/ui/checkbox/index.mjs +2 -0
- package/es/src/ui/checkbox/index.mjs.map +1 -0
- package/es/src/ui/dialog/index.mjs +2 -0
- package/es/src/ui/dialog/index.mjs.map +1 -0
- package/es/src/ui/input/index.mjs +2 -0
- package/es/src/ui/input/index.mjs.map +1 -0
- package/es/src/ui/input-number/index.mjs +2 -0
- package/es/src/ui/input-number/index.mjs.map +1 -0
- package/es/src/ui/layout/index.mjs +2 -0
- package/es/src/ui/layout/index.mjs.map +1 -0
- package/es/src/ui/link/index.mjs +2 -0
- package/es/src/ui/link/index.mjs.map +1 -0
- package/es/src/ui/popover/index.mjs +2 -0
- package/es/src/ui/popover/index.mjs.map +1 -0
- package/es/src/ui/radio/index.mjs +2 -0
- package/es/src/ui/radio/index.mjs.map +1 -0
- package/es/src/ui/scrollbar/index.mjs +2 -0
- package/es/src/ui/scrollbar/index.mjs.map +1 -0
- package/es/src/ui/select/index.mjs +2 -0
- package/es/src/ui/select/index.mjs.map +1 -0
- package/es/src/ui/table/index.mjs +2 -0
- package/es/src/ui/table/index.mjs.map +1 -0
- package/es/src/ui/tag/index.mjs +2 -0
- package/es/src/ui/tag/index.mjs.map +1 -0
- package/es/src/wc-bridge.mjs +2 -0
- package/es/src/wc-bridge.mjs.map +1 -0
- package/es/subject/action.mjs +171 -0
- package/es/subject/action.mjs.map +1 -0
- package/es/subject/blank-fill.mjs +385 -0
- package/es/subject/blank-fill.mjs.map +1 -0
- package/es/subject/draft.mjs +2 -0
- package/es/subject/draft.mjs.map +1 -0
- package/es/subject/layout.mjs +21 -0
- package/es/subject/layout.mjs.map +1 -0
- package/es/subject/page-end.mjs +28 -0
- package/es/subject/page-end.mjs.map +1 -0
- package/es/subject/pagination.mjs +2 -0
- package/es/subject/pagination.mjs.map +1 -0
- package/es/subject/runtime.mjs +2 -0
- package/es/subject/runtime.mjs.map +1 -0
- package/es/subject/scale.mjs +267 -0
- package/es/subject/scale.mjs.map +1 -0
- package/es/subject/shared-methods.mjs +2 -0
- package/es/subject/shared-methods.mjs.map +1 -0
- package/es/subject/shared-styles.mjs +75 -0
- package/es/subject/shared-styles.mjs.map +1 -0
- package/es/subject/single.mjs +600 -0
- package/es/subject/single.mjs.map +1 -0
- package/es/subject/sort-controller.mjs +2 -0
- package/es/subject/sort-controller.mjs.map +1 -0
- package/es/subject/sortable.mjs +30 -0
- package/es/subject/sortable.mjs.map +1 -0
- package/es/subject/sorting-card.mjs +52 -0
- package/es/subject/sorting-card.mjs.map +1 -0
- package/es/subject/text-fill.mjs +395 -0
- package/es/subject/text-fill.mjs.map +1 -0
- package/es/subject/title-prefix.mjs +2 -0
- package/es/subject/title-prefix.mjs.map +1 -0
- package/es/subject/types.mjs +2 -0
- package/es/subject/types.mjs.map +1 -0
- package/lib/base/define.cjs +2 -0
- package/lib/base/define.cjs.map +1 -0
- package/lib/base/uid.cjs +2 -0
- package/lib/base/uid.cjs.map +1 -0
- package/lib/data-chart.cjs +142 -0
- package/lib/data-chart.cjs.map +1 -0
- package/lib/editor/blocksuite-editor.cjs +1115 -0
- package/lib/editor/blocksuite-editor.cjs.map +1 -0
- package/lib/editor/content-format.cjs +2 -0
- package/lib/editor/content-format.cjs.map +1 -0
- package/lib/editor/index.cjs +2 -0
- package/lib/editor/index.cjs.map +1 -0
- package/lib/editor/toolbar.cjs +2 -0
- package/lib/editor/toolbar.cjs.map +1 -0
- package/lib/entry-data-chart.cjs +2 -0
- package/lib/entry-data-chart.cjs.map +1 -0
- package/lib/entry-editor.cjs +2 -0
- package/lib/entry-editor.cjs.map +1 -0
- package/lib/entry-file-upload.cjs +2 -0
- package/lib/entry-file-upload.cjs.map +1 -0
- package/lib/entry-fixed-action-bar.cjs +2 -0
- package/lib/entry-fixed-action-bar.cjs.map +1 -0
- package/lib/entry-icon.cjs +2 -0
- package/lib/entry-icon.cjs.map +1 -0
- package/lib/entry-image-upload.cjs +2 -0
- package/lib/entry-image-upload.cjs.map +1 -0
- package/lib/entry-photo-crop-tool.cjs +2 -0
- package/lib/entry-photo-crop-tool.cjs.map +1 -0
- package/lib/entry-subject.cjs +2 -0
- package/lib/entry-subject.cjs.map +1 -0
- package/lib/file-upload.cjs +157 -0
- package/lib/file-upload.cjs.map +1 -0
- package/lib/fixed-action-bar.cjs +39 -0
- package/lib/fixed-action-bar.cjs.map +1 -0
- package/lib/icon.cjs +20 -0
- package/lib/icon.cjs.map +1 -0
- package/lib/image-upload.cjs +333 -0
- package/lib/image-upload.cjs.map +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- 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
- 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
- package/lib/node_modules/.pnpm/marked@17.0.6/node_modules/marked/lib/marked.esm.cjs +2 -0
- package/lib/node_modules/.pnpm/marked@17.0.6/node_modules/marked/lib/marked.esm.cjs.map +1 -0
- package/lib/node_modules/.pnpm/turndown-plugin-gfm@1.0.2/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.es.cjs +2 -0
- 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
- package/lib/node_modules/.pnpm/turndown@7.2.4/node_modules/turndown/lib/turndown.es.cjs +2 -0
- package/lib/node_modules/.pnpm/turndown@7.2.4/node_modules/turndown/lib/turndown.es.cjs.map +1 -0
- package/lib/package.json.cjs +1 -1
- package/lib/photo-crop-tool.cjs +147 -0
- package/lib/photo-crop-tool.cjs.map +1 -0
- package/lib/src/alert/index.cjs +2 -0
- package/lib/src/alert/index.cjs.map +1 -0
- package/lib/src/alert/src/alert.cjs +2 -0
- package/lib/src/alert/src/alert.cjs.map +1 -0
- package/lib/src/components.cjs +1 -1
- package/lib/src/data-chart/index.cjs +1 -1
- package/lib/src/data-chart/index.cjs.map +1 -1
- package/lib/src/dialog/src/dialog.cjs +2 -0
- package/lib/src/dialog/src/dialog.cjs.map +1 -0
- package/lib/src/feedback-plugin/index.cjs +2 -0
- package/lib/src/feedback-plugin/index.cjs.map +1 -0
- package/lib/src/file-upload/index.cjs +1 -1
- package/lib/src/file-upload/index.cjs.map +1 -1
- package/lib/src/image-upload/index.cjs +1 -1
- package/lib/src/image-upload/index.cjs.map +1 -1
- package/lib/src/make-installer.cjs +1 -1
- package/lib/src/make-installer.cjs.map +1 -1
- package/lib/src/message/src/message.cjs +2 -0
- package/lib/src/message/src/message.cjs.map +1 -0
- package/lib/src/photo-crop-tool/index.cjs +1 -1
- package/lib/src/photo-crop-tool/index.cjs.map +1 -1
- package/lib/src/tiny-mce-editor/src/tiny-mce-editor.vue.cjs +1 -1
- package/lib/src/tiny-mce-editor/src/tiny-mce-editor.vue.cjs.map +1 -1
- package/lib/src/ui/button/index.cjs +2 -0
- package/lib/src/ui/button/index.cjs.map +1 -0
- package/lib/src/ui/checkbox/index.cjs +2 -0
- package/lib/src/ui/checkbox/index.cjs.map +1 -0
- package/lib/src/ui/dialog/index.cjs +2 -0
- package/lib/src/ui/dialog/index.cjs.map +1 -0
- package/lib/src/ui/input/index.cjs +2 -0
- package/lib/src/ui/input/index.cjs.map +1 -0
- package/lib/src/ui/input-number/index.cjs +2 -0
- package/lib/src/ui/input-number/index.cjs.map +1 -0
- package/lib/src/ui/layout/index.cjs +2 -0
- package/lib/src/ui/layout/index.cjs.map +1 -0
- package/lib/src/ui/link/index.cjs +2 -0
- package/lib/src/ui/link/index.cjs.map +1 -0
- package/lib/src/ui/popover/index.cjs +2 -0
- package/lib/src/ui/popover/index.cjs.map +1 -0
- package/lib/src/ui/radio/index.cjs +2 -0
- package/lib/src/ui/radio/index.cjs.map +1 -0
- package/lib/src/ui/scrollbar/index.cjs +2 -0
- package/lib/src/ui/scrollbar/index.cjs.map +1 -0
- package/lib/src/ui/select/index.cjs +2 -0
- package/lib/src/ui/select/index.cjs.map +1 -0
- package/lib/src/ui/table/index.cjs +2 -0
- package/lib/src/ui/table/index.cjs.map +1 -0
- package/lib/src/ui/tag/index.cjs +2 -0
- package/lib/src/ui/tag/index.cjs.map +1 -0
- package/lib/src/wc-bridge.cjs +2 -0
- package/lib/src/wc-bridge.cjs.map +1 -0
- package/lib/subject/action.cjs +171 -0
- package/lib/subject/action.cjs.map +1 -0
- package/lib/subject/blank-fill.cjs +385 -0
- package/lib/subject/blank-fill.cjs.map +1 -0
- package/lib/subject/draft.cjs +2 -0
- package/lib/subject/draft.cjs.map +1 -0
- package/lib/subject/layout.cjs +21 -0
- package/lib/subject/layout.cjs.map +1 -0
- package/lib/subject/page-end.cjs +28 -0
- package/lib/subject/page-end.cjs.map +1 -0
- package/lib/subject/pagination.cjs +2 -0
- package/lib/subject/pagination.cjs.map +1 -0
- package/lib/subject/runtime.cjs +2 -0
- package/lib/subject/runtime.cjs.map +1 -0
- package/lib/subject/scale.cjs +267 -0
- package/lib/subject/scale.cjs.map +1 -0
- package/lib/subject/shared-methods.cjs +2 -0
- package/lib/subject/shared-methods.cjs.map +1 -0
- package/lib/subject/shared-styles.cjs +75 -0
- package/lib/subject/shared-styles.cjs.map +1 -0
- package/lib/subject/single.cjs +600 -0
- package/lib/subject/single.cjs.map +1 -0
- package/lib/subject/sort-controller.cjs +2 -0
- package/lib/subject/sort-controller.cjs.map +1 -0
- package/lib/subject/sortable.cjs +30 -0
- package/lib/subject/sortable.cjs.map +1 -0
- package/lib/subject/sorting-card.cjs +52 -0
- package/lib/subject/sorting-card.cjs.map +1 -0
- package/lib/subject/text-fill.cjs +395 -0
- package/lib/subject/text-fill.cjs.map +1 -0
- package/lib/subject/title-prefix.cjs +2 -0
- package/lib/subject/title-prefix.cjs.map +1 -0
- package/lib/subject/types.cjs +2 -0
- package/lib/subject/types.cjs.map +1 -0
- package/package.json +94 -41
- package/types/base/define.d.ts +1 -0
- package/types/base/uid.d.ts +1 -0
- package/types/data-chart.d.ts +65 -0
- package/types/editor/blocksuite-editor.d.ts +191 -0
- package/types/editor/content-format.d.ts +4 -0
- package/types/editor/index.d.ts +4 -0
- package/types/editor/toolbar.d.ts +6 -0
- package/types/editor/types.d.ts +42 -0
- package/types/entry-data-chart.d.ts +1 -0
- package/types/entry-editor.d.ts +2 -0
- package/types/entry-file-upload.d.ts +1 -0
- package/types/entry-fixed-action-bar.d.ts +1 -0
- package/types/entry-icon.d.ts +2 -0
- package/types/entry-image-upload.d.ts +1 -0
- package/types/entry-photo-crop-tool.d.ts +1 -0
- package/types/entry-subject.d.ts +2 -0
- package/types/file-upload.d.ts +48 -0
- package/types/fixed-action-bar.d.ts +25 -0
- package/types/icon.d.ts +30 -0
- package/types/image-upload.d.ts +68 -0
- package/types/index.d.ts +21 -6
- package/types/photo-crop-tool.d.ts +43 -0
- package/types/src/alert/index.d.ts +66 -0
- package/types/src/alert/index.d.ts.map +1 -0
- package/types/src/alert/src/alert.d.ts +73 -0
- package/types/src/alert/src/alert.d.ts.map +1 -0
- package/types/src/components.d.ts +4 -6
- package/types/src/components.d.ts.map +1 -1
- package/types/src/data-chart/index.d.ts +11 -27
- package/types/src/data-chart/index.d.ts.map +1 -1
- package/types/src/dialog/index.d.ts +3 -0
- package/types/src/dialog/index.d.ts.map +1 -0
- package/types/src/dialog/src/dialog.d.ts +25 -0
- package/types/src/dialog/src/dialog.d.ts.map +1 -0
- package/types/src/feedback-plugin/index.d.ts +9 -0
- package/types/src/feedback-plugin/index.d.ts.map +1 -0
- package/types/src/file-upload/index.d.ts +10 -28
- package/types/src/file-upload/index.d.ts.map +1 -1
- package/types/src/icon/index.d.ts +3 -3
- package/types/src/icon/src/icon.d.ts +3 -3
- package/types/src/image-upload/index.d.ts +10 -46
- package/types/src/image-upload/index.d.ts.map +1 -1
- package/types/src/make-installer.d.ts +1 -4
- package/types/src/make-installer.d.ts.map +1 -1
- package/types/src/message/index.d.ts +3 -0
- package/types/src/message/index.d.ts.map +1 -0
- package/types/src/message/src/message.d.ts +21 -0
- package/types/src/message/src/message.d.ts.map +1 -0
- package/types/src/message/src/toaster.vue.d.ts +3 -0
- package/types/src/message/src/toaster.vue.d.ts.map +1 -0
- package/types/src/photo-crop-tool/index.d.ts +9 -52
- package/types/src/photo-crop-tool/index.d.ts.map +1 -1
- package/types/src/subject-action/src/subject-action.vue.d.ts.map +1 -1
- package/types/src/subject-layout/index.d.ts +2 -2
- package/types/src/subject-layout/src/subject-layout.vue.d.ts +2 -2
- package/types/src/subject-layout/src/subject-layout.vue.d.ts.map +1 -1
- package/types/src/subject-list/src/components/subject-blank-fill.vue.d.ts.map +1 -1
- package/types/src/subject-list/src/components/subject-scale.vue.d.ts.map +1 -1
- package/types/src/subject-list/src/components/subject-single.vue.d.ts.map +1 -1
- package/types/src/subject-list/src/components/subject-text-fill.vue.d.ts.map +1 -1
- package/types/src/subject-list/src/subject-list.vue.d.ts.map +1 -1
- package/types/src/subject-type/src/subject-type.vue.d.ts.map +1 -1
- package/types/src/ui/button/index.d.ts +96 -0
- package/types/src/ui/button/index.d.ts.map +1 -0
- package/types/src/ui/checkbox/index.d.ts +111 -0
- package/types/src/ui/checkbox/index.d.ts.map +1 -0
- package/types/src/ui/dialog/index.d.ts +134 -0
- package/types/src/ui/dialog/index.d.ts.map +1 -0
- package/types/src/ui/index.d.ts +16 -0
- package/types/src/ui/index.d.ts.map +1 -0
- package/types/src/ui/input/index.d.ts +132 -0
- package/types/src/ui/input/index.d.ts.map +1 -0
- package/types/src/ui/input-number/index.d.ts +106 -0
- package/types/src/ui/input-number/index.d.ts.map +1 -0
- package/types/src/ui/layout/index.d.ts +373 -0
- package/types/src/ui/layout/index.d.ts.map +1 -0
- package/types/src/ui/link/index.d.ts +57 -0
- package/types/src/ui/link/index.d.ts.map +1 -0
- package/types/src/ui/popover/index.d.ts +89 -0
- package/types/src/ui/popover/index.d.ts.map +1 -0
- package/types/src/ui/radio/index.d.ts +84 -0
- package/types/src/ui/radio/index.d.ts.map +1 -0
- package/types/src/ui/scrollbar/index.d.ts +35 -0
- package/types/src/ui/scrollbar/index.d.ts.map +1 -0
- package/types/src/ui/select/index.d.ts +113 -0
- package/types/src/ui/select/index.d.ts.map +1 -0
- package/types/src/ui/table/index.d.ts +152 -0
- package/types/src/ui/table/index.d.ts.map +1 -0
- package/types/src/ui/tag/index.d.ts +69 -0
- package/types/src/ui/tag/index.d.ts.map +1 -0
- package/types/src/wc-bridge.d.ts +23 -0
- package/types/src/wc-bridge.d.ts.map +1 -0
- package/types/subject/action.d.ts +37 -0
- package/types/subject/blank-fill.d.ts +79 -0
- package/types/subject/draft.d.ts +63 -0
- package/types/subject/index.d.ts +13 -0
- package/types/subject/layout.d.ts +7 -0
- package/types/subject/page-end.d.ts +16 -0
- package/types/subject/pagination.d.ts +23 -0
- package/types/subject/runtime.d.ts +12 -0
- package/types/subject/scale.d.ts +55 -0
- package/types/subject/shared-methods.d.ts +8 -0
- package/types/subject/shared-styles.d.ts +5 -0
- package/types/subject/single.d.ts +288 -0
- package/types/subject/sort-controller.d.ts +3 -0
- package/types/subject/sortable.d.ts +19 -0
- package/types/subject/sorting-card.d.ts +2 -0
- package/types/subject/text-fill.d.ts +88 -0
- package/types/subject/title-prefix.d.ts +2 -0
- package/types/subject/types.d.ts +12 -0
- package/types/tsconfig.tsbuildinfo +1 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -2
- package/es/_virtual/_plugin-vue_export-helper.mjs.map +0 -1
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -2
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs.map +0 -1
- package/es/src/data-chart/src/analyze.mjs +0 -2
- package/es/src/data-chart/src/analyze.mjs.map +0 -1
- package/es/src/data-chart/src/components/area.vue.mjs +0 -2
- package/es/src/data-chart/src/components/area.vue.mjs.map +0 -1
- package/es/src/data-chart/src/components/area.vue2.mjs +0 -2
- package/es/src/data-chart/src/components/area.vue2.mjs.map +0 -1
- package/es/src/data-chart/src/components/area.vue3.mjs +0 -2
- package/es/src/data-chart/src/components/area.vue3.mjs.map +0 -1
- package/es/src/data-chart/src/components/bar.vue.mjs +0 -2
- package/es/src/data-chart/src/components/bar.vue.mjs.map +0 -1
- package/es/src/data-chart/src/components/bar.vue2.mjs +0 -2
- package/es/src/data-chart/src/components/bar.vue2.mjs.map +0 -1
- package/es/src/data-chart/src/components/bar.vue3.mjs +0 -2
- package/es/src/data-chart/src/components/bar.vue3.mjs.map +0 -1
- package/es/src/data-chart/src/components/card.vue.mjs +0 -2
- package/es/src/data-chart/src/components/card.vue.mjs.map +0 -1
- package/es/src/data-chart/src/components/card.vue2.mjs +0 -2
- package/es/src/data-chart/src/components/card.vue2.mjs.map +0 -1
- package/es/src/data-chart/src/components/card.vue3.mjs +0 -2
- package/es/src/data-chart/src/components/card.vue3.mjs.map +0 -1
- package/es/src/data-chart/src/components/data-chart-card-bg-left.svg.mjs +0 -2
- package/es/src/data-chart/src/components/data-chart-card-bg-left.svg.mjs.map +0 -1
- package/es/src/data-chart/src/components/data-chart-card-bg-right.svg.mjs +0 -2
- package/es/src/data-chart/src/components/data-chart-card-bg-right.svg.mjs.map +0 -1
- package/es/src/data-chart/src/components/empty.svg.mjs +0 -2
- package/es/src/data-chart/src/components/empty.svg.mjs.map +0 -1
- package/es/src/data-chart/src/components/empty.vue.mjs +0 -2
- package/es/src/data-chart/src/components/empty.vue.mjs.map +0 -1
- package/es/src/data-chart/src/components/empty.vue2.mjs +0 -2
- package/es/src/data-chart/src/components/empty.vue2.mjs.map +0 -1
- package/es/src/data-chart/src/components/funnel.vue.mjs +0 -2
- package/es/src/data-chart/src/components/funnel.vue.mjs.map +0 -1
- package/es/src/data-chart/src/components/funnel.vue2.mjs +0 -2
- package/es/src/data-chart/src/components/funnel.vue2.mjs.map +0 -1
- package/es/src/data-chart/src/components/funnel.vue3.mjs +0 -2
- package/es/src/data-chart/src/components/funnel.vue3.mjs.map +0 -1
- package/es/src/data-chart/src/components/line.vue.mjs +0 -2
- package/es/src/data-chart/src/components/line.vue.mjs.map +0 -1
- package/es/src/data-chart/src/components/line.vue2.mjs +0 -2
- package/es/src/data-chart/src/components/line.vue2.mjs.map +0 -1
- package/es/src/data-chart/src/components/line.vue3.mjs +0 -2
- package/es/src/data-chart/src/components/line.vue3.mjs.map +0 -1
- package/es/src/data-chart/src/components/pie.vue.mjs +0 -2
- package/es/src/data-chart/src/components/pie.vue.mjs.map +0 -1
- package/es/src/data-chart/src/components/pie.vue2.mjs +0 -2
- package/es/src/data-chart/src/components/pie.vue2.mjs.map +0 -1
- package/es/src/data-chart/src/components/pie.vue3.mjs +0 -2
- package/es/src/data-chart/src/components/pie.vue3.mjs.map +0 -1
- package/es/src/data-chart/src/components/radar.vue.mjs +0 -2
- package/es/src/data-chart/src/components/radar.vue.mjs.map +0 -1
- package/es/src/data-chart/src/components/radar.vue2.mjs +0 -2
- package/es/src/data-chart/src/components/radar.vue2.mjs.map +0 -1
- package/es/src/data-chart/src/components/radar.vue3.mjs +0 -2
- package/es/src/data-chart/src/components/radar.vue3.mjs.map +0 -1
- package/es/src/data-chart/src/components/scatter-simple.vue.mjs +0 -2
- package/es/src/data-chart/src/components/scatter-simple.vue.mjs.map +0 -1
- package/es/src/data-chart/src/components/scatter-simple.vue2.mjs +0 -2
- package/es/src/data-chart/src/components/scatter-simple.vue2.mjs.map +0 -1
- package/es/src/data-chart/src/components/scatter-simple.vue3.mjs +0 -2
- package/es/src/data-chart/src/components/scatter-simple.vue3.mjs.map +0 -1
- package/es/src/data-chart/src/components/scatter.vue.mjs +0 -2
- package/es/src/data-chart/src/components/scatter.vue.mjs.map +0 -1
- package/es/src/data-chart/src/components/scatter.vue2.mjs +0 -2
- package/es/src/data-chart/src/components/scatter.vue2.mjs.map +0 -1
- package/es/src/data-chart/src/components/scatter.vue3.mjs +0 -2
- package/es/src/data-chart/src/components/scatter.vue3.mjs.map +0 -1
- package/es/src/data-chart/src/components/table.vue.mjs +0 -2
- package/es/src/data-chart/src/components/table.vue.mjs.map +0 -1
- package/es/src/data-chart/src/components/table.vue2.mjs +0 -2
- package/es/src/data-chart/src/components/table.vue2.mjs.map +0 -1
- package/es/src/data-chart/src/data-chart.vue.mjs +0 -2
- package/es/src/data-chart/src/data-chart.vue.mjs.map +0 -1
- package/es/src/data-chart/src/data-chart.vue2.mjs +0 -2
- package/es/src/data-chart/src/data-chart.vue2.mjs.map +0 -1
- package/es/src/data-chart/src/utils/config.mjs +0 -2
- package/es/src/data-chart/src/utils/config.mjs.map +0 -1
- package/es/src/data-chart/src/utils/injectionKeys.mjs +0 -2
- package/es/src/data-chart/src/utils/injectionKeys.mjs.map +0 -1
- package/es/src/data-chart/src/utils/mapData.mjs +0 -2
- package/es/src/data-chart/src/utils/mapData.mjs.map +0 -1
- package/es/src/data-chart/src/utils/safe-eval.mjs +0 -2
- package/es/src/data-chart/src/utils/safe-eval.mjs.map +0 -1
- package/es/src/data-chart/src/utils/types.mjs +0 -2
- package/es/src/data-chart/src/utils/types.mjs.map +0 -1
- package/es/src/data-chart/src/utils/useCharts.mjs +0 -2
- package/es/src/data-chart/src/utils/useCharts.mjs.map +0 -1
- package/es/src/file-upload/src/file-upload.vue.mjs +0 -2
- package/es/src/file-upload/src/file-upload.vue.mjs.map +0 -1
- package/es/src/file-upload/src/file-upload.vue2.mjs +0 -2
- package/es/src/file-upload/src/file-upload.vue2.mjs.map +0 -1
- package/es/src/fixed-action-bar/index.mjs +0 -2
- package/es/src/fixed-action-bar/index.mjs.map +0 -1
- package/es/src/fixed-action-bar/src/fixed-action-bar.vue.mjs +0 -2
- package/es/src/fixed-action-bar/src/fixed-action-bar.vue.mjs.map +0 -1
- package/es/src/fixed-action-bar/src/fixed-action-bar.vue2.mjs +0 -2
- package/es/src/fixed-action-bar/src/fixed-action-bar.vue2.mjs.map +0 -1
- package/es/src/image-upload/src/image-upload.vue.mjs +0 -2
- package/es/src/image-upload/src/image-upload.vue.mjs.map +0 -1
- package/es/src/image-upload/src/image-upload.vue2.mjs +0 -2
- package/es/src/image-upload/src/image-upload.vue2.mjs.map +0 -1
- package/es/src/photo-crop-tool/src/composables.mjs +0 -2
- package/es/src/photo-crop-tool/src/composables.mjs.map +0 -1
- package/es/src/photo-crop-tool/src/photo-crop-tool.vue.mjs +0 -2
- package/es/src/photo-crop-tool/src/photo-crop-tool.vue.mjs.map +0 -1
- package/es/src/photo-crop-tool/src/photo-crop-tool.vue2.mjs +0 -2
- package/es/src/photo-crop-tool/src/photo-crop-tool.vue2.mjs.map +0 -1
- package/es/src/subject-action/index.mjs +0 -2
- package/es/src/subject-action/index.mjs.map +0 -1
- package/es/src/subject-action/src/subject-action.vue.mjs +0 -2
- package/es/src/subject-action/src/subject-action.vue.mjs.map +0 -1
- package/es/src/subject-action/src/subject-action.vue2.mjs +0 -2
- package/es/src/subject-action/src/subject-action.vue2.mjs.map +0 -1
- package/es/src/subject-layout/index.mjs +0 -2
- package/es/src/subject-layout/index.mjs.map +0 -1
- package/es/src/subject-layout/src/subject-layout.vue.mjs +0 -2
- package/es/src/subject-layout/src/subject-layout.vue.mjs.map +0 -1
- package/es/src/subject-layout/src/subject-layout.vue2.mjs +0 -2
- package/es/src/subject-layout/src/subject-layout.vue2.mjs.map +0 -1
- package/es/src/subject-list/index.mjs +0 -2
- package/es/src/subject-list/index.mjs.map +0 -1
- package/es/src/subject-list/src/components/SubjectPageEnd.vue.mjs +0 -2
- package/es/src/subject-list/src/components/SubjectPageEnd.vue.mjs.map +0 -1
- package/es/src/subject-list/src/components/SubjectPageEnd.vue2.mjs +0 -2
- package/es/src/subject-list/src/components/SubjectPageEnd.vue2.mjs.map +0 -1
- package/es/src/subject-list/src/components/SubjectRichText.vue.mjs +0 -2
- package/es/src/subject-list/src/components/SubjectRichText.vue.mjs.map +0 -1
- package/es/src/subject-list/src/components/SubjectRichText.vue2.mjs +0 -2
- package/es/src/subject-list/src/components/SubjectRichText.vue2.mjs.map +0 -1
- package/es/src/subject-list/src/components/subject-blank-fill.vue.mjs +0 -2
- package/es/src/subject-list/src/components/subject-blank-fill.vue.mjs.map +0 -1
- package/es/src/subject-list/src/components/subject-blank-fill.vue2.mjs +0 -2
- package/es/src/subject-list/src/components/subject-blank-fill.vue2.mjs.map +0 -1
- package/es/src/subject-list/src/components/subject-scale.vue.mjs +0 -2
- package/es/src/subject-list/src/components/subject-scale.vue.mjs.map +0 -1
- package/es/src/subject-list/src/components/subject-scale.vue2.mjs +0 -2
- package/es/src/subject-list/src/components/subject-scale.vue2.mjs.map +0 -1
- package/es/src/subject-list/src/components/subject-single.vue.mjs +0 -2
- package/es/src/subject-list/src/components/subject-single.vue.mjs.map +0 -1
- package/es/src/subject-list/src/components/subject-single.vue2.mjs +0 -2
- package/es/src/subject-list/src/components/subject-single.vue2.mjs.map +0 -1
- package/es/src/subject-list/src/components/subject-text-fill.vue.mjs +0 -2
- package/es/src/subject-list/src/components/subject-text-fill.vue.mjs.map +0 -1
- package/es/src/subject-list/src/components/subject-text-fill.vue2.mjs +0 -2
- package/es/src/subject-list/src/components/subject-text-fill.vue2.mjs.map +0 -1
- package/es/src/subject-list/src/subject-list.vue.mjs +0 -2
- package/es/src/subject-list/src/subject-list.vue.mjs.map +0 -1
- package/es/src/subject-list/src/subject-list.vue2.mjs +0 -2
- package/es/src/subject-list/src/subject-list.vue2.mjs.map +0 -1
- package/es/src/subject-type/index.mjs +0 -2
- package/es/src/subject-type/index.mjs.map +0 -1
- package/es/src/subject-type/src/subject-type.vue.mjs +0 -2
- package/es/src/subject-type/src/subject-type.vue.mjs.map +0 -1
- package/es/src/subject-type/src/subject-type.vue2.mjs +0 -2
- package/es/src/subject-type/src/subject-type.vue2.mjs.map +0 -1
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -2
- package/lib/_virtual/_plugin-vue_export-helper.cjs.map +0 -1
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.cjs +0 -2
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.cjs.map +0 -1
- package/lib/src/data-chart/src/analyze.cjs +0 -2
- package/lib/src/data-chart/src/analyze.cjs.map +0 -1
- package/lib/src/data-chart/src/components/area.vue.cjs +0 -2
- package/lib/src/data-chart/src/components/area.vue.cjs.map +0 -1
- package/lib/src/data-chart/src/components/area.vue2.cjs +0 -2
- package/lib/src/data-chart/src/components/area.vue2.cjs.map +0 -1
- package/lib/src/data-chart/src/components/area.vue3.cjs +0 -2
- package/lib/src/data-chart/src/components/area.vue3.cjs.map +0 -1
- package/lib/src/data-chart/src/components/bar.vue.cjs +0 -2
- package/lib/src/data-chart/src/components/bar.vue.cjs.map +0 -1
- package/lib/src/data-chart/src/components/bar.vue2.cjs +0 -2
- package/lib/src/data-chart/src/components/bar.vue2.cjs.map +0 -1
- package/lib/src/data-chart/src/components/bar.vue3.cjs +0 -2
- package/lib/src/data-chart/src/components/bar.vue3.cjs.map +0 -1
- package/lib/src/data-chart/src/components/card.vue.cjs +0 -2
- package/lib/src/data-chart/src/components/card.vue.cjs.map +0 -1
- package/lib/src/data-chart/src/components/card.vue2.cjs +0 -2
- package/lib/src/data-chart/src/components/card.vue2.cjs.map +0 -1
- package/lib/src/data-chart/src/components/card.vue3.cjs +0 -2
- package/lib/src/data-chart/src/components/card.vue3.cjs.map +0 -1
- package/lib/src/data-chart/src/components/data-chart-card-bg-left.svg.cjs +0 -2
- package/lib/src/data-chart/src/components/data-chart-card-bg-left.svg.cjs.map +0 -1
- package/lib/src/data-chart/src/components/data-chart-card-bg-right.svg.cjs +0 -2
- package/lib/src/data-chart/src/components/data-chart-card-bg-right.svg.cjs.map +0 -1
- package/lib/src/data-chart/src/components/empty.svg.cjs +0 -2
- package/lib/src/data-chart/src/components/empty.svg.cjs.map +0 -1
- package/lib/src/data-chart/src/components/empty.vue.cjs +0 -2
- package/lib/src/data-chart/src/components/empty.vue.cjs.map +0 -1
- package/lib/src/data-chart/src/components/empty.vue2.cjs +0 -2
- package/lib/src/data-chart/src/components/empty.vue2.cjs.map +0 -1
- package/lib/src/data-chart/src/components/funnel.vue.cjs +0 -2
- package/lib/src/data-chart/src/components/funnel.vue.cjs.map +0 -1
- package/lib/src/data-chart/src/components/funnel.vue2.cjs +0 -2
- package/lib/src/data-chart/src/components/funnel.vue2.cjs.map +0 -1
- package/lib/src/data-chart/src/components/funnel.vue3.cjs +0 -2
- package/lib/src/data-chart/src/components/funnel.vue3.cjs.map +0 -1
- package/lib/src/data-chart/src/components/line.vue.cjs +0 -2
- package/lib/src/data-chart/src/components/line.vue.cjs.map +0 -1
- package/lib/src/data-chart/src/components/line.vue2.cjs +0 -2
- package/lib/src/data-chart/src/components/line.vue2.cjs.map +0 -1
- package/lib/src/data-chart/src/components/line.vue3.cjs +0 -2
- package/lib/src/data-chart/src/components/line.vue3.cjs.map +0 -1
- package/lib/src/data-chart/src/components/pie.vue.cjs +0 -2
- package/lib/src/data-chart/src/components/pie.vue.cjs.map +0 -1
- package/lib/src/data-chart/src/components/pie.vue2.cjs +0 -2
- package/lib/src/data-chart/src/components/pie.vue2.cjs.map +0 -1
- package/lib/src/data-chart/src/components/pie.vue3.cjs +0 -2
- package/lib/src/data-chart/src/components/pie.vue3.cjs.map +0 -1
- package/lib/src/data-chart/src/components/radar.vue.cjs +0 -2
- package/lib/src/data-chart/src/components/radar.vue.cjs.map +0 -1
- package/lib/src/data-chart/src/components/radar.vue2.cjs +0 -2
- package/lib/src/data-chart/src/components/radar.vue2.cjs.map +0 -1
- package/lib/src/data-chart/src/components/radar.vue3.cjs +0 -2
- package/lib/src/data-chart/src/components/radar.vue3.cjs.map +0 -1
- package/lib/src/data-chart/src/components/scatter-simple.vue.cjs +0 -2
- package/lib/src/data-chart/src/components/scatter-simple.vue.cjs.map +0 -1
- package/lib/src/data-chart/src/components/scatter-simple.vue2.cjs +0 -2
- package/lib/src/data-chart/src/components/scatter-simple.vue2.cjs.map +0 -1
- package/lib/src/data-chart/src/components/scatter-simple.vue3.cjs +0 -2
- package/lib/src/data-chart/src/components/scatter-simple.vue3.cjs.map +0 -1
- package/lib/src/data-chart/src/components/scatter.vue.cjs +0 -2
- package/lib/src/data-chart/src/components/scatter.vue.cjs.map +0 -1
- package/lib/src/data-chart/src/components/scatter.vue2.cjs +0 -2
- package/lib/src/data-chart/src/components/scatter.vue2.cjs.map +0 -1
- package/lib/src/data-chart/src/components/scatter.vue3.cjs +0 -2
- package/lib/src/data-chart/src/components/scatter.vue3.cjs.map +0 -1
- package/lib/src/data-chart/src/components/table.vue.cjs +0 -2
- package/lib/src/data-chart/src/components/table.vue.cjs.map +0 -1
- package/lib/src/data-chart/src/components/table.vue2.cjs +0 -2
- package/lib/src/data-chart/src/components/table.vue2.cjs.map +0 -1
- package/lib/src/data-chart/src/data-chart.vue.cjs +0 -2
- package/lib/src/data-chart/src/data-chart.vue.cjs.map +0 -1
- package/lib/src/data-chart/src/data-chart.vue2.cjs +0 -2
- package/lib/src/data-chart/src/data-chart.vue2.cjs.map +0 -1
- package/lib/src/data-chart/src/utils/config.cjs +0 -2
- package/lib/src/data-chart/src/utils/config.cjs.map +0 -1
- package/lib/src/data-chart/src/utils/injectionKeys.cjs +0 -2
- package/lib/src/data-chart/src/utils/injectionKeys.cjs.map +0 -1
- package/lib/src/data-chart/src/utils/mapData.cjs +0 -2
- package/lib/src/data-chart/src/utils/mapData.cjs.map +0 -1
- package/lib/src/data-chart/src/utils/safe-eval.cjs +0 -2
- package/lib/src/data-chart/src/utils/safe-eval.cjs.map +0 -1
- package/lib/src/data-chart/src/utils/types.cjs +0 -2
- package/lib/src/data-chart/src/utils/types.cjs.map +0 -1
- package/lib/src/data-chart/src/utils/useCharts.cjs +0 -2
- package/lib/src/data-chart/src/utils/useCharts.cjs.map +0 -1
- package/lib/src/file-upload/src/file-upload.vue.cjs +0 -2
- package/lib/src/file-upload/src/file-upload.vue.cjs.map +0 -1
- package/lib/src/file-upload/src/file-upload.vue2.cjs +0 -2
- package/lib/src/file-upload/src/file-upload.vue2.cjs.map +0 -1
- package/lib/src/fixed-action-bar/index.cjs +0 -2
- package/lib/src/fixed-action-bar/index.cjs.map +0 -1
- package/lib/src/fixed-action-bar/src/fixed-action-bar.vue.cjs +0 -2
- package/lib/src/fixed-action-bar/src/fixed-action-bar.vue.cjs.map +0 -1
- package/lib/src/fixed-action-bar/src/fixed-action-bar.vue2.cjs +0 -2
- package/lib/src/fixed-action-bar/src/fixed-action-bar.vue2.cjs.map +0 -1
- package/lib/src/image-upload/src/image-upload.vue.cjs +0 -2
- package/lib/src/image-upload/src/image-upload.vue.cjs.map +0 -1
- package/lib/src/image-upload/src/image-upload.vue2.cjs +0 -2
- package/lib/src/image-upload/src/image-upload.vue2.cjs.map +0 -1
- package/lib/src/photo-crop-tool/src/composables.cjs +0 -2
- package/lib/src/photo-crop-tool/src/composables.cjs.map +0 -1
- package/lib/src/photo-crop-tool/src/photo-crop-tool.vue.cjs +0 -2
- package/lib/src/photo-crop-tool/src/photo-crop-tool.vue.cjs.map +0 -1
- package/lib/src/photo-crop-tool/src/photo-crop-tool.vue2.cjs +0 -2
- package/lib/src/photo-crop-tool/src/photo-crop-tool.vue2.cjs.map +0 -1
- package/lib/src/subject-action/index.cjs +0 -2
- package/lib/src/subject-action/index.cjs.map +0 -1
- package/lib/src/subject-action/src/subject-action.vue.cjs +0 -2
- package/lib/src/subject-action/src/subject-action.vue.cjs.map +0 -1
- package/lib/src/subject-action/src/subject-action.vue2.cjs +0 -2
- package/lib/src/subject-action/src/subject-action.vue2.cjs.map +0 -1
- package/lib/src/subject-layout/index.cjs +0 -2
- package/lib/src/subject-layout/index.cjs.map +0 -1
- package/lib/src/subject-layout/src/subject-layout.vue.cjs +0 -2
- package/lib/src/subject-layout/src/subject-layout.vue.cjs.map +0 -1
- package/lib/src/subject-layout/src/subject-layout.vue2.cjs +0 -2
- package/lib/src/subject-layout/src/subject-layout.vue2.cjs.map +0 -1
- package/lib/src/subject-list/index.cjs +0 -2
- package/lib/src/subject-list/index.cjs.map +0 -1
- package/lib/src/subject-list/src/components/SubjectPageEnd.vue.cjs +0 -2
- package/lib/src/subject-list/src/components/SubjectPageEnd.vue.cjs.map +0 -1
- package/lib/src/subject-list/src/components/SubjectPageEnd.vue2.cjs +0 -2
- package/lib/src/subject-list/src/components/SubjectPageEnd.vue2.cjs.map +0 -1
- package/lib/src/subject-list/src/components/SubjectRichText.vue.cjs +0 -2
- package/lib/src/subject-list/src/components/SubjectRichText.vue.cjs.map +0 -1
- package/lib/src/subject-list/src/components/SubjectRichText.vue2.cjs +0 -2
- package/lib/src/subject-list/src/components/SubjectRichText.vue2.cjs.map +0 -1
- package/lib/src/subject-list/src/components/subject-blank-fill.vue.cjs +0 -2
- package/lib/src/subject-list/src/components/subject-blank-fill.vue.cjs.map +0 -1
- package/lib/src/subject-list/src/components/subject-blank-fill.vue2.cjs +0 -2
- package/lib/src/subject-list/src/components/subject-blank-fill.vue2.cjs.map +0 -1
- package/lib/src/subject-list/src/components/subject-scale.vue.cjs +0 -2
- package/lib/src/subject-list/src/components/subject-scale.vue.cjs.map +0 -1
- package/lib/src/subject-list/src/components/subject-scale.vue2.cjs +0 -2
- package/lib/src/subject-list/src/components/subject-scale.vue2.cjs.map +0 -1
- package/lib/src/subject-list/src/components/subject-single.vue.cjs +0 -2
- package/lib/src/subject-list/src/components/subject-single.vue.cjs.map +0 -1
- package/lib/src/subject-list/src/components/subject-single.vue2.cjs +0 -2
- package/lib/src/subject-list/src/components/subject-single.vue2.cjs.map +0 -1
- package/lib/src/subject-list/src/components/subject-text-fill.vue.cjs +0 -2
- package/lib/src/subject-list/src/components/subject-text-fill.vue.cjs.map +0 -1
- package/lib/src/subject-list/src/components/subject-text-fill.vue2.cjs +0 -2
- package/lib/src/subject-list/src/components/subject-text-fill.vue2.cjs.map +0 -1
- package/lib/src/subject-list/src/subject-list.vue.cjs +0 -2
- package/lib/src/subject-list/src/subject-list.vue.cjs.map +0 -1
- package/lib/src/subject-list/src/subject-list.vue2.cjs +0 -2
- package/lib/src/subject-list/src/subject-list.vue2.cjs.map +0 -1
- package/lib/src/subject-type/index.cjs +0 -2
- package/lib/src/subject-type/index.cjs.map +0 -1
- package/lib/src/subject-type/src/subject-type.vue.cjs +0 -2
- package/lib/src/subject-type/src/subject-type.vue.cjs.map +0 -1
- package/lib/src/subject-type/src/subject-type.vue2.cjs +0 -2
- package/lib/src/subject-type/src/subject-type.vue2.cjs.map +0 -1
- package/theme-chalk/index.css +0 -1
- package/theme-chalk/index.scss +0 -17
- package/theme-chalk/src/base.css +0 -1
- package/theme-chalk/src/base.scss +0 -16
- package/theme-chalk/src/common/element-plus-deps.css +0 -1
- package/theme-chalk/src/common/element-plus-deps.scss +0 -40
- package/theme-chalk/src/common/element-plus.css +0 -1
- package/theme-chalk/src/common/element-plus.scss +0 -606
- package/theme-chalk/src/data-chart/empty.css +0 -1
- package/theme-chalk/src/data-chart/empty.scss +0 -24
- package/theme-chalk/src/data-chart/index.css +0 -1
- package/theme-chalk/src/data-chart/index.scss +0 -11
- package/theme-chalk/src/data-chart/table.css +0 -1
- package/theme-chalk/src/data-chart/table.scss +0 -43
- package/theme-chalk/src/file-upload.css +0 -1
- package/theme-chalk/src/file-upload.scss +0 -34
- package/theme-chalk/src/fixed-action-bar.css +0 -1
- package/theme-chalk/src/fixed-action-bar.scss +0 -18
- package/theme-chalk/src/icon.css +0 -1
- package/theme-chalk/src/icon.scss +0 -35
- package/theme-chalk/src/image-upload.css +0 -1
- package/theme-chalk/src/image-upload.scss +0 -157
- package/theme-chalk/src/mixins/_var.css +0 -0
- package/theme-chalk/src/mixins/_var.scss +0 -24
- package/theme-chalk/src/mixins/config.css +0 -0
- package/theme-chalk/src/mixins/config.scss +0 -12
- package/theme-chalk/src/mixins/function.css +0 -0
- package/theme-chalk/src/mixins/function.scss +0 -95
- package/theme-chalk/src/mixins/mixins.css +0 -0
- package/theme-chalk/src/mixins/mixins.scss +0 -102
- package/theme-chalk/src/normalize.css +0 -1
- package/theme-chalk/src/normalize.scss +0 -11
- package/theme-chalk/src/photo-crop-tool.css +0 -1
- package/theme-chalk/src/photo-crop-tool.scss +0 -98
- package/theme-chalk/src/subject-action.css +0 -1
- package/theme-chalk/src/subject-action.scss +0 -37
- package/theme-chalk/src/subject-layout.css +0 -1
- package/theme-chalk/src/subject-layout.scss +0 -28
- package/theme-chalk/src/subject-list.css +0 -1
- package/theme-chalk/src/subject-list.scss +0 -290
- package/theme-chalk/src/subject-template.css +0 -1
- package/theme-chalk/src/subject-template.scss +0 -5
- package/theme-chalk/src/subject-type.css +0 -1
- package/theme-chalk/src/subject-type.scss +0 -32
- package/theme-chalk/src/tiny-mce-editor.css +0 -1
- package/theme-chalk/src/tiny-mce-editor.scss +0 -29
- package/types/src/data-chart/src/analyze.d.ts +0 -23
- package/types/src/data-chart/src/analyze.d.ts.map +0 -1
- package/types/src/data-chart/src/components/area.vue.d.ts +0 -12
- package/types/src/data-chart/src/components/area.vue.d.ts.map +0 -1
- package/types/src/data-chart/src/components/bar.vue.d.ts +0 -12
- package/types/src/data-chart/src/components/bar.vue.d.ts.map +0 -1
- package/types/src/data-chart/src/components/card.vue.d.ts +0 -27
- package/types/src/data-chart/src/components/card.vue.d.ts.map +0 -1
- package/types/src/data-chart/src/components/empty.vue.d.ts +0 -11
- package/types/src/data-chart/src/components/empty.vue.d.ts.map +0 -1
- package/types/src/data-chart/src/components/funnel.vue.d.ts +0 -11
- package/types/src/data-chart/src/components/funnel.vue.d.ts.map +0 -1
- package/types/src/data-chart/src/components/line.vue.d.ts +0 -12
- package/types/src/data-chart/src/components/line.vue.d.ts.map +0 -1
- package/types/src/data-chart/src/components/pie.vue.d.ts +0 -12
- package/types/src/data-chart/src/components/pie.vue.d.ts.map +0 -1
- package/types/src/data-chart/src/components/radar.vue.d.ts +0 -11
- package/types/src/data-chart/src/components/radar.vue.d.ts.map +0 -1
- package/types/src/data-chart/src/components/scatter-simple.vue.d.ts +0 -11
- package/types/src/data-chart/src/components/scatter-simple.vue.d.ts.map +0 -1
- package/types/src/data-chart/src/components/scatter.vue.d.ts +0 -11
- package/types/src/data-chart/src/components/scatter.vue.d.ts.map +0 -1
- package/types/src/data-chart/src/components/table.vue.d.ts +0 -27
- package/types/src/data-chart/src/components/table.vue.d.ts.map +0 -1
- package/types/src/data-chart/src/data-chart.vue.d.ts +0 -28
- package/types/src/data-chart/src/data-chart.vue.d.ts.map +0 -1
- package/types/src/data-chart/src/utils/config.d.ts +0 -41
- package/types/src/data-chart/src/utils/config.d.ts.map +0 -1
- package/types/src/data-chart/src/utils/injectionKeys.d.ts +0 -3
- package/types/src/data-chart/src/utils/injectionKeys.d.ts.map +0 -1
- package/types/src/data-chart/src/utils/mapData.d.ts +0 -64
- package/types/src/data-chart/src/utils/mapData.d.ts.map +0 -1
- package/types/src/data-chart/src/utils/safe-eval.d.ts +0 -9
- package/types/src/data-chart/src/utils/safe-eval.d.ts.map +0 -1
- package/types/src/data-chart/src/utils/types.d.ts +0 -72
- package/types/src/data-chart/src/utils/types.d.ts.map +0 -1
- package/types/src/data-chart/src/utils/useCharts.d.ts +0 -16
- package/types/src/data-chart/src/utils/useCharts.d.ts.map +0 -1
- package/types/src/file-upload/src/file-upload.vue.d.ts +0 -20
- package/types/src/file-upload/src/file-upload.vue.d.ts.map +0 -1
- package/types/src/fixed-action-bar/index.d.ts +0 -56
- package/types/src/fixed-action-bar/index.d.ts.map +0 -1
- package/types/src/fixed-action-bar/src/fixed-action-bar.vue.d.ts +0 -31
- package/types/src/fixed-action-bar/src/fixed-action-bar.vue.d.ts.map +0 -1
- package/types/src/image-upload/src/image-upload.vue.d.ts +0 -59
- package/types/src/image-upload/src/image-upload.vue.d.ts.map +0 -1
- package/types/src/photo-crop-tool/src/composables.d.ts +0 -7
- package/types/src/photo-crop-tool/src/composables.d.ts.map +0 -1
- package/types/src/photo-crop-tool/src/photo-crop-tool.vue.d.ts +0 -65
- package/types/src/photo-crop-tool/src/photo-crop-tool.vue.d.ts.map +0 -1
- package/types/src/subject-list/src/components/SubjectRichText.vue.d.ts +0 -25
- package/types/src/subject-list/src/components/SubjectRichText.vue.d.ts.map +0 -1
|
@@ -0,0 +1,1115 @@
|
|
|
1
|
+
import{Node as e,mergeAttributes as t,Editor as i}from"@tiptap/core";import o from"@tiptap/extension-blockquote";import r from"@tiptap/extension-bold";import n from"@tiptap/extension-bullet-list";import s from"@tiptap/extension-code";import l from"@tiptap/extension-document";import a from"@tiptap/extension-heading";import d from"@tiptap/extension-history";import h from"@tiptap/extension-horizontal-rule";import c from"@tiptap/extension-image";import p from"@tiptap/extension-italic";import u from"@tiptap/extension-link";import b from"@tiptap/extension-list-item";import g from"@tiptap/extension-ordered-list";import m from"@tiptap/extension-paragraph";import _ from"@tiptap/extension-placeholder";import x from"@tiptap/extension-strike";import{Table as f}from"@tiptap/extension-table";import{TableCell as v}from"@tiptap/extension-table-cell";import{TableHeader as y}from"@tiptap/extension-table-header";import{TableRow as k}from"@tiptap/extension-table-row";import w from"@tiptap/extension-text";import C from"@tiptap/extension-text-align";import T from"@tiptap/extension-underline";import{css as M,LitElement as I,html as S}from"lit";import{property as L,state as $}from"lit/decorators.js";import{transformIncomingContentByFormat as A,EMPTY_EDITOR_HTML as B,transformOutgoingContentByFormat as E}from"./content-format.mjs";import{parseEditorToolbarItems as P,SIMPLE_EDITOR_TOOLBAR as R,DEFAULT_EDITOR_TOOLBAR as V}from"./toolbar.mjs";import{safeCustomElement as q}from"../base/define.mjs";var z=Object.defineProperty,F=Object.getOwnPropertyDescriptor,H=(e,t,i,o)=>{for(var r,n=o>1?void 0:o?F(t,i):t,s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o?r(t,i,n):r(n))||n);return o&&n&&z(t,i,n),n};const D="输入内容",O="输入 / 唤出快捷命令",j="80px",U=new Set(["bold","italic","underline","strike","code","link","image","bulletList","orderedList","taskList","blockquote","table"]),N=e.create({name:"taskList",group:"block list",content:"taskItem+",defining:!0,parseHTML:()=>[{tag:'ul[data-type="taskList"]'}],renderHTML(e){let{HTMLAttributes:i}=e;return["ul",t(i,{"data-type":"taskList"}),0]},addCommands(){return{toggleTaskList:()=>e=>{let{commands:t}=e;return t.toggleList(this.name,"taskItem")}}}}),W=e.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(e){let{HTMLAttributes:i}=e;const o=Boolean(i.checked);return["li",t(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)}}}),G=c.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(e){let{HTMLAttributes:i}=e;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",t(this.options.HTMLAttributes,i,{style:r})]}});let K=class extends I{constructor(){super(...arguments),this.content="",this["model-value"]="",this.placeholder=D,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"]=j,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()||j}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!==D&&this.placeholder!==O?this.placeholder:"header"===this._toolbarModeValue?D:O}get _toolbarItemsValue(){return Array.isArray(this.toolbar)||"string"==typeof this.toolbar&&this.toolbar.trim()?P(this.toolbar):"simple"===this._toolbarPresetValue?[...R]:"none"===this._toolbarPresetValue?[]:[...V]}_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))U.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 S`
|
|
2
|
+
<button class=${o} @click=${t.onClick} title=${t.title}>
|
|
3
|
+
${t.icon}
|
|
4
|
+
${i?S`<span class="bubble-btn__label">${i}</span>`:null}
|
|
5
|
+
</button>
|
|
6
|
+
`}_transformIncomingContent(e){const t=e||"",i=this["deserialize-content"];if(!i)return A(t,this._contentFormatValue);try{return i(t)||B}catch(e){return A(t,this._contentFormatValue)}}_transformOutgoingContent(e){const t=this["serialize-content"];if(!t)return E(e,this._contentFormatValue);try{return t(e)}catch(t){return E(e,this._contentFormatValue)}}_getEditorCharacterCount(){return this._editor?.getText().length??0}_initEditor(){if(this._editor)return;const e=this.shadowRoot?.querySelector(".editor-content");if(!e)return void requestAnimationFrame(()=>this._initEditor());for(;e.firstChild;)e.removeChild(e.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=[l,m,w,r,p,T,x,s,a.configure({levels:[1,2,3]}),n,g,N,W,b,o,h,d,G.configure({inline:!1,allowBase64:!0}),u.extend({inclusive:!1}).configure({openOnClick:!1,HTMLAttributes:{rel:"noopener noreferrer"}}),C.configure({types:["heading","paragraph"]}),f.configure({resizable:!0}),k,v,y,_.configure({placeholder:this._resolvedPlaceholder})];this._editor=new i({element:e,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),n=Math.max(0,r-2),s=Math.min(i.state.doc.content.size,r+2);let l=null;if(i.state.doc.nodesBetween(n,s,(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 n=o.view.coordsAtPos(e.pos),s=n.left-r.left+(n.right-n.left)/2,l=n.top-r.top-40;this._showImageToolbar({x:s,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 n=t.state.selection.to;let s=t.chain().focus().setTextSelection({from:n,to:n});switch(i.type){case"bold":s=s.unsetBold();break;case"italic":s=s.unsetItalic();break;case"underline":s=s.unsetUnderline();break;case"strike":s=s.unsetStrike();break;case"code":s=s.unsetCode()}s.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,n=i.state.doc.resolve(r),s={from:n.start(),to:n.end()};return this._clearSlashInlineMarkState(!0),s.from<s.to&&this._runInlineMarkAction(e,i.chain().focus().setTextSelection(s),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 n=i.getBoundingClientRect(),s=o.getBoundingClientRect(),l=Math.max(12,n.width-332),a=Math.min(Math.max(12,s.left-n.left),l),d=s.bottom-n.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(),n=this._getTableCellRow(),s=this._getTableCellCol();(0===n||0===s)&&requestAnimationFrame(()=>{this._tableCellToolbar={x:i.left-r.left,y:i.bottom-r.top+8,visible:!0,cellRow:n,cellCol:s}})}_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?S`
|
|
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]:[S`<div class="bubble-divider"></div>`,e])}_renderFormatToolbarGroup(e){return S`
|
|
36
|
+
${this._renderToolbarButton("bold",{title:"加粗",active:e?.isActive("bold"),onClick:this._toggleBold,icon:S`<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:S`<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:S`<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:S`<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 S`
|
|
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 S`
|
|
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 S`
|
|
75
|
+
${this._hasToolbarItem("code")?this._renderToolbarButton("code",{title:"行内代码",active:e?.isActive("code"),onClick:this._toggleCode,icon:S`<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:S`<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:S`<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:S`<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:S`<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:S`<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 S`
|
|
79
|
+
${this._renderToolbarButton("bulletList",{title:"无序列表",active:e?.isActive("bulletList"),onClick:this._toggleBulletList,icon:S`<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:S`<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:S`<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 S`
|
|
103
|
+
${this._renderToolbarButton("blockquote",{title:"引用",active:e?.isActive("blockquote"),onClick:this._toggleBlockquote,icon:S`<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 S`
|
|
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?S`<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 n=this._renderToolbarItemByKey(e,t);if(!n)continue;const s=this._getToolbarMergeKey(t);o.length&&s!==i&&r(),i=s,o.push(n)}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:n}=o?.state??{selection:null};if(r&&n&&!n.empty&&o){const{from:t,to:i}=n,r=o.state.doc.resolve(t),s=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=s.node(s.depth);if("table"!==a.type.name&&"table"!==d.type.name||(l=!0),l)return e.style.opacity="0",void(e.style.visibility="hidden")}if(n&&!n.empty);else if(!n||n.empty&&!this._hasSlashCommand)return e.style.opacity="0",void(e.style.visibility="hidden");const s=i.getBoundingClientRect(),l=e.getBoundingClientRect(),{from:a}=n,d=this._editor?.view.coordsAtPos(a);if(!d)return;let h=d.left-s.left,c=d.top-s.top-40;h+l.width>s.width&&(h=s.width-l.width-8),h<0&&(h=8),c<0&&(c=d.bottom-s.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:S`
|
|
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 S`
|
|
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?"":S`
|
|
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?"":S`
|
|
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?S`<div class="editor-footer">${this._getEditorCharacterCount()} 字符</div>`:null}
|
|
164
|
+
|
|
165
|
+
${this._linkEditor.visible?S`
|
|
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?S`<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")?S`
|
|
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?S`
|
|
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?S`
|
|
223
|
+
${0!==this._tableCellToolbar.cellRow?S`<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?S`
|
|
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?S`
|
|
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(S`
|
|
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}};K.styles=M`
|
|
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
|
+
`,H([L({type:String,attribute:"content"})],K.prototype,"content",2),H([L({type:String,attribute:"model-value"})],K.prototype,"model-value",2),H([L({type:String,attribute:"placeholder"})],K.prototype,"placeholder",2),H([L({type:String,attribute:"toolbar-mode"})],K.prototype,"toolbar-mode",2),H([L({attribute:"toolbar"})],K.prototype,"toolbar",2),H([L({type:String,attribute:"toolbar-preset"})],K.prototype,"toolbar-preset",2),H([L({attribute:"header-toolbar-labels"})],K.prototype,"header-toolbar-labels",2),H([L({type:String,attribute:"header-always-visible"})],K.prototype,"header-always-visible",2),H([L({type:String,attribute:"use-model"})],K.prototype,"use-model",2),H([L({type:String,attribute:"readonly"})],K.prototype,"readonly",2),H([L({type:String,attribute:"preview"})],K.prototype,"preview",2),H([L({attribute:"editable"})],K.prototype,"editable",2),H([L({type:String,attribute:"min-height"})],K.prototype,"min-height",2),H([L({type:String,attribute:"max-height"})],K.prototype,"max-height",2),H([L({type:String,attribute:"show-character-count"})],K.prototype,"show-character-count",2),H([L({type:String,attribute:"toolbar-position"})],K.prototype,"toolbar-position",2),H([L({type:String,attribute:"custom-styles"})],K.prototype,"custom-styles",2),H([L({type:String,attribute:"content-format"})],K.prototype,"content-format",2),H([L({type:Object,attribute:"deserialize-content"})],K.prototype,"deserialize-content",2),H([L({type:Object,attribute:"serialize-content"})],K.prototype,"serialize-content",2),H([L({type:Object,attribute:"upload-image"})],K.prototype,"upload-image",2),H([$()],K.prototype,"_editor",2),H([$()],K.prototype,"_hoverRow",2),H([$()],K.prototype,"_hoverCol",2),H([$()],K.prototype,"_tableDropdownOpen",2),H([$()],K.prototype,"_tableCellToolbar",2),H([$()],K.prototype,"_imageToolbar",2),H([$()],K.prototype,"_linkEditor",2),H([$()],K.prototype,"_isEditorFocused",2),H([$()],K.prototype,"_selectedImage",2),K=H([q("qxs-blocksuite-editor")],K);export{K as QxsBlocksuiteEditor};
|
|
1115
|
+
//# sourceMappingURL=blocksuite-editor.mjs.map
|