@well-insight/ui 0.1.10 → 0.1.11
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/CHANGELOG.md +50 -0
- package/dist/{Button-B6-YxpOQ.js → Button-tnrMSwNg.js} +3 -7
- package/dist/{Checkbox-BvlOYFGs.js → Checkbox-CoovLjt_.js} +1 -1
- package/dist/{Icon-B6gOD07E.js → Icon-DHGs8l-M.js} +27 -1
- package/dist/Pagination-UvgyUKB1.js +155 -0
- package/dist/{ProgressSpinner-YThgaSzb.js → ProgressSpinner-BTijCc7l.js} +1 -1
- package/dist/accordion/style.css +4 -5
- package/dist/auto-complete/index.js +106 -99
- package/dist/auto-complete/style.css +4 -5
- package/dist/avatar/index.js +1 -1
- package/dist/avatar/style.css +4 -5
- package/dist/badge/style.css +4 -5
- package/dist/block-ui/style.css +4 -5
- package/dist/breadcrumb/index.js +1 -1
- package/dist/breadcrumb/style.css +4 -5
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +4 -5
- package/dist/card/style.css +4 -5
- package/dist/carousel/index.js +61 -54
- package/dist/carousel/style.css +43 -5
- package/dist/carousel/style.js +1 -0
- package/dist/cascade-select/index.js +143 -76
- package/dist/cascade-select/style.css +76 -10
- package/dist/cascade-select/style.js +1 -0
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox/style.css +4 -5
- package/dist/chip/index.js +32 -29
- package/dist/chip/style.css +4 -5
- package/dist/command-menu/index.js +2 -2
- package/dist/command-menu/style.css +4 -5
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts +2 -0
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/types.d.ts +1 -0
- package/dist/components/AutoComplete/types.d.ts.map +1 -1
- package/dist/components/Button/Button.vue.d.ts +0 -1
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Button/types.d.ts +0 -2
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts +2 -2
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +6 -0
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
- package/dist/components/CascadeSelect/styles.css +33 -5
- package/dist/components/CascadeSelect/types.d.ts +11 -0
- package/dist/components/CascadeSelect/types.d.ts.map +1 -1
- package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.css +33 -8
- package/dist/components/DatePicker/types.d.ts +1 -0
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts +3 -3
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Divider/types.d.ts +0 -5
- package/dist/components/Divider/types.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +2 -2
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts +2 -2
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
- package/dist/components/Fieldset/Fieldset.vue.d.ts +4 -4
- package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
- package/dist/components/FileUpload/styles.css +2 -2
- package/dist/components/FloatLabel/FloatLabel.vue.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
- package/dist/components/Icon/icons.d.ts +32 -0
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts +0 -1
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/styles.css +3 -5
- package/dist/components/Input/types.d.ts +1 -3
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.vue.d.ts.map +1 -1
- package/dist/components/InputOtp/InputOtp.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/InputPassword.vue.d.ts +4 -4
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputTags/InputTags.vue.d.ts.map +1 -1
- package/dist/components/Layout/Layout.vue.d.ts +1 -4
- package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutContent.vue.d.ts +1 -4
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutFooter.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutHeader.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutSider.vue.d.ts +1 -4
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +9 -0
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -0
- package/dist/components/Layout/composables/useLayoutScroll.d.ts +6 -0
- package/dist/components/Layout/composables/useLayoutScroll.d.ts.map +1 -0
- package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts +16 -0
- package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts.map +1 -0
- package/dist/components/Layout/styles.css +19 -49
- package/dist/components/Layout/types.d.ts +0 -22
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Layout/utils.d.ts +3 -0
- package/dist/components/Layout/utils.d.ts.map +1 -0
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
- package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Panel/Panel.vue.d.ts +3 -3
- package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Popover/styles.css +41 -0
- package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
- package/dist/components/Rating/styles.css +28 -23
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +1 -1
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/styles.css +8 -108
- package/dist/components/Select/types.d.ts +3 -3
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
- package/dist/components/Slider/types.d.ts +2 -0
- package/dist/components/Slider/types.d.ts.map +1 -1
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/Table/Table.vue.d.ts +9 -9
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts +3 -3
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Terminal/styles.css +8 -8
- package/dist/components/Textarea/Textarea.vue.d.ts +0 -2
- package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/components/Textarea/styles.css +1 -2
- package/dist/components/Textarea/types.d.ts +1 -5
- package/dist/components/Textarea/types.d.ts.map +1 -1
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +21 -12
- package/dist/components/TreeTable/TreeTableRow.vue.d.ts.map +1 -1
- package/dist/{config-DWwce9jA.js → config-CTLkobga.js} +1 -0
- package/dist/config-provider/index.js +1 -1
- package/dist/config-provider/style.css +7 -10
- package/dist/confirm-dialog/index.js +4 -4
- package/dist/confirm-dialog/style.css +4 -5
- package/dist/confirm-popup/index.js +62 -77
- package/dist/confirm-popup/style.css +4 -5
- package/dist/context-menu/index.js +69 -61
- package/dist/context-menu/style.css +4 -5
- package/dist/data-view/index.js +1 -1
- package/dist/data-view/style.css +4 -5
- package/dist/date-picker/index.js +144 -137
- package/dist/date-picker/style.css +76 -13
- package/dist/date-picker/style.js +1 -0
- package/dist/dialog/index.js +76 -70
- package/dist/dialog/style.css +4 -5
- package/dist/divider/index.js +1 -2
- package/dist/divider/style.css +4 -5
- package/dist/dock/style.css +4 -5
- package/dist/drawer/index.js +49 -45
- package/dist/drawer/style.css +43 -5
- package/dist/drawer/style.js +1 -0
- package/dist/dropdown/index.js +98 -97
- package/dist/dropdown/style.css +4 -5
- package/dist/fieldset/index.js +16 -12
- package/dist/fieldset/style.css +43 -5
- package/dist/fieldset/style.js +1 -0
- package/dist/file-upload/index.js +2 -2
- package/dist/file-upload/style.css +6 -7
- package/dist/flex/index.js +1 -1
- package/dist/flex/style.css +4 -5
- package/dist/float-label/index.js +15 -4
- package/dist/float-label/style.css +4 -5
- package/dist/fluid/style.css +4 -5
- package/dist/form/index.js +1 -1
- package/dist/form/style.css +4 -5
- package/dist/gallery/index.js +41 -34
- package/dist/gallery/style.css +43 -5
- package/dist/gallery/style.js +1 -0
- package/dist/grid/style.css +4 -5
- package/dist/icon/index.js +1 -1
- package/dist/icon/style.css +4 -5
- package/dist/icon-Cg5TeFqe.js +7 -0
- package/dist/icon-field/style.css +4 -5
- package/dist/index.js +2783 -2643
- package/dist/inplace/style.css +4 -5
- package/dist/input/index.js +65 -66
- package/dist/input/style.css +46 -10
- package/dist/input/style.js +1 -0
- package/dist/input-color/index.js +1 -1
- package/dist/input-color/style.css +4 -5
- package/dist/input-group/style.css +4 -5
- package/dist/input-number/index.js +82 -66
- package/dist/input-number/style.css +43 -5
- package/dist/input-number/style.js +1 -0
- package/dist/input-otp/index.js +3 -3
- package/dist/input-otp/style.css +4 -5
- package/dist/input-password/index.js +46 -43
- package/dist/input-password/style.css +4 -5
- package/dist/input-tags/index.js +50 -46
- package/dist/input-tags/style.css +43 -5
- package/dist/input-tags/style.js +1 -0
- package/dist/key-CaQYVkjh.js +6 -0
- package/dist/knob/style.css +4 -5
- package/dist/label/style.css +4 -5
- package/dist/layout/index.js +196 -271
- package/dist/layout/style.css +48 -140
- package/dist/layout/style.js +1 -1
- package/dist/listbox/index.js +1 -1
- package/dist/listbox/style.css +4 -5
- package/dist/locale/en-US.d.ts.map +1 -1
- package/dist/locale/types.d.ts +1 -0
- package/dist/locale/types.d.ts.map +1 -1
- package/dist/locale/zh-CN.d.ts.map +1 -1
- package/dist/{locale-CYkJyRd1.js → locale-DxAvgqgB.js} +1 -1
- package/dist/mega-menu/index.js +47 -49
- package/dist/mega-menu/style.css +4 -5
- package/dist/menu/index.js +81 -76
- package/dist/menu/style.css +4 -5
- package/dist/menubar/index.js +75 -73
- package/dist/menubar/style.css +4 -5
- package/dist/message/index.js +3 -3
- package/dist/message/style.css +4 -5
- package/dist/meter-group/style.css +4 -5
- package/dist/order-list/index.js +2 -2
- package/dist/order-list/style.css +4 -5
- package/dist/overlayPlacement-CN1tuC95.js +51 -0
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +43 -5
- package/dist/pagination/style.js +1 -0
- package/dist/panel/index.js +27 -23
- package/dist/panel/style.css +43 -5
- package/dist/panel/style.js +1 -0
- package/dist/pick-list/index.js +2 -2
- package/dist/pick-list/style.css +4 -5
- package/dist/popover/index.js +79 -100
- package/dist/popover/style.css +45 -5
- package/dist/progress-bar/style.css +4 -5
- package/dist/progress-spinner/index.js +1 -1
- package/dist/progress-spinner/style.css +4 -5
- package/dist/radio/index.js +1 -1
- package/dist/radio/style.css +4 -5
- package/dist/rating/index.js +54 -44
- package/dist/rating/style.css +71 -28
- package/dist/rating/style.js +1 -0
- package/dist/scroll-top/index.js +45 -41
- package/dist/scroll-top/style.css +43 -5
- package/dist/scroll-top/style.js +1 -0
- package/dist/scrollbar/index.js +382 -2
- package/dist/scrollbar/style.css +4 -5
- package/dist/select/index.js +149 -141
- package/dist/select/style.css +51 -113
- package/dist/select/style.js +1 -0
- package/dist/select-button/index.js +1 -1
- package/dist/select-button/style.css +4 -5
- package/dist/shared/componentDefaults.d.ts +5 -1
- package/dist/shared/componentDefaults.d.ts.map +1 -1
- package/dist/shared/menu/icon.d.ts +4 -0
- package/dist/shared/menu/icon.d.ts.map +1 -0
- package/dist/shared/menu/index.d.ts +4 -0
- package/dist/shared/menu/index.d.ts.map +1 -0
- package/dist/shared/menu/key.d.ts +4 -0
- package/dist/shared/menu/key.d.ts.map +1 -0
- package/dist/shared/menu/types.d.ts +11 -0
- package/dist/shared/menu/types.d.ts.map +1 -0
- package/dist/shared/overlayPlacement.d.ts +12 -0
- package/dist/shared/overlayPlacement.d.ts.map +1 -0
- package/dist/sidebar/index.js +1 -1
- package/dist/sidebar/style.css +4 -5
- package/dist/skeleton/style.css +4 -5
- package/dist/slider/index.js +6 -3
- package/dist/slider/style.css +4 -5
- package/dist/space/index.js +1 -1
- package/dist/space/style.css +4 -5
- package/dist/speed-dial/index.js +55 -66
- package/dist/speed-dial/style.css +43 -5
- package/dist/speed-dial/style.js +1 -0
- package/dist/split-button/index.js +66 -63
- package/dist/split-button/style.css +43 -5
- package/dist/split-button/style.js +1 -0
- package/dist/splitter/index.js +1 -1
- package/dist/splitter/style.css +4 -5
- package/dist/stepper/style.css +4 -5
- package/dist/styles/base.css +4 -5
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/switch/style.css +4 -5
- package/dist/table/index.js +41 -35
- package/dist/table/style.css +4 -5
- package/dist/tabs/index.js +78 -65
- package/dist/tabs/style.css +43 -5
- package/dist/tabs/style.js +1 -0
- package/dist/tag/index.js +31 -28
- package/dist/tag/style.css +4 -5
- package/dist/terminal/index.js +1 -1
- package/dist/terminal/style.css +12 -13
- package/dist/textarea/index.js +69 -75
- package/dist/textarea/style.css +44 -7
- package/dist/textarea/style.js +1 -0
- package/dist/tiered-menu/index.js +66 -59
- package/dist/tiered-menu/style.css +43 -5
- package/dist/tiered-menu/style.js +1 -0
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/style.css +4 -5
- package/dist/toast/index.js +93 -89
- package/dist/toast/style.css +43 -5
- package/dist/toast/style.js +1 -0
- package/dist/toggle-button/index.js +1 -1
- package/dist/toggle-button/style.css +4 -5
- package/dist/toolbar/style.css +4 -5
- package/dist/tooltip/index.js +47 -71
- package/dist/tooltip/style.css +4 -5
- package/dist/tree/index.js +3 -3
- package/dist/tree/style.css +4 -5
- package/dist/tree-select/index.js +164 -155
- package/dist/tree-select/style.css +64 -17
- package/dist/tree-select/style.js +1 -0
- package/dist/tree-table/index.js +34 -30
- package/dist/tree-table/style.css +43 -5
- package/dist/tree-table/style.js +1 -0
- package/dist/virtual-scroller/style.css +4 -5
- package/package.json +4 -1
- package/dist/Pagination-BU-1IY0E.js +0 -148
- package/dist/Scrollbar-D-bR2noX.js +0 -382
package/dist/badge/style.css
CHANGED
|
@@ -480,8 +480,8 @@
|
|
|
480
480
|
font-size: var(--wi-font-size-xs);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.wi-textarea-field__help--
|
|
484
|
-
.wi-select-field__help--
|
|
483
|
+
.wi-textarea-field__help--invalid,
|
|
484
|
+
.wi-select-field__help--invalid {
|
|
485
485
|
color: var(--wi-color-danger);
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -500,9 +500,8 @@
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.wi-textarea--invalid:focus-visible,
|
|
503
|
-
.wi-
|
|
504
|
-
.wi-select--
|
|
505
|
-
.wi-select--error:focus-visible {
|
|
503
|
+
.wi-select--invalid.wi-select--open,
|
|
504
|
+
.wi-select--invalid:focus-visible {
|
|
506
505
|
border-color: var(--wi-color-danger);
|
|
507
506
|
box-shadow: var(--wi-focus-shadow-danger);
|
|
508
507
|
}
|
package/dist/block-ui/style.css
CHANGED
|
@@ -480,8 +480,8 @@
|
|
|
480
480
|
font-size: var(--wi-font-size-xs);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.wi-textarea-field__help--
|
|
484
|
-
.wi-select-field__help--
|
|
483
|
+
.wi-textarea-field__help--invalid,
|
|
484
|
+
.wi-select-field__help--invalid {
|
|
485
485
|
color: var(--wi-color-danger);
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -500,9 +500,8 @@
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.wi-textarea--invalid:focus-visible,
|
|
503
|
-
.wi-
|
|
504
|
-
.wi-select--
|
|
505
|
-
.wi-select--error:focus-visible {
|
|
503
|
+
.wi-select--invalid.wi-select--open,
|
|
504
|
+
.wi-select--invalid:focus-visible {
|
|
506
505
|
border-color: var(--wi-color-danger);
|
|
507
506
|
box-shadow: var(--wi-focus-shadow-danger);
|
|
508
507
|
}
|
package/dist/breadcrumb/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "../locale-
|
|
1
|
+
import { n as e } from "../locale-DxAvgqgB.js";
|
|
2
2
|
import "./style.js";
|
|
3
3
|
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderList as u, renderSlot as d, toDisplayString as f, unref as p } from "vue";
|
|
4
4
|
//#region src/components/Breadcrumb/Breadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -480,8 +480,8 @@
|
|
|
480
480
|
font-size: var(--wi-font-size-xs);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.wi-textarea-field__help--
|
|
484
|
-
.wi-select-field__help--
|
|
483
|
+
.wi-textarea-field__help--invalid,
|
|
484
|
+
.wi-select-field__help--invalid {
|
|
485
485
|
color: var(--wi-color-danger);
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -500,9 +500,8 @@
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.wi-textarea--invalid:focus-visible,
|
|
503
|
-
.wi-
|
|
504
|
-
.wi-select--
|
|
505
|
-
.wi-select--error:focus-visible {
|
|
503
|
+
.wi-select--invalid.wi-select--open,
|
|
504
|
+
.wi-select--invalid:focus-visible {
|
|
506
505
|
border-color: var(--wi-color-danger);
|
|
507
506
|
box-shadow: var(--wi-focus-shadow-danger);
|
|
508
507
|
}
|
package/dist/button/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../Button-
|
|
1
|
+
import { t as e } from "../Button-tnrMSwNg.js";
|
|
2
2
|
import "./style.js";
|
|
3
3
|
import { computed as t, createElementBlock as n, defineComponent as r, normalizeClass as i, openBlock as a, renderSlot as o } from "vue";
|
|
4
4
|
//#region src/components/Button/ButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
package/dist/button/style.css
CHANGED
|
@@ -480,8 +480,8 @@
|
|
|
480
480
|
font-size: var(--wi-font-size-xs);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.wi-textarea-field__help--
|
|
484
|
-
.wi-select-field__help--
|
|
483
|
+
.wi-textarea-field__help--invalid,
|
|
484
|
+
.wi-select-field__help--invalid {
|
|
485
485
|
color: var(--wi-color-danger);
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -500,9 +500,8 @@
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.wi-textarea--invalid:focus-visible,
|
|
503
|
-
.wi-
|
|
504
|
-
.wi-select--
|
|
505
|
-
.wi-select--error:focus-visible {
|
|
503
|
+
.wi-select--invalid.wi-select--open,
|
|
504
|
+
.wi-select--invalid:focus-visible {
|
|
506
505
|
border-color: var(--wi-color-danger);
|
|
507
506
|
box-shadow: var(--wi-focus-shadow-danger);
|
|
508
507
|
}
|
package/dist/card/style.css
CHANGED
|
@@ -480,8 +480,8 @@
|
|
|
480
480
|
font-size: var(--wi-font-size-xs);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.wi-textarea-field__help--
|
|
484
|
-
.wi-select-field__help--
|
|
483
|
+
.wi-textarea-field__help--invalid,
|
|
484
|
+
.wi-select-field__help--invalid {
|
|
485
485
|
color: var(--wi-color-danger);
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -500,9 +500,8 @@
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.wi-textarea--invalid:focus-visible,
|
|
503
|
-
.wi-
|
|
504
|
-
.wi-select--
|
|
505
|
-
.wi-select--error:focus-visible {
|
|
503
|
+
.wi-select--invalid.wi-select--open,
|
|
504
|
+
.wi-select--invalid:focus-visible {
|
|
506
505
|
border-color: var(--wi-color-danger);
|
|
507
506
|
box-shadow: var(--wi-focus-shadow-danger);
|
|
508
507
|
}
|
package/dist/carousel/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "../Icon-DHGs8l-M.js";
|
|
2
|
+
import { n as t } from "../locale-DxAvgqgB.js";
|
|
2
3
|
import "./style.js";
|
|
3
|
-
import { Fragment as
|
|
4
|
+
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, watch as y } from "vue";
|
|
4
5
|
//#region src/components/Carousel/Carousel.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var b = { class: "wi-carousel" }, x = ["aria-label", "disabled"], S = { class: "wi-carousel__main" }, C = { class: "wi-carousel__viewport" }, w = {
|
|
6
7
|
key: 0,
|
|
7
8
|
class: "wi-carousel__indicators"
|
|
8
|
-
},
|
|
9
|
+
}, T = [
|
|
9
10
|
"aria-label",
|
|
10
11
|
"aria-current",
|
|
11
12
|
"onClick"
|
|
12
|
-
],
|
|
13
|
+
], E = ["aria-label", "disabled"], D = /* @__PURE__ */ l({
|
|
13
14
|
__name: "Carousel",
|
|
14
15
|
props: {
|
|
15
16
|
value: {},
|
|
@@ -33,79 +34,85 @@ var v = { class: "wi-carousel" }, y = ["aria-label", "disabled"], b = { class: "
|
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
emits: ["update:page"],
|
|
36
|
-
setup(
|
|
37
|
-
let
|
|
38
|
-
let e =
|
|
39
|
-
return
|
|
37
|
+
setup(l, { emit: D }) {
|
|
38
|
+
let O = l, k = D, A = m(0), j = t(), M = null, N = r(() => Math.max(0, O.value.length - O.numVisible)), P = r(() => Array.from({ length: N.value + 1 }, (e, t) => t)), F = r(() => {
|
|
39
|
+
let e = A.value;
|
|
40
|
+
return O.value.slice(e, e + O.numVisible).map((t, n) => ({
|
|
40
41
|
item: t,
|
|
41
42
|
index: e + n
|
|
42
43
|
}));
|
|
43
44
|
});
|
|
44
|
-
function
|
|
45
|
+
function I(e) {
|
|
45
46
|
let t = e;
|
|
46
|
-
if (
|
|
47
|
-
let n =
|
|
47
|
+
if (O.circular) {
|
|
48
|
+
let n = N.value + 1;
|
|
48
49
|
t = (e % n + n) % n;
|
|
49
|
-
} else t = Math.min(
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
function F() {
|
|
53
|
-
P(O.value - 1);
|
|
54
|
-
}
|
|
55
|
-
function I() {
|
|
56
|
-
P(O.value + 1);
|
|
50
|
+
} else t = Math.min(N.value, Math.max(0, e));
|
|
51
|
+
A.value = t, k("update:page", t);
|
|
57
52
|
}
|
|
58
53
|
function L() {
|
|
59
|
-
|
|
54
|
+
I(A.value - 1);
|
|
60
55
|
}
|
|
61
56
|
function R() {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
I(A.value + 1);
|
|
58
|
+
}
|
|
59
|
+
function z() {
|
|
60
|
+
M !== null && (clearInterval(M), M = null);
|
|
61
|
+
}
|
|
62
|
+
function B() {
|
|
63
|
+
z(), !(!O.autoplay || O.value.length <= O.numVisible) && (M = setInterval(() => {
|
|
64
|
+
if (!O.circular && A.value >= N.value) {
|
|
65
|
+
I(0);
|
|
65
66
|
return;
|
|
66
67
|
}
|
|
67
|
-
|
|
68
|
-
}, Math.max(400,
|
|
68
|
+
R();
|
|
69
|
+
}, Math.max(400, O.interval)));
|
|
69
70
|
}
|
|
70
|
-
return
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
], () =>
|
|
76
|
-
|
|
71
|
+
return y(() => [
|
|
72
|
+
O.autoplay,
|
|
73
|
+
O.interval,
|
|
74
|
+
O.value.length,
|
|
75
|
+
O.numVisible
|
|
76
|
+
], () => B(), { immediate: !0 }), f(z), (t, r) => (p(), a("div", b, [
|
|
77
|
+
l.showArrows ? (p(), a("button", {
|
|
77
78
|
key: 0,
|
|
78
79
|
type: "button",
|
|
79
80
|
class: "wi-carousel__nav wi-carousel__nav--prev",
|
|
80
|
-
"aria-label":
|
|
81
|
-
disabled: !
|
|
82
|
-
onClick:
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
"aria-label": v(j).prev,
|
|
82
|
+
disabled: !l.circular && A.value <= 0,
|
|
83
|
+
onClick: L
|
|
84
|
+
}, [c(e, {
|
|
85
|
+
name: "chevron-left",
|
|
86
|
+
size: "sm"
|
|
87
|
+
})], 8, x)) : i("", !0),
|
|
88
|
+
o("div", S, [o("div", C, [(p(!0), a(n, null, h(F.value, (e) => (p(), a("div", {
|
|
89
|
+
key: e.index,
|
|
86
90
|
class: "wi-carousel__item",
|
|
87
|
-
style:
|
|
88
|
-
}, [
|
|
89
|
-
item:
|
|
90
|
-
index:
|
|
91
|
-
}, () => [
|
|
91
|
+
style: d({ flex: `0 0 ${100 / l.numVisible}%` })
|
|
92
|
+
}, [g(t.$slots, "item", {
|
|
93
|
+
item: e.item,
|
|
94
|
+
index: e.index
|
|
95
|
+
}, () => [s(_(e.item), 1)])], 4))), 128))]), l.showIndicators && P.value.length > 1 ? (p(), a("div", w, [(p(!0), a(n, null, h(P.value, (e) => (p(), a("button", {
|
|
92
96
|
key: e,
|
|
93
97
|
type: "button",
|
|
94
|
-
class:
|
|
98
|
+
class: u(["wi-carousel__indicator", { "wi-carousel__indicator--active": e === A.value }]),
|
|
95
99
|
"aria-label": String(e + 1),
|
|
96
|
-
"aria-current": e ===
|
|
97
|
-
onClick: (t) =>
|
|
98
|
-
}, null, 10,
|
|
99
|
-
|
|
100
|
+
"aria-current": e === A.value ? "true" : void 0,
|
|
101
|
+
onClick: (t) => I(e)
|
|
102
|
+
}, null, 10, T))), 128))])) : i("", !0)]),
|
|
103
|
+
l.showArrows ? (p(), a("button", {
|
|
100
104
|
key: 1,
|
|
101
105
|
type: "button",
|
|
102
106
|
class: "wi-carousel__nav wi-carousel__nav--next",
|
|
103
|
-
"aria-label":
|
|
104
|
-
disabled: !
|
|
105
|
-
onClick:
|
|
106
|
-
},
|
|
107
|
+
"aria-label": v(j).next,
|
|
108
|
+
disabled: !l.circular && A.value >= N.value,
|
|
109
|
+
onClick: R
|
|
110
|
+
}, [c(e, {
|
|
111
|
+
name: "chevron-right",
|
|
112
|
+
size: "sm"
|
|
113
|
+
})], 8, E)) : i("", !0)
|
|
107
114
|
]));
|
|
108
115
|
}
|
|
109
116
|
});
|
|
110
117
|
//#endregion
|
|
111
|
-
export {
|
|
118
|
+
export { D as WiCarousel };
|
package/dist/carousel/style.css
CHANGED
|
@@ -480,8 +480,8 @@
|
|
|
480
480
|
font-size: var(--wi-font-size-xs);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.wi-textarea-field__help--
|
|
484
|
-
.wi-select-field__help--
|
|
483
|
+
.wi-textarea-field__help--invalid,
|
|
484
|
+
.wi-select-field__help--invalid {
|
|
485
485
|
color: var(--wi-color-danger);
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -500,9 +500,8 @@
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.wi-textarea--invalid:focus-visible,
|
|
503
|
-
.wi-
|
|
504
|
-
.wi-select--
|
|
505
|
-
.wi-select--error:focus-visible {
|
|
503
|
+
.wi-select--invalid.wi-select--open,
|
|
504
|
+
.wi-select--invalid:focus-visible {
|
|
506
505
|
border-color: var(--wi-color-danger);
|
|
507
506
|
box-shadow: var(--wi-focus-shadow-danger);
|
|
508
507
|
}
|
|
@@ -750,6 +749,45 @@
|
|
|
750
749
|
line-height: 1;
|
|
751
750
|
}
|
|
752
751
|
|
|
752
|
+
.wi-icon {
|
|
753
|
+
display: inline-flex;
|
|
754
|
+
height: 1rem;
|
|
755
|
+
width: 1rem;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.wi-icon svg {
|
|
759
|
+
height: 100%;
|
|
760
|
+
width: 100%;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.wi-icon--sm,
|
|
764
|
+
.wi-icon--small {
|
|
765
|
+
height: 0.875rem;
|
|
766
|
+
width: 0.875rem;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.wi-icon--md,
|
|
770
|
+
.wi-icon--normal {
|
|
771
|
+
height: 1rem;
|
|
772
|
+
width: 1rem;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.wi-icon--lg,
|
|
776
|
+
.wi-icon--large {
|
|
777
|
+
height: 1.25rem;
|
|
778
|
+
width: 1.25rem;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.wi-icon--spin svg {
|
|
782
|
+
animation: wi-icon-spin 0.8s linear infinite;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
@keyframes wi-icon-spin {
|
|
786
|
+
to {
|
|
787
|
+
transform: rotate(360deg);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
753
791
|
/* —— Media: Carousel —— */
|
|
754
792
|
.wi-carousel {
|
|
755
793
|
--wi-carousel-indicator-size: 0.45rem;
|
package/dist/carousel/style.js
CHANGED
|
@@ -1,129 +1,196 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "../Icon-DHGs8l-M.js";
|
|
2
|
+
import { n as t, t as n } from "../overlay-oR-5MDuE.js";
|
|
3
|
+
import { t as r } from "../overlayPlacement-CN1tuC95.js";
|
|
4
|
+
import { c as ee, i as te, o as ne } from "../config-CTLkobga.js";
|
|
5
|
+
import { n as re } from "../locale-DxAvgqgB.js";
|
|
4
6
|
import "./style.js";
|
|
5
|
-
import { Fragment as
|
|
7
|
+
import { Fragment as i, Teleport as a, Transition as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as ie, onBeforeUnmount as ae, openBlock as g, ref as _, renderList as v, toDisplayString as y, unref as b, watch as x, withCtx as S } from "vue";
|
|
6
8
|
//#region src/components/CascadeSelect/CascadeSelect.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
9
|
+
var C = ["for"], w = [
|
|
10
|
+
"id",
|
|
11
|
+
"disabled",
|
|
12
|
+
"aria-expanded",
|
|
13
|
+
"aria-invalid",
|
|
14
|
+
"aria-describedby"
|
|
15
|
+
], T = { class: "wi-cascadeselect__label" }, E = { class: "wi-select__suffix" }, oe = ["aria-label"], se = ["id"], ce = [
|
|
8
16
|
"disabled",
|
|
9
17
|
"aria-selected",
|
|
10
18
|
"onClick"
|
|
11
|
-
],
|
|
12
|
-
key: 0,
|
|
13
|
-
"aria-hidden": "true"
|
|
14
|
-
}, A = /* @__PURE__ */ m({
|
|
19
|
+
], D = /* @__PURE__ */ p({
|
|
15
20
|
__name: "CascadeSelect",
|
|
16
21
|
props: {
|
|
17
22
|
modelValue: { default: null },
|
|
18
23
|
options: {},
|
|
24
|
+
label: {},
|
|
25
|
+
helpText: {},
|
|
26
|
+
invalid: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
errorMessage: {},
|
|
31
|
+
id: {},
|
|
19
32
|
placeholder: { default: void 0 },
|
|
20
33
|
disabled: {
|
|
21
34
|
type: Boolean,
|
|
22
35
|
default: !1
|
|
23
36
|
},
|
|
37
|
+
required: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !1
|
|
40
|
+
},
|
|
24
41
|
size: {},
|
|
42
|
+
fluid: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: void 0
|
|
45
|
+
},
|
|
46
|
+
clearable: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: void 0
|
|
49
|
+
},
|
|
25
50
|
teleport: {
|
|
26
51
|
type: Boolean,
|
|
27
52
|
default: !0
|
|
28
53
|
},
|
|
29
54
|
appendTo: {}
|
|
30
55
|
},
|
|
31
|
-
emits: ["update:modelValue"],
|
|
32
|
-
setup(
|
|
33
|
-
let
|
|
34
|
-
function
|
|
56
|
+
emits: ["update:modelValue", "clear"],
|
|
57
|
+
setup(p, { emit: D }) {
|
|
58
|
+
let O = p, k = D, A = te("CascadeSelect"), j = ee(), M = re(), N = ne("CascadeSelect", () => O.size), P = _(!1), F = _(null), I = _(null), L = _(null), R = _({}), z = _([]), B = s(() => O.id ?? `wi-cascadeselect-${Math.random().toString(36).slice(2, 8)}`), V = s(() => t(O, j.value.appendTo)), H = s(() => n(O, j.value.appendTo)), U = s(() => O.clearable ?? A.value.clearable ?? !1), W = s(() => O.fluid ?? A.value.fluid ?? !1), G = s(() => O.invalid || !!O.errorMessage), K = s(() => O.errorMessage || O.helpText), le = s(() => !!O.errorMessage || G.value && !!O.helpText), q = s(() => O.modelValue != null), J = s(() => U.value && q.value && !O.disabled), ue = s(() => Y(O.options, O.modelValue) ?? O.placeholder ?? M.value.selectPlaceholder);
|
|
59
|
+
function Y(e, t) {
|
|
60
|
+
if (t == null) return null;
|
|
35
61
|
for (let n of e) {
|
|
36
62
|
if (n.value === t) return n.label;
|
|
37
63
|
if (n.children?.length) {
|
|
38
|
-
let e =
|
|
64
|
+
let e = Y(n.children, t);
|
|
39
65
|
if (e) return e;
|
|
40
66
|
}
|
|
41
67
|
}
|
|
42
68
|
return null;
|
|
43
69
|
}
|
|
44
|
-
function
|
|
45
|
-
if (!
|
|
46
|
-
let e =
|
|
47
|
-
|
|
48
|
-
left: `${e.left}px`,
|
|
70
|
+
function X() {
|
|
71
|
+
if (!I.value) return;
|
|
72
|
+
let e = I.value.getBoundingClientRect(), t = `${e.width}px`;
|
|
73
|
+
R.value = H.value ? r(e, "bottom-start", {
|
|
49
74
|
minWidth: t,
|
|
50
|
-
top: `${e.bottom + 8}px`,
|
|
51
75
|
width: t
|
|
52
|
-
} : {
|
|
76
|
+
}) : {
|
|
53
77
|
minWidth: t,
|
|
54
78
|
width: t
|
|
55
79
|
};
|
|
56
80
|
}
|
|
57
|
-
function
|
|
58
|
-
|
|
81
|
+
function de() {
|
|
82
|
+
O.disabled || (P.value = !P.value, P.value && (z.value = [O.options], m(() => X())));
|
|
59
83
|
}
|
|
60
|
-
function
|
|
84
|
+
function Z(e) {
|
|
85
|
+
e.stopPropagation(), e.preventDefault(), !(O.disabled || !q.value) && (k("update:modelValue", null), k("clear"), I.value?.focus({ preventScroll: !0 }));
|
|
86
|
+
}
|
|
87
|
+
function fe(e, t) {
|
|
61
88
|
if (!e.disabled) {
|
|
62
89
|
if (e.children?.length) {
|
|
63
|
-
|
|
90
|
+
z.value = [...z.value.slice(0, t + 1), e.children], m(() => X());
|
|
64
91
|
return;
|
|
65
92
|
}
|
|
66
|
-
|
|
93
|
+
k("update:modelValue", e.value), P.value = !1;
|
|
67
94
|
}
|
|
68
95
|
}
|
|
69
|
-
function
|
|
96
|
+
function Q(e) {
|
|
70
97
|
let t = e.target;
|
|
71
|
-
|
|
98
|
+
F.value?.contains(t) || L.value?.contains(t) || (P.value = !1);
|
|
72
99
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
100
|
+
function $() {
|
|
101
|
+
P.value && X();
|
|
75
102
|
}
|
|
76
|
-
return
|
|
77
|
-
e ? (document.addEventListener("click",
|
|
78
|
-
}),
|
|
79
|
-
document.removeEventListener("click",
|
|
80
|
-
}), (
|
|
103
|
+
return x(P, (e) => {
|
|
104
|
+
e ? (document.addEventListener("click", Q), H.value && (window.addEventListener("resize", $), window.addEventListener("scroll", $, !0))) : (document.removeEventListener("click", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0));
|
|
105
|
+
}), ae(() => {
|
|
106
|
+
document.removeEventListener("click", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0);
|
|
107
|
+
}), (t, n) => (g(), u("div", {
|
|
81
108
|
ref_key: "root",
|
|
82
|
-
ref:
|
|
83
|
-
class:
|
|
84
|
-
"wi-
|
|
85
|
-
"wi-cascadeselect--
|
|
109
|
+
ref: F,
|
|
110
|
+
class: h(["wi-select-field wi-cascadeselect", [`wi-cascadeselect--${b(N)}`, {
|
|
111
|
+
"wi-select-field--fluid": W.value,
|
|
112
|
+
"wi-cascadeselect--disabled": p.disabled,
|
|
113
|
+
"wi-cascadeselect--open": P.value
|
|
86
114
|
}]])
|
|
87
|
-
}, [
|
|
88
|
-
|
|
89
|
-
ref: R,
|
|
90
|
-
type: "button",
|
|
91
|
-
class: "wi-cascadeselect__trigger",
|
|
92
|
-
disabled: m.disabled,
|
|
93
|
-
"aria-expanded": I.value,
|
|
94
|
-
"aria-haspopup": "listbox",
|
|
95
|
-
onClick: q
|
|
96
|
-
}, [f("span", D, S(W.value), 1), t[0] ||= f("span", {
|
|
97
|
-
class: "wi-cascadeselect__caret",
|
|
98
|
-
"aria-hidden": "true"
|
|
99
|
-
}, "▾", -1)], 8, E), (y(), l(o, {
|
|
100
|
-
to: H.value.to,
|
|
101
|
-
disabled: H.value.disabled
|
|
102
|
-
}, [p(s, { name: "wi-scale-fade" }, {
|
|
103
|
-
default: T(() => [I.value ? (y(), d("div", {
|
|
115
|
+
}, [
|
|
116
|
+
p.label ? (g(), u("label", {
|
|
104
117
|
key: 0,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
118
|
+
class: "wi-select-field__label",
|
|
119
|
+
for: B.value
|
|
120
|
+
}, y(p.label), 9, C)) : l("", !0),
|
|
121
|
+
d("div", { class: h(["wi-cascadeselect__control wi-select__control", {
|
|
122
|
+
"wi-select__control--clearable": J.value,
|
|
123
|
+
"wi-select__control--open": P.value
|
|
124
|
+
}]) }, [d("button", {
|
|
125
|
+
id: B.value,
|
|
126
|
+
ref_key: "trigger",
|
|
127
|
+
ref: I,
|
|
114
128
|
type: "button",
|
|
115
|
-
class:
|
|
116
|
-
"wi-
|
|
117
|
-
"wi-
|
|
129
|
+
class: h(["wi-cascadeselect__trigger", {
|
|
130
|
+
"wi-cascadeselect__trigger--invalid": G.value,
|
|
131
|
+
"wi-cascadeselect__trigger--placeholder": !q.value
|
|
118
132
|
}]),
|
|
119
|
-
disabled:
|
|
120
|
-
|
|
121
|
-
"aria-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
133
|
+
disabled: p.disabled,
|
|
134
|
+
"aria-expanded": P.value,
|
|
135
|
+
"aria-invalid": G.value || void 0,
|
|
136
|
+
"aria-describedby": K.value ? `${B.value}-help` : void 0,
|
|
137
|
+
"aria-haspopup": "listbox",
|
|
138
|
+
onClick: de
|
|
139
|
+
}, [d("span", T, y(ue.value), 1)], 10, w), d("div", E, [J.value ? (g(), u("button", {
|
|
140
|
+
key: 0,
|
|
141
|
+
class: "wi-select__clear",
|
|
142
|
+
type: "button",
|
|
143
|
+
"aria-label": b(M).clear,
|
|
144
|
+
onClick: Z
|
|
145
|
+
}, [f(e, {
|
|
146
|
+
name: "close",
|
|
147
|
+
size: "sm"
|
|
148
|
+
})], 8, oe)) : l("", !0), d("span", {
|
|
149
|
+
class: h(["wi-select__indicator", { "wi-select__indicator--open": P.value }]),
|
|
150
|
+
"aria-hidden": "true"
|
|
151
|
+
}, [f(e, {
|
|
152
|
+
name: "chevron-down",
|
|
153
|
+
size: "sm"
|
|
154
|
+
})], 2)])], 2),
|
|
155
|
+
K.value ? (g(), u("p", {
|
|
156
|
+
key: 1,
|
|
157
|
+
id: `${B.value}-help`,
|
|
158
|
+
class: h(["wi-select-field__help", { "wi-select-field__help--invalid": le.value }])
|
|
159
|
+
}, y(K.value), 11, se)) : l("", !0),
|
|
160
|
+
(g(), c(a, {
|
|
161
|
+
to: V.value.to,
|
|
162
|
+
disabled: V.value.disabled
|
|
163
|
+
}, [f(o, { name: "wi-scale-fade" }, {
|
|
164
|
+
default: S(() => [P.value ? (g(), u("div", {
|
|
165
|
+
key: 0,
|
|
166
|
+
ref_key: "panel",
|
|
167
|
+
ref: L,
|
|
168
|
+
class: h(["wi-cascadeselect__panel", { "wi-cascadeselect__panel--teleported": H.value }]),
|
|
169
|
+
style: ie(R.value),
|
|
170
|
+
role: "listbox"
|
|
171
|
+
}, [(g(!0), u(i, null, v(z.value, (t, n) => (g(), u("ul", {
|
|
172
|
+
key: n,
|
|
173
|
+
class: "wi-cascadeselect__column"
|
|
174
|
+
}, [(g(!0), u(i, null, v(t, (t) => (g(), u("li", { key: String(t.value) }, [d("button", {
|
|
175
|
+
type: "button",
|
|
176
|
+
class: h(["wi-cascadeselect__option", {
|
|
177
|
+
"wi-cascadeselect__option--selected": t.value === p.modelValue,
|
|
178
|
+
"wi-cascadeselect__option--parent": !!t.children?.length
|
|
179
|
+
}]),
|
|
180
|
+
disabled: t.disabled,
|
|
181
|
+
role: "option",
|
|
182
|
+
"aria-selected": t.value === p.modelValue,
|
|
183
|
+
onClick: (e) => fe(t, n)
|
|
184
|
+
}, [d("span", null, y(t.label), 1), t.children?.length ? (g(), c(e, {
|
|
185
|
+
key: 0,
|
|
186
|
+
name: "chevron-right",
|
|
187
|
+
size: "sm",
|
|
188
|
+
"aria-hidden": "true"
|
|
189
|
+
})) : l("", !0)], 10, ce)]))), 128))]))), 128))], 6)) : l("", !0)]),
|
|
190
|
+
_: 1
|
|
191
|
+
})], 8, ["to", "disabled"]))
|
|
192
|
+
], 2));
|
|
126
193
|
}
|
|
127
194
|
});
|
|
128
195
|
//#endregion
|
|
129
|
-
export {
|
|
196
|
+
export { D as WiCascadeSelect };
|