@vaebe/ccui 2.0.1-beta.2 → 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,1986 @@
|
|
|
1
|
+
import * as e from "vue";
|
|
2
|
+
import { Teleport as t, Transition as n, computed as r, createVNode as i, defineComponent as a, getCurrentInstance as o, h as s, inject as c, nextTick as l, onMounted as u, onUnmounted as d, ref as f, shallowRef as p, watch as m } from "vue";
|
|
3
|
+
import { autoUpdate as h, computePosition as g, flip as _, offset as v, shift as y } from "@floating-ui/dom";
|
|
4
|
+
//#region \0rolldown/runtime.js
|
|
5
|
+
var b = Object.defineProperty, x = Object.getOwnPropertyDescriptor, S = Object.getOwnPropertyNames, C = Object.prototype.hasOwnProperty, w = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), T = (e, t) => {
|
|
6
|
+
let n = {};
|
|
7
|
+
for (var r in e) b(n, r, {
|
|
8
|
+
get: e[r],
|
|
9
|
+
enumerable: !0
|
|
10
|
+
});
|
|
11
|
+
return t || b(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
12
|
+
}, E = (e, t, n, r) => {
|
|
13
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = S(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !C.call(e, s) && s !== n && b(e, s, {
|
|
14
|
+
get: ((e) => t[e]).bind(null, s),
|
|
15
|
+
enumerable: !(r = x(t, s)) || r.enumerable
|
|
16
|
+
});
|
|
17
|
+
return e;
|
|
18
|
+
}, D = (e, t, n) => (E(e, t, "default"), n && E(n, t, "default"));
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
21
|
+
function ee() {
|
|
22
|
+
return typeof window < "u";
|
|
23
|
+
}
|
|
24
|
+
function O(e) {
|
|
25
|
+
return k(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
26
|
+
}
|
|
27
|
+
function te(e) {
|
|
28
|
+
var t;
|
|
29
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
30
|
+
}
|
|
31
|
+
function k(e) {
|
|
32
|
+
return ee() ? e instanceof Node || e instanceof te(e).Node : !1;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region ../../node_modules/.pnpm/vue-demi@0.14.10_vue@3.5.33_typescript@5.9.3_/node_modules/vue-demi/lib/index.mjs
|
|
36
|
+
var A = /* @__PURE__ */ T({
|
|
37
|
+
Vue: () => e,
|
|
38
|
+
Vue2: () => void 0,
|
|
39
|
+
del: () => ne,
|
|
40
|
+
install: () => M,
|
|
41
|
+
isVue2: () => !1,
|
|
42
|
+
isVue3: () => !0,
|
|
43
|
+
set: () => N
|
|
44
|
+
});
|
|
45
|
+
import * as j from "vue";
|
|
46
|
+
D(A, j);
|
|
47
|
+
function M() {}
|
|
48
|
+
function N(e, t, n) {
|
|
49
|
+
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
50
|
+
}
|
|
51
|
+
function ne(e, t) {
|
|
52
|
+
if (Array.isArray(e)) {
|
|
53
|
+
e.splice(t, 1);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
delete e[t];
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region ../../node_modules/.pnpm/@floating-ui+vue@1.1.9_vue@3.5.33_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
60
|
+
function re(e) {
|
|
61
|
+
return typeof e == "object" && !!e && "$el" in e;
|
|
62
|
+
}
|
|
63
|
+
function P(e) {
|
|
64
|
+
if (re(e)) {
|
|
65
|
+
let t = e.$el;
|
|
66
|
+
return k(t) && O(t) === "#comment" ? null : t;
|
|
67
|
+
}
|
|
68
|
+
return e;
|
|
69
|
+
}
|
|
70
|
+
function F(e) {
|
|
71
|
+
return typeof e == "function" ? e() : (0, A.unref)(e);
|
|
72
|
+
}
|
|
73
|
+
function ie(e) {
|
|
74
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
75
|
+
}
|
|
76
|
+
function I(e, t) {
|
|
77
|
+
let n = ie(e);
|
|
78
|
+
return Math.round(t * n) / n;
|
|
79
|
+
}
|
|
80
|
+
function ae(e, t, n) {
|
|
81
|
+
n === void 0 && (n = {});
|
|
82
|
+
let r = n.whileElementsMounted, i = (0, A.computed)(() => F(n.open) ?? !0), a = (0, A.computed)(() => F(n.middleware)), o = (0, A.computed)(() => F(n.placement) ?? "bottom"), s = (0, A.computed)(() => F(n.strategy) ?? "absolute"), c = (0, A.computed)(() => F(n.transform) ?? !0), l = (0, A.computed)(() => P(e.value)), u = (0, A.computed)(() => P(t.value)), d = (0, A.ref)(0), f = (0, A.ref)(0), p = (0, A.ref)(s.value), m = (0, A.ref)(o.value), h = (0, A.shallowRef)({}), _ = (0, A.ref)(!1), v = (0, A.computed)(() => {
|
|
83
|
+
let e = {
|
|
84
|
+
position: p.value,
|
|
85
|
+
left: "0",
|
|
86
|
+
top: "0"
|
|
87
|
+
};
|
|
88
|
+
if (!u.value) return e;
|
|
89
|
+
let t = I(u.value, d.value), n = I(u.value, f.value);
|
|
90
|
+
return c.value ? {
|
|
91
|
+
...e,
|
|
92
|
+
transform: "translate(" + t + "px, " + n + "px)",
|
|
93
|
+
...ie(u.value) >= 1.5 && { willChange: "transform" }
|
|
94
|
+
} : {
|
|
95
|
+
position: p.value,
|
|
96
|
+
left: t + "px",
|
|
97
|
+
top: n + "px"
|
|
98
|
+
};
|
|
99
|
+
}), y;
|
|
100
|
+
function b() {
|
|
101
|
+
if (l.value == null || u.value == null) return;
|
|
102
|
+
let e = i.value;
|
|
103
|
+
g(l.value, u.value, {
|
|
104
|
+
middleware: a.value,
|
|
105
|
+
placement: o.value,
|
|
106
|
+
strategy: s.value
|
|
107
|
+
}).then((t) => {
|
|
108
|
+
d.value = t.x, f.value = t.y, p.value = t.strategy, m.value = t.placement, h.value = t.middlewareData, _.value = e !== !1;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
function x() {
|
|
112
|
+
typeof y == "function" && (y(), y = void 0);
|
|
113
|
+
}
|
|
114
|
+
function S() {
|
|
115
|
+
if (x(), r === void 0) {
|
|
116
|
+
b();
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (l.value != null && u.value != null) {
|
|
120
|
+
y = r(l.value, u.value, b);
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function C() {
|
|
125
|
+
i.value || (_.value = !1);
|
|
126
|
+
}
|
|
127
|
+
return (0, A.watch)([
|
|
128
|
+
a,
|
|
129
|
+
o,
|
|
130
|
+
s,
|
|
131
|
+
i
|
|
132
|
+
], b, { flush: "sync" }), (0, A.watch)([l, u], S, { flush: "sync" }), (0, A.watch)(i, C, { flush: "sync" }), (0, A.getCurrentScope)() && (0, A.onScopeDispose)(x), {
|
|
133
|
+
x: (0, A.shallowReadonly)(d),
|
|
134
|
+
y: (0, A.shallowReadonly)(f),
|
|
135
|
+
strategy: (0, A.shallowReadonly)(p),
|
|
136
|
+
placement: (0, A.shallowReadonly)(m),
|
|
137
|
+
middlewareData: (0, A.shallowReadonly)(h),
|
|
138
|
+
isPositioned: (0, A.shallowReadonly)(_),
|
|
139
|
+
floatingStyles: v,
|
|
140
|
+
update: b
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region ../ccui/ui/shared/hooks/use-namespace.ts
|
|
145
|
+
function L(e, t, n) {
|
|
146
|
+
let r = e;
|
|
147
|
+
return t && (r += `__${t}`), n && (r += `--${n}`), r;
|
|
148
|
+
}
|
|
149
|
+
function oe(e, t = !1) {
|
|
150
|
+
let n = t ? `.ccui-${e}` : `ccui-${e}`;
|
|
151
|
+
return {
|
|
152
|
+
b: () => L(n),
|
|
153
|
+
e: (e) => e ? L(n, e) : "",
|
|
154
|
+
m: (e) => e ? L(n, "", e) : "",
|
|
155
|
+
em: (e, t) => e && t ? L(n, e, t) : "",
|
|
156
|
+
is: (e) => `is-${e}`
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
(/* @__PURE__ */ w(((e, t) => {
|
|
160
|
+
(function(n, r) {
|
|
161
|
+
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();
|
|
162
|
+
})(e, (function() {
|
|
163
|
+
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 = {
|
|
164
|
+
name: "en",
|
|
165
|
+
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
166
|
+
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
167
|
+
ordinal: function(e) {
|
|
168
|
+
var t = [
|
|
169
|
+
"th",
|
|
170
|
+
"st",
|
|
171
|
+
"nd",
|
|
172
|
+
"rd"
|
|
173
|
+
], n = e % 100;
|
|
174
|
+
return "[" + e + (t[(n - 20) % 10] || t[n] || t[0]) + "]";
|
|
175
|
+
}
|
|
176
|
+
}, _ = function(e, t, n) {
|
|
177
|
+
var r = String(e);
|
|
178
|
+
return !r || r.length >= t ? e : "" + Array(t + 1 - r.length).join(n) + e;
|
|
179
|
+
}, v = {
|
|
180
|
+
s: _,
|
|
181
|
+
z: function(e) {
|
|
182
|
+
var t = -e.utcOffset(), n = Math.abs(t), r = Math.floor(n / 60), i = n % 60;
|
|
183
|
+
return (t <= 0 ? "+" : "-") + _(r, 2, "0") + ":" + _(i, 2, "0");
|
|
184
|
+
},
|
|
185
|
+
m: function e(t, n) {
|
|
186
|
+
if (t.date() < n.date()) return -e(n, t);
|
|
187
|
+
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);
|
|
188
|
+
return +(-(r + (n - i) / (a ? i - o : o - i)) || 0);
|
|
189
|
+
},
|
|
190
|
+
a: function(e) {
|
|
191
|
+
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
192
|
+
},
|
|
193
|
+
p: function(e) {
|
|
194
|
+
return {
|
|
195
|
+
M: l,
|
|
196
|
+
y: d,
|
|
197
|
+
w: c,
|
|
198
|
+
d: s,
|
|
199
|
+
D: f,
|
|
200
|
+
h: o,
|
|
201
|
+
m: a,
|
|
202
|
+
s: i,
|
|
203
|
+
ms: r,
|
|
204
|
+
Q: u
|
|
205
|
+
}[e] || String(e || "").toLowerCase().replace(/s$/, "");
|
|
206
|
+
},
|
|
207
|
+
u: function(e) {
|
|
208
|
+
return e === void 0;
|
|
209
|
+
}
|
|
210
|
+
}, y = "en", b = {};
|
|
211
|
+
b[y] = g;
|
|
212
|
+
var x = "$isDayjsObject", S = function(e) {
|
|
213
|
+
return e instanceof E || !(!e || !e[x]);
|
|
214
|
+
}, C = function e(t, n, r) {
|
|
215
|
+
var i;
|
|
216
|
+
if (!t) return y;
|
|
217
|
+
if (typeof t == "string") {
|
|
218
|
+
var a = t.toLowerCase();
|
|
219
|
+
b[a] && (i = a), n && (b[a] = n, i = a);
|
|
220
|
+
var o = t.split("-");
|
|
221
|
+
if (!i && o.length > 1) return e(o[0]);
|
|
222
|
+
} else {
|
|
223
|
+
var s = t.name;
|
|
224
|
+
b[s] = t, i = s;
|
|
225
|
+
}
|
|
226
|
+
return !r && i && (y = i), i || !r && y;
|
|
227
|
+
}, w = function(e, t) {
|
|
228
|
+
if (S(e)) return e.clone();
|
|
229
|
+
var n = typeof t == "object" ? t : {};
|
|
230
|
+
return n.date = e, n.args = arguments, new E(n);
|
|
231
|
+
}, T = v;
|
|
232
|
+
T.l = C, T.i = S, T.w = function(e, t) {
|
|
233
|
+
return w(e, {
|
|
234
|
+
locale: t.$L,
|
|
235
|
+
utc: t.$u,
|
|
236
|
+
x: t.$x,
|
|
237
|
+
$offset: t.$offset
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
var E = function() {
|
|
241
|
+
function g(e) {
|
|
242
|
+
this.$L = C(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[x] = !0;
|
|
243
|
+
}
|
|
244
|
+
var _ = g.prototype;
|
|
245
|
+
return _.parse = function(e) {
|
|
246
|
+
this.$d = function(e) {
|
|
247
|
+
var t = e.date, n = e.utc;
|
|
248
|
+
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
249
|
+
if (T.u(t)) return /* @__PURE__ */ new Date();
|
|
250
|
+
if (t instanceof Date) return new Date(t);
|
|
251
|
+
if (typeof t == "string" && !/Z$/i.test(t)) {
|
|
252
|
+
var r = t.match(m);
|
|
253
|
+
if (r) {
|
|
254
|
+
var i = r[2] - 1 || 0, a = (r[7] || "0").substring(0, 3);
|
|
255
|
+
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);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return new Date(t);
|
|
259
|
+
}(e), this.init();
|
|
260
|
+
}, _.init = function() {
|
|
261
|
+
var e = this.$d;
|
|
262
|
+
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();
|
|
263
|
+
}, _.$utils = function() {
|
|
264
|
+
return T;
|
|
265
|
+
}, _.isValid = function() {
|
|
266
|
+
return this.$d.toString() !== p;
|
|
267
|
+
}, _.isSame = function(e, t) {
|
|
268
|
+
var n = w(e);
|
|
269
|
+
return this.startOf(t) <= n && n <= this.endOf(t);
|
|
270
|
+
}, _.isAfter = function(e, t) {
|
|
271
|
+
return w(e) < this.startOf(t);
|
|
272
|
+
}, _.isBefore = function(e, t) {
|
|
273
|
+
return this.endOf(t) < w(e);
|
|
274
|
+
}, _.$g = function(e, t, n) {
|
|
275
|
+
return T.u(e) ? this[t] : this.set(n, e);
|
|
276
|
+
}, _.unix = function() {
|
|
277
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
278
|
+
}, _.valueOf = function() {
|
|
279
|
+
return this.$d.getTime();
|
|
280
|
+
}, _.startOf = function(e, t) {
|
|
281
|
+
var n = this, r = !!T.u(t) || t, u = T.p(e), p = function(e, t) {
|
|
282
|
+
var i = T.w(n.$u ? Date.UTC(n.$y, t, e) : new Date(n.$y, t, e), n);
|
|
283
|
+
return r ? i : i.endOf(s);
|
|
284
|
+
}, m = function(e, t) {
|
|
285
|
+
return T.w(n.toDate()[e].apply(n.toDate("s"), (r ? [
|
|
286
|
+
0,
|
|
287
|
+
0,
|
|
288
|
+
0,
|
|
289
|
+
0
|
|
290
|
+
] : [
|
|
291
|
+
23,
|
|
292
|
+
59,
|
|
293
|
+
59,
|
|
294
|
+
999
|
|
295
|
+
]).slice(t)), n);
|
|
296
|
+
}, h = this.$W, g = this.$M, _ = this.$D, v = "set" + (this.$u ? "UTC" : "");
|
|
297
|
+
switch (u) {
|
|
298
|
+
case d: return r ? p(1, 0) : p(31, 11);
|
|
299
|
+
case l: return r ? p(1, g) : p(0, g + 1);
|
|
300
|
+
case c:
|
|
301
|
+
var y = this.$locale().weekStart || 0, b = (h < y ? h + 7 : h) - y;
|
|
302
|
+
return p(r ? _ - b : _ + (6 - b), g);
|
|
303
|
+
case s:
|
|
304
|
+
case f: return m(v + "Hours", 0);
|
|
305
|
+
case o: return m(v + "Minutes", 1);
|
|
306
|
+
case a: return m(v + "Seconds", 2);
|
|
307
|
+
case i: return m(v + "Milliseconds", 3);
|
|
308
|
+
default: return this.clone();
|
|
309
|
+
}
|
|
310
|
+
}, _.endOf = function(e) {
|
|
311
|
+
return this.startOf(e, !1);
|
|
312
|
+
}, _.$set = function(e, t) {
|
|
313
|
+
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;
|
|
314
|
+
if (c === l || c === d) {
|
|
315
|
+
var h = this.clone().set(f, 1);
|
|
316
|
+
h.$d[p](m), h.init(), this.$d = h.set(f, Math.min(this.$D, h.daysInMonth())).$d;
|
|
317
|
+
} else p && this.$d[p](m);
|
|
318
|
+
return this.init(), this;
|
|
319
|
+
}, _.set = function(e, t) {
|
|
320
|
+
return this.clone().$set(e, t);
|
|
321
|
+
}, _.get = function(e) {
|
|
322
|
+
return this[T.p(e)]();
|
|
323
|
+
}, _.add = function(r, u) {
|
|
324
|
+
var f, p = this;
|
|
325
|
+
r = Number(r);
|
|
326
|
+
var m = T.p(u), h = function(e) {
|
|
327
|
+
var t = w(p);
|
|
328
|
+
return T.w(t.date(t.date() + Math.round(e * r)), p);
|
|
329
|
+
};
|
|
330
|
+
if (m === l) return this.set(l, this.$M + r);
|
|
331
|
+
if (m === d) return this.set(d, this.$y + r);
|
|
332
|
+
if (m === s) return h(1);
|
|
333
|
+
if (m === c) return h(7);
|
|
334
|
+
var g = (f = {}, f[a] = t, f[o] = n, f[i] = e, f)[m] || 1, _ = this.$d.getTime() + r * g;
|
|
335
|
+
return T.w(_, this);
|
|
336
|
+
}, _.subtract = function(e, t) {
|
|
337
|
+
return this.add(-1 * e, t);
|
|
338
|
+
}, _.format = function(e) {
|
|
339
|
+
var t = this, n = this.$locale();
|
|
340
|
+
if (!this.isValid()) return n.invalidDate || p;
|
|
341
|
+
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) {
|
|
342
|
+
return e && (e[n] || e(t, r)) || i[n].slice(0, a);
|
|
343
|
+
}, f = function(e) {
|
|
344
|
+
return T.s(a % 12 || 12, e, "0");
|
|
345
|
+
}, m = u || function(e, t, n) {
|
|
346
|
+
var r = e < 12 ? "AM" : "PM";
|
|
347
|
+
return n ? r.toLowerCase() : r;
|
|
348
|
+
};
|
|
349
|
+
return r.replace(h, (function(e, r) {
|
|
350
|
+
return r || function(e) {
|
|
351
|
+
switch (e) {
|
|
352
|
+
case "YY": return String(t.$y).slice(-2);
|
|
353
|
+
case "YYYY": return T.s(t.$y, 4, "0");
|
|
354
|
+
case "M": return s + 1;
|
|
355
|
+
case "MM": return T.s(s + 1, 2, "0");
|
|
356
|
+
case "MMM": return d(n.monthsShort, s, l, 3);
|
|
357
|
+
case "MMMM": return d(l, s);
|
|
358
|
+
case "D": return t.$D;
|
|
359
|
+
case "DD": return T.s(t.$D, 2, "0");
|
|
360
|
+
case "d": return String(t.$W);
|
|
361
|
+
case "dd": return d(n.weekdaysMin, t.$W, c, 2);
|
|
362
|
+
case "ddd": return d(n.weekdaysShort, t.$W, c, 3);
|
|
363
|
+
case "dddd": return c[t.$W];
|
|
364
|
+
case "H": return String(a);
|
|
365
|
+
case "HH": return T.s(a, 2, "0");
|
|
366
|
+
case "h": return f(1);
|
|
367
|
+
case "hh": return f(2);
|
|
368
|
+
case "a": return m(a, o, !0);
|
|
369
|
+
case "A": return m(a, o, !1);
|
|
370
|
+
case "m": return String(o);
|
|
371
|
+
case "mm": return T.s(o, 2, "0");
|
|
372
|
+
case "s": return String(t.$s);
|
|
373
|
+
case "ss": return T.s(t.$s, 2, "0");
|
|
374
|
+
case "SSS": return T.s(t.$ms, 3, "0");
|
|
375
|
+
case "Z": return i;
|
|
376
|
+
}
|
|
377
|
+
return null;
|
|
378
|
+
}(e) || i.replace(":", "");
|
|
379
|
+
}));
|
|
380
|
+
}, _.utcOffset = function() {
|
|
381
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
382
|
+
}, _.diff = function(r, f, p) {
|
|
383
|
+
var m, h = this, g = T.p(f), _ = w(r), v = (_.utcOffset() - this.utcOffset()) * t, y = this - _, b = function() {
|
|
384
|
+
return T.m(h, _);
|
|
385
|
+
};
|
|
386
|
+
switch (g) {
|
|
387
|
+
case d:
|
|
388
|
+
m = b() / 12;
|
|
389
|
+
break;
|
|
390
|
+
case l:
|
|
391
|
+
m = b();
|
|
392
|
+
break;
|
|
393
|
+
case u:
|
|
394
|
+
m = b() / 3;
|
|
395
|
+
break;
|
|
396
|
+
case c:
|
|
397
|
+
m = (y - v) / 6048e5;
|
|
398
|
+
break;
|
|
399
|
+
case s:
|
|
400
|
+
m = (y - v) / 864e5;
|
|
401
|
+
break;
|
|
402
|
+
case o:
|
|
403
|
+
m = y / n;
|
|
404
|
+
break;
|
|
405
|
+
case a:
|
|
406
|
+
m = y / t;
|
|
407
|
+
break;
|
|
408
|
+
case i:
|
|
409
|
+
m = y / e;
|
|
410
|
+
break;
|
|
411
|
+
default: m = y;
|
|
412
|
+
}
|
|
413
|
+
return p ? m : T.a(m);
|
|
414
|
+
}, _.daysInMonth = function() {
|
|
415
|
+
return this.endOf(l).$D;
|
|
416
|
+
}, _.$locale = function() {
|
|
417
|
+
return b[this.$L];
|
|
418
|
+
}, _.locale = function(e, t) {
|
|
419
|
+
if (!e) return this.$L;
|
|
420
|
+
var n = this.clone(), r = C(e, t, !0);
|
|
421
|
+
return r && (n.$L = r), n;
|
|
422
|
+
}, _.clone = function() {
|
|
423
|
+
return T.w(this.$d, this);
|
|
424
|
+
}, _.toDate = function() {
|
|
425
|
+
return new Date(this.valueOf());
|
|
426
|
+
}, _.toJSON = function() {
|
|
427
|
+
return this.isValid() ? this.toISOString() : null;
|
|
428
|
+
}, _.toISOString = function() {
|
|
429
|
+
return this.$d.toISOString();
|
|
430
|
+
}, _.toString = function() {
|
|
431
|
+
return this.$d.toUTCString();
|
|
432
|
+
}, g;
|
|
433
|
+
}(), D = E.prototype;
|
|
434
|
+
return w.prototype = D, [
|
|
435
|
+
["$ms", r],
|
|
436
|
+
["$s", i],
|
|
437
|
+
["$m", a],
|
|
438
|
+
["$H", o],
|
|
439
|
+
["$W", s],
|
|
440
|
+
["$M", l],
|
|
441
|
+
["$y", d],
|
|
442
|
+
["$D", f]
|
|
443
|
+
].forEach((function(e) {
|
|
444
|
+
D[e[1]] = function(t) {
|
|
445
|
+
return this.$g(t, e[0], e[1]);
|
|
446
|
+
};
|
|
447
|
+
})), w.extend = function(e, t) {
|
|
448
|
+
return e.$i ||= (e(t, E, w), !0), w;
|
|
449
|
+
}, w.locale = C, w.isDayjs = S, w.unix = function(e) {
|
|
450
|
+
return w(1e3 * e);
|
|
451
|
+
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
452
|
+
}));
|
|
453
|
+
})))();
|
|
454
|
+
//#endregion
|
|
455
|
+
//#region ../ccui/ui/locale/zh-CN.ts
|
|
456
|
+
var R = {
|
|
457
|
+
locale: "zh-CN",
|
|
458
|
+
Modal: {
|
|
459
|
+
okText: "确 定",
|
|
460
|
+
cancelText: "取 消",
|
|
461
|
+
justOkText: "知道了"
|
|
462
|
+
},
|
|
463
|
+
Popconfirm: {
|
|
464
|
+
okText: "确 定",
|
|
465
|
+
cancelText: "取 消"
|
|
466
|
+
},
|
|
467
|
+
Empty: { description: "暂无数据" },
|
|
468
|
+
AutoComplete: { notFoundContent: "暂无数据" },
|
|
469
|
+
Mentions: { notFoundContent: "暂无数据" },
|
|
470
|
+
Cascader: { notFoundContent: "暂无数据" },
|
|
471
|
+
TreeSelect: {
|
|
472
|
+
notFoundContent: "暂无数据",
|
|
473
|
+
searchPlaceholder: "搜索"
|
|
474
|
+
},
|
|
475
|
+
Select: { notFoundContent: "暂无数据" },
|
|
476
|
+
Pagination: {
|
|
477
|
+
itemsPerPage: "条/页",
|
|
478
|
+
jumpTo: "跳至",
|
|
479
|
+
page: "页",
|
|
480
|
+
prevPage: "上一页",
|
|
481
|
+
nextPage: "下一页",
|
|
482
|
+
total: "共 {total} 条",
|
|
483
|
+
pagination: "分页"
|
|
484
|
+
},
|
|
485
|
+
Image: {
|
|
486
|
+
loading: "加载中",
|
|
487
|
+
error: "加载失败"
|
|
488
|
+
},
|
|
489
|
+
DatePicker: {
|
|
490
|
+
placeholder: "请选择日期",
|
|
491
|
+
rangePlaceholder: ["开始日期", "结束日期"],
|
|
492
|
+
timePlaceholder: "请选择时间",
|
|
493
|
+
weekdaysShort: [
|
|
494
|
+
"日",
|
|
495
|
+
"一",
|
|
496
|
+
"二",
|
|
497
|
+
"三",
|
|
498
|
+
"四",
|
|
499
|
+
"五",
|
|
500
|
+
"六"
|
|
501
|
+
],
|
|
502
|
+
panelLabelFormat: "YYYY 年 M 月",
|
|
503
|
+
monthNamesShort: [
|
|
504
|
+
"1 月",
|
|
505
|
+
"2 月",
|
|
506
|
+
"3 月",
|
|
507
|
+
"4 月",
|
|
508
|
+
"5 月",
|
|
509
|
+
"6 月",
|
|
510
|
+
"7 月",
|
|
511
|
+
"8 月",
|
|
512
|
+
"9 月",
|
|
513
|
+
"10 月",
|
|
514
|
+
"11 月",
|
|
515
|
+
"12 月"
|
|
516
|
+
],
|
|
517
|
+
quarterNames: [
|
|
518
|
+
"一季度",
|
|
519
|
+
"二季度",
|
|
520
|
+
"三季度",
|
|
521
|
+
"四季度"
|
|
522
|
+
],
|
|
523
|
+
weekFormat: "{weekYear} 年第 {weekNumber} 周",
|
|
524
|
+
weekHeader: "周",
|
|
525
|
+
now: "此刻",
|
|
526
|
+
ok: "确定",
|
|
527
|
+
prevYearLabel: "前一年",
|
|
528
|
+
prevMonthLabel: "上个月",
|
|
529
|
+
nextYearLabel: "后一年",
|
|
530
|
+
nextMonthLabel: "下个月",
|
|
531
|
+
clearLabel: "清除"
|
|
532
|
+
},
|
|
533
|
+
Calendar: {
|
|
534
|
+
weekdaysShort: [
|
|
535
|
+
"日",
|
|
536
|
+
"一",
|
|
537
|
+
"二",
|
|
538
|
+
"三",
|
|
539
|
+
"四",
|
|
540
|
+
"五",
|
|
541
|
+
"六"
|
|
542
|
+
],
|
|
543
|
+
prevMonthLabel: "上个月",
|
|
544
|
+
nextMonthLabel: "下个月",
|
|
545
|
+
todayLabel: "今天",
|
|
546
|
+
monthFormat: "YYYY 年 M 月"
|
|
547
|
+
}
|
|
548
|
+
}, z = Symbol("ccui-config");
|
|
549
|
+
//#endregion
|
|
550
|
+
//#region ../ccui/ui/config-provider/src/config-provider.tsx
|
|
551
|
+
function se() {
|
|
552
|
+
return c(z, {
|
|
553
|
+
prefixCls: "ccui",
|
|
554
|
+
componentSize: "middle",
|
|
555
|
+
locale: R,
|
|
556
|
+
direction: "ltr",
|
|
557
|
+
theme: void 0,
|
|
558
|
+
iconPrefixCls: "ccui-icon"
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
//#endregion
|
|
562
|
+
//#region ../ccui/ui/form/src/form-types.ts
|
|
563
|
+
var ce = Symbol("ccuiFormItem"), B = /^[a-z0-9]+(-[a-z0-9]+)*$/, V = (e, t, n, r = "") => {
|
|
564
|
+
let i = e.split(":");
|
|
565
|
+
if (e.slice(0, 1) === "@") {
|
|
566
|
+
if (i.length < 2 || i.length > 3) return null;
|
|
567
|
+
r = i.shift().slice(1);
|
|
568
|
+
}
|
|
569
|
+
if (i.length > 3 || !i.length) return null;
|
|
570
|
+
if (i.length > 1) {
|
|
571
|
+
let e = i.pop(), n = i.pop(), a = {
|
|
572
|
+
provider: i.length > 0 ? i[0] : r,
|
|
573
|
+
prefix: n,
|
|
574
|
+
name: e
|
|
575
|
+
};
|
|
576
|
+
return t && !H(a) ? null : a;
|
|
577
|
+
}
|
|
578
|
+
let a = i[0], o = a.split("-");
|
|
579
|
+
if (o.length > 1) {
|
|
580
|
+
let e = {
|
|
581
|
+
provider: r,
|
|
582
|
+
prefix: o.shift(),
|
|
583
|
+
name: o.join("-")
|
|
584
|
+
};
|
|
585
|
+
return t && !H(e) ? null : e;
|
|
586
|
+
}
|
|
587
|
+
if (n && r === "") {
|
|
588
|
+
let e = {
|
|
589
|
+
provider: r,
|
|
590
|
+
prefix: "",
|
|
591
|
+
name: a
|
|
592
|
+
};
|
|
593
|
+
return t && !H(e, n) ? null : e;
|
|
594
|
+
}
|
|
595
|
+
return null;
|
|
596
|
+
}, H = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
|
|
597
|
+
function le(e, t) {
|
|
598
|
+
let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
|
|
599
|
+
function a(e) {
|
|
600
|
+
if (n[e]) return i[e] = [];
|
|
601
|
+
if (!(e in i)) {
|
|
602
|
+
i[e] = null;
|
|
603
|
+
let t = r[e] && r[e].parent, n = t && a(t);
|
|
604
|
+
n && (i[e] = [t].concat(n));
|
|
605
|
+
}
|
|
606
|
+
return i[e];
|
|
607
|
+
}
|
|
608
|
+
return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
|
|
609
|
+
}
|
|
610
|
+
var U = Object.freeze({
|
|
611
|
+
left: 0,
|
|
612
|
+
top: 0,
|
|
613
|
+
width: 16,
|
|
614
|
+
height: 16
|
|
615
|
+
}), W = Object.freeze({
|
|
616
|
+
rotate: 0,
|
|
617
|
+
vFlip: !1,
|
|
618
|
+
hFlip: !1
|
|
619
|
+
}), G = Object.freeze({
|
|
620
|
+
...U,
|
|
621
|
+
...W
|
|
622
|
+
}), K = Object.freeze({
|
|
623
|
+
...G,
|
|
624
|
+
body: "",
|
|
625
|
+
hidden: !1
|
|
626
|
+
});
|
|
627
|
+
function ue(e, t) {
|
|
628
|
+
let n = {};
|
|
629
|
+
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
|
630
|
+
let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
631
|
+
return r && (n.rotate = r), n;
|
|
632
|
+
}
|
|
633
|
+
function de(e, t) {
|
|
634
|
+
let n = ue(e, t);
|
|
635
|
+
for (let r in K) r in W ? r in e && !(r in n) && (n[r] = W[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
|
636
|
+
return n;
|
|
637
|
+
}
|
|
638
|
+
function fe(e, t, n) {
|
|
639
|
+
let r = e.icons, i = e.aliases || Object.create(null), a = {};
|
|
640
|
+
function o(e) {
|
|
641
|
+
a = de(r[e] || i[e], a);
|
|
642
|
+
}
|
|
643
|
+
return o(t), n.forEach(o), de(e, a);
|
|
644
|
+
}
|
|
645
|
+
function pe(e, t) {
|
|
646
|
+
let n = [];
|
|
647
|
+
if (typeof e != "object" || typeof e.icons != "object") return n;
|
|
648
|
+
e.not_found instanceof Array && e.not_found.forEach((e) => {
|
|
649
|
+
t(e, null), n.push(e);
|
|
650
|
+
});
|
|
651
|
+
let r = le(e);
|
|
652
|
+
for (let i in r) {
|
|
653
|
+
let a = r[i];
|
|
654
|
+
a && (t(i, fe(e, i, a)), n.push(i));
|
|
655
|
+
}
|
|
656
|
+
return n;
|
|
657
|
+
}
|
|
658
|
+
var me = {
|
|
659
|
+
provider: "",
|
|
660
|
+
aliases: {},
|
|
661
|
+
not_found: {},
|
|
662
|
+
...U
|
|
663
|
+
};
|
|
664
|
+
function q(e, t) {
|
|
665
|
+
for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
|
|
666
|
+
return !0;
|
|
667
|
+
}
|
|
668
|
+
function he(e) {
|
|
669
|
+
if (typeof e != "object" || !e) return null;
|
|
670
|
+
let t = e;
|
|
671
|
+
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !q(e, me)) return null;
|
|
672
|
+
let n = t.icons;
|
|
673
|
+
for (let e in n) {
|
|
674
|
+
let t = n[e];
|
|
675
|
+
if (!e || typeof t.body != "string" || !q(t, K)) return null;
|
|
676
|
+
}
|
|
677
|
+
let r = t.aliases || Object.create(null);
|
|
678
|
+
for (let e in r) {
|
|
679
|
+
let t = r[e], i = t.parent;
|
|
680
|
+
if (!e || typeof i != "string" || !n[i] && !r[i] || !q(t, K)) return null;
|
|
681
|
+
}
|
|
682
|
+
return t;
|
|
683
|
+
}
|
|
684
|
+
var ge = Object.create(null);
|
|
685
|
+
function _e(e, t) {
|
|
686
|
+
return {
|
|
687
|
+
provider: e,
|
|
688
|
+
prefix: t,
|
|
689
|
+
icons: Object.create(null),
|
|
690
|
+
missing: /* @__PURE__ */ new Set()
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
function J(e, t) {
|
|
694
|
+
let n = ge[e] || (ge[e] = Object.create(null));
|
|
695
|
+
return n[t] || (n[t] = _e(e, t));
|
|
696
|
+
}
|
|
697
|
+
function ve(e, t) {
|
|
698
|
+
return he(t) ? pe(t, (t, n) => {
|
|
699
|
+
n ? e.icons[t] = n : e.missing.add(t);
|
|
700
|
+
}) : [];
|
|
701
|
+
}
|
|
702
|
+
function ye(e, t, n) {
|
|
703
|
+
try {
|
|
704
|
+
if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
|
|
705
|
+
} catch {}
|
|
706
|
+
return !1;
|
|
707
|
+
}
|
|
708
|
+
var Y = !1;
|
|
709
|
+
function be(e) {
|
|
710
|
+
return typeof e == "boolean" && (Y = e), Y;
|
|
711
|
+
}
|
|
712
|
+
function xe(e) {
|
|
713
|
+
let t = typeof e == "string" ? V(e, !0, Y) : e;
|
|
714
|
+
if (t) {
|
|
715
|
+
let e = J(t.provider, t.prefix), n = t.name;
|
|
716
|
+
return e.icons[n] || (e.missing.has(n) ? null : void 0);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
function Se(e, t) {
|
|
720
|
+
let n = V(e, !0, Y);
|
|
721
|
+
if (!n) return !1;
|
|
722
|
+
let r = J(n.provider, n.prefix);
|
|
723
|
+
return t ? ye(r, n.name, t) : (r.missing.add(n.name), !0);
|
|
724
|
+
}
|
|
725
|
+
function Ce(e, t) {
|
|
726
|
+
if (typeof e != "object") return !1;
|
|
727
|
+
if (typeof t != "string" && (t = e.provider || ""), Y && !t && !e.prefix) {
|
|
728
|
+
let t = !1;
|
|
729
|
+
return he(e) && (e.prefix = "", pe(e, (e, n) => {
|
|
730
|
+
Se(e, n) && (t = !0);
|
|
731
|
+
})), t;
|
|
732
|
+
}
|
|
733
|
+
let n = e.prefix;
|
|
734
|
+
return H({
|
|
735
|
+
prefix: n,
|
|
736
|
+
name: "a"
|
|
737
|
+
}) ? !!ve(J(t, n), e) : !1;
|
|
738
|
+
}
|
|
739
|
+
var we = Object.freeze({
|
|
740
|
+
width: null,
|
|
741
|
+
height: null
|
|
742
|
+
}), Te = Object.freeze({
|
|
743
|
+
...we,
|
|
744
|
+
...W
|
|
745
|
+
}), Ee = /(-?[0-9.]*[0-9]+[0-9.]*)/g, De = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
746
|
+
function Oe(e, t, n) {
|
|
747
|
+
if (t === 1) return e;
|
|
748
|
+
if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
|
|
749
|
+
if (typeof e != "string") return e;
|
|
750
|
+
let r = e.split(Ee);
|
|
751
|
+
if (r === null || !r.length) return e;
|
|
752
|
+
let i = [], a = r.shift(), o = De.test(a);
|
|
753
|
+
for (;;) {
|
|
754
|
+
if (o) {
|
|
755
|
+
let e = parseFloat(a);
|
|
756
|
+
isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
|
|
757
|
+
} else i.push(a);
|
|
758
|
+
if (a = r.shift(), a === void 0) return i.join("");
|
|
759
|
+
o = !o;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
function ke(e, t = "defs") {
|
|
763
|
+
let n = "", r = e.indexOf("<" + t);
|
|
764
|
+
for (; r >= 0;) {
|
|
765
|
+
let i = e.indexOf(">", r), a = e.indexOf("</" + t);
|
|
766
|
+
if (i === -1 || a === -1) break;
|
|
767
|
+
let o = e.indexOf(">", a);
|
|
768
|
+
if (o === -1) break;
|
|
769
|
+
n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
|
|
770
|
+
}
|
|
771
|
+
return {
|
|
772
|
+
defs: n,
|
|
773
|
+
content: e
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
function Ae(e, t) {
|
|
777
|
+
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
778
|
+
}
|
|
779
|
+
function je(e, t, n) {
|
|
780
|
+
let r = ke(e);
|
|
781
|
+
return Ae(r.defs, t + r.content + n);
|
|
782
|
+
}
|
|
783
|
+
var Me = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
784
|
+
function Ne(e, t) {
|
|
785
|
+
let n = {
|
|
786
|
+
...G,
|
|
787
|
+
...e
|
|
788
|
+
}, r = {
|
|
789
|
+
...Te,
|
|
790
|
+
...t
|
|
791
|
+
}, i = {
|
|
792
|
+
left: n.left,
|
|
793
|
+
top: n.top,
|
|
794
|
+
width: n.width,
|
|
795
|
+
height: n.height
|
|
796
|
+
}, a = n.body;
|
|
797
|
+
[n, r].forEach((e) => {
|
|
798
|
+
let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
|
|
799
|
+
n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
|
|
800
|
+
let s;
|
|
801
|
+
switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
|
|
802
|
+
case 1:
|
|
803
|
+
s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
|
|
804
|
+
break;
|
|
805
|
+
case 2:
|
|
806
|
+
t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
|
|
807
|
+
break;
|
|
808
|
+
case 3:
|
|
809
|
+
s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
|
|
810
|
+
break;
|
|
811
|
+
}
|
|
812
|
+
o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = je(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
|
|
813
|
+
});
|
|
814
|
+
let o = r.width, s = r.height, c = i.width, l = i.height, u, d;
|
|
815
|
+
o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = Oe(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? Oe(u, l / c) : s === "auto" ? l : s);
|
|
816
|
+
let f = {}, p = (e, t) => {
|
|
817
|
+
Me(t) || (f[e] = t.toString());
|
|
818
|
+
};
|
|
819
|
+
p("width", u), p("height", d);
|
|
820
|
+
let m = [
|
|
821
|
+
i.left,
|
|
822
|
+
i.top,
|
|
823
|
+
c,
|
|
824
|
+
l
|
|
825
|
+
];
|
|
826
|
+
return f.viewBox = m.join(" "), {
|
|
827
|
+
attributes: f,
|
|
828
|
+
viewBox: m,
|
|
829
|
+
body: a
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
var Pe = /\sid="(\S+)"/g, Fe = /* @__PURE__ */ new Map();
|
|
833
|
+
function Ie(e) {
|
|
834
|
+
e = e.replace(/[0-9]+$/, "") || "a";
|
|
835
|
+
let t = Fe.get(e) || 0;
|
|
836
|
+
return Fe.set(e, t + 1), t ? `${e}${t}` : e;
|
|
837
|
+
}
|
|
838
|
+
function Le(e) {
|
|
839
|
+
let t = [], n;
|
|
840
|
+
for (; n = Pe.exec(e);) t.push(n[1]);
|
|
841
|
+
if (!t.length) return e;
|
|
842
|
+
let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
843
|
+
return t.forEach((t) => {
|
|
844
|
+
let n = Ie(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
845
|
+
e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
|
|
846
|
+
}), e = e.replace(new RegExp(r, "g"), ""), e;
|
|
847
|
+
}
|
|
848
|
+
var Re = Object.create(null);
|
|
849
|
+
function ze(e, t) {
|
|
850
|
+
Re[e] = t;
|
|
851
|
+
}
|
|
852
|
+
function Be(e) {
|
|
853
|
+
return Re[e] || Re[""];
|
|
854
|
+
}
|
|
855
|
+
function Ve(e) {
|
|
856
|
+
let t;
|
|
857
|
+
if (typeof e.resources == "string") t = [e.resources];
|
|
858
|
+
else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
|
|
859
|
+
return {
|
|
860
|
+
resources: t,
|
|
861
|
+
path: e.path || "/",
|
|
862
|
+
maxURL: e.maxURL || 500,
|
|
863
|
+
rotate: e.rotate || 750,
|
|
864
|
+
timeout: e.timeout || 5e3,
|
|
865
|
+
random: e.random === !0,
|
|
866
|
+
index: e.index || 0,
|
|
867
|
+
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
for (var He = Object.create(null), X = ["https://api.simplesvg.com", "https://api.unisvg.com"], Ue = []; X.length > 0;) X.length === 1 || Math.random() > .5 ? Ue.push(X.shift()) : Ue.push(X.pop());
|
|
871
|
+
He[""] = Ve({ resources: ["https://api.iconify.design"].concat(Ue) });
|
|
872
|
+
function We(e, t) {
|
|
873
|
+
let n = Ve(t);
|
|
874
|
+
return n === null ? !1 : (He[e] = n, !0);
|
|
875
|
+
}
|
|
876
|
+
function Ge(e) {
|
|
877
|
+
return He[e];
|
|
878
|
+
}
|
|
879
|
+
var Ke = (() => {
|
|
880
|
+
let e;
|
|
881
|
+
try {
|
|
882
|
+
if (e = fetch, typeof e == "function") return e;
|
|
883
|
+
} catch {}
|
|
884
|
+
})();
|
|
885
|
+
function qe(e, t) {
|
|
886
|
+
let n = Ge(e);
|
|
887
|
+
if (!n) return 0;
|
|
888
|
+
let r;
|
|
889
|
+
if (!n.maxURL) r = 0;
|
|
890
|
+
else {
|
|
891
|
+
let e = 0;
|
|
892
|
+
n.resources.forEach((t) => {
|
|
893
|
+
e = Math.max(e, t.length);
|
|
894
|
+
});
|
|
895
|
+
let i = t + ".json?icons=";
|
|
896
|
+
r = n.maxURL - e - n.path.length - i.length;
|
|
897
|
+
}
|
|
898
|
+
return r;
|
|
899
|
+
}
|
|
900
|
+
function Je(e) {
|
|
901
|
+
return e === 404;
|
|
902
|
+
}
|
|
903
|
+
var Ye = (e, t, n) => {
|
|
904
|
+
let r = [], i = qe(e, t), a = "icons", o = {
|
|
905
|
+
type: a,
|
|
906
|
+
provider: e,
|
|
907
|
+
prefix: t,
|
|
908
|
+
icons: []
|
|
909
|
+
}, s = 0;
|
|
910
|
+
return n.forEach((n, c) => {
|
|
911
|
+
s += n.length + 1, s >= i && c > 0 && (r.push(o), o = {
|
|
912
|
+
type: a,
|
|
913
|
+
provider: e,
|
|
914
|
+
prefix: t,
|
|
915
|
+
icons: []
|
|
916
|
+
}, s = n.length), o.icons.push(n);
|
|
917
|
+
}), r.push(o), r;
|
|
918
|
+
};
|
|
919
|
+
function Xe(e) {
|
|
920
|
+
if (typeof e == "string") {
|
|
921
|
+
let t = Ge(e);
|
|
922
|
+
if (t) return t.path;
|
|
923
|
+
}
|
|
924
|
+
return "/";
|
|
925
|
+
}
|
|
926
|
+
var Ze = {
|
|
927
|
+
prepare: Ye,
|
|
928
|
+
send: (e, t, n) => {
|
|
929
|
+
if (!Ke) {
|
|
930
|
+
n("abort", 424);
|
|
931
|
+
return;
|
|
932
|
+
}
|
|
933
|
+
let r = Xe(t.provider);
|
|
934
|
+
switch (t.type) {
|
|
935
|
+
case "icons": {
|
|
936
|
+
let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
|
|
937
|
+
r += e + ".json?" + i.toString();
|
|
938
|
+
break;
|
|
939
|
+
}
|
|
940
|
+
case "custom": {
|
|
941
|
+
let e = t.uri;
|
|
942
|
+
r += e.slice(0, 1) === "/" ? e.slice(1) : e;
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
default:
|
|
946
|
+
n("abort", 400);
|
|
947
|
+
return;
|
|
948
|
+
}
|
|
949
|
+
let i = 503;
|
|
950
|
+
Ke(e + r).then((e) => {
|
|
951
|
+
let t = e.status;
|
|
952
|
+
if (t !== 200) {
|
|
953
|
+
setTimeout(() => {
|
|
954
|
+
n(Je(t) ? "abort" : "next", t);
|
|
955
|
+
});
|
|
956
|
+
return;
|
|
957
|
+
}
|
|
958
|
+
return i = 501, e.json();
|
|
959
|
+
}).then((e) => {
|
|
960
|
+
if (typeof e != "object" || !e) {
|
|
961
|
+
setTimeout(() => {
|
|
962
|
+
e === 404 ? n("abort", e) : n("next", i);
|
|
963
|
+
});
|
|
964
|
+
return;
|
|
965
|
+
}
|
|
966
|
+
setTimeout(() => {
|
|
967
|
+
n("success", e);
|
|
968
|
+
});
|
|
969
|
+
}).catch(() => {
|
|
970
|
+
n("next", i);
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
};
|
|
974
|
+
function Qe(e, t) {
|
|
975
|
+
e.forEach((e) => {
|
|
976
|
+
let n = e.loaderCallbacks;
|
|
977
|
+
n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
function $e(e) {
|
|
981
|
+
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
982
|
+
e.pendingCallbacksFlag = !1;
|
|
983
|
+
let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
984
|
+
if (!t.length) return;
|
|
985
|
+
let n = !1, r = e.provider, i = e.prefix;
|
|
986
|
+
t.forEach((t) => {
|
|
987
|
+
let a = t.icons, o = a.pending.length;
|
|
988
|
+
a.pending = a.pending.filter((t) => {
|
|
989
|
+
if (t.prefix !== i) return !0;
|
|
990
|
+
let o = t.name;
|
|
991
|
+
if (e.icons[o]) a.loaded.push({
|
|
992
|
+
provider: r,
|
|
993
|
+
prefix: i,
|
|
994
|
+
name: o
|
|
995
|
+
});
|
|
996
|
+
else if (e.missing.has(o)) a.missing.push({
|
|
997
|
+
provider: r,
|
|
998
|
+
prefix: i,
|
|
999
|
+
name: o
|
|
1000
|
+
});
|
|
1001
|
+
else return n = !0, !0;
|
|
1002
|
+
return !1;
|
|
1003
|
+
}), a.pending.length !== o && (n || Qe([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
|
|
1004
|
+
});
|
|
1005
|
+
}));
|
|
1006
|
+
}
|
|
1007
|
+
var et = 0;
|
|
1008
|
+
function tt(e, t, n) {
|
|
1009
|
+
let r = et++, i = Qe.bind(null, n, r);
|
|
1010
|
+
if (!t.pending.length) return i;
|
|
1011
|
+
let a = {
|
|
1012
|
+
id: r,
|
|
1013
|
+
icons: t,
|
|
1014
|
+
callback: e,
|
|
1015
|
+
abort: i
|
|
1016
|
+
};
|
|
1017
|
+
return n.forEach((e) => {
|
|
1018
|
+
(e.loaderCallbacks ||= []).push(a);
|
|
1019
|
+
}), i;
|
|
1020
|
+
}
|
|
1021
|
+
function nt(e) {
|
|
1022
|
+
let t = {
|
|
1023
|
+
loaded: [],
|
|
1024
|
+
missing: [],
|
|
1025
|
+
pending: []
|
|
1026
|
+
}, n = Object.create(null);
|
|
1027
|
+
e.sort((e, t) => e.provider === t.provider ? e.prefix === t.prefix ? e.name.localeCompare(t.name) : e.prefix.localeCompare(t.prefix) : e.provider.localeCompare(t.provider));
|
|
1028
|
+
let r = {
|
|
1029
|
+
provider: "",
|
|
1030
|
+
prefix: "",
|
|
1031
|
+
name: ""
|
|
1032
|
+
};
|
|
1033
|
+
return e.forEach((e) => {
|
|
1034
|
+
if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
|
|
1035
|
+
r = e;
|
|
1036
|
+
let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] = J(i, a)), l;
|
|
1037
|
+
l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending;
|
|
1038
|
+
let u = {
|
|
1039
|
+
provider: i,
|
|
1040
|
+
prefix: a,
|
|
1041
|
+
name: o
|
|
1042
|
+
};
|
|
1043
|
+
l.push(u);
|
|
1044
|
+
}), t;
|
|
1045
|
+
}
|
|
1046
|
+
function rt(e, t = !0, n = !1) {
|
|
1047
|
+
let r = [];
|
|
1048
|
+
return e.forEach((e) => {
|
|
1049
|
+
let i = typeof e == "string" ? V(e, t, n) : e;
|
|
1050
|
+
i && r.push(i);
|
|
1051
|
+
}), r;
|
|
1052
|
+
}
|
|
1053
|
+
var it = {
|
|
1054
|
+
resources: [],
|
|
1055
|
+
index: 0,
|
|
1056
|
+
timeout: 2e3,
|
|
1057
|
+
rotate: 750,
|
|
1058
|
+
random: !1,
|
|
1059
|
+
dataAfterTimeout: !1
|
|
1060
|
+
};
|
|
1061
|
+
function at(e, t, n, r) {
|
|
1062
|
+
let i = e.resources.length, a = e.random ? Math.floor(Math.random() * i) : e.index, o;
|
|
1063
|
+
if (e.random) {
|
|
1064
|
+
let t = e.resources.slice(0);
|
|
1065
|
+
for (o = []; t.length > 1;) {
|
|
1066
|
+
let e = Math.floor(Math.random() * t.length);
|
|
1067
|
+
o.push(t[e]), t = t.slice(0, e).concat(t.slice(e + 1));
|
|
1068
|
+
}
|
|
1069
|
+
o = o.concat(t);
|
|
1070
|
+
} else o = e.resources.slice(a).concat(e.resources.slice(0, a));
|
|
1071
|
+
let s = Date.now(), c = "pending", l = 0, u, d = null, f = [], p = [];
|
|
1072
|
+
typeof r == "function" && p.push(r);
|
|
1073
|
+
function m() {
|
|
1074
|
+
d &&= (clearTimeout(d), null);
|
|
1075
|
+
}
|
|
1076
|
+
function h() {
|
|
1077
|
+
c === "pending" && (c = "aborted"), m(), f.forEach((e) => {
|
|
1078
|
+
e.status === "pending" && (e.status = "aborted");
|
|
1079
|
+
}), f = [];
|
|
1080
|
+
}
|
|
1081
|
+
function g(e, t) {
|
|
1082
|
+
t && (p = []), typeof e == "function" && p.push(e);
|
|
1083
|
+
}
|
|
1084
|
+
function _() {
|
|
1085
|
+
return {
|
|
1086
|
+
startTime: s,
|
|
1087
|
+
payload: t,
|
|
1088
|
+
status: c,
|
|
1089
|
+
queriesSent: l,
|
|
1090
|
+
queriesPending: f.length,
|
|
1091
|
+
subscribe: g,
|
|
1092
|
+
abort: h
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
function v() {
|
|
1096
|
+
c = "failed", p.forEach((e) => {
|
|
1097
|
+
e(void 0, u);
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
function y() {
|
|
1101
|
+
f.forEach((e) => {
|
|
1102
|
+
e.status === "pending" && (e.status = "aborted");
|
|
1103
|
+
}), f = [];
|
|
1104
|
+
}
|
|
1105
|
+
function b(t, n, r) {
|
|
1106
|
+
let i = n !== "success";
|
|
1107
|
+
switch (f = f.filter((e) => e !== t), c) {
|
|
1108
|
+
case "pending": break;
|
|
1109
|
+
case "failed":
|
|
1110
|
+
if (i || !e.dataAfterTimeout) return;
|
|
1111
|
+
break;
|
|
1112
|
+
default: return;
|
|
1113
|
+
}
|
|
1114
|
+
if (n === "abort") {
|
|
1115
|
+
u = r, v();
|
|
1116
|
+
return;
|
|
1117
|
+
}
|
|
1118
|
+
if (i) {
|
|
1119
|
+
u = r, f.length || (o.length ? x() : v());
|
|
1120
|
+
return;
|
|
1121
|
+
}
|
|
1122
|
+
if (m(), y(), !e.random) {
|
|
1123
|
+
let n = e.resources.indexOf(t.resource);
|
|
1124
|
+
n !== -1 && n !== e.index && (e.index = n);
|
|
1125
|
+
}
|
|
1126
|
+
c = "completed", p.forEach((e) => {
|
|
1127
|
+
e(r);
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
function x() {
|
|
1131
|
+
if (c !== "pending") return;
|
|
1132
|
+
m();
|
|
1133
|
+
let r = o.shift();
|
|
1134
|
+
if (r === void 0) {
|
|
1135
|
+
if (f.length) {
|
|
1136
|
+
d = setTimeout(() => {
|
|
1137
|
+
m(), c === "pending" && (y(), v());
|
|
1138
|
+
}, e.timeout);
|
|
1139
|
+
return;
|
|
1140
|
+
}
|
|
1141
|
+
v();
|
|
1142
|
+
return;
|
|
1143
|
+
}
|
|
1144
|
+
let i = {
|
|
1145
|
+
status: "pending",
|
|
1146
|
+
resource: r,
|
|
1147
|
+
callback: (e, t) => {
|
|
1148
|
+
b(i, e, t);
|
|
1149
|
+
}
|
|
1150
|
+
};
|
|
1151
|
+
f.push(i), l++, d = setTimeout(x, e.rotate), n(r, t, i.callback);
|
|
1152
|
+
}
|
|
1153
|
+
return setTimeout(x), _;
|
|
1154
|
+
}
|
|
1155
|
+
function ot(e) {
|
|
1156
|
+
let t = {
|
|
1157
|
+
...it,
|
|
1158
|
+
...e
|
|
1159
|
+
}, n = [];
|
|
1160
|
+
function r() {
|
|
1161
|
+
n = n.filter((e) => e().status === "pending");
|
|
1162
|
+
}
|
|
1163
|
+
function i(e, i, a) {
|
|
1164
|
+
let o = at(t, e, i, (e, t) => {
|
|
1165
|
+
r(), a && a(e, t);
|
|
1166
|
+
});
|
|
1167
|
+
return n.push(o), o;
|
|
1168
|
+
}
|
|
1169
|
+
function a(e) {
|
|
1170
|
+
return n.find((t) => e(t)) || null;
|
|
1171
|
+
}
|
|
1172
|
+
return {
|
|
1173
|
+
query: i,
|
|
1174
|
+
find: a,
|
|
1175
|
+
setIndex: (e) => {
|
|
1176
|
+
t.index = e;
|
|
1177
|
+
},
|
|
1178
|
+
getIndex: () => t.index,
|
|
1179
|
+
cleanup: r
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
function st() {}
|
|
1183
|
+
var ct = Object.create(null);
|
|
1184
|
+
function lt(e) {
|
|
1185
|
+
if (!ct[e]) {
|
|
1186
|
+
let t = Ge(e);
|
|
1187
|
+
if (!t) return;
|
|
1188
|
+
ct[e] = {
|
|
1189
|
+
config: t,
|
|
1190
|
+
redundancy: ot(t)
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
return ct[e];
|
|
1194
|
+
}
|
|
1195
|
+
function ut(e, t, n) {
|
|
1196
|
+
let r, i;
|
|
1197
|
+
if (typeof e == "string") {
|
|
1198
|
+
let t = Be(e);
|
|
1199
|
+
if (!t) return n(void 0, 424), st;
|
|
1200
|
+
i = t.send;
|
|
1201
|
+
let a = lt(e);
|
|
1202
|
+
a && (r = a.redundancy);
|
|
1203
|
+
} else {
|
|
1204
|
+
let t = Ve(e);
|
|
1205
|
+
if (t) {
|
|
1206
|
+
r = ot(t);
|
|
1207
|
+
let n = Be(e.resources ? e.resources[0] : "");
|
|
1208
|
+
n && (i = n.send);
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
return !r || !i ? (n(void 0, 424), st) : r.query(t, i, n)().abort;
|
|
1212
|
+
}
|
|
1213
|
+
function dt() {}
|
|
1214
|
+
function ft(e) {
|
|
1215
|
+
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
1216
|
+
e.iconsLoaderFlag = !1, $e(e);
|
|
1217
|
+
}));
|
|
1218
|
+
}
|
|
1219
|
+
function pt(e) {
|
|
1220
|
+
let t = [], n = [];
|
|
1221
|
+
return e.forEach((e) => {
|
|
1222
|
+
(e.match(B) ? t : n).push(e);
|
|
1223
|
+
}), {
|
|
1224
|
+
valid: t,
|
|
1225
|
+
invalid: n
|
|
1226
|
+
};
|
|
1227
|
+
}
|
|
1228
|
+
function Z(e, t, n) {
|
|
1229
|
+
function r() {
|
|
1230
|
+
let n = e.pendingIcons;
|
|
1231
|
+
t.forEach((t) => {
|
|
1232
|
+
n && n.delete(t), e.icons[t] || e.missing.add(t);
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
if (n && typeof n == "object") try {
|
|
1236
|
+
if (!ve(e, n).length) {
|
|
1237
|
+
r();
|
|
1238
|
+
return;
|
|
1239
|
+
}
|
|
1240
|
+
} catch (e) {
|
|
1241
|
+
console.error(e);
|
|
1242
|
+
}
|
|
1243
|
+
r(), ft(e);
|
|
1244
|
+
}
|
|
1245
|
+
function mt(e, t) {
|
|
1246
|
+
e instanceof Promise ? e.then((e) => {
|
|
1247
|
+
t(e);
|
|
1248
|
+
}).catch(() => {
|
|
1249
|
+
t(null);
|
|
1250
|
+
}) : t(e);
|
|
1251
|
+
}
|
|
1252
|
+
function ht(e, t) {
|
|
1253
|
+
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
1254
|
+
e.iconsQueueFlag = !1;
|
|
1255
|
+
let { provider: t, prefix: n } = e, r = e.iconsToLoad;
|
|
1256
|
+
if (delete e.iconsToLoad, !r || !r.length) return;
|
|
1257
|
+
let i = e.loadIcon;
|
|
1258
|
+
if (e.loadIcons && (r.length > 1 || !i)) {
|
|
1259
|
+
mt(e.loadIcons(r, n, t), (t) => {
|
|
1260
|
+
Z(e, r, t);
|
|
1261
|
+
});
|
|
1262
|
+
return;
|
|
1263
|
+
}
|
|
1264
|
+
if (i) {
|
|
1265
|
+
r.forEach((r) => {
|
|
1266
|
+
mt(i(r, n, t), (t) => {
|
|
1267
|
+
Z(e, [r], t ? {
|
|
1268
|
+
prefix: n,
|
|
1269
|
+
icons: { [r]: t }
|
|
1270
|
+
} : null);
|
|
1271
|
+
});
|
|
1272
|
+
});
|
|
1273
|
+
return;
|
|
1274
|
+
}
|
|
1275
|
+
let { valid: a, invalid: o } = pt(r);
|
|
1276
|
+
if (o.length && Z(e, o, null), !a.length) return;
|
|
1277
|
+
let s = n.match(B) ? Be(t) : null;
|
|
1278
|
+
if (!s) {
|
|
1279
|
+
Z(e, a, null);
|
|
1280
|
+
return;
|
|
1281
|
+
}
|
|
1282
|
+
s.prepare(t, n, a).forEach((n) => {
|
|
1283
|
+
ut(t, n, (t) => {
|
|
1284
|
+
Z(e, n.icons, t);
|
|
1285
|
+
});
|
|
1286
|
+
});
|
|
1287
|
+
}));
|
|
1288
|
+
}
|
|
1289
|
+
var gt = (e, t) => {
|
|
1290
|
+
let n = nt(rt(e, !0, be()));
|
|
1291
|
+
if (!n.pending.length) {
|
|
1292
|
+
let e = !0;
|
|
1293
|
+
return t && setTimeout(() => {
|
|
1294
|
+
e && t(n.loaded, n.missing, n.pending, dt);
|
|
1295
|
+
}), () => {
|
|
1296
|
+
e = !1;
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
let r = Object.create(null), i = [], a, o;
|
|
1300
|
+
return n.pending.forEach((e) => {
|
|
1301
|
+
let { provider: t, prefix: n } = e;
|
|
1302
|
+
if (n === o && t === a) return;
|
|
1303
|
+
a = t, o = n, i.push(J(t, n));
|
|
1304
|
+
let s = r[t] || (r[t] = Object.create(null));
|
|
1305
|
+
s[n] || (s[n] = []);
|
|
1306
|
+
}), n.pending.forEach((e) => {
|
|
1307
|
+
let { provider: t, prefix: n, name: i } = e, a = J(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
|
|
1308
|
+
o.has(i) || (o.add(i), r[t][n].push(i));
|
|
1309
|
+
}), i.forEach((e) => {
|
|
1310
|
+
let t = r[e.provider][e.prefix];
|
|
1311
|
+
t.length && ht(e, t);
|
|
1312
|
+
}), t ? tt(t, n, i) : dt;
|
|
1313
|
+
};
|
|
1314
|
+
function _t(e, t) {
|
|
1315
|
+
let n = { ...e };
|
|
1316
|
+
for (let e in t) {
|
|
1317
|
+
let r = t[e], i = typeof r;
|
|
1318
|
+
e in we ? (r === null || r && (i === "string" || i === "number")) && (n[e] = r) : i === typeof n[e] && (n[e] = e === "rotate" ? r % 4 : r);
|
|
1319
|
+
}
|
|
1320
|
+
return n;
|
|
1321
|
+
}
|
|
1322
|
+
var vt = /[\s,]+/;
|
|
1323
|
+
function yt(e, t) {
|
|
1324
|
+
t.split(vt).forEach((t) => {
|
|
1325
|
+
switch (t.trim()) {
|
|
1326
|
+
case "horizontal":
|
|
1327
|
+
e.hFlip = !0;
|
|
1328
|
+
break;
|
|
1329
|
+
case "vertical":
|
|
1330
|
+
e.vFlip = !0;
|
|
1331
|
+
break;
|
|
1332
|
+
}
|
|
1333
|
+
});
|
|
1334
|
+
}
|
|
1335
|
+
function bt(e, t = 0) {
|
|
1336
|
+
let n = e.replace(/^-?[0-9.]*/, "");
|
|
1337
|
+
function r(e) {
|
|
1338
|
+
for (; e < 0;) e += 4;
|
|
1339
|
+
return e % 4;
|
|
1340
|
+
}
|
|
1341
|
+
if (n === "") {
|
|
1342
|
+
let t = parseInt(e);
|
|
1343
|
+
return isNaN(t) ? 0 : r(t);
|
|
1344
|
+
} else if (n !== e) {
|
|
1345
|
+
let t = 0;
|
|
1346
|
+
switch (n) {
|
|
1347
|
+
case "%":
|
|
1348
|
+
t = 25;
|
|
1349
|
+
break;
|
|
1350
|
+
case "deg": t = 90;
|
|
1351
|
+
}
|
|
1352
|
+
if (t) {
|
|
1353
|
+
let i = parseFloat(e.slice(0, e.length - n.length));
|
|
1354
|
+
return isNaN(i) ? 0 : (i /= t, i % 1 == 0 ? r(i) : 0);
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
return t;
|
|
1358
|
+
}
|
|
1359
|
+
function xt(e, t) {
|
|
1360
|
+
let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
|
|
1361
|
+
for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
|
|
1362
|
+
return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
|
|
1363
|
+
}
|
|
1364
|
+
function St(e) {
|
|
1365
|
+
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1366
|
+
}
|
|
1367
|
+
function Ct(e) {
|
|
1368
|
+
return "data:image/svg+xml," + St(e);
|
|
1369
|
+
}
|
|
1370
|
+
function wt(e) {
|
|
1371
|
+
return "url(\"" + Ct(e) + "\")";
|
|
1372
|
+
}
|
|
1373
|
+
var Tt = {
|
|
1374
|
+
...Te,
|
|
1375
|
+
inline: !1
|
|
1376
|
+
}, Et = {
|
|
1377
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1378
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1379
|
+
"aria-hidden": !0,
|
|
1380
|
+
role: "img"
|
|
1381
|
+
}, Dt = { display: "inline-block" }, Ot = { backgroundColor: "currentColor" }, kt = { backgroundColor: "transparent" }, At = {
|
|
1382
|
+
Image: "var(--svg)",
|
|
1383
|
+
Repeat: "no-repeat",
|
|
1384
|
+
Size: "100% 100%"
|
|
1385
|
+
}, jt = {
|
|
1386
|
+
webkitMask: Ot,
|
|
1387
|
+
mask: Ot,
|
|
1388
|
+
background: kt
|
|
1389
|
+
};
|
|
1390
|
+
for (let e in jt) {
|
|
1391
|
+
let t = jt[e];
|
|
1392
|
+
for (let n in At) t[e + n] = At[n];
|
|
1393
|
+
}
|
|
1394
|
+
var Q = {};
|
|
1395
|
+
["horizontal", "vertical"].forEach((e) => {
|
|
1396
|
+
let t = e.slice(0, 1) + "Flip";
|
|
1397
|
+
Q[e + "-flip"] = t, Q[e.slice(0, 1) + "-flip"] = t, Q[e + "Flip"] = t;
|
|
1398
|
+
});
|
|
1399
|
+
function Mt(e) {
|
|
1400
|
+
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1401
|
+
}
|
|
1402
|
+
var Nt = (e, t) => {
|
|
1403
|
+
let n = _t(Tt, t), r = { ...Et }, i = t.mode || "svg", a = {}, o = t.style, c = typeof o == "object" && !(o instanceof Array) ? o : {};
|
|
1404
|
+
for (let e in t) {
|
|
1405
|
+
let i = t[e];
|
|
1406
|
+
if (i !== void 0) switch (e) {
|
|
1407
|
+
case "icon":
|
|
1408
|
+
case "style":
|
|
1409
|
+
case "onLoad":
|
|
1410
|
+
case "mode":
|
|
1411
|
+
case "ssr":
|
|
1412
|
+
case "customise": break;
|
|
1413
|
+
case "inline":
|
|
1414
|
+
case "hFlip":
|
|
1415
|
+
case "vFlip":
|
|
1416
|
+
n[e] = i === !0 || i === "true" || i === 1;
|
|
1417
|
+
break;
|
|
1418
|
+
case "flip":
|
|
1419
|
+
typeof i == "string" && yt(n, i);
|
|
1420
|
+
break;
|
|
1421
|
+
case "color":
|
|
1422
|
+
a.color = i;
|
|
1423
|
+
break;
|
|
1424
|
+
case "rotate":
|
|
1425
|
+
typeof i == "string" ? n[e] = bt(i) : typeof i == "number" && (n[e] = i);
|
|
1426
|
+
break;
|
|
1427
|
+
case "ariaHidden":
|
|
1428
|
+
case "aria-hidden":
|
|
1429
|
+
i !== !0 && i !== "true" && delete r["aria-hidden"];
|
|
1430
|
+
break;
|
|
1431
|
+
default: {
|
|
1432
|
+
let t = Q[e];
|
|
1433
|
+
t ? (i === !0 || i === "true" || i === 1) && (n[t] = !0) : Tt[e] === void 0 && (r[e] = i);
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
let l = Ne(e, n), u = l.attributes;
|
|
1438
|
+
if (n.inline && (a.verticalAlign = "-0.125em"), i === "svg") return r.style = {
|
|
1439
|
+
...a,
|
|
1440
|
+
...c
|
|
1441
|
+
}, Object.assign(r, u), r.innerHTML = Le(l.body), s("svg", r);
|
|
1442
|
+
let { body: d, width: f, height: p } = e, m = i === "mask" || (i === "bg" ? !1 : d.indexOf("currentColor") !== -1), h = xt(d, {
|
|
1443
|
+
...u,
|
|
1444
|
+
width: f + "",
|
|
1445
|
+
height: p + ""
|
|
1446
|
+
});
|
|
1447
|
+
return r.style = {
|
|
1448
|
+
...a,
|
|
1449
|
+
"--svg": wt(h),
|
|
1450
|
+
width: Mt(u.width),
|
|
1451
|
+
height: Mt(u.height),
|
|
1452
|
+
...Dt,
|
|
1453
|
+
...m ? Ot : kt,
|
|
1454
|
+
...c
|
|
1455
|
+
}, s("span", r);
|
|
1456
|
+
};
|
|
1457
|
+
if (be(!0), ze("", Ze), typeof document < "u" && typeof window < "u") {
|
|
1458
|
+
let e = window;
|
|
1459
|
+
if (e.IconifyPreload !== void 0) {
|
|
1460
|
+
let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
|
|
1461
|
+
typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
|
|
1462
|
+
try {
|
|
1463
|
+
(typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !Ce(e)) && console.error(n);
|
|
1464
|
+
} catch {
|
|
1465
|
+
console.error(n);
|
|
1466
|
+
}
|
|
1467
|
+
});
|
|
1468
|
+
}
|
|
1469
|
+
if (e.IconifyProviders !== void 0) {
|
|
1470
|
+
let t = e.IconifyProviders;
|
|
1471
|
+
if (typeof t == "object" && t) for (let e in t) {
|
|
1472
|
+
let n = "IconifyProviders[" + e + "] is invalid.";
|
|
1473
|
+
try {
|
|
1474
|
+
let r = t[e];
|
|
1475
|
+
if (typeof r != "object" || !r || r.resources === void 0) continue;
|
|
1476
|
+
We(e, r) || console.error(n);
|
|
1477
|
+
} catch {
|
|
1478
|
+
console.error(n);
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
var Pt = {
|
|
1484
|
+
...G,
|
|
1485
|
+
body: ""
|
|
1486
|
+
}, Ft = a((e, { emit: t }) => {
|
|
1487
|
+
let n = f(null);
|
|
1488
|
+
function r() {
|
|
1489
|
+
n.value &&= (n.value.abort?.(), null);
|
|
1490
|
+
}
|
|
1491
|
+
let i = f(!!e.ssr), a = f(""), o = p(null);
|
|
1492
|
+
function s() {
|
|
1493
|
+
let i = e.icon;
|
|
1494
|
+
if (typeof i == "object" && i && typeof i.body == "string") return a.value = "", { data: i };
|
|
1495
|
+
let o;
|
|
1496
|
+
if (typeof i != "string" || (o = V(i, !1, !0)) === null) return null;
|
|
1497
|
+
let s = xe(o);
|
|
1498
|
+
if (!s) {
|
|
1499
|
+
let e = n.value;
|
|
1500
|
+
return (!e || e.name !== i) && (s === null ? n.value = { name: i } : n.value = {
|
|
1501
|
+
name: i,
|
|
1502
|
+
abort: gt([o], c)
|
|
1503
|
+
}), null;
|
|
1504
|
+
}
|
|
1505
|
+
r(), a.value !== i && (a.value = i, l(() => {
|
|
1506
|
+
t("load", i);
|
|
1507
|
+
}));
|
|
1508
|
+
let u = e.customise;
|
|
1509
|
+
if (u) {
|
|
1510
|
+
s = Object.assign({}, s);
|
|
1511
|
+
let e = u(s.body, o.name, o.prefix, o.provider);
|
|
1512
|
+
typeof e == "string" && (s.body = e);
|
|
1513
|
+
}
|
|
1514
|
+
let d = ["iconify"];
|
|
1515
|
+
return o.prefix !== "" && d.push("iconify--" + o.prefix), o.provider !== "" && d.push("iconify--" + o.provider), {
|
|
1516
|
+
data: s,
|
|
1517
|
+
classes: d
|
|
1518
|
+
};
|
|
1519
|
+
}
|
|
1520
|
+
function c() {
|
|
1521
|
+
let e = s();
|
|
1522
|
+
e ? e.data !== o.value?.data && (o.value = e) : o.value = null;
|
|
1523
|
+
}
|
|
1524
|
+
return i.value ? c() : u(() => {
|
|
1525
|
+
i.value = !0, c();
|
|
1526
|
+
}), m(() => e.icon, c), d(r), () => {
|
|
1527
|
+
let t = o.value;
|
|
1528
|
+
if (!t) return Nt(Pt, e);
|
|
1529
|
+
let n = e;
|
|
1530
|
+
return t.classes && (n = {
|
|
1531
|
+
...e,
|
|
1532
|
+
class: t.classes.join(" ")
|
|
1533
|
+
}), Nt({
|
|
1534
|
+
...G,
|
|
1535
|
+
...t.data
|
|
1536
|
+
}, n);
|
|
1537
|
+
};
|
|
1538
|
+
}, {
|
|
1539
|
+
props: [
|
|
1540
|
+
"icon",
|
|
1541
|
+
"mode",
|
|
1542
|
+
"ssr",
|
|
1543
|
+
"width",
|
|
1544
|
+
"height",
|
|
1545
|
+
"style",
|
|
1546
|
+
"color",
|
|
1547
|
+
"inline",
|
|
1548
|
+
"rotate",
|
|
1549
|
+
"hFlip",
|
|
1550
|
+
"horizontalFlip",
|
|
1551
|
+
"vFlip",
|
|
1552
|
+
"verticalFlip",
|
|
1553
|
+
"flip",
|
|
1554
|
+
"id",
|
|
1555
|
+
"ariaHidden",
|
|
1556
|
+
"customise",
|
|
1557
|
+
"title"
|
|
1558
|
+
],
|
|
1559
|
+
emits: ["load"]
|
|
1560
|
+
}), It = {
|
|
1561
|
+
prefix: "mdi",
|
|
1562
|
+
icons: {
|
|
1563
|
+
"alert-circle": {
|
|
1564
|
+
width: 24,
|
|
1565
|
+
height: 24,
|
|
1566
|
+
body: "<path fill=\"currentColor\" d=\"M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2Z\"/>"
|
|
1567
|
+
},
|
|
1568
|
+
"arrow-up": {
|
|
1569
|
+
width: 24,
|
|
1570
|
+
height: 24,
|
|
1571
|
+
body: "<path fill=\"currentColor\" d=\"M13 20h-2V8l-5.5 5.5l-1.42-1.42L12 4.16l7.92 7.92l-1.42 1.42L13 8v12Z\"/>"
|
|
1572
|
+
},
|
|
1573
|
+
"calendar-outline": {
|
|
1574
|
+
width: 24,
|
|
1575
|
+
height: 24,
|
|
1576
|
+
body: "<path fill=\"currentColor\" d=\"M12 12h5v5h-5v-5m7-9h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 2v2H5V5h14M5 19V9h14v10H5Z\"/>"
|
|
1577
|
+
},
|
|
1578
|
+
check: {
|
|
1579
|
+
width: 24,
|
|
1580
|
+
height: 24,
|
|
1581
|
+
body: "<path fill=\"currentColor\" d=\"M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z\"/>"
|
|
1582
|
+
},
|
|
1583
|
+
"check-circle": {
|
|
1584
|
+
width: 24,
|
|
1585
|
+
height: 24,
|
|
1586
|
+
body: "<path fill=\"currentColor\" d=\"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9Z\"/>"
|
|
1587
|
+
},
|
|
1588
|
+
"chevron-right": {
|
|
1589
|
+
width: 24,
|
|
1590
|
+
height: 24,
|
|
1591
|
+
body: "<path fill=\"currentColor\" d=\"M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z\"/>"
|
|
1592
|
+
},
|
|
1593
|
+
"clock-outline": {
|
|
1594
|
+
width: 24,
|
|
1595
|
+
height: 24,
|
|
1596
|
+
body: "<path fill=\"currentColor\" d=\"M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7h1.5Z\"/>"
|
|
1597
|
+
},
|
|
1598
|
+
close: {
|
|
1599
|
+
width: 24,
|
|
1600
|
+
height: 24,
|
|
1601
|
+
body: "<path fill=\"currentColor\" d=\"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z\"/>"
|
|
1602
|
+
},
|
|
1603
|
+
"close-circle": {
|
|
1604
|
+
width: 24,
|
|
1605
|
+
height: 24,
|
|
1606
|
+
body: "<path fill=\"currentColor\" d=\"M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12S6.47 2 12 2m3.59 5L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17L17 15.59L13.41 12L17 8.41L15.59 7Z\"/>"
|
|
1607
|
+
},
|
|
1608
|
+
"content-copy": {
|
|
1609
|
+
width: 24,
|
|
1610
|
+
height: 24,
|
|
1611
|
+
body: "<path fill=\"currentColor\" d=\"M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1Z\"/>"
|
|
1612
|
+
},
|
|
1613
|
+
loading: {
|
|
1614
|
+
width: 24,
|
|
1615
|
+
height: 24,
|
|
1616
|
+
body: "<path fill=\"currentColor\" d=\"M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8Z\"/>"
|
|
1617
|
+
},
|
|
1618
|
+
magnify: {
|
|
1619
|
+
width: 24,
|
|
1620
|
+
height: 24,
|
|
1621
|
+
body: "<path fill=\"currentColor\" d=\"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5Z\"/>"
|
|
1622
|
+
},
|
|
1623
|
+
"menu-down": {
|
|
1624
|
+
width: 24,
|
|
1625
|
+
height: 24,
|
|
1626
|
+
body: "<path fill=\"currentColor\" d=\"m7 10l5 5l5-5H7Z\"/>"
|
|
1627
|
+
},
|
|
1628
|
+
"menu-right": {
|
|
1629
|
+
width: 24,
|
|
1630
|
+
height: 24,
|
|
1631
|
+
body: "<path fill=\"currentColor\" d=\"m10 17l5-5l-5-5v10Z\"/>"
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
}, Lt = !1;
|
|
1635
|
+
function Rt() {
|
|
1636
|
+
Lt ||= (Ce(It), !0);
|
|
1637
|
+
}
|
|
1638
|
+
//#endregion
|
|
1639
|
+
//#region ../icons/dist/install.js
|
|
1640
|
+
Rt();
|
|
1641
|
+
//#endregion
|
|
1642
|
+
//#region ../ccui/ui/shared/hooks/use-icon.ts
|
|
1643
|
+
function zt(e) {
|
|
1644
|
+
return e.includes(":");
|
|
1645
|
+
}
|
|
1646
|
+
function Bt(e) {
|
|
1647
|
+
return e ? typeof e == "string" ? zt(e) ? s(Ft, { icon: e }) : s("i", { class: e }) : e : null;
|
|
1648
|
+
}
|
|
1649
|
+
//#endregion
|
|
1650
|
+
//#region ../ccui/ui/auto-complete/src/auto-complete-types.ts
|
|
1651
|
+
var Vt = {
|
|
1652
|
+
modelValue: {
|
|
1653
|
+
type: [String, Number],
|
|
1654
|
+
default: void 0
|
|
1655
|
+
},
|
|
1656
|
+
defaultValue: {
|
|
1657
|
+
type: [String, Number],
|
|
1658
|
+
default: ""
|
|
1659
|
+
},
|
|
1660
|
+
options: {
|
|
1661
|
+
type: Array,
|
|
1662
|
+
default: () => []
|
|
1663
|
+
},
|
|
1664
|
+
placeholder: {
|
|
1665
|
+
type: String,
|
|
1666
|
+
default: ""
|
|
1667
|
+
},
|
|
1668
|
+
disabled: {
|
|
1669
|
+
type: Boolean,
|
|
1670
|
+
default: !1
|
|
1671
|
+
},
|
|
1672
|
+
allowClear: {
|
|
1673
|
+
type: Boolean,
|
|
1674
|
+
default: !1
|
|
1675
|
+
},
|
|
1676
|
+
clearIcon: {
|
|
1677
|
+
type: [String, Object],
|
|
1678
|
+
default: void 0
|
|
1679
|
+
},
|
|
1680
|
+
size: {
|
|
1681
|
+
type: String,
|
|
1682
|
+
default: "default"
|
|
1683
|
+
},
|
|
1684
|
+
status: {
|
|
1685
|
+
type: String,
|
|
1686
|
+
default: ""
|
|
1687
|
+
},
|
|
1688
|
+
filterOption: {
|
|
1689
|
+
type: [Boolean, Function],
|
|
1690
|
+
default: !0
|
|
1691
|
+
},
|
|
1692
|
+
caseSensitive: {
|
|
1693
|
+
type: Boolean,
|
|
1694
|
+
default: !1
|
|
1695
|
+
},
|
|
1696
|
+
notFoundContent: {
|
|
1697
|
+
type: String,
|
|
1698
|
+
default: ""
|
|
1699
|
+
},
|
|
1700
|
+
placement: {
|
|
1701
|
+
type: String,
|
|
1702
|
+
default: "bottomLeft"
|
|
1703
|
+
},
|
|
1704
|
+
popupClassName: {
|
|
1705
|
+
type: String,
|
|
1706
|
+
default: ""
|
|
1707
|
+
},
|
|
1708
|
+
popupAppendToBody: {
|
|
1709
|
+
type: Boolean,
|
|
1710
|
+
default: !1
|
|
1711
|
+
},
|
|
1712
|
+
getPopupContainer: {
|
|
1713
|
+
type: Function,
|
|
1714
|
+
default: void 0
|
|
1715
|
+
},
|
|
1716
|
+
transitionName: {
|
|
1717
|
+
type: String,
|
|
1718
|
+
default: "ccui-auto-complete-fade"
|
|
1719
|
+
},
|
|
1720
|
+
popupMaxHeight: {
|
|
1721
|
+
type: Number,
|
|
1722
|
+
default: 256
|
|
1723
|
+
},
|
|
1724
|
+
defaultActiveFirstOption: {
|
|
1725
|
+
type: Boolean,
|
|
1726
|
+
default: !1
|
|
1727
|
+
},
|
|
1728
|
+
backfill: {
|
|
1729
|
+
type: Boolean,
|
|
1730
|
+
default: !1
|
|
1731
|
+
},
|
|
1732
|
+
searchDebounce: {
|
|
1733
|
+
type: Number,
|
|
1734
|
+
default: 0
|
|
1735
|
+
},
|
|
1736
|
+
variant: {
|
|
1737
|
+
type: String,
|
|
1738
|
+
default: "outlined"
|
|
1739
|
+
},
|
|
1740
|
+
classNames: {
|
|
1741
|
+
type: Object,
|
|
1742
|
+
default: void 0
|
|
1743
|
+
},
|
|
1744
|
+
styles: {
|
|
1745
|
+
type: Object,
|
|
1746
|
+
default: void 0
|
|
1747
|
+
}
|
|
1748
|
+
};
|
|
1749
|
+
function Ht(e) {
|
|
1750
|
+
return typeof e == "string" || typeof e == "number" ? {
|
|
1751
|
+
value: e,
|
|
1752
|
+
label: String(e),
|
|
1753
|
+
disabled: !1,
|
|
1754
|
+
raw: {
|
|
1755
|
+
value: e,
|
|
1756
|
+
label: String(e)
|
|
1757
|
+
}
|
|
1758
|
+
} : {
|
|
1759
|
+
value: e.value,
|
|
1760
|
+
label: e.label === void 0 ? String(e.value) : String(e.label),
|
|
1761
|
+
disabled: !!e.disabled,
|
|
1762
|
+
raw: e
|
|
1763
|
+
};
|
|
1764
|
+
}
|
|
1765
|
+
//#endregion
|
|
1766
|
+
//#region ../ccui/ui/auto-complete/src/auto-complete.tsx
|
|
1767
|
+
var Ut = {
|
|
1768
|
+
bottomLeft: "bottom-start",
|
|
1769
|
+
bottomRight: "bottom-end",
|
|
1770
|
+
topLeft: "top-start",
|
|
1771
|
+
topRight: "top-end"
|
|
1772
|
+
}, $ = /* @__PURE__ */ a({
|
|
1773
|
+
name: "CAutoComplete",
|
|
1774
|
+
props: Vt,
|
|
1775
|
+
emits: [
|
|
1776
|
+
"update:modelValue",
|
|
1777
|
+
"change",
|
|
1778
|
+
"select",
|
|
1779
|
+
"search",
|
|
1780
|
+
"focus",
|
|
1781
|
+
"blur",
|
|
1782
|
+
"open-change"
|
|
1783
|
+
],
|
|
1784
|
+
setup(e, { emit: a, slots: s }) {
|
|
1785
|
+
let l = oe("auto-complete"), g = se(), b = o()?.uid ?? 0, x = `ccui-auto-complete-popup-${b}`, S = (e) => `ccui-auto-complete-option-${b}-${e}`, C = r(() => e.notFoundContent || g.locale?.AutoComplete?.notFoundContent || "暂无数据"), w = f(null), T = f(null), E = f(null), D = p(!1), ee = p(e.defaultValue ?? ""), O = p(-1), te = c(ce, null), k = r(() => e.modelValue !== void 0), A = r(() => (k.value ? e.modelValue : ee.value) ?? ""), j = r(() => B.value ?? String(A.value ?? "")), M = r(() => (e.options || []).map((e) => Ht(e))), N = r(() => {
|
|
1786
|
+
let t = e.filterOption;
|
|
1787
|
+
if (t === !1) return M.value;
|
|
1788
|
+
let n = j.value;
|
|
1789
|
+
if (!n) return M.value;
|
|
1790
|
+
if (typeof t == "function") return M.value.filter((e) => t(n, e.raw));
|
|
1791
|
+
let r = e.caseSensitive ? n : n.toLowerCase();
|
|
1792
|
+
return M.value.filter((t) => (e.caseSensitive ? t.label : t.label.toLowerCase()).includes(r));
|
|
1793
|
+
}), ne = r(() => Ut[e.placement]), re = r(() => typeof document > "u" ? null : e.getPopupContainer ? e.getPopupContainer(w.value) : e.popupAppendToBody ? document.body : null), P = r(() => re.value !== null), { floatingStyles: F } = ae(w, T, {
|
|
1794
|
+
placement: ne,
|
|
1795
|
+
open: D,
|
|
1796
|
+
whileElementsMounted: h,
|
|
1797
|
+
middleware: [
|
|
1798
|
+
v(4),
|
|
1799
|
+
_(),
|
|
1800
|
+
y({ padding: 8 })
|
|
1801
|
+
],
|
|
1802
|
+
strategy: r(() => P.value ? "fixed" : "absolute")
|
|
1803
|
+
}), ie = r(() => te?.validateStatus.value ?? ""), I = r(() => e.status || ie.value);
|
|
1804
|
+
function L() {
|
|
1805
|
+
return e.defaultActiveFirstOption ? N.value.findIndex((e) => !e.disabled) : -1;
|
|
1806
|
+
}
|
|
1807
|
+
function R() {
|
|
1808
|
+
e.disabled || D.value || (D.value = !0, O.value = L(), a("open-change", !0));
|
|
1809
|
+
}
|
|
1810
|
+
function z() {
|
|
1811
|
+
D.value && (D.value = !1, B.value = null, a("open-change", !1));
|
|
1812
|
+
}
|
|
1813
|
+
let B = p(null), V = null;
|
|
1814
|
+
function H(t) {
|
|
1815
|
+
B.value = null, k.value || (ee.value = t), a("update:modelValue", t), a("change", t), e.searchDebounce > 0 ? (V && clearTimeout(V), V = setTimeout(() => {
|
|
1816
|
+
a("search", String(t));
|
|
1817
|
+
}, e.searchDebounce)) : a("search", String(t)), te?.validate("change");
|
|
1818
|
+
}
|
|
1819
|
+
function le(e) {
|
|
1820
|
+
e.disabled || (H(e.value), a("select", e.value, e.raw), z());
|
|
1821
|
+
}
|
|
1822
|
+
function U(e) {
|
|
1823
|
+
let t = e.target;
|
|
1824
|
+
H(t.value), D.value || R(), O.value = -1;
|
|
1825
|
+
}
|
|
1826
|
+
function W(t) {
|
|
1827
|
+
a("focus", t), e.disabled || R();
|
|
1828
|
+
}
|
|
1829
|
+
function G(e) {
|
|
1830
|
+
a("blur", e), te?.validate("blur");
|
|
1831
|
+
}
|
|
1832
|
+
function K(t) {
|
|
1833
|
+
if (e.disabled) return;
|
|
1834
|
+
let n = N.value, r = n.filter((e) => !e.disabled);
|
|
1835
|
+
function i(t) {
|
|
1836
|
+
e.backfill && t >= 0 && n[t] && (B.value = n[t].label);
|
|
1837
|
+
}
|
|
1838
|
+
if (t.key === "ArrowDown") {
|
|
1839
|
+
if (t.preventDefault(), !D.value) {
|
|
1840
|
+
R();
|
|
1841
|
+
return;
|
|
1842
|
+
}
|
|
1843
|
+
if (r.length === 0) return;
|
|
1844
|
+
let e = r[(r.findIndex((e) => e === n[O.value]) + 1) % r.length];
|
|
1845
|
+
O.value = n.indexOf(e), i(O.value);
|
|
1846
|
+
} else if (t.key === "ArrowUp") {
|
|
1847
|
+
if (t.preventDefault(), !D.value) {
|
|
1848
|
+
R();
|
|
1849
|
+
return;
|
|
1850
|
+
}
|
|
1851
|
+
if (r.length === 0) return;
|
|
1852
|
+
let e = r.findIndex((e) => e === n[O.value]), a = e <= 0 ? r[r.length - 1] : r[e - 1];
|
|
1853
|
+
O.value = n.indexOf(a), i(O.value);
|
|
1854
|
+
} else t.key === "Enter" ? D.value && O.value >= 0 && n[O.value] && (t.preventDefault(), le(n[O.value])) : t.key === "Escape" && D.value && (t.preventDefault(), z());
|
|
1855
|
+
}
|
|
1856
|
+
function ue(e) {
|
|
1857
|
+
if (!D.value) return;
|
|
1858
|
+
let t = e.target;
|
|
1859
|
+
t && (w.value?.contains(t) || T.value?.contains(t) || z());
|
|
1860
|
+
}
|
|
1861
|
+
function de(e) {
|
|
1862
|
+
e.stopPropagation(), e.preventDefault(), H("");
|
|
1863
|
+
}
|
|
1864
|
+
u(() => {
|
|
1865
|
+
document.addEventListener("mousedown", ue, !0);
|
|
1866
|
+
}), d(() => {
|
|
1867
|
+
document.removeEventListener("mousedown", ue, !0), V &&= (clearTimeout(V), null);
|
|
1868
|
+
}), m(N, (e) => {
|
|
1869
|
+
O.value >= e.length && (O.value = -1);
|
|
1870
|
+
});
|
|
1871
|
+
let fe = r(() => e.allowClear && !e.disabled && j.value !== "");
|
|
1872
|
+
function pe() {
|
|
1873
|
+
let t = [
|
|
1874
|
+
l.e("wrap"),
|
|
1875
|
+
l.em("size", e.size),
|
|
1876
|
+
e.disabled ? l.is("disabled") : "",
|
|
1877
|
+
D.value ? l.is("open") : "",
|
|
1878
|
+
I.value ? l.em("wrap", `status-${I.value}`) : ""
|
|
1879
|
+
], n = s.trigger ? s.trigger({
|
|
1880
|
+
value: j.value,
|
|
1881
|
+
onInput: U,
|
|
1882
|
+
onFocus: W,
|
|
1883
|
+
onBlur: G,
|
|
1884
|
+
onKeydown: K,
|
|
1885
|
+
placeholder: e.placeholder,
|
|
1886
|
+
disabled: e.disabled
|
|
1887
|
+
}) : i("input", {
|
|
1888
|
+
ref: E,
|
|
1889
|
+
class: l.e("input"),
|
|
1890
|
+
type: "text",
|
|
1891
|
+
value: j.value,
|
|
1892
|
+
placeholder: e.placeholder,
|
|
1893
|
+
disabled: e.disabled,
|
|
1894
|
+
autocomplete: "off",
|
|
1895
|
+
spellcheck: !1,
|
|
1896
|
+
role: "combobox",
|
|
1897
|
+
"aria-autocomplete": "list",
|
|
1898
|
+
"aria-haspopup": "listbox",
|
|
1899
|
+
"aria-expanded": D.value,
|
|
1900
|
+
"aria-controls": x,
|
|
1901
|
+
"aria-activedescendant": D.value && O.value >= 0 ? S(O.value) : void 0,
|
|
1902
|
+
onInput: U,
|
|
1903
|
+
onFocus: W,
|
|
1904
|
+
onBlur: G,
|
|
1905
|
+
onKeydown: K
|
|
1906
|
+
}, null);
|
|
1907
|
+
return i("div", {
|
|
1908
|
+
ref: w,
|
|
1909
|
+
class: [t, e.classNames?.input],
|
|
1910
|
+
style: e.styles?.input
|
|
1911
|
+
}, [n, fe.value && i("span", {
|
|
1912
|
+
class: l.e("clear"),
|
|
1913
|
+
role: "button",
|
|
1914
|
+
"aria-label": "clear",
|
|
1915
|
+
onMousedown: de
|
|
1916
|
+
}, [s.clearIcon ? s.clearIcon() : Bt(e.clearIcon) ?? Bt("mdi:close-circle")])]);
|
|
1917
|
+
}
|
|
1918
|
+
function me(e, t) {
|
|
1919
|
+
let n = [
|
|
1920
|
+
l.e("option"),
|
|
1921
|
+
t === O.value ? l.is("active") : "",
|
|
1922
|
+
e.disabled ? l.is("disabled") : ""
|
|
1923
|
+
];
|
|
1924
|
+
return i("li", {
|
|
1925
|
+
key: `${e.value}-${t}`,
|
|
1926
|
+
id: S(t),
|
|
1927
|
+
class: n,
|
|
1928
|
+
role: "option",
|
|
1929
|
+
"aria-selected": t === O.value,
|
|
1930
|
+
"aria-disabled": e.disabled,
|
|
1931
|
+
onMousedown: (t) => {
|
|
1932
|
+
t.preventDefault(), le(e);
|
|
1933
|
+
},
|
|
1934
|
+
onMouseenter: () => {
|
|
1935
|
+
e.disabled || (O.value = t);
|
|
1936
|
+
}
|
|
1937
|
+
}, [s.option ? s.option({
|
|
1938
|
+
option: e.raw,
|
|
1939
|
+
index: t
|
|
1940
|
+
}) : e.label]);
|
|
1941
|
+
}
|
|
1942
|
+
function q() {
|
|
1943
|
+
if (!D.value) return null;
|
|
1944
|
+
let r = N.value, a = [l.e("panel"), e.popupClassName].filter(Boolean), o = {
|
|
1945
|
+
...F.value,
|
|
1946
|
+
maxHeight: `${e.popupMaxHeight}px`
|
|
1947
|
+
};
|
|
1948
|
+
return i(t, {
|
|
1949
|
+
to: re.value,
|
|
1950
|
+
disabled: !P.value
|
|
1951
|
+
}, { default: () => [i(n, {
|
|
1952
|
+
name: e.transitionName,
|
|
1953
|
+
appear: !0
|
|
1954
|
+
}, { default: () => [i("div", {
|
|
1955
|
+
ref: T,
|
|
1956
|
+
class: [a, e.classNames?.popup],
|
|
1957
|
+
style: [o, e.styles?.popup],
|
|
1958
|
+
id: x,
|
|
1959
|
+
role: "listbox"
|
|
1960
|
+
}, [r.length === 0 ? i("div", { class: l.e("empty") }, [C.value]) : i("ul", { class: l.e("options") }, [r.map((e, t) => me(e, t))])])] })] });
|
|
1961
|
+
}
|
|
1962
|
+
return () => i("div", {
|
|
1963
|
+
class: [
|
|
1964
|
+
l.b(),
|
|
1965
|
+
e.variant ? l.m(`variant-${e.variant}`) : "",
|
|
1966
|
+
e.classNames?.root
|
|
1967
|
+
],
|
|
1968
|
+
style: e.styles?.root
|
|
1969
|
+
}, [pe(), q()]);
|
|
1970
|
+
}
|
|
1971
|
+
});
|
|
1972
|
+
//#endregion
|
|
1973
|
+
//#region ../ccui/ui/auto-complete/index.ts
|
|
1974
|
+
$.install = function(e) {
|
|
1975
|
+
e.component($.name, $);
|
|
1976
|
+
};
|
|
1977
|
+
var Wt = {
|
|
1978
|
+
title: "AutoComplete 自动完成",
|
|
1979
|
+
category: "数据录入",
|
|
1980
|
+
status: "80%",
|
|
1981
|
+
install(e) {
|
|
1982
|
+
e.component($.name, $);
|
|
1983
|
+
}
|
|
1984
|
+
};
|
|
1985
|
+
//#endregion
|
|
1986
|
+
export { $ as AutoComplete, Wt as default };
|