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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/CHANGELOG.md +84 -3
  2. package/dist/assets/{NcActionButton-B2G7zsju.css → NcActionButton-Dz2EBAuD.css} +20 -17
  3. package/dist/assets/{NcActionInput-SoC93uat.css → NcActionInput-BA67jS1l.css} +62 -62
  4. package/dist/assets/{NcAppContent-Di-SbMxO.css → NcAppContent-Zgn8-wsd.css} +19 -19
  5. package/dist/assets/{NcAppNavigation-BXItV5BV.css → NcAppNavigation-C6-8ErA_.css} +12 -12
  6. package/dist/assets/{NcAppNavigationItem-Cq6ZYdmT.css → NcAppNavigationItem-B27WFnUV.css} +35 -31
  7. package/dist/assets/{NcAppNavigationNewItem-CsqJ6c8v.css → NcAppNavigationNewItem-BrLekTMb.css} +37 -33
  8. package/dist/assets/{NcAppNavigationSettings-BDc6Mtek.css → NcAppNavigationSettings-B0I7HR1V.css} +14 -5
  9. package/dist/assets/NcAppNavigationSpacer-LST5uYYS.css +6 -0
  10. package/dist/assets/{NcAppNavigationToggle-DnTKNSH7.css → NcAppNavigationToggle-M0oDbwAS.css} +3 -3
  11. package/dist/assets/{NcAppSettingsDialog-DMWosHw9.css → NcAppSettingsDialog-DfBJYMdm.css} +10 -10
  12. package/dist/assets/{NcAppSidebar-exl90fRm.css → NcAppSidebar-PG3qIdkG.css} +44 -44
  13. package/dist/assets/{NcAvatar-B3wk2Xxl.css → NcAvatar-C01qP9VA.css} +24 -24
  14. package/dist/assets/{NcButton-DbE0wInI.css → NcButton-Cpw_vPKw.css} +49 -49
  15. package/dist/assets/{NcCheckboxRadioSwitch-sqQXUuVB.css → NcCheckboxRadioSwitch-DKVMIvxJ.css} +47 -44
  16. package/dist/assets/{NcChip-VsVAGaG6.css → NcChip-rGBYOr-Q.css} +9 -9
  17. package/dist/assets/{NcColorPicker-Clz7MjCA.css → NcColorPicker-DgByWqzp.css} +28 -28
  18. package/dist/assets/{NcContent-cRwic6r5.css → NcContent-C12jLe34.css} +9 -9
  19. package/dist/assets/{NcDashboardWidgetItem-B8_6-_k8.css → NcDashboardWidgetItem-V_jSEH-7.css} +12 -12
  20. package/dist/assets/{NcDateTimePickerNative-CeuS8Oeg.css → NcDateTimePickerNative-BizATZfE.css} +13 -13
  21. package/dist/assets/{NcDialog-bP7Jt0ZE.css → NcDialog-Ch6FuMQo.css} +15 -15
  22. package/dist/assets/{NcEllipsisedOption-D-IsjXWc.css → NcEllipsisedOption-BNLv_eyF.css} +5 -5
  23. package/dist/assets/{NcEmojiPicker-DnMU8iEd.css → NcEmojiPicker-kxoeGEM5.css} +4 -4
  24. package/dist/assets/{NcHeaderMenu-zo6kw_jn.css → NcHeaderMenu-BAKwNTFx.css} +11 -11
  25. package/dist/assets/{NcInputField-B8J2uFD4.css → NcInputField-CvP4PFAO.css} +44 -42
  26. package/dist/assets/{NcListItem-9eCenovm.css → NcListItem-ff6bfJFE.css} +44 -44
  27. package/dist/assets/{NcListItemIcon-DjEDwxRp.css → NcListItemIcon-BVhiRo5R.css} +13 -13
  28. package/dist/assets/{NcLoadingIcon-x1d284UU.css → NcLoadingIcon-DlDKflKI.css} +2 -2
  29. package/dist/assets/{NcModal-DaHROv08.css → NcModal-BMVfhs7c.css} +61 -61
  30. package/dist/assets/{NcNoteCard-C6xb7vi0.css → NcNoteCard-C387qsQO.css} +11 -8
  31. package/dist/assets/{NcPasswordField-z9gbKnov.css → NcPasswordField-DVV6Eiwf.css} +2 -2
  32. package/dist/assets/{NcRichText-GnQKcHYO.css → NcRichText-Fi_WAwSP.css} +86 -83
  33. package/dist/assets/{NcTextArea-DHr9DPOJ.css → NcTextArea-DoBYU3IE.css} +20 -20
  34. package/dist/assets/{NcUserBubble-tSs2XTDQ.css → NcUserBubble-CqaL0Oxv.css} +8 -8
  35. package/dist/assets/{referencePickerModal-DAD-jv3F.css → referencePickerModal-CUVCkTmZ.css} +19 -19
  36. package/dist/chunks/{ArrowLeft-CanHG70H.mjs → ArrowLeft-BiZLJltw.mjs} +3 -3
  37. package/dist/chunks/{ArrowLeft-CanHG70H.mjs.map → ArrowLeft-BiZLJltw.mjs.map} +1 -1
  38. package/dist/chunks/{DotsHorizontal-AMVAlTNH.mjs → DotsHorizontal-BJ_GCGpi.mjs} +3 -3
  39. package/dist/chunks/{DotsHorizontal-AMVAlTNH.mjs.map → DotsHorizontal-BJ_GCGpi.mjs.map} +1 -1
  40. package/dist/chunks/{NcActionButton-CnX0dQzz.mjs → NcActionButton-BECWgEPr.mjs} +4 -4
  41. package/dist/chunks/{NcActionButton-CnX0dQzz.mjs.map → NcActionButton-BECWgEPr.mjs.map} +1 -1
  42. package/dist/chunks/{NcActionButtonGroup-3Da8b3EI.mjs → NcActionButtonGroup-e4F30E5Z.mjs} +2 -2
  43. package/dist/chunks/{NcActionButtonGroup-3Da8b3EI.mjs.map → NcActionButtonGroup-e4F30E5Z.mjs.map} +1 -1
  44. package/dist/chunks/{NcActionInput-DeFy255L.mjs → NcActionInput-DYLqm7AP.mjs} +12 -12
  45. package/dist/chunks/{NcActionInput-DeFy255L.mjs.map → NcActionInput-DYLqm7AP.mjs.map} +1 -1
  46. package/dist/chunks/{NcActionTextEditable-B7nemAOJ.mjs → NcActionTextEditable-ByA0z9nO.mjs} +2 -2
  47. package/dist/chunks/{NcActionTextEditable-B7nemAOJ.mjs.map → NcActionTextEditable-ByA0z9nO.mjs.map} +1 -1
  48. package/dist/chunks/{NcActions-DS88I6qk.mjs → NcActions-iwG1Tj-I.mjs} +6 -6
  49. package/dist/chunks/{NcActions-DS88I6qk.mjs.map → NcActions-iwG1Tj-I.mjs.map} +1 -1
  50. package/dist/chunks/{NcAppContent-DRhM7Gyz.mjs → NcAppContent-B2qF2-YG.mjs} +9 -7
  51. package/dist/chunks/NcAppContent-B2qF2-YG.mjs.map +1 -0
  52. package/dist/chunks/{NcAppNavigation-BVXVi9JQ.mjs → NcAppNavigation-JoRJnwqf.mjs} +4 -4
  53. package/dist/chunks/{NcAppNavigation-BVXVi9JQ.mjs.map → NcAppNavigation-JoRJnwqf.mjs.map} +1 -1
  54. package/dist/chunks/{NcAppNavigationCaption-DkiIEk6r.mjs → NcAppNavigationCaption-DhwvNbx1.mjs} +2 -2
  55. package/dist/chunks/{NcAppNavigationCaption-DkiIEk6r.mjs.map → NcAppNavigationCaption-DhwvNbx1.mjs.map} +1 -1
  56. package/dist/chunks/{NcAppNavigationItem-s3GC1n4o.mjs → NcAppNavigationItem-B51Guztu.mjs} +10 -10
  57. package/dist/chunks/{NcAppNavigationItem-s3GC1n4o.mjs.map → NcAppNavigationItem-B51Guztu.mjs.map} +1 -1
  58. package/dist/chunks/{NcAppNavigationNew-BUQgcKdv.mjs → NcAppNavigationNew-CMjaAY5A.mjs} +2 -2
  59. package/dist/chunks/{NcAppNavigationNew-BUQgcKdv.mjs.map → NcAppNavigationNew-CMjaAY5A.mjs.map} +1 -1
  60. package/dist/chunks/{NcAppNavigationNewItem-D1GWsi8R.mjs → NcAppNavigationNewItem-DyzpvBOb.mjs} +5 -5
  61. package/dist/chunks/{NcAppNavigationNewItem-D1GWsi8R.mjs.map → NcAppNavigationNewItem-DyzpvBOb.mjs.map} +1 -1
  62. package/dist/chunks/{NcAppNavigationSearch-Cy0s4XWp.mjs → NcAppNavigationSearch-CvHp92E-.mjs} +3 -3
  63. package/dist/chunks/{NcAppNavigationSearch-Cy0s4XWp.mjs.map → NcAppNavigationSearch-CvHp92E-.mjs.map} +1 -1
  64. package/dist/chunks/{NcAppNavigationSettings-GeCb9tlR.mjs → NcAppNavigationSettings-iJ84_lwr.mjs} +16 -10
  65. package/dist/chunks/{NcAppNavigationSettings-GeCb9tlR.mjs.map → NcAppNavigationSettings-iJ84_lwr.mjs.map} +1 -1
  66. package/dist/chunks/NcAppNavigationSpacer-BvkBfuVw.mjs +17 -0
  67. package/dist/chunks/NcAppNavigationSpacer-BvkBfuVw.mjs.map +1 -0
  68. package/dist/chunks/{NcAppNavigationToggle-CFw3W3_o.mjs → NcAppNavigationToggle-D3UGt5TV.mjs} +46 -68
  69. package/dist/chunks/NcAppNavigationToggle-D3UGt5TV.mjs.map +1 -0
  70. package/dist/chunks/{NcAppSettingsDialog-CBLZvdnK.mjs → NcAppSettingsDialog-CQnZ29WZ.mjs} +6 -6
  71. package/dist/chunks/{NcAppSettingsDialog-CBLZvdnK.mjs.map → NcAppSettingsDialog-CQnZ29WZ.mjs.map} +1 -1
  72. package/dist/chunks/{NcAppSidebar-BomlW59S.mjs → NcAppSidebar-QEkYs8pt.mjs} +8 -8
  73. package/dist/chunks/{NcAppSidebar-BomlW59S.mjs.map → NcAppSidebar-QEkYs8pt.mjs.map} +1 -1
  74. package/dist/chunks/{NcAvatar-CSk-1oFe.mjs → NcAvatar-BadoF6cb.mjs} +13 -12
  75. package/dist/chunks/{NcAvatar-CSk-1oFe.mjs.map → NcAvatar-BadoF6cb.mjs.map} +1 -1
  76. package/dist/chunks/{NcBreadcrumb-Bvsnecwa.mjs → NcBreadcrumb-BH4XQJ8K.mjs} +3 -3
  77. package/dist/chunks/{NcBreadcrumb-Bvsnecwa.mjs.map → NcBreadcrumb-BH4XQJ8K.mjs.map} +1 -1
  78. package/dist/chunks/{NcBreadcrumbs-DWU2ZRkM.mjs → NcBreadcrumbs-DyWyrhrJ.mjs} +4 -4
  79. package/dist/chunks/{NcBreadcrumbs-DWU2ZRkM.mjs.map → NcBreadcrumbs-DyWyrhrJ.mjs.map} +1 -1
  80. package/dist/chunks/{NcButton-Byg8-ta1.mjs → NcButton-yN4vYgXb.mjs} +3 -3
  81. package/dist/chunks/{NcButton-Byg8-ta1.mjs.map → NcButton-yN4vYgXb.mjs.map} +1 -1
  82. package/dist/chunks/{NcCheckboxRadioSwitch-Ca1ouh22.mjs → NcCheckboxRadioSwitch-Di0xbf6d.mjs} +8 -8
  83. package/dist/chunks/NcCheckboxRadioSwitch-Di0xbf6d.mjs.map +1 -0
  84. package/dist/chunks/{NcChip-Cl6RfDoK.mjs → NcChip-DfDlpsAh.mjs} +7 -7
  85. package/dist/chunks/{NcChip-Cl6RfDoK.mjs.map → NcChip-DfDlpsAh.mjs.map} +1 -1
  86. package/dist/chunks/{NcCollectionList-CxzQkCFq.mjs → NcCollectionList-B2PzNHzw.mjs} +6 -6
  87. package/dist/chunks/{NcCollectionList-CxzQkCFq.mjs.map → NcCollectionList-B2PzNHzw.mjs.map} +1 -1
  88. package/dist/chunks/NcColorPicker-CoteX_0P.mjs +182 -0
  89. package/dist/chunks/NcColorPicker-CoteX_0P.mjs.map +1 -0
  90. package/dist/chunks/{NcContent-DtM8j8ub.mjs → NcContent-BImnEnMI.mjs} +81 -112
  91. package/dist/chunks/{NcContent-DtM8j8ub.mjs.map → NcContent-BImnEnMI.mjs.map} +1 -1
  92. package/dist/chunks/{NcDashboardWidget-uBobynyZ.mjs → NcDashboardWidget-DJtdcW-W.mjs} +4 -4
  93. package/dist/chunks/{NcDashboardWidget-uBobynyZ.mjs.map → NcDashboardWidget-DJtdcW-W.mjs.map} +1 -1
  94. package/dist/chunks/{NcDashboardWidgetItem-DnI9uLf1.mjs → NcDashboardWidgetItem-CZaWF40u.mjs} +8 -8
  95. package/dist/chunks/NcDashboardWidgetItem-CZaWF40u.mjs.map +1 -0
  96. package/dist/chunks/{NcDateTime.vue_vue_type_script_setup_true_lang-BD-rj6Dr.mjs → NcDateTime.vue_vue_type_script_setup_true_lang-C2VbacBQ.mjs} +2 -2
  97. package/dist/chunks/{NcDateTime.vue_vue_type_script_setup_true_lang-BD-rj6Dr.mjs.map → NcDateTime.vue_vue_type_script_setup_true_lang-C2VbacBQ.mjs.map} +1 -1
  98. package/dist/chunks/{NcDateTimePicker-DYNOGc6A.mjs → NcDateTimePicker-BB--HQog.mjs} +4 -4
  99. package/dist/chunks/{NcDateTimePicker-DYNOGc6A.mjs.map → NcDateTimePicker-BB--HQog.mjs.map} +1 -1
  100. package/dist/chunks/NcDateTimePickerNative-DaPzFiYH.mjs +100 -0
  101. package/dist/chunks/NcDateTimePickerNative-DaPzFiYH.mjs.map +1 -0
  102. package/dist/chunks/NcDialog-CXVaeWJf.mjs +169 -0
  103. package/dist/chunks/NcDialog-CXVaeWJf.mjs.map +1 -0
  104. package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-DAZ2Budh.mjs → NcDialogButton.vue_vue_type_script_setup_true_lang-DSKWXzqG.mjs} +4 -4
  105. package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-DAZ2Budh.mjs.map → NcDialogButton.vue_vue_type_script_setup_true_lang-DSKWXzqG.mjs.map} +1 -1
  106. package/dist/chunks/{NcEllipsisedOption-4k07kvEr.mjs → NcEllipsisedOption-C8uNDC-j.mjs} +4 -4
  107. package/dist/chunks/{NcEllipsisedOption-4k07kvEr.mjs.map → NcEllipsisedOption-C8uNDC-j.mjs.map} +1 -1
  108. package/dist/chunks/{NcEmojiPicker-lhuMMbDy.mjs → NcEmojiPicker-BGO0v-D5.mjs} +11 -11
  109. package/dist/chunks/{NcEmojiPicker-lhuMMbDy.mjs.map → NcEmojiPicker-BGO0v-D5.mjs.map} +1 -1
  110. package/dist/chunks/{NcHeaderButton-BXfTpkIm.mjs → NcHeaderButton-BTZ1WNux.mjs} +2 -2
  111. package/dist/chunks/{NcHeaderButton-BXfTpkIm.mjs.map → NcHeaderButton-BTZ1WNux.mjs.map} +1 -1
  112. package/dist/chunks/{NcHeaderMenu-o9FmNBI5.mjs → NcHeaderMenu-DmpJfS86.mjs} +5 -5
  113. package/dist/chunks/NcHeaderMenu-DmpJfS86.mjs.map +1 -0
  114. package/dist/chunks/{NcHighlight-Cu4UfEEO.mjs → NcHighlight.vue_vue_type_script_lang-DnWQDM_2.mjs} +5 -9
  115. package/dist/chunks/NcHighlight.vue_vue_type_script_lang-DnWQDM_2.mjs.map +1 -0
  116. package/dist/chunks/{NcInputConfirmCancel-C1K1gyQA.mjs → NcInputConfirmCancel-B7gAZ7U1.mjs} +3 -3
  117. package/dist/chunks/{NcInputConfirmCancel-C1K1gyQA.mjs.map → NcInputConfirmCancel-B7gAZ7U1.mjs.map} +1 -1
  118. package/dist/chunks/NcInputField-DH5ybroK.mjs +162 -0
  119. package/dist/chunks/NcInputField-DH5ybroK.mjs.map +1 -0
  120. package/dist/chunks/{NcListItem-C2LlJgjL.mjs → NcListItem-50hUlVlb.mjs} +8 -8
  121. package/dist/chunks/{NcListItem-C2LlJgjL.mjs.map → NcListItem-50hUlVlb.mjs.map} +1 -1
  122. package/dist/chunks/{NcListItemIcon-5ms0eK3w.mjs → NcListItemIcon-BGEA45de.mjs} +5 -5
  123. package/dist/chunks/{NcListItemIcon-5ms0eK3w.mjs.map → NcListItemIcon-BGEA45de.mjs.map} +1 -1
  124. package/dist/chunks/NcLoadingIcon-Dm3kRPrf.mjs +57 -0
  125. package/dist/chunks/NcLoadingIcon-Dm3kRPrf.mjs.map +1 -0
  126. package/dist/chunks/{NcModal-BisVxXe_.mjs → NcModal-CWRw1hyF.mjs} +12 -17
  127. package/dist/chunks/NcModal-CWRw1hyF.mjs.map +1 -0
  128. package/dist/chunks/NcNoteCard-DmhVICGO.mjs +61 -0
  129. package/dist/chunks/NcNoteCard-DmhVICGO.mjs.map +1 -0
  130. package/dist/chunks/NcPasswordField-DY-wDP9m.mjs +211 -0
  131. package/dist/chunks/NcPasswordField-DY-wDP9m.mjs.map +1 -0
  132. package/dist/chunks/{NcPopover-MsWUAvsI.mjs → NcPopover-BUlWWIxc.mjs} +3 -3
  133. package/dist/chunks/{NcPopover-MsWUAvsI.mjs.map → NcPopover-BUlWWIxc.mjs.map} +1 -1
  134. package/dist/chunks/{NcRelatedResourcesPanel-CShyi9lg.mjs → NcRelatedResourcesPanel-BUasditW.mjs} +4 -4
  135. package/dist/chunks/{NcRelatedResourcesPanel-CShyi9lg.mjs.map → NcRelatedResourcesPanel-BUasditW.mjs.map} +1 -1
  136. package/dist/chunks/{NcRichContenteditable-DgH9H1qf.mjs → NcRichContenteditable-CGP8KN41.mjs} +15 -13
  137. package/dist/chunks/{NcRichContenteditable-DgH9H1qf.mjs.map → NcRichContenteditable-CGP8KN41.mjs.map} +1 -1
  138. package/dist/chunks/{NcRichText-BkKK1moX.mjs → NcRichText-DDllQirJ.mjs} +10 -6
  139. package/dist/chunks/{NcRichText-BkKK1moX.mjs.map → NcRichText-DDllQirJ.mjs.map} +1 -1
  140. package/dist/chunks/{NcSelect-BSa2kSPW.mjs → NcSelect-Bkg2rrDQ.mjs} +4 -4
  141. package/dist/chunks/{NcSelect-BSa2kSPW.mjs.map → NcSelect-Bkg2rrDQ.mjs.map} +1 -1
  142. package/dist/chunks/{NcSelectTags-BW0QroJV.mjs → NcSelectTags-gJMICSS2.mjs} +4 -4
  143. package/dist/chunks/{NcSelectTags-BW0QroJV.mjs.map → NcSelectTags-gJMICSS2.mjs.map} +1 -1
  144. package/dist/chunks/{NcSelectUsers-Bhx9k-0v.mjs → NcSelectUsers-mRdIiG7L.mjs} +3 -3
  145. package/dist/chunks/{NcSelectUsers-Bhx9k-0v.mjs.map → NcSelectUsers-mRdIiG7L.mjs.map} +1 -1
  146. package/dist/chunks/{NcSettingsInputText-CrOqaL-x.mjs → NcSettingsInputText-P8cEi0aP.mjs} +3 -3
  147. package/dist/chunks/{NcSettingsInputText-CrOqaL-x.mjs.map → NcSettingsInputText-P8cEi0aP.mjs.map} +1 -1
  148. package/dist/chunks/{NcSettingsSection-D6ShpfeY.mjs → NcSettingsSection-DkDLjL_G.mjs} +2 -2
  149. package/dist/chunks/{NcSettingsSection-D6ShpfeY.mjs.map → NcSettingsSection-DkDLjL_G.mjs.map} +1 -1
  150. package/dist/chunks/{NcSettingsSelectGroup-DpNxkoZ2.mjs → NcSettingsSelectGroup-BvYxv8aw.mjs} +4 -4
  151. package/dist/chunks/{NcSettingsSelectGroup-DpNxkoZ2.mjs.map → NcSettingsSelectGroup-BvYxv8aw.mjs.map} +1 -1
  152. package/dist/chunks/NcTextArea-D4hJqp6W.mjs +122 -0
  153. package/dist/chunks/NcTextArea-D4hJqp6W.mjs.map +1 -0
  154. package/dist/chunks/NcTextField.vue_vue_type_script_setup_true_lang-BggEO9Jn.mjs +92 -0
  155. package/dist/chunks/NcTextField.vue_vue_type_script_setup_true_lang-BggEO9Jn.mjs.map +1 -0
  156. package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-T3gPr-FV.mjs → NcTimezonePicker.vue_vue_type_script_setup_true_lang-C7loAI0C.mjs} +3 -3
  157. package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-T3gPr-FV.mjs.map → NcTimezonePicker.vue_vue_type_script_setup_true_lang-C7loAI0C.mjs.map} +1 -1
  158. package/dist/chunks/NcUserBubble-CKN4C4kP.mjs +136 -0
  159. package/dist/chunks/NcUserBubble-CKN4C4kP.mjs.map +1 -0
  160. package/dist/chunks/{NcUserStatusIcon-CtOZd90o.mjs → NcUserStatusIcon-BX9ILG2r.mjs} +2 -2
  161. package/dist/chunks/{NcUserStatusIcon-CtOZd90o.mjs.map → NcUserStatusIcon-BX9ILG2r.mjs.map} +1 -1
  162. package/dist/chunks/{_l10n-Bg-fZ9R0.mjs → _l10n-B4AgnzNC.mjs} +59 -69
  163. package/dist/chunks/_l10n-B4AgnzNC.mjs.map +1 -0
  164. package/dist/chunks/{colors-BPGhD2C5.mjs → colors-fFK6HkHZ.mjs} +2 -2
  165. package/dist/chunks/{colors-BPGhD2C5.mjs.map → colors-fFK6HkHZ.mjs.map} +1 -1
  166. package/dist/chunks/mdi-CWpCzTmH.mjs +33 -0
  167. package/dist/chunks/{mdi-CR-3gwdl.mjs.map → mdi-CWpCzTmH.mjs.map} +1 -1
  168. package/dist/chunks/{referencePickerModal-Dw1szWUR.mjs → referencePickerModal-uLIBRHIc.mjs} +19 -19
  169. package/dist/chunks/{referencePickerModal-Dw1szWUR.mjs.map → referencePickerModal-uLIBRHIc.mjs.map} +1 -1
  170. package/dist/chunks/{useFormatDateTime-L411ysPm.mjs → useFormatDateTime-DmnI1ENQ.mjs} +2 -2
  171. package/dist/chunks/{useFormatDateTime-L411ysPm.mjs.map → useFormatDateTime-DmnI1ENQ.mjs.map} +1 -1
  172. package/dist/chunks/{usernameToColor-CuTR6O_B.mjs → usernameToColor-Bik5PNni.mjs} +2 -2
  173. package/dist/chunks/{usernameToColor-CuTR6O_B.mjs.map → usernameToColor-Bik5PNni.mjs.map} +1 -1
  174. package/dist/components/NcActionButton/index.mjs +1 -1
  175. package/dist/components/NcActionButtonGroup/index.mjs +1 -1
  176. package/dist/components/NcActionCheckbox/NcActionCheckbox.vue.d.ts +1 -1
  177. package/dist/components/NcActionInput/index.mjs +1 -1
  178. package/dist/components/NcActionRadio/NcActionRadio.vue.d.ts +1 -1
  179. package/dist/components/NcActionTextEditable/index.mjs +1 -1
  180. package/dist/components/NcActions/index.mjs +1 -1
  181. package/dist/components/NcAppContent/NcAppContent.vue.d.ts +2 -1
  182. package/dist/components/NcAppContent/index.mjs +1 -1
  183. package/dist/components/NcAppNavigation/NcAppNavigation.vue.d.ts +66 -0
  184. package/dist/components/NcAppNavigation/index.mjs +1 -1
  185. package/dist/components/NcAppNavigationCaption/index.mjs +1 -1
  186. package/dist/components/NcAppNavigationItem/index.mjs +1 -1
  187. package/dist/components/NcAppNavigationNew/index.mjs +1 -1
  188. package/dist/components/NcAppNavigationNewItem/index.mjs +1 -1
  189. package/dist/components/NcAppNavigationSearch/NcAppNavigationSearch.vue.d.ts +275 -0
  190. package/dist/components/NcAppNavigationSearch/index.mjs +1 -1
  191. package/dist/components/NcAppNavigationSettings/index.mjs +1 -1
  192. package/dist/components/NcAppNavigationSpacer/NcAppNavigationSpacer.vue.d.ts +1 -1
  193. package/dist/components/NcAppNavigationSpacer/index.d.ts +4 -0
  194. package/dist/components/NcAppNavigationSpacer/index.mjs +1 -1
  195. package/dist/components/NcAppNavigationToggle/NcAppNavigationToggle.vue.d.ts +9 -0
  196. package/dist/components/NcAppNavigationToggle/index.d.ts +5 -3
  197. package/dist/components/NcAppNavigationToggle/index.mjs +2 -3
  198. package/dist/components/NcAppSettingsDialog/index.mjs +1 -1
  199. package/dist/components/NcAppSidebar/index.mjs +1 -1
  200. package/dist/components/NcAvatar/index.mjs +1 -1
  201. package/dist/components/NcBreadcrumb/index.mjs +1 -1
  202. package/dist/components/NcBreadcrumbs/index.mjs +1 -1
  203. package/dist/components/NcButton/index.mjs +1 -1
  204. package/dist/components/NcCheckboxRadioSwitch/index.mjs +1 -1
  205. package/dist/components/NcChip/NcChip.vue.d.ts +2 -2
  206. package/dist/components/NcChip/index.mjs +1 -1
  207. package/dist/components/NcCollectionList/index.mjs +1 -1
  208. package/dist/components/NcColorPicker/NcColorPicker.vue.d.ts +54 -1
  209. package/dist/components/NcColorPicker/index.d.ts +4 -0
  210. package/dist/components/NcColorPicker/index.mjs +1 -1
  211. package/dist/components/NcContent/NcContent.vue.d.ts +33 -0
  212. package/dist/components/NcContent/index.d.ts +4 -0
  213. package/dist/components/NcContent/index.mjs +1 -1
  214. package/dist/components/NcDashboardWidget/index.mjs +1 -1
  215. package/dist/components/NcDashboardWidgetItem/index.mjs +1 -1
  216. package/dist/components/NcDateTime/index.mjs +1 -1
  217. package/dist/components/NcDateTimePicker/index.mjs +1 -1
  218. package/dist/components/NcDateTimePickerNative/NcDateTimePickerNative.vue.d.ts +29 -151
  219. package/dist/components/NcDateTimePickerNative/index.d.ts +4 -0
  220. package/dist/components/NcDateTimePickerNative/index.mjs +1 -1
  221. package/dist/components/NcDialog/NcDialog.vue.d.ts +73 -380
  222. package/dist/components/NcDialog/index.d.ts +4 -0
  223. package/dist/components/NcDialog/index.mjs +1 -1
  224. package/dist/components/NcDialogButton/index.mjs +1 -1
  225. package/dist/components/NcEllipsisedOption/index.mjs +1 -1
  226. package/dist/components/NcEmojiPicker/index.mjs +1 -1
  227. package/dist/components/NcHeaderButton/index.mjs +1 -1
  228. package/dist/components/NcHeaderMenu/index.d.ts +4 -0
  229. package/dist/components/NcHeaderMenu/index.mjs +1 -1
  230. package/dist/components/NcHighlight/NcHighlight.vue.d.ts +15 -8
  231. package/dist/components/NcHighlight/index.d.ts +4 -0
  232. package/dist/components/NcHighlight/index.mjs +1 -1
  233. package/dist/components/NcInputField/NcInputField.vue.d.ts +147 -0
  234. package/dist/components/NcInputField/index.d.ts +5 -0
  235. package/dist/components/NcInputField/index.mjs +1 -1
  236. package/dist/components/NcListItem/index.mjs +1 -1
  237. package/dist/components/NcListItemIcon/index.mjs +1 -1
  238. package/dist/components/NcLoadingIcon/NcLoadingIcon.vue.d.ts +9 -45
  239. package/dist/components/NcLoadingIcon/index.d.ts +4 -0
  240. package/dist/components/NcLoadingIcon/index.mjs +1 -1
  241. package/dist/components/NcModal/index.mjs +1 -1
  242. package/dist/components/NcNoteCard/NcNoteCard.vue.d.ts +37 -62
  243. package/dist/components/NcNoteCard/index.d.ts +4 -0
  244. package/dist/components/NcNoteCard/index.mjs +1 -1
  245. package/dist/components/NcPasswordField/NcPasswordField.vue.d.ts +282 -0
  246. package/dist/components/NcPasswordField/index.d.ts +4 -0
  247. package/dist/components/NcPasswordField/index.mjs +1 -1
  248. package/dist/components/NcPopover/index.mjs +1 -1
  249. package/dist/components/NcRelatedResourcesPanel/index.mjs +1 -1
  250. package/dist/components/NcRichContenteditable/NcRichContenteditable.vue.d.ts +1 -1
  251. package/dist/components/NcRichContenteditable/index.mjs +1 -1
  252. package/dist/components/NcRichText/index.mjs +3 -3
  253. package/dist/components/NcSelect/index.mjs +1 -1
  254. package/dist/components/NcSelectTags/index.mjs +1 -1
  255. package/dist/components/NcSelectUsers/index.mjs +1 -1
  256. package/dist/components/NcSettingsInputText/NcSettingsInputText.vue.d.ts +1 -1
  257. package/dist/components/NcSettingsInputText/index.mjs +1 -1
  258. package/dist/components/NcSettingsSection/index.mjs +1 -1
  259. package/dist/components/NcSettingsSelectGroup/index.mjs +1 -1
  260. package/dist/components/NcTextArea/NcTextArea.vue.d.ts +51 -170
  261. package/dist/components/NcTextArea/index.d.ts +4 -0
  262. package/dist/components/NcTextArea/index.mjs +1 -1
  263. package/dist/components/NcTextField/NcTextField.vue.d.ts +277 -0
  264. package/dist/components/NcTextField/index.d.ts +4 -0
  265. package/dist/components/NcTextField/index.mjs +2 -2
  266. package/dist/components/NcTimezonePicker/index.mjs +1 -1
  267. package/dist/components/NcUserBubble/NcUserBubble.vue.d.ts +90 -0
  268. package/dist/components/NcUserBubble/NcUserBubbleDiv.vue.d.ts +16 -1
  269. package/dist/components/NcUserBubble/index.d.ts +4 -0
  270. package/dist/components/NcUserBubble/index.mjs +1 -1
  271. package/dist/components/NcUserStatusIcon/index.mjs +1 -1
  272. package/dist/components/index.d.ts +15 -15
  273. package/dist/functions/reference/index.mjs +1 -1
  274. package/dist/functions/usernameToColor/index.mjs +1 -1
  275. package/dist/index.mjs +76 -76
  276. package/dist/utils/VueTypes.d.ts +6 -0
  277. package/package.json +2 -2
  278. package/dist/assets/NcAppNavigationSpacer-BJj8CIpA.css +0 -6
  279. package/dist/chunks/AlertCircleOutline-DVzpKQVu.mjs +0 -49
  280. package/dist/chunks/AlertCircleOutline-DVzpKQVu.mjs.map +0 -1
  281. package/dist/chunks/NcAppContent-DRhM7Gyz.mjs.map +0 -1
  282. package/dist/chunks/NcAppNavigationSpacer-CzBLuQL8.mjs +0 -15
  283. package/dist/chunks/NcAppNavigationSpacer-CzBLuQL8.mjs.map +0 -1
  284. package/dist/chunks/NcAppNavigationToggle-CFw3W3_o.mjs.map +0 -1
  285. package/dist/chunks/NcCheckboxRadioSwitch-Ca1ouh22.mjs.map +0 -1
  286. package/dist/chunks/NcColorPicker-BjsBCkEt.mjs +0 -275
  287. package/dist/chunks/NcColorPicker-BjsBCkEt.mjs.map +0 -1
  288. package/dist/chunks/NcDashboardWidgetItem-DnI9uLf1.mjs.map +0 -1
  289. package/dist/chunks/NcDateTimePickerNative-D0pjWawX.mjs +0 -202
  290. package/dist/chunks/NcDateTimePickerNative-D0pjWawX.mjs.map +0 -1
  291. package/dist/chunks/NcDialog-BQNR_-Ju.mjs +0 -319
  292. package/dist/chunks/NcDialog-BQNR_-Ju.mjs.map +0 -1
  293. package/dist/chunks/NcHeaderMenu-o9FmNBI5.mjs.map +0 -1
  294. package/dist/chunks/NcHighlight-Cu4UfEEO.mjs.map +0 -1
  295. package/dist/chunks/NcInputField-BBS1E7r-.mjs +0 -306
  296. package/dist/chunks/NcInputField-BBS1E7r-.mjs.map +0 -1
  297. package/dist/chunks/NcLoadingIcon-CsMn1bFR.mjs +0 -79
  298. package/dist/chunks/NcLoadingIcon-CsMn1bFR.mjs.map +0 -1
  299. package/dist/chunks/NcModal-BisVxXe_.mjs.map +0 -1
  300. package/dist/chunks/NcNoteCard-XoSOund1.mjs +0 -276
  301. package/dist/chunks/NcNoteCard-XoSOund1.mjs.map +0 -1
  302. package/dist/chunks/NcPasswordField-hZiEd3tC.mjs +0 -298
  303. package/dist/chunks/NcPasswordField-hZiEd3tC.mjs.map +0 -1
  304. package/dist/chunks/NcTextArea-DKHjCur8.mjs +0 -217
  305. package/dist/chunks/NcTextArea-DKHjCur8.mjs.map +0 -1
  306. package/dist/chunks/NcTextField-DJ1KtSKd.mjs +0 -174
  307. package/dist/chunks/NcTextField-DJ1KtSKd.mjs.map +0 -1
  308. package/dist/chunks/NcUserBubble-Csot0WLv.mjs +0 -228
  309. package/dist/chunks/NcUserBubble-Csot0WLv.mjs.map +0 -1
  310. package/dist/chunks/_l10n-Bg-fZ9R0.mjs.map +0 -1
  311. package/dist/chunks/mdi-CR-3gwdl.mjs +0 -21
  312. package/dist/components/NcEllipsisedOption/NcEllipsisedOption.vue.d.ts +0 -95
  313. package/dist/components/NcRichText/NcReferencePicker/NcProviderList.vue.d.ts +0 -215
  314. package/dist/components/NcRichText/NcReferencePicker/NcSearch.vue.d.ts +0 -289
  315. package/dist/components/NcRichText/NcReferencePicker/NcSearchResult.vue.d.ts +0 -69
  316. package/dist/components/NcSelect/NcSelect.vue.d.ts +0 -121
  317. package/dist/components/NcSelectTags/NcSelectTags.vue.d.ts +0 -205
  318. package/dist/components/NcSettingsSelectGroup/NcSettingsSelectGroup.vue.d.ts +0 -265
@@ -1,217 +0,0 @@
1
- import '../assets/NcTextArea-DHr9DPOJ.css';
2
- import { c as createElementId } from "./createElementId-DhjFt1I9.mjs";
3
- import { A as AlertCircle } from "./AlertCircleOutline-DVzpKQVu.mjs";
4
- import { C as Check } from "./Check-5i4xKnkl.mjs";
5
- import { resolveComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, createCommentVNode, mergeProps, toDisplayString, createBlock, createTextVNode } from "vue";
6
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
7
- const _sfc_main = {
8
- name: "NcTextArea",
9
- components: {
10
- AlertCircle,
11
- Check
12
- },
13
- inheritAttrs: false,
14
- props: {
15
- /**
16
- * The value of the input field
17
- */
18
- modelValue: {
19
- type: String,
20
- required: true
21
- },
22
- /**
23
- * The input label, always provide one for accessibility purposes.
24
- * This will also be used as a placeholder unless the placeholder
25
- * prop is populated with a different string.
26
- */
27
- label: {
28
- type: String,
29
- default: void 0
30
- },
31
- /**
32
- * Pass in true if you want to use an external label. This is useful
33
- * if you need a label that looks different from the one provided by
34
- * this component
35
- */
36
- labelOutside: {
37
- type: Boolean,
38
- default: false
39
- },
40
- /**
41
- * The placeholder of the input. This defaults as the string that's
42
- * passed into the label prop. In order to remove the placeholder,
43
- * pass in an empty string.
44
- */
45
- placeholder: {
46
- type: String,
47
- default: void 0
48
- },
49
- /**
50
- * Toggles the success state of the component. Adds a checkmark icon.
51
- * this cannot be used together with canClear.
52
- */
53
- success: {
54
- type: Boolean,
55
- default: false
56
- },
57
- /**
58
- * Toggles the error state of the component. Adds an error icon.
59
- * this cannot be used together with canClear.
60
- */
61
- error: {
62
- type: Boolean,
63
- default: false
64
- },
65
- /**
66
- * Additional helper text message
67
- *
68
- * This will be displayed beneath the input field. In case the field is
69
- * also marked as having an error, the text will be displayed in red.
70
- */
71
- helperText: {
72
- type: String,
73
- default: ""
74
- },
75
- /**
76
- * Disable the input field
77
- */
78
- disabled: {
79
- type: Boolean,
80
- default: false
81
- },
82
- /**
83
- * Class to add to the input field.
84
- * Necessary to use NcInputField in the NcActionInput component.
85
- */
86
- inputClass: {
87
- type: [Object, String],
88
- default: ""
89
- },
90
- /**
91
- * The resize CSS property sets whether an element is resizable, and if
92
- * so, in which directions.
93
- */
94
- resize: {
95
- type: String,
96
- default: "both",
97
- validator: (value) => ["both", "vertical", "horizontal", "none"].includes(value)
98
- }
99
- },
100
- emits: [
101
- "update:modelValue"
102
- ],
103
- computed: {
104
- computedId() {
105
- return this.$attrs.id && this.$attrs.id !== "" ? this.$attrs.id : this.inputName;
106
- },
107
- inputName() {
108
- return "input" + createElementId();
109
- },
110
- hasPlaceholder() {
111
- return this.placeholder !== "" && this.placeholder !== void 0;
112
- },
113
- computedPlaceholder() {
114
- return this.hasPlaceholder ? this.placeholder : this.label;
115
- },
116
- isValidLabel() {
117
- const isValidLabel = this.label || this.labelOutside;
118
- if (!isValidLabel) {
119
- console.warn("You need to add a label to the NcInputField component. Either use the prop label or use an external one, as per the example in the documentation.");
120
- }
121
- return isValidLabel;
122
- },
123
- ariaDescribedby() {
124
- const ariaDescribedby = [];
125
- if (this.helperText.length > 0) {
126
- ariaDescribedby.push(`${this.inputName}-helper-text`);
127
- }
128
- if (this.$attrs["aria-describedby"]) {
129
- ariaDescribedby.push(this.$attrs["aria-describedby"]);
130
- }
131
- return ariaDescribedby.join(" ") || null;
132
- }
133
- },
134
- methods: {
135
- /**
136
- * Focus the input element
137
- *
138
- * @public
139
- */
140
- focus() {
141
- this.$refs.input.focus();
142
- },
143
- /**
144
- * Select all the text in the input
145
- *
146
- * @public
147
- */
148
- select() {
149
- this.$refs.input.select();
150
- },
151
- handleInput(event) {
152
- this.$emit("update:modelValue", event.target.value);
153
- }
154
- }
155
- };
156
- const _hoisted_1 = { class: "textarea__main-wrapper" };
157
- const _hoisted_2 = ["id", "disabled", "placeholder", "aria-describedby", "value"];
158
- const _hoisted_3 = ["for"];
159
- const _hoisted_4 = ["id"];
160
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
161
- const _component_Check = resolveComponent("Check");
162
- const _component_AlertCircle = resolveComponent("AlertCircle");
163
- return openBlock(), createElementBlock("div", {
164
- class: normalizeClass(["textarea", { "textarea--disabled": $props.disabled }])
165
- }, [
166
- createElementVNode("div", _hoisted_1, [
167
- createElementVNode("textarea", mergeProps(_ctx.$attrs, {
168
- id: $options.computedId,
169
- ref: "input",
170
- class: ["textarea__input", [
171
- $props.inputClass,
172
- {
173
- "textarea__input--label-outside": $props.labelOutside,
174
- "textarea__input--success": $props.success,
175
- "textarea__input--error": $props.error
176
- }
177
- ]],
178
- disabled: $props.disabled,
179
- placeholder: $options.computedPlaceholder,
180
- "aria-describedby": $options.ariaDescribedby,
181
- "aria-live": "polite",
182
- style: { resize: $props.resize },
183
- value: $props.modelValue,
184
- onInput: _cache[0] || (_cache[0] = (...args) => $options.handleInput && $options.handleInput(...args))
185
- }), null, 16, _hoisted_2),
186
- !$props.labelOutside && $options.isValidLabel ? (openBlock(), createElementBlock("label", {
187
- key: 0,
188
- class: "textarea__label",
189
- for: $options.computedId
190
- }, toDisplayString($props.label), 9, _hoisted_3)) : createCommentVNode("", true)
191
- ]),
192
- $props.helperText.length > 0 ? (openBlock(), createElementBlock("p", {
193
- key: 0,
194
- id: `${$options.inputName}-helper-text`,
195
- class: normalizeClass(["textarea__helper-text-message", {
196
- "textarea__helper-text-message--error": $props.error,
197
- "textarea__helper-text-message--success": $props.success
198
- }])
199
- }, [
200
- $props.success ? (openBlock(), createBlock(_component_Check, {
201
- key: 0,
202
- class: "textarea__helper-text-message__icon",
203
- size: 18
204
- })) : $props.error ? (openBlock(), createBlock(_component_AlertCircle, {
205
- key: 1,
206
- class: "textarea__helper-text-message__icon",
207
- size: 18
208
- })) : createCommentVNode("", true),
209
- createTextVNode(" " + toDisplayString($props.helperText), 1)
210
- ], 10, _hoisted_4)) : createCommentVNode("", true)
211
- ], 2);
212
- }
213
- const NcTextArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-cc8bbaa7"]]);
214
- export {
215
- NcTextArea as N
216
- };
217
- //# sourceMappingURL=NcTextArea-DKHjCur8.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NcTextArea-DKHjCur8.mjs","sources":["../../src/components/NcTextArea/NcTextArea.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\n### Description\n\nThis component is a textarea field.\nIt extends and styles an HTMLTextAreaElement.\n\n```\n<template>\n\t<div class=\"wrapper\">\n\t\t<NcTextArea v-model=\"text\"\n\t\t\tlabel=\"Text area\"\n\t\t\tplaceholder=\"Placeholders are possible\"\n\t\t\thelper-text=\"This is a regular helper text.\" />\n\t\t<NcTextArea label=\"Success state\"\n\t\t\t:success=\"true\" />\n\t\t<NcTextArea label=\"Error state\"\n\t\t\tplaceholder=\"Enter something valid\"\n\t\t\thelper-text=\"Helper texts will be styled accordingly.\"\n\t\t\t:error=\"true\" />\n\t\t<NcTextArea label=\"Disabled\"\n\t\t\t:disabled=\"true\" />\n\t\t<NcTextArea label=\"Disabled + Success\"\n\t\t\t:success=\"true\"\n\t\t\t:disabled=\"true\" />\n\t\t<div class=\"external-label\">\n\t\t\t<label for=\"textField\">External label</label>\n\t\t\t<NcTextArea id=\"textField\"\n\t\t\t\t:label-outside=\"true\"\n\t\t\t\tplaceholder=\"Text area with external label\" />\n\t\t</div>\n\t\t<NcTextArea label=\"Custom size and no resize\"\n\t\t\tresize=\"none\"\n\t\t\trows=\"5\" />\n\t</div>\n</template>\n\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\ttext: 'This is text.',\n\t\t}\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.wrapper {\n\tdisplay: flex;\n\tgap: 4px;\n\talign-items: flex-end;\n\tflex-wrap: wrap;\n}\n\n.external-label {\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tgap: 14px;\n\n\t> label {\n\t\tflex-shrink: 0;\n\t}\n}\n</style>\n```\n</docs>\n\n<template>\n\t<div class=\"textarea\" :class=\"{ 'textarea--disabled': disabled }\">\n\t\t<div class=\"textarea__main-wrapper\">\n\t\t\t<textarea v-bind=\"$attrs\"\n\t\t\t\t:id=\"computedId\"\n\t\t\t\tref=\"input\"\n\t\t\t\tclass=\"textarea__input\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t:placeholder=\"computedPlaceholder\"\n\t\t\t\t:aria-describedby=\"ariaDescribedby\"\n\t\t\t\taria-live=\"polite\"\n\t\t\t\t:class=\"[inputClass,\n\t\t\t\t\t{\n\t\t\t\t\t\t'textarea__input--label-outside': labelOutside,\n\t\t\t\t\t\t'textarea__input--success': success,\n\t\t\t\t\t\t'textarea__input--error': error,\n\t\t\t\t\t}]\"\n\t\t\t\t:style=\"{ resize: resize }\"\n\t\t\t\t:value=\"modelValue\"\n\t\t\t\t@input=\"handleInput\" />\n\t\t\t<!-- Label -->\n\t\t\t<label v-if=\"!labelOutside && isValidLabel\"\n\t\t\t\tclass=\"textarea__label\"\n\t\t\t\t:for=\"computedId\">\n\t\t\t\t{{ label }}\n\t\t\t</label>\n\t\t</div>\n\t\t<p v-if=\"helperText.length > 0\"\n\t\t\t:id=\"`${inputName}-helper-text`\"\n\t\t\tclass=\"textarea__helper-text-message\"\n\t\t\t:class=\"{\n\t\t\t\t'textarea__helper-text-message--error': error,\n\t\t\t\t'textarea__helper-text-message--success': success,\n\t\t\t}\">\n\t\t\t<Check v-if=\"success\" class=\"textarea__helper-text-message__icon\" :size=\"18\" />\n\t\t\t<AlertCircle v-else-if=\"error\" class=\"textarea__helper-text-message__icon\" :size=\"18\" />\n\t\t\t{{ helperText }}\n\t\t</p>\n\t</div>\n</template>\n\n<script>\nimport { createElementId } from '../../utils/createElementId.ts'\n\nimport AlertCircle from 'vue-material-design-icons/AlertCircleOutline.vue'\nimport Check from 'vue-material-design-icons/Check.vue'\n\nexport default {\n\tname: 'NcTextArea',\n\n\tcomponents: {\n\t\tAlertCircle,\n\t\tCheck,\n\t},\n\n\tinheritAttrs: false,\n\n\tprops: {\n\t\t/**\n\t\t * The value of the input field\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\n\t\t/**\n\t\t * The input label, always provide one for accessibility purposes.\n\t\t * This will also be used as a placeholder unless the placeholder\n\t\t * prop is populated with a different string.\n\t\t */\n\t\tlabel: {\n\t\t\ttype: String,\n\t\t\tdefault: undefined,\n\t\t},\n\n\t\t/**\n\t\t * Pass in true if you want to use an external label. This is useful\n\t\t * if you need a label that looks different from the one provided by\n\t\t * this component\n\t\t */\n\t\tlabelOutside: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The placeholder of the input. This defaults as the string that's\n\t\t * passed into the label prop. In order to remove the placeholder,\n\t\t * pass in an empty string.\n\t\t */\n\t\tplaceholder: {\n\t\t\ttype: String,\n\t\t\tdefault: undefined,\n\t\t},\n\n\t\t/**\n\t\t * Toggles the success state of the component. Adds a checkmark icon.\n\t\t * this cannot be used together with canClear.\n\t\t */\n\t\tsuccess: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Toggles the error state of the component. Adds an error icon.\n\t\t * this cannot be used together with canClear.\n\t\t */\n\t\terror: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Additional helper text message\n\t\t *\n\t\t * This will be displayed beneath the input field. In case the field is\n\t\t * also marked as having an error, the text will be displayed in red.\n\t\t */\n\t\thelperText: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Disable the input field\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 * Class to add to the input field.\n\t\t * Necessary to use NcInputField in the NcActionInput component.\n\t\t */\n\t\tinputClass: {\n\t\t\ttype: [Object, String],\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * The resize CSS property sets whether an element is resizable, and if\n\t\t * so, in which directions.\n\t\t */\n\t\tresize: {\n\t\t\ttype: String,\n\t\t\tdefault: 'both',\n\t\t\tvalidator: (value) => ['both', 'vertical', 'horizontal', 'none'].includes(value),\n\t\t},\n\t},\n\n\temits: [\n\t\t'update:modelValue',\n\t],\n\n\tcomputed: {\n\t\tcomputedId() {\n\t\t\treturn this.$attrs.id && this.$attrs.id !== '' ? this.$attrs.id : this.inputName\n\t\t},\n\n\t\tinputName() {\n\t\t\treturn 'input' + createElementId()\n\t\t},\n\n\t\thasPlaceholder() {\n\t\t\treturn this.placeholder !== '' && this.placeholder !== undefined\n\t\t},\n\n\t\tcomputedPlaceholder() {\n\t\t\treturn this.hasPlaceholder ? this.placeholder : this.label\n\t\t},\n\n\t\tisValidLabel() {\n\t\t\tconst isValidLabel = this.label || this.labelOutside\n\t\t\tif (!isValidLabel) {\n\t\t\t\tconsole.warn('You need to add a label to the NcInputField component. Either use the prop label or use an external one, as per the example in the documentation.')\n\t\t\t}\n\t\t\treturn isValidLabel\n\t\t},\n\n\t\tariaDescribedby() {\n\t\t\tconst ariaDescribedby = []\n\t\t\tif (this.helperText.length > 0) {\n\t\t\t\tariaDescribedby.push(`${this.inputName}-helper-text`)\n\t\t\t}\n\t\t\tif (this.$attrs['aria-describedby']) {\n\t\t\t\tariaDescribedby.push(this.$attrs['aria-describedby'])\n\t\t\t}\n\t\t\treturn ariaDescribedby.join(' ') || null\n\t\t},\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Focus the input element\n\t\t *\n\t\t * @public\n\t\t */\n\t\tfocus() {\n\t\t\tthis.$refs.input.focus()\n\t\t},\n\n\t\t/**\n\t\t * Select all the text in the input\n\t\t *\n\t\t * @public\n\t\t */\n\t\tselect() {\n\t\t\tthis.$refs.input.select()\n\t\t},\n\n\t\thandleInput(event) {\n\t\t\tthis.$emit('update:modelValue', event.target.value)\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n\n.textarea {\n\tposition: relative;\n\twidth: 100%;\n\tborder-radius: var(--border-radius-large);\n\tmargin-block-start: 6px; // for the label in active state\n\tresize: vertical;\n\n\t&__main-wrapper {\n\t\tposition: relative;\n\t}\n\n\t&--disabled {\n\t\topacity: 0.7;\n\t\tfilter: saturate(0.7);\n\t}\n\n\t&__input {\n\t\tmargin: 0;\n\t\tpadding-inline: 10px 6px; // align with label 8px margin label + 4px padding label - 2px border input\n\t\twidth: 100%;\n\t\theight: calc(var(--default-clickable-area) * 2);\n\t\tfont-size: var(--default-font-size);\n\t\ttext-overflow: ellipsis;\n\n\t\tbackground-color: var(--color-main-background);\n\t\tcolor: var(--color-main-text);\n\t\tborder: var(--border-width-input, 2px) solid var(--color-border-maxcontrast);\n\t\tborder-radius: var(--border-radius-large);\n\n\t\tcursor: pointer;\n\n\t\t&:active:not([disabled]),\n\t\t&:hover:not([disabled]),\n\t\t&:focus:not([disabled]) {\n\t\t\tborder-width: var(--border-width-input-focused, 2px);\n\t\t\tborder-color: var(--color-main-text);\n\t\t\tbox-shadow: 0 0 0 2px var(--color-main-background) !important;\n\t\t}\n\n\t\t// Hide placeholder while not focussed -> show label instead (only if internal label is used)\n\t\t&:not(:focus,&--label-outside)::placeholder {\n\t\t\topacity: 0;\n\t\t}\n\n\t\t&:focus {\n\t\t\tcursor: text;\n\t\t}\n\n\t\t&:disabled {\n\t\t\tcursor: default;\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\tbox-shadow: unset !important; // Override server rules\n\t\t}\n\n\t\t&--success {\n\t\t\tborder-color: var(--color-success) !important; //Override hover border color\n\t\t\t&:focus-visible {\n\t\t\t\tbox-shadow: rgb(248, 250, 252) 0px 0px 0px 2px, var(--color-primary-element) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px\n\t\t\t}\n\t\t}\n\n\t\t&--error {\n\t\t\tborder-color: var(--color-error) !important; //Override hover border color\n\t\t\t&:focus-visible {\n\t\t\t\tbox-shadow: rgb(248, 250, 252) 0px 0px 0px 2px, var(--color-primary-element) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px\n\t\t\t}\n\t\t}\n\t}\n\n\t&__label {\n\t\tposition: absolute;\n\t\tmargin-inline: 12px 0;\n\t\tmax-width: fit-content;\n\t\tinset-block-start: 11px;\n\t\tinset-inline: 0;\n\t\t// Fix color so that users do not think the input already has content\n\t\tcolor: var(--color-text-maxcontrast);\n\t\t// only one line labels are allowed\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\t// forward events to input\n\t\tpointer-events: none;\n\t\t// Position transition\n\t\ttransition: height var(--animation-quick), inset-block-start var(--animation-quick), font-size var(--animation-quick), color var(--animation-quick), background-color var(--animation-quick) var(--animation-slow);\n\t}\n\n\t&__input:focus + &__label,\n\t&__input:not(:placeholder-shown) + &__label {\n\t\tinset-block-start: -10px;\n\t\tline-height: 1.5; // minimum allowed line height for accessibility\n\t\tfont-size: 13px; // minimum allowed font size for accessibility\n\t\tfont-weight: 500;\n\t\tcolor: var(--color-main-text);\n\t\tbackground-color: var(--color-main-background);\n\t\tpadding-inline: 4px;\n\t\tmargin-inline-start: 8px;\n\n\t\ttransition: height var(--animation-quick), inset-block-start var(--animation-quick), font-size var(--animation-quick), color var(--animation-quick);\n\t}\n\n\t&__helper-text-message {\n\t\tpadding-block: 4px;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\n\t\t&__icon {\n\t\t\tmargin-inline-end: 8px;\n\t\t}\n\n\t\t&--error {\n\t\t\tcolor: var(--color-error-text);\n\t\t}\n\n\t\t&--success {\n\t\t\tcolor: var(--color-success-text);\n\t\t}\n\t}\n}\n</style>\n"],"names":["_createElementBlock","_normalizeClass","_createElementVNode","_mergeProps","_toDisplayString","_createCommentVNode","_createBlock","_createTextVNode"],"mappings":"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"}
@@ -1,174 +0,0 @@
1
- import { N as NcInputField } from "./NcInputField-BBS1E7r-.mjs";
2
- import { I as IconClose } from "./Close-D6ngJ4t9.mjs";
3
- import { I as IconArrowRight } from "./ArrowRight-DRKHUZMH.mjs";
4
- import { createElementBlock, openBlock, mergeProps, createElementVNode, createCommentVNode, toDisplayString, resolveComponent, createBlock, createSlots, withCtx, renderSlot } from "vue";
5
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
6
- import { r as register, d as t46, e as t17, a as t } from "./_l10n-Bg-fZ9R0.mjs";
7
- const _sfc_main$1 = {
8
- name: "UndoVariantIcon",
9
- emits: ["click"],
10
- props: {
11
- title: {
12
- type: String
13
- },
14
- fillColor: {
15
- type: String,
16
- default: "currentColor"
17
- },
18
- size: {
19
- type: Number,
20
- default: 24
21
- }
22
- }
23
- };
24
- const _hoisted_1 = ["aria-hidden", "aria-label"];
25
- const _hoisted_2 = ["fill", "width", "height"];
26
- const _hoisted_3 = { d: "M13.5,7A6.5,6.5 0 0,1 20,13.5A6.5,6.5 0 0,1 13.5,20H10V18H13.5C16,18 18,16 18,13.5C18,11 16,9 13.5,9H7.83L10.91,12.09L9.5,13.5L4,8L9.5,2.5L10.92,3.91L7.83,7H13.5M6,18H8V20H6V18Z" };
27
- const _hoisted_4 = { key: 0 };
28
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
29
- return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, {
30
- "aria-hidden": $props.title ? null : "true",
31
- "aria-label": $props.title,
32
- class: "material-design-icon undo-variant-icon",
33
- role: "img",
34
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
35
- }), [
36
- (openBlock(), createElementBlock("svg", {
37
- fill: $props.fillColor,
38
- class: "material-design-icon__svg",
39
- width: $props.size,
40
- height: $props.size,
41
- viewBox: "0 0 24 24"
42
- }, [
43
- createElementVNode("path", _hoisted_3, [
44
- $props.title ? (openBlock(), createElementBlock("title", _hoisted_4, toDisplayString($props.title), 1)) : createCommentVNode("", true)
45
- ])
46
- ], 8, _hoisted_2))
47
- ], 16, _hoisted_1);
48
- }
49
- const Undo = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
50
- register(t17, t46);
51
- const NcInputFieldProps = new Set(Object.keys(NcInputField.props));
52
- const _sfc_main = {
53
- name: "NcTextField",
54
- components: {
55
- NcInputField,
56
- Close: IconClose,
57
- ArrowRight: IconArrowRight,
58
- Undo
59
- },
60
- props: {
61
- /**
62
- * Any [NcInputField](#/Components/NcFields?id=ncinputfield) props
63
- */
64
- // Not an actual prop but needed to show in vue-styleguidist docs
65
- // eslint-disable-next-line
66
- " ": {},
67
- // Reuse all the props from NcInputField for better typing and documentation
68
- ...NcInputField.props,
69
- /**
70
- * The `aria-label` to set on the trailing button
71
- * If no explicit value is set it will default to the one matching the `trailingButtonIcon`:
72
- * @default 'Clear text'|'Save changes'|'Undo changes'
73
- */
74
- trailingButtonLabel: {
75
- type: String,
76
- default: ""
77
- },
78
- // Custom props
79
- /**
80
- * Specifies which material design icon should be used for the trailing
81
- * button.
82
- * @type {'close'|'arrowRight'|'undo'}
83
- */
84
- trailingButtonIcon: {
85
- type: String,
86
- default: "close",
87
- validator: (value) => [
88
- "close",
89
- "arrowRight",
90
- "undo"
91
- ].includes(value)
92
- }
93
- },
94
- emits: [
95
- "update:modelValue"
96
- ],
97
- computed: {
98
- propsToForward() {
99
- const predefinedLabels = {
100
- undo: t("Undo changes"),
101
- close: t("Clear text"),
102
- arrowRight: t("Save changes")
103
- };
104
- return {
105
- // Proxy original NcInputField's props
106
- ...Object.fromEntries(
107
- Object.entries(this.$props).filter(([key]) => NcInputFieldProps.has(key))
108
- ),
109
- // Adjust aria-label for predefined trailing buttons
110
- trailingButtonLabel: this.trailingButtonLabel || predefinedLabels[this.trailingButtonIcon]
111
- };
112
- }
113
- },
114
- methods: {
115
- /**
116
- * Focus the input element
117
- *
118
- * @public
119
- */
120
- focus() {
121
- this.$refs.inputField.focus();
122
- },
123
- /**
124
- * Select all the text in the input
125
- *
126
- * @public
127
- */
128
- select() {
129
- this.$refs.inputField.select();
130
- },
131
- handleInput(event) {
132
- this.$emit("update:modelValue", event);
133
- }
134
- }
135
- };
136
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
137
- const _component_Close = resolveComponent("Close");
138
- const _component_ArrowRight = resolveComponent("ArrowRight");
139
- const _component_Undo = resolveComponent("Undo");
140
- const _component_NcInputField = resolveComponent("NcInputField");
141
- return openBlock(), createBlock(_component_NcInputField, mergeProps($options.propsToForward, {
142
- ref: "inputField",
143
- "onUpdate:modelValue": $options.handleInput
144
- }), createSlots({ _: 2 }, [
145
- !!_ctx.$slots.icon ? {
146
- name: "icon",
147
- fn: withCtx(() => [
148
- renderSlot(_ctx.$slots, "icon")
149
- ]),
150
- key: "0"
151
- } : void 0,
152
- _ctx.type !== "search" ? {
153
- name: "trailing-button-icon",
154
- fn: withCtx(() => [
155
- $props.trailingButtonIcon === "close" ? (openBlock(), createBlock(_component_Close, {
156
- key: 0,
157
- size: 20
158
- })) : $props.trailingButtonIcon === "arrowRight" ? (openBlock(), createBlock(_component_ArrowRight, {
159
- key: 1,
160
- size: 20
161
- })) : $props.trailingButtonIcon === "undo" ? (openBlock(), createBlock(_component_Undo, {
162
- key: 2,
163
- size: 20
164
- })) : createCommentVNode("", true)
165
- ]),
166
- key: "1"
167
- } : void 0
168
- ]), 1040, ["onUpdate:modelValue"]);
169
- }
170
- const NcTextField = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
171
- export {
172
- NcTextField as N
173
- };
174
- //# sourceMappingURL=NcTextField-DJ1KtSKd.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NcTextField-DJ1KtSKd.mjs","sources":["../../node_modules/vue-material-design-icons/UndoVariant.vue","../../src/components/NcTextField/NcTextField.vue"],"sourcesContent":["<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : 'true'\"\n :aria-label=\"title\"\n class=\"material-design-icon undo-variant-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=\"M13.5,7A6.5,6.5 0 0,1 20,13.5A6.5,6.5 0 0,1 13.5,20H10V18H13.5C16,18 18,16 18,13.5C18,11 16,9 13.5,9H7.83L10.91,12.09L9.5,13.5L4,8L9.5,2.5L10.92,3.91L7.83,7H13.5M6,18H8V20H6V18Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"UndoVariantIcon\",\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: 2022 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\n### Description\nSee [NcInputField](#/Components/NcFields?id=ncinputfield) for a list of all available props.\n\nGeneral purpose text field component.\nIt is recommended to not only provide a placeholder, but also a label.\nThe label should describe what input is expected and the placehold what format the input should have.\n\nNote: the inner html `input` element inherits all the attributes from the\nNcTextField component so you can add things like `autocomplete`, `maxlength`\nand `minlength`.\n\n```\n<template>\n\t<div class=\"wrapper\">\n\t\t<NcTextField v-model=\"text1\"\n\t\t\tlabel=\"Leading icon and clear trailing button\"\n\t\t\ttrailing-button-icon=\"close\"\n\t\t\t:show-trailing-button=\"text1 !== ''\"\n\t\t\t@trailing-button-click=\"clearText\">\n\t\t\t<template #icon>\n\t\t\t\t<Magnify :size=\"20\" />\n\t\t\t</template>\n\t\t</NcTextField>\n\t\t<NcTextField v-model=\"text4\"\n\t\t\tlabel=\"Internal label\"\n\t\t\tplaceholder=\"That can be used together with placeholder\"\n\t\t\ttrailing-button-icon=\"close\"\n\t\t\t:show-trailing-button=\"text4 !== ''\"\n\t\t\t@trailing-button-click=\"clearText\">\n\t\t\t<template #icon>\n\t\t\t\t<Lock :size=\"20\" />\n\t\t\t</template>\n\t\t</NcTextField>\n\t\t<NcTextField v-model=\"text2\"\n\t\t\tlabel=\"With helper text\"\n\t\t\thelper-text=\"This is an optional message to show e.g. validation errors.\"\n\t\t\t@trailing-button-click=\"clearText\">\n\t\t</NcTextField>\n\t\t<NcTextField v-model=\"text2\"\n\t\t\tlabel=\"Success state\"\n\t\t\tplaceholder=\"Placeholders are possible\"\n\t\t\t:success=\"true\"\n\t\t\t@trailing-button-click=\"clearText\">\n\t\t</NcTextField>\n\t\t<NcTextField v-model=\"text3\"\n\t\t\tlabel=\"Error state\"\n\t\t\tplaceholder=\"Enter something valid\"\n\t\t\t:error=\"true\"\n\t\t\t@trailing-button-click=\"clearText\">\n\t\t</NcTextField>\n\t\t<NcTextField :model-value=\"\"\n\t\t\tlabel=\"Disabled\"\n\t\t\t:disabled=\"true\" />\n\t\t<NcTextField :model-value=\"\"\n\t\t\tlabel=\"Disabled + Success\"\n\t\t\t:success=\"true\"\n\t\t\t:disabled=\"true\" />\n\t\t<div class=\"external-label\">\n\t\t\t<label for=\"textField\">External label</label>\n\t\t\t<NcTextField v-model=\"text5\"\n\t\t\t\tid=\"textField\"\n\t\t\t\t:label-outside=\"true\"\n\t\t\t\tplaceholder=\"Input with external label\"\n\t\t\t\t@trailing-button-click=\"clearText\" />\n\t\t</div>\n\t</div>\n</template>\n<script>\nimport Magnify from 'vue-material-design-icons/Magnify'\nimport Lock from 'vue-material-design-icons/Lock'\nimport Close from 'vue-material-design-icons/Close'\n\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\ttext1: '',\n\t\t\ttext2: '',\n\t\t\ttext3: '',\n\t\t\ttext4: '',\n\t\t\ttext5: '',\n\t\t}\n\t},\n\n\tcomponents: {\n\t\tMagnify,\n\t\tLock,\n\t\tClose,\n\t},\n\n\tmethods: {\n\t\tclearText() {\n\t\t\tthis.text1 = ''\n\t\t\tthis.text3 = ''\n\t\t}\n\t}\n}\n</script>\n<style lang=\"scss\" scoped>\n.wrapper {\n\tdisplay: flex;\n\tgap: 4px;\n\talign-items: flex-end;\n\tflex-wrap: wrap;\n}\n\n.external-label {\n\tdisplay: flex;\n\tgap: 14px;\n\twidth: 100%;\n\tmargin-top: 1rem;\n}\n\n.external-label label {\n\tpadding-top: 7px;\n\twhite-space: nowrap;\n}\n</style>\n```\n</docs>\n\n<template>\n\t<NcInputField v-bind=\"propsToForward\"\n\t\tref=\"inputField\"\n\t\t@update:model-value=\"handleInput\">\n\t\t<template v-if=\"!!$slots.icon\" #icon>\n\t\t\t<!-- @slot Leading icon -->\n\t\t\t<slot name=\"icon\" />\n\t\t</template>\n\n\t\t<!-- Trailing icon slot, except for search type input as the browser already adds a trailing close icon -->\n\t\t<template v-if=\"type !== 'search'\" #trailing-button-icon>\n\t\t\t<Close v-if=\"trailingButtonIcon === 'close'\" :size=\"20\" />\n\t\t\t<ArrowRight v-else-if=\"trailingButtonIcon === 'arrowRight'\" :size=\"20\" />\n\t\t\t<Undo v-else-if=\"trailingButtonIcon === 'undo'\" :size=\"20\" />\n\t\t</template>\n\t</NcInputField>\n</template>\n\n<script>\n\nimport NcInputField from '../NcInputField/NcInputField.vue'\n\nimport Close from 'vue-material-design-icons/Close.vue'\nimport ArrowRight from 'vue-material-design-icons/ArrowRight.vue'\nimport Undo from 'vue-material-design-icons/UndoVariant.vue'\n\nimport { t } from '../../l10n.js'\n\nconst NcInputFieldProps = new Set(Object.keys(NcInputField.props))\n\nexport default {\n\tname: 'NcTextField',\n\n\tcomponents: {\n\t\tNcInputField,\n\t\tClose,\n\t\tArrowRight,\n\t\tUndo,\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Any [NcInputField](#/Components/NcFields?id=ncinputfield) props\n\t\t */\n\t\t// Not an actual prop but needed to show in vue-styleguidist docs\n\t\t// eslint-disable-next-line\n\t\t' ': {},\n\n\t\t// Reuse all the props from NcInputField for better typing and documentation\n\t\t...NcInputField.props,\n\n\t\t/**\n\t\t * The `aria-label` to set on the trailing button\n\t\t * If no explicit value is set it will default to the one matching the `trailingButtonIcon`:\n\t\t * @default 'Clear text'|'Save changes'|'Undo changes'\n\t\t */\n\t\ttrailingButtonLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t// Custom props\n\n\t\t/**\n\t\t * Specifies which material design icon should be used for the trailing\n\t\t * button.\n\t\t * @type {'close'|'arrowRight'|'undo'}\n\t\t */\n\t\ttrailingButtonIcon: {\n\t\t\ttype: String,\n\t\t\tdefault: 'close',\n\t\t\tvalidator: (value) => [\n\t\t\t\t'close',\n\t\t\t\t'arrowRight',\n\t\t\t\t'undo',\n\t\t\t].includes(value),\n\t\t},\n\t},\n\n\temits: [\n\t\t'update:modelValue',\n\t],\n\n\tcomputed: {\n\t\tpropsToForward() {\n\t\t\tconst predefinedLabels = {\n\t\t\t\tundo: t('Undo changes'),\n\t\t\t\tclose: t('Clear text'),\n\t\t\t\tarrowRight: t('Save changes'),\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\t// Proxy original NcInputField's props\n\t\t\t\t...Object.fromEntries(\n\t\t\t\t\tObject.entries(this.$props).filter(([key]) => NcInputFieldProps.has(key)),\n\t\t\t\t),\n\t\t\t\t// Adjust aria-label for predefined trailing buttons\n\t\t\t\ttrailingButtonLabel: this.trailingButtonLabel || predefinedLabels[this.trailingButtonIcon],\n\t\t\t}\n\t\t},\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Focus the input element\n\t\t *\n\t\t * @public\n\t\t */\n\t\tfocus() {\n\t\t\tthis.$refs.inputField.focus()\n\t\t},\n\n\t\t/**\n\t\t * Select all the text in the input\n\t\t *\n\t\t * @public\n\t\t */\n\t\tselect() {\n\t\t\tthis.$refs.inputField.select()\n\t\t},\n\n\t\thandleInput(event) {\n\t\t\tthis.$emit('update:modelValue', event)\n\t\t},\n\t},\n}\n</script>\n"],"names":["_sfc_main","_createElementBlock","_mergeProps","_createElementVNode","_createCommentVNode","Close","ArrowRight","_createBlock","_createSlots","_withCtx","_renderSlot"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,228 +0,0 @@
1
- import '../assets/NcUserBubble-tSs2XTDQ.css';
2
- import { createElementBlock, openBlock, renderSlot, resolveComponent, createBlock, resolveDynamicComponent, withCtx, mergeProps, createVNode, createElementVNode, createCommentVNode, normalizeStyle, toDisplayString, warn } from "vue";
3
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
4
- import { N as NcAvatar } from "./NcAvatar-CSk-1oFe.mjs";
5
- import { N as NcPopover } from "./NcPopover-MsWUAvsI.mjs";
6
- import { RouterLink } from "vue-router";
7
- const _sfc_main$1 = {
8
- name: "NcUserBubbleDiv"
9
- };
10
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
11
- return openBlock(), createElementBlock("div", null, [
12
- renderSlot(_ctx.$slots, "trigger")
13
- ]);
14
- }
15
- const NcUserBubbleDiv = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
16
- const _sfc_main = {
17
- name: "NcUserBubble",
18
- components: {
19
- NcAvatar,
20
- NcPopover,
21
- NcUserBubbleDiv
22
- },
23
- props: {
24
- /**
25
- * Override generated avatar, can be an url or an icon class
26
- */
27
- avatarImage: {
28
- type: String,
29
- default: void 0
30
- },
31
- /**
32
- * Provide the user id if this is a user
33
- */
34
- user: {
35
- type: String,
36
- default: void 0
37
- },
38
- /**
39
- * Displayed label
40
- */
41
- displayName: {
42
- type: String,
43
- default: void 0
44
- },
45
- /**
46
- * Whether or not to display the user-status
47
- */
48
- showUserStatus: {
49
- type: Boolean,
50
- default: false
51
- },
52
- /**
53
- * Define the whole bubble as a link
54
- */
55
- url: {
56
- type: String,
57
- default: void 0,
58
- validator: (url) => {
59
- try {
60
- url = new URL(url, url?.startsWith?.("/") ? window.location.href : void 0);
61
- return !!url;
62
- } catch (error) {
63
- return false;
64
- }
65
- }
66
- },
67
- /**
68
- * Use bubble as a router-link for in-app navigation
69
- */
70
- to: {
71
- type: [String, Object],
72
- default: void 0
73
- },
74
- /**
75
- * Default popover state. Requires the UserBubble
76
- * to have some content to render inside the popover
77
- */
78
- open: {
79
- type: Boolean,
80
- default: false
81
- },
82
- /**
83
- * Use the primary colour
84
- */
85
- primary: {
86
- type: Boolean,
87
- default: false
88
- },
89
- /**
90
- * This is the height of the component
91
- */
92
- size: {
93
- type: Number,
94
- default: 20
95
- },
96
- /**
97
- * This is the margin of the avatar (size - margin = avatar size)
98
- */
99
- margin: {
100
- type: Number,
101
- default: 2
102
- }
103
- },
104
- emits: [
105
- "click",
106
- "update:open"
107
- ],
108
- computed: {
109
- /**
110
- * Is the provided avatar url valid or not
111
- *
112
- * @return {boolean}
113
- */
114
- isAvatarUrl() {
115
- if (!this.avatarImage) {
116
- return false;
117
- }
118
- try {
119
- const url = new URL(this.avatarImage);
120
- return !!url;
121
- } catch (error) {
122
- return false;
123
- }
124
- },
125
- /**
126
- * Do we have a custom avatar or not
127
- *
128
- * @return {boolean}
129
- */
130
- isCustomAvatar() {
131
- return !!this.avatarImage;
132
- },
133
- hasUrl() {
134
- return this.url && this.url.trim() !== "";
135
- },
136
- isLinkComponent() {
137
- if (this.hasUrl) {
138
- return "a";
139
- } else if (this.to) {
140
- return RouterLink;
141
- } else {
142
- return "div";
143
- }
144
- },
145
- styles() {
146
- return {
147
- content: {
148
- height: this.size + "px",
149
- lineHeight: this.size + "px",
150
- borderRadius: this.size / 2 + "px"
151
- },
152
- avatar: {
153
- marginInlineStart: this.margin + "px"
154
- }
155
- };
156
- }
157
- },
158
- mounted() {
159
- if (!this.displayName && !this.user) {
160
- warn("[NcUserBubble] At least `displayName` or `user` property should be set.");
161
- }
162
- },
163
- methods: {
164
- onOpenChange(state) {
165
- this.$emit("update:open", state);
166
- },
167
- /**
168
- * Catch and forward click event to parent
169
- *
170
- * @param {Event} event the click event
171
- */
172
- onClick(event) {
173
- this.$emit("click", event);
174
- }
175
- }
176
- };
177
- const _hoisted_1 = { class: "user-bubble__name" };
178
- const _hoisted_2 = {
179
- key: 0,
180
- class: "user-bubble__secondary"
181
- };
182
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
183
- const _component_NcAvatar = resolveComponent("NcAvatar");
184
- return openBlock(), createBlock(resolveDynamicComponent(!!_ctx.$slots.default ? "NcPopover" : "NcUserBubbleDiv"), {
185
- trigger: "hover focus",
186
- shown: $props.open,
187
- class: "user-bubble__wrapper",
188
- "onUpdate:open": $options.onOpenChange
189
- }, {
190
- trigger: withCtx(({ attrs }) => [
191
- (openBlock(), createBlock(resolveDynamicComponent($options.isLinkComponent), mergeProps({
192
- class: ["user-bubble__content", { "user-bubble__content--primary": $props.primary }],
193
- style: $options.styles.content,
194
- to: $props.to,
195
- href: $options.hasUrl ? $props.url : null
196
- }, attrs, { onClick: $options.onClick }), {
197
- default: withCtx(() => [
198
- createVNode(_component_NcAvatar, {
199
- url: $options.isCustomAvatar && $options.isAvatarUrl ? $props.avatarImage : void 0,
200
- "icon-class": $options.isCustomAvatar && !$options.isAvatarUrl ? $props.avatarImage : void 0,
201
- user: $props.user,
202
- "display-name": $props.displayName,
203
- size: $props.size - $props.margin * 2,
204
- style: normalizeStyle($options.styles.avatar),
205
- "disable-tooltip": true,
206
- "disable-menu": true,
207
- "show-user-status": $props.showUserStatus,
208
- class: "user-bubble__avatar"
209
- }, null, 8, ["url", "icon-class", "user", "display-name", "size", "style", "show-user-status"]),
210
- createElementVNode("span", _hoisted_1, toDisplayString($props.displayName || $props.user), 1),
211
- !!_ctx.$slots.name ? (openBlock(), createElementBlock("span", _hoisted_2, [
212
- renderSlot(_ctx.$slots, "name", {}, void 0, true)
213
- ])) : createCommentVNode("", true)
214
- ]),
215
- _: 2
216
- }, 1040, ["style", "to", "href", "class", "onClick"]))
217
- ]),
218
- default: withCtx(() => [
219
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
220
- ]),
221
- _: 3
222
- }, 40, ["shown", "onUpdate:open"]);
223
- }
224
- const NcUserBubble = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-6e4010a7"]]);
225
- export {
226
- NcUserBubble as N
227
- };
228
- //# sourceMappingURL=NcUserBubble-Csot0WLv.mjs.map