@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
|
@@ -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/radio/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e } from "../config-
|
|
1
|
+
import { o as e } from "../config-CTLkobga.js";
|
|
2
2
|
import "./style.js";
|
|
3
3
|
import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, inject as s, mergeProps as c, normalizeClass as l, openBlock as u, provide as d, renderSlot as f, toDisplayString as p, unref as m, useAttrs as h } from "vue";
|
|
4
4
|
//#region src/components/Radio/types.ts
|
package/dist/radio/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/rating/index.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "../Icon-DHGs8l-M.js";
|
|
2
|
+
import { n as t, t as n } from "../locale-DxAvgqgB.js";
|
|
2
3
|
import "./style.js";
|
|
3
|
-
import { Fragment as
|
|
4
|
+
import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, renderList as f, unref as p } from "vue";
|
|
4
5
|
//#region src/components/Rating/Rating.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var m = ["aria-valuenow", "aria-valuemax"], h = ["aria-label", "disabled"], g = [
|
|
6
7
|
"aria-label",
|
|
7
8
|
"disabled",
|
|
8
9
|
"onClick"
|
|
9
|
-
],
|
|
10
|
+
], _ = {
|
|
11
|
+
class: "wi-rating__star-off",
|
|
12
|
+
"aria-hidden": "true"
|
|
13
|
+
}, v = {
|
|
14
|
+
class: "wi-rating__star-on",
|
|
15
|
+
"aria-hidden": "true"
|
|
16
|
+
}, y = /* @__PURE__ */ l({
|
|
10
17
|
__name: "Rating",
|
|
11
18
|
props: {
|
|
12
19
|
modelValue: { default: 0 },
|
|
@@ -33,61 +40,64 @@ var f = ["aria-valuenow", "aria-valuemax"], p = ["aria-label", "disabled"], m =
|
|
|
33
40
|
}
|
|
34
41
|
},
|
|
35
42
|
emits: ["update:modelValue"],
|
|
36
|
-
setup(
|
|
37
|
-
let
|
|
38
|
-
"wi-rating--disabled":
|
|
39
|
-
"wi-rating--readonly":
|
|
40
|
-
"wi-rating--half":
|
|
43
|
+
setup(l, { emit: y }) {
|
|
44
|
+
let b = l, x = y, S = t(), C = i(() => b.allowClear ?? b.cancel), w = i(() => Array.from({ length: Math.max(1, b.stars) }, (e, t) => t + 1)), T = i(() => ["wi-rating", {
|
|
45
|
+
"wi-rating--disabled": b.disabled,
|
|
46
|
+
"wi-rating--readonly": b.readonly,
|
|
47
|
+
"wi-rating--half": b.allowHalf
|
|
41
48
|
}]);
|
|
42
|
-
function
|
|
43
|
-
let t =
|
|
44
|
-
return t >= e ? 1 :
|
|
49
|
+
function E(e) {
|
|
50
|
+
let t = b.modelValue ?? 0;
|
|
51
|
+
return t >= e ? 1 : b.allowHalf && t >= e - .5 ? .5 : 0;
|
|
45
52
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
53
|
+
function D(e) {
|
|
54
|
+
b.disabled || b.readonly || x("update:modelValue", e);
|
|
48
55
|
}
|
|
49
|
-
function
|
|
50
|
-
if (!
|
|
51
|
-
|
|
56
|
+
function O(e, t) {
|
|
57
|
+
if (!b.allowHalf) {
|
|
58
|
+
D(e);
|
|
52
59
|
return;
|
|
53
60
|
}
|
|
54
61
|
let n = t.currentTarget.getBoundingClientRect();
|
|
55
|
-
|
|
62
|
+
D(t.clientX - n.left < n.width / 2 ? e - .5 : e);
|
|
56
63
|
}
|
|
57
|
-
function
|
|
58
|
-
|
|
64
|
+
function k() {
|
|
65
|
+
b.disabled || b.readonly || !C.value || x("update:modelValue", 0);
|
|
59
66
|
}
|
|
60
|
-
return (
|
|
61
|
-
class:
|
|
67
|
+
return (t, i) => (d(), o("div", {
|
|
68
|
+
class: u(T.value),
|
|
62
69
|
role: "slider",
|
|
63
|
-
"aria-valuenow":
|
|
70
|
+
"aria-valuenow": l.modelValue,
|
|
64
71
|
"aria-valuemin": 0,
|
|
65
|
-
"aria-valuemax":
|
|
66
|
-
}, [
|
|
72
|
+
"aria-valuemax": l.stars
|
|
73
|
+
}, [C.value ? (d(), o("button", {
|
|
67
74
|
key: 0,
|
|
68
75
|
type: "button",
|
|
69
76
|
class: "wi-rating__cancel",
|
|
70
|
-
"aria-label":
|
|
71
|
-
disabled:
|
|
72
|
-
onClick:
|
|
73
|
-
},
|
|
74
|
-
|
|
77
|
+
"aria-label": p(S).clearRating,
|
|
78
|
+
disabled: l.disabled || l.readonly,
|
|
79
|
+
onClick: k
|
|
80
|
+
}, [c(e, {
|
|
81
|
+
name: "close",
|
|
82
|
+
size: "sm"
|
|
83
|
+
})], 8, h)) : a("", !0), (d(!0), o(r, null, f(w.value, (t) => (d(), o("button", {
|
|
84
|
+
key: t,
|
|
75
85
|
type: "button",
|
|
76
|
-
class:
|
|
77
|
-
"wi-rating__star--on":
|
|
78
|
-
"wi-rating__star--half":
|
|
86
|
+
class: u(["wi-rating__star", {
|
|
87
|
+
"wi-rating__star--on": E(t) === 1,
|
|
88
|
+
"wi-rating__star--half": E(t) === .5
|
|
79
89
|
}]),
|
|
80
|
-
"aria-label":
|
|
81
|
-
disabled:
|
|
82
|
-
onClick: (
|
|
83
|
-
}, [
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}, "
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
+
"aria-label": p(n)(p(S).star, { value: t }),
|
|
91
|
+
disabled: l.disabled || l.readonly,
|
|
92
|
+
onClick: (e) => O(t, e)
|
|
93
|
+
}, [s("span", _, [c(e, {
|
|
94
|
+
name: "star",
|
|
95
|
+
size: "lg"
|
|
96
|
+
})]), s("span", v, [c(e, {
|
|
97
|
+
name: "star",
|
|
98
|
+
size: "lg"
|
|
99
|
+
})])], 10, g))), 128))], 10, m));
|
|
90
100
|
}
|
|
91
101
|
});
|
|
92
102
|
//#endregion
|
|
93
|
-
export {
|
|
103
|
+
export { y as WiRating };
|
package/dist/rating/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,13 +749,52 @@
|
|
|
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
|
/* —— Form: Rating —— */
|
|
754
792
|
.wi-rating {
|
|
755
793
|
align-items: center;
|
|
756
794
|
display: inline-flex;
|
|
757
795
|
gap: var(--wi-space-1);
|
|
758
|
-
}
|
|
759
|
-
|
|
796
|
+
}
|
|
797
|
+
|
|
760
798
|
.wi-rating__star,
|
|
761
799
|
.wi-rating__cancel {
|
|
762
800
|
background: transparent;
|
|
@@ -768,41 +806,41 @@
|
|
|
768
806
|
font-size: 1.25rem;
|
|
769
807
|
line-height: 1;
|
|
770
808
|
padding: 0.15rem;
|
|
771
|
-
}
|
|
772
|
-
|
|
809
|
+
}
|
|
810
|
+
|
|
773
811
|
.wi-rating__star--on {
|
|
774
812
|
color: var(--wi-color-warn);
|
|
775
|
-
}
|
|
776
|
-
|
|
813
|
+
}
|
|
814
|
+
|
|
777
815
|
.wi-rating__star:hover:not(:disabled),
|
|
778
816
|
.wi-rating__cancel:hover:not(:disabled) {
|
|
779
817
|
color: var(--wi-color-primary);
|
|
780
|
-
}
|
|
781
|
-
|
|
818
|
+
}
|
|
819
|
+
|
|
782
820
|
.wi-rating__star:focus-visible,
|
|
783
821
|
.wi-rating__cancel:focus-visible {
|
|
784
822
|
box-shadow: var(--wi-focus-shadow);
|
|
785
823
|
outline: none;
|
|
786
|
-
}
|
|
787
|
-
|
|
824
|
+
}
|
|
825
|
+
|
|
788
826
|
.wi-rating--disabled,
|
|
789
827
|
.wi-rating--readonly {
|
|
790
828
|
pointer-events: none;
|
|
791
|
-
}
|
|
792
|
-
|
|
829
|
+
}
|
|
830
|
+
|
|
793
831
|
.wi-rating--disabled {
|
|
794
832
|
opacity: var(--wi-opacity-disabled);
|
|
795
|
-
}
|
|
796
|
-
|
|
833
|
+
}
|
|
834
|
+
|
|
797
835
|
.wi-rating__star {
|
|
798
836
|
position: relative;
|
|
799
|
-
}
|
|
800
|
-
|
|
837
|
+
}
|
|
838
|
+
|
|
801
839
|
.wi-rating__star-off,
|
|
802
840
|
.wi-rating__star-on {
|
|
803
841
|
display: block;
|
|
804
|
-
}
|
|
805
|
-
|
|
842
|
+
}
|
|
843
|
+
|
|
806
844
|
.wi-rating__star-on {
|
|
807
845
|
color: var(--wi-color-warn);
|
|
808
846
|
left: 0;
|
|
@@ -810,13 +848,18 @@
|
|
|
810
848
|
position: absolute;
|
|
811
849
|
top: 0;
|
|
812
850
|
width: 0;
|
|
813
|
-
}
|
|
814
|
-
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.wi-rating__star-on .wi-icon svg {
|
|
854
|
+
fill: currentColor;
|
|
855
|
+
stroke: none;
|
|
856
|
+
}
|
|
857
|
+
|
|
815
858
|
.wi-rating__star--on .wi-rating__star-on,
|
|
816
859
|
.wi-rating__star--half .wi-rating__star-on {
|
|
817
860
|
width: 100%;
|
|
818
|
-
}
|
|
819
|
-
|
|
861
|
+
}
|
|
862
|
+
|
|
820
863
|
.wi-rating__star--half .wi-rating__star-on {
|
|
821
864
|
width: 50%;
|
|
822
|
-
}
|
|
865
|
+
}
|
package/dist/rating/style.js
CHANGED
package/dist/scroll-top/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
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 { c as r } from "../config-CTLkobga.js";
|
|
4
|
+
import { n as i } from "../locale-DxAvgqgB.js";
|
|
4
5
|
import "./style.js";
|
|
5
|
-
import { Teleport as
|
|
6
|
+
import { Teleport as a, computed as o, createBlock as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, normalizeStyle as p, onBeforeUnmount as m, onMounted as h, openBlock as g, ref as _, renderSlot as v, unref as y, watch as b } from "vue";
|
|
6
7
|
//#region src/components/ScrollTop/ScrollTop.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
8
|
+
var x = ["aria-label", "hidden"], S = /* @__PURE__ */ d({
|
|
8
9
|
__name: "ScrollTop",
|
|
9
10
|
props: {
|
|
10
11
|
threshold: { default: 400 },
|
|
@@ -17,31 +18,31 @@ var b = ["aria-label", "hidden"], x = /* @__PURE__ */ u({
|
|
|
17
18
|
},
|
|
18
19
|
appendTo: {}
|
|
19
20
|
},
|
|
20
|
-
setup(
|
|
21
|
-
let
|
|
22
|
-
function
|
|
21
|
+
setup(d) {
|
|
22
|
+
let S = d, C = r(), w = i(), T = _(null), E = _(null), D = _(!1), O = o(() => t(S, C.value.appendTo)), k = o(() => n(S, C.value.appendTo));
|
|
23
|
+
function A(e) {
|
|
23
24
|
if (e != null) return typeof e == "number" ? `${e}px` : e;
|
|
24
25
|
}
|
|
25
|
-
let
|
|
26
|
-
"wi-scrolltop--visible":
|
|
27
|
-
"wi-scrolltop--parent":
|
|
28
|
-
"wi-scrolltop--teleported":
|
|
29
|
-
}]),
|
|
30
|
-
let e = {}, t =
|
|
26
|
+
let j = o(() => ["wi-scrolltop", {
|
|
27
|
+
"wi-scrolltop--visible": D.value,
|
|
28
|
+
"wi-scrolltop--parent": S.target === "parent",
|
|
29
|
+
"wi-scrolltop--teleported": k.value
|
|
30
|
+
}]), M = o(() => {
|
|
31
|
+
let e = {}, t = A(S.right), n = A(S.bottom);
|
|
31
32
|
return t && (e.right = t), n && (e.bottom = n), e;
|
|
32
33
|
});
|
|
33
|
-
function M() {
|
|
34
|
-
return x.target === "window" ? window : w.value?.parentElement ?? window;
|
|
35
|
-
}
|
|
36
34
|
function N() {
|
|
37
|
-
|
|
38
|
-
return e === window ? window.scrollY || document.documentElement.scrollTop : e.scrollTop;
|
|
35
|
+
return S.target === "window" ? window : T.value?.parentElement ?? window;
|
|
39
36
|
}
|
|
40
37
|
function P() {
|
|
41
|
-
|
|
38
|
+
let e = N();
|
|
39
|
+
return e === window ? window.scrollY || document.documentElement.scrollTop : e.scrollTop;
|
|
42
40
|
}
|
|
43
41
|
function F() {
|
|
44
|
-
|
|
42
|
+
D.value = P() >= S.threshold;
|
|
43
|
+
}
|
|
44
|
+
function I() {
|
|
45
|
+
let e = N();
|
|
45
46
|
if (e === window) {
|
|
46
47
|
window.scrollTo({
|
|
47
48
|
top: 0,
|
|
@@ -54,33 +55,36 @@ var b = ["aria-label", "hidden"], x = /* @__PURE__ */ u({
|
|
|
54
55
|
behavior: "smooth"
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
|
-
function I() {
|
|
58
|
-
M().addEventListener("scroll", P, { passive: !0 }), P();
|
|
59
|
-
}
|
|
60
58
|
function L() {
|
|
61
|
-
|
|
59
|
+
N().addEventListener("scroll", F, { passive: !0 }), F();
|
|
60
|
+
}
|
|
61
|
+
function R() {
|
|
62
|
+
N().removeEventListener("scroll", F);
|
|
62
63
|
}
|
|
63
|
-
return
|
|
64
|
-
|
|
65
|
-
}), (
|
|
64
|
+
return h(() => L()), m(() => R()), b(() => S.target, () => {
|
|
65
|
+
R(), L();
|
|
66
|
+
}), (t, n) => (g(), c("span", {
|
|
66
67
|
ref_key: "anchor",
|
|
67
|
-
ref:
|
|
68
|
+
ref: T,
|
|
68
69
|
class: "wi-scrolltop-anchor",
|
|
69
70
|
"aria-hidden": "true"
|
|
70
|
-
}, [(
|
|
71
|
-
to:
|
|
72
|
-
disabled:
|
|
73
|
-
}, [
|
|
71
|
+
}, [(g(), s(a, {
|
|
72
|
+
to: O.value.to,
|
|
73
|
+
disabled: O.value.disabled
|
|
74
|
+
}, [l("button", {
|
|
74
75
|
ref_key: "root",
|
|
75
|
-
ref:
|
|
76
|
+
ref: E,
|
|
76
77
|
type: "button",
|
|
77
|
-
class:
|
|
78
|
-
style:
|
|
79
|
-
"aria-label":
|
|
80
|
-
hidden: !
|
|
81
|
-
onClick:
|
|
82
|
-
}, [
|
|
78
|
+
class: f(j.value),
|
|
79
|
+
style: p(M.value),
|
|
80
|
+
"aria-label": y(w).backToTop,
|
|
81
|
+
hidden: !D.value,
|
|
82
|
+
onClick: I
|
|
83
|
+
}, [v(t.$slots, "default", {}, () => [u(e, {
|
|
84
|
+
name: "arrow-up",
|
|
85
|
+
size: "sm"
|
|
86
|
+
})])], 14, x)], 8, ["to", "disabled"]))], 512));
|
|
83
87
|
}
|
|
84
88
|
});
|
|
85
89
|
//#endregion
|
|
86
|
-
export {
|
|
90
|
+
export { S as WiScrollTop };
|
|
@@ -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
|
/* —— Misc: ScrollTop —— */
|
|
754
792
|
.wi-scrolltop-anchor {
|
|
755
793
|
display: contents;
|
package/dist/scroll-top/style.js
CHANGED