@nextcloud/vue 9.0.0-alpha.6 → 9.0.0-alpha.8

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 (561) hide show
  1. package/CHANGELOG.md +376 -149
  2. package/README.md +69 -66
  3. package/dist/assets/{NcActionButton-BLoWchS5.css → NcActionButton-d8aZCq9u.css} +19 -16
  4. package/dist/assets/{NcActionCaption-B7FZTc3Y.css → NcActionCaption-DnG2OyWa.css} +4 -4
  5. package/dist/assets/{NcActionCheckbox-CoQEhC0c.css → NcActionCheckbox-tMIOGziy.css} +18 -17
  6. package/dist/assets/{NcActionInput-BEvIPQv2.css → NcActionInput-C-rQsTEA.css} +71 -65
  7. package/dist/assets/{NcActionLink-Dxv-rmRR.css → NcActionLink-jSPFFKV8.css} +15 -12
  8. package/dist/assets/{NcActionRadio-CsMcYeMT.css → NcActionRadio-xdrmoEIq.css} +19 -18
  9. package/dist/assets/{NcActionRouter-CflTO8Z-.css → NcActionRouter-qNNqBZab.css} +18 -15
  10. package/dist/assets/{NcActionText-CV2sRLti.css → NcActionText-0XNfku_2.css} +20 -17
  11. package/dist/assets/{NcActionTextEditable-Nufxk13g.css → NcActionTextEditable-ZlNtR_B_.css} +70 -64
  12. package/dist/assets/{NcActions-P5DOkDHr.css → NcActions-D7gPHaUE.css} +12 -15
  13. package/dist/assets/{NcAppContent-CyHAUPNL.css → NcAppContent-CLu_1q4O.css} +24 -24
  14. package/dist/assets/{NcAppNavigation-B21SNH2o.css → NcAppNavigation-BXItV5BV.css} +13 -13
  15. package/dist/assets/{NcAppNavigationCaption-Ddf7LHGR.css → NcAppNavigationCaption-B6mZd0E3.css} +9 -8
  16. package/dist/assets/{NcAppNavigationItem-OPiz-90P.css → NcAppNavigationItem-aVy0uQwf.css} +46 -39
  17. package/dist/assets/{NcAppNavigationNew-R0QcGqvG.css → NcAppNavigationNew-Ba3wWpcY.css} +3 -3
  18. package/dist/assets/{NcAppNavigationNewItem-BoSjpr5m.css → NcAppNavigationNewItem-rCrG0Uuo.css} +44 -37
  19. package/dist/assets/{NcAppNavigationSearch-C5RevjgZ.css → NcAppNavigationSearch-BAzhDRd7.css} +6 -6
  20. package/dist/assets/NcAppNavigationSettings-BDc6Mtek.css +29 -0
  21. package/dist/assets/{NcAppNavigationToggle-D2c7IdEL.css → NcAppNavigationToggle-DnTKNSH7.css} +3 -3
  22. package/dist/assets/{NcAppSettingsDialog-B6Pliptg.css → NcAppSettingsDialog-DZfD_UEa.css} +11 -11
  23. package/dist/assets/{NcAppSidebar-DJR5EHRN.css → NcAppSidebar-GFQ62pY2.css} +61 -61
  24. package/dist/assets/{NcAvatar-0pU8ivmq.css → NcAvatar-DUKfNDGL.css} +27 -27
  25. package/dist/assets/NcBlurHash-7aGtE-_T.css +8 -0
  26. package/dist/assets/{NcBreadcrumb-10d4k_Pc.css → NcBreadcrumb-CV3DgRKn.css} +15 -15
  27. package/dist/assets/{NcBreadcrumbs-aYVMDayQ.css → NcBreadcrumbs-D2wff82k.css} +6 -6
  28. package/dist/assets/{NcButton-DoYn-HfJ.css → NcButton-wmjlEdLP.css} +48 -49
  29. package/dist/assets/{NcCheckboxRadioSwitch-CG-8Isv_.css → NcCheckboxRadioSwitch-uwXbP_jb.css} +42 -42
  30. package/dist/assets/{NcChip-JjMdjcjN.css → NcChip-CKtzzrlA.css} +9 -9
  31. package/dist/assets/{NcCollectionList-B4azFVAf.css → NcCollectionList-DTJgOfCk.css} +29 -29
  32. package/dist/assets/{NcColorPicker-B4Vqq3HN.css → NcColorPicker-Clz7MjCA.css} +29 -31
  33. package/dist/assets/{NcContent-CQc_dM2n.css → NcContent-aXaYSfjS.css} +10 -10
  34. package/dist/assets/{NcDashboardWidget-Hc2DAw3Y.css → NcDashboardWidget-xV4o6Cen.css} +14 -15
  35. package/dist/assets/NcDateTimePicker-AIJmp5dC.css +81 -0
  36. package/dist/assets/NcDateTimePickerNative-CdHLvH4A.css +60 -0
  37. package/dist/assets/{NcDialog-DG8bAh01.css → NcDialog-Dkeikssh.css} +15 -15
  38. package/dist/assets/{NcEllipsisedOption-CTvngv1F.css → NcEllipsisedOption-D-IsjXWc.css} +5 -5
  39. package/dist/assets/{NcEmojiPicker-BDp_Jc8K.css → NcEmojiPicker-DnMU8iEd.css} +91 -69
  40. package/dist/assets/{NcEmptyContent-C-nruaFh.css → NcEmptyContent-D1O466rM.css} +9 -9
  41. package/dist/assets/{NcHeaderButton-8c2zDKtV.css → NcHeaderButton-BPIasMkw.css} +8 -7
  42. package/dist/assets/{NcHeaderMenu-CDlSXB2d.css → NcHeaderMenu-ZmtqwEYA.css} +12 -11
  43. package/dist/assets/{NcInputConfirmCancel-DBjIHKvN.css → NcInputConfirmCancel-9YyvRYjw.css} +6 -6
  44. package/dist/assets/{NcInputField-CthOpVGS.css → NcInputField-B8J2uFD4.css} +32 -32
  45. package/dist/assets/{NcListItem-oz15CnUw.css → NcListItem-Byw-ayOI.css} +44 -44
  46. package/dist/assets/{NcListItemIcon-d5-l-ZB1.css → NcListItemIcon-Bnr-Z-SO.css} +14 -14
  47. package/dist/assets/{NcMentionBubble-C6t8od-_.css → NcMentionBubble-BL05HUeF.css} +12 -13
  48. package/dist/assets/{NcPasswordField-By-kPRJC.css → NcPasswordField-z9gbKnov.css} +2 -2
  49. package/dist/assets/{NcPopover-BGWT8K0v.css → NcPopover-ChETNAVH.css} +16 -5
  50. package/dist/assets/{NcRelatedResourcesPanel-CrarpPeQ.css → NcRelatedResourcesPanel-DXfywiqL.css} +23 -23
  51. package/dist/assets/{NcRichContenteditable-heb9EQV3.css → NcRichContenteditable-Bxi-Ki0j.css} +41 -39
  52. package/dist/assets/NcRichText-Dvt8jvWN.css +326 -0
  53. package/dist/assets/{NcSelect-EIXtZSVn.css → NcSelect-B6DUjUdl.css} +2 -2
  54. package/dist/assets/{NcSettingsInputText-C3j73xA0.css → NcSettingsInputText-B-V6Y4MD.css} +7 -7
  55. package/dist/assets/{NcSettingsSelectGroup-CGfaysRv.css → NcSettingsSelectGroup-DZcNr_Dq.css} +2 -2
  56. package/dist/assets/{NcTextArea-CUPKm8vZ.css → NcTextArea-DHr9DPOJ.css} +20 -20
  57. package/dist/assets/{NcUserBubble-DE3IWeZN.css → NcUserBubble-tSs2XTDQ.css} +11 -11
  58. package/dist/assets/{index-BHBrLd2w.css → index-Du_FXiPy.css} +61 -61
  59. package/dist/assets/{referencePickerModal-CZYRGXDd.css → referencePickerModal-CkGgDb19.css} +46 -46
  60. package/dist/chunks/{AlertCircleOutline-DoHidQlr.mjs → AlertCircleOutline-DVzpKQVu.mjs} +2 -1
  61. package/dist/chunks/{AlertCircleOutline-DoHidQlr.mjs.map → AlertCircleOutline-DVzpKQVu.mjs.map} +1 -1
  62. package/dist/chunks/{ArrowLeft-DCZ3CkUw.mjs → ArrowLeft-CanHG70H.mjs} +2 -1
  63. package/dist/chunks/{ArrowLeft-DCZ3CkUw.mjs.map → ArrowLeft-CanHG70H.mjs.map} +1 -1
  64. package/dist/chunks/{ArrowRight-CCodNfTT.mjs → ArrowRight-DQT24Cb-.mjs} +2 -1
  65. package/dist/chunks/{ArrowRight-CCodNfTT.mjs.map → ArrowRight-DQT24Cb-.mjs.map} +1 -1
  66. package/dist/chunks/{Check-DDuGOKMw.mjs → Check-5i4xKnkl.mjs} +2 -1
  67. package/dist/chunks/{Check-DDuGOKMw.mjs.map → Check-5i4xKnkl.mjs.map} +1 -1
  68. package/dist/chunks/{ChevronDown-C6gc637b.mjs → ChevronDown-FiGpp0KT.mjs} +2 -1
  69. package/dist/chunks/{ChevronDown-C6gc637b.mjs.map → ChevronDown-FiGpp0KT.mjs.map} +1 -1
  70. package/dist/chunks/{ChevronLeft-uQipmOWv.mjs → ChevronLeft-FfC-tiIS.mjs} +2 -1
  71. package/dist/chunks/{ChevronLeft-uQipmOWv.mjs.map → ChevronLeft-FfC-tiIS.mjs.map} +1 -1
  72. package/dist/chunks/{ChevronRight-D4KvRLyO.mjs → ChevronRight-LvtA5_hq.mjs} +2 -1
  73. package/dist/chunks/{ChevronRight-D4KvRLyO.mjs.map → ChevronRight-LvtA5_hq.mjs.map} +1 -1
  74. package/dist/chunks/{ChevronUp-ChH8oB7p.mjs → ChevronUp-DPXFp1ss.mjs} +2 -1
  75. package/dist/chunks/{ChevronUp-ChH8oB7p.mjs.map → ChevronUp-DPXFp1ss.mjs.map} +1 -1
  76. package/dist/chunks/{Close-9bmgDVZE.mjs → Close-D6ngJ4t9.mjs} +4 -3
  77. package/dist/chunks/{Close-9bmgDVZE.mjs.map → Close-D6ngJ4t9.mjs.map} +1 -1
  78. package/dist/chunks/{DotsHorizontal-bCAjz9wZ.mjs → DotsHorizontal-AMVAlTNH.mjs} +2 -1
  79. package/dist/chunks/{DotsHorizontal-bCAjz9wZ.mjs.map → DotsHorizontal-AMVAlTNH.mjs.map} +1 -1
  80. package/dist/chunks/{NcActionButton-B3JQywgv.mjs → NcActionButton-BdQ_qmvW.mjs} +14 -12
  81. package/dist/chunks/{NcActionButton-B3JQywgv.mjs.map → NcActionButton-BdQ_qmvW.mjs.map} +1 -1
  82. package/dist/chunks/{NcActionButtonGroup-DtHcJpaH.mjs → NcActionButtonGroup-TitZerDl.mjs} +8 -6
  83. package/dist/chunks/NcActionButtonGroup-TitZerDl.mjs.map +1 -0
  84. package/dist/chunks/{NcActionCaption-BeVuTBKE.mjs → NcActionCaption-Fumfjzxj.mjs} +6 -4
  85. package/dist/chunks/NcActionCaption-Fumfjzxj.mjs.map +1 -0
  86. package/dist/chunks/{NcActionCheckbox-DdLcVat_.mjs → NcActionCheckbox-CUYbo1rw.mjs} +8 -6
  87. package/dist/chunks/NcActionCheckbox-CUYbo1rw.mjs.map +1 -0
  88. package/dist/chunks/{NcActionInput-CxPmTwTo.mjs → NcActionInput-TI648L3V.mjs} +13 -12
  89. package/dist/chunks/NcActionInput-TI648L3V.mjs.map +1 -0
  90. package/dist/chunks/{NcActionLink-9TfevQgn.mjs → NcActionLink-cQlsviu9.mjs} +7 -5
  91. package/dist/chunks/NcActionLink-cQlsviu9.mjs.map +1 -0
  92. package/dist/chunks/{NcActionRadio-CV0AtyQD.mjs → NcActionRadio-tORL1qPt.mjs} +25 -17
  93. package/dist/chunks/NcActionRadio-tORL1qPt.mjs.map +1 -0
  94. package/dist/chunks/{NcActionRouter-RKft3XO3.mjs → NcActionRouter-Bw1tpEZt.mjs} +7 -5
  95. package/dist/chunks/NcActionRouter-Bw1tpEZt.mjs.map +1 -0
  96. package/dist/chunks/{NcActionSeparator-DKFXmIJ5.mjs → NcActionSeparator-Doekl1NX.mjs} +3 -2
  97. package/dist/chunks/{NcActionSeparator-DKFXmIJ5.mjs.map → NcActionSeparator-Doekl1NX.mjs.map} +1 -1
  98. package/dist/chunks/{NcActionText-ChktUmp9.mjs → NcActionText-VLCHOiIy.mjs} +7 -5
  99. package/dist/chunks/NcActionText-VLCHOiIy.mjs.map +1 -0
  100. package/dist/chunks/{NcActionTextEditable-D3Iix8Je.mjs → NcActionTextEditable-nTbwgRy2.mjs} +25 -9
  101. package/dist/chunks/NcActionTextEditable-nTbwgRy2.mjs.map +1 -0
  102. package/dist/chunks/{NcActions-BJ703bdY.mjs → NcActions-CgKHXNbF.mjs} +58 -93
  103. package/dist/chunks/NcActions-CgKHXNbF.mjs.map +1 -0
  104. package/dist/chunks/{NcAppContent-DcqJmTNj.mjs → NcAppContent-C4gBVRQs.mjs} +79 -27
  105. package/dist/chunks/NcAppContent-C4gBVRQs.mjs.map +1 -0
  106. package/dist/chunks/{NcAppContentDetails-Ch6NJvAl.mjs → NcAppContentDetails-DsEEBJ0U.mjs} +2 -1
  107. package/dist/chunks/{NcAppContentDetails-Ch6NJvAl.mjs.map → NcAppContentDetails-DsEEBJ0U.mjs.map} +1 -1
  108. package/dist/chunks/{NcAppContentList-DGwk3AvB.mjs → NcAppContentList-DnLY_sWw.mjs} +2 -1
  109. package/dist/chunks/{NcAppContentList-DGwk3AvB.mjs.map → NcAppContentList-DnLY_sWw.mjs.map} +1 -1
  110. package/dist/chunks/{NcAppNavigation-DKl5GKDr.mjs → NcAppNavigation-DbRpHbi9.mjs} +8 -7
  111. package/dist/chunks/{NcAppNavigation-DKl5GKDr.mjs.map → NcAppNavigation-DbRpHbi9.mjs.map} +1 -1
  112. package/dist/chunks/{NcAppNavigationCaption-yvL3fHpB.mjs → NcAppNavigationCaption-R_UZ7iKw.mjs} +5 -4
  113. package/dist/chunks/{NcAppNavigationCaption-yvL3fHpB.mjs.map → NcAppNavigationCaption-R_UZ7iKw.mjs.map} +1 -1
  114. package/dist/chunks/{NcAppNavigationIconBullet-DXwKXzN2.mjs → NcAppNavigationIconBullet-B1kc4u65.mjs} +3 -2
  115. package/dist/chunks/{NcAppNavigationIconBullet-DXwKXzN2.mjs.map → NcAppNavigationIconBullet-B1kc4u65.mjs.map} +1 -1
  116. package/dist/chunks/{NcAppNavigationItem-Ba6kwsU9.mjs → NcAppNavigationItem-CxYtFEhV.mjs} +20 -19
  117. package/dist/chunks/NcAppNavigationItem-CxYtFEhV.mjs.map +1 -0
  118. package/dist/chunks/{NcAppNavigationList-HRNlIV27.mjs → NcAppNavigationList-DX_Yo23V.mjs} +3 -2
  119. package/dist/chunks/{NcAppNavigationList-HRNlIV27.mjs.map → NcAppNavigationList-DX_Yo23V.mjs.map} +1 -1
  120. package/dist/chunks/{NcAppNavigationNew-D2aD0z-u.mjs → NcAppNavigationNew-sMVo_IoL.mjs} +12 -7
  121. package/dist/chunks/NcAppNavigationNew-sMVo_IoL.mjs.map +1 -0
  122. package/dist/chunks/{NcAppNavigationNewItem-BPYFl_Xy.mjs → NcAppNavigationNewItem-CJZcL6GH.mjs} +6 -5
  123. package/dist/chunks/{NcAppNavigationNewItem-BPYFl_Xy.mjs.map → NcAppNavigationNewItem-CJZcL6GH.mjs.map} +1 -1
  124. package/dist/chunks/{NcAppNavigationSearch-pTeRzg7y.mjs → NcAppNavigationSearch-Dbhh-Vtw.mjs} +8 -7
  125. package/dist/chunks/NcAppNavigationSearch-Dbhh-Vtw.mjs.map +1 -0
  126. package/dist/chunks/NcAppNavigationSettings-Bfo3EWk_.mjs +132 -0
  127. package/dist/chunks/NcAppNavigationSettings-Bfo3EWk_.mjs.map +1 -0
  128. package/dist/chunks/{NcAppNavigationSpacer-BQFYpMbq.mjs → NcAppNavigationSpacer-CzBLuQL8.mjs} +3 -2
  129. package/dist/chunks/{NcAppNavigationSpacer-BQFYpMbq.mjs.map → NcAppNavigationSpacer-CzBLuQL8.mjs.map} +1 -1
  130. package/dist/chunks/{NcAppNavigationToggle-CEun9mHr.mjs → NcAppNavigationToggle-Ys-PjFo3.mjs} +10 -9
  131. package/dist/chunks/NcAppNavigationToggle-Ys-PjFo3.mjs.map +1 -0
  132. package/dist/chunks/{NcAppSettingsDialog-CQ1KFqAh.mjs → NcAppSettingsDialog-Cc-OdY9a.mjs} +6 -5
  133. package/dist/chunks/{NcAppSettingsDialog-CQ1KFqAh.mjs.map → NcAppSettingsDialog-Cc-OdY9a.mjs.map} +1 -1
  134. package/dist/chunks/{NcAppSettingsSection-BzqBBgS2.mjs → NcAppSettingsSection-CssmXyZ0.mjs} +3 -2
  135. package/dist/chunks/{NcAppSettingsSection-BzqBBgS2.mjs.map → NcAppSettingsSection-CssmXyZ0.mjs.map} +1 -1
  136. package/dist/chunks/{NcAppSidebar-C0VSug_j.mjs → NcAppSidebar-Dgwj8O_Z.mjs} +30 -29
  137. package/dist/chunks/NcAppSidebar-Dgwj8O_Z.mjs.map +1 -0
  138. package/dist/chunks/{NcAppSidebarTab-zBqyKIgn.mjs → NcAppSidebarTab-DG51ajic.mjs} +3 -2
  139. package/dist/chunks/{NcAppSidebarTab-zBqyKIgn.mjs.map → NcAppSidebarTab-DG51ajic.mjs.map} +1 -1
  140. package/dist/chunks/{NcAvatar-CB2n3G0J.mjs → NcAvatar-CA8y4d-c.mjs} +40 -43
  141. package/dist/chunks/NcAvatar-CA8y4d-c.mjs.map +1 -0
  142. package/dist/chunks/NcBlurHash-BiFktE2N.mjs +99 -0
  143. package/dist/chunks/NcBlurHash-BiFktE2N.mjs.map +1 -0
  144. package/dist/chunks/{NcBreadcrumb-ChOkGtT6.mjs → NcBreadcrumb-DSjIxTeU.mjs} +23 -19
  145. package/dist/chunks/NcBreadcrumb-DSjIxTeU.mjs.map +1 -0
  146. package/dist/chunks/{NcBreadcrumbs-CcWv0nYL.mjs → NcBreadcrumbs-jPvP6Cmo.mjs} +12 -11
  147. package/dist/chunks/NcBreadcrumbs-jPvP6Cmo.mjs.map +1 -0
  148. package/dist/chunks/{NcButton-C3eisBbK.mjs → NcButton-BHLqKKYP.mjs} +64 -56
  149. package/dist/chunks/NcButton-BHLqKKYP.mjs.map +1 -0
  150. package/dist/chunks/{NcCheckboxRadioSwitch-Zndby-mL.mjs → NcCheckboxRadioSwitch-CWU_M_ui.mjs} +25 -33
  151. package/dist/chunks/NcCheckboxRadioSwitch-CWU_M_ui.mjs.map +1 -0
  152. package/dist/chunks/{NcChip-DxejjHGT.mjs → NcChip-C3U2HYR9.mjs} +23 -62
  153. package/dist/chunks/NcChip-C3U2HYR9.mjs.map +1 -0
  154. package/dist/chunks/{NcCollectionList-DckB8BUh.mjs → NcCollectionList-BtHsipae.mjs} +10 -9
  155. package/dist/chunks/NcCollectionList-BtHsipae.mjs.map +1 -0
  156. package/dist/chunks/{NcColorPicker-Bh4f-X_s.mjs → NcColorPicker-BI-Is4nj.mjs} +16 -15
  157. package/dist/chunks/NcColorPicker-BI-Is4nj.mjs.map +1 -0
  158. package/dist/chunks/{NcContent-CfyPkDba.mjs → NcContent-BcF6f3N-.mjs} +10 -9
  159. package/dist/chunks/{NcContent-CfyPkDba.mjs.map → NcContent-BcF6f3N-.mjs.map} +1 -1
  160. package/dist/chunks/{NcCounterBubble-DIOmLH9G.mjs → NcCounterBubble-6B_JNUUS.mjs} +3 -2
  161. package/dist/chunks/{NcCounterBubble-DIOmLH9G.mjs.map → NcCounterBubble-6B_JNUUS.mjs.map} +1 -1
  162. package/dist/chunks/{NcDashboardWidget-DC7EvOH5.mjs → NcDashboardWidget-1rVqTzgV.mjs} +10 -9
  163. package/dist/chunks/{NcDashboardWidget-DC7EvOH5.mjs.map → NcDashboardWidget-1rVqTzgV.mjs.map} +1 -1
  164. package/dist/chunks/{NcDashboardWidgetItem-Bmm83kUk.mjs → NcDashboardWidgetItem-7RXY5EKJ.mjs} +6 -5
  165. package/dist/chunks/{NcDashboardWidgetItem-Bmm83kUk.mjs.map → NcDashboardWidgetItem-7RXY5EKJ.mjs.map} +1 -1
  166. package/dist/chunks/NcDateTime.vue_vue_type_script_setup_true_lang-DtP-oauZ.mjs +31 -0
  167. package/dist/chunks/NcDateTime.vue_vue_type_script_setup_true_lang-DtP-oauZ.mjs.map +1 -0
  168. package/dist/chunks/NcDateTimePicker-BzfuHym4.mjs +257 -0
  169. package/dist/chunks/NcDateTimePicker-BzfuHym4.mjs.map +1 -0
  170. package/dist/chunks/{NcDateTimePickerNative-I2YJ1mqx.mjs → NcDateTimePickerNative-Dake1IML.mjs} +12 -9
  171. package/dist/chunks/NcDateTimePickerNative-Dake1IML.mjs.map +1 -0
  172. package/dist/chunks/{NcDialog-bRHxABY1.mjs → NcDialog-_pc2BPHU.mjs} +30 -20
  173. package/dist/chunks/NcDialog-_pc2BPHU.mjs.map +1 -0
  174. package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-CBKNl2vE.mjs → NcDialogButton.vue_vue_type_script_setup_true_lang-BKrJ_xd8.mjs} +31 -29
  175. package/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang-BKrJ_xd8.mjs.map +1 -0
  176. package/dist/chunks/{NcEllipsisedOption-BaL7DZ1K.mjs → NcEllipsisedOption-4k07kvEr.mjs} +6 -5
  177. package/dist/chunks/NcEllipsisedOption-4k07kvEr.mjs.map +1 -0
  178. package/dist/chunks/{NcEmojiPicker-DIv_bq9B.mjs → NcEmojiPicker-CWbez_of.mjs} +74 -54
  179. package/dist/chunks/NcEmojiPicker-CWbez_of.mjs.map +1 -0
  180. package/dist/chunks/{NcEmptyContent-BoGB3vFC.mjs → NcEmptyContent-BQnIrQQn.mjs} +4 -3
  181. package/dist/chunks/NcEmptyContent-BQnIrQQn.mjs.map +1 -0
  182. package/dist/chunks/{NcGuestContent-DVqg5Bq4.mjs → NcGuestContent-iQpV7mLC.mjs} +3 -2
  183. package/dist/chunks/{NcGuestContent-DVqg5Bq4.mjs.map → NcGuestContent-iQpV7mLC.mjs.map} +1 -1
  184. package/dist/chunks/{NcHeaderButton-DagheXHN.mjs → NcHeaderButton-BsstEWtv.mjs} +10 -9
  185. package/dist/chunks/NcHeaderButton-BsstEWtv.mjs.map +1 -0
  186. package/dist/chunks/NcHeaderMenu-ZzoCwPvX.mjs +141 -0
  187. package/dist/chunks/NcHeaderMenu-ZzoCwPvX.mjs.map +1 -0
  188. package/dist/chunks/{NcHighlight-BHtRIzqk.mjs → NcHighlight-Cu4UfEEO.mjs} +11 -7
  189. package/dist/chunks/NcHighlight-Cu4UfEEO.mjs.map +1 -0
  190. package/dist/chunks/{NcIconSvgWrapper-DbL6OP85.mjs → NcIconSvgWrapper-BYTrkA66.mjs} +3 -2
  191. package/dist/chunks/{NcIconSvgWrapper-DbL6OP85.mjs.map → NcIconSvgWrapper-BYTrkA66.mjs.map} +1 -1
  192. package/dist/chunks/{NcInputConfirmCancel-CHdSVEcQ.mjs → NcInputConfirmCancel-CX56m05a.mjs} +21 -20
  193. package/dist/chunks/NcInputConfirmCancel-CX56m05a.mjs.map +1 -0
  194. package/dist/chunks/{NcInputField-BMtTTtl5.mjs → NcInputField-DdZlDVwQ.mjs} +10 -9
  195. package/dist/chunks/NcInputField-DdZlDVwQ.mjs.map +1 -0
  196. package/dist/chunks/{NcListItem-D04-5zRU.mjs → NcListItem-DF8Yv05m.mjs} +6 -5
  197. package/dist/chunks/NcListItem-DF8Yv05m.mjs.map +1 -0
  198. package/dist/chunks/{NcListItemIcon-DcBo1GLm.mjs → NcListItemIcon-nzw_x2Q5.mjs} +8 -9
  199. package/dist/chunks/{NcListItemIcon-DcBo1GLm.mjs.map → NcListItemIcon-nzw_x2Q5.mjs.map} +1 -1
  200. package/dist/chunks/{NcLoadingIcon-DREmHXr2.mjs → NcLoadingIcon-CsMn1bFR.mjs} +3 -2
  201. package/dist/chunks/{NcLoadingIcon-DREmHXr2.mjs.map → NcLoadingIcon-CsMn1bFR.mjs.map} +1 -1
  202. package/dist/chunks/{getAvatarUrl-DxvUjKMi.mjs → NcMentionBubble.vue_vue_type_style_index_0_scoped_6c8d0da9_lang-DYJMHclV.mjs} +2 -0
  203. package/dist/chunks/NcMentionBubble.vue_vue_type_style_index_0_scoped_6c8d0da9_lang-DYJMHclV.mjs.map +1 -0
  204. package/dist/chunks/{NcNoteCard-BwQvZ3pf.mjs → NcNoteCard-XoSOund1.mjs} +3 -2
  205. package/dist/chunks/{NcNoteCard-BwQvZ3pf.mjs.map → NcNoteCard-XoSOund1.mjs.map} +1 -1
  206. package/dist/chunks/{NcPasswordField-OK30bZq8.mjs → NcPasswordField-BnnlEhT1.mjs} +8 -8
  207. package/dist/chunks/NcPasswordField-BnnlEhT1.mjs.map +1 -0
  208. package/dist/chunks/{NcPopover-Cmspgso4.mjs → NcPopover-C3ZoyUjc.mjs} +16 -12
  209. package/dist/chunks/NcPopover-C3ZoyUjc.mjs.map +1 -0
  210. package/dist/chunks/{NcProgressBar-C2r8oqsv.mjs → NcProgressBar-Bx8bMkd4.mjs} +3 -2
  211. package/dist/chunks/{NcProgressBar-C2r8oqsv.mjs.map → NcProgressBar-Bx8bMkd4.mjs.map} +1 -1
  212. package/dist/chunks/{NcRelatedResourcesPanel-DvA5dHwS.mjs → NcRelatedResourcesPanel-D2YLEouH.mjs} +22 -16
  213. package/dist/chunks/NcRelatedResourcesPanel-D2YLEouH.mjs.map +1 -0
  214. package/dist/chunks/{NcRichContenteditable-s2Cz698X.mjs → NcRichContenteditable-B16VJW0Y.mjs} +34 -34
  215. package/dist/chunks/NcRichContenteditable-B16VJW0Y.mjs.map +1 -0
  216. package/dist/chunks/NcRichText-4jIBSmap.mjs +3673 -0
  217. package/dist/chunks/NcRichText-4jIBSmap.mjs.map +1 -0
  218. package/dist/chunks/{NcSavingIndicatorIcon-BiGAtlKQ.mjs → NcSavingIndicatorIcon-icWy8J5x.mjs} +2 -1
  219. package/dist/chunks/{NcSavingIndicatorIcon-BiGAtlKQ.mjs.map → NcSavingIndicatorIcon-icWy8J5x.mjs.map} +1 -1
  220. package/dist/chunks/{NcSelect-J_CQazCj.mjs → NcSelect-CAx_ixPU.mjs} +16 -15
  221. package/dist/chunks/NcSelect-CAx_ixPU.mjs.map +1 -0
  222. package/dist/chunks/{NcSelectTags-BZ22veGg.mjs → NcSelectTags-UXzC7lDz.mjs} +5 -4
  223. package/dist/chunks/{NcSelectTags-BZ22veGg.mjs.map → NcSelectTags-UXzC7lDz.mjs.map} +1 -1
  224. package/dist/chunks/{NcSettingsInputText-Bjw2RqKu.mjs → NcSettingsInputText-BEHu3xAI.mjs} +7 -6
  225. package/dist/chunks/NcSettingsInputText-BEHu3xAI.mjs.map +1 -0
  226. package/dist/chunks/{NcSettingsSection-MATJGEoF.mjs → NcSettingsSection-X7f0W7vZ.mjs} +5 -4
  227. package/dist/chunks/{NcSettingsSection-MATJGEoF.mjs.map → NcSettingsSection-X7f0W7vZ.mjs.map} +1 -1
  228. package/dist/chunks/{NcSettingsSelectGroup-iglfU6Rr.mjs → NcSettingsSelectGroup-DfrKchOy.mjs} +9 -8
  229. package/dist/chunks/NcSettingsSelectGroup-DfrKchOy.mjs.map +1 -0
  230. package/dist/chunks/{NcTextArea-D_kk5GuX.mjs → NcTextArea-DKHjCur8.mjs} +8 -7
  231. package/dist/chunks/NcTextArea-DKHjCur8.mjs.map +1 -0
  232. package/dist/chunks/{NcTextField-XbpY0pop.mjs → NcTextField-BTzKCPza.mjs} +8 -7
  233. package/dist/chunks/{NcTextField-XbpY0pop.mjs.map → NcTextField-BTzKCPza.mjs.map} +1 -1
  234. package/dist/chunks/{NcTimezonePicker-CMpvPeCI.mjs → NcTimezonePicker-CMoUk4sZ.mjs} +9 -8
  235. package/dist/chunks/NcTimezonePicker-CMoUk4sZ.mjs.map +1 -0
  236. package/dist/chunks/{NcUserBubble-DJFSxKtO.mjs → NcUserBubble-Dgzog0Ps.mjs} +7 -6
  237. package/dist/chunks/{NcUserBubble-DJFSxKtO.mjs.map → NcUserBubble-Dgzog0Ps.mjs.map} +1 -1
  238. package/dist/chunks/{NcUserStatusIcon-DjoGxkTB.mjs → NcUserStatusIcon-DvYiEs2L.mjs} +5 -3
  239. package/dist/chunks/{NcUserStatusIcon-DjoGxkTB.mjs.map → NcUserStatusIcon-DvYiEs2L.mjs.map} +1 -1
  240. package/dist/chunks/{ScopeComponent-77f9B57X.mjs → ScopeComponent-BWZEma4R.mjs} +2 -1
  241. package/dist/chunks/{ScopeComponent-77f9B57X.mjs.map → ScopeComponent-BWZEma4R.mjs.map} +1 -1
  242. package/dist/chunks/_l10n-7kR7gXFc.mjs +132 -0
  243. package/dist/chunks/_l10n-7kR7gXFc.mjs.map +1 -0
  244. package/dist/chunks/_plugin-vue_export-helper-1tPrXgE0.mjs +1 -0
  245. package/dist/chunks/actionGlobal-BZFdtdJL.mjs +1 -0
  246. package/dist/chunks/actionGlobal-BZFdtdJL.mjs.map +1 -1
  247. package/dist/chunks/{actionText-aI0owku1.mjs → actionText-BiV1_BZX.mjs} +8 -13
  248. package/dist/chunks/actionText-BiV1_BZX.mjs.map +1 -0
  249. package/dist/chunks/autolink-CKPk5rzg.mjs +1 -0
  250. package/dist/chunks/autolink-CKPk5rzg.mjs.map +1 -1
  251. package/dist/chunks/{GenColors-Cw7N7vRg.mjs → colors-BJbWzaQ-.mjs} +28 -22
  252. package/dist/chunks/colors-BJbWzaQ-.mjs.map +1 -0
  253. package/dist/chunks/createElementId-DhjFt1I9.mjs +8 -0
  254. package/dist/chunks/createElementId-DhjFt1I9.mjs.map +1 -0
  255. package/dist/chunks/emoji-BY_D0V5K.mjs +1 -0
  256. package/dist/chunks/emoji-BY_D0V5K.mjs.map +1 -1
  257. package/dist/chunks/focusTrap-DmkaYJTC.mjs +32 -0
  258. package/dist/chunks/focusTrap-DmkaYJTC.mjs.map +1 -0
  259. package/dist/chunks/{index-CtB0UiwH.mjs → index--u6iHwFv.mjs} +7 -9
  260. package/dist/chunks/index--u6iHwFv.mjs.map +1 -0
  261. package/dist/chunks/{index-CrKUsc__.mjs → index-BF8joS9W.mjs} +3 -2
  262. package/dist/chunks/{index-CrKUsc__.mjs.map → index-BF8joS9W.mjs.map} +1 -1
  263. package/dist/chunks/logger-D3RVzcfQ.mjs +6 -0
  264. package/dist/chunks/logger-D3RVzcfQ.mjs.map +1 -0
  265. package/dist/chunks/mdi-zYpVOORa.mjs +17 -0
  266. package/dist/chunks/mdi-zYpVOORa.mjs.map +1 -0
  267. package/dist/chunks/{referencePickerModal-DPmXigHR.mjs → referencePickerModal-BpNnwC_g.mjs} +25 -25
  268. package/dist/chunks/referencePickerModal-BpNnwC_g.mjs.map +1 -0
  269. package/dist/chunks/rtl-v0UOPAM7.mjs +6 -0
  270. package/dist/chunks/rtl-v0UOPAM7.mjs.map +1 -0
  271. package/dist/chunks/{NcDateTime-BsCT_tyH.mjs → useFormatDateTime-B5sWtJdj.mjs} +3 -63
  272. package/dist/chunks/useFormatDateTime-B5sWtJdj.mjs.map +1 -0
  273. package/dist/chunks/useNcActions-CiGWxAJE.mjs +7 -0
  274. package/dist/chunks/useNcActions-CiGWxAJE.mjs.map +1 -0
  275. package/dist/chunks/useTrapStackControl-b3A_383w.mjs +23 -0
  276. package/dist/chunks/useTrapStackControl-b3A_383w.mjs.map +1 -0
  277. package/dist/chunks/usernameToColor-CzXWY0j4.mjs +22 -0
  278. package/dist/chunks/usernameToColor-CzXWY0j4.mjs.map +1 -0
  279. package/dist/components/NcActionButton/NcActionButton.vue.d.ts +6 -1
  280. package/dist/components/NcActionButton/index.mjs +2 -1
  281. package/dist/components/NcActionButtonGroup/index.mjs +2 -1
  282. package/dist/components/NcActionCaption/index.mjs +2 -1
  283. package/dist/components/NcActionCheckbox/index.mjs +2 -1
  284. package/dist/components/NcActionInput/index.mjs +2 -1
  285. package/dist/components/NcActionLink/index.mjs +2 -1
  286. package/dist/components/NcActionRadio/NcActionRadio.vue.d.ts +10 -8
  287. package/dist/components/NcActionRadio/index.mjs +2 -1
  288. package/dist/components/NcActionRouter/NcActionRouter.vue.d.ts +5 -0
  289. package/dist/components/NcActionRouter/index.mjs +2 -1
  290. package/dist/components/NcActionSeparator/index.mjs +2 -1
  291. package/dist/components/NcActionText/NcActionText.vue.d.ts +5 -0
  292. package/dist/components/NcActionText/index.mjs +2 -1
  293. package/dist/components/NcActionTextEditable/NcActionTextEditable.vue.d.ts +9 -1
  294. package/dist/components/NcActionTextEditable/index.mjs +2 -1
  295. package/dist/components/NcActions/NcActions.vue.d.ts +52 -59
  296. package/dist/components/NcActions/index.mjs +2 -1
  297. package/dist/components/NcActions/useNcActions.d.ts +3 -0
  298. package/dist/components/NcAppContent/index.mjs +2 -1
  299. package/dist/components/NcAppContentDetails/index.mjs +2 -1
  300. package/dist/components/NcAppContentList/index.mjs +2 -1
  301. package/dist/components/NcAppNavigation/NcAppNavigation.vue.d.ts +23 -22
  302. package/dist/components/NcAppNavigation/index.mjs +2 -1
  303. package/dist/components/NcAppNavigationCaption/NcAppNavigationCaption.vue.d.ts +34 -33
  304. package/dist/components/NcAppNavigationCaption/index.mjs +2 -1
  305. package/dist/components/NcAppNavigationIconBullet/index.mjs +2 -1
  306. package/dist/components/NcAppNavigationItem/NcAppNavigationIconCollapsible.vue.d.ts +16 -15
  307. package/dist/components/NcAppNavigationItem/NcAppNavigationItem.vue.d.ts +96 -88
  308. package/dist/components/NcAppNavigationItem/NcInputConfirmCancel.vue.d.ts +25 -24
  309. package/dist/components/NcAppNavigationItem/index.mjs +2 -1
  310. package/dist/components/NcAppNavigationList/index.mjs +2 -1
  311. package/dist/components/NcAppNavigationNew/NcAppNavigationNew.vue.d.ts +27 -18
  312. package/dist/components/NcAppNavigationNew/index.mjs +2 -1
  313. package/dist/components/NcAppNavigationNewItem/NcAppNavigationNewItem.vue.d.ts +18 -17
  314. package/dist/components/NcAppNavigationNewItem/index.mjs +2 -1
  315. package/dist/components/NcAppNavigationSearch/NcAppNavigationSearch.vue.d.ts +16 -15
  316. package/dist/components/NcAppNavigationSearch/index.mjs +2 -1
  317. package/dist/components/NcAppNavigationSettings/NcAppNavigationSettings.vue.d.ts +49 -0
  318. package/dist/components/NcAppNavigationSettings/index.mjs +2 -1
  319. package/dist/components/NcAppNavigationSpacer/index.mjs +2 -1
  320. package/dist/components/NcAppNavigationToggle/NcAppNavigationToggle.vue.d.ts +16 -15
  321. package/dist/components/NcAppNavigationToggle/index.mjs +2 -1
  322. package/dist/components/NcAppSettingsDialog/index.mjs +2 -1
  323. package/dist/components/NcAppSettingsSection/index.mjs +2 -1
  324. package/dist/components/NcAppSidebar/index.mjs +2 -1
  325. package/dist/components/NcAppSidebarTab/index.mjs +2 -1
  326. package/dist/components/NcAvatar/index.mjs +2 -1
  327. package/dist/components/NcBlurHash/NcBlurHash.vue.d.ts +31 -0
  328. package/dist/components/NcBlurHash/index.d.ts +5 -0
  329. package/dist/components/NcBlurHash/index.mjs +5 -0
  330. package/dist/components/NcBlurHash/index.mjs.map +1 -0
  331. package/dist/components/NcBreadcrumb/NcBreadcrumb.vue.d.ts +70 -67
  332. package/dist/components/NcBreadcrumb/index.mjs +2 -1
  333. package/dist/components/NcBreadcrumbs/NcBreadcrumbs.vue.d.ts +98 -84
  334. package/dist/components/NcBreadcrumbs/index.mjs +2 -1
  335. package/dist/components/NcButton/NcButton.vue.d.ts +42 -38
  336. package/dist/components/NcButton/index.mjs +4 -3
  337. package/dist/components/NcButton/types.d.ts +2 -2
  338. package/dist/components/NcCheckboxRadioSwitch/index.mjs +2 -1
  339. package/dist/components/NcChip/NcChip.vue.d.ts +57 -92
  340. package/dist/components/NcChip/index.mjs +2 -1
  341. package/dist/components/NcCollectionList/index.mjs +2 -1
  342. package/dist/components/NcColorPicker/index.mjs +2 -1
  343. package/dist/components/NcContent/NcContent.vue.d.ts +17 -16
  344. package/dist/components/NcContent/index.mjs +2 -1
  345. package/dist/components/NcCounterBubble/index.mjs +2 -1
  346. package/dist/components/NcDashboardWidget/index.mjs +2 -1
  347. package/dist/components/NcDashboardWidgetItem/index.mjs +2 -1
  348. package/dist/components/NcDateTime/NcDateTime.vue.d.ts +56 -1
  349. package/dist/components/NcDateTime/index.d.ts +4 -0
  350. package/dist/components/NcDateTime/index.mjs +3 -2
  351. package/dist/components/NcDateTimePicker/NcDateTimePicker.vue.d.ts +116 -1
  352. package/dist/components/NcDateTimePicker/index.d.ts +4 -0
  353. package/dist/components/NcDateTimePicker/index.mjs +2 -1
  354. package/dist/components/NcDateTimePickerNative/index.mjs +2 -1
  355. package/dist/components/NcDialog/NcDialog.vue.d.ts +60 -55
  356. package/dist/components/NcDialog/index.mjs +2 -1
  357. package/dist/components/NcDialogButton/NcDialogButton.vue.d.ts +43 -35
  358. package/dist/components/NcDialogButton/index.mjs +2 -1
  359. package/dist/components/NcEllipsisedOption/index.mjs +2 -1
  360. package/dist/components/NcEmojiPicker/NcEmojiPicker.vue.d.ts +45 -32
  361. package/dist/components/NcEmojiPicker/index.mjs +2 -1
  362. package/dist/components/NcEmptyContent/index.mjs +2 -1
  363. package/dist/components/NcGuestContent/index.mjs +2 -1
  364. package/dist/components/NcHeaderButton/index.mjs +2 -1
  365. package/dist/components/NcHeaderMenu/NcHeaderMenu.vue.d.ts +245 -0
  366. package/dist/components/NcHeaderMenu/index.mjs +2 -1
  367. package/dist/components/NcHighlight/index.mjs +2 -1
  368. package/dist/components/NcIconSvgWrapper/index.mjs +2 -1
  369. package/dist/components/NcInputField/NcInputField.vue.d.ts +16 -15
  370. package/dist/components/NcInputField/index.mjs +2 -1
  371. package/dist/components/NcListItem/NcListItem.vue.d.ts +34 -33
  372. package/dist/components/NcListItem/index.mjs +2 -1
  373. package/dist/components/NcListItemIcon/index.mjs +2 -1
  374. package/dist/components/NcLoadingIcon/index.mjs +2 -1
  375. package/dist/components/NcModal/index.mjs +42 -39
  376. package/dist/components/NcModal/index.mjs.map +1 -1
  377. package/dist/components/NcNoteCard/index.mjs +2 -1
  378. package/dist/components/NcPasswordField/index.mjs +2 -1
  379. package/dist/components/NcPopover/NcPopover.vue.d.ts +2 -0
  380. package/dist/components/NcPopover/index.mjs +2 -1
  381. package/dist/components/NcProgressBar/index.mjs +2 -1
  382. package/dist/components/NcRelatedResourcesPanel/NcRelatedResourcesPanel.vue.d.ts +32 -30
  383. package/dist/components/NcRelatedResourcesPanel/NcResource.vue.d.ts +16 -15
  384. package/dist/components/NcRelatedResourcesPanel/NcTeamResources.vue.d.ts +16 -15
  385. package/dist/components/NcRelatedResourcesPanel/index.mjs +2 -1
  386. package/dist/components/NcRichContenteditable/index.mjs +3 -2
  387. package/dist/components/NcRichText/NcReferenceList.vue.d.ts +17 -16
  388. package/dist/components/NcRichText/NcReferencePicker/NcRawLinkInput.vue.d.ts +33 -31
  389. package/dist/components/NcRichText/NcReferencePicker/utils.d.ts +1 -1
  390. package/dist/components/NcRichText/NcReferenceWidget.vue.d.ts +17 -16
  391. package/dist/components/NcRichText/NcRichText.vue.d.ts +19 -61
  392. package/dist/components/NcRichText/index.mjs +5 -4
  393. package/dist/components/NcRichText/remarkUnescape.d.ts +1 -0
  394. package/dist/components/NcSavingIndicatorIcon/index.mjs +2 -1
  395. package/dist/components/NcSelect/index.mjs +2 -1
  396. package/dist/components/NcSelectTags/index.mjs +2 -1
  397. package/dist/components/NcSettingsInputText/index.mjs +2 -1
  398. package/dist/components/NcSettingsSection/index.mjs +2 -1
  399. package/dist/components/NcSettingsSelectGroup/index.mjs +2 -1
  400. package/dist/components/NcTextArea/index.mjs +2 -1
  401. package/dist/components/NcTextField/NcTextField.vue.d.ts +16 -15
  402. package/dist/components/NcTextField/index.mjs +2 -1
  403. package/dist/components/NcTimezonePicker/index.mjs +2 -1
  404. package/dist/components/NcUserBubble/index.mjs +2 -1
  405. package/dist/components/NcUserStatusIcon/index.mjs +2 -1
  406. package/dist/components/NcVNodes/index.mjs +1 -0
  407. package/dist/components/NcVNodes/index.mjs.map +1 -1
  408. package/dist/components/index.d.ts +1 -0
  409. package/dist/composables/index.d.ts +7 -3
  410. package/dist/composables/useHotKey/index.d.ts +32 -4
  411. package/dist/composables/useHotKey/index.mjs +23 -20
  412. package/dist/composables/useHotKey/index.mjs.map +1 -1
  413. package/dist/composables/useIsDarkTheme/index.mjs +1 -0
  414. package/dist/composables/useIsDarkTheme/index.mjs.map +1 -1
  415. package/dist/composables/useIsFullscreen/index.d.ts +3 -4
  416. package/dist/composables/useIsFullscreen/index.mjs +4 -1
  417. package/dist/composables/useIsFullscreen/index.mjs.map +1 -1
  418. package/dist/composables/useIsMobile/index.d.ts +9 -14
  419. package/dist/composables/useIsMobile/index.mjs +1 -2
  420. package/dist/composables/useIsMobile/index.mjs.map +1 -1
  421. package/dist/composables/useTrapStackControl.d.ts +12 -0
  422. package/dist/directives/Focus/index.mjs +1 -0
  423. package/dist/directives/Focus/index.mjs.map +1 -1
  424. package/dist/directives/Linkify/index.d.ts +2 -1
  425. package/dist/directives/Linkify/index.mjs +44 -6
  426. package/dist/directives/Linkify/index.mjs.map +1 -1
  427. package/dist/directives/Tooltip/index.mjs +2 -1
  428. package/dist/directives/Tooltip/index.mjs.map +1 -1
  429. package/dist/directives/index.d.ts +1 -1
  430. package/dist/functions/a11y/index.mjs +1 -0
  431. package/dist/functions/a11y/index.mjs.map +1 -1
  432. package/dist/functions/dialog/index.mjs +1 -0
  433. package/dist/functions/dialog/index.mjs.map +1 -1
  434. package/dist/functions/emoji/index.mjs +1 -0
  435. package/dist/functions/index.d.ts +2 -1
  436. package/dist/functions/isDarkTheme/index.mjs +1 -0
  437. package/dist/functions/isDarkTheme/index.mjs.map +1 -1
  438. package/dist/functions/preloadImage/index.d.ts +9 -0
  439. package/dist/functions/preloadImage/index.mjs +17 -0
  440. package/dist/functions/preloadImage/index.mjs.map +1 -0
  441. package/dist/functions/reference/index.mjs +3 -2
  442. package/dist/functions/reference/widgets.d.ts +1 -1
  443. package/dist/functions/registerReference/index.mjs +3 -2
  444. package/dist/functions/usernameToColor/index.d.ts +5 -1
  445. package/dist/functions/usernameToColor/index.mjs +2 -1
  446. package/dist/functions/usernameToColor/usernameToColor.d.ts +4 -9
  447. package/dist/index.mjs +104 -101
  448. package/dist/index.mjs.map +1 -1
  449. package/dist/mixins/actionText.d.ts +6 -0
  450. package/dist/mixins/index.d.ts +0 -1
  451. package/dist/mixins/richEditor/index.mjs +2 -2
  452. package/dist/mixins/richEditor/index.mjs.map +1 -1
  453. package/dist/utils/appName.d.ts +5 -0
  454. package/dist/utils/colors.d.ts +34 -0
  455. package/dist/utils/createElementId.d.ts +7 -0
  456. package/dist/utils/findRanges.d.ts +16 -0
  457. package/dist/utils/focusTrap.d.ts +26 -1
  458. package/dist/utils/isSlotPopulated.d.ts +1 -2
  459. package/dist/utils/linkify.d.ts +8 -0
  460. package/dist/utils/logger.d.ts +4 -0
  461. package/dist/utils/rtl.d.ts +5 -0
  462. package/dist/vendor.LICENSE.txt +128 -0
  463. package/package.json +70 -57
  464. package/dist/assets/NcAppNavigationSettings-CZNoJ2IO.css +0 -77
  465. package/dist/assets/NcDateTimePicker-D67l0SAR.css +0 -865
  466. package/dist/assets/NcDateTimePickerNative-DLch-JRA.css +0 -47
  467. package/dist/assets/NcRichText-C_CIawDX.css +0 -412
  468. package/dist/chunks/GenColors-Cw7N7vRg.mjs.map +0 -1
  469. package/dist/chunks/GenRandomId-CMooMQt0.mjs +0 -6
  470. package/dist/chunks/GenRandomId-CMooMQt0.mjs.map +0 -1
  471. package/dist/chunks/Linkify-BtgR-dXX.mjs +0 -14
  472. package/dist/chunks/Linkify-BtgR-dXX.mjs.map +0 -1
  473. package/dist/chunks/NcActionButtonGroup-DtHcJpaH.mjs.map +0 -1
  474. package/dist/chunks/NcActionCaption-BeVuTBKE.mjs.map +0 -1
  475. package/dist/chunks/NcActionCheckbox-DdLcVat_.mjs.map +0 -1
  476. package/dist/chunks/NcActionInput-CxPmTwTo.mjs.map +0 -1
  477. package/dist/chunks/NcActionLink-9TfevQgn.mjs.map +0 -1
  478. package/dist/chunks/NcActionRadio-CV0AtyQD.mjs.map +0 -1
  479. package/dist/chunks/NcActionRouter-RKft3XO3.mjs.map +0 -1
  480. package/dist/chunks/NcActionText-ChktUmp9.mjs.map +0 -1
  481. package/dist/chunks/NcActionTextEditable-D3Iix8Je.mjs.map +0 -1
  482. package/dist/chunks/NcActions-BJ703bdY.mjs.map +0 -1
  483. package/dist/chunks/NcAppContent-DcqJmTNj.mjs.map +0 -1
  484. package/dist/chunks/NcAppNavigationItem-Ba6kwsU9.mjs.map +0 -1
  485. package/dist/chunks/NcAppNavigationNew-D2aD0z-u.mjs.map +0 -1
  486. package/dist/chunks/NcAppNavigationSearch-pTeRzg7y.mjs.map +0 -1
  487. package/dist/chunks/NcAppNavigationSettings-Bc4ZZ9rU.mjs +0 -142
  488. package/dist/chunks/NcAppNavigationSettings-Bc4ZZ9rU.mjs.map +0 -1
  489. package/dist/chunks/NcAppNavigationToggle-CEun9mHr.mjs.map +0 -1
  490. package/dist/chunks/NcAppSidebar-C0VSug_j.mjs.map +0 -1
  491. package/dist/chunks/NcAvatar-CB2n3G0J.mjs.map +0 -1
  492. package/dist/chunks/NcBreadcrumb-ChOkGtT6.mjs.map +0 -1
  493. package/dist/chunks/NcBreadcrumbs-CcWv0nYL.mjs.map +0 -1
  494. package/dist/chunks/NcButton-C3eisBbK.mjs.map +0 -1
  495. package/dist/chunks/NcCheckboxRadioSwitch-Zndby-mL.mjs.map +0 -1
  496. package/dist/chunks/NcChip-DxejjHGT.mjs.map +0 -1
  497. package/dist/chunks/NcCollectionList-DckB8BUh.mjs.map +0 -1
  498. package/dist/chunks/NcColorPicker-Bh4f-X_s.mjs.map +0 -1
  499. package/dist/chunks/NcDateTime-BsCT_tyH.mjs.map +0 -1
  500. package/dist/chunks/NcDateTimePicker-BMkjvfOV.mjs +0 -377
  501. package/dist/chunks/NcDateTimePicker-BMkjvfOV.mjs.map +0 -1
  502. package/dist/chunks/NcDateTimePickerNative-I2YJ1mqx.mjs.map +0 -1
  503. package/dist/chunks/NcDialog-bRHxABY1.mjs.map +0 -1
  504. package/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang-CBKNl2vE.mjs.map +0 -1
  505. package/dist/chunks/NcEllipsisedOption-BaL7DZ1K.mjs.map +0 -1
  506. package/dist/chunks/NcEmojiPicker-DIv_bq9B.mjs.map +0 -1
  507. package/dist/chunks/NcEmptyContent-BoGB3vFC.mjs.map +0 -1
  508. package/dist/chunks/NcHeaderButton-DagheXHN.mjs.map +0 -1
  509. package/dist/chunks/NcHeaderMenu-DWrnJYhw.mjs +0 -260
  510. package/dist/chunks/NcHeaderMenu-DWrnJYhw.mjs.map +0 -1
  511. package/dist/chunks/NcHighlight-BHtRIzqk.mjs.map +0 -1
  512. package/dist/chunks/NcInputConfirmCancel-CHdSVEcQ.mjs.map +0 -1
  513. package/dist/chunks/NcInputField-BMtTTtl5.mjs.map +0 -1
  514. package/dist/chunks/NcListItem-D04-5zRU.mjs.map +0 -1
  515. package/dist/chunks/NcPasswordField-OK30bZq8.mjs.map +0 -1
  516. package/dist/chunks/NcPopover-Cmspgso4.mjs.map +0 -1
  517. package/dist/chunks/NcRelatedResourcesPanel-DvA5dHwS.mjs.map +0 -1
  518. package/dist/chunks/NcRichContenteditable-s2Cz698X.mjs.map +0 -1
  519. package/dist/chunks/NcRichText-DeQGaF-c.mjs +0 -445
  520. package/dist/chunks/NcRichText-DeQGaF-c.mjs.map +0 -1
  521. package/dist/chunks/NcSelect-J_CQazCj.mjs.map +0 -1
  522. package/dist/chunks/NcSettingsInputText-Bjw2RqKu.mjs.map +0 -1
  523. package/dist/chunks/NcSettingsSelectGroup-iglfU6Rr.mjs.map +0 -1
  524. package/dist/chunks/NcTextArea-D_kk5GuX.mjs.map +0 -1
  525. package/dist/chunks/NcTimezonePicker-CMpvPeCI.mjs.map +0 -1
  526. package/dist/chunks/_l10n-D7WwrqS-.mjs +0 -126
  527. package/dist/chunks/_l10n-D7WwrqS-.mjs.map +0 -1
  528. package/dist/chunks/actionText-aI0owku1.mjs.map +0 -1
  529. package/dist/chunks/focusTrap-Cecv_gjR.mjs +0 -7
  530. package/dist/chunks/focusTrap-Cecv_gjR.mjs.map +0 -1
  531. package/dist/chunks/getAvatarUrl-DxvUjKMi.mjs.map +0 -1
  532. package/dist/chunks/index-CtB0UiwH.mjs.map +0 -1
  533. package/dist/chunks/referencePickerModal-DPmXigHR.mjs.map +0 -1
  534. package/dist/chunks/usernameToColor-CgZYBI2J.mjs +0 -26
  535. package/dist/chunks/usernameToColor-CgZYBI2J.mjs.map +0 -1
  536. package/dist/mixins/clickOutsideOptions/index.d.ts +0 -15
  537. package/dist/mixins/clickOutsideOptions/index.mjs +0 -21
  538. package/dist/mixins/clickOutsideOptions/index.mjs.map +0 -1
  539. package/dist/utils/FindRanges.d.ts +0 -13
  540. package/dist/utils/GenColors.d.ts +0 -28
  541. package/dist/utils/GenRandomId.d.ts +0 -6
  542. package/dist/utils/GetChildren.d.ts +0 -13
  543. package/dist/utils/GetParent.d.ts +0 -13
  544. package/dist/utils/Linkify.d.ts +0 -8
  545. /package/dist/assets/{NcActionButtonGroup-CQxLn2fv.css → NcActionButtonGroup-BND4GQdv.css} +0 -0
  546. /package/dist/assets/{NcActionSeparator-CEbb5P6P.css → NcActionSeparator-Ct2RnclR.css} +0 -0
  547. /package/dist/assets/{NcAppNavigationIconBullet-By_0o2dG.css → NcAppNavigationIconBullet-CeBYVy6t.css} +0 -0
  548. /package/dist/assets/{NcAppNavigationList-BHK_PY3c.css → NcAppNavigationList-CLLHyHIn.css} +0 -0
  549. /package/dist/assets/{NcAppNavigationSpacer-DiE3sVy0.css → NcAppNavigationSpacer-BJj8CIpA.css} +0 -0
  550. /package/dist/assets/{NcAppSettingsSection-Y3DmEyQ2.css → NcAppSettingsSection-DnDcGk1v.css} +0 -0
  551. /package/dist/assets/{NcAppSidebarTab-Cp0hG2NU.css → NcAppSidebarTab-BFy7uyWe.css} +0 -0
  552. /package/dist/assets/{NcCounterBubble-BfI32Juo.css → NcCounterBubble-DWgyYB0d.css} +0 -0
  553. /package/dist/assets/{NcDashboardWidgetItem-CCjoWolF.css → NcDashboardWidgetItem-B8_6-_k8.css} +0 -0
  554. /package/dist/assets/{NcGuestContent-Dh5z5Dgm.css → NcGuestContent-C9lbC3vg.css} +0 -0
  555. /package/dist/assets/{NcIconSvgWrapper-CtTf2c7f.css → NcIconSvgWrapper-DQFhmjCC.css} +0 -0
  556. /package/dist/assets/{NcLoadingIcon-BSONDy7x.css → NcLoadingIcon-x1d284UU.css} +0 -0
  557. /package/dist/assets/{NcNoteCard-CImn6F9p.css → NcNoteCard-C6xb7vi0.css} +0 -0
  558. /package/dist/assets/{NcProgressBar-BsqdCn-x.css → NcProgressBar--z-WqmX4.css} +0 -0
  559. /package/dist/assets/{NcSettingsSection-DXQyhMdq.css → NcSettingsSection-Dyrgo_fF.css} +0 -0
  560. /package/dist/assets/{NcUserStatusIcon-FLA1tQpD.css → NcUserStatusIcon-Du-BEPk_.css} +0 -0
  561. /package/dist/assets/{index-4CSl8xev.css → index-DQ4Plm4r.css} +0 -0
@@ -1,9 +1,9 @@
1
- import '../assets/NcCheckboxRadioSwitch-CG-8Isv_.css';
2
- import { openBlock, createElementBlock, mergeProps, createElementVNode, toDisplayString, createCommentVNode, resolveComponent, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, toHandlers, withCtx, createVNode, createSlots } from "vue";
1
+ import '../assets/NcCheckboxRadioSwitch-uwXbP_jb.css';
2
+ import { createElementBlock, openBlock, mergeProps, createElementVNode, createCommentVNode, toDisplayString, resolveComponent, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, toHandlers, withCtx, createVNode, createSlots } from "vue";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
4
- import { N as NcLoadingIcon } from "./NcLoadingIcon-DREmHXr2.mjs";
5
- import { G as GenRandomId } from "./GenRandomId-CMooMQt0.mjs";
6
- import { r as register, a as t, Q as n } from "./_l10n-D7WwrqS-.mjs";
4
+ import { N as NcLoadingIcon } from "./NcLoadingIcon-CsMn1bFR.mjs";
5
+ import { c as createElementId } from "./createElementId-DhjFt1I9.mjs";
6
+ import { r as register, O as n, a as t } from "./_l10n-7kR7gXFc.mjs";
7
7
  const _sfc_main$8 = {
8
8
  name: "CheckboxBlankOutlineIcon",
9
9
  emits: ["click"],
@@ -21,7 +21,7 @@ const _sfc_main$8 = {
21
21
  }
22
22
  }
23
23
  };
24
- const _hoisted_1$8 = ["aria-hidden", "aria-label"];
24
+ const _hoisted_1$7 = ["aria-hidden", "aria-label"];
25
25
  const _hoisted_2$6 = ["fill", "width", "height"];
26
26
  const _hoisted_3$6 = { d: "M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z" };
27
27
  const _hoisted_4$6 = { key: 0 };
@@ -44,7 +44,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
44
44
  $props.title ? (openBlock(), createElementBlock("title", _hoisted_4$6, toDisplayString($props.title), 1)) : createCommentVNode("", true)
45
45
  ])
46
46
  ], 8, _hoisted_2$6))
47
- ], 16, _hoisted_1$8);
47
+ ], 16, _hoisted_1$7);
48
48
  }
49
49
  const CheckboxBlankOutline = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]);
50
50
  const _sfc_main$7 = {
@@ -64,7 +64,7 @@ const _sfc_main$7 = {
64
64
  }
65
65
  }
66
66
  };
67
- const _hoisted_1$7 = ["aria-hidden", "aria-label"];
67
+ const _hoisted_1$6 = ["aria-hidden", "aria-label"];
68
68
  const _hoisted_2$5 = ["fill", "width", "height"];
69
69
  const _hoisted_3$5 = { d: "M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z" };
70
70
  const _hoisted_4$5 = { key: 0 };
@@ -87,7 +87,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
87
87
  $props.title ? (openBlock(), createElementBlock("title", _hoisted_4$5, toDisplayString($props.title), 1)) : createCommentVNode("", true)
88
88
  ])
89
89
  ], 8, _hoisted_2$5))
90
- ], 16, _hoisted_1$7);
90
+ ], 16, _hoisted_1$6);
91
91
  }
92
92
  const MinusBox = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
93
93
  const _sfc_main$6 = {
@@ -107,7 +107,7 @@ const _sfc_main$6 = {
107
107
  }
108
108
  }
109
109
  };
110
- const _hoisted_1$6 = ["aria-hidden", "aria-label"];
110
+ const _hoisted_1$5 = ["aria-hidden", "aria-label"];
111
111
  const _hoisted_2$4 = ["fill", "width", "height"];
112
112
  const _hoisted_3$4 = { d: "M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z" };
113
113
  const _hoisted_4$4 = { key: 0 };
@@ -130,7 +130,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
130
130
  $props.title ? (openBlock(), createElementBlock("title", _hoisted_4$4, toDisplayString($props.title), 1)) : createCommentVNode("", true)
131
131
  ])
132
132
  ], 8, _hoisted_2$4))
133
- ], 16, _hoisted_1$6);
133
+ ], 16, _hoisted_1$5);
134
134
  }
135
135
  const CheckboxMarked = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
136
136
  const _sfc_main$5 = {
@@ -150,7 +150,7 @@ const _sfc_main$5 = {
150
150
  }
151
151
  }
152
152
  };
153
- const _hoisted_1$5 = ["aria-hidden", "aria-label"];
153
+ const _hoisted_1$4 = ["aria-hidden", "aria-label"];
154
154
  const _hoisted_2$3 = ["fill", "width", "height"];
155
155
  const _hoisted_3$3 = { d: "M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z" };
156
156
  const _hoisted_4$3 = { key: 0 };
@@ -173,7 +173,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
173
173
  $props.title ? (openBlock(), createElementBlock("title", _hoisted_4$3, toDisplayString($props.title), 1)) : createCommentVNode("", true)
174
174
  ])
175
175
  ], 8, _hoisted_2$3))
176
- ], 16, _hoisted_1$5);
176
+ ], 16, _hoisted_1$4);
177
177
  }
178
178
  const RadioboxMarked = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
179
179
  const _sfc_main$4 = {
@@ -193,7 +193,7 @@ const _sfc_main$4 = {
193
193
  }
194
194
  }
195
195
  };
196
- const _hoisted_1$4 = ["aria-hidden", "aria-label"];
196
+ const _hoisted_1$3 = ["aria-hidden", "aria-label"];
197
197
  const _hoisted_2$2 = ["fill", "width", "height"];
198
198
  const _hoisted_3$2 = { d: "M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" };
199
199
  const _hoisted_4$2 = { key: 0 };
@@ -216,7 +216,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
216
216
  $props.title ? (openBlock(), createElementBlock("title", _hoisted_4$2, toDisplayString($props.title), 1)) : createCommentVNode("", true)
217
217
  ])
218
218
  ], 8, _hoisted_2$2))
219
- ], 16, _hoisted_1$4);
219
+ ], 16, _hoisted_1$3);
220
220
  }
221
221
  const RadioboxBlank = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
222
222
  const _sfc_main$3 = {
@@ -236,7 +236,7 @@ const _sfc_main$3 = {
236
236
  }
237
237
  }
238
238
  };
239
- const _hoisted_1$3 = ["aria-hidden", "aria-label"];
239
+ const _hoisted_1$2 = ["aria-hidden", "aria-label"];
240
240
  const _hoisted_2$1 = ["fill", "width", "height"];
241
241
  const _hoisted_3$1 = { d: "M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M7,15A3,3 0 0,1 4,12A3,3 0 0,1 7,9A3,3 0 0,1 10,12A3,3 0 0,1 7,15Z" };
242
242
  const _hoisted_4$1 = { key: 0 };
@@ -259,7 +259,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
259
259
  $props.title ? (openBlock(), createElementBlock("title", _hoisted_4$1, toDisplayString($props.title), 1)) : createCommentVNode("", true)
260
260
  ])
261
261
  ], 8, _hoisted_2$1))
262
- ], 16, _hoisted_1$3);
262
+ ], 16, _hoisted_1$2);
263
263
  }
264
264
  const ToggleSwitchOff = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
265
265
  const _sfc_main$2 = {
@@ -279,7 +279,7 @@ const _sfc_main$2 = {
279
279
  }
280
280
  }
281
281
  };
282
- const _hoisted_1$2 = ["aria-hidden", "aria-label"];
282
+ const _hoisted_1$1 = ["aria-hidden", "aria-label"];
283
283
  const _hoisted_2 = ["fill", "width", "height"];
284
284
  const _hoisted_3 = { d: "M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z" };
285
285
  const _hoisted_4 = { key: 0 };
@@ -302,7 +302,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
302
302
  $props.title ? (openBlock(), createElementBlock("title", _hoisted_4, toDisplayString($props.title), 1)) : createCommentVNode("", true)
303
303
  ])
304
304
  ], 8, _hoisted_2))
305
- ], 16, _hoisted_1$2);
305
+ ], 16, _hoisted_1$1);
306
306
  }
307
307
  const ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
308
308
  const TYPE_CHECKBOX = "checkbox";
@@ -315,13 +315,6 @@ const _sfc_main$1 = {
315
315
  NcLoadingIcon
316
316
  },
317
317
  props: {
318
- /**
319
- * Unique id attribute of the input to label
320
- */
321
- id: {
322
- type: String,
323
- default: null
324
- },
325
318
  /**
326
319
  * Class for the icon element
327
320
  */
@@ -422,11 +415,9 @@ const _sfc_main$1 = {
422
415
  }
423
416
  }
424
417
  };
425
- const _hoisted_1$1 = ["id"];
426
418
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
427
419
  const _component_NcLoadingIcon = resolveComponent("NcLoadingIcon");
428
420
  return openBlock(), createElementBlock("span", {
429
- id: !$options.isButtonType ? `${$props.id}-label` : void 0,
430
421
  class: normalizeClass(["checkbox-content", {
431
422
  ["checkbox-content-" + $props.type]: true,
432
423
  "checkbox-content--button-variant": $props.buttonVariant,
@@ -458,9 +449,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
458
449
  }, [
459
450
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
460
451
  ], 2)) : createCommentVNode("", true)
461
- ], 10, _hoisted_1$1);
452
+ ], 2);
462
453
  }
463
- const NcCheckboxContent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-38a6f3e5"]]);
454
+ const NcCheckboxContent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-95d33103"]]);
464
455
  register();
465
456
  const _sfc_main = {
466
457
  name: "NcCheckboxRadioSwitch",
@@ -475,7 +466,7 @@ const _sfc_main = {
475
466
  */
476
467
  id: {
477
468
  type: String,
478
- default: () => "checkbox-radio-switch-" + GenRandomId(),
469
+ default: () => "checkbox-radio-switch-" + createElementId(),
479
470
  validator: (id) => id.trim() !== ""
480
471
  },
481
472
  /**
@@ -774,7 +765,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
774
765
  name: $props.name
775
766
  }, _ctx.$attrs, toHandlers($options.listeners, true)), null, 48, _hoisted_1)) : createCommentVNode("", true),
776
767
  createVNode(_component_NcCheckboxContent, {
777
- id: $props.id,
768
+ id: !$options.isButtonType ? `${$props.id}-label` : void 0,
778
769
  class: "checkbox-radio-switch__content",
779
770
  "icon-class": "checkbox-radio-switch__icon",
780
771
  "text-class": "checkbox-radio-switch__text",
@@ -803,7 +794,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
803
794
  _: 3
804
795
  }, 16, ["id", "aria-label", "class", "style", "type"]);
805
796
  }
806
- const NcCheckboxRadioSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-70225353"]]);
797
+ const NcCheckboxRadioSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b1b311bc"]]);
807
798
  export {
808
799
  NcCheckboxRadioSwitch as N
809
800
  };
801
+ //# sourceMappingURL=NcCheckboxRadioSwitch-CWU_M_ui.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcCheckboxRadioSwitch-CWU_M_ui.mjs","sources":["../../node_modules/vue-material-design-icons/CheckboxBlankOutline.vue","../../node_modules/vue-material-design-icons/MinusBox.vue","../../node_modules/vue-material-design-icons/CheckboxMarked.vue","../../node_modules/vue-material-design-icons/RadioboxMarked.vue","../../node_modules/vue-material-design-icons/RadioboxBlank.vue","../../node_modules/vue-material-design-icons/ToggleSwitchOff.vue","../../node_modules/vue-material-design-icons/ToggleSwitch.vue","../../src/components/NcCheckboxRadioSwitch/NcCheckboxContent.vue","../../src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue"],"sourcesContent":["<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : 'true'\"\n :aria-label=\"title\"\n class=\"material-design-icon checkbox-blank-outline-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=\"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"CheckboxBlankOutlineIcon\",\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 minus-box-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=\"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"MinusBoxIcon\",\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 checkbox-marked-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=\"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"CheckboxMarkedIcon\",\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 radiobox-marked-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=\"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"RadioboxMarkedIcon\",\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 radiobox-blank-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=\"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"RadioboxBlankIcon\",\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 toggle-switch-off-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=\"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M7,15A3,3 0 0,1 4,12A3,3 0 0,1 7,9A3,3 0 0,1 10,12A3,3 0 0,1 7,15Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"ToggleSwitchOffIcon\",\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 toggle-switch-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=\"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"ToggleSwitchIcon\",\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: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<span class=\"checkbox-content\"\n\t\t:class=\"{\n\t\t\t['checkbox-content-' + type]: true,\n\t\t\t'checkbox-content--button-variant': buttonVariant,\n\t\t\t'checkbox-content--has-text': !!$slots.default,\n\t\t}\">\n\t\t<!--\n\t\t\tlabel can't be used here because of shift+click firefox bug\n\t\t\thttps://bugzilla.mozilla.org/show_bug.cgi?id=559506\n\t\t-->\n\t\t<span :class=\"{\n\t\t\t\t'checkbox-content__icon': true,\n\t\t\t\t'checkbox-content__icon--checked': isChecked,\n\t\t\t\t[iconClass]: true\n\t\t\t}\"\n\t\t\t:aria-hidden=\"true\"\n\t\t\tinert>\n\t\t\t<!-- @slot The checkbox/radio icon, you can use it for adding an icon to the button variant\n\t\t\t\t\t@binding {bool} checked The input checked state\n\t\t\t\t\t@binding {bool} loading The loading state\n\t\t\t-->\n\t\t\t<slot name=\"icon\"\n\t\t\t\t:checked=\"isChecked\"\n\t\t\t\t:loading=\"loading\">\n\t\t\t\t<NcLoadingIcon v-if=\"loading\" />\n\t\t\t\t<component :is=\"checkboxRadioIconElement\"\n\t\t\t\t\tv-else-if=\"!buttonVariant\"\n\t\t\t\t\t:size=\"size\" />\n\t\t\t</slot>\n\t\t</span>\n\n\t\t<span v-if=\"$slots.default\" :class=\"['checkbox-content__text', textClass]\">\n\t\t\t<!-- @slot The checkbox/radio label -->\n\t\t\t<slot />\n\t\t</span>\n\t</span>\n</template>\n\n<script>\nimport CheckboxBlankOutline from 'vue-material-design-icons/CheckboxBlankOutline.vue'\nimport MinusBox from 'vue-material-design-icons/MinusBox.vue'\nimport CheckboxMarked from 'vue-material-design-icons/CheckboxMarked.vue'\nimport RadioboxMarked from 'vue-material-design-icons/RadioboxMarked.vue'\nimport RadioboxBlank from 'vue-material-design-icons/RadioboxBlank.vue'\nimport ToggleSwitchOff from 'vue-material-design-icons/ToggleSwitchOff.vue'\nimport ToggleSwitch from 'vue-material-design-icons/ToggleSwitch.vue'\n\nimport NcLoadingIcon from '../NcLoadingIcon/index.js'\n\nexport const TYPE_CHECKBOX = 'checkbox'\nexport const TYPE_RADIO = 'radio'\nexport const TYPE_SWITCH = 'switch'\nexport const TYPE_BUTTON = 'button'\n\nexport default {\n\tname: 'NcCheckboxContent',\n\n\tcomponents: {\n\t\tNcLoadingIcon,\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Class for the icon element\n\t\t */\n\t\ticonClass: {\n\t\t\ttype: [String, Object],\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Class for the text element\n\t\t */\n\t\ttextClass: {\n\t\t\ttype: [String, Object],\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Type of the input. checkbox, radio, switch, or button.\n\t\t *\n\t\t * Only use button when used in a `tablist` container and the\n\t\t * `tab` role is set.\n\t\t *\n\t\t * @type {'checkbox'|'radio'|'switch'|'button'}\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'checkbox',\n\t\t\tvalidator: type => [\n\t\t\t\tTYPE_CHECKBOX,\n\t\t\t\tTYPE_RADIO,\n\t\t\t\tTYPE_SWITCH,\n\t\t\t\tTYPE_BUTTON,\n\t\t\t].includes(type),\n\t\t},\n\n\t\t/**\n\t\t * Toggle the alternative button style\n\t\t */\n\t\tbuttonVariant: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * True if the entry is checked\n\t\t */\n\t\tisChecked: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Indeterminate state\n\t\t */\n\t\tindeterminate: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Loading state\n\t\t */\n\t\tloading: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Icon size\n\t\t */\n\t\tsize: {\n\t\t\ttype: Number,\n\t\t\tdefault: 24,\n\t\t},\n\t},\n\n\tcomputed: {\n\t\tisButtonType() {\n\t\t\treturn this.type === TYPE_BUTTON\n\t\t},\n\n\t\t/**\n\t\t * Returns the proper Material icon depending on the select case\n\t\t *\n\t\t * @return {object}\n\t\t */\n\t\tcheckboxRadioIconElement() {\n\t\t\tif (this.type === TYPE_RADIO) {\n\t\t\t\tif (this.isChecked) {\n\t\t\t\t\treturn RadioboxMarked\n\t\t\t\t}\n\t\t\t\treturn RadioboxBlank\n\t\t\t}\n\n\t\t\t// Switch\n\t\t\tif (this.type === TYPE_SWITCH) {\n\t\t\t\tif (this.isChecked) {\n\t\t\t\t\treturn ToggleSwitch\n\t\t\t\t}\n\t\t\t\treturn ToggleSwitchOff\n\t\t\t}\n\n\t\t\t// Checkbox\n\t\t\tif (this.indeterminate) {\n\t\t\t\treturn MinusBox\n\t\t\t}\n\t\t\tif (this.isChecked) {\n\t\t\t\treturn CheckboxMarked\n\t\t\t}\n\t\t\treturn CheckboxBlankOutline\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.checkbox-content {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: row;\n\tgap: var(--default-grid-baseline);\n\tuser-select: none;\n\tmin-height: var(--default-clickable-area);\n\tborder-radius: var(--checkbox-radio-switch--border-radius);\n\tpadding: var(--default-grid-baseline) calc((var(--default-clickable-area) - var(--icon-height)) / 2);\n\t// Set to 100% to make text overflow work on button style\n\twidth: 100%;\n\t// but restrict to content so plain checkboxes / radio switches do not expand\n\tmax-width: fit-content;\n\n\t&__text {\n\t\tflex: 1 0;\n\n\t\t&:empty {\n\t\t\t// hide text if empty to ensure checkbox outline is a circle instead of oval\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t&__icon > * {\n\t\twidth: var(--icon-size);\n\t\theight: var(--icon-size);\n\t\tcolor: var(--color-primary-element);\n\t}\n\n\t&--button-variant {\n\t\t.checkbox-content__icon:not(.checkbox-content__icon--checked) > * {\n\t\t\tcolor: var(--color-primary-element);\n\t\t}\n\n\t\t.checkbox-content__icon--checked > * {\n\t\t\tcolor: var(--color-primary-element-text);\n\t\t}\n\t}\n\n\t&--has-text {\n\t\tpadding-inline-end: $icon-margin;\n\t}\n\n\t&, * {\n\t\tcursor: pointer;\n\t\tflex-shrink: 0;\n\t}\n}\n</style>\n","<!--\n - SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\n\n### General description\n\nThis is a simple input checkbox, radio and switch design.\nPlease have a look at proper usage and recommendations: https://material.io/components/checkboxes\n\nNote: All generic attributes on the component, except `class` and `style`, are passed to the inner `input` element *(for the button type the attributes are passed to the `button` element)*.\n\n### Standard checkbox\n```vue\n<template>\n\t<div>\n\t\t<NcCheckboxRadioSwitch v-model=\"sharingEnabled\">Enable sharing</NcCheckboxRadioSwitch>\n\t\t<NcCheckboxRadioSwitch v-model=\"sharingEnabled\" :disabled=\"true\">Enable sharing (disabled)</NcCheckboxRadioSwitch>\n\t\t<NcCheckboxRadioSwitch :model-value=\"sharingEnabled\" :loading=\"loading\" @update:model-value=\"onToggle\">Enable sharing (with request loading)</NcCheckboxRadioSwitch>\n\t\t<br>\n\t\tsharingEnabled: {{ sharingEnabled }}\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tloading: false,\n\t\t\tsharingEnabled: false,\n\t\t}\n\t},\n\tmethods: {\n\t\tonToggle() {\n\t\t\tthis.loading = true\n\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.sharingEnabled = !this.sharingEnabled\n\t\t\t\tthis.loading = false\n\t\t\t}, 1000)\n\t\t}\n\t}\n}\n</script>\n```\n\n### Standard radio set\n```vue\n<template>\n\t<div>\n\t\t<NcCheckboxRadioSwitch v-model=\"sharingPermission\" value=\"r\" name=\"sharing_permission_radio\" type=\"radio\">Default permission read</NcCheckboxRadioSwitch>\n\t\t<NcCheckboxRadioSwitch v-model=\"sharingPermission\" value=\"rw\" name=\"sharing_permission_radio\" type=\"radio\">Default permission read+write</NcCheckboxRadioSwitch>\n\t\t<br>\n\t\tsharingPermission: {{ sharingPermission }}\n\t</div>\n</template>\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tsharingPermission: 'r',\n\t\t\t}\n\t\t}\n\t}\n</script>\n```\n\n### Standard radio set with alternative button style\n```vue\n<template>\n\t<div>\n\t\t<h4>Horizontal</h4>\n\t\t<div style=\"display: flex\">\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\tv-model=\"sharingPermission\"\n\t\t\t\tvalue=\"r\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"horizontal\">\n\t\t\t\tDefault permission read\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\tv-model=\"sharingPermission\"\n\t\t\t\tvalue=\"rw\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"horizontal\">\n\t\t\t\tDefault permission read+write\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t</div>\n\t\t<h4>Vertically</h4>\n\t\t<div style=\"width: fit-content\">\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\tv-model=\"sharingPermission\"\n\t\t\t\tvalue=\"r\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"vertical\">\n\t\t\t\tDefault permission read\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\tv-model=\"sharingPermission\"\n\t\t\t\tvalue=\"rw\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"vertical\">\n\t\t\t\tDefault permission read+write\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t</div>\n\t\tsharingPermission: {{ sharingPermission }}\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tsharingPermission: 'r',\n\t\t}\n\t}\n}\n</script>\n```\n\n### Radio set with button style and icons\n```vue\n<template>\n\t<div>\n\t\t<h4>Horizontal</h4>\n\t\t<div style=\"display: flex\">\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\tv-model=\"enableSettings\"\n\t\t\t\tvalue=\"y\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"horizontal\">\n\t\t\t\tEnable settings\n\t\t\t\t<template #icon><CheckIcon :size=\"20\"></template>\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\tv-model=\"enableSettings\"\n\t\t\t\tvalue=\"n\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"horizontal\">\n\t\t\t\tDisable settings\n\t\t\t\t<template #icon><CancelIcon :size=\"20\"></template>\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t</div>\n\t\t<h4>Vertically</h4>\n\t\t<div style=\"width: fit-content\">\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\tv-model=\"enableSettings\"\n\t\t\t\tvalue=\"y\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"vertical\">\n\t\t\t\tEnable settings\n\t\t\t\t<template #icon><CheckIcon :size=\"20\"></template>\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\tv-model=\"enableSettings\"\n\t\t\t\tvalue=\"n\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"vertical\">\n\t\t\t\tDisable settings\n\t\t\t\t<template #icon><CancelIcon :size=\"20\"></template>\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t</div>\n\t\tSettings enabled: {{ enableSettings === 'y' ? 'yes' : 'no' }}\n\t</div>\n</template>\n<script>\nimport CheckIcon from 'vue-material-design-icons/Check.vue'\nimport CancelIcon from 'vue-material-design-icons/Cancel.vue'\nexport default {\n\tcomponents: {\n\t\tCheckIcon,\n\t\tCancelIcon,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tenableSettings: 'n',\n\t\t}\n\t}\n}\n</script>\n```\n\n### Standard checkbox set\n```vue\n<template>\n\t<div>\n\t\t<NcCheckboxRadioSwitch :disabled=\"true\" v-model=\"sharingPermission\" value=\"r\" name=\"sharing_permission\">Permission read</NcCheckboxRadioSwitch>\n\t\t<NcCheckboxRadioSwitch v-model=\"sharingPermission\" value=\"w\" name=\"sharing_permission\">Permission write</NcCheckboxRadioSwitch>\n\t\t<NcCheckboxRadioSwitch v-model=\"sharingPermission\" value=\"d\" name=\"sharing_permission\">Permission delete</NcCheckboxRadioSwitch>\n\t\t<br>\n\t\tsharingPermission: {{ sharingPermission }}\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tsharingPermission: ['r', 'd'],\n\t\t}\n\t}\n}\n</script>\n```\n\n### Standard switch\n```vue\n<template>\n\t<div>\n\t\t<NcCheckboxRadioSwitch v-model=\"sharingEnabled\" type=\"switch\">Enable sharing</NcCheckboxRadioSwitch>\n\t\t<NcCheckboxRadioSwitch v-model=\"sharingEnabled\" type=\"switch\" :disabled=\"true\">Enable sharing (disabled)</NcCheckboxRadioSwitch>\n\t\t<br>\n\t\tsharingEnabled: {{ sharingEnabled }}\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tsharingEnabled: true,\n\t\t}\n\t},\n}\n</script>\n```\n\n</docs>\n\n<template>\n\t<component :is=\"computedWrapperElement\"\n\t\t:id=\"wrapperId ?? (isButtonType ? id : null)\"\n\t\t:aria-label=\"isButtonType && ariaLabel ? ariaLabel : undefined\"\n\t\tclass=\"checkbox-radio-switch\"\n\t\t:class=\"[\n\t\t\t$props.class,\n\t\t\t{\n\t\t\t\t['checkbox-radio-switch-' + type]: type,\n\t\t\t\t'checkbox-radio-switch--checked': isChecked,\n\t\t\t\t'checkbox-radio-switch--disabled': disabled,\n\t\t\t\t'checkbox-radio-switch--indeterminate': hasIndeterminate ? indeterminate : false,\n\t\t\t\t'checkbox-radio-switch--button-variant': buttonVariant,\n\t\t\t\t'checkbox-radio-switch--button-variant-v-grouped': buttonVariant && buttonVariantGrouped === 'vertical',\n\t\t\t\t'checkbox-radio-switch--button-variant-h-grouped': buttonVariant && buttonVariantGrouped === 'horizontal',\n\t\t\t\t'button-vue': isButtonType,\n\t\t\t},\n\t\t]\"\n\t\t:style=\"[cssVars, style]\"\n\t\t:type=\"isButtonType ? 'button' : null\"\n\t\tv-bind=\"isButtonType ? $attrs : {} \"\n\t\tv-on=\"isButtonType ? listeners : {}\">\n\t\t<input v-if=\"!isButtonType\"\n\t\t\t:id=\"id\"\n\t\t\t:aria-labelledby=\"!isButtonType && !ariaLabel ? `${id}-label` : null\"\n\t\t\t:aria-label=\"ariaLabel || undefined\"\n\t\t\tclass=\"checkbox-radio-switch__input\"\n\t\t\t:disabled=\"disabled\"\n\t\t\t:type=\"inputType\"\n\t\t\t:value=\"value\"\n\t\t\t:checked=\"isChecked\"\n\t\t\t:indeterminate.prop=\"hasIndeterminate ? indeterminate : null\"\n\t\t\t:required=\"required\"\n\t\t\t:name=\"name\"\n\t\t\tv-bind=\"$attrs\"\n\t\t\tv-on=\"listeners\">\n\t\t<NcCheckboxContent :id=\"!isButtonType ? `${id}-label` : undefined\"\n\t\t\tclass=\"checkbox-radio-switch__content\"\n\t\t\ticon-class=\"checkbox-radio-switch__icon\"\n\t\t\ttext-class=\"checkbox-radio-switch__text\"\n\t\t\t:type=\"type\"\n\t\t\t:indeterminate=\"hasIndeterminate ? indeterminate : false\"\n\t\t\t:button-variant=\"buttonVariant\"\n\t\t\t:is-checked=\"isChecked\"\n\t\t\t:loading=\"loading\"\n\t\t\t:size=\"size\"\n\t\t\t@click=\"onToggle\">\n\t\t\t<template #icon>\n\t\t\t\t<!-- @slot The checkbox/radio icon, you can use it for adding an icon to the button variant -->\n\t\t\t\t<slot name=\"icon\" />\n\t\t\t</template>\n\n\t\t\t<template v-if=\"!!$slots.default\" #default>\n\t\t\t\t<!-- @slot The checkbox/radio label -->\n\t\t\t\t<slot />\n\t\t\t</template>\n\t\t</NcCheckboxContent>\n\t</component>\n</template>\n\n<script>\nimport NcCheckboxContent, { TYPE_BUTTON, TYPE_CHECKBOX, TYPE_RADIO, TYPE_SWITCH } from './NcCheckboxContent.vue'\nimport { createElementId } from '../../utils/createElementId.ts'\nimport { t, n } from '../../l10n.js'\n\nexport default {\n\tname: 'NcCheckboxRadioSwitch',\n\n\tcomponents: {\n\t\tNcCheckboxContent,\n\t},\n\n\t// We need to pass attributes to the input element\n\tinheritAttrs: false,\n\n\tprops: {\n\t\t/**\n\t\t * Unique id attribute of the input\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'checkbox-radio-switch-' + createElementId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\n\t\t/**\n\t\t * Unique id attribute of the wrapper element\n\t\t */\n\t\twrapperId: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Input name. Required for radio, optional for checkbox, and ignored\n\t\t * for button.\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Required if no text is set.\n\t\t * The aria-label is forwarded to the input or button.\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Type of the input. checkbox, radio, switch, or button.\n\t\t *\n\t\t * Only use button when used in a `tablist` container and the\n\t\t * `tab` role is set.\n\t\t *\n\t\t * @type {'checkbox'|'radio'|'switch'|'button'}\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'checkbox',\n\t\t\tvalidator: type => [\n\t\t\t\tTYPE_CHECKBOX,\n\t\t\t\tTYPE_RADIO,\n\t\t\t\tTYPE_SWITCH,\n\t\t\t\tTYPE_BUTTON,\n\t\t\t].includes(type),\n\t\t},\n\n\t\t/**\n\t\t * Toggle the alternative button style\n\t\t */\n\t\tbuttonVariant: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Are the elements are all direct siblings?\n\t\t * If so they will be grouped horizontally or vertically\n\t\t *\n\t\t * @type {'no'|'horizontal'|'vertical'}\n\t\t */\n\t\tbuttonVariantGrouped: {\n\t\t\ttype: String,\n\t\t\tdefault: 'no',\n\t\t\tvalidator: v => ['no', 'vertical', 'horizontal'].includes(v),\n\t\t},\n\n\t\t/**\n\t\t * Checked state. To be used with `v-model:value`\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: [Boolean, Array, String],\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Value to be synced on check\n\t\t */\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Disabled state\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Indeterminate state\n\t\t */\n\t\tindeterminate: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Required state\n\t\t */\n\t\trequired: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Loading state\n\t\t */\n\t\tloading: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Wrapping element tag\n\t\t *\n\t\t * When `type` is set to `button` this will be ignored\n\t\t *\n\t\t * Defaults to `span`\n\t\t */\n\t\twrapperElement: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The class(es) to pass to the wrapper / root element of the component\n\t\t */\n\t\tclass: {\n\t\t\ttype: [String, Array, Object],\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * The style to pass to the wrapper / root element of the component\n\t\t */\n\t\tstyle: {\n\t\t\ttype: [String, Array, Object],\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\temits: ['update:modelValue'],\n\n\tcomputed: {\n\t\tisButtonType() {\n\t\t\treturn this.type === TYPE_BUTTON\n\t\t},\n\n\t\tcomputedWrapperElement() {\n\t\t\tif (this.isButtonType) {\n\t\t\t\treturn 'button'\n\t\t\t}\n\t\t\tif (this.wrapperElement !== null) {\n\t\t\t\treturn this.wrapperElement\n\t\t\t}\n\t\t\treturn 'span'\n\t\t},\n\n\t\tlisteners() {\n\t\t\tif (this.isButtonType) {\n\t\t\t\treturn {\n\t\t\t\t\tclick: this.onToggle,\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tchange: this.onToggle,\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * CSS local variables for this component\n\t\t * @return {Record<string, string>}\n\t\t */\n\t\tcssVars() {\n\t\t\treturn {\n\t\t\t\t'--icon-size': this.size + 'px',\n\t\t\t\t'--icon-height': (this.type === TYPE_SWITCH ? 16 : this.size) + 'px',\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Icon size\n\t\t *\n\t\t * @return {number}\n\t\t */\n\t\tsize() {\n\t\t\treturn this.type === TYPE_SWITCH\n\t\t\t\t? 36\n\t\t\t\t: 24\n\t\t},\n\n\t\t/**\n\t\t * Return the input type.\n\t\t * Switch is not an official type\n\t\t *\n\t\t * @return {string}\n\t\t */\n\t\tinputType() {\n\t\t\tconst nativeTypes = [\n\t\t\t\tTYPE_CHECKBOX,\n\t\t\t\tTYPE_RADIO,\n\t\t\t\tTYPE_BUTTON,\n\t\t\t]\n\t\t\tif (nativeTypes.includes(this.type)) {\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn TYPE_CHECKBOX\n\t\t},\n\n\t\t/**\n\t\t * Check if that entry is checked\n\t\t * If value is defined, we use that as the checked value\n\t\t * If not, we expect true/false in this.checked\n\t\t *\n\t\t * @return {boolean}\n\t\t */\n\t\tisChecked() {\n\t\t\tif (this.value !== null) {\n\t\t\t\tif (Array.isArray(this.modelValue)) {\n\t\t\t\t\treturn [...this.modelValue].indexOf(this.value) > -1\n\t\t\t\t}\n\t\t\t\treturn this.modelValue === this.value\n\t\t\t}\n\t\t\treturn this.modelValue === true\n\t\t},\n\n\t\thasIndeterminate() {\n\t\t\treturn [\n\t\t\t\tTYPE_CHECKBOX,\n\t\t\t\tTYPE_RADIO,\n\t\t\t].includes(this.inputType)\n\t\t},\n\t},\n\n\tmounted() {\n\t\tif (this.name && this.type === TYPE_CHECKBOX) {\n\t\t\tif (!Array.isArray(this.modelValue)) {\n\t\t\t\tthrow new Error('When using groups of checkboxes, the updated value will be an array.')\n\t\t\t}\n\t\t}\n\n\t\t// https://material.io/components/checkboxes#usage\n\t\tif (this.name && this.type === TYPE_SWITCH) {\n\t\t\tthrow new Error('Switches are not made to be used for data sets. Please use checkboxes instead.')\n\t\t}\n\n\t\t// https://material.io/components/checkboxes#usage\n\t\tif (typeof this.modelValue !== 'boolean' && this.type === TYPE_SWITCH) {\n\t\t\tthrow new Error('Switches can only be used with boolean as modelValue prop.')\n\t\t}\n\t},\n\n\tmethods: {\n\t\tt,\n\t\tn,\n\n\t\tonToggle(event) {\n\t\t\tif (this.disabled || event.target.tagName.toLowerCase() === 'a') {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// If this is a radio, there can only be one value\n\t\t\tif (this.type === TYPE_RADIO) {\n\t\t\t\tthis.$emit('update:modelValue', this.value)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// If this is a radio, there can only be one value\n\t\t\tif (this.type === TYPE_SWITCH) {\n\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// If the initial value was a boolean, let's keep it that way\n\t\t\tif (typeof this.modelValue === 'boolean') {\n\t\t\t\tthis.$emit('update:modelValue', !this.modelValue)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// Dispatch the checked values as an array if multiple, or single value otherwise\n\t\t\tconst values = this.getInputsSet()\n\t\t\t\t.filter(input => input.checked)\n\t\t\t\t.map(input => input.value)\n\n\t\t\tif (values.includes(this.value)) {\n\t\t\t\tthis.$emit('update:modelValue', values.filter((v) => v !== this.value))\n\t\t\t} else {\n\t\t\t\tthis.$emit('update:modelValue', [...values, this.value])\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Get the input set based on this name\n\t\t *\n\t\t * @return {Node[]}\n\t\t */\n\t\tgetInputsSet() {\n\t\t\treturn [...document.getElementsByName(this.name)]\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.checkbox-radio-switch {\n\tdisplay: flex;\n\talign-items: center;\n\tcolor: var(--color-main-text);\n\tbackground-color: transparent;\n\tfont-size: var(--default-font-size);\n\tline-height: var(--default-line-height);\n\tpadding: 0;\n\tposition: relative;\n\n\t&__input {\n\t\tposition: absolute;\n\t\tz-index: -1;\n\t\topacity: 0 !important; // We need !important, or it gets overwritten by server style\n\t\twidth: var(--icon-size);\n\t\theight: var(--icon-size);\n\t\t// Same as label padding\n\t\tmargin: 4px $icon-margin;\n\t}\n\n\t&__input:focus-visible + &__content,\n\t&__input:focus-visible {\n\t\toutline: 2px solid var(--color-main-text);\n\t\tborder-color: var(--color-main-background);\n\t\toutline-offset: -2px;\n\t}\n\n\t&--disabled &__content {\n\t\topacity: $opacity_disabled;\n\t\t:deep(.checkbox-radio-switch__icon) > * {\n\t\t\tcolor: var(--color-main-text)\n\t\t}\n\t\t&.checkbox-content,\n\t\t&.checkbox-content :deep(*:not(a)) {\n\t\t\tcursor: default !important;\n\t\t}\n\t}\n\n\t&:not(&--disabled, &--checked):focus-within &__content,\n\t&:not(&--disabled, &--checked) &__content:hover {\n\t\tbackground-color: var(--color-background-hover);\n\t}\n\n\t&--checked:not(&--disabled):focus-within &__content,\n\t&--checked:not(&--disabled) &__content:hover {\n\t\tbackground-color: var(--color-primary-element-hover);\n\t}\n\n\t&--checked:not(&--button-variant):not(&--disabled):focus-within &__content,\n\t&--checked:not(&--button-variant):not(&--disabled) &__content:hover {\n\t\tbackground-color: var(--color-primary-element-light-hover);\n\t}\n\n\t// Switch specific rules\n\t&-switch:not(&--checked) :deep(.checkbox-radio-switch__icon) > * {\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n\n\t// If switch is checked AND disabled, use the fade primary colour\n\t&-switch.checkbox-radio-switch--disabled.checkbox-radio-switch--checked :deep(.checkbox-radio-switch__icon) > * {\n\t\tcolor: var(--color-primary-element-light);\n\t}\n\n\t--checkbox-radio-switch--border-radius: var(--border-radius-element, calc(var(--default-clickable-area) / 2));\n\t// keep inner border width in mind\n\t--checkbox-radio-switch--border-radius-outer: calc(var(--checkbox-radio-switch--border-radius) + 2px);\n\n\t&--button-variant.checkbox-radio-switch {\n\t\tbackground-color: var(--color-main-background);\n\t\tborder: 2px solid var(--color-border-maxcontrast);\n\t\toverflow: hidden;\n\n\t\t&--checked {\n\t\t\tfont-weight: bold;\n\n\t\t\t.checkbox-radio-switch__content {\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tcolor: var(--color-primary-element-text);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Text overflow of button style\n\t&--button-variant :deep(.checkbox-radio-switch__text) {\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t\twidth: 100%;\n\t}\n\n\t// Set icon color for non active elements to main text color\n\t&--button-variant:not(&--checked) :deep(.checkbox-radio-switch__icon) > * {\n\t\tcolor: var(--color-main-text);\n\t}\n\n\t// Hide icon container if empty to remove virtual padding\n\t&--button-variant :deep(.checkbox-radio-switch__icon:empty) {\n\t\tdisplay: none;\n\t}\n\n\t&--button-variant:not(&--button-variant-v-grouped):not(&--button-variant-h-grouped),\n\t&--button-variant &__content {\n\t\tborder-radius: var(--checkbox-radio-switch--border-radius);\n\t}\n\n\t/* Special rules for vertical button groups */\n\t&--button-variant-v-grouped &__content {\n\t\tflex-basis: 100%;\n\t\t// vertically grouped buttons should all have the same width\n\t\tmax-width: unset;\n\t}\n\t&--button-variant-v-grouped {\n\t\t&:first-of-type {\n\t\t\tborder-start-start-radius: var(--checkbox-radio-switch--border-radius-outer);\n\t\t\tborder-start-end-radius: var(--checkbox-radio-switch--border-radius-outer);\n\t\t}\n\t\t&:last-of-type {\n\t\t\tborder-end-start-radius: var(--checkbox-radio-switch--border-radius-outer);\n\t\t\tborder-end-end-radius: var(--checkbox-radio-switch--border-radius-outer);\n\t\t}\n\n\t\t// remove borders between elements\n\t\t&:not(:last-of-type) {\n\t\t\tborder-bottom: 0!important;\n\t\t\t.checkbox-radio-switch__content {\n\t\t\t\tmargin-bottom: 2px;\n\t\t\t}\n\t\t}\n\t\t&:not(:first-of-type) {\n\t\t\tborder-top: 0!important;\n\t\t}\n\t}\n\n\t/* Special rules for horizontal button groups */\n\t&--button-variant-h-grouped {\n\t\t&:first-of-type {\n\t\t\tborder-start-start-radius: var(--checkbox-radio-switch--border-radius-outer);\n\t\t\tborder-end-start-radius: var(--checkbox-radio-switch--border-radius-outer);\n\t\t}\n\t\t&:last-of-type {\n\t\t\tborder-start-end-radius: var(--checkbox-radio-switch--border-radius-outer);\n\t\t\tborder-end-end-radius: var(--checkbox-radio-switch--border-radius-outer);\n\t\t}\n\n\t\t// remove borders between elements\n\t\t&:not(:last-of-type) {\n\t\t\tborder-inline-end: 0!important;\n\t\t\t.checkbox-radio-switch__content {\n\t\t\t\tmargin-inline-end: 2px;\n\t\t\t}\n\t\t}\n\t\t&:not(:first-of-type) {\n\t\t\tborder-inline-start: 0!important;\n\t\t}\n\t}\n\t&--button-variant-h-grouped :deep(.checkbox-radio-switch__text) {\n\t\ttext-align: center;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\t&--button-variant-h-grouped &__content {\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t\tmargin: 0;\n\t\tgap: 0;\n\t}\n}\n</style>\n"],"names":["_sfc_main","_hoisted_1","_hoisted_2","_hoisted_3","_createElementBlock","_mergeProps","_createElementVNode","_hoisted_4","_createCommentVNode","_normalizeClass","_renderSlot","_openBlock","_createBlock","_resolveDynamicComponent","_toHandlers","_withCtx","_createVNode","_createSlots"],"mappings":";;;;;AAoBA,MAAKA,cAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,OAAO;AAAA,MACL,MAAM;A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,OAAa,gBAAA;AAAA,QAC/C,kBAAgB,OAAa;AAAA,QAC7B,cAAY,SAAS;AAAA,QACrB,SAAS,OAAO;AAAA,QAChB,MAAM,SAAI;AAAA,QACV,SAAO,SAAQ;AAAA,MAjSnB,GAAAC,YAAA;AAAA,QAkSc,cAEV,MAAoB;AAAA,UAApBP,WAAoB,KAAA,QAAA,QAAA,CAAA,GAAA,QAAA,IAAA;AAAA;QApSxB,GAAA;AAAA;QAuSqB,CAAA,CAAA,KAAA,OAAO;UAvS5B,MAuSsC;AAAA,UAvStC,IAAAK,QAySI,MAAQ;AAAA,YAARL,WAAQ,KAAA,QAAA,WAAA,CAAA,GAAA,QAAA,IAAA;AAAA;UAzSZ,KAAA;AAAA,YAAA;AAAA;;IAAA,GAAA;AAAA;;;","x_google_ignoreList":[0,1,2,3,4,5,6]}
@@ -1,11 +1,11 @@
1
- import '../assets/NcChip-JjMdjcjN.css';
2
- import { defineComponent, useSlots, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withCtx, createVNode, unref } from "vue";
3
- import { r as register, a as t } from "./_l10n-D7WwrqS-.mjs";
4
- import { N as NcActions } from "./NcActions-BJ703bdY.mjs";
5
- import { N as NcActionButton } from "./NcActionButton-B3JQywgv.mjs";
6
- import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-DbL6OP85.mjs";
1
+ import '../assets/NcChip-CKtzzrlA.css';
2
+ import { defineComponent, useSlots, computed, createElementBlock, openBlock, normalizeClass, createCommentVNode, createElementVNode, createBlock, renderSlot, createTextVNode, toDisplayString, withCtx, createVNode, unref } from "vue";
3
+ import { e as mdiClose } from "./mdi-zYpVOORa.mjs";
4
+ import { r as register, a as t } from "./_l10n-7kR7gXFc.mjs";
5
+ import { N as NcActions } from "./NcActions-CgKHXNbF.mjs";
6
+ import { N as NcActionButton } from "./NcActionButton-BdQ_qmvW.mjs";
7
+ import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-BYTrkA66.mjs";
7
8
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
8
- var mdiClose = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";
9
9
  register();
10
10
  const _hoisted_1 = {
11
11
  key: 0,
@@ -15,52 +15,12 @@ const _hoisted_2 = { class: "nc-chip__text" };
15
15
  const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  __name: "NcChip",
17
17
  props: {
18
- /**
19
- * aria label to set on the close button
20
- * @default 'Close'
21
- */
22
- ariaLabelClose: {
23
- type: String,
24
- default: t("Close")
25
- },
26
- /**
27
- * Main text of the chip
28
- */
29
- text: {
30
- type: String,
31
- default: ""
32
- },
33
- /**
34
- * Chip style
35
- * This sets the background style of the chip, similar to NcButton's `type`
36
- */
37
- type: {
38
- type: String,
39
- default: "secondary",
40
- validator: (value) => ["primary", "secondary", "tertiary"].includes(value)
41
- },
42
- /**
43
- * SVG path of the icon to use, this takes precedence over `iconSVG`.
44
- * For example icon paths from `@mdi/js` can be used.
45
- */
46
- iconPath: {
47
- type: String,
48
- default: null
49
- },
50
- /**
51
- * Inline SVG to use as the icon
52
- */
53
- iconSvg: {
54
- type: String,
55
- default: null
56
- },
57
- /**
58
- * Set to true to prevent the close button to be shown
59
- */
60
- noClose: {
61
- type: Boolean,
62
- default: false
63
- }
18
+ ariaLabelClose: { default: t("Close") },
19
+ text: { default: "" },
20
+ iconPath: { default: void 0 },
21
+ iconSvg: { default: void 0 },
22
+ noClose: { type: Boolean },
23
+ variant: { default: "secondary" }
64
24
  },
65
25
  emits: ["close"],
66
26
  setup(__props, { emit: __emit }) {
@@ -76,32 +36,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
36
  return (_ctx, _cache) => {
77
37
  return openBlock(), createElementBlock("div", {
78
38
  class: normalizeClass(["nc-chip", {
79
- [`nc-chip--${__props.type}`]: true,
80
- "nc-chip--no-actions": __props.noClose && !hasActions(),
39
+ [`nc-chip--${_ctx.variant}`]: true,
40
+ "nc-chip--no-actions": _ctx.noClose && !hasActions(),
81
41
  "nc-chip--no-icon": !hasIcon()
82
42
  }])
83
43
  }, [
84
44
  hasIcon() ? (openBlock(), createElementBlock("span", _hoisted_1, [
85
45
  renderSlot(_ctx.$slots, "icon", {}, () => [
86
- __props.iconPath || __props.iconSvg ? (openBlock(), createBlock(NcIconSvgWrapper, {
46
+ _ctx.iconPath || _ctx.iconSvg ? (openBlock(), createBlock(NcIconSvgWrapper, {
87
47
  key: 0,
88
48
  inline: "",
89
- path: __props.iconPath,
90
- svg: __props.iconPath ? void 0 : __props.iconSvg,
49
+ path: _ctx.iconPath,
50
+ svg: _ctx.iconPath ? void 0 : _ctx.iconSvg,
91
51
  size: 18
92
52
  }, null, 8, ["path", "svg"])) : createCommentVNode("", true)
93
53
  ], true)
94
54
  ])) : createCommentVNode("", true),
95
55
  createElementVNode("span", _hoisted_2, [
96
56
  renderSlot(_ctx.$slots, "default", {}, () => [
97
- createTextVNode(toDisplayString(__props.text), 1)
57
+ createTextVNode(toDisplayString(_ctx.text), 1)
98
58
  ], true)
99
59
  ]),
100
60
  canClose.value || hasActions() ? (openBlock(), createBlock(NcActions, {
101
61
  key: 1,
102
62
  class: "nc-chip__actions",
103
63
  "force-menu": !canClose.value,
104
- type: "tertiary-no-background"
64
+ variant: "tertiary-no-background"
105
65
  }, {
106
66
  default: withCtx(() => [
107
67
  canClose.value ? (openBlock(), createBlock(NcActionButton, {
@@ -116,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
116
76
  }, null, 8, ["path"])
117
77
  ]),
118
78
  default: withCtx(() => [
119
- createTextVNode(" " + toDisplayString(__props.ariaLabelClose), 1)
79
+ createTextVNode(" " + toDisplayString(_ctx.ariaLabelClose), 1)
120
80
  ]),
121
81
  _: 1
122
82
  })) : createCommentVNode("", true),
@@ -128,7 +88,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
128
88
  };
129
89
  }
130
90
  });
131
- const NcChip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-008592cb"]]);
91
+ const NcChip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ce097ec8"]]);
132
92
  export {
133
93
  NcChip as N
134
94
  };
95
+ //# sourceMappingURL=NcChip-C3U2HYR9.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcChip-C3U2HYR9.mjs","sources":["../../src/components/NcChip/NcChip.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<docs>\n### Basic usage\n\n```vue\n<template>\n\t<div style=\"display: flex; gap: 8px; flex-wrap: wrap;\">\n\t\t<NcChip text=\"Notes.txt\" />\n\t\t<NcChip text=\"Files\" :icon-path=\"mdiFile\" />\n\t\t<NcChip text=\"Color\" :icon-path=\"mdiPalette\" variant=\"tertiary\" />\n\t\t<NcChip text=\"Current time\" :icon-path=\"mdiClock\" no-close variant=\"primary\" />\n\t</div>\n</template>\n<script>\nimport { mdiClock, mdiFile, mdiPalette } from '@mdi/js'\n\nexport default {\n\tsetup() {\n\t\treturn {\n\t\t\tmdiClock,\n\t\t\tmdiFile,\n\t\t\tmdiPalette,\n\t\t}\n\t}\n}\n</script>\n```\n\n### Advanced usage\n\nIt is also possible to use custom components for the icon by using the `icon` slot.\nIn this example we are using the `NcAvatar` component to render the users avatar as the icon.\n\n*Hint: If you use round icons like avatars you should set their size to `24px` (or use CSS variable `--chip-size`) to make them fully fill and align with the the chip*\n\nAlso it is possible to pass custom actions.\n\n```vue\n<template>\n\t<NcChip>\n\t\t<!-- The icon slot allow to use custom components as the chip icon -->\n\t\t<template #icon>\n\t\t\t<NcAvatar :size=\"24\" user=\"jdoe\" display-name=\"J. Doe\" />\n\t\t</template>\n\t\t<!-- The actions slot allows to add custom actions -->\n\t\t<template #actions>\n\t\t\t<NcActionButton>\n\t\t\t\t<template #icon>\n\t\t\t\t\t<ContactsIcon :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd to contacts\n\t\t\t</NcActionButton>\n\t\t</template>\n\t\t<!-- The default slot can be used for add content, just like the `text` prop -->\n\t\tJ. Doe\n\t</NcChip>\n</template>\n<script>\nimport ContactsIcon from 'vue-material-design-icons/Contacts.vue'\nexport default {\n\tcomponents: {\n\t\tContactsIcon,\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<div class=\"nc-chip\"\n\t\t:class=\"{\n\t\t\t[`nc-chip--${variant}`]: true,\n\t\t\t'nc-chip--no-actions': noClose && !hasActions(),\n\t\t\t'nc-chip--no-icon': !hasIcon(),\n\t\t}\">\n\t\t<span v-if=\"hasIcon()\" class=\"nc-chip__icon\">\n\t\t\t<!-- @slot The icon slot can be used to set the chip icon. Make sure that the icon is not exceeding a height of `24px`. For round icons a exact size of `24px` is recommended. -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<!-- The default icon wrapper uses a size of 18px to ensure the icon is not clipped by the round chip style -->\n\t\t\t\t<NcIconSvgWrapper v-if=\"iconPath || iconSvg\"\n\t\t\t\t\tinline\n\t\t\t\t\t:path=\"iconPath\"\n\t\t\t\t\t:svg=\"iconPath ? undefined : iconSvg\"\n\t\t\t\t\t:size=\"18\" />\n\t\t\t</slot>\n\t\t</span>\n\t\t<span class=\"nc-chip__text\">\n\t\t\t<!-- @slot The default slot can be used to set the text that is shown -->\n\t\t\t<slot>{{ text }}</slot>\n\t\t</span>\n\t\t<NcActions v-if=\"canClose || hasActions()\"\n\t\t\tclass=\"nc-chip__actions\"\n\t\t\t:force-menu=\"!canClose\"\n\t\t\tvariant=\"tertiary-no-background\">\n\t\t\t<NcActionButton v-if=\"canClose\"\n\t\t\t\tclose-after-click\n\t\t\t\t@click=\"onClose\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcIconSvgWrapper :path=\"mdiClose\" :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ ariaLabelClose }}\n\t\t\t</NcActionButton>\n\t\t\t<!-- @slot The actions slot can be used to add custom actions to the chips actions -->\n\t\t\t<slot name=\"actions\" />\n\t\t</NcActions>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport { mdiClose } from '@mdi/js'\nimport { computed, useSlots } from 'vue'\nimport { t } from '../../l10n.js'\n\nimport NcActions from '../NcActions/NcActions.vue'\nimport NcActionButton from '../NcActionButton/NcActionButton.vue'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/NcIconSvgWrapper.vue'\n\nconst props = withDefaults(defineProps<{\n\t/**\n\t * aria label to set on the close button\n\t * @default 'Close'\n\t */\n\tariaLabelClose?: string\n\n\t/**\n\t * Main text of the chip.\n\t */\n\ttext?: string\n\n\t/**\n\t * SVG path of the icon to use, this takes precedence over `iconSVG`.\n\t * For example icon paths from `@mdi/js` can be used.\n\t */\n\ticonPath?: string\n\n\t/**\n\t * Inline SVG to use as the icon\n\t */\n\ticonSvg?: string\n\n\t/**\n\t * Set to true to prevent the close button to be shown\n\t */\n\tnoClose?: boolean\n\n\t/**\n\t * Set the chips design variant-\n\t *\n\t * This sets the background style of the chip, similar to NcButton's `variant`.\n\t * @default 'secondary'\n\t * @since 8.23.0\n\t */\n\tvariant: 'primary' | 'secondary' | 'tertiary'\n}>(), {\n\tariaLabelClose: t('Close'),\n\ticonPath: undefined,\n\ticonSvg: undefined,\n\ttext: '',\n\tvariant: 'secondary',\n})\n\nconst emit = defineEmits(['close'])\nconst slots = useSlots()\n\nconst canClose = computed(() => !props.noClose)\nconst hasActions = () => Boolean(slots.actions?.())\nconst hasIcon = () => Boolean(props.iconPath || props.iconSvg || !!slots.icon?.())\n\n/**\n * Handle closing the chip (pressing the X-button)\n */\nfunction onClose() {\n\t/**\n\t * Emitted when the close button is clicked\n\t */\n\temit('close')\n}\n</script>\n\n<style scoped lang=\"scss\">\n.nc-chip {\n\t--chip-size: 24px;\n\t--chip-radius: calc(var(--chip-size) / 2);\n\t// Setup size of wrapper\n\theight: var(--chip-size);\n\tmax-width: fit-content;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tborder-radius: var(--chip-radius);\n\tbackground-color: var(--color-background-hover);\n\n\t&--primary {\n\t\tbackground-color: var(--color-primary-element);\n\t\tcolor: var(--color-primary-element-text);\n\t}\n\n\t&--secondary {\n\t\tbackground-color: var(--color-primary-element-light);\n\t\tcolor: var(--color-primary-element-light-text);\n\t}\n\n\t&--no-actions &__text {\n\t\t// If there are no actions we need to add some padding to ensure the text is not cut-off\n\t\tpadding-inline-end: calc(1.5 * var(--default-grid-baseline));\n\t}\n\n\t&--no-icon &__text {\n\t\t// Add some more space to the border\n\t\tpadding-inline-start: calc(1.5 * var(--default-grid-baseline));\n\t}\n\n\t&__text {\n\t\t// Allow to grow the text\n\t\t// this is only used if an app forces a width of the chip\n\t\tflex: 1 auto;\n\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\ttext-wrap: nowrap;\n\t}\n\n\t&__icon {\n\t\t// Do neither grow nor shrink, size is fixed\n\t\tflex: 0 0 var(--chip-size);\n\t\tmargin-inline-end: var(--default-grid-baseline);\n\n\t\tline-height: 1;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\t// Force size\n\t\toverflow: hidden;\n\t\theight: var(--chip-size);\n\t\twidth: var(--chip-size);\n\t}\n\n\t&__actions {\n\t\t// Do neither grow nor shrink, size is fixed\n\t\tflex: 0 0 var(--chip-size);\n\t\t// Adjust action size to match chip size\n\t\t--default-clickable-area: var(--chip-size);\n\t\t--border-radius-element: var(--chip-radius);\n\t}\n}\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAwHA,UAAM,QAAQ;AA4Cd,UAAM,OAAO;AACb,UAAM,QAAQ,SAAS;AAEvB,UAAM,WAAW,SAAS,MAAM,CAAC,MAAM,OAAO;AAC9C,UAAM,aAAa,MAAM,QAAQ,MAAM,WAAW;AAC5C,UAAA,UAAU,MAAM,QAAQ,MAAM,YAAY,MAAM,WAAW,CAAC,CAAC,MAAM,QAAQ;AAKjF,aAAS,UAAU;AAIlB,WAAK,OAAO;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,17 +1,17 @@
1
- import '../assets/NcCollectionList-B4azFVAf.css';
1
+ import '../assets/NcCollectionList-DTJgOfCk.css';
2
2
  import debounce from "debounce";
3
- import { resolveComponent, openBlock, createElementBlock, createVNode, toDisplayString, normalizeClass, withModifiers, withDirectives, createElementVNode, vModelText, Fragment, renderList, createBlock, resolveDynamicComponent, withCtx, createCommentVNode, createTextVNode, Transition, ref } from "vue";
4
- import { r as register, G as t6, H as t26, a as t } from "./_l10n-D7WwrqS-.mjs";
5
- import { N as NcAvatar } from "./NcAvatar-CB2n3G0J.mjs";
6
- import { N as NcSelect } from "./NcSelect-J_CQazCj.mjs";
3
+ import { resolveComponent, createElementBlock, openBlock, createVNode, createCommentVNode, toDisplayString, withModifiers, normalizeClass, withDirectives, createElementVNode, vModelText, Fragment, renderList, createBlock, resolveDynamicComponent, withCtx, createTextVNode, Transition, ref } from "vue";
4
+ import { r as register, E as t6, F as t27, a as t } from "./_l10n-7kR7gXFc.mjs";
5
+ import { N as NcAvatar } from "./NcAvatar-CA8y4d-c.mjs";
6
+ import { N as NcSelect } from "./NcSelect-CAx_ixPU.mjs";
7
7
  import { g as getRoute } from "./autolink-CKPk5rzg.mjs";
8
- import { N as NcActions } from "./NcActions-BJ703bdY.mjs";
9
- import { N as NcActionButton } from "./NcActionButton-B3JQywgv.mjs";
8
+ import { N as NcActions } from "./NcActions-CgKHXNbF.mjs";
9
+ import { N as NcActionButton } from "./NcActionButton-BdQ_qmvW.mjs";
10
10
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
11
11
  import axios from "@nextcloud/axios";
12
12
  import { generateOcsUrl } from "@nextcloud/router";
13
13
  register(t6);
14
- register(t26);
14
+ register(t27);
15
15
  const _sfc_main$1 = {
16
16
  name: "NcCollectionListItem",
17
17
  components: {
@@ -231,7 +231,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
231
231
  })
232
232
  ]);
233
233
  }
234
- const NcCollectionListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-a777d393"]]);
234
+ const NcCollectionListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-e65bd4dd"]]);
235
235
  function extractOcsData(response) {
236
236
  return response.data.ocs.data;
237
237
  }
@@ -583,3 +583,4 @@ const NcCollectionList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc
583
583
  export {
584
584
  NcCollectionList as N
585
585
  };
586
+ //# sourceMappingURL=NcCollectionList-BtHsipae.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcCollectionList-BtHsipae.mjs","sources":["../../src/components/NcCollectionList/NcCollectionListItem.vue","../../src/components/NcCollectionList/service.ts","../../src/components/NcCollectionList/useCollections.js","../../src/components/NcCollectionList/NcCollectionList.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<li class=\"collection-list-item\">\n\t\t<NcAvatar :display-name=\"collection.name\" allow-placeholder class=\"collection-avatar\" />\n\t\t<span v-if=\"newName === null\"\n\t\t\tclass=\"collection-item-name\"\n\t\t\ttitle=\"\"\n\t\t\t@click=\"showDetails\">{{ collection.name }}</span>\n\t\t<form v-else :class=\"{'should-shake': error }\" @submit.prevent=\"renameCollection\">\n\t\t\t<input v-model=\"newName\"\n\t\t\t\ttype=\"text\"\n\t\t\t\tautocomplete=\"off\"\n\t\t\t\tautocapitalize=\"off\">\n\t\t\t<input type=\"submit\" value=\"\" class=\"icon-confirm\">\n\t\t</form>\n\t\t<div v-if=\"!detailsOpen && newName === null\" class=\"linked-icons\">\n\t\t\t<component :is=\"getComponent(resource).component\"\n\t\t\t\tv-for=\"resource in resources.slice(0, 2)\"\n\t\t\t\t:key=\"resource.type + '|' + resource.id\"\n\t\t\t\t:title=\"resource.name\"\n\t\t\t\t:to=\"getComponent(resource).to\"\n\t\t\t\t:href=\"getComponent(resource).href\"\n\t\t\t\t:class=\"typeClass(resource)\">\n\t\t\t\t<img :src=\"iconUrl(resource)\" :alt=\"resource.name\">\n\t\t\t</component>\n\t\t</div>\n\n\t\t<span v-if=\"newName === null\" class=\"sharingOptionsGroup\">\n\t\t\t<NcActions>\n\t\t\t\t<NcActionButton icon=\"icon-info\"\n\t\t\t\t\t@click.prevent=\"toggleDetails\">\n\t\t\t\t\t{{ detailsOpen ? t('Hide details') : t('Show details') }}\n\t\t\t\t</NcActionButton>\n\t\t\t\t<NcActionButton icon=\"icon-rename\"\n\t\t\t\t\t@click.prevent=\"openRename\">\n\t\t\t\t\t{{ t('Rename project') }}\n\t\t\t\t</NcActionButton>\n\t\t\t</NcActions>\n\t\t</span>\n\n\t\t<transition name=\"fade\">\n\t\t\t<div v-if=\"error\" class=\"error\">\n\t\t\t\t{{ error }}\n\t\t\t</div>\n\t\t</transition>\n\t\t<transition name=\"fade\">\n\t\t\t<ul v-if=\"detailsOpen\" class=\"resource-list-details\">\n\t\t\t\t<li v-for=\"resource in resources\"\n\t\t\t\t\t:key=\"resource.type + '|' + resource.id\"\n\t\t\t\t\t:class=\"typeClass(resource)\">\n\t\t\t\t\t<component :is=\"getComponent(resource).component\"\n\t\t\t\t\t\t:to=\"getComponent(resource).to\"\n\t\t\t\t\t\t:href=\"getComponent(resource).href\">\n\t\t\t\t\t\t<img :src=\"iconUrl(resource)\" :alt=\"resource.name\">\n\t\t\t\t\t\t<span class=\"resource-name\">{{ resource.name || '' }}</span>\n\t\t\t\t\t</component>\n\t\t\t\t\t<span class=\"icon-close\" @click=\"removeResource(collection, resource)\" />\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</transition>\n\t</li>\n</template>\n\n<script>\nimport { t } from '../../l10n.js'\nimport { getRoute } from '../NcRichText/autolink.ts'\n\nimport NcActions from '../NcActions/index.js'\nimport NcActionButton from '../NcActionButton/index.js'\nimport NcAvatar from '../NcAvatar/index.js'\n\nexport default {\n\tname: 'NcCollectionListItem',\n\n\tcomponents: {\n\t\tNcAvatar,\n\t\tNcActions,\n\t\tNcActionButton,\n\t},\n\n\tprops: {\n\t\tcollection: {\n\t\t\ttype: Object,\n\t\t\tdefault: null,\n\t\t},\n\n\t\terror: {\n\t\t\ttype: String,\n\t\t\tdefault: undefined,\n\t\t},\n\t},\n\n\temits: ['remove-resource', 'rename-collection'],\n\n\tdata() {\n\t\treturn {\n\t\t\tdetailsOpen: false,\n\t\t\tnewName: null,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tgetIcon() {\n\t\t\treturn (resource) => [resource.iconClass]\n\t\t},\n\n\t\ttypeClass() {\n\t\t\treturn (resource) => 'resource-type-' + resource.type\n\t\t},\n\n\t\tresources() {\n\t\t\t// invalid resources come from server as empty array ([]) and not an object\n\t\t\treturn this.collection.resources?.filter(resource => !Array.isArray(resource)) ?? []\n\t\t},\n\n\t\tgetComponent() {\n\t\t\treturn (resource) => {\n\t\t\t\tconst route = getRoute(this.$router, resource.link)\n\n\t\t\t\treturn route\n\t\t\t\t\t? { component: 'router-link', to: route, href: undefined }\n\t\t\t\t\t: { component: 'a', to: undefined, href: resource.link }\n\t\t\t}\n\t\t},\n\n\t\ticonUrl() {\n\t\t\treturn (resource) => {\n\t\t\t\tif (resource.mimetype) {\n\t\t\t\t\treturn OC.MimeType.getIconUrl(resource.mimetype)\n\t\t\t\t}\n\t\t\t\tif (resource.iconUrl) {\n\t\t\t\t\treturn resource.iconUrl\n\t\t\t\t}\n\t\t\t\treturn ''\n\t\t\t}\n\t\t},\n\t},\n\n\tmethods: {\n\t\tt,\n\n\t\ttoggleDetails() {\n\t\t\tthis.detailsOpen = !this.detailsOpen\n\t\t},\n\n\t\tshowDetails() {\n\t\t\tthis.detailsOpen = true\n\t\t},\n\n\t\tremoveResource(collection, resource) {\n\t\t\tthis.$emit('remove-resource', {\n\t\t\t\tcollectionId: collection.id,\n\t\t\t\tresourceType: resource.type,\n\t\t\t\tresourceId: resource.id,\n\t\t\t})\n\t\t},\n\n\t\topenRename() {\n\t\t\tthis.newName = this.collection.name\n\t\t},\n\n\t\trenameCollection() {\n\t\t\tif (this.newName) {\n\t\t\t\tthis.$emit('rename-collection', {\n\t\t\t\t\tcollectionId: this.collection.id,\n\t\t\t\t\tname: this.newName,\n\t\t\t\t})\n\t\t\t}\n\t\t\tthis.newName = null\n\t\t},\n\t},\n}\n</script>\n\n<style scoped lang=\"scss\">\n.fade-enter-active, .fade-leave-active {\n\ttransition: opacity .3s ease;\n}\n\n.fade-enter, .fade-leave-to\n\t/* .fade-leave-active below version 2.1.8 */\n{\n\topacity: 0;\n}\n\n.linked-icons {\n\tdisplay: flex;\n\n\timg {\n\t\tpadding: 12px;\n\t\theight: var(--default-clickable-area);\n\t\tdisplay: block;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\topacity: 0.7;\n\n\t\t&:hover {\n\t\t\topacity: 1;\n\t\t}\n\t}\n}\n\n.popovermenu {\n\tdisplay: none;\n\n\t&.open {\n\t\tdisplay: block;\n\t}\n}\n\nli.collection-list-item {\n\tflex-wrap: wrap;\n\theight: auto;\n\tcursor: pointer;\n\tmargin-bottom: 0 !important;\n\n\t.collection-avatar {\n\t\tmargin-top: 0;\n\t}\n\n\tform, .collection-item-name {\n\t\tflex-basis: 10%;\n\t\tflex-grow: 1;\n\t\tdisplay: flex;\n\t}\n\n\t.collection-item-name {\n\t\tpadding: 12px 9px;\n\t}\n\n\tinput {\n\t\tmargin-top: 4px;\n\t\tborder-color: var(--color-border-maxcontrast);\n\n\t\t&[type=text] {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t.error {\n\t\tflex-basis: 100%;\n\t\twidth: 100%;\n\t}\n\n\t.resource-list-details {\n\t\tflex-basis: 100%;\n\t\twidth: 100%;\n\n\t\tli {\n\t\t\tdisplay: flex;\n\t\t\tmargin-inline-start: var(--default-clickable-area);\n\t\t\tborder-radius: 3px;\n\t\t\tcursor: pointer;\n\n\t\t\t&:hover {\n\t\t\t\tbackground-color: var(--color-background-dark);\n\t\t\t}\n\n\t\t\ta {\n\t\t\t\tflex-grow: 1;\n\t\t\t\tpadding: 3px;\n\t\t\t\tmax-width: calc(100% - 30px);\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\n\t\tspan {\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: top;\n\t\t\tmargin-inline-end: 10px;\n\t\t}\n\n\t\tspan.resource-name {\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\t\t\tposition: relative;\n\t\t\tvertical-align: top;\n\t\t\twhite-space: nowrap;\n\t\t\tflex-grow: 1;\n\t\t\tpadding: 4px;\n\t\t}\n\n\t\timg {\n\t\t\twidth: 24px;\n\t\t\theight: 24px;\n\t\t}\n\n\t\t.icon-close {\n\t\t\topacity: .7;\n\n\t\t\t&:hover, &:focus {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.should-shake {\n\tanimation: shake 0.6s 1 linear;\n}\n\n@keyframes shake {\n\t0% {\n\t\ttransform: translate(15px);\n\t}\n\t20% {\n\t\ttransform: translate(-15px);\n\t}\n\t40% {\n\t\ttransform: translate(7px);\n\t}\n\t60% {\n\t\ttransform: translate(-7px);\n\t}\n\t80% {\n\t\ttransform: translate(3px);\n\t}\n\t100% {\n\t\ttransform: translate(0px);\n\t}\n}\n</style>\n","/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport axios, { type AxiosResponse } from '@nextcloud/axios'\nimport { generateOcsUrl } from '@nextcloud/router'\nimport type { OCSResponse } from '@nextcloud/typings/ocs'\n\n/**\n * Extracts the OCS data from a response\n * @param response OCS response\n */\nfunction extractOcsData(response: AxiosResponse<OCSResponse>) {\n\treturn response.data.ocs.data\n}\n\n/**\n * Lists all collections\n * @param collectionId Collection ID\n */\nexport function listCollectionService(collectionId: number) {\n\treturn axios.get(generateOcsUrl('collaboration/resources/collections/{collectionId}', { collectionId })).then(extractOcsData)\n}\n\n/**\n * Renames a collection\n * @param collectionId Collection ID\n * @param collectionName New collection name\n */\nexport function renameCollectionService(collectionId: number, collectionName: string) {\n\treturn axios.put(generateOcsUrl('collaboration/resources/collections/{collectionId}', { collectionId }), { collectionName }).then(extractOcsData)\n}\n\n/**\n * Lists all collections for a resource\n * @param resourceType Resource type\n * @param resourceId Resource ID\n */\nexport function getCollectionsByResourceService(resourceType: string, resourceId: string) {\n\treturn axios.get(generateOcsUrl('collaboration/resources/{resourceType}/{resourceId}', { resourceType, resourceId })).then(extractOcsData)\n}\n\n/**\n * Creates a collection\n * @param resourceType Resource type\n * @param resourceId Resource ID\n * @param name Collection name\n */\nexport function createCollectionService(resourceType: string, resourceId: string, name: string) {\n\treturn axios.post(generateOcsUrl('collaboration/resources/{resourceType}/{resourceId}', { resourceType, resourceId }), { name }).then(extractOcsData)\n}\n\n/**\n * Adds a resource to a collection\n * @param collectionId Collection ID\n * @param resourceType Resource type\n * @param resourceId Resource ID\n */\nexport function addResourceService(collectionId: number, resourceType: string, resourceId: string) {\n\treturn axios.post(generateOcsUrl('collaboration/resources/collections/{collectionId}', { collectionId }), { resourceType, resourceId }).then(extractOcsData)\n}\n\n/**\n * Removes a resource from a collection\n * @param collectionId Collection ID\n * @param resourceType Resource type\n * @param resourceId Resource ID\n */\nexport function removeResourceService(collectionId: number, resourceType: string, resourceId: string) {\n\treturn axios.delete(generateOcsUrl('collaboration/resources/collections/{collectionId}', { collectionId }), { params: { resourceType, resourceId } }).then(extractOcsData)\n}\n\n/**\n * Searches for collections\n * @param query Search query\n */\nexport function searchService(query: string) {\n\treturn axios.get(generateOcsUrl('collaboration/resources/collections/search/{query}', { query })).then(extractOcsData)\n}\n","/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { ref } from 'vue'\nimport {\n\trenameCollectionService,\n\tgetCollectionsByResourceService,\n\tcreateCollectionService,\n\taddResourceService,\n\tremoveResourceService,\n} from './service.ts'\n\n/**\n * Use collections composable\n */\nexport function useCollections() {\n\t// State\n\tconst storedCollections = ref([])\n\n\t// Mutations\n\tconst addCollections = (collections) => {\n\t\tstoredCollections.value = collections\n\t}\n\n\tconst addCollection = (collection) => {\n\t\tstoredCollections.value.push(collection)\n\t}\n\n\tconst removeCollection = (collectionId) => {\n\t\tstoredCollections.value = storedCollections.value.filter(item => item.id !== collectionId)\n\t}\n\n\tconst updateCollection = (collection) => {\n\t\tconst index = storedCollections.value.findIndex(item => item.id === collection.id)\n\t\tif (index !== -1) {\n\t\t\tstoredCollections.value[index] = collection\n\t\t} else {\n\t\t\taddCollection(collection)\n\t\t}\n\t}\n\n\t// Actions\n\tconst fetchCollectionsByResource = async ({ resourceType, resourceId }) => {\n\t\tconst collections = await getCollectionsByResourceService(resourceType, resourceId)\n\n\t\taddCollections(collections)\n\t}\n\n\tconst createCollection = async ({ baseResourceType, baseResourceId, resourceType, resourceId, name }) => {\n\t\tconst collection = await createCollectionService(baseResourceType, baseResourceId, name)\n\n\t\taddCollection(collection)\n\t\tawait addResourceToCollection({\n\t\t\tcollectionId: collection.id,\n\t\t\tresourceType,\n\t\t\tresourceId,\n\t\t})\n\t}\n\n\tconst renameCollection = async ({ collectionId, name }) => {\n\t\tconst collection = await renameCollectionService(collectionId, name)\n\n\t\tupdateCollection(collection)\n\t}\n\n\tconst addResourceToCollection = async ({ collectionId, resourceType, resourceId }) => {\n\t\tconst collection = await addResourceService(collectionId, resourceType, String(resourceId))\n\n\t\tupdateCollection(collection)\n\t}\n\n\tconst removeResourceFromCollection = async ({ collectionId, resourceType, resourceId }) => {\n\t\tconst collection = await removeResourceService(collectionId, resourceType, String(resourceId))\n\n\t\tif (collection.resources.length > 0) {\n\t\t\tupdateCollection(collection)\n\t\t} else {\n\t\t\tremoveCollection(collectionId)\n\t\t}\n\t}\n\n\treturn {\n\t\tstoredCollections,\n\t\tfetchCollectionsByResource,\n\t\tcreateCollection,\n\t\trenameCollection,\n\t\taddResourceToCollection,\n\t\tremoveResourceFromCollection,\n\t}\n}\n","<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nProvides a Vue standalone component for Nextcloud Projects feature introduced in Nextcloud 16. Replaces deprecated `nextcloud-vue-collections` library.\n\nProjects feature is deprecated since Nextcloud 25, and superseded by Related resources. See [NcRelatedResourcesPanel](#/Components/NcRelatedResourcesPanel) documentation for more information.\n\n### Usage\n\nTo enable feature in Nextcloud, run following command:\n```sh\nocc config:system:set --value true 'projects.enabled'\n```\n</docs>\n\n<template>\n\t<ul v-if=\"collections && type && id\" id=\"collection-list\" class=\"collection-list\">\n\t\t<li @click=\"showSelect\">\n\t\t\t<div class=\"avatar\">\n\t\t\t\t<span class=\"icon-projects\" />\n\t\t\t</div>\n\t\t\t<div id=\"collection-select-container\">\n\t\t\t\t<NcSelect ref=\"select\"\n\t\t\t\t\tv-model=\"value\"\n\t\t\t\t\t:aria-label-combobox=\"t('Add to a project')\"\n\t\t\t\t\t:options=\"options\"\n\t\t\t\t\t:placeholder=\"placeholder\"\n\t\t\t\t\tlabel=\"title\"\n\t\t\t\t\t:limit=\"5\"\n\t\t\t\t\t@close=\"isSelectOpen = false\"\n\t\t\t\t\t@open=\"isSelectOpen = true\"\n\t\t\t\t\t@option:selected=\"select\"\n\t\t\t\t\t@search=\"search\">\n\t\t\t\t\t<template #selected-option=\"option\">\n\t\t\t\t\t\t<span class=\"option__desc\">\n\t\t\t\t\t\t\t<span class=\"option__title\">{{ option.title }}</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</template>\n\t\t\t\t\t<template #option=\"option\">\n\t\t\t\t\t\t<span class=\"option__wrapper\">\n\t\t\t\t\t\t\t<span v-if=\"option.class\" :class=\"option.class\" class=\"avatar\" />\n\t\t\t\t\t\t\t<NcAvatar v-else-if=\"option.method !== 2\" allow-placeholder :display-name=\"option.title\" />\n\t\t\t\t\t\t\t<span class=\"option__title\">{{ option.title }}</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</template>\n\t\t\t\t\t<p class=\"hint\">\n\t\t\t\t\t\t{{ t('Connect items to a project to make them easier to find') }}\n\t\t\t\t\t</p>\n\t\t\t\t</NcSelect>\n\t\t\t</div>\n\t\t</li>\n\t\t<transition name=\"fade\">\n\t\t\t<li v-if=\"error\" class=\"error\">\n\t\t\t\t{{ error }}\n\t\t\t</li>\n\t\t</transition>\n\t\t<NcCollectionListItem v-for=\"collection in collections\"\n\t\t\t:key=\"collection.id\"\n\t\t\t:collection=\"collection\"\n\t\t\t:error=\"collectionsError[collection.id]\"\n\t\t\t@rename-collection=\"renameCollectionFromItem\"\n\t\t\t@remove-resource=\"removeResourceFromCollection\" />\n\t</ul>\n</template>\n\n<script>\nimport debounce from 'debounce'\nimport { ref } from 'vue'\nimport { t } from '../../l10n.js'\n\nimport NcAvatar from '../NcAvatar/index.js'\nimport NcSelect from '../NcSelect/index.js'\nimport NcCollectionListItem from './NcCollectionListItem.vue'\n\nimport { useCollections } from './useCollections.js'\nimport { searchService } from './service.ts'\n\nconst METHOD_CREATE_COLLECTION = 0\nconst METHOD_ADD_TO_COLLECTION = 1\n\nexport default {\n\tname: 'NcCollectionList',\n\n\tcomponents: {\n\t\tNcCollectionListItem,\n\t\tNcAvatar,\n\t\tNcSelect,\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Resource type identifier\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * Unique id of the resource\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * Name of the resource\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Whether the component is active (to start fetch resources)\n\t\t */\n\t\tisActive: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t},\n\n\tsetup() {\n\t\tconst {\n\t\t\tstoredCollections,\n\t\t\tfetchCollectionsByResource,\n\t\t\tcreateCollection,\n\t\t\taddResourceToCollection,\n\t\t\tremoveResourceFromCollection,\n\t\t\trenameCollection,\n\t\t} = useCollections()\n\n\t\tconst searchCollections = ref([])\n\t\tconst search = debounce(function(query, loading) {\n\t\t\tif (query !== '') {\n\t\t\t\tloading(true)\n\t\t\t\tsearchService(query).then(collections => {\n\t\t\t\t\tsearchCollections.value = collections\n\t\t\t\t}).catch(e => {\n\t\t\t\t\tconsole.error('Failed to search for collections', e)\n\t\t\t\t}).finally(() => {\n\t\t\t\t\tloading(false)\n\t\t\t\t})\n\t\t\t}\n\t\t}, 500)\n\n\t\treturn {\n\t\t\tstoredCollections,\n\t\t\tfetchCollectionsByResource,\n\t\t\tcreateCollection,\n\t\t\taddResourceToCollection,\n\t\t\tremoveResourceFromCollection,\n\t\t\trenameCollection,\n\t\t\tsearchCollections,\n\t\t\tsearch,\n\t\t}\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tselectIsOpen: false,\n\t\t\tgeneratingCodes: false,\n\t\t\tcodes: undefined,\n\t\t\tvalue: null,\n\t\t\tmodel: {},\n\t\t\tcollectionsError: {},\n\t\t\terror: null,\n\t\t\tisSelectOpen: false,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tcollections() {\n\t\t\treturn this.storedCollections.filter(collection => collection.resources\n\t\t\t\t.some(resource => resource && resource.id === String(this.id) && resource.type === this.type),\n\t\t\t)\n\t\t},\n\n\t\tplaceholder() {\n\t\t\treturn this.isSelectOpen\n\t\t\t\t? t('Type to search for existing projects')\n\t\t\t\t: t('Add to a project')\n\t\t},\n\n\t\toptions() {\n\t\t\tconst options = []\n\t\t\twindow.OCP.Collaboration.getTypes().sort().forEach(type => {\n\t\t\t\toptions.push({\n\t\t\t\t\tmethod: METHOD_CREATE_COLLECTION,\n\t\t\t\t\ttype,\n\t\t\t\t\ttitle: window.OCP.Collaboration.getLabel(type),\n\t\t\t\t\tclass: window.OCP.Collaboration.getIcon(type),\n\t\t\t\t\taction: () => window.OCP.Collaboration.trigger(type),\n\t\t\t\t})\n\t\t\t})\n\t\t\tfor (const index in this.searchCollections) {\n\t\t\t\tif (!this.collections.find(collection => collection.id === this.searchCollections[index].id)) {\n\t\t\t\t\toptions.push({\n\t\t\t\t\t\tmethod: METHOD_ADD_TO_COLLECTION,\n\t\t\t\t\t\ttitle: this.searchCollections[index].name,\n\t\t\t\t\t\tcollectionId: this.searchCollections[index].id,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn options\n\t\t},\n\n\t\tresourceIdentifier() {\n\t\t\treturn {\n\t\t\t\tresourceType: this.type,\n\t\t\t\tresourceId: this.id,\n\t\t\t\tisActive: this.isActive,\n\t\t\t}\n\t\t},\n\t},\n\n\twatch: {\n\t\tresourceIdentifier: {\n\t\t\tdeep: true,\n\t\t\timmediate: true,\n\t\t\thandler(resourceIdentifier) {\n\t\t\t\tif (!resourceIdentifier.isActive || !resourceIdentifier.resourceId || !resourceIdentifier.resourceType) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tthis.fetchCollectionsByResource(resourceIdentifier)\n\t\t\t},\n\t\t},\n\t},\n\n\tmethods: {\n\t\tt,\n\n\t\tselect(selectedOption) {\n\t\t\tif (selectedOption.method === METHOD_CREATE_COLLECTION) {\n\t\t\t\tselectedOption.action().then(resourceId => {\n\t\t\t\t\tthis.createCollection({\n\t\t\t\t\t\tbaseResourceType: this.type,\n\t\t\t\t\t\tbaseResourceId: this.id,\n\t\t\t\t\t\tresourceType: selectedOption.type,\n\t\t\t\t\t\tresourceId,\n\t\t\t\t\t\tname: this.name,\n\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\tthis.setError(t('Failed to create a project'), e)\n\t\t\t\t\t})\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.error('No resource selected', e)\n\t\t\t\t})\n\t\t\t}\n\n\t\t\tif (selectedOption.method === METHOD_ADD_TO_COLLECTION) {\n\t\t\t\tthis.addResourceToCollection({\n\t\t\t\t\tcollectionId: selectedOption.collectionId, resourceType: this.type, resourceId: this.id,\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.setError(t('Failed to add the item to the project'), e)\n\t\t\t\t})\n\t\t\t}\n\n\t\t\tthis.value = null\n\t\t},\n\n\t\tshowSelect() {\n\t\t\tthis.selectIsOpen = true\n\t\t\tthis.$refs.select.$el.focus()\n\t\t},\n\n\t\tsetError(error, e) {\n\t\t\tconsole.error(error, e)\n\t\t\tthis.error = error\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.error = null\n\t\t\t}, 5000)\n\t\t},\n\n\t\trenameCollectionFromItem({ collectionId, name }) {\n\t\t\tthis.renameCollection({ collectionId, name })\n\t\t\t\t.catch((e) => {\n\t\t\t\t\tconsole.error(t('Failed to rename the project'), e)\n\t\t\t\t\tthis.collectionsError[collectionId] = t('Failed to rename the project')\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tthis.collectionsError[collectionId] = null\n\t\t\t\t\t}, 5000)\n\t\t\t\t})\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.collection-list * {\n\tbox-sizing: border-box;\n}\n\n.collection-list > li {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 12px;\n\n\t& > .avatar {\n\t\tmargin-top: 0;\n\t}\n}\n\n#collection-select-container {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.v-select {\n\t// NcAvatar in the dropdown\n\tspan.avatar {\n\t\tdisplay: block;\n\t\tpadding: 16px;\n\t\topacity: .7;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\n\t\t&:hover {\n\t\t\topacity: 1;\n\t\t}\n\t}\n}\n\np.hint {\n\tz-index: 1;\n\t// fix alignment\n\tmargin-top: -16px;\n\tpadding: 8px 8px;\n\tcolor: var(--color-text-maxcontrast);\n\tline-height: normal;\n}\n\ndiv.avatar {\n\twidth: 32px;\n\theight: 32px;\n\tmargin: 0;\n\tpadding: 8px;\n\tbackground-color: var(--color-background-dark);\n\tmargin-top: 30px;\n}\n\n/** TODO provide white icon in core */\n.icon-projects {\n\tdisplay: block;\n\tpadding: 8px;\n\tbackground-repeat: no-repeat;\n\tbackground-position: center;\n}\n\n.option__wrapper {\n\tdisplay: flex;\n\n\t.avatar {\n\t\tdisplay: block;\n\t\twidth: 32px;\n\t\theight: 32px;\n\t\tbackground-color: var(--color-background-darker) !important;\n\t}\n\n\t.option__title {\n\t\tpadding: 4px;\n\t}\n}\n\n.fade-enter-active, .fade-leave-active {\n\ttransition: opacity .5s;\n}\n\n.fade-enter, .fade-leave-to {\n\topacity: 0;\n}\n\n</style>\n"],"names":["_sfc_main","_hoisted_1","_hoisted_3","_hoisted_7","_hoisted_8","_openBlock","_createElementBlock","_createVNode","_toDisplayString","_normalizeClass","_withModifiers","_createElementVNode","_hoisted_2","_Fragment","_renderList","_createBlock","_resolveDynamicComponent","_withCtx","_createCommentVNode","_hoisted_4","_createTextVNode","_Transition","_hoisted_5","_hoisted_6"],"mappings":";;;;;;;;;;;;;AA2EA,MAAKA,cAAU;AAAA,EACd,MAAM;AAAA,EAEN,YAAY;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,EACA;AAAA,EAED,OAAO;AAAA,IACN,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IAED,OAAO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