@well-insight/ui 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/dist/{Button-B6-YxpOQ.js → Button-tnrMSwNg.js} +3 -7
- package/dist/{Checkbox-BvlOYFGs.js → Checkbox-CoovLjt_.js} +1 -1
- package/dist/{Icon-B6gOD07E.js → Icon-DHGs8l-M.js} +27 -1
- package/dist/Pagination-UvgyUKB1.js +155 -0
- package/dist/{ProgressSpinner-YThgaSzb.js → ProgressSpinner-BTijCc7l.js} +1 -1
- package/dist/accordion/style.css +4 -5
- package/dist/auto-complete/index.js +106 -99
- package/dist/auto-complete/style.css +4 -5
- package/dist/avatar/index.js +1 -1
- package/dist/avatar/style.css +4 -5
- package/dist/badge/style.css +4 -5
- package/dist/block-ui/style.css +4 -5
- package/dist/breadcrumb/index.js +1 -1
- package/dist/breadcrumb/style.css +4 -5
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +4 -5
- package/dist/card/style.css +4 -5
- package/dist/carousel/index.js +61 -54
- package/dist/carousel/style.css +43 -5
- package/dist/carousel/style.js +1 -0
- package/dist/cascade-select/index.js +143 -76
- package/dist/cascade-select/style.css +76 -10
- package/dist/cascade-select/style.js +1 -0
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox/style.css +4 -5
- package/dist/chip/index.js +32 -29
- package/dist/chip/style.css +4 -5
- package/dist/command-menu/index.js +2 -2
- package/dist/command-menu/style.css +4 -5
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts +2 -0
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/types.d.ts +1 -0
- package/dist/components/AutoComplete/types.d.ts.map +1 -1
- package/dist/components/Button/Button.vue.d.ts +0 -1
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Button/types.d.ts +0 -2
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts +2 -2
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +6 -0
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
- package/dist/components/CascadeSelect/styles.css +33 -5
- package/dist/components/CascadeSelect/types.d.ts +11 -0
- package/dist/components/CascadeSelect/types.d.ts.map +1 -1
- package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.css +33 -8
- package/dist/components/DatePicker/types.d.ts +1 -0
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts +3 -3
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Divider/types.d.ts +0 -5
- package/dist/components/Divider/types.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +2 -2
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts +2 -2
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
- package/dist/components/Fieldset/Fieldset.vue.d.ts +4 -4
- package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
- package/dist/components/FileUpload/styles.css +2 -2
- package/dist/components/FloatLabel/FloatLabel.vue.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
- package/dist/components/Icon/icons.d.ts +32 -0
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts +0 -1
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/styles.css +3 -5
- package/dist/components/Input/types.d.ts +1 -3
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.vue.d.ts.map +1 -1
- package/dist/components/InputOtp/InputOtp.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/InputPassword.vue.d.ts +4 -4
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputTags/InputTags.vue.d.ts.map +1 -1
- package/dist/components/Layout/Layout.vue.d.ts +1 -4
- package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutContent.vue.d.ts +1 -4
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutFooter.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutHeader.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutSider.vue.d.ts +1 -4
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +9 -0
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -0
- package/dist/components/Layout/composables/useLayoutScroll.d.ts +6 -0
- package/dist/components/Layout/composables/useLayoutScroll.d.ts.map +1 -0
- package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts +16 -0
- package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts.map +1 -0
- package/dist/components/Layout/styles.css +19 -49
- package/dist/components/Layout/types.d.ts +0 -22
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Layout/utils.d.ts +3 -0
- package/dist/components/Layout/utils.d.ts.map +1 -0
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
- package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Panel/Panel.vue.d.ts +3 -3
- package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Popover/styles.css +41 -0
- package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
- package/dist/components/Rating/styles.css +28 -23
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +1 -1
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/styles.css +8 -108
- package/dist/components/Select/types.d.ts +3 -3
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
- package/dist/components/Slider/types.d.ts +2 -0
- package/dist/components/Slider/types.d.ts.map +1 -1
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/Table/Table.vue.d.ts +9 -9
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts +3 -3
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Terminal/styles.css +8 -8
- package/dist/components/Textarea/Textarea.vue.d.ts +0 -2
- package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/components/Textarea/styles.css +1 -2
- package/dist/components/Textarea/types.d.ts +1 -5
- package/dist/components/Textarea/types.d.ts.map +1 -1
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +21 -12
- package/dist/components/TreeTable/TreeTableRow.vue.d.ts.map +1 -1
- package/dist/{config-DWwce9jA.js → config-CTLkobga.js} +1 -0
- package/dist/config-provider/index.js +1 -1
- package/dist/config-provider/style.css +7 -10
- package/dist/confirm-dialog/index.js +4 -4
- package/dist/confirm-dialog/style.css +4 -5
- package/dist/confirm-popup/index.js +62 -77
- package/dist/confirm-popup/style.css +4 -5
- package/dist/context-menu/index.js +69 -61
- package/dist/context-menu/style.css +4 -5
- package/dist/data-view/index.js +1 -1
- package/dist/data-view/style.css +4 -5
- package/dist/date-picker/index.js +144 -137
- package/dist/date-picker/style.css +76 -13
- package/dist/date-picker/style.js +1 -0
- package/dist/dialog/index.js +76 -70
- package/dist/dialog/style.css +4 -5
- package/dist/divider/index.js +1 -2
- package/dist/divider/style.css +4 -5
- package/dist/dock/style.css +4 -5
- package/dist/drawer/index.js +49 -45
- package/dist/drawer/style.css +43 -5
- package/dist/drawer/style.js +1 -0
- package/dist/dropdown/index.js +98 -97
- package/dist/dropdown/style.css +4 -5
- package/dist/fieldset/index.js +16 -12
- package/dist/fieldset/style.css +43 -5
- package/dist/fieldset/style.js +1 -0
- package/dist/file-upload/index.js +2 -2
- package/dist/file-upload/style.css +6 -7
- package/dist/flex/index.js +1 -1
- package/dist/flex/style.css +4 -5
- package/dist/float-label/index.js +15 -4
- package/dist/float-label/style.css +4 -5
- package/dist/fluid/style.css +4 -5
- package/dist/form/index.js +1 -1
- package/dist/form/style.css +4 -5
- package/dist/gallery/index.js +41 -34
- package/dist/gallery/style.css +43 -5
- package/dist/gallery/style.js +1 -0
- package/dist/grid/style.css +4 -5
- package/dist/icon/index.js +1 -1
- package/dist/icon/style.css +4 -5
- package/dist/icon-Cg5TeFqe.js +7 -0
- package/dist/icon-field/style.css +4 -5
- package/dist/index.js +2783 -2643
- package/dist/inplace/style.css +4 -5
- package/dist/input/index.js +65 -66
- package/dist/input/style.css +46 -10
- package/dist/input/style.js +1 -0
- package/dist/input-color/index.js +1 -1
- package/dist/input-color/style.css +4 -5
- package/dist/input-group/style.css +4 -5
- package/dist/input-number/index.js +82 -66
- package/dist/input-number/style.css +43 -5
- package/dist/input-number/style.js +1 -0
- package/dist/input-otp/index.js +3 -3
- package/dist/input-otp/style.css +4 -5
- package/dist/input-password/index.js +46 -43
- package/dist/input-password/style.css +4 -5
- package/dist/input-tags/index.js +50 -46
- package/dist/input-tags/style.css +43 -5
- package/dist/input-tags/style.js +1 -0
- package/dist/key-CaQYVkjh.js +6 -0
- package/dist/knob/style.css +4 -5
- package/dist/label/style.css +4 -5
- package/dist/layout/index.js +196 -271
- package/dist/layout/style.css +48 -140
- package/dist/layout/style.js +1 -1
- package/dist/listbox/index.js +1 -1
- package/dist/listbox/style.css +4 -5
- package/dist/locale/en-US.d.ts.map +1 -1
- package/dist/locale/types.d.ts +1 -0
- package/dist/locale/types.d.ts.map +1 -1
- package/dist/locale/zh-CN.d.ts.map +1 -1
- package/dist/{locale-CYkJyRd1.js → locale-DxAvgqgB.js} +1 -1
- package/dist/mega-menu/index.js +47 -49
- package/dist/mega-menu/style.css +4 -5
- package/dist/menu/index.js +81 -76
- package/dist/menu/style.css +4 -5
- package/dist/menubar/index.js +75 -73
- package/dist/menubar/style.css +4 -5
- package/dist/message/index.js +3 -3
- package/dist/message/style.css +4 -5
- package/dist/meter-group/style.css +4 -5
- package/dist/order-list/index.js +2 -2
- package/dist/order-list/style.css +4 -5
- package/dist/overlayPlacement-CN1tuC95.js +51 -0
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +43 -5
- package/dist/pagination/style.js +1 -0
- package/dist/panel/index.js +27 -23
- package/dist/panel/style.css +43 -5
- package/dist/panel/style.js +1 -0
- package/dist/pick-list/index.js +2 -2
- package/dist/pick-list/style.css +4 -5
- package/dist/popover/index.js +79 -100
- package/dist/popover/style.css +45 -5
- package/dist/progress-bar/style.css +4 -5
- package/dist/progress-spinner/index.js +1 -1
- package/dist/progress-spinner/style.css +4 -5
- package/dist/radio/index.js +1 -1
- package/dist/radio/style.css +4 -5
- package/dist/rating/index.js +54 -44
- package/dist/rating/style.css +71 -28
- package/dist/rating/style.js +1 -0
- package/dist/scroll-top/index.js +45 -41
- package/dist/scroll-top/style.css +43 -5
- package/dist/scroll-top/style.js +1 -0
- package/dist/scrollbar/index.js +382 -2
- package/dist/scrollbar/style.css +4 -5
- package/dist/select/index.js +149 -141
- package/dist/select/style.css +51 -113
- package/dist/select/style.js +1 -0
- package/dist/select-button/index.js +1 -1
- package/dist/select-button/style.css +4 -5
- package/dist/shared/componentDefaults.d.ts +5 -1
- package/dist/shared/componentDefaults.d.ts.map +1 -1
- package/dist/shared/menu/icon.d.ts +4 -0
- package/dist/shared/menu/icon.d.ts.map +1 -0
- package/dist/shared/menu/index.d.ts +4 -0
- package/dist/shared/menu/index.d.ts.map +1 -0
- package/dist/shared/menu/key.d.ts +4 -0
- package/dist/shared/menu/key.d.ts.map +1 -0
- package/dist/shared/menu/types.d.ts +11 -0
- package/dist/shared/menu/types.d.ts.map +1 -0
- package/dist/shared/overlayPlacement.d.ts +12 -0
- package/dist/shared/overlayPlacement.d.ts.map +1 -0
- package/dist/sidebar/index.js +1 -1
- package/dist/sidebar/style.css +4 -5
- package/dist/skeleton/style.css +4 -5
- package/dist/slider/index.js +6 -3
- package/dist/slider/style.css +4 -5
- package/dist/space/index.js +1 -1
- package/dist/space/style.css +4 -5
- package/dist/speed-dial/index.js +55 -66
- package/dist/speed-dial/style.css +43 -5
- package/dist/speed-dial/style.js +1 -0
- package/dist/split-button/index.js +66 -63
- package/dist/split-button/style.css +43 -5
- package/dist/split-button/style.js +1 -0
- package/dist/splitter/index.js +1 -1
- package/dist/splitter/style.css +4 -5
- package/dist/stepper/style.css +4 -5
- package/dist/styles/base.css +4 -5
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/switch/style.css +4 -5
- package/dist/table/index.js +41 -35
- package/dist/table/style.css +4 -5
- package/dist/tabs/index.js +78 -65
- package/dist/tabs/style.css +43 -5
- package/dist/tabs/style.js +1 -0
- package/dist/tag/index.js +31 -28
- package/dist/tag/style.css +4 -5
- package/dist/terminal/index.js +1 -1
- package/dist/terminal/style.css +12 -13
- package/dist/textarea/index.js +69 -75
- package/dist/textarea/style.css +44 -7
- package/dist/textarea/style.js +1 -0
- package/dist/tiered-menu/index.js +66 -59
- package/dist/tiered-menu/style.css +43 -5
- package/dist/tiered-menu/style.js +1 -0
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/style.css +4 -5
- package/dist/toast/index.js +93 -89
- package/dist/toast/style.css +43 -5
- package/dist/toast/style.js +1 -0
- package/dist/toggle-button/index.js +1 -1
- package/dist/toggle-button/style.css +4 -5
- package/dist/toolbar/style.css +4 -5
- package/dist/tooltip/index.js +47 -71
- package/dist/tooltip/style.css +4 -5
- package/dist/tree/index.js +3 -3
- package/dist/tree/style.css +4 -5
- package/dist/tree-select/index.js +164 -155
- package/dist/tree-select/style.css +64 -17
- package/dist/tree-select/style.js +1 -0
- package/dist/tree-table/index.js +34 -30
- package/dist/tree-table/style.css +43 -5
- package/dist/tree-table/style.js +1 -0
- package/dist/virtual-scroller/style.css +4 -5
- package/package.json +4 -1
- package/dist/Pagination-BU-1IY0E.js +0 -148
- package/dist/Scrollbar-D-bR2noX.js +0 -382
package/dist/speed-dial/index.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "../Icon-DHGs8l-M.js";
|
|
2
|
+
import { n as t, t as n } from "../overlay-oR-5MDuE.js";
|
|
3
|
+
import { t as r } from "../overlayPlacement-CN1tuC95.js";
|
|
4
|
+
import { c as i } from "../config-CTLkobga.js";
|
|
5
|
+
import { n as a } from "../locale-DxAvgqgB.js";
|
|
4
6
|
import "./style.js";
|
|
5
|
-
import { Fragment as
|
|
7
|
+
import { Fragment as o, Teleport as s, Transition as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, watch as T, withCtx as E } from "vue";
|
|
6
8
|
//#region src/components/SpeedDial/SpeedDial.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
9
|
+
var D = [
|
|
8
10
|
"title",
|
|
9
11
|
"aria-label",
|
|
10
12
|
"disabled",
|
|
11
13
|
"onClick"
|
|
12
|
-
],
|
|
14
|
+
], O = {
|
|
13
15
|
key: 0,
|
|
14
16
|
"aria-hidden": "true"
|
|
15
|
-
},
|
|
17
|
+
}, k = { class: "wi-speeddial__action-label" }, A = [
|
|
16
18
|
"aria-label",
|
|
17
19
|
"aria-expanded",
|
|
18
20
|
"disabled"
|
|
19
|
-
],
|
|
21
|
+
], j = /* @__PURE__ */ h({
|
|
20
22
|
__name: "SpeedDial",
|
|
21
23
|
props: {
|
|
22
24
|
model: { default: () => [] },
|
|
@@ -37,88 +39,75 @@ var E = [
|
|
|
37
39
|
appendTo: {}
|
|
38
40
|
},
|
|
39
41
|
emits: ["update:modelValue"],
|
|
40
|
-
setup(
|
|
41
|
-
let
|
|
42
|
+
setup(h, { emit: j }) {
|
|
43
|
+
let M = h, N = j, P = i(), F = a(), I = l(() => M.ariaLabel ?? F.value.speedDial), L = x(null), R = x(null), z = x(null), B = x({}), V = l(() => t(M, P.value.appendTo)), H = l(() => n(M, P.value.appendTo)), U = l(() => [
|
|
42
44
|
"wi-speeddial",
|
|
43
|
-
`wi-speeddial--${
|
|
45
|
+
`wi-speeddial--${M.direction}`,
|
|
44
46
|
{
|
|
45
|
-
"wi-speeddial--open":
|
|
46
|
-
"wi-speeddial--disabled":
|
|
47
|
+
"wi-speeddial--open": M.modelValue,
|
|
48
|
+
"wi-speeddial--disabled": M.disabled
|
|
47
49
|
}
|
|
48
50
|
]);
|
|
49
|
-
function U() {
|
|
50
|
-
if (!V.value || !L.value) return;
|
|
51
|
-
let e = L.value.getBoundingClientRect();
|
|
52
|
-
j.direction === "up" ? z.value = {
|
|
53
|
-
left: `${e.left + e.width / 2}px`,
|
|
54
|
-
top: `${e.top - 8}px`,
|
|
55
|
-
transform: "translate(-50%, -100%)"
|
|
56
|
-
} : j.direction === "down" ? z.value = {
|
|
57
|
-
left: `${e.left + e.width / 2}px`,
|
|
58
|
-
top: `${e.bottom + 8}px`,
|
|
59
|
-
transform: "translateX(-50%)"
|
|
60
|
-
} : j.direction === "left" ? z.value = {
|
|
61
|
-
left: `${e.left - 8}px`,
|
|
62
|
-
top: `${e.top + e.height / 2}px`,
|
|
63
|
-
transform: "translate(-100%, -50%)"
|
|
64
|
-
} : z.value = {
|
|
65
|
-
left: `${e.right + 8}px`,
|
|
66
|
-
top: `${e.top + e.height / 2}px`,
|
|
67
|
-
transform: "translateY(-50%)"
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
51
|
function W() {
|
|
71
|
-
|
|
52
|
+
if (!H.value || !R.value) return;
|
|
53
|
+
let e = R.value.getBoundingClientRect(), t = M.direction === "up" ? "top" : M.direction === "down" ? "bottom" : M.direction === "left" ? "left" : "right";
|
|
54
|
+
B.value = r(e, t);
|
|
55
|
+
}
|
|
56
|
+
function G() {
|
|
57
|
+
M.disabled || N("update:modelValue", !M.modelValue);
|
|
72
58
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
59
|
+
function K(e) {
|
|
60
|
+
M.disabled || e.disabled || (e.command?.(), N("update:modelValue", !1));
|
|
75
61
|
}
|
|
76
|
-
function
|
|
77
|
-
|
|
62
|
+
function q() {
|
|
63
|
+
M.modelValue && W();
|
|
78
64
|
}
|
|
79
|
-
return
|
|
80
|
-
e ? (
|
|
81
|
-
}),
|
|
82
|
-
window.removeEventListener("resize",
|
|
83
|
-
}), (
|
|
65
|
+
return T(() => M.modelValue, (e) => {
|
|
66
|
+
e ? (g(() => W()), H.value && (window.addEventListener("resize", q), window.addEventListener("scroll", q, !0))) : (window.removeEventListener("resize", q), window.removeEventListener("scroll", q, !0));
|
|
67
|
+
}), y(() => {
|
|
68
|
+
window.removeEventListener("resize", q), window.removeEventListener("scroll", q, !0);
|
|
69
|
+
}), (t, n) => (b(), f("div", {
|
|
84
70
|
ref_key: "root",
|
|
85
|
-
ref:
|
|
86
|
-
class:
|
|
87
|
-
}, [(
|
|
88
|
-
to:
|
|
89
|
-
disabled:
|
|
90
|
-
}, [
|
|
91
|
-
default:
|
|
71
|
+
ref: L,
|
|
72
|
+
class: _(U.value)
|
|
73
|
+
}, [(b(), u(s, {
|
|
74
|
+
to: V.value.to,
|
|
75
|
+
disabled: V.value.disabled
|
|
76
|
+
}, [m(c, { name: "wi-scale-fade" }, {
|
|
77
|
+
default: E(() => [h.modelValue ? (b(), f("ul", {
|
|
92
78
|
key: 0,
|
|
93
79
|
ref_key: "list",
|
|
94
|
-
ref:
|
|
95
|
-
class:
|
|
96
|
-
style:
|
|
80
|
+
ref: z,
|
|
81
|
+
class: _(["wi-speeddial__list", { "wi-speeddial__list--teleported": H.value }]),
|
|
82
|
+
style: v(H.value ? B.value : void 0),
|
|
97
83
|
role: "menu"
|
|
98
|
-
}, [(
|
|
84
|
+
}, [(b(!0), f(o, null, S(h.model, (e, t) => (b(), f("li", {
|
|
99
85
|
key: `${e.label}-${t}`,
|
|
100
86
|
role: "none"
|
|
101
|
-
}, [
|
|
87
|
+
}, [p("button", {
|
|
102
88
|
type: "button",
|
|
103
89
|
class: "wi-speeddial__action",
|
|
104
90
|
role: "menuitem",
|
|
105
91
|
title: e.label,
|
|
106
92
|
"aria-label": e.label,
|
|
107
93
|
disabled: e.disabled,
|
|
108
|
-
onClick: (t) =>
|
|
109
|
-
}, [e.icon ? (
|
|
94
|
+
onClick: (t) => K(e)
|
|
95
|
+
}, [e.icon ? (b(), f("span", O, w(e.icon), 1)) : d("", !0), p("span", k, w(e.label), 1)], 8, D)]))), 128))], 6)) : d("", !0)]),
|
|
110
96
|
_: 1
|
|
111
|
-
})], 8, ["to", "disabled"])),
|
|
97
|
+
})], 8, ["to", "disabled"])), p("button", {
|
|
112
98
|
ref_key: "button",
|
|
113
|
-
ref:
|
|
99
|
+
ref: R,
|
|
114
100
|
type: "button",
|
|
115
101
|
class: "wi-speeddial__button",
|
|
116
|
-
"aria-label":
|
|
117
|
-
"aria-expanded":
|
|
118
|
-
disabled:
|
|
119
|
-
onClick:
|
|
120
|
-
}, [
|
|
102
|
+
"aria-label": I.value,
|
|
103
|
+
"aria-expanded": h.modelValue,
|
|
104
|
+
disabled: h.disabled,
|
|
105
|
+
onClick: G
|
|
106
|
+
}, [C(t.$slots, "icon", {}, () => [m(e, {
|
|
107
|
+
name: "plus",
|
|
108
|
+
size: "sm"
|
|
109
|
+
})])], 8, A)], 2));
|
|
121
110
|
}
|
|
122
111
|
});
|
|
123
112
|
//#endregion
|
|
124
|
-
export {
|
|
113
|
+
export { j as WiSpeedDial };
|
|
@@ -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
|
/* —— Primitive: SpeedDial —— */
|
|
754
792
|
.wi-speeddial {
|
|
755
793
|
display: inline-flex;
|
package/dist/speed-dial/style.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "../Icon-DHGs8l-M.js";
|
|
2
|
+
import { n as t, t as n } from "../overlay-oR-5MDuE.js";
|
|
3
|
+
import { t as r } from "../overlayPlacement-CN1tuC95.js";
|
|
4
|
+
import { c as i, o as a } from "../config-CTLkobga.js";
|
|
5
|
+
import { n as o } from "../locale-DxAvgqgB.js";
|
|
4
6
|
import "./style.js";
|
|
5
|
-
import { Fragment as
|
|
7
|
+
import { Fragment as s, Teleport as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, nextTick as _, normalizeClass as v, normalizeStyle as y, onBeforeUnmount as b, openBlock as x, ref as S, renderList as C, toDisplayString as w, unref as T, watch as E, withCtx as D } from "vue";
|
|
6
8
|
//#region src/components/SplitButton/SplitButton.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
9
|
+
var O = ["disabled"], k = {
|
|
8
10
|
key: 0,
|
|
9
11
|
class: "wi-splitbutton__icon",
|
|
10
12
|
"aria-hidden": "true"
|
|
11
|
-
},
|
|
13
|
+
}, A = { key: 1 }, j = [
|
|
12
14
|
"aria-label",
|
|
13
15
|
"aria-expanded",
|
|
14
16
|
"disabled"
|
|
15
|
-
],
|
|
17
|
+
], M = ["disabled", "onClick"], N = /* @__PURE__ */ g({
|
|
16
18
|
__name: "SplitButton",
|
|
17
19
|
props: {
|
|
18
20
|
label: {},
|
|
@@ -35,92 +37,93 @@ var E = ["disabled"], D = {
|
|
|
35
37
|
appendTo: {}
|
|
36
38
|
},
|
|
37
39
|
emits: ["click", "command"],
|
|
38
|
-
setup(
|
|
39
|
-
let
|
|
40
|
+
setup(g, { emit: N }) {
|
|
41
|
+
let P = g, F = N, I = i(), L = o(), R = S(!1), z = S(null), B = S(null), V = S({}), H = a("SplitButton", () => P.size), U = u(() => t(P, I.value.appendTo)), W = u(() => n(P, I.value.appendTo)), G = u(() => [
|
|
40
42
|
"wi-splitbutton",
|
|
41
|
-
`wi-splitbutton--${
|
|
43
|
+
`wi-splitbutton--${H.value}`,
|
|
42
44
|
{
|
|
43
|
-
"wi-splitbutton--disabled":
|
|
44
|
-
"wi-splitbutton--outlined":
|
|
45
|
-
[`wi-splitbutton--${
|
|
46
|
-
"wi-splitbutton--open":
|
|
45
|
+
"wi-splitbutton--disabled": P.disabled,
|
|
46
|
+
"wi-splitbutton--outlined": P.outlined,
|
|
47
|
+
[`wi-splitbutton--${P.severity}`]: !!P.severity,
|
|
48
|
+
"wi-splitbutton--open": R.value
|
|
47
49
|
}
|
|
48
50
|
]);
|
|
49
|
-
function
|
|
50
|
-
if (!
|
|
51
|
-
let e =
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
minWidth: `${e.width}px
|
|
55
|
-
|
|
56
|
-
top: `${e.bottom + 4}px`
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function G() {
|
|
60
|
-
I.value && W();
|
|
61
|
-
}
|
|
62
|
-
function K(e) {
|
|
63
|
-
M.disabled || N("click", e);
|
|
51
|
+
function K() {
|
|
52
|
+
if (!W.value || !z.value) return;
|
|
53
|
+
let e = z.value.getBoundingClientRect();
|
|
54
|
+
V.value = r(e, "bottom-end", {
|
|
55
|
+
gap: 4,
|
|
56
|
+
minWidth: `${e.width}px`
|
|
57
|
+
});
|
|
64
58
|
}
|
|
65
59
|
function q() {
|
|
66
|
-
|
|
60
|
+
R.value && K();
|
|
67
61
|
}
|
|
68
62
|
function J(e) {
|
|
69
|
-
|
|
63
|
+
P.disabled || F("click", e);
|
|
64
|
+
}
|
|
65
|
+
function Y() {
|
|
66
|
+
P.disabled || (R.value = !R.value);
|
|
67
|
+
}
|
|
68
|
+
function X(e) {
|
|
69
|
+
e.disabled || P.disabled || (e.command?.(), F("command", e), R.value = !1);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Z(e) {
|
|
72
72
|
let t = e.target;
|
|
73
|
-
|
|
73
|
+
z.value?.contains(t) || B.value?.contains(t) || (R.value = !1);
|
|
74
74
|
}
|
|
75
|
-
return
|
|
76
|
-
e ? (document.addEventListener("click",
|
|
77
|
-
}),
|
|
78
|
-
document.removeEventListener("click",
|
|
79
|
-
}), (
|
|
75
|
+
return E(R, (e) => {
|
|
76
|
+
e ? (document.addEventListener("click", Z), _(() => K()), W.value && (window.addEventListener("resize", q), window.addEventListener("scroll", q, !0))) : (document.removeEventListener("click", Z), window.removeEventListener("resize", q), window.removeEventListener("scroll", q, !0));
|
|
77
|
+
}), b(() => {
|
|
78
|
+
document.removeEventListener("click", Z), window.removeEventListener("resize", q), window.removeEventListener("scroll", q, !0);
|
|
79
|
+
}), (t, n) => (x(), p("div", {
|
|
80
80
|
ref_key: "root",
|
|
81
|
-
ref:
|
|
82
|
-
class:
|
|
81
|
+
ref: z,
|
|
82
|
+
class: v(G.value)
|
|
83
83
|
}, [
|
|
84
|
-
|
|
84
|
+
m("button", {
|
|
85
85
|
type: "button",
|
|
86
86
|
class: "wi-splitbutton__main",
|
|
87
|
-
disabled:
|
|
88
|
-
onClick:
|
|
89
|
-
}, [
|
|
90
|
-
|
|
87
|
+
disabled: g.disabled,
|
|
88
|
+
onClick: J
|
|
89
|
+
}, [g.icon ? (x(), p("span", k, w(g.icon), 1)) : f("", !0), g.label ? (x(), p("span", A, w(g.label), 1)) : f("", !0)], 8, O),
|
|
90
|
+
m("button", {
|
|
91
91
|
type: "button",
|
|
92
92
|
class: "wi-splitbutton__trigger",
|
|
93
|
-
"aria-label":
|
|
94
|
-
"aria-expanded":
|
|
93
|
+
"aria-label": T(L).moreActions,
|
|
94
|
+
"aria-expanded": R.value,
|
|
95
95
|
"aria-haspopup": "menu",
|
|
96
|
-
disabled:
|
|
97
|
-
onClick:
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
disabled: g.disabled,
|
|
97
|
+
onClick: Y
|
|
98
|
+
}, [h(e, {
|
|
99
|
+
name: "chevron-down",
|
|
100
|
+
size: "sm"
|
|
101
|
+
})], 8, j),
|
|
102
|
+
(x(), d(c, {
|
|
103
|
+
to: U.value.to,
|
|
104
|
+
disabled: U.value.disabled
|
|
105
|
+
}, [h(l, { name: "wi-scale-fade" }, {
|
|
106
|
+
default: D(() => [R.value ? (x(), p("ul", {
|
|
104
107
|
key: 0,
|
|
105
108
|
ref_key: "menu",
|
|
106
|
-
ref:
|
|
107
|
-
class:
|
|
108
|
-
style:
|
|
109
|
+
ref: B,
|
|
110
|
+
class: v(["wi-splitbutton__menu", { "wi-splitbutton__menu--teleported": W.value }]),
|
|
111
|
+
style: y(W.value ? V.value : void 0),
|
|
109
112
|
role: "menu"
|
|
110
|
-
}, [(
|
|
113
|
+
}, [(x(!0), p(s, null, C(g.model, (e, t) => (x(), p("li", {
|
|
111
114
|
key: `${e.label}-${t}`,
|
|
112
115
|
role: "presentation"
|
|
113
|
-
}, [
|
|
116
|
+
}, [m("button", {
|
|
114
117
|
type: "button",
|
|
115
118
|
class: "wi-splitbutton__item",
|
|
116
119
|
role: "menuitem",
|
|
117
120
|
disabled: e.disabled,
|
|
118
|
-
onClick: (t) =>
|
|
119
|
-
},
|
|
121
|
+
onClick: (t) => X(e)
|
|
122
|
+
}, w(e.label), 9, M)]))), 128))], 6)) : f("", !0)]),
|
|
120
123
|
_: 1
|
|
121
124
|
})], 8, ["to", "disabled"]))
|
|
122
125
|
], 2));
|
|
123
126
|
}
|
|
124
127
|
});
|
|
125
128
|
//#endregion
|
|
126
|
-
export {
|
|
129
|
+
export { N as WiSplitButton };
|
|
@@ -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
|
}
|
|
@@ -1386,6 +1385,45 @@
|
|
|
1386
1385
|
}
|
|
1387
1386
|
}
|
|
1388
1387
|
|
|
1388
|
+
.wi-icon {
|
|
1389
|
+
display: inline-flex;
|
|
1390
|
+
height: 1rem;
|
|
1391
|
+
width: 1rem;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
.wi-icon svg {
|
|
1395
|
+
height: 100%;
|
|
1396
|
+
width: 100%;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
.wi-icon--sm,
|
|
1400
|
+
.wi-icon--small {
|
|
1401
|
+
height: 0.875rem;
|
|
1402
|
+
width: 0.875rem;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
.wi-icon--md,
|
|
1406
|
+
.wi-icon--normal {
|
|
1407
|
+
height: 1rem;
|
|
1408
|
+
width: 1rem;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
.wi-icon--lg,
|
|
1412
|
+
.wi-icon--large {
|
|
1413
|
+
height: 1.25rem;
|
|
1414
|
+
width: 1.25rem;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
.wi-icon--spin svg {
|
|
1418
|
+
animation: wi-icon-spin 0.8s linear infinite;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
@keyframes wi-icon-spin {
|
|
1422
|
+
to {
|
|
1423
|
+
transform: rotate(360deg);
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1389
1427
|
/* —— Primitive: SplitButton —— */
|
|
1390
1428
|
.wi-splitbutton {
|
|
1391
1429
|
--wi-button-padding-x-medium: calc(
|
package/dist/splitter/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 { Comment as t, Fragment as n, Text as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as ee, openBlock as f, ref as p, renderSlot as m, resolveDynamicComponent as h, unref as g, useSlots as _, watch as v } from "vue";
|
|
4
4
|
//#region src/components/Splitter/size.ts
|
package/dist/splitter/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/stepper/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/styles/base.css
CHANGED
|
@@ -277,8 +277,8 @@
|
|
|
277
277
|
font-size: var(--wi-font-size-xs);
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
.wi-textarea-field__help--
|
|
281
|
-
.wi-select-field__help--
|
|
280
|
+
.wi-textarea-field__help--invalid,
|
|
281
|
+
.wi-select-field__help--invalid {
|
|
282
282
|
color: var(--wi-color-danger);
|
|
283
283
|
}
|
|
284
284
|
|
|
@@ -297,9 +297,8 @@
|
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
.wi-textarea--invalid:focus-visible,
|
|
300
|
-
.wi-
|
|
301
|
-
.wi-select--
|
|
302
|
-
.wi-select--error:focus-visible {
|
|
300
|
+
.wi-select--invalid.wi-select--open,
|
|
301
|
+
.wi-select--invalid:focus-visible {
|
|
303
302
|
border-color: var(--wi-color-danger);
|
|
304
303
|
box-shadow: var(--wi-focus-shadow-danger);
|
|
305
304
|
}
|