@kernel4632/kima 0.12.2 → 0.29.0
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/dist/THIRD_PARTY_NOTICES.txt +100 -1712
- package/dist/components/containment/list-item.ce.vue_vue_type_style_index_0_scoped_fd20973a_lang.css +1 -0
- package/dist/components/containment/snackbar.ce.vue_vue_type_style_index_0_scoped_3c62e4c7_lang.css +1 -0
- package/dist/components/core/badge.ce.vue_vue_type_style_index_0_scoped_9ccfbe76_lang.css +1 -0
- package/dist/components/core/button.ce.vue_vue_type_style_index_0_scoped_1c004601_lang.css +1 -0
- package/dist/components/core/checkbox.ce.vue_vue_type_style_index_0_scoped_cc2716e6_lang.css +1 -0
- package/dist/components/core/combobox.ce.vue_vue_type_style_index_0_scoped_ba7220f2_lang.css +1 -0
- package/dist/components/core/dialog.ce.vue_vue_type_style_index_0_scoped_09f96946_lang.css +1 -0
- package/dist/components/core/divider.ce.vue_vue_type_style_index_0_scoped_a401c826_lang.css +1 -0
- package/dist/components/core/fab-menu.ce.vue_vue_type_style_index_0_scoped_7c25d968_lang.css +1 -0
- package/dist/components/core/fab.ce.vue_vue_type_style_index_0_scoped_4e1de7c1_lang.css +1 -0
- package/dist/components/core/icon.ce.vue_vue_type_style_index_0_scoped_76c47d5b_lang.css +1 -0
- package/dist/components/core/loading-indicator.ce.vue_vue_type_style_index_0_scoped_6c314bb6_lang.css +1 -0
- package/dist/components/core/menu.ce.vue_vue_type_style_index_0_scoped_16ed5f4d_lang.css +1 -0
- package/dist/components/core/morph-field.ce.vue_vue_type_style_index_0_scoped_ac757a01_lang.css +1 -0
- package/dist/components/core/progress.ce.vue_vue_type_style_index_0_scoped_2c836bfd_lang.css +1 -0
- package/dist/components/core/select.ce.vue_vue_type_style_index_0_scoped_bf4d9de4_lang.css +1 -0
- package/dist/components/core/shape.ce.vue_vue_type_style_index_0_scoped_5db1cc46_lang.css +1 -0
- package/dist/components/core/slider.ce.vue_vue_type_style_index_0_scoped_3cadd726_lang.css +1 -0
- package/dist/components/core/split-button.ce.vue_vue_type_style_index_0_scoped_a8ef75a5_lang.css +1 -0
- package/dist/components/core/switch.ce.vue_vue_type_style_index_0_scoped_5b126252_lang.css +1 -0
- package/dist/components/core/tabs.ce.vue_vue_type_style_index_0_scoped_f0ece5c6_lang.css +1 -0
- package/dist/components/core/text-field.ce.vue_vue_type_style_index_0_scoped_89a58b79_lang.css +1 -0
- package/dist/components/core/tooltip.ce.vue_vue_type_style_index_0_scoped_4fd8d52e_lang.css +1 -0
- package/dist/components/core/tree.ce.vue_vue_type_style_index_0_scoped_d1e95486_lang.css +1 -0
- package/dist/components/data/table.ce.vue_vue_type_style_index_0_scoped_de17ceaa_lang.css +1 -0
- package/dist/components/display/image.ce.vue_vue_type_style_index_0_scoped_08ac96f2_lang.css +1 -0
- package/dist/components/display/image.ce.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/components/display/skeleton.ce.vue_vue_type_style_index_0_scoped_841c5f0b_lang.css +1 -0
- package/dist/components/input/radio-group.ce.vue_vue_type_style_index_0_scoped_554d6257_lang.css +1 -0
- package/dist/components/input/textarea.ce.vue_vue_type_style_index_0_scoped_f6be6515_lang.css +1 -0
- package/dist/components/interaction/popover.ce.vue_vue_type_style_index_0_scoped_4e67e579_lang.css +1 -0
- package/dist/components/navigation/breadcrumb-item.ce.vue_vue_type_style_index_0_scoped_4c179b2f_lang.css +1 -0
- package/dist/components/navigation/breadcrumb-item.ce.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/components/navigation/breadcrumb.ce.vue_vue_type_style_index_0_scoped_f0e04345_lang.css +1 -0
- package/dist/components/navigation/collapsible.ce.vue_vue_type_style_index_0_scoped_eda74ecc_lang.css +1 -0
- package/dist/components/navigation/nav-item.ce.vue_vue_type_style_index_0_scoped_9f22b45d_lang.css +1 -0
- package/dist/kima-elements-core.js +38352 -33892
- package/dist/kima-elements.js +47432 -116752
- package/dist/kima.js +36 -139
- package/dist/style.css +37 -237
- package/dist/styles/_tokens.css +1 -1
- package/dist/styles/badge.css +1 -1
- package/dist/styles/breadcrumb-item.css +4 -0
- package/dist/styles/breadcrumb.css +1 -2
- package/dist/styles/button.css +1 -1
- package/dist/styles/checkbox.css +2 -2
- package/dist/styles/collapsible.css +2 -2
- package/dist/styles/combobox.css +2 -2
- package/dist/styles/core.css +36 -43
- package/dist/styles/dialog.css +3 -3
- package/dist/styles/divider.css +1 -1
- package/dist/styles/fab-menu.css +3 -0
- package/dist/styles/fab.css +2 -0
- package/dist/styles/icon.css +1 -1
- package/dist/styles/image.css +3 -3
- package/dist/styles/list-item.css +2 -0
- package/dist/styles/loading-indicator.css +2 -0
- package/dist/styles/menu.css +2 -2
- package/dist/styles/morph-field.css +3 -0
- package/dist/styles/nav-item.css +3 -0
- package/dist/styles/popover.css +2 -2
- package/dist/styles/progress.css +1 -1
- package/dist/styles/radio-group.css +2 -2
- package/dist/styles/select.css +2 -2
- package/dist/styles/shape.css +2 -0
- package/dist/styles/skeleton.css +1 -1
- package/dist/styles/slider.css +1 -1
- package/dist/styles/snackbar.css +3 -0
- package/dist/styles/split-button.css +3 -0
- package/dist/styles/switch.css +1 -2
- package/dist/styles/table.css +2 -2
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/text-field.css +2 -2
- package/dist/styles/textarea.css +1 -2
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/tree.css +2 -2
- package/dist/vue/components/containment/list-item.ce.js +73 -0
- package/dist/vue/components/containment/snackbar.ce.js +203 -0
- package/dist/vue/components/core/badge.ce.js +40 -27
- package/dist/vue/components/core/button.ce.js +51 -28
- package/dist/vue/components/core/checkbox.ce.js +65 -50
- package/dist/vue/components/core/combobox.ce.js +287 -227
- package/dist/vue/components/core/dialog.ce.js +52 -41
- package/dist/vue/components/core/divider.ce.js +1 -1
- package/dist/vue/components/core/fab-menu.ce.js +112 -0
- package/dist/vue/components/core/fab.ce.js +63 -0
- package/dist/vue/components/core/icon.ce.js +2 -3
- package/dist/vue/components/core/loading-indicator.ce.js +86 -0
- package/dist/vue/components/core/menu.ce.js +140 -103
- package/dist/vue/components/core/morph-field.ce.js +139 -0
- package/dist/vue/components/core/progress.ce.js +787 -24
- package/dist/vue/components/core/select.ce.js +260 -219
- package/dist/vue/components/core/shape.ce.js +19 -0
- package/dist/vue/components/core/slider.ce.js +389 -77
- package/dist/vue/components/core/split-button.ce.js +156 -0
- package/dist/vue/components/core/switch.ce.js +59 -65
- package/dist/vue/components/core/tabs.ce.js +91 -84
- package/dist/vue/components/core/text-field.ce.js +67 -95
- package/dist/vue/components/core/tooltip.ce.js +95 -96
- package/dist/vue/components/core/tree.ce.js +128 -200
- package/dist/vue/components/data/table.ce.js +249 -227
- package/dist/vue/components/display/image.ce.js +65 -121
- package/dist/vue/components/display/skeleton.ce.js +46 -33
- package/dist/vue/components/input/radio-group.ce.js +119 -53
- package/dist/vue/components/input/textarea.ce.js +124 -109
- package/dist/vue/components/interaction/popover.ce.js +78 -45
- package/dist/vue/components/navigation/breadcrumb-item.ce.js +197 -0
- package/dist/vue/components/navigation/breadcrumb.ce.js +71 -40
- package/dist/vue/components/navigation/collapsible.ce.js +45 -34
- package/dist/vue/components/navigation/nav-item.ce.js +79 -0
- package/dist/vue/internal/menu-items.js +51 -70
- package/dist/vue/utils/content-motion.js +36 -47
- package/dist/vue/utils/interaction.js +19 -68
- package/dist/vue/utils/loading-shapes.js +11 -0
- package/dist/vue/utils/motion.js +36 -40
- package/dist/vue/utils/navigation.js +1 -19
- package/dist/vue/utils/popup-manager.js +52 -0
- package/dist/vue/utils/popup-motion.js +18 -0
- package/dist/vue/utils/radius.js +81 -0
- package/dist/vue/utils/ripple.js +7 -7
- package/dist/vue/utils/shell.js +9 -24
- package/dist/vue/utils/snackbar-stack.js +57 -0
- package/package.json +2 -20
- package/dist/components/advanced-input/calendar.ce.vue_vue_type_style_index_0_scoped_43a5d854_lang.css +0 -1
- package/dist/components/advanced-input/date-range-picker.ce.vue_vue_type_style_index_0_scoped_8bcd6e19_lang.css +0 -1
- package/dist/components/advanced-input/editable.ce.vue_vue_type_style_index_0_scoped_82c96de0_lang.css +0 -1
- package/dist/components/advanced-input/mention.ce.vue_vue_type_style_index_0_scoped_e6d9ff72_lang.css +0 -1
- package/dist/components/advanced-input/range-slider.ce.vue_vue_type_style_index_0_scoped_cceb9717_lang.css +0 -1
- package/dist/components/advanced-input/time-range-picker.ce.vue_vue_type_style_index_0_scoped_52265737_lang.css +0 -1
- package/dist/components/advanced-input/transfer.ce.vue_vue_type_style_index_0_scoped_d1dddadf_lang.css +0 -1
- package/dist/components/content/chart.ce.vue_vue_type_style_index_0_scoped_b8556b1a_lang.css +0 -1
- package/dist/components/content/code-editor.ce.vue_vue_type_style_index_0_scoped_233308e5_lang.css +0 -1
- package/dist/components/content/equation.ce.vue_vue_type_style_index_0_scoped_e8f29ba6_lang.css +0 -1
- package/dist/components/content/heatmap.ce.vue_vue_type_style_index_0_scoped_c69a9531_lang.css +0 -1
- package/dist/components/content/rich-text-editor.ce.vue_vue_type_style_index_0_scoped_82e3193e_lang.css +0 -1
- package/dist/components/core/badge.ce.vue_vue_type_style_index_0_scoped_9dba943c_lang.css +0 -1
- package/dist/components/core/button-group.ce.vue_vue_type_style_index_0_scoped_8a4a723b_lang.css +0 -1
- package/dist/components/core/button.ce.vue_vue_type_style_index_0_scoped_ba403858_lang.css +0 -1
- package/dist/components/core/card.ce.vue_vue_type_style_index_0_scoped_6c915f03_lang.css +0 -1
- package/dist/components/core/cascader.ce.vue_vue_type_style_index_0_scoped_0ed26222_lang.css +0 -1
- package/dist/components/core/checkbox.ce.vue_vue_type_style_index_0_scoped_7c9707de_lang.css +0 -1
- package/dist/components/core/code-block.ce.vue_vue_type_style_index_0_scoped_7e6342e8_lang.css +0 -1
- package/dist/components/core/combobox.ce.vue_vue_type_style_index_0_scoped_6980ff65_lang.css +0 -1
- package/dist/components/core/date-picker.ce.vue_vue_type_style_index_0_scoped_f55122f3_lang.css +0 -1
- package/dist/components/core/dialog.ce.vue_vue_type_style_index_0_scoped_1b9a185c_lang.css +0 -1
- package/dist/components/core/divider.ce.vue_vue_type_style_index_0_scoped_5402a5d3_lang.css +0 -1
- package/dist/components/core/drawer.ce.vue_vue_type_style_index_0_scoped_13f2f783_lang.css +0 -1
- package/dist/components/core/empty-state.ce.vue_vue_type_style_index_0_scoped_6fcab7b8_lang.css +0 -1
- package/dist/components/core/icon-button.ce.vue_vue_type_style_index_0_scoped_a18b4478_lang.css +0 -1
- package/dist/components/core/icon.ce.vue_vue_type_style_index_0_scoped_5c94f2ca_lang.css +0 -1
- package/dist/components/core/layout.ce.vue_vue_type_style_index_0_scoped_c0d57820_lang.css +0 -1
- package/dist/components/core/menu.ce.vue_vue_type_style_index_0_scoped_597751c9_lang.css +0 -1
- package/dist/components/core/notification.ce.vue_vue_type_style_index_0_scoped_2f39bef8_lang.css +0 -1
- package/dist/components/core/pagination.ce.vue_vue_type_style_index_0_scoped_d62e7dea_lang.css +0 -1
- package/dist/components/core/progress.ce.vue_vue_type_style_index_0_scoped_84d44589_lang.css +0 -1
- package/dist/components/core/select.ce.vue_vue_type_style_index_0_scoped_f1632b10_lang.css +0 -1
- package/dist/components/core/slider.ce.vue_vue_type_style_index_0_scoped_746583af_lang.css +0 -1
- package/dist/components/core/switch.ce.vue_vue_type_style_index_0_scoped_2bcc172e_lang.css +0 -1
- package/dist/components/core/tabs.ce.vue_vue_type_style_index_0_scoped_0d322299_lang.css +0 -1
- package/dist/components/core/text-field.ce.vue_vue_type_style_index_0_scoped_f22e5c02_lang.css +0 -1
- package/dist/components/core/time-picker.ce.vue_vue_type_style_index_0_scoped_afd1d777_lang.css +0 -1
- package/dist/components/core/tooltip.ce.vue_vue_type_style_index_0_scoped_2c931a6a_lang.css +0 -1
- package/dist/components/core/tree.ce.vue_vue_type_style_index_0_scoped_5401eef6_lang.css +0 -1
- package/dist/components/core/virtual-scroll.ce.vue_vue_type_style_index_0_scoped_8f7f579b_lang.css +0 -1
- package/dist/components/data/copy-button.ce.vue_vue_type_style_index_0_scoped_701ad4fb_lang.css +0 -1
- package/dist/components/data/image-preview.ce.vue_vue_type_style_index_0_scoped_17e80131_lang.css +0 -1
- package/dist/components/data/infinite-scroll.ce.vue_vue_type_style_index_0_scoped_5f784d27_lang.css +0 -1
- package/dist/components/data/long-text.ce.vue_vue_type_style_index_0_scoped_6bad870b_lang.css +0 -1
- package/dist/components/data/relative-time.ce.vue_vue_type_style_index_0_scoped_903b71ea_lang.css +0 -1
- package/dist/components/data/ring-progress.ce.vue_vue_type_style_index_0_scoped_15220fc3_lang.css +0 -1
- package/dist/components/data/table.ce.vue_vue_type_style_index_0_scoped_6c1cc7d1_lang.css +0 -1
- package/dist/components/data/virtual-table.ce.vue_vue_type_style_index_0_scoped_bc80a44c_lang.css +0 -1
- package/dist/components/data/virtual-tree.ce.vue_vue_type_style_index_0_scoped_5d8790bf_lang.css +0 -1
- package/dist/components/display/alert.ce.vue_vue_type_style_index_0_scoped_d31c4df3_lang.css +0 -1
- package/dist/components/display/avatar-group.ce.vue_vue_type_style_index_0_scoped_9545415b_lang.css +0 -1
- package/dist/components/display/avatar.ce.vue_vue_type_style_index_0_scoped_eb8fc9ea_lang.css +0 -1
- package/dist/components/display/blockquote.ce.vue_vue_type_style_index_0_scoped_e56b05b8_lang.css +0 -1
- package/dist/components/display/countdown.ce.vue_vue_type_style_index_0_scoped_7f10ca60_lang.css +0 -1
- package/dist/components/display/descriptions.ce.vue_vue_type_style_index_0_scoped_501a9489_lang.css +0 -1
- package/dist/components/display/highlight.ce.vue_vue_type_style_index_0_scoped_f876f7db_lang.css +0 -1
- package/dist/components/display/image.ce.vue_vue_type_style_index_0_scoped_d16b864e_lang.css +0 -1
- package/dist/components/display/list.ce.vue_vue_type_style_index_0_scoped_1b1702a6_lang.css +0 -1
- package/dist/components/display/result.ce.vue_vue_type_style_index_0_scoped_f08cf21f_lang.css +0 -1
- package/dist/components/display/skeleton.ce.vue_vue_type_style_index_0_scoped_92807af5_lang.css +0 -1
- package/dist/components/display/spinner.ce.vue_vue_type_style_index_0_scoped_d7ff1dc3_lang.css +0 -1
- package/dist/components/display/statistic.ce.vue_vue_type_style_index_0_scoped_cc8448a6_lang.css +0 -1
- package/dist/components/display/timeline.ce.vue_vue_type_style_index_0_scoped_3cffd2b4_lang.css +0 -1
- package/dist/components/form-completion/angle-slider.ce.vue_vue_type_style_index_0_scoped_924c5f0d_lang.css +0 -1
- package/dist/components/form-completion/color-picker.ce.vue_vue_type_style_index_0_scoped_04812c30_lang.css +0 -1
- package/dist/components/form-completion/date-field.ce.vue_vue_type_style_index_0_scoped_7c8a7c79_lang.css +0 -1
- package/dist/components/form-completion/dynamic-input.ce.vue_vue_type_style_index_0_scoped_6a5bc26a_lang.css +0 -1
- package/dist/components/form-completion/form.ce.vue_vue_type_style_index_0_scoped_f8f70e6f_lang.css +0 -1
- package/dist/components/form-completion/json-input.ce.vue_vue_type_style_index_0_scoped_15a17728_lang.css +0 -1
- package/dist/components/form-completion/masked-input.ce.vue_vue_type_style_index_0_scoped_f96e752a_lang.css +0 -1
- package/dist/components/form-completion/period-picker.ce.vue_vue_type_style_index_0_scoped_28cc9011_lang.css +0 -1
- package/dist/components/form-completion/time-field.ce.vue_vue_type_style_index_0_scoped_b6533524_lang.css +0 -1
- package/dist/components/form-completion/upload-manager.ce.vue_vue_type_style_index_0_scoped_fe810c3a_lang.css +0 -1
- package/dist/components/foundation/banner.ce.vue_vue_type_style_index_0_scoped_57ba332a_lang.css +0 -1
- package/dist/components/foundation/error-state.ce.vue_vue_type_style_index_0_scoped_20c2aa5d_lang.css +0 -1
- package/dist/components/foundation/field-group.ce.vue_vue_type_style_index_0_scoped_144ed12e_lang.css +0 -1
- package/dist/components/foundation/flex.ce.vue_vue_type_style_index_0_scoped_317459cf_lang.css +0 -1
- package/dist/components/foundation/grid.ce.vue_vue_type_style_index_0_scoped_c1ea1f88_lang.css +0 -1
- package/dist/components/foundation/input-group.ce.vue_vue_type_style_index_0_scoped_5729e4c1_lang.css +0 -1
- package/dist/components/foundation/page-header.ce.vue_vue_type_style_index_0_scoped_819de002_lang.css +0 -1
- package/dist/components/foundation/time-display.ce.vue_vue_type_style_index_0_scoped_31f1f739_lang.css +0 -1
- package/dist/components/foundation/typography.ce.vue_vue_type_style_index_0_scoped_d92fa782_lang.css +0 -1
- package/dist/components/input/checkbox-group.ce.vue_vue_type_style_index_0_scoped_f017d36a_lang.css +0 -1
- package/dist/components/input/field.ce.vue_vue_type_style_index_0_scoped_a01eded5_lang.css +0 -1
- package/dist/components/input/file-upload.ce.vue_vue_type_style_index_0_scoped_8fd77a68_lang.css +0 -1
- package/dist/components/input/number-field.ce.vue_vue_type_style_index_0_scoped_9eb508b4_lang.css +0 -1
- package/dist/components/input/pin-input.ce.vue_vue_type_style_index_0_scoped_0d93e989_lang.css +0 -1
- package/dist/components/input/radio-group.ce.vue_vue_type_style_index_0_scoped_fe3edf34_lang.css +0 -1
- package/dist/components/input/rating.ce.vue_vue_type_style_index_0_scoped_23c50b69_lang.css +0 -1
- package/dist/components/input/tags-input.ce.vue_vue_type_style_index_0_scoped_b46618b2_lang.css +0 -1
- package/dist/components/input/textarea.ce.vue_vue_type_style_index_0_scoped_60d0751b_lang.css +0 -1
- package/dist/components/input/toggle.ce.vue_vue_type_style_index_0_scoped_a289ae32_lang.css +0 -1
- package/dist/components/interaction/chip.ce.vue_vue_type_style_index_0_scoped_541c9ed1_lang.css +0 -1
- package/dist/components/interaction/command.ce.vue_vue_type_style_index_0_scoped_11d4f240_lang.css +0 -1
- package/dist/components/interaction/context-menu.ce.vue_vue_type_style_index_0_scoped_35d2336c_lang.css +0 -1
- package/dist/components/interaction/hover-card.ce.vue_vue_type_style_index_0_scoped_0517aad7_lang.css +0 -1
- package/dist/components/interaction/loading-overlay.ce.vue_vue_type_style_index_0_scoped_8dd7d4aa_lang.css +0 -1
- package/dist/components/interaction/menubar.ce.vue_vue_type_style_index_0_scoped_c4c69411_lang.css +0 -1
- package/dist/components/interaction/multi-select.ce.vue_vue_type_style_index_0_scoped_0b8ec686_lang.css +0 -1
- package/dist/components/interaction/popconfirm.ce.vue_vue_type_style_index_0_scoped_fae7c69d_lang.css +0 -1
- package/dist/components/interaction/popover.ce.vue_vue_type_style_index_0_scoped_be7411d6_lang.css +0 -1
- package/dist/components/interaction/tree-select.ce.vue_vue_type_style_index_0_scoped_46d37539_lang.css +0 -1
- package/dist/components/navigation/accordion.ce.vue_vue_type_style_index_0_scoped_19d76e75_lang.css +0 -1
- package/dist/components/navigation/anchor.ce.vue_vue_type_style_index_0_scoped_b3311001_lang.css +0 -1
- package/dist/components/navigation/back-top.ce.vue_vue_type_style_index_0_scoped_231687a3_lang.css +0 -1
- package/dist/components/navigation/breadcrumb.ce.vue_vue_type_style_index_0_scoped_2a2cd6e2_lang.css +0 -1
- package/dist/components/navigation/carousel.ce.vue_vue_type_style_index_0_scoped_f2081ae5_lang.css +0 -1
- package/dist/components/navigation/collapsible.ce.vue_vue_type_style_index_0_scoped_f3cd40e5_lang.css +0 -1
- package/dist/components/navigation/link.ce.vue_vue_type_style_index_0_scoped_24e2c032_lang.css +0 -1
- package/dist/components/navigation/navigation-menu.ce.vue_vue_type_style_index_0_scoped_5a0a5b21_lang.css +0 -1
- package/dist/components/navigation/overflow-list.ce.vue_vue_type_style_index_0_scoped_b6fec7f9_lang.css +0 -1
- package/dist/components/navigation/scroll-area.ce.vue_vue_type_style_index_0_scoped_78178cc3_lang.css +0 -1
- package/dist/components/navigation/splitter.ce.vue_vue_type_style_index_0_scoped_0fbcfa40_lang.css +0 -1
- package/dist/components/navigation/stepper.ce.vue_vue_type_style_index_0_scoped_1c703cd8_lang.css +0 -1
- package/dist/components/navigation/toolbar.ce.vue_vue_type_style_index_0_scoped_327b9928_lang.css +0 -1
- package/dist/components/navigation/visually-hidden.ce.vue_vue_type_style_index_0_scoped_2cc27184_lang.css +0 -1
- package/dist/components/shell/app-shell.ce.vue_vue_type_style_index_0_scoped_37292ba0_lang.css +0 -1
- package/dist/components/shell/config-provider.ce.vue_vue_type_style_index_0_scoped_d9085095_lang.css +0 -1
- package/dist/components/shell/marquee.ce.vue_vue_type_style_index_0_scoped_ac73236c_lang.css +0 -1
- package/dist/components/shell/masonry.ce.vue_vue_type_style_index_0_scoped_2fe32054_lang.css +0 -1
- package/dist/components/shell/sidebar.ce.vue_vue_type_style_index_0_scoped_f50127b6_lang.css +0 -1
- package/dist/components/utility/affix.ce.vue_vue_type_style_index_0_scoped_f21e108b_lang.css +0 -1
- package/dist/components/utility/alert-dialog.ce.vue_vue_type_style_index_0_scoped_6136c7fb_lang.css +0 -1
- package/dist/components/utility/animated-number.ce.vue_vue_type_style_index_0_scoped_23564574_lang.css +0 -1
- package/dist/components/utility/float-button.ce.vue_vue_type_style_index_0_scoped_1edb2eb1_lang.css +0 -1
- package/dist/components/utility/listbox.ce.vue_vue_type_style_index_0_scoped_8eab8b73_lang.css +0 -1
- package/dist/components/utility/loading-bar.ce.vue_vue_type_style_index_0_scoped_4109ea9a_lang.css +0 -1
- package/dist/components/utility/log-viewer.ce.vue_vue_type_style_index_0_scoped_f5be4658_lang.css +0 -1
- package/dist/components/utility/notification-queue.ce.vue_vue_type_style_index_0_scoped_75bf46e7_lang.css +0 -1
- package/dist/components/utility/progress-group.ce.vue_vue_type_style_index_0_scoped_d4453504_lang.css +0 -1
- package/dist/components/utility/qr-code.ce.vue_vue_type_style_index_0_scoped_3ef776fe_lang.css +0 -1
- package/dist/components/utility/tag-group.ce.vue_vue_type_style_index_0_scoped_de9894bd_lang.css +0 -1
- package/dist/components/utility/tour.ce.vue_vue_type_style_index_0_scoped_b5823fc3_lang.css +0 -1
- package/dist/components/utility/virtual-select.ce.vue_vue_type_style_index_0_scoped_d1821f4c_lang.css +0 -1
- package/dist/components/utility/watermark.ce.vue_vue_type_style_index_0_scoped_62e7022f_lang.css +0 -1
- package/dist/kima-theme.js +0 -1589
- package/dist/styles/accordion.css +0 -4
- package/dist/styles/affix.css +0 -2
- package/dist/styles/alert-dialog.css +0 -5
- package/dist/styles/alert.css +0 -4
- package/dist/styles/anchor.css +0 -3
- package/dist/styles/angle-slider.css +0 -2
- package/dist/styles/animated-number.css +0 -2
- package/dist/styles/app-shell.css +0 -6
- package/dist/styles/avatar-group.css +0 -4
- package/dist/styles/avatar.css +0 -3
- package/dist/styles/back-top.css +0 -3
- package/dist/styles/banner.css +0 -4
- package/dist/styles/blockquote.css +0 -3
- package/dist/styles/button-group.css +0 -3
- package/dist/styles/calendar.css +0 -2
- package/dist/styles/card.css +0 -2
- package/dist/styles/carousel.css +0 -5
- package/dist/styles/cascader.css +0 -3
- package/dist/styles/chart.css +0 -3
- package/dist/styles/checkbox-group.css +0 -3
- package/dist/styles/chip.css +0 -5
- package/dist/styles/code-block.css +0 -5
- package/dist/styles/code-editor.css +0 -5
- package/dist/styles/color-picker.css +0 -2
- package/dist/styles/command.css +0 -5
- package/dist/styles/config-provider.css +0 -2
- package/dist/styles/context-menu.css +0 -3
- package/dist/styles/copy-button.css +0 -3
- package/dist/styles/countdown.css +0 -2
- package/dist/styles/date-field.css +0 -2
- package/dist/styles/date-picker.css +0 -3
- package/dist/styles/date-range-picker.css +0 -4
- package/dist/styles/descriptions.css +0 -2
- package/dist/styles/drawer.css +0 -3
- package/dist/styles/dynamic-input.css +0 -6
- package/dist/styles/editable.css +0 -3
- package/dist/styles/empty-state.css +0 -2
- package/dist/styles/equation.css +0 -2
- package/dist/styles/error-state.css +0 -4
- package/dist/styles/field-group.css +0 -2
- package/dist/styles/field.css +0 -2
- package/dist/styles/file-upload.css +0 -5
- package/dist/styles/flex.css +0 -2
- package/dist/styles/float-button.css +0 -4
- package/dist/styles/form.css +0 -2
- package/dist/styles/grid.css +0 -2
- package/dist/styles/heatmap.css +0 -3
- package/dist/styles/highlight.css +0 -2
- package/dist/styles/hover-card.css +0 -3
- package/dist/styles/icon-button.css +0 -3
- package/dist/styles/image-preview.css +0 -6
- package/dist/styles/infinite-scroll.css +0 -4
- package/dist/styles/input-group.css +0 -2
- package/dist/styles/json-input.css +0 -3
- package/dist/styles/layout.css +0 -2
- package/dist/styles/link.css +0 -2
- package/dist/styles/list.css +0 -2
- package/dist/styles/listbox.css +0 -3
- package/dist/styles/loading-bar.css +0 -2
- package/dist/styles/loading-overlay.css +0 -3
- package/dist/styles/log-viewer.css +0 -6
- package/dist/styles/long-text.css +0 -3
- package/dist/styles/marquee.css +0 -3
- package/dist/styles/masked-input.css +0 -2
- package/dist/styles/masonry.css +0 -2
- package/dist/styles/mention.css +0 -2
- package/dist/styles/menubar.css +0 -4
- package/dist/styles/multi-select.css +0 -6
- package/dist/styles/navigation-menu.css +0 -5
- package/dist/styles/notification-queue.css +0 -4
- package/dist/styles/notification.css +0 -3
- package/dist/styles/number-field.css +0 -3
- package/dist/styles/overflow-list.css +0 -3
- package/dist/styles/page-header.css +0 -2
- package/dist/styles/pagination.css +0 -3
- package/dist/styles/period-picker.css +0 -2
- package/dist/styles/pin-input.css +0 -2
- package/dist/styles/popconfirm.css +0 -4
- package/dist/styles/progress-group.css +0 -3
- package/dist/styles/qr-code.css +0 -2
- package/dist/styles/range-slider.css +0 -2
- package/dist/styles/rating.css +0 -4
- package/dist/styles/relative-time.css +0 -2
- package/dist/styles/result.css +0 -3
- package/dist/styles/rich-text-editor.css +0 -6
- package/dist/styles/ring-progress.css +0 -2
- package/dist/styles/scroll-area.css +0 -2
- package/dist/styles/sidebar.css +0 -9
- package/dist/styles/spinner.css +0 -2
- package/dist/styles/splitter.css +0 -2
- package/dist/styles/statistic.css +0 -2
- package/dist/styles/stepper.css +0 -3
- package/dist/styles/tag-group.css +0 -6
- package/dist/styles/tags-input.css +0 -3
- package/dist/styles/time-display.css +0 -2
- package/dist/styles/time-field.css +0 -2
- package/dist/styles/time-picker.css +0 -3
- package/dist/styles/time-range-picker.css +0 -2
- package/dist/styles/timeline.css +0 -3
- package/dist/styles/toggle.css +0 -2
- package/dist/styles/toolbar.css +0 -2
- package/dist/styles/tour.css +0 -3
- package/dist/styles/transfer.css +0 -3
- package/dist/styles/tree-select.css +0 -6
- package/dist/styles/typography.css +0 -2
- package/dist/styles/upload-manager.css +0 -7
- package/dist/styles/virtual-scroll.css +0 -2
- package/dist/styles/virtual-select.css +0 -2
- package/dist/styles/virtual-table.css +0 -4
- package/dist/styles/virtual-tree.css +0 -3
- package/dist/styles/visually-hidden.css +0 -2
- package/dist/styles/watermark.css +0 -2
- package/dist/vue/components/advanced-input/calendar.ce.js +0 -216
- package/dist/vue/components/advanced-input/date-range-picker.ce.js +0 -224
- package/dist/vue/components/advanced-input/editable.ce.js +0 -161
- package/dist/vue/components/advanced-input/mention.ce.js +0 -181
- package/dist/vue/components/advanced-input/range-slider.ce.js +0 -111
- package/dist/vue/components/advanced-input/time-range-picker.ce.js +0 -120
- package/dist/vue/components/advanced-input/transfer.ce.js +0 -192
- package/dist/vue/components/content/chart.ce.js +0 -282
- package/dist/vue/components/content/code-editor.ce.js +0 -314
- package/dist/vue/components/content/equation.ce.js +0 -69
- package/dist/vue/components/content/heatmap.ce.js +0 -148
- package/dist/vue/components/content/rich-text-editor.ce.js +0 -346
- package/dist/vue/components/core/button-group.ce.js +0 -142
- package/dist/vue/components/core/card.ce.js +0 -73
- package/dist/vue/components/core/cascader.ce.js +0 -329
- package/dist/vue/components/core/code-block.ce.js +0 -131
- package/dist/vue/components/core/date-picker.ce.js +0 -433
- package/dist/vue/components/core/drawer.ce.js +0 -234
- package/dist/vue/components/core/empty-state.ce.js +0 -58
- package/dist/vue/components/core/icon-button.ce.js +0 -93
- package/dist/vue/components/core/layout.ce.js +0 -68
- package/dist/vue/components/core/notification.ce.js +0 -189
- package/dist/vue/components/core/pagination.ce.js +0 -158
- package/dist/vue/components/core/time-picker.ce.js +0 -486
- package/dist/vue/components/core/virtual-scroll.ce.js +0 -176
- package/dist/vue/components/data/copy-button.ce.js +0 -75
- package/dist/vue/components/data/image-preview.ce.js +0 -226
- package/dist/vue/components/data/infinite-scroll.ce.js +0 -126
- package/dist/vue/components/data/long-text.ce.js +0 -70
- package/dist/vue/components/data/relative-time.ce.js +0 -77
- package/dist/vue/components/data/ring-progress.ce.js +0 -87
- package/dist/vue/components/data/virtual-table.ce.js +0 -178
- package/dist/vue/components/data/virtual-tree.ce.js +0 -213
- package/dist/vue/components/display/alert.ce.js +0 -101
- package/dist/vue/components/display/avatar-group.ce.js +0 -65
- package/dist/vue/components/display/avatar.ce.js +0 -84
- package/dist/vue/components/display/blockquote.ce.js +0 -44
- package/dist/vue/components/display/countdown.ce.js +0 -77
- package/dist/vue/components/display/descriptions.ce.js +0 -43
- package/dist/vue/components/display/highlight.ce.js +0 -48
- package/dist/vue/components/display/list.ce.js +0 -73
- package/dist/vue/components/display/result.ce.js +0 -57
- package/dist/vue/components/display/spinner.ce.js +0 -42
- package/dist/vue/components/display/statistic.ce.js +0 -71
- package/dist/vue/components/display/timeline.ce.js +0 -60
- package/dist/vue/components/form-completion/angle-slider.ce.js +0 -103
- package/dist/vue/components/form-completion/color-picker.ce.js +0 -286
- package/dist/vue/components/form-completion/date-field.ce.js +0 -131
- package/dist/vue/components/form-completion/dynamic-input.ce.js +0 -171
- package/dist/vue/components/form-completion/form.ce.js +0 -248
- package/dist/vue/components/form-completion/json-input.ce.js +0 -114
- package/dist/vue/components/form-completion/masked-input.ce.js +0 -88
- package/dist/vue/components/form-completion/period-picker.ce.js +0 -147
- package/dist/vue/components/form-completion/time-field.ce.js +0 -120
- package/dist/vue/components/form-completion/upload-manager.ce.js +0 -232
- package/dist/vue/components/foundation/banner.ce.js +0 -106
- package/dist/vue/components/foundation/error-state.ce.js +0 -108
- package/dist/vue/components/foundation/field-group.ce.js +0 -146
- package/dist/vue/components/foundation/flex.ce.js +0 -60
- package/dist/vue/components/foundation/grid.ce.js +0 -52
- package/dist/vue/components/foundation/input-group.ce.js +0 -34
- package/dist/vue/components/foundation/page-header.ce.js +0 -55
- package/dist/vue/components/foundation/time-display.ce.js +0 -129
- package/dist/vue/components/foundation/typography.ce.js +0 -71
- package/dist/vue/components/input/checkbox-group.ce.js +0 -93
- package/dist/vue/components/input/field.ce.js +0 -76
- package/dist/vue/components/input/file-upload.ce.js +0 -154
- package/dist/vue/components/input/number-field.ce.js +0 -103
- package/dist/vue/components/input/pin-input.ce.js +0 -112
- package/dist/vue/components/input/rating.ce.js +0 -115
- package/dist/vue/components/input/tags-input.ce.js +0 -159
- package/dist/vue/components/input/toggle.ce.js +0 -58
- package/dist/vue/components/interaction/chip.ce.js +0 -95
- package/dist/vue/components/interaction/command.ce.js +0 -161
- package/dist/vue/components/interaction/context-menu.ce.js +0 -113
- package/dist/vue/components/interaction/hover-card.ce.js +0 -92
- package/dist/vue/components/interaction/loading-overlay.ce.js +0 -70
- package/dist/vue/components/interaction/menubar.ce.js +0 -134
- package/dist/vue/components/interaction/multi-select.ce.js +0 -271
- package/dist/vue/components/interaction/popconfirm.ce.js +0 -95
- package/dist/vue/components/interaction/tree-select.ce.js +0 -195
- package/dist/vue/components/navigation/accordion.ce.js +0 -114
- package/dist/vue/components/navigation/anchor.ce.js +0 -125
- package/dist/vue/components/navigation/back-top.ce.js +0 -67
- package/dist/vue/components/navigation/carousel.ce.js +0 -128
- package/dist/vue/components/navigation/link.ce.js +0 -62
- package/dist/vue/components/navigation/navigation-menu.ce.js +0 -91
- package/dist/vue/components/navigation/overflow-list.ce.js +0 -67
- package/dist/vue/components/navigation/scroll-area.ce.js +0 -47
- package/dist/vue/components/navigation/splitter.ce.js +0 -131
- package/dist/vue/components/navigation/stepper.ce.js +0 -74
- package/dist/vue/components/navigation/toolbar.ce.js +0 -93
- package/dist/vue/components/navigation/visually-hidden.ce.js +0 -16
- package/dist/vue/components/shell/app-shell.ce.js +0 -98
- package/dist/vue/components/shell/config-provider.ce.js +0 -110
- package/dist/vue/components/shell/marquee.ce.js +0 -92
- package/dist/vue/components/shell/masonry.ce.js +0 -50
- package/dist/vue/components/shell/sidebar.ce.js +0 -136
- package/dist/vue/components/utility/affix.ce.js +0 -64
- package/dist/vue/components/utility/alert-dialog.ce.js +0 -124
- package/dist/vue/components/utility/animated-number.ce.js +0 -66
- package/dist/vue/components/utility/float-button.ce.js +0 -104
- package/dist/vue/components/utility/listbox.ce.js +0 -102
- package/dist/vue/components/utility/loading-bar.ce.js +0 -85
- package/dist/vue/components/utility/log-viewer.ce.js +0 -141
- package/dist/vue/components/utility/notification-queue.ce.js +0 -122
- package/dist/vue/components/utility/progress-group.ce.js +0 -63
- package/dist/vue/components/utility/qr-code.ce.js +0 -62
- package/dist/vue/components/utility/tag-group.ce.js +0 -127
- package/dist/vue/components/utility/tour.ce.js +0 -214
- package/dist/vue/components/utility/virtual-select.ce.js +0 -207
- package/dist/vue/components/utility/watermark.ce.js +0 -44
- package/dist/vue/internal/navigation-items.js +0 -110
- package/dist/vue/utils/code-highlight.js +0 -142
- package/dist/vue/utils/collection.js +0 -15
- package/dist/vue/utils/config.js +0 -47
- package/dist/vue/utils/content.js +0 -83
- package/dist/vue/utils/display-status.js +0 -31
- package/dist/vue/utils/foundation.js +0 -65
- package/dist/vue/utils/local-date.js +0 -48
- package/dist/vue/utils/notifications.js +0 -60
- package/dist/vue/utils/qr.js +0 -20
- package/dist/vue/utils/scoped-slots.js +0 -22
- package/dist/vue/utils/theme.js +0 -56
- package/dist/vue/utils/utility-choice.js +0 -56
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "../core/button.ce.js";
|
|
3
|
-
import ee from "../core/icon.ce.js";
|
|
4
|
-
import { presenceTransition as n } from "../../utils/motion.js";
|
|
5
|
-
import { dismissInteraction as r, flattenChoices as te, useInteractionModel as i, useInteractionReset as ne, useInteractionRoot as a, usePlacement as o } from "../../utils/interaction.js";
|
|
6
|
-
import s from "../core/icon-button.ce.js";
|
|
7
|
-
import c from "../core/tree.ce.js";
|
|
8
|
-
/* empty css */
|
|
9
|
-
import { Fragment as l, Transition as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, mergeProps as v, nextTick as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, vModelSelect as re, watch as ie, withCtx as T, withDirectives as ae, withKeys as oe, withModifiers as E } from "vue";
|
|
10
|
-
import { PopoverContent as D, PopoverRoot as O, PopoverTrigger as k } from "reka-ui";
|
|
11
|
-
import { Cancel01Icon as A } from "@hugeicons/core-free-icons";
|
|
12
|
-
// src/components/interaction/tree-select.ce.vue
|
|
13
|
-
var j = { class: "kima-tree-select__control" }, M = [
|
|
14
|
-
"multiple",
|
|
15
|
-
"name",
|
|
16
|
-
"required",
|
|
17
|
-
"disabled"
|
|
18
|
-
], N = {
|
|
19
|
-
key: 0,
|
|
20
|
-
value: ""
|
|
21
|
-
}, P = [
|
|
22
|
-
"value",
|
|
23
|
-
"data-index",
|
|
24
|
-
"disabled"
|
|
25
|
-
], F = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
26
|
-
__name: "tree-select.ce",
|
|
27
|
-
props: {
|
|
28
|
-
modelValue: {
|
|
29
|
-
type: [
|
|
30
|
-
String,
|
|
31
|
-
Number,
|
|
32
|
-
Boolean,
|
|
33
|
-
Array
|
|
34
|
-
],
|
|
35
|
-
default: null
|
|
36
|
-
},
|
|
37
|
-
open: Boolean,
|
|
38
|
-
expanded: {
|
|
39
|
-
type: Array,
|
|
40
|
-
default: () => []
|
|
41
|
-
},
|
|
42
|
-
items: {
|
|
43
|
-
type: Array,
|
|
44
|
-
default: () => []
|
|
45
|
-
},
|
|
46
|
-
multiple: Boolean,
|
|
47
|
-
clearable: Boolean,
|
|
48
|
-
disabled: Boolean,
|
|
49
|
-
name: String,
|
|
50
|
-
required: Boolean,
|
|
51
|
-
label: {
|
|
52
|
-
type: String,
|
|
53
|
-
default: "树选择"
|
|
54
|
-
},
|
|
55
|
-
placeholder: {
|
|
56
|
-
type: String,
|
|
57
|
-
default: "请选择节点"
|
|
58
|
-
},
|
|
59
|
-
placement: {
|
|
60
|
-
type: String,
|
|
61
|
-
default: "bottom-start"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
emits: [
|
|
65
|
-
"update:modelValue",
|
|
66
|
-
"update:open",
|
|
67
|
-
"update:expanded",
|
|
68
|
-
"change"
|
|
69
|
-
],
|
|
70
|
-
setup(e, { emit: F }) {
|
|
71
|
-
let I = e, L = F, { root: R, attrs: z, forwardedAttrs: B } = a(), [V, H] = i(I, "modelValue", L), [U, W] = i(I, "open", L), [G, K] = i(I, "expanded", L), se = o(I), q = x(null), J = d(() => te(I.items)), Y = d(() => I.multiple ? Array.isArray(V.value) ? V.value : [] : V.value == null ? [] : [V.value]), X = d(() => J.value.filter((e) => Y.value.includes(e.value)));
|
|
72
|
-
function Z(e) {
|
|
73
|
-
e && I.disabled || W(e);
|
|
74
|
-
}
|
|
75
|
-
function Q(e) {
|
|
76
|
-
I.disabled || (H(e), L("change", e), I.multiple || Z(!1));
|
|
77
|
-
}
|
|
78
|
-
function ce() {
|
|
79
|
-
Q(I.multiple ? [] : null), y(() => {
|
|
80
|
-
U.value || R.value?.querySelector("button")?.focus();
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function le(e) {
|
|
84
|
-
e.preventDefault(), y(() => {
|
|
85
|
-
(q.value?.$el || q.value)?.querySelector("[role=\"treeitem\"][tabindex=\"0\"]")?.focus();
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
let $ = d({
|
|
89
|
-
get: () => I.multiple ? Y.value.map(String) : Y.value.length ? String(Y.value[0]) : "",
|
|
90
|
-
set: (e) => {
|
|
91
|
-
let t = (Array.isArray(e) ? e : [e]).map((e) => J.value.find((t) => String(t.value) === e)?.value).filter((e) => e !== void 0);
|
|
92
|
-
Q(I.multiple ? t : t[0] ?? null);
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
return ne(R, V, H, () => Z(!1)), ie(() => I.disabled, (e) => {
|
|
96
|
-
e && Z(!1);
|
|
97
|
-
}), (te, i) => (b(), m("div", v({
|
|
98
|
-
ref_key: "root",
|
|
99
|
-
ref: R
|
|
100
|
-
}, w(B), { class: "kima-tree-select" }), [h("div", j, [_(w(O), {
|
|
101
|
-
open: w(U) && !e.disabled,
|
|
102
|
-
modal: !1,
|
|
103
|
-
"onUpdate:open": Z
|
|
104
|
-
}, {
|
|
105
|
-
default: T(() => [_(w(k), { "as-child": "" }, {
|
|
106
|
-
default: T(() => [_(t, {
|
|
107
|
-
variant: "tonal",
|
|
108
|
-
disabled: e.disabled,
|
|
109
|
-
"aria-label": w(z)["aria-label"] || e.label,
|
|
110
|
-
"aria-required": e.required || void 0,
|
|
111
|
-
onKeydown: i[0] ||= oe(E((e) => Z(!0), ["prevent"]), ["down"])
|
|
112
|
-
}, {
|
|
113
|
-
default: T(() => [g(C(X.value.length ? X.value.map((e) => e.label).join("、") : e.placeholder), 1)]),
|
|
114
|
-
_: 1
|
|
115
|
-
}, 8, [
|
|
116
|
-
"disabled",
|
|
117
|
-
"aria-label",
|
|
118
|
-
"aria-required"
|
|
119
|
-
])]),
|
|
120
|
-
_: 1
|
|
121
|
-
}), _(u, v({ name: "kima-popup" }, w(n)), {
|
|
122
|
-
default: T(() => [w(U) && !e.disabled ? (b(), f(w(D), v({
|
|
123
|
-
key: 0,
|
|
124
|
-
"force-mount": ""
|
|
125
|
-
}, w(se), {
|
|
126
|
-
class: "kima-tree-select__popup",
|
|
127
|
-
inert: !w(U) || e.disabled,
|
|
128
|
-
"aria-hidden": !w(U) || e.disabled || void 0,
|
|
129
|
-
"aria-label": e.label,
|
|
130
|
-
onOpenAutoFocus: le,
|
|
131
|
-
onEscapeKeyDown: i[1] ||= (e) => w(r)(e, () => Z(!1))
|
|
132
|
-
}), {
|
|
133
|
-
default: T(() => [_(c, {
|
|
134
|
-
ref_key: "panel",
|
|
135
|
-
ref: q,
|
|
136
|
-
items: e.items,
|
|
137
|
-
"model-value": w(V),
|
|
138
|
-
expanded: w(G),
|
|
139
|
-
multiple: e.multiple,
|
|
140
|
-
selectable: "",
|
|
141
|
-
"aria-label": e.label,
|
|
142
|
-
"onUpdate:modelValue": Q,
|
|
143
|
-
"onUpdate:expanded": w(K)
|
|
144
|
-
}, null, 8, [
|
|
145
|
-
"items",
|
|
146
|
-
"model-value",
|
|
147
|
-
"expanded",
|
|
148
|
-
"multiple",
|
|
149
|
-
"aria-label",
|
|
150
|
-
"onUpdate:expanded"
|
|
151
|
-
])]),
|
|
152
|
-
_: 1
|
|
153
|
-
}, 16, [
|
|
154
|
-
"inert",
|
|
155
|
-
"aria-hidden",
|
|
156
|
-
"aria-label"
|
|
157
|
-
])) : p("", !0)]),
|
|
158
|
-
_: 1
|
|
159
|
-
}, 16)]),
|
|
160
|
-
_: 1
|
|
161
|
-
}, 8, ["open"]), _(u, v({ name: "kima-fade" }, w(n)), {
|
|
162
|
-
default: T(() => [e.clearable && X.value.length ? (b(), f(s, {
|
|
163
|
-
key: 0,
|
|
164
|
-
label: "清除选择",
|
|
165
|
-
disabled: e.disabled,
|
|
166
|
-
onClick: ce
|
|
167
|
-
}, {
|
|
168
|
-
default: T(() => [_(ee, {
|
|
169
|
-
icon: w(A),
|
|
170
|
-
size: 20
|
|
171
|
-
}, null, 8, ["icon"])]),
|
|
172
|
-
_: 1
|
|
173
|
-
}, 8, ["disabled"])) : p("", !0)]),
|
|
174
|
-
_: 1
|
|
175
|
-
}, 16)]), ae(h("select", {
|
|
176
|
-
"onUpdate:modelValue": i[2] ||= (e) => $.value = e,
|
|
177
|
-
class: "kima-tree-select__native",
|
|
178
|
-
multiple: e.multiple,
|
|
179
|
-
name: e.name,
|
|
180
|
-
required: e.required,
|
|
181
|
-
disabled: e.disabled,
|
|
182
|
-
tabindex: "-1",
|
|
183
|
-
"aria-hidden": "true",
|
|
184
|
-
onInput: i[3] ||= E(() => {}, ["stop"]),
|
|
185
|
-
onChange: i[4] ||= E(() => {}, ["stop"]),
|
|
186
|
-
onInvalid: i[5] ||= E((e) => w(R)?.querySelector("button")?.focus(), ["prevent"])
|
|
187
|
-
}, [e.multiple ? p("", !0) : (b(), m("option", N)), (b(!0), m(l, null, S(J.value, (e, t) => (b(), m("option", {
|
|
188
|
-
key: e.value,
|
|
189
|
-
value: String(e.value),
|
|
190
|
-
"data-index": t,
|
|
191
|
-
disabled: e.disabled
|
|
192
|
-
}, C(e.label), 9, P))), 128))], 40, M), [[re, $.value]])], 16));
|
|
193
|
-
}
|
|
194
|
-
}), [["__scopeId", "data-v-46d37539"]]);
|
|
195
|
-
export { F as default };
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "../core/button.ce.js";
|
|
3
|
-
import n from "../core/icon.ce.js";
|
|
4
|
-
import { collapseTransition as r } from "../../utils/motion.js";
|
|
5
|
-
import { useNavigationModel as i, useNavigationRoot as a } from "../../utils/navigation.js";
|
|
6
|
-
/* empty css */
|
|
7
|
-
import { Fragment as o, Transition as s, computed as c, createBlock as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, mergeProps as m, normalizeClass as h, openBlock as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useId as x, vShow as S, withCtx as C, withDirectives as w } from "vue";
|
|
8
|
-
import { AccordionHeader as T, AccordionItem as E, AccordionRoot as D, AccordionTrigger as O } from "reka-ui";
|
|
9
|
-
import { ArrowDown01Icon as k } from "@hugeicons/core-free-icons";
|
|
10
|
-
// src/components/navigation/accordion.ce.vue
|
|
11
|
-
var A = [
|
|
12
|
-
"id",
|
|
13
|
-
"aria-labelledby",
|
|
14
|
-
"aria-hidden",
|
|
15
|
-
"inert"
|
|
16
|
-
], j = { class: "kima-accordion__content" }, M = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
17
|
-
__name: "accordion.ce",
|
|
18
|
-
props: {
|
|
19
|
-
modelValue: {
|
|
20
|
-
type: [String, Array],
|
|
21
|
-
default: ""
|
|
22
|
-
},
|
|
23
|
-
items: {
|
|
24
|
-
type: Array,
|
|
25
|
-
default: () => []
|
|
26
|
-
},
|
|
27
|
-
multiple: Boolean,
|
|
28
|
-
disabled: Boolean,
|
|
29
|
-
collapsible: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: !0
|
|
32
|
-
},
|
|
33
|
-
label: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: "折叠列表"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
emits: ["update:modelValue", "change"],
|
|
39
|
-
setup(e, { emit: M }) {
|
|
40
|
-
let N = e, P = M, { root: F, forwardedAttrs: I } = a(), [L, R] = i(N, "modelValue", P), z = `kima-accordion-${x()}`, B = c(() => N.multiple ? Array.isArray(L.value) ? L.value : L.value ? [L.value] : [] : Array.isArray(L.value) ? L.value[0] || "" : L.value);
|
|
41
|
-
function V(e, t) {
|
|
42
|
-
return String(e.value ?? t);
|
|
43
|
-
}
|
|
44
|
-
function H(e) {
|
|
45
|
-
return N.multiple ? B.value.includes(e) : B.value === e;
|
|
46
|
-
}
|
|
47
|
-
return (i, a) => (g(), u("div", m({
|
|
48
|
-
ref_key: "root",
|
|
49
|
-
ref: F
|
|
50
|
-
}, b(I), { class: "kima-accordion" }), [p(b(D), {
|
|
51
|
-
"model-value": B.value,
|
|
52
|
-
type: e.multiple ? "multiple" : "single",
|
|
53
|
-
collapsible: e.collapsible,
|
|
54
|
-
disabled: e.disabled,
|
|
55
|
-
"aria-label": e.label,
|
|
56
|
-
"onUpdate:modelValue": b(R)
|
|
57
|
-
}, {
|
|
58
|
-
default: C(() => [(g(!0), u(o, null, _(e.items, (a, o) => (g(), l(b(E), {
|
|
59
|
-
key: V(a, o),
|
|
60
|
-
value: V(a, o),
|
|
61
|
-
disabled: a.disabled,
|
|
62
|
-
class: "kima-accordion__item"
|
|
63
|
-
}, {
|
|
64
|
-
default: C(() => [p(b(T), { class: "kima-accordion__heading" }, {
|
|
65
|
-
default: C(() => [p(b(O), { "as-child": "" }, {
|
|
66
|
-
default: C(() => [p(t, {
|
|
67
|
-
id: `${z}-trigger-${o}`,
|
|
68
|
-
variant: "text",
|
|
69
|
-
disabled: e.disabled || a.disabled,
|
|
70
|
-
"aria-controls": `${z}-panel-${o}`,
|
|
71
|
-
class: "kima-accordion__trigger"
|
|
72
|
-
}, {
|
|
73
|
-
default: C(() => [f(y(a.label), 1), p(n, {
|
|
74
|
-
class: h(["kima-accordion__arrow", { "kima-accordion__arrow--expanded": H(V(a, o)) }]),
|
|
75
|
-
icon: b(k),
|
|
76
|
-
size: 20,
|
|
77
|
-
"aria-hidden": "true"
|
|
78
|
-
}, null, 8, ["class", "icon"])]),
|
|
79
|
-
_: 2
|
|
80
|
-
}, 1032, [
|
|
81
|
-
"id",
|
|
82
|
-
"disabled",
|
|
83
|
-
"aria-controls"
|
|
84
|
-
])]),
|
|
85
|
-
_: 2
|
|
86
|
-
}, 1024)]),
|
|
87
|
-
_: 2
|
|
88
|
-
}, 1024), p(s, m({ css: !1 }, { ref_for: !0 }, b(r)), {
|
|
89
|
-
default: C(() => [w(d("div", {
|
|
90
|
-
id: `${z}-panel-${o}`,
|
|
91
|
-
role: "region",
|
|
92
|
-
"aria-labelledby": `${z}-trigger-${o}`,
|
|
93
|
-
"aria-hidden": !H(V(a, o)),
|
|
94
|
-
inert: !H(V(a, o))
|
|
95
|
-
}, [d("div", j, [v(i.$slots, `panel-${V(a, o)}`, {
|
|
96
|
-
item: a,
|
|
97
|
-
index: o
|
|
98
|
-
}, () => [f(y(a.content), 1)], !0)])], 8, A), [[S, H(V(a, o))]])]),
|
|
99
|
-
_: 2
|
|
100
|
-
}, 1040)]),
|
|
101
|
-
_: 2
|
|
102
|
-
}, 1032, ["value", "disabled"]))), 128))]),
|
|
103
|
-
_: 3
|
|
104
|
-
}, 8, [
|
|
105
|
-
"model-value",
|
|
106
|
-
"type",
|
|
107
|
-
"collapsible",
|
|
108
|
-
"disabled",
|
|
109
|
-
"aria-label",
|
|
110
|
-
"onUpdate:modelValue"
|
|
111
|
-
])], 16));
|
|
112
|
-
}
|
|
113
|
-
}), [["__scopeId", "data-v-19d76e75"]]);
|
|
114
|
-
export { M as default };
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import { scrollBehavior as t, scrollTarget as n, useNavigationModel as r, useNavigationRoot as i } from "../../utils/navigation.js";
|
|
3
|
-
import a from "./link.ce.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { Fragment as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, mergeProps as d, onBeforeUnmount as f, onMounted as p, openBlock as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, watch as y, withCtx as b } from "vue";
|
|
6
|
-
// src/components/navigation/anchor.ce.vue
|
|
7
|
-
var x = ["aria-label"], S = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
8
|
-
__name: "anchor.ce",
|
|
9
|
-
props: {
|
|
10
|
-
modelValue: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: ""
|
|
13
|
-
},
|
|
14
|
-
items: {
|
|
15
|
-
type: Array,
|
|
16
|
-
default: () => []
|
|
17
|
-
},
|
|
18
|
-
target: {
|
|
19
|
-
type: [String, Object],
|
|
20
|
-
default: ""
|
|
21
|
-
},
|
|
22
|
-
offset: {
|
|
23
|
-
type: Number,
|
|
24
|
-
default: 24
|
|
25
|
-
},
|
|
26
|
-
smooth: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !0
|
|
29
|
-
},
|
|
30
|
-
disabled: Boolean,
|
|
31
|
-
label: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: "页内目录"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
emits: [
|
|
37
|
-
"update:modelValue",
|
|
38
|
-
"change",
|
|
39
|
-
"navigate"
|
|
40
|
-
],
|
|
41
|
-
setup(e, { emit: S }) {
|
|
42
|
-
let C = e, w = S, { root: T, forwardedAttrs: E } = i(), [D, O] = r(C, "modelValue", w), k, A, j, M, N = !1;
|
|
43
|
-
function P(e) {
|
|
44
|
-
if (!e?.startsWith("#")) return null;
|
|
45
|
-
try {
|
|
46
|
-
return document.getElementById(decodeURIComponent(e.slice(1)));
|
|
47
|
-
} catch {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
function F() {
|
|
52
|
-
return C.items.filter((e) => !e.disabled).map((e) => ({
|
|
53
|
-
item: e,
|
|
54
|
-
element: P(e.href)
|
|
55
|
-
})).filter(({ element: e }) => e && (k === window || k?.contains(e)));
|
|
56
|
-
}
|
|
57
|
-
function I() {
|
|
58
|
-
if (M = void 0, !k) return;
|
|
59
|
-
let e = F();
|
|
60
|
-
if (!e.length) return;
|
|
61
|
-
let t = k === window ? 0 : k.getBoundingClientRect().top + k.clientTop, n = e[0];
|
|
62
|
-
for (let r of e) r.element.getBoundingClientRect().top <= t + C.offset + 1 && (n = r);
|
|
63
|
-
let r = k === window ? window.scrollY : k.scrollTop, i = k === window ? window.innerHeight : k.clientHeight, a = k === window ? document.documentElement.scrollHeight : k.scrollHeight;
|
|
64
|
-
r > 0 && r + i >= a - 2 && (n = e.at(-1)), O(n.item.href);
|
|
65
|
-
}
|
|
66
|
-
function L() {
|
|
67
|
-
M ||= requestAnimationFrame(I);
|
|
68
|
-
}
|
|
69
|
-
function R(e, n) {
|
|
70
|
-
if (C.disabled || e.disabled || n.ctrlKey || n.metaKey || n.shiftKey || n.altKey || n.button !== 0) return;
|
|
71
|
-
let r = P(e.href);
|
|
72
|
-
if (!r || !k) return;
|
|
73
|
-
n.preventDefault();
|
|
74
|
-
let i = k === window ? 0 : k.getBoundingClientRect().top + k.clientTop, a = k === window ? window.scrollY : k.scrollTop;
|
|
75
|
-
k.scrollTo({
|
|
76
|
-
top: a + r.getBoundingClientRect().top - i - C.offset,
|
|
77
|
-
behavior: t(C.smooth)
|
|
78
|
-
}), O(e.href), w("navigate", e.href);
|
|
79
|
-
}
|
|
80
|
-
function z() {
|
|
81
|
-
k?.removeEventListener("scroll", L), window.removeEventListener("resize", L), A?.disconnect(), j?.disconnect(), M && cancelAnimationFrame(M), M = void 0;
|
|
82
|
-
}
|
|
83
|
-
function B() {
|
|
84
|
-
z(), k = n(C.target), k?.addEventListener("scroll", L, { passive: !0 }), window.addEventListener("resize", L), A = new ResizeObserver(L);
|
|
85
|
-
for (let { element: e } of F()) A.observe(e);
|
|
86
|
-
j = new MutationObserver(L), j.observe(k === window ? document.body : k || T.value, {
|
|
87
|
-
childList: !0,
|
|
88
|
-
subtree: !0
|
|
89
|
-
}), L();
|
|
90
|
-
}
|
|
91
|
-
return p(() => {
|
|
92
|
-
N = !0, B();
|
|
93
|
-
}), y(() => [
|
|
94
|
-
C.target,
|
|
95
|
-
C.items,
|
|
96
|
-
C.offset
|
|
97
|
-
], () => {
|
|
98
|
-
N && B();
|
|
99
|
-
}, {
|
|
100
|
-
deep: !0,
|
|
101
|
-
flush: "post"
|
|
102
|
-
}), f(z), (t, n) => (m(), s("nav", d({
|
|
103
|
-
ref_key: "root",
|
|
104
|
-
ref: T
|
|
105
|
-
}, v(E), {
|
|
106
|
-
class: "kima-anchor",
|
|
107
|
-
"aria-label": e.label
|
|
108
|
-
}), [c("ol", null, [(m(!0), s(o, null, h(e.items, (t, n) => (m(), s("li", { key: t.href ?? n }, [u(a, {
|
|
109
|
-
href: t.href,
|
|
110
|
-
disabled: e.disabled || t.disabled,
|
|
111
|
-
underline: !1,
|
|
112
|
-
current: v(D) === t.href && "location",
|
|
113
|
-
onNavigate: (e) => R(t, e)
|
|
114
|
-
}, {
|
|
115
|
-
default: b(() => [l(_(t.label), 1)]),
|
|
116
|
-
_: 2
|
|
117
|
-
}, 1032, [
|
|
118
|
-
"href",
|
|
119
|
-
"disabled",
|
|
120
|
-
"current",
|
|
121
|
-
"onNavigate"
|
|
122
|
-
])]))), 128))]), g(t.$slots, "default", {}, void 0, !0)], 16, x));
|
|
123
|
-
}
|
|
124
|
-
}), [["__scopeId", "data-v-b3311001"]]);
|
|
125
|
-
export { S as default };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "../core/button.ce.js";
|
|
3
|
-
import { scrollBehavior as n, scrollTarget as r, useNavigationRoot as i } from "../../utils/navigation.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { Transition as a, createBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, mergeProps as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderSlot as h, toDisplayString as g, unref as _, vShow as v, watch as y, withCtx as b, withDirectives as x } from "vue";
|
|
6
|
-
// src/components/navigation/back-top.ce.vue
|
|
7
|
-
var S = ["inert", "aria-hidden"], C = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
8
|
-
__name: "back-top.ce",
|
|
9
|
-
props: {
|
|
10
|
-
target: {
|
|
11
|
-
type: [String, Object],
|
|
12
|
-
default: ""
|
|
13
|
-
},
|
|
14
|
-
threshold: {
|
|
15
|
-
type: Number,
|
|
16
|
-
default: 240
|
|
17
|
-
},
|
|
18
|
-
smooth: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: !0
|
|
21
|
-
},
|
|
22
|
-
fixed: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !0
|
|
25
|
-
},
|
|
26
|
-
disabled: Boolean,
|
|
27
|
-
label: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: "返回顶部"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
emits: ["click", "visibility-change"],
|
|
33
|
-
setup(e, { emit: C }) {
|
|
34
|
-
let w = e, T = C, { root: E, forwardedAttrs: D } = i(), O = m(!1), k;
|
|
35
|
-
function A() {
|
|
36
|
-
let e = !!(k && (k === window ? window.scrollY : k.scrollTop) >= Math.max(0, w.threshold));
|
|
37
|
-
e !== O.value && (O.value = e, T("visibility-change", e));
|
|
38
|
-
}
|
|
39
|
-
function j() {
|
|
40
|
-
k?.removeEventListener("scroll", A), k = r(w.target), k?.addEventListener("scroll", A, { passive: !0 }), A();
|
|
41
|
-
}
|
|
42
|
-
function M(e) {
|
|
43
|
-
w.disabled || (k?.scrollTo({
|
|
44
|
-
top: 0,
|
|
45
|
-
behavior: n(w.smooth)
|
|
46
|
-
}), T("click", e));
|
|
47
|
-
}
|
|
48
|
-
return f(j), y(() => w.target, j, { flush: "post" }), y(() => w.threshold, A), d(() => k?.removeEventListener("scroll", A)), (n, r) => (p(), o(a, { name: "kima-content" }, {
|
|
49
|
-
default: b(() => [x(s("div", u({
|
|
50
|
-
ref_key: "root",
|
|
51
|
-
ref: E
|
|
52
|
-
}, _(D), {
|
|
53
|
-
class: ["kima-back-top", { "kima-back-top--fixed": e.fixed }],
|
|
54
|
-
inert: !O.value,
|
|
55
|
-
"aria-hidden": !O.value
|
|
56
|
-
}), [l(t, {
|
|
57
|
-
disabled: e.disabled,
|
|
58
|
-
onClick: M
|
|
59
|
-
}, {
|
|
60
|
-
default: b(() => [h(n.$slots, "default", {}, () => [c(g(e.label), 1)], !0)]),
|
|
61
|
-
_: 3
|
|
62
|
-
}, 8, ["disabled"])], 16, S), [[v, O.value]])]),
|
|
63
|
-
_: 3
|
|
64
|
-
}));
|
|
65
|
-
}
|
|
66
|
-
}), [["__scopeId", "data-v-231687a3"]]);
|
|
67
|
-
export { C as default };
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import { freezeLeaveLayout as t, presenceTransition as n } from "../../utils/motion.js";
|
|
3
|
-
import { useNavigationModel as r, useNavigationRoot as i } from "../../utils/navigation.js";
|
|
4
|
-
import a from "../core/icon-button.ce.js";
|
|
5
|
-
import o from "../core/tooltip.ce.js";
|
|
6
|
-
import { useContentMotion as s } from "../../utils/content-motion.js";
|
|
7
|
-
/* empty css */
|
|
8
|
-
import { Transition as c, computed as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, mergeProps as m, openBlock as h, ref as g, renderSlot as _, toDisplayString as v, unref as y, useId as b, watch as x, withCtx as S } from "vue";
|
|
9
|
-
import { ArrowLeft01Icon as C, ArrowRight01Icon as w } from "@hugeicons/core-free-icons";
|
|
10
|
-
// src/components/navigation/carousel.ce.vue
|
|
11
|
-
var T = ["aria-label"], E = ["aria-label"], D = { key: 0 }, O = { key: 1 }, k = { key: 0 }, A = { class: "kima-carousel__controls" }, j = {
|
|
12
|
-
"aria-live": "polite",
|
|
13
|
-
"aria-atomic": "true"
|
|
14
|
-
}, M = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
15
|
-
__name: "carousel.ce",
|
|
16
|
-
props: {
|
|
17
|
-
modelValue: {
|
|
18
|
-
type: Number,
|
|
19
|
-
default: 0
|
|
20
|
-
},
|
|
21
|
-
items: {
|
|
22
|
-
type: Array,
|
|
23
|
-
default: () => []
|
|
24
|
-
},
|
|
25
|
-
loop: Boolean,
|
|
26
|
-
disabled: Boolean,
|
|
27
|
-
label: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: "内容轮播"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
emits: ["update:modelValue", "change"],
|
|
33
|
-
setup(e, { emit: M }) {
|
|
34
|
-
let N = e, P = M, { root: F, forwardedAttrs: I } = i(), [L, R] = r(N, "modelValue", P), z = `kima-carousel-${b()}`, B = g(null), V = g("forward"), H = l(() => Math.max(0, Math.min(N.items.length - 1, Math.trunc(Number(L.value) || 0)))), U = l(() => N.items[H.value]), W = l(() => `kima-carousel-${V.value}`), G = null;
|
|
35
|
-
x(H, (e, t) => {
|
|
36
|
-
let n = e - t;
|
|
37
|
-
G ? V.value = G : Math.abs(n) === 1 && (V.value = n > 0 ? "forward" : "backward"), G = null;
|
|
38
|
-
}, { flush: "sync" }), s(B, () => H.value, { opacity: !1 });
|
|
39
|
-
let K = l(() => N.disabled || N.items.length < 2 || !N.loop && H.value === 0), q = l(() => N.disabled || N.items.length < 2 || !N.loop && H.value === N.items.length - 1);
|
|
40
|
-
function J(e) {
|
|
41
|
-
return e && typeof e == "object" ? e.content ?? e.label ?? "" : e;
|
|
42
|
-
}
|
|
43
|
-
function Y(e, t = e >= H.value ? "forward" : "backward") {
|
|
44
|
-
e !== H.value && (G = t, R(e));
|
|
45
|
-
}
|
|
46
|
-
function X(e) {
|
|
47
|
-
e < 0 && K.value || e > 0 && q.value || Y((H.value + e + N.items.length) % N.items.length, e > 0 ? "forward" : "backward");
|
|
48
|
-
}
|
|
49
|
-
function Z(e) {
|
|
50
|
-
if (N.disabled || !N.items.length || e.altKey || e.ctrlKey || e.metaKey || e.isComposing || e.target.closest("input,textarea,select,a,[contenteditable=\"true\"]")) return;
|
|
51
|
-
let t = getComputedStyle(F.value).direction === "rtl";
|
|
52
|
-
if (e.key === "ArrowRight") X(t ? -1 : 1);
|
|
53
|
-
else if (e.key === "ArrowLeft") X(t ? 1 : -1);
|
|
54
|
-
else if (e.key === "Home") Y(0, "backward");
|
|
55
|
-
else if (e.key === "End") Y(N.items.length - 1, "forward");
|
|
56
|
-
else return;
|
|
57
|
-
e.preventDefault();
|
|
58
|
-
}
|
|
59
|
-
return (r, i) => (h(), d("section", m({
|
|
60
|
-
ref_key: "root",
|
|
61
|
-
ref: F
|
|
62
|
-
}, y(I), {
|
|
63
|
-
class: "kima-carousel",
|
|
64
|
-
role: "region",
|
|
65
|
-
"aria-roledescription": "轮播",
|
|
66
|
-
"aria-label": e.label,
|
|
67
|
-
tabindex: "0",
|
|
68
|
-
onKeydown: Z
|
|
69
|
-
}), [
|
|
70
|
-
f("div", {
|
|
71
|
-
id: z,
|
|
72
|
-
ref_key: "viewport",
|
|
73
|
-
ref: B,
|
|
74
|
-
class: "kima-carousel__viewport"
|
|
75
|
-
}, [p(c, m({ name: W.value }, {
|
|
76
|
-
...y(n),
|
|
77
|
-
onBeforeLeave: y(t)
|
|
78
|
-
}), {
|
|
79
|
-
default: S(() => [e.items.length ? (h(), d("div", {
|
|
80
|
-
key: H.value,
|
|
81
|
-
class: "kima-carousel__slide",
|
|
82
|
-
role: "group",
|
|
83
|
-
"aria-roledescription": "幻灯片",
|
|
84
|
-
"aria-label": `第 ${H.value + 1} 张,共 ${e.items.length} 张`
|
|
85
|
-
}, [_(r.$slots, `slide-${H.value}`, {
|
|
86
|
-
item: U.value,
|
|
87
|
-
index: H.value
|
|
88
|
-
}, () => [U.value?.title ? (h(), d("h3", D, v(U.value.title), 1)) : u("", !0), J(U.value) ? (h(), d("p", O, v(J(U.value)), 1)) : u("", !0)], !0)], 8, E)) : u("", !0)]),
|
|
89
|
-
_: 3
|
|
90
|
-
}, 16, ["name"]), e.items.length ? u("", !0) : (h(), d("p", k, "暂无内容"))], 512),
|
|
91
|
-
f("div", A, [
|
|
92
|
-
p(o, {
|
|
93
|
-
text: "上一张",
|
|
94
|
-
position: "right"
|
|
95
|
-
}, {
|
|
96
|
-
default: S(() => [p(a, {
|
|
97
|
-
class: "kima-carousel__previous",
|
|
98
|
-
icon: y(C),
|
|
99
|
-
variant: "tonal",
|
|
100
|
-
disabled: K.value,
|
|
101
|
-
"aria-controls": z,
|
|
102
|
-
label: "上一张",
|
|
103
|
-
onClick: i[0] ||= (e) => X(-1)
|
|
104
|
-
}, null, 8, ["icon", "disabled"])]),
|
|
105
|
-
_: 1
|
|
106
|
-
}),
|
|
107
|
-
f("output", j, v(e.items.length ? H.value + 1 : 0) + " / " + v(e.items.length), 1),
|
|
108
|
-
p(o, {
|
|
109
|
-
text: "下一张",
|
|
110
|
-
position: "left"
|
|
111
|
-
}, {
|
|
112
|
-
default: S(() => [p(a, {
|
|
113
|
-
class: "kima-carousel__next",
|
|
114
|
-
icon: y(w),
|
|
115
|
-
variant: "tonal",
|
|
116
|
-
disabled: q.value,
|
|
117
|
-
"aria-controls": z,
|
|
118
|
-
label: "下一张",
|
|
119
|
-
onClick: i[1] ||= (e) => X(1)
|
|
120
|
-
}, null, 8, ["icon", "disabled"])]),
|
|
121
|
-
_: 1
|
|
122
|
-
})
|
|
123
|
-
]),
|
|
124
|
-
_(r.$slots, "default", {}, void 0, !0)
|
|
125
|
-
], 16, T));
|
|
126
|
-
}
|
|
127
|
-
}), [["__scopeId", "data-v-f2081ae5"]]);
|
|
128
|
-
export { M as default };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { useRipple as e } from "../../utils/ripple.js";
|
|
2
|
-
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
import { useNavigationRoot as n } from "../../utils/navigation.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { computed as r, createElementBlock as i, mergeProps as a, openBlock as o, renderSlot as s, unref as c } from "vue";
|
|
6
|
-
// src/components/navigation/link.ce.vue
|
|
7
|
-
var l = [
|
|
8
|
-
"href",
|
|
9
|
-
"target",
|
|
10
|
-
"rel",
|
|
11
|
-
"aria-disabled",
|
|
12
|
-
"aria-current",
|
|
13
|
-
"tabindex"
|
|
14
|
-
], u = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
15
|
-
__name: "link.ce",
|
|
16
|
-
props: {
|
|
17
|
-
href: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: ""
|
|
20
|
-
},
|
|
21
|
-
target: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: ""
|
|
24
|
-
},
|
|
25
|
-
rel: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: ""
|
|
28
|
-
},
|
|
29
|
-
disabled: Boolean,
|
|
30
|
-
current: {
|
|
31
|
-
type: [Boolean, String],
|
|
32
|
-
default: !1
|
|
33
|
-
},
|
|
34
|
-
underline: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: !0
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
emits: ["navigate"],
|
|
40
|
-
setup(t, { emit: u }) {
|
|
41
|
-
let d = t, f = u, { root: p, forwardedAttrs: m } = n();
|
|
42
|
-
e(p);
|
|
43
|
-
let h = r(() => [...new Set(`${d.rel} ${d.target === "_blank" ? "noopener noreferrer" : ""}`.split(/\s+/).filter(Boolean))].join(" ") || void 0);
|
|
44
|
-
function g(e) {
|
|
45
|
-
d.disabled ? (e.preventDefault(), e.stopImmediatePropagation()) : f("navigate", e);
|
|
46
|
-
}
|
|
47
|
-
return (e, n) => (o(), i("a", a({
|
|
48
|
-
ref_key: "root",
|
|
49
|
-
ref: p
|
|
50
|
-
}, c(m), {
|
|
51
|
-
class: ["kima-link", { "kima-link--underline": t.underline }],
|
|
52
|
-
href: t.disabled ? void 0 : t.href || void 0,
|
|
53
|
-
target: t.target || void 0,
|
|
54
|
-
rel: h.value,
|
|
55
|
-
"aria-disabled": t.disabled || void 0,
|
|
56
|
-
"aria-current": t.current ? typeof t.current == "string" ? t.current : "page" : void 0,
|
|
57
|
-
tabindex: t.disabled ? -1 : void 0,
|
|
58
|
-
onClick: g
|
|
59
|
-
}), [s(e.$slots, "default", {}, void 0, !0)], 16, l));
|
|
60
|
-
}
|
|
61
|
-
}), [["__scopeId", "data-v-24e2c032"]]);
|
|
62
|
-
export { u as default };
|