@pantograph/vue 0.30.16 → 0.31.0
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/dist/Accordion/Accordion.d.ts +107 -0
- package/dist/Accordion/Accordion.model.d.ts +23 -0
- package/dist/Accordion/AccordionItem.d.ts +96 -0
- package/dist/Accordion/index.d.ts +5 -0
- package/dist/Accordion/index.js +286 -0
- package/dist/Accordion/index.umd.cjs +1 -0
- package/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-CZ8fi9pP.js → ActionButton.vue_vue_type_script_setup_true_lang-BbziM36Z.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-BNcIbOqh.js → ActionButton.vue_vue_type_script_setup_true_lang-DeODCM-L.js} +1 -1
- package/dist/Alert/index.js +2 -2
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/Avatar/index.js +2 -2
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-CcEwNDzA.js → Avatar.vue_vue_type_style_index_0_lang-BBeWgKUx.js} +54 -53
- package/dist/Avatar.vue_vue_type_style_index_0_lang-mKlk9pzA.js +1 -0
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-DUriFX2R.js → Badge.vue_vue_type_script_setup_true_lang-CHBj_GP4.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-BqJFLc4T.js → Badge.vue_vue_type_script_setup_true_lang-D51ugS6o.js} +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-CwP-zfy9.js → BaseBadge.vue_vue_type_style_index_0_lang-CKjbM3kM.js} +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-D7hTJXf9.js → BaseBadge.vue_vue_type_style_index_0_lang-D3Ibobu5.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-BNHYQnWU.js → BaseButton.vue_vue_type_style_index_0_lang-CjUPxGMh.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-B-UIQjF_.js → BaseButton.vue_vue_type_style_index_0_lang-DKt3vrc5.js} +4 -4
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-B7wt1KZf.js → BaseInput.vue_vue_type_style_index_0_lang-BYqMM_a5.js} +1 -1
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-BOyQQwR1.js → BaseInput.vue_vue_type_style_index_0_lang-oRRg6q6k.js} +1 -1
- package/dist/Breadcrumb/index.js +217 -0
- package/dist/Breadcrumb/index.umd.cjs +1 -0
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-BX8LelJk.js → Button.vue_vue_type_script_setup_true_lang-Be-JRcnm.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DVRSkhfU.js → Button.vue_vue_type_script_setup_true_lang-DuzKM6AI.js} +1 -1
- package/dist/Checkbox/index.js +2 -2
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-evu2oYXX.js → Checkbox.vue_vue_type_style_index_0_lang-B1Y8EoU2.js} +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-DHP7ASJN.js → Checkbox.vue_vue_type_style_index_0_lang-DDa0cjqA.js} +1 -1
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.js +2 -2
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-CMVETRow.js → Chip.vue_vue_type_style_index_0_lang-BguWH1di.js} +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-B0zl0nyk.js → Chip.vue_vue_type_style_index_0_lang-fj2q-7So.js} +2 -2
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/index.js +2 -2
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-B_LB27Xh.js → ColorPicker.vue_vue_type_style_index_0_lang-BAC62Wja.js} +3 -3
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-8DTz02B_.js → ColorPicker.vue_vue_type_style_index_0_lang-KTw1m6vZ.js} +1 -1
- package/dist/ColorSwatch/index.js +2 -2
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-BkahQg9K.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CEho5KRl.js} +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-DRXpc1ix.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CO9rvvGM.js} +1 -1
- package/dist/ColorTrigger/ColorTrigger.d.ts +4 -2
- package/dist/ColorTrigger/index.js +2 -2
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-7cBfb5lS.js +1 -0
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-RKzjvFQL.js → ColorTrigger.vue_vue_type_style_index_0_lang-C8fATI6R.js} +20 -20
- package/dist/Combobox/Combobox.d.ts +5 -5
- package/dist/Combobox/index.js +185 -184
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Comment/CommentActions.d.ts +2 -2
- package/dist/Comment/CommentEditor.d.ts +4 -4
- package/dist/Comment/CommentMention.d.ts +28 -28
- package/dist/Comment/CommentReactionList.d.ts +1 -1
- package/dist/Comment/index.js +287 -287
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/ComponentMap-3-i_sCkA.js +1 -0
- package/dist/{ComponentMap-BJOHB1jq.js → ComponentMap-CrvGt3G-.js} +3 -0
- package/dist/ComponentMap.d.ts +1 -1
- package/dist/DataTable/components/DataTableHeaderCell.d.ts +2 -2
- package/dist/DataTable/index.js +8 -8
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DropZone/DropZone.d.ts +4 -4
- package/dist/DropZone/index.js +6 -6
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/Empty/index.js +2 -2
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-BNHYA3-k.js → Empty.vue_vue_type_style_index_0_lang-Cvh6hCth.js} +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-CjN-zB7k.js → Empty.vue_vue_type_style_index_0_lang-yTn4EQKn.js} +1 -1
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-C6_a_qAd.js → FloatButton.vue_vue_type_script_setup_true_lang-C8FdjIC3.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-1ZSyOCUZ.js → FloatButton.vue_vue_type_script_setup_true_lang-CexAgBoT.js} +1 -1
- package/dist/Form/index.js +2 -2
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/FormValidation/index.js +1 -1
- package/dist/FormValidation/index.umd.cjs +1 -1
- package/dist/{FormValidation.vue_vue_type_style_index_0_lang-FGFyFCis.js → FormValidation.vue_vue_type_style_index_0_lang-D-i8WmpI.js} +1 -1
- package/dist/{FormValidation.vue_vue_type_style_index_0_lang-DcXAThgj.js → FormValidation.vue_vue_type_style_index_0_lang-DgZYkn4S.js} +1 -1
- package/dist/GOPicker/GOPicker.d.ts +5 -4
- package/dist/GOPicker/index.js +10 -10
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-Bq3vS9vp.js → GraphicalObject.vue_vue_type_script_setup_true_lang-BC9GfN2v.js} +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-DVkWOhwp.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DChtamWZ.js} +1 -1
- package/dist/GraphicalObjectGroup/index.js +34 -33
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/HoverCard/HoverCard.d.ts +1 -1
- package/dist/Icon/Icon.d.ts +5 -2
- package/dist/Icon/index.js +2 -2
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-D3lvOgux.js +65 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-v3QUxO-v.js +1 -0
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-4_qFjriZ.js → IconButton.vue_vue_type_script_setup_true_lang-BWakPloG.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-CgGTR6vM.js → IconButton.vue_vue_type_script_setup_true_lang-D3l2EAmu.js} +1 -1
- package/dist/Image/index.js +2 -2
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-D_yC06RN.js → Image.vue_vue_type_style_index_0_lang-C2zniMRJ.js} +2 -2
- package/dist/{Image.vue_vue_type_style_index_0_lang-BBxqLThg.js → Image.vue_vue_type_style_index_0_lang-CMeAdvar.js} +1 -1
- package/dist/IndentLevel/IndentLevel.d.ts +1 -1
- package/dist/IndentLevel/index.js +2 -2
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-B8DEUVXb.js → IndentLevel.vue_vue_type_style_index_0_lang-BJ3shlGA.js} +2 -2
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-TU4z8CYL.js → IndentLevel.vue_vue_type_style_index_0_lang-CZ9V2BLW.js} +1 -1
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-Bm51mCOj.js → Indicator.vue_vue_type_script_setup_true_lang-2M9WcKVh.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-q_awX-ua.js → Indicator.vue_vue_type_script_setup_true_lang-DsMy-D2a.js} +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-U7P9WS1i.js → Input.vue_vue_type_script_setup_true_lang-BfK5xqDA.js} +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-DGaMhGxv.js → Input.vue_vue_type_script_setup_true_lang-Ga_3LDxv.js} +1 -1
- package/dist/InputNumber/index.js +1 -1
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-DTKmNnrT.js → InputNumber.vue_vue_type_script_setup_true_lang-BtVV9z4X.js} +1 -1
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-DNlWuDNN.js → InputNumber.vue_vue_type_script_setup_true_lang-DXgvVwUu.js} +2 -2
- package/dist/Kbd/index.js +1 -1
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/Label/index.js +2 -2
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/{Label.vue_vue_type_style_index_0_lang-B5m20cLB.js → Label.vue_vue_type_style_index_0_lang-BDD0pKtZ.js} +1 -1
- package/dist/{Label.vue_vue_type_style_index_0_lang-teg6eTkO.js → Label.vue_vue_type_style_index_0_lang-SlF3h2jY.js} +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/Menu/Menu.d.ts +1 -1
- package/dist/Menu/index.js +2 -2
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-CuYCh2j-.js → Menu.vue_vue_type_style_index_0_lang-BcKxpYfi.js} +98 -98
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-D9vo-si5.js → Menu.vue_vue_type_style_index_0_lang-hS180XrJ.js} +1 -1
- package/dist/MenuItem/MenuItem.d.ts +1 -1
- package/dist/MenuItem/index.js +2 -2
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/Pagination/index.js +4 -4
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/utils.d.ts +1 -1
- package/dist/Progress/index.js +2 -2
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/{Progress.vue_vue_type_style_index_0_lang-BGm_UZSY.js → Progress.vue_vue_type_style_index_0_lang-CAzIoHz3.js} +2 -2
- package/dist/{Progress.vue_vue_type_style_index_0_lang-B-OM1USr.js → Progress.vue_vue_type_style_index_0_lang-CD-XcrRa.js} +1 -1
- package/dist/Segmented/Segmented.d.ts +3 -3
- package/dist/Segmented/index.js +2 -2
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-CQ5KaxKs.js +1 -0
- package/dist/Segmented.vue_vue_type_style_index_0_lang-CYjKdNAS.js +202 -0
- package/dist/Select/Select.d.ts +5 -5
- package/dist/Select/index.js +2 -2
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-DwbXbFJO.js → Select.vue_vue_type_style_index_0_lang-BVmTnDDs.js} +4 -4
- package/dist/{Select.vue_vue_type_style_index_0_lang-A8pV25GX.js → Select.vue_vue_type_style_index_0_lang-CLCjaJJi.js} +1 -1
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-DnugoLzl.js → Shortcut.vue_vue_type_style_index_0_lang-BybYN3_Y.js} +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-D_Nl5CG7.js → Shortcut.vue_vue_type_style_index_0_lang-CGLNPKWO.js} +1 -1
- package/dist/Spinner/index.js +2 -2
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-B7KhPt_X.js → Spinner.vue_vue_type_style_index_0_lang-DJx4OQVM.js} +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-C-Pajopx.js → Spinner.vue_vue_type_style_index_0_lang-PVVXnUa7.js} +1 -1
- package/dist/Steps/index.js +2 -1
- package/dist/Steps/index.umd.cjs +1 -1
- package/dist/SubMenu/SubMenu.d.ts +2 -2
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Tabs/index.js +2 -2
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Toast/index.js +4 -4
- package/dist/Toast/index.umd.cjs +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree/utils.d.ts +2 -2
- package/dist/Upload/index.js +6 -6
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/index-B2rTP8gs.js +1 -0
- package/dist/index-BUzezp9o.js +1 -0
- package/dist/index-BhaFiUPP.js +78 -0
- package/dist/{index-C5Ibi_gG.js → index-BuEiTBIH.js} +93 -93
- package/dist/index.d.ts +2 -0
- package/dist/index.js +421 -404
- package/dist/index.umd.cjs +1 -1
- package/dist/nuxt/index.js +1 -1
- package/dist/nuxt/index.umd.cjs +1 -1
- package/dist/resolver/index.js +1 -1
- package/dist/resolver/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/dist/use/index.js +454 -407
- package/dist/use/index.umd.cjs +1 -1
- package/package.json +11 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-C3ApgvES.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-CGssaYYe.js +0 -1
- package/dist/ComponentMap-QreTaMkg.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-D7PiBbDb.js +0 -59
- package/dist/Icon.vue_vue_type_style_index_0_lang-D9YESScE.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-Bxfv1oUB.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-D7acySeW.js +0 -194
- package/dist/index-9BJFe-so.js +0 -77
- package/dist/index-BYOolnAF.js +0 -1
- package/dist/index-MFq89bJf.js +0 -1
- /package/dist/Breadcrumb/{_index.d.ts → index.d.ts} +0 -0
package/dist/Combobox/index.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as be, useSlots as ut, onBeforeUnmount as Nt, computed as C, createBlock as j, openBlock as
|
|
1
|
+
import { defineComponent as be, useSlots as ut, onBeforeUnmount as Nt, computed as C, createBlock as j, openBlock as T, unref as i, mergeProps as ue, createSlots as $t, renderList as je, withCtx as W, renderSlot as Ae, normalizeProps as De, guardReactiveProps as Ee, createVNode as Y, h as b, useAttrs as jt, createElementBlock as ye, normalizeClass as Ie, toDisplayString as Kt, ref as ve, watch as Ft, isRef as tt, createCommentVNode as Le, createElementVNode as ot, normalizeStyle as Wt, Fragment as Me } from "vue";
|
|
2
2
|
import { createContext as Gt, Slot as Ht, useEmitAsProps as Ut } from "reka-ui";
|
|
3
3
|
import { omit as he, isString as lt, cloneDeep as ae, isFunction as qt, debounce as at, pick as Jt, last as nt } from "es-toolkit";
|
|
4
4
|
import { isEmptyElement as $, useVModel as Pe, useLazyLoading as Qt, useFormInput as Xt, useVirtualScroll as Yt, useInputDataStates as Zt, useCollection as eo, useDisableBodyPointerEvents as to, installComponent as ct } from "@pantograph/utils-vue";
|
|
5
|
-
import { getBemBlock as oo, getBemModifier as lo, getBemElement as
|
|
5
|
+
import { getBemBlock as oo, getBemModifier as lo, getBemElement as S, getComponentOptions as _e, normCls as H, isEmptyLikeLodash as K, generateVariantClassList as J, createOptionGetterFunc as q, usePCId as Re, getPxSize as Ne, getComponentName as pt } from "@pantograph/utils";
|
|
6
6
|
import { _ as ao } from "../index-CK2Fd4_G.js";
|
|
7
7
|
import { cva as dt } from "class-variance-authority";
|
|
8
8
|
import "../Icon/index.js";
|
|
9
9
|
import "../Avatar/index.js";
|
|
10
10
|
import "../GraphicalObject/index.js";
|
|
11
|
-
import { _ as gt, a as no } from "../Avatar.vue_vue_type_style_index_0_lang-
|
|
11
|
+
import { _ as gt, a as no } from "../Avatar.vue_vue_type_style_index_0_lang-BBeWgKUx.js";
|
|
12
12
|
import { GraphicalObjectGroup as ro } from "../GraphicalObjectGroup/index.js";
|
|
13
|
-
import { _ as so } from "../index-
|
|
14
|
-
import { _ as io } from "../Chip.vue_vue_type_style_index_0_lang-
|
|
13
|
+
import { _ as so } from "../index-BhaFiUPP.js";
|
|
14
|
+
import { _ as io } from "../Chip.vue_vue_type_style_index_0_lang-fj2q-7So.js";
|
|
15
15
|
import "../Input/index.js";
|
|
16
16
|
import { whenever as uo, refDebounced as co } from "@vueuse/core";
|
|
17
|
-
import { _ as po } from "../Input.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { _ as
|
|
19
|
-
import { g as go, a as mo } from "../
|
|
17
|
+
import { _ as po } from "../Input.vue_vue_type_script_setup_true_lang-Ga_3LDxv.js";
|
|
18
|
+
import { _ as Ke } from "../Icon.vue_vue_type_style_index_0_lang-D3lvOgux.js";
|
|
19
|
+
import { g as go, a as mo } from "../Menu.vue_vue_type_style_index_0_lang-BcKxpYfi.js";
|
|
20
20
|
import { i as Q } from "../isArray-QlWcxgml.js";
|
|
21
|
-
import { _ as mt } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
21
|
+
import { _ as mt } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-BC9GfN2v.js";
|
|
22
22
|
import "../ScrollContainer/index.js";
|
|
23
23
|
import "../Empty/index.js";
|
|
24
|
-
import { f as fo, _ as vo, a as yo } from "../index-
|
|
24
|
+
import { f as fo, _ as vo, a as yo } from "../index-BuEiTBIH.js";
|
|
25
25
|
import "../MenuItem/index.js";
|
|
26
26
|
import "../Checkbox/index.js";
|
|
27
|
-
import { _ as ho } from "../Checkbox.vue_vue_type_style_index_0_lang-
|
|
27
|
+
import { _ as ho } from "../Checkbox.vue_vue_type_style_index_0_lang-B1Y8EoU2.js";
|
|
28
28
|
import { _ as bo } from "../Skeleton.vue_vue_type_style_index_0_lang-aI8FTL_w.js";
|
|
29
29
|
import { _ as _o } from "../Divider.vue_vue_type_style_index_0_lang-eXMD78c3.js";
|
|
30
30
|
import { a as rt } from "../index-D2tZoezA.js";
|
|
31
31
|
import { useConfig as Co } from "../ConfigProvider/index.js";
|
|
32
32
|
import { h as st } from "../head-E4xQy0iK.js";
|
|
33
33
|
import { _ as So } from "../ScrollContainer.vue_vue_type_style_index_0_lang-DGrpXPJ1.js";
|
|
34
|
-
import { _ as ko } from "../Empty.vue_vue_type_style_index_0_lang-
|
|
35
|
-
const [
|
|
34
|
+
import { _ as ko } from "../Empty.vue_vue_type_style_index_0_lang-yTn4EQKn.js";
|
|
35
|
+
const [Fe, xo] = Gt("Combobox"), P = oo("combobox"), ft = lo(P, "value-placeholder"), $e = S(P, "option"), vt = ["sm", "md", "lg"], Bo = ["error", "warning", "success"], We = /* @__PURE__ */ be({
|
|
36
36
|
..._e("ComboboxInput"),
|
|
37
37
|
__name: "ComboboxInput",
|
|
38
38
|
props: {
|
|
@@ -63,20 +63,20 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
63
63
|
steps: { type: Boolean }
|
|
64
64
|
},
|
|
65
65
|
setup(B) {
|
|
66
|
-
const t = B, c = ut(), o =
|
|
66
|
+
const t = B, c = ut(), o = Fe();
|
|
67
67
|
uo(() => o.openModel.value && o.inputRef.value, o.focusOnInput), Nt(() => {
|
|
68
68
|
o.comboboxInputFocused.value = !1;
|
|
69
69
|
});
|
|
70
|
-
const
|
|
70
|
+
const k = C(() => {
|
|
71
71
|
const L = t.placeholder ?? o.props.placeholder ?? "";
|
|
72
72
|
return (o.props.headerSearch ? L : o.placeholder.value) ?? L;
|
|
73
|
-
}), U =
|
|
74
|
-
return (L, g) => (
|
|
73
|
+
}), U = S(P, "input");
|
|
74
|
+
return (L, g) => (T(), j(i(po), ue({
|
|
75
75
|
...i(o).comboboxInputBinding.value,
|
|
76
76
|
...t,
|
|
77
77
|
disabled: i(o).getDisabled.value || t.disabled
|
|
78
78
|
}, {
|
|
79
|
-
placeholder:
|
|
79
|
+
placeholder: k.value,
|
|
80
80
|
onKeydown: i(o).onKeyDown,
|
|
81
81
|
ref: i(o).inputRef,
|
|
82
82
|
class: i(H)(i(U), { [i(ft)]: i(o).valuePlaceholder.value }, t.class),
|
|
@@ -84,17 +84,17 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
84
84
|
modelValue: i(o).searchModel.value,
|
|
85
85
|
"onUpdate:modelValue": g[0] || (g[0] = (d) => i(o).searchModel.value = d)
|
|
86
86
|
}), $t({ _: 2 }, [
|
|
87
|
-
|
|
87
|
+
je(Object.keys(i(he)(c, ["leading"])), (d) => ({
|
|
88
88
|
name: d,
|
|
89
89
|
fn: W((m) => [
|
|
90
|
-
|
|
90
|
+
Ae(L.$slots, d, De(Ee(m)))
|
|
91
91
|
])
|
|
92
92
|
})),
|
|
93
93
|
i(o).props.headerSearch ? {
|
|
94
94
|
name: "leading",
|
|
95
95
|
fn: W((d) => [
|
|
96
|
-
|
|
97
|
-
Y(i(
|
|
96
|
+
Ae(L.$slots, "leading", De(Ee(d)), () => [
|
|
97
|
+
Y(i(Ke), {
|
|
98
98
|
size: d.iconSize,
|
|
99
99
|
icon: "tabler:search",
|
|
100
100
|
flipOnDir: "rtl"
|
|
@@ -105,7 +105,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
105
105
|
} : {
|
|
106
106
|
name: "leading",
|
|
107
107
|
fn: W((d) => [
|
|
108
|
-
|
|
108
|
+
Ae(L.$slots, "leading", De(Ee(d)))
|
|
109
109
|
]),
|
|
110
110
|
key: "1"
|
|
111
111
|
}
|
|
@@ -115,7 +115,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
115
115
|
..._e("ComboboxTrigger"),
|
|
116
116
|
__name: "ComboboxTrigger",
|
|
117
117
|
setup(B) {
|
|
118
|
-
const t =
|
|
118
|
+
const t = Fe(), c = ({ value: r }) => {
|
|
119
119
|
r && Q(t.model.value) && !t.getDisabled.value && (t.model.value = t.model.value.filter((_) => _ !== r));
|
|
120
120
|
}, o = C(() => {
|
|
121
121
|
switch (t.getSize.value) {
|
|
@@ -125,10 +125,10 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
125
125
|
default:
|
|
126
126
|
return "xsm";
|
|
127
127
|
}
|
|
128
|
-
}),
|
|
128
|
+
}), k = C(() => {
|
|
129
129
|
if (!t.props.multiple && lt(t.model.value) && !K(t.model.value))
|
|
130
130
|
return t.getOptionByValue(t.model.value);
|
|
131
|
-
}), U = (r =
|
|
131
|
+
}), U = (r = k.value) => {
|
|
132
132
|
if (t.props.selectedItemIconAsTrailingIcon && (r != null && r._icon))
|
|
133
133
|
return r._icon;
|
|
134
134
|
}, L = C(() => U()), g = C(() => {
|
|
@@ -146,7 +146,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
146
146
|
}), m = (r) => ({
|
|
147
147
|
...d.value,
|
|
148
148
|
option: t.getOptionByValue(r)
|
|
149
|
-
}), n =
|
|
149
|
+
}), n = S(P, "trigger"), F = dt(n, {
|
|
150
150
|
variants: {
|
|
151
151
|
size: J(vt, n),
|
|
152
152
|
headerSearch: J("header-search", n),
|
|
@@ -181,7 +181,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
181
181
|
t.props.triggerCls
|
|
182
182
|
),
|
|
183
183
|
...t.comboboxTriggerBinding.value
|
|
184
|
-
})), f = (r, _ = o.value) => b(
|
|
184
|
+
})), f = (r, _ = o.value) => b(Ke, { icon: r, size: _ }), ne = () => {
|
|
185
185
|
var v, y;
|
|
186
186
|
let r;
|
|
187
187
|
const _ = (y = (v = t.slots).triggerTrailing) == null ? void 0 : y.call(
|
|
@@ -196,7 +196,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
196
196
|
if (r)
|
|
197
197
|
return b(
|
|
198
198
|
"div",
|
|
199
|
-
{ class: H(
|
|
199
|
+
{ class: H(S(n, "trailing"), t.props.triggerTrailingCls) },
|
|
200
200
|
r
|
|
201
201
|
);
|
|
202
202
|
}, Z = (r) => {
|
|
@@ -231,7 +231,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
231
231
|
return b(
|
|
232
232
|
"div",
|
|
233
233
|
{
|
|
234
|
-
class: H(
|
|
234
|
+
class: H(S(n, "leading"), t.props.triggerLeadingCls)
|
|
235
235
|
},
|
|
236
236
|
M
|
|
237
237
|
);
|
|
@@ -244,10 +244,10 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
244
244
|
return b(Ht, he(X.value, ["class"]), () => r);
|
|
245
245
|
const v = () => {
|
|
246
246
|
const z = [], ee = [
|
|
247
|
-
|
|
247
|
+
S(n, "tags"),
|
|
248
248
|
t.props.triggerContentCls,
|
|
249
249
|
t.props.triggerContentValueCls
|
|
250
|
-
],
|
|
250
|
+
], D = (() => {
|
|
251
251
|
if (t.props.multiple && Q(t.model.value)) {
|
|
252
252
|
if (t.props.tagRenderMode === "avatar")
|
|
253
253
|
return b(
|
|
@@ -290,20 +290,20 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
290
290
|
},
|
|
291
291
|
() => t.model.value.map((se) => {
|
|
292
292
|
var ge, me;
|
|
293
|
-
const
|
|
293
|
+
const we = () => t.getLabelByValue(se), Se = ({ size: Te }) => {
|
|
294
294
|
const R = U(t.getOptionByValue(se)) ?? t.props.leadingIcon;
|
|
295
|
-
return R ? f(R,
|
|
295
|
+
return R ? f(R, Te) : null;
|
|
296
296
|
}, ke = t.getOptionByValue(se);
|
|
297
297
|
return b(
|
|
298
298
|
io,
|
|
299
299
|
{
|
|
300
300
|
...ke ? ((me = (ge = t.props).getTagProps) == null ? void 0 : me.call(ge, ke)) ?? {} : {},
|
|
301
301
|
value: se,
|
|
302
|
-
class: H(
|
|
303
|
-
closeIconCls:
|
|
302
|
+
class: H(S(n, "tag"), t.props.tagCls),
|
|
303
|
+
closeIconCls: S(n, "tag__close")
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
|
-
text:
|
|
306
|
+
text: we,
|
|
307
307
|
leading: Se
|
|
308
308
|
}
|
|
309
309
|
);
|
|
@@ -311,31 +311,31 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
})();
|
|
314
|
-
if (
|
|
314
|
+
if (D && z.push(D), t.props.headerSearch ? (!t.props.noValueOnPlaceholder || t.props.placeholder) && z.push(
|
|
315
315
|
b(
|
|
316
316
|
"div",
|
|
317
317
|
{
|
|
318
|
-
class: H(
|
|
318
|
+
class: H(S(n, "content__value"), {
|
|
319
319
|
[ft]: t.valuePlaceholder.value
|
|
320
320
|
})
|
|
321
321
|
},
|
|
322
322
|
t.placeholder.value ?? t.props.placeholder
|
|
323
323
|
)
|
|
324
324
|
) : z.push(
|
|
325
|
-
b(
|
|
325
|
+
b(We, {
|
|
326
326
|
noValueOnPlaceholder: t.props.noValueOnPlaceholder,
|
|
327
327
|
searchIcon: !1,
|
|
328
328
|
bordered: !1,
|
|
329
329
|
simple: !0
|
|
330
330
|
})
|
|
331
331
|
), !$(z) || !t.props.contentFit || t.props.trailingIcon)
|
|
332
|
-
return b("div", { class:
|
|
332
|
+
return b("div", { class: S(n, "content") }, z);
|
|
333
333
|
}, y = [], A = Ce();
|
|
334
334
|
$(A) || y.push(A), y.push(v());
|
|
335
335
|
const M = ne();
|
|
336
336
|
return $(M) || y.push(M), b("button", X.value, y);
|
|
337
337
|
};
|
|
338
|
-
return (r, _) => (
|
|
338
|
+
return (r, _) => (T(), j(pe));
|
|
339
339
|
}
|
|
340
340
|
}), it = /* @__PURE__ */ be({
|
|
341
341
|
..._e("ComboboxOption"),
|
|
@@ -344,7 +344,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
344
344
|
option: {}
|
|
345
345
|
},
|
|
346
346
|
setup(B) {
|
|
347
|
-
const t = B, c =
|
|
347
|
+
const t = B, c = Fe(), o = C(() => c.isOptionSelected(t.option._key)), k = (g) => {
|
|
348
348
|
var n, F, X, f, ne, Z;
|
|
349
349
|
const d = [];
|
|
350
350
|
!c.props.tree && c.props.multiple && c.props.checkbox && !t.option._noCheckbox && d.push(
|
|
@@ -366,14 +366,14 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
366
366
|
size: g.iconSize,
|
|
367
367
|
...((Z = (ne = c.props).getTagProps) == null ? void 0 : Z.call(ne, t.option)) ?? {}
|
|
368
368
|
})
|
|
369
|
-
) : t.option._icon && d.push(b(
|
|
369
|
+
) : t.option._icon && d.push(b(Ke, { icon: t.option._icon, size: c.getIconSize.value })) : d.push(m), $(d) ? null : d;
|
|
370
370
|
}, U = jt(), L = () => {
|
|
371
371
|
const g = c.props.tree ? void 0 : t.option._description, d = (qt(c.props.getMenuItemProps) ? c.props.getMenuItemProps(t.option) : c.props.getMenuItemProps) ?? {};
|
|
372
372
|
return b(
|
|
373
373
|
mo,
|
|
374
374
|
{
|
|
375
375
|
unExtendParent: !0,
|
|
376
|
-
class:
|
|
376
|
+
class: S(P, "option"),
|
|
377
377
|
unFocusable: !0,
|
|
378
378
|
staticStyle: c.props.tree,
|
|
379
379
|
description: g,
|
|
@@ -389,14 +389,14 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
389
389
|
...U
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
|
-
leading:
|
|
392
|
+
leading: k,
|
|
393
393
|
trailing: c.slots.optionTrailing,
|
|
394
394
|
title: c.slots.optionTitle,
|
|
395
395
|
description: c.slots.optionDescription
|
|
396
396
|
}
|
|
397
397
|
);
|
|
398
398
|
};
|
|
399
|
-
return (g, d) => (
|
|
399
|
+
return (g, d) => (T(), j(L));
|
|
400
400
|
}
|
|
401
401
|
}), Po = /* @__PURE__ */ be({
|
|
402
402
|
..._e("ComboboxLabel"),
|
|
@@ -405,8 +405,8 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
405
405
|
label: {}
|
|
406
406
|
},
|
|
407
407
|
setup(B) {
|
|
408
|
-
return (t, c) => (
|
|
409
|
-
class:
|
|
408
|
+
return (t, c) => (T(), ye("div", {
|
|
409
|
+
class: Ie(i(S)(i(P), "label"))
|
|
410
410
|
}, Kt(B.label), 3));
|
|
411
411
|
}
|
|
412
412
|
}), Io = /* @__PURE__ */ be({
|
|
@@ -502,17 +502,17 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
502
502
|
},
|
|
503
503
|
emits: ["update:modelValue", "update:expandedKeys", "keydownEnter", "keydownEscape", "update:search", "fetch", "search", "select", "update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
504
504
|
setup(B, { expose: t, emit: c }) {
|
|
505
|
-
const o = B,
|
|
505
|
+
const o = B, k = c, U = () => {
|
|
506
506
|
var e, l;
|
|
507
507
|
o.tree && (((e = o.filterOptions) == null ? void 0 : e.expandParent) === "collapse" ? X([]) : ((l = o.filterOptions) == null ? void 0 : l.expandParent) === "expand" && X(
|
|
508
508
|
z.value.filter((a) => a._hasChildren).map((a) => a._key)
|
|
509
509
|
));
|
|
510
510
|
}, L = at((e) => {
|
|
511
|
-
|
|
512
|
-
}, 500), g = Pe(o, "search",
|
|
511
|
+
k("search", e), U();
|
|
512
|
+
}, 500), g = Pe(o, "search", k, {
|
|
513
513
|
passive: o.search === void 0,
|
|
514
514
|
onChange: L
|
|
515
|
-
}), d = co(g, 500), m = Pe(o, "open",
|
|
515
|
+
}), d = co(g, 500), m = Pe(o, "open", k, {
|
|
516
516
|
defaultValue: o.defaultOpen,
|
|
517
517
|
passive: o.open === void 0,
|
|
518
518
|
onChange(e) {
|
|
@@ -521,7 +521,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
521
521
|
}), n = Pe(
|
|
522
522
|
o,
|
|
523
523
|
"modelValue",
|
|
524
|
-
|
|
524
|
+
k,
|
|
525
525
|
{
|
|
526
526
|
passive: o.modelValue === void 0,
|
|
527
527
|
onChange: () => {
|
|
@@ -532,7 +532,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
532
532
|
), F = Pe(
|
|
533
533
|
o,
|
|
534
534
|
"expandedKeys",
|
|
535
|
-
|
|
535
|
+
k,
|
|
536
536
|
{
|
|
537
537
|
passive: o.expandedKeys === void 0
|
|
538
538
|
}
|
|
@@ -542,7 +542,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
542
542
|
},
|
|
543
543
|
500,
|
|
544
544
|
{ edges: ["leading"] }
|
|
545
|
-
), f = ut(), ne = Ut(
|
|
545
|
+
), f = ut(), ne = Ut(k), Z = C(() => ({
|
|
546
546
|
...he(ne, ["update:modelValue", "update:search", "select"]),
|
|
547
547
|
...Jt(o, [
|
|
548
548
|
"placement",
|
|
@@ -619,7 +619,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
619
619
|
() => fo({
|
|
620
620
|
getValue: (e, l, a) => {
|
|
621
621
|
const s = r(e, "value");
|
|
622
|
-
return K(s) && _(e, l, a) ?
|
|
622
|
+
return K(s) && _(e, l, a) ? Re($e) : s;
|
|
623
623
|
},
|
|
624
624
|
getDisabled: (e) => r(e, "disabled"),
|
|
625
625
|
arr: o.options ?? [],
|
|
@@ -627,18 +627,18 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
627
627
|
if (!(l != null && l.length && !o.tree))
|
|
628
628
|
return r(e, "options");
|
|
629
629
|
},
|
|
630
|
-
getExtra: (e) => {
|
|
631
|
-
if (
|
|
632
|
-
let
|
|
633
|
-
return K(
|
|
634
|
-
_description: r(
|
|
635
|
-
_label:
|
|
636
|
-
_title: o.tree ?
|
|
637
|
-
_noCheckbox: r(
|
|
638
|
-
_single: r(
|
|
639
|
-
_clear: r(
|
|
640
|
-
_icon: r(
|
|
641
|
-
_id:
|
|
630
|
+
getExtra: (e, l) => {
|
|
631
|
+
if (l) {
|
|
632
|
+
let a = r(l, "label");
|
|
633
|
+
return K(a) || (a = String(a)), {
|
|
634
|
+
_description: r(l, "description"),
|
|
635
|
+
_label: a,
|
|
636
|
+
_title: o.tree ? a : void 0,
|
|
637
|
+
_noCheckbox: r(l, "noCheckbox"),
|
|
638
|
+
_single: r(l, "single"),
|
|
639
|
+
_clear: r(l, "clear"),
|
|
640
|
+
_icon: r(l, "icon"),
|
|
641
|
+
_id: S(P, e)
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
644
|
},
|
|
@@ -668,7 +668,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
668
668
|
u != null && u._key && !l.has(u._key) && (e.push(ae(u)), l.add(u._key));
|
|
669
669
|
};
|
|
670
670
|
if (d.value ? (v.value.forEach((u) => {
|
|
671
|
-
var h,
|
|
671
|
+
var h, E;
|
|
672
672
|
if (u._label && u._label.toLowerCase().includes(d.value.toLowerCase()) && !l.has(u._key)) {
|
|
673
673
|
if (a(u), u._hasChildren && y(u._key).forEach(a), (h = o.filterOptions) != null && h.strictNode)
|
|
674
674
|
u._parentKeys && u._parentKeys.forEach((p) => {
|
|
@@ -677,7 +677,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
677
677
|
a(oe);
|
|
678
678
|
}
|
|
679
679
|
});
|
|
680
|
-
else if ((
|
|
680
|
+
else if ((E = u._parentKeys) != null && E.length) {
|
|
681
681
|
const p = st(u._parentKeys);
|
|
682
682
|
if (!K(p)) {
|
|
683
683
|
if (!l.has(p)) {
|
|
@@ -692,47 +692,47 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
692
692
|
(u, V) => v.value.findIndex((h) => h._key === u._key) - v.value.findIndex((h) => h._key === V._key)
|
|
693
693
|
)) : e = ae(v.value), o.sortSelectedItems && !o.tree && !K(n.value)) {
|
|
694
694
|
let u = ae(e);
|
|
695
|
-
const V = u.filter((
|
|
696
|
-
const G = u.splice(
|
|
695
|
+
const V = u.filter((I) => re(I._key)), h = Symbol("root"), E = Symbol("rootGroup"), p = {}, oe = (I, N, w = 1) => {
|
|
696
|
+
const G = u.splice(I, w);
|
|
697
697
|
u.splice(N, 0, ...G);
|
|
698
|
-
}, le = (
|
|
699
|
-
const N = p[
|
|
700
|
-
return N != null && N.length ?
|
|
698
|
+
}, le = (I) => I ? u.findIndex((N) => N._key === I) : -1, Be = (I) => {
|
|
699
|
+
const N = p[I], w = le(N == null ? void 0 : N.key);
|
|
700
|
+
return N != null && N.length ? w + N.length + 1 : w + 1;
|
|
701
701
|
};
|
|
702
|
-
V.forEach((
|
|
702
|
+
V.forEach((I) => {
|
|
703
703
|
var N;
|
|
704
|
-
if ((N =
|
|
705
|
-
const
|
|
706
|
-
let G = le(
|
|
704
|
+
if ((N = I._parentKeys) != null && N.length) {
|
|
705
|
+
const w = st(I._parentKeys);
|
|
706
|
+
let G = le(w);
|
|
707
707
|
const et = Math.max(
|
|
708
708
|
Be(h),
|
|
709
|
-
Be(
|
|
709
|
+
Be(E)
|
|
710
710
|
);
|
|
711
711
|
if (G > et) {
|
|
712
|
-
const Oe = y(
|
|
712
|
+
const Oe = y(w).length;
|
|
713
713
|
oe(G, et, Oe + 1);
|
|
714
714
|
}
|
|
715
|
-
if (p[
|
|
716
|
-
key:
|
|
717
|
-
length: y(
|
|
718
|
-
}, G = le(
|
|
719
|
-
const Oe = le(
|
|
720
|
-
if (p[
|
|
715
|
+
if (p[E] = {
|
|
716
|
+
key: w,
|
|
717
|
+
length: y(w).length
|
|
718
|
+
}, G = le(w), w && G > -1) {
|
|
719
|
+
const Oe = le(I._key);
|
|
720
|
+
if (p[w] === void 0)
|
|
721
721
|
oe(Oe, G + 1);
|
|
722
722
|
else {
|
|
723
|
-
const Rt = Be(
|
|
723
|
+
const Rt = Be(w);
|
|
724
724
|
oe(Oe, Rt);
|
|
725
725
|
}
|
|
726
|
-
p[
|
|
726
|
+
p[w] = {
|
|
727
727
|
length: void 0,
|
|
728
|
-
key:
|
|
728
|
+
key: I._key
|
|
729
729
|
};
|
|
730
730
|
}
|
|
731
731
|
} else {
|
|
732
|
-
const
|
|
733
|
-
|
|
734
|
-
key:
|
|
735
|
-
length:
|
|
732
|
+
const w = le(I._key), G = Be(h);
|
|
733
|
+
w > G && oe(w, G), p[h] = {
|
|
734
|
+
key: I._key,
|
|
735
|
+
length: I._hasChildren ? y(I._key).length : void 0
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
738
|
u = ae(u);
|
|
@@ -741,11 +741,11 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
741
741
|
if (!o.tree) {
|
|
742
742
|
const u = ae(e);
|
|
743
743
|
for (let V = 0; V < u.length - 1; V++) {
|
|
744
|
-
const h = u[V],
|
|
745
|
-
!
|
|
746
|
-
_key:
|
|
744
|
+
const h = u[V], E = u[V + 1];
|
|
745
|
+
!E._divider && (E._hasChildren || (s = h._parentKeys) != null && s.length && !((x = E._parentKeys) != null && x.length)) && (u.splice(V + 1, 0, {
|
|
746
|
+
_key: Re($e),
|
|
747
747
|
_divider: !0,
|
|
748
|
-
_id:
|
|
748
|
+
_id: Re($e)
|
|
749
749
|
}), V++);
|
|
750
750
|
}
|
|
751
751
|
e = u;
|
|
@@ -753,11 +753,11 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
753
753
|
return e;
|
|
754
754
|
});
|
|
755
755
|
U();
|
|
756
|
-
const { getDisabled: ee, getStatus:
|
|
756
|
+
const { getDisabled: ee, getStatus: Ge, getSize: D } = Xt({
|
|
757
757
|
defaults: { size: "md" },
|
|
758
758
|
exports: ["getDisabled", "getSize", "getStatus"]
|
|
759
759
|
}), se = C(() => {
|
|
760
|
-
switch (
|
|
760
|
+
switch (D.value) {
|
|
761
761
|
case "sm":
|
|
762
762
|
return "xsm";
|
|
763
763
|
case "lg":
|
|
@@ -766,8 +766,8 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
766
766
|
default:
|
|
767
767
|
return "sm";
|
|
768
768
|
}
|
|
769
|
-
}),
|
|
770
|
-
switch (
|
|
769
|
+
}), we = C(() => {
|
|
770
|
+
switch (D.value) {
|
|
771
771
|
case "sm":
|
|
772
772
|
return "2xsm";
|
|
773
773
|
case "lg":
|
|
@@ -787,7 +787,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
787
787
|
sm: 32,
|
|
788
788
|
md: 50,
|
|
789
789
|
lg: 54
|
|
790
|
-
},
|
|
790
|
+
}, Te = C(() => ({
|
|
791
791
|
get count() {
|
|
792
792
|
return z.value.length;
|
|
793
793
|
},
|
|
@@ -801,21 +801,21 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
801
801
|
if (l._divider)
|
|
802
802
|
return 1;
|
|
803
803
|
if (l._label && l._hasChildren)
|
|
804
|
-
return 8 + (ge[
|
|
804
|
+
return 8 + (ge[D.value] ?? ge.md);
|
|
805
805
|
if (l._description)
|
|
806
|
-
return me[
|
|
806
|
+
return me[D.value] ?? me.md;
|
|
807
807
|
}
|
|
808
|
-
return rt[
|
|
808
|
+
return rt[D.value] ?? rt.md;
|
|
809
809
|
},
|
|
810
810
|
overscan: 5,
|
|
811
811
|
get gap() {
|
|
812
|
-
return ke[
|
|
812
|
+
return ke[D.value] ?? 0;
|
|
813
813
|
}
|
|
814
814
|
}));
|
|
815
815
|
let R, te;
|
|
816
816
|
if (o.virtual) {
|
|
817
817
|
const { virtualizer: e, ...l } = Yt(
|
|
818
|
-
|
|
818
|
+
Te
|
|
819
819
|
);
|
|
820
820
|
R = e, te = l;
|
|
821
821
|
}
|
|
@@ -830,7 +830,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
830
830
|
focused: Ct
|
|
831
831
|
} = Zt({
|
|
832
832
|
getDisabled: () => ee.value
|
|
833
|
-
}), ie = ve(),
|
|
833
|
+
}), ie = ve(), ze = () => {
|
|
834
834
|
var e;
|
|
835
835
|
if (m.value && ie.value && document.activeElement !== ((e = ie.value) == null ? void 0 : e.input)) {
|
|
836
836
|
ie.value.input.style.pointerEvents = "auto";
|
|
@@ -840,40 +840,40 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
840
840
|
}, 100);
|
|
841
841
|
ie.value.input.style.pointerEvents = "";
|
|
842
842
|
}
|
|
843
|
-
},
|
|
843
|
+
}, He = C(
|
|
844
844
|
() => !o.noValueOnPlaceholder && (Q(n.value) ? n.value.length === 1 && !K(n.value[0]) : !K(n.value))
|
|
845
845
|
), St = C(() => {
|
|
846
|
-
if (
|
|
846
|
+
if (He.value) {
|
|
847
847
|
if (o.multiple && Q(n.value))
|
|
848
848
|
return M(nt(n.value));
|
|
849
849
|
if (!o.multiple && !Q(n.value))
|
|
850
850
|
return M(n.value);
|
|
851
851
|
}
|
|
852
|
-
}), { CollectionSlot: kt, CollectionItem:
|
|
852
|
+
}), { CollectionSlot: kt, CollectionItem: Ue, itemMap: xt, getItems: qe } = eo({
|
|
853
853
|
isProvider: !0,
|
|
854
|
-
key:
|
|
855
|
-
}),
|
|
854
|
+
key: P
|
|
855
|
+
}), Je = () => n.value ? Array.isArray(n.value) ? n.value : [n.value] : [], O = ve(), Ve = (e) => {
|
|
856
856
|
O.value = e;
|
|
857
|
-
},
|
|
857
|
+
}, Qe = (e) => ({
|
|
858
858
|
"data-disabled": e._disabled ? "" : void 0,
|
|
859
859
|
"data-highlighted": O.value === e._key ? "" : void 0
|
|
860
|
-
}), fe = ve(),
|
|
860
|
+
}), fe = ve(), Xe = (e, l) => {
|
|
861
861
|
var a, s;
|
|
862
862
|
if (l && ((a = fe.value) != null && a.onSelect) && o.tree && ((s = fe.value) == null || s.onSelect(e, !re(e == null ? void 0 : e._key))), !(o.tree || !e || !e._key || e._disabled))
|
|
863
863
|
if (o.multiple)
|
|
864
864
|
if (e._clear)
|
|
865
|
-
n.value = [],
|
|
865
|
+
n.value = [], k("select", void 0, !1);
|
|
866
866
|
else if (e._single)
|
|
867
|
-
n.value = [e._key],
|
|
867
|
+
n.value = [e._key], k("select", e._key, !0, e);
|
|
868
868
|
else {
|
|
869
869
|
let x = Q(n.value) ? n.value : [];
|
|
870
870
|
const u = x.includes(e._key);
|
|
871
|
-
x.length === 1 && de(x[0]) && e._key !== x[0] && (x = []), u ? (n.value = x.filter((V) => V !== e._key),
|
|
871
|
+
x.length === 1 && de(x[0]) && e._key !== x[0] && (x = []), u ? (n.value = x.filter((V) => V !== e._key), k("select", e._key, !0, e)) : (n.value = [...x, e._key], k("select", e._key, !1, e));
|
|
872
872
|
}
|
|
873
|
-
else e._clear ? (n.value = void 0,
|
|
874
|
-
}, { getDir: Bt } = Co(), xe = Bt(),
|
|
873
|
+
else e._clear ? (n.value = void 0, k("select", void 0, !1)) : (n.value = e._key, k("select", e._key, !0, e));
|
|
874
|
+
}, { getDir: Bt } = Co(), xe = Bt(), Ye = {
|
|
875
875
|
props: o,
|
|
876
|
-
emit:
|
|
876
|
+
emit: k,
|
|
877
877
|
onKeyDown: (e) => {
|
|
878
878
|
var l, a, s, x, u, V;
|
|
879
879
|
if (o.headerSearch || e.stopPropagation(), e.key === "Backspace" && o.multiple && Q(n.value) && K(g.value))
|
|
@@ -881,19 +881,20 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
881
881
|
else if (!m.value)
|
|
882
882
|
(e.key === "ArrowDown" || e.key === "Enter") && (m.value = !0);
|
|
883
883
|
else if (m.value) {
|
|
884
|
-
const h =
|
|
885
|
-
if (e.key === "Escape")
|
|
884
|
+
const h = qe(o.tree);
|
|
885
|
+
if (e.key === "Escape")
|
|
886
|
+
e.preventDefault(), e.stopPropagation(), m.value = !1;
|
|
886
887
|
else if (e.key === "Tab" && !o.headerSearch) m.value = !1;
|
|
887
888
|
else if (["ArrowDown", "ArrowUp"].includes(e.key)) {
|
|
888
889
|
if (h.length) {
|
|
889
|
-
const
|
|
890
|
+
const E = h.findIndex(
|
|
890
891
|
(p) => O.value && p.value && p.value === O.value
|
|
891
892
|
);
|
|
892
893
|
if (e.key === "ArrowDown") {
|
|
893
|
-
const p = h[
|
|
894
|
+
const p = h[E + 1];
|
|
894
895
|
O.value = (p == null ? void 0 : p.value) ?? O.value ?? h[0].value;
|
|
895
896
|
} else if (e.key === "ArrowUp") {
|
|
896
|
-
const p = h[
|
|
897
|
+
const p = h[E - 1];
|
|
897
898
|
O.value = (p == null ? void 0 : p.value) ?? h[0].value;
|
|
898
899
|
}
|
|
899
900
|
(a = (l = h.find(
|
|
@@ -901,38 +902,38 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
901
902
|
)) == null ? void 0 : l.ref) == null || a.scrollIntoView();
|
|
902
903
|
}
|
|
903
904
|
} else if (["ArrowLeft", "ArrowRight"].includes(e.key)) {
|
|
904
|
-
const
|
|
905
|
-
h.length && fe.value && o.tree && O.value &&
|
|
906
|
-
} else e.key === "Enter" && (h.length === 1 && h[0].value && O.value !== h[0].value && (O.value = h[0].value), O.value &&
|
|
907
|
-
e.key === "Escape" &&
|
|
905
|
+
const E = A(O.value);
|
|
906
|
+
h.length && fe.value && o.tree && O.value && E && ((s = F.value) != null && s.includes(O.value) && (xe.value === "ltr" && e.key === "ArrowLeft" || xe.value === "rtl" && e.key === "ArrowRight") || !((x = F.value) != null && x.includes(O.value)) && (xe.value === "ltr" && e.key === "ArrowRight" || xe.value === "rtl" && e.key === "ArrowLeft")) && ((V = (u = fe.value).onExpandKey) == null || V.call(u, E));
|
|
907
|
+
} else e.key === "Enter" && (h.length === 1 && h[0].value && O.value !== h[0].value && (O.value = h[0].value), O.value && Xe(A(O.value), !0), k("keydownEnter", e, g.value));
|
|
908
|
+
e.key === "Escape" && k("keydownEscape", e);
|
|
908
909
|
}
|
|
909
910
|
},
|
|
910
911
|
searchModel: g,
|
|
911
912
|
openModel: m,
|
|
912
913
|
model: n,
|
|
913
914
|
slots: f,
|
|
914
|
-
valuePlaceholder:
|
|
915
|
+
valuePlaceholder: He,
|
|
915
916
|
placeholder: St,
|
|
916
917
|
getOptionByValue: A,
|
|
917
918
|
isOptionSelected: re,
|
|
918
919
|
getLabelByValue: M,
|
|
919
920
|
getSingleByValue: de,
|
|
920
921
|
inputRef: ie,
|
|
921
|
-
focusOnInput:
|
|
922
|
+
focusOnInput: ze,
|
|
922
923
|
getDisabled: ee,
|
|
923
|
-
getStatus:
|
|
924
|
-
getSize:
|
|
924
|
+
getStatus: Ge,
|
|
925
|
+
getSize: D,
|
|
925
926
|
getTagSize: se,
|
|
926
|
-
getIconSize:
|
|
927
|
+
getIconSize: we,
|
|
927
928
|
comboboxInputBinding: bt,
|
|
928
929
|
comboboxTriggerBinding: _t,
|
|
929
930
|
comboboxInputFocused: Ct,
|
|
930
|
-
selectOption:
|
|
931
|
+
selectOption: Xe,
|
|
931
932
|
itemMap: xt,
|
|
932
|
-
getItems:
|
|
933
|
+
getItems: qe,
|
|
933
934
|
highlightedOptionKey: O
|
|
934
935
|
};
|
|
935
|
-
xo(
|
|
936
|
+
xo(Ye), Ft(
|
|
936
937
|
() => [o.clearOnChangeMultiple, o.multiple],
|
|
937
938
|
() => {
|
|
938
939
|
o.clearOnChangeMultiple && (n.value = void 0);
|
|
@@ -944,7 +945,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
944
945
|
disabled: ee.value,
|
|
945
946
|
selectionBehavior: "replace",
|
|
946
947
|
...o.treeProps ?? {},
|
|
947
|
-
size:
|
|
948
|
+
size: D.value,
|
|
948
949
|
flattenData: !0,
|
|
949
950
|
outerVirtualScroll: !0,
|
|
950
951
|
selectable: !0,
|
|
@@ -954,15 +955,15 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
954
955
|
virtual: R,
|
|
955
956
|
syncCheckboxAndSelect: o.multiple,
|
|
956
957
|
data: z.value,
|
|
957
|
-
modelValue:
|
|
958
|
-
checkedKeys:
|
|
959
|
-
class:
|
|
958
|
+
modelValue: Je(),
|
|
959
|
+
checkedKeys: Je(),
|
|
960
|
+
class: S(P, "tree")
|
|
960
961
|
})), Pt = C(() => {
|
|
961
962
|
const e = o.scrollContainerProps ?? {};
|
|
962
963
|
return {
|
|
963
964
|
...e,
|
|
964
965
|
areaCls: [
|
|
965
|
-
|
|
966
|
+
S(P, "scroll_area"),
|
|
966
967
|
e == null ? void 0 : e.class,
|
|
967
968
|
e == null ? void 0 : e.areaCls
|
|
968
969
|
],
|
|
@@ -971,11 +972,11 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
971
972
|
style: (te == null ? void 0 : te.scrollWrapperStyles.value) ?? {}
|
|
972
973
|
}
|
|
973
974
|
};
|
|
974
|
-
}),
|
|
975
|
+
}), Ze = S(P, "popup"), It = dt(Ze, {
|
|
975
976
|
variants: {
|
|
976
|
-
size: J(vt,
|
|
977
|
+
size: J(vt, Ze)
|
|
977
978
|
}
|
|
978
|
-
}), wt = C(() =>
|
|
979
|
+
}), wt = C(() => Ne(o.popupWidth, !0)), Tt = C(() => Ne(o.popupHeight, !0)), zt = C(() => Ne(o.minWidth, !0)), Vt = () => {
|
|
979
980
|
var a, s;
|
|
980
981
|
const e = (s = f.header) == null ? void 0 : s.call(f, {
|
|
981
982
|
isEmpty: !((a = z.value) != null && a.length),
|
|
@@ -984,8 +985,8 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
984
985
|
if (l || o.headerSearch)
|
|
985
986
|
return b(
|
|
986
987
|
"div",
|
|
987
|
-
{ class:
|
|
988
|
-
l ? e : b(
|
|
988
|
+
{ class: S(P, "header") },
|
|
989
|
+
l ? e : b(We, o.headerSearchInputProps || {})
|
|
989
990
|
);
|
|
990
991
|
}, At = () => {
|
|
991
992
|
var a, s;
|
|
@@ -994,13 +995,13 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
994
995
|
search: g.value
|
|
995
996
|
});
|
|
996
997
|
if (!$(e))
|
|
997
|
-
return b("div", { class:
|
|
998
|
-
},
|
|
998
|
+
return b("div", { class: S(P, "footer") }, e);
|
|
999
|
+
}, Dt = () => {
|
|
999
1000
|
var a;
|
|
1000
1001
|
const e = {
|
|
1001
|
-
type:
|
|
1002
|
+
type: D.value === "sm" ? "simple" : "advance",
|
|
1002
1003
|
...he(o.emptyProps ?? {}, ["class"]),
|
|
1003
|
-
class: H(
|
|
1004
|
+
class: H(S(P, "empty"), o.emptyCls)
|
|
1004
1005
|
}, l = (a = f.empty) == null ? void 0 : a.call(f, e);
|
|
1005
1006
|
return $(l) ? b(ko, e, {
|
|
1006
1007
|
title: f.emptyTitle,
|
|
@@ -1008,13 +1009,13 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
1008
1009
|
actions: f.emptyActions,
|
|
1009
1010
|
image: f.emptyImage
|
|
1010
1011
|
}) : l;
|
|
1011
|
-
},
|
|
1012
|
+
}, Et = () => {
|
|
1012
1013
|
var a;
|
|
1013
1014
|
const e = (a = f.loading) == null ? void 0 : a.call(f, {});
|
|
1014
1015
|
return $(e) ? new Array(z.value.length ? 2 : o.loadingRowCount).fill(1).map(
|
|
1015
1016
|
() => b(bo, {
|
|
1016
|
-
size:
|
|
1017
|
-
class: H(
|
|
1017
|
+
size: D.value,
|
|
1018
|
+
class: H(S(P, "skeleton"), o.skeletonCls),
|
|
1018
1019
|
...he(o.skeletonProps ?? {}, ["class"])
|
|
1019
1020
|
})
|
|
1020
1021
|
) : e;
|
|
@@ -1024,7 +1025,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
1024
1025
|
const x = e._single;
|
|
1025
1026
|
s ? n.value = [] : x ? n.value = [e._key] : n.value = a;
|
|
1026
1027
|
} else s || !l ? n.value = void 0 : n.value = e._key;
|
|
1027
|
-
|
|
1028
|
+
k(
|
|
1028
1029
|
"select",
|
|
1029
1030
|
e._key,
|
|
1030
1031
|
l,
|
|
@@ -1033,16 +1034,16 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
1033
1034
|
}, Mt = (e) => {
|
|
1034
1035
|
e.key === "ArrowDown" && !m.value ? m.value = !0 : e.key === "Tab" && m.value && (m.value = !1);
|
|
1035
1036
|
};
|
|
1036
|
-
return o.disableOutsidePointerEvents && to(m), t(
|
|
1037
|
+
return o.disableOutsidePointerEvents && to(m), t(Ye), (e, l) => (T(), j(i(ao), ue({
|
|
1037
1038
|
open: i(m),
|
|
1038
1039
|
"onUpdate:open": l[2] || (l[2] = (a) => tt(m) ? m.value = a : null)
|
|
1039
1040
|
}, Z.value, {
|
|
1040
1041
|
containerProps: {
|
|
1041
1042
|
...B.containerProps ?? {},
|
|
1042
|
-
onClick:
|
|
1043
|
+
onClick: ze
|
|
1043
1044
|
},
|
|
1044
1045
|
noPadding: !0,
|
|
1045
|
-
size: i(
|
|
1046
|
+
size: i(D),
|
|
1046
1047
|
containerStyle: {
|
|
1047
1048
|
pointerEvents: "auto",
|
|
1048
1049
|
display: i(m) ? void 0 : "none",
|
|
@@ -1051,7 +1052,7 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
1051
1052
|
"--ptc-combobox-popup-height": Tt.value,
|
|
1052
1053
|
"--ptc-combobox-trigger-min-w": zt.value
|
|
1053
1054
|
},
|
|
1054
|
-
containerCls: i(H)(i(It)({ size: i(
|
|
1055
|
+
containerCls: i(H)(i(It)({ size: i(D) }), B.popupCls),
|
|
1055
1056
|
onKeydown: Mt
|
|
1056
1057
|
}), {
|
|
1057
1058
|
default: W(() => [
|
|
@@ -1064,32 +1065,32 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
1064
1065
|
ref: Se
|
|
1065
1066
|
}, Pt.value), {
|
|
1066
1067
|
default: W(() => [
|
|
1067
|
-
z.value.length || B.loading ? (
|
|
1068
|
+
z.value.length || B.loading ? (T(), j(i(kt), { key: 0 }, {
|
|
1068
1069
|
default: W(() => [
|
|
1069
1070
|
ot("div", {
|
|
1070
|
-
class:
|
|
1071
|
+
class: Ie(i(H)(i(S)(i(P), "options"), B.optionsCls)),
|
|
1071
1072
|
style: Wt(B.virtual ? ht.value : {}),
|
|
1072
|
-
onPointerleave: l[1] || (l[1] = (a) =>
|
|
1073
|
+
onPointerleave: l[1] || (l[1] = (a) => Ve(void 0))
|
|
1073
1074
|
}, [
|
|
1074
|
-
B.tree ? (
|
|
1075
|
+
B.tree ? (T(), j(i(vo), ue({
|
|
1075
1076
|
key: 0,
|
|
1076
1077
|
ref_key: "treeRef",
|
|
1077
1078
|
ref: fe
|
|
1078
1079
|
}, Ot.value, {
|
|
1079
1080
|
expandedKeys: i(F),
|
|
1080
1081
|
"onUpdate:expandedKeys": l[0] || (l[0] = (a) => tt(F) ? F.value = a : null),
|
|
1081
|
-
onExpand:
|
|
1082
|
+
onExpand: ze,
|
|
1082
1083
|
onSelect: Lt
|
|
1083
1084
|
}), {
|
|
1084
1085
|
default: W(({ items: a }) => [
|
|
1085
|
-
(
|
|
1086
|
+
(T(!0), ye(Me, null, je(a, (s) => (T(), j(i(Ue), {
|
|
1086
1087
|
key: s._key,
|
|
1087
1088
|
value: s._key,
|
|
1088
1089
|
id: s._id
|
|
1089
1090
|
}, {
|
|
1090
1091
|
default: W(() => [
|
|
1091
|
-
Y(i(yo), ue({ node: s }, { ref_for: !0 },
|
|
1092
|
-
onPointermove: (x) =>
|
|
1092
|
+
Y(i(yo), ue({ node: s }, { ref_for: !0 }, Qe(s), {
|
|
1093
|
+
onPointermove: (x) => Ve(s._key),
|
|
1093
1094
|
id: s._id
|
|
1094
1095
|
}), {
|
|
1095
1096
|
default: W(() => [
|
|
@@ -1104,41 +1105,41 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
1104
1105
|
}, 1032, ["value", "id"]))), 128))
|
|
1105
1106
|
]),
|
|
1106
1107
|
_: 1
|
|
1107
|
-
}, 16, ["expandedKeys"])) : (
|
|
1108
|
+
}, 16, ["expandedKeys"])) : (T(!0), ye(Me, { key: 1 }, je(yt.value, (a) => (T(), ye(Me, {
|
|
1108
1109
|
key: a._key
|
|
1109
1110
|
}, [
|
|
1110
|
-
a._divider ? (
|
|
1111
|
+
a._divider ? (T(), j(_o, { key: 0 })) : a._label && a._hasChildren ? (T(), j(Po, {
|
|
1111
1112
|
key: 1,
|
|
1112
1113
|
label: a._label
|
|
1113
|
-
}, null, 8, ["label"])) : a._hasChildren ?
|
|
1114
|
+
}, null, 8, ["label"])) : a._hasChildren ? Le("", !0) : (T(), j(i(Ue), {
|
|
1114
1115
|
key: 2,
|
|
1115
1116
|
value: a._key,
|
|
1116
1117
|
id: a._id
|
|
1117
1118
|
}, {
|
|
1118
1119
|
default: W(() => [
|
|
1119
|
-
Y(it, ue({ option: a }, { ref_for: !0 },
|
|
1120
|
-
onPointermove: (s) =>
|
|
1120
|
+
Y(it, ue({ option: a }, { ref_for: !0 }, Qe(a), {
|
|
1121
|
+
onPointermove: (s) => Ve(a._key),
|
|
1121
1122
|
id: a._id
|
|
1122
1123
|
}), null, 16, ["option", "onPointermove", "id"])
|
|
1123
1124
|
]),
|
|
1124
1125
|
_: 2
|
|
1125
1126
|
}, 1032, ["value", "id"]))
|
|
1126
1127
|
], 64))), 128)),
|
|
1127
|
-
B.loading ? (
|
|
1128
|
+
B.loading ? (T(), j(Et, { key: 2 })) : Le("", !0)
|
|
1128
1129
|
], 38)
|
|
1129
1130
|
]),
|
|
1130
1131
|
_: 1
|
|
1131
|
-
})) : (
|
|
1132
|
-
B.lazyLoading ? (
|
|
1132
|
+
})) : (T(), j(Dt, { key: 1 })),
|
|
1133
|
+
B.lazyLoading ? (T(), ye("div", {
|
|
1133
1134
|
key: 2,
|
|
1134
|
-
class:
|
|
1135
|
+
class: Ie(i(S)(i(P), "lazy_loading"))
|
|
1135
1136
|
}, [
|
|
1136
1137
|
ot("div", {
|
|
1137
|
-
class:
|
|
1138
|
+
class: Ie(i(S)(i(P), "lazy_loading_trigger")),
|
|
1138
1139
|
ref_key: "target",
|
|
1139
1140
|
ref: ce
|
|
1140
1141
|
}, null, 2)
|
|
1141
|
-
], 2)) :
|
|
1142
|
+
], 2)) : Le("", !0)
|
|
1142
1143
|
]),
|
|
1143
1144
|
_: 1
|
|
1144
1145
|
}, 16),
|
|
@@ -1148,16 +1149,16 @@ const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placehold
|
|
|
1148
1149
|
}, 16, ["open", "containerProps", "size", "containerStyle", "containerCls"]));
|
|
1149
1150
|
}
|
|
1150
1151
|
}), cl = ct(Io, pt("Combobox")), pl = ct(
|
|
1151
|
-
|
|
1152
|
+
We,
|
|
1152
1153
|
pt("ComboboxInput")
|
|
1153
1154
|
);
|
|
1154
1155
|
export {
|
|
1155
1156
|
Io as Combobox,
|
|
1156
|
-
|
|
1157
|
+
We as ComboboxInput,
|
|
1157
1158
|
pl as ComboboxInputPlugin,
|
|
1158
1159
|
cl as ComboboxPlugin,
|
|
1159
1160
|
vt as ComboboxSizes,
|
|
1160
1161
|
Bo as ComboboxStatuses,
|
|
1161
|
-
|
|
1162
|
+
Fe as injectComboboxContext,
|
|
1162
1163
|
xo as provideComboboxContext
|
|
1163
1164
|
};
|