@kong/kongponents 9.65.1 → 9.65.2-pr.3468.fffd3f6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (804) hide show
  1. package/dist/kongponents.css +1 -1
  2. package/dist/kongponents.umd.js +1 -1
  3. package/dist/kongponents105.cjs +1 -1
  4. package/dist/kongponents105.es.js +4 -4
  5. package/dist/kongponents122.cjs +1 -1
  6. package/dist/kongponents122.es.js +1 -1
  7. package/dist/kongponents124.cjs +1 -1
  8. package/dist/kongponents124.es.js +3 -3
  9. package/dist/kongponents128.cjs +1 -1
  10. package/dist/kongponents128.es.js +4 -4
  11. package/dist/kongponents131.cjs +1 -1
  12. package/dist/kongponents131.es.js +2 -2
  13. package/dist/kongponents133.cjs +1 -1
  14. package/dist/kongponents133.es.js +3 -3
  15. package/dist/kongponents139.cjs +1 -1
  16. package/dist/kongponents139.es.js +1 -1
  17. package/dist/kongponents141.cjs +1 -1
  18. package/dist/kongponents141.es.js +5 -5
  19. package/dist/kongponents148.cjs +1 -1
  20. package/dist/kongponents148.es.js +3 -3
  21. package/dist/kongponents150.cjs +1 -1
  22. package/dist/kongponents150.es.js +1 -1
  23. package/dist/kongponents152.cjs +1 -1
  24. package/dist/kongponents152.es.js +2 -2
  25. package/dist/kongponents156.cjs +1 -1
  26. package/dist/kongponents156.es.js +1 -1
  27. package/dist/kongponents164.cjs +1 -1
  28. package/dist/kongponents164.es.js +1 -1
  29. package/dist/kongponents166.cjs +1 -1
  30. package/dist/kongponents166.es.js +3 -3
  31. package/dist/kongponents168.cjs +1 -1
  32. package/dist/kongponents168.es.js +1 -1
  33. package/dist/kongponents170.cjs +1 -1
  34. package/dist/kongponents170.es.js +6 -6
  35. package/dist/kongponents175.cjs +1 -1
  36. package/dist/kongponents175.es.js +2 -2
  37. package/dist/kongponents184.cjs +1 -1
  38. package/dist/kongponents184.es.js +15 -5
  39. package/dist/kongponents185.cjs +1 -1
  40. package/dist/kongponents185.es.js +4 -4
  41. package/dist/kongponents186.cjs +1 -1
  42. package/dist/kongponents186.es.js +5 -21
  43. package/dist/kongponents187.cjs +1 -1
  44. package/dist/kongponents187.es.js +5 -208
  45. package/dist/kongponents188.cjs +1 -1
  46. package/dist/kongponents188.es.js +5 -5
  47. package/dist/kongponents189.cjs +1 -1
  48. package/dist/kongponents189.es.js +17 -5
  49. package/dist/kongponents190.cjs +1 -1
  50. package/dist/kongponents190.es.js +208 -5
  51. package/dist/kongponents191.cjs +1 -1
  52. package/dist/kongponents191.es.js +5 -5
  53. package/dist/kongponents192.cjs +1 -0
  54. package/dist/kongponents192.es.js +12 -0
  55. package/dist/kongponents193.cjs +1 -1
  56. package/dist/kongponents193.es.js +21 -5
  57. package/dist/kongponents194.cjs +1 -1
  58. package/dist/kongponents194.es.js +4 -7
  59. package/dist/kongponents195.cjs +1 -1
  60. package/dist/kongponents195.es.js +5 -60
  61. package/dist/kongponents196.cjs +1 -1
  62. package/dist/kongponents196.es.js +5 -17
  63. package/dist/kongponents197.cjs +1 -1
  64. package/dist/kongponents197.es.js +5 -36
  65. package/dist/kongponents198.cjs +1 -2
  66. package/dist/kongponents198.es.js +5 -98
  67. package/dist/kongponents199.cjs +1 -1
  68. package/dist/kongponents199.es.js +5 -19
  69. package/dist/kongponents200.cjs +1 -1
  70. package/dist/kongponents200.es.js +2 -52
  71. package/dist/kongponents202.cjs +1 -1
  72. package/dist/kongponents202.es.js +5 -2
  73. package/dist/kongponents203.cjs +1 -1
  74. package/dist/kongponents203.es.js +3 -3
  75. package/dist/kongponents204.cjs +1 -1
  76. package/dist/kongponents204.es.js +3 -3
  77. package/dist/kongponents205.cjs +1 -1
  78. package/dist/kongponents205.es.js +4 -6
  79. package/dist/kongponents206.cjs +1 -1
  80. package/dist/kongponents206.es.js +5 -181
  81. package/dist/kongponents207.cjs +1 -1
  82. package/dist/kongponents207.es.js +5 -15
  83. package/dist/kongponents208.cjs +1 -1
  84. package/dist/kongponents208.es.js +3 -3
  85. package/dist/kongponents209.cjs +1 -1
  86. package/dist/kongponents209.es.js +36 -5
  87. package/dist/kongponents210.cjs +2 -1
  88. package/dist/kongponents210.es.js +98 -5
  89. package/dist/kongponents211.cjs +1 -1
  90. package/dist/kongponents211.es.js +19 -5
  91. package/dist/kongponents212.cjs +1 -1
  92. package/dist/kongponents212.es.js +52 -5
  93. package/dist/kongponents214.cjs +1 -1
  94. package/dist/kongponents214.es.js +4 -4
  95. package/dist/kongponents215.cjs +1 -1
  96. package/dist/kongponents215.es.js +8 -5
  97. package/dist/kongponents216.cjs +1 -1
  98. package/dist/kongponents216.es.js +60 -5
  99. package/dist/kongponents217.cjs +1 -1
  100. package/dist/kongponents217.es.js +6 -4
  101. package/dist/kongponents218.cjs +1 -1
  102. package/dist/kongponents218.es.js +181 -10
  103. package/dist/kongponents219.cjs +1 -1
  104. package/dist/kongponents219.es.js +55 -31
  105. package/dist/kongponents221.cjs +1 -0
  106. package/dist/kongponents221.es.js +93 -0
  107. package/dist/{kongponents227.cjs → kongponents223.cjs} +1 -1
  108. package/dist/{kongponents227.es.js → kongponents223.es.js} +1 -1
  109. package/dist/kongponents225.cjs +1 -1
  110. package/dist/kongponents225.es.js +31 -91
  111. package/dist/kongponents226.cjs +1 -0
  112. package/dist/kongponents226.es.js +85 -0
  113. package/dist/kongponents228.cjs +1 -0
  114. package/dist/{kongponents222.es.js → kongponents228.es.js} +13 -17
  115. package/dist/kongponents230.cjs +1 -1
  116. package/dist/kongponents230.es.js +78 -173
  117. package/dist/kongponents232.cjs +1 -1
  118. package/dist/kongponents232.es.js +43 -22
  119. package/dist/kongponents234.cjs +1 -1
  120. package/dist/kongponents234.es.js +171 -41
  121. package/dist/kongponents236.cjs +1 -1
  122. package/dist/kongponents236.es.js +60 -30
  123. package/dist/kongponents238.cjs +1 -1
  124. package/dist/kongponents238.es.js +52 -20
  125. package/dist/kongponents240.cjs +1 -1
  126. package/dist/kongponents240.es.js +21 -42
  127. package/dist/kongponents242.cjs +1 -1
  128. package/dist/kongponents242.es.js +42 -35
  129. package/dist/kongponents244.cjs +1 -0
  130. package/dist/kongponents244.es.js +36 -0
  131. package/dist/kongponents246.cjs +1 -0
  132. package/dist/kongponents246.es.js +25 -0
  133. package/dist/kongponents248.cjs +1 -1
  134. package/dist/kongponents248.es.js +45 -5
  135. package/dist/kongponents25.cjs +1 -1
  136. package/dist/kongponents25.es.js +6 -6
  137. package/dist/kongponents250.cjs +1 -1
  138. package/dist/kongponents250.es.js +41 -4
  139. package/dist/kongponents252.cjs +1 -1
  140. package/dist/kongponents252.es.js +4 -5
  141. package/dist/kongponents253.cjs +1 -1
  142. package/dist/kongponents253.es.js +5 -9
  143. package/dist/kongponents254.cjs +1 -1
  144. package/dist/kongponents254.es.js +19 -5
  145. package/dist/kongponents255.cjs +1 -1
  146. package/dist/kongponents255.es.js +3 -3
  147. package/dist/kongponents256.cjs +1 -1
  148. package/dist/kongponents256.es.js +5 -16
  149. package/dist/kongponents257.cjs +1 -1
  150. package/dist/kongponents257.es.js +4 -3
  151. package/dist/kongponents258.cjs +1 -1
  152. package/dist/kongponents258.es.js +6 -8
  153. package/dist/kongponents259.cjs +1 -1
  154. package/dist/kongponents259.es.js +8 -6
  155. package/dist/kongponents260.cjs +1 -1
  156. package/dist/kongponents260.es.js +5 -3
  157. package/dist/kongponents261.cjs +1 -1
  158. package/dist/kongponents261.es.js +4 -2
  159. package/dist/kongponents262.cjs +1 -1
  160. package/dist/kongponents262.es.js +16 -5
  161. package/dist/kongponents263.cjs +1 -1
  162. package/dist/kongponents263.es.js +3 -9
  163. package/dist/kongponents264.cjs +1 -1
  164. package/dist/kongponents264.es.js +8 -5
  165. package/dist/kongponents265.cjs +1 -1
  166. package/dist/kongponents265.es.js +7 -4
  167. package/dist/kongponents266.cjs +1 -1
  168. package/dist/kongponents266.es.js +4 -3
  169. package/dist/kongponents267.cjs +1 -1
  170. package/dist/kongponents267.es.js +2 -4
  171. package/dist/kongponents268.cjs +1 -1
  172. package/dist/kongponents268.es.js +5 -7
  173. package/dist/kongponents269.cjs +1 -1
  174. package/dist/kongponents269.es.js +9 -6
  175. package/dist/kongponents27.cjs +1 -1
  176. package/dist/kongponents27.es.js +1 -1
  177. package/dist/kongponents270.cjs +1 -1
  178. package/dist/kongponents270.es.js +5 -5
  179. package/dist/kongponents271.cjs +1 -1
  180. package/dist/kongponents271.es.js +4 -10
  181. package/dist/kongponents272.cjs +1 -1
  182. package/dist/kongponents272.es.js +3 -6
  183. package/dist/kongponents273.cjs +1 -1
  184. package/dist/kongponents273.es.js +4 -9
  185. package/dist/kongponents274.cjs +1 -1
  186. package/dist/kongponents274.es.js +7 -6
  187. package/dist/kongponents275.cjs +1 -1
  188. package/dist/kongponents275.es.js +6 -17
  189. package/dist/kongponents276.cjs +1 -1
  190. package/dist/kongponents276.es.js +5 -12
  191. package/dist/kongponents277.cjs +1 -1
  192. package/dist/kongponents277.es.js +9 -6
  193. package/dist/kongponents278.cjs +1 -1
  194. package/dist/kongponents278.es.js +4 -11
  195. package/dist/kongponents279.cjs +1 -1
  196. package/dist/kongponents279.es.js +9 -10
  197. package/dist/kongponents280.cjs +1 -1
  198. package/dist/kongponents280.es.js +6 -5
  199. package/dist/kongponents281.cjs +1 -1
  200. package/dist/kongponents281.es.js +17 -8
  201. package/dist/kongponents282.cjs +1 -1
  202. package/dist/kongponents282.es.js +11 -15
  203. package/dist/kongponents283.cjs +1 -1
  204. package/dist/kongponents283.es.js +6 -17
  205. package/dist/kongponents284.cjs +1 -1
  206. package/dist/kongponents284.es.js +12 -5
  207. package/dist/kongponents285.cjs +1 -1
  208. package/dist/kongponents285.es.js +9 -10
  209. package/dist/kongponents286.cjs +1 -1
  210. package/dist/kongponents286.es.js +5 -6
  211. package/dist/kongponents287.cjs +1 -1
  212. package/dist/kongponents287.es.js +8 -7
  213. package/dist/kongponents288.cjs +1 -1
  214. package/dist/kongponents288.es.js +14 -4
  215. package/dist/kongponents289.cjs +1 -1
  216. package/dist/kongponents289.es.js +17 -6
  217. package/dist/kongponents290.cjs +1 -1
  218. package/dist/kongponents290.es.js +5 -9
  219. package/dist/kongponents291.cjs +1 -1
  220. package/dist/kongponents291.es.js +10 -7
  221. package/dist/kongponents292.cjs +1 -1
  222. package/dist/kongponents292.es.js +6 -3
  223. package/dist/kongponents293.cjs +1 -1
  224. package/dist/kongponents293.es.js +7 -5
  225. package/dist/kongponents294.cjs +1 -1
  226. package/dist/kongponents294.es.js +5 -15
  227. package/dist/kongponents295.cjs +1 -1
  228. package/dist/kongponents295.es.js +7 -178
  229. package/dist/kongponents296.cjs +1 -0
  230. package/dist/kongponents296.es.js +12 -0
  231. package/dist/kongponents297.cjs +1 -1
  232. package/dist/kongponents297.es.js +7 -20
  233. package/dist/kongponents298.cjs +1 -1
  234. package/dist/kongponents298.es.js +4 -5
  235. package/dist/kongponents299.cjs +1 -1
  236. package/dist/kongponents299.es.js +5 -96
  237. package/dist/kongponents300.cjs +1 -1
  238. package/dist/kongponents300.es.js +15 -171
  239. package/dist/kongponents301.cjs +1 -1
  240. package/dist/kongponents301.es.js +2 -5
  241. package/dist/kongponents303.cjs +1 -1
  242. package/dist/kongponents303.es.js +8 -5
  243. package/dist/kongponents304.cjs +1 -1
  244. package/dist/kongponents304.es.js +6 -5
  245. package/dist/kongponents305.cjs +1 -1
  246. package/dist/kongponents305.es.js +6 -67
  247. package/dist/kongponents306.cjs +1 -1
  248. package/dist/kongponents306.es.js +6 -2
  249. package/dist/kongponents307.cjs +1 -1
  250. package/dist/kongponents307.es.js +9 -8
  251. package/dist/kongponents308.cjs +1 -1
  252. package/dist/kongponents308.es.js +14 -6
  253. package/dist/kongponents309.cjs +1 -1
  254. package/dist/kongponents309.es.js +3 -8
  255. package/dist/kongponents310.cjs +1 -1
  256. package/dist/kongponents310.es.js +7 -4
  257. package/dist/kongponents311.cjs +1 -1
  258. package/dist/kongponents311.es.js +3 -10
  259. package/dist/kongponents312.cjs +1 -1
  260. package/dist/kongponents312.es.js +10 -8
  261. package/dist/kongponents313.cjs +1 -1
  262. package/dist/kongponents313.es.js +7 -601
  263. package/dist/kongponents314.cjs +1 -1
  264. package/dist/kongponents314.es.js +6 -71
  265. package/dist/kongponents315.cjs +1 -1
  266. package/dist/kongponents315.es.js +2 -5
  267. package/dist/kongponents316.cjs +1 -1
  268. package/dist/kongponents316.es.js +12 -19
  269. package/dist/kongponents317.cjs +1 -1
  270. package/dist/kongponents317.es.js +4 -4
  271. package/dist/kongponents318.cjs +1 -1
  272. package/dist/kongponents318.es.js +3 -18
  273. package/dist/kongponents319.cjs +1 -1
  274. package/dist/kongponents319.es.js +26 -8
  275. package/dist/kongponents32.cjs +1 -1
  276. package/dist/kongponents32.es.js +4 -4
  277. package/dist/kongponents320.cjs +1 -1
  278. package/dist/kongponents320.es.js +4 -6
  279. package/dist/kongponents321.cjs +1 -1
  280. package/dist/kongponents321.es.js +4 -9
  281. package/dist/kongponents322.cjs +1 -1
  282. package/dist/kongponents322.es.js +4 -8
  283. package/dist/kongponents323.cjs +1 -1
  284. package/dist/kongponents323.es.js +4 -8
  285. package/dist/kongponents324.cjs +1 -1
  286. package/dist/kongponents324.es.js +4 -8
  287. package/dist/kongponents325.cjs +1 -1
  288. package/dist/kongponents325.es.js +14 -7
  289. package/dist/kongponents326.cjs +1 -1
  290. package/dist/kongponents326.es.js +5 -124
  291. package/dist/kongponents327.cjs +1 -2
  292. package/dist/kongponents327.es.js +27 -46
  293. package/dist/kongponents328.cjs +1 -1
  294. package/dist/kongponents328.es.js +26 -7
  295. package/dist/kongponents329.cjs +1 -1
  296. package/dist/kongponents329.es.js +16 -57
  297. package/dist/kongponents330.cjs +1 -1
  298. package/dist/kongponents330.es.js +10 -65
  299. package/dist/kongponents331.cjs +1 -1
  300. package/dist/kongponents331.es.js +4 -4
  301. package/dist/kongponents332.cjs +1 -1
  302. package/dist/kongponents332.es.js +14 -4
  303. package/dist/kongponents333.cjs +1 -1
  304. package/dist/kongponents333.es.js +9 -55
  305. package/dist/{kongponents224.cjs → kongponents334.cjs} +1 -1
  306. package/dist/kongponents334.es.js +5 -0
  307. package/dist/kongponents335.cjs +1 -1
  308. package/dist/kongponents335.es.js +6 -83
  309. package/dist/kongponents336.cjs +1 -0
  310. package/dist/kongponents336.es.js +8 -0
  311. package/dist/kongponents337.cjs +1 -1
  312. package/dist/kongponents337.es.js +8 -41
  313. package/dist/kongponents338.cjs +1 -0
  314. package/dist/kongponents338.es.js +8 -0
  315. package/dist/kongponents339.cjs +1 -1
  316. package/dist/kongponents339.es.js +11 -5
  317. package/dist/kongponents340.cjs +1 -1
  318. package/dist/kongponents340.es.js +6 -64
  319. package/dist/{kongponents251.cjs → kongponents341.cjs} +1 -1
  320. package/dist/kongponents341.es.js +7 -0
  321. package/dist/kongponents342.cjs +1 -1
  322. package/dist/kongponents342.es.js +4 -7
  323. package/dist/kongponents343.cjs +1 -1
  324. package/dist/kongponents343.es.js +5 -5
  325. package/dist/kongponents344.cjs +1 -1
  326. package/dist/kongponents344.es.js +8 -9
  327. package/dist/kongponents345.cjs +1 -1
  328. package/dist/kongponents345.es.js +6 -9
  329. package/dist/kongponents346.cjs +1 -1
  330. package/dist/kongponents346.es.js +10 -15
  331. package/dist/kongponents347.cjs +1 -1
  332. package/dist/kongponents347.es.js +6 -5
  333. package/dist/kongponents348.cjs +1 -1
  334. package/dist/kongponents348.es.js +22 -3
  335. package/dist/kongponents349.cjs +1 -1
  336. package/dist/kongponents349.es.js +6 -7
  337. package/dist/kongponents350.cjs +1 -1
  338. package/dist/kongponents350.es.js +7 -3
  339. package/dist/kongponents351.cjs +1 -1
  340. package/dist/kongponents351.es.js +6 -10
  341. package/dist/kongponents352.cjs +1 -1
  342. package/dist/kongponents352.es.js +8 -7
  343. package/dist/kongponents353.cjs +1 -1
  344. package/dist/kongponents353.es.js +182 -6
  345. package/dist/kongponents355.cjs +1 -1
  346. package/dist/kongponents355.es.js +5 -13
  347. package/dist/kongponents356.cjs +1 -1
  348. package/dist/kongponents356.es.js +2 -5
  349. package/dist/kongponents357.cjs +1 -1
  350. package/dist/kongponents357.es.js +121 -3
  351. package/dist/kongponents359.cjs +1 -1
  352. package/dist/kongponents359.es.js +7 -4
  353. package/dist/kongponents360.cjs +1 -1
  354. package/dist/kongponents360.es.js +18 -4
  355. package/dist/kongponents361.cjs +1 -1
  356. package/dist/kongponents361.es.js +5 -4
  357. package/dist/kongponents362.cjs +1 -1
  358. package/dist/kongponents362.es.js +5 -4
  359. package/dist/kongponents363.cjs +1 -1
  360. package/dist/kongponents363.es.js +4 -4
  361. package/dist/kongponents364.cjs +1 -1
  362. package/dist/kongponents364.es.js +3 -14
  363. package/dist/kongponents365.cjs +1 -1
  364. package/dist/kongponents365.es.js +13 -4
  365. package/dist/kongponents366.cjs +1 -1
  366. package/dist/kongponents366.es.js +6 -29
  367. package/dist/kongponents367.cjs +1 -1
  368. package/dist/kongponents367.es.js +8 -27
  369. package/dist/kongponents368.cjs +1 -1
  370. package/dist/kongponents368.es.js +10 -15
  371. package/dist/kongponents369.cjs +1 -1
  372. package/dist/kongponents369.es.js +4 -9
  373. package/dist/kongponents370.cjs +1 -1
  374. package/dist/kongponents370.es.js +3 -4
  375. package/dist/kongponents371.cjs +1 -1
  376. package/dist/kongponents371.es.js +3 -13
  377. package/dist/kongponents372.cjs +1 -1
  378. package/dist/kongponents372.es.js +37 -8
  379. package/dist/kongponents373.cjs +1 -1
  380. package/dist/kongponents373.es.js +43 -3
  381. package/dist/kongponents374.cjs +1 -1
  382. package/dist/kongponents374.es.js +33 -5
  383. package/dist/kongponents375.cjs +1 -1
  384. package/dist/kongponents375.es.js +3 -6
  385. package/dist/kongponents376.cjs +1 -1
  386. package/dist/kongponents376.es.js +16 -6
  387. package/dist/kongponents377.cjs +1 -1
  388. package/dist/kongponents377.es.js +5 -5
  389. package/dist/kongponents378.cjs +1 -1
  390. package/dist/kongponents378.es.js +8 -10
  391. package/dist/kongponents379.cjs +1 -1
  392. package/dist/kongponents379.es.js +6 -5
  393. package/dist/kongponents380.cjs +1 -1
  394. package/dist/kongponents380.es.js +7 -4
  395. package/dist/kongponents381.cjs +1 -1
  396. package/dist/kongponents381.es.js +4 -4
  397. package/dist/kongponents382.cjs +1 -1
  398. package/dist/kongponents382.es.js +9 -5
  399. package/dist/kongponents383.cjs +1 -1
  400. package/dist/kongponents383.es.js +9 -8
  401. package/dist/kongponents384.cjs +1 -1
  402. package/dist/kongponents384.es.js +601 -6
  403. package/dist/kongponents385.cjs +1 -1
  404. package/dist/kongponents385.es.js +71 -10
  405. package/dist/kongponents386.cjs +1 -1
  406. package/dist/kongponents386.es.js +4 -6
  407. package/dist/kongponents387.cjs +1 -1
  408. package/dist/kongponents387.es.js +19 -21
  409. package/dist/kongponents388.cjs +1 -1
  410. package/dist/kongponents388.es.js +4 -6
  411. package/dist/kongponents389.cjs +1 -1
  412. package/dist/kongponents389.es.js +18 -7
  413. package/dist/kongponents390.cjs +1 -1
  414. package/dist/kongponents390.es.js +7 -6
  415. package/dist/kongponents391.cjs +1 -1
  416. package/dist/kongponents391.es.js +5 -8
  417. package/dist/kongponents392.cjs +1 -1
  418. package/dist/kongponents392.es.js +9 -2
  419. package/dist/kongponents393.cjs +1 -1
  420. package/dist/kongponents393.es.js +8 -5
  421. package/dist/kongponents394.cjs +1 -1
  422. package/dist/kongponents394.es.js +8 -121
  423. package/dist/kongponents395.cjs +1 -0
  424. package/dist/kongponents395.es.js +10 -0
  425. package/dist/kongponents396.cjs +1 -1
  426. package/dist/kongponents396.es.js +7 -71
  427. package/dist/kongponents397.cjs +1 -1
  428. package/dist/kongponents397.es.js +125 -2
  429. package/dist/kongponents398.cjs +2 -1
  430. package/dist/kongponents398.es.js +46 -10
  431. package/dist/kongponents399.cjs +1 -1
  432. package/dist/kongponents399.es.js +7 -22
  433. package/dist/kongponents400.cjs +1 -1
  434. package/dist/kongponents400.es.js +56 -21
  435. package/dist/kongponents401.cjs +1 -1
  436. package/dist/kongponents401.es.js +65 -21
  437. package/dist/kongponents402.cjs +1 -1
  438. package/dist/kongponents402.es.js +4 -614
  439. package/dist/kongponents403.cjs +1 -1
  440. package/dist/kongponents403.es.js +4 -81
  441. package/dist/kongponents404.cjs +1 -1
  442. package/dist/kongponents404.es.js +20 -14
  443. package/dist/kongponents405.cjs +1 -1
  444. package/dist/kongponents405.es.js +5 -27
  445. package/dist/kongponents406.cjs +1 -1
  446. package/dist/kongponents406.es.js +95 -15
  447. package/dist/kongponents407.cjs +1 -1
  448. package/dist/kongponents407.es.js +171 -14
  449. package/dist/kongponents408.cjs +1 -1
  450. package/dist/kongponents408.es.js +5 -17
  451. package/dist/kongponents409.cjs +1 -1
  452. package/dist/kongponents409.es.js +6 -14
  453. package/dist/kongponents410.cjs +1 -1
  454. package/dist/kongponents410.es.js +5 -24
  455. package/dist/kongponents411.cjs +1 -1
  456. package/dist/kongponents411.es.js +5 -65
  457. package/dist/kongponents412.cjs +1 -1
  458. package/dist/kongponents412.es.js +69 -4
  459. package/dist/kongponents413.cjs +1 -1
  460. package/dist/kongponents413.es.js +2 -18
  461. package/dist/kongponents414.cjs +1 -1
  462. package/dist/kongponents414.es.js +5 -2
  463. package/dist/kongponents415.cjs +1 -1
  464. package/dist/kongponents415.es.js +94 -18
  465. package/dist/kongponents417.cjs +1 -1
  466. package/dist/kongponents417.es.js +4 -2
  467. package/dist/kongponents418.cjs +1 -1
  468. package/dist/kongponents418.es.js +3 -10
  469. package/dist/kongponents419.cjs +1 -1
  470. package/dist/kongponents419.es.js +9 -10
  471. package/dist/kongponents420.cjs +1 -1
  472. package/dist/kongponents420.es.js +5 -12
  473. package/dist/kongponents421.cjs +1 -1
  474. package/dist/kongponents421.es.js +4 -10
  475. package/dist/kongponents422.cjs +1 -1
  476. package/dist/kongponents422.es.js +5 -18
  477. package/dist/kongponents423.cjs +1 -1
  478. package/dist/kongponents423.es.js +3 -6
  479. package/dist/kongponents424.cjs +1 -1
  480. package/dist/kongponents424.es.js +5 -54
  481. package/dist/kongponents425.cjs +1 -1
  482. package/dist/kongponents425.es.js +5 -2
  483. package/dist/kongponents426.cjs +1 -1
  484. package/dist/kongponents426.es.js +9 -7
  485. package/dist/kongponents427.cjs +1 -1
  486. package/dist/kongponents427.es.js +6 -4
  487. package/dist/kongponents428.cjs +1 -1
  488. package/dist/kongponents428.es.js +6 -13
  489. package/dist/kongponents429.cjs +1 -1
  490. package/dist/kongponents429.es.js +4 -14
  491. package/dist/kongponents430.cjs +1 -1
  492. package/dist/kongponents430.es.js +10 -3
  493. package/dist/kongponents431.cjs +1 -1
  494. package/dist/kongponents431.es.js +10 -12
  495. package/dist/kongponents432.cjs +1 -1
  496. package/dist/kongponents432.es.js +12 -9
  497. package/dist/kongponents433.cjs +1 -1
  498. package/dist/kongponents433.es.js +11 -53
  499. package/dist/kongponents434.cjs +1 -1
  500. package/dist/kongponents434.es.js +19 -57
  501. package/dist/kongponents435.cjs +1 -1
  502. package/dist/kongponents435.es.js +6 -59
  503. package/dist/kongponents436.cjs +1 -1
  504. package/dist/kongponents436.es.js +53 -32
  505. package/dist/kongponents437.cjs +1 -1
  506. package/dist/kongponents437.es.js +2 -31
  507. package/dist/kongponents438.cjs +1 -1
  508. package/dist/kongponents438.es.js +8 -71
  509. package/dist/kongponents439.cjs +1 -1
  510. package/dist/kongponents439.es.js +5 -72
  511. package/dist/kongponents440.cjs +1 -1
  512. package/dist/kongponents440.es.js +13 -77
  513. package/dist/kongponents441.cjs +1 -1
  514. package/dist/kongponents441.es.js +15 -78
  515. package/dist/kongponents442.cjs +1 -1
  516. package/dist/kongponents442.es.js +4 -48
  517. package/dist/kongponents443.cjs +1 -1
  518. package/dist/kongponents443.es.js +12 -47
  519. package/dist/kongponents444.cjs +1 -1
  520. package/dist/kongponents444.es.js +10 -47
  521. package/dist/kongponents445.cjs +1 -1
  522. package/dist/kongponents445.es.js +40 -35
  523. package/dist/kongponents446.cjs +1 -1
  524. package/dist/kongponents446.es.js +46 -69
  525. package/dist/kongponents447.cjs +1 -1
  526. package/dist/kongponents447.es.js +47 -80
  527. package/dist/kongponents448.cjs +1 -1
  528. package/dist/kongponents448.es.js +26 -85
  529. package/dist/kongponents449.cjs +1 -1
  530. package/dist/kongponents449.es.js +25 -85
  531. package/dist/kongponents450.cjs +1 -1
  532. package/dist/kongponents450.es.js +48 -34
  533. package/dist/kongponents451.cjs +1 -1
  534. package/dist/kongponents451.es.js +55 -41
  535. package/dist/kongponents452.cjs +1 -1
  536. package/dist/kongponents452.es.js +55 -35
  537. package/dist/kongponents453.cjs +1 -1
  538. package/dist/kongponents453.es.js +60 -29
  539. package/dist/kongponents454.cjs +1 -1
  540. package/dist/kongponents454.es.js +36 -34
  541. package/dist/kongponents455.cjs +1 -1
  542. package/dist/kongponents455.es.js +26 -25
  543. package/dist/kongponents456.cjs +1 -1
  544. package/dist/kongponents456.es.js +28 -28
  545. package/dist/kongponents457.cjs +1 -1
  546. package/dist/kongponents457.es.js +36 -34
  547. package/dist/kongponents458.cjs +1 -1
  548. package/dist/kongponents458.es.js +66 -32
  549. package/dist/kongponents459.cjs +1 -1
  550. package/dist/kongponents459.es.js +85 -27
  551. package/dist/kongponents460.cjs +1 -1
  552. package/dist/kongponents460.es.js +82 -33
  553. package/dist/kongponents461.cjs +1 -1
  554. package/dist/kongponents461.es.js +83 -35
  555. package/dist/kongponents462.cjs +1 -1
  556. package/dist/kongponents462.es.js +52 -27
  557. package/dist/kongponents463.cjs +1 -1
  558. package/dist/kongponents463.es.js +51 -26
  559. package/dist/kongponents464.cjs +1 -1
  560. package/dist/kongponents464.es.js +57 -93
  561. package/dist/kongponents465.cjs +1 -0
  562. package/dist/kongponents465.es.js +49 -0
  563. package/dist/kongponents466.cjs +1 -1
  564. package/dist/kongponents466.es.js +46 -7
  565. package/dist/kongponents467.cjs +1 -1
  566. package/dist/kongponents467.es.js +46 -17
  567. package/dist/kongponents468.cjs +1 -1
  568. package/dist/kongponents468.es.js +47 -5
  569. package/dist/kongponents469.cjs +1 -1
  570. package/dist/kongponents469.es.js +46 -5
  571. package/dist/kongponents470.cjs +1 -1
  572. package/dist/kongponents470.es.js +46 -4
  573. package/dist/kongponents471.cjs +1 -1
  574. package/dist/kongponents471.es.js +34 -4
  575. package/dist/kongponents472.cjs +1 -1
  576. package/dist/kongponents472.es.js +42 -14
  577. package/dist/kongponents473.cjs +1 -1
  578. package/dist/kongponents473.es.js +43 -7
  579. package/dist/kongponents474.cjs +1 -1
  580. package/dist/kongponents474.es.js +33 -8
  581. package/dist/kongponents475.cjs +1 -1
  582. package/dist/kongponents475.es.js +33 -11
  583. package/dist/kongponents476.cjs +1 -1
  584. package/dist/kongponents476.es.js +17 -4
  585. package/dist/kongponents477.cjs +1 -1
  586. package/dist/kongponents477.es.js +2 -4
  587. package/dist/kongponents478.cjs +1 -1
  588. package/dist/kongponents478.es.js +12 -3
  589. package/dist/kongponents479.cjs +1 -1
  590. package/dist/kongponents479.es.js +16 -36
  591. package/dist/kongponents48.cjs +1 -1
  592. package/dist/kongponents48.es.js +1 -1
  593. package/dist/kongponents480.cjs +1 -1
  594. package/dist/kongponents480.es.js +71 -42
  595. package/dist/kongponents481.cjs +1 -1
  596. package/dist/kongponents481.es.js +2 -34
  597. package/dist/kongponents482.cjs +1 -1
  598. package/dist/kongponents482.es.js +23 -3
  599. package/dist/kongponents483.cjs +1 -1
  600. package/dist/kongponents483.es.js +21 -17
  601. package/dist/kongponents484.cjs +1 -1
  602. package/dist/kongponents484.es.js +20 -5
  603. package/dist/kongponents485.cjs +1 -1
  604. package/dist/kongponents485.es.js +615 -2
  605. package/dist/kongponents486.cjs +1 -1
  606. package/dist/kongponents486.es.js +81 -2
  607. package/dist/kongponents487.cjs +1 -1
  608. package/dist/kongponents487.es.js +12 -16
  609. package/dist/kongponents488.cjs +1 -1
  610. package/dist/kongponents488.es.js +27 -2
  611. package/dist/kongponents489.cjs +1 -1
  612. package/dist/kongponents489.es.js +14 -19
  613. package/dist/kongponents490.cjs +1 -1
  614. package/dist/kongponents490.es.js +15 -2
  615. package/dist/kongponents491.cjs +1 -1
  616. package/dist/kongponents491.es.js +14 -13
  617. package/dist/kongponents492.cjs +1 -1
  618. package/dist/kongponents492.es.js +15 -2
  619. package/dist/kongponents493.cjs +1 -1
  620. package/dist/kongponents493.es.js +23 -22
  621. package/dist/kongponents494.cjs +1 -1
  622. package/dist/kongponents494.es.js +63 -21
  623. package/dist/kongponents495.cjs +1 -1
  624. package/dist/kongponents495.es.js +4 -25
  625. package/dist/kongponents496.cjs +1 -1
  626. package/dist/kongponents496.es.js +2 -23
  627. package/dist/kongponents497.cjs +1 -1
  628. package/dist/kongponents497.es.js +2 -32
  629. package/dist/kongponents498.cjs +1 -1
  630. package/dist/kongponents498.es.js +7 -15
  631. package/dist/kongponents499.cjs +1 -1
  632. package/dist/kongponents499.es.js +3 -66
  633. package/dist/kongponents500.cjs +1 -1
  634. package/dist/kongponents500.es.js +8 -2
  635. package/dist/kongponents501.cjs +1 -1
  636. package/dist/kongponents501.es.js +11 -2
  637. package/dist/kongponents502.cjs +1 -1
  638. package/dist/kongponents502.es.js +14 -2
  639. package/dist/kongponents503.cjs +1 -1
  640. package/dist/kongponents503.es.js +14 -2
  641. package/dist/kongponents504.cjs +1 -1
  642. package/dist/kongponents504.es.js +67 -2
  643. package/dist/kongponents505.cjs +1 -1
  644. package/dist/kongponents505.es.js +31 -30
  645. package/dist/kongponents506.cjs +1 -1
  646. package/dist/kongponents506.es.js +11 -2
  647. package/dist/kongponents507.cjs +1 -1
  648. package/dist/kongponents507.es.js +121 -4
  649. package/dist/kongponents508.cjs +1 -1
  650. package/dist/kongponents508.es.js +86 -8
  651. package/dist/kongponents509.cjs +1 -1
  652. package/dist/kongponents509.es.js +5 -10
  653. package/dist/kongponents510.cjs +1 -1
  654. package/dist/kongponents510.es.js +5 -13
  655. package/dist/kongponents511.cjs +1 -1
  656. package/dist/kongponents511.es.js +5 -13
  657. package/dist/kongponents512.cjs +1 -1
  658. package/dist/kongponents512.es.js +10 -66
  659. package/dist/kongponents513.cjs +1 -1
  660. package/dist/kongponents513.es.js +8 -31
  661. package/dist/kongponents514.cjs +1 -1
  662. package/dist/kongponents514.es.js +7 -11
  663. package/dist/kongponents515.cjs +1 -1
  664. package/dist/kongponents515.es.js +2 -121
  665. package/dist/kongponents516.cjs +1 -1
  666. package/dist/kongponents516.es.js +2 -86
  667. package/dist/kongponents517.cjs +1 -1
  668. package/dist/kongponents517.es.js +25 -6
  669. package/dist/kongponents518.cjs +1 -1
  670. package/dist/kongponents518.es.js +96 -24
  671. package/dist/kongponents519.cjs +1 -1
  672. package/dist/kongponents519.es.js +47 -97
  673. package/dist/kongponents520.cjs +1 -1
  674. package/dist/kongponents520.es.js +10 -47
  675. package/dist/kongponents521.cjs +1 -1
  676. package/dist/kongponents521.es.js +9 -9
  677. package/dist/kongponents522.cjs +1 -1
  678. package/dist/kongponents522.es.js +13 -9
  679. package/dist/kongponents523.cjs +1 -1
  680. package/dist/kongponents523.es.js +10 -13
  681. package/dist/kongponents524.cjs +1 -1
  682. package/dist/kongponents524.es.js +2 -11
  683. package/dist/kongponents525.cjs +1 -1
  684. package/dist/kongponents525.es.js +18 -5
  685. package/dist/kongponents526.cjs +1 -1
  686. package/dist/kongponents526.es.js +2 -6
  687. package/dist/kongponents527.cjs +1 -1
  688. package/dist/kongponents527.es.js +21 -10
  689. package/dist/kongponents528.cjs +1 -1
  690. package/dist/kongponents528.es.js +2 -8
  691. package/dist/kongponents529.cjs +1 -1
  692. package/dist/kongponents529.es.js +15 -6
  693. package/dist/kongponents530.cjs +1 -1
  694. package/dist/kongponents530.es.js +2 -4
  695. package/dist/kongponents531.cjs +1 -1
  696. package/dist/kongponents531.es.js +22 -3
  697. package/dist/kongponents532.cjs +1 -1
  698. package/dist/kongponents532.es.js +22 -9
  699. package/dist/kongponents533.cjs +1 -1
  700. package/dist/kongponents533.es.js +25 -5
  701. package/dist/kongponents534.cjs +1 -1
  702. package/dist/kongponents534.es.js +22 -4
  703. package/dist/kongponents535.cjs +1 -1
  704. package/dist/kongponents535.es.js +31 -5
  705. package/dist/kongponents536.cjs +1 -1
  706. package/dist/kongponents536.es.js +16 -3
  707. package/dist/kongponents537.cjs +1 -1
  708. package/dist/kongponents537.es.js +65 -4
  709. package/dist/kongponents538.cjs +1 -1
  710. package/dist/kongponents538.es.js +2 -5
  711. package/dist/kongponents539.cjs +1 -1
  712. package/dist/kongponents539.es.js +2 -11
  713. package/dist/kongponents540.cjs +1 -1
  714. package/dist/kongponents540.es.js +2 -7
  715. package/dist/kongponents541.cjs +1 -1
  716. package/dist/kongponents541.es.js +2 -7
  717. package/dist/kongponents542.cjs +1 -1
  718. package/dist/kongponents542.es.js +2 -5
  719. package/dist/kongponents543.cjs +1 -1
  720. package/dist/kongponents543.es.js +30 -2
  721. package/dist/kongponents544.cjs +1 -1
  722. package/dist/kongponents544.es.js +4 -2
  723. package/dist/kongponents545.cjs +1 -1
  724. package/dist/kongponents545.es.js +7 -2
  725. package/dist/kongponents546.cjs +1 -1
  726. package/dist/kongponents546.es.js +15 -2
  727. package/dist/kongponents547.cjs +1 -1
  728. package/dist/kongponents547.es.js +29 -2
  729. package/dist/kongponents548.cjs +1 -1
  730. package/dist/kongponents548.es.js +15 -20
  731. package/dist/kongponents549.cjs +1 -1
  732. package/dist/kongponents549.es.js +11 -23
  733. package/dist/kongponents551.es.js +2 -2
  734. package/dist/kongponents552.cjs +1 -1
  735. package/dist/kongponents552.es.js +2 -27
  736. package/dist/kongponents553.cjs +1 -1
  737. package/dist/kongponents553.es.js +2 -27
  738. package/dist/kongponents555.cjs +1 -1
  739. package/dist/kongponents555.es.js +21 -2
  740. package/dist/kongponents556.cjs +1 -1
  741. package/dist/kongponents556.es.js +24 -2
  742. package/dist/kongponents558.cjs +1 -1
  743. package/dist/kongponents558.es.js +2 -77
  744. package/dist/kongponents559.cjs +1 -1
  745. package/dist/kongponents559.es.js +25 -41
  746. package/dist/kongponents560.cjs +1 -1
  747. package/dist/kongponents560.es.js +24 -18
  748. package/dist/kongponents561.cjs +1 -1
  749. package/dist/kongponents561.es.js +2 -133
  750. package/dist/kongponents562.cjs +1 -1
  751. package/dist/kongponents562.es.js +2 -98
  752. package/dist/kongponents563.cjs +1 -1
  753. package/dist/kongponents563.es.js +2 -7
  754. package/dist/kongponents564.cjs +1 -1
  755. package/dist/kongponents564.es.js +2 -15
  756. package/dist/kongponents565.cjs +1 -1
  757. package/dist/kongponents565.es.js +76 -28
  758. package/dist/kongponents566.cjs +1 -1
  759. package/dist/kongponents566.es.js +42 -15
  760. package/dist/kongponents567.cjs +1 -1
  761. package/dist/kongponents567.es.js +20 -11
  762. package/dist/kongponents568.cjs +1 -1
  763. package/dist/kongponents568.es.js +132 -7
  764. package/dist/kongponents569.cjs +1 -1
  765. package/dist/kongponents569.es.js +98 -3
  766. package/dist/kongponents579.cjs +1 -1
  767. package/dist/kongponents579.es.js +1 -1
  768. package/dist/kongponents581.cjs +1 -1
  769. package/dist/kongponents581.es.js +1 -1
  770. package/dist/kongponents582.cjs +1 -1
  771. package/dist/kongponents582.es.js +1 -1
  772. package/dist/kongponents584.es.js +2 -2
  773. package/dist/kongponents585.es.js +2 -2
  774. package/dist/kongponents586.es.js +2 -2
  775. package/dist/kongponents84.cjs +1 -1
  776. package/dist/kongponents84.es.js +1 -1
  777. package/dist/kongponents86.cjs +1 -1
  778. package/dist/kongponents86.es.js +1 -1
  779. package/dist/kongponents98.cjs +1 -1
  780. package/dist/kongponents98.es.js +6 -6
  781. package/package.json +36 -37
  782. package/dist/kongponents213.cjs +0 -1
  783. package/dist/kongponents213.es.js +0 -7
  784. package/dist/kongponents220.cjs +0 -1
  785. package/dist/kongponents220.es.js +0 -89
  786. package/dist/kongponents222.cjs +0 -1
  787. package/dist/kongponents224.es.js +0 -4
  788. package/dist/kongponents229.cjs +0 -1
  789. package/dist/kongponents229.es.js +0 -8
  790. package/dist/kongponents245.cjs +0 -1
  791. package/dist/kongponents245.es.js +0 -57
  792. package/dist/kongponents247.cjs +0 -1
  793. package/dist/kongponents247.es.js +0 -7
  794. package/dist/kongponents249.cjs +0 -1
  795. package/dist/kongponents249.es.js +0 -22
  796. package/dist/kongponents251.es.js +0 -7
  797. package/dist/kongponents302.cjs +0 -1
  798. package/dist/kongponents302.es.js +0 -9
  799. package/dist/kongponents354.cjs +0 -1
  800. package/dist/kongponents354.es.js +0 -4
  801. package/dist/kongponents358.cjs +0 -1
  802. package/dist/kongponents358.es.js +0 -28
  803. package/dist/kongponents416.cjs +0 -1
  804. package/dist/kongponents416.es.js +0 -4
@@ -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("./kongponents183.cjs");require("./kongponents7.cjs");require("./kongponents12.cjs");const Qe=require("./kongponents13.cjs"),K=require("./kongponents182.cjs"),Ye=require("./kongponents203.cjs"),_e=require("./kongponents188.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("./kongponents183.cjs");require("./kongponents7.cjs");require("./kongponents12.cjs");const Qe=require("./kongponents13.cjs"),K=require("./kongponents182.cjs"),Ye=require("./kongponents187.cjs"),_e=require("./kongponents191.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;
@@ -12,8 +12,8 @@ import "./kongponents7.es.js";
12
12
  import "./kongponents12.es.js";
13
13
  import { EmptyStateIconVariants as At } from "./kongponents13.es.js";
14
14
  import { KUI_ICON_SIZE_30 as Ne, KUI_COLOR_TEXT_NEUTRAL as Ke } from "./kongponents182.es.js";
15
- import Ot from "./kongponents203.es.js";
16
- import { normalizeSize as wt } from "./kongponents188.es.js";
15
+ import Ot from "./kongponents187.es.js";
16
+ import { normalizeSize as wt } from "./kongponents191.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("./kongponents183.cjs"),R=require("./kongponents57.cjs"),n=require("./kongponents196.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("./kongponents183.cjs"),R=require("./kongponents57.cjs"),n=require("./kongponents189.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
2
  import ae from "./kongponents183.es.js";
3
3
  import le from "./kongponents57.es.js";
4
- import { IS_MAYBE_FIREFOX as w, getScrollbarSize as re, cssSupports as ie } from "./kongponents196.es.js";
4
+ import { IS_MAYBE_FIREFOX as w, getScrollbarSize as re, cssSupports as ie } from "./kongponents189.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",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@kong/icons"),l=require("./kongponents182.cjs"),n=require("./kongponents179.cjs"),a=require("./kongponents191.cjs"),c=["href"],u=e.defineComponent({__name:"KExternalLink",props:{href:{},hideIcon:{type:Boolean}},setup(r){e.watch(()=>r.href,t=>{n.isValidUrl(t)||a.warnInvalidProp("href",`\`href\` should be a valid URL, but got "${t}".`)},{immediate:!0});const o=e.computed(()=>!!n.isValidUrl(r.href));return(t,s)=>o.value?(e.openBlock(),e.createElementBlock("a",{key:0,class:"k-external-link",href:r.href,rel:"noopener",target:"_blank"},[e.renderSlot(t.$slots,"default",{},void 0,!0),r.hideIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(i.ExternalLinkIcon),{key:0,decorative:"",size:`var(--kui-icon-size-30, ${e.unref(l.KUI_ICON_SIZE_30)})`},null,8,["size"]))],8,c)):e.createCommentVNode("",!0)}});exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@kong/icons"),l=require("./kongponents182.cjs"),n=require("./kongponents179.cjs"),a=require("./kongponents194.cjs"),c=["href"],u=e.defineComponent({__name:"KExternalLink",props:{href:{},hideIcon:{type:Boolean}},setup(r){e.watch(()=>r.href,t=>{n.isValidUrl(t)||a.warnInvalidProp("href",`\`href\` should be a valid URL, but got "${t}".`)},{immediate:!0});const o=e.computed(()=>!!n.isValidUrl(r.href));return(t,s)=>o.value?(e.openBlock(),e.createElementBlock("a",{key:0,class:"k-external-link",href:r.href,rel:"noopener",target:"_blank"},[e.renderSlot(t.$slots,"default",{},void 0,!0),r.hideIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(i.ExternalLinkIcon),{key:0,decorative:"",size:`var(--kui-icon-size-30, ${e.unref(l.KUI_ICON_SIZE_30)})`},null,8,["size"]))],8,c)):e.createCommentVNode("",!0)}});exports.default=u;
@@ -2,7 +2,7 @@ import { defineComponent as l, watch as c, computed as f, openBlock as t, create
2
2
  import { ExternalLinkIcon as u } from "@kong/icons";
3
3
  import { KUI_ICON_SIZE_30 as h } from "./kongponents182.es.js";
4
4
  import { isValidUrl as i } from "./kongponents179.es.js";
5
- import { warnInvalidProp as k } from "./kongponents191.es.js";
5
+ import { warnInvalidProp as k } from "./kongponents194.es.js";
6
6
  const p = ["href"], b = /* @__PURE__ */ l({
7
7
  __name: "KExternalLink",
8
8
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@kong/icons"),k=require("./kongponents182.cjs"),B=require("./kongponents186.cjs"),H=require("./kongponents188.cjs"),N=require("./kongponents191.cjs"),w=require("./kongponents38.cjs"),S={key:0,class:"truncate-expand-controls"},V={key:0,"data-testid":"expand-trigger-wrapper"},E=["aria-label"],z={key:0,"data-testid":"collapse-trigger-wrapper"},$={key:0,"data-testid":"expand-trigger-wrapper"},q={key:1},I=e.defineComponent({__name:"KTruncate",props:{rows:{default:1},truncateText:{type:Boolean},expanded:{type:Boolean},width:{default:"100%"}},setup(o){e.useCssVars(t=>({v036f1beb:p.value,v4085a467:e.unref(h),v5f97c330:t.rows})),e.watch(()=>o.rows,t=>{t<0&&N.warnInvalidProp("rows",`\`rows\` prop cannot be less than 0, but got "${t}".`)},{immediate:!0});const n=e.ref(o.expanded),d=e.ref(!1),f=e.ref(),a=e.ref(),i=e.ref(),g=e.ref(),p=e.ref("0px"),h=k.KUI_SPACE_40,s=e.ref(0),x=()=>{if(!o.truncateText&&a.value&&a.value.children?.length){const t=a.value.children,r=Number(String(h).replace(/px$/gi,""));let c=0;for(let u=0;u<t.length;u++)c=t[u].offsetHeight>c?t[u].offsetHeight:c;const m=(o.rows===1?0:(o.rows-1)*r)+c*o.rows+6,T=a.value.offsetHeight>m?`${m}px`:"auto";window.requestAnimationFrame(()=>{p.value=T,window.requestAnimationFrame(v)})}},v=()=>{if(a.value&&i.value){const t=o.truncateText?a.value.scrollHeight:a.value.offsetHeight,r=g.value?g.value.offsetHeight:0;d.value=t>i.value.offsetHeight-r,C()}},C=()=>{if(!o.truncateText&&(s.value=0,a.value&&i.value)){const t=a.value.children;for(let r=0;r<t.length;r++)t[r].offsetTop>i.value.offsetHeight?(s.value+=1,t[r].getAttribute("tabindex")&&(t[r].tabIndex=-1)):t[r].getAttribute("tabindex")&&(t[r].tabIndex=0)}},l=async()=>{n.value=!n.value,await e.nextTick(),v()},b=e.computed(()=>({width:H.normalizeSize(o.width)}));return e.onMounted(()=>{f.value=B.ResizeObserverHelper.create(x),f.value.observe(a.value),o.truncateText&&v()}),e.onBeforeUnmount(()=>{f.value?.unobserve(a.value)}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"kTruncateWrapper",ref:i,class:e.normalizeClass(["k-truncate",[n.value?"expanded":"",`truncate-${o.truncateText?"text":"content"}`]]),style:e.normalizeStyle(b.value)},[!o.truncateText&&d.value?(e.openBlock(),e.createElementBlock("div",S,[n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",V,[e.renderSlot(t.$slots,"expand-trigger",{expand:l,truncatedCount:s.value},()=>[e.createElementVNode("button",{"aria-label":`Show ${s.value} more items`,class:"expand-trigger",type:"button",onClick:e.withModifiers(l,["stop"])},e.toDisplayString(s.value),9,E)],!0)]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"kTruncateContainer",ref:a,class:"truncate-container"},[e.renderSlot(t.$slots,"default",{},void 0,!0),!o.truncateText&&n.value?(e.openBlock(),e.createElementBlock("div",z,[e.renderSlot(t.$slots,"collapse-trigger",{collapse:l},()=>[e.createElementVNode("button",{"aria-label":"Collapse content",class:"collapse-trigger",type:"button",onClick:e.withModifiers(l,["stop"])},[e.createVNode(e.unref(y.ChevronUpIcon),{decorative:"",size:`var(--kui-icon-size-30, ${e.unref(k.KUI_ICON_SIZE_30)})`},null,8,["size"])])],!0)])):e.createCommentVNode("",!0)],512),o.truncateText&&(d.value||n.value)?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"textToggleControls",ref:g,class:"truncate-collapse-controls"},[n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",$,[e.renderSlot(t.$slots,"expand-trigger",{expand:l},()=>[e.createVNode(w.default,{appearance:"tertiary",size:"small",onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[...r[0]||(r[0]=[e.createTextVNode(" Show more ",-1)])]),_:1})],!0)])),n.value?(e.openBlock(),e.createElementBlock("div",q,[e.renderSlot(t.$slots,"collapse-trigger",{collapse:l},()=>[e.createVNode(w.default,{appearance:"tertiary",size:"small",onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[...r[1]||(r[1]=[e.createTextVNode(" Show less ",-1)])]),_:1})],!0)])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)],6))}});exports.default=I;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@kong/icons"),k=require("./kongponents182.cjs"),B=require("./kongponents193.cjs"),H=require("./kongponents191.cjs"),N=require("./kongponents194.cjs"),w=require("./kongponents38.cjs"),S={key:0,class:"truncate-expand-controls"},V={key:0,"data-testid":"expand-trigger-wrapper"},E=["aria-label"],z={key:0,"data-testid":"collapse-trigger-wrapper"},$={key:0,"data-testid":"expand-trigger-wrapper"},q={key:1},I=e.defineComponent({__name:"KTruncate",props:{rows:{default:1},truncateText:{type:Boolean},expanded:{type:Boolean},width:{default:"100%"}},setup(o){e.useCssVars(t=>({v036f1beb:p.value,v4085a467:e.unref(h),v5f97c330:t.rows})),e.watch(()=>o.rows,t=>{t<0&&N.warnInvalidProp("rows",`\`rows\` prop cannot be less than 0, but got "${t}".`)},{immediate:!0});const n=e.ref(o.expanded),d=e.ref(!1),f=e.ref(),a=e.ref(),i=e.ref(),g=e.ref(),p=e.ref("0px"),h=k.KUI_SPACE_40,s=e.ref(0),x=()=>{if(!o.truncateText&&a.value&&a.value.children?.length){const t=a.value.children,r=Number(String(h).replace(/px$/gi,""));let c=0;for(let u=0;u<t.length;u++)c=t[u].offsetHeight>c?t[u].offsetHeight:c;const m=(o.rows===1?0:(o.rows-1)*r)+c*o.rows+6,T=a.value.offsetHeight>m?`${m}px`:"auto";window.requestAnimationFrame(()=>{p.value=T,window.requestAnimationFrame(v)})}},v=()=>{if(a.value&&i.value){const t=o.truncateText?a.value.scrollHeight:a.value.offsetHeight,r=g.value?g.value.offsetHeight:0;d.value=t>i.value.offsetHeight-r,C()}},C=()=>{if(!o.truncateText&&(s.value=0,a.value&&i.value)){const t=a.value.children;for(let r=0;r<t.length;r++)t[r].offsetTop>i.value.offsetHeight?(s.value+=1,t[r].getAttribute("tabindex")&&(t[r].tabIndex=-1)):t[r].getAttribute("tabindex")&&(t[r].tabIndex=0)}},l=async()=>{n.value=!n.value,await e.nextTick(),v()},b=e.computed(()=>({width:H.normalizeSize(o.width)}));return e.onMounted(()=>{f.value=B.ResizeObserverHelper.create(x),f.value.observe(a.value),o.truncateText&&v()}),e.onBeforeUnmount(()=>{f.value?.unobserve(a.value)}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"kTruncateWrapper",ref:i,class:e.normalizeClass(["k-truncate",[n.value?"expanded":"",`truncate-${o.truncateText?"text":"content"}`]]),style:e.normalizeStyle(b.value)},[!o.truncateText&&d.value?(e.openBlock(),e.createElementBlock("div",S,[n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",V,[e.renderSlot(t.$slots,"expand-trigger",{expand:l,truncatedCount:s.value},()=>[e.createElementVNode("button",{"aria-label":`Show ${s.value} more items`,class:"expand-trigger",type:"button",onClick:e.withModifiers(l,["stop"])},e.toDisplayString(s.value),9,E)],!0)]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"kTruncateContainer",ref:a,class:"truncate-container"},[e.renderSlot(t.$slots,"default",{},void 0,!0),!o.truncateText&&n.value?(e.openBlock(),e.createElementBlock("div",z,[e.renderSlot(t.$slots,"collapse-trigger",{collapse:l},()=>[e.createElementVNode("button",{"aria-label":"Collapse content",class:"collapse-trigger",type:"button",onClick:e.withModifiers(l,["stop"])},[e.createVNode(e.unref(y.ChevronUpIcon),{decorative:"",size:`var(--kui-icon-size-30, ${e.unref(k.KUI_ICON_SIZE_30)})`},null,8,["size"])])],!0)])):e.createCommentVNode("",!0)],512),o.truncateText&&(d.value||n.value)?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"textToggleControls",ref:g,class:"truncate-collapse-controls"},[n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",$,[e.renderSlot(t.$slots,"expand-trigger",{expand:l},()=>[e.createVNode(w.default,{appearance:"tertiary",size:"small",onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[...r[0]||(r[0]=[e.createTextVNode(" Show more ",-1)])]),_:1})],!0)])),n.value?(e.openBlock(),e.createElementBlock("div",q,[e.renderSlot(t.$slots,"collapse-trigger",{collapse:l},()=>[e.createVNode(w.default,{appearance:"tertiary",size:"small",onClick:e.withModifiers(l,["stop"])},{default:e.withCtx(()=>[...r[1]||(r[1]=[e.createTextVNode(" Show less ",-1)])]),_:1})],!0)])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)],6))}});exports.default=I;
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as V, useCssVars as A, unref as b, watch as K, ref as l, computed as U, onMounted as W, onBeforeUnmount as O, openBlock as i, createElementBlock as s, normalizeStyle as P, normalizeClass as q, renderSlot as g, createElementVNode as k, withModifiers as p, toDisplayString as F, createCommentVNode as u, createVNode as T, withCtx as z, createTextVNode as S, nextTick as M } from "vue";
2
2
  import { ChevronUpIcon as D } from "@kong/icons";
3
3
  import { KUI_SPACE_40 as R, KUI_ICON_SIZE_30 as Z } from "./kongponents182.es.js";
4
- import { ResizeObserverHelper as j } from "./kongponents186.es.js";
5
- import { normalizeSize as G } from "./kongponents188.es.js";
6
- import { warnInvalidProp as J } from "./kongponents191.es.js";
4
+ import { ResizeObserverHelper as j } from "./kongponents193.es.js";
5
+ import { normalizeSize as G } from "./kongponents191.es.js";
6
+ import { warnInvalidProp as J } from "./kongponents194.es.js";
7
7
  import $ from "./kongponents38.es.js";
8
8
  const L = {
9
9
  key: 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("./kongponents186.cjs"),T=require("@kong/icons"),C=require("./kongponents24.cjs"),s=require("./kongponents30.cjs");;/* empty css */const h=require("./kongponents182.cjs"),k={class:"k-copy"},B={key:0,class:"copy-badge-text"},L=["id","aria-label","onClick"],w=e.defineComponent({__name:"KCopy",props:{badgeLabel:{default:""},text:{},textTooltip:{default:""},copyTooltip:{default:""},format:{default:"default"},badge:{type:Boolean},monospace:{type:Boolean},truncate:{type:Boolean},successTooltip:{default:"Copied!"},truncationLimit:{default:8}},setup(t,{expose:m}){const i=e.useId(),l=e.ref(""),r=e.computed(()=>!t.badgeLabel||t.copyTooltip?t.copyTooltip||"Copy":`Copy ${t.badgeLabel.replace(/:$/,"")}`);e.watch(r,a=>{l.value=a},{immediate:!0});const f=e.computed(()=>`copy-tooltip-wrapper ${t.truncate&&c.value||t.badge?"truncate-content":""}`),v=e.computed(()=>t.format==="redacted"?"*****":t.format==="deleted"?`*${String(t.text||"").substring(0,5)}`:t.truncate&&t.truncationLimit&&u.value?u.value.replace(/^"(.*)"$/,"$1"):t.text),b=e.computed(()=>{if(t.textTooltip)return t.textTooltip;if(!(t.format==="redacted"||!c.value))return t.text}),d=a=>{l.value=a||t.successTooltip,setTimeout(()=>{l.value=r.value},1800)},y=async a=>{if(!await a(t.text)){d("Failed to copy");return}d()};m({copy:()=>{document?.getElementById(i)&&document?.getElementById(i)?.click()}});const o=e.ref(),n=e.ref(),u=e.computed(()=>t.truncate&&typeof t.truncationLimit=="number"?`${String(t.text||"").substring(0,t.truncationLimit)+"..."}`:null),c=e.ref(!1),x=()=>{t.truncate&&(t.truncationLimit!=="auto"&&u.value?c.value=!0:t.truncationLimit==="auto"&&o.value&&(c.value=o.value?.offsetWidth<o.value?.scrollWidth))};return e.onMounted(()=>{n.value=g.ResizeObserverHelper.create(x),n.value.observe(o.value)}),e.onBeforeUnmount(()=>{n.value&&n.value.unobserve(o.value)}),(a,$)=>(e.openBlock(),e.createElementBlock("div",k,[t.badge&&t.badgeLabel?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(t.badgeLabel),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["copy-container",{"copy-element":t.truncate||t.badge,"badge-styles":t.badge}])},[t.format!=="hidden"?(e.openBlock(),e.createBlock(s.default,{key:0,class:e.normalizeClass([f.value]),"data-testid":"copy-tooltip-wrapper","max-width":"500px",placement:"bottom-start",text:b.value},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"copyTextElement",ref:o,class:e.normalizeClass(["copy-text",{monospace:t.monospace||!t.badge}])},e.toDisplayString(v.value),3)]),_:1},8,["class","text"])):e.createCommentVNode("",!0),e.createVNode(s.default,{class:"text-icon-wrapper","max-width":"500px",placement:"bottom-start",text:l.value},{default:e.withCtx(()=>[e.createVNode(C.default,null,{default:e.withCtx(({copyToClipboard:p})=>[e.createElementVNode("button",{id:e.unref(i),"aria-label":l.value,class:"copy-to-clipboard-button","data-testid":"copy-to-clipboard",type:"button",onClick:e.withModifiers(z=>y(p),["stop"])},[e.createVNode(e.unref(T.CopyIcon),{class:"text-icon",decorative:"",size:`var(--kui-icon-size-30, ${e.unref(h.KUI_ICON_SIZE_30)})`},null,8,["size"])],8,L)]),_:1})]),_:1},8,["text"])],2)]))}});exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("./kongponents193.cjs"),T=require("@kong/icons"),C=require("./kongponents24.cjs"),s=require("./kongponents30.cjs");;/* empty css */const h=require("./kongponents182.cjs"),k={class:"k-copy"},B={key:0,class:"copy-badge-text"},L=["id","aria-label","onClick"],w=e.defineComponent({__name:"KCopy",props:{badgeLabel:{default:""},text:{},textTooltip:{default:""},copyTooltip:{default:""},format:{default:"default"},badge:{type:Boolean},monospace:{type:Boolean},truncate:{type:Boolean},successTooltip:{default:"Copied!"},truncationLimit:{default:8}},setup(t,{expose:m}){const i=e.useId(),l=e.ref(""),r=e.computed(()=>!t.badgeLabel||t.copyTooltip?t.copyTooltip||"Copy":`Copy ${t.badgeLabel.replace(/:$/,"")}`);e.watch(r,a=>{l.value=a},{immediate:!0});const f=e.computed(()=>`copy-tooltip-wrapper ${t.truncate&&c.value||t.badge?"truncate-content":""}`),v=e.computed(()=>t.format==="redacted"?"*****":t.format==="deleted"?`*${String(t.text||"").substring(0,5)}`:t.truncate&&t.truncationLimit&&u.value?u.value.replace(/^"(.*)"$/,"$1"):t.text),b=e.computed(()=>{if(t.textTooltip)return t.textTooltip;if(!(t.format==="redacted"||!c.value))return t.text}),d=a=>{l.value=a||t.successTooltip,setTimeout(()=>{l.value=r.value},1800)},y=async a=>{if(!await a(t.text)){d("Failed to copy");return}d()};m({copy:()=>{document?.getElementById(i)&&document?.getElementById(i)?.click()}});const o=e.ref(),n=e.ref(),u=e.computed(()=>t.truncate&&typeof t.truncationLimit=="number"?`${String(t.text||"").substring(0,t.truncationLimit)+"..."}`:null),c=e.ref(!1),x=()=>{t.truncate&&(t.truncationLimit!=="auto"&&u.value?c.value=!0:t.truncationLimit==="auto"&&o.value&&(c.value=o.value?.offsetWidth<o.value?.scrollWidth))};return e.onMounted(()=>{n.value=g.ResizeObserverHelper.create(x),n.value.observe(o.value)}),e.onBeforeUnmount(()=>{n.value&&n.value.unobserve(o.value)}),(a,$)=>(e.openBlock(),e.createElementBlock("div",k,[t.badge&&t.badgeLabel?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(t.badgeLabel),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["copy-container",{"copy-element":t.truncate||t.badge,"badge-styles":t.badge}])},[t.format!=="hidden"?(e.openBlock(),e.createBlock(s.default,{key:0,class:e.normalizeClass([f.value]),"data-testid":"copy-tooltip-wrapper","max-width":"500px",placement:"bottom-start",text:b.value},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"copyTextElement",ref:o,class:e.normalizeClass(["copy-text",{monospace:t.monospace||!t.badge}])},e.toDisplayString(v.value),3)]),_:1},8,["class","text"])):e.createCommentVNode("",!0),e.createVNode(s.default,{class:"text-icon-wrapper","max-width":"500px",placement:"bottom-start",text:l.value},{default:e.withCtx(()=>[e.createVNode(C.default,null,{default:e.withCtx(({copyToClipboard:p})=>[e.createElementVNode("button",{id:e.unref(i),"aria-label":l.value,class:"copy-to-clipboard-button","data-testid":"copy-to-clipboard",type:"button",onClick:e.withModifiers(z=>y(p),["stop"])},[e.createVNode(e.unref(T.CopyIcon),{class:"text-icon",decorative:"",size:`var(--kui-icon-size-30, ${e.unref(h.KUI_ICON_SIZE_30)})`},null,8,["size"])],8,L)]),_:1})]),_:1},8,["text"])],2)]))}});exports.default=w;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as E, useId as z, ref as i, computed as n, watch as S, onMounted as N, onBeforeUnmount as W, openBlock as d, createElementBlock as p, toDisplayString as T, createCommentVNode as g, createElementVNode as s, normalizeClass as m, createBlock as O, withCtx as f, createVNode as b, withModifiers as V, unref as v } from "vue";
2
- import { ResizeObserverHelper as F } from "./kongponents186.es.js";
2
+ import { ResizeObserverHelper as F } from "./kongponents193.es.js";
3
3
  import { CopyIcon as K } from "@kong/icons";
4
4
  import M from "./kongponents24.es.js";
5
5
  import C from "./kongponents30.es.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ee=require("./kongponents38.cjs"),pe=require("./kongponents51.cjs"),rt=require("./kongponents25.cjs");;/* empty css */const Ce=require("./kongponents30.cjs");;/* empty css */const P=require("@kong/icons");require("./kongponents7.cjs");require("./kongponents12.cjs");const it=require("./kongponents13.cjs"),i=require("./kongponents19.cjs"),C=require("./kongponents182.cjs"),st=require("./kongponents203.cjs"),ut=require("./kongponents61.cjs"),ct=require("./kongponents49.cjs"),he=require("./kongponents42.cjs"),dt=require("./kongponents217.cjs"),yt=require("./kongponents181.cjs"),ft=require("./kongponents161.cjs"),vt=require("./kongponents196.cjs"),Se=require("./kongponents187.cjs"),bt=require("./kongponents188.cjs"),kt=require("./kongponents46.cjs"),mt=require("./kongponents218.cjs"),gt={key:0,class:"table-toolbar","data-testid":"table-toolbar"},wt={key:0,class:"toolbar-default-items-container"},pt={key:2,class:"table-error-state","data-testid":"table-error-state"},Ct={key:3,class:"table-empty-state","data-testid":"table-empty-state"},ht={key:4,class:"table-container"},St=["data-tableid"],At=["aria-sort","data-key","data-testid","onClick","onMouseover"],Tt=["onMousedown","onMouseover"],Bt=["aria-describedby"],Vt={key:1,class:"table-header-bulk-actions-container"},Et=["onMousedown","onMouseover"],Nt=["role","tabindex"],Kt={key:1,class:"expandable-row-control-container"},Ht=["aria-controls","aria-expanded","onClick"],Rt=["id"],xt=["colspan"],Lt={class:"expandable-content-wrapper"},te="desc",Ot=e.defineComponent({__name:"KTableView",props:{data:{default:()=>[]},headers:{default:()=>[]},resizeColumns:{type:Boolean},tablePreferences:{default:()=>({})},rowHover:{type:Boolean,default:!0},rowAttrs:{default:()=>(()=>({}))},rowLink:{default:()=>(()=>({}))},rowBulkActionEnabled:{default:()=>(()=>!0)},rowKey:{},cellAttrs:{default:()=>(()=>({}))},loading:{type:Boolean},emptyStateTitle:{default:"No Data"},emptyStateMessage:{default:"There is no data to display."},emptyStateActionRoute:{},emptyStateActionMessage:{default:""},emptyStateIconVariant:{default:()=>it.EmptyStateIconVariants.Default},emptyStateButtonAppearance:{default:"primary"},error:{type:Boolean},errorStateTitle:{default:"An error occurred"},errorStateMessage:{default:"Data cannot be displayed due to an error."},errorStateActionRoute:{},errorStateActionMessage:{default:""},maxHeight:{default:"none"},hidePagination:{type:Boolean},paginationAttributes:{default:()=>({})},rowExpandable:{default:()=>(()=>!1)},rowExpanded:{default:()=>(()=>!1)},hideHeaders:{type:Boolean},nested:{type:Boolean},hidePaginationWhenOptional:{type:Boolean},hideToolbar:{type:Boolean},tooltipTarget:{default:"body"},actionsDropdownPopoverAttributes:{default:()=>({})},"onRow:click":{type:Function},"onRow:dblclick":{type:Function},"onRow:auxclick":{type:Function},"onRow:contextmenu":{type:Function},"onRow:mouseover":{type:Function},"onRow:mouseout":{type:Function},"onRow:mouseenter":{type:Function},"onRow:mouseleave":{type:Function},"onRow:mousedown":{type:Function},"onRow:mouseup":{type:Function},"onRow:focus":{type:Function},"onRow:focusin":{type:Function},"onRow:blur":{type:Function},"onRow:focusout":{type:Function},"onRow:keydown":{type:Function},"onRow:keyup":{type:Function},"onRow:keypress":{type:Function},"onCell:click":{type:Function},"onCell:dblclick":{type:Function},"onCell:auxclick":{type:Function},"onCell:contextmenu":{type:Function},"onCell:mouseover":{type:Function},"onCell:mouseout":{type:Function},"onCell:mouseenter":{type:Function},"onCell:mouseleave":{type:Function},"onCell:mousedown":{type:Function},"onCell:mouseup":{type:Function},"onCell:focus":{type:Function},"onCell:focusin":{type:Function},"onCell:blur":{type:Function},"onCell:focusout":{type:Function},"onCell:keydown":{type:Function},"onCell:keyup":{type:Function},"onCell:keypress":{type:Function}},emits:["page-change","page-size-change","get-next-offset","get-previous-offset","cell-click","row-click","error-action-click","empty-state-action-click","update:table-preferences","sort","row-select","update:row-expanded","row-actions-toggle"],setup(l,{emit:Ae}){e.useCssVars(t=>({v2debc52c:e.unref(ze).expandable,v7e6b967b:Me.value,v43760593:re.value,v4e28b5e7:Re.value}));const ae=e.createPropsRestProxy(l,["resizeColumns","tablePreferences","rowHover","rowAttrs","rowLink","rowBulkActionEnabled","rowKey","cellAttrs","loading","emptyStateTitle","emptyStateMessage","emptyStateActionMessage","emptyStateIconVariant","emptyStateButtonAppearance","emptyStateActionRoute","error","errorStateTitle","errorStateMessage","errorStateActionMessage","errorStateActionRoute","maxHeight","hidePagination","paginationAttributes","rowExpandable","rowExpanded","hideHeaders","nested","hidePaginationWhenOptional","hideToolbar","tooltipTarget","data","headers","actionsDropdownPopoverAttributes"]),f=Ae,p=e.useSlots(),b=e.useId(),m=t=>typeof l.rowKey=="function"&&typeof l.rowKey(t)=="string"?l.rowKey(t):typeof l.rowKey=="string"&&l.rowKey in t&&typeof t[l.rowKey]=="string"?t[l.rowKey]:"",oe=t=>{const o=t.filter(n=>n.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&n.key!==i.TableViewHeaderKeys.ACTIONS),a=t.find(n=>n.key===i.TableViewHeaderKeys.BULK_ACTIONS),r=t.find(n=>n.key===i.TableViewHeaderKeys.ACTIONS);return a&&o.unshift(a),r&&o.push(r),o},le=e.useTemplateRef("table-wrapper"),Te=e.useTemplateRef("table"),ne=e.useTemplateRef("header-row"),h=e.ref(oe(l.headers)),d=e.ref([]),R=e.ref(""),T=e.ref(""),D=e.ref(""),Be=e.computed(()=>h.value.some(t=>t.key===i.TableViewHeaderKeys.ACTIONS)),j=e.computed(()=>h.value.filter(t=>t.hidable).length>0),x=()=>l.nested||!j.value||l.error?!1:p.toolbar?!0:!l.loading&&!!l.data&&!!l.data.length,Ve=e.computed(()=>l.loading||!(l.data&&l.data.length)),Ee=e.computed(()=>h.value.filter(t=>t.hidable&&!U(t.key))),Ne=e.computed(()=>l.nested||!j.value||l.error?{}:l.tablePreferences.columnVisibility||{}),B=e.ref(x()?l.tablePreferences.columnVisibility||{}:{}),re=e.ref("100%"),Z=e.ref(!1),L=e.ref(!1),S=e.ref(!1),V=e.ref(!1),y=e.ref(l.tablePreferences.sortColumnKey||""),v=e.ref(l.tablePreferences.sortColumnOrder||te),G=e.ref(!1),Ke=e.useTemplateRef("actionsDropdown"),J=e.ref(!1),He=e.computed(()=>({maxHeight:bt.normalizeSize(l.maxHeight)})),Re=e.computed(()=>`${vt.getScrollbarSize()}px`),E=e.ref([]),O=e.computed(()=>!l.nested&&!l.error&&h.value.some(t=>t.key===i.TableViewHeaderKeys.BULK_ACTIONS)&&!!(p["bulk-action-items"]||p["bulk-actions"])&&!!l.data.every(t=>m(t))),z=e.ref([]),Y=()=>l.nested||!O.value||l.error?!1:p.toolbar?!0:!l.loading&&!!l.data&&!!l.data.length,xe=()=>!l.hideToolbar&&!l.nested&&(!!p.toolbar||x()||Y()),ie=e.computed(()=>{const t=E.value.length;return t?t>100?"99+":String(t):""}),F=e.ref(new WeakMap),Le=t=>`column-${t}`,N=t=>`tooltip-${t}`,se=(t,o)=>(a,r)=>{const n=/^on[^a-z]/,u={};for(const s in o)n.test(s)&&o[s]&&(u[s]=o[s]);return Object.keys(u).reduce((s,c)=>{if(c.indexOf(t)===0){const k=c.split(t);s[k[1]]=H=>u[c](H,a,r)}return s},{})},Oe=e.computed(()=>(t,o)=>{const a=se("onRow:",ae)(o,"row"),r=se("onCell:",ae)(t,"cell"),n=["a","button","label","input","select",'span[role="checkbox"]'];return(a.click||r.click)&&(G.value=!0),{...a,...r,click(u){const s=u.target,c=s.className;let k=n.includes(s.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")),s.closest(".popover-content")!==null&&(H=!0);for(let w=0;w<n.length;w++)if(s.closest(n[w])!==null){k=!0;break}if((!k||s.hasAttribute("disabled"))&&!H&&(a.click||r.click))if(r.click){f("cell-click",{data:t});const w=r.click(u,t,"cell");typeof w=="function"&&w(u,t)}else{f("row-click",{data:o});const w=a.click(u,o,"row");typeof w=="function"&&w(u,o)}}}}),ue=parseInt(C.KUI_SPACE_60)*2+parseInt(C.KUI_ICON_SIZE_30),ce={expandable:ue,bulkActions:48,actions:54},ze=mt.default(ce,t=>`${t}px`),A=e.ref({...l.tablePreferences.columnWidths||{},...ce}),de=e.computed(()=>{const t={};for(const o in A.value){const a=o;if(!A.value[a])continue;const r=A.value[a]+"px";t[a]={width:r,maxWidth:r,minWidth:r}}return t}),Ie=(t,o)=>({"resize-hover":ye.value===t.key&&o!==d.value.length-1&&q(t),resizable:l.resizeColumns&&!l.nested,sortable:!t.hideLabel&&!!t.sortable,"active-sort":!t.hideLabel&&!!t.sortable&&t.key===y.value,[v.value]:t.key===y.value&&!t.hideLabel,"is-scrolled":L.value,"has-tooltip":!!t.tooltip,"sticky-column":be(t.key),"second-sticky-column":ke(t.key),"has-row-scroll-overlay":M(t.key),"actions-column":t.key===i.TableViewHeaderKeys.ACTIONS}),$e=t=>{if(t.sortable&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS){let o="asc",a=t.key;a===y.value&&v.value==="asc"&&(o="desc"),a===y.value&&v.value==="desc"&&(a="",o=te),f("sort",{prevKey:y.value,sortColumnKey:a,sortColumnOrder:o}),Xe(a)}},Pe=e.computed(()=>R.value?"resizing":T.value?"resize-hover":D.value?"th-hover":""),ye=e.computed(()=>{switch(Pe.value){case"resizing":return R.value;case"resize-hover":return T.value;case"th-hover":return D.value;default:return""}}),De=e.computed(()=>ne.value?.querySelectorAll("th.resizable")),Fe=e.computed(()=>l.resizeColumns&&!l.nested),{height:fe}=Se.useElementSize(e.computed(()=>Fe.value?ne.value:null)),Me=e.computed(()=>fe.value?`${fe.value}px`:"auto"),ve=(t,o)=>{if(t.button!==0)return;let a=0,r=0;R.value=o;let n=null;De.value?.forEach(c=>{c.getAttribute("data-testid")===`table-header-${o}`&&(n=document?.querySelector(`[data-tableid="${b}"] [data-testid="table-header-${o}"]`))});const u=c=>{const k=c.clientX-a;n?.setAttribute("style",`width: ${r+k}px`),A.value[o]=r+k},s=()=>{R.value="",document?.removeEventListener("mousemove",u),document?.removeEventListener("mouseup",s),X(),K.value&&_()};if(a=t.clientX,n){const c=window?.getComputedStyle(n);c?.width&&(r=parseInt(c.width,10)),document?.addEventListener("mousemove",u),document?.addEventListener("mouseup",s)}},be=t=>S.value?t===i.TableViewHeaderKeys.BULK_ACTIONS||t===i.TableViewHeaderKeys.EXPANDABLE:!1,ke=t=>t===i.TableViewHeaderKeys.BULK_ACTIONS&&K.value,M=t=>S.value?O.value?t===i.TableViewHeaderKeys.BULK_ACTIONS:K.value?t===i.TableViewHeaderKeys.EXPANDABLE:!1:!1,U=t=>t===i.TableViewHeaderKeys.EXPANDABLE||t===i.TableViewHeaderKeys.BULK_ACTIONS||t===i.TableViewHeaderKeys.ACTIONS,q=(t,o=!1)=>{if(!l.resizeColumns||l.nested)return!1;if(o){if(d.value.indexOf(t)===d.value.length-1)return!1;const r=d.value[d.value.indexOf(t)-1];return!U(r.key)}const a=d.value[d.value.indexOf(t)+1];return!U(t.key)&&!U(a.key)},Ue=(t,o,a)=>{f("row-actions-toggle",{row:t,open:o}),setTimeout(()=>{a.isRowActionsDropdownOpen=o},o?0:100)},qe=e.computed(()=>!(l.hidePagination||l.nested||l.hidePaginationWhenOptional&&l.data.length&&l.paginationAttributes.totalCount&&l.paginationAttributes.totalCount<=l.data.length));e.watch(()=>l.headers,t=>{h.value=oe(t)},{deep:!0,immediate:!0});const We=t=>!t.hideLabel&&!!t.sortable&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS,Xe=t=>{y.value&&t?t===y.value?v.value==="asc"?v.value="desc":v.value="asc":(y.value=t,v.value="asc"):t?(y.value=t,v.value="asc"):(y.value="",v.value=te),X()},je=t=>{const o=t.target;o&&(typeof o.scrollTop=="number"||typeof o.scrollLeft=="number")&&(o.scrollTop>1?(Z.value=!0,L.value=!0):o.scrollTop===0&&(L.value=!1),o.scrollLeft>1?S.value=!0:o.scrollLeft===0&&(S.value=!1),o.scrollWidth<=o.scrollLeft+o.clientWidth?V.value=!1:V.value=!0),Ke.value?.forEach(a=>{a&&a.closeDropdown&&a.closeDropdown()})},W=t=>z.value.find(o=>o.rowKey===m(t)),Ze=(t,o)=>({"data-testid":l.rowAttrs(t)["data-testid"]?`${l.rowAttrs(t)["data-testid"]}-actions-dropdown-popover`:`row-${o}-actions-dropdown-popover`}),Q=t=>{if(typeof l.rowBulkActionEnabled!="function")return!1;const o=l.rowBulkActionEnabled(t);return typeof o=="boolean"?o:o.enabled},Ge=t=>{if(typeof l.rowBulkActionEnabled!="function")return"";const o=l.rowBulkActionEnabled(t);return typeof o=="boolean"?"":o.disabledTooltip||""},Je=e.computed(()=>d.value.find(t=>t.key!==i.TableViewHeaderKeys.EXPANDABLE&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS)?.key),Ye=(t,o)=>{const{to:a}=l.rowLink(t);return!a||o===i.TableViewHeaderKeys.BULK_ACTIONS||o===i.TableViewHeaderKeys.ACTIONS?"div":typeof a=="object"?"router-link":"a"},Qe=(t,o)=>{if(o===i.TableViewHeaderKeys.BULK_ACTIONS||o===i.TableViewHeaderKeys.ACTIONS)return{};const{to:a,target:r}=l.rowLink(t),n=a&&typeof a=="object",u=a&&typeof a=="string";return{...n&&{to:a},...u&&{href:a},...(n||u)&&{...r&&{target:r},...o!==Je.value&&{tabindex:-1}}}},me=e.ref(0),I=e.ref(yt.getInitialPageSize(l.tablePreferences,l.paginationAttributes)),_e=t=>{I.value=t.pageSize,f("page-size-change",t),X()},et=e.computed(()=>({sortColumnKey:y.value,sortColumnOrder:v.value,...l.resizeColumns?{columnWidths:A.value}:{},...j.value?{columnVisibility:B.value}:{},...I.value&&!l.hidePagination&&{pageSize:I.value}})),X=()=>{f("update:table-preferences",et.value)},K=e.computed(()=>!l.nested&&l.data.some(t=>l.rowExpandable(t))),tt={key:i.TableViewHeaderKeys.EXPANDABLE,label:"Expandable rows controls",hideLabel:!0},ge=()=>{const t=[];return l.data.forEach((o,a)=>{l.rowExpanded(o)&&t.push(a)}),t},g=e.ref(ge()),at=async(t,o)=>{_(),await e.nextTick(),g.value.includes(t)?(g.value=g.value.filter(a=>a!==t),f("update:row-expanded",{row:o,expanded:!1})):(g.value=[...g.value,t],f("update:row-expanded",{row:o,expanded:!0}))},ot=e.computed(()=>d.value.filter(t=>t.key!==i.TableViewHeaderKeys.EXPANDABLE&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS)),we=e.ref({}),_=()=>{if(typeof document>"u")return;const o=document?.querySelector(`[data-tableid="${b}"]`)?.querySelectorAll("th"),a={};o?.forEach((r,n)=>{const u=r.getAttribute("data-key");if(u===i.TableViewHeaderKeys.EXPANDABLE)return;let s=r.getBoundingClientRect().width;n===1&&(s+=ue),n===o.length-1&&(s-=15),a[u]=s}),we.value=a};e.watch([B,h,K],t=>{const[o,a,r]=t;let n=a.filter(u=>u.key===i.TableViewHeaderKeys.BULK_ACTIONS?O.value:o[u.key]!==!1);n.find(u=>u.key===i.TableViewHeaderKeys.EXPANDABLE)&&(n=n.filter(u=>u.key!==i.TableViewHeaderKeys.EXPANDABLE)),r&&n.unshift(tt),JSON.stringify(n)!==JSON.stringify(d.value)&&(d.value=n,X()),r&&_()},{deep:!0,immediate:!0}),e.watch(()=>x(),t=>{t&&(B.value=l.tablePreferences.columnVisibility||{})},{immediate:!0});const $=e.ref(!1),lt=e.computed(()=>{const t=z.value.filter(o=>!o.disabled&&l.data.find(a=>m(a)===o.rowKey));return!!t.filter(o=>o.selected).length&&!!t.filter(o=>!o.selected).length}),nt=t=>{z.value.forEach(o=>{l.data.find(a=>m(a)===o.rowKey)&&!o.disabled&&(o.selected=t)})};return e.watch([()=>l.data,z],t=>{const[o,a]=t;if(o.forEach(r=>{if(!F.value.get(r)){const n=m(r)||ft.getUniqueStringId();F.value.set(r,`table-${b}-row-${n}`)}}),O.value){o.forEach(s=>{W(s)||z.value.push({rowKey:m(s),selected:!1,disabled:!Q(s)})});const r=a.filter(s=>!s.disabled&&o.find(c=>m(c)===s.rowKey));r.length&&r.filter(s=>s.selected).length===r.length?$.value=!0:(r.filter(s=>!s.selected).length,r.length,$.value=!1);const n=o.filter(s=>{const c=a.find(k=>k.rowKey===m(s));return!!(c&&c.selected)}),u=[];E.value.forEach(s=>{o.find(k=>m(s)===m(k))||u.push(s)}),E.value=[...u,...n]}g.value=ge()},{deep:!0,immediate:!0}),e.watch(E,t=>{f("row-select",t)}),e.watch(()=>l.tablePreferences,t=>{t?.pageSize&&(I.value=t.pageSize,me.value++),y.value=t?.sortColumnKey?t.sortColumnKey:y.value,v.value=t?.sortColumnOrder?t.sortColumnOrder:v.value,A.value=t?.columnWidths?t.columnWidths:A.value,B.value=t?.columnVisibility?t.columnVisibility:B.value}),Se.useResizeObserver([le,Te],()=>{const t=le.value;t&&(V.value=t.scrollWidth>t.clientWidth,re.value=t.clientHeight+"px",Z.value=t.scrollHeight>t.clientHeight)}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-table-view",{"hide-headers":l.hideHeaders}])},[xe()?(e.openBlock(),e.createElementBlock("div",gt,[e.renderSlot(t.$slots,"toolbar",{},void 0,!0),Y()||x()?(e.openBlock(),e.createElementBlock("div",wt,[Y()?e.renderSlot(t.$slots,"bulk-actions",{selectedRows:E.value},()=>[p["bulk-actions"]?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(dt.default,{key:0,"button-label":h.value.find(a=>a.key===e.unref(i.TableViewHeaderKeys).BULK_ACTIONS).label,count:ie.value,disabled:!ie.value||l.loading||!l.data.length},{items:e.withCtx(()=>[e.renderSlot(t.$slots,"bulk-action-items",{selectedRows:E.value},void 0,!0)]),_:3},8,["button-label","count","disabled"]))],!0,0):e.createCommentVNode("",!0),x()?(e.openBlock(),e.createBlock(st.default,{key:1,columns:Ee.value,disabled:Ve.value,"table-id":e.unref(b),"visibility-preferences":Ne.value,onUpdate:o[0]||(o[0]=a=>B.value=a)},null,8,["columns","disabled","table-id","visibility-preferences"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.loading&&!l.error?(e.openBlock(),e.createBlock(rt.default,{key:1,"data-testid":"table-skeleton",type:"table"})):l.error?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(t.$slots,"error-state",{},()=>[e.createVNode(pe.default,{"icon-variant":"error",message:l.errorStateMessage,title:l.errorStateTitle},e.createSlots({_:2},[l.errorStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(ee.default,{"data-testid":"error-state-action",to:l.errorStateActionRoute,onClick:o[1]||(o[1]=a=>f("error-action-click"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.errorStateActionMessage),1)]),_:1},8,["to"])]),key:"0"}:void 0]),1032,["message","title"])],!0)])):!l.error&&!l.loading&&l.data&&!l.data.length?(e.openBlock(),e.createElementBlock("div",Ct,[e.renderSlot(t.$slots,"empty-state",{},()=>[e.createVNode(pe.default,{"icon-variant":l.emptyStateIconVariant,message:l.emptyStateMessage,title:l.emptyStateTitle},e.createSlots({_:2},[l.emptyStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(ee.default,{appearance:l.emptyStateButtonAppearance,"data-testid":"empty-state-action",to:l.emptyStateActionRoute,onClick:o[2]||(o[2]=a=>f("empty-state-action-click"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"empty-state-action-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(l.emptyStateActionMessage),1)]),_:3},8,["appearance","to"])]),key:"0"}:void 0]),1032,["icon-variant","message","title"])],!0)])):(e.openBlock(),e.createElementBlock("div",ht,[e.createElementVNode("div",{ref:"table-wrapper",class:"table-wrapper",style:e.normalizeStyle(He.value),onScrollPassive:je},[e.createElementVNode("table",{ref:"table",class:e.normalizeClass(["table",{"has-hover":l.rowHover&&!J.value,"is-clickable":G.value}]),"data-tableid":e.unref(b)},[l.hideHeaders?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",{key:0,class:e.normalizeClass({"is-scrolled":L.value})},[e.createElementVNode("tr",{ref:"header-row",class:e.normalizeClass({"is-scrolled":L.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,r)=>(e.openBlock(),e.createElementBlock("th",{key:`table-${e.unref(b)}-headers-${a.key}`,"aria-sort":a.key===y.value?v.value==="asc"?"ascending":"descending":void 0,class:e.normalizeClass(["table-headers",Ie(a,r)]),"data-key":a.key,"data-testid":`table-header-${a.key}`,style:e.normalizeStyle(de.value[a.key]),onClick:()=>$e(a),onMouseleave:o[8]||(o[8]=n=>D.value=""),onMouseover:n=>D.value=a.key},[r!==0&&q(a,!0)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"resize-handle previous",onClick:o[3]||(o[3]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>ve(n,d.value[r-1].key),onMouseleave:o[4]||(o[4]=n=>T.value=""),onMouseover:n=>T.value=d.value[r-1].key},null,40,Tt)):e.createCommentVNode("",!0),e.createElementVNode("div",{"aria-describedby":a.tooltip||p[N(a.key)]?`${N(a.key)}-${e.unref(b)}`:void 0,class:e.normalizeClass(["table-headers-container",{resized:R.value===a.key}])},[a.key!==e.unref(i.TableViewHeaderKeys).BULK_ACTIONS?e.renderSlot(t.$slots,Le(a.key),{column:a},()=>[e.createElementVNode("span",{class:e.normalizeClass(["table-header-label",{"sr-only":a.hideLabel||a.key===e.unref(i.TableViewHeaderKeys).ACTIONS&&a.hideLabel!==!1}])},e.toDisplayString(a.label?a.label:a.key),3)],!0,0):(e.openBlock(),e.createElementBlock("div",Vt,[e.createVNode(he.default,{modelValue:$.value,"onUpdate:modelValue":o[5]||(o[5]=n=>$.value=n),"aria-label":"Toggle selection for all rows",class:"table-header-bulk-actions-checkbox","data-testid":"table-header-bulk-actions-checkbox",indeterminate:lt.value,onChange:nt},null,8,["modelValue","indeterminate"])])),a.tooltip||p[N(a.key)]?(e.openBlock(),e.createBlock(Ce.default,{key:2,"data-testid":N(a.key),"kpop-attributes":{target:l.tooltipTarget},"max-width":"300","tooltip-id":`${N(a.key)}-${e.unref(b)}`},{content:e.withCtx(()=>[e.renderSlot(t.$slots,N(a.key),{column:a},()=>[e.createTextVNode(e.toDisplayString(a.tooltip),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(P.InfoIcon),{class:"header-tooltip-trigger",color:`var(--kui-color-text-neutral, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL)})`,size:`var(--kui-icon-size-30, ${e.unref(C.KUI_ICON_SIZE_30)})`,tabindex:"0"},null,8,["color","size"])]),_:2},1032,["data-testid","kpop-attributes","tooltip-id"])):e.createCommentVNode("",!0),We(a)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[y.value===a.key?(e.openBlock(),e.createBlock(e.unref(P.ArrowDownIcon),{key:0,class:"active-sort-icon",color:`var(--kui-color-text-primary, ${e.unref(C.KUI_COLOR_TEXT_PRIMARY)})`,decorative:"",size:`var(--kui-icon-size-30, ${e.unref(C.KUI_ICON_SIZE_30)})`},null,8,["color","size"])):(e.openBlock(),e.createBlock(e.unref(P.SwapSortIcon),{key:1,class:"sort-icon",color:`var(--kui-color-text-neutral-weak, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL_WEAK)})`,size:`var(--kui-icon-size-30, ${e.unref(C.KUI_ICON_SIZE_30)})`,title:`Sort by ${a.label}`},null,8,["color","size","title"]))],64)):e.createCommentVNode("",!0)],10,Bt),r!==d.value.length-1&&q(a)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"resize-handle",onClick:o[6]||(o[6]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>ve(n,a.key),onMouseleave:o[7]||(o[7]=n=>T.value=""),onMouseover:n=>T.value=a.key},null,40,Et)):e.createCommentVNode("",!0),M(a.key)?(e.openBlock(),e.createElementBlock("div",{key:2,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),a.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createElementBlock("div",{key:3,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay right",{"overlay-visible":V.value}])},null,2)):e.createCommentVNode("",!0)],46,At))),128))],2)],2)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:F.value.get(a)},[e.createElementVNode("tr",e.mergeProps({class:{"last-row":r===l.data.length-1&&!g.value.includes(r)},role:l.rowLink(a).to?"link":void 0,tabindex:G.value&&!l.rowLink(a).to?0:void 0},{ref_for:!0},l.rowAttrs(a)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(n,u)=>(e.openBlock(),e.createBlock(e.unref(kt.default),{key:`${F.value.get(a)}-cell-${n.key}`,data:{isRowActionsDropdownOpen:!1}},{default:e.withCtx(({data:s})=>[e.createElementVNode("td",e.mergeProps({class:{"resize-hover":ye.value===n.key&&u!==d.value.length-1&&q(n),"row-link":!!l.rowLink(a).to,"sticky-column":be(n.key),"second-sticky-column":ke(n.key),"has-row-scroll-overlay":M(n.key),"actions-column":n.key===e.unref(i.TableViewHeaderKeys).ACTIONS},style:{...de.value[n.key],...s.isRowActionsDropdownOpen?{zIndex:2}:{}}},{ref_for:!0},l.cellAttrs({headerKey:n.key,row:a,rowIndex:r,colIndex:u}),e.toHandlers(Oe.value(a[n.key],a),!0)),[n.key!==e.unref(i.TableViewHeaderKeys).EXPANDABLE?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ye(a,n.key)),e.mergeProps({key:0,class:"cell-wrapper"},{ref_for:!0},Qe(a,n.key)),{default:e.withCtx(()=>[n.key!==e.unref(i.TableViewHeaderKeys).BULK_ACTIONS&&n.key!==e.unref(i.TableViewHeaderKeys).ACTIONS?e.renderSlot(t.$slots,n.key,{row:a,rowKey:r,rowValue:a[n.key]},()=>[e.createTextVNode(e.toDisplayString(a[n.key]),1)],!0,0):n.key===e.unref(i.TableViewHeaderKeys).BULK_ACTIONS&&W(a)?(e.openBlock(),e.createBlock(Ce.default,{key:1,"kpop-attributes":{target:l.tooltipTarget},"max-width":"200",placement:"bottom-start",text:Q(a)?void 0:Ge(a)},{default:e.withCtx(()=>[e.createVNode(he.default,{modelValue:W(a).selected,"onUpdate:modelValue":c=>W(a).selected=c,"aria-label":"Toggle row selection",class:"bulk-actions-checkbox","data-testid":"bulk-actions-checkbox",disabled:!Q(a)},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["kpop-attributes","text"])):n.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createBlock(ct.default,{key:2,ref_for:!0,ref:"actionsDropdown",class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{...l.actionsDropdownPopoverAttributes,placement:"bottom-end",target:"body",popoverElementAttributes:Ze(a,r)},onToggleDropdown:c=>Ue(a,c,s)},{items:e.withCtx(()=>[e.renderSlot(t.$slots,"action-items",{row:a},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(ee.default,{appearance:"tertiary","aria-label":n.label,class:"actions-dropdown-trigger","data-testid":"row-actions-dropdown-trigger",icon:"",size:"small",onMouseleave:o[9]||(o[9]=c=>J.value=!1),onMouseover:o[10]||(o[10]=c=>J.value=!0)},{default:e.withCtx(()=>[e.createVNode(e.unref(P.MoreIcon),{class:"more-icon",decorative:""})]),_:1},8,["aria-label"])]),_:2},1032,["kpop-attributes","onToggleDropdown"])):e.createCommentVNode("",!0)]),_:2},1040)):l.rowExpandable(a)?(e.openBlock(),e.createElementBlock("div",Kt,[e.createElementVNode("button",{"aria-controls":`table-${e.unref(b)}-row-${r}-expandable-content`,"aria-expanded":g.value.includes(r),"aria-label":"Toggle row expandable content",class:e.normalizeClass(["expandable-row-control",{expanded:g.value.includes(r)}]),"data-testid":"expandable-row-control",type:"button",onClick:c=>at(r,a)},[e.createVNode(e.unref(P.ChevronRightIcon),{class:"expandable-row-control-icon",decorative:""})],10,Ht)])):e.createCommentVNode("",!0),M(n.key)?(e.openBlock(),e.createElementBlock("div",{key:2,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),n.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createElementBlock("div",{key:3,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay right",{"overlay-visible":V.value}])},null,2)):e.createCommentVNode("",!0)],16)]),_:2},1024))),128))],16,Nt),K.value&&l.rowExpandable(a)?e.withDirectives((e.openBlock(),e.createElementBlock("tr",{key:0,id:`table-${e.unref(b)}-row-${r}-expandable-content`,class:"expandable-content-row","data-testid":"expandable-content-row"},[e.createElementVNode("td",{colspan:d.value.length},[e.createElementVNode("div",Lt,[e.renderSlot(t.$slots,"row-expanded",{columnWidths:we.value,nestedHeaders:ot.value,row:a},void 0,!0)])],8,xt)],8,Rt)),[[e.vShow,g.value.includes(r)]]):e.createCommentVNode("",!0)],64))),128))])],10,St)],36),!O.value&&!K.value?(e.openBlock(),e.createElementBlock("div",{key:0,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay table-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),Be.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay table-overlay right",{"overlay-visible":V.value,"scrollbar-offset":Z.value}])},null,2)),qe.value?(e.openBlock(),e.createBlock(ut.default,e.mergeProps({key:`table-${e.unref(b)}-pagination-${me.value}`,class:"table-pagination","data-testid":"table-pagination","initial-page-size":I.value},l.paginationAttributes,{onGetNextOffset:o[11]||(o[11]=a=>f("get-next-offset")),onGetPreviousOffset:o[12]||(o[12]=a=>f("get-previous-offset")),onPageChange:o[13]||(o[13]=a=>f("page-change",a)),onPageSizeChange:_e}),null,16,["initial-page-size"])):e.createCommentVNode("",!0)]))],2))}});exports.default=Ot;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ee=require("./kongponents38.cjs"),pe=require("./kongponents51.cjs"),rt=require("./kongponents25.cjs");;/* empty css */const Ce=require("./kongponents30.cjs");;/* empty css */const P=require("@kong/icons");require("./kongponents7.cjs");require("./kongponents12.cjs");const it=require("./kongponents13.cjs"),i=require("./kongponents19.cjs"),C=require("./kongponents182.cjs"),st=require("./kongponents187.cjs"),ut=require("./kongponents61.cjs"),ct=require("./kongponents49.cjs"),he=require("./kongponents42.cjs"),dt=require("./kongponents188.cjs"),yt=require("./kongponents181.cjs"),ft=require("./kongponents161.cjs"),vt=require("./kongponents189.cjs"),Se=require("./kongponents190.cjs"),bt=require("./kongponents191.cjs"),kt=require("./kongponents46.cjs"),mt=require("./kongponents192.cjs"),gt={key:0,class:"table-toolbar","data-testid":"table-toolbar"},wt={key:0,class:"toolbar-default-items-container"},pt={key:2,class:"table-error-state","data-testid":"table-error-state"},Ct={key:3,class:"table-empty-state","data-testid":"table-empty-state"},ht={key:4,class:"table-container"},St=["data-tableid"],At=["aria-sort","data-key","data-testid","onClick","onMouseover"],Tt=["onMousedown","onMouseover"],Bt=["aria-describedby"],Vt={key:1,class:"table-header-bulk-actions-container"},Et=["onMousedown","onMouseover"],Nt=["role","tabindex"],Kt={key:1,class:"expandable-row-control-container"},Ht=["aria-controls","aria-expanded","onClick"],Rt=["id"],xt=["colspan"],Lt={class:"expandable-content-wrapper"},te="desc",Ot=e.defineComponent({__name:"KTableView",props:{data:{default:()=>[]},headers:{default:()=>[]},resizeColumns:{type:Boolean},tablePreferences:{default:()=>({})},rowHover:{type:Boolean,default:!0},rowAttrs:{default:()=>(()=>({}))},rowLink:{default:()=>(()=>({}))},rowBulkActionEnabled:{default:()=>(()=>!0)},rowKey:{},cellAttrs:{default:()=>(()=>({}))},loading:{type:Boolean},emptyStateTitle:{default:"No Data"},emptyStateMessage:{default:"There is no data to display."},emptyStateActionRoute:{},emptyStateActionMessage:{default:""},emptyStateIconVariant:{default:()=>it.EmptyStateIconVariants.Default},emptyStateButtonAppearance:{default:"primary"},error:{type:Boolean},errorStateTitle:{default:"An error occurred"},errorStateMessage:{default:"Data cannot be displayed due to an error."},errorStateActionRoute:{},errorStateActionMessage:{default:""},maxHeight:{default:"none"},hidePagination:{type:Boolean},paginationAttributes:{default:()=>({})},rowExpandable:{default:()=>(()=>!1)},rowExpanded:{default:()=>(()=>!1)},hideHeaders:{type:Boolean},nested:{type:Boolean},hidePaginationWhenOptional:{type:Boolean},hideToolbar:{type:Boolean},tooltipTarget:{default:"body"},actionsDropdownPopoverAttributes:{default:()=>({})},"onRow:click":{type:Function},"onRow:dblclick":{type:Function},"onRow:auxclick":{type:Function},"onRow:contextmenu":{type:Function},"onRow:mouseover":{type:Function},"onRow:mouseout":{type:Function},"onRow:mouseenter":{type:Function},"onRow:mouseleave":{type:Function},"onRow:mousedown":{type:Function},"onRow:mouseup":{type:Function},"onRow:focus":{type:Function},"onRow:focusin":{type:Function},"onRow:blur":{type:Function},"onRow:focusout":{type:Function},"onRow:keydown":{type:Function},"onRow:keyup":{type:Function},"onRow:keypress":{type:Function},"onCell:click":{type:Function},"onCell:dblclick":{type:Function},"onCell:auxclick":{type:Function},"onCell:contextmenu":{type:Function},"onCell:mouseover":{type:Function},"onCell:mouseout":{type:Function},"onCell:mouseenter":{type:Function},"onCell:mouseleave":{type:Function},"onCell:mousedown":{type:Function},"onCell:mouseup":{type:Function},"onCell:focus":{type:Function},"onCell:focusin":{type:Function},"onCell:blur":{type:Function},"onCell:focusout":{type:Function},"onCell:keydown":{type:Function},"onCell:keyup":{type:Function},"onCell:keypress":{type:Function}},emits:["page-change","page-size-change","get-next-offset","get-previous-offset","cell-click","row-click","error-action-click","empty-state-action-click","update:table-preferences","sort","row-select","update:row-expanded","row-actions-toggle"],setup(l,{emit:Ae}){e.useCssVars(t=>({v2debc52c:e.unref(ze).expandable,v7e6b967b:Me.value,v43760593:re.value,v4e28b5e7:Re.value}));const ae=e.createPropsRestProxy(l,["resizeColumns","tablePreferences","rowHover","rowAttrs","rowLink","rowBulkActionEnabled","rowKey","cellAttrs","loading","emptyStateTitle","emptyStateMessage","emptyStateActionMessage","emptyStateIconVariant","emptyStateButtonAppearance","emptyStateActionRoute","error","errorStateTitle","errorStateMessage","errorStateActionMessage","errorStateActionRoute","maxHeight","hidePagination","paginationAttributes","rowExpandable","rowExpanded","hideHeaders","nested","hidePaginationWhenOptional","hideToolbar","tooltipTarget","data","headers","actionsDropdownPopoverAttributes"]),f=Ae,p=e.useSlots(),b=e.useId(),m=t=>typeof l.rowKey=="function"&&typeof l.rowKey(t)=="string"?l.rowKey(t):typeof l.rowKey=="string"&&l.rowKey in t&&typeof t[l.rowKey]=="string"?t[l.rowKey]:"",oe=t=>{const o=t.filter(n=>n.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&n.key!==i.TableViewHeaderKeys.ACTIONS),a=t.find(n=>n.key===i.TableViewHeaderKeys.BULK_ACTIONS),r=t.find(n=>n.key===i.TableViewHeaderKeys.ACTIONS);return a&&o.unshift(a),r&&o.push(r),o},le=e.useTemplateRef("table-wrapper"),Te=e.useTemplateRef("table"),ne=e.useTemplateRef("header-row"),h=e.ref(oe(l.headers)),d=e.ref([]),R=e.ref(""),T=e.ref(""),D=e.ref(""),Be=e.computed(()=>h.value.some(t=>t.key===i.TableViewHeaderKeys.ACTIONS)),j=e.computed(()=>h.value.filter(t=>t.hidable).length>0),x=()=>l.nested||!j.value||l.error?!1:p.toolbar?!0:!l.loading&&!!l.data&&!!l.data.length,Ve=e.computed(()=>l.loading||!(l.data&&l.data.length)),Ee=e.computed(()=>h.value.filter(t=>t.hidable&&!U(t.key))),Ne=e.computed(()=>l.nested||!j.value||l.error?{}:l.tablePreferences.columnVisibility||{}),B=e.ref(x()?l.tablePreferences.columnVisibility||{}:{}),re=e.ref("100%"),Z=e.ref(!1),L=e.ref(!1),S=e.ref(!1),V=e.ref(!1),y=e.ref(l.tablePreferences.sortColumnKey||""),v=e.ref(l.tablePreferences.sortColumnOrder||te),G=e.ref(!1),Ke=e.useTemplateRef("actionsDropdown"),J=e.ref(!1),He=e.computed(()=>({maxHeight:bt.normalizeSize(l.maxHeight)})),Re=e.computed(()=>`${vt.getScrollbarSize()}px`),E=e.ref([]),O=e.computed(()=>!l.nested&&!l.error&&h.value.some(t=>t.key===i.TableViewHeaderKeys.BULK_ACTIONS)&&!!(p["bulk-action-items"]||p["bulk-actions"])&&!!l.data.every(t=>m(t))),z=e.ref([]),Y=()=>l.nested||!O.value||l.error?!1:p.toolbar?!0:!l.loading&&!!l.data&&!!l.data.length,xe=()=>!l.hideToolbar&&!l.nested&&(!!p.toolbar||x()||Y()),ie=e.computed(()=>{const t=E.value.length;return t?t>100?"99+":String(t):""}),F=e.ref(new WeakMap),Le=t=>`column-${t}`,N=t=>`tooltip-${t}`,se=(t,o)=>(a,r)=>{const n=/^on[^a-z]/,u={};for(const s in o)n.test(s)&&o[s]&&(u[s]=o[s]);return Object.keys(u).reduce((s,c)=>{if(c.indexOf(t)===0){const k=c.split(t);s[k[1]]=H=>u[c](H,a,r)}return s},{})},Oe=e.computed(()=>(t,o)=>{const a=se("onRow:",ae)(o,"row"),r=se("onCell:",ae)(t,"cell"),n=["a","button","label","input","select",'span[role="checkbox"]'];return(a.click||r.click)&&(G.value=!0),{...a,...r,click(u){const s=u.target,c=s.className;let k=n.includes(s.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")),s.closest(".popover-content")!==null&&(H=!0);for(let w=0;w<n.length;w++)if(s.closest(n[w])!==null){k=!0;break}if((!k||s.hasAttribute("disabled"))&&!H&&(a.click||r.click))if(r.click){f("cell-click",{data:t});const w=r.click(u,t,"cell");typeof w=="function"&&w(u,t)}else{f("row-click",{data:o});const w=a.click(u,o,"row");typeof w=="function"&&w(u,o)}}}}),ue=parseInt(C.KUI_SPACE_60)*2+parseInt(C.KUI_ICON_SIZE_30),ce={expandable:ue,bulkActions:48,actions:54},ze=mt.default(ce,t=>`${t}px`),A=e.ref({...l.tablePreferences.columnWidths||{},...ce}),de=e.computed(()=>{const t={};for(const o in A.value){const a=o;if(!A.value[a])continue;const r=A.value[a]+"px";t[a]={width:r,maxWidth:r,minWidth:r}}return t}),Ie=(t,o)=>({"resize-hover":ye.value===t.key&&o!==d.value.length-1&&q(t),resizable:l.resizeColumns&&!l.nested,sortable:!t.hideLabel&&!!t.sortable,"active-sort":!t.hideLabel&&!!t.sortable&&t.key===y.value,[v.value]:t.key===y.value&&!t.hideLabel,"is-scrolled":L.value,"has-tooltip":!!t.tooltip,"sticky-column":be(t.key),"second-sticky-column":ke(t.key),"has-row-scroll-overlay":M(t.key),"actions-column":t.key===i.TableViewHeaderKeys.ACTIONS}),$e=t=>{if(t.sortable&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS){let o="asc",a=t.key;a===y.value&&v.value==="asc"&&(o="desc"),a===y.value&&v.value==="desc"&&(a="",o=te),f("sort",{prevKey:y.value,sortColumnKey:a,sortColumnOrder:o}),Xe(a)}},Pe=e.computed(()=>R.value?"resizing":T.value?"resize-hover":D.value?"th-hover":""),ye=e.computed(()=>{switch(Pe.value){case"resizing":return R.value;case"resize-hover":return T.value;case"th-hover":return D.value;default:return""}}),De=e.computed(()=>ne.value?.querySelectorAll("th.resizable")),Fe=e.computed(()=>l.resizeColumns&&!l.nested),{height:fe}=Se.useElementSize(e.computed(()=>Fe.value?ne.value:null)),Me=e.computed(()=>fe.value?`${fe.value}px`:"auto"),ve=(t,o)=>{if(t.button!==0)return;let a=0,r=0;R.value=o;let n=null;De.value?.forEach(c=>{c.getAttribute("data-testid")===`table-header-${o}`&&(n=document?.querySelector(`[data-tableid="${b}"] [data-testid="table-header-${o}"]`))});const u=c=>{const k=c.clientX-a;n?.setAttribute("style",`width: ${r+k}px`),A.value[o]=r+k},s=()=>{R.value="",document?.removeEventListener("mousemove",u),document?.removeEventListener("mouseup",s),X(),K.value&&_()};if(a=t.clientX,n){const c=window?.getComputedStyle(n);c?.width&&(r=parseInt(c.width,10)),document?.addEventListener("mousemove",u),document?.addEventListener("mouseup",s)}},be=t=>S.value?t===i.TableViewHeaderKeys.BULK_ACTIONS||t===i.TableViewHeaderKeys.EXPANDABLE:!1,ke=t=>t===i.TableViewHeaderKeys.BULK_ACTIONS&&K.value,M=t=>S.value?O.value?t===i.TableViewHeaderKeys.BULK_ACTIONS:K.value?t===i.TableViewHeaderKeys.EXPANDABLE:!1:!1,U=t=>t===i.TableViewHeaderKeys.EXPANDABLE||t===i.TableViewHeaderKeys.BULK_ACTIONS||t===i.TableViewHeaderKeys.ACTIONS,q=(t,o=!1)=>{if(!l.resizeColumns||l.nested)return!1;if(o){if(d.value.indexOf(t)===d.value.length-1)return!1;const r=d.value[d.value.indexOf(t)-1];return!U(r.key)}const a=d.value[d.value.indexOf(t)+1];return!U(t.key)&&!U(a.key)},Ue=(t,o,a)=>{f("row-actions-toggle",{row:t,open:o}),setTimeout(()=>{a.isRowActionsDropdownOpen=o},o?0:100)},qe=e.computed(()=>!(l.hidePagination||l.nested||l.hidePaginationWhenOptional&&l.data.length&&l.paginationAttributes.totalCount&&l.paginationAttributes.totalCount<=l.data.length));e.watch(()=>l.headers,t=>{h.value=oe(t)},{deep:!0,immediate:!0});const We=t=>!t.hideLabel&&!!t.sortable&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS,Xe=t=>{y.value&&t?t===y.value?v.value==="asc"?v.value="desc":v.value="asc":(y.value=t,v.value="asc"):t?(y.value=t,v.value="asc"):(y.value="",v.value=te),X()},je=t=>{const o=t.target;o&&(typeof o.scrollTop=="number"||typeof o.scrollLeft=="number")&&(o.scrollTop>1?(Z.value=!0,L.value=!0):o.scrollTop===0&&(L.value=!1),o.scrollLeft>1?S.value=!0:o.scrollLeft===0&&(S.value=!1),o.scrollWidth<=o.scrollLeft+o.clientWidth?V.value=!1:V.value=!0),Ke.value?.forEach(a=>{a&&a.closeDropdown&&a.closeDropdown()})},W=t=>z.value.find(o=>o.rowKey===m(t)),Ze=(t,o)=>({"data-testid":l.rowAttrs(t)["data-testid"]?`${l.rowAttrs(t)["data-testid"]}-actions-dropdown-popover`:`row-${o}-actions-dropdown-popover`}),Q=t=>{if(typeof l.rowBulkActionEnabled!="function")return!1;const o=l.rowBulkActionEnabled(t);return typeof o=="boolean"?o:o.enabled},Ge=t=>{if(typeof l.rowBulkActionEnabled!="function")return"";const o=l.rowBulkActionEnabled(t);return typeof o=="boolean"?"":o.disabledTooltip||""},Je=e.computed(()=>d.value.find(t=>t.key!==i.TableViewHeaderKeys.EXPANDABLE&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS&&t.key!==i.TableViewHeaderKeys.ACTIONS)?.key),Ye=(t,o)=>{const{to:a}=l.rowLink(t);return!a||o===i.TableViewHeaderKeys.BULK_ACTIONS||o===i.TableViewHeaderKeys.ACTIONS?"div":typeof a=="object"?"router-link":"a"},Qe=(t,o)=>{if(o===i.TableViewHeaderKeys.BULK_ACTIONS||o===i.TableViewHeaderKeys.ACTIONS)return{};const{to:a,target:r}=l.rowLink(t),n=a&&typeof a=="object",u=a&&typeof a=="string";return{...n&&{to:a},...u&&{href:a},...(n||u)&&{...r&&{target:r},...o!==Je.value&&{tabindex:-1}}}},me=e.ref(0),I=e.ref(yt.getInitialPageSize(l.tablePreferences,l.paginationAttributes)),_e=t=>{I.value=t.pageSize,f("page-size-change",t),X()},et=e.computed(()=>({sortColumnKey:y.value,sortColumnOrder:v.value,...l.resizeColumns?{columnWidths:A.value}:{},...j.value?{columnVisibility:B.value}:{},...I.value&&!l.hidePagination&&{pageSize:I.value}})),X=()=>{f("update:table-preferences",et.value)},K=e.computed(()=>!l.nested&&l.data.some(t=>l.rowExpandable(t))),tt={key:i.TableViewHeaderKeys.EXPANDABLE,label:"Expandable rows controls",hideLabel:!0},ge=()=>{const t=[];return l.data.forEach((o,a)=>{l.rowExpanded(o)&&t.push(a)}),t},g=e.ref(ge()),at=async(t,o)=>{_(),await e.nextTick(),g.value.includes(t)?(g.value=g.value.filter(a=>a!==t),f("update:row-expanded",{row:o,expanded:!1})):(g.value=[...g.value,t],f("update:row-expanded",{row:o,expanded:!0}))},ot=e.computed(()=>d.value.filter(t=>t.key!==i.TableViewHeaderKeys.EXPANDABLE&&t.key!==i.TableViewHeaderKeys.BULK_ACTIONS)),we=e.ref({}),_=()=>{if(typeof document>"u")return;const o=document?.querySelector(`[data-tableid="${b}"]`)?.querySelectorAll("th"),a={};o?.forEach((r,n)=>{const u=r.getAttribute("data-key");if(u===i.TableViewHeaderKeys.EXPANDABLE)return;let s=r.getBoundingClientRect().width;n===1&&(s+=ue),n===o.length-1&&(s-=15),a[u]=s}),we.value=a};e.watch([B,h,K],t=>{const[o,a,r]=t;let n=a.filter(u=>u.key===i.TableViewHeaderKeys.BULK_ACTIONS?O.value:o[u.key]!==!1);n.find(u=>u.key===i.TableViewHeaderKeys.EXPANDABLE)&&(n=n.filter(u=>u.key!==i.TableViewHeaderKeys.EXPANDABLE)),r&&n.unshift(tt),JSON.stringify(n)!==JSON.stringify(d.value)&&(d.value=n,X()),r&&_()},{deep:!0,immediate:!0}),e.watch(()=>x(),t=>{t&&(B.value=l.tablePreferences.columnVisibility||{})},{immediate:!0});const $=e.ref(!1),lt=e.computed(()=>{const t=z.value.filter(o=>!o.disabled&&l.data.find(a=>m(a)===o.rowKey));return!!t.filter(o=>o.selected).length&&!!t.filter(o=>!o.selected).length}),nt=t=>{z.value.forEach(o=>{l.data.find(a=>m(a)===o.rowKey)&&!o.disabled&&(o.selected=t)})};return e.watch([()=>l.data,z],t=>{const[o,a]=t;if(o.forEach(r=>{if(!F.value.get(r)){const n=m(r)||ft.getUniqueStringId();F.value.set(r,`table-${b}-row-${n}`)}}),O.value){o.forEach(s=>{W(s)||z.value.push({rowKey:m(s),selected:!1,disabled:!Q(s)})});const r=a.filter(s=>!s.disabled&&o.find(c=>m(c)===s.rowKey));r.length&&r.filter(s=>s.selected).length===r.length?$.value=!0:(r.filter(s=>!s.selected).length,r.length,$.value=!1);const n=o.filter(s=>{const c=a.find(k=>k.rowKey===m(s));return!!(c&&c.selected)}),u=[];E.value.forEach(s=>{o.find(k=>m(s)===m(k))||u.push(s)}),E.value=[...u,...n]}g.value=ge()},{deep:!0,immediate:!0}),e.watch(E,t=>{f("row-select",t)}),e.watch(()=>l.tablePreferences,t=>{t?.pageSize&&(I.value=t.pageSize,me.value++),y.value=t?.sortColumnKey?t.sortColumnKey:y.value,v.value=t?.sortColumnOrder?t.sortColumnOrder:v.value,A.value=t?.columnWidths?t.columnWidths:A.value,B.value=t?.columnVisibility?t.columnVisibility:B.value}),Se.useResizeObserver([le,Te],()=>{const t=le.value;t&&(V.value=t.scrollWidth>t.clientWidth,re.value=t.clientHeight+"px",Z.value=t.scrollHeight>t.clientHeight)}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-table-view",{"hide-headers":l.hideHeaders}])},[xe()?(e.openBlock(),e.createElementBlock("div",gt,[e.renderSlot(t.$slots,"toolbar",{},void 0,!0),Y()||x()?(e.openBlock(),e.createElementBlock("div",wt,[Y()?e.renderSlot(t.$slots,"bulk-actions",{selectedRows:E.value},()=>[p["bulk-actions"]?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(dt.default,{key:0,"button-label":h.value.find(a=>a.key===e.unref(i.TableViewHeaderKeys).BULK_ACTIONS).label,count:ie.value,disabled:!ie.value||l.loading||!l.data.length},{items:e.withCtx(()=>[e.renderSlot(t.$slots,"bulk-action-items",{selectedRows:E.value},void 0,!0)]),_:3},8,["button-label","count","disabled"]))],!0,0):e.createCommentVNode("",!0),x()?(e.openBlock(),e.createBlock(st.default,{key:1,columns:Ee.value,disabled:Ve.value,"table-id":e.unref(b),"visibility-preferences":Ne.value,onUpdate:o[0]||(o[0]=a=>B.value=a)},null,8,["columns","disabled","table-id","visibility-preferences"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.loading&&!l.error?(e.openBlock(),e.createBlock(rt.default,{key:1,"data-testid":"table-skeleton",type:"table"})):l.error?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(t.$slots,"error-state",{},()=>[e.createVNode(pe.default,{"icon-variant":"error",message:l.errorStateMessage,title:l.errorStateTitle},e.createSlots({_:2},[l.errorStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(ee.default,{"data-testid":"error-state-action",to:l.errorStateActionRoute,onClick:o[1]||(o[1]=a=>f("error-action-click"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.errorStateActionMessage),1)]),_:1},8,["to"])]),key:"0"}:void 0]),1032,["message","title"])],!0)])):!l.error&&!l.loading&&l.data&&!l.data.length?(e.openBlock(),e.createElementBlock("div",Ct,[e.renderSlot(t.$slots,"empty-state",{},()=>[e.createVNode(pe.default,{"icon-variant":l.emptyStateIconVariant,message:l.emptyStateMessage,title:l.emptyStateTitle},e.createSlots({_:2},[l.emptyStateActionMessage?{name:"action",fn:e.withCtx(()=>[e.createVNode(ee.default,{appearance:l.emptyStateButtonAppearance,"data-testid":"empty-state-action",to:l.emptyStateActionRoute,onClick:o[2]||(o[2]=a=>f("empty-state-action-click"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"empty-state-action-icon",{},void 0,!0),e.createTextVNode(" "+e.toDisplayString(l.emptyStateActionMessage),1)]),_:3},8,["appearance","to"])]),key:"0"}:void 0]),1032,["icon-variant","message","title"])],!0)])):(e.openBlock(),e.createElementBlock("div",ht,[e.createElementVNode("div",{ref:"table-wrapper",class:"table-wrapper",style:e.normalizeStyle(He.value),onScrollPassive:je},[e.createElementVNode("table",{ref:"table",class:e.normalizeClass(["table",{"has-hover":l.rowHover&&!J.value,"is-clickable":G.value}]),"data-tableid":e.unref(b)},[l.hideHeaders?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("thead",{key:0,class:e.normalizeClass({"is-scrolled":L.value})},[e.createElementVNode("tr",{ref:"header-row",class:e.normalizeClass({"is-scrolled":L.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,r)=>(e.openBlock(),e.createElementBlock("th",{key:`table-${e.unref(b)}-headers-${a.key}`,"aria-sort":a.key===y.value?v.value==="asc"?"ascending":"descending":void 0,class:e.normalizeClass(["table-headers",Ie(a,r)]),"data-key":a.key,"data-testid":`table-header-${a.key}`,style:e.normalizeStyle(de.value[a.key]),onClick:()=>$e(a),onMouseleave:o[8]||(o[8]=n=>D.value=""),onMouseover:n=>D.value=a.key},[r!==0&&q(a,!0)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"resize-handle previous",onClick:o[3]||(o[3]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>ve(n,d.value[r-1].key),onMouseleave:o[4]||(o[4]=n=>T.value=""),onMouseover:n=>T.value=d.value[r-1].key},null,40,Tt)):e.createCommentVNode("",!0),e.createElementVNode("div",{"aria-describedby":a.tooltip||p[N(a.key)]?`${N(a.key)}-${e.unref(b)}`:void 0,class:e.normalizeClass(["table-headers-container",{resized:R.value===a.key}])},[a.key!==e.unref(i.TableViewHeaderKeys).BULK_ACTIONS?e.renderSlot(t.$slots,Le(a.key),{column:a},()=>[e.createElementVNode("span",{class:e.normalizeClass(["table-header-label",{"sr-only":a.hideLabel||a.key===e.unref(i.TableViewHeaderKeys).ACTIONS&&a.hideLabel!==!1}])},e.toDisplayString(a.label?a.label:a.key),3)],!0,0):(e.openBlock(),e.createElementBlock("div",Vt,[e.createVNode(he.default,{modelValue:$.value,"onUpdate:modelValue":o[5]||(o[5]=n=>$.value=n),"aria-label":"Toggle selection for all rows",class:"table-header-bulk-actions-checkbox","data-testid":"table-header-bulk-actions-checkbox",indeterminate:lt.value,onChange:nt},null,8,["modelValue","indeterminate"])])),a.tooltip||p[N(a.key)]?(e.openBlock(),e.createBlock(Ce.default,{key:2,"data-testid":N(a.key),"kpop-attributes":{target:l.tooltipTarget},"max-width":"300","tooltip-id":`${N(a.key)}-${e.unref(b)}`},{content:e.withCtx(()=>[e.renderSlot(t.$slots,N(a.key),{column:a},()=>[e.createTextVNode(e.toDisplayString(a.tooltip),1)],!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(P.InfoIcon),{class:"header-tooltip-trigger",color:`var(--kui-color-text-neutral, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL)})`,size:`var(--kui-icon-size-30, ${e.unref(C.KUI_ICON_SIZE_30)})`,tabindex:"0"},null,8,["color","size"])]),_:2},1032,["data-testid","kpop-attributes","tooltip-id"])):e.createCommentVNode("",!0),We(a)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[y.value===a.key?(e.openBlock(),e.createBlock(e.unref(P.ArrowDownIcon),{key:0,class:"active-sort-icon",color:`var(--kui-color-text-primary, ${e.unref(C.KUI_COLOR_TEXT_PRIMARY)})`,decorative:"",size:`var(--kui-icon-size-30, ${e.unref(C.KUI_ICON_SIZE_30)})`},null,8,["color","size"])):(e.openBlock(),e.createBlock(e.unref(P.SwapSortIcon),{key:1,class:"sort-icon",color:`var(--kui-color-text-neutral-weak, ${e.unref(C.KUI_COLOR_TEXT_NEUTRAL_WEAK)})`,size:`var(--kui-icon-size-30, ${e.unref(C.KUI_ICON_SIZE_30)})`,title:`Sort by ${a.label}`},null,8,["color","size","title"]))],64)):e.createCommentVNode("",!0)],10,Bt),r!==d.value.length-1&&q(a)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"resize-handle",onClick:o[6]||(o[6]=e.withModifiers(()=>{},["stop"])),onMousedown:n=>ve(n,a.key),onMouseleave:o[7]||(o[7]=n=>T.value=""),onMouseover:n=>T.value=a.key},null,40,Et)):e.createCommentVNode("",!0),M(a.key)?(e.openBlock(),e.createElementBlock("div",{key:2,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),a.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createElementBlock("div",{key:3,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay right",{"overlay-visible":V.value}])},null,2)):e.createCommentVNode("",!0)],46,At))),128))],2)],2)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:F.value.get(a)},[e.createElementVNode("tr",e.mergeProps({class:{"last-row":r===l.data.length-1&&!g.value.includes(r)},role:l.rowLink(a).to?"link":void 0,tabindex:G.value&&!l.rowLink(a).to?0:void 0},{ref_for:!0},l.rowAttrs(a)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(n,u)=>(e.openBlock(),e.createBlock(e.unref(kt.default),{key:`${F.value.get(a)}-cell-${n.key}`,data:{isRowActionsDropdownOpen:!1}},{default:e.withCtx(({data:s})=>[e.createElementVNode("td",e.mergeProps({class:{"resize-hover":ye.value===n.key&&u!==d.value.length-1&&q(n),"row-link":!!l.rowLink(a).to,"sticky-column":be(n.key),"second-sticky-column":ke(n.key),"has-row-scroll-overlay":M(n.key),"actions-column":n.key===e.unref(i.TableViewHeaderKeys).ACTIONS},style:{...de.value[n.key],...s.isRowActionsDropdownOpen?{zIndex:2}:{}}},{ref_for:!0},l.cellAttrs({headerKey:n.key,row:a,rowIndex:r,colIndex:u}),e.toHandlers(Oe.value(a[n.key],a),!0)),[n.key!==e.unref(i.TableViewHeaderKeys).EXPANDABLE?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ye(a,n.key)),e.mergeProps({key:0,class:"cell-wrapper"},{ref_for:!0},Qe(a,n.key)),{default:e.withCtx(()=>[n.key!==e.unref(i.TableViewHeaderKeys).BULK_ACTIONS&&n.key!==e.unref(i.TableViewHeaderKeys).ACTIONS?e.renderSlot(t.$slots,n.key,{row:a,rowKey:r,rowValue:a[n.key]},()=>[e.createTextVNode(e.toDisplayString(a[n.key]),1)],!0,0):n.key===e.unref(i.TableViewHeaderKeys).BULK_ACTIONS&&W(a)?(e.openBlock(),e.createBlock(Ce.default,{key:1,"kpop-attributes":{target:l.tooltipTarget},"max-width":"200",placement:"bottom-start",text:Q(a)?void 0:Ge(a)},{default:e.withCtx(()=>[e.createVNode(he.default,{modelValue:W(a).selected,"onUpdate:modelValue":c=>W(a).selected=c,"aria-label":"Toggle row selection",class:"bulk-actions-checkbox","data-testid":"bulk-actions-checkbox",disabled:!Q(a)},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["kpop-attributes","text"])):n.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createBlock(ct.default,{key:2,ref_for:!0,ref:"actionsDropdown",class:"actions-dropdown","data-testid":"actions-dropdown","kpop-attributes":{...l.actionsDropdownPopoverAttributes,placement:"bottom-end",target:"body",popoverElementAttributes:Ze(a,r)},onToggleDropdown:c=>Ue(a,c,s)},{items:e.withCtx(()=>[e.renderSlot(t.$slots,"action-items",{row:a},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(ee.default,{appearance:"tertiary","aria-label":n.label,class:"actions-dropdown-trigger","data-testid":"row-actions-dropdown-trigger",icon:"",size:"small",onMouseleave:o[9]||(o[9]=c=>J.value=!1),onMouseover:o[10]||(o[10]=c=>J.value=!0)},{default:e.withCtx(()=>[e.createVNode(e.unref(P.MoreIcon),{class:"more-icon",decorative:""})]),_:1},8,["aria-label"])]),_:2},1032,["kpop-attributes","onToggleDropdown"])):e.createCommentVNode("",!0)]),_:2},1040)):l.rowExpandable(a)?(e.openBlock(),e.createElementBlock("div",Kt,[e.createElementVNode("button",{"aria-controls":`table-${e.unref(b)}-row-${r}-expandable-content`,"aria-expanded":g.value.includes(r),"aria-label":"Toggle row expandable content",class:e.normalizeClass(["expandable-row-control",{expanded:g.value.includes(r)}]),"data-testid":"expandable-row-control",type:"button",onClick:c=>at(r,a)},[e.createVNode(e.unref(P.ChevronRightIcon),{class:"expandable-row-control-icon",decorative:""})],10,Ht)])):e.createCommentVNode("",!0),M(n.key)?(e.openBlock(),e.createElementBlock("div",{key:2,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),n.key===e.unref(i.TableViewHeaderKeys).ACTIONS?(e.openBlock(),e.createElementBlock("div",{key:3,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay row-overlay right",{"overlay-visible":V.value}])},null,2)):e.createCommentVNode("",!0)],16)]),_:2},1024))),128))],16,Nt),K.value&&l.rowExpandable(a)?e.withDirectives((e.openBlock(),e.createElementBlock("tr",{key:0,id:`table-${e.unref(b)}-row-${r}-expandable-content`,class:"expandable-content-row","data-testid":"expandable-content-row"},[e.createElementVNode("td",{colspan:d.value.length},[e.createElementVNode("div",Lt,[e.renderSlot(t.$slots,"row-expanded",{columnWidths:we.value,nestedHeaders:ot.value,row:a},void 0,!0)])],8,xt)],8,Rt)),[[e.vShow,g.value.includes(r)]]):e.createCommentVNode("",!0)],64))),128))])],10,St)],36),!O.value&&!K.value?(e.openBlock(),e.createElementBlock("div",{key:0,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay table-overlay left",{"overlay-visible":S.value}])},null,2)):e.createCommentVNode("",!0),Be.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,"aria-hidden":"true",class:e.normalizeClass(["scroll-overlay table-overlay right",{"overlay-visible":V.value,"scrollbar-offset":Z.value}])},null,2)),qe.value?(e.openBlock(),e.createBlock(ut.default,e.mergeProps({key:`table-${e.unref(b)}-pagination-${me.value}`,class:"table-pagination","data-testid":"table-pagination","initial-page-size":I.value},l.paginationAttributes,{onGetNextOffset:o[11]||(o[11]=a=>f("get-next-offset")),onGetPreviousOffset:o[12]||(o[12]=a=>f("get-previous-offset")),onPageChange:o[13]||(o[13]=a=>f("page-change",a)),onPageSizeChange:_e}),null,16,["initial-page-size"])):e.createCommentVNode("",!0)]))],2))}});exports.default=Ot;
@@ -11,18 +11,18 @@ import "./kongponents12.es.js";
11
11
  import { EmptyStateIconVariants as Ft } from "./kongponents13.es.js";
12
12
  import { TableViewHeaderKeys as i } from "./kongponents19.es.js";
13
13
  import { KUI_ICON_SIZE_30 as re, KUI_COLOR_TEXT_NEUTRAL as Ut, KUI_COLOR_TEXT_PRIMARY as Vt, KUI_COLOR_TEXT_NEUTRAL_WEAK as Wt, KUI_SPACE_60 as Xt } from "./kongponents182.es.js";
14
- import qt from "./kongponents203.es.js";
14
+ import qt from "./kongponents187.es.js";
15
15
  import jt from "./kongponents61.es.js";
16
16
  import Zt from "./kongponents49.es.js";
17
17
  import Ue from "./kongponents42.es.js";
18
- import Gt from "./kongponents217.es.js";
18
+ import Gt from "./kongponents188.es.js";
19
19
  import { getInitialPageSize as Jt } from "./kongponents181.es.js";
20
20
  import { getUniqueStringId as Yt } from "./kongponents161.es.js";
21
- import { getScrollbarSize as Qt } from "./kongponents196.es.js";
22
- import { useElementSize as _t, useResizeObserver as ea } from "./kongponents187.es.js";
23
- import { normalizeSize as ta } from "./kongponents188.es.js";
21
+ import { getScrollbarSize as Qt } from "./kongponents189.es.js";
22
+ import { useElementSize as _t, useResizeObserver as ea } from "./kongponents190.es.js";
23
+ import { normalizeSize as ta } from "./kongponents191.es.js";
24
24
  import aa from "./kongponents46.es.js";
25
- import oa from "./kongponents218.es.js";
25
+ import oa from "./kongponents192.es.js";
26
26
  const la = {
27
27
  key: 0,
28
28
  class: "table-toolbar",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("./kongponents189.cjs"),N=require("./kongponents190.cjs"),A=require("./kongponents182.cjs"),L={class:"k-filter-group"},M={key:0,class:"label","data-testid":"filter-group-label"},I=["data-testid"],V=e.defineComponent({__name:"KFilterGroup",props:e.mergeModels({filters:{},groupLabel:{default:"Filters"},selectorLabel:{default:()=>{}},itemFiltering:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["apply","clear","open","close"],["update:modelValue"]),setup(n,{emit:p}){const F=e.useSlots(),g=t=>`filter-${t}`,v=t=>`filter-item-${t}`,r=e.useModel(n,"modelValue"),i=e.ref(),u=e.ref([]),s=p,f=e.computed(()=>{const t=Object.keys(n.filters).filter(l=>n.filters[l].pinned),o=u.value.filter(l=>r.value[l]!==void 0);return i.value!==void 0&&!t.includes(i.value)&&!o.includes(i.value)&&o.push(i.value),[...t,...o]}),d=e.computed(()=>Object.keys(n.filters).filter(t=>!f.value.includes(t))),b=e.computed(()=>d.value.reduce((t,o)=>({...t,[o]:n.filters[o]}),{})),h=Number.parseFloat(A.KUI_ANIMATION_DURATION_20)*1e3,S=t=>{setTimeout(()=>{i.value=t},h)},B=t=>{i.value!==void 0&&m(i.value),i.value=t,s("open",t)},m=t=>{i.value===t&&(i.value=void 0),s("close",t)},C=t=>{r.value[t]=void 0,i.value===t&&(i.value=void 0),s("clear",t,r.value)},O=(t,o)=>{o!==void 0&&(r.value[t]=o),i.value===t&&(i.value=void 0),s("apply",t,r.value)};return e.watch(r,t=>{Object.entries(t).forEach(([o,l])=>{if(n.filters[o]?.pinned)return;const c=u.value.indexOf(o);c!==-1&&l===void 0?u.value=[...u.value.slice(0,c),...u.value.slice(c+1)]:c===-1&&l!==void 0&&u.value.push(o)})},{immediate:!0,deep:!0}),(t,o)=>(e.openBlock(),e.createElementBlock("div",L,[n.groupLabel?(e.openBlock(),e.createElementBlock("div",M,e.toDisplayString(n.groupLabel),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,l=>(e.openBlock(),e.createElementBlock("div",{key:`filter-pill-${l}`,"data-testid":`filter-group-pill-${l}`},[e.createVNode(N.default,{custom:!!e.unref(F)[`filter-${l}`],filter:n.filters[l],"init-open":l===i.value,selection:r.value[l],onApply:a=>O(l,a),onClear:a=>C(l),onClose:a=>m(l),onOpen:a=>B(l)},{default:e.withCtx(a=>[e.renderSlot(t.$slots,g(l),e.mergeProps({ref_for:!0},a),void 0,!0)]),_:2},1032,["custom","filter","init-open","selection","onApply","onClear","onClose","onOpen"])],8,I))),128)),d.value.length>0?(e.openBlock(),e.createBlock($.default,{key:1,filters:b.value,"item-filtering":n.itemFiltering,label:n.selectorLabel?n.selectorLabel:"Add filter",onSelect:S},e.createSlots({_:2},[e.renderList(d.value,l=>({name:v(l),fn:e.withCtx(()=>[e.renderSlot(t.$slots,v(l),{},void 0,!0)])}))]),1032,["filters","item-filtering","label"])):e.createCommentVNode("",!0)]))}});exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("./kongponents185.cjs"),N=require("./kongponents186.cjs"),A=require("./kongponents182.cjs"),L={class:"k-filter-group"},M={key:0,class:"label","data-testid":"filter-group-label"},I=["data-testid"],V=e.defineComponent({__name:"KFilterGroup",props:e.mergeModels({filters:{},groupLabel:{default:"Filters"},selectorLabel:{default:()=>{}},itemFiltering:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["apply","clear","open","close"],["update:modelValue"]),setup(n,{emit:p}){const F=e.useSlots(),g=t=>`filter-${t}`,v=t=>`filter-item-${t}`,r=e.useModel(n,"modelValue"),i=e.ref(),u=e.ref([]),s=p,f=e.computed(()=>{const t=Object.keys(n.filters).filter(l=>n.filters[l].pinned),o=u.value.filter(l=>r.value[l]!==void 0);return i.value!==void 0&&!t.includes(i.value)&&!o.includes(i.value)&&o.push(i.value),[...t,...o]}),d=e.computed(()=>Object.keys(n.filters).filter(t=>!f.value.includes(t))),b=e.computed(()=>d.value.reduce((t,o)=>({...t,[o]:n.filters[o]}),{})),h=Number.parseFloat(A.KUI_ANIMATION_DURATION_20)*1e3,S=t=>{setTimeout(()=>{i.value=t},h)},B=t=>{i.value!==void 0&&m(i.value),i.value=t,s("open",t)},m=t=>{i.value===t&&(i.value=void 0),s("close",t)},C=t=>{r.value[t]=void 0,i.value===t&&(i.value=void 0),s("clear",t,r.value)},O=(t,o)=>{o!==void 0&&(r.value[t]=o),i.value===t&&(i.value=void 0),s("apply",t,r.value)};return e.watch(r,t=>{Object.entries(t).forEach(([o,l])=>{if(n.filters[o]?.pinned)return;const c=u.value.indexOf(o);c!==-1&&l===void 0?u.value=[...u.value.slice(0,c),...u.value.slice(c+1)]:c===-1&&l!==void 0&&u.value.push(o)})},{immediate:!0,deep:!0}),(t,o)=>(e.openBlock(),e.createElementBlock("div",L,[n.groupLabel?(e.openBlock(),e.createElementBlock("div",M,e.toDisplayString(n.groupLabel),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,l=>(e.openBlock(),e.createElementBlock("div",{key:`filter-pill-${l}`,"data-testid":`filter-group-pill-${l}`},[e.createVNode(N.default,{custom:!!e.unref(F)[`filter-${l}`],filter:n.filters[l],"init-open":l===i.value,selection:r.value[l],onApply:a=>O(l,a),onClear:a=>C(l),onClose:a=>m(l),onOpen:a=>B(l)},{default:e.withCtx(a=>[e.renderSlot(t.$slots,g(l),e.mergeProps({ref_for:!0},a),void 0,!0)]),_:2},1032,["custom","filter","init-open","selection","onApply","onClear","onClose","onOpen"])],8,I))),128)),d.value.length>0?(e.openBlock(),e.createBlock($.default,{key:1,filters:b.value,"item-filtering":n.itemFiltering,label:n.selectorLabel?n.selectorLabel:"Add filter",onSelect:S},e.createSlots({_:2},[e.renderList(d.value,l=>({name:v(l),fn:e.withCtx(()=>[e.renderSlot(t.$slots,v(l),{},void 0,!0)])}))]),1032,["filters","item-filtering","label"])):e.createCommentVNode("",!0)]))}});exports.default=V;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as x, useSlots as D, useModel as T, ref as g, computed as f, watch as w, openBlock as s, createElementBlock as c, toDisplayString as E, createCommentVNode as b, Fragment as K, renderList as h, createVNode as P, unref as U, withCtx as $, renderSlot as C, mergeProps as q, createBlock as G, createSlots as R, mergeModels as O } from "vue";
2
- import z from "./kongponents189.es.js";
3
- import H from "./kongponents190.es.js";
2
+ import z from "./kongponents185.es.js";
3
+ import H from "./kongponents186.es.js";
4
4
  import { KUI_ANIMATION_DURATION_20 as J } from "./kongponents182.es.js";
5
5
  const Q = { class: "k-filter-group" }, W = {
6
6
  key: 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./kongponents220.cjs");;/* empty css */const t=require("./kongponents83.cjs"),u=t.default(e.default,[["__scopeId","data-v-72a28527"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./kongponents290.cjs"),a=require("./kongponents287.cjs"),i=require("./kongponents291.cjs"),s=require("./kongponents292.cjs");function o(e,r){if(e==null)return{};var t=l.default(s.default(e),function(u){return[u]});return r=a.default(r),i.default(e,t,function(u,n){return r(u,n[0])})}exports.default=o;
@@ -1,7 +1,17 @@
1
- import t from "./kongponents220.es.js";
2
- /* empty css */
3
- import o from "./kongponents83.es.js";
4
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-72a28527"]]);
1
+ import u from "./kongponents290.es.js";
2
+ import i from "./kongponents287.es.js";
3
+ import m from "./kongponents291.es.js";
4
+ import a from "./kongponents292.es.js";
5
+ function y(r, n) {
6
+ if (r == null)
7
+ return {};
8
+ var o = u(a(r), function(t) {
9
+ return [t];
10
+ });
11
+ return n = i(n), m(r, o, function(t, f) {
12
+ return n(t, f[0]);
13
+ });
14
+ }
5
15
  export {
6
- a as default
16
+ y as default
7
17
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./kongponents222.cjs");;/* empty css */const t=require("./kongponents83.cjs"),u=t.default(e.default,[["__scopeId","data-v-409cfb15"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./kongponents221.cjs");;/* empty css */const t=require("./kongponents83.cjs"),r=t.default(e.default,[["__scopeId","data-v-4b260443"]]);exports.default=r;
@@ -1,7 +1,7 @@
1
- import t from "./kongponents222.es.js";
1
+ import o from "./kongponents221.es.js";
2
2
  /* empty css */
3
- import o from "./kongponents83.es.js";
4
- const c = /* @__PURE__ */ o(t, [["__scopeId", "data-v-409cfb15"]]);
3
+ import t from "./kongponents83.es.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4b260443"]]);
5
5
  export {
6
- c as default
6
+ p as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class r{resizeObserver;callback;constructor(e){this.callback=e,this.resizeObserver=new ResizeObserver(s=>{window.requestAnimationFrame(()=>{!Array.isArray(s)||!s.length||e()})})}static create(e){return new r(e)}observe(e){!this.resizeObserver||!e||this.resizeObserver.observe(e)}unobserve(e){!this.resizeObserver||!e||this.resizeObserver.unobserve(e)}}exports.ResizeObserverHelper=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./kongponents223.cjs");;/* empty css */const t=require("./kongponents83.cjs"),u=t.default(e.default,[["__scopeId","data-v-72d30b29"]]);exports.default=u;
@@ -1,23 +1,7 @@
1
- class s {
2
- resizeObserver;
3
- callback;
4
- constructor(e) {
5
- this.callback = e, this.resizeObserver = new ResizeObserver((r) => {
6
- window.requestAnimationFrame(() => {
7
- !Array.isArray(r) || !r.length || e();
8
- });
9
- });
10
- }
11
- static create(e) {
12
- return new s(e);
13
- }
14
- observe(e) {
15
- !this.resizeObserver || !e || this.resizeObserver.observe(e);
16
- }
17
- unobserve(e) {
18
- !this.resizeObserver || !e || this.resizeObserver.unobserve(e);
19
- }
20
- }
1
+ import o from "./kongponents223.es.js";
2
+ /* empty css */
3
+ import t from "./kongponents83.es.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-72d30b29"]]);
21
5
  export {
22
- s as ResizeObserverHelper
6
+ p as default
23
7
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./kongponents219.cjs"),r=require("vue"),R=a.isClient?window:void 0;function m(t){var n;const i=r.toValue(t);return(n=i?.$el)!==null&&n!==void 0?n:i}function C(...t){const n=(e,l,s,d)=>(e.addEventListener(l,s,d),()=>e.removeEventListener(l,s,d)),i=r.computed(()=>{const e=a.toArray(r.toValue(t[0])).filter(l=>l!=null);return e.every(l=>typeof l!="string")?e:void 0});return a.watchImmediate(()=>{var e,l;return[(e=(l=i.value)===null||l===void 0?void 0:l.map(s=>m(s)))!==null&&e!==void 0?e:[R].filter(s=>s!=null),a.toArray(r.toValue(i.value?t[1]:t[0])),a.toArray(r.unref(i.value?t[2]:t[1])),r.toValue(i.value?t[3]:t[2])]},([e,l,s,d],p,f)=>{if(!e?.length||!l?.length||!s?.length)return;const h=a.isObject(d)?{...d}:d,g=e.flatMap(o=>l.flatMap(y=>s.map(w=>n(o,y,w,h))));f(()=>{g.forEach(o=>o())})},{flush:"post"})}function T(t,n,i={}){const{window:e=R,ignore:l=[],capture:s=!0,detectIframe:d=!1,controls:p=!1}=i;if(!e)return p?{stop:a.noop,cancel:a.noop,trigger:a.noop}:a.noop;let f=!0;const h=u=>r.toValue(l).some(c=>{if(typeof c=="string")return Array.from(e.document.querySelectorAll(c)).some(v=>v===u.target||u.composedPath().includes(v));{const v=m(c);return v&&(u.target===v||u.composedPath().includes(v))}});function g(u){const c=r.toValue(u);return c&&c.$.subTree.shapeFlag===16}function o(u,c){const v=r.toValue(u),E=v.$.subTree&&v.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(O=>O.el===c.target||c.composedPath().includes(O.el))}const y=u=>{const c=m(t);if(u.target!=null&&!(!(c instanceof Element)&&g(t)&&o(t,u))&&!(!c||c===u.target||u.composedPath().includes(c))){if("detail"in u&&u.detail===0&&(f=!h(u)),!f){f=!0;return}n(u)}};let w=!1;const b=[C(e,"click",u=>{w||(w=!0,setTimeout(()=>{w=!1},0),y(u))},{passive:!0,capture:s}),C(e,"pointerdown",u=>{const c=m(t);f=!h(u)&&!!(c&&!u.composedPath().includes(c))},{passive:!0}),d&&C(e,"blur",u=>{setTimeout(()=>{const c=m(t);let v=e.document.activeElement;for(;v?.shadowRoot;)v=v.shadowRoot.activeElement;v?.tagName==="IFRAME"&&!c?.contains(e.document.activeElement)&&n(u)},0)},{passive:!0})].filter(Boolean),S=()=>b.forEach(u=>u());return p?{stop:S,cancel:()=>{f=!1},trigger:u=>{f=!0,y(u),f=!1}}:S}function A(){const t=r.shallowRef(!1),n=r.getCurrentInstance();return n&&r.onMounted(()=>{t.value=!0},n),t}function x(t){const n=A();return r.computed(()=>(n.value,!!t()))}function M(t,n,i={}){const{window:e=R,...l}=i;let s;const d=x(()=>e&&"ResizeObserver"in e),p=()=>{s&&(s.disconnect(),s=void 0)},f=r.watch(r.computed(()=>{const g=r.toValue(t);return Array.isArray(g)?g.map(o=>m(o)):[m(g)]}),g=>{if(p(),d.value&&e){s=new ResizeObserver(n);for(const o of g)o&&s.observe(o,l)}},{immediate:!0,flush:"post"}),h=()=>{p(),f()};return a.tryOnScopeDispose(h),{isSupported:d,stop:h}}function $(t,n={width:0,height:0},i={}){const{window:e=R,box:l="content-box"}=i,s=r.computed(()=>{var o;return(o=m(t))===null||o===void 0||(o=o.namespaceURI)===null||o===void 0?void 0:o.includes("svg")}),d=r.shallowRef(n.width),p=r.shallowRef(n.height),{stop:f}=M(t,([o])=>{const y=l==="border-box"?o.borderBoxSize:l==="content-box"?o.contentBoxSize:o.devicePixelContentBoxSize;if(e&&s.value){const w=m(t);if(w){const b=w.getBoundingClientRect();d.value=b.width,p.value=b.height}}else if(y){const w=a.toArray(y);d.value=w.reduce((b,{inlineSize:S})=>b+S,0),p.value=w.reduce((b,{blockSize:S})=>b+S,0)}else d.value=o.contentRect.width,p.value=o.contentRect.height},i);a.tryOnMounted(()=>{const o=m(t);o&&(d.value="offsetWidth"in o?o.offsetWidth:n.width,p.value="offsetHeight"in o?o.offsetHeight:n.height)});const h=r.watch(()=>m(t),o=>{d.value=o?n.width:0,p.value=o?n.height:0});function g(){f(),h()}return{width:d,height:p,stop:g}}function P(t){var n;const i=(n=t.rangeCount)!==null&&n!==void 0?n:0;return Array.from({length:i},(e,l)=>t.getRangeAt(l))}function V(t={}){var n;const{window:i=R}=t,e=r.shallowRef((n=i?.getSelection())!==null&&n!==void 0?n:null),l=r.computed(()=>{var f,h;return(f=(h=e.value)===null||h===void 0?void 0:h.toString())!==null&&f!==void 0?f:""}),s=r.computed(()=>e.value?P(e.value):[]),d=r.computed(()=>s.value.map(f=>f.getBoundingClientRect()));function p(){e.value=null,i&&(e.value=i.getSelection())}return i&&C(i.document,"selectionchange",p,{passive:!0}),{text:l,rects:d,ranges:s,selection:e}}exports.getLifeCycleTarget=a.getLifeCycleTarget;exports.isClient=a.isClient;exports.isObject=a.isObject;exports.noop=a.noop;exports.toArray=a.toArray;exports.tryOnMounted=a.tryOnMounted;exports.tryOnScopeDispose=a.tryOnScopeDispose;exports.watchImmediate=a.watchImmediate;exports.defaultWindow=R;exports.onClickOutside=T;exports.unrefElement=m;exports.useElementSize=$;exports.useEventListener=C;exports.useMounted=A;exports.useResizeObserver=M;exports.useSupported=x;exports.useTextSelection=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./kongponents234.cjs");;/* empty css */const u=require("./kongponents83.cjs"),t=u.default(e.default,[["__scopeId","data-v-2ef0f9b8"]]);exports.default=t;