cosey 0.9.5 → 0.10.1
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 +1 -1
- package/components/audio-card/audio-card.js +1 -1
- package/components/close/close.js +1 -1
- package/components/col/col.api.d.ts +1 -1
- package/components/context-menu/content.js +1 -1
- package/components/dnd-sort/dnd-sort-item.js +1 -1
- package/components/editor/button-group.d.ts +2 -0
- package/components/editor/button-group.js +20 -0
- package/components/editor/button-select.d.ts +14 -0
- package/components/editor/button-select.js +51 -0
- package/components/editor/button-split.d.ts +25 -0
- package/components/editor/button-split.js +68 -0
- package/components/editor/button.d.ts +19 -0
- package/components/editor/button.js +40 -0
- package/components/editor/contents/content-code-block.d.ts +18 -0
- package/components/editor/contents/content-code-block.js +51 -0
- package/components/editor/contents/content-formula.d.ts +12 -0
- package/components/editor/contents/content-formula.js +48 -0
- package/components/editor/contents/content-formula.style.js +14 -0
- package/components/editor/contents/content-image.d.ts +29 -0
- package/components/editor/contents/content-image.js +89 -0
- package/components/editor/{components/list/list.style.d.ts → contents/content-image.style.d.ts} +1 -1
- package/components/editor/contents/content-image.style.js +20 -0
- package/components/editor/contents/content-link.d.ts +16 -0
- package/components/editor/contents/content-link.js +74 -0
- package/components/editor/contents/content-link.stye.d.ts +4 -0
- package/components/editor/contents/content-link.stye.js +17 -0
- package/components/editor/contents/content-list-item.d.ts +21 -0
- package/components/editor/contents/content-list-item.js +41 -0
- package/components/editor/contents/content-list-item.style.d.ts +4 -0
- package/components/editor/contents/content-list-item.style.js +52 -0
- package/components/editor/contents/content-placeholder.d.ts +2 -0
- package/components/editor/contents/content-placeholder.js +24 -0
- package/components/editor/contents/content-placeholder.style.d.ts +4 -0
- package/components/editor/contents/content-placeholder.style.js +19 -0
- package/components/editor/contents/content-table.d.ts +2 -0
- package/components/editor/contents/content-table.js +133 -0
- package/components/editor/contents/content-table.style.d.ts +4 -0
- package/components/editor/contents/content-table.style.js +21 -0
- package/components/editor/contents/content-video.d.ts +26 -0
- package/components/editor/contents/content-video.js +73 -0
- package/components/editor/contents/content-video.style.d.ts +4 -0
- package/components/editor/contents/content-video.style.js +20 -0
- package/components/editor/contents/resize.d.ts +37 -0
- package/components/editor/contents/resize.js +133 -0
- package/components/editor/{components/resize → contents}/resize.style.d.ts +1 -1
- package/components/editor/{components/resize → contents}/resize.style.js +14 -34
- package/components/editor/contents/upload.d.ts +17 -0
- package/components/editor/contents/upload.js +80 -0
- package/components/editor/contents/upload.style.d.ts +4 -0
- package/components/editor/contents/upload.style.js +38 -0
- package/components/editor/contents/widget-popover.d.ts +389 -0
- package/components/editor/contents/widget-popover.js +36 -0
- package/components/editor/contents/widget-popover.style.d.ts +4 -0
- package/components/editor/contents/widget-popover.style.js +15 -0
- package/components/editor/editor.api.d.ts +14 -6
- package/components/editor/editor.api.js +10 -6
- package/components/editor/editor.d.ts +15 -8
- package/components/editor/editor.js +178 -76
- package/components/editor/editor.style.d.ts +5 -1
- package/components/editor/editor.style.js +121 -253
- package/components/editor/{components/color-picker/color-picker.js → formats/color-picker.api.js} +3 -3
- package/components/editor/formats/color-picker.d.ts +20 -0
- package/components/editor/formats/color-picker.js +154 -0
- package/components/editor/{components/color-picker → formats}/color-picker.style.d.ts +1 -1
- package/components/editor/{components/color-picker → formats}/color-picker.style.js +1 -1
- package/components/editor/formats/format-align.d.ts +22 -0
- package/components/editor/formats/format-align.js +38 -0
- package/components/editor/formats/format-background.d.ts +2 -0
- package/components/editor/formats/format-background.js +60 -0
- package/components/editor/formats/format-block-quote.d.ts +2 -0
- package/components/editor/formats/format-block-quote.js +27 -0
- package/components/editor/formats/format-clear.d.ts +2 -0
- package/components/editor/formats/format-clear.js +25 -0
- package/components/editor/formats/format-code-block.d.ts +2 -0
- package/components/editor/formats/format-code-block.js +27 -0
- package/components/editor/formats/format-color.d.ts +2 -0
- package/components/editor/formats/format-color.js +59 -0
- package/components/editor/formats/format-font.d.ts +2 -0
- package/components/editor/formats/format-font.js +46 -0
- package/components/editor/formats/format-formula.d.ts +2 -0
- package/components/editor/formats/format-formula.js +133 -0
- package/components/editor/formats/format-heading.d.ts +2 -0
- package/components/editor/formats/format-heading.js +52 -0
- package/components/editor/formats/format-image.d.ts +2 -0
- package/components/editor/formats/format-image.js +140 -0
- package/components/editor/formats/format-indent.d.ts +20 -0
- package/components/editor/formats/format-indent.js +35 -0
- package/components/editor/formats/format-link.d.ts +2 -0
- package/components/editor/formats/format-link.js +114 -0
- package/components/editor/formats/format-list.d.ts +22 -0
- package/components/editor/formats/format-list.js +39 -0
- package/components/editor/formats/format-mark.d.ts +20 -0
- package/components/editor/formats/format-mark.js +38 -0
- package/components/editor/formats/format-size-delta.d.ts +24 -0
- package/components/editor/formats/format-size-delta.js +43 -0
- package/components/editor/formats/format-size.d.ts +2 -0
- package/components/editor/formats/format-size.js +51 -0
- package/components/editor/formats/format-source.d.ts +2 -0
- package/components/editor/formats/format-source.js +69 -0
- package/components/editor/formats/format-table.d.ts +2 -0
- package/components/editor/formats/format-table.js +85 -0
- package/components/editor/formats/format-table.style.d.ts +4 -0
- package/components/editor/{components/toolbar/formats/table.style.js → formats/format-table.style.js} +2 -2
- package/components/editor/formats/format-video.d.ts +2 -0
- package/components/editor/formats/format-video.js +117 -0
- package/components/editor/formats/picker.d.ts +45 -0
- package/components/editor/formats/picker.js +91 -0
- package/components/editor/{components/picker → formats}/picker.style.d.ts +1 -1
- package/components/editor/{components/picker → formats}/picker.style.js +1 -1
- package/components/editor/formats/select-list.d.ts +28 -0
- package/components/editor/formats/select-list.js +47 -0
- package/components/editor/formats/select-list.style.d.ts +4 -0
- package/components/editor/{components/list/list.style.js → formats/select-list.style.js} +2 -2
- package/components/editor/formats/select.d.ts +32 -0
- package/components/editor/formats/select.js +61 -0
- package/components/editor/hooks/useBlockValueActive.d.ts +1 -0
- package/components/editor/hooks/useBlockValueActive.js +21 -0
- package/components/editor/hooks/useFocus.d.ts +5 -0
- package/components/editor/hooks/useFocus.js +18 -0
- package/components/editor/{components/color-picker → hooks}/useHistoryColor.js +1 -1
- package/components/editor/hooks/useMarkActive.d.ts +1 -0
- package/components/editor/hooks/useMarkActive.js +13 -0
- package/components/editor/hooks/useMarkValue.d.ts +1 -0
- package/components/editor/hooks/useMarkValue.js +21 -0
- package/components/editor/index.d.ts +25 -13
- package/components/editor/index.js +3 -21
- package/components/editor/plugins/align.d.ts +8 -0
- package/components/editor/plugins/align.js +13 -0
- package/components/editor/plugins/background.d.ts +7 -0
- package/components/editor/plugins/background.js +19 -0
- package/components/editor/plugins/block-quote.d.ts +8 -0
- package/components/editor/plugins/block-quote.js +34 -0
- package/components/editor/plugins/clear.d.ts +7 -0
- package/components/editor/plugins/clear.js +53 -0
- package/components/editor/plugins/code-block.d.ts +13 -0
- package/components/editor/plugins/code-block.js +356 -0
- package/components/editor/plugins/color.d.ts +7 -0
- package/components/editor/plugins/color.js +21 -0
- package/components/editor/plugins/font.d.ts +7 -0
- package/components/editor/plugins/font.js +17 -0
- package/components/editor/plugins/formula.d.ts +11 -0
- package/components/editor/{components/toolbar/formats → plugins}/formula.js +50 -1
- package/components/editor/plugins/heading.d.ts +9 -0
- package/components/editor/plugins/heading.js +70 -0
- package/components/editor/plugins/html.d.ts +7 -0
- package/components/editor/plugins/html.js +30 -0
- package/components/editor/plugins/image.d.ts +8 -0
- package/components/editor/plugins/image.js +63 -0
- package/components/editor/plugins/indent.d.ts +7 -0
- package/components/editor/plugins/indent.js +47 -0
- package/components/editor/plugins/index.d.ts +2 -0
- package/components/editor/plugins/index.js +50 -0
- package/components/editor/plugins/keyboard.d.ts +41 -0
- package/components/editor/plugins/keyboard.js +120 -0
- package/components/editor/plugins/link.d.ts +8 -0
- package/components/editor/plugins/link.js +56 -0
- package/components/editor/plugins/list/deserialize.d.ts +3 -0
- package/components/editor/plugins/list/deserialize.js +106 -0
- package/components/editor/plugins/list/format.d.ts +3 -0
- package/components/editor/plugins/list/format.js +155 -0
- package/components/editor/plugins/list/indent.d.ts +2 -0
- package/components/editor/plugins/list/indent.js +38 -0
- package/components/editor/plugins/list/index.d.ts +10 -0
- package/components/editor/plugins/list/index.js +61 -0
- package/components/editor/plugins/list/insert-break.d.ts +2 -0
- package/components/editor/plugins/list/insert-break.js +19 -0
- package/components/editor/plugins/list/normalize.d.ts +3 -0
- package/components/editor/plugins/list/normalize.js +168 -0
- package/components/editor/plugins/list/serialize.d.ts +3 -0
- package/components/editor/plugins/list/serialize.js +63 -0
- package/components/editor/plugins/list/utils.d.ts +6 -0
- package/components/editor/plugins/list/utils.js +24 -0
- package/components/editor/plugins/mark.d.ts +7 -0
- package/components/editor/plugins/mark.js +27 -0
- package/components/editor/plugins/render.d.ts +11 -0
- package/components/editor/plugins/render.js +54 -0
- package/components/editor/plugins/serialize.d.ts +10 -0
- package/components/editor/plugins/serialize.js +342 -0
- package/components/editor/plugins/size.d.ts +8 -0
- package/components/editor/plugins/size.js +47 -0
- package/components/editor/plugins/table.d.ts +21 -0
- package/components/editor/plugins/table.js +702 -0
- package/components/editor/plugins/video.d.ts +8 -0
- package/components/editor/plugins/video.js +40 -0
- package/components/editor/toolbar.d.ts +2 -0
- package/components/editor/toolbar.js +20 -0
- package/components/editor/types.d.ts +194 -0
- package/components/editor/types.js +55 -0
- package/components/editor/usePopoverContainer.d.ts +8 -0
- package/components/editor/usePopoverContainer.js +31 -0
- package/components/editor/utils.d.ts +77 -0
- package/components/editor/utils.js +165 -0
- package/components/field/components/checkbox-group/checkbox-group.vue.js +1 -1
- package/components/field/components/editor/editor.d.ts +16 -0
- package/components/field/components/editor/editor.vue.d.ts +4 -0
- package/components/field/components/editor/editor.vue.js +21 -0
- package/components/field/components/password/password.vue.js +1 -1
- package/components/field/components/select/select.vue.js +1 -1
- package/components/field/field.api.d.ts +3 -0
- package/components/field/field.api.js +18 -16
- package/components/file-card/file-card.js +1 -1
- package/components/form/form-item.vue.js +2 -2
- package/components/form/form.api.d.ts +3 -3
- package/components/form/form.api.js +1 -1
- package/components/form/form.d.ts +6 -6
- package/components/form/index.d.ts +17 -17
- package/components/form/useBubbleTemplate.js +1 -1
- package/components/form-dialog/form-dialog.api.js +1 -1
- package/components/form-dialog/form-dialog.d.ts +5 -5
- package/components/form-drawer/form-drawer.d.ts +5 -5
- package/components/form-drawer/index.d.ts +15 -15
- package/components/form-group/form-group.js +1 -1
- package/components/form-list/index.d.ts +5 -5
- package/components/form-query/form-query.d.ts +5 -5
- package/components/form-query/form-query.js +1 -1
- package/components/form-query/index.d.ts +15 -15
- package/components/highlight/highlight.api.d.ts +30 -12
- package/components/highlight/highlight.api.js +3 -19
- package/components/highlight/highlight.d.ts +7 -3
- package/components/highlight/highlight.js +6 -6
- package/components/highlight/highlight.style.d.ts +1 -0
- package/components/highlight/highlight.style.js +288 -54
- package/components/highlight/index.d.ts +15 -6
- package/components/highlight/index.js +1 -1
- package/components/icon/icon.api.d.ts +11 -0
- package/components/icon/icon.api.js +10 -0
- package/components/icon/icon.d.ts +16 -5
- package/components/icon/icon.js +59 -0
- package/components/icon/icon.style.d.ts +4 -0
- package/components/icon/{style/index.js → icon.style.js} +1 -1
- package/components/icon/index.d.ts +24 -7
- package/components/icon/index.js +2 -1
- package/components/iconify-icon/iconify-icon.api.d.ts +15 -0
- package/components/iconify-icon/iconify-icon.api.js +20 -0
- package/components/iconify-icon/iconify-icon.d.ts +21 -6
- package/components/iconify-icon/iconify-icon.js +22 -8
- package/components/iconify-icon/index.d.ts +37 -4
- package/components/iconify-icon/index.js +2 -2
- package/components/index.d.ts +1 -0
- package/components/index.js +5 -4
- package/components/input-number-range/index.d.ts +39 -30
- package/components/input-number-range/input-number-range.api.d.ts +10 -10
- package/components/input-number-range/input-number-range.d.ts +23 -20
- package/components/input-number-range/input-number-range.js +1 -1
- package/components/snug-menu/snug-menu-item.vue.js +2 -2
- package/components/stack-dialog/index.d.ts +3 -3
- package/components/stack-dialog/stack-dialog.d.ts +1 -1
- package/components/svg-icon/index.d.ts +16 -4
- package/components/svg-icon/index.js +2 -1
- package/components/svg-icon/svg-icon.api.d.ts +7 -0
- package/components/svg-icon/svg-icon.api.js +7 -0
- package/components/svg-icon/svg-icon.d.ts +10 -3
- package/components/svg-icon/svg-icon.js +18 -0
- package/components/table/index.d.ts +12 -12
- package/components/table/table-column/table-column.js +1 -1
- package/components/table/table-export/table-export.d.ts +5 -5
- package/components/table/table-query/table-query.d.ts +5 -5
- package/components/table/table.d.ts +5 -5
- package/components/table/table.js +1 -1
- package/components/table/table.vue.d.ts +7 -7
- package/components/table/table.vue.js +5 -5
- package/components/table-action/item.js +1 -1
- package/components/toggle/toggle.js +1 -1
- package/components/upload/index.d.ts +3 -4
- package/components/upload/index.js +0 -1
- package/components/upload/upload-item.js +1 -1
- package/components/upload/upload.api.d.ts +2 -2
- package/components/upload/upload.d.ts +2 -2
- package/components/upload/upload.js +4 -4
- package/components/video-card/video-card.js +1 -1
- package/config/root-config-provider.js +2 -2
- package/{components/upload-context.d.ts → config/upload.d.ts} +2 -2
- package/{components/upload-context.js → config/upload.js} +3 -3
- package/hooks/index.d.ts +2 -0
- package/hooks/index.js +2 -0
- package/hooks/useObjectUrl.d.ts +2 -0
- package/hooks/useObjectUrl.js +27 -0
- package/hooks/useSingleUpload.d.ts +15 -0
- package/hooks/useSingleUpload.js +64 -0
- package/layout/layout-menu/style/index.js +1 -1
- package/locale/lang/ar.d.ts +2 -0
- package/locale/lang/ar.js +3 -1
- package/locale/lang/en.d.ts +2 -0
- package/locale/lang/en.js +3 -1
- package/locale/lang/zh-cn.d.ts +2 -0
- package/locale/lang/zh-cn.js +3 -1
- package/package.json +11 -7
- package/utils/array.d.ts +1 -1
- package/utils/browser.d.ts +1 -0
- package/utils/browser.js +3 -2
- package/utils/file.d.ts +5 -0
- package/utils/file.js +24 -1
- package/utils/index.js +2 -2
- package/utils/url.d.ts +4 -0
- package/utils/url.js +10 -0
- package/components/editor/components/button-group.vue.d.ts +0 -12
- package/components/editor/components/button-group.vue.js +0 -19
- package/components/editor/components/button.vue.d.ts +0 -17
- package/components/editor/components/button.vue.js +0 -35
- package/components/editor/components/color-picker/color-picker.vue.d.ts +0 -23
- package/components/editor/components/color-picker/color-picker.vue.js +0 -181
- package/components/editor/components/list/list.d.ts +0 -6
- package/components/editor/components/list/list.vue.d.ts +0 -11
- package/components/editor/components/list/list.vue.js +0 -51
- package/components/editor/components/picker/picker.vue.d.ts +0 -25
- package/components/editor/components/picker/picker.vue.js +0 -95
- package/components/editor/components/resize/resize.d.ts +0 -23
- package/components/editor/components/resize/resize.js +0 -88
- package/components/editor/components/resize/resize.vue.d.ts +0 -2
- package/components/editor/components/resize/resize.vue.js +0 -204
- package/components/editor/components/select-button.vue.d.ts +0 -15
- package/components/editor/components/select-button.vue.js +0 -46
- package/components/editor/components/select.vue.d.ts +0 -14
- package/components/editor/components/select.vue.js +0 -67
- package/components/editor/components/split-button.vue.d.ts +0 -22
- package/components/editor/components/split-button.vue.js +0 -69
- package/components/editor/components/table-toolbar/table-toolbar.style.d.ts +0 -4
- package/components/editor/components/table-toolbar/table-toolbar.style.js +0 -22
- package/components/editor/components/table-toolbar/table-toolbar.vue.d.ts +0 -2
- package/components/editor/components/table-toolbar/table-toolbar.vue.js +0 -182
- package/components/editor/components/toolbar/formats/align.vue.d.ts +0 -5
- package/components/editor/components/toolbar/formats/align.vue.js +0 -52
- package/components/editor/components/toolbar/formats/background.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/background.vue.js +0 -70
- package/components/editor/components/toolbar/formats/blockquote.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/blockquote.vue.js +0 -39
- package/components/editor/components/toolbar/formats/bold.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/bold.vue.js +0 -39
- package/components/editor/components/toolbar/formats/clean.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/clean.vue.js +0 -26
- package/components/editor/components/toolbar/formats/code-block.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/code-block.vue.js +0 -39
- package/components/editor/components/toolbar/formats/code.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/code.vue.js +0 -39
- package/components/editor/components/toolbar/formats/color.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/color.vue.js +0 -69
- package/components/editor/components/toolbar/formats/font.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/font.vue.js +0 -59
- package/components/editor/components/toolbar/formats/formula.d.ts +0 -4
- package/components/editor/components/toolbar/formats/formula.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/formula.vue.js +0 -154
- package/components/editor/components/toolbar/formats/header.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/header.vue.js +0 -68
- package/components/editor/components/toolbar/formats/image.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/image.vue.js +0 -26
- package/components/editor/components/toolbar/formats/indent.vue.d.ts +0 -5
- package/components/editor/components/toolbar/formats/indent.vue.js +0 -36
- package/components/editor/components/toolbar/formats/italic.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/italic.vue.js +0 -39
- package/components/editor/components/toolbar/formats/link.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/link.vue.js +0 -218
- package/components/editor/components/toolbar/formats/list.vue.d.ts +0 -5
- package/components/editor/components/toolbar/formats/list.vue.js +0 -50
- package/components/editor/components/toolbar/formats/script.vue.d.ts +0 -5
- package/components/editor/components/toolbar/formats/script.vue.js +0 -50
- package/components/editor/components/toolbar/formats/size-delta.vue.d.ts +0 -5
- package/components/editor/components/toolbar/formats/size-delta.vue.js +0 -79
- package/components/editor/components/toolbar/formats/size.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/size.vue.js +0 -56
- package/components/editor/components/toolbar/formats/source.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/source.vue.js +0 -78
- package/components/editor/components/toolbar/formats/strike.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/strike.vue.js +0 -39
- package/components/editor/components/toolbar/formats/strikethrough.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/strikethrough.vue.js +0 -39
- package/components/editor/components/toolbar/formats/table.style.d.ts +0 -4
- package/components/editor/components/toolbar/formats/table.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/table.vue.js +0 -100
- package/components/editor/components/toolbar/formats/underline.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/underline.vue.js +0 -39
- package/components/editor/components/toolbar/formats/video.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/video.vue.js +0 -123
- package/components/editor/components/toolbar/toolbar.d.ts +0 -36
- package/components/editor/components/toolbar/toolbar.js +0 -137
- package/components/editor/components/toolbar/toolbar.vue.d.ts +0 -3
- package/components/editor/components/toolbar/toolbar.vue.js +0 -130
- package/components/editor/components/toolbar/toolbarContext.d.ts +0 -8
- package/components/editor/components/toolbar/toolbarContext.js +0 -3
- package/components/editor/formats/align.d.ts +0 -2
- package/components/editor/formats/align.js +0 -6
- package/components/editor/formats/font.d.ts +0 -7
- package/components/editor/formats/font.js +0 -36
- package/components/editor/formats/formula.d.ts +0 -9
- package/components/editor/formats/formula.js +0 -29
- package/components/editor/formats/image.d.ts +0 -13
- package/components/editor/formats/image.js +0 -46
- package/components/editor/formats/indent.d.ts +0 -10
- package/components/editor/formats/indent.js +0 -37
- package/components/editor/formats/kbd.d.ts +0 -7
- package/components/editor/formats/kbd.js +0 -13
- package/components/editor/formats/link.d.ts +0 -28
- package/components/editor/formats/link.js +0 -51
- package/components/editor/formats/list.d.ts +0 -13
- package/components/editor/formats/list.js +0 -57
- package/components/editor/formats/size.d.ts +0 -3
- package/components/editor/formats/size.js +0 -9
- package/components/editor/formats/video.d.ts +0 -16
- package/components/editor/formats/video.js +0 -44
- package/components/editor/modules/custom-list.d.ts +0 -5
- package/components/editor/modules/custom-list.js +0 -23
- package/components/editor/modules/image-uploader/formats/image-loading.d.ts +0 -16
- package/components/editor/modules/image-uploader/formats/image-loading.js +0 -31
- package/components/editor/modules/image-uploader/formats/image-loading.style.d.ts +0 -2
- package/components/editor/modules/image-uploader/formats/image-loading.style.js +0 -46
- package/components/editor/modules/image-uploader/image-uploader.d.ts +0 -18
- package/components/editor/modules/image-uploader/image-uploader.js +0 -134
- package/components/editor/modules/syntax/index.d.ts +0 -2
- package/components/editor/modules/syntax/index.js +0 -1
- package/components/editor/modules/syntax/syntaxOptions.d.ts +0 -8
- package/components/editor/modules/syntax/syntaxOptions.js +0 -23
- package/components/editor/quill.d.ts +0 -1
- package/components/editor/quill.js +0 -33
- package/components/editor/quillContext.d.ts +0 -6
- package/components/editor/quillContext.js +0 -3
- package/components/icon/icon.vue.d.ts +0 -13
- package/components/icon/icon.vue.js +0 -76
- package/components/iconify-icon/iconify-icon.vue.d.ts +0 -3
- package/components/iconify-icon/iconify-icon.vue.js +0 -38
- package/components/svg-icon/svg-icon.vue.d.ts +0 -3
- package/components/svg-icon/svg-icon.vue.js +0 -29
- /package/components/{icon/style/index.d.ts → editor/contents/content-formula.style.d.ts} +0 -0
- /package/components/editor/{components/color-picker/color-picker.d.ts → formats/color-picker.api.d.ts} +0 -0
- /package/components/editor/{components/picker/picker.d.ts → formats/picker.api.d.ts} +0 -0
- /package/components/editor/{components/picker/picker.js → formats/picker.api.js} +0 -0
- /package/components/editor/{components/color-picker → hooks}/useHistoryColor.d.ts +0 -0
- /package/components/{editor/components/list/list.js → field/components/editor/editor.js} +0 -0
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
width?: string;
|
|
3
|
-
};
|
|
4
|
-
declare var __VLS_1: {};
|
|
5
|
-
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof __VLS_1) => any;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
10
|
-
export default _default;
|
|
11
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
-
new (): {
|
|
13
|
-
$slots: S;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, inject, onMounted, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, createVNode, renderSlot } from 'vue';
|
|
2
|
-
import { Icon as _Icon } from '../../icon/index.js';
|
|
3
|
-
import { pickerContextKey } from './picker/picker.js';
|
|
4
|
-
import { useComponentConfig } from '../../config-provider/config-provider.api.js';
|
|
5
|
-
|
|
6
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
7
|
-
__name: "select-button",
|
|
8
|
-
props: {
|
|
9
|
-
width: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: false
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
setup(__props) {
|
|
15
|
-
const {
|
|
16
|
-
prefixCls
|
|
17
|
-
} = useComponentConfig("editor-button");
|
|
18
|
-
const buttonRef = useTemplateRef("button");
|
|
19
|
-
const pickerContext = inject(pickerContextKey, null);
|
|
20
|
-
onMounted(() => {
|
|
21
|
-
if (pickerContext) {
|
|
22
|
-
pickerContext.triggerTarget.value = buttonRef.value;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
return (_ctx, _cache) => {
|
|
26
|
-
return openBlock(), createElementBlock("button", {
|
|
27
|
-
ref: "button",
|
|
28
|
-
type: "button",
|
|
29
|
-
class: normalizeClass([unref(prefixCls), `${unref(prefixCls)}-select`]),
|
|
30
|
-
style: normalizeStyle({
|
|
31
|
-
width: _ctx.width
|
|
32
|
-
})
|
|
33
|
-
}, [createElementVNode("div", {
|
|
34
|
-
class: normalizeClass([`${unref(prefixCls)}-text`])
|
|
35
|
-
}, [renderSlot(_ctx.$slots, "default")], 2
|
|
36
|
-
/* CLASS */), createVNode(unref(_Icon), {
|
|
37
|
-
class: normalizeClass(`${unref(prefixCls)}-arrow`),
|
|
38
|
-
name: "co:chevron-down",
|
|
39
|
-
size: "lg"
|
|
40
|
-
}, null, 8, ["class"])], 6
|
|
41
|
-
/* CLASS, STYLE */);
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
export { stdin_default as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type ListItem } from './list/list';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
list: ListItem[];
|
|
4
|
-
modelValue?: any;
|
|
5
|
-
buttonWidth?: string;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
-
change: (value: any) => any;
|
|
9
|
-
"update:modelValue": (value: any) => any;
|
|
10
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
onChange?: ((value: any) => any) | undefined;
|
|
12
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
-
export default _default;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, createBlock, openBlock, withCtx, createVNode, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
-
import stdin_default$1 from './picker/picker.vue.js';
|
|
3
|
-
import stdin_default$2 from './select-button.vue.js';
|
|
4
|
-
import stdin_default$3 from './list/list.vue.js';
|
|
5
|
-
|
|
6
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
7
|
-
__name: "select",
|
|
8
|
-
props: {
|
|
9
|
-
list: {
|
|
10
|
-
type: Array,
|
|
11
|
-
required: true
|
|
12
|
-
},
|
|
13
|
-
modelValue: {
|
|
14
|
-
type: null,
|
|
15
|
-
required: false
|
|
16
|
-
},
|
|
17
|
-
buttonWidth: {
|
|
18
|
-
type: String,
|
|
19
|
-
required: false
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
emits: ["update:modelValue", "change"],
|
|
23
|
-
setup(__props, {
|
|
24
|
-
emit: __emit
|
|
25
|
-
}) {
|
|
26
|
-
const props = __props;
|
|
27
|
-
const emit = __emit;
|
|
28
|
-
const visible = ref(false);
|
|
29
|
-
const displayedLabel = computed(() => {
|
|
30
|
-
return props.list.find(item => item.value === props.modelValue)?.label || props.modelValue;
|
|
31
|
-
});
|
|
32
|
-
const onSelect = item => {
|
|
33
|
-
emit("update:modelValue", item.value);
|
|
34
|
-
emit("change", item.value);
|
|
35
|
-
visible.value = false;
|
|
36
|
-
};
|
|
37
|
-
const onClick = () => {
|
|
38
|
-
visible.value = !visible.value;
|
|
39
|
-
};
|
|
40
|
-
return (_ctx, _cache) => {
|
|
41
|
-
return openBlock(), createBlock(stdin_default$1, {
|
|
42
|
-
visible: visible.value,
|
|
43
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = $event => visible.value = $event),
|
|
44
|
-
"max-height": "300px"
|
|
45
|
-
}, {
|
|
46
|
-
content: withCtx(() => [createVNode(stdin_default$3, {
|
|
47
|
-
list: _ctx.list,
|
|
48
|
-
"selected-value": _ctx.modelValue,
|
|
49
|
-
onSelect
|
|
50
|
-
}, null, 8, ["list", "selected-value"])]),
|
|
51
|
-
default: withCtx(() => [createVNode(stdin_default$2, {
|
|
52
|
-
width: _ctx.buttonWidth,
|
|
53
|
-
onClick
|
|
54
|
-
}, {
|
|
55
|
-
default: withCtx(() => [createTextVNode(toDisplayString(displayedLabel.value), 1
|
|
56
|
-
/* TEXT */)]),
|
|
57
|
-
_: 1
|
|
58
|
-
/* STABLE */
|
|
59
|
-
}, 8, ["width"])]),
|
|
60
|
-
_: 1
|
|
61
|
-
/* STABLE */
|
|
62
|
-
}, 8, ["visible"]);
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
export { stdin_default as default };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
chevronActive?: boolean;
|
|
3
|
-
active?: boolean;
|
|
4
|
-
};
|
|
5
|
-
declare var __VLS_1: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_1) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
|
-
click: (event: MouseEvent) => any;
|
|
11
|
-
"chevron-click": (event: MouseEvent) => any;
|
|
12
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
14
|
-
"onChevron-click"?: ((event: MouseEvent) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, inject, onMounted, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, renderSlot, createVNode } from 'vue';
|
|
2
|
-
import { Icon as _Icon } from '../../icon/index.js';
|
|
3
|
-
import { pickerContextKey } from './picker/picker.js';
|
|
4
|
-
import { useComponentConfig } from '../../config-provider/config-provider.api.js';
|
|
5
|
-
|
|
6
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
7
|
-
__name: "split-button",
|
|
8
|
-
props: {
|
|
9
|
-
chevronActive: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
required: false
|
|
12
|
-
},
|
|
13
|
-
active: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
required: false
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
emits: ["click", "chevron-click"],
|
|
19
|
-
setup(__props, {
|
|
20
|
-
emit: __emit
|
|
21
|
-
}) {
|
|
22
|
-
const emit = __emit;
|
|
23
|
-
const {
|
|
24
|
-
prefixCls
|
|
25
|
-
} = useComponentConfig("editor-button");
|
|
26
|
-
const onBtnClick = event => {
|
|
27
|
-
emit("click", event);
|
|
28
|
-
};
|
|
29
|
-
const onChevronClick = event => {
|
|
30
|
-
emit("chevron-click", event);
|
|
31
|
-
};
|
|
32
|
-
const chevronButtonRef = useTemplateRef("chevronButton");
|
|
33
|
-
const pickerContext = inject(pickerContextKey, null);
|
|
34
|
-
onMounted(() => {
|
|
35
|
-
if (pickerContext) {
|
|
36
|
-
pickerContext.triggerTarget.value = chevronButtonRef.value;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
return (_ctx, _cache) => {
|
|
40
|
-
return openBlock(), createElementBlock("div", {
|
|
41
|
-
class: normalizeClass([`${unref(prefixCls)}-split`, {
|
|
42
|
-
"is-active": _ctx.chevronActive
|
|
43
|
-
}])
|
|
44
|
-
}, [createElementVNode("button", {
|
|
45
|
-
type: "button",
|
|
46
|
-
class: normalizeClass([unref(prefixCls), {
|
|
47
|
-
"is-active": _ctx.active
|
|
48
|
-
}]),
|
|
49
|
-
onClick: onBtnClick
|
|
50
|
-
}, [renderSlot(_ctx.$slots, "default")], 2
|
|
51
|
-
/* CLASS */), createElementVNode("button", {
|
|
52
|
-
ref: "chevronButton",
|
|
53
|
-
type: "button",
|
|
54
|
-
class: normalizeClass([unref(prefixCls), `${unref(prefixCls)}-chevron`, {
|
|
55
|
-
"is-active": _ctx.chevronActive
|
|
56
|
-
}]),
|
|
57
|
-
onClick: onChevronClick
|
|
58
|
-
}, [createVNode(unref(_Icon), {
|
|
59
|
-
class: normalizeClass(`${unref(prefixCls)}-arrow`),
|
|
60
|
-
name: "co:chevron-down",
|
|
61
|
-
size: "lg"
|
|
62
|
-
}, null, 8, ["class"])], 2
|
|
63
|
-
/* CLASS */)], 2
|
|
64
|
-
/* CLASS */);
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
export { stdin_default as default };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { getSimpleStyleHook } from '../../../theme/getSimpleStyleHook.js';
|
|
2
|
-
|
|
3
|
-
var stdin_default = getSimpleStyleHook("CoEditorTableToolbar", (token) => {
|
|
4
|
-
const { componentCls } = token;
|
|
5
|
-
return {
|
|
6
|
-
[componentCls]: {
|
|
7
|
-
position: "absolute",
|
|
8
|
-
insetBlockStart: 0,
|
|
9
|
-
insetInlineStart: 0,
|
|
10
|
-
display: "flex",
|
|
11
|
-
columnGap: token.padding,
|
|
12
|
-
paddingInline: token.paddingXS,
|
|
13
|
-
paddingBlock: token.paddingXXS,
|
|
14
|
-
border: `${token.lineWidth} ${token.lineType} ${token.colorBorderSecondary}`,
|
|
15
|
-
borderRadius: token.borderRadius,
|
|
16
|
-
backgroundColor: token.colorBgElevated,
|
|
17
|
-
boxShadow: token.boxShadow
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export { stdin_default as default };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, useTemplateRef, watch, computed, inject, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createVNode, withCtx } from 'vue';
|
|
2
|
-
import { offset, flip, shift } from '@floating-ui/dom';
|
|
3
|
-
import stdin_default$1 from './table-toolbar.style.js';
|
|
4
|
-
import { Icon as _Icon } from '../../../icon/index.js';
|
|
5
|
-
import stdin_default$3 from '../button.vue.js';
|
|
6
|
-
import stdin_default$2 from '../button-group.vue.js';
|
|
7
|
-
import { editorContextKey } from '../../quillContext.js';
|
|
8
|
-
import Quill from 'quill';
|
|
9
|
-
import { TableCell } from 'quill/formats/table';
|
|
10
|
-
import { useComponentConfig } from '../../../config-provider/config-provider.api.js';
|
|
11
|
-
import { useFloating } from '../../../../hooks/useFloating.js';
|
|
12
|
-
|
|
13
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
14
|
-
__name: "table-toolbar",
|
|
15
|
-
setup(__props) {
|
|
16
|
-
const {
|
|
17
|
-
prefixCls
|
|
18
|
-
} = useComponentConfig("editor-table-toolbar");
|
|
19
|
-
const {
|
|
20
|
-
hashId
|
|
21
|
-
} = stdin_default$1(prefixCls);
|
|
22
|
-
const referenceEl = ref(null);
|
|
23
|
-
const floatingEl = useTemplateRef("floatingRef");
|
|
24
|
-
const {
|
|
25
|
-
x,
|
|
26
|
-
y,
|
|
27
|
-
floating
|
|
28
|
-
} = useFloating(referenceEl, floatingEl, {
|
|
29
|
-
placement: "top",
|
|
30
|
-
strategy: "absolute",
|
|
31
|
-
middleware: [offset(0), flip(), shift()]
|
|
32
|
-
});
|
|
33
|
-
watch(referenceEl, () => {
|
|
34
|
-
floating.value = !!referenceEl.value;
|
|
35
|
-
}, {
|
|
36
|
-
immediate: true
|
|
37
|
-
});
|
|
38
|
-
const floatingStyle = computed(() => {
|
|
39
|
-
return {
|
|
40
|
-
display: floating.value ? "flex" : "none",
|
|
41
|
-
insetBlockStart: y.value + "px",
|
|
42
|
-
insetInlineStart: x.value + "px"
|
|
43
|
-
};
|
|
44
|
-
});
|
|
45
|
-
const {
|
|
46
|
-
quill
|
|
47
|
-
} = inject(editorContextKey);
|
|
48
|
-
watch(quill, quill2 => {
|
|
49
|
-
if (quill2) {
|
|
50
|
-
quill2.on(Quill.events.EDITOR_CHANGE, () => {
|
|
51
|
-
const range = quill2.getSelection();
|
|
52
|
-
if (range) {
|
|
53
|
-
const [cell] = quill2.getLine(range.index);
|
|
54
|
-
if (cell && cell.statics.blotName === TableCell.blotName) {
|
|
55
|
-
const row = cell.parent;
|
|
56
|
-
const table2 = row.parent.parent;
|
|
57
|
-
referenceEl.value = table2.domNode;
|
|
58
|
-
} else {
|
|
59
|
-
referenceEl.value = null;
|
|
60
|
-
}
|
|
61
|
-
} else {
|
|
62
|
-
referenceEl.value = null;
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}, {
|
|
67
|
-
immediate: true
|
|
68
|
-
});
|
|
69
|
-
const table = {
|
|
70
|
-
getTable() {
|
|
71
|
-
return quill.value.getModule("table");
|
|
72
|
-
},
|
|
73
|
-
insertRowAbove() {
|
|
74
|
-
this.getTable().insertRowAbove();
|
|
75
|
-
},
|
|
76
|
-
insertRowBelow() {
|
|
77
|
-
this.getTable().insertRowBelow();
|
|
78
|
-
},
|
|
79
|
-
deleteRow() {
|
|
80
|
-
this.getTable().deleteRow();
|
|
81
|
-
},
|
|
82
|
-
insertColumnLeft() {
|
|
83
|
-
this.getTable().insertColumnLeft();
|
|
84
|
-
},
|
|
85
|
-
insertColumnRight() {
|
|
86
|
-
this.getTable().insertColumnRight();
|
|
87
|
-
},
|
|
88
|
-
deleteColumn() {
|
|
89
|
-
this.getTable().deleteColumn();
|
|
90
|
-
},
|
|
91
|
-
deleteTable() {
|
|
92
|
-
this.getTable().deleteTable();
|
|
93
|
-
},
|
|
94
|
-
setTopHeader() {
|
|
95
|
-
const table2 = this.getTable().getTable()[0];
|
|
96
|
-
table2.domNode.classList.toggle("ql-table-top-header");
|
|
97
|
-
},
|
|
98
|
-
setLeftHeader() {
|
|
99
|
-
const table2 = this.getTable().getTable()[0];
|
|
100
|
-
table2.domNode.classList.toggle("ql-table-left-header");
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
return (_ctx, _cache) => {
|
|
104
|
-
return openBlock(), createElementBlock("div", {
|
|
105
|
-
ref: "floatingRef",
|
|
106
|
-
class: normalizeClass([unref(hashId), unref(prefixCls)]),
|
|
107
|
-
style: normalizeStyle(floatingStyle.value)
|
|
108
|
-
}, [createVNode(stdin_default$2, null, {
|
|
109
|
-
default: withCtx(() => [createVNode(stdin_default$3, {
|
|
110
|
-
onClick: _cache[0] || (_cache[0] = $event => table.insertRowAbove())
|
|
111
|
-
}, {
|
|
112
|
-
default: withCtx(() => [createVNode(unref(_Icon), {
|
|
113
|
-
name: "co:table-row-plus-before"
|
|
114
|
-
})]),
|
|
115
|
-
_: 1
|
|
116
|
-
/* STABLE */
|
|
117
|
-
}), createVNode(stdin_default$3, {
|
|
118
|
-
onClick: _cache[1] || (_cache[1] = $event => table.insertRowBelow())
|
|
119
|
-
}, {
|
|
120
|
-
default: withCtx(() => [createVNode(unref(_Icon), {
|
|
121
|
-
name: "co:table-row-plus-after"
|
|
122
|
-
})]),
|
|
123
|
-
_: 1
|
|
124
|
-
/* STABLE */
|
|
125
|
-
}), createVNode(stdin_default$3, {
|
|
126
|
-
onClick: _cache[2] || (_cache[2] = $event => table.deleteRow())
|
|
127
|
-
}, {
|
|
128
|
-
default: withCtx(() => [createVNode(unref(_Icon), {
|
|
129
|
-
name: "co:table-row-remove"
|
|
130
|
-
})]),
|
|
131
|
-
_: 1
|
|
132
|
-
/* STABLE */
|
|
133
|
-
})]),
|
|
134
|
-
_: 1
|
|
135
|
-
/* STABLE */
|
|
136
|
-
}), createVNode(stdin_default$2, null, {
|
|
137
|
-
default: withCtx(() => [createVNode(stdin_default$3, {
|
|
138
|
-
onClick: _cache[3] || (_cache[3] = $event => table.insertColumnLeft())
|
|
139
|
-
}, {
|
|
140
|
-
default: withCtx(() => [createVNode(unref(_Icon), {
|
|
141
|
-
name: "co:table-column-plus-before"
|
|
142
|
-
})]),
|
|
143
|
-
_: 1
|
|
144
|
-
/* STABLE */
|
|
145
|
-
}), createVNode(stdin_default$3, {
|
|
146
|
-
onClick: _cache[4] || (_cache[4] = $event => table.insertColumnRight())
|
|
147
|
-
}, {
|
|
148
|
-
default: withCtx(() => [createVNode(unref(_Icon), {
|
|
149
|
-
name: "co:table-column-plus-after"
|
|
150
|
-
})]),
|
|
151
|
-
_: 1
|
|
152
|
-
/* STABLE */
|
|
153
|
-
}), createVNode(stdin_default$3, {
|
|
154
|
-
onClick: _cache[5] || (_cache[5] = $event => table.deleteColumn())
|
|
155
|
-
}, {
|
|
156
|
-
default: withCtx(() => [createVNode(unref(_Icon), {
|
|
157
|
-
name: "co:table-column-remove"
|
|
158
|
-
})]),
|
|
159
|
-
_: 1
|
|
160
|
-
/* STABLE */
|
|
161
|
-
})]),
|
|
162
|
-
_: 1
|
|
163
|
-
/* STABLE */
|
|
164
|
-
}), createVNode(stdin_default$2, null, {
|
|
165
|
-
default: withCtx(() => [createVNode(stdin_default$3, {
|
|
166
|
-
onClick: _cache[6] || (_cache[6] = $event => table.deleteTable())
|
|
167
|
-
}, {
|
|
168
|
-
default: withCtx(() => [createVNode(unref(_Icon), {
|
|
169
|
-
name: "co:table-remove"
|
|
170
|
-
})]),
|
|
171
|
-
_: 1
|
|
172
|
-
/* STABLE */
|
|
173
|
-
})]),
|
|
174
|
-
_: 1
|
|
175
|
-
/* STABLE */
|
|
176
|
-
})], 6
|
|
177
|
-
/* CLASS, STYLE */);
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
export { stdin_default as default };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
align: 'left' | 'center' | 'right' | 'justify';
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
-
export default _default;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { defineComponent, inject, ref, watch, createBlock, openBlock, unref, withCtx, createVNode } from 'vue';
|
|
2
|
-
import { toolbarContextKey } from '../toolbarContext.js';
|
|
3
|
-
import stdin_default$1 from '../../button.vue.js';
|
|
4
|
-
import stdin_default$2 from '../../../../icon/index.js';
|
|
5
|
-
import { Toolbar } from '../toolbar.js';
|
|
6
|
-
|
|
7
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
8
|
-
__name: "align",
|
|
9
|
-
props: {
|
|
10
|
-
align: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: true
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
setup(__props) {
|
|
16
|
-
const props = __props;
|
|
17
|
-
const {
|
|
18
|
-
toolbar
|
|
19
|
-
} = inject(toolbarContextKey);
|
|
20
|
-
const isActive = ref(false);
|
|
21
|
-
const mapIcons = {
|
|
22
|
-
left: "co:text-align-left",
|
|
23
|
-
center: "co:text-align-center",
|
|
24
|
-
right: "co:text-align-right",
|
|
25
|
-
justify: "co:text-align-justify"
|
|
26
|
-
};
|
|
27
|
-
watch(toolbar, toolbar2 => {
|
|
28
|
-
if (toolbar2) {
|
|
29
|
-
toolbar2.on(Toolbar.events.EDITOR_CHANGE, event => {
|
|
30
|
-
const formats = event.detail.formats;
|
|
31
|
-
isActive.value = formats["align"] === props.align;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}, {
|
|
35
|
-
immediate: true
|
|
36
|
-
});
|
|
37
|
-
return (_ctx, _cache) => {
|
|
38
|
-
return openBlock(), createBlock(stdin_default$1, {
|
|
39
|
-
active: isActive.value,
|
|
40
|
-
onClick: _cache[0] || (_cache[0] = $event => unref(toolbar)?.align(_ctx.align, isActive.value))
|
|
41
|
-
}, {
|
|
42
|
-
default: withCtx(() => [createVNode(unref(stdin_default$2), {
|
|
43
|
-
name: mapIcons[_ctx.align]
|
|
44
|
-
}, null, 8, ["name"])]),
|
|
45
|
-
_: 1
|
|
46
|
-
/* STABLE */
|
|
47
|
-
}, 8, ["active"]);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
export { stdin_default as default };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { defineComponent, inject, ref, createBlock, openBlock, withCtx, createVNode, createElementBlock, createElementVNode } from 'vue';
|
|
2
|
-
import stdin_default$2 from '../../split-button.vue.js';
|
|
3
|
-
import { toolbarContextKey } from '../toolbarContext.js';
|
|
4
|
-
import stdin_default$1 from '../../color-picker/color-picker.vue.js';
|
|
5
|
-
|
|
6
|
-
const _hoisted_1 = {
|
|
7
|
-
width: "24",
|
|
8
|
-
height: "24",
|
|
9
|
-
viewBox: "0 0 24 24"
|
|
10
|
-
};
|
|
11
|
-
const _hoisted_2 = {
|
|
12
|
-
"fill-rule": "evenodd"
|
|
13
|
-
};
|
|
14
|
-
const _hoisted_3 = ["fill"];
|
|
15
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
16
|
-
__name: "background",
|
|
17
|
-
setup(__props) {
|
|
18
|
-
const {
|
|
19
|
-
toolbar
|
|
20
|
-
} = inject(toolbarContextKey);
|
|
21
|
-
const visible = ref(false);
|
|
22
|
-
const current = ref("#000");
|
|
23
|
-
const select = () => {
|
|
24
|
-
toolbar.value.background(current.value);
|
|
25
|
-
};
|
|
26
|
-
const onChevronClick = () => {
|
|
27
|
-
visible.value = !visible.value;
|
|
28
|
-
};
|
|
29
|
-
const onBtnClick = () => {
|
|
30
|
-
select();
|
|
31
|
-
};
|
|
32
|
-
const onSelect = color => {
|
|
33
|
-
current.value = color;
|
|
34
|
-
select();
|
|
35
|
-
};
|
|
36
|
-
const onClear = () => {
|
|
37
|
-
toolbar.value.background(false);
|
|
38
|
-
};
|
|
39
|
-
return (_ctx, _cache) => {
|
|
40
|
-
return openBlock(), createBlock(stdin_default$1, {
|
|
41
|
-
visible: visible.value,
|
|
42
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = $event => visible.value = $event),
|
|
43
|
-
onSelect,
|
|
44
|
-
onClear
|
|
45
|
-
}, {
|
|
46
|
-
default: withCtx(() => [createVNode(stdin_default$2, {
|
|
47
|
-
"chevron-active": visible.value,
|
|
48
|
-
onClick: onBtnClick,
|
|
49
|
-
onChevronClick
|
|
50
|
-
}, {
|
|
51
|
-
default: withCtx(() => [(openBlock(), createElementBlock("svg", _hoisted_1, [createElementVNode("g", _hoisted_2, [createElementVNode("path", {
|
|
52
|
-
d: "M3 18h18v3H3z",
|
|
53
|
-
fill: current.value
|
|
54
|
-
}, null, 8, _hoisted_3), _cache[1] || (_cache[1] = createElementVNode("path", {
|
|
55
|
-
"fill-rule": "nonzero",
|
|
56
|
-
fill: "currentColor",
|
|
57
|
-
d: "M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 0 1 2.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"
|
|
58
|
-
}, null, -1
|
|
59
|
-
/* CACHED */))])]))]),
|
|
60
|
-
_: 1
|
|
61
|
-
/* STABLE */
|
|
62
|
-
}, 8, ["chevron-active"])]),
|
|
63
|
-
_: 1
|
|
64
|
-
/* STABLE */
|
|
65
|
-
}, 8, ["visible"]);
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
export { stdin_default as default };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { defineComponent, inject, ref, watch, createBlock, openBlock, unref, withCtx, createVNode } from 'vue';
|
|
2
|
-
import { toolbarContextKey } from '../toolbarContext.js';
|
|
3
|
-
import stdin_default$1 from '../../button.vue.js';
|
|
4
|
-
import stdin_default$2 from '../../../../icon/index.js';
|
|
5
|
-
import { Toolbar } from '../toolbar.js';
|
|
6
|
-
|
|
7
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
8
|
-
__name: "blockquote",
|
|
9
|
-
setup(__props) {
|
|
10
|
-
const {
|
|
11
|
-
toolbar
|
|
12
|
-
} = inject(toolbarContextKey);
|
|
13
|
-
const isActive = ref(false);
|
|
14
|
-
watch(toolbar, toolbar2 => {
|
|
15
|
-
if (toolbar2) {
|
|
16
|
-
toolbar2.on(Toolbar.events.EDITOR_CHANGE, event => {
|
|
17
|
-
const formats = event.detail.formats;
|
|
18
|
-
isActive.value = formats["blockquote"] != null;
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}, {
|
|
22
|
-
immediate: true
|
|
23
|
-
});
|
|
24
|
-
return (_ctx, _cache) => {
|
|
25
|
-
return openBlock(), createBlock(stdin_default$1, {
|
|
26
|
-
active: isActive.value,
|
|
27
|
-
onClick: _cache[0] || (_cache[0] = $event => unref(toolbar)?.blockquote(!isActive.value))
|
|
28
|
-
}, {
|
|
29
|
-
default: withCtx(() => [createVNode(unref(stdin_default$2), {
|
|
30
|
-
name: "co:quotes"
|
|
31
|
-
})]),
|
|
32
|
-
_: 1
|
|
33
|
-
/* STABLE */
|
|
34
|
-
}, 8, ["active"]);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
export { stdin_default as default };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { defineComponent, inject, ref, watch, createBlock, openBlock, unref, withCtx, createVNode } from 'vue';
|
|
2
|
-
import { toolbarContextKey } from '../toolbarContext.js';
|
|
3
|
-
import stdin_default$1 from '../../button.vue.js';
|
|
4
|
-
import stdin_default$2 from '../../../../icon/index.js';
|
|
5
|
-
import { Toolbar } from '../toolbar.js';
|
|
6
|
-
|
|
7
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
8
|
-
__name: "bold",
|
|
9
|
-
setup(__props) {
|
|
10
|
-
const {
|
|
11
|
-
toolbar
|
|
12
|
-
} = inject(toolbarContextKey);
|
|
13
|
-
const isActive = ref(false);
|
|
14
|
-
watch(toolbar, toolbar2 => {
|
|
15
|
-
if (toolbar2) {
|
|
16
|
-
toolbar2.on(Toolbar.events.EDITOR_CHANGE, event => {
|
|
17
|
-
const formats = event.detail.formats;
|
|
18
|
-
isActive.value = formats["bold"] != null;
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}, {
|
|
22
|
-
immediate: true
|
|
23
|
-
});
|
|
24
|
-
return (_ctx, _cache) => {
|
|
25
|
-
return openBlock(), createBlock(stdin_default$1, {
|
|
26
|
-
active: isActive.value,
|
|
27
|
-
onClick: _cache[0] || (_cache[0] = $event => unref(toolbar)?.bold(!isActive.value))
|
|
28
|
-
}, {
|
|
29
|
-
default: withCtx(() => [createVNode(unref(stdin_default$2), {
|
|
30
|
-
name: "co:text-bold"
|
|
31
|
-
})]),
|
|
32
|
-
_: 1
|
|
33
|
-
/* STABLE */
|
|
34
|
-
}, 8, ["active"]);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
export { stdin_default as default };
|