@kernel4632/kima 0.12.3 → 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 +48135 -117475
- 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_629f27ff_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_38d4d501_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_56ea3993_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_eafb58fe_lang.css +0 -1
- package/dist/components/input/tags-input.ce.vue_vue_type_style_index_0_scoped_d78c0562_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 -294
- 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 -94
- 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 -116
- 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,178 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "../core/checkbox.ce.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, getCurrentInstance as l, mergeProps as u, normalizeClass as d, normalizeStyle as f, onBeforeUnmount as p, onMounted as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useAttrs as x, useHost as S, useId as C, watch as w, withModifiers as T } from "vue";
|
|
5
|
-
// src/components/data/virtual-table.ce.vue
|
|
6
|
-
var E = ["aria-label"], ee = ["aria-busy"], te = { key: 0 }, ne = {
|
|
7
|
-
key: 0,
|
|
8
|
-
scope: "col",
|
|
9
|
-
class: "kima-virtual-table__select"
|
|
10
|
-
}, re = { key: 1 }, ie = ["colspan"], ae = { key: 2 }, oe = {
|
|
11
|
-
class: "kima-virtual-table__spacer",
|
|
12
|
-
"aria-hidden": "true"
|
|
13
|
-
}, se = ["colspan"], D = [
|
|
14
|
-
"id",
|
|
15
|
-
"aria-rowindex",
|
|
16
|
-
"aria-selected",
|
|
17
|
-
"onClick",
|
|
18
|
-
"onKeydown"
|
|
19
|
-
], O = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "kima-virtual-table__select"
|
|
22
|
-
}, k = {
|
|
23
|
-
class: "kima-virtual-table__spacer",
|
|
24
|
-
"aria-hidden": "true"
|
|
25
|
-
}, A = ["colspan"], j = { key: 3 }, M = ["colspan"], N = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
26
|
-
__name: "virtual-table.ce",
|
|
27
|
-
props: {
|
|
28
|
-
columns: {
|
|
29
|
-
type: Array,
|
|
30
|
-
default: () => []
|
|
31
|
-
},
|
|
32
|
-
rows: {
|
|
33
|
-
type: Array,
|
|
34
|
-
default: () => []
|
|
35
|
-
},
|
|
36
|
-
items: {
|
|
37
|
-
type: Array,
|
|
38
|
-
default: void 0
|
|
39
|
-
},
|
|
40
|
-
rowKey: {
|
|
41
|
-
type: [String, Function],
|
|
42
|
-
default: void 0
|
|
43
|
-
},
|
|
44
|
-
itemHeight: {
|
|
45
|
-
type: Number,
|
|
46
|
-
default: 56
|
|
47
|
-
},
|
|
48
|
-
height: {
|
|
49
|
-
type: [Number, String],
|
|
50
|
-
default: 360
|
|
51
|
-
},
|
|
52
|
-
overscan: {
|
|
53
|
-
type: Number,
|
|
54
|
-
default: 4
|
|
55
|
-
},
|
|
56
|
-
caption: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: ""
|
|
59
|
-
},
|
|
60
|
-
selectable: Boolean,
|
|
61
|
-
modelValue: {
|
|
62
|
-
type: Array,
|
|
63
|
-
default: () => []
|
|
64
|
-
},
|
|
65
|
-
loading: Boolean
|
|
66
|
-
},
|
|
67
|
-
emits: ["update:modelValue", "row-click"],
|
|
68
|
-
setup(e, { emit: N }) {
|
|
69
|
-
let P = e, F = N, I = x(), L = l()?.ce ? S() : null, R = g(null), z = g(0), B = g(0), V = g(-1), H, U = r(() => P.items === void 0 ? P.rows : P.items), W = r(() => Math.max(1, Math.floor(Number(P.itemHeight) || 56))), G = r(() => z.value || Number.parseFloat(P.height) || W.value * 6), ce = r(() => U.value.length * W.value), K = r(() => {
|
|
70
|
-
if (!U.value.length) return {
|
|
71
|
-
start: 0,
|
|
72
|
-
end: -1
|
|
73
|
-
};
|
|
74
|
-
let e = Math.max(0, Math.floor(Number(P.overscan) || 0));
|
|
75
|
-
return {
|
|
76
|
-
start: Math.max(0, Math.floor(B.value / W.value) - e),
|
|
77
|
-
end: Math.min(U.value.length - 1, Math.ceil((B.value + G.value) / W.value) + e - 1)
|
|
78
|
-
};
|
|
79
|
-
}), q = r(() => U.value.slice(K.value.start, K.value.end + 1).map((e, t) => ({
|
|
80
|
-
row: e,
|
|
81
|
-
index: K.value.start + t,
|
|
82
|
-
key: X(e, K.value.start + t)
|
|
83
|
-
}))), J = r(() => new Set(P.modelValue)), Y = r(() => Math.max(1, P.columns.length + +!!P.selectable)), le = r(() => typeof P.height == "number" ? `${Math.max(0, P.height)}px` : P.height || "360px"), ue = r(() => L ? {
|
|
84
|
-
...I,
|
|
85
|
-
id: void 0
|
|
86
|
-
} : I);
|
|
87
|
-
function X(e, t) {
|
|
88
|
-
return typeof P.rowKey == "function" ? P.rowKey(e) : typeof P.rowKey == "string" ? e?.[P.rowKey] : e?.id ?? e?.key ?? `row-${t}`;
|
|
89
|
-
}
|
|
90
|
-
function Z(e, t) {
|
|
91
|
-
let n = X(e, t), r = new Set(J.value);
|
|
92
|
-
r.has(n) ? r.delete(n) : r.add(n), F("update:modelValue", [...r]);
|
|
93
|
-
}
|
|
94
|
-
function Q(e, t, n) {
|
|
95
|
-
if (n.target === n.currentTarget) {
|
|
96
|
-
if (n.key === " " && P.selectable) n.preventDefault(), Z(e, t);
|
|
97
|
-
else if (n.key === "Enter") F("row-click", e, n);
|
|
98
|
-
else if (["ArrowUp", "ArrowDown"].includes(n.key)) {
|
|
99
|
-
n.preventDefault();
|
|
100
|
-
let e = Math.max(0, Math.min(U.value.length - 1, t + (n.key === "ArrowUp" ? -1 : 1)));
|
|
101
|
-
document.getElementById(`${$}-row-${e}`)?.focus();
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
let $ = `kima-virtual-table-${C()}`;
|
|
106
|
-
function de(e) {
|
|
107
|
-
B.value = e.currentTarget.scrollTop;
|
|
108
|
-
}
|
|
109
|
-
return m(() => {
|
|
110
|
-
z.value = R.value?.clientHeight || 0, typeof ResizeObserver < "u" && R.value && (H = new ResizeObserver((e) => {
|
|
111
|
-
z.value = e[0]?.contentRect.height || R.value.clientHeight;
|
|
112
|
-
}), H.observe(R.value));
|
|
113
|
-
}), p(() => H?.disconnect()), w(() => U.value.length, (e) => {
|
|
114
|
-
V.value >= e && (V.value = e - 1);
|
|
115
|
-
}), (r, l) => (h(), a("div", u({
|
|
116
|
-
ref_key: "root",
|
|
117
|
-
ref: R
|
|
118
|
-
}, ue.value, {
|
|
119
|
-
class: "kima-virtual-table",
|
|
120
|
-
style: { height: le.value },
|
|
121
|
-
role: "region",
|
|
122
|
-
"aria-label": e.caption || b(I)["aria-label"] || "虚拟表格区域",
|
|
123
|
-
onScroll: de
|
|
124
|
-
}), [o("table", { "aria-busy": e.loading || void 0 }, [
|
|
125
|
-
e.caption ? (h(), a("caption", te, y(e.caption), 1)) : i("", !0),
|
|
126
|
-
o("thead", null, [o("tr", null, [e.selectable ? (h(), a("th", ne, "选择")) : i("", !0), (h(!0), a(n, null, _(e.columns, (e) => (h(), a("th", {
|
|
127
|
-
key: e.key,
|
|
128
|
-
scope: "col",
|
|
129
|
-
class: d(`kima-virtual-table__align--${e.align || "start"}`)
|
|
130
|
-
}, y(e.label), 3))), 128))])]),
|
|
131
|
-
e.loading ? (h(), a("tbody", re, [o("tr", null, [o("td", {
|
|
132
|
-
colspan: Y.value,
|
|
133
|
-
class: "kima-virtual-table__message",
|
|
134
|
-
role: "status"
|
|
135
|
-
}, [v(r.$slots, "loading", {}, () => [l[1] ||= s("加载中", -1)], !0)], 8, ie)])])) : q.value.length ? (h(), a("tbody", ae, [
|
|
136
|
-
o("tr", oe, [o("td", {
|
|
137
|
-
colspan: Y.value,
|
|
138
|
-
style: f({ height: `${K.value.start * W.value}px` })
|
|
139
|
-
}, null, 12, se)]),
|
|
140
|
-
(h(!0), a(n, null, _(q.value, (o) => (h(), a("tr", {
|
|
141
|
-
id: `${$}-row-${o.index}`,
|
|
142
|
-
key: o.key,
|
|
143
|
-
class: d({ "kima-virtual-table__row--selected": J.value.has(o.key) }),
|
|
144
|
-
tabindex: "0",
|
|
145
|
-
"aria-rowindex": o.index + 2,
|
|
146
|
-
"aria-selected": P.selectable ? J.value.has(o.key) : void 0,
|
|
147
|
-
onClick: (e) => F("row-click", o.row, e),
|
|
148
|
-
onKeydown: (e) => Q(o.row, o.index, e)
|
|
149
|
-
}, [e.selectable ? (h(), a("td", O, [c(t, {
|
|
150
|
-
"model-value": J.value.has(o.key),
|
|
151
|
-
"aria-label": `选择第 ${o.index + 1} 行`,
|
|
152
|
-
"onUpdate:modelValue": (e) => Z(o.row, o.index),
|
|
153
|
-
onClick: l[0] ||= T(() => {}, ["stop"])
|
|
154
|
-
}, null, 8, [
|
|
155
|
-
"model-value",
|
|
156
|
-
"aria-label",
|
|
157
|
-
"onUpdate:modelValue"
|
|
158
|
-
])])) : i("", !0), (h(!0), a(n, null, _(e.columns, (e) => (h(), a("td", {
|
|
159
|
-
key: e.key,
|
|
160
|
-
class: d(`kima-virtual-table__align--${e.align || "start"}`)
|
|
161
|
-
}, [v(r.$slots, `cell-${e.key}`, {
|
|
162
|
-
row: o.row,
|
|
163
|
-
value: o.row[e.key],
|
|
164
|
-
column: e
|
|
165
|
-
}, () => [s(y(o.row[e.key]), 1)], !0)], 2))), 128))], 42, D))), 128)),
|
|
166
|
-
o("tr", k, [o("td", {
|
|
167
|
-
colspan: Y.value,
|
|
168
|
-
style: f({ height: `${Math.max(0, ce.value - (K.value.end + 1) * W.value)}px` })
|
|
169
|
-
}, null, 12, A)])
|
|
170
|
-
])) : (h(), a("tbody", j, [o("tr", null, [o("td", {
|
|
171
|
-
colspan: Y.value,
|
|
172
|
-
class: "kima-virtual-table__message",
|
|
173
|
-
role: "status"
|
|
174
|
-
}, [v(r.$slots, "empty", {}, () => [l[2] ||= s("暂无数据", -1)], !0)], 8, M)])]))
|
|
175
|
-
], 8, ee)], 16, E));
|
|
176
|
-
}
|
|
177
|
-
}), [["__scopeId", "data-v-bc80a44c"]]);
|
|
178
|
-
export { N as default };
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "../core/icon.ce.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { Fragment as n, computed as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, getCurrentInstance as c, mergeProps as ee, normalizeClass as te, normalizeStyle as l, onBeforeUnmount as u, onMounted as ne, openBlock as d, ref as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useAttrs as _, useHost as v, useId as y, watch as b, withModifiers as x } from "vue";
|
|
5
|
-
import { ArrowRight01Icon as S } from "@hugeicons/core-free-icons";
|
|
6
|
-
// src/components/data/virtual-tree.ce.vue
|
|
7
|
-
var C = ["aria-multiselectable", "aria-disabled"], w = [
|
|
8
|
-
"id",
|
|
9
|
-
"aria-level",
|
|
10
|
-
"aria-posinset",
|
|
11
|
-
"aria-setsize",
|
|
12
|
-
"aria-expanded",
|
|
13
|
-
"aria-selected",
|
|
14
|
-
"tabindex",
|
|
15
|
-
"onClick",
|
|
16
|
-
"onKeydown"
|
|
17
|
-
], T = [
|
|
18
|
-
"disabled",
|
|
19
|
-
"aria-label",
|
|
20
|
-
"aria-expanded",
|
|
21
|
-
"onClick"
|
|
22
|
-
], E = {
|
|
23
|
-
key: 1,
|
|
24
|
-
class: "kima-virtual-tree__toggle--empty",
|
|
25
|
-
"aria-hidden": "true"
|
|
26
|
-
}, re = { class: "kima-virtual-tree__label" }, D = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
27
|
-
__name: "virtual-tree.ce",
|
|
28
|
-
props: {
|
|
29
|
-
items: {
|
|
30
|
-
type: Array,
|
|
31
|
-
default: () => []
|
|
32
|
-
},
|
|
33
|
-
expanded: {
|
|
34
|
-
type: Array,
|
|
35
|
-
default: () => []
|
|
36
|
-
},
|
|
37
|
-
modelValue: {
|
|
38
|
-
type: [
|
|
39
|
-
String,
|
|
40
|
-
Number,
|
|
41
|
-
Boolean,
|
|
42
|
-
Array
|
|
43
|
-
],
|
|
44
|
-
default: null
|
|
45
|
-
},
|
|
46
|
-
multiple: Boolean,
|
|
47
|
-
selectable: Boolean,
|
|
48
|
-
itemHeight: {
|
|
49
|
-
type: Number,
|
|
50
|
-
default: 48
|
|
51
|
-
},
|
|
52
|
-
height: {
|
|
53
|
-
type: [Number, String],
|
|
54
|
-
default: 360
|
|
55
|
-
},
|
|
56
|
-
overscan: {
|
|
57
|
-
type: Number,
|
|
58
|
-
default: 4
|
|
59
|
-
},
|
|
60
|
-
disabled: Boolean
|
|
61
|
-
},
|
|
62
|
-
emits: [
|
|
63
|
-
"update:modelValue",
|
|
64
|
-
"update:expanded",
|
|
65
|
-
"select"
|
|
66
|
-
],
|
|
67
|
-
setup(e, { emit: D }) {
|
|
68
|
-
let O = e, k = D, A = _(), j = c()?.ce ? v() : null, M = f(null), N = f(0), P = f(0), F = f(0), I, L = f([...O.expanded]), R = f(O.modelValue), z = `kima-virtual-tree-${y()}`, B = r(() => new Set(L.value)), V = r(() => {
|
|
69
|
-
let e = [];
|
|
70
|
-
function t(n, r = 1, i = null) {
|
|
71
|
-
n.forEach((a, o) => {
|
|
72
|
-
let s = Array.isArray(a.children) ? a.children : [], c = {
|
|
73
|
-
item: a,
|
|
74
|
-
value: a.value,
|
|
75
|
-
children: s,
|
|
76
|
-
level: r,
|
|
77
|
-
parentValue: i,
|
|
78
|
-
position: o + 1,
|
|
79
|
-
setSize: n.length,
|
|
80
|
-
expanded: B.value.has(a.value)
|
|
81
|
-
};
|
|
82
|
-
e.push(c), c.expanded && t(s, r + 1, a.value);
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
return t(O.items), e;
|
|
86
|
-
}), H = r(() => Math.max(1, Math.floor(Number(O.itemHeight) || 48))), U = r(() => P.value || Number.parseFloat(O.height) || H.value * 7), W = r(() => {
|
|
87
|
-
if (!V.value.length) return {
|
|
88
|
-
start: 0,
|
|
89
|
-
end: -1
|
|
90
|
-
};
|
|
91
|
-
let e = Math.max(0, Math.floor(Number(O.overscan) || 0));
|
|
92
|
-
return {
|
|
93
|
-
start: Math.max(0, Math.floor(N.value / H.value) - e),
|
|
94
|
-
end: Math.min(V.value.length - 1, Math.ceil((N.value + U.value) / H.value) + e - 1)
|
|
95
|
-
};
|
|
96
|
-
}), G = r(() => V.value.slice(W.value.start, W.value.end + 1).map((e, t) => ({
|
|
97
|
-
...e,
|
|
98
|
-
index: W.value.start + t
|
|
99
|
-
}))), K = r(() => new Set(O.multiple && Array.isArray(R.value) ? R.value : [])), q = r(() => typeof O.height == "number" ? `${Math.max(0, O.height)}px` : O.height || "360px"), J = r(() => j ? {
|
|
100
|
-
...A,
|
|
101
|
-
id: void 0
|
|
102
|
-
} : A);
|
|
103
|
-
function Y(e) {
|
|
104
|
-
return O.multiple ? K.value.has(e.value) : Object.is(R.value, e.value);
|
|
105
|
-
}
|
|
106
|
-
function X(e) {
|
|
107
|
-
if (!e.children.length || O.disabled || e.item.disabled) return;
|
|
108
|
-
let t = new Set(L.value);
|
|
109
|
-
t.has(e.value) ? t.delete(e.value) : t.add(e.value), L.value = [...t], k("update:expanded", L.value);
|
|
110
|
-
}
|
|
111
|
-
function Z(e) {
|
|
112
|
-
if (!(!O.selectable || O.disabled || e.item.disabled)) {
|
|
113
|
-
if (O.multiple) {
|
|
114
|
-
let t = new Set(K.value);
|
|
115
|
-
t.has(e.value) ? t.delete(e.value) : t.add(e.value), R.value = [...t];
|
|
116
|
-
} else R.value = e.value;
|
|
117
|
-
k("update:modelValue", R.value), k("select", e.value, e.item);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
function Q(e) {
|
|
121
|
-
let t = Math.max(0, Math.min(V.value.length - 1, e));
|
|
122
|
-
F.value = t;
|
|
123
|
-
let n = t * H.value;
|
|
124
|
-
M.value && n < M.value.scrollTop ? M.value.scrollTop = n : M.value && n + H.value > M.value.scrollTop + M.value.clientHeight && (M.value.scrollTop = n + H.value - M.value.clientHeight), queueMicrotask(() => document.getElementById($(t))?.focus());
|
|
125
|
-
}
|
|
126
|
-
function ie(e, t, n) {
|
|
127
|
-
if (!(n.isComposing || n.altKey || n.ctrlKey || n.metaKey)) {
|
|
128
|
-
if (n.key === "ArrowRight") n.preventDefault(), e.children.length && !e.expanded ? X(e) : Q(t + 1);
|
|
129
|
-
else if (n.key === "ArrowLeft") {
|
|
130
|
-
if (n.preventDefault(), e.children.length && e.expanded) X(e);
|
|
131
|
-
else {
|
|
132
|
-
let t = V.value.findIndex((t) => t.value === e.parentValue);
|
|
133
|
-
t >= 0 && Q(t);
|
|
134
|
-
}
|
|
135
|
-
} else n.key === "ArrowDown" ? (n.preventDefault(), Q(t + 1)) : n.key === "ArrowUp" ? (n.preventDefault(), Q(t - 1)) : n.key === "Home" ? (n.preventDefault(), Q(0)) : n.key === "End" ? (n.preventDefault(), Q(V.value.length - 1)) : (n.key === "Enter" || n.key === " ") && (n.preventDefault(), Z(e));
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
function $(e) {
|
|
139
|
-
return `${z}-node-${e}`;
|
|
140
|
-
}
|
|
141
|
-
return ne(() => {
|
|
142
|
-
P.value = M.value?.clientHeight || 0, typeof ResizeObserver < "u" && M.value && (I = new ResizeObserver((e) => {
|
|
143
|
-
P.value = e[0]?.contentRect.height || M.value.clientHeight;
|
|
144
|
-
}), I.observe(M.value));
|
|
145
|
-
}), u(() => I?.disconnect()), b(() => O.expanded, (e) => {
|
|
146
|
-
L.value = [...e];
|
|
147
|
-
}, { deep: !0 }), b(() => O.modelValue, (e) => {
|
|
148
|
-
R.value = e;
|
|
149
|
-
}, { deep: !0 }), (r, c) => (d(), i("div", ee({
|
|
150
|
-
ref_key: "root",
|
|
151
|
-
ref: M
|
|
152
|
-
}, J.value, {
|
|
153
|
-
class: "kima-virtual-tree",
|
|
154
|
-
style: { height: q.value },
|
|
155
|
-
role: "tree",
|
|
156
|
-
"aria-multiselectable": e.multiple || void 0,
|
|
157
|
-
"aria-disabled": e.disabled || void 0,
|
|
158
|
-
onScroll: c[0] ||= (e) => N.value = e.currentTarget.scrollTop
|
|
159
|
-
}), [a("div", {
|
|
160
|
-
class: "kima-virtual-tree__content",
|
|
161
|
-
style: l({ height: `${V.value.length * H.value}px` })
|
|
162
|
-
}, [
|
|
163
|
-
a("div", {
|
|
164
|
-
class: "kima-virtual-tree__spacer",
|
|
165
|
-
style: l({ height: `${W.value.start * H.value}px` }),
|
|
166
|
-
"aria-hidden": "true"
|
|
167
|
-
}, null, 4),
|
|
168
|
-
(d(!0), i(n, null, p(G.value, (n) => (d(), i("div", {
|
|
169
|
-
id: $(n.index),
|
|
170
|
-
key: n.value,
|
|
171
|
-
class: te(["kima-virtual-tree__node", {
|
|
172
|
-
"kima-virtual-tree__node--selected": Y(n),
|
|
173
|
-
"kima-virtual-tree__node--disabled": n.item.disabled
|
|
174
|
-
}]),
|
|
175
|
-
role: "treeitem",
|
|
176
|
-
"aria-level": n.level,
|
|
177
|
-
"aria-posinset": n.position,
|
|
178
|
-
"aria-setsize": n.setSize,
|
|
179
|
-
"aria-expanded": n.children.length ? n.expanded : void 0,
|
|
180
|
-
"aria-selected": e.selectable ? Y(n) : void 0,
|
|
181
|
-
tabindex: n.index === F.value ? 0 : -1,
|
|
182
|
-
style: l({
|
|
183
|
-
"--kima-tree-level": n.level - 1,
|
|
184
|
-
height: `${H.value}px`
|
|
185
|
-
}),
|
|
186
|
-
onClick: (e) => Z(n),
|
|
187
|
-
onKeydown: (e) => ie(n, n.index, e)
|
|
188
|
-
}, [n.children.length ? (d(), i("button", {
|
|
189
|
-
key: 0,
|
|
190
|
-
class: "kima-virtual-tree__toggle",
|
|
191
|
-
type: "button",
|
|
192
|
-
disabled: e.disabled || n.item.disabled,
|
|
193
|
-
"aria-label": `${n.expanded ? "收起" : "展开"} ${n.item.label}`,
|
|
194
|
-
"aria-expanded": n.expanded,
|
|
195
|
-
onClick: x((e) => X(n), ["stop"])
|
|
196
|
-
}, [s(t, {
|
|
197
|
-
icon: g(S),
|
|
198
|
-
size: 18,
|
|
199
|
-
"aria-hidden": "true"
|
|
200
|
-
}, null, 8, ["icon"])], 8, T)) : (d(), i("span", E)), a("span", re, [m(r.$slots, "default", {
|
|
201
|
-
item: n.item,
|
|
202
|
-
level: n.level,
|
|
203
|
-
expanded: n.expanded
|
|
204
|
-
}, () => [o(h(n.item.label), 1)], !0)])], 46, w))), 128)),
|
|
205
|
-
a("div", {
|
|
206
|
-
class: "kima-virtual-tree__spacer",
|
|
207
|
-
style: l({ height: `${Math.max(0, V.value.length * H.value - (W.value.end + 1) * H.value)}px` }),
|
|
208
|
-
"aria-hidden": "true"
|
|
209
|
-
}, null, 4)
|
|
210
|
-
], 4)], 16, C));
|
|
211
|
-
}
|
|
212
|
-
}), [["__scopeId", "data-v-5d8790bf"]]);
|
|
213
|
-
export { D as default };
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { useNativeSlots as e } from "../../utils/native-slots.js";
|
|
2
|
-
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
import n from "../core/button.ce.js";
|
|
4
|
-
import r from "../core/icon.ce.js";
|
|
5
|
-
import { collapseTransition as i } from "../../utils/motion.js";
|
|
6
|
-
import { displayStatus as a } from "../../utils/display-status.js";
|
|
7
|
-
/* empty css */
|
|
8
|
-
import { Transition as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, mergeProps as m, openBlock as h, ref as g, renderSlot as _, toDisplayString as v, unref as y, useAttrs as b, vShow as x, watch as S, withCtx as C, withDirectives as w } from "vue";
|
|
9
|
-
import { Cancel01Icon as T } from "@hugeicons/core-free-icons";
|
|
10
|
-
// src/components/display/alert.ce.vue
|
|
11
|
-
var E = ["inert", "aria-hidden"], D = ["data-variant", "role"], O = ["aria-label"], k = { class: "kima-alert__body" }, A = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "kima-alert__heading"
|
|
14
|
-
}, j = {
|
|
15
|
-
key: 1,
|
|
16
|
-
class: "kima-alert__action"
|
|
17
|
-
}, M = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
18
|
-
__name: "alert.ce",
|
|
19
|
-
props: {
|
|
20
|
-
open: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: !0
|
|
23
|
-
},
|
|
24
|
-
variant: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: "info"
|
|
27
|
-
},
|
|
28
|
-
heading: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: ""
|
|
31
|
-
},
|
|
32
|
-
description: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: ""
|
|
35
|
-
},
|
|
36
|
-
closable: Boolean,
|
|
37
|
-
closeLabel: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: "关闭提示"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
emits: ["update:open", "close"],
|
|
43
|
-
setup(t, { emit: M }) {
|
|
44
|
-
let N = t, P = M, F = b(), I = g(null), { isCustomElement: L, hasNativeSlot: R } = e(I), z = g(N.open);
|
|
45
|
-
S(() => N.open, (e) => {
|
|
46
|
-
z.value = e;
|
|
47
|
-
});
|
|
48
|
-
let B = s(() => a(N.variant));
|
|
49
|
-
function V() {
|
|
50
|
-
z.value && (z.value = !1, P("update:open", !1), P("close"));
|
|
51
|
-
}
|
|
52
|
-
return (e, a) => (h(), c(o, m({ css: !1 }, y(i)), {
|
|
53
|
-
default: C(() => [w(d("div", {
|
|
54
|
-
class: "kima-alert__collapse",
|
|
55
|
-
inert: !z.value,
|
|
56
|
-
"aria-hidden": !z.value
|
|
57
|
-
}, [d("section", m({
|
|
58
|
-
ref_key: "root",
|
|
59
|
-
ref: I
|
|
60
|
-
}, {
|
|
61
|
-
...y(F),
|
|
62
|
-
id: y(L) ? void 0 : y(F).id
|
|
63
|
-
}, {
|
|
64
|
-
class: "kima-alert",
|
|
65
|
-
"data-variant": B.value.variant,
|
|
66
|
-
role: ["danger", "warning"].includes(B.value.variant) ? "alert" : "status",
|
|
67
|
-
"aria-atomic": "true"
|
|
68
|
-
}), [
|
|
69
|
-
d("span", {
|
|
70
|
-
class: "kima-alert__icon",
|
|
71
|
-
role: "img",
|
|
72
|
-
"aria-label": B.value.label
|
|
73
|
-
}, [_(e.$slots, "icon", {}, () => [p(r, {
|
|
74
|
-
icon: B.value.icon,
|
|
75
|
-
size: 28
|
|
76
|
-
}, null, 8, ["icon"])], !0)], 8, O),
|
|
77
|
-
d("div", k, [
|
|
78
|
-
t.heading ? (h(), u("strong", A, v(t.heading), 1)) : l("", !0),
|
|
79
|
-
d("div", null, [_(e.$slots, "default", {}, () => [f(v(t.description), 1)], !0)]),
|
|
80
|
-
e.$slots.action || y(R)("action") || y(L) ? (h(), u("div", j, [_(e.$slots, "action", {}, void 0, !0)])) : l("", !0)
|
|
81
|
-
]),
|
|
82
|
-
t.closable ? (h(), c(n, {
|
|
83
|
-
key: 0,
|
|
84
|
-
variant: "text",
|
|
85
|
-
class: "kima-alert__close",
|
|
86
|
-
"aria-label": t.closeLabel,
|
|
87
|
-
onClick: V
|
|
88
|
-
}, {
|
|
89
|
-
default: C(() => [p(r, {
|
|
90
|
-
icon: y(T),
|
|
91
|
-
size: 20,
|
|
92
|
-
"aria-hidden": "true"
|
|
93
|
-
}, null, 8, ["icon"])]),
|
|
94
|
-
_: 1
|
|
95
|
-
}, 8, ["aria-label"])) : l("", !0)
|
|
96
|
-
], 16, D)], 8, E), [[x, z.value]])]),
|
|
97
|
-
_: 3
|
|
98
|
-
}, 16));
|
|
99
|
-
}
|
|
100
|
-
}), [["__scopeId", "data-v-d31c4df3"]]);
|
|
101
|
-
export { M as default };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { useNativeSlots as e } from "../../utils/native-slots.js";
|
|
2
|
-
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
import n from "./avatar.ce.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { Fragment as r, TransitionGroup as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createVNode as l, mergeProps as u, openBlock as d, ref as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useAttrs as _, withCtx as v } from "vue";
|
|
6
|
-
// src/components/display/avatar-group.ce.vue
|
|
7
|
-
var y = ["aria-label"], b = ["aria-label", "title"], x = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
8
|
-
__name: "avatar-group.ce",
|
|
9
|
-
props: {
|
|
10
|
-
items: {
|
|
11
|
-
type: Array,
|
|
12
|
-
default: () => []
|
|
13
|
-
},
|
|
14
|
-
max: {
|
|
15
|
-
type: Number,
|
|
16
|
-
default: 5
|
|
17
|
-
},
|
|
18
|
-
label: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "成员"
|
|
21
|
-
},
|
|
22
|
-
size: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: "medium"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
setup(t) {
|
|
28
|
-
let x = t, S = _(), C = f(null), { isCustomElement: w } = e(C), T = a(() => Number.isFinite(x.max) ? Math.max(0, Math.floor(x.max)) : x.items.length), E = a(() => x.items.slice(0, T.value)), D = a(() => Math.max(0, x.items.length - E.value.length)), O = a(() => x.items.slice(T.value).map((e) => e.name).filter(Boolean).join("、"));
|
|
29
|
-
return (e, a) => (d(), c("div", u({
|
|
30
|
-
ref_key: "root",
|
|
31
|
-
ref: C
|
|
32
|
-
}, {
|
|
33
|
-
...g(S),
|
|
34
|
-
id: g(w) ? void 0 : g(S).id
|
|
35
|
-
}, {
|
|
36
|
-
class: "kima-avatar-group",
|
|
37
|
-
role: "group",
|
|
38
|
-
"aria-label": t.label
|
|
39
|
-
}), [m(e.$slots, "default", {}, () => [l(i, {
|
|
40
|
-
name: "kima-list",
|
|
41
|
-
tag: "div",
|
|
42
|
-
class: "kima-avatar-group__items"
|
|
43
|
-
}, {
|
|
44
|
-
default: v(() => [(d(!0), c(r, null, p(E.value, (e, r) => (d(), o(n, {
|
|
45
|
-
key: `avatar-${e.id ?? r}`,
|
|
46
|
-
src: e.src,
|
|
47
|
-
name: e.name,
|
|
48
|
-
alt: e.alt,
|
|
49
|
-
size: t.size
|
|
50
|
-
}, null, 8, [
|
|
51
|
-
"src",
|
|
52
|
-
"name",
|
|
53
|
-
"alt",
|
|
54
|
-
"size"
|
|
55
|
-
]))), 128)), D.value ? (d(), c("span", {
|
|
56
|
-
key: "more",
|
|
57
|
-
class: "kima-avatar-group__more",
|
|
58
|
-
"aria-label": `另有 ${D.value} 位成员${O.value ? ":" + O.value : ""}`,
|
|
59
|
-
title: O.value
|
|
60
|
-
}, "+" + h(D.value), 9, b)) : s("", !0)]),
|
|
61
|
-
_: 1
|
|
62
|
-
})], !0)], 16, y));
|
|
63
|
-
}
|
|
64
|
-
}), [["__scopeId", "data-v-9545415b"]]);
|
|
65
|
-
export { x as default };
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { useNativeSlots as e } from "../../utils/native-slots.js";
|
|
2
|
-
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
import n from "../core/icon.ce.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, mergeProps as l, normalizeClass as u, openBlock as d, ref as f, toDisplayString as p, unref as m, useAttrs as h, watch as g, withCtx as _ } from "vue";
|
|
6
|
-
import { UserCircleIcon as v } from "@hugeicons/core-free-icons";
|
|
7
|
-
// src/components/display/avatar.ce.vue
|
|
8
|
-
var y = [
|
|
9
|
-
"role",
|
|
10
|
-
"aria-label",
|
|
11
|
-
"aria-hidden"
|
|
12
|
-
], b = ["src", "alt"], x = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "kima-avatar__fallback",
|
|
15
|
-
"aria-hidden": "true"
|
|
16
|
-
}, S = { key: 0 }, C = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
17
|
-
__name: "avatar.ce",
|
|
18
|
-
props: {
|
|
19
|
-
src: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: ""
|
|
22
|
-
},
|
|
23
|
-
name: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: ""
|
|
26
|
-
},
|
|
27
|
-
alt: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: void 0
|
|
30
|
-
},
|
|
31
|
-
size: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: "medium"
|
|
34
|
-
},
|
|
35
|
-
shape: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: "rounded"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
emits: ["load", "error"],
|
|
41
|
-
setup(t, { emit: C }) {
|
|
42
|
-
let w = t, T = C, E = h(), D = f(null), { isCustomElement: O } = e(D), k = f(!1), A = f(!1);
|
|
43
|
-
g(() => w.src, () => {
|
|
44
|
-
k.value = !1, A.value = !1;
|
|
45
|
-
});
|
|
46
|
-
function j(e) {
|
|
47
|
-
A.value = !0, T("load", e);
|
|
48
|
-
}
|
|
49
|
-
function M(e) {
|
|
50
|
-
k.value = !0, A.value = !1, T("error", e);
|
|
51
|
-
}
|
|
52
|
-
let N = i(() => w.alt ?? w.name), P = i(() => {
|
|
53
|
-
let e = w.name.trim().split(/\s+/u);
|
|
54
|
-
return e.length > 1 ? e.slice(0, 2).map((e) => Array.from(e)[0]).join("").toUpperCase() : Array.from(e[0]).slice(0, 2).join("");
|
|
55
|
-
});
|
|
56
|
-
return (e, i) => (d(), s("span", l({
|
|
57
|
-
ref_key: "root",
|
|
58
|
-
ref: D
|
|
59
|
-
}, {
|
|
60
|
-
...m(E),
|
|
61
|
-
id: m(O) ? void 0 : m(E).id
|
|
62
|
-
}, {
|
|
63
|
-
class: ["kima-avatar", [`kima-avatar--${t.size}`, { "kima-avatar--circle": t.shape === "circle" }]],
|
|
64
|
-
role: !t.src || k.value ? "img" : void 0,
|
|
65
|
-
"aria-label": (!t.src || k.value) && N.value || void 0,
|
|
66
|
-
"aria-hidden": (!t.src || k.value) && !N.value ? !0 : void 0
|
|
67
|
-
}), [t.src && !k.value ? (d(), s("img", {
|
|
68
|
-
key: t.src,
|
|
69
|
-
src: t.src,
|
|
70
|
-
alt: N.value,
|
|
71
|
-
class: u({ "kima-avatar__image--loaded": A.value }),
|
|
72
|
-
onLoad: j,
|
|
73
|
-
onError: M
|
|
74
|
-
}, null, 42, b)) : o("", !0), c(r, { name: "kima-fade" }, {
|
|
75
|
-
default: _(() => [A.value ? o("", !0) : (d(), s("span", x, [P.value ? (d(), s("span", S, p(P.value), 1)) : (d(), a(n, {
|
|
76
|
-
key: 1,
|
|
77
|
-
icon: m(v),
|
|
78
|
-
size: 28
|
|
79
|
-
}, null, 8, ["icon"]))]))]),
|
|
80
|
-
_: 1
|
|
81
|
-
})], 16, y));
|
|
82
|
-
}
|
|
83
|
-
}), [["__scopeId", "data-v-eb8fc9ea"]]);
|
|
84
|
-
export { C as default };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { useNativeSlots as e } from "../../utils/native-slots.js";
|
|
2
|
-
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
import n from "../core/icon.ce.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, mergeProps as s, openBlock as c, ref as l, renderSlot as u, toDisplayString as d, unref as f, useAttrs as p } from "vue";
|
|
6
|
-
import { QuoteUpIcon as m } from "@hugeicons/core-free-icons";
|
|
7
|
-
// src/components/display/blockquote.ce.vue
|
|
8
|
-
var h = ["cite"], g = { key: 0 }, _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
9
|
-
__name: "blockquote.ce",
|
|
10
|
-
props: {
|
|
11
|
-
cite: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: void 0
|
|
14
|
-
},
|
|
15
|
-
author: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: ""
|
|
18
|
-
},
|
|
19
|
-
source: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: ""
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
setup(t) {
|
|
25
|
-
let y = p(), b = l(null), { isCustomElement: x, hasNativeSlot: S } = e(b);
|
|
26
|
-
return (e, l) => (c(), i("figure", s({
|
|
27
|
-
ref_key: "root",
|
|
28
|
-
ref: b
|
|
29
|
-
}, {
|
|
30
|
-
...f(y),
|
|
31
|
-
id: f(x) ? void 0 : f(y).id
|
|
32
|
-
}, { class: "kima-blockquote" }), [
|
|
33
|
-
o(n, {
|
|
34
|
-
icon: f(m),
|
|
35
|
-
size: 32,
|
|
36
|
-
class: "kima-blockquote__icon",
|
|
37
|
-
"aria-hidden": "true"
|
|
38
|
-
}, null, 8, ["icon"]),
|
|
39
|
-
a("blockquote", { cite: t.cite }, [u(e.$slots, "default", {}, void 0, !0)], 8, h),
|
|
40
|
-
t.author || t.source || e.$slots.caption || f(S)("caption") || f(x) ? (c(), i("figcaption", g, [u(e.$slots, "caption", {}, () => [t.author ? (c(), i("span", _, "— " + d(t.author), 1)) : r("", !0), t.source ? (c(), i("cite", v, d(t.source), 1)) : r("", !0)], !0)])) : r("", !0)
|
|
41
|
-
], 16));
|
|
42
|
-
}
|
|
43
|
-
}), [["__scopeId", "data-v-e56b05b8"]]);
|
|
44
|
-
export { y as default };
|