@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,104 +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 { presenceTransition as r } from "../../utils/motion.js";
|
|
5
|
-
import { useInteractionModel as i, useInteractionRoot as a } from "../../utils/interaction.js";
|
|
6
|
-
/* empty css */
|
|
7
|
-
import { Fragment as o, Transition as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createTextVNode as d, createVNode as f, mergeProps as p, nextTick as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, renderList as y, renderSlot as b, toDisplayString as x, unref as S, useId as C, withCtx as w } from "vue";
|
|
8
|
-
import { Add01Icon as T } from "@hugeicons/core-free-icons";
|
|
9
|
-
// src/components/utility/float-button.ce.vue
|
|
10
|
-
var E = ["aria-label"], D = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
11
|
-
__name: "float-button.ce",
|
|
12
|
-
props: {
|
|
13
|
-
open: Boolean,
|
|
14
|
-
disabled: Boolean,
|
|
15
|
-
label: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "快捷操作"
|
|
18
|
-
},
|
|
19
|
-
actions: {
|
|
20
|
-
type: Array,
|
|
21
|
-
default: () => []
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
emits: ["update:open", "action"],
|
|
25
|
-
setup(e, { emit: D }) {
|
|
26
|
-
let O = e, k = D, { root: A, forwardedAttrs: j } = a(), [M, N] = i(O, "open", k), P = `kima-float-${C()}`, F = v(null);
|
|
27
|
-
function I() {
|
|
28
|
-
return A.value?.querySelector(".kima-float-button__trigger");
|
|
29
|
-
}
|
|
30
|
-
function L(e = !1) {
|
|
31
|
-
N(!1), e && I()?.focus();
|
|
32
|
-
}
|
|
33
|
-
async function R() {
|
|
34
|
-
O.disabled || (N(!M.value), M.value && (await m(), F.value?.querySelector("button:not(:disabled)")?.focus()));
|
|
35
|
-
}
|
|
36
|
-
function z(e) {
|
|
37
|
-
if (e.key === "Escape" && M.value && (e.preventDefault(), e.stopPropagation(), L(!0)), ![
|
|
38
|
-
"ArrowDown",
|
|
39
|
-
"ArrowUp",
|
|
40
|
-
"Home",
|
|
41
|
-
"End"
|
|
42
|
-
].includes(e.key) || !M.value) return;
|
|
43
|
-
let t = [...F.value?.querySelectorAll("button:not(:disabled)") || []];
|
|
44
|
-
if (!t.length) return;
|
|
45
|
-
e.preventDefault();
|
|
46
|
-
let n = t.indexOf(document.activeElement);
|
|
47
|
-
t[e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : (n + (e.key === "ArrowUp" ? -1 : 1) + t.length) % t.length]?.focus();
|
|
48
|
-
}
|
|
49
|
-
function B(e) {
|
|
50
|
-
A.value?.contains(e.target) || L();
|
|
51
|
-
}
|
|
52
|
-
function V(e) {
|
|
53
|
-
e.disabled || (k("action", e), L(!0));
|
|
54
|
-
}
|
|
55
|
-
let H;
|
|
56
|
-
return g(() => {
|
|
57
|
-
H = A.value.ownerDocument, H.addEventListener("pointerdown", B);
|
|
58
|
-
}), h(() => H?.removeEventListener("pointerdown", B)), (i, a) => (_(), u("div", p({
|
|
59
|
-
ref_key: "root",
|
|
60
|
-
ref: A
|
|
61
|
-
}, S(j), {
|
|
62
|
-
class: "kima-float-button",
|
|
63
|
-
onKeydown: z
|
|
64
|
-
}), [f(s, p({ name: "kima-popup" }, S(r)), {
|
|
65
|
-
default: w(() => [S(M) && !e.disabled ? (_(), u("div", {
|
|
66
|
-
key: 0,
|
|
67
|
-
id: P,
|
|
68
|
-
ref_key: "panel",
|
|
69
|
-
ref: F,
|
|
70
|
-
class: "kima-float-button__actions",
|
|
71
|
-
role: "group",
|
|
72
|
-
"aria-label": e.label
|
|
73
|
-
}, [(_(!0), u(o, null, y(e.actions, (e) => (_(), c(t, {
|
|
74
|
-
key: e.id ?? e.label,
|
|
75
|
-
variant: "tonal",
|
|
76
|
-
disabled: e.disabled,
|
|
77
|
-
onClick: (t) => V(e)
|
|
78
|
-
}, {
|
|
79
|
-
default: w(() => [d(x(e.label), 1)]),
|
|
80
|
-
_: 2
|
|
81
|
-
}, 1032, ["disabled", "onClick"]))), 128))], 8, E)) : l("", !0)]),
|
|
82
|
-
_: 1
|
|
83
|
-
}, 16), f(t, {
|
|
84
|
-
class: "kima-float-button__trigger",
|
|
85
|
-
"aria-label": e.label,
|
|
86
|
-
"aria-expanded": S(M) && !e.disabled,
|
|
87
|
-
"aria-controls": S(M) ? P : void 0,
|
|
88
|
-
disabled: e.disabled,
|
|
89
|
-
onClick: R
|
|
90
|
-
}, {
|
|
91
|
-
default: w(() => [f(n, {
|
|
92
|
-
icon: S(T),
|
|
93
|
-
size: 24
|
|
94
|
-
}, null, 8, ["icon"]), b(i.$slots, "default", {}, () => [d(x(e.label), 1)], !0)]),
|
|
95
|
-
_: 3
|
|
96
|
-
}, 8, [
|
|
97
|
-
"aria-label",
|
|
98
|
-
"aria-expanded",
|
|
99
|
-
"aria-controls",
|
|
100
|
-
"disabled"
|
|
101
|
-
])], 16));
|
|
102
|
-
}
|
|
103
|
-
}), [["__scopeId", "data-v-1edb2eb1"]]);
|
|
104
|
-
export { D as default };
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { useRipple as e } from "../../utils/ripple.js";
|
|
2
|
-
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
import n from "../core/icon.ce.js";
|
|
4
|
-
import { useInteractionRoot as r } from "../../utils/interaction.js";
|
|
5
|
-
import { useUtilityChoice as i } from "../../utils/utility-choice.js";
|
|
6
|
-
/* empty css */
|
|
7
|
-
import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, mergeProps as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h } from "vue";
|
|
8
|
-
import { Tick01Icon as g } from "@hugeicons/core-free-icons";
|
|
9
|
-
// src/components/utility/listbox.ce.vue
|
|
10
|
-
var _ = [
|
|
11
|
-
"aria-label",
|
|
12
|
-
"aria-multiselectable",
|
|
13
|
-
"aria-disabled",
|
|
14
|
-
"tabindex"
|
|
15
|
-
], v = [
|
|
16
|
-
"id",
|
|
17
|
-
"tabindex",
|
|
18
|
-
"aria-selected",
|
|
19
|
-
"aria-disabled",
|
|
20
|
-
"data-disabled",
|
|
21
|
-
"onFocus",
|
|
22
|
-
"onClick"
|
|
23
|
-
], y = { class: "kima-listbox__option-copy" }, b = { key: 0 }, x = { key: 0 }, S = [
|
|
24
|
-
"name",
|
|
25
|
-
"value",
|
|
26
|
-
"disabled"
|
|
27
|
-
], C = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
28
|
-
__name: "listbox.ce",
|
|
29
|
-
props: {
|
|
30
|
-
modelValue: {
|
|
31
|
-
type: [
|
|
32
|
-
String,
|
|
33
|
-
Number,
|
|
34
|
-
Array
|
|
35
|
-
],
|
|
36
|
-
default: null
|
|
37
|
-
},
|
|
38
|
-
options: {
|
|
39
|
-
type: Array,
|
|
40
|
-
default: () => []
|
|
41
|
-
},
|
|
42
|
-
multiple: Boolean,
|
|
43
|
-
disabled: Boolean,
|
|
44
|
-
name: String,
|
|
45
|
-
label: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: "选项列表"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
emits: ["update:modelValue", "change"],
|
|
51
|
-
setup(t, { emit: C }) {
|
|
52
|
-
let w = t, T = C, { root: E, forwardedAttrs: D } = r(), { values: O, filtered: k, active: A, id: j, selected: M, choose: N, move: P } = i(w, T, E);
|
|
53
|
-
return e(E), (e, r) => (d(), c("div", u({
|
|
54
|
-
ref_key: "root",
|
|
55
|
-
ref: E
|
|
56
|
-
}, h(D), { class: "kima-listbox" }), [l("div", {
|
|
57
|
-
role: "listbox",
|
|
58
|
-
"aria-label": t.label,
|
|
59
|
-
"aria-multiselectable": t.multiple || void 0,
|
|
60
|
-
"aria-disabled": t.disabled,
|
|
61
|
-
tabindex: h(k).some((e) => !e.disabled) ? void 0 : 0,
|
|
62
|
-
onKeydown: r[0] ||= (e) => h(P)(e, !0)
|
|
63
|
-
}, [(d(!0), c(a, null, f(h(k), (r, i) => (d(), c("div", {
|
|
64
|
-
id: `${h(j)}-${i}`,
|
|
65
|
-
key: r.index,
|
|
66
|
-
class: "kima-listbox__option kima-ripple-host",
|
|
67
|
-
role: "option",
|
|
68
|
-
tabindex: !t.disabled && i === h(A) ? 0 : -1,
|
|
69
|
-
"aria-selected": h(M)(r),
|
|
70
|
-
"aria-disabled": t.disabled || r.disabled,
|
|
71
|
-
"data-disabled": t.disabled || r.disabled || void 0,
|
|
72
|
-
onFocus: (e) => A.value = i,
|
|
73
|
-
onClick: (e) => h(N)(r)
|
|
74
|
-
}, [p(e.$slots, "option", {
|
|
75
|
-
item: r,
|
|
76
|
-
selected: h(M)(r),
|
|
77
|
-
disabled: t.disabled || r.disabled
|
|
78
|
-
}, () => [
|
|
79
|
-
r.icon ? (d(), o(n, {
|
|
80
|
-
key: 0,
|
|
81
|
-
icon: r.icon,
|
|
82
|
-
size: 20,
|
|
83
|
-
"aria-hidden": "true"
|
|
84
|
-
}, null, 8, ["icon"])) : s("", !0),
|
|
85
|
-
l("span", y, [l("span", null, m(r.label ?? r.value), 1), r.description ? (d(), c("small", b, m(r.description), 1)) : s("", !0)]),
|
|
86
|
-
h(M)(r) ? (d(), o(n, {
|
|
87
|
-
key: 1,
|
|
88
|
-
icon: h(g),
|
|
89
|
-
class: "kima-listbox__check",
|
|
90
|
-
size: 18,
|
|
91
|
-
"aria-hidden": "true"
|
|
92
|
-
}, null, 8, ["icon"])) : s("", !0)
|
|
93
|
-
], !0)], 40, v))), 128)), h(k).length ? s("", !0) : (d(), c("p", x, "暂无选项"))], 40, _), (d(!0), c(a, null, f(h(O), (e, n) => (d(), c("input", {
|
|
94
|
-
key: n,
|
|
95
|
-
type: "hidden",
|
|
96
|
-
name: t.name,
|
|
97
|
-
value: e,
|
|
98
|
-
disabled: t.disabled
|
|
99
|
-
}, null, 8, S))), 128))], 16));
|
|
100
|
-
}
|
|
101
|
-
}), [["__scopeId", "data-v-8eab8b73"]]);
|
|
102
|
-
export { C as default };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import { presenceTransition as t } from "../../utils/motion.js";
|
|
3
|
-
import { useInteractionRoot as n } from "../../utils/interaction.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { Transition as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, mergeProps as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as d, openBlock as f, ref as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
6
|
-
// src/components/utility/loading-bar.ce.vue
|
|
7
|
-
var _ = ["aria-busy"], v = {
|
|
8
|
-
class: "kima-loading-bar__status",
|
|
9
|
-
role: "status"
|
|
10
|
-
}, y = ["aria-label", "aria-valuenow"], b = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
11
|
-
__name: "loading-bar.ce",
|
|
12
|
-
props: {
|
|
13
|
-
label: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: "加载进度"
|
|
16
|
-
},
|
|
17
|
-
finishDelay: {
|
|
18
|
-
type: Number,
|
|
19
|
-
default: 250
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
emits: [
|
|
23
|
-
"start",
|
|
24
|
-
"finish",
|
|
25
|
-
"error",
|
|
26
|
-
"change"
|
|
27
|
-
],
|
|
28
|
-
setup(e, { expose: b, emit: x }) {
|
|
29
|
-
let S = e, C = x, { root: w, forwardedAttrs: T } = n(), E = p(0), D = p(0), O = p(!1), k = p(!1), A, j, M = 0;
|
|
30
|
-
function N() {
|
|
31
|
-
clearInterval(A), clearTimeout(j);
|
|
32
|
-
}
|
|
33
|
-
function P() {
|
|
34
|
-
clearTimeout(j), k.value = !1, E.value || (M++, D.value = 8, clearInterval(A), A = setInterval(() => {
|
|
35
|
-
D.value += (90 - D.value) * .08;
|
|
36
|
-
}, 200)), E.value++, O.value = !0, C("start", E.value), C("change", E.value);
|
|
37
|
-
let e = M, t = !1;
|
|
38
|
-
return () => {
|
|
39
|
-
!t && e === M && (t = !0, I());
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function F(e) {
|
|
43
|
-
N(), D.value = 100, k.value = e;
|
|
44
|
-
let t = ++M;
|
|
45
|
-
j = setTimeout(() => {
|
|
46
|
-
t === M && !E.value && (O.value = !1);
|
|
47
|
-
}, Math.max(0, S.finishDelay));
|
|
48
|
-
}
|
|
49
|
-
function I() {
|
|
50
|
-
E.value && (E.value--, C("change", E.value), E.value || (F(!1), C("finish")));
|
|
51
|
-
}
|
|
52
|
-
function L(e = "加载失败") {
|
|
53
|
-
E.value = 0, F(!0), C("change", 0), C("error", e);
|
|
54
|
-
}
|
|
55
|
-
return d(() => {
|
|
56
|
-
M++, N();
|
|
57
|
-
}), b({
|
|
58
|
-
start: P,
|
|
59
|
-
finish: I,
|
|
60
|
-
error: L,
|
|
61
|
-
count: E
|
|
62
|
-
}), (n, d) => (f(), a("div", c({
|
|
63
|
-
ref_key: "root",
|
|
64
|
-
ref: w
|
|
65
|
-
}, h(T), {
|
|
66
|
-
class: "kima-loading-bar",
|
|
67
|
-
"aria-busy": E.value > 0
|
|
68
|
-
}), [o("span", v, m(k.value ? "加载失败" : E.value ? `${e.label}:${E.value} 项` : ""), 1), s(r, c({ name: "kima-fade" }, h(t)), {
|
|
69
|
-
default: g(() => [O.value ? (f(), a("div", {
|
|
70
|
-
key: 0,
|
|
71
|
-
class: "kima-loading-bar__track",
|
|
72
|
-
role: "progressbar",
|
|
73
|
-
"aria-label": e.label,
|
|
74
|
-
"aria-valuemin": "0",
|
|
75
|
-
"aria-valuemax": "100",
|
|
76
|
-
"aria-valuenow": E.value ? void 0 : 100
|
|
77
|
-
}, [o("div", {
|
|
78
|
-
class: l(["kima-loading-bar__fill", { "kima-loading-bar__fill--error": k.value }]),
|
|
79
|
-
style: u({ width: `${D.value}%` })
|
|
80
|
-
}, null, 6)], 8, y)) : i("", !0)]),
|
|
81
|
-
_: 1
|
|
82
|
-
}, 16)], 16, _));
|
|
83
|
-
}
|
|
84
|
-
}), [["__scopeId", "data-v-4109ea9a"]]);
|
|
85
|
-
export { b as default };
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import { useInteractionRoot as t } from "../../utils/interaction.js";
|
|
3
|
-
import n from "../core/icon-button.ce.js";
|
|
4
|
-
import r from "../core/tooltip.ce.js";
|
|
5
|
-
import i from "../display/highlight.ce.js";
|
|
6
|
-
/* empty css */
|
|
7
|
-
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, mergeProps as d, nextTick as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, vModelText as v, watch as y, withCtx as b, withDirectives as x } from "vue";
|
|
8
|
-
import { Download01Icon as S, PauseIcon as C, PlayIcon as w } from "@hugeicons/core-free-icons";
|
|
9
|
-
// src/components/utility/log-viewer.ce.vue
|
|
10
|
-
var T = ["aria-label"], E = { class: "kima-log-viewer__tools" }, D = {
|
|
11
|
-
class: "kima-log-viewer__follow-status",
|
|
12
|
-
role: "status"
|
|
13
|
-
}, O = ["aria-label", "aria-live"], k = { key: 0 }, A = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
14
|
-
__name: "log-viewer.ce",
|
|
15
|
-
props: {
|
|
16
|
-
lines: {
|
|
17
|
-
type: Array,
|
|
18
|
-
default: () => []
|
|
19
|
-
},
|
|
20
|
-
maxLines: {
|
|
21
|
-
type: Number,
|
|
22
|
-
default: 1e3
|
|
23
|
-
},
|
|
24
|
-
label: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: "日志"
|
|
27
|
-
},
|
|
28
|
-
searchable: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !0
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
emits: [
|
|
34
|
-
"append",
|
|
35
|
-
"follow-change",
|
|
36
|
-
"export"
|
|
37
|
-
],
|
|
38
|
-
setup(e, { expose: A, emit: j }) {
|
|
39
|
-
let M = e, N = j, { root: P, forwardedAttrs: F } = t(), I = m([]), L = m(""), R = m(!0), z = m(null), B = 0;
|
|
40
|
-
function V() {
|
|
41
|
-
I.value = I.value.slice(-Math.max(1, Math.floor(M.maxLines) || 1));
|
|
42
|
-
}
|
|
43
|
-
async function H() {
|
|
44
|
-
await f(), R.value && z.value && (z.value.scrollTop = z.value.scrollHeight);
|
|
45
|
-
}
|
|
46
|
-
function U(e) {
|
|
47
|
-
let t = Array.isArray(e) ? e : String(e).split("\n");
|
|
48
|
-
I.value.push(...t.map((e) => ({
|
|
49
|
-
id: ++B,
|
|
50
|
-
text: String(e)
|
|
51
|
-
}))), V(), H(), N("append", t);
|
|
52
|
-
}
|
|
53
|
-
y(() => M.lines, (e) => {
|
|
54
|
-
I.value = e.map((e) => ({
|
|
55
|
-
id: ++B,
|
|
56
|
-
text: String(e)
|
|
57
|
-
})), V(), H();
|
|
58
|
-
}, {
|
|
59
|
-
immediate: !0,
|
|
60
|
-
deep: !0
|
|
61
|
-
}), y(() => M.maxLines, V);
|
|
62
|
-
let W = o(() => I.value.filter((e) => !L.value || e.text.toLocaleLowerCase().includes(L.value.toLocaleLowerCase())));
|
|
63
|
-
function G(e) {
|
|
64
|
-
R.value !== e && (R.value = e, N("follow-change", e)), e && H();
|
|
65
|
-
}
|
|
66
|
-
function K() {
|
|
67
|
-
let e = z.value;
|
|
68
|
-
G(e.scrollHeight - e.scrollTop - e.clientHeight < 8);
|
|
69
|
-
}
|
|
70
|
-
function q() {
|
|
71
|
-
let e = I.value.map((e) => e.text).join("\n");
|
|
72
|
-
return N("export", e), e;
|
|
73
|
-
}
|
|
74
|
-
function J() {
|
|
75
|
-
let e = URL.createObjectURL(new Blob([q()], { type: "text/plain;charset=utf-8" })), t = document.createElement("a");
|
|
76
|
-
t.href = e, t.download = "kima-log.txt", t.click(), setTimeout(() => URL.revokeObjectURL(e), 0);
|
|
77
|
-
}
|
|
78
|
-
return A({
|
|
79
|
-
append: U,
|
|
80
|
-
exportText: q,
|
|
81
|
-
resume: () => G(!0)
|
|
82
|
-
}), (t, o) => (p(), c("section", d({
|
|
83
|
-
ref_key: "root",
|
|
84
|
-
ref: P
|
|
85
|
-
}, _(F), {
|
|
86
|
-
class: "kima-log-viewer",
|
|
87
|
-
"aria-label": e.label
|
|
88
|
-
}), [l("div", E, [
|
|
89
|
-
e.searchable ? x((p(), c("input", {
|
|
90
|
-
key: 0,
|
|
91
|
-
"onUpdate:modelValue": o[0] ||= (e) => L.value = e,
|
|
92
|
-
type: "search",
|
|
93
|
-
placeholder: "过滤日志",
|
|
94
|
-
"aria-label": "搜索日志"
|
|
95
|
-
}, null, 512)), [[v, L.value]]) : s("", !0),
|
|
96
|
-
u(r, { text: R.value ? "暂停跟尾" : "恢复跟尾" }, {
|
|
97
|
-
default: b(() => [u(n, {
|
|
98
|
-
icon: R.value ? _(C) : _(w),
|
|
99
|
-
label: R.value ? "暂停跟尾" : "恢复跟尾",
|
|
100
|
-
variant: R.value ? "tonal" : "standard",
|
|
101
|
-
"aria-pressed": R.value,
|
|
102
|
-
onClick: o[1] ||= (e) => G(!R.value)
|
|
103
|
-
}, null, 8, [
|
|
104
|
-
"icon",
|
|
105
|
-
"label",
|
|
106
|
-
"variant",
|
|
107
|
-
"aria-pressed"
|
|
108
|
-
])]),
|
|
109
|
-
_: 1
|
|
110
|
-
}, 8, ["text"]),
|
|
111
|
-
u(r, {
|
|
112
|
-
text: "导出日志",
|
|
113
|
-
position: "left"
|
|
114
|
-
}, {
|
|
115
|
-
default: b(() => [u(n, {
|
|
116
|
-
icon: _(S),
|
|
117
|
-
label: "导出日志",
|
|
118
|
-
onClick: J
|
|
119
|
-
}, null, 8, ["icon"])]),
|
|
120
|
-
_: 1
|
|
121
|
-
}),
|
|
122
|
-
l("span", D, g(R.value ? "跟随最新" : "已暂停跟尾"), 1)
|
|
123
|
-
]), l("div", {
|
|
124
|
-
ref_key: "viewport",
|
|
125
|
-
ref: z,
|
|
126
|
-
class: "kima-log-viewer__viewport",
|
|
127
|
-
role: "log",
|
|
128
|
-
"aria-label": e.label,
|
|
129
|
-
"aria-live": R.value ? "polite" : "off",
|
|
130
|
-
tabindex: "0",
|
|
131
|
-
onScroll: K
|
|
132
|
-
}, [(p(!0), c(a, null, h(W.value, (e) => (p(), c("div", {
|
|
133
|
-
key: e.id,
|
|
134
|
-
class: "kima-log-viewer__line"
|
|
135
|
-
}, [u(i, {
|
|
136
|
-
text: e.text,
|
|
137
|
-
keywords: L.value
|
|
138
|
-
}, null, 8, ["text", "keywords"])]))), 128)), W.value.length ? s("", !0) : (p(), c("p", k, "没有匹配日志"))], 40, O)], 16, T));
|
|
139
|
-
}
|
|
140
|
-
}), [["__scopeId", "data-v-f5be4658"]]);
|
|
141
|
-
export { A as default };
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import { freezeLeaveLayout as t, presenceTransition as n, restoreLeaveLayout as r } from "../../utils/motion.js";
|
|
3
|
-
import i from "../core/notification.ce.js";
|
|
4
|
-
import { createNotifications as a } from "../../utils/notifications.js";
|
|
5
|
-
/* empty css */
|
|
6
|
-
import { Fragment as o, TransitionGroup as s, computed as c, createElementBlock as l, createVNode as u, getCurrentInstance as d, mergeProps as f, onBeforeUnmount as p, openBlock as m, ref as h, renderList as g, toRaw as _, unref as v, useAttrs as y, useHost as b, watch as x, withCtx as S } from "vue";
|
|
7
|
-
var C = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
8
|
-
__name: "notification-queue.ce",
|
|
9
|
-
props: {
|
|
10
|
-
items: {
|
|
11
|
-
type: Array,
|
|
12
|
-
default: () => []
|
|
13
|
-
},
|
|
14
|
-
service: {
|
|
15
|
-
type: Object,
|
|
16
|
-
default: null
|
|
17
|
-
},
|
|
18
|
-
capacity: {
|
|
19
|
-
type: Number,
|
|
20
|
-
default: 3
|
|
21
|
-
},
|
|
22
|
-
dedupeKey: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: "id"
|
|
25
|
-
},
|
|
26
|
-
position: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "top-right"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
emits: [
|
|
32
|
-
"update:items",
|
|
33
|
-
"dismiss",
|
|
34
|
-
"close"
|
|
35
|
-
],
|
|
36
|
-
setup(e, { expose: C, emit: w }) {
|
|
37
|
-
let T = e, E = w, D = y(), O = d()?.ce ? b() : null, k = h([]), A = a({ capacity: T.capacity }), j = h(!1);
|
|
38
|
-
function M() {
|
|
39
|
-
return T.service ? T.service : (j.value || (j.value = !0, R?.(), R = A.subscribe((e) => {
|
|
40
|
-
k.value = L(e);
|
|
41
|
-
})), A);
|
|
42
|
-
}
|
|
43
|
-
C({
|
|
44
|
-
push: (e) => M().push(e),
|
|
45
|
-
update: (e, t) => M().update(e, t),
|
|
46
|
-
dismiss: (e) => M().dismiss(e),
|
|
47
|
-
clear: () => M().clear()
|
|
48
|
-
});
|
|
49
|
-
let N = c(() => O ? {
|
|
50
|
-
...D,
|
|
51
|
-
id: void 0
|
|
52
|
-
} : D), P = /* @__PURE__ */ new WeakMap(), F = 0;
|
|
53
|
-
function I(e) {
|
|
54
|
-
let t = e && typeof e == "object" ? e[T.dedupeKey] ?? e.id ?? e.key : e;
|
|
55
|
-
if (t != null) return t;
|
|
56
|
-
if (typeof e != "object" || !e) return `${typeof e}:${String(e)}`;
|
|
57
|
-
let n = _(e);
|
|
58
|
-
return P.has(n) || P.set(n, Symbol(`notice-${++F}`)), P.get(n);
|
|
59
|
-
}
|
|
60
|
-
function L(e) {
|
|
61
|
-
let t = Math.max(0, Math.floor(Number(T.capacity) || 0));
|
|
62
|
-
if (!t) return [];
|
|
63
|
-
let n = /* @__PURE__ */ new Set();
|
|
64
|
-
return e.filter((e) => {
|
|
65
|
-
if (e == null || typeof e == "object" && e.open === !1) return !1;
|
|
66
|
-
let t = I(e);
|
|
67
|
-
return !n.has(t) && (n.add(t), !0);
|
|
68
|
-
}).slice(-t);
|
|
69
|
-
}
|
|
70
|
-
let R;
|
|
71
|
-
x(() => T.service, (e) => {
|
|
72
|
-
R?.();
|
|
73
|
-
let t = e || (j.value ? A : null);
|
|
74
|
-
R = t?.subscribe?.((e) => {
|
|
75
|
-
k.value = L(e);
|
|
76
|
-
}), t || (k.value = L(T.items));
|
|
77
|
-
}, { immediate: !0 }), x(() => [T.items, T.capacity], () => {
|
|
78
|
-
A.setCapacity(T.capacity), k.value = L(T.service?.snapshot?.() || (j.value ? A.snapshot() : T.items));
|
|
79
|
-
}, {
|
|
80
|
-
immediate: !0,
|
|
81
|
-
deep: !0
|
|
82
|
-
}), p(() => R?.());
|
|
83
|
-
let z = c(() => k.value);
|
|
84
|
-
function B(e, t = "close") {
|
|
85
|
-
let n = I(e);
|
|
86
|
-
(T.service || (j.value ? A : null))?.dismiss?.(e.id);
|
|
87
|
-
let r = k.value.filter((e) => I(e) !== n);
|
|
88
|
-
k.value = r, E("update:items", r), E("dismiss", e, t), E("close", e, t);
|
|
89
|
-
}
|
|
90
|
-
function V(e) {
|
|
91
|
-
let { id: t, key: n, open: r, ...i } = e && typeof e == "object" ? e : { message: String(e ?? "") };
|
|
92
|
-
return {
|
|
93
|
-
...i,
|
|
94
|
-
position: T.position,
|
|
95
|
-
open: !0,
|
|
96
|
-
stacked: !0
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
function H(e) {
|
|
100
|
-
let n = e.getBoundingClientRect(), r = e.parentElement.getBoundingClientRect();
|
|
101
|
-
t(e), T.position.startsWith("bottom") && (e.style.top = "auto", e.style.bottom = `${r.bottom - n.bottom}px`);
|
|
102
|
-
}
|
|
103
|
-
let U = c(() => T.position.includes("right") ? "right" : T.position.includes("left") ? "left" : T.position.startsWith("bottom") ? "down" : "up");
|
|
104
|
-
return (t, a) => (m(), l("div", f(N.value, { class: ["kima-notification-queue", [`kima-notification-queue--${e.position}`, `kima-notification-queue--slide-${U.value}`]] }), [u(s, f({
|
|
105
|
-
name: "kima-notification-queue",
|
|
106
|
-
tag: "div",
|
|
107
|
-
class: "kima-notification-queue__stack"
|
|
108
|
-
}, {
|
|
109
|
-
...v(n),
|
|
110
|
-
onBeforeLeave: H,
|
|
111
|
-
onBeforeEnter: v(r),
|
|
112
|
-
onLeaveCancelled: v(r)
|
|
113
|
-
}), {
|
|
114
|
-
default: S(() => [(m(!0), l(o, null, g(z.value, (e) => (m(), l("div", {
|
|
115
|
-
key: I(e),
|
|
116
|
-
class: "kima-notification-queue__item"
|
|
117
|
-
}, [u(i, f({ ref_for: !0 }, V(e), { onClose: (t) => B(e, t) }), null, 16, ["onClose"])]))), 128))]),
|
|
118
|
-
_: 1
|
|
119
|
-
}, 16)], 16));
|
|
120
|
-
}
|
|
121
|
-
}), [["__scopeId", "data-v-75bf46e7"]]);
|
|
122
|
-
export { C as default };
|
|
@@ -1,63 +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 { useInteractionRoot as r } from "../../utils/interaction.js";
|
|
4
|
-
import { useContentMotion as i } from "../../utils/content-motion.js";
|
|
5
|
-
import a from "../core/progress.ce.js";
|
|
6
|
-
/* empty css */
|
|
7
|
-
import { Fragment as o, TransitionGroup as s, computed as c, createElementBlock as l, createElementVNode as u, createVNode as d, mergeProps as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, watch as v, withCtx as y } from "vue";
|
|
8
|
-
// src/components/utility/progress-group.ce.vue
|
|
9
|
-
var b = ["aria-label"], x = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
10
|
-
__name: "progress-group.ce",
|
|
11
|
-
props: {
|
|
12
|
-
tasks: {
|
|
13
|
-
type: Array,
|
|
14
|
-
default: () => []
|
|
15
|
-
},
|
|
16
|
-
label: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: "任务总进度"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
emits: ["change"],
|
|
22
|
-
setup(e, { expose: x, emit: S }) {
|
|
23
|
-
let C = e, w = S, { root: T, forwardedAttrs: E } = r(), D = c(() => C.tasks.map((e, t) => {
|
|
24
|
-
let n = Number(e.max ?? 100), r = Number(e.value) || 0, i = Number(e.weight ?? 1);
|
|
25
|
-
return {
|
|
26
|
-
...e,
|
|
27
|
-
id: e.id ?? t,
|
|
28
|
-
weight: Number.isFinite(i) ? Math.max(0, i) : 0,
|
|
29
|
-
percent: n > 0 ? Math.min(100, Math.max(0, r / n * 100)) : 0
|
|
30
|
-
};
|
|
31
|
-
})), O = c(() => {
|
|
32
|
-
let e = D.value.reduce((e, t) => e + t.weight, 0);
|
|
33
|
-
return e ? D.value.reduce((e, t) => e + t.percent * t.weight, 0) / e : 0;
|
|
34
|
-
});
|
|
35
|
-
return m(null), i(T, () => D.value), v(O, (e) => w("change", e)), x({ aggregate: O }), (r, i) => (p(), l("section", f({
|
|
36
|
-
ref_key: "root",
|
|
37
|
-
ref: T
|
|
38
|
-
}, _(E), {
|
|
39
|
-
class: "kima-progress-group",
|
|
40
|
-
"aria-label": e.label
|
|
41
|
-
}), [
|
|
42
|
-
d(a, {
|
|
43
|
-
value: O.value,
|
|
44
|
-
label: e.label
|
|
45
|
-
}, null, 8, ["value", "label"]),
|
|
46
|
-
u("p", null, g(e.label) + " · " + g(Math.round(O.value)) + "%", 1),
|
|
47
|
-
d(s, f({
|
|
48
|
-
tag: "ul",
|
|
49
|
-
name: "kima-list"
|
|
50
|
-
}, {
|
|
51
|
-
..._(n),
|
|
52
|
-
onBeforeLeave: _(t)
|
|
53
|
-
}), {
|
|
54
|
-
default: y(() => [(p(!0), l(o, null, h(D.value, (e) => (p(), l("li", { key: e.id }, [u("span", null, g(e.label), 1), d(a, {
|
|
55
|
-
value: e.percent,
|
|
56
|
-
label: e.label || "任务"
|
|
57
|
-
}, null, 8, ["value", "label"])]))), 128))]),
|
|
58
|
-
_: 1
|
|
59
|
-
}, 16)
|
|
60
|
-
], 16, b));
|
|
61
|
-
}
|
|
62
|
-
}), [["__scopeId", "data-v-d4453504"]]);
|
|
63
|
-
export { x as default };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import { useInteractionRoot as t } from "../../utils/interaction.js";
|
|
3
|
-
import { encodeQR as n } from "../../utils/qr.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { computed as r, createElementBlock as i, createElementVNode as a, mergeProps as o, openBlock as s, toDisplayString as c, unref as l, watch as u } from "vue";
|
|
6
|
-
// src/components/utility/qr-code.ce.vue
|
|
7
|
-
var d = [
|
|
8
|
-
"aria-label",
|
|
9
|
-
"width",
|
|
10
|
-
"height",
|
|
11
|
-
"viewBox"
|
|
12
|
-
], f = ["d"], p = {
|
|
13
|
-
key: 1,
|
|
14
|
-
role: "alert"
|
|
15
|
-
}, m = /*#__PURE__*/ e(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
16
|
-
__name: "qr-code.ce",
|
|
17
|
-
props: {
|
|
18
|
-
value: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: ""
|
|
21
|
-
},
|
|
22
|
-
level: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: "M"
|
|
25
|
-
},
|
|
26
|
-
size: {
|
|
27
|
-
type: Number,
|
|
28
|
-
default: 200
|
|
29
|
-
},
|
|
30
|
-
label: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "二维码"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
emits: ["error", "change"],
|
|
36
|
-
setup(e, { emit: m }) {
|
|
37
|
-
let h = e, g = m, { root: _, forwardedAttrs: v } = t(), y = r(() => {
|
|
38
|
-
try {
|
|
39
|
-
return { qr: n(h.value, h.level) };
|
|
40
|
-
} catch (e) {
|
|
41
|
-
return { error: String(e?.message || e) };
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
return u(y, (e) => e.error ? g("error", e.error) : g("change", { modules: e.qr.size }), { immediate: !0 }), (t, n) => (s(), i("div", o({
|
|
45
|
-
ref_key: "root",
|
|
46
|
-
ref: _
|
|
47
|
-
}, l(v), { class: "kima-qr-code" }), [y.value.qr ? (s(), i("svg", {
|
|
48
|
-
key: 0,
|
|
49
|
-
role: "img",
|
|
50
|
-
"aria-label": e.label,
|
|
51
|
-
width: Math.max(40, e.size),
|
|
52
|
-
height: Math.max(40, e.size),
|
|
53
|
-
viewBox: y.value.qr.viewBox,
|
|
54
|
-
"shape-rendering": "crispEdges"
|
|
55
|
-
}, [n[0] ||= a("rect", {
|
|
56
|
-
width: "100%",
|
|
57
|
-
height: "100%",
|
|
58
|
-
class: "kima-qr-code__paper"
|
|
59
|
-
}, null, -1), a("path", { d: y.value.qr.path }, null, 8, f)], 8, d)) : (s(), i("p", p, "无法生成二维码:" + c(y.value.error), 1))], 16));
|
|
60
|
-
}
|
|
61
|
-
}), [["__scopeId", "data-v-3ef776fe"]]);
|
|
62
|
-
export { m as default };
|