@nextcloud/vue 9.0.0-rc.6 → 9.0.0-rc.7
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 +47 -3
- package/README.md +5 -4
- package/dist/assets/{NcActionButton-Dz2EBAuD.css → NcActionButton-D7bnKlOt.css} +18 -18
- package/dist/assets/{NcActionButtonGroup-BLIEEeG3.css → NcActionButtonGroup-CRTH2v24.css} +8 -8
- package/dist/assets/{NcActionCheckbox--lTDnNsx.css → NcActionCheckbox-BeT6fCCy.css} +12 -12
- package/dist/assets/{NcActionInput-BrCsR1ZO.css → NcActionInput-Cma_lx5u.css} +62 -62
- package/dist/assets/{NcActionLink-VngQl-C2.css → NcActionLink-DjrAv1MG.css} +13 -13
- package/dist/assets/{NcActionRadio-DnAjyubC.css → NcActionRadio-DgdLD238.css} +12 -12
- package/dist/assets/{NcActionRouter-CBVOuCQ3.css → NcActionRouter-DeYzeM5W.css} +16 -16
- package/dist/assets/{NcActionText-BtzLDZeJ.css → NcActionText-D9InmayH.css} +18 -18
- package/dist/assets/{NcActionTextEditable-vhpb77-W.css → NcActionTextEditable-m6K3-kXV.css} +60 -60
- package/dist/assets/{NcActions-CG3xO48Y.css → NcActions-9-KEdXq2.css} +13 -13
- package/dist/assets/{NcAppContent-vj2DL4Yr.css → NcAppContent-BC1UrvXW.css} +23 -23
- package/dist/assets/{NcAppNavigation-Dx5I2eEV.css → NcAppNavigation-DzSqLZLH.css} +15 -15
- package/dist/assets/{NcAppNavigationCaption-B6mZd0E3.css → NcAppNavigationCaption-HUg9fMCm.css} +7 -7
- package/dist/assets/{NcAppNavigationIconBullet-CeBYVy6t.css → NcAppNavigationIconBullet-DLQJkObX.css} +3 -3
- package/dist/assets/{NcAppNavigationItem-D0G4tdGd.css → NcAppNavigationItem-E3wkH_dN.css} +43 -39
- package/dist/assets/{NcAppNavigationList-CLLHyHIn.css → NcAppNavigationList--36j6Acm.css} +2 -2
- package/dist/assets/{NcAppNavigationNew-Ba3wWpcY.css → NcAppNavigationNew-Bn8zj5lM.css} +3 -3
- package/dist/assets/{NcAppNavigationNewItem-CCu1yQxq.css → NcAppNavigationNewItem-Dmdd1YSE.css} +39 -33
- package/dist/assets/{NcAppNavigationSearch-C1BuilVS.css → NcAppNavigationSearch-CQamlS4X.css} +5 -5
- package/dist/assets/{NcAppNavigationSettings-B0I7HR1V.css → NcAppNavigationSettings-Bt0dnsjR.css} +7 -8
- package/dist/assets/{NcAppSettingsDialog-705Crvh8.css → NcAppSettingsDialog-CW1IxPWr.css} +10 -10
- package/dist/assets/{NcAppSettingsSection-DnDcGk1v.css → NcAppSettingsSection-C4JF60e-.css} +3 -3
- package/dist/assets/{NcAppSidebar-CZ-bJUxG.css → NcAppSidebar-DUiFE7vz.css} +58 -58
- package/dist/assets/{NcAppSidebarTab-cWhpTGp7.css → NcAppSidebarTab-Xd3HTDbw.css} +4 -4
- package/dist/assets/{NcAvatar-DETOZR8d.css → NcAvatar-DhTOlvlb.css} +24 -24
- package/dist/assets/{NcBreadcrumb-Dll7O4N9.css → NcBreadcrumb-CHjeSh0y.css} +15 -15
- package/dist/assets/{NcBreadcrumbs-D2wff82k.css → NcBreadcrumbs-DYfGaSjT.css} +6 -6
- package/dist/assets/{NcButton-BWD8LdCm.css → NcButton-BjcEkfk2.css} +54 -46
- package/dist/assets/{NcCheckboxRadioSwitch-Cbnc4p0H.css → NcCheckboxRadioSwitch-CJW-RB5j.css} +54 -44
- package/dist/assets/{NcChip-1ZmWY_6e.css → NcChip-Cjdo3xPB.css} +9 -9
- package/dist/assets/{NcCollectionList-C7_FPg95.css → NcCollectionList-D9dOsdP2.css} +42 -42
- package/dist/assets/{NcColorPicker-RX6YpqSU.css → NcColorPicker-BUxqqYfq.css} +28 -28
- package/dist/assets/{NcContent-voMuob0w.css → NcContent-CVIwhwfc.css} +10 -10
- package/dist/assets/{NcCounterBubble-C0CtLaMW.css → NcCounterBubble-ZnteskDR.css} +7 -7
- package/dist/assets/{NcDashboardWidget-CTP_ajin.css → NcDashboardWidget-DD06i7ws.css} +12 -12
- package/dist/assets/{NcDashboardWidgetItem-DYwI3Qof.css → NcDashboardWidgetItem-DPVZ3Oso.css} +12 -12
- package/dist/assets/{NcDateTimePicker-D76SV5EC.css → NcDateTimePicker-D0VMSpM3.css} +232 -232
- package/dist/assets/{NcDateTimePickerNative-B7hWPWho.css → NcDateTimePickerNative-BP6eg8aU.css} +13 -13
- package/dist/assets/{NcDialog-DVe1SvHJ.css → NcDialog-GKchMDSB.css} +15 -15
- package/dist/assets/{NcEllipsisedOption-BNLv_eyF.css → NcEllipsisedOption-CPWbbgBy.css} +5 -5
- package/dist/assets/NcEmojiPicker-BO_GV-CM.css +547 -0
- package/dist/assets/{NcHeaderButton-BZeIVAHI.css → NcHeaderButton-CVOQgRjm.css} +9 -9
- package/dist/assets/{NcHeaderMenu-U_duiDuh.css → NcHeaderMenu-BkGG39vE.css} +13 -13
- package/dist/assets/{NcIconSvgWrapper-CJfAwN6-.css → NcIconSvgWrapper-D6qXQDNo.css} +10 -10
- package/dist/assets/{NcInputConfirmCancel-DNNS3DDJ.css → NcInputConfirmCancel-BrdZEfr2.css} +5 -5
- package/dist/assets/{NcInputField-Xm6zpzck.css → NcInputField-CVSrajMb.css} +66 -44
- package/dist/assets/{NcListItem-CAWaHeb2.css → NcListItem-BRTO5Id3.css} +41 -41
- package/dist/assets/{NcListItemIcon-BVhiRo5R.css → NcListItemIcon-OOjV0jWx.css} +13 -13
- package/dist/assets/{NcLoadingIcon-B-JbyXuV.css → NcLoadingIcon-CWUlo4XY.css} +3 -3
- package/dist/assets/{NcMentionBubble-lpms2_3A.css → NcMentionBubble-ptHUq68a.css} +9 -9
- package/dist/assets/{NcModal-x_u5Tqtc.css → NcModal-ok4bUsLE.css} +61 -61
- package/dist/assets/{NcNoteCard-DGpRZQtS.css → NcNoteCard-l5nIN9Hg.css} +13 -9
- package/dist/assets/{NcPasswordField-Ck5YCufb.css → NcPasswordField-CAKOUN91.css} +2 -2
- package/dist/assets/{NcPopover-BzkXE_af.css → NcPopover-CZ3pMU6Y.css} +16 -16
- package/dist/assets/{NcProgressBar-BZzxurHX.css → NcProgressBar-BAPOXMAL.css} +12 -12
- package/dist/assets/{NcRelatedResourcesPanel-9I4RRIks.css → NcRelatedResourcesPanel-BVdRCi64.css} +65 -65
- package/dist/assets/{NcRichContenteditable-DLvvIjC_.css → NcRichContenteditable-zvOx7ivB.css} +20 -20
- package/dist/assets/{NcRichText-Fp8zf8zq.css → NcRichText-DujetYXl.css} +88 -88
- package/dist/assets/NcSelectUsers-BWhtNRbI.css +4 -0
- package/dist/assets/{NcSettingsInputText-B2b1M_wK.css → NcSettingsInputText-Dj_6fuUU.css} +5 -5
- package/dist/assets/{NcSettingsSection-CxQtVrUq.css → NcSettingsSection-f5rBJsKJ.css} +7 -7
- package/dist/assets/{NcSettingsSelectGroup-BH0B-4BJ.css → NcSettingsSelectGroup-BxvEAWNm.css} +2 -2
- package/dist/assets/NcTextArea-D7H1UNAd.css +136 -0
- package/dist/assets/{NcUserBubble-CqaL0Oxv.css → NcUserBubble-ChgvvPPf.css} +8 -8
- package/dist/assets/{NcUserStatusIcon-Du6m_1El.css → NcUserStatusIcon-D8HqS9GC.css} +8 -4
- package/dist/assets/{referencePickerModal-D80hwmre.css → referencePickerModal-B9tq1n_R.css} +60 -77
- package/dist/chunks/{NcActionButton-k1JvZ5eE.mjs → NcActionButton-DseKq57Q.mjs} +8 -7
- package/dist/chunks/NcActionButton-DseKq57Q.mjs.map +1 -0
- package/dist/chunks/{NcActionButtonGroup-WjVxibM-.mjs → NcActionButtonGroup-eJGS5If0.mjs} +4 -4
- package/dist/chunks/{NcActionButtonGroup-WjVxibM-.mjs.map → NcActionButtonGroup-eJGS5If0.mjs.map} +1 -1
- package/dist/chunks/{NcActionCheckbox-DLPDTACR.mjs → NcActionCheckbox-CwrO3g3I.mjs} +3 -3
- package/dist/chunks/NcActionCheckbox-CwrO3g3I.mjs.map +1 -0
- package/dist/chunks/{NcActionInput-Cu77Jgzr.mjs → NcActionInput-Cby01w-7.mjs} +16 -16
- package/dist/chunks/NcActionInput-Cby01w-7.mjs.map +1 -0
- package/dist/chunks/{NcActionLink-BEo7zmXX.mjs → NcActionLink-afakPM_N.mjs} +8 -9
- package/dist/chunks/NcActionLink-afakPM_N.mjs.map +1 -0
- package/dist/chunks/{NcActionRadio-CPoWB58D.mjs → NcActionRadio-ByCpOD0q.mjs} +5 -5
- package/dist/chunks/NcActionRadio-ByCpOD0q.mjs.map +1 -0
- package/dist/chunks/{NcActionRouter-ERoQjJKv.mjs → NcActionRouter-oT-YU_jf.mjs} +10 -11
- package/dist/chunks/NcActionRouter-oT-YU_jf.mjs.map +1 -0
- package/dist/chunks/{NcActionText-16Mj4-P1.mjs → NcActionText-uKvLcEY6.mjs} +5 -5
- package/dist/chunks/NcActionText-uKvLcEY6.mjs.map +1 -0
- package/dist/chunks/{NcActionTextEditable-BLkdbR1d.mjs → NcActionTextEditable-CoAscywz.mjs} +7 -7
- package/dist/chunks/NcActionTextEditable-CoAscywz.mjs.map +1 -0
- package/dist/chunks/{NcActions-CDD8eIxC.mjs → NcActions-BOqfKgN5.mjs} +24 -19
- package/dist/chunks/NcActions-BOqfKgN5.mjs.map +1 -0
- package/dist/chunks/{NcAppContent-BuPSAcBt.mjs → NcAppContent-CBiklfOg.mjs} +11 -11
- package/dist/chunks/NcAppContent-CBiklfOg.mjs.map +1 -0
- package/dist/chunks/{NcAppContentList-DnLY_sWw.mjs → NcAppContentList-DYFsuDKh.mjs} +7 -1
- package/dist/chunks/NcAppContentList-DYFsuDKh.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigation-ByAPTGke.mjs → NcAppNavigation-VmhZBTF5.mjs} +23 -12
- package/dist/chunks/NcAppNavigation-VmhZBTF5.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationCaption-SJPzGdtT.mjs → NcAppNavigationCaption-zs07YHtS.mjs} +7 -5
- package/dist/chunks/NcAppNavigationCaption-zs07YHtS.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationIconBullet-B1kc4u65.mjs → NcAppNavigationIconBullet-PrlhOoE9.mjs} +6 -3
- package/dist/chunks/NcAppNavigationIconBullet-PrlhOoE9.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationItem-0xVXJPEm.mjs → NcAppNavigationItem-DpimA76Q.mjs} +39 -25
- package/dist/chunks/NcAppNavigationItem-DpimA76Q.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationList-DX_Yo23V.mjs → NcAppNavigationList-BX0wE-dB.mjs} +3 -3
- package/dist/chunks/{NcAppNavigationList-DX_Yo23V.mjs.map → NcAppNavigationList-BX0wE-dB.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNew-CjJgIwfl.mjs → NcAppNavigationNew-Y50s6jTC.mjs} +14 -4
- package/dist/chunks/NcAppNavigationNew-Y50s6jTC.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationNewItem-BCFq6zq8.mjs → NcAppNavigationNewItem-CkWp0oFr.mjs} +8 -8
- package/dist/chunks/NcAppNavigationNewItem-CkWp0oFr.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationSearch-Bnr0rygy.mjs → NcAppNavigationSearch-Cs14jpSe.mjs} +6 -6
- package/dist/chunks/NcAppNavigationSearch-Cs14jpSe.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationSettings-D_u5pIPX.mjs +98 -0
- package/dist/chunks/NcAppNavigationSettings-D_u5pIPX.mjs.map +1 -0
- package/dist/chunks/{NcAppSettingsDialog-DBI8-FZa.mjs → NcAppSettingsDialog-Dy2SrGfl.mjs} +10 -8
- package/dist/chunks/NcAppSettingsDialog-Dy2SrGfl.mjs.map +1 -0
- package/dist/chunks/{NcAppSettingsSection-CssmXyZ0.mjs → NcAppSettingsSection-tccU68DQ.mjs} +9 -3
- package/dist/chunks/NcAppSettingsSection-tccU68DQ.mjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-CyyFi0n6.mjs → NcAppSidebar-BNTlPC1G.mjs} +40 -27
- package/dist/chunks/NcAppSidebar-BNTlPC1G.mjs.map +1 -0
- package/dist/chunks/NcAppSidebarHeader.vue_vue_type_script_setup_true_lang-0j0aFDeK.mjs.map +1 -1
- package/dist/chunks/{NcAppSidebarTab-D1RmFRTu.mjs → NcAppSidebarTab-Cjetm3Fs.mjs} +9 -6
- package/dist/chunks/NcAppSidebarTab-Cjetm3Fs.mjs.map +1 -0
- package/dist/chunks/{NcAvatar-CnRCSalb.mjs → NcAvatar-42dhVtul.mjs} +30 -29
- package/dist/chunks/NcAvatar-42dhVtul.mjs.map +1 -0
- package/dist/chunks/NcBlurHash-BiFktE2N.mjs.map +1 -1
- package/dist/chunks/{NcBreadcrumb-B97vQkN2.mjs → NcBreadcrumb-C86Yxww0.mjs} +14 -9
- package/dist/chunks/NcBreadcrumb-C86Yxww0.mjs.map +1 -0
- package/dist/chunks/{NcBreadcrumbs-CvUgliJa.mjs → NcBreadcrumbs-BTFyDGO2.mjs} +43 -40
- package/dist/chunks/NcBreadcrumbs-BTFyDGO2.mjs.map +1 -0
- package/dist/chunks/{NcButton-BMnvzy1A.mjs → NcButton-DkC5k3Lb.mjs} +7 -5
- package/dist/chunks/NcButton-DkC5k3Lb.mjs.map +1 -0
- package/dist/chunks/{NcCheckboxRadioSwitch-Da0F7y0G.mjs → NcCheckboxRadioSwitch-iCknuL0_.mjs} +136 -82
- package/dist/chunks/NcCheckboxRadioSwitch-iCknuL0_.mjs.map +1 -0
- package/dist/chunks/{NcChip-DuaqxToL.mjs → NcChip-Dplke0gD.mjs} +8 -8
- package/dist/chunks/NcChip-Dplke0gD.mjs.map +1 -0
- package/dist/chunks/{NcCollectionList-Cr0T14g-.mjs → NcCollectionList-IC-VyCa-.mjs} +25 -21
- package/dist/chunks/NcCollectionList-IC-VyCa-.mjs.map +1 -0
- package/dist/chunks/{NcColorPicker-D6g3v7Qc.mjs → NcColorPicker-BPd1i3-9.mjs} +11 -11
- package/dist/chunks/NcColorPicker-BPd1i3-9.mjs.map +1 -0
- package/dist/chunks/{NcContent-DV3z9w_V.mjs → NcContent-BAiLhI_2.mjs} +9 -8
- package/dist/chunks/{NcContent-DV3z9w_V.mjs.map → NcContent-BAiLhI_2.mjs.map} +1 -1
- package/dist/chunks/{NcCounterBubble-Bop3e-Tr.mjs → NcCounterBubble-CxxHHh8i.mjs} +3 -3
- package/dist/chunks/{NcCounterBubble-Bop3e-Tr.mjs.map → NcCounterBubble-CxxHHh8i.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-Wkx_9xKh.mjs → NcDashboardWidget-P6DhIXT2.mjs} +8 -8
- package/dist/chunks/NcDashboardWidget-P6DhIXT2.mjs.map +1 -0
- package/dist/chunks/{NcDashboardWidgetItem-CMrxp0Lc.mjs → NcDashboardWidgetItem-GGmhjTfk.mjs} +7 -7
- package/dist/chunks/NcDashboardWidgetItem-GGmhjTfk.mjs.map +1 -0
- package/dist/chunks/NcDateTime.vue_vue_type_script_setup_true_lang-B0Lci6v0.mjs.map +1 -1
- package/dist/chunks/{NcDateTimePicker-BarX7J-6.mjs → NcDateTimePicker-DmeWERxv.mjs} +10 -10
- package/dist/chunks/NcDateTimePicker-DmeWERxv.mjs.map +1 -0
- package/dist/chunks/{NcDateTimePickerNative-BOoA1aEf.mjs → NcDateTimePickerNative-BiU3SIRj.mjs} +5 -5
- package/dist/chunks/NcDateTimePickerNative-BiU3SIRj.mjs.map +1 -0
- package/dist/chunks/{NcDialog-IKWAQK-K.mjs → NcDialog-DmKbeOcJ.mjs} +16 -13
- package/dist/chunks/NcDialog-DmKbeOcJ.mjs.map +1 -0
- package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-BT66zCa4.mjs → NcDialogButton.vue_vue_type_script_setup_true_lang-BvBSeEuo.mjs} +6 -6
- package/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang-BvBSeEuo.mjs.map +1 -0
- package/dist/chunks/{NcEllipsisedOption-C8uNDC-j.mjs → NcEllipsisedOption-dT-CtXYp.mjs} +3 -3
- package/dist/chunks/NcEllipsisedOption-dT-CtXYp.mjs.map +1 -0
- package/dist/chunks/{NcEmojiPicker-DL9u7r5m.mjs → NcEmojiPicker-VUnUOWfg.mjs} +127 -121
- package/dist/chunks/NcEmojiPicker-VUnUOWfg.mjs.map +1 -0
- package/dist/chunks/{NcHeaderButton-DAxGG1vc.mjs → NcHeaderButton-DafXYbXB.mjs} +4 -4
- package/dist/chunks/NcHeaderButton-DafXYbXB.mjs.map +1 -0
- package/dist/chunks/{NcHeaderMenu-DcBWHaZv.mjs → NcHeaderMenu-fnBUbMrU.mjs} +15 -12
- package/dist/chunks/NcHeaderMenu-fnBUbMrU.mjs.map +1 -0
- package/dist/chunks/NcHighlight.vue_vue_type_script_lang-DnWQDM_2.mjs.map +1 -1
- package/dist/chunks/{NcIconSvgWrapper-CprKb_SE.mjs → NcIconSvgWrapper-5AA93z-F.mjs} +4 -4
- package/dist/chunks/{NcIconSvgWrapper-CprKb_SE.mjs.map → NcIconSvgWrapper-5AA93z-F.mjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-BG4KRrhr.mjs → NcInputConfirmCancel-DC6lvX7Z.mjs} +11 -5
- package/dist/chunks/NcInputConfirmCancel-DC6lvX7Z.mjs.map +1 -0
- package/dist/chunks/{NcInputField-Cz1RwzSy.mjs → NcInputField-DugqxUR2.mjs} +13 -10
- package/dist/chunks/NcInputField-DugqxUR2.mjs.map +1 -0
- package/dist/chunks/{NcListItem-CwAOX69Q.mjs → NcListItem-C2YXq4EL.mjs} +8 -5
- package/dist/chunks/NcListItem-C2YXq4EL.mjs.map +1 -0
- package/dist/chunks/{NcListItemIcon-26IdztJ2.mjs → NcListItemIcon-Du1PyhkH.mjs} +11 -10
- package/dist/chunks/NcListItemIcon-Du1PyhkH.mjs.map +1 -0
- package/dist/chunks/{NcLoadingIcon-CiMp51wb.mjs → NcLoadingIcon-b_ajZ_nQ.mjs} +3 -3
- package/dist/chunks/NcLoadingIcon-b_ajZ_nQ.mjs.map +1 -0
- package/dist/chunks/{NcMentionBubble.vue_vue_type_style_index_0_scoped_25f4d6e1_lang-aMwzB20D.mjs → NcMentionBubble.vue_vue_type_style_index_0_scoped_45238efd_lang-D6LzDiYf.mjs} +2 -2
- package/dist/chunks/NcMentionBubble.vue_vue_type_style_index_0_scoped_45238efd_lang-D6LzDiYf.mjs.map +1 -0
- package/dist/chunks/{NcModal-CdXZncEM.mjs → NcModal-Jb_FjSoh.mjs} +60 -53
- package/dist/chunks/NcModal-Jb_FjSoh.mjs.map +1 -0
- package/dist/chunks/{NcNoteCard-C8JB31rn.mjs → NcNoteCard-BBnJMdJu.mjs} +11 -7
- package/dist/chunks/NcNoteCard-BBnJMdJu.mjs.map +1 -0
- package/dist/chunks/{NcPasswordField-BlbWNpfS.mjs → NcPasswordField-F-JcomYe.mjs} +9 -9
- package/dist/chunks/NcPasswordField-F-JcomYe.mjs.map +1 -0
- package/dist/chunks/{NcPopover-Zs7qt_Zd.mjs → NcPopover-D8iSVK-p.mjs} +40 -12
- package/dist/chunks/NcPopover-D8iSVK-p.mjs.map +1 -0
- package/dist/chunks/{NcProgressBar-Ds0zTPYX.mjs → NcProgressBar-DDMAo4h-.mjs} +5 -5
- package/dist/chunks/NcProgressBar-DDMAo4h-.mjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-DBOgpeIK.mjs → NcRelatedResourcesPanel-BpH5XQ76.mjs} +104 -100
- package/dist/chunks/NcRelatedResourcesPanel-BpH5XQ76.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-BmrCeWNL.mjs → NcRichContenteditable-CknkQPrW.mjs} +81 -32
- package/dist/chunks/NcRichContenteditable-CknkQPrW.mjs.map +1 -0
- package/dist/chunks/{NcRichText-G8kzsdwx.mjs → NcRichText-4S-Bcw6_.mjs} +180 -174
- package/dist/chunks/NcRichText-4S-Bcw6_.mjs.map +1 -0
- package/dist/chunks/NcSavingIndicatorIcon.vue_vue_type_script_setup_true_lang-jUf1K561.mjs.map +1 -1
- package/dist/chunks/{NcSelect-C6qHqfAO.mjs → NcSelect-CqmU4nl3.mjs} +10 -11
- package/dist/chunks/NcSelect-CqmU4nl3.mjs.map +1 -0
- package/dist/chunks/{NcSelectTags-Capp69AW.mjs → NcSelectTags-CcsDvt0V.mjs} +17 -16
- package/dist/chunks/NcSelectTags-CcsDvt0V.mjs.map +1 -0
- package/dist/chunks/{NcSelectUsers-BVn8co_d.mjs → NcSelectUsers-BLzx7FTX.mjs} +5 -5
- package/dist/chunks/NcSelectUsers-BLzx7FTX.mjs.map +1 -0
- package/dist/chunks/{NcSettingsInputText-C8Gtj3Ht.mjs → NcSettingsInputText-BmOtUODF.mjs} +4 -4
- package/dist/chunks/NcSettingsInputText-BmOtUODF.mjs.map +1 -0
- package/dist/chunks/{NcSettingsSection-CtSg7lH8.mjs → NcSettingsSection-B1XS0NQu.mjs} +4 -4
- package/dist/chunks/{NcSettingsSection-CtSg7lH8.mjs.map → NcSettingsSection-B1XS0NQu.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-C1DEcBNJ.mjs → NcSettingsSelectGroup-BmtDlJ3e.mjs} +15 -17
- package/dist/chunks/NcSettingsSelectGroup-BmtDlJ3e.mjs.map +1 -0
- package/dist/chunks/{NcTextArea-BAl6EP4Z.mjs → NcTextArea-CLM4W-yg.mjs} +19 -10
- package/dist/chunks/NcTextArea-CLM4W-yg.mjs.map +1 -0
- package/dist/chunks/{NcTextField.vue_vue_type_script_setup_true_lang-DzcUUWHO.mjs → NcTextField.vue_vue_type_script_setup_true_lang-BN-Pgz4E.mjs} +7 -9
- package/dist/chunks/NcTextField.vue_vue_type_script_setup_true_lang-BN-Pgz4E.mjs.map +1 -0
- package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-Dsco6qEJ.mjs → NcTimezonePicker.vue_vue_type_script_setup_true_lang-CERjSiE5.mjs} +4 -4
- package/dist/chunks/NcTimezonePicker.vue_vue_type_script_setup_true_lang-CERjSiE5.mjs.map +1 -0
- package/dist/chunks/{NcUserBubble-CqKN_gM4.mjs → NcUserBubble-CxGixaPY.mjs} +9 -9
- package/dist/chunks/NcUserBubble-CxGixaPY.mjs.map +1 -0
- package/dist/chunks/{NcUserStatusIcon-CDEUKK60.mjs → NcUserStatusIcon-BUBFkE3m.mjs} +14 -14
- package/dist/chunks/NcUserStatusIcon-BUBFkE3m.mjs.map +1 -0
- package/dist/chunks/NcVNodes.vue_vue_type_script_lang-BqUHinRZ.mjs.map +1 -1
- package/dist/chunks/{_l10n-ZllQPIu_.mjs → _l10n-CiWgAjJZ.mjs} +24 -26
- package/dist/chunks/_l10n-CiWgAjJZ.mjs.map +1 -0
- package/dist/chunks/{actionText-DdSwf9le.mjs → actionText-DYzDdbVe.mjs} +5 -4
- package/dist/chunks/{actionText-DdSwf9le.mjs.map → actionText-DYzDdbVe.mjs.map} +1 -1
- package/dist/chunks/{autolink-Y0rlJ_CI.mjs → autolink-U5pBzLgI.mjs} +9 -8
- package/dist/chunks/autolink-U5pBzLgI.mjs.map +1 -0
- package/dist/chunks/{colors-B71CwSnx.mjs → colors-C_np5wf3.mjs} +10 -3
- package/dist/chunks/colors-C_np5wf3.mjs.map +1 -0
- package/dist/chunks/constants-Bls5liKo.mjs.map +1 -1
- package/dist/chunks/constants-DrSznhwy.mjs +11 -0
- package/dist/chunks/constants-DrSznhwy.mjs.map +1 -0
- package/dist/chunks/{customPickerElements-BmkXSNdO.mjs → customPickerElements-4pQTZUnk.mjs} +6 -6
- package/dist/chunks/customPickerElements-4pQTZUnk.mjs.map +1 -0
- package/dist/chunks/emoji-BY_D0V5K.mjs.map +1 -1
- package/dist/chunks/legacy-DcjXBL_t.mjs +6 -0
- package/dist/chunks/legacy-DcjXBL_t.mjs.map +1 -0
- package/dist/chunks/{mdi-B9TPxVka.mjs → mdi-DXaZM2k3.mjs} +7 -3
- package/dist/chunks/{mdi-B9TPxVka.mjs.map → mdi-DXaZM2k3.mjs.map} +1 -1
- package/dist/chunks/{referencePickerModal-BtI-8rNN.mjs → referencePickerModal-tSRu6940.mjs} +179 -174
- package/dist/chunks/referencePickerModal-tSRu6940.mjs.map +1 -0
- package/dist/chunks/useNcActions-CiGWxAJE.mjs.map +1 -1
- package/dist/chunks/{useTrapStackControl-yqM2SDEs.mjs → useTrapStackControl-B6cEicto.mjs} +2 -3
- package/dist/chunks/useTrapStackControl-B6cEicto.mjs.map +1 -0
- package/dist/components/NcActionButton/NcActionButton.vue.d.ts +2 -1
- package/dist/components/NcActionButton/index.mjs +1 -1
- package/dist/components/NcActionButtonGroup/index.mjs +1 -1
- package/dist/components/NcActionCheckbox/index.mjs +1 -1
- package/dist/components/NcActionInput/NcActionInput.vue.d.ts +1 -1
- package/dist/components/NcActionInput/index.mjs +1 -1
- package/dist/components/NcActionLink/index.mjs +1 -1
- package/dist/components/NcActionRadio/index.mjs +1 -1
- package/dist/components/NcActionRouter/NcActionRouter.vue.d.ts +1 -5
- package/dist/components/NcActionRouter/index.mjs +1 -1
- package/dist/components/NcActionText/index.mjs +1 -1
- package/dist/components/NcActionTextEditable/index.mjs +1 -1
- package/dist/components/NcActions/NcActions.vue.d.ts +11 -9
- package/dist/components/NcActions/index.mjs +1 -1
- package/dist/components/NcActions/useNcActions.d.ts +1 -1
- package/dist/components/NcAppContent/index.mjs +1 -1
- package/dist/components/NcAppContentList/NcAppContentList.vue.d.ts +12 -0
- package/dist/components/NcAppContentList/index.mjs +1 -1
- package/dist/components/NcAppNavigation/index.mjs +1 -1
- package/dist/components/NcAppNavigationCaption/NcAppNavigationCaption.vue.d.ts +9 -9
- package/dist/components/NcAppNavigationCaption/index.mjs +1 -1
- package/dist/components/NcAppNavigationIconBullet/NcAppNavigationIconBullet.vue.d.ts +6 -0
- package/dist/components/NcAppNavigationIconBullet/index.mjs +1 -1
- package/dist/components/NcAppNavigationItem/NcAppNavigationIconCollapsible.vue.d.ts +32 -14
- package/dist/components/NcAppNavigationItem/NcAppNavigationItem.vue.d.ts +38 -32
- package/dist/components/NcAppNavigationItem/NcInputConfirmCancel.vue.d.ts +21 -9
- package/dist/components/NcAppNavigationItem/index.mjs +1 -1
- package/dist/components/NcAppNavigationList/index.d.ts +4 -0
- package/dist/components/NcAppNavigationList/index.mjs +1 -1
- package/dist/components/NcAppNavigationNew/NcAppNavigationNew.vue.d.ts +29 -9
- package/dist/components/NcAppNavigationNew/index.mjs +1 -1
- package/dist/components/NcAppNavigationNewItem/NcAppNavigationNewItem.vue.d.ts +9 -9
- package/dist/components/NcAppNavigationNewItem/index.mjs +1 -1
- package/dist/components/NcAppNavigationSearch/index.mjs +1 -1
- package/dist/components/NcAppNavigationSettings/NcAppNavigationSettings.vue.d.ts +1 -0
- package/dist/components/NcAppNavigationSettings/index.mjs +1 -1
- package/dist/components/NcAppSettingsDialog/NcAppSettingsDialog.vue.d.ts +3 -0
- package/dist/components/NcAppSettingsDialog/index.mjs +1 -1
- package/dist/components/NcAppSettingsSection/NcAppSettingsSection.vue.d.ts +12 -0
- package/dist/components/NcAppSettingsSection/index.mjs +1 -1
- package/dist/components/NcAppSidebar/NcAppSidebar.vue.d.ts +44 -21
- package/dist/components/NcAppSidebar/index.mjs +1 -1
- package/dist/components/NcAppSidebarTab/NcAppSidebarTab.vue.d.ts +6 -0
- package/dist/components/NcAppSidebarTab/index.mjs +1 -1
- package/dist/components/NcAvatar/NcAvatar.vue.d.ts +20 -23
- package/dist/components/NcAvatar/index.mjs +1 -1
- package/dist/components/NcBreadcrumb/NcBreadcrumb.vue.d.ts +18 -18
- package/dist/components/NcBreadcrumb/index.mjs +1 -1
- package/dist/components/NcBreadcrumbs/NcBreadcrumbs.vue.d.ts +28 -32
- package/dist/components/NcBreadcrumbs/index.mjs +1 -1
- package/dist/components/NcButton/NcButton.vue.d.ts +8 -3
- package/dist/components/NcButton/index.mjs +1 -1
- package/dist/components/NcCheckboxRadioSwitch/index.mjs +1 -1
- package/dist/components/NcChip/NcChip.vue.d.ts +2 -0
- package/dist/components/NcChip/index.mjs +1 -1
- package/dist/components/NcCollectionList/NcCollectionList.vue.d.ts +48 -60
- package/dist/components/NcCollectionList/NcCollectionListItem.vue.d.ts +40 -32
- package/dist/components/NcCollectionList/index.mjs +1 -1
- package/dist/components/NcCollectionList/service.d.ts +7 -0
- package/dist/components/NcCollectionList/useCollections.d.ts +1 -5
- package/dist/components/NcColorPicker/index.mjs +1 -1
- package/dist/components/NcContent/constants.d.ts +9 -0
- package/dist/components/NcContent/index.mjs +1 -1
- package/dist/components/NcCounterBubble/index.mjs +1 -1
- package/dist/components/NcDashboardWidget/NcDashboardWidget.vue.d.ts +47 -55
- package/dist/components/NcDashboardWidget/index.mjs +1 -1
- package/dist/components/NcDashboardWidgetItem/NcDashboardWidgetItem.vue.d.ts +28 -32
- package/dist/components/NcDashboardWidgetItem/index.mjs +1 -1
- package/dist/components/NcDateTimePicker/NcDateTimePicker.vue.d.ts +4 -2
- package/dist/components/NcDateTimePicker/index.mjs +1 -1
- package/dist/components/NcDateTimePickerNative/index.mjs +1 -1
- package/dist/components/NcDialog/NcDialog.vue.d.ts +2 -1
- package/dist/components/NcDialog/index.mjs +1 -1
- package/dist/components/NcDialogButton/index.mjs +1 -1
- package/dist/components/NcEllipsisedOption/index.mjs +1 -1
- package/dist/components/NcEmojiPicker/NcEmojiPicker.vue.d.ts +15 -10
- package/dist/components/NcEmojiPicker/index.mjs +1 -1
- package/dist/components/NcHeaderButton/index.mjs +1 -1
- package/dist/components/NcHeaderMenu/NcHeaderMenu.vue.d.ts +17 -17
- package/dist/components/NcHeaderMenu/index.mjs +1 -1
- package/dist/components/NcIconSvgWrapper/index.mjs +1 -1
- package/dist/components/NcInputField/NcInputField.vue.d.ts +4 -0
- package/dist/components/NcInputField/index.mjs +1 -1
- package/dist/components/NcListItem/NcListItem.vue.d.ts +15 -9
- package/dist/components/NcListItem/index.mjs +1 -1
- package/dist/components/NcListItemIcon/NcListItemIcon.vue.d.ts +20 -23
- package/dist/components/NcListItemIcon/index.mjs +1 -1
- package/dist/components/NcLoadingIcon/index.mjs +1 -1
- package/dist/components/NcModal/index.mjs +1 -1
- package/dist/components/NcNoteCard/index.mjs +1 -1
- package/dist/components/NcPasswordField/index.mjs +1 -1
- package/dist/components/NcPopover/NcPopoverTriggerProvider.vue.d.ts +12 -0
- package/dist/components/NcPopover/index.mjs +1 -1
- package/dist/components/NcProgressBar/NcProgressBar.vue.d.ts +6 -0
- package/dist/components/NcProgressBar/index.mjs +1 -1
- package/dist/components/NcRelatedResourcesPanel/NcRelatedResourcesPanel.vue.d.ts +18 -18
- package/dist/components/NcRelatedResourcesPanel/NcResource.vue.d.ts +9 -9
- package/dist/components/NcRelatedResourcesPanel/NcTeamResources.vue.d.ts +9 -9
- package/dist/components/NcRelatedResourcesPanel/index.mjs +1 -1
- package/dist/components/NcRichContenteditable/NcAutoCompleteResult.vue.d.ts +30 -0
- package/dist/components/NcRichContenteditable/NcMentionBubble.vue.d.ts +30 -0
- package/dist/components/NcRichContenteditable/NcRichContenteditable.vue.d.ts +28 -3
- package/dist/components/NcRichContenteditable/index.mjs +1 -1
- package/dist/components/NcRichText/NcReferenceList.vue.d.ts +9 -9
- package/dist/components/NcRichText/NcReferencePicker/NcRawLinkInput.vue.d.ts +9 -9
- package/dist/components/NcRichText/NcReferencePicker/NcReferencePicker.vue.d.ts +9 -9
- package/dist/components/NcRichText/NcReferencePicker/NcReferencePickerModal.vue.d.ts +18 -18
- package/dist/components/NcRichText/NcReferencePicker/NcSearch.vue.d.ts +6 -0
- package/dist/components/NcRichText/NcReferenceWidget.vue.d.ts +9 -9
- package/dist/components/NcRichText/NcRichText.vue.d.ts +21 -9
- package/dist/components/NcRichText/autolink.d.ts +18 -7
- package/dist/components/NcRichText/index.d.ts +6 -6
- package/dist/components/NcRichText/index.mjs +17 -17
- package/dist/components/NcSelect/index.mjs +1 -1
- package/dist/components/NcSelectTags/api.d.ts +3 -0
- package/dist/components/NcSelectTags/index.mjs +1 -1
- package/dist/components/NcSelectUsers/index.mjs +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/NcTextArea/NcTextArea.vue.d.ts +3 -0
- package/dist/components/NcTextArea/index.mjs +1 -1
- package/dist/components/NcTextField/index.mjs +1 -1
- package/dist/components/NcTimezonePicker/index.mjs +1 -1
- package/dist/components/NcTimezonePicker/timezoneDataProviderService.d.ts +0 -2
- package/dist/components/NcUserBubble/NcUserBubble.vue.d.ts +2 -2
- package/dist/components/NcUserBubble/index.mjs +1 -1
- package/dist/components/NcUserStatusIcon/index.mjs +1 -1
- package/dist/components/index.d.ts +4 -4
- package/dist/composables/useFormatDateTime/index.d.ts +2 -0
- package/dist/composables/useFormatDateTime/index.mjs +1 -1
- package/dist/composables/useFormatDateTime/index.mjs.map +1 -1
- package/dist/composables/useHotKey/index.mjs.map +1 -1
- package/dist/composables/useIsDarkTheme/constants.d.ts +1 -1
- package/dist/composables/useIsDarkTheme/index.d.ts +2 -1
- package/dist/composables/useIsDarkTheme/index.mjs.map +1 -1
- package/dist/composables/useIsFullscreen/index.mjs.map +1 -1
- package/dist/composables/useIsMobile/index.mjs.map +1 -1
- package/dist/composables/useTrapStackControl.d.ts +1 -1
- package/dist/directives/Linkify/index.mjs.map +1 -1
- package/dist/functions/a11y/index.d.ts +2 -4
- package/dist/functions/a11y/index.mjs +2 -2
- package/dist/functions/a11y/index.mjs.map +1 -1
- package/dist/functions/dialog/index.d.ts +1 -0
- package/dist/functions/dialog/index.mjs +1 -1
- package/dist/functions/dialog/index.mjs.map +1 -1
- package/dist/functions/emoji/emoji.d.ts +2 -2
- package/dist/functions/emoji/index.d.ts +1 -1
- package/dist/functions/isDarkTheme/index.d.ts +2 -1
- package/dist/functions/isDarkTheme/index.mjs.map +1 -1
- package/dist/functions/preloadImage/index.d.ts +1 -0
- package/dist/functions/preloadImage/index.mjs.map +1 -1
- package/dist/functions/reference/index.d.ts +3 -3
- package/dist/functions/reference/index.mjs +10 -10
- package/dist/functions/reference/widgets.d.ts +1 -0
- package/dist/functions/registerReference/index.d.ts +2 -2
- package/dist/functions/registerReference/index.mjs +5 -5
- package/dist/functions/usernameToColor/index.mjs +1 -1
- package/dist/functions/usernameToColor/index.mjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +90 -89
- package/dist/index.mjs.map +1 -1
- package/dist/l10n.d.ts +1 -1
- package/dist/mixins/actionText.d.ts +1 -0
- package/dist/utils/UserStatus.d.ts +6 -1
- package/dist/utils/getAvatarUrl.d.ts +1 -0
- package/package.json +13 -12
- package/dist/assets/NcEmojiPicker-CeVpBSVx.css +0 -576
- package/dist/assets/NcSelectUsers-Cyr5NLrJ.css +0 -4
- package/dist/assets/NcTextArea-IV7f8C-Q.css +0 -112
- package/dist/chunks/NcActionButton-k1JvZ5eE.mjs.map +0 -1
- package/dist/chunks/NcActionCheckbox-DLPDTACR.mjs.map +0 -1
- package/dist/chunks/NcActionInput-Cu77Jgzr.mjs.map +0 -1
- package/dist/chunks/NcActionLink-BEo7zmXX.mjs.map +0 -1
- package/dist/chunks/NcActionRadio-CPoWB58D.mjs.map +0 -1
- package/dist/chunks/NcActionRouter-ERoQjJKv.mjs.map +0 -1
- package/dist/chunks/NcActionText-16Mj4-P1.mjs.map +0 -1
- package/dist/chunks/NcActionTextEditable-BLkdbR1d.mjs.map +0 -1
- package/dist/chunks/NcActions-CDD8eIxC.mjs.map +0 -1
- package/dist/chunks/NcAppContent-BuPSAcBt.mjs.map +0 -1
- package/dist/chunks/NcAppContentList-DnLY_sWw.mjs.map +0 -1
- package/dist/chunks/NcAppNavigation-ByAPTGke.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationCaption-SJPzGdtT.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationIconBullet-B1kc4u65.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationItem-0xVXJPEm.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationNew-CjJgIwfl.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationNewItem-BCFq6zq8.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationSearch-Bnr0rygy.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationSettings-CM0_QsTH.mjs +0 -138
- package/dist/chunks/NcAppNavigationSettings-CM0_QsTH.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsDialog-DBI8-FZa.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsSection-CssmXyZ0.mjs.map +0 -1
- package/dist/chunks/NcAppSidebar-CyyFi0n6.mjs.map +0 -1
- package/dist/chunks/NcAppSidebarTab-D1RmFRTu.mjs.map +0 -1
- package/dist/chunks/NcAvatar-CnRCSalb.mjs.map +0 -1
- package/dist/chunks/NcBreadcrumb-B97vQkN2.mjs.map +0 -1
- package/dist/chunks/NcBreadcrumbs-CvUgliJa.mjs.map +0 -1
- package/dist/chunks/NcButton-BMnvzy1A.mjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch-Da0F7y0G.mjs.map +0 -1
- package/dist/chunks/NcChip-DuaqxToL.mjs.map +0 -1
- package/dist/chunks/NcCollectionList-Cr0T14g-.mjs.map +0 -1
- package/dist/chunks/NcColorPicker-D6g3v7Qc.mjs.map +0 -1
- package/dist/chunks/NcDashboardWidget-Wkx_9xKh.mjs.map +0 -1
- package/dist/chunks/NcDashboardWidgetItem-CMrxp0Lc.mjs.map +0 -1
- package/dist/chunks/NcDateTimePicker-BarX7J-6.mjs.map +0 -1
- package/dist/chunks/NcDateTimePickerNative-BOoA1aEf.mjs.map +0 -1
- package/dist/chunks/NcDialog-IKWAQK-K.mjs.map +0 -1
- package/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang-BT66zCa4.mjs.map +0 -1
- package/dist/chunks/NcEllipsisedOption-C8uNDC-j.mjs.map +0 -1
- package/dist/chunks/NcEmojiPicker-DL9u7r5m.mjs.map +0 -1
- package/dist/chunks/NcHeaderButton-DAxGG1vc.mjs.map +0 -1
- package/dist/chunks/NcHeaderMenu-DcBWHaZv.mjs.map +0 -1
- package/dist/chunks/NcInputConfirmCancel-BG4KRrhr.mjs.map +0 -1
- package/dist/chunks/NcInputField-Cz1RwzSy.mjs.map +0 -1
- package/dist/chunks/NcListItem-CwAOX69Q.mjs.map +0 -1
- package/dist/chunks/NcListItemIcon-26IdztJ2.mjs.map +0 -1
- package/dist/chunks/NcLoadingIcon-CiMp51wb.mjs.map +0 -1
- package/dist/chunks/NcMentionBubble.vue_vue_type_style_index_0_scoped_25f4d6e1_lang-aMwzB20D.mjs.map +0 -1
- package/dist/chunks/NcModal-CdXZncEM.mjs.map +0 -1
- package/dist/chunks/NcNoteCard-C8JB31rn.mjs.map +0 -1
- package/dist/chunks/NcPasswordField-BlbWNpfS.mjs.map +0 -1
- package/dist/chunks/NcPopover-Zs7qt_Zd.mjs.map +0 -1
- package/dist/chunks/NcProgressBar-Ds0zTPYX.mjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-DBOgpeIK.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-BmrCeWNL.mjs.map +0 -1
- package/dist/chunks/NcRichText-G8kzsdwx.mjs.map +0 -1
- package/dist/chunks/NcSelect-C6qHqfAO.mjs.map +0 -1
- package/dist/chunks/NcSelectTags-Capp69AW.mjs.map +0 -1
- package/dist/chunks/NcSelectUsers-BVn8co_d.mjs.map +0 -1
- package/dist/chunks/NcSettingsInputText-C8Gtj3Ht.mjs.map +0 -1
- package/dist/chunks/NcSettingsSelectGroup-C1DEcBNJ.mjs.map +0 -1
- package/dist/chunks/NcTextArea-BAl6EP4Z.mjs.map +0 -1
- package/dist/chunks/NcTextField.vue_vue_type_script_setup_true_lang-DzcUUWHO.mjs.map +0 -1
- package/dist/chunks/NcTimezonePicker.vue_vue_type_script_setup_true_lang-Dsco6qEJ.mjs.map +0 -1
- package/dist/chunks/NcUserBubble-CqKN_gM4.mjs.map +0 -1
- package/dist/chunks/NcUserStatusIcon-CDEUKK60.mjs.map +0 -1
- package/dist/chunks/_l10n-ZllQPIu_.mjs.map +0 -1
- package/dist/chunks/autolink-Y0rlJ_CI.mjs.map +0 -1
- package/dist/chunks/colors-B71CwSnx.mjs.map +0 -1
- package/dist/chunks/customPickerElements-BmkXSNdO.mjs.map +0 -1
- package/dist/chunks/referencePickerModal-BtI-8rNN.mjs.map +0 -1
- package/dist/chunks/useTrapStackControl-yqM2SDEs.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcDialog-DmKbeOcJ.mjs","sources":["../../src/components/NcDialog/NcDialog.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### General description\n\nThis component uses the `NcModal` under the hood for allowing users to create generic dialogs.\n\n### Basic example\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"showDialog = true\">Show dialog</NcButton>\n\t\t<NcDialog v-model:open=\"showDialog\" name=\"Confirmation\" message=\"Are you sure to proceed?\" :buttons=\"buttons\" />\n\t\t<p>Last response: {{ lastResponse }}</p>\n\t</div>\n</template>\n<script>\nimport IconCancel from '@mdi/svg/svg/cancel.svg?raw'\nimport IconCheck from '@mdi/svg/svg/check.svg?raw'\n\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tshowDialog: false,\n\t\t\tlastResponse: 'None',\n\t\t\tbuttons: [\n\t\t\t\t{\n\t\t\t\t\tlabel: 'Cancel',\n\t\t\t\t\ticon: IconCancel,\n\t\t\t\t\tcallback: () => { this.lastResponse = 'Pressed \"Cancel\"' },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: 'Ok',\n\t\t\t\t\ttype: 'primary',\n\t\t\t\t\ticon: IconCheck,\n\t\t\t\t\tcallback: () => { this.lastResponse = 'Pressed \"Ok\"' },\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t},\n}\n</script>\n```\n\n### Use custom actions and content\nInstead of using the buttons property, you can also inject your custom actions using a named slot.\nYou can also use the default slot to inject custom content.\n\n```vue\n<template>\n\t<div style=\"display: flex; gap: 12px;\">\n\t\t<NcButton @click=\"showDialog = true\">Show dialog</NcButton>\n\t\t<NcButton @click=\"showLongDialog = true\">Show long dialog</NcButton>\n\t\t<NcDialog v-if=\"showDialog\" name=\"Warning\" no-close>\n\t\t\t<template #actions>\n\t\t\t\t<NcButton @click=\"showDialog = false\">Ok</NcButton>\n\t\t\t</template>\n\t\t\t<div style=\"color: red; font-weight: bold;\">This is serious</div>\n\t\t</NcDialog>\n\t\t<NcDialog v-model:open=\"showLongDialog\" name=\"Lorem Ipsum\">\n\t\t\t<p v-for=\"i in new Array(63)\" :key=\"i\">Lorem ipsum dolor sit amet.</p>\n\t\t</NcDialog>\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tshowDialog: false,\n\t\t\tshowLongDialog: false,\n\t\t}\n\t},\n}\n</script>\n```\n\n### Form example\nIt is also possible to use the dialog for small forms.\nThis can be used when asking for a password, a name or similar to have native form validation.\n\nTo make the dialog a form the `is-form` prop needs to be set.\nWhen using the form variant you can also pass buttons with `nativeType` prop to add a native `submit` button.\n\nNote that this is not possible if the dialog contains a navigation!\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"showDialog = true\">Show dialog</NcButton>\n\t\t<NcDialog is-form\n\t\t\t:buttons=\"buttons\"\n\t\t\tname=\"Choose a name\"\n\t\t\tv-model:open=\"showDialog\"\n\t\t\t@submit=\"currentName = newName\"\n\t\t\t@reset=\"newName = ''\"\n\t\t\t@closing=\"newName = ''\">\n\t\t\t<NcTextField v-model=\"newName\"\n\t\t\t\tlabel=\"New name\"\n\t\t\t\tminlength=\"6\"\n\t\t\t\tplaceholder=\"Min. 6 characters\"\n\t\t\t\trequired />\n\t\t</NcDialog>\n\t\t<p>New name: {{ currentName }}</p>\n\t</div>\n</template>\n<script>\nimport IconCheck from '@mdi/svg/svg/check.svg?raw'\n\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tshowDialog: false,\n\t\t\tnewName: '',\n\t\t\tcurrentName: 'none yet.',\n\t\t\tbuttons: [\n\t\t\t\t{\n\t\t\t\t\tlabel: 'Reset',\n\t\t\t\t\tnativeType: 'reset',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: 'Submit',\n\t\t\t\t\ttype: 'primary',\n\t\t\t\t\tnativeType: 'submit',\n\t\t\t\t\ticon: IconCheck,\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t},\n}\n</script>\n```\n\n### Loading buttons\nSometimes a dialog ends with a request and this request might fail due to server-side-validation.\nIn this case it is often desired to keep the dialog open, this can be done by returning `false` from the button callback,\nto not block this callback should return a `Promise<false>`.\n\nIt is also possible to get the result of the callback from the dialog, as the result is passed as the payload of the `closing` event.\n\nWhile the promise is awaited the button will have a loading state,\nthis means, as long as no custom `icon`-slot is used, a loading icon will be shown.\nPlease note that the **button will not be disabled or accessibility reasons**,\nbecause disabled elements cannot be focused and so the loading state could not be communicated e.g. via screen readers.\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"openDialog\">Show dialog</NcButton>\n\t\t<NcDialog :buttons=\"buttons\"\n\t\t\tname=\"Create user\"\n\t\t\t:message=\"message\"\n\t\t\t:open.sync=\"showDialog\"\n\t\t\t@closing=\"response = $event\"\n\t\t\t@update:open=\"clickClosesDialog = false\" />\n\t\t<div style=\"margin-top: 8px;\">Dialog response: {{ response }}</div>\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tshowDialog: false,\n\t\t\tclickClosesDialog: false,\n\t\t\tresponse: 'none',\n\t\t}\n\t},\n\n\tmethods: {\n\t\tasync callback() {\n\t\t\t// wait 3 seconds\n\t\t\tawait new Promise((resolve) => window.setTimeout(resolve, 3000))\n\t\t\tthis.clickClosesDialog = !this.clickClosesDialog\n\t\t\t// Do not close the dialog on first and then every second button click\n\t\t\tif (this.clickClosesDialog) {\n\t\t\t\t// return false means the dialog stays open\n\t\t\t\treturn false\n\t\t\t}\n\t\t\treturn '✅'\n\t\t},\n\n\t\topenDialog() {\n\t\t\tthis.response = 'none'\n\t\t\tthis.showDialog = true\n\t\t},\n\t},\n\n\tcomputed: {\n\t\tbuttons() {\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tlabel: 'Create user',\n\t\t\t\t\ttype: 'primary',\n\t\t\t\t\tcallback: this.callback,\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\tmessage() {\n\t\t\tif (this.clickClosesDialog) {\n\t\t\t\treturn 'Next button click will work and close the dialog.'\n\t\t\t} else {\n\t\t\t\treturn 'Clicking the button will load but not close the dialog.'\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n```\n</docs>\n\n<script setup lang=\"ts\">\nimport type { Slot } from 'vue'\nimport type { ComponentProps, VueClassType } from '../../utils/VueTypes.ts'\n\nimport { useElementSize } from '@vueuse/core'\nimport { computed, ref, useTemplateRef } from 'vue'\nimport { createElementId } from '../../utils/createElementId.ts'\nimport NcDialogButton from '../NcDialogButton/index.ts'\nimport NcModal from '../NcModal/index.js'\n\ntype NcDialogButtonProps = ComponentProps<typeof NcDialogButton>\n\n/**\n * Whether the dialog should be shown\n */\nconst open = defineModel<boolean>('open', { default: true })\n\nconst props = withDefaults(defineProps<{\n\t/** Name of the dialog (the heading) */\n\tname: string\n\n\t/** Text of the dialog */\n\tmessage?: string\n\n\t/** Additional elements to add to the focus trap */\n\tadditionalTrapElements?: Array<string | HTMLElement>\n\n\t/**\n\t * The element where to mount the dialog, if `null` is passed the dialog is mounted in place.\n\t */\n\tcontainer?: string\n\n\t/**\n\t * Size of the underlying NcModal\n\t */\n\tsize?: 'small' | 'normal' | 'large' | 'full'\n\n\t/**\n\t * Buttons to display\n\t */\n\tbuttons?: NcDialogButtonProps[]\n\n\t/**\n\t * Make the dialog wrapper a HTML form element.\n\t * The buttons will be wrapped within the form so they can be used as submit / reset buttons.\n\t * Please note that when using the property the `navigation` should not be used.\n\t */\n\tisForm?: boolean\n\n\t/**\n\t * Do not show the close button for the dialog.\n\t */\n\tnoClose?: boolean\n\n\t/**\n\t * Close the dialog if the user clicked outside of the dialog\n\t * Only relevant if `noClose` is not set.\n\t */\n\tcloseOnClickOutside?: boolean\n\n\t/**\n\t * Declare if hiding the modal should be animated\n\t */\n\toutTransition?: boolean\n\n\t/**\n\t * aria-label for the dialog navigation.\n\t * Use it when you want to provide a more meaningful label than the dialog name.\n\t *\n\t * By default, navigation is labeled by the dialog name.\n\t */\n\tnavigationAriaLabel?: string\n\n\t/**\n\t * aria-labelledby for the dialog navigation.\n\t * Use it when you have an implicit navigation label (e.g. a heading).\n\t *\n\t * By default, navigation is labeled by the dialog name.\n\t */\n\tnavigationAriaLabelledby?: string\n\n\t/**\n\t * Optionally pass additional classes which will be set on the content wrapper for custom styling\n\t */\n\tcontentClasses?: VueClassType\n\n\t/**\n\t * Optionally pass additional classes which will be set on the dialog itself\n\t * (the default `class` attribute will be set on the modal wrapper)\n\t */\n\tdialogClasses?: VueClassType\n\n\t/**\n\t * Optionally pass additional classes which will be set on the navigation for custom styling\n\t *\n\t * @example\n\t * ```html\n\t * <DialogBase :navigation-classes=\"['mydialog-navigation']\"><!-- --></DialogBase>\n\t * <!-- ... -->\n\t * <style lang=\"scss\">\n\t * :deep(.mydialog-navigation) {\n\t * flex-direction: row-reverse;\n\t * }\n\t * </style>\n\t * ```\n\t */\n\tnavigationClasses?: VueClassType\n}>(), {\n\tadditionalTrapElements: () => [],\n\tbuttons: () => [],\n\tcontainer: 'body',\n\tcontentClasses: '',\n\tdialogClasses: '',\n\tmessage: '',\n\tnavigationAriaLabel: '',\n\tnavigationAriaLabelledby: '',\n\tnavigationClasses: '',\n\tsize: 'small',\n})\n\nconst emit = defineEmits<{\n\t/**\n\t * Emitted when the dialog is closing, so the out transition did not finish yet.\n\t *\n\t * @param result - The result of the button callback (`undefined` if closing because of clicking the 'close'-button)\n\t */\n\tclosing: [result?: unknown]\n\t/**\n\t * Forwarded HTMLFormElement reset event (only if `is-form` is set).\n\t *\n\t * @param event - The forwarded form event\n\t */\n\treset: [event: Event]\n\t/**\n\t * Forwarded HTMLFormElement submit event (only if `is-form` is set)\n\t *\n\t * @param event - The submit event\n\t */\n\tsubmit: [event: SubmitEvent]\n}>()\n\nconst slots = defineSlots<{\n\tactions?: Slot\n\tdefault?: Slot\n\tnavigation?: Slot\n}>()\n\n/**\n * The dialog wrapper element\n */\nconst wrapper = useTemplateRef('wrapper-key')\n\n/**\n * We use the dialog width to decide if we collapse the navigation (flex direction row)\n */\nconst { width: dialogWidth } = useElementSize(wrapper, { width: 900, height: 0 })\n\n/**\n * Whether the navigation is collapsed due to dialog and window size\n * (collapses when modal is below: 900px modal width - 2x 12px margin)\n */\nconst isNavigationCollapsed = computed(() => dialogWidth.value < 876)\n\n/**\n * Whether a navigation was passed and the element should be displayed\n */\nconst hasNavigation = computed(() => slots?.navigation !== undefined)\n\n/**\n * The unique id of the nav element\n */\nconst navigationId = createElementId()\n\n/**\n * aria-label attribute for the nav element\n */\nconst navigationAriaLabelAttr = computed(() => props.navigationAriaLabel || undefined)\n\n/**\n * aria-labelledby attribute for the nav element\n */\nconst navigationAriaLabelledbyAttr = computed(() => {\n\tif (props.navigationAriaLabel) {\n\t\t// Not needed, already labelled by aria-label\n\t\treturn undefined\n\t}\n\t// Use dialog name as a fallback label for navigation\n\treturn props.navigationAriaLabelledby || navigationId\n})\n\nconst dialogElement = useTemplateRef<HTMLDivElement | HTMLFormElement>('dialog-key')\n/**\n * The HTML element to use for the dialog wrapper - either form or plain div\n */\nconst dialogTagName = computed(() => props.isForm && !hasNavigation.value ? 'form' : 'div')\n/**\n * Listener to assign to the dialog element\n * This only sets the `@submit` listener if the dialog element is a form\n */\nconst dialogListeners = computed(() => {\n\tif (dialogTagName.value !== 'form') {\n\t\treturn {}\n\t}\n\n\treturn {\n\t\t/**\n\t\t * @param event - Form submit event\n\t\t */\n\t\tsubmit(event: SubmitEvent) {\n\t\t\tevent.preventDefault()\n\t\t\temit('submit', event)\n\t\t},\n\n\t\t/**\n\t\t * @param event - Form submit event\n\t\t */\n\t\treset(event: Event) {\n\t\t\tevent.preventDefault()\n\t\t\temit('reset', event)\n\t\t},\n\t}\n})\n\n/**\n * If the underlying modal is shown\n */\nconst showModal = ref(true)\n\n// Because NcModal does not emit `close` when show prop is changed\n/**\n * Handle clicking a dialog button -> should close\n *\n * @param button - The button that was clicked\n * @param result - Result of the callback function\n */\nfunction handleButtonClose(button: NcDialogButtonProps, result: unknown) {\n\t// Skip close on submit if invalid dialog\n\tif (button.type === 'submit'\n\t\t&& dialogTagName.value === 'form'\n\t\t&& 'reportValidity' in dialogElement.value!\n\t\t&& !dialogElement.value.reportValidity()) {\n\t\treturn\n\t}\n\thandleClosing(result)\n\twindow.setTimeout(() => handleClosed(), 300)\n}\n\n/**\n * Handle closing the dialog, optional out transition did not run yet\n *\n * @param result - The result of the callback\n */\nfunction handleClosing(result?: unknown): void {\n\tshowModal.value = false\n\temit('closing', result)\n}\n\n/**\n * Handle dialog closed (out transition finished)\n */\nfunction handleClosed() {\n\tshowModal.value = true\n\topen.value = false\n}\n\n/**\n * Properties to pass to the underlying NcModal\n */\nconst modalProps = computed(() => ({\n\tnoClose: props.noClose,\n\tcontainer: props.container === undefined ? 'body' : props.container,\n\t// we do not pass the name as we already have the name as the headline\n\t// name: props.name,\n\t// But we need to set the correct label id so the dialog is labelled\n\tlabelId: navigationId,\n\tsize: props.size,\n\tshow: open.value && showModal.value,\n\toutTransition: props.outTransition,\n\tcloseOnClickOutside: props.closeOnClickOutside,\n\tadditionalTrapElements: props.additionalTrapElements,\n}))\n</script>\n\n<template>\n\t<NcModal\n\t\tv-if=\"open\"\n\t\tclass=\"dialog__modal\"\n\t\t:enable-slideshow=\"false\"\n\t\tdisable-swipe\n\t\tv-bind=\"modalProps\"\n\t\t@close=\"handleClosed\"\n\t\t@update:show=\"handleClosing()\">\n\t\t<!-- The dialog name / header -->\n\t\t<h2 :id=\"navigationId\" class=\"dialog__name\" v-text=\"name\" />\n\t\t<component\n\t\t\t:is=\"dialogTagName\"\n\t\t\tref=\"dialog-key\"\n\t\t\tclass=\"dialog\"\n\t\t\t:class=\"dialogClasses\"\n\t\t\tv-on=\"dialogListeners\">\n\t\t\t<div ref=\"wrapper-key\" class=\"dialog__wrapper\" :class=\"[{ 'dialog__wrapper--collapsed': isNavigationCollapsed }]\">\n\t\t\t\t<!-- When the navigation is collapsed (too small dialog) it is displayed above the main content, otherwise on the inline start -->\n\t\t\t\t<nav\n\t\t\t\t\tv-if=\"hasNavigation\"\n\t\t\t\t\tclass=\"dialog__navigation\"\n\t\t\t\t\t:class=\"navigationClasses\"\n\t\t\t\t\t:aria-label=\"navigationAriaLabelAttr\"\n\t\t\t\t\t:aria-labelledby=\"navigationAriaLabelledbyAttr\">\n\t\t\t\t\t<slot name=\"navigation\" :is-collapsed=\"isNavigationCollapsed\" />\n\t\t\t\t</nav>\n\t\t\t\t<!-- Main dialog content -->\n\t\t\t\t<div class=\"dialog__content\" :class=\"contentClasses\">\n\t\t\t\t\t<slot>\n\t\t\t\t\t\t<p class=\"dialog__text\">\n\t\t\t\t\t\t\t{{ message }}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</slot>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<!-- The dialog actions aka the buttons -->\n\t\t\t<div class=\"dialog__actions\">\n\t\t\t\t<slot name=\"actions\">\n\t\t\t\t\t<NcDialogButton\n\t\t\t\t\t\tv-for=\"(button, idx) in buttons\"\n\t\t\t\t\t\t:key=\"idx\"\n\t\t\t\t\t\tv-bind=\"button\"\n\t\t\t\t\t\t@click=\"(_, result) => handleButtonClose(button, result)\" />\n\t\t\t\t</slot>\n\t\t\t</div>\n\t\t</component>\n\t</NcModal>\n</template>\n\n<style lang=\"scss\">\n/** When having the small dialog style we override the modal styling so dialogs look more dialog like */\n@media only screen and (max-width: $breakpoint-small-mobile) {\n\t.dialog__modal .modal-wrapper--small .modal-container {\n\t\twidth: fit-content;\n\t\theight: unset;\n\t\tmax-height: 90%;\n\t\tposition: relative;\n\t\ttop: unset;\n\t\tborder-radius: var(--border-radius-element);\n\t}\n}\n</style>\n\n<style lang=\"scss\" scoped>\n.dialog {\n\theight: 100%;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\toverflow: hidden;\n\n\t&__modal {\n\t\t:deep(.modal-wrapper .modal-container) {\n\t\t\tdisplay: flex !important;\n\t\t\tpadding-block: 4px 0; // 4px to align with close button, 0 block-end to make overflowing content on scroll look nice\n\t\t\tpadding-inline: 12px 0; // Same as with padding-block, we need the actions to have a margin of 4px for the button outline\n\t\t}\n\t\t:deep(.modal-wrapper .modal-container__content) {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\toverflow: hidden; // Only overflow on the .dialog__content\n\t\t}\n\t}\n\n\t&__wrapper {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\t// Auto scale to fit\n\t\tflex: 1;\n\t\tmin-height: 0;\n\t\toverflow: hidden;\n\n\t\t&--collapsed {\n\t\t\tflex-direction: column;\n\t\t}\n\t}\n\n\t&__navigation {\n\t\tdisplay: flex;\n\t\tflex-shrink: 0;\n\t}\n\n\t// Navigation styling when side-by-side with content\n\t&__wrapper:not(&__wrapper--collapsed) &__navigation {\n\t\tflex-direction: column;\n\n\t\toverflow: hidden auto;\n\t\theight: 100%;\n\t\tmin-width: 200px;\n\t\tmargin-inline-end: 20px;\n\t}\n\n\t// Navigation styling when on top of content\n\t&__wrapper#{&}__wrapper--collapsed &__navigation {\n\t\tflex-direction: row;\n\t\tjustify-content: space-between;\n\n\t\toverflow: auto hidden;\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&__name {\n\t\tfont-size: 21px;\n\n\t\ttext-align: center;\n\t\theight: fit-content;\n\t\tmin-height: var(--default-clickable-area);\n\t\tline-height: var(--default-clickable-area);\n\t\toverflow-wrap: break-word;\n\t\tmargin-block: 0 12px;\n\t}\n\n\t&__content {\n\t\t// Auto fit\n\t\tflex: 1;\n\t\tmin-height: 0;\n\t\toverflow: auto;\n\t\t// see .dialog__modal, we can not set the padding there to prevent floating scroll bars\n\t\tpadding-inline-end: 12px;\n\t}\n\n\t// In case only text content is show\n\t&__text {\n\t\t// Also add padding to the bottom to make it more readable\n\t\tpadding-block-end: 6px;\n\t}\n\n\t&__actions {\n\t\tdisplay: flex;\n\t\tgap: 6px;\n\t\talign-content: center;\n\t\tjustify-content: end;\n\n\t\twidth: 100%;\n\t\tmax-width: 100%;\n\t\tpadding-inline: 0 12px; // 12px to align with the overall modal padding\n\t\tmargin-inline: 0;\n\t\tmargin-block: 0;\n\n\t\t&:not(:empty) {\n\t\t\tmargin-block: 6px 12px; // only if there are actions, we add margin so if it is empty scroll content looks nice\n\t\t}\n\t}\n}\n\n@media only screen and (max-width: $breakpoint-small-mobile) {\n\t// Ensure the dialog name does not interfere with the close button\n\t.dialog__name {\n\t\ttext-align: start;\n\t\tmargin-inline-end: var(--default-clickable-area);\n\t}\n}\n</style>\n"],"names":["_useModel","_useSlots","_openBlock","_createBlock","_unref","_mergeProps","_createElementVNode","_toDisplayString","name","_resolveDynamicComponent","dialogClasses","_toHandlers","_normalizeClass","_createElementBlock","navigationClasses","_renderSlot","contentClasses","message","_Fragment","_renderList","buttons"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmOA,UAAM,OAAOA,SAAoB,SAAC,MAAyB;AAE3D,UAAM,QAAQ;AAuGd,UAAM,OAAO;AAqBb,UAAM,QAAQC,SAAA;AASd,UAAM,UAAU,eAAe,aAAa;AAK5C,UAAM,EAAE,OAAO,YAAA,IAAgB,eAAe,SAAS,EAAE,OAAO,KAAK,QAAQ,GAAG;AAMhF,UAAM,wBAAwB,SAAS,MAAM,YAAY,QAAQ,G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,MAIO;AAAA,oBAHNT,mBAEI,KAFJ,YAEIC,gBADAU,KAAAA,OAAO,GAAA,CAAA;AAAA,kBAAA;;;cAMdX,mBAQM,OARN,YAQM;AAAA,gBAPLS,WAMO,4BANP,MAMO;AAAA,mBALNb,UAAA,IAAA,GAAAW,mBAI6DK,UAAA,MAAAC,WAHpCC,KAAAA,SAAO,CAAvB,QAAQ,QAAG;AADpB,2BAAAlB,UAAA,GAAAC,YAI6DC,oBAJ7DC,WAI6D,EAF3D,KAAK,0BACE,QAAM;AAAA,sBACb,SAAK,CAAG,GAAG,WAAW,kBAAkB,QAAQ,MAAM;AAAA,oBAAA;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, createBlock, openBlock, unref, withCtx, createTextVNode, toDisplayString, renderSlot, createCommentVNode } from "vue";
|
|
2
|
-
import { r as register, a as t } from "./_l10n-
|
|
3
|
-
import { N as NcButton } from "./NcButton-
|
|
4
|
-
import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-
|
|
5
|
-
import { N as NcLoadingIcon } from "./NcLoadingIcon-
|
|
2
|
+
import { r as register, a as t } from "./_l10n-CiWgAjJZ.mjs";
|
|
3
|
+
import { N as NcButton } from "./NcButton-DkC5k3Lb.mjs";
|
|
4
|
+
import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-5AA93z-F.mjs";
|
|
5
|
+
import { N as NcLoadingIcon } from "./NcLoadingIcon-b_ajZ_nQ.mjs";
|
|
6
6
|
register();
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "NcDialogButton",
|
|
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
48
48
|
isLoading.value ? (openBlock(), createBlock(unref(NcLoadingIcon), {
|
|
49
49
|
key: 0,
|
|
50
|
-
name: unref(t)("Loading
|
|
50
|
+
name: unref(t)("Loading …")
|
|
51
51
|
/* TRANSLATORS: The button is in a loading state*/
|
|
52
52
|
}, null, 8, ["name"])) : _ctx.icon !== void 0 ? (openBlock(), createBlock(unref(NcIconSvgWrapper), {
|
|
53
53
|
key: 1,
|
|
@@ -66,4 +66,4 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
export {
|
|
67
67
|
_sfc_main as _
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=NcDialogButton.vue_vue_type_script_setup_true_lang-
|
|
69
|
+
//# sourceMappingURL=NcDialogButton.vue_vue_type_script_setup_true_lang-BvBSeEuo.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcDialogButton.vue_vue_type_script_setup_true_lang-BvBSeEuo.mjs","sources":["../../src/components/NcDialogButton/NcDialogButton.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nDialog button component used by NcDialog in the actions slot to display the buttons passed by the `buttons` prop.\n</docs>\n\n<template>\n\t<NcButton\n\t\t:aria-label=\"label\"\n\t\t:disabled\n\t\t:type\n\t\t:variant\n\t\t@click=\"handleClick\">\n\t\t{{ label }}\n\t\t<template #icon>\n\t\t\t<!-- @slot Allow to set a custom icon for the button -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<!-- The loading state is an information that must be accessible -->\n\t\t\t\t<NcLoadingIcon v-if=\"isLoading\" :name=\"t('Loading …') /* TRANSLATORS: The button is in a loading state*/\" />\n\t\t\t\t<NcIconSvgWrapper v-else-if=\"icon !== undefined\" :svg=\"icon\" />\n\t\t\t</slot>\n\t\t</template>\n\t</NcButton>\n</template>\n\n<script setup lang=\"ts\">\nimport type { ButtonType, ButtonVariant } from '../NcButton/index.ts'\n\nimport { ref } from 'vue'\nimport { t } from '../../l10n.ts'\nimport NcButton from '../NcButton/index.ts'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/index.ts'\nimport NcLoadingIcon from '../NcLoadingIcon/index.ts'\n\nconst props = withDefaults(defineProps<{\n\t/**\n\t * The function that will be called when the button is pressed.\n\t * If the function returns `false` the click is ignored and the dialog will not be closed,\n\t * which is the default behavior of \"reset\"-buttons.\n\t *\n\t * @default '() => {}'\n\t */\n\tcallback?: () => unknown | false\n\n\t/**\n\t * If the button should be shown as disabled.\n\t *\n\t * @default false\n\t */\n\tdisabled?: boolean\n\n\t/**\n\t * Optional inline SVG icon for the button.\n\t *\n\t * @default undefined\n\t */\n\ticon?: string\n\n\t/**\n\t * The label of the button.\n\t */\n\tlabel: string\n\n\t/**\n\t * The button type, see `NcButton`.\n\t *\n\t * @default 'button'\n\t */\n\ttype?: ButtonType\n\n\t/**\n\t * The button variant, see `NcButton`.\n\t *\n\t * @default 'tertiary'\n\t * @since 8.24.0\n\t */\n\tvariant?: ButtonVariant\n}>(), {\n\tcallback: () => {},\n\tdisabled: false,\n\ticon: undefined,\n\ttype: 'button',\n\tvariant: 'tertiary',\n})\n\nconst emit = defineEmits<{\n\t/**\n\t * The click event (`MouseEvent`) and the value returned by the callback\n\t */\n\tclick: [event: MouseEvent, payload: unknown]\n}>()\n\nconst isLoading = ref(false)\n\n/**\n * Handle clicking the button\n *\n * @param e The click event\n */\nasync function handleClick(e: MouseEvent) {\n\t// Do not re-emit while loading\n\tif (isLoading.value) {\n\t\treturn\n\t}\n\n\tisLoading.value = true\n\ttry {\n\t\t// for reset buttons the default is \"false\"\n\t\tconst fallback = props.type === 'reset' ? false : undefined\n\t\tconst result = await props.callback?.() ?? fallback\n\t\tif (result !== false) {\n\t\t\temit('click', e, result)\n\t\t}\n\t} finally {\n\t\tisLoading.value = false\n\t}\n}\n</script>\n"],"names":["_createBlock","_unref","label","disabled","type","variant","_renderSlot","icon"],"mappings":";;;;;;;;;;;;;;;;;;;AAqCA,UAAM,QAAQ;AAmDd,UAAM,OAAO;AAOb,UAAM,YAAY,IAAI,KAAK;AAO3B,mBAAe,YAAY,GAAe;AAEzC,UAAI,UAAU,OAAO;AACpB;AAAA,MACD;AAEA,gBAAU,QAAQ;AAClB,UAAI;AAEH,cAAM,WAAW,MAAM,SAAS,UAAU,QAAQ;AAClD,cAAM,SAAS,MAAM,MAAM,WAAA,KAAgB;AAC3C,YAAI,WAAW,OAAO;AACrB,eAAK,SAAS,GAAG,MAAM;AAAA,QACxB;AAAA,MACD,UAAA;AACC,kBAAU,QAAQ;AAAA,MACnB;AAAA,IACD;;0BA7GCA,YAeWC,MAAA,QAAA,GAAA;AAAA,QAdT,cAAYC,KAAAA;AAAAA,QACZ,UAAAC,KAAAA;AAAAA,QACA,MAAAC,KAAAA;AAAAA,QACA,SAAAC,KAAAA;AAAAA,QACA,SAAO;AAAA,MAAA;QAEG,cAEV,MAIO;AAAA,UAJPC,WAIO,yBAJP,MAIO;AAAA,YAFe,UAAA,sBAArBN,YAA4GC,MAAA,aAAA,GAAA;AAAA;cAA3E,MAAMA,MAAA,CAAA,EAAC,WAAA;AAAA;AAAA,YAAA,yBACXM,KAAAA,SAAS,uBAAtCP,YAA+DC,MAAA,gBAAA,GAAA;AAAA;cAAb,KAAKM,KAAAA;AAAAA,YAAAA;;;yBANzD,MAAW;AAAA,UAARL,gBAAAA,gBAAAA,KAAAA,KAAK,IAAG,KACX,CAAA;AAAA,QAAA;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../assets/NcEllipsisedOption-
|
|
1
|
+
import '../assets/NcEllipsisedOption-CPWbbgBy.css';
|
|
2
2
|
import { _ as _sfc_main$1, f as findRanges } from "./NcHighlight.vue_vue_type_script_lang-DnWQDM_2.mjs";
|
|
3
3
|
import { resolveComponent, createElementBlock, openBlock, createVNode, createBlock, createCommentVNode } from "vue";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
@@ -99,8 +99,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
99
99
|
}, null, 8, ["text", "search", "highlight"])) : createCommentVNode("", true)
|
|
100
100
|
], 8, _hoisted_1);
|
|
101
101
|
}
|
|
102
|
-
const NcEllipsisedOption = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
102
|
+
const NcEllipsisedOption = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a612f185"]]);
|
|
103
103
|
export {
|
|
104
104
|
NcEllipsisedOption as N
|
|
105
105
|
};
|
|
106
|
-
//# sourceMappingURL=NcEllipsisedOption-
|
|
106
|
+
//# sourceMappingURL=NcEllipsisedOption-dT-CtXYp.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcEllipsisedOption-dT-CtXYp.mjs","sources":["../../src/components/NcEllipsisedOption/NcEllipsisedOption.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nA component to display a long text with highlight support in one line truncated with ellipsis in the end but keeping up to 10 last characters.\n\nIt is supposed to be used as an `NcSelect`'s option in first place.\n\n### General usage\n\n```vue\n<template>\n\t<div>\n\t\t<h4>Plain text</h4>\n\t\t<p>{{ text }}</p>\n\n\t\t<h4>Truncated text with <code>text-overflow: ellipsis</code></h4>\n\t\t<p style=\"text-overflow: ellipsis; overflow: hidden; white-space: pre;\">{{ text }}</p>\n\n\t\t<h4>NcEllipsisedOption searching for \"Nineteen\"</h4>\n\t\t<NcEllipsisedOption :name=\"text\" :search=\"search\" />\n\t</div>\n</template>\n\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\ttext: 'One Two Three Four Five Six Seven Eight Nine Ten Eleven Twelve Thirteen Fourteen Fifteen Sixteen Seventeen Eighteen Nineteen Twenty',\n\t\t\tsearch: 'Nineteen',\n\t\t}\n\t},\n}\n</script>\n```\n\n### Usage in `NcSelect`\n\n```vue\n<template>\n\t<NcSelect v-model=\"selected\" :options=\"options\">\n\t\t<template #option=\"option\">\n\t\t\t<NcEllipsisedOption :name=\"option.label\" />\n\t\t</template>\n\t\t<template #selected-option=\"selectedOption\">\n\t\t\t<NcEllipsisedOption :name=\"selectedOption.label\" />\n\t\t</template>\n\t</NcSelect>\n</template>\n\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\toptions: [\n\t\t\t\t'Option 1 - a short opt.',\n\t\t\t\t'Option 2 - a very very very very long opt.',\n\t\t\t].map((label) => ({ label })),\n\t\t\tselected: '',\n\t\t}\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<span dir=\"auto\" class=\"name-parts\" :title=\"name\">\n\t\t<NcHighlight\n\t\t\tclass=\"name-parts__first\"\n\t\t\t:text=\"part1\"\n\t\t\t:search=\"search\"\n\t\t\t:highlight=\"highlight1\" />\n\t\t<NcHighlight\n\t\t\tv-if=\"part2\"\n\t\t\tclass=\"name-parts__last\"\n\t\t\t:text=\"part2\"\n\t\t\t:search=\"search\"\n\t\t\t:highlight=\"highlight2\" />\n\t</span>\n</template>\n\n<script>\nimport { findRanges } from '../../utils/findRanges.ts'\nimport NcHighlight from '../NcHighlight/index.ts'\n\nexport default {\n\tname: 'NcEllipsisedOption',\n\n\tcomponents: {\n\t\tNcHighlight,\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * The text to be display in one line. If it is longer than 10 characters, it is be truncated with ellipsis in the end but keeping up to 10 last characters to fit the parent container.\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * The search value to highlight in the text\n\t\t */\n\t\tsearch: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\tcomputed: {\n\t\tneedsTruncate() {\n\t\t\treturn this.name && this.name.length >= 10\n\t\t},\n\n\t\t/**\n\t\t * Index at which to split the name if it is longer than 10 characters.\n\t\t *\n\t\t * @return {number} The position at which to split\n\t\t */\n\t\tsplit() {\n\t\t\t// leave maximum 10 letters\n\t\t\treturn this.name.length - Math.min(Math.floor(this.name.length / 2), 10)\n\t\t},\n\n\t\tpart1() {\n\t\t\tif (this.needsTruncate) {\n\t\t\t\treturn this.name.slice(0, this.split)\n\t\t\t}\n\t\t\treturn this.name\n\t\t},\n\n\t\tpart2() {\n\t\t\tif (this.needsTruncate) {\n\t\t\t\treturn this.name.slice(this.split)\n\t\t\t}\n\t\t\treturn ''\n\t\t},\n\n\t\t/**\n\t\t * The ranges to highlight. Since we split the string for ellipsising,\n\t\t * the Highlight component cannot figure this out itself and needs the ranges provided.\n\t\t *\n\t\t * @return {Array} The array with the ranges to highlight\n\t\t */\n\t\thighlight1() {\n\t\t\tif (!this.search) {\n\t\t\t\treturn []\n\t\t\t}\n\t\t\treturn findRanges(this.name, this.search)\n\t\t},\n\n\t\t/**\n\t\t * We shift the ranges for the second part by the position of the split.\n\t\t * Ranges out of the string length are discarded by the Highlight component,\n\t\t * so we don't need to take care of this here.\n\t\t *\n\t\t * @return {Array} The array with the ranges to highlight\n\t\t */\n\t\thighlight2() {\n\t\t\treturn this.highlight1.map((range) => {\n\t\t\t\treturn {\n\t\t\t\t\tstart: range.start - this.split,\n\t\t\t\t\tend: range.end - this.split,\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.name-parts {\n\tdisplay: flex;\n\tmax-width: 100%;\n\tcursor: inherit;\n\t&__first {\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\t&__first,\n\t&__last {\n\t\t// prevent whitespace from being trimmed\n\t\twhite-space: pre;\n\t\tcursor: inherit;\n\t\tstrong {\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n}\n</style>\n"],"names":["NcHighlight","_createElementBlock","_createVNode","_createBlock"],"mappings":";;;AAwFA,MAAK,YAAU;AAAA,EACd,MAAM;AAAA,EAEN,YAAY;AAAA,iBACX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,MACR,WAAW,SAAA;AAAA;IAEN,SAAA,sBADPC,YAK2B,wBAAA;AAAA;MAH1B,OAAM;AAAA,MACL,MAAM,SAAA;AAAA,MACN,QAAQ,OAAA;AAAA,MACR,WAAW,SAAA;AAAA;;;;"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import '../assets/NcEmojiPicker-
|
|
2
|
-
import { isFocusable } from "tabbable";
|
|
3
|
-
import { Picker, Emoji, EmojiIndex } from "emoji-mart-vue-fast/src/index.js";
|
|
4
|
-
import { u as useTrapStackControl } from "./useTrapStackControl-yqM2SDEs.mjs";
|
|
5
|
-
import { s as setCurrentSkinTone, g as getCurrentSkinTone } from "./emoji-BY_D0V5K.mjs";
|
|
6
|
-
import { C as Color } from "./colors-B71CwSnx.mjs";
|
|
7
|
-
import { r as register, k as t40, l as t35, m as t15, n as t5, a as t } from "./_l10n-ZllQPIu_.mjs";
|
|
1
|
+
import '../assets/NcEmojiPicker-BO_GV-CM.css';
|
|
8
2
|
import data from "emoji-mart-vue-fast/data/all.json";
|
|
3
|
+
import { Picker, Emoji, EmojiIndex } from "emoji-mart-vue-fast/src/index.js";
|
|
4
|
+
import { isFocusable } from "tabbable";
|
|
9
5
|
import { createElementBlock, openBlock, mergeProps, createElementVNode, createCommentVNode, toDisplayString, resolveComponent, createBlock, withCtx, createVNode, withKeys, withModifiers, createSlots, normalizeStyle, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
10
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
11
|
-
import { N as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
7
|
+
import { N as NcColorPicker } from "./NcColorPicker-BPd1i3-9.mjs";
|
|
8
|
+
import { u as useTrapStackControl } from "./useTrapStackControl-B6cEicto.mjs";
|
|
9
|
+
import { s as setCurrentSkinTone, g as getCurrentSkinTone } from "./emoji-BY_D0V5K.mjs";
|
|
10
|
+
import { r as register, j as t40, k as t35, l as t15, m as t5, a as t } from "./_l10n-CiWgAjJZ.mjs";
|
|
11
|
+
import { C as Color } from "./colors-C_np5wf3.mjs";
|
|
12
|
+
import { N as NcButton } from "./NcButton-DkC5k3Lb.mjs";
|
|
13
|
+
import { N as NcPopover } from "./NcPopover-D8iSVK-p.mjs";
|
|
14
|
+
import { _ as _sfc_main$2 } from "./NcTextField.vue_vue_type_script_setup_true_lang-BN-Pgz4E.mjs";
|
|
16
15
|
const _sfc_main$1 = {
|
|
17
16
|
name: "CircleIcon",
|
|
18
17
|
emits: ["click"],
|
|
@@ -33,7 +32,7 @@ const _sfc_main$1 = {
|
|
|
33
32
|
const _hoisted_1$1 = ["aria-hidden", "aria-label"];
|
|
34
33
|
const _hoisted_2$1 = ["fill", "width", "height"];
|
|
35
34
|
const _hoisted_3$1 = { d: "M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" };
|
|
36
|
-
const _hoisted_4 = { key: 0 };
|
|
35
|
+
const _hoisted_4$1 = { key: 0 };
|
|
37
36
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
38
37
|
return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, {
|
|
39
38
|
"aria-hidden": $props.title ? null : "true",
|
|
@@ -50,12 +49,13 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50
49
|
viewBox: "0 0 24 24"
|
|
51
50
|
}, [
|
|
52
51
|
createElementVNode("path", _hoisted_3$1, [
|
|
53
|
-
$props.title ? (openBlock(), createElementBlock("title", _hoisted_4, toDisplayString($props.title), 1)) : createCommentVNode("", true)
|
|
52
|
+
$props.title ? (openBlock(), createElementBlock("title", _hoisted_4$1, toDisplayString($props.title), 1)) : createCommentVNode("", true)
|
|
54
53
|
])
|
|
55
54
|
], 8, _hoisted_2$1))
|
|
56
55
|
], 16, _hoisted_1$1);
|
|
57
56
|
}
|
|
58
57
|
const IconCircle = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
58
|
+
register(t5, t15, t35, t40);
|
|
59
59
|
let emojiIndex;
|
|
60
60
|
const i18n = {
|
|
61
61
|
search: t("Search emoji"),
|
|
@@ -148,7 +148,7 @@ const _sfc_main = {
|
|
|
148
148
|
* Selector for the popover container
|
|
149
149
|
*/
|
|
150
150
|
container: {
|
|
151
|
-
type: [String, Object, Element
|
|
151
|
+
type: [Boolean, String, Object, Element],
|
|
152
152
|
default: "body"
|
|
153
153
|
}
|
|
154
154
|
},
|
|
@@ -177,6 +177,7 @@ const _sfc_main = {
|
|
|
177
177
|
currentColor: skinTonePalette[currentSkinTone - 1],
|
|
178
178
|
/**
|
|
179
179
|
* The current active skin tone
|
|
180
|
+
*
|
|
180
181
|
* @type {1|2|3|4|5|6}
|
|
181
182
|
*/
|
|
182
183
|
currentSkinTone,
|
|
@@ -200,6 +201,7 @@ const _sfc_main = {
|
|
|
200
201
|
},
|
|
201
202
|
/**
|
|
202
203
|
* Update the current skin tone by the result of the color picker
|
|
204
|
+
*
|
|
203
205
|
* @param {string} color Color set
|
|
204
206
|
*/
|
|
205
207
|
onChangeSkinTone(color) {
|
|
@@ -231,6 +233,7 @@ const _sfc_main = {
|
|
|
231
233
|
/**
|
|
232
234
|
* Manually handle Tab navigation skipping emoji buttons.
|
|
233
235
|
* Navigation over emojis is handled by Arrow keys.
|
|
236
|
+
*
|
|
234
237
|
* @param {KeyboardEvent} event - Keyboard event
|
|
235
238
|
*/
|
|
236
239
|
handleTabNavigationSkippingEmojis(event) {
|
|
@@ -246,6 +249,7 @@ const _sfc_main = {
|
|
|
246
249
|
},
|
|
247
250
|
/**
|
|
248
251
|
* Handle arrow navigation via <Picker>'s handlers with scroll bug fix
|
|
252
|
+
*
|
|
249
253
|
* @param {'onArrowLeft' | 'onArrowRight' | 'onArrowDown' | 'onArrowUp'} originalHandlerName - Picker's arrow keydown handler name
|
|
250
254
|
* @param {KeyboardEvent} event - Keyboard event
|
|
251
255
|
*/
|
|
@@ -260,9 +264,10 @@ const _sfc_main = {
|
|
|
260
264
|
}
|
|
261
265
|
}
|
|
262
266
|
};
|
|
263
|
-
const _hoisted_1 = { class: "
|
|
264
|
-
const _hoisted_2 = { class: "
|
|
267
|
+
const _hoisted_1 = { class: "nc-emoji-picker-container" };
|
|
268
|
+
const _hoisted_2 = { class: "search__wrapper" };
|
|
265
269
|
const _hoisted_3 = { class: "emoji-mart-category-label" };
|
|
270
|
+
const _hoisted_4 = { class: "emoji-mart-category-label" };
|
|
266
271
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
267
272
|
const _component_NcTextField = resolveComponent("NcTextField");
|
|
268
273
|
const _component_IconCircle = resolveComponent("IconCircle");
|
|
@@ -285,116 +290,117 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
285
290
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)), void 0, true)
|
|
286
291
|
]),
|
|
287
292
|
default: withCtx(() => [
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
createElementVNode("div", _hoisted_1, [
|
|
312
|
-
createVNode(_component_NcTextField, {
|
|
313
|
-
ref: "search",
|
|
314
|
-
modelValue: $data.search,
|
|
315
|
-
"onUpdate:modelValue": [
|
|
316
|
-
_cache[0] || (_cache[0] = ($event) => $data.search = $event),
|
|
317
|
-
($event) => onSearch($data.search)
|
|
318
|
-
],
|
|
319
|
-
class: "search",
|
|
320
|
-
label: $options.t("Search"),
|
|
321
|
-
"label-visible": true,
|
|
322
|
-
placeholder: $setup.i18n.search,
|
|
323
|
-
"trailing-button-icon": "close",
|
|
324
|
-
"trailing-button-label": $options.t("Clear search"),
|
|
325
|
-
"show-trailing-button": $data.search !== "",
|
|
326
|
-
onKeydown: [
|
|
327
|
-
_cache[1] || (_cache[1] = withKeys(($event) => $options.callPickerArrowHandlerWithScrollFix("onArrowLeft", $event), ["left"])),
|
|
328
|
-
_cache[2] || (_cache[2] = withKeys(($event) => $options.callPickerArrowHandlerWithScrollFix("onArrowRight", $event), ["right"])),
|
|
329
|
-
_cache[3] || (_cache[3] = withKeys(($event) => $options.callPickerArrowHandlerWithScrollFix("onArrowDown", $event), ["down"])),
|
|
330
|
-
_cache[4] || (_cache[4] = withKeys(($event) => $options.callPickerArrowHandlerWithScrollFix("onArrowUp", $event), ["up"])),
|
|
331
|
-
_cache[5] || (_cache[5] = withKeys(($event) => _ctx.$refs.picker.onEnter($event), ["enter"]))
|
|
332
|
-
],
|
|
333
|
-
onTrailingButtonClick: ($event) => {
|
|
334
|
-
$options.clearSearch();
|
|
335
|
-
onSearch("");
|
|
336
|
-
}
|
|
337
|
-
}, null, 8, ["modelValue", "label", "placeholder", "trailing-button-label", "show-trailing-button", "onTrailingButtonClick", "onUpdate:modelValue"]),
|
|
338
|
-
createVNode(_component_NcColorPicker, {
|
|
339
|
-
"palette-only": "",
|
|
340
|
-
container: $props.container,
|
|
341
|
-
palette: $setup.skinTonePalette,
|
|
342
|
-
"model-value": $data.currentColor.color,
|
|
343
|
-
"onUpdate:modelValue": $options.onChangeSkinTone
|
|
344
|
-
}, {
|
|
345
|
-
default: withCtx(() => [
|
|
346
|
-
createVNode(_component_NcButton, {
|
|
347
|
-
"aria-label": $options.t("Skin tone"),
|
|
348
|
-
variant: "tertiary-no-background"
|
|
349
|
-
}, {
|
|
350
|
-
icon: withCtx(() => [
|
|
351
|
-
createVNode(_component_IconCircle, {
|
|
352
|
-
style: normalizeStyle({ color: $data.currentColor.color }),
|
|
353
|
-
title: $data.currentColor.name,
|
|
354
|
-
size: 20
|
|
355
|
-
}, null, 8, ["style", "title"])
|
|
356
|
-
]),
|
|
357
|
-
_: 1
|
|
358
|
-
}, 8, ["aria-label"])
|
|
359
|
-
]),
|
|
360
|
-
_: 1
|
|
361
|
-
}, 8, ["container", "palette", "model-value", "onUpdate:modelValue"])
|
|
362
|
-
])
|
|
363
|
-
]),
|
|
364
|
-
_: 2
|
|
365
|
-
}, [
|
|
366
|
-
$props.allowUnselect && $props.selectedEmoji ? {
|
|
367
|
-
name: "customCategory",
|
|
368
|
-
fn: withCtx(() => [
|
|
293
|
+
createElementVNode("div", _hoisted_1, [
|
|
294
|
+
createVNode(_component_Picker, mergeProps({
|
|
295
|
+
ref: "picker",
|
|
296
|
+
color: "var(--color-primary-element)",
|
|
297
|
+
data: $setup.emojiIndex,
|
|
298
|
+
emoji: $props.previewFallbackEmoji,
|
|
299
|
+
i18n: $setup.i18n,
|
|
300
|
+
native: $options.native,
|
|
301
|
+
"emoji-size": 20,
|
|
302
|
+
"per-line": 8,
|
|
303
|
+
"picker-styles": { width: "320px" },
|
|
304
|
+
"show-preview": $props.showPreview,
|
|
305
|
+
skin: $data.currentSkinTone,
|
|
306
|
+
"show-skin-tones": false,
|
|
307
|
+
title: $props.previewFallbackName,
|
|
308
|
+
role: "dialog",
|
|
309
|
+
"aria-modal": "true",
|
|
310
|
+
"aria-label": $options.t("Emoji picker")
|
|
311
|
+
}, _ctx.$attrs, {
|
|
312
|
+
onKeydown: withKeys(withModifiers($options.handleTabNavigationSkippingEmojis, ["prevent"]), ["tab"]),
|
|
313
|
+
onSelect: $options.select
|
|
314
|
+
}), createSlots({
|
|
315
|
+
searchTemplate: withCtx(({ onSearch }) => [
|
|
369
316
|
createElementVNode("div", _hoisted_2, [
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
317
|
+
createVNode(_component_NcTextField, {
|
|
318
|
+
ref: "search",
|
|
319
|
+
modelValue: $data.search,
|
|
320
|
+
"onUpdate:modelValue": [
|
|
321
|
+
_cache[0] || (_cache[0] = ($event) => $data.search = $event),
|
|
322
|
+
($event) => onSearch($data.search)
|
|
323
|
+
],
|
|
324
|
+
class: "search",
|
|
325
|
+
label: $options.t("Search"),
|
|
326
|
+
"label-visible": true,
|
|
327
|
+
placeholder: $setup.i18n.search,
|
|
328
|
+
"trailing-button-icon": "close",
|
|
329
|
+
"trailing-button-label": $options.t("Clear search"),
|
|
330
|
+
"show-trailing-button": $data.search !== "",
|
|
331
|
+
onKeydown: [
|
|
332
|
+
_cache[1] || (_cache[1] = withKeys(($event) => $options.callPickerArrowHandlerWithScrollFix("onArrowLeft", $event), ["left"])),
|
|
333
|
+
_cache[2] || (_cache[2] = withKeys(($event) => $options.callPickerArrowHandlerWithScrollFix("onArrowRight", $event), ["right"])),
|
|
334
|
+
_cache[3] || (_cache[3] = withKeys(($event) => $options.callPickerArrowHandlerWithScrollFix("onArrowDown", $event), ["down"])),
|
|
335
|
+
_cache[4] || (_cache[4] = withKeys(($event) => $options.callPickerArrowHandlerWithScrollFix("onArrowUp", $event), ["up"])),
|
|
336
|
+
_cache[5] || (_cache[5] = withKeys(($event) => _ctx.$refs.picker.onEnter($event), ["enter"]))
|
|
337
|
+
],
|
|
338
|
+
onTrailingButtonClick: ($event) => {
|
|
339
|
+
$options.clearSearch();
|
|
340
|
+
onSearch("");
|
|
341
|
+
}
|
|
342
|
+
}, null, 8, ["modelValue", "label", "placeholder", "trailing-button-label", "show-trailing-button", "onTrailingButtonClick", "onUpdate:modelValue"]),
|
|
343
|
+
createVNode(_component_NcColorPicker, {
|
|
344
|
+
"palette-only": "",
|
|
345
|
+
container: $props.container,
|
|
346
|
+
palette: $setup.skinTonePalette,
|
|
347
|
+
"model-value": $data.currentColor.color,
|
|
348
|
+
"onUpdate:modelValue": $options.onChangeSkinTone
|
|
349
|
+
}, {
|
|
350
|
+
default: withCtx(() => [
|
|
351
|
+
createVNode(_component_NcButton, {
|
|
352
|
+
"aria-label": $options.t("Skin tone"),
|
|
353
|
+
variant: "tertiary-no-background"
|
|
354
|
+
}, {
|
|
355
|
+
icon: withCtx(() => [
|
|
356
|
+
createVNode(_component_IconCircle, {
|
|
357
|
+
style: normalizeStyle({ color: $data.currentColor.color }),
|
|
358
|
+
title: $data.currentColor.name,
|
|
359
|
+
size: 20
|
|
360
|
+
}, null, 8, ["style", "title"])
|
|
361
|
+
]),
|
|
362
|
+
_: 1
|
|
363
|
+
}, 8, ["aria-label"])
|
|
364
|
+
]),
|
|
365
|
+
_: 1
|
|
366
|
+
}, 8, ["container", "palette", "model-value", "onUpdate:modelValue"])
|
|
367
|
+
])
|
|
388
368
|
]),
|
|
389
|
-
|
|
390
|
-
}
|
|
391
|
-
|
|
369
|
+
_: 2
|
|
370
|
+
}, [
|
|
371
|
+
$props.allowUnselect && $props.selectedEmoji ? {
|
|
372
|
+
name: "customCategory",
|
|
373
|
+
fn: withCtx(() => [
|
|
374
|
+
createElementVNode("div", _hoisted_3, [
|
|
375
|
+
createElementVNode("h3", _hoisted_4, toDisplayString($options.t("Selected")), 1)
|
|
376
|
+
]),
|
|
377
|
+
createVNode(_component_Emoji, {
|
|
378
|
+
class: "emoji-selected",
|
|
379
|
+
data: $setup.emojiIndex,
|
|
380
|
+
emoji: $props.selectedEmoji,
|
|
381
|
+
native: "",
|
|
382
|
+
size: 32,
|
|
383
|
+
onClick: $options.unselect
|
|
384
|
+
}, null, 8, ["data", "emoji", "onClick"]),
|
|
385
|
+
createVNode(_component_Emoji, {
|
|
386
|
+
class: "emoji-delete",
|
|
387
|
+
data: $setup.emojiIndex,
|
|
388
|
+
emoji: ":x:",
|
|
389
|
+
native: "",
|
|
390
|
+
size: 10,
|
|
391
|
+
onClick: $options.unselect
|
|
392
|
+
}, null, 8, ["data", "onClick"])
|
|
393
|
+
]),
|
|
394
|
+
key: "0"
|
|
395
|
+
} : void 0
|
|
396
|
+
]), 1040, ["data", "emoji", "i18n", "native", "show-preview", "skin", "title", "aria-label", "onKeydown", "onSelect"])
|
|
397
|
+
])
|
|
392
398
|
]),
|
|
393
399
|
_: 3
|
|
394
400
|
}, 8, ["shown", "container", "onAfterShow", "onAfterHide"]);
|
|
395
401
|
}
|
|
396
|
-
const NcEmojiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
402
|
+
const NcEmojiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f2f99131"]]);
|
|
397
403
|
export {
|
|
398
404
|
NcEmojiPicker as N
|
|
399
405
|
};
|
|
400
|
-
//# sourceMappingURL=NcEmojiPicker-
|
|
406
|
+
//# sourceMappingURL=NcEmojiPicker-VUnUOWfg.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcEmojiPicker-VUnUOWfg.mjs","sources":["../../node_modules/vue-material-design-icons/Circle.vue","../../src/components/NcEmojiPicker/NcEmojiPicker.vue"],"sourcesContent":["<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : 'true'\"\n :aria-label=\"title\"\n class=\"material-design-icon circle-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"CircleIcon\",\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: 2020 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\n### General description\n\nThis component allows the user to pick an emoji.\n\n### Usage\n\n* Listen to the select event and pass in an HTML element that will be treated as a trigger:\n\n```vue\n<template>\n\t<div>\n\t\t<NcEmojiPicker @select=\"select\" style=\"display: inline-block\">\n\t\t\t<NcButton> Click Me </NcButton>\n\t\t</NcEmojiPicker>\n\t\t<span>selected emoji: {{ emoji }}</span>\n\t</div>\n</template>\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\temoji: '',\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tselect(emoji) {\n\t\t\t\tthis.emoji = emoji\n\t\t\t},\n\t\t},\n\t}\n</script>\n```\n\n* Showing a preview and keeping it open after a user selected an emoji\n\n```vue\n<template>\n\t<div>\n\t\t<NcEmojiPicker\n\t\t\t:close-on-select=\"false\"\n\t\t\t:show-preview=\"true\"\n\t\t\t@select=\"select\"\n\t\t\tstyle=\"display: inline-block\">\n\t\t\t<NcButton> Click Me </NcButton>\n\t\t</NcEmojiPicker>\n\t\t<span>selected emoji: {{ emoji }}</span>\n\t</div>\n</template>\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\temoji: '',\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tselect(emoji) {\n\t\t\t\tthis.emoji = emoji\n\t\t\t},\n\t\t},\n\t}\n</script>\n```\n\n* Allow unselecting a previously set emoji.\n\n```vue\n<template>\n\t<div>\n\t\t<NcEmojiPicker\n\t\t\t:show-preview=\"true\"\n\t\t\t:allow-unselect=\"true\"\n\t\t\t:selected-emoji=\"emoji\"\n\t\t\t@select=\"select\"\n\t\t\t@unselect=\"unselect\"\n\t\t\tstyle=\"display: inline-block\">\n\t\t\t<NcButton> Click Me </NcButton>\n\t\t</NcEmojiPicker>\n\t\t<span>selected emoji: {{ emoji }}</span>\n\t</div>\n</template>\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\temoji: '',\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tselect(emoji) {\n\t\t\t\tthis.emoji = emoji\n\t\t\t},\n\t\t\tunselect() {\n\t\t\t\tthis.emoji = ''\n\t\t\t},\n\t\t},\n\t}\n</script>\n```\n\n</docs>\n\n<template>\n\t<NcPopover\n\t\tref=\"popover\"\n\t\tv-model:shown=\"open\"\n\t\t:container=\"container\"\n\t\tpopup-role=\"dialog\"\n\t\t:no-focus-trap=\"true /* Handled manually to remove emoji buttons from TAB sequence */\"\n\t\t@after-show=\"afterShow\"\n\t\t@after-hide=\"afterHide\">\n\t\t<template #trigger=\"slotProps\">\n\t\t\t<slot v-bind=\"slotProps\" />\n\t\t</template>\n\t\t<div class=\"nc-emoji-picker-container\">\n\t\t\t<Picker\n\t\t\t\tref=\"picker\"\n\t\t\t\tcolor=\"var(--color-primary-element)\"\n\t\t\t\t:data=\"emojiIndex\"\n\t\t\t\t:emoji=\"previewFallbackEmoji\"\n\t\t\t\t:i18n\n\t\t\t\t:native\n\t\t\t\t:emoji-size=\"20\"\n\t\t\t\t:per-line=\"8\"\n\t\t\t\t:picker-styles=\"{ width: '320px' }\"\n\t\t\t\t:show-preview\n\t\t\t\t:skin=\"currentSkinTone\"\n\t\t\t\t:show-skin-tones=\"false\"\n\t\t\t\t:title=\"previewFallbackName\"\n\t\t\t\trole=\"dialog\"\n\t\t\t\taria-modal=\"true\"\n\t\t\t\t:aria-label=\"t('Emoji picker')\"\n\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t@keydown.tab.prevent=\"handleTabNavigationSkippingEmojis\"\n\t\t\t\t@select=\"select\">\n\t\t\t\t<template #searchTemplate=\"{ onSearch }\">\n\t\t\t\t\t<div class=\"search__wrapper\">\n\t\t\t\t\t\t<NcTextField\n\t\t\t\t\t\t\tref=\"search\"\n\t\t\t\t\t\t\tv-model=\"search\"\n\t\t\t\t\t\t\tclass=\"search\"\n\t\t\t\t\t\t\t:label=\"t('Search')\"\n\t\t\t\t\t\t\t:label-visible=\"true\"\n\t\t\t\t\t\t\t:placeholder=\"i18n.search\"\n\t\t\t\t\t\t\ttrailing-button-icon=\"close\"\n\t\t\t\t\t\t\t:trailing-button-label=\"t('Clear search')\"\n\t\t\t\t\t\t\t:show-trailing-button=\"search !== ''\"\n\t\t\t\t\t\t\t@keydown.left=\"callPickerArrowHandlerWithScrollFix('onArrowLeft', $event)\"\n\t\t\t\t\t\t\t@keydown.right=\"callPickerArrowHandlerWithScrollFix('onArrowRight', $event)\"\n\t\t\t\t\t\t\t@keydown.down=\"callPickerArrowHandlerWithScrollFix('onArrowDown', $event)\"\n\t\t\t\t\t\t\t@keydown.up=\"callPickerArrowHandlerWithScrollFix('onArrowUp', $event)\"\n\t\t\t\t\t\t\t@keydown.enter=\"$refs.picker.onEnter($event)\"\n\t\t\t\t\t\t\t@trailing-button-click=\"clearSearch(); onSearch('');\"\n\t\t\t\t\t\t\t@update:model-value=\"onSearch(search)\" />\n\t\t\t\t\t\t<NcColorPicker\n\t\t\t\t\t\t\tpalette-only\n\t\t\t\t\t\t\t:container\n\t\t\t\t\t\t\t:palette=\"skinTonePalette\"\n\t\t\t\t\t\t\t:model-value=\"currentColor.color\"\n\t\t\t\t\t\t\t@update:model-value=\"onChangeSkinTone\">\n\t\t\t\t\t\t\t<NcButton :aria-label=\"t('Skin tone')\" variant=\"tertiary-no-background\">\n\t\t\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t\t\t<IconCircle :style=\"{ color: currentColor.color }\" :title=\"currentColor.name\" :size=\"20\" />\n\t\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t\t</NcColorPicker>\n\t\t\t\t\t</div>\n\t\t\t\t</template>\n\t\t\t\t<template v-if=\"allowUnselect && selectedEmoji\" #customCategory>\n\t\t\t\t\t<div class=\"emoji-mart-category-label\">\n\t\t\t\t\t\t<h3 class=\"emoji-mart-category-label\">\n\t\t\t\t\t\t\t{{ t('Selected') }}\n\t\t\t\t\t\t</h3>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Emoji\n\t\t\t\t\t\tclass=\"emoji-selected\"\n\t\t\t\t\t\t:data=\"emojiIndex\"\n\t\t\t\t\t\t:emoji=\"selectedEmoji\"\n\t\t\t\t\t\tnative\n\t\t\t\t\t\t:size=\"32\"\n\t\t\t\t\t\t@click=\"unselect\" />\n\t\t\t\t\t<Emoji\n\t\t\t\t\t\tclass=\"emoji-delete\"\n\t\t\t\t\t\t:data=\"emojiIndex\"\n\t\t\t\t\t\temoji=\":x:\"\n\t\t\t\t\t\tnative\n\t\t\t\t\t\t:size=\"10\"\n\t\t\t\t\t\t@click=\"unselect\" />\n\t\t\t\t</template>\n\t\t\t</Picker>\n\t\t</div>\n\t</NcPopover>\n</template>\n\n<script>\nimport data from 'emoji-mart-vue-fast/data/all.json'\nimport { Emoji, EmojiIndex, Picker } from 'emoji-mart-vue-fast/src/index.js'\nimport { isFocusable } from 'tabbable'\nimport IconCircle from 'vue-material-design-icons/Circle.vue'\nimport NcColorPicker from '../NcColorPicker/NcColorPicker.vue'\nimport { useTrapStackControl } from '../../composables/useTrapStackControl.ts'\nimport { getCurrentSkinTone, setCurrentSkinTone } from '../../functions/emoji/emoji.ts'\nimport { t } from '../../l10n.ts'\nimport { Color } from '../../utils/colors.ts'\nimport NcButton from '../NcButton/index.ts'\nimport NcPopover from '../NcPopover/index.js'\nimport NcTextField from '../NcTextField/index.ts'\n\n// Shared emoji index and skinTone for all NcEmojiPicker instances\n// Will be initialized on the first NcEmojiPicker creating\nlet emojiIndex\n\nconst i18n = {\n\tsearch: t('Search emoji'),\n\tnotfound: t('No emoji found'),\n\tcategories: {\n\t\tsearch: t('Search results'),\n\t\trecent: t('Frequently used'),\n\t\tsmileys: t('Smileys & Emotion'),\n\t\tpeople: t('People & Body'),\n\t\tnature: t('Animals & Nature'),\n\t\tfoods: t('Food & Drink'),\n\t\tactivity: t('Activities'),\n\t\tplaces: t('Travel & Places'),\n\t\tobjects: t('Objects'),\n\t\tsymbols: t('Symbols'),\n\t\tflags: t('Flags'),\n\t\tcustom: t('Custom'),\n\t},\n}\n\nconst skinTonePalette = [\n\tnew Color(255, 222, 52, t('Neutral skin color')),\n\tnew Color(228, 205, 166, t('Light skin tone')),\n\tnew Color(250, 221, 192, t('Medium light skin tone')),\n\tnew Color(174, 129, 87, t('Medium skin tone')),\n\tnew Color(158, 113, 88, t('Medium dark skin tone')),\n\tnew Color(96, 79, 69, t('Dark skin tone')),\n]\n\nexport default {\n\tname: 'NcEmojiPicker',\n\n\tcomponents: {\n\t\tIconCircle,\n\t\tNcButton,\n\t\tNcColorPicker,\n\t\tNcPopover,\n\t\tNcTextField,\n\t\tEmoji,\n\t\tPicker,\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * The emoji-set\n\t\t */\n\t\tactiveSet: {\n\t\t\ttype: String,\n\t\t\tdefault: 'native',\n\t\t},\n\n\t\t/**\n\t\t * Show preview section when hovering emoji\n\t\t */\n\t\tshowPreview: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Allow unselecting the selected emoji\n\t\t */\n\t\tallowUnselect: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Selected emoji to allow unselecting\n\t\t */\n\t\tselectedEmoji: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * The fallback emoji in the preview section\n\t\t */\n\t\tpreviewFallbackEmoji: {\n\t\t\ttype: String,\n\t\t\tdefault: 'grinning',\n\t\t},\n\n\t\t/**\n\t\t * The fallback text in the preview section\n\t\t */\n\t\tpreviewFallbackName: {\n\t\t\ttype: String,\n\t\t\tdefault: t('Pick an emoji'),\n\t\t},\n\n\t\t/**\n\t\t * Whether to close the emoji picker after picking one\n\t\t */\n\t\tcloseOnSelect: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Selector for the popover container\n\t\t */\n\t\tcontainer: {\n\t\t\ttype: [Boolean, String, Object, Element],\n\t\t\tdefault: 'body',\n\t\t},\n\t},\n\n\temits: [\n\t\t'select',\n\t\t'selectData',\n\t\t'unselect',\n\t],\n\n\tsetup() {\n\t\t// If this is the first instance of NcEmojiPicker - setup EmojiIndex\n\t\tif (!emojiIndex) {\n\t\t\temojiIndex = new EmojiIndex(data)\n\t\t}\n\n\t\treturn {\n\t\t\t// Non-reactive constants\n\t\t\temojiIndex,\n\t\t\tskinTonePalette,\n\t\t\ti18n,\n\t\t}\n\t},\n\n\tdata() {\n\t\tconst currentSkinTone = getCurrentSkinTone()\n\n\t\treturn {\n\t\t\t/**\n\t\t\t * The current active color from the skin tone palette\n\t\t\t */\n\t\t\tcurrentColor: skinTonePalette[currentSkinTone - 1],\n\t\t\t/**\n\t\t\t * The current active skin tone\n\t\t\t *\n\t\t\t * @type {1|2|3|4|5|6}\n\t\t\t */\n\t\t\tcurrentSkinTone,\n\t\t\tsearch: '',\n\t\t\topen: false,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tnative() {\n\t\t\treturn this.activeSet === 'native'\n\t\t},\n\t},\n\n\tcreated() {\n\t\t// Component has its own custom focus management\n\t\t// The global focus trap stack should be paused\n\t\tuseTrapStackControl(() => this.open)\n\t},\n\n\tmethods: {\n\t\tt,\n\n\t\tclearSearch() {\n\t\t\tthis.search = ''\n\t\t\tthis.$refs.search.focus()\n\t\t},\n\n\t\t/**\n\t\t * Update the current skin tone by the result of the color picker\n\t\t *\n\t\t * @param {string} color Color set\n\t\t */\n\t\tonChangeSkinTone(color) {\n\t\t\tconst index = this.skinTonePalette.findIndex((tone) => tone.color.toLowerCase() === color.toLowerCase())\n\t\t\tif (index > -1) {\n\t\t\t\tthis.currentSkinTone = index + 1\n\t\t\t\tthis.currentColor = this.skinTonePalette[index]\n\t\t\t\tsetCurrentSkinTone(this.currentSkinTone)\n\t\t\t}\n\t\t},\n\n\t\tselect(emojiObject) {\n\t\t\t/**\n\t\t\t * Emits a string containing the emoji e.g. '👩🏿💻'\n\t\t\t */\n\t\t\tthis.$emit('select', emojiObject.native)\n\n\t\t\t/**\n\t\t\t * Emits a object with more data about the picked emoji\n\t\t\t */\n\t\t\tthis.$emit('selectData', emojiObject)\n\n\t\t\tif (this.closeOnSelect) {\n\t\t\t\tthis.open = false\n\t\t\t}\n\t\t},\n\n\t\tunselect() {\n\t\t\tthis.$emit('unselect')\n\t\t},\n\n\t\tafterShow() {\n\t\t\tthis.$refs.search.focus()\n\t\t},\n\n\t\tafterHide() {\n\t\t\t// Manually return focus to the trigger button, as we disabled focus-trap\n\t\t\t// But only if there is no focus target outside the picker, for example, input element that received focus by click closing the emoji picker\n\t\t\tif (!document.activeElement || this.$refs.picker.$el.contains(document.activeElement) || !isFocusable(document.activeElement)) {\n\t\t\t\tthis.$refs.popover.$el.querySelector('button, [role=\"button\"]')?.focus()\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Manually handle Tab navigation skipping emoji buttons.\n\t\t * Navigation over emojis is handled by Arrow keys.\n\t\t *\n\t\t * @param {KeyboardEvent} event - Keyboard event\n\t\t */\n\t\thandleTabNavigationSkippingEmojis(event) {\n\t\t\tconst current = event.target\n\t\t\tconst focusable = Array.from(this.$refs.picker.$el.querySelectorAll('button:not(.emoji-mart-emoji), input'))\n\t\t\tif (!event.shiftKey) {\n\t\t\t\tconst nextNode = focusable.find((node) => current.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_FOLLOWING) || focusable[0]\n\t\t\t\tnextNode.focus()\n\t\t\t} else {\n\t\t\t\tconst prevNode = focusable.findLast((node) => current.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_PRECEDING) || focusable.at(-1)\n\t\t\t\tprevNode.focus()\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Handle arrow navigation via <Picker>'s handlers with scroll bug fix\n\t\t *\n\t\t * @param {'onArrowLeft' | 'onArrowRight' | 'onArrowDown' | 'onArrowUp'} originalHandlerName - Picker's arrow keydown handler name\n\t\t * @param {KeyboardEvent} event - Keyboard event\n\t\t */\n\t\tasync callPickerArrowHandlerWithScrollFix(originalHandlerName, event) {\n\t\t\t// Call the original handler\n\t\t\t// See: https://github.com/serebrov/emoji-mart-vue/blob/a1ea72673a111cce78dc8caad8bc9ea3e02ad5bd/src/components/Picker.vue#L29\n\t\t\t// TODO: expose these methods via slot props in upstream library\n\t\t\tthis.$refs.picker[originalHandlerName](event)\n\n\t\t\t// Wait until emoji-mart-vue-fast scrolls\n\t\t\tawait this.$nextTick()\n\n\t\t\t// Scroll position is incorrect after emoji-mart-vue-fast scrolls...\n\t\t\t// It calculates scroll incorrectly.\n\t\t\t// It doesn't take into account, that emojis are wrapped into categories sections\n\t\t\t// See: https://github.com/serebrov/emoji-mart-vue/blob/a1ea72673a111cce78dc8caad8bc9ea3e02ad5bd/src/utils/picker.js#L244\n\t\t\t// Now scroll to the correct position\n\t\t\t// TODO: fix in upstream\n\t\t\tconst selectedEmoji = this.$refs.picker.$el.querySelector('.emoji-mart-emoji-selected')\n\t\t\tselectedEmoji?.scrollIntoView({\n\t\t\t\tblock: 'center',\n\t\t\t\tinline: 'center',\n\t\t\t})\n\t\t},\n\t},\n}\n</script>\n\n<style scoped lang=\"scss\">\n@use \"sass:meta\";\n\n.nc-emoji-picker-container :deep() {\n\t@include meta.load-css('emoji-mart-vue-fast/css/emoji-mart.css');\n}\n\n.nc-emoji-picker-container :deep(.emoji-mart) {\n\tbackground-color: var(--color-main-background) !important;\n\tborder: 0;\n\tcolor: var(--color-main-text) !important;\n\tdisplay: flex !important;\n\n\t// Reset emoji-mart styles\n\tbutton {\n\t\tborder: none;\n\t\tbackground: transparent;\n\t\tfont-size: inherit;\n\t}\n\n\t.emoji-mart-bar,\n\t.emoji-mart-anchors,\n\t.emoji-mart-search,\n\t.emoji-mart-search input,\n\t.emoji-mart-category,\n\t.emoji-mart-category-label,\n\t.emoji-mart-category-label span,\n\t.emoji-mart-skin-swatches {\n\t\tbackground-color: transparent !important;\n\t\tborder-color: var(--color-border) !important;\n\t\tcolor: inherit !important;\n\t}\n\n\t.emoji-mart-anchors {\n\t\tpadding-block: 0;\n\t\tpadding-inline: calc(2 * var(--default-grid-baseline));\n\t}\n\n\t.emoji-mart-anchor {\n\t\tborder-radius: 0;\n\t\tmargin: 0 !important;\n\t\tpadding: 0 !important;\n\t\theight: var(--clickable-area-small);\n\t\tmin-width: var(--clickable-area-small);\n\n\t\t&:hover {\n\t\t\tbackground-color: var(--color-background-hover);\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\toutline: 2px solid var(--color-primary-element) !important;\n\t\t\toutline-offset: -2px;\n\t\t}\n\n\t\t// Icon\n\t\tdiv {\n\t\t\tdisplay: grid;\n\t\t\tplace-content: center;\n\t\t}\n\t}\n\n\t.emoji-mart-scroll {\n\t\tpadding-inline: calc(2 * var(--default-grid-baseline));\n\t\tpadding-block: 0 calc(2 * var(--default-grid-baseline));\n\t}\n\n\t.emoji-mart-category {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: repeat(8, 1fr);\n\t\tjustify-items: stretch;\n\n\t\t&.emoji-mart-no-results {\n\t\t\tgrid-template-columns: 1fr;\n\t\t\tfont-size: inherit;\n\t\t\tcolor: var(--color-text-maxcontrast) !important;\n\t\t}\n\t}\n\n\t/* Label element in the section grid */\n\tdiv.emoji-mart-category-label {\n\t\tgrid-column: span 8;\n\t\tjustify-self: stretch;\n\t}\n\n\t/* An actual heading inside the element */\n\th3.emoji-mart-category-label {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\t// Inline with buttons\n\t\theight: var(--default-clickable-area);\n\t\tmargin: 0;\n\t\t// Inline with input\n\t\tpadding-inline: calc(2 * var(--default-grid-baseline));\n\t\tpadding-block: 0;\n\t\tuser-select: none;\n\t}\n\n\t.emoji-mart-emoji {\n\t\taspect-ratio: 1 / 1;\n\t\ttext-align: center;\n\t\tmargin: 0 !important;\n\t\tpadding: 0 !important;\n\n\t\t&:hover,\n\t\t&:focus-visible,\n\t\t&.emoji-mart-emoji-selected {\n\t\t\tbackground-color: var(--color-background-hover) !important;\n\t\t\tborder: none;\n\t\t\tborder-radius: var(--border-radius-element);\n\t\t\tbox-shadow: none !important;\n\t\t\toutline: 2px solid var(--color-primary-element) !important;\n\t\t\toutline-offset: -2px;\n\t\t}\n\n\t\t&::before {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\tspan {\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n}\n\n.search__wrapper {\n\tdisplay: flex;\n\tflex-direction: row;\n\tgap: var(--default-grid-baseline);\n\talign-items: end;\n\tpadding-block: var(--default-grid-baseline);\n\tpadding-inline: calc(2 * var(--default-grid-baseline));\n}\n\n.row-selected {\n\tbutton, span {\n\t\tvertical-align: middle;\n\t}\n}\n\n.emoji-delete {\n\tvertical-align: top;\n\tmargin-inline-start: -21px;\n\tmargin-top: -3px;\n}\n</style>\n"],"names":["_sfc_main","_hoisted_3","_createElementBlock","_mergeProps","_createElementVNode","_openBlock","NcTextField","_createBlock","_withCtx","_renderSlot","_createVNode","_withKeys","_normalizeStyle","_toDisplayString"],"mappings":";;;;;;;;;;;;;AAoBA,MAAKA,cAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACL,OAAO;AAAA,MACL,MAAM;AAAA;IAER,WAAW;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA;IAEX,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,EACF;AACF;;;AAxBY,MAAAC,eAAA,EAAA,GAAE,+EAA8E;;;sBAX1FC,mBAeO,QAfPC,WAAc,KAAA,QAAM;AAAA,IACb,eAAa,OAAA,QAAK,OAAA;AAAA,IAClB,cAAY,OAAA;AAAA,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,MAAM,GAAA,CAAA,OAAA,CAAA;AAAA;gBAC1C,uBAAqB,YAAA;AAAE,2BAAA,YAAW;AAAI,2BAAQ,EAAA;AAAA,gBAAA;AAAA;cAEhDD,YAWgB,0BAAA;AAAA,gBAVf,gBAAA;AAAA,gBACC,WAAA,OAAA;AAAA,gBACA,SAAS,OAAA;AAAA,gBACT,eAAa,MAAA,aAAa;AAAA,gBAC1B,uBAAoB,SAAA;AAAA;iCACrB,MAIW;AAAA,kBAJXA,YAIW,qBAAA;AAAA,oBAJA,cAAY,SAAA,EAAC,WAAA;AAAA,oBAAe,SAAQ;AAAA;oBACnC,cACV,MAA2F;AAAA,sBAA3FA,YAA2F,uBAAA;AAAA,wBAA9E,OAAKE,eAAA,EAAA,OAAW,MAAA,aAAa,OAAK;AAAA,wBAAK,OAAO,MAAA,aAAa;AAAA,wBAAO,MAAM;AAAA;;;;;;;;;;;UAM1E,OAAA,iBAAiB,OAAA;kBAAgB;AAAA,wBAChD,MAIM;AAAA,cAJNR,mBAIM,OAJN,YAIM;AAAA,gBAHLA,mBAEK,MAFL,YAEKS,gBADD,SAAA,EAAC,UAAA,CAAA,GAAA,CAAA;AAAA;cAGNH,YAMqB,kBAAA;AAAA,gBALpB,OAAM;AAAA,gBACL,MAAM,OAAA;AAAA,gBACN,OAAO,OAAA;AAAA,gBACR,QAAA;AAAA,gBACC,MAAM;AAAA,gBACN,SAAO,SAAA;AAAA;cACTA,YAMqB,kBAAA;AAAA,gBALpB,OAAM;AAAA,gBACL,MAAM,OAAA;AAAA,gBACP,OAAM;AAAA,gBACN,QAAA;AAAA,gBACC,MAAM;AAAA,gBACN,SAAO,SAAA;AAAA;;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import '../assets/NcHeaderButton-
|
|
1
|
+
import '../assets/NcHeaderButton-CVOQgRjm.css';
|
|
2
2
|
import { defineComponent, createElementBlock, openBlock, createVNode, createCommentVNode, unref, withModifiers, withCtx, renderSlot, toDisplayString } from "vue";
|
|
3
3
|
import { c as createElementId } from "./createElementId-DhjFt1I9.mjs";
|
|
4
|
-
import { N as NcButton } from "./NcButton-
|
|
4
|
+
import { N as NcButton } from "./NcButton-DkC5k3Lb.mjs";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
6
6
|
const _hoisted_1 = ["id"];
|
|
7
7
|
const _hoisted_2 = ["id"];
|
|
@@ -42,8 +42,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
const NcHeaderButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
45
|
+
const NcHeaderButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-92fb182d"]]);
|
|
46
46
|
export {
|
|
47
47
|
NcHeaderButton as N
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=NcHeaderButton-
|
|
49
|
+
//# sourceMappingURL=NcHeaderButton-DafXYbXB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcHeaderButton-DafXYbXB.mjs","sources":["../../src/components/NcHeaderButton/NcHeaderButton.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2024 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 in the Nextcloud top header,\nsimilar to the NcHeaderMenu but to be used when only a trigger button is needed, e.g. when opening a dialog.\n\n```\n<template>\n\t<div id=\"nextcloud-header\">\n\t\t<NcHeaderButton id=\"search-dialog\"\n\t\t\taria-label=\"Search\"\n\t\t\t@click=\"showDialog = true\">\n\t\t\t<template #icon>\n\t\t\t\t<Magnify />\n\t\t\t</template>\n\t\t</NcHeaderButton>\n\n\t\t<NcDialog name=\"Search\"\n\t\t\tsize=\"normal\"\n\t\t\tv-model:open=\"showDialog\">\n\t\t\t<NcTextField label=\"Search for files, comments, contacts …\"\n\t\t\t\ttype=\"search\"\n\t\t\t\tv-model=\"query\" />\n\t\t\t<NcEmptyContent name=\"Search\"\n\t\t\t\t:description=\"query ? `No results for '${query}'` : 'Start typing to search'\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Magnify />\n\t\t\t\t</template>\n\t\t\t</NcEmptyContent>\n\t\t</NcDialog>\n\t</div>\n</template>\n<script>\nimport Magnify from 'vue-material-design-icons/Magnify'\n\nexport default {\n\tcomponents: {\n\t\tMagnify,\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tshowDialog: false,\n\t\t\tquery: '',\n\t\t}\n\t},\n}\n</script>\n<style>\n#nextcloud-header {\n\tdisplay: flex;\n\tjustify-content: right;\n\tbackground-color: var(--color-primary);\n\theight: var(--header-height, 50px);\n\tpadding-inline-end: 12px;\n}\n</style>\n```\n</docs>\n\n<template>\n\t<!-- We need a wrapper for server styles to apply -->\n\t<div :id=\"id\" class=\"header-menu\">\n\t\t<NcButton\n\t\t\t:aria-label=\"ariaLabel\"\n\t\t\t:aria-describedby=\"descriptionId\"\n\t\t\tclass=\"header-menu__trigger\"\n\t\t\tsize=\"large\"\n\t\t\tvariant=\"tertiary-no-background\"\n\t\t\t@click.prevent=\"$emit('click', $event)\">\n\t\t\t<template #icon>\n\t\t\t\t<!-- @slot Icon trigger slot. Make sure the svg path\n\t\t\t\tis at least 16px. Usually mdi icon works at 20px -->\n\t\t\t\t<slot name=\"icon\" />\n\t\t\t</template>\n\t\t</NcButton>\n\n\t\t<span\n\t\t\tv-if=\"description\"\n\t\t\t:id=\"descriptionId\"\n\t\t\tclass=\"header-menu__description hidden-visually\">\n\t\t\t{{ description }}\n\t\t</span>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport { createElementId } from '../../utils/createElementId.ts'\nimport NcButton from '../NcButton/index.ts'\n\ndefineProps<{\n\t/** Unique id for this menu */\n\tid: string\n\t/** `aria-label` attribute of the button */\n\tariaLabel: string\n\t/** Optional visually hidden description text for the button */\n\tdescription?: string\n}>()\n\ndefineEmits<{\n\tclick: [event: MouseEvent]\n}>()\n\nconst descriptionId = createElementId()\n</script>\n\n<style lang=\"scss\" scoped>\n@use '../NcHeaderMenu/header-menu__trigger.scss';\n</style>\n"],"names":["_createElementBlock","id","_createVNode","_unref","ariaLabel","_withModifiers","$emit","_renderSlot","description"],"mappings":";;;;;;;;;;;;;;;AA0GA,UAAM,gBAAgB,gBAAA;;0BAzCrBA,mBAqBM,OAAA;AAAA,QArBA,IAAIC,KAAAA;AAAAA,QAAI,OAAM;AAAA,MAAA;QACnBC,YAYWC,MAAA,QAAA,GAAA;AAAA,UAXT,cAAYC,KAAAA;AAAAA,UACZ,oBAAkBD,MAAA,aAAA;AAAA,UACnB,OAAM;AAAA,UACN,MAAK;AAAA,UACL,SAAQ;AAAA,UACP,SAAK,OAAA,CAAA,MAAA,OAAA,CAAA,IAAAE,cAAA,CAAA,WAAUC,KAAAA,MAAK,SAAU,MAAM,GAAA,CAAA,SAAA,CAAA;AAAA,QAAA;UAC1B,cAGV,MAAoB;AAAA,YAApBC,WAAoB,KAAA,QAAA,QAAA,CAAA,GAAA,QAAA,IAAA;AAAA,UAAA;;;QAKfC,KAAAA,4BADPR,mBAKO,QAAA;AAAA;UAHL,IAAIG,MAAA,aAAA;AAAA,UACL,OAAM;AAAA,QAAA,mBACHK,KAAAA,WAAW,GAAA,GAAA,UAAA;;;;;;"}
|