@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,437 +0,0 @@
1
- import { t as e } from "./Icon-rREAqsu0.js";
2
- import { t } from "./Label-DGK5nxFy.js";
3
- import { t as n } from "./Message-CHkTWe0K.js";
4
- import { t as r } from "./Grid-iox-7xyH.js";
5
- import { useMenuSurface as i } from "./composables/useMenuSurface.composable.mjs";
6
- import { Fragment as a, Teleport as ee, 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, normalizeStyle as te, onBeforeUnmount as g, openBlock as _, ref as v, renderList as y, renderSlot as b, toDisplayString as x, unref as S, useId as C, vModelText as ne, watch as re, withCtx as w, withDirectives as ie, withKeys as ae, withModifiers as T } from "vue";
7
- import { regular as E } from "@nubisco/ui/icons/caret-down";
8
- import { regular as D } from "@nubisco/ui/icons/caret-up";
9
- //#region src/components/Select.vue?vue&type=script&setup=true&lang.ts
10
- var oe = [
11
- "id",
12
- "aria-expanded",
13
- "aria-disabled",
14
- "aria-required",
15
- "disabled"
16
- ], se = [
17
- "id",
18
- "aria-expanded",
19
- "aria-disabled",
20
- "aria-required",
21
- "disabled"
22
- ], O = {
23
- key: 1,
24
- class: "nb-select__inner-label"
25
- }, ce = {
26
- key: 0,
27
- class: "nb-select__asterisk",
28
- "aria-hidden": "true"
29
- }, le = ["aria-multiselectable"], ue = ["aria-labelledby"], de = ["id"], fe = [
30
- "aria-selected",
31
- "aria-disabled",
32
- "onMouseenter",
33
- "onClick"
34
- ], pe = {
35
- key: 0,
36
- class: "nb-select__option-check",
37
- "aria-hidden": "true"
38
- }, me = {
39
- key: 0,
40
- viewBox: "0 0 10 8",
41
- fill: "none",
42
- width: "10",
43
- height: "8"
44
- }, he = { class: "nb-select__option-label" }, ge = {
45
- key: 0,
46
- class: "nb-select__empty"
47
- }, _e = ["placeholder", "onKeydown"], k = /* @__PURE__ */ p({
48
- __name: "Select",
49
- props: {
50
- modelValue: { default: null },
51
- options: { default: () => [] },
52
- multiple: {
53
- type: Boolean,
54
- default: !1
55
- },
56
- creatable: {
57
- type: Boolean,
58
- default: !1
59
- },
60
- createPlaceholder: { default: "" },
61
- placeholder: { default: "Select…" },
62
- name: { default: "" },
63
- disabled: {
64
- type: Boolean,
65
- default: !1
66
- },
67
- required: {
68
- type: Boolean,
69
- default: !1
70
- },
71
- id: { default: void 0 },
72
- label: { default: "" },
73
- error: { default: "" },
74
- warning: { default: "" },
75
- helper: { default: "" },
76
- variant: { default: "default" },
77
- size: { default: "md" }
78
- },
79
- emits: [
80
- "update:modelValue",
81
- "change",
82
- "create"
83
- ],
84
- setup(p, { expose: k, emit: ve }) {
85
- let A = p, j = ve, M = v("");
86
- function ye() {
87
- let e = M.value.trim();
88
- e && (j("create", e), M.value = "");
89
- }
90
- let N = v(!1), P = v(!1), F = v(-1), I = v(null), L = v(null), R = v(null);
91
- i(R);
92
- let z = v({
93
- position: "fixed",
94
- top: "0px",
95
- left: "0px",
96
- width: "0px",
97
- zIndex: "9999"
98
- }), be = `nb-select-${C()}`, B = o(() => A.id ?? be), V = o(() => A.modelValue == null ? [] : Array.isArray(A.modelValue) ? A.modelValue : [A.modelValue]), H = o(() => {
99
- if (!(A.multiple || V.value.length !== 1)) return (A.options ?? []).find((e) => e.value === V.value[0])?.icon;
100
- }), U = o(() => {
101
- if (V.value.length === 0) return "";
102
- let e = A.options ?? [];
103
- return A.multiple ? V.value.length === 1 ? e.find((e) => e.value === V.value[0])?.label ?? String(V.value[0]) : V.value.length === 2 ? V.value.map((t) => e.find((e) => e.value === t)?.label ?? String(t)).join(", ") : `${V.value.length} selected` : e.find((e) => e.value === V.value[0])?.label ?? String(V.value[0]);
104
- });
105
- function W(e) {
106
- return V.value.includes(e);
107
- }
108
- let xe = o(() => {
109
- let e = [];
110
- return (A.options ?? []).forEach((t, n) => {
111
- let r = e[e.length - 1];
112
- (!r || r.name !== t.group) && e.push({
113
- key: `${e.length}:${t.group ?? ""}`,
114
- name: t.group,
115
- labelId: `${B.value}-group-${e.length}`,
116
- entries: []
117
- }), e[e.length - 1].entries.push({
118
- option: t,
119
- index: n
120
- });
121
- }), e;
122
- });
123
- function G(e, t) {
124
- let n = A.options ?? [];
125
- for (let r = e + t; r >= 0 && r < n.length; r += t) if (!n[r].disabled) return r;
126
- return e;
127
- }
128
- function K(e) {
129
- if (e.disabled) return;
130
- let t;
131
- if (A.multiple) {
132
- let n = [...V.value], r = n.indexOf(e.value);
133
- r >= 0 ? n.splice(r, 1) : n.push(e.value), t = n;
134
- } else t = e.value, Y();
135
- j("update:modelValue", t), j("change", t);
136
- }
137
- function q() {
138
- if (!L.value) return;
139
- let e = L.value.getBoundingClientRect(), t = R.value?.offsetHeight ?? 0, n = window.innerHeight - e.bottom, r = e.top;
140
- z.value = {
141
- position: "fixed",
142
- top: t > 0 && n < t && r > n ? `${e.top - t}px` : `${e.bottom}px`,
143
- left: `${e.left}px`,
144
- width: `${e.width}px`,
145
- zIndex: "9999"
146
- };
147
- }
148
- function J() {
149
- if (A.disabled) return;
150
- N.value = !0, q();
151
- let e = A.options ?? [];
152
- F.value = V.value.length > 0 ? Math.max(0, e.findIndex((e) => e.value === V.value[0])) : -1, m(() => {
153
- q(), $();
154
- });
155
- }
156
- function Y() {
157
- N.value = !1, F.value = -1;
158
- }
159
- function X() {
160
- N.value ? Y() : J();
161
- }
162
- function Z(e) {
163
- let t = e.target, n = I.value?.contains(t) ?? !1, r = R.value?.contains(t) ?? !1;
164
- !n && !r && Y();
165
- }
166
- function Q() {
167
- N.value && q();
168
- }
169
- re(N, (e) => {
170
- e ? (document.addEventListener("mousedown", Z), window.addEventListener("scroll", Q, !0), window.addEventListener("resize", Q)) : (document.removeEventListener("mousedown", Z), window.removeEventListener("scroll", Q, !0), window.removeEventListener("resize", Q));
171
- }), g(() => {
172
- document.removeEventListener("mousedown", Z), window.removeEventListener("scroll", Q, !0), window.removeEventListener("resize", Q);
173
- });
174
- function Se(e) {
175
- let t = A.options ?? [];
176
- if (!N.value) {
177
- (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), J());
178
- return;
179
- }
180
- e.key === "Escape" ? (Y(), e.preventDefault()) : e.key === "Tab" ? Y() : e.key === "ArrowDown" ? (e.preventDefault(), F.value = G(F.value, 1), $()) : e.key === "ArrowUp" ? (e.preventDefault(), F.value > 0 && (F.value = G(F.value, -1)), $()) : (e.key === "Enter" || e.key === " ") && F.value >= 0 && (e.preventDefault(), K(t[F.value]));
181
- }
182
- function $() {
183
- m(() => {
184
- !R.value || F.value < 0 || R.value.querySelectorAll(".nb-select__option")[F.value]?.scrollIntoView({ block: "nearest" });
185
- });
186
- }
187
- let Ce = o(() => [
188
- "nb-select",
189
- `nb-select--${A.variant}`,
190
- `nb-select--${A.size}`,
191
- {
192
- "nb-select--open": N.value,
193
- "nb-select--focused": P.value && !N.value,
194
- "nb-select--error": !!A.error,
195
- "nb-select--warning": !A.error && !!A.warning,
196
- "nb-select--multiple": A.multiple
197
- }
198
- ]);
199
- return k({
200
- open: J,
201
- close: Y
202
- }), (i, o) => (_(), l(a, null, [u("div", {
203
- ref_key: "rootRef",
204
- ref: I,
205
- class: h(Ce.value),
206
- onKeydown: Se
207
- }, [p.variant === "default" ? (_(), l(a, { key: 0 }, [
208
- i.$slots.label ? b(i.$slots, "label", { key: 0 }) : p.label ? (_(), s(t, {
209
- key: 1,
210
- for: B.value,
211
- required: p.required,
212
- disabled: p.disabled
213
- }, {
214
- default: w(() => [d(x(p.label), 1)]),
215
- _: 1
216
- }, 8, [
217
- "for",
218
- "required",
219
- "disabled"
220
- ])) : c("", !0),
221
- u("button", {
222
- id: B.value,
223
- ref_key: "triggerRef",
224
- ref: L,
225
- type: "button",
226
- class: "nb-select__trigger",
227
- role: "combobox",
228
- "aria-expanded": N.value,
229
- "aria-haspopup": "listbox",
230
- "aria-disabled": p.disabled || void 0,
231
- "aria-required": p.required || void 0,
232
- disabled: p.disabled || void 0,
233
- onClick: X,
234
- onFocus: o[0] ||= (e) => P.value = !0,
235
- onBlur: o[1] ||= (e) => P.value = !1
236
- }, [
237
- u("span", { class: h(["nb-select__value", {
238
- "nb-select__value--placeholder": !U.value,
239
- "nb-select__value--with-icon": !!H.value
240
- }]) }, [H.value ? (_(), s(e, {
241
- key: 0,
242
- class: "nb-select__value-icon",
243
- name: H.value,
244
- size: 16
245
- }, null, 8, ["name"])) : c("", !0), U.value ? b(i.$slots, "value", {
246
- key: 1,
247
- values: V.value
248
- }, () => [d(x(U.value), 1)]) : (_(), l(a, { key: 2 }, [d(x(p.placeholder), 1)], 64))], 2),
249
- p.error ? (_(), s(n, {
250
- key: 0,
251
- variant: "error",
252
- "icon-only": !0,
253
- class: "nb-select__status-icon"
254
- }, {
255
- default: w(() => [d(x(p.error), 1)]),
256
- _: 1
257
- })) : p.warning ? (_(), s(n, {
258
- key: 1,
259
- variant: "warning",
260
- "icon-only": !0,
261
- class: "nb-select__status-icon"
262
- }, {
263
- default: w(() => [d(x(p.warning), 1)]),
264
- _: 1
265
- })) : c("", !0),
266
- f(r, {
267
- align: "center",
268
- justify: "center",
269
- class: "nb-select__caret"
270
- }, {
271
- default: w(() => [f(e, {
272
- name: N.value ? S(D) : S(E),
273
- size: 16
274
- }, null, 8, ["name"])]),
275
- _: 1
276
- })
277
- ], 40, oe),
278
- p.error ? (_(), s(n, {
279
- key: 2,
280
- variant: "error",
281
- class: "nb-select__message"
282
- }, {
283
- default: w(() => [d(x(p.error), 1)]),
284
- _: 1
285
- })) : p.warning ? (_(), s(n, {
286
- key: 3,
287
- variant: "warning",
288
- class: "nb-select__message"
289
- }, {
290
- default: w(() => [d(x(p.warning), 1)]),
291
- _: 1
292
- })) : p.helper ? (_(), s(n, {
293
- key: 4,
294
- variant: "helper",
295
- class: "nb-select__message"
296
- }, {
297
- default: w(() => [d(x(p.helper), 1)]),
298
- _: 1
299
- })) : c("", !0)
300
- ], 64)) : p.variant === "fluid" ? (_(), l(a, { key: 1 }, [u("button", {
301
- id: B.value,
302
- ref_key: "triggerRef",
303
- ref: L,
304
- type: "button",
305
- class: "nb-select__trigger",
306
- role: "combobox",
307
- "aria-expanded": N.value,
308
- "aria-haspopup": "listbox",
309
- "aria-disabled": p.disabled || void 0,
310
- "aria-required": p.required || void 0,
311
- disabled: p.disabled || void 0,
312
- onClick: X,
313
- onFocus: o[2] ||= (e) => P.value = !0,
314
- onBlur: o[3] ||= (e) => P.value = !1
315
- }, [p.label || i.$slots.label ? (_(), s(r, {
316
- key: 0,
317
- dir: "row",
318
- align: "center",
319
- gap: "xs",
320
- class: "nb-select__inner-header"
321
- }, {
322
- default: w(() => [i.$slots.label ? b(i.$slots, "label", { key: 0 }) : (_(), l("label", O, [d(x(p.label) + " ", 1), p.required ? (_(), l("span", ce, "*")) : c("", !0)])), p.helper && !p.error && !p.warning ? (_(), s(n, {
323
- key: 2,
324
- variant: "helper",
325
- "icon-only": !0,
326
- class: "nb-select__inner-message"
327
- }, {
328
- default: w(() => [d(x(p.helper), 1)]),
329
- _: 1
330
- })) : c("", !0)]),
331
- _: 3
332
- })) : c("", !0), f(r, {
333
- dir: "row",
334
- align: "end",
335
- flex: "",
336
- class: "nb-select__value-row"
337
- }, {
338
- default: w(() => [u("span", { class: h(["nb-select__value", {
339
- "nb-select__value--placeholder": !U.value,
340
- "nb-select__value--with-icon": !!H.value
341
- }]) }, [H.value ? (_(), s(e, {
342
- key: 0,
343
- class: "nb-select__value-icon",
344
- name: H.value,
345
- size: 16
346
- }, null, 8, ["name"])) : c("", !0), U.value ? b(i.$slots, "value", {
347
- key: 1,
348
- values: V.value
349
- }, () => [d(x(U.value), 1)]) : (_(), l(a, { key: 2 }, [d(x(p.placeholder), 1)], 64))], 2), f(r, {
350
- align: "center",
351
- justify: "center",
352
- class: "nb-select__caret"
353
- }, {
354
- default: w(() => [f(e, {
355
- name: N.value ? S(D) : S(E),
356
- size: 16
357
- }, null, 8, ["name"])]),
358
- _: 1
359
- })]),
360
- _: 3
361
- })], 40, se), p.error ? (_(), s(n, {
362
- key: 0,
363
- variant: "error",
364
- class: "nb-select__fluid-message"
365
- }, {
366
- default: w(() => [d(x(p.error), 1)]),
367
- _: 1
368
- })) : p.warning ? (_(), s(n, {
369
- key: 1,
370
- variant: "warning",
371
- class: "nb-select__fluid-message"
372
- }, {
373
- default: w(() => [d(x(p.warning), 1)]),
374
- _: 1
375
- })) : c("", !0)], 64)) : c("", !0)], 34), (_(), s(ee, { to: "body" }, [N.value ? (_(), l("div", {
376
- key: 0,
377
- ref_key: "dropdownRef",
378
- ref: R,
379
- class: "nb-select__dropdown",
380
- style: te(z.value),
381
- role: "listbox",
382
- "aria-multiselectable": p.multiple || void 0
383
- }, [
384
- (_(!0), l(a, null, y(xe.value, (t) => (_(), l("div", {
385
- key: t.key,
386
- class: "nb-select__group",
387
- role: "group",
388
- "aria-labelledby": t.name ? t.labelId : void 0
389
- }, [t.name ? (_(), l("div", {
390
- key: 0,
391
- id: t.labelId,
392
- class: "nb-select__group-label"
393
- }, x(t.name), 9, de)) : c("", !0), (_(!0), l(a, null, y(t.entries, (t) => (_(), l("div", {
394
- key: t.option.value,
395
- class: h(["nb-select__option", {
396
- "nb-select__option--selected": W(t.option.value),
397
- "nb-select__option--highlighted": F.value === t.index,
398
- "nb-select__option--disabled": t.option.disabled
399
- }]),
400
- role: "option",
401
- "aria-selected": W(t.option.value),
402
- "aria-disabled": t.option.disabled || void 0,
403
- onMouseenter: (e) => F.value = t.index,
404
- onClick: (e) => K(t.option)
405
- }, [
406
- p.multiple ? (_(), l("span", pe, [W(t.option.value) ? (_(), l("svg", me, [...o[7] ||= [u("path", {
407
- d: "M1 4l3 3 5-6",
408
- stroke: "currentColor",
409
- "stroke-width": "1.5",
410
- "stroke-linecap": "round",
411
- "stroke-linejoin": "round"
412
- }, null, -1)]])) : c("", !0)])) : c("", !0),
413
- t.option.icon ? (_(), s(e, {
414
- key: 1,
415
- class: "nb-select__option-icon",
416
- name: t.option.icon,
417
- size: 16
418
- }, null, 8, ["name"])) : c("", !0),
419
- u("span", he, [b(i.$slots, "option", { option: t.option }, () => [d(x(t.option.label), 1)])])
420
- ], 42, fe))), 128))], 8, ue))), 128)),
421
- !p.options || p.options.length === 0 ? (_(), l("div", ge, " No options ")) : c("", !0),
422
- p.creatable ? (_(), l("div", {
423
- key: 1,
424
- class: "nb-select__create",
425
- onMousedown: o[6] ||= T(() => {}, ["prevent"])
426
- }, [ie(u("input", {
427
- "onUpdate:modelValue": o[4] ||= (e) => M.value = e,
428
- type: "text",
429
- class: "nb-select__create-input",
430
- placeholder: p.createPlaceholder || "Add new…",
431
- onKeydown: [ae(T(ye, ["prevent"]), ["enter"]), o[5] ||= T(() => {}, ["stop"])]
432
- }, null, 40, _e), [[ne, M.value]])], 32)) : c("", !0)
433
- ], 12, le)) : c("", !0)]))], 64));
434
- }
435
- });
436
- //#endregion
437
- export { k as t };
@@ -1 +0,0 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Icon-C8R_r_In.cjs`),n=require(`./composables/useStableId.composable.cjs`),r=require(`./composables/usePhoneLayout.composable.cjs`),i=require(`./utils/slotContent.helper.cjs`),a=require(`./Badge-Dkm7PBJ8.cjs`);let o=require(`vue`);var s=function(e){return e.Line=`line`,e.Contained=`contained`,e}(s||{}),c=function(e){return e.Small=`sm`,e.Medium=`md`,e.Large=`lg`,e}(c||{}),l=[`aria-label`],u=[`id`,`data-tab-id`,`aria-selected`,`aria-controls`,`tabindex`,`disabled`,`onClick`],d={class:`nb-tabs__label`},f=[`id`,`aria-labelledby`],p=24,m=(0,o.defineComponent)({__name:`Tabs`,props:{items:{},ariaLabel:{default:void 0},modelValue:{default:void 0},variant:{default:s.Line},size:{default:c.Medium},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},id:{default:void 0}},emits:[`update:modelValue`,`change`],setup(e,{emit:s}){let m=e,h=s,g=(0,o.useSlots)(),_=n.useStableId(m),v=(0,o.ref)(null),y=(0,o.computed)(()=>m.items.filter(e=>!w(e))),b=(0,o.ref)(m.modelValue??y.value[0]?.id);(0,o.watch)(()=>m.modelValue,e=>{e!=null&&(b.value=e)});let x=(0,o.computed)(()=>{let e=m.modelValue??b.value,t=m.items.find(t=>t.id===e);return t&&!w(t)?t.id:y.value[0]?.id}),S=(0,o.computed)(()=>m.size===c.Large?18:16),C=(0,o.computed)(()=>[`nb-tabs`,`nb-tabs--${m.variant}`,`nb-tabs--${m.size}`,{"nb-tabs--full-width":m.fullWidth,"nb-tabs--disabled":m.disabled}]);function w(e){return m.disabled||!!e.disabled}function T(e){return`${_}-tab-${e}`}function E(e){return`${_}-panel-${e}`}function D(e){return i.hasSlotContent(g,e)}function O(e){w(e)||e.id===x.value||(b.value=e.id,h(`update:modelValue`,e.id),h(`change`,e.id,e))}function k(e){(v.value?.querySelectorAll(`[data-tab-id]`))?.forEach(t=>{t.dataset.tabId===e&&t.focus()})}function A(e){let t=y.value;if(!t.length)return;let n=t[(t.findIndex(e=>e.id===x.value)+e+t.length)%t.length];O(n),k(n.id)}function j(e){e&&(O(e),k(e.id))}let{phone:M}=r.usePhoneLayout(),N=(0,o.ref)(!1),P=(0,o.ref)(!1);function F(){let e=v.value;if(!M.value||!e)return;let t=e.scrollWidth-e.clientWidth;N.value=e.scrollLeft>1,P.value=e.scrollLeft<t-1}function I(){let e=v.value;if(!M.value||!e)return;let t=[...e.querySelectorAll(`[data-tab-id]`)].find(e=>e.dataset.tabId===x.value);if(t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=r.left-n.left+e.scrollLeft,a=i+r.width,o=t===e.firstElementChild,s=t===e.lastElementChild;i<e.scrollLeft+(o?0:p)?e.scrollLeft=Math.max(0,o?0:i-p):a>e.scrollLeft+e.clientWidth-(s?0:p)&&(e.scrollLeft=a-e.clientWidth+(s?0:p))}F()}(0,o.watch)([x,M],()=>(0,o.nextTick)(I));function L(){I()}(0,o.onMounted)(()=>{I(),window.addEventListener(`resize`,L,{passive:!0})}),(0,o.onBeforeUnmount)(()=>{window.removeEventListener(`resize`,L)});function R(e){switch(e.key){case`ArrowRight`:A(1);break;case`ArrowLeft`:A(-1);break;case`Home`:j(y.value[0]);break;case`End`:j(y.value[y.value.length-1]);break;default:return}e.preventDefault()}return(n,r)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{class:(0,o.normalizeClass)(C.value)},[(0,o.createElementVNode)(`div`,{ref_key:`listRef`,ref:v,class:(0,o.normalizeClass)([`nb-tabs__list`,{"nb-tabs__list--fade-start":(0,o.unref)(M)&&N.value,"nb-tabs__list--fade-end":(0,o.unref)(M)&&P.value}]),role:`tablist`,"aria-label":e.ariaLabel||void 0,onKeydown:R,onScrollPassive:F},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.items,e=>((0,o.openBlock)(),(0,o.createElementBlock)(`button`,{id:T(e.id),key:e.id,"data-tab-id":e.id,type:`button`,role:`tab`,class:(0,o.normalizeClass)([`nb-tabs__tab`,{"nb-tabs__tab--active":e.id===x.value}]),"aria-selected":e.id===x.value,"aria-controls":D(e.id)?E(e.id):void 0,tabindex:e.id===x.value?0:-1,disabled:w(e),onClick:t=>O(e)},[e.icon?((0,o.openBlock)(),(0,o.createBlock)(t.t,{key:0,name:e.icon,size:S.value,class:`nb-tabs__icon`},null,8,[`name`,`size`])):(0,o.createCommentVNode)(``,!0),(0,o.createElementVNode)(`span`,d,(0,o.toDisplayString)(e.label),1),e.badge==null?(0,o.createCommentVNode)(``,!0):((0,o.openBlock)(),(0,o.createBlock)(a.t,{key:1,size:`sm`,class:`nb-tabs__badge`},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.badge),1)]),_:2},1024))],10,u))),128))],42,l),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.items,e=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:`panel-${e.id}`},[e.id===x.value&&D(e.id)?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:0,id:E(e.id),class:`nb-tabs__panel`,role:`tabpanel`,"aria-labelledby":T(e.id),tabindex:`0`},[(0,o.renderSlot)(n.$slots,e.id,{item:e},void 0,!0)],8,f)):(0,o.createCommentVNode)(``,!0)],64))),128))],2))}}),h=e.t(m,[[`__scopeId`,`data-v-fecb01d1`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
@@ -1,180 +0,0 @@
1
- import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
- import { t } from "./Icon-rREAqsu0.js";
3
- import { useStableId as n } from "./composables/useStableId.composable.mjs";
4
- import { usePhoneLayout as r } from "./composables/usePhoneLayout.composable.mjs";
5
- import { hasSlotContent as i } from "./utils/slotContent.helper.mjs";
6
- import { t as a } from "./Badge-D3oJVwDo.js";
7
- import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, unref as C, useSlots as w, watch as T, withCtx as E } from "vue";
8
- //#region src/components/Tabs.d.ts
9
- var D = /* @__PURE__ */ function(e) {
10
- return e.Line = "line", e.Contained = "contained", e;
11
- }(D || {}), O = /* @__PURE__ */ function(e) {
12
- return e.Small = "sm", e.Medium = "md", e.Large = "lg", e;
13
- }(O || {}), k = ["aria-label"], A = [
14
- "id",
15
- "data-tab-id",
16
- "aria-selected",
17
- "aria-controls",
18
- "tabindex",
19
- "disabled",
20
- "onClick"
21
- ], ee = { class: "nb-tabs__label" }, j = ["id", "aria-labelledby"], M = 24, N = /* @__PURE__ */ e(/* @__PURE__ */ p({
22
- __name: "Tabs",
23
- props: {
24
- items: {},
25
- ariaLabel: { default: void 0 },
26
- modelValue: { default: void 0 },
27
- variant: { default: D.Line },
28
- size: { default: O.Medium },
29
- disabled: {
30
- type: Boolean,
31
- default: !1
32
- },
33
- fullWidth: {
34
- type: Boolean,
35
- default: !1
36
- },
37
- id: { default: void 0 }
38
- },
39
- emits: ["update:modelValue", "change"],
40
- setup(e, { emit: p }) {
41
- let D = e, N = p, P = w(), F = n(D), I = y(null), L = s(() => D.items.filter((e) => !B(e))), R = y(D.modelValue ?? L.value[0]?.id);
42
- T(() => D.modelValue, (e) => {
43
- e != null && (R.value = e);
44
- });
45
- let z = s(() => {
46
- let e = D.modelValue ?? R.value, t = D.items.find((t) => t.id === e);
47
- return t && !B(t) ? t.id : L.value[0]?.id;
48
- }), te = s(() => D.size === O.Large ? 18 : 16), ne = s(() => [
49
- "nb-tabs",
50
- `nb-tabs--${D.variant}`,
51
- `nb-tabs--${D.size}`,
52
- {
53
- "nb-tabs--full-width": D.fullWidth,
54
- "nb-tabs--disabled": D.disabled
55
- }
56
- ]);
57
- function B(e) {
58
- return D.disabled || !!e.disabled;
59
- }
60
- function V(e) {
61
- return `${F}-tab-${e}`;
62
- }
63
- function H(e) {
64
- return `${F}-panel-${e}`;
65
- }
66
- function U(e) {
67
- return i(P, e);
68
- }
69
- function W(e) {
70
- B(e) || e.id === z.value || (R.value = e.id, N("update:modelValue", e.id), N("change", e.id, e));
71
- }
72
- function G(e) {
73
- (I.value?.querySelectorAll("[data-tab-id]"))?.forEach((t) => {
74
- t.dataset.tabId === e && t.focus();
75
- });
76
- }
77
- function K(e) {
78
- let t = L.value;
79
- if (!t.length) return;
80
- let n = t[(t.findIndex((e) => e.id === z.value) + e + t.length) % t.length];
81
- W(n), G(n.id);
82
- }
83
- function q(e) {
84
- e && (W(e), G(e.id));
85
- }
86
- let { phone: J } = r(), Y = y(!1), X = y(!1);
87
- function Z() {
88
- let e = I.value;
89
- if (!J.value || !e) return;
90
- let t = e.scrollWidth - e.clientWidth;
91
- Y.value = e.scrollLeft > 1, X.value = e.scrollLeft < t - 1;
92
- }
93
- function Q() {
94
- let e = I.value;
95
- if (!J.value || !e) return;
96
- let t = [...e.querySelectorAll("[data-tab-id]")].find((e) => e.dataset.tabId === z.value);
97
- if (t) {
98
- let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = r.left - n.left + e.scrollLeft, a = i + r.width, o = t === e.firstElementChild, s = t === e.lastElementChild;
99
- i < e.scrollLeft + (o ? 0 : M) ? e.scrollLeft = Math.max(0, o ? 0 : i - M) : a > e.scrollLeft + e.clientWidth - (s ? 0 : M) && (e.scrollLeft = a - e.clientWidth + (s ? 0 : M));
100
- }
101
- Z();
102
- }
103
- T([z, J], () => m(Q));
104
- function $() {
105
- Q();
106
- }
107
- _(() => {
108
- Q(), window.addEventListener("resize", $, { passive: !0 });
109
- }), g(() => {
110
- window.removeEventListener("resize", $);
111
- });
112
- function re(e) {
113
- switch (e.key) {
114
- case "ArrowRight":
115
- K(1);
116
- break;
117
- case "ArrowLeft":
118
- K(-1);
119
- break;
120
- case "Home":
121
- q(L.value[0]);
122
- break;
123
- case "End":
124
- q(L.value[L.value.length - 1]);
125
- break;
126
- default: return;
127
- }
128
- e.preventDefault();
129
- }
130
- return (n, r) => (v(), u("div", { class: h(ne.value) }, [d("div", {
131
- ref_key: "listRef",
132
- ref: I,
133
- class: h(["nb-tabs__list", {
134
- "nb-tabs__list--fade-start": C(J) && Y.value,
135
- "nb-tabs__list--fade-end": C(J) && X.value
136
- }]),
137
- role: "tablist",
138
- "aria-label": e.ariaLabel || void 0,
139
- onKeydown: re,
140
- onScrollPassive: Z
141
- }, [(v(!0), u(o, null, b(e.items, (e) => (v(), u("button", {
142
- id: V(e.id),
143
- key: e.id,
144
- "data-tab-id": e.id,
145
- type: "button",
146
- role: "tab",
147
- class: h(["nb-tabs__tab", { "nb-tabs__tab--active": e.id === z.value }]),
148
- "aria-selected": e.id === z.value,
149
- "aria-controls": U(e.id) ? H(e.id) : void 0,
150
- tabindex: e.id === z.value ? 0 : -1,
151
- disabled: B(e),
152
- onClick: (t) => W(e)
153
- }, [
154
- e.icon ? (v(), c(t, {
155
- key: 0,
156
- name: e.icon,
157
- size: te.value,
158
- class: "nb-tabs__icon"
159
- }, null, 8, ["name", "size"])) : l("", !0),
160
- d("span", ee, S(e.label), 1),
161
- e.badge == null ? l("", !0) : (v(), c(a, {
162
- key: 1,
163
- size: "sm",
164
- class: "nb-tabs__badge"
165
- }, {
166
- default: E(() => [f(S(e.badge), 1)]),
167
- _: 2
168
- }, 1024))
169
- ], 10, A))), 128))], 42, k), (v(!0), u(o, null, b(e.items, (e) => (v(), u(o, { key: `panel-${e.id}` }, [e.id === z.value && U(e.id) ? (v(), u("div", {
170
- key: 0,
171
- id: H(e.id),
172
- class: "nb-tabs__panel",
173
- role: "tabpanel",
174
- "aria-labelledby": V(e.id),
175
- tabindex: "0"
176
- }, [x(n.$slots, e.id, { item: e }, void 0, !0)], 8, j)) : l("", !0)], 64))), 128))], 2));
177
- }
178
- }), [["__scopeId", "data-v-fecb01d1"]]);
179
- //#endregion
180
- export { N as t };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes