@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,110 +0,0 @@
|
|
|
1
|
-
import e from "../components/core/button.ce.js";
|
|
2
|
-
import t from "../components/core/icon.ce.js";
|
|
3
|
-
import { collapseTransition as n } from "../utils/motion.js";
|
|
4
|
-
import r from "../components/navigation/link.ce.js";
|
|
5
|
-
import { navContains as i, navKey as a } from "../utils/shell.js";
|
|
6
|
-
import { Fragment as o, Transition as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, mergeProps as h, normalizeStyle as g, openBlock as _, renderList as v, resolveComponent as y, toDisplayString as b, unref as x, useId as S, vShow as C, withCtx as w, withDirectives as T } from "vue";
|
|
7
|
-
import { ArrowDown01Icon as E } from "@hugeicons/core-free-icons";
|
|
8
|
-
// src/internal/navigation-items.vue
|
|
9
|
-
var D = { class: "kima-shell-nav__list" }, O = ["data-active", "onKeydown"], k = { class: "kima-shell-nav__row" }, A = { key: 1 }, j = [
|
|
10
|
-
"id",
|
|
11
|
-
"inert",
|
|
12
|
-
"aria-hidden"
|
|
13
|
-
], M = {
|
|
14
|
-
__name: "navigation-items",
|
|
15
|
-
props: {
|
|
16
|
-
items: Array,
|
|
17
|
-
modelValue: String,
|
|
18
|
-
expanded: Array,
|
|
19
|
-
disabled: Boolean
|
|
20
|
-
},
|
|
21
|
-
emits: ["navigate", "expand"],
|
|
22
|
-
setup(M, { emit: N }) {
|
|
23
|
-
let P = M, F = N, I = `kima-nav-${S()}`, L = c(() => P.expanded || []);
|
|
24
|
-
function R(e) {
|
|
25
|
-
let t = a(e);
|
|
26
|
-
F("expand", L.value.includes(t) ? L.value.filter((e) => e !== t) : [...L.value, t]);
|
|
27
|
-
}
|
|
28
|
-
function z(e) {
|
|
29
|
-
return L.value.includes(a(e));
|
|
30
|
-
}
|
|
31
|
-
function B(e, t) {
|
|
32
|
-
if (e.target.closest("li") !== e.currentTarget || !t.children?.length || P.disabled || t.disabled) return;
|
|
33
|
-
let n = getComputedStyle(e.currentTarget).direction === "rtl", r = n ? "ArrowLeft" : "ArrowRight";
|
|
34
|
-
e.key === r && (e.preventDefault(), e.stopPropagation(), z(t) ? e.currentTarget.querySelector("ul a, ul button")?.focus() : R(t)), e.key === (n ? "ArrowRight" : "ArrowLeft") && z(t) && (e.preventDefault(), e.stopPropagation(), R(t), e.currentTarget.querySelector("button")?.focus());
|
|
35
|
-
}
|
|
36
|
-
return (c, S) => {
|
|
37
|
-
let N = y("navigation-items", !0);
|
|
38
|
-
return _(), d("ul", D, [(_(!0), d(o, null, v(M.items, (o, c) => (_(), d("li", {
|
|
39
|
-
key: x(a)(o),
|
|
40
|
-
"data-active": x(i)(o, M.modelValue) || void 0,
|
|
41
|
-
onKeydown: (e) => B(e, o)
|
|
42
|
-
}, [f("div", k, [o.href ? (_(), l(r, {
|
|
43
|
-
key: 0,
|
|
44
|
-
href: o.href,
|
|
45
|
-
target: o.target,
|
|
46
|
-
rel: o.rel,
|
|
47
|
-
disabled: M.disabled || o.disabled,
|
|
48
|
-
current: M.modelValue === x(a)(o),
|
|
49
|
-
underline: !1,
|
|
50
|
-
onNavigate: (e) => F("navigate", o, e)
|
|
51
|
-
}, {
|
|
52
|
-
default: w(() => [p(b(o.label), 1)]),
|
|
53
|
-
_: 2
|
|
54
|
-
}, 1032, [
|
|
55
|
-
"href",
|
|
56
|
-
"target",
|
|
57
|
-
"rel",
|
|
58
|
-
"disabled",
|
|
59
|
-
"current",
|
|
60
|
-
"onNavigate"
|
|
61
|
-
])) : (_(), d("span", A, b(o.label), 1)), o.children?.length ? (_(), l(e, {
|
|
62
|
-
key: 2,
|
|
63
|
-
variant: "text",
|
|
64
|
-
disabled: M.disabled || o.disabled,
|
|
65
|
-
"aria-label": `${z(o) ? "收起" : "展开"} ${o.label}`,
|
|
66
|
-
"aria-expanded": z(o),
|
|
67
|
-
"aria-controls": `${I}-${c}`,
|
|
68
|
-
onClick: (e) => R(o)
|
|
69
|
-
}, {
|
|
70
|
-
default: w(() => [m(t, {
|
|
71
|
-
icon: x(E),
|
|
72
|
-
size: 18,
|
|
73
|
-
"aria-hidden": "true",
|
|
74
|
-
style: g({ transform: z(o) ? "rotate(180deg)" : void 0 })
|
|
75
|
-
}, null, 8, ["icon", "style"])]),
|
|
76
|
-
_: 2
|
|
77
|
-
}, 1032, [
|
|
78
|
-
"disabled",
|
|
79
|
-
"aria-label",
|
|
80
|
-
"aria-expanded",
|
|
81
|
-
"aria-controls",
|
|
82
|
-
"onClick"
|
|
83
|
-
])) : u("", !0)]), o.children?.length ? (_(), l(s, h({
|
|
84
|
-
key: 0,
|
|
85
|
-
css: !1
|
|
86
|
-
}, { ref_for: !0 }, x(n)), {
|
|
87
|
-
default: w(() => [T(f("div", {
|
|
88
|
-
id: `${I}-${c}`,
|
|
89
|
-
inert: !z(o),
|
|
90
|
-
"aria-hidden": !z(o) || void 0
|
|
91
|
-
}, [m(N, {
|
|
92
|
-
items: o.children,
|
|
93
|
-
"model-value": M.modelValue,
|
|
94
|
-
expanded: M.expanded,
|
|
95
|
-
disabled: M.disabled || o.disabled,
|
|
96
|
-
onNavigate: (e, t) => F("navigate", e, t),
|
|
97
|
-
onExpand: S[0] ||= (e) => F("expand", e)
|
|
98
|
-
}, null, 8, [
|
|
99
|
-
"items",
|
|
100
|
-
"model-value",
|
|
101
|
-
"expanded",
|
|
102
|
-
"disabled",
|
|
103
|
-
"onNavigate"
|
|
104
|
-
])], 8, j), [[C, z(o)]])]),
|
|
105
|
-
_: 2
|
|
106
|
-
}, 1040)) : u("", !0)], 40, O))), 128))]);
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
export { M as default };
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import e from "highlight.js/lib/core";
|
|
2
|
-
import t from "highlight.js/lib/languages/bash";
|
|
3
|
-
import n from "highlight.js/lib/languages/c";
|
|
4
|
-
import r from "highlight.js/lib/languages/cpp";
|
|
5
|
-
import i from "highlight.js/lib/languages/csharp";
|
|
6
|
-
import a from "highlight.js/lib/languages/css";
|
|
7
|
-
import o from "highlight.js/lib/languages/diff";
|
|
8
|
-
import s from "highlight.js/lib/languages/dockerfile";
|
|
9
|
-
import c from "highlight.js/lib/languages/go";
|
|
10
|
-
import l from "highlight.js/lib/languages/graphql";
|
|
11
|
-
import u from "highlight.js/lib/languages/ini";
|
|
12
|
-
import d from "highlight.js/lib/languages/java";
|
|
13
|
-
import f from "highlight.js/lib/languages/javascript";
|
|
14
|
-
import p from "highlight.js/lib/languages/json";
|
|
15
|
-
import m from "highlight.js/lib/languages/kotlin";
|
|
16
|
-
import h from "highlight.js/lib/languages/less";
|
|
17
|
-
import g from "highlight.js/lib/languages/lua";
|
|
18
|
-
import _ from "highlight.js/lib/languages/makefile";
|
|
19
|
-
import v from "highlight.js/lib/languages/markdown";
|
|
20
|
-
import y from "highlight.js/lib/languages/objectivec";
|
|
21
|
-
import b from "highlight.js/lib/languages/perl";
|
|
22
|
-
import x from "highlight.js/lib/languages/php";
|
|
23
|
-
import S from "highlight.js/lib/languages/plaintext";
|
|
24
|
-
import C from "highlight.js/lib/languages/python";
|
|
25
|
-
import w from "highlight.js/lib/languages/r";
|
|
26
|
-
import T from "highlight.js/lib/languages/ruby";
|
|
27
|
-
import E from "highlight.js/lib/languages/rust";
|
|
28
|
-
import D from "highlight.js/lib/languages/scss";
|
|
29
|
-
import O from "highlight.js/lib/languages/shell";
|
|
30
|
-
import k from "highlight.js/lib/languages/sql";
|
|
31
|
-
import A from "highlight.js/lib/languages/swift";
|
|
32
|
-
import j from "highlight.js/lib/languages/typescript";
|
|
33
|
-
import M from "highlight.js/lib/languages/vbnet";
|
|
34
|
-
import N from "highlight.js/lib/languages/wasm";
|
|
35
|
-
import P from "highlight.js/lib/languages/xml";
|
|
36
|
-
import F from "highlight.js/lib/languages/yaml";
|
|
37
|
-
// src/utils/code-highlight.js
|
|
38
|
-
var I = {
|
|
39
|
-
bash: t,
|
|
40
|
-
c: n,
|
|
41
|
-
cpp: r,
|
|
42
|
-
csharp: i,
|
|
43
|
-
css: a,
|
|
44
|
-
diff: o,
|
|
45
|
-
dockerfile: s,
|
|
46
|
-
go: c,
|
|
47
|
-
graphql: l,
|
|
48
|
-
ini: u,
|
|
49
|
-
java: d,
|
|
50
|
-
javascript: f,
|
|
51
|
-
json: p,
|
|
52
|
-
kotlin: m,
|
|
53
|
-
less: h,
|
|
54
|
-
lua: g,
|
|
55
|
-
makefile: _,
|
|
56
|
-
markdown: v,
|
|
57
|
-
objectivec: y,
|
|
58
|
-
perl: b,
|
|
59
|
-
php: x,
|
|
60
|
-
plaintext: S,
|
|
61
|
-
python: C,
|
|
62
|
-
r: w,
|
|
63
|
-
ruby: T,
|
|
64
|
-
rust: E,
|
|
65
|
-
scss: D,
|
|
66
|
-
shell: O,
|
|
67
|
-
sql: k,
|
|
68
|
-
swift: A,
|
|
69
|
-
typescript: j,
|
|
70
|
-
vbnet: M,
|
|
71
|
-
wasm: N,
|
|
72
|
-
xml: P,
|
|
73
|
-
yaml: F
|
|
74
|
-
}, L = e.newInstance();
|
|
75
|
-
for (let [e, t] of Object.entries(I)) L.registerLanguage(e, t);
|
|
76
|
-
for (let [e, t] of Object.entries({
|
|
77
|
-
xml: [
|
|
78
|
-
"html",
|
|
79
|
-
"vue",
|
|
80
|
-
"svg",
|
|
81
|
-
"svelte",
|
|
82
|
-
"xhtml",
|
|
83
|
-
"plist"
|
|
84
|
-
],
|
|
85
|
-
bash: [
|
|
86
|
-
"sh",
|
|
87
|
-
"zsh",
|
|
88
|
-
"console",
|
|
89
|
-
"shellsession"
|
|
90
|
-
],
|
|
91
|
-
javascript: [
|
|
92
|
-
"js",
|
|
93
|
-
"mjs",
|
|
94
|
-
"cjs"
|
|
95
|
-
],
|
|
96
|
-
typescript: ["ts"],
|
|
97
|
-
json: ["jsonc", "json5"],
|
|
98
|
-
yaml: ["yml"],
|
|
99
|
-
markdown: ["md"],
|
|
100
|
-
python: ["py"],
|
|
101
|
-
ruby: ["rb"],
|
|
102
|
-
rust: ["rs"],
|
|
103
|
-
go: ["golang"],
|
|
104
|
-
csharp: ["cs"],
|
|
105
|
-
kotlin: ["kt"],
|
|
106
|
-
objectivec: ["objc", "obj-c"],
|
|
107
|
-
ini: ["toml", "properties"],
|
|
108
|
-
dockerfile: ["docker"],
|
|
109
|
-
plaintext: ["text", "txt"],
|
|
110
|
-
diff: ["patch"],
|
|
111
|
-
makefile: ["make", "mk"],
|
|
112
|
-
php: [
|
|
113
|
-
"php3",
|
|
114
|
-
"php4",
|
|
115
|
-
"php5"
|
|
116
|
-
],
|
|
117
|
-
sql: ["mysql", "pgsql"],
|
|
118
|
-
vbnet: ["vb"]
|
|
119
|
-
})) L.getLanguage(e) && L.registerAliases(t, { languageName: e });
|
|
120
|
-
var R = Object.keys(I);
|
|
121
|
-
function z(e, t) {
|
|
122
|
-
return !e || !t ? !1 : (L.registerLanguage(e, t), !0);
|
|
123
|
-
}
|
|
124
|
-
function B(e) {
|
|
125
|
-
return !!e && !!L.getLanguage(String(e).toLowerCase());
|
|
126
|
-
}
|
|
127
|
-
function V(e) {
|
|
128
|
-
return e.replace(/[&<>]/g, (e) => "&" + {
|
|
129
|
-
"&": "amp;",
|
|
130
|
-
"<": "lt;",
|
|
131
|
-
">": "gt;"
|
|
132
|
-
}[e]);
|
|
133
|
-
}
|
|
134
|
-
function H(e, t) {
|
|
135
|
-
let n = String(t || "").toLowerCase(), r = B(n) ? L.highlight(e, {
|
|
136
|
-
language: n,
|
|
137
|
-
ignoreIllegals: !0
|
|
138
|
-
}).value : V(e), i = [], a = [], o = "";
|
|
139
|
-
for (let e of r.split(/(<span\b[^>]*>|<\/span>|\n)/)) e === "\n" ? (a.push(o + "</span>".repeat(i.length)), o = i.join("")) : (o += e, e.startsWith("<span") ? i.push(e) : e === "</span>" && i.pop());
|
|
140
|
-
return a.push(o + "</span>".repeat(i.length)), a;
|
|
141
|
-
}
|
|
142
|
-
export { R as codeLanguages, B as hasCodeLanguage, H as highlightCodeLines, z as registerCodeLanguage };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { toRaw as e } from "vue";
|
|
2
|
-
// src/utils/collection.js
|
|
3
|
-
function t(t) {
|
|
4
|
-
let n = /* @__PURE__ */ new WeakMap(), r = 0;
|
|
5
|
-
return function(i, a) {
|
|
6
|
-
let o;
|
|
7
|
-
if (typeof i == "object" && i) {
|
|
8
|
-
let t = e(i);
|
|
9
|
-
t.id == null ? (n.has(t) || n.set(t, ++r), o = `object:${n.get(t)}`) : o = `id:${typeof t.id}:${t.id}`;
|
|
10
|
-
} else o = `value:${typeof i}:${i}`;
|
|
11
|
-
let s = t().slice(0, a).filter((t) => Object.is(e(t), e(i))).length;
|
|
12
|
-
return `${o}:${s}`;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export { t as createCollectionKey };
|
package/dist/vue/utils/config.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { computed as e, inject as t, onBeforeUnmount as n, onMounted as r, ref as i } from "vue";
|
|
2
|
-
// src/utils/config.js
|
|
3
|
-
var a = Symbol.for("kima.config"), o = Object.freeze({
|
|
4
|
-
locale: "zh-CN",
|
|
5
|
-
direction: "ltr",
|
|
6
|
-
reducedMotion: "system",
|
|
7
|
-
theme: "dark"
|
|
8
|
-
});
|
|
9
|
-
function s(s) {
|
|
10
|
-
let c = t(a, null), l = i({}), u;
|
|
11
|
-
return r(() => {
|
|
12
|
-
function e() {
|
|
13
|
-
let e = s.value?.$el || s.value, t = {};
|
|
14
|
-
for (let n = e?.parentElement; n; n = n.parentElement) if (n.hasAttribute("data-kima-config")) for (let e of [
|
|
15
|
-
"locale",
|
|
16
|
-
"direction",
|
|
17
|
-
"reducedMotion",
|
|
18
|
-
"theme",
|
|
19
|
-
"seed",
|
|
20
|
-
"variant"
|
|
21
|
-
]) {
|
|
22
|
-
let r = `data-kima-${e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`)}`;
|
|
23
|
-
t[e] == null && n.hasAttribute(r) && (t[e] = n.getAttribute(r));
|
|
24
|
-
}
|
|
25
|
-
l.value = t;
|
|
26
|
-
}
|
|
27
|
-
let t = s.value?.$el || s.value;
|
|
28
|
-
u = new MutationObserver(e), u.observe(t.ownerDocument.documentElement, {
|
|
29
|
-
attributes: !0,
|
|
30
|
-
subtree: !0,
|
|
31
|
-
childList: !0,
|
|
32
|
-
attributeFilter: [
|
|
33
|
-
"data-kima-locale",
|
|
34
|
-
"data-kima-direction",
|
|
35
|
-
"data-kima-reduced-motion",
|
|
36
|
-
"data-kima-theme",
|
|
37
|
-
"data-kima-seed",
|
|
38
|
-
"data-kima-variant"
|
|
39
|
-
]
|
|
40
|
-
}), e();
|
|
41
|
-
}), n(() => u?.disconnect()), e(() => ({
|
|
42
|
-
...o,
|
|
43
|
-
...c?.value || {},
|
|
44
|
-
...l.value
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
47
|
-
export { o as defaultConfig, a as kimaConfigKey, s as useKimaConfig };
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { onBeforeUnmount as e, onMounted as t, ref as n, watch as r } from "vue";
|
|
2
|
-
import i from "xss";
|
|
3
|
-
// src/utils/content.js
|
|
4
|
-
var { FilterXSS: a, escapeAttrValue: o } = i;
|
|
5
|
-
function s(e) {
|
|
6
|
-
let t = String(e ?? "").trim();
|
|
7
|
-
return !t || /[\u0000-\u0020\u007f\\]/.test(t) ? !1 : /^(?:https?:\/\/|mailto:|tel:|\/(?!\/)|#)/i.test(t);
|
|
8
|
-
}
|
|
9
|
-
var c = new a({
|
|
10
|
-
whiteList: {
|
|
11
|
-
p: [],
|
|
12
|
-
br: [],
|
|
13
|
-
strong: [],
|
|
14
|
-
b: [],
|
|
15
|
-
em: [],
|
|
16
|
-
i: [],
|
|
17
|
-
s: [],
|
|
18
|
-
h1: [],
|
|
19
|
-
h2: [],
|
|
20
|
-
h3: [],
|
|
21
|
-
ul: [],
|
|
22
|
-
ol: ["start"],
|
|
23
|
-
li: [],
|
|
24
|
-
blockquote: [],
|
|
25
|
-
pre: [],
|
|
26
|
-
code: [],
|
|
27
|
-
hr: [],
|
|
28
|
-
a: [
|
|
29
|
-
"href",
|
|
30
|
-
"title",
|
|
31
|
-
"rel"
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
stripIgnoreTag: !0,
|
|
35
|
-
stripIgnoreTagBody: [
|
|
36
|
-
"script",
|
|
37
|
-
"style",
|
|
38
|
-
"iframe",
|
|
39
|
-
"object",
|
|
40
|
-
"svg",
|
|
41
|
-
"math"
|
|
42
|
-
],
|
|
43
|
-
css: !1,
|
|
44
|
-
safeAttrValue(e, t, n) {
|
|
45
|
-
return e === "a" && t === "href" ? s(n) ? o(n) : "" : e === "a" && t === "rel" ? "noopener noreferrer nofollow" : e === "ol" && t === "start" ? /^-?\d+$/.test(n) ? n : "" : o(n);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
function l(e) {
|
|
49
|
-
return c.process(String(e ?? ""));
|
|
50
|
-
}
|
|
51
|
-
function u(e) {
|
|
52
|
-
let { from: t, to: n } = e.state.selection;
|
|
53
|
-
return {
|
|
54
|
-
from: t,
|
|
55
|
-
to: n,
|
|
56
|
-
empty: t === n,
|
|
57
|
-
text: e.state.doc.textBetween(t, n, "\n")
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function d(i, a, o, s, c) {
|
|
61
|
-
let l = n(s(i.modelValue)), u, d;
|
|
62
|
-
r(() => i.modelValue, (e) => {
|
|
63
|
-
l.value = s(e);
|
|
64
|
-
});
|
|
65
|
-
function f(e) {
|
|
66
|
-
i.disabled || i.readonly || (l.value = s(e), a("update:modelValue", l.value), a("change", l.value));
|
|
67
|
-
}
|
|
68
|
-
function p(e) {
|
|
69
|
-
let t = o.value?.querySelector("textarea")?.form;
|
|
70
|
-
e.target !== t || e.defaultPrevented || queueMicrotask(() => {
|
|
71
|
-
!e.defaultPrevented && o.value && (l.value = u, c?.(u), a("update:modelValue", l.value));
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
return t(() => {
|
|
75
|
-
u = l.value, d = o.value?.ownerDocument, d?.addEventListener("reset", p);
|
|
76
|
-
let e = o.value?.querySelector("textarea");
|
|
77
|
-
e && (e.defaultValue = l.value);
|
|
78
|
-
}), e(() => d?.removeEventListener("reset", p)), {
|
|
79
|
-
local: l,
|
|
80
|
-
update: f
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
export { u as contentSelection, s as safeContentUrl, l as sanitizeContent, d as useContentState };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Alert02Icon as e, AlertCircleIcon as t, CheckmarkCircle02Icon as n, InformationCircleIcon as r } from "@hugeicons/core-free-icons";
|
|
2
|
-
// src/utils/display-status.js
|
|
3
|
-
var i = {
|
|
4
|
-
neutral: {
|
|
5
|
-
label: "提示",
|
|
6
|
-
icon: r
|
|
7
|
-
},
|
|
8
|
-
info: {
|
|
9
|
-
label: "信息",
|
|
10
|
-
icon: r
|
|
11
|
-
},
|
|
12
|
-
success: {
|
|
13
|
-
label: "成功",
|
|
14
|
-
icon: n
|
|
15
|
-
},
|
|
16
|
-
warning: {
|
|
17
|
-
label: "警告",
|
|
18
|
-
icon: e
|
|
19
|
-
},
|
|
20
|
-
danger: {
|
|
21
|
-
label: "错误",
|
|
22
|
-
icon: t
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
function a(e) {
|
|
26
|
-
return {
|
|
27
|
-
variant: Object.hasOwn(i, e) ? e : "neutral",
|
|
28
|
-
...i[e] || i.neutral
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export { a as displayStatus };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
// src/utils/foundation.js
|
|
2
|
-
var e = [
|
|
3
|
-
"base",
|
|
4
|
-
"sm",
|
|
5
|
-
"md",
|
|
6
|
-
"lg"
|
|
7
|
-
], t = [
|
|
8
|
-
0,
|
|
9
|
-
1,
|
|
10
|
-
2,
|
|
11
|
-
3,
|
|
12
|
-
4,
|
|
13
|
-
5,
|
|
14
|
-
6,
|
|
15
|
-
8,
|
|
16
|
-
10,
|
|
17
|
-
12,
|
|
18
|
-
16
|
|
19
|
-
];
|
|
20
|
-
function n(e, t, n) {
|
|
21
|
-
return t.includes(e) ? e : n;
|
|
22
|
-
}
|
|
23
|
-
function r(e, n = 4) {
|
|
24
|
-
let r = Number(e);
|
|
25
|
-
return `var(--kima-space-${t.includes(r) ? r : n})`;
|
|
26
|
-
}
|
|
27
|
-
function i(t, n, r) {
|
|
28
|
-
let i = t && typeof t == "object" && !Array.isArray(t) ? t : { base: t }, a = n(i.base ?? r);
|
|
29
|
-
return e.map((e) => (i[e] !== void 0 && (a = n(i[e])), a));
|
|
30
|
-
}
|
|
31
|
-
function a(t, n, r, a, o) {
|
|
32
|
-
return Object.fromEntries(i(r, a, o).map((r, i) => [`--kima-${t}-${n}-${e[i]}`, r]));
|
|
33
|
-
}
|
|
34
|
-
function o(e) {
|
|
35
|
-
let t = Number(e);
|
|
36
|
-
return `repeat(${Number.isInteger(t) && t >= 1 && t <= 24 ? t : 1}, minmax(0, 1fr))`;
|
|
37
|
-
}
|
|
38
|
-
function s(e) {
|
|
39
|
-
if (!Array.isArray(e) || !e.length || e.length > 24) return {
|
|
40
|
-
template: "none",
|
|
41
|
-
names: [],
|
|
42
|
-
columns: 0
|
|
43
|
-
};
|
|
44
|
-
let t = e.map((e) => typeof e == "string" ? e.trim().split(/\s+/) : []), n = t[0].length;
|
|
45
|
-
if (!n || t.some((e) => e.length !== n || e.some((e) => !/^(?:[a-zA-Z_][\w-]*|\.)$/.test(e)))) return {
|
|
46
|
-
template: "none",
|
|
47
|
-
names: [],
|
|
48
|
-
columns: 0
|
|
49
|
-
};
|
|
50
|
-
let r = [...new Set(t.flat().filter((e) => e !== "."))];
|
|
51
|
-
for (let e of r) {
|
|
52
|
-
let n = t.flatMap((t, n) => t.flatMap((t, r) => t === e ? [[n, r]] : [])), r = n.map((e) => e[0]), i = n.map((e) => e[1]);
|
|
53
|
-
for (let n = Math.min(...r); n <= Math.max(...r); n++) for (let r = Math.min(...i); r <= Math.max(...i); r++) if (t[n][r] !== e) return {
|
|
54
|
-
template: "none",
|
|
55
|
-
names: [],
|
|
56
|
-
columns: 0
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
template: t.map((e) => `"${e.join(" ")}"`).join(" "),
|
|
61
|
-
names: r,
|
|
62
|
-
columns: n
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
export { n as choice, o as columnTemplate, e as foundationBreakpoints, s as gridAreas, a as layoutVariables, i as responsive, r as space };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// src/utils/local-date.js
|
|
2
|
-
var e = (e) => String(e).padStart(2, "0");
|
|
3
|
-
function t(t) {
|
|
4
|
-
return `${String(t.getFullYear()).padStart(4, "0")}-${e(t.getMonth() + 1)}-${e(t.getDate())}`;
|
|
5
|
-
}
|
|
6
|
-
function n(e, t, n = 1) {
|
|
7
|
-
let r = new Date(2e3, 0, 1, 12);
|
|
8
|
-
return r.setFullYear(e, t, n), r;
|
|
9
|
-
}
|
|
10
|
-
function r(e) {
|
|
11
|
-
if (typeof e != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(e)) return null;
|
|
12
|
-
let [r, i, a] = e.split("-").map(Number);
|
|
13
|
-
if (r < 1 || r > 9999 || i < 1 || i > 12 || a < 1 || a > 31) return null;
|
|
14
|
-
let o = n(r, i - 1, a);
|
|
15
|
-
return t(o) === e ? o : null;
|
|
16
|
-
}
|
|
17
|
-
function i(e) {
|
|
18
|
-
return r(e) ? e : null;
|
|
19
|
-
}
|
|
20
|
-
function a() {
|
|
21
|
-
return t(/* @__PURE__ */ new Date());
|
|
22
|
-
}
|
|
23
|
-
function o(e, n) {
|
|
24
|
-
let i = r(e);
|
|
25
|
-
return i ? (i.setDate(i.getDate() + n), t(i)) : e;
|
|
26
|
-
}
|
|
27
|
-
function s(e, i) {
|
|
28
|
-
let a = r(e);
|
|
29
|
-
if (!a) return e;
|
|
30
|
-
let o = a.getDate(), s = n(a.getFullYear(), a.getMonth() + i), c = n(s.getFullYear(), s.getMonth() + 1, 0).getDate();
|
|
31
|
-
return t(n(s.getFullYear(), s.getMonth(), Math.min(o, c)));
|
|
32
|
-
}
|
|
33
|
-
function c(e) {
|
|
34
|
-
return `${e.slice(0, 7)}-01`;
|
|
35
|
-
}
|
|
36
|
-
function l(e, t, n) {
|
|
37
|
-
let i = r(e);
|
|
38
|
-
if (!i) return e || "";
|
|
39
|
-
try {
|
|
40
|
-
return new Intl.DateTimeFormat(t || "zh-CN", n).format(i);
|
|
41
|
-
} catch {
|
|
42
|
-
return new Intl.DateTimeFormat("zh-CN", n).format(i);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function u(e) {
|
|
46
|
-
return typeof e == "string" && /^([01]\d|2[0-3]):[0-5]\d$/.test(e) ? Number(e.slice(0, 2)) * 60 + Number(e.slice(3)) : null;
|
|
47
|
-
}
|
|
48
|
-
export { n as civilDate, t as dateKey, l as formatDate, c as monthKey, i as normalizeDate, e as pad, r as parseDate, o as shiftDay, s as shiftMonth, u as timeMinutes, a as todayKey };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// src/utils/notifications.js
|
|
2
|
-
function e({ capacity: e = 3 } = {}) {
|
|
3
|
-
let t = [], n = 0, r = a(e), i = /* @__PURE__ */ new Set();
|
|
4
|
-
function a(e) {
|
|
5
|
-
return Math.max(0, Math.floor(Number(e) || 0));
|
|
6
|
-
}
|
|
7
|
-
function o() {
|
|
8
|
-
return t.map((e) => ({ ...e }));
|
|
9
|
-
}
|
|
10
|
-
function s() {
|
|
11
|
-
let e = o();
|
|
12
|
-
for (let t of [...i]) t(e);
|
|
13
|
-
}
|
|
14
|
-
function c(e) {
|
|
15
|
-
let i = typeof e == "string" ? { message: e } : { ...e }, a = t.find((e) => i.dedupeKey != null && e.dedupeKey === i.dedupeKey || i.id != null && e.id === i.id), o = a?.id ?? i.id ?? `kima-notice-${++n}`;
|
|
16
|
-
return t = a ? t.map((e) => e === a ? {
|
|
17
|
-
...e,
|
|
18
|
-
...i,
|
|
19
|
-
id: o,
|
|
20
|
-
open: !0
|
|
21
|
-
} : e) : [...t, {
|
|
22
|
-
...i,
|
|
23
|
-
id: o,
|
|
24
|
-
open: !0
|
|
25
|
-
}], t = r ? t.slice(-r) : [], s(), o;
|
|
26
|
-
}
|
|
27
|
-
function l(e, n) {
|
|
28
|
-
return t.some((t) => t.id === e) ? (t = t.map((t) => t.id === e ? {
|
|
29
|
-
...t,
|
|
30
|
-
...n,
|
|
31
|
-
id: e
|
|
32
|
-
} : t), s(), !0) : !1;
|
|
33
|
-
}
|
|
34
|
-
function u(e) {
|
|
35
|
-
let n = t.filter((t) => t.id !== e);
|
|
36
|
-
return n.length !== t.length && (t = n, s(), !0);
|
|
37
|
-
}
|
|
38
|
-
function d() {
|
|
39
|
-
t = [], s();
|
|
40
|
-
}
|
|
41
|
-
function f(e) {
|
|
42
|
-
return i.add(e), e(o()), () => i.delete(e);
|
|
43
|
-
}
|
|
44
|
-
function p(e) {
|
|
45
|
-
r = a(e), t = r ? t.slice(-r) : [], s();
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
push: c,
|
|
49
|
-
update: l,
|
|
50
|
-
dismiss: u,
|
|
51
|
-
clear: d,
|
|
52
|
-
subscribe: f,
|
|
53
|
-
setCapacity: p,
|
|
54
|
-
snapshot: o,
|
|
55
|
-
get capacity() {
|
|
56
|
-
return r;
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
export { e as createNotifications };
|
package/dist/vue/utils/qr.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import e from "qrcode-generator";
|
|
2
|
-
// src/utils/qr.js
|
|
3
|
-
e.stringToBytes = (e) => Array.from(new TextEncoder().encode(e));
|
|
4
|
-
function t(t, n = "M") {
|
|
5
|
-
let r = e(0, [
|
|
6
|
-
"L",
|
|
7
|
-
"M",
|
|
8
|
-
"Q",
|
|
9
|
-
"H"
|
|
10
|
-
].includes(n) ? n : "M");
|
|
11
|
-
r.addData(String(t), "Byte"), r.make();
|
|
12
|
-
let i = r.getModuleCount(), a = Array.from({ length: i }, (e, t) => Array.from({ length: i }, (e, n) => r.isDark(t, n)));
|
|
13
|
-
return {
|
|
14
|
-
size: i,
|
|
15
|
-
modules: a,
|
|
16
|
-
path: a.flatMap((e, t) => e.flatMap((e, n) => e ? [`M${n + 4} ${t + 4}h1v1h-1z`] : [])).join(""),
|
|
17
|
-
viewBox: `0 0 ${i + 8} ${i + 8}`
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export { t as encodeQR };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance as e, useHost as t } from "vue";
|
|
2
|
-
// src/utils/scoped-slots.js
|
|
3
|
-
function n() {
|
|
4
|
-
let n = !!e()?.ce, r = n ? t() : null, i = r ? Object.values(r._slots || {}).flat() : [];
|
|
5
|
-
if (r && !r.__kimaScopedOutlets) {
|
|
6
|
-
r.__kimaScopedOutlets = !0;
|
|
7
|
-
let e = r._getSlots;
|
|
8
|
-
r._getSlots = function() {
|
|
9
|
-
return e.call(this).filter((e) => {
|
|
10
|
-
for (let t = e.parentElement; t; t = t.parentElement) if (t.localName.startsWith("kima-")) return t === r;
|
|
11
|
-
return !1;
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
return {
|
|
16
|
-
native: n,
|
|
17
|
-
vOutlet: { mounted(e, t) {
|
|
18
|
-
for (let n of i) (n.nodeType === 1 && n.getAttribute("slot") || "default") === (t.value || "default") && e.append(n);
|
|
19
|
-
} }
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export { n as useScopedSlots };
|