cosey 0.5.0 → 0.5.2
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/components/audio-card/audio-card.api.d.ts +44 -0
- package/components/audio-card/audio-card.api.js +13 -0
- package/components/audio-card/audio-card.d.ts +78 -14
- package/components/audio-card/audio-card.js +55 -7
- package/components/{stack-dialog/style/index.d.ts → audio-card/audio-card.style.d.ts} +1 -1
- package/components/audio-card/{style/index.js → audio-card.style.js} +3 -6
- package/components/audio-card/index.d.ts +120 -21
- package/components/audio-card/index.js +2 -2
- package/components/audio-viewer/audio-viewer.api.d.ts +28 -0
- package/components/audio-viewer/audio-viewer.api.js +11 -0
- package/components/audio-viewer/audio-viewer.d.ts +43 -11
- package/components/audio-viewer/audio-viewer.js +88 -5
- package/components/{transition/style/index.d.ts → audio-viewer/audio-viewer.style.d.ts} +1 -1
- package/components/audio-viewer/{style/index.js → audio-viewer.style.js} +2 -5
- package/components/audio-viewer/index.d.ts +67 -12
- package/components/audio-viewer/index.js +1 -2
- package/components/card/card.api.d.ts +11 -0
- package/components/card/card.api.js +7 -0
- package/components/card/card.d.ts +6 -11
- package/components/card/card.js +27 -0
- package/components/card/card.style.d.ts +4 -0
- package/components/card/{style/index.js → card.style.js} +2 -2
- package/components/card/index.d.ts +14 -22
- package/components/card/index.js +2 -1
- package/components/close/close.api.d.ts +3 -0
- package/components/close/close.api.js +5 -0
- package/components/close/close.d.ts +6 -2
- package/components/close/close.js +26 -0
- package/components/close/close.style.d.ts +4 -0
- package/components/close/{style/index.js → close.style.js} +2 -5
- package/components/close/index.d.ts +14 -4
- package/components/close/index.js +2 -1
- package/components/col/col.api.d.ts +54 -0
- package/components/col/col.api.js +45 -0
- package/components/col/col.d.ts +87 -28
- package/components/col/col.js +74 -9
- package/components/col/col.style.d.ts +8 -0
- package/components/col/{style/index.js → col.style.js} +3 -6
- package/components/col/index.d.ts +132 -11
- package/components/col/index.js +2 -2
- package/components/config-provider/config-provider.api.d.ts +32 -0
- package/components/config-provider/config-provider.api.js +43 -0
- package/components/config-provider/config-provider.d.ts +28 -23
- package/components/config-provider/config-provider.js +55 -27
- package/components/config-provider/index.d.ts +42 -7
- package/components/config-provider/index.js +2 -2
- package/components/container/container.api.d.ts +14 -0
- package/components/container/container.api.js +9 -0
- package/components/container/container.d.ts +12 -10
- package/components/container/container.js +33 -2
- package/components/container/container.style.d.ts +4 -0
- package/components/container/container.style.js +12 -0
- package/components/container/index.d.ts +22 -6
- package/components/container/index.js +2 -2
- package/components/context-menu/content.api.d.ts +22 -0
- package/components/context-menu/content.api.js +22 -0
- package/components/context-menu/content.d.ts +55 -8
- package/components/context-menu/content.js +44 -0
- package/components/context-menu/context-menu-item.api.d.ts +25 -0
- package/components/context-menu/context-menu-item.api.js +21 -0
- package/components/context-menu/context-menu-item.d.ts +37 -15
- package/components/context-menu/context-menu-item.js +66 -0
- package/components/context-menu/context-menu.api.d.ts +35 -0
- package/components/context-menu/context-menu.api.js +14 -0
- package/components/context-menu/context-menu.d.ts +20 -30
- package/components/context-menu/context-menu.js +152 -2
- package/components/context-menu/context-menu.style.d.ts +8 -0
- package/components/context-menu/{style/index.js → context-menu.style.js} +3 -6
- package/components/context-menu/context-sub-menu.api.d.ts +20 -0
- package/components/context-menu/context-sub-menu.api.js +17 -0
- package/components/context-menu/context-sub-menu.d.ts +31 -13
- package/components/context-menu/context-sub-menu.js +199 -0
- package/components/context-menu/divider.d.ts +2 -0
- package/components/context-menu/divider.js +17 -0
- package/components/context-menu/index.d.ts +145 -43
- package/components/context-menu/index.js +6 -4
- package/components/context-menu/useItemProvide.js +1 -1
- package/components/copy/copy.api.d.ts +14 -0
- package/components/copy/copy.api.js +11 -0
- package/components/copy/copy.d.ts +16 -11
- package/components/copy/copy.js +42 -0
- package/components/copy/copy.style.d.ts +4 -0
- package/components/copy/{style/index.js → copy.style.js} +2 -5
- package/components/copy/index.d.ts +25 -6
- package/components/copy/index.js +2 -1
- package/components/dnd-sort/dnd-sort-item.api.d.ts +13 -0
- package/components/dnd-sort/dnd-sort-item.api.js +9 -0
- package/components/dnd-sort/dnd-sort-item.d.ts +12 -7
- package/components/dnd-sort/dnd-sort-item.js +48 -0
- package/components/dnd-sort/dnd-sort.api.d.ts +33 -0
- package/components/dnd-sort/dnd-sort.api.js +17 -0
- package/components/dnd-sort/dnd-sort.d.ts +26 -25
- package/components/dnd-sort/dnd-sort.js +30 -2
- package/components/dnd-sort/dnd-sort.style.d.ts +4 -0
- package/components/dnd-sort/{style/index.js → dnd-sort.style.js} +2 -5
- package/components/dnd-sort/index.d.ts +69 -19
- package/components/dnd-sort/index.js +4 -3
- package/components/dnd-sort/useDndSort.js +1 -1
- package/components/dnd-sort/useDndSortItem.js +1 -1
- package/components/editor/components/button-group.vue.js +1 -1
- package/components/editor/components/button.vue.js +1 -1
- package/components/editor/components/color-picker/color-picker.style.js +1 -1
- package/components/editor/components/color-picker/color-picker.vue.js +1 -1
- package/components/editor/components/list/list.style.js +1 -1
- package/components/editor/components/list/list.vue.js +1 -1
- package/components/editor/components/picker/picker.style.js +1 -1
- package/components/editor/components/picker/picker.vue.js +1 -1
- package/components/editor/components/resize/resize.style.js +1 -1
- package/components/editor/components/resize/resize.vue.js +1 -1
- package/components/editor/components/select-button.vue.js +1 -1
- package/components/editor/components/select.vue.d.ts +2 -2
- package/components/editor/components/split-button.vue.js +1 -1
- package/components/editor/components/table-toolbar/table-toolbar.style.js +1 -1
- package/components/editor/components/table-toolbar/table-toolbar.vue.js +1 -1
- package/components/editor/components/toolbar/formats/background.vue.js +1 -1
- package/components/editor/components/toolbar/formats/color.vue.js +1 -1
- package/components/editor/components/toolbar/formats/table.style.js +1 -1
- package/components/editor/components/toolbar/formats/table.vue.js +1 -1
- package/components/editor/components/toolbar/toolbar.vue.js +1 -1
- package/components/editor/editor.api.d.ts +29 -0
- package/components/editor/editor.api.js +29 -0
- package/components/editor/editor.d.ts +50 -15
- package/components/editor/editor.js +109 -4
- package/components/editor/editor.style.d.ts +5 -0
- package/components/editor/{style/index.js → editor.style.js} +89 -5
- package/components/editor/index.d.ts +78 -15
- package/components/editor/index.js +3 -3
- package/components/field/components/cascader/cascader.vue.js +1 -1
- package/components/field/components/checkbox/checkbox.vue.js +1 -1
- package/components/field/components/checkbox-group/checkbox-group.vue.js +1 -1
- package/components/field/components/checkbox-group/panel.vue.js +1 -1
- package/components/field/components/color/color.vue.js +1 -1
- package/components/field/components/common.d.ts +7 -3
- package/components/field/components/common.js +6 -0
- package/components/field/components/date/date.vue.js +1 -1
- package/components/field/components/date-range/date-range.vue.js +1 -1
- package/components/field/components/date-time/date-time.vue.js +1 -1
- package/components/field/components/date-time-range/date-time-range.vue.js +1 -1
- package/components/field/components/dates/dates.vue.js +1 -1
- package/components/field/components/input/input.vue.js +1 -1
- package/components/field/components/input-tag/input-tag.vue.js +1 -1
- package/components/field/components/mention/mention.vue.js +1 -1
- package/components/field/components/month/month.vue.js +1 -1
- package/components/field/components/month-range/month-range.vue.js +1 -1
- package/components/field/components/months/months.vue.js +1 -1
- package/components/field/components/number/number.vue.js +1 -1
- package/components/field/components/number-range/number-range.vue.js +1 -1
- package/components/field/components/password/password.vue.js +1 -1
- package/components/field/components/radio-group/radio-group.vue.js +1 -1
- package/components/field/components/rate/rate.vue.js +1 -1
- package/components/field/components/remote-select/remote-select.api.d.ts +35 -0
- package/components/field/components/remote-select/remote-select.api.js +19 -0
- package/components/field/components/remote-select/remote-select.d.ts +57 -15
- package/components/field/components/remote-select/remote-select.js +34 -0
- package/components/field/components/segmented/segmented.vue.js +1 -1
- package/components/field/components/select/select.vue.js +1 -1
- package/components/field/components/select-v2/select-v2.vue.js +1 -1
- package/components/field/components/slider/slider.vue.js +1 -1
- package/components/field/components/switch/switch.vue.js +1 -1
- package/components/field/components/textarea/textarea.vue.js +1 -1
- package/components/field/components/time/time.vue.js +1 -1
- package/components/field/components/time-range/time-range.vue.js +1 -1
- package/components/field/components/time-select/time-select.vue.js +1 -1
- package/components/field/components/transfer/transfer.vue.js +1 -1
- package/components/field/components/tree-select/tree-select.vue.js +1 -1
- package/components/field/components/upload/upload.vue.js +1 -1
- package/components/field/components/week/week.vue.js +1 -1
- package/components/field/components/year/year.vue.js +1 -1
- package/components/field/components/year-range/year-range.vue.js +1 -1
- package/components/field/components/years/years.vue.js +1 -1
- package/components/field/field.api.d.ts +204 -0
- package/components/field/field.api.js +101 -0
- package/components/field/field.d.ts +14 -130
- package/components/field/field.js +24 -82
- package/components/field/index.d.ts +14 -20
- package/components/field/index.js +2 -2
- package/components/file-card/file-card.api.d.ts +27 -0
- package/components/file-card/file-card.api.js +8 -0
- package/components/file-card/file-card.d.ts +44 -9
- package/components/file-card/file-card.js +29 -5
- package/components/file-card/file-card.style.d.ts +4 -0
- package/components/file-card/{style/index.js → file-card.style.js} +3 -6
- package/components/file-card/index.d.ts +69 -11
- package/components/file-card/index.js +2 -2
- package/components/form/{form-item.d.ts → form-item.api.d.ts} +67 -43
- package/components/form/{form-item.js → form-item.api.js} +34 -10
- package/components/form/form-item.vue.d.ts +1 -1
- package/components/form/form-item.vue.js +42 -42
- package/components/form/form.api.d.ts +173 -0
- package/components/form/form.api.js +66 -0
- package/components/form/form.d.ts +161 -67
- package/components/form/form.js +90 -59
- package/components/form/form.style.d.ts +4 -0
- package/components/form/{style/index.js → form.style.js} +2 -2
- package/components/form/index.d.ts +21 -50
- package/components/form/index.js +3 -3
- package/components/form/useBubbleTemplate.js +2 -2
- package/components/form/useFormItemWidth.d.ts +2 -2
- package/components/form/useFormItemWidth.js +1 -1
- package/components/form/useFormTemplate.d.ts +1 -1
- package/components/form/useFormTemplate.js +1 -1
- package/components/form-dialog/form-dialog.vue.js +1 -1
- package/components/form-drawer/form-drawer.vue.d.ts +5 -5
- package/components/form-drawer/form-drawer.vue.js +1 -1
- package/components/form-drawer/index.d.ts +14 -14
- package/components/form-group/form-group.vue.js +2 -2
- package/components/form-group/style/index.js +1 -1
- package/components/form-list/form-list.api.d.ts +181 -0
- package/components/form-list/form-list.api.js +35 -0
- package/components/form-list/form-list.style.d.ts +4 -0
- package/components/form-list/{style/index.js → form-list.style.js} +2 -5
- package/components/form-list/form-list.vue.d.ts +4 -4
- package/components/form-list/form-list.vue.js +21 -117
- package/components/form-list/index.d.ts +15 -15
- package/components/form-list/index.js +1 -1
- package/components/form-query/form-query.api.d.ts +162 -0
- package/components/form-query/form-query.api.js +38 -0
- package/components/form-query/form-query.d.ts +195 -41
- package/components/form-query/form-query.js +137 -29
- package/components/form-query/form-query.style.d.ts +4 -0
- package/components/form-query/{style/index.js → form-query.style.js} +2 -5
- package/components/form-query/index.d.ts +52 -45
- package/components/form-query/index.js +2 -2
- package/components/highlight/highlight.vue.js +4 -4
- package/components/highlight/style/index.d.ts +0 -5
- package/components/highlight/style/index.js +2 -5
- package/components/horizontal-tree/horizontal-tree.vue.js +2 -2
- package/components/horizontal-tree/style/index.js +1 -1
- package/components/icon/icon.vue.js +2 -2
- package/components/icon/style/index.d.ts +0 -5
- package/components/icon/style/index.js +2 -5
- package/components/iconify-icon/iconify-icon.vue.js +1 -1
- package/components/image-card/image-card.d.ts +7 -7
- package/components/image-card/image-card.js +1 -1
- package/components/image-card/image-card.style.d.ts +4 -0
- package/components/image-card/image-card.style.js +13 -0
- package/components/image-card/image-card.vue.d.ts +16 -16
- package/components/image-card/image-card.vue.js +3 -3
- package/components/image-card/index.d.ts +29 -29
- package/components/index.js +29 -21
- package/components/input-number-range/index.d.ts +5 -5
- package/components/input-number-range/input-number-range.vue.d.ts +2 -2
- package/components/input-number-range/input-number-range.vue.js +2 -2
- package/components/input-number-range/style/index.js +2 -2
- package/components/long-text/long-text.vue.js +2 -2
- package/components/long-text/style/index.d.ts +0 -5
- package/components/long-text/style/index.js +2 -5
- package/components/mask/index.d.ts +14 -4
- package/components/mask/index.js +2 -1
- package/components/mask/mask.api.d.ts +3 -0
- package/components/mask/mask.api.js +5 -0
- package/components/mask/mask.d.ts +6 -2
- package/components/mask/mask.js +23 -0
- package/components/mask/mask.style.d.ts +4 -0
- package/components/mask/{style/index.js → mask.style.js} +2 -5
- package/components/media-card/index.d.ts +70 -12
- package/components/media-card/index.js +2 -2
- package/components/media-card/media-card.api.d.ts +52 -0
- package/components/media-card/media-card.api.js +27 -0
- package/components/media-card/media-card.d.ts +29 -26
- package/components/media-card/media-card.js +56 -24
- package/components/media-card/{style/index.d.ts → media-card.style.d.ts} +3 -3
- package/components/media-card/{style/index.js → media-card.style.js} +1 -1
- package/components/media-card-group/media-card-group.d.ts +1 -1
- package/components/media-card-group/media-card-group.vue.js +7 -6
- package/components/media-card-group/style/index.js +1 -1
- package/components/media-viewer/index.d.ts +74 -13
- package/components/media-viewer/index.js +2 -2
- package/components/media-viewer/media-viewer.api.d.ts +50 -0
- package/components/media-viewer/media-viewer.api.js +27 -0
- package/components/media-viewer/media-viewer.d.ts +45 -22
- package/components/media-viewer/media-viewer.js +13 -7
- package/components/number-format/index.d.ts +3 -3
- package/components/number-format/number-format.vue.d.ts +1 -1
- package/components/number-format/number-format.vue.js +1 -1
- package/components/only-child/index.js +1 -1
- package/components/only-child/{only-child.vue.d.ts → only-child.d.ts} +1 -1
- package/components/only-child/{only-child.vue.js → only-child.js} +1 -2
- package/components/optional-wrapper/index.d.ts +61 -9
- package/components/optional-wrapper/index.js +1 -1
- package/components/optional-wrapper/optional-wrapper.api.d.ts +17 -0
- package/components/optional-wrapper/optional-wrapper.api.js +14 -0
- package/components/optional-wrapper/optional-wrapper.d.ts +28 -8
- package/components/optional-wrapper/optional-wrapper.js +28 -0
- package/components/panel/panel.vue.js +2 -2
- package/components/panel/style/index.d.ts +0 -5
- package/components/panel/style/index.js +2 -5
- package/components/remote-select/index.d.ts +75 -51
- package/components/remote-select/index.js +2 -2
- package/components/remote-select/remote-select.api.d.ts +273 -0
- package/components/remote-select/remote-select.api.js +37 -0
- package/components/remote-select/remote-select.d.ts +337 -63
- package/components/remote-select/remote-select.js +187 -34
- package/components/remote-select/remote-select.style.d.ts +4 -0
- package/components/remote-select/{style/index.js → remote-select.style.js} +2 -2
- package/components/row/row.vue.js +2 -2
- package/components/row/style/index.d.ts +0 -5
- package/components/row/style/index.js +2 -5
- package/components/scroll-view/scroll-view.vue.js +2 -2
- package/components/scroll-view/style/index.d.ts +0 -5
- package/components/scroll-view/style/index.js +2 -5
- package/components/snug-menu/index.d.ts +5 -5
- package/components/snug-menu/snug-menu-item.vue.js +2 -2
- package/components/snug-menu/snug-menu.vue.d.ts +2 -2
- package/components/snug-menu/snug-menu.vue.js +2 -2
- package/components/snug-menu/style/index.d.ts +0 -5
- package/components/snug-menu/style/index.js +2 -5
- package/components/stack-dialog/stack-dialog.style.d.ts +4 -0
- package/components/stack-dialog/{style/index.js → stack-dialog.style.js} +2 -2
- package/components/stack-dialog/stack-dialog.vue.js +3 -3
- package/components/svg-icon/svg-icon.vue.js +1 -1
- package/components/table/index.d.ts +32 -32
- package/components/table/table-column/{style/index.js → table-column.style.js} +2 -5
- package/components/table/table-column/table-column.vue.d.ts +7 -7
- package/components/table/table-column/table-column.vue.js +2 -2
- package/components/table/table-column-editor/item.vue.js +1 -1
- package/components/table/table-column-editor/list.vue.js +1 -1
- package/components/table/table-column-editor/{style/index.js → table-column-editor.style.js} +3 -6
- package/components/table/table-column-editor/table-column-editor.vue.js +3 -3
- package/components/table/table-export/item.vue.js +1 -1
- package/components/table/table-export/list.vue.js +1 -1
- package/components/table/table-export/style/index.d.ts +0 -5
- package/components/table/table-export/style/index.js +2 -5
- package/components/table/table-export/table-export.vue.d.ts +5 -5
- package/components/table/table-export/table-export.vue.js +2 -2
- package/components/table/table-query/table-query.d.ts +2 -2
- package/components/table/table-query/table-query.js +2 -2
- package/components/table/table-query/table-query.vue.d.ts +20 -8
- package/components/table/table-query/table-query.vue.js +1 -2
- package/components/table/table-stats/table-stats.style.js +1 -1
- package/components/table/table-stats/table-stats.vue.js +1 -1
- package/components/table/table.d.ts +7 -7
- package/components/table/table.style.d.ts +0 -6
- package/components/table/table.style.js +3 -10
- package/components/table/table.vue.d.ts +17 -17
- package/components/table/table.vue.js +2 -2
- package/components/table-action/index.d.ts +23 -572
- package/components/table-action/index.js +2 -2
- package/components/table-action/item.api.d.ts +98 -0
- package/components/table-action/item.api.js +35 -0
- package/components/table-action/item.d.ts +126 -16
- package/components/table-action/item.js +88 -32
- package/components/table-action/table-action.api.d.ts +9 -0
- package/components/table-action/table-action.api.js +8 -0
- package/components/table-action/table-action.d.ts +15 -7
- package/components/table-action/table-action.js +36 -4
- package/components/table-action/table-action.style.d.ts +4 -0
- package/components/table-action/{style/index.js → table-action.style.js} +2 -5
- package/components/theme/getGlobalStyleHook.js +1 -1
- package/components/theme/getOverrideStyleHook.js +1 -1
- package/components/theme/getSimpleStyleHook.js +1 -1
- package/components/theme/getStyleHook.js +1 -1
- package/components/theme/interface/components.d.ts +1 -60
- package/components/theme/util/useToken.js +1 -1
- package/components/toggle/index.d.ts +29 -13
- package/components/toggle/index.js +2 -1
- package/components/toggle/toggle.api.d.ts +15 -0
- package/components/toggle/toggle.api.js +13 -0
- package/components/toggle/toggle.d.ts +16 -9
- package/components/toggle/toggle.js +43 -0
- package/components/transition/index.d.ts +165 -11
- package/components/transition/index.js +2 -1
- package/components/transition/transition.api.d.ts +58 -0
- package/components/transition/transition.api.js +52 -0
- package/components/transition/transition.d.ts +108 -7
- package/components/transition/transition.js +38 -0
- package/components/transition/transition.style.d.ts +4 -0
- package/components/transition/{style/index.js → transition.style.js} +2 -2
- package/components/transition-group/index.d.ts +189 -11
- package/components/transition-group/index.js +2 -1
- package/components/transition-group/transition-group.api.d.ts +65 -0
- package/components/transition-group/transition-group.api.js +19 -0
- package/components/transition-group/transition-group.d.ts +123 -7
- package/components/transition-group/transition-group.js +50 -0
- package/components/transition-group/transition-group.style.d.ts +4 -0
- package/components/transition-group/{style/index.js → transition-group.style.js} +2 -5
- package/components/upload/index.d.ts +165 -20
- package/components/upload/index.js +2 -2
- package/components/upload/upload-item.d.ts +37 -0
- package/components/upload/upload-item.js +110 -0
- package/components/upload/upload.api.d.ts +93 -0
- package/components/upload/upload.api.js +71 -0
- package/components/upload/upload.d.ts +106 -53
- package/components/upload/upload.js +211 -7
- package/components/upload/upload.style.d.ts +4 -0
- package/components/upload/{style/index.js → upload.style.js} +3 -6
- package/components/utils.js +1 -1
- package/components/video-card/index.d.ts +120 -21
- package/components/video-card/index.js +2 -2
- package/components/video-card/video-card.api.d.ts +44 -0
- package/components/video-card/video-card.api.js +13 -0
- package/components/video-card/video-card.d.ts +78 -14
- package/components/video-card/video-card.js +58 -7
- package/components/video-card/video-card.style.d.ts +4 -0
- package/components/video-card/{style/index.js → video-card.style.js} +3 -6
- package/components/video-viewer/index.d.ts +67 -12
- package/components/video-viewer/index.js +1 -2
- package/components/video-viewer/video-viewer.api.d.ts +28 -0
- package/components/video-viewer/video-viewer.api.js +11 -0
- package/components/video-viewer/video-viewer.d.ts +43 -11
- package/components/video-viewer/video-viewer.js +89 -5
- package/components/video-viewer/video-viewer.style.d.ts +4 -0
- package/components/video-viewer/{style/index.js → video-viewer.style.js} +2 -5
- package/config/root-config-provider.api.d.ts +20 -0
- package/config/root-config-provider.api.js +21 -0
- package/config/root-config-provider.d.ts +30 -7
- package/config/root-config-provider.js +56 -14
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/layout/layout-aside/layout-aside.vue.js +2 -2
- package/layout/layout-aside/style/index.js +1 -1
- package/layout/layout-auth/layout-auth.vue.js +2 -2
- package/layout/layout-auth/style/index.js +1 -1
- package/layout/layout-base/layout-base.vue.js +2 -2
- package/layout/layout-base/style/index.js +1 -1
- package/layout/layout-brand/layout-brand.vue.js +2 -2
- package/layout/layout-brand/style/index.js +1 -1
- package/layout/layout-breadcrumb/layout-breadcrumb.vue.js +1 -1
- package/layout/layout-change-password/layout-change-password.vue.js +1 -1
- package/layout/layout-change-password/style/index.js +1 -1
- package/layout/layout-color-scheme/layout-color-scheme.vue.js +2 -2
- package/layout/layout-color-scheme/style/index.js +1 -1
- package/layout/layout-content/layout-content.vue.js +2 -2
- package/layout/layout-content/style/index.js +1 -1
- package/layout/layout-empty/layout-empty.vue.js +1 -1
- package/layout/layout-exception/layout-exception.vue.js +2 -2
- package/layout/layout-exception/style/index.js +1 -1
- package/layout/layout-forbidden/layout-forbidden.vue.js +1 -1
- package/layout/layout-header/layout-header.vue.js +2 -2
- package/layout/layout-header/style/index.js +1 -1
- package/layout/layout-iframe/item.vue.js +2 -2
- package/layout/layout-iframe/layout-iframe.vue.js +1 -1
- package/layout/layout-iframe/style/index.js +1 -1
- package/layout/layout-internal-server-error/layout-internal-server-error.vue.js +1 -1
- package/layout/layout-login/layout-login.vue.js +1 -1
- package/layout/layout-login/style/index.js +1 -1
- package/layout/layout-main/layout-main.vue.js +2 -2
- package/layout/layout-main/style/index.js +1 -1
- package/layout/layout-mask/layout-mask.vue.js +2 -2
- package/layout/layout-mask/style/index.js +1 -1
- package/layout/layout-menu/layout-menu.vue.js +2 -2
- package/layout/layout-menu/style/index.js +1 -1
- package/layout/layout-not-found/layout-not-found.vue.js +1 -1
- package/layout/layout-search/layout-search.vue.js +4 -4
- package/layout/layout-search/style/index.js +1 -1
- package/layout/layout-sidebar/layout-sidebar.vue.js +2 -2
- package/layout/layout-sidebar/style/index.js +1 -1
- package/layout/layout-snug-aside/layout-snug-aside.vue.js +2 -2
- package/layout/layout-snug-aside/style/index.js +1 -1
- package/layout/layout-snug-menu/layout-snug-menu.vue.js +1 -1
- package/layout/layout-switch-effect/layout-switch-effect.vue.js +2 -2
- package/layout/layout-switch-effect/style/index.js +1 -1
- package/layout/layout-tabbar/layout-tabbar.vue.js +2 -2
- package/layout/layout-tabbar/reload.vue.js +2 -2
- package/layout/layout-tabbar/style/index.js +1 -1
- package/layout/layout-toggle/layout-toggle.vue.js +1 -1
- package/layout/layout-top-snug-menu/layout-top-snug-menu.vue.js +1 -1
- package/layout/layout-topbar/layout-topbar.vue.js +2 -2
- package/layout/layout-topbar/style/index.js +1 -1
- package/layout/layout-user-menu/layout-user-menu.vue.js +2 -2
- package/layout/layout-user-menu/style/index.js +1 -1
- package/package.json +3 -3
- package/utils/index.js +1 -1
- package/utils/vue.d.ts +8 -0
- package/utils/vue.js +9 -1
- package/components/audio-card/audio-card.vue.d.ts +0 -14
- package/components/audio-card/audio-card.vue.js +0 -106
- package/components/audio-card/style/index.d.ts +0 -9
- package/components/audio-viewer/audio-viewer.vue.d.ts +0 -16
- package/components/audio-viewer/audio-viewer.vue.js +0 -124
- package/components/audio-viewer/style/index.d.ts +0 -9
- package/components/card/card.vue.d.ts +0 -16
- package/components/card/card.vue.js +0 -31
- package/components/close/close.vue.d.ts +0 -3
- package/components/close/close.vue.js +0 -30
- package/components/close/style/index.d.ts +0 -9
- package/components/col/col.vue.d.ts +0 -16
- package/components/col/col.vue.js +0 -126
- package/components/col/style/index.d.ts +0 -12
- package/components/config-provider/config-provider.vue.d.ts +0 -13
- package/components/config-provider/config-provider.vue.js +0 -77
- package/components/container/container.vue.d.ts +0 -10
- package/components/container/container.vue.js +0 -41
- package/components/container/style/index.d.ts +0 -9
- package/components/container/style/index.js +0 -15
- package/components/context-menu/content.vue.d.ts +0 -3
- package/components/context-menu/content.vue.js +0 -69
- package/components/context-menu/context-menu-item.vue.d.ts +0 -14
- package/components/context-menu/context-menu-item.vue.js +0 -97
- package/components/context-menu/context-menu.vue.d.ts +0 -21
- package/components/context-menu/context-menu.vue.js +0 -165
- package/components/context-menu/context-sub-menu.vue.d.ts +0 -10
- package/components/context-menu/context-sub-menu.vue.js +0 -225
- package/components/context-menu/divider.vue.d.ts +0 -2
- package/components/context-menu/divider.vue.js +0 -19
- package/components/context-menu/style/index.d.ts +0 -11
- package/components/copy/copy.vue.d.ts +0 -10
- package/components/copy/copy.vue.js +0 -60
- package/components/copy/style/index.d.ts +0 -9
- package/components/dnd-sort/dnd-sort-item.vue.d.ts +0 -10
- package/components/dnd-sort/dnd-sort-item.vue.js +0 -61
- package/components/dnd-sort/dnd-sort.vue.d.ts +0 -14
- package/components/dnd-sort/dnd-sort.vue.js +0 -47
- package/components/dnd-sort/style/index.d.ts +0 -9
- package/components/editor/editor.vue.d.ts +0 -11
- package/components/editor/editor.vue.js +0 -144
- package/components/editor/style/button.d.ts +0 -4
- package/components/editor/style/button.js +0 -68
- package/components/editor/style/hljs.d.ts +0 -2
- package/components/editor/style/hljs.js +0 -8
- package/components/editor/style/index.d.ts +0 -11
- package/components/editor/style/toolbar.d.ts +0 -4
- package/components/editor/style/toolbar.js +0 -18
- package/components/field/components/remote-select/remote-select.vue.d.ts +0 -3
- package/components/field/components/remote-select/remote-select.vue.js +0 -32
- package/components/field/field.vue.d.ts +0 -14
- package/components/field/field.vue.js +0 -56
- package/components/file-card/file-card.vue.d.ts +0 -12
- package/components/file-card/file-card.vue.js +0 -61
- package/components/file-card/style/index.d.ts +0 -9
- package/components/form/form.vue.d.ts +0 -281
- package/components/form/form.vue.js +0 -104
- package/components/form/style/index.d.ts +0 -10
- package/components/form-list/form-list.d.ts +0 -55
- package/components/form-list/form-list.js +0 -10
- package/components/form-list/style/index.d.ts +0 -9
- package/components/form-query/form-query.vue.d.ts +0 -318
- package/components/form-query/form-query.vue.js +0 -155
- package/components/form-query/style/index.d.ts +0 -9
- package/components/image-card/style/index.d.ts +0 -9
- package/components/image-card/style/index.js +0 -16
- package/components/mask/mask.vue.d.ts +0 -3
- package/components/mask/mask.vue.js +0 -26
- package/components/mask/style/index.d.ts +0 -9
- package/components/media-card/media-card.vue.d.ts +0 -12
- package/components/media-card/media-card.vue.js +0 -89
- package/components/media-viewer/media-viewer.vue.d.ts +0 -14
- package/components/media-viewer/media-viewer.vue.js +0 -38
- package/components/optional-wrapper/optional-wrapper.vue.d.ts +0 -12
- package/components/optional-wrapper/optional-wrapper.vue.js +0 -27
- package/components/remote-select/remote-select.vue.d.ts +0 -530
- package/components/remote-select/remote-select.vue.js +0 -187
- package/components/table/table-column/style/index.d.ts +0 -9
- package/components/table/table-column-editor/style/index.d.ts +0 -9
- package/components/table-action/item.vue.d.ts +0 -208
- package/components/table-action/item.vue.js +0 -116
- package/components/table-action/style/index.d.ts +0 -9
- package/components/table-action/table-action.vue.d.ts +0 -193
- package/components/table-action/table-action.vue.js +0 -52
- package/components/toggle/toggle.vue.d.ts +0 -14
- package/components/toggle/toggle.vue.js +0 -55
- package/components/transition/transition.vue.d.ts +0 -13
- package/components/transition/transition.vue.js +0 -159
- package/components/transition-group/style/index.d.ts +0 -9
- package/components/transition-group/transition-group.vue.d.ts +0 -13
- package/components/transition-group/transition-group.vue.js +0 -179
- package/components/upload/style/index.d.ts +0 -9
- package/components/upload/upload-item.vue.d.ts +0 -11
- package/components/upload/upload-item.vue.js +0 -147
- package/components/upload/upload.vue.d.ts +0 -23
- package/components/upload/upload.vue.js +0 -275
- package/components/video-card/style/index.d.ts +0 -9
- package/components/video-card/video-card.vue.d.ts +0 -14
- package/components/video-card/video-card.vue.js +0 -111
- package/components/video-viewer/style/index.d.ts +0 -9
- package/components/video-viewer/video-viewer.vue.d.ts +0 -16
- package/components/video-viewer/video-viewer.vue.js +0 -125
- package/config/root-config-provider.vue.d.ts +0 -15
- package/config/root-config-provider.vue.js +0 -85
- /package/components/{remote-select/style/index.d.ts → table/table-column/table-column.style.d.ts} +0 -0
- /package/components/{card/style/index.d.ts → table/table-column-editor/table-column-editor.style.d.ts} +0 -0
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineComponent, inject, computed, createVNode } from 'vue';
|
|
2
|
+
import { containerSlots, containerProps, containerContextKey } from './container.api.js';
|
|
3
|
+
import stdin_default$1 from './container.style.js';
|
|
4
|
+
import { useComponentConfig } from '../config-provider/config-provider.api.js';
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
var stdin_default = defineComponent({
|
|
7
|
+
name: "CoContainer",
|
|
8
|
+
props: containerProps,
|
|
9
|
+
slots: containerSlots,
|
|
10
|
+
setup(props, {
|
|
11
|
+
slots
|
|
12
|
+
}) {
|
|
13
|
+
const {
|
|
14
|
+
prefixCls
|
|
15
|
+
} = useComponentConfig("container", props);
|
|
16
|
+
const {
|
|
17
|
+
hashId
|
|
18
|
+
} = stdin_default$1(prefixCls);
|
|
19
|
+
const context = inject(containerContextKey, null);
|
|
20
|
+
const height = computed(() => {
|
|
21
|
+
return props.fullPage ? context?.height || "100vh" : void 0;
|
|
22
|
+
});
|
|
23
|
+
return () => {
|
|
24
|
+
return createVNode("div", {
|
|
25
|
+
"class": [hashId.value, prefixCls.value],
|
|
26
|
+
"style": {
|
|
27
|
+
height: height.value
|
|
28
|
+
}
|
|
29
|
+
}, [slots.default?.({})]);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export { stdin_default as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getSimpleStyleHook } from '../theme/getSimpleStyleHook.js';
|
|
2
|
+
|
|
3
|
+
var stdin_default = getSimpleStyleHook("CoContainer", (token) => {
|
|
4
|
+
const { componentCls } = token;
|
|
5
|
+
return {
|
|
6
|
+
[componentCls]: {
|
|
7
|
+
padding: token.padding
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export { stdin_default as default };
|
|
@@ -1,18 +1,34 @@
|
|
|
1
|
-
export * from './container';
|
|
1
|
+
export * from './container.api';
|
|
2
2
|
declare const _Container: {
|
|
3
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
fullPage: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
};
|
|
7
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
8
|
+
fullPage: boolean;
|
|
9
|
+
}, true, {}, import("vue").SlotsType<import("./container.api").ContainerSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
4
10
|
P: {};
|
|
5
11
|
B: {};
|
|
6
12
|
D: {};
|
|
7
13
|
C: {};
|
|
8
14
|
M: {};
|
|
9
15
|
Defaults: {};
|
|
10
|
-
}, Readonly<import("
|
|
16
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
fullPage: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
21
|
+
fullPage: boolean;
|
|
22
|
+
}>;
|
|
11
23
|
__isFragment?: never;
|
|
12
24
|
__isTeleport?: never;
|
|
13
25
|
__isSuspense?: never;
|
|
14
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("
|
|
15
|
-
|
|
16
|
-
|
|
26
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
fullPage: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
31
|
+
fullPage: boolean;
|
|
32
|
+
}, {}, string, import("vue").SlotsType<import("./container.api").ContainerSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
17
33
|
export { _Container as Container };
|
|
18
34
|
export default _Container;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withInstall } from '../utils.js';
|
|
2
|
-
import stdin_default$1 from './container.
|
|
3
|
-
export { containerContextKey } from './container.js';
|
|
2
|
+
import stdin_default$1 from './container.js';
|
|
3
|
+
export { containerContextKey, containerProps, containerSlots } from './container.api.js';
|
|
4
4
|
|
|
5
5
|
const _Container = withInstall(stdin_default$1);
|
|
6
6
|
var stdin_default = _Container;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare const contextMenuContentProps: {
|
|
3
|
+
icon: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
};
|
|
6
|
+
withIcon: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
};
|
|
9
|
+
title: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
};
|
|
12
|
+
arrow: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
};
|
|
15
|
+
disabled: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
};
|
|
18
|
+
hover: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type ContextMenuContentProps = ExtractPropTypes<typeof contextMenuContentProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const contextMenuContentProps = {
|
|
2
|
+
icon: {
|
|
3
|
+
type: String
|
|
4
|
+
},
|
|
5
|
+
withIcon: {
|
|
6
|
+
type: Boolean
|
|
7
|
+
},
|
|
8
|
+
title: {
|
|
9
|
+
type: String
|
|
10
|
+
},
|
|
11
|
+
arrow: {
|
|
12
|
+
type: Boolean
|
|
13
|
+
},
|
|
14
|
+
disabled: {
|
|
15
|
+
type: Boolean
|
|
16
|
+
},
|
|
17
|
+
hover: {
|
|
18
|
+
type: Boolean
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { contextMenuContentProps };
|
|
@@ -1,8 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
icon
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
icon: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
};
|
|
5
|
+
withIcon: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
};
|
|
8
|
+
title: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
};
|
|
11
|
+
arrow: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
};
|
|
17
|
+
hover: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
};
|
|
20
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
click: (event: MouseEvent) => boolean;
|
|
22
|
+
contextmenu: (event: MouseEvent) => boolean;
|
|
23
|
+
pointerenter: (event: PointerEvent) => boolean;
|
|
24
|
+
pointerleave: (event: PointerEvent) => boolean;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
icon: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
withIcon: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
title: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
};
|
|
35
|
+
arrow: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
};
|
|
41
|
+
hover: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{
|
|
45
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
46
|
+
onContextmenu?: ((event: MouseEvent) => any) | undefined;
|
|
47
|
+
onPointerenter?: ((event: PointerEvent) => any) | undefined;
|
|
48
|
+
onPointerleave?: ((event: PointerEvent) => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
hover: boolean;
|
|
52
|
+
withIcon: boolean;
|
|
53
|
+
arrow: boolean;
|
|
54
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
55
|
+
export default _default;
|
|
@@ -1 +1,45 @@
|
|
|
1
|
+
import { defineComponent, createVNode, mergeProps } from 'vue';
|
|
2
|
+
import stdin_default$1 from '../icon/icon.vue.js';
|
|
3
|
+
import { contextMenuContentProps } from './content.api.js';
|
|
4
|
+
import { useComponentConfig } from '../config-provider/config-provider.api.js';
|
|
1
5
|
|
|
6
|
+
var stdin_default = defineComponent({
|
|
7
|
+
props: contextMenuContentProps,
|
|
8
|
+
emits: {
|
|
9
|
+
click: event => event instanceof MouseEvent,
|
|
10
|
+
contextmenu: event => event instanceof MouseEvent,
|
|
11
|
+
pointerenter: event => event instanceof PointerEvent,
|
|
12
|
+
pointerleave: event => event instanceof PointerEvent
|
|
13
|
+
},
|
|
14
|
+
setup(props, {
|
|
15
|
+
attrs
|
|
16
|
+
}) {
|
|
17
|
+
const {
|
|
18
|
+
prefixCls
|
|
19
|
+
} = useComponentConfig("context-menu-content", props);
|
|
20
|
+
return () => {
|
|
21
|
+
return createVNode("div", mergeProps({
|
|
22
|
+
"ref": "item"
|
|
23
|
+
}, attrs, {
|
|
24
|
+
"class": [prefixCls.value, {
|
|
25
|
+
"is-disabled": props.disabled,
|
|
26
|
+
"is-hover": props.hover
|
|
27
|
+
}]
|
|
28
|
+
}), [props.withIcon && createVNode("div", {
|
|
29
|
+
"class": `${prefixCls.value}-icon`
|
|
30
|
+
}, [props.icon && createVNode(stdin_default$1, {
|
|
31
|
+
"name": props.icon
|
|
32
|
+
}, null)]), createVNode("span", {
|
|
33
|
+
"class": `${prefixCls.value}-title`
|
|
34
|
+
}, [props.title]), createVNode("div", {
|
|
35
|
+
"class": `${prefixCls.value}-arrow`
|
|
36
|
+
}, [props.arrow && createVNode(stdin_default$1, {
|
|
37
|
+
"name": "co:chevron-right",
|
|
38
|
+
"class": `${prefixCls.value}-arrow-icon`,
|
|
39
|
+
"size": "lg"
|
|
40
|
+
}, null)])]);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export { stdin_default as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type SlotsType } from 'vue';
|
|
2
|
+
export declare const contextMenuItemProps: {
|
|
3
|
+
command: {};
|
|
4
|
+
disabled: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
};
|
|
7
|
+
divided: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
};
|
|
10
|
+
icon: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
};
|
|
13
|
+
title: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type ContextMenuItemProps = ExtractPropTypes<typeof contextMenuItemProps>;
|
|
18
|
+
export interface ContextMenuItemSlots {
|
|
19
|
+
default: {};
|
|
20
|
+
}
|
|
21
|
+
export declare const contextMenuItemSlots: SlotsType<ContextMenuItemSlots>;
|
|
22
|
+
export declare const contextMenuItemEmits: {
|
|
23
|
+
click: (event: MouseEvent) => boolean;
|
|
24
|
+
};
|
|
25
|
+
export type ContextMenuItemEmits = typeof contextMenuItemEmits;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const contextMenuItemProps = {
|
|
2
|
+
command: {},
|
|
3
|
+
disabled: {
|
|
4
|
+
type: Boolean
|
|
5
|
+
},
|
|
6
|
+
divided: {
|
|
7
|
+
type: Boolean
|
|
8
|
+
},
|
|
9
|
+
icon: {
|
|
10
|
+
type: String
|
|
11
|
+
},
|
|
12
|
+
title: {
|
|
13
|
+
type: String
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const contextMenuItemSlots = Object;
|
|
17
|
+
const contextMenuItemEmits = {
|
|
18
|
+
click: (event) => event instanceof MouseEvent
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { contextMenuItemEmits, contextMenuItemProps, contextMenuItemSlots };
|
|
@@ -1,15 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
command
|
|
3
|
-
disabled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
command: {};
|
|
3
|
+
disabled: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
};
|
|
6
|
+
divided: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
};
|
|
9
|
+
icon: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
};
|
|
12
|
+
title: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
click: (event: MouseEvent) => boolean;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
command: {};
|
|
19
|
+
disabled: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
};
|
|
22
|
+
divided: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
};
|
|
25
|
+
icon: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
title: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
}>> & Readonly<{
|
|
32
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
divided: boolean;
|
|
36
|
+
}, import("vue").SlotsType<import("./context-menu-item.api").ContextMenuItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
export default _default;
|
|
@@ -1 +1,67 @@
|
|
|
1
|
+
import { defineComponent, reactive, computed, onMounted, onBeforeUnmount, createVNode, Fragment, mergeProps } from 'vue';
|
|
2
|
+
import { contextMenuItemEmits, contextMenuItemSlots, contextMenuItemProps } from './context-menu-item.api.js';
|
|
3
|
+
import stdin_default$2 from './content.js';
|
|
4
|
+
import stdin_default$1 from './divider.js';
|
|
5
|
+
import { useItemInject } from './useItemProvide.js';
|
|
1
6
|
|
|
7
|
+
var stdin_default = defineComponent({
|
|
8
|
+
name: "CoContextMenuItem",
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
props: contextMenuItemProps,
|
|
11
|
+
slots: contextMenuItemSlots,
|
|
12
|
+
emits: contextMenuItemEmits,
|
|
13
|
+
setup(props, {
|
|
14
|
+
attrs,
|
|
15
|
+
emit
|
|
16
|
+
}) {
|
|
17
|
+
const {
|
|
18
|
+
addItem,
|
|
19
|
+
removeItem,
|
|
20
|
+
select,
|
|
21
|
+
enter,
|
|
22
|
+
leave,
|
|
23
|
+
withIcon
|
|
24
|
+
} = useItemInject();
|
|
25
|
+
const itemInstance = reactive({
|
|
26
|
+
icon: computed(() => !!props.icon)
|
|
27
|
+
});
|
|
28
|
+
onMounted(() => {
|
|
29
|
+
addItem(itemInstance);
|
|
30
|
+
});
|
|
31
|
+
onBeforeUnmount(() => {
|
|
32
|
+
removeItem(itemInstance);
|
|
33
|
+
});
|
|
34
|
+
const onClick = event => {
|
|
35
|
+
if (props.disabled) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
emit("click", event);
|
|
39
|
+
select(props.command);
|
|
40
|
+
};
|
|
41
|
+
const onContextMenu = event => {
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
if (props.disabled) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
select(props.command);
|
|
47
|
+
};
|
|
48
|
+
const onEnter = () => {
|
|
49
|
+
enter(itemInstance);
|
|
50
|
+
};
|
|
51
|
+
const onLeave = () => {
|
|
52
|
+
leave();
|
|
53
|
+
};
|
|
54
|
+
return () => createVNode(Fragment, null, [props.divided && createVNode(stdin_default$1, null, null), createVNode(stdin_default$2, mergeProps(attrs, {
|
|
55
|
+
"icon": props.icon,
|
|
56
|
+
"with-icon": withIcon.value,
|
|
57
|
+
"title": props.title,
|
|
58
|
+
"disabled": props.disabled,
|
|
59
|
+
"onClick": onClick,
|
|
60
|
+
"onContextmenu": onContextMenu,
|
|
61
|
+
"onPointerenter": onEnter,
|
|
62
|
+
"onPointerleave": onLeave
|
|
63
|
+
}), null)]);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export { stdin_default as default };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type SlotsType, type ExtractPropTypes, type Ref } from 'vue';
|
|
2
|
+
export declare const contextMenuProps: {
|
|
3
|
+
disabled: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export type ContextMenuProps = ExtractPropTypes<typeof contextMenuProps>;
|
|
8
|
+
export interface ContextMenuSlots {
|
|
9
|
+
default: {};
|
|
10
|
+
reference: {};
|
|
11
|
+
}
|
|
12
|
+
export declare const contextMenuSlots: SlotsType<ContextMenuSlots>;
|
|
13
|
+
export declare const contextMenuEmits: {
|
|
14
|
+
command: (value: any) => any;
|
|
15
|
+
open: () => boolean;
|
|
16
|
+
close: () => boolean;
|
|
17
|
+
};
|
|
18
|
+
export type ContextMenuEmits = typeof contextMenuEmits;
|
|
19
|
+
export interface ContextMenuExpose {
|
|
20
|
+
open: (x: number, y: number) => void;
|
|
21
|
+
close: () => void;
|
|
22
|
+
}
|
|
23
|
+
export interface ContextMenuContext {
|
|
24
|
+
withIcon: Ref<boolean>;
|
|
25
|
+
addItem: (item: ContextMenuItemContext) => void;
|
|
26
|
+
removeItem: (item: ContextMenuItemContext) => void;
|
|
27
|
+
select: (command: any) => void;
|
|
28
|
+
items: Ref<ContextMenuItemContext[]>;
|
|
29
|
+
}
|
|
30
|
+
export declare const contextMenuContextSymbol: unique symbol;
|
|
31
|
+
export interface ContextMenuItemContext {
|
|
32
|
+
show: () => void;
|
|
33
|
+
hide: () => void;
|
|
34
|
+
icon: boolean;
|
|
35
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const contextMenuProps = {
|
|
2
|
+
disabled: {
|
|
3
|
+
type: Boolean
|
|
4
|
+
}
|
|
5
|
+
};
|
|
6
|
+
const contextMenuSlots = Object;
|
|
7
|
+
const contextMenuEmits = {
|
|
8
|
+
command: (value) => value || true,
|
|
9
|
+
open: () => true,
|
|
10
|
+
close: () => true
|
|
11
|
+
};
|
|
12
|
+
const contextMenuContextSymbol = Symbol("contextMenu");
|
|
13
|
+
|
|
14
|
+
export { contextMenuContextSymbol, contextMenuEmits, contextMenuProps, contextMenuSlots };
|
|
@@ -1,30 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
removeItem: (item: ContextMenuItemContext) => void;
|
|
22
|
-
select: (command: any) => void;
|
|
23
|
-
items: Ref<ContextMenuItemContext[]>;
|
|
24
|
-
}
|
|
25
|
-
export declare const contextMenuContextSymbol: unique symbol;
|
|
26
|
-
export interface ContextMenuItemContext {
|
|
27
|
-
show: () => void;
|
|
28
|
-
hide: () => void;
|
|
29
|
-
icon: boolean;
|
|
30
|
-
}
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
disabled: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
};
|
|
5
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
command: (value: any) => any;
|
|
7
|
+
open: () => boolean;
|
|
8
|
+
close: () => boolean;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
disabled: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{
|
|
14
|
+
onOpen?: (() => any) | undefined;
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
|
+
onCommand?: ((value: any) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
}, import("vue").SlotsType<import("./context-menu.api").ContextMenuSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default _default;
|