@kong/kongponents 9.65.3 → 9.66.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 (858) hide show
  1. package/bin/index.js +41 -0
  2. package/bin/kongponents-mcp.js +11 -0
  3. package/bin/mcp/server.js +119 -0
  4. package/bin/mcp-data/snapshot.json.gz +0 -0
  5. package/bin/utils/index.js +5 -0
  6. package/bin/utils/kongponents.js +182 -0
  7. package/bin/utils/strings.js +81 -0
  8. package/dist/kongponents102.cjs +1 -1
  9. package/dist/kongponents102.es.js +1 -1
  10. package/dist/kongponents104.cjs +1 -1
  11. package/dist/kongponents104.es.js +5 -5
  12. package/dist/kongponents107.cjs +1 -1
  13. package/dist/kongponents107.es.js +1 -1
  14. package/dist/kongponents113.cjs +1 -1
  15. package/dist/kongponents113.es.js +1 -1
  16. package/dist/kongponents115.cjs +1 -1
  17. package/dist/kongponents115.es.js +1 -1
  18. package/dist/kongponents117.cjs +1 -1
  19. package/dist/kongponents117.es.js +2 -2
  20. package/dist/kongponents121.cjs +1 -1
  21. package/dist/kongponents121.es.js +2 -2
  22. package/dist/kongponents123.cjs +1 -1
  23. package/dist/kongponents123.es.js +4 -4
  24. package/dist/kongponents125.cjs +1 -1
  25. package/dist/kongponents125.es.js +1 -1
  26. package/dist/kongponents127.cjs +1 -1
  27. package/dist/kongponents127.es.js +6 -6
  28. package/dist/kongponents130.cjs +1 -1
  29. package/dist/kongponents130.es.js +2 -2
  30. package/dist/kongponents132.cjs +1 -1
  31. package/dist/kongponents132.es.js +5 -5
  32. package/dist/kongponents136.cjs +1 -1
  33. package/dist/kongponents136.es.js +1 -1
  34. package/dist/kongponents138.cjs +1 -1
  35. package/dist/kongponents138.es.js +1 -1
  36. package/dist/kongponents140.cjs +1 -1
  37. package/dist/kongponents140.es.js +7 -7
  38. package/dist/kongponents147.cjs +1 -1
  39. package/dist/kongponents147.es.js +4 -4
  40. package/dist/kongponents149.cjs +1 -1
  41. package/dist/kongponents149.es.js +1 -1
  42. package/dist/kongponents151.cjs +1 -1
  43. package/dist/kongponents151.es.js +4 -4
  44. package/dist/kongponents155.cjs +1 -1
  45. package/dist/kongponents155.es.js +2 -2
  46. package/dist/kongponents157.cjs +1 -1
  47. package/dist/kongponents157.es.js +1 -1
  48. package/dist/kongponents163.cjs +1 -1
  49. package/dist/kongponents163.es.js +2 -2
  50. package/dist/kongponents165.cjs +1 -1
  51. package/dist/kongponents165.es.js +4 -4
  52. package/dist/kongponents167.cjs +1 -1
  53. package/dist/kongponents167.es.js +2 -2
  54. package/dist/kongponents169.cjs +1 -1
  55. package/dist/kongponents169.es.js +7 -7
  56. package/dist/kongponents174.cjs +1 -1
  57. package/dist/kongponents174.es.js +3 -3
  58. package/dist/kongponents182.cjs +1 -1
  59. package/dist/kongponents182.es.js +20 -5
  60. package/dist/kongponents183.cjs +1 -1
  61. package/dist/kongponents183.es.js +5 -20
  62. package/dist/kongponents184.cjs +1 -1
  63. package/dist/kongponents184.es.js +6 -4
  64. package/dist/kongponents185.cjs +1 -1
  65. package/dist/kongponents185.es.js +5 -5
  66. package/dist/kongponents186.cjs +1 -1
  67. package/dist/kongponents186.es.js +181 -17
  68. package/dist/kongponents187.cjs +1 -1
  69. package/dist/kongponents187.es.js +95 -205
  70. package/dist/kongponents188.cjs +1 -1
  71. package/dist/kongponents188.es.js +14 -9
  72. package/dist/kongponents189.cjs +1 -1
  73. package/dist/kongponents189.es.js +19 -17
  74. package/dist/kongponents190.cjs +1 -1
  75. package/dist/kongponents190.es.js +208 -2
  76. package/dist/kongponents191.cjs +1 -1
  77. package/dist/kongponents191.es.js +2 -98
  78. package/dist/kongponents192.cjs +1 -1
  79. package/dist/kongponents192.es.js +5 -19
  80. package/dist/kongponents193.cjs +1 -1
  81. package/dist/kongponents193.es.js +5 -21
  82. package/dist/kongponents194.cjs +1 -0
  83. package/dist/kongponents194.es.js +7 -0
  84. package/dist/kongponents195.cjs +1 -1
  85. package/dist/kongponents195.es.js +4 -4
  86. package/dist/kongponents196.cjs +1 -1
  87. package/dist/kongponents196.es.js +5 -8
  88. package/dist/kongponents197.cjs +1 -1
  89. package/dist/kongponents197.es.js +5 -60
  90. package/dist/kongponents198.cjs +1 -1
  91. package/dist/kongponents198.es.js +5 -5
  92. package/dist/kongponents199.cjs +1 -1
  93. package/dist/kongponents199.es.js +3 -3
  94. package/dist/kongponents200.cjs +1 -1
  95. package/dist/kongponents200.es.js +17 -5
  96. package/dist/kongponents201.cjs +1 -1
  97. package/dist/kongponents201.es.js +10 -5
  98. package/dist/kongponents202.cjs +1 -1
  99. package/dist/kongponents202.es.js +5 -15
  100. package/dist/kongponents203.cjs +1 -1
  101. package/dist/kongponents203.es.js +16 -31
  102. package/dist/kongponents204.cjs +1 -2
  103. package/dist/kongponents204.es.js +29 -91
  104. package/dist/kongponents205.cjs +2 -1
  105. package/dist/kongponents205.es.js +92 -46
  106. package/dist/kongponents206.cjs +1 -1
  107. package/dist/kongponents206.es.js +52 -7
  108. package/dist/kongponents208.cjs +1 -1
  109. package/dist/kongponents208.es.js +4 -4
  110. package/dist/kongponents209.cjs +1 -1
  111. package/dist/kongponents209.es.js +8 -5
  112. package/dist/kongponents210.cjs +1 -1
  113. package/dist/kongponents210.es.js +60 -5
  114. package/dist/kongponents211.cjs +1 -1
  115. package/dist/kongponents211.es.js +3 -3
  116. package/dist/kongponents212.cjs +1 -1
  117. package/dist/kongponents212.es.js +4 -4
  118. package/dist/kongponents213.cjs +1 -1
  119. package/dist/kongponents213.es.js +4 -4
  120. package/dist/kongponents214.cjs +1 -1
  121. package/dist/kongponents214.es.js +3 -3
  122. package/dist/kongponents215.cjs +1 -1
  123. package/dist/kongponents215.es.js +3 -3
  124. package/dist/kongponents216.cjs +1 -1
  125. package/dist/kongponents216.es.js +4 -4
  126. package/dist/kongponents217.cjs +1 -1
  127. package/dist/kongponents217.es.js +17 -5
  128. package/dist/kongponents218.cjs +1 -1
  129. package/dist/kongponents218.es.js +3 -3
  130. package/dist/kongponents219.cjs +1 -1
  131. package/dist/kongponents219.es.js +24 -31
  132. package/dist/kongponents221.cjs +1 -1
  133. package/dist/kongponents221.es.js +44 -178
  134. package/dist/kongponents223.cjs +1 -1
  135. package/dist/kongponents223.es.js +28 -172
  136. package/dist/kongponents225.cjs +1 -1
  137. package/dist/kongponents225.es.js +20 -61
  138. package/dist/kongponents227.cjs +1 -1
  139. package/dist/kongponents227.es.js +40 -50
  140. package/dist/kongponents229.cjs +1 -1
  141. package/dist/kongponents229.es.js +37 -83
  142. package/dist/kongponents231.cjs +1 -1
  143. package/dist/kongponents231.es.js +31 -45
  144. package/dist/kongponents232.cjs +1 -0
  145. package/dist/kongponents232.es.js +184 -0
  146. package/dist/kongponents234.cjs +1 -1
  147. package/dist/kongponents234.es.js +52 -21
  148. package/dist/kongponents237.cjs +1 -0
  149. package/dist/kongponents237.es.js +8 -0
  150. package/dist/kongponents238.cjs +1 -1
  151. package/dist/kongponents238.es.js +5 -34
  152. package/dist/{kongponents220.cjs → kongponents239.cjs} +1 -1
  153. package/dist/kongponents239.es.js +7 -0
  154. package/dist/kongponents240.cjs +1 -1
  155. package/dist/kongponents240.es.js +19 -22
  156. package/dist/kongponents241.cjs +1 -0
  157. package/dist/kongponents241.es.js +6 -0
  158. package/dist/kongponents242.cjs +1 -1
  159. package/dist/kongponents242.es.js +5 -45
  160. package/dist/kongponents243.cjs +1 -0
  161. package/dist/kongponents243.es.js +8 -0
  162. package/dist/kongponents244.cjs +1 -1
  163. package/dist/kongponents244.es.js +9 -41
  164. package/dist/kongponents245.cjs +1 -0
  165. package/dist/kongponents245.es.js +8 -0
  166. package/dist/kongponents246.cjs +1 -1
  167. package/dist/kongponents246.es.js +3 -8
  168. package/dist/kongponents247.cjs +1 -1
  169. package/dist/kongponents247.es.js +16 -6
  170. package/dist/kongponents248.cjs +1 -1
  171. package/dist/kongponents248.es.js +3 -7
  172. package/dist/kongponents249.cjs +1 -1
  173. package/dist/kongponents249.es.js +8 -5
  174. package/dist/kongponents25.cjs +1 -1
  175. package/dist/kongponents25.es.js +7 -7
  176. package/dist/kongponents250.cjs +1 -1
  177. package/dist/kongponents250.es.js +6 -9
  178. package/dist/kongponents251.cjs +1 -1
  179. package/dist/kongponents251.es.js +3 -8
  180. package/dist/kongponents252.cjs +1 -1
  181. package/dist/kongponents252.es.js +2 -602
  182. package/dist/kongponents253.cjs +1 -1
  183. package/dist/kongponents253.es.js +6 -71
  184. package/dist/kongponents254.cjs +1 -1
  185. package/dist/kongponents254.es.js +8 -3
  186. package/dist/kongponents255.cjs +1 -1
  187. package/dist/kongponents255.es.js +4 -19
  188. package/dist/kongponents256.cjs +1 -1
  189. package/dist/kongponents256.es.js +4 -5
  190. package/dist/kongponents257.cjs +1 -1
  191. package/dist/kongponents257.es.js +3 -18
  192. package/dist/kongponents258.cjs +1 -1
  193. package/dist/kongponents258.es.js +3 -7
  194. package/dist/kongponents259.cjs +1 -1
  195. package/dist/kongponents259.es.js +7 -5
  196. package/dist/kongponents260.cjs +1 -1
  197. package/dist/kongponents260.es.js +6 -8
  198. package/dist/kongponents261.cjs +1 -1
  199. package/dist/kongponents261.es.js +5 -8
  200. package/dist/kongponents262.cjs +1 -1
  201. package/dist/kongponents262.es.js +9 -7
  202. package/dist/kongponents263.cjs +1 -1
  203. package/dist/kongponents263.es.js +5 -7
  204. package/dist/kongponents264.cjs +1 -1
  205. package/dist/kongponents264.es.js +9 -8
  206. package/dist/kongponents265.cjs +1 -1
  207. package/dist/kongponents265.es.js +6 -124
  208. package/dist/kongponents266.cjs +1 -2
  209. package/dist/kongponents266.es.js +17 -48
  210. package/dist/kongponents267.cjs +1 -1
  211. package/dist/kongponents267.es.js +11 -7
  212. package/dist/kongponents268.cjs +1 -1
  213. package/dist/kongponents268.es.js +7 -57
  214. package/dist/kongponents269.cjs +1 -1
  215. package/dist/kongponents269.es.js +13 -65
  216. package/dist/kongponents27.cjs +1 -1
  217. package/dist/kongponents27.es.js +2 -2
  218. package/dist/kongponents270.cjs +1 -1
  219. package/dist/kongponents270.es.js +9 -4
  220. package/dist/kongponents271.cjs +1 -1
  221. package/dist/kongponents271.es.js +6 -4
  222. package/dist/kongponents272.cjs +1 -1
  223. package/dist/kongponents272.es.js +8 -20
  224. package/dist/kongponents273.cjs +1 -1
  225. package/dist/kongponents273.es.js +16 -5
  226. package/dist/kongponents274.cjs +1 -1
  227. package/dist/kongponents274.es.js +16 -95
  228. package/dist/kongponents275.cjs +1 -1
  229. package/dist/kongponents275.es.js +5 -171
  230. package/dist/kongponents276.cjs +1 -1
  231. package/dist/kongponents276.es.js +11 -5
  232. package/dist/kongponents277.cjs +1 -1
  233. package/dist/kongponents277.es.js +6 -6
  234. package/dist/kongponents278.cjs +1 -1
  235. package/dist/kongponents278.es.js +8 -5
  236. package/dist/kongponents279.cjs +1 -1
  237. package/dist/kongponents279.es.js +5 -4
  238. package/dist/kongponents280.cjs +1 -1
  239. package/dist/kongponents280.es.js +6 -69
  240. package/dist/kongponents281.cjs +1 -1
  241. package/dist/kongponents281.es.js +10 -2
  242. package/dist/kongponents282.cjs +1 -1
  243. package/dist/kongponents282.es.js +7 -5
  244. package/dist/kongponents283.cjs +1 -1
  245. package/dist/kongponents283.es.js +4 -91
  246. package/dist/kongponents284.cjs +1 -0
  247. package/dist/kongponents284.es.js +8 -0
  248. package/dist/kongponents285.cjs +1 -1
  249. package/dist/kongponents285.es.js +16 -246
  250. package/dist/kongponents286.cjs +1 -0
  251. package/dist/kongponents286.es.js +180 -0
  252. package/dist/kongponents288.cjs +1 -0
  253. package/dist/kongponents288.es.js +66 -0
  254. package/dist/kongponents290.cjs +1 -0
  255. package/dist/kongponents290.es.js +93 -0
  256. package/dist/kongponents292.cjs +1 -0
  257. package/dist/kongponents292.es.js +248 -0
  258. package/dist/kongponents294.cjs +1 -1
  259. package/dist/kongponents294.es.js +87 -5
  260. package/dist/kongponents296.cjs +1 -1
  261. package/dist/kongponents296.es.js +45 -4
  262. package/dist/kongponents298.cjs +1 -1
  263. package/dist/kongponents298.es.js +8 -5
  264. package/dist/kongponents299.cjs +1 -1
  265. package/dist/kongponents299.es.js +6 -8
  266. package/dist/kongponents30.cjs +1 -1
  267. package/dist/kongponents30.es.js +1 -1
  268. package/dist/kongponents300.cjs +1 -1
  269. package/dist/kongponents300.es.js +7 -5
  270. package/dist/kongponents301.cjs +1 -1
  271. package/dist/kongponents301.es.js +4 -3
  272. package/dist/kongponents302.cjs +1 -1
  273. package/dist/kongponents302.es.js +9 -16
  274. package/dist/kongponents303.cjs +1 -1
  275. package/dist/kongponents303.es.js +8 -3
  276. package/dist/kongponents304.cjs +1 -1
  277. package/dist/kongponents304.es.js +601 -7
  278. package/dist/kongponents305.cjs +1 -1
  279. package/dist/kongponents305.es.js +71 -7
  280. package/dist/kongponents306.cjs +1 -1
  281. package/dist/kongponents306.es.js +4 -3
  282. package/dist/kongponents307.cjs +1 -1
  283. package/dist/kongponents307.es.js +20 -2
  284. package/dist/kongponents308.cjs +1 -1
  285. package/dist/kongponents308.es.js +4 -5
  286. package/dist/kongponents309.cjs +1 -1
  287. package/dist/kongponents309.es.js +18 -10
  288. package/dist/kongponents310.cjs +1 -1
  289. package/dist/kongponents310.es.js +7 -4
  290. package/dist/kongponents311.cjs +1 -1
  291. package/dist/kongponents311.es.js +6 -4
  292. package/dist/kongponents312.cjs +1 -1
  293. package/dist/kongponents312.es.js +9 -3
  294. package/dist/kongponents313.cjs +1 -1
  295. package/dist/kongponents313.es.js +7 -3
  296. package/dist/kongponents314.cjs +1 -1
  297. package/dist/kongponents314.es.js +7 -7
  298. package/dist/kongponents315.cjs +1 -1
  299. package/dist/kongponents315.es.js +7 -6
  300. package/dist/kongponents316.cjs +1 -1
  301. package/dist/kongponents316.es.js +8 -5
  302. package/dist/kongponents317.cjs +1 -1
  303. package/dist/kongponents317.es.js +124 -9
  304. package/dist/kongponents318.cjs +2 -1
  305. package/dist/kongponents318.es.js +47 -4
  306. package/dist/kongponents319.cjs +1 -1
  307. package/dist/kongponents319.es.js +8 -9
  308. package/dist/kongponents32.cjs +1 -1
  309. package/dist/kongponents32.es.js +4 -4
  310. package/dist/kongponents320.cjs +1 -1
  311. package/dist/kongponents320.es.js +57 -7
  312. package/dist/kongponents321.cjs +1 -1
  313. package/dist/kongponents321.es.js +65 -18
  314. package/dist/kongponents322.cjs +1 -1
  315. package/dist/kongponents322.es.js +4 -11
  316. package/dist/kongponents323.cjs +1 -1
  317. package/dist/kongponents323.es.js +4 -7
  318. package/dist/kongponents324.cjs +1 -1
  319. package/dist/kongponents324.es.js +20 -12
  320. package/dist/kongponents325.cjs +1 -1
  321. package/dist/kongponents325.es.js +5 -10
  322. package/dist/kongponents326.cjs +1 -1
  323. package/dist/kongponents326.es.js +96 -5
  324. package/dist/kongponents327.cjs +1 -1
  325. package/dist/kongponents327.es.js +171 -8
  326. package/dist/kongponents328.cjs +1 -1
  327. package/dist/kongponents328.es.js +5 -16
  328. package/dist/kongponents329.cjs +1 -1
  329. package/dist/kongponents329.es.js +6 -17
  330. package/dist/kongponents330.cjs +1 -1
  331. package/dist/kongponents330.es.js +5 -6
  332. package/dist/kongponents331.cjs +1 -1
  333. package/dist/kongponents331.es.js +5 -11
  334. package/dist/kongponents332.cjs +1 -1
  335. package/dist/kongponents332.es.js +69 -6
  336. package/dist/kongponents333.cjs +1 -1
  337. package/dist/kongponents333.es.js +2 -8
  338. package/dist/kongponents334.cjs +1 -1
  339. package/dist/kongponents334.es.js +2 -6
  340. package/dist/kongponents335.cjs +1 -1
  341. package/dist/kongponents335.es.js +55 -7
  342. package/dist/kongponents337.cjs +1 -1
  343. package/dist/kongponents337.es.js +7 -7
  344. package/dist/kongponents338.cjs +1 -1
  345. package/dist/kongponents338.es.js +5 -3
  346. package/dist/kongponents339.cjs +1 -1
  347. package/dist/kongponents339.es.js +9 -6
  348. package/dist/kongponents340.cjs +1 -1
  349. package/dist/kongponents340.es.js +9 -15
  350. package/dist/kongponents341.cjs +1 -1
  351. package/dist/kongponents341.es.js +15 -5
  352. package/dist/kongponents342.cjs +1 -1
  353. package/dist/kongponents342.es.js +6 -2
  354. package/dist/kongponents343.cjs +1 -1
  355. package/dist/kongponents343.es.js +3 -11
  356. package/dist/kongponents344.cjs +1 -1
  357. package/dist/kongponents344.es.js +7 -10
  358. package/dist/kongponents345.cjs +1 -1
  359. package/dist/kongponents345.es.js +3 -13
  360. package/dist/kongponents346.cjs +1 -1
  361. package/dist/kongponents346.es.js +10 -10
  362. package/dist/kongponents347.cjs +1 -1
  363. package/dist/kongponents347.es.js +7 -18
  364. package/dist/kongponents348.cjs +1 -1
  365. package/dist/kongponents348.es.js +5 -5
  366. package/dist/kongponents349.cjs +1 -1
  367. package/dist/kongponents349.es.js +2 -54
  368. package/dist/kongponents350.cjs +1 -1
  369. package/dist/kongponents350.es.js +13 -2
  370. package/dist/kongponents351.cjs +1 -1
  371. package/dist/kongponents351.es.js +4 -8
  372. package/dist/kongponents352.cjs +1 -1
  373. package/dist/kongponents352.es.js +5 -4
  374. package/dist/kongponents353.cjs +1 -1
  375. package/dist/kongponents353.es.js +28 -12
  376. package/dist/kongponents354.cjs +1 -1
  377. package/dist/kongponents354.es.js +3 -15
  378. package/dist/kongponents355.cjs +1 -1
  379. package/dist/kongponents355.es.js +26 -4
  380. package/dist/kongponents356.cjs +1 -1
  381. package/dist/kongponents356.es.js +4 -13
  382. package/dist/kongponents357.cjs +1 -1
  383. package/dist/kongponents357.es.js +4 -10
  384. package/dist/kongponents358.cjs +1 -1
  385. package/dist/kongponents358.es.js +4 -53
  386. package/dist/kongponents359.cjs +1 -1
  387. package/dist/kongponents359.es.js +4 -57
  388. package/dist/kongponents360.cjs +1 -1
  389. package/dist/kongponents360.es.js +4 -59
  390. package/dist/kongponents361.cjs +1 -1
  391. package/dist/kongponents361.es.js +13 -31
  392. package/dist/kongponents362.cjs +1 -1
  393. package/dist/kongponents362.es.js +25 -29
  394. package/dist/kongponents363.cjs +1 -1
  395. package/dist/kongponents363.es.js +16 -72
  396. package/dist/kongponents364.cjs +1 -1
  397. package/dist/kongponents364.es.js +9 -71
  398. package/dist/kongponents365.cjs +1 -1
  399. package/dist/kongponents365.es.js +5 -78
  400. package/dist/kongponents366.cjs +1 -1
  401. package/dist/kongponents366.es.js +14 -78
  402. package/dist/kongponents367.cjs +1 -1
  403. package/dist/kongponents367.es.js +9 -48
  404. package/dist/kongponents368.cjs +1 -1
  405. package/dist/kongponents368.es.js +3 -48
  406. package/dist/kongponents369.cjs +1 -1
  407. package/dist/kongponents369.es.js +6 -47
  408. package/dist/kongponents370.cjs +1 -1
  409. package/dist/kongponents370.es.js +6 -48
  410. package/dist/kongponents371.cjs +1 -1
  411. package/dist/kongponents371.es.js +8 -80
  412. package/dist/kongponents372.cjs +1 -1
  413. package/dist/kongponents372.es.js +6 -92
  414. package/dist/kongponents373.cjs +1 -1
  415. package/dist/kongponents373.es.js +8 -92
  416. package/dist/kongponents374.cjs +1 -1
  417. package/dist/kongponents374.es.js +7 -91
  418. package/dist/kongponents375.cjs +1 -1
  419. package/dist/kongponents375.es.js +10 -58
  420. package/dist/kongponents376.cjs +1 -1
  421. package/dist/kongponents376.es.js +7 -58
  422. package/dist/kongponents377.cjs +1 -1
  423. package/dist/kongponents377.es.js +21 -57
  424. package/dist/kongponents378.cjs +1 -1
  425. package/dist/kongponents378.es.js +7 -47
  426. package/dist/kongponents379.cjs +1 -1
  427. package/dist/kongponents379.es.js +7 -46
  428. package/dist/kongponents380.cjs +1 -1
  429. package/dist/kongponents380.es.js +7 -47
  430. package/dist/kongponents381.cjs +1 -1
  431. package/dist/kongponents381.es.js +9 -47
  432. package/dist/kongponents382.cjs +1 -1
  433. package/dist/kongponents382.es.js +11 -46
  434. package/dist/kongponents383.cjs +1 -1
  435. package/dist/kongponents383.es.js +6 -46
  436. package/dist/kongponents384.cjs +1 -1
  437. package/dist/kongponents384.es.js +5 -34
  438. package/dist/kongponents385.cjs +1 -1
  439. package/dist/kongponents385.es.js +5 -43
  440. package/dist/kongponents386.cjs +1 -1
  441. package/dist/kongponents386.es.js +6 -43
  442. package/dist/kongponents387.cjs +1 -1
  443. package/dist/kongponents387.es.js +2 -33
  444. package/dist/kongponents388.cjs +1 -1
  445. package/dist/kongponents388.es.js +5 -33
  446. package/dist/kongponents389.cjs +1 -1
  447. package/dist/kongponents389.es.js +82 -71
  448. package/dist/kongponents391.cjs +1 -1
  449. package/dist/kongponents391.es.js +41 -13
  450. package/dist/kongponents393.cjs +1 -1
  451. package/dist/kongponents393.es.js +5 -22
  452. package/dist/kongponents394.cjs +1 -1
  453. package/dist/kongponents394.es.js +94 -21
  454. package/dist/kongponents396.cjs +1 -1
  455. package/dist/kongponents396.es.js +121 -81
  456. package/dist/kongponents398.cjs +1 -1
  457. package/dist/kongponents398.es.js +10 -26
  458. package/dist/kongponents399.cjs +1 -1
  459. package/dist/kongponents399.es.js +10 -16
  460. package/dist/kongponents400.cjs +1 -1
  461. package/dist/kongponents400.es.js +12 -14
  462. package/dist/kongponents401.cjs +1 -1
  463. package/dist/kongponents401.es.js +10 -16
  464. package/dist/kongponents402.cjs +1 -1
  465. package/dist/kongponents402.es.js +18 -14
  466. package/dist/kongponents403.cjs +1 -1
  467. package/dist/kongponents403.es.js +5 -23
  468. package/dist/kongponents404.cjs +1 -1
  469. package/dist/kongponents404.es.js +53 -17
  470. package/dist/kongponents405.cjs +1 -1
  471. package/dist/kongponents405.es.js +2 -2
  472. package/dist/kongponents406.cjs +1 -1
  473. package/dist/kongponents406.es.js +8 -17
  474. package/dist/kongponents407.cjs +1 -1
  475. package/dist/kongponents407.es.js +4 -64
  476. package/dist/kongponents408.cjs +1 -1
  477. package/dist/kongponents408.es.js +13 -4
  478. package/dist/kongponents409.cjs +1 -1
  479. package/dist/kongponents409.es.js +15 -2
  480. package/dist/kongponents410.cjs +1 -1
  481. package/dist/kongponents410.es.js +4 -2
  482. package/dist/kongponents411.cjs +1 -1
  483. package/dist/kongponents411.es.js +13 -5
  484. package/dist/kongponents412.cjs +1 -1
  485. package/dist/kongponents412.es.js +10 -94
  486. package/dist/kongponents413.cjs +1 -0
  487. package/dist/kongponents413.es.js +55 -0
  488. package/dist/kongponents414.cjs +1 -1
  489. package/dist/kongponents414.es.js +56 -120
  490. package/dist/kongponents415.cjs +1 -0
  491. package/dist/kongponents415.es.js +61 -0
  492. package/dist/kongponents416.cjs +1 -1
  493. package/dist/kongponents416.es.js +33 -8
  494. package/dist/kongponents417.cjs +1 -1
  495. package/dist/kongponents417.es.js +31 -6
  496. package/dist/kongponents418.cjs +1 -1
  497. package/dist/kongponents418.es.js +71 -8
  498. package/dist/kongponents419.cjs +1 -1
  499. package/dist/kongponents419.es.js +72 -10
  500. package/dist/kongponents420.cjs +1 -1
  501. package/dist/kongponents420.es.js +78 -15
  502. package/dist/kongponents421.cjs +1 -1
  503. package/dist/kongponents421.es.js +78 -6
  504. package/dist/kongponents422.cjs +1 -1
  505. package/dist/kongponents422.es.js +48 -3
  506. package/dist/kongponents423.cjs +1 -1
  507. package/dist/kongponents423.es.js +48 -3
  508. package/dist/kongponents424.cjs +1 -1
  509. package/dist/kongponents424.es.js +46 -7
  510. package/dist/kongponents425.cjs +1 -1
  511. package/dist/kongponents425.es.js +47 -10
  512. package/dist/kongponents426.cjs +1 -1
  513. package/dist/kongponents426.es.js +80 -8
  514. package/dist/kongponents427.cjs +1 -1
  515. package/dist/kongponents427.es.js +92 -6
  516. package/dist/kongponents428.cjs +1 -1
  517. package/dist/kongponents428.es.js +92 -2
  518. package/dist/kongponents429.cjs +1 -1
  519. package/dist/kongponents429.es.js +90 -12
  520. package/dist/kongponents430.cjs +1 -1
  521. package/dist/kongponents430.es.js +58 -5
  522. package/dist/kongponents431.cjs +1 -1
  523. package/dist/kongponents431.es.js +58 -3
  524. package/dist/kongponents432.cjs +1 -1
  525. package/dist/kongponents432.es.js +57 -25
  526. package/dist/kongponents433.cjs +1 -1
  527. package/dist/kongponents433.es.js +47 -4
  528. package/dist/kongponents434.cjs +1 -1
  529. package/dist/kongponents434.es.js +46 -4
  530. package/dist/kongponents435.cjs +1 -1
  531. package/dist/kongponents435.es.js +47 -4
  532. package/dist/kongponents436.cjs +1 -1
  533. package/dist/kongponents436.es.js +47 -4
  534. package/dist/kongponents437.cjs +1 -1
  535. package/dist/kongponents437.es.js +46 -4
  536. package/dist/kongponents438.cjs +1 -1
  537. package/dist/kongponents438.es.js +44 -13
  538. package/dist/kongponents439.cjs +1 -1
  539. package/dist/kongponents439.es.js +34 -6
  540. package/dist/kongponents440.cjs +1 -1
  541. package/dist/kongponents440.es.js +41 -28
  542. package/dist/kongponents441.cjs +1 -1
  543. package/dist/kongponents441.es.js +41 -25
  544. package/dist/kongponents442.cjs +1 -1
  545. package/dist/kongponents442.es.js +33 -16
  546. package/dist/kongponents443.cjs +1 -1
  547. package/dist/kongponents443.es.js +32 -9
  548. package/dist/kongponents444.cjs +1 -1
  549. package/dist/kongponents444.es.js +71 -4
  550. package/dist/kongponents445.cjs +1 -1
  551. package/dist/kongponents445.es.js +2 -14
  552. package/dist/kongponents446.cjs +1 -1
  553. package/dist/kongponents446.es.js +12 -8
  554. package/dist/kongponents447.cjs +1 -1
  555. package/dist/kongponents447.es.js +23 -3
  556. package/dist/kongponents448.cjs +1 -1
  557. package/dist/kongponents448.es.js +21 -5
  558. package/dist/kongponents449.cjs +1 -1
  559. package/dist/kongponents449.es.js +20 -5
  560. package/dist/kongponents450.cjs +1 -1
  561. package/dist/kongponents450.es.js +614 -7
  562. package/dist/kongponents451.cjs +1 -1
  563. package/dist/kongponents451.es.js +80 -5
  564. package/dist/kongponents452.cjs +1 -1
  565. package/dist/kongponents452.es.js +14 -10
  566. package/dist/kongponents453.cjs +1 -1
  567. package/dist/kongponents453.es.js +26 -5
  568. package/dist/kongponents454.cjs +1 -1
  569. package/dist/kongponents454.es.js +16 -4
  570. package/dist/kongponents455.cjs +1 -1
  571. package/dist/kongponents455.es.js +14 -4
  572. package/dist/kongponents456.cjs +1 -1
  573. package/dist/kongponents456.es.js +16 -5
  574. package/dist/kongponents457.cjs +1 -1
  575. package/dist/kongponents457.es.js +15 -8
  576. package/dist/kongponents458.cjs +1 -1
  577. package/dist/kongponents458.es.js +23 -6
  578. package/dist/kongponents459.cjs +1 -1
  579. package/dist/kongponents459.es.js +65 -10
  580. package/dist/kongponents460.cjs +1 -1
  581. package/dist/kongponents460.es.js +4 -6
  582. package/dist/kongponents461.cjs +1 -1
  583. package/dist/kongponents461.es.js +16 -20
  584. package/dist/kongponents462.cjs +1 -1
  585. package/dist/kongponents462.es.js +2 -7
  586. package/dist/kongponents463.cjs +1 -1
  587. package/dist/kongponents463.es.js +17 -6
  588. package/dist/kongponents464.cjs +1 -1
  589. package/dist/kongponents464.es.js +2 -7
  590. package/dist/kongponents465.cjs +1 -1
  591. package/dist/kongponents465.es.js +2 -9
  592. package/dist/kongponents466.cjs +1 -1
  593. package/dist/kongponents466.es.js +6 -7
  594. package/dist/kongponents467.cjs +1 -1
  595. package/dist/kongponents467.es.js +17 -10
  596. package/dist/kongponents468.cjs +1 -1
  597. package/dist/kongponents468.es.js +4 -13
  598. package/dist/kongponents469.cjs +1 -1
  599. package/dist/kongponents469.es.js +4 -13
  600. package/dist/kongponents470.cjs +1 -1
  601. package/dist/kongponents470.es.js +4 -67
  602. package/dist/kongponents471.cjs +1 -1
  603. package/dist/kongponents471.es.js +4 -31
  604. package/dist/kongponents472.cjs +1 -1
  605. package/dist/kongponents472.es.js +15 -11
  606. package/dist/kongponents473.cjs +1 -1
  607. package/dist/kongponents473.es.js +7 -121
  608. package/dist/kongponents474.cjs +1 -1
  609. package/dist/kongponents474.es.js +8 -86
  610. package/dist/kongponents475.cjs +1 -1
  611. package/dist/kongponents475.es.js +11 -25
  612. package/dist/kongponents476.cjs +1 -1
  613. package/dist/kongponents476.es.js +4 -96
  614. package/dist/kongponents477.cjs +1 -1
  615. package/dist/kongponents477.es.js +4 -47
  616. package/dist/kongponents478.cjs +1 -1
  617. package/dist/kongponents478.es.js +3 -9
  618. package/dist/kongponents479.cjs +1 -1
  619. package/dist/kongponents479.es.js +37 -9
  620. package/dist/kongponents480.cjs +1 -1
  621. package/dist/kongponents480.es.js +42 -13
  622. package/dist/kongponents481.cjs +1 -1
  623. package/dist/kongponents481.es.js +33 -10
  624. package/dist/kongponents482.cjs +1 -1
  625. package/dist/kongponents482.es.js +3 -6
  626. package/dist/kongponents483.cjs +1 -1
  627. package/dist/kongponents483.es.js +18 -2
  628. package/dist/kongponents484.cjs +1 -1
  629. package/dist/kongponents484.es.js +6 -2
  630. package/dist/kongponents485.cjs +1 -1
  631. package/dist/kongponents485.es.js +7 -18
  632. package/dist/kongponents486.cjs +1 -1
  633. package/dist/kongponents486.es.js +11 -2
  634. package/dist/kongponents487.cjs +1 -1
  635. package/dist/kongponents487.es.js +13 -21
  636. package/dist/kongponents488.cjs +1 -1
  637. package/dist/kongponents488.es.js +14 -2
  638. package/dist/kongponents489.cjs +1 -1
  639. package/dist/kongponents489.es.js +67 -16
  640. package/dist/kongponents490.cjs +1 -1
  641. package/dist/kongponents490.es.js +31 -2
  642. package/dist/kongponents491.cjs +1 -1
  643. package/dist/kongponents491.es.js +11 -23
  644. package/dist/kongponents492.cjs +1 -1
  645. package/dist/kongponents492.es.js +120 -22
  646. package/dist/kongponents493.cjs +1 -1
  647. package/dist/kongponents493.es.js +85 -25
  648. package/dist/kongponents494.cjs +1 -1
  649. package/dist/kongponents494.es.js +5 -22
  650. package/dist/kongponents495.cjs +1 -1
  651. package/dist/kongponents495.es.js +5 -31
  652. package/dist/kongponents496.cjs +1 -1
  653. package/dist/kongponents496.es.js +5 -15
  654. package/dist/kongponents497.cjs +1 -1
  655. package/dist/kongponents497.es.js +10 -65
  656. package/dist/kongponents498.cjs +1 -1
  657. package/dist/kongponents498.es.js +8 -2
  658. package/dist/kongponents499.cjs +1 -1
  659. package/dist/kongponents499.es.js +7 -2
  660. package/dist/kongponents500.cjs +1 -1
  661. package/dist/kongponents500.es.js +25 -2
  662. package/dist/kongponents501.cjs +1 -1
  663. package/dist/kongponents501.es.js +97 -2
  664. package/dist/kongponents502.cjs +1 -1
  665. package/dist/kongponents502.es.js +47 -2
  666. package/dist/kongponents503.cjs +1 -1
  667. package/dist/kongponents503.es.js +9 -29
  668. package/dist/kongponents504.cjs +1 -1
  669. package/dist/kongponents504.es.js +9 -5
  670. package/dist/kongponents505.cjs +1 -1
  671. package/dist/kongponents505.es.js +13 -5
  672. package/dist/kongponents506.cjs +1 -1
  673. package/dist/kongponents506.es.js +10 -10
  674. package/dist/kongponents507.cjs +1 -1
  675. package/dist/kongponents507.es.js +2 -8
  676. package/dist/kongponents508.cjs +1 -1
  677. package/dist/kongponents508.es.js +2 -7
  678. package/dist/kongponents509.cjs +1 -1
  679. package/dist/kongponents509.es.js +19 -2
  680. package/dist/kongponents510.cjs +1 -1
  681. package/dist/kongponents510.es.js +2 -4
  682. package/dist/kongponents511.cjs +1 -1
  683. package/dist/kongponents511.es.js +21 -6
  684. package/dist/kongponents512.cjs +1 -1
  685. package/dist/kongponents512.es.js +2 -18
  686. package/dist/kongponents513.cjs +1 -1
  687. package/dist/kongponents513.es.js +15 -4
  688. package/dist/kongponents514.cjs +1 -1
  689. package/dist/kongponents514.es.js +2 -5
  690. package/dist/kongponents515.cjs +1 -1
  691. package/dist/kongponents515.es.js +22 -3
  692. package/dist/kongponents516.cjs +1 -1
  693. package/dist/kongponents516.es.js +22 -3
  694. package/dist/kongponents517.cjs +1 -1
  695. package/dist/kongponents517.es.js +25 -14
  696. package/dist/kongponents518.cjs +1 -1
  697. package/dist/kongponents518.es.js +22 -6
  698. package/dist/kongponents519.cjs +1 -1
  699. package/dist/kongponents519.es.js +32 -8
  700. package/dist/kongponents520.cjs +1 -1
  701. package/dist/kongponents520.es.js +15 -10
  702. package/dist/kongponents521.cjs +1 -1
  703. package/dist/kongponents521.es.js +65 -4
  704. package/dist/kongponents522.cjs +1 -1
  705. package/dist/kongponents522.es.js +2 -4
  706. package/dist/kongponents523.cjs +1 -1
  707. package/dist/kongponents523.es.js +2 -4
  708. package/dist/kongponents524.cjs +1 -1
  709. package/dist/kongponents524.es.js +2 -38
  710. package/dist/kongponents525.cjs +1 -1
  711. package/dist/kongponents525.es.js +2 -43
  712. package/dist/kongponents526.cjs +1 -1
  713. package/dist/kongponents526.es.js +2 -34
  714. package/dist/kongponents527.cjs +1 -1
  715. package/dist/kongponents527.es.js +30 -3
  716. package/dist/kongponents528.cjs +1 -1
  717. package/dist/kongponents528.es.js +2 -18
  718. package/dist/kongponents529.cjs +1 -1
  719. package/dist/kongponents529.es.js +3 -5
  720. package/dist/kongponents530.cjs +1 -1
  721. package/dist/kongponents530.es.js +2 -5
  722. package/dist/kongponents531.cjs +1 -1
  723. package/dist/kongponents531.es.js +3 -14
  724. package/dist/kongponents532.cjs +1 -1
  725. package/dist/kongponents532.es.js +9 -28
  726. package/dist/kongponents533.cjs +1 -1
  727. package/dist/kongponents533.es.js +5 -15
  728. package/dist/kongponents534.cjs +1 -1
  729. package/dist/kongponents534.es.js +5 -2
  730. package/dist/kongponents535.cjs +1 -1
  731. package/dist/kongponents535.es.js +6 -2
  732. package/dist/kongponents536.cjs +1 -1
  733. package/dist/kongponents536.es.js +3 -2
  734. package/dist/kongponents537.cjs +1 -1
  735. package/dist/kongponents537.es.js +5 -2
  736. package/dist/kongponents538.cjs +1 -1
  737. package/dist/kongponents538.es.js +5 -2
  738. package/dist/kongponents539.cjs +1 -1
  739. package/dist/kongponents539.es.js +10 -20
  740. package/dist/kongponents540.cjs +1 -1
  741. package/dist/kongponents540.es.js +6 -23
  742. package/dist/kongponents541.cjs +1 -1
  743. package/dist/kongponents541.es.js +7 -2
  744. package/dist/kongponents542.cjs +1 -1
  745. package/dist/kongponents542.es.js +5 -2
  746. package/dist/kongponents543.cjs +1 -1
  747. package/dist/kongponents543.es.js +6 -26
  748. package/dist/kongponents544.cjs +1 -1
  749. package/dist/kongponents544.es.js +13 -25
  750. package/dist/kongponents545.cjs +1 -1
  751. package/dist/kongponents545.es.js +29 -2
  752. package/dist/kongponents546.cjs +1 -1
  753. package/dist/kongponents546.es.js +16 -2
  754. package/dist/kongponents547.cjs +1 -1
  755. package/dist/kongponents547.es.js +12 -2
  756. package/dist/kongponents549.cjs +1 -1
  757. package/dist/kongponents549.es.js +2 -77
  758. package/dist/kongponents550.cjs +1 -1
  759. package/dist/kongponents550.es.js +2 -43
  760. package/dist/kongponents551.cjs +1 -1
  761. package/dist/kongponents551.es.js +2 -21
  762. package/dist/kongponents552.cjs +1 -1
  763. package/dist/kongponents552.es.js +2 -133
  764. package/dist/kongponents553.cjs +1 -1
  765. package/dist/kongponents553.es.js +18 -95
  766. package/dist/kongponents554.cjs +1 -1
  767. package/dist/kongponents554.es.js +23 -11
  768. package/dist/kongponents555.cjs +1 -1
  769. package/dist/kongponents555.es.js +2 -4
  770. package/dist/kongponents556.cjs +1 -1
  771. package/dist/kongponents556.es.js +2 -4
  772. package/dist/kongponents557.cjs +1 -1
  773. package/dist/kongponents557.es.js +26 -9
  774. package/dist/kongponents558.cjs +1 -1
  775. package/dist/kongponents558.es.js +26 -5
  776. package/dist/kongponents559.cjs +1 -1
  777. package/dist/kongponents559.es.js +2 -5
  778. package/dist/kongponents560.cjs +1 -1
  779. package/dist/kongponents560.es.js +2 -6
  780. package/dist/kongponents561.cjs +1 -1
  781. package/dist/kongponents561.es.js +2 -3
  782. package/dist/kongponents562.cjs +1 -1
  783. package/dist/kongponents562.es.js +2 -5
  784. package/dist/kongponents563.cjs +1 -1
  785. package/dist/kongponents563.es.js +76 -4
  786. package/dist/kongponents564.cjs +1 -1
  787. package/dist/kongponents564.es.js +42 -10
  788. package/dist/kongponents565.cjs +1 -1
  789. package/dist/kongponents565.es.js +20 -6
  790. package/dist/kongponents566.cjs +1 -1
  791. package/dist/kongponents566.es.js +132 -6
  792. package/dist/kongponents567.cjs +1 -1
  793. package/dist/kongponents567.es.js +97 -4
  794. package/dist/kongponents568.cjs +1 -1
  795. package/dist/kongponents568.es.js +8 -2
  796. package/dist/kongponents569.cjs +1 -1
  797. package/dist/kongponents569.es.js +3 -2
  798. package/dist/kongponents572.es.js +2 -2
  799. package/dist/kongponents573.es.js +2 -2
  800. package/dist/kongponents574.cjs +1 -1
  801. package/dist/kongponents574.es.js +2 -17
  802. package/dist/kongponents575.cjs +1 -1
  803. package/dist/kongponents575.es.js +17 -2
  804. package/dist/kongponents577.cjs +1 -1
  805. package/dist/kongponents577.es.js +2 -25
  806. package/dist/kongponents578.cjs +1 -1
  807. package/dist/kongponents578.es.js +25 -2
  808. package/dist/kongponents579.cjs +1 -1
  809. package/dist/kongponents579.es.js +2 -39
  810. package/dist/kongponents580.cjs +1 -1
  811. package/dist/kongponents580.es.js +33 -20
  812. package/dist/kongponents581.cjs +1 -1
  813. package/dist/kongponents581.es.js +25 -7
  814. package/dist/kongponents582.cjs +1 -1
  815. package/dist/kongponents582.es.js +2 -3
  816. package/dist/kongponents584.es.js +2 -2
  817. package/dist/kongponents585.es.js +2 -2
  818. package/dist/kongponents586.es.js +2 -2
  819. package/dist/kongponents80.cjs +1 -1
  820. package/dist/kongponents80.es.js +1 -1
  821. package/dist/kongponents83.cjs +1 -1
  822. package/dist/kongponents83.es.js +1 -1
  823. package/dist/kongponents85.cjs +1 -1
  824. package/dist/kongponents85.es.js +1 -1
  825. package/dist/kongponents91.cjs +1 -1
  826. package/dist/kongponents91.es.js +1 -1
  827. package/dist/kongponents95.cjs +1 -1
  828. package/dist/kongponents95.es.js +1 -1
  829. package/dist/kongponents97.cjs +1 -1
  830. package/dist/kongponents97.es.js +7 -7
  831. package/package.json +32 -8
  832. package/dist/kongponents207.cjs +0 -1
  833. package/dist/kongponents207.es.js +0 -183
  834. package/dist/kongponents220.es.js +0 -4
  835. package/dist/kongponents236.cjs +0 -1
  836. package/dist/kongponents236.es.js +0 -50
  837. package/dist/kongponents287.cjs +0 -1
  838. package/dist/kongponents287.es.js +0 -57
  839. package/dist/kongponents289.cjs +0 -1
  840. package/dist/kongponents289.es.js +0 -85
  841. package/dist/kongponents291.cjs +0 -1
  842. package/dist/kongponents291.es.js +0 -43
  843. package/dist/kongponents293.cjs +0 -1
  844. package/dist/kongponents293.es.js +0 -7
  845. package/dist/kongponents295.cjs +0 -1
  846. package/dist/kongponents295.es.js +0 -22
  847. package/dist/kongponents297.cjs +0 -1
  848. package/dist/kongponents297.es.js +0 -7
  849. package/dist/kongponents336.cjs +0 -1
  850. package/dist/kongponents336.es.js +0 -12
  851. package/dist/kongponents390.cjs +0 -1
  852. package/dist/kongponents390.es.js +0 -4
  853. package/dist/kongponents392.cjs +0 -1
  854. package/dist/kongponents392.es.js +0 -25
  855. package/dist/kongponents395.cjs +0 -1
  856. package/dist/kongponents395.es.js +0 -617
  857. package/dist/kongponents397.cjs +0 -1
  858. package/dist/kongponents397.es.js +0 -17
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("./kongponents191.cjs"),R=require("./kongponents57.cjs"),n=require("./kongponents186.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("./kongponents187.cjs"),R=require("./kongponents57.cjs"),n=require("./kongponents200.cjs"),q=["data-value"],$=["id","aria-invalid","rows","value"],h=2048,p=n.IS_MAYBE_FIREFOX?0:n.getScrollbarSize(),S=n.cssSupports("field-sizing","content"),D=e.defineComponent({inheritAttrs:!1,__name:"KTextArea",props:{modelValue:{default:""},label:{default:""},labelAttributes:{default:()=>({})},characterLimit:{type:[Boolean,Number],default:()=>h},rows:{default:5},error:{type:Boolean},resizable:{type:Boolean},autosize:{type:Boolean},help:{default:""},isResizable:{type:Boolean},hasError:{type:Boolean}},emits:["input","update:modelValue","char-limit-exceeded"],setup(a,{emit:E}){e.useCssVars(t=>({v557cc968:t.rows})),e.watch(()=>a.isResizable,t=>{t&&console.warn("KTextArea: `isResizable` prop is deprecated in favor of `resizable` prop. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#ktextarea")},{immediate:!0}),e.watch(()=>a.hasError,t=>{t&&console.warn("KTextArea: `hasError` prop is deprecated. Please use `error` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#ktextarea")},{immediate:!0});const s=E,i=e.useAttrs(),u=e.useSlots(),{stripRequiredLabel:k}=C.default(),v=e.computed(()=>i?.required!==void 0&&String(i?.required)!=="false"),l=e.ref(""),x=e.computed(()=>k(a.label,v.value)),y=()=>!!(a.labelAttributes?.help||a.labelAttributes?.info||u["label-tooltip"]),T=e.computed(()=>a.error||a.hasError||o.value?!0:void 0),f=e.ref(0),A=e.computed({get(){return a.modelValue},set(t){c({target:{value:t}})}}),L=e.useId(),g=e.computed(()=>i.id?String(i.id):L),z=e.computed(()=>{const t={...i};return delete t.class,t}),o=e.computed(()=>typeof a.characterLimit=="boolean"?a.characterLimit?l.value.length>h:!1:l.value.length>a.characterLimit),c=t=>{const r=JSON.parse(JSON.stringify(t?.target?.value));s("input",r),s("update:modelValue",r),l.value=r},B=()=>!o.value&&!!(a.help||u.help),d=e.computed(()=>{const t=typeof a.characterLimit=="number"?a.characterLimit:h;return o.value?`${l.value?.toString().length} / ${t}`:a.help});e.watch(o,(t,r)=>{t!==r&&(s("char-limit-exceeded",{value:l.value,length:l.value.length,characterLimit:Number(a.characterLimit),limitExceeded:t}),f.value+=1)}),e.watch(A,(t,r)=>{t!==r&&c({target:{value:t}})});const w=()=>l.value?l.value:a.modelValue,b=n.IS_MAYBE_FIREFOX?()=>{}:t=>{const{target:r,clientX:m,clientY:I}=t;if(!(r instanceof HTMLTextAreaElement))return;const{right:N,bottom:V}=r.getBoundingClientRect();m>N-p&&I>V-p&&(r.style.height="")};return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["k-textarea",[t.$attrs.class,{"input-error":a.error||a.hasError||o.value}]])},[a.label||t.$slots.label?(e.openBlock(),e.createBlock(R.default,e.mergeProps({key:0,for:g.value},a.labelAttributes,{required:v.value}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(x.value),1)],!0)]),_:2},[y()?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"label-tooltip",{},void 0,!0)]),key:"0"}:void 0]),1040,["for","required"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["input-textarea-wrapper",{autosize:a.autosize,legacy:a.autosize&&!e.unref(S)}]),"data-allow-mismatch":"class","data-value":e.unref(S)?null:l.value},[e.createElementVNode("textarea",e.mergeProps({id:g.value},z.value,{"aria-invalid":T.value,class:["input-textarea",{resizable:a.resizable||a.isResizable}],rows:a.rows,value:w(),onDblclick:r[0]||(r[0]=(...m)=>e.unref(b)&&e.unref(b)(...m)),onInput:c}),null,16,$)],10,q),e.createVNode(e.Transition,{mode:"out-in",name:"kongponents-fade-transition"},{default:e.withCtx(()=>[d.value||u.help?(e.openBlock(),e.createElementBlock("p",{key:String(f.value),class:"help-text"},[B()?e.renderSlot(t.$slots,"help",{},()=>[e.createTextVNode(e.toDisplayString(d.value),1)],!0,0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(d.value),1)],64))])):e.createCommentVNode("",!0)]),_:3})],2))}});exports.default=D;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as J, useCssVars as X, watch as n, useAttrs as Y, useSlots as G, computed as r, ref as k, useId as j, openBlock as s, createElementBlock as f, normalizeClass as z, createBlock as Q, mergeProps as T, createSlots as W, withCtx as g, renderSlot as b, createTextVNode as S, toDisplayString as E, createCommentVNode as I, createElementVNode as N, unref as u, createVNode as _, Transition as ee, Fragment as te } from "vue";
2
- import ae from "./kongponents191.es.js";
2
+ import ae from "./kongponents187.es.js";
3
3
  import le from "./kongponents57.es.js";
4
- import { IS_MAYBE_FIREFOX as w, getScrollbarSize as re, cssSupports as ie } from "./kongponents186.es.js";
4
+ import { IS_MAYBE_FIREFOX as w, getScrollbarSize as re, cssSupports as ie } from "./kongponents200.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"),o=require("@kong/icons"),n=require("./kongponents183.cjs"),i={class:"toaster-icon-container"},u={class:"toaster-content"},d={key:0,class:"toaster-title"},_={key:1,class:"toaster-message"},k=["onClick"],m=e.defineComponent({__name:"KToaster",props:{toasterState:{default:()=>[]},zIndex:{}},emits:["close"],setup(r,{emit:s}){const a=s,l=c=>{switch(c){case"info":return o.InfoIcon;case"success":return o.CheckCircleIcon;case"warning":return o.WarningIcon;case"danger":return o.ClearIcon;case"system":return o.KongIcon;default:return o.InfoIcon}};return(c,p)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{class:"k-toaster",name:"kongponents-slide-up-transition",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.toasterState,t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:e.normalizeClass(["toaster",`${t.appearance}`]),role:"alert"},[e.createElementVNode("div",i,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(t.appearance)),{class:"toaster-icon",color:`var(--kui-toaster-icon-color, var(--kui-color-background-inverse, ${e.unref(n.KUI_COLOR_BACKGROUND_INVERSE)}))`,decorative:""},null,8,["color"]))]),e.createElementVNode("div",u,[t.title?(e.openBlock(),e.createElementBlock("span",d,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("p",_,e.toDisplayString(t.message),1)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{"aria-label":"Close",class:"toaster-close-icon","data-testid":"toaster-close-icon",type:"button",onClick:e.withModifiers(C=>a("close",t.key),["stop"])},[e.createVNode(e.unref(o.CloseIcon),{color:`var(--kui-color-text-neutral-weak, ${e.unref(n.KUI_COLOR_TEXT_NEUTRAL_WEAK)})`,size:`var(--kui-icon-size-50, ${e.unref(n.KUI_ICON_SIZE_50)})`},null,8,["color","size"])],8,k)],2))),128))]),_:1}))}});exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("@kong/icons"),n=require("./kongponents182.cjs"),i={class:"toaster-icon-container"},u={class:"toaster-content"},d={key:0,class:"toaster-title"},_={key:1,class:"toaster-message"},k=["onClick"],m=e.defineComponent({__name:"KToaster",props:{toasterState:{default:()=>[]},zIndex:{}},emits:["close"],setup(r,{emit:s}){const a=s,l=c=>{switch(c){case"info":return o.InfoIcon;case"success":return o.CheckCircleIcon;case"warning":return o.WarningIcon;case"danger":return o.ClearIcon;case"system":return o.KongIcon;default:return o.InfoIcon}};return(c,p)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{class:"k-toaster",name:"kongponents-slide-up-transition",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.toasterState,t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:e.normalizeClass(["toaster",`${t.appearance}`]),role:"alert"},[e.createElementVNode("div",i,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(t.appearance)),{class:"toaster-icon",color:`var(--kui-toaster-icon-color, var(--kui-color-background-inverse, ${e.unref(n.KUI_COLOR_BACKGROUND_INVERSE)}))`,decorative:""},null,8,["color"]))]),e.createElementVNode("div",u,[t.title?(e.openBlock(),e.createElementBlock("span",d,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("p",_,e.toDisplayString(t.message),1)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{"aria-label":"Close",class:"toaster-close-icon","data-testid":"toaster-close-icon",type:"button",onClick:e.withModifiers(C=>a("close",t.key),["stop"])},[e.createVNode(e.unref(o.CloseIcon),{color:`var(--kui-color-text-neutral-weak, ${e.unref(n.KUI_COLOR_TEXT_NEUTRAL_WEAK)})`,size:`var(--kui-icon-size-50, ${e.unref(n.KUI_ICON_SIZE_50)})`},null,8,["color","size"])],8,k)],2))),128))]),_:1}))}});exports.default=m;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, openBlock as t, createBlock as a, TransitionGroup as k, withCtx as C, createElementBlock as o, Fragment as I, renderList as f, normalizeClass as g, createElementVNode as s, resolveDynamicComponent as v, unref as n, toDisplayString as c, createCommentVNode as i, withModifiers as h, createVNode as y } from "vue";
2
2
  import { CloseIcon as E, InfoIcon as l, KongIcon as K, ClearIcon as N, WarningIcon as O, CheckCircleIcon as T } from "@kong/icons";
3
- import { KUI_COLOR_BACKGROUND_INVERSE as w, KUI_ICON_SIZE_50 as x, KUI_COLOR_TEXT_NEUTRAL_WEAK as z } from "./kongponents183.es.js";
3
+ import { KUI_COLOR_BACKGROUND_INVERSE as w, KUI_ICON_SIZE_50 as x, KUI_COLOR_TEXT_NEUTRAL_WEAK as z } from "./kongponents182.es.js";
4
4
  const R = { class: "toaster-icon-container" }, S = { class: "toaster-content" }, U = {
5
5
  key: 0,
6
6
  class: "toaster-title"
@@ -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("./kongponents183.cjs"),n=require("./kongponents179.cjs"),a=require("./kongponents198.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("./kongponents183.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,8 +1,8 @@
1
1
  import { defineComponent as l, watch as c, computed as f, openBlock as t, createElementBlock as m, renderSlot as d, createBlock as s, unref as o, createCommentVNode as n } from "vue";
2
2
  import { ExternalLinkIcon as u } from "@kong/icons";
3
- import { KUI_ICON_SIZE_30 as h } from "./kongponents183.es.js";
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 "./kongponents198.es.js";
5
+ import { warnInvalidProp as k } from "./kongponents183.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("./kongponents183.cjs"),B=require("./kongponents193.cjs"),H=require("./kongponents182.cjs"),N=require("./kongponents198.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("./kongponents203.cjs"),H=require("./kongponents185.cjs"),N=require("./kongponents183.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
- import { KUI_SPACE_40 as R, KUI_ICON_SIZE_30 as Z } from "./kongponents183.es.js";
4
- import { ResizeObserverHelper as j } from "./kongponents193.es.js";
5
- import { normalizeSize as G } from "./kongponents182.es.js";
6
- import { warnInvalidProp as J } from "./kongponents198.es.js";
3
+ import { KUI_SPACE_40 as R, KUI_ICON_SIZE_30 as Z } from "./kongponents182.es.js";
4
+ import { ResizeObserverHelper as j } from "./kongponents203.es.js";
5
+ import { normalizeSize as G } from "./kongponents185.es.js";
6
+ import { warnInvalidProp as J } from "./kongponents183.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("./kongponents193.cjs"),T=require("@kong/icons"),C=require("./kongponents24.cjs"),s=require("./kongponents30.cjs");;/* empty css */const h=require("./kongponents183.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("./kongponents203.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,10 +1,10 @@
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 "./kongponents193.es.js";
2
+ import { ResizeObserverHelper as F } from "./kongponents203.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";
6
6
  /* empty css */
7
- import { KUI_ICON_SIZE_30 as U } from "./kongponents183.es.js";
7
+ import { KUI_ICON_SIZE_30 as U } from "./kongponents182.es.js";
8
8
  const D = { class: "k-copy" }, H = {
9
9
  key: 0,
10
10
  class: "copy-badge-text"
@@ -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("./kongponents183.cjs"),st=require("./kongponents184.cjs"),ut=require("./kongponents61.cjs"),ct=require("./kongponents49.cjs"),he=require("./kongponents42.cjs"),dt=require("./kongponents185.cjs"),yt=require("./kongponents181.cjs"),ft=require("./kongponents160.cjs"),vt=require("./kongponents186.cjs"),Se=require("./kongponents187.cjs"),bt=require("./kongponents182.cjs"),kt=require("./kongponents46.cjs"),mt=require("./kongponents188.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("./kongponents198.cjs"),ut=require("./kongponents61.cjs"),ct=require("./kongponents49.cjs"),he=require("./kongponents42.cjs"),dt=require("./kongponents199.cjs"),yt=require("./kongponents181.cjs"),ft=require("./kongponents160.cjs"),vt=require("./kongponents200.cjs"),Se=require("./kongponents190.cjs"),bt=require("./kongponents185.cjs"),kt=require("./kongponents46.cjs"),mt=require("./kongponents201.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;
@@ -10,19 +10,19 @@ import "./kongponents7.es.js";
10
10
  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
- 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 "./kongponents183.es.js";
14
- import qt from "./kongponents184.es.js";
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 "./kongponents198.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 "./kongponents185.es.js";
18
+ import Gt from "./kongponents199.es.js";
19
19
  import { getInitialPageSize as Jt } from "./kongponents181.es.js";
20
20
  import { getUniqueStringId as Yt } from "./kongponents160.es.js";
21
- import { getScrollbarSize as Qt } from "./kongponents186.es.js";
22
- import { useElementSize as _t, useResizeObserver as ea } from "./kongponents187.es.js";
23
- import { normalizeSize as ta } from "./kongponents182.es.js";
21
+ import { getScrollbarSize as Qt } from "./kongponents200.es.js";
22
+ import { useElementSize as _t, useResizeObserver as ea } from "./kongponents190.es.js";
23
+ import { normalizeSize as ta } from "./kongponents185.es.js";
24
24
  import aa from "./kongponents46.es.js";
25
- import oa from "./kongponents188.es.js";
25
+ import oa from "./kongponents201.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("./kongponents217.cjs"),N=require("./kongponents218.cjs"),A=require("./kongponents183.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("./kongponents211.cjs"),N=require("./kongponents212.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,7 +1,7 @@
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 "./kongponents217.es.js";
3
- import H from "./kongponents218.es.js";
4
- import { KUI_ANIMATION_DURATION_20 as J } from "./kongponents183.es.js";
2
+ import z from "./kongponents211.es.js";
3
+ import H from "./kongponents212.es.js";
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,
7
7
  class: "label",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>{const r=Number(e);return Number.isNaN(r)?`${e}`:`${r}px`};exports.normalizeSize=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _="#0d0e14",I="#00abd2",E="#ffffff",O="#6c7489",U="#52596e",T="#afb7c5",K="#0044f4",R="#995c00",C="0.2s",A="16px",N="20px",S="24px",t="32px",c="20px",L="4px",o="6px",s="8px",n="12px",X="16px";exports.KUI_ANIMATION_DURATION_20=C;exports.KUI_COLOR_BACKGROUND_INVERSE=_;exports.KUI_COLOR_TEXT_DECORATIVE_AQUA=I;exports.KUI_COLOR_TEXT_INVERSE=E;exports.KUI_COLOR_TEXT_NEUTRAL=O;exports.KUI_COLOR_TEXT_NEUTRAL_STRONG=U;exports.KUI_COLOR_TEXT_NEUTRAL_WEAK=T;exports.KUI_COLOR_TEXT_PRIMARY=K;exports.KUI_COLOR_TEXT_WARNING=R;exports.KUI_ICON_SIZE_30=A;exports.KUI_ICON_SIZE_40=N;exports.KUI_ICON_SIZE_50=S;exports.KUI_ICON_SIZE_60=t;exports.KUI_LINE_HEIGHT_30=c;exports.KUI_SPACE_20=L;exports.KUI_SPACE_30=o;exports.KUI_SPACE_40=s;exports.KUI_SPACE_50=n;exports.KUI_SPACE_60=X;
@@ -1,7 +1,22 @@
1
- const n = (r) => {
2
- const e = Number(r);
3
- return Number.isNaN(e) ? `${r}` : `${e}px`;
4
- };
1
+ const _ = "#0d0e14", I = "#00abd2", E = "#ffffff", O = "#6c7489", U = "#52596e", c = "#afb7c5", T = "#0044f4", K = "#995c00", o = "0.2s", s = "16px", t = "20px", R = "24px", n = "32px", C = "20px", A = "4px", N = "6px", L = "8px", S = "12px", p = "16px";
5
2
  export {
6
- n as normalizeSize
3
+ o as KUI_ANIMATION_DURATION_20,
4
+ _ as KUI_COLOR_BACKGROUND_INVERSE,
5
+ I as KUI_COLOR_TEXT_DECORATIVE_AQUA,
6
+ E as KUI_COLOR_TEXT_INVERSE,
7
+ O as KUI_COLOR_TEXT_NEUTRAL,
8
+ U as KUI_COLOR_TEXT_NEUTRAL_STRONG,
9
+ c as KUI_COLOR_TEXT_NEUTRAL_WEAK,
10
+ T as KUI_COLOR_TEXT_PRIMARY,
11
+ K as KUI_COLOR_TEXT_WARNING,
12
+ s as KUI_ICON_SIZE_30,
13
+ t as KUI_ICON_SIZE_40,
14
+ R as KUI_ICON_SIZE_50,
15
+ n as KUI_ICON_SIZE_60,
16
+ C as KUI_LINE_HEIGHT_30,
17
+ A as KUI_SPACE_20,
18
+ N as KUI_SPACE_30,
19
+ L as KUI_SPACE_40,
20
+ S as KUI_SPACE_50,
21
+ p as KUI_SPACE_60
7
22
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _="#0d0e14",I="#00abd2",E="#ffffff",O="#6c7489",U="#52596e",T="#afb7c5",K="#0044f4",R="#995c00",C="0.2s",A="16px",N="20px",S="24px",t="32px",c="20px",L="4px",o="6px",s="8px",n="12px",X="16px";exports.KUI_ANIMATION_DURATION_20=C;exports.KUI_COLOR_BACKGROUND_INVERSE=_;exports.KUI_COLOR_TEXT_DECORATIVE_AQUA=I;exports.KUI_COLOR_TEXT_INVERSE=E;exports.KUI_COLOR_TEXT_NEUTRAL=O;exports.KUI_COLOR_TEXT_NEUTRAL_STRONG=U;exports.KUI_COLOR_TEXT_NEUTRAL_WEAK=T;exports.KUI_COLOR_TEXT_PRIMARY=K;exports.KUI_COLOR_TEXT_WARNING=R;exports.KUI_ICON_SIZE_30=A;exports.KUI_ICON_SIZE_40=N;exports.KUI_ICON_SIZE_50=S;exports.KUI_ICON_SIZE_60=t;exports.KUI_LINE_HEIGHT_30=c;exports.KUI_SPACE_20=L;exports.KUI_SPACE_30=o;exports.KUI_SPACE_40=s;exports.KUI_SPACE_50=n;exports.KUI_SPACE_60=X;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");function a(r,e){o.warn(`Invalid prop: validator check failed for prop "${r}". ${e}`)}exports.warnInvalidProp=a;
@@ -1,22 +1,7 @@
1
- const _ = "#0d0e14", I = "#00abd2", E = "#ffffff", O = "#6c7489", U = "#52596e", c = "#afb7c5", T = "#0044f4", K = "#995c00", o = "0.2s", s = "16px", t = "20px", R = "24px", n = "32px", C = "20px", A = "4px", N = "6px", L = "8px", S = "12px", p = "16px";
1
+ import { warn as a } from "vue";
2
+ function i(r, o) {
3
+ a(`Invalid prop: validator check failed for prop "${r}". ${o}`);
4
+ }
2
5
  export {
3
- o as KUI_ANIMATION_DURATION_20,
4
- _ as KUI_COLOR_BACKGROUND_INVERSE,
5
- I as KUI_COLOR_TEXT_DECORATIVE_AQUA,
6
- E as KUI_COLOR_TEXT_INVERSE,
7
- O as KUI_COLOR_TEXT_NEUTRAL,
8
- U as KUI_COLOR_TEXT_NEUTRAL_STRONG,
9
- c as KUI_COLOR_TEXT_NEUTRAL_WEAK,
10
- T as KUI_COLOR_TEXT_PRIMARY,
11
- K as KUI_COLOR_TEXT_WARNING,
12
- s as KUI_ICON_SIZE_30,
13
- t as KUI_ICON_SIZE_40,
14
- R as KUI_ICON_SIZE_50,
15
- n as KUI_ICON_SIZE_60,
16
- C as KUI_LINE_HEIGHT_30,
17
- A as KUI_SPACE_20,
18
- N as KUI_SPACE_30,
19
- L as KUI_SPACE_40,
20
- S as KUI_SPACE_50,
21
- p as KUI_SPACE_60
6
+ i as warnInvalidProp
22
7
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./kongponents223.cjs");;/* empty css */const u=require("./kongponents82.cjs"),t=u.default(e.default,[["__scopeId","data-v-2ef0f9b8"]]);exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./kongponents186.cjs");;/* empty css */const t=require("./kongponents82.cjs"),u=t.default(e.default,[["__scopeId","data-v-32fee538"]]);exports.getMaximumDepth=e.getMaximumDepth;exports.default=u;
@@ -1,7 +1,9 @@
1
- import o from "./kongponents223.es.js";
1
+ import e from "./kongponents186.es.js";
2
+ import { getMaximumDepth as _ } from "./kongponents186.es.js";
2
3
  /* empty css */
3
- import t from "./kongponents82.es.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2ef0f9b8"]]);
4
+ import o from "./kongponents82.es.js";
5
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-32fee538"]]);
5
6
  export {
6
- r as default
7
+ a as default,
8
+ _ as getMaximumDepth
7
9
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./kongponents225.cjs");;/* empty css */const t=require("./kongponents82.cjs"),u=t.default(e.default,[["__scopeId","data-v-cf7c2833"]]);exports.default=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>{const r=Number(e);return Number.isNaN(r)?`${e}`:`${r}px`};exports.normalizeSize=t;
@@ -1,7 +1,7 @@
1
- import o from "./kongponents225.es.js";
2
- /* empty css */
3
- import t from "./kongponents82.es.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cf7c2833"]]);
1
+ const n = (r) => {
2
+ const e = Number(r);
3
+ return Number.isNaN(e) ? `${r}` : `${e}px`;
4
+ };
5
5
  export {
6
- f as default
6
+ n as normalizeSize
7
7
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=typeof navigator<"u"&&("userAgentData"in navigator&&navigator.userAgentData==="macOS"||navigator.platform?.toLowerCase().includes("mac")),r=typeof navigator<"u"&&navigator.userAgent.includes("Firefox");function i(e,o){return typeof CSS<"u"&&CSS.supports(e,o)}let t=null;function l(){if(t!==null)return t;if(typeof document>"u")return 0;const e=document.createElement("div");return e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e),t}exports.IS_MAYBE_FIREFOX=r;exports.IS_MAYBE_MAC=n;exports.cssSupports=i;exports.getScrollbarSize=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),A=require("vue-draggable-next"),N=require("./kongponents388.cjs"),g=({children:l=[]})=>l.length===0?0:1+Math.max(...l.map(g)),V=t.defineComponent({__name:"KTreeDraggable",props:{items:{},disableDrag:{type:Boolean},filter:{type:[String,Function]},maxDepth:{},level:{default:0},parentId:{},hideIcons:{type:Boolean},group:{},collapsible:{type:Boolean},initialCollapseAll:{type:Boolean}},emits:["change","child-change","selected"],setup(l,{expose:p,emit:x}){const d=x,s=t.ref(0),n=t.ref([]),C={tag:"div","force-fallback":!0,animation:"100",draggable:".tree-item-container","item-key":"id","ghost-class":"tree-item-dragged","drag-class":"tree-item-grabbing",class:"child-drop-zone","fallback-tolerance":10},h=t.ref(!1),v=t.computed(()=>[".tree-item-expanded-button",...(typeof l.filter=="function"?l.filter():l.filter).split(",").map(i=>i.trim()).filter(Boolean)].join(", ")),m=e=>!n.value.filter(i=>i.id===e.id)?.[0]?.children?.length,y=e=>e.children||[],D=e=>{l.parentId?d("child-change",{parentId:l.parentId,children:n.value,target:e?.added||e?.removed||e?.moved}):d("change",{items:n.value,target:e?.added||e?.removed||e?.moved})},E=e=>{d("child-change",e)},f=e=>{d("selected",e)},r=t.ref(new Map),k=(e,i)=>{r.value.set(i,e)},S=e=>l.collapsible?!!r.value.get(e):!0,u=t.useTemplateRef("tree-items"),B=()=>{n.value.forEach(e=>{r.value.set(e.id,!1)}),u.value?.forEach(e=>{e?.setExpandedValue(!1)})},I=()=>{n.value.forEach(e=>{r.value.set(e.id,!0)}),u.value?.forEach(e=>{e?.setExpandedValue(!0)})},$=t.computed(()=>l.level>l.maxDepth-1),T=e=>{const i=e.relatedContext?.component?.$attrs.level||0,o=e.draggedContext?.element;let a=0;return o.children?.length&&(a=g(o)),!(i+a>l.maxDepth-1)},w=e=>{const i=e.item?._underlying_vm_?.id||"",o=n.value.find(a=>a.id===i);h.value=!0,o&&d("selected",o),b(!0)},L=async()=>{h.value=!1,b(!1),s.value++,await t.nextTick(),u.value?.forEach(e=>{e?.setExpandedValue(r.value.get(e?.id))})},b=e=>{const i=document?.getElementsByTagName("html").item(0);i&&i.classList.toggle("tree-list-grabbing",e)};t.watch(()=>l.items,(e,i)=>{JSON.stringify(e)!==JSON.stringify(i)&&(n.value=e,n.value.forEach(o=>{o.children||(o.children=[])}))});const M=()=>{n.value.forEach(e=>{r.value.set(e.id,!l.initialCollapseAll)})};return t.onMounted(async()=>{n.value=l.items,n.value.forEach(e=>{e.children||(e.children=[])}),await t.nextTick(),l.collapsible&&M()}),p({collapseAll:B,expandAll:I}),(e,i)=>{const o=t.resolveComponent("KTreeDraggable",!0);return t.openBlock(),t.createBlock(t.unref(A.VueDraggableNext),t.mergeProps(C,{class:"tree-draggable",direction:"vertical",disabled:l.disableDrag,filter:v.value,group:{name:l.group,pull:[l.group],put:$.value?[]:[l.group]},level:l.level,list:n.value,move:T,tag:"div",onChange:D,onEnd:L,onStart:w}),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,a=>(t.openBlock(),t.createElementBlock("div",{key:a.id,class:t.normalizeClass(["tree-item-container",{"has-no-children":m(a)}])},[(t.openBlock(),t.createBlock(N.default,{key:`tree-item-${a.id}-${s.value}`,ref_for:!0,ref:"tree-items",collapsible:l.collapsible,"controls-id":a.id,disabled:l.disableDrag,"has-children":!m(a),"hide-icons":l.hideIcons,"initial-collapse":l.initialCollapseAll,item:a,onExpanded:c=>k(c,a.id),onSelected:f},t.createSlots({"item-label":t.withCtx(()=>[t.renderSlot(e.$slots,"item-label",{item:a},()=>[t.createTextVNode(t.toDisplayString(a.name),1)],!0)]),_:2},[e.$slots["item-icon"]?{name:"item-icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon",{item:a},void 0,!0)]),key:"0"}:void 0]),1032,["collapsible","controls-id","disabled","has-children","hide-icons","initial-collapse","item","onExpanded"])),t.withDirectives((t.openBlock(),t.createBlock(o,{id:`tree-list-draggable-${a.id}`,key:`tree-item-${a.id}-children-${s.value}`,class:t.normalizeClass({collapsible:l.collapsible}),collapsible:l.collapsible,"disable-drag":l.disableDrag,filter:v.value,group:l.group,"hide-icons":l.hideIcons,"initial-collapse-all":l.initialCollapseAll,items:y(a),level:l.level+1,"max-depth":l.maxDepth,"parent-id":a.id,onChildChange:E,onSelected:f},t.createSlots({"item-label":t.withCtx(({item:c})=>[t.renderSlot(e.$slots,"item-label",{item:c},void 0,!0)]),_:2},[e.$slots["item-icon"]?{name:"item-icon",fn:t.withCtx(({item:c})=>[t.renderSlot(e.$slots,"item-icon",{item:c},void 0,!0)]),key:"0"}:void 0]),1032,["id","class","collapsible","disable-drag","filter","group","hide-icons","initial-collapse-all","items","level","max-depth","parent-id"])),[[t.vShow,S(a.id)]])],2))),128))]),_:3},16,["disabled","filter","group","level","list"])}}});exports.default=V;exports.getMaximumDepth=g;