@nubisco/ui 5.24.0 → 5.25.1

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 (433) hide show
  1. package/dist/{AiLabel-BY0-FfJ4.cjs → AiLabel-BMeJMSLm.cjs} +1 -1
  2. package/dist/{AiLabel-B4nz_8J3.js → AiLabel-CGxUTm-X.js} +1 -1
  3. package/dist/AiProvider-BVT_8D6a.js +137 -0
  4. package/dist/AiProvider-BXWMTzi9.cjs +1 -0
  5. package/dist/AiUsage-CCMQdmZv.cjs +1 -0
  6. package/dist/AiUsage-q_WU2toP.js +74 -0
  7. package/dist/{Banner-BrN9hmXi.cjs → Banner-DQyHNDEP.cjs} +1 -1
  8. package/dist/{Banner-Bm2Hu1ei.js → Banner-r_cdQAMp.js} +4 -4
  9. package/dist/{BarChart-Cw-mjG2w.cjs → BarChart-CV1GzXgj.cjs} +1 -1
  10. package/dist/{BarChart-Bhwk1RAA.js → BarChart-DWH40Q0_.js} +4 -4
  11. package/dist/{Blueprint-CQW7F5Pi.js → Blueprint-CQ0UBrND.js} +2 -2
  12. package/dist/{Blueprint-BUMkQPNk.cjs → Blueprint-DxHaLr4P.cjs} +1 -1
  13. package/dist/{BlueprintCard-WpQ3eWHk.js → BlueprintCard-BpVITfop.js} +1 -1
  14. package/dist/{BlueprintCard-mGd4_94p.cjs → BlueprintCard-ndSnIVKE.cjs} +1 -1
  15. package/dist/Briefing-B_D0X4pk.cjs +1 -0
  16. package/dist/Briefing-Ce2nPMi-.js +90 -0
  17. package/dist/BriefingDestination-CA8Dv-tJ.js +67 -0
  18. package/dist/BriefingDestination-DIXsBoE2.cjs +1 -0
  19. package/dist/{Checkbox-CBEwKXH1.js → Checkbox-B3gBM6xy.js} +1 -1
  20. package/dist/{Checkbox-BvWPRa40.cjs → Checkbox-lWejJzIQ.cjs} +1 -1
  21. package/dist/{CheckboxGroup-DB8gbqAF.cjs → CheckboxGroup-OKmBXLpx.cjs} +1 -1
  22. package/dist/{CheckboxGroup-7MPMIbZT.js → CheckboxGroup-VqnA0eDK.js} +3 -3
  23. package/dist/{ColorStrip-Mm1SOzmg.cjs → ColorStrip-COhVH__l.cjs} +1 -1
  24. package/dist/{ColorStrip-BMWm-x-l.js → ColorStrip-c5l3AF0f.js} +14 -14
  25. package/dist/Confirm--cR6XRZQ.cjs +1 -0
  26. package/dist/Confirm-CHsxP6G_.js +313 -0
  27. package/dist/{DataTable-CvLbvDFT.js → DataTable-COfiHgll.js} +2 -2
  28. package/dist/{DataTable-DcS7jvxA.cjs → DataTable-XSEybeeP.cjs} +1 -1
  29. package/dist/{DatePicker-CjxX5dia.cjs → DatePicker-DIdEzzsG.cjs} +1 -1
  30. package/dist/{DatePicker-C4g1DKZM.js → DatePicker-ZiWlM0Ee.js} +13 -13
  31. package/dist/{EmptyState-v_HI2o5s.js → EmptyState-63UqLFX6.js} +6 -6
  32. package/dist/{EmptyState-CEF56DXZ.cjs → EmptyState-CV-UfKR6.cjs} +1 -1
  33. package/dist/{Form-DDnR6mdq.js → Form-2pXj4bhZ.js} +1 -1
  34. package/dist/{Form-DqGhhQKv.cjs → Form-CYesmztD.cjs} +1 -1
  35. package/dist/{GanttChart-jvuwmy_5.js → GanttChart-BTvjVa_d.js} +3 -3
  36. package/dist/{GanttChart-Cl-0ml4x.cjs → GanttChart-owqg5s-X.cjs} +1 -1
  37. package/dist/{ImageCropper-DJjEcz6Q.js → ImageCropper-CLyH3zZ-.js} +2 -2
  38. package/dist/{ImageCropper-CAqCuBq3.cjs → ImageCropper-DAU0ddvI.cjs} +1 -1
  39. package/dist/{InlineLoading-COgGKI27.js → InlineLoading-uGDGiTNv.js} +1 -1
  40. package/dist/{InlineLoading-C3wUvREF.cjs → InlineLoading-w5XKQdGi.cjs} +1 -1
  41. package/dist/{InterpolationChart-DB8oZyC7.js → InterpolationChart-Bt3_BiHO.js} +3 -3
  42. package/dist/{InterpolationChart-Dgol9kmR.cjs → InterpolationChart-C2MFUf1D.cjs} +1 -1
  43. package/dist/LineChart-D7nlCRxj.cjs +1 -0
  44. package/dist/LineChart-D869JljU.js +299 -0
  45. package/dist/{Message-CVzG-irA.js → Message-Cecz48PA.js} +4 -4
  46. package/dist/{Message-CjM5AAf0.cjs → Message-VfpaGblO.cjs} +1 -1
  47. package/dist/{Modal-b5eV95gR.js → Modal-CfcTmfeK.js} +1 -1
  48. package/dist/{Modal-stR5KDNF.cjs → Modal-CtCD-xEb.cjs} +1 -1
  49. package/dist/{NotificationCenter-kHVey4vK.cjs → NotificationCenter-CGhxyax1.cjs} +1 -1
  50. package/dist/{NotificationCenter-CltJiPh6.js → NotificationCenter-xL9_6BMt.js} +8 -8
  51. package/dist/{NotificationCenterItem-CXt7QYRf.cjs → NotificationCenterItem-C8zaSiem.cjs} +1 -1
  52. package/dist/{NotificationCenterItem-CTtvqo3b.js → NotificationCenterItem-CdzyTsCY.js} +4 -4
  53. package/dist/{NumberInput-Dt5KpjBd.cjs → NumberInput-BtPQ7p5y.cjs} +1 -1
  54. package/dist/{NumberInput-7hkGoOn3.js → NumberInput-Dk8ofnNJ.js} +2 -2
  55. package/dist/{Pagination-B284QH7x.js → Pagination-CSISbmpl.js} +1 -1
  56. package/dist/{Pagination-TcPX4VkA.cjs → Pagination-Ci1te4UW.cjs} +1 -1
  57. package/dist/{PieChart-yi1830We.js → PieChart-CQBJlBJI.js} +3 -3
  58. package/dist/{PieChart-hjwH4zpA.cjs → PieChart-DjFeDqdk.cjs} +1 -1
  59. package/dist/{ProgressBar-DLDd4cTS.js → ProgressBar-B2EXpOdC.js} +2 -2
  60. package/dist/{ProgressBar-ClrCBpPp.cjs → ProgressBar-D1O4iAxy.cjs} +1 -1
  61. package/dist/{Radio-DaN5EUk3.cjs → Radio-DALC1A47.cjs} +1 -1
  62. package/dist/{Radio-vHh-A9Lw.js → Radio-fgJU2hwQ.js} +2 -2
  63. package/dist/{Select-Cz9AAfUs.cjs → Select-CHuZfqLt.cjs} +1 -1
  64. package/dist/{Select-DLSDyOoF.js → Select-CwO5aX8j.js} +22 -22
  65. package/dist/{SidebarCollapseToggle-DeaWpfzA.js → SidebarCollapseToggle-CA6wQR0x.js} +2 -2
  66. package/dist/{SidebarCollapseToggle-CAfBF3AN.cjs → SidebarCollapseToggle-Cs4Azqiy.cjs} +1 -1
  67. package/dist/{Skeleton-Bx3VesCp.js → Skeleton-Ba4m2jYi.js} +1 -1
  68. package/dist/{Skeleton-D62xVkuM.cjs → Skeleton-Bgo6pIY2.cjs} +1 -1
  69. package/dist/{Slider-r83oBqJW.js → Slider-BAhq6cJT.js} +10 -10
  70. package/dist/{Slider-Cnpur-g4.cjs → Slider-BK5yS7Ih.cjs} +1 -1
  71. package/dist/{Spinner-Cex-1DDr.js → Spinner-BxnDJP1H.js} +1 -1
  72. package/dist/{Spinner-CLflP0Ge.cjs → Spinner-swPRQ7kf.cjs} +1 -1
  73. package/dist/{Stepper-ww4PLW-u.js → Stepper-BH7RO00M.js} +1 -1
  74. package/dist/{Stepper-ExfQjnbC.cjs → Stepper-Da0Ba3PE.cjs} +1 -1
  75. package/dist/{StepperStep-CyDcCslT.cjs → StepperStep-CI482bzO.cjs} +1 -1
  76. package/dist/{StepperStep-xCnHtaeb.js → StepperStep-CLd8c1dj.js} +1 -1
  77. package/dist/{Switch-odyGx4iV.js → Switch-DS297b1b.js} +4 -4
  78. package/dist/{Switch-Bd7OUmEG.cjs → Switch-a73y1wiu.cjs} +1 -1
  79. package/dist/{Tabs-DAtxkztl.js → Tabs-BzsQiQ2H.js} +1 -1
  80. package/dist/{Tabs-B7ZYrItJ.cjs → Tabs-D3daz-Xc.cjs} +1 -1
  81. package/dist/{TextInput-DWXb6yKh.cjs → TextInput-BkCOQWfT.cjs} +2 -2
  82. package/dist/{TextInput-BOuAvB8K.js → TextInput-Kt2ciMVI.js} +7 -7
  83. package/dist/{Toast-YEddFrhn.js → Toast-CeGAznEA.js} +8 -8
  84. package/dist/{Toast-DTDAT-A4.cjs → Toast-Ci4P6mM0.cjs} +1 -1
  85. package/dist/{Toaster-BpYvPdSk.cjs → Toaster-Cit4iNYG.cjs} +1 -1
  86. package/dist/{Toaster-Dfi6bj_6.js → Toaster-zIdIFToW.js} +1 -1
  87. package/dist/{Tree-aN3f3kZP.cjs → Tree-BiqO99_n.cjs} +1 -1
  88. package/dist/{Tree-BJv3cwiE.js → Tree-ZtXPSE7w.js} +1 -1
  89. package/dist/{TreeNode-xfWkYDCS.cjs → TreeNode-BcVuy7zd.cjs} +1 -1
  90. package/dist/{TreeNode-BD_8vNNF.js → TreeNode-HVTTXuRl.js} +1 -1
  91. package/dist/{UserMenu-C4SoJOF7.js → UserMenu-DuAQ0yne.js} +2 -2
  92. package/dist/{UserMenu-Cq2dws0F.cjs → UserMenu-FhWFKqzy.cjs} +1 -1
  93. package/dist/all.cjs +1 -1
  94. package/dist/all.mjs +201 -193
  95. package/dist/component-styles.json +29 -0
  96. package/dist/components/AiLabel.cjs +1 -1
  97. package/dist/components/AiLabel.mjs +1 -1
  98. package/dist/components/AiProvider.cjs +1 -0
  99. package/dist/components/AiProvider.d.ts +29 -0
  100. package/dist/components/AiProvider.mjs +2 -0
  101. package/dist/components/AiProvider.vue.d.ts +36 -0
  102. package/dist/components/AiProvider.vue.d.ts.map +1 -0
  103. package/dist/components/AiUsage.cjs +1 -0
  104. package/dist/components/AiUsage.d.ts +29 -0
  105. package/dist/components/AiUsage.mjs +2 -0
  106. package/dist/components/AiUsage.vue.d.ts +28 -0
  107. package/dist/components/AiUsage.vue.d.ts.map +1 -0
  108. package/dist/components/Avatar.cjs +1 -1
  109. package/dist/components/Avatar.mjs +1 -1
  110. package/dist/components/Avatar.vue.d.ts +1 -1
  111. package/dist/components/Badge.cjs +1 -1
  112. package/dist/components/Badge.mjs +1 -1
  113. package/dist/components/Badge.vue.d.ts +1 -1
  114. package/dist/components/Banner.cjs +1 -1
  115. package/dist/components/Banner.mjs +1 -1
  116. package/dist/components/Blueprint.cjs +1 -1
  117. package/dist/components/Blueprint.mjs +1 -1
  118. package/dist/components/BlueprintBackground.cjs +1 -1
  119. package/dist/components/BlueprintBackground.mjs +1 -1
  120. package/dist/components/BlueprintCard.cjs +1 -1
  121. package/dist/components/BlueprintCard.mjs +1 -1
  122. package/dist/components/BlueprintCard.vue.d.ts +1 -1
  123. package/dist/components/BlueprintControls.cjs +1 -1
  124. package/dist/components/BlueprintControls.mjs +1 -1
  125. package/dist/components/BlueprintMinimap.cjs +1 -1
  126. package/dist/components/BlueprintMinimap.mjs +1 -1
  127. package/dist/components/Board.cjs +1 -1
  128. package/dist/components/Board.mjs +1 -1
  129. package/dist/components/BottomPanel.cjs +1 -1
  130. package/dist/components/BottomPanel.mjs +1 -1
  131. package/dist/components/Breadcrumbs.cjs +1 -1
  132. package/dist/components/Breadcrumbs.mjs +1 -1
  133. package/dist/components/Briefing.cjs +1 -0
  134. package/dist/components/Briefing.d.ts +22 -0
  135. package/dist/components/Briefing.mjs +2 -0
  136. package/dist/components/Briefing.vue.d.ts +36 -0
  137. package/dist/components/Briefing.vue.d.ts.map +1 -0
  138. package/dist/components/BriefingDestination.cjs +1 -0
  139. package/dist/components/BriefingDestination.d.ts +16 -0
  140. package/dist/components/BriefingDestination.mjs +2 -0
  141. package/dist/components/BriefingDestination.vue.d.ts +25 -0
  142. package/dist/components/BriefingDestination.vue.d.ts.map +1 -0
  143. package/dist/components/Calendar.cjs +1 -1
  144. package/dist/components/Calendar.mjs +1 -1
  145. package/dist/components/Calendar.vue.d.ts +1 -1
  146. package/dist/components/Charts/BarChart.cjs +1 -1
  147. package/dist/components/Charts/BarChart.mjs +1 -1
  148. package/dist/components/Charts/GanttChart.cjs +1 -1
  149. package/dist/components/Charts/GanttChart.mjs +1 -1
  150. package/dist/components/Charts/InterpolationChart.cjs +1 -1
  151. package/dist/components/Charts/InterpolationChart.mjs +1 -1
  152. package/dist/components/Charts/LineChart.cjs +1 -1
  153. package/dist/components/Charts/LineChart.mjs +1 -1
  154. package/dist/components/Charts/LineChart.vue.d.ts.map +1 -1
  155. package/dist/components/Charts/PieChart.cjs +1 -1
  156. package/dist/components/Charts/PieChart.mjs +1 -1
  157. package/dist/components/Charts/Sparkline.cjs +1 -1
  158. package/dist/components/Charts/Sparkline.mjs +1 -1
  159. package/dist/components/Charts/shared/xLabels.d.ts +16 -0
  160. package/dist/components/Charts/shared/xLabels.d.ts.map +1 -0
  161. package/dist/components/Checkbox.cjs +1 -1
  162. package/dist/components/Checkbox.mjs +1 -1
  163. package/dist/components/CheckboxGroup.cjs +1 -1
  164. package/dist/components/CheckboxGroup.mjs +1 -1
  165. package/dist/components/ColorStrip.cjs +1 -1
  166. package/dist/components/ColorStrip.mjs +1 -1
  167. package/dist/components/CommandPalette.cjs +1 -1
  168. package/dist/components/CommandPalette.mjs +1 -1
  169. package/dist/components/Confirm.cjs +1 -1
  170. package/dist/components/Confirm.mjs +1 -1
  171. package/dist/components/DataTable.cjs +1 -1
  172. package/dist/components/DataTable.mjs +1 -1
  173. package/dist/components/DatePicker.cjs +1 -1
  174. package/dist/components/DatePicker.mjs +1 -1
  175. package/dist/components/DatePicker.vue.d.ts +3 -3
  176. package/dist/components/DefinitionList.cjs +1 -1
  177. package/dist/components/DefinitionList.mjs +1 -1
  178. package/dist/components/DefinitionListItem.cjs +1 -1
  179. package/dist/components/DefinitionListItem.mjs +1 -1
  180. package/dist/components/DragHandle.cjs +1 -1
  181. package/dist/components/DragHandle.mjs +1 -1
  182. package/dist/components/EmptyState.cjs +1 -1
  183. package/dist/components/EmptyState.mjs +1 -1
  184. package/dist/components/Field.cjs +1 -1
  185. package/dist/components/Field.mjs +1 -1
  186. package/dist/components/FileUploader.cjs +1 -1
  187. package/dist/components/FileUploader.mjs +1 -1
  188. package/dist/components/Flag.cjs +1 -1
  189. package/dist/components/Flag.mjs +1 -1
  190. package/dist/components/FloatingToolbar.cjs +1 -1
  191. package/dist/components/FloatingToolbar.mjs +1 -1
  192. package/dist/components/Form.cjs +1 -1
  193. package/dist/components/Form.mjs +1 -1
  194. package/dist/components/Grid.cjs +1 -1
  195. package/dist/components/Grid.mjs +1 -1
  196. package/dist/components/ImageCropper.cjs +1 -1
  197. package/dist/components/ImageCropper.mjs +1 -1
  198. package/dist/components/InlineEdit.cjs +1 -1
  199. package/dist/components/InlineEdit.mjs +1 -1
  200. package/dist/components/InlineLoading.cjs +1 -1
  201. package/dist/components/InlineLoading.mjs +1 -1
  202. package/dist/components/JsonTree.cjs +1 -1
  203. package/dist/components/JsonTree.mjs +1 -1
  204. package/dist/components/Label.cjs +1 -1
  205. package/dist/components/Label.mjs +1 -1
  206. package/dist/components/Layer.cjs +1 -1
  207. package/dist/components/Layer.mjs +1 -1
  208. package/dist/components/MenuBar.cjs +1 -1
  209. package/dist/components/MenuBar.mjs +1 -1
  210. package/dist/components/MenuBarItem.cjs +1 -1
  211. package/dist/components/MenuBarItem.mjs +1 -1
  212. package/dist/components/MenuDivider.cjs +1 -1
  213. package/dist/components/MenuDivider.mjs +1 -1
  214. package/dist/components/Message.cjs +1 -1
  215. package/dist/components/Message.mjs +1 -1
  216. package/dist/components/Modal.cjs +1 -1
  217. package/dist/components/Modal.mjs +1 -1
  218. package/dist/components/Modal.vue.d.ts +1 -1
  219. package/dist/components/NotificationCenter.cjs +1 -1
  220. package/dist/components/NotificationCenter.mjs +1 -1
  221. package/dist/components/NotificationCenterItem.cjs +1 -1
  222. package/dist/components/NotificationCenterItem.mjs +1 -1
  223. package/dist/components/NubiscoMark.cjs +1 -1
  224. package/dist/components/NubiscoMark.mjs +1 -1
  225. package/dist/components/NubiscoPlatformMark.cjs +1 -1
  226. package/dist/components/NubiscoPlatformMark.mjs +1 -1
  227. package/dist/components/NumberInput.cjs +1 -1
  228. package/dist/components/NumberInput.mjs +1 -1
  229. package/dist/components/NumberInput.vue.d.ts +1 -1
  230. package/dist/components/Pagination.cjs +1 -1
  231. package/dist/components/Pagination.mjs +1 -1
  232. package/dist/components/Panel.cjs +1 -1
  233. package/dist/components/Panel.mjs +1 -1
  234. package/dist/components/ProgressBar.cjs +1 -1
  235. package/dist/components/ProgressBar.mjs +1 -1
  236. package/dist/components/Radio.cjs +1 -1
  237. package/dist/components/Radio.mjs +1 -1
  238. package/dist/components/ReorderList.cjs +1 -1
  239. package/dist/components/ReorderList.mjs +1 -1
  240. package/dist/components/Select.cjs +1 -1
  241. package/dist/components/Select.mjs +1 -1
  242. package/dist/components/Select.vue.d.ts +1 -1
  243. package/dist/components/Shell.cjs +1 -1
  244. package/dist/components/Shell.mjs +1 -1
  245. package/dist/components/ShellPanel.cjs +1 -1
  246. package/dist/components/ShellPanel.mjs +1 -1
  247. package/dist/components/SidebarBrand.cjs +1 -1
  248. package/dist/components/SidebarBrand.mjs +1 -1
  249. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  250. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  251. package/dist/components/SidebarLink.cjs +1 -1
  252. package/dist/components/SidebarLink.mjs +1 -1
  253. package/dist/components/SidebarMenu.cjs +1 -1
  254. package/dist/components/SidebarMenu.mjs +1 -1
  255. package/dist/components/SidebarMenuGroup.cjs +1 -1
  256. package/dist/components/SidebarMenuGroup.mjs +1 -1
  257. package/dist/components/SidebarMenuItem.cjs +1 -1
  258. package/dist/components/SidebarMenuItem.mjs +1 -1
  259. package/dist/components/Skeleton.cjs +1 -1
  260. package/dist/components/Skeleton.mjs +1 -1
  261. package/dist/components/Slider.cjs +1 -1
  262. package/dist/components/Slider.mjs +1 -1
  263. package/dist/components/Slider.vue.d.ts +1 -1
  264. package/dist/components/Spinner.cjs +1 -1
  265. package/dist/components/Spinner.mjs +1 -1
  266. package/dist/components/Stepper.cjs +1 -1
  267. package/dist/components/Stepper.mjs +1 -1
  268. package/dist/components/StepperStep.cjs +1 -1
  269. package/dist/components/StepperStep.mjs +1 -1
  270. package/dist/components/Submenu.cjs +1 -1
  271. package/dist/components/Submenu.mjs +1 -1
  272. package/dist/components/Switch.cjs +1 -1
  273. package/dist/components/Switch.mjs +1 -1
  274. package/dist/components/TableOfContents.cjs +1 -1
  275. package/dist/components/TableOfContents.mjs +1 -1
  276. package/dist/components/TableOfContents.vue.d.ts +1 -1
  277. package/dist/components/Tabs.cjs +1 -1
  278. package/dist/components/Tabs.mjs +1 -1
  279. package/dist/components/TextInput.cjs +1 -1
  280. package/dist/components/TextInput.mjs +1 -1
  281. package/dist/components/TextInput.vue.d.ts +2 -2
  282. package/dist/components/TextInput.vue.d.ts.map +1 -1
  283. package/dist/components/Toast.cjs +1 -1
  284. package/dist/components/Toast.mjs +1 -1
  285. package/dist/components/Toaster.cjs +1 -1
  286. package/dist/components/Toaster.mjs +1 -1
  287. package/dist/components/Tree.cjs +1 -1
  288. package/dist/components/Tree.mjs +1 -1
  289. package/dist/components/TreeNode.cjs +1 -1
  290. package/dist/components/TreeNode.mjs +1 -1
  291. package/dist/components/UserMenu.cjs +1 -1
  292. package/dist/components/UserMenu.mjs +1 -1
  293. package/dist/components/Video.cjs +1 -1
  294. package/dist/components/Video.mjs +1 -1
  295. package/dist/components/Video.vue.d.ts +1 -1
  296. package/dist/components/Walkthrough.cjs +1 -1
  297. package/dist/components/Walkthrough.mjs +1 -1
  298. package/dist/components/Wireframe.cjs +1 -1
  299. package/dist/components/Wireframe.mjs +1 -1
  300. package/dist/components/index.d.ts.map +1 -1
  301. package/dist/components/manifest.d.ts +4 -0
  302. package/dist/components/manifest.d.ts.map +1 -1
  303. package/dist/components/manifest.js +4 -0
  304. package/dist/composables/useBlueprint.composable.cjs +1 -1
  305. package/dist/composables/useBlueprint.composable.mjs +1 -1
  306. package/dist/composables/useConfirm.composable.cjs +1 -1
  307. package/dist/composables/useConfirm.composable.mjs +3 -3
  308. package/dist/composables/useInlineLoading.composable.cjs +1 -1
  309. package/dist/composables/useInlineLoading.composable.mjs +1 -1
  310. package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
  311. package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
  312. package/dist/global.d.ts +8 -0
  313. package/dist/index.cjs +1 -1
  314. package/dist/index.mjs +108 -104
  315. package/dist/main.d.ts +8 -0
  316. package/dist/main.d.ts.map +1 -1
  317. package/dist/styles/AiProvider.css +1 -0
  318. package/dist/styles/AiUsage.css +1 -0
  319. package/dist/styles/Briefing.css +1 -0
  320. package/dist/styles/BriefingDestination.css +1 -0
  321. package/dist/styles/LineChart.css +1 -1
  322. package/dist/ui.css +13 -9
  323. package/package.json +1 -1
  324. package/dist/Confirm-CmQzDZFC.js +0 -313
  325. package/dist/Confirm-DfTjBTuJ.cjs +0 -1
  326. package/dist/LineChart-DLu7_qcT.js +0 -241
  327. package/dist/LineChart-Do_NISVc.cjs +0 -1
  328. /package/dist/{Avatar-4BWmDFhO.js → Avatar-BibgBZuN.js} +0 -0
  329. /package/dist/{Avatar-BqiwSWeV.cjs → Avatar-BpPczEa8.cjs} +0 -0
  330. /package/dist/{Badge-CLgaADV-.cjs → Badge-D6nlcs4F.cjs} +0 -0
  331. /package/dist/{Badge-BH8qD-w8.js → Badge-DJx3RZxk.js} +0 -0
  332. /package/dist/{Blueprint.context-CfOZcttA.js → Blueprint.context-BU2ujsDD.js} +0 -0
  333. /package/dist/{Blueprint.context-NmqerYFf.cjs → Blueprint.context-DjbRPuLQ.cjs} +0 -0
  334. /package/dist/{BlueprintBackground-D52auBfC.cjs → BlueprintBackground-D5i-Rlmm.cjs} +0 -0
  335. /package/dist/{BlueprintBackground-Y-DxC7zj.js → BlueprintBackground-DtGJCzDy.js} +0 -0
  336. /package/dist/{BlueprintControls-Dqrr5aoC.cjs → BlueprintControls-BfTyqOwC.cjs} +0 -0
  337. /package/dist/{BlueprintControls-hQAFAlHB.js → BlueprintControls-COeG8N6G.js} +0 -0
  338. /package/dist/{BlueprintMinimap-D69cdbyQ.cjs → BlueprintMinimap-CujSRNvs.cjs} +0 -0
  339. /package/dist/{BlueprintMinimap-Ch9E_5bl.js → BlueprintMinimap-xwEOZlv6.js} +0 -0
  340. /package/dist/{Board-B_sqwxsN.cjs → Board-DmOzimbT.cjs} +0 -0
  341. /package/dist/{Board-nGnQkqJb.js → Board-R38Zb5t2.js} +0 -0
  342. /package/dist/{BottomPanel-DlrKsWHz.cjs → BottomPanel-Cpr7_cZI.cjs} +0 -0
  343. /package/dist/{BottomPanel-UDdEoJqh.js → BottomPanel-DdjpIyOA.js} +0 -0
  344. /package/dist/{Breadcrumbs-CRlWYf7S.js → Breadcrumbs-B0nEpUik.js} +0 -0
  345. /package/dist/{Breadcrumbs-Bw5LdW9D.cjs → Breadcrumbs-B8zyUzRM.cjs} +0 -0
  346. /package/dist/{Calendar-D-iSzX4T.cjs → Calendar-BPYKfErK.cjs} +0 -0
  347. /package/dist/{Calendar-CJd9UzLq.js → Calendar-C2KlJvo5.js} +0 -0
  348. /package/dist/{ChartLegend-C8_vklRf.js → ChartLegend-BtBKVnH3.js} +0 -0
  349. /package/dist/{ChartLegend-CTqPJ52N.cjs → ChartLegend-ndpGucTZ.cjs} +0 -0
  350. /package/dist/{CheckboxGroup.context-CcJlyjRV.js → CheckboxGroup.context-B2qjPnB2.js} +0 -0
  351. /package/dist/{CheckboxGroup.context-BJ_mXMo8.cjs → CheckboxGroup.context-DyFYVLH1.cjs} +0 -0
  352. /package/dist/{CommandPalette-BevB1sEi.js → CommandPalette-CU8gkgTx.js} +0 -0
  353. /package/dist/{CommandPalette-BxtsOesP.cjs → CommandPalette-zmNIqPex.cjs} +0 -0
  354. /package/dist/{DefinitionList-BM-83VTW.cjs → DefinitionList-COgbbyRS.cjs} +0 -0
  355. /package/dist/{DefinitionList-YSgdnnMD.js → DefinitionList-Xn-f_QhT.js} +0 -0
  356. /package/dist/{DefinitionListItem-Dx3z7niO.cjs → DefinitionListItem-B4bGJJJj.cjs} +0 -0
  357. /package/dist/{DefinitionListItem-DfTl4VTm.js → DefinitionListItem-ZRjLrhaI.js} +0 -0
  358. /package/dist/{DragHandle-DqcKoM4f.js → DragHandle-BbgSL4IW.js} +0 -0
  359. /package/dist/{DragHandle-C91bypG3.cjs → DragHandle-bosa6iXA.cjs} +0 -0
  360. /package/dist/{Field-glovCxOq.cjs → Field-DznERREe.cjs} +0 -0
  361. /package/dist/{Field-Csuq9cqO.js → Field-LiiMobFy.js} +0 -0
  362. /package/dist/{FileUploader-B8jyhhkN.cjs → FileUploader-BjYXOXxj.cjs} +0 -0
  363. /package/dist/{FileUploader-BAns0DbJ.js → FileUploader-DwKKUn71.js} +0 -0
  364. /package/dist/{Flag-B16fkljO.cjs → Flag-C326U1pM.cjs} +0 -0
  365. /package/dist/{Flag-e7J5iLc8.js → Flag-DBHUM-oa.js} +0 -0
  366. /package/dist/{FloatingToolbar-DkQDopOX.js → FloatingToolbar-B_VISp4J.js} +0 -0
  367. /package/dist/{FloatingToolbar-B6xZvl4M.cjs → FloatingToolbar-CMYR7_b_.cjs} +0 -0
  368. /package/dist/{Grid-By_NqGWQ.cjs → Grid-D8c0StGs.cjs} +0 -0
  369. /package/dist/{Grid-BF4ObsbF.js → Grid-XtnH-vr_.js} +0 -0
  370. /package/dist/{InlineEdit-wpQAg80H.cjs → InlineEdit-BLrO3i1p.cjs} +0 -0
  371. /package/dist/{InlineEdit-ak0WY89o.js → InlineEdit-BemWhcI3.js} +0 -0
  372. /package/dist/{JsonTree-CnEinkjy.cjs → JsonTree-B3TskapA.cjs} +0 -0
  373. /package/dist/{JsonTree-DJNeIkMt.js → JsonTree-DzEsyR3A.js} +0 -0
  374. /package/dist/{Label-CR6g53gz.cjs → Label-CVCNXFn1.cjs} +0 -0
  375. /package/dist/{Label-DkdjCPeM.js → Label-ciCAG21-.js} +0 -0
  376. /package/dist/{Layer-Bw8eiq3V.cjs → Layer-BRDO-CDw.cjs} +0 -0
  377. /package/dist/{Layer--aocK4Jq.js → Layer-DsNOdX44.js} +0 -0
  378. /package/dist/{MenuBar-DOHhu1YE.js → MenuBar-BTSnSFvG.js} +0 -0
  379. /package/dist/{MenuBar-IE1c-DnC.cjs → MenuBar-CFCpmpU7.cjs} +0 -0
  380. /package/dist/{MenuBarItem-B3DXNMZR.js → MenuBarItem-C7TPhYnN.js} +0 -0
  381. /package/dist/{MenuBarItem-DkJPAdkN.cjs → MenuBarItem-D1LSKPxk.cjs} +0 -0
  382. /package/dist/{MenuDivider-CZFNkoP5.js → MenuDivider-BosPmiMO.js} +0 -0
  383. /package/dist/{MenuDivider-D9Dw8VKM.cjs → MenuDivider-kpF-fk4u.cjs} +0 -0
  384. /package/dist/{NubiscoMark-Dvwu7mri.cjs → NubiscoMark-D4-pm2EX.cjs} +0 -0
  385. /package/dist/{NubiscoMark-DTPsWWI3.js → NubiscoMark-DgzvBHAd.js} +0 -0
  386. /package/dist/{NubiscoPlatformMark-COQnCydq.js → NubiscoPlatformMark-CayXaZGB.js} +0 -0
  387. /package/dist/{NubiscoPlatformMark-D2sQvlRb.cjs → NubiscoPlatformMark-DV2XeqiT.cjs} +0 -0
  388. /package/dist/{Panel-DXpXMlzK.js → Panel-Drfi9pqS.js} +0 -0
  389. /package/dist/{Panel-Yrl_AZTB.cjs → Panel-valtWFWI.cjs} +0 -0
  390. /package/dist/{ReorderList-DlO13mZ8.js → ReorderList-BDLxDc6t.js} +0 -0
  391. /package/dist/{ReorderList-DaDY714T.cjs → ReorderList-BdHgEL4G.cjs} +0 -0
  392. /package/dist/{Shell-CtpVIsIr.cjs → Shell-6Dwl2FnC.cjs} +0 -0
  393. /package/dist/{Shell-Cfdfqfvc.js → Shell-C9DK_Phw.js} +0 -0
  394. /package/dist/{ShellPanel-B2AgOmD5.js → ShellPanel-Cu3C3H9J.js} +0 -0
  395. /package/dist/{ShellPanel-Db3C1879.cjs → ShellPanel-rrSF7BQs.cjs} +0 -0
  396. /package/dist/{SidebarBrand-PUeotNqh.js → SidebarBrand-Ba6QIT1v.js} +0 -0
  397. /package/dist/{SidebarBrand-CUdKgDWl.cjs → SidebarBrand-BqSqQNPa.cjs} +0 -0
  398. /package/dist/{SidebarLink-COBTc762.cjs → SidebarLink-BbzeT8Tq.cjs} +0 -0
  399. /package/dist/{SidebarLink-DFxHQLCu.js → SidebarLink-Bi8GxvCf.js} +0 -0
  400. /package/dist/{SidebarMenu-DYqo6XE_.cjs → SidebarMenu-B4nng5Fz.cjs} +0 -0
  401. /package/dist/{SidebarMenu-DWEzNXfe.js → SidebarMenu-DoMgZO7c.js} +0 -0
  402. /package/dist/{SidebarMenuGroup-BHtxWHBk.cjs → SidebarMenuGroup-BdOpz4N1.cjs} +0 -0
  403. /package/dist/{SidebarMenuGroup-C2DHT9rs.js → SidebarMenuGroup-CmCPtZJD.js} +0 -0
  404. /package/dist/{SidebarMenuItem-DFAU-ROX.js → SidebarMenuItem-CWXKdUTX.js} +0 -0
  405. /package/dist/{SidebarMenuItem-BjdRY91e.cjs → SidebarMenuItem-j21WVpId.cjs} +0 -0
  406. /package/dist/{Sparkline-DL_g9GtX.js → Sparkline-C4gA55Pc.js} +0 -0
  407. /package/dist/{Sparkline-CeUnGfSA.cjs → Sparkline-DI7arXX0.cjs} +0 -0
  408. /package/dist/{Stepper.context-Doy3IafX.cjs → Stepper.context-Dxw8xYGX.cjs} +0 -0
  409. /package/dist/{Stepper.context-Dj8sqSeB.js → Stepper.context-q_CjX3CO.js} +0 -0
  410. /package/dist/{Submenu-Bay1plPK.cjs → Submenu-CpNOHf-e.cjs} +0 -0
  411. /package/dist/{Submenu-CAwlRk1P.js → Submenu-DKpL5htf.js} +0 -0
  412. /package/dist/{TableOfContents-CFXhJ6cZ.js → TableOfContents-BqF5y-1t.js} +0 -0
  413. /package/dist/{TableOfContents-CLB6iFCf.cjs → TableOfContents-C6xx7P4d.cjs} +0 -0
  414. /package/dist/{TreeContext-DXn-HNow.cjs → TreeContext-we7Xt7IP.cjs} +0 -0
  415. /package/dist/{TreeContext-D_NJ8vrP.js → TreeContext-xtlNBGhB.js} +0 -0
  416. /package/dist/{Video-B7VqDjou.cjs → Video-Bgzvf-C9.cjs} +0 -0
  417. /package/dist/{Video-r2VtGVlN.js → Video-CY0UEDLL.js} +0 -0
  418. /package/dist/{Walkthrough-C0WRD_PK.js → Walkthrough-KmxZqXxV.js} +0 -0
  419. /package/dist/{Walkthrough-CrmK6nRz.cjs → Walkthrough-oU-NaG_A.cjs} +0 -0
  420. /package/dist/{Wireframe-u15I8Ldj.js → Wireframe-Bf55dFWu.js} +0 -0
  421. /package/dist/{Wireframe-pfnyZFGe.cjs → Wireframe-CX8KvGJx.cjs} +0 -0
  422. /package/dist/{palette-0LscvyqA.cjs → palette-BoABA-De.cjs} +0 -0
  423. /package/dist/{palette-CxPgs-Dn.js → palette-VMXxKICH.js} +0 -0
  424. /package/dist/{pixi-scene-CN2JIn7_.js → pixi-scene-D57Y3MvT.js} +0 -0
  425. /package/dist/{pixi-scene-CRogQbky.cjs → pixi-scene-OOSMyGKD.cjs} +0 -0
  426. /package/dist/{scales-CFWdZe1z.cjs → scales-BWtB8m5D.cjs} +0 -0
  427. /package/dist/{scales-DMlq1jQZ.js → scales-DVJzRU1F.js} +0 -0
  428. /package/dist/{useChartSize-C8SNfQZL.cjs → useChartSize-D9UxUkiU.cjs} +0 -0
  429. /package/dist/{useChartSize-Dbm1f8au.js → useChartSize-Dyh37PYP.js} +0 -0
  430. /package/dist/{useLoadingAnnouncer.composable-DCZIIefo.cjs → useLoadingAnnouncer.composable-BMMz4C1C.cjs} +0 -0
  431. /package/dist/{useLoadingAnnouncer.composable-B9SAlQE6.js → useLoadingAnnouncer.composable-DY8jGEwJ.js} +0 -0
  432. /package/dist/{vue-i18n-CYAt-t4N.cjs → vue-i18n-B_5xehV9.cjs} +0 -0
  433. /package/dist/{vue-i18n-D5xWp3Q8.js → vue-i18n-Dzm-MDw4.js} +0 -0
@@ -1,313 +0,0 @@
1
- import { useReducedMotion as e } from "./composables/useReducedMotion.composable.mjs";
2
- import { t } from "./_plugin-vue_export-helper-O4QQSku4.js";
3
- import { t as n } from "./Icon-rREAqsu0.js";
4
- import { t as r } from "./Button-IcCXOoCT.js";
5
- import { t as i } from "./Message-CVzG-irA.js";
6
- import { i as a, r as ee, t as te } from "./Modal-b5eV95gR.js";
7
- import { t as ne } from "./TextInput-BOuAvB8K.js";
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
- import { regular as ue } from "@nubisco/ui/icons/check";
10
- import { regular as de } from "@nubisco/ui/icons/warning";
11
- //#region src/components/Confirm.vue?vue&type=script&setup=true&lang.ts
12
- var fe = {
13
- key: 0,
14
- class: "nb-confirm__message"
15
- }, pe = {
16
- key: 0,
17
- class: "nb-confirm__subject-kind"
18
- }, me = { class: "nb-confirm__subject-name" }, he = {
19
- key: 1,
20
- class: "nb-confirm__gate"
21
- }, ge = { class: "nb-confirm__live" }, _e = {
22
- key: 0,
23
- class: "nb-confirm__status",
24
- role: "status"
25
- }, ve = {
26
- key: 1,
27
- class: "nb-confirm__status nb-confirm__status--success",
28
- role: "status"
29
- }, S = /* @__PURE__ */ t(/* @__PURE__ */ p({
30
- __name: "Confirm",
31
- props: {
32
- open: {
33
- type: Boolean,
34
- default: !1
35
- },
36
- title: {},
37
- message: { default: void 0 },
38
- subject: { default: void 0 },
39
- subjectLabel: { default: void 0 },
40
- confirmLabel: { default: "Confirm" },
41
- cancelLabel: { default: "Cancel" },
42
- tone: { default: "danger" },
43
- typeToConfirm: { default: void 0 },
44
- typeToConfirmLabel: { default: void 0 },
45
- typeToConfirmHelper: { default: void 0 },
46
- busy: {
47
- type: Boolean,
48
- default: !1
49
- },
50
- busyLabel: { default: "Working..." },
51
- succeeded: {
52
- type: Boolean,
53
- default: !1
54
- },
55
- successLabel: { default: void 0 },
56
- error: { default: void 0 },
57
- size: { default: "sm" },
58
- floatingSelectors: { default: () => [] },
59
- contentClass: { default: void 0 }
60
- },
61
- emits: ["confirm", "cancel"],
62
- setup(t, { expose: p, emit: S }) {
63
- let C = t, w = S, T = oe(), E = `nb-confirm-title-${T}`, D = `nb-confirm-body-${T}`, ye = se(), O = _(null), k = _(null), A = _(null), j = _(""), M = e(), N = o(() => C.busy || C.succeeded);
64
- function P() {
65
- return !!C.message || !!C.subject || !!ye.default;
66
- }
67
- let be = o(() => C.tone === "danger" ? "danger" : "primary"), xe = o(() => C.typeToConfirmLabel ?? `Type ${C.typeToConfirm} to confirm`), Se = o(() => !C.typeToConfirm || j.value.trim() === C.typeToConfirm), F = o(() => Se.value && !N.value);
68
- function Ce() {
69
- F.value && w("confirm");
70
- }
71
- function I() {
72
- let e = A.value?.$el;
73
- return e instanceof HTMLElement ? e : null;
74
- }
75
- function L() {
76
- return O.value?.closest("[role=\"dialog\"],[role=\"alertdialog\"]") ?? null;
77
- }
78
- function we() {
79
- return typeof document > "u" ? [] : Array.from(document.querySelectorAll("[aria-modal=\"true\"]"));
80
- }
81
- function R() {
82
- let e = L();
83
- if (!e) return !1;
84
- let t = we();
85
- return t.length === 0 || t[t.length - 1] === e;
86
- }
87
- let Te = [
88
- "a[href]:not([tabindex=\"-1\"])",
89
- "area[href]:not([tabindex=\"-1\"])",
90
- "button:not([disabled]):not([tabindex=\"-1\"])",
91
- "input:not([disabled]):not([type=\"hidden\"]):not([tabindex=\"-1\"])",
92
- "select:not([disabled]):not([tabindex=\"-1\"])",
93
- "textarea:not([disabled]):not([tabindex=\"-1\"])",
94
- "summary:not([tabindex=\"-1\"])",
95
- "audio[controls]:not([tabindex=\"-1\"])",
96
- "video[controls]:not([tabindex=\"-1\"])",
97
- "iframe:not([tabindex=\"-1\"])",
98
- "[contenteditable]:not([contenteditable=\"false\"]):not([tabindex=\"-1\"])",
99
- "[tabindex]:not([tabindex=\"-1\"])"
100
- ].map((e) => `${e}:not([hidden]):not([aria-hidden="true"])`).join(",");
101
- function Ee() {
102
- return a(C.floatingSelectors);
103
- }
104
- function z(e) {
105
- return e instanceof Element ? !!e.closest(Ee()) : !1;
106
- }
107
- function B(e) {
108
- let t = L();
109
- return !!t && !!e && t.contains(e);
110
- }
111
- function V() {
112
- let e = L();
113
- return e ? Array.from(e.querySelectorAll(Te)).filter((e) => e.getAttribute("aria-disabled") !== "true") : [];
114
- }
115
- function H() {
116
- let e = L();
117
- return e ? (e.focus(), !0) : !1;
118
- }
119
- function U() {
120
- let e = V()[0];
121
- e ? e.focus() : H();
122
- }
123
- let W = null;
124
- function G() {
125
- let e = W;
126
- W = null, e?.isConnected && e.focus();
127
- }
128
- function K() {
129
- ee(L(), M.value);
130
- }
131
- b(M, () => {
132
- C.open && K();
133
- }), b(() => [C.busy, C.error], async (e, t) => {
134
- if (!C.open) return;
135
- let [n, r] = e, i = t?.[0] ?? !1;
136
- if (await m(), n) {
137
- V().length === 0 && H();
138
- return;
139
- }
140
- if (i && r) {
141
- let e = k.value;
142
- e ? e.focus() : U();
143
- return;
144
- }
145
- let a = document.activeElement;
146
- !B(a) && !z(a) && U();
147
- }), b(() => C.open, async (e) => {
148
- e ? (W = document.activeElement instanceof HTMLElement ? document.activeElement : null, j.value = "", await m(), K(), I() ? I()?.focus() : H()) : G();
149
- }, { immediate: !0 });
150
- function q() {
151
- N.value || w("cancel");
152
- }
153
- let J = !1, Y = !1;
154
- function X(e) {
155
- let t = e.target;
156
- J = B(t) || z(t);
157
- }
158
- function Z(e) {
159
- Y = B(e.target);
160
- }
161
- function De() {
162
- let e = J && !Y;
163
- J = !1, !e && q();
164
- }
165
- function Q(e) {
166
- if (!C.open || z(document.activeElement)) return;
167
- if (e.key === "Escape") {
168
- if (!R()) return;
169
- e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), q();
170
- return;
171
- }
172
- if (e.key !== "Tab" || !R()) return;
173
- let t = V();
174
- if (t.length === 0) {
175
- e.preventDefault(), B(document.activeElement) || H();
176
- return;
177
- }
178
- let n = t[0], r = t[t.length - 1], i = document.activeElement;
179
- e.shiftKey && (i === n || !B(i)) ? (e.preventDefault(), r.focus()) : !e.shiftKey && i === r ? (e.preventDefault(), n.focus()) : B(i) || (e.preventDefault(), n.focus());
180
- }
181
- function $(e) {
182
- if (!C.open) return;
183
- let t = e.relatedTarget;
184
- if (t instanceof Element) {
185
- if (B(t) || z(t)) return;
186
- } else if (t !== null) return;
187
- requestAnimationFrame(() => {
188
- if (!C.open) return;
189
- let e = document.activeElement;
190
- B(e) || z(e) || e && e !== document.body && !e.isConnected || R() && U();
191
- });
192
- }
193
- 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)), re(() => {
194
- C.open && (K(), I() ? I()?.focus() : H());
195
- }), ie(() => {
196
- 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();
197
- }), p({
198
- focusCancel: () => I()?.focus(),
199
- restoreFocus: G,
200
- isTopmost: R
201
- }), (e, a) => (g(), s(te, {
202
- open: t.open,
203
- size: t.size,
204
- role: t.tone === "danger" ? "alertdialog" : "dialog",
205
- "labelled-by": E,
206
- "described-by": P() ? D : void 0,
207
- busy: t.busy,
208
- "close-on-overlay": !N.value,
209
- "close-disabled": N.value,
210
- "close-on-escape": !1,
211
- "trap-focus": !1,
212
- onClose: De
213
- }, {
214
- header: x(() => [u("span", {
215
- id: E,
216
- class: h(["nb-confirm__heading", `nb-confirm__heading--${t.tone}`])
217
- }, [t.tone === "danger" ? (g(), s(n, {
218
- key: 0,
219
- name: y(de),
220
- size: 16,
221
- "aria-hidden": "true"
222
- }, null, 8, ["name"])) : c("", !0), u("span", null, v(t.title), 1)], 2)]),
223
- footer: x(() => [f(r, {
224
- ref_key: "cancelRef",
225
- ref: A,
226
- class: "nb-confirm__action nb-confirm__action--cancel",
227
- variant: "ghost",
228
- size: "lg",
229
- disabled: N.value,
230
- "data-nb-confirm": "cancel",
231
- onClick: q
232
- }, {
233
- default: x(() => [d(v(t.cancelLabel), 1)]),
234
- _: 1
235
- }, 8, ["disabled"]), f(r, {
236
- class: "nb-confirm__action nb-confirm__action--confirm",
237
- variant: be.value,
238
- size: "lg",
239
- disabled: !F.value,
240
- loading: t.busy,
241
- "data-nb-confirm": "confirm",
242
- onClick: Ce
243
- }, {
244
- default: x(() => [d(v(t.confirmLabel), 1)]),
245
- _: 1
246
- }, 8, [
247
- "variant",
248
- "disabled",
249
- "loading"
250
- ])]),
251
- default: x(() => [u("div", {
252
- ref_key: "rootRef",
253
- ref: O,
254
- class: h(["nb-confirm", t.contentClass])
255
- }, [
256
- P() ? (g(), l("div", {
257
- key: 0,
258
- id: D,
259
- class: "nb-confirm__body"
260
- }, [ae(e.$slots, "default", {}, () => [t.message ? (g(), l("p", fe, v(t.message), 1)) : c("", !0)], !0), t.subject ? (g(), l("p", {
261
- key: 0,
262
- class: h(["nb-confirm__subject", `nb-confirm__subject--${t.tone}`])
263
- }, [t.subjectLabel ? (g(), l("span", pe, v(t.subjectLabel), 1)) : c("", !0), u("span", me, v(t.subject), 1)], 2)) : c("", !0)])) : c("", !0),
264
- t.typeToConfirm ? (g(), l("div", he, [f(ne, {
265
- modelValue: j.value,
266
- "onUpdate:modelValue": a[0] ||= (e) => j.value = e,
267
- class: "nb-confirm__gate-field",
268
- label: xe.value,
269
- helper: t.typeToConfirmHelper,
270
- disabled: N.value,
271
- autocomplete: "off",
272
- spellcheck: "false",
273
- "data-nb-confirm": "gate",
274
- onKeydown: a[1] ||= ce(le(() => {}, ["prevent"]), ["enter"])
275
- }, null, 8, [
276
- "modelValue",
277
- "label",
278
- "helper",
279
- "disabled"
280
- ])])) : c("", !0),
281
- u("div", ge, [
282
- t.busy ? (g(), l("p", _e, v(t.busyLabel), 1)) : c("", !0),
283
- t.succeeded && t.successLabel ? (g(), l("p", ve, [f(n, {
284
- name: y(ue),
285
- size: 14,
286
- "aria-hidden": "true"
287
- }, null, 8, ["name"]), u("span", null, v(t.successLabel), 1)])) : c("", !0),
288
- t.error ? (g(), l("div", {
289
- key: 2,
290
- ref_key: "errorRef",
291
- ref: k,
292
- class: "nb-confirm__error",
293
- tabindex: "-1"
294
- }, [f(i, { variant: "error" }, {
295
- default: x(() => [d(v(t.error), 1)]),
296
- _: 1
297
- })], 512)) : c("", !0)
298
- ])
299
- ], 2)]),
300
- _: 3
301
- }, 8, [
302
- "open",
303
- "size",
304
- "role",
305
- "described-by",
306
- "busy",
307
- "close-on-overlay",
308
- "close-disabled"
309
- ]));
310
- }
311
- }), [["__scopeId", "data-v-683eafb1"]]);
312
- //#endregion
313
- export { S as t };
@@ -1 +0,0 @@
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-CjM5AAf0.cjs`),a=require(`./Modal-stR5KDNF.cjs`),o=require(`./TextInput-DWXb6yKh.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,241 +0,0 @@
1
- import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
- import { i as t, l as n, n as r, u as i } from "./palette-CxPgs-Dn.js";
3
- import { t as a } from "./ChartLegend-C8_vklRf.js";
4
- import { i as o, r as s } from "./scales-DMlq1jQZ.js";
5
- import { t as c } from "./useChartSize-Dbm1f8au.js";
6
- import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, withCtx as S } from "vue";
7
- //#region src/components/Charts/LineChart.vue?vue&type=script&setup=true&lang.ts
8
- var C = [
9
- "width",
10
- "height",
11
- "aria-label"
12
- ], w = { key: 0 }, T = [
13
- "x1",
14
- "x2",
15
- "y1",
16
- "y2"
17
- ], E = { class: "nb-chart__axis" }, D = ["x", "y"], O = { class: "nb-chart__axis" }, k = ["x", "y"], A = [
18
- "x1",
19
- "x2",
20
- "y1",
21
- "y2"
22
- ], j = ["d", "fill"], M = ["d", "stroke"], N = [
23
- "cx",
24
- "cy",
25
- "r",
26
- "fill"
27
- ], P = [
28
- "x1",
29
- "x2",
30
- "y1",
31
- "y2"
32
- ], F = /* @__PURE__ */ e(/* @__PURE__ */ g({
33
- __name: "LineChart",
34
- props: {
35
- series: { default: () => [] },
36
- area: {
37
- type: Boolean,
38
- default: !1
39
- },
40
- points: {
41
- type: Boolean,
42
- default: !1
43
- },
44
- curve: { default: "smooth" },
45
- valueFormatter: {},
46
- title: { default: void 0 },
47
- subtitle: { default: void 0 },
48
- height: { default: 280 },
49
- showLegend: {
50
- type: Boolean,
51
- default: !0
52
- },
53
- showTooltip: {
54
- type: Boolean,
55
- default: !0
56
- },
57
- showGrid: {
58
- type: Boolean,
59
- default: !0
60
- },
61
- colors: { default: () => r }
62
- },
63
- setup(e) {
64
- let r = e, g = {
65
- top: 12,
66
- right: 16,
67
- bottom: 28,
68
- left: 44
69
- }, F = v(null), I = c(F, {
70
- width: 480,
71
- height: 240
72
- }), L = u(() => r.series.map((e, n) => ({
73
- name: e.name,
74
- data: e.data,
75
- color: e.color ?? t(n, r.colors)
76
- }))), R = u(() => (r.series[0]?.data ?? []).map((e) => e.x)), z = u(() => {
77
- let e = r.series.flatMap((e) => e.data.map((e) => e.y));
78
- return e.length ? o(Math.min(0, ...e), Math.max(...e), .1) : [0, 1];
79
- }), B = u(() => s(z.value, [Math.max(g.top, I.value.height - g.bottom), g.top])), V = u(() => B.value.ticks(5)), H = u(() => Math.max(0, I.value.width - g.left - g.right)), U = (e) => {
80
- let t = R.value.length;
81
- return t <= 1 ? g.left + H.value / 2 : g.left + e / (t - 1) * H.value;
82
- }, W = u(() => {
83
- let e = R.value, t = Math.max(1, Math.ceil(e.length / 6)), n = [];
84
- for (let r = 0; r < e.length; r += t) n.push({
85
- index: r,
86
- value: e[r]
87
- });
88
- return e.length && n[n.length - 1].index !== e.length - 1 && n.push({
89
- index: e.length - 1,
90
- value: e[e.length - 1]
91
- }), n;
92
- }), G = (e) => e.length ? q(e.map((e, t) => [U(t), B.value(e.y)]), r.curve) : "", K = (e) => {
93
- if (!e.length) return "";
94
- let t = e.map((e, t) => [U(t), B.value(e.y)]), n = I.value.height - g.bottom;
95
- return `${q(t, r.curve)} L${t[t.length - 1][0]},${n} L${t[0][0]},${n} Z`;
96
- }, q = (e, t) => {
97
- if (!e.length) return "";
98
- if (e.length === 1) return `M${e[0][0]},${e[0][1]}`;
99
- if (t === "linear") return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0]},${e[1]}`).join(" ");
100
- if (t === "step") {
101
- let t = `M${e[0][0]},${e[0][1]}`;
102
- for (let n = 1; n < e.length; n++) {
103
- let [r, i] = e[n - 1], [a, o] = e[n], s = (r + a) / 2;
104
- t += ` L${s},${i} L${s},${o} L${a},${o}`;
105
- }
106
- return t;
107
- }
108
- let n = .2, r = `M${e[0][0]},${e[0][1]}`;
109
- for (let t = 0; t < e.length - 1; t++) {
110
- let i = e[t - 1] ?? e[t], a = e[t], o = e[t + 1], s = e[t + 2] ?? o, c = a[0] + (o[0] - i[0]) * n, l = a[1] + (o[1] - i[1]) * n, u = o[0] - (s[0] - a[0]) * n, d = o[1] - (s[1] - a[1]) * n;
111
- r += ` C${c},${l} ${u},${d} ${o[0]},${o[1]}`;
112
- }
113
- return r;
114
- }, J = (e) => Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : Number.isInteger(e) ? String(e) : e.toFixed(1), Y = (e) => r.valueFormatter ? r.valueFormatter(e) : J(e), X = v(null), Z = v({
115
- x: 0,
116
- y: 0
117
- }), Q = (e) => {
118
- let t = e.currentTarget.getBoundingClientRect(), n = e.clientX - t.left, r = R.value.length;
119
- if (!r) return;
120
- let i = (n - g.left) / Math.max(1, H.value);
121
- X.value = Math.round(Math.min(1, Math.max(0, i)) * (r - 1)), Z.value = {
122
- x: e.clientX - t.left + 12,
123
- y: e.clientY - t.top + 12
124
- };
125
- }, $ = u(() => X.value === null ? [] : L.value.map((e) => {
126
- let t = e.data[X.value];
127
- return {
128
- label: e.name,
129
- value: t?.label ?? Y(t?.y ?? 0),
130
- color: e.color
131
- };
132
- }));
133
- return (t, r) => (_(), d(i, {
134
- title: e.title,
135
- subtitle: e.subtitle,
136
- height: e.height,
137
- "show-legend": e.showLegend && L.value.length > 0
138
- }, {
139
- legend: S(() => [h(a, { items: L.value.map((e) => ({
140
- label: e.name,
141
- color: e.color
142
- })) }, null, 8, ["items"])]),
143
- default: S(() => [m("div", {
144
- ref_key: "root",
145
- ref: F,
146
- class: "nb-line-chart"
147
- }, [(_(), p("svg", {
148
- width: x(I).width,
149
- height: x(I).height,
150
- class: "nb-chart__svg",
151
- role: "img",
152
- "aria-label": e.title || "Line chart",
153
- onMouseleave: r[0] ||= (e) => X.value = null,
154
- onMousemove: Q
155
- }, [
156
- e.showGrid && x(I).width > 0 ? (_(), p("g", w, [(_(!0), p(l, null, y(V.value, (e) => (_(), p("line", {
157
- key: `grid-${e}`,
158
- class: "nb-chart__gridline",
159
- x1: g.left,
160
- x2: x(I).width - g.right,
161
- y1: B.value(e),
162
- y2: B.value(e)
163
- }, null, 8, T))), 128))])) : f("", !0),
164
- m("g", E, [(_(!0), p(l, null, y(V.value, (e) => (_(), p("text", {
165
- key: `yt-${e}`,
166
- x: g.left - 6,
167
- y: B.value(e),
168
- "text-anchor": "end",
169
- "dominant-baseline": "middle"
170
- }, b(Y(e)), 9, D))), 128))]),
171
- m("g", O, [(_(!0), p(l, null, y(W.value, (e, t) => (_(), p("text", {
172
- key: `xt-${t}`,
173
- x: U(e.index),
174
- y: x(I).height - g.bottom + 14,
175
- "text-anchor": "middle"
176
- }, b(e.value), 9, k))), 128))]),
177
- m("line", {
178
- class: "nb-chart__axis-line",
179
- x1: g.left,
180
- x2: x(I).width - g.right,
181
- y1: x(I).height - g.bottom,
182
- y2: x(I).height - g.bottom
183
- }, null, 8, A),
184
- (_(!0), p(l, null, y(L.value, (t, n) => (_(), p("g", { key: `s-${n}` }, [
185
- e.area ? (_(), p("path", {
186
- key: 0,
187
- class: "nb-chart__area",
188
- d: K(t.data),
189
- fill: t.color,
190
- opacity: "0.18"
191
- }, null, 8, j)) : f("", !0),
192
- m("path", {
193
- class: "nb-chart__line",
194
- d: G(t.data),
195
- stroke: t.color,
196
- fill: "none",
197
- "stroke-width": "2",
198
- "stroke-linejoin": "round",
199
- "stroke-linecap": "round"
200
- }, null, 8, M),
201
- e.points ? (_(!0), p(l, { key: 1 }, y(t.data, (e, r) => (_(), p("circle", {
202
- key: `p-${n}-${r}`,
203
- cx: U(r),
204
- cy: B.value(e.y),
205
- r: X.value === r ? 4 : 3,
206
- fill: t.color,
207
- class: "nb-chart__point"
208
- }, null, 8, N))), 128)) : f("", !0)
209
- ]))), 128)),
210
- X.value === null ? f("", !0) : (_(), p("line", {
211
- key: 1,
212
- class: "nb-chart__hover-line",
213
- x1: U(X.value),
214
- x2: U(X.value),
215
- y1: g.top,
216
- y2: x(I).height - g.bottom
217
- }, null, 8, P))
218
- ], 40, C)), h(n, {
219
- visible: e.showTooltip && X.value !== null,
220
- x: Z.value.x,
221
- y: Z.value.y,
222
- title: X.value === null ? "" : String(R.value[X.value]),
223
- rows: $.value
224
- }, null, 8, [
225
- "visible",
226
- "x",
227
- "y",
228
- "title",
229
- "rows"
230
- ])], 512)]),
231
- _: 1
232
- }, 8, [
233
- "title",
234
- "subtitle",
235
- "height",
236
- "show-legend"
237
- ]));
238
- }
239
- }), [["__scopeId", "data-v-90bf8144"]]);
240
- //#endregion
241
- export { F as t };
@@ -1 +0,0 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./palette-0LscvyqA.cjs`),n=require(`./ChartLegend-CTqPJ52N.cjs`),r=require(`./scales-CFWdZe1z.cjs`),i=require(`./useChartSize-C8SNfQZL.cjs`);let a=require(`vue`);var o=[`width`,`height`,`aria-label`],s={key:0},c=[`x1`,`x2`,`y1`,`y2`],l={class:`nb-chart__axis`},u=[`x`,`y`],d={class:`nb-chart__axis`},f=[`x`,`y`],p=[`x1`,`x2`,`y1`,`y2`],m=[`d`,`fill`],h=[`d`,`stroke`],g=[`cx`,`cy`,`r`,`fill`],_=[`x1`,`x2`,`y1`,`y2`],v=(0,a.defineComponent)({__name:`LineChart`,props:{series:{default:()=>[]},area:{type:Boolean,default:!1},points:{type:Boolean,default:!1},curve:{default:`smooth`},valueFormatter:{},title:{default:void 0},subtitle:{default:void 0},height:{default:280},showLegend:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!0},colors:{default:()=>t.n}},setup(e){let v=e,y={top:12,right:16,bottom:28,left:44},b=(0,a.ref)(null),x=i.t(b,{width:480,height:240}),S=(0,a.computed)(()=>v.series.map((e,n)=>({name:e.name,data:e.data,color:e.color??t.i(n,v.colors)}))),C=(0,a.computed)(()=>(v.series[0]?.data??[]).map(e=>e.x)),w=(0,a.computed)(()=>{let e=v.series.flatMap(e=>e.data.map(e=>e.y));return e.length?r.i(Math.min(0,...e),Math.max(...e),.1):[0,1]}),T=(0,a.computed)(()=>r.r(w.value,[Math.max(y.top,x.value.height-y.bottom),y.top])),E=(0,a.computed)(()=>T.value.ticks(5)),D=(0,a.computed)(()=>Math.max(0,x.value.width-y.left-y.right)),O=e=>{let t=C.value.length;return t<=1?y.left+D.value/2:y.left+e/(t-1)*D.value},k=(0,a.computed)(()=>{let e=C.value,t=Math.max(1,Math.ceil(e.length/6)),n=[];for(let r=0;r<e.length;r+=t)n.push({index:r,value:e[r]});return e.length&&n[n.length-1].index!==e.length-1&&n.push({index:e.length-1,value:e[e.length-1]}),n}),A=e=>e.length?M(e.map((e,t)=>[O(t),T.value(e.y)]),v.curve):``,j=e=>{if(!e.length)return``;let t=e.map((e,t)=>[O(t),T.value(e.y)]),n=x.value.height-y.bottom;return`${M(t,v.curve)} L${t[t.length-1][0]},${n} L${t[0][0]},${n} Z`},M=(e,t)=>{if(!e.length)return``;if(e.length===1)return`M${e[0][0]},${e[0][1]}`;if(t===`linear`)return e.map((e,t)=>`${t===0?`M`:`L`}${e[0]},${e[1]}`).join(` `);if(t===`step`){let t=`M${e[0][0]},${e[0][1]}`;for(let n=1;n<e.length;n++){let[r,i]=e[n-1],[a,o]=e[n],s=(r+a)/2;t+=` L${s},${i} L${s},${o} L${a},${o}`}return t}let n=.2,r=`M${e[0][0]},${e[0][1]}`;for(let t=0;t<e.length-1;t++){let i=e[t-1]??e[t],a=e[t],o=e[t+1],s=e[t+2]??o,c=a[0]+(o[0]-i[0])*n,l=a[1]+(o[1]-i[1])*n,u=o[0]-(s[0]-a[0])*n,d=o[1]-(s[1]-a[1])*n;r+=` C${c},${l} ${u},${d} ${o[0]},${o[1]}`}return r},N=e=>Math.abs(e)>=1e3?`${(e/1e3).toFixed(1)}k`:Number.isInteger(e)?String(e):e.toFixed(1),P=e=>v.valueFormatter?v.valueFormatter(e):N(e),F=(0,a.ref)(null),I=(0,a.ref)({x:0,y:0}),L=e=>{let t=e.currentTarget.getBoundingClientRect(),n=e.clientX-t.left,r=C.value.length;if(!r)return;let i=(n-y.left)/Math.max(1,D.value);F.value=Math.round(Math.min(1,Math.max(0,i))*(r-1)),I.value={x:e.clientX-t.left+12,y:e.clientY-t.top+12}},R=(0,a.computed)(()=>F.value===null?[]:S.value.map(e=>{let t=e.data[F.value];return{label:e.name,value:t?.label??P(t?.y??0),color:e.color}}));return(r,i)=>((0,a.openBlock)(),(0,a.createBlock)(t.u,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&S.value.length>0},{legend:(0,a.withCtx)(()=>[(0,a.createVNode)(n.t,{items:S.value.map(e=>({label:e.name,color:e.color}))},null,8,[`items`])]),default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`div`,{ref_key:`root`,ref:b,class:`nb-line-chart`},[((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,{width:(0,a.unref)(x).width,height:(0,a.unref)(x).height,class:`nb-chart__svg`,role:`img`,"aria-label":e.title||`Line chart`,onMouseleave:i[0]||=e=>F.value=null,onMousemove:L},[e.showGrid&&(0,a.unref)(x).width>0?((0,a.openBlock)(),(0,a.createElementBlock)(`g`,s,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(E.value,e=>((0,a.openBlock)(),(0,a.createElementBlock)(`line`,{key:`grid-${e}`,class:`nb-chart__gridline`,x1:y.left,x2:(0,a.unref)(x).width-y.right,y1:T.value(e),y2:T.value(e)},null,8,c))),128))])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`g`,l,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(E.value,e=>((0,a.openBlock)(),(0,a.createElementBlock)(`text`,{key:`yt-${e}`,x:y.left-6,y:T.value(e),"text-anchor":`end`,"dominant-baseline":`middle`},(0,a.toDisplayString)(P(e)),9,u))),128))]),(0,a.createElementVNode)(`g`,d,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(k.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`text`,{key:`xt-${t}`,x:O(e.index),y:(0,a.unref)(x).height-y.bottom+14,"text-anchor":`middle`},(0,a.toDisplayString)(e.value),9,f))),128))]),(0,a.createElementVNode)(`line`,{class:`nb-chart__axis-line`,x1:y.left,x2:(0,a.unref)(x).width-y.right,y1:(0,a.unref)(x).height-y.bottom,y2:(0,a.unref)(x).height-y.bottom},null,8,p),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(S.value,(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`g`,{key:`s-${n}`},[e.area?((0,a.openBlock)(),(0,a.createElementBlock)(`path`,{key:0,class:`nb-chart__area`,d:j(t.data),fill:t.color,opacity:`0.18`},null,8,m)):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`path`,{class:`nb-chart__line`,d:A(t.data),stroke:t.color,fill:`none`,"stroke-width":`2`,"stroke-linejoin":`round`,"stroke-linecap":`round`},null,8,h),e.points?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:1},(0,a.renderList)(t.data,(e,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`circle`,{key:`p-${n}-${r}`,cx:O(r),cy:T.value(e.y),r:F.value===r?4:3,fill:t.color,class:`nb-chart__point`},null,8,g))),128)):(0,a.createCommentVNode)(``,!0)]))),128)),F.value===null?(0,a.createCommentVNode)(``,!0):((0,a.openBlock)(),(0,a.createElementBlock)(`line`,{key:1,class:`nb-chart__hover-line`,x1:O(F.value),x2:O(F.value),y1:y.top,y2:(0,a.unref)(x).height-y.bottom},null,8,_))],40,o)),(0,a.createVNode)(t.l,{visible:e.showTooltip&&F.value!==null,x:I.value.x,y:I.value.y,title:F.value===null?``:String(C.value[F.value]),rows:R.value},null,8,[`visible`,`x`,`y`,`title`,`rows`])],512)]),_:1},8,[`title`,`subtitle`,`height`,`show-legend`]))}}),y=e.t(v,[[`__scopeId`,`data-v-90bf8144`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return y}});
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes