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

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 (317) hide show
  1. package/CHANGELOG.md +57 -11
  2. package/dist/assets/{NcActionButton-DfdRrSEu.css → NcActionButton-B2G7zsju.css} +25 -17
  3. package/dist/assets/{NcActionInput-BNWL2Q-3.css → NcActionInput-SoC93uat.css} +62 -62
  4. package/dist/assets/{NcActionLink-C9_ycPLF.css → NcActionLink-VngQl-C2.css} +21 -13
  5. package/dist/assets/{NcActionRouter-CVsc7Ezc.css → NcActionRouter-CBVOuCQ3.css} +9 -1
  6. package/dist/assets/{NcActionText-C7y7Pe6P.css → NcActionText-CWAPsJmz.css} +9 -1
  7. package/dist/assets/{NcActionTextEditable-OBnWSj_T.css → NcActionTextEditable-BbOijUsB.css} +60 -60
  8. package/dist/assets/{NcActions-D7gPHaUE.css → NcActions-DxcpMfrs.css} +11 -11
  9. package/dist/assets/{NcAppContent-CvTesBem.css → NcAppContent-Di-SbMxO.css} +23 -23
  10. package/dist/assets/{NcAppNavigationItem-DRU-cLRN.css → NcAppNavigationItem-Cq6ZYdmT.css} +30 -30
  11. package/dist/assets/{NcAppSettingsDialog-DZfD_UEa.css → NcAppSettingsDialog-DMWosHw9.css} +10 -10
  12. package/dist/assets/{NcAppSidebar-GFQ62pY2.css → NcAppSidebar-exl90fRm.css} +85 -76
  13. package/dist/assets/{NcAvatar-UxFZ39EC.css → NcAvatar-B3wk2Xxl.css} +24 -24
  14. package/dist/assets/{NcChip-CKtzzrlA.css → NcChip-VsVAGaG6.css} +9 -9
  15. package/dist/assets/{NcContent-aXaYSfjS.css → NcContent-cRwic6r5.css} +9 -9
  16. package/dist/assets/{NcCounterBubble-DWgyYB0d.css → NcCounterBubble-DpKQwKTI.css} +7 -7
  17. package/dist/assets/{NcDashboardWidget-xV4o6Cen.css → NcDashboardWidget-BEYk4O95.css} +12 -12
  18. package/dist/assets/{NcDateTimePickerNative-CdHLvH4A.css → NcDateTimePickerNative-CeuS8Oeg.css} +13 -13
  19. package/dist/assets/{NcEmptyContent-D1O466rM.css → NcEmptyContent-q-geAf0w.css} +12 -9
  20. package/dist/assets/{NcGuestContent-C9lbC3vg.css → NcGuestContent-BZ26iXQi.css} +2 -2
  21. package/dist/assets/{NcIconSvgWrapper-BzRHs8iB.css → NcIconSvgWrapper-cYxhjYue.css} +12 -9
  22. package/dist/assets/{NcListItem-Byw-ayOI.css → NcListItem-9eCenovm.css} +44 -44
  23. package/dist/assets/{NcListItemIcon-Bnr-Z-SO.css → NcListItemIcon-DjEDwxRp.css} +13 -13
  24. package/dist/assets/{NcMentionBubble-CB5c5ue2.css → NcMentionBubble-DLOTFwpl.css} +9 -9
  25. package/dist/assets/{index-CjPwAJ46.css → NcModal-DaHROv08.css} +61 -61
  26. package/dist/assets/{NcRichContenteditable-CkyUKlIz.css → NcRichContenteditable-KsmFPJmm.css} +21 -21
  27. package/dist/assets/{NcRichText-BbVi69cc.css → NcRichText-GnQKcHYO.css} +84 -84
  28. package/dist/assets/NcSelectUsers-2-PyuY9Z.css +4 -0
  29. package/dist/assets/{NcUserStatusIcon-Du-BEPk_.css → NcUserStatusIcon-CtJLt6AU.css} +3 -3
  30. package/dist/assets/{referencePickerModal-CkGgDb19.css → referencePickerModal-DAD-jv3F.css} +23 -23
  31. package/dist/chunks/{ArrowRight-DQT24Cb-.mjs → ArrowRight-DRKHUZMH.mjs} +3 -3
  32. package/dist/chunks/{ArrowRight-DQT24Cb-.mjs.map → ArrowRight-DRKHUZMH.mjs.map} +1 -1
  33. package/dist/chunks/{NcActionButton-BZEDhdCm.mjs → NcActionButton-CnX0dQzz.mjs} +44 -95
  34. package/dist/chunks/NcActionButton-CnX0dQzz.mjs.map +1 -0
  35. package/dist/chunks/{NcActionButtonGroup-Dqt8Gekb.mjs → NcActionButtonGroup-3Da8b3EI.mjs} +2 -2
  36. package/dist/chunks/{NcActionButtonGroup-Dqt8Gekb.mjs.map → NcActionButtonGroup-3Da8b3EI.mjs.map} +1 -1
  37. package/dist/chunks/{NcActionInput-C_rmP0eZ.mjs → NcActionInput-DeFy255L.mjs} +11 -18
  38. package/dist/chunks/NcActionInput-DeFy255L.mjs.map +1 -0
  39. package/dist/chunks/{NcActionLink-BTIApspK.mjs → NcActionLink-BEo7zmXX.mjs} +4 -13
  40. package/dist/chunks/{NcActionLink-BTIApspK.mjs.map → NcActionLink-BEo7zmXX.mjs.map} +1 -1
  41. package/dist/chunks/{NcActionRouter-DATNpU_e.mjs → NcActionRouter-ERoQjJKv.mjs} +3 -3
  42. package/dist/chunks/{NcActionRouter-DATNpU_e.mjs.map → NcActionRouter-ERoQjJKv.mjs.map} +1 -1
  43. package/dist/chunks/{NcActionText-3mJjsJz_.mjs → NcActionText-DJWBefhJ.mjs} +3 -3
  44. package/dist/chunks/{NcActionText-3mJjsJz_.mjs.map → NcActionText-DJWBefhJ.mjs.map} +1 -1
  45. package/dist/chunks/{NcActionTextEditable-Dv1_bMFY.mjs → NcActionTextEditable-B7nemAOJ.mjs} +14 -20
  46. package/dist/chunks/NcActionTextEditable-B7nemAOJ.mjs.map +1 -0
  47. package/dist/chunks/{NcActions-DpYAcY6a.mjs → NcActions-DS88I6qk.mjs} +22 -20
  48. package/dist/chunks/NcActions-DS88I6qk.mjs.map +1 -0
  49. package/dist/chunks/{NcAppContent-BMiA5ySy.mjs → NcAppContent-DRhM7Gyz.mjs} +38 -66
  50. package/dist/chunks/NcAppContent-DRhM7Gyz.mjs.map +1 -0
  51. package/dist/chunks/NcAppContentDetails.vue_vue_type_script_setup_true_lang-Dnf4r_Ng.mjs +16 -0
  52. package/dist/chunks/NcAppContentDetails.vue_vue_type_script_setup_true_lang-Dnf4r_Ng.mjs.map +1 -0
  53. package/dist/chunks/{NcAppNavigation-DuLUJbsJ.mjs → NcAppNavigation-BVXVi9JQ.mjs} +2 -2
  54. package/dist/chunks/{NcAppNavigation-DuLUJbsJ.mjs.map → NcAppNavigation-BVXVi9JQ.mjs.map} +1 -1
  55. package/dist/chunks/{NcAppNavigationCaption-DTVdWgpf.mjs → NcAppNavigationCaption-DkiIEk6r.mjs} +2 -2
  56. package/dist/chunks/{NcAppNavigationCaption-DTVdWgpf.mjs.map → NcAppNavigationCaption-DkiIEk6r.mjs.map} +1 -1
  57. package/dist/chunks/{NcAppNavigationItem-5KG5Pl2c.mjs → NcAppNavigationItem-s3GC1n4o.mjs} +68 -68
  58. package/dist/chunks/{NcAppNavigationItem-5KG5Pl2c.mjs.map → NcAppNavigationItem-s3GC1n4o.mjs.map} +1 -1
  59. package/dist/chunks/{NcAppNavigationNewItem-CRCOC0hV.mjs → NcAppNavigationNewItem-D1GWsi8R.mjs} +2 -2
  60. package/dist/chunks/{NcAppNavigationNewItem-CRCOC0hV.mjs.map → NcAppNavigationNewItem-D1GWsi8R.mjs.map} +1 -1
  61. package/dist/chunks/{NcAppNavigationSearch-AT_S98B0.mjs → NcAppNavigationSearch-Cy0s4XWp.mjs} +2 -2
  62. package/dist/chunks/{NcAppNavigationSearch-AT_S98B0.mjs.map → NcAppNavigationSearch-Cy0s4XWp.mjs.map} +1 -1
  63. package/dist/chunks/{NcAppNavigationSettings-DFsvNlME.mjs → NcAppNavigationSettings-GeCb9tlR.mjs} +2 -2
  64. package/dist/chunks/{NcAppNavigationSettings-DFsvNlME.mjs.map → NcAppNavigationSettings-GeCb9tlR.mjs.map} +1 -1
  65. package/dist/chunks/{NcAppNavigationToggle-CqZs9ls-.mjs → NcAppNavigationToggle-CFw3W3_o.mjs} +2 -2
  66. package/dist/chunks/{NcAppNavigationToggle-CqZs9ls-.mjs.map → NcAppNavigationToggle-CFw3W3_o.mjs.map} +1 -1
  67. package/dist/chunks/{NcAppSettingsDialog-CTUoQezW.mjs → NcAppSettingsDialog-CBLZvdnK.mjs} +7 -7
  68. package/dist/chunks/{NcAppSettingsDialog-CTUoQezW.mjs.map → NcAppSettingsDialog-CBLZvdnK.mjs.map} +1 -1
  69. package/dist/chunks/{NcAppSidebar-B7shIqzm.mjs → NcAppSidebar-BomlW59S.mjs} +287 -274
  70. package/dist/chunks/NcAppSidebar-BomlW59S.mjs.map +1 -0
  71. package/dist/chunks/NcAppSidebarHeader.vue_vue_type_script_setup_true_lang-0j0aFDeK.mjs +30 -0
  72. package/dist/chunks/NcAppSidebarHeader.vue_vue_type_script_setup_true_lang-0j0aFDeK.mjs.map +1 -0
  73. package/dist/chunks/{NcAvatar-CvPCBukb.mjs → NcAvatar-CSk-1oFe.mjs} +13 -13
  74. package/dist/chunks/{NcAvatar-CvPCBukb.mjs.map → NcAvatar-CSk-1oFe.mjs.map} +1 -1
  75. package/dist/chunks/{NcBreadcrumb-C3qGDt3z.mjs → NcBreadcrumb-Bvsnecwa.mjs} +46 -4
  76. package/dist/chunks/NcBreadcrumb-Bvsnecwa.mjs.map +1 -0
  77. package/dist/chunks/{NcBreadcrumbs-DtBCo9yI.mjs → NcBreadcrumbs-DWU2ZRkM.mjs} +6 -6
  78. package/dist/chunks/{NcBreadcrumbs-DtBCo9yI.mjs.map → NcBreadcrumbs-DWU2ZRkM.mjs.map} +1 -1
  79. package/dist/chunks/{NcCheckboxRadioSwitch-DrNlVZw8.mjs → NcCheckboxRadioSwitch-Ca1ouh22.mjs} +2 -2
  80. package/dist/chunks/{NcCheckboxRadioSwitch-DrNlVZw8.mjs.map → NcCheckboxRadioSwitch-Ca1ouh22.mjs.map} +1 -1
  81. package/dist/chunks/{NcChip-Cq8DrWKb.mjs → NcChip-Cl6RfDoK.mjs} +14 -15
  82. package/dist/chunks/NcChip-Cl6RfDoK.mjs.map +1 -0
  83. package/dist/chunks/{NcCollectionList-CFuwV9sI.mjs → NcCollectionList-CxzQkCFq.mjs} +6 -6
  84. package/dist/chunks/{NcCollectionList-CFuwV9sI.mjs.map → NcCollectionList-CxzQkCFq.mjs.map} +1 -1
  85. package/dist/chunks/{NcColorPicker-Clo5oIYN.mjs → NcColorPicker-BjsBCkEt.mjs} +4 -4
  86. package/dist/chunks/{NcColorPicker-Clo5oIYN.mjs.map → NcColorPicker-BjsBCkEt.mjs.map} +1 -1
  87. package/dist/chunks/{NcContent-CUuf0HwJ.mjs → NcContent-DtM8j8ub.mjs} +5 -5
  88. package/dist/chunks/{NcContent-CUuf0HwJ.mjs.map → NcContent-DtM8j8ub.mjs.map} +1 -1
  89. package/dist/chunks/NcCounterBubble-PBdqn9Nf.mjs +52 -0
  90. package/dist/chunks/NcCounterBubble-PBdqn9Nf.mjs.map +1 -0
  91. package/dist/chunks/{NcDashboardWidget-CXw7Hxc8.mjs → NcDashboardWidget-uBobynyZ.mjs} +7 -7
  92. package/dist/chunks/{NcDashboardWidget-CXw7Hxc8.mjs.map → NcDashboardWidget-uBobynyZ.mjs.map} +1 -1
  93. package/dist/chunks/{NcDashboardWidgetItem-C6GoJEri.mjs → NcDashboardWidgetItem-DnI9uLf1.mjs} +4 -4
  94. package/dist/chunks/{NcDashboardWidgetItem-C6GoJEri.mjs.map → NcDashboardWidgetItem-DnI9uLf1.mjs.map} +1 -1
  95. package/dist/chunks/{NcDateTime.vue_vue_type_script_setup_true_lang-BYXau4sd.mjs → NcDateTime.vue_vue_type_script_setup_true_lang-BD-rj6Dr.mjs} +2 -2
  96. package/dist/chunks/{NcDateTime.vue_vue_type_script_setup_true_lang-BYXau4sd.mjs.map → NcDateTime.vue_vue_type_script_setup_true_lang-BD-rj6Dr.mjs.map} +1 -1
  97. package/dist/chunks/{NcDateTimePicker-CDFvxL3U.mjs → NcDateTimePicker-DYNOGc6A.mjs} +5 -5
  98. package/dist/chunks/{NcDateTimePicker-CDFvxL3U.mjs.map → NcDateTimePicker-DYNOGc6A.mjs.map} +1 -1
  99. package/dist/chunks/{NcDateTimePickerNative-BRuMK89z.mjs → NcDateTimePickerNative-D0pjWawX.mjs} +5 -6
  100. package/dist/chunks/NcDateTimePickerNative-D0pjWawX.mjs.map +1 -0
  101. package/dist/chunks/{NcDialog-BX0IET9Y.mjs → NcDialog-BQNR_-Ju.mjs} +3 -3
  102. package/dist/chunks/{NcDialog-BX0IET9Y.mjs.map → NcDialog-BQNR_-Ju.mjs.map} +1 -1
  103. package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-DbzPc_gW.mjs → NcDialogButton.vue_vue_type_script_setup_true_lang-DAZ2Budh.mjs} +3 -3
  104. package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-DbzPc_gW.mjs.map → NcDialogButton.vue_vue_type_script_setup_true_lang-DAZ2Budh.mjs.map} +1 -1
  105. package/dist/chunks/{NcEmojiPicker-C30Ofq8B.mjs → NcEmojiPicker-lhuMMbDy.mjs} +6 -6
  106. package/dist/chunks/{NcEmojiPicker-C30Ofq8B.mjs.map → NcEmojiPicker-lhuMMbDy.mjs.map} +1 -1
  107. package/dist/chunks/NcEmptyContent-BdOezubv.mjs +56 -0
  108. package/dist/chunks/NcEmptyContent-BdOezubv.mjs.map +1 -0
  109. package/dist/chunks/NcGuestContent-B_S2nyJ4.mjs +25 -0
  110. package/dist/chunks/NcGuestContent-B_S2nyJ4.mjs.map +1 -0
  111. package/dist/chunks/{NcHeaderMenu-CEH_-KT_.mjs → NcHeaderMenu-o9FmNBI5.mjs} +2 -2
  112. package/dist/chunks/{NcHeaderMenu-CEH_-KT_.mjs.map → NcHeaderMenu-o9FmNBI5.mjs.map} +1 -1
  113. package/dist/chunks/NcIconSvgWrapper-BOiCKv0b.mjs +68 -0
  114. package/dist/chunks/NcIconSvgWrapper-BOiCKv0b.mjs.map +1 -0
  115. package/dist/chunks/{NcInputConfirmCancel-DeWD9uc6.mjs → NcInputConfirmCancel-C1K1gyQA.mjs} +4 -4
  116. package/dist/chunks/{NcInputConfirmCancel-DeWD9uc6.mjs.map → NcInputConfirmCancel-C1K1gyQA.mjs.map} +1 -1
  117. package/dist/chunks/{NcListItem-CVX52kG-.mjs → NcListItem-C2LlJgjL.mjs} +6 -6
  118. package/dist/chunks/{NcListItem-CVX52kG-.mjs.map → NcListItem-C2LlJgjL.mjs.map} +1 -1
  119. package/dist/chunks/{NcListItemIcon-Cc6vXRrY.mjs → NcListItemIcon-5ms0eK3w.mjs} +6 -6
  120. package/dist/chunks/{NcListItemIcon-Cc6vXRrY.mjs.map → NcListItemIcon-5ms0eK3w.mjs.map} +1 -1
  121. package/dist/chunks/{NcMentionBubble.vue_vue_type_style_index_0_scoped_5b8f093f_lang-DZbkIMTW.mjs → NcMentionBubble.vue_vue_type_style_index_0_scoped_c29760cd_lang-CZdrlInz.mjs} +2 -2
  122. package/dist/chunks/{NcMentionBubble.vue_vue_type_style_index_0_scoped_5b8f093f_lang-DZbkIMTW.mjs.map → NcMentionBubble.vue_vue_type_style_index_0_scoped_c29760cd_lang-CZdrlInz.mjs.map} +1 -1
  123. package/dist/chunks/NcModal-BisVxXe_.mjs +780 -0
  124. package/dist/chunks/NcModal-BisVxXe_.mjs.map +1 -0
  125. package/dist/chunks/{NcPasswordField-CYPRKGml.mjs → NcPasswordField-hZiEd3tC.mjs} +2 -2
  126. package/dist/chunks/{NcPasswordField-CYPRKGml.mjs.map → NcPasswordField-hZiEd3tC.mjs.map} +1 -1
  127. package/dist/chunks/{NcPopover-EPnt2iHh.mjs → NcPopover-MsWUAvsI.mjs} +13 -6
  128. package/dist/chunks/NcPopover-MsWUAvsI.mjs.map +1 -0
  129. package/dist/chunks/{NcRelatedResourcesPanel-Bcy58V31.mjs → NcRelatedResourcesPanel-CShyi9lg.mjs} +3 -3
  130. package/dist/chunks/{NcRelatedResourcesPanel-Bcy58V31.mjs.map → NcRelatedResourcesPanel-CShyi9lg.mjs.map} +1 -1
  131. package/dist/chunks/{NcRichContenteditable-BR08SbpA.mjs → NcRichContenteditable-DgH9H1qf.mjs} +22 -42
  132. package/dist/chunks/NcRichContenteditable-DgH9H1qf.mjs.map +1 -0
  133. package/dist/chunks/{NcRichText-jZif8PdV.mjs → NcRichText-BkKK1moX.mjs} +8 -6
  134. package/dist/chunks/{NcRichText-jZif8PdV.mjs.map → NcRichText-BkKK1moX.mjs.map} +1 -1
  135. package/dist/chunks/{NcSelect-BkTH-Yqm.mjs → NcSelect-BSa2kSPW.mjs} +2 -4
  136. package/dist/chunks/NcSelect-BSa2kSPW.mjs.map +1 -0
  137. package/dist/chunks/{NcSelectTags-BY8LM7qV.mjs → NcSelectTags-BW0QroJV.mjs} +3 -3
  138. package/dist/chunks/{NcSelectTags-BY8LM7qV.mjs.map → NcSelectTags-BW0QroJV.mjs.map} +1 -1
  139. package/dist/chunks/NcSelectUsers-Bhx9k-0v.mjs +76 -0
  140. package/dist/chunks/NcSelectUsers-Bhx9k-0v.mjs.map +1 -0
  141. package/dist/chunks/{NcSettingsInputText-B129n9sr.mjs → NcSettingsInputText-CrOqaL-x.mjs} +2 -2
  142. package/dist/chunks/{NcSettingsInputText-B129n9sr.mjs.map → NcSettingsInputText-CrOqaL-x.mjs.map} +1 -1
  143. package/dist/chunks/{NcSettingsSection-CjWtq7TT.mjs → NcSettingsSection-D6ShpfeY.mjs} +2 -2
  144. package/dist/chunks/{NcSettingsSection-CjWtq7TT.mjs.map → NcSettingsSection-D6ShpfeY.mjs.map} +1 -1
  145. package/dist/chunks/{NcSettingsSelectGroup-B8uq0KIw.mjs → NcSettingsSelectGroup-DpNxkoZ2.mjs} +3 -3
  146. package/dist/chunks/{NcSettingsSelectGroup-B8uq0KIw.mjs.map → NcSettingsSelectGroup-DpNxkoZ2.mjs.map} +1 -1
  147. package/dist/chunks/{NcTextField-KGXtf7Y6.mjs → NcTextField-DJ1KtSKd.mjs} +4 -4
  148. package/dist/chunks/{NcTextField-KGXtf7Y6.mjs.map → NcTextField-DJ1KtSKd.mjs.map} +1 -1
  149. package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-DxoB-jLa.mjs → NcTimezonePicker.vue_vue_type_script_setup_true_lang-T3gPr-FV.mjs} +3 -3
  150. package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-DxoB-jLa.mjs.map → NcTimezonePicker.vue_vue_type_script_setup_true_lang-T3gPr-FV.mjs.map} +1 -1
  151. package/dist/chunks/{NcUserBubble-qqRewR9C.mjs → NcUserBubble-Csot0WLv.mjs} +3 -3
  152. package/dist/chunks/{NcUserBubble-qqRewR9C.mjs.map → NcUserBubble-Csot0WLv.mjs.map} +1 -1
  153. package/dist/chunks/{NcUserStatusIcon-DpZVD4HJ.mjs → NcUserStatusIcon-CtOZd90o.mjs} +54 -103
  154. package/dist/chunks/NcUserStatusIcon-CtOZd90o.mjs.map +1 -0
  155. package/dist/chunks/NcVNodes.vue_vue_type_script_lang-BqUHinRZ.mjs +23 -0
  156. package/dist/chunks/NcVNodes.vue_vue_type_script_lang-BqUHinRZ.mjs.map +1 -0
  157. package/dist/chunks/{_l10n-BNGeEX3W.mjs → _l10n-Bg-fZ9R0.mjs} +34 -38
  158. package/dist/chunks/_l10n-Bg-fZ9R0.mjs.map +1 -0
  159. package/dist/chunks/{actionText-BiV1_BZX.mjs → actionText-DdSwf9le.mjs} +7 -10
  160. package/dist/chunks/actionText-DdSwf9le.mjs.map +1 -0
  161. package/dist/chunks/{colors-CSUSQx1k.mjs → colors-BPGhD2C5.mjs} +2 -2
  162. package/dist/chunks/{colors-CSUSQx1k.mjs.map → colors-BPGhD2C5.mjs.map} +1 -1
  163. package/dist/chunks/{mdi-zYpVOORa.mjs → mdi-CR-3gwdl.mjs} +12 -8
  164. package/dist/chunks/{mdi-zYpVOORa.mjs.map → mdi-CR-3gwdl.mjs.map} +1 -1
  165. package/dist/chunks/{referencePickerModal-DzM7CkKN.mjs → referencePickerModal-Dw1szWUR.mjs} +10 -10
  166. package/dist/chunks/{referencePickerModal-DzM7CkKN.mjs.map → referencePickerModal-Dw1szWUR.mjs.map} +1 -1
  167. package/dist/chunks/{useFormatDateTime-BPGWjR3-.mjs → useFormatDateTime-L411ysPm.mjs} +2 -2
  168. package/dist/chunks/{useFormatDateTime-BPGWjR3-.mjs.map → useFormatDateTime-L411ysPm.mjs.map} +1 -1
  169. package/dist/chunks/{usernameToColor-Bl9NGU_9.mjs → usernameToColor-CuTR6O_B.mjs} +2 -2
  170. package/dist/chunks/{usernameToColor-Bl9NGU_9.mjs.map → usernameToColor-CuTR6O_B.mjs.map} +1 -1
  171. package/dist/components/NcActionButton/NcActionButton.vue.d.ts +38 -27
  172. package/dist/components/NcActionButton/index.mjs +1 -1
  173. package/dist/components/NcActionButtonGroup/index.mjs +1 -1
  174. package/dist/components/NcActionCheckbox/NcActionCheckbox.vue.d.ts +1 -1
  175. package/dist/components/NcActionInput/index.mjs +1 -1
  176. package/dist/components/NcActionLink/index.mjs +1 -1
  177. package/dist/components/NcActionRadio/NcActionRadio.vue.d.ts +1 -1
  178. package/dist/components/NcActionRouter/NcActionRouter.vue.d.ts +1 -4
  179. package/dist/components/NcActionRouter/index.mjs +1 -1
  180. package/dist/components/NcActionText/NcActionText.vue.d.ts +1 -4
  181. package/dist/components/NcActionText/index.mjs +1 -1
  182. package/dist/components/NcActionTextEditable/NcActionTextEditable.vue.d.ts +24 -9
  183. package/dist/components/NcActionTextEditable/index.mjs +1 -1
  184. package/dist/components/NcActions/index.mjs +1 -1
  185. package/dist/components/NcAppContent/NcAppContent.vue.d.ts +225 -0
  186. package/dist/components/NcAppContent/NcAppDetailsToggle.vue.d.ts +2 -0
  187. package/dist/components/NcAppContent/index.mjs +1 -1
  188. package/dist/components/NcAppContentDetails/NcAppContentDetails.vue.d.ts +27 -1
  189. package/dist/components/NcAppContentDetails/index.d.ts +4 -0
  190. package/dist/components/NcAppContentDetails/index.mjs +2 -2
  191. package/dist/components/NcAppNavigation/index.mjs +1 -1
  192. package/dist/components/NcAppNavigationCaption/index.mjs +1 -1
  193. package/dist/components/NcAppNavigationItem/index.mjs +1 -1
  194. package/dist/components/NcAppNavigationNewItem/index.mjs +1 -1
  195. package/dist/components/NcAppNavigationSearch/index.mjs +1 -1
  196. package/dist/components/NcAppNavigationSettings/index.mjs +1 -1
  197. package/dist/components/NcAppNavigationToggle/index.mjs +1 -1
  198. package/dist/components/NcAppSettingsDialog/index.mjs +1 -1
  199. package/dist/components/NcAppSidebar/NcAppSidebarTabs.vue.d.ts +7 -3
  200. package/dist/components/NcAppSidebar/index.mjs +1 -1
  201. package/dist/components/NcAppSidebarHeader/NcAppSidebarHeader.vue.d.ts +18 -0
  202. package/dist/components/NcAppSidebarHeader/index.d.ts +5 -0
  203. package/dist/components/NcAppSidebarHeader/index.mjs +5 -0
  204. package/dist/components/NcAppSidebarHeader/index.mjs.map +1 -0
  205. package/dist/components/NcAvatar/index.mjs +1 -1
  206. package/dist/components/NcBreadcrumb/index.mjs +1 -1
  207. package/dist/components/NcBreadcrumbs/index.mjs +1 -1
  208. package/dist/components/NcCheckboxRadioSwitch/index.mjs +1 -1
  209. package/dist/components/NcChip/NcChip.vue.d.ts +38 -6
  210. package/dist/components/NcChip/index.mjs +1 -1
  211. package/dist/components/NcCollectionList/index.mjs +1 -1
  212. package/dist/components/NcColorPicker/index.mjs +1 -1
  213. package/dist/components/NcContent/index.mjs +1 -1
  214. package/dist/components/NcCounterBubble/NcCounterBubble.vue.d.ts +10 -60
  215. package/dist/components/NcCounterBubble/index.d.ts +4 -0
  216. package/dist/components/NcCounterBubble/index.mjs +1 -1
  217. package/dist/components/NcDashboardWidget/index.mjs +1 -1
  218. package/dist/components/NcDashboardWidgetItem/index.mjs +1 -1
  219. package/dist/components/NcDateTime/index.mjs +1 -1
  220. package/dist/components/NcDateTimePicker/index.mjs +1 -1
  221. package/dist/components/NcDateTimePickerNative/NcDateTimePickerNative.vue.d.ts +178 -1
  222. package/dist/components/NcDateTimePickerNative/index.mjs +1 -1
  223. package/dist/components/NcDialog/NcDialog.vue.d.ts +4 -4
  224. package/dist/components/NcDialog/index.mjs +1 -1
  225. package/dist/components/NcDialogButton/NcDialogButton.vue.d.ts +1 -1
  226. package/dist/components/NcDialogButton/index.mjs +1 -1
  227. package/dist/components/NcEmojiPicker/index.mjs +1 -1
  228. package/dist/components/NcEmptyContent/NcEmptyContent.vue.d.ts +58 -28
  229. package/dist/components/NcEmptyContent/index.d.ts +4 -0
  230. package/dist/components/NcEmptyContent/index.mjs +1 -1
  231. package/dist/components/NcGuestContent/NcGuestContent.vue.d.ts +19 -1
  232. package/dist/components/NcGuestContent/index.d.ts +4 -0
  233. package/dist/components/NcGuestContent/index.mjs +1 -1
  234. package/dist/components/NcHeaderMenu/index.mjs +1 -1
  235. package/dist/components/NcIconSvgWrapper/NcIconSvgWrapper.vue.d.ts +12 -87
  236. package/dist/components/NcIconSvgWrapper/index.d.ts +4 -0
  237. package/dist/components/NcIconSvgWrapper/index.mjs +1 -1
  238. package/dist/components/NcListItem/index.mjs +1 -1
  239. package/dist/components/NcListItemIcon/index.mjs +1 -1
  240. package/dist/components/NcModal/index.d.ts +1 -2
  241. package/dist/components/NcModal/index.mjs +2 -779
  242. package/dist/components/NcModal/index.mjs.map +1 -1
  243. package/dist/components/NcPasswordField/index.mjs +1 -1
  244. package/dist/components/NcPopover/index.mjs +1 -1
  245. package/dist/components/NcRelatedResourcesPanel/index.mjs +1 -1
  246. package/dist/components/NcRichContenteditable/NcAutoCompleteResult.vue.d.ts +18 -19
  247. package/dist/components/NcRichContenteditable/NcMentionBubble.vue.d.ts +0 -18
  248. package/dist/components/NcRichContenteditable/NcRichContenteditable.vue.d.ts +3 -3
  249. package/dist/components/NcRichContenteditable/index.mjs +1 -1
  250. package/dist/components/NcRichText/NcReferencePicker/NcProviderList.vue.d.ts +41 -20
  251. package/dist/components/NcRichText/NcReferencePicker/NcSearch.vue.d.ts +41 -20
  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/NcSelectUsers.vue.d.ts +3 -3
  256. package/dist/components/NcSelectUsers/index.mjs +2 -70
  257. package/dist/components/NcSelectUsers/index.mjs.map +1 -1
  258. package/dist/components/NcSettingsInputText/NcSettingsInputText.vue.d.ts +3 -3
  259. package/dist/components/NcSettingsInputText/index.mjs +1 -1
  260. package/dist/components/NcSettingsSection/index.mjs +1 -1
  261. package/dist/components/NcSettingsSelectGroup/NcSettingsSelectGroup.vue.d.ts +2 -2
  262. package/dist/components/NcSettingsSelectGroup/index.mjs +1 -1
  263. package/dist/components/NcTextArea/NcTextArea.vue.d.ts +1 -1
  264. package/dist/components/NcTextField/index.mjs +1 -1
  265. package/dist/components/NcTimezonePicker/index.mjs +1 -1
  266. package/dist/components/NcUserBubble/index.mjs +1 -1
  267. package/dist/components/NcUserStatusIcon/NcUserStatusIcon.vue.d.ts +21 -1
  268. package/dist/components/NcUserStatusIcon/index.d.ts +4 -0
  269. package/dist/components/NcUserStatusIcon/index.mjs +1 -1
  270. package/dist/components/NcVNodes/NcVNodes.vue.d.ts +8 -3
  271. package/dist/components/NcVNodes/index.d.ts +4 -0
  272. package/dist/components/NcVNodes/index.mjs +2 -21
  273. package/dist/components/NcVNodes/index.mjs.map +1 -1
  274. package/dist/components/index.d.ts +11 -9
  275. package/dist/directives/Focus/index.d.ts +2 -3
  276. package/dist/directives/Focus/index.mjs +1 -2
  277. package/dist/directives/Focus/index.mjs.map +1 -1
  278. package/dist/directives/index.d.ts +1 -1
  279. package/dist/functions/dialog/index.d.ts +8 -1
  280. package/dist/functions/dialog/index.mjs.map +1 -1
  281. package/dist/functions/reference/index.mjs +1 -1
  282. package/dist/functions/usernameToColor/index.mjs +1 -1
  283. package/dist/index.mjs +140 -136
  284. package/dist/index.mjs.map +1 -1
  285. package/dist/mixins/actionText.d.ts +1 -6
  286. package/package.json +5 -6
  287. package/dist/assets/index-D9L0rgJk.css +0 -4
  288. package/dist/chunks/ChevronRight-LvtA5_hq.mjs +0 -49
  289. package/dist/chunks/ChevronRight-LvtA5_hq.mjs.map +0 -1
  290. package/dist/chunks/NcActionButton-BZEDhdCm.mjs.map +0 -1
  291. package/dist/chunks/NcActionInput-C_rmP0eZ.mjs.map +0 -1
  292. package/dist/chunks/NcActionTextEditable-Dv1_bMFY.mjs.map +0 -1
  293. package/dist/chunks/NcActions-DpYAcY6a.mjs.map +0 -1
  294. package/dist/chunks/NcAppContent-BMiA5ySy.mjs.map +0 -1
  295. package/dist/chunks/NcAppContentDetails-DsEEBJ0U.mjs +0 -16
  296. package/dist/chunks/NcAppContentDetails-DsEEBJ0U.mjs.map +0 -1
  297. package/dist/chunks/NcAppSidebar-B7shIqzm.mjs.map +0 -1
  298. package/dist/chunks/NcBreadcrumb-C3qGDt3z.mjs.map +0 -1
  299. package/dist/chunks/NcChip-Cq8DrWKb.mjs.map +0 -1
  300. package/dist/chunks/NcCounterBubble-6B_JNUUS.mjs +0 -78
  301. package/dist/chunks/NcCounterBubble-6B_JNUUS.mjs.map +0 -1
  302. package/dist/chunks/NcDateTimePickerNative-BRuMK89z.mjs.map +0 -1
  303. package/dist/chunks/NcEmptyContent-BQnIrQQn.mjs +0 -68
  304. package/dist/chunks/NcEmptyContent-BQnIrQQn.mjs.map +0 -1
  305. package/dist/chunks/NcGuestContent-iQpV7mLC.mjs +0 -23
  306. package/dist/chunks/NcGuestContent-iQpV7mLC.mjs.map +0 -1
  307. package/dist/chunks/NcIconSvgWrapper-Bc3ogp8T.mjs +0 -120
  308. package/dist/chunks/NcIconSvgWrapper-Bc3ogp8T.mjs.map +0 -1
  309. package/dist/chunks/NcPopover-EPnt2iHh.mjs.map +0 -1
  310. package/dist/chunks/NcRichContenteditable-BR08SbpA.mjs.map +0 -1
  311. package/dist/chunks/NcSelect-BkTH-Yqm.mjs.map +0 -1
  312. package/dist/chunks/NcUserStatusIcon-DpZVD4HJ.mjs.map +0 -1
  313. package/dist/chunks/ScopeComponent-BIpNSmeE.mjs +0 -15
  314. package/dist/chunks/ScopeComponent-BIpNSmeE.mjs.map +0 -1
  315. package/dist/chunks/_l10n-BNGeEX3W.mjs.map +0 -1
  316. package/dist/chunks/actionText-BiV1_BZX.mjs.map +0 -1
  317. package/dist/utils/ScopeComponent.d.ts +0 -6
@@ -0,0 +1,780 @@
1
+ import '../assets/NcModal-DaHROv08.css';
2
+ import { useSwipe } from "@vueuse/core";
3
+ import { m as mdiChevronRight, e as mdiChevronLeft } from "./mdi-CR-3gwdl.mjs";
4
+ import { createFocusTrap } from "focus-trap";
5
+ import { createElementBlock, openBlock, mergeProps, createElementVNode, createCommentVNode, toDisplayString, resolveComponent, createBlock, Transition, withCtx, withDirectives, normalizeStyle, normalizeClass, createVNode, renderSlot, withModifiers, vShow, warn } from "vue";
6
+ import { c as createElementId } from "./createElementId-DhjFt1I9.mjs";
7
+ import { g as getTrapStack } from "./focusTrap-DmkaYJTC.mjs";
8
+ import { r as register, x as t34, y as t18, a as t } from "./_l10n-Bg-fZ9R0.mjs";
9
+ import { N as NcActions } from "./NcActions-DS88I6qk.mjs";
10
+ import { N as NcButton } from "./NcButton-Byg8-ta1.mjs";
11
+ import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-BOiCKv0b.mjs";
12
+ import { I as IconClose } from "./Close-D6ngJ4t9.mjs";
13
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
14
+ register(t18, t34);
15
+ function timer(callback, delay) {
16
+ let id;
17
+ let started;
18
+ let remaining = delay;
19
+ let running;
20
+ this.start = function() {
21
+ running = true;
22
+ started = /* @__PURE__ */ new Date();
23
+ id = setTimeout(callback, remaining);
24
+ };
25
+ this.pause = function() {
26
+ running = false;
27
+ clearTimeout(id);
28
+ remaining -= /* @__PURE__ */ new Date() - started;
29
+ };
30
+ this.clear = function() {
31
+ running = false;
32
+ clearTimeout(id);
33
+ remaining = 0;
34
+ };
35
+ this.getTimeLeft = function() {
36
+ if (running) {
37
+ this.pause();
38
+ this.start();
39
+ }
40
+ return remaining;
41
+ };
42
+ this.getStateRunning = function() {
43
+ return running;
44
+ };
45
+ this.start();
46
+ }
47
+ const _sfc_main$2 = {
48
+ name: "PauseIcon",
49
+ emits: ["click"],
50
+ props: {
51
+ title: {
52
+ type: String
53
+ },
54
+ fillColor: {
55
+ type: String,
56
+ default: "currentColor"
57
+ },
58
+ size: {
59
+ type: Number,
60
+ default: 24
61
+ }
62
+ }
63
+ };
64
+ const _hoisted_1$2 = ["aria-hidden", "aria-label"];
65
+ const _hoisted_2$2 = ["fill", "width", "height"];
66
+ const _hoisted_3$2 = { d: "M14,19H18V5H14M6,19H10V5H6V19Z" };
67
+ const _hoisted_4$2 = { key: 0 };
68
+ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
69
+ return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, {
70
+ "aria-hidden": $props.title ? null : "true",
71
+ "aria-label": $props.title,
72
+ class: "material-design-icon pause-icon",
73
+ role: "img",
74
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
75
+ }), [
76
+ (openBlock(), createElementBlock("svg", {
77
+ fill: $props.fillColor,
78
+ class: "material-design-icon__svg",
79
+ width: $props.size,
80
+ height: $props.size,
81
+ viewBox: "0 0 24 24"
82
+ }, [
83
+ createElementVNode("path", _hoisted_3$2, [
84
+ $props.title ? (openBlock(), createElementBlock("title", _hoisted_4$2, toDisplayString($props.title), 1)) : createCommentVNode("", true)
85
+ ])
86
+ ], 8, _hoisted_2$2))
87
+ ], 16, _hoisted_1$2);
88
+ }
89
+ const Pause = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
90
+ const _sfc_main$1 = {
91
+ name: "PlayIcon",
92
+ emits: ["click"],
93
+ props: {
94
+ title: {
95
+ type: String
96
+ },
97
+ fillColor: {
98
+ type: String,
99
+ default: "currentColor"
100
+ },
101
+ size: {
102
+ type: Number,
103
+ default: 24
104
+ }
105
+ }
106
+ };
107
+ const _hoisted_1$1 = ["aria-hidden", "aria-label"];
108
+ const _hoisted_2$1 = ["fill", "width", "height"];
109
+ const _hoisted_3$1 = { d: "M8,5.14V19.14L19,12.14L8,5.14Z" };
110
+ const _hoisted_4$1 = { key: 0 };
111
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
112
+ return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, {
113
+ "aria-hidden": $props.title ? null : "true",
114
+ "aria-label": $props.title,
115
+ class: "material-design-icon play-icon",
116
+ role: "img",
117
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
118
+ }), [
119
+ (openBlock(), createElementBlock("svg", {
120
+ fill: $props.fillColor,
121
+ class: "material-design-icon__svg",
122
+ width: $props.size,
123
+ height: $props.size,
124
+ viewBox: "0 0 24 24"
125
+ }, [
126
+ createElementVNode("path", _hoisted_3$1, [
127
+ $props.title ? (openBlock(), createElementBlock("title", _hoisted_4$1, toDisplayString($props.title), 1)) : createCommentVNode("", true)
128
+ ])
129
+ ], 8, _hoisted_2$1))
130
+ ], 16, _hoisted_1$1);
131
+ }
132
+ const Play = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
133
+ const _sfc_main = {
134
+ name: "NcModal",
135
+ components: {
136
+ Close: IconClose,
137
+ Pause,
138
+ Play,
139
+ NcActions,
140
+ NcButton,
141
+ NcIconSvgWrapper
142
+ },
143
+ props: {
144
+ /**
145
+ * Name to be shown with the modal
146
+ */
147
+ name: {
148
+ type: String,
149
+ default: ""
150
+ },
151
+ /**
152
+ * Declare if a previous slide is available
153
+ */
154
+ hasPrevious: {
155
+ type: Boolean,
156
+ default: false
157
+ },
158
+ /**
159
+ * Declare if a next slide is available
160
+ */
161
+ hasNext: {
162
+ type: Boolean,
163
+ default: false
164
+ },
165
+ /**
166
+ * Declare if hiding the modal should be animated
167
+ */
168
+ outTransition: {
169
+ type: Boolean,
170
+ default: false
171
+ },
172
+ /**
173
+ * Declare if the slideshow functionality should be enabled
174
+ */
175
+ enableSlideshow: {
176
+ type: Boolean,
177
+ default: false
178
+ },
179
+ /**
180
+ * Declare the slide interval
181
+ */
182
+ slideshowDelay: {
183
+ type: Number,
184
+ default: 5e3
185
+ },
186
+ /**
187
+ * Allow to pause an ongoing slideshow
188
+ */
189
+ slideshowPaused: {
190
+ type: Boolean,
191
+ default: false
192
+ },
193
+ /**
194
+ * Disable swipe between slides
195
+ */
196
+ disableSwipe: {
197
+ type: Boolean,
198
+ default: false
199
+ },
200
+ spreadNavigation: {
201
+ type: Boolean,
202
+ default: false
203
+ },
204
+ /**
205
+ * Defines the modal size.
206
+ * Default is 'normal'.
207
+ * Available are 'small', 'normal', 'large' and 'full'.
208
+ * All sizes except 'small' change automatically to full-screen on mobile.
209
+ */
210
+ size: {
211
+ type: String,
212
+ default: "normal",
213
+ validator: (size) => {
214
+ return ["small", "normal", "large", "full"].includes(size);
215
+ }
216
+ },
217
+ /**
218
+ * Do not show the close button for the dialog.
219
+ * @default false
220
+ */
221
+ noClose: {
222
+ type: Boolean,
223
+ default: false
224
+ },
225
+ /**
226
+ * Close the modal if the user clicked outside the modal
227
+ * Only relevant if `noClose` is not set.
228
+ */
229
+ closeOnClickOutside: {
230
+ type: Boolean,
231
+ default: false
232
+ },
233
+ /**
234
+ * Makes the modal backdrop opaque if true
235
+ * Will be overwritten if some buttons are shown outside
236
+ */
237
+ dark: {
238
+ type: Boolean,
239
+ default: false
240
+ },
241
+ /**
242
+ * Set light backdrop. Makes the modal header appear light.
243
+ */
244
+ lightBackdrop: {
245
+ type: Boolean,
246
+ default: false
247
+ },
248
+ /**
249
+ * Selector for the modal container, pass `null` to prevent automatic container mounting
250
+ */
251
+ container: {
252
+ type: [String, null],
253
+ default: "body"
254
+ },
255
+ /**
256
+ * Pass in `true` if you want the modal 'close' button to be displayed
257
+ * outside the modal boundaries, in the top right corner of the window.
258
+ *
259
+ * @default false
260
+ * @since 8.25.0
261
+ */
262
+ closeButtonOutside: {
263
+ type: Boolean,
264
+ default: false
265
+ },
266
+ /**
267
+ * Additional elements to add to the focus trap
268
+ */
269
+ additionalTrapElements: {
270
+ type: Array,
271
+ default: () => []
272
+ },
273
+ /**
274
+ * Display x items inline
275
+ *
276
+ * @see Actions component usage
277
+ */
278
+ inlineActions: {
279
+ type: Number,
280
+ default: 0
281
+ },
282
+ show: {
283
+ type: Boolean,
284
+ default: void 0
285
+ },
286
+ /**
287
+ * Id of the element that labels the dialog (the name)
288
+ * Not needed if the `name` prop is set, but if no name is set you need to provide the ID of an element to label the dialog for accessibility.
289
+ */
290
+ labelId: {
291
+ type: String,
292
+ default: ""
293
+ },
294
+ /**
295
+ * Set element to return focus to after focus trap deactivation
296
+ *
297
+ * @type {import('focus-trap').FocusTargetValueOrFalse}
298
+ */
299
+ setReturnFocus: {
300
+ default: void 0,
301
+ type: [HTMLElement, SVGElement, String, Boolean]
302
+ }
303
+ },
304
+ emits: [
305
+ "previous",
306
+ "next",
307
+ "close",
308
+ "update:show"
309
+ ],
310
+ setup() {
311
+ return {
312
+ mdiChevronLeft,
313
+ mdiChevronRight
314
+ };
315
+ },
316
+ data() {
317
+ return {
318
+ mc: null,
319
+ playing: false,
320
+ slideshowTimeout: null,
321
+ iconSize: 24,
322
+ focusTrap: null,
323
+ externalFocusTrapStack: [],
324
+ randId: createElementId(),
325
+ internalShow: true
326
+ };
327
+ },
328
+ computed: {
329
+ /**
330
+ * ID of the element to label the modal
331
+ */
332
+ modalLabelId() {
333
+ return this.labelId || `modal-name-${this.randId}`;
334
+ },
335
+ showModal() {
336
+ return this.show === void 0 ? this.internalShow : this.show;
337
+ },
338
+ modalTransitionName() {
339
+ return `modal-${this.outTransition ? "out" : "in"}`;
340
+ },
341
+ playPauseName() {
342
+ return this.playing ? t("Pause slideshow") : t("Start slideshow");
343
+ },
344
+ cssVariables() {
345
+ return {
346
+ "--slideshow-duration": this.slideshowDelay + "ms",
347
+ "--icon-size": this.iconSize + "px"
348
+ };
349
+ },
350
+ closeButtonAriaLabel() {
351
+ return t("Close");
352
+ },
353
+ prevButtonAriaLabel() {
354
+ return t("Previous");
355
+ },
356
+ nextButtonAriaLabel() {
357
+ return t("Next");
358
+ }
359
+ },
360
+ watch: {
361
+ /**
362
+ * Handle play/pause of an ongoing slideshow
363
+ *
364
+ * @param {boolean} paused is the player paused
365
+ */
366
+ slideshowPaused(paused) {
367
+ if (this.slideshowTimeout) {
368
+ if (paused) {
369
+ this.slideshowTimeout.pause();
370
+ } else {
371
+ this.slideshowTimeout.start();
372
+ }
373
+ }
374
+ },
375
+ additionalTrapElements(elements) {
376
+ if (this.focusTrap) {
377
+ const contentContainer = this.$refs.mask;
378
+ this.focusTrap.updateContainerElements([contentContainer, ...elements]);
379
+ }
380
+ }
381
+ },
382
+ beforeMount() {
383
+ window.addEventListener("keydown", this.handleKeydown);
384
+ },
385
+ beforeUnmount() {
386
+ window.removeEventListener("keydown", this.handleKeydown);
387
+ this.mc.stop();
388
+ },
389
+ mounted() {
390
+ if (!this.name && !this.labelId) {
391
+ warn("[NcModal] You need either set the name or set a `labelId` for accessibility.");
392
+ }
393
+ this.useFocusTrap();
394
+ this.mc = useSwipe(this.$refs.mask, {
395
+ onSwipeEnd: this.handleSwipe
396
+ });
397
+ if (this.container) {
398
+ if (this.container === "body") {
399
+ document.body.insertBefore(this.$el, document.body.lastChild);
400
+ } else {
401
+ const container = document.querySelector(this.container);
402
+ container.appendChild(this.$el);
403
+ }
404
+ }
405
+ },
406
+ unmounted() {
407
+ this.clearFocusTrap();
408
+ this.$el.remove();
409
+ },
410
+ methods: {
411
+ t,
412
+ // Events emitters
413
+ previous(event) {
414
+ if (this.hasPrevious) {
415
+ if (event) {
416
+ this.resetSlideshow();
417
+ }
418
+ this.$emit("previous", event);
419
+ }
420
+ },
421
+ next(event) {
422
+ if (this.hasNext) {
423
+ if (event) {
424
+ this.resetSlideshow();
425
+ }
426
+ this.$emit("next", event);
427
+ }
428
+ },
429
+ close(data) {
430
+ if (this.noClose) {
431
+ return;
432
+ }
433
+ this.internalShow = false;
434
+ this.$emit("update:show", false);
435
+ setTimeout(() => {
436
+ this.$emit("close", data);
437
+ }, 300);
438
+ },
439
+ /**
440
+ * Handle click on modal wrapper
441
+ * If `closeOnClickOutside` is set the modal will be closed
442
+ *
443
+ * @param {MouseEvent} event The click event
444
+ */
445
+ handleClickModalWrapper(event) {
446
+ if (this.closeOnClickOutside) {
447
+ this.close(event);
448
+ }
449
+ },
450
+ /**
451
+ * @param {KeyboardEvent} event - keyboard event
452
+ */
453
+ handleKeydown(event) {
454
+ if (event.key === "Escape") {
455
+ const trapStack = getTrapStack();
456
+ if (trapStack.length > 0 && trapStack[trapStack.length - 1] !== this.focusTrap) {
457
+ return;
458
+ }
459
+ return this.close(event);
460
+ }
461
+ const arrowHandlers = {
462
+ ArrowLeft: this.previous,
463
+ ArrowRight: this.next
464
+ };
465
+ if (arrowHandlers[event.key]) {
466
+ if (document.activeElement && !this.$el.contains(document.activeElement)) {
467
+ return;
468
+ }
469
+ return arrowHandlers[event.key](event);
470
+ }
471
+ },
472
+ /**
473
+ * handle the swipe event
474
+ *
475
+ * @param {TouchEvent} e The touch event
476
+ * @param {import('@vueuse/core').SwipeDirection} direction Swipe direction
477
+ */
478
+ handleSwipe(e, direction) {
479
+ if (!this.disableSwipe) {
480
+ if (direction === "left") {
481
+ this.next(e);
482
+ } else if (direction === "right") {
483
+ this.previous(e);
484
+ }
485
+ }
486
+ },
487
+ /**
488
+ * Toggle the slideshow state
489
+ */
490
+ togglePlayPause() {
491
+ this.playing = !this.playing;
492
+ if (this.playing) {
493
+ this.handleSlideshow();
494
+ } else {
495
+ this.clearSlideshowTimeout();
496
+ }
497
+ },
498
+ /**
499
+ * Reset the slideshow timer and keep going if it was on
500
+ */
501
+ resetSlideshow() {
502
+ this.playing = !this.playing;
503
+ this.clearSlideshowTimeout();
504
+ this.$nextTick(function() {
505
+ this.togglePlayPause();
506
+ });
507
+ },
508
+ /**
509
+ * Handle the slideshow timer and next event
510
+ */
511
+ handleSlideshow() {
512
+ this.playing = true;
513
+ if (this.hasNext) {
514
+ this.slideshowTimeout = new timer(() => {
515
+ this.next();
516
+ this.handleSlideshow();
517
+ }, this.slideshowDelay);
518
+ } else {
519
+ this.playing = false;
520
+ this.clearSlideshowTimeout();
521
+ }
522
+ },
523
+ /**
524
+ * Clear slideshowTimeout if ongoing
525
+ */
526
+ clearSlideshowTimeout() {
527
+ if (this.slideshowTimeout) {
528
+ this.slideshowTimeout.clear();
529
+ }
530
+ },
531
+ /**
532
+ * Add focus trap for accessibility.
533
+ */
534
+ async useFocusTrap() {
535
+ if (!this.showModal || this.focusTrap) {
536
+ return;
537
+ }
538
+ const contentContainer = this.$refs.mask;
539
+ await this.$nextTick();
540
+ const options = {
541
+ allowOutsideClick: true,
542
+ fallbackFocus: contentContainer,
543
+ trapStack: getTrapStack(),
544
+ // Esc can be used without stop in content or additionalTrapElements where it should not deactivate modal's focus trap.
545
+ // Focus trap is deactivated on modal close anyway.
546
+ escapeDeactivates: false,
547
+ setReturnFocus: this.setReturnFocus
548
+ };
549
+ this.externalFocusTrapStack = [...options.trapStack];
550
+ for (const trap of this.externalFocusTrapStack) {
551
+ trap.deactivate();
552
+ }
553
+ this.focusTrap = createFocusTrap([contentContainer, ...this.additionalTrapElements], options);
554
+ this.focusTrap.activate();
555
+ },
556
+ clearFocusTrap() {
557
+ if (!this.focusTrap) {
558
+ return;
559
+ }
560
+ this.focusTrap?.deactivate();
561
+ this.focusTrap = null;
562
+ for (const trap of this.externalFocusTrapStack) {
563
+ trap.activate();
564
+ }
565
+ this.externalFocusTrapStack = [];
566
+ }
567
+ }
568
+ };
569
+ const _hoisted_1 = ["aria-labelledby", "aria-describedby"];
570
+ const _hoisted_2 = ["data-theme-light", "data-theme-dark"];
571
+ const _hoisted_3 = ["id"];
572
+ const _hoisted_4 = { class: "icons-menu" };
573
+ const _hoisted_5 = ["title"];
574
+ const _hoisted_6 = { class: "hidden-visually" };
575
+ const _hoisted_7 = {
576
+ key: 2,
577
+ class: "progress-ring",
578
+ height: "50",
579
+ width: "50"
580
+ };
581
+ const _hoisted_8 = ["id"];
582
+ const _hoisted_9 = { class: "modal-container__content" };
583
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
584
+ const _component_Play = resolveComponent("Play");
585
+ const _component_Pause = resolveComponent("Pause");
586
+ const _component_NcActions = resolveComponent("NcActions");
587
+ const _component_Close = resolveComponent("Close");
588
+ const _component_NcButton = resolveComponent("NcButton");
589
+ const _component_NcIconSvgWrapper = resolveComponent("NcIconSvgWrapper");
590
+ return openBlock(), createBlock(Transition, {
591
+ name: "fade",
592
+ appear: "",
593
+ onAfterEnter: $options.useFocusTrap,
594
+ onBeforeLeave: $options.clearFocusTrap
595
+ }, {
596
+ default: withCtx(() => [
597
+ withDirectives(createElementVNode("div", {
598
+ ref: "mask",
599
+ class: normalizeClass(["modal-mask", {
600
+ "modal-mask--opaque": $props.dark || $props.closeButtonOutside || $props.hasPrevious || $props.hasNext,
601
+ "modal-mask--light": $props.lightBackdrop
602
+ }]),
603
+ style: normalizeStyle($options.cssVariables),
604
+ role: "dialog",
605
+ "aria-modal": "true",
606
+ "aria-labelledby": $options.modalLabelId,
607
+ "aria-describedby": "modal-description-" + $data.randId,
608
+ tabindex: "-1"
609
+ }, [
610
+ createVNode(Transition, {
611
+ name: "fade-visibility",
612
+ appear: ""
613
+ }, {
614
+ default: withCtx(() => [
615
+ createElementVNode("div", {
616
+ class: "modal-header",
617
+ "data-theme-light": $props.lightBackdrop,
618
+ "data-theme-dark": !$props.lightBackdrop
619
+ }, [
620
+ $props.name.trim() !== "" ? (openBlock(), createElementBlock("h2", {
621
+ key: 0,
622
+ id: "modal-name-" + $data.randId,
623
+ class: "modal-header__name"
624
+ }, toDisplayString($props.name), 9, _hoisted_3)) : createCommentVNode("", true),
625
+ createElementVNode("div", _hoisted_4, [
626
+ $props.hasNext && $props.enableSlideshow ? (openBlock(), createElementBlock("button", {
627
+ key: 0,
628
+ class: normalizeClass([{ "play-pause-icons--paused": $props.slideshowPaused }, "play-pause-icons"]),
629
+ title: $options.playPauseName,
630
+ type: "button",
631
+ onClick: _cache[0] || (_cache[0] = (...args) => $options.togglePlayPause && $options.togglePlayPause(...args))
632
+ }, [
633
+ !$data.playing ? (openBlock(), createBlock(_component_Play, {
634
+ key: 0,
635
+ size: $data.iconSize,
636
+ class: "play-pause-icons__play"
637
+ }, null, 8, ["size"])) : (openBlock(), createBlock(_component_Pause, {
638
+ key: 1,
639
+ size: $data.iconSize,
640
+ class: "play-pause-icons__pause"
641
+ }, null, 8, ["size"])),
642
+ createElementVNode("span", _hoisted_6, toDisplayString($options.playPauseName), 1),
643
+ $data.playing ? (openBlock(), createElementBlock("svg", _hoisted_7, _cache[2] || (_cache[2] = [
644
+ createElementVNode("circle", {
645
+ class: "progress-ring__circle",
646
+ stroke: "white",
647
+ "stroke-width": "2",
648
+ fill: "transparent",
649
+ r: "15",
650
+ cx: "25",
651
+ cy: "25"
652
+ }, null, -1)
653
+ ]))) : createCommentVNode("", true)
654
+ ], 10, _hoisted_5)) : createCommentVNode("", true),
655
+ createVNode(_component_NcActions, {
656
+ class: "header-actions",
657
+ inline: $props.inlineActions
658
+ }, {
659
+ default: withCtx(() => [
660
+ renderSlot(_ctx.$slots, "actions", {}, void 0, true)
661
+ ]),
662
+ _: 3
663
+ }, 8, ["inline"]),
664
+ !$props.noClose && $props.closeButtonOutside ? (openBlock(), createBlock(_component_NcButton, {
665
+ key: 1,
666
+ "aria-label": $options.closeButtonAriaLabel,
667
+ class: "header-close",
668
+ variant: "tertiary",
669
+ onClick: $options.close
670
+ }, {
671
+ icon: withCtx(() => [
672
+ createVNode(_component_Close, { size: $data.iconSize }, null, 8, ["size"])
673
+ ]),
674
+ _: 1
675
+ }, 8, ["aria-label", "onClick"])) : createCommentVNode("", true)
676
+ ])
677
+ ], 8, _hoisted_2)
678
+ ]),
679
+ _: 3
680
+ }),
681
+ createVNode(Transition, {
682
+ name: $options.modalTransitionName,
683
+ appear: ""
684
+ }, {
685
+ default: withCtx(() => [
686
+ withDirectives(createElementVNode("div", {
687
+ class: normalizeClass([[
688
+ `modal-wrapper--${$props.size}`,
689
+ { "modal-wrapper--spread-navigation": $props.spreadNavigation }
690
+ ], "modal-wrapper"]),
691
+ onMousedown: _cache[1] || (_cache[1] = withModifiers((...args) => $options.handleClickModalWrapper && $options.handleClickModalWrapper(...args), ["self"]))
692
+ }, [
693
+ createVNode(Transition, {
694
+ name: "fade-visibility",
695
+ appear: ""
696
+ }, {
697
+ default: withCtx(() => [
698
+ withDirectives(createVNode(_component_NcButton, {
699
+ "aria-label": $options.prevButtonAriaLabel,
700
+ class: "prev",
701
+ variant: "tertiary-no-background",
702
+ onClick: $options.previous
703
+ }, {
704
+ icon: withCtx(() => [
705
+ createVNode(_component_NcIconSvgWrapper, {
706
+ directional: "",
707
+ path: $setup.mdiChevronLeft,
708
+ size: 40
709
+ }, null, 8, ["path"])
710
+ ]),
711
+ _: 1
712
+ }, 8, ["aria-label", "onClick"]), [
713
+ [vShow, $props.hasPrevious]
714
+ ])
715
+ ]),
716
+ _: 1
717
+ }),
718
+ createElementVNode("div", {
719
+ id: "modal-description-" + $data.randId,
720
+ class: "modal-container"
721
+ }, [
722
+ createElementVNode("div", _hoisted_9, [
723
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
724
+ ]),
725
+ !$props.noClose && !$props.closeButtonOutside ? (openBlock(), createBlock(_component_NcButton, {
726
+ key: 0,
727
+ "aria-label": $options.closeButtonAriaLabel,
728
+ class: "modal-container__close",
729
+ variant: "tertiary",
730
+ onClick: $options.close
731
+ }, {
732
+ icon: withCtx(() => [
733
+ createVNode(_component_Close, { size: 20 })
734
+ ]),
735
+ _: 1
736
+ }, 8, ["aria-label", "onClick"])) : createCommentVNode("", true)
737
+ ], 8, _hoisted_8),
738
+ createVNode(Transition, {
739
+ name: "fade-visibility",
740
+ appear: ""
741
+ }, {
742
+ default: withCtx(() => [
743
+ withDirectives(createVNode(_component_NcButton, {
744
+ "aria-label": $options.nextButtonAriaLabel,
745
+ class: "next",
746
+ variant: "tertiary-no-background",
747
+ onClick: $options.next
748
+ }, {
749
+ icon: withCtx(() => [
750
+ createVNode(_component_NcIconSvgWrapper, {
751
+ directional: "",
752
+ path: $setup.mdiChevronRight,
753
+ size: 40
754
+ }, null, 8, ["path"])
755
+ ]),
756
+ _: 1
757
+ }, 8, ["aria-label", "onClick"]), [
758
+ [vShow, $props.hasNext]
759
+ ])
760
+ ]),
761
+ _: 1
762
+ })
763
+ ], 34), [
764
+ [vShow, $options.showModal]
765
+ ])
766
+ ]),
767
+ _: 3
768
+ }, 8, ["name"])
769
+ ], 14, _hoisted_1), [
770
+ [vShow, $options.showModal]
771
+ ])
772
+ ]),
773
+ _: 3
774
+ }, 8, ["onAfterEnter", "onBeforeLeave"]);
775
+ }
776
+ const NcModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-33bcf64a"]]);
777
+ export {
778
+ NcModal as N
779
+ };
780
+ //# sourceMappingURL=NcModal-BisVxXe_.mjs.map