@well-insight/ui 0.1.10 → 0.1.12
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 +56 -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/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- 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/ConfigProvider/ConfigProvider.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 +21 -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 +27 -26
- 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 +2790 -2650
- 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 +50 -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/index.js +10 -13
- 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/layout/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,104 +749,43 @@
|
|
|
750
749
|
line-height: 1;
|
|
751
750
|
}
|
|
752
751
|
|
|
753
|
-
.wi-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
var(--wi-color-text) 28%,
|
|
758
|
-
transparent
|
|
759
|
-
);
|
|
760
|
-
--wi-scrollbar-hover-bg: color-mix(
|
|
761
|
-
in srgb,
|
|
762
|
-
var(--wi-color-text) 45%,
|
|
763
|
-
transparent
|
|
764
|
-
);
|
|
765
|
-
--wi-scrollbar-opacity: 0.5;
|
|
766
|
-
--wi-scrollbar-hover-opacity: 0.8;
|
|
767
|
-
height: 100%;
|
|
768
|
-
overflow: hidden;
|
|
769
|
-
position: relative;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
.wi-scrollbar__wrap {
|
|
773
|
-
height: 100%;
|
|
774
|
-
overflow: auto;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
.wi-scrollbar__wrap--hidden-default {
|
|
778
|
-
scrollbar-width: none;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
.wi-scrollbar__wrap--hidden-default::-webkit-scrollbar {
|
|
782
|
-
display: none;
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
.wi-scrollbar__view {
|
|
786
|
-
box-sizing: border-box;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
.wi-scrollbar__bar {
|
|
790
|
-
border-radius: var(--wi-radius-sm);
|
|
791
|
-
bottom: 2px;
|
|
792
|
-
position: absolute;
|
|
793
|
-
right: 2px;
|
|
794
|
-
z-index: 1;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
.wi-scrollbar__bar--vertical {
|
|
798
|
-
top: 2px;
|
|
799
|
-
width: var(--wi-scrollbar-track-size);
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
.wi-scrollbar__bar--vertical > .wi-scrollbar__thumb {
|
|
803
|
-
width: 100%;
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
.wi-scrollbar__bar--horizontal {
|
|
807
|
-
height: var(--wi-scrollbar-track-size);
|
|
808
|
-
left: 2px;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
.wi-scrollbar__bar--horizontal > .wi-scrollbar__thumb {
|
|
812
|
-
height: 100%;
|
|
752
|
+
.wi-icon {
|
|
753
|
+
display: inline-flex;
|
|
754
|
+
height: 1rem;
|
|
755
|
+
width: 1rem;
|
|
813
756
|
}
|
|
814
757
|
|
|
815
|
-
.wi-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
outline-offset: 1px;
|
|
758
|
+
.wi-icon svg {
|
|
759
|
+
height: 100%;
|
|
760
|
+
width: 100%;
|
|
819
761
|
}
|
|
820
762
|
|
|
821
|
-
.wi-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
display: block;
|
|
826
|
-
height: 0;
|
|
827
|
-
opacity: var(--wi-scrollbar-opacity);
|
|
828
|
-
position: relative;
|
|
829
|
-
transition:
|
|
830
|
-
background-color var(--wi-motion-fast) var(--wi-motion-ease),
|
|
831
|
-
opacity var(--wi-motion-fast) var(--wi-motion-ease);
|
|
832
|
-
width: 0;
|
|
763
|
+
.wi-icon--sm,
|
|
764
|
+
.wi-icon--small {
|
|
765
|
+
height: 0.875rem;
|
|
766
|
+
width: 0.875rem;
|
|
833
767
|
}
|
|
834
768
|
|
|
835
|
-
.wi-
|
|
836
|
-
|
|
837
|
-
|
|
769
|
+
.wi-icon--md,
|
|
770
|
+
.wi-icon--normal {
|
|
771
|
+
height: 1rem;
|
|
772
|
+
width: 1rem;
|
|
838
773
|
}
|
|
839
774
|
|
|
840
|
-
.wi-
|
|
841
|
-
|
|
775
|
+
.wi-icon--lg,
|
|
776
|
+
.wi-icon--large {
|
|
777
|
+
height: 1.25rem;
|
|
778
|
+
width: 1.25rem;
|
|
842
779
|
}
|
|
843
780
|
|
|
844
|
-
.wi-
|
|
845
|
-
|
|
781
|
+
.wi-icon--spin svg {
|
|
782
|
+
animation: wi-icon-spin 0.8s linear infinite;
|
|
846
783
|
}
|
|
847
784
|
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
785
|
+
@keyframes wi-icon-spin {
|
|
786
|
+
to {
|
|
787
|
+
transform: rotate(360deg);
|
|
788
|
+
}
|
|
851
789
|
}
|
|
852
790
|
|
|
853
791
|
/* —— Panel: Layout —— */
|
|
@@ -884,6 +822,7 @@
|
|
|
884
822
|
.wi-layout__scroll {
|
|
885
823
|
box-sizing: border-box;
|
|
886
824
|
display: flex;
|
|
825
|
+
flex: 1 1 auto;
|
|
887
826
|
flex-direction: column;
|
|
888
827
|
height: 100%;
|
|
889
828
|
min-height: 0;
|
|
@@ -899,22 +838,6 @@
|
|
|
899
838
|
flex-wrap: nowrap;
|
|
900
839
|
}
|
|
901
840
|
|
|
902
|
-
.wi-layout__scrollbar {
|
|
903
|
-
box-sizing: border-box;
|
|
904
|
-
flex: 1 1 auto;
|
|
905
|
-
height: 100%;
|
|
906
|
-
min-height: 0;
|
|
907
|
-
min-width: 0;
|
|
908
|
-
width: 100%;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
.wi-layout__scrollbar .wi-layout__scroll {
|
|
912
|
-
/* view hosts flex children; scrolling is on the wrap */
|
|
913
|
-
height: auto;
|
|
914
|
-
min-height: 100%;
|
|
915
|
-
overflow: visible;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
841
|
/* Nested layout / content grow to fill remaining space */
|
|
919
842
|
.wi-layout__scroll > .wi-layout,
|
|
920
843
|
.wi-layout__scroll > .wi-layout-content {
|
|
@@ -926,14 +849,16 @@
|
|
|
926
849
|
.wi-layout-content {
|
|
927
850
|
--wi-layout-padding: var(--wi-space-4);
|
|
928
851
|
--wi-layout-radius: 0;
|
|
852
|
+
display: flex;
|
|
929
853
|
flex: 1 1 auto;
|
|
854
|
+
flex-direction: column;
|
|
930
855
|
min-height: 0;
|
|
931
856
|
min-width: 0;
|
|
932
857
|
}
|
|
933
858
|
|
|
934
|
-
.wi-layout-content > .wi-layout__scroll
|
|
935
|
-
.wi-layout-content > .wi-layout__scrollbar {
|
|
859
|
+
.wi-layout-content > .wi-layout__scroll {
|
|
936
860
|
flex: 1 1 auto;
|
|
861
|
+
min-height: 0;
|
|
937
862
|
}
|
|
938
863
|
|
|
939
864
|
.wi-layout-header,
|
|
@@ -947,17 +872,19 @@
|
|
|
947
872
|
color var(--wi-motion-fast) var(--wi-motion-ease),
|
|
948
873
|
border-color var(--wi-motion-fast) var(--wi-motion-ease);
|
|
949
874
|
width: 100%;
|
|
875
|
+
display: flex;
|
|
876
|
+
align-items: center;
|
|
950
877
|
}
|
|
951
878
|
|
|
952
879
|
.wi-layout-header {
|
|
953
880
|
--wi-layout-header-height: 56px;
|
|
954
|
-
--wi-layout-padding: var(--wi-space-4);
|
|
881
|
+
--wi-layout-padding: 0 var(--wi-space-4);
|
|
955
882
|
--wi-layout-radius: 0;
|
|
956
883
|
}
|
|
957
884
|
|
|
958
885
|
.wi-layout-footer {
|
|
959
886
|
--wi-layout-footer-height: 48px;
|
|
960
|
-
--wi-layout-padding: var(--wi-space-4);
|
|
887
|
+
--wi-layout-padding: 0 var(--wi-space-4);
|
|
961
888
|
--wi-layout-radius: 0;
|
|
962
889
|
}
|
|
963
890
|
|
|
@@ -1019,8 +946,10 @@
|
|
|
1019
946
|
box-sizing: border-box;
|
|
1020
947
|
color: var(--wi-color-text);
|
|
1021
948
|
display: flex;
|
|
949
|
+
flex-basis: var(--wi-layout-sider-width);
|
|
1022
950
|
flex-shrink: 0;
|
|
1023
951
|
justify-content: flex-end;
|
|
952
|
+
min-width: 0;
|
|
1024
953
|
/* Do not clip the collapse trigger (it sits half outside the sider edge).
|
|
1025
954
|
Collapsed transform overflow is clipped by `.wi-layout { overflow: hidden }`. */
|
|
1026
955
|
overflow: visible;
|
|
@@ -1028,6 +957,7 @@
|
|
|
1028
957
|
transition:
|
|
1029
958
|
color var(--wi-motion-normal) var(--wi-motion-ease),
|
|
1030
959
|
border-color var(--wi-motion-normal) var(--wi-motion-ease),
|
|
960
|
+
width var(--wi-motion-normal) var(--wi-motion-ease),
|
|
1031
961
|
max-width var(--wi-motion-normal) var(--wi-motion-ease),
|
|
1032
962
|
background-color var(--wi-motion-normal) var(--wi-motion-ease);
|
|
1033
963
|
z-index: 1;
|
|
@@ -1039,34 +969,21 @@
|
|
|
1039
969
|
|
|
1040
970
|
.wi-layout-sider__scroll {
|
|
1041
971
|
box-sizing: border-box;
|
|
1042
|
-
flex
|
|
1043
|
-
flex-shrink: 0;
|
|
972
|
+
flex: 1 1 auto;
|
|
1044
973
|
height: 100%;
|
|
1045
974
|
max-width: 100%;
|
|
975
|
+
min-height: 0;
|
|
976
|
+
min-width: 0;
|
|
1046
977
|
opacity: 0;
|
|
1047
978
|
overflow: hidden;
|
|
979
|
+
overflow-x: hidden;
|
|
1048
980
|
transition: opacity var(--wi-motion-normal) var(--wi-motion-ease);
|
|
1049
981
|
width: 100%;
|
|
1050
982
|
}
|
|
1051
983
|
|
|
1052
|
-
.wi-layout-
|
|
1053
|
-
box-sizing: border-box;
|
|
1054
|
-
flex-grow: 1;
|
|
984
|
+
.wi-layout-sider--collapse-transform > .wi-layout-sider__scroll {
|
|
1055
985
|
flex-shrink: 0;
|
|
1056
|
-
|
|
1057
|
-
max-width: 100%;
|
|
1058
|
-
min-width: 0;
|
|
1059
|
-
opacity: 0;
|
|
1060
|
-
transition: opacity var(--wi-motion-normal) var(--wi-motion-ease);
|
|
1061
|
-
width: 100%;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
.wi-layout-sider__scrollbar .wi-layout-sider__scroll {
|
|
1065
|
-
height: auto;
|
|
1066
|
-
max-width: none;
|
|
1067
|
-
min-height: 100%;
|
|
1068
|
-
opacity: 1;
|
|
1069
|
-
overflow: visible;
|
|
986
|
+
min-width: var(--wi-layout-sider-width);
|
|
1070
987
|
}
|
|
1071
988
|
|
|
1072
989
|
.wi-layout-sider--show-content > .wi-layout-sider__scroll {
|
|
@@ -1074,12 +991,7 @@
|
|
|
1074
991
|
overflow: auto;
|
|
1075
992
|
}
|
|
1076
993
|
|
|
1077
|
-
.wi-layout-sider--
|
|
1078
|
-
opacity: 1;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
.wi-layout-sider--collapse-width > .wi-layout-sider__scroll,
|
|
1082
|
-
.wi-layout-sider--collapse-width > .wi-layout-sider__scrollbar {
|
|
994
|
+
.wi-layout-sider--collapse-width > .wi-layout-sider__scroll {
|
|
1083
995
|
flex-shrink: 1;
|
|
1084
996
|
min-width: 0;
|
|
1085
997
|
}
|
|
@@ -1093,13 +1005,11 @@
|
|
|
1093
1005
|
width: var(--wi-border-width);
|
|
1094
1006
|
}
|
|
1095
1007
|
|
|
1096
|
-
.wi-layout-sider--left-placement > .wi-layout-sider__border
|
|
1097
|
-
.wi-layout-sider--left > .wi-layout-sider__border {
|
|
1008
|
+
.wi-layout-sider--left-placement > .wi-layout-sider__border {
|
|
1098
1009
|
right: 0;
|
|
1099
1010
|
}
|
|
1100
1011
|
|
|
1101
|
-
.wi-layout-sider--right-placement > .wi-layout-sider__border
|
|
1102
|
-
.wi-layout-sider--right > .wi-layout-sider__border {
|
|
1012
|
+
.wi-layout-sider--right-placement > .wi-layout-sider__border {
|
|
1103
1013
|
left: 0;
|
|
1104
1014
|
}
|
|
1105
1015
|
|
package/dist/layout/style.js
CHANGED
package/dist/listbox/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, defineComponent as o, normalizeClass as s, normalizeStyle as c, openBlock as l, ref as u, renderList as d, toDisplayString as f, unref as p, vModelText as m, withDirectives as h } from "vue";
|
|
4
4
|
//#region src/components/Listbox/Listbox.vue?vue&type=script&setup=true&lang.ts
|
package/dist/listbox/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
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../src/locale/en-US.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../src/locale/en-US.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,eAAO,MAAM,IAAI,EAAE,gBAuGlB,CAAA"}
|
package/dist/locale/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/locale/types.ts"],"names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AAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,CAAC,CACzD,GAAG;IACF,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../src/locale/zh-CN.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../src/locale/zh-CN.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,eAAO,MAAM,IAAI,EAAE,gBAuGlB,CAAA"}
|
package/dist/mega-menu/index.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { n as e, t } from "../overlay-oR-5MDuE.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t as n } from "../overlayPlacement-CN1tuC95.js";
|
|
3
|
+
import { c as r } from "../config-CTLkobga.js";
|
|
3
4
|
import "./style.js";
|
|
4
|
-
import { Fragment as
|
|
5
|
+
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, createTextVNode as f, createVNode as p, defineComponent as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, watch as w, withCtx as T, withModifiers as E } from "vue";
|
|
5
6
|
//#region src/components/MegaMenu/MegaMenu.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var D = [
|
|
7
8
|
"disabled",
|
|
8
9
|
"aria-expanded",
|
|
9
10
|
"aria-haspopup",
|
|
10
11
|
"onClick"
|
|
11
|
-
],
|
|
12
|
+
], O = {
|
|
12
13
|
key: 0,
|
|
13
14
|
"aria-hidden": "true"
|
|
14
|
-
},
|
|
15
|
+
}, k = ["disabled", "onClick"], A = /* @__PURE__ */ m({
|
|
15
16
|
__name: "MegaMenu",
|
|
16
17
|
props: {
|
|
17
18
|
model: { default: () => [] },
|
|
@@ -21,84 +22,81 @@ var E = [
|
|
|
21
22
|
},
|
|
22
23
|
appendTo: {}
|
|
23
24
|
},
|
|
24
|
-
setup(
|
|
25
|
-
let
|
|
26
|
-
function
|
|
27
|
-
|
|
25
|
+
setup(m) {
|
|
26
|
+
let A = m, j = r(), M = x(null), N = x(null), P = x([]), F = x({}), I = s(() => e(A, j.value.appendTo)), L = s(() => t(A, j.value.appendTo));
|
|
27
|
+
function R(e, t) {
|
|
28
|
+
P.value[t] = e instanceof HTMLElement ? e : null;
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
-
if (!
|
|
31
|
-
let e =
|
|
30
|
+
function z() {
|
|
31
|
+
if (!L.value || M.value == null) return;
|
|
32
|
+
let e = P.value[M.value];
|
|
32
33
|
if (!e) return;
|
|
33
34
|
let t = e.getBoundingClientRect();
|
|
34
|
-
|
|
35
|
-
left: `${t.left}px`,
|
|
36
|
-
top: `${t.bottom + 4}px`
|
|
37
|
-
};
|
|
35
|
+
F.value = n(t, "bottom-start", { gap: 4 });
|
|
38
36
|
}
|
|
39
|
-
function
|
|
37
|
+
function B(e, t) {
|
|
40
38
|
if (!t.disabled) {
|
|
41
39
|
if (!t.items?.length) {
|
|
42
|
-
t.command?.(),
|
|
40
|
+
t.command?.(), M.value = null;
|
|
43
41
|
return;
|
|
44
42
|
}
|
|
45
|
-
|
|
43
|
+
M.value = M.value === e ? null : e, M.value != null && h(() => z());
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
|
-
function B(e) {
|
|
49
|
-
e.disabled || (e.command?.(), j.value = null);
|
|
50
|
-
}
|
|
51
46
|
function V(e) {
|
|
47
|
+
e.disabled || (e.command?.(), M.value = null);
|
|
48
|
+
}
|
|
49
|
+
function H(e) {
|
|
52
50
|
let t = e.target;
|
|
53
|
-
|
|
51
|
+
N.value?.contains(t) || document.querySelector(".wi-megamenu__panel--teleported")?.contains(t) || (M.value = null);
|
|
54
52
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
53
|
+
function U() {
|
|
54
|
+
M.value != null && z();
|
|
57
55
|
}
|
|
58
|
-
return
|
|
59
|
-
e != null &&
|
|
60
|
-
}),
|
|
61
|
-
document.removeEventListener("click",
|
|
62
|
-
}), (e, t) => (
|
|
56
|
+
return w(M, (e) => {
|
|
57
|
+
e != null && L.value ? (window.addEventListener("resize", U), window.addEventListener("scroll", U, !0)) : (window.removeEventListener("resize", U), window.removeEventListener("scroll", U, !0));
|
|
58
|
+
}), y(() => document.addEventListener("click", H)), v(() => {
|
|
59
|
+
document.removeEventListener("click", H), window.removeEventListener("resize", U), window.removeEventListener("scroll", U, !0);
|
|
60
|
+
}), (e, t) => (b(), u("nav", {
|
|
63
61
|
ref_key: "root",
|
|
64
|
-
ref:
|
|
62
|
+
ref: N,
|
|
65
63
|
class: "wi-megamenu",
|
|
66
64
|
"aria-label": "Mega menu"
|
|
67
|
-
}, [(
|
|
65
|
+
}, [(b(!0), u(i, null, S(m.model, (e, t) => (b(), u("div", {
|
|
68
66
|
key: `${e.label}-${t}`,
|
|
69
|
-
class:
|
|
70
|
-
}, [
|
|
67
|
+
class: g(["wi-megamenu__item", { "wi-megamenu__item--open": M.value === t }])
|
|
68
|
+
}, [d("button", {
|
|
71
69
|
ref_for: !0,
|
|
72
|
-
ref: (e) =>
|
|
70
|
+
ref: (e) => R(e, t),
|
|
73
71
|
type: "button",
|
|
74
72
|
class: "wi-megamenu__trigger",
|
|
75
73
|
disabled: e.disabled,
|
|
76
|
-
"aria-expanded": e.items?.length ?
|
|
74
|
+
"aria-expanded": e.items?.length ? M.value === t : void 0,
|
|
77
75
|
"aria-haspopup": e.items?.length ? "true" : void 0,
|
|
78
|
-
onClick:
|
|
79
|
-
}, [e.icon ? (
|
|
80
|
-
to:
|
|
81
|
-
disabled:
|
|
82
|
-
}, [
|
|
83
|
-
default:
|
|
76
|
+
onClick: E((n) => B(t, e), ["stop"])
|
|
77
|
+
}, [e.icon ? (b(), u("span", O, C(e.icon), 1)) : l("", !0), f(" " + C(e.label), 1)], 8, D), (b(), c(a, {
|
|
78
|
+
to: I.value.to,
|
|
79
|
+
disabled: I.value.disabled
|
|
80
|
+
}, [p(o, { name: "wi-scale-fade" }, {
|
|
81
|
+
default: T(() => [e.items?.length && M.value === t ? (b(), u("div", {
|
|
84
82
|
key: 0,
|
|
85
|
-
class:
|
|
86
|
-
style:
|
|
83
|
+
class: g(["wi-megamenu__panel", { "wi-megamenu__panel--teleported": L.value }]),
|
|
84
|
+
style: _(L.value ? F.value : void 0),
|
|
87
85
|
role: "menu"
|
|
88
|
-
}, [(
|
|
86
|
+
}, [(b(!0), u(i, null, S(e.items, (e, t) => (b(), u("div", {
|
|
89
87
|
key: t,
|
|
90
88
|
class: "wi-megamenu__column"
|
|
91
|
-
}, [(
|
|
89
|
+
}, [(b(!0), u(i, null, S(e, (e, t) => (b(), u("button", {
|
|
92
90
|
key: `${e.label}-${t}`,
|
|
93
91
|
type: "button",
|
|
94
92
|
class: "wi-megamenu__link",
|
|
95
93
|
role: "menuitem",
|
|
96
94
|
disabled: e.disabled,
|
|
97
|
-
onClick:
|
|
98
|
-
},
|
|
95
|
+
onClick: E((t) => V(e), ["stop"])
|
|
96
|
+
}, C(e.label), 9, k))), 128))]))), 128))], 6)) : l("", !0)]),
|
|
99
97
|
_: 2
|
|
100
98
|
}, 1024)], 8, ["to", "disabled"]))], 2))), 128))], 512));
|
|
101
99
|
}
|
|
102
100
|
});
|
|
103
101
|
//#endregion
|
|
104
|
-
export {
|
|
102
|
+
export { A as WiMegaMenu };
|
package/dist/mega-menu/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
|
}
|