@kong/kongponents 9.64.21 → 9.64.22-pr.3445.cb5d2d1.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.
Files changed (857) hide show
  1. package/dist/kongponents.css +1 -1
  2. package/dist/kongponents.umd.js +9 -9
  3. package/dist/kongponents102.cjs +1 -1
  4. package/dist/kongponents102.es.js +1 -1
  5. package/dist/kongponents104.cjs +1 -1
  6. package/dist/kongponents104.es.js +5 -5
  7. package/dist/kongponents107.cjs +1 -1
  8. package/dist/kongponents107.es.js +1 -1
  9. package/dist/kongponents113.cjs +1 -1
  10. package/dist/kongponents113.es.js +1 -1
  11. package/dist/kongponents115.cjs +1 -1
  12. package/dist/kongponents115.es.js +68 -66
  13. package/dist/kongponents117.cjs +1 -1
  14. package/dist/kongponents117.es.js +39 -37
  15. package/dist/kongponents121.cjs +1 -1
  16. package/dist/kongponents121.es.js +1 -1
  17. package/dist/kongponents123.cjs +1 -1
  18. package/dist/kongponents123.es.js +4 -4
  19. package/dist/kongponents125.cjs +1 -1
  20. package/dist/kongponents125.es.js +1 -1
  21. package/dist/kongponents127.cjs +1 -1
  22. package/dist/kongponents127.es.js +40 -38
  23. package/dist/kongponents130.cjs +1 -1
  24. package/dist/kongponents130.es.js +2 -2
  25. package/dist/kongponents132.cjs +1 -1
  26. package/dist/kongponents132.es.js +5 -5
  27. package/dist/kongponents136.cjs +1 -1
  28. package/dist/kongponents136.es.js +1 -1
  29. package/dist/kongponents138.cjs +1 -1
  30. package/dist/kongponents138.es.js +1 -1
  31. package/dist/kongponents140.cjs +1 -1
  32. package/dist/kongponents140.es.js +15 -13
  33. package/dist/kongponents147.cjs +1 -1
  34. package/dist/kongponents147.es.js +4 -4
  35. package/dist/kongponents149.cjs +1 -1
  36. package/dist/kongponents149.es.js +1 -1
  37. package/dist/kongponents151.cjs +1 -1
  38. package/dist/kongponents151.es.js +4 -4
  39. package/dist/kongponents155.cjs +1 -1
  40. package/dist/kongponents155.es.js +57 -55
  41. package/dist/kongponents157.cjs +1 -1
  42. package/dist/kongponents157.es.js +1 -1
  43. package/dist/kongponents163.cjs +1 -1
  44. package/dist/kongponents163.es.js +2 -2
  45. package/dist/kongponents165.cjs +1 -1
  46. package/dist/kongponents165.es.js +4 -4
  47. package/dist/kongponents167.cjs +1 -1
  48. package/dist/kongponents167.es.js +2 -2
  49. package/dist/kongponents169.cjs +1 -1
  50. package/dist/kongponents169.es.js +6 -6
  51. package/dist/kongponents172.cjs +1 -1
  52. package/dist/kongponents172.es.js +33 -31
  53. package/dist/kongponents174.cjs +1 -1
  54. package/dist/kongponents174.es.js +3 -3
  55. package/dist/kongponents182.cjs +1 -1
  56. package/dist/kongponents182.es.js +20 -5
  57. package/dist/kongponents183.cjs +1 -1
  58. package/dist/kongponents183.es.js +5 -20
  59. package/dist/kongponents184.cjs +1 -1
  60. package/dist/kongponents184.es.js +98 -5
  61. package/dist/{kongponents213.cjs → kongponents185.cjs} +1 -1
  62. package/dist/kongponents185.es.js +7 -0
  63. package/dist/kongponents186.cjs +1 -1
  64. package/dist/kongponents186.es.js +4 -4
  65. package/dist/kongponents187.cjs +1 -1
  66. package/dist/kongponents187.es.js +20 -7
  67. package/dist/kongponents188.cjs +1 -1
  68. package/dist/kongponents188.es.js +206 -58
  69. package/dist/kongponents189.cjs +1 -1
  70. package/dist/kongponents189.es.js +5 -5
  71. package/dist/kongponents190.cjs +1 -1
  72. package/dist/kongponents190.es.js +4 -97
  73. package/dist/kongponents192.cjs +1 -1
  74. package/dist/kongponents192.es.js +1 -1
  75. package/dist/kongponents194.cjs +1 -1
  76. package/dist/kongponents194.es.js +3 -3
  77. package/dist/kongponents195.cjs +1 -1
  78. package/dist/kongponents195.es.js +2 -5
  79. package/dist/kongponents196.cjs +1 -1
  80. package/dist/kongponents196.es.js +5 -21
  81. package/dist/kongponents197.cjs +1 -1
  82. package/dist/kongponents197.es.js +4 -4
  83. package/dist/kongponents198.cjs +1 -1
  84. package/dist/kongponents198.es.js +10 -5
  85. package/dist/kongponents199.cjs +1 -1
  86. package/dist/kongponents199.es.js +7 -208
  87. package/dist/kongponents200.cjs +1 -1
  88. package/dist/kongponents200.es.js +181 -7
  89. package/dist/kongponents201.cjs +1 -1
  90. package/dist/kongponents201.es.js +5 -181
  91. package/dist/kongponents202.cjs +1 -1
  92. package/dist/kongponents202.es.js +5 -17
  93. package/dist/kongponents203.cjs +1 -1
  94. package/dist/kongponents203.es.js +5 -2
  95. package/dist/kongponents204.cjs +1 -1
  96. package/dist/kongponents204.es.js +4 -4
  97. package/dist/kongponents205.cjs +1 -1
  98. package/dist/kongponents205.es.js +3 -3
  99. package/dist/kongponents206.cjs +1 -1
  100. package/dist/kongponents206.es.js +5 -10
  101. package/dist/kongponents207.cjs +1 -1
  102. package/dist/kongponents207.es.js +4 -4
  103. package/dist/kongponents208.cjs +1 -1
  104. package/dist/kongponents208.es.js +3 -3
  105. package/dist/kongponents209.cjs +1 -1
  106. package/dist/kongponents209.es.js +3 -3
  107. package/dist/kongponents210.cjs +1 -1
  108. package/dist/kongponents210.es.js +4 -4
  109. package/dist/kongponents211.cjs +1 -1
  110. package/dist/kongponents211.es.js +4 -4
  111. package/dist/kongponents212.cjs +1 -1
  112. package/dist/kongponents212.es.js +15 -5
  113. package/dist/kongponents214.cjs +1 -1
  114. package/dist/kongponents214.es.js +4 -4
  115. package/dist/kongponents215.cjs +1 -1
  116. package/dist/kongponents215.es.js +7 -14
  117. package/dist/kongponents216.cjs +1 -1
  118. package/dist/kongponents216.es.js +60 -5
  119. package/dist/kongponents217.cjs +1 -1
  120. package/dist/kongponents217.es.js +17 -5
  121. package/dist/kongponents218.cjs +1 -1
  122. package/dist/kongponents218.es.js +53 -22
  123. package/dist/kongponents220.cjs +1 -1
  124. package/dist/kongponents220.es.js +31 -48
  125. package/dist/kongponents221.cjs +1 -0
  126. package/dist/kongponents221.es.js +89 -0
  127. package/dist/kongponents223.cjs +1 -0
  128. package/dist/kongponents223.es.js +47 -0
  129. package/dist/kongponents225.cjs +1 -0
  130. package/dist/kongponents225.es.js +26 -0
  131. package/dist/kongponents227.cjs +1 -0
  132. package/dist/kongponents227.es.js +50 -0
  133. package/dist/{kongponents226.cjs → kongponents233.cjs} +1 -1
  134. package/dist/{kongponents226.es.js → kongponents233.es.js} +1 -1
  135. package/dist/kongponents237.cjs +1 -1
  136. package/dist/kongponents237.es.js +5 -30
  137. package/dist/kongponents238.cjs +1 -1
  138. package/dist/kongponents238.es.js +82 -74
  139. package/dist/kongponents240.cjs +1 -1
  140. package/dist/kongponents240.es.js +239 -34
  141. package/dist/kongponents242.cjs +1 -1
  142. package/dist/kongponents242.es.js +178 -2
  143. package/dist/kongponents244.cjs +1 -1
  144. package/dist/kongponents244.es.js +54 -168
  145. package/dist/kongponents246.cjs +1 -1
  146. package/dist/kongponents246.es.js +5 -64
  147. package/dist/kongponents247.cjs +1 -0
  148. package/dist/kongponents247.es.js +7 -0
  149. package/dist/kongponents248.cjs +1 -1
  150. package/dist/kongponents248.es.js +19 -8
  151. package/dist/kongponents249.cjs +1 -1
  152. package/dist/kongponents249.es.js +3 -6
  153. package/dist/kongponents25.cjs +1 -1
  154. package/dist/kongponents25.es.js +7 -7
  155. package/dist/kongponents250.cjs +1 -1
  156. package/dist/kongponents250.es.js +4 -7
  157. package/dist/kongponents251.cjs +1 -1
  158. package/dist/kongponents251.es.js +5 -4
  159. package/dist/kongponents252.cjs +1 -1
  160. package/dist/kongponents252.es.js +8 -9
  161. package/dist/kongponents253.cjs +1 -1
  162. package/dist/kongponents253.es.js +5 -8
  163. package/dist/kongponents254.cjs +1 -1
  164. package/dist/kongponents254.es.js +3 -601
  165. package/dist/kongponents255.cjs +1 -1
  166. package/dist/kongponents255.es.js +15 -69
  167. package/dist/kongponents256.cjs +1 -1
  168. package/dist/kongponents256.es.js +3 -4
  169. package/dist/kongponents257.cjs +1 -1
  170. package/dist/kongponents257.es.js +8 -20
  171. package/dist/kongponents258.cjs +1 -1
  172. package/dist/kongponents258.es.js +6 -4
  173. package/dist/kongponents259.cjs +1 -1
  174. package/dist/kongponents259.es.js +4 -18
  175. package/dist/kongponents260.cjs +1 -1
  176. package/dist/kongponents260.es.js +2 -8
  177. package/dist/kongponents261.cjs +1 -1
  178. package/dist/kongponents261.es.js +5 -5
  179. package/dist/kongponents262.cjs +1 -1
  180. package/dist/kongponents262.es.js +9 -8
  181. package/dist/kongponents263.cjs +1 -1
  182. package/dist/kongponents263.es.js +4 -7
  183. package/dist/kongponents264.cjs +1 -1
  184. package/dist/kongponents264.es.js +4 -8
  185. package/dist/kongponents265.cjs +1 -1
  186. package/dist/kongponents265.es.js +3 -8
  187. package/dist/kongponents266.cjs +1 -1
  188. package/dist/kongponents266.es.js +3 -7
  189. package/dist/kongponents267.cjs +1 -1
  190. package/dist/kongponents267.es.js +7 -124
  191. package/dist/kongponents268.cjs +1 -2
  192. package/dist/kongponents268.es.js +6 -48
  193. package/dist/kongponents269.cjs +1 -1
  194. package/dist/kongponents269.es.js +5 -8
  195. package/dist/kongponents27.cjs +1 -1
  196. package/dist/kongponents27.es.js +2 -2
  197. package/dist/kongponents270.cjs +1 -1
  198. package/dist/kongponents270.es.js +10 -57
  199. package/dist/kongponents271.cjs +1 -1
  200. package/dist/kongponents271.es.js +6 -65
  201. package/dist/kongponents272.cjs +1 -1
  202. package/dist/kongponents272.es.js +9 -5
  203. package/dist/kongponents273.cjs +1 -1
  204. package/dist/kongponents273.es.js +7 -4
  205. package/dist/kongponents274.cjs +1 -1
  206. package/dist/kongponents274.es.js +17 -20
  207. package/dist/kongponents275.cjs +1 -1
  208. package/dist/kongponents275.es.js +12 -5
  209. package/dist/kongponents276.cjs +1 -1
  210. package/dist/kongponents276.es.js +6 -96
  211. package/dist/kongponents277.cjs +1 -1
  212. package/dist/kongponents277.es.js +12 -171
  213. package/dist/kongponents278.cjs +1 -1
  214. package/dist/kongponents278.es.js +10 -5
  215. package/dist/kongponents279.cjs +1 -1
  216. package/dist/kongponents279.es.js +5 -6
  217. package/dist/kongponents280.cjs +1 -1
  218. package/dist/kongponents280.es.js +9 -5
  219. package/dist/kongponents281.cjs +1 -1
  220. package/dist/kongponents281.es.js +16 -5
  221. package/dist/kongponents282.cjs +1 -1
  222. package/dist/kongponents282.es.js +16 -68
  223. package/dist/kongponents283.cjs +1 -1
  224. package/dist/kongponents283.es.js +6 -2
  225. package/dist/kongponents284.cjs +1 -1
  226. package/dist/kongponents284.es.js +10 -4
  227. package/dist/kongponents285.cjs +1 -1
  228. package/dist/kongponents285.es.js +7 -5
  229. package/dist/kongponents286.cjs +1 -1
  230. package/dist/kongponents286.es.js +7 -19
  231. package/dist/kongponents287.cjs +1 -1
  232. package/dist/kongponents287.es.js +5 -3
  233. package/dist/kongponents288.cjs +1 -1
  234. package/dist/kongponents288.es.js +5 -3
  235. package/dist/kongponents289.cjs +1 -1
  236. package/dist/kongponents289.es.js +9 -5
  237. package/dist/kongponents290.cjs +1 -1
  238. package/dist/kongponents290.es.js +7 -8
  239. package/dist/kongponents291.cjs +1 -1
  240. package/dist/kongponents291.es.js +3 -5
  241. package/dist/kongponents292.cjs +1 -1
  242. package/dist/kongponents292.es.js +5 -3
  243. package/dist/kongponents293.cjs +1 -1
  244. package/dist/kongponents293.es.js +15 -16
  245. package/dist/kongponents294.cjs +1 -1
  246. package/dist/kongponents294.es.js +55 -4
  247. package/dist/kongponents297.cjs +1 -1
  248. package/dist/kongponents297.es.js +83 -4
  249. package/dist/kongponents299.cjs +1 -1
  250. package/dist/kongponents299.es.js +41 -6
  251. package/dist/kongponents30.cjs +1 -1
  252. package/dist/kongponents30.es.js +1 -1
  253. package/dist/kongponents301.cjs +1 -1
  254. package/dist/kongponents301.es.js +2 -5
  255. package/dist/kongponents302.cjs +1 -1
  256. package/dist/kongponents302.es.js +2 -4
  257. package/dist/kongponents303.cjs +1 -1
  258. package/dist/kongponents303.es.js +182 -3
  259. package/dist/kongponents305.cjs +1 -1
  260. package/dist/kongponents305.es.js +5 -8
  261. package/dist/kongponents306.cjs +1 -1
  262. package/dist/kongponents306.es.js +121 -7
  263. package/dist/kongponents308.cjs +1 -1
  264. package/dist/kongponents308.es.js +7 -9
  265. package/dist/kongponents309.cjs +1 -1
  266. package/dist/kongponents309.es.js +5 -5
  267. package/dist/kongponents310.cjs +1 -1
  268. package/dist/kongponents310.es.js +5 -5
  269. package/dist/kongponents311.cjs +1 -1
  270. package/dist/kongponents311.es.js +5 -6
  271. package/dist/kongponents312.cjs +1 -1
  272. package/dist/kongponents312.es.js +9 -17
  273. package/dist/kongponents313.cjs +1 -1
  274. package/dist/kongponents313.es.js +14 -11
  275. package/dist/kongponents314.cjs +1 -1
  276. package/dist/kongponents314.es.js +3 -7
  277. package/dist/kongponents315.cjs +1 -1
  278. package/dist/kongponents315.es.js +7 -12
  279. package/dist/kongponents316.cjs +1 -1
  280. package/dist/kongponents316.es.js +3 -10
  281. package/dist/kongponents317.cjs +1 -1
  282. package/dist/kongponents317.es.js +10 -5
  283. package/dist/kongponents318.cjs +1 -1
  284. package/dist/kongponents318.es.js +6 -7
  285. package/dist/kongponents319.cjs +1 -1
  286. package/dist/kongponents319.es.js +5 -15
  287. package/dist/kongponents32.cjs +1 -1
  288. package/dist/kongponents32.es.js +4 -4
  289. package/dist/kongponents320.cjs +1 -1
  290. package/dist/kongponents320.es.js +2 -18
  291. package/dist/kongponents321.cjs +1 -1
  292. package/dist/kongponents321.es.js +12 -5
  293. package/dist/kongponents322.cjs +1 -1
  294. package/dist/kongponents322.es.js +4 -10
  295. package/dist/kongponents323.cjs +1 -1
  296. package/dist/kongponents323.es.js +3 -7
  297. package/dist/kongponents324.cjs +1 -1
  298. package/dist/kongponents324.es.js +26 -8
  299. package/dist/kongponents325.cjs +1 -1
  300. package/dist/kongponents325.es.js +4 -6
  301. package/dist/kongponents326.cjs +1 -1
  302. package/dist/kongponents326.es.js +4 -7
  303. package/dist/kongponents327.cjs +1 -1
  304. package/dist/kongponents327.es.js +3 -9
  305. package/dist/kongponents328.cjs +1 -1
  306. package/dist/kongponents328.es.js +4 -8
  307. package/dist/kongponents329.cjs +1 -1
  308. package/dist/kongponents329.es.js +4 -4
  309. package/dist/kongponents330.cjs +1 -1
  310. package/dist/kongponents330.es.js +14 -5
  311. package/dist/kongponents331.cjs +1 -1
  312. package/dist/kongponents331.es.js +5 -15
  313. package/dist/kongponents332.cjs +1 -1
  314. package/dist/kongponents332.es.js +29 -86
  315. package/dist/kongponents333.cjs +1 -0
  316. package/dist/kongponents333.es.js +29 -0
  317. package/dist/kongponents334.cjs +1 -1
  318. package/dist/kongponents334.es.js +16 -45
  319. package/dist/kongponents335.cjs +1 -0
  320. package/dist/kongponents335.es.js +12 -0
  321. package/dist/kongponents336.cjs +1 -1
  322. package/dist/kongponents336.es.js +5 -91
  323. package/dist/kongponents337.cjs +1 -0
  324. package/dist/kongponents337.es.js +16 -0
  325. package/dist/kongponents338.cjs +1 -1
  326. package/dist/kongponents338.es.js +9 -246
  327. package/dist/kongponents339.cjs +1 -0
  328. package/dist/kongponents339.es.js +5 -0
  329. package/dist/kongponents340.cjs +1 -1
  330. package/dist/kongponents340.es.js +6 -2
  331. package/dist/kongponents341.cjs +1 -1
  332. package/dist/kongponents341.es.js +6 -5
  333. package/dist/kongponents342.cjs +1 -1
  334. package/dist/kongponents342.es.js +8 -2
  335. package/dist/kongponents343.cjs +1 -1
  336. package/dist/kongponents343.es.js +5 -10
  337. package/dist/kongponents344.cjs +1 -1
  338. package/dist/kongponents344.es.js +10 -10
  339. package/dist/kongponents345.cjs +1 -1
  340. package/dist/kongponents345.es.js +5 -12
  341. package/dist/kongponents346.cjs +1 -1
  342. package/dist/kongponents346.es.js +4 -10
  343. package/dist/kongponents347.cjs +1 -1
  344. package/dist/kongponents347.es.js +4 -18
  345. package/dist/kongponents348.cjs +1 -1
  346. package/dist/kongponents348.es.js +5 -5
  347. package/dist/kongponents349.cjs +1 -1
  348. package/dist/kongponents349.es.js +8 -54
  349. package/dist/kongponents350.cjs +1 -1
  350. package/dist/kongponents350.es.js +6 -8
  351. package/dist/kongponents351.cjs +1 -1
  352. package/dist/kongponents351.es.js +10 -5
  353. package/dist/kongponents352.cjs +1 -1
  354. package/dist/kongponents352.es.js +6 -13
  355. package/dist/kongponents353.cjs +1 -1
  356. package/dist/kongponents353.es.js +21 -14
  357. package/dist/kongponents354.cjs +1 -1
  358. package/dist/kongponents354.es.js +6 -3
  359. package/dist/kongponents355.cjs +1 -1
  360. package/dist/kongponents355.es.js +6 -12
  361. package/dist/kongponents356.cjs +1 -1
  362. package/dist/kongponents356.es.js +8 -9
  363. package/dist/kongponents357.cjs +1 -1
  364. package/dist/kongponents357.es.js +7 -53
  365. package/dist/kongponents358.cjs +1 -1
  366. package/dist/kongponents358.es.js +5 -57
  367. package/dist/kongponents359.cjs +1 -1
  368. package/dist/kongponents359.es.js +20 -58
  369. package/dist/kongponents360.cjs +1 -1
  370. package/dist/kongponents360.es.js +5 -33
  371. package/dist/kongponents361.cjs +1 -1
  372. package/dist/kongponents361.es.js +95 -29
  373. package/dist/kongponents362.cjs +1 -1
  374. package/dist/kongponents362.es.js +171 -71
  375. package/dist/kongponents363.cjs +1 -1
  376. package/dist/kongponents363.es.js +5 -72
  377. package/dist/kongponents364.cjs +1 -1
  378. package/dist/kongponents364.es.js +7 -78
  379. package/dist/kongponents365.cjs +1 -1
  380. package/dist/kongponents365.es.js +5 -78
  381. package/dist/kongponents366.cjs +1 -1
  382. package/dist/kongponents366.es.js +5 -48
  383. package/dist/kongponents367.cjs +1 -1
  384. package/dist/kongponents367.es.js +69 -47
  385. package/dist/kongponents368.cjs +1 -1
  386. package/dist/kongponents368.es.js +2 -47
  387. package/dist/kongponents369.cjs +1 -1
  388. package/dist/kongponents369.es.js +9 -48
  389. package/dist/kongponents370.cjs +1 -1
  390. package/dist/kongponents370.es.js +7 -80
  391. package/dist/kongponents371.cjs +1 -1
  392. package/dist/kongponents371.es.js +8 -92
  393. package/dist/kongponents372.cjs +1 -1
  394. package/dist/kongponents372.es.js +5 -92
  395. package/dist/kongponents373.cjs +1 -1
  396. package/dist/kongponents373.es.js +10 -91
  397. package/dist/kongponents374.cjs +1 -1
  398. package/dist/kongponents374.es.js +9 -58
  399. package/dist/kongponents375.cjs +1 -1
  400. package/dist/kongponents375.es.js +601 -57
  401. package/dist/kongponents376.cjs +1 -1
  402. package/dist/kongponents376.es.js +70 -57
  403. package/dist/kongponents377.cjs +1 -1
  404. package/dist/kongponents377.es.js +5 -47
  405. package/dist/kongponents378.cjs +1 -1
  406. package/dist/kongponents378.es.js +20 -46
  407. package/dist/kongponents379.cjs +1 -1
  408. package/dist/kongponents379.es.js +5 -47
  409. package/dist/kongponents380.cjs +1 -1
  410. package/dist/kongponents380.es.js +17 -46
  411. package/dist/kongponents381.cjs +1 -1
  412. package/dist/kongponents381.es.js +8 -46
  413. package/dist/kongponents382.cjs +1 -1
  414. package/dist/kongponents382.es.js +6 -46
  415. package/dist/kongponents383.cjs +1 -1
  416. package/dist/kongponents383.es.js +9 -34
  417. package/dist/kongponents384.cjs +1 -1
  418. package/dist/kongponents384.es.js +8 -43
  419. package/dist/kongponents385.cjs +1 -1
  420. package/dist/kongponents385.es.js +8 -43
  421. package/dist/kongponents386.cjs +1 -1
  422. package/dist/kongponents386.es.js +8 -33
  423. package/dist/kongponents387.cjs +1 -1
  424. package/dist/kongponents387.es.js +8 -33
  425. package/dist/kongponents388.cjs +1 -1
  426. package/dist/kongponents388.es.js +122 -69
  427. package/dist/kongponents389.cjs +2 -1
  428. package/dist/kongponents389.es.js +49 -2
  429. package/dist/kongponents390.cjs +1 -1
  430. package/dist/kongponents390.es.js +7 -12
  431. package/dist/kongponents391.cjs +1 -1
  432. package/dist/kongponents391.es.js +56 -22
  433. package/dist/kongponents392.cjs +1 -1
  434. package/dist/kongponents392.es.js +65 -22
  435. package/dist/kongponents393.cjs +1 -1
  436. package/dist/kongponents393.es.js +4 -20
  437. package/dist/kongponents394.cjs +1 -1
  438. package/dist/kongponents394.es.js +4 -615
  439. package/dist/kongponents395.cjs +1 -1
  440. package/dist/kongponents395.es.js +94 -81
  441. package/dist/kongponents397.cjs +1 -1
  442. package/dist/kongponents397.es.js +6 -26
  443. package/dist/kongponents398.cjs +1 -1
  444. package/dist/kongponents398.es.js +17 -16
  445. package/dist/kongponents399.cjs +1 -1
  446. package/dist/kongponents399.es.js +4 -14
  447. package/dist/kongponents400.cjs +1 -1
  448. package/dist/kongponents400.es.js +4 -16
  449. package/dist/kongponents401.cjs +1 -1
  450. package/dist/kongponents401.es.js +3 -14
  451. package/dist/kongponents402.cjs +1 -1
  452. package/dist/kongponents402.es.js +3 -23
  453. package/dist/kongponents403.cjs +1 -1
  454. package/dist/kongponents403.es.js +14 -17
  455. package/dist/kongponents404.cjs +1 -1
  456. package/dist/kongponents404.es.js +7 -2
  457. package/dist/kongponents405.cjs +1 -1
  458. package/dist/kongponents405.es.js +8 -18
  459. package/dist/kongponents406.cjs +1 -1
  460. package/dist/kongponents406.es.js +11 -65
  461. package/dist/kongponents407.cjs +1 -1
  462. package/dist/kongponents407.es.js +4 -4
  463. package/dist/kongponents408.cjs +1 -1
  464. package/dist/kongponents408.es.js +4 -2
  465. package/dist/kongponents409.cjs +1 -1
  466. package/dist/kongponents409.es.js +4 -2
  467. package/dist/kongponents410.cjs +1 -1
  468. package/dist/kongponents410.es.js +37 -7
  469. package/dist/kongponents411.cjs +1 -1
  470. package/dist/kongponents411.es.js +42 -5
  471. package/dist/kongponents412.cjs +1 -1
  472. package/dist/kongponents412.es.js +33 -8
  473. package/dist/kongponents413.cjs +1 -1
  474. package/dist/kongponents413.es.js +3 -6
  475. package/dist/kongponents414.cjs +1 -1
  476. package/dist/kongponents414.es.js +17 -9
  477. package/dist/kongponents415.cjs +1 -1
  478. package/dist/kongponents415.es.js +5 -14
  479. package/dist/kongponents416.cjs +1 -1
  480. package/dist/kongponents416.es.js +72 -3
  481. package/dist/kongponents417.cjs +1 -1
  482. package/dist/kongponents417.es.js +2 -8
  483. package/dist/kongponents418.cjs +1 -1
  484. package/dist/kongponents418.es.js +13 -3
  485. package/dist/kongponents419.cjs +1 -1
  486. package/dist/kongponents419.es.js +21 -9
  487. package/dist/kongponents420.cjs +1 -1
  488. package/dist/kongponents420.es.js +21 -7
  489. package/dist/kongponents421.cjs +1 -1
  490. package/dist/kongponents421.es.js +20 -5
  491. package/dist/kongponents422.cjs +1 -1
  492. package/dist/kongponents422.es.js +615 -2
  493. package/dist/kongponents423.cjs +1 -1
  494. package/dist/kongponents423.es.js +80 -12
  495. package/dist/kongponents424.cjs +1 -1
  496. package/dist/kongponents424.es.js +14 -4
  497. package/dist/kongponents425.cjs +1 -1
  498. package/dist/kongponents425.es.js +27 -3
  499. package/dist/kongponents426.cjs +1 -1
  500. package/dist/kongponents426.es.js +16 -25
  501. package/dist/kongponents427.cjs +1 -1
  502. package/dist/kongponents427.es.js +15 -4
  503. package/dist/kongponents428.cjs +1 -1
  504. package/dist/kongponents428.es.js +17 -4
  505. package/dist/kongponents429.cjs +1 -1
  506. package/dist/kongponents429.es.js +15 -4
  507. package/dist/kongponents430.cjs +1 -1
  508. package/dist/kongponents430.es.js +24 -4
  509. package/dist/kongponents431.cjs +1 -1
  510. package/dist/kongponents431.es.js +65 -4
  511. package/dist/kongponents432.cjs +1 -1
  512. package/dist/kongponents432.es.js +4 -14
  513. package/dist/kongponents433.cjs +1 -1
  514. package/dist/kongponents433.es.js +2 -6
  515. package/dist/kongponents434.cjs +1 -1
  516. package/dist/kongponents434.es.js +2 -30
  517. package/dist/kongponents435.cjs +1 -1
  518. package/dist/kongponents435.es.js +16 -25
  519. package/dist/kongponents436.cjs +1 -1
  520. package/dist/kongponents436.es.js +2 -16
  521. package/dist/kongponents437.cjs +1 -1
  522. package/dist/kongponents437.es.js +17 -9
  523. package/dist/kongponents438.cjs +1 -1
  524. package/dist/kongponents438.es.js +10 -4
  525. package/dist/kongponents439.cjs +1 -1
  526. package/dist/kongponents439.es.js +10 -13
  527. package/dist/kongponents440.cjs +1 -1
  528. package/dist/kongponents440.es.js +12 -8
  529. package/dist/kongponents441.cjs +1 -1
  530. package/dist/kongponents441.es.js +11 -3
  531. package/dist/kongponents442.cjs +1 -1
  532. package/dist/kongponents442.es.js +18 -5
  533. package/dist/kongponents443.cjs +1 -1
  534. package/dist/kongponents443.es.js +5 -5
  535. package/dist/kongponents444.cjs +1 -1
  536. package/dist/kongponents444.es.js +54 -8
  537. package/dist/kongponents445.cjs +1 -1
  538. package/dist/kongponents445.es.js +2 -6
  539. package/dist/kongponents446.cjs +1 -1
  540. package/dist/kongponents446.es.js +8 -10
  541. package/dist/kongponents447.cjs +1 -1
  542. package/dist/kongponents447.es.js +2 -3
  543. package/dist/kongponents448.cjs +1 -1
  544. package/dist/kongponents448.es.js +13 -4
  545. package/dist/kongponents449.cjs +1 -1
  546. package/dist/kongponents449.es.js +14 -4
  547. package/dist/kongponents450.cjs +1 -1
  548. package/dist/kongponents450.es.js +3 -5
  549. package/dist/kongponents451.cjs +1 -1
  550. package/dist/kongponents451.es.js +12 -7
  551. package/dist/kongponents452.cjs +1 -1
  552. package/dist/kongponents452.es.js +9 -6
  553. package/dist/kongponents453.cjs +1 -1
  554. package/dist/kongponents453.es.js +53 -10
  555. package/dist/kongponents454.cjs +1 -1
  556. package/dist/kongponents454.es.js +57 -7
  557. package/dist/kongponents455.cjs +1 -1
  558. package/dist/kongponents455.es.js +58 -21
  559. package/dist/kongponents456.cjs +1 -1
  560. package/dist/kongponents456.es.js +33 -7
  561. package/dist/kongponents457.cjs +1 -1
  562. package/dist/kongponents457.es.js +31 -7
  563. package/dist/kongponents458.cjs +1 -1
  564. package/dist/kongponents458.es.js +72 -7
  565. package/dist/kongponents459.cjs +1 -1
  566. package/dist/kongponents459.es.js +72 -9
  567. package/dist/kongponents460.cjs +1 -1
  568. package/dist/kongponents460.es.js +77 -93
  569. package/dist/kongponents461.cjs +1 -0
  570. package/dist/kongponents461.es.js +80 -0
  571. package/dist/kongponents462.cjs +1 -1
  572. package/dist/kongponents462.es.js +48 -5
  573. package/dist/kongponents463.cjs +1 -1
  574. package/dist/kongponents463.es.js +47 -120
  575. package/dist/kongponents464.cjs +1 -0
  576. package/dist/kongponents464.es.js +49 -0
  577. package/dist/kongponents465.cjs +1 -1
  578. package/dist/kongponents465.es.js +47 -66
  579. package/dist/kongponents466.cjs +1 -1
  580. package/dist/kongponents466.es.js +80 -31
  581. package/dist/kongponents467.cjs +1 -1
  582. package/dist/kongponents467.es.js +92 -11
  583. package/dist/kongponents468.cjs +1 -1
  584. package/dist/kongponents468.es.js +89 -118
  585. package/dist/kongponents469.cjs +1 -1
  586. package/dist/kongponents469.es.js +88 -83
  587. package/dist/kongponents470.cjs +1 -1
  588. package/dist/kongponents470.es.js +58 -8
  589. package/dist/kongponents471.cjs +1 -1
  590. package/dist/kongponents471.es.js +58 -11
  591. package/dist/kongponents472.cjs +1 -1
  592. package/dist/kongponents472.es.js +58 -14
  593. package/dist/kongponents473.cjs +1 -1
  594. package/dist/kongponents473.es.js +47 -14
  595. package/dist/kongponents474.cjs +1 -1
  596. package/dist/kongponents474.es.js +46 -6
  597. package/dist/kongponents475.cjs +1 -1
  598. package/dist/kongponents475.es.js +47 -6
  599. package/dist/kongponents476.cjs +1 -1
  600. package/dist/kongponents476.es.js +47 -6
  601. package/dist/kongponents477.cjs +1 -1
  602. package/dist/kongponents477.es.js +45 -10
  603. package/dist/kongponents478.cjs +1 -1
  604. package/dist/kongponents478.es.js +46 -8
  605. package/dist/kongponents479.cjs +1 -1
  606. package/dist/kongponents479.es.js +34 -7
  607. package/dist/kongponents480.cjs +1 -1
  608. package/dist/kongponents480.es.js +39 -21
  609. package/dist/kongponents481.cjs +1 -1
  610. package/dist/kongponents481.es.js +42 -96
  611. package/dist/kongponents482.cjs +1 -1
  612. package/dist/kongponents482.es.js +33 -47
  613. package/dist/kongponents483.cjs +1 -1
  614. package/dist/kongponents483.es.js +33 -10
  615. package/dist/kongponents484.cjs +1 -1
  616. package/dist/kongponents484.es.js +3 -9
  617. package/dist/kongponents485.cjs +1 -1
  618. package/dist/kongponents485.es.js +3 -13
  619. package/dist/kongponents486.cjs +1 -1
  620. package/dist/kongponents486.es.js +9 -10
  621. package/dist/kongponents487.cjs +1 -1
  622. package/dist/kongponents487.es.js +6 -2
  623. package/dist/kongponents488.cjs +1 -1
  624. package/dist/kongponents488.es.js +5 -2
  625. package/dist/kongponents489.cjs +1 -1
  626. package/dist/kongponents489.es.js +6 -2
  627. package/dist/kongponents490.cjs +1 -1
  628. package/dist/kongponents490.es.js +3 -19
  629. package/dist/kongponents491.cjs +1 -1
  630. package/dist/kongponents491.es.js +5 -2
  631. package/dist/kongponents492.cjs +1 -1
  632. package/dist/kongponents492.es.js +4 -21
  633. package/dist/kongponents493.cjs +1 -1
  634. package/dist/kongponents493.es.js +11 -2
  635. package/dist/kongponents494.cjs +1 -1
  636. package/dist/kongponents494.es.js +6 -15
  637. package/dist/kongponents495.cjs +1 -1
  638. package/dist/kongponents495.es.js +7 -2
  639. package/dist/kongponents496.cjs +1 -1
  640. package/dist/kongponents496.es.js +4 -22
  641. package/dist/kongponents497.cjs +1 -1
  642. package/dist/kongponents497.es.js +2 -23
  643. package/dist/kongponents498.cjs +1 -1
  644. package/dist/kongponents498.es.js +2 -26
  645. package/dist/kongponents499.cjs +1 -1
  646. package/dist/kongponents499.es.js +15 -19
  647. package/dist/kongponents500.cjs +1 -1
  648. package/dist/kongponents500.es.js +2 -32
  649. package/dist/kongponents501.cjs +1 -1
  650. package/dist/kongponents501.es.js +19 -13
  651. package/dist/kongponents502.cjs +1 -1
  652. package/dist/kongponents502.es.js +2 -66
  653. package/dist/kongponents503.cjs +1 -1
  654. package/dist/kongponents503.es.js +16 -2
  655. package/dist/kongponents504.cjs +1 -1
  656. package/dist/kongponents504.es.js +2 -2
  657. package/dist/kongponents505.cjs +1 -1
  658. package/dist/kongponents505.es.js +23 -2
  659. package/dist/kongponents506.cjs +1 -1
  660. package/dist/kongponents506.es.js +23 -2
  661. package/dist/kongponents507.cjs +1 -1
  662. package/dist/kongponents507.es.js +26 -2
  663. package/dist/kongponents508.cjs +1 -1
  664. package/dist/kongponents508.es.js +21 -28
  665. package/dist/kongponents509.cjs +1 -1
  666. package/dist/kongponents509.es.js +31 -3
  667. package/dist/kongponents510.cjs +1 -1
  668. package/dist/kongponents510.es.js +15 -6
  669. package/dist/kongponents511.cjs +1 -1
  670. package/dist/kongponents511.es.js +65 -17
  671. package/dist/kongponents512.cjs +1 -1
  672. package/dist/kongponents512.es.js +2 -5
  673. package/dist/kongponents513.cjs +1 -1
  674. package/dist/kongponents513.es.js +2 -5
  675. package/dist/kongponents514.cjs +1 -1
  676. package/dist/kongponents514.es.js +2 -4
  677. package/dist/kongponents515.cjs +1 -1
  678. package/dist/kongponents515.es.js +2 -4
  679. package/dist/kongponents516.cjs +1 -1
  680. package/dist/kongponents516.es.js +2 -15
  681. package/dist/kongponents517.cjs +1 -1
  682. package/dist/kongponents517.es.js +29 -6
  683. package/dist/kongponents518.cjs +1 -1
  684. package/dist/kongponents518.es.js +4 -8
  685. package/dist/kongponents519.cjs +1 -1
  686. package/dist/kongponents519.es.js +2 -11
  687. package/dist/kongponents520.cjs +1 -1
  688. package/dist/kongponents520.es.js +7 -4
  689. package/dist/kongponents521.cjs +1 -1
  690. package/dist/kongponents521.es.js +10 -3
  691. package/dist/kongponents522.cjs +1 -1
  692. package/dist/kongponents522.es.js +13 -3
  693. package/dist/kongponents523.cjs +1 -1
  694. package/dist/kongponents523.es.js +12 -36
  695. package/dist/kongponents524.cjs +1 -1
  696. package/dist/kongponents524.es.js +66 -42
  697. package/dist/kongponents525.cjs +1 -1
  698. package/dist/kongponents525.es.js +31 -34
  699. package/dist/kongponents526.cjs +1 -1
  700. package/dist/kongponents526.es.js +11 -3
  701. package/dist/kongponents527.cjs +1 -1
  702. package/dist/kongponents527.es.js +120 -17
  703. package/dist/kongponents528.cjs +1 -1
  704. package/dist/kongponents528.es.js +86 -6
  705. package/dist/kongponents529.cjs +1 -1
  706. package/dist/kongponents529.es.js +5 -6
  707. package/dist/kongponents53.cjs +1 -1
  708. package/dist/kongponents53.es.js +2 -2
  709. package/dist/kongponents530.cjs +1 -1
  710. package/dist/kongponents530.es.js +5 -14
  711. package/dist/kongponents531.cjs +1 -1
  712. package/dist/kongponents531.es.js +5 -28
  713. package/dist/kongponents532.cjs +1 -1
  714. package/dist/kongponents532.es.js +10 -15
  715. package/dist/kongponents533.cjs +1 -1
  716. package/dist/kongponents533.es.js +7 -11
  717. package/dist/kongponents534.cjs +1 -1
  718. package/dist/kongponents534.es.js +7 -2
  719. package/dist/kongponents535.cjs +1 -1
  720. package/dist/kongponents535.es.js +25 -2
  721. package/dist/kongponents536.cjs +1 -1
  722. package/dist/kongponents536.es.js +97 -2
  723. package/dist/kongponents537.cjs +1 -1
  724. package/dist/kongponents537.es.js +47 -2
  725. package/dist/kongponents538.cjs +1 -1
  726. package/dist/kongponents538.es.js +10 -2
  727. package/dist/kongponents539.cjs +1 -1
  728. package/dist/kongponents539.es.js +9 -20
  729. package/dist/kongponents540.cjs +1 -1
  730. package/dist/kongponents540.es.js +13 -23
  731. package/dist/kongponents541.cjs +1 -1
  732. package/dist/kongponents541.es.js +11 -2
  733. package/dist/kongponents542.cjs +1 -1
  734. package/dist/kongponents542.es.js +8 -2
  735. package/dist/kongponents543.cjs +1 -1
  736. package/dist/kongponents543.es.js +3 -27
  737. package/dist/kongponents544.cjs +1 -1
  738. package/dist/kongponents544.es.js +2 -27
  739. package/dist/kongponents546.es.js +2 -2
  740. package/dist/kongponents547.es.js +2 -2
  741. package/dist/kongponents549.cjs +1 -1
  742. package/dist/kongponents549.es.js +17 -73
  743. package/dist/kongponents55.cjs +1 -1
  744. package/dist/kongponents55.es.js +2 -2
  745. package/dist/kongponents550.cjs +1 -1
  746. package/dist/kongponents550.es.js +22 -41
  747. package/dist/kongponents551.cjs +1 -1
  748. package/dist/kongponents551.es.js +2 -21
  749. package/dist/kongponents552.cjs +1 -1
  750. package/dist/kongponents552.es.js +2 -133
  751. package/dist/kongponents553.cjs +1 -1
  752. package/dist/kongponents553.es.js +25 -96
  753. package/dist/kongponents554.cjs +1 -1
  754. package/dist/kongponents554.es.js +26 -3
  755. package/dist/kongponents555.cjs +1 -1
  756. package/dist/kongponents555.es.js +2 -4
  757. package/dist/kongponents556.cjs +1 -1
  758. package/dist/kongponents556.es.js +2 -10
  759. package/dist/kongponents557.cjs +1 -1
  760. package/dist/kongponents557.es.js +2 -6
  761. package/dist/kongponents558.cjs +1 -1
  762. package/dist/kongponents558.es.js +2 -5
  763. package/dist/kongponents559.cjs +1 -1
  764. package/dist/kongponents559.es.js +76 -5
  765. package/dist/kongponents560.cjs +1 -1
  766. package/dist/kongponents560.es.js +43 -3
  767. package/dist/kongponents561.cjs +1 -1
  768. package/dist/kongponents561.es.js +20 -4
  769. package/dist/kongponents562.cjs +1 -1
  770. package/dist/kongponents562.es.js +132 -4
  771. package/dist/kongponents563.cjs +1 -1
  772. package/dist/kongponents563.es.js +97 -4
  773. package/dist/kongponents564.cjs +1 -1
  774. package/dist/kongponents564.es.js +6 -10
  775. package/dist/kongponents565.cjs +1 -1
  776. package/dist/kongponents565.es.js +14 -6
  777. package/dist/kongponents566.cjs +1 -1
  778. package/dist/kongponents566.es.js +28 -6
  779. package/dist/kongponents567.cjs +1 -1
  780. package/dist/kongponents567.es.js +16 -2
  781. package/dist/kongponents568.cjs +1 -1
  782. package/dist/kongponents568.es.js +12 -2
  783. package/dist/kongponents571.es.js +2 -2
  784. package/dist/kongponents572.es.js +2 -2
  785. package/dist/kongponents573.cjs +1 -1
  786. package/dist/kongponents573.es.js +2 -17
  787. package/dist/kongponents574.es.js +2 -2
  788. package/dist/kongponents575.cjs +1 -1
  789. package/dist/kongponents575.es.js +17 -2
  790. package/dist/kongponents576.cjs +1 -1
  791. package/dist/kongponents576.es.js +2 -25
  792. package/dist/kongponents577.es.js +2 -2
  793. package/dist/kongponents578.cjs +1 -1
  794. package/dist/kongponents578.es.js +20 -34
  795. package/dist/kongponents579.cjs +1 -1
  796. package/dist/kongponents579.es.js +2 -26
  797. package/dist/kongponents580.cjs +1 -1
  798. package/dist/kongponents580.es.js +38 -7
  799. package/dist/kongponents581.cjs +1 -1
  800. package/dist/kongponents581.es.js +26 -3
  801. package/dist/kongponents60.cjs +1 -1
  802. package/dist/kongponents60.es.js +2 -2
  803. package/dist/kongponents66.cjs +1 -1
  804. package/dist/kongponents66.es.js +1 -1
  805. package/dist/kongponents69.cjs +1 -1
  806. package/dist/kongponents69.es.js +3 -3
  807. package/dist/kongponents74.cjs +1 -1
  808. package/dist/kongponents74.es.js +1 -1
  809. package/dist/kongponents80.cjs +1 -1
  810. package/dist/kongponents80.es.js +1 -1
  811. package/dist/kongponents83.cjs +1 -1
  812. package/dist/kongponents83.es.js +1 -1
  813. package/dist/kongponents85.cjs +1 -1
  814. package/dist/kongponents85.es.js +1 -1
  815. package/dist/kongponents91.cjs +1 -1
  816. package/dist/kongponents91.es.js +1 -1
  817. package/dist/kongponents95.cjs +1 -1
  818. package/dist/kongponents95.es.js +1 -1
  819. package/dist/kongponents97.cjs +1 -1
  820. package/dist/kongponents97.es.js +2 -2
  821. package/dist/types/components/KSlider/KSlider.vue.d.ts +9 -2
  822. package/dist/types/types/file-upload.d.ts +4 -0
  823. package/dist/types/types/input.d.ts +4 -0
  824. package/dist/types/types/multi-select.d.ts +4 -0
  825. package/dist/types/types/select.d.ts +4 -0
  826. package/dist/types/types/slider.d.ts +6 -0
  827. package/dist/types/types/text-area.d.ts +4 -0
  828. package/package.json +35 -36
  829. package/dist/kongponents213.es.js +0 -7
  830. package/dist/kongponents230.cjs +0 -1
  831. package/dist/kongponents230.es.js +0 -57
  832. package/dist/kongponents232.cjs +0 -1
  833. package/dist/kongponents232.es.js +0 -57
  834. package/dist/kongponents234.cjs +0 -1
  835. package/dist/kongponents234.es.js +0 -184
  836. package/dist/kongponents236.cjs +0 -1
  837. package/dist/kongponents236.es.js +0 -8
  838. package/dist/kongponents295.cjs +0 -1
  839. package/dist/kongponents295.es.js +0 -10
  840. package/dist/kongponents296.cjs +0 -1
  841. package/dist/kongponents296.es.js +0 -9
  842. package/dist/kongponents298.cjs +0 -1
  843. package/dist/kongponents298.es.js +0 -4
  844. package/dist/kongponents300.cjs +0 -1
  845. package/dist/kongponents300.es.js +0 -12
  846. package/dist/kongponents304.cjs +0 -1
  847. package/dist/kongponents304.es.js +0 -6
  848. package/dist/kongponents307.cjs +0 -1
  849. package/dist/kongponents307.es.js +0 -7
  850. package/dist/kongponents396.cjs +0 -1
  851. package/dist/kongponents396.es.js +0 -17
  852. /package/dist/{kongponents222.cjs → kongponents229.cjs} +0 -0
  853. /package/dist/{kongponents222.es.js → kongponents229.es.js} +0 -0
  854. /package/dist/{kongponents224.cjs → kongponents231.cjs} +0 -0
  855. /package/dist/{kongponents224.es.js → kongponents231.es.js} +0 -0
  856. /package/dist/{kongponents228.cjs → kongponents235.cjs} +0 -0
  857. /package/dist/{kongponents228.es.js → kongponents235.es.js} +0 -0
@@ -1,9 +1,9 @@
1
- import { defineComponent as ae, useCssVars as le, watch as f, useSlots as re, useTemplateRef as oe, ref as n, useAttrs as ne, computed as l, useId as N, onMounted as ie, nextTick as ue, openBlock as r, createElementBlock as c, normalizeClass as B, unref as v, createBlock as x, mergeProps as K, createSlots as se, withCtx as I, createTextVNode as L, toDisplayString as M, renderSlot as p, createCommentVNode as b, createElementVNode as W, withModifiers as T, createVNode as de, Transition as ce, Fragment as fe } from "vue";
2
- import ve from "./kongponents190.es.js";
1
+ import { defineComponent as ae, useCssVars as le, watch as f, useSlots as re, useTemplateRef as oe, ref as n, useAttrs as ne, computed as l, useId as N, onMounted as ie, nextTick as se, openBlock as r, createElementBlock as c, normalizeClass as B, unref as v, createBlock as I, mergeProps as K, createSlots as ue, withCtx as L, renderSlot as m, createTextVNode as x, toDisplayString as M, createCommentVNode as b, createElementVNode as W, withModifiers as T, createVNode as de, Transition as ce, Fragment as fe } from "vue";
2
+ import ve from "./kongponents184.es.js";
3
3
  import me from "./kongponents57.es.js";
4
- import { KUI_ICON_SIZE_40 as R } from "./kongponents183.es.js";
4
+ import { KUI_ICON_SIZE_40 as R } from "./kongponents182.es.js";
5
5
  import { VisibilityOffIcon as he, VisibilityIcon as ge } from "@kong/icons";
6
- const pe = ["id", "aria-describedby", "aria-invalid", "type", "value"], be = ["aria-label"], ye = ["id"], xe = /* @__PURE__ */ ae({
6
+ const pe = ["id", "aria-describedby", "aria-invalid", "type", "value"], be = ["aria-label"], ye = ["id"], Ie = /* @__PURE__ */ ae({
7
7
  inheritAttrs: !1,
8
8
  __name: "KInput",
9
9
  props: {
@@ -21,14 +21,14 @@ const pe = ["id", "aria-describedby", "aria-invalid", "type", "value"], be = ["a
21
21
  emits: ["input", "update:modelValue", "char-limit-exceeded"],
22
22
  setup(t, { expose: O, emit: D }) {
23
23
  le((e) => ({
24
- v091aff92: C.value,
25
- b534dd8e: P.value
24
+ v20a7ef3c: C.value,
25
+ v11afa32e: P.value
26
26
  })), f(() => t.hasError, (e) => {
27
27
  e && console.warn("KInput: `hasError` prop is deprecated. Please use `error` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kinput");
28
28
  }, { immediate: !0 }), f(() => t.labelAttributes.help, (e) => {
29
29
  e && console.warn("KInput: `help` property of `labelAttributes` prop is deprecated. Please use `info` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#klabel");
30
30
  });
31
- const y = D, o = re(), k = oe("inputElement"), i = n(""), m = n(!1), S = n(0), { stripRequiredLabel: H } = ve(), u = ne(), $ = l(() => u?.required !== void 0 && String(u?.required) !== "false"), J = N(), q = l(() => u.id ? String(u.id) : J), A = N(), U = l(() => H(t.label, $.value)), z = () => !!(t.labelAttributes?.info || o["label-tooltip"]), F = l({
31
+ const y = D, o = re(), k = oe("inputElement"), i = n(""), h = n(!1), S = n(0), { stripRequiredLabel: H } = ve(), s = ne(), $ = l(() => s?.required !== void 0 && String(s?.required) !== "false"), J = N(), q = l(() => s.id ? String(s.id) : J), A = N(), U = l(() => H(t.label, $.value)), z = () => !!(t.labelAttributes?.info || o["label-tooltip"]), F = l({
32
32
  get() {
33
33
  return t.modelValue;
34
34
  },
@@ -36,14 +36,14 @@ const pe = ["id", "aria-describedby", "aria-invalid", "type", "value"], be = ["a
36
36
  w({ target: { value: e } });
37
37
  }
38
38
  }), Z = l(() => {
39
- const e = { ...u };
39
+ const e = { ...s };
40
40
  return delete e.class, delete e.input, delete e.onInput, e;
41
- }), s = l(() => {
41
+ }), u = l(() => {
42
42
  const e = i.value?.toString().length || 0, a = t.modelValue?.toString().length || 0;
43
- let g = e;
44
- return !m.value && a && (g = a), !!t.characterLimit && g > t.characterLimit;
45
- }), j = l(() => s.value ? m.value ? `${i.value?.toString().length} / ${t.characterLimit}` : `${t.modelValue?.toString().length} / ${t.characterLimit}` : ""), G = () => !s.value && !t.error && !t.hasError && !!(t.help || o.help), h = l(() => s.value ? j.value : (t.error || t.hasError) && t.errorMessage ? t.errorMessage : t.help);
46
- f(s, (e, a) => {
43
+ let p = e;
44
+ return !h.value && a && (p = a), !!t.characterLimit && p > t.characterLimit;
45
+ }), j = l(() => u.value ? h.value ? `${i.value?.toString().length} / ${t.characterLimit}` : `${t.modelValue?.toString().length} / ${t.characterLimit}` : ""), G = () => !u.value && !t.error && !t.hasError && !!(t.help || o.help), g = l(() => u.value ? j.value : (t.error || t.hasError) && t.errorMessage ? t.errorMessage : t.help);
46
+ f(u, (e, a) => {
47
47
  e !== a && (y("char-limit-exceeded", {
48
48
  value: i.value,
49
49
  length: i.value.length,
@@ -57,38 +57,40 @@ const pe = ["id", "aria-describedby", "aria-invalid", "type", "value"], be = ["a
57
57
  const a = JSON.parse(JSON.stringify(e?.target?.value));
58
58
  Q(a);
59
59
  }, Q = (e) => {
60
- i.value = e, m.value = !0, y("input", e), y("update:modelValue", e);
61
- }, X = () => i.value || m.value ? i.value : t.modelValue;
60
+ i.value = e, h.value = !0, y("input", e), y("update:modelValue", e);
61
+ }, X = () => i.value || h.value ? i.value : t.modelValue;
62
62
  f(() => t.error, (e, a) => {
63
63
  e !== a && (S.value += 1);
64
64
  });
65
65
  const E = n(null), V = n(null), C = n(R), P = n(R), d = n(!1), Y = l(() => t.type === "password" && d.value ? "text" : t.type), _ = () => {
66
66
  if (!d.value && k.value) {
67
- const e = k.value, { selectionStart: a, selectionEnd: g, selectionDirection: ee } = e, te = e.value;
68
- e.value = te, e.setSelectionRange(a, g, ee ?? void 0);
67
+ const e = k.value, { selectionStart: a, selectionEnd: p, selectionDirection: ee } = e, te = e.value;
68
+ e.value = te, e.setSelectionRange(a, p, ee ?? void 0);
69
69
  }
70
70
  d.value = !d.value;
71
71
  };
72
72
  return ie(async () => {
73
- await ue(), E.value?.offsetWidth && (C.value = E.value.offsetWidth + "px"), V.value?.offsetWidth && (P.value = V.value.offsetWidth + "px");
73
+ await se(), E.value?.offsetWidth && (C.value = E.value.offsetWidth + "px"), V.value?.offsetWidth && (P.value = V.value.offsetWidth + "px");
74
74
  }), O({
75
75
  input: k
76
76
  }), (e, a) => (r(), c("div", {
77
- class: B(["k-input", [v(u).class, { "input-error": s.value || t.error || t.hasError }]])
77
+ class: B(["k-input", [v(s).class, { "input-error": u.value || t.error || t.hasError }]])
78
78
  }, [
79
- t.label ? (r(), x(me, K({
79
+ t.label || e.$slots.label ? (r(), I(me, K({
80
80
  key: 0,
81
81
  for: q.value
82
- }, t.labelAttributes, { required: $.value }), se({
83
- default: I(() => [
84
- L(M(U.value) + " ", 1)
82
+ }, t.labelAttributes, { required: $.value }), ue({
83
+ default: L(() => [
84
+ m(e.$slots, "label", {}, () => [
85
+ x(M(U.value), 1)
86
+ ], !0)
85
87
  ]),
86
88
  _: 2
87
89
  }, [
88
90
  z() ? {
89
91
  name: "tooltip",
90
- fn: I(() => [
91
- p(e.$slots, "label-tooltip", {}, void 0, !0)
92
+ fn: L(() => [
93
+ m(e.$slots, "label-tooltip", {}, void 0, !0)
92
94
  ]),
93
95
  key: "0"
94
96
  } : void 0
@@ -102,13 +104,13 @@ const pe = ["id", "aria-describedby", "aria-invalid", "type", "value"], be = ["a
102
104
  ref: E,
103
105
  class: "before-content-wrapper"
104
106
  }, [
105
- p(e.$slots, "before", {}, void 0, !0)
107
+ m(e.$slots, "before", {}, void 0, !0)
106
108
  ], 512)) : b("", !0),
107
109
  W("input", K({
108
110
  id: q.value,
109
111
  ref: "inputElement",
110
- "aria-describedby": h.value || o.help ? v(A) : void 0,
111
- "aria-invalid": t.error || t.hasError || s.value ? "true" : void 0,
112
+ "aria-describedby": g.value || o.help ? v(A) : void 0,
113
+ "aria-invalid": t.error || t.hasError || u.value ? "true" : void 0,
112
114
  class: "input",
113
115
  type: Y.value
114
116
  }, Z.value, {
@@ -132,30 +134,30 @@ const pe = ["id", "aria-describedby", "aria-invalid", "type", "value"], be = ["a
132
134
  onMouseup: a[1] || (a[1] = T(() => {
133
135
  }, ["prevent"]))
134
136
  }, [
135
- d.value ? (r(), x(v(he), {
137
+ d.value ? (r(), I(v(he), {
136
138
  key: 0,
137
139
  decorative: ""
138
- })) : (r(), x(v(ge), {
140
+ })) : (r(), I(v(ge), {
139
141
  key: 1,
140
142
  decorative: ""
141
143
  }))
142
- ], 40, be)) : p(e.$slots, "after", {}, void 0, !0, 1)
144
+ ], 40, be)) : m(e.$slots, "after", {}, void 0, !0, 1)
143
145
  ], 512)) : b("", !0)
144
146
  ], 2),
145
147
  de(ce, {
146
148
  mode: "out-in",
147
149
  name: "kongponents-fade-transition"
148
150
  }, {
149
- default: I(() => [
150
- h.value || o.help ? (r(), c("p", {
151
+ default: L(() => [
152
+ g.value || o.help ? (r(), c("p", {
151
153
  id: v(A),
152
154
  key: String(S.value),
153
155
  class: "help-text"
154
156
  }, [
155
- G() ? p(e.$slots, "help", {}, () => [
156
- L(M(h.value), 1)
157
+ G() ? m(e.$slots, "help", {}, () => [
158
+ x(M(g.value), 1)
157
159
  ], !0, 0) : (r(), c(fe, { key: 1 }, [
158
- L(M(h.value), 1)
160
+ x(M(g.value), 1)
159
161
  ], 64))
160
162
  ], 8, ye)) : b("", !0)
161
163
  ]),
@@ -165,5 +167,5 @@ const pe = ["id", "aria-describedby", "aria-invalid", "type", "value"], be = ["a
165
167
  }
166
168
  });
167
169
  export {
168
- xe as default
170
+ Ie as default
169
171
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("./kongponents30.cjs");;/* empty css */const p=require("@kong/icons"),b=require("./kongponents183.cjs"),m=e.defineComponent({__name:"KLabel",props:{info:{default:""},required:{type:Boolean},tooltipAttributes:{default:()=>({})},help:{default:""}},setup(o){e.watch(()=>o.help,t=>{t&&console.warn("KLabel: `help` prop is deprecated. Please use `info` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#klabel")},{immediate:!0});const r=e.useSlots(),a=()=>!!(o.help||o.info||r.tooltip),l=e.useId(),s=e.useTemplateRef("label"),u=["a[href]","audio[controls]","button","details","embed","iframe","img[usemap]",'input:not([type="hidden"])',"label","select","textarea","video[controls]","area[href]"].join(", ");function c(t){return t.closest(u)}function d(t){const i=t.target,n=c(i);n&&n!==s.value||t.preventDefault()}return(t,i)=>(e.openBlock(),e.createElementBlock("label",{ref:"label",class:e.normalizeClass(["k-label",{required:o.required}])},[e.renderSlot(t.$slots,"default",{},void 0,!0),a()?(e.openBlock(),e.createBlock(f.default,e.mergeProps({key:0},o.tooltipAttributes,{class:"label-tooltip","tooltip-id":e.unref(l),onClick:d}),{content:e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip",{},()=>[e.createTextVNode(e.toDisplayString(o.info||o.help),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(p.InfoIcon),{"aria-describedby":e.unref(l),class:"tooltip-trigger-icon",color:`var(--kui-color-text-neutral, ${e.unref(b.KUI_COLOR_TEXT_NEUTRAL)})`,tabindex:"0"},null,8,["aria-describedby","color"])]),_:3},16,["tooltip-id"])):e.createCommentVNode("",!0)],2))}});exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("./kongponents30.cjs");;/* empty css */const p=require("@kong/icons"),b=require("./kongponents182.cjs"),m=e.defineComponent({__name:"KLabel",props:{info:{default:""},required:{type:Boolean},tooltipAttributes:{default:()=>({})},help:{default:""}},setup(o){e.watch(()=>o.help,t=>{t&&console.warn("KLabel: `help` prop is deprecated. Please use `info` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#klabel")},{immediate:!0});const r=e.useSlots(),a=()=>!!(o.help||o.info||r.tooltip),l=e.useId(),s=e.useTemplateRef("label"),u=["a[href]","audio[controls]","button","details","embed","iframe","img[usemap]",'input:not([type="hidden"])',"label","select","textarea","video[controls]","area[href]"].join(", ");function c(t){return t.closest(u)}function d(t){const i=t.target,n=c(i);n&&n!==s.value||t.preventDefault()}return(t,i)=>(e.openBlock(),e.createElementBlock("label",{ref:"label",class:e.normalizeClass(["k-label",{required:o.required}])},[e.renderSlot(t.$slots,"default",{},void 0,!0),a()?(e.openBlock(),e.createBlock(f.default,e.mergeProps({key:0},o.tooltipAttributes,{class:"label-tooltip","tooltip-id":e.unref(l),onClick:d}),{content:e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip",{},()=>[e.createTextVNode(e.toDisplayString(o.info||o.help),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(p.InfoIcon),{"aria-describedby":e.unref(l),class:"tooltip-trigger-icon",color:`var(--kui-color-text-neutral, ${e.unref(b.KUI_COLOR_TEXT_NEUTRAL)})`,tabindex:"0"},null,8,["aria-describedby","color"])]),_:3},16,["tooltip-id"])):e.createCommentVNode("",!0)],2))}});exports.default=m;
@@ -2,7 +2,7 @@ import { defineComponent as b, watch as h, useSlots as g, useId as k, useTemplat
2
2
  import x from "./kongponents30.es.js";
3
3
  /* empty css */
4
4
  import { InfoIcon as B } from "@kong/icons";
5
- import { KUI_COLOR_TEXT_NEUTRAL as S } from "./kongponents183.es.js";
5
+ import { KUI_COLOR_TEXT_NEUTRAL as S } from "./kongponents182.es.js";
6
6
  const w = /* @__PURE__ */ b({
7
7
  __name: "KLabel",
8
8
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("focus-trap-vue"),T=require("./kongponents199.cjs"),B=require("./kongponents38.cjs"),N=require("@kong/icons"),g=require("./kongponents183.cjs"),k=require("./kongponents182.cjs"),w=require("./kongponents203.cjs"),$=["aria-label"],O={key:0,class:"modal-header"},A={key:0,class:"modal-title"},I={class:"modal-footer"},D={class:"footer-actions"},z=e.defineComponent({inheritAttrs:!1,__name:"KModal",props:{visible:{type:Boolean},title:{default:""},actionButtonText:{default:"Submit"},actionButtonAppearance:{default:"primary"},actionButtonDisabled:{type:Boolean},hideCancelButton:{type:Boolean},cancelButtonText:{default:"Cancel"},cancelButtonAppearance:{default:"tertiary"},cancelButtonDisabled:{type:Boolean},tabbableOptions:{default:()=>({})},maxWidth:{default:"500px"},maxHeight:{default:"calc(100vh - 200px)"},closeOnBackdropClick:{type:Boolean},closeOnEscape:{type:Boolean,default:!0},hideCloseIcon:{type:Boolean},fullScreen:{type:Boolean},inputAutofocus:{type:Boolean},zIndex:{default:1100}},emits:["proceed","cancel"],setup(o,{emit:C}){e.useCssVars(t=>({c9546bd4:t.zIndex,v6d2ff071:h.value,v7fba0424:S.value}));const E=C,i=e.useSlots();e.provide(w.POPOVER_PARENT_ZINDEX_KEY,e.computed(()=>o.zIndex));const r=e.useAttrs(),p=T.useTextSelection(),u=`k-modal-${e.useId()}-overflow-hidden`,n=e.ref(null),f=e.ref(null),h=e.computed(()=>o.fullScreen&&!i.content?"95%":k.normalizeSize(o.maxWidth)),S=e.computed(()=>o.fullScreen&&!i.content?"95vh":k.normalizeSize(o.maxHeight)),V=e.computed(()=>{const t=Object.assign({},r);return delete t.class,t}),m=()=>!!o.title||!!i.title||!o.hideCloseIcon,v=t=>{o.visible&&o.closeOnEscape&&t.key==="Escape"&&b(!0)},b=(t=!1,a)=>{(t||a?.target?.classList?.contains("modal-backdrop")&&o.closeOnBackdropClick&&!p.text.value)&&E("cancel")},s=async t=>{t?(await e.nextTick(),await new Promise(a=>setTimeout(a,0)),n.value?.activate()):n.value?.deactivate()},d=t=>{typeof document<"u"&&(t?document?.addEventListener("keydown",v):document?.removeEventListener("keydown",v))},y=()=>{const t=n.value?.$el?.querySelector(".modal-content")?.querySelectorAll("input");t?.length&&Array.from(t).every(a=>!a.disabled&&!a.readOnly?(a.focus(),!1):!0)};e.watch(()=>o.visible,async t=>{t?(await s(!0),o.inputAutofocus&&y(),d(!0)):(await s(!1),d(!1)),typeof document<"u"&&document?.body?.classList?.toggle(u,t)},{immediate:!0}),e.watch(()=>o.inputAutofocus,async t=>{t&&(await e.nextTick(),y())});const l=e.ref(null);return e.onMounted(()=>{typeof document<"u"&&(l.value=document.createElement("style"),l.value.textContent=`body.${u} { overflow: hidden; }`,document.head.appendChild(l.value))}),e.onBeforeUnmount(async()=>{await s(!1),d(!1)}),e.onUnmounted(()=>{l.value?.remove()}),(t,a)=>o.visible?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,"aria-label":o.title,"aria-modal":"true",class:["k-modal",[e.unref(r).class]]},V.value,{role:"dialog"}),[e.createElementVNode("div",{ref_key:"modalWrapperElement",ref:f,class:e.normalizeClass(["modal-backdrop",{"modal-full-screen":o.fullScreen&&!t.$slots.content}]),onClick:a[3]||(a[3]=c=>b(!1,c))},[e.createVNode(e.unref(x.FocusTrap),{ref_key:"focusTrapElement",ref:n,active:!1,"fallback-focus":()=>f.value,"tabbable-options":o.tabbableOptions},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["modal-container",{"custom-content":t.$slots.content}]),tabindex:"-1"},[e.renderSlot(t.$slots,"content",{},()=>[m()?(e.openBlock(),e.createElementBlock("div",O,[o.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",A,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),o.hideCloseIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,"aria-label":"Close",class:"close-icon","data-testid":"modal-close-icon",type:"button",onClick:a[0]||(a[0]=c=>t.$emit("cancel"))},[e.createVNode(e.unref(N.CloseIcon),{color:`var(--kui-color-text-neutral, ${e.unref(g.KUI_COLOR_TEXT_NEUTRAL)})`,decorative:""},null,8,["color"])]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["modal-content",{"no-header":!m()}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2),e.createElementVNode("div",I,[e.renderSlot(t.$slots,"footer",{},()=>[e.createElementVNode("div",D,[e.renderSlot(t.$slots,"footer-actions",{},()=>[o.hideCancelButton?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(B.default,{key:0,appearance:o.cancelButtonAppearance,"data-testid":"modal-cancel-button",disabled:o.cancelButtonDisabled,onClick:a[1]||(a[1]=c=>t.$emit("cancel"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelButtonText),1)]),_:1},8,["appearance","disabled"])),e.createVNode(B.default,{appearance:o.actionButtonAppearance,"data-testid":"modal-action-button",disabled:o.actionButtonDisabled,onClick:a[2]||(a[2]=c=>t.$emit("proceed"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.actionButtonText),1)]),_:1},8,["appearance","disabled"])],!0)])],!0)])],!0)],2)]),_:3},8,["fallback-focus","tabbable-options"])],2)],16,$)):e.createCommentVNode("",!0)}});exports.default=z;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("focus-trap-vue"),T=require("./kongponents188.cjs"),B=require("./kongponents38.cjs"),N=require("@kong/icons"),g=require("./kongponents182.cjs"),k=require("./kongponents189.cjs"),w=require("./kongponents195.cjs"),$=["aria-label"],O={key:0,class:"modal-header"},A={key:0,class:"modal-title"},I={class:"modal-footer"},D={class:"footer-actions"},z=e.defineComponent({inheritAttrs:!1,__name:"KModal",props:{visible:{type:Boolean},title:{default:""},actionButtonText:{default:"Submit"},actionButtonAppearance:{default:"primary"},actionButtonDisabled:{type:Boolean},hideCancelButton:{type:Boolean},cancelButtonText:{default:"Cancel"},cancelButtonAppearance:{default:"tertiary"},cancelButtonDisabled:{type:Boolean},tabbableOptions:{default:()=>({})},maxWidth:{default:"500px"},maxHeight:{default:"calc(100vh - 200px)"},closeOnBackdropClick:{type:Boolean},closeOnEscape:{type:Boolean,default:!0},hideCloseIcon:{type:Boolean},fullScreen:{type:Boolean},inputAutofocus:{type:Boolean},zIndex:{default:1100}},emits:["proceed","cancel"],setup(o,{emit:C}){e.useCssVars(t=>({c9546bd4:t.zIndex,v6d2ff071:h.value,v7fba0424:S.value}));const E=C,i=e.useSlots();e.provide(w.POPOVER_PARENT_ZINDEX_KEY,e.computed(()=>o.zIndex));const r=e.useAttrs(),p=T.useTextSelection(),u=`k-modal-${e.useId()}-overflow-hidden`,n=e.ref(null),f=e.ref(null),h=e.computed(()=>o.fullScreen&&!i.content?"95%":k.normalizeSize(o.maxWidth)),S=e.computed(()=>o.fullScreen&&!i.content?"95vh":k.normalizeSize(o.maxHeight)),V=e.computed(()=>{const t=Object.assign({},r);return delete t.class,t}),m=()=>!!o.title||!!i.title||!o.hideCloseIcon,v=t=>{o.visible&&o.closeOnEscape&&t.key==="Escape"&&b(!0)},b=(t=!1,a)=>{(t||a?.target?.classList?.contains("modal-backdrop")&&o.closeOnBackdropClick&&!p.text.value)&&E("cancel")},s=async t=>{t?(await e.nextTick(),await new Promise(a=>setTimeout(a,0)),n.value?.activate()):n.value?.deactivate()},d=t=>{typeof document<"u"&&(t?document?.addEventListener("keydown",v):document?.removeEventListener("keydown",v))},y=()=>{const t=n.value?.$el?.querySelector(".modal-content")?.querySelectorAll("input");t?.length&&Array.from(t).every(a=>!a.disabled&&!a.readOnly?(a.focus(),!1):!0)};e.watch(()=>o.visible,async t=>{t?(await s(!0),o.inputAutofocus&&y(),d(!0)):(await s(!1),d(!1)),typeof document<"u"&&document?.body?.classList?.toggle(u,t)},{immediate:!0}),e.watch(()=>o.inputAutofocus,async t=>{t&&(await e.nextTick(),y())});const l=e.ref(null);return e.onMounted(()=>{typeof document<"u"&&(l.value=document.createElement("style"),l.value.textContent=`body.${u} { overflow: hidden; }`,document.head.appendChild(l.value))}),e.onBeforeUnmount(async()=>{await s(!1),d(!1)}),e.onUnmounted(()=>{l.value?.remove()}),(t,a)=>o.visible?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,"aria-label":o.title,"aria-modal":"true",class:["k-modal",[e.unref(r).class]]},V.value,{role:"dialog"}),[e.createElementVNode("div",{ref_key:"modalWrapperElement",ref:f,class:e.normalizeClass(["modal-backdrop",{"modal-full-screen":o.fullScreen&&!t.$slots.content}]),onClick:a[3]||(a[3]=c=>b(!1,c))},[e.createVNode(e.unref(x.FocusTrap),{ref_key:"focusTrapElement",ref:n,active:!1,"fallback-focus":()=>f.value,"tabbable-options":o.tabbableOptions},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["modal-container",{"custom-content":t.$slots.content}]),tabindex:"-1"},[e.renderSlot(t.$slots,"content",{},()=>[m()?(e.openBlock(),e.createElementBlock("div",O,[o.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",A,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),o.hideCloseIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,"aria-label":"Close",class:"close-icon","data-testid":"modal-close-icon",type:"button",onClick:a[0]||(a[0]=c=>t.$emit("cancel"))},[e.createVNode(e.unref(N.CloseIcon),{color:`var(--kui-color-text-neutral, ${e.unref(g.KUI_COLOR_TEXT_NEUTRAL)})`,decorative:""},null,8,["color"])]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["modal-content",{"no-header":!m()}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2),e.createElementVNode("div",I,[e.renderSlot(t.$slots,"footer",{},()=>[e.createElementVNode("div",D,[e.renderSlot(t.$slots,"footer-actions",{},()=>[o.hideCancelButton?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(B.default,{key:0,appearance:o.cancelButtonAppearance,"data-testid":"modal-cancel-button",disabled:o.cancelButtonDisabled,onClick:a[1]||(a[1]=c=>t.$emit("cancel"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelButtonText),1)]),_:1},8,["appearance","disabled"])),e.createVNode(B.default,{appearance:o.actionButtonAppearance,"data-testid":"modal-action-button",disabled:o.actionButtonDisabled,onClick:a[2]||(a[2]=c=>t.$emit("proceed"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.actionButtonText),1)]),_:1},8,["appearance","disabled"])],!0)])],!0)])],!0)],2)]),_:3},8,["fallback-focus","tabbable-options"])],2)],16,$)):e.createCommentVNode("",!0)}});exports.default=z;
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as H, useCssVars as P, useSlots as R, provide as M, computed as u, useAttrs as U, useId as F, ref as y, watch as g, nextTick as x, onMounted as q, onBeforeUnmount as X, onUnmounted as Y, openBlock as a, createElementBlock as r, mergeProps as j, unref as f, createElementVNode as l, normalizeClass as B, createVNode as k, withCtx as p, renderSlot as n, createTextVNode as h, toDisplayString as C, createCommentVNode as i, createBlock as Z } from "vue";
2
2
  import { FocusTrap as G } from "focus-trap-vue";
3
- import { useTextSelection as J } from "./kongponents199.es.js";
3
+ import { useTextSelection as J } from "./kongponents188.es.js";
4
4
  import I from "./kongponents38.es.js";
5
5
  import { CloseIcon as Q } from "@kong/icons";
6
- import { KUI_COLOR_TEXT_NEUTRAL as _ } from "./kongponents183.es.js";
7
- import { normalizeSize as D } from "./kongponents182.es.js";
8
- import { POPOVER_PARENT_ZINDEX_KEY as ee } from "./kongponents203.es.js";
6
+ import { KUI_COLOR_TEXT_NEUTRAL as _ } from "./kongponents182.es.js";
7
+ import { normalizeSize as D } from "./kongponents189.es.js";
8
+ import { POPOVER_PARENT_ZINDEX_KEY as ee } from "./kongponents195.es.js";
9
9
  const te = ["aria-label"], oe = {
10
10
  key: 0,
11
11
  class: "modal-header"
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./kongponents38.cjs"),m=require("@kong/icons"),f=require("./kongponents183.cjs"),y=["aria-label"],p={class:"k-modal-fullscreen-body-header"},h={key:0,class:"body-header"},k={key:1,class:"body-header-description"},b={class:"k-modal-fullscreen-body"},v={class:"k-modal-fullscreen-header"},V={"aria-level":"2",class:"k-modal-fullscreen-header-description",role:"heading"},g={class:"k-modal-fullscreen-title"},N={class:"header-icon"},S={class:"header-content"},B={class:"k-modal-fullscreen-action"},E={class:"k-modal-fullscreen-action-buttons"},C={key:0,class:"k-modal-fullscreen-footer"},T={class:"k-modal-fullscreen-action"},w={class:"k-modal-fullscreen-action-buttons"},$=e.defineComponent({__name:"KModalFullscreen",props:{title:{type:String,required:!0},bodyHeader:{type:String,default:""},bodyHeaderDescription:{type:String,default:""},isVisible:{type:Boolean,default:!1},cancelButtonText:{type:String,default:"Cancel"},actionButtonText:{type:String,default:"Save"},actionButtonAppearance:{type:String,default:"primary"},cancelButtonAppearance:{type:String,default:"secondary"},iconString:{type:String,default:"kong"}},emits:["canceled","proceed"],setup(o,{emit:i}){const a=o,c=i,l=e.ref(null),u=e.computed(()=>!!a.isVisible);e.watch(()=>a.isVisible,async()=>{typeof document>"u"||(u.value?(document.body.style.overflow="hidden",await e.nextTick(),l.value&&l.value.focus()):document.body.style.overflow="")});const s=t=>{a.isVisible&&(t.keyCode===27?d():t.keyCode===13&&n())},d=()=>{c("canceled")},n=()=>{c("proceed")};return e.onMounted(()=>{document.addEventListener("keydown",s),console.warn(`The Kongponents 'KModalFullscreen' component is deprecated and will be removed in the next major release.
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./kongponents38.cjs"),m=require("@kong/icons"),f=require("./kongponents182.cjs"),y=["aria-label"],p={class:"k-modal-fullscreen-body-header"},h={key:0,class:"body-header"},k={key:1,class:"body-header-description"},b={class:"k-modal-fullscreen-body"},v={class:"k-modal-fullscreen-header"},V={"aria-level":"2",class:"k-modal-fullscreen-header-description",role:"heading"},g={class:"k-modal-fullscreen-title"},N={class:"header-icon"},S={class:"header-content"},B={class:"k-modal-fullscreen-action"},E={class:"k-modal-fullscreen-action-buttons"},C={key:0,class:"k-modal-fullscreen-footer"},T={class:"k-modal-fullscreen-action"},w={class:"k-modal-fullscreen-action-buttons"},$=e.defineComponent({__name:"KModalFullscreen",props:{title:{type:String,required:!0},bodyHeader:{type:String,default:""},bodyHeaderDescription:{type:String,default:""},isVisible:{type:Boolean,default:!1},cancelButtonText:{type:String,default:"Cancel"},actionButtonText:{type:String,default:"Save"},actionButtonAppearance:{type:String,default:"primary"},cancelButtonAppearance:{type:String,default:"secondary"},iconString:{type:String,default:"kong"}},emits:["canceled","proceed"],setup(o,{emit:i}){const a=o,c=i,l=e.ref(null),u=e.computed(()=>!!a.isVisible);e.watch(()=>a.isVisible,async()=>{typeof document>"u"||(u.value?(document.body.style.overflow="hidden",await e.nextTick(),l.value&&l.value.focus()):document.body.style.overflow="")});const s=t=>{a.isVisible&&(t.keyCode===27?d():t.keyCode===13&&n())},d=()=>{c("canceled")},n=()=>{c("proceed")};return e.onMounted(()=>{document.addEventListener("keydown",s),console.warn(`The Kongponents 'KModalFullscreen' component is deprecated and will be removed in the next major release.
2
2
  We suggest using 'KModal' component instead.
3
3
  Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`)}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",s)}),e.onUnmounted(()=>{document.body.style.overflow=""}),(t,D)=>o.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,"aria-label":o.title,"aria-modal":"true",class:"k-modal-fullscreen isOpen",role:"dialog",onKeyup:[e.withKeys(n,["enter"]),e.withKeys(d,["esc"])]},[e.createElementVNode("div",{ref_key:"modalBodyContent",ref:l,class:e.normalizeClass(["k-modal-fullscreen-dialog",{"has-footer":t.$slots["footer-content"]}]),tabindex:"0"},[e.createElementVNode("div",p,[t.$slots["body-header"]||o.bodyHeader?(e.openBlock(),e.createElementBlock("div",h,[e.renderSlot(t.$slots,"body-header",{},()=>[e.createTextVNode(e.toDisplayString(o.bodyHeader),1)],!0)])):e.createCommentVNode("",!0),t.$slots["body-header-description"]||o.bodyHeaderDescription?(e.openBlock(),e.createElementBlock("div",k,[e.renderSlot(t.$slots,"body-header-description",{},()=>[e.createTextVNode(e.toDisplayString(o.bodyHeaderDescription),1)],!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",b,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",v,[e.createElementVNode("div",V,[e.createElementVNode("div",g,[e.createElementVNode("span",N,[e.renderSlot(t.$slots,"header-icon",{},()=>[e.createVNode(e.unref(m.KongIcon),{color:`var(--kui-color-text-decorative-aqua, ${e.unref(f.KUI_COLOR_TEXT_DECORATIVE_AQUA)})`},null,8,["color"])],!0)]),e.createElementVNode("span",S,[e.renderSlot(t.$slots,"header-content",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])]),e.createElementVNode("div",B,[e.createElementVNode("div",E,[e.renderSlot(t.$slots,"action-buttons",{},()=>[e.createVNode(r.default,{appearance:o.cancelButtonAppearance,class:"cancel-button",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelButtonText),1)]),_:1},8,["appearance"]),e.createVNode(r.default,{appearance:o.actionButtonAppearance,class:"proceed-button",onClick:n},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.actionButtonText),1)]),_:1},8,["appearance"])],!0)])])])]),t.$slots["footer-content"]?(e.openBlock(),e.createElementBlock("div",C,[e.renderSlot(t.$slots,"footer-content",{},void 0,!0),e.createElementVNode("div",T,[e.createElementVNode("div",w,[e.renderSlot(t.$slots,"action-buttons",{},()=>[e.createVNode(r.default,{appearance:o.actionButtonAppearance,class:"proceed-button",onClick:n},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.actionButtonText),1)]),_:1},8,["appearance"])],!0)])])])):e.createCommentVNode("",!0)],2)],40,y)):e.createCommentVNode("",!0)}});exports.default=$;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, ref as $, computed as w, watch as S, nextTick as T, onMounted as K, onBeforeUnmount as V, onUnmounted as A, openBlock as d, createElementBlock as c, withKeys as k, createElementVNode as o, normalizeClass as E, renderSlot as n, createTextVNode as a, toDisplayString as s, createCommentVNode as i, createVNode as r, unref as v, withCtx as y } from "vue";
2
2
  import p from "./kongponents38.es.js";
3
3
  import { KongIcon as D } from "@kong/icons";
4
- import { KUI_COLOR_TEXT_DECORATIVE_AQUA as H } from "./kongponents183.es.js";
4
+ import { KUI_COLOR_TEXT_DECORATIVE_AQUA as H } from "./kongponents182.es.js";
5
5
  const _ = ["aria-label"], O = { class: "k-modal-fullscreen-body-header" }, M = {
6
6
  key: 0,
7
7
  class: "body-header"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Ne=require("./kongponents190.cjs"),te=require("./kongponents36.cjs"),le=require("./kongponents55.cjs"),Ee=require("./kongponents57.cjs"),qe=require("./kongponents62.cjs"),ze=require("./kongponents29.cjs"),Ke=require("./kongponents30.cjs");;/* empty css */const $e=require("./kongponents197.cjs"),Fe=require("./kongponents198.cjs"),x=require("@kong/icons"),V=require("./kongponents183.cjs"),Me=require("vue-clamp"),Pe=require("./kongponents180.cjs"),De=require("./kongponents199.cjs"),Te=require("./kongponents160.cjs"),oe=require("./kongponents182.cjs"),Ue={"data-testid":"multiselect-container"},Oe=["id","tabindex"],Re={key:0},Le={key:1,class:"expanded-selection-empty"},He={class:"multiselect-selection-badge-label"},We=["aria-label","onClick"],Ge={class:"multiselect-icons-container"},Je={key:0,class:"multiselect-input-wrapper"},Ze={key:2,class:"multiselect-empty","data-propagate-clicks":"false"},je={key:1,class:"help-text"},Qe="Filter...",Xe=e.defineComponent({inheritAttrs:!1,__name:"KMultiselect",props:{modelValue:{default:()=>[]},label:{default:""},help:{default:""},error:{type:Boolean},labelAttributes:{default:()=>({})},placeholder:{default:""},searchPlaceholder:{default:""},kpopAttributes:{default:()=>({})},dropdownMaxHeight:{default:"300px"},width:{default:"100%"},selectedRowCount:{default:1},collapsedContext:{type:Boolean},items:{default:()=>[]},filterFunction:{type:Function,default:a=>a.items.filter(B=>B.label?.toLowerCase().includes(a.query?.toLowerCase()))},autosuggest:{type:Boolean},enableItemCreation:{type:Boolean},loading:{type:Boolean},dropdownFooterText:{default:""},dropdownFooterTextPosition:{},dropdownFooterPosition:{},itemCreationValidator:{type:Function,default:()=>!0}},emits:["selected","input","change","update:modelValue","query-change","item-added","item-removed","open","close"],setup(a,{emit:B}){e.useCssVars(t=>({v3e0350e0:ye.value}));const ae=t=>{const l=[],o=s=>{"value"in s?l.push(s.value):"items"in s&&Array.isArray(s.items)&&s.items.forEach(n=>l.push(n.value))};return t.forEach(o),l},se=t=>{const l=ae(t),o=new Set(l);return l.length===o.size},ne=t=>{for(const l of t)if("value"in l){if(l.label===void 0||l.value===void 0)return!1}else if("items"in l&&Array.isArray(l.items)){if(l.label===void 0)return!1;for(const o of l.items)if(o.label===void 0||o.value===void 0)return!1}return!0},p=e.useAttrs(),A=e.useSlots(),{cloneDeep:ue,stripRequiredLabel:ie}=Ne.default();e.watch(()=>a.items,t=>{!t.length||ne(t)&&se(t)||console.warn("KMultiselect: Items must have a label & value and value must be unique")},{immediate:!0});const m=B,z=e.useTemplateRef("kMultiselectItems"),K=e.computed(()=>p.required!==void 0&&String(p.required)!=="false"),re=e.computed(()=>ie(a.label,K.value)),ce=()=>!!(a.labelAttributes?.help||a.labelAttributes?.info||A["label-tooltip"]),$=t=>w.value||b.value||t?.disabled?"neutral":a.error?"danger":"info",F={hideCaret:!0,placement:"bottom-start",popoverTimeout:0,popoverClasses:"k-multiselect-popover multiselect-popover"},de=e.useId(),M=e.computed(()=>p.id?String(p.id):de),P=e.useTemplateRef("multiselectElement"),fe=e.useTemplateRef("multiselectDropdownInputElement"),v=e.ref(""),D=e.computed(()=>!(!v.value||r.value.filter(t=>t.label===v.value).length)),T=e.ref(null),r=e.ref([]),g=e.ref([]),S=e.ref([]),c=e.ref([]),ve=t=>t.map(l=>l.label).join(", "),U=e.ref(!1),C=e.ref(!1),N=e.ref(!1),w=e.computed(()=>p?.disabled!==void 0&&String(p?.disabled)!=="false"),b=e.computed(()=>p?.readonly!==void 0&&String(p?.readonly)!=="false"),me=e.computed({get(){return a.modelValue},set(t){const l=r.value.filter(o=>t.includes(o.value));l.length?G(l):t.length||q()}}),pe=e.computed(()=>{const t={...p};return delete t.class,t}),O=()=>!!(a.dropdownFooterText||A["dropdown-footer-text"]||A["dropdown-footer"]),he=e.computed(()=>a.dropdownFooterPosition??a.dropdownFooterTextPosition??"sticky"),ge=()=>({...F,...a.kpopAttributes,popoverClasses:`${F.popoverClasses} ${a.kpopAttributes?.popoverClasses??""} ${O()?"has-dropdown-footer":""}`,width:I.value+"px",maxWidth:I.value+"px",disabled:p.disabled!==void 0&&String(p.disabled)!=="false"||p.readonly!==void 0&&String(p.readonly)!=="false"}),ye=e.computed(()=>oe.normalizeSize(a.dropdownMaxHeight)),be=e.computed(()=>{const t=a.width?a.width:"300";return oe.normalizeSize(t)}),ke=e.computed(()=>({width:be.value})),R=e.computed(()=>({width:I.value+"px"})),L=e.computed(()=>{if(c.value.length===0){if(!a.collapsedContext&&a.placeholder)return a.placeholder;if(a.collapsedContext&&a.searchPlaceholder)return a.searchPlaceholder}return c.value.length===1?`${c.value.length} item selected`:`${c.value.length} items selected`}),we=e.computed(()=>a.autosuggest?r.value:a.filterFunction({items:r.value,query:v.value})),H=e.computed(()=>{if(a.autosuggest||!v.value)return g.value;const t=we.value,l=new Set(t.map(s=>s.value)),o=[];for(const s of g.value)if(y(s)){const n=s.items.filter(u=>l.has(u.value));n.length>0&&o.push({label:s.label,key:s.key,items:n})}else l.has(s.value)&&o.push(s);return o}),Ce=t=>{(w.value||t?.target?.dataset.propagateClicks==="false")&&t.stopPropagation()},W=async(t,l,o)=>{t?(m("open"),l.value||(v.value="",o(),j(),await e.nextTick(),fe.value?.$el?.querySelector("input")?.focus({preventScroll:!0}))):(m("close"),l.value&&(v.value="",o()))},Ie=t=>{const l=new Map(c.value.map(o=>[o.value,o]));c.value=t.map(o=>l.get(o)).filter(o=>o!==void 0)},G=t=>{t.forEach(l=>{const o=r.value.filter(s=>s.value===l.value)?.[0]||null;o&&(o.selected=!0,c.value.filter(s=>s.value===o.value).length||c.value.push(o))})},Se=t=>{const l=new Set(t.map(o=>o.value));c.value=c.value.filter(o=>!l.has(o.value)),t.forEach(o=>{o.selected=!1,a.enableItemCreation&&o.custom&&(r.value=r.value.filter(s=>s.value!==o.value),g.value=g.value.filter(s=>y(s)?!0:s.value!==o.value),m("item-removed",o))})},E=(t,l)=>{let o=!1,s=l?t:r.value.filter(u=>u.value===t.value)?.[0]||null;if(a.enableItemCreation&&s?.custom&&(o=!0),s===null&&(s=c.value.filter(u=>u.value===t.value)?.[0]||null),s===null)return;s.selected?(c.value=c.value.filter(u=>u.value!==t.value),s.selected=!1,o&&(r.value=r.value.filter(u=>u.value!==t.value),g.value=g.value.filter(u=>y(u)?!0:u.value!==t.value),m("item-removed",t))):(s.selected=!0,c.value.push(s),l&&(s.custom=!0,r.value.push(s),g.value.unshift(s)));const n=c.value.map(u=>u.value);m("selected",c.value),m("change",s),m("update:modelValue",n)},J=t=>{a.enableItemCreation&&Z(),t.preventDefault()},Z=()=>{if(!a.enableItemCreation||!v.value||!D.value||!a.itemCreationValidator(v.value))return;const t=r.value.length+1,l={label:v.value.trim(),value:Te.getUniqueStringId(),key:`${Pe.sanitizeInput(v.value.trim()).replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${t}`};m("item-added",l),E(l,!0),v.value=""},y=t=>"items"in t&&Array.isArray(t.items),j=()=>{const t=[],l=[],o=[];for(const u of H.value)y(u)?o.push(u):l.push(u);const s=l.filter(u=>u.selected),n=l.filter(u=>!u.selected);t.push(...s,...n);for(const u of o){const i=u.items.filter(d=>d.selected),h=u.items.filter(d=>!d.selected);t.push({label:u.label,key:u.key,items:[...i,...h]})}S.value=t},q=()=>{r.value.forEach(l=>{l.disabled||(l.selected=!1,l.custom&&m("item-removed",l))}),r.value=r.value.filter(l=>!(l.custom&&!l.disabled)),g.value=g.value.filter(l=>y(l)?!0:!(l.custom&&!l.disabled)),c.value=c.value.filter(l=>l.disabled),v.value="";const t=c.value.map(l=>l.value);m("selected",c.value),m("update:modelValue",t),m("query-change","")},Q=t=>{v.value=t.trim(),m("query-change",t.trim())},xe=(t,l)=>{t.keyCode===27&&(l.value=!1),(t.key==="ArrowDown"||t.key==="ArrowUp")&&z.value?.setFocus(t.key==="ArrowDown"?"down":"up")},X=()=>{T.value?.showPopover()},Ve=t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&z.value?.setFocus(t.key==="ArrowDown"?"down":"up")},Be=async()=>{N.value=!0,Y()},Y=()=>{U.value||(U.value=!0,m("query-change",""))};e.watch(H,()=>{j()}),e.watch(me,(t,l)=>{if(JSON.stringify(t)!==JSON.stringify(l)){const o=c.value.map(d=>d.value);if(JSON.stringify(o)===JSON.stringify(t))return;if(!t.length){q();return}const s=new Set(l),n=new Set(t),u=new Set(o),i=r.value.filter(d=>n.has(d.value)&&!u.has(d.value)),h=c.value.filter(d=>!n.has(d.value)&&s.has(d.value));h.length&&Se(h),i.length&&G(i),Ie(t)}},{flush:"post"}),e.watch(()=>a.items,(t,l)=>{if(JSON.stringify(t)===JSON.stringify(l))return;const o=ue(a.items),s=o.some(i=>y(i)),n=[],u=[];if(s)for(const i of o)y(i)?n.push(...i.items):n.push(i);else{const i=new Map;for(const f of o)y(f)||(f.group&&(i.has(f.group)||i.set(f.group,[]),i.get(f.group).push(f)),n.push(f));const h=Array.from(i.keys()).sort((f,k)=>f.toLowerCase().localeCompare(k.toLowerCase())),d=n.filter(f=>!f.group);u.push(...d);for(const f of h)u.push({label:f,items:i.get(f)})}r.value=n;for(let i=0;i<r.value.length;i++){r.value[i].selected===void 0&&(r.value[i].selected=!1);let h=`${r.value[i].label?.replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${i}`;if(h.includes("undefined")&&(h=`multiselect-item-label-${i}`),r.value[i].key=h,a.modelValue.includes(r.value[i].value)||r.value[i].selected){const d=r.value[i];d.selected=!0,c.value.filter(f=>f.value===d.value).length||c.value.push(d)}}if(s){const i=[],h=[];for(const d of o)if(y(d)){const f=d.items.map(k=>r.value.find(Ae=>Ae.value===k.value)).filter(k=>k!==void 0);h.push({label:d.label,key:d.key,items:f})}else{const f=r.value.find(k=>k.value===d.value);f&&i.push(f)}u.push(...i,...h)}g.value=u},{deep:!0,immediate:!0});const I=e.ref(300),_=e.ref(!1),ee=async()=>{I.value=300,await e.nextTick(),I.value=P.value?.clientWidth||300};return e.onMounted(async()=>{await ee(),_.value=!0}),De.useResizeObserver(P,()=>{ee()}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-multiselect",[t.$attrs.class,{"multiselect-error":a.error}]]),style:e.normalizeStyle(ke.value)},[a.label?(e.openBlock(),e.createBlock(Ee.default,e.mergeProps({key:0},a.labelAttributes,{"data-testid":a.labelAttributes["data-testid"]?a.labelAttributes["data-testid"]:"multiselect-label",for:M.value,required:K.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(re.value)+" ",1)]),_:2},[ce()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["data-testid","for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ue,[e.createVNode(ze.default,null,{default:e.withCtx(({isToggled:o,toggle:s})=>[e.createVNode(qe.default,e.mergeProps({ref_key:"popper",ref:T,"hide-close-icon":"",offset:`var(--kui-space-40, ${e.unref(V.KUI_SPACE_40)})`},ge(),{onClose:()=>W(!1,o,s),onOpen:()=>W(!0,o,s)}),{content:e.withCtx(()=>[e.createElementVNode("div",{class:"multiselect-list",onClick:l[7]||(l[7]=e.withModifiers(()=>{},["stop"])),onMouseenter:l[8]||(l[8]=()=>C.value=!0),onMouseleave:l[9]||(l[9]=()=>C.value=!1)},[!a.collapsedContext&&!b.value?(e.openBlock(),e.createElementBlock("div",Je,[e.createVNode(le.default,{ref:"multiselectDropdownInputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"multiselect-dropdown-input","data-testid":"multiselect-dropdown-input","model-value":v.value,name:"multiselect-options-search",placeholder:a.searchPlaceholder||Qe,spellcheck:"false",type:"text",onClick:l[5]||(l[5]=e.withModifiers(()=>{},["stop"])),onFocus:Y,onKeydown:e.withKeys(J,["enter"]),onKeyup:[Ve,l[6]||(l[6]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":Q},null,8,["model-value","placeholder"])])):e.createCommentVNode("",!0),e.createVNode($e.default,{ref:"kMultiselectItems","filter-string":v.value,"item-creation-enabled":a.enableItemCreation&&D.value,"item-creation-valid":a.itemCreationValidator(v.value),items:S.value,onAddItem:Z,onSelected:E},{content:e.withCtx(({item:n})=>[e.renderSlot(t.$slots,"item-template",{class:"multiselect-item",item:n},void 0,!0)]),_:3},8,["filter-string","item-creation-enabled","item-creation-valid","items"]),!S.value.length&&!t.$slots.empty&&!a.enableItemCreation?(e.openBlock(),e.createBlock(Fe.default,{key:"multiselect-empty-item",class:"multiselect-empty-item","data-testid":"multiselect-empty-item",item:{label:"No results",value:"no_results",disabled:!0}})):e.createCommentVNode("",!0),t.$slots.empty&&!a.loading&&!S.value.length?(e.openBlock(),e.createElementBlock("div",Ze,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],32),O()?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dropdown-footer",`dropdown-footer-${he.value}`]),"data-testid":"dropdown-footer"},[t.$slots["dropdown-footer"]?e.renderSlot(t.$slots,"dropdown-footer",{},void 0,!0,0):e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(a.dropdownFooterText),1)],!0,1)],2)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({id:M.value,ref:"multiselectElement",class:["multiselect-trigger",{focused:N.value,hovered:C.value,disabled:w.value,readonly:b.value}],"data-testid":"multiselect-trigger",role:"listbox",tabindex:w.value||b.value||a.collapsedContext?-1:0},pe.value,{onClick:Ce,onKeydown:[e.withKeys(X,["enter"]),e.withKeys(X,["space"])]}),[a.collapsedContext?(e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(le.default,{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:e.normalizeClass(["multiselect-input",{"is-readonly":b.value}]),"data-testid":"multiselect-input",disabled:w.value,"model-value":v.value,name:"multiselect-options-search",placeholder:L.value,readonly:b.value?!0:void 0,spellcheck:"false",type:"text",onBlur:l[0]||(l[0]=()=>N.value=!1),onClick:n=>{o.value&&n.stopPropagation()},onFocus:Be,onKeydown:e.withKeys(J,["enter"]),onKeyup:n=>xe(n,o),onMouseenter:l[1]||(l[1]=()=>C.value=!0),onMouseleave:l[2]||(l[2]=()=>C.value=!1),"onUpdate:modelValue":Q},null,8,["class","disabled","model-value","placeholder","readonly","onClick","onKeyup"])])):c.value.length?_.value?(e.openBlock(),e.createBlock(e.unref(Me.WrapClamp),{key:3,class:"selection-badges-container","data-testid":"selection-badges-container","item-key":"key",items:c.value,"max-lines":a.selectedRowCount,style:e.normalizeStyle(R.value)},{item:e.withCtx(({item:n})=>[e.createVNode(te.default,{appearance:$(n),class:"multiselect-selection-badge","icon-before":!1,tooltip:n.label,"truncation-tooltip":"",onClick:l[3]||(l[3]=e.withModifiers(()=>{},["stop"]))},e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"item-badge-icon",{item:n},void 0,!0),e.createElementVNode("span",He,e.toDisplayString(n.label),1)]),_:2},[n.selected&&!n.disabled&&!w.value&&!b.value?{name:"icon",fn:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":`Unselect ${n.label}`,class:"badge-dismiss-button","data-testid":"badge-dismiss-button",type:"button",onClick:u=>E(n)},[e.createVNode(e.unref(x.CloseIcon),{decorative:""})],8,We)]),key:"0"}:void 0]),1032,["appearance","tooltip"])]),after:e.withCtx(({hiddenItems:n})=>[n.length?(e.openBlock(),e.createBlock(Ke.default,{key:0,class:"hidden-selection-count-tooltip","max-width":"300",text:ve(n)},{default:e.withCtx(()=>[e.createVNode(te.default,{appearance:$(),class:"hidden-selection-count","data-testid":"hidden-selection-count",onClick:l[4]||(l[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(n.length),1)]),_:2},1032,["appearance"])]),_:2},1032,["text"])):e.createCommentVNode("",!0)]),_:3},8,["items","max-lines","style"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"selection-badges-container","data-testid":"selection-badges-container",style:e.normalizeStyle(R.value)},null,4)):(e.openBlock(),e.createElementBlock("div",Le,e.toDisplayString(L.value),1)),e.createElementVNode("div",Ge,[!a.loading&&c.value.length&&o.value?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":"Clear",class:"multiselect-clear-icon","data-testid":"multiselect-clear-icon",type:"button",onClick:q},[e.createVNode(e.unref(x.CloseIcon),{size:`var(--kui-icon-size-40, ${e.unref(V.KUI_ICON_SIZE_40)})`},null,8,["size"])])):a.loading?(e.openBlock(),e.createBlock(e.unref(x.ProgressIcon),{key:1,class:"multiselect-loading-icon",size:`var(--kui-icon-size-40, ${e.unref(V.KUI_ICON_SIZE_40)})`,title:"Loading"},null,8,["size"])):(e.openBlock(),e.createBlock(e.unref(x.ChevronDownIcon),{key:2,class:"multiselect-chevron-icon",decorative:"",size:`var(--kui-icon-size-40, ${e.unref(V.KUI_ICON_SIZE_40)})`},null,8,["size"]))])],16,Oe)]),_:2},1040,["offset","onClose","onOpen"])]),_:3})]),a.help?(e.openBlock(),e.createElementBlock("p",je,e.toDisplayString(a.help),1)):e.createCommentVNode("",!0)],6))}});exports.default=Xe;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Ne=require("./kongponents184.cjs"),te=require("./kongponents36.cjs"),le=require("./kongponents55.cjs"),Ee=require("./kongponents57.cjs"),qe=require("./kongponents62.cjs"),$e=require("./kongponents29.cjs"),ze=require("./kongponents30.cjs");;/* empty css */const Ke=require("./kongponents203.cjs"),Fe=require("./kongponents204.cjs"),x=require("@kong/icons"),V=require("./kongponents182.cjs"),Me=require("vue-clamp"),Pe=require("./kongponents180.cjs"),De=require("./kongponents188.cjs"),Te=require("./kongponents160.cjs"),oe=require("./kongponents189.cjs"),Ue={"data-testid":"multiselect-container"},Oe=["id","tabindex"],Re={key:0},Le={key:1,class:"expanded-selection-empty"},He={class:"multiselect-selection-badge-label"},We=["aria-label","onClick"],Ge={class:"multiselect-icons-container"},Je={key:0,class:"multiselect-input-wrapper"},Ze={key:2,class:"multiselect-empty","data-propagate-clicks":"false"},je={key:1,class:"help-text"},Qe="Filter...",Xe=e.defineComponent({inheritAttrs:!1,__name:"KMultiselect",props:{modelValue:{default:()=>[]},label:{default:""},help:{default:""},error:{type:Boolean},labelAttributes:{default:()=>({})},placeholder:{default:""},searchPlaceholder:{default:""},kpopAttributes:{default:()=>({})},dropdownMaxHeight:{default:"300px"},width:{default:"100%"},selectedRowCount:{default:1},collapsedContext:{type:Boolean},items:{default:()=>[]},filterFunction:{type:Function,default:a=>a.items.filter(B=>B.label?.toLowerCase().includes(a.query?.toLowerCase()))},autosuggest:{type:Boolean},enableItemCreation:{type:Boolean},loading:{type:Boolean},dropdownFooterText:{default:""},dropdownFooterTextPosition:{},dropdownFooterPosition:{},itemCreationValidator:{type:Function,default:()=>!0}},emits:["selected","input","change","update:modelValue","query-change","item-added","item-removed","open","close"],setup(a,{emit:B}){e.useCssVars(t=>({v38635e18:ye.value}));const ae=t=>{const l=[],o=s=>{"value"in s?l.push(s.value):"items"in s&&Array.isArray(s.items)&&s.items.forEach(n=>l.push(n.value))};return t.forEach(o),l},se=t=>{const l=ae(t),o=new Set(l);return l.length===o.size},ne=t=>{for(const l of t)if("value"in l){if(l.label===void 0||l.value===void 0)return!1}else if("items"in l&&Array.isArray(l.items)){if(l.label===void 0)return!1;for(const o of l.items)if(o.label===void 0||o.value===void 0)return!1}return!0},p=e.useAttrs(),A=e.useSlots(),{cloneDeep:ue,stripRequiredLabel:ie}=Ne.default();e.watch(()=>a.items,t=>{!t.length||ne(t)&&se(t)||console.warn("KMultiselect: Items must have a label & value and value must be unique")},{immediate:!0});const m=B,$=e.useTemplateRef("kMultiselectItems"),z=e.computed(()=>p.required!==void 0&&String(p.required)!=="false"),re=e.computed(()=>ie(a.label,z.value)),ce=()=>!!(a.labelAttributes?.help||a.labelAttributes?.info||A["label-tooltip"]),K=t=>w.value||b.value||t?.disabled?"neutral":a.error?"danger":"info",F={hideCaret:!0,placement:"bottom-start",popoverTimeout:0,popoverClasses:"k-multiselect-popover multiselect-popover"},de=e.useId(),M=e.computed(()=>p.id?String(p.id):de),P=e.useTemplateRef("multiselectElement"),fe=e.useTemplateRef("multiselectDropdownInputElement"),v=e.ref(""),D=e.computed(()=>!(!v.value||r.value.filter(t=>t.label===v.value).length)),T=e.ref(null),r=e.ref([]),g=e.ref([]),S=e.ref([]),c=e.ref([]),ve=t=>t.map(l=>l.label).join(", "),U=e.ref(!1),C=e.ref(!1),N=e.ref(!1),w=e.computed(()=>p?.disabled!==void 0&&String(p?.disabled)!=="false"),b=e.computed(()=>p?.readonly!==void 0&&String(p?.readonly)!=="false"),me=e.computed({get(){return a.modelValue},set(t){const l=r.value.filter(o=>t.includes(o.value));l.length?G(l):t.length||q()}}),pe=e.computed(()=>{const t={...p};return delete t.class,t}),O=()=>!!(a.dropdownFooterText||A["dropdown-footer-text"]||A["dropdown-footer"]),he=e.computed(()=>a.dropdownFooterPosition??a.dropdownFooterTextPosition??"sticky"),ge=()=>({...F,...a.kpopAttributes,popoverClasses:`${F.popoverClasses} ${a.kpopAttributes?.popoverClasses??""} ${O()?"has-dropdown-footer":""}`,width:I.value+"px",maxWidth:I.value+"px",disabled:p.disabled!==void 0&&String(p.disabled)!=="false"||p.readonly!==void 0&&String(p.readonly)!=="false"}),ye=e.computed(()=>oe.normalizeSize(a.dropdownMaxHeight)),be=e.computed(()=>{const t=a.width?a.width:"300";return oe.normalizeSize(t)}),ke=e.computed(()=>({width:be.value})),R=e.computed(()=>({width:I.value+"px"})),L=e.computed(()=>{if(c.value.length===0){if(!a.collapsedContext&&a.placeholder)return a.placeholder;if(a.collapsedContext&&a.searchPlaceholder)return a.searchPlaceholder}return c.value.length===1?`${c.value.length} item selected`:`${c.value.length} items selected`}),we=e.computed(()=>a.autosuggest?r.value:a.filterFunction({items:r.value,query:v.value})),H=e.computed(()=>{if(a.autosuggest||!v.value)return g.value;const t=we.value,l=new Set(t.map(s=>s.value)),o=[];for(const s of g.value)if(y(s)){const n=s.items.filter(u=>l.has(u.value));n.length>0&&o.push({label:s.label,key:s.key,items:n})}else l.has(s.value)&&o.push(s);return o}),Ce=t=>{(w.value||t?.target?.dataset.propagateClicks==="false")&&t.stopPropagation()},W=async(t,l,o)=>{t?(m("open"),l.value||(v.value="",o(),j(),await e.nextTick(),fe.value?.$el?.querySelector("input")?.focus({preventScroll:!0}))):(m("close"),l.value&&(v.value="",o()))},Ie=t=>{const l=new Map(c.value.map(o=>[o.value,o]));c.value=t.map(o=>l.get(o)).filter(o=>o!==void 0)},G=t=>{t.forEach(l=>{const o=r.value.filter(s=>s.value===l.value)?.[0]||null;o&&(o.selected=!0,c.value.filter(s=>s.value===o.value).length||c.value.push(o))})},Se=t=>{const l=new Set(t.map(o=>o.value));c.value=c.value.filter(o=>!l.has(o.value)),t.forEach(o=>{o.selected=!1,a.enableItemCreation&&o.custom&&(r.value=r.value.filter(s=>s.value!==o.value),g.value=g.value.filter(s=>y(s)?!0:s.value!==o.value),m("item-removed",o))})},E=(t,l)=>{let o=!1,s=l?t:r.value.filter(u=>u.value===t.value)?.[0]||null;if(a.enableItemCreation&&s?.custom&&(o=!0),s===null&&(s=c.value.filter(u=>u.value===t.value)?.[0]||null),s===null)return;s.selected?(c.value=c.value.filter(u=>u.value!==t.value),s.selected=!1,o&&(r.value=r.value.filter(u=>u.value!==t.value),g.value=g.value.filter(u=>y(u)?!0:u.value!==t.value),m("item-removed",t))):(s.selected=!0,c.value.push(s),l&&(s.custom=!0,r.value.push(s),g.value.unshift(s)));const n=c.value.map(u=>u.value);m("selected",c.value),m("change",s),m("update:modelValue",n)},J=t=>{a.enableItemCreation&&Z(),t.preventDefault()},Z=()=>{if(!a.enableItemCreation||!v.value||!D.value||!a.itemCreationValidator(v.value))return;const t=r.value.length+1,l={label:v.value.trim(),value:Te.getUniqueStringId(),key:`${Pe.sanitizeInput(v.value.trim()).replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${t}`};m("item-added",l),E(l,!0),v.value=""},y=t=>"items"in t&&Array.isArray(t.items),j=()=>{const t=[],l=[],o=[];for(const u of H.value)y(u)?o.push(u):l.push(u);const s=l.filter(u=>u.selected),n=l.filter(u=>!u.selected);t.push(...s,...n);for(const u of o){const i=u.items.filter(d=>d.selected),h=u.items.filter(d=>!d.selected);t.push({label:u.label,key:u.key,items:[...i,...h]})}S.value=t},q=()=>{r.value.forEach(l=>{l.disabled||(l.selected=!1,l.custom&&m("item-removed",l))}),r.value=r.value.filter(l=>!(l.custom&&!l.disabled)),g.value=g.value.filter(l=>y(l)?!0:!(l.custom&&!l.disabled)),c.value=c.value.filter(l=>l.disabled),v.value="";const t=c.value.map(l=>l.value);m("selected",c.value),m("update:modelValue",t),m("query-change","")},Q=t=>{v.value=t.trim(),m("query-change",t.trim())},xe=(t,l)=>{t.keyCode===27&&(l.value=!1),(t.key==="ArrowDown"||t.key==="ArrowUp")&&$.value?.setFocus(t.key==="ArrowDown"?"down":"up")},X=()=>{T.value?.showPopover()},Ve=t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&$.value?.setFocus(t.key==="ArrowDown"?"down":"up")},Be=async()=>{N.value=!0,Y()},Y=()=>{U.value||(U.value=!0,m("query-change",""))};e.watch(H,()=>{j()}),e.watch(me,(t,l)=>{if(JSON.stringify(t)!==JSON.stringify(l)){const o=c.value.map(d=>d.value);if(JSON.stringify(o)===JSON.stringify(t))return;if(!t.length){q();return}const s=new Set(l),n=new Set(t),u=new Set(o),i=r.value.filter(d=>n.has(d.value)&&!u.has(d.value)),h=c.value.filter(d=>!n.has(d.value)&&s.has(d.value));h.length&&Se(h),i.length&&G(i),Ie(t)}},{flush:"post"}),e.watch(()=>a.items,(t,l)=>{if(JSON.stringify(t)===JSON.stringify(l))return;const o=ue(a.items),s=o.some(i=>y(i)),n=[],u=[];if(s)for(const i of o)y(i)?n.push(...i.items):n.push(i);else{const i=new Map;for(const f of o)y(f)||(f.group&&(i.has(f.group)||i.set(f.group,[]),i.get(f.group).push(f)),n.push(f));const h=Array.from(i.keys()).sort((f,k)=>f.toLowerCase().localeCompare(k.toLowerCase())),d=n.filter(f=>!f.group);u.push(...d);for(const f of h)u.push({label:f,items:i.get(f)})}r.value=n;for(let i=0;i<r.value.length;i++){r.value[i].selected===void 0&&(r.value[i].selected=!1);let h=`${r.value[i].label?.replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${i}`;if(h.includes("undefined")&&(h=`multiselect-item-label-${i}`),r.value[i].key=h,a.modelValue.includes(r.value[i].value)||r.value[i].selected){const d=r.value[i];d.selected=!0,c.value.filter(f=>f.value===d.value).length||c.value.push(d)}}if(s){const i=[],h=[];for(const d of o)if(y(d)){const f=d.items.map(k=>r.value.find(Ae=>Ae.value===k.value)).filter(k=>k!==void 0);h.push({label:d.label,key:d.key,items:f})}else{const f=r.value.find(k=>k.value===d.value);f&&i.push(f)}u.push(...i,...h)}g.value=u},{deep:!0,immediate:!0});const I=e.ref(300),_=e.ref(!1),ee=async()=>{I.value=300,await e.nextTick(),I.value=P.value?.clientWidth||300};return e.onMounted(async()=>{await ee(),_.value=!0}),De.useResizeObserver(P,()=>{ee()}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-multiselect",[t.$attrs.class,{"multiselect-error":a.error}]]),style:e.normalizeStyle(ke.value)},[a.label||t.$slots.label?(e.openBlock(),e.createBlock(Ee.default,e.mergeProps({key:0},a.labelAttributes,{"data-testid":a.labelAttributes["data-testid"]?a.labelAttributes["data-testid"]:"multiselect-label",for:M.value,required:z.value}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(re.value),1)],!0)]),_:2},[ce()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["data-testid","for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ue,[e.createVNode($e.default,null,{default:e.withCtx(({isToggled:o,toggle:s})=>[e.createVNode(qe.default,e.mergeProps({ref_key:"popper",ref:T,"hide-close-icon":"",offset:`var(--kui-space-40, ${e.unref(V.KUI_SPACE_40)})`},ge(),{onClose:()=>W(!1,o,s),onOpen:()=>W(!0,o,s)}),{content:e.withCtx(()=>[e.createElementVNode("div",{class:"multiselect-list",onClick:l[7]||(l[7]=e.withModifiers(()=>{},["stop"])),onMouseenter:l[8]||(l[8]=()=>C.value=!0),onMouseleave:l[9]||(l[9]=()=>C.value=!1)},[!a.collapsedContext&&!b.value?(e.openBlock(),e.createElementBlock("div",Je,[e.createVNode(le.default,{ref:"multiselectDropdownInputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"multiselect-dropdown-input","data-testid":"multiselect-dropdown-input","model-value":v.value,name:"multiselect-options-search",placeholder:a.searchPlaceholder||Qe,spellcheck:"false",type:"text",onClick:l[5]||(l[5]=e.withModifiers(()=>{},["stop"])),onFocus:Y,onKeydown:e.withKeys(J,["enter"]),onKeyup:[Ve,l[6]||(l[6]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":Q},null,8,["model-value","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(Ke.default,{ref:"kMultiselectItems","filter-string":v.value,"item-creation-enabled":a.enableItemCreation&&D.value,"item-creation-valid":a.itemCreationValidator(v.value),items:S.value,onAddItem:Z,onSelected:E},{content:e.withCtx(({item:n})=>[e.renderSlot(t.$slots,"item-template",{class:"multiselect-item",item:n},void 0,!0)]),_:3},8,["filter-string","item-creation-enabled","item-creation-valid","items"]),!S.value.length&&!t.$slots.empty&&!a.enableItemCreation?(e.openBlock(),e.createBlock(Fe.default,{key:"multiselect-empty-item",class:"multiselect-empty-item","data-testid":"multiselect-empty-item",item:{label:"No results",value:"no_results",disabled:!0}})):e.createCommentVNode("",!0),t.$slots.empty&&!a.loading&&!S.value.length?(e.openBlock(),e.createElementBlock("div",Ze,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],32),O()?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dropdown-footer",`dropdown-footer-${he.value}`]),"data-testid":"dropdown-footer"},[t.$slots["dropdown-footer"]?e.renderSlot(t.$slots,"dropdown-footer",{},void 0,!0,0):e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(a.dropdownFooterText),1)],!0,1)],2)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({id:M.value,ref:"multiselectElement",class:["multiselect-trigger",{focused:N.value,hovered:C.value,disabled:w.value,readonly:b.value}],"data-testid":"multiselect-trigger",role:"listbox",tabindex:w.value||b.value||a.collapsedContext?-1:0},pe.value,{onClick:Ce,onKeydown:[e.withKeys(X,["enter"]),e.withKeys(X,["space"])]}),[a.collapsedContext?(e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(le.default,{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:e.normalizeClass(["multiselect-input",{"is-readonly":b.value}]),"data-testid":"multiselect-input",disabled:w.value,"model-value":v.value,name:"multiselect-options-search",placeholder:L.value,readonly:b.value?!0:void 0,spellcheck:"false",type:"text",onBlur:l[0]||(l[0]=()=>N.value=!1),onClick:n=>{o.value&&n.stopPropagation()},onFocus:Be,onKeydown:e.withKeys(J,["enter"]),onKeyup:n=>xe(n,o),onMouseenter:l[1]||(l[1]=()=>C.value=!0),onMouseleave:l[2]||(l[2]=()=>C.value=!1),"onUpdate:modelValue":Q},null,8,["class","disabled","model-value","placeholder","readonly","onClick","onKeyup"])])):c.value.length?_.value?(e.openBlock(),e.createBlock(e.unref(Me.WrapClamp),{key:3,class:"selection-badges-container","data-testid":"selection-badges-container","item-key":"key",items:c.value,"max-lines":a.selectedRowCount,style:e.normalizeStyle(R.value)},{item:e.withCtx(({item:n})=>[e.createVNode(te.default,{appearance:K(n),class:"multiselect-selection-badge","icon-before":!1,tooltip:n.label,"truncation-tooltip":"",onClick:l[3]||(l[3]=e.withModifiers(()=>{},["stop"]))},e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"item-badge-icon",{item:n},void 0,!0),e.createElementVNode("span",He,e.toDisplayString(n.label),1)]),_:2},[n.selected&&!n.disabled&&!w.value&&!b.value?{name:"icon",fn:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":`Unselect ${n.label}`,class:"badge-dismiss-button","data-testid":"badge-dismiss-button",type:"button",onClick:u=>E(n)},[e.createVNode(e.unref(x.CloseIcon),{decorative:""})],8,We)]),key:"0"}:void 0]),1032,["appearance","tooltip"])]),after:e.withCtx(({hiddenItems:n})=>[n.length?(e.openBlock(),e.createBlock(ze.default,{key:0,class:"hidden-selection-count-tooltip","max-width":"300",text:ve(n)},{default:e.withCtx(()=>[e.createVNode(te.default,{appearance:K(),class:"hidden-selection-count","data-testid":"hidden-selection-count",onClick:l[4]||(l[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(n.length),1)]),_:2},1032,["appearance"])]),_:2},1032,["text"])):e.createCommentVNode("",!0)]),_:3},8,["items","max-lines","style"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"selection-badges-container","data-testid":"selection-badges-container",style:e.normalizeStyle(R.value)},null,4)):(e.openBlock(),e.createElementBlock("div",Le,e.toDisplayString(L.value),1)),e.createElementVNode("div",Ge,[!a.loading&&c.value.length&&o.value?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":"Clear",class:"multiselect-clear-icon","data-testid":"multiselect-clear-icon",type:"button",onClick:q},[e.createVNode(e.unref(x.CloseIcon),{size:`var(--kui-icon-size-40, ${e.unref(V.KUI_ICON_SIZE_40)})`},null,8,["size"])])):a.loading?(e.openBlock(),e.createBlock(e.unref(x.ProgressIcon),{key:1,class:"multiselect-loading-icon",size:`var(--kui-icon-size-40, ${e.unref(V.KUI_ICON_SIZE_40)})`,title:"Loading"},null,8,["size"])):(e.openBlock(),e.createBlock(e.unref(x.ChevronDownIcon),{key:2,class:"multiselect-chevron-icon",decorative:"",size:`var(--kui-icon-size-40, ${e.unref(V.KUI_ICON_SIZE_40)})`},null,8,["size"]))])],16,Oe)]),_:2},1040,["offset","onClose","onOpen"])]),_:3})]),a.help?(e.openBlock(),e.createElementBlock("p",je,e.toDisplayString(a.help),1)):e.createCommentVNode("",!0)],6))}});exports.default=Xe;
@@ -1,5 +1,5 @@
1
- import { defineComponent as Ze, useCssVars as Xe, useAttrs as Ye, useSlots as _e, watch as U, useTemplateRef as H, computed as v, useId as et, ref as b, onMounted as tt, openBlock as m, createElementBlock as I, normalizeStyle as W, normalizeClass as G, createBlock as z, mergeProps as J, createSlots as be, withCtx as y, createTextVNode as j, toDisplayString as E, renderSlot as K, createCommentVNode as x, createElementVNode as M, createVNode as C, unref as S, withKeys as q, withModifiers as N, nextTick as we } from "vue";
2
- import lt from "./kongponents190.es.js";
1
+ import { defineComponent as Ze, useCssVars as Xe, useAttrs as Ye, useSlots as _e, watch as U, useTemplateRef as H, computed as v, useId as et, ref as b, onMounted as tt, openBlock as m, createElementBlock as I, normalizeStyle as W, normalizeClass as G, createBlock as E, mergeProps as J, createSlots as be, withCtx as y, renderSlot as x, createTextVNode as j, toDisplayString as K, createCommentVNode as F, createElementVNode as M, createVNode as C, unref as S, withKeys as q, withModifiers as N, nextTick as we } from "vue";
2
+ import lt from "./kongponents184.es.js";
3
3
  import ke from "./kongponents36.es.js";
4
4
  import Ie from "./kongponents55.es.js";
5
5
  import ot from "./kongponents57.es.js";
@@ -7,15 +7,15 @@ import at from "./kongponents62.es.js";
7
7
  import st from "./kongponents29.es.js";
8
8
  import it from "./kongponents30.es.js";
9
9
  /* empty css */
10
- import ut from "./kongponents197.es.js";
11
- import nt from "./kongponents198.es.js";
10
+ import ut from "./kongponents203.es.js";
11
+ import nt from "./kongponents204.es.js";
12
12
  import { CloseIcon as Ce, ProgressIcon as rt, ChevronDownIcon as dt } from "@kong/icons";
13
- import { KUI_SPACE_40 as ct, KUI_ICON_SIZE_40 as Q } from "./kongponents183.es.js";
13
+ import { KUI_SPACE_40 as ct, KUI_ICON_SIZE_40 as Q } from "./kongponents182.es.js";
14
14
  import { WrapClamp as ft } from "vue-clamp";
15
15
  import { sanitizeInput as vt } from "./kongponents180.es.js";
16
- import { useResizeObserver as mt } from "./kongponents199.es.js";
16
+ import { useResizeObserver as mt } from "./kongponents188.es.js";
17
17
  import { getUniqueStringId as pt } from "./kongponents160.es.js";
18
- import { normalizeSize as Se } from "./kongponents182.es.js";
18
+ import { normalizeSize as Se } from "./kongponents189.es.js";
19
19
  const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"], yt = { key: 0 }, bt = {
20
20
  key: 1,
21
21
  class: "expanded-selection-empty"
@@ -58,7 +58,7 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
58
58
  emits: ["selected", "input", "change", "update:modelValue", "query-change", "item-added", "item-removed", "open", "close"],
59
59
  setup(o, { emit: B }) {
60
60
  Xe((e) => ({
61
- v3e0350e0: Be.value
61
+ v38635e18: Be.value
62
62
  }));
63
63
  const Ae = (e) => {
64
64
  const t = [], l = (a) => {
@@ -85,12 +85,12 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
85
85
  U(() => o.items, (e) => {
86
86
  !e.length || xe(e) && $e(e) || console.warn("KMultiselect: Items must have a label & value and value must be unique");
87
87
  }, { immediate: !0 });
88
- const p = B, Z = H("kMultiselectItems"), X = v(() => h.required !== void 0 && String(h.required) !== "false"), Ee = v(() => ze(o.label, X.value)), Ke = () => !!(o.labelAttributes?.help || o.labelAttributes?.info || L["label-tooltip"]), Y = (e) => F.value || A.value || e?.disabled ? "neutral" : o.error ? "danger" : "info", _ = {
88
+ const p = B, Z = H("kMultiselectItems"), X = v(() => h.required !== void 0 && String(h.required) !== "false"), Ee = v(() => ze(o.label, X.value)), Ke = () => !!(o.labelAttributes?.help || o.labelAttributes?.info || L["label-tooltip"]), Y = (e) => z.value || A.value || e?.disabled ? "neutral" : o.error ? "danger" : "info", _ = {
89
89
  hideCaret: !0,
90
90
  placement: "bottom-start",
91
91
  popoverTimeout: 0,
92
92
  popoverClasses: "k-multiselect-popover multiselect-popover"
93
- }, Me = et(), ee = v(() => h.id ? String(h.id) : Me), te = H("multiselectElement"), Ve = H("multiselectDropdownInputElement"), f = b(""), le = v(() => !(!f.value || n.value.filter((e) => e.label === f.value).length)), oe = b(null), n = b([]), w = b([]), D = b([]), r = b([]), Pe = (e) => e.map((t) => t.label).join(", "), ae = b(!1), V = b(!1), R = b(!1), F = v(() => h?.disabled !== void 0 && String(h?.disabled) !== "false"), A = v(() => h?.readonly !== void 0 && String(h?.readonly) !== "false"), qe = v({
93
+ }, Me = et(), ee = v(() => h.id ? String(h.id) : Me), te = H("multiselectElement"), Ve = H("multiselectDropdownInputElement"), f = b(""), le = v(() => !(!f.value || n.value.filter((e) => e.label === f.value).length)), oe = b(null), n = b([]), w = b([]), D = b([]), r = b([]), Pe = (e) => e.map((t) => t.label).join(", "), ae = b(!1), V = b(!1), R = b(!1), z = v(() => h?.disabled !== void 0 && String(h?.disabled) !== "false"), A = v(() => h?.readonly !== void 0 && String(h?.readonly) !== "false"), qe = v({
94
94
  get() {
95
95
  return o.modelValue;
96
96
  },
@@ -139,7 +139,7 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
139
139
  t.has(a.value) && l.push(a);
140
140
  return l;
141
141
  }), Te = (e) => {
142
- (F.value || e?.target?.dataset.propagateClicks === "false") && e.stopPropagation();
142
+ (z.value || e?.target?.dataset.propagateClicks === "false") && e.stopPropagation();
143
143
  }, re = async (e, t, l) => {
144
144
  e ? (p("open"), t.value || (f.value = "", l(), ve(), await we(), Ve.value?.$el?.querySelector("input")?.focus({ preventScroll: !0 }))) : (p("close"), t.value && (f.value = "", l()));
145
145
  }, He = (e) => {
@@ -286,24 +286,26 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
286
286
  class: G(["k-multiselect", [e.$attrs.class, { "multiselect-error": o.error }]]),
287
287
  style: W(Re.value)
288
288
  }, [
289
- o.label ? (m(), z(ot, J({ key: 0 }, o.labelAttributes, {
289
+ o.label || e.$slots.label ? (m(), E(ot, J({ key: 0 }, o.labelAttributes, {
290
290
  "data-testid": o.labelAttributes["data-testid"] ? o.labelAttributes["data-testid"] : "multiselect-label",
291
291
  for: ee.value,
292
292
  required: X.value
293
293
  }), be({
294
294
  default: y(() => [
295
- j(E(Ee.value) + " ", 1)
295
+ x(e.$slots, "label", {}, () => [
296
+ j(K(Ee.value), 1)
297
+ ], !0)
296
298
  ]),
297
299
  _: 2
298
300
  }, [
299
301
  Ke() ? {
300
302
  name: "tooltip",
301
303
  fn: y(() => [
302
- K(e.$slots, "label-tooltip", {}, void 0, !0)
304
+ x(e.$slots, "label-tooltip", {}, void 0, !0)
303
305
  ]),
304
306
  key: "0"
305
307
  } : void 0
306
- ]), 1040, ["data-testid", "for", "required"])) : x("", !0),
308
+ ]), 1040, ["data-testid", "for", "required"])) : F("", !0),
307
309
  M("div", ht, [
308
310
  C(st, null, {
309
311
  default: y(({ isToggled: l, toggle: a }) => [
@@ -348,7 +350,7 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
348
350
  ],
349
351
  "onUpdate:modelValue": me
350
352
  }, null, 8, ["model-value", "placeholder"])
351
- ])) : x("", !0),
353
+ ])) : F("", !0),
352
354
  C(ut, {
353
355
  ref: "kMultiselectItems",
354
356
  "filter-string": f.value,
@@ -359,41 +361,41 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
359
361
  onSelected: O
360
362
  }, {
361
363
  content: y(({ item: s }) => [
362
- K(e.$slots, "item-template", {
364
+ x(e.$slots, "item-template", {
363
365
  class: "multiselect-item",
364
366
  item: s
365
367
  }, void 0, !0)
366
368
  ]),
367
369
  _: 3
368
370
  }, 8, ["filter-string", "item-creation-enabled", "item-creation-valid", "items"]),
369
- !D.value.length && !e.$slots.empty && !o.enableItemCreation ? (m(), z(nt, {
371
+ !D.value.length && !e.$slots.empty && !o.enableItemCreation ? (m(), E(nt, {
370
372
  key: "multiselect-empty-item",
371
373
  class: "multiselect-empty-item",
372
374
  "data-testid": "multiselect-empty-item",
373
375
  item: { label: "No results", value: "no_results", disabled: !0 }
374
- })) : x("", !0),
376
+ })) : F("", !0),
375
377
  e.$slots.empty && !o.loading && !D.value.length ? (m(), I("div", St, [
376
- K(e.$slots, "empty", {}, void 0, !0)
377
- ])) : x("", !0)
378
+ x(e.$slots, "empty", {}, void 0, !0)
379
+ ])) : F("", !0)
378
380
  ], 32),
379
381
  se() ? (m(), I("div", {
380
382
  key: 0,
381
383
  class: G(["dropdown-footer", `dropdown-footer-${De.value}`]),
382
384
  "data-testid": "dropdown-footer"
383
385
  }, [
384
- e.$slots["dropdown-footer"] ? K(e.$slots, "dropdown-footer", {}, void 0, !0, 0) : K(e.$slots, "dropdown-footer-text", {}, () => [
385
- j(E(o.dropdownFooterText), 1)
386
+ e.$slots["dropdown-footer"] ? x(e.$slots, "dropdown-footer", {}, void 0, !0, 0) : x(e.$slots, "dropdown-footer-text", {}, () => [
387
+ j(K(o.dropdownFooterText), 1)
386
388
  ], !0, 1)
387
- ], 2)) : x("", !0)
389
+ ], 2)) : F("", !0)
388
390
  ]),
389
391
  default: y(() => [
390
392
  M("div", J({
391
393
  id: ee.value,
392
394
  ref: "multiselectElement",
393
- class: ["multiselect-trigger", { focused: R.value, hovered: V.value, disabled: F.value, readonly: A.value }],
395
+ class: ["multiselect-trigger", { focused: R.value, hovered: V.value, disabled: z.value, readonly: A.value }],
394
396
  "data-testid": "multiselect-trigger",
395
397
  role: "listbox",
396
- tabindex: F.value || A.value || o.collapsedContext ? -1 : 0
398
+ tabindex: z.value || A.value || o.collapsedContext ? -1 : 0
397
399
  }, Ne.value, {
398
400
  onClick: Te,
399
401
  onKeydown: [
@@ -408,7 +410,7 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
408
410
  autocorrect: "off",
409
411
  class: G(["multiselect-input", { "is-readonly": A.value }]),
410
412
  "data-testid": "multiselect-input",
411
- disabled: F.value,
413
+ disabled: z.value,
412
414
  "model-value": f.value,
413
415
  name: "multiselect-options-search",
414
416
  placeholder: ue.value,
@@ -426,7 +428,7 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
426
428
  onMouseleave: t[2] || (t[2] = () => V.value = !1),
427
429
  "onUpdate:modelValue": me
428
430
  }, null, 8, ["class", "disabled", "model-value", "placeholder", "readonly", "onClick", "onKeyup"])
429
- ])) : r.value.length ? ge.value ? (m(), z(S(ft), {
431
+ ])) : r.value.length ? ge.value ? (m(), E(S(ft), {
430
432
  key: 3,
431
433
  class: "selection-badges-container",
432
434
  "data-testid": "selection-badges-container",
@@ -446,12 +448,12 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
446
448
  }, ["stop"]))
447
449
  }, be({
448
450
  default: y(() => [
449
- K(e.$slots, "item-badge-icon", { item: s }, void 0, !0),
450
- M("span", wt, E(s.label), 1)
451
+ x(e.$slots, "item-badge-icon", { item: s }, void 0, !0),
452
+ M("span", wt, K(s.label), 1)
451
453
  ]),
452
454
  _: 2
453
455
  }, [
454
- s.selected && !s.disabled && !F.value && !A.value ? {
456
+ s.selected && !s.disabled && !z.value && !A.value ? {
455
457
  name: "icon",
456
458
  fn: y(() => [
457
459
  M("button", {
@@ -469,7 +471,7 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
469
471
  ]), 1032, ["appearance", "tooltip"])
470
472
  ]),
471
473
  after: y(({ hiddenItems: s }) => [
472
- s.length ? (m(), z(it, {
474
+ s.length ? (m(), E(it, {
473
475
  key: 0,
474
476
  class: "hidden-selection-count-tooltip",
475
477
  "max-width": "300",
@@ -484,13 +486,13 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
484
486
  }, ["stop"]))
485
487
  }, {
486
488
  default: y(() => [
487
- j(" +" + E(s.length), 1)
489
+ j(" +" + K(s.length), 1)
488
490
  ]),
489
491
  _: 2
490
492
  }, 1032, ["appearance"])
491
493
  ]),
492
494
  _: 2
493
- }, 1032, ["text"])) : x("", !0)
495
+ }, 1032, ["text"])) : F("", !0)
494
496
  ]),
495
497
  _: 3
496
498
  }, 8, ["items", "max-lines", "style"])) : (m(), I("div", {
@@ -498,7 +500,7 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
498
500
  class: "selection-badges-container",
499
501
  "data-testid": "selection-badges-container",
500
502
  style: W(ie.value)
501
- }, null, 4)) : (m(), I("div", bt, E(ue.value), 1)),
503
+ }, null, 4)) : (m(), I("div", bt, K(ue.value), 1)),
502
504
  M("div", It, [
503
505
  !o.loading && r.value.length && l.value ? (m(), I("button", {
504
506
  key: 0,
@@ -511,12 +513,12 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
511
513
  C(S(Ce), {
512
514
  size: `var(--kui-icon-size-40, ${S(Q)})`
513
515
  }, null, 8, ["size"])
514
- ])) : o.loading ? (m(), z(S(rt), {
516
+ ])) : o.loading ? (m(), E(S(rt), {
515
517
  key: 1,
516
518
  class: "multiselect-loading-icon",
517
519
  size: `var(--kui-icon-size-40, ${S(Q)})`,
518
520
  title: "Loading"
519
- }, null, 8, ["size"])) : (m(), z(S(dt), {
521
+ }, null, 8, ["size"])) : (m(), E(S(dt), {
520
522
  key: 2,
521
523
  class: "multiselect-chevron-icon",
522
524
  decorative: "",
@@ -531,7 +533,7 @@ const ht = { "data-testid": "multiselect-container" }, gt = ["id", "tabindex"],
531
533
  _: 3
532
534
  })
533
535
  ]),
534
- o.help ? (m(), I("p", At, E(o.help), 1)) : x("", !0)
536
+ o.help ? (m(), I("p", At, K(o.help), 1)) : F("", !0)
535
537
  ], 6));
536
538
  }
537
539
  });