@qxs-bns/components 0.0.90 → 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/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/photo-crop-tool.mjs +147 -0
- package/es/photo-crop-tool.mjs.map +1 -0
- package/es/src/alert/src/alert.mjs.map +1 -1
- 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 +1 -1
- package/es/src/dialog/src/dialog.mjs.map +1 -1
- 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/message/src/message.mjs +1 -1
- package/es/src/message/src/message.mjs.map +1 -1
- package/es/src/photo-crop-tool/index.mjs +1 -1
- package/es/src/photo-crop-tool/index.mjs.map +1 -1
- package/es/src/ui/button/index.mjs.map +1 -1
- package/es/src/ui/checkbox/index.mjs.map +1 -1
- package/es/src/ui/dialog/index.mjs.map +1 -1
- package/es/src/ui/input/index.mjs +1 -1
- package/es/src/ui/input/index.mjs.map +1 -1
- package/es/src/ui/input-number/index.mjs.map +1 -1
- package/es/src/ui/layout/index.mjs.map +1 -1
- package/es/src/ui/popover/index.mjs.map +1 -1
- package/es/src/ui/radio/index.mjs.map +1 -1
- package/es/src/ui/scrollbar/index.mjs.map +1 -1
- package/es/src/ui/select/index.mjs +1 -1
- package/es/src/ui/select/index.mjs.map +1 -1
- package/es/src/ui/table/index.mjs.map +1 -1
- package/es/src/ui/tag/index.mjs.map +1 -1
- 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/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/photo-crop-tool.cjs +147 -0
- package/lib/photo-crop-tool.cjs.map +1 -0
- package/lib/src/alert/src/alert.cjs.map +1 -1
- 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 +1 -1
- package/lib/src/dialog/src/dialog.cjs.map +1 -1
- 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/message/src/message.cjs +1 -1
- package/lib/src/message/src/message.cjs.map +1 -1
- package/lib/src/photo-crop-tool/index.cjs +1 -1
- package/lib/src/photo-crop-tool/index.cjs.map +1 -1
- package/lib/src/ui/button/index.cjs.map +1 -1
- package/lib/src/ui/checkbox/index.cjs.map +1 -1
- package/lib/src/ui/dialog/index.cjs.map +1 -1
- package/lib/src/ui/input/index.cjs +1 -1
- package/lib/src/ui/input/index.cjs.map +1 -1
- package/lib/src/ui/input-number/index.cjs.map +1 -1
- package/lib/src/ui/layout/index.cjs.map +1 -1
- package/lib/src/ui/popover/index.cjs.map +1 -1
- package/lib/src/ui/radio/index.cjs.map +1 -1
- package/lib/src/ui/scrollbar/index.cjs.map +1 -1
- package/lib/src/ui/select/index.cjs +1 -1
- package/lib/src/ui/select/index.cjs.map +1 -1
- package/lib/src/ui/table/index.cjs.map +1 -1
- package/lib/src/ui/tag/index.cjs.map +1 -1
- 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 -32
- 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/components.d.ts +2 -7
- 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/src/dialog.d.ts.map +1 -1
- package/types/src/file-upload/index.d.ts +10 -17
- package/types/src/file-upload/index.d.ts.map +1 -1
- package/types/src/icon/index.d.ts +1 -1
- package/types/src/icon/src/icon.d.ts +1 -1
- package/types/src/image-upload/index.d.ts +10 -25
- package/types/src/image-upload/index.d.ts.map +1 -1
- package/types/src/message/index.d.ts +2 -2
- package/types/src/message/index.d.ts.map +1 -1
- package/types/src/message/src/message.d.ts.map +1 -1
- 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-list/src/components/SubjectPageEnd.vue.d.ts +2 -2
- package/types/src/subject-list/src/components/subject-blank-fill.vue.d.ts +2 -2
- package/types/src/subject-list/src/components/subject-scale.vue.d.ts +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +4 -4
- package/types/src/ui/checkbox/index.d.ts +2 -2
- package/types/src/ui/checkbox/index.d.ts.map +1 -1
- package/types/src/ui/dialog/index.d.ts +2 -2
- package/types/src/ui/dialog/index.d.ts.map +1 -1
- package/types/src/ui/index.d.ts +9 -9
- package/types/src/ui/index.d.ts.map +1 -1
- package/types/src/ui/input/index.d.ts +4 -4
- package/types/src/ui/input-number/index.d.ts +4 -4
- package/types/src/ui/input-number/index.d.ts.map +1 -1
- package/types/src/ui/layout/index.d.ts +6 -6
- package/types/src/ui/layout/index.d.ts.map +1 -1
- package/types/src/ui/popover/index.d.ts +4 -4
- package/types/src/ui/popover/index.d.ts.map +1 -1
- package/types/src/ui/radio/index.d.ts.map +1 -1
- package/types/src/ui/scrollbar/index.d.ts.map +1 -1
- package/types/src/ui/select/index.d.ts +4 -4
- package/types/src/ui/select/index.d.ts.map +1 -1
- package/types/src/ui/table/index.d.ts +3 -3
- package/types/src/ui/table/index.d.ts.map +1 -1
- package/types/src/ui/tag/index.d.ts +2 -2
- package/types/src/ui/tag/index.d.ts.map +1 -1
- 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/_commonjsHelpers.mjs +0 -2
- package/es/_virtual/_commonjsHelpers.mjs.map +0 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -2
- package/es/_virtual/_plugin-vue_export-helper.mjs.map +0 -1
- package/es/_virtual/sortable.esm.mjs +0 -2
- package/es/_virtual/sortable.esm.mjs.map +0 -1
- package/es/_virtual/vuedraggable.umd.mjs +0 -2
- package/es/_virtual/vuedraggable.umd.mjs.map +0 -1
- package/es/_virtual/vuedraggable.umd2.mjs +0 -2
- package/es/_virtual/vuedraggable.umd2.mjs.map +0 -1
- package/es/node_modules/.pnpm/sortablejs@1.14.0/node_modules/sortablejs/modular/sortable.esm.mjs +0 -8
- package/es/node_modules/.pnpm/sortablejs@1.14.0/node_modules/sortablejs/modular/sortable.esm.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/node_modules/.pnpm/vuedraggable@4.1.0_vue@3.5.18_typescript@5.9.2_/node_modules/vuedraggable/dist/vuedraggable.umd.mjs +0 -2
- package/es/node_modules/.pnpm/vuedraggable@4.1.0_vue@3.5.18_typescript@5.9.2_/node_modules/vuedraggable/dist/vuedraggable.umd.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/file-upload/src/file-upload.vue3.mjs +0 -2
- package/es/src/file-upload/src/file-upload.vue3.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/image-upload/src/image-upload.vue3.mjs +0 -2
- package/es/src/image-upload/src/image-upload.vue3.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/_commonjsHelpers.cjs +0 -2
- package/lib/_virtual/_commonjsHelpers.cjs.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/_virtual/sortable.esm.cjs +0 -2
- package/lib/_virtual/sortable.esm.cjs.map +0 -1
- package/lib/_virtual/vuedraggable.umd.cjs +0 -2
- package/lib/_virtual/vuedraggable.umd.cjs.map +0 -1
- package/lib/_virtual/vuedraggable.umd2.cjs +0 -2
- package/lib/_virtual/vuedraggable.umd2.cjs.map +0 -1
- package/lib/node_modules/.pnpm/sortablejs@1.14.0/node_modules/sortablejs/modular/sortable.esm.cjs +0 -9
- package/lib/node_modules/.pnpm/sortablejs@1.14.0/node_modules/sortablejs/modular/sortable.esm.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/node_modules/.pnpm/vuedraggable@4.1.0_vue@3.5.18_typescript@5.9.2_/node_modules/vuedraggable/dist/vuedraggable.umd.cjs +0 -2
- package/lib/node_modules/.pnpm/vuedraggable@4.1.0_vue@3.5.18_typescript@5.9.2_/node_modules/vuedraggable/dist/vuedraggable.umd.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/file-upload/src/file-upload.vue3.cjs +0 -2
- package/lib/src/file-upload/src/file-upload.vue3.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/image-upload/src/image-upload.vue3.cjs +0 -2
- package/lib/src/image-upload/src/image-upload.vue3.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 -21
- package/theme-chalk/src/base.css +0 -1
- package/theme-chalk/src/base.scss +0 -16
- package/theme-chalk/src/common/qxs-components.css +0 -1
- package/theme-chalk/src/common/qxs-components.scss +0 -4
- package/theme-chalk/src/common/qxs-variables.css +0 -1
- package/theme-chalk/src/common/qxs-variables.scss +0 -81
- 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/dialog.css +0 -1
- package/theme-chalk/src/dialog.scss +0 -122
- package/theme-chalk/src/file-upload.css +0 -0
- package/theme-chalk/src/file-upload.scss +0 -7
- 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 -149
- 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 -78
- 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 -568
- 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 -42
- package/theme-chalk/src/tiny-mce-editor.css +0 -1
- package/theme-chalk/src/tiny-mce-editor.scss +0 -29
- package/theme-chalk/src/ui/button.css +0 -1
- package/theme-chalk/src/ui/button.scss +0 -173
- package/theme-chalk/src/ui/input.css +0 -1
- package/theme-chalk/src/ui/input.scss +0 -128
- package/theme-chalk/src/ui/table.css +0 -1
- package/theme-chalk/src/ui/table.scss +0 -166
- 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 -34
- 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 -49
- 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,385 @@
|
|
|
1
|
+
"use strict";var t=require("lit"),e=require("lit/decorators.js"),i=require("../base/define.cjs"),s=require("../editor/toolbar.cjs"),r=require("./shared-methods.cjs"),l=require("./shared-styles.cjs"),o=require("./single.cjs"),a=require("./sorting-card.cjs"),n=require("./title-prefix.cjs"),p=require("./types.cjs"),h=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=(t,e,i,s)=>{for(var r,l=s>1?void 0:s?c(e,i):e,o=t.length-1;o>=0;o--)(r=t[o])&&(l=(s?r(e,i,l):r(l))||l);return s&&l&&h(e,i,l),l};const x=" ______",g=t.html`
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none"
|
|
3
|
+
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
4
|
+
<line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/>
|
|
5
|
+
</svg>`;exports.QxsBlankFill=class extends t.LitElement{constructor(){super(...arguments),this["order-index"]=0,this.title="",this["custom-id"]="",this["is-edit"]=!1,this["is-save"]=!1,this["is-set"]=!1,this["is-key"]=!1,this["show-action"]=!0,this["show-add"]=!0,this["hide-add-rich-text"]=!1,this["show-rich-text"]=!1,this["show-delete-action"]=!0,this["show-save-action"]=!0,this.sorting=!1,this["show-answer-setting"]=!1,this["show-analysis"]=!1,this["rich-text-content"]="",this.analysis="",this["exam-answer-relation-type"]=0,this["exam-expand"]="",this["exam-id"]=0,this["category-id"]="",this["exam-answer-setting"]={isInOrder:!1,isIgnoreCase:!0},this["upload-image"]=async t=>new Promise((e,i)=>{const s=new FileReader;s.onload=t=>e(t.target?.result),s.onerror=i,s.readAsDataURL(t)}),this["answer-list"]=[],this["tag-list"]=[],this["category-list"]=[],this["resource-list"]=[],this["show-tag"]=!1,this["show-category"]=!1,this["show-resource"]=!1,this["model-value"]="",this["use-model"]=!1,this._title="",this._analysis="",this._answers=[{title:"",tag:"",showInput:!1}],this._isInOrder=!1,this._isIgnoreCase=!0,this._showRichText=!1,this._richText="",this._selectedTagList=[],this._categoryId="",this.TITLE_MAX=400}willUpdate(t){t.has("is-edit")&&this["is-edit"]&&this._syncProps(),!this["is-edit"]&&(t.has("title")||t.has("answer-list")||t.has("analysis")||t.has("exam-answer-setting")||t.has("rich-text-content")||t.has("tag-list")||t.has("category-id"))&&this._syncProps(),t.has("model-value")&&this["use-model"]&&(this._title=this["model-value"].replaceAll(/<filter><\/filter>/g," ______")),t.has("tag-list")&&(this._selectedTagList=Array.isArray(this["tag-list"])?this["tag-list"].map(t=>({...t})):[]),t.has("category-id")&&(this._categoryId=this["category-id"]?String(this["category-id"]):"")}_normalizeAnswerTitle(t){return o.trimCommaSeparatedText(t?.title??t?.answer??"")}_blankCount(t){return(t.match(/ ______/g)||[]).length}_syncAnswersToBlankCount(t){t!==this._answers.length&&(t>this._answers.length?this._answers=[...this._answers,...Array.from({length:t-this._answers.length},()=>({title:"",tag:"",showInput:!1}))]:this._answers=this._answers.slice(0,t))}_syncProps(){if(this._title=(this.title||"").replaceAll(/<filter><\/filter>/g," ______"),this._analysis=this.analysis||"",this["answer-list"]?.length)this._answers=this["answer-list"].map(t=>({title:this._normalizeAnswerTitle(t),tag:"",showInput:!1,answerId:t?.answerId??t?.examAnswerId}));else{const t=this._blankCount(this._title);this._answers=Array.from({length:t},()=>({title:"",tag:"",showInput:!1}))}this["exam-answer-setting"]&&(this._isInOrder=!!this["exam-answer-setting"].isInOrder,this._isIgnoreCase=!!this["exam-answer-setting"].isIgnoreCase),this._richText=this["rich-text-content"]||"",this._showRichText=!!this["rich-text-content"],this._selectedTagList=Array.isArray(this["tag-list"])?this["tag-list"].map(t=>({...t})):[],this._categoryId=this["category-id"]?String(this["category-id"]):""}_emit(t,e){r.emitSubjectEvent(this,t,e)}_addBlank(){const t=this.shadowRoot?.querySelector(".title-textarea"),e=t?.selectionStart??this._title.length,i=t?.selectionEnd??this._title.length,s=`${this._title.slice(0,e)}${x}${this._title.slice(i)}`;s.length>this.TITLE_MAX||(this._title=s,this._syncAnswersToBlankCount(this._blankCount(this._title)),this.requestUpdate(),this._emitModelUpdate(),this.updateComplete.then(()=>{const t=this.shadowRoot?.querySelector(".title-textarea");if(!t)return;const i=e+7;t.focus(),t.setSelectionRange(i,i)}))}_onTitleInput(t){const e=t.target;e.value.length>this.TITLE_MAX&&(e.value=e.value.slice(0,this.TITLE_MAX)),this._title=e.value,this._syncAnswersToBlankCount(this._blankCount(this._title)),this._emitModelUpdate()}_emitModelUpdate(){if(this["use-model"]){const t=this._title.replaceAll(/ ______/g,"<filter></filter>");r.emitSubjectModelValue(this,t)}}_handleAddTag(t){t.showInput=!1,t.tag&&(t.title=t.title?[t.title,t.tag].join(","):t.tag,t.tag=""),this.requestUpdate()}_closeTag(t,e){if(!t)return;const i=e.title.split(","),s=i.findIndex(e=>e===t);s>-1&&(i.splice(s,1),e.title=i.join(",")),this.requestUpdate()}_onCategoryChange(t){this._categoryId=t,this._emit("category-change",{value:t,customId:this["custom-id"]||"",examId:this["exam-id"]||0})}_imageResources(){return r.getSubjectImageResources(this["resource-list"]||[])}_videoResource(){return r.getSubjectVideoResource(this["resource-list"]||[])}_categoryLabel(){return r.resolveSubjectCategoryLabel(this["category-list"],this._categoryId)}_previewAnswerText(t){const e=(t?.title||"").split(",").map(t=>t.trim()).filter(Boolean);return e.length?e.join(" / "):""}_renderInlineBlankTitle(e){const i=this.title.replaceAll(/<filter><\/filter>/g," ______"),s=n.resolveSubjectPrefix(this["subject-prefix"],`${this["order-index"]+1}.`),r=i.split(" ______");return t.html`<span class="title preview-filled-title">${s?`${s} `:""}${r[0]??""}${r.slice(1).map((i,s)=>{const r=this._previewAnswerText(e[s]);return t.html`<span class="inline-blank ${r?"":"empty"}">${r||"填空"}</span>${i}`})}</span>`}async toJSON(){return new Promise((t,e)=>{const i={customId:this["custom-id"]||void 0,answerType:"blank_fill",orderIndex:this["order-index"]},s=o.trimText(this["is-edit"]?this._title:this.title?.replaceAll(/<filter><\/filter>/g," ______")||""),r=this["is-edit"]?this._answers:(this["answer-list"]||[]).map(t=>({...t,title:this._normalizeAnswerTitle(t),answerId:t?.answerId??t?.examAnswerId})),l=o.trimText(this["is-edit"]?this._analysis:this.analysis||""),a=this["is-edit"]?this._isInOrder:this["exam-answer-setting"]?.isInOrder??!1,n=this["is-edit"]?this._isIgnoreCase:this["exam-answer-setting"]?.isIgnoreCase??!0,h=this["is-edit"]?this._showRichText:!!this["rich-text-content"],c=this["is-edit"]?this._richText:this["rich-text-content"]||"",d=r.filter(t=>this._normalizeAnswerTitle(t));if(!s)return void e(new o.SubjectError("题目标题不能为空!","EMPTY_TITLE","title",i));if(r.length<1)return void e(new o.SubjectError("至少添加一个填空符!","NO_BLANK","answers",i));const x={answerType:p.SubjectType.BLANK_FILL,examTypeEnum:p.SubjectType.BLANK_FILL,title:s.replaceAll(/ ______/g,"<filter></filter>"),answers:d.map((t,e)=>{const i=this._normalizeAnswerTitle(t),s={title:i,answer:i,isCorrect:!0,orderIndex:e+1};return t.answerId&&(s.answerId=t.answerId,s.examAnswerId=t.answerId),s}),analysis:l,isSetCorrectAnswer:d.length>0,isKey:this["is-key"],examAnswerSettingBO:{isIgnoreCase:n,isInOrder:a},examAnswerSettingVO:{isIgnoreCase:n,isInOrder:a},examRichTextContent:h?c:""};this["custom-id"]&&(x.customId=this["custom-id"]),t(x)})}async _save(t){t?.stopImmediatePropagation();try{const t=await this.toJSON();this._emit("save",t)}catch(t){r.showSubjectToast(t.message)}}validate(){const t=[],e={customId:this["custom-id"]||void 0,answerType:"blank_fill",orderIndex:this["order-index"]},i=o.trimText(this["is-edit"]?this._title:this.title?.replaceAll(/<filter><\/filter>/g," ______")||""),s=this["is-edit"]?this._answers:(this["answer-list"]||[]).map(t=>({...t,title:this._normalizeAnswerTitle(t)}));return i||t.push(new o.SubjectError("题目标题不能为空!","EMPTY_TITLE","title",e)),s.length<1&&t.push(new o.SubjectError("至少添加一个填空符!","NO_BLANK","answers",e)),t}_renderPreview(){const e=this["is-edit"]?this._answers:(this["answer-list"]||[]).map(t=>({...t,title:this._normalizeAnswerTitle(t)}));return t.html`
|
|
6
|
+
<div class="preview">
|
|
7
|
+
<div class="preview-header">
|
|
8
|
+
<div class="preview-title-row">
|
|
9
|
+
${this._renderInlineBlankTitle(e)}
|
|
10
|
+
<span class="preview-type">填空题</span>
|
|
11
|
+
</div>
|
|
12
|
+
${this["show-rich-text"]&&this["rich-text-content"]?t.html`<div class="rich-text" .innerHTML=${this["rich-text-content"]}></div>`:""}
|
|
13
|
+
</div>
|
|
14
|
+
${this.analysis?t.html`<div class="preview-note">${this.analysis}</div>`:""}
|
|
15
|
+
${this["show-category"]&&this._categoryId?t.html`<div class="section-row"><span class="value-text">分类:${this._categoryLabel()}</span></div>`:""}
|
|
16
|
+
${this._renderResourceSection()}
|
|
17
|
+
</div>
|
|
18
|
+
`}_renderCategorySection(){return this["show-category"]?t.html`
|
|
19
|
+
<div class="flex flex-items-start section-row">
|
|
20
|
+
<div class="label"><span>分类:</span></div>
|
|
21
|
+
<div style="flex:1">
|
|
22
|
+
${this["is-edit"]?t.html`
|
|
23
|
+
<select class="el-select" .value=${String(this._categoryId)}
|
|
24
|
+
@change=${t=>this._onCategoryChange(t.target.value)}>
|
|
25
|
+
<option value="">选择分类</option>
|
|
26
|
+
${this["category-list"].map(e=>t.html`
|
|
27
|
+
<option value=${String(e.categoryId)} ?selected=${String(e.categoryId)===String(this._categoryId)}>${e.title||e.categoryName}</option>
|
|
28
|
+
`)}
|
|
29
|
+
</select>
|
|
30
|
+
`:t.html`<span class="value-text">${this._categoryLabel()}</span>`}
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
`:""}_renderResourceSection(){if(!this["show-resource"])return"";const e=this._imageResources(),i=this._videoResource();return t.html`
|
|
34
|
+
<div class="flex flex-items-start section-row">
|
|
35
|
+
<div class="label"><span>资源:</span></div>
|
|
36
|
+
<div style="flex:1">
|
|
37
|
+
<div class="resource-summary">图片 ${e.length} 张${i?.url?",含视频资源":""}</div>
|
|
38
|
+
${e.length?t.html`
|
|
39
|
+
<div class="resource-thumbs">
|
|
40
|
+
${e.slice(0,4).map(e=>t.html`<img class="resource-thumb" src=${e} alt="resource" />`)}
|
|
41
|
+
</div>
|
|
42
|
+
`:""}
|
|
43
|
+
${i?.url?t.html`<div style="margin-top:8px"><a class="el-link" href=${i.url} target="_blank" rel="noreferrer">查看视频</a></div>`:""}
|
|
44
|
+
${e.length||i?.url?"":t.html`<div class="tag-hint">暂无资源</div>`}
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
`}_renderSorting(){const t=o.trimText(this["is-edit"]?this._title:this.title||"")||"未命名题目",e=r.buildSubjectSortingTitle(this["subject-prefix"],this["order-index"],t);return a.renderSortingCard(e,p.SubjectTypeLabel[p.SubjectType.BLANK_FILL]||p.SubjectType.BLANK_FILL)}_renderEdit(){return t.html`
|
|
48
|
+
<div class="edit-form">
|
|
49
|
+
<div class="edit-row">
|
|
50
|
+
<div class="label"><span>题目:</span></div>
|
|
51
|
+
<div class="row-body">
|
|
52
|
+
<div class="el-input title-input">
|
|
53
|
+
<textarea class="title-textarea" rows="3" .value=${this._title}
|
|
54
|
+
maxlength=${this.TITLE_MAX}
|
|
55
|
+
@input=${t=>this._onTitleInput(t)}
|
|
56
|
+
placeholder="【填空题】请输入问题"></textarea>
|
|
57
|
+
<div class="title-input-actions">
|
|
58
|
+
<span class="char-counter">${this._title.length}/${this.TITLE_MAX}</span>
|
|
59
|
+
<button type="button" class="title-input-insert" @click=${()=>this._addBlank()}>插入填空符</button>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<div class="edit-row section-row">
|
|
66
|
+
<div class="label"><span>答题设置:</span></div>
|
|
67
|
+
<div class="row-body edit-inline">
|
|
68
|
+
<label class="el-checkbox">
|
|
69
|
+
<input type="checkbox" .checked=${this._isInOrder}
|
|
70
|
+
@change=${t=>{this._isInOrder=t.target.checked}} />
|
|
71
|
+
答案不分顺序
|
|
72
|
+
</label>
|
|
73
|
+
<label class="el-checkbox">
|
|
74
|
+
<input type="checkbox" .checked=${this._isIgnoreCase}
|
|
75
|
+
@change=${t=>{this._isIgnoreCase=t.target.checked}} />
|
|
76
|
+
忽略大小写
|
|
77
|
+
</label>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<slot name="business-tag"></slot>
|
|
82
|
+
|
|
83
|
+
${this._renderCategorySection()}
|
|
84
|
+
|
|
85
|
+
${this._renderResourceSection()}
|
|
86
|
+
|
|
87
|
+
<div class="edit-row section-row answer-section-row">
|
|
88
|
+
<div class="label"><span>参考答案:</span></div>
|
|
89
|
+
<div class="row-body">
|
|
90
|
+
<div class="answer-section">
|
|
91
|
+
<div class="edit-note">每个填空支持多个同义词,录入后会按逗号序列化。</div>
|
|
92
|
+
${this._answers.map((e,i)=>t.html`
|
|
93
|
+
<div class="answer-item">
|
|
94
|
+
<div class="answer-item-label"><span>第${i+1}空:</span></div>
|
|
95
|
+
<div class="answer-tags">
|
|
96
|
+
${e.title.split(",").filter(Boolean).map(i=>t.html`
|
|
97
|
+
<span class="el-tag">
|
|
98
|
+
${i}
|
|
99
|
+
<span class="el-tag__close" @click=${()=>this._closeTag(i,e)}>×</span>
|
|
100
|
+
</span>
|
|
101
|
+
`)}
|
|
102
|
+
${t.html`
|
|
103
|
+
${e.showInput?t.html`
|
|
104
|
+
<input type="text" class="el-input--small"
|
|
105
|
+
@keydown=${t=>{"Enter"===t.key&&this._handleAddTag(e)}}
|
|
106
|
+
@input=${t=>{e.tag=t.target.value}}
|
|
107
|
+
@blur=${()=>this._handleAddTag(e)} />
|
|
108
|
+
`:t.html`
|
|
109
|
+
<span class="el-button--small" @click=${()=>{e.showInput=!0,this.requestUpdate(),this.updateComplete.then(()=>{this.shadowRoot?.querySelector(".el-input--small")?.focus()})}}>
|
|
110
|
+
${g}
|
|
111
|
+
<span>${e.title?"添加同义词":"添加答案"}</span>
|
|
112
|
+
</span>
|
|
113
|
+
`}
|
|
114
|
+
`}
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
`)}
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
${this["show-rich-text"]&&this._showRichText?t.html`
|
|
123
|
+
<div class="edit-row section-row">
|
|
124
|
+
<div class="label"><span>副文本:</span></div>
|
|
125
|
+
<div class="row-body">
|
|
126
|
+
<slot name="sub-text">
|
|
127
|
+
<qxs-blocksuite-editor
|
|
128
|
+
.content=${this._richText}
|
|
129
|
+
.toolbar=${s.SUB_TEXT_EDITOR_TOOLBAR}
|
|
130
|
+
.upload-image=${this["upload-image"]}
|
|
131
|
+
?is-edit=${!0}
|
|
132
|
+
@input=${t=>{this._richText=t.target.getContent()}}
|
|
133
|
+
></qxs-blocksuite-editor>
|
|
134
|
+
</slot>
|
|
135
|
+
${this["show-action"]?"":t.html`
|
|
136
|
+
<div class="flex flex-justify-end" style="margin-top:8px">
|
|
137
|
+
<span class="el-link" style="color:#f56c6c" @click=${()=>{this._showRichText=!1,this._richText=""}}>删除富文本</span>
|
|
138
|
+
</div>
|
|
139
|
+
`}
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
`:""}
|
|
143
|
+
|
|
144
|
+
${this["show-analysis"]?t.html`
|
|
145
|
+
<div class="edit-row section-row">
|
|
146
|
+
<div class="label"><span>解析:</span></div>
|
|
147
|
+
<div class="row-body">
|
|
148
|
+
<div class="el-input">
|
|
149
|
+
<textarea rows="2" .value=${this._analysis}
|
|
150
|
+
@input=${t=>{this._analysis=t.target.value}}
|
|
151
|
+
placeholder="请输入题目解析"></textarea>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
`:""}
|
|
156
|
+
</div>
|
|
157
|
+
`}render(){if(this.sorting)return this._renderSorting();const e=this["is-edit"]?t.html`<div slot="edit">${this._renderEdit()}</div>`:t.html`<div slot="preview">${this._renderPreview()}</div>`;return t.html`
|
|
158
|
+
<qxs-subject-layout .show-edit=${this["is-edit"]}>
|
|
159
|
+
${e}
|
|
160
|
+
${this["show-action"]?t.html`
|
|
161
|
+
<qxs-subject-action
|
|
162
|
+
.is-edit=${this["is-edit"]}
|
|
163
|
+
.is-set=${this["is-set"]}
|
|
164
|
+
.show-add=${this["show-add"]}
|
|
165
|
+
.show-rich-text=${this["show-rich-text"]&&this._showRichText}
|
|
166
|
+
.hide-add-rich-text=${!this["show-rich-text"]||this["hide-add-rich-text"]}
|
|
167
|
+
.show-delete-action=${this["show-delete-action"]}
|
|
168
|
+
.show-save-action=${this["show-save-action"]}
|
|
169
|
+
exam-answer-relation-type=${this["exam-answer-relation-type"]}
|
|
170
|
+
@delete=${()=>this._emit("delete")}
|
|
171
|
+
@save=${this._save}
|
|
172
|
+
@edit=${()=>this._emit("edit")}
|
|
173
|
+
@add=${t=>this._emit("add",t.detail)}
|
|
174
|
+
@set-key=${t=>{this._emit("set-key",t.detail)}}
|
|
175
|
+
@on-show-rich-text=${()=>{this._showRichText=!this._showRichText,this._showRichText||(this._richText="")}}
|
|
176
|
+
></qxs-subject-action>
|
|
177
|
+
`:""}
|
|
178
|
+
<slot name="action"></slot>
|
|
179
|
+
</qxs-subject-layout>
|
|
180
|
+
`}},exports.QxsBlankFill.styles=[a.sortingCardStyles,l.subjectHostStyles,l.subjectControlResetStyles,l.subjectPreviewBaseStyles,l.subjectFormBaseStyles,l.subjectTextareaStyles,t.css`
|
|
181
|
+
.preview-note {
|
|
182
|
+
margin-top: 18px;
|
|
183
|
+
padding-left: 10px;
|
|
184
|
+
border-left: 2px solid #e5eaf3;
|
|
185
|
+
font-size: 13px;
|
|
186
|
+
line-height: 1.8;
|
|
187
|
+
color: #6b7280;
|
|
188
|
+
}
|
|
189
|
+
.preview-filled-title {
|
|
190
|
+
display: inline;
|
|
191
|
+
font-size: 16px;
|
|
192
|
+
line-height: 1.9;
|
|
193
|
+
font-weight: 600;
|
|
194
|
+
color: #303133;
|
|
195
|
+
}
|
|
196
|
+
.inline-blank {
|
|
197
|
+
display: inline-flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
min-width: 64px;
|
|
200
|
+
margin: 0 4px;
|
|
201
|
+
padding: 0 4px 1px;
|
|
202
|
+
border-bottom: 1px solid #d6deea;
|
|
203
|
+
font-size: 14px;
|
|
204
|
+
line-height: 1.6;
|
|
205
|
+
font-weight: 500;
|
|
206
|
+
color: #8b95a7;
|
|
207
|
+
vertical-align: baseline;
|
|
208
|
+
}
|
|
209
|
+
.inline-blank.empty {
|
|
210
|
+
color: transparent;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.flex { display: flex; }
|
|
214
|
+
.flex-wrap { flex-wrap: wrap; }
|
|
215
|
+
.flex-items-center { display: flex; align-items: center; }
|
|
216
|
+
.flex-items-start { display: flex; align-items: flex-start; }
|
|
217
|
+
.flex-justify-end { display: flex; justify-content: flex-end; }
|
|
218
|
+
.edit-actions {
|
|
219
|
+
display: flex;
|
|
220
|
+
justify-content: flex-end;
|
|
221
|
+
padding-left: 88px;
|
|
222
|
+
}
|
|
223
|
+
.edit-inline {
|
|
224
|
+
display: flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
flex-wrap: wrap;
|
|
227
|
+
gap: 8px 14px;
|
|
228
|
+
min-height: 32px;
|
|
229
|
+
}
|
|
230
|
+
.edit-note {
|
|
231
|
+
font-size: 12px;
|
|
232
|
+
line-height: 1.6;
|
|
233
|
+
color: #909399;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.el-tag {
|
|
237
|
+
display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
|
|
238
|
+
font-size: 12px; line-height: 1; color: #3D61E3; background: #ecf5ff;
|
|
239
|
+
border: 1px solid #d9ecff; border-radius: 4px; white-space: nowrap;
|
|
240
|
+
}
|
|
241
|
+
.el-tag .el-tag__close {
|
|
242
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
243
|
+
margin-left: 4px; width: 16px; height: 16px; border-radius: 50%;
|
|
244
|
+
font-size: 12px; color: #909399; cursor: pointer; transition: all .2s;
|
|
245
|
+
}
|
|
246
|
+
.el-tag .el-tag__close:hover { background: #909399; color: #fff; }
|
|
247
|
+
|
|
248
|
+
.el-button--small {
|
|
249
|
+
display: inline-flex; align-items: center; gap: 4px;
|
|
250
|
+
height: 28px; padding: 0 10px; font-size: 12px; line-height: 1;
|
|
251
|
+
border: 1px solid #dcdfe6; border-radius: 6px; background: #fff; color: #606266;
|
|
252
|
+
cursor: pointer; transition: all .2s; white-space: nowrap;
|
|
253
|
+
}
|
|
254
|
+
.el-button--small:hover { color: #3D61E3; border-color: #c6e2ff; background-color: #ecf5ff; }
|
|
255
|
+
|
|
256
|
+
.el-link { color: #3D61E3; cursor: pointer; font-size: 12px; text-decoration: none; }
|
|
257
|
+
.el-link:hover { color: #2D4CB8; }
|
|
258
|
+
.el-link.is-disabled { color: #c0c4cc; cursor: not-allowed; }
|
|
259
|
+
|
|
260
|
+
.el-input--small {
|
|
261
|
+
width: 80px;
|
|
262
|
+
height: 28px;
|
|
263
|
+
padding: 0 8px;
|
|
264
|
+
font-size: 12px;
|
|
265
|
+
line-height: 24px;
|
|
266
|
+
color: #606266;
|
|
267
|
+
background: #fff;
|
|
268
|
+
border: 1px solid #dcdfe6;
|
|
269
|
+
border-radius: 6px;
|
|
270
|
+
box-sizing: border-box;
|
|
271
|
+
font-family: inherit;
|
|
272
|
+
}
|
|
273
|
+
.el-input--small:focus { border-color: #3D61E3; outline: none; }
|
|
274
|
+
|
|
275
|
+
.title-input textarea {
|
|
276
|
+
padding-bottom: 38px;
|
|
277
|
+
}
|
|
278
|
+
.title-input-actions {
|
|
279
|
+
position: absolute;
|
|
280
|
+
right: 12px;
|
|
281
|
+
bottom: 8px;
|
|
282
|
+
display: inline-flex;
|
|
283
|
+
align-items: center;
|
|
284
|
+
gap: 12px;
|
|
285
|
+
}
|
|
286
|
+
.title-input .char-counter {
|
|
287
|
+
position: static;
|
|
288
|
+
color: #909399;
|
|
289
|
+
}
|
|
290
|
+
.title-input-insert {
|
|
291
|
+
border: none;
|
|
292
|
+
background: none;
|
|
293
|
+
padding: 0;
|
|
294
|
+
margin: 0;
|
|
295
|
+
color: #3D61E3;
|
|
296
|
+
cursor: pointer;
|
|
297
|
+
font-size: 12px;
|
|
298
|
+
font-family: inherit;
|
|
299
|
+
line-height: 1;
|
|
300
|
+
white-space: nowrap;
|
|
301
|
+
}
|
|
302
|
+
.title-input-insert:hover { color: #2D4CB8; }
|
|
303
|
+
|
|
304
|
+
.el-checkbox {
|
|
305
|
+
display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
|
|
306
|
+
font-size: 13px; color: #606266; user-select: none; margin-right: 16px;
|
|
307
|
+
}
|
|
308
|
+
.el-checkbox input[type="checkbox"] {
|
|
309
|
+
width: 14px; height: 14px; cursor: pointer; accent-color: #3D61E3;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.answer-item {
|
|
313
|
+
display: grid;
|
|
314
|
+
grid-template-columns: 70px minmax(0, 1fr);
|
|
315
|
+
gap: 8px 12px;
|
|
316
|
+
align-items: start;
|
|
317
|
+
}
|
|
318
|
+
.answer-item-label {
|
|
319
|
+
min-width: 0;
|
|
320
|
+
align-self: center;
|
|
321
|
+
font-size: 13px;
|
|
322
|
+
line-height: 1.5;
|
|
323
|
+
font-weight: 600;
|
|
324
|
+
color: #6b7280;
|
|
325
|
+
letter-spacing: 0;
|
|
326
|
+
}
|
|
327
|
+
.answer-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; min-height: 28px; }
|
|
328
|
+
.answer-section { display: flex; flex-direction: column; gap: 10px; }
|
|
329
|
+
.answer-section-row > .label { padding-top: 0; }
|
|
330
|
+
|
|
331
|
+
.value-text { font-size: 13px; color: #606266; white-space: pre-wrap; }
|
|
332
|
+
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 32px; }
|
|
333
|
+
.tag-item {
|
|
334
|
+
display: inline-flex; align-items: center; gap: 4px;
|
|
335
|
+
padding: 4px 8px; font-size: 12px; line-height: 1;
|
|
336
|
+
color: #3D61E3; background: #ecf5ff; border: 1px solid #d9ecff; border-radius: 4px;
|
|
337
|
+
}
|
|
338
|
+
.tag-item .close { cursor: pointer; color: #909399; }
|
|
339
|
+
.tag-item .close:hover { color: #f56c6c; }
|
|
340
|
+
.tag-hint { font-size: 12px; color: #909399; }
|
|
341
|
+
|
|
342
|
+
.el-select {
|
|
343
|
+
width: 150px; height: 34px; border: 1px solid #dcdfe6; border-radius: 6px;
|
|
344
|
+
padding: 0 8px; font-size: 13px; background: #fff; appearance: none;
|
|
345
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c0c4cc' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
|
|
346
|
+
background-repeat: no-repeat; background-position: right 8px center;
|
|
347
|
+
}
|
|
348
|
+
.el-select:focus { border-color: #3D61E3; outline: none; }
|
|
349
|
+
.el-select:disabled { background: #f5f7fa; color: #c0c4cc; cursor: not-allowed; }
|
|
350
|
+
|
|
351
|
+
.resource-summary { font-size: 12px; color: #606266; }
|
|
352
|
+
.resource-thumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
|
|
353
|
+
.resource-thumb {
|
|
354
|
+
width: 72px; height: 72px; object-fit: cover; border-radius: 6px;
|
|
355
|
+
border: 1px solid #e4e7ed; background: #f5f7fa;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
@media (max-width: 720px) {
|
|
359
|
+
.edit-row,
|
|
360
|
+
.section-row {
|
|
361
|
+
flex-direction: column;
|
|
362
|
+
gap: 8px;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.edit-row > .label,
|
|
366
|
+
.section-row > .label {
|
|
367
|
+
min-width: 0;
|
|
368
|
+
padding-top: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.edit-actions {
|
|
372
|
+
padding-left: 0;
|
|
373
|
+
justify-content: flex-start;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.answer-item {
|
|
377
|
+
flex-direction: column;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.answer-item-label {
|
|
381
|
+
min-width: 0;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
`],d([e.property({type:Number,attribute:"order-index"})],exports.QxsBlankFill.prototype,"order-index",2),d([e.property({type:String,attribute:"subject-prefix"})],exports.QxsBlankFill.prototype,"subject-prefix",2),d([e.property({type:String})],exports.QxsBlankFill.prototype,"title",2),d([e.property({type:String,attribute:"custom-id"})],exports.QxsBlankFill.prototype,"custom-id",2),d([e.property({type:Boolean,attribute:"is-edit"})],exports.QxsBlankFill.prototype,"is-edit",2),d([e.property({type:Boolean,attribute:"is-save"})],exports.QxsBlankFill.prototype,"is-save",2),d([e.property({type:Boolean,attribute:"is-set"})],exports.QxsBlankFill.prototype,"is-set",2),d([e.property({type:Boolean,attribute:"is-key"})],exports.QxsBlankFill.prototype,"is-key",2),d([e.property({type:Boolean,attribute:"show-action"})],exports.QxsBlankFill.prototype,"show-action",2),d([e.property({type:Boolean,attribute:"show-add"})],exports.QxsBlankFill.prototype,"show-add",2),d([e.property({type:Boolean,attribute:"hide-add-rich-text"})],exports.QxsBlankFill.prototype,"hide-add-rich-text",2),d([e.property({type:Boolean,attribute:"show-rich-text"})],exports.QxsBlankFill.prototype,"show-rich-text",2),d([e.property({type:Boolean,attribute:"show-delete-action"})],exports.QxsBlankFill.prototype,"show-delete-action",2),d([e.property({type:Boolean,attribute:"show-save-action"})],exports.QxsBlankFill.prototype,"show-save-action",2),d([e.property({type:Boolean,reflect:!0})],exports.QxsBlankFill.prototype,"sorting",2),d([e.property({type:Boolean,attribute:"show-answer-setting"})],exports.QxsBlankFill.prototype,"show-answer-setting",2),d([e.property({type:Boolean,attribute:"show-analysis"})],exports.QxsBlankFill.prototype,"show-analysis",2),d([e.property({type:String,attribute:"rich-text-content"})],exports.QxsBlankFill.prototype,"rich-text-content",2),d([e.property({type:String})],exports.QxsBlankFill.prototype,"analysis",2),d([e.property({type:Number,attribute:"exam-answer-relation-type"})],exports.QxsBlankFill.prototype,"exam-answer-relation-type",2),d([e.property({type:String,attribute:"exam-expand"})],exports.QxsBlankFill.prototype,"exam-expand",2),d([e.property({type:Number,attribute:"exam-id"})],exports.QxsBlankFill.prototype,"exam-id",2),d([e.property({type:String,attribute:"category-id"})],exports.QxsBlankFill.prototype,"category-id",2),d([e.property({type:Object,attribute:"exam-answer-setting"})],exports.QxsBlankFill.prototype,"exam-answer-setting",2),d([e.property({type:Object,attribute:"upload-image"})],exports.QxsBlankFill.prototype,"upload-image",2),d([e.property({type:Array,attribute:"answer-list"})],exports.QxsBlankFill.prototype,"answer-list",2),d([e.property({type:Array,attribute:"tag-list"})],exports.QxsBlankFill.prototype,"tag-list",2),d([e.property({type:Array,attribute:"category-list"})],exports.QxsBlankFill.prototype,"category-list",2),d([e.property({type:Array,attribute:"resource-list"})],exports.QxsBlankFill.prototype,"resource-list",2),d([e.property({type:Boolean,attribute:"show-tag"})],exports.QxsBlankFill.prototype,"show-tag",2),d([e.property({type:Boolean,attribute:"show-category"})],exports.QxsBlankFill.prototype,"show-category",2),d([e.property({type:Boolean,attribute:"show-resource"})],exports.QxsBlankFill.prototype,"show-resource",2),d([e.property({type:String,attribute:"model-value"})],exports.QxsBlankFill.prototype,"model-value",2),d([e.property({type:Boolean,attribute:"use-model"})],exports.QxsBlankFill.prototype,"use-model",2),d([e.state()],exports.QxsBlankFill.prototype,"_title",2),d([e.state()],exports.QxsBlankFill.prototype,"_analysis",2),d([e.state()],exports.QxsBlankFill.prototype,"_answers",2),d([e.state()],exports.QxsBlankFill.prototype,"_isInOrder",2),d([e.state()],exports.QxsBlankFill.prototype,"_isIgnoreCase",2),d([e.state()],exports.QxsBlankFill.prototype,"_showRichText",2),d([e.state()],exports.QxsBlankFill.prototype,"_richText",2),d([e.state()],exports.QxsBlankFill.prototype,"_selectedTagList",2),d([e.state()],exports.QxsBlankFill.prototype,"_categoryId",2),exports.QxsBlankFill=d([i.safeCustomElement("qxs-blank-fill")],exports.QxsBlankFill);
|
|
385
|
+
//# sourceMappingURL=blank-fill.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blank-fill.cjs","sources":["../../../../packages/components/src/subject/blank-fill.ts"],"sourcesContent":["import { css, html, LitElement } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport { safeCustomElement } from '../base/define'\nimport { SUB_TEXT_EDITOR_TOOLBAR } from '../editor/toolbar'\nimport { buildSubjectSortingTitle, emitSubjectEvent, emitSubjectModelValue, getSubjectImageResources, getSubjectVideoResource, resolveSubjectCategoryLabel, showSubjectToast } from './shared-methods'\nimport { subjectControlResetStyles, subjectFormBaseStyles, subjectHostStyles, subjectPreviewBaseStyles, subjectTextareaStyles } from './shared-styles'\nimport { type Category, type Resource, SubjectError, type TagItem, trimCommaSeparatedText, trimText } from './single'\nimport { renderSortingCard, sortingCardStyles } from './sorting-card'\nimport { resolveSubjectPrefix } from './title-prefix'\nimport { SubjectType, SubjectTypeLabel } from './types'\n\ninterface BlankAnswer {\n title: string\n tag: string\n showInput: boolean\n answerId?: string | number\n}\n\nconst BLANK_TOKEN = ' ______'\n\nconst iconPlus = html`\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\"\n stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"/>\n </svg>`\n\n@safeCustomElement('qxs-blank-fill')\nexport class QxsBlankFill extends LitElement {\n static styles = [sortingCardStyles, subjectHostStyles, subjectControlResetStyles, subjectPreviewBaseStyles, subjectFormBaseStyles, subjectTextareaStyles, css`\n .preview-note {\n margin-top: 18px;\n padding-left: 10px;\n border-left: 2px solid #e5eaf3;\n font-size: 13px;\n line-height: 1.8;\n color: #6b7280;\n }\n .preview-filled-title {\n display: inline;\n font-size: 16px;\n line-height: 1.9;\n font-weight: 600;\n color: #303133;\n }\n .inline-blank {\n display: inline-flex;\n align-items: center;\n min-width: 64px;\n margin: 0 4px;\n padding: 0 4px 1px;\n border-bottom: 1px solid #d6deea;\n font-size: 14px;\n line-height: 1.6;\n font-weight: 500;\n color: #8b95a7;\n vertical-align: baseline;\n }\n .inline-blank.empty {\n color: transparent;\n }\n\n .flex { display: flex; }\n .flex-wrap { flex-wrap: wrap; }\n .flex-items-center { display: flex; align-items: center; }\n .flex-items-start { display: flex; align-items: flex-start; }\n .flex-justify-end { display: flex; justify-content: flex-end; }\n .edit-actions {\n display: flex;\n justify-content: flex-end;\n padding-left: 88px;\n }\n .edit-inline {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px 14px;\n min-height: 32px;\n }\n .edit-note {\n font-size: 12px;\n line-height: 1.6;\n color: #909399;\n }\n\n .el-tag {\n display: inline-flex; align-items: center; height: 24px; padding: 0 9px;\n font-size: 12px; line-height: 1; color: #3D61E3; background: #ecf5ff;\n border: 1px solid #d9ecff; border-radius: 4px; white-space: nowrap;\n }\n .el-tag .el-tag__close {\n display: inline-flex; align-items: center; justify-content: center;\n margin-left: 4px; width: 16px; height: 16px; border-radius: 50%;\n font-size: 12px; color: #909399; cursor: pointer; transition: all .2s;\n }\n .el-tag .el-tag__close:hover { background: #909399; color: #fff; }\n\n .el-button--small {\n display: inline-flex; align-items: center; gap: 4px;\n height: 28px; padding: 0 10px; font-size: 12px; line-height: 1;\n border: 1px solid #dcdfe6; border-radius: 6px; background: #fff; color: #606266;\n cursor: pointer; transition: all .2s; white-space: nowrap;\n }\n .el-button--small:hover { color: #3D61E3; border-color: #c6e2ff; background-color: #ecf5ff; }\n\n .el-link { color: #3D61E3; cursor: pointer; font-size: 12px; text-decoration: none; }\n .el-link:hover { color: #2D4CB8; }\n .el-link.is-disabled { color: #c0c4cc; cursor: not-allowed; }\n\n .el-input--small {\n width: 80px;\n height: 28px;\n padding: 0 8px;\n font-size: 12px;\n line-height: 24px;\n color: #606266;\n background: #fff;\n border: 1px solid #dcdfe6;\n border-radius: 6px;\n box-sizing: border-box;\n font-family: inherit;\n }\n .el-input--small:focus { border-color: #3D61E3; outline: none; }\n\n .title-input textarea {\n padding-bottom: 38px;\n }\n .title-input-actions {\n position: absolute;\n right: 12px;\n bottom: 8px;\n display: inline-flex;\n align-items: center;\n gap: 12px;\n }\n .title-input .char-counter {\n position: static;\n color: #909399;\n }\n .title-input-insert {\n border: none;\n background: none;\n padding: 0;\n margin: 0;\n color: #3D61E3;\n cursor: pointer;\n font-size: 12px;\n font-family: inherit;\n line-height: 1;\n white-space: nowrap;\n }\n .title-input-insert:hover { color: #2D4CB8; }\n\n .el-checkbox {\n display: inline-flex; align-items: center; gap: 6px; cursor: pointer;\n font-size: 13px; color: #606266; user-select: none; margin-right: 16px;\n }\n .el-checkbox input[type=\"checkbox\"] {\n width: 14px; height: 14px; cursor: pointer; accent-color: #3D61E3;\n }\n\n .answer-item {\n display: grid;\n grid-template-columns: 70px minmax(0, 1fr);\n gap: 8px 12px;\n align-items: start;\n }\n .answer-item-label {\n min-width: 0;\n align-self: center;\n font-size: 13px;\n line-height: 1.5;\n font-weight: 600;\n color: #6b7280;\n letter-spacing: 0;\n }\n .answer-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; min-height: 28px; }\n .answer-section { display: flex; flex-direction: column; gap: 10px; }\n .answer-section-row > .label { padding-top: 0; }\n\n .value-text { font-size: 13px; color: #606266; white-space: pre-wrap; }\n .tag-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 32px; }\n .tag-item {\n display: inline-flex; align-items: center; gap: 4px;\n padding: 4px 8px; font-size: 12px; line-height: 1;\n color: #3D61E3; background: #ecf5ff; border: 1px solid #d9ecff; border-radius: 4px;\n }\n .tag-item .close { cursor: pointer; color: #909399; }\n .tag-item .close:hover { color: #f56c6c; }\n .tag-hint { font-size: 12px; color: #909399; }\n\n .el-select {\n width: 150px; height: 34px; border: 1px solid #dcdfe6; border-radius: 6px;\n padding: 0 8px; font-size: 13px; background: #fff; appearance: none;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c0c4cc' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E\");\n background-repeat: no-repeat; background-position: right 8px center;\n }\n .el-select:focus { border-color: #3D61E3; outline: none; }\n .el-select:disabled { background: #f5f7fa; color: #c0c4cc; cursor: not-allowed; }\n\n .resource-summary { font-size: 12px; color: #606266; }\n .resource-thumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }\n .resource-thumb {\n width: 72px; height: 72px; object-fit: cover; border-radius: 6px;\n border: 1px solid #e4e7ed; background: #f5f7fa;\n }\n\n @media (max-width: 720px) {\n .edit-row,\n .section-row {\n flex-direction: column;\n gap: 8px;\n }\n\n .edit-row > .label,\n .section-row > .label {\n min-width: 0;\n padding-top: 0;\n }\n\n .edit-actions {\n padding-left: 0;\n justify-content: flex-start;\n }\n\n .answer-item {\n flex-direction: column;\n }\n\n .answer-item-label {\n min-width: 0;\n }\n }\n `]\n\n @property({ type: Number, attribute: 'order-index' }) 'order-index' = 0\n @property({ type: String, attribute: 'subject-prefix' }) 'subject-prefix'?: string\n @property({ type: String }) title = ''\n @property({ type: String, attribute: 'custom-id' }) 'custom-id' = ''\n @property({ type: Boolean, attribute: 'is-edit' }) 'is-edit' = false\n @property({ type: Boolean, attribute: 'is-save' }) 'is-save' = false\n @property({ type: Boolean, attribute: 'is-set' }) 'is-set' = false\n @property({ type: Boolean, attribute: 'is-key' }) 'is-key' = false\n @property({ type: Boolean, attribute: 'show-action' }) 'show-action' = true\n @property({ type: Boolean, attribute: 'show-add' }) 'show-add' = true\n @property({ type: Boolean, attribute: 'hide-add-rich-text' }) 'hide-add-rich-text' = false\n @property({ type: Boolean, attribute: 'show-rich-text' }) 'show-rich-text' = false\n @property({ type: Boolean, attribute: 'show-delete-action' }) 'show-delete-action' = true\n @property({ type: Boolean, attribute: 'show-save-action' }) 'show-save-action' = true\n @property({ type: Boolean, reflect: true }) sorting = false\n @property({ type: Boolean, attribute: 'show-answer-setting' }) 'show-answer-setting' = false\n @property({ type: Boolean, attribute: 'show-analysis' }) 'show-analysis' = false\n @property({ type: String, attribute: 'rich-text-content' }) 'rich-text-content' = ''\n @property({ type: String }) analysis = ''\n @property({ type: Number, attribute: 'exam-answer-relation-type' }) 'exam-answer-relation-type' = 0\n @property({ type: String, attribute: 'exam-expand' }) 'exam-expand' = ''\n @property({ type: Number, attribute: 'exam-id' }) 'exam-id' = 0\n @property({ type: String, attribute: 'category-id' }) 'category-id' = ''\n @property({ type: Object, attribute: 'exam-answer-setting' })\n 'exam-answer-setting': { isInOrder: boolean, isIgnoreCase: boolean } = { isInOrder: false, isIgnoreCase: true }\n\n @property({ type: Object, attribute: 'upload-image' })\n 'upload-image': (file: File) => Promise<string> = async (file: File) => {\n return new Promise((resolve, reject) => {\n const reader = new FileReader()\n reader.onload = e => resolve(e.target?.result as string)\n reader.onerror = reject\n reader.readAsDataURL(file)\n })\n }\n\n @property({ type: Array, attribute: 'answer-list' }) 'answer-list': any[] = []\n @property({ type: Array, attribute: 'tag-list' }) 'tag-list': TagItem[] = []\n @property({ type: Array, attribute: 'category-list' }) 'category-list': Category[] = []\n @property({ type: Array, attribute: 'resource-list' }) 'resource-list': Resource[] = []\n @property({ type: Boolean, attribute: 'show-tag' }) 'show-tag' = false\n @property({ type: Boolean, attribute: 'show-category' }) 'show-category' = false\n @property({ type: Boolean, attribute: 'show-resource' }) 'show-resource' = false\n\n @property({ type: String, attribute: 'model-value' }) 'model-value' = ''\n @property({ type: Boolean, attribute: 'use-model' }) 'use-model' = false\n\n @state() private _title = ''\n @state() private _analysis = ''\n @state() private _answers: BlankAnswer[] = [{ title: '', tag: '', showInput: false }]\n @state() private _isInOrder = false\n @state() private _isIgnoreCase = true\n @state() private _showRichText = false\n @state() private _richText = ''\n @state() private _selectedTagList: TagItem[] = []\n @state() private _categoryId = ''\n\n private readonly TITLE_MAX = 400\n\n willUpdate(changed: Map<string, unknown>) {\n if (changed.has('is-edit') && this['is-edit']) { this._syncProps() }\n if (!this['is-edit'] && (changed.has('title') || changed.has('answer-list') || changed.has('analysis') || changed.has('exam-answer-setting') || changed.has('rich-text-content') || changed.has('tag-list') || changed.has('category-id'))) {\n this._syncProps()\n }\n if (changed.has('model-value') && this['use-model']) {\n this._title = this['model-value'].replaceAll(/<filter><\\/filter>/g, ' ______')\n }\n if (changed.has('tag-list')) {\n this._selectedTagList = Array.isArray(this['tag-list']) ? this['tag-list'].map(item => ({ ...item })) : []\n }\n if (changed.has('category-id')) {\n this._categoryId = this['category-id'] ? String(this['category-id']) : ''\n }\n }\n\n private _normalizeAnswerTitle(answer: any) {\n return trimCommaSeparatedText(answer?.title ?? answer?.answer ?? '')\n }\n\n private _blankCount(value: string) {\n return (value.match(/ ______/g) || []).length\n }\n\n private _syncAnswersToBlankCount(blankCount: number) {\n if (blankCount === this._answers.length) { return }\n if (blankCount > this._answers.length) {\n this._answers = [\n ...this._answers,\n ...Array.from({ length: blankCount - this._answers.length }, () => ({ title: '', tag: '', showInput: false })),\n ]\n return\n }\n this._answers = this._answers.slice(0, blankCount)\n }\n\n private _syncProps() {\n this._title = (this.title || '').replaceAll(/<filter><\\/filter>/g, ' ______')\n this._analysis = this.analysis || ''\n if (this['answer-list']?.length) {\n this._answers = this['answer-list'].map((a: any) => ({\n title: this._normalizeAnswerTitle(a),\n tag: '',\n showInput: false,\n answerId: a?.answerId ?? a?.examAnswerId,\n }))\n }\n else {\n const blankCount = this._blankCount(this._title)\n this._answers = Array.from({ length: blankCount }, () => ({ title: '', tag: '', showInput: false }))\n }\n if (this['exam-answer-setting']) {\n this._isInOrder = !!this['exam-answer-setting'].isInOrder\n this._isIgnoreCase = !!this['exam-answer-setting'].isIgnoreCase\n }\n this._richText = this['rich-text-content'] || ''\n this._showRichText = !!this['rich-text-content']\n this._selectedTagList = Array.isArray(this['tag-list']) ? this['tag-list'].map(item => ({ ...item })) : []\n this._categoryId = this['category-id'] ? String(this['category-id']) : ''\n }\n\n private _emit(name: string, detail?: unknown) {\n emitSubjectEvent(this, name, detail)\n }\n\n private _addBlank() {\n const textarea = this.shadowRoot?.querySelector('.title-textarea') as HTMLTextAreaElement | null\n const start = textarea?.selectionStart ?? this._title.length\n const end = textarea?.selectionEnd ?? this._title.length\n const nextTitle = `${this._title.slice(0, start)}${BLANK_TOKEN}${this._title.slice(end)}`\n if (nextTitle.length > this.TITLE_MAX) { return }\n this._title = nextTitle\n this._syncAnswersToBlankCount(this._blankCount(this._title))\n this.requestUpdate()\n this._emitModelUpdate()\n this.updateComplete.then(() => {\n const nextTextarea = this.shadowRoot?.querySelector('.title-textarea') as HTMLTextAreaElement | null\n if (!nextTextarea) { return }\n const cursor = start + BLANK_TOKEN.length\n nextTextarea.focus()\n nextTextarea.setSelectionRange(cursor, cursor)\n })\n }\n\n private _onTitleInput(e: Event) {\n const el = e.target as HTMLTextAreaElement\n if (el.value.length > this.TITLE_MAX) { el.value = el.value.slice(0, this.TITLE_MAX) }\n this._title = el.value\n this._syncAnswersToBlankCount(this._blankCount(this._title))\n this._emitModelUpdate()\n }\n\n private _emitModelUpdate() {\n if (this['use-model']) {\n const modelValue = this._title.replaceAll(/ ______/g, '<filter></filter>')\n emitSubjectModelValue(this, modelValue)\n }\n }\n\n private _handleAddTag(item: BlankAnswer) {\n item.showInput = false\n if (item.tag) {\n item.title = item.title ? [item.title, item.tag].join(',') : item.tag\n item.tag = ''\n }\n this.requestUpdate()\n }\n\n private _closeTag(tag: string, item: BlankAnswer) {\n if (!tag) { return }\n const tags = item.title.split(',')\n const idx = tags.findIndex((t: string) => t === tag)\n if (idx > -1) {\n tags.splice(idx, 1)\n item.title = tags.join(',')\n }\n this.requestUpdate()\n }\n\n private _onCategoryChange(value: string) {\n this._categoryId = value\n this._emit('category-change', {\n value,\n customId: this['custom-id'] || '',\n examId: this['exam-id'] || 0,\n })\n }\n\n private _imageResources() {\n return getSubjectImageResources(this['resource-list'] || [])\n }\n\n private _videoResource() {\n return getSubjectVideoResource(this['resource-list'] || [])\n }\n\n private _categoryLabel() {\n return resolveSubjectCategoryLabel(this['category-list'], this._categoryId)\n }\n\n private _previewAnswerText(answer?: BlankAnswer) {\n const values = (answer?.title || '')\n .split(',')\n .map(item => item.trim())\n .filter(Boolean)\n return values.length ? values.join(' / ') : ''\n }\n\n private _renderInlineBlankTitle(previewAnswers: BlankAnswer[]) {\n const displayTitle = this.title.replaceAll(/<filter><\\/filter>/g, ' ______')\n const prefix = resolveSubjectPrefix(this['subject-prefix'], `${this['order-index'] + 1}.`)\n const segments = displayTitle.split(' ______')\n return html`<span class=\"title preview-filled-title\">${prefix ? `${prefix} ` : ''}${segments[0] ?? ''}${segments.slice(1).map((segment, index) => {\n const answer = this._previewAnswerText(previewAnswers[index])\n return html`<span class=\"inline-blank ${answer ? '' : 'empty'}\">${answer || '填空'}</span>${segment}`\n })}</span>`\n }\n\n async toJSON(): Promise<any> {\n return new Promise((resolve, reject) => {\n const row = { customId: this['custom-id'] || undefined, answerType: 'blank_fill', orderIndex: this['order-index'] }\n\n const title = trimText(this['is-edit'] ? this._title : this.title?.replaceAll(/<filter><\\/filter>/g, ' ______') || '')\n const answers = this['is-edit']\n ? this._answers\n : (this['answer-list'] || []).map((answer: any) => ({\n ...answer,\n title: this._normalizeAnswerTitle(answer),\n answerId: answer?.answerId ?? answer?.examAnswerId,\n }))\n const analysis = trimText(this['is-edit'] ? this._analysis : this.analysis || '')\n const isInOrder = this['is-edit'] ? this._isInOrder : this['exam-answer-setting']?.isInOrder ?? false\n const isIgnoreCase = this['is-edit'] ? this._isIgnoreCase : this['exam-answer-setting']?.isIgnoreCase ?? true\n const showRichText = this['is-edit'] ? this._showRichText : !!this['rich-text-content']\n const richText = this['is-edit'] ? this._richText : this['rich-text-content'] || ''\n const filledAnswers = answers.filter((answer: any) => this._normalizeAnswerTitle(answer))\n\n if (!title) {\n reject(new SubjectError('题目标题不能为空!', 'EMPTY_TITLE', 'title', row))\n return\n }\n if (answers.length < 1) {\n reject(new SubjectError('至少添加一个填空符!', 'NO_BLANK', 'answers', row))\n return\n }\n\n const result: any = {\n answerType: SubjectType.BLANK_FILL,\n examTypeEnum: SubjectType.BLANK_FILL,\n title: title.replaceAll(/ ______/g, '<filter></filter>'),\n answers: filledAnswers.map((answer: any, index: number) => {\n const title = this._normalizeAnswerTitle(answer)\n const next: any = {\n title,\n answer: title,\n isCorrect: true,\n orderIndex: index + 1,\n }\n if (answer.answerId) {\n next.answerId = answer.answerId\n next.examAnswerId = answer.answerId\n }\n return next\n }),\n analysis,\n isSetCorrectAnswer: filledAnswers.length > 0,\n isKey: this['is-key'],\n examAnswerSettingBO: { isIgnoreCase, isInOrder },\n examAnswerSettingVO: { isIgnoreCase, isInOrder },\n examRichTextContent: showRichText ? richText : '',\n }\n if (this['custom-id']) { result.customId = this['custom-id'] }\n resolve(result)\n })\n }\n\n private async _save(e?: Event) {\n e?.stopImmediatePropagation()\n try {\n const data = await this.toJSON()\n this._emit('save', data)\n }\n catch (err: any) {\n showSubjectToast(err.message)\n }\n }\n\n validate(): SubjectError[] {\n const errors: SubjectError[] = []\n const row = { customId: this['custom-id'] || undefined, answerType: 'blank_fill', orderIndex: this['order-index'] }\n\n const title = trimText(this['is-edit'] ? this._title : this.title?.replaceAll(/<filter><\\/filter>/g, ' ______') || '')\n const answers = this['is-edit'] ? this._answers : (this['answer-list'] || []).map((answer: any) => ({ ...answer, title: this._normalizeAnswerTitle(answer) }))\n\n if (!title) {\n errors.push(new SubjectError('题目标题不能为空!', 'EMPTY_TITLE', 'title', row))\n }\n if (answers.length < 1) {\n errors.push(new SubjectError('至少添加一个填空符!', 'NO_BLANK', 'answers', row))\n }\n\n return errors\n }\n\n private _renderPreview() {\n const previewAnswers = this['is-edit'] ? this._answers : (this['answer-list'] || []).map((answer: any) => ({ ...answer, title: this._normalizeAnswerTitle(answer) }))\n return html`\n <div class=\"preview\">\n <div class=\"preview-header\">\n <div class=\"preview-title-row\">\n ${this._renderInlineBlankTitle(previewAnswers)}\n <span class=\"preview-type\">填空题</span>\n </div>\n ${this['show-rich-text'] && this['rich-text-content'] ? html`<div class=\"rich-text\" .innerHTML=${this['rich-text-content']}></div>` : ''}\n </div>\n ${this.analysis ? html`<div class=\"preview-note\">${this.analysis}</div>` : ''}\n ${this['show-category'] && this._categoryId\n ? html`<div class=\"section-row\"><span class=\"value-text\">分类:${this._categoryLabel()}</span></div>`\n : ''}\n ${this._renderResourceSection()}\n </div>\n `\n }\n\n private _renderCategorySection() {\n if (!this['show-category']) { return '' }\n return html`\n <div class=\"flex flex-items-start section-row\">\n <div class=\"label\"><span>分类:</span></div>\n <div style=\"flex:1\">\n ${this['is-edit']\n ? html`\n <select class=\"el-select\" .value=${String(this._categoryId)}\n @change=${(e: Event) => this._onCategoryChange((e.target as HTMLSelectElement).value)}>\n <option value=\"\">选择分类</option>\n ${this['category-list'].map((item: any) => html`\n <option value=${String(item.categoryId)} ?selected=${String(item.categoryId) === String(this._categoryId)}>${item.title || item.categoryName}</option>\n `)}\n </select>\n `\n : html`<span class=\"value-text\">${this._categoryLabel()}</span>`}\n </div>\n </div>\n `\n }\n\n private _renderResourceSection() {\n if (!this['show-resource']) { return '' }\n const images = this._imageResources()\n const video = this._videoResource()\n return html`\n <div class=\"flex flex-items-start section-row\">\n <div class=\"label\"><span>资源:</span></div>\n <div style=\"flex:1\">\n <div class=\"resource-summary\">图片 ${images.length} 张${video?.url ? ',含视频资源' : ''}</div>\n ${images.length\n ? html`\n <div class=\"resource-thumbs\">\n ${images.slice(0, 4).map(src => html`<img class=\"resource-thumb\" src=${src} alt=\"resource\" />`)}\n </div>\n `\n : ''}\n ${video?.url ? html`<div style=\"margin-top:8px\"><a class=\"el-link\" href=${video.url} target=\"_blank\" rel=\"noreferrer\">查看视频</a></div>` : ''}\n ${!images.length && !video?.url ? html`<div class=\"tag-hint\">暂无资源</div>` : ''}\n </div>\n </div>\n `\n }\n\n private _renderSorting() {\n const title = trimText(this['is-edit'] ? this._title : this.title || '') || '未命名题目'\n const orderText = buildSubjectSortingTitle(this['subject-prefix'], this['order-index'], title)\n return renderSortingCard(orderText, SubjectTypeLabel[SubjectType.BLANK_FILL] || SubjectType.BLANK_FILL)\n }\n\n private _renderEdit() {\n return html`\n <div class=\"edit-form\">\n <div class=\"edit-row\">\n <div class=\"label\"><span>题目:</span></div>\n <div class=\"row-body\">\n <div class=\"el-input title-input\">\n <textarea class=\"title-textarea\" rows=\"3\" .value=${this._title}\n maxlength=${this.TITLE_MAX}\n @input=${(e: Event) => this._onTitleInput(e)}\n placeholder=\"【填空题】请输入问题\"></textarea>\n <div class=\"title-input-actions\">\n <span class=\"char-counter\">${this._title.length}/${this.TITLE_MAX}</span>\n <button type=\"button\" class=\"title-input-insert\" @click=${() => this._addBlank()}>插入填空符</button>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"edit-row section-row\">\n <div class=\"label\"><span>答题设置:</span></div>\n <div class=\"row-body edit-inline\">\n <label class=\"el-checkbox\">\n <input type=\"checkbox\" .checked=${this._isInOrder}\n @change=${(e: Event) => { this._isInOrder = (e.target as HTMLInputElement).checked }} />\n 答案不分顺序\n </label>\n <label class=\"el-checkbox\">\n <input type=\"checkbox\" .checked=${this._isIgnoreCase}\n @change=${(e: Event) => { this._isIgnoreCase = (e.target as HTMLInputElement).checked }} />\n 忽略大小写\n </label>\n </div>\n </div>\n\n <slot name=\"business-tag\"></slot>\n\n ${this._renderCategorySection()}\n\n ${this._renderResourceSection()}\n\n <div class=\"edit-row section-row answer-section-row\">\n <div class=\"label\"><span>参考答案:</span></div>\n <div class=\"row-body\">\n <div class=\"answer-section\">\n <div class=\"edit-note\">每个填空支持多个同义词,录入后会按逗号序列化。</div>\n ${this._answers.map((a, i) => html`\n <div class=\"answer-item\">\n <div class=\"answer-item-label\"><span>第${i + 1}空:</span></div>\n <div class=\"answer-tags\">\n ${a.title.split(',').filter(Boolean).map(tag => html`\n <span class=\"el-tag\">\n ${tag}\n <span class=\"el-tag__close\" @click=${() => this._closeTag(tag, a)}>×</span>\n </span>\n `)}\n ${html`\n ${a.showInput\n ? html`\n <input type=\"text\" class=\"el-input--small\"\n @keydown=${(e: KeyboardEvent) => {\n if (e.key === 'Enter') { this._handleAddTag(a) }\n }}\n @input=${(e: Event) => { a.tag = (e.target as HTMLInputElement).value }}\n @blur=${() => this._handleAddTag(a)} />\n `\n : html`\n <span class=\"el-button--small\" @click=${() => { a.showInput = true; this.requestUpdate(); this.updateComplete.then(() => { (this.shadowRoot?.querySelector('.el-input--small') as HTMLInputElement)?.focus() }) }}>\n ${iconPlus}\n <span>${a.title ? '添加同义词' : '添加答案'}</span>\n </span>\n `}\n `}\n </div>\n </div>\n `)}\n </div>\n </div>\n </div>\n\n ${this['show-rich-text'] && this._showRichText\n ? html`\n <div class=\"edit-row section-row\">\n <div class=\"label\"><span>副文本:</span></div>\n <div class=\"row-body\">\n <slot name=\"sub-text\">\n <qxs-blocksuite-editor\n .content=${this._richText}\n .toolbar=${SUB_TEXT_EDITOR_TOOLBAR}\n .upload-image=${this['upload-image']}\n ?is-edit=${true}\n @input=${(e: CustomEvent) => { this._richText = (e.target as any).getContent() }}\n ></qxs-blocksuite-editor>\n </slot>\n ${!this['show-action']\n ? html`\n <div class=\"flex flex-justify-end\" style=\"margin-top:8px\">\n <span class=\"el-link\" style=\"color:#f56c6c\" @click=${() => { this._showRichText = false; this._richText = '' }}>删除富文本</span>\n </div>\n `\n : ''}\n </div>\n </div>\n `\n : ''}\n\n ${this['show-analysis']\n ? html`\n <div class=\"edit-row section-row\">\n <div class=\"label\"><span>解析:</span></div>\n <div class=\"row-body\">\n <div class=\"el-input\">\n <textarea rows=\"2\" .value=${this._analysis}\n @input=${(e: Event) => { this._analysis = (e.target as HTMLTextAreaElement).value }}\n placeholder=\"请输入题目解析\"></textarea>\n </div>\n </div>\n </div>\n `\n : ''}\n </div>\n `\n }\n\n render() {\n if (this.sorting) {\n return this._renderSorting()\n }\n\n const content = this['is-edit']\n ? html`<div slot=\"edit\">${this._renderEdit()}</div>`\n : html`<div slot=\"preview\">${this._renderPreview()}</div>`\n\n return html`\n <qxs-subject-layout .show-edit=${this['is-edit']}>\n ${content}\n ${this['show-action']\n ? html`\n <qxs-subject-action\n .is-edit=${this['is-edit']}\n .is-set=${this['is-set']}\n .show-add=${this['show-add']}\n .show-rich-text=${this['show-rich-text'] && this._showRichText}\n .hide-add-rich-text=${!this['show-rich-text'] || this['hide-add-rich-text']}\n .show-delete-action=${this['show-delete-action']}\n .show-save-action=${this['show-save-action']}\n exam-answer-relation-type=${this['exam-answer-relation-type']}\n @delete=${() => this._emit('delete')}\n @save=${this._save}\n @edit=${() => this._emit('edit')}\n @add=${(e: CustomEvent) => this._emit('add', e.detail)}\n @set-key=${(e: CustomEvent) => { this._emit('set-key', e.detail) }}\n @on-show-rich-text=${() => {\n this._showRichText = !this._showRichText\n if (!this._showRichText) {\n this._richText = ''\n }\n }}\n ></qxs-subject-action>\n `\n : ''}\n <slot name=\"action\"></slot>\n </qxs-subject-layout>\n `\n }\n}\n\nexport function register() {}\n"],"names":["BLANK_TOKEN","iconPlus","html","QxsBlankFill","LitElement","constructor","super","arguments","this","title","sorting","analysis","isInOrder","isIgnoreCase","async","Promise","resolve","reject","reader","FileReader","onload","e","target","result","onerror","readAsDataURL","file","_title","_analysis","_answers","tag","showInput","_isInOrder","_isIgnoreCase","_showRichText","_richText","_selectedTagList","_categoryId","TITLE_MAX","willUpdate","changed","has","_syncProps","replaceAll","Array","isArray","map","item","String","_normalizeAnswerTitle","answer","trimCommaSeparatedText","_blankCount","value","match","length","_syncAnswersToBlankCount","blankCount","from","slice","a","answerId","examAnswerId","_emit","name","detail","emitSubjectEvent","_addBlank","textarea","shadowRoot","querySelector","start","selectionStart","end","selectionEnd","nextTitle","requestUpdate","_emitModelUpdate","updateComplete","then","nextTextarea","cursor","focus","setSelectionRange","_onTitleInput","el","modelValue","emitSubjectModelValue","_handleAddTag","join","_closeTag","tags","split","idx","findIndex","t","splice","_onCategoryChange","customId","examId","_imageResources","getSubjectImageResources","_videoResource","getSubjectVideoResource","_categoryLabel","resolveSubjectCategoryLabel","_previewAnswerText","values","trim","filter","Boolean","_renderInlineBlankTitle","previewAnswers","displayTitle","prefix","resolveSubjectPrefix","segments","segment","index","toJSON","row","answerType","orderIndex","trimText","answers","showRichText","richText","filledAnswers","SubjectError","SubjectType","BLANK_FILL","examTypeEnum","next","isCorrect","isSetCorrectAnswer","isKey","examAnswerSettingBO","examAnswerSettingVO","examRichTextContent","_save","stopImmediatePropagation","data","err","showSubjectToast","message","validate","errors","push","_renderPreview","_renderResourceSection","_renderCategorySection","categoryId","categoryName","images","video","url","src","_renderSorting","orderText","buildSubjectSortingTitle","renderSortingCard","SubjectTypeLabel","_renderEdit","checked","i","key","SUB_TEXT_EDITOR_TOOLBAR","getContent","render","content","styles","sortingCardStyles","subjectHostStyles","subjectControlResetStyles","subjectPreviewBaseStyles","subjectFormBaseStyles","subjectTextareaStyles","css","__decorateClass","property","type","Number","attribute","prototype","reflect","Object","state","safeCustomElement"],"mappings":"sfAkBA,MAAMA,EAAc,UAEdC,EAAWC,EAAAA,IAAA;;;;UAOJC,QAAAA,aAAN,cAA2BC,EAAAA,WAA3BC,WAAAA,GAAAC,SAAAC,WA+MiDC,KAAA,eAAgB,EAE1CA,KAAAC,MAAQ,GACgBD,KAAA,aAAc,GACfA,KAAA,YAAY,EACZA,KAAA,YAAY,EACbA,KAAA,WAAW,EACXA,KAAA,WAAW,EACNA,KAAA,gBAAgB,EACnBA,KAAA,aAAa,EACHA,KAAA,uBAAuB,EAC3BA,KAAA,mBAAmB,EACfA,KAAA,uBAAuB,EACzBA,KAAA,qBAAqB,EACrCA,KAAAE,SAAU,EACSF,KAAA,wBAAwB,EAC9BA,KAAA,kBAAkB,EACfA,KAAA,qBAAsB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AAMtE,QAASwE,UAAW,eA5P3BnL,QAAAA,aA4P0CoL,UAAA,YAAA,GAEpCL,EAAA,CAAhBQ,EAAAA,SA9PUvL,QAAAA,aA8PMoL,UAAA,SAAA,GACAL,EAAA,CAAhBQ,EAAAA,SA/PUvL,QAAAA,aA+PMoL,UAAA,YAAA,GACAL,EAAA,CAAhBQ,EAAAA,SAhQUvL,QAAAA,aAgQMoL,UAAA,WAAA,GACAL,EAAA,CAAhBQ,EAAAA,SAjQUvL,QAAAA,aAiQMoL,UAAA,aAAA,GACAL,EAAA,CAAhBQ,EAAAA,SAlQUvL,QAAAA,aAkQMoL,UAAA,gBAAA,GACAL,EAAA,CAAhBQ,EAAAA,SAnQUvL,QAAAA,aAmQMoL,UAAA,gBAAA,GACAL,EAAA,CAAhBQ,EAAAA,SApQUvL,QAAAA,aAoQMoL,UAAA,YAAA,GACAL,EAAA,CAAhBQ,EAAAA,SArQUvL,QAAAA,aAqQMoL,UAAA,mBAAA,GACAL,EAAA,CAAhBQ,EAAAA,SAtQUvL,QAAAA,aAsQMoL,UAAA,cAAA,GAtQNpL,QAAAA,aAAN+K,EAAA,CADNS,EAAAA,kBAAkB,mBACNxL,QAAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("../base/uid.cjs"),t=require("./types.cjs");function r(e){return Array.from({length:e},(e,t)=>({title:"",orderIndex:t+1}))}exports.createSubjectDraft=function(n){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n===t.SubjectType.PAGE_END)return{customId:e.uid(),answerType:t.SubjectType.PAGE_END};const a={customId:e.uid(),answerType:n,title:"",analysis:"",isEdit:!0,examRichTextContent:""};return n===t.SubjectType.SINGLE||n===t.SubjectType.MULTIPLE||n===t.SubjectType.SORT?{...a,answers:(i=4,Array.from({length:i},()=>({title:"",isCorrect:!1}))),...n===t.SubjectType.SORT?{leastAnswerCount:null,examExpand:""}:{},...null!=s.examAnswerRelationType?{examAnswerRelationType:s.examAnswerRelationType}:{}}:n===t.SubjectType.BLANK_FILL?{...a,answers:[],examAnswerSettingBO:{isInOrder:!1,isIgnoreCase:!0}}:n===t.SubjectType.TEXT_FILL?{...a,answers:[{title:"",tag:"",showInput:!1}],examAnswerSettingBO:{isInOrder:!1,isIgnoreCase:!0},examExpand:""}:n===t.SubjectType.SCALE?{...a,answers:r(5),scaleQuestionList:[]}:{...a,answers:[]};var i};
|
|
2
|
+
//# sourceMappingURL=draft.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft.cjs","sources":["../../../../packages/components/src/subject/draft.ts"],"sourcesContent":["import { uid } from '../base/uid'\nimport { type AnswerType, type SubjectItemType, SubjectType } from './types'\n\nexport interface CreateSubjectDraftOptions {\n examAnswerRelationType?: number | null\n}\n\nfunction createChoiceAnswers(count: number) {\n return Array.from({ length: count }, () => ({ title: '', isCorrect: false }))\n}\n\nfunction createScaleAnswers(count: number) {\n return Array.from({ length: count }, (_, index) => ({ title: '', orderIndex: index + 1 }))\n}\n\nexport function createSubjectDraft(type: SubjectItemType, options: CreateSubjectDraftOptions = {}) {\n if (type === SubjectType.PAGE_END) {\n return {\n customId: uid(),\n answerType: SubjectType.PAGE_END,\n }\n }\n\n const base = {\n customId: uid(),\n answerType: type as AnswerType,\n title: '',\n analysis: '',\n isEdit: true,\n examRichTextContent: '',\n }\n\n if (type === SubjectType.SINGLE || type === SubjectType.MULTIPLE || type === SubjectType.SORT) {\n return {\n ...base,\n answers: createChoiceAnswers(4),\n ...(type === SubjectType.SORT ? { leastAnswerCount: null, examExpand: '' } : {}),\n ...(options.examAnswerRelationType != null ? { examAnswerRelationType: options.examAnswerRelationType } : {}),\n }\n }\n\n if (type === SubjectType.BLANK_FILL) {\n return {\n ...base,\n answers: [],\n examAnswerSettingBO: { isInOrder: false, isIgnoreCase: true },\n }\n }\n\n if (type === SubjectType.TEXT_FILL) {\n return {\n ...base,\n answers: [{ title: '', tag: '', showInput: false }],\n examAnswerSettingBO: { isInOrder: false, isIgnoreCase: true },\n examExpand: '',\n }\n }\n\n if (type === SubjectType.SCALE) {\n return {\n ...base,\n answers: createScaleAnswers(5),\n scaleQuestionList: [],\n }\n }\n\n return {\n ...base,\n answers: [],\n }\n}\n"],"names":["createScaleAnswers","count","Array","from","length","_","index","title","orderIndex","type","options","arguments","undefined","SubjectType","PAGE_END","customId","uid","answerType","base","analysis","isEdit","examRichTextContent","SINGLE","MULTIPLE","SORT","answers","isCorrect","leastAnswerCount","examExpand","examAnswerRelationType","BLANK_FILL","examAnswerSettingBO","isInOrder","isIgnoreCase","TEXT_FILL","tag","showInput","SCALE","scaleQuestionList"],"mappings":"uEAWA,SAASA,EAAmBC,GAC1B,OAAOC,MAAMC,KAAK,CAAEC,OAAQH,GAAS,CAACI,EAAGC,KAAA,CAAaC,MAAO,GAAIC,WAAYF,EAAQ,IACvF,4BAEO,SAA4BG,GAAgE,IAAzCC,EAAAC,UAAAP,OAAA,QAAAQ,IAAAD,UAAA,GAAAA,UAAA,GAAqC,CAAA,EAC7F,GAAIF,IAASI,EAAAA,YAAYC,SACvB,MAAO,CACLC,SAAUC,EAAAA,MACVC,WAAYJ,EAAAA,YAAYC,UAI5B,MAAMI,EAAO,CACXH,SAAUC,EAAAA,MACVC,WAAYR,EACZF,MAAO,GACPY,SAAU,GACVC,QAAQ,EACRC,oBAAqB,IAGvB,OAAIZ,IAASI,cAAYS,QAAUb,IAASI,EAAAA,YAAYU,UAAYd,IAASI,EAAAA,YAAYW,KAChF,IACFN,EACHO,SA5BuBxB,EA4BM,EA3B1BC,MAAMC,KAAK,CAAEC,OAAQH,GAAS,KAAA,CAASM,MAAO,GAAImB,WAAW,SA4B5DjB,IAASI,EAAAA,YAAYW,KAAO,CAAEG,iBAAkB,KAAMC,WAAY,IAAO,MACvC,MAAlClB,EAAQmB,uBAAiC,CAAEA,uBAAwBnB,EAAQmB,wBAA2B,CAAA,GAI1GpB,IAASI,EAAAA,YAAYiB,WAChB,IACFZ,EACHO,QAAS,GACTM,oBAAqB,CAAEC,WAAW,EAAOC,cAAc,IAIvDxB,IAASI,EAAAA,YAAYqB,UAChB,IACFhB,EACHO,QAAS,CAAC,CAAElB,MAAO,GAAI4B,IAAK,GAAIC,WAAW,IAC3CL,oBAAqB,CAAEC,WAAW,EAAOC,cAAc,GACvDL,WAAY,IAIZnB,IAASI,EAAAA,YAAYwB,MAChB,IACFnB,EACHO,QAASzB,EAAmB,GAC5BsC,kBAAmB,IAIhB,IACFpB,EACHO,QAAS,IA7Db,IAA6BxB,CA+D7B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";var t=require("lit"),e=require("lit/decorators.js"),s=require("../base/define.cjs"),o=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=(t,e,s,i)=>{for(var a,l=i>1?void 0:i?r(e,s):e,d=t.length-1;d>=0;d--)(a=t[d])&&(l=(i?a(e,s,l):a(l))||l);return i&&l&&o(e,s,l),l};exports.QxsSubjectLayout=class extends t.LitElement{constructor(){super(...arguments),this["show-edit"]=!1}render(){return this["show-edit"]?t.html`
|
|
2
|
+
<div class="layout">
|
|
3
|
+
<div class="edit">
|
|
4
|
+
<slot name="edit"></slot>
|
|
5
|
+
<slot></slot>
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
`:t.html`
|
|
9
|
+
<div class="layout">
|
|
10
|
+
<div class="preview">
|
|
11
|
+
<slot name="preview"></slot>
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
`}},exports.QxsSubjectLayout.styles=t.css`
|
|
16
|
+
:host { display: block; width: 100%; font-family: inherit; font-size: 12px; color: #5a5a5a; }
|
|
17
|
+
.layout { }
|
|
18
|
+
.preview { padding: 12px 10px 10px; }
|
|
19
|
+
.edit { position: relative; padding: 12px 10px 10px; border-radius: 6px; }
|
|
20
|
+
`,i([e.property({type:Boolean,attribute:"show-edit"})],exports.QxsSubjectLayout.prototype,"show-edit",2),exports.QxsSubjectLayout=i([s.safeCustomElement("qxs-subject-layout")],exports.QxsSubjectLayout);
|
|
21
|
+
//# sourceMappingURL=layout.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.cjs","sources":["../../../../packages/components/src/subject/layout.ts"],"sourcesContent":["import { css, html, LitElement } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { safeCustomElement } from '../base/define'\n\n@safeCustomElement('qxs-subject-layout')\nexport class QxsSubjectLayout extends LitElement {\n static styles = css`\n :host { display: block; width: 100%; font-family: inherit; font-size: 12px; color: #5a5a5a; }\n .layout { }\n .preview { padding: 12px 10px 10px; }\n .edit { position: relative; padding: 12px 10px 10px; border-radius: 6px; }\n `\n\n @property({ type: Boolean, attribute: 'show-edit' }) 'show-edit' = false\n\n render() {\n if (this['show-edit']) {\n return html`\n <div class=\"layout\">\n <div class=\"edit\">\n <slot name=\"edit\"></slot>\n <slot></slot>\n </div>\n </div>\n `\n }\n return html`\n <div class=\"layout\">\n <div class=\"preview\">\n <slot name=\"preview\"></slot>\n <slot></slot>\n </div>\n </div>\n `\n }\n}\n\nexport function register() {}\n"],"names":["QxsSubjectLayout","LitElement","constructor","super","arguments","this","render","html","styles","css","__decorateClass","property","type","Boolean","attribute","prototype","safeCustomElement"],"mappings":"6RAKaA,QAAAA,iBAAN,cAA+BC,EAAAA,WAA/BC,WAAAA,GAAAC,SAAAC,WAQgDC,KAAA,cAAc,CAAA,CAEnEC,MAAAA,GACE,OAAID,KAAK,aACAE,EAAAA,IAAA;;;;;;;QASFA,EAAAA,IAAA;;;;;;;KAQT,GA7BWP,QAAAA,iBACJQ,OAASC,EAAAA,GAAA;;;;;IAOqCC,EAAA,CAApDC,EAAAA,SAAS,CAAEC,KAAMC,QAASC,UAAW,eAR3Bd,QAAAA,iBAQ0Ce,UAAA,YAAA,GAR1Cf,QAAAA,iBAANU,EAAA,CADNM,EAAAA,kBAAkB,uBACNhB,QAAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";var e=require("lit"),t=require("lit/decorators.js"),s=require("../base/define.cjs"),o=require("./sorting-card.cjs"),r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=(e,t,s,o)=>{for(var a,n=o>1?void 0:o?i(t,s):t,d=e.length-1;d>=0;d--)(a=e[d])&&(n=(o?a(t,s,n):a(n))||n);return o&&n&&r(t,s,n),n};exports.QxsPageEnd=class extends e.LitElement{constructor(){super(...arguments),this["current-page-index"]=1,this["total-page"]=1,this["show-action"]=!0,this["show-add"]=!0,this["show-delete-action"]=!0,this["custom-id"]="",this.sorting=!1}_emit(e,t){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,detail:t??null}))}async toJSON(){const e={answerType:"page_end"};return this["custom-id"]&&(e.customId=this["custom-id"]),e}validate(){return[]}render(){return this.sorting?o.renderSortingCard("分页边界",`第${this["current-page-index"]} / ${this["total-page"]}页`):e.html`
|
|
2
|
+
<div class="container">
|
|
3
|
+
<div class="divider">
|
|
4
|
+
<div class="line"></div>
|
|
5
|
+
<span class="label">第${this["current-page-index"]} / ${this["total-page"]}页</span>
|
|
6
|
+
<div class="line"></div>
|
|
7
|
+
</div>
|
|
8
|
+
${this["show-action"]?e.html`
|
|
9
|
+
<qxs-subject-action
|
|
10
|
+
.page-end=${!0}
|
|
11
|
+
.show-add=${this["show-add"]}
|
|
12
|
+
.show-delete-action=${this["show-delete-action"]}
|
|
13
|
+
.show-other-option=${!1}
|
|
14
|
+
.show-rich-text=${!1}
|
|
15
|
+
@delete=${()=>this._emit("delete")}
|
|
16
|
+
@add=${e=>this._emit("add",e.detail)}
|
|
17
|
+
></qxs-subject-action>
|
|
18
|
+
`:""}
|
|
19
|
+
<slot name="action"></slot>
|
|
20
|
+
</div>
|
|
21
|
+
`}},exports.QxsPageEnd.styles=[o.sortingCardStyles,e.css`
|
|
22
|
+
:host { display: block; font-family: inherit; font-size: 12px; }
|
|
23
|
+
.container { width: 100%; }
|
|
24
|
+
.divider { display: flex; align-items: center; padding: 12px 0; }
|
|
25
|
+
.line { flex: 1; height: 1px; background-color: #e4e7ed; }
|
|
26
|
+
.label { padding: 0 12px; font-size: 12px; color: #8c8c8c; }
|
|
27
|
+
`],a([t.property({type:Number,attribute:"current-page-index"})],exports.QxsPageEnd.prototype,"current-page-index",2),a([t.property({type:Number,attribute:"total-page"})],exports.QxsPageEnd.prototype,"total-page",2),a([t.property({type:Boolean,attribute:"show-action"})],exports.QxsPageEnd.prototype,"show-action",2),a([t.property({type:Boolean,attribute:"show-add"})],exports.QxsPageEnd.prototype,"show-add",2),a([t.property({type:Boolean,attribute:"show-delete-action"})],exports.QxsPageEnd.prototype,"show-delete-action",2),a([t.property({type:String,attribute:"custom-id"})],exports.QxsPageEnd.prototype,"custom-id",2),a([t.property({type:Boolean,reflect:!0})],exports.QxsPageEnd.prototype,"sorting",2),exports.QxsPageEnd=a([s.safeCustomElement("qxs-page-end")],exports.QxsPageEnd);
|
|
28
|
+
//# sourceMappingURL=page-end.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-end.cjs","sources":["../../../../packages/components/src/subject/page-end.ts"],"sourcesContent":["import { css, html, LitElement } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { safeCustomElement } from '../base/define'\nimport { renderSortingCard, sortingCardStyles } from './sorting-card'\n\n@safeCustomElement('qxs-page-end')\nexport class QxsPageEnd extends LitElement {\n static styles = [sortingCardStyles, css`\n :host { display: block; font-family: inherit; font-size: 12px; }\n .container { width: 100%; }\n .divider { display: flex; align-items: center; padding: 12px 0; }\n .line { flex: 1; height: 1px; background-color: #e4e7ed; }\n .label { padding: 0 12px; font-size: 12px; color: #8c8c8c; }\n `]\n\n @property({ type: Number, attribute: 'current-page-index' }) 'current-page-index' = 1\n @property({ type: Number, attribute: 'total-page' }) 'total-page' = 1\n @property({ type: Boolean, attribute: 'show-action' }) 'show-action' = true\n @property({ type: Boolean, attribute: 'show-add' }) 'show-add' = true\n @property({ type: Boolean, attribute: 'show-delete-action' }) 'show-delete-action' = true\n @property({ type: String, attribute: 'custom-id' }) 'custom-id' = ''\n @property({ type: Boolean, reflect: true }) sorting = false\n\n private _emit(name: string, detail?: unknown) {\n this.dispatchEvent(new CustomEvent(name, { bubbles: true, composed: true, detail: detail ?? null }))\n }\n\n async toJSON(): Promise<any> {\n const result: any = {\n answerType: 'page_end',\n }\n if (this['custom-id']) {\n result.customId = this['custom-id']\n }\n return result\n }\n\n validate() {\n return []\n }\n\n render() {\n if (this.sorting) {\n return renderSortingCard('分页边界', `第${this['current-page-index']} / ${this['total-page']}页`)\n }\n\n return html`\n <div class=\"container\">\n <div class=\"divider\">\n <div class=\"line\"></div>\n <span class=\"label\">第${this['current-page-index']} / ${this['total-page']}页</span>\n <div class=\"line\"></div>\n </div>\n ${this['show-action']\n ? html`\n <qxs-subject-action\n .page-end=${true}\n .show-add=${this['show-add']}\n .show-delete-action=${this['show-delete-action']}\n .show-other-option=${false}\n .show-rich-text=${false}\n @delete=${() => this._emit('delete')}\n @add=${(e: CustomEvent) => this._emit('add', e.detail)}\n ></qxs-subject-action>\n `\n : ''}\n <slot name=\"action\"></slot>\n </div>\n `\n }\n}\n\nexport function register() {\n // auto-registered via @safeCustomElement\n}\n"],"names":["QxsPageEnd","LitElement","constructor","super","arguments","this","sorting","_emit","name","detail","dispatchEvent","CustomEvent","bubbles","composed","toJSON","result","answerType","customId","validate","render","renderSortingCard","html","e","styles","sortingCardStyles","css","__decorateClass","property","type","Number","attribute","prototype","Boolean","String","reflect","safeCustomElement"],"mappings":"6TAMaA,QAAAA,WAAN,cAAyBC,EAAAA,WAAzBC,WAAAA,GAAAC,SAAAC,WASwDC,KAAA,sBAAuB,EAC/BA,KAAA,cAAe,EACbA,KAAA,gBAAgB,EACnBA,KAAA,aAAa,EACHA,KAAA,uBAAuB,EACjCA,KAAA,aAAc,GACtBA,KAAAC,SAAU,CAAA,CAE9CC,KAAAA,CAAMC,EAAcC,GAC1BJ,K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