@kong/kongponents 9.66.15 → 9.66.16

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 (980) hide show
  1. package/bin/mcp-data/snapshot.json.gz +0 -0
  2. package/dist/kongponents.css +1 -1
  3. package/dist/kongponents.umd.js +13 -13
  4. package/dist/{kongponents103.cjs → kongponents102.cjs} +1 -1
  5. package/dist/{kongponents103.es.js → kongponents102.es.js} +1 -1
  6. package/dist/{kongponents105.cjs → kongponents104.cjs} +1 -1
  7. package/dist/{kongponents105.es.js → kongponents104.es.js} +5 -5
  8. package/dist/{kongponents108.cjs → kongponents107.cjs} +1 -1
  9. package/dist/{kongponents108.es.js → kongponents107.es.js} +1 -1
  10. package/dist/{kongponents114.cjs → kongponents113.cjs} +1 -1
  11. package/dist/{kongponents114.es.js → kongponents113.es.js} +1 -1
  12. package/dist/{kongponents116.cjs → kongponents115.cjs} +1 -1
  13. package/dist/{kongponents116.es.js → kongponents115.es.js} +1 -1
  14. package/dist/{kongponents118.cjs → kongponents117.cjs} +1 -1
  15. package/dist/{kongponents118.es.js → kongponents117.es.js} +2 -2
  16. package/dist/{kongponents122.cjs → kongponents121.cjs} +1 -1
  17. package/dist/{kongponents122.es.js → kongponents121.es.js} +2 -2
  18. package/dist/{kongponents124.cjs → kongponents123.cjs} +1 -1
  19. package/dist/{kongponents124.es.js → kongponents123.es.js} +4 -4
  20. package/dist/{kongponents126.cjs → kongponents125.cjs} +1 -1
  21. package/dist/{kongponents126.es.js → kongponents125.es.js} +1 -1
  22. package/dist/{kongponents128.cjs → kongponents127.cjs} +1 -1
  23. package/dist/{kongponents128.es.js → kongponents127.es.js} +7 -7
  24. package/dist/{kongponents131.cjs → kongponents130.cjs} +1 -1
  25. package/dist/{kongponents131.es.js → kongponents130.es.js} +2 -2
  26. package/dist/kongponents132.cjs +1 -0
  27. package/dist/kongponents132.es.js +219 -0
  28. package/dist/{kongponents137.cjs → kongponents136.cjs} +1 -1
  29. package/dist/{kongponents137.es.js → kongponents136.es.js} +1 -1
  30. package/dist/{kongponents139.cjs → kongponents138.cjs} +1 -1
  31. package/dist/{kongponents139.es.js → kongponents138.es.js} +1 -1
  32. package/dist/{kongponents141.cjs → kongponents140.cjs} +1 -1
  33. package/dist/{kongponents141.es.js → kongponents140.es.js} +8 -8
  34. package/dist/kongponents143.cjs +1 -0
  35. package/dist/kongponents143.es.js +5 -0
  36. package/dist/kongponents144.cjs +1 -1
  37. package/dist/kongponents144.es.js +14 -3
  38. package/dist/{kongponents148.cjs → kongponents147.cjs} +1 -1
  39. package/dist/{kongponents148.es.js → kongponents147.es.js} +4 -4
  40. package/dist/{kongponents150.cjs → kongponents149.cjs} +1 -1
  41. package/dist/{kongponents150.es.js → kongponents149.es.js} +1 -1
  42. package/dist/{kongponents152.cjs → kongponents151.cjs} +1 -1
  43. package/dist/{kongponents152.es.js → kongponents151.es.js} +4 -4
  44. package/dist/{kongponents156.cjs → kongponents155.cjs} +1 -1
  45. package/dist/{kongponents156.es.js → kongponents155.es.js} +2 -2
  46. package/dist/{kongponents158.cjs → kongponents157.cjs} +1 -1
  47. package/dist/{kongponents158.es.js → kongponents157.es.js} +1 -1
  48. package/dist/kongponents160.cjs +1 -0
  49. package/dist/kongponents160.es.js +5 -0
  50. package/dist/kongponents161.cjs +1 -1
  51. package/dist/kongponents161.es.js +3 -3
  52. package/dist/kongponents162.cjs +1 -1
  53. package/dist/kongponents162.es.js +1 -1
  54. package/dist/kongponents163.cjs +1 -1
  55. package/dist/kongponents163.es.js +33 -3
  56. package/dist/{kongponents166.cjs → kongponents165.cjs} +1 -1
  57. package/dist/{kongponents166.es.js → kongponents165.es.js} +4 -4
  58. package/dist/{kongponents168.cjs → kongponents167.cjs} +1 -1
  59. package/dist/{kongponents168.es.js → kongponents167.es.js} +2 -2
  60. package/dist/{kongponents170.cjs → kongponents169.cjs} +1 -1
  61. package/dist/{kongponents170.es.js → kongponents169.es.js} +8 -8
  62. package/dist/{kongponents220.cjs → kongponents171.cjs} +1 -1
  63. package/dist/kongponents171.es.js +4 -0
  64. package/dist/kongponents172.cjs +1 -1
  65. package/dist/kongponents172.es.js +180 -2
  66. package/dist/{kongponents175.cjs → kongponents174.cjs} +1 -1
  67. package/dist/{kongponents175.es.js → kongponents174.es.js} +3 -3
  68. package/dist/kongponents176.cjs +1 -0
  69. package/dist/kongponents176.es.js +5591 -0
  70. package/dist/kongponents182.cjs +1 -1
  71. package/dist/kongponents182.es.js +5 -20
  72. package/dist/kongponents183.cjs +1 -1
  73. package/dist/kongponents183.es.js +5 -17
  74. package/dist/kongponents184.cjs +1 -1
  75. package/dist/kongponents184.es.js +20 -213
  76. package/dist/kongponents185.cjs +1 -1
  77. package/dist/kongponents185.es.js +5 -5
  78. package/dist/kongponents186.cjs +1 -1
  79. package/dist/kongponents186.es.js +5 -2
  80. package/dist/kongponents187.cjs +1 -1
  81. package/dist/kongponents187.es.js +16 -97
  82. package/dist/kongponents188.cjs +1 -1
  83. package/dist/kongponents188.es.js +212 -18
  84. package/dist/kongponents189.cjs +1 -1
  85. package/dist/kongponents189.es.js +5 -5
  86. package/dist/kongponents190.cjs +1 -1
  87. package/dist/kongponents190.es.js +10 -5
  88. package/dist/kongponents191.cjs +1 -1
  89. package/dist/kongponents191.es.js +97 -16
  90. package/dist/kongponents192.cjs +1 -1
  91. package/dist/kongponents192.es.js +5 -10
  92. package/dist/kongponents193.cjs +1 -0
  93. package/dist/kongponents193.es.js +7 -0
  94. package/dist/kongponents194.cjs +1 -1
  95. package/dist/kongponents194.es.js +21 -5
  96. package/dist/kongponents195.cjs +1 -1
  97. package/dist/kongponents195.es.js +5 -8
  98. package/dist/kongponents196.cjs +1 -1
  99. package/dist/kongponents196.es.js +5 -60
  100. package/dist/kongponents197.cjs +1 -1
  101. package/dist/kongponents197.es.js +4 -4
  102. package/dist/kongponents198.cjs +1 -1
  103. package/dist/kongponents198.es.js +16 -20
  104. package/dist/kongponents199.cjs +1 -1
  105. package/dist/kongponents199.es.js +2 -7
  106. package/dist/kongponents200.cjs +1 -1
  107. package/dist/kongponents200.es.js +35 -4
  108. package/dist/kongponents201.cjs +2 -1
  109. package/dist/kongponents201.es.js +97 -184
  110. package/dist/kongponents202.cjs +1 -1
  111. package/dist/kongponents202.es.js +19 -5
  112. package/dist/kongponents203.cjs +1 -1
  113. package/dist/kongponents203.es.js +52 -5
  114. package/dist/kongponents205.cjs +1 -1
  115. package/dist/kongponents205.es.js +4 -4
  116. package/dist/kongponents206.cjs +1 -1
  117. package/dist/kongponents206.es.js +7 -14
  118. package/dist/kongponents207.cjs +1 -1
  119. package/dist/kongponents207.es.js +60 -5
  120. package/dist/kongponents208.cjs +1 -1
  121. package/dist/kongponents208.es.js +5 -5
  122. package/dist/kongponents209.cjs +1 -1
  123. package/dist/kongponents209.es.js +6 -4
  124. package/dist/kongponents210.cjs +1 -1
  125. package/dist/kongponents210.es.js +185 -5
  126. package/dist/kongponents211.cjs +1 -1
  127. package/dist/kongponents211.es.js +4 -4
  128. package/dist/kongponents212.cjs +1 -1
  129. package/dist/kongponents212.es.js +4 -4
  130. package/dist/kongponents213.cjs +1 -1
  131. package/dist/kongponents213.es.js +4 -4
  132. package/dist/kongponents214.cjs +1 -1
  133. package/dist/kongponents214.es.js +3 -3
  134. package/dist/kongponents215.cjs +1 -1
  135. package/dist/kongponents215.es.js +5 -36
  136. package/dist/kongponents216.cjs +1 -2
  137. package/dist/kongponents216.es.js +5 -98
  138. package/dist/kongponents217.cjs +1 -1
  139. package/dist/kongponents217.es.js +5 -52
  140. package/dist/kongponents218.cjs +1 -1
  141. package/dist/kongponents218.es.js +15 -5
  142. package/dist/kongponents219.cjs +1 -1
  143. package/dist/kongponents219.es.js +91 -31
  144. package/dist/kongponents221.cjs +1 -1
  145. package/dist/kongponents221.es.js +233 -169
  146. package/dist/kongponents223.cjs +1 -0
  147. package/dist/kongponents223.es.js +57 -0
  148. package/dist/kongponents225.cjs +1 -0
  149. package/dist/kongponents225.es.js +33 -0
  150. package/dist/kongponents226.cjs +1 -1
  151. package/dist/kongponents226.es.js +81 -42
  152. package/dist/kongponents228.cjs +1 -1
  153. package/dist/kongponents228.es.js +41 -30
  154. package/dist/kongponents23.cjs +1 -1
  155. package/dist/kongponents23.es.js +1 -1
  156. package/dist/kongponents230.cjs +1 -1
  157. package/dist/kongponents230.es.js +1 -22
  158. package/dist/kongponents231.cjs +1 -0
  159. package/dist/kongponents231.es.js +8 -0
  160. package/dist/kongponents232.cjs +1 -1
  161. package/dist/kongponents232.es.js +172 -38
  162. package/dist/kongponents234.cjs +1 -1
  163. package/dist/kongponents234.es.js +59 -36
  164. package/dist/kongponents236.cjs +1 -1
  165. package/dist/kongponents236.es.js +71 -166
  166. package/dist/kongponents238.cjs +1 -1
  167. package/dist/kongponents238.es.js +37 -51
  168. package/dist/kongponents242.cjs +1 -1
  169. package/dist/kongponents242.es.js +5 -246
  170. package/dist/{kongponents298.cjs → kongponents243.cjs} +1 -1
  171. package/dist/{kongponents298.es.js → kongponents243.es.js} +3 -3
  172. package/dist/kongponents244.cjs +1 -1
  173. package/dist/kongponents244.es.js +4 -64
  174. package/dist/{kongponents300.cjs → kongponents245.cjs} +1 -1
  175. package/dist/{kongponents300.es.js → kongponents245.es.js} +1 -1
  176. package/dist/kongponents246.cjs +1 -1
  177. package/dist/kongponents246.es.js +4 -19
  178. package/dist/kongponents247.cjs +1 -1
  179. package/dist/kongponents247.es.js +9 -5
  180. package/dist/kongponents248.cjs +1 -1
  181. package/dist/kongponents248.es.js +5 -96
  182. package/dist/kongponents249.cjs +1 -1
  183. package/dist/kongponents249.es.js +3 -171
  184. package/dist/kongponents25.cjs +1 -1
  185. package/dist/kongponents25.es.js +7 -7
  186. package/dist/kongponents250.cjs +1 -1
  187. package/dist/kongponents250.es.js +17 -5
  188. package/dist/kongponents251.cjs +1 -1
  189. package/dist/kongponents251.es.js +3 -6
  190. package/dist/kongponents252.cjs +1 -1
  191. package/dist/kongponents252.es.js +8 -5
  192. package/dist/kongponents253.cjs +1 -1
  193. package/dist/kongponents253.es.js +7 -5
  194. package/dist/kongponents254.cjs +1 -1
  195. package/dist/kongponents254.es.js +3 -69
  196. package/dist/kongponents255.cjs +1 -1
  197. package/dist/kongponents255.es.js +2 -2
  198. package/dist/kongponents256.cjs +1 -1
  199. package/dist/kongponents256.es.js +5 -8
  200. package/dist/kongponents257.cjs +1 -1
  201. package/dist/kongponents257.es.js +9 -6
  202. package/dist/kongponents258.cjs +1 -1
  203. package/dist/kongponents258.es.js +4 -7
  204. package/dist/kongponents259.cjs +1 -1
  205. package/dist/kongponents259.es.js +4 -5
  206. package/dist/kongponents260.cjs +1 -1
  207. package/dist/kongponents260.es.js +3 -10
  208. package/dist/kongponents261.cjs +1 -1
  209. package/dist/kongponents261.es.js +3 -8
  210. package/dist/kongponents262.cjs +1 -1
  211. package/dist/kongponents262.es.js +7 -601
  212. package/dist/kongponents263.cjs +1 -1
  213. package/dist/kongponents263.es.js +7 -71
  214. package/dist/kongponents264.cjs +1 -1
  215. package/dist/kongponents264.es.js +5 -5
  216. package/dist/kongponents265.cjs +1 -1
  217. package/dist/kongponents265.es.js +9 -19
  218. package/dist/kongponents266.cjs +1 -1
  219. package/dist/kongponents266.es.js +5 -4
  220. package/dist/kongponents267.cjs +1 -1
  221. package/dist/kongponents267.es.js +8 -17
  222. package/dist/kongponents268.cjs +1 -1
  223. package/dist/kongponents268.es.js +6 -7
  224. package/dist/kongponents269.cjs +1 -1
  225. package/dist/kongponents269.es.js +17 -5
  226. package/dist/kongponents27.cjs +1 -1
  227. package/dist/kongponents27.es.js +2 -2
  228. package/dist/kongponents270.cjs +1 -1
  229. package/dist/kongponents270.es.js +11 -8
  230. package/dist/kongponents271.cjs +1 -1
  231. package/dist/kongponents271.es.js +6 -7
  232. package/dist/kongponents272.cjs +1 -1
  233. package/dist/kongponents272.es.js +12 -7
  234. package/dist/kongponents273.cjs +1 -1
  235. package/dist/kongponents273.es.js +9 -7
  236. package/dist/kongponents274.cjs +1 -1
  237. package/dist/kongponents274.es.js +5 -7
  238. package/dist/kongponents275.cjs +1 -1
  239. package/dist/kongponents275.es.js +8 -124
  240. package/dist/kongponents276.cjs +1 -2
  241. package/dist/kongponents276.es.js +14 -47
  242. package/dist/kongponents277.cjs +1 -1
  243. package/dist/kongponents277.es.js +17 -7
  244. package/dist/kongponents278.cjs +1 -1
  245. package/dist/kongponents278.es.js +6 -57
  246. package/dist/kongponents279.cjs +1 -1
  247. package/dist/kongponents279.es.js +11 -65
  248. package/dist/kongponents280.cjs +1 -1
  249. package/dist/kongponents280.es.js +6 -4
  250. package/dist/kongponents281.cjs +1 -1
  251. package/dist/kongponents281.es.js +8 -4
  252. package/dist/kongponents282.cjs +1 -1
  253. package/dist/kongponents282.es.js +6 -87
  254. package/dist/kongponents283.cjs +1 -0
  255. package/dist/kongponents283.es.js +9 -0
  256. package/dist/kongponents284.cjs +1 -1
  257. package/dist/kongponents284.es.js +10 -45
  258. package/dist/kongponents285.cjs +1 -0
  259. package/dist/kongponents285.es.js +10 -0
  260. package/dist/kongponents286.cjs +1 -1
  261. package/dist/kongponents286.es.js +3 -5
  262. package/dist/kongponents287.cjs +1 -1
  263. package/dist/kongponents287.es.js +6 -55
  264. package/dist/kongponents288.cjs +1 -0
  265. package/dist/kongponents288.es.js +18 -0
  266. package/dist/kongponents289.cjs +1 -1
  267. package/dist/kongponents289.es.js +174 -75
  268. package/dist/kongponents291.cjs +1 -1
  269. package/dist/kongponents291.es.js +22 -39
  270. package/dist/kongponents293.cjs +1 -1
  271. package/dist/kongponents293.es.js +48 -5
  272. package/dist/kongponents295.cjs +1 -1
  273. package/dist/kongponents295.es.js +34 -5
  274. package/dist/kongponents297.cjs +1 -1
  275. package/dist/kongponents297.es.js +23 -5
  276. package/dist/kongponents299.cjs +1 -1
  277. package/dist/kongponents299.es.js +44 -4
  278. package/dist/kongponents30.cjs +1 -1
  279. package/dist/kongponents30.es.js +1 -1
  280. package/dist/kongponents301.cjs +1 -1
  281. package/dist/kongponents301.es.js +41 -6
  282. package/dist/kongponents303.cjs +1 -1
  283. package/dist/kongponents303.es.js +55 -6
  284. package/dist/kongponents305.cjs +1 -1
  285. package/dist/kongponents305.es.js +5 -17
  286. package/dist/kongponents306.cjs +1 -1
  287. package/dist/kongponents306.es.js +121 -4
  288. package/dist/kongponents308.cjs +1 -1
  289. package/dist/kongponents308.es.js +5 -7
  290. package/dist/kongponents309.cjs +1 -1
  291. package/dist/kongponents309.es.js +7 -3
  292. package/dist/kongponents310.cjs +1 -1
  293. package/dist/kongponents310.es.js +6 -2
  294. package/dist/kongponents311.cjs +1 -1
  295. package/dist/kongponents311.es.js +9 -6
  296. package/dist/kongponents312.cjs +1 -1
  297. package/dist/kongponents312.es.js +5 -9
  298. package/dist/kongponents313.cjs +1 -1
  299. package/dist/kongponents313.es.js +9 -4
  300. package/dist/kongponents314.cjs +1 -1
  301. package/dist/kongponents314.es.js +15 -4
  302. package/dist/kongponents315.cjs +1 -1
  303. package/dist/kongponents315.es.js +3 -3
  304. package/dist/kongponents316.cjs +1 -1
  305. package/dist/kongponents316.es.js +7 -3
  306. package/dist/kongponents317.cjs +1 -1
  307. package/dist/kongponents317.es.js +3 -8
  308. package/dist/kongponents318.cjs +1 -1
  309. package/dist/kongponents318.es.js +10 -6
  310. package/dist/kongponents319.cjs +1 -1
  311. package/dist/kongponents319.es.js +8 -5
  312. package/dist/kongponents32.cjs +1 -1
  313. package/dist/kongponents32.es.js +4 -4
  314. package/dist/kongponents320.cjs +1 -1
  315. package/dist/kongponents320.es.js +5 -9
  316. package/dist/kongponents321.cjs +1 -1
  317. package/dist/kongponents321.es.js +2 -6
  318. package/dist/kongponents322.cjs +1 -1
  319. package/dist/kongponents322.es.js +10 -6
  320. package/dist/kongponents323.cjs +1 -1
  321. package/dist/kongponents323.es.js +4 -6
  322. package/dist/kongponents324.cjs +1 -1
  323. package/dist/kongponents324.es.js +3 -18
  324. package/dist/kongponents325.cjs +1 -1
  325. package/dist/kongponents325.es.js +26 -12
  326. package/dist/kongponents326.cjs +1 -1
  327. package/dist/kongponents326.es.js +4 -7
  328. package/dist/kongponents327.cjs +1 -1
  329. package/dist/kongponents327.es.js +4 -13
  330. package/dist/kongponents328.cjs +1 -1
  331. package/dist/kongponents328.es.js +4 -10
  332. package/dist/kongponents329.cjs +1 -1
  333. package/dist/kongponents329.es.js +4 -6
  334. package/dist/kongponents330.cjs +1 -1
  335. package/dist/kongponents330.es.js +4 -9
  336. package/dist/kongponents331.cjs +1 -1
  337. package/dist/kongponents331.es.js +14 -15
  338. package/dist/kongponents332.cjs +1 -1
  339. package/dist/kongponents332.es.js +5 -17
  340. package/dist/kongponents333.cjs +1 -1
  341. package/dist/kongponents333.es.js +29 -5
  342. package/dist/kongponents334.cjs +1 -1
  343. package/dist/kongponents334.es.js +25 -9
  344. package/dist/kongponents335.cjs +1 -1
  345. package/dist/kongponents335.es.js +15 -6
  346. package/dist/kongponents336.cjs +1 -1
  347. package/dist/kongponents336.es.js +8 -6
  348. package/dist/kongponents337.cjs +1 -1
  349. package/dist/kongponents337.es.js +4 -5
  350. package/dist/kongponents338.cjs +1 -1
  351. package/dist/kongponents338.es.js +13 -6
  352. package/dist/kongponents339.cjs +1 -1
  353. package/dist/kongponents339.es.js +8 -9
  354. package/dist/kongponents34.cjs +1 -1
  355. package/dist/kongponents34.es.js +1 -1
  356. package/dist/kongponents340.cjs +1 -1
  357. package/dist/kongponents340.es.js +2 -7
  358. package/dist/kongponents341.cjs +1 -1
  359. package/dist/kongponents341.es.js +5 -3
  360. package/dist/kongponents342.cjs +1 -1
  361. package/dist/kongponents342.es.js +5 -5
  362. package/dist/kongponents343.cjs +1 -1
  363. package/dist/kongponents343.es.js +7 -15
  364. package/dist/kongponents344.cjs +1 -0
  365. package/dist/kongponents344.es.js +8 -0
  366. package/dist/kongponents345.cjs +1 -1
  367. package/dist/kongponents345.es.js +11 -121
  368. package/dist/kongponents346.cjs +1 -0
  369. package/dist/kongponents346.es.js +8 -0
  370. package/dist/kongponents347.cjs +1 -1
  371. package/dist/kongponents347.es.js +4 -71
  372. package/dist/kongponents348.cjs +1 -1
  373. package/dist/kongponents348.es.js +5 -2
  374. package/dist/kongponents349.cjs +1 -1
  375. package/dist/kongponents349.es.js +5 -12
  376. package/dist/kongponents35.cjs +1 -1
  377. package/dist/kongponents35.es.js +2 -2
  378. package/dist/kongponents350.cjs +1 -1
  379. package/dist/kongponents350.es.js +8 -23
  380. package/dist/kongponents351.cjs +1 -1
  381. package/dist/kongponents351.es.js +6 -21
  382. package/dist/kongponents352.cjs +1 -1
  383. package/dist/kongponents352.es.js +10 -21
  384. package/dist/kongponents353.cjs +1 -1
  385. package/dist/kongponents353.es.js +6 -614
  386. package/dist/kongponents354.cjs +1 -1
  387. package/dist/kongponents354.es.js +21 -80
  388. package/dist/kongponents355.cjs +1 -1
  389. package/dist/kongponents355.es.js +6 -14
  390. package/dist/kongponents356.cjs +1 -1
  391. package/dist/kongponents356.es.js +6 -26
  392. package/dist/kongponents357.cjs +1 -1
  393. package/dist/kongponents357.es.js +6 -16
  394. package/dist/kongponents358.cjs +1 -1
  395. package/dist/kongponents358.es.js +8 -14
  396. package/dist/kongponents359.cjs +1 -1
  397. package/dist/kongponents359.es.js +8 -16
  398. package/dist/kongponents36.cjs +1 -1
  399. package/dist/kongponents36.es.js +2 -2
  400. package/dist/kongponents360.cjs +1 -1
  401. package/dist/kongponents360.es.js +6 -14
  402. package/dist/kongponents361.cjs +1 -1
  403. package/dist/kongponents361.es.js +7 -23
  404. package/dist/kongponents362.cjs +1 -1
  405. package/dist/kongponents362.es.js +4 -17
  406. package/dist/kongponents363.cjs +1 -1
  407. package/dist/kongponents363.es.js +10 -2
  408. package/dist/kongponents364.cjs +1 -1
  409. package/dist/kongponents364.es.js +8 -17
  410. package/dist/kongponents365.cjs +1 -1
  411. package/dist/kongponents365.es.js +598 -61
  412. package/dist/kongponents366.cjs +1 -1
  413. package/dist/kongponents366.es.js +71 -5
  414. package/dist/kongponents367.cjs +1 -1
  415. package/dist/kongponents367.es.js +5 -2
  416. package/dist/kongponents368.cjs +1 -1
  417. package/dist/kongponents368.es.js +20 -2
  418. package/dist/kongponents369.cjs +1 -1
  419. package/dist/kongponents369.es.js +4 -10
  420. package/dist/kongponents37.cjs +1 -1
  421. package/dist/kongponents37.es.js +2 -2
  422. package/dist/kongponents370.cjs +1 -1
  423. package/dist/kongponents370.es.js +18 -11
  424. package/dist/kongponents371.cjs +1 -1
  425. package/dist/kongponents371.es.js +7 -12
  426. package/dist/kongponents372.cjs +1 -1
  427. package/dist/kongponents372.es.js +5 -10
  428. package/dist/kongponents373.cjs +1 -1
  429. package/dist/kongponents373.es.js +8 -18
  430. package/dist/kongponents374.cjs +1 -1
  431. package/dist/kongponents374.es.js +7 -5
  432. package/dist/kongponents375.cjs +1 -1
  433. package/dist/kongponents375.es.js +8 -54
  434. package/dist/kongponents376.cjs +1 -1
  435. package/dist/kongponents376.es.js +8 -2
  436. package/dist/kongponents377.cjs +1 -1
  437. package/dist/kongponents377.es.js +7 -8
  438. package/dist/kongponents378.cjs +1 -1
  439. package/dist/kongponents378.es.js +124 -4
  440. package/dist/kongponents379.cjs +2 -1
  441. package/dist/kongponents379.es.js +47 -12
  442. package/dist/kongponents38.cjs +1 -1
  443. package/dist/kongponents38.es.js +2 -2
  444. package/dist/kongponents380.cjs +1 -1
  445. package/dist/kongponents380.es.js +7 -14
  446. package/dist/kongponents381.cjs +1 -1
  447. package/dist/kongponents381.es.js +57 -4
  448. package/dist/kongponents382.cjs +1 -1
  449. package/dist/kongponents382.es.js +65 -13
  450. package/dist/kongponents383.cjs +1 -1
  451. package/dist/kongponents383.es.js +4 -9
  452. package/dist/kongponents384.cjs +1 -1
  453. package/dist/kongponents384.es.js +4 -53
  454. package/dist/kongponents385.cjs +1 -1
  455. package/dist/kongponents385.es.js +20 -56
  456. package/dist/kongponents386.cjs +1 -1
  457. package/dist/kongponents386.es.js +5 -59
  458. package/dist/kongponents387.cjs +1 -1
  459. package/dist/kongponents387.es.js +95 -31
  460. package/dist/kongponents388.cjs +1 -1
  461. package/dist/kongponents388.es.js +172 -31
  462. package/dist/kongponents389.cjs +1 -1
  463. package/dist/kongponents389.es.js +5 -72
  464. package/dist/kongponents39.cjs +1 -1
  465. package/dist/kongponents39.es.js +2 -2
  466. package/dist/kongponents390.cjs +1 -1
  467. package/dist/kongponents390.es.js +7 -72
  468. package/dist/kongponents391.cjs +1 -1
  469. package/dist/kongponents391.es.js +5 -78
  470. package/dist/kongponents392.cjs +1 -1
  471. package/dist/kongponents392.es.js +5 -78
  472. package/dist/kongponents393.cjs +1 -1
  473. package/dist/kongponents393.es.js +69 -47
  474. package/dist/kongponents394.cjs +1 -1
  475. package/dist/kongponents394.es.js +2 -48
  476. package/dist/kongponents395.cjs +1 -1
  477. package/dist/kongponents395.es.js +20 -47
  478. package/dist/kongponents396.cjs +1 -1
  479. package/dist/kongponents396.es.js +93 -47
  480. package/dist/kongponents399.cjs +1 -1
  481. package/dist/kongponents399.es.js +7 -92
  482. package/dist/kongponents40.cjs +1 -1
  483. package/dist/kongponents40.es.js +2 -2
  484. package/dist/kongponents400.cjs +1 -1
  485. package/dist/kongponents400.es.js +17 -90
  486. package/dist/kongponents401.cjs +1 -1
  487. package/dist/kongponents401.es.js +5 -58
  488. package/dist/kongponents402.cjs +1 -1
  489. package/dist/kongponents402.es.js +5 -58
  490. package/dist/kongponents403.cjs +1 -1
  491. package/dist/kongponents403.es.js +4 -58
  492. package/dist/kongponents404.cjs +1 -1
  493. package/dist/kongponents404.es.js +4 -47
  494. package/dist/kongponents405.cjs +1 -1
  495. package/dist/kongponents405.es.js +14 -45
  496. package/dist/kongponents406.cjs +1 -1
  497. package/dist/kongponents406.es.js +7 -47
  498. package/dist/kongponents407.cjs +1 -1
  499. package/dist/kongponents407.es.js +8 -47
  500. package/dist/kongponents408.cjs +1 -1
  501. package/dist/kongponents408.es.js +11 -46
  502. package/dist/kongponents409.cjs +1 -1
  503. package/dist/kongponents409.es.js +5 -46
  504. package/dist/kongponents41.cjs +1 -1
  505. package/dist/kongponents41.es.js +2 -2
  506. package/dist/kongponents410.cjs +1 -1
  507. package/dist/kongponents410.es.js +4 -34
  508. package/dist/kongponents411.cjs +1 -1
  509. package/dist/kongponents411.es.js +4 -43
  510. package/dist/kongponents412.cjs +1 -1
  511. package/dist/kongponents412.es.js +36 -41
  512. package/dist/kongponents413.cjs +1 -1
  513. package/dist/kongponents413.es.js +42 -32
  514. package/dist/kongponents414.cjs +1 -1
  515. package/dist/kongponents414.es.js +32 -31
  516. package/dist/kongponents415.cjs +1 -1
  517. package/dist/kongponents415.es.js +3 -94
  518. package/dist/kongponents416.cjs +1 -0
  519. package/dist/kongponents416.es.js +20 -0
  520. package/dist/kongponents417.cjs +1 -1
  521. package/dist/kongponents417.es.js +5 -7
  522. package/dist/kongponents418.cjs +1 -1
  523. package/dist/kongponents418.es.js +10 -5
  524. package/dist/kongponents419.cjs +1 -1
  525. package/dist/kongponents419.es.js +11 -9
  526. package/dist/kongponents42.cjs +1 -1
  527. package/dist/kongponents42.es.js +2 -2
  528. package/dist/kongponents420.cjs +1 -1
  529. package/dist/kongponents420.es.js +12 -5
  530. package/dist/kongponents421.cjs +1 -1
  531. package/dist/kongponents421.es.js +10 -9
  532. package/dist/kongponents422.cjs +1 -1
  533. package/dist/kongponents422.es.js +18 -14
  534. package/dist/kongponents423.cjs +1 -1
  535. package/dist/kongponents423.es.js +6 -3
  536. package/dist/kongponents424.cjs +1 -1
  537. package/dist/kongponents424.es.js +53 -7
  538. package/dist/kongponents425.cjs +1 -1
  539. package/dist/kongponents425.es.js +2 -3
  540. package/dist/kongponents426.cjs +1 -1
  541. package/dist/kongponents426.es.js +8 -10
  542. package/dist/kongponents427.cjs +1 -1
  543. package/dist/kongponents427.es.js +4 -7
  544. package/dist/kongponents428.cjs +1 -1
  545. package/dist/kongponents428.es.js +13 -5
  546. package/dist/kongponents429.cjs +1 -1
  547. package/dist/kongponents429.es.js +15 -2
  548. package/dist/kongponents43.cjs +1 -1
  549. package/dist/kongponents43.es.js +3 -3
  550. package/dist/kongponents430.cjs +1 -1
  551. package/dist/kongponents430.es.js +3 -12
  552. package/dist/kongponents431.cjs +1 -1
  553. package/dist/kongponents431.es.js +12 -4
  554. package/dist/kongponents432.cjs +1 -1
  555. package/dist/kongponents432.es.js +10 -3
  556. package/dist/kongponents433.cjs +1 -1
  557. package/dist/kongponents433.es.js +52 -25
  558. package/dist/kongponents434.cjs +1 -1
  559. package/dist/kongponents434.es.js +57 -4
  560. package/dist/kongponents435.cjs +1 -1
  561. package/dist/kongponents435.es.js +59 -4
  562. package/dist/kongponents436.cjs +1 -1
  563. package/dist/kongponents436.es.js +33 -4
  564. package/dist/kongponents437.cjs +1 -1
  565. package/dist/kongponents437.es.js +31 -4
  566. package/dist/kongponents438.cjs +1 -1
  567. package/dist/kongponents438.es.js +72 -4
  568. package/dist/kongponents439.cjs +1 -1
  569. package/dist/kongponents439.es.js +70 -13
  570. package/dist/kongponents44.cjs +1 -1
  571. package/dist/kongponents44.es.js +2 -2
  572. package/dist/kongponents440.cjs +1 -1
  573. package/dist/kongponents440.es.js +78 -6
  574. package/dist/kongponents441.cjs +1 -1
  575. package/dist/kongponents441.es.js +76 -28
  576. package/dist/kongponents442.cjs +1 -1
  577. package/dist/kongponents442.es.js +46 -25
  578. package/dist/kongponents443.cjs +1 -1
  579. package/dist/kongponents443.es.js +48 -16
  580. package/dist/kongponents444.cjs +1 -1
  581. package/dist/kongponents444.es.js +46 -9
  582. package/dist/kongponents445.cjs +1 -1
  583. package/dist/kongponents445.es.js +48 -5
  584. package/dist/kongponents446.cjs +1 -1
  585. package/dist/kongponents446.es.js +80 -14
  586. package/dist/kongponents447.cjs +1 -1
  587. package/dist/kongponents447.es.js +92 -9
  588. package/dist/kongponents448.cjs +1 -1
  589. package/dist/kongponents448.es.js +92 -3
  590. package/dist/kongponents449.cjs +1 -1
  591. package/dist/kongponents449.es.js +91 -6
  592. package/dist/kongponents45.cjs +1 -1
  593. package/dist/kongponents45.es.js +2 -2
  594. package/dist/kongponents450.cjs +1 -1
  595. package/dist/kongponents450.es.js +58 -6
  596. package/dist/kongponents451.cjs +1 -1
  597. package/dist/kongponents451.es.js +58 -8
  598. package/dist/kongponents452.cjs +1 -1
  599. package/dist/kongponents452.es.js +58 -6
  600. package/dist/kongponents453.cjs +1 -1
  601. package/dist/kongponents453.es.js +47 -11
  602. package/dist/kongponents454.cjs +1 -1
  603. package/dist/kongponents454.es.js +46 -6
  604. package/dist/kongponents455.cjs +1 -1
  605. package/dist/kongponents455.es.js +47 -5
  606. package/dist/kongponents456.cjs +1 -1
  607. package/dist/kongponents456.es.js +47 -5
  608. package/dist/kongponents457.cjs +1 -1
  609. package/dist/kongponents457.es.js +46 -6
  610. package/dist/kongponents458.cjs +1 -1
  611. package/dist/kongponents458.es.js +46 -8
  612. package/dist/kongponents459.cjs +1 -1
  613. package/dist/kongponents459.es.js +34 -7
  614. package/dist/kongponents460.cjs +1 -1
  615. package/dist/kongponents460.es.js +43 -10
  616. package/dist/kongponents461.cjs +1 -1
  617. package/dist/kongponents461.es.js +43 -7
  618. package/dist/kongponents462.cjs +1 -1
  619. package/dist/kongponents462.es.js +32 -21
  620. package/dist/kongponents463.cjs +1 -1
  621. package/dist/kongponents463.es.js +33 -7
  622. package/dist/kongponents464.cjs +1 -1
  623. package/dist/kongponents464.es.js +71 -6
  624. package/dist/kongponents465.cjs +1 -1
  625. package/dist/kongponents465.es.js +2 -9
  626. package/dist/kongponents466.cjs +1 -1
  627. package/dist/kongponents466.es.js +12 -6
  628. package/dist/kongponents467.cjs +1 -1
  629. package/dist/kongponents467.es.js +23 -2
  630. package/dist/kongponents468.cjs +1 -1
  631. package/dist/kongponents468.es.js +22 -2
  632. package/dist/kongponents469.cjs +1 -1
  633. package/dist/kongponents469.es.js +16 -14
  634. package/dist/kongponents47.cjs +1 -1
  635. package/dist/kongponents47.es.js +2 -2
  636. package/dist/kongponents470.cjs +1 -1
  637. package/dist/kongponents470.es.js +615 -2
  638. package/dist/kongponents471.cjs +1 -1
  639. package/dist/kongponents471.es.js +79 -20
  640. package/dist/kongponents472.cjs +1 -1
  641. package/dist/kongponents472.es.js +15 -2
  642. package/dist/kongponents473.cjs +1 -1
  643. package/dist/kongponents473.es.js +26 -15
  644. package/dist/kongponents474.cjs +1 -1
  645. package/dist/kongponents474.es.js +17 -2
  646. package/dist/kongponents475.cjs +1 -1
  647. package/dist/kongponents475.es.js +12 -20
  648. package/dist/kongponents476.cjs +1 -1
  649. package/dist/kongponents476.es.js +16 -22
  650. package/dist/kongponents477.cjs +1 -1
  651. package/dist/kongponents477.es.js +12 -23
  652. package/dist/kongponents478.cjs +1 -1
  653. package/dist/kongponents478.es.js +23 -22
  654. package/dist/kongponents479.cjs +1 -1
  655. package/dist/kongponents479.es.js +15 -29
  656. package/dist/kongponents48.cjs +1 -1
  657. package/dist/kongponents48.es.js +2 -2
  658. package/dist/kongponents480.cjs +1 -1
  659. package/dist/kongponents480.es.js +2 -16
  660. package/dist/kongponents481.cjs +1 -1
  661. package/dist/kongponents481.es.js +16 -64
  662. package/dist/kongponents482.cjs +1 -1
  663. package/dist/kongponents482.es.js +65 -2
  664. package/dist/kongponents483.cjs +1 -1
  665. package/dist/kongponents483.es.js +5 -2
  666. package/dist/kongponents484.es.js +2 -2
  667. package/dist/kongponents485.cjs +1 -1
  668. package/dist/kongponents485.es.js +2 -2
  669. package/dist/kongponents486.cjs +1 -1
  670. package/dist/kongponents486.es.js +4 -2
  671. package/dist/kongponents487.cjs +1 -1
  672. package/dist/kongponents487.es.js +3 -29
  673. package/dist/kongponents488.cjs +1 -1
  674. package/dist/kongponents488.es.js +10 -2
  675. package/dist/kongponents489.cjs +1 -1
  676. package/dist/kongponents489.es.js +5 -3
  677. package/dist/kongponents49.cjs +1 -1
  678. package/dist/kongponents49.es.js +2 -2
  679. package/dist/kongponents490.cjs +1 -1
  680. package/dist/kongponents490.es.js +4 -7
  681. package/dist/kongponents491.cjs +1 -1
  682. package/dist/kongponents491.es.js +5 -10
  683. package/dist/kongponents492.cjs +1 -1
  684. package/dist/kongponents492.es.js +3 -14
  685. package/dist/kongponents493.cjs +1 -1
  686. package/dist/kongponents493.es.js +4 -13
  687. package/dist/kongponents494.cjs +1 -1
  688. package/dist/kongponents494.es.js +5 -67
  689. package/dist/kongponents495.cjs +1 -1
  690. package/dist/kongponents495.es.js +5 -31
  691. package/dist/kongponents496.cjs +1 -1
  692. package/dist/kongponents496.es.js +11 -11
  693. package/dist/kongponents497.cjs +1 -1
  694. package/dist/kongponents497.es.js +7 -121
  695. package/dist/kongponents498.cjs +1 -1
  696. package/dist/kongponents498.es.js +7 -86
  697. package/dist/kongponents499.cjs +1 -1
  698. package/dist/kongponents499.es.js +8 -25
  699. package/dist/kongponents50.cjs +1 -1
  700. package/dist/kongponents50.es.js +2 -2
  701. package/dist/kongponents500.cjs +1 -1
  702. package/dist/kongponents500.es.js +10 -96
  703. package/dist/kongponents501.cjs +1 -1
  704. package/dist/kongponents501.es.js +14 -47
  705. package/dist/kongponents502.cjs +1 -1
  706. package/dist/kongponents502.es.js +13 -9
  707. package/dist/kongponents503.cjs +1 -1
  708. package/dist/kongponents503.es.js +67 -10
  709. package/dist/kongponents504.cjs +1 -1
  710. package/dist/kongponents504.es.js +31 -14
  711. package/dist/kongponents505.cjs +1 -1
  712. package/dist/kongponents505.es.js +11 -11
  713. package/dist/kongponents506.cjs +1 -1
  714. package/dist/kongponents506.es.js +121 -6
  715. package/dist/kongponents507.cjs +1 -1
  716. package/dist/kongponents507.es.js +86 -6
  717. package/dist/kongponents508.cjs +1 -1
  718. package/dist/kongponents508.es.js +5 -10
  719. package/dist/kongponents509.cjs +1 -1
  720. package/dist/kongponents509.es.js +5 -7
  721. package/dist/kongponents51.cjs +1 -1
  722. package/dist/kongponents51.es.js +2 -2
  723. package/dist/kongponents510.cjs +1 -1
  724. package/dist/kongponents510.es.js +5 -6
  725. package/dist/kongponents511.cjs +1 -1
  726. package/dist/kongponents511.es.js +10 -5
  727. package/dist/kongponents512.cjs +1 -1
  728. package/dist/kongponents512.es.js +6 -5
  729. package/dist/kongponents513.cjs +1 -1
  730. package/dist/kongponents513.es.js +6 -17
  731. package/dist/kongponents514.cjs +1 -1
  732. package/dist/kongponents514.es.js +25 -5
  733. package/dist/kongponents515.cjs +1 -1
  734. package/dist/kongponents515.es.js +96 -4
  735. package/dist/kongponents516.cjs +1 -1
  736. package/dist/kongponents516.es.js +47 -4
  737. package/dist/kongponents517.cjs +1 -1
  738. package/dist/kongponents517.es.js +9 -3
  739. package/dist/kongponents518.cjs +1 -1
  740. package/dist/kongponents518.es.js +9 -14
  741. package/dist/kongponents519.cjs +1 -1
  742. package/dist/kongponents519.es.js +13 -6
  743. package/dist/kongponents52.cjs +1 -1
  744. package/dist/kongponents52.es.js +2 -2
  745. package/dist/kongponents520.cjs +1 -1
  746. package/dist/kongponents520.es.js +11 -8
  747. package/dist/kongponents521.cjs +1 -1
  748. package/dist/kongponents521.es.js +2 -11
  749. package/dist/kongponents522.cjs +1 -1
  750. package/dist/kongponents522.es.js +2 -5
  751. package/dist/kongponents523.cjs +1 -1
  752. package/dist/kongponents523.es.js +18 -3
  753. package/dist/kongponents524.cjs +1 -1
  754. package/dist/kongponents524.es.js +2 -4
  755. package/dist/kongponents525.cjs +1 -1
  756. package/dist/kongponents525.es.js +20 -36
  757. package/dist/kongponents526.cjs +1 -1
  758. package/dist/kongponents526.es.js +2 -43
  759. package/dist/kongponents527.cjs +1 -1
  760. package/dist/kongponents527.es.js +14 -32
  761. package/dist/kongponents528.cjs +1 -1
  762. package/dist/kongponents528.es.js +2 -3
  763. package/dist/kongponents529.cjs +1 -1
  764. package/dist/kongponents529.es.js +22 -17
  765. package/dist/kongponents53.cjs +1 -1
  766. package/dist/kongponents53.es.js +2 -2
  767. package/dist/kongponents530.cjs +1 -1
  768. package/dist/kongponents530.es.js +22 -5
  769. package/dist/kongponents531.cjs +1 -1
  770. package/dist/kongponents531.es.js +26 -2
  771. package/dist/kongponents532.cjs +1 -1
  772. package/dist/kongponents532.es.js +23 -2
  773. package/dist/kongponents533.cjs +1 -1
  774. package/dist/kongponents533.es.js +32 -2
  775. package/dist/kongponents534.cjs +1 -1
  776. package/dist/kongponents534.es.js +16 -2
  777. package/dist/kongponents535.cjs +1 -1
  778. package/dist/kongponents535.es.js +66 -2
  779. package/dist/kongponents536.cjs +1 -1
  780. package/dist/kongponents536.es.js +2 -21
  781. package/dist/kongponents537.cjs +1 -1
  782. package/dist/kongponents537.es.js +2 -24
  783. package/dist/kongponents538.es.js +2 -2
  784. package/dist/kongponents539.cjs +1 -1
  785. package/dist/kongponents539.es.js +2 -2
  786. package/dist/kongponents54.cjs +1 -1
  787. package/dist/kongponents54.es.js +2 -2
  788. package/dist/kongponents540.cjs +1 -1
  789. package/dist/kongponents540.es.js +2 -27
  790. package/dist/kongponents541.cjs +1 -1
  791. package/dist/kongponents541.es.js +28 -25
  792. package/dist/kongponents542.es.js +2 -2
  793. package/dist/kongponents543.cjs +1 -1
  794. package/dist/kongponents543.es.js +4 -2
  795. package/dist/kongponents544.cjs +1 -1
  796. package/dist/kongponents544.es.js +8 -2
  797. package/dist/kongponents545.cjs +1 -1
  798. package/dist/kongponents545.es.js +3 -2
  799. package/dist/kongponents546.cjs +1 -1
  800. package/dist/kongponents546.es.js +6 -76
  801. package/dist/kongponents547.cjs +1 -1
  802. package/dist/kongponents547.es.js +14 -42
  803. package/dist/kongponents548.cjs +1 -1
  804. package/dist/kongponents548.es.js +28 -20
  805. package/dist/kongponents549.cjs +1 -1
  806. package/dist/kongponents549.es.js +15 -132
  807. package/dist/kongponents55.cjs +1 -1
  808. package/dist/kongponents55.es.js +2 -2
  809. package/dist/kongponents550.cjs +1 -1
  810. package/dist/kongponents550.es.js +11 -97
  811. package/dist/kongponents551.cjs +1 -1
  812. package/dist/kongponents551.es.js +2 -7
  813. package/dist/kongponents552.cjs +1 -1
  814. package/dist/kongponents552.es.js +2 -15
  815. package/dist/kongponents553.cjs +1 -1
  816. package/dist/kongponents553.es.js +2 -29
  817. package/dist/kongponents554.cjs +1 -1
  818. package/dist/kongponents554.es.js +2 -16
  819. package/dist/kongponents555.cjs +1 -1
  820. package/dist/kongponents555.es.js +20 -11
  821. package/dist/kongponents556.cjs +1 -1
  822. package/dist/kongponents556.es.js +23 -3
  823. package/dist/kongponents557.cjs +1 -1
  824. package/dist/kongponents557.es.js +2 -4
  825. package/dist/kongponents558.cjs +1 -1
  826. package/dist/kongponents558.es.js +2 -10
  827. package/dist/kongponents559.cjs +1 -1
  828. package/dist/kongponents559.es.js +26 -5
  829. package/dist/kongponents56.cjs +1 -1
  830. package/dist/kongponents56.es.js +2 -2
  831. package/dist/kongponents560.cjs +1 -1
  832. package/dist/kongponents560.es.js +26 -4
  833. package/dist/kongponents561.cjs +1 -1
  834. package/dist/kongponents561.es.js +2 -6
  835. package/dist/kongponents562.cjs +1 -1
  836. package/dist/kongponents562.es.js +2 -3
  837. package/dist/kongponents563.cjs +1 -1
  838. package/dist/kongponents563.es.js +2 -5
  839. package/dist/kongponents564.cjs +1 -1
  840. package/dist/kongponents564.es.js +2 -5
  841. package/dist/kongponents565.cjs +1 -1
  842. package/dist/kongponents565.es.js +2 -11
  843. package/dist/kongponents566.cjs +1 -1
  844. package/dist/kongponents566.es.js +76 -6
  845. package/dist/kongponents567.cjs +1 -1
  846. package/dist/kongponents567.es.js +42 -6
  847. package/dist/kongponents568.cjs +1 -1
  848. package/dist/kongponents568.es.js +20 -4
  849. package/dist/kongponents569.cjs +1 -1
  850. package/dist/kongponents569.es.js +133 -2
  851. package/dist/kongponents57.cjs +1 -1
  852. package/dist/kongponents57.es.js +2 -2
  853. package/dist/kongponents570.cjs +1 -1
  854. package/dist/kongponents570.es.js +98 -2
  855. package/dist/kongponents573.es.js +2 -2
  856. package/dist/kongponents574.es.js +2 -2
  857. package/dist/kongponents575.cjs +1 -1
  858. package/dist/kongponents575.es.js +2 -17
  859. package/dist/kongponents576.es.js +2 -2
  860. package/dist/kongponents577.cjs +1 -1
  861. package/dist/kongponents577.es.js +17 -2
  862. package/dist/kongponents578.cjs +1 -1
  863. package/dist/kongponents578.es.js +2 -25
  864. package/dist/kongponents579.es.js +2 -2
  865. package/dist/kongponents58.cjs +1 -1
  866. package/dist/kongponents58.es.js +2 -2
  867. package/dist/kongponents580.cjs +1 -1
  868. package/dist/kongponents580.es.js +20 -34
  869. package/dist/kongponents581.cjs +1 -1
  870. package/dist/kongponents581.es.js +2 -26
  871. package/dist/kongponents582.cjs +1 -1
  872. package/dist/kongponents582.es.js +38 -7
  873. package/dist/kongponents583.cjs +1 -1
  874. package/dist/kongponents583.es.js +26 -3
  875. package/dist/kongponents59.cjs +1 -1
  876. package/dist/kongponents59.es.js +2 -2
  877. package/dist/kongponents60.cjs +1 -1
  878. package/dist/kongponents60.es.js +2 -2
  879. package/dist/kongponents61.cjs +1 -1
  880. package/dist/kongponents61.es.js +2 -2
  881. package/dist/kongponents62.cjs +1 -1
  882. package/dist/kongponents62.es.js +4 -4
  883. package/dist/kongponents63.cjs +1 -1
  884. package/dist/kongponents63.es.js +2 -2
  885. package/dist/kongponents64.cjs +1 -1
  886. package/dist/kongponents64.es.js +2 -2
  887. package/dist/kongponents65.cjs +1 -1
  888. package/dist/kongponents65.es.js +2 -2
  889. package/dist/kongponents66.cjs +1 -1
  890. package/dist/kongponents66.es.js +2 -2
  891. package/dist/kongponents67.cjs +1 -1
  892. package/dist/kongponents67.es.js +2 -2
  893. package/dist/kongponents68.cjs +1 -1
  894. package/dist/kongponents68.es.js +2 -2
  895. package/dist/kongponents69.cjs +1 -1
  896. package/dist/kongponents69.es.js +2 -2
  897. package/dist/kongponents70.cjs +1 -1
  898. package/dist/kongponents70.es.js +2 -2
  899. package/dist/kongponents71.cjs +1 -1
  900. package/dist/kongponents71.es.js +2 -2
  901. package/dist/kongponents72.cjs +1 -1
  902. package/dist/kongponents72.es.js +2 -2
  903. package/dist/kongponents73.cjs +1 -1
  904. package/dist/kongponents73.es.js +2 -2
  905. package/dist/kongponents74.cjs +1 -1
  906. package/dist/kongponents74.es.js +2 -2
  907. package/dist/kongponents75.cjs +1 -1
  908. package/dist/kongponents75.es.js +2 -2
  909. package/dist/kongponents76.cjs +1 -1
  910. package/dist/kongponents76.es.js +2 -2
  911. package/dist/kongponents77.cjs +1 -1
  912. package/dist/kongponents77.es.js +2 -5589
  913. package/dist/kongponents78.cjs +1 -1
  914. package/dist/kongponents78.es.js +1 -1
  915. package/dist/kongponents79.cjs +1 -1
  916. package/dist/kongponents79.es.js +1 -1
  917. package/dist/kongponents80.cjs +1 -1
  918. package/dist/kongponents80.es.js +79 -2
  919. package/dist/kongponents82.cjs +1 -0
  920. package/dist/kongponents82.es.js +9 -0
  921. package/dist/kongponents83.cjs +1 -1
  922. package/dist/kongponents83.es.js +53 -7
  923. package/dist/{kongponents86.cjs → kongponents85.cjs} +1 -1
  924. package/dist/{kongponents86.es.js → kongponents85.es.js} +1 -1
  925. package/dist/{kongponents92.cjs → kongponents91.cjs} +1 -1
  926. package/dist/{kongponents92.es.js → kongponents91.es.js} +1 -1
  927. package/dist/{kongponents96.cjs → kongponents95.cjs} +1 -1
  928. package/dist/{kongponents96.es.js → kongponents95.es.js} +1 -1
  929. package/dist/{kongponents98.cjs → kongponents97.cjs} +1 -1
  930. package/dist/{kongponents98.es.js → kongponents97.es.js} +7 -7
  931. package/package.json +1 -1
  932. package/dist/kongponents133.cjs +0 -1
  933. package/dist/kongponents133.es.js +0 -212
  934. package/dist/kongponents145.cjs +0 -1
  935. package/dist/kongponents145.es.js +0 -16
  936. package/dist/kongponents164.cjs +0 -1
  937. package/dist/kongponents164.es.js +0 -35
  938. package/dist/kongponents173.cjs +0 -1
  939. package/dist/kongponents173.es.js +0 -182
  940. package/dist/kongponents204.cjs +0 -1
  941. package/dist/kongponents204.es.js +0 -7
  942. package/dist/kongponents220.es.js +0 -4
  943. package/dist/kongponents224.cjs +0 -1
  944. package/dist/kongponents224.es.js +0 -26
  945. package/dist/kongponents240.cjs +0 -1
  946. package/dist/kongponents240.es.js +0 -93
  947. package/dist/kongponents294.cjs +0 -1
  948. package/dist/kongponents294.es.js +0 -22
  949. package/dist/kongponents302.cjs +0 -1
  950. package/dist/kongponents302.es.js +0 -11
  951. package/dist/kongponents304.cjs +0 -1
  952. package/dist/kongponents304.es.js +0 -6
  953. package/dist/kongponents307.cjs +0 -1
  954. package/dist/kongponents307.es.js +0 -10
  955. package/dist/kongponents397.cjs +0 -1
  956. package/dist/kongponents397.es.js +0 -82
  957. package/dist/kongponents398.cjs +0 -1
  958. package/dist/kongponents398.es.js +0 -94
  959. package/dist/kongponents81.cjs +0 -1
  960. package/dist/kongponents81.es.js +0 -81
  961. package/dist/kongponents84.cjs +0 -1
  962. package/dist/kongponents84.es.js +0 -55
  963. /package/dist/{kongponents101.cjs → kongponents100.cjs} +0 -0
  964. /package/dist/{kongponents101.es.js → kongponents100.es.js} +0 -0
  965. /package/dist/{kongponents111.cjs → kongponents110.cjs} +0 -0
  966. /package/dist/{kongponents111.es.js → kongponents110.es.js} +0 -0
  967. /package/dist/{kongponents120.cjs → kongponents119.cjs} +0 -0
  968. /package/dist/{kongponents120.es.js → kongponents119.es.js} +0 -0
  969. /package/dist/{kongponents135.cjs → kongponents134.cjs} +0 -0
  970. /package/dist/{kongponents135.es.js → kongponents134.es.js} +0 -0
  971. /package/dist/{kongponents154.cjs → kongponents153.cjs} +0 -0
  972. /package/dist/{kongponents154.es.js → kongponents153.es.js} +0 -0
  973. /package/dist/{kongponents296.cjs → kongponents241.cjs} +0 -0
  974. /package/dist/{kongponents296.es.js → kongponents241.es.js} +0 -0
  975. /package/dist/{kongponents88.cjs → kongponents87.cjs} +0 -0
  976. /package/dist/{kongponents88.es.js → kongponents87.es.js} +0 -0
  977. /package/dist/{kongponents90.cjs → kongponents89.cjs} +0 -0
  978. /package/dist/{kongponents90.es.js → kongponents89.es.js} +0 -0
  979. /package/dist/{kongponents94.cjs → kongponents93.cjs} +0 -0
  980. /package/dist/{kongponents94.es.js → kongponents93.es.js} +0 -0
@@ -0,0 +1,219 @@
1
+ import { defineComponent as te, useSlots as oe, inject as le, computed as o, provide as ae, useId as D, ref as d, onMounted as ie, onBeforeUnmount as re, watch as ne, openBlock as h, createBlock as se, resolveDynamicComponent as ue, withKeys as ce, withModifiers as ve, withCtx as k, createElementVNode as w, renderSlot as x, createVNode as T, unref as s, createTextVNode as N, toDisplayString as U, Transition as de, withDirectives as fe, mergeProps as me, normalizeStyle as pe, createElementBlock as E, createCommentVNode as I, normalizeClass as H, vShow as ge } from "vue";
2
+ import { useFloating as he, shift as Ce, flip as ye, autoPlacement as be, autoUpdate as ke } from "@floating-ui/vue";
3
+ import we from "./kongponents38.es.js";
4
+ import { CloseIcon as xe } from "@kong/icons";
5
+ import { KUI_SPACE_60 as Te, KUI_ICON_SIZE_30 as Ee } from "./kongponents184.es.js";
6
+ import Ie from "./kongponents198.es.js";
7
+ import { useEventListener as C } from "./kongponents188.es.js";
8
+ import { normalizeSize as P } from "./kongponents189.es.js";
9
+ import { POPOVER_PARENT_ZINDEX_KEY as V } from "./kongponents199.es.js";
10
+ const Pe = ["id", "aria-labelledby", "x-placement"], Se = ["tabindex"], ze = {
11
+ key: 1,
12
+ class: "popover-header"
13
+ }, Be = ["id"], Ae = {
14
+ key: 2,
15
+ class: "popover-footer"
16
+ }, We = /* @__PURE__ */ te({
17
+ __name: "KPop",
18
+ props: {
19
+ buttonText: { default: "" },
20
+ title: { default: "" },
21
+ placement: { default: "auto" },
22
+ trigger: { default: "click" },
23
+ popoverTimeout: { default: 300 },
24
+ popoverDelay: { default: 0 },
25
+ hideCloseIcon: { type: Boolean },
26
+ hideCaret: { type: Boolean },
27
+ closeOnPopoverClick: { type: Boolean },
28
+ disabled: { type: Boolean },
29
+ width: { default: "200px" },
30
+ maxWidth: { default: "none" },
31
+ maxHeight: { default: "none" },
32
+ popoverClasses: { default: "" },
33
+ popoverElementAttributes: { default: () => ({}) },
34
+ tag: { default: "div" },
35
+ zIndex: {},
36
+ offset: { default: () => Te },
37
+ target: { default: null }
38
+ },
39
+ emits: ["open", "close", "popover-click"],
40
+ setup(e, { expose: Z, emit: W }) {
41
+ const S = W, f = oe(), K = le(V, null), O = o(() => e.zIndex ?? (K?.value != null ? K.value + 1 : 1e3));
42
+ ae(V, O);
43
+ const z = D(), $ = D(), m = d(null), u = d(null), r = d(!1), n = o(() => m.value && m.value?.children[0] ? m.value?.children[0] : null), c = d(null), l = d(null), L = () => {
44
+ r.value ? a() : y();
45
+ }, B = d(), A = () => {
46
+ B.value && B.value();
47
+ }, M = () => {
48
+ A(), n.value && u.value && (B.value = ke(n.value, u.value, X));
49
+ }, y = async () => {
50
+ if (!e.disabled) {
51
+ c.value && (clearTimeout(c.value), c.value = null);
52
+ const t = () => {
53
+ M(), r.value = !0;
54
+ };
55
+ e.trigger === "hover" && e.popoverDelay > 0 ? (l.value && clearTimeout(l.value), l.value = setTimeout(t, e.popoverDelay)) : t();
56
+ }
57
+ }, a = () => {
58
+ l.value && (clearTimeout(l.value), l.value = null), c.value = setTimeout(() => {
59
+ A(), r.value = !1;
60
+ }, e.trigger === "hover" ? e.popoverTimeout : 0);
61
+ }, R = () => {
62
+ L();
63
+ }, F = () => {
64
+ S("popover-click"), e.closeOnPopoverClick && a();
65
+ }, j = (t) => {
66
+ if (!r.value)
67
+ return;
68
+ const i = t.target, _ = m.value?.contains(i), ee = u.value?.contains(i);
69
+ _ || ee || a();
70
+ }, b = o(() => e.placement.trim().replace(/ /g, "-").replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, i) => (i ? "-" : "") + t.toLowerCase()).replace(/--+/g, "-").replace(/-+$/g, "")), { floatingStyles: q, placement: p, update: X } = he(n, u, {
71
+ ...b.value === "auto" && { middleware: [be()] },
72
+ // when placement is auto just use autoPlacement middleware
73
+ ...b.value !== "auto" && {
74
+ placement: b.value,
75
+ middleware: [
76
+ Ce(),
77
+ // Shifts the floating element to keep it in view.
78
+ ye()
79
+ // Changes the placement of the floating element to keep it in view.
80
+ ]
81
+ },
82
+ strategy: "fixed",
83
+ transform: !1
84
+ }), g = o(() => P(e.offset)), v = o(() => b.value === "auto" ? `calc(${g.value} / 2)` : void 0), Y = o(() => {
85
+ const t = v.value ? { marginLeft: v.value, marginRight: v.value } : {}, i = v.value ? { marginTop: v.value, marginBottom: v.value } : {};
86
+ return p.value.includes("top") ? {
87
+ marginBottom: g.value,
88
+ ...t
89
+ } : p.value.includes("bottom") ? {
90
+ marginTop: g.value,
91
+ ...t
92
+ } : p.value.includes("right") ? {
93
+ marginLeft: g.value,
94
+ ...i
95
+ } : p.value.includes("left") ? {
96
+ marginRight: g.value,
97
+ ...i
98
+ } : {};
99
+ }), G = o(() => ({
100
+ ...q.value,
101
+ zIndex: O.value
102
+ })), J = o(() => ({
103
+ ...Y.value,
104
+ width: P(e.width),
105
+ maxWidth: P(e.maxWidth),
106
+ maxHeight: P(e.maxHeight)
107
+ })), Q = o(() => [e.popoverClasses, { "hide-caret": e.hideCaret }]);
108
+ return Z({
109
+ hidePopover: a,
110
+ showPopover: y
111
+ }), ie(() => {
112
+ if (C(window, "mousedown", j, { capture: !0 }), n.value) {
113
+ const t = n.value.querySelector('button[data-dropdown-trigger="true"]') || n.value;
114
+ t.hasAttribute("aria-controls") || t.setAttribute("aria-controls", z);
115
+ }
116
+ e.trigger === "hover" && [u.value, n.value].forEach((t) => {
117
+ t && (C(t, "mouseenter", y), C(t, "focusin", y), C(t, "mouseleave", a), C(t, "focusout", a));
118
+ });
119
+ }), re(() => {
120
+ l.value && clearTimeout(l.value), c.value && clearTimeout(c.value), A();
121
+ }), ne(r, (t) => {
122
+ S(t ? "open" : "close");
123
+ }), (t, i) => (h(), se(ue(e.tag), {
124
+ class: "k-popover",
125
+ onKeydown: ce(ve(a, ["stop"]), ["esc"])
126
+ }, {
127
+ default: k(() => [
128
+ w("div", {
129
+ ref_key: "triggerWrapperElement",
130
+ ref: m,
131
+ class: "popover-trigger-wrapper",
132
+ onClick: R
133
+ }, [
134
+ x(t.$slots, "default", {}, () => [
135
+ T(we, {
136
+ "aria-controls": s(z),
137
+ "data-testid": "popover-button"
138
+ }, {
139
+ default: k(() => [
140
+ N(U(e.buttonText), 1)
141
+ ]),
142
+ _: 1
143
+ }, 8, ["aria-controls"])
144
+ ], !0)
145
+ ], 512),
146
+ T(Ie, {
147
+ target: e.target,
148
+ "use-teleport": !!e.target
149
+ }, {
150
+ default: k(() => [
151
+ T(de, { name: "kongponents-fade-transition" }, {
152
+ default: k(() => [
153
+ fe(w("div", me(e.popoverElementAttributes, {
154
+ id: s(z),
155
+ ref_key: "popoverElement",
156
+ ref: u,
157
+ "aria-labelledby": f.title || e.title ? s($) : void 0,
158
+ class: ["popover", Q.value],
159
+ role: "dialog",
160
+ style: G.value,
161
+ "x-placement": s(p),
162
+ onClick: F
163
+ }), [
164
+ w("div", {
165
+ class: "popover-container",
166
+ style: pe(J.value)
167
+ }, [
168
+ e.hideCloseIcon ? I("", !0) : (h(), E("button", {
169
+ key: 0,
170
+ ref: "popoverCloseButton",
171
+ "aria-label": "Close popover",
172
+ class: "popover-close-button",
173
+ tabindex: r.value ? 0 : -1,
174
+ type: "button",
175
+ onClick: a
176
+ }, [
177
+ T(s(xe), {
178
+ class: "popover-close-icon",
179
+ decorative: "",
180
+ size: `var(--kui-icon-size-30, ${s(Ee)})`
181
+ }, null, 8, ["size"])
182
+ ], 8, Se)),
183
+ f.title || e.title ? (h(), E("div", ze, [
184
+ f.title || e.title ? (h(), E("div", {
185
+ key: 0,
186
+ id: s($),
187
+ class: H(["popover-title", { "close-icon-spacing": !e.hideCloseIcon }])
188
+ }, [
189
+ x(t.$slots, "title", {}, () => [
190
+ N(U(e.title), 1)
191
+ ], !0)
192
+ ], 10, Be)) : I("", !0)
193
+ ])) : I("", !0),
194
+ w("div", {
195
+ class: H(["popover-content", { "close-icon-spacing": !e.hideCloseIcon && !(f.title || e.title) }])
196
+ }, [
197
+ x(t.$slots, "content", {}, void 0, !0)
198
+ ], 2),
199
+ f.footer ? (h(), E("div", Ae, [
200
+ x(t.$slots, "footer", {}, void 0, !0)
201
+ ])) : I("", !0)
202
+ ], 4)
203
+ ], 16, Pe), [
204
+ [ge, r.value]
205
+ ])
206
+ ]),
207
+ _: 3
208
+ })
209
+ ]),
210
+ _: 3
211
+ }, 8, ["target", "use-teleport"])
212
+ ]),
213
+ _: 3
214
+ }, 40, ["onKeydown"]));
215
+ }
216
+ });
217
+ export {
218
+ We as default
219
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("./kongponents57.cjs"),V=require("./kongponents30.cjs");;/* empty css */const B=require("@kong/icons"),C=require("./kongponents182.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},q=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,o=e.useSlots(),l=e.useAttrs(),b=e.useId(),r=e.computed(()=>l.id?String(l.id):b),d=e.computed(()=>l?.disabled!==void 0&&String(l?.disabled)!=="false"),k=()=>!!(t.label||o.default),n=()=>k()&&(!!t.description||!!o.description),s=()=>!!t.label&&(!!t.description||!!o.description),f=()=>!!o.tooltip,i=e.computed(()=>t.selectedValue===t.modelValue),u=()=>{c("change",t.selectedValue),c("update:modelValue",t.selectedValue)},p=e.computed(()=>{const a={...l};return delete a.class,a}),v=()=>({disabled:d.value,"radio-card":t.card||t.type==="card","input-error":t.error,checked:i.value,"has-description":n(),"card-horizontal":t.card&&t.cardOrientation==="horizontal","card-vertical":t.card&&t.cardOrientation!=="horizontal"}),g=e.computed(()=>t.card&&l["data-testid"]?`${l["data-testid"]}-label`:void 0);return(a,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-radio",[a.$attrs.class?a.$attrs.class:"",v()]])},[e.createElementVNode("input",e.mergeProps({id:r.value},p.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()}])},[e.createVNode(y.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},[f()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for"]),n()?(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(),"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()?(e.openBlock(),e.createElementBlock("span",E,[t.label?(e.openBlock(),e.createElementBlock("span",K,[e.createTextVNode(e.toDisplayString(t.label)+" ",1),o.tooltip?(e.openBlock(),e.createBlock(V.default,{key:0,class:"label-tooltip"},{content:e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip",{},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(B.InfoIcon),{class:"tooltip-trigger-icon",color:`var(--kui-color-text-neutral, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL)})`,tabindex:"0"},null,8,["color"])]),_:3})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),s()?(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=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("./kongponents57.cjs"),V=require("./kongponents30.cjs");;/* empty css */const B=require("@kong/icons"),C=require("./kongponents184.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},q=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,o=e.useSlots(),l=e.useAttrs(),b=e.useId(),r=e.computed(()=>l.id?String(l.id):b),d=e.computed(()=>l?.disabled!==void 0&&String(l?.disabled)!=="false"),k=()=>!!(t.label||o.default),n=()=>k()&&(!!t.description||!!o.description),s=()=>!!t.label&&(!!t.description||!!o.description),f=()=>!!o.tooltip,i=e.computed(()=>t.selectedValue===t.modelValue),u=()=>{c("change",t.selectedValue),c("update:modelValue",t.selectedValue)},p=e.computed(()=>{const a={...l};return delete a.class,a}),v=()=>({disabled:d.value,"radio-card":t.card||t.type==="card","input-error":t.error,checked:i.value,"has-description":n(),"card-horizontal":t.card&&t.cardOrientation==="horizontal","card-vertical":t.card&&t.cardOrientation!=="horizontal"}),g=e.computed(()=>t.card&&l["data-testid"]?`${l["data-testid"]}-label`:void 0);return(a,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-radio",[a.$attrs.class?a.$attrs.class:"",v()]])},[e.createElementVNode("input",e.mergeProps({id:r.value},p.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()}])},[e.createVNode(y.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},[f()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for"]),n()?(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(),"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()?(e.openBlock(),e.createElementBlock("span",E,[t.label?(e.openBlock(),e.createElementBlock("span",K,[e.createTextVNode(e.toDisplayString(t.label)+" ",1),o.tooltip?(e.openBlock(),e.createBlock(V.default,{key:0,class:"label-tooltip"},{content:e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip",{},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(B.InfoIcon),{class:"tooltip-trigger-icon",color:`var(--kui-color-text-neutral, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL)})`,tabindex:"0"},null,8,["color"])]),_:3})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),s()?(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=q;
@@ -3,7 +3,7 @@ import M from "./kongponents57.es.js";
3
3
  import X from "./kongponents30.es.js";
4
4
  /* empty css */
5
5
  import { InfoIcon as j } from "@kong/icons";
6
- import { KUI_COLOR_TEXT_NEUTRAL as F } from "./kongponents182.es.js";
6
+ import { KUI_COLOR_TEXT_NEUTRAL as F } from "./kongponents184.es.js";
7
7
  const G = ["id", "aria-checked", "checked", "disabled", "tabindex"], H = {
8
8
  key: 0,
9
9
  class: "radio-description"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),g=require("./kongponents200.cjs"),f={class:"k-segmented-control"},k=["data-testid","disabled","onClick"],y=l.defineComponent({__name:"KSegmentedControl",props:{modelValue:{},options:{},size:{default:"small"},disabled:{type:Boolean}},emits:["click","update:modelValue"],setup(a,{emit:u}){const i=t=>t.every(e=>e.value!==void 0),c=t=>{const e=[];return t.forEach(n=>e.push(n.value+"")),e},d=t=>{const e=c(t),n=new Set(e);return e.length===n.size},o=t=>t.map(e=>({label:typeof e=="string"?e:e.label||e.value+"",value:typeof e=="string"?e.toLocaleLowerCase().replace(" ","-"):e.value,disabled:typeof e=="string"?!1:e.disabled})),v=t=>{const e=typeof t[0]=="string",n=o(t),s=d(n);return e?s&&i(n):s};l.watch(()=>a.options,t=>{v(t)||g.warnInvalidProp("options","The options prop must be an array of unique strings or objects with a unique value property.")},{immediate:!0});const r=u,m=l.computed(()=>o(a.options)),p=t=>!!t.disabled||a.disabled,b=t=>{r("click",t.value),r("update:modelValue",t.value)};return(t,e)=>(l.openBlock(),l.createElementBlock("div",f,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(m.value,n=>(l.openBlock(),l.createElementBlock("button",{key:`${n.value}-option`,class:l.normalizeClass(["segmented-control-button",[a.size,{selected:a.modelValue===n.value}]]),"data-testid":`${n.value}-option`,disabled:p(n),type:"button",onClick:s=>b(n)},[l.renderSlot(t.$slots,"option-label",{option:n},()=>[l.createTextVNode(l.toDisplayString(n.label),1)],!0)],10,k))),128))]))}});exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),g=require("./kongponents208.cjs"),f={class:"k-segmented-control"},k=["data-testid","disabled","onClick"],y=l.defineComponent({__name:"KSegmentedControl",props:{modelValue:{},options:{},size:{default:"small"},disabled:{type:Boolean}},emits:["click","update:modelValue"],setup(a,{emit:u}){const i=t=>t.every(e=>e.value!==void 0),c=t=>{const e=[];return t.forEach(n=>e.push(n.value+"")),e},d=t=>{const e=c(t),n=new Set(e);return e.length===n.size},o=t=>t.map(e=>({label:typeof e=="string"?e:e.label||e.value+"",value:typeof e=="string"?e.toLocaleLowerCase().replace(" ","-"):e.value,disabled:typeof e=="string"?!1:e.disabled})),v=t=>{const e=typeof t[0]=="string",n=o(t),s=d(n);return e?s&&i(n):s};l.watch(()=>a.options,t=>{v(t)||g.warnInvalidProp("options","The options prop must be an array of unique strings or objects with a unique value property.")},{immediate:!0});const r=u,m=l.computed(()=>o(a.options)),p=t=>!!t.disabled||a.disabled,b=t=>{r("click",t.value),r("update:modelValue",t.value)};return(t,e)=>(l.openBlock(),l.createElementBlock("div",f,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(m.value,n=>(l.openBlock(),l.createElementBlock("button",{key:`${n.value}-option`,class:l.normalizeClass(["segmented-control-button",[a.size,{selected:a.modelValue===n.value}]]),"data-testid":`${n.value}-option`,disabled:p(n),type:"button",onClick:s=>b(n)},[l.renderSlot(t.$slots,"option-label",{option:n},()=>[l.createTextVNode(l.toDisplayString(n.label),1)],!0)],10,k))),128))]))}});exports.default=y;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as g, watch as y, computed as h, openBlock as n, createElementBlock as o, Fragment as k, renderList as V, normalizeClass as C, renderSlot as z, createTextVNode as q, toDisplayString as w } from "vue";
2
- import { warnInvalidProp as S } from "./kongponents200.es.js";
2
+ import { warnInvalidProp as S } from "./kongponents208.es.js";
3
3
  const I = { class: "k-segmented-control" }, $ = ["data-testid", "disabled", "onClick"], x = /* @__PURE__ */ g({
4
4
  __name: "KSegmentedControl",
5
5
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ke=require("./kongponents187.cjs"),ye=require("./kongponents57.cjs"),ge=require("./kongponents55.cjs"),we=require("./kongponents62.cjs"),Ce=require("./kongponents29.cjs"),Se=require("./kongponents202.cjs"),Ie=require("./kongponents203.cjs"),D=require("@kong/icons"),Be=require("./kongponents198.cjs"),W=require("./kongponents180.cjs"),Fe=require("./kongponents184.cjs"),$e=require("./kongponents161.cjs"),U=require("./kongponents185.cjs"),Ne=require("./kongponents182.cjs"),qe=["id"],Ee=["aria-live"],Ve={key:0,class:"select-loading","data-propagate-clicks":"false","data-testid":"select-loading"},Ae={key:1,class:"select-items-container","data-propagate-clicks":"false"},Pe={key:1,class:"dropdown-footer dropdown-footer-static"},ze={key:2,class:"select-empty","data-propagate-clicks":"false"},Ke={key:0,class:"dropdown-footer dropdown-footer-sticky"},De=e.defineComponent({inheritAttrs:!1,__name:"KSelect",props:{modelValue:{default:""},kpopAttributes:{default:()=>({})},dropdownMaxHeight:{default:"300px"},label:{default:""},labelAttributes:{default:()=>({})},width:{default:"100%"},placeholder:{default:""},items:{default:()=>[]},enableFiltering:{type:Boolean},filterFunction:{default:()=>(l=>l.items?.filter(N=>N.label?.toLowerCase().includes(l.query?.toLowerCase())))},loading:{type:Boolean},clearable:{type:Boolean},dropdownFooterText:{default:""},dropdownFooterTextPosition:{},dropdownFooterPosition:{},reuseItemTemplate:{type:Boolean},enableItemCreation:{type:Boolean},itemCreationValidator:{type:Function,default:()=>!0},error:{type:Boolean},help:{default:""}},emits:["selected","input","change","update:modelValue","query-change","item-added","item-removed","open","close"],setup(l,{emit:N}){e.useCssVars(t=>({v0a6aab70:ee.value,v44d39714:F.value,v771991ce:oe.value}));const{stripRequiredLabel:H}=ke.default(),f=N,p=e.useAttrs(),h=e.useSlots(),G=e.useId(),T=e.computed(()=>p.id?String(p.id):G),q=e.ref(!1),E=e.ref(),J=()=>!!(l.labelAttributes?.info||h["label-tooltip"]),x=e.computed(()=>p.required!==void 0&&String(p.required)!=="false"),y=e.computed(()=>p.disabled!==void 0&&String(p.disabled)!=="false"),I=e.computed(()=>p.readonly!==void 0&&String(p.readonly)!=="false"),Q={popoverTimeout:0,placement:"bottom-start",hideCaret:!0},V=()=>!!(l.dropdownFooterText||h["dropdown-footer-text"]||h["dropdown-footer"]),A=e.computed(()=>l.dropdownFooterPosition??l.dropdownFooterTextPosition??"sticky"),j=e.ref(0),Y=e.useTemplateRef("inputElement"),X=e.computed(()=>H(l.label,x.value)),g=e.ref(!1),s=e.ref(""),O=e.computed(()=>!(!s.value||r.value?.filter(t=>t.label===s.value)?.length)),Z=e.useId(),d=e.ref(null),r=e.ref([]),B=e.ref([]),w=e.ref(!1),P=e.useTemplateRef("popperElement"),k=e.useTemplateRef("selectWrapperElement"),_=e.computed({get(){return l.modelValue},set(t){const n=r.value?.filter(a=>a.value===t);n?.length?$(n[0]):t||K()}}),ee=e.computed(()=>U.normalizeSize(l.width||"100%")),F=e.ref(""),te=e.computed(()=>{const t={...p};return delete t.class,t}),le=()=>({...Q,...l.kpopAttributes,popoverClasses:`k-select-popover select-popover ${V()?`has-${A.value}-dropdown-footer`:""} ${l.kpopAttributes?.popoverClasses??""}`,width:String(F.value),maxWidth:String(F.value),disabled:y.value||I.value}),oe=e.computed(()=>U.normalizeSize(l.dropdownMaxHeight)),ae=e.computed(()=>l.placeholder||p.placeholder||"Select..."),re=e.computed(()=>!y.value&&l.clearable&&!!d.value),R=()=>!!(d.value&&(h["selected-item-template"]||l.reuseItemTemplate&&h["item-template"])),C=t=>"items"in t&&Array.isArray(t.items),z=e.computed(()=>{if(!l.enableFiltering||!s.value)return B.value;const t=l.filterFunction({query:s.value,items:r.value}),n=t===!0?r.value:t,a=new Set(n.map(u=>u.value)),c=[];for(const u of B.value)if(C(u)){const m=u.items.filter(o=>a.has(o.value));m.length>0&&c.push({label:u.label,key:u.key,items:m})}else a.has(u.value)&&c.push(u);return c}),ne=t=>{if(!l.enableFiltering)return t.preventDefault(),!1},se=t=>{l.enableItemCreation&&L(),t.preventDefault()},L=()=>{if(!l.enableItemCreation||!s.value||!O.value||!l.itemCreationValidator(s.value))return;const t=(r.value?.length||0)+1,n={label:W.sanitizeInput(s.value),value:$e.getUniqueStringId(),key:`${W.sanitizeInput(s.value).replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${t}`,custom:!0};f("item-added",n),$(n,!0),s.value=""},$=(t,n)=>{n&&(r.value?.push(t),B.value.unshift(t)),r.value?.forEach((a,c)=>{a.key===t.key?(a.selected=!0,d.value=a):a.selected?(a.selected=!1,a.custom&&(r.value?.splice(c,1),f("item-removed",a))):a.selected=!1}),g.value=!0,s.value=t.label},K=()=>{r.value?.forEach((t,n)=>{t.selected=!1,t.custom&&(r.value?.splice(n,1),f("item-removed",t))}),d.value=null,s.value="",f("input",null),f("change",null),f("update:modelValue",null)},M=e.useTemplateRef("kSelectItems"),ie=(t,n)=>{if(t.keyCode===27){n.value=!1;return}const a=k.value?.children[0];!n.value&&a&&a.click(),(t.key==="ArrowDown"||t.key==="ArrowUp")&&n.value&&M.value?.setFocus(t.key==="ArrowDown"?"down":"up")},ue=t=>{s.value!==t&&(s.value=t)},ce=()=>{w.value=!0},de=()=>{w.value=!1},fe=()=>{l.enableFiltering||Y.value?.$el?.querySelector("input")?.blur()},ve=t=>{(y.value||t?.target?.dataset.propagateClicks==="false")&&t.stopPropagation()},pe=t=>{t()},me=(t,n)=>{q.value=!1,f("close"),d.value?(g.value=!0,s.value=d.value.label):s.value="",n&&t()},be=t=>{q.value=!0,f("open"),l.enableFiltering&&(s.value=""),t()};return e.watch(_,(t,n)=>{if(t!==n){const a=r.value?.filter(c=>c.value===t);a?.length?$(a[0]):t||K()}}),e.watch(()=>l.items,(t,n)=>{if(JSON.stringify(t)===JSON.stringify(n))return;const a=JSON.parse(JSON.stringify(l.items)),c=a.some(o=>C(o)),u=[],m=[];if(c)for(const o of a)C(o)?u.push(...o.items):u.push(o);else{const o=new Map;for(const i of a)C(i)||(i.group&&(o.has(i.group)||o.set(i.group,[]),o.get(i.group).push(i)),u.push(i));const S=Array.from(o.keys()).sort((i,b)=>i.toLowerCase().localeCompare(b.toLowerCase())),v=u.filter(i=>!i.group);m.push(...v);for(const i of S)m.push({label:i,items:o.get(i)})}r.value=u,r.value?.length&&(d.value=null);for(let o=0;o<r.value?.length;o++){r.value[o].selected===void 0&&(r.value[o].selected=!1);let v=`${(r.value[o].label!=null?String(r.value[o].label):"").replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${o}`;v.includes("undefined")&&(v=`select-item-label-${o}`),r.value[o].key=v,(r.value[o].value===l.modelValue||r.value[o].selected)&&(r.value[o].selected=!0,d.value=r.value[o],w.value||(g.value=!0,s.value=d.value.label)),d.value?.value===r.value[o].value&&(r.value[o].selected=!0)}if(c){const o=[],S=[];for(const v of a)if(C(v)){const i=v.items.map(b=>r.value.find(he=>he.value===b.value)).filter(b=>b!==void 0);S.push({label:v.label,key:v.key,items:i})}else{const i=r.value.find(b=>b.value===v.value);i&&o.push(i)}m.push(...o,...S)}B.value=m,P.value&&typeof P.value.updatePopper=="function"&&e.nextTick(()=>{P.value.updatePopper()})},{deep:!0,immediate:!0}),e.watch(s,t=>{g.value&&t||(f("query-change",t),g.value=!1)}),e.watch(d,(t,n)=>{t&&t!==n&&(f("selected",t),f("input",t.value),f("change",t),f("update:modelValue",t.value))},{deep:!0}),e.onMounted(()=>{k.value&&(E.value=Be.ResizeObserverHelper.create(()=>{F.value=`${k.value?.offsetWidth}px`}),E.value.observe(k.value)),Fe.useEventListener(document,"keydown",t=>{!l.enableFiltering&&document.activeElement?.tagName==="BODY"&&!w.value&&q.value&&(t.key==="ArrowDown"||t.key==="ArrowUp")&&(t.preventDefault(),M.value?.setFocus(t.key==="ArrowDown"?"down":"up"))})}),e.onBeforeUnmount(()=>{k.value&&E.value?.unobserve(k.value)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-select",[t.$attrs.class]])},[l.label||t.$slots.label?(e.openBlock(),e.createBlock(ye.default,e.mergeProps({key:0,"data-testid":"select-label"},l.labelAttributes,{for:T.value,required:x.value}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(X.value),1)],!0)]),_:2},[J()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"])):e.createCommentVNode("",!0),e.createVNode(Ce.default,null,{default:e.withCtx(({toggle:a,isToggled:c})=>[e.createVNode(we.default,e.mergeProps({ref:"popperElement"},le(),{"close-on-popover-click":"","hide-close-icon":"",offset:`var(--kui-space-40, ${e.unref(Ne.KUI_SPACE_40)})`,onClose:()=>me(a,c.value),onOpen:()=>be(a),onPopoverClick:()=>pe(a)}),{content:e.withCtx(()=>[e.createElementVNode("div",{"aria-live":l.enableFiltering?"polite":"off"},[l.enableFiltering&&l.loading?(e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(t.$slots,"loading",{},()=>[e.createVNode(e.unref(D.ProgressIcon),{class:"loading-icon",title:"Loading"})],!0)])):(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(Se.default,{ref:"kSelectItems","filter-string":s.value,"item-creation-enabled":l.enableItemCreation&&O.value,"item-creation-valid":l.itemCreationValidator(s.value),items:z.value,onAddItem:L,onSelected:$},{content:e.withCtx(({item:u})=>[e.renderSlot(t.$slots,"item-template",{item:u},void 0,!0)]),_:3},8,["filter-string","item-creation-enabled","item-creation-valid","items"]),!z.value.length&&!t.$slots.empty&&!l.enableItemCreation?(e.openBlock(),e.createBlock(Ie.default,{key:0,item:{label:"No results",value:"no_results",disabled:!0}})):e.createCommentVNode("",!0),V()&&A.value==="static"?(e.openBlock(),e.createElementBlock("div",Pe,[t.$slots["dropdown-footer"]?e.renderSlot(t.$slots,"dropdown-footer",{},void 0,!0,0):e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(l.dropdownFooterText),1)],!0,1)])):e.createCommentVNode("",!0)])),!l.loading&&!z.value.length&&t.$slots.empty?(e.openBlock(),e.createElementBlock("div",ze,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],8,Ee),V()&&A.value==="sticky"?(e.openBlock(),e.createElementBlock("div",Ke,[t.$slots["dropdown-footer"]?e.renderSlot(t.$slots,"dropdown-footer",{},void 0,!0,0):e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(l.dropdownFooterText),1)],!0,1)])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{id:e.unref(Z),ref:"selectWrapperElement",class:"select-wrapper","data-testid":"select-wrapper",role:"listbox",onClick:ve},[(e.openBlock(),e.createBlock(ge.default,e.mergeProps({id:T.value,key:j.value,ref:"inputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:["select-input",{"filtering-disabled":!l.enableFiltering,"hide-model-value":R()&&(!l.enableFiltering||!c.value),"input-has-focus":w.value||c.value}],"data-testid":"select-input",disabled:y.value,error:l.error,"model-value":s.value,name:"select-options-search",placeholder:d.value&&!l.enableFiltering?d.value.label:ae.value,readonly:I.value,spellcheck:"false"},te.value,{onBlur:de,onClick:fe,onFocus:ce,onKeydown:e.withKeys(se,["enter"]),onKeypress:ne,onKeyup:[u=>ie(u,c),n[0]||(n[0]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":ue}),e.createSlots({after:e.withCtx(()=>[re.value?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":"Clear",class:"clear-selection-button","data-testid":"clear-selection-icon",type:"button",onClick:e.withModifiers(K,["stop"])},[e.createVNode(e.unref(D.CloseIcon),{decorative:""})])):e.createCommentVNode("",!0),I.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(D.ChevronDownIcon),{key:1,class:e.normalizeClass(["chevron-down-icon",{disabled:y.value}]),decorative:""},null,8,["class"]))]),_:2},[h.before?{name:"before",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"before",{},void 0,!0)]),key:"0"}:void 0,t.$slots["label-tooltip"]?{name:"label-tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"1"}:void 0]),1040,["id","class","disabled","error","model-value","placeholder","readonly","onKeyup"])),e.createVNode(e.Transition,{name:"kongponents-fade-transition"},{default:e.withCtx(()=>[R()&&(!l.enableFiltering||!c.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["custom-selected-item-wrapper",{clearable:l.clearable,readonly:I.value}])},[e.renderSlot(t.$slots,"selected-item-template",{item:d.value},()=>[e.renderSlot(t.$slots,"item-template",{item:d.value},void 0,!0)],!0)],2)):e.createCommentVNode("",!0)]),_:2},1024)],8,qe)]),_:2},1040,["offset","onClose","onOpen","onPopoverClick"])]),_:3}),l.help?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["help-text",{"select-error":l.error}])},e.toDisplayString(l.help),3)):e.createCommentVNode("",!0)],2))}});exports.default=De;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ke=require("./kongponents191.cjs"),ye=require("./kongponents57.cjs"),ge=require("./kongponents55.cjs"),we=require("./kongponents62.cjs"),Ce=require("./kongponents29.cjs"),Se=require("./kongponents192.cjs"),Ie=require("./kongponents193.cjs"),D=require("@kong/icons"),Be=require("./kongponents194.cjs"),W=require("./kongponents180.cjs"),Fe=require("./kongponents188.cjs"),$e=require("./kongponents160.cjs"),U=require("./kongponents189.cjs"),Ne=require("./kongponents184.cjs"),qe=["id"],Ee=["aria-live"],Ve={key:0,class:"select-loading","data-propagate-clicks":"false","data-testid":"select-loading"},Ae={key:1,class:"select-items-container","data-propagate-clicks":"false"},Pe={key:1,class:"dropdown-footer dropdown-footer-static"},ze={key:2,class:"select-empty","data-propagate-clicks":"false"},Ke={key:0,class:"dropdown-footer dropdown-footer-sticky"},De=e.defineComponent({inheritAttrs:!1,__name:"KSelect",props:{modelValue:{default:""},kpopAttributes:{default:()=>({})},dropdownMaxHeight:{default:"300px"},label:{default:""},labelAttributes:{default:()=>({})},width:{default:"100%"},placeholder:{default:""},items:{default:()=>[]},enableFiltering:{type:Boolean},filterFunction:{default:()=>(l=>l.items?.filter(N=>N.label?.toLowerCase().includes(l.query?.toLowerCase())))},loading:{type:Boolean},clearable:{type:Boolean},dropdownFooterText:{default:""},dropdownFooterTextPosition:{},dropdownFooterPosition:{},reuseItemTemplate:{type:Boolean},enableItemCreation:{type:Boolean},itemCreationValidator:{type:Function,default:()=>!0},error:{type:Boolean},help:{default:""}},emits:["selected","input","change","update:modelValue","query-change","item-added","item-removed","open","close"],setup(l,{emit:N}){e.useCssVars(t=>({v0a6aab70:ee.value,v44d39714:F.value,v771991ce:oe.value}));const{stripRequiredLabel:H}=ke.default(),f=N,p=e.useAttrs(),h=e.useSlots(),G=e.useId(),T=e.computed(()=>p.id?String(p.id):G),q=e.ref(!1),E=e.ref(),J=()=>!!(l.labelAttributes?.info||h["label-tooltip"]),x=e.computed(()=>p.required!==void 0&&String(p.required)!=="false"),y=e.computed(()=>p.disabled!==void 0&&String(p.disabled)!=="false"),I=e.computed(()=>p.readonly!==void 0&&String(p.readonly)!=="false"),Q={popoverTimeout:0,placement:"bottom-start",hideCaret:!0},V=()=>!!(l.dropdownFooterText||h["dropdown-footer-text"]||h["dropdown-footer"]),A=e.computed(()=>l.dropdownFooterPosition??l.dropdownFooterTextPosition??"sticky"),j=e.ref(0),Y=e.useTemplateRef("inputElement"),X=e.computed(()=>H(l.label,x.value)),g=e.ref(!1),s=e.ref(""),O=e.computed(()=>!(!s.value||r.value?.filter(t=>t.label===s.value)?.length)),Z=e.useId(),d=e.ref(null),r=e.ref([]),B=e.ref([]),w=e.ref(!1),P=e.useTemplateRef("popperElement"),k=e.useTemplateRef("selectWrapperElement"),_=e.computed({get(){return l.modelValue},set(t){const n=r.value?.filter(a=>a.value===t);n?.length?$(n[0]):t||K()}}),ee=e.computed(()=>U.normalizeSize(l.width||"100%")),F=e.ref(""),te=e.computed(()=>{const t={...p};return delete t.class,t}),le=()=>({...Q,...l.kpopAttributes,popoverClasses:`k-select-popover select-popover ${V()?`has-${A.value}-dropdown-footer`:""} ${l.kpopAttributes?.popoverClasses??""}`,width:String(F.value),maxWidth:String(F.value),disabled:y.value||I.value}),oe=e.computed(()=>U.normalizeSize(l.dropdownMaxHeight)),ae=e.computed(()=>l.placeholder||p.placeholder||"Select..."),re=e.computed(()=>!y.value&&l.clearable&&!!d.value),R=()=>!!(d.value&&(h["selected-item-template"]||l.reuseItemTemplate&&h["item-template"])),C=t=>"items"in t&&Array.isArray(t.items),z=e.computed(()=>{if(!l.enableFiltering||!s.value)return B.value;const t=l.filterFunction({query:s.value,items:r.value}),n=t===!0?r.value:t,a=new Set(n.map(u=>u.value)),c=[];for(const u of B.value)if(C(u)){const m=u.items.filter(o=>a.has(o.value));m.length>0&&c.push({label:u.label,key:u.key,items:m})}else a.has(u.value)&&c.push(u);return c}),ne=t=>{if(!l.enableFiltering)return t.preventDefault(),!1},se=t=>{l.enableItemCreation&&L(),t.preventDefault()},L=()=>{if(!l.enableItemCreation||!s.value||!O.value||!l.itemCreationValidator(s.value))return;const t=(r.value?.length||0)+1,n={label:W.sanitizeInput(s.value),value:$e.getUniqueStringId(),key:`${W.sanitizeInput(s.value).replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${t}`,custom:!0};f("item-added",n),$(n,!0),s.value=""},$=(t,n)=>{n&&(r.value?.push(t),B.value.unshift(t)),r.value?.forEach((a,c)=>{a.key===t.key?(a.selected=!0,d.value=a):a.selected?(a.selected=!1,a.custom&&(r.value?.splice(c,1),f("item-removed",a))):a.selected=!1}),g.value=!0,s.value=t.label},K=()=>{r.value?.forEach((t,n)=>{t.selected=!1,t.custom&&(r.value?.splice(n,1),f("item-removed",t))}),d.value=null,s.value="",f("input",null),f("change",null),f("update:modelValue",null)},M=e.useTemplateRef("kSelectItems"),ie=(t,n)=>{if(t.keyCode===27){n.value=!1;return}const a=k.value?.children[0];!n.value&&a&&a.click(),(t.key==="ArrowDown"||t.key==="ArrowUp")&&n.value&&M.value?.setFocus(t.key==="ArrowDown"?"down":"up")},ue=t=>{s.value!==t&&(s.value=t)},ce=()=>{w.value=!0},de=()=>{w.value=!1},fe=()=>{l.enableFiltering||Y.value?.$el?.querySelector("input")?.blur()},ve=t=>{(y.value||t?.target?.dataset.propagateClicks==="false")&&t.stopPropagation()},pe=t=>{t()},me=(t,n)=>{q.value=!1,f("close"),d.value?(g.value=!0,s.value=d.value.label):s.value="",n&&t()},be=t=>{q.value=!0,f("open"),l.enableFiltering&&(s.value=""),t()};return e.watch(_,(t,n)=>{if(t!==n){const a=r.value?.filter(c=>c.value===t);a?.length?$(a[0]):t||K()}}),e.watch(()=>l.items,(t,n)=>{if(JSON.stringify(t)===JSON.stringify(n))return;const a=JSON.parse(JSON.stringify(l.items)),c=a.some(o=>C(o)),u=[],m=[];if(c)for(const o of a)C(o)?u.push(...o.items):u.push(o);else{const o=new Map;for(const i of a)C(i)||(i.group&&(o.has(i.group)||o.set(i.group,[]),o.get(i.group).push(i)),u.push(i));const S=Array.from(o.keys()).sort((i,b)=>i.toLowerCase().localeCompare(b.toLowerCase())),v=u.filter(i=>!i.group);m.push(...v);for(const i of S)m.push({label:i,items:o.get(i)})}r.value=u,r.value?.length&&(d.value=null);for(let o=0;o<r.value?.length;o++){r.value[o].selected===void 0&&(r.value[o].selected=!1);let v=`${(r.value[o].label!=null?String(r.value[o].label):"").replace(/ /gi,"-")?.replace(/[^a-z0-9-_]/gi,"")}-${o}`;v.includes("undefined")&&(v=`select-item-label-${o}`),r.value[o].key=v,(r.value[o].value===l.modelValue||r.value[o].selected)&&(r.value[o].selected=!0,d.value=r.value[o],w.value||(g.value=!0,s.value=d.value.label)),d.value?.value===r.value[o].value&&(r.value[o].selected=!0)}if(c){const o=[],S=[];for(const v of a)if(C(v)){const i=v.items.map(b=>r.value.find(he=>he.value===b.value)).filter(b=>b!==void 0);S.push({label:v.label,key:v.key,items:i})}else{const i=r.value.find(b=>b.value===v.value);i&&o.push(i)}m.push(...o,...S)}B.value=m,P.value&&typeof P.value.updatePopper=="function"&&e.nextTick(()=>{P.value.updatePopper()})},{deep:!0,immediate:!0}),e.watch(s,t=>{g.value&&t||(f("query-change",t),g.value=!1)}),e.watch(d,(t,n)=>{t&&t!==n&&(f("selected",t),f("input",t.value),f("change",t),f("update:modelValue",t.value))},{deep:!0}),e.onMounted(()=>{k.value&&(E.value=Be.ResizeObserverHelper.create(()=>{F.value=`${k.value?.offsetWidth}px`}),E.value.observe(k.value)),Fe.useEventListener(document,"keydown",t=>{!l.enableFiltering&&document.activeElement?.tagName==="BODY"&&!w.value&&q.value&&(t.key==="ArrowDown"||t.key==="ArrowUp")&&(t.preventDefault(),M.value?.setFocus(t.key==="ArrowDown"?"down":"up"))})}),e.onBeforeUnmount(()=>{k.value&&E.value?.unobserve(k.value)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-select",[t.$attrs.class]])},[l.label||t.$slots.label?(e.openBlock(),e.createBlock(ye.default,e.mergeProps({key:0,"data-testid":"select-label"},l.labelAttributes,{for:T.value,required:x.value}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(X.value),1)],!0)]),_:2},[J()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"])):e.createCommentVNode("",!0),e.createVNode(Ce.default,null,{default:e.withCtx(({toggle:a,isToggled:c})=>[e.createVNode(we.default,e.mergeProps({ref:"popperElement"},le(),{"close-on-popover-click":"","hide-close-icon":"",offset:`var(--kui-space-40, ${e.unref(Ne.KUI_SPACE_40)})`,onClose:()=>me(a,c.value),onOpen:()=>be(a),onPopoverClick:()=>pe(a)}),{content:e.withCtx(()=>[e.createElementVNode("div",{"aria-live":l.enableFiltering?"polite":"off"},[l.enableFiltering&&l.loading?(e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(t.$slots,"loading",{},()=>[e.createVNode(e.unref(D.ProgressIcon),{class:"loading-icon",title:"Loading"})],!0)])):(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(Se.default,{ref:"kSelectItems","filter-string":s.value,"item-creation-enabled":l.enableItemCreation&&O.value,"item-creation-valid":l.itemCreationValidator(s.value),items:z.value,onAddItem:L,onSelected:$},{content:e.withCtx(({item:u})=>[e.renderSlot(t.$slots,"item-template",{item:u},void 0,!0)]),_:3},8,["filter-string","item-creation-enabled","item-creation-valid","items"]),!z.value.length&&!t.$slots.empty&&!l.enableItemCreation?(e.openBlock(),e.createBlock(Ie.default,{key:0,item:{label:"No results",value:"no_results",disabled:!0}})):e.createCommentVNode("",!0),V()&&A.value==="static"?(e.openBlock(),e.createElementBlock("div",Pe,[t.$slots["dropdown-footer"]?e.renderSlot(t.$slots,"dropdown-footer",{},void 0,!0,0):e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(l.dropdownFooterText),1)],!0,1)])):e.createCommentVNode("",!0)])),!l.loading&&!z.value.length&&t.$slots.empty?(e.openBlock(),e.createElementBlock("div",ze,[e.renderSlot(t.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],8,Ee),V()&&A.value==="sticky"?(e.openBlock(),e.createElementBlock("div",Ke,[t.$slots["dropdown-footer"]?e.renderSlot(t.$slots,"dropdown-footer",{},void 0,!0,0):e.renderSlot(t.$slots,"dropdown-footer-text",{},()=>[e.createTextVNode(e.toDisplayString(l.dropdownFooterText),1)],!0,1)])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{id:e.unref(Z),ref:"selectWrapperElement",class:"select-wrapper","data-testid":"select-wrapper",role:"listbox",onClick:ve},[(e.openBlock(),e.createBlock(ge.default,e.mergeProps({id:T.value,key:j.value,ref:"inputElement",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:["select-input",{"filtering-disabled":!l.enableFiltering,"hide-model-value":R()&&(!l.enableFiltering||!c.value),"input-has-focus":w.value||c.value}],"data-testid":"select-input",disabled:y.value,error:l.error,"model-value":s.value,name:"select-options-search",placeholder:d.value&&!l.enableFiltering?d.value.label:ae.value,readonly:I.value,spellcheck:"false"},te.value,{onBlur:de,onClick:fe,onFocus:ce,onKeydown:e.withKeys(se,["enter"]),onKeypress:ne,onKeyup:[u=>ie(u,c),n[0]||(n[0]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))],"onUpdate:modelValue":ue}),e.createSlots({after:e.withCtx(()=>[re.value?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":"Clear",class:"clear-selection-button","data-testid":"clear-selection-icon",type:"button",onClick:e.withModifiers(K,["stop"])},[e.createVNode(e.unref(D.CloseIcon),{decorative:""})])):e.createCommentVNode("",!0),I.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(D.ChevronDownIcon),{key:1,class:e.normalizeClass(["chevron-down-icon",{disabled:y.value}]),decorative:""},null,8,["class"]))]),_:2},[h.before?{name:"before",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"before",{},void 0,!0)]),key:"0"}:void 0,t.$slots["label-tooltip"]?{name:"label-tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"1"}:void 0]),1040,["id","class","disabled","error","model-value","placeholder","readonly","onKeyup"])),e.createVNode(e.Transition,{name:"kongponents-fade-transition"},{default:e.withCtx(()=>[R()&&(!l.enableFiltering||!c.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["custom-selected-item-wrapper",{clearable:l.clearable,readonly:I.value}])},[e.renderSlot(t.$slots,"selected-item-template",{item:d.value},()=>[e.renderSlot(t.$slots,"item-template",{item:d.value},void 0,!0)],!0)],2)):e.createCommentVNode("",!0)]),_:2},1024)],8,qe)]),_:2},1040,["offset","onClose","onOpen","onPopoverClick"])]),_:3}),l.help?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["help-text",{"select-error":l.error}])},e.toDisplayString(l.help),3)):e.createCommentVNode("",!0)],2))}});exports.default=De;
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as Le, useCssVars as Te, useAttrs as Re, useSlots as Ve, useId as oe, computed as c, ref as h, useTemplateRef as O, watch as L, nextTick as We, onMounted as Me, onBeforeUnmount as Ue, openBlock as v, createElementBlock as g, normalizeClass as T, createBlock as R, mergeProps as Y, createSlots as ae, withCtx as y, renderSlot as p, createTextVNode as j, toDisplayString as V, createCommentVNode as k, createVNode as S, unref as D, createElementVNode as re, withKeys as se, withModifiers as ie, Transition as xe } from "vue";
2
- import Ge from "./kongponents187.es.js";
2
+ import Ge from "./kongponents191.es.js";
3
3
  import He from "./kongponents57.es.js";
4
4
  import Je from "./kongponents55.es.js";
5
5
  import Qe from "./kongponents62.es.js";
6
6
  import Ye from "./kongponents29.es.js";
7
- import je from "./kongponents202.es.js";
8
- import Xe from "./kongponents203.es.js";
7
+ import je from "./kongponents192.es.js";
8
+ import Xe from "./kongponents193.es.js";
9
9
  import { CloseIcon as Ze, ChevronDownIcon as _e, ProgressIcon as et } from "@kong/icons";
10
- import { ResizeObserverHelper as tt } from "./kongponents198.es.js";
10
+ import { ResizeObserverHelper as tt } from "./kongponents194.es.js";
11
11
  import { sanitizeInput as ne } from "./kongponents180.es.js";
12
- import { useEventListener as lt } from "./kongponents184.es.js";
13
- import { getUniqueStringId as ot } from "./kongponents161.es.js";
14
- import { normalizeSize as ue } from "./kongponents185.es.js";
15
- import { KUI_SPACE_40 as at } from "./kongponents182.es.js";
12
+ import { useEventListener as lt } from "./kongponents188.es.js";
13
+ import { getUniqueStringId as ot } from "./kongponents160.es.js";
14
+ import { normalizeSize as ue } from "./kongponents189.es.js";
15
+ import { KUI_SPACE_40 as at } from "./kongponents184.es.js";
16
16
  const rt = ["id"], st = ["aria-live"], it = {
17
17
  key: 0,
18
18
  class: "select-loading",
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./kongponents25.cjs");;/* empty css */exports.default=e.default;
@@ -0,0 +1,5 @@
1
+ import o from "./kongponents25.es.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./kongponents25.cjs");;/* empty css */exports.default=e.default;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=e.defineComponent({__name:"KSkeletonBox",props:{width:{default:"1"},height:{default:"1"}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["skeleton-box",{[`width-${t.width}`]:!0,[`height-${t.height}`]:!0}])},null,2))}});exports.default=l;
@@ -1,5 +1,16 @@
1
- import o from "./kongponents25.es.js";
2
- /* empty css */
1
+ import { defineComponent as t, openBlock as n, createElementBlock as o, normalizeClass as l } from "vue";
2
+ const h = /* @__PURE__ */ t({
3
+ __name: "KSkeletonBox",
4
+ props: {
5
+ width: { default: "1" },
6
+ height: { default: "1" }
7
+ },
8
+ setup(e) {
9
+ return (a, i) => (n(), o("div", {
10
+ class: l(["skeleton-box", { [`width-${e.width}`]: !0, [`height-${e.height}`]: !0 }])
11
+ }, null, 2));
12
+ }
13
+ });
3
14
  export {
4
- o as default
15
+ h as default
5
16
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./kongponents184.cjs"),u=require("@kong/icons"),m=require("./kongponents182.cjs"),f=require("./kongponents185.cjs"),v=require("./kongponents186.cjs"),k={class:"k-slideout"},E={key:0,ref:"slideoutContainerElement",class:"slideout-container","data-testid":"slideout-container"},b={class:"slideout-header"},y={key:0,class:"slideout-title","data-testid":"slideout-title"},C={class:"slideout-content"},h=e.defineComponent({__name:"KSlideout",props:{visible:{type:Boolean},hasOverlay:{type:Boolean,default:!0},offsetTop:{default:0},closeOnBlur:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},title:{default:""},maxWidth:{default:"500px"},zIndex:{default:9999}},emits:["close"],setup(o,{emit:a}){e.useCssVars(t=>({v4c1bb9b1:c.value,v312b21b8:t.maxWidth,v0bc33d5a:t.zIndex}));const s=a;e.provide(v.POPOVER_PARENT_ZINDEX_KEY,e.computed(()=>o.zIndex));const d=e.useTemplateRef("slideoutContainerElement"),c=e.computed(()=>f.normalizeSize(o.offsetTop));r.onClickOutside(d,t=>{t.isTrusted&&o.closeOnBlur&&s("close")});const i=(t,n=!1)=>{(o.visible&&t.keyCode===27&&o.closeOnEscape||n)&&s("close")},l=t=>{typeof document<"u"&&(t?document?.addEventListener("keydown",i):document?.removeEventListener("keydown",i))};return e.watch(()=>o.visible,async t=>{l(!!t)},{immediate:!0}),e.onUnmounted(()=>{l(!1)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",k,[e.createVNode(e.Transition,{name:"kongponents-fade-transition"},{default:e.withCtx(()=>[o.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["slideout-backdrop",{"backdrop-transparent":!o.hasOverlay}])},null,2)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"kongponents-slide-in-transition"},{default:e.withCtx(()=>[o.visible?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",b,[o.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",y,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{"aria-label":"Close",class:"slideout-close-icon","data-testid":"slideout-close-icon",type:"button",onClick:n[0]||(n[0]=e.withModifiers(B=>t.$emit("close"),["stop"]))},[e.createVNode(e.unref(u.CloseIcon),{color:`var(--kui-color-text-neutral, ${e.unref(m.KUI_COLOR_TEXT_NEUTRAL)})`,decorative:""},null,8,["color"])])]),e.createElementVNode("div",C,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],512)):e.createCommentVNode("",!0)]),_:3})]))}});exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./kongponents188.cjs"),u=require("@kong/icons"),m=require("./kongponents184.cjs"),f=require("./kongponents189.cjs"),v=require("./kongponents199.cjs"),k={class:"k-slideout"},E={key:0,ref:"slideoutContainerElement",class:"slideout-container","data-testid":"slideout-container"},b={class:"slideout-header"},y={key:0,class:"slideout-title","data-testid":"slideout-title"},C={class:"slideout-content"},h=e.defineComponent({__name:"KSlideout",props:{visible:{type:Boolean},hasOverlay:{type:Boolean,default:!0},offsetTop:{default:0},closeOnBlur:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},title:{default:""},maxWidth:{default:"500px"},zIndex:{default:9999}},emits:["close"],setup(o,{emit:a}){e.useCssVars(t=>({v4c1bb9b1:c.value,v312b21b8:t.maxWidth,v0bc33d5a:t.zIndex}));const s=a;e.provide(v.POPOVER_PARENT_ZINDEX_KEY,e.computed(()=>o.zIndex));const d=e.useTemplateRef("slideoutContainerElement"),c=e.computed(()=>f.normalizeSize(o.offsetTop));r.onClickOutside(d,t=>{t.isTrusted&&o.closeOnBlur&&s("close")});const i=(t,n=!1)=>{(o.visible&&t.keyCode===27&&o.closeOnEscape||n)&&s("close")},l=t=>{typeof document<"u"&&(t?document?.addEventListener("keydown",i):document?.removeEventListener("keydown",i))};return e.watch(()=>o.visible,async t=>{l(!!t)},{immediate:!0}),e.onUnmounted(()=>{l(!1)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",k,[e.createVNode(e.Transition,{name:"kongponents-fade-transition"},{default:e.withCtx(()=>[o.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["slideout-backdrop",{"backdrop-transparent":!o.hasOverlay}])},null,2)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"kongponents-slide-in-transition"},{default:e.withCtx(()=>[o.visible?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",b,[o.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",y,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{"aria-label":"Close",class:"slideout-close-icon","data-testid":"slideout-close-icon",type:"button",onClick:n[0]||(n[0]=e.withModifiers(B=>t.$emit("close"),["stop"]))},[e.createVNode(e.unref(u.CloseIcon),{color:`var(--kui-color-text-neutral, ${e.unref(m.KUI_COLOR_TEXT_NEUTRAL)})`,decorative:""},null,8,["color"])])]),e.createElementVNode("div",C,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],512)):e.createCommentVNode("",!0)]),_:3})]))}});exports.default=h;
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as C, useCssVars as p, provide as h, computed as c, useTemplateRef as O, watch as T, onUnmounted as B, openBlock as i, createElementBlock as l, createVNode as n, Transition as f, withCtx as m, normalizeClass as N, createCommentVNode as a, createElementVNode as d, renderSlot as v, createTextVNode as V, toDisplayString as x, withModifiers as z, unref as b } from "vue";
2
- import { onClickOutside as I } from "./kongponents184.es.js";
2
+ import { onClickOutside as I } from "./kongponents188.es.js";
3
3
  import { CloseIcon as R } from "@kong/icons";
4
- import { KUI_COLOR_TEXT_NEUTRAL as $ } from "./kongponents182.es.js";
5
- import { normalizeSize as g } from "./kongponents185.es.js";
6
- import { POPOVER_PARENT_ZINDEX_KEY as w } from "./kongponents186.es.js";
4
+ import { KUI_COLOR_TEXT_NEUTRAL as $ } from "./kongponents184.es.js";
5
+ import { normalizeSize as g } from "./kongponents189.es.js";
6
+ import { POPOVER_PARENT_ZINDEX_KEY as w } from "./kongponents199.es.js";
7
7
  const L = { class: "k-slideout" }, S = {
8
8
  key: 0,
9
9
  ref: "slideoutContainerElement",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("./kongponents218.cjs"),r={key:0,class:"k-stepper"},s=e.defineComponent({__name:"KStepper",props:{steps:{},maxLabelWidth:{default:"170px"},hideStepNumbers:{type:Boolean,default:!1}},setup(t){return(u,o)=>t.steps&&t.steps.length?(e.openBlock(),e.createElementBlock("ol",r,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.steps,(l,a)=>(e.openBlock(),e.createBlock(n.default,{key:`step-${l.label.replace(/ /gi,"-")}`,label:l.label,"max-label-width":t.maxLabelWidth,state:l.state,"step-number":t.hideStepNumbers?void 0:a+1},null,8,["label","max-label-width","state","step-number"]))),128))])):e.createCommentVNode("",!0)}});exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("./kongponents195.cjs"),r={key:0,class:"k-stepper"},s=e.defineComponent({__name:"KStepper",props:{steps:{},maxLabelWidth:{default:"170px"},hideStepNumbers:{type:Boolean,default:!1}},setup(t){return(u,o)=>t.steps&&t.steps.length?(e.openBlock(),e.createElementBlock("ol",r,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.steps,(l,a)=>(e.openBlock(),e.createBlock(n.default,{key:`step-${l.label.replace(/ /gi,"-")}`,label:l.label,"max-label-width":t.maxLabelWidth,state:l.state,"step-number":t.hideStepNumbers?void 0:a+1},null,8,["label","max-label-width","state","step-number"]))),128))])):e.createCommentVNode("",!0)}});exports.default=s;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, openBlock as l, createElementBlock as a, Fragment as n, renderList as m, createBlock as o, createCommentVNode as p } from "vue";
2
- import u from "./kongponents218.es.js";
2
+ import u from "./kongponents195.es.js";
3
3
  const c = {
4
4
  key: 0,
5
5
  class: "k-stepper"
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ve=require("./kongponents38.cjs"),fe=require("./kongponents51.cjs"),Ge=require("./kongponents25.cjs");;/* empty css */const Je=require("./kongponents61.cjs"),Xe=require("./kongponents30.cjs");;/* empty css */const ge=require("@kong/icons"),Ze=require("./kongponents187.cjs");require("./kongponents7.cjs");require("./kongponents12.cjs");const Qe=require("./kongponents13.cjs"),K=require("./kongponents182.cjs"),Ye=require("./kongponents189.cjs"),_e=require("./kongponents185.cjs"),pe=require("./kongponents181.cjs"),et={class:"k-table"},tt={key:0,class:"table-toolbar","data-testid":"table-toolbar"},at={key:0,class:"toolbar-default-items-container"},lt={key:2,class:"table-error-state","data-testid":"table-error-state"},ot={key:3,class:"table-empty-state","data-testid":"table-empty-state"},rt={key:4,class:"table-container"},nt=["data-tableid"],st=["aria-sort","data-testid","onClick","onMouseover"],it=["onMousedown","onMouseover"],ut=["aria-describedby"],ct=["onMousedown","onMouseover"],dt=["role","tabindex"],vt=e.defineComponent({__name:"KTable",props:{resizeColumns:{type:Boolean,default:!1},tablePreferences:{type:Object,default:()=>({})},clientSort:{type:Boolean,default:!1},rowHover:{type:Boolean,default:!0},sortHandlerFunction:{type:Function,default:()=>({})},rowAttrs:{type:Function,default:()=>({})},cellAttrs:{type:Function,default:()=>({})},loading:{type:Boolean,default:!1},emptyStateTitle:{type:String,default:"No Data"},emptyStateMessage:{type:String,default:"There is no data to display."},emptyStateActionRoute:{type:[Object,String],default:""},emptyStateActionMessage:{type:String,default:""},emptyStateIconVariant:{type:String,default:Qe.EmptyStateIconVariants.Default},error:{type:Boolean,default:!1},errorStateTitle:{type:String,default:"An error occurred"},errorStateMessage:{type:String,default:"Data cannot be displayed due to an error."},errorStateActionRoute:{type:[Object,String],default:""},errorStateActionMessage:{type:String,default:""},fetcher:{type:Function,default:void 0,required:!0},fetcherCacheKey:{type:String,default:""},cacheIdentifier:{type:String,default:""},searchInput:{type:String,default:""},headers:{type:Array,default:()=>[]},initialFetcherParams:{type:Object,default:null},paginationNeighbors:{type:Number,default:1},paginationPageSizes:{type:Array,default:()=>[15,30,50,75,100],validator:r=>!!r.length&&r.every(L=>typeof L=="number")},paginationTotalItems:{type:Number,default:null},disablePaginationPageJump:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},disablePagination:{type:Boolean,default:!1},paginationOffset:{type:Boolean,default:!1},hidePaginationWhenOptional:{type:Boolean,default:!1},maxHeight:{type:String,default:"none"}},emits:["cell-click","row-click","error-action-click","empty-state-action-click","update:table-preferences","sort","state"],setup(r,{emit:L}){e.useCssVars(t=>({v60cb3642:Ee.value}));const{useDebounce:U,useRequest:me,useSwrvState:ye,clientSideSorter:W}=Ze.default(),o=r,V=L,G=e.useAttrs(),be=e.useSlots(),m=e.useId(),C={pageSize:15,page:1,query:"",sortColumnKey:"",sortColumnOrder:"desc",offset:null},f=e.ref([]),J=e.ref(),E=e.ref([]),y=e.ref([]),P=e.ref(""),z=e.ref(""),T=e.ref(""),X=e.computed(()=>E.value.filter(t=>t.hidable).length>0),O=e.computed(()=>!!(X.value&&!o.error&&!S.value&&!o.loading&&f.value&&f.value.length)),he=e.computed(()=>E.value.filter(t=>t.hidable)),ke=e.computed(()=>O.value?o.tablePreferences.columnVisibility||{}:{}),M=e.ref(O.value?o.tablePreferences.columnVisibility||{}:{}),D=e.ref(0),w=e.ref(!1),u=e.ref(1),B=e.ref(15),Z=e.ref(""),v=e.ref(""),d=e.ref("desc"),k=e.ref(null),b=e.ref([]),Q=e.ref(!0),H=e.ref(!1),F=e.ref(!1),Se=e.computed(()=>!!be.toolbar||O.value),Ce=e.computed(()=>({maxHeight:_e.normalizeSize(o.maxHeight)})),ze=t=>`column-${t}`,N=t=>`tooltip-${t}`,R=t=>t,Y=(t,a)=>(l,s)=>{const n=/^on[^a-z]/,i={};for(const c in a)n.test(c)&&a[c]&&(i[c]=a[c]);return Object.keys(i).reduce((c,g)=>{if(g.indexOf(t)===0){const h=g.split(t);c[h[1]]=p=>i[g](p,l,s)}return c},{})},we=e.computed(()=>(t,a)=>{const l=Y("onRow:",G)(a,"row"),s=Y("onCell:",G)(t,"cell"),n=["a","button","label","input","select"];return l.click&&(H.value=!0),{...l,...s,click(i){const c=i.target.className;let g=n.includes(i.target.tagName.toLowerCase()),h=!1;typeof c=="string"||Array.isArray(c)?h=c.includes("k-popover"):typeof c=="object"&&(h=Object.keys(c).includes("k-popover")),i.target.closest(".popover-content")!==null&&(h=!0);for(let p=0;p<n.length;p++)if(i.target.closest(n[p])!==null){g=!0;break}if((!g||i.target.hasAttribute("disabled"))&&!h&&(l.click||s.click))if(s.click){V("cell-click",{data:t});const p=s.click(i,t,"cell");typeof p=="function"&&p(i,t)}else{V("row-click",{data:a});const p=l.click(i,a,"row");typeof p=="function"&&p(i,a)}}}}),A=e.ref(o.resizeColumns?o.tablePreferences.columnWidths||{}:{}),_=e.computed(()=>{const t={};for(const a in A.value){if(!A.value[a])continue;const l=A.value[a]+"px";t[a]={width:l,maxWidth:l,minWidth:l}}return t}),Be=(t,a)=>({"resize-hover":ee.value===t.key&&o.resizeColumns&&a!==y.value.length-1,resizable:o.resizeColumns,sortable:o.sortable&&!t.hideLabel&&!!t.sortable,"active-sort":o.sortable&&!t.hideLabel&&!!t.sortable&&t.key===v.value,[d.value]:o.sortable&&t.key===v.value&&!t.hideLabel,"is-scrolled":w.value,"has-tooltip":!!t.tooltip}),Ne=e.computed(()=>P.value?"resizing":z.value?"resize-hover":T.value?"th-hover":""),ee=e.computed(()=>{switch(Ne.value){case"resizing":return P.value;case"resize-hover":return z.value;case"th-hover":return T.value;default:return""}}),te=e.computed(()=>J.value?.querySelectorAll("th.resizable")),Ee=e.computed(()=>{const t=te.value?.item(0);if(t){const a=window?.getComputedStyle(t);if(a?.height)return`${parseInt(a.height,10)}px`}return"auto"}),ae=(t,a)=>{if(t.button!==0)return;let l=0,s=0;P.value=a;let n=null;te.value?.forEach(g=>{g.getAttribute("data-testid")===`table-header-${a}`&&(n=document?.querySelector(`[data-tableid="${m}"] [data-testid="table-header-${a}"]`))});const i=g=>{const h=g.clientX-l;n?.setAttribute("style",`width: ${s+h}px`),A.value[a]=s+h},c=()=>{P.value="",document?.removeEventListener("mousemove",i),document?.removeEventListener("mouseup",c),q()};if(l=t.clientX,n){const g=window?.getComputedStyle(n);g?.width&&(s=parseInt(g.width,10)),document?.addEventListener("mousemove",i),document?.addEventListener("mouseup",c)}},le=e.ref(!0),Pe=async()=>{const t=o.searchInput,a=await o.fetcher({pageSize:B.value,page:u.value,query:t||Z.value,sortColumnKey:v.value,sortColumnOrder:d.value,offset:k.value});return f.value=a.data,D.value=o.paginationTotalItems||a.total||a.data?.length,o.paginationOffset&&(a.pagination?.offset?($.value=a.pagination.offset,b.value[u.value]||b.value.push(a.pagination.offset)):$.value=null,Q.value=a.pagination&&"hasNextPage"in a.pagination?a.pagination.hasNextPage:!0),f.value.length===0&&u.value>1&&(u.value=1,b.value=[null],k.value=null),le.value=!1,a},Oe=()=>{const t={...C,...o.initialFetcherParams};u.value=t.page??C.page,B.value=t.pageSize??C.pageSize,Z.value=t.query??C.query,v.value=t.sortColumnKey??C.sortColumnKey,d.value=t.sortColumnOrder??C.sortColumnOrder,o.clientSort&&v.value&&d.value&&W(v.value,"",d.value,f.value),o.paginationOffset&&(k.value=t.offset,b.value.push(t.offset)),o.headers&&o.headers.length&&(E.value=o.headers),F.value=!0};e.watch(()=>o.headers,t=>{t&&t.length&&(E.value=t)},{deep:!0});const x=e.computed(()=>b.value[u.value-1]),$=e.ref(null),Ae=e.computed(()=>{if(!o.fetcher||!F.value)return"";let t=m;return o.cacheIdentifier&&(t=o.cacheIdentifier),o.fetcherCacheKey&&(t+=`-${o.fetcherCacheKey}`),`k-table_${t}`}),oe=e.ref(""),{debouncedFn:$e,generateDebouncedFn:Ie}=U(t=>{oe.value=t},350),Ve=Ie(0),{data:re,error:ne,revalidate:Te,isValidating:Me}=me(()=>Ae.value,()=>Pe(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:j,hasData:He,swrvState:se}=ye(re,ne,Me),S=e.ref(!0),ie=e.computed(()=>({hasData:He.value,state:j.value})),ue=e.computed(()=>S.value?"loading":ne.value?"error":"success"),{debouncedFn:ce,generateDebouncedFn:qe}=U(Te,500),Ke=qe(0),Le=t=>{const{key:a,useSortHandlerFunction:l}=t,s=v.value+"";u.value=1,v.value?a===v.value?d.value==="asc"?d.value="desc":d.value="asc":(v.value=a,d.value="asc",b.value=[null]):(v.value=a,d.value="asc",b.value=[null]),o.clientSort?l&&o.sortHandlerFunction?o.sortHandlerFunction({key:a,prevKey:s,sortColumnOrder:d.value,data:f.value}):W(a,s,d.value,f.value):o.paginationOffset||ce(),q()},De=({page:t})=>{u.value=t},Fe=({pageSize:t})=>{b.value=[null],k.value=null,B.value=t,u.value=1,q()},Re=t=>{t&&t.target&&typeof t.target.scrollTop=="number"&&(t.target.scrollTop>1?w.value=!0:t.target.scrollTop===0&&(w.value=!w.value))},xe=e.computed(()=>({pageSize:B.value,sortColumnKey:v.value,sortColumnOrder:d.value,...o.resizeColumns?{columnWidths:A.value}:{},...X.value?{columnVisibility:M.value}:{}})),q=()=>{ue.value==="success"&&V("update:table-preferences",xe.value)},je=()=>{u.value++,k.value=$.value},Ue=()=>{u.value--,k.value=x.value},We=e.computed(()=>!!(o.fetcher&&!o.disablePagination&&!(!o.paginationOffset&&o.hidePaginationWhenOptional&&D.value<=(o.paginationPageSizes[0]??pe.DEFAULT_PAGE_SIZE))&&!(o.paginationOffset&&o.hidePaginationWhenOptional&&!x.value&&!$.value&&f.value.length<(o.paginationPageSizes[0]??pe.DEFAULT_PAGE_SIZE)))),de=t=>t.toLowerCase().replace(/[^[a-z0-9]/gi,"-");e.watch([M,E],t=>{const a=t[0],s=t[1].filter(n=>a[n.key]!==!1);JSON.stringify(s)!==JSON.stringify(y.value)&&(y.value=s,q())},{deep:!0,immediate:!0}),e.watch(re,t=>{t?.length&&!f.value.length&&(f.value=t)},{deep:!0,immediate:!0}),e.watch(j,()=>{switch(j.value){case se.PENDING:S.value=!0;break;case se.VALIDATING_HAS_DATA:S.value=I.value;break;default:S.value=!1;break}},{immediate:!0}),e.watch([ie,ue],t=>{V("state",{state:t?.[1],hasData:t?.[0]?.hasData})}),e.watch(()=>o.searchInput,t=>{u.value!==1&&(u.value=1),t===""?Ve(t):$e(t)},{immediate:!0});const I=e.ref(!1);return e.watch([oe,u,B],async(t,a)=>{const l=a?.[0],s=t[0],n=t[1];s!==l&&n!==1&&(u.value=1,b.value=[null],k.value=null),F.value&&!le.value&&(I.value=!0,s!==""&&s!==l?await ce():await Ke(),I.value=!1)},{deep:!0,immediate:!0}),e.watch(O,t=>{t&&(M.value=o.tablePreferences.columnVisibility||{})},{immediate:!0}),e.onMounted(()=>{console.warn(`The Kongponents 'KTable' 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"),ve=require("./kongponents38.cjs"),fe=require("./kongponents51.cjs"),Ge=require("./kongponents25.cjs");;/* empty css */const Je=require("./kongponents61.cjs"),Xe=require("./kongponents30.cjs");;/* empty css */const ge=require("@kong/icons"),Ze=require("./kongponents191.cjs");require("./kongponents7.cjs");require("./kongponents12.cjs");const Qe=require("./kongponents13.cjs"),K=require("./kongponents184.cjs"),Ye=require("./kongponents185.cjs"),_e=require("./kongponents189.cjs"),pe=require("./kongponents181.cjs"),et={class:"k-table"},tt={key:0,class:"table-toolbar","data-testid":"table-toolbar"},at={key:0,class:"toolbar-default-items-container"},lt={key:2,class:"table-error-state","data-testid":"table-error-state"},ot={key:3,class:"table-empty-state","data-testid":"table-empty-state"},rt={key:4,class:"table-container"},nt=["data-tableid"],st=["aria-sort","data-testid","onClick","onMouseover"],it=["onMousedown","onMouseover"],ut=["aria-describedby"],ct=["onMousedown","onMouseover"],dt=["role","tabindex"],vt=e.defineComponent({__name:"KTable",props:{resizeColumns:{type:Boolean,default:!1},tablePreferences:{type:Object,default:()=>({})},clientSort:{type:Boolean,default:!1},rowHover:{type:Boolean,default:!0},sortHandlerFunction:{type:Function,default:()=>({})},rowAttrs:{type:Function,default:()=>({})},cellAttrs:{type:Function,default:()=>({})},loading:{type:Boolean,default:!1},emptyStateTitle:{type:String,default:"No Data"},emptyStateMessage:{type:String,default:"There is no data to display."},emptyStateActionRoute:{type:[Object,String],default:""},emptyStateActionMessage:{type:String,default:""},emptyStateIconVariant:{type:String,default:Qe.EmptyStateIconVariants.Default},error:{type:Boolean,default:!1},errorStateTitle:{type:String,default:"An error occurred"},errorStateMessage:{type:String,default:"Data cannot be displayed due to an error."},errorStateActionRoute:{type:[Object,String],default:""},errorStateActionMessage:{type:String,default:""},fetcher:{type:Function,default:void 0,required:!0},fetcherCacheKey:{type:String,default:""},cacheIdentifier:{type:String,default:""},searchInput:{type:String,default:""},headers:{type:Array,default:()=>[]},initialFetcherParams:{type:Object,default:null},paginationNeighbors:{type:Number,default:1},paginationPageSizes:{type:Array,default:()=>[15,30,50,75,100],validator:r=>!!r.length&&r.every(L=>typeof L=="number")},paginationTotalItems:{type:Number,default:null},disablePaginationPageJump:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},disablePagination:{type:Boolean,default:!1},paginationOffset:{type:Boolean,default:!1},hidePaginationWhenOptional:{type:Boolean,default:!1},maxHeight:{type:String,default:"none"}},emits:["cell-click","row-click","error-action-click","empty-state-action-click","update:table-preferences","sort","state"],setup(r,{emit:L}){e.useCssVars(t=>({v60cb3642:Ee.value}));const{useDebounce:U,useRequest:me,useSwrvState:ye,clientSideSorter:W}=Ze.default(),o=r,V=L,G=e.useAttrs(),be=e.useSlots(),m=e.useId(),C={pageSize:15,page:1,query:"",sortColumnKey:"",sortColumnOrder:"desc",offset:null},f=e.ref([]),J=e.ref(),E=e.ref([]),y=e.ref([]),P=e.ref(""),z=e.ref(""),T=e.ref(""),X=e.computed(()=>E.value.filter(t=>t.hidable).length>0),O=e.computed(()=>!!(X.value&&!o.error&&!S.value&&!o.loading&&f.value&&f.value.length)),he=e.computed(()=>E.value.filter(t=>t.hidable)),ke=e.computed(()=>O.value?o.tablePreferences.columnVisibility||{}:{}),M=e.ref(O.value?o.tablePreferences.columnVisibility||{}:{}),D=e.ref(0),w=e.ref(!1),u=e.ref(1),B=e.ref(15),Z=e.ref(""),v=e.ref(""),d=e.ref("desc"),k=e.ref(null),b=e.ref([]),Q=e.ref(!0),H=e.ref(!1),F=e.ref(!1),Se=e.computed(()=>!!be.toolbar||O.value),Ce=e.computed(()=>({maxHeight:_e.normalizeSize(o.maxHeight)})),ze=t=>`column-${t}`,N=t=>`tooltip-${t}`,R=t=>t,Y=(t,a)=>(l,s)=>{const n=/^on[^a-z]/,i={};for(const c in a)n.test(c)&&a[c]&&(i[c]=a[c]);return Object.keys(i).reduce((c,g)=>{if(g.indexOf(t)===0){const h=g.split(t);c[h[1]]=p=>i[g](p,l,s)}return c},{})},we=e.computed(()=>(t,a)=>{const l=Y("onRow:",G)(a,"row"),s=Y("onCell:",G)(t,"cell"),n=["a","button","label","input","select"];return l.click&&(H.value=!0),{...l,...s,click(i){const c=i.target.className;let g=n.includes(i.target.tagName.toLowerCase()),h=!1;typeof c=="string"||Array.isArray(c)?h=c.includes("k-popover"):typeof c=="object"&&(h=Object.keys(c).includes("k-popover")),i.target.closest(".popover-content")!==null&&(h=!0);for(let p=0;p<n.length;p++)if(i.target.closest(n[p])!==null){g=!0;break}if((!g||i.target.hasAttribute("disabled"))&&!h&&(l.click||s.click))if(s.click){V("cell-click",{data:t});const p=s.click(i,t,"cell");typeof p=="function"&&p(i,t)}else{V("row-click",{data:a});const p=l.click(i,a,"row");typeof p=="function"&&p(i,a)}}}}),A=e.ref(o.resizeColumns?o.tablePreferences.columnWidths||{}:{}),_=e.computed(()=>{const t={};for(const a in A.value){if(!A.value[a])continue;const l=A.value[a]+"px";t[a]={width:l,maxWidth:l,minWidth:l}}return t}),Be=(t,a)=>({"resize-hover":ee.value===t.key&&o.resizeColumns&&a!==y.value.length-1,resizable:o.resizeColumns,sortable:o.sortable&&!t.hideLabel&&!!t.sortable,"active-sort":o.sortable&&!t.hideLabel&&!!t.sortable&&t.key===v.value,[d.value]:o.sortable&&t.key===v.value&&!t.hideLabel,"is-scrolled":w.value,"has-tooltip":!!t.tooltip}),Ne=e.computed(()=>P.value?"resizing":z.value?"resize-hover":T.value?"th-hover":""),ee=e.computed(()=>{switch(Ne.value){case"resizing":return P.value;case"resize-hover":return z.value;case"th-hover":return T.value;default:return""}}),te=e.computed(()=>J.value?.querySelectorAll("th.resizable")),Ee=e.computed(()=>{const t=te.value?.item(0);if(t){const a=window?.getComputedStyle(t);if(a?.height)return`${parseInt(a.height,10)}px`}return"auto"}),ae=(t,a)=>{if(t.button!==0)return;let l=0,s=0;P.value=a;let n=null;te.value?.forEach(g=>{g.getAttribute("data-testid")===`table-header-${a}`&&(n=document?.querySelector(`[data-tableid="${m}"] [data-testid="table-header-${a}"]`))});const i=g=>{const h=g.clientX-l;n?.setAttribute("style",`width: ${s+h}px`),A.value[a]=s+h},c=()=>{P.value="",document?.removeEventListener("mousemove",i),document?.removeEventListener("mouseup",c),q()};if(l=t.clientX,n){const g=window?.getComputedStyle(n);g?.width&&(s=parseInt(g.width,10)),document?.addEventListener("mousemove",i),document?.addEventListener("mouseup",c)}},le=e.ref(!0),Pe=async()=>{const t=o.searchInput,a=await o.fetcher({pageSize:B.value,page:u.value,query:t||Z.value,sortColumnKey:v.value,sortColumnOrder:d.value,offset:k.value});return f.value=a.data,D.value=o.paginationTotalItems||a.total||a.data?.length,o.paginationOffset&&(a.pagination?.offset?($.value=a.pagination.offset,b.value[u.value]||b.value.push(a.pagination.offset)):$.value=null,Q.value=a.pagination&&"hasNextPage"in a.pagination?a.pagination.hasNextPage:!0),f.value.length===0&&u.value>1&&(u.value=1,b.value=[null],k.value=null),le.value=!1,a},Oe=()=>{const t={...C,...o.initialFetcherParams};u.value=t.page??C.page,B.value=t.pageSize??C.pageSize,Z.value=t.query??C.query,v.value=t.sortColumnKey??C.sortColumnKey,d.value=t.sortColumnOrder??C.sortColumnOrder,o.clientSort&&v.value&&d.value&&W(v.value,"",d.value,f.value),o.paginationOffset&&(k.value=t.offset,b.value.push(t.offset)),o.headers&&o.headers.length&&(E.value=o.headers),F.value=!0};e.watch(()=>o.headers,t=>{t&&t.length&&(E.value=t)},{deep:!0});const x=e.computed(()=>b.value[u.value-1]),$=e.ref(null),Ae=e.computed(()=>{if(!o.fetcher||!F.value)return"";let t=m;return o.cacheIdentifier&&(t=o.cacheIdentifier),o.fetcherCacheKey&&(t+=`-${o.fetcherCacheKey}`),`k-table_${t}`}),oe=e.ref(""),{debouncedFn:$e,generateDebouncedFn:Ie}=U(t=>{oe.value=t},350),Ve=Ie(0),{data:re,error:ne,revalidate:Te,isValidating:Me}=me(()=>Ae.value,()=>Pe(),{revalidateOnFocus:!1,revalidateDebounce:0}),{state:j,hasData:He,swrvState:se}=ye(re,ne,Me),S=e.ref(!0),ie=e.computed(()=>({hasData:He.value,state:j.value})),ue=e.computed(()=>S.value?"loading":ne.value?"error":"success"),{debouncedFn:ce,generateDebouncedFn:qe}=U(Te,500),Ke=qe(0),Le=t=>{const{key:a,useSortHandlerFunction:l}=t,s=v.value+"";u.value=1,v.value?a===v.value?d.value==="asc"?d.value="desc":d.value="asc":(v.value=a,d.value="asc",b.value=[null]):(v.value=a,d.value="asc",b.value=[null]),o.clientSort?l&&o.sortHandlerFunction?o.sortHandlerFunction({key:a,prevKey:s,sortColumnOrder:d.value,data:f.value}):W(a,s,d.value,f.value):o.paginationOffset||ce(),q()},De=({page:t})=>{u.value=t},Fe=({pageSize:t})=>{b.value=[null],k.value=null,B.value=t,u.value=1,q()},Re=t=>{t&&t.target&&typeof t.target.scrollTop=="number"&&(t.target.scrollTop>1?w.value=!0:t.target.scrollTop===0&&(w.value=!w.value))},xe=e.computed(()=>({pageSize:B.value,sortColumnKey:v.value,sortColumnOrder:d.value,...o.resizeColumns?{columnWidths:A.value}:{},...X.value?{columnVisibility:M.value}:{}})),q=()=>{ue.value==="success"&&V("update:table-preferences",xe.value)},je=()=>{u.value++,k.value=$.value},Ue=()=>{u.value--,k.value=x.value},We=e.computed(()=>!!(o.fetcher&&!o.disablePagination&&!(!o.paginationOffset&&o.hidePaginationWhenOptional&&D.value<=(o.paginationPageSizes[0]??pe.DEFAULT_PAGE_SIZE))&&!(o.paginationOffset&&o.hidePaginationWhenOptional&&!x.value&&!$.value&&f.value.length<(o.paginationPageSizes[0]??pe.DEFAULT_PAGE_SIZE)))),de=t=>t.toLowerCase().replace(/[^[a-z0-9]/gi,"-");e.watch([M,E],t=>{const a=t[0],s=t[1].filter(n=>a[n.key]!==!1);JSON.stringify(s)!==JSON.stringify(y.value)&&(y.value=s,q())},{deep:!0,immediate:!0}),e.watch(re,t=>{t?.length&&!f.value.length&&(f.value=t)},{deep:!0,immediate:!0}),e.watch(j,()=>{switch(j.value){case se.PENDING:S.value=!0;break;case se.VALIDATING_HAS_DATA:S.value=I.value;break;default:S.value=!1;break}},{immediate:!0}),e.watch([ie,ue],t=>{V("state",{state:t?.[1],hasData:t?.[0]?.hasData})}),e.watch(()=>o.searchInput,t=>{u.value!==1&&(u.value=1),t===""?Ve(t):$e(t)},{immediate:!0});const I=e.ref(!1);return e.watch([oe,u,B],async(t,a)=>{const l=a?.[0],s=t[0],n=t[1];s!==l&&n!==1&&(u.value=1,b.value=[null],k.value=null),F.value&&!le.value&&(I.value=!0,s!==""&&s!==l?await ce():await Ke(),I.value=!1)},{deep:!0,immediate:!0}),e.watch(O,t=>{t&&(M.value=o.tablePreferences.columnVisibility||{})},{immediate:!0}),e.onMounted(()=>{console.warn(`The Kongponents 'KTable' component is deprecated and will be removed in the next major release.
2
2
  We suggest using 'KTableData' component instead.
3
3
  Docs: https://kongponents.konghq.com/components/table-data.html`),Oe()}),(t,a)=>(e.openBlock(),e.createElementBlock("div",et,[Se.value?(e.openBlock(),e.createElementBlock("div",tt,[e.renderSlot(t.$slots,"toolbar",{state:ie.value},void 0,!0),O.value?(e.openBlock(),e.createElementBlock("div",at,[e.createVNode(Ye.default,{columns:he.value,"table-id":e.unref(m),"visibility-preferences":ke.value,onUpdate:a[0]||(a[0]=l=>M.value=l)},null,8,["columns","table-id","visibility-preferences"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),(S.value||r.loading||I.value)&&!r.error?(e.openBlock(),e.createBlock(Ge.default,{key:1,"data-testid":"table-skeleton",type:"table"})):r.error?(e.openBlock(),e.createElementBlock("div",lt,[e.renderSlot(t.$slots,"error-state",{},()=>[e.createVNode(fe.default,{"icon-variant":"error",message:r.errorStateMessage,title:r.errorStateTitle},e.createSlots({_:2},[r.errorStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(ve.default,{"data-testid":de(r.errorStateActionMessage),to:r.errorStateActionRoute?r.errorStateActionRoute:void 0,onClick:a[1]||(a[1]=l=>t.$emit("error-action-click"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.errorStateActionMessage),1)]),_:1},8,["data-testid","to"])]),key:"0"}:void 0]),1032,["message","title"])],!0)])):!r.error&&!S.value&&!r.loading&&!I.value&&f.value&&!f.value.length?(e.openBlock(),e.createElementBlock("div",ot,[e.renderSlot(t.$slots,"empty-state",{},()=>[e.createVNode(fe.default,{"icon-variant":r.emptyStateIconVariant,message:r.emptyStateMessage,title:r.emptyStateTitle},e.createSlots({_:2},[r.emptyStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(ve.default,{appearance:r.searchInput?"tertiary":"primary","data-testid":de(r.emptyStateActionMessage),to:r.emptyStateActionRoute?r.emptyStateActionRoute:void 0,onClick:a[2]||(a[2]=l=>t.$emit("empty-state-action-click"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"empty-state-action-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(r.emptyStateActionMessage),1)]),_:3},8,["appearance","data-testid","to"])]),key:"0"}:void 0]),1032,["icon-variant","message","title"])],!0)])):(e.openBlock(),e.createElementBlock("div",rt,[e.createElementVNode("div",{class:"table-wrapper",style:e.normalizeStyle(Ce.value),onScrollPassive:Re},[e.createElementVNode("table",{class:e.normalizeClass(["table",{"has-hover":r.rowHover,"is-clickable":H.value}]),"data-tableid":e.unref(m)},[e.createElementVNode("thead",{class:e.normalizeClass({"is-scrolled":w.value})},[e.createElementVNode("tr",{ref_key:"headerRow",ref:J,class:e.normalizeClass({"is-scrolled":w.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(l,s)=>(e.openBlock(),e.createElementBlock("th",{key:`table-${e.unref(m)}-headers-${s}`,"aria-sort":r.sortable&&l.key===v.value?d.value==="asc"?"ascending":"descending":void 0,class:e.normalizeClass(["table-headers",Be(l,s)]),"data-testid":`table-header-${l.key}`,style:e.normalizeStyle(_.value[l.key]),onClick:()=>{r.sortable&&l.sortable&&(t.$emit("sort",{prevKey:v.value,sortColumnKey:l.key,sortColumnOrder:d.value==="asc"?"desc":"asc"}),Le(l))},onMouseleave:a[7]||(a[7]=n=>T.value=""),onMouseover:n=>T.value=l.key},[r.resizeColumns&&s!==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"resize-handle previous",onClick:a[3]||(a[3]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>ae(n,y.value[s-1].key),onMouseleave:a[4]||(a[4]=n=>z.value=""),onMouseover:n=>z.value=y.value[s-1].key},null,40,it)):e.createCommentVNode("",!0),e.createElementVNode("div",{"aria-describedby":l.tooltip||t.$slots[N(l.key)]?`${N(l.key)}-${e.unref(m)}`:void 0,class:e.normalizeClass(["table-headers-container",{resized:P.value===l.key}])},[e.renderSlot(t.$slots,ze(l.key),{column:R(l)},()=>[e.createElementVNode("span",{class:e.normalizeClass(["table-header-label",{"sr-only":l.hideLabel}])},e.toDisplayString(l.label?l.label:l.key),3)],!0),l.tooltip||t.$slots[N(l.key)]?(e.openBlock(),e.createBlock(Xe.default,{key:0,"data-testid":N(l.key),"tooltip-id":`${N(l.key)}-${e.unref(m)}`},{content:e.withCtx(()=>[e.renderSlot(t.$slots,N(l.key),{column:R(l)},()=>[e.createTextVNode(e.toDisplayString(l.tooltip),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(ge.InfoIcon),{class:"header-tooltip-trigger",color:`var(--kui-color-text-neutral, ${e.unref(K.KUI_COLOR_TEXT_NEUTRAL)})`,size:`var(--kui-icon-size-30, ${e.unref(K.KUI_ICON_SIZE_30)})`},null,8,["color","size"])]),_:2},1032,["data-testid","tooltip-id"])):e.createCommentVNode("",!0),r.sortable&&!l.hideLabel&&l.sortable?(e.openBlock(),e.createBlock(e.unref(ge.ArrowDownIcon),{key:1,class:"sort-icon",color:`var(--kui-color-text-neutral, ${e.unref(K.KUI_COLOR_TEXT_NEUTRAL)})`,size:`var(--kui-icon-size-30, ${e.unref(K.KUI_ICON_SIZE_30)})`},null,8,["color","size"])):e.createCommentVNode("",!0)],10,ut),r.resizeColumns&&s!==y.value.length-1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"resize-handle",onClick:a[5]||(a[5]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>ae(n,l.key),onMouseleave:a[6]||(a[6]=n=>z.value=""),onMouseover:n=>z.value=l.key},null,40,ct)):e.createCommentVNode("",!0)],46,st))),128))],2)],2),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("tr",e.mergeProps({ref_for:!0},r.rowAttrs(l),{key:`table-${e.unref(m)}-row-${s}`,role:H.value?"link":null,tabindex:H.value?0:null}),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(n,i)=>(e.openBlock(),e.createElementBlock("td",e.mergeProps({ref_for:!0},r.cellAttrs({headerKey:n.key,row:l,rowIndex:s,colIndex:i}),{key:`table-${e.unref(m)}-cell-${i}`,class:{"resize-hover":r.resizeColumns&&ee.value===n.key&&i!==y.value.length-1},style:_.value[n.key]},e.toHandlers(we.value(l[n.key],l),!0)),[e.renderSlot(t.$slots,n.key,{row:R(l),rowKey:s,rowValue:l[n.key]},()=>[e.createTextVNode(e.toDisplayString(l[n.key]),1)],!0)],16))),128))],16,dt))),128))])],10,nt)],36),We.value?(e.openBlock(),e.createBlock(Je.default,{key:0,class:"table-pagination","current-page":u.value,"data-testid":"table-pagination","disable-page-jump":r.disablePaginationPageJump,"initial-page-size":B.value,neighbors:r.paginationNeighbors,offset:r.paginationOffset,"offset-next-button-disabled":!$.value||!Q.value,"offset-previous-button-disabled":!x.value,"page-sizes":r.paginationPageSizes,"total-count":D.value,onGetNextOffset:je,onGetPreviousOffset:Ue,onPageChange:De,onPageSizeChange:Fe},null,8,["current-page","disable-page-jump","initial-page-size","neighbors","offset","offset-next-button-disabled","offset-previous-button-disabled","page-sizes","total-count"])):e.createCommentVNode("",!0)]))]))}});exports.default=vt;
@@ -7,13 +7,13 @@ import St from "./kongponents61.es.js";
7
7
  import Ct from "./kongponents30.es.js";
8
8
  /* empty css */
9
9
  import { InfoIcon as zt, ArrowDownIcon as $t } from "@kong/icons";
10
- import Pt from "./kongponents187.es.js";
10
+ import Pt from "./kongponents191.es.js";
11
11
  import "./kongponents7.es.js";
12
12
  import "./kongponents12.es.js";
13
13
  import { EmptyStateIconVariants as At } from "./kongponents13.es.js";
14
- import { KUI_ICON_SIZE_30 as Ne, KUI_COLOR_TEXT_NEUTRAL as Ke } from "./kongponents182.es.js";
15
- import Ot from "./kongponents189.es.js";
16
- import { normalizeSize as wt } from "./kongponents185.es.js";
14
+ import { KUI_ICON_SIZE_30 as Ne, KUI_COLOR_TEXT_NEUTRAL as Ke } from "./kongponents184.es.js";
15
+ import Ot from "./kongponents185.es.js";
16
+ import { normalizeSize as wt } from "./kongponents189.es.js";
17
17
  import { DEFAULT_PAGE_SIZE as Ee } from "./kongponents181.es.js";
18
18
  const It = { class: "k-table" }, Ht = {
19
19
  key: 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("./kongponents187.cjs"),R=require("./kongponents57.cjs"),n=require("./kongponents191.cjs"),q=["data-value"],$=["id","aria-invalid","rows","value"],h=2048,p=n.IS_MAYBE_FIREFOX?0:n.getScrollbarSize(),S=n.cssSupports("field-sizing","content"),D=e.defineComponent({inheritAttrs:!1,__name:"KTextArea",props:{modelValue:{default:""},label:{default:""},labelAttributes:{default:()=>({})},characterLimit:{type:[Boolean,Number],default:()=>h},rows:{default:5},error:{type:Boolean},resizable:{type:Boolean},autosize:{type:Boolean},help:{default:""},isResizable:{type:Boolean},hasError:{type:Boolean}},emits:["input","update:modelValue","char-limit-exceeded"],setup(a,{emit:E}){e.useCssVars(t=>({v557cc968:t.rows})),e.watch(()=>a.isResizable,t=>{t&&console.warn("KTextArea: `isResizable` prop is deprecated in favor of `resizable` prop. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#ktextarea")},{immediate:!0}),e.watch(()=>a.hasError,t=>{t&&console.warn("KTextArea: `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#ktextarea")},{immediate:!0});const s=E,i=e.useAttrs(),u=e.useSlots(),{stripRequiredLabel:k}=C.default(),v=e.computed(()=>i?.required!==void 0&&String(i?.required)!=="false"),l=e.ref(""),x=e.computed(()=>k(a.label,v.value)),y=()=>!!(a.labelAttributes?.help||a.labelAttributes?.info||u["label-tooltip"]),T=e.computed(()=>a.error||a.hasError||o.value?!0:void 0),f=e.ref(0),A=e.computed({get(){return a.modelValue},set(t){c({target:{value:t}})}}),L=e.useId(),g=e.computed(()=>i.id?String(i.id):L),z=e.computed(()=>{const t={...i};return delete t.class,t}),o=e.computed(()=>typeof a.characterLimit=="boolean"?a.characterLimit?l.value.length>h:!1:l.value.length>a.characterLimit),c=t=>{const r=JSON.parse(JSON.stringify(t?.target?.value));s("input",r),s("update:modelValue",r),l.value=r},B=()=>!o.value&&!!(a.help||u.help),d=e.computed(()=>{const t=typeof a.characterLimit=="number"?a.characterLimit:h;return o.value?`${l.value?.toString().length} / ${t}`:a.help});e.watch(o,(t,r)=>{t!==r&&(s("char-limit-exceeded",{value:l.value,length:l.value.length,characterLimit:Number(a.characterLimit),limitExceeded:t}),f.value+=1)}),e.watch(A,(t,r)=>{t!==r&&c({target:{value:t}})});const w=()=>l.value?l.value:a.modelValue,b=n.IS_MAYBE_FIREFOX?()=>{}:t=>{const{target:r,clientX:m,clientY:I}=t;if(!(r instanceof HTMLTextAreaElement))return;const{right:N,bottom:V}=r.getBoundingClientRect();m>N-p&&I>V-p&&(r.style.height="")};return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-textarea",[t.$attrs.class,{"input-error":a.error||a.hasError||o.value}]])},[a.label||t.$slots.label?(e.openBlock(),e.createBlock(R.default,e.mergeProps({key:0,for:g.value},a.labelAttributes,{required:v.value}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(x.value),1)],!0)]),_:2},[y()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["input-textarea-wrapper",{autosize:a.autosize,legacy:a.autosize&&!e.unref(S)}]),"data-allow-mismatch":"class","data-value":e.unref(S)?null:l.value},[e.createElementVNode("textarea",e.mergeProps({id:g.value},z.value,{"aria-invalid":T.value,class:["input-textarea",{resizable:a.resizable||a.isResizable}],rows:a.rows,value:w(),onDblclick:r[0]||(r[0]=(...m)=>e.unref(b)&&e.unref(b)(...m)),onInput:c}),null,16,$)],10,q),e.createVNode(e.Transition,{mode:"out-in",name:"kongponents-fade-transition"},{default:e.withCtx(()=>[d.value||u.help?(e.openBlock(),e.createElementBlock("p",{key:String(f.value),class:"help-text"},[B()?e.renderSlot(t.$slots,"help",{},()=>[e.createTextVNode(e.toDisplayString(d.value),1)],!0,0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(d.value),1)],64))])):e.createCommentVNode("",!0)]),_:3})],2))}});exports.default=D;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("./kongponents191.cjs"),R=require("./kongponents57.cjs"),n=require("./kongponents187.cjs"),q=["data-value"],$=["id","aria-invalid","rows","value"],h=2048,p=n.IS_MAYBE_FIREFOX?0:n.getScrollbarSize(),S=n.cssSupports("field-sizing","content"),D=e.defineComponent({inheritAttrs:!1,__name:"KTextArea",props:{modelValue:{default:""},label:{default:""},labelAttributes:{default:()=>({})},characterLimit:{type:[Boolean,Number],default:()=>h},rows:{default:5},error:{type:Boolean},resizable:{type:Boolean},autosize:{type:Boolean},help:{default:""},isResizable:{type:Boolean},hasError:{type:Boolean}},emits:["input","update:modelValue","char-limit-exceeded"],setup(a,{emit:E}){e.useCssVars(t=>({v557cc968:t.rows})),e.watch(()=>a.isResizable,t=>{t&&console.warn("KTextArea: `isResizable` prop is deprecated in favor of `resizable` prop. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#ktextarea")},{immediate:!0}),e.watch(()=>a.hasError,t=>{t&&console.warn("KTextArea: `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#ktextarea")},{immediate:!0});const s=E,i=e.useAttrs(),u=e.useSlots(),{stripRequiredLabel:k}=C.default(),v=e.computed(()=>i?.required!==void 0&&String(i?.required)!=="false"),l=e.ref(""),x=e.computed(()=>k(a.label,v.value)),y=()=>!!(a.labelAttributes?.help||a.labelAttributes?.info||u["label-tooltip"]),T=e.computed(()=>a.error||a.hasError||o.value?!0:void 0),f=e.ref(0),A=e.computed({get(){return a.modelValue},set(t){c({target:{value:t}})}}),L=e.useId(),g=e.computed(()=>i.id?String(i.id):L),z=e.computed(()=>{const t={...i};return delete t.class,t}),o=e.computed(()=>typeof a.characterLimit=="boolean"?a.characterLimit?l.value.length>h:!1:l.value.length>a.characterLimit),c=t=>{const r=JSON.parse(JSON.stringify(t?.target?.value));s("input",r),s("update:modelValue",r),l.value=r},B=()=>!o.value&&!!(a.help||u.help),d=e.computed(()=>{const t=typeof a.characterLimit=="number"?a.characterLimit:h;return o.value?`${l.value?.toString().length} / ${t}`:a.help});e.watch(o,(t,r)=>{t!==r&&(s("char-limit-exceeded",{value:l.value,length:l.value.length,characterLimit:Number(a.characterLimit),limitExceeded:t}),f.value+=1)}),e.watch(A,(t,r)=>{t!==r&&c({target:{value:t}})});const w=()=>l.value?l.value:a.modelValue,b=n.IS_MAYBE_FIREFOX?()=>{}:t=>{const{target:r,clientX:m,clientY:I}=t;if(!(r instanceof HTMLTextAreaElement))return;const{right:N,bottom:V}=r.getBoundingClientRect();m>N-p&&I>V-p&&(r.style.height="")};return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-textarea",[t.$attrs.class,{"input-error":a.error||a.hasError||o.value}]])},[a.label||t.$slots.label?(e.openBlock(),e.createBlock(R.default,e.mergeProps({key:0,for:g.value},a.labelAttributes,{required:v.value}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(x.value),1)],!0)]),_:2},[y()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["input-textarea-wrapper",{autosize:a.autosize,legacy:a.autosize&&!e.unref(S)}]),"data-allow-mismatch":"class","data-value":e.unref(S)?null:l.value},[e.createElementVNode("textarea",e.mergeProps({id:g.value},z.value,{"aria-invalid":T.value,class:["input-textarea",{resizable:a.resizable||a.isResizable}],rows:a.rows,value:w(),onDblclick:r[0]||(r[0]=(...m)=>e.unref(b)&&e.unref(b)(...m)),onInput:c}),null,16,$)],10,q),e.createVNode(e.Transition,{mode:"out-in",name:"kongponents-fade-transition"},{default:e.withCtx(()=>[d.value||u.help?(e.openBlock(),e.createElementBlock("p",{key:String(f.value),class:"help-text"},[B()?e.renderSlot(t.$slots,"help",{},()=>[e.createTextVNode(e.toDisplayString(d.value),1)],!0,0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(d.value),1)],64))])):e.createCommentVNode("",!0)]),_:3})],2))}});exports.default=D;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as J, useCssVars as X, watch as n, useAttrs as Y, useSlots as G, computed as r, ref as k, useId as j, openBlock as s, createElementBlock as f, normalizeClass as z, createBlock as Q, mergeProps as T, createSlots as W, withCtx as g, renderSlot as b, createTextVNode as S, toDisplayString as E, createCommentVNode as I, createElementVNode as N, unref as u, createVNode as _, Transition as ee, Fragment as te } from "vue";
2
- import ae from "./kongponents187.es.js";
2
+ import ae from "./kongponents191.es.js";
3
3
  import le from "./kongponents57.es.js";
4
- import { IS_MAYBE_FIREFOX as w, getScrollbarSize as re, cssSupports as ie } from "./kongponents191.es.js";
4
+ import { IS_MAYBE_FIREFOX as w, getScrollbarSize as re, cssSupports as ie } from "./kongponents187.es.js";
5
5
  const oe = ["data-value"], ne = ["id", "aria-invalid", "rows", "value"], p = 2048, R = w ? 0 : re(), B = ie("field-sizing", "content"), me = /* @__PURE__ */ J({
6
6
  inheritAttrs: !1,
7
7
  __name: "KTextArea",