@nubisco/ui 5.48.0 → 5.49.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 (755) hide show
  1. package/dist/AccordionItem--XeLRz2P.js +119 -0
  2. package/dist/AccordionItem-BYSH6dZK.cjs +1 -0
  3. package/dist/ActionGroup-48ZXZCsn.cjs +1 -0
  4. package/dist/ActionGroup-DzQjn3ir.js +137 -0
  5. package/dist/{AiLabel-DywBjSzr.js → AiLabel-CSSIkvKP.js} +20 -20
  6. package/dist/{AiLabel-pRN10dQV.cjs → AiLabel-DSKUOcZs.cjs} +1 -1
  7. package/dist/{AiProvider-DY1xxZff.cjs → AiProvider-BrjUMTRk.cjs} +1 -1
  8. package/dist/{AiProvider-D8O_YaaP.js → AiProvider-Db47uagx.js} +6 -6
  9. package/dist/{AiUsage-HcYF6RQ2.js → AiUsage-BOrAXk2-.js} +2 -2
  10. package/dist/{AiUsage-DRj51zK5.cjs → AiUsage-fQqE0B6N.cjs} +1 -1
  11. package/dist/BackToTop-DgFlV4p4.cjs +1 -0
  12. package/dist/BackToTop-DrgXqZgF.js +51 -0
  13. package/dist/Banner-CazPCK0F.js +89 -0
  14. package/dist/Banner-CyU3PPnt.cjs +1 -0
  15. package/dist/{BarChart-IX4imFVT.cjs → BarChart-3YO4YfUt.cjs} +1 -1
  16. package/dist/{BarChart-tB6MOMoR.js → BarChart-CDvhhPk0.js} +4 -4
  17. package/dist/BatchActions-0P-b3qLI.js +84 -0
  18. package/dist/BatchActions-FDPiGUNh.cjs +1 -0
  19. package/dist/{Blueprint-46DWDZmu.js → Blueprint-CGGNppmS.js} +2 -2
  20. package/dist/{Blueprint-NyUNNf-G.cjs → Blueprint-DBIXzLYg.cjs} +1 -1
  21. package/dist/{BlueprintCard-Cda5rPZu.cjs → BlueprintCard-D3h_rGhj.cjs} +1 -1
  22. package/dist/{BlueprintCard-DDNP1vkk.js → BlueprintCard-_FItugFc.js} +107 -107
  23. package/dist/{BlueprintControls-D0MdXrVv.js → BlueprintControls-1l0QVtB7.js} +49 -75
  24. package/dist/BlueprintControls-C3ffD6W8.cjs +1 -0
  25. package/dist/{Board-CaFH4-Qw.js → Board-CSVCzJ1s.js} +178 -190
  26. package/dist/Board-gUICo94e.cjs +1 -0
  27. package/dist/BottomPanel-1EkHEQ_H.js +81 -0
  28. package/dist/BottomPanel-n2jWpFH7.cjs +1 -0
  29. package/dist/Breadcrumbs-BgMh5bfe.js +185 -0
  30. package/dist/Breadcrumbs-DN_2wxQS.cjs +1 -0
  31. package/dist/{Briefing-CoDyU3k4.js → Briefing-0A1frO4v.js} +3 -3
  32. package/dist/{Briefing-B_ofl8Rt.cjs → Briefing-AqSz-ZdZ.cjs} +1 -1
  33. package/dist/{BriefingDestination-DAu5S2HI.cjs → BriefingDestination-CqyKzyXx.cjs} +1 -1
  34. package/dist/{BriefingDestination-CK4XdAOo.js → BriefingDestination-v3kNa6o_.js} +4 -4
  35. package/dist/Button-BHFtgOXA.cjs +1 -0
  36. package/dist/Button-tpOmP8iV.js +699 -0
  37. package/dist/ButtonSet-BV76HHgD.js +67 -0
  38. package/dist/ButtonSet-Bj9mIOW2.cjs +1 -0
  39. package/dist/Calendar-Bf0Nk0rA.js +153 -0
  40. package/dist/Calendar-D9J17bTp.cjs +1 -0
  41. package/dist/Card-C6KAn4tN.cjs +1 -0
  42. package/dist/Card-qNem4s60.js +162 -0
  43. package/dist/{Checkbox-DXQpih7I.js → Checkbox-BgXXVsCC.js} +1 -1
  44. package/dist/{Checkbox-7JJdh4sN.cjs → Checkbox-DPPln6oG.cjs} +1 -1
  45. package/dist/{CheckboxGroup-B8T3zLQC.cjs → CheckboxGroup-B2a3ezEK.cjs} +1 -1
  46. package/dist/{CheckboxGroup-BHn1hpzh.js → CheckboxGroup-Ck1ylAX9.js} +3 -3
  47. package/dist/ChipGroup-CVDk4ElV.js +74 -0
  48. package/dist/ChipGroup-DojKPHhq.cjs +1 -0
  49. package/dist/CloseButton-9TTFHFmx.cjs +1 -0
  50. package/dist/CloseButton-CdH12Hdn.js +48 -0
  51. package/dist/{ColorStrip-BW1nFTja.js → ColorStrip-CuF9ZGoO.js} +2 -2
  52. package/dist/{ColorStrip-AEg8dQbl.cjs → ColorStrip-bpguV5b2.cjs} +1 -1
  53. package/dist/CommandPalette-CCEzVWfb.cjs +1 -0
  54. package/dist/{CommandPalette-CD75Qytr.js → CommandPalette-D1DuzaA1.js} +100 -85
  55. package/dist/Confirm-BQxQlmjs.cjs +1 -0
  56. package/dist/Confirm-DLhI3VVh.js +331 -0
  57. package/dist/{ContainedListItem-Dj7TcGpO.cjs → ContainedListItem-DjHEyhf8.cjs} +1 -1
  58. package/dist/{ContainedListItem-CSE8d5M6.js → ContainedListItem-DtTZOm-_.js} +1 -1
  59. package/dist/ContentSwitcher-B-PUG0FE.js +99 -0
  60. package/dist/ContentSwitcher-CYSF2B-a.cjs +1 -0
  61. package/dist/CopyButton-CQ9tcyfs.js +60 -0
  62. package/dist/CopyButton-DRvJ4rf5.cjs +1 -0
  63. package/dist/DataTable-CHztTxz1.cjs +1 -0
  64. package/dist/DataTable-Dp3WZihu.js +545 -0
  65. package/dist/DatePicker-BLRQEI-6.js +755 -0
  66. package/dist/DatePicker-CJlffHeM.cjs +1 -0
  67. package/dist/FileUploader-UzgK5RKz.cjs +1 -0
  68. package/dist/FileUploader-dzVu4iSo.js +195 -0
  69. package/dist/FloatingToolbar-BTmWtGU7.js +116 -0
  70. package/dist/FloatingToolbar-DDCJuaq0.cjs +1 -0
  71. package/dist/{Form-D6rgkJ_Y.cjs → Form-D2KHlP7N.cjs} +1 -1
  72. package/dist/{Form-1UVOFWaf.js → Form-igwYeEVI.js} +1 -1
  73. package/dist/{GanttChart-B_LqsmcR.cjs → GanttChart-ClFarMf-.cjs} +1 -1
  74. package/dist/{GanttChart-cZguVXW8.js → GanttChart-N05mLdsn.js} +3 -3
  75. package/dist/{ImageCropper-CJ2mCj9z.cjs → ImageCropper-CoYR_Hhy.cjs} +1 -1
  76. package/dist/{ImageCropper-BFKMYthJ.js → ImageCropper-wQknqxNK.js} +2 -2
  77. package/dist/ImagePicker-Dhj01jq7.cjs +1 -0
  78. package/dist/ImagePicker-zkoay3zZ.js +171 -0
  79. package/dist/InfoHint-BEzkNQTM.cjs +1 -0
  80. package/dist/InfoHint-BlHxrTw6.js +178 -0
  81. package/dist/InlineEdit-DBMKJ3xP.cjs +1 -0
  82. package/dist/InlineEdit-Y8i0ibjH.js +117 -0
  83. package/dist/{InlineLoading-D8T0WO05.js → InlineLoading-CDJ_ZJ6v.js} +1 -1
  84. package/dist/{InlineLoading-CB_1PwMx.cjs → InlineLoading-DKCzcjZJ.cjs} +1 -1
  85. package/dist/InputGroup-DIAJy1Sv.cjs +1 -0
  86. package/dist/InputGroup-DQxpFFlP.js +86 -0
  87. package/dist/InputGroup.context-BTt6zUkj.cjs +1 -0
  88. package/dist/InputGroup.context-CJAWx5GI.js +16 -0
  89. package/dist/{InterpolationChart-CttBiNWU.js → InterpolationChart-BX8-UOeZ.js} +3 -3
  90. package/dist/{InterpolationChart-CYWJFUcs.cjs → InterpolationChart-DaqKUIWi.cjs} +1 -1
  91. package/dist/{LineChart-DNDSJQrB.cjs → LineChart-CGXpi9l8.cjs} +1 -1
  92. package/dist/{LineChart-J8gCM2Ba.js → LineChart-CplGrv8-.js} +4 -4
  93. package/dist/Menu-CcQpTOd3.js +189 -0
  94. package/dist/Menu-SlBztEy3.cjs +1 -0
  95. package/dist/{MenuBarItem-B8H9KfFo.cjs → MenuBarItem-BIDXX-uX.cjs} +1 -1
  96. package/dist/{MenuBarItem-BLdVIz0j.js → MenuBarItem-BlT1hN-b.js} +1 -1
  97. package/dist/Modal-BSGKOUi_.js +223 -0
  98. package/dist/Modal-D0hGHXic.cjs +1 -0
  99. package/dist/NotificationCenter-_CK8Eejg.js +587 -0
  100. package/dist/NotificationCenter-xg0ZCegj.cjs +1 -0
  101. package/dist/NumberInput-CcXqTINb.cjs +1 -0
  102. package/dist/NumberInput-DfrhQayO.js +383 -0
  103. package/dist/OverflowMenu-BlZ_wEja.js +124 -0
  104. package/dist/OverflowMenu-CaC5E0Oy.cjs +1 -0
  105. package/dist/{PageHeader-BVcTzPcW.cjs → PageHeader-2jBgITYE.cjs} +1 -1
  106. package/dist/{PageHeader-CFMhwRcw.js → PageHeader-DgjItuag.js} +2 -2
  107. package/dist/{Pagination-VmE04nzc.cjs → Pagination-B1km1o28.cjs} +1 -1
  108. package/dist/{Pagination-zTp1lrSP.js → Pagination-DA1Nglqx.js} +26 -26
  109. package/dist/{Panel-7qPoq2lb.cjs → Panel-NC6_ZogV.cjs} +1 -1
  110. package/dist/{Panel-D5OHjaTP.js → Panel-zyzu638n.js} +1 -1
  111. package/dist/{PieChart-Ct8oicOS.cjs → PieChart-DQhs44eH.cjs} +1 -1
  112. package/dist/{PieChart-CAB3b8LE.js → PieChart-D_02nX0-.js} +3 -3
  113. package/dist/{PrimaryActionScope-B7VLsHzT.cjs → PrimaryActionScope-Dp2gvqwk.cjs} +1 -1
  114. package/dist/{PrimaryActionScope-CRdjZE0V.js → PrimaryActionScope-sogYOZXZ.js} +1 -1
  115. package/dist/{ProgressBar-DK-j6Bzv.js → ProgressBar-Bp-pe6sU.js} +2 -2
  116. package/dist/{ProgressBar-CfJJf7Sc.cjs → ProgressBar-z912Ppfm.cjs} +1 -1
  117. package/dist/{Radio-CWWt_o_F.js → Radio-DcMkavI8.js} +2 -2
  118. package/dist/{Radio-D0YjKuB2.cjs → Radio-DuvSK9tl.cjs} +1 -1
  119. package/dist/Search-BUgIh9TX.js +130 -0
  120. package/dist/Search-D4SG2q3c.cjs +1 -0
  121. package/dist/Select-Cf0T4gIu.js +604 -0
  122. package/dist/Select-DhwcDMnf.cjs +1 -0
  123. package/dist/Shell-B2y5hn9K.cjs +1 -0
  124. package/dist/Shell-Bh6s0T89.js +536 -0
  125. package/dist/ShellPanel-BDE6Y773.cjs +1 -0
  126. package/dist/ShellPanel-CB71IKMY.js +89 -0
  127. package/dist/{SidebarCollapseToggle-DM-4DAEu.cjs → SidebarCollapseToggle-CqVURaqs.cjs} +1 -1
  128. package/dist/{SidebarCollapseToggle-W1Z_MUIC.js → SidebarCollapseToggle-Dm4QMGpc.js} +2 -2
  129. package/dist/{SidebarHeaderToggle-Bdh1Z9aF.cjs → SidebarHeaderToggle-KW1yBlpF.cjs} +1 -1
  130. package/dist/{SidebarHeaderToggle-C-QIOLnU.js → SidebarHeaderToggle-daU1HfJH.js} +3 -3
  131. package/dist/{SidebarMenuItem-CNunAuyB.js → SidebarMenuItem-BvvoDIjK.js} +1 -1
  132. package/dist/{SidebarMenuItem-DCR-nXAK.cjs → SidebarMenuItem-eFnj5QoE.cjs} +1 -1
  133. package/dist/Skeleton-CMuZJ1dR.cjs +1 -0
  134. package/dist/{Skeleton-C1e02dcW.js → Skeleton-Hmb5a2G_.js} +48 -31
  135. package/dist/{Slider-BaM5cclm.cjs → Slider-D9glvyrU.cjs} +1 -1
  136. package/dist/{Slider-BAXKJCNG.js → Slider-D9hgB8GJ.js} +4 -4
  137. package/dist/{Spinner-PT95bjWq.cjs → Spinner-BTN06wsE.cjs} +1 -1
  138. package/dist/{Spinner-CbBPddUx.js → Spinner-C3MeCm2k.js} +1 -1
  139. package/dist/{Stat-C9XaqyaG.cjs → Stat-BoQUn69z.cjs} +1 -1
  140. package/dist/{Stat-DJJln4rH.js → Stat-Bz0NCLTm.js} +2 -2
  141. package/dist/{Stepper-DV0q0Dfv.cjs → Stepper-BLyPFPge.cjs} +1 -1
  142. package/dist/{Stepper-B4xqkWXg.js → Stepper-BXPgrQE8.js} +1 -1
  143. package/dist/{StepperStep-iGyGKnQL.cjs → StepperStep-DGeyZQXY.cjs} +1 -1
  144. package/dist/{StepperStep-BYhlgeb1.js → StepperStep-DLr_ctr4.js} +1 -1
  145. package/dist/SuggestionList-DjtF5POh.cjs +1 -0
  146. package/dist/SuggestionList-SYGj7Sjv.js +225 -0
  147. package/dist/{Switch-D3j7PPhY.cjs → Switch-CQj6AsQh.cjs} +1 -1
  148. package/dist/{Switch-CbYMiEbQ.js → Switch-CqLfdT_m.js} +2 -2
  149. package/dist/{TableOfContents-CM0HKSde.js → TableOfContents-BIzH0Twf.js} +24 -34
  150. package/dist/{TableOfContents-By2Non4K.cjs → TableOfContents-Ct-Kwm8X.cjs} +1 -1
  151. package/dist/{Tabs--lz44FBk.js → Tabs-B_bsdxWy.js} +1 -1
  152. package/dist/{Tabs-DKikiz0_.cjs → Tabs-CTMUPND5.cjs} +1 -1
  153. package/dist/TextInput-BM2Zc2_R.cjs +2 -0
  154. package/dist/TextInput-DVpNJNwY.js +406 -0
  155. package/dist/Toast-BaMGYx8-.js +118 -0
  156. package/dist/Toast-BvZywdtO.cjs +1 -0
  157. package/dist/{Toaster-CJMQM8JU.cjs → Toaster-CYSWYmUm.cjs} +1 -1
  158. package/dist/{Toaster-DxBW9XQ0.js → Toaster-DtUkjQM_.js} +1 -1
  159. package/dist/Toolbar-BmJeXz4C.cjs +1 -0
  160. package/dist/Toolbar-tOeTdj8a.js +48 -0
  161. package/dist/Toolbar.context-Bli1SqM3.js +4 -0
  162. package/dist/Toolbar.context-D3Uj5o0_.cjs +1 -0
  163. package/dist/{Tree-DP2NPXOL.cjs → Tree-CeXSIcpy.cjs} +1 -1
  164. package/dist/{Tree-CkcFwDr7.js → Tree-RRVk_0QJ.js} +1 -1
  165. package/dist/{TreeNode-DCnlEEpj.js → TreeNode-D9fc2RE_.js} +1 -1
  166. package/dist/{TreeNode-CtklZefA.cjs → TreeNode-z6APXuvr.cjs} +1 -1
  167. package/dist/UserMenu-BGIIKwi6.cjs +1 -0
  168. package/dist/{UserMenu-CWRMaPGO.js → UserMenu-GGR8K7gP.js} +109 -102
  169. package/dist/Video-BxNkDWqi.cjs +1 -0
  170. package/dist/Video-DD01piHm.js +106 -0
  171. package/dist/Walkthrough-C_5h67cq.cjs +1 -0
  172. package/dist/Walkthrough-DpxYuLMU.js +333 -0
  173. package/dist/all.cjs +1 -1
  174. package/dist/all.mjs +271 -253
  175. package/dist/component-styles.json +88 -2
  176. package/dist/components/AccordionItem.cjs +1 -1
  177. package/dist/components/AccordionItem.mjs +1 -1
  178. package/dist/components/AccordionItem.vue.d.ts.map +1 -1
  179. package/dist/components/ActionGroup.cjs +1 -1
  180. package/dist/components/ActionGroup.d.ts +41 -9
  181. package/dist/components/ActionGroup.mjs +1 -1
  182. package/dist/components/ActionGroup.vue.d.ts +2 -2
  183. package/dist/components/ActionGroup.vue.d.ts.map +1 -1
  184. package/dist/components/AiLabel.cjs +1 -1
  185. package/dist/components/AiLabel.mjs +1 -1
  186. package/dist/components/AiProvider.cjs +1 -1
  187. package/dist/components/AiProvider.mjs +1 -1
  188. package/dist/components/AiUsage.cjs +1 -1
  189. package/dist/components/AiUsage.mjs +1 -1
  190. package/dist/components/BackToTop.cjs +1 -1
  191. package/dist/components/BackToTop.mjs +1 -1
  192. package/dist/components/BackToTop.vue.d.ts.map +1 -1
  193. package/dist/components/Badge.cjs +1 -1
  194. package/dist/components/Badge.mjs +1 -1
  195. package/dist/components/Banner.cjs +1 -1
  196. package/dist/components/Banner.mjs +1 -1
  197. package/dist/components/Banner.vue.d.ts.map +1 -1
  198. package/dist/components/BatchActions.cjs +1 -0
  199. package/dist/components/BatchActions.d.ts +43 -0
  200. package/dist/components/BatchActions.mjs +2 -0
  201. package/dist/components/BatchActions.vue.d.ts +30 -0
  202. package/dist/components/BatchActions.vue.d.ts.map +1 -0
  203. package/dist/components/Blueprint.cjs +1 -1
  204. package/dist/components/Blueprint.mjs +1 -1
  205. package/dist/components/Blueprint.vue.d.ts +2 -2
  206. package/dist/components/BlueprintBackground.cjs +1 -1
  207. package/dist/components/BlueprintBackground.mjs +1 -1
  208. package/dist/components/BlueprintCard.cjs +1 -1
  209. package/dist/components/BlueprintCard.mjs +1 -1
  210. package/dist/components/BlueprintCard.vue.d.ts.map +1 -1
  211. package/dist/components/BlueprintControls.cjs +1 -1
  212. package/dist/components/BlueprintControls.mjs +1 -1
  213. package/dist/components/BlueprintControls.vue.d.ts.map +1 -1
  214. package/dist/components/BlueprintMinimap.cjs +1 -1
  215. package/dist/components/BlueprintMinimap.mjs +1 -1
  216. package/dist/components/Board.cjs +1 -1
  217. package/dist/components/Board.mjs +1 -1
  218. package/dist/components/Board.vue.d.ts +2 -2
  219. package/dist/components/Board.vue.d.ts.map +1 -1
  220. package/dist/components/BottomPanel.cjs +1 -1
  221. package/dist/components/BottomPanel.mjs +1 -1
  222. package/dist/components/BottomPanel.vue.d.ts +2 -2
  223. package/dist/components/BottomPanel.vue.d.ts.map +1 -1
  224. package/dist/components/Breadcrumbs.cjs +1 -1
  225. package/dist/components/Breadcrumbs.mjs +1 -1
  226. package/dist/components/Breadcrumbs.vue.d.ts.map +1 -1
  227. package/dist/components/Briefing.cjs +1 -1
  228. package/dist/components/Briefing.mjs +1 -1
  229. package/dist/components/BriefingDestination.cjs +1 -1
  230. package/dist/components/BriefingDestination.mjs +1 -1
  231. package/dist/components/Button.cjs +1 -1
  232. package/dist/components/Button.d.ts +38 -1
  233. package/dist/components/Button.mjs +1 -1
  234. package/dist/components/Button.vue.d.ts +4 -0
  235. package/dist/components/Button.vue.d.ts.map +1 -1
  236. package/dist/components/ButtonSet.cjs +1 -0
  237. package/dist/components/ButtonSet.d.ts +43 -0
  238. package/dist/components/ButtonSet.mjs +2 -0
  239. package/dist/components/ButtonSet.vue.d.ts +11 -0
  240. package/dist/components/ButtonSet.vue.d.ts.map +1 -0
  241. package/dist/components/Calendar.cjs +1 -1
  242. package/dist/components/Calendar.mjs +1 -1
  243. package/dist/components/Calendar.vue.d.ts +2 -2
  244. package/dist/components/Calendar.vue.d.ts.map +1 -1
  245. package/dist/components/Card.cjs +1 -1
  246. package/dist/components/Card.mjs +1 -1
  247. package/dist/components/Card.vue.d.ts +11 -10
  248. package/dist/components/Card.vue.d.ts.map +1 -1
  249. package/dist/components/CardGrid.cjs +1 -1
  250. package/dist/components/CardGrid.d.ts +15 -0
  251. package/dist/components/CardGrid.mjs +1 -1
  252. package/dist/components/Charts/BarChart.cjs +1 -1
  253. package/dist/components/Charts/BarChart.mjs +1 -1
  254. package/dist/components/Charts/GanttChart.cjs +1 -1
  255. package/dist/components/Charts/GanttChart.mjs +1 -1
  256. package/dist/components/Charts/InterpolationChart.cjs +1 -1
  257. package/dist/components/Charts/InterpolationChart.mjs +1 -1
  258. package/dist/components/Charts/LineChart.cjs +1 -1
  259. package/dist/components/Charts/LineChart.mjs +1 -1
  260. package/dist/components/Charts/PieChart.cjs +1 -1
  261. package/dist/components/Charts/PieChart.mjs +1 -1
  262. package/dist/components/Charts/Sparkline.cjs +1 -1
  263. package/dist/components/Charts/Sparkline.mjs +1 -1
  264. package/dist/components/Checkbox.cjs +1 -1
  265. package/dist/components/Checkbox.mjs +1 -1
  266. package/dist/components/CheckboxGroup.cjs +1 -1
  267. package/dist/components/CheckboxGroup.mjs +1 -1
  268. package/dist/components/ChipGroup.cjs +1 -0
  269. package/dist/components/ChipGroup.d.ts +29 -0
  270. package/dist/components/ChipGroup.mjs +2 -0
  271. package/dist/components/ChipGroup.vue.d.ts +14 -0
  272. package/dist/components/ChipGroup.vue.d.ts.map +1 -0
  273. package/dist/components/CloseButton.cjs +1 -0
  274. package/dist/components/CloseButton.d.ts +26 -0
  275. package/dist/components/CloseButton.mjs +2 -0
  276. package/dist/components/CloseButton.vue.d.ts +19 -0
  277. package/dist/components/CloseButton.vue.d.ts.map +1 -0
  278. package/dist/components/ColorStrip.cjs +1 -1
  279. package/dist/components/ColorStrip.mjs +1 -1
  280. package/dist/components/CommandPalette.cjs +1 -1
  281. package/dist/components/CommandPalette.mjs +1 -1
  282. package/dist/components/CommandPalette.vue.d.ts.map +1 -1
  283. package/dist/components/Confirm.cjs +1 -1
  284. package/dist/components/Confirm.d.ts +7 -5
  285. package/dist/components/Confirm.mjs +1 -1
  286. package/dist/components/Confirm.vue.d.ts +1 -1
  287. package/dist/components/Confirm.vue.d.ts.map +1 -1
  288. package/dist/components/ContainedList.cjs +1 -1
  289. package/dist/components/ContainedList.mjs +1 -1
  290. package/dist/components/ContainedListItem.cjs +1 -1
  291. package/dist/components/ContainedListItem.mjs +1 -1
  292. package/dist/components/ContentSwitcher.cjs +1 -0
  293. package/dist/components/ContentSwitcher.d.ts +36 -0
  294. package/dist/components/ContentSwitcher.mjs +2 -0
  295. package/dist/components/ContentSwitcher.vue.d.ts +13 -0
  296. package/dist/components/ContentSwitcher.vue.d.ts.map +1 -0
  297. package/dist/components/CopyButton.cjs +1 -1
  298. package/dist/components/CopyButton.mjs +1 -1
  299. package/dist/components/CopyButton.vue.d.ts.map +1 -1
  300. package/dist/components/DataTable.cjs +1 -1
  301. package/dist/components/DataTable.d.ts +12 -1
  302. package/dist/components/DataTable.mjs +1 -1
  303. package/dist/components/DataTable.vue.d.ts +1 -0
  304. package/dist/components/DataTable.vue.d.ts.map +1 -1
  305. package/dist/components/DatePicker.cjs +1 -1
  306. package/dist/components/DatePicker.mjs +1 -1
  307. package/dist/components/DatePicker.vue.d.ts +2 -2
  308. package/dist/components/DatePicker.vue.d.ts.map +1 -1
  309. package/dist/components/DefinitionList.cjs +1 -1
  310. package/dist/components/DefinitionList.mjs +1 -1
  311. package/dist/components/DefinitionListItem.cjs +1 -1
  312. package/dist/components/DefinitionListItem.mjs +1 -1
  313. package/dist/components/DragHandle.cjs +1 -1
  314. package/dist/components/DragHandle.mjs +1 -1
  315. package/dist/components/EmptyState.cjs +1 -1
  316. package/dist/components/EmptyState.mjs +1 -1
  317. package/dist/components/Field.cjs +1 -1
  318. package/dist/components/Field.mjs +1 -1
  319. package/dist/components/FileUploader.cjs +1 -1
  320. package/dist/components/FileUploader.mjs +1 -1
  321. package/dist/components/FileUploader.vue.d.ts.map +1 -1
  322. package/dist/components/Flag.cjs +1 -1
  323. package/dist/components/Flag.mjs +1 -1
  324. package/dist/components/FloatingToolbar.cjs +1 -1
  325. package/dist/components/FloatingToolbar.mjs +1 -1
  326. package/dist/components/FloatingToolbar.vue.d.ts +1 -3
  327. package/dist/components/FloatingToolbar.vue.d.ts.map +1 -1
  328. package/dist/components/Form.cjs +1 -1
  329. package/dist/components/Form.mjs +1 -1
  330. package/dist/components/Grid.cjs +1 -1
  331. package/dist/components/Grid.mjs +1 -1
  332. package/dist/components/Grid.vue.d.ts +1 -1
  333. package/dist/components/ImageCropper.cjs +1 -1
  334. package/dist/components/ImageCropper.mjs +1 -1
  335. package/dist/components/ImagePicker.cjs +1 -1
  336. package/dist/components/ImagePicker.mjs +1 -1
  337. package/dist/components/ImagePicker.vue.d.ts.map +1 -1
  338. package/dist/components/InfoHint.cjs +1 -1
  339. package/dist/components/InfoHint.mjs +1 -1
  340. package/dist/components/InfoHint.vue.d.ts.map +1 -1
  341. package/dist/components/InlineEdit.cjs +1 -1
  342. package/dist/components/InlineEdit.mjs +1 -1
  343. package/dist/components/InlineEdit.vue.d.ts.map +1 -1
  344. package/dist/components/InlineLoading.cjs +1 -1
  345. package/dist/components/InlineLoading.mjs +1 -1
  346. package/dist/components/InputGroup.cjs +1 -0
  347. package/dist/components/InputGroup.context.d.ts +50 -0
  348. package/dist/components/InputGroup.context.d.ts.map +1 -0
  349. package/dist/components/InputGroup.d.ts +37 -0
  350. package/dist/components/InputGroup.mjs +2 -0
  351. package/dist/components/InputGroup.vue.d.ts +27 -0
  352. package/dist/components/InputGroup.vue.d.ts.map +1 -0
  353. package/dist/components/JsonTree.cjs +1 -1
  354. package/dist/components/JsonTree.mjs +1 -1
  355. package/dist/components/Label.cjs +1 -1
  356. package/dist/components/Label.mjs +1 -1
  357. package/dist/components/Layer.cjs +1 -1
  358. package/dist/components/Layer.mjs +1 -1
  359. package/dist/components/Menu.cjs +1 -1
  360. package/dist/components/Menu.d.ts +11 -0
  361. package/dist/components/Menu.mjs +1 -1
  362. package/dist/components/Menu.vue.d.ts +2 -0
  363. package/dist/components/Menu.vue.d.ts.map +1 -1
  364. package/dist/components/MenuBar.cjs +1 -1
  365. package/dist/components/MenuBar.mjs +1 -1
  366. package/dist/components/MenuBarItem.cjs +1 -1
  367. package/dist/components/MenuBarItem.mjs +1 -1
  368. package/dist/components/MenuDivider.cjs +1 -1
  369. package/dist/components/MenuDivider.mjs +1 -1
  370. package/dist/components/Message.cjs +1 -1
  371. package/dist/components/Message.mjs +1 -1
  372. package/dist/components/Modal.cjs +1 -1
  373. package/dist/components/Modal.d.ts +11 -7
  374. package/dist/components/Modal.mjs +1 -1
  375. package/dist/components/Modal.vue.d.ts +3 -3
  376. package/dist/components/Modal.vue.d.ts.map +1 -1
  377. package/dist/components/NotificationCenter.cjs +1 -1
  378. package/dist/components/NotificationCenter.d.ts +2 -1
  379. package/dist/components/NotificationCenter.mjs +1 -1
  380. package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
  381. package/dist/components/NotificationCenterItem.cjs +1 -1
  382. package/dist/components/NotificationCenterItem.mjs +1 -1
  383. package/dist/components/NubiscoMark.cjs +1 -1
  384. package/dist/components/NubiscoMark.mjs +1 -1
  385. package/dist/components/NubiscoPlatformMark.cjs +1 -1
  386. package/dist/components/NubiscoPlatformMark.mjs +1 -1
  387. package/dist/components/NumberInput.cjs +1 -1
  388. package/dist/components/NumberInput.mjs +1 -1
  389. package/dist/components/NumberInput.vue.d.ts.map +1 -1
  390. package/dist/components/OverflowMenu.cjs +1 -0
  391. package/dist/components/OverflowMenu.d.ts +41 -0
  392. package/dist/components/OverflowMenu.mjs +2 -0
  393. package/dist/components/OverflowMenu.vue.d.ts +36 -0
  394. package/dist/components/OverflowMenu.vue.d.ts.map +1 -0
  395. package/dist/components/PageHeader.cjs +1 -1
  396. package/dist/components/PageHeader.mjs +1 -1
  397. package/dist/components/PageLayout.cjs +1 -1
  398. package/dist/components/PageLayout.mjs +1 -1
  399. package/dist/components/Pagination.cjs +1 -1
  400. package/dist/components/Pagination.mjs +1 -1
  401. package/dist/components/Panel.cjs +1 -1
  402. package/dist/components/Panel.mjs +1 -1
  403. package/dist/components/ProgressBar.cjs +1 -1
  404. package/dist/components/ProgressBar.mjs +1 -1
  405. package/dist/components/Radio.cjs +1 -1
  406. package/dist/components/Radio.mjs +1 -1
  407. package/dist/components/ReorderList.cjs +1 -1
  408. package/dist/components/ReorderList.mjs +1 -1
  409. package/dist/components/Search.cjs +1 -0
  410. package/dist/components/Search.d.ts +36 -0
  411. package/dist/components/Search.mjs +2 -0
  412. package/dist/components/Search.vue.d.ts +32 -0
  413. package/dist/components/Search.vue.d.ts.map +1 -0
  414. package/dist/components/Select.cjs +1 -1
  415. package/dist/components/Select.d.ts +4 -1
  416. package/dist/components/Select.mjs +1 -1
  417. package/dist/components/Select.vue.d.ts +6 -6
  418. package/dist/components/Select.vue.d.ts.map +1 -1
  419. package/dist/components/Shell.cjs +1 -1
  420. package/dist/components/Shell.d.ts +1 -0
  421. package/dist/components/Shell.mjs +1 -1
  422. package/dist/components/Shell.vue.d.ts +2 -2
  423. package/dist/components/Shell.vue.d.ts.map +1 -1
  424. package/dist/components/ShellPanel.cjs +1 -1
  425. package/dist/components/ShellPanel.mjs +1 -1
  426. package/dist/components/ShellPanel.vue.d.ts +2 -2
  427. package/dist/components/ShellPanel.vue.d.ts.map +1 -1
  428. package/dist/components/SidebarBrand.cjs +1 -1
  429. package/dist/components/SidebarBrand.mjs +1 -1
  430. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  431. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  432. package/dist/components/SidebarHeaderToggle.cjs +1 -1
  433. package/dist/components/SidebarHeaderToggle.mjs +1 -1
  434. package/dist/components/SidebarHeaderToggle.vue.d.ts.map +1 -1
  435. package/dist/components/SidebarLink.cjs +1 -1
  436. package/dist/components/SidebarLink.mjs +1 -1
  437. package/dist/components/SidebarMenu.cjs +1 -1
  438. package/dist/components/SidebarMenu.mjs +1 -1
  439. package/dist/components/SidebarMenuGroup.cjs +1 -1
  440. package/dist/components/SidebarMenuGroup.mjs +1 -1
  441. package/dist/components/SidebarMenuItem.cjs +1 -1
  442. package/dist/components/SidebarMenuItem.mjs +1 -1
  443. package/dist/components/SidebarMenuItem.vue.d.ts.map +1 -1
  444. package/dist/components/SidebarStatus.cjs +1 -1
  445. package/dist/components/SidebarStatus.mjs +1 -1
  446. package/dist/components/Skeleton.cjs +1 -1
  447. package/dist/components/Skeleton.d.ts +20 -1
  448. package/dist/components/Skeleton.mjs +1 -1
  449. package/dist/components/Skeleton.vue.d.ts +3 -0
  450. package/dist/components/Skeleton.vue.d.ts.map +1 -1
  451. package/dist/components/Slider.cjs +1 -1
  452. package/dist/components/Slider.mjs +1 -1
  453. package/dist/components/Spinner.cjs +1 -1
  454. package/dist/components/Spinner.mjs +1 -1
  455. package/dist/components/Stat.cjs +1 -1
  456. package/dist/components/Stat.mjs +1 -1
  457. package/dist/components/Stepper.cjs +1 -1
  458. package/dist/components/Stepper.mjs +1 -1
  459. package/dist/components/StepperStep.cjs +1 -1
  460. package/dist/components/StepperStep.mjs +1 -1
  461. package/dist/components/StructuredList.cjs +1 -1
  462. package/dist/components/StructuredList.mjs +1 -1
  463. package/dist/components/StructuredList.vue.d.ts +2 -2
  464. package/dist/components/Submenu.cjs +1 -1
  465. package/dist/components/Submenu.mjs +1 -1
  466. package/dist/components/SuggestionList.cjs +1 -1
  467. package/dist/components/SuggestionList.d.ts +8 -0
  468. package/dist/components/SuggestionList.mjs +1 -1
  469. package/dist/components/SuggestionList.vue.d.ts +3 -0
  470. package/dist/components/SuggestionList.vue.d.ts.map +1 -1
  471. package/dist/components/Switch.cjs +1 -1
  472. package/dist/components/Switch.mjs +1 -1
  473. package/dist/components/TableOfContents.cjs +1 -1
  474. package/dist/components/TableOfContents.mjs +1 -1
  475. package/dist/components/TableOfContents.vue.d.ts.map +1 -1
  476. package/dist/components/Tabs.cjs +1 -1
  477. package/dist/components/Tabs.mjs +1 -1
  478. package/dist/components/TextInput.cjs +1 -1
  479. package/dist/components/TextInput.mjs +1 -1
  480. package/dist/components/TextInput.vue.d.ts +20 -4
  481. package/dist/components/TextInput.vue.d.ts.map +1 -1
  482. package/dist/components/Toast.cjs +1 -1
  483. package/dist/components/Toast.mjs +1 -1
  484. package/dist/components/Toast.vue.d.ts +4 -1
  485. package/dist/components/Toast.vue.d.ts.map +1 -1
  486. package/dist/components/Toaster.cjs +1 -1
  487. package/dist/components/Toaster.mjs +1 -1
  488. package/dist/components/Toolbar.cjs +1 -0
  489. package/dist/components/Toolbar.context.d.ts +22 -0
  490. package/dist/components/Toolbar.context.d.ts.map +1 -0
  491. package/dist/components/Toolbar.d.ts +26 -0
  492. package/dist/components/Toolbar.mjs +2 -0
  493. package/dist/components/Toolbar.vue.d.ts +24 -0
  494. package/dist/components/Toolbar.vue.d.ts.map +1 -0
  495. package/dist/components/Tree.cjs +1 -1
  496. package/dist/components/Tree.mjs +1 -1
  497. package/dist/components/TreeNode.cjs +1 -1
  498. package/dist/components/TreeNode.mjs +1 -1
  499. package/dist/components/TreeNode.vue.d.ts +1 -1
  500. package/dist/components/UserMenu.cjs +1 -1
  501. package/dist/components/UserMenu.mjs +1 -1
  502. package/dist/components/UserMenu.vue.d.ts.map +1 -1
  503. package/dist/components/Video.cjs +1 -1
  504. package/dist/components/Video.mjs +1 -1
  505. package/dist/components/Video.vue.d.ts.map +1 -1
  506. package/dist/components/Walkthrough.cjs +1 -1
  507. package/dist/components/Walkthrough.mjs +1 -1
  508. package/dist/components/Walkthrough.vue.d.ts.map +1 -1
  509. package/dist/components/Wireframe.cjs +1 -1
  510. package/dist/components/Wireframe.mjs +1 -1
  511. package/dist/components/index.d.ts.map +1 -1
  512. package/dist/components/manifest.d.ts +9 -0
  513. package/dist/components/manifest.d.ts.map +1 -1
  514. package/dist/components/manifest.js +9 -0
  515. package/dist/composables/useBlueprint.composable.cjs +1 -1
  516. package/dist/composables/useBlueprint.composable.mjs +1 -1
  517. package/dist/composables/useConfirm.composable.cjs +1 -1
  518. package/dist/composables/useConfirm.composable.mjs +3 -3
  519. package/dist/composables/useInlineLoading.composable.cjs +1 -1
  520. package/dist/composables/useInlineLoading.composable.mjs +1 -1
  521. package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
  522. package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
  523. package/dist/composables/useNbStrings.composable.cjs +1 -1
  524. package/dist/composables/useNbStrings.composable.d.ts +66 -0
  525. package/dist/composables/useNbStrings.composable.d.ts.map +1 -1
  526. package/dist/composables/useNbStrings.composable.mjs +61 -0
  527. package/dist/composables/useRovingFocus.composable.cjs +1 -0
  528. package/dist/composables/useRovingFocus.composable.d.ts +22 -0
  529. package/dist/composables/useRovingFocus.composable.d.ts.map +1 -0
  530. package/dist/composables/useRovingFocus.composable.mjs +56 -0
  531. package/dist/directives/ToolTip.directive.d.ts +56 -0
  532. package/dist/directives/ToolTip.directive.d.ts.map +1 -1
  533. package/dist/global.d.ts +18 -0
  534. package/dist/index.cjs +1 -1
  535. package/dist/index.mjs +152 -143
  536. package/dist/main-Bo1B-xzL.cjs +4 -0
  537. package/dist/main-nO1LQzsc.js +744 -0
  538. package/dist/main.d.ts +21 -1
  539. package/dist/main.d.ts.map +1 -1
  540. package/dist/styles/AccordionItem.css +1 -1
  541. package/dist/styles/ActionGroup.css +1 -1
  542. package/dist/styles/Banner.css +1 -1
  543. package/dist/styles/BatchActions.css +1 -0
  544. package/dist/styles/BlueprintCard.css +1 -1
  545. package/dist/styles/BlueprintControls.css +1 -1
  546. package/dist/styles/Board.css +1 -1
  547. package/dist/styles/BottomPanel.css +1 -1
  548. package/dist/styles/Breadcrumbs.css +1 -1
  549. package/dist/styles/Button.css +1 -1
  550. package/dist/styles/ButtonSet.css +1 -0
  551. package/dist/styles/Calendar.css +1 -1
  552. package/dist/styles/Card.css +1 -1
  553. package/dist/styles/ChipGroup.css +1 -0
  554. package/dist/styles/CommandPalette.css +1 -1
  555. package/dist/styles/Confirm.css +1 -1
  556. package/dist/styles/ContentSwitcher.css +1 -0
  557. package/dist/styles/DataTable.css +1 -1
  558. package/dist/styles/DatePicker.css +1 -1
  559. package/dist/styles/FileUploader.css +1 -1
  560. package/dist/styles/FloatingToolbar.css +1 -1
  561. package/dist/styles/ImagePicker.css +1 -1
  562. package/dist/styles/InfoHint.css +1 -1
  563. package/dist/styles/InlineEdit.css +1 -1
  564. package/dist/styles/InputGroup.css +1 -0
  565. package/dist/styles/Modal.css +1 -1
  566. package/dist/styles/NotificationCenter.css +1 -1
  567. package/dist/styles/NumberInput.css +1 -1
  568. package/dist/styles/OverflowMenu.css +1 -0
  569. package/dist/styles/Pagination.css +1 -1
  570. package/dist/styles/Search.css +1 -0
  571. package/dist/styles/Select.css +1 -1
  572. package/dist/styles/Shell.css +1 -1
  573. package/dist/styles/ShellPanel.css +1 -1
  574. package/dist/styles/SidebarHeaderToggle.css +1 -1
  575. package/dist/styles/SidebarMenuItem.css +1 -1
  576. package/dist/styles/Skeleton.css +1 -1
  577. package/dist/styles/SuggestionList.css +1 -1
  578. package/dist/styles/TableOfContents.css +1 -1
  579. package/dist/styles/TextInput.css +1 -1
  580. package/dist/styles/Toast.css +1 -1
  581. package/dist/styles/Toolbar.css +1 -0
  582. package/dist/styles/UserMenu.css +1 -1
  583. package/dist/styles/Walkthrough.css +1 -1
  584. package/dist/ui.css +44 -36
  585. package/dist/utils/actionFit.helper.cjs +1 -0
  586. package/dist/utils/actionFit.helper.d.ts +20 -0
  587. package/dist/utils/actionFit.helper.d.ts.map +1 -0
  588. package/dist/utils/actionFit.helper.mjs +13 -0
  589. package/package.json +2 -2
  590. package/src/styles/_theme.scss +19 -9
  591. package/src/styles/logic/_field.scss +22 -0
  592. package/src/styles/logic/_focus.scss +20 -0
  593. package/src/styles/logic/index.scss +1 -0
  594. package/src/utils/actionFit.helper.ts +40 -0
  595. package/dist/AccordionItem-DFwj28eL.js +0 -118
  596. package/dist/AccordionItem-DhZD2kJL.cjs +0 -1
  597. package/dist/ActionGroup-CJoBGUvw.js +0 -171
  598. package/dist/ActionGroup-CU9YQboQ.cjs +0 -1
  599. package/dist/BackToTop-C5gFfuu7.cjs +0 -1
  600. package/dist/BackToTop-DZhl6N_Q.js +0 -56
  601. package/dist/Banner-5uX-ujbu.js +0 -93
  602. package/dist/Banner-CiIQKSxv.cjs +0 -1
  603. package/dist/BlueprintControls-DnUoI9qp.cjs +0 -1
  604. package/dist/Board-BNB96CXm.cjs +0 -1
  605. package/dist/BottomPanel-CYxavAS0.cjs +0 -1
  606. package/dist/BottomPanel-vFcIk2nf.js +0 -115
  607. package/dist/Breadcrumbs-B-pjVWeD.js +0 -184
  608. package/dist/Breadcrumbs-CqDYLfIQ.cjs +0 -1
  609. package/dist/Button-C0N1cyOQ.cjs +0 -1
  610. package/dist/Button-CuwzIVWv.js +0 -132
  611. package/dist/Calendar-Bbk7bPW1.cjs +0 -1
  612. package/dist/Calendar-EiqHtUG2.js +0 -155
  613. package/dist/Card-B5FTcFEQ.cjs +0 -1
  614. package/dist/Card-DUTWbKv7.js +0 -143
  615. package/dist/CommandPalette-C8-2XCrf.cjs +0 -1
  616. package/dist/Confirm-BA-t4jPF.cjs +0 -1
  617. package/dist/Confirm-MmMvMttu.js +0 -313
  618. package/dist/CopyButton-Bcc2BDJ8.js +0 -65
  619. package/dist/CopyButton-CwHAVKQ6.cjs +0 -1
  620. package/dist/DataTable-D4KrQH5E.js +0 -485
  621. package/dist/DataTable-DVJnvBQM.cjs +0 -1
  622. package/dist/DatePicker-BmuVSyZ3.cjs +0 -1
  623. package/dist/DatePicker-CagtB0Sd.js +0 -743
  624. package/dist/FileUploader-B9j-HmX3.js +0 -193
  625. package/dist/FileUploader-BolhAWrI.cjs +0 -1
  626. package/dist/FloatingToolbar-CYOuKLd7.js +0 -140
  627. package/dist/FloatingToolbar-DxUUozlf.cjs +0 -1
  628. package/dist/ImagePicker-CZEFzYC8.js +0 -171
  629. package/dist/ImagePicker-CebI8MDy.cjs +0 -1
  630. package/dist/InfoHint-DVrm41q9.js +0 -177
  631. package/dist/InfoHint-WYitTbYz.cjs +0 -1
  632. package/dist/InlineEdit-DViLVwtn.js +0 -116
  633. package/dist/InlineEdit-DfkmTudh.cjs +0 -1
  634. package/dist/Menu-CLDGxi-1.cjs +0 -1
  635. package/dist/Menu-C_UsGyKX.js +0 -177
  636. package/dist/Modal-1i_nDqvM.cjs +0 -1
  637. package/dist/Modal-CxIl02xU.js +0 -229
  638. package/dist/NotificationCenter-CXn7sGFw.cjs +0 -1
  639. package/dist/NotificationCenter-Cu_vs-jh.js +0 -584
  640. package/dist/NumberInput-CMxlZ54a.cjs +0 -1
  641. package/dist/NumberInput-Dy0leAIF.js +0 -324
  642. package/dist/Select-Bz4tf2H_.cjs +0 -1
  643. package/dist/Select-hL8I-aNK.js +0 -603
  644. package/dist/Shell-BxGBrQsM.js +0 -536
  645. package/dist/Shell-BzXh23BU.cjs +0 -1
  646. package/dist/ShellPanel-DzkkJYVd.js +0 -126
  647. package/dist/ShellPanel-XYKkAc5n.cjs +0 -1
  648. package/dist/Skeleton-CqZ9O0X0.cjs +0 -1
  649. package/dist/SuggestionList-BJjbVvt2.cjs +0 -1
  650. package/dist/SuggestionList-Bdx7CK__.js +0 -189
  651. package/dist/TextInput-BXyJQfGx.js +0 -348
  652. package/dist/TextInput-DKp819VS.cjs +0 -2
  653. package/dist/Toast-BKrvlON6.cjs +0 -1
  654. package/dist/Toast-fRHhhjZV.js +0 -115
  655. package/dist/UserMenu-GJHs1fKI.cjs +0 -1
  656. package/dist/Video-D1WOYCYH.cjs +0 -1
  657. package/dist/Video-DrDqaCXl.js +0 -104
  658. package/dist/Walkthrough-DXMDgB9t.cjs +0 -1
  659. package/dist/Walkthrough-D_vfYTWP.js +0 -327
  660. package/dist/main-BTximdIU.js +0 -1255
  661. package/dist/main-DkNxc78b.cjs +0 -4
  662. package/dist/motion-BjVtMTXD.cjs +0 -1
  663. package/dist/motion-C0h9XZQZ.js +0 -18
  664. /package/dist/{Badge-CfICqXrd.cjs → Badge-BYfdJcdD.cjs} +0 -0
  665. /package/dist/{Badge-BFsoJcCK.js → Badge-scjsdx_V.js} +0 -0
  666. /package/dist/{Blueprint.context-B3d5-4jD.cjs → Blueprint.context-BX56xsrT.cjs} +0 -0
  667. /package/dist/{Blueprint.context-B4bRLj7m.js → Blueprint.context-Bz6Jy1Ou.js} +0 -0
  668. /package/dist/{BlueprintBackground-5OOF-VpK.js → BlueprintBackground-DPjZeMwY.js} +0 -0
  669. /package/dist/{BlueprintBackground-D_JokLTK.cjs → BlueprintBackground-yHRGclEz.cjs} +0 -0
  670. /package/dist/{BlueprintMinimap-CACuVJqI.cjs → BlueprintMinimap-qskDNYyr.cjs} +0 -0
  671. /package/dist/{BlueprintMinimap-Ehrltju2.js → BlueprintMinimap-xnsyS1M8.js} +0 -0
  672. /package/dist/{Card.link-eRkbFiF1.cjs → Card.link-Bw2B_lPO.cjs} +0 -0
  673. /package/dist/{Card.link-CB8_CTbn.js → Card.link-CdvubtHJ.js} +0 -0
  674. /package/dist/{CardGrid-DzjiR2wg.cjs → CardGrid-DPaITpcU.cjs} +0 -0
  675. /package/dist/{CardGrid-BOhFOzTs.js → CardGrid-j0TFmVrQ.js} +0 -0
  676. /package/dist/{ChartLegend-C81jju4k.cjs → ChartLegend-COJeG-2B.cjs} +0 -0
  677. /package/dist/{ChartLegend-fsJqOyGj.js → ChartLegend-LDNukufA.js} +0 -0
  678. /package/dist/{CheckboxGroup.context-C8p21aqH.cjs → CheckboxGroup.context-ADwiY4gy.cjs} +0 -0
  679. /package/dist/{CheckboxGroup.context-Cu0BA648.js → CheckboxGroup.context-C1QB-Zsq.js} +0 -0
  680. /package/dist/{ContainedList-DV8kZgTS.cjs → ContainedList-CBWwEmoK.cjs} +0 -0
  681. /package/dist/{ContainedList-7uMU4e4Z.js → ContainedList-PUA2OJ08.js} +0 -0
  682. /package/dist/{DefinitionList-DIPobaPW.js → DefinitionList-BOVcW-V7.js} +0 -0
  683. /package/dist/{DefinitionList-BuRW4drr.cjs → DefinitionList-CndoLDLs.cjs} +0 -0
  684. /package/dist/{DefinitionListItem-CbVnrShi.js → DefinitionListItem-C3VrLhWY.js} +0 -0
  685. /package/dist/{DefinitionListItem-Bf9amK8a.cjs → DefinitionListItem-CLztc8mQ.cjs} +0 -0
  686. /package/dist/{DragHandle-snItY92k.cjs → DragHandle-Bz2N22Sm.cjs} +0 -0
  687. /package/dist/{DragHandle-dCNBfHJe.js → DragHandle-Cc7WrUj7.js} +0 -0
  688. /package/dist/{EmptyState-B8EM9ynK.cjs → EmptyState-Db0Zrrk2.cjs} +0 -0
  689. /package/dist/{EmptyState-D-fku2DD.js → EmptyState-DhlJV0C6.js} +0 -0
  690. /package/dist/{Field-3S8uGW95.cjs → Field-COMPegVv.cjs} +0 -0
  691. /package/dist/{Field-DK5iec3Z.js → Field-D12Dja-u.js} +0 -0
  692. /package/dist/{Flag-myXFwopO.js → Flag-DyDqHJy3.js} +0 -0
  693. /package/dist/{Flag-CNx_cE4Q.cjs → Flag-gM91kXTi.cjs} +0 -0
  694. /package/dist/{Grid-jlgLOwom.js → Grid-B7d8x0tA.js} +0 -0
  695. /package/dist/{Grid-C0muGlj3.cjs → Grid-BOtE_jXr.cjs} +0 -0
  696. /package/dist/{JsonTree-Bmj8WtzK.cjs → JsonTree-MjCO8_Xk.cjs} +0 -0
  697. /package/dist/{JsonTree-BWfMcWOV.js → JsonTree-VbXpLPoG.js} +0 -0
  698. /package/dist/{Label-CTOPIIbR.cjs → Label-CjxnZgNy.cjs} +0 -0
  699. /package/dist/{Label-BDMCrURR.js → Label-xwHw_UbN.js} +0 -0
  700. /package/dist/{Layer-BJeI6Q6N.js → Layer-Btb-b9Mk.js} +0 -0
  701. /package/dist/{Layer-D-MNrLiB.cjs → Layer-D0NqQYM0.cjs} +0 -0
  702. /package/dist/{MenuBar-aLDr7-eJ.cjs → MenuBar-BVgGbppN.cjs} +0 -0
  703. /package/dist/{MenuBar-DyJufs5b.js → MenuBar-M2eiYZG0.js} +0 -0
  704. /package/dist/{MenuDivider-aZIXvYsH.js → MenuDivider-B3tNv2aj.js} +0 -0
  705. /package/dist/{MenuDivider-D75yF8o8.cjs → MenuDivider-BSMtwoUU.cjs} +0 -0
  706. /package/dist/{Message-Bija1nMK.cjs → Message-BJO4MjiQ.cjs} +0 -0
  707. /package/dist/{Message-BONOwoVY.js → Message-DCeg8qsC.js} +0 -0
  708. /package/dist/{NotificationCenterItem-zdOMnxv1.cjs → NotificationCenterItem-D0agavaK.cjs} +0 -0
  709. /package/dist/{NotificationCenterItem-BbbBFYEu.js → NotificationCenterItem-O6SR_6KR.js} +0 -0
  710. /package/dist/{NubiscoMark-Cf7Ek83E.cjs → NubiscoMark-3StsXBoJ.cjs} +0 -0
  711. /package/dist/{NubiscoMark-BLT8ULAl.js → NubiscoMark-XJWPWIc0.js} +0 -0
  712. /package/dist/{NubiscoPlatformMark-Dca7vi6H.js → NubiscoPlatformMark-BgQLjI89.js} +0 -0
  713. /package/dist/{NubiscoPlatformMark-CXMSQDYh.cjs → NubiscoPlatformMark-D8WIp4On.cjs} +0 -0
  714. /package/dist/{PageLayout-DQKfOSQq.js → PageLayout-BMcT2mzU.js} +0 -0
  715. /package/dist/{PageLayout-Dw4JYS3k.cjs → PageLayout-DHi1w1PD.cjs} +0 -0
  716. /package/dist/{PrimaryAction.context-BkYkcMlm.js → PrimaryAction.context-DZUcR5ER.js} +0 -0
  717. /package/dist/{PrimaryAction.context-2v_jcQAo.cjs → PrimaryAction.context-DnzRVqGH.cjs} +0 -0
  718. /package/dist/{ReorderList-B1CYGR0e.js → ReorderList-DmjW30Mw.js} +0 -0
  719. /package/dist/{ReorderList-DBW8TBu6.cjs → ReorderList-qScXc3-v.cjs} +0 -0
  720. /package/dist/{SidebarBrand-FHBO4Dw3.js → SidebarBrand-CZf-kRyZ.js} +0 -0
  721. /package/dist/{SidebarBrand-CX-BgI4X.cjs → SidebarBrand-D2u7hX-v.cjs} +0 -0
  722. /package/dist/{SidebarLink-xtGCDABj.js → SidebarLink-BuRBmv_k.js} +0 -0
  723. /package/dist/{SidebarLink-DTGVapwa.cjs → SidebarLink-CSTNfb2F.cjs} +0 -0
  724. /package/dist/{SidebarMenu-CnsOBXeM.cjs → SidebarMenu-CAthEmyy.cjs} +0 -0
  725. /package/dist/{SidebarMenu-D24o7HS-.js → SidebarMenu-CgWUHllQ.js} +0 -0
  726. /package/dist/{SidebarMenuGroup-DJasr_cx.cjs → SidebarMenuGroup-B9JGPBcF.cjs} +0 -0
  727. /package/dist/{SidebarMenuGroup-Bjc2IeK5.js → SidebarMenuGroup-DdWg57Wv.js} +0 -0
  728. /package/dist/{SidebarStatus-D-CfUYFc.js → SidebarStatus-CnTnYL4x.js} +0 -0
  729. /package/dist/{SidebarStatus-YfLW9xzC.cjs → SidebarStatus-CvjuggXO.cjs} +0 -0
  730. /package/dist/{Sparkline-MAi1Fh2T.cjs → Sparkline-B7kUEfuW.cjs} +0 -0
  731. /package/dist/{Sparkline-m3wbt-f1.js → Sparkline-CVzkzaOJ.js} +0 -0
  732. /package/dist/{Stepper.context-DUIDhN9Q.cjs → Stepper.context-Brnt5IZv.cjs} +0 -0
  733. /package/dist/{Stepper.context-DqfEvgGM.js → Stepper.context-CRKX8lxW.js} +0 -0
  734. /package/dist/{StructuredList-h9JFXpF4.cjs → StructuredList-BexC0c1Z.cjs} +0 -0
  735. /package/dist/{StructuredList-BSfuLANB.js → StructuredList-DuBBP01p.js} +0 -0
  736. /package/dist/{Submenu-Dxo3DUDA.cjs → Submenu-DRkHiWsD.cjs} +0 -0
  737. /package/dist/{Submenu-BnMaJKYm.js → Submenu-Dnj5MiFy.js} +0 -0
  738. /package/dist/{TextInput.context-DV1MgL_Q.js → TextInput.context-B-mipPOo.js} +0 -0
  739. /package/dist/{TextInput.context-UTLuljcO.cjs → TextInput.context-ChkcqMNM.cjs} +0 -0
  740. /package/dist/{TreeContext-TZ35sT5B.cjs → TreeContext-B2Io2oii.cjs} +0 -0
  741. /package/dist/{TreeContext--GZ21fCm.js → TreeContext-Cs4iAw0d.js} +0 -0
  742. /package/dist/{Wireframe-CL0rjsos.cjs → Wireframe-3fvc4I5-.cjs} +0 -0
  743. /package/dist/{Wireframe-BxUNaH2g.js → Wireframe-C_Ca3wCn.js} +0 -0
  744. /package/dist/{palette-CWU7exM6.js → palette-6bEW4KUN.js} +0 -0
  745. /package/dist/{palette-B7XEOMVB.cjs → palette-LbOzdAXj.cjs} +0 -0
  746. /package/dist/{pixi-scene-BKyneWmd.cjs → pixi-scene-CQ1qoZvX.cjs} +0 -0
  747. /package/dist/{pixi-scene-TbaBQ2-u.js → pixi-scene-DFCEvc1j.js} +0 -0
  748. /package/dist/{scales-CNW8JgKC.js → scales-BGzTviac.js} +0 -0
  749. /package/dist/{scales-B8IbC7t_.cjs → scales-BRSHTjbp.cjs} +0 -0
  750. /package/dist/{useChartSize-CftshgoY.js → useChartSize-05CLdiR0.js} +0 -0
  751. /package/dist/{useChartSize-B6Bes760.cjs → useChartSize-CUZ7BuGD.cjs} +0 -0
  752. /package/dist/{useLoadingAnnouncer.composable-Dn1mqnqe.cjs → useLoadingAnnouncer.composable-CEPRjDi3.cjs} +0 -0
  753. /package/dist/{useLoadingAnnouncer.composable-BAwecV1M.js → useLoadingAnnouncer.composable-c0XX_xNT.js} +0 -0
  754. /package/dist/{vue-i18n-DSR949qU.js → vue-i18n-DaD-yZmK.js} +0 -0
  755. /package/dist/{vue-i18n-DIvTc6LM.cjs → vue-i18n-ZdR0XDmN.cjs} +0 -0
@@ -0,0 +1 @@
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-BHFtgOXA.cjs`),t=require(`./composables/useSurfaceLayer.composable.cjs`),n=require(`./composables/usePhoneLayout.composable.cjs`),r=require(`./composables/useNbStrings.composable.cjs`),i=require(`./Label-CjxnZgNy.cjs`),a=require(`./Message-BJO4MjiQ.cjs`),o=require(`./Grid-BOtE_jXr.cjs`),s=require(`./composables/useMenuSurface.composable.cjs`),c=require(`./composables/useVisualViewportVar.composable.cjs`);let l=require(`vue`),u=require(`@nubisco/ui/icons/caret-right`),d=require(`@nubisco/ui/icons/caret-left`),f=require(`@nubisco/ui/icons/calendar`),ee=require(`@nubisco/ui/icons/caret-double-left`),te=require(`@nubisco/ui/icons/caret-double-right`);var ne={class:`nb-date-picker__col`},re=[`id`,`value`,`placeholder`,`disabled`,`readonly`,`required`,`name`,`aria-invalid`,`aria-describedby`],ie={key:0,class:`nb-date-picker__col`},ae=[`id`,`value`,`placeholder`,`disabled`,`readonly`,`required`,`aria-invalid`,`aria-describedby`],oe={key:0,class:`nb-date-picker__inner-header`},se=[`for`],ce={key:0,class:`nb-date-picker__asterisk`,"aria-hidden":`true`},le={class:`nb-date-picker__fluid-row`},ue=[`id`,`value`,`placeholder`,`disabled`,`readonly`,`required`,`name`,`aria-invalid`],de={key:0,class:`nb-date-picker__inner-header`},fe=[`for`],pe={key:0,class:`nb-date-picker__asterisk`,"aria-hidden":`true`},me={class:`nb-date-picker__fluid-row`},he=[`id`,`value`,`placeholder`,`disabled`,`readonly`,`required`,`aria-invalid`],ge=[`aria-label`],_e={class:`nb-date-picker__cal-header`},ve=[`id`],ye=[`aria-labelledby`],be={class:`nb-date-picker__cal-weekdays`},xe=[`abbr`],Se=[`aria-selected`,`aria-disabled`],Ce=[`tabindex`,`disabled`,`aria-label`,`data-date`,`onClick`],p=(0,l.defineComponent)({inheritAttrs:!1,__name:`DatePicker`,props:{modelValue:{default:null},type:{default:`single`},endValue:{default:null},min:{default:void 0},max:{default:void 0},weekStart:{default:1},locale:{default:void 0},endPlaceholder:{default:``},endLabel:{default:``},endError:{default:``},endWarning:{default:``},disabledDates:{type:[Array,Function],default:void 0},readonly:{type:Boolean,default:!1},placeholder:{default:``},name:{default:``},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},id:{default:void 0},label:{default:``},error:{default:``},warning:{default:``},helper:{default:``},variant:{default:`default`},size:{default:`md`}},emits:[`update:modelValue`,`update:endValue`,`change`],setup(p,{expose:we,emit:Te}){let m=r.useNbStrings(),h=p,{layerProps:Ee}=t.useSurfaceLayer({overlay:!0}),g=Te,De=`nb-date-picker-${(0,l.useId)()}`,_=(0,l.computed)(()=>h.id??De),v=(0,l.computed)(()=>`${_.value}-end`),y=(0,l.computed)(()=>`${_.value}-helper`),Oe=(0,l.computed)(()=>`${_.value}-message`),ke=(0,l.computed)(()=>`${_.value}-end-message`),Ae=(0,l.computed)(()=>`${_.value}-cal-title`),b=(0,l.ref)(null),je=(0,l.computed)(()=>b.value!==null),x=(0,l.ref)(!1),S=(0,l.ref)(Q(new Date)),C=(0,l.ref)(null),w=(0,l.ref)(null),T=(0,l.ref)(null),E=(0,l.ref)(null);s.useMenuSurface(E);let{phone:D}=n.usePhoneLayout(),Me=(0,l.ref)(null);c.useVisualViewportVar(()=>x.value);let Ne=(0,l.ref)({position:`fixed`,top:`0px`,left:`0px`,zIndex:`9999`}),O=(0,l.ref)(`start`),k=(0,l.computed)(()=>h.locale||(typeof navigator<`u`?navigator.language:``)||`en`),A=(0,l.computed)(()=>new Intl.DateTimeFormat(k.value).formatToParts(new Date(2e3,0,15)).map(e=>e.type===`day`?`dd`:e.type===`month`?`mm`:e.type===`year`?`yyyy`:e.value).join(``));function j(e){if(!e)return``;let t=new Date(e+`T00:00:00`);return isNaN(t.getTime())?e:t.toLocaleDateString(k.value)}function Pe(e){return new Date(e+`T00:00:00`).toLocaleDateString(k.value,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`})}let Fe=(0,l.computed)(()=>j(h.modelValue??null)),Ie=(0,l.computed)(()=>j(h.endValue??null)),M=(0,l.computed)(()=>h.error?{variant:`error`,text:h.error}:h.warning?{variant:`warning`,text:h.warning}:null),N=(0,l.computed)(()=>h.type===`range`?h.endError?{variant:`error`,text:h.endError}:h.endWarning?{variant:`warning`,text:h.endWarning}:null:null),P=(0,l.computed)(()=>M.value?M.value:h.helper?{variant:`helper`,text:h.helper}:null),Le=(0,l.computed)(()=>{if(h.variant===`default`)return M.value?Oe.value:h.helper?y.value:void 0}),Re=(0,l.computed)(()=>{if(h.variant===`default`)return N.value?ke.value:h.helper?y.value:void 0}),F=(0,l.computed)(()=>h.type===`range`&&!!h.endLabel),ze=(0,l.computed)(()=>h.endLabel||h.endPlaceholder);function I(e){return h.min!=null&&e<h.min||h.max!=null&&e>h.max?!0:h.disabledDates?typeof h.disabledDates==`function`?h.disabledDates(e):h.disabledDates.includes(e):!1}let Be=(0,l.computed)(()=>new Intl.DateTimeFormat(k.value).formatToParts(new Date(2e3,0,15)).map(e=>e.type).filter(e=>e===`day`||e===`month`||e===`year`));function Ve(e,t,n){let r=new Date(e,t-1,n);return r.getMonth()!==t-1||r.getDate()!==n?null:(r.setFullYear(e),Q(r))}function He(e){let t=e.split(/[\s./-]+/).filter(Boolean);if(t.length!==3)return null;let n=t[0].length===4?[`year`,`month`,`day`]:Be.value;if(n.length!==3)return null;let r={day:0,month:0,year:0};for(let e=0;e<3;e++){let i=n[e],a=t[e];if(i===`year`?a.length!==4:a.length>2)return null;r[i]=Number(a)}return Ve(r.year,r.month,r.day)}function Ue(e){let t=e.trim();if(!t)return null;if(/^\d{4}-\d{2}-\d{2}$/.test(t)){let e=new Date(t+`T00:00:00`);return isNaN(e.getTime())?null:t}if(/^[\d\s./-]+$/.test(t))return He(t);let n=new Date(t);return isNaN(n.getTime())?null:Q(n)}function We(e){let t=e.target.value,n=Ue(t);n&&I(n)||(n||t===``)&&(g(`update:modelValue`,n),g(`change`,n))}function Ge(e){let t=e.target.value,n=Ue(t);n&&I(n)||(n||t===``)&&g(`update:endValue`,n)}function L(e){b.value=e.target===T.value?`end`:`start`,h.type!==`simple`&&!h.readonly&&(O.value=b.value,x.value?B():V())}function R(){b.value=null}function z(e){if(!(h.type===`simple`||h.readonly))switch(e.key){case`Escape`:x.value&&(H(),e.preventDefault());break;case`ArrowDown`:e.preventDefault(),x.value||V(),(0,l.nextTick)(W);break;case`Enter`:x.value||(e.preventDefault(),V(),(0,l.nextTick)(W));break}}function B(){let e=C.value?.querySelectorAll(`.nb-date-picker__input-wrapper`);if(!e?.length)return;let t=(O.value===`end`&&e.length>1?e[1]:e[0]).getBoundingClientRect(),n=E.value?.offsetWidth??0,r=E.value?.offsetHeight??0,i=t.left,a=t.bottom+4;n>0&&(i=Math.max(8,Math.min(i,window.innerWidth-n-8))),r>0&&a+r>window.innerHeight-8&&t.top-4-r>=8&&(a=t.top-4-r),Ne.value={position:`fixed`,top:`${a}px`,left:`${i}px`,zIndex:`9999`}}function V(){if(h.disabled||h.readonly||h.type===`simple`||x.value)return;x.value=!0;let e=O.value===`end`&&h.endValue?h.endValue:h.modelValue,t=e?new Date(e+`T00:00:00`):new Date;Y.value=t.getFullYear(),X.value=t.getMonth(),S.value=e||Q(new Date),B(),(0,l.nextTick)(B)}function H(){x.value&&(x.value=!1,(0,l.nextTick)(()=>{O.value===`end`&&T.value?T.value.focus():w.value?.focus()}))}function U(){x.value?H():(O.value=`start`,V(),(0,l.nextTick)(W))}function W(){(0,l.nextTick)(()=>{(E.value?.querySelector(`[data-date="${S.value}"]`))?.focus()})}function Ke(e){I(e)||(h.type===`range`?O.value===`start`?(g(`update:modelValue`,e),g(`change`,e),O.value=`end`,S.value=e,(0,l.nextTick)(()=>T.value?.focus())):(h.modelValue&&e<h.modelValue?(g(`update:endValue`,h.modelValue),g(`update:modelValue`,e),g(`change`,e)):g(`update:endValue`,e),H()):(g(`update:modelValue`,e),g(`change`,e),H()))}function qe(e){let t=new Date(S.value+`T00:00:00`),n=!0;switch(e.key){case`ArrowRight`:G(t,1);break;case`ArrowLeft`:G(t,-1);break;case`ArrowDown`:G(t,7);break;case`ArrowUp`:G(t,-7);break;case`Home`:Je(t,`start`);break;case`End`:Je(t,`end`);break;case`PageUp`:e.shiftKey?K(t,-12):K(t,-1);break;case`PageDown`:e.shiftKey?K(t,12):K(t,1);break;case`Enter`:case` `:e.preventDefault(),Ke(S.value);return;case`Escape`:H();break;case`Tab`:H();return;default:n=!1}n&&e.preventDefault()}function G(e,t){let n=new Date(e);n.setDate(n.getDate()+t),q(n)}function Je(e,t){let n=e.getDay();h.weekStart===1&&(n=n===0?6:n-1);let r=t===`start`?-n:6-n,i=new Date(e);i.setDate(i.getDate()+r),q(i)}function K(e,t){let n=new Date(e);n.setMonth(n.getMonth()+t),n.getDate()!==e.getDate()&&n.setDate(0),q(n)}function q(e){let t=Q(e);h.min!=null&&t<h.min||h.max!=null&&t>h.max||(S.value=t,Y.value=e.getFullYear(),X.value=e.getMonth(),W())}function Ye(e){let t=e.target,n=C.value?.contains(t)??!1,r=E.value?.contains(t)??!1,i=Me.value?.contains(t)??!1;!n&&!r&&!i&&H()}function J(){x.value&&B()}(0,l.watch)(x,e=>{e?(document.addEventListener(`mousedown`,Ye),window.addEventListener(`scroll`,J,!0),window.addEventListener(`resize`,J)):(document.removeEventListener(`mousedown`,Ye),window.removeEventListener(`scroll`,J,!0),window.removeEventListener(`resize`,J))}),(0,l.onBeforeUnmount)(()=>{document.removeEventListener(`mousedown`,Ye),window.removeEventListener(`scroll`,J,!0),window.removeEventListener(`resize`,J)});let Y=(0,l.ref)(new Date().getFullYear()),X=(0,l.ref)(new Date().getMonth());function Z(e){let t=Y.value*12+X.value+e;Y.value=Math.floor(t/12),X.value=(t%12+12)%12;let n=new Date(S.value+`T00:00:00`).getDate(),r=new Date(Y.value,X.value+1,0).getDate();S.value=Q(new Date(Y.value,X.value,Math.min(n,r))),W()}let Xe=()=>Z(-1),Ze=()=>Z(1),Qe=()=>Z(-12),$e=()=>Z(12),et=(0,l.computed)(()=>{let e=new Date(Y.value,X.value,1).toLocaleDateString(k.value,{month:`long`,year:`numeric`});return e.charAt(0).toUpperCase()+e.slice(1)}),tt=(0,l.computed)(()=>{let e=[],t=new Date(2024,0,h.weekStart===0?7:1);for(let n=0;n<7;n++){let r=new Date(t);r.setDate(t.getDate()+n);let i=r.toLocaleDateString(k.value,{weekday:`narrow`}).toUpperCase(),a=r.toLocaleDateString(k.value,{weekday:`long`});e.push({narrow:i,full:a.charAt(0).toUpperCase()+a.slice(1)})}return e});function Q(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}let nt=(0,l.computed)(()=>Q(new Date)),rt=(0,l.computed)(()=>{let e=Y.value,t=X.value,n=new Date(e,t,1),r=new Date(e,t+1,0),i=n.getDay();h.weekStart===1&&(i=i===0?6:i-1);let a=[],o=h.modelValue??null,s=h.endValue??null,c=o&&s?o<s?o:s:null,l=o&&s?o<s?s:o:null;function u(e,t){let n=Q(e);return{key:n,date:n,day:e.getDate(),inMonth:t,isToday:n===nt.value,isSelected:n===o||n===s,inRange:c!=null&&l!=null&&n>c&&n<l,isRangeStart:n===c&&l!=null,isRangeEnd:n===l&&c!=null,isDisabled:I(n)}}for(let n=i-1;n>=0;n--)a.push(u(new Date(e,t,-n),!1));for(let n=1;n<=r.getDate();n++)a.push(u(new Date(e,t,n),!0));let d=7-a.length%7;if(d<7)for(let n=1;n<=d;n++)a.push(u(new Date(e,t+1,n),!1));return a}),it=(0,l.computed)(()=>{let e=[];for(let t=0;t<rt.value.length;t+=7)e.push(rt.value.slice(t,t+7));return e}),$=(0,l.computed)(()=>h.variant===`fluid`?`sm`:h.size??`md`),at=(0,l.computed)(()=>[`nb-date-picker`,`nb-date-picker--${h.variant}`,`nb-date-picker--${h.size}`,`nb-date-picker--${h.type}`,{"nb-date-picker--focused":je.value,"nb-date-picker--open":x.value,"nb-date-picker--error":!!h.error||!!h.endError,"nb-date-picker--warning":!h.error&&!h.endError&&(!!h.warning||!!h.endWarning),"nb-date-picker--disabled":h.disabled,"nb-date-picker--readonly":h.readonly}]),ot=(0,l.computed)(()=>({"nb-date-picker__input-wrapper--focused":b.value===`start`,"nb-date-picker__input-wrapper--error":!!h.error,"nb-date-picker__input-wrapper--warning":!h.error&&!!h.warning,"nb-date-picker__input-wrapper--disabled":h.disabled,"nb-date-picker__input-wrapper--readonly":h.readonly})),st=(0,l.computed)(()=>({"nb-date-picker__input-wrapper--focused":b.value===`end`,"nb-date-picker__input-wrapper--error":!!h.endError,"nb-date-picker__input-wrapper--warning":!h.endError&&!!h.endWarning,"nb-date-picker__input-wrapper--disabled":h.disabled,"nb-date-picker__input-wrapper--readonly":h.readonly}));return we({open:V,close:H,focus:()=>w.value?.focus()}),(t,n)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createElementVNode)(`div`,{ref_key:`rootRef`,ref:C,class:(0,l.normalizeClass)(at.value)},[p.variant===`default`?((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,{key:0},[t.$slots.label?(0,l.renderSlot)(t.$slots,`label`,{key:0}):p.label&&!F.value?((0,l.openBlock)(),(0,l.createBlock)(i.t,{key:1,for:_.value,required:p.required,disabled:p.disabled},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(p.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,l.createCommentVNode)(``,!0),(0,l.createVNode)(o.t,{dir:`row`,gap:p.type===`range`?`sm`:void 0,class:`nb-date-picker__fields`},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)(`div`,ne,[F.value&&p.label?((0,l.openBlock)(),(0,l.createBlock)(i.t,{key:0,for:_.value,required:p.required,disabled:p.disabled},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(p.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,l.createCommentVNode)(``,!0),(0,l.createElementVNode)(`div`,{class:(0,l.normalizeClass)([`nb-date-picker__input-wrapper`,ot.value])},[(0,l.createElementVNode)(`input`,(0,l.mergeProps)({id:_.value,ref_key:`inputRef`,ref:w},t.$attrs,{type:`text`,class:`nb-date-picker__field`,value:Fe.value,placeholder:p.placeholder||A.value,disabled:p.disabled,readonly:p.readonly,required:p.required,name:p.name,"aria-invalid":p.error?!0:void 0,"aria-describedby":Le.value,onInput:n[0]||=e=>We(e),onFocus:L,onBlur:R,onKeydown:z}),null,16,re),p.type===`simple`?(0,l.createCommentVNode)(``,!0):((0,l.openBlock)(),(0,l.createBlock)(e.t,{key:0,variant:`ghost`,icon:(0,l.unref)(f.regular),size:$.value,class:`nb-date-picker__icon`,disabled:p.disabled||p.readonly,tabindex:`-1`,label:p.modelValue?(0,l.unref)(m).datePickerChangeDate(j(p.modelValue)):(0,l.unref)(m).datePickerChooseDate,onClick:U},null,8,[`icon`,`size`,`disabled`,`label`]))],2)]),p.type===`range`?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,ie,[F.value?((0,l.openBlock)(),(0,l.createBlock)(i.t,{key:0,for:v.value,required:p.required,disabled:p.disabled},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(p.endLabel),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,l.createCommentVNode)(``,!0),(0,l.createElementVNode)(`div`,{class:(0,l.normalizeClass)([`nb-date-picker__input-wrapper`,st.value])},[(0,l.createElementVNode)(`input`,{id:v.value,ref_key:`endInputRef`,ref:T,type:`text`,class:`nb-date-picker__field`,value:Ie.value,placeholder:p.endPlaceholder||A.value,disabled:p.disabled,readonly:p.readonly,required:p.required,"aria-invalid":p.endError?!0:void 0,"aria-describedby":Re.value,onInput:n[1]||=e=>Ge(e),onFocus:L,onBlur:R,onKeydown:z},null,40,ae),(0,l.createVNode)(e.t,{variant:`ghost`,icon:(0,l.unref)(f.regular),size:$.value,class:`nb-date-picker__icon`,disabled:p.disabled||p.readonly,tabindex:`-1`,label:p.endValue?(0,l.unref)(m).datePickerChangeEndDate(j(p.endValue)):(0,l.unref)(m).datePickerChooseEndDate,onClick:U},null,8,[`icon`,`size`,`disabled`,`label`])],2)])):(0,l.createCommentVNode)(``,!0)]),_:1},8,[`gap`]),M.value?((0,l.openBlock)(),(0,l.createBlock)(a.t,{key:2,id:Oe.value,variant:M.value.variant,class:`nb-date-picker__message`},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(M.value.text),1)]),_:1},8,[`id`,`variant`])):(0,l.createCommentVNode)(``,!0),N.value?((0,l.openBlock)(),(0,l.createBlock)(a.t,{key:3,id:ke.value,variant:N.value.variant,class:`nb-date-picker__message`},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(N.value.text),1)]),_:1},8,[`id`,`variant`])):(0,l.createCommentVNode)(``,!0),!M.value&&!N.value&&p.helper?((0,l.openBlock)(),(0,l.createBlock)(a.t,{key:4,id:y.value,variant:`helper`,class:`nb-date-picker__message`},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(p.helper),1)]),_:1},8,[`id`])):(0,l.createCommentVNode)(``,!0)],64)):p.variant===`fluid`?((0,l.openBlock)(),(0,l.createBlock)(o.t,{key:1,dir:`row`,gap:p.type===`range`?`sm`:void 0,class:`nb-date-picker__fields`},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)(`div`,{class:(0,l.normalizeClass)([`nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid`,ot.value])},[p.label||t.$slots.label||P.value?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,oe,[t.$slots.label?(0,l.renderSlot)(t.$slots,`label`,{key:0}):((0,l.openBlock)(),(0,l.createElementBlock)(`label`,{key:1,for:_.value,class:`nb-date-picker__inner-label`},[(0,l.createTextVNode)((0,l.toDisplayString)(p.label)+` `,1),p.required?((0,l.openBlock)(),(0,l.createElementBlock)(`span`,ce,`*`)):(0,l.createCommentVNode)(``,!0)],8,se)),P.value?((0,l.openBlock)(),(0,l.createBlock)(a.t,{key:2,variant:P.value.variant,"icon-only":``,class:`nb-date-picker__inner-message`},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(P.value.text),1)]),_:1},8,[`variant`])):(0,l.createCommentVNode)(``,!0)])):(0,l.createCommentVNode)(``,!0),(0,l.createElementVNode)(`div`,le,[(0,l.createElementVNode)(`input`,(0,l.mergeProps)({id:_.value,ref_key:`inputRef`,ref:w},t.$attrs,{type:`text`,class:`nb-date-picker__field`,value:Fe.value,placeholder:p.placeholder||A.value,disabled:p.disabled,readonly:p.readonly,required:p.required,name:p.name,"aria-invalid":p.error?!0:void 0,onInput:n[2]||=e=>We(e),onFocus:L,onBlur:R,onKeydown:z}),null,16,ue),p.type===`simple`?(0,l.createCommentVNode)(``,!0):((0,l.openBlock)(),(0,l.createBlock)(e.t,{key:0,variant:`ghost`,icon:(0,l.unref)(f.regular),size:$.value,class:`nb-date-picker__icon`,disabled:p.disabled||p.readonly,tabindex:`-1`,label:p.modelValue?(0,l.unref)(m).datePickerChangeDate(j(p.modelValue)):(0,l.unref)(m).datePickerChooseDate,onClick:U},null,8,[`icon`,`size`,`disabled`,`label`]))])],2),p.type===`range`?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,{key:0,class:(0,l.normalizeClass)([`nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid`,st.value])},[ze.value||N.value?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,de,[(0,l.createElementVNode)(`label`,{for:v.value,class:`nb-date-picker__inner-label`},[(0,l.createTextVNode)((0,l.toDisplayString)(ze.value)+` `,1),p.required?((0,l.openBlock)(),(0,l.createElementBlock)(`span`,pe,`*`)):(0,l.createCommentVNode)(``,!0)],8,fe),N.value?((0,l.openBlock)(),(0,l.createBlock)(a.t,{key:0,variant:N.value.variant,"icon-only":``,class:`nb-date-picker__inner-message`},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(N.value.text),1)]),_:1},8,[`variant`])):(0,l.createCommentVNode)(``,!0)])):(0,l.createCommentVNode)(``,!0),(0,l.createElementVNode)(`div`,me,[(0,l.createElementVNode)(`input`,{id:v.value,ref_key:`endInputRef`,ref:T,type:`text`,class:`nb-date-picker__field`,value:Ie.value,placeholder:p.endPlaceholder||A.value,disabled:p.disabled,readonly:p.readonly,required:p.required,"aria-invalid":p.endError?!0:void 0,onInput:n[3]||=e=>Ge(e),onFocus:L,onBlur:R,onKeydown:z},null,40,he),(0,l.createVNode)(e.t,{variant:`ghost`,icon:(0,l.unref)(f.regular),size:$.value,class:`nb-date-picker__icon`,disabled:p.disabled||p.readonly,tabindex:`-1`,label:p.endValue?(0,l.unref)(m).datePickerChangeEndDate(j(p.endValue)):(0,l.unref)(m).datePickerChooseEndDate,onClick:U},null,8,[`icon`,`size`,`disabled`,`label`])])],2)):(0,l.createCommentVNode)(``,!0)]),_:3},8,[`gap`])):(0,l.createCommentVNode)(``,!0)],2),((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:`body`},[x.value&&(0,l.unref)(D)?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,{key:0,ref_key:`scrimRef`,ref:Me,class:`nb-date-picker__scrim`,"aria-hidden":`true`,onClick:H},null,512)):(0,l.createCommentVNode)(``,!0),x.value?((0,l.openBlock)(),(0,l.createElementBlock)(`div`,(0,l.mergeProps)({key:1,ref_key:`calendarRef`,ref:E,role:`dialog`,"aria-modal":`true`,"aria-label":p.label?(0,l.unref)(m).datePickerDialogFor(p.label):(0,l.unref)(m).datePickerDialog,class:[`nb-date-picker__calendar`,{"nb-date-picker__calendar--sheet":(0,l.unref)(D)}]},(0,l.unref)(Ee),{style:(0,l.unref)(D)?void 0:Ne.value,onKeydown:qe,onMousedown:n[4]||=(0,l.withModifiers)(()=>{},[`prevent`])}),[(0,l.createElementVNode)(`div`,_e,[(0,l.createVNode)(e.t,{variant:`ghost`,icon:(0,l.unref)(ee.regular),size:`sm`,class:`nb-date-picker__cal-nav`,label:(0,l.unref)(m).datePickerPreviousYear,onClick:Qe},null,8,[`icon`,`label`]),(0,l.createVNode)(e.t,{variant:`ghost`,icon:(0,l.unref)(d.regular),size:`sm`,class:`nb-date-picker__cal-nav`,label:(0,l.unref)(m).datePickerPreviousMonth,onClick:Xe},null,8,[`icon`,`label`]),(0,l.createElementVNode)(`span`,{id:Ae.value,class:`nb-date-picker__cal-title`,"aria-live":`polite`},(0,l.toDisplayString)(et.value),9,ve),(0,l.createVNode)(e.t,{variant:`ghost`,icon:(0,l.unref)(u.regular),size:`sm`,class:`nb-date-picker__cal-nav`,label:(0,l.unref)(m).datePickerNextMonth,onClick:Ze},null,8,[`icon`,`label`]),(0,l.createVNode)(e.t,{variant:`ghost`,icon:(0,l.unref)(te.regular),size:`sm`,class:`nb-date-picker__cal-nav`,label:(0,l.unref)(m).datePickerNextYear,onClick:$e},null,8,[`icon`,`label`])]),(0,l.createElementVNode)(`table`,{role:`grid`,"aria-labelledby":Ae.value,class:`nb-date-picker__cal-table`},[(0,l.createElementVNode)(`thead`,null,[(0,l.createElementVNode)(`tr`,be,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(tt.value,e=>((0,l.openBlock)(),(0,l.createElementBlock)(`th`,{key:e.narrow,scope:`col`,class:`nb-date-picker__cal-weekday`,abbr:e.full},(0,l.toDisplayString)(e.narrow),9,xe))),128))])]),(0,l.createElementVNode)(`tbody`,null,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(it.value,(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)(`tr`,{key:t},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e,e=>((0,l.openBlock)(),(0,l.createElementBlock)(`td`,{key:e.key,role:`gridcell`,"aria-selected":e.isSelected||void 0,"aria-disabled":e.isDisabled||void 0},[(0,l.createElementVNode)(`button`,{type:`button`,class:(0,l.normalizeClass)([`nb-date-picker__cal-day`,{"nb-date-picker__cal-day--outside":!e.inMonth,"nb-date-picker__cal-day--today":e.isToday,"nb-date-picker__cal-day--selected":e.isSelected,"nb-date-picker__cal-day--in-range":e.inRange,"nb-date-picker__cal-day--range-start":e.isRangeStart,"nb-date-picker__cal-day--range-end":e.isRangeEnd,"nb-date-picker__cal-day--disabled":e.isDisabled,"nb-date-picker__cal-day--focused":e.date===S.value}]),tabindex:e.date===S.value?0:-1,disabled:e.isDisabled,"aria-label":Pe(e.date),"data-date":e.date,onClick:t=>Ke(e.date)},(0,l.toDisplayString)(e.day),11,Ce)],8,Se))),128))]))),128))])],8,ye)],16,ge)):(0,l.createCommentVNode)(``,!0)]))],64))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
@@ -0,0 +1 @@
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-BHFtgOXA.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./Icon-CssV4E2-.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./composables/useNbStrings.composable.cjs`);let o=require(`vue`),s=require(`@nubisco/ui/icons/x`),c=require(`@nubisco/ui/icons/circle-notch`);var l=function(e){return e.Primary=`primary`,e.Secondary=`secondary`,e.Ghost=`ghost`,e.Danger=`danger`,e.Success=`success`,e.Warning=`warning`,e}(l||{}),u=function(e){return e.Idle=`idle`,e.Loading=`loading`,e.Success=`success`,e}(u||{}),d={key:0,class:`nb-file-uploader__heading`},f={key:1,class:`nb-file-uploader__description`},p={class:`nb-file-uploader__drop-label`},m=[`accept`,`multiple`,`disabled`],h={key:4,class:`nb-file-uploader__list`},g={class:`nb-file-uploader__name`},_={class:`nb-file-uploader__status`},v=[`id`],y=(0,o.defineComponent)({__name:`FileUploader`,props:{heading:{},description:{},buttonLabel:{default:`Add file`},variant:{default:l.Primary},accept:{},multiple:{type:Boolean,default:!1},maxSize:{},disabled:{type:Boolean,default:!1},id:{}},emits:[`change`,`remove`],setup(t,{expose:l,emit:y}){let b=t,{layerProps:x}=i.useSurfaceLayer(),S=r.useStableId({}),C=a.useNbStrings(),w=y,T=(0,o.ref)(null),E=(0,o.ref)([]),D=(0,o.ref)(!1),O=0;(0,o.watch)(()=>b.disabled,e=>{e&&(O=0,D.value=!1)});function k(){b.disabled||T.value?.click()}function A(e){if(b.maxSize&&e.size>b.maxSize)return`File exceeds size limit.`;if(b.accept){let t=b.accept.split(`,`).map(e=>e.trim().toLowerCase()),n=e.name.toLowerCase();if(!t.some(t=>t.startsWith(`.`)?n.endsWith(t):t.includes(`/`)?e.type===t||e.type.startsWith(t.replaceAll(`*`,``)):!1))return`File type not accepted.`}}function j(e){let t=Array.from(e);b.multiple||(E.value=[]);for(let e of t){let t=A(e);E.value.push({file:e,status:u.Idle,error:t})}w(`change`,E.value.filter(e=>!e.error).map(e=>e.file))}function M(e){let t=e.target;if(b.disabled){t.value=``;return}t.files?.length&&(j(t.files),t.value=``)}function N(){b.disabled||(O++,D.value=!0)}function P(){O--,O<=0&&(O=0,D.value=!1)}function F(e){b.disabled&&e.dataTransfer&&(e.dataTransfer.dropEffect=`none`)}function I(e){if(O=0,D.value=!1,b.disabled)return;let t=e.dataTransfer?.files;t?.length&&j(t)}function L(e){if(b.disabled)return;let t=E.value[e];E.value.splice(e,1),w(`remove`,t.file),w(`change`,E.value.filter(e=>!e.error).map(e=>e.file))}function R(e,t,n){E.value[e]&&(E.value[e].status=t,E.value[e].error=n)}return l({files:E,setFileStatus:R}),(r,i)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,(0,o.mergeProps)({class:[`nb-file-uploader`,{"nb-file-uploader--disabled":t.disabled}]},(0,o.unref)(x),{onDragenter:(0,o.withModifiers)(N,[`prevent`]),onDragover:(0,o.withModifiers)(F,[`prevent`]),onDragleave:(0,o.withModifiers)(P,[`prevent`]),onDrop:(0,o.withModifiers)(I,[`prevent`])}),[t.heading?((0,o.openBlock)(),(0,o.createElementBlock)(`p`,d,(0,o.toDisplayString)(t.heading),1)):(0,o.createCommentVNode)(``,!0),t.description?((0,o.openBlock)(),(0,o.createElementBlock)(`p`,f,(0,o.toDisplayString)(t.description),1)):(0,o.createCommentVNode)(``,!0),D.value?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:2,class:(0,o.normalizeClass)([`nb-file-uploader__dropzone`,`nb-file-uploader__dropzone--${t.variant}`])},[(0,o.createElementVNode)(`span`,p,(0,o.toDisplayString)((0,o.unref)(C).fileUploaderDropHint),1)],2)):((0,o.openBlock)(),(0,o.createBlock)(e.t,{key:3,class:`nb-file-uploader__btn`,variant:t.variant,disabled:t.disabled,onClick:(0,o.withModifiers)(k,[`stop`])},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(t.buttonLabel),1)]),_:1},8,[`variant`,`disabled`])),(0,o.createElementVNode)(`input`,{ref_key:`inputRef`,ref:T,type:`file`,class:`nb-file-uploader__input`,hidden:``,accept:t.accept,multiple:t.multiple,disabled:t.disabled,onChange:M},null,40,m),E.value.length?((0,o.openBlock)(),(0,o.createElementBlock)(`ul`,h,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(E.value,(r,i)=>((0,o.openBlock)(),(0,o.createElementBlock)(`li`,{key:i,class:(0,o.normalizeClass)([`nb-file-uploader__item`,{"nb-file-uploader__item--error":r.error,"nb-file-uploader__item--success":r.status===`success`}])},[(0,o.createElementVNode)(`span`,g,(0,o.toDisplayString)(r.file.name),1),(0,o.createElementVNode)(`span`,_,[r.status===`loading`?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:0,name:(0,o.unref)(c.regular),class:`nb-file-uploader__spinner`},null,8,[`name`])):r.status===`success`?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:1,name:`check-circle-fill`,class:`nb-file-uploader__check`})):(0,o.createCommentVNode)(``,!0),r.error?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:2,name:`warning-circle-fill`,class:`nb-file-uploader__warn`})):(0,o.createCommentVNode)(``,!0),r.status===`loading`?(0,o.createCommentVNode)(``,!0):((0,o.openBlock)(),(0,o.createBlock)(e.t,{key:3,variant:`ghost`,icon:(0,o.unref)(s.regular),size:`xs`,class:`nb-file-uploader__remove`,label:(0,o.unref)(C).fileUploaderRemove,"aria-label":(0,o.unref)(C).fileUploaderRemoveFile(r.file.name),"aria-describedby":r.error?`${(0,o.unref)(S)}-error-${i}`:void 0,disabled:t.disabled,onClick:e=>L(i)},null,8,[`icon`,`label`,`aria-label`,`aria-describedby`,`disabled`,`onClick`]))]),r.error?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:0,id:`${(0,o.unref)(S)}-error-${i}`,class:`nb-file-uploader__error`,role:`alert`},(0,o.toDisplayString)(r.error),9,v)):(0,o.createCommentVNode)(``,!0)],2))),128))])):(0,o.createCommentVNode)(``,!0)],16))}}),b=t.t(y,[[`__scopeId`,`data-v-7e0b7153`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
@@ -0,0 +1,195 @@
1
+ import { t as e } from "./Button-tpOmP8iV.js";
2
+ import { t } from "./_plugin-vue_export-helper-C6QCLu9I.js";
3
+ import { t as n } from "./Icon-B2tiGiqZ.js";
4
+ import { useStableId as r } from "./composables/useStableId.composable.mjs";
5
+ import { useSurfaceLayer as i } from "./composables/useSurfaceLayer.composable.mjs";
6
+ import { useNbStrings as a } from "./composables/useNbStrings.composable.mjs";
7
+ import { Fragment as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, defineComponent as f, mergeProps as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, unref as y, watch as b, withCtx as x, withModifiers as S } from "vue";
8
+ import { regular as C } from "@nubisco/ui/icons/x";
9
+ import { regular as w } from "@nubisco/ui/icons/circle-notch";
10
+ //#region src/types/Variants.d.ts
11
+ var T = /* @__PURE__ */ function(e) {
12
+ return e.Primary = "primary", e.Secondary = "secondary", e.Ghost = "ghost", e.Danger = "danger", e.Success = "success", e.Warning = "warning", e;
13
+ }(T || {}), E = /* @__PURE__ */ function(e) {
14
+ return e.Idle = "idle", e.Loading = "loading", e.Success = "success", e;
15
+ }(E || {}), D = {
16
+ key: 0,
17
+ class: "nb-file-uploader__heading"
18
+ }, O = {
19
+ key: 1,
20
+ class: "nb-file-uploader__description"
21
+ }, k = { class: "nb-file-uploader__drop-label" }, A = [
22
+ "accept",
23
+ "multiple",
24
+ "disabled"
25
+ ], j = {
26
+ key: 4,
27
+ class: "nb-file-uploader__list"
28
+ }, M = { class: "nb-file-uploader__name" }, N = { class: "nb-file-uploader__status" }, P = ["id"], F = /* @__PURE__ */ t(/* @__PURE__ */ f({
29
+ __name: "FileUploader",
30
+ props: {
31
+ heading: {},
32
+ description: {},
33
+ buttonLabel: { default: "Add file" },
34
+ variant: { default: T.Primary },
35
+ accept: {},
36
+ multiple: {
37
+ type: Boolean,
38
+ default: !1
39
+ },
40
+ maxSize: {},
41
+ disabled: {
42
+ type: Boolean,
43
+ default: !1
44
+ },
45
+ id: {}
46
+ },
47
+ emits: ["change", "remove"],
48
+ setup(t, { expose: f, emit: T }) {
49
+ let F = t, { layerProps: I } = i(), L = r({}), R = a(), z = T, B = g(null), V = g([]), H = g(!1), U = 0;
50
+ b(() => F.disabled, (e) => {
51
+ e && (U = 0, H.value = !1);
52
+ });
53
+ function W() {
54
+ F.disabled || B.value?.click();
55
+ }
56
+ function G(e) {
57
+ if (F.maxSize && e.size > F.maxSize) return "File exceeds size limit.";
58
+ if (F.accept) {
59
+ let t = F.accept.split(",").map((e) => e.trim().toLowerCase()), n = e.name.toLowerCase();
60
+ if (!t.some((t) => t.startsWith(".") ? n.endsWith(t) : t.includes("/") ? e.type === t || e.type.startsWith(t.replaceAll("*", "")) : !1)) return "File type not accepted.";
61
+ }
62
+ }
63
+ function K(e) {
64
+ let t = Array.from(e);
65
+ F.multiple || (V.value = []);
66
+ for (let e of t) {
67
+ let t = G(e);
68
+ V.value.push({
69
+ file: e,
70
+ status: E.Idle,
71
+ error: t
72
+ });
73
+ }
74
+ z("change", V.value.filter((e) => !e.error).map((e) => e.file));
75
+ }
76
+ function q(e) {
77
+ let t = e.target;
78
+ if (F.disabled) {
79
+ t.value = "";
80
+ return;
81
+ }
82
+ t.files?.length && (K(t.files), t.value = "");
83
+ }
84
+ function J() {
85
+ F.disabled || (U++, H.value = !0);
86
+ }
87
+ function Y() {
88
+ U--, U <= 0 && (U = 0, H.value = !1);
89
+ }
90
+ function X(e) {
91
+ F.disabled && e.dataTransfer && (e.dataTransfer.dropEffect = "none");
92
+ }
93
+ function Z(e) {
94
+ if (U = 0, H.value = !1, F.disabled) return;
95
+ let t = e.dataTransfer?.files;
96
+ t?.length && K(t);
97
+ }
98
+ function Q(e) {
99
+ if (F.disabled) return;
100
+ let t = V.value[e];
101
+ V.value.splice(e, 1), z("remove", t.file), z("change", V.value.filter((e) => !e.error).map((e) => e.file));
102
+ }
103
+ function $(e, t, n) {
104
+ V.value[e] && (V.value[e].status = t, V.value[e].error = n);
105
+ }
106
+ return f({
107
+ files: V,
108
+ setFileStatus: $
109
+ }), (r, i) => (h(), l("div", p({ class: ["nb-file-uploader", { "nb-file-uploader--disabled": t.disabled }] }, y(I), {
110
+ onDragenter: S(J, ["prevent"]),
111
+ onDragover: S(X, ["prevent"]),
112
+ onDragleave: S(Y, ["prevent"]),
113
+ onDrop: S(Z, ["prevent"])
114
+ }), [
115
+ t.heading ? (h(), l("p", D, v(t.heading), 1)) : c("", !0),
116
+ t.description ? (h(), l("p", O, v(t.description), 1)) : c("", !0),
117
+ H.value ? (h(), l("div", {
118
+ key: 2,
119
+ class: m(["nb-file-uploader__dropzone", `nb-file-uploader__dropzone--${t.variant}`])
120
+ }, [u("span", k, v(y(R).fileUploaderDropHint), 1)], 2)) : (h(), s(e, {
121
+ key: 3,
122
+ class: "nb-file-uploader__btn",
123
+ variant: t.variant,
124
+ disabled: t.disabled,
125
+ onClick: S(W, ["stop"])
126
+ }, {
127
+ default: x(() => [d(v(t.buttonLabel), 1)]),
128
+ _: 1
129
+ }, 8, ["variant", "disabled"])),
130
+ u("input", {
131
+ ref_key: "inputRef",
132
+ ref: B,
133
+ type: "file",
134
+ class: "nb-file-uploader__input",
135
+ hidden: "",
136
+ accept: t.accept,
137
+ multiple: t.multiple,
138
+ disabled: t.disabled,
139
+ onChange: q
140
+ }, null, 40, A),
141
+ V.value.length ? (h(), l("ul", j, [(h(!0), l(o, null, _(V.value, (r, i) => (h(), l("li", {
142
+ key: i,
143
+ class: m(["nb-file-uploader__item", {
144
+ "nb-file-uploader__item--error": r.error,
145
+ "nb-file-uploader__item--success": r.status === "success"
146
+ }])
147
+ }, [
148
+ u("span", M, v(r.file.name), 1),
149
+ u("span", N, [
150
+ r.status === "loading" ? (h(), s(n, {
151
+ key: 0,
152
+ name: y(w),
153
+ class: "nb-file-uploader__spinner"
154
+ }, null, 8, ["name"])) : r.status === "success" ? (h(), s(n, {
155
+ key: 1,
156
+ name: "check-circle-fill",
157
+ class: "nb-file-uploader__check"
158
+ })) : c("", !0),
159
+ r.error ? (h(), s(n, {
160
+ key: 2,
161
+ name: "warning-circle-fill",
162
+ class: "nb-file-uploader__warn"
163
+ })) : c("", !0),
164
+ r.status === "loading" ? c("", !0) : (h(), s(e, {
165
+ key: 3,
166
+ variant: "ghost",
167
+ icon: y(C),
168
+ size: "xs",
169
+ class: "nb-file-uploader__remove",
170
+ label: y(R).fileUploaderRemove,
171
+ "aria-label": y(R).fileUploaderRemoveFile(r.file.name),
172
+ "aria-describedby": r.error ? `${y(L)}-error-${i}` : void 0,
173
+ disabled: t.disabled,
174
+ onClick: (e) => Q(i)
175
+ }, null, 8, [
176
+ "icon",
177
+ "label",
178
+ "aria-label",
179
+ "aria-describedby",
180
+ "disabled",
181
+ "onClick"
182
+ ]))
183
+ ]),
184
+ r.error ? (h(), l("div", {
185
+ key: 0,
186
+ id: `${y(L)}-error-${i}`,
187
+ class: "nb-file-uploader__error",
188
+ role: "alert"
189
+ }, v(r.error), 9, P)) : c("", !0)
190
+ ], 2))), 128))])) : c("", !0)
191
+ ], 16));
192
+ }
193
+ }), [["__scopeId", "data-v-7e0b7153"]]);
194
+ //#endregion
195
+ export { E as n, F as t };
@@ -0,0 +1,116 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
2
+ import { useSurfaceLayer as t } from "./composables/useSurfaceLayer.composable.mjs";
3
+ import { usePhoneLayout as n } from "./composables/usePhoneLayout.composable.mjs";
4
+ import { placeAnchored as r, viewportSize as i } from "./utils/anchorPosition.helper.mjs";
5
+ import { useVisualViewportVar as a } from "./composables/useVisualViewportVar.composable.mjs";
6
+ import { useRovingFocus as o } from "./composables/useRovingFocus.composable.mjs";
7
+ import { Teleport as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, defineComponent as f, mergeProps as p, nextTick as m, onBeforeUnmount as h, openBlock as g, ref as _, renderSlot as v, unref as y, watch as b } from "vue";
8
+ //#region src/components/FloatingToolbar.vue?vue&type=script&setup=true&lang.ts
9
+ var x = ["aria-label", "aria-orientation"], S = /* @__PURE__ */ e(/* @__PURE__ */ f({
10
+ __name: "FloatingToolbar",
11
+ props: {
12
+ open: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ anchor: { default: null },
17
+ placement: { default: "top" },
18
+ gap: { default: 8 },
19
+ label: {},
20
+ orientation: { default: "horizontal" },
21
+ teleportTo: { default: "body" },
22
+ dock: { default: "none" }
23
+ },
24
+ emits: ["close", "update:open"],
25
+ setup(e, { expose: f, emit: S }) {
26
+ let C = e, w = S, { layerProps: T } = t({ overlay: !0 }), E = _(null), D = _(C.placement), O = _({
27
+ top: 0,
28
+ left: 0
29
+ }), k = _(!1), A = c(() => ({
30
+ top: `${O.value.top}px`,
31
+ left: `${O.value.left}px`
32
+ }));
33
+ function j(e) {
34
+ return "getBoundingClientRect" in e ? e.getBoundingClientRect() : e;
35
+ }
36
+ function M() {
37
+ let e = E.value;
38
+ if (!e || !C.anchor) return;
39
+ let t = j(C.anchor), n = i();
40
+ k.value = n.width > 0 && n.height > 0 && (t.top + t.height < 0 || t.top > n.height || t.left + t.width < 0 || t.left > n.width);
41
+ let a = r(t, {
42
+ width: e.offsetWidth,
43
+ height: e.offsetHeight
44
+ }, {
45
+ side: C.placement,
46
+ gap: C.gap,
47
+ viewport: n
48
+ });
49
+ D.value = a.side, O.value = {
50
+ top: a.top,
51
+ left: a.left
52
+ };
53
+ }
54
+ let N = o(E, {
55
+ orientation: () => C.orientation,
56
+ includeFields: !0
57
+ });
58
+ function P(e) {
59
+ if (e.key === "Escape") {
60
+ e.preventDefault(), e.stopPropagation(), w("close"), w("update:open", !1);
61
+ return;
62
+ }
63
+ N.onKeydown(e);
64
+ }
65
+ let F = N.onFocusIn;
66
+ function I(e) {
67
+ e.target?.closest("input, textarea, select, [contenteditable=\"true\"]") || e.preventDefault();
68
+ }
69
+ let L = N.focus;
70
+ function R() {
71
+ window.addEventListener("resize", M), window.addEventListener("scroll", M, !0);
72
+ }
73
+ function z() {
74
+ typeof window > "u" || (window.removeEventListener("resize", M), window.removeEventListener("scroll", M, !0));
75
+ }
76
+ let B = c(() => C.open && !!C.anchor), { phone: V } = n(), H = c(() => C.dock === "phone" && V.value);
77
+ return a(() => B.value && C.dock === "phone"), b(B, (e) => {
78
+ typeof window > "u" || (z(), e && (N.activeIndex.value = 0, m(() => {
79
+ R(), N.sync(), M(), requestAnimationFrame(M);
80
+ })));
81
+ }, { immediate: !0 }), b(() => [
82
+ C.anchor,
83
+ C.placement,
84
+ C.gap
85
+ ], () => {
86
+ B.value && m(M);
87
+ }), h(z), f({
88
+ reposition: M,
89
+ focus: L,
90
+ el: E
91
+ }), (t, n) => (g(), l(s, { to: e.teleportTo }, [e.open && e.anchor ? (g(), d("div", p({
92
+ key: 0,
93
+ ref_key: "toolbarRef",
94
+ ref: E,
95
+ class: [
96
+ "nb-floating-toolbar",
97
+ `nb-floating-toolbar--${D.value}`,
98
+ `nb-floating-toolbar--${e.orientation}`,
99
+ {
100
+ "nb-floating-toolbar--anchor-hidden": k.value && !H.value,
101
+ "nb-floating-toolbar--docked": H.value
102
+ }
103
+ ]
104
+ }, y(T), {
105
+ role: "toolbar",
106
+ "aria-label": e.label,
107
+ "aria-orientation": e.orientation,
108
+ style: H.value ? void 0 : A.value,
109
+ onMousedown: I,
110
+ onKeydown: P,
111
+ onFocusin: n[0] ||= (...e) => y(F) && y(F)(...e)
112
+ }), [v(t.$slots, "default", {}, void 0, !0)], 16, x)) : u("", !0)], 8, ["to"]));
113
+ }
114
+ }), [["__scopeId", "data-v-2d3a10c5"]]);
115
+ //#endregion
116
+ export { S as t };
@@ -0,0 +1 @@
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useSurfaceLayer.composable.cjs`),n=require(`./composables/usePhoneLayout.composable.cjs`),r=require(`./utils/anchorPosition.helper.cjs`),i=require(`./composables/useVisualViewportVar.composable.cjs`),a=require(`./composables/useRovingFocus.composable.cjs`);let o=require(`vue`);var s=[`aria-label`,`aria-orientation`],c=(0,o.defineComponent)({__name:`FloatingToolbar`,props:{open:{type:Boolean,default:!1},anchor:{default:null},placement:{default:`top`},gap:{default:8},label:{},orientation:{default:`horizontal`},teleportTo:{default:`body`},dock:{default:`none`}},emits:[`close`,`update:open`],setup(e,{expose:c,emit:l}){let u=e,d=l,{layerProps:f}=t.useSurfaceLayer({overlay:!0}),p=(0,o.ref)(null),m=(0,o.ref)(u.placement),h=(0,o.ref)({top:0,left:0}),g=(0,o.ref)(!1),_=(0,o.computed)(()=>({top:`${h.value.top}px`,left:`${h.value.left}px`}));function v(e){return`getBoundingClientRect`in e?e.getBoundingClientRect():e}function y(){let e=p.value;if(!e||!u.anchor)return;let t=v(u.anchor),n=r.viewportSize();g.value=n.width>0&&n.height>0&&(t.top+t.height<0||t.top>n.height||t.left+t.width<0||t.left>n.width);let i=r.placeAnchored(t,{width:e.offsetWidth,height:e.offsetHeight},{side:u.placement,gap:u.gap,viewport:n});m.value=i.side,h.value={top:i.top,left:i.left}}let b=a.useRovingFocus(p,{orientation:()=>u.orientation,includeFields:!0});function x(e){if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),d(`close`),d(`update:open`,!1);return}b.onKeydown(e)}let S=b.onFocusIn;function C(e){e.target?.closest(`input, textarea, select, [contenteditable="true"]`)||e.preventDefault()}let w=b.focus;function T(){window.addEventListener(`resize`,y),window.addEventListener(`scroll`,y,!0)}function E(){typeof window>`u`||(window.removeEventListener(`resize`,y),window.removeEventListener(`scroll`,y,!0))}let D=(0,o.computed)(()=>u.open&&!!u.anchor),{phone:O}=n.usePhoneLayout(),k=(0,o.computed)(()=>u.dock===`phone`&&O.value);return i.useVisualViewportVar(()=>D.value&&u.dock===`phone`),(0,o.watch)(D,e=>{typeof window>`u`||(E(),e&&(b.activeIndex.value=0,(0,o.nextTick)(()=>{T(),b.sync(),y(),requestAnimationFrame(y)})))},{immediate:!0}),(0,o.watch)(()=>[u.anchor,u.placement,u.gap],()=>{D.value&&(0,o.nextTick)(y)}),(0,o.onBeforeUnmount)(E),c({reposition:y,focus:w,el:p}),(t,n)=>((0,o.openBlock)(),(0,o.createBlock)(o.Teleport,{to:e.teleportTo},[e.open&&e.anchor?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,(0,o.mergeProps)({key:0,ref_key:`toolbarRef`,ref:p,class:[`nb-floating-toolbar`,`nb-floating-toolbar--${m.value}`,`nb-floating-toolbar--${e.orientation}`,{"nb-floating-toolbar--anchor-hidden":g.value&&!k.value,"nb-floating-toolbar--docked":k.value}]},(0,o.unref)(f),{role:`toolbar`,"aria-label":e.label,"aria-orientation":e.orientation,style:k.value?void 0:_.value,onMousedown:C,onKeydown:x,onFocusin:n[0]||=(...e)=>(0,o.unref)(S)&&(0,o.unref)(S)(...e)}),[(0,o.renderSlot)(t.$slots,`default`,{},void 0,!0)],16,s)):(0,o.createCommentVNode)(``,!0)],8,[`to`]))}}),l=e.t(c,[[`__scopeId`,`data-v-2d3a10c5`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return l}});
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Grid-C0muGlj3.cjs`);let t=require(`vue`);var n=(0,t.defineComponent)({__name:`Form`,props:{title:{default:void 0}},setup(n){return(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(e.t,{is:`form`,dir:`col`,gap:`md`,class:`nb-form`},{default:(0,t.withCtx)(()=>[n.title?((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:0,is:`h4`,class:`nb-form--header`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.title),1)]),_:1})):(0,t.createCommentVNode)(``,!0),r.$slots.message?((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:1,is:`p`,class:`nb-form--message`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`message`)]),_:3})):(0,t.createCommentVNode)(``,!0),r.$slots.default?((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:2,is:`div`,dir:`col`,gap:`sm`,class:`nb-form--body`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`default`)]),_:3})):(0,t.createCommentVNode)(``,!0),r.$slots.footer?((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:3,is:`footer`,class:`nb-form--footer`,justify:`end`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`footer`)]),_:3})):(0,t.createCommentVNode)(``,!0)]),_:3}))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Grid-BOtE_jXr.cjs`);let t=require(`vue`);var n=(0,t.defineComponent)({__name:`Form`,props:{title:{default:void 0}},setup(n){return(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(e.t,{is:`form`,dir:`col`,gap:`md`,class:`nb-form`},{default:(0,t.withCtx)(()=>[n.title?((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:0,is:`h4`,class:`nb-form--header`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.title),1)]),_:1})):(0,t.createCommentVNode)(``,!0),r.$slots.message?((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:1,is:`p`,class:`nb-form--message`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`message`)]),_:3})):(0,t.createCommentVNode)(``,!0),r.$slots.default?((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:2,is:`div`,dir:`col`,gap:`sm`,class:`nb-form--body`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`default`)]),_:3})):(0,t.createCommentVNode)(``,!0),r.$slots.footer?((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:3,is:`footer`,class:`nb-form--footer`,justify:`end`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`footer`)]),_:3})):(0,t.createCommentVNode)(``,!0)]),_:3}))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
@@ -1,4 +1,4 @@
1
- import { t as e } from "./Grid-jlgLOwom.js";
1
+ import { t as e } from "./Grid-B7d8x0tA.js";
2
2
  import { createBlock as t, createCommentVNode as n, createTextVNode as r, defineComponent as i, openBlock as a, renderSlot as o, toDisplayString as s, withCtx as c } from "vue";
3
3
  //#endregion
4
4
  //#region src/components/Form.vue
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useNbStrings.composable.cjs`),n=require(`./palette-B7XEOMVB.cjs`),r=require(`./ChartLegend-C81jju4k.cjs`),i=require(`./scales-B8IbC7t_.cjs`);let a=require(`vue`);var o={class:`nb-gantt__list-body`},s=[`onClick`],c={class:`nb-gantt__list-group-label`},l=[`onMouseenter`],u=[`title`],d=[`width`],f={class:`nb-gantt__time-header`},p=[`x`,`y`],m=[`x1`,`x2`],h=[`width`,`height`,`aria-label`],g={key:0},_=[`x1`,`x2`,`y2`],v=[`y`,`width`,`height`],y=[`x1`,`x2`,`y2`],b=[`x`,`y`,`width`,`height`],x=[`points`],ee=[`points`],te=[`x`,`y`,`width`,`height`,`fill`,`onMouseenter`,`onMousemove`],ne=[`x`,`y`,`width`,`height`,`fill`],re=[`points`,`fill`,`onMouseenter`,`onMousemove`],ie=[`d`],ae=[`points`],oe=[`y`,`width`,`height`,`onMouseenter`],S=40,C=(0,a.defineComponent)({__name:`GanttChart`,props:{tasks:{default:()=>[]},dependencies:{default:()=>[]},groups:{default:()=>[]},timeScale:{default:`week`},locale:{default:void 0},rowHeight:{default:36},listWidth:{default:200},showTodayMarker:{type:Boolean,default:!0},today:{default:void 0},showProgress:{type:Boolean,default:!0},statusColors:{default:void 0},title:{default:void 0},subtitle:{default:void 0},height:{default:400},showLegend:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!0},colors:{default:()=>n.n}},setup(e){let C=t.useNbStrings(),w=e,T=(0,a.computed)(()=>w.locale||(typeof navigator<`u`?navigator.language:``)||`en`),E={default:n.r(1),"on-track":n.r(3),"at-risk":n.r(4),behind:n.r(5),complete:n.r(2)},D=(0,a.computed)(()=>({...E,...w.statusColors})),O=(0,a.computed)(()=>Math.round(w.rowHeight*.22)),k=(0,a.computed)(()=>w.rowHeight-O.value*2),A=(0,a.computed)(()=>Math.round(w.rowHeight*.28)),j=(0,a.ref)(new Set((w.groups??[]).filter(e=>e.collapsed).map(e=>e.id))),se=e=>{let t=new Set(j.value);t.has(e)?t.delete(e):t.add(e),j.value=t},ce=(0,a.computed)(()=>(w.groups?.length??0)>0),M=(0,a.computed)(()=>{let e=w.tasks??[],t=w.groups??[];if(!t.length)return e.map(e=>({id:e.id,label:e.label,type:`task`,milestone:e.milestone}));let n=[],r=new Map(t.map(e=>[e.id,e])),i=new Map,a=[];for(let t of e)if(t.group&&r.has(t.group)){let e=i.get(t.group)??[];e.push(t),i.set(t.group,e)}else a.push(t);for(let e of t)if(n.push({id:e.id,label:e.label,type:`group`}),!j.value.has(e.id))for(let t of i.get(e.id)??[])n.push({id:t.id,label:t.label,type:`task`,milestone:t.milestone,indent:!0});for(let e of a)n.push({id:e.id,label:e.label,type:`task`,milestone:e.milestone});return n}),le=(0,a.computed)(()=>M.value.filter(e=>e.type===`task`)),N=(0,a.computed)(()=>{let e=new Map;return M.value.forEach((t,n)=>e.set(t.id,n)),e}),P=e=>typeof e==`string`?new Date(e).getTime():e.getTime(),F=(0,a.computed)(()=>{let e=w.tasks??[];if(!e.length){let e=Date.now();return[e,e+7*864e5]}let t=1/0,n=-1/0;for(let r of e){let e=P(r.start),i=r.end?P(r.end):e;e<t&&(t=e),i>n&&(n=i)}let r=I(w.timeScale);return[t-r,n+r]}),I=e=>{let t=864e5;return e===`day`?t:e===`week`?7*t:e===`month`?30*t:e===`quarter`?91*t:365*t},L=(0,a.computed)(()=>{let e=w.timeScale;return e===`day`?40:e===`week`?120:e===`month`?180:e===`quarter`?240:360}),R=(0,a.computed)(()=>L.value/I(w.timeScale)),z=(0,a.computed)(()=>F.value[0]),B=(0,a.computed)(()=>Math.max(200,Math.ceil((F.value[1]-F.value[0])*R.value))),V=(0,a.computed)(()=>M.value.length*w.rowHeight),H=(0,a.computed)(()=>i.a(new Date(F.value[0]),new Date(F.value[1]),w.timeScale,R.value,z.value)),U=(0,a.computed)(()=>{if(!w.showTodayMarker)return null;let e=i.n(w.today?new Date(w.today):new Date,z.value,R.value);return e<0||e>B.value?null:e}),W=(e,t)=>e.color?e.color:e.status&&e.status!==`default`?D.value[e.status]:n.i(t,w.colors),G=e=>(typeof e==`string`?new Date(e):e).toLocaleDateString(T.value,{month:`short`,day:`numeric`,year:`numeric`}),ue=(0,a.computed)(()=>(w.tasks??[]).filter(e=>!e.milestone&&e.end).map((e,t)=>{let n=N.value.get(e.id);if(n===void 0)return null;let r=i.n(e.start,z.value,R.value),a=i.n(e.end,z.value,R.value);return{id:e.id,x:r,y:n*w.rowHeight,width:Math.max(a-r,4),color:W(e,t),status:e.status??`default`,progress:e.progress??0,label:e.label,start:G(e.start),end:G(e.end)}}).filter(Boolean)),de=(0,a.computed)(()=>(w.tasks??[]).filter(e=>e.milestone).map((e,t)=>{let n=N.value.get(e.id);return n===void 0?null:{id:e.id,x:i.n(e.start,z.value,R.value),y:n*w.rowHeight,color:W(e,t),label:e.label,date:G(e.start)}}).filter(Boolean)),fe=(0,a.computed)(()=>{let e=w.groups??[],t=w.tasks??[];return e.length?e.map(e=>{let n=N.value.get(e.id);if(n===void 0)return null;let r=t.filter(t=>t.group===e.id);if(!r.length)return null;let a=1/0,o=-1/0;for(let e of r){let t=P(e.start),n=e.end?P(e.end):t;t<a&&(a=t),n>o&&(o=n)}let s=i.n(new Date(a),z.value,R.value),c=i.n(new Date(o),z.value,R.value);return{id:e.id,x:s,y:n*w.rowHeight,width:Math.max(c-s,4)}}).filter(Boolean):[]}),K=(e,t)=>`${e},${t} ${e-5},${t+5} ${e+5},${t+5}`,q=(e,t,n)=>`${e},${t-n} ${e+n},${t} ${e},${t+n} ${e-n},${t}`,J=(0,a.computed)(()=>{let e=w.dependencies??[];if(!e.length)return[];let t=new Map((w.tasks??[]).map(e=>[e.id,e]));return e.map(e=>{let n=t.get(e.from),r=t.get(e.to);if(!n||!r)return null;let a=N.value.get(e.from),o=N.value.get(e.to);if(a===void 0||o===void 0)return null;let s=e.type??`finish-to-start`,c=w.rowHeight,l,u,d,f;s===`finish-to-start`?(l=n.milestone?i.n(n.start,z.value,R.value)+A.value:i.n(n.end??n.start,z.value,R.value),u=a*c+c/2,d=r.milestone?i.n(r.start,z.value,R.value)-A.value:i.n(r.start,z.value,R.value),f=o*c+c/2):s===`start-to-start`?(l=i.n(n.start,z.value,R.value),u=a*c+c/2,d=i.n(r.start,z.value,R.value),f=o*c+c/2):s===`finish-to-finish`?(l=i.n(n.end??n.start,z.value,R.value),u=a*c+c/2,d=i.n(r.end??r.start,z.value,R.value),f=o*c+c/2):(l=i.n(n.start,z.value,R.value),u=a*c+c/2,d=i.n(r.end??r.start,z.value,R.value),f=o*c+c/2);let p=l+(d-l)*.5,m=d>l+12?`M${l},${u} H${p} V${f} H${d}`:`M${l},${u} H${l+12} V${(u+f)/2} H${d-12} V${f} H${d}`,h=d,g=f;return{path:m,arrowhead:`${h},${g} ${h-6},${g-4} ${h-6},${g+4}`}}).filter(Boolean)}),Y=(0,a.ref)(null),X=(0,a.ref)(null),Z=(0,a.reactive)({x:0,y:0}),Q=(0,a.ref)(null),pe=(e,t)=>{if(!Y.value)return;let n=Y.value.getBoundingClientRect();Z.x=e.clientX-n.left+12,Z.y=e.clientY-n.top+12,X.value=t.id,Q.value={title:t.label,rows:[{label:`Start`,value:t.start,color:t.color},{label:`End`,value:t.end,color:t.color},...t.progress>0?[{label:`Progress`,value:`${t.progress}%`,color:t.color}]:[]]}},me=(e,t)=>{if(!Y.value)return;let n=Y.value.getBoundingClientRect();Z.x=e.clientX-n.left+12,Z.y=e.clientY-n.top+12,X.value=t.id,Q.value={title:t.label,rows:[{label:`Date`,value:t.date,color:t.color}]}},$=(0,a.computed)(()=>{let e=new Set;for(let t of w.tasks??[])e.add(t.status??`default`);let t={default:`Default`,"on-track":`On track`,"at-risk":`At risk`,behind:`Behind`,complete:`Complete`};return Array.from(e).map(e=>({label:t[e],color:D.value[e]}))});return(t,i)=>((0,a.openBlock)(),(0,a.createBlock)(n.u,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&$.value.length>1},{legend:(0,a.withCtx)(()=>[(0,a.createVNode)(r.t,{items:$.value},null,8,[`items`])]),default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`div`,{class:(0,a.normalizeClass)([`nb-gantt`,{"nb-gantt--has-groups":ce.value}])},[(0,a.createElementVNode)(`div`,{class:`nb-gantt__list`,style:(0,a.normalizeStyle)({width:`${e.listWidth}px`})},[(0,a.createElementVNode)(`div`,{class:`nb-gantt__list-header`,style:(0,a.normalizeStyle)({height:`${S}px`})},` Tasks `,4),(0,a.createElementVNode)(`div`,o,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(M.value,t=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:t.id},[t.type===`group`?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,class:`nb-gantt__list-group`,style:(0,a.normalizeStyle)({height:`${e.rowHeight}px`}),onClick:e=>se(t.id)},[(0,a.createElementVNode)(`span`,{class:(0,a.normalizeClass)([`nb-gantt__list-caret`,{"is-collapsed":j.value.has(t.id)}])},`▸`,2),(0,a.createElementVNode)(`span`,c,(0,a.toDisplayString)(t.label),1)],12,s)):((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:1,class:(0,a.normalizeClass)([`nb-gantt__list-row`,{"is-hovered":X.value===t.id,"is-milestone":t.milestone}]),style:(0,a.normalizeStyle)({height:`${e.rowHeight}px`,paddingLeft:t.indent?`20px`:void 0}),onMouseenter:e=>X.value=t.id,onMouseleave:i[0]||=e=>X.value=null},[(0,a.createElementVNode)(`span`,{class:`nb-gantt__list-label`,title:t.label},(0,a.toDisplayString)(t.label),9,u)],46,l))],64))),128))])],4),(0,a.createElementVNode)(`div`,{ref_key:`timelineEl`,ref:Y,class:`nb-gantt__timeline`},[((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,{class:`nb-gantt__header-svg`,width:B.value,height:S},[(0,a.createElementVNode)(`g`,f,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(H.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`text`,{key:`th-${t}`,x:e.x+4,y:S-6,class:`nb-gantt__time-label`},(0,a.toDisplayString)(e.label),9,p))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(H.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`line`,{key:`tl-${t}`,x1:e.x,x2:e.x,y1:0,y2:S,class:`nb-gantt__header-gridline`},null,8,m))),128))])],8,d)),((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,{class:`nb-gantt__svg`,width:B.value,height:V.value,role:`img`,"aria-label":e.title||(0,a.unref)(C).chartGantt,onMouseleave:i[4]||=e=>X.value=null},[e.showGrid?((0,a.openBlock)(),(0,a.createElementBlock)(`g`,g,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(H.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`line`,{key:`grid-${t}`,class:`nb-gantt__gridline`,x1:e.x,x2:e.x,y1:0,y2:V.value},null,8,_))),128))])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`g`,null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(M.value,(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`rect`,{key:`stripe-${t.id}`,class:(0,a.normalizeClass)([`nb-gantt__row-stripe`,{"is-even":n%2==0,"is-group":t.type===`group`}]),x:0,y:n*e.rowHeight,width:B.value,height:e.rowHeight},null,10,v))),128))]),e.showTodayMarker&&U.value!==null?((0,a.openBlock)(),(0,a.createElementBlock)(`line`,{key:1,class:`nb-gantt__today-line`,x1:U.value,x2:U.value,y1:0,y2:V.value},null,8,y)):(0,a.createCommentVNode)(``,!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(fe.value,t=>((0,a.openBlock)(),(0,a.createElementBlock)(`g`,{key:`summary-${t.id}`},[(0,a.createElementVNode)(`rect`,{class:`nb-gantt__summary-bar`,x:t.x,y:t.y+e.rowHeight*.35,width:Math.max(t.width,2),height:e.rowHeight*.3,rx:`2`},null,8,b),(0,a.createElementVNode)(`polygon`,{class:`nb-gantt__summary-caret`,points:K(t.x,t.y+e.rowHeight*.65)},null,8,x),(0,a.createElementVNode)(`polygon`,{class:`nb-gantt__summary-caret`,points:K(t.x+t.width,t.y+e.rowHeight*.65)},null,8,ee)]))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(ue.value,t=>((0,a.openBlock)(),(0,a.createElementBlock)(`g`,{key:`bar-${t.id}`},[(0,a.createElementVNode)(`rect`,{class:(0,a.normalizeClass)([`nb-gantt__bar`,[`nb-gantt__bar--${t.status}`,{"is-hovered":X.value===t.id,"is-dim":X.value!==null&&X.value!==t.id}]]),x:t.x,y:t.y+O.value,width:Math.max(t.width,4),height:k.value,rx:`3`,fill:t.color,onMouseenter:e=>X.value=t.id,onMouseleave:i[1]||=e=>X.value=null,onMousemove:e=>pe(e,t)},null,42,te),e.showProgress&&t.progress>0?((0,a.openBlock)(),(0,a.createElementBlock)(`rect`,{key:0,class:`nb-gantt__bar-progress`,x:t.x,y:t.y+O.value,width:Math.max(t.width*(t.progress/100),2),height:k.value,rx:`3`,fill:t.color,"pointer-events":`none`},null,8,ne)):(0,a.createCommentVNode)(``,!0)]))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(de.value,t=>((0,a.openBlock)(),(0,a.createElementBlock)(`g`,{key:`ms-${t.id}`},[(0,a.createElementVNode)(`polygon`,{class:(0,a.normalizeClass)([`nb-gantt__milestone`,{"is-hovered":X.value===t.id,"is-dim":X.value!==null&&X.value!==t.id}]),points:q(t.x,t.y+e.rowHeight/2,A.value),fill:t.color,onMouseenter:e=>X.value=t.id,onMouseleave:i[2]||=e=>X.value=null,onMousemove:e=>me(e,t)},null,42,re)]))),128)),(0,a.createElementVNode)(`g`,null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(J.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`path`,{key:`dep-${t}`,class:`nb-gantt__dependency`,d:e.path,fill:`none`},null,8,ie))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(J.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`polygon`,{key:`dep-arrow-${t}`,class:`nb-gantt__dependency-arrow`,points:e.arrowhead},null,8,ae))),128))]),(0,a.createElementVNode)(`g`,null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(le.value,(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`rect`,{key:`hover-${t.id}`,x:0,y:n*e.rowHeight,width:B.value,height:e.rowHeight,fill:`transparent`,onMouseenter:e=>X.value=t.id,onMouseleave:i[3]||=e=>X.value=null},null,40,oe))),128))])],40,h)),(0,a.createVNode)(n.l,{visible:e.showTooltip&&X.value!==null&&Q.value!==null,x:Z.x,y:Z.y,title:Q.value?.title??``,rows:Q.value?.rows??[]},null,8,[`visible`,`x`,`y`,`title`,`rows`])],512)],2)]),_:1},8,[`title`,`subtitle`,`height`,`show-legend`]))}}),w=e.t(C,[[`__scopeId`,`data-v-b4a32e39`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return w}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useNbStrings.composable.cjs`),n=require(`./palette-LbOzdAXj.cjs`),r=require(`./ChartLegend-COJeG-2B.cjs`),i=require(`./scales-BRSHTjbp.cjs`);let a=require(`vue`);var o={class:`nb-gantt__list-body`},s=[`onClick`],c={class:`nb-gantt__list-group-label`},l=[`onMouseenter`],u=[`title`],d=[`width`],f={class:`nb-gantt__time-header`},p=[`x`,`y`],m=[`x1`,`x2`],h=[`width`,`height`,`aria-label`],g={key:0},_=[`x1`,`x2`,`y2`],v=[`y`,`width`,`height`],y=[`x1`,`x2`,`y2`],b=[`x`,`y`,`width`,`height`],x=[`points`],ee=[`points`],te=[`x`,`y`,`width`,`height`,`fill`,`onMouseenter`,`onMousemove`],ne=[`x`,`y`,`width`,`height`,`fill`],re=[`points`,`fill`,`onMouseenter`,`onMousemove`],ie=[`d`],ae=[`points`],oe=[`y`,`width`,`height`,`onMouseenter`],S=40,C=(0,a.defineComponent)({__name:`GanttChart`,props:{tasks:{default:()=>[]},dependencies:{default:()=>[]},groups:{default:()=>[]},timeScale:{default:`week`},locale:{default:void 0},rowHeight:{default:36},listWidth:{default:200},showTodayMarker:{type:Boolean,default:!0},today:{default:void 0},showProgress:{type:Boolean,default:!0},statusColors:{default:void 0},title:{default:void 0},subtitle:{default:void 0},height:{default:400},showLegend:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!0},colors:{default:()=>n.n}},setup(e){let C=t.useNbStrings(),w=e,T=(0,a.computed)(()=>w.locale||(typeof navigator<`u`?navigator.language:``)||`en`),E={default:n.r(1),"on-track":n.r(3),"at-risk":n.r(4),behind:n.r(5),complete:n.r(2)},D=(0,a.computed)(()=>({...E,...w.statusColors})),O=(0,a.computed)(()=>Math.round(w.rowHeight*.22)),k=(0,a.computed)(()=>w.rowHeight-O.value*2),A=(0,a.computed)(()=>Math.round(w.rowHeight*.28)),j=(0,a.ref)(new Set((w.groups??[]).filter(e=>e.collapsed).map(e=>e.id))),se=e=>{let t=new Set(j.value);t.has(e)?t.delete(e):t.add(e),j.value=t},ce=(0,a.computed)(()=>(w.groups?.length??0)>0),M=(0,a.computed)(()=>{let e=w.tasks??[],t=w.groups??[];if(!t.length)return e.map(e=>({id:e.id,label:e.label,type:`task`,milestone:e.milestone}));let n=[],r=new Map(t.map(e=>[e.id,e])),i=new Map,a=[];for(let t of e)if(t.group&&r.has(t.group)){let e=i.get(t.group)??[];e.push(t),i.set(t.group,e)}else a.push(t);for(let e of t)if(n.push({id:e.id,label:e.label,type:`group`}),!j.value.has(e.id))for(let t of i.get(e.id)??[])n.push({id:t.id,label:t.label,type:`task`,milestone:t.milestone,indent:!0});for(let e of a)n.push({id:e.id,label:e.label,type:`task`,milestone:e.milestone});return n}),le=(0,a.computed)(()=>M.value.filter(e=>e.type===`task`)),N=(0,a.computed)(()=>{let e=new Map;return M.value.forEach((t,n)=>e.set(t.id,n)),e}),P=e=>typeof e==`string`?new Date(e).getTime():e.getTime(),F=(0,a.computed)(()=>{let e=w.tasks??[];if(!e.length){let e=Date.now();return[e,e+7*864e5]}let t=1/0,n=-1/0;for(let r of e){let e=P(r.start),i=r.end?P(r.end):e;e<t&&(t=e),i>n&&(n=i)}let r=I(w.timeScale);return[t-r,n+r]}),I=e=>{let t=864e5;return e===`day`?t:e===`week`?7*t:e===`month`?30*t:e===`quarter`?91*t:365*t},L=(0,a.computed)(()=>{let e=w.timeScale;return e===`day`?40:e===`week`?120:e===`month`?180:e===`quarter`?240:360}),R=(0,a.computed)(()=>L.value/I(w.timeScale)),z=(0,a.computed)(()=>F.value[0]),B=(0,a.computed)(()=>Math.max(200,Math.ceil((F.value[1]-F.value[0])*R.value))),V=(0,a.computed)(()=>M.value.length*w.rowHeight),H=(0,a.computed)(()=>i.a(new Date(F.value[0]),new Date(F.value[1]),w.timeScale,R.value,z.value)),U=(0,a.computed)(()=>{if(!w.showTodayMarker)return null;let e=i.n(w.today?new Date(w.today):new Date,z.value,R.value);return e<0||e>B.value?null:e}),W=(e,t)=>e.color?e.color:e.status&&e.status!==`default`?D.value[e.status]:n.i(t,w.colors),G=e=>(typeof e==`string`?new Date(e):e).toLocaleDateString(T.value,{month:`short`,day:`numeric`,year:`numeric`}),ue=(0,a.computed)(()=>(w.tasks??[]).filter(e=>!e.milestone&&e.end).map((e,t)=>{let n=N.value.get(e.id);if(n===void 0)return null;let r=i.n(e.start,z.value,R.value),a=i.n(e.end,z.value,R.value);return{id:e.id,x:r,y:n*w.rowHeight,width:Math.max(a-r,4),color:W(e,t),status:e.status??`default`,progress:e.progress??0,label:e.label,start:G(e.start),end:G(e.end)}}).filter(Boolean)),de=(0,a.computed)(()=>(w.tasks??[]).filter(e=>e.milestone).map((e,t)=>{let n=N.value.get(e.id);return n===void 0?null:{id:e.id,x:i.n(e.start,z.value,R.value),y:n*w.rowHeight,color:W(e,t),label:e.label,date:G(e.start)}}).filter(Boolean)),fe=(0,a.computed)(()=>{let e=w.groups??[],t=w.tasks??[];return e.length?e.map(e=>{let n=N.value.get(e.id);if(n===void 0)return null;let r=t.filter(t=>t.group===e.id);if(!r.length)return null;let a=1/0,o=-1/0;for(let e of r){let t=P(e.start),n=e.end?P(e.end):t;t<a&&(a=t),n>o&&(o=n)}let s=i.n(new Date(a),z.value,R.value),c=i.n(new Date(o),z.value,R.value);return{id:e.id,x:s,y:n*w.rowHeight,width:Math.max(c-s,4)}}).filter(Boolean):[]}),K=(e,t)=>`${e},${t} ${e-5},${t+5} ${e+5},${t+5}`,q=(e,t,n)=>`${e},${t-n} ${e+n},${t} ${e},${t+n} ${e-n},${t}`,J=(0,a.computed)(()=>{let e=w.dependencies??[];if(!e.length)return[];let t=new Map((w.tasks??[]).map(e=>[e.id,e]));return e.map(e=>{let n=t.get(e.from),r=t.get(e.to);if(!n||!r)return null;let a=N.value.get(e.from),o=N.value.get(e.to);if(a===void 0||o===void 0)return null;let s=e.type??`finish-to-start`,c=w.rowHeight,l,u,d,f;s===`finish-to-start`?(l=n.milestone?i.n(n.start,z.value,R.value)+A.value:i.n(n.end??n.start,z.value,R.value),u=a*c+c/2,d=r.milestone?i.n(r.start,z.value,R.value)-A.value:i.n(r.start,z.value,R.value),f=o*c+c/2):s===`start-to-start`?(l=i.n(n.start,z.value,R.value),u=a*c+c/2,d=i.n(r.start,z.value,R.value),f=o*c+c/2):s===`finish-to-finish`?(l=i.n(n.end??n.start,z.value,R.value),u=a*c+c/2,d=i.n(r.end??r.start,z.value,R.value),f=o*c+c/2):(l=i.n(n.start,z.value,R.value),u=a*c+c/2,d=i.n(r.end??r.start,z.value,R.value),f=o*c+c/2);let p=l+(d-l)*.5,m=d>l+12?`M${l},${u} H${p} V${f} H${d}`:`M${l},${u} H${l+12} V${(u+f)/2} H${d-12} V${f} H${d}`,h=d,g=f;return{path:m,arrowhead:`${h},${g} ${h-6},${g-4} ${h-6},${g+4}`}}).filter(Boolean)}),Y=(0,a.ref)(null),X=(0,a.ref)(null),Z=(0,a.reactive)({x:0,y:0}),Q=(0,a.ref)(null),pe=(e,t)=>{if(!Y.value)return;let n=Y.value.getBoundingClientRect();Z.x=e.clientX-n.left+12,Z.y=e.clientY-n.top+12,X.value=t.id,Q.value={title:t.label,rows:[{label:`Start`,value:t.start,color:t.color},{label:`End`,value:t.end,color:t.color},...t.progress>0?[{label:`Progress`,value:`${t.progress}%`,color:t.color}]:[]]}},me=(e,t)=>{if(!Y.value)return;let n=Y.value.getBoundingClientRect();Z.x=e.clientX-n.left+12,Z.y=e.clientY-n.top+12,X.value=t.id,Q.value={title:t.label,rows:[{label:`Date`,value:t.date,color:t.color}]}},$=(0,a.computed)(()=>{let e=new Set;for(let t of w.tasks??[])e.add(t.status??`default`);let t={default:`Default`,"on-track":`On track`,"at-risk":`At risk`,behind:`Behind`,complete:`Complete`};return Array.from(e).map(e=>({label:t[e],color:D.value[e]}))});return(t,i)=>((0,a.openBlock)(),(0,a.createBlock)(n.u,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&$.value.length>1},{legend:(0,a.withCtx)(()=>[(0,a.createVNode)(r.t,{items:$.value},null,8,[`items`])]),default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`div`,{class:(0,a.normalizeClass)([`nb-gantt`,{"nb-gantt--has-groups":ce.value}])},[(0,a.createElementVNode)(`div`,{class:`nb-gantt__list`,style:(0,a.normalizeStyle)({width:`${e.listWidth}px`})},[(0,a.createElementVNode)(`div`,{class:`nb-gantt__list-header`,style:(0,a.normalizeStyle)({height:`${S}px`})},` Tasks `,4),(0,a.createElementVNode)(`div`,o,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(M.value,t=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:t.id},[t.type===`group`?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,class:`nb-gantt__list-group`,style:(0,a.normalizeStyle)({height:`${e.rowHeight}px`}),onClick:e=>se(t.id)},[(0,a.createElementVNode)(`span`,{class:(0,a.normalizeClass)([`nb-gantt__list-caret`,{"is-collapsed":j.value.has(t.id)}])},`▸`,2),(0,a.createElementVNode)(`span`,c,(0,a.toDisplayString)(t.label),1)],12,s)):((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:1,class:(0,a.normalizeClass)([`nb-gantt__list-row`,{"is-hovered":X.value===t.id,"is-milestone":t.milestone}]),style:(0,a.normalizeStyle)({height:`${e.rowHeight}px`,paddingLeft:t.indent?`20px`:void 0}),onMouseenter:e=>X.value=t.id,onMouseleave:i[0]||=e=>X.value=null},[(0,a.createElementVNode)(`span`,{class:`nb-gantt__list-label`,title:t.label},(0,a.toDisplayString)(t.label),9,u)],46,l))],64))),128))])],4),(0,a.createElementVNode)(`div`,{ref_key:`timelineEl`,ref:Y,class:`nb-gantt__timeline`},[((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,{class:`nb-gantt__header-svg`,width:B.value,height:S},[(0,a.createElementVNode)(`g`,f,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(H.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`text`,{key:`th-${t}`,x:e.x+4,y:S-6,class:`nb-gantt__time-label`},(0,a.toDisplayString)(e.label),9,p))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(H.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`line`,{key:`tl-${t}`,x1:e.x,x2:e.x,y1:0,y2:S,class:`nb-gantt__header-gridline`},null,8,m))),128))])],8,d)),((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,{class:`nb-gantt__svg`,width:B.value,height:V.value,role:`img`,"aria-label":e.title||(0,a.unref)(C).chartGantt,onMouseleave:i[4]||=e=>X.value=null},[e.showGrid?((0,a.openBlock)(),(0,a.createElementBlock)(`g`,g,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(H.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`line`,{key:`grid-${t}`,class:`nb-gantt__gridline`,x1:e.x,x2:e.x,y1:0,y2:V.value},null,8,_))),128))])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`g`,null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(M.value,(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`rect`,{key:`stripe-${t.id}`,class:(0,a.normalizeClass)([`nb-gantt__row-stripe`,{"is-even":n%2==0,"is-group":t.type===`group`}]),x:0,y:n*e.rowHeight,width:B.value,height:e.rowHeight},null,10,v))),128))]),e.showTodayMarker&&U.value!==null?((0,a.openBlock)(),(0,a.createElementBlock)(`line`,{key:1,class:`nb-gantt__today-line`,x1:U.value,x2:U.value,y1:0,y2:V.value},null,8,y)):(0,a.createCommentVNode)(``,!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(fe.value,t=>((0,a.openBlock)(),(0,a.createElementBlock)(`g`,{key:`summary-${t.id}`},[(0,a.createElementVNode)(`rect`,{class:`nb-gantt__summary-bar`,x:t.x,y:t.y+e.rowHeight*.35,width:Math.max(t.width,2),height:e.rowHeight*.3,rx:`2`},null,8,b),(0,a.createElementVNode)(`polygon`,{class:`nb-gantt__summary-caret`,points:K(t.x,t.y+e.rowHeight*.65)},null,8,x),(0,a.createElementVNode)(`polygon`,{class:`nb-gantt__summary-caret`,points:K(t.x+t.width,t.y+e.rowHeight*.65)},null,8,ee)]))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(ue.value,t=>((0,a.openBlock)(),(0,a.createElementBlock)(`g`,{key:`bar-${t.id}`},[(0,a.createElementVNode)(`rect`,{class:(0,a.normalizeClass)([`nb-gantt__bar`,[`nb-gantt__bar--${t.status}`,{"is-hovered":X.value===t.id,"is-dim":X.value!==null&&X.value!==t.id}]]),x:t.x,y:t.y+O.value,width:Math.max(t.width,4),height:k.value,rx:`3`,fill:t.color,onMouseenter:e=>X.value=t.id,onMouseleave:i[1]||=e=>X.value=null,onMousemove:e=>pe(e,t)},null,42,te),e.showProgress&&t.progress>0?((0,a.openBlock)(),(0,a.createElementBlock)(`rect`,{key:0,class:`nb-gantt__bar-progress`,x:t.x,y:t.y+O.value,width:Math.max(t.width*(t.progress/100),2),height:k.value,rx:`3`,fill:t.color,"pointer-events":`none`},null,8,ne)):(0,a.createCommentVNode)(``,!0)]))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(de.value,t=>((0,a.openBlock)(),(0,a.createElementBlock)(`g`,{key:`ms-${t.id}`},[(0,a.createElementVNode)(`polygon`,{class:(0,a.normalizeClass)([`nb-gantt__milestone`,{"is-hovered":X.value===t.id,"is-dim":X.value!==null&&X.value!==t.id}]),points:q(t.x,t.y+e.rowHeight/2,A.value),fill:t.color,onMouseenter:e=>X.value=t.id,onMouseleave:i[2]||=e=>X.value=null,onMousemove:e=>me(e,t)},null,42,re)]))),128)),(0,a.createElementVNode)(`g`,null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(J.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`path`,{key:`dep-${t}`,class:`nb-gantt__dependency`,d:e.path,fill:`none`},null,8,ie))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(J.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`polygon`,{key:`dep-arrow-${t}`,class:`nb-gantt__dependency-arrow`,points:e.arrowhead},null,8,ae))),128))]),(0,a.createElementVNode)(`g`,null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(le.value,(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`rect`,{key:`hover-${t.id}`,x:0,y:n*e.rowHeight,width:B.value,height:e.rowHeight,fill:`transparent`,onMouseenter:e=>X.value=t.id,onMouseleave:i[3]||=e=>X.value=null},null,40,oe))),128))])],40,h)),(0,a.createVNode)(n.l,{visible:e.showTooltip&&X.value!==null&&Q.value!==null,x:Z.x,y:Z.y,title:Q.value?.title??``,rows:Q.value?.rows??[]},null,8,[`visible`,`x`,`y`,`title`,`rows`])],512)],2)]),_:1},8,[`title`,`subtitle`,`height`,`show-legend`]))}}),w=e.t(C,[[`__scopeId`,`data-v-b4a32e39`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return w}});
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
2
2
  import { useNbStrings as t } from "./composables/useNbStrings.composable.mjs";
3
- import { i as n, l as r, n as i, r as a, u as o } from "./palette-CWU7exM6.js";
4
- import { t as s } from "./ChartLegend-fsJqOyGj.js";
5
- import { a as c, n as l } from "./scales-CNW8JgKC.js";
3
+ import { i as n, l as r, n as i, r as a, u as o } from "./palette-6bEW4KUN.js";
4
+ import { t as s } from "./ChartLegend-LDNukufA.js";
5
+ import { a as c, n as l } from "./scales-BGzTviac.js";
6
6
  import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, normalizeClass as v, normalizeStyle as y, openBlock as b, reactive as ee, ref as x, renderList as S, toDisplayString as C, unref as te, withCtx as w } from "vue";
7
7
  //#region src/components/Charts/GanttChart.vue?vue&type=script&setup=true&lang.ts
8
8
  var T = { class: "nb-gantt__list-body" }, ne = ["onClick"], re = { class: "nb-gantt__list-group-label" }, ie = ["onMouseenter"], ae = ["title"], oe = ["width"], E = { class: "nb-gantt__time-header" }, se = ["x", "y"], ce = ["x1", "x2"], le = [
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./Grid-C0muGlj3.cjs`),n=require(`./vue-i18n-DIvTc6LM.cjs`);let r=require(`vue`);var i=function(e){return e.TopLeft=`top-left`,e.Top=`top`,e.TopRight=`top-right`,e.Right=`right`,e.BottomRight=`bottom-right`,e.Bottom=`bottom`,e.BottomLeft=`bottom-left`,e.Left=`left`,e}(i||{}),a={class:`nb-image-cropper`},o=[`onMousedown`,`onTouchstart`],s=[`src`,`alt`],c=700,l=400,u=(0,r.defineComponent)({__name:`ImageCropper`,props:{image:{},cropAsCircle:{type:Boolean,default:!1},outputAsCircle:{type:Boolean,default:!1},lockAspectRatio:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!1}},emits:[`crop`],setup(e,{emit:u}){let d={en:{X:`X`,Y:`Y`,WIDTH:`Width`,HEIGHT:`Height`,IMAGE_THUMBNAIL:`Cropped preview`},pt:{X:`X`,Y:`Y`,WIDTH:`Largura`,HEIGHT:`Altura`,IMAGE_THUMBNAIL:`Pré-visualização recortada`}},{t:f,te:p,locale:m}=n.t({useScope:`global`});function h(e){if(p(e))return f(e);let t=e.slice(7);return d[String(m.value).toLowerCase().split(`-`)[0]]?.[t]??d.en[t]??e}let g=e,_=u,v=(0,r.ref)(null),y=null,b=new Image,x=null,S={x:1,y:1},C=(0,r.ref)({x:50,y:50,width:200,height:200}),w=(0,r.ref)(null),T=(0,r.ref)(null),E=!1,D=!1,O={x:0,y:0},k=!1,A={x:0,y:0},j={x:0,y:0,width:0,height:0},M=null,N=!1,P=[{name:i.TopLeft},{name:i.Top},{name:i.TopRight},{name:i.Right},{name:i.BottomRight},{name:i.Bottom},{name:i.BottomLeft},{name:i.Left}],F=()=>{if(!g.image){console.error(`No image file provided`);return}x&&=(URL.revokeObjectURL(x),null),b.onload=()=>{let{drawWidth:e,drawHeight:t}=I();if(v.value){v.value.width=e,v.value.height=t;let n=(v.value.width-b.width*S.x)/2,r=(v.value.height-b.height*S.y)/2;if(g.cropAsCircle||g.lockAspectRatio){let e=Math.min(b.width*S.x,b.height*S.y)*.5;C.value={x:n+(b.width*S.x-e)/2,y:r+(b.height*S.y-e)/2,width:e,height:e}}else C.value={x:n+(b.width*S.x*.5-b.width*S.x*.25),y:r+(b.height*S.y*.5-b.height*S.y*.25),width:b.width*S.x*.5,height:b.height*S.y*.5};L(),Q()}},b.onerror=()=>{console.error(`Failed to load image`)},x=URL.createObjectURL(g.image),b.src=x};(0,r.onMounted)(()=>{v.value&&(y=v.value.getContext(`2d`),y&&(y.imageSmoothingEnabled=!0,y.imageSmoothingQuality=`high`),g.image&&F())}),(0,r.onBeforeUnmount)(()=>{x&&=(URL.revokeObjectURL(x),null);let e=w.value;e&&(URL.revokeObjectURL(e),w.value=null)}),(0,r.watch)(()=>g.image,e=>{e&&F()}),(0,r.watch)(()=>[g.cropAsCircle,g.outputAsCircle,g.lockAspectRatio],()=>{v.value&&y&&L()});let I=()=>{let e=b.width/b.height,t=c,n=l;return e>c/l?n=c/e:t=l*e,S.x=t/b.width,S.y=n/b.height,{drawWidth:t,drawHeight:n}},L=()=>{if(y&&v.value){y.clearRect(0,0,v.value.width,v.value.height);let e=(v.value.width-b.width*S.x)/2,t=(v.value.height-b.height*S.y)/2;y.drawImage(b,0,0,b.width,b.height,e,t,b.width*S.x,b.height*S.y),R()}},R=()=>{y&&v.value&&(y.save(),y.beginPath(),g.cropAsCircle?y.arc(C.value.x+C.value.width/2,C.value.y+C.value.height/2,C.value.width/2,0,Math.PI*2):y.rect(C.value.x,C.value.y,C.value.width,C.value.height),y.rect(0,0,v.value.width,v.value.height),y.clip(`evenodd`),y.fillStyle=`rgba(0, 0, 0, 0.5)`,y.fillRect(0,0,v.value.width,v.value.height),y.restore(),y.save(),y.strokeStyle=`rgba(255, 255, 255, 0.8)`,y.lineWidth=1,y.setLineDash([5,5]),y.imageSmoothingEnabled=!1,g.cropAsCircle?(y.beginPath(),y.arc(C.value.x+C.value.width/2,C.value.y+C.value.height/2,C.value.width/2,0,Math.PI*2),y.stroke()):y.strokeRect(C.value.x,C.value.y,C.value.width,C.value.height),y.restore())},z=(0,r.computed)(()=>{if(g.cropAsCircle){let e=C.value.x+C.value.width/2,t=C.value.y+C.value.height/2,n=C.value.width/2;return{"top-left":{left:`${e-n-5}px`,top:`${t-n-5}px`},top:{left:`${e-5}px`,top:`${t-n-5}px`},"top-right":{left:`${e+n-5}px`,top:`${t-n-5}px`},right:{left:`${e+n-5}px`,top:`${t-5}px`},"bottom-right":{left:`${e+n-5}px`,top:`${t+n-5}px`},bottom:{left:`${e-5}px`,top:`${t+n-5}px`},"bottom-left":{left:`${e-n-5}px`,top:`${t+n-5}px`},left:{left:`${e-n-5}px`,top:`${t-5}px`}}}else return{"top-left":{left:`${C.value.x-5}px`,top:`${C.value.y-5}px`},top:{left:`${C.value.x+C.value.width/2-5}px`,top:`${C.value.y-5}px`},"top-right":{left:`${C.value.x+C.value.width-5}px`,top:`${C.value.y-5}px`},right:{left:`${C.value.x+C.value.width-5}px`,top:`${C.value.y+C.value.height/2-5}px`},"bottom-right":{left:`${C.value.x+C.value.width-5}px`,top:`${C.value.y+C.value.height-5}px`},bottom:{left:`${C.value.x+C.value.width/2-5}px`,top:`${C.value.y+C.value.height-5}px`},"bottom-left":{left:`${C.value.x-5}px`,top:`${C.value.y+C.value.height-5}px`},left:{left:`${C.value.x-5}px`,top:`${C.value.y+C.value.height/2-5}px`}}}),B=e=>{if(`touches`in e&&e.touches.length>0){let t=e.touches[0];return{clientX:t.clientX,clientY:t.clientY}}else if(`clientX`in e&&`clientY`in e)return{clientX:e.clientX,clientY:e.clientY};return{clientX:0,clientY:0}},V=e=>{let t=v.value;if(!t)return null;let{clientX:n,clientY:r}=B(e),{left:i,top:a}=t.getBoundingClientRect();return{x:n-i,y:r-a}},H=e=>{e.preventDefault();let t=V(e);if(!t)return;let{x:n,y:r}=t;X(n,r)&&(D=!0,E=!0,O={x:n-C.value.x,y:r-C.value.y})},U=e=>{D?G(e):k&&J(e)},W=()=>{D&&(K(),D=!1,Q()),k&&(Y(),Q()),E=!1,D=!1},G=e=>{if(E){let t=V(e);if(!t)return;let{x:n,y:r}=t;C.value.x=Math.floor(n-O.x),C.value.y=Math.floor(r-O.y),L()}},K=()=>{E&&=(Z(),L(),!1)},q=(e,t)=>{e.preventDefault();let n=V(e);n&&(k=!0,M=t,A={x:n.x,y:n.y},j={...C.value},N=e instanceof MouseEvent&&e.shiftKey)},J=e=>{if(!k)return;if(g.lockAspectRatio&&v.value){let t=V(e);if(!t)return;let{x:n,y:r}=t,i=j.x+j.width/2,a=j.y+j.height/2;if(g.cropAsCircle){let e=Math.max(Math.abs(n-i),Math.abs(r-a)),t=e*2;C.value={x:i-e,y:a-e,width:t,height:t}}else{let e=j.width/j.height,t=Math.abs(n-i),r=Math.max(t*2,50),o=r/e;C.value={x:i-r/2,y:a-o/2,width:r,height:o}}L();return}let t=V(e);if(!t)return;let{x:n,y:r}=t,i=n-A.x,a=r-A.y;N=e instanceof MouseEvent&&e.shiftKey;let o={...j};switch(M){case`top-left`:o.x+=i,o.y+=a,o.width-=i,o.height-=a;break;case`top`:o.y+=a,o.height-=a;break;case`top-right`:o.y+=a,o.width+=i,o.height-=a;break;case`right`:o.width+=i;break;case`bottom-right`:o.width+=i,o.height+=a;break;case`bottom`:o.height+=a;break;case`bottom-left`:o.x+=i,o.width-=i,o.height+=a;break;case`left`:o.x+=i,o.width-=i;break}if(o.width<50&&(o.width=50),o.height<50&&(o.height=50),N&&M){let e=j.width/j.height;[`left`,`right`].includes(M)?(o.height=o.width/e,M===`left`&&(o.y=j.y-(o.height-j.height)/2)):[`top`,`bottom`].includes(M)&&(o.width=o.height*e,M===`top`&&(o.x=j.x-(o.width-j.width)/2))}C.value=o,L()},Y=()=>{k&&(Z(),L(),k=!1,M=null)},X=(e,t)=>{if(g.cropAsCircle){let n=C.value.x+C.value.width/2,r=C.value.y+C.value.height/2,i=C.value.width/2,a=e-n,o=t-r;return a*a+o*o<=i*i}else return e>=C.value.x-2&&e<=C.value.x+C.value.width+2&&t>=C.value.y-2&&t<=C.value.y+C.value.height+2},Z=()=>{let e=v.value.width,t=v.value.height;if(C.value.width<50&&(C.value.width=50),C.value.height<50&&(C.value.height=50),g.lockAspectRatio)if(g.cropAsCircle)C.value.height=C.value.width;else{let e=j.width/j.height;C.value.height=C.value.width/e}else if(N){let e=j.width/j.height;C.value.height=C.value.width/e}if(g.cropAsCircle||g.lockAspectRatio){let n=C.value.width/C.value.height;(C.value.width>e||C.value.height>t)&&(C.value.width>C.value.height?(C.value.width=e,C.value.height=e/n):(C.value.height=t,C.value.width=t*n)),C.value.x<0&&(C.value.x=0),C.value.y<0&&(C.value.y=0),C.value.x+C.value.width>e&&(C.value.x=e-C.value.width),C.value.y+C.value.height>t&&(C.value.y=t-C.value.height)}else C.value.x<0&&(C.value.x=0),C.value.y<0&&(C.value.y=0),C.value.width>e&&(C.value.width=e,C.value.x=0),C.value.height>t&&(C.value.height=t,C.value.y=0),C.value.x+C.value.width>e&&(C.value.x=e-C.value.width),C.value.y+C.value.height>t&&(C.value.y=t-C.value.height)},Q=()=>{if(v.value&&y){let e=(v.value.width-b.width*S.x)/2,t=(v.value.height-b.height*S.y)/2,n=(C.value.x-e)/S.x,r=(C.value.y-t)/S.y,i=C.value.width/S.x,a=C.value.height/S.y,o={x:Math.round(n),y:Math.round(r),width:Math.round(i),height:Math.round(a)},s=Math.max(0,Math.min(o.x,b.width)),c=Math.max(0,Math.min(o.y,b.height)),l=Math.min(o.width,b.width-s),u=Math.min(o.height,b.height-c),d=document.createElement(`canvas`);d.width=l,d.height=u;let f=d.getContext(`2d`);f&&(f.drawImage(b,s,c,l,u,0,0,l,u),g.cropAsCircle&&g.outputAsCircle&&(f.globalCompositeOperation=`destination-in`,f.beginPath(),f.arc(l/2,u/2,l/2,0,Math.PI*2),f.closePath(),f.fill(),f.globalCompositeOperation=`source-over`),d.toBlob(e=>{if(e){let t=w.value;t&&URL.revokeObjectURL(t),w.value=URL.createObjectURL(e),T.value=o,_(`crop`,{blob:e,geometry:o})}},`image/jpeg`,.8))}};return(0,r.watch)(()=>g,()=>{Q()},{deep:!0}),(n,i)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,a,[(0,r.createElementVNode)(`div`,{class:`canvas-container`,onMousedown:H,onMousemove:U,onMouseup:W,onMouseleave:W,onTouchstart:H,onTouchmove:U,onTouchend:W},[(0,r.createElementVNode)(`canvas`,{ref_key:`canvas`,ref:v},null,512),((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(P,e=>(0,r.createElementVNode)(`div`,{key:e.name,class:(0,r.normalizeClass)([`resize-handle`,e.name]),style:(0,r.normalizeStyle)(z.value[e.name]),onMousedown:(0,r.withModifiers)(t=>q(t,e.name),[`stop`]),onTouchstart:(0,r.withModifiers)(t=>q(t,e.name),[`stop`])},null,46,o)),64))],32),e.showPreview&&w.value&&T.value?((0,r.openBlock)(),(0,r.createBlock)(t.t,{key:0,class:`cropped-image-preview`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(t.t,{is:`ul`,dir:`col`,justify:`center`,gap:`sm`},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)(`li`,null,[(0,r.createElementVNode)(`strong`,null,(0,r.toDisplayString)(h(`common.X`)),1),(0,r.createTextVNode)(` `+(0,r.toDisplayString)(T.value.x.toFixed(0)),1)]),(0,r.createElementVNode)(`li`,null,[(0,r.createElementVNode)(`strong`,null,(0,r.toDisplayString)(h(`common.Y`)),1),(0,r.createTextVNode)(` `+(0,r.toDisplayString)(T.value.y.toFixed(0)),1)]),(0,r.createElementVNode)(`li`,null,[(0,r.createElementVNode)(`strong`,null,(0,r.toDisplayString)(h(`common.WIDTH`)),1),(0,r.createTextVNode)(` `+(0,r.toDisplayString)(T.value.width.toFixed(0)),1)]),(0,r.createElementVNode)(`li`,null,[(0,r.createElementVNode)(`strong`,null,(0,r.toDisplayString)(h(`common.HEIGHT`)),1),(0,r.createTextVNode)(` `+(0,r.toDisplayString)(T.value.height.toFixed(0)),1)])]),_:1}),(0,r.createElementVNode)(`img`,{src:w.value,alt:h(`common.IMAGE_THUMBNAIL`)},null,8,s)]),_:1})):(0,r.createCommentVNode)(``,!0)]))}}),d=e.t(u,[[`__scopeId`,`data-v-057c9675`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./Grid-BOtE_jXr.cjs`),n=require(`./vue-i18n-ZdR0XDmN.cjs`);let r=require(`vue`);var i=function(e){return e.TopLeft=`top-left`,e.Top=`top`,e.TopRight=`top-right`,e.Right=`right`,e.BottomRight=`bottom-right`,e.Bottom=`bottom`,e.BottomLeft=`bottom-left`,e.Left=`left`,e}(i||{}),a={class:`nb-image-cropper`},o=[`onMousedown`,`onTouchstart`],s=[`src`,`alt`],c=700,l=400,u=(0,r.defineComponent)({__name:`ImageCropper`,props:{image:{},cropAsCircle:{type:Boolean,default:!1},outputAsCircle:{type:Boolean,default:!1},lockAspectRatio:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!1}},emits:[`crop`],setup(e,{emit:u}){let d={en:{X:`X`,Y:`Y`,WIDTH:`Width`,HEIGHT:`Height`,IMAGE_THUMBNAIL:`Cropped preview`},pt:{X:`X`,Y:`Y`,WIDTH:`Largura`,HEIGHT:`Altura`,IMAGE_THUMBNAIL:`Pré-visualização recortada`}},{t:f,te:p,locale:m}=n.t({useScope:`global`});function h(e){if(p(e))return f(e);let t=e.slice(7);return d[String(m.value).toLowerCase().split(`-`)[0]]?.[t]??d.en[t]??e}let g=e,_=u,v=(0,r.ref)(null),y=null,b=new Image,x=null,S={x:1,y:1},C=(0,r.ref)({x:50,y:50,width:200,height:200}),w=(0,r.ref)(null),T=(0,r.ref)(null),E=!1,D=!1,O={x:0,y:0},k=!1,A={x:0,y:0},j={x:0,y:0,width:0,height:0},M=null,N=!1,P=[{name:i.TopLeft},{name:i.Top},{name:i.TopRight},{name:i.Right},{name:i.BottomRight},{name:i.Bottom},{name:i.BottomLeft},{name:i.Left}],F=()=>{if(!g.image){console.error(`No image file provided`);return}x&&=(URL.revokeObjectURL(x),null),b.onload=()=>{let{drawWidth:e,drawHeight:t}=I();if(v.value){v.value.width=e,v.value.height=t;let n=(v.value.width-b.width*S.x)/2,r=(v.value.height-b.height*S.y)/2;if(g.cropAsCircle||g.lockAspectRatio){let e=Math.min(b.width*S.x,b.height*S.y)*.5;C.value={x:n+(b.width*S.x-e)/2,y:r+(b.height*S.y-e)/2,width:e,height:e}}else C.value={x:n+(b.width*S.x*.5-b.width*S.x*.25),y:r+(b.height*S.y*.5-b.height*S.y*.25),width:b.width*S.x*.5,height:b.height*S.y*.5};L(),Q()}},b.onerror=()=>{console.error(`Failed to load image`)},x=URL.createObjectURL(g.image),b.src=x};(0,r.onMounted)(()=>{v.value&&(y=v.value.getContext(`2d`),y&&(y.imageSmoothingEnabled=!0,y.imageSmoothingQuality=`high`),g.image&&F())}),(0,r.onBeforeUnmount)(()=>{x&&=(URL.revokeObjectURL(x),null);let e=w.value;e&&(URL.revokeObjectURL(e),w.value=null)}),(0,r.watch)(()=>g.image,e=>{e&&F()}),(0,r.watch)(()=>[g.cropAsCircle,g.outputAsCircle,g.lockAspectRatio],()=>{v.value&&y&&L()});let I=()=>{let e=b.width/b.height,t=c,n=l;return e>c/l?n=c/e:t=l*e,S.x=t/b.width,S.y=n/b.height,{drawWidth:t,drawHeight:n}},L=()=>{if(y&&v.value){y.clearRect(0,0,v.value.width,v.value.height);let e=(v.value.width-b.width*S.x)/2,t=(v.value.height-b.height*S.y)/2;y.drawImage(b,0,0,b.width,b.height,e,t,b.width*S.x,b.height*S.y),R()}},R=()=>{y&&v.value&&(y.save(),y.beginPath(),g.cropAsCircle?y.arc(C.value.x+C.value.width/2,C.value.y+C.value.height/2,C.value.width/2,0,Math.PI*2):y.rect(C.value.x,C.value.y,C.value.width,C.value.height),y.rect(0,0,v.value.width,v.value.height),y.clip(`evenodd`),y.fillStyle=`rgba(0, 0, 0, 0.5)`,y.fillRect(0,0,v.value.width,v.value.height),y.restore(),y.save(),y.strokeStyle=`rgba(255, 255, 255, 0.8)`,y.lineWidth=1,y.setLineDash([5,5]),y.imageSmoothingEnabled=!1,g.cropAsCircle?(y.beginPath(),y.arc(C.value.x+C.value.width/2,C.value.y+C.value.height/2,C.value.width/2,0,Math.PI*2),y.stroke()):y.strokeRect(C.value.x,C.value.y,C.value.width,C.value.height),y.restore())},z=(0,r.computed)(()=>{if(g.cropAsCircle){let e=C.value.x+C.value.width/2,t=C.value.y+C.value.height/2,n=C.value.width/2;return{"top-left":{left:`${e-n-5}px`,top:`${t-n-5}px`},top:{left:`${e-5}px`,top:`${t-n-5}px`},"top-right":{left:`${e+n-5}px`,top:`${t-n-5}px`},right:{left:`${e+n-5}px`,top:`${t-5}px`},"bottom-right":{left:`${e+n-5}px`,top:`${t+n-5}px`},bottom:{left:`${e-5}px`,top:`${t+n-5}px`},"bottom-left":{left:`${e-n-5}px`,top:`${t+n-5}px`},left:{left:`${e-n-5}px`,top:`${t-5}px`}}}else return{"top-left":{left:`${C.value.x-5}px`,top:`${C.value.y-5}px`},top:{left:`${C.value.x+C.value.width/2-5}px`,top:`${C.value.y-5}px`},"top-right":{left:`${C.value.x+C.value.width-5}px`,top:`${C.value.y-5}px`},right:{left:`${C.value.x+C.value.width-5}px`,top:`${C.value.y+C.value.height/2-5}px`},"bottom-right":{left:`${C.value.x+C.value.width-5}px`,top:`${C.value.y+C.value.height-5}px`},bottom:{left:`${C.value.x+C.value.width/2-5}px`,top:`${C.value.y+C.value.height-5}px`},"bottom-left":{left:`${C.value.x-5}px`,top:`${C.value.y+C.value.height-5}px`},left:{left:`${C.value.x-5}px`,top:`${C.value.y+C.value.height/2-5}px`}}}),B=e=>{if(`touches`in e&&e.touches.length>0){let t=e.touches[0];return{clientX:t.clientX,clientY:t.clientY}}else if(`clientX`in e&&`clientY`in e)return{clientX:e.clientX,clientY:e.clientY};return{clientX:0,clientY:0}},V=e=>{let t=v.value;if(!t)return null;let{clientX:n,clientY:r}=B(e),{left:i,top:a}=t.getBoundingClientRect();return{x:n-i,y:r-a}},H=e=>{e.preventDefault();let t=V(e);if(!t)return;let{x:n,y:r}=t;X(n,r)&&(D=!0,E=!0,O={x:n-C.value.x,y:r-C.value.y})},U=e=>{D?G(e):k&&J(e)},W=()=>{D&&(K(),D=!1,Q()),k&&(Y(),Q()),E=!1,D=!1},G=e=>{if(E){let t=V(e);if(!t)return;let{x:n,y:r}=t;C.value.x=Math.floor(n-O.x),C.value.y=Math.floor(r-O.y),L()}},K=()=>{E&&=(Z(),L(),!1)},q=(e,t)=>{e.preventDefault();let n=V(e);n&&(k=!0,M=t,A={x:n.x,y:n.y},j={...C.value},N=e instanceof MouseEvent&&e.shiftKey)},J=e=>{if(!k)return;if(g.lockAspectRatio&&v.value){let t=V(e);if(!t)return;let{x:n,y:r}=t,i=j.x+j.width/2,a=j.y+j.height/2;if(g.cropAsCircle){let e=Math.max(Math.abs(n-i),Math.abs(r-a)),t=e*2;C.value={x:i-e,y:a-e,width:t,height:t}}else{let e=j.width/j.height,t=Math.abs(n-i),r=Math.max(t*2,50),o=r/e;C.value={x:i-r/2,y:a-o/2,width:r,height:o}}L();return}let t=V(e);if(!t)return;let{x:n,y:r}=t,i=n-A.x,a=r-A.y;N=e instanceof MouseEvent&&e.shiftKey;let o={...j};switch(M){case`top-left`:o.x+=i,o.y+=a,o.width-=i,o.height-=a;break;case`top`:o.y+=a,o.height-=a;break;case`top-right`:o.y+=a,o.width+=i,o.height-=a;break;case`right`:o.width+=i;break;case`bottom-right`:o.width+=i,o.height+=a;break;case`bottom`:o.height+=a;break;case`bottom-left`:o.x+=i,o.width-=i,o.height+=a;break;case`left`:o.x+=i,o.width-=i;break}if(o.width<50&&(o.width=50),o.height<50&&(o.height=50),N&&M){let e=j.width/j.height;[`left`,`right`].includes(M)?(o.height=o.width/e,M===`left`&&(o.y=j.y-(o.height-j.height)/2)):[`top`,`bottom`].includes(M)&&(o.width=o.height*e,M===`top`&&(o.x=j.x-(o.width-j.width)/2))}C.value=o,L()},Y=()=>{k&&(Z(),L(),k=!1,M=null)},X=(e,t)=>{if(g.cropAsCircle){let n=C.value.x+C.value.width/2,r=C.value.y+C.value.height/2,i=C.value.width/2,a=e-n,o=t-r;return a*a+o*o<=i*i}else return e>=C.value.x-2&&e<=C.value.x+C.value.width+2&&t>=C.value.y-2&&t<=C.value.y+C.value.height+2},Z=()=>{let e=v.value.width,t=v.value.height;if(C.value.width<50&&(C.value.width=50),C.value.height<50&&(C.value.height=50),g.lockAspectRatio)if(g.cropAsCircle)C.value.height=C.value.width;else{let e=j.width/j.height;C.value.height=C.value.width/e}else if(N){let e=j.width/j.height;C.value.height=C.value.width/e}if(g.cropAsCircle||g.lockAspectRatio){let n=C.value.width/C.value.height;(C.value.width>e||C.value.height>t)&&(C.value.width>C.value.height?(C.value.width=e,C.value.height=e/n):(C.value.height=t,C.value.width=t*n)),C.value.x<0&&(C.value.x=0),C.value.y<0&&(C.value.y=0),C.value.x+C.value.width>e&&(C.value.x=e-C.value.width),C.value.y+C.value.height>t&&(C.value.y=t-C.value.height)}else C.value.x<0&&(C.value.x=0),C.value.y<0&&(C.value.y=0),C.value.width>e&&(C.value.width=e,C.value.x=0),C.value.height>t&&(C.value.height=t,C.value.y=0),C.value.x+C.value.width>e&&(C.value.x=e-C.value.width),C.value.y+C.value.height>t&&(C.value.y=t-C.value.height)},Q=()=>{if(v.value&&y){let e=(v.value.width-b.width*S.x)/2,t=(v.value.height-b.height*S.y)/2,n=(C.value.x-e)/S.x,r=(C.value.y-t)/S.y,i=C.value.width/S.x,a=C.value.height/S.y,o={x:Math.round(n),y:Math.round(r),width:Math.round(i),height:Math.round(a)},s=Math.max(0,Math.min(o.x,b.width)),c=Math.max(0,Math.min(o.y,b.height)),l=Math.min(o.width,b.width-s),u=Math.min(o.height,b.height-c),d=document.createElement(`canvas`);d.width=l,d.height=u;let f=d.getContext(`2d`);f&&(f.drawImage(b,s,c,l,u,0,0,l,u),g.cropAsCircle&&g.outputAsCircle&&(f.globalCompositeOperation=`destination-in`,f.beginPath(),f.arc(l/2,u/2,l/2,0,Math.PI*2),f.closePath(),f.fill(),f.globalCompositeOperation=`source-over`),d.toBlob(e=>{if(e){let t=w.value;t&&URL.revokeObjectURL(t),w.value=URL.createObjectURL(e),T.value=o,_(`crop`,{blob:e,geometry:o})}},`image/jpeg`,.8))}};return(0,r.watch)(()=>g,()=>{Q()},{deep:!0}),(n,i)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,a,[(0,r.createElementVNode)(`div`,{class:`canvas-container`,onMousedown:H,onMousemove:U,onMouseup:W,onMouseleave:W,onTouchstart:H,onTouchmove:U,onTouchend:W},[(0,r.createElementVNode)(`canvas`,{ref_key:`canvas`,ref:v},null,512),((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(P,e=>(0,r.createElementVNode)(`div`,{key:e.name,class:(0,r.normalizeClass)([`resize-handle`,e.name]),style:(0,r.normalizeStyle)(z.value[e.name]),onMousedown:(0,r.withModifiers)(t=>q(t,e.name),[`stop`]),onTouchstart:(0,r.withModifiers)(t=>q(t,e.name),[`stop`])},null,46,o)),64))],32),e.showPreview&&w.value&&T.value?((0,r.openBlock)(),(0,r.createBlock)(t.t,{key:0,class:`cropped-image-preview`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(t.t,{is:`ul`,dir:`col`,justify:`center`,gap:`sm`},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)(`li`,null,[(0,r.createElementVNode)(`strong`,null,(0,r.toDisplayString)(h(`common.X`)),1),(0,r.createTextVNode)(` `+(0,r.toDisplayString)(T.value.x.toFixed(0)),1)]),(0,r.createElementVNode)(`li`,null,[(0,r.createElementVNode)(`strong`,null,(0,r.toDisplayString)(h(`common.Y`)),1),(0,r.createTextVNode)(` `+(0,r.toDisplayString)(T.value.y.toFixed(0)),1)]),(0,r.createElementVNode)(`li`,null,[(0,r.createElementVNode)(`strong`,null,(0,r.toDisplayString)(h(`common.WIDTH`)),1),(0,r.createTextVNode)(` `+(0,r.toDisplayString)(T.value.width.toFixed(0)),1)]),(0,r.createElementVNode)(`li`,null,[(0,r.createElementVNode)(`strong`,null,(0,r.toDisplayString)(h(`common.HEIGHT`)),1),(0,r.createTextVNode)(` `+(0,r.toDisplayString)(T.value.height.toFixed(0)),1)])]),_:1}),(0,r.createElementVNode)(`img`,{src:w.value,alt:h(`common.IMAGE_THUMBNAIL`)},null,8,s)]),_:1})):(0,r.createCommentVNode)(``,!0)]))}}),d=e.t(u,[[`__scopeId`,`data-v-057c9675`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
2
- import { t } from "./Grid-jlgLOwom.js";
3
- import { t as n } from "./vue-i18n-DSR949qU.js";
2
+ import { t } from "./Grid-B7d8x0tA.js";
3
+ import { t as n } from "./vue-i18n-DaD-yZmK.js";
4
4
  import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, normalizeStyle as p, onBeforeUnmount as ee, onMounted as te, openBlock as m, ref as h, renderList as ne, toDisplayString as g, watch as _, withCtx as v, withModifiers as y } from "vue";
5
5
  //#region src/components/ImageCropper.d.ts
6
6
  var b = /* @__PURE__ */ function(e) {
@@ -0,0 +1 @@
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Button-BHFtgOXA.cjs`),n=require(`./Icon-CssV4E2-.cjs`),r=require(`./composables/useNbStrings.composable.cjs`),i=require(`./Spinner-BTN06wsE.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/plus`);o=e.n(o);let s=require(`@nubisco/ui/icons/trash`);s=e.n(s);var c=[`aria-label`,`aria-busy`,`disabled`],l=[`src`,`alt`],u={key:1,class:`nb-image-picker__empty`},d={class:`nb-image-picker__label`},f={key:2,class:`nb-image-picker__drop`},p={key:0,class:`nb-image-picker__loading`},m=[`accept`,`disabled`],h=(0,a.defineComponent)({__name:`ImagePicker`,props:{src:{default:``},alt:{default:``},label:{default:void 0},dropLabel:{default:void 0},replaceLabel:{default:void 0},removeLabel:{default:void 0},accept:{default:`image/*`},maxSize:{default:void 0},removable:{type:Boolean,default:!0},removeDisabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:`10rem`},ratio:{default:`1 / 1`},fit:{default:`contain`},id:{}},emits:[`pick`,`remove`,`reject`],setup(e,{expose:h,emit:g}){let _=e,v=r.useNbStrings(),y=(0,a.computed)(()=>({add:_.label??v.value.imagePickerAdd,drop:_.dropLabel??v.value.imagePickerDrop,replace:_.replaceLabel??v.value.imagePickerReplace,remove:_.removeLabel??v.value.imagePickerRemove})),b=g,x=(0,a.ref)(null),S=(0,a.ref)(!1),C=0,w=(0,a.computed)(()=>!!_.src),T=(0,a.computed)(()=>_.disabled||_.loading),E=(0,a.computed)(()=>({"--nb-image-picker-size":typeof _.size==`number`?`${_.size}px`:_.size,"--nb-image-picker-ratio":_.ratio,"--nb-image-picker-fit":_.fit}));(0,a.watch)(T,e=>{e&&(C=0,S.value=!1)});function D(){T.value||x.value?.click()}function O(e){let t=_.accept.split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean);if(t.length===0)return!0;let n=e.name.toLowerCase(),r=e.type.toLowerCase();return t.some(e=>e.startsWith(`.`)?n.endsWith(e):e.endsWith(`/*`)?r.startsWith(e.slice(0,-1)):r===e)}function k(e){if(!O(e))return b(`reject`,{file:e,reason:`type`});if(_.maxSize&&e.size>_.maxSize)return b(`reject`,{file:e,reason:`size`});b(`pick`,e)}function A(e){let t=e.target,n=t.files?.[0];t.value=``,n&&!T.value&&k(n)}function j(){T.value||(C++,S.value=!0)}function M(){C--,C<=0&&(C=0,S.value=!1)}function N(e){T.value&&e.dataTransfer&&(e.dataTransfer.dropEffect=`none`)}function P(e){if(C=0,S.value=!1,T.value)return;let t=e.dataTransfer?.files?.[0];t&&k(t)}return h({open:D}),(r,h)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)([`nb-image-picker`,{"nb-image-picker--filled":w.value,"nb-image-picker--dragging":S.value,"nb-image-picker--loading":e.loading,"nb-image-picker--disabled":e.disabled}]),style:(0,a.normalizeStyle)(E.value),onDragenter:(0,a.withModifiers)(j,[`prevent`]),onDragover:(0,a.withModifiers)(N,[`prevent`]),onDragleave:(0,a.withModifiers)(M,[`prevent`]),onDrop:(0,a.withModifiers)(P,[`prevent`])},[(0,a.createElementVNode)(`button`,{type:`button`,class:`nb-image-picker__surface`,"aria-label":w.value?y.value.replace:y.value.add,"aria-busy":e.loading||void 0,disabled:e.disabled||e.loading,onClick:D},[w.value?((0,a.openBlock)(),(0,a.createElementBlock)(`img`,{key:0,class:`nb-image-picker__image`,src:e.src,alt:e.alt},null,8,l)):((0,a.openBlock)(),(0,a.createElementBlock)(`span`,u,[(0,a.createVNode)(n.t,{name:o,size:20,"aria-hidden":`true`}),(0,a.createElementVNode)(`span`,d,(0,a.toDisplayString)(y.value.add),1)])),S.value?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,f,(0,a.toDisplayString)(y.value.drop),1)):(0,a.createCommentVNode)(``,!0)],8,c),e.loading?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,p,[(0,a.createVNode)(i.t,{size:`md`,decorative:``})])):(0,a.createCommentVNode)(``,!0),w.value&&e.removable?((0,a.openBlock)(),(0,a.createBlock)(t.t,{key:1,class:`nb-image-picker__remove`,variant:`ghost`,size:`xs`,icon:s,label:y.value.remove,"tooltip-position":`left`,disabled:e.removeDisabled||e.disabled||e.loading,onClick:h[0]||=(0,a.withModifiers)(e=>b(`remove`),[`stop`])},null,8,[`label`,`disabled`])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`input`,{ref_key:`inputRef`,ref:x,type:`file`,class:`nb-image-picker__input`,tabindex:`-1`,"aria-hidden":`true`,accept:e.accept,disabled:e.disabled||e.loading,onChange:A},null,40,m)],38))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});