@nextcloud/vue 9.0.0-alpha.7 → 9.0.0-rc.0
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 +306 -140
- package/README.md +9 -5
- package/dist/assets/{NcActionButton-CVjVxm7I.css → NcActionButton-DfdRrSEu.css} +16 -16
- package/dist/assets/{NcActionCaption-BNDtcWJ7.css → NcActionCaption-DnG2OyWa.css} +2 -2
- package/dist/assets/{NcActionCheckbox-CnTyr-NN.css → NcActionCheckbox--lTDnNsx.css} +12 -12
- package/dist/assets/{NcActionInput-D19t1QsM.css → NcActionInput-BNWL2Q-3.css} +62 -62
- package/dist/assets/{NcActionLink-DA3ebr8W.css → NcActionLink-C9_ycPLF.css} +12 -12
- package/dist/assets/{NcActionRadio-C7Kqlz6k.css → NcActionRadio-DnAjyubC.css} +12 -12
- package/dist/assets/{NcActionRouter-BtJqkgqu.css → NcActionRouter-CVsc7Ezc.css} +15 -15
- package/dist/assets/{NcActionText-FHEPUweO.css → NcActionText-C7y7Pe6P.css} +17 -17
- package/dist/assets/{NcActionTextEditable-DzNRmwkV.css → NcActionTextEditable-OBnWSj_T.css} +60 -60
- package/dist/assets/{NcActions-BepWTc-7.css → NcActions-D7gPHaUE.css} +11 -11
- package/dist/assets/{NcAppContent-BZ3rplmb.css → NcAppContent-CvTesBem.css} +24 -24
- package/dist/assets/{NcAppNavigation-_K9H-MtG.css → NcAppNavigation-BXItV5BV.css} +13 -13
- package/dist/assets/{NcAppNavigationItem-PKTHyQue.css → NcAppNavigationItem-DRU-cLRN.css} +34 -34
- package/dist/assets/{NcAppNavigationNew-L_VNZNL4.css → NcAppNavigationNew-Ba3wWpcY.css} +3 -3
- package/dist/assets/{NcAppNavigationNewItem-rCrG0Uuo.css → NcAppNavigationNewItem-CsqJ6c8v.css} +32 -32
- package/dist/assets/{NcAppNavigationSearch-Bsr4esEc.css → NcAppNavigationSearch-BAzhDRd7.css} +6 -6
- package/dist/assets/{NcAppNavigationToggle-By3_rHPL.css → NcAppNavigationToggle-DnTKNSH7.css} +3 -3
- package/dist/assets/{NcAppSettingsDialog-c8Xj_A-1.css → NcAppSettingsDialog-DZfD_UEa.css} +11 -11
- package/dist/assets/{NcAppSidebar-g99AGRiQ.css → NcAppSidebar-GFQ62pY2.css} +61 -61
- package/dist/assets/{NcAvatar-Bg20-FW4.css → NcAvatar-UxFZ39EC.css} +26 -26
- package/dist/assets/{NcBreadcrumb-r0TATv9A.css → NcBreadcrumb-CV3DgRKn.css} +15 -15
- package/dist/assets/{NcBreadcrumbs-Bbd8rdwH.css → NcBreadcrumbs-D2wff82k.css} +6 -6
- package/dist/assets/{NcButton-C50FLvfa.css → NcButton-DbE0wInI.css} +68 -65
- package/dist/assets/{NcCheckboxRadioSwitch-jfJIoM4m.css → NcCheckboxRadioSwitch-sqQXUuVB.css} +46 -45
- package/dist/assets/{NcChip-BWWUudAH.css → NcChip-CKtzzrlA.css} +9 -9
- package/dist/assets/{NcCollectionList-COXbQt16.css → NcCollectionList-DTJgOfCk.css} +29 -29
- package/dist/assets/{NcColorPicker-3h8DrL_S.css → NcColorPicker-Clz7MjCA.css} +29 -29
- package/dist/assets/{NcContent-BgziefsK.css → NcContent-aXaYSfjS.css} +10 -10
- package/dist/assets/{NcDashboardWidget-Cdxxd7ei.css → NcDashboardWidget-xV4o6Cen.css} +14 -15
- package/dist/assets/NcDateTimePicker-pmbCzZnb.css +83 -0
- package/dist/assets/{NcDateTimePickerNative-pbWtBuzt.css → NcDateTimePickerNative-CdHLvH4A.css} +13 -13
- package/dist/assets/{NcDialog-DL7A_udP.css → NcDialog-bP7Jt0ZE.css} +15 -15
- package/dist/assets/{NcEllipsisedOption-DGr9_bIL.css → NcEllipsisedOption-D-IsjXWc.css} +5 -5
- package/dist/assets/{NcEmojiPicker-Bfk2pnZE.css → NcEmojiPicker-DnMU8iEd.css} +5 -5
- package/dist/assets/{NcEmptyContent-DZSuQ2yE.css → NcEmptyContent-D1O466rM.css} +9 -9
- package/dist/assets/{NcHeaderButton-cVjCMSVn.css → NcHeaderButton-Ct8k0yDh.css} +7 -7
- package/dist/assets/{NcHeaderMenu-QJK2rMK3.css → NcHeaderMenu-zo6kw_jn.css} +11 -11
- package/dist/assets/{NcIconSvgWrapper-DQFhmjCC.css → NcIconSvgWrapper-BzRHs8iB.css} +11 -8
- package/dist/assets/{NcInputConfirmCancel-D46m8Alt.css → NcInputConfirmCancel-9YyvRYjw.css} +6 -6
- package/dist/assets/{NcInputField-CRvNH5sg.css → NcInputField-B8J2uFD4.css} +32 -32
- package/dist/assets/{NcListItem-BEfZK5UK.css → NcListItem-Byw-ayOI.css} +44 -44
- package/dist/assets/{NcListItemIcon-E21VFJqd.css → NcListItemIcon-Bnr-Z-SO.css} +14 -14
- package/dist/assets/{NcMentionBubble-BL05HUeF.css → NcMentionBubble-CB5c5ue2.css} +10 -9
- package/dist/assets/{NcPasswordField-Bl9fhgy-.css → NcPasswordField-z9gbKnov.css} +2 -2
- package/dist/assets/{NcPopover-ChETNAVH.css → NcPopover-zFjgXDlM.css} +13 -0
- package/dist/assets/{NcRelatedResourcesPanel-Chjd8iT7.css → NcRelatedResourcesPanel-DXfywiqL.css} +23 -23
- package/dist/assets/{NcRichContenteditable-BwHgQWPX.css → NcRichContenteditable-CkyUKlIz.css} +31 -28
- package/dist/assets/{NcRichText-fo4QE8--.css → NcRichText-BbVi69cc.css} +87 -89
- package/dist/assets/{NcSelect-GdIw6cIy.css → NcSelect-BCBpQnFL.css} +2 -5
- package/dist/assets/{NcSettingsInputText-BTOyFeAK.css → NcSettingsInputText-B-V6Y4MD.css} +7 -7
- package/dist/assets/{NcSettingsSelectGroup-DhyosmOr.css → NcSettingsSelectGroup-DZcNr_Dq.css} +2 -2
- package/dist/assets/{NcTextArea-BfSGN55r.css → NcTextArea-DHr9DPOJ.css} +20 -20
- package/dist/assets/{index-BRaTLqzR.css → index-CjPwAJ46.css} +68 -69
- package/dist/assets/index-D9L0rgJk.css +4 -0
- package/dist/assets/{referencePickerModal-Cy43S4js.css → referencePickerModal-CkGgDb19.css} +8 -8
- package/dist/chunks/AlertCircleOutline-DVzpKQVu.mjs +1 -0
- package/dist/chunks/ArrowLeft-CanHG70H.mjs +1 -0
- package/dist/chunks/ArrowRight-DQT24Cb-.mjs +1 -0
- package/dist/chunks/Check-5i4xKnkl.mjs +1 -0
- package/dist/chunks/ChevronDown-FiGpp0KT.mjs +1 -0
- package/dist/chunks/ChevronRight-LvtA5_hq.mjs +1 -0
- package/dist/chunks/ChevronUp-DPXFp1ss.mjs +1 -0
- package/dist/chunks/{Close-idsVwGrC.mjs → Close-D6ngJ4t9.mjs} +3 -2
- package/dist/chunks/{Close-idsVwGrC.mjs.map → Close-D6ngJ4t9.mjs.map} +1 -1
- package/dist/chunks/DotsHorizontal-AMVAlTNH.mjs +1 -0
- package/dist/chunks/{NcActionButton-DBFJTCO5.mjs → NcActionButton-BZEDhdCm.mjs} +51 -7
- package/dist/chunks/NcActionButton-BZEDhdCm.mjs.map +1 -0
- package/dist/chunks/{NcActionButtonGroup-nwHeJeV7.mjs → NcActionButtonGroup-Dqt8Gekb.mjs} +6 -4
- package/dist/chunks/NcActionButtonGroup-Dqt8Gekb.mjs.map +1 -0
- package/dist/chunks/{NcActionCaption-DmOKI_Kc.mjs → NcActionCaption-Fumfjzxj.mjs} +5 -3
- package/dist/chunks/NcActionCaption-Fumfjzxj.mjs.map +1 -0
- package/dist/chunks/{NcActionCheckbox-yPCmA5vr.mjs → NcActionCheckbox-DLPDTACR.mjs} +7 -5
- package/dist/chunks/NcActionCheckbox-DLPDTACR.mjs.map +1 -0
- package/dist/chunks/{NcActionInput-DTzVHmHn.mjs → NcActionInput-C_rmP0eZ.mjs} +13 -12
- package/dist/chunks/NcActionInput-C_rmP0eZ.mjs.map +1 -0
- package/dist/chunks/{NcActionLink-CG3cKif-.mjs → NcActionLink-BTIApspK.mjs} +6 -4
- package/dist/chunks/NcActionLink-BTIApspK.mjs.map +1 -0
- package/dist/chunks/{NcActionRadio-BWPi0DII.mjs → NcActionRadio-CPoWB58D.mjs} +7 -5
- package/dist/chunks/NcActionRadio-CPoWB58D.mjs.map +1 -0
- package/dist/chunks/{NcActionRouter-C7VSuJLq.mjs → NcActionRouter-DATNpU_e.mjs} +6 -4
- package/dist/chunks/NcActionRouter-DATNpU_e.mjs.map +1 -0
- package/dist/chunks/NcActionSeparator-Doekl1NX.mjs +1 -0
- package/dist/chunks/{NcActionText-ByD1mFXe.mjs → NcActionText-3mJjsJz_.mjs} +6 -4
- package/dist/chunks/NcActionText-3mJjsJz_.mjs.map +1 -0
- package/dist/chunks/{NcActionTextEditable-DLKA6lfe.mjs → NcActionTextEditable-Dv1_bMFY.mjs} +7 -6
- package/dist/chunks/NcActionTextEditable-Dv1_bMFY.mjs.map +1 -0
- package/dist/chunks/{NcActions-DxTtucKk.mjs → NcActions-DpYAcY6a.mjs} +64 -39
- package/dist/chunks/NcActions-DpYAcY6a.mjs.map +1 -0
- package/dist/chunks/{NcAppContent-Cu9zhNK3.mjs → NcAppContent-BMiA5ySy.mjs} +77 -28
- package/dist/chunks/NcAppContent-BMiA5ySy.mjs.map +1 -0
- package/dist/chunks/NcAppContentDetails-DsEEBJ0U.mjs +1 -0
- package/dist/chunks/NcAppContentList-DnLY_sWw.mjs +1 -0
- package/dist/chunks/{NcAppNavigation-BxUvXgeG.mjs → NcAppNavigation-DuLUJbsJ.mjs} +4 -3
- package/dist/chunks/{NcAppNavigation-BxUvXgeG.mjs.map → NcAppNavigation-DuLUJbsJ.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-S_2Jmwqr.mjs → NcAppNavigationCaption-DTVdWgpf.mjs} +2 -1
- package/dist/chunks/{NcAppNavigationCaption-S_2Jmwqr.mjs.map → NcAppNavigationCaption-DTVdWgpf.mjs.map} +1 -1
- package/dist/chunks/NcAppNavigationIconBullet-B1kc4u65.mjs +1 -0
- package/dist/chunks/{NcAppNavigationItem-C7bIZuo2.mjs → NcAppNavigationItem-5KG5Pl2c.mjs} +16 -15
- package/dist/chunks/NcAppNavigationItem-5KG5Pl2c.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationList-DX_Yo23V.mjs +1 -0
- package/dist/chunks/{NcAppNavigationNew-BO-Llutk.mjs → NcAppNavigationNew-BUQgcKdv.mjs} +11 -6
- package/dist/chunks/NcAppNavigationNew-BUQgcKdv.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationNewItem-D7CYmmOm.mjs → NcAppNavigationNewItem-CRCOC0hV.mjs} +4 -3
- package/dist/chunks/{NcAppNavigationNewItem-D7CYmmOm.mjs.map → NcAppNavigationNewItem-CRCOC0hV.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-DLbzvkkq.mjs → NcAppNavigationSearch-AT_S98B0.mjs} +7 -6
- package/dist/chunks/NcAppNavigationSearch-AT_S98B0.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationSettings-vM8ajNNK.mjs → NcAppNavigationSettings-DFsvNlME.mjs} +5 -4
- package/dist/chunks/NcAppNavigationSettings-DFsvNlME.mjs.map +1 -0
- package/dist/chunks/NcAppNavigationSpacer-CzBLuQL8.mjs +1 -0
- package/dist/chunks/{NcAppNavigationToggle-DBtf139E.mjs → NcAppNavigationToggle-CqZs9ls-.mjs} +9 -8
- package/dist/chunks/NcAppNavigationToggle-CqZs9ls-.mjs.map +1 -0
- package/dist/chunks/{NcAppSettingsDialog-CdFUuydh.mjs → NcAppSettingsDialog-CTUoQezW.mjs} +6 -5
- package/dist/chunks/{NcAppSettingsDialog-CdFUuydh.mjs.map → NcAppSettingsDialog-CTUoQezW.mjs.map} +1 -1
- package/dist/chunks/NcAppSettingsSection-CssmXyZ0.mjs +1 -0
- package/dist/chunks/{NcAppSidebar-Dav-iGv2.mjs → NcAppSidebar-B7shIqzm.mjs} +26 -25
- package/dist/chunks/NcAppSidebar-B7shIqzm.mjs.map +1 -0
- package/dist/chunks/NcAppSidebarTab-DG51ajic.mjs +1 -0
- package/dist/chunks/{NcAvatar-A1YnlIoN.mjs → NcAvatar-CvPCBukb.mjs} +59 -37
- package/dist/chunks/NcAvatar-CvPCBukb.mjs.map +1 -0
- package/dist/chunks/NcBlurHash-BiFktE2N.mjs +1 -0
- package/dist/chunks/NcBlurHash-BiFktE2N.mjs.map +1 -1
- package/dist/chunks/{NcBreadcrumb-D5cRcQg5.mjs → NcBreadcrumb-C3qGDt3z.mjs} +21 -17
- package/dist/chunks/NcBreadcrumb-C3qGDt3z.mjs.map +1 -0
- package/dist/chunks/{NcBreadcrumbs-CnWT9rE5.mjs → NcBreadcrumbs-DtBCo9yI.mjs} +9 -9
- package/dist/chunks/NcBreadcrumbs-DtBCo9yI.mjs.map +1 -0
- package/dist/chunks/NcButton-Byg8-ta1.mjs +102 -0
- package/dist/chunks/NcButton-Byg8-ta1.mjs.map +1 -0
- package/dist/chunks/{NcCheckboxRadioSwitch-Ctdu7_UC.mjs → NcCheckboxRadioSwitch-DrNlVZw8.mjs} +31 -28
- package/dist/chunks/NcCheckboxRadioSwitch-DrNlVZw8.mjs.map +1 -0
- package/dist/chunks/{NcChip-BnD-EmBn.mjs → NcChip-Cq8DrWKb.mjs} +22 -61
- package/dist/chunks/NcChip-Cq8DrWKb.mjs.map +1 -0
- package/dist/chunks/{NcCollectionList-9YfN6xAi.mjs → NcCollectionList-CFuwV9sI.mjs} +9 -8
- package/dist/chunks/NcCollectionList-CFuwV9sI.mjs.map +1 -0
- package/dist/chunks/{NcColorPicker-DQqAv2wB.mjs → NcColorPicker-Clo5oIYN.mjs} +14 -13
- package/dist/chunks/NcColorPicker-Clo5oIYN.mjs.map +1 -0
- package/dist/chunks/{NcContent-CsDFFKvH.mjs → NcContent-CUuf0HwJ.mjs} +9 -8
- package/dist/chunks/{NcContent-CsDFFKvH.mjs.map → NcContent-CUuf0HwJ.mjs.map} +1 -1
- package/dist/chunks/NcCounterBubble-6B_JNUUS.mjs +1 -0
- package/dist/chunks/{NcDashboardWidget-ROT13m5A.mjs → NcDashboardWidget-CXw7Hxc8.mjs} +8 -7
- package/dist/chunks/{NcDashboardWidget-ROT13m5A.mjs.map → NcDashboardWidget-CXw7Hxc8.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-DoYOYxck.mjs → NcDashboardWidgetItem-C6GoJEri.mjs} +4 -3
- package/dist/chunks/{NcDashboardWidgetItem-DoYOYxck.mjs.map → NcDashboardWidgetItem-C6GoJEri.mjs.map} +1 -1
- package/dist/chunks/NcDateTime.vue_vue_type_script_setup_true_lang-BYXau4sd.mjs +31 -0
- package/dist/chunks/NcDateTime.vue_vue_type_script_setup_true_lang-BYXau4sd.mjs.map +1 -0
- package/dist/chunks/NcDateTimePicker-CDFvxL3U.mjs +299 -0
- package/dist/chunks/NcDateTimePicker-CDFvxL3U.mjs.map +1 -0
- package/dist/chunks/{NcDateTimePickerNative-Dbc6pBXk.mjs → NcDateTimePickerNative-BRuMK89z.mjs} +6 -5
- package/dist/chunks/NcDateTimePickerNative-BRuMK89z.mjs.map +1 -0
- package/dist/chunks/{NcDialog-B81mllwn.mjs → NcDialog-BX0IET9Y.mjs} +15 -14
- package/dist/chunks/NcDialog-BX0IET9Y.mjs.map +1 -0
- package/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang-DbzPc_gW.mjs +69 -0
- package/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang-DbzPc_gW.mjs.map +1 -0
- package/dist/chunks/{NcEllipsisedOption-D4OggsNq.mjs → NcEllipsisedOption-4k07kvEr.mjs} +5 -4
- package/dist/chunks/NcEllipsisedOption-4k07kvEr.mjs.map +1 -0
- package/dist/chunks/{NcEmojiPicker-DKGBXunS.mjs → NcEmojiPicker-C30Ofq8B.mjs} +18 -14
- package/dist/chunks/NcEmojiPicker-C30Ofq8B.mjs.map +1 -0
- package/dist/chunks/{NcEmptyContent-D-wBvEi4.mjs → NcEmptyContent-BQnIrQQn.mjs} +3 -2
- package/dist/chunks/NcEmptyContent-BQnIrQQn.mjs.map +1 -0
- package/dist/chunks/NcGuestContent-iQpV7mLC.mjs +1 -0
- package/dist/chunks/{NcHeaderButton-Cq62USyt.mjs → NcHeaderButton-BXfTpkIm.mjs} +9 -8
- package/dist/chunks/{NcHeaderButton-Cq62USyt.mjs.map → NcHeaderButton-BXfTpkIm.mjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-BRiroRYT.mjs → NcHeaderMenu-CEH_-KT_.mjs} +13 -14
- package/dist/chunks/NcHeaderMenu-CEH_-KT_.mjs.map +1 -0
- package/dist/chunks/{NcHighlight-BHtRIzqk.mjs → NcHighlight-Cu4UfEEO.mjs} +11 -7
- package/dist/chunks/NcHighlight-Cu4UfEEO.mjs.map +1 -0
- package/dist/chunks/{NcIconSvgWrapper-BYTrkA66.mjs → NcIconSvgWrapper-Bc3ogp8T.mjs} +34 -20
- package/dist/chunks/NcIconSvgWrapper-Bc3ogp8T.mjs.map +1 -0
- package/dist/chunks/{NcInputConfirmCancel-xnrPAGac.mjs → NcInputConfirmCancel-DeWD9uc6.mjs} +19 -18
- package/dist/chunks/NcInputConfirmCancel-DeWD9uc6.mjs.map +1 -0
- package/dist/chunks/{NcInputField-CzC820tG.mjs → NcInputField-BBS1E7r-.mjs} +7 -6
- package/dist/chunks/NcInputField-BBS1E7r-.mjs.map +1 -0
- package/dist/chunks/{NcListItem-DFLsabmR.mjs → NcListItem-CVX52kG-.mjs} +4 -3
- package/dist/chunks/NcListItem-CVX52kG-.mjs.map +1 -0
- package/dist/chunks/{NcListItemIcon-BK9GBjoD.mjs → NcListItemIcon-Cc6vXRrY.mjs} +7 -6
- package/dist/chunks/{NcListItemIcon-BK9GBjoD.mjs.map → NcListItemIcon-Cc6vXRrY.mjs.map} +1 -1
- package/dist/chunks/NcLoadingIcon-CsMn1bFR.mjs +1 -0
- package/dist/chunks/{NcMentionBubble.vue_vue_type_style_index_0_scoped_6c8d0da9_lang-DYJMHclV.mjs → NcMentionBubble.vue_vue_type_style_index_0_scoped_5b8f093f_lang-DZbkIMTW.mjs} +2 -1
- package/dist/chunks/{NcMentionBubble.vue_vue_type_style_index_0_scoped_6c8d0da9_lang-DYJMHclV.mjs.map → NcMentionBubble.vue_vue_type_style_index_0_scoped_5b8f093f_lang-DZbkIMTW.mjs.map} +1 -1
- package/dist/chunks/NcNoteCard-XoSOund1.mjs +1 -0
- package/dist/chunks/{NcPasswordField-BLHAdm-k.mjs → NcPasswordField-CYPRKGml.mjs} +6 -5
- package/dist/chunks/{NcPasswordField-BLHAdm-k.mjs.map → NcPasswordField-CYPRKGml.mjs.map} +1 -1
- package/dist/chunks/{NcPopover-D4D97Y3j.mjs → NcPopover-EPnt2iHh.mjs} +156 -25
- package/dist/chunks/NcPopover-EPnt2iHh.mjs.map +1 -0
- package/dist/chunks/NcProgressBar-Bx8bMkd4.mjs +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-DsuNT9hM.mjs → NcRelatedResourcesPanel-Bcy58V31.mjs} +14 -13
- package/dist/chunks/NcRelatedResourcesPanel-Bcy58V31.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-BkSojqgy.mjs → NcRichContenteditable-BR08SbpA.mjs} +216 -51
- package/dist/chunks/NcRichContenteditable-BR08SbpA.mjs.map +1 -0
- package/dist/chunks/NcRichText-jZif8PdV.mjs +3673 -0
- package/dist/chunks/NcRichText-jZif8PdV.mjs.map +1 -0
- package/dist/chunks/NcSavingIndicatorIcon.vue_vue_type_script_setup_true_lang-DlRBo3QU.mjs +58 -0
- package/dist/chunks/NcSavingIndicatorIcon.vue_vue_type_script_setup_true_lang-DlRBo3QU.mjs.map +1 -0
- package/dist/chunks/{NcSelect-B61ik8an.mjs → NcSelect-BkTH-Yqm.mjs} +32 -74
- package/dist/chunks/NcSelect-BkTH-Yqm.mjs.map +1 -0
- package/dist/chunks/{NcSelectTags-Dx3nG6jx.mjs → NcSelectTags-BY8LM7qV.mjs} +4 -3
- package/dist/chunks/{NcSelectTags-Dx3nG6jx.mjs.map → NcSelectTags-BY8LM7qV.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsInputText-B5FrLCL9.mjs → NcSettingsInputText-B129n9sr.mjs} +7 -6
- package/dist/chunks/NcSettingsInputText-B129n9sr.mjs.map +1 -0
- package/dist/chunks/{NcSettingsSection-CAdn6gS9.mjs → NcSettingsSection-CjWtq7TT.mjs} +3 -2
- package/dist/chunks/{NcSettingsSection-CAdn6gS9.mjs.map → NcSettingsSection-CjWtq7TT.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-CKIbxms2.mjs → NcSettingsSelectGroup-B8uq0KIw.mjs} +9 -8
- package/dist/chunks/NcSettingsSelectGroup-B8uq0KIw.mjs.map +1 -0
- package/dist/chunks/{NcTextArea-C-PMlEbl.mjs → NcTextArea-DKHjCur8.mjs} +5 -4
- package/dist/chunks/NcTextArea-DKHjCur8.mjs.map +1 -0
- package/dist/chunks/{NcTextField-CNV42Zey.mjs → NcTextField-KGXtf7Y6.mjs} +6 -5
- package/dist/chunks/{NcTextField-CNV42Zey.mjs.map → NcTextField-KGXtf7Y6.mjs.map} +1 -1
- package/dist/chunks/NcTimezonePicker.vue_vue_type_script_setup_true_lang-DxoB-jLa.mjs +98 -0
- package/dist/chunks/NcTimezonePicker.vue_vue_type_script_setup_true_lang-DxoB-jLa.mjs.map +1 -0
- package/dist/chunks/{NcUserBubble-MfDc1YR2.mjs → NcUserBubble-qqRewR9C.mjs} +3 -2
- package/dist/chunks/{NcUserBubble-MfDc1YR2.mjs.map → NcUserBubble-qqRewR9C.mjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-vtnkNASH.mjs → NcUserStatusIcon-DpZVD4HJ.mjs} +3 -2
- package/dist/chunks/{NcUserStatusIcon-vtnkNASH.mjs.map → NcUserStatusIcon-DpZVD4HJ.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-DgRMJomt.mjs → ScopeComponent-BIpNSmeE.mjs} +2 -1
- package/dist/chunks/{ScopeComponent-DgRMJomt.mjs.map → ScopeComponent-BIpNSmeE.mjs.map} +1 -1
- package/dist/chunks/_l10n-BNGeEX3W.mjs +128 -0
- package/dist/chunks/_l10n-BNGeEX3W.mjs.map +1 -0
- package/dist/chunks/_plugin-vue_export-helper-1tPrXgE0.mjs +1 -0
- package/dist/chunks/actionGlobal-BZFdtdJL.mjs +1 -0
- package/dist/chunks/{actionText-aI0owku1.mjs → actionText-BiV1_BZX.mjs} +8 -13
- package/dist/chunks/actionText-BiV1_BZX.mjs.map +1 -0
- package/dist/chunks/autolink-CKPk5rzg.mjs +1 -0
- package/dist/chunks/{GenColors-G1ZRJcz5.mjs → colors-CSUSQx1k.mjs} +28 -22
- package/dist/chunks/colors-CSUSQx1k.mjs.map +1 -0
- package/dist/chunks/createElementId-DhjFt1I9.mjs +8 -0
- package/dist/chunks/createElementId-DhjFt1I9.mjs.map +1 -0
- package/dist/chunks/emoji-BY_D0V5K.mjs +1 -0
- package/dist/chunks/focusTrap-DmkaYJTC.mjs +1 -0
- package/dist/chunks/index-BF8joS9W.mjs +1 -0
- package/dist/chunks/logger-D3RVzcfQ.mjs +1 -0
- package/dist/chunks/logger-D3RVzcfQ.mjs.map +1 -1
- package/dist/chunks/mdi-zYpVOORa.mjs +17 -0
- package/dist/chunks/mdi-zYpVOORa.mjs.map +1 -0
- package/dist/chunks/{referencePickerModal-CzI44bxD.mjs → referencePickerModal-DzM7CkKN.mjs} +18 -18
- package/dist/chunks/{referencePickerModal-CzI44bxD.mjs.map → referencePickerModal-DzM7CkKN.mjs.map} +1 -1
- package/dist/chunks/rtl-v0UOPAM7.mjs +1 -0
- package/dist/chunks/{useFormatDateTime-Cvc8YJRE.mjs → useFormatDateTime-BPGWjR3-.mjs} +2 -1
- package/dist/chunks/{useFormatDateTime-Cvc8YJRE.mjs.map → useFormatDateTime-BPGWjR3-.mjs.map} +1 -1
- package/dist/chunks/useNcActions-CiGWxAJE.mjs +7 -0
- package/dist/chunks/useNcActions-CiGWxAJE.mjs.map +1 -0
- package/dist/chunks/useTrapStackControl-b3A_383w.mjs +1 -0
- package/dist/chunks/usernameToColor-Bl9NGU_9.mjs +22 -0
- package/dist/chunks/usernameToColor-Bl9NGU_9.mjs.map +1 -0
- package/dist/components/NcActionButton/NcActionButton.vue.d.ts +8 -3
- package/dist/components/NcActionButton/index.mjs +2 -1
- package/dist/components/NcActionButtonGroup/index.mjs +2 -1
- package/dist/components/NcActionCaption/index.mjs +2 -1
- package/dist/components/NcActionCheckbox/NcActionCheckbox.vue.d.ts +2 -2
- package/dist/components/NcActionCheckbox/index.mjs +2 -1
- package/dist/components/NcActionInput/index.mjs +2 -1
- package/dist/components/NcActionLink/index.mjs +2 -1
- package/dist/components/NcActionRadio/NcActionRadio.vue.d.ts +2 -2
- package/dist/components/NcActionRadio/index.mjs +2 -1
- package/dist/components/NcActionRouter/NcActionRouter.vue.d.ts +7 -2
- package/dist/components/NcActionRouter/index.mjs +2 -1
- package/dist/components/NcActionSeparator/index.mjs +1 -0
- package/dist/components/NcActionText/NcActionText.vue.d.ts +5 -0
- package/dist/components/NcActionText/index.mjs +2 -1
- package/dist/components/NcActionTextEditable/NcActionTextEditable.vue.d.ts +7 -2
- package/dist/components/NcActionTextEditable/index.mjs +2 -1
- package/dist/components/NcActions/index.mjs +2 -1
- package/dist/components/NcActions/useNcActions.d.ts +3 -0
- package/dist/components/NcAppContent/index.mjs +2 -1
- package/dist/components/NcAppContentDetails/index.mjs +1 -0
- package/dist/components/NcAppContentList/index.mjs +1 -0
- package/dist/components/NcAppNavigation/index.mjs +2 -1
- package/dist/components/NcAppNavigationCaption/index.mjs +2 -1
- package/dist/components/NcAppNavigationIconBullet/index.mjs +1 -0
- package/dist/components/NcAppNavigationItem/index.mjs +2 -1
- package/dist/components/NcAppNavigationList/index.mjs +1 -0
- package/dist/components/NcAppNavigationNew/index.mjs +2 -1
- package/dist/components/NcAppNavigationNewItem/index.mjs +2 -1
- package/dist/components/NcAppNavigationSearch/index.mjs +2 -1
- package/dist/components/NcAppNavigationSettings/NcAppNavigationSettings.vue.d.ts +3 -10
- package/dist/components/NcAppNavigationSettings/index.mjs +2 -1
- package/dist/components/NcAppNavigationSpacer/index.mjs +1 -0
- package/dist/components/NcAppNavigationToggle/index.mjs +2 -1
- package/dist/components/NcAppSettingsDialog/index.mjs +2 -1
- package/dist/components/NcAppSettingsSection/index.mjs +1 -0
- package/dist/components/NcAppSidebar/index.mjs +2 -1
- package/dist/components/NcAppSidebarTab/NcAppSidebarTab.vue.d.ts +1 -1
- package/dist/components/NcAppSidebarTab/index.mjs +1 -0
- package/dist/components/NcAvatar/index.mjs +2 -1
- package/dist/components/NcBlurHash/NcBlurHash.vue.d.ts +6 -13
- package/dist/components/NcBlurHash/index.mjs +1 -0
- package/dist/components/NcBreadcrumb/index.mjs +2 -1
- package/dist/components/NcBreadcrumbs/index.mjs +2 -1
- package/dist/components/NcButton/NcButton.vue.d.ts +100 -232
- package/dist/components/NcButton/index.d.ts +2 -2
- package/dist/components/NcButton/index.mjs +2 -4
- package/dist/components/NcCheckboxRadioSwitch/index.mjs +2 -1
- package/dist/components/NcChip/NcChip.vue.d.ts +29 -93
- package/dist/components/NcChip/index.mjs +2 -1
- package/dist/components/NcCollectionList/index.mjs +2 -1
- package/dist/components/NcColorPicker/index.mjs +2 -1
- package/dist/components/NcContent/index.mjs +2 -1
- package/dist/components/NcCounterBubble/NcCounterBubble.vue.d.ts +1 -1
- package/dist/components/NcCounterBubble/index.mjs +1 -0
- package/dist/components/NcDashboardWidget/index.mjs +2 -1
- package/dist/components/NcDashboardWidgetItem/index.mjs +2 -1
- package/dist/components/NcDateTime/NcDateTime.vue.d.ts +27 -1
- package/dist/components/NcDateTime/index.d.ts +4 -0
- package/dist/components/NcDateTime/index.mjs +3 -2
- package/dist/components/NcDateTimePicker/NcDateTimePicker.vue.d.ts +105 -1
- package/dist/components/NcDateTimePicker/index.d.ts +4 -0
- package/dist/components/NcDateTimePicker/index.mjs +2 -1
- package/dist/components/NcDateTimePickerNative/index.mjs +2 -1
- package/dist/components/NcDialog/NcDialog.vue.d.ts +68 -145
- package/dist/components/NcDialog/index.mjs +2 -1
- package/dist/components/NcDialogButton/NcDialogButton.vue.d.ts +38 -110
- package/dist/components/NcDialogButton/index.mjs +2 -1
- package/dist/components/NcEllipsisedOption/index.mjs +2 -1
- package/dist/components/NcEmojiPicker/index.mjs +2 -1
- package/dist/components/NcEmptyContent/index.mjs +2 -1
- package/dist/components/NcGuestContent/index.mjs +1 -0
- package/dist/components/NcHeaderButton/NcHeaderButton.vue.d.ts +4 -13
- package/dist/components/NcHeaderButton/index.mjs +2 -1
- package/dist/components/NcHeaderMenu/index.mjs +2 -1
- package/dist/components/NcHighlight/index.mjs +2 -1
- package/dist/components/NcIconSvgWrapper/NcIconSvgWrapper.vue.d.ts +20 -11
- package/dist/components/NcIconSvgWrapper/index.mjs +2 -1
- package/dist/components/NcInputField/index.mjs +2 -1
- package/dist/components/NcListItem/index.mjs +2 -1
- package/dist/components/NcListItemIcon/index.mjs +2 -1
- package/dist/components/NcLoadingIcon/NcLoadingIcon.vue.d.ts +1 -1
- package/dist/components/NcLoadingIcon/index.mjs +1 -0
- package/dist/components/NcModal/index.mjs +77 -70
- package/dist/components/NcModal/index.mjs.map +1 -1
- package/dist/components/NcNoteCard/index.mjs +1 -0
- package/dist/components/NcPasswordField/index.mjs +2 -1
- package/dist/components/NcPopover/index.mjs +2 -1
- package/dist/components/NcProgressBar/index.mjs +1 -0
- package/dist/components/NcRelatedResourcesPanel/index.mjs +2 -1
- package/dist/components/NcRichContenteditable/NcAutoCompleteResult.vue.d.ts +2 -2
- package/dist/components/NcRichContenteditable/NcMentionBubble.vue.d.ts +2 -2
- package/dist/components/NcRichContenteditable/NcRichContenteditable.vue.d.ts +347 -0
- package/dist/components/NcRichContenteditable/index.mjs +4 -4
- package/dist/components/NcRichContenteditable/index.mjs.map +1 -1
- package/dist/components/NcRichText/NcReferencePicker/NcProviderList.vue.d.ts +194 -0
- package/dist/components/NcRichText/NcReferencePicker/NcSearch.vue.d.ts +268 -0
- package/dist/components/NcRichText/index.mjs +4 -3
- package/dist/components/NcSavingIndicatorIcon/NcSavingIndicatorIcon.vue.d.ts +13 -56
- package/dist/components/NcSavingIndicatorIcon/index.d.ts +4 -0
- package/dist/components/NcSavingIndicatorIcon/index.mjs +3 -2
- package/dist/components/NcSelect/NcSelect.vue.d.ts +121 -0
- package/dist/components/NcSelect/index.mjs +2 -1
- package/dist/components/NcSelectTags/NcSelectTags.vue.d.ts +205 -0
- package/dist/components/NcSelectTags/index.mjs +2 -1
- package/dist/components/NcSelectUsers/NcSelectUsers.vue.d.ts +117 -0
- package/dist/components/NcSelectUsers/index.d.ts +5 -0
- package/dist/components/NcSelectUsers/index.mjs +73 -0
- package/dist/components/NcSelectUsers/index.mjs.map +1 -0
- package/dist/components/NcSettingsInputText/NcSettingsInputText.vue.d.ts +3 -3
- package/dist/components/NcSettingsInputText/index.mjs +2 -1
- package/dist/components/NcSettingsSection/index.mjs +2 -1
- package/dist/components/NcSettingsSelectGroup/NcSettingsSelectGroup.vue.d.ts +265 -0
- package/dist/components/NcSettingsSelectGroup/index.mjs +2 -1
- package/dist/components/NcTextArea/NcTextArea.vue.d.ts +6 -6
- package/dist/components/NcTextArea/index.mjs +2 -1
- package/dist/components/NcTextField/index.mjs +2 -1
- package/dist/components/NcTimezonePicker/NcTimezonePicker.vue.d.ts +23 -0
- package/dist/components/NcTimezonePicker/index.d.ts +5 -0
- package/dist/components/NcTimezonePicker/index.mjs +3 -2
- package/dist/components/NcTimezonePicker/timezoneDataProviderService.d.ts +5 -1
- package/dist/components/NcUserBubble/index.mjs +2 -1
- package/dist/components/NcUserStatusIcon/index.mjs +2 -1
- package/dist/components/NcVNodes/index.mjs +1 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/composables/index.d.ts +6 -2
- package/dist/composables/useHotKey/index.mjs +1 -0
- package/dist/composables/useIsDarkTheme/index.mjs +1 -0
- package/dist/composables/useIsFullscreen/index.d.ts +3 -4
- package/dist/composables/useIsFullscreen/index.mjs +4 -1
- package/dist/composables/useIsFullscreen/index.mjs.map +1 -1
- package/dist/composables/useIsMobile/index.d.ts +9 -14
- package/dist/composables/useIsMobile/index.mjs +1 -2
- package/dist/composables/useIsMobile/index.mjs.map +1 -1
- package/dist/directives/Focus/index.mjs +1 -0
- package/dist/directives/Linkify/index.d.ts +2 -1
- package/dist/directives/Linkify/index.mjs +38 -10
- package/dist/directives/Linkify/index.mjs.map +1 -1
- package/dist/directives/index.d.ts +1 -2
- package/dist/functions/a11y/index.mjs +1 -0
- package/dist/functions/contactsMenu/index.d.ts +40 -0
- package/dist/functions/contactsMenu/index.mjs +22 -0
- package/dist/functions/contactsMenu/index.mjs.map +1 -0
- package/dist/functions/dialog/index.d.ts +22 -13
- package/dist/functions/dialog/index.mjs +28 -18
- package/dist/functions/dialog/index.mjs.map +1 -1
- package/dist/functions/emoji/index.mjs +1 -0
- package/dist/functions/index.d.ts +1 -0
- package/dist/functions/isDarkTheme/index.mjs +1 -0
- package/dist/functions/preloadImage/index.mjs +1 -0
- package/dist/functions/reference/index.mjs +2 -1
- package/dist/functions/registerReference/index.mjs +1 -0
- package/dist/functions/usernameToColor/index.d.ts +5 -1
- package/dist/functions/usernameToColor/index.mjs +2 -1
- package/dist/functions/usernameToColor/usernameToColor.d.ts +4 -9
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +122 -125
- package/dist/index.mjs.map +1 -1
- package/dist/mixins/actionText.d.ts +6 -0
- package/dist/utils/appName.d.ts +5 -0
- package/dist/utils/colors.d.ts +34 -0
- package/dist/utils/createElementId.d.ts +7 -0
- package/dist/utils/findRanges.d.ts +16 -0
- package/dist/utils/isSlotPopulated.d.ts +1 -2
- package/dist/utils/linkify.d.ts +8 -0
- package/dist/utils/logger.d.ts +4 -0
- package/dist/vendor.LICENSE.txt +128 -0
- package/package.json +46 -32
- package/dist/assets/NcDateTimePicker-CRb2xZzf.css +0 -918
- package/dist/assets/index-DQ4Plm4r.css +0 -89
- package/dist/chunks/ChevronLeft-FfC-tiIS.mjs +0 -48
- package/dist/chunks/ChevronLeft-FfC-tiIS.mjs.map +0 -1
- package/dist/chunks/GenColors-G1ZRJcz5.mjs.map +0 -1
- package/dist/chunks/GenRandomId-CMooMQt0.mjs +0 -6
- package/dist/chunks/GenRandomId-CMooMQt0.mjs.map +0 -1
- package/dist/chunks/NcActionButton-DBFJTCO5.mjs.map +0 -1
- package/dist/chunks/NcActionButtonGroup-nwHeJeV7.mjs.map +0 -1
- package/dist/chunks/NcActionCaption-DmOKI_Kc.mjs.map +0 -1
- package/dist/chunks/NcActionCheckbox-yPCmA5vr.mjs.map +0 -1
- package/dist/chunks/NcActionInput-DTzVHmHn.mjs.map +0 -1
- package/dist/chunks/NcActionLink-CG3cKif-.mjs.map +0 -1
- package/dist/chunks/NcActionRadio-BWPi0DII.mjs.map +0 -1
- package/dist/chunks/NcActionRouter-C7VSuJLq.mjs.map +0 -1
- package/dist/chunks/NcActionText-ByD1mFXe.mjs.map +0 -1
- package/dist/chunks/NcActionTextEditable-DLKA6lfe.mjs.map +0 -1
- package/dist/chunks/NcActions-DxTtucKk.mjs.map +0 -1
- package/dist/chunks/NcAppContent-Cu9zhNK3.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationItem-C7bIZuo2.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationNew-BO-Llutk.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationSearch-DLbzvkkq.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationSettings-vM8ajNNK.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationToggle-DBtf139E.mjs.map +0 -1
- package/dist/chunks/NcAppSidebar-Dav-iGv2.mjs.map +0 -1
- package/dist/chunks/NcAvatar-A1YnlIoN.mjs.map +0 -1
- package/dist/chunks/NcBreadcrumb-D5cRcQg5.mjs.map +0 -1
- package/dist/chunks/NcBreadcrumbs-CnWT9rE5.mjs.map +0 -1
- package/dist/chunks/NcButton-QmfEsvXC.mjs +0 -298
- package/dist/chunks/NcButton-QmfEsvXC.mjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch-Ctdu7_UC.mjs.map +0 -1
- package/dist/chunks/NcChip-BnD-EmBn.mjs.map +0 -1
- package/dist/chunks/NcCollectionList-9YfN6xAi.mjs.map +0 -1
- package/dist/chunks/NcColorPicker-DQqAv2wB.mjs.map +0 -1
- package/dist/chunks/NcDateTime-D3snW0sN.mjs +0 -65
- package/dist/chunks/NcDateTime-D3snW0sN.mjs.map +0 -1
- package/dist/chunks/NcDateTimePicker-DUPn2UCM.mjs +0 -377
- package/dist/chunks/NcDateTimePicker-DUPn2UCM.mjs.map +0 -1
- package/dist/chunks/NcDateTimePickerNative-Dbc6pBXk.mjs.map +0 -1
- package/dist/chunks/NcDialog-B81mllwn.mjs.map +0 -1
- package/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang-DgWqkSL7.mjs +0 -120
- package/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang-DgWqkSL7.mjs.map +0 -1
- package/dist/chunks/NcEllipsisedOption-D4OggsNq.mjs.map +0 -1
- package/dist/chunks/NcEmojiPicker-DKGBXunS.mjs.map +0 -1
- package/dist/chunks/NcEmptyContent-D-wBvEi4.mjs.map +0 -1
- package/dist/chunks/NcHeaderMenu-BRiroRYT.mjs.map +0 -1
- package/dist/chunks/NcHighlight-BHtRIzqk.mjs.map +0 -1
- package/dist/chunks/NcIconSvgWrapper-BYTrkA66.mjs.map +0 -1
- package/dist/chunks/NcInputConfirmCancel-xnrPAGac.mjs.map +0 -1
- package/dist/chunks/NcInputField-CzC820tG.mjs.map +0 -1
- package/dist/chunks/NcListItem-DFLsabmR.mjs.map +0 -1
- package/dist/chunks/NcPopover-D4D97Y3j.mjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-DsuNT9hM.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-BkSojqgy.mjs.map +0 -1
- package/dist/chunks/NcRichText-Cn583bql.mjs +0 -414
- package/dist/chunks/NcRichText-Cn583bql.mjs.map +0 -1
- package/dist/chunks/NcSavingIndicatorIcon-icWy8J5x.mjs +0 -79
- package/dist/chunks/NcSavingIndicatorIcon-icWy8J5x.mjs.map +0 -1
- package/dist/chunks/NcSelect-B61ik8an.mjs.map +0 -1
- package/dist/chunks/NcSettingsInputText-B5FrLCL9.mjs.map +0 -1
- package/dist/chunks/NcSettingsSelectGroup-CKIbxms2.mjs.map +0 -1
- package/dist/chunks/NcTextArea-C-PMlEbl.mjs.map +0 -1
- package/dist/chunks/NcTimezonePicker-tZmX1Qp4.mjs +0 -187
- package/dist/chunks/NcTimezonePicker-tZmX1Qp4.mjs.map +0 -1
- package/dist/chunks/_l10n-BEP_UzXI.mjs +0 -133
- package/dist/chunks/_l10n-BEP_UzXI.mjs.map +0 -1
- package/dist/chunks/actionText-aI0owku1.mjs.map +0 -1
- package/dist/chunks/index-wLgC9ACl.mjs +0 -183
- package/dist/chunks/index-wLgC9ACl.mjs.map +0 -1
- package/dist/chunks/usernameToColor-B_Q_sS3j.mjs +0 -26
- package/dist/chunks/usernameToColor-B_Q_sS3j.mjs.map +0 -1
- package/dist/components/NcActions/NcActions.vue.d.ts +0 -532
- package/dist/components/NcAppNavigation/NcAppNavigation.vue.d.ts +0 -214
- package/dist/components/NcAppNavigationCaption/NcAppNavigationCaption.vue.d.ts +0 -375
- package/dist/components/NcAppNavigationItem/NcAppNavigationIconCollapsible.vue.d.ts +0 -160
- package/dist/components/NcAppNavigationItem/NcAppNavigationItem.vue.d.ts +0 -1299
- package/dist/components/NcAppNavigationItem/NcInputConfirmCancel.vue.d.ts +0 -194
- package/dist/components/NcAppNavigationNew/NcAppNavigationNew.vue.d.ts +0 -186
- package/dist/components/NcAppNavigationNewItem/NcAppNavigationNewItem.vue.d.ts +0 -315
- package/dist/components/NcAppNavigationSearch/NcAppNavigationSearch.vue.d.ts +0 -388
- package/dist/components/NcAppNavigationToggle/NcAppNavigationToggle.vue.d.ts +0 -172
- package/dist/components/NcBreadcrumb/NcBreadcrumb.vue.d.ts +0 -711
- package/dist/components/NcBreadcrumbs/NcBreadcrumbs.vue.d.ts +0 -1310
- package/dist/components/NcButton/types.d.ts +0 -30
- package/dist/components/NcContent/NcContent.vue.d.ts +0 -226
- package/dist/components/NcEmojiPicker/NcEmojiPicker.vue.d.ts +0 -640
- package/dist/components/NcHeaderMenu/NcHeaderMenu.vue.d.ts +0 -243
- package/dist/components/NcInputField/NcInputField.vue.d.ts +0 -418
- package/dist/components/NcListItem/NcListItem.vue.d.ts +0 -710
- package/dist/components/NcRelatedResourcesPanel/NcRelatedResourcesPanel.vue.d.ts +0 -551
- package/dist/components/NcRelatedResourcesPanel/NcResource.vue.d.ts +0 -172
- package/dist/components/NcRelatedResourcesPanel/NcTeamResources.vue.d.ts +0 -240
- package/dist/components/NcRichText/NcReferenceList.vue.d.ts +0 -291
- package/dist/components/NcRichText/NcReferencePicker/NcRawLinkInput.vue.d.ts +0 -604
- package/dist/components/NcRichText/NcReferenceWidget.vue.d.ts +0 -210
- package/dist/components/NcRichText/NcRichText.vue.d.ts +0 -408
- package/dist/components/NcTextField/NcTextField.vue.d.ts +0 -313
- package/dist/components/NcTimezonePicker/timezone.d.ts +0 -14
- package/dist/directives/Tooltip/index.d.ts +0 -3
- package/dist/directives/Tooltip/index.mjs +0 -11
- package/dist/directives/Tooltip/index.mjs.map +0 -1
- package/dist/mixins/richEditor/index.mjs +0 -9
- package/dist/mixins/richEditor/index.mjs.map +0 -1
- package/dist/utils/FindRanges.d.ts +0 -13
- package/dist/utils/GenColors.d.ts +0 -28
- package/dist/utils/GenRandomId.d.ts +0 -6
- package/dist/utils/GetChildren.d.ts +0 -13
- package/dist/utils/GetParent.d.ts +0 -13
- package/dist/utils/Linkify.d.ts +0 -8
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import '../assets/NcDateTimePicker-pmbCzZnb.css';
|
|
2
|
+
import { defineComponent, mergeModels, useModel, computed, createBlock, openBlock, unref, mergeProps, createSlots, withCtx, createVNode } from "vue";
|
|
3
|
+
import { m as mdiChevronUp, a as mdiChevronDown, b as mdiChevronRight, c as mdiChevronLeft, d as mdiClock, e as mdiClose, f as mdiCalendarBlank } from "./mdi-zYpVOORa.mjs";
|
|
4
|
+
import { getCanonicalLocale, getDayNamesMin, getFirstDay, getDayNames } from "@nextcloud/l10n";
|
|
5
|
+
import { r as register, a as t } from "./_l10n-BNGeEX3W.mjs";
|
|
6
|
+
import VueDatePicker from "@vuepic/vue-datepicker";
|
|
7
|
+
import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-Bc3ogp8T.mjs";
|
|
8
|
+
import { _ as _sfc_main$1 } from "./NcTimezonePicker.vue_vue_type_script_setup_true_lang-DxoB-jLa.mjs";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
10
|
+
register();
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "NcDateTimePicker",
|
|
13
|
+
props: /* @__PURE__ */ mergeModels({
|
|
14
|
+
appendToBody: { type: Boolean },
|
|
15
|
+
ariaLabel: { default: t("Datepicker input") },
|
|
16
|
+
ariaLabelMenu: { default: t("Datepicker menu") },
|
|
17
|
+
clearable: { type: Boolean },
|
|
18
|
+
confirm: { type: Boolean },
|
|
19
|
+
format: { type: [String, Function], default: void 0 },
|
|
20
|
+
locale: { default: getCanonicalLocale() },
|
|
21
|
+
minuteStep: { default: 10 },
|
|
22
|
+
modelValue: { default: void 0 },
|
|
23
|
+
placeholder: { default: void 0 },
|
|
24
|
+
showTimezoneSelect: { type: Boolean },
|
|
25
|
+
showWeekNumber: { type: Boolean },
|
|
26
|
+
type: { default: "date" }
|
|
27
|
+
}, {
|
|
28
|
+
"timezoneId": { default: "UTC" },
|
|
29
|
+
"timezoneIdModifiers": {}
|
|
30
|
+
}),
|
|
31
|
+
emits: /* @__PURE__ */ mergeModels(["update:modelValue", "update:timezoneId"], ["update:timezoneId"]),
|
|
32
|
+
setup(__props, { emit: __emit }) {
|
|
33
|
+
const props = __props;
|
|
34
|
+
const timezoneId = useModel(__props, "timezoneId");
|
|
35
|
+
const emit = __emit;
|
|
36
|
+
const value = computed(() => {
|
|
37
|
+
if (props.modelValue === void 0 && props.clearable) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
if (props.type === "week") {
|
|
41
|
+
const date = props.modelValue instanceof Date ? props.modelValue : /* @__PURE__ */ new Date();
|
|
42
|
+
const end = new Date(date);
|
|
43
|
+
end.setUTCDate(date.getUTCDate() + 6);
|
|
44
|
+
return [date, end];
|
|
45
|
+
} else if (props.type === "year") {
|
|
46
|
+
const date = props.modelValue instanceof Date ? props.modelValue : /* @__PURE__ */ new Date();
|
|
47
|
+
return date.getUTCFullYear();
|
|
48
|
+
} else if (props.type === "month") {
|
|
49
|
+
const date = props.modelValue instanceof Date ? props.modelValue : /* @__PURE__ */ new Date();
|
|
50
|
+
return { year: date.getUTCFullYear(), month: date.getUTCMonth() };
|
|
51
|
+
} else if (props.type === "time" || props.type === "time-range") {
|
|
52
|
+
const time = [props.modelValue ?? (props.type === "time-range" ? [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : /* @__PURE__ */ new Date())].flat();
|
|
53
|
+
if (props.modelValue === void 0 && props.type === "time-range") {
|
|
54
|
+
time[1].setHours(time[1].getHours() + 1);
|
|
55
|
+
}
|
|
56
|
+
const timeValue = time.map((date) => ({
|
|
57
|
+
hours: date.getHours(),
|
|
58
|
+
minutes: date.getMinutes(),
|
|
59
|
+
seconds: date.getSeconds()
|
|
60
|
+
}));
|
|
61
|
+
return props.type === "time" ? timeValue[0] : timeValue;
|
|
62
|
+
} else if (props.type.endsWith("-range")) {
|
|
63
|
+
if (props.modelValue === void 0) {
|
|
64
|
+
const start = /* @__PURE__ */ new Date();
|
|
65
|
+
const end = new Date(start);
|
|
66
|
+
end.setUTCDate(start.getUTCDate() + 7);
|
|
67
|
+
return [start, end];
|
|
68
|
+
}
|
|
69
|
+
return props.modelValue;
|
|
70
|
+
}
|
|
71
|
+
return props.modelValue ?? /* @__PURE__ */ new Date();
|
|
72
|
+
});
|
|
73
|
+
const placeholderFallback = computed(() => {
|
|
74
|
+
if (props.type === "date") {
|
|
75
|
+
return t("Select date");
|
|
76
|
+
} else if (props.type === "time") {
|
|
77
|
+
return t("Select time");
|
|
78
|
+
} else if (props.type === "datetime") {
|
|
79
|
+
return t("Select date and time");
|
|
80
|
+
} else if (props.type === "week") {
|
|
81
|
+
return t("Select week");
|
|
82
|
+
} else if (props.type === "month") {
|
|
83
|
+
return t("Select month");
|
|
84
|
+
} else if (props.type === "year") {
|
|
85
|
+
return t("Select year");
|
|
86
|
+
} else if (props.type.endsWith("-range")) {
|
|
87
|
+
return t("Select time range");
|
|
88
|
+
}
|
|
89
|
+
return t("Select date and time");
|
|
90
|
+
});
|
|
91
|
+
const realFormat = computed(() => {
|
|
92
|
+
if (props.format) {
|
|
93
|
+
return props.format;
|
|
94
|
+
} else if (props.type === "week") {
|
|
95
|
+
return "RR-II";
|
|
96
|
+
}
|
|
97
|
+
let formatter;
|
|
98
|
+
if (props.type === "date" || props.type === "date-range") {
|
|
99
|
+
formatter = new Intl.DateTimeFormat(getCanonicalLocale(), { dateStyle: "medium" });
|
|
100
|
+
} else if (props.type === "time" || props.type === "time-range") {
|
|
101
|
+
formatter = new Intl.DateTimeFormat(getCanonicalLocale(), { timeStyle: "short" });
|
|
102
|
+
} else if (props.type === "datetime" || props.type === "datetime-range") {
|
|
103
|
+
formatter = new Intl.DateTimeFormat(getCanonicalLocale(), { dateStyle: "medium", timeStyle: "short" });
|
|
104
|
+
} else if (props.type === "month") {
|
|
105
|
+
formatter = new Intl.DateTimeFormat(getCanonicalLocale(), { year: "numeric", month: "2-digit" });
|
|
106
|
+
} else if (props.type === "year") {
|
|
107
|
+
formatter = new Intl.DateTimeFormat(getCanonicalLocale(), { year: "numeric" });
|
|
108
|
+
}
|
|
109
|
+
if (formatter) {
|
|
110
|
+
return (input) => Array.isArray(input) ? formatter.formatRange(input[0], input[1]) : formatter.format(input);
|
|
111
|
+
}
|
|
112
|
+
return void 0;
|
|
113
|
+
});
|
|
114
|
+
const pickerType = computed(() => ({
|
|
115
|
+
timePicker: props.type === "time" || props.type === "time-range",
|
|
116
|
+
yearPicker: props.type === "year",
|
|
117
|
+
monthPicker: props.type === "month",
|
|
118
|
+
weekPicker: props.type === "week",
|
|
119
|
+
range: props.type.endsWith("-range") && {
|
|
120
|
+
// do not use partial ranges (meaning after selecting the start [Date, null] will be emitted)
|
|
121
|
+
// if this is needed someday we can enable it,
|
|
122
|
+
// but its not covered by our component interface (props / events) documentation so just disabled for now.
|
|
123
|
+
partialRange: false
|
|
124
|
+
},
|
|
125
|
+
enableTimePicker: !(props.type === "date" || props.type === "date-range"),
|
|
126
|
+
flow: props.type === "datetime" ? ["calendar", "time"] : void 0
|
|
127
|
+
}));
|
|
128
|
+
function onUpdateModelValue(value2) {
|
|
129
|
+
if (value2 === null) {
|
|
130
|
+
return emit("update:modelValue", null);
|
|
131
|
+
}
|
|
132
|
+
if (props.type === "time") {
|
|
133
|
+
emit("update:modelValue", formatLibraryTime(value2));
|
|
134
|
+
} else if (props.type === "time-range") {
|
|
135
|
+
const start = formatLibraryTime(value2[0]);
|
|
136
|
+
const end = formatLibraryTime(value2[1]);
|
|
137
|
+
if (end.getTime() < start.getTime()) {
|
|
138
|
+
end.setDate(end.getDate() + 1);
|
|
139
|
+
}
|
|
140
|
+
emit("update:modelValue", [start, end]);
|
|
141
|
+
} else if (props.type === "month") {
|
|
142
|
+
const data = value2;
|
|
143
|
+
emit("update:modelValue", new Date(data.year, data.month, 1));
|
|
144
|
+
} else if (props.type === "year") {
|
|
145
|
+
emit("update:modelValue", new Date(value2, 0));
|
|
146
|
+
} else if (props.type === "week") {
|
|
147
|
+
emit("update:modelValue", value2[0]);
|
|
148
|
+
} else {
|
|
149
|
+
emit("update:modelValue", value2);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function formatLibraryTime(time) {
|
|
153
|
+
const date = /* @__PURE__ */ new Date();
|
|
154
|
+
date.setHours(time.hours);
|
|
155
|
+
date.setMinutes(time.minutes);
|
|
156
|
+
date.setSeconds(time.seconds);
|
|
157
|
+
return date;
|
|
158
|
+
}
|
|
159
|
+
const dayNames = getDayNamesMin();
|
|
160
|
+
const weekStart = getFirstDay();
|
|
161
|
+
const weekNumName = t("W");
|
|
162
|
+
const ariaLabels = computed(() => ({
|
|
163
|
+
toggleOverlay: t("Toggle overlay"),
|
|
164
|
+
menu: props.ariaLabelMenu,
|
|
165
|
+
input: props.ariaLabel,
|
|
166
|
+
openTimePicker: t("Open time picker"),
|
|
167
|
+
closeTimePicker: t("Close time Picker"),
|
|
168
|
+
incrementValue: (type) => {
|
|
169
|
+
if (type === "hours") {
|
|
170
|
+
return t("Increment hours");
|
|
171
|
+
} else if (type === "minutes") {
|
|
172
|
+
return t("Increment minutes");
|
|
173
|
+
}
|
|
174
|
+
return t("Increment seconds");
|
|
175
|
+
},
|
|
176
|
+
decrementValue: (type) => {
|
|
177
|
+
if (type === "hours") {
|
|
178
|
+
return t("Decrement hours");
|
|
179
|
+
} else if (type === "minutes") {
|
|
180
|
+
return t("Decrement minutes");
|
|
181
|
+
}
|
|
182
|
+
return t("Decrement seconds");
|
|
183
|
+
},
|
|
184
|
+
openTpOverlay: (type) => {
|
|
185
|
+
if (type === "hours") {
|
|
186
|
+
return t("Open hours overlay");
|
|
187
|
+
} else if (type === "minutes") {
|
|
188
|
+
return t("Open minutes overlay");
|
|
189
|
+
}
|
|
190
|
+
return t("Open seconds overlay");
|
|
191
|
+
},
|
|
192
|
+
amPmButton: t("Switch AM/PM mode"),
|
|
193
|
+
openYearsOverlay: t("Open years overlay"),
|
|
194
|
+
openMonthsOverlay: t("Open months overlay"),
|
|
195
|
+
nextMonth: t("Next month"),
|
|
196
|
+
prevMonth: t("Previous month"),
|
|
197
|
+
nextYear: t("Next year"),
|
|
198
|
+
prevYear: t("Previous year"),
|
|
199
|
+
weekDay: (day) => getDayNames()[day],
|
|
200
|
+
clearInput: t("Clear value"),
|
|
201
|
+
calendarIcon: t("Calendar icon"),
|
|
202
|
+
timePicker: t("Time picker"),
|
|
203
|
+
monthPicker: (overlay) => overlay ? t("Month picker overlay") : t("Month picker"),
|
|
204
|
+
yearPicker: (overlay) => overlay ? t("Year picker overlay") : t("Year picker")
|
|
205
|
+
}));
|
|
206
|
+
return (_ctx, _cache) => {
|
|
207
|
+
return openBlock(), createBlock(unref(VueDatePicker), mergeProps({
|
|
208
|
+
"aria-labels": ariaLabels.value,
|
|
209
|
+
"auto-apply": !_ctx.confirm,
|
|
210
|
+
class: "vue-date-time-picker",
|
|
211
|
+
"cancel-text": unref(t)("Cancel"),
|
|
212
|
+
clearable: _ctx.clearable,
|
|
213
|
+
"day-names": unref(dayNames),
|
|
214
|
+
placeholder: _ctx.placeholder ?? placeholderFallback.value,
|
|
215
|
+
format: realFormat.value,
|
|
216
|
+
locale: _ctx.locale,
|
|
217
|
+
"minutes-increment": _ctx.minuteStep,
|
|
218
|
+
"model-value": value.value,
|
|
219
|
+
"now-button-label": unref(t)("Now"),
|
|
220
|
+
"select-text": unref(t)("Pick"),
|
|
221
|
+
"six-weeks": "fair",
|
|
222
|
+
teleport: _ctx.appendToBody || void 0,
|
|
223
|
+
"text-input": "",
|
|
224
|
+
"week-num-name": unref(weekNumName),
|
|
225
|
+
"week-numbers": _ctx.showWeekNumber ? { type: "iso" } : void 0,
|
|
226
|
+
"week-start": unref(weekStart)
|
|
227
|
+
}, pickerType.value, { "onUpdate:modelValue": onUpdateModelValue }), createSlots({
|
|
228
|
+
"input-icon": withCtx(() => [
|
|
229
|
+
createVNode(NcIconSvgWrapper, {
|
|
230
|
+
path: unref(mdiCalendarBlank),
|
|
231
|
+
size: 20
|
|
232
|
+
}, null, 8, ["path"])
|
|
233
|
+
]),
|
|
234
|
+
"clear-icon": withCtx(() => [
|
|
235
|
+
createVNode(NcIconSvgWrapper, {
|
|
236
|
+
inline: "",
|
|
237
|
+
path: unref(mdiClose),
|
|
238
|
+
size: 20
|
|
239
|
+
}, null, 8, ["path"])
|
|
240
|
+
]),
|
|
241
|
+
"clock-icon": withCtx(() => [
|
|
242
|
+
createVNode(NcIconSvgWrapper, {
|
|
243
|
+
inline: "",
|
|
244
|
+
path: unref(mdiClock),
|
|
245
|
+
size: 20
|
|
246
|
+
}, null, 8, ["path"])
|
|
247
|
+
]),
|
|
248
|
+
"arrow-left": withCtx(() => [
|
|
249
|
+
createVNode(NcIconSvgWrapper, {
|
|
250
|
+
inline: "",
|
|
251
|
+
path: unref(mdiChevronLeft),
|
|
252
|
+
size: 20
|
|
253
|
+
}, null, 8, ["path"])
|
|
254
|
+
]),
|
|
255
|
+
"arrow-right": withCtx(() => [
|
|
256
|
+
createVNode(NcIconSvgWrapper, {
|
|
257
|
+
inline: "",
|
|
258
|
+
path: unref(mdiChevronRight),
|
|
259
|
+
size: 20
|
|
260
|
+
}, null, 8, ["path"])
|
|
261
|
+
]),
|
|
262
|
+
"arrow-down": withCtx(() => [
|
|
263
|
+
createVNode(NcIconSvgWrapper, {
|
|
264
|
+
inline: "",
|
|
265
|
+
path: unref(mdiChevronDown),
|
|
266
|
+
size: 20
|
|
267
|
+
}, null, 8, ["path"])
|
|
268
|
+
]),
|
|
269
|
+
"arrow-up": withCtx(() => [
|
|
270
|
+
createVNode(NcIconSvgWrapper, {
|
|
271
|
+
inline: "",
|
|
272
|
+
path: unref(mdiChevronUp),
|
|
273
|
+
size: 20
|
|
274
|
+
}, null, 8, ["path"])
|
|
275
|
+
]),
|
|
276
|
+
_: 2
|
|
277
|
+
}, [
|
|
278
|
+
_ctx.showTimezoneSelect ? {
|
|
279
|
+
name: "action-extra",
|
|
280
|
+
fn: withCtx(() => [
|
|
281
|
+
createVNode(_sfc_main$1, {
|
|
282
|
+
modelValue: timezoneId.value,
|
|
283
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => timezoneId.value = $event),
|
|
284
|
+
class: "vue-date-time-picker__timezone",
|
|
285
|
+
"append-to-body": false,
|
|
286
|
+
"input-label": unref(t)("Timezone")
|
|
287
|
+
}, null, 8, ["modelValue", "input-label"])
|
|
288
|
+
]),
|
|
289
|
+
key: "0"
|
|
290
|
+
} : void 0
|
|
291
|
+
]), 1040, ["aria-labels", "auto-apply", "cancel-text", "clearable", "day-names", "placeholder", "format", "locale", "minutes-increment", "model-value", "now-button-label", "select-text", "teleport", "week-num-name", "week-numbers", "week-start"]);
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
const NcDateTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-629e70a5"]]);
|
|
296
|
+
export {
|
|
297
|
+
NcDateTimePicker as N
|
|
298
|
+
};
|
|
299
|
+
//# sourceMappingURL=NcDateTimePicker-CDFvxL3U.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcDateTimePicker-CDFvxL3U.mjs","sources":["../../src/components/NcDateTimePicker/NcDateTimePicker.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nIn general it is recommended to use the native date picker (see `NcDateTimePickerNative` which is based on `<input type=\"date\">`).\nBut some use cases are not covered by the native date selector, like selecting ranges or selecting a timezone.\nFor those cases this component can be used.\n\n### General examples\n```vue\n<template>\n\t<div class=\"wrapper\">\n\t\t<fieldset class=\"type-select\">\n\t\t\t<legend>Picker mode</legend>\n\t\t\t<NcCheckboxRadioSwitch v-model=\"type\" type=\"radio\" value=\"date\">Date</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch v-model=\"type\" type=\"radio\" value=\"datetime\">Date and time</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch v-model=\"type\" type=\"radio\" value=\"week\">Week</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch v-model=\"type\" type=\"radio\" value=\"month\">Month</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch v-model=\"type\" type=\"radio\" value=\"year\">Year</NcCheckboxRadioSwitch>\n\t\t</fieldset>\n\t\t<NcDateTimePicker\n\t\t\tv-model=\"time\"\n\t\t\t:type />\n\t\t<span>{{ time }}</span>\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\ttype: 'date',\n\t\t\ttime: new Date('2022-10-10 10:10:10'),\n\t\t}\n\t},\n}\n</script>\n<style scoped>\n.wrapper {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.type-select {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n</style>\n```\n\n### Example with confirm button\n\nBy default the date is applied as soon as you select the day in the calendar.\nSometimes - especially when selecting date and time - it is required to only emit the selected date when the flow is finished.\nFor this the `confirm` prop can be used, this will add a confirmation button to the selector.\n\n```vue\n<template>\n\t<span>\n\t\t<NcDateTimePicker\n\t\t\tv-model=\"time\"\n\t\t\ttype=\"datetime\"\n\t\t\tconfirm />\n\t\t{{ time }}\n\t</span>\n</template>\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\ttime: null,\n\t\t\t}\n\t\t},\n\t}\n</script>\n```\n\n### Range picker\n\nThe most common use case for the `NcDateTimePicker` is picking a range, as this is not supported by the native date picker.\n\nWhen selecting the range picker type, the model value type will change from `Date` to `[Date, Date]`.\nMeaning an array with two dates is used, the first date is the range start and the second date is the range end.\n\n```vue\n<template>\n\t<div>\n\t\t<fieldset class=\"type-select\">\n\t\t\t<legend>Picker mode</legend>\n\t\t\t<NcCheckboxRadioSwitch v-model=\"type\" type=\"radio\" value=\"date-range\">Date</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch v-model=\"type\" type=\"radio\" value=\"time-range\">Time</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch v-model=\"type\" type=\"radio\" value=\"datetime-range\">Date and time</NcCheckboxRadioSwitch>\n\t\t</fieldset>\n\n\t\t<NcDateTimePicker\n\t\t\t:key=\"type\"\n\t\t\tv-model=\"time\"\n\t\t\t:type />\n\t\t<div>\n\t\t\t<div>Start: {{ formatDate(time[0]) }}</div>\n\t\t\t<div>End: {{ formatDate(time[1]) }}</div>\n\t\t</div>\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\ttime: [new Date(2025, 3, 18, 12, 30), new Date(2025, 3, 21, 13, 30)],\n\t\t\ttype: 'date-range',\n\t\t}\n\t},\n\tmethods: {\n\t\tformatDate(date) {\n\t\t\tconst dateString = `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`\n\t\t\tconst timeString = `${String(date.getHours()).padStart(2, '0')}:${String(date.getMinutes()).padStart(2, '0')}`\n\t\t\tif (this.type === 'date-range') {\n\t\t\t\treturn dateString\n\t\t\t} else if (this.type === 'time-range') {\n\t\t\t\treturn timeString\n\t\t\t}\n\t\t\treturn `${dateString} ${timeString}`\n\t\t},\n\t},\n}\n</script>\n\n<style scoped>\n.type-select {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n</style>\n```\n\n### Time zone aware date picker\n\nThe datepicker can optionally include a picker for the preferred time zone. The selected time does not factor in the\npicked time zone, but you will have to convert it yourself when necessary.\n\n```vue\n<template>\n\t<span>\n\t\t<NcDateTimePicker\n\t\t\tv-model=\"time\"\n\t\t\ttype=\"datetime\"\n\t\t\tshow-timezone-select\n\t\t\tv-model:timezone-id=\"tz\" /><br>\n\t\t{{ time }} | {{ tz }}\n\t</span>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\ttime: undefined,\n\t\t\ttz: 'Europe/Berlin',\n\t\t}\n\t},\n}\n</script>\n```\n</docs>\n\n<script setup lang=\"ts\">\nimport type {\n\t// The emitted object for time picker\n\tTimeObj as LibraryTimeObject,\n\t// The accepted model value\n\tModelValue as LibraryModelValue,\n\tVueDatePickerProps,\n} from '@vuepic/vue-datepicker'\n\nimport {\n\tmdiCalendarBlank,\n\tmdiChevronDown,\n\tmdiChevronLeft,\n\tmdiChevronRight,\n\tmdiChevronUp,\n\tmdiClock,\n\tmdiClose,\n} from '@mdi/js'\nimport {\n\tgetFirstDay,\n\tgetDayNames,\n\tgetDayNamesMin,\n\tgetCanonicalLocale,\n} from '@nextcloud/l10n'\nimport { computed } from 'vue'\nimport { t } from '../../l10n.js'\n\nimport VueDatePicker from '@vuepic/vue-datepicker'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/NcIconSvgWrapper.vue'\nimport NcTimezonePicker from '../NcTimezonePicker/NcTimezonePicker.vue'\n\ntype LibraryFormatOptions = VueDatePickerProps['format']\n\nconst props = withDefaults(defineProps<{\n\t/**\n\t * If set to true the menu will be placed on the `<body>`\n\t * instead of default placement on the picker.\n\t */\n\tappendToBody?: boolean\n\n\t/**\n\t * Aria label for the input box.\n\t *\n\t * @default 'Datepicker input'\n\t */\n\tariaLabel?: string\n\n\t/**\n\t * Aria label for the date picker menu.\n\t *\n\t * @default 'Datepicker menu'\n\t */\n\tariaLabelMenu?: string\n\n\t/**\n\t * Allow to clear the input.\n\t *\n\t * @default false\n\t */\n\tclearable?: boolean\n\n\t/**\n\t * Do not auto-apply the date but require clicking the confirmation button.\n\t * @default false\n\t */\n\tconfirm?: boolean\n\n\t/**\n\t * Preview format for the picker input field.\n\t * Can either be a string of Unicode tokens or a function that takes a Date object\n\t * or for range picker an array of two dates, and returns the formatted date as string.\n\t *\n\t * @default Intl.DateTimeFormat is used to format dates and times\n\t * @see https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n\t */\n\tformat?: string | ((date: Date) => string) | ((dates: [Date, Date]) => string)\n\n\t/**\n\t * The locale to use for formatting the shown dates.\n\t * By default the users current Nextcloud locale is used.\n\t */\n\tlocale?: string\n\n\t/**\n\t * Default increment step for minutes in the time picker.\n\t * @default 10\n\t */\n\tminuteStep?: number\n\n\t/**\n\t * The value to initialize, but also two-way bind the selected date. The date is – like the `Date` object in\n\t * JavaScript – tied to UTC. The selected time zone does not have an influence of the selected time and date\n\t * value. You have to translate the time yourself when you want to factor in time zones.\n\t *\n\t * When using the range picker then an array containing the start and end date needs to be passed.\n\t */\n\tmodelValue?: Date | [Date, Date]\n\n\t/**\n\t * Optional custom placeholder for the input box.\n\t */\n\tplaceholder?: string\n\n\t/**\n\t * Include a timezone picker within the menu.\n\t * Please note that the dates are still bound to the locale timezone\n\t * and any conversion needs to be done by the app itself.\n\t *\n\t * @default false\n\t */\n\tshowTimezoneSelect?: boolean\n\n\t/**\n\t * Show the ISO week numbers within the calendar.\n\t *\n\t * @default false\n\t */\n\tshowWeekNumber?: boolean\n\n\t/**\n\t * Type of the picker.\n\t * There is some special handling for ranges as those types require a `[Date, Date]` model value.\n\t * - The 'date-range' type will enable a range picker for dates\n\t * - The 'time-range' allows picking a time range.\n\t * - The 'datetime-range' allows picking dates with times assigned.\n\t *\n\t * @default 'date'\n\t */\n\ttype?: 'date' | 'datetime' | 'time' | 'week' | 'month' | 'year' | 'date-range' | 'time-range' | 'datetime-range'\n}>(), {\n\tariaLabel: t('Datepicker input'),\n\tariaLabelMenu: t('Datepicker menu'),\n\tformat: undefined,\n\tlocale: getCanonicalLocale(),\n\tminuteStep: 10,\n\ttimezoneId: 'UTC',\n\tmodelValue: undefined,\n\t// set by fallbackPlaceholder\n\tplaceholder: undefined,\n\ttype: 'date',\n})\n\n/**\n * The preselected IANA time zone ID for the time zone picker,\n * only relevant in combination with `show-timezone-select`.\n * The prop supports two-way binding through v-model directive.\n *\n * @example `Europe/Berlin`\n * @default 'UTC'\n */\nconst timezoneId = defineModel<string>('timezoneId', { default: 'UTC' })\n\nconst emit = defineEmits<{\n\t/**\n\t * If range picker is enabled then an array containing start and end date are emitted.\n\t * Otherwise the selected date is emitted.\n\t * `null` is emitted if `clearable` is set to `true` and the value was cleared.\n\t */\n\t'update:modelValue': [Date | [Date, Date] | null]\n\t'update:timezoneId': [string]\n}>()\n\n/**\n * Mapping of the model-value prop to the format expected by the library.\n * We do not directly pass the prop and adjust the interface to not transparently wrap the library.\n * This has show as beeing a pain in the past when we need to switch underlying libraries.\n */\nconst value = computed<LibraryModelValue>(() => {\n\tif (props.modelValue === undefined && props.clearable) {\n\t\treturn null\n\t}\n\n\tif (props.type === 'week') {\n\t\tconst date = props.modelValue instanceof Date ? props.modelValue : new Date()\n\t\tconst end = new Date(date)\n\t\tend.setUTCDate(date.getUTCDate() + 6)\n\t\treturn [date, end]\n\t} else if (props.type === 'year') {\n\t\tconst date = props.modelValue instanceof Date ? props.modelValue : new Date()\n\t\treturn date.getUTCFullYear()\n\t} else if (props.type === 'month') {\n\t\tconst date = props.modelValue instanceof Date ? props.modelValue : new Date()\n\t\treturn { year: date.getUTCFullYear(), month: date.getUTCMonth() }\n\t} else if (props.type === 'time' || props.type === 'time-range') {\n\t\tconst time = [props.modelValue ?? (props.type === 'time-range' ? [new Date(), new Date()] : new Date())].flat()\n\t\t// default time range is 1 hour\n\t\tif (props.modelValue === undefined && props.type === 'time-range') {\n\t\t\ttime[1].setHours(time[1].getHours() + 1)\n\t\t}\n\t\tconst timeValue = time.map((date) => ({\n\t\t\thours: date.getHours(),\n\t\t\tminutes: date.getMinutes(),\n\t\t\tseconds: date.getSeconds(),\n\t\t} as LibraryTimeObject))\n\t\treturn props.type === 'time' ? timeValue[0] : timeValue\n\t} else if (props.type.endsWith('-range')) {\n\t\tif (props.modelValue === undefined) {\n\t\t\tconst start = new Date()\n\t\t\tconst end = new Date(start)\n\t\t\tend.setUTCDate(start.getUTCDate() + 7)\n\t\t\treturn [start, end]\n\t\t}\n\t\treturn props.modelValue\n\t}\n\n\t// no special handling for other types needed\n\treturn props.modelValue ?? new Date()\n})\n\nconst placeholderFallback = computed(() => {\n\tif (props.type === 'date') {\n\t\treturn t('Select date')\n\t} else if (props.type === 'time') {\n\t\treturn t('Select time')\n\t} else if (props.type === 'datetime') {\n\t\treturn t('Select date and time')\n\t} else if (props.type === 'week') {\n\t\treturn t('Select week')\n\t} else if (props.type === 'month') {\n\t\treturn t('Select month')\n\t} else if (props.type === 'year') {\n\t\treturn t('Select year')\n\t} else if (props.type.endsWith('-range')) {\n\t\treturn t('Select time range')\n\t}\n\t// should not be reached\n\treturn t('Select date and time')\n})\n\n/**\n * The date (time) formatting to be used by the library.\n * We use the provided format if possible, otherwise we provide a formatting function\n * which uses the browsers Intl API to format the date / time in the current users locale.\n */\nconst realFormat = computed<LibraryFormatOptions>(() => {\n\tif (props.format) {\n\t\t// we can cast the type here as in this case its either string\n\t\t// function `(Date) => string` or `([Date, Date]) => string` where we cast to `(Date[]) => string` here.\n\t\treturn props.format as LibraryFormatOptions\n\t} else if (props.type === 'week') {\n\t\t// cannot format weeks with Intl.\n\t\treturn 'RR-II'\n\t}\n\n\tlet formatter: Intl.DateTimeFormat | undefined\n\tif (props.type === 'date' || props.type === 'date-range') {\n\t\tformatter = new Intl.DateTimeFormat(getCanonicalLocale(), { dateStyle: 'medium' })\n\t} else if (props.type === 'time' || props.type === 'time-range') {\n\t\tformatter = new Intl.DateTimeFormat(getCanonicalLocale(), { timeStyle: 'short' })\n\t} else if (props.type === 'datetime' || props.type === 'datetime-range') {\n\t\tformatter = new Intl.DateTimeFormat(getCanonicalLocale(), { dateStyle: 'medium', timeStyle: 'short' })\n\t} else if (props.type === 'month') {\n\t\tformatter = new Intl.DateTimeFormat(getCanonicalLocale(), { year: 'numeric', month: '2-digit' })\n\t} else if (props.type === 'year') {\n\t\tformatter = new Intl.DateTimeFormat(getCanonicalLocale(), { year: 'numeric' })\n\t}\n\n\tif (formatter) {\n\t\treturn (input: Date | [Date, Date]) => Array.isArray(input)\n\t\t\t? formatter.formatRange(input[0], input[1])\n\t\t\t: formatter.format(input)\n\t}\n\n\t// fallback to default formatting\n\treturn undefined\n})\n\nconst pickerType = computed(() => ({\n\ttimePicker: props.type === 'time' || props.type === 'time-range',\n\tyearPicker: props.type === 'year',\n\tmonthPicker: props.type === 'month',\n\tweekPicker: props.type === 'week',\n\trange: props.type.endsWith('-range') && {\n\t\t// do not use partial ranges (meaning after selecting the start [Date, null] will be emitted)\n\t\t// if this is needed someday we can enable it,\n\t\t// but its not covered by our component interface (props / events) documentation so just disabled for now.\n\t\tpartialRange: false,\n\t},\n\tenableTimePicker: !(props.type === 'date' || props.type === 'date-range'),\n\tflow: props.type === 'datetime'\n\t\t? ['calendar', 'time'] as ['calendar', 'time']\n\t\t: undefined,\n}))\n\n/**\n * Called on model value update of the library.\n * @param value The value emitted from the underlying library\n */\nfunction onUpdateModelValue(value: LibraryModelValue): void {\n\tif (value === null) {\n\t\treturn emit('update:modelValue', null)\n\t}\n\n\tif (props.type === 'time') {\n\t\t// time is provided as an object\n\t\temit('update:modelValue', formatLibraryTime(value as LibraryTimeObject))\n\t} else if (props.type === 'time-range') {\n\t\t// same as time but as an array with two elements\n\t\tconst start = formatLibraryTime(value[0])\n\t\tconst end = formatLibraryTime(value[1])\n\t\t// ensure end is beyond the start\n\t\tif (end.getTime() < start.getTime()) {\n\t\t\tend.setDate(end.getDate() + 1)\n\t\t}\n\t\temit('update:modelValue', [start, end])\n\t} else if (props.type === 'month') {\n\t\t// month is emitted as an object with month and year attribute\n\t\tconst data = value as { month: number, year: number }\n\t\temit('update:modelValue', new Date(data.year, data.month, 1))\n\t} else if (props.type === 'year') {\n\t\t// Years are emitted as the numeric year e.g. 2022\n\t\temit('update:modelValue', new Date(value as number, 0))\n\t} else if (props.type === 'week') {\n\t\t// weeks are emitted as [Date, Date]\n\t\temit('update:modelValue', value[0])\n\t} else {\n\t\t// otherwise it already emits the correct format\n\t\temit('update:modelValue', value as Date | [Date, Date])\n\t}\n}\n\n/**\n * Format a vuepick time object to native JS Date object.\n *\n * @param time - The library time value object\n */\nfunction formatLibraryTime(time: LibraryTimeObject): Date {\n\tconst date = new Date()\n\tdate.setHours(time.hours)\n\tdate.setMinutes(time.minutes)\n\tdate.setSeconds(time.seconds)\n\treturn date\n}\n\n// Localization\n\nconst dayNames = getDayNamesMin()\n\nconst weekStart = getFirstDay()\n\n// TRANSLATORS: A very short abbrevation used as a heading for \"week number\"\nconst weekNumName = t('W')\n\nconst ariaLabels = computed(() => ({\n\ttoggleOverlay: t('Toggle overlay'),\n\tmenu: props.ariaLabelMenu,\n\tinput: props.ariaLabel,\n\topenTimePicker: t('Open time picker'),\n\tcloseTimePicker: t('Close time Picker'),\n\tincrementValue: (type: 'hours' | 'minutes' | 'seconds') => {\n\t\tif (type === 'hours') {\n\t\t\treturn t('Increment hours')\n\t\t} else if (type === 'minutes') {\n\t\t\treturn t('Increment minutes')\n\t\t}\n\t\treturn t('Increment seconds')\n\t},\n\tdecrementValue: (type: 'hours' | 'minutes' | 'seconds') => {\n\t\tif (type === 'hours') {\n\t\t\treturn t('Decrement hours')\n\t\t} else if (type === 'minutes') {\n\t\t\treturn t('Decrement minutes')\n\t\t}\n\t\treturn t('Decrement seconds')\n\t},\n\topenTpOverlay: (type: 'hours' | 'minutes' | 'seconds') => {\n\t\tif (type === 'hours') {\n\t\t\treturn t('Open hours overlay')\n\t\t} else if (type === 'minutes') {\n\t\t\treturn t('Open minutes overlay')\n\t\t}\n\t\treturn t('Open seconds overlay')\n\t},\n\tamPmButton: t('Switch AM/PM mode'),\n\topenYearsOverlay: t('Open years overlay'),\n\topenMonthsOverlay: t('Open months overlay'),\n\tnextMonth: t('Next month'),\n\tprevMonth: t('Previous month'),\n\tnextYear: t('Next year'),\n\tprevYear: t('Previous year'),\n\tweekDay: (day: number) => getDayNames()[day],\n\tclearInput: t('Clear value'),\n\tcalendarIcon: t('Calendar icon'),\n\ttimePicker: t('Time picker'),\n\tmonthPicker: (overlay: boolean) => overlay ? t('Month picker overlay') : t('Month picker'),\n\tyearPicker: (overlay: boolean) => overlay ? t('Year picker overlay') : t('Year picker'),\n}))\n</script>\n\n<template>\n\t<VueDatePicker :aria-labels\n\t\t:auto-apply=\"!confirm\"\n\t\tclass=\"vue-date-time-picker\"\n\t\t:cancel-text=\"t('Cancel')\"\n\t\t:clearable\n\t\t:day-names\n\t\t:placeholder=\"placeholder ?? placeholderFallback\"\n\t\t:format=\"realFormat\"\n\t\t:locale\n\t\t:minutes-increment=\"minuteStep\"\n\t\t:model-value=\"value\"\n\t\t:now-button-label=\"t('Now')\"\n\t\t:select-text=\"t('Pick')\"\n\t\tsix-weeks=\"fair\"\n\t\t:teleport=\"appendToBody || undefined\"\n\t\ttext-input\n\t\t:week-num-name\n\t\t:week-numbers=\"showWeekNumber ? { type: 'iso' } : undefined\"\n\t\t:week-start\n\t\tv-bind=\"pickerType\"\n\t\t@update:model-value=\"onUpdateModelValue\">\n\t\t<template #input-icon>\n\t\t\t<NcIconSvgWrapper :path=\"mdiCalendarBlank\" :size=\"20\" />\n\t\t</template>\n\t\t<template #clear-icon>\n\t\t\t<NcIconSvgWrapper inline :path=\"mdiClose\" :size=\"20\" />\n\t\t</template>\n\t\t<template #clock-icon>\n\t\t\t<NcIconSvgWrapper inline :path=\"mdiClock\" :size=\"20\" />\n\t\t</template>\n\t\t<template #arrow-left>\n\t\t\t<NcIconSvgWrapper inline :path=\"mdiChevronLeft\" :size=\"20\" />\n\t\t</template>\n\t\t<template #arrow-right>\n\t\t\t<NcIconSvgWrapper inline :path=\"mdiChevronRight\" :size=\"20\" />\n\t\t</template>\n\t\t<template #arrow-down>\n\t\t\t<NcIconSvgWrapper inline :path=\"mdiChevronDown\" :size=\"20\" />\n\t\t</template>\n\t\t<template #arrow-up>\n\t\t\t<NcIconSvgWrapper inline :path=\"mdiChevronUp\" :size=\"20\" />\n\t\t</template>\n\t\t<template v-if=\"showTimezoneSelect\" #action-extra>\n\t\t\t<NcTimezonePicker v-model=\"timezoneId\"\n\t\t\t\tclass=\"vue-date-time-picker__timezone\"\n\t\t\t\t:append-to-body=\"false\"\n\t\t\t\t:input-label=\"t('Timezone')\" />\n\t\t</template>\n\t</VueDatePicker>\n</template>\n\n<style scoped lang=\"scss\">\n@import '@vuepic/vue-datepicker/dist/main.css';\n\n.vue-date-time-picker {\n\t--dp-border-radius: var(--border-radius-element);\n\t--dp-input-icon-padding: var(--default-clickable-area);\n\n\t.vue-date-time-picker__timezone {\n\t\tmin-width: unset;\n\t\twidth: 100%;\n\t}\n\n\t:deep(.icon-vue) {\n\t\topacity: 1 !important;\n\t}\n\n\t// time selector button should have consistent padding\n\t:deep(.dp--tp-wrap),\n\t:deep(.dp__action_extra) {\n\t\tpadding: var(--dp-menu-padding);\n\t\tpadding-top: 0;\n\t}\n\n\t:deep(.dp__overlay.dp--overlay-absolute) {\n\t\tpadding: var(--dp-menu-padding);\n\n\t\t.dp__btn.dp__button.dp__button_bottom {\n\t\t\tinset-block-end: 6px;\n\t\t}\n\t}\n\n\t:deep(.dp__btn.dp__button.dp__button_bottom),\n\t:deep(.dp--tp-wrap .dp__button) {\n\t\twidth: 100%;\n\t}\n\n\t:deep(.dp__btn.dp__button.dp__overlay_action) {\n\t\twidth: calc(100% - 16px);\n\t}\n\n\t// fix issues caused by Nextcloud server styles\n\t:deep(input) {\n\t\tpadding-inline-start: var(--dp-input-icon-padding) !important;\n\t}\n\t:deep(.dp__btn) {\n\t\tpadding: calc((var(--default-clickable-area) - 20px) / 2);\n\t\tmargin: 0;\n\t}\n\t:deep(.dp__inner_nav) {\n\t\theight: fit-content;\n\t\twidth: fit-content;\n\t}\n\n\t// Fix server styles causing buttons to be primary colored\n\t:deep(.dp--header-wrap .dp__btn:not(.dp__button_bottom)),\n\t:deep(.dp__time_col .dp__btn) {\n\t\tbackground-color: var(--color-main-background);\n\n\t\t&:hover {\n\t\t\tbackground-color: var(--color-background-hover);\n\t\t}\n\t}\n\n\t// Server styles cause the month and year to be fit-content -> fixing it to be max size.\n\t:deep(.dp__month_year_select) {\n\t\tflex: 1;\n\t}\n\t:deep(.dp--time-overlay-btn) {\n\t\tfont-size: calc(2 * var(--default-font-size)) !important;\n\t}\n\n\t// Adjust padding to prevent horizontal scrolling in time selection\n\t:deep(.dp__time_input .dp__time_col_reg_block) {\n\t\tpadding: 0 calc(4 * var(--default-grid-baseline));\n\t}\n\n\t&.dp__theme_dark,\n\t&.dp__theme_light,\n\t:deep(.dp__theme_dark),\n\t:deep(.dp__theme_light) {\n\t\t--dp-background-color: var(--color-main-background);\n\t\t--dp-text-color: var(--color-main-text);\n\t\t--dp-hover-color: var(--color-background-hover);\n\t\t--dp-hover-text-color: var(--color-main-text);\n\t\t--dp-hover-icon-color: var(--color-main-text);\n\t\t--dp-primary-color: var(--color-primary-element);\n\t\t--dp-primary-disabled-color: var(--color-primary-element-hover);\n\t\t--dp-primary-text-color: var(--color-primary-element-text);\n\t\t--dp-secondary-color: var(--color-text-maxcontrast); // this is used for \"disabled\" dates\n\t\t--dp-border-color: var(--color-border);\n\t\t--dp-menu-border-color: var(--color-border-dark);\n\t\t--dp-border-color-hover: var(--color-border-maxcontrast);\n\t\t--dp-border-color-focus: var(--color-border-maxcontrast);\n\t\t--dp-disabled-color: var(--color-background-dark);\n\t\t--dp-disabled-color-text: var(--color-text-maxcontrast);\n\t\t--dp-scroll-bar-background: var(--color-scrollbar);\n\t\t--dp-scroll-bar-color: var(--color-scrollbar);\n\t\t--dp-success-color: var(--color-success);\n\t\t--dp-success-color-disabled: var(--color-success-hover);\n\t\t--dp-icon-color: var(--color-main-text);\n\t\t--dp-danger-color: var(--color-error);\n\t\t--dp-marker-color: var(--color-error);\n\t\t--dp-tooltip-color: var(--color-main-text);\n\t\t--dp-highlight-color: var(--color-main-text);\n\t}\n}\n</style>\n"],"names":["_useModel","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwMA,UAAM,QAAQ;AAqHR,UAAA,aAAaA,kBAAoB,YAAgC;AAEvE,UAAM,OAAO;AAeP,UAAA,QAAQ,SAA4B,MAAM;AAC/C,UAAI,MAAM,eAAe,UAAa,M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SAAS,WAAW;AAC9B,iBAAO,EAAE,sBAAsB;AAAA,QAAA;AAEhC,eAAO,EAAE,sBAAsB;AAAA,MAChC;AAAA,MACA,YAAY,EAAE,mBAAmB;AAAA,MACjC,kBAAkB,EAAE,oBAAoB;AAAA,MACxC,mBAAmB,EAAE,qBAAqB;AAAA,MAC1C,WAAW,EAAE,YAAY;AAAA,MACzB,WAAW,EAAE,gBAAgB;AAAA,MAC7B,UAAU,EAAE,WAAW;AAAA,MACvB,UAAU,EAAE,eAAe;AAAA,MAC3B,SAAS,CAAC,QAAgB,YAAA,EAAc,GAAG;AAAA,MAC3C,YAAY,EAAE,aAAa;AAAA,MAC3B,cAAc,EAAE,eAAe;AAAA,MAC/B,YAAY,EAAE,aAAa;AAAA,MAC3B,aAAa,CAAC,YAAqB,UAAU,EAAE,sBAAsB,IAAI,EAAE,cAAc;AAAA,MACzF,YAAY,CAAC,YAAqB,UAAU,EAAE,qBAAqB,IAAI,EAAE,aAAa;AAAA,IAAA,EACrF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/chunks/{NcDateTimePickerNative-Dbc6pBXk.mjs → NcDateTimePickerNative-BRuMK89z.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../assets/NcDateTimePickerNative-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import '../assets/NcDateTimePickerNative-CdHLvH4A.css';
|
|
2
|
+
import { c as createElementId } from "./createElementId-DhjFt1I9.mjs";
|
|
3
|
+
import { S as ScopeComponent } from "./ScopeComponent-BIpNSmeE.mjs";
|
|
4
4
|
import { createElementBlock, openBlock, createElementVNode, normalizeClass, toDisplayString, mergeProps } from "vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
6
6
|
const inputDateTypes = ["date", "datetime-local", "month", "time", "week"];
|
|
@@ -23,7 +23,7 @@ const _sfc_main = ScopeComponent({
|
|
|
23
23
|
*/
|
|
24
24
|
id: {
|
|
25
25
|
type: String,
|
|
26
|
-
default: () =>
|
|
26
|
+
default: () => createElementId(),
|
|
27
27
|
validator: (id) => id.trim() !== ""
|
|
28
28
|
},
|
|
29
29
|
/**
|
|
@@ -196,7 +196,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
196
196
|
}), null, 16, _hoisted_3)
|
|
197
197
|
]);
|
|
198
198
|
}
|
|
199
|
-
const NcDateTimePickerNative = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
199
|
+
const NcDateTimePickerNative = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2a805ea7"]]);
|
|
200
200
|
export {
|
|
201
201
|
NcDateTimePickerNative as N
|
|
202
202
|
};
|
|
203
|
+
//# sourceMappingURL=NcDateTimePickerNative-BRuMK89z.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcDateTimePickerNative-BRuMK89z.mjs","sources":["../../src/components/NcDateTimePickerNative/NcDateTimePickerNative.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\n\n### General description\n\nThis components provides a wrapper around the native browser datetime picker. <br>\nThis is an input with some type of date e.g. https://html.spec.whatwg.org/multipage/input.html#local-date-and-time-state-(type=datetime-local). <br>\nAll available types are: 'date', 'datetime-local', 'month', 'time' and 'week', please check them here: https://html.spec.whatwg.org/multipage/input.html# <br>\n\n### Examples\n\n```vue\n<template>\n\t<div>\n\t\t<span>Picked date: {{ value || 'null' }}</span>\n\t\t<hr/>\n\t\t<div class=\"flex\">\n\t\t\t<NcSelect v-bind=\"props\" v-model=\"type\" />\n\t\t\t<NcDateTimePickerNative\n\t\t\t\tv-model=\"value\"\n\t\t\t\t:label=\"label\"\n\t\t\t\t:type=\"type\" />\n\t\t</div>\n\t</div>\n</template>\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tprops: {\n\t\t\t\t\tclearable: false,\n\t\t\t\t\tinputLabel: 'Picker type',\n\t\t\t\t\toptions: [\n\t\t\t\t\t\t'date',\n\t\t\t\t\t\t'datetime-local',\n\t\t\t\t\t\t'month',\n\t\t\t\t\t\t'time',\n\t\t\t\t\t\t'week',\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\ttype: 'datetime-local',\n\t\t\t\tvalue: new Date(),\n\t\t\t\tlabel: 'Select a new date or time',\n\t\t\t}\n\t\t},\n\t}\n</script>\n<style scoped>\n.flex {\n\tdisplay: flex;\n\tgap: 4px;\n}\n</style>\n```\n\n#### Usage: type='datetime-local' with min date and max date\n```vue\n<template>\n\t<div>\n\t\t<span>Picked date: {{ value || 'null' }}</span>\n\t\t<NcDateTimePickerNative\n\t\t\tv-model=\"value\"\n\t\t\t:min=\"yesterdayDate\"\n\t\t\t:max=\"someDate\"\n\t\t\t:label=\"label\"\n\t\t\ttype=\"datetime-local\" />\n\t</div>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tvalue: new Date(),\n\t\t\t\tlabel: 'Please select a new date',\n\t\t\t\tyesterdayDate: new Date(new Date().setDate(new Date().getDate() - 1)),\n\t\t\t\tsomeDate: new Date(new Date().setDate(new Date().getDate() + 7)),\n\t\t\t}\n\t\t},\n\t}\n</script>\n```\n\n</docs>\n\n<template>\n\t<div class=\"native-datetime-picker\">\n\t\t<label class=\"native-datetime-picker--label\"\n\t\t\t:class=\"{ 'hidden-visually': hideLabel }\"\n\t\t\t:for=\"id\">\n\t\t\t{{ label }}\n\t\t</label>\n\t\t<input :id=\"id\"\n\t\t\tclass=\"native-datetime-picker--input\"\n\t\t\t:class=\"inputClass\"\n\t\t\t:type=\"type\"\n\t\t\t:value=\"formattedValue\"\n\t\t\t:min=\"formattedMin\"\n\t\t\t:max=\"formattedMax\"\n\t\t\tv-bind=\"$attrs\"\n\t\t\t@input=\"onInput\">\n\t</div>\n</template>\n\n<script>\nimport { createElementId } from '../../utils/createElementId.js'\nimport ScopeComponent from '../../utils/ScopeComponent.js'\n\nconst inputDateTypes = ['date', 'datetime-local', 'month', 'time', 'week']\n\nexport default ScopeComponent({\n\tname: 'NcDateTimePickerNative',\n\tinheritAttrs: false,\n\n\tprops: {\n\t\t/**\n\t\t * The date is – like the `Date` object in JavaScript – tied to UTC.\n\t\t * The selected time zone does not have an influence of the selected time and date value.\n\t\t * You have to translate the time yourself when you want to factor in time zones.\n\t\t * Pass null to clear the input field.\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: Date,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * id attribute of the input field\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: () => createElementId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\t\t/**\n\t\t * type attribute of the input field\n\t\t * default type: String\n\t\t * The type of the input element, it can be `date`, `datetime-local`, `month`, `time`, `week`\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'date',\n\t\t\tvalidate: (name) => inputDateTypes.includes(name),\n\t\t},\n\t\t/**\n\t\t * text inside the label element\n\t\t * default type: String\n\t\t */\n\t\tlabel: {\n\t\t\ttype: String,\n\t\t\tdefault: 'Please choose a date',\n\t\t},\n\t\t/**\n\t\t * min attribute of the input field\n\t\t * default type: null\n\t\t */\n\t\tmin: {\n\t\t\ttype: [Date, Boolean],\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * max attribute of the input field\n\t\t * default type: null\n\t\t */\n\t\tmax: {\n\t\t\ttype: [Date, Boolean],\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * Flag to hide the label\n\t\t * default type: String\n\t\t * The hidden input label for accessibility purposes.\n\t\t */\n\t\thideLabel: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Class to add to the input field.\n\t\t * Necessary to use NcDateTimePickerNative in the NcActionInput component.\n\t\t */\n\t\tinputClass: {\n\t\t\ttype: [Object, String],\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\temits: [\n\t\t'update:modelValue',\n\t],\n\n\tcomputed: {\n\t\tformattedValue() {\n\t\t\treturn this.formatValue(this.modelValue)\n\t\t},\n\t\tformattedMin() {\n\t\t\tif (this.min) {\n\t\t\t\treturn this.formatValue(this.min)\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\t\tformattedMax() {\n\t\t\tif (this.max) {\n\t\t\t\treturn this.formatValue(this.max)\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Handle the input event\n\t\t *\n\t\t * @param {InputEvent} $event input event payload\n\t\t * @return {Date|null} new chosen Date() or null\n\t\t */\n\t\tonInput($event) {\n\t\t\tif (isNaN($event.target.valueAsNumber)) {\n\t\t\t\t/**\n\t\t\t\t * Emitted when the input value changes\n\t\t\t\t *\n\t\t\t\t * @return {null} null value\n\t\t\t\t */\n\t\t\t\treturn this.$emit('update:modelValue', null)\n\t\t\t}\n\t\t\tif (this.type === 'time') {\n\t\t\t\tconst time = $event.target.value\n\t\t\t\tif (this.modelValue === '' || this.modelValue === null) {\n\t\t\t\t\t// this case is because of Chrome bug\n\t\t\t\t\tconst { yyyy, MM, dd } = this.getReadableDate(new Date())\n\t\t\t\t\t/**\n\t\t\t\t\t * Emitted when the input value changes\n\t\t\t\t\t *\n\t\t\t\t\t * @return {Date} new chosen Date()\n\t\t\t\t\t */\n\t\t\t\t\treturn this.$emit('update:modelValue', new Date(`${yyyy}-${MM}-${dd}T${time}`))\n\t\t\t\t}\n\t\t\t\tconst { yyyy, MM, dd } = this.getReadableDate(this.modelValue)\n\t\t\t\t/**\n\t\t\t\t * Emitted when the input value changes\n\t\t\t\t *\n\t\t\t\t * @return {Date} new chosen Date()\n\t\t\t\t */\n\t\t\t\treturn this.$emit('update:modelValue', new Date(`${yyyy}-${MM}-${dd}T${time}`))\n\t\t\t} else if (this.type === 'month') {\n\t\t\t\tconst MM = (new Date($event.target.value).getMonth() + 1).toString().padStart(2, '0')\n\t\t\t\tif (this.modelValue === '' || this.modelValue === null) {\n\t\t\t\t\tconst { yyyy, dd, hh, mm } = this.getReadableDate(new Date())\n\t\t\t\t\t/**\n\t\t\t\t\t * Emitted when the input value changes\n\t\t\t\t\t *\n\t\t\t\t\t * @return {Date} new chosen Date()\n\t\t\t\t\t */\n\t\t\t\t\treturn this.$emit('update:modelValue', new Date(`${yyyy}-${MM}-${dd}T${hh}:${mm}`))\n\t\t\t\t}\n\t\t\t\tconst { yyyy, dd, hh, mm } = this.getReadableDate(this.modelValue)\n\t\t\t\t/**\n\t\t\t\t * Emitted when the input value changes\n\t\t\t\t *\n\t\t\t\t * @return {Date} new chosen Date()\n\t\t\t\t */\n\t\t\t\treturn this.$emit('update:modelValue', new Date(`${yyyy}-${MM}-${dd}T${hh}:${mm}`))\n\t\t\t}\n\t\t\tconst timezoneOffsetSeconds = new Date($event.target.valueAsNumber).getTimezoneOffset() * 1000 * 60\n\t\t\tconst inputDateWithTimezone = $event.target.valueAsNumber + timezoneOffsetSeconds\n\t\t\t/**\n\t\t\t * Emitted when the input value changes\n\t\t\t *\n\t\t\t * @return {Date} new chosen Date()\n\t\t\t */\n\t\t\treturn this.$emit('update:modelValue', new Date(inputDateWithTimezone))\n\t\t},\n\t\t/**\n\t\t * Returns Object with string values of a Date\n\t\t *\n\t\t * @param {Date} value The selected value\n\t\t * @return {object|undefined}\n\t\t */\n\t\tgetReadableDate(value) {\n\t\t\tif (value instanceof Date) {\n\t\t\t\tconst yyyy = value.getFullYear().toString().padStart(4, '0')\n\t\t\t\tconst MM = (value.getMonth() + 1).toString().padStart(2, '0')\n\t\t\t\tconst dd = value.getDate().toString().padStart(2, '0')\n\t\t\t\tconst hh = value.getHours().toString().padStart(2, '0')\n\t\t\t\tconst mm = value.getMinutes().toString().padStart(2, '0')\n\n\t\t\t\treturn { yyyy, MM, dd, hh, mm }\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Returns preformatted value for the input field\n\t\t *\n\t\t * @param {Date} value The selected value\n\t\t * @return {string|undefined}\n\t\t */\n\t\tformatValue(value) {\n\t\t\tif (value instanceof Date) {\n\t\t\t\tconst { yyyy, MM, dd, hh, mm } = this.getReadableDate(value)\n\t\t\t\tif (this.type === 'datetime-local') {\n\t\t\t\t\treturn `${yyyy}-${MM}-${dd}T${hh}:${mm}`\n\t\t\t\t} else if (this.type === 'date') {\n\t\t\t\t\treturn `${yyyy}-${MM}-${dd}`\n\t\t\t\t} else if (this.type === 'month') {\n\t\t\t\t\treturn `${yyyy}-${MM}`\n\t\t\t\t} else if (this.type === 'time') {\n\t\t\t\t\treturn `${hh}:${mm}`\n\t\t\t\t} else if (this.type === 'week') {\n\t\t\t\t\tconst startDate = new Date(yyyy, 0, 1)\n\t\t\t\t\tconst daysSinceBeginningOfYear = Math.floor((value - startDate)\n\t\t\t\t\t\t/ (24 * 60 * 60 * 1000))\n\t\t\t\t\tconst weekNumber = Math.ceil(daysSinceBeginningOfYear / 7)\n\t\t\t\t\treturn `${yyyy}-W${weekNumber}`\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn ''\n\t\t\t}\n\t\t},\n\t},\n})\n</script>\n\n<style lang=\"scss\" scoped>\n\t.native-datetime-picker {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\n\t.native-datetime-picker .native-datetime-picker--label {\n\t\tmargin-block-end: 2px;\n\t}\n\n\t.native-datetime-picker .native-datetime-picker--input {\n\t\t// If border width differs between focused and unfocused we need to compensate to prevent jumping\n\t\t--input-border-width-offset: calc(var(--border-width-input-focused, 2px) - var(--border-width-input, 2px));\n\t\twidth: 100%;\n\t\tflex: 0 0 auto;\n\t\tmargin: 0;\n\t\tpadding-inline-start: calc(var(--border-radius-large) + var(--input-border-width-offset));\n\t\tpadding-inline-end: calc(var(--default-grid-baseline) + var(--input-border-width-offset));\n\t\tborder: var(--border-width-input, 2px) solid var(--color-border-maxcontrast);\n\n\t\t&:active:not([disabled]),\n\t\t&:hover:not([disabled]),\n\t\t&:focus:not([disabled]),\n\t\t&:focus-within:not([disabled]) {\n\t\t\tborder-color: var(--color-main-text);\n\t\t\tborder-width: var(--border-width-input-focused, 2px);\n\t\t\tbox-shadow: 0 0 0 2px var(--color-main-background) !important;\n\t\t\t// Reset padding offset when focused\n\t\t\t--input-border-width-offset: 0px;\n\t\t}\n\t}\n\n\t[data-theme-light],\n\t[data-themes*=light] {\n\t\t.native-datetime-picker--input {\n\t\t\tcolor-scheme: light;\n\t\t}\n\t}\n\n\t[data-theme-dark],\n\t[data-themes*=dark] {\n\t\t.native-datetime-picker--input {\n\t\t\tcolor-scheme: dark;\n\t\t}\n\t}\n\n\t[data-theme-default],\n\t[data-themes*=default] {\n\t\t@media (prefers-color-scheme: light) {\n\t\t\t.native-datetime-picker--input {\n\t\t\t\tcolor-scheme: light;\n\t\t\t}\n\t\t}\n\t\t@media (prefers-color-scheme: dark) {\n\t\t\t.native-datetime-picker--input {\n\t\t\t\tcolor-scheme: dark;\n\t\t\t}\n\t\t}\n\t}\n</style>\n"],"names":["yyyy","MM","dd","hh","mm","_openBlock","_createElementBlock","_createElementVNode","_normalizeClass","_toDisplayString","_mergeProps"],"mappings":";;;;AAgHA,MAAM,iBAAiB,CAAC,QAAQ,kBAAkB,SAAS,QAAQ,MAAM;AAEzE,MAAK,YAAa,eAAY;AAAA,EAC7B,MAAM;AAAA,EACN,cAAc;AAAA,EAEd,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAON,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAKD,IAAI;AAAA,MACH,MAAM;AAAA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AAK;AACxB,gBAAM,aAAa,KAAK,KAAK,2BAA2B,CAAC;AACzD,iBAAO,GAAG,IAAI,KAAK,UAAU;AAAA,QAC9B;AAAA,aACM;AACN,eAAO;AAAA,MACR;AAAA,IACA;AAAA,EACD;AACF,CAAC;AAxOK,MAAA,aAAA,EAAA,OAAM,yBAAwB;AA1FpC,MAAA,aAAA,CAAA,KAAA;AAAA,MAAA,aAAA,CAAA,MAAA,QAAA,SAAA,OAAA,KAAA;;AA0FC,SAAAC,UAAA,GAAAC,mBAeM,OAfN,YAeM;AAAA,IAdLC,mBAIQ,SAAA;AAAA,MAJD,OA3FTC,eAAA,CA2Fe,iCAA+B,EAAA,mBACd,KAAS,UAAA,CAAA,CAAA;AAAA,MACrC,KAAK,KAAE;AAAA,IACL,GAAAC,gBAAA,KAAA,KAAK,GA9FX,IAAA,UAAA;AAAA,IAgGEF,mBAQkB,SARlBG,WAQkB;AAAA,MARV,IAAI,KAAE;AAAA,MACb,OAAK,CAAC,iCACE,KAAU,UAAA;AAAA,MACjB,MAAM,KAAI;AAAA,MACV,OAAO,KAAc;AAAA,MACrB,KAAK,KAAY;AAAA,MACjB,KAAK,KAAY;AAAA,OACV,KAAM,QAAA;AAAA,MACb,gDAAO,KAAO,WAAA,KAAA,QAAA,GAAA,IAAA;AAAA,IAxGlB,CAAA,GAAA,MAAA,IAAA,UAAA;AAAA;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../assets/NcDialog-
|
|
1
|
+
import '../assets/NcDialog-bP7Jt0ZE.css';
|
|
2
2
|
import { useElementSize } from "@vueuse/core";
|
|
3
3
|
import { defineComponent, ref, computed, resolveComponent, createBlock, createCommentVNode, openBlock, mergeProps, withCtx, createElementVNode, toDisplayString, resolveDynamicComponent, toHandlers, normalizeClass, createElementBlock, renderSlot, Fragment, renderList } from "vue";
|
|
4
4
|
import NcModal from "../components/NcModal/index.mjs";
|
|
5
|
-
import { _ as _sfc_main$1 } from "./NcDialogButton.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import {
|
|
5
|
+
import { _ as _sfc_main$1 } from "./NcDialogButton.vue_vue_type_script_setup_true_lang-DbzPc_gW.mjs";
|
|
6
|
+
import { c as createElementId } from "./createElementId-DhjFt1I9.mjs";
|
|
7
7
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
8
8
|
const _sfc_main = defineComponent({
|
|
9
9
|
name: "NcDialog",
|
|
@@ -73,16 +73,16 @@ const _sfc_main = defineComponent({
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
77
|
-
* @default
|
|
76
|
+
* Do not show the close button for the dialog.
|
|
77
|
+
* @default false
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
noClose: {
|
|
80
80
|
type: Boolean,
|
|
81
|
-
default:
|
|
81
|
+
default: false
|
|
82
82
|
},
|
|
83
83
|
/**
|
|
84
84
|
* Close the dialog if the user clicked outside of the dialog
|
|
85
|
-
* Only relevant if `
|
|
85
|
+
* Only relevant if `noClose` is not set.
|
|
86
86
|
*/
|
|
87
87
|
closeOnClickOutside: {
|
|
88
88
|
type: Boolean,
|
|
@@ -166,13 +166,13 @@ const _sfc_main = defineComponent({
|
|
|
166
166
|
default: ""
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
|
-
emits: ["closing", "update:open", "submit"],
|
|
169
|
+
emits: ["closing", "update:open", "reset", "submit"],
|
|
170
170
|
setup(props, { emit, slots }) {
|
|
171
171
|
const wrapper = ref();
|
|
172
172
|
const { width: dialogWidth } = useElementSize(wrapper, { width: 900, height: 0 });
|
|
173
173
|
const isNavigationCollapsed = computed(() => dialogWidth.value < 876);
|
|
174
174
|
const hasNavigation = computed(() => slots?.navigation !== void 0);
|
|
175
|
-
const navigationId =
|
|
175
|
+
const navigationId = createElementId();
|
|
176
176
|
const navigationAriaLabelAttr = computed(() => props.navigationAriaLabel || void 0);
|
|
177
177
|
const navigationAriaLabelledbyAttr = computed(() => {
|
|
178
178
|
if (props.navigationAriaLabel) {
|
|
@@ -208,16 +208,16 @@ const _sfc_main = defineComponent({
|
|
|
208
208
|
handleClosing(result);
|
|
209
209
|
window.setTimeout(() => handleClosed(), 300);
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
function handleClosing(result) {
|
|
212
212
|
showModal.value = false;
|
|
213
213
|
emit("closing", result);
|
|
214
|
-
}
|
|
214
|
+
}
|
|
215
215
|
const handleClosed = () => {
|
|
216
216
|
showModal.value = true;
|
|
217
217
|
emit("update:open", false);
|
|
218
218
|
};
|
|
219
219
|
const modalProps = computed(() => ({
|
|
220
|
-
|
|
220
|
+
noClose: props.noClose,
|
|
221
221
|
container: props.container === void 0 ? "body" : props.container,
|
|
222
222
|
// we do not pass the name as we already have the name as the headline
|
|
223
223
|
// name: props.name,
|
|
@@ -312,7 +312,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
312
312
|
_: 3
|
|
313
313
|
}, 16, ["onClose"])) : createCommentVNode("", true);
|
|
314
314
|
}
|
|
315
|
-
const NcDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
315
|
+
const NcDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3709d2d3"]]);
|
|
316
316
|
export {
|
|
317
317
|
NcDialog as N
|
|
318
318
|
};
|
|
319
|
+
//# sourceMappingURL=NcDialog-BX0IET9Y.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcDialog-BX0IET9Y.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<template>\n\t<NcModal v-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 :is=\"dialogTagName\"\n\t\t\tref=\"dialogElement\"\n\t\t\tclass=\"dialog\"\n\t\t\t:class=\"dialogClasses\"\n\t\t\tv-on=\"dialogListeners\">\n\t\t\t<div ref=\"wrapper\" :class=\"['dialog__wrapper', { '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 v-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 v-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<script lang=\"ts\">\nimport type { PropType } from 'vue'\nimport type { ComponentProps } from '../../utils/VueTypes.ts'\n\nimport { useElementSize } from '@vueuse/core'\nimport { computed, defineComponent, ref } from 'vue'\n\nimport NcModal from '../NcModal/index.js'\nimport NcDialogButton from '../NcDialogButton/index.js'\n\nimport { createElementId } from '../../utils/createElementId.ts'\n\ntype NcDialogButtonProps = ComponentProps<typeof NcDialogButton>\n\nexport default defineComponent({\n\tname: 'NcDialog',\n\n\tcomponents: {\n\t\tNcDialogButton,\n\t\tNcModal,\n\t},\n\n\tprops: {\n\t\t/** Name of the dialog (the heading) */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\n\t\t/** Text of the dialog */\n\t\tmessage: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/** Additional elements to add to the focus trap */\n\t\tadditionalTrapElements: {\n\t\t\ttype: Array as PropType<(string|HTMLElement)[]>,\n\t\t\tvalidator: (arr: unknown) => {\n\t\t\t\treturn (\n\t\t\t\t\tArray.isArray(arr) && arr.every(\n\t\t\t\t\t\t(element) =>\n\t\t\t\t\t\t\ttypeof element === 'string' || element instanceof HTMLElement,\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t},\n\t\t\tdefault: () => ([]),\n\t\t},\n\n\t\t/**\n\t\t * The element where to mount the dialog, if `null` is passed the dialog is mounted in place\n\t\t * @default 'body'\n\t\t */\n\t\tcontainer: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: 'body',\n\t\t},\n\n\t\t/**\n\t\t * Whether the dialog should be shown\n\t\t * @default true\n\t\t */\n\t\topen: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Size of the underlying NcModal\n\t\t * @default 'small'\n\t\t * @type {'small'|'normal'|'large'|'full'}\n\t\t */\n\t\tsize: {\n\t\t\ttype: String as PropType<'small'|'normal'|'large'|'full'>,\n\t\t\trequired: false,\n\t\t\tdefault: 'small',\n\t\t\tvalidator: (value: string) => ['small', 'normal', 'large', 'full'].includes(value),\n\t\t},\n\n\t\t/**\n\t\t * Buttons to display\n\t\t * @default []\n\t\t */\n\t\tbuttons: {\n\t\t\ttype: Array as PropType<NcDialogButtonProps[]>,\n\t\t\trequired: false,\n\t\t\tdefault: () => ([]),\n\t\t\tvalidator(value: unknown[]) {\n\t\t\t\treturn Array.isArray(value)\n\t\t\t\t\t&& value.every((element) => typeof element === 'object')\n\t\t\t},\n\t\t},\n\n\t\t/**\n\t\t * Do not show the close button for the dialog.\n\t\t * @default false\n\t\t */\n\t\tnoClose: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Close the dialog if the user clicked outside of the dialog\n\t\t * Only relevant if `noClose` is not set.\n\t\t */\n\t\tcloseOnClickOutside: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Make the dialog wrapper a HTML form element.\n\t\t * The buttons will be wrapped within the form so they can be used as submit / reset buttons.\n\t\t * Please note that when using the property the `navigation` should not be used.\n\t\t */\n\t\tisForm: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Declare if hiding the modal should be animated\n\t\t * @default false\n\t\t */\n\t\toutTransition: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Optionally pass additional classes which will be set on the navigation for custom styling\n\t\t * @default ''\n\t\t * @example\n\t\t * ```html\n\t\t * <DialogBase :navigation-classes=\"['mydialog-navigation']\"><!-- --></DialogBase>\n\t\t * <!-- ... -->\n\t\t * <style lang=\"scss\">\n\t\t * :deep(.mydialog-navigation) {\n\t\t * flex-direction: row-reverse;\n\t\t * }\n\t\t * </style>\n\t\t * ```\n\t\t */\n\t\tnavigationClasses: {\n\t\t\ttype: [String, Array, Object],\n\t\t\trequired: false,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * aria-label for the dialog navigation.\n\t\t * Use it when you want to provide a more meaningful label than the dialog name.\n\t\t *\n\t\t * By default, navigation is labeled by the dialog name.\n\t\t */\n\t\tnavigationAriaLabel: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * aria-labelledby for the dialog navigation.\n\t\t * Use it when you have an implicit navigation label (e.g. a heading).\n\t\t *\n\t\t * By default, navigation is labeled by the dialog name.\n\t\t */\n\t\tnavigationAriaLabelledby: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Optionally pass additional classes which will be set on the content wrapper for custom styling\n\t\t * @default ''\n\t\t */\n\t\tcontentClasses: {\n\t\t\ttype: [String, Array, Object],\n\t\t\trequired: false,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Optionally pass additional classes which will be set on the dialog itself\n\t\t * (the default `class` attribute will be set on the modal wrapper)\n\t\t * @default ''\n\t\t */\n\t\tdialogClasses: {\n\t\t\ttype: [String, Array, Object],\n\t\t\trequired: false,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\temits: ['closing', 'update:open', 'reset', 'submit'],\n\n\tsetup(props, { emit, slots }) {\n\t\t/**\n\t\t * The dialog wrapper element\n\t\t */\n\t\tconst wrapper = ref<HTMLDivElement>()\n\n\t\t/**\n\t\t * We use the dialog width to decide if we collapse the navigation (flex direction row)\n\t\t */\n\t\tconst { width: dialogWidth } = useElementSize(wrapper, { width: 900, height: 0 })\n\n\t\t/**\n\t\t * Whether the navigation is collapsed due to dialog and window size\n\t\t * (collapses when modal is below: 900px modal width - 2x 12px margin)\n\t\t */\n\t\tconst isNavigationCollapsed = computed(() => dialogWidth.value < 876)\n\n\t\t/**\n\t\t * Whether a navigation was passed and the element should be displayed\n\t\t */\n\t\tconst hasNavigation = computed(() => slots?.navigation !== undefined)\n\n\t\t/**\n\t\t * The unique id of the nav element\n\t\t */\n\t\tconst navigationId = createElementId()\n\n\t\t/**\n\t\t * aria-label attribute for the nav element\n\t\t */\n\t\tconst navigationAriaLabelAttr = computed(() => props.navigationAriaLabel || undefined)\n\n\t\t/**\n\t\t * aria-labelledby attribute for the nav element\n\t\t */\n\t\tconst navigationAriaLabelledbyAttr = computed(() => {\n\t\t\tif (props.navigationAriaLabel) {\n\t\t\t\t// Not needed, already labelled by aria-label\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\t// Use dialog name as a fallback label for navigation\n\t\t\treturn props.navigationAriaLabelledby || navigationId\n\t\t})\n\n\t\t/**\n\t\t * @type {import('vue').Ref<HTMLFormElement|undefined>}\n\t\t */\n\t\tconst dialogElement = ref()\n\t\t/**\n\t\t * The HTML element to use for the dialog wrapper - either form or plain div\n\t\t */\n\t\tconst dialogTagName = computed(() => props.isForm && !hasNavigation.value ? 'form' : 'div')\n\t\t/**\n\t\t * Listener to assign to the dialog element\n\t\t * This only sets the `@submit` listener if the dialog element is a form\n\t\t */\n\t\tconst dialogListeners = computed(() => dialogTagName.value === 'form'\n\t\t\t? {\n\t\t\t\t/**\n\t\t\t\t * @param {SubmitEvent} event Form submit event\n\t\t\t\t */\n\t\t\t\tsubmit(event) {\n\t\t\t\t\tevent.preventDefault()\n\t\t\t\t\t/** Forwarded HTMLFormElement submit event (only if `is-form` is set) */\n\t\t\t\t\temit('submit', event)\n\t\t\t\t},\n\t\t\t\t/**\n\t\t\t\t * @param {Event} event Form submit event\n\t\t\t\t */\n\t\t\t\treset(event) {\n\t\t\t\t\tevent.preventDefault()\n\t\t\t\t\t/**\n\t\t\t\t\t * Forwarded HTMLFormElement reset event (only if `is-form` is set).\n\t\t\t\t\t */\n\t\t\t\t\temit('reset', event)\n\t\t\t\t},\n\t\t\t}\n\t\t\t: {},\n\t\t)\n\n\t\t/**\n\t\t * If the underlying modal is shown\n\t\t */\n\t\tconst showModal = ref(true)\n\n\t\t// Because NcModal does not emit `close` when show prop is changed\n\t\t/**\n\t\t * Handle clicking a dialog button -> should close\n\t\t * @param {MouseEvent} button The button that was clicked\n\t\t * @param {unknown} result Result of the callback function\n\t\t */\n\t\tfunction handleButtonClose(button, result) {\n\t\t\t// Skip close on submit if invalid dialog\n\t\t\tif (button.nativeType === 'submit'\n\t\t\t\t&& dialogTagName.value === 'form'\n\t\t\t\t&& !dialogElement.value.reportValidity()) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\thandleClosing(result)\n\t\t\twindow.setTimeout(() => handleClosed(), 300)\n\t\t}\n\n\t\t/**\n\t\t * Handle closing the dialog, optional out transition did not run yet\n\t\t * @param result - The result of the callback\n\t\t */\n\t\tfunction handleClosing(result?: unknown): void {\n\t\t\tshowModal.value = false\n\t\t\t/**\n\t\t\t * Emitted when the dialog is closing, so the out transition did not finish yet.\n\t\t\t *\n\t\t\t * @param result - The result of the button callback (`undefined` if closing because of clicking the 'close'-button)\n\t\t\t */\n\t\t\temit('closing', result)\n\t\t}\n\n\t\t/**\n\t\t * Handle dialog closed (out transition finished)\n\t\t */\n\t\tconst handleClosed = () => {\n\t\t\tshowModal.value = true\n\t\t\t/**\n\t\t\t * Emitted then the dialog is fully closed and the out transition run\n\t\t\t */\n\t\t\temit('update:open', false)\n\t\t}\n\n\t\t/**\n\t\t * Properties to pass to the underlying NcModal\n\t\t */\n\t\tconst modalProps = computed(() => ({\n\t\t\tnoClose: props.noClose,\n\t\t\tcontainer: props.container === undefined ? 'body' : props.container,\n\t\t\t// we do not pass the name as we already have the name as the headline\n\t\t\t// name: props.name,\n\t\t\t// But we need to set the correct label id so the dialog is labelled\n\t\t\tlabelId: navigationId,\n\t\t\tsize: props.size,\n\t\t\tshow: props.open && showModal.value,\n\t\t\toutTransition: props.outTransition,\n\t\t\tcloseOnClickOutside: props.closeOnClickOutside,\n\t\t\tadditionalTrapElements: props.additionalTrapElements,\n\t\t}))\n\n\t\treturn {\n\t\t\tdialogElement,\n\t\t\tdialogListeners,\n\t\t\tdialogTagName,\n\t\t\thandleButtonClose,\n\t\t\thandleClosing,\n\t\t\thandleClosed,\n\t\t\thasNavigation,\n\t\t\tnavigationId,\n\t\t\tnavigationAriaLabelAttr,\n\t\t\tnavigationAriaLabelledbyAttr,\n\t\t\tisNavigationCollapsed,\n\t\t\tmodalProps,\n\t\t\twrapper,\n\t\t}\n\t},\n})\n</script>\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-large);\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":["NcDialogButton","_resolveComponent","_openBlock","_createBlock","_mergeProps","handleClosed","navigationId","_toDisplayString","dialogClasses","_toHandlers","_withCtx","_createElementVNode","hasNavigation","_createElementBlock","navigationAriaLabelledbyAttr","_renderSlot","_createCommentVNode","_normalizeClass","_Fragment","_renderList"],"mappings":";;;;;;AAgRA,MAAA,YAAe,gBAAgB;AAAA,EAC9B,MAAM;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