@nextcloud/vue 9.0.0-rc.2 → 9.0.0-rc.3

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 (318) hide show
  1. package/CHANGELOG.md +84 -3
  2. package/dist/assets/{NcActionButton-B2G7zsju.css → NcActionButton-Dz2EBAuD.css} +20 -17
  3. package/dist/assets/{NcActionInput-SoC93uat.css → NcActionInput-BA67jS1l.css} +62 -62
  4. package/dist/assets/{NcAppContent-Di-SbMxO.css → NcAppContent-Zgn8-wsd.css} +19 -19
  5. package/dist/assets/{NcAppNavigation-BXItV5BV.css → NcAppNavigation-C6-8ErA_.css} +12 -12
  6. package/dist/assets/{NcAppNavigationItem-Cq6ZYdmT.css → NcAppNavigationItem-B27WFnUV.css} +35 -31
  7. package/dist/assets/{NcAppNavigationNewItem-CsqJ6c8v.css → NcAppNavigationNewItem-BrLekTMb.css} +37 -33
  8. package/dist/assets/{NcAppNavigationSettings-BDc6Mtek.css → NcAppNavigationSettings-B0I7HR1V.css} +14 -5
  9. package/dist/assets/NcAppNavigationSpacer-LST5uYYS.css +6 -0
  10. package/dist/assets/{NcAppNavigationToggle-DnTKNSH7.css → NcAppNavigationToggle-M0oDbwAS.css} +3 -3
  11. package/dist/assets/{NcAppSettingsDialog-DMWosHw9.css → NcAppSettingsDialog-DfBJYMdm.css} +10 -10
  12. package/dist/assets/{NcAppSidebar-exl90fRm.css → NcAppSidebar-PG3qIdkG.css} +44 -44
  13. package/dist/assets/{NcAvatar-B3wk2Xxl.css → NcAvatar-C01qP9VA.css} +24 -24
  14. package/dist/assets/{NcButton-DbE0wInI.css → NcButton-Cpw_vPKw.css} +49 -49
  15. package/dist/assets/{NcCheckboxRadioSwitch-sqQXUuVB.css → NcCheckboxRadioSwitch-DKVMIvxJ.css} +47 -44
  16. package/dist/assets/{NcChip-VsVAGaG6.css → NcChip-rGBYOr-Q.css} +9 -9
  17. package/dist/assets/{NcColorPicker-Clz7MjCA.css → NcColorPicker-DgByWqzp.css} +28 -28
  18. package/dist/assets/{NcContent-cRwic6r5.css → NcContent-C12jLe34.css} +9 -9
  19. package/dist/assets/{NcDashboardWidgetItem-B8_6-_k8.css → NcDashboardWidgetItem-V_jSEH-7.css} +12 -12
  20. package/dist/assets/{NcDateTimePickerNative-CeuS8Oeg.css → NcDateTimePickerNative-BizATZfE.css} +13 -13
  21. package/dist/assets/{NcDialog-bP7Jt0ZE.css → NcDialog-Ch6FuMQo.css} +15 -15
  22. package/dist/assets/{NcEllipsisedOption-D-IsjXWc.css → NcEllipsisedOption-BNLv_eyF.css} +5 -5
  23. package/dist/assets/{NcEmojiPicker-DnMU8iEd.css → NcEmojiPicker-kxoeGEM5.css} +4 -4
  24. package/dist/assets/{NcHeaderMenu-zo6kw_jn.css → NcHeaderMenu-BAKwNTFx.css} +11 -11
  25. package/dist/assets/{NcInputField-B8J2uFD4.css → NcInputField-CvP4PFAO.css} +44 -42
  26. package/dist/assets/{NcListItem-9eCenovm.css → NcListItem-ff6bfJFE.css} +44 -44
  27. package/dist/assets/{NcListItemIcon-DjEDwxRp.css → NcListItemIcon-BVhiRo5R.css} +13 -13
  28. package/dist/assets/{NcLoadingIcon-x1d284UU.css → NcLoadingIcon-DlDKflKI.css} +2 -2
  29. package/dist/assets/{NcModal-DaHROv08.css → NcModal-BMVfhs7c.css} +61 -61
  30. package/dist/assets/{NcNoteCard-C6xb7vi0.css → NcNoteCard-C387qsQO.css} +11 -8
  31. package/dist/assets/{NcPasswordField-z9gbKnov.css → NcPasswordField-DVV6Eiwf.css} +2 -2
  32. package/dist/assets/{NcRichText-GnQKcHYO.css → NcRichText-Fi_WAwSP.css} +86 -83
  33. package/dist/assets/{NcTextArea-DHr9DPOJ.css → NcTextArea-DoBYU3IE.css} +20 -20
  34. package/dist/assets/{NcUserBubble-tSs2XTDQ.css → NcUserBubble-CqaL0Oxv.css} +8 -8
  35. package/dist/assets/{referencePickerModal-DAD-jv3F.css → referencePickerModal-CUVCkTmZ.css} +19 -19
  36. package/dist/chunks/{ArrowLeft-CanHG70H.mjs → ArrowLeft-BiZLJltw.mjs} +3 -3
  37. package/dist/chunks/{ArrowLeft-CanHG70H.mjs.map → ArrowLeft-BiZLJltw.mjs.map} +1 -1
  38. package/dist/chunks/{DotsHorizontal-AMVAlTNH.mjs → DotsHorizontal-BJ_GCGpi.mjs} +3 -3
  39. package/dist/chunks/{DotsHorizontal-AMVAlTNH.mjs.map → DotsHorizontal-BJ_GCGpi.mjs.map} +1 -1
  40. package/dist/chunks/{NcActionButton-CnX0dQzz.mjs → NcActionButton-BECWgEPr.mjs} +4 -4
  41. package/dist/chunks/{NcActionButton-CnX0dQzz.mjs.map → NcActionButton-BECWgEPr.mjs.map} +1 -1
  42. package/dist/chunks/{NcActionButtonGroup-3Da8b3EI.mjs → NcActionButtonGroup-e4F30E5Z.mjs} +2 -2
  43. package/dist/chunks/{NcActionButtonGroup-3Da8b3EI.mjs.map → NcActionButtonGroup-e4F30E5Z.mjs.map} +1 -1
  44. package/dist/chunks/{NcActionInput-DeFy255L.mjs → NcActionInput-DYLqm7AP.mjs} +12 -12
  45. package/dist/chunks/{NcActionInput-DeFy255L.mjs.map → NcActionInput-DYLqm7AP.mjs.map} +1 -1
  46. package/dist/chunks/{NcActionTextEditable-B7nemAOJ.mjs → NcActionTextEditable-ByA0z9nO.mjs} +2 -2
  47. package/dist/chunks/{NcActionTextEditable-B7nemAOJ.mjs.map → NcActionTextEditable-ByA0z9nO.mjs.map} +1 -1
  48. package/dist/chunks/{NcActions-DS88I6qk.mjs → NcActions-iwG1Tj-I.mjs} +6 -6
  49. package/dist/chunks/{NcActions-DS88I6qk.mjs.map → NcActions-iwG1Tj-I.mjs.map} +1 -1
  50. package/dist/chunks/{NcAppContent-DRhM7Gyz.mjs → NcAppContent-B2qF2-YG.mjs} +9 -7
  51. package/dist/chunks/NcAppContent-B2qF2-YG.mjs.map +1 -0
  52. package/dist/chunks/{NcAppNavigation-BVXVi9JQ.mjs → NcAppNavigation-JoRJnwqf.mjs} +4 -4
  53. package/dist/chunks/{NcAppNavigation-BVXVi9JQ.mjs.map → NcAppNavigation-JoRJnwqf.mjs.map} +1 -1
  54. package/dist/chunks/{NcAppNavigationCaption-DkiIEk6r.mjs → NcAppNavigationCaption-DhwvNbx1.mjs} +2 -2
  55. package/dist/chunks/{NcAppNavigationCaption-DkiIEk6r.mjs.map → NcAppNavigationCaption-DhwvNbx1.mjs.map} +1 -1
  56. package/dist/chunks/{NcAppNavigationItem-s3GC1n4o.mjs → NcAppNavigationItem-B51Guztu.mjs} +10 -10
  57. package/dist/chunks/{NcAppNavigationItem-s3GC1n4o.mjs.map → NcAppNavigationItem-B51Guztu.mjs.map} +1 -1
  58. package/dist/chunks/{NcAppNavigationNew-BUQgcKdv.mjs → NcAppNavigationNew-CMjaAY5A.mjs} +2 -2
  59. package/dist/chunks/{NcAppNavigationNew-BUQgcKdv.mjs.map → NcAppNavigationNew-CMjaAY5A.mjs.map} +1 -1
  60. package/dist/chunks/{NcAppNavigationNewItem-D1GWsi8R.mjs → NcAppNavigationNewItem-DyzpvBOb.mjs} +5 -5
  61. package/dist/chunks/{NcAppNavigationNewItem-D1GWsi8R.mjs.map → NcAppNavigationNewItem-DyzpvBOb.mjs.map} +1 -1
  62. package/dist/chunks/{NcAppNavigationSearch-Cy0s4XWp.mjs → NcAppNavigationSearch-CvHp92E-.mjs} +3 -3
  63. package/dist/chunks/{NcAppNavigationSearch-Cy0s4XWp.mjs.map → NcAppNavigationSearch-CvHp92E-.mjs.map} +1 -1
  64. package/dist/chunks/{NcAppNavigationSettings-GeCb9tlR.mjs → NcAppNavigationSettings-iJ84_lwr.mjs} +16 -10
  65. package/dist/chunks/{NcAppNavigationSettings-GeCb9tlR.mjs.map → NcAppNavigationSettings-iJ84_lwr.mjs.map} +1 -1
  66. package/dist/chunks/NcAppNavigationSpacer-BvkBfuVw.mjs +17 -0
  67. package/dist/chunks/NcAppNavigationSpacer-BvkBfuVw.mjs.map +1 -0
  68. package/dist/chunks/{NcAppNavigationToggle-CFw3W3_o.mjs → NcAppNavigationToggle-D3UGt5TV.mjs} +46 -68
  69. package/dist/chunks/NcAppNavigationToggle-D3UGt5TV.mjs.map +1 -0
  70. package/dist/chunks/{NcAppSettingsDialog-CBLZvdnK.mjs → NcAppSettingsDialog-CQnZ29WZ.mjs} +6 -6
  71. package/dist/chunks/{NcAppSettingsDialog-CBLZvdnK.mjs.map → NcAppSettingsDialog-CQnZ29WZ.mjs.map} +1 -1
  72. package/dist/chunks/{NcAppSidebar-BomlW59S.mjs → NcAppSidebar-QEkYs8pt.mjs} +8 -8
  73. package/dist/chunks/{NcAppSidebar-BomlW59S.mjs.map → NcAppSidebar-QEkYs8pt.mjs.map} +1 -1
  74. package/dist/chunks/{NcAvatar-CSk-1oFe.mjs → NcAvatar-BadoF6cb.mjs} +13 -12
  75. package/dist/chunks/{NcAvatar-CSk-1oFe.mjs.map → NcAvatar-BadoF6cb.mjs.map} +1 -1
  76. package/dist/chunks/{NcBreadcrumb-Bvsnecwa.mjs → NcBreadcrumb-BH4XQJ8K.mjs} +3 -3
  77. package/dist/chunks/{NcBreadcrumb-Bvsnecwa.mjs.map → NcBreadcrumb-BH4XQJ8K.mjs.map} +1 -1
  78. package/dist/chunks/{NcBreadcrumbs-DWU2ZRkM.mjs → NcBreadcrumbs-DyWyrhrJ.mjs} +4 -4
  79. package/dist/chunks/{NcBreadcrumbs-DWU2ZRkM.mjs.map → NcBreadcrumbs-DyWyrhrJ.mjs.map} +1 -1
  80. package/dist/chunks/{NcButton-Byg8-ta1.mjs → NcButton-yN4vYgXb.mjs} +3 -3
  81. package/dist/chunks/{NcButton-Byg8-ta1.mjs.map → NcButton-yN4vYgXb.mjs.map} +1 -1
  82. package/dist/chunks/{NcCheckboxRadioSwitch-Ca1ouh22.mjs → NcCheckboxRadioSwitch-Di0xbf6d.mjs} +8 -8
  83. package/dist/chunks/NcCheckboxRadioSwitch-Di0xbf6d.mjs.map +1 -0
  84. package/dist/chunks/{NcChip-Cl6RfDoK.mjs → NcChip-DfDlpsAh.mjs} +7 -7
  85. package/dist/chunks/{NcChip-Cl6RfDoK.mjs.map → NcChip-DfDlpsAh.mjs.map} +1 -1
  86. package/dist/chunks/{NcCollectionList-CxzQkCFq.mjs → NcCollectionList-B2PzNHzw.mjs} +6 -6
  87. package/dist/chunks/{NcCollectionList-CxzQkCFq.mjs.map → NcCollectionList-B2PzNHzw.mjs.map} +1 -1
  88. package/dist/chunks/NcColorPicker-CoteX_0P.mjs +182 -0
  89. package/dist/chunks/NcColorPicker-CoteX_0P.mjs.map +1 -0
  90. package/dist/chunks/{NcContent-DtM8j8ub.mjs → NcContent-BImnEnMI.mjs} +81 -112
  91. package/dist/chunks/{NcContent-DtM8j8ub.mjs.map → NcContent-BImnEnMI.mjs.map} +1 -1
  92. package/dist/chunks/{NcDashboardWidget-uBobynyZ.mjs → NcDashboardWidget-DJtdcW-W.mjs} +4 -4
  93. package/dist/chunks/{NcDashboardWidget-uBobynyZ.mjs.map → NcDashboardWidget-DJtdcW-W.mjs.map} +1 -1
  94. package/dist/chunks/{NcDashboardWidgetItem-DnI9uLf1.mjs → NcDashboardWidgetItem-CZaWF40u.mjs} +8 -8
  95. package/dist/chunks/NcDashboardWidgetItem-CZaWF40u.mjs.map +1 -0
  96. package/dist/chunks/{NcDateTime.vue_vue_type_script_setup_true_lang-BD-rj6Dr.mjs → NcDateTime.vue_vue_type_script_setup_true_lang-C2VbacBQ.mjs} +2 -2
  97. package/dist/chunks/{NcDateTime.vue_vue_type_script_setup_true_lang-BD-rj6Dr.mjs.map → NcDateTime.vue_vue_type_script_setup_true_lang-C2VbacBQ.mjs.map} +1 -1
  98. package/dist/chunks/{NcDateTimePicker-DYNOGc6A.mjs → NcDateTimePicker-BB--HQog.mjs} +4 -4
  99. package/dist/chunks/{NcDateTimePicker-DYNOGc6A.mjs.map → NcDateTimePicker-BB--HQog.mjs.map} +1 -1
  100. package/dist/chunks/NcDateTimePickerNative-DaPzFiYH.mjs +100 -0
  101. package/dist/chunks/NcDateTimePickerNative-DaPzFiYH.mjs.map +1 -0
  102. package/dist/chunks/NcDialog-CXVaeWJf.mjs +169 -0
  103. package/dist/chunks/NcDialog-CXVaeWJf.mjs.map +1 -0
  104. package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-DAZ2Budh.mjs → NcDialogButton.vue_vue_type_script_setup_true_lang-DSKWXzqG.mjs} +4 -4
  105. package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-DAZ2Budh.mjs.map → NcDialogButton.vue_vue_type_script_setup_true_lang-DSKWXzqG.mjs.map} +1 -1
  106. package/dist/chunks/{NcEllipsisedOption-4k07kvEr.mjs → NcEllipsisedOption-C8uNDC-j.mjs} +4 -4
  107. package/dist/chunks/{NcEllipsisedOption-4k07kvEr.mjs.map → NcEllipsisedOption-C8uNDC-j.mjs.map} +1 -1
  108. package/dist/chunks/{NcEmojiPicker-lhuMMbDy.mjs → NcEmojiPicker-BGO0v-D5.mjs} +11 -11
  109. package/dist/chunks/{NcEmojiPicker-lhuMMbDy.mjs.map → NcEmojiPicker-BGO0v-D5.mjs.map} +1 -1
  110. package/dist/chunks/{NcHeaderButton-BXfTpkIm.mjs → NcHeaderButton-BTZ1WNux.mjs} +2 -2
  111. package/dist/chunks/{NcHeaderButton-BXfTpkIm.mjs.map → NcHeaderButton-BTZ1WNux.mjs.map} +1 -1
  112. package/dist/chunks/{NcHeaderMenu-o9FmNBI5.mjs → NcHeaderMenu-DmpJfS86.mjs} +5 -5
  113. package/dist/chunks/NcHeaderMenu-DmpJfS86.mjs.map +1 -0
  114. package/dist/chunks/{NcHighlight-Cu4UfEEO.mjs → NcHighlight.vue_vue_type_script_lang-DnWQDM_2.mjs} +5 -9
  115. package/dist/chunks/NcHighlight.vue_vue_type_script_lang-DnWQDM_2.mjs.map +1 -0
  116. package/dist/chunks/{NcInputConfirmCancel-C1K1gyQA.mjs → NcInputConfirmCancel-B7gAZ7U1.mjs} +3 -3
  117. package/dist/chunks/{NcInputConfirmCancel-C1K1gyQA.mjs.map → NcInputConfirmCancel-B7gAZ7U1.mjs.map} +1 -1
  118. package/dist/chunks/NcInputField-DH5ybroK.mjs +162 -0
  119. package/dist/chunks/NcInputField-DH5ybroK.mjs.map +1 -0
  120. package/dist/chunks/{NcListItem-C2LlJgjL.mjs → NcListItem-50hUlVlb.mjs} +8 -8
  121. package/dist/chunks/{NcListItem-C2LlJgjL.mjs.map → NcListItem-50hUlVlb.mjs.map} +1 -1
  122. package/dist/chunks/{NcListItemIcon-5ms0eK3w.mjs → NcListItemIcon-BGEA45de.mjs} +5 -5
  123. package/dist/chunks/{NcListItemIcon-5ms0eK3w.mjs.map → NcListItemIcon-BGEA45de.mjs.map} +1 -1
  124. package/dist/chunks/NcLoadingIcon-Dm3kRPrf.mjs +57 -0
  125. package/dist/chunks/NcLoadingIcon-Dm3kRPrf.mjs.map +1 -0
  126. package/dist/chunks/{NcModal-BisVxXe_.mjs → NcModal-CWRw1hyF.mjs} +12 -17
  127. package/dist/chunks/NcModal-CWRw1hyF.mjs.map +1 -0
  128. package/dist/chunks/NcNoteCard-DmhVICGO.mjs +61 -0
  129. package/dist/chunks/NcNoteCard-DmhVICGO.mjs.map +1 -0
  130. package/dist/chunks/NcPasswordField-DY-wDP9m.mjs +211 -0
  131. package/dist/chunks/NcPasswordField-DY-wDP9m.mjs.map +1 -0
  132. package/dist/chunks/{NcPopover-MsWUAvsI.mjs → NcPopover-BUlWWIxc.mjs} +3 -3
  133. package/dist/chunks/{NcPopover-MsWUAvsI.mjs.map → NcPopover-BUlWWIxc.mjs.map} +1 -1
  134. package/dist/chunks/{NcRelatedResourcesPanel-CShyi9lg.mjs → NcRelatedResourcesPanel-BUasditW.mjs} +4 -4
  135. package/dist/chunks/{NcRelatedResourcesPanel-CShyi9lg.mjs.map → NcRelatedResourcesPanel-BUasditW.mjs.map} +1 -1
  136. package/dist/chunks/{NcRichContenteditable-DgH9H1qf.mjs → NcRichContenteditable-CGP8KN41.mjs} +15 -13
  137. package/dist/chunks/{NcRichContenteditable-DgH9H1qf.mjs.map → NcRichContenteditable-CGP8KN41.mjs.map} +1 -1
  138. package/dist/chunks/{NcRichText-BkKK1moX.mjs → NcRichText-DDllQirJ.mjs} +10 -6
  139. package/dist/chunks/{NcRichText-BkKK1moX.mjs.map → NcRichText-DDllQirJ.mjs.map} +1 -1
  140. package/dist/chunks/{NcSelect-BSa2kSPW.mjs → NcSelect-Bkg2rrDQ.mjs} +4 -4
  141. package/dist/chunks/{NcSelect-BSa2kSPW.mjs.map → NcSelect-Bkg2rrDQ.mjs.map} +1 -1
  142. package/dist/chunks/{NcSelectTags-BW0QroJV.mjs → NcSelectTags-gJMICSS2.mjs} +4 -4
  143. package/dist/chunks/{NcSelectTags-BW0QroJV.mjs.map → NcSelectTags-gJMICSS2.mjs.map} +1 -1
  144. package/dist/chunks/{NcSelectUsers-Bhx9k-0v.mjs → NcSelectUsers-mRdIiG7L.mjs} +3 -3
  145. package/dist/chunks/{NcSelectUsers-Bhx9k-0v.mjs.map → NcSelectUsers-mRdIiG7L.mjs.map} +1 -1
  146. package/dist/chunks/{NcSettingsInputText-CrOqaL-x.mjs → NcSettingsInputText-P8cEi0aP.mjs} +3 -3
  147. package/dist/chunks/{NcSettingsInputText-CrOqaL-x.mjs.map → NcSettingsInputText-P8cEi0aP.mjs.map} +1 -1
  148. package/dist/chunks/{NcSettingsSection-D6ShpfeY.mjs → NcSettingsSection-DkDLjL_G.mjs} +2 -2
  149. package/dist/chunks/{NcSettingsSection-D6ShpfeY.mjs.map → NcSettingsSection-DkDLjL_G.mjs.map} +1 -1
  150. package/dist/chunks/{NcSettingsSelectGroup-DpNxkoZ2.mjs → NcSettingsSelectGroup-BvYxv8aw.mjs} +4 -4
  151. package/dist/chunks/{NcSettingsSelectGroup-DpNxkoZ2.mjs.map → NcSettingsSelectGroup-BvYxv8aw.mjs.map} +1 -1
  152. package/dist/chunks/NcTextArea-D4hJqp6W.mjs +122 -0
  153. package/dist/chunks/NcTextArea-D4hJqp6W.mjs.map +1 -0
  154. package/dist/chunks/NcTextField.vue_vue_type_script_setup_true_lang-BggEO9Jn.mjs +92 -0
  155. package/dist/chunks/NcTextField.vue_vue_type_script_setup_true_lang-BggEO9Jn.mjs.map +1 -0
  156. package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-T3gPr-FV.mjs → NcTimezonePicker.vue_vue_type_script_setup_true_lang-C7loAI0C.mjs} +3 -3
  157. package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-T3gPr-FV.mjs.map → NcTimezonePicker.vue_vue_type_script_setup_true_lang-C7loAI0C.mjs.map} +1 -1
  158. package/dist/chunks/NcUserBubble-CKN4C4kP.mjs +136 -0
  159. package/dist/chunks/NcUserBubble-CKN4C4kP.mjs.map +1 -0
  160. package/dist/chunks/{NcUserStatusIcon-CtOZd90o.mjs → NcUserStatusIcon-BX9ILG2r.mjs} +2 -2
  161. package/dist/chunks/{NcUserStatusIcon-CtOZd90o.mjs.map → NcUserStatusIcon-BX9ILG2r.mjs.map} +1 -1
  162. package/dist/chunks/{_l10n-Bg-fZ9R0.mjs → _l10n-B4AgnzNC.mjs} +59 -69
  163. package/dist/chunks/_l10n-B4AgnzNC.mjs.map +1 -0
  164. package/dist/chunks/{colors-BPGhD2C5.mjs → colors-fFK6HkHZ.mjs} +2 -2
  165. package/dist/chunks/{colors-BPGhD2C5.mjs.map → colors-fFK6HkHZ.mjs.map} +1 -1
  166. package/dist/chunks/mdi-CWpCzTmH.mjs +33 -0
  167. package/dist/chunks/{mdi-CR-3gwdl.mjs.map → mdi-CWpCzTmH.mjs.map} +1 -1
  168. package/dist/chunks/{referencePickerModal-Dw1szWUR.mjs → referencePickerModal-uLIBRHIc.mjs} +19 -19
  169. package/dist/chunks/{referencePickerModal-Dw1szWUR.mjs.map → referencePickerModal-uLIBRHIc.mjs.map} +1 -1
  170. package/dist/chunks/{useFormatDateTime-L411ysPm.mjs → useFormatDateTime-DmnI1ENQ.mjs} +2 -2
  171. package/dist/chunks/{useFormatDateTime-L411ysPm.mjs.map → useFormatDateTime-DmnI1ENQ.mjs.map} +1 -1
  172. package/dist/chunks/{usernameToColor-CuTR6O_B.mjs → usernameToColor-Bik5PNni.mjs} +2 -2
  173. package/dist/chunks/{usernameToColor-CuTR6O_B.mjs.map → usernameToColor-Bik5PNni.mjs.map} +1 -1
  174. package/dist/components/NcActionButton/index.mjs +1 -1
  175. package/dist/components/NcActionButtonGroup/index.mjs +1 -1
  176. package/dist/components/NcActionCheckbox/NcActionCheckbox.vue.d.ts +1 -1
  177. package/dist/components/NcActionInput/index.mjs +1 -1
  178. package/dist/components/NcActionRadio/NcActionRadio.vue.d.ts +1 -1
  179. package/dist/components/NcActionTextEditable/index.mjs +1 -1
  180. package/dist/components/NcActions/index.mjs +1 -1
  181. package/dist/components/NcAppContent/NcAppContent.vue.d.ts +2 -1
  182. package/dist/components/NcAppContent/index.mjs +1 -1
  183. package/dist/components/NcAppNavigation/NcAppNavigation.vue.d.ts +66 -0
  184. package/dist/components/NcAppNavigation/index.mjs +1 -1
  185. package/dist/components/NcAppNavigationCaption/index.mjs +1 -1
  186. package/dist/components/NcAppNavigationItem/index.mjs +1 -1
  187. package/dist/components/NcAppNavigationNew/index.mjs +1 -1
  188. package/dist/components/NcAppNavigationNewItem/index.mjs +1 -1
  189. package/dist/components/NcAppNavigationSearch/NcAppNavigationSearch.vue.d.ts +275 -0
  190. package/dist/components/NcAppNavigationSearch/index.mjs +1 -1
  191. package/dist/components/NcAppNavigationSettings/index.mjs +1 -1
  192. package/dist/components/NcAppNavigationSpacer/NcAppNavigationSpacer.vue.d.ts +1 -1
  193. package/dist/components/NcAppNavigationSpacer/index.d.ts +4 -0
  194. package/dist/components/NcAppNavigationSpacer/index.mjs +1 -1
  195. package/dist/components/NcAppNavigationToggle/NcAppNavigationToggle.vue.d.ts +9 -0
  196. package/dist/components/NcAppNavigationToggle/index.d.ts +5 -3
  197. package/dist/components/NcAppNavigationToggle/index.mjs +2 -3
  198. package/dist/components/NcAppSettingsDialog/index.mjs +1 -1
  199. package/dist/components/NcAppSidebar/index.mjs +1 -1
  200. package/dist/components/NcAvatar/index.mjs +1 -1
  201. package/dist/components/NcBreadcrumb/index.mjs +1 -1
  202. package/dist/components/NcBreadcrumbs/index.mjs +1 -1
  203. package/dist/components/NcButton/index.mjs +1 -1
  204. package/dist/components/NcCheckboxRadioSwitch/index.mjs +1 -1
  205. package/dist/components/NcChip/NcChip.vue.d.ts +2 -2
  206. package/dist/components/NcChip/index.mjs +1 -1
  207. package/dist/components/NcCollectionList/index.mjs +1 -1
  208. package/dist/components/NcColorPicker/NcColorPicker.vue.d.ts +54 -1
  209. package/dist/components/NcColorPicker/index.d.ts +4 -0
  210. package/dist/components/NcColorPicker/index.mjs +1 -1
  211. package/dist/components/NcContent/NcContent.vue.d.ts +33 -0
  212. package/dist/components/NcContent/index.d.ts +4 -0
  213. package/dist/components/NcContent/index.mjs +1 -1
  214. package/dist/components/NcDashboardWidget/index.mjs +1 -1
  215. package/dist/components/NcDashboardWidgetItem/index.mjs +1 -1
  216. package/dist/components/NcDateTime/index.mjs +1 -1
  217. package/dist/components/NcDateTimePicker/index.mjs +1 -1
  218. package/dist/components/NcDateTimePickerNative/NcDateTimePickerNative.vue.d.ts +29 -151
  219. package/dist/components/NcDateTimePickerNative/index.d.ts +4 -0
  220. package/dist/components/NcDateTimePickerNative/index.mjs +1 -1
  221. package/dist/components/NcDialog/NcDialog.vue.d.ts +73 -380
  222. package/dist/components/NcDialog/index.d.ts +4 -0
  223. package/dist/components/NcDialog/index.mjs +1 -1
  224. package/dist/components/NcDialogButton/index.mjs +1 -1
  225. package/dist/components/NcEllipsisedOption/index.mjs +1 -1
  226. package/dist/components/NcEmojiPicker/index.mjs +1 -1
  227. package/dist/components/NcHeaderButton/index.mjs +1 -1
  228. package/dist/components/NcHeaderMenu/index.d.ts +4 -0
  229. package/dist/components/NcHeaderMenu/index.mjs +1 -1
  230. package/dist/components/NcHighlight/NcHighlight.vue.d.ts +15 -8
  231. package/dist/components/NcHighlight/index.d.ts +4 -0
  232. package/dist/components/NcHighlight/index.mjs +1 -1
  233. package/dist/components/NcInputField/NcInputField.vue.d.ts +147 -0
  234. package/dist/components/NcInputField/index.d.ts +5 -0
  235. package/dist/components/NcInputField/index.mjs +1 -1
  236. package/dist/components/NcListItem/index.mjs +1 -1
  237. package/dist/components/NcListItemIcon/index.mjs +1 -1
  238. package/dist/components/NcLoadingIcon/NcLoadingIcon.vue.d.ts +9 -45
  239. package/dist/components/NcLoadingIcon/index.d.ts +4 -0
  240. package/dist/components/NcLoadingIcon/index.mjs +1 -1
  241. package/dist/components/NcModal/index.mjs +1 -1
  242. package/dist/components/NcNoteCard/NcNoteCard.vue.d.ts +37 -62
  243. package/dist/components/NcNoteCard/index.d.ts +4 -0
  244. package/dist/components/NcNoteCard/index.mjs +1 -1
  245. package/dist/components/NcPasswordField/NcPasswordField.vue.d.ts +282 -0
  246. package/dist/components/NcPasswordField/index.d.ts +4 -0
  247. package/dist/components/NcPasswordField/index.mjs +1 -1
  248. package/dist/components/NcPopover/index.mjs +1 -1
  249. package/dist/components/NcRelatedResourcesPanel/index.mjs +1 -1
  250. package/dist/components/NcRichContenteditable/NcRichContenteditable.vue.d.ts +1 -1
  251. package/dist/components/NcRichContenteditable/index.mjs +1 -1
  252. package/dist/components/NcRichText/index.mjs +3 -3
  253. package/dist/components/NcSelect/index.mjs +1 -1
  254. package/dist/components/NcSelectTags/index.mjs +1 -1
  255. package/dist/components/NcSelectUsers/index.mjs +1 -1
  256. package/dist/components/NcSettingsInputText/NcSettingsInputText.vue.d.ts +1 -1
  257. package/dist/components/NcSettingsInputText/index.mjs +1 -1
  258. package/dist/components/NcSettingsSection/index.mjs +1 -1
  259. package/dist/components/NcSettingsSelectGroup/index.mjs +1 -1
  260. package/dist/components/NcTextArea/NcTextArea.vue.d.ts +51 -170
  261. package/dist/components/NcTextArea/index.d.ts +4 -0
  262. package/dist/components/NcTextArea/index.mjs +1 -1
  263. package/dist/components/NcTextField/NcTextField.vue.d.ts +277 -0
  264. package/dist/components/NcTextField/index.d.ts +4 -0
  265. package/dist/components/NcTextField/index.mjs +2 -2
  266. package/dist/components/NcTimezonePicker/index.mjs +1 -1
  267. package/dist/components/NcUserBubble/NcUserBubble.vue.d.ts +90 -0
  268. package/dist/components/NcUserBubble/NcUserBubbleDiv.vue.d.ts +16 -1
  269. package/dist/components/NcUserBubble/index.d.ts +4 -0
  270. package/dist/components/NcUserBubble/index.mjs +1 -1
  271. package/dist/components/NcUserStatusIcon/index.mjs +1 -1
  272. package/dist/components/index.d.ts +15 -15
  273. package/dist/functions/reference/index.mjs +1 -1
  274. package/dist/functions/usernameToColor/index.mjs +1 -1
  275. package/dist/index.mjs +76 -76
  276. package/dist/utils/VueTypes.d.ts +6 -0
  277. package/package.json +2 -2
  278. package/dist/assets/NcAppNavigationSpacer-BJj8CIpA.css +0 -6
  279. package/dist/chunks/AlertCircleOutline-DVzpKQVu.mjs +0 -49
  280. package/dist/chunks/AlertCircleOutline-DVzpKQVu.mjs.map +0 -1
  281. package/dist/chunks/NcAppContent-DRhM7Gyz.mjs.map +0 -1
  282. package/dist/chunks/NcAppNavigationSpacer-CzBLuQL8.mjs +0 -15
  283. package/dist/chunks/NcAppNavigationSpacer-CzBLuQL8.mjs.map +0 -1
  284. package/dist/chunks/NcAppNavigationToggle-CFw3W3_o.mjs.map +0 -1
  285. package/dist/chunks/NcCheckboxRadioSwitch-Ca1ouh22.mjs.map +0 -1
  286. package/dist/chunks/NcColorPicker-BjsBCkEt.mjs +0 -275
  287. package/dist/chunks/NcColorPicker-BjsBCkEt.mjs.map +0 -1
  288. package/dist/chunks/NcDashboardWidgetItem-DnI9uLf1.mjs.map +0 -1
  289. package/dist/chunks/NcDateTimePickerNative-D0pjWawX.mjs +0 -202
  290. package/dist/chunks/NcDateTimePickerNative-D0pjWawX.mjs.map +0 -1
  291. package/dist/chunks/NcDialog-BQNR_-Ju.mjs +0 -319
  292. package/dist/chunks/NcDialog-BQNR_-Ju.mjs.map +0 -1
  293. package/dist/chunks/NcHeaderMenu-o9FmNBI5.mjs.map +0 -1
  294. package/dist/chunks/NcHighlight-Cu4UfEEO.mjs.map +0 -1
  295. package/dist/chunks/NcInputField-BBS1E7r-.mjs +0 -306
  296. package/dist/chunks/NcInputField-BBS1E7r-.mjs.map +0 -1
  297. package/dist/chunks/NcLoadingIcon-CsMn1bFR.mjs +0 -79
  298. package/dist/chunks/NcLoadingIcon-CsMn1bFR.mjs.map +0 -1
  299. package/dist/chunks/NcModal-BisVxXe_.mjs.map +0 -1
  300. package/dist/chunks/NcNoteCard-XoSOund1.mjs +0 -276
  301. package/dist/chunks/NcNoteCard-XoSOund1.mjs.map +0 -1
  302. package/dist/chunks/NcPasswordField-hZiEd3tC.mjs +0 -298
  303. package/dist/chunks/NcPasswordField-hZiEd3tC.mjs.map +0 -1
  304. package/dist/chunks/NcTextArea-DKHjCur8.mjs +0 -217
  305. package/dist/chunks/NcTextArea-DKHjCur8.mjs.map +0 -1
  306. package/dist/chunks/NcTextField-DJ1KtSKd.mjs +0 -174
  307. package/dist/chunks/NcTextField-DJ1KtSKd.mjs.map +0 -1
  308. package/dist/chunks/NcUserBubble-Csot0WLv.mjs +0 -228
  309. package/dist/chunks/NcUserBubble-Csot0WLv.mjs.map +0 -1
  310. package/dist/chunks/_l10n-Bg-fZ9R0.mjs.map +0 -1
  311. package/dist/chunks/mdi-CR-3gwdl.mjs +0 -21
  312. package/dist/components/NcEllipsisedOption/NcEllipsisedOption.vue.d.ts +0 -95
  313. package/dist/components/NcRichText/NcReferencePicker/NcProviderList.vue.d.ts +0 -215
  314. package/dist/components/NcRichText/NcReferencePicker/NcSearch.vue.d.ts +0 -289
  315. package/dist/components/NcRichText/NcReferencePicker/NcSearchResult.vue.d.ts +0 -69
  316. package/dist/components/NcSelect/NcSelect.vue.d.ts +0 -121
  317. package/dist/components/NcSelectTags/NcSelectTags.vue.d.ts +0 -205
  318. package/dist/components/NcSettingsSelectGroup/NcSettingsSelectGroup.vue.d.ts +0 -265
@@ -1,9 +1,8 @@
1
- import '../assets/NcAppNavigationToggle-DnTKNSH7.css';
2
- import { N as NcButton } from "./NcButton-Byg8-ta1.mjs";
3
- import { r as register, w as t19, a as t } from "./_l10n-Bg-fZ9R0.mjs";
4
- import { createElementBlock, openBlock, mergeProps, createElementVNode, createCommentVNode, toDisplayString, resolveComponent, createVNode, withCtx, createBlock } from "vue";
1
+ import '../assets/NcAppNavigationToggle-M0oDbwAS.css';
2
+ import { createElementBlock, openBlock, mergeProps, createElementVNode, createCommentVNode, toDisplayString, defineComponent, useModel, computed, createVNode, unref, withCtx, createBlock } from "vue";
5
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
6
- register(t19);
4
+ import { N as NcButton } from "./NcButton-yN4vYgXb.mjs";
5
+ import { r as register, a as t } from "./_l10n-B4AgnzNC.mjs";
7
6
  const _sfc_main$2 = {
8
7
  name: "MenuIcon",
9
8
  emits: ["click"],
@@ -25,7 +24,7 @@ const _hoisted_1$2 = ["aria-hidden", "aria-label"];
25
24
  const _hoisted_2$1 = ["fill", "width", "height"];
26
25
  const _hoisted_3$1 = { d: "M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" };
27
26
  const _hoisted_4$1 = { key: 0 };
28
- function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
27
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
29
28
  return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, {
30
29
  "aria-hidden": $props.title ? null : "true",
31
30
  "aria-label": $props.title,
@@ -46,7 +45,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
46
45
  ], 8, _hoisted_2$1))
47
46
  ], 16, _hoisted_1$2);
48
47
  }
49
- const MenuIcon = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
48
+ const MenuIcon = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1]]);
50
49
  const _sfc_main$1 = {
51
50
  name: "MenuOpenIcon",
52
51
  emits: ["click"],
@@ -68,7 +67,7 @@ const _hoisted_1$1 = ["aria-hidden", "aria-label"];
68
67
  const _hoisted_2 = ["fill", "width", "height"];
69
68
  const _hoisted_3 = { d: "M21,15.61L19.59,17L14.58,12L19.59,7L21,8.39L17.44,12L21,15.61M3,6H16V8H3V6M3,13V11H13V13H3M3,18V16H16V18H3Z" };
70
69
  const _hoisted_4 = { key: 0 };
71
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
70
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
72
71
  return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, {
73
72
  "aria-hidden": $props.title ? null : "true",
74
73
  "aria-label": $props.title,
@@ -89,71 +88,50 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
89
88
  ], 8, _hoisted_2))
90
89
  ], 16, _hoisted_1$1);
91
90
  }
92
- const MenuOpenIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
93
- const _sfc_main = {
94
- name: "NcAppNavigationToggle",
95
- components: {
96
- NcButton,
97
- MenuIcon,
98
- MenuOpenIcon
99
- },
91
+ const MenuOpenIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render]]);
92
+ register();
93
+ const _hoisted_1 = { class: "app-navigation-toggle-wrapper" };
94
+ const _sfc_main = /* @__PURE__ */ defineComponent({
95
+ __name: "NcAppNavigationToggle",
100
96
  props: {
101
- /**
102
- * Tracks whether the toggle has been clicked or not.
103
- * If it has been clicked, switches between the different MenuIcons
104
- * and emits a boolean indicating its opened status
105
- */
106
- open: {
107
- type: Boolean,
108
- required: true
109
- }
97
+ "open": { type: Boolean, ...{ required: true } },
98
+ "openModifiers": {}
110
99
  },
111
100
  emits: ["update:open"],
112
- computed: {
113
- label() {
114
- return this.open ? t("Close navigation") : t("Open navigation");
115
- }
116
- },
117
- methods: {
118
- /**
119
- * Once the toggle has been clicked, emits the toggle status
120
- * so parent components can gauge the status of the navigation button
121
- */
122
- toggleNavigation() {
123
- this.$emit("update:open", !this.open);
101
+ setup(__props) {
102
+ const open = useModel(__props, "open");
103
+ const title = computed(() => open.value ? t("Close navigation") : t("Open navigation"));
104
+ function toggleNavigation() {
105
+ open.value = !open.value;
124
106
  }
107
+ return (_ctx, _cache) => {
108
+ return openBlock(), createElementBlock("div", _hoisted_1, [
109
+ createVNode(unref(NcButton), {
110
+ class: "app-navigation-toggle",
111
+ "aria-controls": "app-navigation-vue",
112
+ "aria-expanded": open.value ? "true" : "false",
113
+ "aria-label": title.value,
114
+ title: title.value,
115
+ variant: "tertiary",
116
+ onClick: toggleNavigation
117
+ }, {
118
+ icon: withCtx(() => [
119
+ open.value ? (openBlock(), createBlock(MenuOpenIcon, {
120
+ key: 0,
121
+ size: 20
122
+ })) : (openBlock(), createBlock(MenuIcon, {
123
+ key: 1,
124
+ size: 20
125
+ }))
126
+ ]),
127
+ _: 1
128
+ }, 8, ["aria-expanded", "aria-label", "title"])
129
+ ]);
130
+ };
125
131
  }
126
- };
127
- const _hoisted_1 = { class: "app-navigation-toggle-wrapper" };
128
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
129
- const _component_MenuOpenIcon = resolveComponent("MenuOpenIcon");
130
- const _component_MenuIcon = resolveComponent("MenuIcon");
131
- const _component_NcButton = resolveComponent("NcButton");
132
- return openBlock(), createElementBlock("div", _hoisted_1, [
133
- createVNode(_component_NcButton, {
134
- class: "app-navigation-toggle",
135
- "aria-controls": "app-navigation-vue",
136
- "aria-expanded": $props.open ? "true" : "false",
137
- "aria-keyshortcuts": _ctx.disableKeyboardShortcuts ? "" : "n",
138
- "aria-label": $options.label,
139
- title: $options.label,
140
- onClick: $options.toggleNavigation
141
- }, {
142
- icon: withCtx(() => [
143
- $props.open ? (openBlock(), createBlock(_component_MenuOpenIcon, {
144
- key: 0,
145
- size: 20
146
- })) : (openBlock(), createBlock(_component_MenuIcon, {
147
- key: 1,
148
- size: 20
149
- }))
150
- ]),
151
- _: 1
152
- }, 8, ["aria-expanded", "aria-keyshortcuts", "aria-label", "title", "onClick"])
153
- ]);
154
- }
155
- const NcAppNavigationToggle = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e311a67a"]]);
132
+ });
133
+ const NcAppNavigationToggle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-64b700bb"]]);
156
134
  export {
157
135
  NcAppNavigationToggle as N
158
136
  };
159
- //# sourceMappingURL=NcAppNavigationToggle-CFw3W3_o.mjs.map
137
+ //# sourceMappingURL=NcAppNavigationToggle-D3UGt5TV.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcAppNavigationToggle-D3UGt5TV.mjs","sources":["../../node_modules/vue-material-design-icons/Menu.vue","../../node_modules/vue-material-design-icons/MenuOpen.vue","../../src/components/NcAppNavigationToggle/NcAppNavigationToggle.vue"],"sourcesContent":["<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : 'true'\"\n :aria-label=\"title\"\n class=\"material-design-icon menu-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"MenuIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : 'true'\"\n :aria-label=\"title\"\n class=\"material-design-icon menu-open-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M21,15.61L19.59,17L14.58,12L19.59,7L21,8.39L17.44,12L21,15.61M3,6H16V8H3V6M3,13V11H13V13H3M3,18V16H16V18H3Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"MenuOpenIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n -->\n<!--\n - This component is only used for the NcAppNavigation component and not exported otherwise.\n-->\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport MenuIcon from 'vue-material-design-icons/Menu.vue'\nimport MenuOpenIcon from 'vue-material-design-icons/MenuOpen.vue'\nimport NcButton from '../NcButton/index.ts'\nimport { t } from '../../l10n.js'\n\n/**\n * Tracks whether the toggle has been clicked or not.\n * If it has been clicked, switches between the different MenuIcons\n * and emits a boolean indicating its opened status\n */\nconst open = defineModel<boolean>('open', { required: true })\n\nconst title = computed(() => open.value ? t('Close navigation') : t('Open navigation'))\n\n/**\n * Once the toggle has been clicked, emits the toggle status\n * so parent components can gauge the status of the navigation button\n */\nfunction toggleNavigation(): void {\n\topen.value = !open.value\n}\n</script>\n\n<template>\n\t<div class=\"app-navigation-toggle-wrapper\">\n\t\t<NcButton class=\"app-navigation-toggle\"\n\t\t\taria-controls=\"app-navigation-vue\"\n\t\t\t:aria-expanded=\"open ? 'true' : 'false'\"\n\t\t\t:aria-label=\"title\"\n\t\t\t:title\n\t\t\tvariant=\"tertiary\"\n\t\t\t@click=\"toggleNavigation\">\n\t\t\t<template #icon>\n\t\t\t\t<MenuOpenIcon v-if=\"open\" :size=\"20\" />\n\t\t\t\t<MenuIcon v-else :size=\"20\" />\n\t\t\t</template>\n\t\t</NcButton>\n\t</div>\n</template>\n\n<style scoped lang=\"scss\">\n.app-navigation-toggle-wrapper {\n\tposition: absolute;\n\ttop: var(--app-navigation-padding);\n\tinset-inline-end: calc(0px - var(--app-navigation-padding));\n\tmargin-inline-end: calc(-1 * var(--default-clickable-area));\n}\n\nbutton.app-navigation-toggle {\n\tbackground-color: var(--color-main-background);\n}\n</style>\n"],"names":["_sfc_main","_hoisted_1","_hoisted_2","_hoisted_3","_createElementBlock","_mergeProps","_createElementVNode","_hoisted_4","_createCommentVNode","_useModel"],"mappings":";;;;AAoBA,MAAKA,cAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,OAAO;AAAA,MACL,MAAM;AAAA,IACP;AAAA,IACD,WAAW;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,EACF;AACF;AApCA,MAAAC,eAAA,CAAA,eAAA,YAAA;AAAA,MAAAC,eAAA,CAAA,QAAA,SAAA,QAAA;AAYY,MAAAC,eAAA,EAAA,GAAE,iDAAgD;uBAZ9D,KAAA,EAAA;;sBACEC,mBAeO,QAfPC,WAAc,KAAM,QAAA;AAAA,IACb,eAAa,OAAK,QAAA,OAAA;AAAA,IAClB,cAAY,OAAK;AAAA,IAClB,OAAM;AAAA,IACN,MAAK;AAAA,IACJ,SAAK,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,YAAE,KAAK,MAAA,SAAU,MAAM;AAAA;kBACjCD,mBAQM,OAAA;AAAA,MARA,MAAM,OAAS;AAAA,MAChB,OAAM;AAAA,MACL,OAAO,OAAI;AAAA,MACX,QAAQ,OAAI;AAAA,MACb,SAAQ;AAAA;MACXE,mBA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AAK,QAAQ,EAAE,kBAAkB,IAAI,EAAE,iBAAiB,CAAC;AAMtF,aAAS,mBAAyB;AAC5B,WAAA,QAAQ,CAAC,KAAK;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0,1]}
@@ -1,12 +1,12 @@
1
- import '../assets/NcAppSettingsDialog-DMWosHw9.css';
1
+ import '../assets/NcAppSettingsDialog-DfBJYMdm.css';
2
2
  import debounce from "debounce";
3
3
  import { resolveComponent, createBlock, createCommentVNode, openBlock, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, createElementBlock, Fragment, renderList, withKeys, withModifiers, normalizeClass, toDisplayString, warn } from "vue";
4
4
  import { useIsMobile } from "../composables/useIsMobile/index.mjs";
5
- import { r as register, k as t43, a as t } from "./_l10n-Bg-fZ9R0.mjs";
6
- import { N as NcDialog } from "./NcDialog-BQNR_-Ju.mjs";
5
+ import { r as register, h as t44, a as t } from "./_l10n-B4AgnzNC.mjs";
6
+ import { N as NcDialog } from "./NcDialog-CXVaeWJf.mjs";
7
7
  import { _ as _sfc_main$1 } from "./NcVNodes.vue_vue_type_script_lang-BqUHinRZ.mjs";
8
8
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
9
- register(t43);
9
+ register(t44);
10
10
  const _sfc_main = {
11
11
  name: "NcAppSettingsDialog",
12
12
  components: {
@@ -248,8 +248,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
248
248
  } : void 0
249
249
  ]), 1040, ["navigation-aria-label", "onUpdate:open"])) : createCommentVNode("", true);
250
250
  }
251
- const NcAppSettingsDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b1847f43"]]);
251
+ const NcAppSettingsDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b931fdb9"]]);
252
252
  export {
253
253
  NcAppSettingsDialog as N
254
254
  };
255
- //# sourceMappingURL=NcAppSettingsDialog-CBLZvdnK.mjs.map
255
+ //# sourceMappingURL=NcAppSettingsDialog-CQnZ29WZ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"NcAppSettingsDialog-CBLZvdnK.mjs","sources":["../../src/components/NcAppSettingsDialog/NcAppSettingsDialog.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nJust nest the `AppSettingSections` component into `NcAppSettingsDialog`,\nproviding the section's name prop. You can put your settings within each\n`NcAppSettingsSection` component.\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"settingsOpen = true\">Show Settings</NcButton>\n\t\t<NcAppSettingsDialog v-model:open=\"settingsOpen\" :show-navigation=\"true\" name=\"Application settings\">\n\t\t\t<NcAppSettingsSection id=\"asci-name-1\" name=\"Example name 1\">\n\t\t\t\tSome example content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-2\" name=\"Example name 2\">\n\t\t\t\tSome more content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-3\" name=\"Example name 3\">\n\t\t\t\tSome example content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-4\" name=\"Example name 4\">\n\t\t\t\tSome more content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-5\" name=\"Example name 5\">\n\t\t\t\tSome example content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-6\" name=\"Example name 6\">\n\t\t\t\tSome more content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-7\" name=\"Example name 7\">\n\t\t\t\tSome example content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-8\" name=\"Example name 8\">\n\t\t\t\tSome more content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-9\" name=\"Example name 9\">\n\t\t\t\tSome more content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-10\" name=\"Example name 10\">\n\t\t\t\tSome more content\n\t\t\t</NcAppSettingsSection>\n\t\t</NcAppSettingsDialog>\n\t</div>\n</template>\n\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tsettingsOpen: false,\n\t\t}\n\t},\n}\n</script>\n```\n\nYou can also add icons to the section navigation:\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"settingsOpen = true\">Show Settings</NcButton>\n\t\t<NcAppSettingsDialog v-model:open=\"settingsOpen\" :show-navigation=\"true\" name=\"Application settings\">\n\t\t\t<NcAppSettingsSection id=\"asci-name-1\" name=\"Instagram\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Instagram :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t<p style=\"height: 100vh;\">\n\t\t\t\t\tInstagram setting\n\t\t\t\t</p>\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-2\" name=\"Mastodon\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Mastodon :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t<p style=\"height: 100vh;\">\n\t\t\t\t\tMastodon setting\n\t\t\t\t</p>\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-3\" name=\"Twitch\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Twitch :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t<p style=\"height: 100vh;\">\n\t\t\t\t\tTwitch setting\n\t\t\t\t</p>\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-4\" name=\"Twitter\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Twitter :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tTwitter setting\n\t\t\t</NcAppSettingsSection>\n\t\t</NcAppSettingsDialog>\n\t</div>\n</template>\n\n<script>\nimport Instagram from 'vue-material-design-icons/Instagram.vue'\nimport Mastodon from 'vue-material-design-icons/Mastodon.vue'\nimport Twitch from 'vue-material-design-icons/Twitch.vue'\nimport Twitter from 'vue-material-design-icons/Twitter.vue'\n\nexport default {\n\tcomponents: {\n\t\tInstagram,\n\t\tMastodon,\n\t\tTwitch,\n\t\tTwitter,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tsettingsOpen: false,\n\t\t}\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<NcDialog v-if=\"open\"\n\t\t:navigation-aria-label=\"settingsNavigationAriaLabel\"\n\t\tv-bind=\"dialogProperties\"\n\t\t@update:open=\"handleCloseModal\">\n\t\t<template v-if=\"hasNavigation\" #navigation=\"{ isCollapsed }\">\n\t\t\t<ul v-if=\"!isCollapsed\"\n\t\t\t\tclass=\"navigation-list\">\n\t\t\t\t<li v-for=\"section in sections\" :key=\"section.id\">\n\t\t\t\t\t<a :aria-current=\"`${section.id === selectedSection}`\"\n\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t'navigation-list__link': true,\n\t\t\t\t\t\t\t'navigation-list__link--active': section.id === selectedSection,\n\t\t\t\t\t\t\t'navigation-list__link--icon': hasNavigationIcons,\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t:href=\"`#settings-section_${section.id}`\"\n\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t@click.prevent=\"handleSettingsNavigationClick(section.id)\"\n\t\t\t\t\t\t@keydown.enter=\"handleSettingsNavigationClick(section.id)\">\n\t\t\t\t\t\t<div v-if=\"hasNavigationIcons\" class=\"navigation-list__link-icon\">\n\t\t\t\t\t\t\t<NcVNodes v-if=\"section.icon\" :vnodes=\"section.icon\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<span class=\"navigation-list__link-text\">\n\t\t\t\t\t\t\t{{ section.name }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</template>\n\t\t<div ref=\"settingsScroller\">\n\t\t\t<slot />\n\t\t</div>\n\t</NcDialog>\n</template>\n\n<script>\nimport debounce from 'debounce'\nimport { warn } from 'vue'\nimport { useIsMobile } from '../../composables/useIsMobile/index.js'\nimport { t } from '../../l10n.js'\n\nimport NcDialog from '../NcDialog/index.js'\nimport NcVNodes from '../NcVNodes/index.ts'\n\nexport default {\n\n\tname: 'NcAppSettingsDialog',\n\n\tcomponents: {\n\t\tNcDialog,\n\t\tNcVNodes,\n\t},\n\n\tprovide() {\n\t\treturn {\n\t\t\tregisterSection: this.registerSection,\n\t\t\tunregisterSection: this.unregisterSection,\n\t\t}\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Determines the open / closed state of the modal\n\t\t */\n\t\topen: {\n\t\t\ttype: Boolean,\n\t\t\trequired: true,\n\t\t},\n\t\t/**\n\t\t * Shows the navigation on desktop if true\n\t\t */\n\t\tshowNavigation: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Selector for the popover container\n\t\t */\n\t\tcontainer: {\n\t\t\ttype: String,\n\t\t\tdefault: 'body',\n\t\t},\n\n\t\t/**\n\t\t * Name of the settings\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Additional elements to add to the focus trap\n\t\t */\n\t\tadditionalTrapElements: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t},\n\n\temits: ['update:open'],\n\n\tsetup() {\n\t\treturn {\n\t\t\tisMobile: useIsMobile(),\n\t\t}\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tselectedSection: '',\n\t\t\tlinkClicked: false,\n\t\t\taddedScrollListener: false,\n\t\t\tscroller: null,\n\t\t\t/**\n\t\t\t * Currently registered settings sections\n\t\t\t * @type {{ id: string, name: string, icon?: import('vue').VNode[] }[]}\n\t\t\t */\n\t\t\tsections: [],\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tdialogProperties() {\n\t\t\treturn {\n\t\t\t\tadditionalTrapElements: this.additionalTrapElements,\n\t\t\t\tcloseOnClickOutside: true,\n\t\t\t\tclass: 'app-settings',\n\t\t\t\tcontainer: this.container,\n\t\t\t\tcontentClasses: 'app-settings__content',\n\t\t\t\tsize: 'large',\n\t\t\t\tname: this.name,\n\t\t\t\tnavigationClasses: 'app-settings__navigation',\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Check if one or more navigation entries provide icons\n\t\t */\n\t\thasNavigationIcons() {\n\t\t\treturn this.sections.some(({ icon }) => !!icon)\n\t\t},\n\n\t\thasNavigation() {\n\t\t\tif (this.isMobile || !this.showNavigation) {\n\t\t\t\treturn false\n\t\t\t} else {\n\t\t\t\treturn true\n\t\t\t}\n\t\t},\n\n\t\tsettingsNavigationAriaLabel() {\n\t\t\treturn t('Settings navigation')\n\t\t},\n\t},\n\n\tupdated() {\n\t\t// Check that the scroller element has been mounted\n\t\tif (!this.$refs.settingsScroller) {\n\t\t\treturn\n\t\t}\n\t\t// Get the scroller element\n\t\tthis.scroller = this.$refs.settingsScroller\n\t\tif (!this.addedScrollListener) {\n\t\t\tthis.scroller.addEventListener('scroll', this.handleScroll)\n\t\t\tthis.addedScrollListener = true\n\t\t}\n\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Called when a new section is registered\n\t\t * @param {string} id The section ID\n\t\t * @param {string} name The section name\n\t\t * @param {import('vue').VNode[]|undefined} icon Optional icon component\n\t\t */\n\t\tregisterSection(id, name, icon) {\n\t\t\t// Check for the uniqueness of section names\n\t\t\tif (this.sections.some(({ id: otherId }) => id === otherId)) {\n\t\t\t\tthrow new Error(`Duplicate section id found: ${id}. Settings navigation sections must have unique section ids.`)\n\t\t\t}\n\t\t\tif (this.sections.some(({ name: otherName }) => name === otherName)) {\n\t\t\t\twarn(`Duplicate section name found: ${name}. Settings navigation sections must have unique section names.`)\n\t\t\t}\n\n\t\t\tconst newSections = [...this.sections, { id, name, icon }]\n\t\t\t// Sort sections by order in slots\n\t\t\tthis.sections = newSections.sort(({ id: idA }, { id: idB }) => {\n\t\t\t\tconst indexOf = (id) => this.$slots.default?.().indexOf(vnode => vnode?.props?.id === id) ?? -1\n\t\t\t\treturn indexOf(idA) - indexOf(idB)\n\t\t\t})\n\n\t\t\t// If this is the first section registered, set it as selected\n\t\t\tif (this.sections.length === 1) {\n\t\t\t\tthis.selectedSection = id\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Called when a section is unregistered to remove it from dialog\n\t\t * @param {string} id The section ID\n\t\t */\n\t\tunregisterSection(id) {\n\t\t\tthis.sections = this.sections.filter(({ id: otherId }) => id !== otherId)\n\n\t\t\t// If the current section is unregistered, set the first section as selected\n\t\t\tif (this.selectedSection === id) {\n\t\t\t\tthis.selectedSection = this.sections[0]?.id ?? ''\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Scrolls the content to the selected settings section.absolute\n\t\t *\n\t\t * @param {string} item the ID of the section\n\t\t */\n\t\thandleSettingsNavigationClick(item) {\n\t\t\tthis.linkClicked = true\n\t\t\tdocument.getElementById('settings-section_' + item).scrollIntoView({\n\t\t\t\tbehavior: 'smooth',\n\t\t\t\tinline: 'nearest',\n\t\t\t})\n\t\t\tthis.selectedSection = item\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.linkClicked = false\n\t\t\t}, 1000)\n\t\t},\n\n\t\thandleCloseModal(isOpen) {\n\t\t\tif (isOpen) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tthis.$emit('update:open', false)\n\t\t\t// Remove scroll listener each time the modal is closed\n\t\t\tthis.scroller.removeEventListener('scroll', this.handleScroll)\n\t\t\tthis.addedScrollListener = false\n\t\t\tthis.scroller.scrollTop = 0\n\t\t},\n\n\t\thandleScroll() {\n\t\t\tif (!this.linkClicked) {\n\t\t\t\tthis.unfocusNavigationItem()\n\t\t\t}\n\t\t},\n\n\t\t// Remove selected section once the user starts scrolling\n\t\tunfocusNavigationItem: debounce(function() {\n\t\t\tthis.selectedSection = ''\n\t\t\tif (document.activeElement.className.includes('navigation-list__link')) {\n\t\t\t\tdocument.activeElement.blur()\n\t\t\t}\n\t\t}, 300),\n\t},\n}\n\n</script>\n\n<style lang=\"scss\" scoped>\n.app-settings {\n\t:deep &__navigation {\n\t\tmin-width: 200px;\n\t\tmargin-inline-end: calc(4 * var(--default-grid-baseline));\n\t\toverflow-x: hidden;\n\t\toverflow-y: auto;\n\t\tposition: relative;\n\t}\n\t:deep &__content {\n\t\tpadding-inline: calc(4 * var(--default-grid-baseline));\n\t}\n}\n\n.navigation-list {\n\theight: 100%;\n\toverflow-y: auto;\n\tpadding: calc(3 * var(--default-grid-baseline));\n\n\t&__link {\n\t\tdisplay: flex;\n\t\talign-content: center;\n\t\tfont-size: 16px;\n\t\theight: var(--default-clickable-area);\n\t\tmargin: 4px 0;\n\t\tline-height: var(--default-clickable-area);\n\t\tborder-radius: var(--border-radius-element, var(--border-radius-pill));\n\t\tfont-weight: bold;\n\t\tpadding: 0 calc(4 * var(--default-grid-baseline));\n\t\tcursor: pointer;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbackground-color: var(--color-background-hover);\n\t\t}\n\n\t\t&--active {\n\t\t\tbackground-color: var(--color-primary-element-light) !important;\n\t\t}\n\n\t\t&--icon {\n\t\t\tpadding-inline-start: calc(2 * var(--default-grid-baseline));\n\t\t\tgap: var(--default-grid-baseline);\n\t\t}\n\n\t\t&-icon {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: center;\n\t\t\talign-content: center;\n\t\t\twidth: calc(var(--default-clickable-area) - 2 * var(--default-grid-baseline));\n\t\t\tmax-width: calc(var(--default-clickable-area) - 2 * var(--default-grid-baseline));\n\t\t}\n\t}\n}\n\n@media only screen and (max-width: $breakpoint-small-mobile) {\n\t.app-settings {\n\t\t:deep .dialog__name {\n\t\t\tpadding-inline-start: 16px;\n\t\t}\n\t}\n}\n</style>\n"],"names":["NcVNodes","id","_openBlock","_createBlock","_mergeProps","_createSlots","_withCtx","_createElementVNode","_renderSlot","_createElementBlock","_Fragment","_renderList","_normalizeClass","_withModifiers","_withKeys","_createCommentVNode","_toDisplayString"],"mappings":";;;;;;;;AAwKA,MAAK,YAAU;AAAA,EAEd,MAAM;AAAA,EAEN,YAAY;AAAA,IACX;AAAA,IACA,UAAAA;AAAAA,EACA;AAAA,EAED,UAAU;AACT,WAAO;AAAA,MACN,iBAAiB,KAAK;AAAA,MACtB,mBAAmB,KAAK;AAAA,IACzB;AAAA,EACA;AAAA,EAED,OAAO;AAAA;AAAA;AAAA;AAAA,IAIN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAID,gBAAgB;AAAA,MACf,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAKD,WAAW;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAKD,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAKD,wBAAwB;AAAA,MACvB,MAAM;AAAA,MACN,SAAS,MAAM,CAAE;AAAA,IACjB;AAAA,EAED;AAAA,EAED,OAAO,CAAC,aAAa;AAAA,EAErB,QAAQ;AACP,WAAO;AAAA,MACN,UAAU,YAAa;AAAA,IACxB;AAAA,EACA;AAAA,EAED,OAAO;AACN,WAAO;AAAA,MACN,iBAAiB;AAAA,MACjB,aAAa;AAAA,MACb,qBAAqB;AAAA,MACrB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA,MAKV,UAAU,CAAE;AAAA,IACb;AAAA,EACA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AA,CAAA,OAAA,CAAA;AAAA;gBAC7C,SAAkB,sBAA7BZ,aAAAO,mBAEM,OAFN,YAEM;AAAA,kBADW,QAAQ,qBAAxBN,YAAuD,qBAAA;AAAA,oBAhJ9D,KAAA;AAAA,oBAgJsC,QAAQ,QAAQ;AAAA,6CAhJtDY,mBAAA,IAAA,IAAA;AAAA,sBAAAA,mBAAA,IAAA,IAAA;AAAA,gBAkJMR,mBAEO,QAFP,YACIS,gBAAA,QAAQ,IAAI,GAAA,CAAA;AAAA,cAnJtB,GAAA,IAAA,UAAA;AAAA;;cAAAD,mBAAA,IAAA,IAAA;AAAA;MAAA,KAAA;AAAA,QAAA;AAAA,2DAAAA,mBAAA,IAAA,IAAA;;;"}
1
+ {"version":3,"file":"NcAppSettingsDialog-CQnZ29WZ.mjs","sources":["../../src/components/NcAppSettingsDialog/NcAppSettingsDialog.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nJust nest the `AppSettingSections` component into `NcAppSettingsDialog`,\nproviding the section's name prop. You can put your settings within each\n`NcAppSettingsSection` component.\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"settingsOpen = true\">Show Settings</NcButton>\n\t\t<NcAppSettingsDialog v-model:open=\"settingsOpen\" :show-navigation=\"true\" name=\"Application settings\">\n\t\t\t<NcAppSettingsSection id=\"asci-name-1\" name=\"Example name 1\">\n\t\t\t\tSome example content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-2\" name=\"Example name 2\">\n\t\t\t\tSome more content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-3\" name=\"Example name 3\">\n\t\t\t\tSome example content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-4\" name=\"Example name 4\">\n\t\t\t\tSome more content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-5\" name=\"Example name 5\">\n\t\t\t\tSome example content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-6\" name=\"Example name 6\">\n\t\t\t\tSome more content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-7\" name=\"Example name 7\">\n\t\t\t\tSome example content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-8\" name=\"Example name 8\">\n\t\t\t\tSome more content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-9\" name=\"Example name 9\">\n\t\t\t\tSome more content\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-10\" name=\"Example name 10\">\n\t\t\t\tSome more content\n\t\t\t</NcAppSettingsSection>\n\t\t</NcAppSettingsDialog>\n\t</div>\n</template>\n\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tsettingsOpen: false,\n\t\t}\n\t},\n}\n</script>\n```\n\nYou can also add icons to the section navigation:\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"settingsOpen = true\">Show Settings</NcButton>\n\t\t<NcAppSettingsDialog v-model:open=\"settingsOpen\" :show-navigation=\"true\" name=\"Application settings\">\n\t\t\t<NcAppSettingsSection id=\"asci-name-1\" name=\"Instagram\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Instagram :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t<p style=\"height: 100vh;\">\n\t\t\t\t\tInstagram setting\n\t\t\t\t</p>\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-2\" name=\"Mastodon\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Mastodon :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t<p style=\"height: 100vh;\">\n\t\t\t\t\tMastodon setting\n\t\t\t\t</p>\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-3\" name=\"Twitch\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Twitch :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t<p style=\"height: 100vh;\">\n\t\t\t\t\tTwitch setting\n\t\t\t\t</p>\n\t\t\t</NcAppSettingsSection>\n\t\t\t<NcAppSettingsSection id=\"asci-name-4\" name=\"Twitter\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Twitter :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tTwitter setting\n\t\t\t</NcAppSettingsSection>\n\t\t</NcAppSettingsDialog>\n\t</div>\n</template>\n\n<script>\nimport Instagram from 'vue-material-design-icons/Instagram.vue'\nimport Mastodon from 'vue-material-design-icons/Mastodon.vue'\nimport Twitch from 'vue-material-design-icons/Twitch.vue'\nimport Twitter from 'vue-material-design-icons/Twitter.vue'\n\nexport default {\n\tcomponents: {\n\t\tInstagram,\n\t\tMastodon,\n\t\tTwitch,\n\t\tTwitter,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tsettingsOpen: false,\n\t\t}\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<NcDialog v-if=\"open\"\n\t\t:navigation-aria-label=\"settingsNavigationAriaLabel\"\n\t\tv-bind=\"dialogProperties\"\n\t\t@update:open=\"handleCloseModal\">\n\t\t<template v-if=\"hasNavigation\" #navigation=\"{ isCollapsed }\">\n\t\t\t<ul v-if=\"!isCollapsed\"\n\t\t\t\tclass=\"navigation-list\">\n\t\t\t\t<li v-for=\"section in sections\" :key=\"section.id\">\n\t\t\t\t\t<a :aria-current=\"`${section.id === selectedSection}`\"\n\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t'navigation-list__link': true,\n\t\t\t\t\t\t\t'navigation-list__link--active': section.id === selectedSection,\n\t\t\t\t\t\t\t'navigation-list__link--icon': hasNavigationIcons,\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t:href=\"`#settings-section_${section.id}`\"\n\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t@click.prevent=\"handleSettingsNavigationClick(section.id)\"\n\t\t\t\t\t\t@keydown.enter=\"handleSettingsNavigationClick(section.id)\">\n\t\t\t\t\t\t<div v-if=\"hasNavigationIcons\" class=\"navigation-list__link-icon\">\n\t\t\t\t\t\t\t<NcVNodes v-if=\"section.icon\" :vnodes=\"section.icon\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<span class=\"navigation-list__link-text\">\n\t\t\t\t\t\t\t{{ section.name }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</template>\n\t\t<div ref=\"settingsScroller\">\n\t\t\t<slot />\n\t\t</div>\n\t</NcDialog>\n</template>\n\n<script>\nimport debounce from 'debounce'\nimport { warn } from 'vue'\nimport { useIsMobile } from '../../composables/useIsMobile/index.ts'\nimport { t } from '../../l10n.js'\n\nimport NcDialog from '../NcDialog/index.ts'\nimport NcVNodes from '../NcVNodes/index.ts'\n\nexport default {\n\n\tname: 'NcAppSettingsDialog',\n\n\tcomponents: {\n\t\tNcDialog,\n\t\tNcVNodes,\n\t},\n\n\tprovide() {\n\t\treturn {\n\t\t\tregisterSection: this.registerSection,\n\t\t\tunregisterSection: this.unregisterSection,\n\t\t}\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Determines the open / closed state of the modal\n\t\t */\n\t\topen: {\n\t\t\ttype: Boolean,\n\t\t\trequired: true,\n\t\t},\n\t\t/**\n\t\t * Shows the navigation on desktop if true\n\t\t */\n\t\tshowNavigation: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Selector for the popover container\n\t\t */\n\t\tcontainer: {\n\t\t\ttype: String,\n\t\t\tdefault: 'body',\n\t\t},\n\n\t\t/**\n\t\t * Name of the settings\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Additional elements to add to the focus trap\n\t\t */\n\t\tadditionalTrapElements: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t},\n\n\temits: ['update:open'],\n\n\tsetup() {\n\t\treturn {\n\t\t\tisMobile: useIsMobile(),\n\t\t}\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tselectedSection: '',\n\t\t\tlinkClicked: false,\n\t\t\taddedScrollListener: false,\n\t\t\tscroller: null,\n\t\t\t/**\n\t\t\t * Currently registered settings sections\n\t\t\t * @type {{ id: string, name: string, icon?: import('vue').VNode[] }[]}\n\t\t\t */\n\t\t\tsections: [],\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tdialogProperties() {\n\t\t\treturn {\n\t\t\t\tadditionalTrapElements: this.additionalTrapElements,\n\t\t\t\tcloseOnClickOutside: true,\n\t\t\t\tclass: 'app-settings',\n\t\t\t\tcontainer: this.container,\n\t\t\t\tcontentClasses: 'app-settings__content',\n\t\t\t\tsize: 'large',\n\t\t\t\tname: this.name,\n\t\t\t\tnavigationClasses: 'app-settings__navigation',\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Check if one or more navigation entries provide icons\n\t\t */\n\t\thasNavigationIcons() {\n\t\t\treturn this.sections.some(({ icon }) => !!icon)\n\t\t},\n\n\t\thasNavigation() {\n\t\t\tif (this.isMobile || !this.showNavigation) {\n\t\t\t\treturn false\n\t\t\t} else {\n\t\t\t\treturn true\n\t\t\t}\n\t\t},\n\n\t\tsettingsNavigationAriaLabel() {\n\t\t\treturn t('Settings navigation')\n\t\t},\n\t},\n\n\tupdated() {\n\t\t// Check that the scroller element has been mounted\n\t\tif (!this.$refs.settingsScroller) {\n\t\t\treturn\n\t\t}\n\t\t// Get the scroller element\n\t\tthis.scroller = this.$refs.settingsScroller\n\t\tif (!this.addedScrollListener) {\n\t\t\tthis.scroller.addEventListener('scroll', this.handleScroll)\n\t\t\tthis.addedScrollListener = true\n\t\t}\n\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Called when a new section is registered\n\t\t * @param {string} id The section ID\n\t\t * @param {string} name The section name\n\t\t * @param {import('vue').VNode[]|undefined} icon Optional icon component\n\t\t */\n\t\tregisterSection(id, name, icon) {\n\t\t\t// Check for the uniqueness of section names\n\t\t\tif (this.sections.some(({ id: otherId }) => id === otherId)) {\n\t\t\t\tthrow new Error(`Duplicate section id found: ${id}. Settings navigation sections must have unique section ids.`)\n\t\t\t}\n\t\t\tif (this.sections.some(({ name: otherName }) => name === otherName)) {\n\t\t\t\twarn(`Duplicate section name found: ${name}. Settings navigation sections must have unique section names.`)\n\t\t\t}\n\n\t\t\tconst newSections = [...this.sections, { id, name, icon }]\n\t\t\t// Sort sections by order in slots\n\t\t\tthis.sections = newSections.sort(({ id: idA }, { id: idB }) => {\n\t\t\t\tconst indexOf = (id) => this.$slots.default?.().indexOf(vnode => vnode?.props?.id === id) ?? -1\n\t\t\t\treturn indexOf(idA) - indexOf(idB)\n\t\t\t})\n\n\t\t\t// If this is the first section registered, set it as selected\n\t\t\tif (this.sections.length === 1) {\n\t\t\t\tthis.selectedSection = id\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Called when a section is unregistered to remove it from dialog\n\t\t * @param {string} id The section ID\n\t\t */\n\t\tunregisterSection(id) {\n\t\t\tthis.sections = this.sections.filter(({ id: otherId }) => id !== otherId)\n\n\t\t\t// If the current section is unregistered, set the first section as selected\n\t\t\tif (this.selectedSection === id) {\n\t\t\t\tthis.selectedSection = this.sections[0]?.id ?? ''\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Scrolls the content to the selected settings section.absolute\n\t\t *\n\t\t * @param {string} item the ID of the section\n\t\t */\n\t\thandleSettingsNavigationClick(item) {\n\t\t\tthis.linkClicked = true\n\t\t\tdocument.getElementById('settings-section_' + item).scrollIntoView({\n\t\t\t\tbehavior: 'smooth',\n\t\t\t\tinline: 'nearest',\n\t\t\t})\n\t\t\tthis.selectedSection = item\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.linkClicked = false\n\t\t\t}, 1000)\n\t\t},\n\n\t\thandleCloseModal(isOpen) {\n\t\t\tif (isOpen) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tthis.$emit('update:open', false)\n\t\t\t// Remove scroll listener each time the modal is closed\n\t\t\tthis.scroller.removeEventListener('scroll', this.handleScroll)\n\t\t\tthis.addedScrollListener = false\n\t\t\tthis.scroller.scrollTop = 0\n\t\t},\n\n\t\thandleScroll() {\n\t\t\tif (!this.linkClicked) {\n\t\t\t\tthis.unfocusNavigationItem()\n\t\t\t}\n\t\t},\n\n\t\t// Remove selected section once the user starts scrolling\n\t\tunfocusNavigationItem: debounce(function() {\n\t\t\tthis.selectedSection = ''\n\t\t\tif (document.activeElement.className.includes('navigation-list__link')) {\n\t\t\t\tdocument.activeElement.blur()\n\t\t\t}\n\t\t}, 300),\n\t},\n}\n\n</script>\n\n<style lang=\"scss\" scoped>\n.app-settings {\n\t:deep &__navigation {\n\t\tmin-width: 200px;\n\t\tmargin-inline-end: calc(4 * var(--default-grid-baseline));\n\t\toverflow-x: hidden;\n\t\toverflow-y: auto;\n\t\tposition: relative;\n\t}\n\t:deep &__content {\n\t\tpadding-inline: calc(4 * var(--default-grid-baseline));\n\t}\n}\n\n.navigation-list {\n\theight: 100%;\n\toverflow-y: auto;\n\tpadding: calc(3 * var(--default-grid-baseline));\n\n\t&__link {\n\t\tdisplay: flex;\n\t\talign-content: center;\n\t\tfont-size: 16px;\n\t\theight: var(--default-clickable-area);\n\t\tmargin: 4px 0;\n\t\tline-height: var(--default-clickable-area);\n\t\tborder-radius: var(--border-radius-element, var(--border-radius-pill));\n\t\tfont-weight: bold;\n\t\tpadding: 0 calc(4 * var(--default-grid-baseline));\n\t\tcursor: pointer;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbackground-color: var(--color-background-hover);\n\t\t}\n\n\t\t&--active {\n\t\t\tbackground-color: var(--color-primary-element-light) !important;\n\t\t}\n\n\t\t&--icon {\n\t\t\tpadding-inline-start: calc(2 * var(--default-grid-baseline));\n\t\t\tgap: var(--default-grid-baseline);\n\t\t}\n\n\t\t&-icon {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: center;\n\t\t\talign-content: center;\n\t\t\twidth: calc(var(--default-clickable-area) - 2 * var(--default-grid-baseline));\n\t\t\tmax-width: calc(var(--default-clickable-area) - 2 * var(--default-grid-baseline));\n\t\t}\n\t}\n}\n\n@media only screen and (max-width: $breakpoint-small-mobile) {\n\t.app-settings {\n\t\t:deep .dialog__name {\n\t\t\tpadding-inline-start: 16px;\n\t\t}\n\t}\n}\n</style>\n"],"names":["NcVNodes","id","_openBlock","_createBlock","_mergeProps","_createSlots","_withCtx","_createElementVNode","_renderSlot","_createElementBlock","_Fragment","_renderList","_normalizeClass","_withModifiers","_withKeys","_createCommentVNode","_toDisplayString"],"mappings":";;;;;;;;AAwKA,MAAK,YAAU;AAAA,EAEd,MAAM;AAAA,EAEN,YAAY;AAAA,IACX;AAAA,IACA,UAAAA;AAAAA,EACA;AAAA,EAED,UAAU;AACT,WAAO;AAAA,MACN,iBAAiB,KAAK;AAAA,MACtB,mBAAmB,KAAK;AAAA,IACzB;AAAA,EACA;AAAA,EAED,OAAO;AAAA;AAAA;AAAA;AAAA,IAIN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAID,gBAAgB;AAAA,MACf,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAKD,WAAW;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAKD,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAKD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A;AAAA,gBAhBA,gBAAiB,GAAA,QAAQ,OAAO,MAAe,eAAA;AAAA,gBACjD,OAtIPK,eAAA;AAAA;mDAsI8F,QAAQ,OAAO,MAAe;AAAA,iDAAwC,SAAkB;AAAA;gBAK/K,MAAI,qBAAuB,QAAQ,EAAE;AAAA,gBACtC,UAAS;AAAA,gBACR,SA7IPC,cA6IsB,YAAA,SAAA,8BAA8B,QAAQ,EAAE,GAAA,CAAA,SAAA,CAAA;AAAA,gBACvD,WA9IPC,SA8IsB,YAAA,SAAA,8BAA8B,QAAQ,EAAE,GAAA,CAAA,OAAA,CAAA;AAAA;gBAC7C,SAAkB,sBAA7BZ,aAAAO,mBAEM,OAFN,YAEM;AAAA,kBADW,QAAQ,qBAAxBN,YAAuD,qBAAA;AAAA,oBAhJ9D,KAAA;AAAA,oBAgJsC,QAAQ,QAAQ;AAAA,6CAhJtDY,mBAAA,IAAA,IAAA;AAAA,sBAAAA,mBAAA,IAAA,IAAA;AAAA,gBAkJMR,mBAEO,QAFP,YACIS,gBAAA,QAAQ,IAAI,GAAA,CAAA;AAAA,cAnJtB,GAAA,IAAA,UAAA;AAAA;;cAAAD,mBAAA,IAAA,IAAA;AAAA;MAAA,KAAA;AAAA,QAAA;AAAA,2DAAAA,mBAAA,IAAA,IAAA;;;"}
@@ -1,20 +1,20 @@
1
- import '../assets/NcAppSidebar-exl90fRm.css';
1
+ import '../assets/NcAppSidebar-PG3qIdkG.css';
2
2
  import { vOnClickOutside } from "@vueuse/components";
3
3
  import { createFocusTrap } from "focus-trap";
4
4
  import { createElementBlock, openBlock, mergeProps, createElementVNode, createCommentVNode, toDisplayString, resolveComponent, withKeys, withModifiers, Fragment, renderList, createBlock, normalizeClass, withCtx, createVNode, renderSlot, resolveDirective, Transition, withDirectives, Teleport, normalizeStyle, vShow, createTextVNode, warn, ref, provide } from "vue";
5
5
  import { useIsSmallMobile } from "../composables/useIsMobile/index.mjs";
6
6
  import { c as createElementId } from "./createElementId-DhjFt1I9.mjs";
7
7
  import { g as getTrapStack } from "./focusTrap-DmkaYJTC.mjs";
8
- import { i as isSlotPopulated, N as NcActions } from "./NcActions-DS88I6qk.mjs";
9
- import { r as register, H as t14, a as t } from "./_l10n-Bg-fZ9R0.mjs";
8
+ import { i as isSlotPopulated, N as NcActions } from "./NcActions-iwG1Tj-I.mjs";
9
+ import { r as register, C as t14, a as t } from "./_l10n-B4AgnzNC.mjs";
10
10
  import { I as IconArrowRight } from "./ArrowRight-DRKHUZMH.mjs";
11
11
  import { I as IconClose } from "./Close-D6ngJ4t9.mjs";
12
12
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
13
- import { N as NcCheckboxRadioSwitch } from "./NcCheckboxRadioSwitch-Ca1ouh22.mjs";
13
+ import { N as NcCheckboxRadioSwitch } from "./NcCheckboxRadioSwitch-Di0xbf6d.mjs";
14
14
  import { _ as _sfc_main$5 } from "./NcVNodes.vue_vue_type_script_lang-BqUHinRZ.mjs";
15
- import { N as NcButton } from "./NcButton-Byg8-ta1.mjs";
15
+ import { N as NcButton } from "./NcButton-yN4vYgXb.mjs";
16
16
  import { N as NcEmptyContent } from "./NcEmptyContent-BdOezubv.mjs";
17
- import { N as NcLoadingIcon } from "./NcLoadingIcon-CsMn1bFR.mjs";
17
+ import { N as NcLoadingIcon } from "./NcLoadingIcon-Dm3kRPrf.mjs";
18
18
  import { _ as _sfc_main$6 } from "./NcAppSidebarHeader.vue_vue_type_script_setup_true_lang-0j0aFDeK.mjs";
19
19
  import directive from "../directives/Focus/index.mjs";
20
20
  register(t14);
@@ -985,8 +985,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
985
985
  _: 3
986
986
  }, 8, ["onAfterEnter", "onAfterLeave"]);
987
987
  }
988
- const NcAppSidebar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ad8a952b"]]);
988
+ const NcAppSidebar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2f977306"]]);
989
989
  export {
990
990
  NcAppSidebar as N
991
991
  };
992
- //# sourceMappingURL=NcAppSidebar-BomlW59S.mjs.map
992
+ //# sourceMappingURL=NcAppSidebar-QEkYs8pt.mjs.map