@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/dropdown/index.js
CHANGED
|
@@ -1,108 +1,114 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n, t as
|
|
3
|
-
import {
|
|
4
|
-
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 { t as i } from "../icon-Cg5TeFqe.js";
|
|
5
|
+
import { t as a } from "../key-CaQYVkjh.js";
|
|
6
|
+
import { c as o } from "../config-CTLkobga.js";
|
|
7
|
+
import { n as s } from "../locale-DxAvgqgB.js";
|
|
5
8
|
import "./style.js";
|
|
6
|
-
import { Fragment as
|
|
9
|
+
import { Fragment as c, Teleport as l, Transition as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as g, createTextVNode as _, createVNode as v, defineComponent as y, nextTick as b, normalizeClass as x, normalizeStyle as S, onBeforeUnmount as C, openBlock as w, ref as T, renderList as E, renderSlot as D, toDisplayString as O, unref as ee, watch as k, withCtx as A } from "vue";
|
|
7
10
|
//#region src/components/Dropdown/DropdownNodes.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
11
|
+
var j = {
|
|
9
12
|
key: 0,
|
|
10
13
|
class: "wi-dropdown__separator",
|
|
11
14
|
role: "separator"
|
|
12
|
-
},
|
|
15
|
+
}, M = {
|
|
13
16
|
key: 1,
|
|
14
17
|
class: "wi-dropdown__group"
|
|
15
|
-
},
|
|
18
|
+
}, N = { class: "wi-dropdown__group-label" }, P = ["onMouseenter"], F = ["disabled"], I = {
|
|
16
19
|
key: 0,
|
|
17
20
|
class: "wi-dropdown__icon",
|
|
18
21
|
"aria-hidden": "true"
|
|
19
|
-
},
|
|
22
|
+
}, L = {
|
|
23
|
+
class: "wi-dropdown__caret",
|
|
24
|
+
"aria-hidden": "true"
|
|
25
|
+
}, R = {
|
|
20
26
|
key: 0,
|
|
21
27
|
class: "wi-dropdown__submenu",
|
|
22
28
|
role: "menu"
|
|
23
|
-
},
|
|
29
|
+
}, z = [
|
|
24
30
|
"disabled",
|
|
25
31
|
"onMouseenter",
|
|
26
32
|
"onClick"
|
|
27
|
-
],
|
|
33
|
+
], B = {
|
|
28
34
|
key: 0,
|
|
29
35
|
class: "wi-dropdown__icon",
|
|
30
36
|
"aria-hidden": "true"
|
|
31
|
-
},
|
|
37
|
+
}, V = /* @__PURE__ */ y({
|
|
32
38
|
__name: "DropdownNodes",
|
|
33
39
|
props: {
|
|
34
40
|
items: {},
|
|
35
41
|
highlightedValue: {}
|
|
36
42
|
},
|
|
37
43
|
emits: ["select", "highlight"],
|
|
38
|
-
setup(
|
|
39
|
-
let
|
|
44
|
+
setup(t, { emit: n }) {
|
|
45
|
+
let r = n, o = T(null);
|
|
40
46
|
function s(e) {
|
|
41
47
|
return e.separator || e.type === "divider";
|
|
42
48
|
}
|
|
43
|
-
function
|
|
49
|
+
function l(e) {
|
|
44
50
|
return e.type === "group";
|
|
45
51
|
}
|
|
46
|
-
function
|
|
47
|
-
return e
|
|
52
|
+
function u(e, t) {
|
|
53
|
+
return a(e, t, "dd");
|
|
48
54
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
55
|
+
function d(e) {
|
|
56
|
+
return i(e.icon);
|
|
51
57
|
}
|
|
52
|
-
function
|
|
53
|
-
e.disabled || s(e) ||
|
|
58
|
+
function g(e, t) {
|
|
59
|
+
e.disabled || s(e) || l(e) || (r("highlight", e.value), e.items?.length && (o.value = u(e, t)));
|
|
54
60
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
61
|
+
function y() {
|
|
62
|
+
o.value = null;
|
|
57
63
|
}
|
|
58
|
-
return (
|
|
64
|
+
return (n, r) => (w(!0), m(c, null, E(t.items, (i, a) => (w(), m(c, { key: u(i, a) }, [s(i) ? (w(), m("div", j)) : l(i) ? (w(), m("div", M, [h("div", N, O(i.label), 1), i.items?.length ? (w(), f(V, {
|
|
59
65
|
key: 0,
|
|
60
66
|
items: i.items,
|
|
61
|
-
"highlighted-value":
|
|
62
|
-
onSelect: r[0] ||= (
|
|
63
|
-
onHighlight: r[1] ||= (
|
|
64
|
-
}, null, 8, ["items", "highlighted-value"])) :
|
|
67
|
+
"highlighted-value": t.highlightedValue,
|
|
68
|
+
onSelect: r[0] ||= (e) => n.$emit("select", e),
|
|
69
|
+
onHighlight: r[1] ||= (e) => n.$emit("highlight", e)
|
|
70
|
+
}, null, 8, ["items", "highlighted-value"])) : p("", !0)])) : i.items?.length ? (w(), m("div", {
|
|
65
71
|
key: 2,
|
|
66
72
|
class: "wi-dropdown__submenu-wrap",
|
|
67
|
-
onMouseenter: (e) =>
|
|
68
|
-
onMouseleave:
|
|
69
|
-
}, [
|
|
73
|
+
onMouseenter: (e) => g(i, a),
|
|
74
|
+
onMouseleave: y
|
|
75
|
+
}, [h("button", {
|
|
70
76
|
type: "button",
|
|
71
|
-
class:
|
|
77
|
+
class: x(["wi-dropdown__item wi-dropdown__item--parent", { "wi-dropdown__item--highlighted": t.highlightedValue === i.value }]),
|
|
72
78
|
role: "menuitem",
|
|
73
79
|
disabled: i.disabled,
|
|
74
80
|
"aria-haspopup": !0
|
|
75
81
|
}, [
|
|
76
|
-
|
|
82
|
+
d(i) || i.icon ? (w(), m("span", I, [d(i) ? (w(), f(e, {
|
|
77
83
|
key: 0,
|
|
78
|
-
name:
|
|
84
|
+
name: d(i),
|
|
85
|
+
size: "sm"
|
|
86
|
+
}, null, 8, ["name"])) : (w(), m(c, { key: 1 }, [_(O(i.icon), 1)], 64))])) : p("", !0),
|
|
87
|
+
D(n.$slots, "item", { item: i }, () => [_(O(i.label), 1)]),
|
|
88
|
+
h("span", L, [v(e, {
|
|
89
|
+
name: "chevron-right",
|
|
79
90
|
size: "sm"
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
r[4] ||= p("span", {
|
|
83
|
-
class: "wi-dropdown__caret",
|
|
84
|
-
"aria-hidden": "true"
|
|
85
|
-
}, "▸", -1)
|
|
86
|
-
], 10, P), a.value === l(i, b) ? (S(), f("div", I, [g(z, {
|
|
91
|
+
})])
|
|
92
|
+
], 10, F), o.value === u(i, a) ? (w(), m("div", R, [v(V, {
|
|
87
93
|
items: i.items,
|
|
88
|
-
"highlighted-value":
|
|
89
|
-
onSelect: r[2] ||= (
|
|
90
|
-
onHighlight: r[3] ||= (
|
|
91
|
-
}, null, 8, ["items", "highlighted-value"])])) :
|
|
94
|
+
"highlighted-value": t.highlightedValue,
|
|
95
|
+
onSelect: r[2] ||= (e) => n.$emit("select", e),
|
|
96
|
+
onHighlight: r[3] ||= (e) => n.$emit("highlight", e)
|
|
97
|
+
}, null, 8, ["items", "highlighted-value"])])) : p("", !0)], 40, P)) : (w(), m("button", {
|
|
92
98
|
key: 3,
|
|
93
99
|
type: "button",
|
|
94
|
-
class:
|
|
100
|
+
class: x(["wi-dropdown__item", { "wi-dropdown__item--highlighted": t.highlightedValue === i.value }]),
|
|
95
101
|
role: "menuitem",
|
|
96
102
|
disabled: i.disabled,
|
|
97
|
-
onMouseenter: (
|
|
98
|
-
onClick: (
|
|
99
|
-
}, [
|
|
103
|
+
onMouseenter: (e) => !i.disabled && n.$emit("highlight", i.value),
|
|
104
|
+
onClick: (e) => n.$emit("select", i)
|
|
105
|
+
}, [d(i) || i.icon ? (w(), m("span", B, [d(i) ? (w(), f(e, {
|
|
100
106
|
key: 0,
|
|
101
|
-
name:
|
|
107
|
+
name: d(i),
|
|
102
108
|
size: "sm"
|
|
103
|
-
}, null, 8, ["name"])) : (
|
|
109
|
+
}, null, 8, ["name"])) : (w(), m(c, { key: 1 }, [_(O(i.icon), 1)], 64))])) : p("", !0), D(n.$slots, "item", { item: i }, () => [_(O(i.label), 1)])], 42, z))], 64))), 128));
|
|
104
110
|
}
|
|
105
|
-
}),
|
|
111
|
+
}), H = ["aria-expanded"], U = /* @__PURE__ */ y({
|
|
106
112
|
__name: "Dropdown",
|
|
107
113
|
props: {
|
|
108
114
|
modelValue: {
|
|
@@ -125,52 +131,47 @@ var A = {
|
|
|
125
131
|
appendTo: {}
|
|
126
132
|
},
|
|
127
133
|
emits: ["update:modelValue", "select"],
|
|
128
|
-
setup(e, { emit:
|
|
129
|
-
let
|
|
134
|
+
setup(e, { emit: i }) {
|
|
135
|
+
let a = e, c = i, y = o(), E = s(), j = T(null), M = T(null), N = T(null), P = T({}), F = T(-1), I = d(() => a.items.filter((e) => !e.disabled && !e.separator && e.type !== "divider" && e.type !== "group" && !e.items?.length && e.value != null)), L = d(() => I.value[F.value]?.value), R, z, B = d(() => t(a, y.value.appendTo)), U = d(() => n(a, y.value.appendTo));
|
|
130
136
|
function W() {
|
|
131
137
|
F.value = I.value.length ? 0 : -1;
|
|
132
138
|
}
|
|
133
139
|
function G() {
|
|
134
140
|
if (!U.value || !M.value) return;
|
|
135
141
|
let e = M.value.getBoundingClientRect();
|
|
136
|
-
P.value = {
|
|
137
|
-
left: o.placement === "bottom-end" ? `${e.right}px` : `${e.left}px`,
|
|
138
|
-
minWidth: `${e.width}px`,
|
|
139
|
-
top: `${e.bottom + 8}px`,
|
|
140
|
-
...o.placement === "bottom-end" ? { transform: "translateX(-100%)" } : {}
|
|
141
|
-
};
|
|
142
|
+
P.value = r(e, a.placement === "bottom-end" ? "bottom-end" : "bottom-start", { minWidth: `${e.width}px` });
|
|
142
143
|
}
|
|
143
144
|
function K(e) {
|
|
144
|
-
|
|
145
|
+
c("update:modelValue", e), e && (W(), b(() => {
|
|
145
146
|
G(), N.value?.focus({ preventScroll: !0 });
|
|
146
147
|
}));
|
|
147
148
|
}
|
|
148
149
|
function q() {
|
|
149
|
-
K(!
|
|
150
|
+
K(!a.modelValue);
|
|
150
151
|
}
|
|
151
152
|
function J() {
|
|
152
|
-
|
|
153
|
+
a.modelValue && G();
|
|
153
154
|
}
|
|
154
155
|
function Y(e) {
|
|
155
|
-
e.disabled || e.separator || e.type === "divider" || e.type === "group" || (e.command?.(),
|
|
156
|
+
e.disabled || e.separator || e.type === "divider" || e.type === "group" || (e.command?.(), c("select", e), a.closeOnSelect && K(!1));
|
|
156
157
|
}
|
|
157
158
|
function X() {
|
|
158
|
-
R && clearTimeout(R),
|
|
159
|
+
R && clearTimeout(R), z && clearTimeout(z), R = void 0, z = void 0;
|
|
159
160
|
}
|
|
160
161
|
function Z() {
|
|
161
|
-
|
|
162
|
+
a.trigger === "hover" && (X(), R = setTimeout(K, a.showDelay, !0));
|
|
162
163
|
}
|
|
163
164
|
function Q() {
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
function ee() {
|
|
167
|
-
o.trigger === "hover" && X();
|
|
165
|
+
a.trigger === "hover" && (X(), z = setTimeout(K, a.hideDelay, !1));
|
|
168
166
|
}
|
|
169
167
|
function te() {
|
|
170
|
-
|
|
168
|
+
a.trigger === "hover" && X();
|
|
171
169
|
}
|
|
172
|
-
function ne(
|
|
173
|
-
|
|
170
|
+
function ne() {
|
|
171
|
+
a.trigger === "hover" && (X(), z = setTimeout(K, a.hideDelay, !1));
|
|
172
|
+
}
|
|
173
|
+
function re(e) {
|
|
174
|
+
if (a.modelValue) {
|
|
174
175
|
if (e.key === "Escape") {
|
|
175
176
|
e.preventDefault(), K(!1), M.value?.focus({ preventScroll: !0 });
|
|
176
177
|
return;
|
|
@@ -186,21 +187,21 @@ var A = {
|
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
|
-
function
|
|
190
|
-
(e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
190
|
+
function ie(e) {
|
|
191
|
+
(e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), a.modelValue || K(!0));
|
|
191
192
|
}
|
|
192
193
|
function $(e) {
|
|
193
|
-
|
|
194
|
+
a.modelValue && j.value && !j.value.contains(e.target) && !N.value?.contains(e.target) && K(!1);
|
|
194
195
|
}
|
|
195
|
-
return
|
|
196
|
+
return k(() => a.modelValue, (e) => {
|
|
196
197
|
e ? (document.addEventListener("click", $), U.value && (window.addEventListener("resize", J), window.addEventListener("scroll", J, !0))) : (document.removeEventListener("click", $), window.removeEventListener("resize", J), window.removeEventListener("scroll", J, !0));
|
|
197
|
-
}, { immediate: !0 }),
|
|
198
|
+
}, { immediate: !0 }), C(() => {
|
|
198
199
|
document.removeEventListener("click", $), window.removeEventListener("resize", J), window.removeEventListener("scroll", J, !0), X();
|
|
199
|
-
}), (t, n) => (
|
|
200
|
+
}), (t, n) => (w(), m("div", {
|
|
200
201
|
ref_key: "root",
|
|
201
202
|
ref: j,
|
|
202
203
|
class: "wi-dropdown"
|
|
203
|
-
}, [
|
|
204
|
+
}, [h("span", {
|
|
204
205
|
ref_key: "trigger",
|
|
205
206
|
ref: M,
|
|
206
207
|
class: "wi-dropdown__trigger",
|
|
@@ -208,38 +209,38 @@ var A = {
|
|
|
208
209
|
tabindex: "0",
|
|
209
210
|
"aria-expanded": e.modelValue,
|
|
210
211
|
"aria-haspopup": "menu",
|
|
211
|
-
onClick: n[0] ||= (e) =>
|
|
212
|
+
onClick: n[0] ||= (e) => a.trigger === "click" && q(),
|
|
212
213
|
onMouseenter: Z,
|
|
213
214
|
onMouseleave: Q,
|
|
214
|
-
onKeydown:
|
|
215
|
-
}, [
|
|
216
|
-
to:
|
|
217
|
-
disabled:
|
|
218
|
-
}, [
|
|
219
|
-
default:
|
|
215
|
+
onKeydown: ie
|
|
216
|
+
}, [D(t.$slots, "trigger", {}, () => [_(O(ee(E).openMenu), 1)])], 40, H), (w(), f(l, {
|
|
217
|
+
to: B.value.to,
|
|
218
|
+
disabled: B.value.disabled
|
|
219
|
+
}, [v(u, { name: "wi-scale-fade" }, {
|
|
220
|
+
default: A(() => [e.modelValue ? (w(), m("div", {
|
|
220
221
|
key: 0,
|
|
221
222
|
ref_key: "menu",
|
|
222
223
|
ref: N,
|
|
223
|
-
class:
|
|
224
|
-
style:
|
|
224
|
+
class: x(["wi-dropdown__menu", [`wi-dropdown__menu--${e.placement}`, { "wi-dropdown__menu--teleported": U.value }]]),
|
|
225
|
+
style: S(U.value ? P.value : void 0),
|
|
225
226
|
role: "menu",
|
|
226
227
|
tabindex: "-1",
|
|
227
|
-
onKeydown:
|
|
228
|
-
onMouseenter:
|
|
229
|
-
onMouseleave:
|
|
230
|
-
}, [
|
|
228
|
+
onKeydown: re,
|
|
229
|
+
onMouseenter: te,
|
|
230
|
+
onMouseleave: ne
|
|
231
|
+
}, [v(V, {
|
|
231
232
|
items: e.items,
|
|
232
233
|
"highlighted-value": L.value,
|
|
233
234
|
onSelect: Y,
|
|
234
235
|
onHighlight: n[1] ||= (e) => F.value = I.value.findIndex((t) => t.value === e)
|
|
235
|
-
},
|
|
236
|
+
}, g({ _: 2 }, [t.$slots.item ? {
|
|
236
237
|
name: "item",
|
|
237
|
-
fn:
|
|
238
|
+
fn: A(({ item: e }) => [D(t.$slots, "item", { item: e })]),
|
|
238
239
|
key: "0"
|
|
239
|
-
} : void 0]), 1032, ["items", "highlighted-value"])], 38)) :
|
|
240
|
+
} : void 0]), 1032, ["items", "highlighted-value"])], 38)) : p("", !0)]),
|
|
240
241
|
_: 3
|
|
241
242
|
})], 8, ["to", "disabled"]))], 512));
|
|
242
243
|
}
|
|
243
244
|
});
|
|
244
245
|
//#endregion
|
|
245
|
-
export {
|
|
246
|
+
export { U as WiDropdown };
|
package/dist/dropdown/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/fieldset/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { t as e } from "../Icon-DHGs8l-M.js";
|
|
1
2
|
import "./style.js";
|
|
2
|
-
import { computed as
|
|
3
|
+
import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderSlot as u, toDisplayString as d, vShow as f, withDirectives as p } from "vue";
|
|
3
4
|
//#region src/components/Fieldset/Fieldset.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
5
|
+
var m = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "wi-fieldset__legend"
|
|
7
|
-
},
|
|
8
|
+
}, h = ["aria-expanded"], g = { class: "wi-fieldset__content" }, _ = /* @__PURE__ */ s({
|
|
8
9
|
__name: "Fieldset",
|
|
9
10
|
props: {
|
|
10
11
|
legend: {},
|
|
@@ -18,19 +19,22 @@ var f = {
|
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
emits: ["update:collapsed"],
|
|
21
|
-
setup(
|
|
22
|
-
let
|
|
23
|
-
function
|
|
24
|
-
|
|
22
|
+
setup(s, { emit: _ }) {
|
|
23
|
+
let v = s, y = _, b = t(() => v.collapsed);
|
|
24
|
+
function x() {
|
|
25
|
+
v.toggleable && y("update:collapsed", !b.value);
|
|
25
26
|
}
|
|
26
|
-
return (
|
|
27
|
+
return (t, _) => (l(), r("fieldset", { class: c(["wi-fieldset", { "wi-fieldset--collapsed": b.value }]) }, [t.$slots.legend || s.legend || s.toggleable ? (l(), r("legend", m, [s.toggleable ? (l(), r("button", {
|
|
27
28
|
key: 0,
|
|
28
29
|
type: "button",
|
|
29
30
|
class: "wi-fieldset__toggler",
|
|
30
|
-
"aria-expanded": !
|
|
31
|
-
onClick:
|
|
32
|
-
}, [
|
|
31
|
+
"aria-expanded": !b.value,
|
|
32
|
+
onClick: x
|
|
33
|
+
}, [o(e, {
|
|
34
|
+
name: b.value ? "chevron-right" : "chevron-down",
|
|
35
|
+
size: "sm"
|
|
36
|
+
}, null, 8, ["name"]), u(t.$slots, "legend", {}, () => [a(d(s.legend), 1)])], 8, h)) : u(t.$slots, "legend", {}, () => [a(d(s.legend), 1)], void 0, 1)])) : n("", !0), p(i("div", g, [u(t.$slots, "default")], 512), [[f, !b.value]])], 2));
|
|
33
37
|
}
|
|
34
38
|
});
|
|
35
39
|
//#endregion
|
|
36
|
-
export {
|
|
40
|
+
export { _ as WiFieldset };
|
package/dist/fieldset/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
|
/* —— Panel: Fieldset —— */
|
|
754
792
|
.wi-fieldset {
|
|
755
793
|
background: var(--wi-color-surface);
|
package/dist/fieldset/style.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../Icon-
|
|
2
|
-
import { n as t } from "../locale-
|
|
1
|
+
import { t as e } from "../Icon-DHGs8l-M.js";
|
|
2
|
+
import { n as t } from "../locale-DxAvgqgB.js";
|
|
3
3
|
import "./style.js";
|
|
4
4
|
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as ee, createVNode as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as d, openBlock as f, ref as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, watch as v } from "vue";
|
|
5
5
|
//#region src/components/FileUpload/ajax.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
|
}
|
|
@@ -1045,7 +1044,7 @@
|
|
|
1045
1044
|
}
|
|
1046
1045
|
|
|
1047
1046
|
.wi-fileupload__card-mask {
|
|
1048
|
-
background: color-mix(in srgb,
|
|
1047
|
+
background: color-mix(in srgb, var(--wi-color-text) 48%, transparent);
|
|
1049
1048
|
gap: var(--wi-space-1);
|
|
1050
1049
|
opacity: 0;
|
|
1051
1050
|
transition: opacity var(--wi-motion-fast) var(--wi-motion-ease);
|
|
@@ -1057,7 +1056,7 @@
|
|
|
1057
1056
|
}
|
|
1058
1057
|
|
|
1059
1058
|
.wi-fileupload__card-mask .wi-fileupload__action {
|
|
1060
|
-
color:
|
|
1059
|
+
color: var(--wi-color-on-emphasis);
|
|
1061
1060
|
}
|
|
1062
1061
|
|
|
1063
1062
|
.wi-fileupload__card-mask .wi-fileupload__action:hover {
|
package/dist/flex/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e, n as t, r as n, t as r } from "../gap-rHurpwNv.js";
|
|
2
2
|
import { t as i } from "../vnode-PJWBO7_h.js";
|
|
3
|
-
import { a } from "../config-
|
|
3
|
+
import { a } from "../config-CTLkobga.js";
|
|
4
4
|
import "./style.js";
|
|
5
5
|
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, defineComponent as d, normalizeStyle as f, openBlock as p, renderList as m, resolveDynamicComponent as h, useSlots as g } from "vue";
|
|
6
6
|
//#endregion
|
package/dist/flex/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,12 +1,23 @@
|
|
|
1
1
|
import "./style.js";
|
|
2
|
-
import { createCommentVNode as e, createElementBlock as t, createTextVNode as n, defineComponent as r,
|
|
2
|
+
import { createCommentVNode as e, createElementBlock as t, createTextVNode as n, defineComponent as r, onMounted as i, openBlock as a, ref as o, renderSlot as s, toDisplayString as c, useId as l } from "vue";
|
|
3
3
|
//#region src/components/FloatLabel/FloatLabel.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
4
|
+
var u = ["for"], d = /* @__PURE__ */ r({
|
|
5
5
|
__name: "FloatLabel",
|
|
6
6
|
props: { label: {} },
|
|
7
7
|
setup(r) {
|
|
8
|
-
|
|
8
|
+
let d = r, f = o(null), p = l(), m = o(void 0);
|
|
9
|
+
return i(() => {
|
|
10
|
+
let e = f.value?.querySelector("input, textarea, select, [role=\"combobox\"], [role=\"spinbutton\"]");
|
|
11
|
+
e && (e.id ||= p, m.value = e.id);
|
|
12
|
+
}), (r, i) => (a(), t("span", {
|
|
13
|
+
ref_key: "root",
|
|
14
|
+
ref: f,
|
|
15
|
+
class: "wi-float-label"
|
|
16
|
+
}, [s(r.$slots, "default"), d.label || r.$slots.label ? (a(), t("label", {
|
|
17
|
+
key: 0,
|
|
18
|
+
for: m.value
|
|
19
|
+
}, [s(r.$slots, "label", {}, () => [n(c(d.label), 1)])], 8, u)) : e("", !0)], 512));
|
|
9
20
|
}
|
|
10
21
|
});
|
|
11
22
|
//#endregion
|
|
12
|
-
export {
|
|
23
|
+
export { d as WiFloatLabel };
|
|
@@ -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/fluid/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/form/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 { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, inject as s, normalizeClass as c, normalizeStyle as l, onBeforeUnmount as u, openBlock as d, provide as f, reactive as p, renderSlot as m, toDisplayString as h, useId as g, watch as _, withModifiers as v } from "vue";
|
|
4
4
|
//#region src/components/Form/context.ts
|