@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/dialog/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { t as e } from "../Icon-
|
|
2
|
-
import { t } from "../Button-
|
|
1
|
+
import { t as e } from "../Icon-DHGs8l-M.js";
|
|
2
|
+
import { t } from "../Button-tnrMSwNg.js";
|
|
3
3
|
import { n } from "../overlay-oR-5MDuE.js";
|
|
4
4
|
import { t as r } from "../useModalOverlay-Beo3CEAt.js";
|
|
5
5
|
import { t as i } from "../asyncGuard-CPGT_TKu.js";
|
|
6
6
|
import { t as a } from "../lastPointer-CRxcUqdd.js";
|
|
7
|
-
import { c as o } from "../config-
|
|
8
|
-
import { n as s } from "../locale-
|
|
7
|
+
import { c as o } from "../config-CTLkobga.js";
|
|
8
|
+
import { n as s } from "../locale-DxAvgqgB.js";
|
|
9
9
|
import "./style.js";
|
|
10
|
-
import { 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, normalizeClass as _, normalizeStyle as v, openBlock as y, ref as b, renderSlot as x, toDisplayString as S, toRef as C, unref as w, useSlots as
|
|
10
|
+
import { 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, normalizeClass as _, normalizeStyle as v, openBlock as y, ref as b, renderSlot as x, toDisplayString as S, toRef as C, unref as w, useSlots as T, watch as ee, withCtx as te, withModifiers as ne } from "vue";
|
|
11
11
|
//#region src/components/Dialog/Dialog.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var E = ["aria-modal", "aria-label"],
|
|
12
|
+
var E = ["aria-modal", "aria-label"], D = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "wi-dialog__header"
|
|
15
|
-
},
|
|
15
|
+
}, O = { class: "wi-dialog__heading" }, k = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "wi-dialog__type-icon",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
},
|
|
19
|
+
}, A = { key: 0 }, j = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "wi-dialog__actions"
|
|
22
|
-
},
|
|
22
|
+
}, M = ["aria-label", "disabled"], N = ["aria-label", "disabled"], P = { class: "wi-dialog__body" }, F = /* @__PURE__ */ g({
|
|
23
23
|
__name: "Dialog",
|
|
24
24
|
props: {
|
|
25
25
|
modelValue: {
|
|
@@ -73,138 +73,144 @@ var E = ["aria-modal", "aria-label"], re = {
|
|
|
73
73
|
"maximize",
|
|
74
74
|
"unmaximize"
|
|
75
75
|
],
|
|
76
|
-
setup(g, { emit:
|
|
77
|
-
let
|
|
78
|
-
let e =
|
|
76
|
+
setup(g, { emit: F }) {
|
|
77
|
+
let I = g, L = F, R = T(), z = o(), B = s(), V = b(null), H = b(!1), U = b(a()), W = b(null), G = u(() => I.header ?? I.title), K = u(() => n(I, z.value.appendTo)), q = u(() => {
|
|
78
|
+
let e = I.type;
|
|
79
79
|
return e === "warning" || e === "warn" ? "warn" : e;
|
|
80
|
-
}),
|
|
81
|
-
switch (
|
|
80
|
+
}), J = u(() => {
|
|
81
|
+
switch (q.value) {
|
|
82
82
|
case "success": return "check-circle";
|
|
83
83
|
case "warn": return "warning";
|
|
84
84
|
case "error": return "x-circle";
|
|
85
85
|
case "info": return "info";
|
|
86
86
|
default: return;
|
|
87
87
|
}
|
|
88
|
-
}),
|
|
89
|
-
zIndex: String(
|
|
90
|
-
"--wi-dialog-origin-x": `${
|
|
91
|
-
"--wi-dialog-origin-y": `${
|
|
92
|
-
})), ie = u(() =>
|
|
88
|
+
}), Y = u(() => !R.footer && !!(I.positiveText || I.negativeText)), X = u(() => !!(R.footer || Y.value)), Z = u(() => W.value != null), re = u(() => ({
|
|
89
|
+
zIndex: String(z.value.zIndex ?? 1e3),
|
|
90
|
+
"--wi-dialog-origin-x": `${U.value.x}px`,
|
|
91
|
+
"--wi-dialog-origin-y": `${U.value.y}px`
|
|
92
|
+
})), ie = u(() => I.dismissableMask === void 0 ? I.closeOnOutsideClick === void 0 || I.closeOnOutsideClick : I.dismissableMask);
|
|
93
93
|
function Q() {
|
|
94
|
-
|
|
94
|
+
H.value = !1, W.value = null, L("update:modelValue", !1), L("close");
|
|
95
95
|
}
|
|
96
96
|
async function $() {
|
|
97
|
-
if (!
|
|
98
|
-
if (!
|
|
97
|
+
if (!W.value) {
|
|
98
|
+
if (!I.beforeClose) {
|
|
99
99
|
Q();
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
W.value = "close";
|
|
103
103
|
try {
|
|
104
|
-
if (!await i(
|
|
104
|
+
if (!await i(I.beforeClose)) return;
|
|
105
105
|
Q();
|
|
106
106
|
} finally {
|
|
107
|
-
|
|
107
|
+
W.value === "close" && (W.value = null);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
async function ae(e) {
|
|
112
|
-
if (!
|
|
113
|
-
|
|
112
|
+
if (!W.value) {
|
|
113
|
+
W.value = "positive";
|
|
114
114
|
try {
|
|
115
|
-
if (!await i(
|
|
115
|
+
if (!await i(I.onPositiveClick, e)) return;
|
|
116
116
|
Q();
|
|
117
117
|
} finally {
|
|
118
|
-
|
|
118
|
+
W.value === "positive" && (W.value = null);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
async function oe(e) {
|
|
123
|
-
if (!
|
|
124
|
-
|
|
123
|
+
if (!W.value) {
|
|
124
|
+
W.value = "negative";
|
|
125
125
|
try {
|
|
126
|
-
if (!await i(
|
|
126
|
+
if (!await i(I.onNegativeClick, e)) return;
|
|
127
127
|
Q();
|
|
128
128
|
} finally {
|
|
129
|
-
|
|
129
|
+
W.value === "negative" && (W.value = null);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
function se() {
|
|
134
|
-
|
|
134
|
+
H.value = !H.value, H.value ? L("maximize") : L("unmaximize");
|
|
135
135
|
}
|
|
136
136
|
function ce() {
|
|
137
137
|
ie.value && $();
|
|
138
138
|
}
|
|
139
|
-
return
|
|
140
|
-
e && (
|
|
139
|
+
return ee(() => I.modelValue, (e) => {
|
|
140
|
+
e && (U.value = a());
|
|
141
141
|
}), r({
|
|
142
|
-
open: C(
|
|
143
|
-
container:
|
|
144
|
-
closeOnEsc: C(
|
|
145
|
-
blockScroll: () =>
|
|
142
|
+
open: C(I, "modelValue"),
|
|
143
|
+
container: V,
|
|
144
|
+
closeOnEsc: C(I, "closeOnEsc"),
|
|
145
|
+
blockScroll: () => I.blockScroll && I.modal,
|
|
146
146
|
onEscape: () => {
|
|
147
147
|
$();
|
|
148
148
|
},
|
|
149
|
-
onOpen: () =>
|
|
149
|
+
onOpen: () => L("show"),
|
|
150
150
|
onClose: () => {
|
|
151
|
-
|
|
151
|
+
H.value = !1, L("hide");
|
|
152
152
|
}
|
|
153
153
|
}), (n, r) => (y(), d(c, {
|
|
154
|
-
to:
|
|
155
|
-
disabled:
|
|
154
|
+
to: K.value.to,
|
|
155
|
+
disabled: K.value.disabled
|
|
156
156
|
}, [h(l, { name: "wi-dialog" }, {
|
|
157
|
-
default:
|
|
157
|
+
default: te(() => [g.modelValue ? (y(), p("div", {
|
|
158
158
|
key: 0,
|
|
159
159
|
class: _(["wi-dialog-backdrop", [`wi-dialog-backdrop--${g.position}`, {
|
|
160
160
|
"wi-dialog-backdrop--modal": g.modal,
|
|
161
|
-
"wi-dialog-backdrop--maximized":
|
|
161
|
+
"wi-dialog-backdrop--maximized": H.value
|
|
162
162
|
}]]),
|
|
163
|
-
style: v(
|
|
163
|
+
style: v(re.value)
|
|
164
164
|
}, [m("div", {
|
|
165
165
|
class: "wi-dialog-zoom",
|
|
166
|
-
onClick:
|
|
166
|
+
onClick: ne(ce, ["self"])
|
|
167
167
|
}, [m("section", {
|
|
168
168
|
ref_key: "dialogElement",
|
|
169
|
-
ref:
|
|
169
|
+
ref: V,
|
|
170
170
|
class: _(["wi-dialog", {
|
|
171
|
-
"wi-dialog--maximized":
|
|
172
|
-
[`wi-dialog--${
|
|
171
|
+
"wi-dialog--maximized": H.value,
|
|
172
|
+
[`wi-dialog--${q.value}`]: q.value
|
|
173
173
|
}]),
|
|
174
|
-
style: v(g.width && !
|
|
174
|
+
style: v(g.width && !H.value ? { width: g.width } : void 0),
|
|
175
175
|
role: "dialog",
|
|
176
176
|
"aria-modal": g.modal || void 0,
|
|
177
|
-
"aria-label":
|
|
177
|
+
"aria-label": G.value,
|
|
178
178
|
tabindex: "-1"
|
|
179
179
|
}, [
|
|
180
|
-
n.$slots.header ||
|
|
181
|
-
name:
|
|
180
|
+
n.$slots.header || G.value || J.value || g.closable || g.maximizable ? (y(), p("header", D, [m("div", O, [J.value ? (y(), p("span", k, [h(e, {
|
|
181
|
+
name: J.value,
|
|
182
182
|
size: "sm"
|
|
183
|
-
}, null, 8, ["name"])])) : f("", !0), x(n.$slots, "header", {}, () => [
|
|
183
|
+
}, null, 8, ["name"])])) : f("", !0), x(n.$slots, "header", {}, () => [G.value ? (y(), p("h2", A, S(G.value), 1)) : f("", !0)])]), g.maximizable || g.closable ? (y(), p("div", j, [g.maximizable ? (y(), p("button", {
|
|
184
184
|
key: 0,
|
|
185
185
|
type: "button",
|
|
186
186
|
class: "wi-dialog__action",
|
|
187
|
-
"aria-label":
|
|
188
|
-
disabled:
|
|
187
|
+
"aria-label": H.value ? w(B).restore : w(B).maximize,
|
|
188
|
+
disabled: Z.value,
|
|
189
189
|
onClick: se
|
|
190
|
-
},
|
|
190
|
+
}, [h(e, {
|
|
191
|
+
name: H.value ? "restore" : "maximize",
|
|
192
|
+
size: "sm"
|
|
193
|
+
}, null, 8, ["name"])], 8, M)) : f("", !0), g.closable ? (y(), p("button", {
|
|
191
194
|
key: 1,
|
|
192
195
|
type: "button",
|
|
193
196
|
class: "wi-dialog__action",
|
|
194
|
-
"aria-label": w(
|
|
195
|
-
disabled:
|
|
197
|
+
"aria-label": w(B).close,
|
|
198
|
+
disabled: Z.value,
|
|
196
199
|
onClick: $
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
|
|
200
|
+
}, [h(e, {
|
|
201
|
+
name: "close",
|
|
202
|
+
size: "sm"
|
|
203
|
+
})], 8, N)) : f("", !0)])) : f("", !0)])) : f("", !0),
|
|
204
|
+
m("div", P, [x(n.$slots, "default")]),
|
|
205
|
+
X.value ? (y(), p("footer", {
|
|
200
206
|
key: 1,
|
|
201
|
-
class: _(["wi-dialog__footer", { "wi-dialog__footer--preset":
|
|
207
|
+
class: _(["wi-dialog__footer", { "wi-dialog__footer--preset": Y.value }])
|
|
202
208
|
}, [x(n.$slots, "footer", {}, () => [g.negativeText ? (y(), d(t, {
|
|
203
209
|
key: 0,
|
|
204
210
|
label: g.negativeText,
|
|
205
211
|
severity: "secondary",
|
|
206
|
-
disabled:
|
|
207
|
-
loading:
|
|
212
|
+
disabled: Z.value,
|
|
213
|
+
loading: W.value === "negative",
|
|
208
214
|
onClick: oe
|
|
209
215
|
}, null, 8, [
|
|
210
216
|
"label",
|
|
@@ -214,8 +220,8 @@ var E = ["aria-modal", "aria-label"], re = {
|
|
|
214
220
|
key: 1,
|
|
215
221
|
label: g.positiveText,
|
|
216
222
|
severity: g.positiveSeverity,
|
|
217
|
-
disabled:
|
|
218
|
-
loading:
|
|
223
|
+
disabled: Z.value && W.value !== "positive",
|
|
224
|
+
loading: W.value === "positive",
|
|
219
225
|
onClick: ae
|
|
220
226
|
}, null, 8, [
|
|
221
227
|
"label",
|
|
@@ -229,4 +235,4 @@ var E = ["aria-modal", "aria-label"], re = {
|
|
|
229
235
|
}
|
|
230
236
|
});
|
|
231
237
|
//#endregion
|
|
232
|
-
export {
|
|
238
|
+
export { F as WiDialog };
|
package/dist/dialog/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/divider/index.js
CHANGED
|
@@ -11,14 +11,13 @@ var d = ["role", "aria-orientation"], f = {
|
|
|
11
11
|
__name: "Divider",
|
|
12
12
|
props: {
|
|
13
13
|
layout: {},
|
|
14
|
-
orientation: {},
|
|
15
14
|
type: { default: "solid" },
|
|
16
15
|
align: { default: "center" },
|
|
17
16
|
titlePlacement: {},
|
|
18
17
|
label: {}
|
|
19
18
|
},
|
|
20
19
|
setup(a) {
|
|
21
|
-
let m = a, h = u(), g = e(() => m.layout ??
|
|
20
|
+
let m = a, h = u(), g = e(() => m.layout ?? "horizontal"), _ = e(() => m.titlePlacement ?? m.align), v = e(() => !!(m.label || h.default)), y = e(() => [
|
|
22
21
|
"wi-divider",
|
|
23
22
|
`wi-divider--${g.value}`,
|
|
24
23
|
`wi-divider--${m.type}`,
|
package/dist/divider/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/dock/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/drawer/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { t as e } from "../Icon-DHGs8l-M.js";
|
|
2
|
+
import { n as t } from "../overlay-oR-5MDuE.js";
|
|
3
|
+
import { t as n } from "../useModalOverlay-Beo3CEAt.js";
|
|
4
|
+
import { c as r } from "../config-CTLkobga.js";
|
|
5
|
+
import { n as i } from "../locale-DxAvgqgB.js";
|
|
5
6
|
import "./style.js";
|
|
6
|
-
import { Teleport as
|
|
7
|
+
import { Teleport as a, Transition as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, normalizeStyle as h, openBlock as g, ref as _, renderSlot as v, toDisplayString as y, toRef as b, unref as x, withCtx as S, withModifiers as C } from "vue";
|
|
7
8
|
//#region src/components/Drawer/Drawer.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
9
|
+
var w = ["aria-modal", "aria-label"], T = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "wi-drawer__header"
|
|
11
|
-
},
|
|
12
|
+
}, E = { key: 0 }, D = ["aria-label"], O = { class: "wi-drawer__body" }, k = /* @__PURE__ */ p({
|
|
12
13
|
__name: "Drawer",
|
|
13
14
|
props: {
|
|
14
15
|
modelValue: {
|
|
@@ -47,66 +48,69 @@ var C = ["aria-modal", "aria-label"], w = {
|
|
|
47
48
|
"hide",
|
|
48
49
|
"after-leave"
|
|
49
50
|
],
|
|
50
|
-
setup(
|
|
51
|
-
let
|
|
52
|
-
function
|
|
51
|
+
setup(p, { emit: k }) {
|
|
52
|
+
let A = p, j = k, M = r(), N = i(), P = _(null), F = s(() => t(A, M.value.appendTo));
|
|
53
|
+
function I(e) {
|
|
53
54
|
if (e != null) return typeof e == "number" ? `${e}px` : e;
|
|
54
55
|
}
|
|
55
|
-
let
|
|
56
|
+
let L = s(() => {
|
|
56
57
|
let e = {};
|
|
57
|
-
if (
|
|
58
|
-
let t =
|
|
58
|
+
if (A.position === "left" || A.position === "right") {
|
|
59
|
+
let t = I(A.width);
|
|
59
60
|
t && (e.width = t);
|
|
60
61
|
}
|
|
61
|
-
if (
|
|
62
|
-
let t =
|
|
62
|
+
if (A.position === "top" || A.position === "bottom") {
|
|
63
|
+
let t = I(A.height);
|
|
63
64
|
t && (e.height = t, e.maxHeight = t);
|
|
64
65
|
}
|
|
65
66
|
return e;
|
|
66
67
|
});
|
|
67
|
-
function L() {
|
|
68
|
-
A("update:modelValue", !1);
|
|
69
|
-
}
|
|
70
68
|
function R() {
|
|
71
|
-
|
|
69
|
+
j("update:modelValue", !1);
|
|
70
|
+
}
|
|
71
|
+
function z() {
|
|
72
|
+
A.dismissable && R();
|
|
72
73
|
}
|
|
73
|
-
return
|
|
74
|
-
open:
|
|
75
|
-
container:
|
|
76
|
-
blockScroll: () =>
|
|
77
|
-
onEscape:
|
|
78
|
-
onOpen: () =>
|
|
79
|
-
onClose: () =>
|
|
80
|
-
}), (
|
|
81
|
-
to:
|
|
82
|
-
disabled:
|
|
83
|
-
}, [
|
|
74
|
+
return n({
|
|
75
|
+
open: b(A, "modelValue"),
|
|
76
|
+
container: P,
|
|
77
|
+
blockScroll: () => A.blockScroll && A.modal,
|
|
78
|
+
onEscape: R,
|
|
79
|
+
onOpen: () => j("show"),
|
|
80
|
+
onClose: () => j("hide")
|
|
81
|
+
}), (t, n) => (g(), c(a, {
|
|
82
|
+
to: F.value.to,
|
|
83
|
+
disabled: F.value.disabled
|
|
84
|
+
}, [f(o, {
|
|
84
85
|
name: "wi-drawer",
|
|
85
|
-
onAfterLeave:
|
|
86
|
+
onAfterLeave: n[0] ||= (e) => j("after-leave")
|
|
86
87
|
}, {
|
|
87
|
-
default:
|
|
88
|
+
default: S(() => [p.modelValue ? (g(), u("div", {
|
|
88
89
|
key: 0,
|
|
89
|
-
class:
|
|
90
|
-
onClick:
|
|
91
|
-
}, [
|
|
90
|
+
class: m(["wi-drawer-backdrop", { "wi-drawer-backdrop--modal": p.modal }]),
|
|
91
|
+
onClick: C(z, ["self"])
|
|
92
|
+
}, [d("aside", {
|
|
92
93
|
ref_key: "drawerElement",
|
|
93
|
-
ref:
|
|
94
|
-
class:
|
|
95
|
-
style:
|
|
94
|
+
ref: P,
|
|
95
|
+
class: m(["wi-drawer", `wi-drawer--${p.position}`]),
|
|
96
|
+
style: h(L.value),
|
|
96
97
|
role: "dialog",
|
|
97
|
-
"aria-modal":
|
|
98
|
-
"aria-label":
|
|
98
|
+
"aria-modal": p.modal || void 0,
|
|
99
|
+
"aria-label": p.header,
|
|
99
100
|
tabindex: "-1"
|
|
100
|
-
}, [
|
|
101
|
+
}, [t.$slots.header || p.header || p.showCloseIcon ? (g(), u("header", T, [v(t.$slots, "header", {}, () => [p.header ? (g(), u("h2", E, y(p.header), 1)) : l("", !0)]), p.showCloseIcon ? (g(), u("button", {
|
|
101
102
|
key: 0,
|
|
102
103
|
type: "button",
|
|
103
104
|
class: "wi-drawer__close",
|
|
104
|
-
"aria-label":
|
|
105
|
-
onClick:
|
|
106
|
-
},
|
|
105
|
+
"aria-label": x(N).close,
|
|
106
|
+
onClick: R
|
|
107
|
+
}, [f(e, {
|
|
108
|
+
name: "close",
|
|
109
|
+
size: "sm"
|
|
110
|
+
})], 8, D)) : l("", !0)])) : l("", !0), d("div", O, [v(t.$slots, "default")])], 14, w)], 2)) : l("", !0)]),
|
|
107
111
|
_: 3
|
|
108
112
|
})], 8, ["to", "disabled"]));
|
|
109
113
|
}
|
|
110
114
|
});
|
|
111
115
|
//#endregion
|
|
112
|
-
export {
|
|
116
|
+
export { k as WiDrawer };
|
package/dist/drawer/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
|
.wi-drawer-enter-active {
|
|
754
792
|
transition: opacity var(--wi-motion-enter) var(--wi-motion-ease);
|
|
755
793
|
}
|
package/dist/drawer/style.js
CHANGED