@nextcloud/vue 9.0.0-rc.1 → 9.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -11
- package/dist/assets/{NcActionButton-DfdRrSEu.css → NcActionButton-B2G7zsju.css} +25 -17
- package/dist/assets/{NcActionInput-BNWL2Q-3.css → NcActionInput-SoC93uat.css} +62 -62
- package/dist/assets/{NcActionLink-C9_ycPLF.css → NcActionLink-VngQl-C2.css} +21 -13
- package/dist/assets/{NcActionRouter-CVsc7Ezc.css → NcActionRouter-CBVOuCQ3.css} +9 -1
- package/dist/assets/{NcActionText-C7y7Pe6P.css → NcActionText-CWAPsJmz.css} +9 -1
- package/dist/assets/{NcActionTextEditable-OBnWSj_T.css → NcActionTextEditable-BbOijUsB.css} +60 -60
- package/dist/assets/{NcActions-D7gPHaUE.css → NcActions-DxcpMfrs.css} +11 -11
- package/dist/assets/{NcAppContent-CvTesBem.css → NcAppContent-Di-SbMxO.css} +23 -23
- package/dist/assets/{NcAppSidebar-DejDBLy4.css → NcAppSidebar-exl90fRm.css} +56 -59
- package/dist/assets/{NcAvatar-UxFZ39EC.css → NcAvatar-B3wk2Xxl.css} +24 -24
- package/dist/assets/{NcChip-C-0jMpNk.css → NcChip-VsVAGaG6.css} +9 -9
- package/dist/assets/{NcContent-aXaYSfjS.css → NcContent-cRwic6r5.css} +9 -9
- package/dist/assets/{NcCounterBubble-DWgyYB0d.css → NcCounterBubble-DpKQwKTI.css} +7 -7
- package/dist/assets/{NcDateTimePickerNative-CdHLvH4A.css → NcDateTimePickerNative-CeuS8Oeg.css} +13 -13
- package/dist/assets/{NcEmptyContent-BqnUPzZQ.css → NcEmptyContent-q-geAf0w.css} +12 -9
- package/dist/assets/{NcGuestContent-C9lbC3vg.css → NcGuestContent-BZ26iXQi.css} +2 -2
- package/dist/assets/{NcIconSvgWrapper-BO9Dme5J.css → NcIconSvgWrapper-cYxhjYue.css} +10 -10
- package/dist/assets/{NcListItem-D6F_oFLK.css → NcListItem-9eCenovm.css} +44 -44
- package/dist/assets/{NcListItemIcon-Bnr-Z-SO.css → NcListItemIcon-DjEDwxRp.css} +13 -13
- package/dist/assets/{NcMentionBubble-CB5c5ue2.css → NcMentionBubble-DLOTFwpl.css} +9 -9
- package/dist/assets/{index-CjPwAJ46.css → NcModal-DaHROv08.css} +61 -61
- package/dist/assets/{NcRichContenteditable-CkyUKlIz.css → NcRichContenteditable-KsmFPJmm.css} +21 -21
- package/dist/assets/{NcRichText-BbVi69cc.css → NcRichText-GnQKcHYO.css} +84 -84
- package/dist/assets/NcSelectUsers-2-PyuY9Z.css +4 -0
- package/dist/assets/{NcUserStatusIcon-Du-BEPk_.css → NcUserStatusIcon-CtJLt6AU.css} +3 -3
- package/dist/chunks/{ArrowRight-DQT24Cb-.mjs → ArrowRight-DRKHUZMH.mjs} +3 -3
- package/dist/chunks/{ArrowRight-DQT24Cb-.mjs.map → ArrowRight-DRKHUZMH.mjs.map} +1 -1
- package/dist/chunks/{NcActionButton-BZEDhdCm.mjs → NcActionButton-CnX0dQzz.mjs} +44 -95
- package/dist/chunks/NcActionButton-CnX0dQzz.mjs.map +1 -0
- package/dist/chunks/{NcActionButtonGroup-VJlvSBVZ.mjs → NcActionButtonGroup-3Da8b3EI.mjs} +2 -2
- package/dist/chunks/{NcActionButtonGroup-VJlvSBVZ.mjs.map → NcActionButtonGroup-3Da8b3EI.mjs.map} +1 -1
- package/dist/chunks/{NcActionInput-D1R71Reh.mjs → NcActionInput-DeFy255L.mjs} +11 -18
- package/dist/chunks/NcActionInput-DeFy255L.mjs.map +1 -0
- package/dist/chunks/{NcActionLink-BTIApspK.mjs → NcActionLink-BEo7zmXX.mjs} +4 -13
- package/dist/chunks/{NcActionLink-BTIApspK.mjs.map → NcActionLink-BEo7zmXX.mjs.map} +1 -1
- package/dist/chunks/{NcActionRouter-DATNpU_e.mjs → NcActionRouter-ERoQjJKv.mjs} +3 -3
- package/dist/chunks/{NcActionRouter-DATNpU_e.mjs.map → NcActionRouter-ERoQjJKv.mjs.map} +1 -1
- package/dist/chunks/{NcActionText-3mJjsJz_.mjs → NcActionText-DJWBefhJ.mjs} +3 -3
- package/dist/chunks/{NcActionText-3mJjsJz_.mjs.map → NcActionText-DJWBefhJ.mjs.map} +1 -1
- package/dist/chunks/{NcActionTextEditable-Dv1_bMFY.mjs → NcActionTextEditable-B7nemAOJ.mjs} +14 -20
- package/dist/chunks/NcActionTextEditable-B7nemAOJ.mjs.map +1 -0
- package/dist/chunks/{NcActions-2UedVnLW.mjs → NcActions-DS88I6qk.mjs} +22 -20
- package/dist/chunks/NcActions-DS88I6qk.mjs.map +1 -0
- package/dist/chunks/{NcAppContent-Bdlo1JwI.mjs → NcAppContent-DRhM7Gyz.mjs} +38 -66
- package/dist/chunks/NcAppContent-DRhM7Gyz.mjs.map +1 -0
- package/dist/chunks/NcAppContentDetails.vue_vue_type_script_setup_true_lang-Dnf4r_Ng.mjs +16 -0
- package/dist/chunks/NcAppContentDetails.vue_vue_type_script_setup_true_lang-Dnf4r_Ng.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigation-BHLzIgKf.mjs → NcAppNavigation-BVXVi9JQ.mjs} +2 -2
- package/dist/chunks/{NcAppNavigation-BHLzIgKf.mjs.map → NcAppNavigation-BVXVi9JQ.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-D1_4GAVS.mjs → NcAppNavigationCaption-DkiIEk6r.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationCaption-D1_4GAVS.mjs.map → NcAppNavigationCaption-DkiIEk6r.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-Cxzp2qW7.mjs → NcAppNavigationItem-s3GC1n4o.mjs} +5 -5
- package/dist/chunks/{NcAppNavigationItem-Cxzp2qW7.mjs.map → NcAppNavigationItem-s3GC1n4o.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-BNFUFCCJ.mjs → NcAppNavigationNewItem-D1GWsi8R.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationNewItem-BNFUFCCJ.mjs.map → NcAppNavigationNewItem-D1GWsi8R.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-B7w1J5K3.mjs → NcAppNavigationSearch-Cy0s4XWp.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationSearch-B7w1J5K3.mjs.map → NcAppNavigationSearch-Cy0s4XWp.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-aTOqq_-d.mjs → NcAppNavigationSettings-GeCb9tlR.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationSettings-aTOqq_-d.mjs.map → NcAppNavigationSettings-GeCb9tlR.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-CSD4yx6Z.mjs → NcAppNavigationToggle-CFw3W3_o.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationToggle-CSD4yx6Z.mjs.map → NcAppNavigationToggle-CFw3W3_o.mjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-DJhRLDT2.mjs → NcAppSettingsDialog-CBLZvdnK.mjs} +3 -3
- package/dist/chunks/{NcAppSettingsDialog-DJhRLDT2.mjs.map → NcAppSettingsDialog-CBLZvdnK.mjs.map} +1 -1
- package/dist/chunks/{NcAppSidebar-Dnb5U9gv.mjs → NcAppSidebar-BomlW59S.mjs} +9 -9
- package/dist/chunks/{NcAppSidebar-Dnb5U9gv.mjs.map → NcAppSidebar-BomlW59S.mjs.map} +1 -1
- package/dist/chunks/{NcAvatar-Cg9PDzho.mjs → NcAvatar-CSk-1oFe.mjs} +13 -13
- package/dist/chunks/{NcAvatar-Cg9PDzho.mjs.map → NcAvatar-CSk-1oFe.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-DpW0HXlg.mjs → NcBreadcrumb-Bvsnecwa.mjs} +46 -4
- package/dist/chunks/NcBreadcrumb-Bvsnecwa.mjs.map +1 -0
- package/dist/chunks/{NcBreadcrumbs-CbQjZLpZ.mjs → NcBreadcrumbs-DWU2ZRkM.mjs} +6 -6
- package/dist/chunks/{NcBreadcrumbs-CbQjZLpZ.mjs.map → NcBreadcrumbs-DWU2ZRkM.mjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-BmzUQ-WN.mjs → NcCheckboxRadioSwitch-Ca1ouh22.mjs} +2 -2
- package/dist/chunks/{NcCheckboxRadioSwitch-BmzUQ-WN.mjs.map → NcCheckboxRadioSwitch-Ca1ouh22.mjs.map} +1 -1
- package/dist/chunks/{NcChip-BQRPT42V.mjs → NcChip-Cl6RfDoK.mjs} +11 -9
- package/dist/chunks/NcChip-Cl6RfDoK.mjs.map +1 -0
- package/dist/chunks/{NcCollectionList-CUlNTcYX.mjs → NcCollectionList-CxzQkCFq.mjs} +6 -6
- package/dist/chunks/{NcCollectionList-CUlNTcYX.mjs.map → NcCollectionList-CxzQkCFq.mjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-DGwM1Zki.mjs → NcColorPicker-BjsBCkEt.mjs} +4 -4
- package/dist/chunks/{NcColorPicker-DGwM1Zki.mjs.map → NcColorPicker-BjsBCkEt.mjs.map} +1 -1
- package/dist/chunks/{NcContent-BhN8SiS1.mjs → NcContent-DtM8j8ub.mjs} +5 -5
- package/dist/chunks/{NcContent-BhN8SiS1.mjs.map → NcContent-DtM8j8ub.mjs.map} +1 -1
- package/dist/chunks/NcCounterBubble-PBdqn9Nf.mjs +52 -0
- package/dist/chunks/NcCounterBubble-PBdqn9Nf.mjs.map +1 -0
- package/dist/chunks/{NcDashboardWidget-CC2pZ6GI.mjs → NcDashboardWidget-uBobynyZ.mjs} +5 -5
- package/dist/chunks/{NcDashboardWidget-CC2pZ6GI.mjs.map → NcDashboardWidget-uBobynyZ.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-BsHwLKh3.mjs → NcDashboardWidgetItem-DnI9uLf1.mjs} +4 -4
- package/dist/chunks/{NcDashboardWidgetItem-BsHwLKh3.mjs.map → NcDashboardWidgetItem-DnI9uLf1.mjs.map} +1 -1
- package/dist/chunks/{NcDateTime.vue_vue_type_script_setup_true_lang-CKX0mNnP.mjs → NcDateTime.vue_vue_type_script_setup_true_lang-BD-rj6Dr.mjs} +2 -2
- package/dist/chunks/{NcDateTime.vue_vue_type_script_setup_true_lang-CKX0mNnP.mjs.map → NcDateTime.vue_vue_type_script_setup_true_lang-BD-rj6Dr.mjs.map} +1 -1
- package/dist/chunks/{NcDateTimePicker-BM9F_PSI.mjs → NcDateTimePicker-DYNOGc6A.mjs} +5 -5
- package/dist/chunks/{NcDateTimePicker-BM9F_PSI.mjs.map → NcDateTimePicker-DYNOGc6A.mjs.map} +1 -1
- package/dist/chunks/{NcDateTimePickerNative-DoGQFKev.mjs → NcDateTimePickerNative-D0pjWawX.mjs} +5 -6
- package/dist/chunks/NcDateTimePickerNative-D0pjWawX.mjs.map +1 -0
- package/dist/chunks/{NcDialog-CbXsHgYI.mjs → NcDialog-BQNR_-Ju.mjs} +3 -3
- package/dist/chunks/{NcDialog-CbXsHgYI.mjs.map → NcDialog-BQNR_-Ju.mjs.map} +1 -1
- package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-DR0Yn-dH.mjs → NcDialogButton.vue_vue_type_script_setup_true_lang-DAZ2Budh.mjs} +3 -3
- package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-DR0Yn-dH.mjs.map → NcDialogButton.vue_vue_type_script_setup_true_lang-DAZ2Budh.mjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-B0y1ZY5N.mjs → NcEmojiPicker-lhuMMbDy.mjs} +6 -6
- package/dist/chunks/{NcEmojiPicker-B0y1ZY5N.mjs.map → NcEmojiPicker-lhuMMbDy.mjs.map} +1 -1
- package/dist/chunks/{NcEmptyContent-CBWBkBL8.mjs → NcEmptyContent-BdOezubv.mjs} +3 -3
- package/dist/chunks/NcEmptyContent-BdOezubv.mjs.map +1 -0
- package/dist/chunks/NcGuestContent-B_S2nyJ4.mjs +25 -0
- package/dist/chunks/NcGuestContent-B_S2nyJ4.mjs.map +1 -0
- package/dist/chunks/{NcHeaderMenu-D-WDQIHd.mjs → NcHeaderMenu-o9FmNBI5.mjs} +2 -2
- package/dist/chunks/{NcHeaderMenu-D-WDQIHd.mjs.map → NcHeaderMenu-o9FmNBI5.mjs.map} +1 -1
- package/dist/chunks/NcIconSvgWrapper-BOiCKv0b.mjs +68 -0
- package/dist/chunks/NcIconSvgWrapper-BOiCKv0b.mjs.map +1 -0
- package/dist/chunks/{NcInputConfirmCancel-CUJM5y0h.mjs → NcInputConfirmCancel-C1K1gyQA.mjs} +4 -4
- package/dist/chunks/{NcInputConfirmCancel-CUJM5y0h.mjs.map → NcInputConfirmCancel-C1K1gyQA.mjs.map} +1 -1
- package/dist/chunks/{NcListItem-Bx_uxyFR.mjs → NcListItem-C2LlJgjL.mjs} +5 -5
- package/dist/chunks/{NcListItem-Bx_uxyFR.mjs.map → NcListItem-C2LlJgjL.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-CytWJM69.mjs → NcListItemIcon-5ms0eK3w.mjs} +6 -6
- package/dist/chunks/{NcListItemIcon-CytWJM69.mjs.map → NcListItemIcon-5ms0eK3w.mjs.map} +1 -1
- package/dist/chunks/{NcMentionBubble.vue_vue_type_style_index_0_scoped_5b8f093f_lang-DZbkIMTW.mjs → NcMentionBubble.vue_vue_type_style_index_0_scoped_c29760cd_lang-CZdrlInz.mjs} +2 -2
- package/dist/chunks/{NcMentionBubble.vue_vue_type_style_index_0_scoped_5b8f093f_lang-DZbkIMTW.mjs.map → NcMentionBubble.vue_vue_type_style_index_0_scoped_c29760cd_lang-CZdrlInz.mjs.map} +1 -1
- package/dist/chunks/NcModal-BisVxXe_.mjs +780 -0
- package/dist/chunks/NcModal-BisVxXe_.mjs.map +1 -0
- package/dist/chunks/{NcPasswordField-Cac3cpVY.mjs → NcPasswordField-hZiEd3tC.mjs} +2 -2
- package/dist/chunks/{NcPasswordField-Cac3cpVY.mjs.map → NcPasswordField-hZiEd3tC.mjs.map} +1 -1
- package/dist/chunks/{NcPopover-CzrFCS-2.mjs → NcPopover-MsWUAvsI.mjs} +10 -5
- package/dist/chunks/NcPopover-MsWUAvsI.mjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-BBKk-jjB.mjs → NcRelatedResourcesPanel-CShyi9lg.mjs} +3 -3
- package/dist/chunks/{NcRelatedResourcesPanel-BBKk-jjB.mjs.map → NcRelatedResourcesPanel-CShyi9lg.mjs.map} +1 -1
- package/dist/chunks/{NcRichContenteditable-gt56b0Uw.mjs → NcRichContenteditable-DgH9H1qf.mjs} +22 -42
- package/dist/chunks/NcRichContenteditable-DgH9H1qf.mjs.map +1 -0
- package/dist/chunks/{NcRichText-CMRNgGQw.mjs → NcRichText-BkKK1moX.mjs} +8 -6
- package/dist/chunks/{NcRichText-CMRNgGQw.mjs.map → NcRichText-BkKK1moX.mjs.map} +1 -1
- package/dist/chunks/{NcSelect-DFMnY4fI.mjs → NcSelect-BSa2kSPW.mjs} +2 -4
- package/dist/chunks/NcSelect-BSa2kSPW.mjs.map +1 -0
- package/dist/chunks/{NcSelectTags-BpFmhbdp.mjs → NcSelectTags-BW0QroJV.mjs} +3 -3
- package/dist/chunks/{NcSelectTags-BpFmhbdp.mjs.map → NcSelectTags-BW0QroJV.mjs.map} +1 -1
- package/dist/chunks/NcSelectUsers-Bhx9k-0v.mjs +76 -0
- package/dist/chunks/NcSelectUsers-Bhx9k-0v.mjs.map +1 -0
- package/dist/chunks/{NcSettingsInputText-CMBC7DaG.mjs → NcSettingsInputText-CrOqaL-x.mjs} +2 -2
- package/dist/chunks/{NcSettingsInputText-CMBC7DaG.mjs.map → NcSettingsInputText-CrOqaL-x.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-Crla6NXM.mjs → NcSettingsSection-D6ShpfeY.mjs} +2 -2
- package/dist/chunks/{NcSettingsSection-Crla6NXM.mjs.map → NcSettingsSection-D6ShpfeY.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-BOv1UgHX.mjs → NcSettingsSelectGroup-DpNxkoZ2.mjs} +3 -3
- package/dist/chunks/{NcSettingsSelectGroup-BOv1UgHX.mjs.map → NcSettingsSelectGroup-DpNxkoZ2.mjs.map} +1 -1
- package/dist/chunks/{NcTextField-Dzv_qpmt.mjs → NcTextField-DJ1KtSKd.mjs} +4 -4
- package/dist/chunks/{NcTextField-Dzv_qpmt.mjs.map → NcTextField-DJ1KtSKd.mjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-BK7HxZja.mjs → NcTimezonePicker.vue_vue_type_script_setup_true_lang-T3gPr-FV.mjs} +3 -3
- package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-BK7HxZja.mjs.map → NcTimezonePicker.vue_vue_type_script_setup_true_lang-T3gPr-FV.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-CnsRuBNe.mjs → NcUserBubble-Csot0WLv.mjs} +3 -3
- package/dist/chunks/{NcUserBubble-CnsRuBNe.mjs.map → NcUserBubble-Csot0WLv.mjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-M_93a-z6.mjs → NcUserStatusIcon-CtOZd90o.mjs} +54 -103
- package/dist/chunks/NcUserStatusIcon-CtOZd90o.mjs.map +1 -0
- package/dist/chunks/{_l10n-dinIMiE_.mjs → _l10n-Bg-fZ9R0.mjs} +22 -26
- package/dist/chunks/_l10n-Bg-fZ9R0.mjs.map +1 -0
- package/dist/chunks/{actionText-BiV1_BZX.mjs → actionText-DdSwf9le.mjs} +7 -10
- package/dist/chunks/actionText-DdSwf9le.mjs.map +1 -0
- package/dist/chunks/{colors-AMTxjrbV.mjs → colors-BPGhD2C5.mjs} +2 -2
- package/dist/chunks/{colors-AMTxjrbV.mjs.map → colors-BPGhD2C5.mjs.map} +1 -1
- package/dist/chunks/{mdi-zYpVOORa.mjs → mdi-CR-3gwdl.mjs} +12 -8
- package/dist/chunks/{mdi-zYpVOORa.mjs.map → mdi-CR-3gwdl.mjs.map} +1 -1
- package/dist/chunks/{referencePickerModal-CMgdGDsm.mjs → referencePickerModal-Dw1szWUR.mjs} +6 -6
- package/dist/chunks/{referencePickerModal-CMgdGDsm.mjs.map → referencePickerModal-Dw1szWUR.mjs.map} +1 -1
- package/dist/chunks/{useFormatDateTime-lk3QDXbQ.mjs → useFormatDateTime-L411ysPm.mjs} +2 -2
- package/dist/chunks/{useFormatDateTime-lk3QDXbQ.mjs.map → useFormatDateTime-L411ysPm.mjs.map} +1 -1
- package/dist/chunks/{usernameToColor-CmB20TBI.mjs → usernameToColor-CuTR6O_B.mjs} +2 -2
- package/dist/chunks/{usernameToColor-CmB20TBI.mjs.map → usernameToColor-CuTR6O_B.mjs.map} +1 -1
- package/dist/components/NcActionButton/NcActionButton.vue.d.ts +38 -27
- package/dist/components/NcActionButton/index.mjs +1 -1
- package/dist/components/NcActionButtonGroup/index.mjs +1 -1
- package/dist/components/NcActionInput/index.mjs +1 -1
- package/dist/components/NcActionLink/index.mjs +1 -1
- package/dist/components/NcActionRouter/NcActionRouter.vue.d.ts +1 -4
- package/dist/components/NcActionRouter/index.mjs +1 -1
- package/dist/components/NcActionText/NcActionText.vue.d.ts +1 -4
- package/dist/components/NcActionText/index.mjs +1 -1
- package/dist/components/NcActionTextEditable/NcActionTextEditable.vue.d.ts +22 -7
- package/dist/components/NcActionTextEditable/index.mjs +1 -1
- package/dist/components/NcActions/index.mjs +1 -1
- package/dist/components/NcAppContent/NcAppContent.vue.d.ts +225 -0
- package/dist/components/NcAppContent/NcAppDetailsToggle.vue.d.ts +2 -0
- package/dist/components/NcAppContent/index.mjs +1 -1
- package/dist/components/NcAppContentDetails/NcAppContentDetails.vue.d.ts +27 -1
- package/dist/components/NcAppContentDetails/index.d.ts +4 -0
- package/dist/components/NcAppContentDetails/index.mjs +2 -2
- package/dist/components/NcAppNavigation/index.mjs +1 -1
- package/dist/components/NcAppNavigationCaption/index.mjs +1 -1
- package/dist/components/NcAppNavigationItem/index.mjs +1 -1
- package/dist/components/NcAppNavigationNewItem/index.mjs +1 -1
- package/dist/components/NcAppNavigationSearch/index.mjs +1 -1
- package/dist/components/NcAppNavigationSettings/index.mjs +1 -1
- package/dist/components/NcAppNavigationToggle/index.mjs +1 -1
- package/dist/components/NcAppSettingsDialog/index.mjs +1 -1
- package/dist/components/NcAppSidebar/index.mjs +1 -1
- package/dist/components/NcAvatar/index.mjs +1 -1
- package/dist/components/NcBreadcrumb/index.mjs +1 -1
- package/dist/components/NcBreadcrumbs/index.mjs +1 -1
- package/dist/components/NcCheckboxRadioSwitch/index.mjs +1 -1
- package/dist/components/NcChip/NcChip.vue.d.ts +5 -0
- package/dist/components/NcChip/index.mjs +1 -1
- package/dist/components/NcCollectionList/index.mjs +1 -1
- package/dist/components/NcColorPicker/index.mjs +1 -1
- package/dist/components/NcContent/index.mjs +1 -1
- package/dist/components/NcCounterBubble/NcCounterBubble.vue.d.ts +10 -60
- package/dist/components/NcCounterBubble/index.d.ts +4 -0
- package/dist/components/NcCounterBubble/index.mjs +1 -1
- package/dist/components/NcDashboardWidget/index.mjs +1 -1
- package/dist/components/NcDashboardWidgetItem/index.mjs +1 -1
- package/dist/components/NcDateTime/index.mjs +1 -1
- package/dist/components/NcDateTimePicker/index.mjs +1 -1
- package/dist/components/NcDateTimePickerNative/NcDateTimePickerNative.vue.d.ts +178 -1
- package/dist/components/NcDateTimePickerNative/index.mjs +1 -1
- package/dist/components/NcDialog/index.mjs +1 -1
- package/dist/components/NcDialogButton/index.mjs +1 -1
- package/dist/components/NcEmojiPicker/index.mjs +1 -1
- package/dist/components/NcEmptyContent/index.mjs +1 -1
- package/dist/components/NcGuestContent/NcGuestContent.vue.d.ts +19 -1
- package/dist/components/NcGuestContent/index.d.ts +4 -0
- package/dist/components/NcGuestContent/index.mjs +1 -1
- package/dist/components/NcHeaderMenu/index.mjs +1 -1
- package/dist/components/NcIconSvgWrapper/NcIconSvgWrapper.vue.d.ts +11 -86
- package/dist/components/NcIconSvgWrapper/index.d.ts +4 -0
- package/dist/components/NcIconSvgWrapper/index.mjs +1 -1
- package/dist/components/NcListItem/index.mjs +1 -1
- package/dist/components/NcListItemIcon/index.mjs +1 -1
- package/dist/components/NcModal/index.d.ts +1 -2
- package/dist/components/NcModal/index.mjs +2 -779
- package/dist/components/NcModal/index.mjs.map +1 -1
- package/dist/components/NcPasswordField/index.mjs +1 -1
- package/dist/components/NcPopover/index.mjs +1 -1
- package/dist/components/NcRelatedResourcesPanel/index.mjs +1 -1
- package/dist/components/NcRichContenteditable/NcAutoCompleteResult.vue.d.ts +18 -19
- package/dist/components/NcRichContenteditable/NcMentionBubble.vue.d.ts +0 -18
- package/dist/components/NcRichContenteditable/index.mjs +1 -1
- package/dist/components/NcRichText/index.mjs +3 -3
- package/dist/components/NcSelect/index.mjs +1 -1
- package/dist/components/NcSelectTags/index.mjs +1 -1
- package/dist/components/NcSelectUsers/NcSelectUsers.vue.d.ts +3 -3
- package/dist/components/NcSelectUsers/index.mjs +2 -70
- package/dist/components/NcSelectUsers/index.mjs.map +1 -1
- package/dist/components/NcSettingsInputText/index.mjs +1 -1
- package/dist/components/NcSettingsSection/index.mjs +1 -1
- package/dist/components/NcSettingsSelectGroup/index.mjs +1 -1
- package/dist/components/NcTextField/index.mjs +1 -1
- package/dist/components/NcTimezonePicker/index.mjs +1 -1
- package/dist/components/NcUserBubble/index.mjs +1 -1
- package/dist/components/NcUserStatusIcon/NcUserStatusIcon.vue.d.ts +21 -1
- package/dist/components/NcUserStatusIcon/index.d.ts +4 -0
- package/dist/components/NcUserStatusIcon/index.mjs +1 -1
- package/dist/components/index.d.ts +8 -7
- package/dist/functions/reference/index.mjs +1 -1
- package/dist/functions/usernameToColor/index.mjs +1 -1
- package/dist/index.mjs +140 -138
- package/dist/index.mjs.map +1 -1
- package/dist/mixins/actionText.d.ts +1 -6
- package/package.json +4 -5
- package/dist/assets/index-D9L0rgJk.css +0 -4
- package/dist/chunks/ChevronRight-LvtA5_hq.mjs +0 -49
- package/dist/chunks/ChevronRight-LvtA5_hq.mjs.map +0 -1
- package/dist/chunks/NcActionButton-BZEDhdCm.mjs.map +0 -1
- package/dist/chunks/NcActionInput-D1R71Reh.mjs.map +0 -1
- package/dist/chunks/NcActionTextEditable-Dv1_bMFY.mjs.map +0 -1
- package/dist/chunks/NcActions-2UedVnLW.mjs.map +0 -1
- package/dist/chunks/NcAppContent-Bdlo1JwI.mjs.map +0 -1
- package/dist/chunks/NcAppContentDetails-DsEEBJ0U.mjs +0 -16
- package/dist/chunks/NcAppContentDetails-DsEEBJ0U.mjs.map +0 -1
- package/dist/chunks/NcBreadcrumb-DpW0HXlg.mjs.map +0 -1
- package/dist/chunks/NcChip-BQRPT42V.mjs.map +0 -1
- package/dist/chunks/NcCounterBubble-6B_JNUUS.mjs +0 -78
- package/dist/chunks/NcCounterBubble-6B_JNUUS.mjs.map +0 -1
- package/dist/chunks/NcDateTimePickerNative-DoGQFKev.mjs.map +0 -1
- package/dist/chunks/NcEmptyContent-CBWBkBL8.mjs.map +0 -1
- package/dist/chunks/NcGuestContent-iQpV7mLC.mjs +0 -23
- package/dist/chunks/NcGuestContent-iQpV7mLC.mjs.map +0 -1
- package/dist/chunks/NcIconSvgWrapper-DZBRQNfG.mjs +0 -120
- package/dist/chunks/NcIconSvgWrapper-DZBRQNfG.mjs.map +0 -1
- package/dist/chunks/NcPopover-CzrFCS-2.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-gt56b0Uw.mjs.map +0 -1
- package/dist/chunks/NcSelect-DFMnY4fI.mjs.map +0 -1
- package/dist/chunks/NcUserStatusIcon-M_93a-z6.mjs.map +0 -1
- package/dist/chunks/ScopeComponent-Cr_cohWX.mjs +0 -15
- package/dist/chunks/ScopeComponent-Cr_cohWX.mjs.map +0 -1
- package/dist/chunks/_l10n-dinIMiE_.mjs.map +0 -1
- package/dist/chunks/actionText-BiV1_BZX.mjs.map +0 -1
- package/dist/utils/ScopeComponent.d.ts +0 -6
package/dist/chunks/{NcActionButtonGroup-VJlvSBVZ.mjs.map → NcActionButtonGroup-3Da8b3EI.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NcActionButtonGroup-
|
|
1
|
+
{"version":3,"file":"NcActionButtonGroup-3Da8b3EI.mjs","sources":["../../src/components/NcActionButtonGroup/NcActionButtonGroup.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots,\nto group buttons as one visual action, like for text alignment.\nThis should be used sparingly for accessibility.\n\n```vue\n<template>\n\t<div style=\"display: flex; align-items: center;\">\n\t\t<NcActions>\n\t\t\t<NcActionButtonGroup name=\"Text alignment\">\n\t\t\t\t<NcActionButton aria-label=\"Align left\"\n\t\t\t\t\tv-model=\"alignment\"\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tvalue=\"l\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<AlignLeft :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcActionButton>\n\t\t\t\t<NcActionButton aria-label=\"Align center\"\n\t\t\t\t\tv-model=\"alignment\"\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tvalue=\"c\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<AlignCenter :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcActionButton>\n\t\t\t\t<NcActionButton aria-label=\"Align right\"\n\t\t\t\t\tv-model=\"alignment\"\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tvalue=\"r\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<AlignRight :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcActionButton>\n\t\t\t</NcActionButtonGroup>\n\t\t\t<NcActionButton :close-after-click=\"true\"\n\t\t\t\t@click=\"showMessage('Some other action')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tSome other action\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</div>\n</template>\n<script>\nimport AlignLeft from 'vue-material-design-icons/AlignHorizontalLeft'\nimport AlignRight from 'vue-material-design-icons/AlignHorizontalRight'\nimport AlignCenter from 'vue-material-design-icons/AlignHorizontalCenter'\nimport Plus from 'vue-material-design-icons/Plus'\n\nexport default {\n\tcomponents: {\n\t\tAlignLeft,\n\t\tAlignRight,\n\t\tAlignCenter,\n\t\tPlus,\n\t},\n\tdata() {\n\t\treturn { alignment: 'l' }\n\t},\n\tmethods: {\n\t\tshowMessage(msg) {\n\t\t\talert(msg)\n\t\t},\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"nc-button-group-base\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<div v-if=\"name\" :id=\"labelId\">\n\t\t\t{{ name }}\n\t\t</div>\n\t\t<ul class=\"nc-button-group-content\" role=\"group\" :aria-labelledby=\"name ? labelId : undefined\">\n\t\t\t<slot />\n\t\t</ul>\n\t</li>\n</template>\n\n<script>\nimport { defineComponent } from 'vue'\nimport { createElementId } from '../../utils/createElementId.ts'\nimport { t } from '../../l10n.js'\nimport { NC_ACTIONS_IS_SEMANTIC_MENU } from '../NcActions/useNcActions.ts'\n\n/**\n * A wrapper for allowing inlining NcAction components within the action menu\n */\nexport default defineComponent({\n\tname: 'NcActionButtonGroup',\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: NC_ACTIONS_IS_SEMANTIC_MENU,\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Optional text shown below the button group\n\t\t */\n\t\tname: {\n\t\t\trequired: false,\n\t\t\tdefault: undefined,\n\t\t\ttype: String,\n\t\t},\n\t},\n\n\tsetup() {\n\t\treturn {\n\t\t\tlabelId: createElementId(),\n\t\t}\n\t},\n\n\tmethods: {\n\t\tt,\n\t},\n})\n</script>\n\n<style lang=\"scss\">\n.nc-button-group-base {\n\t>div {\n\t\ttext-align: center;\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n\n\tul.nc-button-group-content {\n\t\tdisplay: flex;\n\t\tgap: 4px; // required for the focus-visible outline\n\t\tjustify-content: space-between;\n\t\tli {\n\t\t\tflex: 1 1;\n\t\t}\n\n\t\t.action-button {\n\t\t\t// Fix action buttons beeing shifted to the left (right padding)\n\t\t\tpadding: 0 !important;\n\t\t\twidth: 100%;\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: center;\n\n\t\t\t&.action-button--active {\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-radius: var(--border-radius-large);\n\t\t\t\tcolor: var(--color-primary-element-text);\n\n\t\t\t\t&:hover, &:focus, &:focus-within {\n\t\t\t\t\tbackground-color: var(--color-primary-element-hover);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.action-button__pressed-icon {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n</style>\n"],"names":["_createElementBlock","_toDisplayString","_createCommentVNode","_createElementVNode","_renderSlot"],"mappings":";;;;;;AAgGA,MAAK,YAAa,gBAAa;AAAA,EAC9B,MAAM;AAAA,EAEN,QAAQ;AAAA,IACP,kBAAkB;AAAA,MACjB,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,EACD;AAAA,EAED,OAAO;AAAA;AAAA;AAAA;AAAA,IAIN,MAAM;AAAA,MACL,UAAU;AAAA,MACV,SAAS;AAAA,MACT,MAAM;AAAA,IACN;AAAA,EACD;AAAA,EAED,QAAQ;AACP,WAAO;AAAA,MACN,SAAS,gBAAiB;AAAA,IAC3B;AAAA,EACA;AAAA,EAED,SAAS;AAAA,IACR;AAAA,EACA;AACF,CAAC;AA9HD,MAAA,aAAA,CAAA,MAAA;AAAA,MAAA,aAAA,CAAA,IAAA;AAAA,MAAA,aAAA,CAAA,iBAAA;;sBA6ECA,mBAOK,MAAA;AAAA,IAPD,OAAM;AAAA,IAAwB,MAAM,KAAgB,oBAAA;AAAA;IAC5C,KAAI,qBAAfA,mBAEM,OAAA;AAAA,MAhFR,KAAA;AAAA,MA8EoB,IAAI,KAAO;AAAA,IACzB,GAAAC,gBAAA,KAAA,IAAI,GA/EV,GAAA,UAAA,KAAAC,mBAAA,IAAA,IAAA;AAAA,IAiFEC,mBAEK,MAAA;AAAA,MAFD,OAAM;AAAA,MAA0B,MAAK;AAAA,MAAS,mBAAiB,KAAA,OAAO,KAAA,UAAU;AAAA;MACnFC,WAAQ,KAAA,QAAA,SAAA;AAAA,IAlFX,GAAA,GAAA,UAAA;AAAA,EAAA,GAAA,GAAA,UAAA;;;"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import '../assets/NcActionInput-
|
|
2
|
-
import { N as
|
|
3
|
-
import { N as
|
|
4
|
-
import { N as
|
|
5
|
-
import { N as
|
|
6
|
-
import { N as
|
|
1
|
+
import '../assets/NcActionInput-SoC93uat.css';
|
|
2
|
+
import { N as NcColorPicker } from "./NcColorPicker-BjsBCkEt.mjs";
|
|
3
|
+
import { N as NcDateTimePicker } from "./NcDateTimePicker-DYNOGc6A.mjs";
|
|
4
|
+
import { N as NcDateTimePickerNative } from "./NcDateTimePickerNative-D0pjWawX.mjs";
|
|
5
|
+
import { N as NcPasswordField } from "./NcPasswordField-hZiEd3tC.mjs";
|
|
6
|
+
import { N as NcSelect } from "./NcSelect-BSa2kSPW.mjs";
|
|
7
|
+
import { N as NcTextField } from "./NcTextField-DJ1KtSKd.mjs";
|
|
7
8
|
import { A as ActionGlobalMixin } from "./actionGlobal-BZFdtdJL.mjs";
|
|
8
9
|
import { c as createElementId } from "./createElementId-DhjFt1I9.mjs";
|
|
9
|
-
import { r as register, g as t44, a as t } from "./_l10n-
|
|
10
|
+
import { r as register, g as t44, a as t } from "./_l10n-Bg-fZ9R0.mjs";
|
|
10
11
|
import { resolveComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot, normalizeStyle, withModifiers, createCommentVNode, toDisplayString, createBlock, mergeProps, createVNode, withCtx } from "vue";
|
|
11
12
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
12
13
|
register(t44);
|
|
13
14
|
const _sfc_main = {
|
|
14
15
|
name: "NcActionInput",
|
|
15
16
|
components: {
|
|
17
|
+
NcColorPicker,
|
|
16
18
|
NcDateTimePicker,
|
|
17
19
|
NcDateTimePickerNative,
|
|
18
20
|
NcPasswordField,
|
|
@@ -120,15 +122,6 @@ const _sfc_main = {
|
|
|
120
122
|
type: String,
|
|
121
123
|
default: ""
|
|
122
124
|
},
|
|
123
|
-
/**
|
|
124
|
-
* @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.
|
|
125
|
-
* @todo Add a check in @nextcloud/vue 9 that this prop is not provided,
|
|
126
|
-
* otherwise root element will inherit incorrect aria-hidden.
|
|
127
|
-
*/
|
|
128
|
-
ariaHidden: {
|
|
129
|
-
type: Boolean,
|
|
130
|
-
default: null
|
|
131
|
-
},
|
|
132
125
|
/**
|
|
133
126
|
* Attribute forwarded to the underlying NcPasswordField and NcTextField
|
|
134
127
|
*/
|
|
@@ -352,8 +345,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
352
345
|
], 34)
|
|
353
346
|
], 2);
|
|
354
347
|
}
|
|
355
|
-
const NcActionInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
348
|
+
const NcActionInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0ba12bfa"]]);
|
|
356
349
|
export {
|
|
357
350
|
NcActionInput as N
|
|
358
351
|
};
|
|
359
|
-
//# sourceMappingURL=NcActionInput-
|
|
352
|
+
//# sourceMappingURL=NcActionInput-DeFy255L.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcActionInput-DeFy255L.mjs","sources":["../../src/components/NcActionInput/NcActionInput.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\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\nAll undocumented attributes will be bound to the input, the datepicker or the select component, e.g. `maxlength`, `not-before`.\nFor the `NcSelect` component, all events will be passed through. Please see the `NcSelect` component's documentation for more details and examples.\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionInput v-model=\"text\" :label-outside=\"true\" label=\"Label outside the input\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput v-model=\"text\" :show-trailing-button=\"false\" label=\"Input without trailing button\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput v-model=\"text\" label=\"Input with placeholder\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tThis is the placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"password\" v-model=\"text\" label=\"Password with visible label\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Key :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPassword placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"password\" v-model=\"text\" :show-trailing-button=\"false\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Key :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPassword placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"color\" v-model=\"color\" label=\"Favorite color\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Eyedropper :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tColor placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput label=\"Visible label\" v-model=\"text\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tInput with visible label\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput :disabled=\"true\" label=\"This is a disabled input\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Close :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"date\" isNativePicker v-model=\"date\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPlease pick a date\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"date\" v-model=\"date\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPlease pick a date\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput\n\t\t\t\ttype=\"multiselect\"\n\t\t\t\tinput-label=\"Fruit selection\"\n\t\t\t\t:options=\"['Apple', 'Banana', 'Cherry']\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPlease pick a fruit\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput\n\t\t\t\tv-model=\"multiSelected\"\n\t\t\t\ttype=\"multiselect\"\n\t\t\t\tinput-label=\"Fruit selection\"\n\t\t\t\ttrack-by=\"id\"\n\t\t\t\t:append-to-body=\"true\"\n\t\t\t\t:multiple=\"true\"\n\t\t\t\t:options=\"[{label:'Apple', id: 'apple'}, {label:'Banana', id: 'banana'}, {label:'Cherry', id: 'cherry'}]\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPlease pick a fruit object\n\t\t\t</NcActionInput>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport Close from 'vue-material-design-icons/Close'\n\timport Eyedropper from 'vue-material-design-icons/Eyedropper'\n\timport Key from 'vue-material-design-icons/Key'\n\timport Pencil from 'vue-material-design-icons/Pencil'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tClose,\n\t\t\tEyedropper,\n\t\t\tKey,\n\t\t\tPencil,\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tcolor: '#0082C9',\n\t\t\t\tdate: new Date(),\n\t\t\t\ttext: 'This is the input text',\n\t\t\t\tmultiSelected: [],\n\t\t\t}\n\t\t},\n\t}\n\t</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"[{ 'action--disabled': disabled }, $props.class ]\">\n\t\t<span :class=\"{\n\t\t\t\t'action-input-picker--disabled': disabled,\n\t\t\t\t'action-input--visible-label': labelOutside && label,\n\t\t\t}\"\n\t\t\tclass=\"action-input\"\n\t\t\t@mouseleave=\"onLeave\">\n\t\t\t<span class=\"action-input__icon-wrapper\">\n\t\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t\t<slot name=\"icon\">\n\t\t\t\t\t<span :class=\"[isIconUrl ? 'action-input__icon--url' : icon]\"\n\t\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclass=\"action-input__icon\" />\n\t\t\t\t</slot>\n\t\t\t</span>\n\n\t\t\t<!-- form and input -->\n\t\t\t<form ref=\"form\"\n\t\t\t\tclass=\"action-input__form\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t@submit.prevent=\"onSubmit\">\n\t\t\t\t<div class=\"action-input__container\">\n\t\t\t\t\t<label v-if=\"label && labelOutside\"\n\t\t\t\t\t\tclass=\"action-input__text-label\"\n\t\t\t\t\t\t:class=\"{ 'action-input__text-label--hidden': !labelOutside}\"\n\t\t\t\t\t\t:for=\"inputId\">\n\t\t\t\t\t\t{{ label }}\n\t\t\t\t\t</label>\n\t\t\t\t\t<div class=\"action-input__input-container\">\n\n\t\t\t\t\t\t<NcDateTimePicker v-if=\"datePickerType\"\n\t\t\t\t\t\t\tref=\"datetimepicker\"\n\t\t\t\t\t\t\t:model-value=\"modelValue\"\n\t\t\t\t\t\t\tstyle=\"z-index: 99999999999;\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:type=\"datePickerType\"\n\t\t\t\t\t\t\t:input-class=\"['mx-input', { focusable: isFocusable }]\"\n\t\t\t\t\t\t\tclass=\"action-input__datetimepicker\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@update:model-value=\"onUpdateModelValue\" />\n\n\t\t\t\t\t\t<NcDateTimePickerNative v-else-if=\"isNativePicker\"\n\t\t\t\t\t\t\t:id=\"idNativeDateTimePicker\"\n\t\t\t\t\t\t\t:model-value=\"modelValue\"\n\t\t\t\t\t\t\t:type=\"nativeDatePickerType\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\tclass=\"action-input__datetimepicker\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@update:model-value=\"onUpdateModelValue\" />\n\n\t\t\t\t\t\t<NcSelect v-else-if=\"isMultiselectType\"\n\t\t\t\t\t\t\t:model-value=\"modelValue\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:append-to-body=\"false\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\tclass=\"action-input__multi\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@update:model-value=\"onUpdateModelValue\" />\n\n\t\t\t\t\t\t<NcPasswordField v-else-if=\"type==='password'\"\n\t\t\t\t\t\t\t:id=\"inputId\"\n\t\t\t\t\t\t\t:model-value=\"modelValue\"\n\t\t\t\t\t\t\t:label=\"label\"\n\t\t\t\t\t\t\t:label-outside=\"!label || labelOutside\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\t:show-trailing-button=\"showTrailingButton && !disabled\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@update:model-value=\"onUpdateModelValue\" />\n\n\t\t\t\t\t\t<div v-else-if=\"type === 'color'\" class=\"action-input__container\">\n\t\t\t\t\t\t\t<label v-if=\"label && type === 'color'\"\n\t\t\t\t\t\t\t\tclass=\"action-input__text-label\"\n\t\t\t\t\t\t\t\t:class=\"{ 'action-input__text-label--hidden': !labelOutside}\"\n\t\t\t\t\t\t\t\t:for=\"inputId\">\n\t\t\t\t\t\t\t\t{{ label }}\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t<div class=\"action-input__input-container\">\n\t\t\t\t\t\t\t\t<NcColorPicker id=\"inputId\"\n\t\t\t\t\t\t\t\t\t:model-value=\"modelValue\"\n\t\t\t\t\t\t\t\t\tclass=\"colorpicker__trigger\"\n\t\t\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t\t\t@update:model-value=\"onUpdateModelValue\"\n\t\t\t\t\t\t\t\t\t@submit=\"$refs.form.requestSubmit()\">\n\t\t\t\t\t\t\t\t\t<button :style=\"{'background-color': modelValue}\"\n\t\t\t\t\t\t\t\t\t\tclass=\"colorpicker__preview\"\n\t\t\t\t\t\t\t\t\t\t:class=\"{ focusable: isFocusable }\" />\n\t\t\t\t\t\t\t\t</NcColorPicker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<NcTextField v-else\n\t\t\t\t\t\t\t:id=\"inputId\"\n\t\t\t\t\t\t\t:model-value=\"modelValue\"\n\t\t\t\t\t\t\t:label=\"label\"\n\t\t\t\t\t\t\t:label-outside=\"!label || labelOutside\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\t:type=\"type\"\n\t\t\t\t\t\t\ttrailing-button-icon=\"arrowRight\"\n\t\t\t\t\t\t\t:trailing-button-label=\"trailingButtonLabel\"\n\t\t\t\t\t\t\t:show-trailing-button=\"showTrailingButton && !disabled\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@trailing-button-click=\"$refs.form.requestSubmit()\"\n\t\t\t\t\t\t\t@update:model-value=\"onUpdateModelValue\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</span>\n\t</li>\n</template>\n\n<script>\nimport NcColorPicker from '../NcColorPicker/index.js'\nimport NcDateTimePicker from '../NcDateTimePicker/index.js'\nimport NcDateTimePickerNative from '../NcDateTimePickerNative/index.js'\nimport NcPasswordField from '../NcPasswordField/index.js'\nimport NcSelect from '../NcSelect/index.js'\nimport NcTextField from '../NcTextField/index.js'\nimport ActionGlobalMixin from '../../mixins/actionGlobal.js'\nimport { createElementId } from '../../utils/createElementId.ts'\nimport { t } from '../../l10n.js'\n\nexport default {\n\tname: 'NcActionInput',\n\n\tcomponents: {\n\t\tNcColorPicker,\n\t\tNcDateTimePicker,\n\t\tNcDateTimePickerNative,\n\t\tNcPasswordField,\n\t\tNcSelect,\n\t\tNcTextField,\n\t},\n\n\tmixins: [ActionGlobalMixin],\n\n\tinheritAttrs: false,\n\n\tprops: {\n\t\t/**\n\t\t * id attribute of the checkbox element\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'action-' + createElementId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\t\t/**\n\t\t * id attribute of the text input element\n\t\t */\n\t\tinputId: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'action-input-' + createElementId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * type attribute of the input field\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'text',\n\t\t\tvalidator(type) {\n\t\t\t\treturn ['date', 'datetime-local', 'month', 'multiselect',\n\t\t\t\t\t'number', 'password', 'search', 'tel',\n\t\t\t\t\t'text', 'time', 'url', 'week', 'color',\n\t\t\t\t\t'email'].indexOf(type) > -1\n\t\t\t},\n\t\t},\n\t\t/**\n\t\t * id attribute for the native date time picker\n\t\t */\n\t\tidNativeDateTimePicker: {\n\t\t\ttype: String,\n\t\t\tdefault: 'date-time-picker_id',\n\t\t},\n\t\t/**\n\t\t * Flag to use a native date time picker\n\t\t */\n\t\tisNativePicker: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * The visible input label for accessibility purposes.\n\t\t */\n\t\tlabel: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * If you want to show the label just above the\n\t\t * input field, pass in `true` to this prop.\n\t\t */\n\t\tlabelOutside: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t\t/**\n\t\t * value attribute of the input field\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: [String, Date, Number, Array],\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * disabled state of the input field\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * aria-label attribute of the input field\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Attribute forwarded to the underlying NcPasswordField and NcTextField\n\t\t */\n\t\tshowTrailingButton: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t\t/**\n\t\t * Trailing button label forwarded to the underlying NcTextField\n\t\t */\n\t\ttrailingButtonLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: t('Submit'),\n\t\t},\n\t\t/**\n\t\t * CSS class to apply to the root element.\n\t\t */\n\t\tclass: {\n\t\t\ttype: [String, Array, Object],\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\temits: [\n\t\t'submit',\n\t\t'update:modelValue',\n\t],\n\n\tcomputed: {\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn new URL(this.icon)\n\t\t\t} catch (error) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\n\t\tisMultiselectType() {\n\t\t\treturn this.type === 'multiselect'\n\t\t},\n\n\t\tnativeDatePickerType() {\n\t\t\tswitch (this.type) {\n\t\t\tcase 'date':\n\t\t\tcase 'month':\n\t\t\tcase 'time':\n\t\t\tcase 'week':\n\t\t\tcase 'datetime-local':\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\n\t\tdatePickerType() {\n\t\t\tif (!this.isNativePicker) {\n\t\t\t\tswitch (this.type) {\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'month':\n\t\t\t\tcase 'time':\n\t\t\t\t\treturn this.type\n\n\t\t\t\tcase 'datetime-local':\n\t\t\t\t\treturn 'datetime'\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\t\t/**\n\t\t * determines if the action is focusable\n\t\t *\n\t\t * @return {boolean} is the action focusable ?\n\t\t */\n\t\tisFocusable() {\n\t\t\treturn !this.disabled\n\t\t},\n\t},\n\n\tmethods: {\n\t\t// closing datepicker popup on mouseleave = unfocus\n\t\tonLeave() {\n\t\t\tif (this.$refs.datetimepicker && this.$refs.datetimepicker.$refs.datepicker) {\n\t\t\t\tthis.$refs.datetimepicker.$refs.datepicker.closePopup()\n\t\t\t}\n\t\t},\n\t\tonSubmit(event) {\n\t\t\tevent.preventDefault()\n\t\t\tevent.stopPropagation()\n\t\t\tif (!this.disabled) {\n\t\t\t\t/**\n\t\t\t\t * Emitted on submit of the input field\n\t\t\t\t *\n\t\t\t\t * @type {Event}\n\t\t\t\t */\n\t\t\t\tthis.$emit('submit', event)\n\t\t\t} else {\n\t\t\t\t// ignore submit\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t\tonUpdateModelValue(event) {\n\t\t\t/**\n\t\t\t * Emitted on update of the model value\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('update:modelValue', event)\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@use '../../assets/inputs.scss';\n@use '../../assets/action.scss' as *;\n@include action-active;\n@include action--disabled;\n\n$input-margin: 4px;\n\n.action-input {\n\tdisplay: flex;\n\talign-items: flex-start;\n\n\twidth: 100%;\n\theight: auto;\n\tmargin: 0;\n\tpadding: 0;\n\n\tcursor: pointer;\n\twhite-space: nowrap;\n\n\tcolor: var(--color-main-text);\n\tborder: 0;\n\tborder-radius: 0; // otherwise Safari will cut the border-radius area\n\tbackground-color: transparent;\n\tbox-shadow: none;\n\n\tfont-weight: normal;\n\n\t&__icon-wrapper {\n\t\tdisplay: flex;\n\t\talign-self: center;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\t&:deep(.material-design-icon) {\n\t\t\twidth: var(--default-clickable-area);\n\t\t\theight: var(--default-clickable-area);\n\t\t\topacity: $opacity_full;\n\n\t\t\t.material-design-icon__svg {\n\t\t\t\tvertical-align: middle;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > span {\n\t\tcursor: pointer;\n\t\twhite-space: nowrap;\n\t}\n\n\t&__icon {\n\t\tmin-width: 0; /* Overwrite icons*/\n\t\tmin-height: 0;\n\t\t// Keep padding to define the width to assure correct position of a possible text\n\t\tpadding: calc(var(--default-clickable-area) / 2) 0 calc(var(--default-clickable-area) / 2) var(--default-clickable-area);\n\n\t\tbackground-position: #{$icon-margin} center;\n\t\tbackground-size: $icon-size;\n\t}\n\n\t// Forms & text inputs\n\t&__form {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tflex: 1 1 auto;\n\n\t\tmargin: $input-margin 0;\n\t\tpadding-inline-end: $icon-margin;\n\t}\n\n\t&__container {\n\t\tposition: relative;\n\t\twidth: 100%;\n\t}\n\n\t&__input-container {\n\t\tdisplay: flex;\n\n\t\t.colorpicker {\n\t\t\t&__trigger,\n\t\t\t&__preview {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t&__preview {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 36px;\n\t\t\t\tborder-radius: var(--border-radius-large);\n\t\t\t\tborder: 2px solid var(--color-border-maxcontrast);\n\t\t\t\tbox-shadow: none !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__text-label {\n\t\tpadding: 4px 0;\n\t\tdisplay: block;\n\n\t\t&--hidden {\n\t\t\tposition: absolute;\n\t\t\tinset-inline-start: 0;\n\t\t\twidth: 1px;\n\t\t\theight: 1px;\n\t\t\toverflow: hidden;\n\t\t\tz-index: -1;\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t&__datetimepicker {\n\t\twidth: 100%;\n\n\t\t:deep(.mx-input) {\n\t\t\tmargin: 0;\n\t\t}\n\t}\n\n\t&__multi {\n\t\twidth: 100%;\n\t}\n}\n\n// if a form is the last of the list\n// add the same bottomMargin as the right padding\n// for visual balance\nli:last-child > .action-input {\n\tpadding-bottom: calc($icon-margin - $input-margin);\n}\n\n// same for first item\nli:first-child > .action-input:not(.action-input--visible-label) {\n\tpadding-top: calc($icon-margin - $input-margin);\n}\n\n</style>\n"],"names":["_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot","_normalizeStyle","_withModifiers","_toDisplayString","_create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AAAA,cAC/C,uBAAoB,SAAkB;AAAA;;;MAzO9C,GAAA,IAAA,UAAA;AAAA;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../assets/NcActionLink-
|
|
2
|
-
import { A as ActionTextMixin } from "./actionText-
|
|
1
|
+
import '../assets/NcActionLink-VngQl-C2.css';
|
|
2
|
+
import { A as ActionTextMixin } from "./actionText-DdSwf9le.mjs";
|
|
3
3
|
import { a as NC_ACTIONS_IS_SEMANTIC_MENU } from "./useNcActions-CiGWxAJE.mjs";
|
|
4
4
|
import { createElementBlock, openBlock, createElementVNode, renderSlot, createCommentVNode, normalizeStyle, normalizeClass, toDisplayString } from "vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
@@ -51,15 +51,6 @@ const _sfc_main = {
|
|
|
51
51
|
title: {
|
|
52
52
|
type: String,
|
|
53
53
|
default: null
|
|
54
|
-
},
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.
|
|
57
|
-
* @todo Add a check in @nextcloud/vue 9 that this prop is not provided,
|
|
58
|
-
* otherwise root element will inherit incorrect aria-hidden.
|
|
59
|
-
*/
|
|
60
|
-
ariaHidden: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: null
|
|
63
54
|
}
|
|
64
55
|
}
|
|
65
56
|
};
|
|
@@ -115,8 +106,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
115
106
|
], 8, _hoisted_2)
|
|
116
107
|
], 8, _hoisted_1);
|
|
117
108
|
}
|
|
118
|
-
const NcActionLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
109
|
+
const NcActionLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-786624ec"]]);
|
|
119
110
|
export {
|
|
120
111
|
NcActionLink as N
|
|
121
112
|
};
|
|
122
|
-
//# sourceMappingURL=NcActionLink-
|
|
113
|
+
//# sourceMappingURL=NcActionLink-BEo7zmXX.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NcActionLink-
|
|
1
|
+
{"version":3,"file":"NcActionLink-BEo7zmXX.mjs","sources":["../../src/components/NcActionLink/NcActionLink.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\n```\n<template>\n\t<div style=\"display: flex; align-items: center;\">\n\t\t<NcActions>\n\t\t\t<NcActionLink href=\"https://nextcloud.com\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<OpenInNew :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tNextcloud website\n\t\t\t</NcActionLink>\n\t\t</NcActions>\n\n\t\t<NcActions>\n\t\t\t<NcActionLink href=\"https://www.gnu.org/licenses/gpl.odt\"\n\t\t\t\t download=\"AGPL License text.odt\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Download :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDownload AGPL license text\n\t\t\t</NcActionLink>\n\t\t</NcActions>\n\n\t\t<NcActions>\n\t\t\t<NcActionLink href=\"https://nextcloud.com\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<OpenInNew :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tNextcloud website\n\t\t\t</NcActionLink>\n\t\t\t<NcActionLink href=\"https://www.gnu.org/licenses/gpl.odt\"\n\t\t\t\t download=\"AGPL License text.odt\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Download :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDownload AGPL license text\n\t\t\t</NcActionLink>\n\t\t</NcActions>\n\t</div>\n</template>\n<script>\nimport Download from 'vue-material-design-icons/Download.vue'\nimport OpenInNew from 'vue-material-design-icons/OpenInNew.vue'\n\nexport default {\n\tcomponents: {\n\t\tDownload,\n\t\tOpenInNew,\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<a :download=\"download\"\n\t\t\t:href=\"href\"\n\t\t\t:aria-label=\"ariaLabel\"\n\t\t\t:target=\"target\"\n\t\t\t:title=\"title\"\n\t\t\tclass=\"action-link focusable\"\n\t\t\trel=\"nofollow noreferrer noopener\"\n\t\t\t:role=\"isInSemanticMenu && 'menuitem'\"\n\t\t\t@click=\"onClick\">\n\n\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<span :class=\"[isIconUrl ? 'action-link__icon--url' : icon]\"\n\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"action-link__icon\" />\n\t\t\t</slot>\n\n\t\t\t<!-- long text with name -->\n\t\t\t<span v-if=\"name\"\n\t\t\t\tclass=\"action-link__longtext-wrapper\">\n\t\t\t\t<strong class=\"action-link__name\">\n\t\t\t\t\t{{ name }}\n\t\t\t\t</strong>\n\t\t\t\t<br>\n\t\t\t\t<!-- white space is shown on longtext, so we can't\n\t\t\t\tput {{ text }} on a new line for code readability -->\n\t\t\t\t<span class=\"action-link__longtext\" v-text=\"text\" />\n\t\t\t</span>\n\n\t\t\t<!-- long text only -->\n\t\t\t<!-- white space is shown on longtext, so we can't\n\t\t\tput {{ text }} on a new line for code readability -->\n\t\t\t<span v-else-if=\"isLongText\"\n\t\t\t\tclass=\"action-link__longtext\"\n\t\t\t\tv-text=\"text\" />\n\n\t\t\t<!-- default text display -->\n\t\t\t<span v-else class=\"action-link__text\">{{ text }}</span>\n\n\t\t\t<!-- fake slot to gather inner text -->\n\t\t\t<slot v-if=\"false\" />\n\t\t</a>\n\t</li>\n</template>\n\n<script>\nimport ActionTextMixin from '../../mixins/actionText.js'\nimport { NC_ACTIONS_IS_SEMANTIC_MENU } from '../NcActions/useNcActions.ts'\n\nexport default {\n\tname: 'NcActionLink',\n\n\tmixins: [ActionTextMixin],\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: NC_ACTIONS_IS_SEMANTIC_MENU,\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * destionation to link to\n\t\t */\n\t\thref: {\n\t\t\ttype: String,\n\t\t\tdefault: '#',\n\t\t\trequired: true,\n\t\t\tvalidator: value => {\n\t\t\t\t// href is either an anchor or a valid url starting with a scheme or a relative path\n\t\t\t\ttry {\n\t\t\t\t\treturn new URL(value)\n\t\t\t\t} catch (error) {\n\t\t\t\t\treturn value.startsWith('#') || value.startsWith('/')\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\t/**\n\t\t * download the link instead of opening\n\t\t */\n\t\tdownload: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * target to open the link\n\t\t */\n\t\ttarget: {\n\t\t\ttype: String,\n\t\t\tdefault: '_self',\n\t\t\tvalidator: value => {\n\t\t\t\treturn value && (!value.startsWith('_') || ['_blank', '_self', '_parent', '_top'].indexOf(value) > -1)\n\t\t\t},\n\t\t},\n\t\t/**\n\t\t * Declares a native tooltip when not null\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@use '../../assets/action.scss' as *;\n@include action-active;\n@include action-item('link');\n</style>\n"],"names":["_createElementBlock","_createElementVNode","_renderSlot","_normalizeClass","_normalizeStyle","_openBlock","_toDisplayString","_createCommentVNode"],"mappings":";;;;AAiHA,MAAK,YAAU;AAAA,EACd,MAAM;AAAA,EAEN,QAAQ,CAAC,eAAe;AAAA,EAExB,QAAQ;AAAA,IACP,kBAAkB;AAAA,MACjB,MAAM;AAAA,MACN,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,MAAM,SAAgB,oBAAA;AAAA,MACtB,gDAAO,KAAO,WAAA,KAAA,QAAA,GAAA,IAAA;AAAA;MAGfC,WAKO,yBALP,MAKO;AAAA,QAJND,mBAG6B,QAAA;AAAA,UAHtB,OA3EXE,eA2EmB,CAAA,CAAA,KAAA,YAAuC,2BAAA,KAAA,IAAI,GAGnD,mBAAmB,CAAA;AAAA,UAFxB,OA5ENC,eAAA,EAAA,iBA4EgC,KAAS,YAAA,OAAU,KAAI,IAAA,MAAA,KAAA,CAAA;AAAA,UAClD,eAAY;AAAA;;MAKF,KAAI,QAAhBC,aAAAL,mBASO,QATP,YASO;AAAA,QAPNC,mBAES,UAFT,YAESK,gBADL,KAAI,IAAA,GAAA,CAAA;AAAA,kCAERL,mBAAI,MAAA,MAAA,MAAA,EAAA;AAAA,QAGJA,mBAAoD,QAAA;AAAA,UAA9C,OAAM;AAAA,UA1FhB,aA0FwCK,gBAAa,KAAD,IAAA;AAAA,QA1FpD,GAAA,MAAA,GAAA,UAAA;AAAA,YAgGoB,KAAU,2BAA3BN,mBAEiB,QAAA;AAAA,QAlGpB,KAAA;AAAA,QAiGI,OAAM;AAAA,QAjGV,aAkGIM,gBAAa,KAAD,IAAA;AAAA,MAlGhB,GAAA,MAAA,GAAA,UAAA,mBAqGGN,mBAAwD,QAAxD,YAAwDM,gBAAd,KAAI,IAAA,GAAA,CAAA;AAAA,MArGjDC,mBAAA,IAAA,IAAA;AAAA,IAAA,GAAA,GAAA,UAAA;AAAA,EAAA,GAAA,GAAA,UAAA;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../assets/NcActionRouter-
|
|
2
|
-
import { A as ActionTextMixin } from "./actionText-
|
|
1
|
+
import '../assets/NcActionRouter-CBVOuCQ3.css';
|
|
2
|
+
import { A as ActionTextMixin } from "./actionText-DdSwf9le.mjs";
|
|
3
3
|
import { a as NC_ACTIONS_IS_SEMANTIC_MENU } from "./useNcActions-CiGWxAJE.mjs";
|
|
4
4
|
import { resolveComponent, createElementBlock, openBlock, createVNode, withCtx, renderSlot, createCommentVNode, createElementVNode, normalizeStyle, normalizeClass, toDisplayString } from "vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
@@ -80,4 +80,4 @@ const NcActionRouter = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_r
|
|
|
80
80
|
export {
|
|
81
81
|
NcActionRouter as N
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=NcActionRouter-
|
|
83
|
+
//# sourceMappingURL=NcActionRouter-ERoQjJKv.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NcActionRouter-
|
|
1
|
+
{"version":3,"file":"NcActionRouter-ERoQjJKv.mjs","sources":["../../src/components/NcActionRouter/NcActionRouter.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=\"action\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<RouterLink :to=\"to\"\n\t\t\t:aria-label=\"ariaLabel\"\n\t\t\t:title=\"title\"\n\t\t\tclass=\"action-router focusable\"\n\t\t\trel=\"nofollow noreferrer noopener\"\n\t\t\t:role=\"isInSemanticMenu && 'menuitem'\"\n\t\t\t@click=\"onClick\">\n\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<span :class=\"[isIconUrl ? 'action-router__icon--url' : icon]\"\n\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\tclass=\"action-router__icon\"\n\t\t\t\t\taria-hidden=\"true\" />\n\t\t\t</slot>\n\n\t\t\t<!-- long text with name -->\n\t\t\t<span v-if=\"name\"\n\t\t\t\tclass=\"action-router__longtext-wrapper\">\n\t\t\t\t<strong class=\"action-router__name\">\n\t\t\t\t\t{{ name }}\n\t\t\t\t</strong>\n\t\t\t\t<br>\n\t\t\t\t<!-- white space is shown on longtext, so we can't\n\t\t\t\tput {{ text }} on a new line for code readability -->\n\t\t\t\t<span class=\"action-router__longtext\" v-text=\"text\" />\n\t\t\t</span>\n\n\t\t\t<!-- long text only -->\n\t\t\t<!-- white space is shown on longtext, so we can't\n\t\t\tput {{ text }} on a new line for code readability -->\n\t\t\t<span v-else-if=\"isLongText\"\n\t\t\t\tclass=\"action-router__longtext\"\n\t\t\t\tv-text=\"text\" />\n\n\t\t\t<!-- default text display -->\n\t\t\t<span v-else class=\"action-router__text\">{{ text }}</span>\n\n\t\t\t<!-- fake slot to gather inner text -->\n\t\t\t<slot v-if=\"false\" />\n\t\t</RouterLink>\n\t</li>\n</template>\n\n<script>\nimport ActionTextMixin from '../../mixins/actionText.js'\nimport { NC_ACTIONS_IS_SEMANTIC_MENU } from '../NcActions/useNcActions.ts'\n\nexport default {\n\tname: 'NcActionRouter',\n\n\tmixins: [ActionTextMixin],\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: NC_ACTIONS_IS_SEMANTIC_MENU,\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * router-link to prop [https://router.vuejs.org/api/#to](https://router.vuejs.org/api/#to)\n\t\t */\n\t\tto: {\n\t\t\ttype: [String, Object],\n\t\t\tdefault: '',\n\t\t\trequired: true,\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@use '../../assets/action.scss' as *;\n@include action-active;\n@include action-item('router');\n@include action--disabled;\n</style>\n"],"names":["_createElementBlock","_createVNode","_withCtx","_renderSlot","_createElementVNode","_normalizeClass","_normalizeStyle","_openBlock","_toDisplayString","_createCommentVNode"],"mappings":";;;;AAsDA,MAAK,YAAU;AAAA,EACd,MAAM;AAAA,EAEN,QAAQ,CAAC,eAAe;AAAA,EAExB,QAAQ;AAAA,IACP,kBAAkB;AAAA,MACjB,MAAM;AAAA,MACN,SA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CoB,KAAU,2BAA3BR,mBAEiB,QAAA;AAAA,UAvCpB,KAAA;AAAA,UAsCI,OAAM;AAAA,UAtCV,aAuCIQ,gBAAa,KAAD,IAAA;AAAA,QAvChB,GAAA,MAAA,GAAA,UAAA,mBA0CGR,mBAA0D,QAA1D,YAA0DQ,gBAAd,KAAI,IAAA,GAAA,CAAA;AAAA,QA1CnDC,mBAAA,IAAA,IAAA;AAAA;MAAA,GAAA;AAAA;EAAA,GAAA,GAAA,UAAA;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../assets/NcActionText-
|
|
2
|
-
import { A as ActionTextMixin } from "./actionText-
|
|
1
|
+
import '../assets/NcActionText-CWAPsJmz.css';
|
|
2
|
+
import { A as ActionTextMixin } from "./actionText-DdSwf9le.mjs";
|
|
3
3
|
import { a as NC_ACTIONS_IS_SEMANTIC_MENU } from "./useNcActions-CiGWxAJE.mjs";
|
|
4
4
|
import { createElementBlock, openBlock, createElementVNode, renderSlot, createCommentVNode, normalizeStyle, normalizeClass, toDisplayString } from "vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
@@ -62,4 +62,4 @@ const NcActionText = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_ren
|
|
|
62
62
|
export {
|
|
63
63
|
NcActionText as N
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=NcActionText-
|
|
65
|
+
//# sourceMappingURL=NcActionText-DJWBefhJ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NcActionText-
|
|
1
|
+
{"version":3,"file":"NcActionText-DJWBefhJ.mjs","sources":["../../src/components/NcActionText/NcActionText.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=\"action\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<span class=\"action-text\"\n\t\t\t@click=\"onClick\">\n\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<span v-if=\"icon !== ''\"\n\t\t\t\t\t:class=\"[isIconUrl ? 'action-text__icon--url' : icon]\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\tclass=\"action-text__icon\" />\n\t\t\t</slot>\n\n\t\t\t<!-- long text with name -->\n\t\t\t<span v-if=\"name\"\n\t\t\t\tclass=\"action-text__longtext-wrapper\">\n\t\t\t\t<strong class=\"action-text__name\">\n\t\t\t\t\t{{ name }}\n\t\t\t\t</strong>\n\t\t\t\t<br>\n\t\t\t\t<!-- white space is shown on longtext, so we can't\n\t\t\t\tput {{ text }} on a new line for code readability -->\n\t\t\t\t<span class=\"action-text__longtext\" v-text=\"text\" />\n\t\t\t</span>\n\n\t\t\t<!-- long text only -->\n\t\t\t<!-- white space is shown on longtext, so we can't\n\t\t\tput {{ text }} on a new line for code readability -->\n\t\t\t<span v-else-if=\"isLongText\"\n\t\t\t\tclass=\"action-text__longtext\"\n\t\t\t\tv-text=\"text\" />\n\n\t\t\t<!-- default text display -->\n\t\t\t<span v-else class=\"action-text__text\">{{ text }}</span>\n\n\t\t\t<!-- fake slot to gather inner text -->\n\t\t\t<slot v-if=\"false\" />\n\t\t</span>\n\t</li>\n</template>\n\n<script>\nimport ActionTextMixin from '../../mixins/actionText.js'\nimport { NC_ACTIONS_IS_SEMANTIC_MENU } from '../NcActions/useNcActions.ts'\n\nexport default {\n\tname: 'NcActionText',\n\n\tmixins: [ActionTextMixin],\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: NC_ACTIONS_IS_SEMANTIC_MENU,\n\t\t\tdefault: false,\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@use '../../assets/action.scss' as *;\n@include action-active;\n@include action-item('text');\n@include action--disabled;\n\n.action-text {\n\t&,\n\tspan {\n\t\tcursor: default;\n\t}\n}\n</style>\n"],"names":["_createElementBlock","_createElementVNode","_renderSlot","_normalizeClass","_normalizeStyle","_createCommentVNode","_openBlock","_toDisplayString"],"mappings":";;;;AAkDA,MAAK,YAAU;AAAA,EACd,MAAM;AAAA,EAEN,QAAQ,CAAC,eAAe;AAAA,EAExB,QAAQ;AAAA,IACP,kBAAkB;AAAA,MACjB,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,EACD;AACF;AA7DA,MAAA,aAAA,CAAA,MAAA;;EAAA,KAAA;AAAA,EAoBI,OAAM;;AACE,MAAA,aAAA,EAAA,OAAM,oBAAmB;AArBrC,MAAA,aAAA,CAAA,aAAA;AAAA,MAAA,aAAA,CAAA,aAAA;;EAAA,KAAA;AAAA,EAsCgB,OAAM;;;sBAhCrBA,mBAqCK,MAAA;AAAA,IArCD,OAAM;AAAA,IAAU,MAAM,SAAgB,oBAAA;AAAA;IACzCC,mBAmCO,QAAA;AAAA,MAnCD,OAAM;AAAA,MACV,gDAAO,KAAO,WAAA,KAAA,QAAA,GAAA,IAAA;AAAA;MAEfC,WAMO,yBANP,MAMO;AAAA,QALM,KAAI,SAAA,mBAAhBF,mBAI6B,QAAA;AAAA,UAfjC,KAAA;AAAA,UAYM,OAZNG,eAYc,CAAA,CAAA,KAAA,YAAuC,2BAAA,KAAA,IAAI,GAG9C,mBAAmB,CAAA;AAAA,UAFzB,eAAY;AAAA,UACX,OAdNC,eAAA,EAAA,iBAcgC,KAAS,YAAA,OAAU,KAAI,IAAA,MAAA,KAAA,CAAA;AAAA,uBAdvDC,mBAAA,IAAA,IAAA;AAAA;MAmBe,KAAI,QAAhBC,aAAAN,mBASO,QATP,YASO;AAAA,QAPNC,mBAES,UAFT,YAESM,gBADL,KAAI,IAAA,GAAA,CAAA;AAAA,kCAERN,mBAAI,MAAA,MAAA,MAAA,EAAA;AAAA,QAGJA,mBAAoD,QAAA;AAAA,UAA9C,OAAM;AAAA,UA3BhB,aA2BwCM,gBAAa,KAAD,IAAA;AAAA,QA3BpD,GAAA,MAAA,GAAA,UAAA;AAAA,YAiCoB,KAAU,2BAA3BP,mBAEiB,QAAA;AAAA,QAnCpB,KAAA;AAAA,QAkCI,OAAM;AAAA,QAlCV,aAmCIO,gBAAa,KAAD,IAAA;AAAA,MAnChB,GAAA,MAAA,GAAA,UAAA,mBAsCGP,mBAAwD,QAAxD,YAAwDO,gBAAd,KAAI,IAAA,GAAA,CAAA;AAAA,MAtCjDF,mBAAA,IAAA,IAAA;AAAA;EAAA,GAAA,GAAA,UAAA;;;"}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import '../assets/NcActionTextEditable-
|
|
2
|
-
import {
|
|
1
|
+
import '../assets/NcActionTextEditable-BbOijUsB.css';
|
|
2
|
+
import { b as mdiArrowRight } from "./mdi-CR-3gwdl.mjs";
|
|
3
3
|
import { c as createElementId } from "./createElementId-DhjFt1I9.mjs";
|
|
4
|
-
import { A as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { resolveComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot, normalizeStyle, withModifiers, createCommentVNode, withDirectives, toDisplayString, mergeProps, createBlock, vShow } from "vue";
|
|
4
|
+
import { A as ActionTextMixin } from "./actionText-DdSwf9le.mjs";
|
|
5
|
+
import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-BOiCKv0b.mjs";
|
|
6
|
+
import { resolveComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot, normalizeStyle, withModifiers, createCommentVNode, withDirectives, toDisplayString, mergeProps, createVNode, vShow } from "vue";
|
|
8
7
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
9
8
|
const _sfc_main = {
|
|
10
9
|
name: "NcActionTextEditable",
|
|
11
10
|
components: {
|
|
12
|
-
|
|
13
|
-
ArrowRight
|
|
11
|
+
NcIconSvgWrapper
|
|
14
12
|
},
|
|
15
13
|
mixins: [ActionTextMixin],
|
|
16
14
|
props: {
|
|
@@ -44,7 +42,7 @@ const _sfc_main = {
|
|
|
44
42
|
],
|
|
45
43
|
setup() {
|
|
46
44
|
return {
|
|
47
|
-
|
|
45
|
+
mdiArrowRight
|
|
48
46
|
};
|
|
49
47
|
},
|
|
50
48
|
computed: {
|
|
@@ -82,8 +80,7 @@ const _hoisted_3 = ["for"];
|
|
|
82
80
|
const _hoisted_4 = ["id", "disabled", "value"];
|
|
83
81
|
const _hoisted_5 = ["for"];
|
|
84
82
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
85
|
-
const
|
|
86
|
-
const _component_ArrowRight = resolveComponent("ArrowRight");
|
|
83
|
+
const _component_NcIconSvgWrapper = resolveComponent("NcIconSvgWrapper");
|
|
87
84
|
return openBlock(), createElementBlock("li", {
|
|
88
85
|
class: normalizeClass(["action", { "action--disabled": $props.disabled }])
|
|
89
86
|
}, [
|
|
@@ -125,13 +122,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
125
122
|
for: $props.id,
|
|
126
123
|
class: "action-text-editable__label"
|
|
127
124
|
}, [
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
key: 1,
|
|
133
|
-
size: 20
|
|
134
|
-
}))
|
|
125
|
+
createVNode(_component_NcIconSvgWrapper, {
|
|
126
|
+
directional: "",
|
|
127
|
+
path: $setup.mdiArrowRight
|
|
128
|
+
}, null, 8, ["path"])
|
|
135
129
|
], 8, _hoisted_5), [
|
|
136
130
|
[vShow, !$props.disabled]
|
|
137
131
|
])
|
|
@@ -139,8 +133,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
139
133
|
])
|
|
140
134
|
], 2);
|
|
141
135
|
}
|
|
142
|
-
const NcActionTextEditable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
136
|
+
const NcActionTextEditable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-df9c1bf0"]]);
|
|
143
137
|
export {
|
|
144
138
|
NcActionTextEditable as N
|
|
145
139
|
};
|
|
146
|
-
//# sourceMappingURL=NcActionTextEditable-
|
|
140
|
+
//# sourceMappingURL=NcActionTextEditable-B7nemAOJ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcActionTextEditable-B7nemAOJ.mjs","sources":["../../src/components/NcActionTextEditable/NcActionTextEditable.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nThis component is made to be used inside of the [Actions](#Actions) component slots.\nAll undocumented attributes will be bound to the textarea. e.g. `maxlength`\n\n```\n<template>\n\t<NcActions>\n\t\t<NcActionTextEditable model-value=\"This is a textarea\">\n\t\t\t<template #icon>\n\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t</template>\n\t\t</NcActionTextEditable>\n\t\t<NcActionTextEditable :disabled=\"true\" model-value=\"This is a disabled textarea\">\n\t\t\t<template #icon>\n\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t</template>\n\t\t</NcActionTextEditable>\n\t\t<NcActionTextEditable name=\"Please edit the text\" model-value=\"This is a textarea with name\">\n\t\t\t<template #icon>\n\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t</template>\n\t\t</NcActionTextEditable>\n\t</NcActions>\n</template>\n<script>\nimport Pencil from 'vue-material-design-icons/Pencil'\n\nexport default {\n\tcomponents: {\n\t\tPencil,\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\">\n\t\t<span class=\"action-text-editable\"\n\t\t\t@click=\"onClick\">\n\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<span :class=\"[isIconUrl ? 'action-text-editable__icon--url' : icon]\"\n\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\tclass=\"action-text-editable__icon\" />\n\t\t\t</slot>\n\n\t\t\t<!-- form and input -->\n\t\t\t<form ref=\"form\"\n\t\t\t\tclass=\"action-text-editable__form\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t@submit.prevent=\"onSubmit\">\n\t\t\t\t<input :id=\"id\" type=\"submit\" class=\"action-text-editable__submit\">\n\n\t\t\t\t<!-- name -->\n\t\t\t\t<label v-if=\"name\"\n\t\t\t\t\tclass=\"action-text-editable__name\"\n\t\t\t\t\t:for=\"computedId\">\n\t\t\t\t\t{{ name }}\n\t\t\t\t</label>\n\n\t\t\t\t<textarea :id=\"computedId\"\n\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t:value=\"modelValue\"\n\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t:class=\"['action-text-editable__textarea', { focusable: isFocusable }]\"\n\t\t\t\t\t@input=\"onInput\" />\n\n\t\t\t\t<!-- allow the custom font to inject a ::before\n\t\t\t\t\tnot possible on input[type=submit] -->\n\t\t\t\t<label v-show=\"!disabled\" :for=\"id\" class=\"action-text-editable__label\">\n\t\t\t\t\t<NcIconSvgWrapper directional :path=\"mdiArrowRight\" />\n\t\t\t\t</label>\n\t\t\t</form>\n\t\t</span>\n\t</li>\n</template>\n\n<script>\nimport { mdiArrowRight } from '@mdi/js'\nimport { createElementId } from '../../utils/createElementId.ts'\n\nimport ActionTextMixin from '../../mixins/actionText.js'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/index.js'\n\nexport default {\n\tname: 'NcActionTextEditable',\n\n\tcomponents: {\n\t\tNcIconSvgWrapper,\n\t},\n\n\tmixins: [ActionTextMixin],\n\n\tprops: {\n\t\t/**\n\t\t * id attribute of the checkbox element\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'action-' + createElementId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\t\t/**\n\t\t * disabled state of the text area\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * value attribute of the input field\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\temits: [\n\t\t'input',\n\t\t'update:modelValue',\n\t\t'submit',\n\t],\n\n\tsetup() {\n\t\treturn {\n\t\t\tmdiArrowRight,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * determines if the action is focusable\n\t\t *\n\t\t * @return {boolean} is the action focusable ?\n\t\t */\n\t\tisFocusable() {\n\t\t\treturn !this.disabled\n\t\t},\n\n\t\tcomputedId() {\n\t\t\treturn createElementId()\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonInput(event) {\n\t\t\t/**\n\t\t\t * Emitted on input events of the text field\n\t\t\t *\n\t\t\t * @type {Event|Date}\n\t\t\t */\n\t\t\tthis.$emit('input', event)\n\t\t\t/**\n\t\t\t * Emitted when the inputs value changes\n\t\t\t *\n\t\t\t * @type {string|Date}\n\t\t\t */\n\t\t\tthis.$emit('update:modelValue', event.target.value)\n\t\t},\n\t\tonSubmit(event) {\n\t\t\tevent.preventDefault()\n\t\t\tevent.stopPropagation()\n\t\t\tif (!this.disabled) {\n\t\t\t\t/**\n\t\t\t\t * Emitted on submit of the input field\n\t\t\t\t *\n\t\t\t\t * @type {Event}\n\t\t\t\t */\n\t\t\t\tthis.$emit('submit', event)\n\t\t\t} else {\n\t\t\t\t// ignore submit\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@use '../../assets/inputs.scss';\n@use '../../assets/action.scss' as *;\n@include action-active;\n@include action--disabled;\n\n$input-margin: 4px;\n\n.action-text-editable {\n\tdisplay: flex;\n\talign-items: flex-start;\n\n\twidth: 100%;\n\theight: auto;\n\tmargin: 0;\n\tpadding: 0;\n\n\tcursor: pointer;\n\twhite-space: nowrap;\n\n\tcolor: var(--color-main-text);\n\tborder: 0;\n\tborder-radius: 0; // otherwise Safari will cut the border-radius area\n\tbackground-color: transparent;\n\tbox-shadow: none;\n\n\tfont-weight: normal;\n\tline-height: var(--default-clickable-area);\n\n\t& > span {\n\t\tcursor: pointer;\n\t\twhite-space: nowrap;\n\t}\n\n\t&__icon {\n\t\tmin-width: 0; /* Overwrite icons*/\n\t\tmin-height: 0;\n\t\t/* Keep padding to define the width to\n\t\t\tassure correct position of a possible text */\n\t\tpadding: calc(var(--default-clickable-area) / 2) 0 calc(var(--default-clickable-area) / 2) var(--default-clickable-area);\n\n\t\tbackground-position: #{$icon-margin} center;\n\t\tbackground-size: $icon-size;\n\t}\n\n\t&:deep(.material-design-icon) {\n\t\twidth: var(--default-clickable-area);\n\t\theight: var(--default-clickable-area);\n\t\topacity: $opacity_full;\n\n\t\t.material-design-icon__svg {\n\t\t\tvertical-align: middle;\n\t\t}\n\t}\n\n\t// Forms & text inputs\n\t&__form {\n\t\tdisplay: flex;\n\t\tflex: 1 1 auto;\n\t\tflex-direction: column;\n\n\t\tposition: relative;\n\t\tmargin: $input-margin 0;\n\t\tpadding-inline-end: $icon-margin;\n\t}\n\n\t&__submit {\n\t\tposition: absolute;\n\t\tinset-inline-start: 0;\n\t\ttop: auto;\n\t\twidth: 1px;\n\t\theight: 1px;\n\t\toverflow: hidden;\n\t\tz-index: -1;\n\t\topacity: 0;\n\t}\n\n\t&__label {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\t// bottom-right corner\n\t\tposition: absolute;\n\t\tinset-inline-end: calc($icon-margin + 1px);\n\t\tbottom: 1px;\n\t\twidth: calc(var(--default-clickable-area) - $input-margin * 2);\n\t\theight: calc(var(--default-clickable-area) - $input-margin * 2);\n\t\tbox-sizing: border-box;\n\t\tmargin: 0;\n\t\tpadding: 7px 6px;\n\n\t\tborder: 0;\n\t\tborder-radius: 50%;\n\t\t/* Avoid background under border */\n\t\tbackground-color: var(--color-main-background);\n\t\tbackground-clip: padding-box;\n\n\t\t&, * {\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n\n\t/* Inputs inside popover supports text, submit & reset */\n\t&__textarea {\n\t\tflex: 1 1 auto;\n\t\tcolor: inherit;\n\t\tborder-color: var(--color-border-maxcontrast);\n\n\t\tmin-height: calc(var(--default-clickable-area) * 2 - $input-margin * 2); /* twice the element margin-y */\n\t\tmax-height: calc(var(--default-clickable-area) * 3 - $input-margin * 2); /* twice the element margin-y */\n\t\t// block width widening\n\t\tmin-width: calc(var(--default-clickable-area) * 4);\n\t\twidth: 100% !important;\n\t\tmargin: 0;\n\n\t\t// if disabled, change cursor\n\t\t&:disabled {\n\t\t\tcursor: default;\n\t\t}\n\n\t\t/* only show confirm borders if input is not focused */\n\t\t&:not(:active):not(:hover):not(:focus) {\n\t\t\t&:invalid {\n\t\t\t\t& + .action-text-editable__label {\n\t\t\t\t\tbackground-color: var(--color-error);\n\t\t\t\t}\n\t\t\t}\n\t\t\t&:not(:disabled) + .action-text-editable__label {\n\t\t\t\t&:active,\n\t\t\t\t&:hover,\n\t\t\t\t&:focus {\n\t\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\t\tcolor: var(--color-primary-element-text);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t&:active,\n\t\t&:hover,\n\t\t&:focus {\n\t\t\t&:not(:disabled) + .action-text-editable__label {\n\t\t\t\t/* above previous input */\n\t\t\t\tz-index: 2;\n\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t\tborder-inline-start-color: transparent;\n\t\t\t}\n\t\t}\n\t}\n}\n\n// if a form is the last of the list\n// add the same bottomMargin as the right padding\n// for visual balance\nli:last-child > .action-text-editable {\n\tmargin-bottom: calc($icon-margin - $input-margin);\n}\n\n// same for first item\nli:first-child > .action-text-editable {\n\tmargin-top: calc($icon-margin - $input-margin);\n}\n</style>\n"],"names":["_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot","_normalizeStyle","_withModifiers","_toDisplayString","_createCommentVNode","_mergeProps","_createVNode"],"mappings":";;;;;;AA0FA,MAAK,YAAU;AAAA,EACd,MAAM;AAAA,EAEN,YAAY;AAAA,IACX;AAAA,EACA;AAAA,EAED,QAAQ,CAAC,eAAe;AAAA,EAExB,OAAO;AAAA;AAAA;AAAA;AAAA,IAIN,IAAI;AAAA,MACH,MAAM;AAAA,MACN,SAAS,MAAM,YAAY,gBAAiB;AAAA,MAC5C,WAAW,QAAM,GAAG,KAAK,MAAM;AAAA,IAC/B;AAAA;AAAA;AAAA;AAAA,IAID,UAAU;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,EACD;AAAA,EAED,OAAO;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,EACA;AAAA,EAED,QAAQ;AACP,WAAO;AAAA,MACN;AAAA,IACD;AAAA,EACA;AAAA,EAED,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMT,cAAc;AACb,aAAO,CAAC,KAAK;AAAA,IACb;AAAA,IAED,aAAa;AACZ,aAAO,gBAAe;AAAA,IACtB;AAAA,EACD;AAAA,EAED,SAAS;AAAA,IACR,QAAQ,OAAO;AAMd,WAAK,MAAM,SAAS,KAAK;AAMzB,WAAK,MAAM,qBAAqB,MAAM,OAAO,KAAK;AAAA,IAClD;AAAA,IACD,SAAS,OAAO;AACf,YAAM,eAAc;AACpB,YAAM,gBAAe;AACrB,UAAI,CAAC,KAAK,UAAU;AAMnB,aAAK,MAAM,UAAU,KAAK;AAAA,aACpB;AAEN,eAAO;AAAA,MACR;AAAA,IACA;AAAA,EACD;AACF;AAtLA,MAAA,aAAA,CAAA,UAAA;AAAA,MAAA,aAAA,CAAA,IAAA;AAAA,MAAA,aAAA,CAAA,KAA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A,UAClE,gDAAO,SAAO,WAAA,SAAA,QAAA,GAAA,IAAA;AAAA,QAvEpB,CAAA,GAAA,MAAA,IAAA,UAAA;AAAA,uBA2EIN,mBAEQ,SAAA;AAAA,UAFmB,KAAK,OAAE;AAAA,UAAE,OAAM;AAAA;UACzCO,YAAsD,6BAAA;AAAA,YAApC,aAAA;AAAA,YAAa,MAAM,OAAa;AAAA;QA5EvD,GAAA,GAAA,UAAA,GAAA;AAAA,mBA2EoB,OAAQ,QAAA;AAAA;MA3E5B,GAAA,IAAA,UAAA;AAAA;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import '../assets/NcActions-
|
|
1
|
+
import '../assets/NcActions-DxcpMfrs.css';
|
|
2
2
|
import { useElementBounding, useWindowSize } from "@vueuse/core";
|
|
3
3
|
import { Comment, Fragment, Text, warn, h, ref, toRef, computed, mergeProps } from "vue";
|
|
4
4
|
import { u as useTrapStackControl } from "./useTrapStackControl-b3A_383w.mjs";
|
|
5
5
|
import { c as createElementId } from "./createElementId-DhjFt1I9.mjs";
|
|
6
|
-
import { r as register, o as t4, a as t } from "./_l10n-
|
|
6
|
+
import { r as register, o as t4, a as t } from "./_l10n-Bg-fZ9R0.mjs";
|
|
7
7
|
import { D as DotsHorizontal } from "./DotsHorizontal-AMVAlTNH.mjs";
|
|
8
8
|
import { N as NcButton } from "./NcButton-Byg8-ta1.mjs";
|
|
9
|
-
import { N as NcPopover } from "./NcPopover-
|
|
9
|
+
import { N as NcPopover } from "./NcPopover-MsWUAvsI.mjs";
|
|
10
10
|
import { N as NC_ACTIONS_CLOSE_MENU, a as NC_ACTIONS_IS_SEMANTIC_MENU } from "./useNcActions-CiGWxAJE.mjs";
|
|
11
11
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
12
12
|
function isSlotPopulated(vnodes) {
|
|
@@ -110,15 +110,6 @@ const _sfc_main = {
|
|
|
110
110
|
type: String,
|
|
111
111
|
default: t("Actions")
|
|
112
112
|
},
|
|
113
|
-
/**
|
|
114
|
-
* @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.
|
|
115
|
-
* @todo Add a check in @nextcloud/vue 9 that this prop is not provided,
|
|
116
|
-
* otherwise root element will inherit incorrect aria-hidden.
|
|
117
|
-
*/
|
|
118
|
-
ariaHidden: {
|
|
119
|
-
type: Boolean,
|
|
120
|
-
default: null
|
|
121
|
-
},
|
|
122
113
|
/**
|
|
123
114
|
* Wanted direction of the menu
|
|
124
115
|
*/
|
|
@@ -290,6 +281,9 @@ const _sfc_main = {
|
|
|
290
281
|
useTrapStackControl(() => this.opened, {
|
|
291
282
|
disabled: () => this.config.withFocusTrap
|
|
292
283
|
});
|
|
284
|
+
if ("ariaHidden" in this.$attrs) {
|
|
285
|
+
warn("[NcActions]: Do not set the ariaHidden attribute as the root element will inherit the incorrect aria-hidden.");
|
|
286
|
+
}
|
|
293
287
|
},
|
|
294
288
|
methods: {
|
|
295
289
|
/**
|
|
@@ -326,6 +320,13 @@ const _sfc_main = {
|
|
|
326
320
|
}
|
|
327
321
|
},
|
|
328
322
|
// MENU STATE MANAGEMENT
|
|
323
|
+
toggleMenu(state) {
|
|
324
|
+
if (state) {
|
|
325
|
+
this.openMenu();
|
|
326
|
+
} else {
|
|
327
|
+
this.closeMenu();
|
|
328
|
+
}
|
|
329
|
+
},
|
|
329
330
|
openMenu() {
|
|
330
331
|
if (this.opened) {
|
|
331
332
|
return;
|
|
@@ -626,20 +627,21 @@ const _sfc_main = {
|
|
|
626
627
|
{
|
|
627
628
|
ref: "popover",
|
|
628
629
|
delay: 0,
|
|
629
|
-
handleResize: true,
|
|
630
630
|
shown: this.opened,
|
|
631
631
|
placement: this.placement,
|
|
632
632
|
boundary: this.boundariesElement,
|
|
633
633
|
container: this.container,
|
|
634
|
-
...this.manualOpen && {
|
|
634
|
+
...this.manualOpen && {
|
|
635
|
+
triggers: []
|
|
636
|
+
},
|
|
637
|
+
closeOnClickOutside: !this.manualOpen,
|
|
635
638
|
popoverBaseClass: "action-item__popper",
|
|
636
639
|
popupRole: this.config.popupRole,
|
|
637
|
-
setReturnFocus: this.config.withFocusTrap ? this.$refs.triggerButton?.$el :
|
|
640
|
+
setReturnFocus: this.config.withFocusTrap ? this.$refs.triggerButton?.$el : void 0,
|
|
638
641
|
focusTrap: this.config.withFocusTrap,
|
|
639
|
-
|
|
642
|
+
"onUpdate:shown": this.toggleMenu,
|
|
640
643
|
onAfterShow: this.onOpened,
|
|
641
|
-
onAfterClose: this.onClosed
|
|
642
|
-
onHide: this.closeMenu
|
|
644
|
+
onAfterClose: this.onClosed
|
|
643
645
|
},
|
|
644
646
|
{
|
|
645
647
|
trigger: () => h(NcButton, {
|
|
@@ -742,9 +744,9 @@ const _sfc_main = {
|
|
|
742
744
|
);
|
|
743
745
|
}
|
|
744
746
|
};
|
|
745
|
-
const NcActions = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
747
|
+
const NcActions = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d9d3fe59"]]);
|
|
746
748
|
export {
|
|
747
749
|
NcActions as N,
|
|
748
750
|
isSlotPopulated as i
|
|
749
751
|
};
|
|
750
|
-
//# sourceMappingURL=NcActions-
|
|
752
|
+
//# sourceMappingURL=NcActions-DS88I6qk.mjs.map
|