@nextcloud/vue 8.22.0 → 8.23.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 +71 -0
- package/README.md +71 -65
- package/dist/Components/NcActionButton.cjs +1 -1
- package/dist/Components/NcActionButton.mjs +1 -1
- package/dist/Components/NcActionButtonGroup.cjs +1 -1
- package/dist/Components/NcActionButtonGroup.mjs +1 -1
- package/dist/Components/NcActionCaption.cjs +2 -2
- package/dist/Components/NcActionCaption.cjs.map +1 -1
- package/dist/Components/NcActionCaption.mjs +2 -2
- package/dist/Components/NcActionCaption.mjs.map +1 -1
- package/dist/Components/NcActionCheckbox.cjs +1 -1
- package/dist/Components/NcActionCheckbox.mjs +1 -1
- package/dist/Components/NcActionInput.cjs +1 -1
- package/dist/Components/NcActionInput.mjs +1 -1
- package/dist/Components/NcActionLink.cjs +1 -1
- package/dist/Components/NcActionLink.mjs +1 -1
- package/dist/Components/NcActionRadio.cjs +1 -1
- package/dist/Components/NcActionRadio.mjs +1 -1
- package/dist/Components/NcActionRouter.cjs +1 -1
- package/dist/Components/NcActionRouter.mjs +1 -1
- package/dist/Components/NcActionText.cjs +1 -1
- package/dist/Components/NcActionText.mjs +1 -1
- package/dist/Components/NcActionTextEditable.cjs +1 -1
- package/dist/Components/NcActionTextEditable.mjs +1 -1
- package/dist/Components/NcActions.cjs +1 -1
- package/dist/Components/NcActions.mjs +1 -1
- package/dist/Components/NcAppContent.cjs +1 -1
- package/dist/Components/NcAppContent.mjs +1 -1
- package/dist/Components/NcAppNavigation.cjs +1 -1
- package/dist/Components/NcAppNavigation.mjs +1 -1
- package/dist/Components/NcAppNavigationCaption.cjs +1 -1
- package/dist/Components/NcAppNavigationCaption.mjs +1 -1
- package/dist/Components/NcAppNavigationItem.cjs +1 -1
- package/dist/Components/NcAppNavigationItem.mjs +1 -1
- package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
- package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
- package/dist/Components/NcAppNavigationSearch.cjs +1 -1
- package/dist/Components/NcAppNavigationSearch.mjs +1 -1
- package/dist/Components/NcAppNavigationSettings.cjs +1 -1
- package/dist/Components/NcAppNavigationSettings.mjs +1 -1
- package/dist/Components/NcAppNavigationToggle.cjs +1 -1
- package/dist/Components/NcAppNavigationToggle.mjs +1 -1
- package/dist/Components/NcAppSettingsDialog.cjs +1 -1
- package/dist/Components/NcAppSettingsDialog.mjs +1 -1
- package/dist/Components/NcAppSidebar.cjs +1 -1
- package/dist/Components/NcAppSidebar.mjs +1 -1
- package/dist/Components/NcAvatar.cjs +1 -1
- package/dist/Components/NcAvatar.mjs +1 -1
- package/dist/Components/NcBreadcrumb.cjs +1 -1
- package/dist/Components/NcBreadcrumb.mjs +1 -1
- package/dist/Components/NcBreadcrumbs.cjs +1 -1
- package/dist/Components/NcBreadcrumbs.mjs +1 -1
- package/dist/Components/NcButton.cjs +2 -2
- package/dist/Components/NcButton.cjs.map +1 -1
- package/dist/Components/NcButton.mjs +2 -2
- package/dist/Components/NcButton.mjs.map +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
- package/dist/Components/NcChip.cjs +3 -3
- package/dist/Components/NcChip.mjs +3 -3
- package/dist/Components/NcCollectionList.cjs +1 -1
- package/dist/Components/NcCollectionList.mjs +1 -1
- package/dist/Components/NcColorPicker.cjs +1 -1
- package/dist/Components/NcColorPicker.mjs +1 -1
- package/dist/Components/NcContent.cjs +1 -1
- package/dist/Components/NcContent.mjs +1 -1
- package/dist/Components/NcCounterBubble.cjs +1 -1
- package/dist/Components/NcCounterBubble.mjs +1 -1
- package/dist/Components/NcDashboardWidget.cjs +1 -1
- package/dist/Components/NcDashboardWidget.mjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
- package/dist/Components/NcDateTime.cjs +1 -1
- package/dist/Components/NcDateTime.mjs +1 -1
- package/dist/Components/NcDateTimePicker.cjs +5 -5
- package/dist/Components/NcDateTimePicker.mjs +5 -5
- package/dist/Components/NcDateTimePickerNative.cjs +22 -18
- package/dist/Components/NcDateTimePickerNative.cjs.map +1 -1
- package/dist/Components/NcDateTimePickerNative.mjs +22 -18
- package/dist/Components/NcDateTimePickerNative.mjs.map +1 -1
- package/dist/Components/NcDialog.cjs +1 -1
- package/dist/Components/NcDialog.mjs +1 -1
- package/dist/Components/NcDialogButton.cjs +1 -1
- package/dist/Components/NcDialogButton.mjs +1 -1
- package/dist/Components/NcEmojiPicker.cjs +1 -1
- package/dist/Components/NcEmojiPicker.mjs +1 -1
- package/dist/Components/NcHeaderButton.cjs +2 -2
- package/dist/Components/NcHeaderButton.cjs.map +1 -1
- package/dist/Components/NcHeaderButton.mjs +2 -2
- package/dist/Components/NcHeaderButton.mjs.map +1 -1
- package/dist/Components/NcHeaderMenu.cjs +1 -1
- package/dist/Components/NcHeaderMenu.mjs +1 -1
- package/dist/Components/NcInputField.cjs +1 -1
- package/dist/Components/NcInputField.mjs +1 -1
- package/dist/Components/NcListItem.cjs +1 -1
- package/dist/Components/NcListItem.mjs +1 -1
- package/dist/Components/NcListItemIcon.cjs +1 -1
- package/dist/Components/NcListItemIcon.mjs +1 -1
- package/dist/Components/NcModal.cjs +50 -20
- package/dist/Components/NcModal.cjs.map +1 -1
- package/dist/Components/NcModal.mjs +51 -21
- package/dist/Components/NcModal.mjs.map +1 -1
- package/dist/Components/NcPasswordField.cjs +1 -1
- package/dist/Components/NcPasswordField.mjs +1 -1
- package/dist/Components/NcPopover.cjs +1 -1
- package/dist/Components/NcPopover.mjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
- package/dist/Components/NcRichContenteditable.cjs +2 -2
- package/dist/Components/NcRichContenteditable.mjs +2 -2
- package/dist/Components/NcRichText.cjs +2 -2
- package/dist/Components/NcRichText.mjs +3 -3
- package/dist/Components/NcSelect.cjs +1 -1
- package/dist/Components/NcSelect.mjs +1 -1
- package/dist/Components/NcSelectTags.cjs +1 -1
- package/dist/Components/NcSelectTags.mjs +1 -1
- package/dist/Components/NcSettingsInputText.cjs +1 -1
- package/dist/Components/NcSettingsInputText.mjs +1 -1
- package/dist/Components/NcSettingsSection.cjs +1 -1
- package/dist/Components/NcSettingsSection.mjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
- package/dist/Components/NcTextField.cjs +1 -1
- package/dist/Components/NcTextField.mjs +1 -1
- package/dist/Components/NcTimezonePicker.cjs +1 -1
- package/dist/Components/NcTimezonePicker.mjs +1 -1
- package/dist/Components/NcUserBubble.cjs +1 -1
- package/dist/Components/NcUserBubble.mjs +1 -1
- package/dist/Components/NcUserStatusIcon.cjs +1 -1
- package/dist/Components/NcUserStatusIcon.mjs +1 -1
- package/dist/Directives/Linkify.cjs +14 -2
- package/dist/Directives/Linkify.cjs.map +1 -1
- package/dist/Directives/Linkify.mjs +11 -1
- package/dist/Directives/Linkify.mjs.map +1 -1
- package/dist/Functions/reference.cjs +1 -1
- package/dist/Functions/reference.mjs +1 -1
- package/dist/Functions/usernameToColor.cjs +1 -1
- package/dist/Functions/usernameToColor.mjs +1 -1
- package/dist/Mixins/richEditor.cjs +1 -2
- package/dist/Mixins/richEditor.cjs.map +1 -1
- package/dist/Mixins/richEditor.mjs +1 -2
- package/dist/Mixins/richEditor.mjs.map +1 -1
- package/dist/assets/{NcActionButton-BT4157Cp.css → NcActionButton-BYN2SUN0.css} +4 -2
- package/dist/assets/{NcActionCaption-JVhz4Wp7.css → NcActionCaption-BNDtcWJ7.css} +4 -4
- package/dist/assets/{NcActionCheckbox-DeW2CCVc.css → NcActionCheckbox-Dan0EvGm.css} +18 -18
- package/dist/assets/{NcActionInput-CNRERfyh.css → NcActionInput-Dz21fyVD.css} +69 -65
- package/dist/assets/{NcActionLink-BNtI-AlZ.css → NcActionLink-BG9B9dP4.css} +4 -2
- package/dist/assets/{NcActionRadio-DC7Wp9rR.css → NcActionRadio-C87waXE-.css} +18 -18
- package/dist/assets/{NcActionRouter-As2g7t6k.css → NcActionRouter-BAGuUfFu.css} +4 -2
- package/dist/assets/{NcActionText-NhGjKgRO.css → NcActionText-Cjp26Bn0.css} +4 -2
- package/dist/assets/{NcActionTextEditable-Cg16Q4zr.css → NcActionTextEditable-1TXeJ5zp.css} +68 -64
- package/dist/assets/{NcActions-DM_LoRlx.css → NcActions-C4SuFczn.css} +12 -15
- package/dist/assets/{NcAppContent-CsPEhdzg.css → NcAppContent-BO0ksFwD.css} +19 -19
- package/dist/assets/{NcAppNavigationCaption-Dt5K_hKD.css → NcAppNavigationCaption-DU9PxTvu.css} +9 -9
- package/dist/assets/{NcAppNavigationItem-DIv6Iu_R.css → NcAppNavigationItem-lh9Say1M.css} +9 -9
- package/dist/assets/{NcAppNavigationNewItem-CQ1f40wK.css → NcAppNavigationNewItem-fUP3wQTQ.css} +37 -37
- package/dist/assets/{NcAppNavigationSettings-BV_QS8jh.css → NcAppNavigationSettings-vd47rlNY.css} +14 -14
- package/dist/assets/{NcAvatar-DstXjzVh.css → NcAvatar-CcJlFpcI.css} +25 -25
- package/dist/assets/{NcButton-BHDLon1_.css → NcButton-CfOAX-eQ.css} +47 -47
- package/dist/assets/{NcColorPicker-Dw2wy2tU.css → NcColorPicker-C1DuuANb.css} +28 -28
- package/dist/assets/{NcCounterBubble-DdYmHnng.css → NcCounterBubble-CI-DxLjL.css} +7 -7
- package/dist/assets/{NcDateTimePicker-BmtdlJm4.css → NcDateTimePicker-MkokZozI.css} +22 -17
- package/dist/assets/NcDateTimePickerNative-DVGEymgr.css +60 -0
- package/dist/assets/{NcEmojiPicker-BNCW1Q94.css → NcEmojiPicker-rk5qcSl7.css} +75 -57
- package/dist/assets/{NcHeaderButton-DH4Qtw3P.css → NcHeaderButton-BPkJ5wxD.css} +7 -7
- package/dist/assets/{NcHeaderMenu-C2XbJMYL.css → NcHeaderMenu-BYjnMPPl.css} +11 -11
- package/dist/assets/{NcInputField-CUsdr7lV.css → NcInputField-CzryIHRa.css} +32 -32
- package/dist/assets/{NcListItem-DQ2Dk7jn.css → NcListItem-GE5S37TT.css} +48 -47
- package/dist/assets/{NcMentionBubble-Bt71nB8X.css → NcMentionBubble-BL05HUeF.css} +12 -13
- package/dist/assets/{NcModal-IUKZfPNs.css → NcModal-ZfCDJxwd.css} +63 -61
- package/dist/assets/{NcPasswordField-B0VbIU2n.css → NcPasswordField-whtKJFcB.css} +2 -2
- package/dist/assets/{NcPopover-TS4CW9MJ.css → NcPopover-DpakVVxI.css} +16 -5
- package/dist/assets/{NcRelatedResourcesPanel-DIhZx6lY.css → NcRelatedResourcesPanel-DSf7TVcC.css} +14 -14
- package/dist/assets/{NcRichContenteditable-DoDTb8p_.css → NcRichContenteditable-BV6g3dmd.css} +41 -39
- package/dist/assets/NcRichText-zt8ALFHi.css +323 -0
- package/dist/assets/{NcUserBubble-CNid1YOT.css → NcUserBubble-BsTKRhKz.css} +11 -11
- package/dist/assets/{referencePickerModal-BhhuyO3J.css → referencePickerModal-CTumspFH.css} +46 -46
- package/dist/chunks/{GenColors-l51faA-J.mjs → GenColors-Bp97WTnT.mjs} +1 -1
- package/dist/chunks/{GenColors-l51faA-J.mjs.map → GenColors-Bp97WTnT.mjs.map} +1 -1
- package/dist/chunks/{GenColors-NLLtT2OM.cjs → GenColors-DH0trnvh.cjs} +1 -1
- package/dist/chunks/{GenColors-NLLtT2OM.cjs.map → GenColors-DH0trnvh.cjs.map} +1 -1
- package/dist/chunks/{NcActionButton-82_1gdid.mjs → NcActionButton-CEysTg4c.mjs} +1 -1
- package/dist/chunks/{NcActionButton-82_1gdid.mjs.map → NcActionButton-CEysTg4c.mjs.map} +1 -1
- package/dist/chunks/{NcActionButton-DHOce_KX.cjs → NcActionButton-DcpUnqA7.cjs} +1 -1
- package/dist/chunks/{NcActionButton-DHOce_KX.cjs.map → NcActionButton-DcpUnqA7.cjs.map} +1 -1
- package/dist/chunks/{NcActionButtonGroup-BSh2wd9F.mjs → NcActionButtonGroup-CCsqO10Q.mjs} +1 -1
- package/dist/chunks/{NcActionButtonGroup-BSh2wd9F.mjs.map → NcActionButtonGroup-CCsqO10Q.mjs.map} +1 -1
- package/dist/chunks/{NcActionButtonGroup-MCHURlnG.cjs → NcActionButtonGroup-CljgCf7q.cjs} +1 -1
- package/dist/chunks/{NcActionButtonGroup-MCHURlnG.cjs.map → NcActionButtonGroup-CljgCf7q.cjs.map} +1 -1
- package/dist/chunks/{NcActionCheckbox-C_wvm9IO.mjs → NcActionCheckbox-BnL71Qmi.mjs} +2 -2
- package/dist/chunks/{NcActionCheckbox-C_wvm9IO.mjs.map → NcActionCheckbox-BnL71Qmi.mjs.map} +1 -1
- package/dist/chunks/{NcActionCheckbox-DwU16qcU.cjs → NcActionCheckbox-Dd5Y6f63.cjs} +2 -2
- package/dist/chunks/{NcActionCheckbox-DwU16qcU.cjs.map → NcActionCheckbox-Dd5Y6f63.cjs.map} +1 -1
- package/dist/chunks/{NcActionInput-DlLBUp3P.cjs → NcActionInput-Co580YPc.cjs} +6 -6
- package/dist/chunks/{NcActionInput-DlLBUp3P.cjs.map → NcActionInput-Co580YPc.cjs.map} +1 -1
- package/dist/chunks/{NcActionInput-D1yrXgXY.mjs → NcActionInput-DbFfZx2L.mjs} +6 -6
- package/dist/chunks/{NcActionInput-D1yrXgXY.mjs.map → NcActionInput-DbFfZx2L.mjs.map} +1 -1
- package/dist/chunks/{NcActionRadio-vHwjWOHS.cjs → NcActionRadio-BQ0jAh5V.cjs} +16 -8
- package/dist/chunks/NcActionRadio-BQ0jAh5V.cjs.map +1 -0
- package/dist/chunks/{NcActionRadio-Dl6W62Vm.mjs → NcActionRadio-CCTupqRR.mjs} +14 -8
- package/dist/chunks/NcActionRadio-CCTupqRR.mjs.map +1 -0
- package/dist/chunks/{NcActionTextEditable-97R7dFen.cjs → NcActionTextEditable-C-ZP8_Tn.cjs} +8 -4
- package/dist/chunks/NcActionTextEditable-C-ZP8_Tn.cjs.map +1 -0
- package/dist/chunks/{NcActionTextEditable-DZCFtqIP.mjs → NcActionTextEditable-JRD-G0CT.mjs} +8 -4
- package/dist/chunks/NcActionTextEditable-JRD-G0CT.mjs.map +1 -0
- package/dist/chunks/{NcActions-Vrs_fNJp.cjs → NcActions-B9hBFogn.cjs} +5 -30
- package/dist/chunks/{NcActions-BVdJOuja.mjs.map → NcActions-B9hBFogn.cjs.map} +1 -1
- package/dist/chunks/{NcActions-BVdJOuja.mjs → NcActions-DV02tDLT.mjs} +5 -30
- package/dist/chunks/{NcActions-Vrs_fNJp.cjs.map → NcActions-DV02tDLT.mjs.map} +1 -1
- package/dist/chunks/{NcAppContent-BuY1ebnE.mjs → NcAppContent-D3ku3oxL.mjs} +14 -5
- package/dist/chunks/NcAppContent-D3ku3oxL.mjs.map +1 -0
- package/dist/chunks/{NcAppContent-BhXzPGUR.cjs → NcAppContent-DdfRZmsz.cjs} +14 -5
- package/dist/chunks/NcAppContent-DdfRZmsz.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigation-3qOqHlZL.cjs → NcAppNavigation-DQnt1SXa.cjs} +1 -1
- package/dist/chunks/{NcAppNavigation-3qOqHlZL.cjs.map → NcAppNavigation-DQnt1SXa.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigation-Dgg_3EFP.mjs → NcAppNavigation-ZFb93kAU.mjs} +1 -1
- package/dist/chunks/{NcAppNavigation-Dgg_3EFP.mjs.map → NcAppNavigation-ZFb93kAU.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-BXzy7pSk.mjs → NcAppNavigationCaption-DXufL2i4.mjs} +3 -3
- package/dist/chunks/{NcAppNavigationCaption-BXzy7pSk.mjs.map → NcAppNavigationCaption-DXufL2i4.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-BsR_h0__.cjs → NcAppNavigationCaption-LypfQqMe.cjs} +3 -3
- package/dist/chunks/{NcAppNavigationCaption-BsR_h0__.cjs.map → NcAppNavigationCaption-LypfQqMe.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-boljzMEm.cjs → NcAppNavigationItem-D-1kyfhH.cjs} +6 -6
- package/dist/chunks/NcAppNavigationItem-D-1kyfhH.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigationItem-C8Qq4tF5.mjs → NcAppNavigationItem-rJoyDMUX.mjs} +6 -6
- package/dist/chunks/NcAppNavigationItem-rJoyDMUX.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationNewItem-B_xMcFfc.mjs → NcAppNavigationNewItem-CO4Mau1P.mjs} +3 -3
- package/dist/chunks/{NcAppNavigationNewItem-B_xMcFfc.mjs.map → NcAppNavigationNewItem-CO4Mau1P.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-DVPBJE3U.cjs → NcAppNavigationNewItem-DV3fOuWq.cjs} +3 -3
- package/dist/chunks/{NcAppNavigationNewItem-DVPBJE3U.cjs.map → NcAppNavigationNewItem-DV3fOuWq.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-BcTPJyAH.cjs → NcAppNavigationSearch-BVBeLYXH.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationSearch-BcTPJyAH.cjs.map → NcAppNavigationSearch-BVBeLYXH.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-C_TVvxZh.mjs → NcAppNavigationSearch-DpaZRVqv.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationSearch-C_TVvxZh.mjs.map → NcAppNavigationSearch-DpaZRVqv.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-DO0f3tDe.cjs → NcAppNavigationSettings-CpBSr0CG.cjs} +4 -5
- package/dist/chunks/{NcAppNavigationSettings-DO0f3tDe.cjs.map → NcAppNavigationSettings-CpBSr0CG.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-CST0dabX.mjs → NcAppNavigationSettings-DgUbSU0v.mjs} +4 -5
- package/dist/chunks/{NcAppNavigationSettings-CST0dabX.mjs.map → NcAppNavigationSettings-DgUbSU0v.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-DC1ueYFW.cjs → NcAppNavigationToggle-BbDj_xom.cjs} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-DC1ueYFW.cjs.map → NcAppNavigationToggle-BbDj_xom.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-CyRacXd1.mjs → NcAppNavigationToggle-Z_4QmE4l.mjs} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-CyRacXd1.mjs.map → NcAppNavigationToggle-Z_4QmE4l.mjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-CcCa2tJf.cjs → NcAppSettingsDialog-CLTp2nax.cjs} +2 -2
- package/dist/chunks/{NcAppSettingsDialog-CcCa2tJf.cjs.map → NcAppSettingsDialog-CLTp2nax.cjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-BW0P_DJq.mjs → NcAppSettingsDialog-DEPymL7F.mjs} +2 -2
- package/dist/chunks/{NcAppSettingsDialog-BW0P_DJq.mjs.map → NcAppSettingsDialog-DEPymL7F.mjs.map} +1 -1
- package/dist/chunks/{NcAppSidebar-BC_h_duv.mjs → NcAppSidebar-C149M_Fz.mjs} +3 -3
- package/dist/chunks/{NcAppSidebar-BC_h_duv.mjs.map → NcAppSidebar-C149M_Fz.mjs.map} +1 -1
- package/dist/chunks/{NcAppSidebar-Dq-zojSu.cjs → NcAppSidebar-CGra4INE.cjs} +3 -3
- package/dist/chunks/{NcAppSidebar-Dq-zojSu.cjs.map → NcAppSidebar-CGra4INE.cjs.map} +1 -1
- package/dist/chunks/{NcAvatar-D4E0ptkW.cjs → NcAvatar-BGtTigLZ.cjs} +11 -12
- package/dist/chunks/NcAvatar-BGtTigLZ.cjs.map +1 -0
- package/dist/chunks/{NcAvatar-CT6DLUhQ.mjs → NcAvatar-DTd55tcm.mjs} +11 -12
- package/dist/chunks/NcAvatar-DTd55tcm.mjs.map +1 -0
- package/dist/chunks/{NcBreadcrumb-B0-rwsl8.cjs → NcBreadcrumb-DxF8JaOu.cjs} +1 -1
- package/dist/chunks/{NcBreadcrumb-B0-rwsl8.cjs.map → NcBreadcrumb-DxF8JaOu.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-LVdLi11j.mjs → NcBreadcrumb-bWA_vFfP.mjs} +1 -1
- package/dist/chunks/{NcBreadcrumb-LVdLi11j.mjs.map → NcBreadcrumb-bWA_vFfP.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-C1L5IrRV.cjs → NcBreadcrumbs-IhjgM1JZ.cjs} +3 -3
- package/dist/chunks/{NcBreadcrumbs-C1L5IrRV.cjs.map → NcBreadcrumbs-IhjgM1JZ.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-BiRI0VOa.mjs → NcBreadcrumbs-sClaGRTt.mjs} +3 -3
- package/dist/chunks/{NcBreadcrumbs-BiRI0VOa.mjs.map → NcBreadcrumbs-sClaGRTt.mjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-DP-rnk4f.cjs → NcCheckboxRadioSwitch-BeqHHlB9.cjs} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-DP-rnk4f.cjs.map → NcCheckboxRadioSwitch-BeqHHlB9.cjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-Dm_27r-z.mjs → NcCheckboxRadioSwitch-TK3dfQ23.mjs} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-Dm_27r-z.mjs.map → NcCheckboxRadioSwitch-TK3dfQ23.mjs.map} +1 -1
- package/dist/chunks/{NcCollectionList-tLuZ9fZk.cjs → NcCollectionList-960B7fbH.cjs} +5 -5
- package/dist/chunks/{NcCollectionList-tLuZ9fZk.cjs.map → NcCollectionList-960B7fbH.cjs.map} +1 -1
- package/dist/chunks/{NcCollectionList-C4JoCivp.mjs → NcCollectionList-AVScwDI5.mjs} +5 -5
- package/dist/chunks/{NcCollectionList-C4JoCivp.mjs.map → NcCollectionList-AVScwDI5.mjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-rWet3ND8.cjs → NcColorPicker-Cfc8caOi.cjs} +23 -18
- package/dist/chunks/NcColorPicker-Cfc8caOi.cjs.map +1 -0
- package/dist/chunks/{NcColorPicker-CODhE5KL.mjs → NcColorPicker-CxUVj8Z0.mjs} +23 -18
- package/dist/chunks/NcColorPicker-CxUVj8Z0.mjs.map +1 -0
- package/dist/chunks/{NcContent-CmCMVNVu.cjs → NcContent-8DrfnMbH.cjs} +1 -1
- package/dist/chunks/{NcContent-CmCMVNVu.cjs.map → NcContent-8DrfnMbH.cjs.map} +1 -1
- package/dist/chunks/{NcContent-D7q7hI8k.mjs → NcContent-CUGljSwq.mjs} +1 -1
- package/dist/chunks/{NcContent-D7q7hI8k.mjs.map → NcContent-CUGljSwq.mjs.map} +1 -1
- package/dist/chunks/{NcCounterBubble-DF2rwIo4.cjs → NcCounterBubble-BRrUO34D.cjs} +19 -8
- package/dist/chunks/{NcCounterBubble-DF2rwIo4.cjs.map → NcCounterBubble-BRrUO34D.cjs.map} +1 -1
- package/dist/chunks/{NcCounterBubble-M1q9GRkH.mjs → NcCounterBubble-CDfRYl8B.mjs} +19 -8
- package/dist/chunks/{NcCounterBubble-M1q9GRkH.mjs.map → NcCounterBubble-CDfRYl8B.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-CU5MNmVJ.mjs → NcDashboardWidget-52sFYtbl.mjs} +3 -3
- package/dist/chunks/{NcDashboardWidget-CU5MNmVJ.mjs.map → NcDashboardWidget-52sFYtbl.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-DND0u_84.cjs → NcDashboardWidget-DLT7_5SX.cjs} +3 -3
- package/dist/chunks/{NcDashboardWidget-DND0u_84.cjs.map → NcDashboardWidget-DLT7_5SX.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-DXmFRgPS.cjs → NcDashboardWidgetItem-D8hdHDZu.cjs} +3 -3
- package/dist/chunks/{NcDashboardWidgetItem-DXmFRgPS.cjs.map → NcDashboardWidgetItem-D8hdHDZu.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-D_LnB3eD.mjs → NcDashboardWidgetItem-DU3WZN-y.mjs} +3 -3
- package/dist/chunks/{NcDashboardWidgetItem-D_LnB3eD.mjs.map → NcDashboardWidgetItem-DU3WZN-y.mjs.map} +1 -1
- package/dist/chunks/{NcDateTime-DCay1-XL.cjs → NcDateTime-BRGrNYn0.cjs} +1 -1
- package/dist/chunks/{NcDateTime-DCay1-XL.cjs.map → NcDateTime-BRGrNYn0.cjs.map} +1 -1
- package/dist/chunks/{NcDateTime-rpYgoLDg.mjs → NcDateTime-CGh9MkHy.mjs} +1 -1
- package/dist/chunks/{NcDateTime-rpYgoLDg.mjs.map → NcDateTime-CGh9MkHy.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-CGqOzNXp.mjs → NcDialog-B9vjcT1J.mjs} +1 -1
- package/dist/chunks/{NcDialog-CGqOzNXp.mjs.map → NcDialog-B9vjcT1J.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-CBQgMh0l.cjs → NcDialog-CfYmQm13.cjs} +1 -1
- package/dist/chunks/{NcDialog-CBQgMh0l.cjs.map → NcDialog-CfYmQm13.cjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-C2I08MyR.mjs → NcDialogButton-B2SWZUHD.mjs} +1 -1
- package/dist/chunks/{NcDialogButton-C2I08MyR.mjs.map → NcDialogButton-B2SWZUHD.mjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-F6xUMopP.cjs → NcDialogButton-HxcYXT5L.cjs} +1 -1
- package/dist/chunks/{NcDialogButton-F6xUMopP.cjs.map → NcDialogButton-HxcYXT5L.cjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-CUVGh_eA.mjs → NcEmojiPicker-BXZBDiWy.mjs} +69 -42
- package/dist/chunks/NcEmojiPicker-BXZBDiWy.mjs.map +1 -0
- package/dist/chunks/{NcEmojiPicker-DrJqoYXz.cjs → NcEmojiPicker-Cpll3Z7O.cjs} +69 -42
- package/dist/chunks/NcEmojiPicker-Cpll3Z7O.cjs.map +1 -0
- package/dist/chunks/{NcHeaderMenu-CzS2doDR.cjs → NcHeaderMenu-BaHhnhN0.cjs} +3 -4
- package/dist/chunks/NcHeaderMenu-BaHhnhN0.cjs.map +1 -0
- package/dist/chunks/{NcHeaderMenu-vLqcJ-_w.mjs → NcHeaderMenu-CLcpStap.mjs} +3 -4
- package/dist/chunks/NcHeaderMenu-CLcpStap.mjs.map +1 -0
- package/dist/chunks/{NcInputConfirmCancel-C6zlmXZ4.mjs → NcInputConfirmCancel-ruvJ51Mx.mjs} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-C6zlmXZ4.mjs.map → NcInputConfirmCancel-ruvJ51Mx.mjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-C8hLDujR.cjs → NcInputConfirmCancel-usP54-1l.cjs} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-C8hLDujR.cjs.map → NcInputConfirmCancel-usP54-1l.cjs.map} +1 -1
- package/dist/chunks/{NcInputField-ixTTHy3h.mjs → NcInputField-CU5a68Pc.mjs} +6 -7
- package/dist/chunks/NcInputField-CU5a68Pc.mjs.map +1 -0
- package/dist/chunks/{NcInputField-CbBdbdE8.cjs → NcInputField-DkhKrb8k.cjs} +6 -7
- package/dist/chunks/NcInputField-DkhKrb8k.cjs.map +1 -0
- package/dist/chunks/{NcListItem-B5pTDywA.cjs → NcListItem-DD-ogntB.cjs} +4 -4
- package/dist/chunks/{NcListItem-B5pTDywA.cjs.map → NcListItem-DD-ogntB.cjs.map} +1 -1
- package/dist/chunks/{NcListItem-P2z7dcyT.mjs → NcListItem-Du0jflbS.mjs} +4 -4
- package/dist/chunks/{NcListItem-P2z7dcyT.mjs.map → NcListItem-Du0jflbS.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-B1wOr_AY.mjs → NcListItemIcon-21-8tZ2J.mjs} +2 -3
- package/dist/chunks/{NcListItemIcon-B1wOr_AY.mjs.map → NcListItemIcon-21-8tZ2J.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-CC-LU_U9.cjs → NcListItemIcon-BP2C6QPu.cjs} +2 -3
- package/dist/chunks/{NcListItemIcon-CC-LU_U9.cjs.map → NcListItemIcon-BP2C6QPu.cjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-CZ94k5WH.mjs → NcPasswordField-C6zTx4jJ.mjs} +10 -6
- package/dist/chunks/NcPasswordField-C6zTx4jJ.mjs.map +1 -0
- package/dist/chunks/{NcPasswordField-D5Td9dcg.cjs → NcPasswordField-DbFsY4Md.cjs} +10 -6
- package/dist/chunks/NcPasswordField-DbFsY4Md.cjs.map +1 -0
- package/dist/chunks/{NcPopover-MxwUgZu1.cjs → NcPopover-BKlH1mbx.cjs} +12 -13
- package/dist/chunks/NcPopover-BKlH1mbx.cjs.map +1 -0
- package/dist/chunks/{NcPopover-DzYbNu-I.mjs → NcPopover-DFCPlZpS.mjs} +12 -13
- package/dist/chunks/NcPopover-DFCPlZpS.mjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-BXztrC3l.cjs → NcRelatedResourcesPanel-BlasfRyj.cjs} +8 -3
- package/dist/chunks/NcRelatedResourcesPanel-BlasfRyj.cjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-DfYwqMxA.mjs → NcRelatedResourcesPanel-D1wjzlCt.mjs} +8 -3
- package/dist/chunks/NcRelatedResourcesPanel-D1wjzlCt.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-DS0VWcxG.mjs → NcRichContenteditable-BGdgK6Rt.mjs} +20 -20
- package/dist/chunks/NcRichContenteditable-BGdgK6Rt.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-fuOTy1W6.cjs → NcRichContenteditable-DVD649BN.cjs} +20 -20
- package/dist/chunks/NcRichContenteditable-DVD649BN.cjs.map +1 -0
- package/dist/chunks/{NcRichText-B1WT1pJp.cjs → NcRichText-CnnsKa8W.cjs} +28 -41
- package/dist/chunks/NcRichText-CnnsKa8W.cjs.map +1 -0
- package/dist/chunks/{NcRichText-DA8kGDfO.mjs → NcRichText-LKapJOAf.mjs} +29 -42
- package/dist/chunks/NcRichText-LKapJOAf.mjs.map +1 -0
- package/dist/chunks/{NcSelect-COvOHnPx.mjs → NcSelect-BvpEfjtz.mjs} +2 -2
- package/dist/chunks/{NcSelect-COvOHnPx.mjs.map → NcSelect-BvpEfjtz.mjs.map} +1 -1
- package/dist/chunks/{NcSelect-B7KNWVHM.cjs → NcSelect-Cr_CFqNk.cjs} +2 -2
- package/dist/chunks/{NcSelect-B7KNWVHM.cjs.map → NcSelect-Cr_CFqNk.cjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-BBHWY-yn.cjs → NcSelectTags-BxJEJZ0W.cjs} +2 -2
- package/dist/chunks/{NcSelectTags-BBHWY-yn.cjs.map → NcSelectTags-BxJEJZ0W.cjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-CF2Cot8w.mjs → NcSelectTags-yVos6fB8.mjs} +2 -2
- package/dist/chunks/{NcSelectTags-CF2Cot8w.mjs.map → NcSelectTags-yVos6fB8.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsInputText-CeXJLtte.mjs → NcSettingsInputText-DzjW5iHT.mjs} +1 -1
- package/dist/chunks/{NcSettingsInputText-CeXJLtte.mjs.map → NcSettingsInputText-DzjW5iHT.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsInputText-CxQDdc64.cjs → NcSettingsInputText-GL0a7etX.cjs} +1 -1
- package/dist/chunks/{NcSettingsInputText-CxQDdc64.cjs.map → NcSettingsInputText-GL0a7etX.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-DHX2Y1Ed.mjs → NcSettingsSection-BXxHFEGz.mjs} +1 -1
- package/dist/chunks/{NcSettingsSection-DHX2Y1Ed.mjs.map → NcSettingsSection-BXxHFEGz.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-DFNuk8_l.cjs → NcSettingsSection-CJYVADt2.cjs} +1 -1
- package/dist/chunks/{NcSettingsSection-DFNuk8_l.cjs.map → NcSettingsSection-CJYVADt2.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-DMPDJo9p.cjs → NcSettingsSelectGroup-BTnOlySM.cjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-DMPDJo9p.cjs.map → NcSettingsSelectGroup-BTnOlySM.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-BdBSXdjz.mjs → NcSettingsSelectGroup-BiI2D550.mjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-BdBSXdjz.mjs.map → NcSettingsSelectGroup-BiI2D550.mjs.map} +1 -1
- package/dist/chunks/{NcTextField-BUAXFTZf.cjs → NcTextField-BKXPIe0I.cjs} +8 -4
- package/dist/chunks/NcTextField-BKXPIe0I.cjs.map +1 -0
- package/dist/chunks/{NcTextField-gOk0FWcs.mjs → NcTextField-CIiNGo2q.mjs} +8 -4
- package/dist/chunks/NcTextField-CIiNGo2q.mjs.map +1 -0
- package/dist/chunks/{NcTimezonePicker-BThg06Qu.mjs → NcTimezonePicker-B5lkrpg4.mjs} +2 -2
- package/dist/chunks/{NcTimezonePicker-BThg06Qu.mjs.map → NcTimezonePicker-B5lkrpg4.mjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-BvdhhPdA.cjs → NcTimezonePicker-CouwhWKh.cjs} +2 -2
- package/dist/chunks/{NcTimezonePicker-BvdhhPdA.cjs.map → NcTimezonePicker-CouwhWKh.cjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-DCy2g6yy.mjs → NcUserBubble-7svwYkFv.mjs} +5 -5
- package/dist/chunks/{NcUserBubble-DCy2g6yy.mjs.map → NcUserBubble-7svwYkFv.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-DgsM0rzH.cjs → NcUserBubble-CT8n4fXf.cjs} +5 -5
- package/dist/chunks/{NcUserBubble-DgsM0rzH.cjs.map → NcUserBubble-CT8n4fXf.cjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-CChMQi6E.mjs → NcUserStatusIcon-BRDxSfqh.mjs} +1 -1
- package/dist/chunks/{NcUserStatusIcon-CChMQi6E.mjs.map → NcUserStatusIcon-BRDxSfqh.mjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-BKwkHHPs.cjs → NcUserStatusIcon-CRX6G1lZ.cjs} +1 -1
- package/dist/chunks/{NcUserStatusIcon-BKwkHHPs.cjs.map → NcUserStatusIcon-CRX6G1lZ.cjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-B1fKsMww.cjs → ScopeComponent-DumACiuv.cjs} +1 -1
- package/dist/chunks/{ScopeComponent-B1fKsMww.cjs.map → ScopeComponent-DumACiuv.cjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-9cgy2zGu.mjs → ScopeComponent-l9iK4gT7.mjs} +1 -1
- package/dist/chunks/{ScopeComponent-9cgy2zGu.mjs.map → ScopeComponent-l9iK4gT7.mjs.map} +1 -1
- package/dist/chunks/_l10n-BFZBMn-A.mjs +130 -0
- package/dist/chunks/_l10n-BFZBMn-A.mjs.map +1 -0
- package/dist/chunks/_l10n-CUjmuQOi.cjs +129 -0
- package/dist/chunks/{_l10n-ICucobx3.cjs.map → _l10n-CUjmuQOi.cjs.map} +1 -1
- package/dist/chunks/{index-bI_wyL5-.cjs → index-BiECbTbJ.cjs} +3 -4
- package/dist/chunks/index-BiECbTbJ.cjs.map +1 -0
- package/dist/chunks/{index-bjwozrEX.mjs → index-G8WQDZ8G.mjs} +3 -4
- package/dist/chunks/index-G8WQDZ8G.mjs.map +1 -0
- package/dist/chunks/{referencePickerModal-C3zq9N4N.cjs → referencePickerModal-C81hzdRI.cjs} +8 -8
- package/dist/chunks/referencePickerModal-C81hzdRI.cjs.map +1 -0
- package/dist/chunks/{referencePickerModal-CwmjjIO7.mjs → referencePickerModal-O217yxI1.mjs} +8 -8
- package/dist/chunks/referencePickerModal-O217yxI1.mjs.map +1 -0
- package/dist/chunks/{usernameToColor-DNmwg81-.mjs → usernameToColor-D4cWttCX.mjs} +1 -1
- package/dist/chunks/{usernameToColor-DNmwg81-.mjs.map → usernameToColor-D4cWttCX.mjs.map} +1 -1
- package/dist/chunks/{usernameToColor-CRPbtFBh.cjs → usernameToColor-D_kVgtXG.cjs} +1 -1
- package/dist/chunks/{usernameToColor-CRPbtFBh.cjs.map → usernameToColor-D_kVgtXG.cjs.map} +1 -1
- package/dist/composables/useFormatDateTime.d.ts +0 -1
- package/dist/composables/useIsDarkTheme/index.d.ts +0 -1
- package/dist/functions/dialog/index.d.ts +0 -1
- package/dist/index.cjs +51 -51
- package/dist/index.mjs +54 -54
- package/dist/plugin.d.ts +0 -1
- package/package.json +28 -11
- package/dist/assets/NcDateTimePickerNative-CwDQUAiQ.css +0 -47
- package/dist/assets/NcRichText-BlRmdWCX.css +0 -412
- package/dist/chunks/Linkify-BtgR-dXX.mjs +0 -14
- package/dist/chunks/Linkify-BtgR-dXX.mjs.map +0 -1
- package/dist/chunks/Linkify-yeOn5L6T.cjs +0 -15
- package/dist/chunks/Linkify-yeOn5L6T.cjs.map +0 -1
- package/dist/chunks/NcActionRadio-Dl6W62Vm.mjs.map +0 -1
- package/dist/chunks/NcActionRadio-vHwjWOHS.cjs.map +0 -1
- package/dist/chunks/NcActionTextEditable-97R7dFen.cjs.map +0 -1
- package/dist/chunks/NcActionTextEditable-DZCFtqIP.mjs.map +0 -1
- package/dist/chunks/NcAppContent-BhXzPGUR.cjs.map +0 -1
- package/dist/chunks/NcAppContent-BuY1ebnE.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationItem-C8Qq4tF5.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationItem-boljzMEm.cjs.map +0 -1
- package/dist/chunks/NcAvatar-CT6DLUhQ.mjs.map +0 -1
- package/dist/chunks/NcAvatar-D4E0ptkW.cjs.map +0 -1
- package/dist/chunks/NcColorPicker-CODhE5KL.mjs.map +0 -1
- package/dist/chunks/NcColorPicker-rWet3ND8.cjs.map +0 -1
- package/dist/chunks/NcEmojiPicker-CUVGh_eA.mjs.map +0 -1
- package/dist/chunks/NcEmojiPicker-DrJqoYXz.cjs.map +0 -1
- package/dist/chunks/NcHeaderMenu-CzS2doDR.cjs.map +0 -1
- package/dist/chunks/NcHeaderMenu-vLqcJ-_w.mjs.map +0 -1
- package/dist/chunks/NcInputField-CbBdbdE8.cjs.map +0 -1
- package/dist/chunks/NcInputField-ixTTHy3h.mjs.map +0 -1
- package/dist/chunks/NcPasswordField-CZ94k5WH.mjs.map +0 -1
- package/dist/chunks/NcPasswordField-D5Td9dcg.cjs.map +0 -1
- package/dist/chunks/NcPopover-DzYbNu-I.mjs.map +0 -1
- package/dist/chunks/NcPopover-MxwUgZu1.cjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-BXztrC3l.cjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-DfYwqMxA.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-DS0VWcxG.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-fuOTy1W6.cjs.map +0 -1
- package/dist/chunks/NcRichText-B1WT1pJp.cjs.map +0 -1
- package/dist/chunks/NcRichText-DA8kGDfO.mjs.map +0 -1
- package/dist/chunks/NcTextField-BUAXFTZf.cjs.map +0 -1
- package/dist/chunks/NcTextField-gOk0FWcs.mjs.map +0 -1
- package/dist/chunks/_l10n-C6OUA0Ge.mjs +0 -130
- package/dist/chunks/_l10n-C6OUA0Ge.mjs.map +0 -1
- package/dist/chunks/_l10n-ICucobx3.cjs +0 -129
- package/dist/chunks/index-bI_wyL5-.cjs.map +0 -1
- package/dist/chunks/index-bjwozrEX.mjs.map +0 -1
- package/dist/chunks/referencePickerModal-C3zq9N4N.cjs.map +0 -1
- package/dist/chunks/referencePickerModal-CwmjjIO7.mjs.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
require('../assets/NcModal-
|
|
1
|
+
require('../assets/NcModal-ZfCDJxwd.css');
|
|
2
2
|
"use strict";
|
|
3
|
-
const ScopeComponent = require("../chunks/ScopeComponent-
|
|
3
|
+
const ScopeComponent = require("../chunks/ScopeComponent-DumACiuv.cjs");
|
|
4
4
|
const core = require("@vueuse/core");
|
|
5
5
|
const focusTrap$1 = require("focus-trap");
|
|
6
6
|
const Vue = require("vue");
|
|
7
7
|
const focusTrap = require("../chunks/focusTrap-EeXFmjdI.cjs");
|
|
8
|
-
const _l10n = require("../chunks/_l10n-
|
|
8
|
+
const _l10n = require("../chunks/_l10n-CUjmuQOi.cjs");
|
|
9
9
|
const GenRandomId = require("../chunks/GenRandomId-BQDud3d4.cjs");
|
|
10
|
-
const NcActions = require("../chunks/NcActions-
|
|
10
|
+
const NcActions = require("../chunks/NcActions-B9hBFogn.cjs");
|
|
11
11
|
const Components_NcButton = require("./NcButton.cjs");
|
|
12
12
|
require("../Directives/Tooltip.cjs");
|
|
13
13
|
const ChevronLeft = require("../chunks/ChevronLeft-CAiEPWc5.cjs");
|
|
@@ -116,7 +116,7 @@ var __component__$1 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
|
116
116
|
null
|
|
117
117
|
);
|
|
118
118
|
const Play = __component__$1.exports;
|
|
119
|
-
const
|
|
119
|
+
const __default__ = {
|
|
120
120
|
name: "NcModal",
|
|
121
121
|
components: {
|
|
122
122
|
NcActions: NcActions.NcActions,
|
|
@@ -182,11 +182,19 @@ const _sfc_main = {
|
|
|
182
182
|
},
|
|
183
183
|
/**
|
|
184
184
|
* Enable swipe between slides
|
|
185
|
+
* @deprecated Will be removed in next version - use `disableSwipe` instead
|
|
185
186
|
*/
|
|
186
187
|
enableSwipe: {
|
|
187
188
|
type: Boolean,
|
|
188
189
|
default: true
|
|
189
190
|
},
|
|
191
|
+
/**
|
|
192
|
+
* Disable swipe between slides
|
|
193
|
+
*/
|
|
194
|
+
disableSwipe: {
|
|
195
|
+
type: Boolean,
|
|
196
|
+
default: false
|
|
197
|
+
},
|
|
190
198
|
spreadNavigation: {
|
|
191
199
|
type: Boolean,
|
|
192
200
|
default: false
|
|
@@ -220,8 +228,8 @@ const _sfc_main = {
|
|
|
220
228
|
default: true
|
|
221
229
|
},
|
|
222
230
|
/**
|
|
223
|
-
* Makes the modal backdrop opaque if true
|
|
224
|
-
* Will be overwritten if some buttons are shown outside
|
|
231
|
+
* Makes the modal backdrop opaque if true.
|
|
232
|
+
* Will be overwritten if some buttons are shown outside.
|
|
225
233
|
*/
|
|
226
234
|
dark: {
|
|
227
235
|
type: Boolean,
|
|
@@ -298,7 +306,6 @@ const _sfc_main = {
|
|
|
298
306
|
mc: null,
|
|
299
307
|
playing: false,
|
|
300
308
|
slideshowTimeout: null,
|
|
301
|
-
iconSize: 24,
|
|
302
309
|
focusTrap: null,
|
|
303
310
|
externalFocusTrapStack: [],
|
|
304
311
|
randId: GenRandomId.GenRandomId(),
|
|
@@ -306,6 +313,24 @@ const _sfc_main = {
|
|
|
306
313
|
};
|
|
307
314
|
},
|
|
308
315
|
computed: {
|
|
316
|
+
/**
|
|
317
|
+
* slide show delay to set to CSS
|
|
318
|
+
*/
|
|
319
|
+
cssSlideshowDelay() {
|
|
320
|
+
return `${this.slideshowDelay}ms`;
|
|
321
|
+
},
|
|
322
|
+
/**
|
|
323
|
+
* True if there are any buttons shown on the backdrop or a name (for accessibility)
|
|
324
|
+
*/
|
|
325
|
+
forceDarkBackdrop() {
|
|
326
|
+
return this.canClose && !this.closeButtonContained || this.hasNext || this.hasPrevious || this.modalName !== "" || Boolean(this.$slots.actions);
|
|
327
|
+
},
|
|
328
|
+
/**
|
|
329
|
+
* Trimmed modal name
|
|
330
|
+
*/
|
|
331
|
+
modalName() {
|
|
332
|
+
return this.name.trim();
|
|
333
|
+
},
|
|
309
334
|
/**
|
|
310
335
|
* ID of the element to label the modal
|
|
311
336
|
*/
|
|
@@ -321,12 +346,6 @@ const _sfc_main = {
|
|
|
321
346
|
playPauseName() {
|
|
322
347
|
return this.playing ? _l10n.t("Pause slideshow") : _l10n.t("Start slideshow");
|
|
323
348
|
},
|
|
324
|
-
cssVariables() {
|
|
325
|
-
return {
|
|
326
|
-
"--slideshow-duration": this.slideshowDelay + "ms",
|
|
327
|
-
"--icon-size": this.iconSize + "px"
|
|
328
|
-
};
|
|
329
|
-
},
|
|
330
349
|
closeButtonAriaLabel() {
|
|
331
350
|
return _l10n.t("Close");
|
|
332
351
|
},
|
|
@@ -455,7 +474,7 @@ const _sfc_main = {
|
|
|
455
474
|
* @param {import('@vueuse/core').SwipeDirection} direction Swipe direction
|
|
456
475
|
*/
|
|
457
476
|
handleSwipe(e, direction) {
|
|
458
|
-
if (this.enableSwipe) {
|
|
477
|
+
if (this.enableSwipe && !this.disableSwipe) {
|
|
459
478
|
if (direction === "left") {
|
|
460
479
|
this.next(e);
|
|
461
480
|
} else if (direction === "right") {
|
|
@@ -545,14 +564,25 @@ const _sfc_main = {
|
|
|
545
564
|
}
|
|
546
565
|
}
|
|
547
566
|
};
|
|
567
|
+
const __injectCSSVars__ = () => {
|
|
568
|
+
Vue.useCssVars((_vm, _setup) => ({
|
|
569
|
+
"8ad040f8": _vm.cssSlideshowDelay
|
|
570
|
+
}));
|
|
571
|
+
};
|
|
572
|
+
const __setup__ = __default__.setup;
|
|
573
|
+
__default__.setup = __setup__ ? (props, ctx) => {
|
|
574
|
+
__injectCSSVars__();
|
|
575
|
+
return __setup__(props, ctx);
|
|
576
|
+
} : __injectCSSVars__;
|
|
577
|
+
const _sfc_main = __default__;
|
|
548
578
|
var _sfc_render = function render3() {
|
|
549
579
|
var _vm = this, _c = _vm._self._c;
|
|
550
580
|
return _c("transition", { attrs: { "name": "fade", "appear": "" }, on: { "after-enter": _vm.useFocusTrap, "before-leave": _vm.clearFocusTrap } }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.showModal, expression: "showModal" }], ref: "mask", staticClass: "modal-mask", class: {
|
|
551
|
-
"modal-mask--opaque": _vm.dark ||
|
|
581
|
+
"modal-mask--opaque": _vm.dark || _vm.forceDarkBackdrop,
|
|
552
582
|
"modal-mask--light": _vm.lightBackdrop
|
|
553
|
-
},
|
|
554
|
-
return [_c("Close", { attrs: { "size":
|
|
555
|
-
}, proxy: true }], null, false,
|
|
583
|
+
}, attrs: { "role": "dialog", "aria-modal": "true", "aria-labelledby": _vm.modalLabelId, "aria-describedby": "modal-description-" + _vm.randId, "tabindex": "-1" } }, [_c("transition", { attrs: { "name": "fade-visibility", "appear": "" } }, [_c("div", { staticClass: "modal-header", attrs: { "data-theme-light": _vm.lightBackdrop, "data-theme-dark": !_vm.lightBackdrop } }, [_vm.modalName ? _c("h2", { staticClass: "modal-header__name", attrs: { "id": "modal-name-" + _vm.randId } }, [_vm._v(" " + _vm._s(_vm.modalName) + " ")]) : _vm._e(), _c("div", { staticClass: "icons-menu" }, [_vm.hasNext && _vm.enableSlideshow ? _c("button", { directives: [{ name: "tooltip", rawName: "v-tooltip.auto", value: _vm.playPauseName, expression: "playPauseName", modifiers: { "auto": true } }], staticClass: "play-pause-icons", class: { "play-pause-icons--paused": _vm.slideshowPaused }, attrs: { "type": "button" }, on: { "click": _vm.togglePlayPause } }, [!_vm.playing ? _c("Play", { staticClass: "play-pause-icons__play", attrs: { "size": 20 } }) : _c("Pause", { staticClass: "play-pause-icons__pause", attrs: { "size": 20 } }), _c("span", { staticClass: "hidden-visually" }, [_vm._v(" " + _vm._s(_vm.playPauseName) + " ")]), _vm.playing ? _c("svg", { staticClass: "progress-ring", attrs: { "height": "50", "width": "50" } }, [_c("circle", { staticClass: "progress-ring__circle", attrs: { "stroke": "white", "stroke-width": "2", "fill": "transparent", "r": "15", "cx": "25", "cy": "25" } })]) : _vm._e()], 1) : _vm._e(), _c("NcActions", { staticClass: "header-actions", attrs: { "inline": _vm.inlineActions } }, [_vm._t("actions")], 2), _vm.canClose && !_vm.closeButtonContained ? _c("NcButton", { staticClass: "header-close", attrs: { "aria-label": _vm.closeButtonAriaLabel, "type": "tertiary" }, on: { "click": _vm.close }, scopedSlots: _vm._u([{ key: "icon", fn: function() {
|
|
584
|
+
return [_c("Close", { attrs: { "size": 20 } })];
|
|
585
|
+
}, proxy: true }], null, false, 2121748766) }) : _vm._e()], 1)])]), _c("transition", { attrs: { "name": _vm.modalTransitionName, "appear": "" } }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.showModal, expression: "showModal" }], staticClass: "modal-wrapper", class: [
|
|
556
586
|
`modal-wrapper--${_vm.size}`,
|
|
557
587
|
{ "modal-wrapper--spread-navigation": _vm.spreadNavigation }
|
|
558
588
|
], on: { "mousedown": function($event) {
|
|
@@ -573,7 +603,7 @@ var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
|
573
603
|
_sfc_staticRenderFns,
|
|
574
604
|
false,
|
|
575
605
|
null,
|
|
576
|
-
"
|
|
606
|
+
"d5334a44"
|
|
577
607
|
);
|
|
578
608
|
const NcModal = __component__.exports;
|
|
579
609
|
ScopeComponent.ScopeComponent(NcModal);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NcModal.cjs","sources":["../../src/utils/Timer.js","../../node_modules/vue-material-design-icons/Pause.vue","../../node_modules/vue-material-design-icons/Play.vue","../../src/components/NcModal/NcModal.vue","../../src/components/NcModal/index.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * @param {Function} callback The function to call\n * @param {number} delay The time to wait\n */\nexport default function timer(callback, delay) {\n\tlet id\n\tlet started\n\tlet remaining = delay\n\tlet running\n\n\tthis.start = function() {\n\t\trunning = true\n\t\tstarted = new Date()\n\t\tid = setTimeout(callback, remaining)\n\t}\n\n\tthis.pause = function() {\n\t\trunning = false\n\t\tclearTimeout(id)\n\t\tremaining -= new Date() - started\n\t}\n\n\tthis.clear = function() {\n\t\trunning = false\n\t\tclearTimeout(id)\n\t\tremaining = 0\n\t}\n\n\tthis.getTimeLeft = function() {\n\t\tif (running) {\n\t\t\tthis.pause()\n\t\t\tthis.start()\n\t\t}\n\n\t\treturn remaining\n\t}\n\n\tthis.getStateRunning = function() {\n\t\treturn running\n\t}\n\n\tthis.start()\n}\n","<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : 'true'\"\n :aria-label=\"title\"\n class=\"material-design-icon pause-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M14,19H18V5H14M6,19H10V5H6V19Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"PauseIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : 'true'\"\n :aria-label=\"title\"\n class=\"material-design-icon play-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M8,5.14V19.14L19,12.14L8,5.14Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"PlayIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nFor showing the modal you can use either `:show.sync=\"showModal\"` or `v-if` on the `NcModal`,\ndepending on whether you require the Modal to stay within the DOM or not. Do not mix both, as this will break the out transition animation.\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"showModal\">Show Modal</NcButton>\n\t\t<NcModal\n\t\t\t:show.sync=\"modal\"\n\t\t\t@close=\"closeModal\"\n\t\t\tsize=\"small\"\n\t\t\tname=\"Name\"\n\t\t\t:outTransition=\"true\"\n\t\t\t:hasNext=\"true\"\n\t\t\t:hasPrevious=\"true\">\n\t\t\t<template #actions>\n\t\t\t\t<NcActionCaption name=\"Some action\" />\n\t\t\t</template>\n\t\t\t<div class=\"modal__content\">Hello world</div>\n\t\t</NcModal>\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tmodal: false\n\t\t}\n\t},\n\tmethods: {\n\t\tshowModal() {\n\t\t\tthis.modal = true\n\t\t},\n\t\tcloseModal() {\n\t\t\tthis.modal = false\n\t\t}\n\t}\n}\n</script>\n<style scoped>\n.modal__content {\n\tmargin: 50px;\n\ttext-align: center;\n}\n</style>\n```\n\n### Modal with more properties\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"showModal\">Show Modal with fields</NcButton>\n\t\t<NcModal\n\t\t\tv-if=\"modal\"\n\t\t\tref=\"modalRef\"\n\t\t\t@close=\"closeModal\"\n\t\t\tname=\"Name inside modal\">\n\t\t\t<div class=\"modal__content\">\n\t\t\t\t<h2>Please enter your name</h2>\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t<NcTextField label=\"First Name\" :value.sync=\"firstName\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t<NcTextField label=\"Last Name\" :value.sync=\"lastName\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t<label for=\"pizza\">What is the most important pizza item?</label>\n\t\t\t\t\t<NcSelect input-id=\"pizza\" :options=\"['Cheese', 'Tomatoes', 'Pineapples']\" v-model=\"pizza\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t<label for=\"emoji-trigger\">Select your favorite emoji</label>\n\t\t\t\t\t<NcEmojiPicker v-if=\"modalRef\" :container=\"modalRef.$el\">\n\t\t\t\t\t\t<NcButton id=\"emoji-trigger\">Select</NcButton>\n\t\t\t\t\t</NcEmojiPicker>\n\t\t\t\t</div>\n\n\t\t\t\t<NcButton\n\t\t\t\t\t:disabled=\"!firstName || !lastName || !pizza\"\n\t\t\t\t\t@click=\"closeModal\"\n\t\t\t\t\ttype=\"primary\">\n\t\t\t\t\tSubmit\n\t\t\t\t</NcButton>\n\t\t\t</div>\n\t\t</NcModal>\n\t</div>\n</template>\n<script>\nimport { ref } from 'vue'\n\nexport default {\n\tsetup() {\n\t\treturn {\n\t\t\tmodalRef: ref(null),\n\t\t}\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tmodal: false,\n\t\t\tfirstName: '',\n\t\t\tlastName: '',\n\t\t\tpizza: [],\n\t\t}\n\t},\n\tmethods: {\n\t\tshowModal() {\n\t\t\tthis.firstName = ''\n\t\t\tthis.lastName = ''\n\t\t\tthis.modal = true\n\t\t},\n\t\tcloseModal() {\n\t\t\tthis.modal = false\n\t\t}\n\t}\n}\n</script>\n<style scoped>\n.modal__content {\n\tmargin: 50px;\n}\n\n.modal__content h2 {\n\ttext-align: center;\n}\n\n.form-group {\n\tmargin: calc(var(--default-grid-baseline) * 4) 0;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: flex-start;\n}\n</style>\n```\n\n### Usage of popover in modal\n\n* Set container property to .modal-mask to inject popover context of the modal:\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"showModal\">Show Modal</NcButton>\n\t\t<NcModal v-if=\"modal\" @close=\"closeModal\" size=\"small\" class=\"emoji-modal\">\n\t\t\t<NcEmojiPicker container=\".emoji-modal\" @select=\"select\">\n\t\t\t\t<NcButton>Select emoji {{ emoji }}</NcButton>\n\t\t\t</NcEmojiPicker>\n\t\t</NcModal>\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\temoji: '😛',\n\t\t\tmodal: false\n\t\t}\n\t},\n\tmethods: {\n\t\tshowModal() {\n\t\t\tthis.modal = true\n\t\t},\n\t\tcloseModal() {\n\t\t\tthis.modal = false\n\t\t},\n\t\tselect(emoji) {\n\t\t\tthis.emoji = emoji\n\t\t},\n\t},\n}\n</script>\n<style scoped>\n.modal__content {\n\tmargin: 50px;\n\ttext-align: center;\n}\n</style>\n```\n</docs>\n\n<template>\n\t<transition name=\"fade\"\n\t\tappear\n\t\t@after-enter=\"useFocusTrap\"\n\t\t@before-leave=\"clearFocusTrap\">\n\t\t<div v-show=\"showModal\"\n\t\t\tref=\"mask\"\n\t\t\tclass=\"modal-mask\"\n\t\t\t:class=\"{\n\t\t\t\t'modal-mask--opaque': dark || !closeButtonContained || hasPrevious || hasNext,\n\t\t\t\t'modal-mask--light': lightBackdrop,\n\t\t\t}\"\n\t\t\t:style=\"cssVariables\"\n\t\t\trole=\"dialog\"\n\t\t\taria-modal=\"true\"\n\t\t\t:aria-labelledby=\"modalLabelId\"\n\t\t\t:aria-describedby=\"'modal-description-' + randId\"\n\t\t\ttabindex=\"-1\">\n\t\t\t<!-- Header -->\n\t\t\t<transition name=\"fade-visibility\" appear>\n\t\t\t\t<div class=\"modal-header\"\n\t\t\t\t\t:data-theme-light=\"lightBackdrop\"\n\t\t\t\t\t:data-theme-dark=\"!lightBackdrop\">\n\t\t\t\t\t<h2 v-if=\"name.trim() !== ''\"\n\t\t\t\t\t\t:id=\"'modal-name-' + randId\"\n\t\t\t\t\t\tclass=\"modal-header__name\">\n\t\t\t\t\t\t{{ name }}\n\t\t\t\t\t</h2>\n\t\t\t\t\t<div class=\"icons-menu\">\n\t\t\t\t\t\t<!-- Play-pause toggle -->\n\t\t\t\t\t\t<button v-if=\"hasNext && enableSlideshow\"\n\t\t\t\t\t\t\tv-tooltip.auto=\"playPauseName\"\n\t\t\t\t\t\t\t:class=\"{ 'play-pause-icons--paused': slideshowPaused }\"\n\t\t\t\t\t\t\tclass=\"play-pause-icons\"\n\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t@click=\"togglePlayPause\">\n\t\t\t\t\t\t\t<!-- Play/pause icons -->\n\t\t\t\t\t\t\t<Play v-if=\"!playing\"\n\t\t\t\t\t\t\t\t:size=\"iconSize\"\n\t\t\t\t\t\t\t\tclass=\"play-pause-icons__play\" />\n\t\t\t\t\t\t\t<Pause v-else\n\t\t\t\t\t\t\t\t:size=\"iconSize\"\n\t\t\t\t\t\t\t\tclass=\"play-pause-icons__pause\" />\n\t\t\t\t\t\t\t<span class=\"hidden-visually\">\n\t\t\t\t\t\t\t\t{{ playPauseName }}\n\t\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t\t<!-- Progress circle, css animated -->\n\t\t\t\t\t\t\t<svg v-if=\"playing\"\n\t\t\t\t\t\t\t\tclass=\"progress-ring\"\n\t\t\t\t\t\t\t\theight=\"50\"\n\t\t\t\t\t\t\t\twidth=\"50\">\n\t\t\t\t\t\t\t\t<circle class=\"progress-ring__circle\"\n\t\t\t\t\t\t\t\t\tstroke=\"white\"\n\t\t\t\t\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\t\t\t\t\tfill=\"transparent\"\n\t\t\t\t\t\t\t\t\tr=\"15\"\n\t\t\t\t\t\t\t\t\tcx=\"25\"\n\t\t\t\t\t\t\t\t\tcy=\"25\" />\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t</button>\n\n\t\t\t\t\t\t<!-- Actions menu -->\n\t\t\t\t\t\t<NcActions class=\"header-actions\" :inline=\"inlineActions\">\n\t\t\t\t\t\t\t<!-- @slot Actions to show (one or more NcAction* components) -->\n\t\t\t\t\t\t\t<slot name=\"actions\" />\n\t\t\t\t\t\t</NcActions>\n\n\t\t\t\t\t\t<!-- Close modal -->\n\t\t\t\t\t\t<NcButton v-if=\"canClose && !closeButtonContained\"\n\t\t\t\t\t\t\t:aria-label=\"closeButtonAriaLabel\"\n\t\t\t\t\t\t\tclass=\"header-close\"\n\t\t\t\t\t\t\ttype=\"tertiary\"\n\t\t\t\t\t\t\t@click=\"close\">\n\t\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t\t<Close :size=\"iconSize\" />\n\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</transition>\n\n\t\t\t<!-- Content wrapper -->\n\t\t\t<transition :name=\"modalTransitionName\" appear>\n\t\t\t\t<div v-show=\"showModal\"\n\t\t\t\t\t:class=\"[\n\t\t\t\t\t\t`modal-wrapper--${size}`,\n\t\t\t\t\t\t{ 'modal-wrapper--spread-navigation': spreadNavigation },\n\t\t\t\t\t]\"\n\t\t\t\t\tclass=\"modal-wrapper\"\n\t\t\t\t\t@mousedown.self=\"handleClickModalWrapper\">\n\t\t\t\t\t<!-- Navigation button -->\n\t\t\t\t\t<transition name=\"fade-visibility\" appear>\n\t\t\t\t\t\t<NcButton v-show=\"hasPrevious\"\n\t\t\t\t\t\t\ttype=\"tertiary-no-background\"\n\t\t\t\t\t\t\tclass=\"prev\"\n\t\t\t\t\t\t\t:aria-label=\"prevButtonAriaLabel\"\n\t\t\t\t\t\t\t@click=\"previous\">\n\t\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t\t<ChevronLeft :size=\"40\" />\n\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t</transition>\n\n\t\t\t\t\t<!-- Content -->\n\t\t\t\t\t<div :id=\"'modal-description-' + randId\" class=\"modal-container\">\n\t\t\t\t\t\t<div class=\"modal-container__content\">\n\t\t\t\t\t\t\t<!-- @slot Modal content to render -->\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<!-- Close modal -->\n\t\t\t\t\t\t<NcButton v-if=\"canClose && closeButtonContained\"\n\t\t\t\t\t\t\ttype=\"tertiary\"\n\t\t\t\t\t\t\tclass=\"modal-container__close\"\n\t\t\t\t\t\t\t:aria-label=\"closeButtonAriaLabel\"\n\t\t\t\t\t\t\t@click=\"close\">\n\t\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t\t<Close :size=\"20\" />\n\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Navigation button -->\n\t\t\t\t\t<transition name=\"fade-visibility\" appear>\n\t\t\t\t\t\t<NcButton v-show=\"hasNext\"\n\t\t\t\t\t\t\ttype=\"tertiary-no-background\"\n\t\t\t\t\t\t\tclass=\"next\"\n\t\t\t\t\t\t\t:aria-label=\"nextButtonAriaLabel\"\n\t\t\t\t\t\t\t@click=\"next\">\n\t\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t\t<ChevronRight :size=\"40\" />\n\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t</transition>\n\t\t\t\t</div>\n\t\t\t</transition>\n\t\t</div>\n\t</transition>\n</template>\n\n<script>\nimport { useSwipe } from '@vueuse/core'\nimport { createFocusTrap } from 'focus-trap'\nimport Vue from 'vue'\n\nimport { getTrapStack } from '../../utils/focusTrap.js'\nimport { t } from '../../l10n.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport NcActions from '../NcActions/index.js'\nimport NcButton from '../../components/NcButton/index.js'\nimport Timer from '../../utils/Timer.js'\nimport Tooltip from '../../directives/Tooltip/index.js'\n\nimport ChevronLeft from 'vue-material-design-icons/ChevronLeft.vue'\nimport ChevronRight from 'vue-material-design-icons/ChevronRight.vue'\nimport Close from 'vue-material-design-icons/Close.vue'\nimport Pause from 'vue-material-design-icons/Pause.vue'\nimport Play from 'vue-material-design-icons/Play.vue'\n\nexport default {\n\tname: 'NcModal',\n\n\tcomponents: {\n\t\tNcActions,\n\t\tChevronLeft,\n\t\tChevronRight,\n\t\tClose,\n\t\tPause,\n\t\tPlay,\n\t\tNcButton,\n\t},\n\n\tdirectives: {\n\t\ttooltip: Tooltip,\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Name to be shown with the modal\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Declare if a previous slide is available\n\t\t */\n\t\thasPrevious: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Declare if a next slide is available\n\t\t */\n\t\thasNext: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Declare if hiding the modal should be animated\n\t\t */\n\t\toutTransition: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Declare if the slideshow functionality should be enabled\n\t\t */\n\t\tenableSlideshow: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Declare the slide interval\n\t\t */\n\t\tslideshowDelay: {\n\t\t\ttype: Number,\n\t\t\tdefault: 5000,\n\t\t},\n\t\t/**\n\t\t * Allow to pause an ongoing slideshow\n\t\t */\n\t\tslideshowPaused: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Enable swipe between slides\n\t\t */\n\t\tenableSwipe: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t\tspreadNavigation: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Defines the modal size.\n\t\t * Default is 'normal'.\n\t\t * Available are 'small', 'normal', 'large' and 'full'.\n\t\t * All sizes except 'small' change automatically to full-screen on mobile.\n\t\t */\n\t\tsize: {\n\t\t\ttype: String,\n\t\t\tdefault: 'normal',\n\t\t\tvalidator: size => {\n\t\t\t\treturn ['small', 'normal', 'large', 'full'].includes(size)\n\t\t\t},\n\t\t},\n\n\t\t/**\n\t\t * Declare if the modal can be closed\n\t\t */\n\t\tcanClose: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Close the modal if the user clicked outside the modal\n\t\t * Only relevant if `canClose` is set to true.\n\t\t */\n\t\tcloseOnClickOutside: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Makes the modal backdrop opaque if true\n\t\t * Will be overwritten if some buttons are shown outside\n\t\t */\n\t\tdark: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Set light backdrop. Makes the modal header appear light.\n\t\t */\n\t\tlightBackdrop: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Selector for the modal container, pass `null` to prevent automatic container mounting\n\t\t */\n\t\tcontainer: {\n\t\t\ttype: [String, null],\n\t\t\tdefault: 'body',\n\t\t},\n\n\t\t/**\n\t\t * Pass in false if you want the modal 'close' button to be displayed\n\t\t * outside the modal boundaries, in the top right corner of the window\n\t\t */\n\t\tcloseButtonContained: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Additional elements to add to the focus trap\n\t\t */\n\t\tadditionalTrapElements: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Display x items inline\n\t\t *\n\t\t * @see Actions component usage\n\t\t */\n\t\tinlineActions: {\n\t\t\ttype: Number,\n\t\t\tdefault: 0,\n\t\t},\n\n\t\tshow: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: undefined,\n\t\t},\n\n\t\t/**\n\t\t * Id of the element that labels the dialog (the name)\n\t\t * Not needed if the `name` prop is set, but if no name is set you need to provide the ID of an element to label the dialog for accessibility.\n\t\t */\n\t\tlabelId: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Set element to return focus to after focus trap deactivation\n\t\t *\n\t\t * @type {import('focus-trap').FocusTargetValueOrFalse}\n\t\t */\n\t\tsetReturnFocus: {\n\t\t\tdefault: undefined,\n\t\t\ttype: [HTMLElement, SVGElement, String, Boolean],\n\t\t},\n\t},\n\n\temits: [\n\t\t'previous',\n\t\t'next',\n\t\t'close',\n\t\t'update:show',\n\t],\n\n\tdata() {\n\t\treturn {\n\t\t\tmc: null,\n\t\t\tplaying: false,\n\t\t\tslideshowTimeout: null,\n\t\t\ticonSize: 24,\n\t\t\tfocusTrap: null,\n\t\t\texternalFocusTrapStack: [],\n\t\t\trandId: GenRandomId(),\n\t\t\tinternalShow: true,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * ID of the element to label the modal\n\t\t */\n\t\tmodalLabelId() {\n\t\t\treturn this.labelId || `modal-name-${this.randId}`\n\t\t},\n\n\t\tshowModal() {\n\t\t\treturn (this.show === undefined) ? this.internalShow : this.show\n\t\t},\n\t\tmodalTransitionName() {\n\t\t\treturn `modal-${this.outTransition ? 'out' : 'in'}`\n\t\t},\n\t\tplayPauseName() {\n\t\t\treturn this.playing ? t('Pause slideshow') : t('Start slideshow')\n\t\t},\n\t\tcssVariables() {\n\t\t\treturn {\n\t\t\t\t'--slideshow-duration': this.slideshowDelay + 'ms',\n\t\t\t\t'--icon-size': this.iconSize + 'px',\n\t\t\t}\n\t\t},\n\n\t\tcloseButtonAriaLabel() {\n\t\t\treturn t('Close')\n\t\t},\n\t\tprevButtonAriaLabel() {\n\t\t\treturn t('Previous')\n\t\t},\n\t\tnextButtonAriaLabel() {\n\t\t\treturn t('Next')\n\t\t},\n\t},\n\n\twatch: {\n\t\t/**\n\t\t * Handle play/pause of an ongoing slideshow\n\t\t *\n\t\t * @param {boolean} paused is the player paused\n\t\t */\n\t\tslideshowPaused(paused) {\n\t\t\tif (this.slideshowTimeout) {\n\t\t\t\tif (paused) {\n\t\t\t\t\tthis.slideshowTimeout.pause()\n\t\t\t\t} else {\n\t\t\t\t\tthis.slideshowTimeout.start()\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tadditionalTrapElements(elements) {\n\t\t\tif (this.focusTrap) {\n\t\t\t\tconst contentContainer = this.$refs.mask\n\t\t\t\tthis.focusTrap.updateContainerElements([contentContainer, ...elements])\n\t\t\t}\n\t\t},\n\t},\n\n\tbeforeMount() {\n\t\twindow.addEventListener('keydown', this.handleKeydown)\n\t},\n\tbeforeDestroy() {\n\t\twindow.removeEventListener('keydown', this.handleKeydown)\n\t\tthis.mc.stop()\n\t},\n\tmounted() {\n\t\tif (!this.name && !this.labelId) {\n\t\t\tVue.util.warn('[NcModal] You need either set the name or set a `labelId` for accessibility.')\n\t\t}\n\n\t\t// init clear view\n\t\tthis.useFocusTrap()\n\t\tthis.mc = useSwipe(this.$refs.mask, {\n\t\t\tonSwipeEnd: this.handleSwipe,\n\t\t})\n\n\t\tif (this.container) {\n\t\t\tif (this.container === 'body') {\n\t\t\t\t// force mount the component to body\n\t\t\t\tdocument.body.insertBefore(this.$el, document.body.lastChild)\n\t\t\t} else {\n\t\t\t\tconst container = document.querySelector(this.container)\n\t\t\t\tcontainer.appendChild(this.$el)\n\t\t\t}\n\t\t}\n\t},\n\tdestroyed() {\n\t\tthis.clearFocusTrap()\n\t\tthis.$el.remove()\n\t},\n\n\tmethods: {\n\t\tt,\n\n\t\t// Events emitters\n\t\tprevious(event) {\n\t\t\t// do not send the event if nothing is available\n\t\t\tif (this.hasPrevious) {\n\t\t\t\t// if data is set, then it's a user mouse event\n\t\t\t\t// and not the slideshow handler, therefore\n\t\t\t\t// we reset the timer\n\t\t\t\tif (event) {\n\t\t\t\t\tthis.resetSlideshow()\n\t\t\t\t}\n\t\t\t\tthis.$emit('previous', event)\n\t\t\t}\n\t\t},\n\t\tnext(event) {\n\t\t\t// do not send the event if nothing is available\n\t\t\tif (this.hasNext) {\n\t\t\t\t// if data is set, then it's a mouse event\n\t\t\t\t// and not the slideshow handler, therefore\n\t\t\t\t// we reset the timer\n\t\t\t\tif (event) {\n\t\t\t\t\tthis.resetSlideshow()\n\t\t\t\t}\n\t\t\t\tthis.$emit('next', event)\n\t\t\t}\n\t\t},\n\t\tclose(data) {\n\t\t\t// do not fire event if forbidden\n\t\t\tif (this.canClose) {\n\t\t\t\t// We set internalShow here, so the out transitions properly run before the component is destroyed\n\t\t\t\tthis.internalShow = false\n\t\t\t\tthis.$emit('update:show', false)\n\n\t\t\t\t// delay closing for animation\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t/**\n\t\t\t\t\t * Emitted when the closing animation is finished\n\t\t\t\t\t */\n\t\t\t\t\tthis.$emit('close', data)\n\t\t\t\t}, 300)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Handle click on modal wrapper\n\t\t * If `closeOnClickOutside` is set the modal will be closed\n\t\t *\n\t\t * @param {MouseEvent} event The click event\n\t\t */\n\t\thandleClickModalWrapper(event) {\n\t\t\tif (this.closeOnClickOutside) {\n\t\t\t\tthis.close(event)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @param {KeyboardEvent} event - keyboard event\n\t\t */\n\t\thandleKeydown(event) {\n\t\t\tif (event.key === 'Escape') {\n\t\t\t\tconst trapStack = getTrapStack()\n\t\t\t\t// Only close the most recent focus trap modal\n\t\t\t\tif (trapStack.length > 0 && trapStack[trapStack.length - 1] !== this.focusTrap) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\treturn this.close(event)\n\t\t\t}\n\n\t\t\tconst arrowHandlers = {\n\t\t\t\tArrowLeft: this.previous,\n\t\t\t\tArrowRight: this.next,\n\t\t\t}\n\t\t\tif (arrowHandlers[event.key]) {\n\t\t\t\t// Ignore arrow navigation, if there is a current focus outside the modal.\n\t\t\t\t// For example, when the focus is in Sidebar or NcActions' items,\n\t\t\t\t// arrow navigation should not be intercepted by modal slider\n\t\t\t\tif (document.activeElement && !this.$el.contains(document.activeElement)) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\treturn arrowHandlers[event.key](event)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * handle the swipe event\n\t\t *\n\t\t * @param {TouchEvent} e The touch event\n\t\t * @param {import('@vueuse/core').SwipeDirection} direction Swipe direction\n\t\t */\n\t\thandleSwipe(e, direction) {\n\t\t\tif (this.enableSwipe) {\n\t\t\t\tif (direction === 'left') {\n\t\t\t\t\t// swiping to left to go to the next item\n\t\t\t\t\tthis.next(e)\n\t\t\t\t} else if (direction === 'right') {\n\t\t\t\t\t// swiping to right to go back to the previous item\n\t\t\t\t\tthis.previous(e)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Toggle the slideshow state\n\t\t */\n\t\ttogglePlayPause() {\n\t\t\tthis.playing = !this.playing\n\t\t\tif (this.playing) {\n\t\t\t\tthis.handleSlideshow()\n\t\t\t} else {\n\t\t\t\tthis.clearSlideshowTimeout()\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Reset the slideshow timer and keep going if it was on\n\t\t */\n\t\tresetSlideshow() {\n\t\t\tthis.playing = !this.playing\n\t\t\tthis.clearSlideshowTimeout()\n\t\t\tthis.$nextTick(function() {\n\t\t\t\tthis.togglePlayPause()\n\t\t\t})\n\t\t},\n\n\t\t/**\n\t\t * Handle the slideshow timer and next event\n\t\t */\n\t\thandleSlideshow() {\n\t\t\tthis.playing = true\n\t\t\tif (this.hasNext) {\n\t\t\t\tthis.slideshowTimeout = new Timer(() => {\n\t\t\t\t\tthis.next()\n\t\t\t\t\tthis.handleSlideshow()\n\t\t\t\t}, this.slideshowDelay)\n\t\t\t} else {\n\t\t\t\tthis.playing = false\n\t\t\t\tthis.clearSlideshowTimeout()\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Clear slideshowTimeout if ongoing\n\t\t */\n\t\tclearSlideshowTimeout() {\n\t\t\tif (this.slideshowTimeout) {\n\t\t\t\tthis.slideshowTimeout.clear()\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Add focus trap for accessibility.\n\t\t */\n\t\tasync useFocusTrap() {\n\t\t\t// Don't do anything if the modal is hidden,\n\t\t\t// or we have a focus trap already\n\t\t\tif (!this.showModal || this.focusTrap) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tconst contentContainer = this.$refs.mask\n\t\t\t// wait until all children are mounted and available in the DOM before focusTrap can be added\n\t\t\tawait this.$nextTick()\n\n\t\t\tconst options = {\n\t\t\t\tallowOutsideClick: true,\n\t\t\t\tfallbackFocus: contentContainer,\n\t\t\t\ttrapStack: getTrapStack(),\n\t\t\t\t// Esc can be used without stop in content or additionalTrapElements where it should not deactivate modal's focus trap.\n\t\t\t\t// Focus trap is deactivated on modal close anyway.\n\t\t\t\tescapeDeactivates: false,\n\t\t\t\tsetReturnFocus: this.setReturnFocus,\n\t\t\t}\n\n\t\t\t// Deactivate other focus traps to unlock modal elements\n\t\t\tthis.externalFocusTrapStack = [...options.trapStack]\n\t\t\tfor (const trap of this.externalFocusTrapStack) {\n\t\t\t\ttrap.deactivate()\n\t\t\t}\n\t\t\t// Init focus trap\n\t\t\tthis.focusTrap = createFocusTrap([contentContainer, ...this.additionalTrapElements], options)\n\t\t\tthis.focusTrap.activate()\n\t\t},\n\t\tclearFocusTrap() {\n\t\t\tif (!this.focusTrap) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tthis.focusTrap?.deactivate()\n\t\t\tthis.focusTrap = null\n\t\t\tfor (const trap of this.externalFocusTrapStack) {\n\t\t\t\ttrap.activate()\n\t\t\t}\n\t\t\tthis.externalFocusTrapStack = []\n\t\t},\n\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n\n.modal-mask {\n\tposition: fixed;\n\tz-index: 9998;\n\ttop: 0;\n\tleft: 0;\n\tdisplay: block;\n\twidth: 100%;\n\theight: 100%;\n\t--backdrop-color: 0, 0, 0;\n\tbackground-color: rgba(var(--backdrop-color), .5);\n\t&--opaque {\n\t\tbackground-color: rgba(var(--backdrop-color), .92);\n\t}\n\t&--light {\n\t\t--backdrop-color: 255, 255, 255;\n\t}\n}\n\n.modal-header {\n\tposition: absolute;\n\tz-index: 10001;\n\ttop: 0;\n\tright: 0;\n\tleft: 0;\n\t// prevent vue show to use display:none and resetting\n\t// the circle animation loop\n\tdisplay: flex !important;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 100%;\n\theight: var(--header-height);\n\toverflow: hidden;\n\ttransition: opacity 250ms, visibility 250ms;\n\n\t&__name {\n\t\toverflow-x: hidden;\n\t\tbox-sizing: border-box;\n\t\twidth: 100%;\n\t\tpadding: 0 calc(var(--default-clickable-area) * 3) 0 12px; // maximum actions is 3\n\t\ttransition: padding ease 100ms;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\tfont-size: $icon-size;\n\t\tmargin-block: 0;\n\t}\n\n\t// On wider screens the name can be centered\n\t@media only screen and (min-width: $breakpoint-mobile) {\n\t\t&__name {\n\t\t\tpadding-left: calc(var(--default-clickable-area) * 3); // maximum actions is 3\n\t\t\ttext-align: center;\n\t\t}\n\t}\n\n\t.icons-menu {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: flex-end;\n\n\t\t.header-close {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tbox-sizing: border-box;\n\t\t\tmargin: calc((var(--header-height) - var(--default-clickable-area)) / 2);\n\t\t\tpadding: 0;\n\t\t}\n\n\t\t.play-pause-icons {\n\t\t\tposition: relative;\n\t\t\twidth: var(--header-height);\n\t\t\theight: var(--header-height);\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t\tcursor: pointer;\n\t\t\tborder: none;\n\t\t\tbackground-color: transparent;\n\t\t\t&:hover,\n\t\t\t&:focus {\n\t\t\t\t.play-pause-icons__play,\n\t\t\t\t.play-pause-icons__pause {\n\t\t\t\t\topacity: $opacity_full;\n\t\t\t\t\tborder-radius: calc(var(--default-clickable-area) / 2);\n\t\t\t\t\tbackground-color: $icon-focus-bg;\n\t\t\t\t}\n\t\t\t}\n\t\t\t&__play,\n\t\t\t&__pause {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: var(--default-clickable-area);\n\t\t\t\theight: var(--default-clickable-area);\n\t\t\t\tmargin: calc((var(--header-height) - var(--default-clickable-area)) / 2);\n\t\t\t\tcursor: pointer;\n\t\t\t\topacity: $opacity_normal;\n\t\t\t}\n\t\t}\n\n\t\t&:deep() .action-item {\n\t\t\tmargin: calc((var(--header-height) - var(--default-clickable-area)) / 2);\n\n\t\t\t&--single {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: var(--default-clickable-area);\n\t\t\t\theight: var(--default-clickable-area);\n\t\t\t\tcursor: pointer;\n\t\t\t\tbackground-position: center;\n\t\t\t\tbackground-size: 22px;\n\t\t\t}\n\t\t}\n\n\t\t// The modal ignores the color theme and adds a black backdrop\n\t\t// so we need to add custom color of the actions toggle\n\t\t.header-actions :deep(button:focus-visible) {\n\t\t\tbox-shadow: none !important;\n\t\t\toutline: 2px solid #fff !important;\n\t\t}\n\n\t\t// Force the Actions menu icon to be the same size as other icons\n\t\t&:deep(.action-item__menutoggle) {\n\t\t\tpadding: 0;\n\t\t\tspan, svg {\n\t\t\t\twidth: var(--icon-size);\n\t\t\t\theight: var(--icon-size);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.modal-wrapper {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\n\t/* Navigation buttons */\n\t.prev,\n\t.next {\n\t\tz-index: 10000;\n\t\theight: 35vh;\n\t\tmin-height: 300px;\n\t\tposition: absolute;\n\t\ttransition: opacity 250ms;\n\t\t// hover the mask\n\t\tcolor: white;\n\n\t\t&:focus-visible {\n\t\t\t// Override NcButton focus styles\n\t\t\tbox-shadow: 0 0 0 2px var(--color-primary-element-text);\n\t\t\tbackground-color: var(--color-box-shadow);\n\t\t}\n\t}\n\n\t.prev {\n\t\tleft: 2px;\n\t}\n\t.next {\n\t\tright: 2px;\n\t}\n\n\t/* Content */\n\t.modal-container {\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tpadding: 0;\n\t\ttransition: transform 300ms ease;\n\t\tborder-radius: var(--border-radius-large);\n\t\tbackground-color: var(--color-main-background);\n\t\tcolor: var(--color-main-text);\n\t\tbox-shadow: 0 0 40px rgba(0, 0, 0, .2);\n\n\t\t&__close {\n\t\t\t// Ensure the close button is always on top of the content\n\t\t\tz-index: 1;\n\t\t\tposition: absolute;\n\t\t\ttop: 4px;\n\t\t\tinset-inline-end: var(--default-grid-baseline);\n\t\t}\n\n\t\t&__content {\n\t\t\twidth: 100%;\n\t\t\tmin-height: 52px; // At least the close button shall fit in\n\t\t\toverflow: auto; // avoids unnecessary hacks if the content should be bigger than the modal\n\t\t}\n\t}\n\n\t// We allow 90% max-height, but we need to ensure the header does not overlap the modal\n\t// as the modal is centered, we need the space on top and bottom\n\t$max-modal-height: min(90%, calc(100% - 2 * var(--header-height)));\n\n\t// Sizing\n\t&--small {\n\t\t& > .modal-container {\n\t\t\twidth: 400px;\n\t\t\tmax-width: 90%;\n\t\t\tmax-height: $max-modal-height;\n\t\t}\n\t}\n\t&--normal {\n\t\t& > .modal-container {\n\t\t\tmax-width: 90%;\n\t\t\twidth: 600px;\n\t\t\tmax-height: $max-modal-height;\n\t\t}\n\t}\n\t&--large {\n\t\t& > .modal-container {\n\t\t\tmax-width: 90%;\n\t\t\twidth: 900px;\n\t\t\tmax-height: $max-modal-height;\n\t\t}\n\t}\n\t&--full {\n\t\t& > .modal-container {\n\t\t\twidth: 100%;\n\t\t\theight: calc(100% - var(--header-height));\n\t\t\tposition: absolute;\n\t\t\ttop: var(--header-height);\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t// Make modal full screen on mobile\n\t@media only screen and ((max-width: $breakpoint-small-mobile) or (max-height: 400px)) {\n\t\t.modal-container {\n\t\t\tmax-width: initial;\n\t\t\twidth: 100%;\n\t\t\tmax-height: initial;\n\t\t\theight: calc(100% - var(--header-height));\n\t\t\tposition: absolute;\n\t\t\ttop: var(--header-height);\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n}\n\n/* TRANSITIONS */\n.fade-enter-active,\n.fade-leave-active {\n\ttransition: opacity 250ms;\n}\n\n.fade-enter,\n.fade-leave-to {\n\topacity: 0;\n}\n\n.fade-visibility-enter,\n.fade-visibility-leave-to {\n\tvisibility: hidden;\n\topacity: 0;\n}\n\n.modal-in-enter-active,\n.modal-in-leave-active,\n.modal-out-enter-active,\n.modal-out-leave-active {\n\ttransition: opacity 250ms;\n}\n\n.modal-in-enter,\n.modal-in-leave-to,\n.modal-out-enter,\n.modal-out-leave-to {\n\topacity: 0;\n}\n\n.modal-in-enter .modal-container,\n.modal-in-leave-to .modal-container {\n\ttransform: scale(.9);\n}\n\n.modal-out-enter .modal-container,\n.modal-out-leave-to .modal-container {\n\ttransform: scale(1.1);\n}\n\n// animated circle\n$radius: 15;\n$pi: 3.14159265358979;\n\n.modal-mask .play-pause-icons {\n\t.progress-ring {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\ttransform: rotate(-90deg);\n\t\t.progress-ring__circle {\n\t\t\ttransition: 100ms stroke-dashoffset;\n\t\t\ttransform-origin: 50% 50%; // axis compensation\n\t\t\tanimation: progressring linear var(--slideshow-duration) infinite;\n\n\t\t\tstroke-linecap: round;\n\t\t\tstroke-dashoffset: $radius * 2 * $pi; // radius * 2 * PI\n\t\t\tstroke-dasharray: $radius * 2 * $pi; // radius * 2 * PI\n\t\t}\n\t}\n\t&--paused {\n\t\t.icon-pause {\n\t\t\tanimation: breath 2s cubic-bezier(.4, 0, .2, 1) infinite;\n\t\t}\n\t\t.progress-ring__circle {\n\t\t\tanimation-play-state: paused !important;\n\t\t}\n\t}\n}\n\n// keyframes get scoped too and break the animation name, we need them unscoped\n@keyframes progressring {\n\tfrom {\n\t\tstroke-dashoffset: $radius * 2 * $pi; // radius * 2 * PI\n\t}\n\tto {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes breath {\n\t0% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n\n</style>\n","/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport ScopeComponent from '../../utils/ScopeComponent.js'\nimport NcModal from './NcModal.vue'\n\nScopeComponent(NcModal)\n\nexport default NcModal\n"],"names":["_sfc_main","NcActions","ChevronLeft","ChevronRight","Close","NcButton","Tooltip","GenRandomId","t","Vue","useSwipe","getTrapStack","Timer","createFocusTrap","ScopeComponent"],"mappings":";;;;;;;;;;;;;;;;;;;AASe,SAAS,MAAM,UAAU,OAAO;AAC9C,MAAI;AACJ,MAAI;AACJ,MAAI,YAAY;AAChB,MAAI;AAEJ,OAAK,QAAQ,WAAW;AACvB,cAAU;AACV,cAAU,oBAAI,KAAM;AACpB,SAAK,WAAW,UAAU,SAAS;AAAA,EACnC;AAED,OAAK,QAAQ,WAAW;AACvB,cAAU;AACV,iBAAa,EAAE;AACf,iBAAa,oBAAI,KAAI,IAAK;AAAA,EAC1B;AAED,OAAK,QAAQ,WAAW;AACvB,cAAU;AACV,iBAAa,EAAE;AACf,gBAAY;AAAA,EACZ;AAED,OAAK,cAAc,WAAW;AAC7B,QAAI,SAAS;AACZ,WAAK,MAAO;AACZ,WAAK,MAAO;AAAA,IACZ;AAED,WAAO;AAAA,EACP;AAED,OAAK,kBAAkB,WAAW;AACjC,WAAO;AAAA,EACP;AAED,OAAK,MAAO;AACb;AC3BA,MAAAA,cAAA;AAAA,EACA,MAAA;AAAA,EACA,OAAA,CAAA,OAAA;AAAA,EACA,OAAA;AAAA,IACA,OAA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;;;;;;;;;;;;;;;;;;;;;;;AC7zBAC,eAAAA,eAAe,OAAO;;","x_google_ignoreList":[1,2]}
|
|
1
|
+
{"version":3,"file":"NcModal.cjs","sources":["../../src/utils/Timer.js","../../node_modules/vue-material-design-icons/Pause.vue","../../node_modules/vue-material-design-icons/Play.vue","../../src/components/NcModal/NcModal.vue","../../src/components/NcModal/index.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * @param {Function} callback The function to call\n * @param {number} delay The time to wait\n */\nexport default function timer(callback, delay) {\n\tlet id\n\tlet started\n\tlet remaining = delay\n\tlet running\n\n\tthis.start = function() {\n\t\trunning = true\n\t\tstarted = new Date()\n\t\tid = setTimeout(callback, remaining)\n\t}\n\n\tthis.pause = function() {\n\t\trunning = false\n\t\tclearTimeout(id)\n\t\tremaining -= new Date() - started\n\t}\n\n\tthis.clear = function() {\n\t\trunning = false\n\t\tclearTimeout(id)\n\t\tremaining = 0\n\t}\n\n\tthis.getTimeLeft = function() {\n\t\tif (running) {\n\t\t\tthis.pause()\n\t\t\tthis.start()\n\t\t}\n\n\t\treturn remaining\n\t}\n\n\tthis.getStateRunning = function() {\n\t\treturn running\n\t}\n\n\tthis.start()\n}\n","<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : 'true'\"\n :aria-label=\"title\"\n class=\"material-design-icon pause-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M14,19H18V5H14M6,19H10V5H6V19Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"PauseIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : 'true'\"\n :aria-label=\"title\"\n class=\"material-design-icon play-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M8,5.14V19.14L19,12.14L8,5.14Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"PlayIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nFor showing the modal you can use either `:show.sync=\"showModal\"` or `v-if` on the `NcModal`,\ndepending on whether you require the Modal to stay within the DOM or not. Do not mix both, as this will break the out transition animation.\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"showModal\">Show Modal</NcButton>\n\t\t<NcModal\n\t\t\t:show.sync=\"modal\"\n\t\t\t@close=\"closeModal\"\n\t\t\tsize=\"small\"\n\t\t\tname=\"Name\"\n\t\t\t:outTransition=\"true\"\n\t\t\t:hasNext=\"true\"\n\t\t\t:hasPrevious=\"true\">\n\t\t\t<template #actions>\n\t\t\t\t<NcActionCaption name=\"Some action\" />\n\t\t\t</template>\n\t\t\t<div class=\"modal__content\">Hello world</div>\n\t\t</NcModal>\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tmodal: false\n\t\t}\n\t},\n\tmethods: {\n\t\tshowModal() {\n\t\t\tthis.modal = true\n\t\t},\n\t\tcloseModal() {\n\t\t\tthis.modal = false\n\t\t}\n\t}\n}\n</script>\n<style scoped>\n.modal__content {\n\tmargin: 50px;\n\ttext-align: center;\n}\n</style>\n```\n\n### Modal with more properties\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"showModal\">Show Modal with fields</NcButton>\n\t\t<NcModal\n\t\t\tv-if=\"modal\"\n\t\t\tref=\"modalRef\"\n\t\t\t@close=\"closeModal\"\n\t\t\tname=\"Name inside modal\">\n\t\t\t<div class=\"modal__content\">\n\t\t\t\t<h2>Please enter your name</h2>\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t<NcTextField label=\"First Name\" :value.sync=\"firstName\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t<NcTextField label=\"Last Name\" :value.sync=\"lastName\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t<label for=\"pizza\">What is the most important pizza item?</label>\n\t\t\t\t\t<NcSelect input-id=\"pizza\" :options=\"['Cheese', 'Tomatoes', 'Pineapples']\" v-model=\"pizza\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t<label for=\"emoji-trigger\">Select your favorite emoji</label>\n\t\t\t\t\t<NcEmojiPicker v-if=\"modalRef\" :container=\"modalRef.$el\">\n\t\t\t\t\t\t<NcButton id=\"emoji-trigger\">Select</NcButton>\n\t\t\t\t\t</NcEmojiPicker>\n\t\t\t\t</div>\n\n\t\t\t\t<NcButton\n\t\t\t\t\t:disabled=\"!firstName || !lastName || !pizza\"\n\t\t\t\t\t@click=\"closeModal\"\n\t\t\t\t\ttype=\"primary\">\n\t\t\t\t\tSubmit\n\t\t\t\t</NcButton>\n\t\t\t</div>\n\t\t</NcModal>\n\t</div>\n</template>\n<script>\nimport { ref } from 'vue'\n\nexport default {\n\tsetup() {\n\t\treturn {\n\t\t\tmodalRef: ref(null),\n\t\t}\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tmodal: false,\n\t\t\tfirstName: '',\n\t\t\tlastName: '',\n\t\t\tpizza: [],\n\t\t}\n\t},\n\tmethods: {\n\t\tshowModal() {\n\t\t\tthis.firstName = ''\n\t\t\tthis.lastName = ''\n\t\t\tthis.modal = true\n\t\t},\n\t\tcloseModal() {\n\t\t\tthis.modal = false\n\t\t}\n\t}\n}\n</script>\n<style scoped>\n.modal__content {\n\tmargin: 50px;\n}\n\n.modal__content h2 {\n\ttext-align: center;\n}\n\n.form-group {\n\tmargin: calc(var(--default-grid-baseline) * 4) 0;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: flex-start;\n}\n</style>\n```\n\n### Usage of popover in modal\n\n* Set container property to .modal-mask to inject popover context of the modal:\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"showModal\">Show Modal</NcButton>\n\t\t<NcModal v-if=\"modal\" @close=\"closeModal\" size=\"small\" class=\"emoji-modal\">\n\t\t\t<div class=\"modal-content\">\n\t\t\t\t<NcEmojiPicker container=\".emoji-modal\" @select=\"select\">\n\t\t\t\t\t<NcButton>Select emoji {{ emoji }}</NcButton>\n\t\t\t\t</NcEmojiPicker>\n\t\t\t</div>\n\t\t</NcModal>\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\temoji: '😛',\n\t\t\tmodal: false\n\t\t}\n\t},\n\tmethods: {\n\t\tshowModal() {\n\t\t\tthis.modal = true\n\t\t},\n\t\tcloseModal() {\n\t\t\tthis.modal = false\n\t\t},\n\t\tselect(emoji) {\n\t\t\tthis.emoji = emoji\n\t\t},\n\t},\n}\n</script>\n<style scoped>\n.modal-content {\n\twidth: 100%;\n\tmin-height: 100px;\n\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tjustify-content: center;\n}\n</style>\n```\n</docs>\n\n<template>\n\t<transition name=\"fade\"\n\t\tappear\n\t\t@after-enter=\"useFocusTrap\"\n\t\t@before-leave=\"clearFocusTrap\">\n\t\t<div v-show=\"showModal\"\n\t\t\tref=\"mask\"\n\t\t\tclass=\"modal-mask\"\n\t\t\t:class=\"{\n\t\t\t\t'modal-mask--opaque': dark || forceDarkBackdrop,\n\t\t\t\t'modal-mask--light': lightBackdrop,\n\t\t\t}\"\n\t\t\trole=\"dialog\"\n\t\t\taria-modal=\"true\"\n\t\t\t:aria-labelledby=\"modalLabelId\"\n\t\t\t:aria-describedby=\"'modal-description-' + randId\"\n\t\t\ttabindex=\"-1\">\n\t\t\t<!-- Header -->\n\t\t\t<transition name=\"fade-visibility\" appear>\n\t\t\t\t<div class=\"modal-header\"\n\t\t\t\t\t:data-theme-light=\"lightBackdrop\"\n\t\t\t\t\t:data-theme-dark=\"!lightBackdrop\">\n\t\t\t\t\t<h2 v-if=\"modalName\"\n\t\t\t\t\t\t:id=\"'modal-name-' + randId\"\n\t\t\t\t\t\tclass=\"modal-header__name\">\n\t\t\t\t\t\t{{ modalName }}\n\t\t\t\t\t</h2>\n\t\t\t\t\t<div class=\"icons-menu\">\n\t\t\t\t\t\t<!-- Play-pause toggle -->\n\t\t\t\t\t\t<button v-if=\"hasNext && enableSlideshow\"\n\t\t\t\t\t\t\tv-tooltip.auto=\"playPauseName\"\n\t\t\t\t\t\t\t:class=\"{ 'play-pause-icons--paused': slideshowPaused }\"\n\t\t\t\t\t\t\tclass=\"play-pause-icons\"\n\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t@click=\"togglePlayPause\">\n\t\t\t\t\t\t\t<!-- Play/pause icons -->\n\t\t\t\t\t\t\t<Play v-if=\"!playing\"\n\t\t\t\t\t\t\t\t:size=\"20\"\n\t\t\t\t\t\t\t\tclass=\"play-pause-icons__play\" />\n\t\t\t\t\t\t\t<Pause v-else\n\t\t\t\t\t\t\t\t:size=\"20\"\n\t\t\t\t\t\t\t\tclass=\"play-pause-icons__pause\" />\n\t\t\t\t\t\t\t<span class=\"hidden-visually\">\n\t\t\t\t\t\t\t\t{{ playPauseName }}\n\t\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t\t<!-- Progress circle, css animated -->\n\t\t\t\t\t\t\t<svg v-if=\"playing\"\n\t\t\t\t\t\t\t\tclass=\"progress-ring\"\n\t\t\t\t\t\t\t\theight=\"50\"\n\t\t\t\t\t\t\t\twidth=\"50\">\n\t\t\t\t\t\t\t\t<circle class=\"progress-ring__circle\"\n\t\t\t\t\t\t\t\t\tstroke=\"white\"\n\t\t\t\t\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\t\t\t\t\tfill=\"transparent\"\n\t\t\t\t\t\t\t\t\tr=\"15\"\n\t\t\t\t\t\t\t\t\tcx=\"25\"\n\t\t\t\t\t\t\t\t\tcy=\"25\" />\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t</button>\n\n\t\t\t\t\t\t<!-- Actions menu -->\n\t\t\t\t\t\t<NcActions class=\"header-actions\" :inline=\"inlineActions\">\n\t\t\t\t\t\t\t<!-- @slot Actions to show (one or more NcAction* components) -->\n\t\t\t\t\t\t\t<slot name=\"actions\" />\n\t\t\t\t\t\t</NcActions>\n\n\t\t\t\t\t\t<!-- Close modal -->\n\t\t\t\t\t\t<NcButton v-if=\"canClose && !closeButtonContained\"\n\t\t\t\t\t\t\t:aria-label=\"closeButtonAriaLabel\"\n\t\t\t\t\t\t\tclass=\"header-close\"\n\t\t\t\t\t\t\ttype=\"tertiary\"\n\t\t\t\t\t\t\t@click=\"close\">\n\t\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t\t<Close :size=\"20\" />\n\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</transition>\n\n\t\t\t<!-- Content wrapper -->\n\t\t\t<transition :name=\"modalTransitionName\" appear>\n\t\t\t\t<div v-show=\"showModal\"\n\t\t\t\t\t:class=\"[\n\t\t\t\t\t\t`modal-wrapper--${size}`,\n\t\t\t\t\t\t{ 'modal-wrapper--spread-navigation': spreadNavigation },\n\t\t\t\t\t]\"\n\t\t\t\t\tclass=\"modal-wrapper\"\n\t\t\t\t\t@mousedown.self=\"handleClickModalWrapper\">\n\t\t\t\t\t<!-- Navigation button -->\n\t\t\t\t\t<transition name=\"fade-visibility\" appear>\n\t\t\t\t\t\t<NcButton v-show=\"hasPrevious\"\n\t\t\t\t\t\t\ttype=\"tertiary-no-background\"\n\t\t\t\t\t\t\tclass=\"prev\"\n\t\t\t\t\t\t\t:aria-label=\"prevButtonAriaLabel\"\n\t\t\t\t\t\t\t@click=\"previous\">\n\t\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t\t<ChevronLeft :size=\"40\" />\n\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t</transition>\n\n\t\t\t\t\t<!-- Content -->\n\t\t\t\t\t<div :id=\"'modal-description-' + randId\" class=\"modal-container\">\n\t\t\t\t\t\t<div class=\"modal-container__content\">\n\t\t\t\t\t\t\t<!-- @slot Modal content to render -->\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<!-- Close modal -->\n\t\t\t\t\t\t<NcButton v-if=\"canClose && closeButtonContained\"\n\t\t\t\t\t\t\ttype=\"tertiary\"\n\t\t\t\t\t\t\tclass=\"modal-container__close\"\n\t\t\t\t\t\t\t:aria-label=\"closeButtonAriaLabel\"\n\t\t\t\t\t\t\t@click=\"close\">\n\t\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t\t<Close :size=\"20\" />\n\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Navigation button -->\n\t\t\t\t\t<transition name=\"fade-visibility\" appear>\n\t\t\t\t\t\t<NcButton v-show=\"hasNext\"\n\t\t\t\t\t\t\ttype=\"tertiary-no-background\"\n\t\t\t\t\t\t\tclass=\"next\"\n\t\t\t\t\t\t\t:aria-label=\"nextButtonAriaLabel\"\n\t\t\t\t\t\t\t@click=\"next\">\n\t\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t\t<ChevronRight :size=\"40\" />\n\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t</NcButton>\n\t\t\t\t\t</transition>\n\t\t\t\t</div>\n\t\t\t</transition>\n\t\t</div>\n\t</transition>\n</template>\n\n<script>\nimport { useSwipe } from '@vueuse/core'\nimport { createFocusTrap } from 'focus-trap'\nimport Vue from 'vue'\n\nimport { getTrapStack } from '../../utils/focusTrap.js'\nimport { t } from '../../l10n.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport NcActions from '../NcActions/index.js'\nimport NcButton from '../../components/NcButton/index.js'\nimport Timer from '../../utils/Timer.js'\nimport Tooltip from '../../directives/Tooltip/index.js'\n\nimport ChevronLeft from 'vue-material-design-icons/ChevronLeft.vue'\nimport ChevronRight from 'vue-material-design-icons/ChevronRight.vue'\nimport Close from 'vue-material-design-icons/Close.vue'\nimport Pause from 'vue-material-design-icons/Pause.vue'\nimport Play from 'vue-material-design-icons/Play.vue'\n\nexport default {\n\tname: 'NcModal',\n\n\tcomponents: {\n\t\tNcActions,\n\t\tChevronLeft,\n\t\tChevronRight,\n\t\tClose,\n\t\tPause,\n\t\tPlay,\n\t\tNcButton,\n\t},\n\n\tdirectives: {\n\t\ttooltip: Tooltip,\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Name to be shown with the modal\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Declare if a previous slide is available\n\t\t */\n\t\thasPrevious: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Declare if a next slide is available\n\t\t */\n\t\thasNext: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Declare if hiding the modal should be animated\n\t\t */\n\t\toutTransition: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Declare if the slideshow functionality should be enabled\n\t\t */\n\t\tenableSlideshow: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Declare the slide interval\n\t\t */\n\t\tslideshowDelay: {\n\t\t\ttype: Number,\n\t\t\tdefault: 5000,\n\t\t},\n\t\t/**\n\t\t * Allow to pause an ongoing slideshow\n\t\t */\n\t\tslideshowPaused: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Enable swipe between slides\n\t\t * @deprecated Will be removed in next version - use `disableSwipe` instead\n\t\t */\n\t\tenableSwipe: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t\t/**\n\t\t * Disable swipe between slides\n\t\t */\n\t\tdisableSwipe: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\tspreadNavigation: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Defines the modal size.\n\t\t * Default is 'normal'.\n\t\t * Available are 'small', 'normal', 'large' and 'full'.\n\t\t * All sizes except 'small' change automatically to full-screen on mobile.\n\t\t */\n\t\tsize: {\n\t\t\ttype: String,\n\t\t\tdefault: 'normal',\n\t\t\tvalidator: size => {\n\t\t\t\treturn ['small', 'normal', 'large', 'full'].includes(size)\n\t\t\t},\n\t\t},\n\n\t\t/**\n\t\t * Declare if the modal can be closed\n\t\t */\n\t\tcanClose: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Close the modal if the user clicked outside the modal\n\t\t * Only relevant if `canClose` is set to true.\n\t\t */\n\t\tcloseOnClickOutside: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Makes the modal backdrop opaque if true.\n\t\t * Will be overwritten if some buttons are shown outside.\n\t\t */\n\t\tdark: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Set light backdrop. Makes the modal header appear light.\n\t\t */\n\t\tlightBackdrop: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Selector for the modal container, pass `null` to prevent automatic container mounting\n\t\t */\n\t\tcontainer: {\n\t\t\ttype: [String, null],\n\t\t\tdefault: 'body',\n\t\t},\n\n\t\t/**\n\t\t * Pass in false if you want the modal 'close' button to be displayed\n\t\t * outside the modal boundaries, in the top right corner of the window\n\t\t */\n\t\tcloseButtonContained: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Additional elements to add to the focus trap\n\t\t */\n\t\tadditionalTrapElements: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Display x items inline\n\t\t *\n\t\t * @see Actions component usage\n\t\t */\n\t\tinlineActions: {\n\t\t\ttype: Number,\n\t\t\tdefault: 0,\n\t\t},\n\n\t\tshow: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: undefined,\n\t\t},\n\n\t\t/**\n\t\t * Id of the element that labels the dialog (the name)\n\t\t * Not needed if the `name` prop is set, but if no name is set you need to provide the ID of an element to label the dialog for accessibility.\n\t\t */\n\t\tlabelId: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Set element to return focus to after focus trap deactivation\n\t\t *\n\t\t * @type {import('focus-trap').FocusTargetValueOrFalse}\n\t\t */\n\t\tsetReturnFocus: {\n\t\t\tdefault: undefined,\n\t\t\ttype: [HTMLElement, SVGElement, String, Boolean],\n\t\t},\n\t},\n\n\temits: [\n\t\t'previous',\n\t\t'next',\n\t\t'close',\n\t\t'update:show',\n\t],\n\n\tdata() {\n\t\treturn {\n\t\t\tmc: null,\n\t\t\tplaying: false,\n\t\t\tslideshowTimeout: null,\n\t\t\tfocusTrap: null,\n\t\t\texternalFocusTrapStack: [],\n\t\t\trandId: GenRandomId(),\n\t\t\tinternalShow: true,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * slide show delay to set to CSS\n\t\t */\n\t\tcssSlideshowDelay() {\n\t\t\treturn `${this.slideshowDelay}ms`\n\t\t},\n\n\t\t/**\n\t\t * True if there are any buttons shown on the backdrop or a name (for accessibility)\n\t\t */\n\t\tforceDarkBackdrop() {\n\t\t\treturn (this.canClose && !this.closeButtonContained)\n\t\t\t\t|| this.hasNext\n\t\t\t\t|| this.hasPrevious\n\t\t\t\t|| this.modalName !== ''\n\t\t\t\t|| Boolean(this.$slots.actions)\n\t\t},\n\n\t\t/**\n\t\t * Trimmed modal name\n\t\t */\n\t\tmodalName() {\n\t\t\treturn this.name.trim()\n\t\t},\n\n\t\t/**\n\t\t * ID of the element to label the modal\n\t\t */\n\t\tmodalLabelId() {\n\t\t\treturn this.labelId || `modal-name-${this.randId}`\n\t\t},\n\n\t\tshowModal() {\n\t\t\treturn (this.show === undefined) ? this.internalShow : this.show\n\t\t},\n\t\tmodalTransitionName() {\n\t\t\treturn `modal-${this.outTransition ? 'out' : 'in'}`\n\t\t},\n\t\tplayPauseName() {\n\t\t\treturn this.playing ? t('Pause slideshow') : t('Start slideshow')\n\t\t},\n\n\t\tcloseButtonAriaLabel() {\n\t\t\treturn t('Close')\n\t\t},\n\t\tprevButtonAriaLabel() {\n\t\t\treturn t('Previous')\n\t\t},\n\t\tnextButtonAriaLabel() {\n\t\t\treturn t('Next')\n\t\t},\n\t},\n\n\twatch: {\n\t\t/**\n\t\t * Handle play/pause of an ongoing slideshow\n\t\t *\n\t\t * @param {boolean} paused is the player paused\n\t\t */\n\t\tslideshowPaused(paused) {\n\t\t\tif (this.slideshowTimeout) {\n\t\t\t\tif (paused) {\n\t\t\t\t\tthis.slideshowTimeout.pause()\n\t\t\t\t} else {\n\t\t\t\t\tthis.slideshowTimeout.start()\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tadditionalTrapElements(elements) {\n\t\t\tif (this.focusTrap) {\n\t\t\t\tconst contentContainer = this.$refs.mask\n\t\t\t\tthis.focusTrap.updateContainerElements([contentContainer, ...elements])\n\t\t\t}\n\t\t},\n\t},\n\n\tbeforeMount() {\n\t\twindow.addEventListener('keydown', this.handleKeydown)\n\t},\n\tbeforeDestroy() {\n\t\twindow.removeEventListener('keydown', this.handleKeydown)\n\t\tthis.mc.stop()\n\t},\n\tmounted() {\n\t\tif (!this.name && !this.labelId) {\n\t\t\tVue.util.warn('[NcModal] You need either set the name or set a `labelId` for accessibility.')\n\t\t}\n\n\t\t// init clear view\n\t\tthis.useFocusTrap()\n\t\tthis.mc = useSwipe(this.$refs.mask, {\n\t\t\tonSwipeEnd: this.handleSwipe,\n\t\t})\n\n\t\tif (this.container) {\n\t\t\tif (this.container === 'body') {\n\t\t\t\t// force mount the component to body\n\t\t\t\tdocument.body.insertBefore(this.$el, document.body.lastChild)\n\t\t\t} else {\n\t\t\t\tconst container = document.querySelector(this.container)\n\t\t\t\tcontainer.appendChild(this.$el)\n\t\t\t}\n\t\t}\n\t},\n\tdestroyed() {\n\t\tthis.clearFocusTrap()\n\t\tthis.$el.remove()\n\t},\n\n\tmethods: {\n\t\tt,\n\n\t\t// Events emitters\n\t\tprevious(event) {\n\t\t\t// do not send the event if nothing is available\n\t\t\tif (this.hasPrevious) {\n\t\t\t\t// if data is set, then it's a user mouse event\n\t\t\t\t// and not the slideshow handler, therefore\n\t\t\t\t// we reset the timer\n\t\t\t\tif (event) {\n\t\t\t\t\tthis.resetSlideshow()\n\t\t\t\t}\n\t\t\t\tthis.$emit('previous', event)\n\t\t\t}\n\t\t},\n\t\tnext(event) {\n\t\t\t// do not send the event if nothing is available\n\t\t\tif (this.hasNext) {\n\t\t\t\t// if data is set, then it's a mouse event\n\t\t\t\t// and not the slideshow handler, therefore\n\t\t\t\t// we reset the timer\n\t\t\t\tif (event) {\n\t\t\t\t\tthis.resetSlideshow()\n\t\t\t\t}\n\t\t\t\tthis.$emit('next', event)\n\t\t\t}\n\t\t},\n\t\tclose(data) {\n\t\t\t// do not fire event if forbidden\n\t\t\tif (this.canClose) {\n\t\t\t\t// We set internalShow here, so the out transitions properly run before the component is destroyed\n\t\t\t\tthis.internalShow = false\n\t\t\t\tthis.$emit('update:show', false)\n\n\t\t\t\t// delay closing for animation\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t/**\n\t\t\t\t\t * Emitted when the closing animation is finished\n\t\t\t\t\t */\n\t\t\t\t\tthis.$emit('close', data)\n\t\t\t\t}, 300)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Handle click on modal wrapper\n\t\t * If `closeOnClickOutside` is set the modal will be closed\n\t\t *\n\t\t * @param {MouseEvent} event The click event\n\t\t */\n\t\thandleClickModalWrapper(event) {\n\t\t\tif (this.closeOnClickOutside) {\n\t\t\t\tthis.close(event)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @param {KeyboardEvent} event - keyboard event\n\t\t */\n\t\thandleKeydown(event) {\n\t\t\tif (event.key === 'Escape') {\n\t\t\t\tconst trapStack = getTrapStack()\n\t\t\t\t// Only close the most recent focus trap modal\n\t\t\t\tif (trapStack.length > 0 && trapStack[trapStack.length - 1] !== this.focusTrap) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\treturn this.close(event)\n\t\t\t}\n\n\t\t\tconst arrowHandlers = {\n\t\t\t\tArrowLeft: this.previous,\n\t\t\t\tArrowRight: this.next,\n\t\t\t}\n\t\t\tif (arrowHandlers[event.key]) {\n\t\t\t\t// Ignore arrow navigation, if there is a current focus outside the modal.\n\t\t\t\t// For example, when the focus is in Sidebar or NcActions' items,\n\t\t\t\t// arrow navigation should not be intercepted by modal slider\n\t\t\t\tif (document.activeElement && !this.$el.contains(document.activeElement)) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\treturn arrowHandlers[event.key](event)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * handle the swipe event\n\t\t *\n\t\t * @param {TouchEvent} e The touch event\n\t\t * @param {import('@vueuse/core').SwipeDirection} direction Swipe direction\n\t\t */\n\t\thandleSwipe(e, direction) {\n\t\t\tif (this.enableSwipe && !this.disableSwipe) {\n\t\t\t\tif (direction === 'left') {\n\t\t\t\t\t// swiping to left to go to the next item\n\t\t\t\t\tthis.next(e)\n\t\t\t\t} else if (direction === 'right') {\n\t\t\t\t\t// swiping to right to go back to the previous item\n\t\t\t\t\tthis.previous(e)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Toggle the slideshow state\n\t\t */\n\t\ttogglePlayPause() {\n\t\t\tthis.playing = !this.playing\n\t\t\tif (this.playing) {\n\t\t\t\tthis.handleSlideshow()\n\t\t\t} else {\n\t\t\t\tthis.clearSlideshowTimeout()\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Reset the slideshow timer and keep going if it was on\n\t\t */\n\t\tresetSlideshow() {\n\t\t\tthis.playing = !this.playing\n\t\t\tthis.clearSlideshowTimeout()\n\t\t\tthis.$nextTick(function() {\n\t\t\t\tthis.togglePlayPause()\n\t\t\t})\n\t\t},\n\n\t\t/**\n\t\t * Handle the slideshow timer and next event\n\t\t */\n\t\thandleSlideshow() {\n\t\t\tthis.playing = true\n\t\t\tif (this.hasNext) {\n\t\t\t\tthis.slideshowTimeout = new Timer(() => {\n\t\t\t\t\tthis.next()\n\t\t\t\t\tthis.handleSlideshow()\n\t\t\t\t}, this.slideshowDelay)\n\t\t\t} else {\n\t\t\t\tthis.playing = false\n\t\t\t\tthis.clearSlideshowTimeout()\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Clear slideshowTimeout if ongoing\n\t\t */\n\t\tclearSlideshowTimeout() {\n\t\t\tif (this.slideshowTimeout) {\n\t\t\t\tthis.slideshowTimeout.clear()\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Add focus trap for accessibility.\n\t\t */\n\t\tasync useFocusTrap() {\n\t\t\t// Don't do anything if the modal is hidden,\n\t\t\t// or we have a focus trap already\n\t\t\tif (!this.showModal || this.focusTrap) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tconst contentContainer = this.$refs.mask\n\t\t\t// wait until all children are mounted and available in the DOM before focusTrap can be added\n\t\t\tawait this.$nextTick()\n\n\t\t\tconst options = {\n\t\t\t\tallowOutsideClick: true,\n\t\t\t\tfallbackFocus: contentContainer,\n\t\t\t\ttrapStack: getTrapStack(),\n\t\t\t\t// Esc can be used without stop in content or additionalTrapElements where it should not deactivate modal's focus trap.\n\t\t\t\t// Focus trap is deactivated on modal close anyway.\n\t\t\t\tescapeDeactivates: false,\n\t\t\t\tsetReturnFocus: this.setReturnFocus,\n\t\t\t}\n\n\t\t\t// Deactivate other focus traps to unlock modal elements\n\t\t\tthis.externalFocusTrapStack = [...options.trapStack]\n\t\t\tfor (const trap of this.externalFocusTrapStack) {\n\t\t\t\ttrap.deactivate()\n\t\t\t}\n\t\t\t// Init focus trap\n\t\t\tthis.focusTrap = createFocusTrap([contentContainer, ...this.additionalTrapElements], options)\n\t\t\tthis.focusTrap.activate()\n\t\t},\n\t\tclearFocusTrap() {\n\t\t\tif (!this.focusTrap) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tthis.focusTrap?.deactivate()\n\t\t\tthis.focusTrap = null\n\t\t\tfor (const trap of this.externalFocusTrapStack) {\n\t\t\t\ttrap.activate()\n\t\t\t}\n\t\t\tthis.externalFocusTrapStack = []\n\t\t},\n\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.modal-mask {\n\t--backdrop-color: 0, 0, 0;\n\t--icon-size: 20px;\n\t--slideshow-duration: v-bind('cssSlideshowDelay');\n\tposition: fixed;\n\tz-index: 9998;\n\ttop: 0;\n\tleft: 0;\n\tdisplay: block;\n\twidth: 100%;\n\theight: 100%;\n\tbackground-color: rgba(var(--backdrop-color), .5);\n\n\t&--opaque {\n\t\tbackground-color: rgba(var(--backdrop-color), .92);\n\t}\n\n\t&--light {\n\t\t--backdrop-color: 255, 255, 255;\n\t}\n}\n\n.modal-header {\n\tposition: absolute;\n\tz-index: 10001;\n\ttop: 0;\n\tright: 0;\n\tleft: 0;\n\t// prevent vue show to use display:none and resetting\n\t// the circle animation loop\n\tdisplay: flex !important;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 100%;\n\theight: var(--header-height);\n\toverflow: hidden;\n\ttransition: opacity 250ms, visibility 250ms;\n\n\t&__name {\n\t\toverflow-x: hidden;\n\t\tbox-sizing: border-box;\n\t\twidth: 100%;\n\t\tpadding: 0 calc(var(--default-clickable-area) * 3) 0 12px; // maximum actions is 3\n\t\ttransition: padding ease 100ms;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\tfont-size: $icon-size;\n\t\tmargin-block: 0;\n\t}\n\n\t// On wider screens the name can be centered\n\t@media only screen and (min-width: $breakpoint-mobile) {\n\t\t&__name {\n\t\t\tpadding-left: calc(var(--default-clickable-area) * 3); // maximum actions is 3\n\t\t\ttext-align: center;\n\t\t}\n\t}\n\n\t.icons-menu {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: flex-end;\n\n\t\t.header-close {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tbox-sizing: border-box;\n\t\t\tmargin: calc((var(--header-height) - var(--default-clickable-area)) / 2);\n\t\t\tpadding: 0;\n\t\t}\n\n\t\t.play-pause-icons {\n\t\t\tposition: relative;\n\t\t\twidth: var(--header-height);\n\t\t\theight: var(--header-height);\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t\tcursor: pointer;\n\t\t\tborder: none;\n\t\t\tbackground-color: transparent;\n\t\t\t&:hover,\n\t\t\t&:focus {\n\t\t\t\t.play-pause-icons__play,\n\t\t\t\t.play-pause-icons__pause {\n\t\t\t\t\topacity: $opacity_full;\n\t\t\t\t\tborder-radius: calc(var(--default-clickable-area) / 2);\n\t\t\t\t\tbackground-color: $icon-focus-bg;\n\t\t\t\t}\n\t\t\t}\n\t\t\t&__play,\n\t\t\t&__pause {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: var(--default-clickable-area);\n\t\t\t\theight: var(--default-clickable-area);\n\t\t\t\tmargin: calc((var(--header-height) - var(--default-clickable-area)) / 2);\n\t\t\t\tcursor: pointer;\n\t\t\t\topacity: $opacity_normal;\n\t\t\t}\n\t\t}\n\n\t\t&:deep() .action-item {\n\t\t\tmargin: calc((var(--header-height) - var(--default-clickable-area)) / 2);\n\n\t\t\t&--single {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: var(--default-clickable-area);\n\t\t\t\theight: var(--default-clickable-area);\n\t\t\t\tcursor: pointer;\n\t\t\t\tbackground-position: center;\n\t\t\t\tbackground-size: 22px;\n\t\t\t}\n\t\t}\n\n\t\t// The modal ignores the color theme and adds a black backdrop\n\t\t// so we need to add custom color of the actions toggle\n\t\t.header-actions :deep(button:focus-visible) {\n\t\t\tbox-shadow: none !important;\n\t\t\toutline: 2px solid #fff !important;\n\t\t}\n\n\t\t// Force the Actions menu icon to be the same size as other icons\n\t\t&:deep(.action-item__menutoggle) {\n\t\t\tpadding: 0;\n\t\t\tspan, svg {\n\t\t\t\twidth: var(--icon-size);\n\t\t\t\theight: var(--icon-size);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.modal-wrapper {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\n\t/* Navigation buttons */\n\t.prev,\n\t.next {\n\t\tz-index: 10000;\n\t\theight: 35vh;\n\t\tmin-height: 300px;\n\t\tposition: absolute;\n\t\ttransition: opacity 250ms;\n\t\t// hover the mask\n\t\tcolor: white;\n\n\t\t&:focus-visible {\n\t\t\t// Override NcButton focus styles\n\t\t\tbox-shadow: 0 0 0 2px var(--color-primary-element-text);\n\t\t\tbackground-color: var(--color-box-shadow);\n\t\t}\n\t}\n\n\t.prev {\n\t\tleft: 2px;\n\t}\n\t.next {\n\t\tright: 2px;\n\t}\n\n\t/* Content */\n\t.modal-container {\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tpadding: 0;\n\t\ttransition: transform 300ms ease;\n\t\tborder-radius: var(--border-radius-large);\n\t\tbackground-color: var(--color-main-background);\n\t\tcolor: var(--color-main-text);\n\t\tbox-shadow: 0 0 40px rgba(0, 0, 0, .2);\n\n\t\t&__close {\n\t\t\t// Ensure the close button is always on top of the content\n\t\t\tz-index: 1;\n\t\t\tposition: absolute;\n\t\t\ttop: 4px;\n\t\t\tinset-inline-end: var(--default-grid-baseline);\n\t\t}\n\n\t\t&__content {\n\t\t\twidth: 100%;\n\t\t\tmin-height: 52px; // At least the close button shall fit in\n\t\t\toverflow: auto; // avoids unnecessary hacks if the content should be bigger than the modal\n\t\t}\n\t}\n\n\t// We allow 90% max-height, but we need to ensure the header does not overlap the modal\n\t// as the modal is centered, we need the space on top and bottom\n\t$max-modal-height: min(90%, calc(100% - 2 * var(--header-height)));\n\n\t// Sizing\n\t&--small {\n\t\t& > .modal-container {\n\t\t\twidth: 400px;\n\t\t\tmax-width: 90%;\n\t\t\tmax-height: $max-modal-height;\n\t\t}\n\t}\n\t&--normal {\n\t\t& > .modal-container {\n\t\t\tmax-width: 90%;\n\t\t\twidth: 600px;\n\t\t\tmax-height: $max-modal-height;\n\t\t}\n\t}\n\t&--large {\n\t\t& > .modal-container {\n\t\t\tmax-width: 90%;\n\t\t\twidth: 900px;\n\t\t\tmax-height: $max-modal-height;\n\t\t}\n\t}\n\t&--full {\n\t\t& > .modal-container {\n\t\t\twidth: 100%;\n\t\t\theight: calc(100% - var(--header-height));\n\t\t\tposition: absolute;\n\t\t\ttop: var(--header-height);\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t// Make modal full screen on mobile\n\t@media only screen and ((max-width: $breakpoint-small-mobile) or (max-height: 400px)) {\n\t\t.modal-container {\n\t\t\tmax-width: initial;\n\t\t\twidth: 100%;\n\t\t\tmax-height: initial;\n\t\t\theight: calc(100% - var(--header-height));\n\t\t\tposition: absolute;\n\t\t\ttop: var(--header-height);\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n}\n\n/* TRANSITIONS */\n.fade-enter-active,\n.fade-leave-active {\n\ttransition: opacity 250ms;\n}\n\n.fade-enter,\n.fade-leave-to {\n\topacity: 0;\n}\n\n.fade-visibility-enter,\n.fade-visibility-leave-to {\n\tvisibility: hidden;\n\topacity: 0;\n}\n\n.modal-in-enter-active,\n.modal-in-leave-active,\n.modal-out-enter-active,\n.modal-out-leave-active {\n\ttransition: opacity 250ms;\n}\n\n.modal-in-enter,\n.modal-in-leave-to,\n.modal-out-enter,\n.modal-out-leave-to {\n\topacity: 0;\n}\n\n.modal-in-enter .modal-container,\n.modal-in-leave-to .modal-container {\n\ttransform: scale(.9);\n}\n\n.modal-out-enter .modal-container,\n.modal-out-leave-to .modal-container {\n\ttransform: scale(1.1);\n}\n\n// animated circle\n$radius: 15;\n$pi: 3.14159265358979;\n\n.modal-mask .play-pause-icons {\n\t.progress-ring {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\ttransform: rotate(-90deg);\n\t\t.progress-ring__circle {\n\t\t\ttransition: 100ms stroke-dashoffset;\n\t\t\ttransform-origin: 50% 50%; // axis compensation\n\t\t\tanimation: progressring linear var(--slideshow-duration) infinite;\n\n\t\t\tstroke-linecap: round;\n\t\t\tstroke-dashoffset: $radius * 2 * $pi; // radius * 2 * PI\n\t\t\tstroke-dasharray: $radius * 2 * $pi; // radius * 2 * PI\n\t\t}\n\t}\n\t&--paused {\n\t\t.icon-pause {\n\t\t\tanimation: breath 2s cubic-bezier(.4, 0, .2, 1) infinite;\n\t\t}\n\t\t.progress-ring__circle {\n\t\t\tanimation-play-state: paused !important;\n\t\t}\n\t}\n}\n\n// keyframes get scoped too and break the animation name, we need them unscoped\n@keyframes progressring {\n\tfrom {\n\t\tstroke-dashoffset: $radius * 2 * $pi; // radius * 2 * PI\n\t}\n\tto {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes breath {\n\t0% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n\n</style>\n","/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport ScopeComponent from '../../utils/ScopeComponent.js'\nimport NcModal from './NcModal.vue'\n\nScopeComponent(NcModal)\n\nexport default NcModal\n"],"names":["_sfc_main","NcActions","ChevronLeft","ChevronRight","Close","NcButton","Tooltip","GenRandomId","t","Vue","useSwipe","getTrapStack","Timer","createFocusTrap","ScopeComponent"],"mappings":";;;;;;;;;;;;;;;;;;;AASe,SAAS,MAAM,UAAU,OAAO;AAC9C,MAAI;AACJ,MAAI;AACJ,MAAI,YAAY;AAChB,MAAI;AAEJ,OAAK,QAAQ,WAAW;AACvB,cAAU;AACV,cAAU,oBAAI,KAAM;AACpB,SAAK,WAAW,UAAU,SAAS;AAAA,EACnC;AAED,OAAK,QAAQ,WAAW;AACvB,cAAU;AACV,iBAAa,EAAE;AACf,iBAAa,oBAAI,KAAI,IAAK;AAAA,EAC1B;AAED,OAAK,QAAQ,WAAW;AACvB,cAAU;AACV,iBAAa,EAAE;AACf,gBAAY;AAAA,EACZ;AAED,OAAK,cAAc,WAAW;AAC7B,QAAI,SAAS;AACZ,WAAK,MAAO;AACZ,WAAK,MAAO;AAAA,IACZ;AAED,WAAO;AAAA,EACP;AAED,OAAK,kBAAkB,WAAW;AACjC,WAAO;AAAA,EACP;AAED,OAAK,MAAO;AACb;AC3BA,MAAAA,cAAA;AAAA,EACA,MAAA;AAAA,EACA,OAAA,CAAA,OAAA;AAAA,EACA,OAAA;AAAA,IACA,OAAA;AAAA,MACA,MAAA;AAAA,IACA;AAAA,IACA,WAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,IACA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IAC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,WAAA,YAAA;AACA,iBAAA,QAAA,KAAA,wBAAA;AACA,aAAA,SAAA;AAAA,MACA;AACA,WAAA,yBAAA,CAAA;AAAA,IACA;AAAA,EAEA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/1BAC,eAAAA,eAAe,OAAO;;","x_google_ignoreList":[1,2]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import '../assets/NcModal-
|
|
2
|
-
import { S as ScopeComponent } from "../chunks/ScopeComponent-
|
|
1
|
+
import '../assets/NcModal-ZfCDJxwd.css';
|
|
2
|
+
import { S as ScopeComponent } from "../chunks/ScopeComponent-l9iK4gT7.mjs";
|
|
3
3
|
import { useSwipe } from "@vueuse/core";
|
|
4
4
|
import { createFocusTrap } from "focus-trap";
|
|
5
|
-
import Vue from "vue";
|
|
5
|
+
import Vue, { useCssVars } from "vue";
|
|
6
6
|
import { g as getTrapStack } from "../chunks/focusTrap-Cecv_gjR.mjs";
|
|
7
|
-
import { r as register, G as t33, u as t17, a as t } from "../chunks/_l10n-
|
|
7
|
+
import { r as register, G as t33, u as t17, a as t } from "../chunks/_l10n-BFZBMn-A.mjs";
|
|
8
8
|
import { G as GenRandomId } from "../chunks/GenRandomId-CMooMQt0.mjs";
|
|
9
|
-
import { N as NcActions } from "../chunks/NcActions-
|
|
9
|
+
import { N as NcActions } from "../chunks/NcActions-DV02tDLT.mjs";
|
|
10
10
|
import NcButton from "./NcButton.mjs";
|
|
11
11
|
import "../Directives/Tooltip.mjs";
|
|
12
12
|
import { C as ChevronLeft } from "../chunks/ChevronLeft-BK4j9oVH.mjs";
|
|
@@ -113,7 +113,7 @@ var __component__$1 = /* @__PURE__ */ normalizeComponent(
|
|
|
113
113
|
null
|
|
114
114
|
);
|
|
115
115
|
const Play = __component__$1.exports;
|
|
116
|
-
const
|
|
116
|
+
const __default__ = {
|
|
117
117
|
name: "NcModal",
|
|
118
118
|
components: {
|
|
119
119
|
NcActions,
|
|
@@ -179,11 +179,19 @@ const _sfc_main = {
|
|
|
179
179
|
},
|
|
180
180
|
/**
|
|
181
181
|
* Enable swipe between slides
|
|
182
|
+
* @deprecated Will be removed in next version - use `disableSwipe` instead
|
|
182
183
|
*/
|
|
183
184
|
enableSwipe: {
|
|
184
185
|
type: Boolean,
|
|
185
186
|
default: true
|
|
186
187
|
},
|
|
188
|
+
/**
|
|
189
|
+
* Disable swipe between slides
|
|
190
|
+
*/
|
|
191
|
+
disableSwipe: {
|
|
192
|
+
type: Boolean,
|
|
193
|
+
default: false
|
|
194
|
+
},
|
|
187
195
|
spreadNavigation: {
|
|
188
196
|
type: Boolean,
|
|
189
197
|
default: false
|
|
@@ -217,8 +225,8 @@ const _sfc_main = {
|
|
|
217
225
|
default: true
|
|
218
226
|
},
|
|
219
227
|
/**
|
|
220
|
-
* Makes the modal backdrop opaque if true
|
|
221
|
-
* Will be overwritten if some buttons are shown outside
|
|
228
|
+
* Makes the modal backdrop opaque if true.
|
|
229
|
+
* Will be overwritten if some buttons are shown outside.
|
|
222
230
|
*/
|
|
223
231
|
dark: {
|
|
224
232
|
type: Boolean,
|
|
@@ -295,7 +303,6 @@ const _sfc_main = {
|
|
|
295
303
|
mc: null,
|
|
296
304
|
playing: false,
|
|
297
305
|
slideshowTimeout: null,
|
|
298
|
-
iconSize: 24,
|
|
299
306
|
focusTrap: null,
|
|
300
307
|
externalFocusTrapStack: [],
|
|
301
308
|
randId: GenRandomId(),
|
|
@@ -303,6 +310,24 @@ const _sfc_main = {
|
|
|
303
310
|
};
|
|
304
311
|
},
|
|
305
312
|
computed: {
|
|
313
|
+
/**
|
|
314
|
+
* slide show delay to set to CSS
|
|
315
|
+
*/
|
|
316
|
+
cssSlideshowDelay() {
|
|
317
|
+
return `${this.slideshowDelay}ms`;
|
|
318
|
+
},
|
|
319
|
+
/**
|
|
320
|
+
* True if there are any buttons shown on the backdrop or a name (for accessibility)
|
|
321
|
+
*/
|
|
322
|
+
forceDarkBackdrop() {
|
|
323
|
+
return this.canClose && !this.closeButtonContained || this.hasNext || this.hasPrevious || this.modalName !== "" || Boolean(this.$slots.actions);
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
* Trimmed modal name
|
|
327
|
+
*/
|
|
328
|
+
modalName() {
|
|
329
|
+
return this.name.trim();
|
|
330
|
+
},
|
|
306
331
|
/**
|
|
307
332
|
* ID of the element to label the modal
|
|
308
333
|
*/
|
|
@@ -318,12 +343,6 @@ const _sfc_main = {
|
|
|
318
343
|
playPauseName() {
|
|
319
344
|
return this.playing ? t("Pause slideshow") : t("Start slideshow");
|
|
320
345
|
},
|
|
321
|
-
cssVariables() {
|
|
322
|
-
return {
|
|
323
|
-
"--slideshow-duration": this.slideshowDelay + "ms",
|
|
324
|
-
"--icon-size": this.iconSize + "px"
|
|
325
|
-
};
|
|
326
|
-
},
|
|
327
346
|
closeButtonAriaLabel() {
|
|
328
347
|
return t("Close");
|
|
329
348
|
},
|
|
@@ -452,7 +471,7 @@ const _sfc_main = {
|
|
|
452
471
|
* @param {import('@vueuse/core').SwipeDirection} direction Swipe direction
|
|
453
472
|
*/
|
|
454
473
|
handleSwipe(e, direction) {
|
|
455
|
-
if (this.enableSwipe) {
|
|
474
|
+
if (this.enableSwipe && !this.disableSwipe) {
|
|
456
475
|
if (direction === "left") {
|
|
457
476
|
this.next(e);
|
|
458
477
|
} else if (direction === "right") {
|
|
@@ -542,14 +561,25 @@ const _sfc_main = {
|
|
|
542
561
|
}
|
|
543
562
|
}
|
|
544
563
|
};
|
|
564
|
+
const __injectCSSVars__ = () => {
|
|
565
|
+
useCssVars((_vm, _setup) => ({
|
|
566
|
+
"8ad040f8": _vm.cssSlideshowDelay
|
|
567
|
+
}));
|
|
568
|
+
};
|
|
569
|
+
const __setup__ = __default__.setup;
|
|
570
|
+
__default__.setup = __setup__ ? (props, ctx) => {
|
|
571
|
+
__injectCSSVars__();
|
|
572
|
+
return __setup__(props, ctx);
|
|
573
|
+
} : __injectCSSVars__;
|
|
574
|
+
const _sfc_main = __default__;
|
|
545
575
|
var _sfc_render = function render3() {
|
|
546
576
|
var _vm = this, _c = _vm._self._c;
|
|
547
577
|
return _c("transition", { attrs: { "name": "fade", "appear": "" }, on: { "after-enter": _vm.useFocusTrap, "before-leave": _vm.clearFocusTrap } }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.showModal, expression: "showModal" }], ref: "mask", staticClass: "modal-mask", class: {
|
|
548
|
-
"modal-mask--opaque": _vm.dark ||
|
|
578
|
+
"modal-mask--opaque": _vm.dark || _vm.forceDarkBackdrop,
|
|
549
579
|
"modal-mask--light": _vm.lightBackdrop
|
|
550
|
-
},
|
|
551
|
-
return [_c("Close", { attrs: { "size":
|
|
552
|
-
}, proxy: true }], null, false,
|
|
580
|
+
}, attrs: { "role": "dialog", "aria-modal": "true", "aria-labelledby": _vm.modalLabelId, "aria-describedby": "modal-description-" + _vm.randId, "tabindex": "-1" } }, [_c("transition", { attrs: { "name": "fade-visibility", "appear": "" } }, [_c("div", { staticClass: "modal-header", attrs: { "data-theme-light": _vm.lightBackdrop, "data-theme-dark": !_vm.lightBackdrop } }, [_vm.modalName ? _c("h2", { staticClass: "modal-header__name", attrs: { "id": "modal-name-" + _vm.randId } }, [_vm._v(" " + _vm._s(_vm.modalName) + " ")]) : _vm._e(), _c("div", { staticClass: "icons-menu" }, [_vm.hasNext && _vm.enableSlideshow ? _c("button", { directives: [{ name: "tooltip", rawName: "v-tooltip.auto", value: _vm.playPauseName, expression: "playPauseName", modifiers: { "auto": true } }], staticClass: "play-pause-icons", class: { "play-pause-icons--paused": _vm.slideshowPaused }, attrs: { "type": "button" }, on: { "click": _vm.togglePlayPause } }, [!_vm.playing ? _c("Play", { staticClass: "play-pause-icons__play", attrs: { "size": 20 } }) : _c("Pause", { staticClass: "play-pause-icons__pause", attrs: { "size": 20 } }), _c("span", { staticClass: "hidden-visually" }, [_vm._v(" " + _vm._s(_vm.playPauseName) + " ")]), _vm.playing ? _c("svg", { staticClass: "progress-ring", attrs: { "height": "50", "width": "50" } }, [_c("circle", { staticClass: "progress-ring__circle", attrs: { "stroke": "white", "stroke-width": "2", "fill": "transparent", "r": "15", "cx": "25", "cy": "25" } })]) : _vm._e()], 1) : _vm._e(), _c("NcActions", { staticClass: "header-actions", attrs: { "inline": _vm.inlineActions } }, [_vm._t("actions")], 2), _vm.canClose && !_vm.closeButtonContained ? _c("NcButton", { staticClass: "header-close", attrs: { "aria-label": _vm.closeButtonAriaLabel, "type": "tertiary" }, on: { "click": _vm.close }, scopedSlots: _vm._u([{ key: "icon", fn: function() {
|
|
581
|
+
return [_c("Close", { attrs: { "size": 20 } })];
|
|
582
|
+
}, proxy: true }], null, false, 2121748766) }) : _vm._e()], 1)])]), _c("transition", { attrs: { "name": _vm.modalTransitionName, "appear": "" } }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.showModal, expression: "showModal" }], staticClass: "modal-wrapper", class: [
|
|
553
583
|
`modal-wrapper--${_vm.size}`,
|
|
554
584
|
{ "modal-wrapper--spread-navigation": _vm.spreadNavigation }
|
|
555
585
|
], on: { "mousedown": function($event) {
|
|
@@ -570,7 +600,7 @@ var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
|
570
600
|
_sfc_staticRenderFns,
|
|
571
601
|
false,
|
|
572
602
|
null,
|
|
573
|
-
"
|
|
603
|
+
"d5334a44"
|
|
574
604
|
);
|
|
575
605
|
const NcModal = __component__.exports;
|
|
576
606
|
ScopeComponent(NcModal);
|