@nubisco/ui 5.19.1 → 5.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/dist/{AiLabel-BFrehX_F.js → AiLabel-BKyoadhO.js} +1 -1
  2. package/dist/{AiLabel-kmL1-Hdo.cjs → AiLabel-DRx9pIMA.cjs} +1 -1
  3. package/dist/BarChart-D43kElHn.cjs +1 -0
  4. package/dist/BarChart-vpdxtX1H.js +294 -0
  5. package/dist/{Blueprint-DIrWXKml.cjs → Blueprint-BaTB7N_f.cjs} +1 -1
  6. package/dist/{Blueprint-CB5a7H5o.js → Blueprint-GvbvIrUB.js} +2 -2
  7. package/dist/{BlueprintCard-DhnoClRB.cjs → BlueprintCard-BS3PXYdC.cjs} +1 -1
  8. package/dist/{BlueprintCard-BmuGjOCn.js → BlueprintCard-lr2vhE8j.js} +1 -1
  9. package/dist/{Checkbox-CZVNZ2pn.cjs → Checkbox-BU9auHYV.cjs} +1 -1
  10. package/dist/{Checkbox-CXlovpPs.js → Checkbox-D_Gd5z5o.js} +1 -1
  11. package/dist/{CheckboxGroup-AQ6XgVPU.js → CheckboxGroup-BcgIYz9T.js} +3 -3
  12. package/dist/{CheckboxGroup-BuvjRAeC.cjs → CheckboxGroup-CPbEEem5.cjs} +1 -1
  13. package/dist/{ColorStrip-D4vNVSeW.cjs → ColorStrip-CFpoGu3-.cjs} +1 -1
  14. package/dist/{ColorStrip-Dknkw-RX.js → ColorStrip-NwjQnLcB.js} +2 -2
  15. package/dist/{Confirm-Dh1H2PMh.js → Confirm-Auq-9DpN.js} +3 -3
  16. package/dist/{Confirm-ue689l-w.cjs → Confirm-DtxCYbRy.cjs} +1 -1
  17. package/dist/CopyButton-BfjJRwj9.cjs +1 -0
  18. package/dist/CopyButton-CqrXMntq.js +65 -0
  19. package/dist/DataTable-CVIaedVs.cjs +1 -0
  20. package/dist/DataTable-eXsolKwX.js +412 -0
  21. package/dist/DatePicker-Bf-H59iv.cjs +1 -0
  22. package/dist/{DatePicker-DMiiGKYY.js → DatePicker-Dpe3oZUB.js} +116 -89
  23. package/dist/{Form-WtS-IVIs.cjs → Form-6Q-UfH77.cjs} +1 -1
  24. package/dist/{Form-DJ1Hhwnm.js → Form-BvmiAnWD.js} +1 -1
  25. package/dist/{GanttChart-CwCH8pby.js → GanttChart-C4rwEpeE.js} +3 -3
  26. package/dist/{GanttChart-BJ_6YCza.cjs → GanttChart-DZsawOGg.cjs} +1 -1
  27. package/dist/{ImageCropper-BfGyTTY5.cjs → ImageCropper-BIdQmSmG.cjs} +1 -1
  28. package/dist/{ImageCropper-Ds5Zq1J0.js → ImageCropper-D_IGt9rj.js} +2 -2
  29. package/dist/{InlineLoading-B2L_asnZ.cjs → InlineLoading-iZLgELpG.cjs} +1 -1
  30. package/dist/{InlineLoading-DQzKEw-L.js → InlineLoading-xvKhPBaV.js} +1 -1
  31. package/dist/{InterpolationChart-CSEYS5aB.js → InterpolationChart-BCHoGcM7.js} +3 -3
  32. package/dist/{InterpolationChart-BXS1n0dY.cjs → InterpolationChart-DKNJzd67.cjs} +1 -1
  33. package/dist/{LineChart-DG_ows6r.js → LineChart-ByG1jC-D.js} +29 -25
  34. package/dist/LineChart-Dt-NlGJs.cjs +1 -0
  35. package/dist/{Modal-BxSP1eyD.js → Modal-ByjVye2a.js} +1 -1
  36. package/dist/{Modal-sGlC__uQ.cjs → Modal-oT09Tx3v.cjs} +1 -1
  37. package/dist/{NotificationCenter-Br-YtY5w.js → NotificationCenter-CzMc-eOd.js} +4 -4
  38. package/dist/{NotificationCenter-BpUiKPsp.cjs → NotificationCenter-JXVpNYsI.cjs} +1 -1
  39. package/dist/{NumberInput-DWf2LMGN.js → NumberInput-CGTrgj8q.js} +2 -2
  40. package/dist/{NumberInput-1taaS5G3.cjs → NumberInput-CwbDxpTO.cjs} +1 -1
  41. package/dist/{Pagination-CCMhqtoz.cjs → Pagination-1CJyhaVf.cjs} +1 -1
  42. package/dist/{Pagination-Br-k9zuG.js → Pagination-Cf-bF0cO.js} +1 -1
  43. package/dist/{PieChart-BABG-xXQ.cjs → PieChart-C-4RKuvA.cjs} +1 -1
  44. package/dist/{PieChart-CmvfqpXR.js → PieChart-okqwoJfR.js} +3 -3
  45. package/dist/{ProgressBar-Blt5BdgQ.js → ProgressBar-DAKxcGUz.js} +2 -2
  46. package/dist/{ProgressBar-BHKgJ4UK.cjs → ProgressBar-WHd3-8_S.cjs} +1 -1
  47. package/dist/{Radio-zdXHagRQ.cjs → Radio-BKSNByp5.cjs} +1 -1
  48. package/dist/{Radio-DsYitO1Z.js → Radio-CuuNBw3O.js} +2 -2
  49. package/dist/Select-QByEv_Tv.js +489 -0
  50. package/dist/Select-S8UH8d2D.cjs +1 -0
  51. package/dist/{SidebarCollapseToggle-IzDpcwPs.js → SidebarCollapseToggle-D1hnbgoR.js} +2 -2
  52. package/dist/{SidebarCollapseToggle-BOLWB51F.cjs → SidebarCollapseToggle-DVXcdTnG.cjs} +1 -1
  53. package/dist/{Skeleton-BLn8a0wV.js → Skeleton-DOnMvGJH.js} +1 -1
  54. package/dist/{Skeleton-lLu_CakO.cjs → Skeleton-DpFPETOp.cjs} +1 -1
  55. package/dist/{Slider-Ca5ru23S.cjs → Slider-C3opYFvY.cjs} +1 -1
  56. package/dist/{Slider-CrhYMw5S.js → Slider-DB6lFos1.js} +4 -4
  57. package/dist/{Spinner-C7NYF-Xf.js → Spinner-B2YYYAXJ.js} +1 -1
  58. package/dist/{Spinner-UsyGqwVq.cjs → Spinner-CgizCUqT.cjs} +1 -1
  59. package/dist/{Stepper-BIWoeqFS.cjs → Stepper-CnwA6gOD.cjs} +1 -1
  60. package/dist/{Stepper-CrVuq2Ba.js → Stepper-DOobCMUg.js} +1 -1
  61. package/dist/{StepperStep-CBaZPJV7.js → StepperStep-Cp8n2JoE.js} +1 -1
  62. package/dist/{StepperStep-DCpcJbTJ.cjs → StepperStep-a7JuzE0O.cjs} +1 -1
  63. package/dist/{Switch-BiqjLsXd.js → Switch-64BBMyrL.js} +2 -2
  64. package/dist/{Switch-CA01aJ7b.cjs → Switch-BXvzo4G9.cjs} +1 -1
  65. package/dist/Tabs-BvUckpF4.cjs +1 -0
  66. package/dist/Tabs-DI_L9kv1.js +196 -0
  67. package/dist/{TextInput-KQGVZCcT.js → TextInput-7G3euyrE.js} +3 -3
  68. package/dist/{TextInput-BdZPqTzI.cjs → TextInput-O9WeHs5s.cjs} +1 -1
  69. package/dist/{Toaster-CubmjJ_C.cjs → Toaster-DuJnC4ix.cjs} +1 -1
  70. package/dist/{Toaster-B4ce6OBe.js → Toaster-qdmsFaEH.js} +1 -1
  71. package/dist/{Tree-CnaGeX7W.cjs → Tree-BTIZ0c3l.cjs} +1 -1
  72. package/dist/{Tree-E3A0GUIG.js → Tree-Ctd1iADF.js} +1 -1
  73. package/dist/{TreeNode-xv6es6z2.js → TreeNode-C5IZMjf-.js} +1 -1
  74. package/dist/{TreeNode-C2W4uFhP.cjs → TreeNode-C9uFja1c.cjs} +1 -1
  75. package/dist/{UserMenu-E-PhzT3T.js → UserMenu-BOoM0Mer.js} +2 -2
  76. package/dist/{UserMenu-CVXfSmUQ.cjs → UserMenu-DonTitqc.cjs} +1 -1
  77. package/dist/all.cjs +1 -1
  78. package/dist/all.mjs +192 -190
  79. package/dist/component-styles.json +5 -0
  80. package/dist/components/AiLabel.cjs +1 -1
  81. package/dist/components/AiLabel.mjs +1 -1
  82. package/dist/components/Avatar.cjs +1 -1
  83. package/dist/components/Avatar.mjs +1 -1
  84. package/dist/components/Badge.cjs +1 -1
  85. package/dist/components/Badge.mjs +1 -1
  86. package/dist/components/Banner.cjs +1 -1
  87. package/dist/components/Banner.mjs +1 -1
  88. package/dist/components/Blueprint.cjs +1 -1
  89. package/dist/components/Blueprint.mjs +1 -1
  90. package/dist/components/BlueprintBackground.cjs +1 -1
  91. package/dist/components/BlueprintBackground.mjs +1 -1
  92. package/dist/components/BlueprintCard.cjs +1 -1
  93. package/dist/components/BlueprintCard.mjs +1 -1
  94. package/dist/components/BlueprintControls.cjs +1 -1
  95. package/dist/components/BlueprintControls.mjs +1 -1
  96. package/dist/components/BlueprintMinimap.cjs +1 -1
  97. package/dist/components/BlueprintMinimap.mjs +1 -1
  98. package/dist/components/Board.cjs +1 -1
  99. package/dist/components/Board.mjs +1 -1
  100. package/dist/components/BottomPanel.cjs +1 -1
  101. package/dist/components/BottomPanel.mjs +1 -1
  102. package/dist/components/Breadcrumbs.cjs +1 -1
  103. package/dist/components/Breadcrumbs.mjs +1 -1
  104. package/dist/components/Calendar.cjs +1 -1
  105. package/dist/components/Calendar.mjs +1 -1
  106. package/dist/components/Charts/BarChart.cjs +1 -1
  107. package/dist/components/Charts/BarChart.d.ts +8 -1
  108. package/dist/components/Charts/BarChart.mjs +1 -1
  109. package/dist/components/Charts/BarChart.vue.d.ts.map +1 -1
  110. package/dist/components/Charts/GanttChart.cjs +1 -1
  111. package/dist/components/Charts/GanttChart.mjs +1 -1
  112. package/dist/components/Charts/InterpolationChart.cjs +1 -1
  113. package/dist/components/Charts/InterpolationChart.mjs +1 -1
  114. package/dist/components/Charts/LineChart.cjs +1 -1
  115. package/dist/components/Charts/LineChart.d.ts +8 -1
  116. package/dist/components/Charts/LineChart.mjs +1 -1
  117. package/dist/components/Charts/LineChart.vue.d.ts.map +1 -1
  118. package/dist/components/Charts/PieChart.cjs +1 -1
  119. package/dist/components/Charts/PieChart.mjs +1 -1
  120. package/dist/components/Charts/Sparkline.cjs +1 -1
  121. package/dist/components/Charts/Sparkline.mjs +1 -1
  122. package/dist/components/Charts/shared/types.d.ts +7 -0
  123. package/dist/components/Checkbox.cjs +1 -1
  124. package/dist/components/Checkbox.mjs +1 -1
  125. package/dist/components/CheckboxGroup.cjs +1 -1
  126. package/dist/components/CheckboxGroup.mjs +1 -1
  127. package/dist/components/ColorStrip.cjs +1 -1
  128. package/dist/components/ColorStrip.mjs +1 -1
  129. package/dist/components/CommandPalette.cjs +1 -1
  130. package/dist/components/CommandPalette.mjs +1 -1
  131. package/dist/components/Confirm.cjs +1 -1
  132. package/dist/components/Confirm.mjs +1 -1
  133. package/dist/components/CopyButton.cjs +1 -0
  134. package/dist/components/CopyButton.d.ts +20 -0
  135. package/dist/components/CopyButton.mjs +2 -0
  136. package/dist/components/CopyButton.vue.d.ts +16 -0
  137. package/dist/components/CopyButton.vue.d.ts.map +1 -0
  138. package/dist/components/DataTable.cjs +1 -1
  139. package/dist/components/DataTable.mjs +1 -1
  140. package/dist/components/DataTable.vue.d.ts.map +1 -1
  141. package/dist/components/DatePicker.cjs +1 -1
  142. package/dist/components/DatePicker.mjs +1 -1
  143. package/dist/components/DatePicker.vue.d.ts +1 -1
  144. package/dist/components/DatePicker.vue.d.ts.map +1 -1
  145. package/dist/components/DefinitionList.cjs +1 -1
  146. package/dist/components/DefinitionList.mjs +1 -1
  147. package/dist/components/DefinitionListItem.cjs +1 -1
  148. package/dist/components/DefinitionListItem.mjs +1 -1
  149. package/dist/components/DragHandle.cjs +1 -1
  150. package/dist/components/DragHandle.mjs +1 -1
  151. package/dist/components/EmptyState.cjs +1 -1
  152. package/dist/components/EmptyState.mjs +1 -1
  153. package/dist/components/Field.cjs +1 -1
  154. package/dist/components/Field.mjs +1 -1
  155. package/dist/components/FileUploader.cjs +1 -1
  156. package/dist/components/FileUploader.mjs +1 -1
  157. package/dist/components/Flag.cjs +1 -1
  158. package/dist/components/Flag.mjs +1 -1
  159. package/dist/components/FloatingToolbar.cjs +1 -1
  160. package/dist/components/FloatingToolbar.mjs +1 -1
  161. package/dist/components/Form.cjs +1 -1
  162. package/dist/components/Form.mjs +1 -1
  163. package/dist/components/Grid.cjs +1 -1
  164. package/dist/components/Grid.mjs +1 -1
  165. package/dist/components/ImageCropper.cjs +1 -1
  166. package/dist/components/ImageCropper.mjs +1 -1
  167. package/dist/components/InlineEdit.cjs +1 -1
  168. package/dist/components/InlineEdit.mjs +1 -1
  169. package/dist/components/InlineLoading.cjs +1 -1
  170. package/dist/components/InlineLoading.mjs +1 -1
  171. package/dist/components/JsonTree.cjs +1 -1
  172. package/dist/components/JsonTree.mjs +1 -1
  173. package/dist/components/Label.cjs +1 -1
  174. package/dist/components/Label.mjs +1 -1
  175. package/dist/components/Layer.cjs +1 -1
  176. package/dist/components/Layer.mjs +1 -1
  177. package/dist/components/MenuBar.cjs +1 -1
  178. package/dist/components/MenuBar.mjs +1 -1
  179. package/dist/components/MenuBarItem.cjs +1 -1
  180. package/dist/components/MenuBarItem.mjs +1 -1
  181. package/dist/components/MenuDivider.cjs +1 -1
  182. package/dist/components/MenuDivider.mjs +1 -1
  183. package/dist/components/Message.cjs +1 -1
  184. package/dist/components/Message.mjs +1 -1
  185. package/dist/components/Modal.cjs +1 -1
  186. package/dist/components/Modal.mjs +1 -1
  187. package/dist/components/NotificationCenter.cjs +1 -1
  188. package/dist/components/NotificationCenter.mjs +1 -1
  189. package/dist/components/NotificationCenterItem.cjs +1 -1
  190. package/dist/components/NotificationCenterItem.mjs +1 -1
  191. package/dist/components/NubiscoMark.cjs +1 -1
  192. package/dist/components/NubiscoMark.mjs +1 -1
  193. package/dist/components/NubiscoPlatformMark.cjs +1 -1
  194. package/dist/components/NubiscoPlatformMark.mjs +1 -1
  195. package/dist/components/NumberInput.cjs +1 -1
  196. package/dist/components/NumberInput.mjs +1 -1
  197. package/dist/components/Pagination.cjs +1 -1
  198. package/dist/components/Pagination.mjs +1 -1
  199. package/dist/components/Panel.cjs +1 -1
  200. package/dist/components/Panel.mjs +1 -1
  201. package/dist/components/ProgressBar.cjs +1 -1
  202. package/dist/components/ProgressBar.mjs +1 -1
  203. package/dist/components/Radio.cjs +1 -1
  204. package/dist/components/Radio.mjs +1 -1
  205. package/dist/components/Radio.vue.d.ts +1 -1
  206. package/dist/components/ReorderList.cjs +1 -1
  207. package/dist/components/ReorderList.mjs +1 -1
  208. package/dist/components/Select.cjs +1 -1
  209. package/dist/components/Select.d.ts +8 -0
  210. package/dist/components/Select.mjs +1 -1
  211. package/dist/components/Select.vue.d.ts +9 -7
  212. package/dist/components/Select.vue.d.ts.map +1 -1
  213. package/dist/components/Shell.cjs +1 -1
  214. package/dist/components/Shell.mjs +1 -1
  215. package/dist/components/ShellPanel.cjs +1 -1
  216. package/dist/components/ShellPanel.mjs +1 -1
  217. package/dist/components/SidebarBrand.cjs +1 -1
  218. package/dist/components/SidebarBrand.mjs +1 -1
  219. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  220. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  221. package/dist/components/SidebarLink.cjs +1 -1
  222. package/dist/components/SidebarLink.mjs +1 -1
  223. package/dist/components/SidebarMenu.cjs +1 -1
  224. package/dist/components/SidebarMenu.mjs +1 -1
  225. package/dist/components/SidebarMenuGroup.cjs +1 -1
  226. package/dist/components/SidebarMenuGroup.mjs +1 -1
  227. package/dist/components/SidebarMenuItem.cjs +1 -1
  228. package/dist/components/SidebarMenuItem.mjs +1 -1
  229. package/dist/components/Skeleton.cjs +1 -1
  230. package/dist/components/Skeleton.mjs +1 -1
  231. package/dist/components/Slider.cjs +1 -1
  232. package/dist/components/Slider.mjs +1 -1
  233. package/dist/components/Spinner.cjs +1 -1
  234. package/dist/components/Spinner.mjs +1 -1
  235. package/dist/components/Stepper.cjs +1 -1
  236. package/dist/components/Stepper.mjs +1 -1
  237. package/dist/components/StepperStep.cjs +1 -1
  238. package/dist/components/StepperStep.mjs +1 -1
  239. package/dist/components/Submenu.cjs +1 -1
  240. package/dist/components/Submenu.mjs +1 -1
  241. package/dist/components/Switch.cjs +1 -1
  242. package/dist/components/Switch.mjs +1 -1
  243. package/dist/components/TableOfContents.cjs +1 -1
  244. package/dist/components/TableOfContents.mjs +1 -1
  245. package/dist/components/Tabs.cjs +1 -1
  246. package/dist/components/Tabs.mjs +1 -1
  247. package/dist/components/Tabs.vue.d.ts.map +1 -1
  248. package/dist/components/TextInput.cjs +1 -1
  249. package/dist/components/TextInput.mjs +1 -1
  250. package/dist/components/TextInput.vue.d.ts +1 -1
  251. package/dist/components/TextInput.vue.d.ts.map +1 -1
  252. package/dist/components/Toast.cjs +1 -1
  253. package/dist/components/Toast.mjs +1 -1
  254. package/dist/components/Toaster.cjs +1 -1
  255. package/dist/components/Toaster.mjs +1 -1
  256. package/dist/components/Tree.cjs +1 -1
  257. package/dist/components/Tree.mjs +1 -1
  258. package/dist/components/TreeNode.cjs +1 -1
  259. package/dist/components/TreeNode.mjs +1 -1
  260. package/dist/components/UserMenu.cjs +1 -1
  261. package/dist/components/UserMenu.mjs +1 -1
  262. package/dist/components/Walkthrough.cjs +1 -1
  263. package/dist/components/Walkthrough.mjs +1 -1
  264. package/dist/components/Wireframe.cjs +1 -1
  265. package/dist/components/Wireframe.mjs +1 -1
  266. package/dist/components/index.d.ts.map +1 -1
  267. package/dist/components/manifest.d.ts +1 -0
  268. package/dist/components/manifest.d.ts.map +1 -1
  269. package/dist/components/manifest.js +1 -0
  270. package/dist/composables/useBlueprint.composable.cjs +1 -1
  271. package/dist/composables/useBlueprint.composable.mjs +1 -1
  272. package/dist/composables/useConfirm.composable.cjs +1 -1
  273. package/dist/composables/useConfirm.composable.mjs +3 -3
  274. package/dist/composables/useInlineLoading.composable.cjs +1 -1
  275. package/dist/composables/useInlineLoading.composable.mjs +1 -1
  276. package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
  277. package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
  278. package/dist/global.d.ts +2 -0
  279. package/dist/index.cjs +1 -1
  280. package/dist/index.mjs +104 -103
  281. package/dist/main.d.ts +3 -1
  282. package/dist/main.d.ts.map +1 -1
  283. package/dist/styles/BarChart.css +1 -1
  284. package/dist/styles/CopyButton.css +1 -0
  285. package/dist/styles/DataTable.css +1 -1
  286. package/dist/styles/LineChart.css +1 -1
  287. package/dist/styles/Select.css +1 -1
  288. package/dist/styles/Tabs.css +1 -1
  289. package/dist/ui.css +6 -5
  290. package/package.json +1 -1
  291. package/dist/BarChart-DTStA9jd.js +0 -290
  292. package/dist/BarChart-Dvrl4xeX.cjs +0 -1
  293. package/dist/DataTable-CWMlmjMi.cjs +0 -1
  294. package/dist/DataTable-DaNZAixf.js +0 -389
  295. package/dist/DatePicker-tAhXSR2o.cjs +0 -1
  296. package/dist/LineChart-C5bQNxQ-.cjs +0 -1
  297. package/dist/Select-ClkEzw5T.cjs +0 -1
  298. package/dist/Select-DIw08nte.js +0 -437
  299. package/dist/Tabs-CrrG1hvh.cjs +0 -1
  300. package/dist/Tabs-D3pdOieX.js +0 -180
  301. /package/dist/{Avatar-C-yA5Rqn.cjs → Avatar-8g9ORf0G.cjs} +0 -0
  302. /package/dist/{Avatar-B8JS0B-W.js → Avatar-BVNfQGSr.js} +0 -0
  303. /package/dist/{Badge-D3oJVwDo.js → Badge-BTXYgn3x.js} +0 -0
  304. /package/dist/{Badge-Dkm7PBJ8.cjs → Badge-Q9diPwDN.cjs} +0 -0
  305. /package/dist/{Banner-C2DFPW-D.js → Banner-6TIXgL2R.js} +0 -0
  306. /package/dist/{Banner-DXfzpyxc.cjs → Banner-gpADtLFp.cjs} +0 -0
  307. /package/dist/{Blueprint.context-Cp__sufg.js → Blueprint.context-C4vHlqSG.js} +0 -0
  308. /package/dist/{Blueprint.context-CNt0_OyK.cjs → Blueprint.context-DoZRtnC4.cjs} +0 -0
  309. /package/dist/{BlueprintBackground-DqRpS-jP.js → BlueprintBackground-B2jBQy9K.js} +0 -0
  310. /package/dist/{BlueprintBackground-CRbAZfZP.cjs → BlueprintBackground-d5ycVcso.cjs} +0 -0
  311. /package/dist/{BlueprintControls-C0yhBzYT.js → BlueprintControls-BrUTlm_Y.js} +0 -0
  312. /package/dist/{BlueprintControls-Qtd2vep2.cjs → BlueprintControls-Cf5H3Ly7.cjs} +0 -0
  313. /package/dist/{BlueprintMinimap-Bk6V5xcq.cjs → BlueprintMinimap-BUQvahxH.cjs} +0 -0
  314. /package/dist/{BlueprintMinimap-KRlkpH14.js → BlueprintMinimap-DB7gUPTz.js} +0 -0
  315. /package/dist/{Board-CDrukIty.js → Board-D7I0nDfI.js} +0 -0
  316. /package/dist/{Board-D1BkK3J5.cjs → Board-v8b7YDzf.cjs} +0 -0
  317. /package/dist/{BottomPanel-Bt4k2PJn.js → BottomPanel-BltDni2C.js} +0 -0
  318. /package/dist/{BottomPanel-C1mT0_I0.cjs → BottomPanel-DTHLQ_Qr.cjs} +0 -0
  319. /package/dist/{Breadcrumbs-cTxSMgeW.cjs → Breadcrumbs-CcP2pnTk.cjs} +0 -0
  320. /package/dist/{Breadcrumbs-B8eAWAvg.js → Breadcrumbs-DUxB0VdV.js} +0 -0
  321. /package/dist/{Calendar-CV-B4qeT.js → Calendar-CAly1ZWu.js} +0 -0
  322. /package/dist/{Calendar-CI6TG85W.cjs → Calendar-DNDcCbdh.cjs} +0 -0
  323. /package/dist/{ChartLegend-DGgW0yjG.cjs → ChartLegend-Bm3lWWjg.cjs} +0 -0
  324. /package/dist/{ChartLegend-BLTbVV2E.js → ChartLegend-pWTcI_8-.js} +0 -0
  325. /package/dist/{CheckboxGroup.context-CBJMSIiT.cjs → CheckboxGroup.context-7VztaE1q.cjs} +0 -0
  326. /package/dist/{CheckboxGroup.context-D-C4RVyg.js → CheckboxGroup.context-DSWDQTzm.js} +0 -0
  327. /package/dist/{CommandPalette-CubX_Udj.js → CommandPalette-CQj6gn7o.js} +0 -0
  328. /package/dist/{CommandPalette-C56CkOfF.cjs → CommandPalette-_Y5CEU1X.cjs} +0 -0
  329. /package/dist/{DefinitionList-MsqB9Lxo.js → DefinitionList-B7_XqH2S.js} +0 -0
  330. /package/dist/{DefinitionList-CSBl-Ogy.cjs → DefinitionList-CSFWnojc.cjs} +0 -0
  331. /package/dist/{DefinitionListItem-DnphEEw1.cjs → DefinitionListItem-BoSGWlc6.cjs} +0 -0
  332. /package/dist/{DefinitionListItem-Ddz2wLyc.js → DefinitionListItem-CwookJTo.js} +0 -0
  333. /package/dist/{DragHandle-D9NnsyJc.js → DragHandle-DObJBJTl.js} +0 -0
  334. /package/dist/{DragHandle-B_rMbMxm.cjs → DragHandle-LknZzyau.cjs} +0 -0
  335. /package/dist/{EmptyState-B6pEj4jk.js → EmptyState-OFT7py0Y.js} +0 -0
  336. /package/dist/{EmptyState-DRbjP890.cjs → EmptyState-kKd8_FYg.cjs} +0 -0
  337. /package/dist/{Field-tNwOATAd.js → Field-C5vOxa-8.js} +0 -0
  338. /package/dist/{Field-BZ2cHQlw.cjs → Field-uEaPF5Wl.cjs} +0 -0
  339. /package/dist/{FileUploader-DC1nE86P.js → FileUploader-BThVgvR_.js} +0 -0
  340. /package/dist/{FileUploader-DehZc0gP.cjs → FileUploader-Ci8QdwIA.cjs} +0 -0
  341. /package/dist/{Flag-DFg5FTus.cjs → Flag-BfIeBiSa.cjs} +0 -0
  342. /package/dist/{Flag-C4SjTXTD.js → Flag-Bzq8UX26.js} +0 -0
  343. /package/dist/{FloatingToolbar-J9ucYTsb.js → FloatingToolbar-C4qGyarE.js} +0 -0
  344. /package/dist/{FloatingToolbar-vWo7YmH3.cjs → FloatingToolbar-DZs8kFYa.cjs} +0 -0
  345. /package/dist/{Grid-DiCxrPaO.cjs → Grid-BhBKhgln.cjs} +0 -0
  346. /package/dist/{Grid-iox-7xyH.js → Grid-Cc13B5BH.js} +0 -0
  347. /package/dist/{InlineEdit-9E8-8JQr.cjs → InlineEdit-Cmux9zMo.cjs} +0 -0
  348. /package/dist/{InlineEdit-BCHxGdSy.js → InlineEdit-CwxZh9RS.js} +0 -0
  349. /package/dist/{JsonTree-DygODsNE.cjs → JsonTree-BRXBiGbK.cjs} +0 -0
  350. /package/dist/{JsonTree-Do_bunoq.js → JsonTree-C3H2YKdl.js} +0 -0
  351. /package/dist/{Label-DGK5nxFy.js → Label-ByPjahGR.js} +0 -0
  352. /package/dist/{Label-CZhQEyoi.cjs → Label-wjk0O-kq.cjs} +0 -0
  353. /package/dist/{Layer-Dn8JBO94.cjs → Layer-C2smYk1p.cjs} +0 -0
  354. /package/dist/{Layer-CPWK7fSy.js → Layer-DRDUSJFB.js} +0 -0
  355. /package/dist/{MenuBar-Cmty676_.cjs → MenuBar-BUg3Rmg0.cjs} +0 -0
  356. /package/dist/{MenuBar-DgoQm2e6.js → MenuBar-CYwXbF0g.js} +0 -0
  357. /package/dist/{MenuBarItem-Cxxs8Dnr.js → MenuBarItem-CSorVwfy.js} +0 -0
  358. /package/dist/{MenuBarItem-dBEuTZ3Q.cjs → MenuBarItem-CbfKgiDU.cjs} +0 -0
  359. /package/dist/{MenuDivider-SpMk4am3.cjs → MenuDivider-C2YR-Eju.cjs} +0 -0
  360. /package/dist/{MenuDivider-Clt77czV.js → MenuDivider-DYrFiAQC.js} +0 -0
  361. /package/dist/{Message-CHkTWe0K.js → Message-DlxDNDdA.js} +0 -0
  362. /package/dist/{Message-C44ftsaT.cjs → Message-MKemyYRl.cjs} +0 -0
  363. /package/dist/{NotificationCenterItem-BP0VBTaB.cjs → NotificationCenterItem-0SzaPX5t.cjs} +0 -0
  364. /package/dist/{NotificationCenterItem-CjJh9W_a.js → NotificationCenterItem-5E6EJNp8.js} +0 -0
  365. /package/dist/{NubiscoMark-BumRk78m.cjs → NubiscoMark-BZHBU-Hr.cjs} +0 -0
  366. /package/dist/{NubiscoMark-eVqSGOjI.js → NubiscoMark-CVDS0VyU.js} +0 -0
  367. /package/dist/{NubiscoPlatformMark-Ch6dCICn.js → NubiscoPlatformMark-BKNLO5R5.js} +0 -0
  368. /package/dist/{NubiscoPlatformMark-IX-E5QQ_.cjs → NubiscoPlatformMark-CQ-MPQFs.cjs} +0 -0
  369. /package/dist/{Panel-Cd29GNxw.cjs → Panel-BYnLh1DT.cjs} +0 -0
  370. /package/dist/{Panel-Y8gOQKuw.js → Panel-KYvcxf_L.js} +0 -0
  371. /package/dist/{ReorderList-hHh9XYQY.cjs → ReorderList-WV4mkeuP.cjs} +0 -0
  372. /package/dist/{ReorderList-v1aWbXjb.js → ReorderList-u9pyTdeA.js} +0 -0
  373. /package/dist/{Shell-CfHe8tIp.js → Shell-DN74eBmE.js} +0 -0
  374. /package/dist/{Shell-DrXByQxR.cjs → Shell-Dmv8U1S6.cjs} +0 -0
  375. /package/dist/{ShellPanel-BA7QLnzE.js → ShellPanel-CvO-jf8v.js} +0 -0
  376. /package/dist/{ShellPanel-CC_QJlLu.cjs → ShellPanel-DnXAu2jC.cjs} +0 -0
  377. /package/dist/{SidebarBrand-8yDIYIQZ.js → SidebarBrand-CG9y4xEK.js} +0 -0
  378. /package/dist/{SidebarBrand-u8Oau9DK.cjs → SidebarBrand-Dyi_NM1K.cjs} +0 -0
  379. /package/dist/{SidebarLink-XVXCHDBm.js → SidebarLink-DDwp4Zr4.js} +0 -0
  380. /package/dist/{SidebarLink-pgjUnWzl.cjs → SidebarLink-DoXNAgxZ.cjs} +0 -0
  381. /package/dist/{SidebarMenu-e0qP4Nh-.js → SidebarMenu-BEfmvgr-.js} +0 -0
  382. /package/dist/{SidebarMenu-CA0y5Zle.cjs → SidebarMenu-CfEUpi__.cjs} +0 -0
  383. /package/dist/{SidebarMenuGroup-VQLxJ1CS.cjs → SidebarMenuGroup-BqBLbfoW.cjs} +0 -0
  384. /package/dist/{SidebarMenuGroup-CGnMAAUM.js → SidebarMenuGroup-ByHNJaEp.js} +0 -0
  385. /package/dist/{SidebarMenuItem-CqDbzAAk.cjs → SidebarMenuItem-BXO7-6mW.cjs} +0 -0
  386. /package/dist/{SidebarMenuItem-DwBLBW-N.js → SidebarMenuItem-DfpEwFWz.js} +0 -0
  387. /package/dist/{Sparkline-Bbt4vFjI.js → Sparkline-BSupaEBO.js} +0 -0
  388. /package/dist/{Sparkline-CdLiYBEr.cjs → Sparkline-Bj0C7f6j.cjs} +0 -0
  389. /package/dist/{Stepper.context-BgQfa8xl.js → Stepper.context-26sKIGs-.js} +0 -0
  390. /package/dist/{Stepper.context-DBNE-GYb.cjs → Stepper.context-C5STWFki.cjs} +0 -0
  391. /package/dist/{Submenu-BC9j6dvb.cjs → Submenu-CoCaEj3F.cjs} +0 -0
  392. /package/dist/{Submenu-CnRi1GdL.js → Submenu-OnSeKMTp.js} +0 -0
  393. /package/dist/{TableOfContents-DCfZ4DYi.cjs → TableOfContents-CnEiZ-XO.cjs} +0 -0
  394. /package/dist/{TableOfContents-EYrBCeci.js → TableOfContents-DjBNG0ti.js} +0 -0
  395. /package/dist/{Toast-XjSCXTx8.cjs → Toast-Wm-0U4X4.cjs} +0 -0
  396. /package/dist/{Toast-q9KByfYq.js → Toast-t80w8V3w.js} +0 -0
  397. /package/dist/{TreeContext-PgcV87_V.cjs → TreeContext-43FbckfR.cjs} +0 -0
  398. /package/dist/{TreeContext-BN1eHAL6.js → TreeContext-DBZ6DCFn.js} +0 -0
  399. /package/dist/{Walkthrough-Dvyp-4Sr.cjs → Walkthrough-B8phXDRA.cjs} +0 -0
  400. /package/dist/{Walkthrough-BxwgYRUB.js → Walkthrough-E_zGYzHh.js} +0 -0
  401. /package/dist/{Wireframe-DDRVqrll.cjs → Wireframe-C64EI3JN.cjs} +0 -0
  402. /package/dist/{Wireframe-ql6EOtd2.js → Wireframe-EQUemMFo.js} +0 -0
  403. /package/dist/{palette-Cy2_8mLH.cjs → palette-Bw_ZEUW9.cjs} +0 -0
  404. /package/dist/{palette-StNyj_sM.js → palette-DWJZEKeE.js} +0 -0
  405. /package/dist/{pixi-scene-CuO3As43.js → pixi-scene-D36iD2QV.js} +0 -0
  406. /package/dist/{pixi-scene-DE1dBR9n.cjs → pixi-scene-PTeatzhb.cjs} +0 -0
  407. /package/dist/{scales-4WxjhxBm.cjs → scales-CdS9bhNN.cjs} +0 -0
  408. /package/dist/{scales-DlFF1BRk.js → scales-qYu_XbF9.js} +0 -0
  409. /package/dist/{useChartSize-UdZSuP3G.js → useChartSize-D1SiiiO5.js} +0 -0
  410. /package/dist/{useChartSize-C-BIN0vc.cjs → useChartSize-FL0Z5O7-.cjs} +0 -0
  411. /package/dist/{useLoadingAnnouncer.composable-DMycMLn-.cjs → useLoadingAnnouncer.composable-BfB0FyHh.cjs} +0 -0
  412. /package/dist/{useLoadingAnnouncer.composable-C7FA-Ui1.js → useLoadingAnnouncer.composable-JILdPA0V.js} +0 -0
  413. /package/dist/{vue-i18n-B2FDvjI1.js → vue-i18n-C_Yfj1G0.js} +0 -0
  414. /package/dist/{vue-i18n-D3Ga_miE.cjs → vue-i18n-Cbsz5l3N.cjs} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
- import { t } from "./Label-DGK5nxFy.js";
3
- import { t as n } from "./Message-CHkTWe0K.js";
4
- import { t as r } from "./CheckboxGroup.context-D-C4RVyg.js";
2
+ import { t } from "./Label-ByPjahGR.js";
3
+ import { t as n } from "./Message-DlxDNDdA.js";
4
+ import { t as r } from "./CheckboxGroup.context-DSWDQTzm.js";
5
5
  import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, provide as p, renderSlot as m, toDisplayString as h, withCtx as g } from "vue";
6
6
  //#region src/components/CheckboxGroup.d.ts
7
7
  var _ = /* @__PURE__ */ function(e) {
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Label-CZhQEyoi.cjs`),n=require(`./Message-C44ftsaT.cjs`),r=require(`./CheckboxGroup.context-CBJMSIiT.cjs`);let i=require(`vue`);var a=function(e){return e.Horizontal=`horizontal`,e.Vertical=`vertical`,e}(a||{}),o=[`aria-label`],s=(0,i.defineComponent)({__name:`CheckboxGroup`,props:{direction:{default:a.Vertical},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:`checkbox-group`},label:{},error:{default:void 0},warning:{default:void 0},helper:{default:void 0}},setup(e){let a=e;(0,i.provide)(r.t,{disabled:(0,i.computed)(()=>a.disabled)});let s=(0,i.computed)(()=>[`nb-checkbox-group`,{"nb-checkbox-group--error":!!a.error,"nb-checkbox-group--warning":!a.error&&!!a.warning,"nb-checkbox-group--disabled":a.disabled}]);return(r,a)=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{class:(0,i.normalizeClass)(s.value),role:`group`,"aria-label":e.label||void 0},[e.label?((0,i.openBlock)(),(0,i.createBlock)(t.t,{key:0,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`disabled`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-checkbox-group__items`,`nb-checkbox-group__items--${e.direction}`])},[(0,i.renderSlot)(r.$slots,`default`,{},void 0,!0)],2),e.error?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:1,variant:`error`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,variant:`warning`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):e.helper?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:3,variant:`helper`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.helper),1)]),_:1})):(0,i.createCommentVNode)(``,!0)],10,o))}}),c=e.t(s,[[`__scopeId`,`data-v-01e35535`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Label-wjk0O-kq.cjs`),n=require(`./Message-MKemyYRl.cjs`),r=require(`./CheckboxGroup.context-7VztaE1q.cjs`);let i=require(`vue`);var a=function(e){return e.Horizontal=`horizontal`,e.Vertical=`vertical`,e}(a||{}),o=[`aria-label`],s=(0,i.defineComponent)({__name:`CheckboxGroup`,props:{direction:{default:a.Vertical},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:`checkbox-group`},label:{},error:{default:void 0},warning:{default:void 0},helper:{default:void 0}},setup(e){let a=e;(0,i.provide)(r.t,{disabled:(0,i.computed)(()=>a.disabled)});let s=(0,i.computed)(()=>[`nb-checkbox-group`,{"nb-checkbox-group--error":!!a.error,"nb-checkbox-group--warning":!a.error&&!!a.warning,"nb-checkbox-group--disabled":a.disabled}]);return(r,a)=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{class:(0,i.normalizeClass)(s.value),role:`group`,"aria-label":e.label||void 0},[e.label?((0,i.openBlock)(),(0,i.createBlock)(t.t,{key:0,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`disabled`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-checkbox-group__items`,`nb-checkbox-group__items--${e.direction}`])},[(0,i.renderSlot)(r.$slots,`default`,{},void 0,!0)],2),e.error?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:1,variant:`error`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,variant:`warning`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):e.helper?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:3,variant:`helper`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.helper),1)]),_:1})):(0,i.createCommentVNode)(``,!0)],10,o))}}),c=e.t(s,[[`__scopeId`,`data-v-01e35535`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
@@ -1 +1 @@
1
- const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Label-CZhQEyoi.cjs`),i=require(`./Grid-DiCxrPaO.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/check`),s=require(`@nubisco/ui/icons/empty`);s=e.n(s);var c={key:1,class:`nb-color-strip-wrapper__inner-header`},l={key:1,class:`nb-color-strip-wrapper__inner-label`},u=30,d=8,f=(0,a.defineComponent)({__name:`ColorStrip`,props:(0,a.mergeModels)({options:{default:()=>[`#DCDCDC`,`#C0C0C0`,`#808080`]},onlyView:{type:Boolean,default:!1},allowMultiple:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},showNull:{type:Boolean,default:!1},variant:{default:`default`},id:{default:void 0},label:{default:void 0}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,f=`nb-color-strip-${(0,a.useId)()}`,p=(0,a.computed)(()=>t.id??f),m=(0,a.useModel)(e,`modelValue`,{set:e=>e}),h=(0,a.computed)(()=>t.options.map(e=>typeof e==`string`?{value:e,color:e}:{...e,color:e.color||`#FFFFFF`,value:e.value===void 0?e.color:e.value})),g={id:`null-option`,value:null,color:`transparent`,label:`None`},_=(0,a.ref)(m.value==null);(0,a.watch)(()=>m.value,e=>{e??(_.value=!0)});let v=(0,a.computed)(()=>t.allowMultiple?!1:t.onlyView?t.showNull:t.showNull||_.value),y=(0,a.computed)(()=>v.value?[g,...h.value]:h.value),b=(0,a.computed)(()=>{if(!t.wrap)return{maxWidth:`none`,flexWrap:`nowrap`};let e=y.value.length;if(e<=0)return;let n=Math.ceil(Math.sqrt(e));return{maxWidth:`${n*u+(n-1)*d}px`,flexWrap:`wrap`}}),x=(0,a.computed)(()=>({"nb-color-strip":!0,"only-view":t.onlyView})),S=e=>t.onlyView?!1:e===null?m.value==null:e===void 0?!1:t.allowMultiple?Array.isArray(m.value)&&m.value.includes(e):m.value===e,C=e=>({"nb-color-strip-color":!0,"nb-color-strip-color-null":T(e),selected:!t.onlyView&&S(e.value)}),w=e=>{if(!T(e))return{backgroundColor:e.color}},T=e=>e.id===`null-option`,E=e=>S(e.value)?`duotone`:`regular`,D=e=>{if(e!==void 0){if(!t.allowMultiple&&e===null){m.value=null;return}if(t.allowMultiple){let t=Array.isArray(m.value)?m.value.slice():[],n=t.indexOf(e);n===-1?t.push(e):t.splice(n,1),m.value=t}else m.value=e}};function O(e){let t=typeof e==`string`?e:e.color,{r:n,g:r,b:i}=k((t&&t.startsWith(`var(`)?getComputedStyle(document.documentElement).getPropertyValue(t.slice(4,-1).trim()).trim():t)||`#FFFFFF`);return(.299*n+.587*r+.114*i)/255>.5?`black`:`white`}function k(e){let t=e.replace(`#`,``);t.length===3&&(t=t.split(``).map(e=>e+e).join(``));let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255}}return(t,u)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)([`nb-color-strip-wrapper`,`nb-color-strip-wrapper--${e.variant}`])},[e.variant===`default`?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[t.$slots.label?(0,a.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):e.label?((0,a.openBlock)(),(0,a.createBlock)(r.t,{key:1,for:p.value,disabled:!1},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)]),_:1},8,[`for`])):(0,a.createCommentVNode)(``,!0)],64)):(0,a.createCommentVNode)(``,!0),e.variant===`fluid`&&(e.label||t.$slots.label)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,c,[t.$slots.label?(0,a.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):((0,a.openBlock)(),(0,a.createElementBlock)(`label`,l,(0,a.toDisplayString)(e.label),1))])):(0,a.createCommentVNode)(``,!0),(0,a.createVNode)(i.t,{id:p.value,dir:`row`,gap:`xs`,class:(0,a.normalizeClass)(x.value),shrink:!1,style:(0,a.normalizeStyle)(b.value)},{default:(0,a.withCtx)(()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(y.value,t=>((0,a.openBlock)(),(0,a.createBlock)(i.t,{is:`button`,key:`option-${t.id||t.value}`,align:`center`,justify:`center`,class:(0,a.normalizeClass)(C(t)),style:(0,a.normalizeStyle)(w(t)),disabled:t.disabled,onClick:n=>!e.onlyView&&D(t.value)},{default:(0,a.withCtx)(()=>[!e.onlyView&&S(t.value)&&!T(t)?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:(0,a.unref)(o.light),weight:`light`,color:O(t)},null,8,[`name`,`color`])):(0,a.createCommentVNode)(``,!0),T(t)?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:1,name:s,weight:E(t)},null,8,[`weight`])):(0,a.createCommentVNode)(``,!0)]),_:2},1032,[`class`,`style`,`disabled`,`onClick`]))),128))]),_:1},8,[`id`,`class`,`style`])],2))}}),p=t.t(f,[[`__scopeId`,`data-v-ddc31632`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Label-wjk0O-kq.cjs`),i=require(`./Grid-BhBKhgln.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/check`),s=require(`@nubisco/ui/icons/empty`);s=e.n(s);var c={key:1,class:`nb-color-strip-wrapper__inner-header`},l={key:1,class:`nb-color-strip-wrapper__inner-label`},u=30,d=8,f=(0,a.defineComponent)({__name:`ColorStrip`,props:(0,a.mergeModels)({options:{default:()=>[`#DCDCDC`,`#C0C0C0`,`#808080`]},onlyView:{type:Boolean,default:!1},allowMultiple:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},showNull:{type:Boolean,default:!1},variant:{default:`default`},id:{default:void 0},label:{default:void 0}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,f=`nb-color-strip-${(0,a.useId)()}`,p=(0,a.computed)(()=>t.id??f),m=(0,a.useModel)(e,`modelValue`,{set:e=>e}),h=(0,a.computed)(()=>t.options.map(e=>typeof e==`string`?{value:e,color:e}:{...e,color:e.color||`#FFFFFF`,value:e.value===void 0?e.color:e.value})),g={id:`null-option`,value:null,color:`transparent`,label:`None`},_=(0,a.ref)(m.value==null);(0,a.watch)(()=>m.value,e=>{e??(_.value=!0)});let v=(0,a.computed)(()=>t.allowMultiple?!1:t.onlyView?t.showNull:t.showNull||_.value),y=(0,a.computed)(()=>v.value?[g,...h.value]:h.value),b=(0,a.computed)(()=>{if(!t.wrap)return{maxWidth:`none`,flexWrap:`nowrap`};let e=y.value.length;if(e<=0)return;let n=Math.ceil(Math.sqrt(e));return{maxWidth:`${n*u+(n-1)*d}px`,flexWrap:`wrap`}}),x=(0,a.computed)(()=>({"nb-color-strip":!0,"only-view":t.onlyView})),S=e=>t.onlyView?!1:e===null?m.value==null:e===void 0?!1:t.allowMultiple?Array.isArray(m.value)&&m.value.includes(e):m.value===e,C=e=>({"nb-color-strip-color":!0,"nb-color-strip-color-null":T(e),selected:!t.onlyView&&S(e.value)}),w=e=>{if(!T(e))return{backgroundColor:e.color}},T=e=>e.id===`null-option`,E=e=>S(e.value)?`duotone`:`regular`,D=e=>{if(e!==void 0){if(!t.allowMultiple&&e===null){m.value=null;return}if(t.allowMultiple){let t=Array.isArray(m.value)?m.value.slice():[],n=t.indexOf(e);n===-1?t.push(e):t.splice(n,1),m.value=t}else m.value=e}};function O(e){let t=typeof e==`string`?e:e.color,{r:n,g:r,b:i}=k((t&&t.startsWith(`var(`)?getComputedStyle(document.documentElement).getPropertyValue(t.slice(4,-1).trim()).trim():t)||`#FFFFFF`);return(.299*n+.587*r+.114*i)/255>.5?`black`:`white`}function k(e){let t=e.replace(`#`,``);t.length===3&&(t=t.split(``).map(e=>e+e).join(``));let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255}}return(t,u)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)([`nb-color-strip-wrapper`,`nb-color-strip-wrapper--${e.variant}`])},[e.variant===`default`?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[t.$slots.label?(0,a.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):e.label?((0,a.openBlock)(),(0,a.createBlock)(r.t,{key:1,for:p.value,disabled:!1},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)]),_:1},8,[`for`])):(0,a.createCommentVNode)(``,!0)],64)):(0,a.createCommentVNode)(``,!0),e.variant===`fluid`&&(e.label||t.$slots.label)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,c,[t.$slots.label?(0,a.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):((0,a.openBlock)(),(0,a.createElementBlock)(`label`,l,(0,a.toDisplayString)(e.label),1))])):(0,a.createCommentVNode)(``,!0),(0,a.createVNode)(i.t,{id:p.value,dir:`row`,gap:`xs`,class:(0,a.normalizeClass)(x.value),shrink:!1,style:(0,a.normalizeStyle)(b.value)},{default:(0,a.withCtx)(()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(y.value,t=>((0,a.openBlock)(),(0,a.createBlock)(i.t,{is:`button`,key:`option-${t.id||t.value}`,align:`center`,justify:`center`,class:(0,a.normalizeClass)(C(t)),style:(0,a.normalizeStyle)(w(t)),disabled:t.disabled,onClick:n=>!e.onlyView&&D(t.value)},{default:(0,a.withCtx)(()=>[!e.onlyView&&S(t.value)&&!T(t)?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:(0,a.unref)(o.light),weight:`light`,color:O(t)},null,8,[`name`,`color`])):(0,a.createCommentVNode)(``,!0),T(t)?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:1,name:s,weight:E(t)},null,8,[`weight`])):(0,a.createCommentVNode)(``,!0)]),_:2},1032,[`class`,`style`,`disabled`,`onClick`]))),128))]),_:1},8,[`id`,`class`,`style`])],2))}}),p=t.t(f,[[`__scopeId`,`data-v-ddc31632`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
2
  import { t } from "./Icon-rREAqsu0.js";
3
- import { t as n } from "./Label-DGK5nxFy.js";
4
- import { t as r } from "./Grid-iox-7xyH.js";
3
+ import { t as n } from "./Label-ByPjahGR.js";
4
+ import { t as r } from "./Grid-Cc13B5BH.js";
5
5
  import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeModels as f, normalizeClass as p, normalizeStyle as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useId as x, useModel as S, watch as C, withCtx as w } from "vue";
6
6
  import { light as T } from "@nubisco/ui/icons/check";
7
7
  import * as E from "@nubisco/ui/icons/empty";
@@ -2,9 +2,9 @@ import { useReducedMotion as e } from "./composables/useReducedMotion.composable
2
2
  import { t } from "./_plugin-vue_export-helper-O4QQSku4.js";
3
3
  import { t as n } from "./Icon-rREAqsu0.js";
4
4
  import { t as r } from "./Button-IcCXOoCT.js";
5
- import { t as i } from "./Message-CHkTWe0K.js";
6
- import { i as a, r as ee, t as te } from "./Modal-BxSP1eyD.js";
7
- import { t as ne } from "./TextInput-KQGVZCcT.js";
5
+ import { t as i } from "./Message-DlxDNDdA.js";
6
+ import { i as a, r as ee, t as te } from "./Modal-ByjVye2a.js";
7
+ import { t as ne } from "./TextInput-7G3euyrE.js";
8
8
  import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, onMounted as re, onUnmounted as ie, openBlock as g, ref as _, renderSlot as ae, toDisplayString as v, unref as y, useId as oe, useSlots as se, watch as b, withCtx as x, withKeys as ce, withModifiers as le } from "vue";
9
9
  import { regular as ue } from "@nubisco/ui/icons/check";
10
10
  import { regular as de } from "@nubisco/ui/icons/warning";
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Button-C0UUTgEB.cjs`),i=require(`./Message-C44ftsaT.cjs`),a=require(`./Modal-sGlC__uQ.cjs`),o=require(`./TextInput-BdZPqTzI.cjs`);let s=require(`vue`),c=require(`@nubisco/ui/icons/check`),ee=require(`@nubisco/ui/icons/warning`);var te={key:0,class:`nb-confirm__message`},ne={key:0,class:`nb-confirm__subject-kind`},l={class:`nb-confirm__subject-name`},u={key:1,class:`nb-confirm__gate`},d={class:`nb-confirm__live`},f={key:0,class:`nb-confirm__status`,role:`status`},p={key:1,class:`nb-confirm__status nb-confirm__status--success`,role:`status`},m=(0,s.defineComponent)({__name:`Confirm`,props:{open:{type:Boolean,default:!1},title:{},message:{default:void 0},subject:{default:void 0},subjectLabel:{default:void 0},confirmLabel:{default:`Confirm`},cancelLabel:{default:`Cancel`},tone:{default:`danger`},typeToConfirm:{default:void 0},typeToConfirmLabel:{default:void 0},typeToConfirmHelper:{default:void 0},busy:{type:Boolean,default:!1},busyLabel:{default:`Working...`},succeeded:{type:Boolean,default:!1},successLabel:{default:void 0},error:{default:void 0},size:{default:`sm`},floatingSelectors:{default:()=>[]},contentClass:{default:void 0}},emits:[`confirm`,`cancel`],setup(t,{expose:m,emit:h}){let g=t,_=h,v=(0,s.useId)(),y=`nb-confirm-title-${v}`,b=`nb-confirm-body-${v}`,x=(0,s.useSlots)(),S=(0,s.ref)(null),C=(0,s.ref)(null),w=(0,s.ref)(null),T=(0,s.ref)(``),E=e.useReducedMotion(),D=(0,s.computed)(()=>g.busy||g.succeeded);function O(){return!!g.message||!!g.subject||!!x.default}let k=(0,s.computed)(()=>g.tone===`danger`?`danger`:`primary`),A=(0,s.computed)(()=>g.typeToConfirmLabel??`Type ${g.typeToConfirm} to confirm`),j=(0,s.computed)(()=>!g.typeToConfirm||T.value.trim()===g.typeToConfirm),M=(0,s.computed)(()=>j.value&&!D.value);function N(){M.value&&_(`confirm`)}function P(){let e=w.value?.$el;return e instanceof HTMLElement?e:null}function F(){return S.value?.closest(`[role="dialog"],[role="alertdialog"]`)??null}function re(){return typeof document>`u`?[]:Array.from(document.querySelectorAll(`[aria-modal="true"]`))}function I(){let e=F();if(!e)return!1;let t=re();return t.length===0||t[t.length-1]===e}let L=[`a[href]:not([tabindex="-1"])`,`area[href]:not([tabindex="-1"])`,`button:not([disabled]):not([tabindex="-1"])`,`input:not([disabled]):not([type="hidden"]):not([tabindex="-1"])`,`select:not([disabled]):not([tabindex="-1"])`,`textarea:not([disabled]):not([tabindex="-1"])`,`summary:not([tabindex="-1"])`,`audio[controls]:not([tabindex="-1"])`,`video[controls]:not([tabindex="-1"])`,`iframe:not([tabindex="-1"])`,`[contenteditable]:not([contenteditable="false"]):not([tabindex="-1"])`,`[tabindex]:not([tabindex="-1"])`].map(e=>`${e}:not([hidden]):not([aria-hidden="true"])`).join(`,`);function R(){return a.i(g.floatingSelectors)}function z(e){return e instanceof Element?!!e.closest(R()):!1}function B(e){let t=F();return!!t&&!!e&&t.contains(e)}function V(){let e=F();return e?Array.from(e.querySelectorAll(L)).filter(e=>e.getAttribute(`aria-disabled`)!==`true`):[]}function H(){let e=F();return e?(e.focus(),!0):!1}function U(){let e=V()[0];e?e.focus():H()}let W=null;function G(){let e=W;W=null,e?.isConnected&&e.focus()}function K(){a.r(F(),E.value)}(0,s.watch)(E,()=>{g.open&&K()}),(0,s.watch)(()=>[g.busy,g.error],async(e,t)=>{if(!g.open)return;let[n,r]=e,i=t?.[0]??!1;if(await(0,s.nextTick)(),n){V().length===0&&H();return}if(i&&r){let e=C.value;e?e.focus():U();return}let a=document.activeElement;!B(a)&&!z(a)&&U()}),(0,s.watch)(()=>g.open,async e=>{e?(W=document.activeElement instanceof HTMLElement?document.activeElement:null,T.value=``,await(0,s.nextTick)(),K(),P()?P()?.focus():H()):G()},{immediate:!0});function q(){D.value||_(`cancel`)}let J=!1,Y=!1;function X(e){let t=e.target;J=B(t)||z(t)}function Z(e){Y=B(e.target)}function ie(){let e=J&&!Y;J=!1,!e&&q()}function Q(e){if(!g.open||z(document.activeElement))return;if(e.key===`Escape`){if(!I())return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),q();return}if(e.key!==`Tab`||!I())return;let t=V();if(t.length===0){e.preventDefault(),B(document.activeElement)||H();return}let n=t[0],r=t[t.length-1],i=document.activeElement;e.shiftKey&&(i===n||!B(i))?(e.preventDefault(),r.focus()):!e.shiftKey&&i===r?(e.preventDefault(),n.focus()):B(i)||(e.preventDefault(),n.focus())}function $(e){if(!g.open)return;let t=e.relatedTarget;if(t instanceof Element){if(B(t)||z(t))return}else if(t!==null)return;requestAnimationFrame(()=>{if(!g.open)return;let e=document.activeElement;B(e)||z(e)||e&&e!==document.body&&!e.isConnected||I()&&U()})}return typeof document<`u`&&(document.addEventListener(`keydown`,Q,!0),document.addEventListener(`focusout`,$,!0),document.addEventListener(`mousedown`,X,!0),document.addEventListener(`touchstart`,X,!0),document.addEventListener(`click`,Z,!0)),(0,s.onMounted)(()=>{g.open&&(K(),P()?P()?.focus():H())}),(0,s.onUnmounted)(()=>{typeof document<`u`&&(document.removeEventListener(`keydown`,Q,!0),document.removeEventListener(`focusout`,$,!0),document.removeEventListener(`mousedown`,X,!0),document.removeEventListener(`touchstart`,X,!0),document.removeEventListener(`click`,Z,!0)),G()}),m({focusCancel:()=>P()?.focus(),restoreFocus:G,isTopmost:I}),(e,m)=>((0,s.openBlock)(),(0,s.createBlock)(a.t,{open:t.open,size:t.size,role:t.tone===`danger`?`alertdialog`:`dialog`,"labelled-by":y,"described-by":O()?b:void 0,busy:t.busy,"close-on-overlay":!D.value,"close-disabled":D.value,"close-on-escape":!1,"trap-focus":!1,onClose:ie},{header:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`span`,{id:y,class:(0,s.normalizeClass)([`nb-confirm__heading`,`nb-confirm__heading--${t.tone}`])},[t.tone===`danger`?((0,s.openBlock)(),(0,s.createBlock)(n.t,{key:0,name:(0,s.unref)(ee.regular),size:16,"aria-hidden":`true`},null,8,[`name`])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,null,(0,s.toDisplayString)(t.title),1)],2)]),footer:(0,s.withCtx)(()=>[(0,s.createVNode)(r.t,{ref_key:`cancelRef`,ref:w,class:`nb-confirm__action nb-confirm__action--cancel`,variant:`ghost`,size:`lg`,disabled:D.value,"data-nb-confirm":`cancel`,onClick:q},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.cancelLabel),1)]),_:1},8,[`disabled`]),(0,s.createVNode)(r.t,{class:`nb-confirm__action nb-confirm__action--confirm`,variant:k.value,size:`lg`,disabled:!M.value,loading:t.busy,"data-nb-confirm":`confirm`,onClick:N},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.confirmLabel),1)]),_:1},8,[`variant`,`disabled`,`loading`])]),default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,{ref_key:`rootRef`,ref:S,class:(0,s.normalizeClass)([`nb-confirm`,t.contentClass])},[O()?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:0,id:b,class:`nb-confirm__body`},[(0,s.renderSlot)(e.$slots,`default`,{},()=>[t.message?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,te,(0,s.toDisplayString)(t.message),1)):(0,s.createCommentVNode)(``,!0)],!0),t.subject?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,{key:0,class:(0,s.normalizeClass)([`nb-confirm__subject`,`nb-confirm__subject--${t.tone}`])},[t.subjectLabel?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,ne,(0,s.toDisplayString)(t.subjectLabel),1)):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,l,(0,s.toDisplayString)(t.subject),1)],2)):(0,s.createCommentVNode)(``,!0)])):(0,s.createCommentVNode)(``,!0),t.typeToConfirm?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,u,[(0,s.createVNode)(o.t,{modelValue:T.value,"onUpdate:modelValue":m[0]||=e=>T.value=e,class:`nb-confirm__gate-field`,label:A.value,helper:t.typeToConfirmHelper,disabled:D.value,autocomplete:`off`,spellcheck:`false`,"data-nb-confirm":`gate`,onKeydown:m[1]||=(0,s.withKeys)((0,s.withModifiers)(()=>{},[`prevent`]),[`enter`])},null,8,[`modelValue`,`label`,`helper`,`disabled`])])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`div`,d,[t.busy?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,f,(0,s.toDisplayString)(t.busyLabel),1)):(0,s.createCommentVNode)(``,!0),t.succeeded&&t.successLabel?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,p,[(0,s.createVNode)(n.t,{name:(0,s.unref)(c.regular),size:14,"aria-hidden":`true`},null,8,[`name`]),(0,s.createElementVNode)(`span`,null,(0,s.toDisplayString)(t.successLabel),1)])):(0,s.createCommentVNode)(``,!0),t.error?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:2,ref_key:`errorRef`,ref:C,class:`nb-confirm__error`,tabindex:`-1`},[(0,s.createVNode)(i.t,{variant:`error`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.error),1)]),_:1})],512)):(0,s.createCommentVNode)(``,!0)])],2)]),_:3},8,[`open`,`size`,`role`,`described-by`,`busy`,`close-on-overlay`,`close-disabled`]))}}),h=t.t(m,[[`__scopeId`,`data-v-683eafb1`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Button-C0UUTgEB.cjs`),i=require(`./Message-MKemyYRl.cjs`),a=require(`./Modal-oT09Tx3v.cjs`),o=require(`./TextInput-O9WeHs5s.cjs`);let s=require(`vue`),c=require(`@nubisco/ui/icons/check`),ee=require(`@nubisco/ui/icons/warning`);var te={key:0,class:`nb-confirm__message`},ne={key:0,class:`nb-confirm__subject-kind`},l={class:`nb-confirm__subject-name`},u={key:1,class:`nb-confirm__gate`},d={class:`nb-confirm__live`},f={key:0,class:`nb-confirm__status`,role:`status`},p={key:1,class:`nb-confirm__status nb-confirm__status--success`,role:`status`},m=(0,s.defineComponent)({__name:`Confirm`,props:{open:{type:Boolean,default:!1},title:{},message:{default:void 0},subject:{default:void 0},subjectLabel:{default:void 0},confirmLabel:{default:`Confirm`},cancelLabel:{default:`Cancel`},tone:{default:`danger`},typeToConfirm:{default:void 0},typeToConfirmLabel:{default:void 0},typeToConfirmHelper:{default:void 0},busy:{type:Boolean,default:!1},busyLabel:{default:`Working...`},succeeded:{type:Boolean,default:!1},successLabel:{default:void 0},error:{default:void 0},size:{default:`sm`},floatingSelectors:{default:()=>[]},contentClass:{default:void 0}},emits:[`confirm`,`cancel`],setup(t,{expose:m,emit:h}){let g=t,_=h,v=(0,s.useId)(),y=`nb-confirm-title-${v}`,b=`nb-confirm-body-${v}`,x=(0,s.useSlots)(),S=(0,s.ref)(null),C=(0,s.ref)(null),w=(0,s.ref)(null),T=(0,s.ref)(``),E=e.useReducedMotion(),D=(0,s.computed)(()=>g.busy||g.succeeded);function O(){return!!g.message||!!g.subject||!!x.default}let k=(0,s.computed)(()=>g.tone===`danger`?`danger`:`primary`),A=(0,s.computed)(()=>g.typeToConfirmLabel??`Type ${g.typeToConfirm} to confirm`),j=(0,s.computed)(()=>!g.typeToConfirm||T.value.trim()===g.typeToConfirm),M=(0,s.computed)(()=>j.value&&!D.value);function N(){M.value&&_(`confirm`)}function P(){let e=w.value?.$el;return e instanceof HTMLElement?e:null}function F(){return S.value?.closest(`[role="dialog"],[role="alertdialog"]`)??null}function re(){return typeof document>`u`?[]:Array.from(document.querySelectorAll(`[aria-modal="true"]`))}function I(){let e=F();if(!e)return!1;let t=re();return t.length===0||t[t.length-1]===e}let L=[`a[href]:not([tabindex="-1"])`,`area[href]:not([tabindex="-1"])`,`button:not([disabled]):not([tabindex="-1"])`,`input:not([disabled]):not([type="hidden"]):not([tabindex="-1"])`,`select:not([disabled]):not([tabindex="-1"])`,`textarea:not([disabled]):not([tabindex="-1"])`,`summary:not([tabindex="-1"])`,`audio[controls]:not([tabindex="-1"])`,`video[controls]:not([tabindex="-1"])`,`iframe:not([tabindex="-1"])`,`[contenteditable]:not([contenteditable="false"]):not([tabindex="-1"])`,`[tabindex]:not([tabindex="-1"])`].map(e=>`${e}:not([hidden]):not([aria-hidden="true"])`).join(`,`);function R(){return a.i(g.floatingSelectors)}function z(e){return e instanceof Element?!!e.closest(R()):!1}function B(e){let t=F();return!!t&&!!e&&t.contains(e)}function V(){let e=F();return e?Array.from(e.querySelectorAll(L)).filter(e=>e.getAttribute(`aria-disabled`)!==`true`):[]}function H(){let e=F();return e?(e.focus(),!0):!1}function U(){let e=V()[0];e?e.focus():H()}let W=null;function G(){let e=W;W=null,e?.isConnected&&e.focus()}function K(){a.r(F(),E.value)}(0,s.watch)(E,()=>{g.open&&K()}),(0,s.watch)(()=>[g.busy,g.error],async(e,t)=>{if(!g.open)return;let[n,r]=e,i=t?.[0]??!1;if(await(0,s.nextTick)(),n){V().length===0&&H();return}if(i&&r){let e=C.value;e?e.focus():U();return}let a=document.activeElement;!B(a)&&!z(a)&&U()}),(0,s.watch)(()=>g.open,async e=>{e?(W=document.activeElement instanceof HTMLElement?document.activeElement:null,T.value=``,await(0,s.nextTick)(),K(),P()?P()?.focus():H()):G()},{immediate:!0});function q(){D.value||_(`cancel`)}let J=!1,Y=!1;function X(e){let t=e.target;J=B(t)||z(t)}function Z(e){Y=B(e.target)}function ie(){let e=J&&!Y;J=!1,!e&&q()}function Q(e){if(!g.open||z(document.activeElement))return;if(e.key===`Escape`){if(!I())return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),q();return}if(e.key!==`Tab`||!I())return;let t=V();if(t.length===0){e.preventDefault(),B(document.activeElement)||H();return}let n=t[0],r=t[t.length-1],i=document.activeElement;e.shiftKey&&(i===n||!B(i))?(e.preventDefault(),r.focus()):!e.shiftKey&&i===r?(e.preventDefault(),n.focus()):B(i)||(e.preventDefault(),n.focus())}function $(e){if(!g.open)return;let t=e.relatedTarget;if(t instanceof Element){if(B(t)||z(t))return}else if(t!==null)return;requestAnimationFrame(()=>{if(!g.open)return;let e=document.activeElement;B(e)||z(e)||e&&e!==document.body&&!e.isConnected||I()&&U()})}return typeof document<`u`&&(document.addEventListener(`keydown`,Q,!0),document.addEventListener(`focusout`,$,!0),document.addEventListener(`mousedown`,X,!0),document.addEventListener(`touchstart`,X,!0),document.addEventListener(`click`,Z,!0)),(0,s.onMounted)(()=>{g.open&&(K(),P()?P()?.focus():H())}),(0,s.onUnmounted)(()=>{typeof document<`u`&&(document.removeEventListener(`keydown`,Q,!0),document.removeEventListener(`focusout`,$,!0),document.removeEventListener(`mousedown`,X,!0),document.removeEventListener(`touchstart`,X,!0),document.removeEventListener(`click`,Z,!0)),G()}),m({focusCancel:()=>P()?.focus(),restoreFocus:G,isTopmost:I}),(e,m)=>((0,s.openBlock)(),(0,s.createBlock)(a.t,{open:t.open,size:t.size,role:t.tone===`danger`?`alertdialog`:`dialog`,"labelled-by":y,"described-by":O()?b:void 0,busy:t.busy,"close-on-overlay":!D.value,"close-disabled":D.value,"close-on-escape":!1,"trap-focus":!1,onClose:ie},{header:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`span`,{id:y,class:(0,s.normalizeClass)([`nb-confirm__heading`,`nb-confirm__heading--${t.tone}`])},[t.tone===`danger`?((0,s.openBlock)(),(0,s.createBlock)(n.t,{key:0,name:(0,s.unref)(ee.regular),size:16,"aria-hidden":`true`},null,8,[`name`])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,null,(0,s.toDisplayString)(t.title),1)],2)]),footer:(0,s.withCtx)(()=>[(0,s.createVNode)(r.t,{ref_key:`cancelRef`,ref:w,class:`nb-confirm__action nb-confirm__action--cancel`,variant:`ghost`,size:`lg`,disabled:D.value,"data-nb-confirm":`cancel`,onClick:q},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.cancelLabel),1)]),_:1},8,[`disabled`]),(0,s.createVNode)(r.t,{class:`nb-confirm__action nb-confirm__action--confirm`,variant:k.value,size:`lg`,disabled:!M.value,loading:t.busy,"data-nb-confirm":`confirm`,onClick:N},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.confirmLabel),1)]),_:1},8,[`variant`,`disabled`,`loading`])]),default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,{ref_key:`rootRef`,ref:S,class:(0,s.normalizeClass)([`nb-confirm`,t.contentClass])},[O()?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:0,id:b,class:`nb-confirm__body`},[(0,s.renderSlot)(e.$slots,`default`,{},()=>[t.message?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,te,(0,s.toDisplayString)(t.message),1)):(0,s.createCommentVNode)(``,!0)],!0),t.subject?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,{key:0,class:(0,s.normalizeClass)([`nb-confirm__subject`,`nb-confirm__subject--${t.tone}`])},[t.subjectLabel?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,ne,(0,s.toDisplayString)(t.subjectLabel),1)):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,l,(0,s.toDisplayString)(t.subject),1)],2)):(0,s.createCommentVNode)(``,!0)])):(0,s.createCommentVNode)(``,!0),t.typeToConfirm?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,u,[(0,s.createVNode)(o.t,{modelValue:T.value,"onUpdate:modelValue":m[0]||=e=>T.value=e,class:`nb-confirm__gate-field`,label:A.value,helper:t.typeToConfirmHelper,disabled:D.value,autocomplete:`off`,spellcheck:`false`,"data-nb-confirm":`gate`,onKeydown:m[1]||=(0,s.withKeys)((0,s.withModifiers)(()=>{},[`prevent`]),[`enter`])},null,8,[`modelValue`,`label`,`helper`,`disabled`])])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`div`,d,[t.busy?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,f,(0,s.toDisplayString)(t.busyLabel),1)):(0,s.createCommentVNode)(``,!0),t.succeeded&&t.successLabel?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,p,[(0,s.createVNode)(n.t,{name:(0,s.unref)(c.regular),size:14,"aria-hidden":`true`},null,8,[`name`]),(0,s.createElementVNode)(`span`,null,(0,s.toDisplayString)(t.successLabel),1)])):(0,s.createCommentVNode)(``,!0),t.error?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:2,ref_key:`errorRef`,ref:C,class:`nb-confirm__error`,tabindex:`-1`},[(0,s.createVNode)(i.t,{variant:`error`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.error),1)]),_:1})],512)):(0,s.createCommentVNode)(``,!0)])],2)]),_:3},8,[`open`,`size`,`role`,`described-by`,`busy`,`close-on-overlay`,`close-disabled`]))}}),h=t.t(m,[[`__scopeId`,`data-v-683eafb1`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
@@ -0,0 +1 @@
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Button-C0UUTgEB.cjs`);let n=require(`vue`),r=require(`@nubisco/ui/icons/check`);r=e.n(r);let i=require(`@nubisco/ui/icons/copy`);i=e.n(i);var a={class:`nb-copy-button`},o={class:`nb-copy-button__status`,role:`status`},s=(0,n.defineComponent)({__name:`CopyButton`,props:{text:{},label:{default:`Copy`},copiedLabel:{default:`Copied`},size:{default:`xs`},duration:{default:1500}},emits:[`copied`,`error`],setup(e,{emit:s}){let c=e,l=s,u=(0,n.ref)(!1),d;async function f(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand?.(`copy`)??!1;if(t.remove(),!n)throw Error(`The browser did not allow copying.`)}async function p(){try{await f(c.text)}catch(e){l(`error`,e);return}u.value=!0,l(`copied`,c.text),clearTimeout(d),d=setTimeout(()=>u.value=!1,c.duration)}return(0,n.onBeforeUnmount)(()=>clearTimeout(d)),(s,c)=>{let l=(0,n.resolveDirective)(`nb-tooltip`);return(0,n.openBlock)(),(0,n.createElementBlock)(`span`,a,[(0,n.withDirectives)((0,n.createVNode)(t.t,{"aria-label":u.value?e.copiedLabel:e.label,class:(0,n.normalizeClass)([`nb-copy-button__button`,{"nb-copy-button__button--copied":u.value}]),variant:`ghost`,size:e.size,icon:u.value?r:i,onClick:(0,n.withModifiers)(p,[`stop`,`prevent`]),onPointerdown:c[0]||=(0,n.withModifiers)(()=>{},[`stop`]),onMousedown:c[1]||=(0,n.withModifiers)(()=>{},[`stop`]),onDblclick:c[2]||=(0,n.withModifiers)(()=>{},[`stop`])},null,8,[`aria-label`,`class`,`size`,`icon`]),[[l,{body:u.value?e.copiedLabel:e.label,aria:`none`}]]),(0,n.createElementVNode)(`span`,o,(0,n.toDisplayString)(u.value?e.copiedLabel:``),1)])}}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
@@ -0,0 +1,65 @@
1
+ import { t as e } from "./Button-IcCXOoCT.js";
2
+ import { createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, normalizeClass as a, onBeforeUnmount as o, openBlock as s, ref as c, resolveDirective as l, toDisplayString as u, withDirectives as d, withModifiers as f } from "vue";
3
+ import * as p from "@nubisco/ui/icons/check";
4
+ import * as m from "@nubisco/ui/icons/copy";
5
+ //#region src/components/CopyButton.vue?vue&type=script&setup=true&lang.ts
6
+ var h = { class: "nb-copy-button" }, g = {
7
+ class: "nb-copy-button__status",
8
+ role: "status"
9
+ }, _ = /* @__PURE__ */ i({
10
+ __name: "CopyButton",
11
+ props: {
12
+ text: {},
13
+ label: { default: "Copy" },
14
+ copiedLabel: { default: "Copied" },
15
+ size: { default: "xs" },
16
+ duration: { default: 1500 }
17
+ },
18
+ emits: ["copied", "error"],
19
+ setup(i, { emit: _ }) {
20
+ let v = i, y = _, b = c(!1), x;
21
+ async function S(e) {
22
+ if (navigator.clipboard?.writeText) try {
23
+ await navigator.clipboard.writeText(e);
24
+ return;
25
+ } catch {}
26
+ let t = document.createElement("textarea");
27
+ t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.opacity = "0", document.body.appendChild(t), t.select();
28
+ let n = document.execCommand?.("copy") ?? !1;
29
+ if (t.remove(), !n) throw Error("The browser did not allow copying.");
30
+ }
31
+ async function C() {
32
+ try {
33
+ await S(v.text);
34
+ } catch (e) {
35
+ y("error", e);
36
+ return;
37
+ }
38
+ b.value = !0, y("copied", v.text), clearTimeout(x), x = setTimeout(() => b.value = !1, v.duration);
39
+ }
40
+ return o(() => clearTimeout(x)), (o, c) => {
41
+ let _ = l("nb-tooltip");
42
+ return s(), t("span", h, [d(r(e, {
43
+ "aria-label": b.value ? i.copiedLabel : i.label,
44
+ class: a(["nb-copy-button__button", { "nb-copy-button__button--copied": b.value }]),
45
+ variant: "ghost",
46
+ size: i.size,
47
+ icon: b.value ? p : m,
48
+ onClick: f(C, ["stop", "prevent"]),
49
+ onPointerdown: c[0] ||= f(() => {}, ["stop"]),
50
+ onMousedown: c[1] ||= f(() => {}, ["stop"]),
51
+ onDblclick: c[2] ||= f(() => {}, ["stop"])
52
+ }, null, 8, [
53
+ "aria-label",
54
+ "class",
55
+ "size",
56
+ "icon"
57
+ ]), [[_, {
58
+ body: b.value ? i.copiedLabel : i.label,
59
+ aria: "none"
60
+ }]]), n("span", g, u(b.value ? i.copiedLabel : ""), 1)]);
61
+ };
62
+ }
63
+ });
64
+ //#endregion
65
+ export { _ as t };
@@ -0,0 +1 @@
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Size.d-GBIblj2D.cjs`),r=require(`./Icon-C8R_r_In.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./composables/usePhoneLayout.composable.cjs`),o=require(`./Button-C0UUTgEB.cjs`),s=require(`./Grid-BhBKhgln.cjs`),c=require(`./Checkbox-BU9auHYV.cjs`);let l=require(`vue`),u=require(`@nubisco/ui/icons/arrows-down-up`);u=e.n(u);let d=require(`@nubisco/ui/icons/arrow-up`);d=e.n(d);let f=require(`@nubisco/ui/icons/arrow-down`);f=e.n(f);var p=[`inert`,`aria-hidden`],m={key:0},h={key:0,class:`nb-data-table__title`},g={key:1,class:`nb-data-table__description`},ee=[`inert`,`aria-hidden`],te={key:1,class:`nb-data-table__batch`,role:`region`,"aria-label":`Table batch actions`},ne={class:`nb-data-table__batch-count`},re={class:`nb-data-table__batch-actions`},ie={class:`nb-data-table__scroll`},ae=[`role`,`aria-label`,`aria-busy`],oe={key:0,class:`nb-data-table__col-select`},se={key:1,class:`nb-data-table__col-actions`},ce=[`role`],le=[`role`],ue={key:0,scope:`col`,class:`nb-data-table__th nb-data-table__select-cell`},_=[`aria-sort`],de=[`onClick`],fe={class:`nb-data-table__th-label`},pe={key:1,class:`nb-data-table__th-label`},me={key:1,scope:`col`,class:`nb-data-table__th nb-data-table__actions-cell`},he=[`role`],ge={key:0,class:`nb-data-table__td`},v={key:1,class:`nb-data-table__td`},y={key:1,class:`nb-data-table__state-row`},b=[`colspan`],x={key:2,class:`nb-data-table__state-row`},_e=[`colspan`],ve=[`role`,`aria-selected`,`onClick`],ye=[`checked`,`aria-label`,`onChange`],be=[`role`,`data-label`],xe={key:1,class:`nb-data-table__footer`},S=(0,l.defineComponent)({__name:`DataTable`,props:{columns:{},rows:{},rowKey:{},size:{default:n.r.Medium},sortState:{default:null},selectable:{default:`none`},selected:{default:()=>[]},loading:{type:Boolean,default:!1},skeletonRows:{default:5},error:{default:void 0},emptyMessage:{default:void 0},stickyHeader:{type:Boolean,default:!0},zebra:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},title:{default:void 0},description:{default:void 0},ariaLabel:{default:void 0},stackOnPhone:{type:Boolean,default:!1}},emits:[`sort`,`update:selected`,`row-click`],setup(e,{emit:t}){let n=e,{layerProps:S}=i.useSurfaceLayer(),C=t,w=(0,l.useSlots)(),T=`nb-data-table-select-${(0,l.useId)()}`,E=(0,l.computed)(()=>n.size),D=(0,l.computed)(()=>n.columns.filter(e=>!e.hidden)),O=(0,l.computed)(()=>n.selectable!==`none`),k=(0,l.computed)(()=>!!w[`row-actions`]),A=(0,l.computed)(()=>D.value.length+(O.value?1:0)+(k.value?1:0)),{phone:j}=a.usePhoneLayout(),M=(0,l.computed)(()=>n.stackOnPhone&&j.value),Se=(0,l.computed)(()=>(D.value.find(e=>e.primary)??D.value.find(e=>!e.phoneHidden&&!e.phoneMeta))?.key);function Ce(e){return e.phoneHidden?`nb-data-table__td--phone-hidden`:e.key===Se.value?`nb-data-table__td--primary`:e.phoneMeta?`nb-data-table__td--meta`:`nb-data-table__td--field`}let we=(0,l.computed)(()=>!n.loading&&!n.error&&n.rows.length>0&&(n.selectable===`multiple`||D.value.some(e=>e.sortable&&!e.phoneHidden)));function Te(e){if(e.width!=null)return{width:typeof e.width==`number`?`${e.width}px`:e.width}}function N(e,t){return t[e.key]}function Ee(e){return e==null?``:String(e)}let P=e=>e.column.render?.(e.row,N(e.column,e.row),e.rowIndex)??null;P.props=[`column`,`row`,`rowIndex`];function F(e){let t=n.rowKey;return typeof t==`function`?t(e):e[t]}let I=(0,l.computed)(()=>new Set(n.selected)),De=(0,l.computed)(()=>n.selected),L=(0,l.computed)(()=>n.selected.length);function R(e){return I.value.has(F(e))}let z=(0,l.computed)(()=>n.rows.map(e=>F(e))),B=(0,l.computed)(()=>z.value.length>0&&z.value.every(e=>I.value.has(e))),Oe=(0,l.computed)(()=>!B.value&&z.value.some(e=>I.value.has(e))),V=(0,l.ref)(null),H=!1;function U(e){H=e.shiftKey}(0,l.watch)(z,()=>{V.value=null});function ke(e,t){let r=F(e),i=new Set(n.selected),a=!i.has(r),o=V.value,s=e=>{a?i.add(e):i.delete(e)};if(H&&o!==null&&o!==t){let e=Math.min(o,t),r=Math.max(o,t);for(let t=e;t<=r;t++){let e=n.rows[t];e&&s(F(e))}}else s(r),V.value=t;H=!1,C(`update:selected`,[...i])}function Ae(e){C(`update:selected`,[F(e)])}function je(){let e=new Set(n.selected);B.value?z.value.forEach(t=>e.delete(t)):z.value.forEach(t=>e.add(t)),C(`update:selected`,[...e])}function W(){C(`update:selected`,[])}let G=(0,l.computed)(()=>n.selectable!==`none`&&!!w[`batch-actions`]),K=(0,l.computed)(()=>G.value&&L.value>0),Me=(0,l.computed)(()=>!!n.title||!!n.description||!!w.toolbar||!!w.search||!!w[`toolbar-actions`]),Ne=(0,l.computed)(()=>Me.value||G.value),q=(0,l.ref)(null),J=(0,l.ref)(null),Y=(0,l.ref)(null),X=(0,l.ref)(!1);function Z(){let e=J.value,t=Y.value;X.value=!!e&&!!t&&t.offsetTop>=e.offsetTop+e.offsetHeight-1}let Q=null;(0,l.watch)([q,J,Y],e=>{if(Q?.disconnect(),Z(),!(typeof ResizeObserver>`u`)){Q??=new ResizeObserver(Z);for(let t of e)t&&Q.observe(t)}},{flush:`post`}),(0,l.onBeforeUnmount)(()=>{Q?.disconnect(),Q=null});function $(e){return!!n.sortState&&n.sortState.key===e.key&&n.sortState.direction!==`none`}function Pe(e){return $(e)?n.sortState.direction===`asc`?`ascending`:`descending`:`none`}function Fe(e){return $(e)?n.sortState.direction===`asc`?d:f:u}function Ie(e){return e===`asc`?`desc`:e===`desc`?`none`:`asc`}function Le(e){let t=n.sortState&&n.sortState.key===e.key?n.sortState.direction:`none`;C(`sort`,{key:e.key,direction:Ie(t)})}let Re=(0,l.getCurrentInstance)(),ze=(0,l.computed)(()=>!!Re?.vnode.props?.onRowClick);function Be(e,t){C(`row-click`,e,t)}return(t,n)=>((0,l.openBlock)(),(0,l.createElementBlock)(`div`,(0,l.mergeProps)({class:[`nb-data-table`,`nb-data-table--${e.size}`,{"nb-data-table--zebra":e.zebra},{"nb-data-table--sticky":e.stickyHeader},{"nb-data-table--fill":e.fill},{"nb-data-table--stacked":M.value},{"nb-data-table--stacked-headless":M.value&&!we.value}]},(0,l.unref)(S)),[Ne.value?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,{key:0,ref_key:`toolbarRef`,ref:q,class:(0,l.normalizeClass)([`nb-data-table__toolbar`,{"nb-data-table__toolbar--wrapped":X.value}])},[(0,l.createElementVNode)(`div`,{ref_key:`toolbarHeadingRef`,ref:J,class:`nb-data-table__toolbar-heading`,inert:K.value||void 0,"aria-hidden":K.value||void 0},[(0,l.renderSlot)(t.$slots,`toolbar`,{selectedCount:L.value},()=>[e.title||e.description?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,m,[e.title?((0,l.openBlock)(),(0,l.createElementBlock)(`h2`,h,(0,l.toDisplayString)(e.title),1)):(0,l.createCommentVNode)(``,!0),e.description?((0,l.openBlock)(),(0,l.createElementBlock)(`p`,g,(0,l.toDisplayString)(e.description),1)):(0,l.createCommentVNode)(``,!0)])):(0,l.createCommentVNode)(``,!0)],!0)],8,p),t.$slots.search||t.$slots[`toolbar-actions`]?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,{key:0,ref_key:`toolbarToolsRef`,ref:Y,class:(0,l.normalizeClass)([`nb-data-table__toolbar-tools`,{"nb-data-table__toolbar-tools--grow-search":X.value&&!!t.$slots.search}]),inert:K.value||void 0,"aria-hidden":K.value||void 0},[(0,l.renderSlot)(t.$slots,`search`,{},void 0,!0),(0,l.renderSlot)(t.$slots,`toolbar-actions`,{},void 0,!0)],10,ee)):(0,l.createCommentVNode)(``,!0),K.value?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,te,[(0,l.createElementVNode)(`span`,ne,(0,l.toDisplayString)(L.value)+` selected `,1),(0,l.createElementVNode)(`div`,re,[(0,l.renderSlot)(t.$slots,`batch-actions`,{selectedKeys:De.value,clear:W},void 0,!0)]),(0,l.createVNode)(o.t,{class:`nb-data-table__batch-cancel`,variant:`ghost`,size:E.value,onClick:W},{default:(0,l.withCtx)(()=>[...n[2]||=[(0,l.createTextVNode)(` Cancel `,-1)]]),_:1},8,[`size`])])):(0,l.createCommentVNode)(``,!0)],2)):(0,l.createCommentVNode)(``,!0),(0,l.createElementVNode)(`div`,ie,[(0,l.createElementVNode)(`table`,{class:`nb-data-table__table`,role:M.value?`table`:void 0,"aria-label":e.ariaLabel||e.title||void 0,"aria-busy":e.loading||void 0},[(0,l.createElementVNode)(`colgroup`,null,[O.value?((0,l.openBlock)(),(0,l.createElementBlock)(`col`,oe)):(0,l.createCommentVNode)(``,!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(D.value,e=>((0,l.openBlock)(),(0,l.createElementBlock)(`col`,{key:`col-${e.key}`,style:(0,l.normalizeStyle)(Te(e))},null,4))),128)),k.value?((0,l.openBlock)(),(0,l.createElementBlock)(`col`,se)):(0,l.createCommentVNode)(``,!0)]),(0,l.createElementVNode)(`thead`,{class:`nb-data-table__head`,role:M.value?`rowgroup`:void 0},[(0,l.createElementVNode)(`tr`,{role:M.value?`row`:void 0},[O.value?((0,l.openBlock)(),(0,l.createElementBlock)(`th`,ue,[e.selectable===`multiple`?((0,l.openBlock)(),(0,l.createBlock)(c.t,{key:0,"model-value":B.value,indeterminate:Oe.value,"aria-label":`Select all rows`,"onUpdate:modelValue":je},null,8,[`model-value`,`indeterminate`])):(0,l.createCommentVNode)(``,!0)])):(0,l.createCommentVNode)(``,!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(D.value,e=>((0,l.openBlock)(),(0,l.createElementBlock)(`th`,{key:`th-${e.key}`,scope:`col`,class:(0,l.normalizeClass)([`nb-data-table__th`,`nb-data-table__th--${e.align||`left`}`,{"nb-data-table__th--sortable":e.sortable},{"nb-data-table__th--sorted":$(e)},M.value&&e.phoneHidden&&`nb-data-table__th--phone-hidden`]),"aria-sort":e.sortable?Pe(e):void 0},[e.sortable?((0,l.openBlock)(),(0,l.createElementBlock)(`button`,{key:0,type:`button`,class:`nb-data-table__sort`,onClick:t=>Le(e)},[(0,l.createElementVNode)(`span`,fe,[(0,l.renderSlot)(t.$slots,`header-${e.key}`,{column:e},()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.header),1)],!0)]),(0,l.createVNode)(r.t,{name:Fe(e),class:`nb-data-table__sort-icon`,"aria-hidden":`true`},null,8,[`name`])],8,de)):((0,l.openBlock)(),(0,l.createElementBlock)(`span`,pe,[(0,l.renderSlot)(t.$slots,`header-${e.key}`,{column:e},()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.header),1)],!0)]))],10,_))),128)),k.value?((0,l.openBlock)(),(0,l.createElementBlock)(`th`,me,[...n[3]||=[(0,l.createElementVNode)(`span`,{class:`nb-sr-only`},`Row actions`,-1)]])):(0,l.createCommentVNode)(``,!0)],8,le)],8,ce),(0,l.createElementVNode)(`tbody`,{class:`nb-data-table__body`,role:M.value?`rowgroup`:void 0},[e.loading?((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,{key:0},(0,l.renderList)(e.skeletonRows,e=>((0,l.openBlock)(),(0,l.createElementBlock)(`tr`,{key:`skeleton-${e}`,class:`nb-data-table__row nb-data-table__row--skeleton`},[O.value?((0,l.openBlock)(),(0,l.createElementBlock)(`td`,ge,[...n[4]||=[(0,l.createElementVNode)(`span`,{class:`nb-data-table__skeleton nb-data-table__skeleton--box`},null,-1)]])):(0,l.createCommentVNode)(``,!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(D.value,t=>((0,l.openBlock)(),(0,l.createElementBlock)(`td`,{key:`sk-${e}-${t.key}`,class:`nb-data-table__td`},[...n[5]||=[(0,l.createElementVNode)(`span`,{class:`nb-data-table__skeleton`},null,-1)]]))),128)),k.value?((0,l.openBlock)(),(0,l.createElementBlock)(`td`,v,[...n[6]||=[(0,l.createElementVNode)(`span`,{class:`nb-data-table__skeleton nb-data-table__skeleton--box`},null,-1)]])):(0,l.createCommentVNode)(``,!0)]))),128)):e.error?((0,l.openBlock)(),(0,l.createElementBlock)(`tr`,y,[(0,l.createElementVNode)(`td`,{colspan:A.value,class:`nb-data-table__state nb-data-table__state--error`},[(0,l.renderSlot)(t.$slots,`error`,{error:e.error},()=>[(0,l.createVNode)(s.t,{is:`span`,align:`center`,justify:`center`,gap:`xs`,class:`nb-data-table__state-inner`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(r.t,{name:`warning-circle-fill`,"aria-hidden":`true`}),(0,l.createElementVNode)(`span`,null,(0,l.toDisplayString)(e.error),1)]),_:1})],!0)],8,b)])):e.rows.length?((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,{key:3},(0,l.renderList)(e.rows,(r,i)=>((0,l.openBlock)(),(0,l.createElementBlock)(`tr`,{key:F(r),class:(0,l.normalizeClass)([`nb-data-table__row`,{"nb-data-table__row--selected":R(r)},{"nb-data-table__row--clickable":ze.value}]),role:M.value?`row`:void 0,"aria-selected":e.selectable===`none`?void 0:R(r),onClick:e=>Be(r,i)},[O.value?((0,l.openBlock)(),(0,l.createElementBlock)(`td`,{key:0,class:`nb-data-table__td nb-data-table__select-cell`,onClick:n[0]||=(0,l.withModifiers)(()=>{},[`stop`]),onMousedown:U,onKeydown:U},[e.selectable===`multiple`?((0,l.openBlock)(),(0,l.createBlock)(c.t,{key:0,"model-value":R(r),"aria-label":`Select row ${i+1}`,"onUpdate:modelValue":e=>ke(r,i)},null,8,[`model-value`,`aria-label`,`onUpdate:modelValue`])):((0,l.openBlock)(),(0,l.createElementBlock)(`input`,{key:1,type:`radio`,class:`nb-data-table__radio`,name:T,checked:R(r),"aria-label":`Select row ${i+1}`,onChange:e=>Ae(r)},null,40,ye))],32)):(0,l.createCommentVNode)(``,!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(D.value,n=>((0,l.openBlock)(),(0,l.createElementBlock)(`td`,{key:`td-${F(r)}-${n.key}`,class:(0,l.normalizeClass)([`nb-data-table__td`,`nb-data-table__td--${n.align||`left`}`,n.cellClass,M.value&&Ce(n)]),role:M.value?`cell`:void 0,"data-label":e.stackOnPhone?n.header:void 0},[(0,l.renderSlot)(t.$slots,`cell-${n.key}`,{row:r,value:N(n,r),column:n,rowIndex:i},()=>[n.render?((0,l.openBlock)(),(0,l.createBlock)(P,{key:0,column:n,row:r,"row-index":i},null,8,[`column`,`row`,`row-index`])):((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,{key:1},[(0,l.createTextVNode)((0,l.toDisplayString)(Ee(N(n,r))),1)],64))],!0)],10,be))),128)),k.value?((0,l.openBlock)(),(0,l.createElementBlock)(`td`,{key:1,class:`nb-data-table__td nb-data-table__actions-cell`,onClick:n[1]||=(0,l.withModifiers)(()=>{},[`stop`])},[(0,l.renderSlot)(t.$slots,`row-actions`,{row:r,rowIndex:i},void 0,!0)])):(0,l.createCommentVNode)(``,!0)],10,ve))),128)):((0,l.openBlock)(),(0,l.createElementBlock)(`tr`,x,[(0,l.createElementVNode)(`td`,{colspan:A.value,class:`nb-data-table__state nb-data-table__state--empty`},[(0,l.renderSlot)(t.$slots,`empty`,{},()=>[(0,l.createElementVNode)(`span`,null,(0,l.toDisplayString)(e.emptyMessage||`No data to display`),1)],!0)],8,_e)]))],8,he)],8,ae)]),t.$slots.footer?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,xe,[(0,l.renderSlot)(t.$slots,`footer`,{},void 0,!0)])):(0,l.createCommentVNode)(``,!0)],16))}}),C=t.t(S,[[`__scopeId`,`data-v-0d151db9`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return C}});
@@ -0,0 +1,412 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
+ import { r as t } from "./Size.d-Bah6vMl3.js";
3
+ import { t as n } from "./Icon-rREAqsu0.js";
4
+ import { useSurfaceLayer as r } from "./composables/useSurfaceLayer.composable.mjs";
5
+ import { usePhoneLayout as i } from "./composables/usePhoneLayout.composable.mjs";
6
+ import { t as a } from "./Button-IcCXOoCT.js";
7
+ import { t as o } from "./Grid-Cc13B5BH.js";
8
+ import { t as s } from "./Checkbox-D_Gd5z5o.js";
9
+ import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, getCurrentInstance as ee, mergeProps as te, normalizeClass as _, normalizeStyle as ne, onBeforeUnmount as re, openBlock as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, unref as ie, useId as ae, useSlots as oe, watch as C, withCtx as w, withModifiers as T } from "vue";
10
+ import * as se from "@nubisco/ui/icons/arrows-down-up";
11
+ import * as ce from "@nubisco/ui/icons/arrow-up";
12
+ import * as le from "@nubisco/ui/icons/arrow-down";
13
+ //#region src/components/DataTable.vue?vue&type=script&setup=true&lang.ts
14
+ var ue = ["inert", "aria-hidden"], de = { key: 0 }, fe = {
15
+ key: 0,
16
+ class: "nb-data-table__title"
17
+ }, pe = {
18
+ key: 1,
19
+ class: "nb-data-table__description"
20
+ }, me = ["inert", "aria-hidden"], he = {
21
+ key: 1,
22
+ class: "nb-data-table__batch",
23
+ role: "region",
24
+ "aria-label": "Table batch actions"
25
+ }, ge = { class: "nb-data-table__batch-count" }, _e = { class: "nb-data-table__batch-actions" }, ve = { class: "nb-data-table__scroll" }, ye = [
26
+ "role",
27
+ "aria-label",
28
+ "aria-busy"
29
+ ], be = {
30
+ key: 0,
31
+ class: "nb-data-table__col-select"
32
+ }, xe = {
33
+ key: 1,
34
+ class: "nb-data-table__col-actions"
35
+ }, Se = ["role"], Ce = ["role"], we = {
36
+ key: 0,
37
+ scope: "col",
38
+ class: "nb-data-table__th nb-data-table__select-cell"
39
+ }, Te = ["aria-sort"], Ee = ["onClick"], De = { class: "nb-data-table__th-label" }, Oe = {
40
+ key: 1,
41
+ class: "nb-data-table__th-label"
42
+ }, ke = {
43
+ key: 1,
44
+ scope: "col",
45
+ class: "nb-data-table__th nb-data-table__actions-cell"
46
+ }, Ae = ["role"], je = {
47
+ key: 0,
48
+ class: "nb-data-table__td"
49
+ }, Me = {
50
+ key: 1,
51
+ class: "nb-data-table__td"
52
+ }, Ne = {
53
+ key: 1,
54
+ class: "nb-data-table__state-row"
55
+ }, Pe = ["colspan"], Fe = {
56
+ key: 2,
57
+ class: "nb-data-table__state-row"
58
+ }, Ie = ["colspan"], Le = [
59
+ "role",
60
+ "aria-selected",
61
+ "onClick"
62
+ ], Re = [
63
+ "checked",
64
+ "aria-label",
65
+ "onChange"
66
+ ], ze = ["role", "data-label"], Be = {
67
+ key: 1,
68
+ class: "nb-data-table__footer"
69
+ }, E = /* @__PURE__ */ e(/* @__PURE__ */ g({
70
+ __name: "DataTable",
71
+ props: {
72
+ columns: {},
73
+ rows: {},
74
+ rowKey: {},
75
+ size: { default: t.Medium },
76
+ sortState: { default: null },
77
+ selectable: { default: "none" },
78
+ selected: { default: () => [] },
79
+ loading: {
80
+ type: Boolean,
81
+ default: !1
82
+ },
83
+ skeletonRows: { default: 5 },
84
+ error: { default: void 0 },
85
+ emptyMessage: { default: void 0 },
86
+ stickyHeader: {
87
+ type: Boolean,
88
+ default: !0
89
+ },
90
+ zebra: {
91
+ type: Boolean,
92
+ default: !1
93
+ },
94
+ fill: {
95
+ type: Boolean,
96
+ default: !1
97
+ },
98
+ title: { default: void 0 },
99
+ description: { default: void 0 },
100
+ ariaLabel: { default: void 0 },
101
+ stackOnPhone: {
102
+ type: Boolean,
103
+ default: !1
104
+ }
105
+ },
106
+ emits: [
107
+ "sort",
108
+ "update:selected",
109
+ "row-click"
110
+ ],
111
+ setup(e, { emit: t }) {
112
+ let g = e, { layerProps: E } = r(), D = t, O = oe(), Ve = `nb-data-table-select-${ae()}`, He = l(() => g.size), k = l(() => g.columns.filter((e) => !e.hidden)), A = l(() => g.selectable !== "none"), j = l(() => !!O["row-actions"]), Ue = l(() => k.value.length + (A.value ? 1 : 0) + (j.value ? 1 : 0)), { phone: We } = i(), M = l(() => g.stackOnPhone && We.value), Ge = l(() => (k.value.find((e) => e.primary) ?? k.value.find((e) => !e.phoneHidden && !e.phoneMeta))?.key);
113
+ function Ke(e) {
114
+ return e.phoneHidden ? "nb-data-table__td--phone-hidden" : e.key === Ge.value ? "nb-data-table__td--primary" : e.phoneMeta ? "nb-data-table__td--meta" : "nb-data-table__td--field";
115
+ }
116
+ let qe = l(() => !g.loading && !g.error && g.rows.length > 0 && (g.selectable === "multiple" || k.value.some((e) => e.sortable && !e.phoneHidden)));
117
+ function Je(e) {
118
+ if (e.width != null) return { width: typeof e.width == "number" ? `${e.width}px` : e.width };
119
+ }
120
+ function N(e, t) {
121
+ return t[e.key];
122
+ }
123
+ function Ye(e) {
124
+ return e == null ? "" : String(e);
125
+ }
126
+ let P = (e) => e.column.render?.(e.row, N(e.column, e.row), e.rowIndex) ?? null;
127
+ P.props = [
128
+ "column",
129
+ "row",
130
+ "rowIndex"
131
+ ];
132
+ function F(e) {
133
+ let t = g.rowKey;
134
+ return typeof t == "function" ? t(e) : e[t];
135
+ }
136
+ let I = l(() => new Set(g.selected)), Xe = l(() => g.selected), L = l(() => g.selected.length);
137
+ function R(e) {
138
+ return I.value.has(F(e));
139
+ }
140
+ let z = l(() => g.rows.map((e) => F(e))), B = l(() => z.value.length > 0 && z.value.every((e) => I.value.has(e))), Ze = l(() => !B.value && z.value.some((e) => I.value.has(e))), V = y(null), H = !1;
141
+ function U(e) {
142
+ H = e.shiftKey;
143
+ }
144
+ C(z, () => {
145
+ V.value = null;
146
+ });
147
+ function Qe(e, t) {
148
+ let n = F(e), r = new Set(g.selected), i = !r.has(n), a = V.value, o = (e) => {
149
+ i ? r.add(e) : r.delete(e);
150
+ };
151
+ if (H && a !== null && a !== t) {
152
+ let e = Math.min(a, t), n = Math.max(a, t);
153
+ for (let t = e; t <= n; t++) {
154
+ let e = g.rows[t];
155
+ e && o(F(e));
156
+ }
157
+ } else o(n), V.value = t;
158
+ H = !1, D("update:selected", [...r]);
159
+ }
160
+ function $e(e) {
161
+ D("update:selected", [F(e)]);
162
+ }
163
+ function et() {
164
+ let e = new Set(g.selected);
165
+ B.value ? z.value.forEach((t) => e.delete(t)) : z.value.forEach((t) => e.add(t)), D("update:selected", [...e]);
166
+ }
167
+ function W() {
168
+ D("update:selected", []);
169
+ }
170
+ let G = l(() => g.selectable !== "none" && !!O["batch-actions"]), K = l(() => G.value && L.value > 0), tt = l(() => !!g.title || !!g.description || !!O.toolbar || !!O.search || !!O["toolbar-actions"]), nt = l(() => tt.value || G.value), q = y(null), J = y(null), Y = y(null), X = y(!1);
171
+ function Z() {
172
+ let e = J.value, t = Y.value;
173
+ X.value = !!e && !!t && t.offsetTop >= e.offsetTop + e.offsetHeight - 1;
174
+ }
175
+ let Q = null;
176
+ C([
177
+ q,
178
+ J,
179
+ Y
180
+ ], (e) => {
181
+ if (Q?.disconnect(), Z(), !(typeof ResizeObserver > "u")) {
182
+ Q ??= new ResizeObserver(Z);
183
+ for (let t of e) t && Q.observe(t);
184
+ }
185
+ }, { flush: "post" }), re(() => {
186
+ Q?.disconnect(), Q = null;
187
+ });
188
+ function $(e) {
189
+ return !!g.sortState && g.sortState.key === e.key && g.sortState.direction !== "none";
190
+ }
191
+ function rt(e) {
192
+ return $(e) ? g.sortState.direction === "asc" ? "ascending" : "descending" : "none";
193
+ }
194
+ function it(e) {
195
+ return $(e) ? g.sortState.direction === "asc" ? ce : le : se;
196
+ }
197
+ function at(e) {
198
+ return e === "asc" ? "desc" : e === "desc" ? "none" : "asc";
199
+ }
200
+ function ot(e) {
201
+ let t = g.sortState && g.sortState.key === e.key ? g.sortState.direction : "none";
202
+ D("sort", {
203
+ key: e.key,
204
+ direction: at(t)
205
+ });
206
+ }
207
+ let st = ee(), ct = l(() => !!st?.vnode.props?.onRowClick);
208
+ function lt(e, t) {
209
+ D("row-click", e, t);
210
+ }
211
+ return (t, r) => (v(), f("div", te({ class: [
212
+ "nb-data-table",
213
+ `nb-data-table--${e.size}`,
214
+ { "nb-data-table--zebra": e.zebra },
215
+ { "nb-data-table--sticky": e.stickyHeader },
216
+ { "nb-data-table--fill": e.fill },
217
+ { "nb-data-table--stacked": M.value },
218
+ { "nb-data-table--stacked-headless": M.value && !qe.value }
219
+ ] }, ie(E)), [
220
+ nt.value ? (v(), f("div", {
221
+ key: 0,
222
+ ref_key: "toolbarRef",
223
+ ref: q,
224
+ class: _(["nb-data-table__toolbar", { "nb-data-table__toolbar--wrapped": X.value }])
225
+ }, [
226
+ p("div", {
227
+ ref_key: "toolbarHeadingRef",
228
+ ref: J,
229
+ class: "nb-data-table__toolbar-heading",
230
+ inert: K.value || void 0,
231
+ "aria-hidden": K.value || void 0
232
+ }, [x(t.$slots, "toolbar", { selectedCount: L.value }, () => [e.title || e.description ? (v(), f("div", de, [e.title ? (v(), f("h2", fe, S(e.title), 1)) : d("", !0), e.description ? (v(), f("p", pe, S(e.description), 1)) : d("", !0)])) : d("", !0)], !0)], 8, ue),
233
+ t.$slots.search || t.$slots["toolbar-actions"] ? (v(), f("div", {
234
+ key: 0,
235
+ ref_key: "toolbarToolsRef",
236
+ ref: Y,
237
+ class: _(["nb-data-table__toolbar-tools", { "nb-data-table__toolbar-tools--grow-search": X.value && !!t.$slots.search }]),
238
+ inert: K.value || void 0,
239
+ "aria-hidden": K.value || void 0
240
+ }, [x(t.$slots, "search", {}, void 0, !0), x(t.$slots, "toolbar-actions", {}, void 0, !0)], 10, me)) : d("", !0),
241
+ K.value ? (v(), f("div", he, [
242
+ p("span", ge, S(L.value) + " selected ", 1),
243
+ p("div", _e, [x(t.$slots, "batch-actions", {
244
+ selectedKeys: Xe.value,
245
+ clear: W
246
+ }, void 0, !0)]),
247
+ h(a, {
248
+ class: "nb-data-table__batch-cancel",
249
+ variant: "ghost",
250
+ size: He.value,
251
+ onClick: W
252
+ }, {
253
+ default: w(() => [...r[2] ||= [m(" Cancel ", -1)]]),
254
+ _: 1
255
+ }, 8, ["size"])
256
+ ])) : d("", !0)
257
+ ], 2)) : d("", !0),
258
+ p("div", ve, [p("table", {
259
+ class: "nb-data-table__table",
260
+ role: M.value ? "table" : void 0,
261
+ "aria-label": e.ariaLabel || e.title || void 0,
262
+ "aria-busy": e.loading || void 0
263
+ }, [
264
+ p("colgroup", null, [
265
+ A.value ? (v(), f("col", be)) : d("", !0),
266
+ (v(!0), f(c, null, b(k.value, (e) => (v(), f("col", {
267
+ key: `col-${e.key}`,
268
+ style: ne(Je(e))
269
+ }, null, 4))), 128)),
270
+ j.value ? (v(), f("col", xe)) : d("", !0)
271
+ ]),
272
+ p("thead", {
273
+ class: "nb-data-table__head",
274
+ role: M.value ? "rowgroup" : void 0
275
+ }, [p("tr", { role: M.value ? "row" : void 0 }, [
276
+ A.value ? (v(), f("th", we, [e.selectable === "multiple" ? (v(), u(s, {
277
+ key: 0,
278
+ "model-value": B.value,
279
+ indeterminate: Ze.value,
280
+ "aria-label": "Select all rows",
281
+ "onUpdate:modelValue": et
282
+ }, null, 8, ["model-value", "indeterminate"])) : d("", !0)])) : d("", !0),
283
+ (v(!0), f(c, null, b(k.value, (e) => (v(), f("th", {
284
+ key: `th-${e.key}`,
285
+ scope: "col",
286
+ class: _([
287
+ "nb-data-table__th",
288
+ `nb-data-table__th--${e.align || "left"}`,
289
+ { "nb-data-table__th--sortable": e.sortable },
290
+ { "nb-data-table__th--sorted": $(e) },
291
+ M.value && e.phoneHidden && "nb-data-table__th--phone-hidden"
292
+ ]),
293
+ "aria-sort": e.sortable ? rt(e) : void 0
294
+ }, [e.sortable ? (v(), f("button", {
295
+ key: 0,
296
+ type: "button",
297
+ class: "nb-data-table__sort",
298
+ onClick: (t) => ot(e)
299
+ }, [p("span", De, [x(t.$slots, `header-${e.key}`, { column: e }, () => [m(S(e.header), 1)], !0)]), h(n, {
300
+ name: it(e),
301
+ class: "nb-data-table__sort-icon",
302
+ "aria-hidden": "true"
303
+ }, null, 8, ["name"])], 8, Ee)) : (v(), f("span", Oe, [x(t.$slots, `header-${e.key}`, { column: e }, () => [m(S(e.header), 1)], !0)]))], 10, Te))), 128)),
304
+ j.value ? (v(), f("th", ke, [...r[3] ||= [p("span", { class: "nb-sr-only" }, "Row actions", -1)]])) : d("", !0)
305
+ ], 8, Ce)], 8, Se),
306
+ p("tbody", {
307
+ class: "nb-data-table__body",
308
+ role: M.value ? "rowgroup" : void 0
309
+ }, [e.loading ? (v(!0), f(c, { key: 0 }, b(e.skeletonRows, (e) => (v(), f("tr", {
310
+ key: `skeleton-${e}`,
311
+ class: "nb-data-table__row nb-data-table__row--skeleton"
312
+ }, [
313
+ A.value ? (v(), f("td", je, [...r[4] ||= [p("span", { class: "nb-data-table__skeleton nb-data-table__skeleton--box" }, null, -1)]])) : d("", !0),
314
+ (v(!0), f(c, null, b(k.value, (t) => (v(), f("td", {
315
+ key: `sk-${e}-${t.key}`,
316
+ class: "nb-data-table__td"
317
+ }, [...r[5] ||= [p("span", { class: "nb-data-table__skeleton" }, null, -1)]]))), 128)),
318
+ j.value ? (v(), f("td", Me, [...r[6] ||= [p("span", { class: "nb-data-table__skeleton nb-data-table__skeleton--box" }, null, -1)]])) : d("", !0)
319
+ ]))), 128)) : e.error ? (v(), f("tr", Ne, [p("td", {
320
+ colspan: Ue.value,
321
+ class: "nb-data-table__state nb-data-table__state--error"
322
+ }, [x(t.$slots, "error", { error: e.error }, () => [h(o, {
323
+ is: "span",
324
+ align: "center",
325
+ justify: "center",
326
+ gap: "xs",
327
+ class: "nb-data-table__state-inner"
328
+ }, {
329
+ default: w(() => [h(n, {
330
+ name: "warning-circle-fill",
331
+ "aria-hidden": "true"
332
+ }), p("span", null, S(e.error), 1)]),
333
+ _: 1
334
+ })], !0)], 8, Pe)])) : e.rows.length ? (v(!0), f(c, { key: 3 }, b(e.rows, (n, i) => (v(), f("tr", {
335
+ key: F(n),
336
+ class: _([
337
+ "nb-data-table__row",
338
+ { "nb-data-table__row--selected": R(n) },
339
+ { "nb-data-table__row--clickable": ct.value }
340
+ ]),
341
+ role: M.value ? "row" : void 0,
342
+ "aria-selected": e.selectable === "none" ? void 0 : R(n),
343
+ onClick: (e) => lt(n, i)
344
+ }, [
345
+ A.value ? (v(), f("td", {
346
+ key: 0,
347
+ class: "nb-data-table__td nb-data-table__select-cell",
348
+ onClick: r[0] ||= T(() => {}, ["stop"]),
349
+ onMousedown: U,
350
+ onKeydown: U
351
+ }, [e.selectable === "multiple" ? (v(), u(s, {
352
+ key: 0,
353
+ "model-value": R(n),
354
+ "aria-label": `Select row ${i + 1}`,
355
+ "onUpdate:modelValue": (e) => Qe(n, i)
356
+ }, null, 8, [
357
+ "model-value",
358
+ "aria-label",
359
+ "onUpdate:modelValue"
360
+ ])) : (v(), f("input", {
361
+ key: 1,
362
+ type: "radio",
363
+ class: "nb-data-table__radio",
364
+ name: Ve,
365
+ checked: R(n),
366
+ "aria-label": `Select row ${i + 1}`,
367
+ onChange: (e) => $e(n)
368
+ }, null, 40, Re))], 32)) : d("", !0),
369
+ (v(!0), f(c, null, b(k.value, (r) => (v(), f("td", {
370
+ key: `td-${F(n)}-${r.key}`,
371
+ class: _([
372
+ "nb-data-table__td",
373
+ `nb-data-table__td--${r.align || "left"}`,
374
+ r.cellClass,
375
+ M.value && Ke(r)
376
+ ]),
377
+ role: M.value ? "cell" : void 0,
378
+ "data-label": e.stackOnPhone ? r.header : void 0
379
+ }, [x(t.$slots, `cell-${r.key}`, {
380
+ row: n,
381
+ value: N(r, n),
382
+ column: r,
383
+ rowIndex: i
384
+ }, () => [r.render ? (v(), u(P, {
385
+ key: 0,
386
+ column: r,
387
+ row: n,
388
+ "row-index": i
389
+ }, null, 8, [
390
+ "column",
391
+ "row",
392
+ "row-index"
393
+ ])) : (v(), f(c, { key: 1 }, [m(S(Ye(N(r, n))), 1)], 64))], !0)], 10, ze))), 128)),
394
+ j.value ? (v(), f("td", {
395
+ key: 1,
396
+ class: "nb-data-table__td nb-data-table__actions-cell",
397
+ onClick: r[1] ||= T(() => {}, ["stop"])
398
+ }, [x(t.$slots, "row-actions", {
399
+ row: n,
400
+ rowIndex: i
401
+ }, void 0, !0)])) : d("", !0)
402
+ ], 10, Le))), 128)) : (v(), f("tr", Fe, [p("td", {
403
+ colspan: Ue.value,
404
+ class: "nb-data-table__state nb-data-table__state--empty"
405
+ }, [x(t.$slots, "empty", {}, () => [p("span", null, S(e.emptyMessage || "No data to display"), 1)], !0)], 8, Ie)]))], 8, Ae)
406
+ ], 8, ye)]),
407
+ t.$slots.footer ? (v(), f("div", Be, [x(t.$slots, "footer", {}, void 0, !0)])) : d("", !0)
408
+ ], 16));
409
+ }
410
+ }), [["__scopeId", "data-v-0d151db9"]]);
411
+ //#endregion
412
+ export { E as t };