@pantograph/vue 0.23.7 → 0.23.9

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.
Files changed (177) hide show
  1. package/dist/ActionButton/index.js +1 -1
  2. package/dist/ActionButton/index.umd.cjs +1 -1
  3. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-7ImUgPOW.js → ActionButton.vue_vue_type_script_setup_true_lang-aFnjoRJy.js} +1 -1
  4. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-D8DXU0Vb.js → ActionButton.vue_vue_type_script_setup_true_lang-xZ5KwcNz.js} +1 -1
  5. package/dist/Alert/index.js +1 -1
  6. package/dist/Alert/index.umd.cjs +1 -1
  7. package/dist/{Alert.vue_vue_type_style_index_0_lang-DtOx68kv.js → Alert.vue_vue_type_style_index_0_lang-CJaF3EK7.js} +1 -1
  8. package/dist/{Alert.vue_vue_type_style_index_0_lang-CqrPX_Iw.js → Alert.vue_vue_type_style_index_0_lang-Cai14H0F.js} +3 -3
  9. package/dist/Avatar/index.js +1 -1
  10. package/dist/Avatar/index.umd.cjs +1 -1
  11. package/dist/{Avatar.vue_vue_type_style_index_0_lang-Dj-jkrYp.js → Avatar.vue_vue_type_style_index_0_lang-CyJGai1W.js} +3 -3
  12. package/dist/Avatar.vue_vue_type_style_index_0_lang-qdpWeyHy.js +1 -0
  13. package/dist/AvatarGroup/index.js +1 -1
  14. package/dist/AvatarGroup/index.umd.cjs +1 -1
  15. package/dist/Badge/index.js +1 -1
  16. package/dist/Badge/index.umd.cjs +1 -1
  17. package/dist/{Badge.vue_vue_type_script_setup_true_lang-ChmvYjjQ.js → Badge.vue_vue_type_script_setup_true_lang-BIli_mJS.js} +1 -1
  18. package/dist/{Badge.vue_vue_type_script_setup_true_lang-PioR6WEK.js → Badge.vue_vue_type_script_setup_true_lang-BnR8U44-.js} +2 -2
  19. package/dist/Base/BaseBadge/BaseBadge.model.d.ts +1 -0
  20. package/dist/BaseBadge.model-Bz8P4acF.js +1 -0
  21. package/dist/{BaseBadge.model-BIyWEBkY.js → BaseBadge.model-D4KY5lCI.js} +7 -6
  22. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-CA4e9gEN.js → BaseBadge.vue_vue_type_style_index_0_lang-B3h_XH3M.js} +1 -1
  23. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-Bhdde0lY.js → BaseBadge.vue_vue_type_style_index_0_lang-BoT1B-0F.js} +1 -1
  24. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-Cb5t50gO.js → BaseButton.vue_vue_type_style_index_0_lang-iumZ4VQ0.js} +3 -3
  25. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-CeHbEfy3.js → BaseButton.vue_vue_type_style_index_0_lang-wkKzmA9i.js} +1 -1
  26. package/dist/Button/index.js +1 -1
  27. package/dist/Button/index.umd.cjs +1 -1
  28. package/dist/{Button.vue_vue_type_script_setup_true_lang-vJ7lfVy_.js → Button.vue_vue_type_script_setup_true_lang-BzgGLJqR.js} +1 -1
  29. package/dist/{Button.vue_vue_type_script_setup_true_lang-ChrdvyD2.js → Button.vue_vue_type_script_setup_true_lang-DIWm889s.js} +1 -1
  30. package/dist/ButtonGroup/index.js +1 -1
  31. package/dist/ButtonGroup/index.umd.cjs +1 -1
  32. package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-CfOMjVlH.js → ButtonGroup.vue_vue_type_script_setup_true_lang-Bx7dH5Fx.js} +1 -1
  33. package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-BF_Oo7Zk.js → ButtonGroup.vue_vue_type_script_setup_true_lang-D_6kzAX6.js} +1 -1
  34. package/dist/Checkbox/index.js +1 -1
  35. package/dist/Checkbox/index.umd.cjs +1 -1
  36. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-Dh2oLmt5.js → Checkbox.vue_vue_type_style_index_0_lang-Bz-fwglK.js} +1 -1
  37. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-Dhn_dWz7.js → Checkbox.vue_vue_type_style_index_0_lang-aDK0Pvm-.js} +1 -1
  38. package/dist/CheckboxGroup/index.js +1 -1
  39. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  40. package/dist/Chip/index.js +2 -2
  41. package/dist/Chip/index.umd.cjs +1 -1
  42. package/dist/{Chip.vue_vue_type_style_index_0_lang-CEXKUJCj.js → Chip.vue_vue_type_style_index_0_lang-q4obFRun.js} +1 -1
  43. package/dist/{Chip.vue_vue_type_style_index_0_lang-Cr1_L0Lz.js → Chip.vue_vue_type_style_index_0_lang-qncbXz02.js} +2 -2
  44. package/dist/ChipGroup/index.js +1 -1
  45. package/dist/ChipGroup/index.umd.cjs +1 -1
  46. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-j6Reg1S9.js → ChipGroup.vue_vue_type_style_index_0_lang-BFKwogR0.js} +3 -3
  47. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-B945U8rL.js → ChipGroup.vue_vue_type_style_index_0_lang-pAbdjmHE.js} +1 -1
  48. package/dist/ColorPicker/index.js +1 -1
  49. package/dist/ColorPicker/index.umd.cjs +1 -1
  50. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-CcqGZq-b.js → ColorPicker.vue_vue_type_style_index_0_lang-B-zZbVyX.js} +2 -2
  51. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Cdxk3fOe.js → ColorPicker.vue_vue_type_style_index_0_lang-DXVw6HPr.js} +1 -1
  52. package/dist/ColorSwatch/index.js +1 -1
  53. package/dist/ColorSwatch/index.umd.cjs +1 -1
  54. package/dist/{ColorSwatch-DkW6RvE7.js → ColorSwatch-BSqFFWRL.js} +1 -1
  55. package/dist/{ColorSwatch-CH_N4TfV.js → ColorSwatch-BrVtGQ8o.js} +1 -1
  56. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-r7jNc78g.js → ColorSwatch.vue_vue_type_style_index_0_lang-BtD8iSwd.js} +2 -2
  57. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-WU4Q0TGg.js → ColorSwatch.vue_vue_type_style_index_0_lang-C3iqxh5D.js} +1 -1
  58. package/dist/ColorSwatchGroup/index.js +1 -1
  59. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  60. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-DP1dT4Eq.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-7nyn9UPr.js} +4 -4
  61. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-iWwvyQwp.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-DxmTzGB6.js} +1 -1
  62. package/dist/ColorTrigger/index.js +1 -1
  63. package/dist/ColorTrigger/index.umd.cjs +1 -1
  64. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-IwIexR_Y.js → ColorTrigger.vue_vue_type_style_index_0_lang-BBSYObz2.js} +1 -1
  65. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-D7M2EQfc.js → ColorTrigger.vue_vue_type_style_index_0_lang-Ca3yrvsq.js} +3 -3
  66. package/dist/Combobox/Combobox.d.ts +1 -0
  67. package/dist/Combobox/index.js +1 -1
  68. package/dist/Combobox/index.umd.cjs +1 -1
  69. package/dist/Combobox/types.d.ts +1 -0
  70. package/dist/Combobox.vue_vue_type_style_index_0_lang-DTko3H3F.js +1 -0
  71. package/dist/Combobox.vue_vue_type_style_index_0_lang-yow5XVz6.js +914 -0
  72. package/dist/DataTable/index.js +1 -1
  73. package/dist/DataTable/index.umd.cjs +1 -1
  74. package/dist/{DataTable.vue_vue_type_style_index_0_lang-DeDH_Kvd.js → DataTable.vue_vue_type_style_index_0_lang-8Bp4vLtf.js} +1 -1
  75. package/dist/{DataTable.vue_vue_type_style_index_0_lang-PXmil6LX.js → DataTable.vue_vue_type_style_index_0_lang-C-IX8JWd.js} +10 -10
  76. package/dist/DropZone/index.js +1 -1
  77. package/dist/DropZone/index.umd.cjs +1 -1
  78. package/dist/{DropZone.vue_vue_type_style_index_0_lang-WmRKdmXK.js → DropZone.vue_vue_type_style_index_0_lang-DFSkOKVN.js} +1 -1
  79. package/dist/{DropZone.vue_vue_type_style_index_0_lang-CrBpJeKe.js → DropZone.vue_vue_type_style_index_0_lang-DgUuAIs0.js} +1 -1
  80. package/dist/FloatButton/index.js +1 -1
  81. package/dist/FloatButton/index.umd.cjs +1 -1
  82. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-DFHM_Tuo.js → FloatButton.vue_vue_type_script_setup_true_lang-BVcfOVE2.js} +1 -1
  83. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-DpFewhq3.js → FloatButton.vue_vue_type_script_setup_true_lang-BgcqTeKf.js} +1 -1
  84. package/dist/Form/index.js +1 -1
  85. package/dist/Form/index.umd.cjs +1 -1
  86. package/dist/{FormItem.vue_vue_type_style_index_0_lang-CTRszGlB.js → FormItem.vue_vue_type_style_index_0_lang-Bo3o8_6v.js} +3 -3
  87. package/dist/{FormItem.vue_vue_type_style_index_0_lang-DbMENNc4.js → FormItem.vue_vue_type_style_index_0_lang-BpgRONei.js} +1 -1
  88. package/dist/GOPicker/index.js +1 -1
  89. package/dist/GOPicker/index.umd.cjs +1 -1
  90. package/dist/GraphicalObject/index.js +1 -1
  91. package/dist/GraphicalObject/index.umd.cjs +1 -1
  92. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-C4i8C-dP.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DLtfk2Qg.js} +3 -3
  93. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CmkmatJc.js → GraphicalObject.vue_vue_type_script_setup_true_lang-PyVOSOe3.js} +1 -1
  94. package/dist/GraphicalObjectGroup/index.js +1 -1
  95. package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
  96. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CU2CrD-j.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-B2WcOZnc.js} +1 -1
  97. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CB9Q1b9r.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-C3Vv_V38.js} +2 -2
  98. package/dist/IconButton/index.js +1 -1
  99. package/dist/IconButton/index.umd.cjs +1 -1
  100. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-Bq7Ed6Jl.js → IconButton.vue_vue_type_script_setup_true_lang-mS3fxFE_.js} +1 -1
  101. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DJiG3_YJ.js → IconButton.vue_vue_type_script_setup_true_lang-yCbmuM4V.js} +1 -1
  102. package/dist/Image/index.js +1 -1
  103. package/dist/Image/index.umd.cjs +1 -1
  104. package/dist/{Image.vue_vue_type_style_index_0_lang-CgczUp3D.js → Image.vue_vue_type_style_index_0_lang-CKNFsSO1.js} +1 -1
  105. package/dist/{Image.vue_vue_type_style_index_0_lang-Cmn0ijum.js → Image.vue_vue_type_style_index_0_lang-CdeM6eg4.js} +1 -1
  106. package/dist/IndentLevel/index.js +1 -1
  107. package/dist/IndentLevel/index.umd.cjs +1 -1
  108. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-ZmHvmKOS.js → IndentLevel.vue_vue_type_style_index_0_lang-C5o331Hd.js} +2 -2
  109. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-u9PJeCGr.js → IndentLevel.vue_vue_type_style_index_0_lang-_NIazt15.js} +1 -1
  110. package/dist/Indicator/index.js +1 -1
  111. package/dist/Indicator/index.umd.cjs +1 -1
  112. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-CX3cY74r.js → Indicator.vue_vue_type_script_setup_true_lang-CgN-sjj_.js} +1 -1
  113. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-CmKraTSB.js → Indicator.vue_vue_type_script_setup_true_lang-CmsMJSXL.js} +2 -2
  114. package/dist/Input/index.js +1 -1
  115. package/dist/Input/index.umd.cjs +1 -1
  116. package/dist/{Input.vue_vue_type_style_index_0_lang-yHgbuD_4.js → Input.vue_vue_type_style_index_0_lang-CWW5TIRh.js} +1 -1
  117. package/dist/{Input.vue_vue_type_style_index_0_lang-Ccow0nkI.js → Input.vue_vue_type_style_index_0_lang-oEQu3uIk.js} +2 -2
  118. package/dist/Label/index.js +1 -1
  119. package/dist/Label/index.umd.cjs +1 -1
  120. package/dist/Menu/index.js +1 -1
  121. package/dist/Menu/index.umd.cjs +1 -1
  122. package/dist/MenuItem/index.js +1 -1
  123. package/dist/MenuItem/index.umd.cjs +1 -1
  124. package/dist/{MenuItem.vue_vue_type_style_index_0_lang-pnm3rqME.js → MenuItem.vue_vue_type_style_index_0_lang-B43jOe4U.js} +1 -1
  125. package/dist/{MenuItem.vue_vue_type_style_index_0_lang-C8ofBbNv.js → MenuItem.vue_vue_type_style_index_0_lang-DPbtkHtq.js} +3 -3
  126. package/dist/Popover/index.js +1 -1
  127. package/dist/Popover/index.umd.cjs +1 -1
  128. package/dist/{Popover.vue_vue_type_style_index_0_lang-BGRXQmj3.js → Popover.vue_vue_type_style_index_0_lang-Yli31kJD.js} +1 -1
  129. package/dist/{Popover.vue_vue_type_style_index_0_lang-CZ_AaHDG.js → Popover.vue_vue_type_style_index_0_lang-bZzTBnW7.js} +1 -1
  130. package/dist/Progress/Progress.model.d.ts +12 -0
  131. package/dist/Progress/ProgressCirclePath.d.ts +18 -0
  132. package/dist/Progress/types.d.ts +49 -0
  133. package/dist/RadioGroup/index.js +1 -1
  134. package/dist/RadioGroup/index.umd.cjs +1 -1
  135. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-03XUb7NC.js → RadioGroup.vue_vue_type_script_setup_true_lang-B4itnrhx.js} +1 -1
  136. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-1clw8kVI.js → RadioGroup.vue_vue_type_script_setup_true_lang-D6pRyJ0t.js} +1 -1
  137. package/dist/Segmented/index.js +1 -1
  138. package/dist/Segmented/index.umd.cjs +1 -1
  139. package/dist/{Segmented.vue_vue_type_style_index_0_lang-906ZRFCK.js → Segmented.vue_vue_type_style_index_0_lang-DEo3Y2uv.js} +1 -1
  140. package/dist/{Segmented.vue_vue_type_style_index_0_lang-B4aQCMXZ.js → Segmented.vue_vue_type_style_index_0_lang-m8iNyqtw.js} +1 -1
  141. package/dist/Select/index.js +1 -1
  142. package/dist/Select/index.umd.cjs +1 -1
  143. package/dist/{Select.vue_vue_type_style_index_0_lang-DX17VhqH.js → Select.vue_vue_type_style_index_0_lang-BG8RpKu4.js} +1 -1
  144. package/dist/{Select.vue_vue_type_style_index_0_lang-W3dk0Ug0.js → Select.vue_vue_type_style_index_0_lang-CVO-Nn-q.js} +5 -5
  145. package/dist/SubMenu/index.js +1 -1
  146. package/dist/SubMenu/index.umd.cjs +1 -1
  147. package/dist/Switch/index.js +1 -1
  148. package/dist/Switch/index.umd.cjs +1 -1
  149. package/dist/{Switch.vue_vue_type_style_index_0_lang-BM-h82G0.js → Switch.vue_vue_type_style_index_0_lang-D8QPqKz3.js} +1 -1
  150. package/dist/{Switch.vue_vue_type_style_index_0_lang-DHT9utPp.js → Switch.vue_vue_type_style_index_0_lang-aODjQm2H.js} +1 -1
  151. package/dist/{THead.vue_vue_type_style_index_0_lang-CHicticP.js → THead.vue_vue_type_style_index_0_lang-h3oNHUrT.js} +1 -1
  152. package/dist/{THead.vue_vue_type_style_index_0_lang-B6U8HrWi.js → THead.vue_vue_type_style_index_0_lang-oUsIia-h.js} +1 -1
  153. package/dist/Table/index.js +1 -1
  154. package/dist/Table/index.umd.cjs +1 -1
  155. package/dist/Textarea/index.js +1 -1
  156. package/dist/Textarea/index.umd.cjs +1 -1
  157. package/dist/{Textarea.vue_vue_type_style_index_0_lang-DiCqcDyH.js → Textarea.vue_vue_type_style_index_0_lang-DtO8cFFA.js} +1 -1
  158. package/dist/{Textarea.vue_vue_type_style_index_0_lang-UyndJFBo.js → Textarea.vue_vue_type_style_index_0_lang-kXmJB4fr.js} +2 -2
  159. package/dist/Tree/index.js +1 -1
  160. package/dist/Tree/index.umd.cjs +1 -1
  161. package/dist/{Tree.vue_vue_type_style_index_0_lang-B30b4oK2.js → Tree.vue_vue_type_style_index_0_lang-Bg3M96gS.js} +1 -1
  162. package/dist/{Tree.vue_vue_type_style_index_0_lang-DBDkYw9s.js → Tree.vue_vue_type_style_index_0_lang-D-ct8_9s.js} +5 -5
  163. package/dist/{getEmojiList-CybQOfR5.js → getEmojiList-COxfCFY9.js} +1 -1
  164. package/dist/{getEmojiList-BF8C_Cn6.js → getEmojiList-w6O2liR2.js} +9 -9
  165. package/dist/index.js +37 -37
  166. package/dist/index.umd.cjs +1 -1
  167. package/dist/{uniq-BeFmBpYC.js → uniq-Cxafs-eV.js} +1 -1
  168. package/dist/{uniq-CezX8yQS.js → uniq-DGkyiyS4.js} +1 -1
  169. package/dist/{useInputDataStates-Bzs7T9xb.js → useInputDataStates-0nK-AuOK.js} +1 -1
  170. package/dist/{useInputDataStates-C1T7BL_V.js → useInputDataStates-D1X-Whwt.js} +1 -1
  171. package/dist/utils/index.js +1 -1
  172. package/dist/utils/index.umd.cjs +1 -1
  173. package/package.json +4 -4
  174. package/dist/Avatar.vue_vue_type_style_index_0_lang-B0jPWS1n.js +0 -1
  175. package/dist/BaseBadge.model-imnRO6DY.js +0 -1
  176. package/dist/Combobox.vue_vue_type_style_index_0_lang-Cnl79xIk.js +0 -1
  177. package/dist/Combobox.vue_vue_type_style_index_0_lang-DIXSNQlS.js +0 -924
@@ -0,0 +1,914 @@
1
+ import { computed as f, unref as D, defineComponent as te, createBlock as Ce, openBlock as ae, mergeProps as Me, withCtx as me, createElementBlock as we, createVNode as Le, h as s, normalizeClass as Ge, renderSlot as Ee, ref as ye, watch as je, useSlots as Ue, useAttrs as He, createSlots as qe, renderList as Ye, normalizeProps as Je, guardReactiveProps as Qe } from "vue";
2
+ import { createContext as Ke, ComboboxInput as Xe, ComboboxAnchor as Ze, injectComboboxRootContext as et, useFilter as tt, ComboboxPortal as ot, ComboboxContent as rt, useEmitAsProps as nt, ComboboxRoot as at } from "reka-ui";
3
+ import { g as lt, h as ee, o as st, f as Pe, j as it } from "./FormItem.vue_vue_type_style_index_0_lang-BpgRONei.js";
4
+ import { a as Ve, g as pt } from "./options-D4et5euX.js";
5
+ import { getBemBlock as ut, getBemElement as V, generateVariantClassList as Y } from "@pantograph/utils";
6
+ import { a as fe, i as H, b as _e, u as ct, d as Te } from "./index-jwkhq8oW.js";
7
+ import { cva as xe } from "class-variance-authority";
8
+ import { a as dt, l as gt, o as ze } from "./omit-BuBwx_M2.js";
9
+ import { _ as mt } from "./Empty.vue_vue_type_style_index_0_lang-jfObDGf0.js";
10
+ import { _ as ft } from "./Skeleton.vue_vue_type_style_index_0_lang-Xi8CteLp.js";
11
+ import { _ as Ie } from "./Divider.vue_vue_type_style_index_0_lang-B6fQsp1Y.js";
12
+ import { b as F, f as vt, a as ht, i as bt, d as yt } from "./element-BfQuKSll.js";
13
+ import { u as Ct, U as _t } from "./useInputDataStates-0nK-AuOK.js";
14
+ import { u as Vt } from "./useLazyLoading-Zo-PEp2E.js";
15
+ import { g as xt, b as Bt } from "./Popover.vue_vue_type_style_index_0_lang-Yli31kJD.js";
16
+ import { _ as St } from "./ScrollContainer.vue_vue_type_style_index_0_lang-DfMU1mTu.js";
17
+ import { _ as Ot } from "./Tree.vue_vue_type_style_index_0_lang-D-ct8_9s.js";
18
+ import { u as ke } from "./uniq-Cxafs-eV.js";
19
+ import { i as J } from "./isEmpty-wdqPTIXx.js";
20
+ import { _ as Pt } from "./Chip.vue_vue_type_style_index_0_lang-qncbXz02.js";
21
+ import { _ as Tt } from "./ChipGroup.vue_vue_type_style_index_0_lang-BFKwogR0.js";
22
+ import { _ as Be } from "./Icon.vue_vue_type_style_index_0_lang-CbLL-Ngi.js";
23
+ import { d as zt, _ as Re } from "./Avatar.vue_vue_type_style_index_0_lang-CyJGai1W.js";
24
+ import { _ as It } from "./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-C3Vv_V38.js";
25
+ import { _ as $e } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-DLtfk2Qg.js";
26
+ import { _ as kt } from "./Input.vue_vue_type_style_index_0_lang-oEQu3uIk.js";
27
+ import { whenever as Dt, useVModel as Mt } from "@vueuse/core";
28
+ import { last as wt } from "lodash-es";
29
+ import { a as Lt } from "./MenuItem.vue_vue_type_style_index_0_lang-DPbtkHtq.js";
30
+ import "@iconify/vue";
31
+ import { _ as Et } from "./Checkbox.vue_vue_type_style_index_0_lang-aDK0Pvm-.js";
32
+ import "@pantograph/tokens";
33
+ const [Se, Kt] = Ke("Combobox"), [Rt, $t] = Ke("_Combobox"), K = ut("combobox");
34
+ var At = 1 / 0;
35
+ function Nt(c) {
36
+ var o = c == null ? 0 : c.length;
37
+ return o ? dt(c, At) : [];
38
+ }
39
+ const ge = (c) => lt(c) || fe(c);
40
+ function Ft({
41
+ getValue: c,
42
+ arr: o,
43
+ getChildren: t
44
+ }) {
45
+ const e = [], d = (u, x) => {
46
+ u.forEach((B) => {
47
+ const h = c(B);
48
+ if (ge(h)) {
49
+ e.push({ ...B, _parentKeys: x, _key: h });
50
+ const C = t(B);
51
+ C != null && C.length && d(C, [...x ?? [], h]);
52
+ }
53
+ });
54
+ };
55
+ return d(o), e;
56
+ }
57
+ const Wt = ({
58
+ getData: c,
59
+ getModel: o,
60
+ getValue: t,
61
+ getChildren: e
62
+ }) => {
63
+ const d = f(
64
+ () => Ft({ arr: D(c()), getChildren: e, getValue: t })
65
+ ), u = (n, g = !1) => {
66
+ const l = t(n);
67
+ return d.value.filter((i) => {
68
+ var _;
69
+ if (g) {
70
+ const O = gt(i._parentKeys ?? []);
71
+ return O && O === l;
72
+ }
73
+ return (_ = i._parentKeys) == null ? void 0 : _.includes(l);
74
+ });
75
+ }, x = (n) => {
76
+ if (n && H(n))
77
+ return ee(n);
78
+ const g = D(o());
79
+ return g && H(g) ? ee(g) : [];
80
+ }, B = (n, g) => {
81
+ const l = x(g), i = u(n);
82
+ if (i != null && i.length)
83
+ return i.some((_) => {
84
+ var p;
85
+ const O = _._key;
86
+ return O && ((p = l == null ? void 0 : l.includes) == null ? void 0 : p.call(l, O));
87
+ });
88
+ }, h = (n, g) => {
89
+ const l = x(g), i = u(n);
90
+ if (i != null && i.length)
91
+ return i.every((_) => {
92
+ var p;
93
+ const O = _._key;
94
+ return O && ((p = l == null ? void 0 : l.includes) == null ? void 0 : p.call(l, O));
95
+ });
96
+ }, C = (n, g) => {
97
+ const l = x(g), i = u(n), _ = t(n);
98
+ return i != null && i.length ? h(n) ? !0 : B(n) ? "intermediate" : !1 : l.includes(_);
99
+ }, A = (n) => ge(n) ? d.value.find((g) => g._key === n) : void 0;
100
+ return {
101
+ flattenData: d,
102
+ getNodeChildren: u,
103
+ isSomeChildrenSelected: B,
104
+ isAllChildrenSelected: h,
105
+ isSelected: C,
106
+ selectValues: (n, g) => {
107
+ if (n.length) {
108
+ let l = x();
109
+ const i = n.filter(ge);
110
+ g ? l.push(...i) : l = l.filter((S) => !i.includes(S));
111
+ const _ = l.map(A).filter((S) => S && S._parentKeys), p = ke(Nt(_.map((S) => S._parentKeys))).filter(ge).map(A).filter(Boolean), P = [], L = [];
112
+ return p.forEach((S) => {
113
+ const N = t(S);
114
+ h(S, l) ? P.push(N) : L.push(N);
115
+ }), l.push(...P), ke(l.filter((S) => !L.includes(S)));
116
+ }
117
+ }
118
+ };
119
+ }, Ae = ["sm", "md", "lg"], Gt = ["error", "warning", "success"], jt = { key: 1 }, Ne = /* @__PURE__ */ te({
120
+ __name: "ComboboxInput",
121
+ setup(c) {
122
+ const o = Se();
123
+ Dt(
124
+ () => o.open.value && o.headerInputElement.value,
125
+ () => {
126
+ o.headerInputElement.value && o.open.value && o.focusOnInput();
127
+ }
128
+ );
129
+ const t = f(() => !J(o.modelValue.value)), e = f(() => t.value ? H(o.modelValue.value) ? o.getLabelByValue(wt(o.modelValue.value)) : o.getLabelByValue(o.modelValue.value) : o.props.placeholder), d = (B) => {
130
+ if (B.key === "Backspace" && o.props.multiple && H(o.modelValue.value) && J(o.searchModel.value) && (o.setModelValue(o.modelValue.value.slice(0, -1)), J(o.modelValue.value))) {
131
+ const h = setTimeout(() => {
132
+ o.focusOnInput(), clearTimeout(h);
133
+ }, 2);
134
+ }
135
+ }, u = V(K, "input"), x = xe(u, {
136
+ variants: {
137
+ valuePlaceholder: Y("value-placeholder", u)
138
+ }
139
+ });
140
+ return (B, h) => (ae(), Ce(D(Xe), Me(D(o).comboboxInputBinding.value, {
141
+ disabled: D(o).getDisabled.value,
142
+ placeholder: e.value,
143
+ "as-child": "",
144
+ modelValue: D(o).searchModel.value,
145
+ "onUpdate:modelValue": h[0] || (h[0] = (C) => D(o).searchModel.value = C),
146
+ onKeydown: d,
147
+ class: D(x)({
148
+ valuePlaceholder: t.value
149
+ }),
150
+ displayValue: () => ""
151
+ }), {
152
+ default: me(() => [
153
+ D(o).props.headerSearch ? (ae(), Ce(kt, {
154
+ key: 0,
155
+ ref: D(o).headerInputElement,
156
+ placeholder: D(o).props.placeholder
157
+ }, {
158
+ leading: me(({ iconSize: C }) => [
159
+ Le(Be, {
160
+ size: C,
161
+ icon: "tabler:search",
162
+ flipOnDir: "rtl"
163
+ }, null, 8, ["size"])
164
+ ]),
165
+ _: 1
166
+ }, 8, ["placeholder"])) : (ae(), we("input", jt))
167
+ ]),
168
+ _: 1
169
+ }, 16, ["disabled", "placeholder", "modelValue", "class"]));
170
+ }
171
+ }), Ut = /* @__PURE__ */ te({
172
+ name: Ve("ComboboxTrigger"),
173
+ props: {},
174
+ setup(c, {
175
+ slots: o,
176
+ attrs: t
177
+ }) {
178
+ const e = Se(), d = ({
179
+ value: p
180
+ }, P) => {
181
+ if (P.stopPropagation(), p && H(e.modelValue.value) && !e.getDisabled.value) {
182
+ const L = e.modelValue.value.filter((S) => S !== p);
183
+ e.setModelValue(L);
184
+ }
185
+ }, u = V(K, "trigger"), x = xe(u, {
186
+ variants: {
187
+ size: Y(Ae, u),
188
+ status: Y(Gt, u),
189
+ bordered: Y("bordered", u),
190
+ multiple: Y("multiple", u),
191
+ contentFit: Y("content-fit", u),
192
+ wrapped: Y("wrapped", u),
193
+ filled: Y("filled", u)
194
+ }
195
+ }), B = f(() => {
196
+ switch (e.getSize.value) {
197
+ case "sm":
198
+ return "2xsm";
199
+ case "md":
200
+ default:
201
+ return "xsm";
202
+ }
203
+ }), h = f(() => {
204
+ if (!e.props.multiple && fe(e.modelValue.value) && !J(e.modelValue.value))
205
+ return e.getOptionByValue(e.modelValue.value);
206
+ }), C = (p = h.value) => {
207
+ if (e.props.selectedItemIconAsTrailingIcon && _e(p) && "icon" in p)
208
+ return p.icon;
209
+ }, A = f(() => C()), W = f(() => {
210
+ if (!e.props.noTrailing)
211
+ return e.props.trailingIcon;
212
+ }), n = f(() => ({
213
+ modelValue: ee(e.modelValue.value),
214
+ open: ee(e.open.value)
215
+ })), g = () => {
216
+ e.onOpenChange(!e.open.value);
217
+ }, l = (p) => {
218
+ console.log("event ===>", p), e.props.headerSearch;
219
+ }, i = f(() => ({
220
+ disabled: e.getDisabled.value,
221
+ tabindex: e.getDisabled.value || !e.props.headerSearch ? -1 : 0,
222
+ reference: e.props.reference,
223
+ "data-disabled": e.getDisabled.value ? "" : void 0,
224
+ "aria-disabled": e.getDisabled.value ?? void 0,
225
+ "aria-label": "Show popup",
226
+ "aria-haspopup": "listbox",
227
+ "aria-expanded": e.open.value,
228
+ "aria-controls": e.contentId,
229
+ "data-state": e.open.value ? "open" : "closed",
230
+ class: [x({
231
+ size: e.getSize.value,
232
+ status: e.getStatus.value === "success" && J(e.modelValue.value) ? void 0 : e.getStatus.value,
233
+ bordered: e.props.bordered,
234
+ multiple: e.props.multiple,
235
+ contentFit: e.props.contentFit,
236
+ wrapped: e.props.wrapped,
237
+ filled: !J(e.modelValue.value)
238
+ }), e.props.triggerCls],
239
+ ...t
240
+ })), _ = (p, P = B.value) => s(Be, {
241
+ icon: p,
242
+ size: P
243
+ }), O = () => {
244
+ var L;
245
+ let p;
246
+ const P = (L = o.triggerTrailing) == null ? void 0 : L.call(o, n.value);
247
+ if (F(P) ? W.value && (p = _(W.value)) : p = P, p)
248
+ return s("div", {
249
+ class: [V(u, "trailing"), e.props.triggerTrailingCls]
250
+ }, p);
251
+ };
252
+ return () => {
253
+ var S;
254
+ const p = (S = o.trigger) == null ? void 0 : S.call(o, n.value), L = (() => {
255
+ if (F(p)) return !1;
256
+ const N = vt(p) ?? null, k = N.length === 1 ? N[0] : N;
257
+ return k ? ht(k) && !bt(k) : !0;
258
+ })();
259
+ return s(Ze, {
260
+ ...i.value,
261
+ ...e.comboboxTriggerBinding.value,
262
+ asChild: L,
263
+ as: L ? "template" : "button",
264
+ key: String(L),
265
+ onKeyUp: l,
266
+ onClick: g
267
+ }, () => {
268
+ if (!F(p))
269
+ return p;
270
+ const N = (T) => {
271
+ var G, R;
272
+ const M = e.getOptionByValue(T);
273
+ return s(Re, {
274
+ ...M ? ((R = (G = e.props).getTagProps) == null ? void 0 : R.call(G, M)) ?? {} : {},
275
+ size: e.getTagSize.value
276
+ });
277
+ }, k = (T) => {
278
+ var G, R;
279
+ const M = e.getOptionByValue(T);
280
+ return s($e, {
281
+ ...M ? ((R = (G = e.props).getTagProps) == null ? void 0 : R.call(G, M)) ?? {} : {},
282
+ size: e.getTagSize.value
283
+ });
284
+ }, le = () => {
285
+ if (!e.props.multiple && !H(e.modelValue.value) && e.modelValue.value && (e.props.tagRenderMode && ["avatar", "go"].includes(e.props.tagRenderMode) || A.value || e.props.leadingIcon)) {
286
+ let T;
287
+ if (e.props.tagRenderMode === "avatar" ? T = N(e.modelValue.value) : e.props.tagRenderMode === "go" ? T = k(e.modelValue.value) : A.value ? T = _(A.value) : e.props.leadingIcon && (T = _(e.props.leadingIcon)), !F(T))
288
+ return s("div", {
289
+ class: [V(u, "leading"), e.props.triggerLeadingCls]
290
+ }, T);
291
+ }
292
+ }, ve = () => {
293
+ const T = [], M = [V(u, "content"), e.props.triggerContentCls, J(e.modelValue.value) ? e.props.triggerContentPlaceholderCls : e.props.triggerContentValueCls], R = (() => {
294
+ if (e.props.multiple && H(e.modelValue.value)) {
295
+ if (e.props.tagRenderMode === "avatar")
296
+ return s(zt, {
297
+ maxCount: e.props.maxCount,
298
+ size: e.getTagSize.value,
299
+ closeable: !e.getDisabled.value,
300
+ noPopover: !0,
301
+ noWrap: !e.props.wrapped,
302
+ class: M
303
+ }, () => e.modelValue.value.map(N));
304
+ if (e.props.tagRenderMode === "go")
305
+ return s(It, {
306
+ maxCount: e.props.maxCount,
307
+ size: e.getTagSize.value,
308
+ closeable: !e.getDisabled.value,
309
+ noPopover: !0,
310
+ noWrap: !e.props.wrapped,
311
+ class: M
312
+ }, () => e.modelValue.value.map(k));
313
+ if (e.props.tagRenderMode === "chip")
314
+ return s(Tt, {
315
+ maxCount: e.props.maxCount,
316
+ size: e.getTagSize.value,
317
+ color: "primary",
318
+ closeable: !e.getDisabled.value,
319
+ noPopover: !0,
320
+ noWrap: !e.props.wrapped,
321
+ class: M,
322
+ onClose: d
323
+ }, () => e.modelValue.value.map((Q) => {
324
+ var ue, ce;
325
+ const pe = () => e.getLabelByValue(Q), he = ({
326
+ size: de
327
+ }) => {
328
+ const oe = C(e.getOptionByValue(Q)) ?? e.props.leadingIcon;
329
+ return oe ? _(oe, de) : null;
330
+ }, X = e.getOptionByValue(Q);
331
+ return s(Pt, {
332
+ ...X ? ((ce = (ue = e.props).getTagProps) == null ? void 0 : ce.call(ue, X)) ?? {} : {},
333
+ value: Q,
334
+ class: [V(u, "tag"), e.props.tagCls],
335
+ closeIconCls: V(u, "tag__close")
336
+ }, {
337
+ text: pe,
338
+ leading: he
339
+ });
340
+ }));
341
+ }
342
+ })();
343
+ return R ? T.push(R) : e.props.headerSearch && T.push(s("div", {
344
+ class: [...M, V(u, "content--empty")]
345
+ })), e.props.headerSearch || T.push(s(Ne)), T;
346
+ }, q = [], se = le();
347
+ F(se) || q.push(se), q.push(ve());
348
+ const ie = O();
349
+ return F(ie) || q.push(ie), q;
350
+ });
351
+ };
352
+ }
353
+ }), Ht = /* @__PURE__ */ te({
354
+ __name: "ComboboxLabel",
355
+ setup(c) {
356
+ return (o, t) => (ae(), we("div", {
357
+ class: Ge(D(V)(D(K), "label"))
358
+ }, [
359
+ Ee(o.$slots, "default")
360
+ ], 2));
361
+ }
362
+ }), De = /* @__PURE__ */ te({
363
+ name: Ve("SelectOption"),
364
+ props: {
365
+ option: {
366
+ type: [Object, String],
367
+ required: !0
368
+ }
369
+ },
370
+ slots: Object,
371
+ setup(c, {
372
+ slots: o
373
+ }) {
374
+ const t = Se(), e = f(() => {
375
+ switch (t.getSize.value) {
376
+ case "sm":
377
+ return "2xsm";
378
+ case "lg":
379
+ return "sm";
380
+ case "md":
381
+ default:
382
+ return "xsm";
383
+ }
384
+ }), d = f(() => t.getOptionValue(c.option)), u = f(() => t.getOptionLabel(c.option)), x = f(() => t.getOptionIcon(c.option)), B = f(() => t.props.tree ? void 0 : t.getOptionDescription(c.option)), h = f(() => t.getOptionDisabled(c.option)), C = f(() => Array.isArray(t.modelValue.value) ? !!(d.value && t.modelValue.value.includes(d.value)) : t.modelValue.value === d.value), A = V(K, "option"), W = () => {
385
+ if (!(t.props.tree || !d.value || h.value))
386
+ if (t.props.multiple) {
387
+ const n = H(t.modelValue.value) ? t.modelValue.value : [];
388
+ n.includes(d.value) ? t.setModelValue(n.filter((l) => l !== d.value)) : t.setModelValue([...n, d.value]);
389
+ } else
390
+ t.setModelValue(d.value);
391
+ };
392
+ if (!c.option) throw new Error("option is required");
393
+ return () => {
394
+ const n = (l) => {
395
+ var _, O, p, P;
396
+ const i = [];
397
+ return !t.props.tree && t.props.multiple && t.props.checkbox && i.push(s(Et, {
398
+ modelValue: C.value,
399
+ size: l.checkboxSize,
400
+ disabled: h.value
401
+ })), t.props.tagRenderMode === "avatar" ? i.push(s(Re, {
402
+ ...((O = (_ = t.props).getTagProps) == null ? void 0 : O.call(_, c.option)) ?? {},
403
+ size: t.getTagSize.value
404
+ })) : t.props.tagRenderMode === "go" ? i.push(s($e, {
405
+ ...((P = (p = t.props).getTagProps) == null ? void 0 : P.call(p, c.option)) ?? {},
406
+ size: t.getTagSize.value
407
+ })) : x.value && i.push(s(Be, {
408
+ icon: x.value,
409
+ size: e.value
410
+ })), F(i) ? null : i;
411
+ };
412
+ return (() => {
413
+ const l = !!B.value;
414
+ return s(Lt, {
415
+ class: A,
416
+ description: B.value,
417
+ title: u.value,
418
+ key: d.value,
419
+ selected: C.value,
420
+ unFocusable: !0,
421
+ leadingCenter: !l,
422
+ size: t.getSize.value,
423
+ disabled: h.value,
424
+ onClick: W
425
+ }, {
426
+ leading: n,
427
+ trailing: () => {
428
+ var i;
429
+ return (i = o.trailing) == null ? void 0 : i.call(o, {
430
+ option: c.option
431
+ });
432
+ }
433
+ });
434
+ })();
435
+ };
436
+ }
437
+ }), qt = /* @__PURE__ */ te({
438
+ name: Ve("ComboboxWrapper"),
439
+ setup(c, {
440
+ slots: o
441
+ }) {
442
+ const t = Rt(), e = et(), d = ye();
443
+ Vt({
444
+ target: d
445
+ });
446
+ const u = ye(), x = xt({
447
+ triggerRef: u,
448
+ props: t.props
449
+ }), {
450
+ getFlipOnDir: B,
451
+ getDir: h
452
+ } = ct(), C = B("reversePlacementOnDir"), A = h(), W = Bt({
453
+ props: t.props,
454
+ flip: C,
455
+ emitsAsProps: t.emitsAsProps,
456
+ _dir: A,
457
+ controlAutoFocus: !1,
458
+ extraPropNames: ["bodyLock", "position"]
459
+ }), n = ({
460
+ key: r,
461
+ getterKey: z,
462
+ defaultValue: b,
463
+ noReturnOption: m
464
+ }) => (y) => {
465
+ const w = Te(b) ? b(y) : b;
466
+ if (_e(y)) {
467
+ const $ = y[r] ?? w, j = z && t.props[z];
468
+ if (j) {
469
+ if (fe(j))
470
+ return y[j] ?? $;
471
+ if (Te(j)) return j(y) ?? $;
472
+ }
473
+ return $;
474
+ }
475
+ return fe(y) && !m ? y ?? w : w;
476
+ }, g = n({
477
+ getterKey: "getValue",
478
+ key: "value"
479
+ }), l = n({
480
+ getterKey: "getLabel",
481
+ key: "label",
482
+ defaultValue: g
483
+ }), i = n({
484
+ getterKey: "getIcon",
485
+ key: "icon",
486
+ noReturnOption: !0
487
+ }), _ = n({
488
+ getterKey: "getDescription",
489
+ key: "description",
490
+ noReturnOption: !0
491
+ }), O = n({
492
+ getterKey: "getDisabled",
493
+ key: "disabled",
494
+ defaultValue: !1,
495
+ noReturnOption: !0
496
+ }), p = n({
497
+ getterKey: "getGroupLabel",
498
+ key: "label",
499
+ noReturnOption: !0
500
+ }), P = n({
501
+ getterKey: "getGroupOptions",
502
+ key: "options",
503
+ noReturnOption: !0
504
+ }), L = (r) => {
505
+ var z;
506
+ if ((z = t.props.options) != null && z.length)
507
+ for (const b of t.props.options) {
508
+ if (g(b) === r) return b;
509
+ const m = P(b);
510
+ if (m != null && m.length) {
511
+ for (const y of m)
512
+ if (g(y) === r) return y;
513
+ }
514
+ }
515
+ return r;
516
+ }, S = (r) => {
517
+ const z = L(r);
518
+ return z ? l(z) ?? r : r;
519
+ }, {
520
+ contains: N
521
+ } = tt({
522
+ sensitivity: "base"
523
+ }), k = f(() => {
524
+ const r = (z) => z == null ? void 0 : z.map((b) => {
525
+ const m = l(b), y = g(b), w = O(b), $ = p(b), j = !t.searchModel.value || m && N(m, t.searchModel.value), re = P(b), ne = !t.props.tree || y;
526
+ if (re && ne) {
527
+ const a = r(re);
528
+ if (a != null && a.length || j)
529
+ return {
530
+ groupLabel: $,
531
+ title: m,
532
+ key: y,
533
+ disabled: w,
534
+ children: a,
535
+ _option: b
536
+ };
537
+ }
538
+ return j && ne ? {
539
+ title: m,
540
+ key: y,
541
+ disabled: w,
542
+ _option: b
543
+ } : null;
544
+ }).filter(Boolean);
545
+ if (t.props.options)
546
+ return r(t.props.options);
547
+ }), {
548
+ getDisabled: le,
549
+ getStatus: ve,
550
+ getSize: q
551
+ } = Ct({
552
+ getDisabled: () => t.props.disabled,
553
+ getSize: () => t.props.size,
554
+ getStatus: () => t.props.status
555
+ }), se = f(() => {
556
+ switch (q.value) {
557
+ case "sm":
558
+ return "xsm";
559
+ case "lg":
560
+ return "md";
561
+ case "md":
562
+ default:
563
+ return "sm";
564
+ }
565
+ }), {
566
+ inputBindings: ie,
567
+ rootBindings: T
568
+ } = _t({
569
+ getDisabled: () => le.value
570
+ }), M = ye(), G = () => {
571
+ var r, z, b, m, y, w, $;
572
+ e.open.value && e.inputElement.value && (t.props.headerSearch && ((r = M.value) != null && r.input) ? document.activeElement !== ((z = M.value) == null ? void 0 : z.input) && ((y = (m = (b = M.value) == null ? void 0 : b.input) == null ? void 0 : m.focus) == null || y.call(m)) : document.activeElement !== e.inputElement.value && (($ = (w = e.inputElement.value) == null ? void 0 : w.focus) == null || $.call(w)));
573
+ }, R = (r) => {
574
+ e.modelValue.value = r, t.emit("update:modelValue", r);
575
+ };
576
+ Kt({
577
+ ...t,
578
+ getOptionValue: g,
579
+ getOptionLabel: l,
580
+ getOptionDescription: _,
581
+ getOptionDisabled: O,
582
+ getOptionIcon: i,
583
+ getOptionByValue: L,
584
+ getLabelByValue: S,
585
+ focusOnInput: G,
586
+ setModelValue: R,
587
+ headerInputElement: M,
588
+ getDisabled: le,
589
+ getStatus: ve,
590
+ getSize: q,
591
+ getTagSize: se,
592
+ comboboxInputBinding: ie,
593
+ comboboxTriggerBinding: T,
594
+ ...e,
595
+ modelValue: e.modelValue
596
+ }), je(() => [t.props.clearOnChangeMultiple, t.props.multiple], () => {
597
+ t.props.clearOnChangeMultiple && R(void 0);
598
+ });
599
+ const Q = f(() => {
600
+ const r = t.props.scrollContainerProps ?? {};
601
+ return {
602
+ ...r,
603
+ areaCls: [V(K, "scroll_area"), r == null ? void 0 : r.class, r == null ? void 0 : r.areaCls]
604
+ };
605
+ }), pe = V(K, "popup"), he = xe(pe, {
606
+ variants: {
607
+ size: Y(Ae, pe)
608
+ }
609
+ }), X = (r) => {
610
+ if (Number(r) > 0)
611
+ return `${r}px`;
612
+ if (typeof r == "string")
613
+ return r;
614
+ }, ue = f(() => X(t.props.popupWidth)), ce = f(() => X(t.props.popupHeight)), de = f(() => X(t.props.minWidth)), oe = f(() => ({
615
+ type: q.value === "sm" ? "simple" : "advance",
616
+ ...ze(t.props.emptyProps ?? {}, "class")
617
+ })), Fe = f(() => ze(t.props.skeletonProps ?? {}, "class")), {
618
+ selectValues: We
619
+ } = Wt({
620
+ getValue: (r) => r == null ? void 0 : r.key,
621
+ getChildren: (r) => r == null ? void 0 : r.children,
622
+ getModel: () => ee(e.modelValue.value),
623
+ getData: () => ee(k.value ?? [])
624
+ });
625
+ return () => {
626
+ var re, ne;
627
+ const r = (a) => {
628
+ var v;
629
+ if ((v = k.value) != null && v.length && a > 0)
630
+ return !!k.value[a - 1];
631
+ }, z = (a) => {
632
+ var v, E;
633
+ if ((v = k.value) != null && v.length && a > 0) {
634
+ const I = k.value[a - 1];
635
+ return !!(I && ((E = P(I)) != null && E.length));
636
+ }
637
+ }, b = (a) => s(De, {
638
+ option: a
639
+ }, {
640
+ trailing: () => {
641
+ var v;
642
+ return (v = o.optionTrailing) == null ? void 0 : v.call(o, {
643
+ option: a
644
+ });
645
+ }
646
+ }), m = [];
647
+ let y;
648
+ if (t.props.tree) {
649
+ const v = H(e.modelValue.value) ? e.modelValue.value : e.modelValue.value ? [e.modelValue.value] : [];
650
+ y = s(Ot, {
651
+ data: k.value ?? [],
652
+ selectable: !0,
653
+ checkbox: t.props.multiple && t.props.checkbox,
654
+ multiple: t.props.multiple,
655
+ defaultExpandAll: !0,
656
+ syncCheckboxAndSelect: t.props.multiple,
657
+ showLine: !0,
658
+ modelValue: v,
659
+ checkedKeys: v,
660
+ onExpand: G,
661
+ onSelect: (E, I, U) => {
662
+ if (t.props.multiple) {
663
+ const Z = H(U) ? U : [U];
664
+ R(We(Z, I));
665
+ } else
666
+ R(U);
667
+ },
668
+ class: "w-full"
669
+ }, {
670
+ title: (E) => b(E._option)
671
+ }), m.push(y);
672
+ } else
673
+ (k.value ?? []).forEach((a, v) => {
674
+ var E;
675
+ (E = a.children) != null && E.length ? (r(v) && m.push(s(Ie)), a.groupLabel && m.push(s(Ht, {
676
+ class: t.props.labelCls
677
+ }, () => a.groupLabel)), a.children.forEach((I) => {
678
+ m.push(b(I._option));
679
+ })) : z(v) ? m.push(s(Ie)) : m.push(b(a._option));
680
+ });
681
+ const w = yt(y ? [y] : m, De).filter((a) => {
682
+ var v;
683
+ return _e(a == null ? void 0 : a.props) && ((v = a == null ? void 0 : a.props) == null ? void 0 : v.option);
684
+ }), $ = !!(t.props.tree && ((re = k.value) != null && re.length) || w != null && w.length), j = () => {
685
+ var v, E;
686
+ const a = [];
687
+ if ($ || t.props.loading) {
688
+ const I = [];
689
+ if ($ && I.push(...m), t.props.loading) {
690
+ const U = (v = o.loading) == null ? void 0 : v.call(o, {});
691
+ if (!F(U)) I.push(U);
692
+ else {
693
+ const Z = new Array($ ? 2 : t.props.loadingRowCount).fill(1);
694
+ I.push(...Z.map(() => s(ft, {
695
+ size: q.value,
696
+ class: [V(K, "skeleton"), t.props.skeletonCls],
697
+ ...Fe.value
698
+ })));
699
+ }
700
+ }
701
+ a.push(s("div", {
702
+ class: [V(K, "options"), t.props.optionsCls]
703
+ }, I));
704
+ } else if (!$) {
705
+ const I = (E = o.empty) == null ? void 0 : E.call(o, oe.value);
706
+ F(I) ? a.push(s(mt, {
707
+ class: [V(K, "empty"), t.props.emptyCls],
708
+ ...oe.value
709
+ }, {
710
+ title: o.emptyTitle,
711
+ description: o.emptyDescription,
712
+ actions: o.emptyActions,
713
+ image: o.emptyImage
714
+ })) : a.push(I);
715
+ }
716
+ return t.props.lazyLoading && a.push(s("div", {
717
+ class: V(K, "lazy_loading")
718
+ }, s("div", {
719
+ class: V(K, "lazy_loading_trigger"),
720
+ ref: d
721
+ }))), a;
722
+ };
723
+ return [s(Ut, {
724
+ ref: u,
725
+ ...t.attrs,
726
+ style: {
727
+ ...((ne = t.attrs) == null ? void 0 : ne.style) ?? {},
728
+ "--ptc-combobox-trigger-min-w": de.value
729
+ }
730
+ }, {
731
+ trigger: o.trigger,
732
+ triggerTrailing: o.triggerTrailing
733
+ }), s(ot, x.value, () => s(rt, {
734
+ ...W.value,
735
+ vShow: e.open.value,
736
+ class: [he(t.props), t.props.popupCls],
737
+ style: {
738
+ "--ptc-combobox-popup-width": t.props.samePopupWidth ? void 0 : ue.value,
739
+ "--ptc-combobox-popup-height": ce.value,
740
+ "--ptc-combobox-trigger-min-w": de.value
741
+ },
742
+ onClick: G
743
+ }, () => {
744
+ var U, Z, Oe;
745
+ const a = [], v = (U = o.header) == null ? void 0 : U.call(o, {}), E = !F(v);
746
+ if (t.props.headerSearch || E) {
747
+ const be = [];
748
+ E && be.push(v), t.props.headerSearch && be.push(s(Ne)), a.push(s("div", {
749
+ class: V(K, "header")
750
+ }, be));
751
+ }
752
+ a.push(s(St, Q.value, j));
753
+ const I = (Oe = o.footer) == null ? void 0 : Oe.call(o, {
754
+ isEmpty: !((Z = k.value) != null && Z.length),
755
+ search: t.searchModel.value
756
+ });
757
+ return F(I) || a.push(s("div", {
758
+ class: V(K, "footer")
759
+ }, I)), a;
760
+ }))];
761
+ };
762
+ }
763
+ }), To = /* @__PURE__ */ te({
764
+ ...pt("Combobox"),
765
+ __name: "Combobox",
766
+ props: {
767
+ size: { default: "md" },
768
+ status: {},
769
+ multiple: { type: Boolean, default: void 0 },
770
+ checkbox: { type: Boolean, default: !0 },
771
+ tagRenderMode: { default: "chip" },
772
+ getTagProps: {},
773
+ tree: { type: Boolean },
774
+ contentFit: { type: Boolean },
775
+ wrapped: { type: Boolean },
776
+ noTrailing: { type: Boolean },
777
+ leadingIcon: {},
778
+ trailingIcon: { default: "tabler:chevron-down" },
779
+ selectedItemIconAsTrailingIcon: { type: Boolean, default: !0 },
780
+ maxCount: {},
781
+ to: {},
782
+ placeholder: {},
783
+ indicatorIcon: { default: "tabler:check" },
784
+ options: {},
785
+ getDisabled: {},
786
+ getLabel: {},
787
+ getDescription: {},
788
+ getValue: {},
789
+ getGroupOptions: {},
790
+ getGroupLabel: {},
791
+ getIcon: {},
792
+ placement: { default: "bottom-start" },
793
+ reversePlacementOnDir: {},
794
+ loading: { type: Boolean },
795
+ skeletonProps: {},
796
+ loadingRowCount: { default: 10 },
797
+ lazyLoading: { type: Boolean },
798
+ bordered: { type: Boolean, default: !0 },
799
+ clearOnChangeMultiple: { type: Boolean, default: !0 },
800
+ triggerCls: {},
801
+ triggerLeadingCls: {},
802
+ triggerContentCls: {},
803
+ triggerContentPlaceholderCls: {},
804
+ triggerContentValueCls: {},
805
+ triggerTrailingCls: {},
806
+ itemLeadingCls: {},
807
+ optionCls: {},
808
+ tagCls: {},
809
+ popupCls: {},
810
+ labelCls: {},
811
+ optionsCls: {},
812
+ optionTextCls: {},
813
+ optionContentCls: {},
814
+ emptyCls: {},
815
+ skeletonCls: {},
816
+ scrollContainerProps: {},
817
+ emptyProps: {},
818
+ samePopupWidth: { type: Boolean, default: !0 },
819
+ popupHeight: { default: 384 },
820
+ popupWidth: {},
821
+ minWidth: {},
822
+ headerSearch: { type: Boolean },
823
+ search: {},
824
+ open: { type: Boolean, default: void 0 },
825
+ defaultOpen: { type: Boolean, default: void 0 },
826
+ resetSearchTermOnBlur: { type: Boolean, default: !0 },
827
+ resetSearchTermOnSelect: { type: Boolean, default: !0 },
828
+ modelValue: {},
829
+ defaultValue: {},
830
+ dir: {},
831
+ disabled: { type: Boolean, default: void 0 },
832
+ highlightOnHover: { type: Boolean },
833
+ by: {},
834
+ asChild: { type: Boolean },
835
+ as: {},
836
+ name: {},
837
+ required: { type: Boolean },
838
+ reference: {},
839
+ forceMount: { type: Boolean, default: void 0 },
840
+ position: { default: "popper" },
841
+ bodyLock: { type: Boolean },
842
+ side: {},
843
+ sideOffset: { default: 4 },
844
+ align: {},
845
+ alignOffset: {},
846
+ avoidCollisions: { type: Boolean, default: void 0 },
847
+ collisionBoundary: {},
848
+ collisionPadding: { default: 4 },
849
+ arrowPadding: {},
850
+ sticky: {},
851
+ hideWhenDetached: { type: Boolean, default: void 0 },
852
+ positionStrategy: { default: "fixed" },
853
+ updatePositionStrategy: {},
854
+ disableUpdateOnLayoutShift: { type: Boolean, default: void 0 },
855
+ prioritizePosition: { type: Boolean, default: void 0 },
856
+ disableOutsidePointerEvents: { type: Boolean },
857
+ defer: { type: Boolean }
858
+ },
859
+ emits: ["update:search", "update:modelValue", "highlight", "update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
860
+ setup(c, { emit: o }) {
861
+ const t = c, e = o, d = nt(e), u = f(
862
+ () => st(
863
+ {
864
+ ...Pe(
865
+ t,
866
+ "open",
867
+ "defaultOpen",
868
+ "defaultValue",
869
+ "modelValue",
870
+ "by",
871
+ "dir",
872
+ "multiple",
873
+ "disabled"
874
+ ),
875
+ ...Pe(
876
+ d,
877
+ "onUpdate:modelValue",
878
+ "onUpdate:open"
879
+ ),
880
+ ignoreFilter: !0
881
+ },
882
+ it
883
+ )
884
+ ), x = Mt(t, "search", e, {
885
+ passive: t.search === void 0
886
+ }), B = Ue(), h = He();
887
+ return $t({
888
+ attrs: h,
889
+ props: t,
890
+ emit: e,
891
+ searchModel: x,
892
+ emitsAsProps: d
893
+ }), (C, A) => (ae(), Ce(D(at), Me(u.value, { class: D(K) }), {
894
+ default: me(() => [
895
+ Le(D(qt), null, qe({ _: 2 }, [
896
+ Ye(Object.keys(B), (W) => ({
897
+ name: W,
898
+ fn: me((n) => [
899
+ Ee(C.$slots, W, Je(Qe(n)))
900
+ ])
901
+ }))
902
+ ]), 1024)
903
+ ]),
904
+ _: 3
905
+ }, 16, ["class"]));
906
+ }
907
+ });
908
+ export {
909
+ Ae as C,
910
+ To as _,
911
+ Gt as a,
912
+ Se as i,
913
+ Kt as p
914
+ };