@kong/kongponents 9.60.4 → 9.60.5-pr.3251.dcd60ed.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 (930) hide show
  1. package/dist/kongponents100.cjs +1 -1
  2. package/dist/kongponents100.es.js +2 -2
  3. package/dist/kongponents106.cjs +1 -1
  4. package/dist/kongponents106.es.js +5 -5
  5. package/dist/kongponents108.cjs +1 -1
  6. package/dist/kongponents108.es.js +2 -2
  7. package/dist/kongponents110.cjs +1 -1
  8. package/dist/kongponents110.es.js +3 -3
  9. package/dist/kongponents114.cjs +1 -1
  10. package/dist/kongponents114.es.js +2 -2
  11. package/dist/kongponents116.cjs +1 -1
  12. package/dist/kongponents116.es.js +5 -5
  13. package/dist/kongponents118.cjs +1 -1
  14. package/dist/kongponents118.es.js +2 -2
  15. package/dist/kongponents120.cjs +1 -1
  16. package/dist/kongponents120.es.js +9 -9
  17. package/dist/kongponents123.cjs +1 -1
  18. package/dist/kongponents123.es.js +5 -5
  19. package/dist/kongponents125.cjs +1 -1
  20. package/dist/kongponents125.es.js +7 -7
  21. package/dist/kongponents129.cjs +1 -1
  22. package/dist/kongponents129.es.js +2 -2
  23. package/dist/kongponents131.cjs +1 -1
  24. package/dist/kongponents131.es.js +1 -1
  25. package/dist/kongponents133.cjs +1 -1
  26. package/dist/kongponents133.es.js +9 -9
  27. package/dist/kongponents140.cjs +1 -1
  28. package/dist/kongponents140.es.js +4 -4
  29. package/dist/kongponents142.cjs +1 -1
  30. package/dist/kongponents142.es.js +1 -1
  31. package/dist/kongponents144.cjs +1 -1
  32. package/dist/kongponents144.es.js +5 -5
  33. package/dist/kongponents148.cjs +1 -1
  34. package/dist/kongponents148.es.js +1 -1
  35. package/dist/kongponents150.cjs +1 -1
  36. package/dist/kongponents150.es.js +7 -7
  37. package/dist/kongponents156.cjs +1 -1
  38. package/dist/kongponents156.es.js +3 -3
  39. package/dist/kongponents158.cjs +1 -1
  40. package/dist/kongponents158.es.js +5 -5
  41. package/dist/kongponents160.cjs +1 -1
  42. package/dist/kongponents160.es.js +3 -3
  43. package/dist/kongponents162.cjs +1 -1
  44. package/dist/kongponents162.es.js +12 -12
  45. package/dist/kongponents167.cjs +1 -1
  46. package/dist/kongponents167.es.js +3 -3
  47. package/dist/kongponents175.cjs +1 -1
  48. package/dist/kongponents175.es.js +513 -110
  49. package/dist/kongponents176.cjs +1 -1
  50. package/dist/kongponents176.es.js +35 -120
  51. package/dist/kongponents177.cjs +2 -1
  52. package/dist/kongponents177.es.js +97 -120
  53. package/dist/kongponents178.cjs +1 -1
  54. package/dist/kongponents178.es.js +29 -29
  55. package/dist/kongponents179.cjs +1 -1
  56. package/dist/kongponents179.es.js +34 -34
  57. package/dist/kongponents180.cjs +1 -1
  58. package/dist/kongponents180.es.js +28 -28
  59. package/dist/kongponents181.cjs +1 -1
  60. package/dist/kongponents181.es.js +121 -20
  61. package/dist/kongponents182.cjs +1 -1
  62. package/dist/kongponents182.es.js +121 -5
  63. package/dist/kongponents183.cjs +2 -1
  64. package/dist/kongponents183.es.js +31 -30
  65. package/dist/kongponents184.cjs +1 -1
  66. package/dist/kongponents184.es.js +121 -5
  67. package/dist/kongponents185.cjs +1 -1
  68. package/dist/kongponents185.es.js +14 -14
  69. package/dist/kongponents186.cjs +1 -1
  70. package/dist/kongponents186.es.js +20 -121
  71. package/dist/kongponents187.cjs +1 -1
  72. package/dist/kongponents187.es.js +17 -121
  73. package/dist/kongponents188.cjs +1 -1
  74. package/dist/kongponents188.es.js +5 -97
  75. package/dist/kongponents189.cjs +1 -1
  76. package/dist/kongponents189.es.js +47 -162
  77. package/dist/kongponents190.cjs +1 -0
  78. package/dist/kongponents190.es.js +123 -0
  79. package/dist/kongponents191.cjs +1 -1
  80. package/dist/kongponents191.es.js +20 -120
  81. package/dist/kongponents192.cjs +1 -1
  82. package/dist/kongponents192.es.js +6 -4
  83. package/dist/kongponents193.cjs +1 -1
  84. package/dist/kongponents193.es.js +4 -7
  85. package/dist/kongponents194.cjs +1 -1
  86. package/dist/kongponents194.es.js +181 -60
  87. package/dist/kongponents195.cjs +1 -1
  88. package/dist/kongponents195.es.js +2 -2
  89. package/dist/kongponents196.cjs +1 -1
  90. package/dist/kongponents196.es.js +36 -36
  91. package/dist/kongponents197.cjs +1 -1
  92. package/dist/kongponents197.es.js +35 -35
  93. package/dist/kongponents199.cjs +1 -1
  94. package/dist/kongponents199.es.js +21 -21
  95. package/dist/kongponents20.cjs +1 -1
  96. package/dist/kongponents20.es.js +8 -8
  97. package/dist/kongponents200.cjs +1 -1
  98. package/dist/kongponents200.es.js +5 -121
  99. package/dist/kongponents201.cjs +1 -1
  100. package/dist/kongponents201.es.js +7 -20
  101. package/dist/kongponents202.cjs +1 -1
  102. package/dist/kongponents202.es.js +59 -523
  103. package/dist/kongponents203.cjs +1 -1
  104. package/dist/kongponents203.es.js +120 -35
  105. package/dist/kongponents204.cjs +1 -2
  106. package/dist/kongponents204.es.js +120 -97
  107. package/dist/kongponents205.cjs +1 -1
  108. package/dist/kongponents205.es.js +5 -121
  109. package/dist/kongponents206.cjs +1 -1
  110. package/dist/kongponents206.es.js +5 -121
  111. package/dist/kongponents207.cjs +1 -1
  112. package/dist/kongponents207.es.js +25 -25
  113. package/dist/kongponents208.cjs +1 -1
  114. package/dist/kongponents208.es.js +163 -117
  115. package/dist/kongponents209.cjs +1 -2
  116. package/dist/kongponents209.es.js +28 -29
  117. package/dist/kongponents210.cjs +1 -1
  118. package/dist/kongponents210.es.js +20 -20
  119. package/dist/kongponents211.cjs +1 -1
  120. package/dist/kongponents211.es.js +121 -17
  121. package/dist/kongponents212.cjs +1 -1
  122. package/dist/kongponents212.es.js +119 -50
  123. package/dist/kongponents213.cjs +1 -1
  124. package/dist/kongponents213.es.js +121 -7
  125. package/dist/kongponents214.cjs +1 -1
  126. package/dist/kongponents214.es.js +117 -177
  127. package/dist/kongponents215.cjs +1 -1
  128. package/dist/kongponents215.es.js +121 -5
  129. package/dist/kongponents216.cjs +1 -1
  130. package/dist/kongponents216.es.js +121 -5
  131. package/dist/kongponents217.cjs +1 -1
  132. package/dist/kongponents217.es.js +4 -4
  133. package/dist/kongponents218.cjs +1 -1
  134. package/dist/kongponents218.es.js +121 -5
  135. package/dist/kongponents219.cjs +1 -1
  136. package/dist/kongponents219.es.js +31 -31
  137. package/dist/kongponents22.cjs +1 -1
  138. package/dist/kongponents22.es.js +1 -1
  139. package/dist/kongponents220.cjs +1 -1
  140. package/dist/kongponents220.es.js +4 -4
  141. package/dist/kongponents221.cjs +1 -1
  142. package/dist/kongponents221.es.js +4 -4
  143. package/dist/kongponents222.cjs +1 -1
  144. package/dist/kongponents222.es.js +5 -121
  145. package/dist/kongponents223.cjs +1 -1
  146. package/dist/kongponents223.es.js +5 -121
  147. package/dist/kongponents224.cjs +1 -1
  148. package/dist/kongponents224.es.js +5 -121
  149. package/dist/kongponents225.cjs +1 -1
  150. package/dist/kongponents225.es.js +5 -121
  151. package/dist/kongponents226.cjs +1 -1
  152. package/dist/kongponents226.es.js +5 -121
  153. package/dist/kongponents227.cjs +1 -1
  154. package/dist/kongponents227.es.js +25 -25
  155. package/dist/kongponents228.cjs +1 -1
  156. package/dist/kongponents228.es.js +118 -111
  157. package/dist/kongponents229.cjs +1 -1
  158. package/dist/kongponents229.es.js +117 -13
  159. package/dist/kongponents230.cjs +1 -1
  160. package/dist/kongponents230.es.js +118 -394
  161. package/dist/kongponents231.cjs +1 -1
  162. package/dist/kongponents231.es.js +3 -3
  163. package/dist/kongponents232.cjs +1 -1
  164. package/dist/kongponents232.es.js +2 -2
  165. package/dist/kongponents233.cjs +1 -1
  166. package/dist/kongponents233.es.js +10 -5
  167. package/dist/kongponents234.cjs +1 -1
  168. package/dist/kongponents234.es.js +97 -5
  169. package/dist/kongponents235.cjs +1 -1
  170. package/dist/kongponents235.es.js +15 -5
  171. package/dist/kongponents236.cjs +1 -1
  172. package/dist/kongponents236.es.js +3 -3
  173. package/dist/kongponents237.cjs +1 -1
  174. package/dist/kongponents237.es.js +5 -121
  175. package/dist/kongponents238.cjs +1 -1
  176. package/dist/kongponents238.es.js +5 -15
  177. package/dist/kongponents239.cjs +1 -1
  178. package/dist/kongponents239.es.js +3 -3
  179. package/dist/kongponents24.cjs +1 -1
  180. package/dist/kongponents24.es.js +1 -1
  181. package/dist/kongponents240.cjs +1 -1
  182. package/dist/kongponents240.es.js +114 -5
  183. package/dist/kongponents241.cjs +1 -1
  184. package/dist/kongponents241.es.js +13 -117
  185. package/dist/kongponents242.cjs +1 -1
  186. package/dist/kongponents242.es.js +394 -118
  187. package/dist/kongponents243.cjs +1 -1
  188. package/dist/kongponents243.es.js +121 -5
  189. package/dist/kongponents244.cjs +1 -1
  190. package/dist/kongponents244.es.js +121 -10
  191. package/dist/{kongponents262.cjs → kongponents247.cjs} +1 -1
  192. package/dist/{kongponents262.es.js → kongponents247.es.js} +5 -5
  193. package/dist/{kongponents264.cjs → kongponents249.cjs} +1 -1
  194. package/dist/{kongponents264.es.js → kongponents249.es.js} +1 -1
  195. package/dist/kongponents250.cjs +1 -1
  196. package/dist/kongponents250.es.js +327 -47
  197. package/dist/{kongponents268.cjs → kongponents251.cjs} +1 -1
  198. package/dist/{kongponents268.es.js → kongponents251.es.js} +5 -5
  199. package/dist/{kongponents266.cjs → kongponents253.cjs} +1 -1
  200. package/dist/{kongponents266.es.js → kongponents253.es.js} +2 -2
  201. package/dist/{kongponents246.cjs → kongponents255.cjs} +1 -1
  202. package/dist/{kongponents246.es.js → kongponents255.es.js} +1 -1
  203. package/dist/kongponents256.cjs +1 -1
  204. package/dist/kongponents256.es.js +23 -45
  205. package/dist/kongponents259.cjs +1 -0
  206. package/dist/kongponents259.es.js +50 -0
  207. package/dist/kongponents26.cjs +1 -1
  208. package/dist/kongponents26.es.js +4 -4
  209. package/dist/kongponents261.cjs +1 -1
  210. package/dist/kongponents261.es.js +34 -23
  211. package/dist/kongponents265.cjs +1 -1
  212. package/dist/kongponents265.es.js +44 -327
  213. package/dist/kongponents269.cjs +1 -0
  214. package/dist/kongponents269.es.js +123 -0
  215. package/dist/kongponents270.cjs +1 -1
  216. package/dist/kongponents270.es.js +2 -121
  217. package/dist/kongponents271.cjs +1 -1
  218. package/dist/kongponents271.es.js +121 -2
  219. package/dist/kongponents272.cjs +1 -1
  220. package/dist/kongponents272.es.js +23 -23
  221. package/dist/kongponents273.cjs +1 -1
  222. package/dist/kongponents273.es.js +19 -19
  223. package/dist/kongponents274.cjs +1 -1
  224. package/dist/kongponents274.es.js +78 -116
  225. package/dist/kongponents278.cjs +1 -0
  226. package/dist/kongponents278.es.js +11 -0
  227. package/dist/kongponents279.cjs +1 -1
  228. package/dist/kongponents279.es.js +7 -180
  229. package/dist/kongponents280.cjs +1 -0
  230. package/dist/kongponents280.es.js +10 -0
  231. package/dist/kongponents281.cjs +1 -1
  232. package/dist/kongponents281.es.js +3 -3
  233. package/dist/kongponents282.cjs +1 -1
  234. package/dist/kongponents282.es.js +10 -5
  235. package/dist/kongponents283.cjs +1 -1
  236. package/dist/kongponents283.es.js +8 -19
  237. package/dist/kongponents284.cjs +1 -1
  238. package/dist/kongponents284.es.js +601 -3
  239. package/dist/kongponents285.cjs +1 -1
  240. package/dist/kongponents285.es.js +71 -5
  241. package/dist/kongponents286.cjs +1 -1
  242. package/dist/kongponents286.es.js +4 -5
  243. package/dist/kongponents287.cjs +1 -1
  244. package/dist/kongponents287.es.js +19 -8
  245. package/dist/kongponents288.cjs +1 -1
  246. package/dist/kongponents288.es.js +4 -5
  247. package/dist/kongponents289.cjs +1 -1
  248. package/dist/kongponents289.es.js +18 -4
  249. package/dist/kongponents290.cjs +1 -1
  250. package/dist/kongponents290.es.js +7 -16
  251. package/dist/kongponents291.cjs +1 -1
  252. package/dist/kongponents291.es.js +5 -3
  253. package/dist/kongponents292.cjs +1 -1
  254. package/dist/kongponents292.es.js +9 -8
  255. package/dist/kongponents293.cjs +1 -1
  256. package/dist/kongponents293.es.js +7 -6
  257. package/dist/kongponents294.cjs +1 -1
  258. package/dist/kongponents294.es.js +7 -3
  259. package/dist/kongponents295.cjs +1 -1
  260. package/dist/kongponents295.es.js +4 -1
  261. package/dist/kongponents296.cjs +1 -1
  262. package/dist/kongponents296.es.js +20 -5
  263. package/dist/kongponents297.cjs +1 -1
  264. package/dist/kongponents297.es.js +5 -10
  265. package/dist/kongponents298.cjs +1 -1
  266. package/dist/kongponents298.es.js +96 -4
  267. package/dist/kongponents299.cjs +1 -1
  268. package/dist/kongponents299.es.js +172 -4
  269. package/dist/kongponents300.cjs +1 -1
  270. package/dist/kongponents300.es.js +5 -3
  271. package/dist/kongponents301.cjs +1 -1
  272. package/dist/kongponents301.es.js +6 -3
  273. package/dist/kongponents302.cjs +1 -1
  274. package/dist/kongponents302.es.js +4 -7
  275. package/dist/kongponents303.cjs +1 -1
  276. package/dist/kongponents303.es.js +5 -7
  277. package/dist/kongponents304.cjs +1 -1
  278. package/dist/kongponents304.es.js +70 -5
  279. package/dist/kongponents305.cjs +1 -1
  280. package/dist/kongponents305.es.js +2 -10
  281. package/dist/kongponents306.cjs +1 -1
  282. package/dist/kongponents306.es.js +180 -6
  283. package/dist/kongponents308.cjs +1 -1
  284. package/dist/kongponents308.es.js +64 -7
  285. package/dist/kongponents310.cjs +3 -1
  286. package/dist/kongponents310.es.js +587 -11
  287. package/dist/kongponents311.cjs +1 -1
  288. package/dist/kongponents311.es.js +4 -6
  289. package/dist/kongponents312.cjs +1 -1
  290. package/dist/kongponents312.es.js +5 -13
  291. package/dist/kongponents313.cjs +1 -1
  292. package/dist/kongponents313.es.js +19 -9
  293. package/dist/kongponents314.cjs +1 -1
  294. package/dist/kongponents314.es.js +3 -5
  295. package/dist/kongponents315.cjs +1 -1
  296. package/dist/kongponents315.es.js +4 -8
  297. package/dist/kongponents316.cjs +1 -1
  298. package/dist/kongponents316.es.js +5 -15
  299. package/dist/kongponents317.cjs +1 -1
  300. package/dist/kongponents317.es.js +8 -17
  301. package/dist/kongponents318.cjs +1 -1
  302. package/dist/kongponents318.es.js +5 -5
  303. package/dist/kongponents319.cjs +1 -1
  304. package/dist/kongponents319.es.js +3 -10
  305. package/dist/kongponents320.cjs +1 -1
  306. package/dist/kongponents320.es.js +16 -6
  307. package/dist/kongponents321.cjs +1 -1
  308. package/dist/kongponents321.es.js +3 -7
  309. package/dist/kongponents322.cjs +1 -1
  310. package/dist/kongponents322.es.js +8 -6
  311. package/dist/kongponents323.cjs +1 -1
  312. package/dist/kongponents323.es.js +6 -6
  313. package/dist/kongponents324.cjs +1 -1
  314. package/dist/kongponents324.es.js +3 -9
  315. package/dist/kongponents325.cjs +1 -1
  316. package/dist/kongponents325.es.js +2 -8
  317. package/dist/kongponents326.cjs +1 -1
  318. package/dist/kongponents326.es.js +5 -3
  319. package/dist/kongponents327.cjs +1 -1
  320. package/dist/kongponents327.es.js +9 -5
  321. package/dist/kongponents328.cjs +1 -1
  322. package/dist/kongponents328.es.js +4 -15
  323. package/dist/kongponents329.cjs +1 -1
  324. package/dist/kongponents329.es.js +4 -91
  325. package/dist/kongponents330.cjs +1 -0
  326. package/dist/kongponents330.es.js +5 -0
  327. package/dist/kongponents331.cjs +1 -1
  328. package/dist/kongponents331.es.js +4 -225
  329. package/dist/kongponents332.cjs +1 -0
  330. package/dist/kongponents332.es.js +10 -0
  331. package/dist/kongponents333.cjs +1 -1
  332. package/dist/kongponents333.es.js +7 -213
  333. package/dist/kongponents334.cjs +1 -1
  334. package/dist/kongponents334.es.js +5 -9
  335. package/dist/kongponents335.cjs +1 -1
  336. package/dist/kongponents335.es.js +9 -6
  337. package/dist/kongponents336.cjs +1 -1
  338. package/dist/kongponents336.es.js +5 -7
  339. package/dist/kongponents337.cjs +1 -1
  340. package/dist/kongponents337.es.js +9 -5
  341. package/dist/kongponents338.cjs +1 -1
  342. package/dist/kongponents338.es.js +6 -9
  343. package/dist/kongponents339.cjs +1 -1
  344. package/dist/kongponents339.es.js +17 -8
  345. package/dist/kongponents340.cjs +1 -1
  346. package/dist/kongponents340.es.js +11 -601
  347. package/dist/kongponents341.cjs +1 -1
  348. package/dist/kongponents341.es.js +7 -71
  349. package/dist/kongponents342.cjs +1 -1
  350. package/dist/kongponents342.es.js +12 -4
  351. package/dist/kongponents343.cjs +1 -1
  352. package/dist/kongponents343.es.js +9 -19
  353. package/dist/kongponents344.cjs +1 -1
  354. package/dist/kongponents344.es.js +5 -4
  355. package/dist/kongponents345.cjs +1 -1
  356. package/dist/kongponents345.es.js +8 -17
  357. package/dist/kongponents346.cjs +1 -1
  358. package/dist/kongponents346.es.js +15 -7
  359. package/dist/kongponents347.cjs +1 -1
  360. package/dist/kongponents347.es.js +17 -5
  361. package/dist/kongponents348.cjs +1 -1
  362. package/dist/kongponents348.es.js +5 -8
  363. package/dist/kongponents349.cjs +1 -1
  364. package/dist/kongponents349.es.js +10 -7
  365. package/dist/kongponents350.cjs +1 -1
  366. package/dist/kongponents350.es.js +6 -7
  367. package/dist/kongponents351.cjs +1 -1
  368. package/dist/kongponents351.es.js +7 -4
  369. package/dist/kongponents352.cjs +1 -1
  370. package/dist/kongponents352.es.js +5 -20
  371. package/dist/kongponents353.cjs +1 -1
  372. package/dist/kongponents353.es.js +7 -5
  373. package/dist/kongponents354.cjs +1 -1
  374. package/dist/kongponents354.es.js +9 -96
  375. package/dist/kongponents355.cjs +1 -1
  376. package/dist/kongponents355.es.js +7 -171
  377. package/dist/kongponents356.cjs +1 -1
  378. package/dist/kongponents356.es.js +4 -5
  379. package/dist/kongponents357.cjs +1 -1
  380. package/dist/kongponents357.es.js +5 -6
  381. package/dist/kongponents358.cjs +1 -1
  382. package/dist/kongponents358.es.js +16 -5
  383. package/dist/kongponents359.cjs +1 -1
  384. package/dist/kongponents359.es.js +87 -5
  385. package/dist/kongponents361.cjs +1 -1
  386. package/dist/kongponents361.es.js +45 -2
  387. package/dist/kongponents363.cjs +1 -1
  388. package/dist/kongponents363.es.js +91 -2
  389. package/dist/kongponents365.cjs +1 -0
  390. package/dist/kongponents365.es.js +227 -0
  391. package/dist/kongponents368.cjs +1 -1
  392. package/dist/kongponents368.es.js +2 -64
  393. package/dist/kongponents369.cjs +1 -0
  394. package/dist/kongponents369.es.js +1542 -0
  395. package/dist/kongponents370.cjs +1 -1
  396. package/dist/kongponents370.es.js +5 -1540
  397. package/dist/kongponents371.cjs +1 -1
  398. package/dist/kongponents371.es.js +5774 -5
  399. package/dist/kongponents372.cjs +1 -1
  400. package/dist/kongponents372.es.js +6 -2
  401. package/dist/kongponents373.cjs +1 -1
  402. package/dist/kongponents373.es.js +2 -5774
  403. package/dist/kongponents374.cjs +1 -1
  404. package/dist/kongponents374.es.js +95 -6
  405. package/dist/kongponents376.cjs +1 -1
  406. package/dist/kongponents376.es.js +25 -6
  407. package/dist/kongponents377.cjs +1 -1
  408. package/dist/kongponents377.es.js +2 -9
  409. package/dist/kongponents378.cjs +1 -1
  410. package/dist/kongponents378.es.js +10 -9
  411. package/dist/kongponents379.cjs +1 -1
  412. package/dist/kongponents379.es.js +10 -14
  413. package/dist/kongponents380.cjs +1 -1
  414. package/dist/kongponents380.es.js +12 -5
  415. package/dist/kongponents381.cjs +1 -1
  416. package/dist/kongponents381.es.js +11 -3
  417. package/dist/kongponents382.cjs +1 -1
  418. package/dist/kongponents382.es.js +18 -7
  419. package/dist/kongponents383.cjs +1 -1
  420. package/dist/kongponents383.es.js +6 -3
  421. package/dist/kongponents384.cjs +1 -1
  422. package/dist/kongponents384.es.js +53 -10
  423. package/dist/kongponents385.cjs +1 -1
  424. package/dist/kongponents385.es.js +17 -7
  425. package/dist/kongponents386.cjs +1 -1
  426. package/dist/kongponents386.es.js +2 -6
  427. package/dist/kongponents387.cjs +1 -1
  428. package/dist/kongponents387.es.js +13 -2
  429. package/dist/kongponents388.cjs +1 -1
  430. package/dist/kongponents388.es.js +17 -12
  431. package/dist/kongponents389.cjs +1 -1
  432. package/dist/kongponents389.es.js +64 -4
  433. package/dist/kongponents390.cjs +1 -1
  434. package/dist/kongponents390.es.js +5 -3
  435. package/dist/kongponents391.cjs +1 -1
  436. package/dist/kongponents391.es.js +71 -25
  437. package/dist/kongponents392.cjs +1 -1
  438. package/dist/kongponents392.es.js +2 -4
  439. package/dist/kongponents393.cjs +1 -1
  440. package/dist/kongponents393.es.js +23 -4
  441. package/dist/kongponents394.cjs +1 -1
  442. package/dist/kongponents394.es.js +22 -4
  443. package/dist/kongponents395.cjs +1 -1
  444. package/dist/kongponents395.es.js +21 -4
  445. package/dist/kongponents396.cjs +1 -1
  446. package/dist/kongponents396.es.js +615 -4
  447. package/dist/kongponents397.cjs +1 -1
  448. package/dist/kongponents397.es.js +80 -14
  449. package/dist/kongponents398.cjs +1 -1
  450. package/dist/kongponents398.es.js +14 -5
  451. package/dist/kongponents399.cjs +1 -1
  452. package/dist/kongponents399.es.js +24 -27
  453. package/dist/kongponents400.cjs +1 -1
  454. package/dist/kongponents400.es.js +15 -25
  455. package/dist/kongponents401.cjs +1 -1
  456. package/dist/kongponents401.es.js +14 -15
  457. package/dist/kongponents402.cjs +1 -1
  458. package/dist/kongponents402.es.js +14 -7
  459. package/dist/kongponents403.cjs +1 -1
  460. package/dist/kongponents403.es.js +14 -4
  461. package/dist/kongponents404.cjs +1 -1
  462. package/dist/kongponents404.es.js +23 -13
  463. package/dist/kongponents405.cjs +1 -1
  464. package/dist/kongponents405.es.js +2 -9
  465. package/dist/kongponents406.cjs +1 -1
  466. package/dist/kongponents406.es.js +2 -3
  467. package/dist/kongponents407.cjs +1 -1
  468. package/dist/kongponents407.es.js +213 -6
  469. package/dist/kongponents408.cjs +1 -1
  470. package/dist/kongponents408.es.js +7 -5
  471. package/dist/kongponents409.cjs +1 -1
  472. package/dist/kongponents409.es.js +5 -7
  473. package/dist/kongponents410.cjs +1 -1
  474. package/dist/kongponents410.es.js +9 -6
  475. package/dist/kongponents411.cjs +1 -1
  476. package/dist/kongponents411.es.js +8 -9
  477. package/dist/kongponents412.cjs +1 -1
  478. package/dist/kongponents412.es.js +14 -5
  479. package/dist/kongponents413.cjs +1 -1
  480. package/dist/kongponents413.es.js +5 -4
  481. package/dist/kongponents414.cjs +1 -1
  482. package/dist/kongponents414.es.js +3 -5
  483. package/dist/kongponents415.cjs +1 -1
  484. package/dist/kongponents415.es.js +7 -5
  485. package/dist/kongponents416.cjs +1 -1
  486. package/dist/kongponents416.es.js +3 -8
  487. package/dist/kongponents417.cjs +1 -1
  488. package/dist/kongponents417.es.js +10 -6
  489. package/dist/kongponents418.cjs +1 -1
  490. package/dist/kongponents418.es.js +8 -10
  491. package/dist/kongponents419.cjs +1 -1
  492. package/dist/kongponents419.es.js +5 -6
  493. package/dist/kongponents420.cjs +1 -1
  494. package/dist/kongponents420.es.js +2 -22
  495. package/dist/kongponents421.cjs +1 -1
  496. package/dist/kongponents421.es.js +12 -6
  497. package/dist/kongponents422.cjs +1 -1
  498. package/dist/kongponents422.es.js +4 -6
  499. package/dist/kongponents423.cjs +1 -1
  500. package/dist/kongponents423.es.js +3 -7
  501. package/dist/kongponents424.cjs +1 -1
  502. package/dist/kongponents424.es.js +26 -9
  503. package/dist/kongponents425.cjs +1 -1
  504. package/dist/kongponents425.es.js +4 -95
  505. package/dist/kongponents426.cjs +1 -0
  506. package/dist/kongponents426.es.js +6 -0
  507. package/dist/kongponents427.cjs +1 -1
  508. package/dist/kongponents427.es.js +4 -11
  509. package/dist/kongponents428.cjs +1 -1
  510. package/dist/kongponents428.es.js +4 -11
  511. package/dist/kongponents429.cjs +1 -1
  512. package/dist/kongponents429.es.js +4 -13
  513. package/dist/kongponents430.cjs +1 -1
  514. package/dist/kongponents430.es.js +14 -10
  515. package/dist/kongponents431.cjs +1 -1
  516. package/dist/kongponents431.es.js +5 -18
  517. package/dist/kongponents432.cjs +1 -1
  518. package/dist/kongponents432.es.js +29 -5
  519. package/dist/kongponents433.cjs +1 -1
  520. package/dist/kongponents433.es.js +25 -52
  521. package/dist/kongponents434.cjs +1 -1
  522. package/dist/kongponents434.es.js +16 -2
  523. package/dist/kongponents435.cjs +1 -1
  524. package/dist/kongponents435.es.js +9 -4
  525. package/dist/kongponents436.cjs +1 -1
  526. package/dist/kongponents436.es.js +5 -25
  527. package/dist/kongponents437.cjs +1 -1
  528. package/dist/kongponents437.es.js +14 -122
  529. package/dist/kongponents438.cjs +1 -0
  530. package/dist/kongponents438.es.js +11 -0
  531. package/dist/kongponents439.cjs +1 -1
  532. package/dist/kongponents439.es.js +3 -72
  533. package/dist/kongponents440.cjs +1 -1
  534. package/dist/kongponents440.es.js +6 -2
  535. package/dist/kongponents441.cjs +1 -1
  536. package/dist/kongponents441.es.js +5 -12
  537. package/dist/kongponents442.cjs +1 -1
  538. package/dist/kongponents442.es.js +7 -22
  539. package/dist/kongponents443.cjs +1 -1
  540. package/dist/kongponents443.es.js +5 -21
  541. package/dist/kongponents444.cjs +1 -1
  542. package/dist/kongponents444.es.js +10 -20
  543. package/dist/kongponents445.cjs +1 -1
  544. package/dist/kongponents445.es.js +5 -614
  545. package/dist/kongponents446.cjs +1 -1
  546. package/dist/kongponents446.es.js +4 -80
  547. package/dist/kongponents447.cjs +1 -1
  548. package/dist/kongponents447.es.js +4 -14
  549. package/dist/kongponents448.cjs +1 -1
  550. package/dist/kongponents448.es.js +5 -26
  551. package/dist/kongponents449.cjs +1 -1
  552. package/dist/kongponents449.es.js +8 -17
  553. package/dist/kongponents450.cjs +1 -1
  554. package/dist/kongponents450.es.js +6 -14
  555. package/dist/kongponents451.cjs +1 -1
  556. package/dist/kongponents451.es.js +9 -16
  557. package/dist/kongponents452.cjs +1 -1
  558. package/dist/kongponents452.es.js +6 -14
  559. package/dist/kongponents453.cjs +1 -1
  560. package/dist/kongponents453.es.js +21 -23
  561. package/dist/kongponents454.cjs +1 -1
  562. package/dist/kongponents454.es.js +6 -17
  563. package/dist/kongponents455.cjs +1 -1
  564. package/dist/kongponents455.es.js +7 -2
  565. package/dist/kongponents456.cjs +1 -1
  566. package/dist/kongponents456.es.js +6 -17
  567. package/dist/kongponents457.cjs +1 -1
  568. package/dist/kongponents457.es.js +8 -64
  569. package/dist/kongponents458.cjs +1 -1
  570. package/dist/kongponents458.es.js +374 -4
  571. package/dist/kongponents459.cjs +1 -1
  572. package/dist/kongponents459.es.js +128 -2
  573. package/dist/kongponents460.cjs +1 -1
  574. package/dist/kongponents460.es.js +11 -2
  575. package/dist/kongponents461.cjs +1 -1
  576. package/dist/kongponents461.es.js +13 -371
  577. package/dist/kongponents462.cjs +1 -1
  578. package/dist/kongponents462.es.js +66 -127
  579. package/dist/kongponents463.cjs +1 -1
  580. package/dist/kongponents463.es.js +31 -11
  581. package/dist/kongponents464.cjs +1 -1
  582. package/dist/kongponents464.es.js +10 -16
  583. package/dist/kongponents465.cjs +1 -1
  584. package/dist/kongponents465.es.js +121 -7
  585. package/dist/kongponents466.cjs +1 -1
  586. package/dist/kongponents466.es.js +85 -17
  587. package/dist/kongponents467.cjs +1 -1
  588. package/dist/kongponents467.es.js +7 -4
  589. package/dist/kongponents468.cjs +1 -1
  590. package/dist/kongponents468.es.js +10 -4
  591. package/dist/kongponents469.cjs +1 -1
  592. package/dist/kongponents469.es.js +13 -3
  593. package/dist/kongponents470.cjs +1 -1
  594. package/dist/kongponents470.es.js +13 -3
  595. package/dist/kongponents471.cjs +1 -1
  596. package/dist/kongponents471.es.js +2 -15
  597. package/dist/kongponents472.cjs +1 -1
  598. package/dist/kongponents472.es.js +2 -7
  599. package/dist/kongponents473.cjs +1 -1
  600. package/dist/kongponents473.es.js +2 -8
  601. package/dist/kongponents474.cjs +1 -1
  602. package/dist/kongponents474.es.js +18 -10
  603. package/dist/kongponents475.cjs +1 -1
  604. package/dist/kongponents475.es.js +2 -5
  605. package/dist/kongponents476.cjs +1 -1
  606. package/dist/kongponents476.es.js +21 -3
  607. package/dist/kongponents477.cjs +1 -1
  608. package/dist/kongponents477.es.js +2 -4
  609. package/dist/kongponents478.cjs +1 -1
  610. package/dist/kongponents478.es.js +14 -36
  611. package/dist/kongponents479.cjs +1 -1
  612. package/dist/kongponents479.es.js +2 -43
  613. package/dist/kongponents480.cjs +1 -1
  614. package/dist/kongponents480.es.js +21 -32
  615. package/dist/kongponents481.cjs +1 -1
  616. package/dist/kongponents481.es.js +23 -3
  617. package/dist/kongponents482.cjs +1 -1
  618. package/dist/kongponents482.es.js +25 -17
  619. package/dist/kongponents483.cjs +1 -1
  620. package/dist/kongponents483.es.js +22 -5
  621. package/dist/kongponents484.cjs +1 -1
  622. package/dist/kongponents484.es.js +31 -7
  623. package/dist/kongponents485.cjs +1 -1
  624. package/dist/kongponents485.es.js +15 -10
  625. package/dist/kongponents486.cjs +1 -1
  626. package/dist/kongponents486.es.js +65 -13
  627. package/dist/kongponents487.cjs +1 -1
  628. package/dist/kongponents487.es.js +2 -14
  629. package/dist/kongponents488.cjs +1 -1
  630. package/dist/kongponents488.es.js +2 -67
  631. package/dist/kongponents489.cjs +1 -1
  632. package/dist/kongponents489.es.js +2 -31
  633. package/dist/kongponents490.cjs +1 -1
  634. package/dist/kongponents490.es.js +2 -11
  635. package/dist/kongponents491.cjs +1 -1
  636. package/dist/kongponents491.es.js +2 -121
  637. package/dist/kongponents492.cjs +1 -1
  638. package/dist/kongponents492.es.js +30 -86
  639. package/dist/kongponents493.cjs +1 -1
  640. package/dist/kongponents493.es.js +4 -2
  641. package/dist/kongponents494.cjs +1 -1
  642. package/dist/kongponents494.es.js +5 -2
  643. package/dist/kongponents495.cjs +1 -1
  644. package/dist/kongponents495.es.js +6 -18
  645. package/dist/kongponents496.cjs +1 -1
  646. package/dist/kongponents496.es.js +18 -2
  647. package/dist/kongponents497.cjs +1 -1
  648. package/dist/kongponents497.es.js +4 -21
  649. package/dist/kongponents498.cjs +1 -1
  650. package/dist/kongponents498.es.js +5 -2
  651. package/dist/kongponents499.cjs +1 -1
  652. package/dist/kongponents499.es.js +3 -15
  653. package/dist/kongponents500.cjs +1 -1
  654. package/dist/kongponents500.es.js +4 -2
  655. package/dist/kongponents501.cjs +1 -1
  656. package/dist/kongponents501.es.js +14 -22
  657. package/dist/kongponents502.cjs +1 -1
  658. package/dist/kongponents502.es.js +6 -22
  659. package/dist/kongponents503.cjs +1 -1
  660. package/dist/kongponents503.es.js +8 -26
  661. package/dist/kongponents504.cjs +1 -1
  662. package/dist/kongponents504.es.js +10 -22
  663. package/dist/kongponents505.cjs +1 -1
  664. package/dist/kongponents505.es.js +4 -31
  665. package/dist/kongponents506.cjs +1 -1
  666. package/dist/kongponents506.es.js +3 -15
  667. package/dist/kongponents507.cjs +1 -1
  668. package/dist/kongponents507.es.js +3 -65
  669. package/dist/kongponents508.cjs +1 -1
  670. package/dist/kongponents508.es.js +38 -2
  671. package/dist/kongponents509.cjs +1 -1
  672. package/dist/kongponents509.es.js +43 -2
  673. package/dist/kongponents510.cjs +1 -1
  674. package/dist/kongponents510.es.js +34 -2
  675. package/dist/kongponents511.cjs +1 -1
  676. package/dist/kongponents511.es.js +3 -2
  677. package/dist/kongponents512.cjs +1 -1
  678. package/dist/kongponents512.es.js +18 -2
  679. package/dist/kongponents513.cjs +1 -1
  680. package/dist/kongponents513.es.js +5 -29
  681. package/dist/kongponents514.cjs +1 -1
  682. package/dist/kongponents514.es.js +122 -2
  683. package/dist/kongponents516.cjs +1 -1
  684. package/dist/kongponents516.es.js +29 -4
  685. package/dist/kongponents517.cjs +1 -1
  686. package/dist/kongponents517.es.js +119 -3
  687. package/dist/kongponents518.cjs +1 -1
  688. package/dist/kongponents518.es.js +29 -9
  689. package/dist/kongponents519.cjs +1 -1
  690. package/dist/kongponents519.es.js +10 -5
  691. package/dist/kongponents520.cjs +1 -1
  692. package/dist/kongponents520.es.js +13 -4
  693. package/dist/kongponents521.cjs +1 -1
  694. package/dist/kongponents521.es.js +32 -5
  695. package/dist/kongponents522.cjs +1 -1
  696. package/dist/kongponents522.es.js +29 -3
  697. package/dist/kongponents523.cjs +1 -1
  698. package/dist/kongponents523.es.js +10 -4
  699. package/dist/kongponents524.cjs +1 -1
  700. package/dist/kongponents524.es.js +12 -4
  701. package/dist/kongponents525.cjs +1 -1
  702. package/dist/kongponents525.es.js +17 -10
  703. package/dist/kongponents526.cjs +1 -1
  704. package/dist/kongponents526.es.js +23 -6
  705. package/dist/kongponents527.cjs +1 -1
  706. package/dist/kongponents527.es.js +16 -6
  707. package/dist/kongponents528.cjs +1 -1
  708. package/dist/kongponents528.es.js +96 -4
  709. package/dist/kongponents529.cjs +1 -1
  710. package/dist/kongponents529.es.js +43 -5
  711. package/dist/kongponents530.cjs +1 -1
  712. package/dist/kongponents530.es.js +27 -13
  713. package/dist/kongponents531.cjs +1 -1
  714. package/dist/kongponents531.es.js +70 -27
  715. package/dist/kongponents532.cjs +1 -1
  716. package/dist/kongponents532.es.js +50 -14
  717. package/dist/kongponents533.cjs +1 -1
  718. package/dist/kongponents533.es.js +35 -29
  719. package/dist/kongponents534.cjs +1 -1
  720. package/dist/kongponents534.es.js +39 -117
  721. package/dist/kongponents535.cjs +1 -1
  722. package/dist/kongponents535.es.js +5 -28
  723. package/dist/kongponents536.cjs +1 -1
  724. package/dist/kongponents536.es.js +13 -9
  725. package/dist/kongponents537.cjs +1 -1
  726. package/dist/kongponents537.es.js +28 -13
  727. package/dist/kongponents538.cjs +1 -1
  728. package/dist/kongponents538.es.js +15 -32
  729. package/dist/kongponents539.cjs +1 -1
  730. package/dist/kongponents539.es.js +2 -29
  731. package/dist/kongponents540.cjs +1 -1
  732. package/dist/kongponents540.es.js +2 -11
  733. package/dist/kongponents541.cjs +1 -1
  734. package/dist/kongponents541.es.js +2 -13
  735. package/dist/kongponents542.cjs +1 -1
  736. package/dist/kongponents542.es.js +2 -18
  737. package/dist/kongponents543.cjs +1 -1
  738. package/dist/kongponents543.es.js +2 -24
  739. package/dist/kongponents544.cjs +1 -1
  740. package/dist/kongponents544.es.js +20 -16
  741. package/dist/kongponents545.cjs +1 -1
  742. package/dist/kongponents545.es.js +22 -95
  743. package/dist/kongponents546.cjs +1 -1
  744. package/dist/kongponents546.es.js +2 -45
  745. package/dist/kongponents547.cjs +1 -1
  746. package/dist/kongponents547.es.js +2 -29
  747. package/dist/kongponents548.cjs +1 -1
  748. package/dist/kongponents548.es.js +25 -70
  749. package/dist/kongponents549.cjs +1 -1
  750. package/dist/kongponents549.es.js +25 -50
  751. package/dist/kongponents550.cjs +1 -1
  752. package/dist/kongponents550.es.js +2 -35
  753. package/dist/kongponents551.cjs +1 -1
  754. package/dist/kongponents551.es.js +2 -42
  755. package/dist/kongponents552.es.js +2 -2
  756. package/dist/kongponents553.es.js +2 -2
  757. package/dist/kongponents554.cjs +1 -1
  758. package/dist/kongponents554.es.js +77 -2
  759. package/dist/kongponents555.cjs +1 -1
  760. package/dist/kongponents555.es.js +43 -2
  761. package/dist/kongponents556.cjs +1 -1
  762. package/dist/kongponents556.es.js +21 -2
  763. package/dist/kongponents557.cjs +1 -1
  764. package/dist/kongponents557.es.js +131 -19
  765. package/dist/kongponents558.cjs +1 -1
  766. package/dist/kongponents558.es.js +96 -22
  767. package/dist/kongponents559.cjs +1 -1
  768. package/dist/kongponents559.es.js +4 -2
  769. package/dist/kongponents560.cjs +1 -1
  770. package/dist/kongponents560.es.js +4 -2
  771. package/dist/kongponents561.cjs +1 -1
  772. package/dist/kongponents561.es.js +9 -26
  773. package/dist/kongponents562.cjs +1 -1
  774. package/dist/kongponents562.es.js +5 -26
  775. package/dist/kongponents563.cjs +1 -1
  776. package/dist/kongponents563.es.js +5 -2
  777. package/dist/kongponents564.cjs +1 -1
  778. package/dist/kongponents564.es.js +6 -2
  779. package/dist/kongponents565.cjs +1 -1
  780. package/dist/kongponents565.es.js +3 -2
  781. package/dist/kongponents566.cjs +1 -1
  782. package/dist/kongponents566.es.js +5 -2
  783. package/dist/kongponents567.cjs +1 -1
  784. package/dist/kongponents567.es.js +4 -76
  785. package/dist/kongponents568.cjs +1 -1
  786. package/dist/kongponents568.es.js +10 -42
  787. package/dist/kongponents569.cjs +1 -1
  788. package/dist/kongponents569.es.js +6 -20
  789. package/dist/kongponents570.cjs +1 -1
  790. package/dist/kongponents570.es.js +6 -132
  791. package/dist/kongponents571.cjs +1 -1
  792. package/dist/kongponents571.es.js +4 -97
  793. package/dist/kongponents572.cjs +1 -1
  794. package/dist/kongponents572.es.js +2 -6
  795. package/dist/kongponents573.cjs +1 -1
  796. package/dist/kongponents573.es.js +4 -3
  797. package/dist/kongponents574.cjs +1 -1
  798. package/dist/kongponents574.es.js +15 -20
  799. package/dist/kongponents575.cjs +1 -1
  800. package/dist/kongponents575.es.js +3 -7
  801. package/dist/kongponents576.cjs +1 -1
  802. package/dist/kongponents576.es.js +9 -3
  803. package/dist/kongponents577.cjs +1 -1
  804. package/dist/kongponents577.es.js +4 -6
  805. package/dist/kongponents578.cjs +1 -1
  806. package/dist/kongponents578.es.js +5 -7
  807. package/dist/kongponents579.cjs +1 -1
  808. package/dist/kongponents579.es.js +9 -5
  809. package/dist/kongponents580.cjs +1 -1
  810. package/dist/kongponents580.es.js +8 -4
  811. package/dist/kongponents581.cjs +1 -1
  812. package/dist/kongponents581.es.js +3 -6
  813. package/dist/kongponents582.cjs +1 -1
  814. package/dist/kongponents582.es.js +3 -15
  815. package/dist/kongponents583.cjs +1 -1
  816. package/dist/kongponents583.es.js +4 -10
  817. package/dist/kongponents584.cjs +1 -1
  818. package/dist/kongponents584.es.js +9 -2
  819. package/dist/kongponents585.cjs +1 -1
  820. package/dist/kongponents585.es.js +8 -3
  821. package/dist/kongponents586.cjs +1 -1
  822. package/dist/kongponents586.es.js +30 -6
  823. package/dist/kongponents587.cjs +1 -1
  824. package/dist/kongponents587.es.js +24 -30
  825. package/dist/kongponents588.cjs +1 -1
  826. package/dist/kongponents588.es.js +51 -34
  827. package/dist/kongponents589.cjs +1 -1
  828. package/dist/kongponents589.es.js +3 -51
  829. package/dist/kongponents590.cjs +1 -1
  830. package/dist/kongponents590.es.js +8 -8
  831. package/dist/kongponents591.cjs +1 -1
  832. package/dist/kongponents591.es.js +20 -4
  833. package/dist/kongponents592.cjs +1 -1
  834. package/dist/kongponents592.es.js +7 -5
  835. package/dist/kongponents593.cjs +1 -1
  836. package/dist/kongponents593.es.js +6 -3
  837. package/dist/kongponents594.cjs +1 -1
  838. package/dist/kongponents594.es.js +5 -15
  839. package/dist/kongponents595.cjs +1 -1
  840. package/dist/kongponents595.es.js +7 -3
  841. package/dist/kongponents596.cjs +1 -1
  842. package/dist/kongponents596.es.js +15 -9
  843. package/dist/kongponents597.cjs +1 -1
  844. package/dist/kongponents597.es.js +4 -3
  845. package/dist/kongponents598.cjs +1 -1
  846. package/dist/kongponents598.es.js +6 -11
  847. package/dist/kongponents599.cjs +1 -1
  848. package/dist/kongponents599.es.js +34 -9
  849. package/dist/kongponents600.cjs +1 -1
  850. package/dist/kongponents600.es.js +7 -23
  851. package/dist/kongponents601.cjs +1 -1
  852. package/dist/kongponents601.es.js +2 -4
  853. package/dist/kongponents602.cjs +1 -1
  854. package/dist/kongponents602.es.js +2 -9
  855. package/dist/kongponents605.es.js +2 -2
  856. package/dist/kongponents606.es.js +2 -2
  857. package/dist/kongponents607.cjs +1 -1
  858. package/dist/kongponents607.es.js +17 -2
  859. package/dist/kongponents608.es.js +2 -2
  860. package/dist/kongponents609.cjs +1 -1
  861. package/dist/kongponents609.es.js +2 -17
  862. package/dist/kongponents610.cjs +1 -1
  863. package/dist/kongponents610.es.js +25 -2
  864. package/dist/kongponents611.es.js +2 -2
  865. package/dist/kongponents612.cjs +1 -1
  866. package/dist/kongponents612.es.js +34 -20
  867. package/dist/kongponents613.cjs +1 -1
  868. package/dist/kongponents613.es.js +26 -2
  869. package/dist/kongponents614.cjs +1 -1
  870. package/dist/kongponents614.es.js +7 -38
  871. package/dist/kongponents615.cjs +1 -1
  872. package/dist/kongponents615.es.js +3 -26
  873. package/dist/kongponents616.cjs +1 -1
  874. package/dist/kongponents616.es.js +1 -1
  875. package/dist/kongponents617.cjs +1 -1
  876. package/dist/kongponents617.es.js +1 -1
  877. package/dist/kongponents619.cjs +1 -1
  878. package/dist/kongponents619.es.js +3 -3
  879. package/dist/kongponents620.cjs +1 -1
  880. package/dist/kongponents620.es.js +4 -4
  881. package/dist/kongponents622.es.js +2 -2
  882. package/dist/kongponents623.es.js +2 -2
  883. package/dist/kongponents624.es.js +2 -2
  884. package/dist/kongponents73.cjs +1 -1
  885. package/dist/kongponents73.es.js +7 -7
  886. package/dist/kongponents76.cjs +1 -1
  887. package/dist/kongponents76.es.js +1 -1
  888. package/dist/kongponents78.cjs +1 -1
  889. package/dist/kongponents78.es.js +1 -1
  890. package/dist/kongponents88.cjs +1 -1
  891. package/dist/kongponents88.es.js +3 -3
  892. package/dist/kongponents90.cjs +1 -1
  893. package/dist/kongponents90.es.js +15 -15
  894. package/dist/kongponents95.cjs +1 -1
  895. package/dist/kongponents95.es.js +2 -2
  896. package/dist/kongponents97.cjs +1 -1
  897. package/dist/kongponents97.es.js +6 -6
  898. package/package.json +33 -34
  899. package/dist/kongponents198.cjs +0 -1
  900. package/dist/kongponents198.es.js +0 -7
  901. package/dist/kongponents252.cjs +0 -1
  902. package/dist/kongponents252.es.js +0 -36
  903. package/dist/kongponents260.cjs +0 -3
  904. package/dist/kongponents260.es.js +0 -590
  905. package/dist/kongponents275.cjs +0 -1
  906. package/dist/kongponents275.es.js +0 -89
  907. package/dist/kongponents277.cjs +0 -1
  908. package/dist/kongponents277.es.js +0 -47
  909. package/dist/kongponents307.cjs +0 -1
  910. package/dist/kongponents307.es.js +0 -11
  911. package/dist/kongponents309.cjs +0 -1
  912. package/dist/kongponents309.es.js +0 -20
  913. package/dist/kongponents360.cjs +0 -1
  914. package/dist/kongponents360.es.js +0 -72
  915. package/dist/kongponents364.cjs +0 -1
  916. package/dist/kongponents364.es.js +0 -85
  917. package/dist/kongponents375.cjs +0 -1
  918. package/dist/kongponents375.es.js +0 -10
  919. package/dist/kongponents515.cjs +0 -1
  920. package/dist/kongponents515.es.js +0 -6
  921. /package/dist/{kongponents248.cjs → kongponents257.cjs} +0 -0
  922. /package/dist/{kongponents248.es.js → kongponents257.es.js} +0 -0
  923. /package/dist/{kongponents254.cjs → kongponents263.cjs} +0 -0
  924. /package/dist/{kongponents254.es.js → kongponents263.es.js} +0 -0
  925. /package/dist/{kongponents258.cjs → kongponents267.cjs} +0 -0
  926. /package/dist/{kongponents258.es.js → kongponents267.es.js} +0 -0
  927. /package/dist/{kongponents366.cjs → kongponents276.cjs} +0 -0
  928. /package/dist/{kongponents366.es.js → kongponents276.es.js} +0 -0
  929. /package/dist/{kongponents362.cjs → kongponents367.cjs} +0 -0
  930. /package/dist/{kongponents362.es.js → kongponents367.es.js} +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("./kongponents32.cjs"),C=require("./kongponents24.cjs");;/* empty css */const B=require("./kongponents56.cjs"),P=require("./kongponents23.cjs"),T=require("./kongponents44.cjs"),x=require("./kongponents183.cjs"),y=require("./kongponents181.cjs"),D={class:"dropdown-list","data-testid":"dropdown-list"},q=e.defineComponent({__name:"KDropdown",props:{selectionMenu:{type:Boolean},appearance:{default:"primary"},triggerText:{default:""},showCaret:{type:Boolean},width:{default:""},kpopAttributes:{default:()=>({})},items:{default:()=>[]},disabled:{type:Boolean},disabledTooltip:{default:""},label:{}},emits:["toggleDropdown","change"],setup(t,{expose:g,emit:v}){e.watch(()=>t.appearance,o=>{(o==="menu"||o==="selectionMenu")&&console.warn("KDropdown: the usage for the `appearance` prop has changed. Please see the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kdropdownmenu")},{immediate:!0}),e.watch(()=>t.label,o=>{o&&console.warn("KDropdown: `label` prop is deprecated. Please use `triggerText` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kdropdownmenu")},{immediate:!0});const s=v,h=e.computed(()=>t.disabledTooltip?C.default:"div"),u=e.useTemplateRef("kPop"),c={hideCaret:!0,popoverClasses:"k-dropdown-popover dropdown-popover",popoverTimeout:0,placement:"bottom-start"},w={...c,...t.kpopAttributes,width:t.width||void 0,popoverClasses:`${c.popoverClasses} ${t.kpopAttributes?.popoverClasses||""}`},p=e.computed(()=>l.value?.label||t.triggerText||t.label||""),l=e.ref(),m=o=>{t.selectionMenu&&(l.value=o)},f=()=>{u.value?.hidePopover()},d=(o,n,r)=>{o.value!==r&&(n(),s("toggleDropdown",o.value))};return e.watch(l,(o,n)=>{o&&o!==n&&s("change",o)}),e.onMounted(()=>{if(t.items){const o=t.items.filter(n=>n.selected);o.length&&(l.value=o[0])}}),g({openDropdown:()=>{u.value?.showPopover()},closeDropdown:f}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-dropdown",{"selection-dropdown-menu":t.selectionMenu}])},[e.createVNode(P.default,null,{default:e.withCtx(({toggle:r,isToggled:a})=>[e.createVNode(B.default,e.mergeProps({ref:"kPop"},w,{"close-on-popover-click":"","data-testid":"dropdown-popover","hide-close-icon":"",offset:`var(--kui-space-20, ${e.unref(y.KUI_SPACE_20)})`,onClose:()=>d(a,r,!1),onOpen:()=>d(a,r,!0),onPopoverClick:()=>d(a,r,!1)}),{content:e.withCtx(()=>[e.createElementVNode("ul",D,[e.renderSlot(o.$slots,"items",{closeDropdown:f,handleSelection:m,items:t.items},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(i,k)=>(e.openBlock(),e.createBlock(T.default,e.mergeProps({ref_for:!0},i,{key:`${i.label}-${k}`,item:i,selected:t.selectionMenu&&l.value?.value===i.value,"selection-menu-child":t.selectionMenu,onChange:m}),null,16,["item","selected","selection-menu-child"]))),128))],!0)])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value),{class:"dropdown-trigger","data-testid":"dropdown-trigger",label:t.disabledTooltip?t.disabledTooltip:void 0,"max-width":t.disabledTooltip?"240":void 0,position:t.disabledTooltip?"bottom":void 0},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{isOpen:a.value},()=>[p.value?(e.openBlock(),e.createBlock(b.default,{key:0,appearance:t.appearance,class:"dropdown-trigger-button","data-dropdown-trigger":"true","data-testid":"dropdown-trigger-button",disabled:t.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value)+" ",1),t.showCaret?(e.openBlock(),e.createBlock(e.unref(x.default),{key:0,decorative:""})):e.createCommentVNode("",!0)]),_:1},8,["appearance","disabled"])):e.createCommentVNode("",!0)],!0)]),_:2},1032,["label","max-width","position"]))]),_:2},1040,["offset","onClose","onOpen","onPopoverClick"])]),_:3})],2))}});exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("./kongponents32.cjs"),C=require("./kongponents24.cjs");;/* empty css */const B=require("./kongponents56.cjs"),P=require("./kongponents23.cjs"),T=require("./kongponents44.cjs"),x=require("./kongponents207.cjs"),y=require("./kongponents186.cjs"),D={class:"dropdown-list","data-testid":"dropdown-list"},q=e.defineComponent({__name:"KDropdown",props:{selectionMenu:{type:Boolean},appearance:{default:"primary"},triggerText:{default:""},showCaret:{type:Boolean},width:{default:""},kpopAttributes:{default:()=>({})},items:{default:()=>[]},disabled:{type:Boolean},disabledTooltip:{default:""},label:{}},emits:["toggleDropdown","change"],setup(t,{expose:g,emit:v}){e.watch(()=>t.appearance,o=>{(o==="menu"||o==="selectionMenu")&&console.warn("KDropdown: the usage for the `appearance` prop has changed. Please see the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kdropdownmenu")},{immediate:!0}),e.watch(()=>t.label,o=>{o&&console.warn("KDropdown: `label` prop is deprecated. Please use `triggerText` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kdropdownmenu")},{immediate:!0});const s=v,h=e.computed(()=>t.disabledTooltip?C.default:"div"),u=e.useTemplateRef("kPop"),c={hideCaret:!0,popoverClasses:"k-dropdown-popover dropdown-popover",popoverTimeout:0,placement:"bottom-start"},w={...c,...t.kpopAttributes,width:t.width||void 0,popoverClasses:`${c.popoverClasses} ${t.kpopAttributes?.popoverClasses||""}`},p=e.computed(()=>l.value?.label||t.triggerText||t.label||""),l=e.ref(),m=o=>{t.selectionMenu&&(l.value=o)},f=()=>{u.value?.hidePopover()},d=(o,n,r)=>{o.value!==r&&(n(),s("toggleDropdown",o.value))};return e.watch(l,(o,n)=>{o&&o!==n&&s("change",o)}),e.onMounted(()=>{if(t.items){const o=t.items.filter(n=>n.selected);o.length&&(l.value=o[0])}}),g({openDropdown:()=>{u.value?.showPopover()},closeDropdown:f}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-dropdown",{"selection-dropdown-menu":t.selectionMenu}])},[e.createVNode(P.default,null,{default:e.withCtx(({toggle:r,isToggled:a})=>[e.createVNode(B.default,e.mergeProps({ref:"kPop"},w,{"close-on-popover-click":"","data-testid":"dropdown-popover","hide-close-icon":"",offset:`var(--kui-space-20, ${e.unref(y.KUI_SPACE_20)})`,onClose:()=>d(a,r,!1),onOpen:()=>d(a,r,!0),onPopoverClick:()=>d(a,r,!1)}),{content:e.withCtx(()=>[e.createElementVNode("ul",D,[e.renderSlot(o.$slots,"items",{closeDropdown:f,handleSelection:m,items:t.items},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(i,k)=>(e.openBlock(),e.createBlock(T.default,e.mergeProps({ref_for:!0},i,{key:`${i.label}-${k}`,item:i,selected:t.selectionMenu&&l.value?.value===i.value,"selection-menu-child":t.selectionMenu,onChange:m}),null,16,["item","selected","selection-menu-child"]))),128))],!0)])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value),{class:"dropdown-trigger","data-testid":"dropdown-trigger",label:t.disabledTooltip?t.disabledTooltip:void 0,"max-width":t.disabledTooltip?"240":void 0,position:t.disabledTooltip?"bottom":void 0},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{isOpen:a.value},()=>[p.value?(e.openBlock(),e.createBlock(b.default,{key:0,appearance:t.appearance,class:"dropdown-trigger-button","data-dropdown-trigger":"true","data-testid":"dropdown-trigger-button",disabled:t.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value)+" ",1),t.showCaret?(e.openBlock(),e.createBlock(e.unref(x.default),{key:0,decorative:""})):e.createCommentVNode("",!0)]),_:1},8,["appearance","disabled"])):e.createCommentVNode("",!0)],!0)]),_:2},1032,["label","max-width","position"]))]),_:2},1040,["offset","onClose","onOpen","onPopoverClick"])]),_:3})],2))}});exports.default=q;
@@ -5,8 +5,8 @@ import L from "./kongponents24.es.js";
5
5
  import U from "./kongponents56.es.js";
6
6
  import j from "./kongponents23.es.js";
7
7
  import G from "./kongponents44.es.js";
8
- import H from "./kongponents183.es.js";
9
- import { KUI_SPACE_20 as J } from "./kongponents181.es.js";
8
+ import H from "./kongponents207.es.js";
9
+ import { KUI_SPACE_20 as J } from "./kongponents186.es.js";
10
10
  const Q = {
11
11
  class: "dropdown-list",
12
12
  "data-testid": "dropdown-list"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./kongponents185.cjs"),B=require("./kongponents186.cjs"),E=require("./kongponents187.cjs"),g=require("./kongponents180.cjs"),r=require("./kongponents181.cjs"),S=require("./kongponents32.cjs");require("./kongponents5.cjs");require("./kongponents10.cjs");const a=require("./kongponents11.cjs"),V=require("./kongponents33.cjs"),v={class:"empty-state-content"},C=["aria-hidden"],p={key:0,class:"empty-state-title"},I={key:1,class:"empty-state-message"},h={key:2,class:"empty-state-action"},$={key:0,class:"empty-state-features-container"},N={key:0,"aria-hidden":"true",class:"feature-icon"},T={class:"card-header"},b=["title"],q={key:1,class:"empty-state-footer-container"},D=e.defineComponent({__name:"KEmptyState",props:{title:{default:""},message:{default:""},actionButtonVisible:{type:Boolean,default:!0},actionButtonText:{default:""},actionButtonDisabled:{type:Boolean},iconVariant:{default:()=>a.EmptyStateIconVariants.Default},iconBackground:{type:Boolean,default:!1},features:{default:()=>[]}},emits:["click-action"],setup(o,{emit:l}){const c=l,u=e.useSlots(),d=e.useId(),m=e.computed(()=>{switch(o.iconVariant){case a.EmptyStateIconVariants.Default:return i.default;case a.EmptyStateIconVariants.Error:return g.default;case a.EmptyStateIconVariants.Search:return E.default;case a.EmptyStateIconVariants.Kong:return B.default;default:return i.default}}),k=e.computed(()=>o.iconBackground?r.KUI_COLOR_TEXT_DECORATIVE_AQUA:o.iconVariant===a.EmptyStateIconVariants.Error?r.KUI_COLOR_TEXT_WARNING:r.KUI_COLOR_TEXT_NEUTRAL),y=e.computed(()=>{if(u.image)return"empty-state-image";const t="empty-state-icon";return o.iconBackground?`${t} has-background`:t});return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-empty-state",[o.iconVariant]])},[e.createElementVNode("div",v,[e.createElementVNode("div",{"aria-hidden":t.$slots.image?void 0:"true",class:e.normalizeClass(y.value)},[e.renderSlot(t.$slots,"image",{},()=>[e.renderSlot(t.$slots,"icon",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value),{color:k.value,decorative:"",size:`var(--kui-icon-size-60, ${e.unref(r.KUI_ICON_SIZE_60)})`},null,8,["color","size"]))],!0)],!0)],10,C),o.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),o.message||t.$slots.default?(e.openBlock(),e.createElementBlock("div",I,[e.renderSlot(t.$slots,"default",{},()=>[e.createElementVNode("p",null,e.toDisplayString(o.message),1)],!0)])):e.createCommentVNode("",!0),o.actionButtonVisible&&o.actionButtonText||t.$slots.action?(e.openBlock(),e.createElementBlock("div",h,[e.renderSlot(t.$slots,"action",{},()=>[e.createVNode(S.default,{disabled:o.actionButtonDisabled,type:"button",onClick:s[0]||(s[0]=n=>c("click-action"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"action-button-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(o.actionButtonText),1)]),_:3},8,["disabled"])],!0)])):e.createCommentVNode("",!0)]),o.features.length?(e.openBlock(),e.createElementBlock("div",$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.features,(n,f)=>(e.openBlock(),e.createBlock(V.default,{key:`feature-${e.unref(d)}-${n.key||f}`,class:"empty-state-feature-card"},{title:e.withCtx(()=>[n.key&&t.$slots[`feature-icon-${n.key}`]?(e.openBlock(),e.createElementBlock("div",N,[e.renderSlot(t.$slots,`feature-icon-${n.key}`,{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",T,e.toDisplayString(n.title),1)]),default:e.withCtx(()=>[e.createElementVNode("div",{title:n.description},e.toDisplayString(n.description),9,b)]),_:2},1024))),128))])):e.createCommentVNode("",!0),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",q,[e.renderSlot(t.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2))}});exports.default=D;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./kongponents244.cjs"),B=require("./kongponents212.cjs"),E=require("./kongponents185.cjs"),g=require("./kongponents213.cjs"),r=require("./kongponents186.cjs"),S=require("./kongponents32.cjs");require("./kongponents5.cjs");require("./kongponents10.cjs");const a=require("./kongponents11.cjs"),V=require("./kongponents33.cjs"),v={class:"empty-state-content"},C=["aria-hidden"],p={key:0,class:"empty-state-title"},I={key:1,class:"empty-state-message"},h={key:2,class:"empty-state-action"},$={key:0,class:"empty-state-features-container"},N={key:0,"aria-hidden":"true",class:"feature-icon"},T={class:"card-header"},b=["title"],q={key:1,class:"empty-state-footer-container"},D=e.defineComponent({__name:"KEmptyState",props:{title:{default:""},message:{default:""},actionButtonVisible:{type:Boolean,default:!0},actionButtonText:{default:""},actionButtonDisabled:{type:Boolean},iconVariant:{default:()=>a.EmptyStateIconVariants.Default},iconBackground:{type:Boolean,default:!1},features:{default:()=>[]}},emits:["click-action"],setup(o,{emit:l}){const c=l,u=e.useSlots(),d=e.useId(),m=e.computed(()=>{switch(o.iconVariant){case a.EmptyStateIconVariants.Default:return i.default;case a.EmptyStateIconVariants.Error:return g.default;case a.EmptyStateIconVariants.Search:return E.default;case a.EmptyStateIconVariants.Kong:return B.default;default:return i.default}}),k=e.computed(()=>o.iconBackground?r.KUI_COLOR_TEXT_DECORATIVE_AQUA:o.iconVariant===a.EmptyStateIconVariants.Error?r.KUI_COLOR_TEXT_WARNING:r.KUI_COLOR_TEXT_NEUTRAL),y=e.computed(()=>{if(u.image)return"empty-state-image";const t="empty-state-icon";return o.iconBackground?`${t} has-background`:t});return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-empty-state",[o.iconVariant]])},[e.createElementVNode("div",v,[e.createElementVNode("div",{"aria-hidden":t.$slots.image?void 0:"true",class:e.normalizeClass(y.value)},[e.renderSlot(t.$slots,"image",{},()=>[e.renderSlot(t.$slots,"icon",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value),{color:k.value,decorative:"",size:`var(--kui-icon-size-60, ${e.unref(r.KUI_ICON_SIZE_60)})`},null,8,["color","size"]))],!0)],!0)],10,C),o.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),o.message||t.$slots.default?(e.openBlock(),e.createElementBlock("div",I,[e.renderSlot(t.$slots,"default",{},()=>[e.createElementVNode("p",null,e.toDisplayString(o.message),1)],!0)])):e.createCommentVNode("",!0),o.actionButtonVisible&&o.actionButtonText||t.$slots.action?(e.openBlock(),e.createElementBlock("div",h,[e.renderSlot(t.$slots,"action",{},()=>[e.createVNode(S.default,{disabled:o.actionButtonDisabled,type:"button",onClick:s[0]||(s[0]=n=>c("click-action"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"action-button-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(o.actionButtonText),1)]),_:3},8,["disabled"])],!0)])):e.createCommentVNode("",!0)]),o.features.length?(e.openBlock(),e.createElementBlock("div",$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.features,(n,f)=>(e.openBlock(),e.createBlock(V.default,{key:`feature-${e.unref(d)}-${n.key||f}`,class:"empty-state-feature-card"},{title:e.withCtx(()=>[n.key&&t.$slots[`feature-icon-${n.key}`]?(e.openBlock(),e.createElementBlock("div",N,[e.renderSlot(t.$slots,`feature-icon-${n.key}`,{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",T,e.toDisplayString(n.title),1)]),default:e.withCtx(()=>[e.createElementVNode("div",{title:n.description},e.toDisplayString(n.description),9,b)]),_:2},1024))),128))])):e.createCommentVNode("",!0),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",q,[e.renderSlot(t.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2))}});exports.default=D;
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as T, useSlots as b, useId as K, computed as u, openBlock as o, createElementBlock as a, normalizeClass as f, createElementVNode as l, renderSlot as n, createBlock as y, resolveDynamicComponent as N, unref as k, createTextVNode as v, toDisplayString as c, createCommentVNode as s, createVNode as O, withCtx as d, Fragment as S, renderList as D } from "vue";
2
- import $ from "./kongponents185.es.js";
3
- import R from "./kongponents186.es.js";
4
- import U from "./kongponents187.es.js";
5
- import A from "./kongponents180.es.js";
6
- import { KUI_COLOR_TEXT_DECORATIVE_AQUA as L, KUI_COLOR_TEXT_NEUTRAL as z, KUI_COLOR_TEXT_WARNING as w, KUI_ICON_SIZE_60 as X } from "./kongponents181.es.js";
2
+ import $ from "./kongponents244.es.js";
3
+ import R from "./kongponents212.es.js";
4
+ import U from "./kongponents185.es.js";
5
+ import A from "./kongponents213.es.js";
6
+ import { KUI_COLOR_TEXT_DECORATIVE_AQUA as L, KUI_COLOR_TEXT_NEUTRAL as z, KUI_COLOR_TEXT_WARNING as w, KUI_ICON_SIZE_60 as X } from "./kongponents186.es.js";
7
7
  import q from "./kongponents32.es.js";
8
8
  import "./kongponents5.es.js";
9
9
  import "./kongponents10.es.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),K=require("./kongponents51.cjs"),L=require("./kongponents49.cjs"),B=require("./kongponents32.cjs"),P=require("./kongponents195.cjs"),R=require("./kongponents196.cjs"),W=require("./kongponents197.cjs"),U=["role"],j={class:"file-upload-input-wrapper"},O={key:1,class:"file-upload-dropzone-wrapper"},G=["aria-disabled","aria-labelledby","tabindex"],H={"aria-hidden":"true",class:"dropzone-icon"},J={key:0},Q={key:1},X=e.defineComponent({inheritAttrs:!1,__name:"KFileUpload",props:{labelAttributes:{default:()=>({})},label:{default:""},help:{},buttonText:{default:"Select file"},placeholder:{default:""},accept:{},maxFileSize:{default:null},error:{type:Boolean},errorMessage:{default:""},disabled:{type:Boolean},appearance:{default:"input"}},emits:["file-added","file-removed","error"],setup(l,{emit:C}){const d=C,w=e.useSlots(),r=e.useAttrs(),{stripRequiredLabel:x}=P.default(),N=e.useId(),b=e.computed(()=>r.id?String(r.id):N),E=e.computed(()=>r.name?String(r.name):"uploaded-file"),$=e.computed(()=>{const a={...r};return delete a.id,delete a.name,a}),h=e.useTemplateRef("input"),q=e.computed(()=>!!(l.labelAttributes?.info||w["label-tooltip"])),D=e.computed(()=>x(l.label,y.value)),y=e.computed(()=>r?.required!==void 0&&String(r?.required)!=="false"),g=e.computed(()=>o.value?"Drag & drop a file":"No file selected"),c=e.ref(!1),S=e.computed(()=>{if(c.value){let a="bytes",t=n.value;return n.value>=1024&&n.value<1024*1024&&(t=n.value/1024,a="KB"),n.value>=1024*1024&&(t=n.value/(1024*1024),a="MB"),`File size must be less than ${t}${a}.`}return""}),n=e.computed(()=>l.maxFileSize||l.maxFileSize===0?l.maxFileSize:5*1024*1024),f=e.computed(()=>p.value||c.value||l.error),s=e.ref(0),i=e.ref(""),v=e.ref(null),F=e.useTemplateRef("dropzone"),M=a=>{p.value=!1;const t=a.target.files,u=t[0]?.size;Number(u)>n.value&&(s.value++,c.value=!0,d("error",t));const T=h.value?.$el?.querySelector("input");t.length?(v.value=t,i.value=t[0]?.name||"",d("file-added",t)):(T.files=v.value,i.value=v.value?.[0]?.name||"")},k=()=>{if(i.value){V();return}const a=h.value?.$el?.querySelector("input");a&&a.click()},V=()=>{v.value=null,i.value="",s.value++,c.value=!1,d("file-removed")},m=e.ref(!1),p=e.ref(!1),I=a=>a?!l.accept||!Array.isArray(l.accept)||!l.accept.length?!0:l.accept.some(t=>{if(t.startsWith("."))return a.name.toLowerCase().endsWith(t.toLowerCase());if(t.endsWith("/*")){const u=t.slice(0,-2);return a.type.startsWith(u)}else return a.type===t}):!1,z=e.computed(()=>p.value?`Unsupported file type. Please upload one of the following: ${l.accept.join(", ")}`:""),A=a=>{if(!l.disabled){o.value?F.value?.focus():h.value?.input?.focus(),m.value=!1;const t=a.dataTransfer?.files;if(t&&t.length){const u=t[0]?.size;if(Number(u)>n.value){s.value++,c.value=!0,d("error",t);return}I(t[0])?(p.value=!1,v.value=t,i.value=t[0]?.name||"",d("file-added",t)):(p.value=!0,d("error",t))}}},o=e.computed(()=>l.appearance==="dropzone");return e.watch(()=>r.id,()=>{s.value++},{immediate:!0}),(a,t)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"k-file-upload"},$.value,{role:l.disabled?void 0:"region",onDragleave:t[0]||(t[0]=e.withModifiers(u=>m.value=!1,["prevent"])),onDragover:t[1]||(t[1]=e.withModifiers(u=>m.value=!0,["prevent"])),onDrop:e.withModifiers(A,["prevent"])}),[l.label?(e.openBlock(),e.createBlock(K.default,e.mergeProps({key:0},l.labelAttributes,{id:o.value?`file-upload-dropzone-label-${b.value}`:void 0,for:b.value,required:y.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(D.value)+" ",1)]),_:2},[q.value?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["id","for","required"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",j,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:s.value,class:e.normalizeClass(["file-upload-input-text",{placeholder:!i.value,"has-icon":a.$slots.icon,disabled:l.disabled}])},e.toDisplayString(i.value?i.value:l.placeholder||g.value),3)),(e.openBlock(),e.createBlock(L.default,{id:b.value,key:s.value,ref:"input",accept:l.accept,class:e.normalizeClass(["upload-input",{dragging:m.value&&!l.disabled}]),disabled:l.disabled,error:f.value,"error-message":l.errorMessage||z.value||S.value,help:l.help,hidden:o.value,name:E.value,placeholder:l.placeholder||g.value,title:"",type:"file",onChange:M},e.createSlots({_:2},[a.$slots.icon&&!o.value?{name:"before",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"icon",{},void 0,!0)]),key:"0"}:void 0,o.value?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(B.default,{appearance:"tertiary",class:"file-upload-button","data-testid":"file-upload-button",disabled:l.disabled,size:"small",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value?"Clear":l.buttonText),1)]),_:1},8,["disabled"])]),key:"1"}]),1032,["id","accept","class","disabled","error","error-message","help","hidden","name","placeholder"]))],512),[[e.vShow,!o.value]]),o.value?(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",{ref:"dropzone","aria-disabled":l.disabled?"true":void 0,"aria-labelledby":l.label?`file-upload-dropzone-label-${b.value}`:void 0,class:e.normalizeClass(["dropzone",{dragging:m.value&&!l.disabled,disabled:l.disabled,error:f.value,"has-file":!!i.value}]),"data-testid":"file-upload-dropzone",role:"button",tabindex:l.disabled?-1:0,onClick:k},[e.createElementVNode("div",H,[e.renderSlot(a.$slots,"icon",{},()=>[i.value?(e.openBlock(),e.createBlock(e.unref(R.default),{key:0,decorative:""})):(e.openBlock(),e.createBlock(e.unref(W.default),{key:1,decorative:""}))],!0)]),i.value?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(i.value),1)):(e.openBlock(),e.createElementBlock("span",Q,e.toDisplayString(l.placeholder||g.value),1)),e.createVNode(B.default,{appearance:"tertiary",class:"file-upload-button","data-testid":"file-upload-button",disabled:l.disabled,onClick:e.withModifiers(k,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value?"Clear":l.buttonText),1)]),_:1},8,["disabled"]),e.renderSlot(a.$slots,"dropzone-footer",{},void 0,!0)],10,G),f.value||l.help?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["help-text",{error:f.value}])},e.toDisplayString(f.value&&(l.errorMessage||z.value||S.value)||l.help),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],16,U))}});exports.default=X;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),K=require("./kongponents51.cjs"),L=require("./kongponents49.cjs"),B=require("./kongponents32.cjs"),P=require("./kongponents195.cjs"),R=require("./kongponents203.cjs"),W=require("./kongponents204.cjs"),U=["role"],j={class:"file-upload-input-wrapper"},O={key:1,class:"file-upload-dropzone-wrapper"},G=["aria-disabled","aria-labelledby","tabindex"],H={"aria-hidden":"true",class:"dropzone-icon"},J={key:0},Q={key:1},X=e.defineComponent({inheritAttrs:!1,__name:"KFileUpload",props:{labelAttributes:{default:()=>({})},label:{default:""},help:{},buttonText:{default:"Select file"},placeholder:{default:""},accept:{},maxFileSize:{default:null},error:{type:Boolean},errorMessage:{default:""},disabled:{type:Boolean},appearance:{default:"input"}},emits:["file-added","file-removed","error"],setup(l,{emit:C}){const d=C,w=e.useSlots(),r=e.useAttrs(),{stripRequiredLabel:x}=P.default(),N=e.useId(),b=e.computed(()=>r.id?String(r.id):N),E=e.computed(()=>r.name?String(r.name):"uploaded-file"),$=e.computed(()=>{const a={...r};return delete a.id,delete a.name,a}),h=e.useTemplateRef("input"),q=e.computed(()=>!!(l.labelAttributes?.info||w["label-tooltip"])),D=e.computed(()=>x(l.label,y.value)),y=e.computed(()=>r?.required!==void 0&&String(r?.required)!=="false"),g=e.computed(()=>o.value?"Drag & drop a file":"No file selected"),c=e.ref(!1),S=e.computed(()=>{if(c.value){let a="bytes",t=n.value;return n.value>=1024&&n.value<1024*1024&&(t=n.value/1024,a="KB"),n.value>=1024*1024&&(t=n.value/(1024*1024),a="MB"),`File size must be less than ${t}${a}.`}return""}),n=e.computed(()=>l.maxFileSize||l.maxFileSize===0?l.maxFileSize:5*1024*1024),f=e.computed(()=>p.value||c.value||l.error),s=e.ref(0),i=e.ref(""),v=e.ref(null),F=e.useTemplateRef("dropzone"),M=a=>{p.value=!1;const t=a.target.files,u=t[0]?.size;Number(u)>n.value&&(s.value++,c.value=!0,d("error",t));const T=h.value?.$el?.querySelector("input");t.length?(v.value=t,i.value=t[0]?.name||"",d("file-added",t)):(T.files=v.value,i.value=v.value?.[0]?.name||"")},k=()=>{if(i.value){V();return}const a=h.value?.$el?.querySelector("input");a&&a.click()},V=()=>{v.value=null,i.value="",s.value++,c.value=!1,d("file-removed")},m=e.ref(!1),p=e.ref(!1),I=a=>a?!l.accept||!Array.isArray(l.accept)||!l.accept.length?!0:l.accept.some(t=>{if(t.startsWith("."))return a.name.toLowerCase().endsWith(t.toLowerCase());if(t.endsWith("/*")){const u=t.slice(0,-2);return a.type.startsWith(u)}else return a.type===t}):!1,z=e.computed(()=>p.value?`Unsupported file type. Please upload one of the following: ${l.accept.join(", ")}`:""),A=a=>{if(!l.disabled){o.value?F.value?.focus():h.value?.input?.focus(),m.value=!1;const t=a.dataTransfer?.files;if(t&&t.length){const u=t[0]?.size;if(Number(u)>n.value){s.value++,c.value=!0,d("error",t);return}I(t[0])?(p.value=!1,v.value=t,i.value=t[0]?.name||"",d("file-added",t)):(p.value=!0,d("error",t))}}},o=e.computed(()=>l.appearance==="dropzone");return e.watch(()=>r.id,()=>{s.value++},{immediate:!0}),(a,t)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"k-file-upload"},$.value,{role:l.disabled?void 0:"region",onDragleave:t[0]||(t[0]=e.withModifiers(u=>m.value=!1,["prevent"])),onDragover:t[1]||(t[1]=e.withModifiers(u=>m.value=!0,["prevent"])),onDrop:e.withModifiers(A,["prevent"])}),[l.label?(e.openBlock(),e.createBlock(K.default,e.mergeProps({key:0},l.labelAttributes,{id:o.value?`file-upload-dropzone-label-${b.value}`:void 0,for:b.value,required:y.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(D.value)+" ",1)]),_:2},[q.value?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["id","for","required"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",j,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:s.value,class:e.normalizeClass(["file-upload-input-text",{placeholder:!i.value,"has-icon":a.$slots.icon,disabled:l.disabled}])},e.toDisplayString(i.value?i.value:l.placeholder||g.value),3)),(e.openBlock(),e.createBlock(L.default,{id:b.value,key:s.value,ref:"input",accept:l.accept,class:e.normalizeClass(["upload-input",{dragging:m.value&&!l.disabled}]),disabled:l.disabled,error:f.value,"error-message":l.errorMessage||z.value||S.value,help:l.help,hidden:o.value,name:E.value,placeholder:l.placeholder||g.value,title:"",type:"file",onChange:M},e.createSlots({_:2},[a.$slots.icon&&!o.value?{name:"before",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"icon",{},void 0,!0)]),key:"0"}:void 0,o.value?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(B.default,{appearance:"tertiary",class:"file-upload-button","data-testid":"file-upload-button",disabled:l.disabled,size:"small",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value?"Clear":l.buttonText),1)]),_:1},8,["disabled"])]),key:"1"}]),1032,["id","accept","class","disabled","error","error-message","help","hidden","name","placeholder"]))],512),[[e.vShow,!o.value]]),o.value?(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",{ref:"dropzone","aria-disabled":l.disabled?"true":void 0,"aria-labelledby":l.label?`file-upload-dropzone-label-${b.value}`:void 0,class:e.normalizeClass(["dropzone",{dragging:m.value&&!l.disabled,disabled:l.disabled,error:f.value,"has-file":!!i.value}]),"data-testid":"file-upload-dropzone",role:"button",tabindex:l.disabled?-1:0,onClick:k},[e.createElementVNode("div",H,[e.renderSlot(a.$slots,"icon",{},()=>[i.value?(e.openBlock(),e.createBlock(e.unref(R.default),{key:0,decorative:""})):(e.openBlock(),e.createBlock(e.unref(W.default),{key:1,decorative:""}))],!0)]),i.value?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(i.value),1)):(e.openBlock(),e.createElementBlock("span",Q,e.toDisplayString(l.placeholder||g.value),1)),e.createVNode(B.default,{appearance:"tertiary",class:"file-upload-button","data-testid":"file-upload-button",disabled:l.disabled,onClick:e.withModifiers(k,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value?"Clear":l.buttonText),1)]),_:1},8,["disabled"]),e.renderSlot(a.$slots,"dropzone-footer",{},void 0,!0)],10,G),f.value||l.help?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["help-text",{error:f.value}])},e.toDisplayString(f.value&&(l.errorMessage||z.value||S.value)||l.help),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],16,U))}});exports.default=X;
@@ -3,8 +3,8 @@ import ne from "./kongponents51.es.js";
3
3
  import se from "./kongponents49.es.js";
4
4
  import V from "./kongponents32.es.js";
5
5
  import de from "./kongponents195.es.js";
6
- import ve from "./kongponents196.es.js";
7
- import fe from "./kongponents197.es.js";
6
+ import ve from "./kongponents203.es.js";
7
+ import fe from "./kongponents204.es.js";
8
8
  const ce = ["role"], me = { class: "file-upload-input-wrapper" }, be = {
9
9
  key: 1,
10
10
  class: "file-upload-dropzone-wrapper"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),K=require("./kongponents195.cjs"),W=require("./kongponents51.cjs"),w=require("./kongponents181.cjs"),O=require("./kongponents225.cjs"),R=require("./kongponents226.cjs"),D=["id","aria-describedby","aria-invalid","type","value"],U=["aria-label"],z=["id"],H=e.defineComponent({inheritAttrs:!1,__name:"KInput",props:{modelValue:{default:""},label:{default:""},labelAttributes:{default:()=>({})},help:{default:""},error:{type:Boolean},errorMessage:{default:""},characterLimit:{default:null},hasError:{type:Boolean},type:{default:"text"},showPasswordMaskToggle:{type:Boolean}},emits:["input","update:modelValue","char-limit-exceeded"],setup(t,{expose:E,emit:V}){e.useCssVars(l=>({c6b8edec:y.value,v9b2c0e7e:S.value})),e.watch(()=>t.hasError,l=>{l&&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")},{immediate:!0}),e.watch(()=>t.labelAttributes.help,l=>{l&&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")});const c=V,a=e.useSlots(),B=e.useTemplateRef("inputElement"),o=e.ref(""),s=e.ref(!1),f=e.ref(0),{stripRequiredLabel:x}=K.default(),n=e.useAttrs(),p=e.computed(()=>n?.required!==void 0&&String(n?.required)!=="false"),I=e.useId(),k=e.computed(()=>n.id?String(n.id):I),b=e.useId(),M=e.computed(()=>x(t.label,p.value)),T=e.computed(()=>!!(t.labelAttributes?.info||a["label-tooltip"])),C=e.computed({get(){return t.modelValue},set(l){m({target:{value:l}})}}),L=e.computed(()=>{const l={...n};return delete l.class,delete l.input,delete l.onInput,l}),u=e.computed(()=>{const l=o.value?.toString().length||0,r=t.modelValue?.toString().length||0;let g=l;return!s.value&&r&&(g=r),!!t.characterLimit&&g>t.characterLimit}),q=e.computed(()=>u.value?s.value?`${o.value?.toString().length} / ${t.characterLimit}`:`${t.modelValue?.toString().length} / ${t.characterLimit}`:""),N=e.computed(()=>!u.value&&!t.error&&!t.hasError&&!!(t.help||a.help)),d=e.computed(()=>u.value?q.value:(t.error||t.hasError)&&t.errorMessage?t.errorMessage:t.help);e.watch(u,(l,r)=>{l!==r&&(c("char-limit-exceeded",{value:o.value,length:o.value.length,characterLimit:t.characterLimit,limitExceeded:l}),f.value+=1)}),e.watch(C,(l,r)=>{l!==r&&m({target:{value:l}})});const m=l=>{const r=JSON.parse(JSON.stringify(l?.target?.value));$(r)},$=l=>{o.value=l,s.value=!0,c("input",l),c("update:modelValue",l)},P=()=>o.value||s.value?o.value:t.modelValue;e.watch(()=>t.error,(l,r)=>{l!==r&&(f.value+=1)});const v=e.ref(null),h=e.ref(null),y=e.ref(w.KUI_ICON_SIZE_40),S=e.ref(w.KUI_ICON_SIZE_40),i=e.ref(!1),A=e.computed(()=>t.type==="password"&&i.value?"text":t.type);return e.onMounted(async()=>{await e.nextTick(),v.value?.offsetWidth&&(y.value=v.value.offsetWidth+"px"),h.value?.offsetWidth&&(S.value=h.value.offsetWidth+"px")}),E({input:B}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-input",[e.unref(n).class,{"input-error":u.value||t.error||t.hasError}]])},[t.label?(e.openBlock(),e.createBlock(W.default,e.mergeProps({key:0,for:k.value},t.labelAttributes,{required:p.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.value)+" ",1)]),_:2},[T.value?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["input-element-wrapper",{"has-before-content":a.before,"has-after-content":a.after||t.type==="password"&&t.showPasswordMaskToggle}])},[a.before?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"beforeSlotElement",ref:v,class:"before-content-wrapper"},[e.renderSlot(l.$slots,"before",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:k.value,ref:"inputElement","aria-describedby":d.value||a.help?e.unref(b):void 0,"aria-invalid":t.error||t.hasError||u.value?"true":void 0,class:"input",type:A.value},L.value,{value:P(),onInput:m}),null,16,D),a.after||t.type==="password"&&t.showPasswordMaskToggle?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"afterSlotElement",ref:h,class:"after-content-wrapper"},[t.type==="password"&&t.showPasswordMaskToggle?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":`${i.value?"Hide":"Show"} value`,class:"mask-value-toggle-button",type:"button",onClick:r[0]||(r[0]=e.withModifiers(g=>i.value=!i.value,["stop"])),onMousedown:r[1]||(r[1]=e.withModifiers(()=>{},["prevent"])),onMouseup:r[2]||(r[2]=e.withModifiers(()=>{},["prevent"]))},[i.value?(e.openBlock(),e.createBlock(e.unref(O.default),{key:0,decorative:""})):(e.openBlock(),e.createBlock(e.unref(R.default),{key:1,decorative:""}))],40,U)):e.renderSlot(l.$slots,"after",{key:1},void 0,!0)],512)):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{mode:"out-in",name:"kongponents-fade-transition"},{default:e.withCtx(()=>[d.value||a.help?(e.openBlock(),e.createElementBlock("p",{id:e.unref(b),key:String(f.value),class:"help-text"},[N.value?e.renderSlot(l.$slots,"help",{key:0},()=>[e.createTextVNode(e.toDisplayString(d.value),1)],!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(d.value),1)],64))],8,z)):e.createCommentVNode("",!0)]),_:3})],2))}});exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),K=require("./kongponents195.cjs"),W=require("./kongponents51.cjs"),w=require("./kongponents186.cjs"),O=require("./kongponents196.cjs"),R=require("./kongponents197.cjs"),D=["id","aria-describedby","aria-invalid","type","value"],U=["aria-label"],z=["id"],H=e.defineComponent({inheritAttrs:!1,__name:"KInput",props:{modelValue:{default:""},label:{default:""},labelAttributes:{default:()=>({})},help:{default:""},error:{type:Boolean},errorMessage:{default:""},characterLimit:{default:null},hasError:{type:Boolean},type:{default:"text"},showPasswordMaskToggle:{type:Boolean}},emits:["input","update:modelValue","char-limit-exceeded"],setup(t,{expose:E,emit:V}){e.useCssVars(l=>({c6b8edec:y.value,v9b2c0e7e:S.value})),e.watch(()=>t.hasError,l=>{l&&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")},{immediate:!0}),e.watch(()=>t.labelAttributes.help,l=>{l&&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")});const c=V,a=e.useSlots(),B=e.useTemplateRef("inputElement"),o=e.ref(""),s=e.ref(!1),f=e.ref(0),{stripRequiredLabel:x}=K.default(),n=e.useAttrs(),p=e.computed(()=>n?.required!==void 0&&String(n?.required)!=="false"),I=e.useId(),k=e.computed(()=>n.id?String(n.id):I),b=e.useId(),M=e.computed(()=>x(t.label,p.value)),T=e.computed(()=>!!(t.labelAttributes?.info||a["label-tooltip"])),C=e.computed({get(){return t.modelValue},set(l){m({target:{value:l}})}}),L=e.computed(()=>{const l={...n};return delete l.class,delete l.input,delete l.onInput,l}),u=e.computed(()=>{const l=o.value?.toString().length||0,r=t.modelValue?.toString().length||0;let g=l;return!s.value&&r&&(g=r),!!t.characterLimit&&g>t.characterLimit}),q=e.computed(()=>u.value?s.value?`${o.value?.toString().length} / ${t.characterLimit}`:`${t.modelValue?.toString().length} / ${t.characterLimit}`:""),N=e.computed(()=>!u.value&&!t.error&&!t.hasError&&!!(t.help||a.help)),d=e.computed(()=>u.value?q.value:(t.error||t.hasError)&&t.errorMessage?t.errorMessage:t.help);e.watch(u,(l,r)=>{l!==r&&(c("char-limit-exceeded",{value:o.value,length:o.value.length,characterLimit:t.characterLimit,limitExceeded:l}),f.value+=1)}),e.watch(C,(l,r)=>{l!==r&&m({target:{value:l}})});const m=l=>{const r=JSON.parse(JSON.stringify(l?.target?.value));$(r)},$=l=>{o.value=l,s.value=!0,c("input",l),c("update:modelValue",l)},P=()=>o.value||s.value?o.value:t.modelValue;e.watch(()=>t.error,(l,r)=>{l!==r&&(f.value+=1)});const v=e.ref(null),h=e.ref(null),y=e.ref(w.KUI_ICON_SIZE_40),S=e.ref(w.KUI_ICON_SIZE_40),i=e.ref(!1),A=e.computed(()=>t.type==="password"&&i.value?"text":t.type);return e.onMounted(async()=>{await e.nextTick(),v.value?.offsetWidth&&(y.value=v.value.offsetWidth+"px"),h.value?.offsetWidth&&(S.value=h.value.offsetWidth+"px")}),E({input:B}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-input",[e.unref(n).class,{"input-error":u.value||t.error||t.hasError}]])},[t.label?(e.openBlock(),e.createBlock(W.default,e.mergeProps({key:0,for:k.value},t.labelAttributes,{required:p.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.value)+" ",1)]),_:2},[T.value?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["input-element-wrapper",{"has-before-content":a.before,"has-after-content":a.after||t.type==="password"&&t.showPasswordMaskToggle}])},[a.before?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"beforeSlotElement",ref:v,class:"before-content-wrapper"},[e.renderSlot(l.$slots,"before",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:k.value,ref:"inputElement","aria-describedby":d.value||a.help?e.unref(b):void 0,"aria-invalid":t.error||t.hasError||u.value?"true":void 0,class:"input",type:A.value},L.value,{value:P(),onInput:m}),null,16,D),a.after||t.type==="password"&&t.showPasswordMaskToggle?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"afterSlotElement",ref:h,class:"after-content-wrapper"},[t.type==="password"&&t.showPasswordMaskToggle?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":`${i.value?"Hide":"Show"} value`,class:"mask-value-toggle-button",type:"button",onClick:r[0]||(r[0]=e.withModifiers(g=>i.value=!i.value,["stop"])),onMousedown:r[1]||(r[1]=e.withModifiers(()=>{},["prevent"])),onMouseup:r[2]||(r[2]=e.withModifiers(()=>{},["prevent"]))},[i.value?(e.openBlock(),e.createBlock(e.unref(O.default),{key:0,decorative:""})):(e.openBlock(),e.createBlock(e.unref(R.default),{key:1,decorative:""}))],40,U)):e.renderSlot(l.$slots,"after",{key:1},void 0,!0)],512)):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{mode:"out-in",name:"kongponents-fade-transition"},{default:e.withCtx(()=>[d.value||a.help?(e.openBlock(),e.createElementBlock("p",{id:e.unref(b),key:String(f.value),class:"help-text"},[N.value?e.renderSlot(l.$slots,"help",{key:0},()=>[e.createTextVNode(e.toDisplayString(d.value),1)],!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(d.value),1)],64))],8,z)):e.createCommentVNode("",!0)]),_:3})],2))}});exports.default=H;
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as _, useCssVars as ee, watch as f, useSlots as te, useTemplateRef as ae, ref as n, useAttrs as le, computed as l, useId as N, onMounted as re, nextTick as oe, openBlock as r, createElementBlock as d, normalizeClass as P, unref as m, createBlock as V, mergeProps as B, createSlots as ne, withCtx as x, createTextVNode as L, toDisplayString as I, renderSlot as g, createCommentVNode as p, createElementVNode as K, withModifiers as M, createVNode as ie, Transition as ue, Fragment as se } from "vue";
2
2
  import de from "./kongponents195.es.js";
3
3
  import ce from "./kongponents51.es.js";
4
- import { KUI_ICON_SIZE_40 as W } from "./kongponents181.es.js";
5
- import fe from "./kongponents225.es.js";
6
- import me from "./kongponents226.es.js";
4
+ import { KUI_ICON_SIZE_40 as W } from "./kongponents186.es.js";
5
+ import fe from "./kongponents196.es.js";
6
+ import me from "./kongponents197.es.js";
7
7
  const ve = ["id", "aria-describedby", "aria-invalid", "type", "value"], he = ["aria-label"], ge = ["id"], we = /* @__PURE__ */ _({
8
8
  inheritAttrs: !1,
9
9
  __name: "KInput",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("./kongponents24.cjs");;/* empty css */const p=require("./kongponents178.cjs"),m=require("./kongponents181.cjs"),b=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 n=e.useSlots(),a=e.computed(()=>!!(o.help||o.info||n.tooltip)),l=e.useId(),u=e.useTemplateRef("label"),s=["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(s)}function d(t){const r=t.target,i=c(r);i&&i!==u.value||t.preventDefault()}return(t,r)=>(e.openBlock(),e.createElementBlock("label",{ref:"label",class:e.normalizeClass(["k-label",{required:o.required}])},[e.renderSlot(t.$slots,"default",{},void 0,!0),a.value?(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.default),{"aria-describedby":e.unref(l),class:"tooltip-trigger-icon",color:`var(--kui-color-text-neutral, ${e.unref(m.KUI_COLOR_TEXT_NEUTRAL)})`,tabindex:"0"},null,8,["aria-describedby","color"])]),_:3},16,["tooltip-id"])):e.createCommentVNode("",!0)],2))}});exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("./kongponents24.cjs");;/* empty css */const p=require("./kongponents211.cjs"),m=require("./kongponents186.cjs"),b=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 n=e.useSlots(),a=e.computed(()=>!!(o.help||o.info||n.tooltip)),l=e.useId(),u=e.useTemplateRef("label"),s=["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(s)}function d(t){const r=t.target,i=c(r);i&&i!==u.value||t.preventDefault()}return(t,r)=>(e.openBlock(),e.createElementBlock("label",{ref:"label",class:e.normalizeClass(["k-label",{required:o.required}])},[e.renderSlot(t.$slots,"default",{},void 0,!0),a.value?(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.default),{"aria-describedby":e.unref(l),class:"tooltip-trigger-icon",color:`var(--kui-color-text-neutral, ${e.unref(m.KUI_COLOR_TEXT_NEUTRAL)})`,tabindex:"0"},null,8,["aria-describedby","color"])]),_:3},16,["tooltip-id"])):e.createCommentVNode("",!0)],2))}});exports.default=b;
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as b, watch as h, useSlots as g, computed as k, useId as A, useTemplateRef as C, openBlock as a, createElementBlock as T, normalizeClass as v, renderSlot as n, createBlock as N, mergeProps as E, unref as o, withCtx as s, createVNode as L, createTextVNode as y, toDisplayString as x, createCommentVNode as B } from "vue";
2
2
  import I from "./kongponents24.es.js";
3
3
  /* empty css */
4
- import S from "./kongponents178.es.js";
5
- import { KUI_COLOR_TEXT_NEUTRAL as q } from "./kongponents181.es.js";
4
+ import S from "./kongponents211.es.js";
5
+ import { KUI_COLOR_TEXT_NEUTRAL as q } from "./kongponents186.es.js";
6
6
  const K = /* @__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"),g=require("./kongponents188.cjs"),w=require("./kongponents189.cjs"),B=require("./kongponents32.cjs"),x=require("./kongponents176.cjs"),T=require("./kongponents181.cjs"),k=require("./kongponents184.cjs"),$=["aria-label"],N={key:0,class:"modal-header"},A={key:0,class:"modal-title"},O={class:"modal-footer"},D={class:"footer-actions"},I=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=>({v5582ddaa:t.zIndex,v1ae56e5d:E.value,ee977890:S.value}));const p=C,s=e.useSlots(),r=e.useAttrs(),h=w.useTextSelection(),u=`k-modal-${e.useId()}-overflow-hidden`,n=e.ref(null),m=e.ref(null),E=e.computed(()=>o.fullScreen&&!s.content?"95%":k.normalizeSize(o.maxWidth)),S=e.computed(()=>o.fullScreen&&!s.content?"95vh":k.normalizeSize(o.maxHeight)),V=e.computed(()=>{const t=Object.assign({},r);return delete t.class,t}),f=e.computed(()=>!!o.title||!!s.title||!o.hideCloseIcon),v=t=>{o.visible&&o.closeOnEscape&&t.key==="Escape"&&y(!0)},y=(t=!1,a)=>{(t||a?.target?.classList?.contains("modal-backdrop")&&o.closeOnBackdropClick&&!h.text.value)&&p("cancel")},i=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))},b=()=>{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 i(!0),o.inputAutofocus&&b(),d(!0)):(await i(!1),d(!1)),typeof document<"u"&&document?.body?.classList?.toggle(u,t)},{immediate:!0}),e.watch(()=>o.inputAutofocus,async t=>{t&&(await e.nextTick(),b())});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 i(!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:m,class:e.normalizeClass(["modal-backdrop",{"modal-full-screen":o.fullScreen&&!t.$slots.content}]),onClick:a[3]||(a[3]=c=>y(!1,c))},[e.createVNode(e.unref(g.FocusTrap),{ref_key:"focusTrapElement",ref:n,active:!1,"fallback-focus":()=>m.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",{},()=>[f.value?(e.openBlock(),e.createElementBlock("div",N,[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(x.default),{color:`var(--kui-color-text-neutral, ${e.unref(T.KUI_COLOR_TEXT_NEUTRAL)})`,decorative:""},null,8,["color"])]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["modal-content",{"no-header":!f.value}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2),e.createElementVNode("div",O,[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=I;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("./kongponents234.cjs"),w=require("./kongponents208.cjs"),B=require("./kongponents32.cjs"),x=require("./kongponents180.cjs"),T=require("./kongponents186.cjs"),k=require("./kongponents188.cjs"),$=["aria-label"],N={key:0,class:"modal-header"},A={key:0,class:"modal-title"},O={class:"modal-footer"},D={class:"footer-actions"},I=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=>({v5582ddaa:t.zIndex,v1ae56e5d:E.value,ee977890:S.value}));const p=C,s=e.useSlots(),r=e.useAttrs(),h=w.useTextSelection(),u=`k-modal-${e.useId()}-overflow-hidden`,n=e.ref(null),m=e.ref(null),E=e.computed(()=>o.fullScreen&&!s.content?"95%":k.normalizeSize(o.maxWidth)),S=e.computed(()=>o.fullScreen&&!s.content?"95vh":k.normalizeSize(o.maxHeight)),V=e.computed(()=>{const t=Object.assign({},r);return delete t.class,t}),f=e.computed(()=>!!o.title||!!s.title||!o.hideCloseIcon),v=t=>{o.visible&&o.closeOnEscape&&t.key==="Escape"&&y(!0)},y=(t=!1,a)=>{(t||a?.target?.classList?.contains("modal-backdrop")&&o.closeOnBackdropClick&&!h.text.value)&&p("cancel")},i=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))},b=()=>{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 i(!0),o.inputAutofocus&&b(),d(!0)):(await i(!1),d(!1)),typeof document<"u"&&document?.body?.classList?.toggle(u,t)},{immediate:!0}),e.watch(()=>o.inputAutofocus,async t=>{t&&(await e.nextTick(),b())});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 i(!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:m,class:e.normalizeClass(["modal-backdrop",{"modal-full-screen":o.fullScreen&&!t.$slots.content}]),onClick:a[3]||(a[3]=c=>y(!1,c))},[e.createVNode(e.unref(g.FocusTrap),{ref_key:"focusTrapElement",ref:n,active:!1,"fallback-focus":()=>m.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",{},()=>[f.value?(e.openBlock(),e.createElementBlock("div",N,[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(x.default),{color:`var(--kui-color-text-neutral, ${e.unref(T.KUI_COLOR_TEXT_NEUTRAL)})`,decorative:""},null,8,["color"])]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["modal-content",{"no-header":!f.value}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2),e.createElementVNode("div",O,[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=I;
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as K, useCssVars as M, useSlots as U, useAttrs as F, useId as R, ref as y, computed as u, watch as T, nextTick as x, onMounted as q, onBeforeUnmount as P, onUnmounted as j, openBlock as o, createElementBlock as r, mergeProps as X, 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 Y } from "vue";
2
- import { FocusTrap as G } from "./kongponents188.es.js";
3
- import { useTextSelection as J } from "./kongponents189.es.js";
2
+ import { FocusTrap as G } from "./kongponents234.es.js";
3
+ import { useTextSelection as J } from "./kongponents208.es.js";
4
4
  import I from "./kongponents32.es.js";
5
- import Q from "./kongponents176.es.js";
6
- import { KUI_COLOR_TEXT_NEUTRAL as Z } from "./kongponents181.es.js";
7
- import { normalizeSize as L } from "./kongponents184.es.js";
5
+ import Q from "./kongponents180.es.js";
6
+ import { KUI_COLOR_TEXT_NEUTRAL as Z } from "./kongponents186.es.js";
7
+ import { normalizeSize as L } from "./kongponents188.es.js";
8
8
  const _ = ["aria-label"], ee = {
9
9
  key: 0,
10
10
  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("./kongponents32.cjs"),m=require("./kongponents186.cjs"),f=require("./kongponents181.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("./kongponents32.cjs"),m=require("./kongponents212.cjs"),f=require("./kongponents186.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.default),{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 V, onBeforeUnmount as K, 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 "./kongponents32.es.js";
3
- import D from "./kongponents186.es.js";
4
- import { KUI_COLOR_TEXT_DECORATIVE_AQUA as H } from "./kongponents181.es.js";
3
+ import D from "./kongponents212.es.js";
4
+ import { KUI_COLOR_TEXT_DECORATIVE_AQUA as H } from "./kongponents186.es.js";
5
5
  const _ = ["aria-label"], O = { class: "k-modal-fullscreen-body-header" }, q = {
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"),Pe=require("./kongponents195.cjs"),T=require("./kongponents30.cjs"),fe=require("./kongponents49.cjs"),De=require("./kongponents51.cjs"),Le=require("./kongponents56.cjs"),Ue=require("./kongponents23.cjs"),Re=require("./kongponents24.cjs");;/* empty css */const Oe=require("./kongponents220.cjs"),He=require("./kongponents221.cjs"),Ge=require("./kongponents183.cjs"),H=require("./kongponents176.cjs"),We=require("./kongponents209.cjs"),F=require("./kongponents181.cjs"),Je=require("./kongponents201.cjs"),Ze=require("./kongponents172.cjs"),je=require("./kongponents189.cjs"),Qe=require("./kongponents153.cjs"),me=require("./kongponents184.cjs"),Xe={"data-testid":"multiselect-container"},Ye=["id","tabindex"],_e={key:0},et={key:1,class:"expanded-selection-empty"},tt={class:"multiselect-selection-badge-label"},lt=["aria-label","onClick"],at={class:"multiselect-icons-container"},ot={key:0,class:"multiselect-input-wrapper"},st={key:2,class:"multiselect-empty","data-propagate-clicks":"false"},ut={key:1,class:"help-text"},nt={key:2,"aria-hidden":"true",class:"staging-area"},it={class:"multiselect-selection-badge-label"},rt=36,ct="Filter...",dt=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:s=>s.items.filter(P=>P.label?.toLowerCase().includes(s.query?.toLowerCase()))},autosuggest:{type:Boolean},enableItemCreation:{type:Boolean},loading:{type:Boolean},dropdownFooterText:{default:""},dropdownFooterTextPosition:{default:"sticky"},itemCreationValidator:{type:Function,default:()=>!0}},emits:["selected","input","change","update:modelValue","query-change","item-added","item-removed"],setup(s,{emit:P}){e.useCssVars(t=>({v1718d198:Be.value}));const pe=t=>{const l=[],o=a=>{"value"in a?l.push(a.value):"items"in a&&Array.isArray(a.items)&&a.items.forEach(n=>l.push(n.value))};return t.forEach(o),l},he=t=>{const l=pe(t),o=new Set(l);return l.length===o.size},ge=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},h=e.useAttrs(),G=e.useSlots(),{cloneDeep:q,stripRequiredLabel:ye}=Pe.default();e.watch(()=>s.items,t=>{!t.length||ge(t)&&he(t)||console.warn("KMultiselect: Items must have a label & value and value must be unique")},{immediate:!0});const g=P,W=e.useTemplateRef("kMultiselectItems"),J=e.computed(()=>h.required!==void 0&&String(h.required)!=="false"),be=e.computed(()=>ye(s.label,J.value)),ke=e.computed(()=>!!(s.labelAttributes?.help||s.labelAttributes?.info||G["label-tooltip"])),Z=t=>I.value||S.value||t?.disabled?"neutral":s.error?"danger":"info",j={hideCaret:!0,placement:"bottom-start",popoverTimeout:0,popoverClasses:"k-multiselect-popover multiselect-popover"},$=e.ref(0),B=e.ref(0),we=e.useId(),Q=e.computed(()=>h.id?String(h.id):we),X=e.useId(),z=e.useTemplateRef("multiselectElement"),Ce=e.useTemplateRef("multiselectDropdownInputElement"),Y=e.useTemplateRef("multiselectSelectionsStagingElement"),D=e.computed(()=>s.selectedRowCount*rt),f=e.ref(""),_=e.computed(()=>!(!f.value||r.value.filter(t=>t.label===f.value).length)),C=e.ref(null),r=e.ref([]),y=e.ref([]),K=e.ref([]),c=e.ref([]),v=e.ref([]),p=e.ref([]),k=new Set,L=e.ref([]),V=e.ref([]),Se=e.computed(()=>V.value.map(t=>t.label).join(", ")),ee=e.ref(!1),N=e.ref(!1),U=e.ref(!1),I=e.computed(()=>h?.disabled!==void 0&&String(h?.disabled)!=="false"),S=e.computed(()=>h?.readonly!==void 0&&String(h?.readonly)!=="false"),Ie=e.computed({get(){return s.modelValue},set(t){const l=r.value.filter(o=>t.includes(o.value));l.length?se(l):t.length||O()}}),xe=e.computed(()=>{const t={...h};return delete t.class,t}),Ee=e.computed(()=>({...j,...s.kpopAttributes,popoverClasses:`${j.popoverClasses} ${s.kpopAttributes?.popoverClasses??""} ${s.dropdownFooterText||G["dropdown-footer-text"]?"has-dropdown-footer":""}`,width:A.value+"px",maxWidth:A.value+"px",disabled:h.disabled!==void 0&&String(h.disabled)!=="false"||h.readonly!==void 0&&String(h.readonly)!=="false"})),Be=e.computed(()=>me.normalizeSize(s.dropdownMaxHeight)),Ve=e.computed(()=>({...Ee.value})),Ne=e.computed(()=>{const t=s.width?s.width:"300";return me.normalizeSize(t)}),Ae=e.computed(()=>({width:Ne.value})),te=e.computed(()=>({width:A.value+"px"})),le=e.computed(()=>{if(c.value.length===0){if(!s.collapsedContext&&s.placeholder)return s.placeholder;if(s.collapsedContext&&s.searchPlaceholder)return s.searchPlaceholder}return c.value.length===1?`${c.value.length} item selected`:`${c.value.length} items selected`}),qe=e.computed(()=>s.autosuggest?r.value:s.filterFunction({items:r.value,query:f.value})),ae=e.computed(()=>{if(s.autosuggest||!f.value)return y.value;const t=qe.value,l=new Set(t.map(a=>a.value)),o=[];for(const a of y.value)if(w(a)){const n=a.items.filter(u=>l.has(u.value));n.length>0&&o.push({label:a.label,key:a.key,items:n})}else l.has(a.value)&&o.push(a);return o}),$e=t=>{(I.value||t?.target?.dataset.propagateClicks==="false")&&t.stopPropagation()},oe=async(t,l,o)=>{t?l.value||(f.value="",o(),ie(),await e.nextTick(),Ce.value?.$el?.querySelector("input")?.focus({preventScroll:!0})):l.value&&(f.value="",o())},E=()=>{setTimeout(()=>{const t=Y.value;if(s.collapsedContext){B.value++;return}if(t){if(t.clientHeight>D.value){const o=Array.from(t.querySelectorAll(".multiselect-selection-badge")).filter(u=>u.offsetTop>=D.value),a=v.value.length-o.length,n=v.value.splice(a,o.length);for(const u of n)k.has(u.value)||(k.add(u.value),p.value.push(u))}B.value++}},0)},se=t=>{t.forEach(l=>{const o=r.value.filter(a=>a.value===l.value)?.[0]||null;o&&(o.selected=!0,c.value.filter(a=>a.value===o.value).length||(c.value.push(o),v.value.push(o)))}),E()},ze=(t,l=!1)=>{const o=new Set(t.map(a=>a.value));c.value=c.value.filter(a=>!o.has(a.value)),v.value=v.value.filter(a=>!o.has(a.value)),p.value=p.value.filter(a=>!o.has(a.value)),t.forEach(a=>{if(k.delete(a.value),a.selected=!1,p.value.length){const n=p.value.pop();n&&(v.value.push(n),k.delete(n.value))}s.enableItemCreation&&a.custom&&(r.value=r.value.filter(n=>n.value!==a.value),y.value=y.value.filter(n=>w(n)?!0:n.value!==a.value),g("item-removed",a))}),l&&E()},R=(t,l)=>{let o=!1,a=l?t:r.value.filter(u=>u.value===t.value)?.[0]||null;if(s.enableItemCreation&&a?.custom&&(o=!0),a===null&&(a=c.value.filter(u=>u.value===t.value)?.[0]||null),a===null)return;if(a.selected){if(c.value=c.value.filter(u=>u.value!==t.value),v.value.filter(u=>u.value===t.value).length?v.value=v.value.filter(u=>u.value!==t.value):k.delete(t.value)&&(p.value=p.value.filter(u=>u.value!==t.value)),a.selected=!1,p.value.length){const u=p.value.pop();u&&(v.value.push(u),k.delete(u.value))}o&&(r.value=r.value.filter(u=>u.value!==t.value),y.value=y.value.filter(u=>w(u)?!0:u.value!==t.value),g("item-removed",t))}else a.selected=!0,c.value.push(a),v.value.push(a),l&&(a.custom=!0,r.value.push(a),y.value.unshift(a));E();const n=c.value.map(u=>u.value);g("selected",c.value),g("change",a),g("update:modelValue",n)},ue=t=>{s.enableItemCreation&&ne(),t.preventDefault()},ne=()=>{if(!s.enableItemCreation||!f.value||!_.value||!s.itemCreationValidator(f.value))return;const t=r.value.length+1,l={label:f.value.trim(),value:Qe.getUniqueStringId(),key:`${Ze.sanitizeInput(f.value.trim()).replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${t}`};g("item-added",l),R(l,!0),f.value=""},w=t=>"items"in t&&Array.isArray(t.items),ie=()=>{const t=[],l=[],o=[];for(const u of ae.value)w(u)?o.push(u):l.push(u);const a=l.filter(u=>u.selected),n=l.filter(u=>!u.selected);t.push(...a,...n);for(const u of o){const i=u.items.filter(m=>m.selected),b=u.items.filter(m=>!m.selected);t.push({label:u.label,key:u.key,items:[...i,...b]})}K.value=t},O=()=>{r.value.forEach(l=>{l.disabled||(l.selected=!1,l.custom&&g("item-removed",l))}),r.value=r.value.filter(l=>!(l.custom&&!l.disabled)),y.value=y.value.filter(l=>w(l)?!0:!(l.custom&&!l.disabled)),c.value=c.value.filter(l=>l.disabled),v.value=v.value.filter(l=>l.disabled),p.value=p.value.filter(l=>(l.disabled||k.delete(l.value),l.disabled)),f.value="",E();const t=c.value.map(l=>l.value);g("selected",c.value),g("update:modelValue",t),g("query-change","")},re=t=>{f.value=t.trim(),g("query-change",t.trim())},Ke=(t,l)=>{t.keyCode===27&&(l.value=!1),(t.key==="ArrowDown"||t.key==="ArrowUp")&&W.value?.setFocus(t.key==="ArrowDown"?"down":"up")},ce=()=>{C.value?.showPopover()},Me=t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&W.value?.setFocus(t.key==="ArrowDown"?"down":"up")},Te=async()=>{U.value=!0,de()},de=()=>{ee.value||(ee.value=!0,g("query-change",""))};e.watch(B,()=>{setTimeout(()=>{const t=Y.value;if(s.collapsedContext){L.value=q(v.value),V.value=[],$.value++;return}if(t)if(t.clientHeight>D.value){const o=v.value.pop();o&&!k.has(o.value)&&(p.value.push(o),k.add(o.value)),B.value++}else L.value=q(v.value),V.value=q(p.value),$.value++},0)}),e.watch($,async()=>{C.value&&typeof C.value.updatePopper=="function"&&(await e.nextTick(),C.value.updatePopper())}),e.watch(ae,()=>{ie()}),e.watch(Ie,(t,l)=>{if(JSON.stringify(t)!==JSON.stringify(l)){if(!t.length){O();return}const o=new Set(l),a=new Set(t),n=r.value.filter(i=>a.has(i.value)),u=c.value.filter(i=>!a.has(i.value)&&o.has(i.value));u.length&&ze(u),n.length&&se(n)}}),e.watch(()=>s.items,(t,l)=>{if(JSON.stringify(t)===JSON.stringify(l))return;const o=q(s.items),a=o.some(i=>w(i)),n=[],u=[];if(a)for(const i of o)w(i)?n.push(...i.items):n.push(i);else{const i=new Map;for(const d of o)w(d)||(d.group&&(i.has(d.group)||i.set(d.group,[]),i.get(d.group).push(d)),n.push(d));const b=Array.from(i.keys()).sort((d,x)=>d.toLowerCase().localeCompare(x.toLowerCase())),m=n.filter(d=>!d.group);u.push(...m);for(const d of b)u.push({label:d,items:i.get(d)})}r.value=n;for(let i=0;i<r.value.length;i++){r.value[i].selected===void 0&&(r.value[i].selected=!1);let b=`${r.value[i].label?.replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${i}`;if(b.includes("undefined")&&(b=`multiselect-item-label-${i}`),r.value[i].key=b,s.modelValue.includes(r.value[i].value)||r.value[i].selected){const m=r.value[i];m.selected=!0,c.value.filter(d=>d.value===m.value).length||c.value.push(m),v.value.filter(d=>d.value===m.value).length||v.value.push(m)}}if(a){const i=[],b=[];for(const m of o)if(w(m)){const d=m.items.map(x=>r.value.find(Fe=>Fe.value===x.value)).filter(x=>x!==void 0);b.push({label:m.label,key:m.key,items:d})}else{const d=r.value.find(x=>x.value===m.value);d&&i.push(d)}u.push(...i,...b)}y.value=u,E(),C.value&&typeof C.value.updatePopper=="function"&&e.nextTick(()=>{C.value.updatePopper()})},{deep:!0,immediate:!0});const A=e.ref(300),ve=async()=>{A.value=300,await e.nextTick(),A.value=z.value?.clientWidth||300,E()},M=e.ref();return e.onMounted(()=>{je.useEventListener("resize",ve),M.value=Je.ResizeObserverHelper.create(ve),M.value.observe(z.value)}),e.onBeforeUnmount(()=>{M.value&&z.value&&M.value.unobserve(z.value)}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-multiselect",[t.$attrs.class,{"multiselect-error":s.error}]]),style:e.normalizeStyle(Ae.value)},[s.label?(e.openBlock(),e.createBlock(De.default,e.mergeProps({key:0},s.labelAttributes,{"data-testid":s.labelAttributes["data-testid"]?s.labelAttributes["data-testid"]:"multiselect-label",for:Q.value,required:J.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(be.value)+" ",1)]),_:2},[ke.value?{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",Xe,[e.createVNode(Ue.default,null,{default:e.withCtx(({isToggled:o,toggle:a})=>[e.createVNode(Le.default,e.mergeProps({ref_key:"popper",ref:C,"hide-close-icon":"",offset:`var(--kui-space-40, ${e.unref(F.KUI_SPACE_40)})`},Ve.value,{onClose:()=>oe(!1,o,a),onOpen:()=>oe(!0,o,a)}),{content:e.withCtx(()=>[e.createElementVNode("div",{class:"multiselect-list",onClick:l[7]||(l[7]=e.withModifiers(()=>{},["stop"])),onMouseenter:l[8]||(l[8]=()=>N.value=!0),onMouseleave:l[9]||(l[9]=()=>N.value=!1)},[!s.collapsedContext&&!S.value?(e.openBlock(),e.createElementBlock("div",ot,[e.createVNode(fe.default,{ref:"multiselectDropdownInputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"multiselect-dropdown-input","data-testid":"multiselect-dropdown-input","model-value":f.value,name:"multiselect-options-search",placeholder:s.searchPlaceholder||ct,spellcheck:"false",type:"text",onClick:l[5]||(l[5]=e.withModifiers(()=>{},["stop"])),onFocus:de,onKeydown:e.withKeys(ue,["enter"]),onKeyup:[Me,l[6]||(l[6]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":re},null,8,["model-value","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(Oe.default,{ref:"kMultiselectItems","filter-string":f.value,"item-creation-enabled":s.enableItemCreation&&_.value,"item-creation-valid":s.itemCreationValidator(f.value),items:K.value,onAddItem:ne,onSelected:R},{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"]),!K.value.length&&!t.$slots.empty&&!s.enableItemCreation?(e.openBlock(),e.createBlock(He.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&&!s.loading&&!K.value.length?(e.openBlock(),e.createElementBlock("div",st,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],32),s.dropdownFooterText||t.$slots["dropdown-footer-text"]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dropdown-footer",`dropdown-footer-${s.dropdownFooterTextPosition}`]),"data-testid":"dropdown-footer"},[e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(s.dropdownFooterText),1)],!0)],2)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({id:Q.value,ref:"multiselectElement",class:["multiselect-trigger",{focused:U.value,hovered:N.value,disabled:I.value,readonly:S.value}],"data-testid":"multiselect-trigger",role:"listbox",tabindex:I.value||S.value||s.collapsedContext?-1:0},xe.value,{onClick:$e,onKeydown:[e.withKeys(ce,["enter"]),e.withKeys(ce,["space"])]}),[s.collapsedContext?(e.openBlock(),e.createElementBlock("div",_e,[e.createVNode(fe.default,{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:e.normalizeClass(["multiselect-input",{"is-readonly":S.value}]),"data-testid":"multiselect-input",disabled:I.value,"model-value":f.value,name:"multiselect-options-search",placeholder:le.value,readonly:S.value?!0:void 0,spellcheck:"false",type:"text",onBlur:l[0]||(l[0]=()=>U.value=!1),onClick:n=>{o.value&&n.stopPropagation()},onFocus:Te,onKeydown:e.withKeys(ue,["enter"]),onKeyup:n=>Ke(n,o),onMouseenter:l[1]||(l[1]=()=>N.value=!0),onMouseleave:l[2]||(l[2]=()=>N.value=!1),"onUpdate:modelValue":re},null,8,["class","disabled","model-value","placeholder","readonly","onClick","onKeyup"])])):c.value.length?(e.openBlock(),e.createElementBlock("div",{key:2,class:"selection-badges-container","data-testid":"selection-badges-container",style:e.normalizeStyle(te.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(n,u)=>(e.openBlock(),e.createBlock(T.default,{key:`${e.unref(X)}-${n.key?n.key:u}-badge-${$.value}`,appearance:Z(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",tt,e.toDisplayString(n.label),1)]),_:2},[n.selected&&!n.disabled&&!I.value&&!S.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:i=>R(n)},[e.createVNode(e.unref(H.default),{decorative:""})],8,lt)]),key:"0"}:void 0]),1032,["appearance","tooltip"]))),128)),V.value.length?(e.openBlock(),e.createBlock(Re.default,{key:0,class:"hidden-selection-count-tooltip","max-width":"300",text:Se.value},{default:e.withCtx(()=>[e.createVNode(T.default,{appearance:Z(),class:"hidden-selection-count","data-testid":"hidden-selection-count",onClick:l[4]||(l[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(V.value.length),1)]),_:1},8,["appearance"])]),_:1},8,["text"])):e.createCommentVNode("",!0)],4)):(e.openBlock(),e.createElementBlock("div",et,e.toDisplayString(le.value),1)),e.createElementVNode("div",at,[!s.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:O},[e.createVNode(e.unref(H.default),{size:`var(--kui-icon-size-40, ${e.unref(F.KUI_ICON_SIZE_40)})`},null,8,["size"])])):s.loading?(e.openBlock(),e.createBlock(e.unref(We.default),{key:1,class:"multiselect-loading-icon",size:`var(--kui-icon-size-40, ${e.unref(F.KUI_ICON_SIZE_40)})`,title:"Loading"},null,8,["size"])):(e.openBlock(),e.createBlock(e.unref(Ge.default),{key:2,class:"multiselect-chevron-icon",decorative:"",size:`var(--kui-icon-size-40, ${e.unref(F.KUI_ICON_SIZE_40)})`},null,8,["size"]))])],16,Ye)]),_:2},1040,["offset","onClose","onOpen"])]),_:3})]),s.help?(e.openBlock(),e.createElementBlock("p",ut,e.toDisplayString(s.help),1)):e.createCommentVNode("",!0),s.collapsedContext?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",nt,[(e.openBlock(),e.createElementBlock("div",{key:B.value,ref:"multiselectSelectionsStagingElement",class:"selection-badges-container staging",style:e.normalizeStyle(te.value),tabindex:"-1"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,a)=>(e.openBlock(),e.createBlock(T.default,{key:`${e.unref(X)}-${o.key?o.key:a}-badge`,"aria-hidden":"true",class:"multiselect-selection-badge","icon-before":!1},e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"item-badge-icon",{item:o},void 0,!0),e.createElementVNode("span",it,e.toDisplayString(o.label),1)]),_:2},[o.selected&&!o.disabled&&!I.value&&!S.value?{name:"icon",fn:e.withCtx(()=>[e.createVNode(e.unref(H.default),{"aria-hidden":"true"})]),key:"0"}:void 0]),1024))),128)),e.createVNode(T.default,{"aria-hidden":"true",class:"hidden-selection-count"},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(p.value.length),1)]),_:1})],4))]))],6))}});exports.default=dt;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Pe=require("./kongponents195.cjs"),T=require("./kongponents30.cjs"),fe=require("./kongponents49.cjs"),De=require("./kongponents51.cjs"),Le=require("./kongponents56.cjs"),Ue=require("./kongponents23.cjs"),Re=require("./kongponents24.cjs");;/* empty css */const Oe=require("./kongponents205.cjs"),He=require("./kongponents206.cjs"),Ge=require("./kongponents207.cjs"),H=require("./kongponents180.cjs"),We=require("./kongponents183.cjs"),F=require("./kongponents186.cjs"),Je=require("./kongponents191.cjs"),Ze=require("./kongponents172.cjs"),je=require("./kongponents208.cjs"),Qe=require("./kongponents153.cjs"),me=require("./kongponents188.cjs"),Xe={"data-testid":"multiselect-container"},Ye=["id","tabindex"],_e={key:0},et={key:1,class:"expanded-selection-empty"},tt={class:"multiselect-selection-badge-label"},lt=["aria-label","onClick"],at={class:"multiselect-icons-container"},ot={key:0,class:"multiselect-input-wrapper"},st={key:2,class:"multiselect-empty","data-propagate-clicks":"false"},ut={key:1,class:"help-text"},nt={key:2,"aria-hidden":"true",class:"staging-area"},it={class:"multiselect-selection-badge-label"},rt=36,ct="Filter...",dt=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:s=>s.items.filter(P=>P.label?.toLowerCase().includes(s.query?.toLowerCase()))},autosuggest:{type:Boolean},enableItemCreation:{type:Boolean},loading:{type:Boolean},dropdownFooterText:{default:""},dropdownFooterTextPosition:{default:"sticky"},itemCreationValidator:{type:Function,default:()=>!0}},emits:["selected","input","change","update:modelValue","query-change","item-added","item-removed"],setup(s,{emit:P}){e.useCssVars(t=>({v1718d198:Be.value}));const pe=t=>{const l=[],o=a=>{"value"in a?l.push(a.value):"items"in a&&Array.isArray(a.items)&&a.items.forEach(n=>l.push(n.value))};return t.forEach(o),l},he=t=>{const l=pe(t),o=new Set(l);return l.length===o.size},ge=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},h=e.useAttrs(),G=e.useSlots(),{cloneDeep:q,stripRequiredLabel:ye}=Pe.default();e.watch(()=>s.items,t=>{!t.length||ge(t)&&he(t)||console.warn("KMultiselect: Items must have a label & value and value must be unique")},{immediate:!0});const g=P,W=e.useTemplateRef("kMultiselectItems"),J=e.computed(()=>h.required!==void 0&&String(h.required)!=="false"),be=e.computed(()=>ye(s.label,J.value)),ke=e.computed(()=>!!(s.labelAttributes?.help||s.labelAttributes?.info||G["label-tooltip"])),Z=t=>I.value||S.value||t?.disabled?"neutral":s.error?"danger":"info",j={hideCaret:!0,placement:"bottom-start",popoverTimeout:0,popoverClasses:"k-multiselect-popover multiselect-popover"},$=e.ref(0),B=e.ref(0),we=e.useId(),Q=e.computed(()=>h.id?String(h.id):we),X=e.useId(),z=e.useTemplateRef("multiselectElement"),Ce=e.useTemplateRef("multiselectDropdownInputElement"),Y=e.useTemplateRef("multiselectSelectionsStagingElement"),D=e.computed(()=>s.selectedRowCount*rt),f=e.ref(""),_=e.computed(()=>!(!f.value||r.value.filter(t=>t.label===f.value).length)),C=e.ref(null),r=e.ref([]),y=e.ref([]),K=e.ref([]),c=e.ref([]),v=e.ref([]),p=e.ref([]),k=new Set,L=e.ref([]),V=e.ref([]),Se=e.computed(()=>V.value.map(t=>t.label).join(", ")),ee=e.ref(!1),N=e.ref(!1),U=e.ref(!1),I=e.computed(()=>h?.disabled!==void 0&&String(h?.disabled)!=="false"),S=e.computed(()=>h?.readonly!==void 0&&String(h?.readonly)!=="false"),Ie=e.computed({get(){return s.modelValue},set(t){const l=r.value.filter(o=>t.includes(o.value));l.length?se(l):t.length||O()}}),xe=e.computed(()=>{const t={...h};return delete t.class,t}),Ee=e.computed(()=>({...j,...s.kpopAttributes,popoverClasses:`${j.popoverClasses} ${s.kpopAttributes?.popoverClasses??""} ${s.dropdownFooterText||G["dropdown-footer-text"]?"has-dropdown-footer":""}`,width:A.value+"px",maxWidth:A.value+"px",disabled:h.disabled!==void 0&&String(h.disabled)!=="false"||h.readonly!==void 0&&String(h.readonly)!=="false"})),Be=e.computed(()=>me.normalizeSize(s.dropdownMaxHeight)),Ve=e.computed(()=>({...Ee.value})),Ne=e.computed(()=>{const t=s.width?s.width:"300";return me.normalizeSize(t)}),Ae=e.computed(()=>({width:Ne.value})),te=e.computed(()=>({width:A.value+"px"})),le=e.computed(()=>{if(c.value.length===0){if(!s.collapsedContext&&s.placeholder)return s.placeholder;if(s.collapsedContext&&s.searchPlaceholder)return s.searchPlaceholder}return c.value.length===1?`${c.value.length} item selected`:`${c.value.length} items selected`}),qe=e.computed(()=>s.autosuggest?r.value:s.filterFunction({items:r.value,query:f.value})),ae=e.computed(()=>{if(s.autosuggest||!f.value)return y.value;const t=qe.value,l=new Set(t.map(a=>a.value)),o=[];for(const a of y.value)if(w(a)){const n=a.items.filter(u=>l.has(u.value));n.length>0&&o.push({label:a.label,key:a.key,items:n})}else l.has(a.value)&&o.push(a);return o}),$e=t=>{(I.value||t?.target?.dataset.propagateClicks==="false")&&t.stopPropagation()},oe=async(t,l,o)=>{t?l.value||(f.value="",o(),ie(),await e.nextTick(),Ce.value?.$el?.querySelector("input")?.focus({preventScroll:!0})):l.value&&(f.value="",o())},E=()=>{setTimeout(()=>{const t=Y.value;if(s.collapsedContext){B.value++;return}if(t){if(t.clientHeight>D.value){const o=Array.from(t.querySelectorAll(".multiselect-selection-badge")).filter(u=>u.offsetTop>=D.value),a=v.value.length-o.length,n=v.value.splice(a,o.length);for(const u of n)k.has(u.value)||(k.add(u.value),p.value.push(u))}B.value++}},0)},se=t=>{t.forEach(l=>{const o=r.value.filter(a=>a.value===l.value)?.[0]||null;o&&(o.selected=!0,c.value.filter(a=>a.value===o.value).length||(c.value.push(o),v.value.push(o)))}),E()},ze=(t,l=!1)=>{const o=new Set(t.map(a=>a.value));c.value=c.value.filter(a=>!o.has(a.value)),v.value=v.value.filter(a=>!o.has(a.value)),p.value=p.value.filter(a=>!o.has(a.value)),t.forEach(a=>{if(k.delete(a.value),a.selected=!1,p.value.length){const n=p.value.pop();n&&(v.value.push(n),k.delete(n.value))}s.enableItemCreation&&a.custom&&(r.value=r.value.filter(n=>n.value!==a.value),y.value=y.value.filter(n=>w(n)?!0:n.value!==a.value),g("item-removed",a))}),l&&E()},R=(t,l)=>{let o=!1,a=l?t:r.value.filter(u=>u.value===t.value)?.[0]||null;if(s.enableItemCreation&&a?.custom&&(o=!0),a===null&&(a=c.value.filter(u=>u.value===t.value)?.[0]||null),a===null)return;if(a.selected){if(c.value=c.value.filter(u=>u.value!==t.value),v.value.filter(u=>u.value===t.value).length?v.value=v.value.filter(u=>u.value!==t.value):k.delete(t.value)&&(p.value=p.value.filter(u=>u.value!==t.value)),a.selected=!1,p.value.length){const u=p.value.pop();u&&(v.value.push(u),k.delete(u.value))}o&&(r.value=r.value.filter(u=>u.value!==t.value),y.value=y.value.filter(u=>w(u)?!0:u.value!==t.value),g("item-removed",t))}else a.selected=!0,c.value.push(a),v.value.push(a),l&&(a.custom=!0,r.value.push(a),y.value.unshift(a));E();const n=c.value.map(u=>u.value);g("selected",c.value),g("change",a),g("update:modelValue",n)},ue=t=>{s.enableItemCreation&&ne(),t.preventDefault()},ne=()=>{if(!s.enableItemCreation||!f.value||!_.value||!s.itemCreationValidator(f.value))return;const t=r.value.length+1,l={label:f.value.trim(),value:Qe.getUniqueStringId(),key:`${Ze.sanitizeInput(f.value.trim()).replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${t}`};g("item-added",l),R(l,!0),f.value=""},w=t=>"items"in t&&Array.isArray(t.items),ie=()=>{const t=[],l=[],o=[];for(const u of ae.value)w(u)?o.push(u):l.push(u);const a=l.filter(u=>u.selected),n=l.filter(u=>!u.selected);t.push(...a,...n);for(const u of o){const i=u.items.filter(m=>m.selected),b=u.items.filter(m=>!m.selected);t.push({label:u.label,key:u.key,items:[...i,...b]})}K.value=t},O=()=>{r.value.forEach(l=>{l.disabled||(l.selected=!1,l.custom&&g("item-removed",l))}),r.value=r.value.filter(l=>!(l.custom&&!l.disabled)),y.value=y.value.filter(l=>w(l)?!0:!(l.custom&&!l.disabled)),c.value=c.value.filter(l=>l.disabled),v.value=v.value.filter(l=>l.disabled),p.value=p.value.filter(l=>(l.disabled||k.delete(l.value),l.disabled)),f.value="",E();const t=c.value.map(l=>l.value);g("selected",c.value),g("update:modelValue",t),g("query-change","")},re=t=>{f.value=t.trim(),g("query-change",t.trim())},Ke=(t,l)=>{t.keyCode===27&&(l.value=!1),(t.key==="ArrowDown"||t.key==="ArrowUp")&&W.value?.setFocus(t.key==="ArrowDown"?"down":"up")},ce=()=>{C.value?.showPopover()},Me=t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&W.value?.setFocus(t.key==="ArrowDown"?"down":"up")},Te=async()=>{U.value=!0,de()},de=()=>{ee.value||(ee.value=!0,g("query-change",""))};e.watch(B,()=>{setTimeout(()=>{const t=Y.value;if(s.collapsedContext){L.value=q(v.value),V.value=[],$.value++;return}if(t)if(t.clientHeight>D.value){const o=v.value.pop();o&&!k.has(o.value)&&(p.value.push(o),k.add(o.value)),B.value++}else L.value=q(v.value),V.value=q(p.value),$.value++},0)}),e.watch($,async()=>{C.value&&typeof C.value.updatePopper=="function"&&(await e.nextTick(),C.value.updatePopper())}),e.watch(ae,()=>{ie()}),e.watch(Ie,(t,l)=>{if(JSON.stringify(t)!==JSON.stringify(l)){if(!t.length){O();return}const o=new Set(l),a=new Set(t),n=r.value.filter(i=>a.has(i.value)),u=c.value.filter(i=>!a.has(i.value)&&o.has(i.value));u.length&&ze(u),n.length&&se(n)}}),e.watch(()=>s.items,(t,l)=>{if(JSON.stringify(t)===JSON.stringify(l))return;const o=q(s.items),a=o.some(i=>w(i)),n=[],u=[];if(a)for(const i of o)w(i)?n.push(...i.items):n.push(i);else{const i=new Map;for(const d of o)w(d)||(d.group&&(i.has(d.group)||i.set(d.group,[]),i.get(d.group).push(d)),n.push(d));const b=Array.from(i.keys()).sort((d,x)=>d.toLowerCase().localeCompare(x.toLowerCase())),m=n.filter(d=>!d.group);u.push(...m);for(const d of b)u.push({label:d,items:i.get(d)})}r.value=n;for(let i=0;i<r.value.length;i++){r.value[i].selected===void 0&&(r.value[i].selected=!1);let b=`${r.value[i].label?.replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${i}`;if(b.includes("undefined")&&(b=`multiselect-item-label-${i}`),r.value[i].key=b,s.modelValue.includes(r.value[i].value)||r.value[i].selected){const m=r.value[i];m.selected=!0,c.value.filter(d=>d.value===m.value).length||c.value.push(m),v.value.filter(d=>d.value===m.value).length||v.value.push(m)}}if(a){const i=[],b=[];for(const m of o)if(w(m)){const d=m.items.map(x=>r.value.find(Fe=>Fe.value===x.value)).filter(x=>x!==void 0);b.push({label:m.label,key:m.key,items:d})}else{const d=r.value.find(x=>x.value===m.value);d&&i.push(d)}u.push(...i,...b)}y.value=u,E(),C.value&&typeof C.value.updatePopper=="function"&&e.nextTick(()=>{C.value.updatePopper()})},{deep:!0,immediate:!0});const A=e.ref(300),ve=async()=>{A.value=300,await e.nextTick(),A.value=z.value?.clientWidth||300,E()},M=e.ref();return e.onMounted(()=>{je.useEventListener("resize",ve),M.value=Je.ResizeObserverHelper.create(ve),M.value.observe(z.value)}),e.onBeforeUnmount(()=>{M.value&&z.value&&M.value.unobserve(z.value)}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-multiselect",[t.$attrs.class,{"multiselect-error":s.error}]]),style:e.normalizeStyle(Ae.value)},[s.label?(e.openBlock(),e.createBlock(De.default,e.mergeProps({key:0},s.labelAttributes,{"data-testid":s.labelAttributes["data-testid"]?s.labelAttributes["data-testid"]:"multiselect-label",for:Q.value,required:J.value}),e.createSlots({default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(be.value)+" ",1)]),_:2},[ke.value?{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",Xe,[e.createVNode(Ue.default,null,{default:e.withCtx(({isToggled:o,toggle:a})=>[e.createVNode(Le.default,e.mergeProps({ref_key:"popper",ref:C,"hide-close-icon":"",offset:`var(--kui-space-40, ${e.unref(F.KUI_SPACE_40)})`},Ve.value,{onClose:()=>oe(!1,o,a),onOpen:()=>oe(!0,o,a)}),{content:e.withCtx(()=>[e.createElementVNode("div",{class:"multiselect-list",onClick:l[7]||(l[7]=e.withModifiers(()=>{},["stop"])),onMouseenter:l[8]||(l[8]=()=>N.value=!0),onMouseleave:l[9]||(l[9]=()=>N.value=!1)},[!s.collapsedContext&&!S.value?(e.openBlock(),e.createElementBlock("div",ot,[e.createVNode(fe.default,{ref:"multiselectDropdownInputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"multiselect-dropdown-input","data-testid":"multiselect-dropdown-input","model-value":f.value,name:"multiselect-options-search",placeholder:s.searchPlaceholder||ct,spellcheck:"false",type:"text",onClick:l[5]||(l[5]=e.withModifiers(()=>{},["stop"])),onFocus:de,onKeydown:e.withKeys(ue,["enter"]),onKeyup:[Me,l[6]||(l[6]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":re},null,8,["model-value","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(Oe.default,{ref:"kMultiselectItems","filter-string":f.value,"item-creation-enabled":s.enableItemCreation&&_.value,"item-creation-valid":s.itemCreationValidator(f.value),items:K.value,onAddItem:ne,onSelected:R},{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"]),!K.value.length&&!t.$slots.empty&&!s.enableItemCreation?(e.openBlock(),e.createBlock(He.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&&!s.loading&&!K.value.length?(e.openBlock(),e.createElementBlock("div",st,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],32),s.dropdownFooterText||t.$slots["dropdown-footer-text"]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dropdown-footer",`dropdown-footer-${s.dropdownFooterTextPosition}`]),"data-testid":"dropdown-footer"},[e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(s.dropdownFooterText),1)],!0)],2)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({id:Q.value,ref:"multiselectElement",class:["multiselect-trigger",{focused:U.value,hovered:N.value,disabled:I.value,readonly:S.value}],"data-testid":"multiselect-trigger",role:"listbox",tabindex:I.value||S.value||s.collapsedContext?-1:0},xe.value,{onClick:$e,onKeydown:[e.withKeys(ce,["enter"]),e.withKeys(ce,["space"])]}),[s.collapsedContext?(e.openBlock(),e.createElementBlock("div",_e,[e.createVNode(fe.default,{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:e.normalizeClass(["multiselect-input",{"is-readonly":S.value}]),"data-testid":"multiselect-input",disabled:I.value,"model-value":f.value,name:"multiselect-options-search",placeholder:le.value,readonly:S.value?!0:void 0,spellcheck:"false",type:"text",onBlur:l[0]||(l[0]=()=>U.value=!1),onClick:n=>{o.value&&n.stopPropagation()},onFocus:Te,onKeydown:e.withKeys(ue,["enter"]),onKeyup:n=>Ke(n,o),onMouseenter:l[1]||(l[1]=()=>N.value=!0),onMouseleave:l[2]||(l[2]=()=>N.value=!1),"onUpdate:modelValue":re},null,8,["class","disabled","model-value","placeholder","readonly","onClick","onKeyup"])])):c.value.length?(e.openBlock(),e.createElementBlock("div",{key:2,class:"selection-badges-container","data-testid":"selection-badges-container",style:e.normalizeStyle(te.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(n,u)=>(e.openBlock(),e.createBlock(T.default,{key:`${e.unref(X)}-${n.key?n.key:u}-badge-${$.value}`,appearance:Z(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",tt,e.toDisplayString(n.label),1)]),_:2},[n.selected&&!n.disabled&&!I.value&&!S.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:i=>R(n)},[e.createVNode(e.unref(H.default),{decorative:""})],8,lt)]),key:"0"}:void 0]),1032,["appearance","tooltip"]))),128)),V.value.length?(e.openBlock(),e.createBlock(Re.default,{key:0,class:"hidden-selection-count-tooltip","max-width":"300",text:Se.value},{default:e.withCtx(()=>[e.createVNode(T.default,{appearance:Z(),class:"hidden-selection-count","data-testid":"hidden-selection-count",onClick:l[4]||(l[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(V.value.length),1)]),_:1},8,["appearance"])]),_:1},8,["text"])):e.createCommentVNode("",!0)],4)):(e.openBlock(),e.createElementBlock("div",et,e.toDisplayString(le.value),1)),e.createElementVNode("div",at,[!s.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:O},[e.createVNode(e.unref(H.default),{size:`var(--kui-icon-size-40, ${e.unref(F.KUI_ICON_SIZE_40)})`},null,8,["size"])])):s.loading?(e.openBlock(),e.createBlock(e.unref(We.default),{key:1,class:"multiselect-loading-icon",size:`var(--kui-icon-size-40, ${e.unref(F.KUI_ICON_SIZE_40)})`,title:"Loading"},null,8,["size"])):(e.openBlock(),e.createBlock(e.unref(Ge.default),{key:2,class:"multiselect-chevron-icon",decorative:"",size:`var(--kui-icon-size-40, ${e.unref(F.KUI_ICON_SIZE_40)})`},null,8,["size"]))])],16,Ye)]),_:2},1040,["offset","onClose","onOpen"])]),_:3})]),s.help?(e.openBlock(),e.createElementBlock("p",ut,e.toDisplayString(s.help),1)):e.createCommentVNode("",!0),s.collapsedContext?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",nt,[(e.openBlock(),e.createElementBlock("div",{key:B.value,ref:"multiselectSelectionsStagingElement",class:"selection-badges-container staging",style:e.normalizeStyle(te.value),tabindex:"-1"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,a)=>(e.openBlock(),e.createBlock(T.default,{key:`${e.unref(X)}-${o.key?o.key:a}-badge`,"aria-hidden":"true",class:"multiselect-selection-badge","icon-before":!1},e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"item-badge-icon",{item:o},void 0,!0),e.createElementVNode("span",it,e.toDisplayString(o.label),1)]),_:2},[o.selected&&!o.disabled&&!I.value&&!S.value?{name:"icon",fn:e.withCtx(()=>[e.createVNode(e.unref(H.default),{"aria-hidden":"true"})]),key:"0"}:void 0]),1024))),128)),e.createVNode(T.default,{"aria-hidden":"true",class:"hidden-selection-count"},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(p.value.length),1)]),_:1})],4))]))],6))}});exports.default=dt;
@@ -7,17 +7,17 @@ import ht from "./kongponents56.es.js";
7
7
  import gt from "./kongponents23.es.js";
8
8
  import bt from "./kongponents24.es.js";
9
9
  /* empty css */
10
- import yt from "./kongponents220.es.js";
11
- import kt from "./kongponents221.es.js";
12
- import wt from "./kongponents183.es.js";
13
- import de from "./kongponents176.es.js";
14
- import It from "./kongponents209.es.js";
15
- import { KUI_SPACE_40 as Ct, KUI_ICON_SIZE_40 as ce } from "./kongponents181.es.js";
16
- import { ResizeObserverHelper as St } from "./kongponents201.es.js";
10
+ import yt from "./kongponents205.es.js";
11
+ import kt from "./kongponents206.es.js";
12
+ import wt from "./kongponents207.es.js";
13
+ import de from "./kongponents180.es.js";
14
+ import It from "./kongponents183.es.js";
15
+ import { KUI_SPACE_40 as Ct, KUI_ICON_SIZE_40 as ce } from "./kongponents186.es.js";
16
+ import { ResizeObserverHelper as St } from "./kongponents191.es.js";
17
17
  import { sanitizeInput as At } from "./kongponents172.es.js";
18
- import { useEventListener as $t } from "./kongponents189.es.js";
18
+ import { useEventListener as $t } from "./kongponents208.es.js";
19
19
  import { getUniqueStringId as xt } from "./kongponents153.es.js";
20
- import { normalizeSize as Ne } from "./kongponents184.es.js";
20
+ import { normalizeSize as Ne } from "./kongponents188.es.js";
21
21
  const Et = { "data-testid": "multiselect-container" }, Ft = ["id", "tabindex"], zt = { key: 0 }, Kt = {
22
22
  key: 1,
23
23
  class: "expanded-selection-empty"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),K=require("./kongponents43.cjs"),x=require("./kongponents32.cjs"),j=require("./kongponents198.cjs"),L=require("./kongponents199.cjs"),U=require("./kongponents183.cjs"),W=require("./kongponents200.cjs"),R=require("./kongponents201.cjs"),Z=require("./kongponents173.cjs"),Q={class:"pagination-text large-screen","data-testid":"visible-items"},X={class:"pagination-text-pages"},Y={class:"pagination-button-container"},_={key:0},ee={key:1,class:"pagination-button placeholder"},te=["aria-current","aria-label","data-testid","onClick"],ae={key:2,class:"pagination-button placeholder"},le={key:3},ne={class:"page-size-select"},oe={key:0,class:"pagination-text small-screen","data-testid":"visible-items"},ie={class:"pagination-text-pages"},ue=e.defineComponent({__name:"KPagination",props:{items:{default:()=>[]},totalCount:{default:0},pageSizes:{default:()=>[15,30,50,75,100]},initialPageSize:{default:null},neighbors:{default:1},currentPage:{default:null},disablePageJump:{type:Boolean},offset:{type:Boolean},offsetPreviousButtonDisabled:{type:Boolean},offsetNextButtonDisabled:{type:Boolean}},emits:["pageChange","pageSizeChange","getNextOffset","getPreviousOffset"],setup(t,{emit:$}){const J={placement:"top"},k=$,v=e.ref(null),C=e.ref(),l=e.ref(t.currentPage?t.currentPage:1),u=e.ref(t.initialPageSize?t.initialPageSize:t.pageSizes[0]??Z.DEFAULT_PAGE_SIZE),i=e.computed(()=>Math.ceil(t.totalCount/u.value)),P=t.pageSizes.map((a,n)=>({label:`${a}`,key:`size-${n}`,value:a,selected:a===u.value})),q=e.computed(()=>`${u.value} ${u.value===1?"item per page":" items per page"}`),s=e.ref(t.neighbors),r=e.ref(3),G=async()=>(await e.nextTick(),v.value?v.value.scrollWidth>v.value.clientWidth:!1),z=async()=>{await G()&&(s.value>1||r.value>1)&&(s.value>1?s.value--:r.value>1&&r.value--,b.value=y(l.value,i.value,f.value,m.value))},y=(a,n,o,S)=>{if(t.disablePageJump)return[];let c=[...Array(n).keys()].map(d=>d+1);const H=r.value+2+2*s.value;return c.length<=H||(o?o&&S?c=c.filter(d=>d>a-s.value-1&&d<a+s.value+1):o&&!S&&(c=c.filter(d=>d>n-s.value*2-r.value)):c=c.filter(d=>d<=s.value*2+r.value)),c},V=e.ref(l.value===1),B=e.ref(l.value===i.value),h=e.computed(()=>(l.value-1)*u.value+1),N=e.computed(()=>{const a=h.value-1+u.value;return a>t.totalCount?t.totalCount:a}),w=e.computed(()=>`${h.value} to ${N.value}`),D=e.computed(()=>` of ${t.totalCount}`),g=e.computed(()=>t.currentPage?t.currentPage:l.value),O=e.computed(()=>5+2*s.value),f=e.computed(()=>i.value>O.value&&g.value>=s.value+(r.value+1)),m=e.computed(()=>i.value>O.value&&g.value<=i.value-s.value-r.value),b=e.ref(y(g.value,i.value,f.value,m.value)),I=()=>{l.value++,E()},T=()=>{l.value--,E()},p=a=>{l.value=a,E()},E=()=>{const a=(l.value-1)*u.value+u.value;B.value=a>=t.totalCount,V.value=l.value===1,b.value=y(l.value,i.value,f.value,m.value),k("pageChange",{page:l.value,pageCount:i.value,firstItem:h.value,lastItem:N.value,visibleItems:t.items.slice(h.value-1,N.value)})},A=a=>{u.value!==a.value&&(u.value=a.value,k("pageSizeChange",{pageSize:u.value,pageCount:i.value}),t.currentPage!==1&&p(1))},F=()=>{k("getNextOffset")},M=()=>{k("getPreviousOffset")};return e.watch(()=>t.currentPage,(a,n)=>{a!==n&&a&&p(a)}),e.watch(i,(a,n)=>{a!==n&&(B.value=l.value===a,b.value=y(g.value,a,f.value,m.value))}),e.watch(b,()=>{!t.disablePageJump&&!t.offset&&z()}),e.onMounted(()=>{!t.disablePageJump&&!t.offset&&(C.value=R.ResizeObserverHelper.create(z),C.value.observe(v.value))}),e.onBeforeUnmount(()=>{!t.disablePageJump&&!t.offset&&C.value?.unobserve(v.value)}),(a,n)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"kPaginationElement",ref:v,class:e.normalizeClass(["k-pagination",{"page-jump":!t.disablePageJump&&!t.offset}]),"data-testid":"k-pagination"},[t.offset?(e.openBlock(),e.createBlock(j.default,{key:1,"next-button-disabled":t.offsetNextButtonDisabled,"previous-button-disabled":t.offsetPreviousButtonDisabled,onGetNextOffset:F,onGetPreviousOffset:M},null,8,["next-button-disabled","previous-button-disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",Q,[e.createElementVNode("span",X,e.toDisplayString(w.value),1),e.createTextVNode(" "+e.toDisplayString(D.value),1)]),e.createElementVNode("ul",Y,[e.createElementVNode("li",null,[e.createVNode(x.default,{appearance:"tertiary","aria-label":"Go to the previous page",class:"pagination-button arrow","data-testid":"previous-button",disabled:V.value,icon:"",size:"small",type:"button",onClick:T},{default:e.withCtx(()=>[e.createVNode(e.unref(L.default),{class:"pagination-arrow-icon",decorative:""})]),_:1},8,["disabled"])]),!t.disablePageJump&&f.value?(e.openBlock(),e.createElementBlock("li",_,[e.createElementVNode("button",{"aria-label":"Go to the first page",class:"pagination-button","data-testid":"page-1-button",type:"button",onClick:n[0]||(n[0]=o=>p(1))}," 1 ")])):e.createCommentVNode("",!0),!t.disablePageJump&&f.value?(e.openBlock(),e.createElementBlock("li",ee," ... ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,o=>(e.openBlock(),e.createElementBlock("li",{key:o},[e.createElementVNode("button",{"aria-current":o==g.value&&"page"||void 0,"aria-label":`Go to page ${o}`,class:e.normalizeClass(["pagination-button",{active:o==g.value}]),"data-testid":`page-${o}-button`,type:"button",onClick:S=>p(o)},e.toDisplayString(o),11,te)]))),128)),!t.disablePageJump&&m.value?(e.openBlock(),e.createElementBlock("li",ae," ... ")):e.createCommentVNode("",!0),!t.disablePageJump&&m.value?(e.openBlock(),e.createElementBlock("li",le,[e.createElementVNode("button",{"aria-label":"Go to the last page",class:"pagination-button","data-testid":"last-button",type:"button",onClick:n[1]||(n[1]=o=>p(i.value))},e.toDisplayString(i.value),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",null,[e.createVNode(x.default,{appearance:"tertiary","aria-label":"Go to the next page",class:"pagination-button arrow","data-testid":"next-button",disabled:B.value?!0:void 0,icon:"",size:"small",type:"button",onClick:I},{default:e.withCtx(()=>[e.createVNode(e.unref(W.default),{class:"pagination-arrow-icon",decorative:""})]),_:1},8,["disabled"])])])],64)),e.createElementVNode("div",ne,[!t.disablePageJump&&!t.offset?(e.openBlock(),e.createElementBlock("span",oe,[e.createElementVNode("span",ie,e.toDisplayString(w.value),1),e.createTextVNode(" "+e.toDisplayString(D.value),1)])):e.createCommentVNode("",!0),e.createVNode(K.default,{class:"page-size-dropdown","data-testid":"page-size-dropdown",disabled:e.unref(P).length<=1,items:e.unref(P),"kpop-attributes":J,"selection-menu":"",onChange:A},{default:e.withCtx(()=>[e.createVNode(x.default,{appearance:"tertiary",class:"page-size-dropdown-trigger","data-testid":"page-size-dropdown-trigger",disabled:e.unref(P).length<=1,size:"small",type:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(q.value)+" ",1),e.unref(P).length>1?(e.openBlock(),e.createBlock(e.unref(U.default),{key:0,decorative:""})):e.createCommentVNode("",!0)]),_:1},8,["disabled"])]),_:1},8,["disabled","items"])])],2))}});exports.default=ue;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),K=require("./kongponents43.cjs"),x=require("./kongponents32.cjs"),j=require("./kongponents217.cjs"),L=require("./kongponents218.cjs"),U=require("./kongponents207.cjs"),W=require("./kongponents219.cjs"),R=require("./kongponents191.cjs"),Z=require("./kongponents173.cjs"),Q={class:"pagination-text large-screen","data-testid":"visible-items"},X={class:"pagination-text-pages"},Y={class:"pagination-button-container"},_={key:0},ee={key:1,class:"pagination-button placeholder"},te=["aria-current","aria-label","data-testid","onClick"],ae={key:2,class:"pagination-button placeholder"},le={key:3},ne={class:"page-size-select"},oe={key:0,class:"pagination-text small-screen","data-testid":"visible-items"},ie={class:"pagination-text-pages"},ue=e.defineComponent({__name:"KPagination",props:{items:{default:()=>[]},totalCount:{default:0},pageSizes:{default:()=>[15,30,50,75,100]},initialPageSize:{default:null},neighbors:{default:1},currentPage:{default:null},disablePageJump:{type:Boolean},offset:{type:Boolean},offsetPreviousButtonDisabled:{type:Boolean},offsetNextButtonDisabled:{type:Boolean}},emits:["pageChange","pageSizeChange","getNextOffset","getPreviousOffset"],setup(t,{emit:$}){const J={placement:"top"},k=$,v=e.ref(null),C=e.ref(),l=e.ref(t.currentPage?t.currentPage:1),u=e.ref(t.initialPageSize?t.initialPageSize:t.pageSizes[0]??Z.DEFAULT_PAGE_SIZE),i=e.computed(()=>Math.ceil(t.totalCount/u.value)),P=t.pageSizes.map((a,n)=>({label:`${a}`,key:`size-${n}`,value:a,selected:a===u.value})),q=e.computed(()=>`${u.value} ${u.value===1?"item per page":" items per page"}`),s=e.ref(t.neighbors),r=e.ref(3),G=async()=>(await e.nextTick(),v.value?v.value.scrollWidth>v.value.clientWidth:!1),z=async()=>{await G()&&(s.value>1||r.value>1)&&(s.value>1?s.value--:r.value>1&&r.value--,b.value=y(l.value,i.value,f.value,m.value))},y=(a,n,o,S)=>{if(t.disablePageJump)return[];let c=[...Array(n).keys()].map(d=>d+1);const H=r.value+2+2*s.value;return c.length<=H||(o?o&&S?c=c.filter(d=>d>a-s.value-1&&d<a+s.value+1):o&&!S&&(c=c.filter(d=>d>n-s.value*2-r.value)):c=c.filter(d=>d<=s.value*2+r.value)),c},V=e.ref(l.value===1),B=e.ref(l.value===i.value),h=e.computed(()=>(l.value-1)*u.value+1),N=e.computed(()=>{const a=h.value-1+u.value;return a>t.totalCount?t.totalCount:a}),w=e.computed(()=>`${h.value} to ${N.value}`),D=e.computed(()=>` of ${t.totalCount}`),g=e.computed(()=>t.currentPage?t.currentPage:l.value),O=e.computed(()=>5+2*s.value),f=e.computed(()=>i.value>O.value&&g.value>=s.value+(r.value+1)),m=e.computed(()=>i.value>O.value&&g.value<=i.value-s.value-r.value),b=e.ref(y(g.value,i.value,f.value,m.value)),I=()=>{l.value++,E()},T=()=>{l.value--,E()},p=a=>{l.value=a,E()},E=()=>{const a=(l.value-1)*u.value+u.value;B.value=a>=t.totalCount,V.value=l.value===1,b.value=y(l.value,i.value,f.value,m.value),k("pageChange",{page:l.value,pageCount:i.value,firstItem:h.value,lastItem:N.value,visibleItems:t.items.slice(h.value-1,N.value)})},A=a=>{u.value!==a.value&&(u.value=a.value,k("pageSizeChange",{pageSize:u.value,pageCount:i.value}),t.currentPage!==1&&p(1))},F=()=>{k("getNextOffset")},M=()=>{k("getPreviousOffset")};return e.watch(()=>t.currentPage,(a,n)=>{a!==n&&a&&p(a)}),e.watch(i,(a,n)=>{a!==n&&(B.value=l.value===a,b.value=y(g.value,a,f.value,m.value))}),e.watch(b,()=>{!t.disablePageJump&&!t.offset&&z()}),e.onMounted(()=>{!t.disablePageJump&&!t.offset&&(C.value=R.ResizeObserverHelper.create(z),C.value.observe(v.value))}),e.onBeforeUnmount(()=>{!t.disablePageJump&&!t.offset&&C.value?.unobserve(v.value)}),(a,n)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"kPaginationElement",ref:v,class:e.normalizeClass(["k-pagination",{"page-jump":!t.disablePageJump&&!t.offset}]),"data-testid":"k-pagination"},[t.offset?(e.openBlock(),e.createBlock(j.default,{key:1,"next-button-disabled":t.offsetNextButtonDisabled,"previous-button-disabled":t.offsetPreviousButtonDisabled,onGetNextOffset:F,onGetPreviousOffset:M},null,8,["next-button-disabled","previous-button-disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",Q,[e.createElementVNode("span",X,e.toDisplayString(w.value),1),e.createTextVNode(" "+e.toDisplayString(D.value),1)]),e.createElementVNode("ul",Y,[e.createElementVNode("li",null,[e.createVNode(x.default,{appearance:"tertiary","aria-label":"Go to the previous page",class:"pagination-button arrow","data-testid":"previous-button",disabled:V.value,icon:"",size:"small",type:"button",onClick:T},{default:e.withCtx(()=>[e.createVNode(e.unref(L.default),{class:"pagination-arrow-icon",decorative:""})]),_:1},8,["disabled"])]),!t.disablePageJump&&f.value?(e.openBlock(),e.createElementBlock("li",_,[e.createElementVNode("button",{"aria-label":"Go to the first page",class:"pagination-button","data-testid":"page-1-button",type:"button",onClick:n[0]||(n[0]=o=>p(1))}," 1 ")])):e.createCommentVNode("",!0),!t.disablePageJump&&f.value?(e.openBlock(),e.createElementBlock("li",ee," ... ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,o=>(e.openBlock(),e.createElementBlock("li",{key:o},[e.createElementVNode("button",{"aria-current":o==g.value&&"page"||void 0,"aria-label":`Go to page ${o}`,class:e.normalizeClass(["pagination-button",{active:o==g.value}]),"data-testid":`page-${o}-button`,type:"button",onClick:S=>p(o)},e.toDisplayString(o),11,te)]))),128)),!t.disablePageJump&&m.value?(e.openBlock(),e.createElementBlock("li",ae," ... ")):e.createCommentVNode("",!0),!t.disablePageJump&&m.value?(e.openBlock(),e.createElementBlock("li",le,[e.createElementVNode("button",{"aria-label":"Go to the last page",class:"pagination-button","data-testid":"last-button",type:"button",onClick:n[1]||(n[1]=o=>p(i.value))},e.toDisplayString(i.value),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",null,[e.createVNode(x.default,{appearance:"tertiary","aria-label":"Go to the next page",class:"pagination-button arrow","data-testid":"next-button",disabled:B.value?!0:void 0,icon:"",size:"small",type:"button",onClick:I},{default:e.withCtx(()=>[e.createVNode(e.unref(W.default),{class:"pagination-arrow-icon",decorative:""})]),_:1},8,["disabled"])])])],64)),e.createElementVNode("div",ne,[!t.disablePageJump&&!t.offset?(e.openBlock(),e.createElementBlock("span",oe,[e.createElementVNode("span",ie,e.toDisplayString(w.value),1),e.createTextVNode(" "+e.toDisplayString(D.value),1)])):e.createCommentVNode("",!0),e.createVNode(K.default,{class:"page-size-dropdown","data-testid":"page-size-dropdown",disabled:e.unref(P).length<=1,items:e.unref(P),"kpop-attributes":J,"selection-menu":"",onChange:A},{default:e.withCtx(()=>[e.createVNode(x.default,{appearance:"tertiary",class:"page-size-dropdown-trigger","data-testid":"page-size-dropdown-trigger",disabled:e.unref(P).length<=1,size:"small",type:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(q.value)+" ",1),e.unref(P).length>1?(e.openBlock(),e.createBlock(e.unref(U.default),{key:0,decorative:""})):e.createCommentVNode("",!0)]),_:1},8,["disabled"])]),_:1},8,["disabled","items"])])],2))}});exports.default=ue;
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as le, ref as d, computed as v, watch as A, onMounted as ie, onBeforeUnmount as ne, openBlock as s, createElementBlock as g, normalizeClass as W, Fragment as j, createElementVNode as r, toDisplayString as m, createTextVNode as T, createVNode as C, withCtx as J, unref as p, createCommentVNode as z, renderList as ue, createBlock as q, nextTick as oe } from "vue";
2
2
  import se from "./kongponents43.es.js";
3
3
  import F from "./kongponents32.es.js";
4
- import ve from "./kongponents198.es.js";
5
- import re from "./kongponents199.es.js";
6
- import ce from "./kongponents183.es.js";
7
- import de from "./kongponents200.es.js";
8
- import { ResizeObserverHelper as ge } from "./kongponents201.es.js";
4
+ import ve from "./kongponents217.es.js";
5
+ import re from "./kongponents218.es.js";
6
+ import ce from "./kongponents207.es.js";
7
+ import de from "./kongponents219.es.js";
8
+ import { ResizeObserverHelper as ge } from "./kongponents191.es.js";
9
9
  import { DEFAULT_PAGE_SIZE as fe } from "./kongponents173.es.js";
10
10
  const be = {
11
11
  class: "pagination-text large-screen",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),H=require("./kongponents228.cjs"),O=require("./kongponents32.cjs"),W=require("./kongponents176.cjs"),x=require("./kongponents181.cjs"),M=require("./kongponents229.cjs"),f=require("./kongponents189.cjs"),g=require("./kongponents184.cjs"),h=require("./kongponents230.cjs"),F=["id","aria-labelledby","x-placement"],Z=["tabindex"],j={key:1,class:"popover-header"},R=["id"],G={key:2,class:"popover-footer"},J=e.defineComponent({__name:"KPop",props:{buttonText:{default:""},title:{default:""},placement:{default:"auto"},trigger:{default:"click"},popoverTimeout:{default:300},popoverDelay:{default:0},hideCloseIcon:{type:Boolean},hideCaret:{type:Boolean},closeOnPopoverClick:{type:Boolean},disabled:{type:Boolean},width:{default:"200px"},maxWidth:{default:"none"},maxHeight:{default:"none"},popoverClasses:{default:""},popoverElementAttributes:{default:()=>({})},tag:{default:"div"},zIndex:{default:1e3},offset:{default:()=>x.KUI_SPACE_60},target:{default:null}},emits:["open","close","popover-click"],setup(t,{expose:S,emit:T}){const C=T,s=e.useSlots(),y=e.useId(),E=e.useId(),c=e.ref(null),i=e.ref(null),r=e.ref(!1),n=e.computed(()=>c.value&&c.value?.children[0]?c.value?.children[0]:null),u=e.ref(null),l=e.ref(null),z=()=>{r.value?a():p()},k=e.ref(),b=()=>{k.value&&k.value()},B=()=>{b(),n.value&&i.value&&(k.value=h.autoUpdate(n.value,i.value,q))},p=async()=>{if(!t.disabled){u.value&&(clearTimeout(u.value),u.value=null);const o=()=>{B(),r.value=!0};t.trigger==="hover"&&t.popoverDelay>0?(l.value&&clearTimeout(l.value),l.value=setTimeout(o,t.popoverDelay)):o()}},a=()=>{l.value&&(clearTimeout(l.value),l.value=null),u.value=setTimeout(()=>{b(),r.value=!1},t.trigger==="hover"?t.popoverTimeout:0)},I=()=>{z()},N=()=>{C("popover-click"),t.closeOnPopoverClick&&a()},P=o=>{if(!r.value)return;const v=o.target,L=c.value?.contains(v),$=i.value?.contains(v);L||$||a()},w=e.computed(()=>t.placement.trim().replace(/ /g,"-").replace(/[A-Z]+(?![a-z])|[A-Z]/g,(o,v)=>(v?"-":"")+o.toLowerCase()).replace(/--+/g,"-").replace(/-+$/g,"")),{floatingStyles:V,placement:d,update:q}=H.useFloating(n,i,{...w.value==="auto"&&{middleware:[h.autoPlacement()]},...w.value!=="auto"&&{placement:w.value,middleware:[h.shift(),h.flip()]},strategy:"fixed",transform:!1}),m=e.computed(()=>g.normalizeSize(t.offset)),U=e.computed(()=>d.value.includes("top")?{marginBottom:m.value}:d.value.includes("bottom")?{marginTop:m.value}:d.value.includes("right")?{marginLeft:m.value}:d.value.includes("left")?{marginRight:m.value}:{}),K=e.computed(()=>({...V.value,zIndex:t.zIndex})),A=e.computed(()=>({...U.value,width:g.normalizeSize(t.width),maxWidth:g.normalizeSize(t.maxWidth),maxHeight:g.normalizeSize(t.maxHeight)})),D=e.computed(()=>[t.popoverClasses,{"hide-caret":t.hideCaret}]);return S({hidePopover:a,showPopover:p}),e.onMounted(()=>{if(f.useEventListener(window,"mousedown",P,{capture:!0}),n.value){const o=n.value.querySelector('button[data-dropdown-trigger="true"]')||n.value;o.hasAttribute("aria-controls")||o.setAttribute("aria-controls",y)}t.trigger==="hover"&&[i.value,n.value].forEach(o=>{o&&(f.useEventListener(o,"mouseenter",p),f.useEventListener(o,"focusin",p),f.useEventListener(o,"mouseleave",a),f.useEventListener(o,"focusout",a))})}),e.onBeforeUnmount(()=>{l.value&&clearTimeout(l.value),u.value&&clearTimeout(u.value),b()}),e.watch(r,o=>{C(o?"open":"close")}),(o,v)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:"k-popover",onKeydown:e.withKeys(e.withModifiers(a,["stop"]),["esc"])},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"triggerWrapperElement",ref:c,class:"popover-trigger-wrapper",onClick:I},[e.renderSlot(o.$slots,"default",{},()=>[e.createVNode(O.default,{"aria-controls":e.unref(y),"data-testid":"popover-button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.buttonText),1)]),_:1},8,["aria-controls"])],!0)],512),e.createVNode(M.default,{target:t.target,"use-teleport":!!t.target},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"kongponents-fade-transition"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",e.mergeProps(t.popoverElementAttributes,{id:e.unref(y),ref_key:"popoverElement",ref:i,"aria-labelledby":s.title||t.title?e.unref(E):void 0,class:["popover",D.value],role:"dialog",style:K.value,"x-placement":e.unref(d),onClick:N}),[e.createElementVNode("div",{class:"popover-container",style:e.normalizeStyle(A.value)},[t.hideCloseIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,ref:"popoverCloseButton","aria-label":"Close popover",class:"popover-close-button",tabindex:r.value?0:-1,type:"button",onClick:a},[e.createVNode(e.unref(W.default),{class:"popover-close-icon",decorative:"",size:`var(--kui-icon-size-30, ${e.unref(x.KUI_ICON_SIZE_30)})`},null,8,["size"])],8,Z)),s.title||t.title?(e.openBlock(),e.createElementBlock("div",j,[s.title||t.title?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(E),class:e.normalizeClass(["popover-title",{"close-icon-spacing":!t.hideCloseIcon}])},[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],10,R)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["popover-content",{"close-icon-spacing":!t.hideCloseIcon&&!(s.title||t.title)}])},[e.renderSlot(o.$slots,"content",{},void 0,!0)],2),s.footer?(e.openBlock(),e.createElementBlock("div",G,[e.renderSlot(o.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],4)],16,F),[[e.vShow,r.value]])]),_:3})]),_:3},8,["target","use-teleport"])]),_:3},40,["onKeydown"]))}});exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),H=require("./kongponents240.cjs"),O=require("./kongponents32.cjs"),W=require("./kongponents180.cjs"),x=require("./kongponents186.cjs"),M=require("./kongponents241.cjs"),f=require("./kongponents208.cjs"),g=require("./kongponents188.cjs"),h=require("./kongponents242.cjs"),F=["id","aria-labelledby","x-placement"],Z=["tabindex"],j={key:1,class:"popover-header"},R=["id"],G={key:2,class:"popover-footer"},J=e.defineComponent({__name:"KPop",props:{buttonText:{default:""},title:{default:""},placement:{default:"auto"},trigger:{default:"click"},popoverTimeout:{default:300},popoverDelay:{default:0},hideCloseIcon:{type:Boolean},hideCaret:{type:Boolean},closeOnPopoverClick:{type:Boolean},disabled:{type:Boolean},width:{default:"200px"},maxWidth:{default:"none"},maxHeight:{default:"none"},popoverClasses:{default:""},popoverElementAttributes:{default:()=>({})},tag:{default:"div"},zIndex:{default:1e3},offset:{default:()=>x.KUI_SPACE_60},target:{default:null}},emits:["open","close","popover-click"],setup(t,{expose:S,emit:T}){const C=T,s=e.useSlots(),y=e.useId(),E=e.useId(),c=e.ref(null),i=e.ref(null),r=e.ref(!1),n=e.computed(()=>c.value&&c.value?.children[0]?c.value?.children[0]:null),u=e.ref(null),l=e.ref(null),z=()=>{r.value?a():p()},k=e.ref(),b=()=>{k.value&&k.value()},B=()=>{b(),n.value&&i.value&&(k.value=h.autoUpdate(n.value,i.value,q))},p=async()=>{if(!t.disabled){u.value&&(clearTimeout(u.value),u.value=null);const o=()=>{B(),r.value=!0};t.trigger==="hover"&&t.popoverDelay>0?(l.value&&clearTimeout(l.value),l.value=setTimeout(o,t.popoverDelay)):o()}},a=()=>{l.value&&(clearTimeout(l.value),l.value=null),u.value=setTimeout(()=>{b(),r.value=!1},t.trigger==="hover"?t.popoverTimeout:0)},I=()=>{z()},N=()=>{C("popover-click"),t.closeOnPopoverClick&&a()},P=o=>{if(!r.value)return;const v=o.target,L=c.value?.contains(v),$=i.value?.contains(v);L||$||a()},w=e.computed(()=>t.placement.trim().replace(/ /g,"-").replace(/[A-Z]+(?![a-z])|[A-Z]/g,(o,v)=>(v?"-":"")+o.toLowerCase()).replace(/--+/g,"-").replace(/-+$/g,"")),{floatingStyles:V,placement:d,update:q}=H.useFloating(n,i,{...w.value==="auto"&&{middleware:[h.autoPlacement()]},...w.value!=="auto"&&{placement:w.value,middleware:[h.shift(),h.flip()]},strategy:"fixed",transform:!1}),m=e.computed(()=>g.normalizeSize(t.offset)),U=e.computed(()=>d.value.includes("top")?{marginBottom:m.value}:d.value.includes("bottom")?{marginTop:m.value}:d.value.includes("right")?{marginLeft:m.value}:d.value.includes("left")?{marginRight:m.value}:{}),K=e.computed(()=>({...V.value,zIndex:t.zIndex})),A=e.computed(()=>({...U.value,width:g.normalizeSize(t.width),maxWidth:g.normalizeSize(t.maxWidth),maxHeight:g.normalizeSize(t.maxHeight)})),D=e.computed(()=>[t.popoverClasses,{"hide-caret":t.hideCaret}]);return S({hidePopover:a,showPopover:p}),e.onMounted(()=>{if(f.useEventListener(window,"mousedown",P,{capture:!0}),n.value){const o=n.value.querySelector('button[data-dropdown-trigger="true"]')||n.value;o.hasAttribute("aria-controls")||o.setAttribute("aria-controls",y)}t.trigger==="hover"&&[i.value,n.value].forEach(o=>{o&&(f.useEventListener(o,"mouseenter",p),f.useEventListener(o,"focusin",p),f.useEventListener(o,"mouseleave",a),f.useEventListener(o,"focusout",a))})}),e.onBeforeUnmount(()=>{l.value&&clearTimeout(l.value),u.value&&clearTimeout(u.value),b()}),e.watch(r,o=>{C(o?"open":"close")}),(o,v)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:"k-popover",onKeydown:e.withKeys(e.withModifiers(a,["stop"]),["esc"])},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"triggerWrapperElement",ref:c,class:"popover-trigger-wrapper",onClick:I},[e.renderSlot(o.$slots,"default",{},()=>[e.createVNode(O.default,{"aria-controls":e.unref(y),"data-testid":"popover-button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.buttonText),1)]),_:1},8,["aria-controls"])],!0)],512),e.createVNode(M.default,{target:t.target,"use-teleport":!!t.target},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"kongponents-fade-transition"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",e.mergeProps(t.popoverElementAttributes,{id:e.unref(y),ref_key:"popoverElement",ref:i,"aria-labelledby":s.title||t.title?e.unref(E):void 0,class:["popover",D.value],role:"dialog",style:K.value,"x-placement":e.unref(d),onClick:N}),[e.createElementVNode("div",{class:"popover-container",style:e.normalizeStyle(A.value)},[t.hideCloseIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,ref:"popoverCloseButton","aria-label":"Close popover",class:"popover-close-button",tabindex:r.value?0:-1,type:"button",onClick:a},[e.createVNode(e.unref(W.default),{class:"popover-close-icon",decorative:"",size:`var(--kui-icon-size-30, ${e.unref(x.KUI_ICON_SIZE_30)})`},null,8,["size"])],8,Z)),s.title||t.title?(e.openBlock(),e.createElementBlock("div",j,[s.title||t.title?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(E),class:e.normalizeClass(["popover-title",{"close-icon-spacing":!t.hideCloseIcon}])},[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],10,R)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["popover-content",{"close-icon-spacing":!t.hideCloseIcon&&!(s.title||t.title)}])},[e.renderSlot(o.$slots,"content",{},void 0,!0)],2),s.footer?(e.openBlock(),e.createElementBlock("div",G,[e.renderSlot(o.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],4)],16,F),[[e.vShow,r.value]])]),_:3})]),_:3},8,["target","use-teleport"])]),_:3},40,["onKeydown"]))}});exports.default=J;
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as X, useSlots as Y, useId as K, ref as c, computed as r, onMounted as _, onBeforeUnmount as ee, watch as te, openBlock as p, createBlock as oe, resolveDynamicComponent as le, withKeys as ae, withModifiers as ie, withCtx as C, createElementVNode as b, renderSlot as k, createVNode as w, unref as n, createTextVNode as U, toDisplayString as $, Transition as re, withDirectives as ne, mergeProps as ue, normalizeStyle as se, createElementBlock as x, createCommentVNode as T, normalizeClass as D, vShow as ce } from "vue";
2
- import { useFloating as ve } from "./kongponents228.es.js";
2
+ import { useFloating as ve } from "./kongponents240.es.js";
3
3
  import de from "./kongponents32.es.js";
4
- import fe from "./kongponents176.es.js";
5
- import { KUI_SPACE_60 as me, KUI_ICON_SIZE_30 as pe } from "./kongponents181.es.js";
6
- import ge from "./kongponents229.es.js";
7
- import { useEventListener as g } from "./kongponents189.es.js";
8
- import { normalizeSize as E } from "./kongponents184.es.js";
9
- import { shift as he, flip as ye, autoPlacement as Ce, autoUpdate as be } from "./kongponents230.es.js";
4
+ import fe from "./kongponents180.es.js";
5
+ import { KUI_SPACE_60 as me, KUI_ICON_SIZE_30 as pe } from "./kongponents186.es.js";
6
+ import ge from "./kongponents241.es.js";
7
+ import { useEventListener as g } from "./kongponents208.es.js";
8
+ import { normalizeSize as E } from "./kongponents188.es.js";
9
+ import { shift as he, flip as ye, autoPlacement as Ce, autoUpdate as be } from "./kongponents242.es.js";
10
10
  const ke = ["id", "aria-labelledby", "x-placement"], we = ["tabindex"], xe = {
11
11
  key: 1,
12
12
  class: "popover-header"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("./kongponents51.cjs"),C=require("./kongponents178.cjs"),B=require("./kongponents181.cjs"),w=["id","aria-checked","checked","disabled","tabindex"],S={key:0,class:"radio-description"},N=["data-testid","for","tabindex"],$={key:0,class:"card-content-wrapper"},E={key:1,class:"card-label-container"},K={key:0,class:"radio-label"},T={key:1,class:"radio-description"},R={inheritAttrs:!1},A=e.defineComponent({...R,__name:"KRadio",props:{modelValue:{},label:{default:""},labelAttributes:{default:()=>({})},description:{default:""},selectedValue:{},error:{type:Boolean},card:{type:Boolean},cardRadioVisible:{type:Boolean,default:!0},cardOrientation:{default:"vertical"},type:{default:""}},emits:["change","update:modelValue"],setup(t,{emit:h}){e.watch(()=>t.labelAttributes,a=>{a.help&&console.warn("KRadio: `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")},{deep:!0,immediate:!0}),e.watch(()=>t.type,a=>{a&&console.warn("KRadio: `type` prop is deprecated. Please use `card` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kradio")},{immediate:!0});const c=h,l=e.useSlots(),o=e.useAttrs(),b=e.useId(),r=e.computed(()=>o.id?String(o.id):b),d=e.computed(()=>o?.disabled!==void 0&&String(o?.disabled)!=="false"),k=e.computed(()=>!!(t.label||l.default)),n=e.computed(()=>k.value&&(!!t.description||!!l.description)),s=e.computed(()=>!!t.label&&(!!t.description||!!l.description)),p=e.computed(()=>!!l.tooltip),i=e.computed(()=>t.selectedValue===t.modelValue),u=()=>{c("change",t.selectedValue),c("update:modelValue",t.selectedValue)},v=e.computed(()=>{const a={...o};return delete a.class,a}),f=e.computed(()=>({disabled:d.value,"radio-card":t.card||t.type==="card","input-error":t.error,checked:i.value,"has-description":n.value,"card-horizontal":t.card&&t.cardOrientation==="horizontal","card-vertical":t.card&&t.cardOrientation!=="horizontal"})),g=e.computed(()=>t.card&&o["data-testid"]?`${o["data-testid"]}-label`:void 0);return(a,m)=>{const y=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-radio",[a.$attrs.class?a.$attrs.class:"",f.value]])},[e.createElementVNode("input",e.mergeProps({id:r.value},v.value,{"aria-checked":i.value,checked:i.value,class:["radio-input",{hidden:t.card&&!t.cardRadioVisible}],disabled:d.value,tabindex:t.card||d.value||i.value?-1:0,type:"radio",onClick:u}),null,16,w),!t.card&&(t.label||a.$slots.default)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["radio-label-wrapper",{"has-description":n.value}])},[e.createVNode(V.default,e.mergeProps(t.labelAttributes,{class:"radio-label",for:r.value}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)]),_:2},[p.value?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for"]),n.value?(e.openBlock(),e.createElementBlock("div",S,[e.renderSlot(a.$slots,"description",{},()=>[e.createElementVNode("p",null,e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)],2)):t.label||a.$slots.default?(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["radio-card-wrapper radio-label-wrapper",{"has-label":t.label,"has-description":s.value,"show-radio":t.cardRadioVisible}]),"data-testid":g.value,for:r.value,tabindex:d.value||i.value?-1:0,onKeydown:m[0]||(m[0]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),onKeyup:e.withKeys(u,["space"])},[a.$slots.default?(e.openBlock(),e.createElementBlock("span",$,[e.renderSlot(a.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),t.label||s.value?(e.openBlock(),e.createElementBlock("span",E,[t.label?(e.openBlock(),e.createElementBlock("span",K,[e.createTextVNode(e.toDisplayString(t.label)+" ",1),l.tooltip?(e.openBlock(),e.createBlock(y,{key:0,class:"label-tooltip"},{content:e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip",{},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(C.default),{class:"tooltip-trigger-icon",color:`var(--kui-color-text-neutral, ${e.unref(B.KUI_COLOR_TEXT_NEUTRAL)})`,tabindex:"0"},null,8,["color"])]),_:3})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("span",T,[e.renderSlot(a.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],42,N)):e.createCommentVNode("",!0)],2)}}});exports.default=A;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("./kongponents51.cjs"),C=require("./kongponents211.cjs"),B=require("./kongponents186.cjs"),w=["id","aria-checked","checked","disabled","tabindex"],S={key:0,class:"radio-description"},N=["data-testid","for","tabindex"],$={key:0,class:"card-content-wrapper"},E={key:1,class:"card-label-container"},K={key:0,class:"radio-label"},T={key:1,class:"radio-description"},R={inheritAttrs:!1},A=e.defineComponent({...R,__name:"KRadio",props:{modelValue:{},label:{default:""},labelAttributes:{default:()=>({})},description:{default:""},selectedValue:{},error:{type:Boolean},card:{type:Boolean},cardRadioVisible:{type:Boolean,default:!0},cardOrientation:{default:"vertical"},type:{default:""}},emits:["change","update:modelValue"],setup(t,{emit:h}){e.watch(()=>t.labelAttributes,a=>{a.help&&console.warn("KRadio: `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")},{deep:!0,immediate:!0}),e.watch(()=>t.type,a=>{a&&console.warn("KRadio: `type` prop is deprecated. Please use `card` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kradio")},{immediate:!0});const c=h,l=e.useSlots(),o=e.useAttrs(),b=e.useId(),r=e.computed(()=>o.id?String(o.id):b),d=e.computed(()=>o?.disabled!==void 0&&String(o?.disabled)!=="false"),k=e.computed(()=>!!(t.label||l.default)),n=e.computed(()=>k.value&&(!!t.description||!!l.description)),s=e.computed(()=>!!t.label&&(!!t.description||!!l.description)),p=e.computed(()=>!!l.tooltip),i=e.computed(()=>t.selectedValue===t.modelValue),u=()=>{c("change",t.selectedValue),c("update:modelValue",t.selectedValue)},v=e.computed(()=>{const a={...o};return delete a.class,a}),f=e.computed(()=>({disabled:d.value,"radio-card":t.card||t.type==="card","input-error":t.error,checked:i.value,"has-description":n.value,"card-horizontal":t.card&&t.cardOrientation==="horizontal","card-vertical":t.card&&t.cardOrientation!=="horizontal"})),g=e.computed(()=>t.card&&o["data-testid"]?`${o["data-testid"]}-label`:void 0);return(a,m)=>{const y=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-radio",[a.$attrs.class?a.$attrs.class:"",f.value]])},[e.createElementVNode("input",e.mergeProps({id:r.value},v.value,{"aria-checked":i.value,checked:i.value,class:["radio-input",{hidden:t.card&&!t.cardRadioVisible}],disabled:d.value,tabindex:t.card||d.value||i.value?-1:0,type:"radio",onClick:u}),null,16,w),!t.card&&(t.label||a.$slots.default)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["radio-label-wrapper",{"has-description":n.value}])},[e.createVNode(V.default,e.mergeProps(t.labelAttributes,{class:"radio-label",for:r.value}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)]),_:2},[p.value?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for"]),n.value?(e.openBlock(),e.createElementBlock("div",S,[e.renderSlot(a.$slots,"description",{},()=>[e.createElementVNode("p",null,e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)],2)):t.label||a.$slots.default?(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["radio-card-wrapper radio-label-wrapper",{"has-label":t.label,"has-description":s.value,"show-radio":t.cardRadioVisible}]),"data-testid":g.value,for:r.value,tabindex:d.value||i.value?-1:0,onKeydown:m[0]||(m[0]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),onKeyup:e.withKeys(u,["space"])},[a.$slots.default?(e.openBlock(),e.createElementBlock("span",$,[e.renderSlot(a.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),t.label||s.value?(e.openBlock(),e.createElementBlock("span",E,[t.label?(e.openBlock(),e.createElementBlock("span",K,[e.createTextVNode(e.toDisplayString(t.label)+" ",1),l.tooltip?(e.openBlock(),e.createBlock(y,{key:0,class:"label-tooltip"},{content:e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip",{},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(C.default),{class:"tooltip-trigger-icon",color:`var(--kui-color-text-neutral, ${e.unref(B.KUI_COLOR_TEXT_NEUTRAL)})`,tabindex:"0"},null,8,["color"])]),_:3})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("span",T,[e.renderSlot(a.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],42,N)):e.createCommentVNode("",!0)],2)}}});exports.default=A;