morya-ui 0.3.0 → 0.3.2
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 +64 -0
- package/dist/Button-dMqRmoYa.js +222 -0
- package/dist/{Card-Dsmnzong.js → Card-B1CB9Trm.js} +3 -5
- package/dist/Empty-C5tndBOm.js +147 -0
- package/dist/Icon-od9Ob-Ay.js +393 -0
- package/dist/Loading-BSsRs6v9.js +420 -0
- package/dist/Pagination-CqpC5EAs.js +166 -0
- package/dist/Select-CKGrSoaC.js +572 -0
- package/dist/Skeleton-DCYdXAH2.js +59 -0
- package/dist/accordion/style.css +20 -71
- package/dist/auto-complete/index.js +118 -120
- package/dist/auto-complete/style.css +24 -88
- package/dist/avatar/index.js +1 -1
- package/dist/avatar/style.css +10 -67
- package/dist/badge/style.css +10 -68
- package/dist/block-ui/style.css +10 -68
- package/dist/breadcrumb/style.css +10 -61
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +72 -78
- package/dist/card/index.js +1 -1
- package/dist/card/style.css +30 -67
- package/dist/carousel/index.js +72 -64
- package/dist/carousel/style.css +36 -82
- package/dist/cascade-select/index.js +1 -1
- package/dist/cascade-select/style.css +24 -81
- package/dist/checkbox/style.css +10 -61
- package/dist/chip/index.js +1 -1
- package/dist/chip/style.css +10 -67
- package/dist/command-menu/index.js +37 -39
- package/dist/command-menu/style.css +10 -75
- package/dist/components/Accordion/styles.css +10 -10
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +0 -7
- package/dist/components/Badge/styles.css +0 -7
- package/dist/components/BlockUI/styles.css +0 -7
- package/dist/components/Button/Button.vue.d.ts +2 -0
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Button/styles.css +62 -11
- package/dist/components/Button/types.d.ts +4 -0
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts +2 -2
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/styles.css +20 -6
- package/dist/components/Card/types.d.ts +4 -2
- package/dist/components/Card/types.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/Carousel/styles.css +26 -15
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -2
- package/dist/components/DataView/DataView.vue.d.ts +7 -7
- package/dist/components/DataView/DataView.vue.d.ts.map +1 -1
- package/dist/components/DataView/styles.css +0 -20
- package/dist/components/Dialog/styles.css +3 -46
- package/dist/components/Dock/styles.css +0 -10
- package/dist/components/Drawer/styles.css +2 -51
- package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts +8 -9
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +24 -5
- package/dist/components/Fieldset/styles.css +0 -7
- package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/FileUpload/fileUtils.d.ts +8 -0
- package/dist/components/FileUpload/fileUtils.d.ts.map +1 -0
- package/dist/components/Gallery/styles.css +0 -8
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/components/Icon/icon-categories.d.ts.map +1 -1
- package/dist/components/Icon/icons-types.d.ts +4 -2
- package/dist/components/Icon/icons-types.d.ts.map +1 -1
- package/dist/components/Icon/icons.d.ts +250 -561
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/styles.css +0 -6
- package/dist/components/Knob/styles.css +0 -6
- package/dist/components/Layout/styles.css +5 -14
- package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
- package/dist/components/Loading/styles.css +0 -16
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +6 -7
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +4 -0
- package/dist/components/Message/styles.css +0 -13
- package/dist/components/Page/PageContent.vue.d.ts +2 -1
- package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
- package/dist/components/Page/PageFilterChips.vue.d.ts +16 -0
- package/dist/components/Page/PageFilterChips.vue.d.ts.map +1 -0
- package/dist/components/Page/PageFilters.vue.d.ts +15 -3
- package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
- package/dist/components/Page/PageHeader.vue.d.ts +8 -4
- package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
- package/dist/components/Page/PagePlaceholder.vue.d.ts +6 -2
- package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
- package/dist/components/Page/PageSection.vue.d.ts +8 -2
- package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
- package/dist/components/Page/PageStat.vue.d.ts +8 -3
- package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
- package/dist/components/Page/index.d.ts +2 -1
- package/dist/components/Page/index.d.ts.map +1 -1
- package/dist/components/Page/styles.css +239 -44
- package/dist/components/Page/types.d.ts +40 -0
- package/dist/components/Page/types.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Pagination/styles.css +7 -10
- package/dist/components/Pagination/types.d.ts +1 -1
- package/dist/components/Pagination/types.d.ts.map +1 -1
- package/dist/components/Panel/styles.css +0 -7
- package/dist/components/Popover/styles.css +20 -17
- package/dist/components/ProgressBar/styles.css +0 -9
- package/dist/components/ProgressSpinner/styles.css +0 -7
- package/dist/components/ScrollTop/styles.css +0 -7
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/dist/components/Scrollbar/styles.css +0 -8
- package/dist/components/Select/Select.vue.d.ts +10 -8
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/selectOptions.d.ts +46 -0
- package/dist/components/Select/selectOptions.d.ts.map +1 -0
- package/dist/components/Select/styles.css +35 -8
- package/dist/components/Select/types.d.ts +11 -1
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Sidebar/styles.css +0 -6
- package/dist/components/Skeleton/styles.css +0 -6
- package/dist/components/Slider/styles.css +9 -0
- package/dist/components/SplitButton/styles.css +5 -0
- package/dist/components/Status/styles.css +0 -7
- package/dist/components/Switch/styles.css +0 -7
- package/dist/components/Table/Table.vue.d.ts +26 -26
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Table/TableLoadingLine.vue.d.ts.map +1 -1
- package/dist/components/Table/hooks/useExpandableRow.d.ts.map +1 -1
- package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
- package/dist/components/Table/styles.css +61 -44
- package/dist/components/Table/tableQuery.d.ts +30 -0
- package/dist/components/Table/tableQuery.d.ts.map +1 -0
- package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
- package/dist/components/Tree/treeQuery.d.ts +31 -0
- package/dist/components/Tree/treeQuery.d.ts.map +1 -0
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +1 -1
- package/dist/config-provider/index.js +1 -1
- package/dist/config-provider/style.css +72 -72
- package/dist/confirm-dialog/index.js +2 -2
- package/dist/confirm-dialog/style.css +75 -124
- package/dist/confirm-popup/index.js +2 -2
- package/dist/confirm-popup/style.css +72 -78
- package/dist/context-menu/index.js +2 -2
- package/dist/context-menu/style.css +10 -75
- package/dist/data-view/index.js +47 -47
- package/dist/data-view/style.css +393 -174
- package/dist/data-view/style.js +1 -1
- package/dist/date-picker/index.js +1 -1
- package/dist/date-picker/style.css +10 -67
- package/dist/dialog/index.js +2 -2
- package/dist/dialog/style.css +75 -124
- package/dist/divider/style.css +10 -61
- package/dist/dock/index.js +2 -2
- package/dist/dock/style.css +10 -77
- package/dist/drawer/index.js +1 -1
- package/dist/drawer/style.css +12 -118
- package/dist/dropdown/index.js +110 -91
- package/dist/dropdown/style.css +34 -80
- package/dist/empty/index.js +5 -150
- package/dist/empty/style.css +10 -67
- package/dist/fieldset/index.js +1 -1
- package/dist/fieldset/style.css +10 -74
- package/dist/file-upload/index.js +148 -146
- package/dist/file-upload/style.css +10 -67
- package/dist/filterByQuery-Bczaxzih.js +17 -0
- package/dist/flex/style.css +10 -61
- package/dist/float-label/style.css +10 -61
- package/dist/fluid/style.css +10 -61
- package/dist/form/style.css +10 -61
- package/dist/gallery/index.js +1 -1
- package/dist/gallery/style.css +10 -83
- package/dist/grid/style.css +10 -61
- package/dist/icon/index.js +93 -39
- package/dist/icon/style.css +10 -67
- package/dist/icon-COrt_N8A.js +18 -0
- package/dist/icon-field/style.css +10 -61
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5400 -5145
- package/dist/inplace/style.css +10 -61
- package/dist/input/index.js +1 -1
- package/dist/input/style.css +10 -67
- package/dist/input-color/style.css +10 -61
- package/dist/input-group/style.css +10 -61
- package/dist/input-number/index.js +1 -1
- package/dist/input-number/style.css +10 -67
- package/dist/input-otp/style.css +10 -61
- package/dist/input-password/index.js +1 -1
- package/dist/input-password/style.css +10 -67
- package/dist/input-tags/index.js +1 -1
- package/dist/input-tags/style.css +10 -67
- package/dist/knob/style.css +10 -67
- package/dist/label/style.css +10 -61
- package/dist/layout/index.js +1 -1
- package/dist/layout/style.css +15 -89
- package/dist/listbox/index.js +30 -32
- package/dist/listbox/style.css +10 -69
- package/dist/loading/index.js +32 -446
- package/dist/loading/style.css +10 -77
- package/dist/mega-menu/index.js +2 -2
- package/dist/mega-menu/style.css +10 -67
- package/dist/menu/index.js +265 -255
- package/dist/menu/style.css +36 -99
- package/dist/menubar/index.js +6 -3
- package/dist/menubar/style.css +14 -75
- package/dist/message/index.js +1 -1
- package/dist/message/style.css +10 -80
- package/dist/meter-group/style.css +10 -61
- package/dist/order-list/index.js +1 -1
- package/dist/order-list/style.css +10 -67
- package/dist/page/index.js +229 -70
- package/dist/page/style.css +1186 -113
- package/dist/page/style.js +3 -0
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +210 -77
- package/dist/pagination/style.js +1 -0
- package/dist/panel/index.js +1 -1
- package/dist/panel/style.css +10 -74
- package/dist/pick-list/index.js +1 -1
- package/dist/pick-list/style.css +10 -67
- package/dist/popover/style.css +30 -78
- package/dist/progress-bar/style.css +10 -70
- package/dist/progress-spinner/index.js +105 -2
- package/dist/progress-spinner/style.css +10 -68
- package/dist/radio/style.css +10 -61
- package/dist/rating/index.js +1 -1
- package/dist/rating/style.css +10 -67
- package/dist/resolver-map.d.ts.map +1 -1
- package/dist/resolver.js +1 -0
- package/dist/result/index.js +1 -1
- package/dist/result/style.css +10 -67
- package/dist/scroll-top/index.js +1 -1
- package/dist/scroll-top/style.css +10 -82
- package/dist/scrollbar/style.css +10 -69
- package/dist/select/index.js +2 -478
- package/dist/select/style.css +59 -89
- package/dist/select-button/style.css +10 -61
- package/dist/shared/config.d.ts +2 -2
- package/dist/shared/filterByQuery.d.ts +14 -0
- package/dist/shared/filterByQuery.d.ts.map +1 -0
- package/dist/shared/menu/expand.d.ts +38 -0
- package/dist/shared/menu/expand.d.ts.map +1 -0
- package/dist/shared/menu/icon.d.ts.map +1 -1
- package/dist/shared/menu/index.d.ts +2 -0
- package/dist/shared/menu/index.d.ts.map +1 -1
- package/dist/shared/styles/select-overlay.css +14 -6
- package/dist/sidebar/index.js +2 -2
- package/dist/sidebar/style.css +10 -73
- package/dist/skeleton/index.js +2 -59
- package/dist/skeleton/style.css +10 -67
- package/dist/slider/style.css +19 -61
- package/dist/space/style.css +10 -61
- package/dist/speed-dial/index.js +2 -2
- package/dist/speed-dial/style.css +10 -67
- package/dist/split-button/index.js +1 -1
- package/dist/split-button/style.css +77 -78
- package/dist/splitter/style.css +10 -61
- package/dist/status/index.js +1 -1
- package/dist/status/style.css +10 -74
- package/dist/stepper/index.js +1 -1
- package/dist/stepper/style.css +10 -67
- package/dist/styles/base.css +5 -50
- package/dist/styles.css +1 -1
- package/dist/switch/style.css +10 -68
- package/dist/table/index.js +409 -373
- package/dist/table/style.css +457 -215
- package/dist/table/style.js +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/style.css +10 -75
- package/dist/tag/index.js +1 -1
- package/dist/tag/style.css +10 -67
- package/dist/terminal/style.css +10 -61
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/style.css +10 -67
- package/dist/theme/styles.css +5 -11
- package/dist/theme/useMotion.d.ts +5 -1
- package/dist/theme/useMotion.d.ts.map +1 -1
- package/dist/tiered-menu/index.js +1 -1
- package/dist/tiered-menu/style.css +10 -75
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/style.css +10 -75
- package/dist/toast/index.js +1 -1
- package/dist/toast/style.css +10 -67
- package/dist/toggle-button/index.js +2 -2
- package/dist/toggle-button/style.css +10 -67
- package/dist/toolbar/style.css +10 -61
- package/dist/tooltip/style.css +10 -61
- package/dist/tree/index.js +159 -173
- package/dist/tree/style.css +10 -67
- package/dist/tree-select/index.js +200 -213
- package/dist/tree-select/style.css +25 -82
- package/dist/tree-table/index.js +1 -1
- package/dist/tree-table/style.css +10 -67
- package/dist/treeQuery-CnHkyYOA.js +107 -0
- package/dist/virtual-scroller/style.css +10 -69
- package/package.json +1 -1
- package/dist/Button-B5X_R4Md.js +0 -156
- package/dist/Icon-lcN1rS87.js +0 -610
- package/dist/Pagination-CVrH8Ypi.js +0 -158
- package/dist/ProgressSpinner-BeWVF6Jv.js +0 -105
- package/dist/checkStrategy-CZzuUKDI.js +0 -63
- package/dist/components/Icon/icons-tabler.d.ts +0 -77
- package/dist/components/Icon/icons-tabler.d.ts.map +0 -1
- package/dist/icon-DWXkh-RM.js +0 -27
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "../Icon-
|
|
2
|
+
import { t } from "../Icon-od9Ob-Ay.js";
|
|
3
3
|
import { t as n } from "../useMotionTransition-Bxnnb_9u.js";
|
|
4
4
|
import { n as r, t as i } from "../overlay-oR-5MDuE.js";
|
|
5
5
|
import { t as ee } from "../overlayPlacement-Cd20JTD_.js";
|
|
@@ -9,25 +9,25 @@ import { t as a } from "../useMId-BXFYayPP.js";
|
|
|
9
9
|
import { t as re } from "../Scrollbar-DTeJ8P5b.js";
|
|
10
10
|
import { t as o } from "../Checkbox-BzbAUfyZ.js";
|
|
11
11
|
import { t as ie } from "../useFieldFeedback-C5qIqYMK.js";
|
|
12
|
-
import { a as ae,
|
|
13
|
-
import { c as
|
|
14
|
-
import { n as
|
|
12
|
+
import { a as ae, c as oe, d as se, f as ce, l as s, n as le, p as ue, u as de } from "../treeQuery-CnHkyYOA.js";
|
|
13
|
+
import { c as fe, o as pe } from "../config-CapALqt3.js";
|
|
14
|
+
import { n as c } from "../locale-Bzm2nbEp.js";
|
|
15
15
|
import "./style.js";
|
|
16
|
-
import { Fragment as
|
|
16
|
+
import { Fragment as l, Teleport as me, Transition as he, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as ge, createVNode as h, defineComponent as g, mergeProps as _, nextTick as _e, normalizeClass as v, normalizeStyle as ve, onBeforeUnmount as ye, openBlock as y, ref as b, renderList as x, renderSlot as be, resolveDynamicComponent as S, toDisplayString as C, unref as w, useAttrs as xe, useSlots as Se, vModelText as Ce, watch as T, withCtx as E, withDirectives as we, withModifiers as D } from "vue";
|
|
17
17
|
//#region src/components/TreeSelect/TreeSelectNodeItem.vue?vue&type=script&setup=true&lang.ts
|
|
18
|
-
var
|
|
18
|
+
var Te = [
|
|
19
19
|
"aria-expanded",
|
|
20
20
|
"aria-level",
|
|
21
21
|
"aria-disabled",
|
|
22
22
|
"aria-selected",
|
|
23
23
|
"aria-checked"
|
|
24
|
-
],
|
|
24
|
+
], Ee = ["aria-label"], De = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "m-treeselect__toggler-spacer"
|
|
27
27
|
}, O = ["disabled", "tabindex"], k = {
|
|
28
28
|
key: 0,
|
|
29
29
|
role: "group"
|
|
30
|
-
},
|
|
30
|
+
}, Oe = /* @__PURE__ */ g({
|
|
31
31
|
__name: "TreeSelectNodeItem",
|
|
32
32
|
props: {
|
|
33
33
|
node: {},
|
|
@@ -46,48 +46,48 @@ var T = [
|
|
|
46
46
|
"activate"
|
|
47
47
|
],
|
|
48
48
|
setup(e) {
|
|
49
|
-
let n =
|
|
50
|
-
return (r, i) => (
|
|
51
|
-
class:
|
|
49
|
+
let n = c();
|
|
50
|
+
return (r, i) => (y(), p("li", {
|
|
51
|
+
class: v(["m-treeselect__node", { "m-treeselect__node--active": e.node.key === e.activeKey }]),
|
|
52
52
|
role: "treeitem",
|
|
53
53
|
"aria-expanded": e.node.children?.length ? !!e.expanded[e.node.key] : void 0,
|
|
54
54
|
"aria-level": e.depth + 1,
|
|
55
55
|
"aria-disabled": e.node.disabled || void 0,
|
|
56
56
|
"aria-selected": e.showCheckbox ? void 0 : e.selectedKeys.includes(e.node.key),
|
|
57
57
|
"aria-checked": e.showCheckbox ? !!e.checkedKeys[e.node.key] : void 0
|
|
58
|
-
}, [
|
|
58
|
+
}, [m("div", {
|
|
59
59
|
class: "m-treeselect__row",
|
|
60
60
|
style: ve({ paddingLeft: `${e.depth * .75}rem` })
|
|
61
61
|
}, [
|
|
62
|
-
e.node.children?.length ? (
|
|
62
|
+
e.node.children?.length ? (y(), p("button", {
|
|
63
63
|
key: 0,
|
|
64
64
|
type: "button",
|
|
65
65
|
class: "m-treeselect__toggler",
|
|
66
66
|
tabindex: "-1",
|
|
67
|
-
"aria-label": e.expanded[e.node.key] ?
|
|
68
|
-
onClick: i[0] ||=
|
|
69
|
-
}, [
|
|
67
|
+
"aria-label": e.expanded[e.node.key] ? w(n).collapse : w(n).expand,
|
|
68
|
+
onClick: i[0] ||= D((t) => r.$emit("toggle", e.node.key), ["stop"])
|
|
69
|
+
}, [h(t, {
|
|
70
70
|
name: e.expanded[e.node.key] ? "chevron-down" : "chevron-right",
|
|
71
71
|
size: "sm"
|
|
72
|
-
}, null, 8, ["name"])], 8,
|
|
73
|
-
e.showCheckbox ? (
|
|
72
|
+
}, null, 8, ["name"])], 8, Ee)) : (y(), p("span", De)),
|
|
73
|
+
e.showCheckbox ? (y(), d(o, {
|
|
74
74
|
key: 2,
|
|
75
75
|
class: "m-treeselect__checkbox",
|
|
76
76
|
tabindex: "-1",
|
|
77
77
|
"model-value": !!e.checkedKeys[e.node.key],
|
|
78
78
|
disabled: e.node.disabled,
|
|
79
79
|
"onUpdate:modelValue": i[1] ||= (t) => r.$emit("check", e.node),
|
|
80
|
-
onClick: i[2] ||=
|
|
81
|
-
}, null, 8, ["model-value", "disabled"])) :
|
|
82
|
-
|
|
80
|
+
onClick: i[2] ||= D(() => {}, ["stop"])
|
|
81
|
+
}, null, 8, ["model-value", "disabled"])) : f("", !0),
|
|
82
|
+
m("button", {
|
|
83
83
|
type: "button",
|
|
84
|
-
class:
|
|
84
|
+
class: v(["m-treeselect__option", { "m-treeselect__option--selected": e.selectedKeys.includes(e.node.key) }]),
|
|
85
85
|
disabled: e.node.disabled,
|
|
86
86
|
tabindex: e.node.key === e.activeKey ? 0 : -1,
|
|
87
87
|
onMouseenter: i[3] ||= (t) => r.$emit("activate", e.node),
|
|
88
88
|
onClick: i[4] ||= (t) => r.$emit("select", e.node)
|
|
89
|
-
}, [e.renderOption ? (
|
|
90
|
-
], 4), e.node.children?.length && e.expanded[e.node.key] ? (
|
|
89
|
+
}, [e.renderOption ? (y(), d(S(() => e.renderOption?.(e.node)), { key: 0 })) : (y(), p(l, { key: 1 }, [ge(C(e.node.label), 1)], 64))], 42, O)
|
|
90
|
+
], 4), e.node.children?.length && e.expanded[e.node.key] ? (y(), p("ul", k, [(y(!0), p(l, null, x(e.node.children, (t) => (y(), d(Oe, {
|
|
91
91
|
key: t.key,
|
|
92
92
|
node: t,
|
|
93
93
|
depth: e.depth + 1,
|
|
@@ -110,9 +110,9 @@ var T = [
|
|
|
110
110
|
"show-checkbox",
|
|
111
111
|
"active-key",
|
|
112
112
|
"render-option"
|
|
113
|
-
]))), 128))])) :
|
|
113
|
+
]))), 128))])) : f("", !0)], 10, Te));
|
|
114
114
|
}
|
|
115
|
-
}),
|
|
115
|
+
}), ke = ["for"], Ae = [
|
|
116
116
|
"id",
|
|
117
117
|
"tabindex",
|
|
118
118
|
"aria-disabled",
|
|
@@ -120,20 +120,20 @@ var T = [
|
|
|
120
120
|
"aria-controls",
|
|
121
121
|
"aria-invalid",
|
|
122
122
|
"aria-describedby"
|
|
123
|
-
],
|
|
123
|
+
], je = {
|
|
124
124
|
key: 0,
|
|
125
125
|
class: "m-treeselect__tags"
|
|
126
|
-
},
|
|
126
|
+
}, Me = { class: "m-select__tag-label" }, Ne = [
|
|
127
127
|
"aria-label",
|
|
128
128
|
"disabled",
|
|
129
129
|
"onClick"
|
|
130
|
-
],
|
|
130
|
+
], Pe = {
|
|
131
131
|
key: 0,
|
|
132
132
|
class: "m-select__tag m-select__tag--more"
|
|
133
|
-
},
|
|
133
|
+
}, Fe = { class: "m-select__suffix" }, Ie = ["aria-label"], Le = ["id"], Re = ["placeholder"], ze = {
|
|
134
134
|
class: "m-treeselect__tree",
|
|
135
135
|
role: "tree"
|
|
136
|
-
},
|
|
136
|
+
}, Be = ["id", "role"], Ve = /* @__PURE__ */ g({
|
|
137
137
|
inheritAttrs: !1,
|
|
138
138
|
__name: "TreeSelect",
|
|
139
139
|
props: {
|
|
@@ -194,302 +194,289 @@ var T = [
|
|
|
194
194
|
name: {}
|
|
195
195
|
},
|
|
196
196
|
emits: ["update:modelValue", "clear"],
|
|
197
|
-
setup(o, { emit:
|
|
198
|
-
let
|
|
197
|
+
setup(o, { emit: ge }) {
|
|
198
|
+
let g = o, S = ge, Te = xe(), { rootAttrs: Ee, controlAttrs: De } = e(Te, () => g.pt, { controlKey: "control" }), O = Se(), k = fe(), { transitionName: Ve, transitionCss: He } = n({
|
|
199
199
|
role: "popup",
|
|
200
|
-
local: () =>
|
|
200
|
+
local: () => g.transition,
|
|
201
201
|
componentName: "TreeSelect",
|
|
202
202
|
fallback: "scale-fade"
|
|
203
|
-
}),
|
|
203
|
+
}), A = c(), Ue = pe("TreeSelect", () => g.size), We = a("m-treeselect"), j = u(() => g.id ?? We), { isInvalid: M, feedbackText: N, feedbackIsError: P } = ie(g), F = b(!1), I = b(""), L = b(null), R = b(null), z = b(null), Ge = b({}), B = b({}), Ke = u(() => r(g, k.value.appendTo)), V = u(() => i(g, k.value.appendTo)), H = u(() => g.multiple || g.selectionMode === "multiple" || g.checkable), U = u(() => Array.isArray(g.modelValue) ? g.modelValue : typeof g.modelValue == "string" && g.modelValue ? [g.modelValue] : []), qe = u(() => {
|
|
204
204
|
let e = {};
|
|
205
|
-
for (let t of
|
|
205
|
+
for (let t of U.value) e[t] = !0;
|
|
206
206
|
return e;
|
|
207
|
-
}),
|
|
208
|
-
let e =
|
|
209
|
-
if (!e ||
|
|
210
|
-
if (
|
|
211
|
-
let t =
|
|
212
|
-
return t.length ? t.join(
|
|
207
|
+
}), Je = u(() => oe(g.options, qe.value, g.checkStrategy, g.checkStrictly)), Ye = u(() => {
|
|
208
|
+
let e = U.value[0];
|
|
209
|
+
if (!e || H.value) return g.placeholder ?? A.value.selectPlaceholder;
|
|
210
|
+
if (g.showPath) {
|
|
211
|
+
let t = de(g.options, e);
|
|
212
|
+
return t.length ? t.join(g.separator) : e;
|
|
213
213
|
}
|
|
214
|
-
return s(
|
|
215
|
-
}),
|
|
216
|
-
let e =
|
|
217
|
-
return e && !
|
|
218
|
-
}),
|
|
214
|
+
return s(g.options, e)?.label ?? g.placeholder ?? A.value.selectPlaceholder;
|
|
215
|
+
}), Xe = u(() => {
|
|
216
|
+
let e = U.value[0];
|
|
217
|
+
return e && !H.value ? s(g.options, e) : void 0;
|
|
218
|
+
}), Ze = u(() => O.option ? (e) => O.option?.({ option: e }) : void 0), W = u(() => U.value.map((e) => ({
|
|
219
219
|
key: e,
|
|
220
|
-
label:
|
|
221
|
-
}))),
|
|
222
|
-
let e =
|
|
223
|
-
return e == null || e < 0 ||
|
|
224
|
-
}),
|
|
225
|
-
let e = F.value.trim().toLowerCase();
|
|
226
|
-
if (!e) return h.options;
|
|
227
|
-
let t = (n) => {
|
|
228
|
-
let r = n.label.toLowerCase().includes(e), i = (n.children ?? []).map(t).filter((e) => e != null);
|
|
229
|
-
return r || i.length ? {
|
|
230
|
-
...n,
|
|
231
|
-
children: i.length ? i : n.children
|
|
232
|
-
} : null;
|
|
233
|
-
};
|
|
234
|
-
return h.options.map(t).filter((e) => e != null);
|
|
235
|
-
}), G = l(() => {
|
|
220
|
+
label: g.showPath ? de(g.options, e).join(g.separator) : s(g.options, e)?.label ?? e
|
|
221
|
+
}))), Qe = u(() => {
|
|
222
|
+
let e = g.maxTagCount;
|
|
223
|
+
return e == null || e < 0 || W.value.length <= e ? W.value : W.value.slice(0, e);
|
|
224
|
+
}), G = u(() => Math.max(0, W.value.length - Qe.value.length)), $e = u(() => g.clearable && U.value.length > 0 && !g.disabled), et = u(() => le(g.options, I.value)), K = u(() => {
|
|
236
225
|
let e = [], t = (n, r) => {
|
|
237
226
|
for (let i of n) e.push({
|
|
238
227
|
node: i,
|
|
239
228
|
parentKey: r
|
|
240
|
-
}), i.children?.length &&
|
|
229
|
+
}), i.children?.length && B.value[i.key] && t(i.children, i.key);
|
|
241
230
|
};
|
|
242
|
-
return t(
|
|
243
|
-
}),
|
|
244
|
-
itemCount: () =>
|
|
245
|
-
isItemDisabled: (e) => !!
|
|
246
|
-
enabled:
|
|
231
|
+
return t(et.value, null), e;
|
|
232
|
+
}), tt = a("m-treeselect-panel"), q = ne({
|
|
233
|
+
itemCount: () => K.value.length,
|
|
234
|
+
isItemDisabled: (e) => !!K.value[e]?.node.disabled,
|
|
235
|
+
enabled: F,
|
|
247
236
|
onActivate: (e) => {
|
|
248
|
-
let t =
|
|
249
|
-
t &&
|
|
237
|
+
let t = K.value[e];
|
|
238
|
+
t && ct(t.node);
|
|
250
239
|
},
|
|
251
240
|
onEscape: () => {
|
|
252
|
-
|
|
241
|
+
F.value = !1;
|
|
253
242
|
},
|
|
254
|
-
returnFocusTo:
|
|
255
|
-
}),
|
|
256
|
-
function
|
|
257
|
-
let e =
|
|
243
|
+
returnFocusTo: R
|
|
244
|
+
}), nt = u(() => K.value[q.activeIndex.value]?.node.key ?? null);
|
|
245
|
+
function rt() {
|
|
246
|
+
let e = q.activeIndex.value;
|
|
258
247
|
if (e < 0) return;
|
|
259
|
-
let t =
|
|
248
|
+
let t = z.value?.querySelectorAll(".m-treeselect__option")?.[e];
|
|
260
249
|
t && document.activeElement !== t && t.focus({ preventScroll: !0 }), t?.scrollIntoView({ block: "nearest" });
|
|
261
250
|
}
|
|
262
|
-
function
|
|
263
|
-
if (!
|
|
264
|
-
let e =
|
|
265
|
-
|
|
251
|
+
function it() {
|
|
252
|
+
if (!V.value || !R.value) return;
|
|
253
|
+
let e = R.value.getBoundingClientRect();
|
|
254
|
+
Ge.value = ee(e, "bottom-start", { minWidth: `${e.width}px` });
|
|
266
255
|
}
|
|
267
|
-
function
|
|
268
|
-
|
|
269
|
-
if (
|
|
270
|
-
let e =
|
|
271
|
-
e >= 0 ?
|
|
272
|
-
} else
|
|
256
|
+
function J(e = !1) {
|
|
257
|
+
F.value = !0, _e(() => {
|
|
258
|
+
if (it(), e) {
|
|
259
|
+
let e = K.value.findIndex((e) => U.value.includes(e.node.key));
|
|
260
|
+
e >= 0 ? q.setActive(e) : q.moveFirst(), g.filterable ? z.value?.querySelector(".m-treeselect__filter")?.focus() : rt();
|
|
261
|
+
} else q.setActive(-1), g.filterable && z.value?.querySelector(".m-treeselect__filter")?.focus();
|
|
273
262
|
});
|
|
274
263
|
}
|
|
275
|
-
function
|
|
276
|
-
if (!
|
|
277
|
-
if (
|
|
278
|
-
|
|
264
|
+
function at() {
|
|
265
|
+
if (!g.disabled) {
|
|
266
|
+
if (F.value) {
|
|
267
|
+
F.value = !1;
|
|
279
268
|
return;
|
|
280
269
|
}
|
|
281
|
-
|
|
270
|
+
J(!1);
|
|
282
271
|
}
|
|
283
272
|
}
|
|
284
|
-
function
|
|
285
|
-
if (!
|
|
286
|
-
let t =
|
|
273
|
+
function Y(e) {
|
|
274
|
+
if (!F.value) return;
|
|
275
|
+
let t = K.value, n = t[q.activeIndex.value];
|
|
287
276
|
if (e.key === "ArrowRight") {
|
|
288
277
|
if (e.preventDefault(), !n) return;
|
|
289
278
|
if (n.node.children?.length) {
|
|
290
|
-
if (!
|
|
279
|
+
if (!B.value[n.node.key]) X(n.node.key);
|
|
291
280
|
else {
|
|
292
281
|
let e = t.findIndex((e) => e.parentKey === n.node.key);
|
|
293
|
-
e >= 0 &&
|
|
282
|
+
e >= 0 && q.setActive(e);
|
|
294
283
|
}
|
|
295
284
|
}
|
|
296
285
|
return;
|
|
297
286
|
}
|
|
298
287
|
if (e.key === "ArrowLeft") {
|
|
299
288
|
if (e.preventDefault(), !n) return;
|
|
300
|
-
if (n.node.children?.length &&
|
|
289
|
+
if (n.node.children?.length && B.value[n.node.key]) X(n.node.key);
|
|
301
290
|
else if (n.parentKey != null) {
|
|
302
291
|
let e = t.findIndex((e) => e.node.key === n.parentKey);
|
|
303
|
-
e >= 0 &&
|
|
292
|
+
e >= 0 && q.setActive(e);
|
|
304
293
|
}
|
|
305
294
|
return;
|
|
306
295
|
}
|
|
307
|
-
|
|
296
|
+
q.onKeydown(e);
|
|
308
297
|
}
|
|
309
|
-
function
|
|
310
|
-
if (!
|
|
311
|
-
if (!
|
|
312
|
-
e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(),
|
|
298
|
+
function ot(e) {
|
|
299
|
+
if (!g.disabled) {
|
|
300
|
+
if (!F.value) {
|
|
301
|
+
e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(), J(!0)) : e.key === "Enter" && (e.preventDefault(), J(!1));
|
|
313
302
|
return;
|
|
314
303
|
}
|
|
315
|
-
|
|
304
|
+
Y(e);
|
|
316
305
|
}
|
|
317
306
|
}
|
|
318
|
-
function
|
|
307
|
+
function st(e) {
|
|
319
308
|
[
|
|
320
309
|
"ArrowUp",
|
|
321
310
|
"ArrowDown",
|
|
322
311
|
"Enter",
|
|
323
312
|
"Escape"
|
|
324
|
-
].includes(e.key) &&
|
|
313
|
+
].includes(e.key) && Y(e);
|
|
325
314
|
}
|
|
326
|
-
|
|
327
|
-
if (
|
|
328
|
-
else if (
|
|
329
|
-
let e =
|
|
330
|
-
|
|
315
|
+
T(q.activeIndex, () => {
|
|
316
|
+
if (F.value && !g.filterable) rt();
|
|
317
|
+
else if (F.value) {
|
|
318
|
+
let e = q.activeIndex.value;
|
|
319
|
+
z.value?.querySelectorAll(".m-treeselect__option")[e]?.scrollIntoView({ block: "nearest" });
|
|
331
320
|
}
|
|
332
321
|
});
|
|
333
|
-
function Y(e) {
|
|
334
|
-
z.value = {
|
|
335
|
-
...z.value,
|
|
336
|
-
[e]: !z.value[e]
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
322
|
function X(e) {
|
|
340
|
-
|
|
323
|
+
B.value = ae(B.value, e, { mode: "boolean" });
|
|
341
324
|
}
|
|
342
325
|
function Z(e) {
|
|
326
|
+
H.value ? S("update:modelValue", e) : S("update:modelValue", e[0] ?? null);
|
|
327
|
+
}
|
|
328
|
+
function ct(e) {
|
|
343
329
|
if (!e.disabled) {
|
|
344
|
-
if (
|
|
345
|
-
|
|
330
|
+
if (g.checkable) {
|
|
331
|
+
ut(e);
|
|
346
332
|
return;
|
|
347
333
|
}
|
|
348
|
-
if (!
|
|
349
|
-
|
|
334
|
+
if (!H.value) {
|
|
335
|
+
S("update:modelValue", e.key === g.modelValue ? null : e.key), F.value = !1, R.value?.focus({ preventScroll: !0 });
|
|
350
336
|
return;
|
|
351
337
|
}
|
|
352
|
-
|
|
338
|
+
Z(U.value.includes(e.key) ? U.value.filter((t) => t !== e.key) : [...U.value, e.key]);
|
|
353
339
|
}
|
|
354
340
|
}
|
|
355
|
-
function
|
|
341
|
+
function lt(e) {
|
|
356
342
|
if (e.disabled) return;
|
|
357
|
-
let t =
|
|
358
|
-
t >= 0 &&
|
|
343
|
+
let t = K.value.findIndex((t) => t.node.key === e.key);
|
|
344
|
+
t >= 0 && q.setActive(t);
|
|
359
345
|
}
|
|
360
|
-
function
|
|
346
|
+
function ut(e) {
|
|
361
347
|
if (e.disabled) return;
|
|
362
|
-
let t = { ...
|
|
363
|
-
|
|
364
|
-
let r =
|
|
365
|
-
|
|
348
|
+
let t = { ...Je.value }, n = !t[e.key];
|
|
349
|
+
g.checkStrictly ? n ? t[e.key] = !0 : delete t[e.key] : (ce(e, n, t), ue(g.options, t));
|
|
350
|
+
let r = se(g.options, t, g.checkStrategy, g.checkStrictly);
|
|
351
|
+
Z(Object.keys(r).filter((e) => r[e]));
|
|
366
352
|
}
|
|
367
|
-
function
|
|
368
|
-
|
|
353
|
+
function dt(e) {
|
|
354
|
+
Z(U.value.filter((t) => t !== e));
|
|
369
355
|
}
|
|
370
|
-
function
|
|
371
|
-
e.stopPropagation(),
|
|
356
|
+
function ft(e) {
|
|
357
|
+
e.stopPropagation(), S("update:modelValue", H.value ? [] : null), S("clear");
|
|
372
358
|
}
|
|
373
359
|
function Q(e) {
|
|
374
360
|
let t = e.target;
|
|
375
|
-
|
|
361
|
+
L.value?.contains(t) || z.value?.contains(t) || (F.value = !1);
|
|
376
362
|
}
|
|
377
363
|
function $(e) {
|
|
378
364
|
let t = e.target;
|
|
379
|
-
|
|
365
|
+
L.value?.contains(t) || z.value?.contains(t) || (F.value = !1);
|
|
380
366
|
}
|
|
381
|
-
function
|
|
382
|
-
|
|
367
|
+
function pt() {
|
|
368
|
+
F.value && it();
|
|
383
369
|
}
|
|
384
|
-
return te(() =>
|
|
385
|
-
e ? (document.addEventListener("click", Q), document.addEventListener("focusin", $)) : (
|
|
370
|
+
return te(() => F.value && V.value, pt), T(F, (e) => {
|
|
371
|
+
e ? (document.addEventListener("click", Q), document.addEventListener("focusin", $)) : (I.value = "", q.reset(), document.removeEventListener("click", Q), document.removeEventListener("focusin", $));
|
|
386
372
|
}), ye(() => {
|
|
387
373
|
document.removeEventListener("click", Q), document.removeEventListener("focusin", $);
|
|
388
|
-
}), (e, n) => (
|
|
374
|
+
}), (e, n) => (y(), p("div", _({
|
|
389
375
|
ref_key: "root",
|
|
390
|
-
ref:
|
|
391
|
-
},
|
|
392
|
-
o.label ? (
|
|
376
|
+
ref: L
|
|
377
|
+
}, w(Ee), { class: "m-select-field" }), [
|
|
378
|
+
o.label ? (y(), p("label", {
|
|
393
379
|
key: 0,
|
|
394
380
|
class: "m-select-field__label",
|
|
395
|
-
for:
|
|
396
|
-
},
|
|
397
|
-
|
|
381
|
+
for: j.value
|
|
382
|
+
}, C(o.label), 9, ke)) : f("", !0),
|
|
383
|
+
m("div", { class: v(["m-treeselect", [`m-treeselect--${w(Ue)}`, {
|
|
398
384
|
"m-treeselect--disabled": o.disabled,
|
|
399
|
-
"m-treeselect--open":
|
|
400
|
-
"m-treeselect--multiple":
|
|
401
|
-
"m-treeselect--invalid":
|
|
402
|
-
}]]) }, [
|
|
403
|
-
"m-select__control--clearable":
|
|
404
|
-
"m-select__control--open":
|
|
405
|
-
}]) }, [
|
|
406
|
-
id:
|
|
385
|
+
"m-treeselect--open": F.value,
|
|
386
|
+
"m-treeselect--multiple": H.value,
|
|
387
|
+
"m-treeselect--invalid": w(M)
|
|
388
|
+
}]]) }, [m("div", { class: v(["m-treeselect__control m-select__control", {
|
|
389
|
+
"m-select__control--clearable": $e.value,
|
|
390
|
+
"m-select__control--open": F.value
|
|
391
|
+
}]) }, [m("div", _(w(De), {
|
|
392
|
+
id: j.value,
|
|
407
393
|
ref_key: "trigger",
|
|
408
|
-
ref:
|
|
394
|
+
ref: R,
|
|
409
395
|
class: "m-treeselect__trigger",
|
|
410
396
|
role: "combobox",
|
|
411
397
|
tabindex: o.disabled ? -1 : 0,
|
|
412
398
|
"aria-disabled": o.disabled || void 0,
|
|
413
|
-
"aria-expanded":
|
|
414
|
-
"aria-controls":
|
|
415
|
-
"aria-invalid":
|
|
416
|
-
"aria-describedby":
|
|
399
|
+
"aria-expanded": F.value,
|
|
400
|
+
"aria-controls": F.value ? w(tt) : void 0,
|
|
401
|
+
"aria-invalid": w(M) || void 0,
|
|
402
|
+
"aria-describedby": w(N) ? `${j.value}-help` : void 0,
|
|
417
403
|
"aria-haspopup": "tree",
|
|
418
|
-
onClick:
|
|
419
|
-
onKeydown:
|
|
420
|
-
}), [
|
|
404
|
+
onClick: at,
|
|
405
|
+
onKeydown: ot
|
|
406
|
+
}), [H.value && W.value.length ? (y(), p("div", je, [(y(!0), p(l, null, x(Qe.value, (e) => (y(), p("span", {
|
|
421
407
|
key: e.key,
|
|
422
408
|
class: "m-select__tag"
|
|
423
|
-
}, [
|
|
409
|
+
}, [m("span", Me, C(e.label), 1), m("button", {
|
|
424
410
|
type: "button",
|
|
425
411
|
class: "m-select__tag-remove",
|
|
426
|
-
"aria-label":
|
|
412
|
+
"aria-label": w(A).removeTag,
|
|
427
413
|
disabled: o.disabled,
|
|
428
|
-
onClick:
|
|
429
|
-
}, [
|
|
414
|
+
onClick: D((t) => dt(e.key), ["stop"])
|
|
415
|
+
}, [h(t, {
|
|
430
416
|
name: "close",
|
|
431
417
|
size: "sm"
|
|
432
|
-
})], 8,
|
|
418
|
+
})], 8, Ne)]))), 128)), G.value ? (y(), p("span", Pe, C(G.value > 0 ? `+${G.value}` : ""), 1)) : f("", !0)])) : w(O).value && Xe.value ? be(e.$slots, "value", { option: Xe.value }, void 0, void 0, 2) : (y(), p("span", {
|
|
433
419
|
key: 1,
|
|
434
|
-
class:
|
|
435
|
-
},
|
|
420
|
+
class: v(["m-treeselect__label", { "m-treeselect__label--placeholder": !U.value.length }])
|
|
421
|
+
}, C(Ye.value), 3))], 16, Ae), m("div", Fe, [$e.value ? (y(), p("button", {
|
|
436
422
|
key: 0,
|
|
437
423
|
class: "m-select__clear",
|
|
438
424
|
type: "button",
|
|
439
|
-
"aria-label":
|
|
440
|
-
onClick:
|
|
441
|
-
}, [
|
|
425
|
+
"aria-label": w(A).clear,
|
|
426
|
+
onClick: ft
|
|
427
|
+
}, [h(t, {
|
|
442
428
|
name: "close",
|
|
443
429
|
class: "m-control-affix-icon"
|
|
444
|
-
})], 8,
|
|
445
|
-
class:
|
|
430
|
+
})], 8, Ie)) : f("", !0), m("span", {
|
|
431
|
+
class: v(["m-select__indicator", { "m-select__indicator--open": F.value }]),
|
|
446
432
|
"aria-hidden": "true"
|
|
447
|
-
}, [
|
|
433
|
+
}, [h(t, {
|
|
448
434
|
name: "chevron-down",
|
|
449
435
|
class: "m-control-affix-icon"
|
|
450
|
-
})], 2)])], 2), (
|
|
451
|
-
to:
|
|
452
|
-
disabled:
|
|
453
|
-
}, [
|
|
454
|
-
name:
|
|
455
|
-
css:
|
|
436
|
+
})], 2)])], 2), (y(), d(me, {
|
|
437
|
+
to: Ke.value.to,
|
|
438
|
+
disabled: Ke.value.disabled
|
|
439
|
+
}, [h(he, {
|
|
440
|
+
name: w(Ve),
|
|
441
|
+
css: w(He)
|
|
456
442
|
}, {
|
|
457
|
-
default:
|
|
443
|
+
default: E(() => [F.value ? (y(), p("div", {
|
|
458
444
|
key: 0,
|
|
459
|
-
id:
|
|
445
|
+
id: w(tt),
|
|
460
446
|
ref_key: "panel",
|
|
461
|
-
ref:
|
|
462
|
-
class:
|
|
463
|
-
style: ve(
|
|
464
|
-
onKeydown:
|
|
465
|
-
}, [o.filterable ?
|
|
447
|
+
ref: z,
|
|
448
|
+
class: v(["m-treeselect__panel", { "m-treeselect__panel--teleported": V.value }]),
|
|
449
|
+
style: ve(V.value ? Ge.value : void 0),
|
|
450
|
+
onKeydown: Y
|
|
451
|
+
}, [o.filterable ? we((y(), p("input", {
|
|
466
452
|
key: 0,
|
|
467
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
453
|
+
"onUpdate:modelValue": n[0] ||= (e) => I.value = e,
|
|
468
454
|
class: "m-treeselect__filter",
|
|
469
455
|
type: "search",
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
456
|
+
size: "1",
|
|
457
|
+
placeholder: w(A).searchPlaceholder,
|
|
458
|
+
onClick: n[1] ||= D(() => {}, ["stop"]),
|
|
459
|
+
onKeydown: st
|
|
460
|
+
}, null, 40, Re)), [[Ce, I.value]]) : f("", !0), h(re, {
|
|
474
461
|
class: "m-treeselect__tree-scroll",
|
|
475
462
|
"fit-content": "",
|
|
476
463
|
"wrap-class": "m-treeselect__tree-wrap",
|
|
477
464
|
"view-class": "m-treeselect__tree-view"
|
|
478
465
|
}, {
|
|
479
|
-
default:
|
|
466
|
+
default: E(() => [m("ul", ze, [(y(!0), p(l, null, x(et.value, (e) => (y(), d(Oe, {
|
|
480
467
|
key: e.key,
|
|
481
468
|
node: e,
|
|
482
469
|
depth: 0,
|
|
483
|
-
"selected-keys":
|
|
484
|
-
"checked-keys":
|
|
485
|
-
expanded:
|
|
470
|
+
"selected-keys": U.value,
|
|
471
|
+
"checked-keys": Je.value,
|
|
472
|
+
expanded: B.value,
|
|
486
473
|
"show-checkbox": o.checkable,
|
|
487
|
-
"active-key":
|
|
488
|
-
"render-option":
|
|
489
|
-
onToggle:
|
|
490
|
-
onSelect:
|
|
491
|
-
onCheck:
|
|
492
|
-
onActivate:
|
|
474
|
+
"active-key": nt.value,
|
|
475
|
+
"render-option": Ze.value,
|
|
476
|
+
onToggle: X,
|
|
477
|
+
onSelect: ct,
|
|
478
|
+
onCheck: ut,
|
|
479
|
+
onActivate: lt
|
|
493
480
|
}, null, 8, [
|
|
494
481
|
"node",
|
|
495
482
|
"selected-keys",
|
|
@@ -500,17 +487,17 @@ var T = [
|
|
|
500
487
|
"render-option"
|
|
501
488
|
]))), 128))])]),
|
|
502
489
|
_: 1
|
|
503
|
-
})], 46,
|
|
490
|
+
})], 46, Le)) : f("", !0)]),
|
|
504
491
|
_: 1
|
|
505
492
|
}, 8, ["name", "css"])], 8, ["to", "disabled"]))], 2),
|
|
506
|
-
|
|
493
|
+
w(N) ? (y(), p("span", {
|
|
507
494
|
key: 1,
|
|
508
|
-
id: `${
|
|
509
|
-
class:
|
|
510
|
-
role:
|
|
511
|
-
},
|
|
495
|
+
id: `${j.value}-help`,
|
|
496
|
+
class: v(["m-select-field__help", { "m-select-field__help--invalid": w(P) }]),
|
|
497
|
+
role: w(P) ? "alert" : void 0
|
|
498
|
+
}, C(w(N)), 11, Be)) : f("", !0)
|
|
512
499
|
], 16));
|
|
513
500
|
}
|
|
514
501
|
});
|
|
515
502
|
//#endregion
|
|
516
|
-
export {
|
|
503
|
+
export { Ve as MTreeSelect };
|