@kong/kongponents 9.66.9 → 9.66.10

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 (672) hide show
  1. package/bin/mcp-data/snapshot.json.gz +0 -0
  2. package/dist/kongponents.css +1 -1
  3. package/dist/kongponents.umd.js +2 -2
  4. package/dist/kongponents103.cjs +1 -1
  5. package/dist/kongponents103.es.js +1 -1
  6. package/dist/kongponents105.cjs +1 -1
  7. package/dist/kongponents105.es.js +4 -4
  8. package/dist/kongponents108.cjs +1 -1
  9. package/dist/kongponents108.es.js +1 -1
  10. package/dist/kongponents114.cjs +1 -1
  11. package/dist/kongponents114.es.js +1 -1
  12. package/dist/kongponents116.cjs +1 -1
  13. package/dist/kongponents116.es.js +1 -1
  14. package/dist/kongponents118.cjs +1 -1
  15. package/dist/kongponents118.es.js +2 -2
  16. package/dist/kongponents122.cjs +1 -1
  17. package/dist/kongponents122.es.js +2 -2
  18. package/dist/kongponents124.cjs +1 -1
  19. package/dist/kongponents124.es.js +3 -3
  20. package/dist/kongponents126.cjs +1 -1
  21. package/dist/kongponents126.es.js +1 -1
  22. package/dist/kongponents128.cjs +1 -1
  23. package/dist/kongponents128.es.js +5 -5
  24. package/dist/kongponents131.cjs +1 -1
  25. package/dist/kongponents131.es.js +2 -2
  26. package/dist/kongponents133.cjs +1 -1
  27. package/dist/kongponents133.es.js +4 -4
  28. package/dist/kongponents137.cjs +1 -1
  29. package/dist/kongponents137.es.js +1 -1
  30. package/dist/kongponents139.cjs +1 -1
  31. package/dist/kongponents139.es.js +1 -1
  32. package/dist/kongponents141.cjs +1 -1
  33. package/dist/kongponents141.es.js +4 -4
  34. package/dist/kongponents148.cjs +1 -1
  35. package/dist/kongponents148.es.js +3 -3
  36. package/dist/kongponents150.cjs +1 -1
  37. package/dist/kongponents150.es.js +1 -1
  38. package/dist/kongponents152.cjs +1 -1
  39. package/dist/kongponents152.es.js +3 -3
  40. package/dist/kongponents156.cjs +1 -1
  41. package/dist/kongponents156.es.js +2 -2
  42. package/dist/kongponents158.cjs +1 -1
  43. package/dist/kongponents158.es.js +1 -1
  44. package/dist/kongponents164.cjs +1 -1
  45. package/dist/kongponents164.es.js +2 -2
  46. package/dist/kongponents166.cjs +1 -1
  47. package/dist/kongponents166.es.js +3 -3
  48. package/dist/kongponents168.cjs +1 -1
  49. package/dist/kongponents168.es.js +2 -2
  50. package/dist/kongponents170.cjs +1 -1
  51. package/dist/kongponents170.es.js +6 -6
  52. package/dist/kongponents175.cjs +1 -1
  53. package/dist/kongponents175.es.js +1 -1
  54. package/dist/kongponents183.cjs +1 -1
  55. package/dist/kongponents183.es.js +97 -35
  56. package/dist/kongponents184.cjs +1 -2
  57. package/dist/kongponents184.es.js +20 -98
  58. package/dist/kongponents185.cjs +1 -1
  59. package/dist/kongponents185.es.js +36 -20
  60. package/dist/kongponents186.cjs +2 -1
  61. package/dist/kongponents186.es.js +97 -16
  62. package/dist/kongponents187.cjs +1 -1
  63. package/dist/kongponents187.es.js +16 -18
  64. package/dist/kongponents188.cjs +1 -1
  65. package/dist/kongponents188.es.js +18 -51
  66. package/dist/kongponents189.cjs +1 -1
  67. package/dist/kongponents189.es.js +51 -97
  68. package/dist/kongponents191.cjs +1 -1
  69. package/dist/kongponents191.es.js +5 -21
  70. package/dist/kongponents192.cjs +1 -1
  71. package/dist/kongponents192.es.js +8 -5
  72. package/dist/kongponents193.cjs +1 -1
  73. package/dist/kongponents193.es.js +60 -7
  74. package/dist/kongponents194.cjs +1 -1
  75. package/dist/kongponents194.es.js +18 -182
  76. package/dist/kongponents195.cjs +1 -1
  77. package/dist/kongponents195.es.js +5 -5
  78. package/dist/kongponents196.cjs +1 -1
  79. package/dist/kongponents196.es.js +6 -4
  80. package/dist/kongponents197.cjs +1 -1
  81. package/dist/kongponents197.es.js +185 -5
  82. package/dist/kongponents198.cjs +1 -1
  83. package/dist/kongponents198.es.js +4 -4
  84. package/dist/kongponents199.cjs +1 -1
  85. package/dist/kongponents199.es.js +4 -4
  86. package/dist/kongponents200.cjs +1 -1
  87. package/dist/kongponents200.es.js +213 -5
  88. package/dist/kongponents201.cjs +1 -1
  89. package/dist/kongponents201.es.js +3 -3
  90. package/dist/kongponents202.cjs +1 -1
  91. package/dist/kongponents202.es.js +5 -213
  92. package/dist/kongponents203.cjs +1 -1
  93. package/dist/kongponents203.es.js +5 -10
  94. package/dist/kongponents204.cjs +1 -1
  95. package/dist/kongponents204.es.js +5 -17
  96. package/dist/kongponents205.cjs +1 -1
  97. package/dist/kongponents205.es.js +5 -2
  98. package/dist/kongponents206.cjs +1 -1
  99. package/dist/kongponents206.es.js +4 -4
  100. package/dist/kongponents207.cjs +1 -1
  101. package/dist/kongponents207.es.js +4 -4
  102. package/dist/kongponents208.cjs +1 -1
  103. package/dist/kongponents208.es.js +1 -1
  104. package/dist/kongponents209.cjs +1 -1
  105. package/dist/kongponents209.es.js +1 -1
  106. package/dist/kongponents210.cjs +1 -1
  107. package/dist/kongponents210.es.js +2 -5
  108. package/dist/{kongponents346.cjs → kongponents211.cjs} +1 -1
  109. package/dist/kongponents211.es.js +7 -0
  110. package/dist/kongponents212.cjs +1 -1
  111. package/dist/kongponents212.es.js +4 -4
  112. package/dist/kongponents213.cjs +1 -1
  113. package/dist/kongponents213.es.js +5 -8
  114. package/dist/kongponents214.cjs +1 -1
  115. package/dist/kongponents214.es.js +9 -59
  116. package/dist/kongponents215.cjs +1 -1
  117. package/dist/kongponents215.es.js +1 -1
  118. package/dist/kongponents216.cjs +1 -1
  119. package/dist/kongponents216.es.js +1 -1
  120. package/dist/kongponents217.cjs +1 -1
  121. package/dist/kongponents217.es.js +17 -15
  122. package/dist/kongponents218.cjs +1 -1
  123. package/dist/kongponents218.es.js +15 -5
  124. package/dist/kongponents219.cjs +1 -1
  125. package/dist/kongponents219.es.js +6 -24
  126. package/dist/kongponents220.cjs +1 -0
  127. package/dist/kongponents220.es.js +26 -0
  128. package/dist/{kongponents221.cjs → kongponents222.cjs} +1 -1
  129. package/dist/{kongponents221.es.js → kongponents222.es.js} +1 -1
  130. package/dist/{kongponents227.cjs → kongponents228.cjs} +1 -1
  131. package/dist/{kongponents227.es.js → kongponents228.es.js} +1 -1
  132. package/dist/kongponents232.cjs +1 -1
  133. package/dist/kongponents232.es.js +182 -31
  134. package/dist/kongponents235.cjs +1 -1
  135. package/dist/kongponents235.es.js +45 -168
  136. package/dist/kongponents237.cjs +1 -1
  137. package/dist/kongponents237.es.js +31 -64
  138. package/dist/kongponents238.cjs +1 -0
  139. package/dist/kongponents238.es.js +85 -0
  140. package/dist/kongponents240.cjs +1 -0
  141. package/dist/kongponents240.es.js +43 -0
  142. package/dist/{kongponents247.cjs → kongponents242.cjs} +1 -1
  143. package/dist/{kongponents247.es.js → kongponents242.es.js} +1 -1
  144. package/dist/{kongponents243.cjs → kongponents244.cjs} +1 -1
  145. package/dist/{kongponents243.es.js → kongponents244.es.js} +1 -1
  146. package/dist/{kongponents245.cjs → kongponents246.cjs} +1 -1
  147. package/dist/{kongponents245.es.js → kongponents246.es.js} +2 -2
  148. package/dist/kongponents248.cjs +1 -0
  149. package/dist/kongponents248.es.js +7 -0
  150. package/dist/kongponents249.cjs +1 -1
  151. package/dist/kongponents249.es.js +5 -5
  152. package/dist/kongponents25.cjs +1 -1
  153. package/dist/kongponents25.es.js +7 -7
  154. package/dist/kongponents250.cjs +1 -1
  155. package/dist/kongponents250.es.js +20 -5
  156. package/dist/kongponents251.cjs +1 -1
  157. package/dist/kongponents251.es.js +3 -19
  158. package/dist/kongponents252.cjs +1 -1
  159. package/dist/kongponents252.es.js +4 -3
  160. package/dist/kongponents253.cjs +1 -1
  161. package/dist/kongponents253.es.js +5 -4
  162. package/dist/kongponents254.cjs +1 -1
  163. package/dist/kongponents254.es.js +8 -5
  164. package/dist/kongponents255.cjs +1 -1
  165. package/dist/kongponents255.es.js +5 -8
  166. package/dist/kongponents256.cjs +1 -1
  167. package/dist/kongponents256.es.js +3 -5
  168. package/dist/kongponents257.cjs +1 -1
  169. package/dist/kongponents257.es.js +16 -3
  170. package/dist/kongponents258.cjs +1 -1
  171. package/dist/kongponents258.es.js +3 -16
  172. package/dist/kongponents259.cjs +1 -1
  173. package/dist/kongponents259.es.js +8 -4
  174. package/dist/kongponents260.cjs +1 -1
  175. package/dist/kongponents260.es.js +6 -7
  176. package/dist/kongponents261.cjs +1 -1
  177. package/dist/kongponents261.es.js +3 -6
  178. package/dist/kongponents262.cjs +1 -1
  179. package/dist/kongponents262.es.js +2 -4
  180. package/dist/kongponents263.cjs +1 -1
  181. package/dist/kongponents263.es.js +6 -2
  182. package/dist/kongponents264.cjs +1 -1
  183. package/dist/kongponents264.es.js +9 -5
  184. package/dist/kongponents265.cjs +1 -1
  185. package/dist/kongponents265.es.js +4 -9
  186. package/dist/kongponents266.cjs +1 -1
  187. package/dist/kongponents266.es.js +4 -5
  188. package/dist/kongponents267.cjs +1 -1
  189. package/dist/kongponents267.es.js +3 -4
  190. package/dist/kongponents268.cjs +1 -1
  191. package/dist/kongponents268.es.js +4 -3
  192. package/dist/kongponents269.cjs +1 -1
  193. package/dist/kongponents269.es.js +7 -3
  194. package/dist/kongponents27.cjs +1 -1
  195. package/dist/kongponents27.es.js +2 -2
  196. package/dist/kongponents270.cjs +1 -1
  197. package/dist/kongponents270.es.js +6 -7
  198. package/dist/kongponents271.cjs +1 -1
  199. package/dist/kongponents271.es.js +5 -7
  200. package/dist/kongponents272.cjs +1 -1
  201. package/dist/kongponents272.es.js +10 -5
  202. package/dist/kongponents273.cjs +1 -1
  203. package/dist/kongponents273.es.js +5 -9
  204. package/dist/kongponents274.cjs +1 -1
  205. package/dist/kongponents274.es.js +9 -6
  206. package/dist/kongponents275.cjs +1 -1
  207. package/dist/kongponents275.es.js +7 -9
  208. package/dist/kongponents276.cjs +1 -1
  209. package/dist/kongponents276.es.js +17 -6
  210. package/dist/kongponents277.cjs +1 -1
  211. package/dist/kongponents277.es.js +11 -17
  212. package/dist/kongponents278.cjs +1 -1
  213. package/dist/kongponents278.es.js +6 -11
  214. package/dist/kongponents279.cjs +1 -1
  215. package/dist/kongponents279.es.js +12 -6
  216. package/dist/kongponents280.cjs +1 -1
  217. package/dist/kongponents280.es.js +9 -12
  218. package/dist/kongponents281.cjs +1 -1
  219. package/dist/kongponents281.es.js +5 -9
  220. package/dist/kongponents282.cjs +1 -1
  221. package/dist/kongponents282.es.js +8 -5
  222. package/dist/kongponents283.cjs +1 -1
  223. package/dist/kongponents283.es.js +15 -8
  224. package/dist/kongponents284.cjs +1 -1
  225. package/dist/kongponents284.es.js +17 -15
  226. package/dist/kongponents285.cjs +1 -1
  227. package/dist/kongponents285.es.js +5 -17
  228. package/dist/kongponents286.cjs +1 -1
  229. package/dist/kongponents286.es.js +10 -5
  230. package/dist/kongponents287.cjs +1 -1
  231. package/dist/kongponents287.es.js +6 -10
  232. package/dist/kongponents288.cjs +1 -1
  233. package/dist/kongponents288.es.js +6 -5
  234. package/dist/kongponents289.cjs +1 -1
  235. package/dist/kongponents289.es.js +5 -7
  236. package/dist/kongponents290.cjs +1 -1
  237. package/dist/kongponents290.es.js +5 -4
  238. package/dist/kongponents291.cjs +1 -1
  239. package/dist/kongponents291.es.js +9 -6
  240. package/dist/kongponents292.cjs +1 -1
  241. package/dist/kongponents292.es.js +7 -9
  242. package/dist/kongponents293.cjs +1 -1
  243. package/dist/kongponents293.es.js +3 -7
  244. package/dist/kongponents294.cjs +1 -1
  245. package/dist/kongponents294.es.js +5 -3
  246. package/dist/kongponents295.cjs +1 -1
  247. package/dist/kongponents295.es.js +15 -5
  248. package/dist/kongponents296.cjs +1 -1
  249. package/dist/kongponents296.es.js +8 -15
  250. package/dist/kongponents297.cjs +1 -1
  251. package/dist/kongponents297.es.js +7 -87
  252. package/dist/kongponents298.cjs +1 -0
  253. package/dist/kongponents298.es.js +10 -0
  254. package/dist/kongponents299.cjs +1 -1
  255. package/dist/kongponents299.es.js +5 -45
  256. package/dist/kongponents30.cjs +1 -1
  257. package/dist/kongponents30.es.js +1 -1
  258. package/dist/kongponents300.cjs +1 -0
  259. package/dist/kongponents300.es.js +12 -0
  260. package/dist/kongponents301.cjs +1 -1
  261. package/dist/kongponents301.es.js +9 -83
  262. package/dist/kongponents302.cjs +1 -0
  263. package/dist/kongponents302.es.js +604 -0
  264. package/dist/kongponents303.cjs +1 -1
  265. package/dist/kongponents303.es.js +70 -40
  266. package/dist/kongponents304.cjs +1 -0
  267. package/dist/kongponents304.es.js +7 -0
  268. package/dist/kongponents305.cjs +1 -1
  269. package/dist/kongponents305.es.js +19 -19
  270. package/dist/kongponents306.cjs +1 -1
  271. package/dist/kongponents306.es.js +5 -5
  272. package/dist/kongponents307.cjs +1 -0
  273. package/dist/kongponents307.es.js +20 -0
  274. package/dist/kongponents308.cjs +1 -1
  275. package/dist/kongponents308.es.js +8 -94
  276. package/dist/kongponents309.cjs +1 -0
  277. package/dist/kongponents309.es.js +8 -0
  278. package/dist/kongponents310.cjs +1 -1
  279. package/dist/kongponents310.es.js +8 -8
  280. package/dist/kongponents311.cjs +1 -1
  281. package/dist/kongponents311.es.js +7 -6
  282. package/dist/kongponents312.cjs +1 -1
  283. package/dist/kongponents312.es.js +7 -7
  284. package/dist/kongponents313.cjs +1 -1
  285. package/dist/kongponents313.es.js +7 -4
  286. package/dist/kongponents314.cjs +1 -1
  287. package/dist/kongponents314.es.js +7 -9
  288. package/dist/kongponents315.cjs +1 -1
  289. package/dist/kongponents315.es.js +124 -8
  290. package/dist/kongponents316.cjs +2 -1
  291. package/dist/kongponents316.es.js +47 -600
  292. package/dist/kongponents317.cjs +1 -1
  293. package/dist/kongponents317.es.js +8 -71
  294. package/dist/kongponents318.cjs +1 -1
  295. package/dist/kongponents318.es.js +57 -5
  296. package/dist/kongponents319.cjs +1 -1
  297. package/dist/kongponents319.es.js +65 -20
  298. package/dist/kongponents32.cjs +1 -1
  299. package/dist/kongponents32.es.js +3 -3
  300. package/dist/kongponents320.cjs +1 -1
  301. package/dist/kongponents320.es.js +4 -4
  302. package/dist/kongponents321.cjs +1 -1
  303. package/dist/kongponents321.es.js +4 -18
  304. package/dist/kongponents322.cjs +1 -1
  305. package/dist/kongponents322.es.js +20 -7
  306. package/dist/kongponents323.cjs +1 -1
  307. package/dist/kongponents323.es.js +5 -6
  308. package/dist/kongponents324.cjs +1 -1
  309. package/dist/kongponents324.es.js +96 -8
  310. package/dist/kongponents325.cjs +1 -1
  311. package/dist/kongponents325.es.js +171 -7
  312. package/dist/kongponents326.cjs +1 -1
  313. package/dist/kongponents326.es.js +5 -8
  314. package/dist/kongponents327.cjs +1 -1
  315. package/dist/kongponents327.es.js +6 -7
  316. package/dist/kongponents328.cjs +1 -1
  317. package/dist/kongponents328.es.js +5 -8
  318. package/dist/kongponents329.cjs +1 -1
  319. package/dist/kongponents329.es.js +5 -125
  320. package/dist/kongponents330.cjs +1 -2
  321. package/dist/kongponents330.es.js +68 -47
  322. package/dist/kongponents331.cjs +1 -1
  323. package/dist/kongponents331.es.js +2 -8
  324. package/dist/kongponents332.cjs +1 -1
  325. package/dist/kongponents332.es.js +86 -56
  326. package/dist/kongponents334.cjs +1 -1
  327. package/dist/kongponents334.es.js +45 -5
  328. package/dist/kongponents336.cjs +1 -1
  329. package/dist/kongponents336.es.js +2 -21
  330. package/dist/kongponents337.cjs +1 -1
  331. package/dist/kongponents337.es.js +178 -5
  332. package/dist/kongponents339.cjs +1 -1
  333. package/dist/kongponents339.es.js +63 -171
  334. package/dist/kongponents341.cjs +1 -1
  335. package/dist/kongponents341.es.js +19 -6
  336. package/dist/kongponents342.cjs +1 -1
  337. package/dist/kongponents342.es.js +5 -5
  338. package/dist/kongponents343.cjs +1 -1
  339. package/dist/kongponents343.es.js +5 -5
  340. package/dist/kongponents344.cjs +1 -1
  341. package/dist/kongponents344.es.js +120 -69
  342. package/dist/kongponents347.cjs +1 -1
  343. package/dist/kongponents347.es.js +2 -2
  344. package/dist/kongponents352.cjs +1 -1
  345. package/dist/kongponents352.es.js +4 -4
  346. package/dist/kongponents353.cjs +1 -1
  347. package/dist/kongponents353.es.js +1 -1
  348. package/dist/kongponents357.cjs +1 -1
  349. package/dist/kongponents357.es.js +3 -3
  350. package/dist/kongponents363.cjs +1 -1
  351. package/dist/kongponents363.es.js +1 -1
  352. package/dist/kongponents364.cjs +1 -1
  353. package/dist/kongponents364.es.js +1 -1
  354. package/dist/kongponents365.cjs +1 -1
  355. package/dist/kongponents365.es.js +1 -1
  356. package/dist/kongponents366.cjs +1 -1
  357. package/dist/kongponents366.es.js +1 -1
  358. package/dist/kongponents367.cjs +1 -1
  359. package/dist/kongponents367.es.js +1 -1
  360. package/dist/kongponents368.cjs +1 -1
  361. package/dist/kongponents368.es.js +1 -1
  362. package/dist/kongponents370.cjs +1 -1
  363. package/dist/kongponents370.es.js +1 -1
  364. package/dist/kongponents371.cjs +1 -1
  365. package/dist/kongponents371.es.js +3 -3
  366. package/dist/kongponents374.cjs +1 -1
  367. package/dist/kongponents374.es.js +1 -1
  368. package/dist/kongponents375.cjs +1 -1
  369. package/dist/kongponents375.es.js +1 -1
  370. package/dist/kongponents376.cjs +1 -1
  371. package/dist/kongponents376.es.js +2 -2
  372. package/dist/kongponents389.cjs +1 -1
  373. package/dist/kongponents389.es.js +1 -1
  374. package/dist/kongponents39.cjs +1 -1
  375. package/dist/kongponents39.es.js +2 -2
  376. package/dist/kongponents390.cjs +1 -1
  377. package/dist/kongponents390.es.js +1 -1
  378. package/dist/kongponents391.cjs +1 -1
  379. package/dist/kongponents391.es.js +6 -21
  380. package/dist/kongponents392.cjs +1 -1
  381. package/dist/kongponents392.es.js +21 -6
  382. package/dist/kongponents396.cjs +1 -1
  383. package/dist/kongponents396.es.js +1 -1
  384. package/dist/kongponents397.cjs +1 -1
  385. package/dist/kongponents397.es.js +11 -121
  386. package/dist/kongponents398.cjs +1 -0
  387. package/dist/kongponents398.es.js +13 -0
  388. package/dist/kongponents399.cjs +1 -1
  389. package/dist/kongponents399.es.js +13 -2
  390. package/dist/kongponents400.cjs +1 -1
  391. package/dist/kongponents400.es.js +10 -10
  392. package/dist/kongponents401.cjs +1 -1
  393. package/dist/kongponents401.es.js +18 -10
  394. package/dist/kongponents402.cjs +1 -1
  395. package/dist/kongponents402.es.js +5 -12
  396. package/dist/kongponents403.cjs +1 -1
  397. package/dist/kongponents403.es.js +54 -11
  398. package/dist/kongponents404.cjs +1 -1
  399. package/dist/kongponents404.es.js +2 -19
  400. package/dist/kongponents405.cjs +1 -1
  401. package/dist/kongponents405.es.js +8 -5
  402. package/dist/kongponents406.cjs +1 -1
  403. package/dist/kongponents406.es.js +4 -53
  404. package/dist/kongponents407.cjs +1 -1
  405. package/dist/kongponents407.es.js +12 -7
  406. package/dist/kongponents408.cjs +1 -1
  407. package/dist/kongponents408.es.js +14 -4
  408. package/dist/kongponents409.cjs +1 -1
  409. package/dist/kongponents409.es.js +3 -13
  410. package/dist/kongponents410.cjs +1 -1
  411. package/dist/kongponents410.es.js +12 -14
  412. package/dist/kongponents411.cjs +1 -1
  413. package/dist/kongponents411.es.js +9 -3
  414. package/dist/kongponents412.cjs +1 -1
  415. package/dist/kongponents412.es.js +52 -12
  416. package/dist/kongponents413.cjs +1 -1
  417. package/dist/kongponents413.es.js +57 -10
  418. package/dist/kongponents414.cjs +1 -1
  419. package/dist/kongponents414.es.js +51 -45
  420. package/dist/kongponents415.cjs +1 -1
  421. package/dist/kongponents415.es.js +27 -51
  422. package/dist/kongponents416.cjs +1 -1
  423. package/dist/kongponents416.es.js +23 -51
  424. package/dist/kongponents417.cjs +1 -1
  425. package/dist/kongponents417.es.js +66 -27
  426. package/dist/kongponents418.cjs +1 -1
  427. package/dist/kongponents418.es.js +64 -23
  428. package/dist/kongponents419.cjs +1 -1
  429. package/dist/kongponents419.es.js +45 -39
  430. package/dist/kongponents420.cjs +1 -1
  431. package/dist/kongponents420.es.js +51 -45
  432. package/dist/kongponents421.cjs +1 -1
  433. package/dist/kongponents421.es.js +31 -61
  434. package/dist/kongponents422.cjs +1 -1
  435. package/dist/kongponents422.es.js +30 -60
  436. package/dist/kongponents423.cjs +1 -1
  437. package/dist/kongponents423.es.js +24 -25
  438. package/dist/kongponents424.cjs +1 -1
  439. package/dist/kongponents424.es.js +25 -25
  440. package/dist/kongponents425.cjs +1 -1
  441. package/dist/kongponents425.es.js +68 -35
  442. package/dist/kongponents426.cjs +1 -1
  443. package/dist/kongponents426.es.js +80 -36
  444. package/dist/kongponents427.cjs +1 -1
  445. package/dist/kongponents427.es.js +64 -52
  446. package/dist/kongponents428.cjs +1 -1
  447. package/dist/kongponents428.es.js +54 -55
  448. package/dist/kongponents429.cjs +1 -1
  449. package/dist/kongponents429.es.js +41 -75
  450. package/dist/kongponents430.cjs +1 -1
  451. package/dist/kongponents430.es.js +37 -70
  452. package/dist/kongponents431.cjs +1 -1
  453. package/dist/kongponents431.es.js +27 -27
  454. package/dist/kongponents432.cjs +1 -1
  455. package/dist/kongponents432.es.js +38 -49
  456. package/dist/kongponents433.cjs +1 -1
  457. package/dist/kongponents433.es.js +37 -49
  458. package/dist/kongponents434.cjs +1 -1
  459. package/dist/kongponents434.es.js +24 -24
  460. package/dist/kongponents435.cjs +1 -1
  461. package/dist/kongponents435.es.js +31 -30
  462. package/dist/kongponents436.cjs +1 -1
  463. package/dist/kongponents436.es.js +33 -34
  464. package/dist/kongponents437.cjs +1 -1
  465. package/dist/kongponents437.es.js +24 -25
  466. package/dist/kongponents438.cjs +1 -1
  467. package/dist/kongponents438.es.js +27 -39
  468. package/dist/kongponents439.cjs +1 -1
  469. package/dist/kongponents439.es.js +34 -37
  470. package/dist/kongponents440.cjs +1 -1
  471. package/dist/kongponents440.es.js +33 -24
  472. package/dist/kongponents441.cjs +1 -1
  473. package/dist/kongponents441.es.js +26 -36
  474. package/dist/kongponents442.cjs +1 -1
  475. package/dist/kongponents442.es.js +25 -35
  476. package/dist/kongponents443.cjs +1 -1
  477. package/dist/kongponents443.es.js +70 -31
  478. package/dist/kongponents444.cjs +1 -1
  479. package/dist/kongponents444.es.js +2 -33
  480. package/dist/kongponents445.cjs +1 -1
  481. package/dist/kongponents445.es.js +11 -70
  482. package/dist/kongponents446.cjs +1 -1
  483. package/dist/kongponents446.es.js +23 -2
  484. package/dist/kongponents447.cjs +1 -1
  485. package/dist/kongponents447.es.js +19 -10
  486. package/dist/kongponents448.cjs +1 -1
  487. package/dist/kongponents448.es.js +17 -19
  488. package/dist/kongponents449.cjs +1 -1
  489. package/dist/kongponents449.es.js +612 -19
  490. package/dist/kongponents450.cjs +1 -1
  491. package/dist/kongponents450.es.js +79 -19
  492. package/dist/kongponents451.cjs +1 -1
  493. package/dist/kongponents451.es.js +12 -612
  494. package/dist/kongponents452.cjs +1 -1
  495. package/dist/kongponents452.es.js +26 -80
  496. package/dist/kongponents453.cjs +1 -1
  497. package/dist/kongponents453.es.js +12 -10
  498. package/dist/kongponents454.cjs +1 -1
  499. package/dist/kongponents454.es.js +13 -25
  500. package/dist/kongponents455.cjs +1 -1
  501. package/dist/kongponents455.es.js +16 -16
  502. package/dist/kongponents456.cjs +1 -1
  503. package/dist/kongponents456.es.js +13 -13
  504. package/dist/kongponents457.cjs +1 -1
  505. package/dist/kongponents457.es.js +23 -16
  506. package/dist/kongponents458.cjs +1 -1
  507. package/dist/kongponents458.es.js +16 -13
  508. package/dist/kongponents459.cjs +1 -1
  509. package/dist/kongponents459.es.js +2 -24
  510. package/dist/kongponents460.cjs +1 -1
  511. package/dist/kongponents460.es.js +13 -13
  512. package/dist/kongponents462.cjs +1 -1
  513. package/dist/kongponents462.es.js +2 -18
  514. package/dist/kongponents465.cjs +1 -1
  515. package/dist/kongponents465.es.js +94 -2
  516. package/dist/kongponents473.cjs +1 -1
  517. package/dist/kongponents473.es.js +1 -1
  518. package/dist/kongponents474.cjs +1 -1
  519. package/dist/kongponents474.es.js +1 -1
  520. package/dist/kongponents475.cjs +1 -1
  521. package/dist/kongponents475.es.js +1 -1
  522. package/dist/kongponents476.cjs +1 -1
  523. package/dist/kongponents476.es.js +1 -1
  524. package/dist/kongponents480.cjs +1 -1
  525. package/dist/kongponents480.es.js +1 -1
  526. package/dist/kongponents481.cjs +1 -1
  527. package/dist/kongponents481.es.js +1 -1
  528. package/dist/kongponents483.cjs +1 -1
  529. package/dist/kongponents483.es.js +1 -1
  530. package/dist/kongponents486.cjs +1 -1
  531. package/dist/kongponents486.es.js +8 -67
  532. package/dist/kongponents487.cjs +1 -1
  533. package/dist/kongponents487.es.js +11 -31
  534. package/dist/kongponents488.cjs +1 -1
  535. package/dist/kongponents488.es.js +14 -11
  536. package/dist/kongponents489.cjs +1 -1
  537. package/dist/kongponents489.es.js +14 -121
  538. package/dist/kongponents490.cjs +1 -1
  539. package/dist/kongponents490.es.js +65 -84
  540. package/dist/kongponents491.cjs +1 -1
  541. package/dist/kongponents491.es.js +31 -8
  542. package/dist/kongponents492.cjs +1 -1
  543. package/dist/kongponents492.es.js +11 -11
  544. package/dist/kongponents493.cjs +1 -1
  545. package/dist/kongponents493.es.js +121 -14
  546. package/dist/kongponents494.cjs +1 -1
  547. package/dist/kongponents494.es.js +86 -14
  548. package/dist/kongponents495.cjs +1 -1
  549. package/dist/kongponents495.es.js +5 -5
  550. package/dist/kongponents496.cjs +1 -1
  551. package/dist/kongponents496.es.js +4 -4
  552. package/dist/kongponents497.cjs +1 -1
  553. package/dist/kongponents497.es.js +10 -5
  554. package/dist/kongponents498.cjs +1 -1
  555. package/dist/kongponents498.es.js +7 -10
  556. package/dist/kongponents499.cjs +1 -1
  557. package/dist/kongponents499.es.js +5 -6
  558. package/dist/kongponents500.cjs +1 -1
  559. package/dist/kongponents500.es.js +5 -6
  560. package/dist/kongponents501.cjs +1 -1
  561. package/dist/kongponents501.es.js +4 -4
  562. package/dist/kongponents502.cjs +1 -1
  563. package/dist/kongponents502.es.js +1 -1
  564. package/dist/kongponents504.cjs +1 -1
  565. package/dist/kongponents504.es.js +4 -4
  566. package/dist/kongponents505.cjs +1 -1
  567. package/dist/kongponents505.es.js +4 -4
  568. package/dist/kongponents506.cjs +1 -1
  569. package/dist/kongponents506.es.js +4 -4
  570. package/dist/kongponents507.cjs +1 -1
  571. package/dist/kongponents507.es.js +3 -3
  572. package/dist/kongponents509.es.js +2 -2
  573. package/dist/kongponents510.cjs +1 -1
  574. package/dist/kongponents510.es.js +19 -2
  575. package/dist/kongponents511.cjs +1 -1
  576. package/dist/kongponents511.es.js +2 -19
  577. package/dist/kongponents512.cjs +1 -1
  578. package/dist/kongponents512.es.js +22 -2
  579. package/dist/kongponents513.cjs +1 -1
  580. package/dist/kongponents513.es.js +2 -22
  581. package/dist/kongponents514.cjs +1 -1
  582. package/dist/kongponents514.es.js +16 -2
  583. package/dist/kongponents515.cjs +1 -1
  584. package/dist/kongponents515.es.js +2 -16
  585. package/dist/kongponents516.cjs +1 -1
  586. package/dist/kongponents516.es.js +23 -2
  587. package/dist/kongponents517.cjs +1 -1
  588. package/dist/kongponents517.es.js +18 -18
  589. package/dist/kongponents518.cjs +1 -1
  590. package/dist/kongponents518.es.js +21 -18
  591. package/dist/kongponents519.cjs +1 -1
  592. package/dist/kongponents519.es.js +18 -21
  593. package/dist/kongponents520.cjs +1 -1
  594. package/dist/kongponents520.es.js +29 -20
  595. package/dist/kongponents521.cjs +1 -1
  596. package/dist/kongponents521.es.js +13 -29
  597. package/dist/kongponents522.cjs +1 -1
  598. package/dist/kongponents522.es.js +64 -14
  599. package/dist/kongponents523.cjs +1 -1
  600. package/dist/kongponents523.es.js +2 -66
  601. package/dist/kongponents524.cjs +1 -1
  602. package/dist/kongponents524.es.js +2 -2
  603. package/dist/kongponents525.cjs +1 -1
  604. package/dist/kongponents525.es.js +2 -2
  605. package/dist/kongponents526.cjs +1 -1
  606. package/dist/kongponents526.es.js +2 -2
  607. package/dist/kongponents527.cjs +1 -1
  608. package/dist/kongponents527.es.js +2 -2
  609. package/dist/kongponents528.cjs +1 -1
  610. package/dist/kongponents528.es.js +30 -2
  611. package/dist/kongponents529.cjs +1 -1
  612. package/dist/kongponents529.es.js +2 -30
  613. package/dist/kongponents537.cjs +1 -1
  614. package/dist/kongponents537.es.js +1 -1
  615. package/dist/kongponents548.cjs +1 -1
  616. package/dist/kongponents548.es.js +1 -1
  617. package/dist/kongponents549.es.js +2 -2
  618. package/dist/kongponents550.es.js +2 -2
  619. package/dist/kongponents554.cjs +1 -1
  620. package/dist/kongponents554.es.js +3 -3
  621. package/dist/kongponents555.cjs +1 -1
  622. package/dist/kongponents555.es.js +3 -3
  623. package/dist/kongponents558.cjs +1 -1
  624. package/dist/kongponents558.es.js +5 -5
  625. package/dist/kongponents559.cjs +1 -1
  626. package/dist/kongponents559.es.js +5 -5
  627. package/dist/kongponents565.cjs +1 -1
  628. package/dist/kongponents565.es.js +1 -1
  629. package/dist/kongponents567.cjs +1 -1
  630. package/dist/kongponents567.es.js +1 -1
  631. package/dist/kongponents568.cjs +1 -1
  632. package/dist/kongponents568.es.js +1 -1
  633. package/dist/kongponents569.cjs +1 -1
  634. package/dist/kongponents569.es.js +1 -1
  635. package/dist/kongponents81.cjs +1 -1
  636. package/dist/kongponents81.es.js +1 -1
  637. package/dist/kongponents92.cjs +1 -1
  638. package/dist/kongponents92.es.js +1 -1
  639. package/dist/kongponents96.cjs +1 -1
  640. package/dist/kongponents96.es.js +1 -1
  641. package/dist/kongponents98.cjs +1 -1
  642. package/dist/kongponents98.es.js +6 -6
  643. package/package.json +1 -1
  644. package/dist/kongponents190.cjs +0 -1
  645. package/dist/kongponents190.es.js +0 -7
  646. package/dist/kongponents233.cjs +0 -1
  647. package/dist/kongponents233.es.js +0 -4
  648. package/dist/kongponents234.cjs +0 -1
  649. package/dist/kongponents234.es.js +0 -8
  650. package/dist/kongponents239.cjs +0 -1
  651. package/dist/kongponents239.es.js +0 -57
  652. package/dist/kongponents241.cjs +0 -1
  653. package/dist/kongponents241.es.js +0 -184
  654. package/dist/kongponents333.cjs +0 -1
  655. package/dist/kongponents333.es.js +0 -67
  656. package/dist/kongponents335.cjs +0 -1
  657. package/dist/kongponents335.es.js +0 -6
  658. package/dist/kongponents338.cjs +0 -1
  659. package/dist/kongponents338.es.js +0 -99
  660. package/dist/kongponents340.cjs +0 -1
  661. package/dist/kongponents340.es.js +0 -7
  662. package/dist/kongponents345.cjs +0 -1
  663. package/dist/kongponents345.es.js +0 -4
  664. package/dist/kongponents346.es.js +0 -7
  665. package/dist/kongponents466.cjs +0 -1
  666. package/dist/kongponents466.es.js +0 -4
  667. /package/dist/{kongponents223.cjs → kongponents224.cjs} +0 -0
  668. /package/dist/{kongponents223.es.js → kongponents224.es.js} +0 -0
  669. /package/dist/{kongponents225.cjs → kongponents226.cjs} +0 -0
  670. /package/dist/{kongponents225.es.js → kongponents226.es.js} +0 -0
  671. /package/dist/{kongponents229.cjs → kongponents230.cjs} +0 -0
  672. /package/dist/{kongponents229.es.js → kongponents230.es.js} +0 -0
@@ -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("./kongponents185.cjs"),st=require("./kongponents192.cjs"),ut=require("./kongponents61.cjs"),ct=require("./kongponents49.cjs"),he=require("./kongponents42.cjs"),dt=require("./kongponents201.cjs"),yt=require("./kongponents181.cjs"),ft=require("./kongponents161.cjs"),vt=require("./kongponents186.cjs"),Se=require("./kongponents202.cjs"),bt=require("./kongponents182.cjs"),kt=require("./kongponents46.cjs"),mt=require("./kongponents203.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("./kongponents184.cjs"),st=require("./kongponents212.cjs"),ut=require("./kongponents61.cjs"),ct=require("./kongponents49.cjs"),he=require("./kongponents42.cjs"),dt=require("./kongponents213.cjs"),yt=require("./kongponents181.cjs"),ft=require("./kongponents161.cjs"),vt=require("./kongponents187.cjs"),Se=require("./kongponents200.cjs"),bt=require("./kongponents182.cjs"),kt=require("./kongponents46.cjs"),mt=require("./kongponents214.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 "./kongponents185.es.js";
14
- import qt from "./kongponents192.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 "./kongponents184.es.js";
14
+ import qt from "./kongponents212.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 "./kongponents201.es.js";
18
+ import Gt from "./kongponents213.es.js";
19
19
  import { getInitialPageSize as Jt } from "./kongponents181.es.js";
20
20
  import { getUniqueStringId as Yt } from "./kongponents161.es.js";
21
- import { getScrollbarSize as Qt } from "./kongponents186.es.js";
22
- import { useElementSize as _t, useResizeObserver as ea } from "./kongponents202.es.js";
21
+ import { getScrollbarSize as Qt } from "./kongponents187.es.js";
22
+ import { useElementSize as _t, useResizeObserver as ea } from "./kongponents200.es.js";
23
23
  import { normalizeSize as ta } from "./kongponents182.es.js";
24
24
  import aa from "./kongponents46.es.js";
25
- import oa from "./kongponents203.es.js";
25
+ import oa from "./kongponents214.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("./kongponents208.cjs"),N=require("./kongponents209.cjs"),A=require("./kongponents185.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("./kongponents208.cjs"),N=require("./kongponents209.cjs"),A=require("./kongponents184.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
2
  import z from "./kongponents208.es.js";
3
3
  import H from "./kongponents209.es.js";
4
- import { KUI_ANIMATION_DURATION_20 as J } from "./kongponents185.es.js";
4
+ import { KUI_ANIMATION_DURATION_20 as J } from "./kongponents184.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 u=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class d{commands;keyMap;boundTriggerShortcuts;constructor(r,o){this.commands=o,this.keyMap=Object.fromEntries(Object.entries(r).map(([i,s])=>[i.toLowerCase(),s])),this.boundTriggerShortcuts=this.triggerShortcuts.bind(this)}registerListener(){document?.addEventListener("keydown",this.boundTriggerShortcuts)}unRegisterListener(){document?.removeEventListener("keydown",this.boundTriggerShortcuts)}triggerShortcuts(r){l(r,this.keyMap,this.commands)}}function l(t,r,o){if(!t.code)return;const i=a(t.code),s=[t.ctrlKey?"ctrl":"",t.shiftKey?"shift":"",t.altKey?"alt":"",i].filter(c=>c!=="").join("+"),n=r[s];if(!n)return;const e=o[n];e.isAllowedContext&&!e.isAllowedContext(t)||(e.shouldPreventDefaultAction&&t.preventDefault(),!(e.isDisabled&&e.isDisabled())&&e.trigger(t))}function a(t){return!t||u.includes(t)?"":t.replace(/^Key/,"").toLowerCase()}exports.ShortcutManager=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A=require("vue"),f=require("swrv"),i={VALIDATING:"VALIDATING",VALIDATING_HAS_DATA:"VALIDATING_HAS_DATA",PENDING:"PENDING",SUCCESS:"SUCCESS",SUCCESS_HAS_DATA:"SUCCESS_HAS_DATA",ERROR:"ERROR",STALE_IF_ERROR:"STALE_IF_ERROR"};function D(){return{useRequest:(e,u,a)=>{const{data:t,error:n,isValidating:S,isLoading:o,mutate:l}=f(e,u,{revalidateDebounce:500,dedupingInterval:100,...a});return{data:A.computed(()=>t.value?.data),response:t,error:n,isValidating:S,isLoading:o,revalidate:l}},useDebounce:(e,u=300)=>{let a;const t=n=>async(...S)=>{clearTimeout(a),n>0?await new Promise(o=>{a=setTimeout(async()=>{await e(...S),o()},n)}):await e(...S)};return{debouncedFn:t(u),generateDebouncedFn:t}},clientSideSorter:(e,u,a,t)=>{let n=null;const S=(l,c)=>typeof c=="number"&&!Number.isNaN(l)&&!Number.isNaN(c)?l-c:0,o=(l,c)=>l.localeCompare(c);return e!==u?(n=(l,c)=>{const s=r=>r==null?"":typeof r=="number"?r:Array.isArray(r)&&r.length&&typeof r[0]=="number"?r[0]:String(r),d=s(l[e]),v=s(c[e]);return typeof d==="number"?S(d,v):o(d,v)},t.sort(n),u=e,a="ascending"):(t.reverse(),a==="descending"||a==="desc"?a="ascending":a="descending"),{previousKey:u,sortOrder:a}},useSwrvState:(e,u,a)=>{const t=A.ref(i.PENDING),n=A.ref(!1);return A.watchEffect(()=>{if(n.value=e.value&&!!(Object.keys(e.value)?.length||e.value.data?.length||e.value.data?.data?.length||!e.value.data?.data&&typeof e.value.data=="object"&&Object.keys(e.value?.data).length),e.value&&n.value&&a.value){t.value=i.VALIDATING_HAS_DATA;return}if(e.value&&a.value){t.value=i.VALIDATING;return}if(e.value&&u.value){t.value=i.STALE_IF_ERROR;return}if(e.value===void 0&&!u.value){t.value=i.PENDING;return}if(e.value&&!u.value&&n.value){t.value=i.SUCCESS_HAS_DATA;return}if(e.value&&!u.value){t.value=i.SUCCESS;return}e.value===void 0&&u&&(t.value=i.ERROR)}),{hasData:n,state:t,swrvState:i}},cloneDeep:e=>{if(e)return JSON.parse(JSON.stringify(e))},stripRequiredLabel:(e,u)=>!u||!e?e||"":/( )?\*$/gi.test(e)?e.replace(/\*$/gi,"").trim():e}}exports.default=D;
@@ -1,38 +1,100 @@
1
- const u = ["ControlLeft", "ControlRight", "ShiftLeft", "ShiftRight", "AltLeft"];
2
- class l {
3
- commands;
4
- keyMap;
5
- boundTriggerShortcuts;
6
- constructor(r, o) {
7
- this.commands = o, this.keyMap = Object.fromEntries(Object.entries(r).map(([i, s]) => [i.toLowerCase(), s])), this.boundTriggerShortcuts = this.triggerShortcuts.bind(this);
8
- }
9
- registerListener() {
10
- document?.addEventListener("keydown", this.boundTriggerShortcuts);
11
- }
12
- unRegisterListener() {
13
- document?.removeEventListener("keydown", this.boundTriggerShortcuts);
14
- }
15
- triggerShortcuts(r) {
16
- d(r, this.keyMap, this.commands);
17
- }
18
- }
19
- function d(t, r, o) {
20
- if (!t.code)
21
- return;
22
- const i = h(t.code), s = [
23
- t.ctrlKey ? "ctrl" : "",
24
- t.shiftKey ? "shift" : "",
25
- t.altKey ? "alt" : "",
26
- i
27
- ].filter((c) => c !== "").join("+"), n = r[s];
28
- if (!n)
29
- return;
30
- const e = o[n];
31
- e.isAllowedContext && !e.isAllowedContext(t) || (e.shouldPreventDefaultAction && t.preventDefault(), !(e.isDisabled && e.isDisabled()) && e.trigger(t));
32
- }
33
- function h(t) {
34
- return !t || u.includes(t) ? "" : t.replace(/^Key/, "").toLowerCase();
1
+ import { computed as s, ref as v, watchEffect as D } from "vue";
2
+ import R from "swrv";
3
+ const i = {
4
+ VALIDATING: "VALIDATING",
5
+ VALIDATING_HAS_DATA: "VALIDATING_HAS_DATA",
6
+ PENDING: "PENDING",
7
+ SUCCESS: "SUCCESS",
8
+ SUCCESS_HAS_DATA: "SUCCESS_HAS_DATA",
9
+ ERROR: "ERROR",
10
+ STALE_IF_ERROR: "STALE_IF_ERROR"
11
+ };
12
+ function b() {
13
+ return {
14
+ useRequest: (e, u, a) => {
15
+ const {
16
+ data: t,
17
+ error: n,
18
+ isValidating: S,
19
+ isLoading: o,
20
+ mutate: c
21
+ } = R(e, u, {
22
+ revalidateDebounce: 500,
23
+ dedupingInterval: 100,
24
+ ...a
25
+ });
26
+ return {
27
+ data: s(() => t.value?.data),
28
+ response: t,
29
+ error: n,
30
+ isValidating: S,
31
+ isLoading: o,
32
+ revalidate: c
33
+ };
34
+ },
35
+ useDebounce: (e, u = 300) => {
36
+ let a;
37
+ const t = (n) => async (...S) => {
38
+ clearTimeout(a), n > 0 ? await new Promise((o) => {
39
+ a = setTimeout(async () => {
40
+ await e(...S), o();
41
+ }, n);
42
+ }) : await e(...S);
43
+ };
44
+ return {
45
+ debouncedFn: t(u),
46
+ generateDebouncedFn: t
47
+ };
48
+ },
49
+ clientSideSorter: (e, u, a, t) => {
50
+ let n = null;
51
+ const S = (c, l) => typeof l == "number" && !Number.isNaN(c) && !Number.isNaN(l) ? c - l : 0, o = (c, l) => c.localeCompare(l);
52
+ return e !== u ? (n = (c, l) => {
53
+ const f = (r) => r == null ? "" : typeof r == "number" ? r : Array.isArray(r) && r.length && typeof r[0] == "number" ? r[0] : String(r), A = f(c[e]), d = f(l[e]);
54
+ return typeof A === "number" ? S(A, d) : o(A, d);
55
+ }, t.sort(n), u = e, a = "ascending") : (t.reverse(), a === "descending" || a === "desc" ? a = "ascending" : a = "descending"), { previousKey: u, sortOrder: a };
56
+ },
57
+ useSwrvState: (e, u, a) => {
58
+ const t = v(i.PENDING), n = v(!1);
59
+ return D(() => {
60
+ if (n.value = e.value && !!(Object.keys(e.value)?.length || e.value.data?.length || e.value.data?.data?.length || !e.value.data?.data && typeof e.value.data == "object" && Object.keys(e.value?.data).length), e.value && n.value && a.value) {
61
+ t.value = i.VALIDATING_HAS_DATA;
62
+ return;
63
+ }
64
+ if (e.value && a.value) {
65
+ t.value = i.VALIDATING;
66
+ return;
67
+ }
68
+ if (e.value && u.value) {
69
+ t.value = i.STALE_IF_ERROR;
70
+ return;
71
+ }
72
+ if (e.value === void 0 && !u.value) {
73
+ t.value = i.PENDING;
74
+ return;
75
+ }
76
+ if (e.value && !u.value && n.value) {
77
+ t.value = i.SUCCESS_HAS_DATA;
78
+ return;
79
+ }
80
+ if (e.value && !u.value) {
81
+ t.value = i.SUCCESS;
82
+ return;
83
+ }
84
+ e.value === void 0 && u && (t.value = i.ERROR);
85
+ }), {
86
+ hasData: n,
87
+ state: t,
88
+ swrvState: i
89
+ };
90
+ },
91
+ cloneDeep: (e) => {
92
+ if (e)
93
+ return JSON.parse(JSON.stringify(e));
94
+ },
95
+ stripRequiredLabel: (e, u) => !u || !e ? e || "" : /( )?\*$/gi.test(e) ? e.replace(/\*$/gi, "").trim() : e
96
+ };
35
97
  }
36
98
  export {
37
- l as ShortcutManager
99
+ b as default
38
100
  };
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./kongponents234.cjs");function f(t){const n=[0];for(let r=0;r<t.length;r++)t[r]===`
2
- `&&n.push(r+1);return n}function o(t,n){let r=0,e=t.length-1;for(;r<e;){const i=Math.floor((r+e+1)/2);t[i]&&t[i]<=n?r=i:e=i-1}return r+1}function d(t,n,r){if(!t||!n)return[];const e=[];let i=0;for(;;){const s=t.indexOf(n,i);if(s===-1)break;const l=o(r,s);e.push(l),i=(l<r.length?r[l]:t.length)??0}return e}function x(t,n,r){if(!t||!n)return[];const e=new RegExp(n,"sg"),i=[];let s;for(;(s=e.exec(t))!==null;){const l=s.index,c=s.index+s[0].length-1,a=o(r,l),M=o(r,c);for(let h=a;h<=M;h++)i[i.length-1]!==h&&i.push(h)}return i}function N(t,n,r,e=f(t)){return r?x(t,n,e):d(t,n,e)}const g=t=>`<mark class="matched-term">${t}</mark>`,p=/[<&]/;function u(t){return t.replace(/[&<]/g,n=>n==="&"?"&amp;":"&lt;")}function b(t,n=p,r=u){return n.test(t)?r(t):t}function I(t,n,r){if(!t||!n)return"";const e=!p.test(t);let i;try{i=new RegExp(`(?:${r?n:L.default(n)})+`,"sgi")}catch{return e?t:u(t)}let s="",l=0,c;for(;(c=i.exec(t))!==null;){const a=c.index;s+=e?t.slice(l,a):u(t.slice(l,a)),s+=g(e?c[0]:u(c[0])),l=a+c[0].length}return s+=e?t.slice(l):u(t.slice(l)),s}const m=/^\d+(?:-\d+)?(?:,\d+(?:-\d+)?)*$/;function R(t,n){if(!m.test(t))throw new Error("Invalid line number expression.");const r=t.split(",").map(e=>{const[i,s]=e.split("-").map(Number);return s==null?i:[i,s]}).filter(e=>e!==void 0);return E(r,n)}function E(t,n){const r=t.flatMap(e=>{if(typeof e=="number")return e<1||e>n?[]:e;let[i,s]=e[0]<e[1]?e:[e[1],e[0]];return i=Math.max(1,i),s=Math.min(n,s),Array.from({length:s-i+1},(l,c)=>c+i)}).sort((e,i)=>e-i);return Array.from(new Set(r))}function w(t,n){return typeof t=="string"?R(t,n):E(t,n)}exports.LINE_NUMBER_EXPRESSION_REGEX=m;exports.buildLineOffsets=f;exports.escapeHTMLIfNeeded=b;exports.escapeInnerHTML=u;exports.getMatchingLineNumbers=N;exports.highlightMatchingChars=I;exports.normalizeHighlightedLines=w;exports.wrapMark=g;
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,100 +1,22 @@
1
- import g from "./kongponents234.es.js";
2
- function E(t) {
3
- const e = [0];
4
- for (let r = 0; r < t.length; r++)
5
- t[r] === `
6
- ` && e.push(r + 1);
7
- return e;
8
- }
9
- function a(t, e) {
10
- let r = 0, n = t.length - 1;
11
- for (; r < n; ) {
12
- const i = Math.floor((r + n + 1) / 2);
13
- t[i] && t[i] <= e ? r = i : n = i - 1;
14
- }
15
- return r + 1;
16
- }
17
- function x(t, e, r) {
18
- if (!t || !e)
19
- return [];
20
- const n = [];
21
- let i = 0;
22
- for (; ; ) {
23
- const s = t.indexOf(e, i);
24
- if (s === -1) break;
25
- const l = a(r, s);
26
- n.push(l), i = (l < r.length ? r[l] : t.length) ?? 0;
27
- }
28
- return n;
29
- }
30
- function L(t, e, r) {
31
- if (!t || !e)
32
- return [];
33
- const n = new RegExp(e, "sg"), i = [];
34
- let s;
35
- for (; (s = n.exec(t)) !== null; ) {
36
- const l = s.index, c = s.index + s[0].length - 1, u = a(r, l), m = a(r, c);
37
- for (let h = u; h <= m; h++)
38
- i[i.length - 1] !== h && i.push(h);
39
- }
40
- return i;
41
- }
42
- function w(t, e, r, n = E(t)) {
43
- return r ? L(t, e, n) : x(t, e, n);
44
- }
45
- const M = (t) => `<mark class="matched-term">${t}</mark>`, f = /[<&]/;
46
- function o(t) {
47
- return t.replace(/[&<]/g, (e) => e === "&" ? "&amp;" : "&lt;");
48
- }
49
- function R(t, e = f, r = o) {
50
- return e.test(t) ? r(t) : t;
51
- }
52
- function I(t, e, r) {
53
- if (!t || !e)
54
- return "";
55
- const n = !f.test(t);
56
- let i;
57
- try {
58
- i = new RegExp(`(?:${r ? e : g(e)})+`, "sgi");
59
- } catch {
60
- return n ? t : o(t);
61
- }
62
- let s = "", l = 0, c;
63
- for (; (c = i.exec(t)) !== null; ) {
64
- const u = c.index;
65
- s += n ? t.slice(l, u) : o(t.slice(l, u)), s += M(n ? c[0] : o(c[0])), l = u + c[0].length;
66
- }
67
- return s += n ? t.slice(l) : o(t.slice(l)), s;
68
- }
69
- const b = /^\d+(?:-\d+)?(?:,\d+(?:-\d+)?)*$/;
70
- function d(t, e) {
71
- if (!b.test(t))
72
- throw new Error("Invalid line number expression.");
73
- const r = t.split(",").map((n) => {
74
- const [i, s] = n.split("-").map(Number);
75
- return s == null ? i : [i, s];
76
- }).filter((n) => n !== void 0);
77
- return p(r, e);
78
- }
79
- function p(t, e) {
80
- const r = t.flatMap((n) => {
81
- if (typeof n == "number")
82
- return n < 1 || n > e ? [] : n;
83
- let [i, s] = n[0] < n[1] ? n : [n[1], n[0]];
84
- return i = Math.max(1, i), s = Math.min(e, s), Array.from({ length: s - i + 1 }, (l, c) => c + i);
85
- }).sort((n, i) => n - i);
86
- return Array.from(new Set(r));
87
- }
88
- function k(t, e) {
89
- return typeof t == "string" ? d(t, e) : p(t, e);
90
- }
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";
91
2
  export {
92
- b as LINE_NUMBER_EXPRESSION_REGEX,
93
- E as buildLineOffsets,
94
- R as escapeHTMLIfNeeded,
95
- o as escapeInnerHTML,
96
- w as getMatchingLineNumbers,
97
- I as highlightMatchingChars,
98
- k as normalizeHighlightedLines,
99
- M as wrapMark
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
100
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 u=["ControlLeft","ControlRight","ShiftLeft","ShiftRight","AltLeft"];class d{commands;keyMap;boundTriggerShortcuts;constructor(r,o){this.commands=o,this.keyMap=Object.fromEntries(Object.entries(r).map(([i,s])=>[i.toLowerCase(),s])),this.boundTriggerShortcuts=this.triggerShortcuts.bind(this)}registerListener(){document?.addEventListener("keydown",this.boundTriggerShortcuts)}unRegisterListener(){document?.removeEventListener("keydown",this.boundTriggerShortcuts)}triggerShortcuts(r){l(r,this.keyMap,this.commands)}}function l(t,r,o){if(!t.code)return;const i=a(t.code),s=[t.ctrlKey?"ctrl":"",t.shiftKey?"shift":"",t.altKey?"alt":"",i].filter(c=>c!=="").join("+"),n=r[s];if(!n)return;const e=o[n];e.isAllowedContext&&!e.isAllowedContext(t)||(e.shouldPreventDefaultAction&&t.preventDefault(),!(e.isDisabled&&e.isDisabled())&&e.trigger(t))}function a(t){return!t||u.includes(t)?"":t.replace(/^Key/,"").toLowerCase()}exports.ShortcutManager=d;
@@ -1,22 +1,38 @@
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
+ const u = ["ControlLeft", "ControlRight", "ShiftLeft", "ShiftRight", "AltLeft"];
2
+ class l {
3
+ commands;
4
+ keyMap;
5
+ boundTriggerShortcuts;
6
+ constructor(r, o) {
7
+ this.commands = o, this.keyMap = Object.fromEntries(Object.entries(r).map(([i, s]) => [i.toLowerCase(), s])), this.boundTriggerShortcuts = this.triggerShortcuts.bind(this);
8
+ }
9
+ registerListener() {
10
+ document?.addEventListener("keydown", this.boundTriggerShortcuts);
11
+ }
12
+ unRegisterListener() {
13
+ document?.removeEventListener("keydown", this.boundTriggerShortcuts);
14
+ }
15
+ triggerShortcuts(r) {
16
+ d(r, this.keyMap, this.commands);
17
+ }
18
+ }
19
+ function d(t, r, o) {
20
+ if (!t.code)
21
+ return;
22
+ const i = h(t.code), s = [
23
+ t.ctrlKey ? "ctrl" : "",
24
+ t.shiftKey ? "shift" : "",
25
+ t.altKey ? "alt" : "",
26
+ i
27
+ ].filter((c) => c !== "").join("+"), n = r[s];
28
+ if (!n)
29
+ return;
30
+ const e = o[n];
31
+ e.isAllowedContext && !e.isAllowedContext(t) || (e.shouldPreventDefaultAction && t.preventDefault(), !(e.isDisabled && e.isDisabled()) && e.trigger(t));
32
+ }
33
+ function h(t) {
34
+ return !t || u.includes(t) ? "" : t.replace(/^Key/, "").toLowerCase();
35
+ }
2
36
  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
37
+ l as ShortcutManager
22
38
  };
@@ -1 +1,2 @@
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.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./kongponents219.cjs");function f(t){const n=[0];for(let r=0;r<t.length;r++)t[r]===`
2
+ `&&n.push(r+1);return n}function o(t,n){let r=0,e=t.length-1;for(;r<e;){const i=Math.floor((r+e+1)/2);t[i]&&t[i]<=n?r=i:e=i-1}return r+1}function d(t,n,r){if(!t||!n)return[];const e=[];let i=0;for(;;){const s=t.indexOf(n,i);if(s===-1)break;const l=o(r,s);e.push(l),i=(l<r.length?r[l]:t.length)??0}return e}function x(t,n,r){if(!t||!n)return[];const e=new RegExp(n,"sg"),i=[];let s;for(;(s=e.exec(t))!==null;){const l=s.index,c=s.index+s[0].length-1,a=o(r,l),M=o(r,c);for(let h=a;h<=M;h++)i[i.length-1]!==h&&i.push(h)}return i}function N(t,n,r,e=f(t)){return r?x(t,n,e):d(t,n,e)}const g=t=>`<mark class="matched-term">${t}</mark>`,p=/[<&]/;function u(t){return t.replace(/[&<]/g,n=>n==="&"?"&amp;":"&lt;")}function b(t,n=p,r=u){return n.test(t)?r(t):t}function I(t,n,r){if(!t||!n)return"";const e=!p.test(t);let i;try{i=new RegExp(`(?:${r?n:L.default(n)})+`,"sgi")}catch{return e?t:u(t)}let s="",l=0,c;for(;(c=i.exec(t))!==null;){const a=c.index;s+=e?t.slice(l,a):u(t.slice(l,a)),s+=g(e?c[0]:u(c[0])),l=a+c[0].length}return s+=e?t.slice(l):u(t.slice(l)),s}const m=/^\d+(?:-\d+)?(?:,\d+(?:-\d+)?)*$/;function R(t,n){if(!m.test(t))throw new Error("Invalid line number expression.");const r=t.split(",").map(e=>{const[i,s]=e.split("-").map(Number);return s==null?i:[i,s]}).filter(e=>e!==void 0);return E(r,n)}function E(t,n){const r=t.flatMap(e=>{if(typeof e=="number")return e<1||e>n?[]:e;let[i,s]=e[0]<e[1]?e:[e[1],e[0]];return i=Math.max(1,i),s=Math.min(n,s),Array.from({length:s-i+1},(l,c)=>c+i)}).sort((e,i)=>e-i);return Array.from(new Set(r))}function w(t,n){return typeof t=="string"?R(t,n):E(t,n)}exports.LINE_NUMBER_EXPRESSION_REGEX=m;exports.buildLineOffsets=f;exports.escapeHTMLIfNeeded=b;exports.escapeInnerHTML=u;exports.getMatchingLineNumbers=N;exports.highlightMatchingChars=I;exports.normalizeHighlightedLines=w;exports.wrapMark=g;