@kernel4632/kima 0.12.2 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD_PARTY_NOTICES.txt +100 -1712
- package/dist/components/containment/list-item.ce.vue_vue_type_style_index_0_scoped_fd20973a_lang.css +1 -0
- package/dist/components/containment/snackbar.ce.vue_vue_type_style_index_0_scoped_3c62e4c7_lang.css +1 -0
- package/dist/components/core/badge.ce.vue_vue_type_style_index_0_scoped_9ccfbe76_lang.css +1 -0
- package/dist/components/core/button.ce.vue_vue_type_style_index_0_scoped_1c004601_lang.css +1 -0
- package/dist/components/core/checkbox.ce.vue_vue_type_style_index_0_scoped_cc2716e6_lang.css +1 -0
- package/dist/components/core/combobox.ce.vue_vue_type_style_index_0_scoped_ba7220f2_lang.css +1 -0
- package/dist/components/core/dialog.ce.vue_vue_type_style_index_0_scoped_09f96946_lang.css +1 -0
- package/dist/components/core/divider.ce.vue_vue_type_style_index_0_scoped_a401c826_lang.css +1 -0
- package/dist/components/core/fab-menu.ce.vue_vue_type_style_index_0_scoped_7c25d968_lang.css +1 -0
- package/dist/components/core/fab.ce.vue_vue_type_style_index_0_scoped_4e1de7c1_lang.css +1 -0
- package/dist/components/core/icon.ce.vue_vue_type_style_index_0_scoped_76c47d5b_lang.css +1 -0
- package/dist/components/core/loading-indicator.ce.vue_vue_type_style_index_0_scoped_6c314bb6_lang.css +1 -0
- package/dist/components/core/menu.ce.vue_vue_type_style_index_0_scoped_16ed5f4d_lang.css +1 -0
- package/dist/components/core/morph-field.ce.vue_vue_type_style_index_0_scoped_ac757a01_lang.css +1 -0
- package/dist/components/core/progress.ce.vue_vue_type_style_index_0_scoped_2c836bfd_lang.css +1 -0
- package/dist/components/core/select.ce.vue_vue_type_style_index_0_scoped_bf4d9de4_lang.css +1 -0
- package/dist/components/core/shape.ce.vue_vue_type_style_index_0_scoped_5db1cc46_lang.css +1 -0
- package/dist/components/core/slider.ce.vue_vue_type_style_index_0_scoped_3cadd726_lang.css +1 -0
- package/dist/components/core/split-button.ce.vue_vue_type_style_index_0_scoped_a8ef75a5_lang.css +1 -0
- package/dist/components/core/switch.ce.vue_vue_type_style_index_0_scoped_5b126252_lang.css +1 -0
- package/dist/components/core/tabs.ce.vue_vue_type_style_index_0_scoped_f0ece5c6_lang.css +1 -0
- package/dist/components/core/text-field.ce.vue_vue_type_style_index_0_scoped_89a58b79_lang.css +1 -0
- package/dist/components/core/tooltip.ce.vue_vue_type_style_index_0_scoped_4fd8d52e_lang.css +1 -0
- package/dist/components/core/tree.ce.vue_vue_type_style_index_0_scoped_d1e95486_lang.css +1 -0
- package/dist/components/data/table.ce.vue_vue_type_style_index_0_scoped_de17ceaa_lang.css +1 -0
- package/dist/components/display/image.ce.vue_vue_type_style_index_0_scoped_08ac96f2_lang.css +1 -0
- package/dist/components/display/image.ce.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/components/display/skeleton.ce.vue_vue_type_style_index_0_scoped_841c5f0b_lang.css +1 -0
- package/dist/components/input/radio-group.ce.vue_vue_type_style_index_0_scoped_554d6257_lang.css +1 -0
- package/dist/components/input/textarea.ce.vue_vue_type_style_index_0_scoped_f6be6515_lang.css +1 -0
- package/dist/components/interaction/popover.ce.vue_vue_type_style_index_0_scoped_4e67e579_lang.css +1 -0
- package/dist/components/navigation/breadcrumb-item.ce.vue_vue_type_style_index_0_scoped_4c179b2f_lang.css +1 -0
- package/dist/components/navigation/breadcrumb-item.ce.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/components/navigation/breadcrumb.ce.vue_vue_type_style_index_0_scoped_f0e04345_lang.css +1 -0
- package/dist/components/navigation/collapsible.ce.vue_vue_type_style_index_0_scoped_eda74ecc_lang.css +1 -0
- package/dist/components/navigation/nav-item.ce.vue_vue_type_style_index_0_scoped_9f22b45d_lang.css +1 -0
- package/dist/kima-elements-core.js +38352 -33892
- package/dist/kima-elements.js +47432 -116752
- package/dist/kima.js +36 -139
- package/dist/style.css +37 -237
- package/dist/styles/_tokens.css +1 -1
- package/dist/styles/badge.css +1 -1
- package/dist/styles/breadcrumb-item.css +4 -0
- package/dist/styles/breadcrumb.css +1 -2
- package/dist/styles/button.css +1 -1
- package/dist/styles/checkbox.css +2 -2
- package/dist/styles/collapsible.css +2 -2
- package/dist/styles/combobox.css +2 -2
- package/dist/styles/core.css +36 -43
- package/dist/styles/dialog.css +3 -3
- package/dist/styles/divider.css +1 -1
- package/dist/styles/fab-menu.css +3 -0
- package/dist/styles/fab.css +2 -0
- package/dist/styles/icon.css +1 -1
- package/dist/styles/image.css +3 -3
- package/dist/styles/list-item.css +2 -0
- package/dist/styles/loading-indicator.css +2 -0
- package/dist/styles/menu.css +2 -2
- package/dist/styles/morph-field.css +3 -0
- package/dist/styles/nav-item.css +3 -0
- package/dist/styles/popover.css +2 -2
- package/dist/styles/progress.css +1 -1
- package/dist/styles/radio-group.css +2 -2
- package/dist/styles/select.css +2 -2
- package/dist/styles/shape.css +2 -0
- package/dist/styles/skeleton.css +1 -1
- package/dist/styles/slider.css +1 -1
- package/dist/styles/snackbar.css +3 -0
- package/dist/styles/split-button.css +3 -0
- package/dist/styles/switch.css +1 -2
- package/dist/styles/table.css +2 -2
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/text-field.css +2 -2
- package/dist/styles/textarea.css +1 -2
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/tree.css +2 -2
- package/dist/vue/components/containment/list-item.ce.js +73 -0
- package/dist/vue/components/containment/snackbar.ce.js +203 -0
- package/dist/vue/components/core/badge.ce.js +40 -27
- package/dist/vue/components/core/button.ce.js +51 -28
- package/dist/vue/components/core/checkbox.ce.js +65 -50
- package/dist/vue/components/core/combobox.ce.js +287 -227
- package/dist/vue/components/core/dialog.ce.js +52 -41
- package/dist/vue/components/core/divider.ce.js +1 -1
- package/dist/vue/components/core/fab-menu.ce.js +112 -0
- package/dist/vue/components/core/fab.ce.js +63 -0
- package/dist/vue/components/core/icon.ce.js +2 -3
- package/dist/vue/components/core/loading-indicator.ce.js +86 -0
- package/dist/vue/components/core/menu.ce.js +140 -103
- package/dist/vue/components/core/morph-field.ce.js +139 -0
- package/dist/vue/components/core/progress.ce.js +787 -24
- package/dist/vue/components/core/select.ce.js +260 -219
- package/dist/vue/components/core/shape.ce.js +19 -0
- package/dist/vue/components/core/slider.ce.js +389 -77
- package/dist/vue/components/core/split-button.ce.js +156 -0
- package/dist/vue/components/core/switch.ce.js +59 -65
- package/dist/vue/components/core/tabs.ce.js +91 -84
- package/dist/vue/components/core/text-field.ce.js +67 -95
- package/dist/vue/components/core/tooltip.ce.js +95 -96
- package/dist/vue/components/core/tree.ce.js +128 -200
- package/dist/vue/components/data/table.ce.js +249 -227
- package/dist/vue/components/display/image.ce.js +65 -121
- package/dist/vue/components/display/skeleton.ce.js +46 -33
- package/dist/vue/components/input/radio-group.ce.js +119 -53
- package/dist/vue/components/input/textarea.ce.js +124 -109
- package/dist/vue/components/interaction/popover.ce.js +78 -45
- package/dist/vue/components/navigation/breadcrumb-item.ce.js +197 -0
- package/dist/vue/components/navigation/breadcrumb.ce.js +71 -40
- package/dist/vue/components/navigation/collapsible.ce.js +45 -34
- package/dist/vue/components/navigation/nav-item.ce.js +79 -0
- package/dist/vue/internal/menu-items.js +51 -70
- package/dist/vue/utils/content-motion.js +36 -47
- package/dist/vue/utils/interaction.js +19 -68
- package/dist/vue/utils/loading-shapes.js +11 -0
- package/dist/vue/utils/motion.js +36 -40
- package/dist/vue/utils/navigation.js +1 -19
- package/dist/vue/utils/popup-manager.js +52 -0
- package/dist/vue/utils/popup-motion.js +18 -0
- package/dist/vue/utils/radius.js +81 -0
- package/dist/vue/utils/ripple.js +7 -7
- package/dist/vue/utils/shell.js +9 -24
- package/dist/vue/utils/snackbar-stack.js +57 -0
- package/package.json +2 -20
- package/dist/components/advanced-input/calendar.ce.vue_vue_type_style_index_0_scoped_43a5d854_lang.css +0 -1
- package/dist/components/advanced-input/date-range-picker.ce.vue_vue_type_style_index_0_scoped_8bcd6e19_lang.css +0 -1
- package/dist/components/advanced-input/editable.ce.vue_vue_type_style_index_0_scoped_82c96de0_lang.css +0 -1
- package/dist/components/advanced-input/mention.ce.vue_vue_type_style_index_0_scoped_e6d9ff72_lang.css +0 -1
- package/dist/components/advanced-input/range-slider.ce.vue_vue_type_style_index_0_scoped_cceb9717_lang.css +0 -1
- package/dist/components/advanced-input/time-range-picker.ce.vue_vue_type_style_index_0_scoped_52265737_lang.css +0 -1
- package/dist/components/advanced-input/transfer.ce.vue_vue_type_style_index_0_scoped_d1dddadf_lang.css +0 -1
- package/dist/components/content/chart.ce.vue_vue_type_style_index_0_scoped_b8556b1a_lang.css +0 -1
- package/dist/components/content/code-editor.ce.vue_vue_type_style_index_0_scoped_233308e5_lang.css +0 -1
- package/dist/components/content/equation.ce.vue_vue_type_style_index_0_scoped_e8f29ba6_lang.css +0 -1
- package/dist/components/content/heatmap.ce.vue_vue_type_style_index_0_scoped_c69a9531_lang.css +0 -1
- package/dist/components/content/rich-text-editor.ce.vue_vue_type_style_index_0_scoped_82e3193e_lang.css +0 -1
- package/dist/components/core/badge.ce.vue_vue_type_style_index_0_scoped_9dba943c_lang.css +0 -1
- package/dist/components/core/button-group.ce.vue_vue_type_style_index_0_scoped_8a4a723b_lang.css +0 -1
- package/dist/components/core/button.ce.vue_vue_type_style_index_0_scoped_ba403858_lang.css +0 -1
- package/dist/components/core/card.ce.vue_vue_type_style_index_0_scoped_6c915f03_lang.css +0 -1
- package/dist/components/core/cascader.ce.vue_vue_type_style_index_0_scoped_0ed26222_lang.css +0 -1
- package/dist/components/core/checkbox.ce.vue_vue_type_style_index_0_scoped_7c9707de_lang.css +0 -1
- package/dist/components/core/code-block.ce.vue_vue_type_style_index_0_scoped_7e6342e8_lang.css +0 -1
- package/dist/components/core/combobox.ce.vue_vue_type_style_index_0_scoped_6980ff65_lang.css +0 -1
- package/dist/components/core/date-picker.ce.vue_vue_type_style_index_0_scoped_f55122f3_lang.css +0 -1
- package/dist/components/core/dialog.ce.vue_vue_type_style_index_0_scoped_1b9a185c_lang.css +0 -1
- package/dist/components/core/divider.ce.vue_vue_type_style_index_0_scoped_5402a5d3_lang.css +0 -1
- package/dist/components/core/drawer.ce.vue_vue_type_style_index_0_scoped_13f2f783_lang.css +0 -1
- package/dist/components/core/empty-state.ce.vue_vue_type_style_index_0_scoped_6fcab7b8_lang.css +0 -1
- package/dist/components/core/icon-button.ce.vue_vue_type_style_index_0_scoped_a18b4478_lang.css +0 -1
- package/dist/components/core/icon.ce.vue_vue_type_style_index_0_scoped_5c94f2ca_lang.css +0 -1
- package/dist/components/core/layout.ce.vue_vue_type_style_index_0_scoped_c0d57820_lang.css +0 -1
- package/dist/components/core/menu.ce.vue_vue_type_style_index_0_scoped_597751c9_lang.css +0 -1
- package/dist/components/core/notification.ce.vue_vue_type_style_index_0_scoped_2f39bef8_lang.css +0 -1
- package/dist/components/core/pagination.ce.vue_vue_type_style_index_0_scoped_d62e7dea_lang.css +0 -1
- package/dist/components/core/progress.ce.vue_vue_type_style_index_0_scoped_84d44589_lang.css +0 -1
- package/dist/components/core/select.ce.vue_vue_type_style_index_0_scoped_f1632b10_lang.css +0 -1
- package/dist/components/core/slider.ce.vue_vue_type_style_index_0_scoped_746583af_lang.css +0 -1
- package/dist/components/core/switch.ce.vue_vue_type_style_index_0_scoped_2bcc172e_lang.css +0 -1
- package/dist/components/core/tabs.ce.vue_vue_type_style_index_0_scoped_0d322299_lang.css +0 -1
- package/dist/components/core/text-field.ce.vue_vue_type_style_index_0_scoped_f22e5c02_lang.css +0 -1
- package/dist/components/core/time-picker.ce.vue_vue_type_style_index_0_scoped_afd1d777_lang.css +0 -1
- package/dist/components/core/tooltip.ce.vue_vue_type_style_index_0_scoped_2c931a6a_lang.css +0 -1
- package/dist/components/core/tree.ce.vue_vue_type_style_index_0_scoped_5401eef6_lang.css +0 -1
- package/dist/components/core/virtual-scroll.ce.vue_vue_type_style_index_0_scoped_8f7f579b_lang.css +0 -1
- package/dist/components/data/copy-button.ce.vue_vue_type_style_index_0_scoped_701ad4fb_lang.css +0 -1
- package/dist/components/data/image-preview.ce.vue_vue_type_style_index_0_scoped_17e80131_lang.css +0 -1
- package/dist/components/data/infinite-scroll.ce.vue_vue_type_style_index_0_scoped_5f784d27_lang.css +0 -1
- package/dist/components/data/long-text.ce.vue_vue_type_style_index_0_scoped_6bad870b_lang.css +0 -1
- package/dist/components/data/relative-time.ce.vue_vue_type_style_index_0_scoped_903b71ea_lang.css +0 -1
- package/dist/components/data/ring-progress.ce.vue_vue_type_style_index_0_scoped_15220fc3_lang.css +0 -1
- package/dist/components/data/table.ce.vue_vue_type_style_index_0_scoped_6c1cc7d1_lang.css +0 -1
- package/dist/components/data/virtual-table.ce.vue_vue_type_style_index_0_scoped_bc80a44c_lang.css +0 -1
- package/dist/components/data/virtual-tree.ce.vue_vue_type_style_index_0_scoped_5d8790bf_lang.css +0 -1
- package/dist/components/display/alert.ce.vue_vue_type_style_index_0_scoped_d31c4df3_lang.css +0 -1
- package/dist/components/display/avatar-group.ce.vue_vue_type_style_index_0_scoped_9545415b_lang.css +0 -1
- package/dist/components/display/avatar.ce.vue_vue_type_style_index_0_scoped_eb8fc9ea_lang.css +0 -1
- package/dist/components/display/blockquote.ce.vue_vue_type_style_index_0_scoped_e56b05b8_lang.css +0 -1
- package/dist/components/display/countdown.ce.vue_vue_type_style_index_0_scoped_7f10ca60_lang.css +0 -1
- package/dist/components/display/descriptions.ce.vue_vue_type_style_index_0_scoped_501a9489_lang.css +0 -1
- package/dist/components/display/highlight.ce.vue_vue_type_style_index_0_scoped_f876f7db_lang.css +0 -1
- package/dist/components/display/image.ce.vue_vue_type_style_index_0_scoped_d16b864e_lang.css +0 -1
- package/dist/components/display/list.ce.vue_vue_type_style_index_0_scoped_1b1702a6_lang.css +0 -1
- package/dist/components/display/result.ce.vue_vue_type_style_index_0_scoped_f08cf21f_lang.css +0 -1
- package/dist/components/display/skeleton.ce.vue_vue_type_style_index_0_scoped_92807af5_lang.css +0 -1
- package/dist/components/display/spinner.ce.vue_vue_type_style_index_0_scoped_d7ff1dc3_lang.css +0 -1
- package/dist/components/display/statistic.ce.vue_vue_type_style_index_0_scoped_cc8448a6_lang.css +0 -1
- package/dist/components/display/timeline.ce.vue_vue_type_style_index_0_scoped_3cffd2b4_lang.css +0 -1
- package/dist/components/form-completion/angle-slider.ce.vue_vue_type_style_index_0_scoped_924c5f0d_lang.css +0 -1
- package/dist/components/form-completion/color-picker.ce.vue_vue_type_style_index_0_scoped_04812c30_lang.css +0 -1
- package/dist/components/form-completion/date-field.ce.vue_vue_type_style_index_0_scoped_7c8a7c79_lang.css +0 -1
- package/dist/components/form-completion/dynamic-input.ce.vue_vue_type_style_index_0_scoped_6a5bc26a_lang.css +0 -1
- package/dist/components/form-completion/form.ce.vue_vue_type_style_index_0_scoped_f8f70e6f_lang.css +0 -1
- package/dist/components/form-completion/json-input.ce.vue_vue_type_style_index_0_scoped_15a17728_lang.css +0 -1
- package/dist/components/form-completion/masked-input.ce.vue_vue_type_style_index_0_scoped_f96e752a_lang.css +0 -1
- package/dist/components/form-completion/period-picker.ce.vue_vue_type_style_index_0_scoped_28cc9011_lang.css +0 -1
- package/dist/components/form-completion/time-field.ce.vue_vue_type_style_index_0_scoped_b6533524_lang.css +0 -1
- package/dist/components/form-completion/upload-manager.ce.vue_vue_type_style_index_0_scoped_fe810c3a_lang.css +0 -1
- package/dist/components/foundation/banner.ce.vue_vue_type_style_index_0_scoped_57ba332a_lang.css +0 -1
- package/dist/components/foundation/error-state.ce.vue_vue_type_style_index_0_scoped_20c2aa5d_lang.css +0 -1
- package/dist/components/foundation/field-group.ce.vue_vue_type_style_index_0_scoped_144ed12e_lang.css +0 -1
- package/dist/components/foundation/flex.ce.vue_vue_type_style_index_0_scoped_317459cf_lang.css +0 -1
- package/dist/components/foundation/grid.ce.vue_vue_type_style_index_0_scoped_c1ea1f88_lang.css +0 -1
- package/dist/components/foundation/input-group.ce.vue_vue_type_style_index_0_scoped_5729e4c1_lang.css +0 -1
- package/dist/components/foundation/page-header.ce.vue_vue_type_style_index_0_scoped_819de002_lang.css +0 -1
- package/dist/components/foundation/time-display.ce.vue_vue_type_style_index_0_scoped_31f1f739_lang.css +0 -1
- package/dist/components/foundation/typography.ce.vue_vue_type_style_index_0_scoped_d92fa782_lang.css +0 -1
- package/dist/components/input/checkbox-group.ce.vue_vue_type_style_index_0_scoped_f017d36a_lang.css +0 -1
- package/dist/components/input/field.ce.vue_vue_type_style_index_0_scoped_a01eded5_lang.css +0 -1
- package/dist/components/input/file-upload.ce.vue_vue_type_style_index_0_scoped_8fd77a68_lang.css +0 -1
- package/dist/components/input/number-field.ce.vue_vue_type_style_index_0_scoped_9eb508b4_lang.css +0 -1
- package/dist/components/input/pin-input.ce.vue_vue_type_style_index_0_scoped_0d93e989_lang.css +0 -1
- package/dist/components/input/radio-group.ce.vue_vue_type_style_index_0_scoped_fe3edf34_lang.css +0 -1
- package/dist/components/input/rating.ce.vue_vue_type_style_index_0_scoped_23c50b69_lang.css +0 -1
- package/dist/components/input/tags-input.ce.vue_vue_type_style_index_0_scoped_b46618b2_lang.css +0 -1
- package/dist/components/input/textarea.ce.vue_vue_type_style_index_0_scoped_60d0751b_lang.css +0 -1
- package/dist/components/input/toggle.ce.vue_vue_type_style_index_0_scoped_a289ae32_lang.css +0 -1
- package/dist/components/interaction/chip.ce.vue_vue_type_style_index_0_scoped_541c9ed1_lang.css +0 -1
- package/dist/components/interaction/command.ce.vue_vue_type_style_index_0_scoped_11d4f240_lang.css +0 -1
- package/dist/components/interaction/context-menu.ce.vue_vue_type_style_index_0_scoped_35d2336c_lang.css +0 -1
- package/dist/components/interaction/hover-card.ce.vue_vue_type_style_index_0_scoped_0517aad7_lang.css +0 -1
- package/dist/components/interaction/loading-overlay.ce.vue_vue_type_style_index_0_scoped_8dd7d4aa_lang.css +0 -1
- package/dist/components/interaction/menubar.ce.vue_vue_type_style_index_0_scoped_c4c69411_lang.css +0 -1
- package/dist/components/interaction/multi-select.ce.vue_vue_type_style_index_0_scoped_0b8ec686_lang.css +0 -1
- package/dist/components/interaction/popconfirm.ce.vue_vue_type_style_index_0_scoped_fae7c69d_lang.css +0 -1
- package/dist/components/interaction/popover.ce.vue_vue_type_style_index_0_scoped_be7411d6_lang.css +0 -1
- package/dist/components/interaction/tree-select.ce.vue_vue_type_style_index_0_scoped_46d37539_lang.css +0 -1
- package/dist/components/navigation/accordion.ce.vue_vue_type_style_index_0_scoped_19d76e75_lang.css +0 -1
- package/dist/components/navigation/anchor.ce.vue_vue_type_style_index_0_scoped_b3311001_lang.css +0 -1
- package/dist/components/navigation/back-top.ce.vue_vue_type_style_index_0_scoped_231687a3_lang.css +0 -1
- package/dist/components/navigation/breadcrumb.ce.vue_vue_type_style_index_0_scoped_2a2cd6e2_lang.css +0 -1
- package/dist/components/navigation/carousel.ce.vue_vue_type_style_index_0_scoped_f2081ae5_lang.css +0 -1
- package/dist/components/navigation/collapsible.ce.vue_vue_type_style_index_0_scoped_f3cd40e5_lang.css +0 -1
- package/dist/components/navigation/link.ce.vue_vue_type_style_index_0_scoped_24e2c032_lang.css +0 -1
- package/dist/components/navigation/navigation-menu.ce.vue_vue_type_style_index_0_scoped_5a0a5b21_lang.css +0 -1
- package/dist/components/navigation/overflow-list.ce.vue_vue_type_style_index_0_scoped_b6fec7f9_lang.css +0 -1
- package/dist/components/navigation/scroll-area.ce.vue_vue_type_style_index_0_scoped_78178cc3_lang.css +0 -1
- package/dist/components/navigation/splitter.ce.vue_vue_type_style_index_0_scoped_0fbcfa40_lang.css +0 -1
- package/dist/components/navigation/stepper.ce.vue_vue_type_style_index_0_scoped_1c703cd8_lang.css +0 -1
- package/dist/components/navigation/toolbar.ce.vue_vue_type_style_index_0_scoped_327b9928_lang.css +0 -1
- package/dist/components/navigation/visually-hidden.ce.vue_vue_type_style_index_0_scoped_2cc27184_lang.css +0 -1
- package/dist/components/shell/app-shell.ce.vue_vue_type_style_index_0_scoped_37292ba0_lang.css +0 -1
- package/dist/components/shell/config-provider.ce.vue_vue_type_style_index_0_scoped_d9085095_lang.css +0 -1
- package/dist/components/shell/marquee.ce.vue_vue_type_style_index_0_scoped_ac73236c_lang.css +0 -1
- package/dist/components/shell/masonry.ce.vue_vue_type_style_index_0_scoped_2fe32054_lang.css +0 -1
- package/dist/components/shell/sidebar.ce.vue_vue_type_style_index_0_scoped_f50127b6_lang.css +0 -1
- package/dist/components/utility/affix.ce.vue_vue_type_style_index_0_scoped_f21e108b_lang.css +0 -1
- package/dist/components/utility/alert-dialog.ce.vue_vue_type_style_index_0_scoped_6136c7fb_lang.css +0 -1
- package/dist/components/utility/animated-number.ce.vue_vue_type_style_index_0_scoped_23564574_lang.css +0 -1
- package/dist/components/utility/float-button.ce.vue_vue_type_style_index_0_scoped_1edb2eb1_lang.css +0 -1
- package/dist/components/utility/listbox.ce.vue_vue_type_style_index_0_scoped_8eab8b73_lang.css +0 -1
- package/dist/components/utility/loading-bar.ce.vue_vue_type_style_index_0_scoped_4109ea9a_lang.css +0 -1
- package/dist/components/utility/log-viewer.ce.vue_vue_type_style_index_0_scoped_f5be4658_lang.css +0 -1
- package/dist/components/utility/notification-queue.ce.vue_vue_type_style_index_0_scoped_75bf46e7_lang.css +0 -1
- package/dist/components/utility/progress-group.ce.vue_vue_type_style_index_0_scoped_d4453504_lang.css +0 -1
- package/dist/components/utility/qr-code.ce.vue_vue_type_style_index_0_scoped_3ef776fe_lang.css +0 -1
- package/dist/components/utility/tag-group.ce.vue_vue_type_style_index_0_scoped_de9894bd_lang.css +0 -1
- package/dist/components/utility/tour.ce.vue_vue_type_style_index_0_scoped_b5823fc3_lang.css +0 -1
- package/dist/components/utility/virtual-select.ce.vue_vue_type_style_index_0_scoped_d1821f4c_lang.css +0 -1
- package/dist/components/utility/watermark.ce.vue_vue_type_style_index_0_scoped_62e7022f_lang.css +0 -1
- package/dist/kima-theme.js +0 -1589
- package/dist/styles/accordion.css +0 -4
- package/dist/styles/affix.css +0 -2
- package/dist/styles/alert-dialog.css +0 -5
- package/dist/styles/alert.css +0 -4
- package/dist/styles/anchor.css +0 -3
- package/dist/styles/angle-slider.css +0 -2
- package/dist/styles/animated-number.css +0 -2
- package/dist/styles/app-shell.css +0 -6
- package/dist/styles/avatar-group.css +0 -4
- package/dist/styles/avatar.css +0 -3
- package/dist/styles/back-top.css +0 -3
- package/dist/styles/banner.css +0 -4
- package/dist/styles/blockquote.css +0 -3
- package/dist/styles/button-group.css +0 -3
- package/dist/styles/calendar.css +0 -2
- package/dist/styles/card.css +0 -2
- package/dist/styles/carousel.css +0 -5
- package/dist/styles/cascader.css +0 -3
- package/dist/styles/chart.css +0 -3
- package/dist/styles/checkbox-group.css +0 -3
- package/dist/styles/chip.css +0 -5
- package/dist/styles/code-block.css +0 -5
- package/dist/styles/code-editor.css +0 -5
- package/dist/styles/color-picker.css +0 -2
- package/dist/styles/command.css +0 -5
- package/dist/styles/config-provider.css +0 -2
- package/dist/styles/context-menu.css +0 -3
- package/dist/styles/copy-button.css +0 -3
- package/dist/styles/countdown.css +0 -2
- package/dist/styles/date-field.css +0 -2
- package/dist/styles/date-picker.css +0 -3
- package/dist/styles/date-range-picker.css +0 -4
- package/dist/styles/descriptions.css +0 -2
- package/dist/styles/drawer.css +0 -3
- package/dist/styles/dynamic-input.css +0 -6
- package/dist/styles/editable.css +0 -3
- package/dist/styles/empty-state.css +0 -2
- package/dist/styles/equation.css +0 -2
- package/dist/styles/error-state.css +0 -4
- package/dist/styles/field-group.css +0 -2
- package/dist/styles/field.css +0 -2
- package/dist/styles/file-upload.css +0 -5
- package/dist/styles/flex.css +0 -2
- package/dist/styles/float-button.css +0 -4
- package/dist/styles/form.css +0 -2
- package/dist/styles/grid.css +0 -2
- package/dist/styles/heatmap.css +0 -3
- package/dist/styles/highlight.css +0 -2
- package/dist/styles/hover-card.css +0 -3
- package/dist/styles/icon-button.css +0 -3
- package/dist/styles/image-preview.css +0 -6
- package/dist/styles/infinite-scroll.css +0 -4
- package/dist/styles/input-group.css +0 -2
- package/dist/styles/json-input.css +0 -3
- package/dist/styles/layout.css +0 -2
- package/dist/styles/link.css +0 -2
- package/dist/styles/list.css +0 -2
- package/dist/styles/listbox.css +0 -3
- package/dist/styles/loading-bar.css +0 -2
- package/dist/styles/loading-overlay.css +0 -3
- package/dist/styles/log-viewer.css +0 -6
- package/dist/styles/long-text.css +0 -3
- package/dist/styles/marquee.css +0 -3
- package/dist/styles/masked-input.css +0 -2
- package/dist/styles/masonry.css +0 -2
- package/dist/styles/mention.css +0 -2
- package/dist/styles/menubar.css +0 -4
- package/dist/styles/multi-select.css +0 -6
- package/dist/styles/navigation-menu.css +0 -5
- package/dist/styles/notification-queue.css +0 -4
- package/dist/styles/notification.css +0 -3
- package/dist/styles/number-field.css +0 -3
- package/dist/styles/overflow-list.css +0 -3
- package/dist/styles/page-header.css +0 -2
- package/dist/styles/pagination.css +0 -3
- package/dist/styles/period-picker.css +0 -2
- package/dist/styles/pin-input.css +0 -2
- package/dist/styles/popconfirm.css +0 -4
- package/dist/styles/progress-group.css +0 -3
- package/dist/styles/qr-code.css +0 -2
- package/dist/styles/range-slider.css +0 -2
- package/dist/styles/rating.css +0 -4
- package/dist/styles/relative-time.css +0 -2
- package/dist/styles/result.css +0 -3
- package/dist/styles/rich-text-editor.css +0 -6
- package/dist/styles/ring-progress.css +0 -2
- package/dist/styles/scroll-area.css +0 -2
- package/dist/styles/sidebar.css +0 -9
- package/dist/styles/spinner.css +0 -2
- package/dist/styles/splitter.css +0 -2
- package/dist/styles/statistic.css +0 -2
- package/dist/styles/stepper.css +0 -3
- package/dist/styles/tag-group.css +0 -6
- package/dist/styles/tags-input.css +0 -3
- package/dist/styles/time-display.css +0 -2
- package/dist/styles/time-field.css +0 -2
- package/dist/styles/time-picker.css +0 -3
- package/dist/styles/time-range-picker.css +0 -2
- package/dist/styles/timeline.css +0 -3
- package/dist/styles/toggle.css +0 -2
- package/dist/styles/toolbar.css +0 -2
- package/dist/styles/tour.css +0 -3
- package/dist/styles/transfer.css +0 -3
- package/dist/styles/tree-select.css +0 -6
- package/dist/styles/typography.css +0 -2
- package/dist/styles/upload-manager.css +0 -7
- package/dist/styles/virtual-scroll.css +0 -2
- package/dist/styles/virtual-select.css +0 -2
- package/dist/styles/virtual-table.css +0 -4
- package/dist/styles/virtual-tree.css +0 -3
- package/dist/styles/visually-hidden.css +0 -2
- package/dist/styles/watermark.css +0 -2
- package/dist/vue/components/advanced-input/calendar.ce.js +0 -216
- package/dist/vue/components/advanced-input/date-range-picker.ce.js +0 -224
- package/dist/vue/components/advanced-input/editable.ce.js +0 -161
- package/dist/vue/components/advanced-input/mention.ce.js +0 -181
- package/dist/vue/components/advanced-input/range-slider.ce.js +0 -111
- package/dist/vue/components/advanced-input/time-range-picker.ce.js +0 -120
- package/dist/vue/components/advanced-input/transfer.ce.js +0 -192
- package/dist/vue/components/content/chart.ce.js +0 -282
- package/dist/vue/components/content/code-editor.ce.js +0 -314
- package/dist/vue/components/content/equation.ce.js +0 -69
- package/dist/vue/components/content/heatmap.ce.js +0 -148
- package/dist/vue/components/content/rich-text-editor.ce.js +0 -346
- package/dist/vue/components/core/button-group.ce.js +0 -142
- package/dist/vue/components/core/card.ce.js +0 -73
- package/dist/vue/components/core/cascader.ce.js +0 -329
- package/dist/vue/components/core/code-block.ce.js +0 -131
- package/dist/vue/components/core/date-picker.ce.js +0 -433
- package/dist/vue/components/core/drawer.ce.js +0 -234
- package/dist/vue/components/core/empty-state.ce.js +0 -58
- package/dist/vue/components/core/icon-button.ce.js +0 -93
- package/dist/vue/components/core/layout.ce.js +0 -68
- package/dist/vue/components/core/notification.ce.js +0 -189
- package/dist/vue/components/core/pagination.ce.js +0 -158
- package/dist/vue/components/core/time-picker.ce.js +0 -486
- package/dist/vue/components/core/virtual-scroll.ce.js +0 -176
- package/dist/vue/components/data/copy-button.ce.js +0 -75
- package/dist/vue/components/data/image-preview.ce.js +0 -226
- package/dist/vue/components/data/infinite-scroll.ce.js +0 -126
- package/dist/vue/components/data/long-text.ce.js +0 -70
- package/dist/vue/components/data/relative-time.ce.js +0 -77
- package/dist/vue/components/data/ring-progress.ce.js +0 -87
- package/dist/vue/components/data/virtual-table.ce.js +0 -178
- package/dist/vue/components/data/virtual-tree.ce.js +0 -213
- package/dist/vue/components/display/alert.ce.js +0 -101
- package/dist/vue/components/display/avatar-group.ce.js +0 -65
- package/dist/vue/components/display/avatar.ce.js +0 -84
- package/dist/vue/components/display/blockquote.ce.js +0 -44
- package/dist/vue/components/display/countdown.ce.js +0 -77
- package/dist/vue/components/display/descriptions.ce.js +0 -43
- package/dist/vue/components/display/highlight.ce.js +0 -48
- package/dist/vue/components/display/list.ce.js +0 -73
- package/dist/vue/components/display/result.ce.js +0 -57
- package/dist/vue/components/display/spinner.ce.js +0 -42
- package/dist/vue/components/display/statistic.ce.js +0 -71
- package/dist/vue/components/display/timeline.ce.js +0 -60
- package/dist/vue/components/form-completion/angle-slider.ce.js +0 -103
- package/dist/vue/components/form-completion/color-picker.ce.js +0 -286
- package/dist/vue/components/form-completion/date-field.ce.js +0 -131
- package/dist/vue/components/form-completion/dynamic-input.ce.js +0 -171
- package/dist/vue/components/form-completion/form.ce.js +0 -248
- package/dist/vue/components/form-completion/json-input.ce.js +0 -114
- package/dist/vue/components/form-completion/masked-input.ce.js +0 -88
- package/dist/vue/components/form-completion/period-picker.ce.js +0 -147
- package/dist/vue/components/form-completion/time-field.ce.js +0 -120
- package/dist/vue/components/form-completion/upload-manager.ce.js +0 -232
- package/dist/vue/components/foundation/banner.ce.js +0 -106
- package/dist/vue/components/foundation/error-state.ce.js +0 -108
- package/dist/vue/components/foundation/field-group.ce.js +0 -146
- package/dist/vue/components/foundation/flex.ce.js +0 -60
- package/dist/vue/components/foundation/grid.ce.js +0 -52
- package/dist/vue/components/foundation/input-group.ce.js +0 -34
- package/dist/vue/components/foundation/page-header.ce.js +0 -55
- package/dist/vue/components/foundation/time-display.ce.js +0 -129
- package/dist/vue/components/foundation/typography.ce.js +0 -71
- package/dist/vue/components/input/checkbox-group.ce.js +0 -93
- package/dist/vue/components/input/field.ce.js +0 -76
- package/dist/vue/components/input/file-upload.ce.js +0 -154
- package/dist/vue/components/input/number-field.ce.js +0 -103
- package/dist/vue/components/input/pin-input.ce.js +0 -112
- package/dist/vue/components/input/rating.ce.js +0 -115
- package/dist/vue/components/input/tags-input.ce.js +0 -159
- package/dist/vue/components/input/toggle.ce.js +0 -58
- package/dist/vue/components/interaction/chip.ce.js +0 -95
- package/dist/vue/components/interaction/command.ce.js +0 -161
- package/dist/vue/components/interaction/context-menu.ce.js +0 -113
- package/dist/vue/components/interaction/hover-card.ce.js +0 -92
- package/dist/vue/components/interaction/loading-overlay.ce.js +0 -70
- package/dist/vue/components/interaction/menubar.ce.js +0 -134
- package/dist/vue/components/interaction/multi-select.ce.js +0 -271
- package/dist/vue/components/interaction/popconfirm.ce.js +0 -95
- package/dist/vue/components/interaction/tree-select.ce.js +0 -195
- package/dist/vue/components/navigation/accordion.ce.js +0 -114
- package/dist/vue/components/navigation/anchor.ce.js +0 -125
- package/dist/vue/components/navigation/back-top.ce.js +0 -67
- package/dist/vue/components/navigation/carousel.ce.js +0 -128
- package/dist/vue/components/navigation/link.ce.js +0 -62
- package/dist/vue/components/navigation/navigation-menu.ce.js +0 -91
- package/dist/vue/components/navigation/overflow-list.ce.js +0 -67
- package/dist/vue/components/navigation/scroll-area.ce.js +0 -47
- package/dist/vue/components/navigation/splitter.ce.js +0 -131
- package/dist/vue/components/navigation/stepper.ce.js +0 -74
- package/dist/vue/components/navigation/toolbar.ce.js +0 -93
- package/dist/vue/components/navigation/visually-hidden.ce.js +0 -16
- package/dist/vue/components/shell/app-shell.ce.js +0 -98
- package/dist/vue/components/shell/config-provider.ce.js +0 -110
- package/dist/vue/components/shell/marquee.ce.js +0 -92
- package/dist/vue/components/shell/masonry.ce.js +0 -50
- package/dist/vue/components/shell/sidebar.ce.js +0 -136
- package/dist/vue/components/utility/affix.ce.js +0 -64
- package/dist/vue/components/utility/alert-dialog.ce.js +0 -124
- package/dist/vue/components/utility/animated-number.ce.js +0 -66
- package/dist/vue/components/utility/float-button.ce.js +0 -104
- package/dist/vue/components/utility/listbox.ce.js +0 -102
- package/dist/vue/components/utility/loading-bar.ce.js +0 -85
- package/dist/vue/components/utility/log-viewer.ce.js +0 -141
- package/dist/vue/components/utility/notification-queue.ce.js +0 -122
- package/dist/vue/components/utility/progress-group.ce.js +0 -63
- package/dist/vue/components/utility/qr-code.ce.js +0 -62
- package/dist/vue/components/utility/tag-group.ce.js +0 -127
- package/dist/vue/components/utility/tour.ce.js +0 -214
- package/dist/vue/components/utility/virtual-select.ce.js +0 -207
- package/dist/vue/components/utility/watermark.ce.js +0 -44
- package/dist/vue/internal/navigation-items.js +0 -110
- package/dist/vue/utils/code-highlight.js +0 -142
- package/dist/vue/utils/collection.js +0 -15
- package/dist/vue/utils/config.js +0 -47
- package/dist/vue/utils/content.js +0 -83
- package/dist/vue/utils/display-status.js +0 -31
- package/dist/vue/utils/foundation.js +0 -65
- package/dist/vue/utils/local-date.js +0 -48
- package/dist/vue/utils/notifications.js +0 -60
- package/dist/vue/utils/qr.js +0 -20
- package/dist/vue/utils/scoped-slots.js +0 -22
- package/dist/vue/utils/theme.js +0 -56
- package/dist/vue/utils/utility-choice.js +0 -56
|
@@ -1,16 +1,367 @@
|
|
|
1
|
-
import e from "../../
|
|
1
|
+
import { useNormalizedRadius as e } from "../../utils/radius.js";
|
|
2
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import {
|
|
4
|
+
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, getCurrentInstance as s, markRaw as c, mergeProps as l, nextTick as u, normalizeClass as d, normalizeStyle as f, onBeforeUnmount as p, onMounted as m, openBlock as h, ref as g, renderSlot as _, unref as v, useAttrs as y, watch as b } from "vue";
|
|
4
5
|
// src/components/core/progress.ce.vue
|
|
5
|
-
var
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
var x = [
|
|
7
|
+
"aria-valuenow",
|
|
8
|
+
"aria-valuemax",
|
|
8
9
|
"aria-label"
|
|
9
|
-
],
|
|
10
|
+
], ee = {
|
|
10
11
|
key: 0,
|
|
11
|
-
class: "
|
|
12
|
+
class: "track"
|
|
13
|
+
}, te = { class: "primary" }, ne = [
|
|
14
|
+
"width",
|
|
15
|
+
"height",
|
|
16
|
+
"viewBox"
|
|
17
|
+
], re = ["d", "stroke-width"], ie = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "complete"
|
|
20
|
+
}, ae = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "gap"
|
|
23
|
+
}, oe = {
|
|
24
|
+
key: 2,
|
|
25
|
+
class: "secondary"
|
|
26
|
+
}, se = {
|
|
27
|
+
key: 3,
|
|
28
|
+
class: "gap"
|
|
29
|
+
}, ce = {
|
|
30
|
+
key: 4,
|
|
31
|
+
class: "buffer"
|
|
32
|
+
}, le = [
|
|
33
|
+
"width",
|
|
34
|
+
"height",
|
|
35
|
+
"viewBox"
|
|
36
|
+
], ue = [
|
|
37
|
+
"id",
|
|
38
|
+
"width",
|
|
39
|
+
"height"
|
|
40
|
+
], de = ["width", "height"], fe = ["height"], pe = ["height"], me = [
|
|
41
|
+
"id",
|
|
42
|
+
"width",
|
|
43
|
+
"height"
|
|
44
|
+
], he = ["width", "height"], ge = ["height"], _e = ["height"], ve = ["mask"], ye = ["d", "stroke-width"], be = ["mask"], xe = ["height"], Se = {
|
|
45
|
+
key: 0,
|
|
46
|
+
class: "progress",
|
|
47
|
+
"aria-hidden": "true"
|
|
48
|
+
}, Ce = { class: "spinner" }, we = { class: "left" }, Te = [
|
|
49
|
+
"width",
|
|
50
|
+
"height",
|
|
51
|
+
"viewBox"
|
|
52
|
+
], Ee = ["d", "stroke-width"], De = { class: "right" }, Oe = [
|
|
53
|
+
"width",
|
|
54
|
+
"height",
|
|
55
|
+
"viewBox"
|
|
56
|
+
], ke = ["d", "stroke-width"], Ae = {
|
|
57
|
+
key: 1,
|
|
58
|
+
class: "progress",
|
|
59
|
+
"aria-hidden": "true"
|
|
60
|
+
}, je = [
|
|
61
|
+
"width",
|
|
62
|
+
"height",
|
|
63
|
+
"viewBox"
|
|
64
|
+
], Me = ["d", "stroke-width"], Ne = ["d", "stroke-width"], Pe = {
|
|
65
|
+
class: "content",
|
|
66
|
+
"aria-hidden": "true"
|
|
67
|
+
}, Fe = {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: "progress",
|
|
12
70
|
"aria-hidden": "true"
|
|
13
|
-
},
|
|
71
|
+
}, Ie = [
|
|
72
|
+
"width",
|
|
73
|
+
"height",
|
|
74
|
+
"viewBox"
|
|
75
|
+
], Le = ["d", "stroke-width"], Re = ["stroke-width"], ze = ["viewBox"], Be = {
|
|
76
|
+
key: 0,
|
|
77
|
+
class: "active-track"
|
|
78
|
+
}, Ve = [
|
|
79
|
+
"d",
|
|
80
|
+
"stroke-dasharray",
|
|
81
|
+
"stroke-width"
|
|
82
|
+
], He = ["d", "stroke-width"], Ue = {
|
|
83
|
+
class: "content",
|
|
84
|
+
"aria-hidden": "true"
|
|
85
|
+
};
|
|
86
|
+
function We(e, t) {
|
|
87
|
+
return t > 0 ? Math.max(0, Math.min(e / t, 1)) : 0;
|
|
88
|
+
}
|
|
89
|
+
function Ge(e, t, n) {
|
|
90
|
+
return n || e > .1 && e < .95 ? Math.max(0, t) : 0;
|
|
91
|
+
}
|
|
92
|
+
function S(e, t, n, r, i) {
|
|
93
|
+
if (e <= 0 || e >= 1) return e;
|
|
94
|
+
let a = 0, o = 1;
|
|
95
|
+
for (let n = 0; n < 20; n++) {
|
|
96
|
+
let n = (a + o) / 2;
|
|
97
|
+
3 * (1 - n) * (1 - n) * n * t + 3 * (1 - n) * n * n * r + n * n * n < e ? a = n : o = n;
|
|
98
|
+
}
|
|
99
|
+
let s = (a + o) / 2;
|
|
100
|
+
return 3 * (1 - s) * (1 - s) * s * n + 3 * (1 - s) * s * s * i + s * s * s;
|
|
101
|
+
}
|
|
102
|
+
var Ke = class {
|
|
103
|
+
constructor() {
|
|
104
|
+
this.value = void 0, this._target = 0, this._from = 0, this._start = void 0;
|
|
105
|
+
}
|
|
106
|
+
get animating() {
|
|
107
|
+
return this._start !== void 0;
|
|
108
|
+
}
|
|
109
|
+
setTarget(e, t) {
|
|
110
|
+
this.value === void 0 ? this.value = this._target = e : e !== this._target && (this.sample(t), this._from = this.value, this._target = e, this._start = t);
|
|
111
|
+
}
|
|
112
|
+
sample(e) {
|
|
113
|
+
if (this._start === void 0) return !1;
|
|
114
|
+
let t = this.value, n = Math.max(0, Math.min(1, (e - this._start) / .5)), r = this._target > this._from ? S(n, .2, 0, 0, 1) : S(n, .3, 0, .8, .15);
|
|
115
|
+
return this.value = this._from + (this._target - this._from) * r, n === 1 && (this.value = this._target, this._start = void 0), this.value !== t;
|
|
116
|
+
}
|
|
117
|
+
reset() {
|
|
118
|
+
this.value = void 0, this._start = void 0;
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
function qe({ width: e, strokeWidth: t, configuredAmplitude: n, amplitude: r, wavelength: i, phase: a = 0 }) {
|
|
122
|
+
let o = Math.max(n, r), s = o + t / 2, c = [], l = i / 2, u = 0;
|
|
123
|
+
if (c.push(`M ${u},${s}`), r === 0) c.push(`H ${e}`);
|
|
124
|
+
else for (; u <= e;) {
|
|
125
|
+
let e = u + l, t = s + r * Math.sin(2 * Math.PI * e / i + a), n = u + l / 2, o = s + r * Math.sin(2 * Math.PI * (u + l / 2) / i + a);
|
|
126
|
+
c.push(`Q ${n},${o} ${e},${t}`), u += l;
|
|
127
|
+
}
|
|
128
|
+
let d = t + o * 2, f = `0 0 ${e} ${d}`;
|
|
129
|
+
return {
|
|
130
|
+
path: c.join(" "),
|
|
131
|
+
viewBox: f,
|
|
132
|
+
height: d
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function Je(e, t, n, r) {
|
|
136
|
+
if (n === "wavy") {
|
|
137
|
+
let n = Math.max(0, (e - t) / 2);
|
|
138
|
+
return {
|
|
139
|
+
cx: e / 2,
|
|
140
|
+
cy: e / 2,
|
|
141
|
+
r: n,
|
|
142
|
+
padding: 0
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
r += t / 2;
|
|
146
|
+
let i = e / 2;
|
|
147
|
+
return {
|
|
148
|
+
cx: i + r,
|
|
149
|
+
cy: i + r,
|
|
150
|
+
r: i,
|
|
151
|
+
padding: r
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function Ye(e, t) {
|
|
155
|
+
return t > 0 ? e * (360 / (2 * Math.PI * t)) : 0;
|
|
156
|
+
}
|
|
157
|
+
function Xe(e, t) {
|
|
158
|
+
let n = (t - 90) * (Math.PI / 180);
|
|
159
|
+
return {
|
|
160
|
+
x: e.cx + e.r * Math.cos(n),
|
|
161
|
+
y: e.cy + e.r * Math.sin(n)
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
function Ze(e, t, n, { startAngle: r = 0, endAngle: i = 360, gap: a = 0, padding: o = 0 }) {
|
|
165
|
+
if (e === 0 || t === 0) return {
|
|
166
|
+
path: "",
|
|
167
|
+
viewBox: "0 0 0 0"
|
|
168
|
+
};
|
|
169
|
+
let s = Je(e, t, n, o);
|
|
170
|
+
if (a > 0 && (r += Ye(a, s.r), i -= Ye(a, s.r)), n === "wavy" && i <= r) return {
|
|
171
|
+
path: "",
|
|
172
|
+
viewBox: `0 0 ${e} ${e}`
|
|
173
|
+
};
|
|
174
|
+
i - r >= 360 && (i = r + 359.999);
|
|
175
|
+
let c = Xe(s, i), l = Xe(s, r);
|
|
176
|
+
return {
|
|
177
|
+
path: `M ${c.x} ${c.y} A ${s.r} ${s.r} 0 ${i - r <= 180 ? "0" : "1"} 0 ${l.x} ${l.y}`,
|
|
178
|
+
viewBox: `0 0 ${e + s.padding * 2} ${e + s.padding * 2}`
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
function C(e, t, n) {
|
|
182
|
+
return {
|
|
183
|
+
x: e.x + (t.x - e.x) * n,
|
|
184
|
+
y: e.y + (t.y - e.y) * n
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
function w(e, t) {
|
|
188
|
+
return e.x * t.y - e.y * t.x;
|
|
189
|
+
}
|
|
190
|
+
function Qe(e, t, n, r) {
|
|
191
|
+
let i = n + r, a = 4 / 3 * Math.tan(r / 4) * t, o = {
|
|
192
|
+
x: e.x + t * Math.cos(n),
|
|
193
|
+
y: e.y + t * Math.sin(n)
|
|
194
|
+
}, s = {
|
|
195
|
+
x: e.x + t * Math.cos(i),
|
|
196
|
+
y: e.y + t * Math.sin(i)
|
|
197
|
+
};
|
|
198
|
+
return [
|
|
199
|
+
o,
|
|
200
|
+
{
|
|
201
|
+
x: o.x - a * Math.sin(n),
|
|
202
|
+
y: o.y + a * Math.cos(n)
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
x: s.x + a * Math.sin(i),
|
|
206
|
+
y: s.y - a * Math.cos(i)
|
|
207
|
+
},
|
|
208
|
+
s
|
|
209
|
+
];
|
|
210
|
+
}
|
|
211
|
+
function $e(e, t, n) {
|
|
212
|
+
let r = Math.PI * Math.max(0, e - t);
|
|
213
|
+
return n > 0 ? Math.min(256, Math.max(5, Math.round(r / n))) : 5;
|
|
214
|
+
}
|
|
215
|
+
function et(e) {
|
|
216
|
+
let t = Array.from({ length: e * 2 }, (t, n) => {
|
|
217
|
+
let r = -Math.PI / 2 + n * Math.PI / e, i = n % 2 == 0 ? 1 : .75;
|
|
218
|
+
return {
|
|
219
|
+
x: i * Math.cos(r),
|
|
220
|
+
y: i * Math.sin(r)
|
|
221
|
+
};
|
|
222
|
+
}), n = t.map((e, n) => {
|
|
223
|
+
let r = t[(n + t.length - 1) % t.length], i = t[(n + 1) % t.length], a = Math.hypot(r.x - e.x, r.y - e.y), o = {
|
|
224
|
+
x: (r.x - e.x) / a,
|
|
225
|
+
y: (r.y - e.y) / a
|
|
226
|
+
}, s = {
|
|
227
|
+
x: (i.x - e.x) / a,
|
|
228
|
+
y: (i.y - e.y) / a
|
|
229
|
+
}, c = Math.acos(Math.max(-1, Math.min(1, o.x * s.x + o.y * s.y))) / 2;
|
|
230
|
+
return {
|
|
231
|
+
vertex: e,
|
|
232
|
+
u: o,
|
|
233
|
+
v: s,
|
|
234
|
+
length: a,
|
|
235
|
+
halfAngle: c,
|
|
236
|
+
cut: (n % 2 == 0 ? .35 : .5) / Math.tan(c),
|
|
237
|
+
extra: 0
|
|
238
|
+
};
|
|
239
|
+
}), r = Math.min(1, ...n.map((e, t) => e.length / (e.cut + n[(t + 1) % n.length].cut)));
|
|
240
|
+
n.forEach((e, t) => {
|
|
241
|
+
e.cut *= r, e.extra = t % 2 == 0 ? e.cut * .4 : 0;
|
|
242
|
+
});
|
|
243
|
+
let i = Math.min(1, ...n.map((e, t) => {
|
|
244
|
+
let r = n[(t + 1) % n.length];
|
|
245
|
+
return e.extra + r.extra > 0 ? Math.max(0, e.length - e.cut - r.cut) / (e.extra + r.extra) : 1;
|
|
246
|
+
}));
|
|
247
|
+
n.forEach((e) => e.extra *= i);
|
|
248
|
+
let a = [], o = 0;
|
|
249
|
+
n.forEach((e, t) => {
|
|
250
|
+
let { vertex: n, u: r, v: i, cut: s, extra: c, halfAngle: l } = e, u = s * Math.tan(l), d = s / (1 + r.x * i.x + r.y * i.y), f = {
|
|
251
|
+
x: n.x + (r.x + i.x) * d,
|
|
252
|
+
y: n.y + (r.y + i.y) * d
|
|
253
|
+
}, p = {
|
|
254
|
+
x: n.x + r.x * s,
|
|
255
|
+
y: n.y + r.y * s
|
|
256
|
+
}, m = Math.sign(i.x * r.y - i.y * r.x), h = m * (Math.PI - l * 2), g = Math.atan2(p.y - f.y, p.x - f.x), _ = h * c / (2 * (s + c)), v = 2 * Math.max(1, Math.ceil(Math.abs(h - 2 * _) / (Math.PI / 2))), y = Array.from({ length: v }, (e, t) => Qe(f, u, g + _ + (h - 2 * _) * t / v, (h - 2 * _) / v)), b = {
|
|
257
|
+
x: n.x + r.x * (s + c),
|
|
258
|
+
y: n.y + r.y * (s + c)
|
|
259
|
+
}, x = {
|
|
260
|
+
x: n.x + i.x * (s + c),
|
|
261
|
+
y: n.y + i.y * (s + c)
|
|
262
|
+
};
|
|
263
|
+
if (a.length > 0) {
|
|
264
|
+
let e = a[a.length - 1][3];
|
|
265
|
+
Math.hypot(b.x - e.x, b.y - e.y) > 1e-9 && a.push([
|
|
266
|
+
e,
|
|
267
|
+
C(e, b, 1 / 3),
|
|
268
|
+
C(e, b, 2 / 3),
|
|
269
|
+
b
|
|
270
|
+
]);
|
|
271
|
+
}
|
|
272
|
+
if (c > 1e-9) {
|
|
273
|
+
let e = y[0][0], t = g + _, n = Math.hypot(e.x - b.x, e.y - b.y) / 3;
|
|
274
|
+
a.push([
|
|
275
|
+
b,
|
|
276
|
+
{
|
|
277
|
+
x: b.x - r.x * n,
|
|
278
|
+
y: b.y - r.y * n
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
x: e.x + m * Math.sin(t) * n,
|
|
282
|
+
y: e.y - m * Math.cos(t) * n
|
|
283
|
+
},
|
|
284
|
+
e
|
|
285
|
+
]);
|
|
286
|
+
}
|
|
287
|
+
if (t === 0 && (o = a.length + v / 2), a.push(...y), c > 1e-9) {
|
|
288
|
+
let e = y[y.length - 1][3], t = g + h - _, n = Math.hypot(x.x - e.x, x.y - e.y) / 3;
|
|
289
|
+
a.push([
|
|
290
|
+
e,
|
|
291
|
+
{
|
|
292
|
+
x: e.x - m * Math.sin(t) * n,
|
|
293
|
+
y: e.y + m * Math.cos(t) * n
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
x: x.x - i.x * n,
|
|
297
|
+
y: x.y - i.y * n
|
|
298
|
+
},
|
|
299
|
+
x
|
|
300
|
+
]);
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
let s = a[a.length - 1][3], c = a[0][0];
|
|
304
|
+
Math.hypot(s.x - c.x, s.y - c.y) > 1e-9 && a.push([
|
|
305
|
+
s,
|
|
306
|
+
C(s, c, 1 / 3),
|
|
307
|
+
C(s, c, 2 / 3),
|
|
308
|
+
c
|
|
309
|
+
]);
|
|
310
|
+
let l = [...a.slice(o), ...a.slice(0, o)], u = Math.hypot(l[0][0].x, l[0][0].y), d = (e) => ({
|
|
311
|
+
x: e.x / u,
|
|
312
|
+
y: e.y / u
|
|
313
|
+
}), f = l.map((e) => [
|
|
314
|
+
d(e[0]),
|
|
315
|
+
d(e[1]),
|
|
316
|
+
d(e[2]),
|
|
317
|
+
d(e[3])
|
|
318
|
+
]), p = f.map((e) => {
|
|
319
|
+
let t = Math.atan2(e[0].y, e[0].x);
|
|
320
|
+
return Qe({
|
|
321
|
+
x: 0,
|
|
322
|
+
y: 0
|
|
323
|
+
}, 1, t, (Math.atan2(e[3].y, e[3].x) - t + 2 * Math.PI) % (2 * Math.PI));
|
|
324
|
+
}), m = 1 / (1 - Math.min(...f.flatMap((e) => [Math.hypot(e[0].x, e[0].y), Math.hypot(e[3].x, e[3].y)])));
|
|
325
|
+
return f.forEach((e, t) => {
|
|
326
|
+
for (let n = 0; n < 3; n++) {
|
|
327
|
+
let r = p[t][n], i = p[t][n + 1], a = {
|
|
328
|
+
x: e[n].x - r.x,
|
|
329
|
+
y: e[n].y - r.y
|
|
330
|
+
}, o = {
|
|
331
|
+
x: e[n + 1].x - i.x,
|
|
332
|
+
y: e[n + 1].y - i.y
|
|
333
|
+
}, s = w(a, o), c = w(a, i) + w(r, o), l = w(r, i), u = c * c - 4 * s * l, d = [];
|
|
334
|
+
Math.abs(s) < 1e-12 ? c < 0 && (d = [-l / c]) : u >= 0 && (d = [(-c - Math.sqrt(u)) / (2 * s), (-c + Math.sqrt(u)) / (2 * s)]);
|
|
335
|
+
for (let e of d) e > 1 && (m = Math.min(m, e));
|
|
336
|
+
}
|
|
337
|
+
}), {
|
|
338
|
+
star: f,
|
|
339
|
+
circle: p,
|
|
340
|
+
maxDeformation: m
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
function tt(e, t, n, r) {
|
|
344
|
+
let i = Math.max(0, Math.min(r, e.maxDeformation)), a = e.star.map((r, a) => r.map((r, o) => {
|
|
345
|
+
let s = C(e.circle[a][o], r, i);
|
|
346
|
+
return {
|
|
347
|
+
x: n + s.x * t,
|
|
348
|
+
y: n + s.y * t
|
|
349
|
+
};
|
|
350
|
+
}));
|
|
351
|
+
return `M ${a[0][0].x},${a[0][0].y} ` + a.map((e) => `C ${e[1].x},${e[1].y} ${e[2].x},${e[2].y} ${e[3].x},${e[3].y}`).join(" ") + " Z";
|
|
352
|
+
}
|
|
353
|
+
var T = 6;
|
|
354
|
+
function nt(e, t) {
|
|
355
|
+
let n = e % T, r = T / 2, i = n < r ? 36 + n / r * 277.2 : 313.2 - 277.2 * S((n - r) / r, .2, 0, 0, 1), a = Math.floor(n / 1.5), o = Math.min(n % 1.5 / .3, 1), s = n / T * 1080 + (a + o) * 90, c = e / t % 1, l = i / 3.6;
|
|
356
|
+
return {
|
|
357
|
+
sweep: i,
|
|
358
|
+
rotation: s,
|
|
359
|
+
waveRotation: -c * 360,
|
|
360
|
+
dashOffset: -c * 100,
|
|
361
|
+
dashArray: `${l} ${100 - l}`
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
var E = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
14
365
|
__name: "progress.ce",
|
|
15
366
|
props: {
|
|
16
367
|
value: {
|
|
@@ -21,29 +372,441 @@ var p = { class: "kima-progress" }, m = { class: "kima-progress__track" }, h = [
|
|
|
21
372
|
type: Number,
|
|
22
373
|
default: 100
|
|
23
374
|
},
|
|
375
|
+
mode: {
|
|
376
|
+
type: String,
|
|
377
|
+
default: void 0
|
|
378
|
+
},
|
|
24
379
|
indeterminate: {
|
|
25
380
|
type: Boolean,
|
|
26
381
|
default: !1
|
|
27
382
|
},
|
|
383
|
+
bufferValue: {
|
|
384
|
+
type: Number,
|
|
385
|
+
default: 0
|
|
386
|
+
},
|
|
387
|
+
variant: {
|
|
388
|
+
type: String,
|
|
389
|
+
default: "flat"
|
|
390
|
+
},
|
|
28
391
|
label: {
|
|
29
392
|
type: String,
|
|
30
393
|
default: ""
|
|
394
|
+
},
|
|
395
|
+
radius: {
|
|
396
|
+
type: [String, Number],
|
|
397
|
+
default: null
|
|
31
398
|
}
|
|
32
399
|
},
|
|
33
|
-
setup(
|
|
34
|
-
let
|
|
35
|
-
...
|
|
400
|
+
setup(t) {
|
|
401
|
+
let S = (e) => e === "flat" || e === "wavy", Xe = (e) => e === "determinate" || e === "indeterminate" || e === "buffer" || e === "query", C = t, w = y(), Qe = !!s()?.ce, T = r(() => Qe ? {
|
|
402
|
+
...w,
|
|
36
403
|
id: void 0
|
|
37
|
-
} :
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}), null,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
404
|
+
} : w), E = s()?.uid ?? 0, D = r(() => S(C.variant) ? C.variant : "flat"), O = r(() => C.mode === "circular"), k = r(() => Xe(C.mode) ? C.mode : C.mode === "circular" ? "determinate" : C.indeterminate ? "indeterminate" : "determinate"), A = r(() => O.value ? C.indeterminate : k.value === "indeterminate" || k.value === "query"), j = r(() => Number.isFinite(C.max) && C.max > 0 ? C.max : 100), M = r(() => Math.max(0, Math.min(C.value, j.value))), rt = r(() => Math.max(0, Math.min(C.bufferValue, j.value))), it = r(() => We(M.value, j.value)), N = g(null), { radiusAttrs: at, radiusStyle: ot } = e(N, () => C.radius), P = g(null), st = g(null), ct = g(null), F = g({
|
|
405
|
+
width: 0,
|
|
406
|
+
strokeWidth: 0,
|
|
407
|
+
amplitude: 0,
|
|
408
|
+
wavelength: 0,
|
|
409
|
+
diameter: 0
|
|
410
|
+
}), lt = null, I = new Ke(), L, R = 0, z = g(!1), B = null, V = {
|
|
411
|
+
svg: null,
|
|
412
|
+
active: null,
|
|
413
|
+
track: null
|
|
414
|
+
};
|
|
415
|
+
function ut() {
|
|
416
|
+
if (L = void 0, V.svg = null, V.active = null, V.track = null, !(O.value && D.value === "wavy" && A.value)) return;
|
|
417
|
+
let e = N.value;
|
|
418
|
+
e && (V.svg = c(e.querySelector(".progress > svg") ?? null), V.active = c(e.querySelector(".spinner.active-track") ?? null), V.track = c(e.querySelector(".spinner.track") ?? null));
|
|
419
|
+
}
|
|
420
|
+
function H() {
|
|
421
|
+
if (!N.value) return;
|
|
422
|
+
let e = { ...F.value }, t = st.value;
|
|
423
|
+
t && (e.strokeWidth = t.clientHeight, e.width = Math.round(t.getBoundingClientRect().width));
|
|
424
|
+
let n = P.value;
|
|
425
|
+
if (n) {
|
|
426
|
+
if (O.value) {
|
|
427
|
+
let t = getComputedStyle(n), r = parseFloat(t.width), i = parseFloat(t.height);
|
|
428
|
+
Number.isFinite(r) && (e.amplitude = r), Number.isFinite(i) && (e.wavelength = i);
|
|
429
|
+
} else e.amplitude = n.clientHeight, e.wavelength = n.clientWidth;
|
|
430
|
+
}
|
|
431
|
+
let r = ct.value;
|
|
432
|
+
if (r) {
|
|
433
|
+
if (D.value === "wavy") {
|
|
434
|
+
let t = getComputedStyle(r), n = parseFloat(t.width), i = parseFloat(t.height);
|
|
435
|
+
Number.isFinite(n) && (e.diameter = n), Number.isFinite(i) && (e.strokeWidth = i);
|
|
436
|
+
} else e.diameter = r.clientWidth, e.strokeWidth = r.clientHeight;
|
|
437
|
+
}
|
|
438
|
+
F.value = e;
|
|
439
|
+
}
|
|
440
|
+
function U() {
|
|
441
|
+
return Ge(it.value, F.value.amplitude, A.value);
|
|
442
|
+
}
|
|
443
|
+
function W() {
|
|
444
|
+
return $e(F.value.diameter, F.value.strokeWidth, F.value.wavelength);
|
|
445
|
+
}
|
|
446
|
+
function dt(e) {
|
|
447
|
+
L === void 0 && (L = e);
|
|
448
|
+
let t = nt(e - L, W());
|
|
449
|
+
V.svg && (V.svg.style.transform = `rotate(${t.rotation}deg)`), V.active && (V.active.setAttribute("stroke-dasharray", t.dashArray), V.active.setAttribute("stroke-dashoffset", `${t.dashOffset}`), V.active.style.transform = `rotate(${t.waveRotation}deg)`), V.track && V.track.setAttribute("d", J({
|
|
450
|
+
gap: F.value.strokeWidth * 2,
|
|
451
|
+
startAngle: t.sweep
|
|
452
|
+
}).path);
|
|
453
|
+
}
|
|
454
|
+
function G(e) {
|
|
455
|
+
if (z.value) {
|
|
456
|
+
R = 0;
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
let t = e / 1e3;
|
|
460
|
+
I.sample(t) && (pt(), F.value = { ...F.value }), O.value && D.value === "wavy" && A.value ? (dt(t), R = requestAnimationFrame(G)) : R = I.animating ? requestAnimationFrame(G) : 0;
|
|
461
|
+
}
|
|
462
|
+
function ft() {
|
|
463
|
+
I.reset(), I.setTarget(U(), performance.now() / 1e3);
|
|
464
|
+
}
|
|
465
|
+
function pt() {
|
|
466
|
+
let e = N.value;
|
|
467
|
+
if (!e) return;
|
|
468
|
+
if (D.value !== "wavy") {
|
|
469
|
+
e.style.removeProperty("--_linear-wavy-amplitude");
|
|
470
|
+
return;
|
|
471
|
+
}
|
|
472
|
+
let t = F.value.amplitude, n = `${Math.max(t, I.value ?? t)}px`;
|
|
473
|
+
e.style.getPropertyValue("--_linear-wavy-amplitude") !== n && e.style.setProperty("--_linear-wavy-amplitude", n);
|
|
474
|
+
}
|
|
475
|
+
function K() {
|
|
476
|
+
D.value === "wavy" ? (z.value ? ft() : I.setTarget(U(), performance.now() / 1e3), pt(), !z.value && (I.animating || O.value && A.value) && !R && (R = requestAnimationFrame(G))) : (I.reset(), pt());
|
|
477
|
+
}
|
|
478
|
+
function q() {
|
|
479
|
+
z.value = !!B?.matches, z.value ? (R && cancelAnimationFrame(R), R = 0, L = void 0, K(), O.value && D.value === "wavy" && A.value && dt(0)) : K();
|
|
480
|
+
}
|
|
481
|
+
function mt(e) {
|
|
482
|
+
return Je(F.value.diameter, F.value.strokeWidth, D.value, e);
|
|
483
|
+
}
|
|
484
|
+
function ht(e, t = F.value.amplitude) {
|
|
485
|
+
return Ye(e, mt(t).r);
|
|
486
|
+
}
|
|
487
|
+
function J(e) {
|
|
488
|
+
let { padding: t = F.value.amplitude, ...n } = e;
|
|
489
|
+
return Ze(F.value.diameter, F.value.strokeWidth, D.value, {
|
|
490
|
+
...n,
|
|
491
|
+
padding: t
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
let gt = null, _t = 0;
|
|
495
|
+
function vt() {
|
|
496
|
+
if (F.value.diameter === 0 || F.value.strokeWidth === 0) return {
|
|
497
|
+
path: "",
|
|
498
|
+
viewBox: "0 0 0 0"
|
|
499
|
+
};
|
|
500
|
+
let e = mt(0), t = W();
|
|
501
|
+
gt && _t === t || (gt = et(t), _t = t);
|
|
502
|
+
let n = I.value ?? U();
|
|
503
|
+
return {
|
|
504
|
+
path: tt(gt, e.r, e.cx, n / 1.6),
|
|
505
|
+
viewBox: `0 0 ${F.value.diameter} ${F.value.diameter}`
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
let yt = r(() => ({
|
|
509
|
+
"--_translate-x": `-${M.value / j.value * F.value.width}px`,
|
|
510
|
+
"--_value": `${M.value / j.value * 100}%`,
|
|
511
|
+
"--_buffer-value": `${rt.value / j.value * 100}%`
|
|
512
|
+
}));
|
|
513
|
+
function Y() {
|
|
514
|
+
if (D.value !== "wavy" || F.value.strokeWidth <= 0 || F.value.wavelength <= 0) return null;
|
|
515
|
+
let e = k.value === "indeterminate" || k.value === "query" ? F.value.width : F.value.width + F.value.wavelength * 3, t = I.value ?? U();
|
|
516
|
+
return qe({
|
|
517
|
+
width: e,
|
|
518
|
+
strokeWidth: F.value.strokeWidth,
|
|
519
|
+
configuredAmplitude: F.value.amplitude,
|
|
520
|
+
amplitude: t,
|
|
521
|
+
wavelength: F.value.wavelength
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
let bt = r(() => !((k.value === "determinate" || k.value === "buffer") && M.value <= 0)), xt = r(() => k.value !== "buffer" || rt.value > 0), St = r(() => (k.value === "determinate" || k.value === "buffer") && M.value > 0), X = r(() => k.value === "determinate" || k.value === "buffer"), Z = r(() => {
|
|
525
|
+
let e = ht(F.value.strokeWidth * 2), t = M.value / j.value * 360;
|
|
526
|
+
t > 0 && (t = Math.max(0, e, t));
|
|
527
|
+
let n = J({
|
|
528
|
+
gap: t < 360 ? F.value.strokeWidth : 0,
|
|
529
|
+
endAngle: t
|
|
530
|
+
}), r = J({
|
|
531
|
+
gap: t > 0 ? F.value.strokeWidth : 0,
|
|
532
|
+
startAngle: t,
|
|
533
|
+
endAngle: 360
|
|
534
|
+
});
|
|
535
|
+
return {
|
|
536
|
+
degrees: t,
|
|
537
|
+
minDegrees: e,
|
|
538
|
+
active: n,
|
|
539
|
+
inactive: r
|
|
540
|
+
};
|
|
541
|
+
}), Q = r(() => ({
|
|
542
|
+
left: J({
|
|
543
|
+
startAngle: -45,
|
|
544
|
+
endAngle: 90 + F.value.strokeWidth
|
|
545
|
+
}),
|
|
546
|
+
right: J({
|
|
547
|
+
startAngle: -F.value.strokeWidth,
|
|
548
|
+
endAngle: 135
|
|
549
|
+
})
|
|
550
|
+
})), $ = r(() => {
|
|
551
|
+
let e = ht(F.value.strokeWidth * 2), t = it.value, n = t * 360;
|
|
552
|
+
return {
|
|
553
|
+
degrees: n,
|
|
554
|
+
minDegrees: e,
|
|
555
|
+
progress: t,
|
|
556
|
+
amplitude: I.value ?? U(),
|
|
557
|
+
active: vt(),
|
|
558
|
+
inactive: J({
|
|
559
|
+
gap: n > 0 ? F.value.strokeWidth * 2 : 0,
|
|
560
|
+
startAngle: n,
|
|
561
|
+
endAngle: 360
|
|
562
|
+
})
|
|
563
|
+
};
|
|
564
|
+
}), Ct = r(() => ({ active: vt() })), wt = r(() => `${W()}s`);
|
|
565
|
+
return m(() => {
|
|
566
|
+
H(), B = window.matchMedia("(prefers-reduced-motion: reduce)"), B.addEventListener("change", q), lt = new ResizeObserver(() => {
|
|
567
|
+
H(), K();
|
|
568
|
+
}), N.value && lt.observe(N.value), ut(), q();
|
|
569
|
+
}), p(() => {
|
|
570
|
+
B?.removeEventListener("change", q), lt?.disconnect(), R && cancelAnimationFrame(R);
|
|
571
|
+
}), b([
|
|
572
|
+
() => C.mode,
|
|
573
|
+
() => C.variant,
|
|
574
|
+
() => C.indeterminate
|
|
575
|
+
], () => {
|
|
576
|
+
u(() => {
|
|
577
|
+
H(), ut(), q();
|
|
578
|
+
});
|
|
579
|
+
}), b([
|
|
580
|
+
() => C.value,
|
|
581
|
+
() => C.max,
|
|
582
|
+
() => C.bufferValue
|
|
583
|
+
], () => {
|
|
584
|
+
K();
|
|
585
|
+
}), (e, r) => (h(), a("div", l({
|
|
586
|
+
ref_key: "root",
|
|
587
|
+
ref: N,
|
|
588
|
+
class: ["kima-progress", [
|
|
589
|
+
O.value ? "kima-progress--circular" : "kima-progress--linear",
|
|
590
|
+
`kima-progress--${D.value}`,
|
|
591
|
+
O.value ? { "kima-progress--indeterminate": A.value } : `kima-progress--${k.value}`
|
|
592
|
+
]],
|
|
593
|
+
role: "progressbar",
|
|
594
|
+
"aria-valuemin": 0,
|
|
595
|
+
"aria-valuenow": A.value ? void 0 : M.value,
|
|
596
|
+
"aria-valuemax": j.value,
|
|
597
|
+
"aria-label": v(w)["aria-label"] || t.label || void 0
|
|
598
|
+
}, {
|
|
599
|
+
...T.value,
|
|
600
|
+
...v(at)
|
|
601
|
+
}, { style: v(ot) }), [
|
|
602
|
+
O.value ? i("", !0) : (h(), a("div", {
|
|
603
|
+
key: 0,
|
|
604
|
+
class: "progress",
|
|
605
|
+
"aria-hidden": "true",
|
|
606
|
+
style: f(yt.value)
|
|
607
|
+
}, [
|
|
608
|
+
Y() ? i("", !0) : (h(), a("div", ee)),
|
|
609
|
+
X.value || bt.value ? (h(), a(n, { key: 1 }, [o("div", te, [Y() && X.value ? (h(), a(n, { key: 0 }, [j.value > 0 && M.value >= j.value && v(I).value === 0 ? i("", !0) : (h(), a("svg", {
|
|
610
|
+
key: 0,
|
|
611
|
+
class: "wave",
|
|
612
|
+
width: Y().viewBox.split(" ")[2],
|
|
613
|
+
height: Y().height,
|
|
614
|
+
viewBox: Y().viewBox,
|
|
615
|
+
preserveAspectRatio: "none"
|
|
616
|
+
}, [o("path", {
|
|
617
|
+
class: "wave-path",
|
|
618
|
+
d: Y().path,
|
|
619
|
+
stroke: "currentColor",
|
|
620
|
+
"stroke-width": F.value.strokeWidth,
|
|
621
|
+
fill: "none",
|
|
622
|
+
"stroke-linecap": "round"
|
|
623
|
+
}, null, 8, re)], 8, ne))], 64)) : i("", !0), Y() && X.value && j.value > 0 && M.value >= j.value && v(I).value === 0 ? (h(), a("div", ie)) : i("", !0)]), X.value && M.value > 0 ? (h(), a("div", ae)) : i("", !0)], 64)) : i("", !0),
|
|
624
|
+
xt.value ? (h(), a("div", oe)) : i("", !0),
|
|
625
|
+
k.value === "buffer" && rt.value > 0 ? (h(), a("div", se)) : i("", !0),
|
|
626
|
+
k.value === "buffer" ? (h(), a("div", ce)) : i("", !0),
|
|
627
|
+
St.value ? (h(), a(n, { key: 5 }, [r[0] ||= o("div", { class: "gap" }, null, -1), r[1] ||= o("div", { class: "stop" }, null, -1)], 64)) : i("", !0),
|
|
628
|
+
Y() && !X.value ? (h(), a("svg", {
|
|
629
|
+
key: 6,
|
|
630
|
+
class: "wave",
|
|
631
|
+
width: Y().viewBox.split(" ")[2],
|
|
632
|
+
height: Y().height,
|
|
633
|
+
viewBox: Y().viewBox,
|
|
634
|
+
preserveAspectRatio: "none"
|
|
635
|
+
}, [
|
|
636
|
+
o("mask", {
|
|
637
|
+
id: `kima-progress-mask-${v(E)}`,
|
|
638
|
+
maskUnits: "userSpaceOnUse",
|
|
639
|
+
width: Y().viewBox.split(" ")[2],
|
|
640
|
+
height: Y().height
|
|
641
|
+
}, [
|
|
642
|
+
o("rect", {
|
|
643
|
+
width: Y().viewBox.split(" ")[2],
|
|
644
|
+
height: Y().height,
|
|
645
|
+
fill: "black"
|
|
646
|
+
}, null, 8, de),
|
|
647
|
+
o("rect", {
|
|
648
|
+
class: "primary",
|
|
649
|
+
height: Y().height,
|
|
650
|
+
fill: "white"
|
|
651
|
+
}, null, 8, fe),
|
|
652
|
+
o("rect", {
|
|
653
|
+
class: "secondary",
|
|
654
|
+
height: Y().height,
|
|
655
|
+
fill: "white"
|
|
656
|
+
}, null, 8, pe)
|
|
657
|
+
], 8, ue),
|
|
658
|
+
o("mask", {
|
|
659
|
+
id: `kima-progress-mask-${v(E)}-inverse`,
|
|
660
|
+
maskUnits: "userSpaceOnUse",
|
|
661
|
+
width: Y().viewBox.split(" ")[2],
|
|
662
|
+
height: Y().height
|
|
663
|
+
}, [
|
|
664
|
+
o("rect", {
|
|
665
|
+
width: Y().viewBox.split(" ")[2],
|
|
666
|
+
height: Y().height,
|
|
667
|
+
fill: "white"
|
|
668
|
+
}, null, 8, he),
|
|
669
|
+
o("rect", {
|
|
670
|
+
class: "primary",
|
|
671
|
+
height: Y().height,
|
|
672
|
+
fill: "black"
|
|
673
|
+
}, null, 8, ge),
|
|
674
|
+
o("rect", {
|
|
675
|
+
class: "secondary",
|
|
676
|
+
height: Y().height,
|
|
677
|
+
fill: "black"
|
|
678
|
+
}, null, 8, _e)
|
|
679
|
+
], 8, me),
|
|
680
|
+
o("g", { mask: `url(#kima-progress-mask-${v(E)})` }, [o("path", {
|
|
681
|
+
class: "wave-path",
|
|
682
|
+
d: Y().path,
|
|
683
|
+
stroke: "currentColor",
|
|
684
|
+
"stroke-width": F.value.strokeWidth,
|
|
685
|
+
fill: "none",
|
|
686
|
+
"stroke-linecap": "round"
|
|
687
|
+
}, null, 8, ye)], 8, ve),
|
|
688
|
+
o("g", { mask: `url(#kima-progress-mask-${v(E)}-inverse)` }, [o("rect", {
|
|
689
|
+
class: "track",
|
|
690
|
+
width: "100%",
|
|
691
|
+
height: F.value.strokeWidth,
|
|
692
|
+
fill: "currentColor"
|
|
693
|
+
}, null, 8, xe)], 8, be)
|
|
694
|
+
], 8, le)) : i("", !0)
|
|
695
|
+
], 4)),
|
|
696
|
+
O.value ? i("", !0) : (h(), a(n, { key: 1 }, [o("div", {
|
|
697
|
+
ref_key: "strokeProbe",
|
|
698
|
+
ref: st,
|
|
699
|
+
class: "stroke",
|
|
700
|
+
"aria-hidden": "true"
|
|
701
|
+
}, null, 512), o("div", {
|
|
702
|
+
ref_key: "amplitudeProbe",
|
|
703
|
+
ref: P,
|
|
704
|
+
class: "amplitude-and-wavelength",
|
|
705
|
+
"aria-hidden": "true"
|
|
706
|
+
}, null, 512)], 64)),
|
|
707
|
+
O.value && D.value === "flat" ? (h(), a(n, { key: 2 }, [A.value ? (h(), a("div", Se, [o("div", Ce, [o("div", we, [(h(), a("svg", {
|
|
708
|
+
class: "circle",
|
|
709
|
+
width: F.value.diameter,
|
|
710
|
+
height: F.value.diameter,
|
|
711
|
+
viewBox: Q.value.left.viewBox
|
|
712
|
+
}, [o("path", {
|
|
713
|
+
class: "active-track",
|
|
714
|
+
d: Q.value.left.path,
|
|
715
|
+
stroke: "currentColor",
|
|
716
|
+
"stroke-width": F.value.strokeWidth,
|
|
717
|
+
fill: "none",
|
|
718
|
+
"stroke-linecap": "round"
|
|
719
|
+
}, null, 8, Ee)], 8, Te))]), o("div", De, [(h(), a("svg", {
|
|
720
|
+
class: "circle",
|
|
721
|
+
width: F.value.diameter,
|
|
722
|
+
height: F.value.diameter,
|
|
723
|
+
viewBox: Q.value.right.viewBox
|
|
724
|
+
}, [o("path", {
|
|
725
|
+
class: "active-track",
|
|
726
|
+
d: Q.value.right.path,
|
|
727
|
+
stroke: "currentColor",
|
|
728
|
+
"stroke-width": F.value.strokeWidth,
|
|
729
|
+
fill: "none",
|
|
730
|
+
"stroke-linecap": "round"
|
|
731
|
+
}, null, 8, ke)], 8, Oe))])])])) : (h(), a("div", Ae, [(h(), a("svg", {
|
|
732
|
+
width: F.value.diameter,
|
|
733
|
+
height: F.value.diameter,
|
|
734
|
+
viewBox: Z.value.active.viewBox
|
|
735
|
+
}, [Z.value.degrees > 0 ? (h(), a("path", {
|
|
736
|
+
key: 0,
|
|
737
|
+
class: "active-track",
|
|
738
|
+
d: Z.value.active.path,
|
|
739
|
+
stroke: "currentColor",
|
|
740
|
+
"stroke-width": F.value.strokeWidth,
|
|
741
|
+
fill: "none",
|
|
742
|
+
"stroke-linecap": "round"
|
|
743
|
+
}, null, 8, Me)) : i("", !0), 360 - Z.value.degrees >= Z.value.minDegrees ? (h(), a("path", {
|
|
744
|
+
key: 1,
|
|
745
|
+
class: "track",
|
|
746
|
+
d: Z.value.inactive.path,
|
|
747
|
+
stroke: "currentColor",
|
|
748
|
+
"stroke-width": F.value.strokeWidth,
|
|
749
|
+
fill: "none",
|
|
750
|
+
"stroke-linecap": "round"
|
|
751
|
+
}, null, 8, Ne)) : i("", !0)], 8, je))])), o("div", Pe, [_(e.$slots, "default", {}, void 0, !0)])], 64)) : i("", !0),
|
|
752
|
+
O.value && D.value === "wavy" ? (h(), a(n, { key: 3 }, [A.value ? (h(), a("div", Fe, [(h(), a("svg", {
|
|
753
|
+
width: F.value.diameter,
|
|
754
|
+
height: F.value.diameter,
|
|
755
|
+
viewBox: `0 0 ${F.value.diameter} ${F.value.diameter}`
|
|
756
|
+
}, [o("path", {
|
|
757
|
+
class: "spinner active-track",
|
|
758
|
+
d: Ct.value.active.path,
|
|
759
|
+
pathLength: "100",
|
|
760
|
+
"stroke-dasharray": "10 90",
|
|
761
|
+
style: { "transform-origin": "center" },
|
|
762
|
+
stroke: "currentColor",
|
|
763
|
+
"stroke-width": F.value.strokeWidth,
|
|
764
|
+
"stroke-linecap": "round",
|
|
765
|
+
"stroke-linejoin": "round",
|
|
766
|
+
fill: "none"
|
|
767
|
+
}, null, 8, Le), o("path", {
|
|
768
|
+
class: "spinner track",
|
|
769
|
+
stroke: "currentColor",
|
|
770
|
+
"stroke-width": F.value.strokeWidth,
|
|
771
|
+
fill: "none",
|
|
772
|
+
"stroke-linecap": "round"
|
|
773
|
+
}, null, 8, Re)], 8, Ie))])) : (h(), a("svg", {
|
|
774
|
+
key: 1,
|
|
775
|
+
class: "progress",
|
|
776
|
+
viewBox: $.value.inactive.viewBox,
|
|
777
|
+
"aria-hidden": "true"
|
|
778
|
+
}, [$.value.degrees > 0 ? (h(), a("g", Be, [o("path", {
|
|
779
|
+
class: d({ wave: $.value.amplitude > 0 }),
|
|
780
|
+
style: f({ "--_circular-wave-duration": wt.value }),
|
|
781
|
+
d: $.value.active.path,
|
|
782
|
+
pathLength: "100",
|
|
783
|
+
"stroke-dasharray": `${$.value.progress * 100} ${(1 - $.value.progress) * 100}`,
|
|
784
|
+
stroke: "currentColor",
|
|
785
|
+
"stroke-width": F.value.strokeWidth,
|
|
786
|
+
"stroke-linecap": "round",
|
|
787
|
+
"stroke-linejoin": "round",
|
|
788
|
+
fill: "none"
|
|
789
|
+
}, null, 14, Ve)])) : i("", !0), 360 - $.value.degrees >= $.value.minDegrees ? (h(), a("path", {
|
|
790
|
+
key: 1,
|
|
791
|
+
class: "track",
|
|
792
|
+
d: $.value.inactive.path,
|
|
793
|
+
stroke: "currentColor",
|
|
794
|
+
"stroke-width": F.value.strokeWidth,
|
|
795
|
+
fill: "none",
|
|
796
|
+
"stroke-linecap": "round"
|
|
797
|
+
}, null, 8, He)) : i("", !0)], 8, ze)), o("div", Ue, [_(e.$slots, "default", {}, void 0, !0)])], 64)) : i("", !0),
|
|
798
|
+
O.value ? (h(), a(n, { key: 4 }, [o("div", {
|
|
799
|
+
ref_key: "diameterProbe",
|
|
800
|
+
ref: ct,
|
|
801
|
+
class: "diameter-and-stroke",
|
|
802
|
+
"aria-hidden": "true"
|
|
803
|
+
}, null, 512), o("div", {
|
|
804
|
+
ref_key: "amplitudeProbe",
|
|
805
|
+
ref: P,
|
|
806
|
+
class: "amplitude-and-wavelength",
|
|
807
|
+
"aria-hidden": "true"
|
|
808
|
+
}, null, 512)], 64)) : i("", !0)
|
|
809
|
+
], 16, x));
|
|
810
|
+
}
|
|
811
|
+
}), [["__scopeId", "data-v-2c836bfd"]]);
|
|
812
|
+
export { E as default };
|