@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 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.mjs","sources":["../../../../packages/components/src/subject/pagination.ts"],"sourcesContent":["import { uid } from '../base/uid'\nimport { SubjectType } from './types'\n\nexport interface SubjectLikeItem {\n answerType: string\n customId?: string\n pageIndex?: number\n [key: string]: any\n}\n\nexport interface PageBreakItem extends SubjectLikeItem {\n answerType: 'page_end'\n customId: string\n}\n\nexport interface PaginationMetaItem {\n customId: string\n currentPageIndex: number\n totalPage: number\n itemIndex: number\n}\n\nfunction createPageBreak(): PageBreakItem {\n return {\n customId: uid(),\n answerType: SubjectType.PAGE_END,\n }\n}\n\nexport function isPageBreakItem(item: SubjectLikeItem | null | undefined): item is PageBreakItem {\n return !!item && item.answerType === SubjectType.PAGE_END\n}\n\nexport function normalizePageBreaks(items: SubjectLikeItem[]): SubjectLikeItem[] {\n const normalized = items.map(item => ({ ...item }))\n const compacted: SubjectLikeItem[] = []\n let hasEncounteredQuestion = false\n\n normalized.forEach((item) => {\n if (!item) {\n return\n }\n if (isPageBreakItem(item)) {\n if (!hasEncounteredQuestion) {\n return\n }\n if (isPageBreakItem(compacted[compacted.length - 1])) {\n return\n }\n compacted.push({\n ...item,\n customId: item.customId || uid(),\n })\n return\n }\n hasEncounteredQuestion = true\n compacted.push(item)\n })\n\n while (compacted.length > 0 && isPageBreakItem(compacted[compacted.length - 1])) {\n compacted.pop()\n }\n\n return compacted\n}\n\nexport function rebuildPageBreaksFromPageIndex(items: SubjectLikeItem[]): SubjectLikeItem[] {\n const normalizedItems = items\n .filter(item => !isPageBreakItem(item))\n .map(item => ({ ...item }))\n\n if (!normalizedItems.length) {\n return []\n }\n\n const rebuilt: SubjectLikeItem[] = []\n let lastSourcePageIndex = 1\n\n normalizedItems.forEach((item, index) => {\n const nextPageIndex = Number(item.pageIndex) > 0 ? Number(item.pageIndex) : lastSourcePageIndex\n\n if (index > 0 && nextPageIndex > lastSourcePageIndex) {\n rebuilt.push(createPageBreak())\n }\n\n rebuilt.push(item)\n lastSourcePageIndex = nextPageIndex\n })\n\n return normalizePageBreaks(rebuilt)\n}\n\nexport function serializeSubjectsWithPageIndex(items: SubjectLikeItem[]): SubjectLikeItem[] {\n const serialized: SubjectLikeItem[] = []\n let pageIndex = 1\n let pendingBoundaryCount = 0\n\n items.forEach((item) => {\n if (!item) {\n return\n }\n if (isPageBreakItem(item)) {\n if (serialized.length > 0) {\n pendingBoundaryCount += 1\n }\n return\n }\n if (pendingBoundaryCount > 0) {\n pageIndex += pendingBoundaryCount\n pendingBoundaryCount = 0\n }\n serialized.push({\n ...item,\n pageIndex,\n })\n })\n\n return serialized\n}\n\nexport function insertPageBreak(items: SubjectLikeItem[], index?: number): SubjectLikeItem[] {\n const normalized = normalizePageBreaks(items)\n const next = [...normalized]\n\n if (next.length === 0) {\n return next\n }\n\n if (index === undefined || index < 0 || index >= next.length - 1) {\n next.push(createPageBreak())\n return normalizePageBreaks(next)\n }\n\n next.splice(index + 1, 0, createPageBreak())\n return normalizePageBreaks(next)\n}\n\nexport function removePageBreak(items: SubjectLikeItem[], customId: string): SubjectLikeItem[] {\n return normalizePageBreaks(items.filter(item => !(isPageBreakItem(item) && item.customId === customId)))\n}\n\nexport function getPaginationMeta(items: SubjectLikeItem[]): PaginationMetaItem[] {\n const normalized = normalizePageBreaks(items)\n const totalPage = normalized.filter(item => isPageBreakItem(item)).length + 1\n let currentPageIndex = 1\n\n return normalized.reduce<PaginationMetaItem[]>((result, item, itemIndex) => {\n if (!isPageBreakItem(item)) {\n return result\n }\n result.push({\n customId: item.customId,\n currentPageIndex,\n totalPage,\n itemIndex,\n })\n currentPageIndex += 1\n return result\n }, [])\n}\n"],"names":["createPageBreak","customId","uid","answerType","SubjectType","PAGE_END","isPageBreakItem","item","normalizePageBreaks","items","normalized","map","compacted","hasEncounteredQuestion","forEach","length","push","pop","rebuildPageBreaksFromPageIndex","normalizedItems","filter","rebuilt","lastSourcePageIndex","index","nextPageIndex","Number","pageIndex","serializeSubjectsWithPageIndex","serialized","pendingBoundaryCount","insertPageBreak","next","splice","removePageBreak","getPaginationMeta","totalPage","currentPageIndex","reduce","result","itemIndex"],"mappings":"gFAsBA,SAASA,IACP,MAAO,CACLC,SAAUC,IACVC,WAAYC,EAAYC,SAE5B,CAEO,SAASC,EAAgBC,GAC9B,QAASA,GAAQA,EAAKJ,aAAeC,EAAYC,QACnD,CAEO,SAASG,EAAoBC,GAClC,MAA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f,KAAKhB,KACHQ,EAAoBuB,KAG7BA,EAAKC,OAAOT,EAAQ,EAAG,EAAGvB,KACnBQ,EAAoBuB,GAC7B,CAEO,SAASE,EAAgBxB,EAA0BR,GACxD,OAAOO,EAAoBC,EAAMW,OAAOb,KAAUD,EAAgBC,IAASA,EAAKN,WAAaA,IAC/F,CAEO,SAASiC,EAAkBzB,GAChC,MAAMC,EAAaF,EAAoBC,GACjC0B,EAAYzB,EAAWU,OAAOb,GAAQD,EAAgBC,IAAOQ,OAAS,EAC5E,IAAIqB,EAAmB,EAEvB,OAAO1B,EAAW2B,OAA6B,CAACC,EAAQ/B,EAAMgC,IACvDjC,EAAgBC,IAGrB+B,EAAOtB,KAAK,CACVf,SAAUM,EAAKN,SACfmC,mBACAD,YACAI,cAEFH,GAAoB,EACbE,GATEA,EAUR,GACL"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{serializeSubjectsWithPageIndex as n}from"./pagination.mjs";import{SubjectError as t}from"./single.mjs";const o=["qxs-subject-single","qxs-blank-fill","qxs-text-fill","qxs-scale","qxs-page-end"].join(", ");function e(n){return Array.from(n.querySelectorAll(o))}function r(n){const t=[];for(const o of n){if("function"!=typeof o.validate)continue;const n=o.validate();Array.isArray(n)&&n.length&&t.push(...n)}return{valid:0===t.length,errors:t}}async function s(o){const e=[],r=[];for(const n of o)if("function"==typeof n.toJSON)try{e.push(await n.toJSON())}catch(n){n instanceof t?r.push(n):r.push(new t(n?.message||"未知错误","UNKNOWN","unknown"))}if(r.length)throw r;return n(e)}export{o as SUBJECT_ELEMENT_SELECTOR,e as collectSubjectElements,s as serializeSubjectElements,r as validateSubjectElements};
|
|
2
|
+
//# sourceMappingURL=runtime.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.mjs","sources":["../../../../packages/components/src/subject/runtime.ts"],"sourcesContent":["import { serializeSubjectsWithPageIndex } from './pagination'\nimport { SubjectError } from './single'\n\nexport const SUBJECT_ELEMENT_SELECTOR = [\n 'qxs-subject-single',\n 'qxs-blank-fill',\n 'qxs-text-fill',\n 'qxs-scale',\n 'qxs-page-end',\n].join(', ')\n\nexport type SubjectElement = HTMLElement & {\n toJSON?: () => Promise<any>\n validate?: () => SubjectError[]\n}\n\nexport function collectSubjectElements(root: ParentNode): SubjectElement[] {\n return Array.from(root.querySelectorAll<SubjectElement>(SUBJECT_ELEMENT_SELECTOR))\n}\n\nexport function validateSubjectElements(elements: Iterable<SubjectElement>): { valid: boolean, errors: SubjectError[] } {\n const errors: SubjectError[] = []\n\n for (const element of elements) {\n if (typeof element.validate !== 'function') {\n continue\n }\n const nextErrors = element.validate()\n if (Array.isArray(nextErrors) && nextErrors.length) {\n errors.push(...nextErrors)\n }\n }\n\n return {\n valid: errors.length === 0,\n errors,\n }\n}\n\nexport async function serializeSubjectElements(elements: Iterable<SubjectElement>): Promise<any[]> {\n const results: any[] = []\n const errors: SubjectError[] = []\n\n for (const element of elements) {\n if (typeof element.toJSON !== 'function') {\n continue\n }\n try {\n results.push(await element.toJSON())\n }\n catch (error: any) {\n if (error instanceof SubjectError) {\n errors.push(error)\n }\n else {\n errors.push(new SubjectError(error?.message || '未知错误', 'UNKNOWN', 'unknown'))\n }\n }\n }\n\n if (errors.length) {\n throw errors\n }\n\n return serializeSubjectsWithPageIndex(results)\n}\n"],"names":["SUBJECT_ELEMENT_SELECTOR","join","collectSubjectElements","root","Array","from","querySelectorAll","validateSubjectElements","elements","errors","element","validate","nextErrors","isArray","length","push","valid","async","serializeSubjectElements","results","toJSON","error","SubjectError","message","serializeSubjectsWithPageIndex"],"mappings":"oHAGaA,EAA2B,CACtC,qBACA,iBACA,gBACA,YACA,gBACAC,KAAK,MAOA,SAASC,EAAuBC,GACrC,OAAOC,MAAMC,KAAKF,EAAKG,iBAAiCN,GAC1D,CAEO,SAASO,EAAwBC,GACtC,MAAMC,EAAyB,GAE/B,IAAA,MAAWC,KAAWF,EAAU,CAC9B,GAAgC,mBAArBE,EAAQC,SACjB,SAEF,MAAMC,EAAaF,EAAQC,WACvBP,MAAMS,QAAQD,IAAeA,EAAWE,QAC1CL,EAAOM,QAAQH,EAEnB,CAEA,MAAO,CACLI,MAAyB,IAAlBP,EAAOK,OACdL,SAEJ,CAEAQ,eAAsBC,EAAyBV,GAC7C,MAAMW,EAAiB,GACjBV,EAAyB,GAE/B,IAAA,MAAWC,KAAWF,EACpB,GAA8B,mBAAnBE,EAAQU,OAGnB,IACED,EAAQJ,WAAWL,EAAQU,SAC7B,OACOC,GACDA,aAAiBC,EACnBb,EAAOM,KAAKM,GAGZZ,EAAOM,KAAK,IAAIO,EAAaD,GAAOE,SAAW,OAAQ,UAAW,WAEtE,CAGF,GAAId,EAAOK,OACT,MAAML,EAGR,OAAOe,EAA+BL,EACxC"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import{html as t,css as e,LitElement as i}from"lit";import{property as s,state as r}from"lit/decorators.js";import{safeCustomElement as o}from"../base/define.mjs";import{SUB_TEXT_EDITOR_TOOLBAR as a}from"../editor/toolbar.mjs";import{emitSubjectEvent as n,emitSubjectModelValue as l,showSubjectToast as d,buildSubjectPreviewTitle as h,buildSubjectSortingTitle as c}from"./shared-methods.mjs";import{subjectHostStyles as p,subjectControlResetStyles as u,subjectPreviewBaseStyles as w,subjectFormBaseStyles as x,subjectTextareaStyles as y}from"./shared-styles.mjs";import{SubjectError as m,trimText as v}from"./single.mjs";import{sortingCardStyles as b,renderSortingCard as f}from"./sorting-card.mjs";import{SubjectType as g,SubjectTypeLabel as _}from"./types.mjs";var T=Object.defineProperty,$=Object.getOwnPropertyDescriptor,A=(t,e,i,s)=>{for(var r,o=s>1?void 0:s?$(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s?r(e,i,o):r(o))||o);return s&&o&&T(e,i,o),o};function E(){return{title:""}}function I(){return Array.from({length:5},E)}function j(t){const e={...t,title:v(t?.title??t?.answer??"")},i=t?.answerId??t?.examAnswerId;return void 0!==i&&(e.answerId=i),delete e.answer,delete e.examAnswerId,delete e.isCorrect,e}function S(t,e){const i={...j(t),orderIndex:e+1,answer:v(t?.title??t?.answer??"")};return i.title=v(i.title??""),void 0!==i.answerId&&(i.examAnswerId=i.answerId),void 0===i.answerId&&delete i.answerId,delete i.isCorrect,i}const q=t`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>`,C=t`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="5" y1="12" x2="19" y2="12"/></svg>`;let k=class extends i{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["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-analysis"]=!1,this.analysis="",this["rich-text-content"]="",this["exam-answer-relation-type"]=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._answers=I(),this._scaleQuestions=[],this._rowTitle="",this._title="",this._analysis="",this._showRichText=!1,this._richText="",this["model-value"]="",this["use-model"]=!1,this.TITLE_MAX=200}get"answer-list"(){return this._answers}set"answer-list"(t){const e=function(t){return Array.isArray(t)?t.map(j):[]}(t);this._answers=e.length?e:I(),this.requestUpdate("answer-list")}get"scale-question-list"(){return this._scaleQuestions}set"scale-question-list"(t){this._scaleQuestions=function(t){return Array.isArray(t)?t.map(t=>String(t??"").trim()).filter(Boolean):[]}(t),this.requestUpdate("scale-question-list")}get"scale-questions"(){return this._scaleQuestions}set"scale-questions"(t){this["scale-question-list"]=t,this.requestUpdate("scale-questions")}willUpdate(t){const e=t.has("title")||t.has("answer-list")||t.has("rich-text-content")||t.has("scale-question-list")||t.has("scale-questions");(t.has("is-edit")&&this["is-edit"]||!this["is-edit"]&&e)&&this._syncProps(),t.has("model-value")&&this["use-model"]&&(this._title=this["model-value"])}_syncProps(){this._title=this.title||"",this._analysis=this.analysis||"",this._rowTitle=this._scaleQuestions.join("\n"),this._richText=this["rich-text-content"]||"",this._showRichText=!!this["rich-text-content"]}_emit(t,e){n(this,t,e)}_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["use-model"]&&l(this,this._title)}_resolvedQuestions(){const t=this["is-edit"]?this._rowTitle:this._scaleQuestions.join("\n");return t.split("\n").map(t=>t.trim()).filter(Boolean)}_resolvedAnswers(){const t=this["is-edit"]?this._answers:this["answer-list"];return Array.isArray(t)?t.map(j):[]}_createAnswerCountError(t){return new m("量表题选项数量必须在 3-5 个之间!","ANSWER_COUNT_INVALID","answers",t)}async toJSON(){return new Promise((t,e)=>{const i={customId:this["custom-id"]||void 0,answerType:g.SCALE,orderIndex:this["order-index"]},s=v(this["is-edit"]?this._title:this.title||""),r=this._resolvedAnswers(),o=this._resolvedQuestions(),a=this["is-edit"]?this._richText:this["rich-text-content"]||"",n=this["show-rich-text"]&&(this["is-edit"]?this._showRichText:!!this["rich-text-content"]);if(!s)return void e(new m("题目标题不能为空!","EMPTY_TITLE","title",i));if(r.length<3||r.length>5)return void e(this._createAnswerCountError(i));for(let t=0;t<r.length;t++)if(!r[t].title)return void e(new m(`选项${String.fromCharCode(65+t)}未填写。`,"ANSWER_EMPTY","answers",i));if(0===o.length)return void e(new m("行标题不能为空!","EMPTY_ROW_TITLE","rowTitle",i));const l={answerType:g.SCALE,examTypeEnum:g.SCALE,title:s,answers:r.map(S),scaleQuestionList:o,analysis:v(this["is-edit"]?this._analysis:this.analysis||""),examRichTextContent:n?a:"",isSetCorrectAnswer:!1};this["custom-id"]&&(l.customId=this["custom-id"]),this["exam-answer-relation-type"]&&(l.examAnswerRelationType=this["exam-answer-relation-type"]),t(l)})}async _save(t){t?.stopImmediatePropagation();try{const t=await this.toJSON();this._emit("save",t)}catch(t){d(t.message)}}validate(){const t=[],e={customId:this["custom-id"]||void 0,answerType:g.SCALE,orderIndex:this["order-index"]},i=v(this["is-edit"]?this._title:this.title||""),s=this._resolvedAnswers(),r=this._resolvedQuestions();return i||t.push(new m("题目标题不能为空!","EMPTY_TITLE","title",e)),s.length<3||s.length>5?(t.push(this._createAnswerCountError(e)),t):(s.forEach((i,s)=>{i.title||t.push(new m(`选项${String.fromCharCode(65+s)}未填写`,"ANSWER_EMPTY","answers",e))}),0===r.length&&t.push(new m("行标题不能为空!","EMPTY_ROW_TITLE","rowTitle",e)),t)}_renderPreview(){const e=this._resolvedAnswers(),i=this._resolvedQuestions(),s=Math.floor(100/((e.length||1)+1)),r=h(this["subject-prefix"],this["order-index"],this.title);return t`
|
|
2
|
+
<div class="preview">
|
|
3
|
+
<div class="preview-header">
|
|
4
|
+
<div class="preview-title-row">
|
|
5
|
+
<span class="title">${r}</span>
|
|
6
|
+
<span class="preview-type">量表题</span>
|
|
7
|
+
</div>
|
|
8
|
+
${this["show-rich-text"]&&this["rich-text-content"]?t`<div class="rich-text" .innerHTML=${this["rich-text-content"]}></div>`:""}
|
|
9
|
+
</div>
|
|
10
|
+
<div class="scale-table-wrap">
|
|
11
|
+
<table class="scale-table">
|
|
12
|
+
<thead>
|
|
13
|
+
<tr>
|
|
14
|
+
<th style="width:${s}%">问题</th>
|
|
15
|
+
${e.map(e=>t`<th style="width:${s}%">${e.title}</th>`)}
|
|
16
|
+
</tr>
|
|
17
|
+
</thead>
|
|
18
|
+
<tbody>
|
|
19
|
+
${i.map(i=>t`
|
|
20
|
+
<tr>
|
|
21
|
+
<td>${i}</td>
|
|
22
|
+
${e.map(()=>t`<td><input type="radio" disabled /></td>`)}
|
|
23
|
+
</tr>
|
|
24
|
+
`)}
|
|
25
|
+
</tbody>
|
|
26
|
+
</table>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
`}_renderEdit(){return t`
|
|
30
|
+
<div class="edit-form">
|
|
31
|
+
<div class="edit-row">
|
|
32
|
+
<div class="label"><span>题目:</span></div>
|
|
33
|
+
<div class="row-body">
|
|
34
|
+
<div class="el-input">
|
|
35
|
+
<textarea
|
|
36
|
+
rows="2"
|
|
37
|
+
.value=${this._title}
|
|
38
|
+
maxlength=${this.TITLE_MAX}
|
|
39
|
+
@input=${t=>this._onTitleInput(t)}
|
|
40
|
+
placeholder="【量表题】请输入问题"
|
|
41
|
+
></textarea>
|
|
42
|
+
<span class="char-counter">${this._title.length}/${this.TITLE_MAX}</span>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<slot name="business-tag"></slot>
|
|
48
|
+
|
|
49
|
+
<div class="edit-row">
|
|
50
|
+
<div class="label"><span>量表内容:</span></div>
|
|
51
|
+
<div class="row-body">
|
|
52
|
+
<div class="edit-grid">
|
|
53
|
+
<div class="edit-column">
|
|
54
|
+
<div class="edit-column-title">行标题</div>
|
|
55
|
+
<div class="el-input">
|
|
56
|
+
<textarea
|
|
57
|
+
class="row-title-textarea"
|
|
58
|
+
.value=${this._rowTitle}
|
|
59
|
+
@input=${t=>{this._rowTitle=t.target.value}}
|
|
60
|
+
@keydown=${t=>{t.stopPropagation()}}
|
|
61
|
+
placeholder="请输入行标题"
|
|
62
|
+
></textarea>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="edit-note">一行一个标题,预览时会自动整理空白行。</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="edit-column">
|
|
67
|
+
<div class="edit-column-title">评分选项</div>
|
|
68
|
+
${this._answers.map((e,i)=>t`
|
|
69
|
+
<div class="answer-item">
|
|
70
|
+
<span class="label">${String.fromCharCode(65+i)}.</span>
|
|
71
|
+
<div class="input">
|
|
72
|
+
<input
|
|
73
|
+
type="text"
|
|
74
|
+
.value=${e.title}
|
|
75
|
+
maxlength="10"
|
|
76
|
+
@input=${t=>{const e=t.target.value;this._answers=this._answers.map((t,s)=>s===i?{...t,title:e}:t)}}
|
|
77
|
+
placeholder="选项${i+1}"
|
|
78
|
+
/>
|
|
79
|
+
</div>
|
|
80
|
+
<span
|
|
81
|
+
class="icon"
|
|
82
|
+
@click=${()=>{this._answers.length<5&&(this._answers=[...this._answers,{title:""}])}}
|
|
83
|
+
>${q}</span>
|
|
84
|
+
<span
|
|
85
|
+
class="icon ${this._answers.length<3?"disabled":""}"
|
|
86
|
+
@click=${()=>{this._answers.length>3&&(this._answers=this._answers.filter((t,e)=>e!==i))}}
|
|
87
|
+
>${C}</span>
|
|
88
|
+
</div>
|
|
89
|
+
`)}
|
|
90
|
+
<div class="edit-note">量表题需保持 3-5 个选项,保存时会校验。</div>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
${this["show-rich-text"]&&this._showRichText?t`
|
|
97
|
+
<div class="edit-row">
|
|
98
|
+
<div class="label"><span>副文本:</span></div>
|
|
99
|
+
<div class="row-body">
|
|
100
|
+
<slot name="sub-text">
|
|
101
|
+
<qxs-blocksuite-editor
|
|
102
|
+
.content=${this._richText}
|
|
103
|
+
.toolbar=${a}
|
|
104
|
+
.upload-image=${this["upload-image"]}
|
|
105
|
+
?is-edit=${!0}
|
|
106
|
+
@input=${t=>{this._richText=t.target.getContent()}}
|
|
107
|
+
></qxs-blocksuite-editor>
|
|
108
|
+
</slot>
|
|
109
|
+
${this["show-action"]?"":t`
|
|
110
|
+
<div class="flex-justify-end" style="margin-top:8px">
|
|
111
|
+
<span
|
|
112
|
+
class="el-link danger"
|
|
113
|
+
@click=${()=>{this._showRichText=!1,this._richText=""}}
|
|
114
|
+
>删除富文本</span>
|
|
115
|
+
</div>
|
|
116
|
+
`}
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
`:""}
|
|
120
|
+
|
|
121
|
+
${this["show-analysis"]?t`
|
|
122
|
+
<div class="edit-row">
|
|
123
|
+
<div class="label"><span>解析:</span></div>
|
|
124
|
+
<div class="row-body">
|
|
125
|
+
<div class="el-input">
|
|
126
|
+
<textarea
|
|
127
|
+
rows="2"
|
|
128
|
+
.value=${this._analysis}
|
|
129
|
+
@input=${t=>{this._analysis=t.target.value}}
|
|
130
|
+
placeholder="请输入题目解析"
|
|
131
|
+
></textarea>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
`:""}
|
|
136
|
+
</div>
|
|
137
|
+
`}_renderSorting(){const t=v(this["is-edit"]?this._title:this.title||"")||"未命名题目",e=c(this["subject-prefix"],this["order-index"],t);return f(e,_[g.SCALE]||g.SCALE)}render(){if(this.sorting)return this._renderSorting();const e=this["is-edit"]?t`<div slot="edit">${this._renderEdit()}</div>`:t`<div slot="preview">${this._renderPreview()}</div>`;return t`
|
|
138
|
+
<qxs-subject-layout .show-edit=${this["is-edit"]}>
|
|
139
|
+
${e}
|
|
140
|
+
${this["show-action"]?t`
|
|
141
|
+
<qxs-subject-action
|
|
142
|
+
.is-edit=${this["is-edit"]}
|
|
143
|
+
.is-set=${this["is-set"]}
|
|
144
|
+
.show-add=${this["show-add"]}
|
|
145
|
+
.show-rich-text=${this["show-rich-text"]&&this._showRichText}
|
|
146
|
+
.hide-add-rich-text=${!this["show-rich-text"]||this["hide-add-rich-text"]}
|
|
147
|
+
.show-delete-action=${this["show-delete-action"]}
|
|
148
|
+
.show-save-action=${this["show-save-action"]}
|
|
149
|
+
.show-other-option=${!1}
|
|
150
|
+
exam-answer-relation-type=${this["exam-answer-relation-type"]}
|
|
151
|
+
@delete=${()=>this._emit("delete")}
|
|
152
|
+
@save=${this._save}
|
|
153
|
+
@edit=${()=>this._emit("edit")}
|
|
154
|
+
@add=${t=>this._emit("add",t.detail)}
|
|
155
|
+
@on-show-rich-text=${()=>{this._showRichText=!this._showRichText,this._showRichText||(this._richText="")}}
|
|
156
|
+
></qxs-subject-action>
|
|
157
|
+
`:""}
|
|
158
|
+
<slot name="action"></slot>
|
|
159
|
+
</qxs-subject-layout>
|
|
160
|
+
`}};k.styles=[b,p,u,w,x,y,e`
|
|
161
|
+
.scale-table-wrap {
|
|
162
|
+
margin-top: 18px;
|
|
163
|
+
border: 1px solid #e5e7eb;
|
|
164
|
+
border-radius: 12px;
|
|
165
|
+
background: #fff;
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
}
|
|
168
|
+
.scale-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; color: #4b5563; }
|
|
169
|
+
.scale-table th, .scale-table td { border-bottom: 1px solid #eef2f7; padding: 10px 8px; text-align: center; vertical-align: middle; }
|
|
170
|
+
.scale-table thead th { font-size: 12px; font-weight: 600; color: #8b95a7; background: #f8fafc; }
|
|
171
|
+
.scale-table thead th:first-child,
|
|
172
|
+
.scale-table tbody td:first-child {
|
|
173
|
+
color: #303133;
|
|
174
|
+
text-align: left;
|
|
175
|
+
font-weight: 600;
|
|
176
|
+
}
|
|
177
|
+
.scale-table thead th:first-child {
|
|
178
|
+
background: #f3f4f6;
|
|
179
|
+
}
|
|
180
|
+
.scale-table tbody td:first-child {
|
|
181
|
+
background: #fafafa;
|
|
182
|
+
}
|
|
183
|
+
.scale-table tbody tr:last-child td { border-bottom: none; }
|
|
184
|
+
.scale-table input[type="radio"] {
|
|
185
|
+
accent-color: #3D61E3;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.flex { display: flex; }
|
|
189
|
+
.flex-items-start { display: flex; align-items: flex-start; }
|
|
190
|
+
.flex-justify-end { display: flex; justify-content: flex-end; }
|
|
191
|
+
.edit-grid {
|
|
192
|
+
display: grid;
|
|
193
|
+
grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
|
|
194
|
+
gap: 20px;
|
|
195
|
+
}
|
|
196
|
+
.edit-column {
|
|
197
|
+
min-width: 0;
|
|
198
|
+
display: flex;
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
gap: 10px;
|
|
201
|
+
}
|
|
202
|
+
.edit-column-title {
|
|
203
|
+
font-size: 12px;
|
|
204
|
+
line-height: 1.4;
|
|
205
|
+
font-weight: 600;
|
|
206
|
+
color: #8b95a7;
|
|
207
|
+
letter-spacing: 0.02em;
|
|
208
|
+
}
|
|
209
|
+
.edit-note {
|
|
210
|
+
font-size: 12px;
|
|
211
|
+
line-height: 1.6;
|
|
212
|
+
color: #909399;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
textarea, input[type="text"] { white-space: pre-wrap; }
|
|
216
|
+
input[type="text"] {
|
|
217
|
+
border: 1px solid #dcdfe6; border-radius: 6px; padding: 7px 11px;
|
|
218
|
+
font-size: 13px; font-family: inherit; width: 100%; transition: border-color .2s;
|
|
219
|
+
line-height: 1.5; display: block; box-sizing: border-box;
|
|
220
|
+
}
|
|
221
|
+
input[type="text"]:focus { border-color: #3D61E3; outline: none; }
|
|
222
|
+
input[type="text"]:disabled { background: #f5f7fa; color: #c0c4cc; cursor: not-allowed; }
|
|
223
|
+
|
|
224
|
+
.el-link { color: #3D61E3; cursor: pointer; font-size: 12px; }
|
|
225
|
+
.el-link.danger { color: #f56c6c; }
|
|
226
|
+
|
|
227
|
+
.answer-item { display: flex; align-items: center; gap: 8px; }
|
|
228
|
+
.answer-item .label { min-width: 28px; font-size: 13px; font-weight: 600; color: #6b7280; letter-spacing: 0; }
|
|
229
|
+
.answer-item .input { flex: 1; max-width: 220px; }
|
|
230
|
+
.answer-item .input input {
|
|
231
|
+
height: 36px; padding: 0 10px;
|
|
232
|
+
font-size: 13px; line-height: 32px;
|
|
233
|
+
border: 1px solid #dcdfe6; border-radius: 6px; width: 100%;
|
|
234
|
+
transition: border-color .2s; box-sizing: border-box;
|
|
235
|
+
}
|
|
236
|
+
.answer-item .input input:focus { border-color: #3D61E3; outline: none; }
|
|
237
|
+
|
|
238
|
+
.answer-item .icon {
|
|
239
|
+
margin-left: 6px; cursor: pointer; display: inline-flex;
|
|
240
|
+
align-items: center; justify-content: center;
|
|
241
|
+
width: 24px; height: 24px; border-radius: 4px;
|
|
242
|
+
border: 1px solid #dcdfe6; background: #fff; color: #909399;
|
|
243
|
+
transition: all 0.2s;
|
|
244
|
+
}
|
|
245
|
+
.answer-item .icon:hover { color: #3D61E3; border-color: #3D61E3; background: #ecf5ff; }
|
|
246
|
+
.answer-item .icon.disabled { color: #e4e7ed; border-color: #e4e7ed; cursor: not-allowed; }
|
|
247
|
+
|
|
248
|
+
.row-title-textarea { min-height: 220px; }
|
|
249
|
+
|
|
250
|
+
@media (max-width: 720px) {
|
|
251
|
+
.edit-row {
|
|
252
|
+
flex-direction: column;
|
|
253
|
+
gap: 8px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.edit-row > .label {
|
|
257
|
+
min-width: 0;
|
|
258
|
+
padding-top: 0;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.edit-grid {
|
|
262
|
+
grid-template-columns: 1fr;
|
|
263
|
+
gap: 16px;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
`],A([s({type:Number,attribute:"order-index"})],k.prototype,"order-index",2),A([s({type:String,attribute:"subject-prefix"})],k.prototype,"subject-prefix",2),A([s({type:String})],k.prototype,"title",2),A([s({type:String,attribute:"custom-id"})],k.prototype,"custom-id",2),A([s({type:Boolean,attribute:"is-edit"})],k.prototype,"is-edit",2),A([s({type:Boolean,attribute:"is-save"})],k.prototype,"is-save",2),A([s({type:Boolean,attribute:"is-set"})],k.prototype,"is-set",2),A([s({type:Boolean,attribute:"show-action"})],k.prototype,"show-action",2),A([s({type:Boolean,attribute:"show-add"})],k.prototype,"show-add",2),A([s({type:Boolean,attribute:"hide-add-rich-text"})],k.prototype,"hide-add-rich-text",2),A([s({type:Boolean,attribute:"show-rich-text"})],k.prototype,"show-rich-text",2),A([s({type:Boolean,attribute:"show-delete-action"})],k.prototype,"show-delete-action",2),A([s({type:Boolean,attribute:"show-save-action"})],k.prototype,"show-save-action",2),A([s({type:Boolean,reflect:!0})],k.prototype,"sorting",2),A([s({type:Boolean,attribute:"show-analysis"})],k.prototype,"show-analysis",2),A([s({type:String})],k.prototype,"analysis",2),A([s({type:String,attribute:"rich-text-content"})],k.prototype,"rich-text-content",2),A([s({type:Number,attribute:"exam-answer-relation-type"})],k.prototype,"exam-answer-relation-type",2),A([s({type:Object,attribute:"upload-image"})],k.prototype,"upload-image",2),A([s({type:Array,attribute:"answer-list"})],k.prototype,"answer-list",1),A([s({type:Array,attribute:"scale-question-list"})],k.prototype,"scale-question-list",1),A([s({type:Array,attribute:"scale-questions"})],k.prototype,"scale-questions",1),A([r()],k.prototype,"_answers",2),A([r()],k.prototype,"_scaleQuestions",2),A([r()],k.prototype,"_rowTitle",2),A([r()],k.prototype,"_title",2),A([r()],k.prototype,"_analysis",2),A([r()],k.prototype,"_showRichText",2),A([r()],k.prototype,"_richText",2),A([s({type:String,attribute:"model-value"})],k.prototype,"model-value",2),A([s({type:Boolean,attribute:"use-model"})],k.prototype,"use-model",2),k=A([o("qxs-scale")],k);export{k as QxsScale};
|
|
267
|
+
//# sourceMappingURL=scale.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scale.mjs","sources":["../../../../packages/components/src/subject/scale.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 { buildSubjectPreviewTitle, buildSubjectSortingTitle, emitSubjectEvent, emitSubjectModelValue, showSubjectToast } from './shared-methods'\nimport { subjectControlResetStyles, subjectFormBaseStyles, subjectHostStyles, subjectPreviewBaseStyles, subjectTextareaStyles } from './shared-styles'\nimport { SubjectError, trimText } from './single'\nimport { renderSortingCard, sortingCardStyles } from './sorting-card'\nimport { SubjectType, SubjectTypeLabel } from './types'\n\ninterface ScaleAnswer {\n title: string\n answerId?: string | number\n orderIndex?: number\n isCorrect?: boolean\n [key: string]: any\n}\n\nfunction createEmptyScaleAnswer(): ScaleAnswer {\n return { title: '' }\n}\n\nfunction createDefaultScaleAnswers(): ScaleAnswer[] {\n return Array.from({ length: 5 }, createEmptyScaleAnswer)\n}\n\nfunction normalizeScaleAnswer(answer: any): ScaleAnswer {\n const next: ScaleAnswer = {\n ...answer,\n title: trimText(answer?.title ?? answer?.answer ?? ''),\n }\n const answerId = answer?.answerId ?? answer?.examAnswerId\n if (answerId !== undefined) {\n next.answerId = answerId\n }\n delete next.answer\n delete next.examAnswerId\n delete next.isCorrect\n return next\n}\n\nfunction normalizeScaleAnswers(value: any): ScaleAnswer[] {\n return Array.isArray(value) ? value.map(normalizeScaleAnswer) : []\n}\n\nfunction normalizeScaleQuestionList(value: any): string[] {\n if (!Array.isArray(value)) {\n return []\n }\n return value\n .map(item => String(item ?? '').trim())\n .filter(Boolean)\n}\n\nfunction splitScaleQuestionLines(value: string): string[] {\n return value\n .split('\\n')\n .map(item => item.trim())\n .filter(Boolean)\n}\n\nfunction serializeScaleAnswer(answer: any, index: number): ScaleAnswer {\n const next: ScaleAnswer = {\n ...normalizeScaleAnswer(answer),\n orderIndex: index + 1,\n answer: trimText(answer?.title ?? answer?.answer ?? ''),\n }\n next.title = trimText(next.title ?? '')\n if (next.answerId !== undefined) {\n next.examAnswerId = next.answerId\n }\n if (next.answerId === undefined) {\n delete next.answerId\n }\n delete next.isCorrect\n return next\n}\n\nconst iconPlus = html`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"/></svg>`\nconst iconRemove = html`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"/></svg>`\n\n@safeCustomElement('qxs-scale')\nexport class QxsScale extends LitElement {\n static styles = [sortingCardStyles, subjectHostStyles, subjectControlResetStyles, subjectPreviewBaseStyles, subjectFormBaseStyles, subjectTextareaStyles, css`\n .scale-table-wrap {\n margin-top: 18px;\n border: 1px solid #e5e7eb;\n border-radius: 12px;\n background: #fff;\n overflow: hidden;\n }\n .scale-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; color: #4b5563; }\n .scale-table th, .scale-table td { border-bottom: 1px solid #eef2f7; padding: 10px 8px; text-align: center; vertical-align: middle; }\n .scale-table thead th { font-size: 12px; font-weight: 600; color: #8b95a7; background: #f8fafc; }\n .scale-table thead th:first-child,\n .scale-table tbody td:first-child {\n color: #303133;\n text-align: left;\n font-weight: 600;\n }\n .scale-table thead th:first-child {\n background: #f3f4f6;\n }\n .scale-table tbody td:first-child {\n background: #fafafa;\n }\n .scale-table tbody tr:last-child td { border-bottom: none; }\n .scale-table input[type=\"radio\"] {\n accent-color: #3D61E3;\n }\n\n .flex { display: flex; }\n .flex-items-start { display: flex; align-items: flex-start; }\n .flex-justify-end { display: flex; justify-content: flex-end; }\n .edit-grid {\n display: grid;\n grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);\n gap: 20px;\n }\n .edit-column {\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 10px;\n }\n .edit-column-title {\n font-size: 12px;\n line-height: 1.4;\n font-weight: 600;\n color: #8b95a7;\n letter-spacing: 0.02em;\n }\n .edit-note {\n font-size: 12px;\n line-height: 1.6;\n color: #909399;\n }\n\n textarea, input[type=\"text\"] { white-space: pre-wrap; }\n input[type=\"text\"] {\n border: 1px solid #dcdfe6; border-radius: 6px; padding: 7px 11px;\n font-size: 13px; font-family: inherit; width: 100%; transition: border-color .2s;\n line-height: 1.5; display: block; box-sizing: border-box;\n }\n input[type=\"text\"]:focus { border-color: #3D61E3; outline: none; }\n input[type=\"text\"]:disabled { background: #f5f7fa; color: #c0c4cc; cursor: not-allowed; }\n\n .el-link { color: #3D61E3; cursor: pointer; font-size: 12px; }\n .el-link.danger { color: #f56c6c; }\n\n .answer-item { display: flex; align-items: center; gap: 8px; }\n .answer-item .label { min-width: 28px; font-size: 13px; font-weight: 600; color: #6b7280; letter-spacing: 0; }\n .answer-item .input { flex: 1; max-width: 220px; }\n .answer-item .input input {\n height: 36px; padding: 0 10px;\n font-size: 13px; line-height: 32px;\n border: 1px solid #dcdfe6; border-radius: 6px; width: 100%;\n transition: border-color .2s; box-sizing: border-box;\n }\n .answer-item .input input:focus { border-color: #3D61E3; outline: none; }\n\n .answer-item .icon {\n margin-left: 6px; cursor: pointer; display: inline-flex;\n align-items: center; justify-content: center;\n width: 24px; height: 24px; border-radius: 4px;\n border: 1px solid #dcdfe6; background: #fff; color: #909399;\n transition: all 0.2s;\n }\n .answer-item .icon:hover { color: #3D61E3; border-color: #3D61E3; background: #ecf5ff; }\n .answer-item .icon.disabled { color: #e4e7ed; border-color: #e4e7ed; cursor: not-allowed; }\n\n .row-title-textarea { min-height: 220px; }\n\n @media (max-width: 720px) {\n .edit-row {\n flex-direction: column;\n gap: 8px;\n }\n\n .edit-row > .label {\n min-width: 0;\n padding-top: 0;\n }\n\n .edit-grid {\n grid-template-columns: 1fr;\n gap: 16px;\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: '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-analysis' }) 'show-analysis' = false\n @property({ type: String }) analysis = ''\n @property({ type: String, attribute: 'rich-text-content' }) 'rich-text-content' = ''\n @property({ type: Number, attribute: 'exam-answer-relation-type' }) 'exam-answer-relation-type' = 0\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' })\n get 'answer-list'() { return this._answers }\n\n set 'answer-list'(value: any) {\n const answers = normalizeScaleAnswers(value)\n this._answers = answers.length ? answers : createDefaultScaleAnswers()\n this.requestUpdate('answer-list')\n }\n\n @property({ type: Array, attribute: 'scale-question-list' })\n get 'scale-question-list'() { return this._scaleQuestions }\n\n set 'scale-question-list'(value: any) {\n this._scaleQuestions = normalizeScaleQuestionList(value)\n this.requestUpdate('scale-question-list')\n }\n\n @property({ type: Array, attribute: 'scale-questions' })\n get 'scale-questions'() { return this._scaleQuestions }\n\n set 'scale-questions'(value: any) {\n this['scale-question-list'] = value\n this.requestUpdate('scale-questions')\n }\n\n @state() private _answers: ScaleAnswer[] = createDefaultScaleAnswers()\n @state() private _scaleQuestions: string[] = []\n @state() private _rowTitle = ''\n @state() private _title = ''\n @state() private _analysis = ''\n @state() private _showRichText = false\n @state() private _richText = ''\n\n @property({ type: String, attribute: 'model-value' }) 'model-value' = ''\n @property({ type: Boolean, attribute: 'use-model' }) 'use-model' = false\n\n private readonly TITLE_MAX = 200\n\n willUpdate(changed: Map<string, unknown>) {\n const shouldSyncProps = changed.has('title')\n || changed.has('answer-list')\n || changed.has('rich-text-content')\n || changed.has('scale-question-list')\n || changed.has('scale-questions')\n\n if ((changed.has('is-edit') && this['is-edit']) || (!this['is-edit'] && shouldSyncProps)) {\n this._syncProps()\n }\n\n if (changed.has('model-value') && this['use-model']) {\n this._title = this['model-value']\n }\n }\n\n private _syncProps() {\n this._title = this.title || ''\n this._analysis = this.analysis || ''\n this._rowTitle = this._scaleQuestions.join('\\n')\n this._richText = this['rich-text-content'] || ''\n this._showRichText = !!this['rich-text-content']\n }\n\n private _emit(name: string, detail?: unknown) {\n emitSubjectEvent(this, name, detail)\n }\n\n private _onTitleInput(e: Event) {\n const el = e.target as HTMLTextAreaElement\n if (el.value.length > this.TITLE_MAX) {\n el.value = el.value.slice(0, this.TITLE_MAX)\n }\n this._title = el.value\n if (this['use-model']) {\n emitSubjectModelValue(this, this._title)\n }\n }\n\n private _resolvedQuestions(): string[] {\n const rowTitle = this['is-edit'] ? this._rowTitle : this._scaleQuestions.join('\\n')\n return splitScaleQuestionLines(rowTitle)\n }\n\n private _resolvedAnswers(): ScaleAnswer[] {\n const answers = this['is-edit'] ? this._answers : this['answer-list']\n return Array.isArray(answers) ? answers.map(normalizeScaleAnswer) : []\n }\n\n private _createAnswerCountError(row: Record<string, unknown>) {\n return new SubjectError('量表题选项数量必须在 3-5 个之间!', 'ANSWER_COUNT_INVALID', 'answers', row)\n }\n\n async toJSON(): Promise<any> {\n return new Promise((resolve, reject) => {\n const row = {\n customId: this['custom-id'] || undefined,\n answerType: SubjectType.SCALE,\n orderIndex: this['order-index'],\n }\n\n const title = trimText(this['is-edit'] ? this._title : this.title || '')\n const answers = this._resolvedAnswers()\n const questions = this._resolvedQuestions()\n const richText = this['is-edit'] ? this._richText : this['rich-text-content'] || ''\n const showRichText = this['show-rich-text'] && (this['is-edit'] ? this._showRichText : !!this['rich-text-content'])\n\n if (!title) {\n reject(new SubjectError('题目标题不能为空!', 'EMPTY_TITLE', 'title', row))\n return\n }\n\n if (answers.length < 3 || answers.length > 5) {\n reject(this._createAnswerCountError(row))\n return\n }\n\n for (let i = 0; i < answers.length; i++) {\n if (!answers[i].title) {\n reject(new SubjectError(`选项${String.fromCharCode(65 + i)}未填写。`, 'ANSWER_EMPTY', 'answers', row))\n return\n }\n }\n\n if (questions.length === 0) {\n reject(new SubjectError('行标题不能为空!', 'EMPTY_ROW_TITLE', 'rowTitle', row))\n return\n }\n\n const result: any = {\n answerType: SubjectType.SCALE,\n examTypeEnum: SubjectType.SCALE,\n title,\n answers: answers.map(serializeScaleAnswer),\n scaleQuestionList: questions,\n analysis: trimText(this['is-edit'] ? this._analysis : this.analysis || ''),\n examRichTextContent: showRichText ? richText : '',\n isSetCorrectAnswer: false,\n }\n\n if (this['custom-id']) {\n result.customId = this['custom-id']\n }\n if (this['exam-answer-relation-type']) {\n result.examAnswerRelationType = this['exam-answer-relation-type']\n }\n\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 = {\n customId: this['custom-id'] || undefined,\n answerType: SubjectType.SCALE,\n orderIndex: this['order-index'],\n }\n\n const title = trimText(this['is-edit'] ? this._title : this.title || '')\n const answers = this._resolvedAnswers()\n const questions = this._resolvedQuestions()\n\n if (!title) {\n errors.push(new SubjectError('题目标题不能为空!', 'EMPTY_TITLE', 'title', row))\n }\n\n if (answers.length < 3 || answers.length > 5) {\n errors.push(this._createAnswerCountError(row))\n return errors\n }\n\n answers.forEach((answer: ScaleAnswer, index: number) => {\n if (!answer.title) {\n errors.push(new SubjectError(`选项${String.fromCharCode(65 + index)}未填写`, 'ANSWER_EMPTY', 'answers', row))\n }\n })\n\n if (questions.length === 0) {\n errors.push(new SubjectError('行标题不能为空!', 'EMPTY_ROW_TITLE', 'rowTitle', row))\n }\n\n return errors\n }\n\n private _renderPreview() {\n const answers = this._resolvedAnswers()\n const questions = this._resolvedQuestions()\n const colWidth = Math.floor(100 / ((answers.length || 1) + 1))\n const previewTitle = buildSubjectPreviewTitle(this['subject-prefix'], this['order-index'], this.title)\n\n return html`\n <div class=\"preview\">\n <div class=\"preview-header\">\n <div class=\"preview-title-row\">\n <span class=\"title\">${previewTitle}</span>\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 <div class=\"scale-table-wrap\">\n <table class=\"scale-table\">\n <thead>\n <tr>\n <th style=\"width:${colWidth}%\">问题</th>\n ${answers.map(answer => html`<th style=\"width:${colWidth}%\">${answer.title}</th>`)}\n </tr>\n </thead>\n <tbody>\n ${questions.map(question => html`\n <tr>\n <td>${question}</td>\n ${answers.map(() => html`<td><input type=\"radio\" disabled /></td>`)}\n </tr>\n `)}\n </tbody>\n </table>\n </div>\n </div>\n `\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\">\n <textarea\n rows=\"2\"\n .value=${this._title}\n maxlength=${this.TITLE_MAX}\n @input=${(e: Event) => this._onTitleInput(e)}\n placeholder=\"【量表题】请输入问题\"\n ></textarea>\n <span class=\"char-counter\">${this._title.length}/${this.TITLE_MAX}</span>\n </div>\n </div>\n </div>\n\n <slot name=\"business-tag\"></slot>\n\n <div class=\"edit-row\">\n <div class=\"label\"><span>量表内容:</span></div>\n <div class=\"row-body\">\n <div class=\"edit-grid\">\n <div class=\"edit-column\">\n <div class=\"edit-column-title\">行标题</div>\n <div class=\"el-input\">\n <textarea\n class=\"row-title-textarea\"\n .value=${this._rowTitle}\n @input=${(e: Event) => { this._rowTitle = (e.target as HTMLTextAreaElement).value }}\n @keydown=${(e: KeyboardEvent) => { e.stopPropagation() }}\n placeholder=\"请输入行标题\"\n ></textarea>\n </div>\n <div class=\"edit-note\">一行一个标题,预览时会自动整理空白行。</div>\n </div>\n <div class=\"edit-column\">\n <div class=\"edit-column-title\">评分选项</div>\n ${this._answers.map((answer, index) => html`\n <div class=\"answer-item\">\n <span class=\"label\">${String.fromCharCode(65 + index)}.</span>\n <div class=\"input\">\n <input\n type=\"text\"\n .value=${answer.title}\n maxlength=\"10\"\n @input=${(e: Event) => {\n const value = (e.target as HTMLInputElement).value\n this._answers = this._answers.map((item, currentIndex) =>\n currentIndex === index ? { ...item, title: value } : item,\n )\n }}\n placeholder=\"选项${index + 1}\"\n />\n </div>\n <span\n class=\"icon\"\n @click=${() => {\n if (this._answers.length < 5) {\n this._answers = [...this._answers, createEmptyScaleAnswer()]\n }\n }}\n >${iconPlus}</span>\n <span\n class=\"icon ${this._answers.length < 3 ? 'disabled' : ''}\"\n @click=${() => {\n if (this._answers.length > 3) {\n this._answers = this._answers.filter((_, currentIndex) => currentIndex !== index)\n }\n }}\n >${iconRemove}</span>\n </div>\n `)}\n <div class=\"edit-note\">量表题需保持 3-5 个选项,保存时会校验。</div>\n </div>\n </div>\n </div>\n </div>\n\n ${this['show-rich-text'] && this._showRichText\n ? html`\n <div class=\"edit-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-justify-end\" style=\"margin-top:8px\">\n <span\n class=\"el-link danger\"\n @click=${() => {\n this._showRichText = false\n this._richText = ''\n }}\n >删除富文本</span>\n </div>\n `\n : ''}\n </div>\n </div>\n `\n : ''}\n\n ${this['show-analysis']\n ? html`\n <div class=\"edit-row\">\n <div class=\"label\"><span>解析:</span></div>\n <div class=\"row-body\">\n <div class=\"el-input\">\n <textarea\n rows=\"2\"\n .value=${this._analysis}\n @input=${(e: Event) => { this._analysis = (e.target as HTMLTextAreaElement).value }}\n placeholder=\"请输入题目解析\"\n ></textarea>\n </div>\n </div>\n </div>\n `\n : ''}\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.SCALE] || SubjectType.SCALE)\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 .show-other-option=${false}\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 @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":["createEmptyScaleAnswer","title","createDefaultScaleAnswers","Array","from","length","normalizeScaleAnswer","answer","next","trimText","answerId","examAnswerId","isCorrect","serializeScaleAnswer","index","orderIndex","iconPlus","html","iconRemove","QxsScale","LitElement","constructor","super","arguments","this","sorting","analysis","async","Promise","resolve","reject","reader","FileReader","onload","e","target","result","onerror","readAsDataURL","file","_answers","_scaleQuestions","_rowTitle","_title","_analysis","_showRichText","_richText","TITLE_MAX","value","answers","isArray","map","normalizeScaleAnswers","requestUpdate","item","String","trim","filter","Boolean","normalizeScaleQuestionList","willUpdate","changed","shouldSyncProps","has","_syncProps","join","_emit","name","detail","emitSubjectEvent","_onTitleInput","el","slice","emitSubjectModelValue","_resolvedQuestions","rowTitle","split","_resolvedAnswers","_createAnswerCountError","row","SubjectError","toJSON","customId","answerType","SubjectType","SCALE","questions","richText","showRichText","i","fromCharCode","examTypeEnum","scaleQuestionList","examRichTextContent","isSetCorrectAnswer","examAnswerRelationType","_save","stopImmediatePropagation","data","err","showSubjectToast","message","validate","errors","push","forEach","_renderPreview","colWidth","Math","floor","previewTitle","buildSubjectPreviewTitle","question","_renderEdit","stopPropagation","currentIndex","_","SUB_TEXT_EDITOR_TOOLBAR","getContent","_renderSorting","orderText","buildSubjectSortingTitle","renderSortingCard","SubjectTypeLabel","render","content","styles","sortingCardStyles","subjectHostStyles","subjectControlResetStyles","subjectPreviewBaseStyles","subjectFormBaseStyles","subjectTextareaStyles","css","__decorateClass","property","type","Number","attribute","prototype","reflect","Object","state","safeCustomElement"],"mappings":"27BAkBA,SAASA,IACP,MAAO,CAAEC,MAAO,GAClB,CAEA,SAASC,IACP,OAAOC,MAAMC,KAAK,CAAEC,OAAQ,GAAKL,EACnC,CAEA,SAASM,EAAqBC,GAC5B,MAAMC,EAAoB,IACrBD,EACHN,MAAOQ,EAASF,GAAQN,OAASM,GAAQA,QAAU,KAE/CG,EAAWH,GAAQG,UAAYH,GAAQI,aAO7C,YANiB,IAAbD,IACFF,EAAKE,SAAWA,UAEXF,EAAKD,cACLC,EAAKG,oBACLH,EAAKI,UACLJ,CACT,CAsBA,SAASK,EAAqBN,EAAaO,GACzC,MAAMN,EAAoB,IACrBF,EAAqBC,GACxBQ,WAAYD,EAAQ,EACpBP,OAAQE,EAASF,GAAQ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AsKMwH,UAAA,YAAA,GACAL,EAAA,CAAhBQ,KAvKU3H,EAuKMwH,UAAA,gBAAA,GACAL,EAAA,CAAhBQ,KAxKU3H,EAwKMwH,UAAA,YAAA,GAEqCL,EAAA,CAArDC,EAAS,CAAEC,KAAMjF,OAAQmF,UAAW,iBA1K1BvH,EA0K2CwH,UAAA,cAAA,GACDL,EAAA,CAApDC,EAAS,CAAEC,KAAM9E,QAASgF,UAAW,eA3K3BvH,EA2K0CwH,UAAA,YAAA,GA3K1CxH,EAANmH,EAAA,CADNS,EAAkB,cACN5H"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{joinSubjectTitle as e,resolveSubjectPrefix as t}from"./title-prefix.mjs";function n(e,t,n){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:n??null}))}function o(e,t){e.dispatchEvent(new CustomEvent("update:modelValue",{bubbles:!0,composed:!0,detail:t}))}function i(e){const t=document.createElement("div");t.textContent=e,Object.assign(t.style,{position:"fixed",top:"20px",left:"50%",transform:"translateX(-50%)",padding:"10px 20px",borderRadius:"4px",fontSize:"13px",color:"#fff",background:"#f56c6c",zIndex:"99999",boxShadow:"0 4px 12px rgba(0,0,0,.15)",transition:"opacity .3s",opacity:"1"}),document.body.appendChild(t),setTimeout(()=>{t.style.opacity="0",setTimeout(()=>t.remove(),300)},2500)}function r(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(e=>1===e?.resourceType).map(e=>e?.resource?.middle||e?.resource?.url).filter(Boolean)}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.find(e=>2===e?.resourceType)?.resource||null}function c(){let e=arguments.length>1?arguments[1]:void 0;const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).find(t=>String(t?.categoryId)===String(e));return t?.title||t?.categoryName||e||"未选择分类"}function d(n,o,i){return e(t(n,`${o+1}.`),i)}function l(n,o,i){return e(t(n,`${o+1}. `),i)}export{d as buildSubjectPreviewTitle,l as buildSubjectSortingTitle,n as emitSubjectEvent,o as emitSubjectModelValue,r as getSubjectImageResources,u as getSubjectVideoResource,c as resolveSubjectCategoryLabel,i as showSubjectToast};
|
|
2
|
+
//# sourceMappingURL=shared-methods.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-methods.mjs","sources":["../../../../packages/components/src/subject/shared-methods.ts"],"sourcesContent":["import { joinSubjectTitle, resolveSubjectPrefix } from './title-prefix'\n\nexport function emitSubjectEvent(host: EventTarget, name: string, detail?: unknown) {\n host.dispatchEvent(new CustomEvent(name, { bubbles: true, composed: true, detail: detail ?? null }))\n}\n\nexport function emitSubjectModelValue(host: EventTarget, value: string) {\n host.dispatchEvent(new CustomEvent('update:modelValue', {\n bubbles: true,\n composed: true,\n detail: value,\n }))\n}\n\nexport function showSubjectToast(msg: string) {\n const el = document.createElement('div')\n el.textContent = msg\n Object.assign(el.style, {\n position: 'fixed',\n top: '20px',\n left: '50%',\n transform: 'translateX(-50%)',\n padding: '10px 20px',\n borderRadius: '4px',\n fontSize: '13px',\n color: '#fff',\n background: '#f56c6c',\n zIndex: '99999',\n boxShadow: '0 4px 12px rgba(0,0,0,.15)',\n transition: 'opacity .3s',\n opacity: '1',\n })\n document.body.appendChild(el)\n setTimeout(() => {\n el.style.opacity = '0'\n setTimeout(() => el.remove(), 300)\n }, 2500)\n}\n\nexport function getSubjectImageResources(resourceList: any[] = []) {\n return resourceList\n .filter(item => item?.resourceType === 1)\n .map(item => item?.resource?.middle || item?.resource?.url)\n .filter(Boolean) as string[]\n}\n\nexport function getSubjectVideoResource(resourceList: any[] = []) {\n return resourceList.find(item => item?.resourceType === 2)?.resource || null\n}\n\nexport function resolveSubjectCategoryLabel(categoryList: any[] = [], categoryId?: string | number) {\n const matched = categoryList.find((item: any) => String(item?.categoryId) === String(categoryId))\n return matched?.title || matched?.categoryName || categoryId || '未选择分类'\n}\n\nexport function buildSubjectPreviewTitle(subjectPrefix: unknown, orderIndex: number, title: string) {\n return joinSubjectTitle(\n resolveSubjectPrefix(subjectPrefix, `${orderIndex + 1}.`),\n title,\n )\n}\n\nexport function buildSubjectSortingTitle(subjectPrefix: unknown, orderIndex: number, title: string) {\n return joinSubjectTitle(\n resolveSubjectPrefix(subjectPrefix, `${orderIndex + 1}. `),\n title,\n )\n}\n"],"names":["emitSubjectEvent","host","name","detail","dispatchEvent","CustomEvent","bubbles","composed","emitSubjectModelValue","value","showSubjectToast","msg","el","document","createElement","textContent","Object","assign","style","position","top","left","transform","padding","borderRadius","fontSize","color","background","zIndex","boxShadow","transition","opacity","body","appendChild","setTimeout","remove","getSubjectImageResources","arguments","length","undefined","filter","item","resourceType","map","resource","middle","url","Boolean","getSubjectVideoResource","resourceList","find","resolveSubjectCategoryLabel","categoryId","matched","String","title","categoryName","buildSubjectPreviewTitle","subjectPrefix","orderIndex","joinSubjectTitle","resolveSubjectPrefix","buildSubjectSortingTitle"],"mappings":"gFAEO,SAASA,EAAiBC,EAAmBC,EAAcC,GAChEF,EAAKG,cAAc,IAAIC,YAAYH,EAAM,CAAEI,SAAS,EAAMC,UAAU,EAAMJ,OAAQA,GAAU,OAC9F,CAEO,SAASK,EAAsBP,EAAmBQ,GACvDR,EAAKG,cAAc,IAAIC,YAAY,oBAAqB,CACtDC,SAAS,EACTC,UAAU,EACVJ,OAAQM,IAEZ,CAEO,SAASC,EAAiBC,GAC/B,MAAMC,EAAKC,SAASC,cAAc,OAClCF,EAAGG,YAAcJ,EACjBK,OAAOC,OAAOL,EAAGM,MAAO,CACtBC,SAAU,QACVC,IAAK,OACLC,KAAM,MACNC,UAAW,mBACXC,QAAS,YACTC,aAAc,MACdC,SAAU,OACVC,MAAO,OACPC,WAAY,UACZC,OAAQ,QACRC,UAAW,6BACXC,WAAY,cACZC,QAAS,MAEXlB,SAASmB,KAAKC,YAAYrB,GAC1BsB,WAAW,KACTtB,EAAGM,MAAMa,QAAU,IACnBG,WAAW,IAAMtB,EAAGuB,SAAU,MAC7B,KACL,CAEO,SAASC,IACd,OADuCC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAsB,IAE1DG,OAAOC,GAA+B,IAAvBA,GAAMC,cACrBC,IAAIF,GAAQA,GAAMG,UAAUC,QAAUJ,GAAMG,UAAUE,KACtDN,OAAOO,QACZ,CAEO,SAASC,IAAkD,IAA1BC,EAAAZ,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAsB,GAC5D,OAAOY,EAAaC,KAAKT,GAA+B,IAAvBA,GAAMC,eAAqBE,UAAY,IAC1E,CAEO,SAASO,IAAoF,IAA9BC,EAAAf,UAAAC,OAAA,EAAAD,kBAAAE,EACpE,MAAMc,GADoChB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAsB,IACnCa,KAAMT,GAAca,OAAOb,GAAMW,cAAgBE,OAAOF,IACrF,OAAOC,GAASE,OAASF,GAASG,cAAgBJ,GAAc,OAClE,CAEO,SAASK,EAAyBC,EAAwBC,EAAoBJ,GACnF,OAAOK,EACLC,EAAqBH,EAAe,GAAGC,EAAa,MACpDJ,EAEJ,CAEO,SAASO,EAAyBJ,EAAwBC,EAAoBJ,GACnF,OAAOK,EACLC,EAAqBH,EAAe,GAAGC,EAAa,OACpDJ,EAEJ"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import{css as e}from"lit";const i=e`
|
|
2
|
+
*, ::before, ::after { box-sizing: border-box; }
|
|
3
|
+
input[type="radio"], input[type="checkbox"] { margin: 0; }
|
|
4
|
+
`,t=e`
|
|
5
|
+
:host {
|
|
6
|
+
display: block;
|
|
7
|
+
font-family: inherit;
|
|
8
|
+
font-size: 12px;
|
|
9
|
+
color: #5a5a5a;
|
|
10
|
+
}
|
|
11
|
+
`,o=e`
|
|
12
|
+
.preview { padding: 10px 0 4px; }
|
|
13
|
+
.preview-header { display: flex; flex-direction: column; gap: 12px; }
|
|
14
|
+
.preview-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
|
|
15
|
+
.preview .title { font-size: 16px; line-height: 1.75; font-weight: 600; color: #303133; }
|
|
16
|
+
.preview-type { font-size: 12px; line-height: 1.4; font-weight: 600; color: #8b95a7; letter-spacing: 0.02em; }
|
|
17
|
+
.preview .rich-text { font-size: 14px; line-height: 1.8; color: #4b5563; }
|
|
18
|
+
.preview .rich-text p { margin: 0; }
|
|
19
|
+
.preview .rich-text p + p { margin-top: 0.75em; }
|
|
20
|
+
.preview .rich-text img { max-width: 100%; }
|
|
21
|
+
.preview .rich-text img[data-align="left"] { display: block !important; margin: 0 auto 0 0 !important; }
|
|
22
|
+
.preview .rich-text img[data-align="center"] { display: block !important; margin: 0 auto !important; }
|
|
23
|
+
.preview .rich-text img[data-align="right"] { display: block !important; margin: 0 0 0 auto !important; }
|
|
24
|
+
.preview-section { margin-top: 18px; }
|
|
25
|
+
.preview-section-label { font-size: 12px; line-height: 1.4; font-weight: 600; color: #8b95a7; }
|
|
26
|
+
.preview-section-body { margin-top: 8px; }
|
|
27
|
+
`,r=e`
|
|
28
|
+
.label { min-width: 72px; font-size: 12px; line-height: 1.4; font-weight: 600; color: #8b95a7; letter-spacing: 0.02em; }
|
|
29
|
+
|
|
30
|
+
.edit-form { display: flex; flex-direction: column; gap: 16px; }
|
|
31
|
+
.edit-row,
|
|
32
|
+
.section-row {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: flex-start;
|
|
35
|
+
gap: 16px;
|
|
36
|
+
margin-top: 0;
|
|
37
|
+
}
|
|
38
|
+
.edit-row .label,
|
|
39
|
+
.section-row .label {
|
|
40
|
+
padding-top: 8px;
|
|
41
|
+
}
|
|
42
|
+
.row-body {
|
|
43
|
+
flex: 1;
|
|
44
|
+
min-width: 0;
|
|
45
|
+
}
|
|
46
|
+
`,p=e`
|
|
47
|
+
textarea {
|
|
48
|
+
border: 1px solid #dcdfe6;
|
|
49
|
+
border-radius: 6px;
|
|
50
|
+
padding: 7px 11px;
|
|
51
|
+
font-size: 13px;
|
|
52
|
+
font-family: inherit;
|
|
53
|
+
width: 100%;
|
|
54
|
+
resize: none;
|
|
55
|
+
transition: border-color .2s;
|
|
56
|
+
line-height: 1.5;
|
|
57
|
+
display: block;
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
}
|
|
60
|
+
textarea:focus { border-color: #3D61E3; outline: none; }
|
|
61
|
+
textarea:disabled { background: #f5f7fa; color: #c0c4cc; cursor: not-allowed; }
|
|
62
|
+
|
|
63
|
+
.el-input { position: relative; display: block; }
|
|
64
|
+
.el-input textarea { padding-bottom: 24px; }
|
|
65
|
+
.el-input .char-counter {
|
|
66
|
+
position: absolute;
|
|
67
|
+
right: 12px;
|
|
68
|
+
bottom: 8px;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
color: #909399;
|
|
71
|
+
line-height: 1;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
}
|
|
74
|
+
`;export{i as subjectControlResetStyles,r as subjectFormBaseStyles,t as subjectHostStyles,o as subjectPreviewBaseStyles,p as subjectTextareaStyles};
|
|
75
|
+
//# sourceMappingURL=shared-styles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-styles.mjs","sources":["../../../../packages/components/src/subject/shared-styles.ts"],"sourcesContent":["import { css } from 'lit'\n\nexport const subjectControlResetStyles = css`\n *, ::before, ::after { box-sizing: border-box; }\n input[type=\"radio\"], input[type=\"checkbox\"] { margin: 0; }\n`\n\nexport const subjectHostStyles = css`\n :host {\n display: block;\n font-family: inherit;\n font-size: 12px;\n color: #5a5a5a;\n }\n`\n\nexport const subjectPreviewBaseStyles = css`\n .preview { padding: 10px 0 4px; }\n .preview-header { display: flex; flex-direction: column; gap: 12px; }\n .preview-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }\n .preview .title { font-size: 16px; line-height: 1.75; font-weight: 600; color: #303133; }\n .preview-type { font-size: 12px; line-height: 1.4; font-weight: 600; color: #8b95a7; letter-spacing: 0.02em; }\n .preview .rich-text { font-size: 14px; line-height: 1.8; color: #4b5563; }\n .preview .rich-text p { margin: 0; }\n .preview .rich-text p + p { margin-top: 0.75em; }\n .preview .rich-text img { max-width: 100%; }\n .preview .rich-text img[data-align=\"left\"] { display: block !important; margin: 0 auto 0 0 !important; }\n .preview .rich-text img[data-align=\"center\"] { display: block !important; margin: 0 auto !important; }\n .preview .rich-text img[data-align=\"right\"] { display: block !important; margin: 0 0 0 auto !important; }\n .preview-section { margin-top: 18px; }\n .preview-section-label { font-size: 12px; line-height: 1.4; font-weight: 600; color: #8b95a7; }\n .preview-section-body { margin-top: 8px; }\n`\n\nexport const subjectFormBaseStyles = css`\n .label { min-width: 72px; font-size: 12px; line-height: 1.4; font-weight: 600; color: #8b95a7; letter-spacing: 0.02em; }\n\n .edit-form { display: flex; flex-direction: column; gap: 16px; }\n .edit-row,\n .section-row {\n display: flex;\n align-items: flex-start;\n gap: 16px;\n margin-top: 0;\n }\n .edit-row .label,\n .section-row .label {\n padding-top: 8px;\n }\n .row-body {\n flex: 1;\n min-width: 0;\n }\n`\n\nexport const subjectTextareaStyles = css`\n textarea {\n border: 1px solid #dcdfe6;\n border-radius: 6px;\n padding: 7px 11px;\n font-size: 13px;\n font-family: inherit;\n width: 100%;\n resize: none;\n transition: border-color .2s;\n line-height: 1.5;\n display: block;\n box-sizing: border-box;\n }\n textarea:focus { border-color: #3D61E3; outline: none; }\n textarea:disabled { background: #f5f7fa; color: #c0c4cc; cursor: not-allowed; }\n\n .el-input { position: relative; display: block; }\n .el-input textarea { padding-bottom: 24px; }\n .el-input .char-counter {\n position: absolute;\n right: 12px;\n bottom: 8px;\n font-size: 12px;\n color: #909399;\n line-height: 1;\n pointer-events: none;\n }\n`\n"],"names":["subjectControlResetStyles","css","subjectHostStyles","subjectPreviewBaseStyles","subjectFormBaseStyles","subjectTextareaStyles"],"mappings":"0BAEO,MAAMA,EAA4BC,CAAA;;;EAK5BC,EAAoBD,CAAA;;;;;;;EASpBE,EAA2BF,CAAA;;;;;;;;;;;;;;;;EAkB3BG,EAAwBH,CAAA;;;;;;;;;;;;;;;;;;;EAqBxBI,EAAwBJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|