@vaebe/ccui 2.0.1-beta.1 → 2.0.1-beta.3
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/affix/index.d.ts +10 -0
- package/affix/src/affix-types.d.ts +20 -0
- package/affix/src/affix.d.ts +20 -0
- package/alert/index.d.ts +10 -0
- package/alert/src/alert-types.d.ts +48 -0
- package/alert/src/alert.d.ts +36 -0
- package/anchor/index.d.ts +10 -0
- package/anchor/src/anchor-types.d.ts +37 -0
- package/anchor/src/anchor.d.ts +31 -0
- package/auto-complete/index.d.ts +10 -0
- package/auto-complete/index.es.js +1986 -0
- package/auto-complete/index.umd.js +1 -0
- package/auto-complete/src/auto-complete-types.d.ts +134 -0
- package/auto-complete/src/auto-complete.d.ts +94 -0
- package/auto-complete/style.css +2 -0
- package/avatar/index.d.ts +10 -0
- package/avatar/src/avatar-types.d.ts +53 -0
- package/avatar/src/avatar.d.ts +36 -0
- package/avatar/src/components/icon-body.d.ts +4 -0
- package/avatar/src/components/icon-img-error.d.ts +4 -0
- package/avatar/src/components/icon-nobody.d.ts +4 -0
- package/avatar/src/composables/use-get-background-color.d.ts +1 -0
- package/avatar/src/composables/use-get-display-name.d.ts +1 -0
- package/avatar-group/index.d.ts +12 -0
- package/avatar-group/index.es.js +119 -0
- package/avatar-group/index.umd.js +1 -0
- package/avatar-group/src/avatar-group-types.d.ts +56 -0
- package/avatar-group/src/avatar-group.d.ts +27 -0
- package/avatar-group/style.css +2 -0
- package/badge/index.d.ts +10 -0
- package/badge/src/badge-types.d.ts +52 -0
- package/badge/src/badge.d.ts +36 -0
- package/badge-ribbon/index.d.ts +12 -0
- package/badge-ribbon/index.es.js +84 -0
- package/badge-ribbon/index.umd.js +1 -0
- package/badge-ribbon/src/badge-ribbon-types.d.ts +30 -0
- package/badge-ribbon/src/badge-ribbon.d.ts +17 -0
- package/badge-ribbon/style.css +2 -0
- package/breadcrumb/index.d.ts +10 -0
- package/breadcrumb/src/breadcrumb-types.d.ts +29 -0
- package/breadcrumb/src/breadcrumb.d.ts +21 -0
- package/button/index.d.ts +12 -0
- package/button/src/button-group.d.ts +12 -0
- package/button/src/button-types.d.ts +168 -0
- package/button/src/button.d.ts +75 -0
- package/button-3d/index.d.ts +10 -0
- package/button-3d/src/button-3d-types.d.ts +27 -0
- package/button-3d/src/button-3d.d.ts +23 -0
- package/calendar/index.d.ts +10 -0
- package/calendar/src/calendar-types.d.ts +56 -0
- package/calendar/src/calendar.d.ts +27 -0
- package/card/index.d.ts +10 -0
- package/card/src/card-types.d.ts +34 -0
- package/card/src/card.d.ts +21 -0
- package/card-meta/index.d.ts +11 -0
- package/card-meta/index.es.js +53 -0
- package/card-meta/index.umd.js +1 -0
- package/card-meta/src/card-meta-types.d.ts +19 -0
- package/card-meta/src/card-meta.d.ts +14 -0
- package/card-meta/style.css +2 -0
- package/carousel/index.d.ts +10 -0
- package/carousel/index.es.js +306 -0
- package/carousel/index.umd.js +1 -0
- package/carousel/src/carousel-types.d.ts +72 -0
- package/carousel/src/carousel.d.ts +58 -0
- package/carousel/style.css +2 -0
- package/cascader/index.d.ts +12 -0
- package/cascader/index.es.js +2267 -0
- package/cascader/index.umd.js +1 -0
- package/cascader/src/cascader-types.d.ts +214 -0
- package/cascader/src/cascader.d.ts +133 -0
- package/cascader/style.css +2 -0
- package/check-box/index.d.ts +10 -0
- package/check-box/src/check-box-group.d.ts +31 -0
- package/check-box/src/check-box-types.d.ts +74 -0
- package/check-box/src/check-box.d.ts +28 -0
- package/check-box/src/components/icon-active.d.ts +2 -0
- package/check-box/src/components/icon-default.d.ts +2 -0
- package/checkable-tag/index.d.ts +13 -0
- package/checkable-tag/index.es.js +141 -0
- package/checkable-tag/index.umd.js +1 -0
- package/checkable-tag/src/checkable-tag-group.d.ts +26 -0
- package/checkable-tag/src/checkable-tag-types.d.ts +83 -0
- package/checkable-tag/src/checkable-tag.d.ts +20 -0
- package/checkable-tag/style.css +2 -0
- package/collapse/index.d.ts +11 -0
- package/collapse/src/collapse-item.d.ts +16 -0
- package/collapse/src/collapse-types.d.ts +52 -0
- package/collapse/src/collapse.d.ts +24 -0
- package/color-picker/index.d.ts +10 -0
- package/color-picker/index.es.js +1881 -0
- package/color-picker/index.umd.js +1 -0
- package/color-picker/src/color-picker-types.d.ts +121 -0
- package/color-picker/src/color-picker.d.ts +75 -0
- package/color-picker/style.css +2 -0
- package/config-provider/index.d.ts +10 -0
- package/config-provider/src/config-provider-types.d.ts +131 -0
- package/config-provider/src/config-provider.d.ts +24 -0
- package/date-picker/index.d.ts +10 -0
- package/date-picker/src/date-picker-types.d.ts +179 -0
- package/date-picker/src/date-picker.d.ts +113 -0
- package/descriptions/index.d.ts +11 -0
- package/descriptions/src/descriptions-item.d.ts +19 -0
- package/descriptions/src/descriptions-types.d.ts +64 -0
- package/descriptions/src/descriptions.d.ts +31 -0
- package/divider/index.d.ts +10 -0
- package/divider/src/divider-types.d.ts +31 -0
- package/divider/src/divider.d.ts +24 -0
- package/drawer/index.d.ts +10 -0
- package/drawer/src/drawer-types.d.ts +155 -0
- package/drawer/src/drawer.d.ts +79 -0
- package/dropdown/index.d.ts +10 -0
- package/dropdown/index.es.js +2 -2
- package/dropdown/index.umd.js +1 -1
- package/dropdown/src/dropdown-types.d.ts +41 -0
- package/dropdown/src/dropdown.d.ts +32 -0
- package/empty/index.d.ts +10 -0
- package/empty/src/empty-types.d.ts +16 -0
- package/empty/src/empty.d.ts +15 -0
- package/flex/index.d.ts +10 -0
- package/flex/src/flex-types.d.ts +36 -0
- package/flex/src/flex.d.ts +29 -0
- package/float-button/index.d.ts +11 -0
- package/float-button/src/back-top.d.ts +26 -0
- package/float-button/src/float-button-types.d.ts +65 -0
- package/float-button/src/float-button.d.ts +32 -0
- package/form/index.d.ts +14 -0
- package/form/src/form-item.d.ts +72 -0
- package/form/src/form-list.d.ts +12 -0
- package/form/src/form-provider.d.ts +7 -0
- package/form/src/form-types.d.ts +360 -0
- package/form/src/form.d.ts +64 -0
- package/form/src/utils.d.ts +10 -0
- package/grid/index.d.ts +10 -0
- package/grid/src/grid-types.d.ts +90 -0
- package/grid/src/grid.d.ts +58 -0
- package/icon/index.d.ts +12 -0
- package/icon/src/icon-registry.d.ts +5 -0
- package/icon/src/icon-types.d.ts +95 -0
- package/icon/src/icon.d.ts +63 -0
- package/image/index.d.ts +10 -0
- package/image/src/image-types.d.ts +56 -0
- package/image/src/image.d.ts +42 -0
- package/image-preview-group/index.d.ts +11 -0
- package/image-preview-group/index.es.js +162 -0
- package/image-preview-group/index.umd.js +1 -0
- package/image-preview-group/src/image-preview-group-types.d.ts +51 -0
- package/image-preview-group/src/image-preview-group.d.ts +25 -0
- package/image-preview-group/style.css +2 -0
- package/index.d.ts +93 -7
- package/input/index.d.ts +10 -0
- package/input/src/input-types.d.ts +164 -0
- package/input/src/input.d.ts +74 -0
- package/input-number/index.d.ts +10 -0
- package/input-number/src/input-number-types.d.ts +165 -0
- package/input-number/src/input-number.d.ts +66 -0
- package/input-otp/index.d.ts +11 -0
- package/input-otp/index.es.js +186 -0
- package/input-otp/index.umd.js +1 -0
- package/input-otp/src/input-otp-types.d.ts +68 -0
- package/input-otp/src/input-otp.d.ts +40 -0
- package/input-otp/style.css +2 -0
- package/input-search/index.d.ts +11 -0
- package/input-search/index.es.js +1228 -0
- package/input-search/index.umd.js +1 -0
- package/input-search/src/input-search-types.d.ts +106 -0
- package/input-search/src/input-search.d.ts +84 -0
- package/input-search/style.css +2 -0
- package/layout/index.d.ts +10 -0
- package/layout/src/layout-types.d.ts +70 -0
- package/layout/src/layout.d.ts +56 -0
- package/masonry/index.d.ts +10 -0
- package/masonry/src/masonry-types.d.ts +19 -0
- package/masonry/src/masonry.d.ts +16 -0
- package/mentions/index.d.ts +10 -0
- package/mentions/index.es.js +711 -0
- package/mentions/index.umd.js +1 -0
- package/mentions/src/mentions-types.d.ts +124 -0
- package/mentions/src/mentions.d.ts +79 -0
- package/mentions/style.css +2 -0
- package/menu/index.d.ts +10 -0
- package/menu/src/menu-types.d.ts +109 -0
- package/menu/src/menu.d.ts +63 -0
- package/message/index.d.ts +22 -0
- package/message/src/message-item.d.ts +46 -0
- package/message/src/message-types.d.ts +86 -0
- package/message/src/message.d.ts +21 -0
- package/message/src/use-message.d.ts +35 -0
- package/modal/index.d.ts +24 -0
- package/modal/src/confirm-types.d.ts +30 -0
- package/modal/src/confirm.d.ts +17 -0
- package/modal/src/modal-types.d.ts +175 -0
- package/modal/src/modal.d.ts +99 -0
- package/modal/src/use-modal.d.ts +34 -0
- package/notification/index.d.ts +21 -0
- package/notification/src/notification-item.d.ts +49 -0
- package/notification/src/notification-types.d.ts +91 -0
- package/notification/src/notification.d.ts +20 -0
- package/notification/src/use-notification.d.ts +34 -0
- package/package.json +611 -12
- package/pagination/index.d.ts +10 -0
- package/pagination/index.es.js +4 -2
- package/pagination/index.umd.js +1 -1
- package/pagination/src/pagination-types.d.ts +49 -0
- package/pagination/src/pagination.d.ts +43 -0
- package/popconfirm/index.d.ts +10 -0
- package/popconfirm/src/popconfirm-types.d.ts +82 -0
- package/popconfirm/src/popconfirm.d.ts +55 -0
- package/popover/index.d.ts +10 -0
- package/popover/src/popover-types.d.ts +235 -0
- package/popover/src/popover.d.ts +130 -0
- package/progress/index.d.ts +10 -0
- package/progress/src/progress-types.d.ts +48 -0
- package/progress/src/progress.d.ts +37 -0
- package/radio/index.d.ts +11 -0
- package/radio/src/components/icon-active.d.ts +2 -0
- package/radio/src/components/icon-circle.d.ts +2 -0
- package/radio/src/radio-group.d.ts +21 -0
- package/radio/src/radio-types.d.ts +55 -0
- package/radio/src/radio.d.ts +24 -0
- package/range-picker/index.d.ts +10 -0
- package/range-picker/index.es.js +2415 -0
- package/range-picker/index.umd.js +1 -0
- package/range-picker/src/range-picker-types.d.ts +169 -0
- package/range-picker/src/range-picker.d.ts +112 -0
- package/range-picker/style.css +2 -0
- package/rate/index.d.ts +10 -0
- package/rate/src/components/icon-default.d.ts +2 -0
- package/rate/src/rate-types.d.ts +34 -0
- package/rate/src/rate.d.ts +30 -0
- package/result/index.d.ts +10 -0
- package/result/src/result-types.d.ts +21 -0
- package/result/src/result.d.ts +18 -0
- package/segmented/index.d.ts +10 -0
- package/segmented/src/segmented-types.d.ts +32 -0
- package/segmented/src/segmented.d.ts +25 -0
- package/select/index.d.ts +10 -0
- package/select/src/composables/use-select.d.ts +29 -0
- package/select/src/select-types.d.ts +215 -0
- package/select/src/select.d.ts +149 -0
- package/skeleton/index.d.ts +10 -0
- package/skeleton/src/skeleton-types.d.ts +39 -0
- package/skeleton/src/skeleton.d.ts +27 -0
- package/skeleton-node/index.d.ts +11 -0
- package/skeleton-node/index.es.js +71 -0
- package/skeleton-node/index.umd.js +1 -0
- package/skeleton-node/src/skeleton-node-types.d.ts +23 -0
- package/skeleton-node/src/skeleton-node.d.ts +17 -0
- package/skeleton-node/style.css +2 -0
- package/slider/index.d.ts +10 -0
- package/slider/index.es.js +3 -3
- package/slider/index.umd.js +1 -1
- package/slider/src/composables/use-slider-tooltip.d.ts +18 -0
- package/slider/src/composables/use-slider.d.ts +68 -0
- package/slider/src/slider-types.d.ts +112 -0
- package/slider/src/slider.d.ts +149 -0
- package/space/index.d.ts +10 -0
- package/space/src/space-types.d.ts +28 -0
- package/space/src/space.d.ts +21 -0
- package/space-compact/index.d.ts +11 -0
- package/space-compact/index.es.js +59 -0
- package/space-compact/index.umd.js +1 -0
- package/space-compact/src/space-compact-types.d.ts +27 -0
- package/space-compact/src/space-compact.d.ts +15 -0
- package/space-compact/style.css +2 -0
- package/spin/index.d.ts +10 -0
- package/spin/src/spin-types.d.ts +29 -0
- package/spin/src/spin.d.ts +24 -0
- package/splitter/index.d.ts +10 -0
- package/splitter/src/splitter-types.d.ts +70 -0
- package/splitter/src/splitter.d.ts +62 -0
- package/status/index.d.ts +10 -0
- package/status/src/status-types.d.ts +10 -0
- package/status/src/status.d.ts +9 -0
- package/steps/index.d.ts +10 -0
- package/steps/src/steps-types.d.ts +48 -0
- package/steps/src/steps.d.ts +34 -0
- package/style.css +2 -0
- package/switch/index.d.ts +10 -0
- package/switch/src/switch-types.d.ts +45 -0
- package/switch/src/switch.d.ts +37 -0
- package/table/index.d.ts +11 -0
- package/table/src/table-types.d.ts +172 -0
- package/table/src/table.d.ts +67 -0
- package/table-column/index.d.ts +11 -0
- package/table-column/index.es.js +155 -0
- package/table-column/index.umd.js +1 -0
- package/table-column/src/table-column-types.d.ts +75 -0
- package/table-column/src/table-column.d.ts +63 -0
- package/table-column-group/index.d.ts +11 -0
- package/table-column-group/index.es.js +80 -0
- package/table-column-group/index.umd.js +1 -0
- package/table-column-group/src/table-column-group-types.d.ts +36 -0
- package/table-column-group/src/table-column-group.d.ts +20 -0
- package/table-summary/index.d.ts +11 -0
- package/table-summary/index.es.js +30 -0
- package/table-summary/index.umd.js +1 -0
- package/table-summary/src/table-summary-types.d.ts +29 -0
- package/table-summary/src/table-summary.d.ts +8 -0
- package/tabs/index.d.ts +11 -0
- package/tabs/src/components/tab/tab-types.d.ts +18 -0
- package/tabs/src/components/tab/tab.d.ts +15 -0
- package/tabs/src/components/tabs-nav/index.d.ts +26 -0
- package/tabs/src/tabs-types.d.ts +49 -0
- package/tabs/src/tabs.d.ts +27 -0
- package/tag/index.d.ts +10 -0
- package/tag/src/tag-types.d.ts +41 -0
- package/tag/src/tag.d.ts +24 -0
- package/textarea/index.d.ts +11 -0
- package/textarea/index.es.js +1241 -0
- package/textarea/index.umd.js +1 -0
- package/textarea/src/textarea-types.d.ts +150 -0
- package/textarea/src/textarea.d.ts +63 -0
- package/textarea/style.css +2 -0
- package/time-picker/index.d.ts +10 -0
- package/time-picker/index.es.js +2325 -0
- package/time-picker/index.umd.js +1 -0
- package/time-picker/src/time-picker-types.d.ts +168 -0
- package/time-picker/src/time-picker.d.ts +127 -0
- package/time-picker/style.css +2 -0
- package/time-range-picker/index.d.ts +10 -0
- package/time-range-picker/index.es.js +2568 -0
- package/time-range-picker/index.umd.js +1 -0
- package/time-range-picker/src/time-range-picker-types.d.ts +147 -0
- package/time-range-picker/src/time-range-picker.d.ts +124 -0
- package/time-range-picker/style.css +2 -0
- package/timeline/index.d.ts +11 -0
- package/timeline/src/timeline-item.d.ts +31 -0
- package/timeline/src/timeline-types.d.ts +72 -0
- package/timeline/src/timeline.d.ts +3 -0
- package/tooltip/index.d.ts +10 -0
- package/tooltip/src/tooltip-types.d.ts +201 -0
- package/tooltip/src/tooltip.d.ts +87 -0
- package/transfer/index.d.ts +10 -0
- package/transfer/index.es.js +1407 -0
- package/transfer/index.umd.js +1 -0
- package/transfer/src/transfer-types.d.ts +76 -0
- package/transfer/src/transfer.d.ts +59 -0
- package/transfer/style.css +2 -0
- package/tree/index.d.ts +10 -0
- package/tree/src/composables/use-tree-check.d.ts +9 -0
- package/tree/src/composables/use-tree-flatten.d.ts +11 -0
- package/tree/src/composables/use-tree-state.d.ts +17 -0
- package/tree/src/tree-types.d.ts +202 -0
- package/tree/src/tree.d.ts +122 -0
- package/tree-select/index.d.ts +12 -0
- package/tree-select/index.es.js +3009 -0
- package/tree-select/index.umd.js +1 -0
- package/tree-select/src/tree-select-types.d.ts +188 -0
- package/tree-select/src/tree-select.d.ts +128 -0
- package/tree-select/style.css +2 -0
- package/typography/index.d.ts +10 -0
- package/typography/src/typography-types.d.ts +316 -0
- package/typography/src/typography.d.ts +33 -0
- package/upload/index.d.ts +10 -0
- package/upload/index.es.js +1450 -0
- package/upload/index.umd.js +1 -0
- package/upload/src/upload-types.d.ts +99 -0
- package/upload/src/upload.d.ts +66 -0
- package/upload/style.css +2 -0
- package/upload-dragger/index.d.ts +10 -0
- package/upload-dragger/index.es.js +1472 -0
- package/upload-dragger/index.umd.js +1 -0
- package/upload-dragger/src/upload-dragger.d.ts +167 -0
- package/upload-dragger/style.css +2 -0
- package/util/index.d.ts +12 -0
- package/util/src/dom.d.ts +8 -0
- package/util/src/func.d.ts +7 -0
- package/util/src/type.d.ts +3 -0
- package/vue-ccui.es.js +11 -9
- package/vue-ccui.umd.js +1 -1
- package/watermark/index.d.ts +10 -0
- package/watermark/src/watermark-types.d.ts +47 -0
- package/watermark/src/watermark.d.ts +34 -0
- package/ccui-cli.css +0 -2
- package/nuxt/components/category.js +0 -2
- package/nuxt/components/install.js +0 -2
- package/nuxt/components/status.js +0 -2
- package/nuxt/components/title.js +0 -2
- package/nuxt/index.js +0 -13
- /package/affix/{ccui-cli.css → style.css} +0 -0
- /package/alert/{ccui-cli.css → style.css} +0 -0
- /package/anchor/{ccui-cli.css → style.css} +0 -0
- /package/avatar/{ccui-cli.css → style.css} +0 -0
- /package/badge/{ccui-cli.css → style.css} +0 -0
- /package/breadcrumb/{ccui-cli.css → style.css} +0 -0
- /package/button/{ccui-cli.css → style.css} +0 -0
- /package/button-3d/{ccui-cli.css → style.css} +0 -0
- /package/calendar/{ccui-cli.css → style.css} +0 -0
- /package/card/{ccui-cli.css → style.css} +0 -0
- /package/check-box/{ccui-cli.css → style.css} +0 -0
- /package/collapse/{ccui-cli.css → style.css} +0 -0
- /package/date-picker/{ccui-cli.css → style.css} +0 -0
- /package/descriptions/{ccui-cli.css → style.css} +0 -0
- /package/divider/{ccui-cli.css → style.css} +0 -0
- /package/drawer/{ccui-cli.css → style.css} +0 -0
- /package/dropdown/{ccui-cli.css → style.css} +0 -0
- /package/empty/{ccui-cli.css → style.css} +0 -0
- /package/flex/{ccui-cli.css → style.css} +0 -0
- /package/float-button/{ccui-cli.css → style.css} +0 -0
- /package/form/{ccui-cli.css → style.css} +0 -0
- /package/grid/{ccui-cli.css → style.css} +0 -0
- /package/icon/{ccui-cli.css → style.css} +0 -0
- /package/image/{ccui-cli.css → style.css} +0 -0
- /package/input/{ccui-cli.css → style.css} +0 -0
- /package/input-number/{ccui-cli.css → style.css} +0 -0
- /package/layout/{ccui-cli.css → style.css} +0 -0
- /package/masonry/{ccui-cli.css → style.css} +0 -0
- /package/menu/{ccui-cli.css → style.css} +0 -0
- /package/message/{ccui-cli.css → style.css} +0 -0
- /package/modal/{ccui-cli.css → style.css} +0 -0
- /package/notification/{ccui-cli.css → style.css} +0 -0
- /package/pagination/{ccui-cli.css → style.css} +0 -0
- /package/popconfirm/{ccui-cli.css → style.css} +0 -0
- /package/popover/{ccui-cli.css → style.css} +0 -0
- /package/progress/{ccui-cli.css → style.css} +0 -0
- /package/radio/{ccui-cli.css → style.css} +0 -0
- /package/rate/{ccui-cli.css → style.css} +0 -0
- /package/result/{ccui-cli.css → style.css} +0 -0
- /package/segmented/{ccui-cli.css → style.css} +0 -0
- /package/select/{ccui-cli.css → style.css} +0 -0
- /package/skeleton/{ccui-cli.css → style.css} +0 -0
- /package/slider/{ccui-cli.css → style.css} +0 -0
- /package/space/{ccui-cli.css → style.css} +0 -0
- /package/spin/{ccui-cli.css → style.css} +0 -0
- /package/splitter/{ccui-cli.css → style.css} +0 -0
- /package/status/{ccui-cli.css → style.css} +0 -0
- /package/steps/{ccui-cli.css → style.css} +0 -0
- /package/switch/{ccui-cli.css → style.css} +0 -0
- /package/table/{ccui-cli.css → style.css} +0 -0
- /package/tabs/{ccui-cli.css → style.css} +0 -0
- /package/tag/{ccui-cli.css → style.css} +0 -0
- /package/timeline/{ccui-cli.css → style.css} +0 -0
- /package/tooltip/{ccui-cli.css → style.css} +0 -0
- /package/tree/{ccui-cli.css → style.css} +0 -0
- /package/typography/{ccui-cli.css → style.css} +0 -0
- /package/watermark/{ccui-cli.css → style.css} +0 -0
|
@@ -0,0 +1,711 @@
|
|
|
1
|
+
import { computed as e, createVNode as t, defineComponent as n, getCurrentInstance as r, inject as i, nextTick as a, onMounted as o, onUnmounted as s, ref as c, shallowRef as l } from "vue";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var u = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports);
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region ../ccui/ui/shared/hooks/use-namespace.ts
|
|
6
|
+
function d(e, t, n) {
|
|
7
|
+
let r = e;
|
|
8
|
+
return t && (r += `__${t}`), n && (r += `--${n}`), r;
|
|
9
|
+
}
|
|
10
|
+
function f(e, t = !1) {
|
|
11
|
+
let n = t ? `.ccui-${e}` : `ccui-${e}`;
|
|
12
|
+
return {
|
|
13
|
+
b: () => d(n),
|
|
14
|
+
e: (e) => e ? d(n, e) : "",
|
|
15
|
+
m: (e) => e ? d(n, "", e) : "",
|
|
16
|
+
em: (e, t) => e && t ? d(n, e, t) : "",
|
|
17
|
+
is: (e) => `is-${e}`
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
(/* @__PURE__ */ u(((e, t) => {
|
|
21
|
+
(function(n, r) {
|
|
22
|
+
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
23
|
+
})(e, (function() {
|
|
24
|
+
var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = {
|
|
25
|
+
name: "en",
|
|
26
|
+
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
27
|
+
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
28
|
+
ordinal: function(e) {
|
|
29
|
+
var t = [
|
|
30
|
+
"th",
|
|
31
|
+
"st",
|
|
32
|
+
"nd",
|
|
33
|
+
"rd"
|
|
34
|
+
], n = e % 100;
|
|
35
|
+
return "[" + e + (t[(n - 20) % 10] || t[n] || t[0]) + "]";
|
|
36
|
+
}
|
|
37
|
+
}, _ = function(e, t, n) {
|
|
38
|
+
var r = String(e);
|
|
39
|
+
return !r || r.length >= t ? e : "" + Array(t + 1 - r.length).join(n) + e;
|
|
40
|
+
}, v = {
|
|
41
|
+
s: _,
|
|
42
|
+
z: function(e) {
|
|
43
|
+
var t = -e.utcOffset(), n = Math.abs(t), r = Math.floor(n / 60), i = n % 60;
|
|
44
|
+
return (t <= 0 ? "+" : "-") + _(r, 2, "0") + ":" + _(i, 2, "0");
|
|
45
|
+
},
|
|
46
|
+
m: function e(t, n) {
|
|
47
|
+
if (t.date() < n.date()) return -e(n, t);
|
|
48
|
+
var r = 12 * (n.year() - t.year()) + (n.month() - t.month()), i = t.clone().add(r, l), a = n - i < 0, o = t.clone().add(r + (a ? -1 : 1), l);
|
|
49
|
+
return +(-(r + (n - i) / (a ? i - o : o - i)) || 0);
|
|
50
|
+
},
|
|
51
|
+
a: function(e) {
|
|
52
|
+
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
53
|
+
},
|
|
54
|
+
p: function(e) {
|
|
55
|
+
return {
|
|
56
|
+
M: l,
|
|
57
|
+
y: d,
|
|
58
|
+
w: c,
|
|
59
|
+
d: s,
|
|
60
|
+
D: f,
|
|
61
|
+
h: o,
|
|
62
|
+
m: a,
|
|
63
|
+
s: i,
|
|
64
|
+
ms: r,
|
|
65
|
+
Q: u
|
|
66
|
+
}[e] || String(e || "").toLowerCase().replace(/s$/, "");
|
|
67
|
+
},
|
|
68
|
+
u: function(e) {
|
|
69
|
+
return e === void 0;
|
|
70
|
+
}
|
|
71
|
+
}, y = "en", b = {};
|
|
72
|
+
b[y] = g;
|
|
73
|
+
var x = "$isDayjsObject", S = function(e) {
|
|
74
|
+
return e instanceof E || !(!e || !e[x]);
|
|
75
|
+
}, C = function e(t, n, r) {
|
|
76
|
+
var i;
|
|
77
|
+
if (!t) return y;
|
|
78
|
+
if (typeof t == "string") {
|
|
79
|
+
var a = t.toLowerCase();
|
|
80
|
+
b[a] && (i = a), n && (b[a] = n, i = a);
|
|
81
|
+
var o = t.split("-");
|
|
82
|
+
if (!i && o.length > 1) return e(o[0]);
|
|
83
|
+
} else {
|
|
84
|
+
var s = t.name;
|
|
85
|
+
b[s] = t, i = s;
|
|
86
|
+
}
|
|
87
|
+
return !r && i && (y = i), i || !r && y;
|
|
88
|
+
}, w = function(e, t) {
|
|
89
|
+
if (S(e)) return e.clone();
|
|
90
|
+
var n = typeof t == "object" ? t : {};
|
|
91
|
+
return n.date = e, n.args = arguments, new E(n);
|
|
92
|
+
}, T = v;
|
|
93
|
+
T.l = C, T.i = S, T.w = function(e, t) {
|
|
94
|
+
return w(e, {
|
|
95
|
+
locale: t.$L,
|
|
96
|
+
utc: t.$u,
|
|
97
|
+
x: t.$x,
|
|
98
|
+
$offset: t.$offset
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
var E = function() {
|
|
102
|
+
function g(e) {
|
|
103
|
+
this.$L = C(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[x] = !0;
|
|
104
|
+
}
|
|
105
|
+
var _ = g.prototype;
|
|
106
|
+
return _.parse = function(e) {
|
|
107
|
+
this.$d = function(e) {
|
|
108
|
+
var t = e.date, n = e.utc;
|
|
109
|
+
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
110
|
+
if (T.u(t)) return /* @__PURE__ */ new Date();
|
|
111
|
+
if (t instanceof Date) return new Date(t);
|
|
112
|
+
if (typeof t == "string" && !/Z$/i.test(t)) {
|
|
113
|
+
var r = t.match(m);
|
|
114
|
+
if (r) {
|
|
115
|
+
var i = r[2] - 1 || 0, a = (r[7] || "0").substring(0, 3);
|
|
116
|
+
return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return new Date(t);
|
|
120
|
+
}(e), this.init();
|
|
121
|
+
}, _.init = function() {
|
|
122
|
+
var e = this.$d;
|
|
123
|
+
this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
|
|
124
|
+
}, _.$utils = function() {
|
|
125
|
+
return T;
|
|
126
|
+
}, _.isValid = function() {
|
|
127
|
+
return this.$d.toString() !== p;
|
|
128
|
+
}, _.isSame = function(e, t) {
|
|
129
|
+
var n = w(e);
|
|
130
|
+
return this.startOf(t) <= n && n <= this.endOf(t);
|
|
131
|
+
}, _.isAfter = function(e, t) {
|
|
132
|
+
return w(e) < this.startOf(t);
|
|
133
|
+
}, _.isBefore = function(e, t) {
|
|
134
|
+
return this.endOf(t) < w(e);
|
|
135
|
+
}, _.$g = function(e, t, n) {
|
|
136
|
+
return T.u(e) ? this[t] : this.set(n, e);
|
|
137
|
+
}, _.unix = function() {
|
|
138
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
139
|
+
}, _.valueOf = function() {
|
|
140
|
+
return this.$d.getTime();
|
|
141
|
+
}, _.startOf = function(e, t) {
|
|
142
|
+
var n = this, r = !!T.u(t) || t, u = T.p(e), p = function(e, t) {
|
|
143
|
+
var i = T.w(n.$u ? Date.UTC(n.$y, t, e) : new Date(n.$y, t, e), n);
|
|
144
|
+
return r ? i : i.endOf(s);
|
|
145
|
+
}, m = function(e, t) {
|
|
146
|
+
return T.w(n.toDate()[e].apply(n.toDate("s"), (r ? [
|
|
147
|
+
0,
|
|
148
|
+
0,
|
|
149
|
+
0,
|
|
150
|
+
0
|
|
151
|
+
] : [
|
|
152
|
+
23,
|
|
153
|
+
59,
|
|
154
|
+
59,
|
|
155
|
+
999
|
|
156
|
+
]).slice(t)), n);
|
|
157
|
+
}, h = this.$W, g = this.$M, _ = this.$D, v = "set" + (this.$u ? "UTC" : "");
|
|
158
|
+
switch (u) {
|
|
159
|
+
case d: return r ? p(1, 0) : p(31, 11);
|
|
160
|
+
case l: return r ? p(1, g) : p(0, g + 1);
|
|
161
|
+
case c:
|
|
162
|
+
var y = this.$locale().weekStart || 0, b = (h < y ? h + 7 : h) - y;
|
|
163
|
+
return p(r ? _ - b : _ + (6 - b), g);
|
|
164
|
+
case s:
|
|
165
|
+
case f: return m(v + "Hours", 0);
|
|
166
|
+
case o: return m(v + "Minutes", 1);
|
|
167
|
+
case a: return m(v + "Seconds", 2);
|
|
168
|
+
case i: return m(v + "Milliseconds", 3);
|
|
169
|
+
default: return this.clone();
|
|
170
|
+
}
|
|
171
|
+
}, _.endOf = function(e) {
|
|
172
|
+
return this.startOf(e, !1);
|
|
173
|
+
}, _.$set = function(e, t) {
|
|
174
|
+
var n, c = T.p(e), u = "set" + (this.$u ? "UTC" : ""), p = (n = {}, n[s] = u + "Date", n[f] = u + "Date", n[l] = u + "Month", n[d] = u + "FullYear", n[o] = u + "Hours", n[a] = u + "Minutes", n[i] = u + "Seconds", n[r] = u + "Milliseconds", n)[c], m = c === s ? this.$D + (t - this.$W) : t;
|
|
175
|
+
if (c === l || c === d) {
|
|
176
|
+
var h = this.clone().set(f, 1);
|
|
177
|
+
h.$d[p](m), h.init(), this.$d = h.set(f, Math.min(this.$D, h.daysInMonth())).$d;
|
|
178
|
+
} else p && this.$d[p](m);
|
|
179
|
+
return this.init(), this;
|
|
180
|
+
}, _.set = function(e, t) {
|
|
181
|
+
return this.clone().$set(e, t);
|
|
182
|
+
}, _.get = function(e) {
|
|
183
|
+
return this[T.p(e)]();
|
|
184
|
+
}, _.add = function(r, u) {
|
|
185
|
+
var f, p = this;
|
|
186
|
+
r = Number(r);
|
|
187
|
+
var m = T.p(u), h = function(e) {
|
|
188
|
+
var t = w(p);
|
|
189
|
+
return T.w(t.date(t.date() + Math.round(e * r)), p);
|
|
190
|
+
};
|
|
191
|
+
if (m === l) return this.set(l, this.$M + r);
|
|
192
|
+
if (m === d) return this.set(d, this.$y + r);
|
|
193
|
+
if (m === s) return h(1);
|
|
194
|
+
if (m === c) return h(7);
|
|
195
|
+
var g = (f = {}, f[a] = t, f[o] = n, f[i] = e, f)[m] || 1, _ = this.$d.getTime() + r * g;
|
|
196
|
+
return T.w(_, this);
|
|
197
|
+
}, _.subtract = function(e, t) {
|
|
198
|
+
return this.add(-1 * e, t);
|
|
199
|
+
}, _.format = function(e) {
|
|
200
|
+
var t = this, n = this.$locale();
|
|
201
|
+
if (!this.isValid()) return n.invalidDate || p;
|
|
202
|
+
var r = e || "YYYY-MM-DDTHH:mm:ssZ", i = T.z(this), a = this.$H, o = this.$m, s = this.$M, c = n.weekdays, l = n.months, u = n.meridiem, d = function(e, n, i, a) {
|
|
203
|
+
return e && (e[n] || e(t, r)) || i[n].slice(0, a);
|
|
204
|
+
}, f = function(e) {
|
|
205
|
+
return T.s(a % 12 || 12, e, "0");
|
|
206
|
+
}, m = u || function(e, t, n) {
|
|
207
|
+
var r = e < 12 ? "AM" : "PM";
|
|
208
|
+
return n ? r.toLowerCase() : r;
|
|
209
|
+
};
|
|
210
|
+
return r.replace(h, (function(e, r) {
|
|
211
|
+
return r || function(e) {
|
|
212
|
+
switch (e) {
|
|
213
|
+
case "YY": return String(t.$y).slice(-2);
|
|
214
|
+
case "YYYY": return T.s(t.$y, 4, "0");
|
|
215
|
+
case "M": return s + 1;
|
|
216
|
+
case "MM": return T.s(s + 1, 2, "0");
|
|
217
|
+
case "MMM": return d(n.monthsShort, s, l, 3);
|
|
218
|
+
case "MMMM": return d(l, s);
|
|
219
|
+
case "D": return t.$D;
|
|
220
|
+
case "DD": return T.s(t.$D, 2, "0");
|
|
221
|
+
case "d": return String(t.$W);
|
|
222
|
+
case "dd": return d(n.weekdaysMin, t.$W, c, 2);
|
|
223
|
+
case "ddd": return d(n.weekdaysShort, t.$W, c, 3);
|
|
224
|
+
case "dddd": return c[t.$W];
|
|
225
|
+
case "H": return String(a);
|
|
226
|
+
case "HH": return T.s(a, 2, "0");
|
|
227
|
+
case "h": return f(1);
|
|
228
|
+
case "hh": return f(2);
|
|
229
|
+
case "a": return m(a, o, !0);
|
|
230
|
+
case "A": return m(a, o, !1);
|
|
231
|
+
case "m": return String(o);
|
|
232
|
+
case "mm": return T.s(o, 2, "0");
|
|
233
|
+
case "s": return String(t.$s);
|
|
234
|
+
case "ss": return T.s(t.$s, 2, "0");
|
|
235
|
+
case "SSS": return T.s(t.$ms, 3, "0");
|
|
236
|
+
case "Z": return i;
|
|
237
|
+
}
|
|
238
|
+
return null;
|
|
239
|
+
}(e) || i.replace(":", "");
|
|
240
|
+
}));
|
|
241
|
+
}, _.utcOffset = function() {
|
|
242
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
243
|
+
}, _.diff = function(r, f, p) {
|
|
244
|
+
var m, h = this, g = T.p(f), _ = w(r), v = (_.utcOffset() - this.utcOffset()) * t, y = this - _, b = function() {
|
|
245
|
+
return T.m(h, _);
|
|
246
|
+
};
|
|
247
|
+
switch (g) {
|
|
248
|
+
case d:
|
|
249
|
+
m = b() / 12;
|
|
250
|
+
break;
|
|
251
|
+
case l:
|
|
252
|
+
m = b();
|
|
253
|
+
break;
|
|
254
|
+
case u:
|
|
255
|
+
m = b() / 3;
|
|
256
|
+
break;
|
|
257
|
+
case c:
|
|
258
|
+
m = (y - v) / 6048e5;
|
|
259
|
+
break;
|
|
260
|
+
case s:
|
|
261
|
+
m = (y - v) / 864e5;
|
|
262
|
+
break;
|
|
263
|
+
case o:
|
|
264
|
+
m = y / n;
|
|
265
|
+
break;
|
|
266
|
+
case a:
|
|
267
|
+
m = y / t;
|
|
268
|
+
break;
|
|
269
|
+
case i:
|
|
270
|
+
m = y / e;
|
|
271
|
+
break;
|
|
272
|
+
default: m = y;
|
|
273
|
+
}
|
|
274
|
+
return p ? m : T.a(m);
|
|
275
|
+
}, _.daysInMonth = function() {
|
|
276
|
+
return this.endOf(l).$D;
|
|
277
|
+
}, _.$locale = function() {
|
|
278
|
+
return b[this.$L];
|
|
279
|
+
}, _.locale = function(e, t) {
|
|
280
|
+
if (!e) return this.$L;
|
|
281
|
+
var n = this.clone(), r = C(e, t, !0);
|
|
282
|
+
return r && (n.$L = r), n;
|
|
283
|
+
}, _.clone = function() {
|
|
284
|
+
return T.w(this.$d, this);
|
|
285
|
+
}, _.toDate = function() {
|
|
286
|
+
return new Date(this.valueOf());
|
|
287
|
+
}, _.toJSON = function() {
|
|
288
|
+
return this.isValid() ? this.toISOString() : null;
|
|
289
|
+
}, _.toISOString = function() {
|
|
290
|
+
return this.$d.toISOString();
|
|
291
|
+
}, _.toString = function() {
|
|
292
|
+
return this.$d.toUTCString();
|
|
293
|
+
}, g;
|
|
294
|
+
}(), D = E.prototype;
|
|
295
|
+
return w.prototype = D, [
|
|
296
|
+
["$ms", r],
|
|
297
|
+
["$s", i],
|
|
298
|
+
["$m", a],
|
|
299
|
+
["$H", o],
|
|
300
|
+
["$W", s],
|
|
301
|
+
["$M", l],
|
|
302
|
+
["$y", d],
|
|
303
|
+
["$D", f]
|
|
304
|
+
].forEach((function(e) {
|
|
305
|
+
D[e[1]] = function(t) {
|
|
306
|
+
return this.$g(t, e[0], e[1]);
|
|
307
|
+
};
|
|
308
|
+
})), w.extend = function(e, t) {
|
|
309
|
+
return e.$i ||= (e(t, E, w), !0), w;
|
|
310
|
+
}, w.locale = C, w.isDayjs = S, w.unix = function(e) {
|
|
311
|
+
return w(1e3 * e);
|
|
312
|
+
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
313
|
+
}));
|
|
314
|
+
})))();
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region ../ccui/ui/locale/zh-CN.ts
|
|
317
|
+
var p = {
|
|
318
|
+
locale: "zh-CN",
|
|
319
|
+
Modal: {
|
|
320
|
+
okText: "确 定",
|
|
321
|
+
cancelText: "取 消",
|
|
322
|
+
justOkText: "知道了"
|
|
323
|
+
},
|
|
324
|
+
Popconfirm: {
|
|
325
|
+
okText: "确 定",
|
|
326
|
+
cancelText: "取 消"
|
|
327
|
+
},
|
|
328
|
+
Empty: { description: "暂无数据" },
|
|
329
|
+
AutoComplete: { notFoundContent: "暂无数据" },
|
|
330
|
+
Mentions: { notFoundContent: "暂无数据" },
|
|
331
|
+
Cascader: { notFoundContent: "暂无数据" },
|
|
332
|
+
TreeSelect: {
|
|
333
|
+
notFoundContent: "暂无数据",
|
|
334
|
+
searchPlaceholder: "搜索"
|
|
335
|
+
},
|
|
336
|
+
Select: { notFoundContent: "暂无数据" },
|
|
337
|
+
Pagination: {
|
|
338
|
+
itemsPerPage: "条/页",
|
|
339
|
+
jumpTo: "跳至",
|
|
340
|
+
page: "页",
|
|
341
|
+
prevPage: "上一页",
|
|
342
|
+
nextPage: "下一页",
|
|
343
|
+
total: "共 {total} 条",
|
|
344
|
+
pagination: "分页"
|
|
345
|
+
},
|
|
346
|
+
Image: {
|
|
347
|
+
loading: "加载中",
|
|
348
|
+
error: "加载失败"
|
|
349
|
+
},
|
|
350
|
+
DatePicker: {
|
|
351
|
+
placeholder: "请选择日期",
|
|
352
|
+
rangePlaceholder: ["开始日期", "结束日期"],
|
|
353
|
+
timePlaceholder: "请选择时间",
|
|
354
|
+
weekdaysShort: [
|
|
355
|
+
"日",
|
|
356
|
+
"一",
|
|
357
|
+
"二",
|
|
358
|
+
"三",
|
|
359
|
+
"四",
|
|
360
|
+
"五",
|
|
361
|
+
"六"
|
|
362
|
+
],
|
|
363
|
+
panelLabelFormat: "YYYY 年 M 月",
|
|
364
|
+
monthNamesShort: [
|
|
365
|
+
"1 月",
|
|
366
|
+
"2 月",
|
|
367
|
+
"3 月",
|
|
368
|
+
"4 月",
|
|
369
|
+
"5 月",
|
|
370
|
+
"6 月",
|
|
371
|
+
"7 月",
|
|
372
|
+
"8 月",
|
|
373
|
+
"9 月",
|
|
374
|
+
"10 月",
|
|
375
|
+
"11 月",
|
|
376
|
+
"12 月"
|
|
377
|
+
],
|
|
378
|
+
quarterNames: [
|
|
379
|
+
"一季度",
|
|
380
|
+
"二季度",
|
|
381
|
+
"三季度",
|
|
382
|
+
"四季度"
|
|
383
|
+
],
|
|
384
|
+
weekFormat: "{weekYear} 年第 {weekNumber} 周",
|
|
385
|
+
weekHeader: "周",
|
|
386
|
+
now: "此刻",
|
|
387
|
+
ok: "确定",
|
|
388
|
+
prevYearLabel: "前一年",
|
|
389
|
+
prevMonthLabel: "上个月",
|
|
390
|
+
nextYearLabel: "后一年",
|
|
391
|
+
nextMonthLabel: "下个月",
|
|
392
|
+
clearLabel: "清除"
|
|
393
|
+
},
|
|
394
|
+
Calendar: {
|
|
395
|
+
weekdaysShort: [
|
|
396
|
+
"日",
|
|
397
|
+
"一",
|
|
398
|
+
"二",
|
|
399
|
+
"三",
|
|
400
|
+
"四",
|
|
401
|
+
"五",
|
|
402
|
+
"六"
|
|
403
|
+
],
|
|
404
|
+
prevMonthLabel: "上个月",
|
|
405
|
+
nextMonthLabel: "下个月",
|
|
406
|
+
todayLabel: "今天",
|
|
407
|
+
monthFormat: "YYYY 年 M 月"
|
|
408
|
+
}
|
|
409
|
+
}, m = Symbol("ccui-config");
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region ../ccui/ui/config-provider/src/config-provider.tsx
|
|
412
|
+
function h() {
|
|
413
|
+
return i(m, {
|
|
414
|
+
prefixCls: "ccui",
|
|
415
|
+
componentSize: "middle",
|
|
416
|
+
locale: p,
|
|
417
|
+
direction: "ltr",
|
|
418
|
+
theme: void 0,
|
|
419
|
+
iconPrefixCls: "ccui-icon"
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
//#endregion
|
|
423
|
+
//#region ../ccui/ui/form/src/form-types.ts
|
|
424
|
+
var g = Symbol("ccuiFormItem"), _ = {
|
|
425
|
+
modelValue: {
|
|
426
|
+
type: String,
|
|
427
|
+
default: void 0
|
|
428
|
+
},
|
|
429
|
+
defaultValue: {
|
|
430
|
+
type: String,
|
|
431
|
+
default: ""
|
|
432
|
+
},
|
|
433
|
+
options: {
|
|
434
|
+
type: Array,
|
|
435
|
+
default: () => []
|
|
436
|
+
},
|
|
437
|
+
prefix: {
|
|
438
|
+
type: [String, Array],
|
|
439
|
+
default: "@"
|
|
440
|
+
},
|
|
441
|
+
split: {
|
|
442
|
+
type: String,
|
|
443
|
+
default: " "
|
|
444
|
+
},
|
|
445
|
+
placeholder: {
|
|
446
|
+
type: String,
|
|
447
|
+
default: ""
|
|
448
|
+
},
|
|
449
|
+
disabled: {
|
|
450
|
+
type: Boolean,
|
|
451
|
+
default: !1
|
|
452
|
+
},
|
|
453
|
+
rows: {
|
|
454
|
+
type: Number,
|
|
455
|
+
default: 3
|
|
456
|
+
},
|
|
457
|
+
filterOption: {
|
|
458
|
+
type: [Boolean, Function],
|
|
459
|
+
default: !0
|
|
460
|
+
},
|
|
461
|
+
caseSensitive: {
|
|
462
|
+
type: Boolean,
|
|
463
|
+
default: !1
|
|
464
|
+
},
|
|
465
|
+
notFoundContent: {
|
|
466
|
+
type: String,
|
|
467
|
+
default: ""
|
|
468
|
+
},
|
|
469
|
+
placement: {
|
|
470
|
+
type: String,
|
|
471
|
+
default: "bottom"
|
|
472
|
+
},
|
|
473
|
+
popupMaxHeight: {
|
|
474
|
+
type: Number,
|
|
475
|
+
default: 256
|
|
476
|
+
},
|
|
477
|
+
autoSize: {
|
|
478
|
+
type: [Boolean, Object],
|
|
479
|
+
default: !1
|
|
480
|
+
},
|
|
481
|
+
searchDebounce: {
|
|
482
|
+
type: Number,
|
|
483
|
+
default: 0
|
|
484
|
+
},
|
|
485
|
+
variant: {
|
|
486
|
+
type: String,
|
|
487
|
+
default: "outlined"
|
|
488
|
+
},
|
|
489
|
+
status: {
|
|
490
|
+
type: String,
|
|
491
|
+
default: ""
|
|
492
|
+
},
|
|
493
|
+
classNames: {
|
|
494
|
+
type: Object,
|
|
495
|
+
default: void 0
|
|
496
|
+
},
|
|
497
|
+
styles: {
|
|
498
|
+
type: Object,
|
|
499
|
+
default: void 0
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
function v(e) {
|
|
503
|
+
return typeof e == "string" ? {
|
|
504
|
+
value: e,
|
|
505
|
+
label: e,
|
|
506
|
+
disabled: !1,
|
|
507
|
+
raw: {
|
|
508
|
+
value: e,
|
|
509
|
+
label: e
|
|
510
|
+
}
|
|
511
|
+
} : {
|
|
512
|
+
value: e.value,
|
|
513
|
+
label: e.label === void 0 ? e.value : String(e.label),
|
|
514
|
+
disabled: !!e.disabled,
|
|
515
|
+
raw: e
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
function y(e, t, n) {
|
|
519
|
+
let r = e.slice(0, t), i = null;
|
|
520
|
+
for (let e of n) {
|
|
521
|
+
let t = r.lastIndexOf(e);
|
|
522
|
+
if (t === -1) continue;
|
|
523
|
+
let n = r[t - 1];
|
|
524
|
+
if (t > 0 && n !== void 0 && !/\s/.test(n)) continue;
|
|
525
|
+
let a = r.slice(t + e.length);
|
|
526
|
+
if (/\s/.test(a)) continue;
|
|
527
|
+
let o = {
|
|
528
|
+
prefix: e,
|
|
529
|
+
search: a,
|
|
530
|
+
start: t
|
|
531
|
+
};
|
|
532
|
+
(!i || o.start > i.start) && (i = o);
|
|
533
|
+
}
|
|
534
|
+
return i;
|
|
535
|
+
}
|
|
536
|
+
//#endregion
|
|
537
|
+
//#region ../ccui/ui/mentions/src/mentions.tsx
|
|
538
|
+
var b = /* @__PURE__ */ n({
|
|
539
|
+
name: "CMentions",
|
|
540
|
+
props: _,
|
|
541
|
+
emits: [
|
|
542
|
+
"update:modelValue",
|
|
543
|
+
"change",
|
|
544
|
+
"select",
|
|
545
|
+
"search",
|
|
546
|
+
"focus",
|
|
547
|
+
"blur"
|
|
548
|
+
],
|
|
549
|
+
setup(n, { emit: u, slots: d }) {
|
|
550
|
+
let p = f("mentions"), m = h(), _ = r()?.uid ?? 0, b = `ccui-mentions-popup-${_}`, x = (e) => `ccui-mentions-option-${_}-${e}`, S = e(() => n.notFoundContent || m.locale?.Mentions?.notFoundContent || "暂无数据"), C = c(null), w = c(null), T = l(!1), E = l(n.defaultValue ?? ""), D = l(0), O = l(null), k = i(g, null), A = e(() => k?.validateStatus.value ?? ""), j = e(() => n.status || A.value), M = e(() => n.modelValue !== void 0), N = e(() => (M.value ? n.modelValue : E.value) ?? ""), P = e(() => {
|
|
551
|
+
let e = n.prefix;
|
|
552
|
+
return Array.isArray(e) ? e : [e];
|
|
553
|
+
}), F = e(() => (n.options || []).map((e) => v(e))), I = e(() => {
|
|
554
|
+
let e = n.filterOption;
|
|
555
|
+
if (e === !1) return F.value;
|
|
556
|
+
let t = O.value?.search ?? "";
|
|
557
|
+
if (!t) return F.value;
|
|
558
|
+
if (typeof e == "function") return F.value.filter((n) => e(t, n.raw));
|
|
559
|
+
let r = n.caseSensitive ? t : t.toLowerCase();
|
|
560
|
+
return F.value.filter((e) => (n.caseSensitive ? e.label : e.label.toLowerCase()).includes(r));
|
|
561
|
+
}), L = null;
|
|
562
|
+
function R(e) {
|
|
563
|
+
M.value || (E.value = e), u("update:modelValue", e), u("change", e), k?.validate("change");
|
|
564
|
+
}
|
|
565
|
+
function z() {
|
|
566
|
+
let e = w.value;
|
|
567
|
+
if (!e || !n.autoSize) return;
|
|
568
|
+
e.style.height = "auto";
|
|
569
|
+
let t = Number.parseInt(getComputedStyle(e).lineHeight) || 20, r = typeof n.autoSize == "object" ? n.autoSize : {}, i = r.minRows ? r.minRows * t : 0, a = r.maxRows ? r.maxRows * t : Infinity, o = e.scrollHeight;
|
|
570
|
+
e.style.height = `${Math.min(Math.max(o, i), a)}px`, a < Infinity && (e.style.overflowY = o > a ? "auto" : "hidden");
|
|
571
|
+
}
|
|
572
|
+
function B() {
|
|
573
|
+
let e = w.value;
|
|
574
|
+
if (!e) return;
|
|
575
|
+
let t = e.selectionStart, r = y(N.value, t, P.value);
|
|
576
|
+
O.value = r, r ? (T.value || (T.value = !0, D.value = 0), n.searchDebounce > 0 ? (L && clearTimeout(L), L = setTimeout(() => u("search", r.search, r.prefix), n.searchDebounce)) : u("search", r.search, r.prefix)) : T.value &&= !1;
|
|
577
|
+
}
|
|
578
|
+
function V(e) {
|
|
579
|
+
let t = e.target.value;
|
|
580
|
+
R(t), a(() => {
|
|
581
|
+
B(), z();
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
function H() {
|
|
585
|
+
B();
|
|
586
|
+
}
|
|
587
|
+
function U() {
|
|
588
|
+
B();
|
|
589
|
+
}
|
|
590
|
+
function W(e) {
|
|
591
|
+
let t = w.value, r = O.value;
|
|
592
|
+
if (!t || !r || e.disabled) return;
|
|
593
|
+
let i = N.value.slice(0, r.start), o = N.value.slice(t.selectionStart), s = `${r.prefix}${e.value}${n.split}`;
|
|
594
|
+
R(`${i}${s}${o}`), u("select", e.raw, r.prefix), T.value = !1, O.value = null;
|
|
595
|
+
let c = i.length + s.length;
|
|
596
|
+
a(() => {
|
|
597
|
+
w.value && (w.value.focus(), w.value.setSelectionRange(c, c));
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
function G(e) {
|
|
601
|
+
if (n.disabled || !T.value) return;
|
|
602
|
+
let t = I.value, r = t.filter((e) => !e.disabled);
|
|
603
|
+
if (!(r.length === 0 && (e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "Enter"))) if (e.key === "ArrowDown") {
|
|
604
|
+
e.preventDefault();
|
|
605
|
+
let n = r[(r.findIndex((e) => e === t[D.value]) + 1) % r.length];
|
|
606
|
+
D.value = t.indexOf(n);
|
|
607
|
+
} else if (e.key === "ArrowUp") {
|
|
608
|
+
e.preventDefault();
|
|
609
|
+
let n = r.findIndex((e) => e === t[D.value]), i = n <= 0 ? r[r.length - 1] : r[n - 1];
|
|
610
|
+
D.value = t.indexOf(i);
|
|
611
|
+
} else e.key === "Enter" || e.key === "Tab" ? t[D.value] && (e.preventDefault(), W(t[D.value])) : e.key === "Escape" && (e.preventDefault(), T.value = !1, O.value = null);
|
|
612
|
+
}
|
|
613
|
+
function K(e) {
|
|
614
|
+
u("focus", e);
|
|
615
|
+
}
|
|
616
|
+
function q(e) {
|
|
617
|
+
u("blur", e), k?.validate("blur");
|
|
618
|
+
}
|
|
619
|
+
function J(e) {
|
|
620
|
+
if (!T.value) return;
|
|
621
|
+
let t = e.target;
|
|
622
|
+
t && (C.value?.contains(t) || (T.value = !1));
|
|
623
|
+
}
|
|
624
|
+
o(() => {
|
|
625
|
+
document.addEventListener("mousedown", J, !0), z();
|
|
626
|
+
}), s(() => {
|
|
627
|
+
document.removeEventListener("mousedown", J, !0), L &&= (clearTimeout(L), null);
|
|
628
|
+
});
|
|
629
|
+
function Y(e, n) {
|
|
630
|
+
let r = [
|
|
631
|
+
p.e("option"),
|
|
632
|
+
n === D.value ? p.is("active") : "",
|
|
633
|
+
e.disabled ? p.is("disabled") : ""
|
|
634
|
+
];
|
|
635
|
+
return t("li", {
|
|
636
|
+
key: `${e.value}-${n}`,
|
|
637
|
+
id: x(n),
|
|
638
|
+
class: r,
|
|
639
|
+
role: "option",
|
|
640
|
+
"aria-selected": n === D.value,
|
|
641
|
+
"aria-disabled": e.disabled,
|
|
642
|
+
onMousedown: (t) => {
|
|
643
|
+
t.preventDefault(), W(e);
|
|
644
|
+
},
|
|
645
|
+
onMouseenter: () => {
|
|
646
|
+
e.disabled || (D.value = n);
|
|
647
|
+
}
|
|
648
|
+
}, [d.option ? d.option({
|
|
649
|
+
option: e.raw,
|
|
650
|
+
index: n
|
|
651
|
+
}) : e.label]);
|
|
652
|
+
}
|
|
653
|
+
function X() {
|
|
654
|
+
if (!T.value) return null;
|
|
655
|
+
let e = I.value, r = { maxHeight: `${n.popupMaxHeight}px` };
|
|
656
|
+
return n.placement === "top" ? (r.bottom = "100%", r.marginBottom = "4px") : (r.top = "100%", r.marginTop = "4px"), t("div", {
|
|
657
|
+
id: b,
|
|
658
|
+
class: [p.e("panel"), n.classNames?.popup],
|
|
659
|
+
style: [r, n.styles?.popup],
|
|
660
|
+
role: "listbox"
|
|
661
|
+
}, [e.length === 0 ? t("div", { class: p.e("empty") }, [S.value]) : t("ul", { class: p.e("options") }, [e.map((e, t) => Y(e, t))])]);
|
|
662
|
+
}
|
|
663
|
+
return () => t("div", {
|
|
664
|
+
ref: C,
|
|
665
|
+
class: [
|
|
666
|
+
p.b(),
|
|
667
|
+
n.disabled ? p.is("disabled") : "",
|
|
668
|
+
n.variant ? p.m(`variant-${n.variant}`) : "",
|
|
669
|
+
j.value ? p.m(`status-${j.value}`) : "",
|
|
670
|
+
n.classNames?.root
|
|
671
|
+
],
|
|
672
|
+
style: n.styles?.root
|
|
673
|
+
}, [t("textarea", {
|
|
674
|
+
ref: w,
|
|
675
|
+
class: [p.e("textarea"), n.classNames?.textarea],
|
|
676
|
+
style: n.styles?.textarea,
|
|
677
|
+
value: N.value,
|
|
678
|
+
rows: n.rows,
|
|
679
|
+
placeholder: n.placeholder,
|
|
680
|
+
disabled: n.disabled,
|
|
681
|
+
spellcheck: !1,
|
|
682
|
+
role: "combobox",
|
|
683
|
+
"aria-autocomplete": "list",
|
|
684
|
+
"aria-haspopup": "listbox",
|
|
685
|
+
"aria-expanded": T.value,
|
|
686
|
+
"aria-controls": b,
|
|
687
|
+
"aria-activedescendant": T.value && I.value[D.value] ? x(D.value) : void 0,
|
|
688
|
+
onInput: V,
|
|
689
|
+
onKeyup: H,
|
|
690
|
+
onKeydown: G,
|
|
691
|
+
onClick: U,
|
|
692
|
+
onFocus: K,
|
|
693
|
+
onBlur: q
|
|
694
|
+
}, null), X()]);
|
|
695
|
+
}
|
|
696
|
+
});
|
|
697
|
+
//#endregion
|
|
698
|
+
//#region ../ccui/ui/mentions/index.ts
|
|
699
|
+
b.install = function(e) {
|
|
700
|
+
e.component(b.name, b);
|
|
701
|
+
};
|
|
702
|
+
var x = {
|
|
703
|
+
title: "Mentions 提及",
|
|
704
|
+
category: "数据录入",
|
|
705
|
+
status: "80%",
|
|
706
|
+
install(e) {
|
|
707
|
+
e.component(b.name, b);
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
//#endregion
|
|
711
|
+
export { b as Mentions, x as default };
|