@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
|
@@ -1,129 +1,196 @@
|
|
|
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 ee, i as te, o as ne } from "../config-CTLkobga.js";
|
|
5
|
+
import { n as re } from "../locale-DxAvgqgB.js";
|
|
4
6
|
import "./style.js";
|
|
5
|
-
import { Fragment as
|
|
7
|
+
import { Fragment as i, Teleport as a, Transition as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as ie, onBeforeUnmount as ae, openBlock as g, ref as _, renderList as v, toDisplayString as y, unref as b, watch as x, withCtx as S } from "vue";
|
|
6
8
|
//#region src/components/CascadeSelect/CascadeSelect.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
9
|
+
var C = ["for"], w = [
|
|
10
|
+
"id",
|
|
11
|
+
"disabled",
|
|
12
|
+
"aria-expanded",
|
|
13
|
+
"aria-invalid",
|
|
14
|
+
"aria-describedby"
|
|
15
|
+
], T = { class: "wi-cascadeselect__label" }, E = { class: "wi-select__suffix" }, oe = ["aria-label"], se = ["id"], ce = [
|
|
8
16
|
"disabled",
|
|
9
17
|
"aria-selected",
|
|
10
18
|
"onClick"
|
|
11
|
-
],
|
|
12
|
-
key: 0,
|
|
13
|
-
"aria-hidden": "true"
|
|
14
|
-
}, A = /* @__PURE__ */ m({
|
|
19
|
+
], D = /* @__PURE__ */ p({
|
|
15
20
|
__name: "CascadeSelect",
|
|
16
21
|
props: {
|
|
17
22
|
modelValue: { default: null },
|
|
18
23
|
options: {},
|
|
24
|
+
label: {},
|
|
25
|
+
helpText: {},
|
|
26
|
+
invalid: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
errorMessage: {},
|
|
31
|
+
id: {},
|
|
19
32
|
placeholder: { default: void 0 },
|
|
20
33
|
disabled: {
|
|
21
34
|
type: Boolean,
|
|
22
35
|
default: !1
|
|
23
36
|
},
|
|
37
|
+
required: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !1
|
|
40
|
+
},
|
|
24
41
|
size: {},
|
|
42
|
+
fluid: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: void 0
|
|
45
|
+
},
|
|
46
|
+
clearable: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: void 0
|
|
49
|
+
},
|
|
25
50
|
teleport: {
|
|
26
51
|
type: Boolean,
|
|
27
52
|
default: !0
|
|
28
53
|
},
|
|
29
54
|
appendTo: {}
|
|
30
55
|
},
|
|
31
|
-
emits: ["update:modelValue"],
|
|
32
|
-
setup(
|
|
33
|
-
let
|
|
34
|
-
function
|
|
56
|
+
emits: ["update:modelValue", "clear"],
|
|
57
|
+
setup(p, { emit: D }) {
|
|
58
|
+
let O = p, k = D, A = te("CascadeSelect"), j = ee(), M = re(), N = ne("CascadeSelect", () => O.size), P = _(!1), F = _(null), I = _(null), L = _(null), R = _({}), z = _([]), B = s(() => O.id ?? `wi-cascadeselect-${Math.random().toString(36).slice(2, 8)}`), V = s(() => t(O, j.value.appendTo)), H = s(() => n(O, j.value.appendTo)), U = s(() => O.clearable ?? A.value.clearable ?? !1), W = s(() => O.fluid ?? A.value.fluid ?? !1), G = s(() => O.invalid || !!O.errorMessage), K = s(() => O.errorMessage || O.helpText), le = s(() => !!O.errorMessage || G.value && !!O.helpText), q = s(() => O.modelValue != null), J = s(() => U.value && q.value && !O.disabled), ue = s(() => Y(O.options, O.modelValue) ?? O.placeholder ?? M.value.selectPlaceholder);
|
|
59
|
+
function Y(e, t) {
|
|
60
|
+
if (t == null) return null;
|
|
35
61
|
for (let n of e) {
|
|
36
62
|
if (n.value === t) return n.label;
|
|
37
63
|
if (n.children?.length) {
|
|
38
|
-
let e =
|
|
64
|
+
let e = Y(n.children, t);
|
|
39
65
|
if (e) return e;
|
|
40
66
|
}
|
|
41
67
|
}
|
|
42
68
|
return null;
|
|
43
69
|
}
|
|
44
|
-
function
|
|
45
|
-
if (!
|
|
46
|
-
let e =
|
|
47
|
-
|
|
48
|
-
left: `${e.left}px`,
|
|
70
|
+
function X() {
|
|
71
|
+
if (!I.value) return;
|
|
72
|
+
let e = I.value.getBoundingClientRect(), t = `${e.width}px`;
|
|
73
|
+
R.value = H.value ? r(e, "bottom-start", {
|
|
49
74
|
minWidth: t,
|
|
50
|
-
top: `${e.bottom + 8}px`,
|
|
51
75
|
width: t
|
|
52
|
-
} : {
|
|
76
|
+
}) : {
|
|
53
77
|
minWidth: t,
|
|
54
78
|
width: t
|
|
55
79
|
};
|
|
56
80
|
}
|
|
57
|
-
function
|
|
58
|
-
|
|
81
|
+
function de() {
|
|
82
|
+
O.disabled || (P.value = !P.value, P.value && (z.value = [O.options], m(() => X())));
|
|
59
83
|
}
|
|
60
|
-
function
|
|
84
|
+
function Z(e) {
|
|
85
|
+
e.stopPropagation(), e.preventDefault(), !(O.disabled || !q.value) && (k("update:modelValue", null), k("clear"), I.value?.focus({ preventScroll: !0 }));
|
|
86
|
+
}
|
|
87
|
+
function fe(e, t) {
|
|
61
88
|
if (!e.disabled) {
|
|
62
89
|
if (e.children?.length) {
|
|
63
|
-
|
|
90
|
+
z.value = [...z.value.slice(0, t + 1), e.children], m(() => X());
|
|
64
91
|
return;
|
|
65
92
|
}
|
|
66
|
-
|
|
93
|
+
k("update:modelValue", e.value), P.value = !1;
|
|
67
94
|
}
|
|
68
95
|
}
|
|
69
|
-
function
|
|
96
|
+
function Q(e) {
|
|
70
97
|
let t = e.target;
|
|
71
|
-
|
|
98
|
+
F.value?.contains(t) || L.value?.contains(t) || (P.value = !1);
|
|
72
99
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
100
|
+
function $() {
|
|
101
|
+
P.value && X();
|
|
75
102
|
}
|
|
76
|
-
return
|
|
77
|
-
e ? (document.addEventListener("click",
|
|
78
|
-
}),
|
|
79
|
-
document.removeEventListener("click",
|
|
80
|
-
}), (
|
|
103
|
+
return x(P, (e) => {
|
|
104
|
+
e ? (document.addEventListener("click", Q), H.value && (window.addEventListener("resize", $), window.addEventListener("scroll", $, !0))) : (document.removeEventListener("click", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0));
|
|
105
|
+
}), ae(() => {
|
|
106
|
+
document.removeEventListener("click", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0);
|
|
107
|
+
}), (t, n) => (g(), u("div", {
|
|
81
108
|
ref_key: "root",
|
|
82
|
-
ref:
|
|
83
|
-
class:
|
|
84
|
-
"wi-
|
|
85
|
-
"wi-cascadeselect--
|
|
109
|
+
ref: F,
|
|
110
|
+
class: h(["wi-select-field wi-cascadeselect", [`wi-cascadeselect--${b(N)}`, {
|
|
111
|
+
"wi-select-field--fluid": W.value,
|
|
112
|
+
"wi-cascadeselect--disabled": p.disabled,
|
|
113
|
+
"wi-cascadeselect--open": P.value
|
|
86
114
|
}]])
|
|
87
|
-
}, [
|
|
88
|
-
|
|
89
|
-
ref: R,
|
|
90
|
-
type: "button",
|
|
91
|
-
class: "wi-cascadeselect__trigger",
|
|
92
|
-
disabled: m.disabled,
|
|
93
|
-
"aria-expanded": I.value,
|
|
94
|
-
"aria-haspopup": "listbox",
|
|
95
|
-
onClick: q
|
|
96
|
-
}, [f("span", D, S(W.value), 1), t[0] ||= f("span", {
|
|
97
|
-
class: "wi-cascadeselect__caret",
|
|
98
|
-
"aria-hidden": "true"
|
|
99
|
-
}, "▾", -1)], 8, E), (y(), l(o, {
|
|
100
|
-
to: H.value.to,
|
|
101
|
-
disabled: H.value.disabled
|
|
102
|
-
}, [p(s, { name: "wi-scale-fade" }, {
|
|
103
|
-
default: T(() => [I.value ? (y(), d("div", {
|
|
115
|
+
}, [
|
|
116
|
+
p.label ? (g(), u("label", {
|
|
104
117
|
key: 0,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
118
|
+
class: "wi-select-field__label",
|
|
119
|
+
for: B.value
|
|
120
|
+
}, y(p.label), 9, C)) : l("", !0),
|
|
121
|
+
d("div", { class: h(["wi-cascadeselect__control wi-select__control", {
|
|
122
|
+
"wi-select__control--clearable": J.value,
|
|
123
|
+
"wi-select__control--open": P.value
|
|
124
|
+
}]) }, [d("button", {
|
|
125
|
+
id: B.value,
|
|
126
|
+
ref_key: "trigger",
|
|
127
|
+
ref: I,
|
|
114
128
|
type: "button",
|
|
115
|
-
class:
|
|
116
|
-
"wi-
|
|
117
|
-
"wi-
|
|
129
|
+
class: h(["wi-cascadeselect__trigger", {
|
|
130
|
+
"wi-cascadeselect__trigger--invalid": G.value,
|
|
131
|
+
"wi-cascadeselect__trigger--placeholder": !q.value
|
|
118
132
|
}]),
|
|
119
|
-
disabled:
|
|
120
|
-
|
|
121
|
-
"aria-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
133
|
+
disabled: p.disabled,
|
|
134
|
+
"aria-expanded": P.value,
|
|
135
|
+
"aria-invalid": G.value || void 0,
|
|
136
|
+
"aria-describedby": K.value ? `${B.value}-help` : void 0,
|
|
137
|
+
"aria-haspopup": "listbox",
|
|
138
|
+
onClick: de
|
|
139
|
+
}, [d("span", T, y(ue.value), 1)], 10, w), d("div", E, [J.value ? (g(), u("button", {
|
|
140
|
+
key: 0,
|
|
141
|
+
class: "wi-select__clear",
|
|
142
|
+
type: "button",
|
|
143
|
+
"aria-label": b(M).clear,
|
|
144
|
+
onClick: Z
|
|
145
|
+
}, [f(e, {
|
|
146
|
+
name: "close",
|
|
147
|
+
size: "sm"
|
|
148
|
+
})], 8, oe)) : l("", !0), d("span", {
|
|
149
|
+
class: h(["wi-select__indicator", { "wi-select__indicator--open": P.value }]),
|
|
150
|
+
"aria-hidden": "true"
|
|
151
|
+
}, [f(e, {
|
|
152
|
+
name: "chevron-down",
|
|
153
|
+
size: "sm"
|
|
154
|
+
})], 2)])], 2),
|
|
155
|
+
K.value ? (g(), u("p", {
|
|
156
|
+
key: 1,
|
|
157
|
+
id: `${B.value}-help`,
|
|
158
|
+
class: h(["wi-select-field__help", { "wi-select-field__help--invalid": le.value }])
|
|
159
|
+
}, y(K.value), 11, se)) : l("", !0),
|
|
160
|
+
(g(), c(a, {
|
|
161
|
+
to: V.value.to,
|
|
162
|
+
disabled: V.value.disabled
|
|
163
|
+
}, [f(o, { name: "wi-scale-fade" }, {
|
|
164
|
+
default: S(() => [P.value ? (g(), u("div", {
|
|
165
|
+
key: 0,
|
|
166
|
+
ref_key: "panel",
|
|
167
|
+
ref: L,
|
|
168
|
+
class: h(["wi-cascadeselect__panel", { "wi-cascadeselect__panel--teleported": H.value }]),
|
|
169
|
+
style: ie(R.value),
|
|
170
|
+
role: "listbox"
|
|
171
|
+
}, [(g(!0), u(i, null, v(z.value, (t, n) => (g(), u("ul", {
|
|
172
|
+
key: n,
|
|
173
|
+
class: "wi-cascadeselect__column"
|
|
174
|
+
}, [(g(!0), u(i, null, v(t, (t) => (g(), u("li", { key: String(t.value) }, [d("button", {
|
|
175
|
+
type: "button",
|
|
176
|
+
class: h(["wi-cascadeselect__option", {
|
|
177
|
+
"wi-cascadeselect__option--selected": t.value === p.modelValue,
|
|
178
|
+
"wi-cascadeselect__option--parent": !!t.children?.length
|
|
179
|
+
}]),
|
|
180
|
+
disabled: t.disabled,
|
|
181
|
+
role: "option",
|
|
182
|
+
"aria-selected": t.value === p.modelValue,
|
|
183
|
+
onClick: (e) => fe(t, n)
|
|
184
|
+
}, [d("span", null, y(t.label), 1), t.children?.length ? (g(), c(e, {
|
|
185
|
+
key: 0,
|
|
186
|
+
name: "chevron-right",
|
|
187
|
+
size: "sm",
|
|
188
|
+
"aria-hidden": "true"
|
|
189
|
+
})) : l("", !0)], 10, ce)]))), 128))]))), 128))], 6)) : l("", !0)]),
|
|
190
|
+
_: 1
|
|
191
|
+
})], 8, ["to", "disabled"]))
|
|
192
|
+
], 2));
|
|
126
193
|
}
|
|
127
194
|
});
|
|
128
195
|
//#endregion
|
|
129
|
-
export {
|
|
196
|
+
export { D as WiCascadeSelect };
|
|
@@ -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
|
/* —— Form: CascadeSelect —— */
|
|
754
792
|
.wi-cascadeselect {
|
|
755
793
|
--wi-cascadeselect-min-width: 12rem;
|
|
@@ -759,6 +797,17 @@
|
|
|
759
797
|
position: relative;
|
|
760
798
|
}
|
|
761
799
|
|
|
800
|
+
.wi-cascadeselect__control {
|
|
801
|
+
display: inline-block;
|
|
802
|
+
max-width: 100%;
|
|
803
|
+
min-width: var(--wi-cascadeselect-min-width);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.wi-select-field--fluid .wi-cascadeselect__control {
|
|
807
|
+
min-width: 0;
|
|
808
|
+
width: 100%;
|
|
809
|
+
}
|
|
810
|
+
|
|
762
811
|
.wi-cascadeselect__trigger {
|
|
763
812
|
align-items: center;
|
|
764
813
|
background: var(--wi-color-surface);
|
|
@@ -770,24 +819,24 @@
|
|
|
770
819
|
display: inline-flex;
|
|
771
820
|
font: inherit;
|
|
772
821
|
font-size: var(--wi-control-font-medium);
|
|
773
|
-
gap: var(--wi-space-2);
|
|
774
|
-
justify-content: space-between;
|
|
775
822
|
min-height: var(--wi-control-height-medium);
|
|
776
|
-
min-width: var(--wi-cascadeselect-min-width);
|
|
777
823
|
padding: 0 var(--wi-control-padding-x-medium);
|
|
824
|
+
padding-right: var(--wi-control-end-padding);
|
|
778
825
|
width: 100%;
|
|
779
826
|
}
|
|
780
827
|
|
|
781
828
|
.wi-cascadeselect--small .wi-cascadeselect__trigger {
|
|
782
829
|
font-size: var(--wi-control-font-small);
|
|
783
830
|
min-height: var(--wi-control-height-small);
|
|
784
|
-
padding:
|
|
831
|
+
padding-left: var(--wi-control-padding-x-small);
|
|
832
|
+
padding-right: var(--wi-control-end-padding);
|
|
785
833
|
}
|
|
786
834
|
|
|
787
835
|
.wi-cascadeselect--large .wi-cascadeselect__trigger {
|
|
788
836
|
font-size: var(--wi-control-font-large);
|
|
789
837
|
min-height: var(--wi-control-height-large);
|
|
790
|
-
padding:
|
|
838
|
+
padding-left: var(--wi-control-padding-x-large);
|
|
839
|
+
padding-right: var(--wi-control-end-padding);
|
|
791
840
|
}
|
|
792
841
|
|
|
793
842
|
.wi-cascadeselect__trigger:focus-visible {
|
|
@@ -795,11 +844,28 @@
|
|
|
795
844
|
outline: none;
|
|
796
845
|
}
|
|
797
846
|
|
|
847
|
+
.wi-cascadeselect__trigger--invalid {
|
|
848
|
+
border-color: var(--wi-color-danger);
|
|
849
|
+
}
|
|
850
|
+
|
|
798
851
|
.wi-cascadeselect--disabled .wi-cascadeselect__trigger {
|
|
799
852
|
cursor: not-allowed;
|
|
800
853
|
opacity: var(--wi-opacity-disabled);
|
|
801
854
|
}
|
|
802
855
|
|
|
856
|
+
.wi-cascadeselect__label {
|
|
857
|
+
flex: 1 1 auto;
|
|
858
|
+
min-width: 0;
|
|
859
|
+
overflow: hidden;
|
|
860
|
+
text-align: left;
|
|
861
|
+
text-overflow: ellipsis;
|
|
862
|
+
white-space: nowrap;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.wi-cascadeselect__trigger--placeholder .wi-cascadeselect__label {
|
|
866
|
+
color: var(--wi-color-text-muted);
|
|
867
|
+
}
|
|
868
|
+
|
|
803
869
|
.wi-cascadeselect__panel {
|
|
804
870
|
background: var(--wi-color-surface);
|
|
805
871
|
border: 1px solid var(--wi-color-border);
|
package/dist/checkbox/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "../Checkbox-
|
|
1
|
+
import { n as e, t } from "../Checkbox-CoovLjt_.js";
|
|
2
2
|
import "./style.js";
|
|
3
3
|
import { computed as n, createElementBlock as r, defineComponent as i, normalizeClass as a, openBlock as o, provide as s, renderSlot as c } from "vue";
|
|
4
4
|
//#endregion
|
package/dist/checkbox/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/chip/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as e, t } from "../types-tV3SEv3Q.js";
|
|
2
|
-
import { t as n } from "../Icon-
|
|
3
|
-
import { n as r } from "../locale-
|
|
2
|
+
import { t as n } from "../Icon-DHGs8l-M.js";
|
|
3
|
+
import { n as r } from "../locale-DxAvgqgB.js";
|
|
4
4
|
import "./style.js";
|
|
5
|
-
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s,
|
|
5
|
+
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, toDisplayString as f, unref as p } from "vue";
|
|
6
6
|
//#region src/components/Chip/Chip.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
7
|
+
var m = ["aria-disabled"], h = ["src"], g = {
|
|
8
8
|
key: 2,
|
|
9
9
|
class: "wi-chip__label"
|
|
10
|
-
},
|
|
10
|
+
}, _ = ["disabled", "aria-label"], v = /* @__PURE__ */ l({
|
|
11
11
|
__name: "Chip",
|
|
12
12
|
props: {
|
|
13
13
|
label: {},
|
|
@@ -25,43 +25,46 @@ var p = ["aria-disabled"], m = ["src"], h = {
|
|
|
25
25
|
size: {}
|
|
26
26
|
},
|
|
27
27
|
emits: ["remove"],
|
|
28
|
-
setup(
|
|
29
|
-
let
|
|
30
|
-
"wi-chip--disabled":
|
|
31
|
-
"wi-chip--removable":
|
|
32
|
-
[`wi-chip--${
|
|
33
|
-
"wi-chip--small":
|
|
34
|
-
"wi-chip--large":
|
|
28
|
+
setup(l, { emit: v }) {
|
|
29
|
+
let y = l, b = v, x = r(), S = i(() => y.severity ? t(y.severity) : void 0), C = i(() => e(y.size)), w = i(() => ["wi-chip", {
|
|
30
|
+
"wi-chip--disabled": y.disabled,
|
|
31
|
+
"wi-chip--removable": y.removable,
|
|
32
|
+
[`wi-chip--${S.value}`]: !!S.value,
|
|
33
|
+
"wi-chip--small": C.value === "small",
|
|
34
|
+
"wi-chip--large": C.value === "large"
|
|
35
35
|
}]);
|
|
36
|
-
function
|
|
37
|
-
|
|
36
|
+
function T(e) {
|
|
37
|
+
y.disabled || b("remove", e);
|
|
38
38
|
}
|
|
39
|
-
return (e, t) => (
|
|
40
|
-
class:
|
|
41
|
-
"aria-disabled":
|
|
39
|
+
return (e, t) => (d(), s("span", {
|
|
40
|
+
class: u(w.value),
|
|
41
|
+
"aria-disabled": l.disabled || void 0
|
|
42
42
|
}, [
|
|
43
|
-
|
|
43
|
+
l.image ? (d(), s("img", {
|
|
44
44
|
key: 0,
|
|
45
45
|
class: "wi-chip__image",
|
|
46
|
-
src:
|
|
46
|
+
src: l.image,
|
|
47
47
|
alt: ""
|
|
48
|
-
}, null, 8,
|
|
48
|
+
}, null, 8, h)) : l.icon ? (d(), a(n, {
|
|
49
49
|
key: 1,
|
|
50
50
|
class: "wi-chip__icon",
|
|
51
|
-
name:
|
|
51
|
+
name: l.icon,
|
|
52
52
|
size: "sm"
|
|
53
53
|
}, null, 8, ["name"])) : o("", !0),
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
l.label ? (d(), s("span", g, f(l.label), 1)) : o("", !0),
|
|
55
|
+
l.removable ? (d(), s("button", {
|
|
56
56
|
key: 3,
|
|
57
57
|
type: "button",
|
|
58
58
|
class: "wi-chip__remove",
|
|
59
|
-
disabled:
|
|
60
|
-
"aria-label":
|
|
61
|
-
onClick:
|
|
62
|
-
},
|
|
63
|
-
|
|
59
|
+
disabled: l.disabled,
|
|
60
|
+
"aria-label": p(x).remove,
|
|
61
|
+
onClick: T
|
|
62
|
+
}, [c(n, {
|
|
63
|
+
name: "close",
|
|
64
|
+
size: "sm"
|
|
65
|
+
})], 8, _)) : o("", !0)
|
|
66
|
+
], 10, m));
|
|
64
67
|
}
|
|
65
68
|
});
|
|
66
69
|
//#endregion
|
|
67
|
-
export {
|
|
70
|
+
export { v as WiChip };
|
package/dist/chip/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,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "../overlay-oR-5MDuE.js";
|
|
2
2
|
import { t } from "../useModalOverlay-Beo3CEAt.js";
|
|
3
|
-
import { c as n } from "../config-
|
|
4
|
-
import { n as r } from "../locale-
|
|
3
|
+
import { c as n } from "../config-CTLkobga.js";
|
|
4
|
+
import { n as r } from "../locale-DxAvgqgB.js";
|
|
5
5
|
import "./style.js";
|
|
6
6
|
import { Fragment as i, Teleport as a, Transition as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, openBlock as g, ref as _, renderList as v, toDisplayString as y, toRef as b, unref as x, vModelText as S, watch as C, withCtx as w, withDirectives as T, withModifiers as E } from "vue";
|
|
7
7
|
//#region src/components/CommandMenu/CommandMenu.vue?vue&type=script&setup=true&lang.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
|
}
|
|
@@ -3,9 +3,11 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
declare const __VLS_export: DefineComponent<AutoCompleteProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4
4
|
"update:modelValue": (value: string) => any;
|
|
5
5
|
complete: (query: string) => any;
|
|
6
|
+
clear: () => any;
|
|
6
7
|
}, string, PublicProps, Readonly<AutoCompleteProps> & Readonly<{
|
|
7
8
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
9
|
onComplete?: ((query: string) => any) | undefined;
|
|
10
|
+
onClear?: (() => any) | undefined;
|
|
9
11
|
}>, {
|
|
10
12
|
modelValue: string;
|
|
11
13
|
disabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoComplete.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AutoComplete/AutoComplete.vue"],"names":[],"mappings":";AAmPA,OAAO,KAAK,EAAsB,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"AutoComplete.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AutoComplete/AutoComplete.vue"],"names":[],"mappings":";AAmPA,OAAO,KAAK,EAAsB,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AA+W5F,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;6EAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AutoComplete/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,kBAAkB,CAAA;AAEhE,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,sBAAsB,EAAE,CAAA;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,UAAU,CAAA;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACjD,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AutoComplete/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,kBAAkB,CAAA;AAEhE,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,sBAAsB,EAAE,CAAA;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,UAAU,CAAA;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACjD,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;CACvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.vue"],"names":[],"mappings":";AAmJA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAkG1C,iBAAS,KAAK,SAEb;AAsHD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO;;CAAU,EAAE,QAAQ,IAAY,CAAE;AAChE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAChD;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACzC;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAOhD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;6EAKd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|