@kernel4632/kima 0.12.3 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD_PARTY_NOTICES.txt +100 -1712
- package/dist/components/containment/list-item.ce.vue_vue_type_style_index_0_scoped_fd20973a_lang.css +1 -0
- package/dist/components/containment/snackbar.ce.vue_vue_type_style_index_0_scoped_3c62e4c7_lang.css +1 -0
- package/dist/components/core/badge.ce.vue_vue_type_style_index_0_scoped_9ccfbe76_lang.css +1 -0
- package/dist/components/core/button.ce.vue_vue_type_style_index_0_scoped_1c004601_lang.css +1 -0
- package/dist/components/core/checkbox.ce.vue_vue_type_style_index_0_scoped_cc2716e6_lang.css +1 -0
- package/dist/components/core/combobox.ce.vue_vue_type_style_index_0_scoped_ba7220f2_lang.css +1 -0
- package/dist/components/core/dialog.ce.vue_vue_type_style_index_0_scoped_09f96946_lang.css +1 -0
- package/dist/components/core/divider.ce.vue_vue_type_style_index_0_scoped_a401c826_lang.css +1 -0
- package/dist/components/core/fab-menu.ce.vue_vue_type_style_index_0_scoped_7c25d968_lang.css +1 -0
- package/dist/components/core/fab.ce.vue_vue_type_style_index_0_scoped_4e1de7c1_lang.css +1 -0
- package/dist/components/core/icon.ce.vue_vue_type_style_index_0_scoped_76c47d5b_lang.css +1 -0
- package/dist/components/core/loading-indicator.ce.vue_vue_type_style_index_0_scoped_6c314bb6_lang.css +1 -0
- package/dist/components/core/menu.ce.vue_vue_type_style_index_0_scoped_16ed5f4d_lang.css +1 -0
- package/dist/components/core/morph-field.ce.vue_vue_type_style_index_0_scoped_ac757a01_lang.css +1 -0
- package/dist/components/core/progress.ce.vue_vue_type_style_index_0_scoped_2c836bfd_lang.css +1 -0
- package/dist/components/core/select.ce.vue_vue_type_style_index_0_scoped_bf4d9de4_lang.css +1 -0
- package/dist/components/core/shape.ce.vue_vue_type_style_index_0_scoped_5db1cc46_lang.css +1 -0
- package/dist/components/core/slider.ce.vue_vue_type_style_index_0_scoped_3cadd726_lang.css +1 -0
- package/dist/components/core/split-button.ce.vue_vue_type_style_index_0_scoped_a8ef75a5_lang.css +1 -0
- package/dist/components/core/switch.ce.vue_vue_type_style_index_0_scoped_5b126252_lang.css +1 -0
- package/dist/components/core/tabs.ce.vue_vue_type_style_index_0_scoped_f0ece5c6_lang.css +1 -0
- package/dist/components/core/text-field.ce.vue_vue_type_style_index_0_scoped_89a58b79_lang.css +1 -0
- package/dist/components/core/tooltip.ce.vue_vue_type_style_index_0_scoped_4fd8d52e_lang.css +1 -0
- package/dist/components/core/tree.ce.vue_vue_type_style_index_0_scoped_d1e95486_lang.css +1 -0
- package/dist/components/data/table.ce.vue_vue_type_style_index_0_scoped_de17ceaa_lang.css +1 -0
- package/dist/components/display/image.ce.vue_vue_type_style_index_0_scoped_08ac96f2_lang.css +1 -0
- package/dist/components/display/image.ce.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/components/display/skeleton.ce.vue_vue_type_style_index_0_scoped_841c5f0b_lang.css +1 -0
- package/dist/components/input/radio-group.ce.vue_vue_type_style_index_0_scoped_554d6257_lang.css +1 -0
- package/dist/components/input/textarea.ce.vue_vue_type_style_index_0_scoped_f6be6515_lang.css +1 -0
- package/dist/components/interaction/popover.ce.vue_vue_type_style_index_0_scoped_4e67e579_lang.css +1 -0
- package/dist/components/navigation/breadcrumb-item.ce.vue_vue_type_style_index_0_scoped_4c179b2f_lang.css +1 -0
- package/dist/components/navigation/breadcrumb-item.ce.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/components/navigation/breadcrumb.ce.vue_vue_type_style_index_0_scoped_f0e04345_lang.css +1 -0
- package/dist/components/navigation/collapsible.ce.vue_vue_type_style_index_0_scoped_eda74ecc_lang.css +1 -0
- package/dist/components/navigation/nav-item.ce.vue_vue_type_style_index_0_scoped_9f22b45d_lang.css +1 -0
- package/dist/kima-elements-core.js +38352 -33892
- package/dist/kima-elements.js +48135 -117475
- package/dist/kima.js +36 -139
- package/dist/style.css +37 -237
- package/dist/styles/_tokens.css +1 -1
- package/dist/styles/badge.css +1 -1
- package/dist/styles/breadcrumb-item.css +4 -0
- package/dist/styles/breadcrumb.css +1 -2
- package/dist/styles/button.css +1 -1
- package/dist/styles/checkbox.css +2 -2
- package/dist/styles/collapsible.css +2 -2
- package/dist/styles/combobox.css +2 -2
- package/dist/styles/core.css +36 -43
- package/dist/styles/dialog.css +3 -3
- package/dist/styles/divider.css +1 -1
- package/dist/styles/fab-menu.css +3 -0
- package/dist/styles/fab.css +2 -0
- package/dist/styles/icon.css +1 -1
- package/dist/styles/image.css +3 -3
- package/dist/styles/list-item.css +2 -0
- package/dist/styles/loading-indicator.css +2 -0
- package/dist/styles/menu.css +2 -2
- package/dist/styles/morph-field.css +3 -0
- package/dist/styles/nav-item.css +3 -0
- package/dist/styles/popover.css +2 -2
- package/dist/styles/progress.css +1 -1
- package/dist/styles/radio-group.css +2 -2
- package/dist/styles/select.css +2 -2
- package/dist/styles/shape.css +2 -0
- package/dist/styles/skeleton.css +1 -1
- package/dist/styles/slider.css +1 -1
- package/dist/styles/snackbar.css +3 -0
- package/dist/styles/split-button.css +3 -0
- package/dist/styles/switch.css +1 -2
- package/dist/styles/table.css +2 -2
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/text-field.css +2 -2
- package/dist/styles/textarea.css +1 -2
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/tree.css +2 -2
- package/dist/vue/components/containment/list-item.ce.js +73 -0
- package/dist/vue/components/containment/snackbar.ce.js +203 -0
- package/dist/vue/components/core/badge.ce.js +40 -27
- package/dist/vue/components/core/button.ce.js +51 -28
- package/dist/vue/components/core/checkbox.ce.js +65 -50
- package/dist/vue/components/core/combobox.ce.js +287 -227
- package/dist/vue/components/core/dialog.ce.js +52 -41
- package/dist/vue/components/core/divider.ce.js +1 -1
- package/dist/vue/components/core/fab-menu.ce.js +112 -0
- package/dist/vue/components/core/fab.ce.js +63 -0
- package/dist/vue/components/core/icon.ce.js +2 -3
- package/dist/vue/components/core/loading-indicator.ce.js +86 -0
- package/dist/vue/components/core/menu.ce.js +140 -103
- package/dist/vue/components/core/morph-field.ce.js +139 -0
- package/dist/vue/components/core/progress.ce.js +787 -24
- package/dist/vue/components/core/select.ce.js +260 -219
- package/dist/vue/components/core/shape.ce.js +19 -0
- package/dist/vue/components/core/slider.ce.js +389 -77
- package/dist/vue/components/core/split-button.ce.js +156 -0
- package/dist/vue/components/core/switch.ce.js +59 -65
- package/dist/vue/components/core/tabs.ce.js +91 -84
- package/dist/vue/components/core/text-field.ce.js +67 -95
- package/dist/vue/components/core/tooltip.ce.js +95 -96
- package/dist/vue/components/core/tree.ce.js +128 -200
- package/dist/vue/components/data/table.ce.js +249 -227
- package/dist/vue/components/display/image.ce.js +65 -121
- package/dist/vue/components/display/skeleton.ce.js +46 -33
- package/dist/vue/components/input/radio-group.ce.js +119 -53
- package/dist/vue/components/input/textarea.ce.js +124 -109
- package/dist/vue/components/interaction/popover.ce.js +78 -45
- package/dist/vue/components/navigation/breadcrumb-item.ce.js +197 -0
- package/dist/vue/components/navigation/breadcrumb.ce.js +71 -40
- package/dist/vue/components/navigation/collapsible.ce.js +45 -34
- package/dist/vue/components/navigation/nav-item.ce.js +79 -0
- package/dist/vue/internal/menu-items.js +51 -70
- package/dist/vue/utils/content-motion.js +36 -47
- package/dist/vue/utils/interaction.js +19 -68
- package/dist/vue/utils/loading-shapes.js +11 -0
- package/dist/vue/utils/motion.js +36 -40
- package/dist/vue/utils/navigation.js +1 -19
- package/dist/vue/utils/popup-manager.js +52 -0
- package/dist/vue/utils/popup-motion.js +18 -0
- package/dist/vue/utils/radius.js +81 -0
- package/dist/vue/utils/ripple.js +7 -7
- package/dist/vue/utils/shell.js +9 -24
- package/dist/vue/utils/snackbar-stack.js +57 -0
- package/package.json +2 -20
- package/dist/components/advanced-input/calendar.ce.vue_vue_type_style_index_0_scoped_43a5d854_lang.css +0 -1
- package/dist/components/advanced-input/date-range-picker.ce.vue_vue_type_style_index_0_scoped_8bcd6e19_lang.css +0 -1
- package/dist/components/advanced-input/editable.ce.vue_vue_type_style_index_0_scoped_82c96de0_lang.css +0 -1
- package/dist/components/advanced-input/mention.ce.vue_vue_type_style_index_0_scoped_e6d9ff72_lang.css +0 -1
- package/dist/components/advanced-input/range-slider.ce.vue_vue_type_style_index_0_scoped_cceb9717_lang.css +0 -1
- package/dist/components/advanced-input/time-range-picker.ce.vue_vue_type_style_index_0_scoped_52265737_lang.css +0 -1
- package/dist/components/advanced-input/transfer.ce.vue_vue_type_style_index_0_scoped_d1dddadf_lang.css +0 -1
- package/dist/components/content/chart.ce.vue_vue_type_style_index_0_scoped_629f27ff_lang.css +0 -1
- package/dist/components/content/code-editor.ce.vue_vue_type_style_index_0_scoped_233308e5_lang.css +0 -1
- package/dist/components/content/equation.ce.vue_vue_type_style_index_0_scoped_e8f29ba6_lang.css +0 -1
- package/dist/components/content/heatmap.ce.vue_vue_type_style_index_0_scoped_c69a9531_lang.css +0 -1
- package/dist/components/content/rich-text-editor.ce.vue_vue_type_style_index_0_scoped_82e3193e_lang.css +0 -1
- package/dist/components/core/badge.ce.vue_vue_type_style_index_0_scoped_9dba943c_lang.css +0 -1
- package/dist/components/core/button-group.ce.vue_vue_type_style_index_0_scoped_8a4a723b_lang.css +0 -1
- package/dist/components/core/button.ce.vue_vue_type_style_index_0_scoped_ba403858_lang.css +0 -1
- package/dist/components/core/card.ce.vue_vue_type_style_index_0_scoped_6c915f03_lang.css +0 -1
- package/dist/components/core/cascader.ce.vue_vue_type_style_index_0_scoped_0ed26222_lang.css +0 -1
- package/dist/components/core/checkbox.ce.vue_vue_type_style_index_0_scoped_7c9707de_lang.css +0 -1
- package/dist/components/core/code-block.ce.vue_vue_type_style_index_0_scoped_7e6342e8_lang.css +0 -1
- package/dist/components/core/combobox.ce.vue_vue_type_style_index_0_scoped_6980ff65_lang.css +0 -1
- package/dist/components/core/date-picker.ce.vue_vue_type_style_index_0_scoped_f55122f3_lang.css +0 -1
- package/dist/components/core/dialog.ce.vue_vue_type_style_index_0_scoped_1b9a185c_lang.css +0 -1
- package/dist/components/core/divider.ce.vue_vue_type_style_index_0_scoped_38d4d501_lang.css +0 -1
- package/dist/components/core/drawer.ce.vue_vue_type_style_index_0_scoped_13f2f783_lang.css +0 -1
- package/dist/components/core/empty-state.ce.vue_vue_type_style_index_0_scoped_6fcab7b8_lang.css +0 -1
- package/dist/components/core/icon-button.ce.vue_vue_type_style_index_0_scoped_a18b4478_lang.css +0 -1
- package/dist/components/core/icon.ce.vue_vue_type_style_index_0_scoped_5c94f2ca_lang.css +0 -1
- package/dist/components/core/layout.ce.vue_vue_type_style_index_0_scoped_c0d57820_lang.css +0 -1
- package/dist/components/core/menu.ce.vue_vue_type_style_index_0_scoped_597751c9_lang.css +0 -1
- package/dist/components/core/notification.ce.vue_vue_type_style_index_0_scoped_2f39bef8_lang.css +0 -1
- package/dist/components/core/pagination.ce.vue_vue_type_style_index_0_scoped_d62e7dea_lang.css +0 -1
- package/dist/components/core/progress.ce.vue_vue_type_style_index_0_scoped_84d44589_lang.css +0 -1
- package/dist/components/core/select.ce.vue_vue_type_style_index_0_scoped_f1632b10_lang.css +0 -1
- package/dist/components/core/slider.ce.vue_vue_type_style_index_0_scoped_746583af_lang.css +0 -1
- package/dist/components/core/switch.ce.vue_vue_type_style_index_0_scoped_2bcc172e_lang.css +0 -1
- package/dist/components/core/tabs.ce.vue_vue_type_style_index_0_scoped_0d322299_lang.css +0 -1
- package/dist/components/core/text-field.ce.vue_vue_type_style_index_0_scoped_f22e5c02_lang.css +0 -1
- package/dist/components/core/time-picker.ce.vue_vue_type_style_index_0_scoped_afd1d777_lang.css +0 -1
- package/dist/components/core/tooltip.ce.vue_vue_type_style_index_0_scoped_2c931a6a_lang.css +0 -1
- package/dist/components/core/tree.ce.vue_vue_type_style_index_0_scoped_5401eef6_lang.css +0 -1
- package/dist/components/core/virtual-scroll.ce.vue_vue_type_style_index_0_scoped_8f7f579b_lang.css +0 -1
- package/dist/components/data/copy-button.ce.vue_vue_type_style_index_0_scoped_701ad4fb_lang.css +0 -1
- package/dist/components/data/image-preview.ce.vue_vue_type_style_index_0_scoped_17e80131_lang.css +0 -1
- package/dist/components/data/infinite-scroll.ce.vue_vue_type_style_index_0_scoped_5f784d27_lang.css +0 -1
- package/dist/components/data/long-text.ce.vue_vue_type_style_index_0_scoped_6bad870b_lang.css +0 -1
- package/dist/components/data/relative-time.ce.vue_vue_type_style_index_0_scoped_903b71ea_lang.css +0 -1
- package/dist/components/data/ring-progress.ce.vue_vue_type_style_index_0_scoped_56ea3993_lang.css +0 -1
- package/dist/components/data/table.ce.vue_vue_type_style_index_0_scoped_6c1cc7d1_lang.css +0 -1
- package/dist/components/data/virtual-table.ce.vue_vue_type_style_index_0_scoped_bc80a44c_lang.css +0 -1
- package/dist/components/data/virtual-tree.ce.vue_vue_type_style_index_0_scoped_5d8790bf_lang.css +0 -1
- package/dist/components/display/alert.ce.vue_vue_type_style_index_0_scoped_d31c4df3_lang.css +0 -1
- package/dist/components/display/avatar-group.ce.vue_vue_type_style_index_0_scoped_9545415b_lang.css +0 -1
- package/dist/components/display/avatar.ce.vue_vue_type_style_index_0_scoped_eb8fc9ea_lang.css +0 -1
- package/dist/components/display/blockquote.ce.vue_vue_type_style_index_0_scoped_e56b05b8_lang.css +0 -1
- package/dist/components/display/countdown.ce.vue_vue_type_style_index_0_scoped_7f10ca60_lang.css +0 -1
- package/dist/components/display/descriptions.ce.vue_vue_type_style_index_0_scoped_501a9489_lang.css +0 -1
- package/dist/components/display/highlight.ce.vue_vue_type_style_index_0_scoped_f876f7db_lang.css +0 -1
- package/dist/components/display/image.ce.vue_vue_type_style_index_0_scoped_d16b864e_lang.css +0 -1
- package/dist/components/display/list.ce.vue_vue_type_style_index_0_scoped_1b1702a6_lang.css +0 -1
- package/dist/components/display/result.ce.vue_vue_type_style_index_0_scoped_f08cf21f_lang.css +0 -1
- package/dist/components/display/skeleton.ce.vue_vue_type_style_index_0_scoped_92807af5_lang.css +0 -1
- package/dist/components/display/spinner.ce.vue_vue_type_style_index_0_scoped_d7ff1dc3_lang.css +0 -1
- package/dist/components/display/statistic.ce.vue_vue_type_style_index_0_scoped_cc8448a6_lang.css +0 -1
- package/dist/components/display/timeline.ce.vue_vue_type_style_index_0_scoped_3cffd2b4_lang.css +0 -1
- package/dist/components/form-completion/angle-slider.ce.vue_vue_type_style_index_0_scoped_924c5f0d_lang.css +0 -1
- package/dist/components/form-completion/color-picker.ce.vue_vue_type_style_index_0_scoped_04812c30_lang.css +0 -1
- package/dist/components/form-completion/date-field.ce.vue_vue_type_style_index_0_scoped_7c8a7c79_lang.css +0 -1
- package/dist/components/form-completion/dynamic-input.ce.vue_vue_type_style_index_0_scoped_6a5bc26a_lang.css +0 -1
- package/dist/components/form-completion/form.ce.vue_vue_type_style_index_0_scoped_f8f70e6f_lang.css +0 -1
- package/dist/components/form-completion/json-input.ce.vue_vue_type_style_index_0_scoped_15a17728_lang.css +0 -1
- package/dist/components/form-completion/masked-input.ce.vue_vue_type_style_index_0_scoped_f96e752a_lang.css +0 -1
- package/dist/components/form-completion/period-picker.ce.vue_vue_type_style_index_0_scoped_28cc9011_lang.css +0 -1
- package/dist/components/form-completion/time-field.ce.vue_vue_type_style_index_0_scoped_b6533524_lang.css +0 -1
- package/dist/components/form-completion/upload-manager.ce.vue_vue_type_style_index_0_scoped_fe810c3a_lang.css +0 -1
- package/dist/components/foundation/banner.ce.vue_vue_type_style_index_0_scoped_57ba332a_lang.css +0 -1
- package/dist/components/foundation/error-state.ce.vue_vue_type_style_index_0_scoped_20c2aa5d_lang.css +0 -1
- package/dist/components/foundation/field-group.ce.vue_vue_type_style_index_0_scoped_144ed12e_lang.css +0 -1
- package/dist/components/foundation/flex.ce.vue_vue_type_style_index_0_scoped_317459cf_lang.css +0 -1
- package/dist/components/foundation/grid.ce.vue_vue_type_style_index_0_scoped_c1ea1f88_lang.css +0 -1
- package/dist/components/foundation/input-group.ce.vue_vue_type_style_index_0_scoped_5729e4c1_lang.css +0 -1
- package/dist/components/foundation/page-header.ce.vue_vue_type_style_index_0_scoped_819de002_lang.css +0 -1
- package/dist/components/foundation/time-display.ce.vue_vue_type_style_index_0_scoped_31f1f739_lang.css +0 -1
- package/dist/components/foundation/typography.ce.vue_vue_type_style_index_0_scoped_d92fa782_lang.css +0 -1
- package/dist/components/input/checkbox-group.ce.vue_vue_type_style_index_0_scoped_f017d36a_lang.css +0 -1
- package/dist/components/input/field.ce.vue_vue_type_style_index_0_scoped_a01eded5_lang.css +0 -1
- package/dist/components/input/file-upload.ce.vue_vue_type_style_index_0_scoped_8fd77a68_lang.css +0 -1
- package/dist/components/input/number-field.ce.vue_vue_type_style_index_0_scoped_9eb508b4_lang.css +0 -1
- package/dist/components/input/pin-input.ce.vue_vue_type_style_index_0_scoped_0d93e989_lang.css +0 -1
- package/dist/components/input/radio-group.ce.vue_vue_type_style_index_0_scoped_fe3edf34_lang.css +0 -1
- package/dist/components/input/rating.ce.vue_vue_type_style_index_0_scoped_eafb58fe_lang.css +0 -1
- package/dist/components/input/tags-input.ce.vue_vue_type_style_index_0_scoped_d78c0562_lang.css +0 -1
- package/dist/components/input/textarea.ce.vue_vue_type_style_index_0_scoped_60d0751b_lang.css +0 -1
- package/dist/components/input/toggle.ce.vue_vue_type_style_index_0_scoped_a289ae32_lang.css +0 -1
- package/dist/components/interaction/chip.ce.vue_vue_type_style_index_0_scoped_541c9ed1_lang.css +0 -1
- package/dist/components/interaction/command.ce.vue_vue_type_style_index_0_scoped_11d4f240_lang.css +0 -1
- package/dist/components/interaction/context-menu.ce.vue_vue_type_style_index_0_scoped_35d2336c_lang.css +0 -1
- package/dist/components/interaction/hover-card.ce.vue_vue_type_style_index_0_scoped_0517aad7_lang.css +0 -1
- package/dist/components/interaction/loading-overlay.ce.vue_vue_type_style_index_0_scoped_8dd7d4aa_lang.css +0 -1
- package/dist/components/interaction/menubar.ce.vue_vue_type_style_index_0_scoped_c4c69411_lang.css +0 -1
- package/dist/components/interaction/multi-select.ce.vue_vue_type_style_index_0_scoped_0b8ec686_lang.css +0 -1
- package/dist/components/interaction/popconfirm.ce.vue_vue_type_style_index_0_scoped_fae7c69d_lang.css +0 -1
- package/dist/components/interaction/popover.ce.vue_vue_type_style_index_0_scoped_be7411d6_lang.css +0 -1
- package/dist/components/interaction/tree-select.ce.vue_vue_type_style_index_0_scoped_46d37539_lang.css +0 -1
- package/dist/components/navigation/accordion.ce.vue_vue_type_style_index_0_scoped_19d76e75_lang.css +0 -1
- package/dist/components/navigation/anchor.ce.vue_vue_type_style_index_0_scoped_b3311001_lang.css +0 -1
- package/dist/components/navigation/back-top.ce.vue_vue_type_style_index_0_scoped_231687a3_lang.css +0 -1
- package/dist/components/navigation/breadcrumb.ce.vue_vue_type_style_index_0_scoped_2a2cd6e2_lang.css +0 -1
- package/dist/components/navigation/carousel.ce.vue_vue_type_style_index_0_scoped_f2081ae5_lang.css +0 -1
- package/dist/components/navigation/collapsible.ce.vue_vue_type_style_index_0_scoped_f3cd40e5_lang.css +0 -1
- package/dist/components/navigation/link.ce.vue_vue_type_style_index_0_scoped_24e2c032_lang.css +0 -1
- package/dist/components/navigation/navigation-menu.ce.vue_vue_type_style_index_0_scoped_5a0a5b21_lang.css +0 -1
- package/dist/components/navigation/overflow-list.ce.vue_vue_type_style_index_0_scoped_b6fec7f9_lang.css +0 -1
- package/dist/components/navigation/scroll-area.ce.vue_vue_type_style_index_0_scoped_78178cc3_lang.css +0 -1
- package/dist/components/navigation/splitter.ce.vue_vue_type_style_index_0_scoped_0fbcfa40_lang.css +0 -1
- package/dist/components/navigation/stepper.ce.vue_vue_type_style_index_0_scoped_1c703cd8_lang.css +0 -1
- package/dist/components/navigation/toolbar.ce.vue_vue_type_style_index_0_scoped_327b9928_lang.css +0 -1
- package/dist/components/navigation/visually-hidden.ce.vue_vue_type_style_index_0_scoped_2cc27184_lang.css +0 -1
- package/dist/components/shell/app-shell.ce.vue_vue_type_style_index_0_scoped_37292ba0_lang.css +0 -1
- package/dist/components/shell/config-provider.ce.vue_vue_type_style_index_0_scoped_d9085095_lang.css +0 -1
- package/dist/components/shell/marquee.ce.vue_vue_type_style_index_0_scoped_ac73236c_lang.css +0 -1
- package/dist/components/shell/masonry.ce.vue_vue_type_style_index_0_scoped_2fe32054_lang.css +0 -1
- package/dist/components/shell/sidebar.ce.vue_vue_type_style_index_0_scoped_f50127b6_lang.css +0 -1
- package/dist/components/utility/affix.ce.vue_vue_type_style_index_0_scoped_f21e108b_lang.css +0 -1
- package/dist/components/utility/alert-dialog.ce.vue_vue_type_style_index_0_scoped_6136c7fb_lang.css +0 -1
- package/dist/components/utility/animated-number.ce.vue_vue_type_style_index_0_scoped_23564574_lang.css +0 -1
- package/dist/components/utility/float-button.ce.vue_vue_type_style_index_0_scoped_1edb2eb1_lang.css +0 -1
- package/dist/components/utility/listbox.ce.vue_vue_type_style_index_0_scoped_8eab8b73_lang.css +0 -1
- package/dist/components/utility/loading-bar.ce.vue_vue_type_style_index_0_scoped_4109ea9a_lang.css +0 -1
- package/dist/components/utility/log-viewer.ce.vue_vue_type_style_index_0_scoped_f5be4658_lang.css +0 -1
- package/dist/components/utility/notification-queue.ce.vue_vue_type_style_index_0_scoped_75bf46e7_lang.css +0 -1
- package/dist/components/utility/progress-group.ce.vue_vue_type_style_index_0_scoped_d4453504_lang.css +0 -1
- package/dist/components/utility/qr-code.ce.vue_vue_type_style_index_0_scoped_3ef776fe_lang.css +0 -1
- package/dist/components/utility/tag-group.ce.vue_vue_type_style_index_0_scoped_de9894bd_lang.css +0 -1
- package/dist/components/utility/tour.ce.vue_vue_type_style_index_0_scoped_b5823fc3_lang.css +0 -1
- package/dist/components/utility/virtual-select.ce.vue_vue_type_style_index_0_scoped_d1821f4c_lang.css +0 -1
- package/dist/components/utility/watermark.ce.vue_vue_type_style_index_0_scoped_62e7022f_lang.css +0 -1
- package/dist/kima-theme.js +0 -1589
- package/dist/styles/accordion.css +0 -4
- package/dist/styles/affix.css +0 -2
- package/dist/styles/alert-dialog.css +0 -5
- package/dist/styles/alert.css +0 -4
- package/dist/styles/anchor.css +0 -3
- package/dist/styles/angle-slider.css +0 -2
- package/dist/styles/animated-number.css +0 -2
- package/dist/styles/app-shell.css +0 -6
- package/dist/styles/avatar-group.css +0 -4
- package/dist/styles/avatar.css +0 -3
- package/dist/styles/back-top.css +0 -3
- package/dist/styles/banner.css +0 -4
- package/dist/styles/blockquote.css +0 -3
- package/dist/styles/button-group.css +0 -3
- package/dist/styles/calendar.css +0 -2
- package/dist/styles/card.css +0 -2
- package/dist/styles/carousel.css +0 -5
- package/dist/styles/cascader.css +0 -3
- package/dist/styles/chart.css +0 -3
- package/dist/styles/checkbox-group.css +0 -3
- package/dist/styles/chip.css +0 -5
- package/dist/styles/code-block.css +0 -5
- package/dist/styles/code-editor.css +0 -5
- package/dist/styles/color-picker.css +0 -2
- package/dist/styles/command.css +0 -5
- package/dist/styles/config-provider.css +0 -2
- package/dist/styles/context-menu.css +0 -3
- package/dist/styles/copy-button.css +0 -3
- package/dist/styles/countdown.css +0 -2
- package/dist/styles/date-field.css +0 -2
- package/dist/styles/date-picker.css +0 -3
- package/dist/styles/date-range-picker.css +0 -4
- package/dist/styles/descriptions.css +0 -2
- package/dist/styles/drawer.css +0 -3
- package/dist/styles/dynamic-input.css +0 -6
- package/dist/styles/editable.css +0 -3
- package/dist/styles/empty-state.css +0 -2
- package/dist/styles/equation.css +0 -2
- package/dist/styles/error-state.css +0 -4
- package/dist/styles/field-group.css +0 -2
- package/dist/styles/field.css +0 -2
- package/dist/styles/file-upload.css +0 -5
- package/dist/styles/flex.css +0 -2
- package/dist/styles/float-button.css +0 -4
- package/dist/styles/form.css +0 -2
- package/dist/styles/grid.css +0 -2
- package/dist/styles/heatmap.css +0 -3
- package/dist/styles/highlight.css +0 -2
- package/dist/styles/hover-card.css +0 -3
- package/dist/styles/icon-button.css +0 -3
- package/dist/styles/image-preview.css +0 -6
- package/dist/styles/infinite-scroll.css +0 -4
- package/dist/styles/input-group.css +0 -2
- package/dist/styles/json-input.css +0 -3
- package/dist/styles/layout.css +0 -2
- package/dist/styles/link.css +0 -2
- package/dist/styles/list.css +0 -2
- package/dist/styles/listbox.css +0 -3
- package/dist/styles/loading-bar.css +0 -2
- package/dist/styles/loading-overlay.css +0 -3
- package/dist/styles/log-viewer.css +0 -6
- package/dist/styles/long-text.css +0 -3
- package/dist/styles/marquee.css +0 -3
- package/dist/styles/masked-input.css +0 -2
- package/dist/styles/masonry.css +0 -2
- package/dist/styles/mention.css +0 -2
- package/dist/styles/menubar.css +0 -4
- package/dist/styles/multi-select.css +0 -6
- package/dist/styles/navigation-menu.css +0 -5
- package/dist/styles/notification-queue.css +0 -4
- package/dist/styles/notification.css +0 -3
- package/dist/styles/number-field.css +0 -3
- package/dist/styles/overflow-list.css +0 -3
- package/dist/styles/page-header.css +0 -2
- package/dist/styles/pagination.css +0 -3
- package/dist/styles/period-picker.css +0 -2
- package/dist/styles/pin-input.css +0 -2
- package/dist/styles/popconfirm.css +0 -4
- package/dist/styles/progress-group.css +0 -3
- package/dist/styles/qr-code.css +0 -2
- package/dist/styles/range-slider.css +0 -2
- package/dist/styles/rating.css +0 -4
- package/dist/styles/relative-time.css +0 -2
- package/dist/styles/result.css +0 -3
- package/dist/styles/rich-text-editor.css +0 -6
- package/dist/styles/ring-progress.css +0 -2
- package/dist/styles/scroll-area.css +0 -2
- package/dist/styles/sidebar.css +0 -9
- package/dist/styles/spinner.css +0 -2
- package/dist/styles/splitter.css +0 -2
- package/dist/styles/statistic.css +0 -2
- package/dist/styles/stepper.css +0 -3
- package/dist/styles/tag-group.css +0 -6
- package/dist/styles/tags-input.css +0 -3
- package/dist/styles/time-display.css +0 -2
- package/dist/styles/time-field.css +0 -2
- package/dist/styles/time-picker.css +0 -3
- package/dist/styles/time-range-picker.css +0 -2
- package/dist/styles/timeline.css +0 -3
- package/dist/styles/toggle.css +0 -2
- package/dist/styles/toolbar.css +0 -2
- package/dist/styles/tour.css +0 -3
- package/dist/styles/transfer.css +0 -3
- package/dist/styles/tree-select.css +0 -6
- package/dist/styles/typography.css +0 -2
- package/dist/styles/upload-manager.css +0 -7
- package/dist/styles/virtual-scroll.css +0 -2
- package/dist/styles/virtual-select.css +0 -2
- package/dist/styles/virtual-table.css +0 -4
- package/dist/styles/virtual-tree.css +0 -3
- package/dist/styles/visually-hidden.css +0 -2
- package/dist/styles/watermark.css +0 -2
- package/dist/vue/components/advanced-input/calendar.ce.js +0 -216
- package/dist/vue/components/advanced-input/date-range-picker.ce.js +0 -224
- package/dist/vue/components/advanced-input/editable.ce.js +0 -161
- package/dist/vue/components/advanced-input/mention.ce.js +0 -181
- package/dist/vue/components/advanced-input/range-slider.ce.js +0 -111
- package/dist/vue/components/advanced-input/time-range-picker.ce.js +0 -120
- package/dist/vue/components/advanced-input/transfer.ce.js +0 -192
- package/dist/vue/components/content/chart.ce.js +0 -294
- package/dist/vue/components/content/code-editor.ce.js +0 -314
- package/dist/vue/components/content/equation.ce.js +0 -69
- package/dist/vue/components/content/heatmap.ce.js +0 -148
- package/dist/vue/components/content/rich-text-editor.ce.js +0 -346
- package/dist/vue/components/core/button-group.ce.js +0 -142
- package/dist/vue/components/core/card.ce.js +0 -73
- package/dist/vue/components/core/cascader.ce.js +0 -329
- package/dist/vue/components/core/code-block.ce.js +0 -131
- package/dist/vue/components/core/date-picker.ce.js +0 -433
- package/dist/vue/components/core/drawer.ce.js +0 -234
- package/dist/vue/components/core/empty-state.ce.js +0 -58
- package/dist/vue/components/core/icon-button.ce.js +0 -93
- package/dist/vue/components/core/layout.ce.js +0 -68
- package/dist/vue/components/core/notification.ce.js +0 -189
- package/dist/vue/components/core/pagination.ce.js +0 -158
- package/dist/vue/components/core/time-picker.ce.js +0 -486
- package/dist/vue/components/core/virtual-scroll.ce.js +0 -176
- package/dist/vue/components/data/copy-button.ce.js +0 -75
- package/dist/vue/components/data/image-preview.ce.js +0 -226
- package/dist/vue/components/data/infinite-scroll.ce.js +0 -126
- package/dist/vue/components/data/long-text.ce.js +0 -70
- package/dist/vue/components/data/relative-time.ce.js +0 -77
- package/dist/vue/components/data/ring-progress.ce.js +0 -94
- package/dist/vue/components/data/virtual-table.ce.js +0 -178
- package/dist/vue/components/data/virtual-tree.ce.js +0 -213
- package/dist/vue/components/display/alert.ce.js +0 -101
- package/dist/vue/components/display/avatar-group.ce.js +0 -65
- package/dist/vue/components/display/avatar.ce.js +0 -84
- package/dist/vue/components/display/blockquote.ce.js +0 -44
- package/dist/vue/components/display/countdown.ce.js +0 -77
- package/dist/vue/components/display/descriptions.ce.js +0 -43
- package/dist/vue/components/display/highlight.ce.js +0 -48
- package/dist/vue/components/display/list.ce.js +0 -73
- package/dist/vue/components/display/result.ce.js +0 -57
- package/dist/vue/components/display/spinner.ce.js +0 -42
- package/dist/vue/components/display/statistic.ce.js +0 -71
- package/dist/vue/components/display/timeline.ce.js +0 -60
- package/dist/vue/components/form-completion/angle-slider.ce.js +0 -103
- package/dist/vue/components/form-completion/color-picker.ce.js +0 -286
- package/dist/vue/components/form-completion/date-field.ce.js +0 -131
- package/dist/vue/components/form-completion/dynamic-input.ce.js +0 -171
- package/dist/vue/components/form-completion/form.ce.js +0 -248
- package/dist/vue/components/form-completion/json-input.ce.js +0 -114
- package/dist/vue/components/form-completion/masked-input.ce.js +0 -88
- package/dist/vue/components/form-completion/period-picker.ce.js +0 -147
- package/dist/vue/components/form-completion/time-field.ce.js +0 -120
- package/dist/vue/components/form-completion/upload-manager.ce.js +0 -232
- package/dist/vue/components/foundation/banner.ce.js +0 -106
- package/dist/vue/components/foundation/error-state.ce.js +0 -108
- package/dist/vue/components/foundation/field-group.ce.js +0 -146
- package/dist/vue/components/foundation/flex.ce.js +0 -60
- package/dist/vue/components/foundation/grid.ce.js +0 -52
- package/dist/vue/components/foundation/input-group.ce.js +0 -34
- package/dist/vue/components/foundation/page-header.ce.js +0 -55
- package/dist/vue/components/foundation/time-display.ce.js +0 -129
- package/dist/vue/components/foundation/typography.ce.js +0 -71
- package/dist/vue/components/input/checkbox-group.ce.js +0 -93
- package/dist/vue/components/input/field.ce.js +0 -76
- package/dist/vue/components/input/file-upload.ce.js +0 -154
- package/dist/vue/components/input/number-field.ce.js +0 -103
- package/dist/vue/components/input/pin-input.ce.js +0 -112
- package/dist/vue/components/input/rating.ce.js +0 -116
- package/dist/vue/components/input/tags-input.ce.js +0 -159
- package/dist/vue/components/input/toggle.ce.js +0 -58
- package/dist/vue/components/interaction/chip.ce.js +0 -95
- package/dist/vue/components/interaction/command.ce.js +0 -161
- package/dist/vue/components/interaction/context-menu.ce.js +0 -113
- package/dist/vue/components/interaction/hover-card.ce.js +0 -92
- package/dist/vue/components/interaction/loading-overlay.ce.js +0 -70
- package/dist/vue/components/interaction/menubar.ce.js +0 -134
- package/dist/vue/components/interaction/multi-select.ce.js +0 -271
- package/dist/vue/components/interaction/popconfirm.ce.js +0 -95
- package/dist/vue/components/interaction/tree-select.ce.js +0 -195
- package/dist/vue/components/navigation/accordion.ce.js +0 -114
- package/dist/vue/components/navigation/anchor.ce.js +0 -125
- package/dist/vue/components/navigation/back-top.ce.js +0 -67
- package/dist/vue/components/navigation/carousel.ce.js +0 -128
- package/dist/vue/components/navigation/link.ce.js +0 -62
- package/dist/vue/components/navigation/navigation-menu.ce.js +0 -91
- package/dist/vue/components/navigation/overflow-list.ce.js +0 -67
- package/dist/vue/components/navigation/scroll-area.ce.js +0 -47
- package/dist/vue/components/navigation/splitter.ce.js +0 -131
- package/dist/vue/components/navigation/stepper.ce.js +0 -74
- package/dist/vue/components/navigation/toolbar.ce.js +0 -93
- package/dist/vue/components/navigation/visually-hidden.ce.js +0 -16
- package/dist/vue/components/shell/app-shell.ce.js +0 -98
- package/dist/vue/components/shell/config-provider.ce.js +0 -110
- package/dist/vue/components/shell/marquee.ce.js +0 -92
- package/dist/vue/components/shell/masonry.ce.js +0 -50
- package/dist/vue/components/shell/sidebar.ce.js +0 -136
- package/dist/vue/components/utility/affix.ce.js +0 -64
- package/dist/vue/components/utility/alert-dialog.ce.js +0 -124
- package/dist/vue/components/utility/animated-number.ce.js +0 -66
- package/dist/vue/components/utility/float-button.ce.js +0 -104
- package/dist/vue/components/utility/listbox.ce.js +0 -102
- package/dist/vue/components/utility/loading-bar.ce.js +0 -85
- package/dist/vue/components/utility/log-viewer.ce.js +0 -141
- package/dist/vue/components/utility/notification-queue.ce.js +0 -122
- package/dist/vue/components/utility/progress-group.ce.js +0 -63
- package/dist/vue/components/utility/qr-code.ce.js +0 -62
- package/dist/vue/components/utility/tag-group.ce.js +0 -127
- package/dist/vue/components/utility/tour.ce.js +0 -214
- package/dist/vue/components/utility/virtual-select.ce.js +0 -207
- package/dist/vue/components/utility/watermark.ce.js +0 -44
- package/dist/vue/internal/navigation-items.js +0 -110
- package/dist/vue/utils/code-highlight.js +0 -142
- package/dist/vue/utils/collection.js +0 -15
- package/dist/vue/utils/config.js +0 -47
- package/dist/vue/utils/content.js +0 -83
- package/dist/vue/utils/display-status.js +0 -31
- package/dist/vue/utils/foundation.js +0 -65
- package/dist/vue/utils/local-date.js +0 -48
- package/dist/vue/utils/notifications.js +0 -60
- package/dist/vue/utils/qr.js +0 -20
- package/dist/vue/utils/scoped-slots.js +0 -22
- package/dist/vue/utils/theme.js +0 -56
- package/dist/vue/utils/utility-choice.js +0 -56
|
@@ -1,433 +0,0 @@
|
|
|
1
|
-
import { useRipple as e } from "../../utils/ripple.js";
|
|
2
|
-
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
import n from "./icon.ce.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { Fragment as r, Transition as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, getCurrentInstance as ee, mergeProps as te, nextTick as u, normalizeClass as d, onBeforeUnmount as ne, onMounted as re, openBlock as f, ref as p, renderList as m, toDisplayString as h, unref as g, useAttrs as ie, useHost as ae, useId as oe, watch as _, withCtx as v, withModifiers as y } from "vue";
|
|
6
|
-
import { ArrowLeft01Icon as se, ArrowRight01Icon as ce, Calendar01Icon as le, Cancel01Icon as ue } from "@hugeicons/core-free-icons";
|
|
7
|
-
// src/components/core/date-picker.ce.vue
|
|
8
|
-
var de = ["aria-disabled"], fe = [
|
|
9
|
-
"aria-expanded",
|
|
10
|
-
"aria-label",
|
|
11
|
-
"aria-required",
|
|
12
|
-
"disabled"
|
|
13
|
-
], pe = [
|
|
14
|
-
"aria-label",
|
|
15
|
-
"title",
|
|
16
|
-
"disabled"
|
|
17
|
-
], me = [
|
|
18
|
-
"name",
|
|
19
|
-
"value",
|
|
20
|
-
"required",
|
|
21
|
-
"disabled"
|
|
22
|
-
], he = { class: "kima-date-picker__head" }, ge = [
|
|
23
|
-
"aria-label",
|
|
24
|
-
"title",
|
|
25
|
-
"disabled"
|
|
26
|
-
], _e = [
|
|
27
|
-
"aria-label",
|
|
28
|
-
"title",
|
|
29
|
-
"disabled"
|
|
30
|
-
], ve = {
|
|
31
|
-
class: "kima-date-picker__row",
|
|
32
|
-
role: "row"
|
|
33
|
-
}, ye = ["aria-selected"], be = [
|
|
34
|
-
"id",
|
|
35
|
-
"data-date",
|
|
36
|
-
"aria-label",
|
|
37
|
-
"aria-current",
|
|
38
|
-
"disabled",
|
|
39
|
-
"tabindex",
|
|
40
|
-
"onClick"
|
|
41
|
-
], b = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
42
|
-
__name: "date-picker.ce",
|
|
43
|
-
props: {
|
|
44
|
-
modelValue: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: null
|
|
47
|
-
},
|
|
48
|
-
min: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: null
|
|
51
|
-
},
|
|
52
|
-
max: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: null
|
|
55
|
-
},
|
|
56
|
-
open: Boolean,
|
|
57
|
-
label: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: ""
|
|
60
|
-
},
|
|
61
|
-
placeholder: {
|
|
62
|
-
type: String,
|
|
63
|
-
default: "Select date"
|
|
64
|
-
},
|
|
65
|
-
name: String,
|
|
66
|
-
disabled: Boolean,
|
|
67
|
-
required: Boolean,
|
|
68
|
-
clearable: Boolean,
|
|
69
|
-
firstDay: {
|
|
70
|
-
type: Number,
|
|
71
|
-
default: 1
|
|
72
|
-
},
|
|
73
|
-
locale: {
|
|
74
|
-
type: String,
|
|
75
|
-
default: "en-GB"
|
|
76
|
-
},
|
|
77
|
-
weekdays: {
|
|
78
|
-
type: Array,
|
|
79
|
-
default: null
|
|
80
|
-
},
|
|
81
|
-
previousMonthLabel: {
|
|
82
|
-
type: String,
|
|
83
|
-
default: "Previous month"
|
|
84
|
-
},
|
|
85
|
-
nextMonthLabel: {
|
|
86
|
-
type: String,
|
|
87
|
-
default: "Next month"
|
|
88
|
-
},
|
|
89
|
-
clearLabel: {
|
|
90
|
-
type: String,
|
|
91
|
-
default: "Clear date"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
emits: [
|
|
95
|
-
"update:modelValue",
|
|
96
|
-
"change",
|
|
97
|
-
"update:open"
|
|
98
|
-
],
|
|
99
|
-
setup(t, { emit: b }) {
|
|
100
|
-
let x = ie(), xe = ee()?.ce ? ae() : null, S = t, C = b, w = p(null), T = p(null), E = p(null), D = p(null);
|
|
101
|
-
e(D);
|
|
102
|
-
let O = p(S.modelValue), k = p(!1), A = p((/* @__PURE__ */ new Date()).getFullYear()), j = p((/* @__PURE__ */ new Date()).getMonth()), M = p(""), N = p(""), P, F, I = `kima-date-picker-${oe()}`, Se = `${I}-trigger`, L = `${I}-grid`, R = `${I}-title`;
|
|
103
|
-
function z(e) {
|
|
104
|
-
return String(e).padStart(2, "0");
|
|
105
|
-
}
|
|
106
|
-
function B(e, t, n) {
|
|
107
|
-
return `${e}-${z(t + 1)}-${z(n)}`;
|
|
108
|
-
}
|
|
109
|
-
function V(e) {
|
|
110
|
-
let [t, n, r] = e.split("-").map(Number);
|
|
111
|
-
return {
|
|
112
|
-
year: t,
|
|
113
|
-
monthIndex: n - 1,
|
|
114
|
-
day: r
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
function H(e) {
|
|
118
|
-
let { year: t, monthIndex: n, day: r } = V(e);
|
|
119
|
-
return new Date(t, n, r);
|
|
120
|
-
}
|
|
121
|
-
function U() {
|
|
122
|
-
let e = /* @__PURE__ */ new Date();
|
|
123
|
-
return B(e.getFullYear(), e.getMonth(), e.getDate());
|
|
124
|
-
}
|
|
125
|
-
function W(e, t) {
|
|
126
|
-
let n = H(e);
|
|
127
|
-
return n.setDate(n.getDate() + t), B(n.getFullYear(), n.getMonth(), n.getDate());
|
|
128
|
-
}
|
|
129
|
-
function G(e, t) {
|
|
130
|
-
return new Date(e, t + 1, 0).getDate();
|
|
131
|
-
}
|
|
132
|
-
function Ce(e, t) {
|
|
133
|
-
let n = new Date(e, t, 1);
|
|
134
|
-
return B(n.getFullYear(), n.getMonth(), 1);
|
|
135
|
-
}
|
|
136
|
-
function we(e, t) {
|
|
137
|
-
let n = new Date(e, t + 1, 0);
|
|
138
|
-
return B(n.getFullYear(), n.getMonth(), n.getDate());
|
|
139
|
-
}
|
|
140
|
-
function K(e) {
|
|
141
|
-
return S.min && e < S.min ? S.min : S.max && e > S.max ? S.max : e;
|
|
142
|
-
}
|
|
143
|
-
function q(e) {
|
|
144
|
-
try {
|
|
145
|
-
return new Intl.DateTimeFormat(S.locale || "en-GB", e);
|
|
146
|
-
} catch {
|
|
147
|
-
return new Intl.DateTimeFormat("en-GB", e);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
let Te = a(() => q({
|
|
151
|
-
year: "numeric",
|
|
152
|
-
month: "long"
|
|
153
|
-
})), Ee = a(() => q({ weekday: "short" })), J = a(() => q({
|
|
154
|
-
year: "numeric",
|
|
155
|
-
month: "long",
|
|
156
|
-
day: "numeric"
|
|
157
|
-
})), De = a(() => O.value ? J.value.format(H(O.value)) : S.placeholder), Y = a(() => Te.value.format(new Date(A.value, j.value, 1))), Oe = a(() => {
|
|
158
|
-
if (S.weekdays?.length === 7) return S.weekdays;
|
|
159
|
-
let e = [];
|
|
160
|
-
for (let t = 0; t < 7; t += 1) e.push(Ee.value.format(new Date(2024, 0, 7 + t)));
|
|
161
|
-
let t = S.firstDay === 0 ? 0 : 1;
|
|
162
|
-
return e.slice(t).concat(e.slice(0, t));
|
|
163
|
-
}), ke = a(() => {
|
|
164
|
-
let e = (new Date(A.value, j.value, 1).getDay() - (S.firstDay === 0 ? 0 : 1) + 7) % 7, t = [];
|
|
165
|
-
for (let n = 0; n < 42; n += 1) {
|
|
166
|
-
let r = new Date(A.value, j.value, 1 - e + n), i = B(r.getFullYear(), r.getMonth(), r.getDate());
|
|
167
|
-
t.push({
|
|
168
|
-
iso: i,
|
|
169
|
-
day: r.getDate(),
|
|
170
|
-
outside: r.getMonth() !== j.value,
|
|
171
|
-
disabled: S.min && i < S.min || S.max && i > S.max,
|
|
172
|
-
label: J.value.format(r)
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
return t;
|
|
176
|
-
}), Ae = a(() => Array.from({ length: 6 }, (e, t) => ke.value.slice(t * 7, t * 7 + 7))), je = a(() => !S.min || we(A.value, j.value - 1) >= S.min), Me = a(() => !S.max || Ce(A.value, j.value + 1) <= S.max);
|
|
177
|
-
function X(e) {
|
|
178
|
-
if (S.disabled) return;
|
|
179
|
-
N.value = U(), M.value = K(O.value || N.value);
|
|
180
|
-
let t = V(M.value);
|
|
181
|
-
A.value = t.year, j.value = t.monthIndex, k.value = !0, e && C("update:open", !0), u(Q);
|
|
182
|
-
}
|
|
183
|
-
function Z(e, t) {
|
|
184
|
-
k.value && (k.value = !1, e && C("update:open", !1), t && u(() => T.value?.focus()));
|
|
185
|
-
}
|
|
186
|
-
function Ne() {
|
|
187
|
-
k.value ? Z(!0, !0) : X(!0);
|
|
188
|
-
}
|
|
189
|
-
function Pe(e) {
|
|
190
|
-
e.inert = !1, e.removeAttribute("aria-hidden"), e.id = L, e.querySelectorAll("[data-date]").forEach((e) => {
|
|
191
|
-
e.id = `${L}-day-${e.dataset.date}`;
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
function Fe(e) {
|
|
195
|
-
e.inert = !0, e.setAttribute("aria-hidden", "true"), e.removeAttribute("id"), e.querySelectorAll("[id]").forEach((e) => e.removeAttribute("id"));
|
|
196
|
-
}
|
|
197
|
-
function Q() {
|
|
198
|
-
k.value && M.value && w.value?.querySelector(`#${L}-day-${M.value}`)?.focus();
|
|
199
|
-
}
|
|
200
|
-
function Ie(e) {
|
|
201
|
-
S.disabled || e === O.value || (O.value = e, C("update:modelValue", e), C("change", e));
|
|
202
|
-
}
|
|
203
|
-
function Le(e) {
|
|
204
|
-
e.disabled || (M.value = e.iso, Ie(e.iso), Z(!0, !0));
|
|
205
|
-
}
|
|
206
|
-
function Re() {
|
|
207
|
-
Ie(null), Z(!0, !0);
|
|
208
|
-
}
|
|
209
|
-
function ze(e) {
|
|
210
|
-
queueMicrotask(() => {
|
|
211
|
-
if (e.defaultPrevented) return;
|
|
212
|
-
let t = O.value !== F;
|
|
213
|
-
O.value = F, E.value && (E.value.value = F || ""), M.value = K(F || U()), t && C("update:modelValue", O.value);
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
function Be(e) {
|
|
217
|
-
e.preventDefault(), u(() => T.value?.focus());
|
|
218
|
-
}
|
|
219
|
-
function Ve(e) {
|
|
220
|
-
let t = K(e), n = V(t);
|
|
221
|
-
M.value = t, A.value = n.year, j.value = n.monthIndex, u(Q);
|
|
222
|
-
}
|
|
223
|
-
function He(e) {
|
|
224
|
-
let t = new Date(A.value, j.value + e, 1), n = t.getFullYear(), r = t.getMonth();
|
|
225
|
-
A.value = n, j.value = r;
|
|
226
|
-
let i = V(M.value);
|
|
227
|
-
Ve(K(B(n, r, Math.min(i.day, G(n, r)))));
|
|
228
|
-
}
|
|
229
|
-
function Ue(e) {
|
|
230
|
-
!S.disabled && [
|
|
231
|
-
"ArrowDown",
|
|
232
|
-
"ArrowUp",
|
|
233
|
-
"PageUp",
|
|
234
|
-
"PageDown"
|
|
235
|
-
].includes(e.key) && (e.preventDefault(), X(!0));
|
|
236
|
-
}
|
|
237
|
-
function We(e) {
|
|
238
|
-
if (e.isComposing) return;
|
|
239
|
-
if (e.key === "Escape") {
|
|
240
|
-
e.preventDefault(), Z(!0, !0);
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
if (!e.target.closest(".kima-date-picker__day")) return;
|
|
244
|
-
let t = {
|
|
245
|
-
ArrowLeft: -1,
|
|
246
|
-
ArrowRight: 1,
|
|
247
|
-
ArrowUp: -7,
|
|
248
|
-
ArrowDown: 7
|
|
249
|
-
}, n = null;
|
|
250
|
-
if (e.key in t) n = W(M.value, t[e.key]);
|
|
251
|
-
else if (e.key === "PageUp" || e.key === "PageDown") {
|
|
252
|
-
let t = e.key === "PageUp" ? -1 : 1, r = new Date(A.value, j.value + t, 1), i = r.getFullYear(), a = r.getMonth(), o = V(M.value);
|
|
253
|
-
n = B(i, a, Math.min(o.day, G(i, a)));
|
|
254
|
-
} else if (e.key === "Home" || e.key === "End") {
|
|
255
|
-
let t = (H(M.value).getDay() - (S.firstDay === 0 ? 0 : 1) + 7) % 7;
|
|
256
|
-
n = e.key === "Home" ? W(M.value, -t) : W(M.value, 6 - t);
|
|
257
|
-
}
|
|
258
|
-
n && (e.preventDefault(), Ve(n));
|
|
259
|
-
}
|
|
260
|
-
function $(e) {
|
|
261
|
-
k.value && !e.composedPath().includes(w.value) && Z(!1, !1);
|
|
262
|
-
}
|
|
263
|
-
return _(() => S.modelValue, (e) => {
|
|
264
|
-
O.value = e;
|
|
265
|
-
}), _(() => S.open, (e) => {
|
|
266
|
-
e ? X(!1) : Z(!1, !1);
|
|
267
|
-
}, { immediate: !0 }), _(() => S.disabled, (e) => {
|
|
268
|
-
e && Z(!1, !1);
|
|
269
|
-
}), re(() => {
|
|
270
|
-
F = S.modelValue, N.value = U(), P = w.value.ownerDocument, P.addEventListener("pointerdown", $), P.addEventListener("focusin", $), E.value.form?.addEventListener("reset", ze);
|
|
271
|
-
}), ne(() => {
|
|
272
|
-
P.removeEventListener("pointerdown", $), P.removeEventListener("focusin", $);
|
|
273
|
-
}), (e, a) => (f(), s("div", te({
|
|
274
|
-
ref_key: "root",
|
|
275
|
-
ref: w
|
|
276
|
-
}, {
|
|
277
|
-
...g(x),
|
|
278
|
-
id: g(xe) ? void 0 : g(x).id
|
|
279
|
-
}, { class: ["kima-date-picker", {
|
|
280
|
-
"kima-date-picker--open": k.value,
|
|
281
|
-
"kima-date-picker--disabled": t.disabled
|
|
282
|
-
}] }), [
|
|
283
|
-
c("div", {
|
|
284
|
-
ref_key: "control",
|
|
285
|
-
ref: D,
|
|
286
|
-
class: "kima-date-picker__control",
|
|
287
|
-
"aria-disabled": t.disabled || void 0
|
|
288
|
-
}, [c("button", {
|
|
289
|
-
id: Se,
|
|
290
|
-
ref_key: "trigger",
|
|
291
|
-
ref: T,
|
|
292
|
-
class: "kima-date-picker__trigger",
|
|
293
|
-
type: "button",
|
|
294
|
-
role: "combobox",
|
|
295
|
-
"aria-haspopup": "grid",
|
|
296
|
-
"aria-expanded": k.value,
|
|
297
|
-
"aria-controls": L,
|
|
298
|
-
"aria-label": g(x)["aria-label"] || g(x).ariaLabel || t.label || t.placeholder,
|
|
299
|
-
"aria-required": t.required || void 0,
|
|
300
|
-
disabled: t.disabled,
|
|
301
|
-
onClick: Ne,
|
|
302
|
-
onKeydown: Ue
|
|
303
|
-
}, [c("span", { class: d(["kima-date-picker__trigger-label", { "kima-date-picker__trigger-label--placeholder": !O.value }]) }, h(De.value), 3), l(n, {
|
|
304
|
-
class: "kima-date-picker__icon",
|
|
305
|
-
icon: g(le),
|
|
306
|
-
size: 20,
|
|
307
|
-
"aria-hidden": "true"
|
|
308
|
-
}, null, 8, ["icon"])], 40, fe), l(i, { name: "kima-fade" }, {
|
|
309
|
-
default: v(() => [t.clearable && O.value ? (f(), s("button", {
|
|
310
|
-
key: 0,
|
|
311
|
-
class: "kima-date-picker__clear",
|
|
312
|
-
type: "button",
|
|
313
|
-
"aria-label": t.clearLabel,
|
|
314
|
-
title: t.clearLabel,
|
|
315
|
-
disabled: t.disabled,
|
|
316
|
-
onClick: y(Re, ["stop"])
|
|
317
|
-
}, [l(n, {
|
|
318
|
-
icon: g(ue),
|
|
319
|
-
size: 18,
|
|
320
|
-
"aria-hidden": "true"
|
|
321
|
-
}, null, 8, ["icon"])], 8, pe)) : o("", !0)]),
|
|
322
|
-
_: 1
|
|
323
|
-
})], 8, de),
|
|
324
|
-
c("input", {
|
|
325
|
-
ref_key: "nativeInput",
|
|
326
|
-
ref: E,
|
|
327
|
-
class: "kima-date-picker__native",
|
|
328
|
-
type: "text",
|
|
329
|
-
name: t.name,
|
|
330
|
-
value: O.value || "",
|
|
331
|
-
required: t.required,
|
|
332
|
-
disabled: t.disabled,
|
|
333
|
-
tabindex: "-1",
|
|
334
|
-
"aria-hidden": "true",
|
|
335
|
-
onInput: a[0] ||= y(() => {}, ["stop"]),
|
|
336
|
-
onChange: a[1] ||= y(() => {}, ["stop"]),
|
|
337
|
-
onInvalid: Be
|
|
338
|
-
}, null, 40, me),
|
|
339
|
-
l(i, {
|
|
340
|
-
name: "kima-popup",
|
|
341
|
-
onBeforeEnter: a[4] ||= (e) => {
|
|
342
|
-
e.inert = !1, e.removeAttribute("aria-hidden");
|
|
343
|
-
},
|
|
344
|
-
onBeforeLeave: a[5] ||= (e) => {
|
|
345
|
-
e.inert = !0, e.setAttribute("aria-hidden", "true");
|
|
346
|
-
}
|
|
347
|
-
}, {
|
|
348
|
-
default: v(() => [k.value ? (f(), s("div", {
|
|
349
|
-
key: 0,
|
|
350
|
-
class: "kima-date-picker__popup",
|
|
351
|
-
onKeydown: We
|
|
352
|
-
}, [c("div", he, [
|
|
353
|
-
c("button", {
|
|
354
|
-
class: "kima-date-picker__nav",
|
|
355
|
-
type: "button",
|
|
356
|
-
"aria-label": t.previousMonthLabel,
|
|
357
|
-
title: t.previousMonthLabel,
|
|
358
|
-
disabled: t.disabled || !je.value,
|
|
359
|
-
onClick: a[2] ||= (e) => He(-1)
|
|
360
|
-
}, [l(n, {
|
|
361
|
-
icon: g(se),
|
|
362
|
-
size: 18,
|
|
363
|
-
"aria-hidden": "true"
|
|
364
|
-
}, null, 8, ["icon"])], 8, ge),
|
|
365
|
-
c("span", {
|
|
366
|
-
id: R,
|
|
367
|
-
class: "kima-date-picker__month"
|
|
368
|
-
}, [l(i, {
|
|
369
|
-
name: "kima-fade",
|
|
370
|
-
mode: "out-in"
|
|
371
|
-
}, {
|
|
372
|
-
default: v(() => [(f(), s("span", { key: Y.value }, h(Y.value), 1))]),
|
|
373
|
-
_: 1
|
|
374
|
-
})]),
|
|
375
|
-
c("button", {
|
|
376
|
-
class: "kima-date-picker__nav",
|
|
377
|
-
type: "button",
|
|
378
|
-
"aria-label": t.nextMonthLabel,
|
|
379
|
-
title: t.nextMonthLabel,
|
|
380
|
-
disabled: t.disabled || !Me.value,
|
|
381
|
-
onClick: a[3] ||= (e) => He(1)
|
|
382
|
-
}, [l(n, {
|
|
383
|
-
icon: g(ce),
|
|
384
|
-
size: 18,
|
|
385
|
-
"aria-hidden": "true"
|
|
386
|
-
}, null, 8, ["icon"])], 8, _e)
|
|
387
|
-
]), l(i, {
|
|
388
|
-
name: "kima-fade",
|
|
389
|
-
onBeforeEnter: Pe,
|
|
390
|
-
onBeforeLeave: Fe
|
|
391
|
-
}, {
|
|
392
|
-
default: v(() => [(f(), s("div", {
|
|
393
|
-
id: L,
|
|
394
|
-
key: `${A.value}-${j.value}`,
|
|
395
|
-
class: "kima-date-picker__grid",
|
|
396
|
-
role: "grid",
|
|
397
|
-
"aria-labelledby": R
|
|
398
|
-
}, [c("div", ve, [(f(!0), s(r, null, m(Oe.value, (e, t) => (f(), s("span", {
|
|
399
|
-
key: t,
|
|
400
|
-
class: "kima-date-picker__weekday",
|
|
401
|
-
role: "columnheader"
|
|
402
|
-
}, h(e), 1))), 128))]), (f(!0), s(r, null, m(Ae.value, (e, t) => (f(), s("div", {
|
|
403
|
-
key: t,
|
|
404
|
-
class: "kima-date-picker__row",
|
|
405
|
-
role: "row"
|
|
406
|
-
}, [(f(!0), s(r, null, m(e, (e) => (f(), s("div", {
|
|
407
|
-
key: e.iso,
|
|
408
|
-
class: "kima-date-picker__cell",
|
|
409
|
-
role: "gridcell",
|
|
410
|
-
"aria-selected": e.iso === O.value
|
|
411
|
-
}, [c("button", {
|
|
412
|
-
id: `${L}-day-${e.iso}`,
|
|
413
|
-
"data-date": e.iso,
|
|
414
|
-
class: d(["kima-date-picker__day", {
|
|
415
|
-
"kima-date-picker__day--outside": e.outside,
|
|
416
|
-
"kima-date-picker__day--today": e.iso === N.value,
|
|
417
|
-
"kima-date-picker__day--selected": e.iso === O.value
|
|
418
|
-
}]),
|
|
419
|
-
type: "button",
|
|
420
|
-
"aria-label": e.label,
|
|
421
|
-
"aria-current": e.iso === N.value ? "date" : void 0,
|
|
422
|
-
disabled: e.disabled,
|
|
423
|
-
tabindex: e.iso === M.value ? 0 : -1,
|
|
424
|
-
onClick: (t) => Le(e)
|
|
425
|
-
}, h(e.day), 11, be)], 8, ye))), 128))]))), 128))]))]),
|
|
426
|
-
_: 1
|
|
427
|
-
})], 32)) : o("", !0)]),
|
|
428
|
-
_: 1
|
|
429
|
-
})
|
|
430
|
-
], 16));
|
|
431
|
-
}
|
|
432
|
-
}), [["__scopeId", "data-v-f55122f3"]]);
|
|
433
|
-
export { b as default };
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
import { useNativeSlots as e } from "../../utils/native-slots.js";
|
|
2
|
-
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
import n from "./icon.ce.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as ee, mergeProps as te, nextTick as s, normalizeStyle as ne, onBeforeUnmount as re, onMounted as ie, openBlock as c, ref as l, renderSlot as u, toDisplayString as d, unref as f, useAttrs as ae, useId as p, watch as m, withModifiers as h } from "vue";
|
|
6
|
-
import { Cancel01Icon as oe } from "@hugeicons/core-free-icons";
|
|
7
|
-
// src/components/core/drawer.ce.vue
|
|
8
|
-
var se = ["aria-labelledby", "aria-describedby"], ce = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "kima-drawer__header"
|
|
11
|
-
}, le = { class: "kima-drawer__heading" }, g = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "kima-drawer__header-slot"
|
|
14
|
-
}, ue = {
|
|
15
|
-
key: 2,
|
|
16
|
-
class: "kima-drawer__body"
|
|
17
|
-
}, de = {
|
|
18
|
-
key: 3,
|
|
19
|
-
class: "kima-drawer__footer"
|
|
20
|
-
}, _ = /*#__PURE__*/ t(/* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
21
|
-
__name: "drawer.ce",
|
|
22
|
-
props: {
|
|
23
|
-
open: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: !1
|
|
26
|
-
},
|
|
27
|
-
placement: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: "bottom"
|
|
30
|
-
},
|
|
31
|
-
description: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: ""
|
|
34
|
-
},
|
|
35
|
-
closeOnEscape: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: !0
|
|
38
|
-
},
|
|
39
|
-
closeOnBackdrop: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: !0
|
|
42
|
-
},
|
|
43
|
-
snapPoints: {
|
|
44
|
-
type: Array,
|
|
45
|
-
default: () => []
|
|
46
|
-
},
|
|
47
|
-
activeSnapPoint: {
|
|
48
|
-
type: Number,
|
|
49
|
-
default: null
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
emits: [
|
|
53
|
-
"update:open",
|
|
54
|
-
"close",
|
|
55
|
-
"update:activeSnapPoint"
|
|
56
|
-
],
|
|
57
|
-
setup(t, { emit: _ }) {
|
|
58
|
-
let v = t, y = _, b = ae(), x = l(null), S = l(null), { hasNativeSlot: C, isCustomElement: w } = e(x), fe = r(() => w ? {
|
|
59
|
-
...b,
|
|
60
|
-
id: void 0
|
|
61
|
-
} : b), T = l(v.open), E = r(() => [
|
|
62
|
-
"bottom",
|
|
63
|
-
"left",
|
|
64
|
-
"right"
|
|
65
|
-
].includes(v.placement) ? v.placement : "bottom"), D = p(), O = `kima-drawer-title-${D}`, k = `kima-drawer-description-${D}`, A = l(0), j = l(!1), M = 0, N = r(() => E.value !== "bottom" || !v.snapPoints.length ? [] : [...new Set(v.snapPoints.map(Number))].filter((e) => Number.isFinite(e) && e > 0 && e <= 1).sort((e, t) => e - t)), P = l(null), F = r(() => v.activeSnapPoint == null ? P.value == null ? N.value[0] ?? null : P.value : v.activeSnapPoint), I = l(typeof window > "u" ? 0 : window.innerHeight);
|
|
66
|
-
function L() {
|
|
67
|
-
I.value = window.innerHeight;
|
|
68
|
-
}
|
|
69
|
-
let R = r(() => {
|
|
70
|
-
if (E.value !== "bottom" || F.value == null) return null;
|
|
71
|
-
let e = F.value * I.value;
|
|
72
|
-
return j.value ? Math.max(0, e - A.value) : e;
|
|
73
|
-
});
|
|
74
|
-
function z(e) {
|
|
75
|
-
E.value === "bottom" && e.button === 0 && (j.value = !0, M = e.clientY, e.currentTarget.setPointerCapture(e.pointerId));
|
|
76
|
-
}
|
|
77
|
-
function B(e) {
|
|
78
|
-
if (!j.value) return;
|
|
79
|
-
let t = e.clientY - M;
|
|
80
|
-
A.value = N.value.length ? t : Math.max(0, t);
|
|
81
|
-
}
|
|
82
|
-
function V() {
|
|
83
|
-
if (!j.value) return;
|
|
84
|
-
j.value = !1;
|
|
85
|
-
let e = A.value;
|
|
86
|
-
if (A.value = 0, E.value !== "bottom") return;
|
|
87
|
-
if (!N.value.length) {
|
|
88
|
-
e > (S.value?.offsetHeight ?? 300) * .4 && Q("drag");
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
let t = I.value || 1, n = F.value * t - e;
|
|
92
|
-
n < N.value[0] * t * .6 ? Q("drag") : H(N.value.reduce((e, r) => Math.abs(r * t - n) < Math.abs(e * t - n) ? r : e));
|
|
93
|
-
}
|
|
94
|
-
function H(e) {
|
|
95
|
-
P.value = e, y("update:activeSnapPoint", e);
|
|
96
|
-
}
|
|
97
|
-
let pe = r(() => {
|
|
98
|
-
let e = {};
|
|
99
|
-
if (G.value && (e.transform = U.value, G.value === "entering" && (e.transition = "none")), E.value !== "bottom") return e;
|
|
100
|
-
if (N.value.length) {
|
|
101
|
-
let t = R.value;
|
|
102
|
-
return t != null && (e.height = `${t}px`, j.value && (e.transition = "none")), e;
|
|
103
|
-
}
|
|
104
|
-
return !G.value && A.value > 0 && (e.transform = `translateY(${A.value}px)`, j.value && (e.transition = "none")), e;
|
|
105
|
-
}), U = l("translateY(100%)");
|
|
106
|
-
function W() {
|
|
107
|
-
let e = S.value;
|
|
108
|
-
if (!e) return;
|
|
109
|
-
let { width: t, height: n } = e.getBoundingClientRect();
|
|
110
|
-
E.value === "bottom" ? U.value = `translateY(${n}px)` : E.value === "right" ? U.value = `translateX(${t}px)` : U.value = `translateX(-${t}px)`;
|
|
111
|
-
}
|
|
112
|
-
let G = l(""), me = r(() => G.value ? `kima-drawer--${G.value}` : ""), K = 0, q, J = !1, Y = "";
|
|
113
|
-
function X(e) {
|
|
114
|
-
if (e === J) return;
|
|
115
|
-
J = e;
|
|
116
|
-
let t = document.documentElement;
|
|
117
|
-
if (e) {
|
|
118
|
-
let e = window.innerWidth - t.clientWidth;
|
|
119
|
-
Y = t.style.paddingRight, e > 0 && (t.style.paddingRight = `${e}px`), t.style.overflowY = "hidden";
|
|
120
|
-
} else t.style.overflowY = "", t.style.paddingRight = Y, Y = "";
|
|
121
|
-
}
|
|
122
|
-
function Z() {
|
|
123
|
-
return new Promise((e) => {
|
|
124
|
-
requestAnimationFrame(() => requestAnimationFrame(e));
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
async function he(e) {
|
|
128
|
-
let t, n = new Promise((e) => {
|
|
129
|
-
t = e;
|
|
130
|
-
});
|
|
131
|
-
q = t;
|
|
132
|
-
try {
|
|
133
|
-
for (; e === K && S.value;) {
|
|
134
|
-
let e = S.value.getAnimations().filter((e) => e.transitionProperty === "transform" && e.playState !== "finished");
|
|
135
|
-
if (!e.length) return;
|
|
136
|
-
await Promise.race([Promise.allSettled(e.map((e) => e.finished)), n]);
|
|
137
|
-
}
|
|
138
|
-
} finally {
|
|
139
|
-
q === t && (q = void 0);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
async function ge() {
|
|
143
|
-
let e = x.value;
|
|
144
|
-
if (!e) return;
|
|
145
|
-
let t = ++K;
|
|
146
|
-
q?.(), e.open || (X(!0), e.showModal()), W(), G.value = "entering", await s(), await Z(), t === K && G.value === "entering" && (G.value = "");
|
|
147
|
-
}
|
|
148
|
-
async function _e() {
|
|
149
|
-
let e = x.value;
|
|
150
|
-
if (!e?.open) return;
|
|
151
|
-
let t = ++K;
|
|
152
|
-
W(), G.value = "leaving", await s(), t === K && (await he(t), t === K && (await Z(), t === K && (e.open && e.close(), await s(), t === K && (G.value = "", N.value.length && v.activeSnapPoint == null && (P.value = null), X(!1)))));
|
|
153
|
-
}
|
|
154
|
-
function Q(e = "close") {
|
|
155
|
-
T.value && (A.value = 0, T.value = !1, y("update:open", !1), y("close", e));
|
|
156
|
-
}
|
|
157
|
-
function $() {
|
|
158
|
-
x.value && (T.value ? ge() : _e());
|
|
159
|
-
}
|
|
160
|
-
m(() => v.open, (e) => {
|
|
161
|
-
T.value = e;
|
|
162
|
-
});
|
|
163
|
-
function ve(e) {
|
|
164
|
-
e.preventDefault(), v.closeOnEscape && Q("escape");
|
|
165
|
-
}
|
|
166
|
-
function ye() {
|
|
167
|
-
x.value && !x.value.open && (X(!1), Q("native"));
|
|
168
|
-
}
|
|
169
|
-
function be(e) {
|
|
170
|
-
if (e.key !== "Tab" || !x.value) return;
|
|
171
|
-
let t = [...x.value.querySelectorAll("button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex='-1'])")];
|
|
172
|
-
if (!t.length) return;
|
|
173
|
-
let n = t[0], r = t[t.length - 1];
|
|
174
|
-
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
|
|
175
|
-
}
|
|
176
|
-
return m(T, $, { flush: "post" }), ie(() => {
|
|
177
|
-
$(), window.addEventListener("resize", L);
|
|
178
|
-
}), re(() => {
|
|
179
|
-
++K, q?.(), S.value?.getAnimations().forEach((e) => e.cancel()), window.removeEventListener("resize", L), x.value?.open && x.value.close(), X(!1);
|
|
180
|
-
}), (e, r) => (c(), a("dialog", te({
|
|
181
|
-
ref_key: "dialog",
|
|
182
|
-
ref: x
|
|
183
|
-
}, fe.value, {
|
|
184
|
-
title: void 0,
|
|
185
|
-
class: ["kima-drawer", [
|
|
186
|
-
`kima-drawer--${E.value}`,
|
|
187
|
-
{ "kima-drawer--snapping": N.value.length > 0 },
|
|
188
|
-
me.value
|
|
189
|
-
]],
|
|
190
|
-
"aria-labelledby": f(b).title ? O : f(b)["aria-labelledby"],
|
|
191
|
-
"aria-describedby": [f(b)["aria-describedby"], t.description ? k : void 0].filter(Boolean).join(" ") || void 0,
|
|
192
|
-
onCancel: h(ve, ["stop"]),
|
|
193
|
-
onClose: h(ye, ["stop"]),
|
|
194
|
-
onKeydown: be,
|
|
195
|
-
onClick: r[1] ||= h((e) => t.closeOnBackdrop && Q("backdrop"), ["self"])
|
|
196
|
-
}), [o("div", {
|
|
197
|
-
ref_key: "panel",
|
|
198
|
-
ref: S,
|
|
199
|
-
class: "kima-drawer__panel",
|
|
200
|
-
style: ne(pe.value)
|
|
201
|
-
}, [
|
|
202
|
-
E.value === "bottom" ? (c(), a("div", {
|
|
203
|
-
key: 0,
|
|
204
|
-
class: "kima-drawer__handle",
|
|
205
|
-
"aria-hidden": "true",
|
|
206
|
-
onPointerdown: z,
|
|
207
|
-
onPointermove: B,
|
|
208
|
-
onPointerup: V,
|
|
209
|
-
onPointercancel: V
|
|
210
|
-
}, null, 32)) : i("", !0),
|
|
211
|
-
f(b).title || e.$slots.header || f(C)("header") ? (c(), a("header", ce, [o("div", le, [f(b).title ? (c(), a("h2", {
|
|
212
|
-
key: 0,
|
|
213
|
-
id: O,
|
|
214
|
-
class: "kima-drawer__title"
|
|
215
|
-
}, d(f(b).title), 1)) : i("", !0), e.$slots.header || f(C)("header") ? (c(), a("div", g, [u(e.$slots, "header", {}, void 0, !0)])) : i("", !0)]), o("button", {
|
|
216
|
-
class: "kima-drawer__close",
|
|
217
|
-
type: "button",
|
|
218
|
-
"aria-label": "关闭",
|
|
219
|
-
onClick: r[0] ||= (e) => Q("button")
|
|
220
|
-
}, [ee(n, {
|
|
221
|
-
icon: f(oe),
|
|
222
|
-
size: 20,
|
|
223
|
-
color: "currentColor"
|
|
224
|
-
}, null, 8, ["icon"])])])) : i("", !0),
|
|
225
|
-
t.description || e.$slots.default || f(C)("default") ? (c(), a("div", ue, [t.description ? (c(), a("p", {
|
|
226
|
-
key: 0,
|
|
227
|
-
id: k,
|
|
228
|
-
class: "kima-drawer__description"
|
|
229
|
-
}, d(t.description), 1)) : i("", !0), u(e.$slots, "default", {}, void 0, !0)])) : i("", !0),
|
|
230
|
-
e.$slots.footer || f(C)("footer") ? (c(), a("footer", de, [u(e.$slots, "footer", {}, void 0, !0)])) : i("", !0)
|
|
231
|
-
], 4)], 16, se));
|
|
232
|
-
}
|
|
233
|
-
}), [["__scopeId", "data-v-13f2f783"]]);
|
|
234
|
-
export { _ as default };
|