@nextcloud/vue 8.38.0 → 8.40.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 +28 -0
- package/dist/Components/NcActionButton.cjs +1 -1
- package/dist/Components/NcActionButton.mjs +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/NcAppNavigationNew.cjs +1 -1
- package/dist/Components/NcAppNavigationNew.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/NcAppSettingsSection.cjs +1 -1
- package/dist/Components/NcAppSettingsSection.mjs +1 -1
- package/dist/Components/NcAppSettingsSectionShortcuts.cjs +1 -1
- package/dist/Components/NcAppSettingsSectionShortcuts.mjs +1 -1
- package/dist/Components/NcAppSettingsShortcutsSection.cjs +1 -1
- package/dist/Components/NcAppSettingsShortcutsSection.mjs +1 -1
- package/dist/Components/NcAppSidebar.cjs +1 -1
- package/dist/Components/NcAppSidebar.mjs +1 -1
- package/dist/Components/NcAssistantButton.cjs +1 -1
- package/dist/Components/NcAssistantButton.mjs +1 -1
- package/dist/Components/NcAssistantContent.cjs +4 -4
- package/dist/Components/NcAssistantContent.mjs +4 -4
- package/dist/Components/NcAssistantIcon.cjs +1 -1
- package/dist/Components/NcAssistantIcon.mjs +1 -1
- package/dist/Components/NcAvatar.cjs +1 -1
- package/dist/Components/NcAvatar.mjs +1 -1
- package/dist/Components/NcBlurHash.cjs +1 -1
- package/dist/Components/NcBlurHash.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 +1 -1
- package/dist/Components/NcButton.mjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
- package/dist/Components/NcChip.cjs +2 -2
- package/dist/Components/NcChip.mjs +2 -2
- 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/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/NcDateTimePicker.cjs +4 -4
- package/dist/Components/NcDateTimePicker.mjs +4 -4
- package/dist/Components/NcDateTimePickerNative.cjs +1 -1
- package/dist/Components/NcDateTimePickerNative.mjs +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/NcEmptyContent.cjs +2 -2
- package/dist/Components/NcEmptyContent.cjs.map +1 -1
- package/dist/Components/NcEmptyContent.mjs +2 -2
- package/dist/Components/NcEmptyContent.mjs.map +1 -1
- package/dist/Components/NcFilePicker.cjs +1 -1
- package/dist/Components/NcFilePicker.mjs +1 -1
- package/dist/Components/NcFormBox.cjs +1 -1
- package/dist/Components/NcFormBox.mjs +1 -1
- package/dist/Components/NcFormBoxButton.cjs +1 -1
- package/dist/Components/NcFormBoxButton.mjs +1 -1
- package/dist/Components/NcFormBoxCopyButton.cjs +1 -1
- package/dist/Components/NcFormBoxCopyButton.mjs +1 -1
- package/dist/Components/NcFormBoxSwitch.cjs +1 -1
- package/dist/Components/NcFormBoxSwitch.mjs +1 -1
- package/dist/Components/NcFormGroup.cjs +1 -1
- package/dist/Components/NcFormGroup.mjs +1 -1
- package/dist/Components/NcGuestContent.cjs +3 -9
- package/dist/Components/NcGuestContent.cjs.map +1 -1
- package/dist/Components/NcGuestContent.mjs +3 -9
- package/dist/Components/NcGuestContent.mjs.map +1 -1
- package/dist/Components/NcHeaderButton.cjs +1 -1
- package/dist/Components/NcHeaderButton.mjs +1 -1
- package/dist/Components/NcHeaderMenu.cjs +1 -1
- package/dist/Components/NcHeaderMenu.mjs +1 -1
- package/dist/Components/NcHotkey.cjs +1 -1
- package/dist/Components/NcHotkey.mjs +1 -1
- package/dist/Components/NcHotkeyList.cjs +1 -1
- package/dist/Components/NcHotkeyList.mjs +1 -1
- package/dist/Components/NcInputField.cjs +1 -1
- package/dist/Components/NcInputField.mjs +1 -1
- package/dist/Components/NcKbd.cjs +1 -1
- package/dist/Components/NcKbd.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 +3 -3
- package/dist/Components/NcModal.mjs +3 -3
- package/dist/Components/NcNoteCard.cjs +3 -3
- package/dist/Components/NcNoteCard.cjs.map +1 -1
- package/dist/Components/NcNoteCard.mjs +3 -3
- package/dist/Components/NcNoteCard.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/NcRadioGroup.cjs +1 -1
- package/dist/Components/NcRadioGroup.mjs +1 -1
- package/dist/Components/NcRadioGroupButton.cjs +1 -1
- package/dist/Components/NcRadioGroupButton.mjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
- package/dist/Components/NcRichContenteditable.cjs +1 -1
- package/dist/Components/NcRichContenteditable.mjs +1 -1
- package/dist/Components/NcRichText.cjs +3 -3
- package/dist/Components/NcRichText.mjs +4 -4
- 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/NcSelectUsers.cjs +1 -1
- package/dist/Components/NcSelectUsers.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/NcTextArea.cjs +1 -1
- package/dist/Components/NcTextArea.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/Functions/reference.cjs +2 -2
- package/dist/Functions/reference.mjs +2 -2
- package/dist/Functions/registerReference.cjs +1 -1
- package/dist/Functions/registerReference.mjs +1 -1
- package/dist/Functions/usernameToColor.cjs +1 -1
- package/dist/Functions/usernameToColor.mjs +1 -1
- package/dist/assets/{NcActionButton-CjKx3679.css → NcActionButton-CwGeOQFe.css} +3 -2
- package/dist/assets/{NcActionCheckbox-CzUElysW.css → NcActionCheckbox-DG9SyAAy.css} +3 -2
- package/dist/assets/{NcActionInput-CPu4Btyq.css → NcActionInput-ESkvZDNh.css} +66 -66
- package/dist/assets/{NcActionLink-Bt-73iBm.css → NcActionLink-CB74Y-9f.css} +3 -2
- package/dist/assets/{NcActionRadio-CROsOVZe.css → NcActionRadio-4a1cWuYb.css} +3 -2
- package/dist/assets/{NcActionRouter-Bpv5Ywxq.css → NcActionRouter-CyyaRzft.css} +3 -2
- package/dist/assets/{NcActionText-IMOkntPi.css → NcActionText-BMO_HKvg.css} +3 -2
- package/dist/assets/{NcActionTextEditable-AuLw5QVP.css → NcActionTextEditable-DPpx-OUr.css} +66 -66
- package/dist/assets/{NcAppContent-CKJUs-ZZ.css → NcAppContent-DyFYmhvX.css} +20 -20
- package/dist/assets/{NcAppNavigation-mcR7I0Bd.css → NcAppNavigation-B-X0bAXx.css} +18 -14
- package/dist/assets/{NcAppNavigationCaption-C7GtQb_y.css → NcAppNavigationCaption-NX44RnkW.css} +8 -8
- package/dist/assets/{NcAppNavigationItem-De04deJW.css → NcAppNavigationItem-D4T7UQqz.css} +78 -40
- package/dist/assets/{NcAppNavigationNewItem-CYSjj3pD.css → NcAppNavigationNewItem-CtObIA-e.css} +42 -4
- package/dist/assets/{NcAppNavigationSettings-2Wh1E3Hq.css → NcAppNavigationSettings-DGkLlCyq.css} +11 -11
- package/dist/assets/NcAppSettingsDialog-Bi5b1VZg.css +222 -0
- package/dist/assets/{NcAppSettingsSection-Yg4NYCih.css → NcAppSettingsSection-DU9FOAnJ.css} +7 -7
- package/dist/assets/{NcAppSettingsShortcutsSection-C_DMnyUy.css → NcAppSettingsShortcutsSection-zIKJEvmV.css} +3 -3
- package/dist/assets/{NcAppSidebar-BsMeIg8W.css → NcAppSidebar-DPorFaqk.css} +120 -59
- package/dist/assets/{NcAssistantButton-BNEXluSq.css → NcAssistantButton-CaIHaboe.css} +9 -9
- package/dist/assets/{NcAssistantContent-DrswfkY-.css → NcAssistantContent-D6ZguiGh.css} +3 -3
- package/dist/assets/{NcAssistantIcon-CdtR1Psu.css → NcAssistantIcon-Cmlid9NS.css} +4 -4
- package/dist/assets/{NcAvatar-CK9ipsjF.css → NcAvatar-Dc_YuZk2.css} +25 -25
- package/dist/assets/{NcBlurHash-CT92vFpc.css → NcBlurHash-BW1TQ16k.css} +2 -2
- package/dist/assets/{NcBreadcrumb-0xB19h6f.css → NcBreadcrumb-DyXnSA6l.css} +16 -16
- package/dist/assets/{NcButton-C5JW43jM.css → NcButton-C-bkSL_r.css} +51 -48
- package/dist/assets/{NcCheckboxRadioSwitch-BojbloxL.css → NcCheckboxRadioSwitch-DhXG73Zr.css} +53 -51
- package/dist/assets/{NcColorPicker-CCqpXoam.css → NcColorPicker-DjmfbD2K.css} +32 -32
- package/dist/assets/{NcContent-a67pCVHO.css → NcContent-rDfulBCh.css} +22 -11
- package/dist/assets/{NcDateTimePicker-DrfMaKM7.css → NcDateTimePicker-DuZR5gqu.css} +8 -8
- package/dist/assets/{NcEmptyContent-CUFc_Dds.css → NcEmptyContent-DAR2ze6H.css} +10 -10
- package/dist/assets/{NcFilePicker-BokX813z.css → NcFilePicker-D_SA_uGV.css} +1 -1
- package/dist/assets/{NcFormBox-9NY7pxez.css → NcFormBox-yb5gffYX.css} +11 -11
- package/dist/assets/{NcFormBoxButton-BlS280R1.css → NcFormBoxButton-BnSImmUm.css} +2 -2
- package/dist/assets/{NcFormBoxItem-BdFKDYqL.css → NcFormBoxItem-DiaYRoDl.css} +17 -13
- package/dist/assets/{NcFormBoxSwitch-CXtmxIfB.css → NcFormBoxSwitch-CDDwfQx6.css} +2 -2
- package/dist/assets/{NcFormGroup-uKT9TTrz.css → NcFormGroup-ChUa97BY.css} +8 -8
- package/dist/assets/{NcGuestContent-BkegjnLL.css → NcGuestContent-27hnc8yQ.css} +3 -3
- package/dist/assets/{NcHotkey-9k8cxWO5.css → NcHotkey-B-GNBJym.css} +8 -8
- package/dist/assets/{NcHotkeyList-CNWXE5jg.css → NcHotkeyList-D7NVZF42.css} +3 -3
- package/dist/assets/{NcIconToggleSwitch-sDZkWAmc.css → NcIconToggleSwitch-Df8M_g5F.css} +4 -4
- package/dist/assets/NcInputConfirmCancel-DRZviUxz.css +53 -0
- package/dist/assets/{NcInputField-Cc-l-KGd.css → NcInputField-KvlF4emB.css} +46 -46
- package/dist/assets/{NcKbd-8TOrFNAw.css → NcKbd-BQUEINsB.css} +3 -3
- package/dist/assets/{NcListItem-DP1egljH.css → NcListItem-3a4Lafwa.css} +47 -47
- package/dist/assets/{NcNoteCard-CwNXZ4vV.css → NcNoteCard-C4SocW9G.css} +13 -13
- package/dist/assets/{NcPopover-CJgeCuwk.css → NcPopover-CVOTdP6j.css} +13 -13
- package/dist/assets/{NcRadioGroup-Dss0ok3g.css → NcRadioGroup-DQde-Yd1.css} +2 -2
- package/dist/assets/{NcRadioGroupButton-CMOW3Q4J.css → NcRadioGroupButton-Dwpy1m0F.css} +14 -14
- package/dist/assets/{NcRelatedResourcesPanel-CTpqdDL9.css → NcRelatedResourcesPanel-D5DxWJPc.css} +30 -30
- package/dist/assets/{NcRichContenteditable-DwS6PNCv.css → NcRichContenteditable-Dwd67_kU.css} +29 -29
- package/dist/assets/{NcRichText-Cp_5tfBy.css → NcRichText-D0xtzoWq.css} +91 -91
- package/dist/assets/{NcSettingsSection-D_qeKnRb.css → NcSettingsSection-Fyy2lFk_.css} +9 -9
- package/dist/assets/{NcTextArea-BtG5_qHD.css → NcTextArea-BMPUvHVL.css} +28 -28
- package/dist/assets/{autolink-KPdaBewQ.css → autolink-CR5N0xNQ.css} +3 -3
- package/dist/assets/{referencePickerModal-CGtNx7ew.css → referencePickerModal-C4Pr02xT.css} +53 -18
- package/dist/chunks/{NcActionButton-CiYel4_C.cjs → NcActionButton-B1jvJWjl.cjs} +2 -2
- package/dist/chunks/{NcActionButton-CiYel4_C.cjs.map → NcActionButton-B1jvJWjl.cjs.map} +1 -1
- package/dist/chunks/{NcActionButton-K4jUGMlW.mjs → NcActionButton-D7uypboC.mjs} +2 -2
- package/dist/chunks/{NcActionButton-K4jUGMlW.mjs.map → NcActionButton-D7uypboC.mjs.map} +1 -1
- package/dist/chunks/{NcActionCheckbox-BGCUJhg_.cjs → NcActionCheckbox-B3vUOSeb.cjs} +2 -2
- package/dist/chunks/{NcActionCheckbox-BGCUJhg_.cjs.map → NcActionCheckbox-B3vUOSeb.cjs.map} +1 -1
- package/dist/chunks/{NcActionCheckbox-23CmleUh.mjs → NcActionCheckbox-Cbg5yktN.mjs} +2 -2
- package/dist/chunks/{NcActionCheckbox-23CmleUh.mjs.map → NcActionCheckbox-Cbg5yktN.mjs.map} +1 -1
- package/dist/chunks/{NcActionInput-D3w0eGfB.cjs → NcActionInput-DITmqZz5.cjs} +5 -5
- package/dist/chunks/{NcActionInput-D3w0eGfB.cjs.map → NcActionInput-DITmqZz5.cjs.map} +1 -1
- package/dist/chunks/{NcActionInput-B_9GOTi6.mjs → NcActionInput-Xepxb1Nk.mjs} +5 -5
- package/dist/chunks/{NcActionInput-B_9GOTi6.mjs.map → NcActionInput-Xepxb1Nk.mjs.map} +1 -1
- package/dist/chunks/{NcActionRadio-Dd3CsuiD.mjs → NcActionRadio-B2bgbBHw.mjs} +2 -2
- package/dist/chunks/{NcActionRadio-Dd3CsuiD.mjs.map → NcActionRadio-B2bgbBHw.mjs.map} +1 -1
- package/dist/chunks/{NcActionRadio-DbkRiTHX.cjs → NcActionRadio-BJSZBI9N.cjs} +2 -2
- package/dist/chunks/{NcActionRadio-DbkRiTHX.cjs.map → NcActionRadio-BJSZBI9N.cjs.map} +1 -1
- package/dist/chunks/{NcActionTextEditable-YqvZGY07.mjs → NcActionTextEditable-BykT5Byh.mjs} +3 -3
- package/dist/chunks/{NcActionTextEditable-BqJ5wONY.cjs.map → NcActionTextEditable-BykT5Byh.mjs.map} +1 -1
- package/dist/chunks/{NcActionTextEditable-BqJ5wONY.cjs → NcActionTextEditable-D4nvhJff.cjs} +3 -3
- package/dist/chunks/{NcActionTextEditable-YqvZGY07.mjs.map → NcActionTextEditable-D4nvhJff.cjs.map} +1 -1
- package/dist/chunks/{NcActions-0fAYsGbh.cjs → NcActions-DYWuXM9w.cjs} +3 -3
- package/dist/chunks/{NcActions-0fAYsGbh.cjs.map → NcActions-DYWuXM9w.cjs.map} +1 -1
- package/dist/chunks/{NcActions-Ca_2vj8f.mjs → NcActions-JnumflF4.mjs} +3 -3
- package/dist/chunks/{NcActions-Ca_2vj8f.mjs.map → NcActions-JnumflF4.mjs.map} +1 -1
- package/dist/chunks/{NcAppContent-B95Sj4-X.cjs → NcAppContent-BDqXhfww.cjs} +4 -4
- package/dist/chunks/{NcAppContent-B95Sj4-X.cjs.map → NcAppContent-BDqXhfww.cjs.map} +1 -1
- package/dist/chunks/{NcAppContent-HZ-Lp090.mjs → NcAppContent-BScPRxTJ.mjs} +4 -4
- package/dist/chunks/{NcAppContent-HZ-Lp090.mjs.map → NcAppContent-BScPRxTJ.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigation-BPqJExo6.mjs → NcAppNavigation-C4iIEWY3.mjs} +11 -6
- package/dist/chunks/NcAppNavigation-C4iIEWY3.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigation-BDxzq-ai.cjs → NcAppNavigation-qz271rGf.cjs} +11 -6
- package/dist/chunks/NcAppNavigation-qz271rGf.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigationCaption-Bt51pgle.mjs → NcAppNavigationCaption-BJnvmftc.mjs} +4 -4
- package/dist/chunks/{NcAppNavigationCaption-CQZ7ZrEO.cjs.map → NcAppNavigationCaption-BJnvmftc.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-CQZ7ZrEO.cjs → NcAppNavigationCaption-CYN9-_R2.cjs} +4 -4
- package/dist/chunks/{NcAppNavigationCaption-Bt51pgle.mjs.map → NcAppNavigationCaption-CYN9-_R2.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-DcKt7SjF.mjs → NcAppNavigationItem-DRaKry-f.mjs} +17 -11
- package/dist/chunks/NcAppNavigationItem-DRaKry-f.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationItem-BBZ1SsqQ.cjs → NcAppNavigationItem-qRteEY0G.cjs} +17 -11
- package/dist/chunks/NcAppNavigationItem-qRteEY0G.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigationNew-DljLy9CQ.cjs → NcAppNavigationNew-BAuYV_06.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationNew-DljLy9CQ.cjs.map → NcAppNavigationNew-BAuYV_06.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNew-B5ikLvxM.mjs → NcAppNavigationNew-BOfIdgIu.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationNew-B5ikLvxM.mjs.map → NcAppNavigationNew-BOfIdgIu.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-C6gqVpBt.cjs → NcAppNavigationNewItem-B-29d1We.cjs} +3 -3
- package/dist/chunks/{NcAppNavigationNewItem-C6gqVpBt.cjs.map → NcAppNavigationNewItem-B-29d1We.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-BqhwbJsJ.mjs → NcAppNavigationNewItem-KbbB-8vX.mjs} +3 -3
- package/dist/chunks/{NcAppNavigationNewItem-BqhwbJsJ.mjs.map → NcAppNavigationNewItem-KbbB-8vX.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-B6u1Ln1_.mjs → NcAppNavigationSearch-CI_e6Rva.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationSearch-B6u1Ln1_.mjs.map → NcAppNavigationSearch-CI_e6Rva.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-CliHANzA.cjs → NcAppNavigationSearch-Du8eBuvW.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationSearch-CliHANzA.cjs.map → NcAppNavigationSearch-Du8eBuvW.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-BfysBg80.mjs → NcAppNavigationSettings-BN3w-BCp.mjs} +5 -5
- package/dist/chunks/{NcAppNavigationSettings-BfysBg80.mjs.map → NcAppNavigationSettings-BN3w-BCp.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-ClcR05vZ.cjs → NcAppNavigationSettings-C2Txc8sh.cjs} +5 -5
- package/dist/chunks/{NcAppNavigationSettings-ClcR05vZ.cjs.map → NcAppNavigationSettings-C2Txc8sh.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-CLPYPwyi.cjs → NcAppNavigationToggle-B7K9pxVq.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationToggle-CLPYPwyi.cjs.map → NcAppNavigationToggle-B7K9pxVq.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-DtJjJGQ5.mjs → NcAppNavigationToggle-CZqz-wC8.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationToggle-DtJjJGQ5.mjs.map → NcAppNavigationToggle-CZqz-wC8.mjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-D0M18YFD.mjs → NcAppSettingsDialog-C7Oywy1u.mjs} +11 -10
- package/dist/chunks/NcAppSettingsDialog-C7Oywy1u.mjs.map +1 -0
- package/dist/chunks/{NcAppSettingsDialog-C2-LWcDG.cjs → NcAppSettingsDialog-DhHJQute.cjs} +13 -12
- package/dist/chunks/NcAppSettingsDialog-DhHJQute.cjs.map +1 -0
- package/dist/chunks/{NcAppSettingsSection-BjQllLEA.mjs → NcAppSettingsSection-CsGyNFSh.mjs} +3 -3
- package/dist/chunks/{NcAppSettingsSection-BjQllLEA.mjs.map → NcAppSettingsSection-CsGyNFSh.mjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsSection-CDLQ-AjK.cjs → NcAppSettingsSection-De6vkXOF.cjs} +3 -3
- package/dist/chunks/{NcAppSettingsSection-CDLQ-AjK.cjs.map → NcAppSettingsSection-De6vkXOF.cjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsShortcutsSection-DgGU8-cF.cjs → NcAppSettingsShortcutsSection-CLKzAASc.cjs} +5 -5
- package/dist/chunks/NcAppSettingsShortcutsSection-CLKzAASc.cjs.map +1 -0
- package/dist/chunks/{NcAppSettingsShortcutsSection-DblUBaWP.mjs → NcAppSettingsShortcutsSection-D3ylJW58.mjs} +5 -5
- package/dist/chunks/NcAppSettingsShortcutsSection-D3ylJW58.mjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-Bljse39J.mjs → NcAppSidebar-CEo2tgBa.mjs} +11 -9
- package/dist/chunks/NcAppSidebar-CEo2tgBa.mjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-BYHXZjYR.cjs → NcAppSidebar-DJ8JImth.cjs} +11 -9
- package/dist/chunks/NcAppSidebar-DJ8JImth.cjs.map +1 -0
- package/dist/chunks/{NcAssistantButton-BdUkhzq1.mjs → NcAssistantButton-CHiZT-vH.mjs} +11 -11
- package/dist/chunks/{NcAssistantButton-BdUkhzq1.mjs.map → NcAssistantButton-CHiZT-vH.mjs.map} +1 -1
- package/dist/chunks/{NcAssistantButton-mPenTfuv.cjs → NcAssistantButton-CPlpv0Sl.cjs} +11 -11
- package/dist/chunks/{NcAssistantButton-mPenTfuv.cjs.map → NcAssistantButton-CPlpv0Sl.cjs.map} +1 -1
- package/dist/chunks/{NcAssistantIcon-CD5mu9O1.cjs → NcAssistantIcon-CS-KbVIN.cjs} +6 -6
- package/dist/chunks/{NcAssistantIcon-CD5mu9O1.cjs.map → NcAssistantIcon-CS-KbVIN.cjs.map} +1 -1
- package/dist/chunks/{NcAssistantIcon-DCx6AaSW.mjs → NcAssistantIcon-mcLe7umL.mjs} +6 -6
- package/dist/chunks/{NcAssistantIcon-DCx6AaSW.mjs.map → NcAssistantIcon-mcLe7umL.mjs.map} +1 -1
- package/dist/chunks/{NcAvatar-CGnqUtoy.mjs → NcAvatar-BBqomFJ3.mjs} +8 -8
- package/dist/chunks/{NcAvatar-CGnqUtoy.mjs.map → NcAvatar-BBqomFJ3.mjs.map} +1 -1
- package/dist/chunks/{NcAvatar-DP8TpFfy.cjs → NcAvatar-BFWbPSke.cjs} +8 -8
- package/dist/chunks/{NcAvatar-DP8TpFfy.cjs.map → NcAvatar-BFWbPSke.cjs.map} +1 -1
- package/dist/chunks/{NcBlurHash-KSj0HXbX.mjs → NcBlurHash-CP2UBH-9.mjs} +4 -4
- package/dist/chunks/{NcBlurHash-KSj0HXbX.mjs.map → NcBlurHash-CP2UBH-9.mjs.map} +1 -1
- package/dist/chunks/{NcBlurHash-D0wcwBet.cjs → NcBlurHash-DEa3MZG5.cjs} +4 -4
- package/dist/chunks/{NcBlurHash-D0wcwBet.cjs.map → NcBlurHash-DEa3MZG5.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-DH2FV6QI.mjs → NcBreadcrumb-BN1Qrbjc.mjs} +5 -5
- package/dist/chunks/{NcBreadcrumb-hK0W8qx4.cjs.map → NcBreadcrumb-BN1Qrbjc.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-hK0W8qx4.cjs → NcBreadcrumb-D81qHmqH.cjs} +5 -5
- package/dist/chunks/{NcBreadcrumb-DH2FV6QI.mjs.map → NcBreadcrumb-D81qHmqH.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-pDN1N49I.cjs → NcBreadcrumbs-DxnTSsvR.cjs} +4 -4
- package/dist/chunks/{NcBreadcrumbs-pDN1N49I.cjs.map → NcBreadcrumbs-DxnTSsvR.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-DrYYSHAS.mjs → NcBreadcrumbs-OySgLqXi.mjs} +4 -4
- package/dist/chunks/{NcBreadcrumbs-DrYYSHAS.mjs.map → NcBreadcrumbs-OySgLqXi.mjs.map} +1 -1
- package/dist/chunks/{NcButton-DaWD-X8V.cjs → NcButton-B3UxfMyE.cjs} +5 -4
- package/dist/chunks/NcButton-B3UxfMyE.cjs.map +1 -0
- package/dist/chunks/{NcButton-BgppWSl9.mjs → NcButton-D6Swkr1k.mjs} +5 -4
- package/dist/chunks/NcButton-D6Swkr1k.mjs.map +1 -0
- package/dist/chunks/{NcCheckboxRadioSwitch-BQeglWXd.cjs → NcCheckboxRadioSwitch-BonPjuho.cjs} +7 -7
- package/dist/chunks/NcCheckboxRadioSwitch-BonPjuho.cjs.map +1 -0
- package/dist/chunks/{NcCheckboxRadioSwitch-D4IV4zWy.mjs → NcCheckboxRadioSwitch-Ddl_QlRN.mjs} +7 -7
- package/dist/chunks/NcCheckboxRadioSwitch-Ddl_QlRN.mjs.map +1 -0
- package/dist/chunks/{NcCollectionList-DgLrYZ6o.cjs → NcCollectionList-BXSYaf2B.cjs} +6 -6
- package/dist/chunks/NcCollectionList-BXSYaf2B.cjs.map +1 -0
- package/dist/chunks/{NcCollectionList-BbmBJ4ET.mjs → NcCollectionList-q7zkDwqG.mjs} +6 -6
- package/dist/chunks/NcCollectionList-q7zkDwqG.mjs.map +1 -0
- package/dist/chunks/{NcColorPicker-DNpKf7gx.cjs → NcColorPicker-CO85TDOK.cjs} +6 -6
- package/dist/chunks/{NcColorPicker-DNpKf7gx.cjs.map → NcColorPicker-CO85TDOK.cjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-Bzzw1uKu.mjs → NcColorPicker-DlAxFoRr.mjs} +6 -6
- package/dist/chunks/{NcColorPicker-Bzzw1uKu.mjs.map → NcColorPicker-DlAxFoRr.mjs.map} +1 -1
- package/dist/chunks/{NcContent-DpGM2KRx.mjs → NcContent-BgMXU5Dv.mjs} +8 -6
- package/dist/chunks/{NcContent-CMjQ3dfw.cjs.map → NcContent-BgMXU5Dv.mjs.map} +1 -1
- package/dist/chunks/{NcContent-CMjQ3dfw.cjs → NcContent-D5FcB_7G.cjs} +8 -6
- package/dist/chunks/{NcContent-DpGM2KRx.mjs.map → NcContent-D5FcB_7G.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-DuoTxAyf.cjs → NcDashboardWidget-DnR3x-B1.cjs} +3 -3
- package/dist/chunks/{NcDashboardWidget-DuoTxAyf.cjs.map → NcDashboardWidget-DnR3x-B1.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-NOuL4APU.mjs → NcDashboardWidget-oyS__D-B.mjs} +3 -3
- package/dist/chunks/{NcDashboardWidget-NOuL4APU.mjs.map → NcDashboardWidget-oyS__D-B.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-BFsKgWo2.cjs → NcDashboardWidgetItem-NxvhaIPP.cjs} +4 -4
- package/dist/chunks/{NcDashboardWidgetItem-BFsKgWo2.cjs.map → NcDashboardWidgetItem-NxvhaIPP.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-CBW263ij.mjs → NcDashboardWidgetItem-uYQMYeJS.mjs} +4 -4
- package/dist/chunks/{NcDashboardWidgetItem-CBW263ij.mjs.map → NcDashboardWidgetItem-uYQMYeJS.mjs.map} +1 -1
- package/dist/chunks/NcDateTime-DE-ltgw2.cjs.map +1 -1
- package/dist/chunks/NcDateTime-enXYuwj8.mjs.map +1 -1
- package/dist/chunks/{NcDialog-BCCBuI6f.mjs → NcDialog-DmRqcm3W.mjs} +2 -2
- package/dist/chunks/{NcDialog-BCCBuI6f.mjs.map → NcDialog-DmRqcm3W.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-x3G0Nuve.cjs → NcDialog-W8ujIWJd.cjs} +2 -2
- package/dist/chunks/{NcDialog-x3G0Nuve.cjs.map → NcDialog-W8ujIWJd.cjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-DpA4mqr-.mjs → NcDialogButton-Bqjj-wmb.mjs} +2 -2
- package/dist/chunks/{NcDialogButton-DpA4mqr-.mjs.map → NcDialogButton-Bqjj-wmb.mjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-DBtmgcol.cjs → NcDialogButton-C8RbaSqF.cjs} +2 -2
- package/dist/chunks/{NcDialogButton-DBtmgcol.cjs.map → NcDialogButton-C8RbaSqF.cjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-DefnK492.cjs → NcEmojiPicker-7aElsqCQ.cjs} +6 -6
- package/dist/chunks/{NcEmojiPicker-DefnK492.cjs.map → NcEmojiPicker-7aElsqCQ.cjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-C4jCrwQY.mjs → NcEmojiPicker-ClkGGFdW.mjs} +6 -6
- package/dist/chunks/{NcEmojiPicker-C4jCrwQY.mjs.map → NcEmojiPicker-ClkGGFdW.mjs.map} +1 -1
- package/dist/chunks/{NcFilePicker-DCPi6JGg.mjs → NcFilePicker-B57HJpaE.mjs} +5 -5
- package/dist/chunks/{NcFilePicker-DCPi6JGg.mjs.map → NcFilePicker-B57HJpaE.mjs.map} +1 -1
- package/dist/chunks/{NcFilePicker-BYWr-vcP.cjs → NcFilePicker-DaUHiwFm.cjs} +5 -5
- package/dist/chunks/{NcFilePicker-BYWr-vcP.cjs.map → NcFilePicker-DaUHiwFm.cjs.map} +1 -1
- package/dist/chunks/{NcFormBox-DtoCXLMx.mjs → NcFormBox-Bd7m8ffs.mjs} +7 -7
- package/dist/chunks/{NcFormBox-DtoCXLMx.mjs.map → NcFormBox-Bd7m8ffs.mjs.map} +1 -1
- package/dist/chunks/{NcFormBox-DRGVpFeZ.cjs → NcFormBox-LJwAiXyR.cjs} +7 -7
- package/dist/chunks/{NcFormBox-DRGVpFeZ.cjs.map → NcFormBox-LJwAiXyR.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxButton-BO2bMnah.cjs → NcFormBoxButton-BDI6Q7WA.cjs} +5 -5
- package/dist/chunks/{NcFormBoxButton-BO2bMnah.cjs.map → NcFormBoxButton-BDI6Q7WA.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxButton-BQi11xQX.mjs → NcFormBoxButton-CRL7kucw.mjs} +5 -5
- package/dist/chunks/{NcFormBoxButton-BQi11xQX.mjs.map → NcFormBoxButton-CRL7kucw.mjs.map} +1 -1
- package/dist/chunks/{NcFormBoxCopyButton-BkunQ3me.mjs → NcFormBoxCopyButton-BOENrJAS.mjs} +2 -2
- package/dist/chunks/{NcFormBoxCopyButton-BkunQ3me.mjs.map → NcFormBoxCopyButton-BOENrJAS.mjs.map} +1 -1
- package/dist/chunks/{NcFormBoxCopyButton-B2GrmfEz.cjs → NcFormBoxCopyButton-Bk121Oc2.cjs} +2 -2
- package/dist/chunks/{NcFormBoxCopyButton-B2GrmfEz.cjs.map → NcFormBoxCopyButton-Bk121Oc2.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxItem-Cu3gWo1q.mjs → NcFormBoxItem-DasY7_rJ.mjs} +12 -12
- package/dist/chunks/{NcFormBoxItem-y2AfRFCy.cjs.map → NcFormBoxItem-DasY7_rJ.mjs.map} +1 -1
- package/dist/chunks/{NcFormBoxItem-y2AfRFCy.cjs → NcFormBoxItem-Dmcja_Xa.cjs} +12 -12
- package/dist/chunks/{NcFormBoxItem-Cu3gWo1q.mjs.map → NcFormBoxItem-Dmcja_Xa.cjs.map} +1 -1
- package/dist/chunks/{NcFormBoxSwitch-OoIgFMb9.cjs → NcFormBoxSwitch-CEO4FLdd.cjs} +6 -6
- package/dist/chunks/NcFormBoxSwitch-CEO4FLdd.cjs.map +1 -0
- package/dist/chunks/{NcFormBoxSwitch-E6sxPL4n.mjs → NcFormBoxSwitch-bdRBjKGq.mjs} +6 -6
- package/dist/chunks/NcFormBoxSwitch-bdRBjKGq.mjs.map +1 -0
- package/dist/chunks/{NcFormGroup-DblLoFMf.mjs → NcFormGroup-tW-MwPUj.mjs} +9 -9
- package/dist/chunks/{NcFormGroup-DblLoFMf.mjs.map → NcFormGroup-tW-MwPUj.mjs.map} +1 -1
- package/dist/chunks/{NcFormGroup-AxkxubKD.cjs → NcFormGroup-wzUs2kfP.cjs} +9 -9
- package/dist/chunks/{NcFormGroup-AxkxubKD.cjs.map → NcFormGroup-wzUs2kfP.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderButton-DXdY8gct.mjs → NcHeaderButton-MEyDJghO.mjs} +2 -2
- package/dist/chunks/{NcHeaderButton-DXdY8gct.mjs.map → NcHeaderButton-MEyDJghO.mjs.map} +1 -1
- package/dist/chunks/{NcHeaderButton-iEtQ74pa.cjs → NcHeaderButton-SRHcPWsp.cjs} +2 -2
- package/dist/chunks/{NcHeaderButton-iEtQ74pa.cjs.map → NcHeaderButton-SRHcPWsp.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-efsSG80P.cjs → NcHeaderMenu-C-K0LFEH.cjs} +2 -2
- package/dist/chunks/{NcHeaderMenu-efsSG80P.cjs.map → NcHeaderMenu-C-K0LFEH.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-BZnnbLTo.mjs → NcHeaderMenu-jHItu4LV.mjs} +2 -2
- package/dist/chunks/{NcHeaderMenu-BZnnbLTo.mjs.map → NcHeaderMenu-jHItu4LV.mjs.map} +1 -1
- package/dist/chunks/{NcHotkey-vKyDZ2a7.cjs → NcHotkey-CLFZr-9x.cjs} +7 -7
- package/dist/chunks/{NcHotkey-vKyDZ2a7.cjs.map → NcHotkey-CLFZr-9x.cjs.map} +1 -1
- package/dist/chunks/{NcHotkey-CLLtt9LG.mjs → NcHotkey-CpgacYSd.mjs} +7 -7
- package/dist/chunks/{NcHotkey-CLLtt9LG.mjs.map → NcHotkey-CpgacYSd.mjs.map} +1 -1
- package/dist/chunks/{NcHotkeyList-Co7MBL5U.mjs → NcHotkeyList-BYFbKo6_.mjs} +4 -4
- package/dist/chunks/NcHotkeyList-BYFbKo6_.mjs.map +1 -0
- package/dist/chunks/{NcHotkeyList-DhFQdopw.cjs → NcHotkeyList-C_w3SAG_.cjs} +4 -4
- package/dist/chunks/NcHotkeyList-C_w3SAG_.cjs.map +1 -0
- package/dist/chunks/{NcIconToggleSwitch-LTgdIBoC.cjs → NcIconToggleSwitch-Boo2ulI6.cjs} +4 -4
- package/dist/chunks/{NcIconToggleSwitch-LTgdIBoC.cjs.map → NcIconToggleSwitch-Boo2ulI6.cjs.map} +1 -1
- package/dist/chunks/{NcIconToggleSwitch-0NTw7i-t.mjs → NcIconToggleSwitch-DCTeQGv5.mjs} +4 -4
- package/dist/chunks/{NcIconToggleSwitch-0NTw7i-t.mjs.map → NcIconToggleSwitch-DCTeQGv5.mjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-CTvNhtqM.cjs → NcInputConfirmCancel-CcPcB-bZ.cjs} +9 -5
- package/dist/chunks/NcInputConfirmCancel-CcPcB-bZ.cjs.map +1 -0
- package/dist/chunks/{NcInputConfirmCancel-LAJSyhOn.mjs → NcInputConfirmCancel-zqo4ijEJ.mjs} +9 -5
- package/dist/chunks/NcInputConfirmCancel-zqo4ijEJ.mjs.map +1 -0
- package/dist/chunks/{NcInputField-j5EyU7QH.mjs → NcInputField-BrzZ8Bne.mjs} +5 -5
- package/dist/chunks/{NcInputField-j5EyU7QH.mjs.map → NcInputField-BrzZ8Bne.mjs.map} +1 -1
- package/dist/chunks/{NcInputField-DX2Jz57P.cjs → NcInputField-DPby7_cZ.cjs} +5 -5
- package/dist/chunks/{NcInputField-DX2Jz57P.cjs.map → NcInputField-DPby7_cZ.cjs.map} +1 -1
- package/dist/chunks/{NcKbd-GB8FuSAU.mjs → NcKbd-CXJA9sCj.mjs} +4 -4
- package/dist/chunks/{NcKbd-GB8FuSAU.mjs.map → NcKbd-CXJA9sCj.mjs.map} +1 -1
- package/dist/chunks/{NcKbd-DbjnDaJH.cjs → NcKbd-uMv3QPhD.cjs} +4 -4
- package/dist/chunks/{NcKbd-DbjnDaJH.cjs.map → NcKbd-uMv3QPhD.cjs.map} +1 -1
- package/dist/chunks/{NcListItem-C14yh4-n.cjs → NcListItem-BjV4Jjw0.cjs} +4 -4
- package/dist/chunks/{NcListItem-D0JDzXkL.mjs.map → NcListItem-BjV4Jjw0.cjs.map} +1 -1
- package/dist/chunks/{NcListItem-D0JDzXkL.mjs → NcListItem-Ciok4H4t.mjs} +4 -4
- package/dist/chunks/{NcListItem-C14yh4-n.cjs.map → NcListItem-Ciok4H4t.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-D35XZDGI.mjs → NcListItemIcon-DdkIQyoP.mjs} +2 -2
- package/dist/chunks/{NcListItemIcon-D35XZDGI.mjs.map → NcListItemIcon-DdkIQyoP.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-BccR3hro.cjs → NcListItemIcon-DukIl2hl.cjs} +2 -2
- package/dist/chunks/{NcListItemIcon-BccR3hro.cjs.map → NcListItemIcon-DukIl2hl.cjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-BkY96Kt0.cjs → NcPasswordField-9QeCVkJe.cjs} +2 -2
- package/dist/chunks/{NcPasswordField-BkY96Kt0.cjs.map → NcPasswordField-9QeCVkJe.cjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-HQK5d_nv.mjs → NcPasswordField-CSeFP0Uz.mjs} +2 -2
- package/dist/chunks/{NcPasswordField-HQK5d_nv.mjs.map → NcPasswordField-CSeFP0Uz.mjs.map} +1 -1
- package/dist/chunks/{NcPopover-Ujf9nIvN.cjs → NcPopover-BIGPurEP.cjs} +4 -4
- package/dist/chunks/{NcPopover-Ujf9nIvN.cjs.map → NcPopover-BIGPurEP.cjs.map} +1 -1
- package/dist/chunks/{NcPopover-UAg26Qdd.mjs → NcPopover-BzTp7LfM.mjs} +4 -4
- package/dist/chunks/{NcPopover-UAg26Qdd.mjs.map → NcPopover-BzTp7LfM.mjs.map} +1 -1
- package/dist/chunks/{NcRadioGroup-CsPmwGlc.cjs → NcRadioGroup-BbMUIkWl.cjs} +6 -6
- package/dist/chunks/{NcRadioGroup-CsPmwGlc.cjs.map → NcRadioGroup-BbMUIkWl.cjs.map} +1 -1
- package/dist/chunks/{NcRadioGroup-BbBX9X2J.mjs → NcRadioGroup-D4kc6Jjr.mjs} +6 -6
- package/dist/chunks/{NcRadioGroup-BbBX9X2J.mjs.map → NcRadioGroup-D4kc6Jjr.mjs.map} +1 -1
- package/dist/chunks/{NcRadioGroupButton-6skMHhr7.cjs → NcRadioGroupButton-7ImC11aP.cjs} +8 -8
- package/dist/chunks/{NcRadioGroupButton-6skMHhr7.cjs.map → NcRadioGroupButton-7ImC11aP.cjs.map} +1 -1
- package/dist/chunks/{NcRadioGroupButton-BkxlxjIA.mjs → NcRadioGroupButton-B8a5TW2l.mjs} +8 -8
- package/dist/chunks/{NcRadioGroupButton-BkxlxjIA.mjs.map → NcRadioGroupButton-B8a5TW2l.mjs.map} +1 -1
- package/dist/chunks/{NcRelatedResourcesPanel-BmpOFhV1.cjs → NcRelatedResourcesPanel-C7r-tIz-.cjs} +7 -7
- package/dist/chunks/NcRelatedResourcesPanel-C7r-tIz-.cjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-BdmY-Mly.mjs → NcRelatedResourcesPanel-CFp3GPty.mjs} +7 -7
- package/dist/chunks/NcRelatedResourcesPanel-CFp3GPty.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-BcTSkyeW.mjs → NcRichContenteditable-CG7oWfBl.mjs} +22 -22
- package/dist/chunks/NcRichContenteditable-CG7oWfBl.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-QnLNsBkB.cjs → NcRichContenteditable-DbhcrLP_.cjs} +22 -22
- package/dist/chunks/NcRichContenteditable-DbhcrLP_.cjs.map +1 -0
- package/dist/chunks/{NcRichText-DZgAb6-3.mjs → NcRichText-C3Nj11Wy.mjs} +117 -31
- package/dist/chunks/NcRichText-C3Nj11Wy.mjs.map +1 -0
- package/dist/chunks/{NcRichText-CiRdCF_B.cjs → NcRichText-b0ZZCvrD.cjs} +117 -31
- package/dist/chunks/NcRichText-b0ZZCvrD.cjs.map +1 -0
- package/dist/chunks/{NcSelect-DVXAVRT_.cjs → NcSelect-BYRnqQaI.cjs} +3 -3
- package/dist/chunks/{NcSelect-DVXAVRT_.cjs.map → NcSelect-BYRnqQaI.cjs.map} +1 -1
- package/dist/chunks/{NcSelect-FwcxH76q.mjs → NcSelect-DrKzKPZL.mjs} +3 -3
- package/dist/chunks/{NcSelect-FwcxH76q.mjs.map → NcSelect-DrKzKPZL.mjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-BNFcTbHy.cjs → NcSelectTags-CL8AQw8J.cjs} +2 -2
- package/dist/chunks/{NcSelectTags-BNFcTbHy.cjs.map → NcSelectTags-CL8AQw8J.cjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-yZfa_z_z.mjs → NcSelectTags-D8pmnLor.mjs} +2 -2
- package/dist/chunks/{NcSelectTags-yZfa_z_z.mjs.map → NcSelectTags-D8pmnLor.mjs.map} +1 -1
- package/dist/chunks/{NcSelectUsers-fp6nf6ic.cjs → NcSelectUsers-CAl1o2gA.cjs} +3 -3
- package/dist/chunks/{NcSelectUsers-fp6nf6ic.cjs.map → NcSelectUsers-CAl1o2gA.cjs.map} +1 -1
- package/dist/chunks/{NcSelectUsers-5r-vvEVy.mjs → NcSelectUsers-z2bZafO2.mjs} +3 -3
- package/dist/chunks/{NcSelectUsers-5r-vvEVy.mjs.map → NcSelectUsers-z2bZafO2.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-BrIKMh-B.cjs → NcSettingsSection-BfZ8I3zb.cjs} +3 -3
- package/dist/chunks/{NcSettingsSection-BrIKMh-B.cjs.map → NcSettingsSection-BfZ8I3zb.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-Dz_b9rcq.mjs → NcSettingsSection-DV-x6Ag7.mjs} +3 -3
- package/dist/chunks/{NcSettingsSection-Dz_b9rcq.mjs.map → NcSettingsSection-DV-x6Ag7.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-CUM0vkbN.mjs → NcSettingsSelectGroup-CFvLzGNf.mjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-CUM0vkbN.mjs.map → NcSettingsSelectGroup-CFvLzGNf.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-D5EWVZ7k.cjs → NcSettingsSelectGroup-CmotAYwP.cjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-D5EWVZ7k.cjs.map → NcSettingsSelectGroup-CmotAYwP.cjs.map} +1 -1
- package/dist/chunks/{NcTextArea-UKiTMLga.cjs → NcTextArea-BUH-0gIq.cjs} +4 -4
- package/dist/chunks/{NcTextArea-UKiTMLga.cjs.map → NcTextArea-BUH-0gIq.cjs.map} +1 -1
- package/dist/chunks/{NcTextArea-fGUiK7p2.mjs → NcTextArea-C82D8CSK.mjs} +4 -4
- package/dist/chunks/{NcTextArea-fGUiK7p2.mjs.map → NcTextArea-C82D8CSK.mjs.map} +1 -1
- package/dist/chunks/{NcTextField-B2tcddKo.cjs → NcTextField-2tiCeGZw.cjs} +2 -2
- package/dist/chunks/{NcTextField-B2tcddKo.cjs.map → NcTextField-2tiCeGZw.cjs.map} +1 -1
- package/dist/chunks/{NcTextField-ByDOTNvC.mjs → NcTextField-BPhf3E7g.mjs} +2 -2
- package/dist/chunks/{NcTextField-ByDOTNvC.mjs.map → NcTextField-BPhf3E7g.mjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-CeQXCjIR.cjs → NcTimezonePicker-BSGxeYwn.cjs} +2 -2
- package/dist/chunks/{NcTimezonePicker-CeQXCjIR.cjs.map → NcTimezonePicker-BSGxeYwn.cjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-Cok_NaVd.mjs → NcTimezonePicker-D4xfdT9T.mjs} +2 -2
- package/dist/chunks/{NcTimezonePicker-Cok_NaVd.mjs.map → NcTimezonePicker-D4xfdT9T.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-CIcwErdM.cjs → NcUserBubble-BJf2sPSm.cjs} +3 -3
- package/dist/chunks/{NcUserBubble-CIcwErdM.cjs.map → NcUserBubble-BJf2sPSm.cjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-Csw7PXyG.mjs → NcUserBubble-CuCNjhc8.mjs} +3 -3
- package/dist/chunks/{NcUserBubble-Csw7PXyG.mjs.map → NcUserBubble-CuCNjhc8.mjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-Bw0m9Xza.cjs → NcUserStatusIcon-BnGtoiCy.cjs} +2 -2
- package/dist/chunks/{NcUserStatusIcon-Bw0m9Xza.cjs.map → NcUserStatusIcon-BnGtoiCy.cjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-Cq1RnTfF.mjs → NcUserStatusIcon-DdPPN-cP.mjs} +2 -2
- package/dist/chunks/{NcUserStatusIcon-Cq1RnTfF.mjs.map → NcUserStatusIcon-DdPPN-cP.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-Co-1SOFK.cjs → ScopeComponent-4M4zyHnT.cjs} +2 -2
- package/dist/chunks/{ScopeComponent-Co-1SOFK.cjs.map → ScopeComponent-4M4zyHnT.cjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-B6luC3XR.mjs → ScopeComponent-xx9Z3w0D.mjs} +2 -2
- package/dist/chunks/{ScopeComponent-B6luC3XR.mjs.map → ScopeComponent-xx9Z3w0D.mjs.map} +1 -1
- package/dist/chunks/{autolink-CeB9uxD9.mjs → autolink-C8BYVvdd.mjs} +5 -5
- package/dist/chunks/{autolink-CeB9uxD9.mjs.map → autolink-C8BYVvdd.mjs.map} +1 -1
- package/dist/chunks/{autolink-VQMuzjxl.cjs → autolink-CMWUgEzj.cjs} +5 -5
- package/dist/chunks/{autolink-VQMuzjxl.cjs.map → autolink-CMWUgEzj.cjs.map} +1 -1
- package/dist/chunks/{colors-BmzDi7by.mjs → colors-Bp0JzIQ4.mjs} +5 -1
- package/dist/chunks/{colors-BmzDi7by.mjs.map → colors-Bp0JzIQ4.mjs.map} +1 -1
- package/dist/chunks/{colors-CND3oL8e.cjs → colors-CyIwf6gH.cjs} +5 -1
- package/dist/chunks/{colors-CND3oL8e.cjs.map → colors-CyIwf6gH.cjs.map} +1 -1
- package/dist/chunks/{customPickerElements-DLFtgReB.mjs → customPickerElements-BGmuXU7x.mjs} +7 -2
- package/dist/chunks/customPickerElements-BGmuXU7x.mjs.map +1 -0
- package/dist/chunks/{customPickerElements-GyIIOHiQ.cjs → customPickerElements-CPxrR1_N.cjs} +6 -1
- package/dist/chunks/customPickerElements-CPxrR1_N.cjs.map +1 -0
- package/dist/chunks/legacy-Bk0qQxIg.cjs +8 -0
- package/dist/chunks/legacy-Bk0qQxIg.cjs.map +1 -0
- package/dist/chunks/legacy-DV3mGZdh.mjs +9 -0
- package/dist/chunks/legacy-DV3mGZdh.mjs.map +1 -0
- package/dist/chunks/{referencePickerModal-BOCqzVJk.cjs → referencePickerModal-Cqd084NY.cjs} +111 -15
- package/dist/chunks/referencePickerModal-Cqd084NY.cjs.map +1 -0
- package/dist/chunks/{referencePickerModal-BQExd0w6.mjs → referencePickerModal-DnsOMAHk.mjs} +111 -15
- package/dist/chunks/referencePickerModal-DnsOMAHk.mjs.map +1 -0
- package/dist/functions/reference/index.d.ts +6 -3
- package/dist/functions/reference/widgets.d.ts +11 -1
- package/dist/index.cjs +67 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +68 -67
- package/dist/index.mjs.map +1 -1
- package/dist/utils/legacy.d.ts +1 -0
- package/dist/vendor.LICENSE.txt +2 -2
- package/package.json +16 -16
- package/dist/assets/NcAppSettingsDialog-x8dImUGK.css +0 -103
- package/dist/assets/NcInputConfirmCancel-CkhRZCfD.css +0 -39
- package/dist/chunks/NcAppNavigation-BDxzq-ai.cjs.map +0 -1
- package/dist/chunks/NcAppNavigation-BPqJExo6.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationItem-BBZ1SsqQ.cjs.map +0 -1
- package/dist/chunks/NcAppNavigationItem-DcKt7SjF.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsDialog-C2-LWcDG.cjs.map +0 -1
- package/dist/chunks/NcAppSettingsDialog-D0M18YFD.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsShortcutsSection-DblUBaWP.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsShortcutsSection-DgGU8-cF.cjs.map +0 -1
- package/dist/chunks/NcAppSidebar-BYHXZjYR.cjs.map +0 -1
- package/dist/chunks/NcAppSidebar-Bljse39J.mjs.map +0 -1
- package/dist/chunks/NcButton-BgppWSl9.mjs.map +0 -1
- package/dist/chunks/NcButton-DaWD-X8V.cjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch-BQeglWXd.cjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch-D4IV4zWy.mjs.map +0 -1
- package/dist/chunks/NcCollectionList-BbmBJ4ET.mjs.map +0 -1
- package/dist/chunks/NcCollectionList-DgLrYZ6o.cjs.map +0 -1
- package/dist/chunks/NcFormBoxSwitch-E6sxPL4n.mjs.map +0 -1
- package/dist/chunks/NcFormBoxSwitch-OoIgFMb9.cjs.map +0 -1
- package/dist/chunks/NcHotkeyList-Co7MBL5U.mjs.map +0 -1
- package/dist/chunks/NcHotkeyList-DhFQdopw.cjs.map +0 -1
- package/dist/chunks/NcInputConfirmCancel-CTvNhtqM.cjs.map +0 -1
- package/dist/chunks/NcInputConfirmCancel-LAJSyhOn.mjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-BdmY-Mly.mjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-BmpOFhV1.cjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-BcTSkyeW.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-QnLNsBkB.cjs.map +0 -1
- package/dist/chunks/NcRichText-CiRdCF_B.cjs.map +0 -1
- package/dist/chunks/NcRichText-DZgAb6-3.mjs.map +0 -1
- package/dist/chunks/customPickerElements-DLFtgReB.mjs.map +0 -1
- package/dist/chunks/customPickerElements-GyIIOHiQ.cjs.map +0 -1
- package/dist/chunks/legacy-KBXhWdRy.cjs +0 -5
- package/dist/chunks/legacy-KBXhWdRy.cjs.map +0 -1
- package/dist/chunks/legacy-MK4GvP26.mjs +0 -6
- package/dist/chunks/legacy-MK4GvP26.mjs.map +0 -1
- package/dist/chunks/referencePickerModal-BOCqzVJk.cjs.map +0 -1
- package/dist/chunks/referencePickerModal-BQExd0w6.mjs.map +0 -1
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
/*
|
|
10
10
|
* Ensure proper alignment of the vue material icons
|
|
11
11
|
*/
|
|
12
|
-
.material-design-icon[data-v-
|
|
12
|
+
.material-design-icon[data-v-96e3ab0e] {
|
|
13
13
|
display: flex;
|
|
14
14
|
align-self: center;
|
|
15
15
|
justify-self: center;
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: center;
|
|
18
18
|
}
|
|
19
|
-
.widget-custom[data-v-
|
|
19
|
+
.widget-custom[data-v-96e3ab0e] {
|
|
20
20
|
width: 100%;
|
|
21
21
|
margin: auto;
|
|
22
22
|
margin-bottom: calc(var(--default-grid-baseline, 4px) * 3);
|
|
@@ -26,13 +26,48 @@
|
|
|
26
26
|
border-radius: var(--border-radius-container);
|
|
27
27
|
background-color: transparent;
|
|
28
28
|
display: flex;
|
|
29
|
+
position: relative;
|
|
29
30
|
}
|
|
30
|
-
.widget-custom.full-width[data-v-
|
|
31
|
+
.widget-custom.full-width[data-v-96e3ab0e] {
|
|
31
32
|
width: var(--widget-full-width, 100%) !important;
|
|
32
33
|
inset-inline-start: calc((var(--widget-full-width, 100%) - 100%) / 2 * -1);
|
|
33
34
|
position: relative;
|
|
34
35
|
}
|
|
35
|
-
.widget-
|
|
36
|
+
.widget-custom__content[data-v-96e3ab0e] {
|
|
37
|
+
width: 100%;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
}
|
|
41
|
+
.widget-custom__resize-handle[data-v-96e3ab0e] {
|
|
42
|
+
position: absolute;
|
|
43
|
+
bottom: 0;
|
|
44
|
+
inset-inline-start: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: calc(var(--default-grid-baseline) * 2);
|
|
47
|
+
border-top: 1px solid var(--color-border);
|
|
48
|
+
margin-top: -1px;
|
|
49
|
+
cursor: row-resize;
|
|
50
|
+
touch-action: none;
|
|
51
|
+
}
|
|
52
|
+
.widget-custom__resize-handle[data-v-96e3ab0e]::before, .widget-custom__resize-handle[data-v-96e3ab0e]::after {
|
|
53
|
+
content: "";
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 50%;
|
|
56
|
+
left: 50%;
|
|
57
|
+
background-color: var(--color-border);
|
|
58
|
+
margin-top: 1px;
|
|
59
|
+
transform: translateX(-50%);
|
|
60
|
+
width: 30px;
|
|
61
|
+
height: 1px;
|
|
62
|
+
}
|
|
63
|
+
.widget-custom__resize-handle[data-v-96e3ab0e]::before {
|
|
64
|
+
margin-top: -2px;
|
|
65
|
+
}
|
|
66
|
+
.widget-custom__resize-handle[data-v-96e3ab0e]:focus-visible {
|
|
67
|
+
outline: 2px solid var(--color-primary-element);
|
|
68
|
+
outline-offset: -4px;
|
|
69
|
+
}
|
|
70
|
+
.widget-access[data-v-96e3ab0e] {
|
|
36
71
|
width: 100%;
|
|
37
72
|
margin: auto;
|
|
38
73
|
margin-bottom: calc(var(--default-grid-baseline, 4px) * 3);
|
|
@@ -44,7 +79,7 @@
|
|
|
44
79
|
display: flex;
|
|
45
80
|
padding: calc(var(--default-grid-baseline, 4px) * 3);
|
|
46
81
|
}
|
|
47
|
-
.widget-default[data-v-
|
|
82
|
+
.widget-default[data-v-96e3ab0e] {
|
|
48
83
|
width: 100%;
|
|
49
84
|
margin: auto;
|
|
50
85
|
margin-bottom: calc(var(--default-grid-baseline, 4px) * 3);
|
|
@@ -55,42 +90,42 @@
|
|
|
55
90
|
background-color: transparent;
|
|
56
91
|
display: flex;
|
|
57
92
|
}
|
|
58
|
-
.widget-default--compact[data-v-
|
|
93
|
+
.widget-default--compact[data-v-96e3ab0e] {
|
|
59
94
|
flex-direction: column;
|
|
60
95
|
}
|
|
61
|
-
.widget-default--compact .widget-default--image[data-v-
|
|
96
|
+
.widget-default--compact .widget-default--image[data-v-96e3ab0e] {
|
|
62
97
|
width: 100%;
|
|
63
98
|
height: 150px;
|
|
64
99
|
}
|
|
65
|
-
.widget-default--compact .widget-default--details[data-v-
|
|
100
|
+
.widget-default--compact .widget-default--details[data-v-96e3ab0e] {
|
|
66
101
|
width: 100%;
|
|
67
102
|
padding-top: calc(var(--default-grid-baseline, 4px) * 2);
|
|
68
103
|
padding-bottom: calc(var(--default-grid-baseline, 4px) * 2);
|
|
69
104
|
}
|
|
70
|
-
.widget-default--compact .widget-default--description[data-v-
|
|
105
|
+
.widget-default--compact .widget-default--description[data-v-96e3ab0e] {
|
|
71
106
|
display: none;
|
|
72
107
|
}
|
|
73
|
-
.widget-default--image[data-v-
|
|
108
|
+
.widget-default--image[data-v-96e3ab0e] {
|
|
74
109
|
width: 40%;
|
|
75
110
|
background-position: center;
|
|
76
111
|
background-size: cover;
|
|
77
112
|
background-repeat: no-repeat;
|
|
78
113
|
}
|
|
79
|
-
.widget-default--name[data-v-
|
|
114
|
+
.widget-default--name[data-v-96e3ab0e] {
|
|
80
115
|
overflow: hidden;
|
|
81
116
|
text-overflow: ellipsis;
|
|
82
117
|
white-space: nowrap;
|
|
83
|
-
font-weight: bold;
|
|
118
|
+
font-weight: var(--font-weight-heading, bold);
|
|
84
119
|
}
|
|
85
|
-
.widget-default--details[data-v-
|
|
120
|
+
.widget-default--details[data-v-96e3ab0e] {
|
|
86
121
|
padding: calc(var(--default-grid-baseline, 4px) * 3);
|
|
87
122
|
width: 60%;
|
|
88
123
|
}
|
|
89
|
-
.widget-default--details p[data-v-
|
|
124
|
+
.widget-default--details p[data-v-96e3ab0e] {
|
|
90
125
|
margin: 0;
|
|
91
126
|
padding: 0;
|
|
92
127
|
}
|
|
93
|
-
.widget-default--description[data-v-
|
|
128
|
+
.widget-default--description[data-v-96e3ab0e] {
|
|
94
129
|
overflow: hidden;
|
|
95
130
|
text-overflow: ellipsis;
|
|
96
131
|
display: -webkit-box;
|
|
@@ -98,16 +133,16 @@
|
|
|
98
133
|
line-clamp: 3;
|
|
99
134
|
-webkit-box-orient: vertical;
|
|
100
135
|
}
|
|
101
|
-
.widget-default--link[data-v-
|
|
136
|
+
.widget-default--link[data-v-96e3ab0e] {
|
|
102
137
|
color: var(--color-text-maxcontrast);
|
|
103
138
|
overflow: hidden;
|
|
104
139
|
text-overflow: ellipsis;
|
|
105
140
|
white-space: nowrap;
|
|
106
141
|
}
|
|
107
|
-
.toggle-interactive[data-v-
|
|
142
|
+
.toggle-interactive[data-v-96e3ab0e] {
|
|
108
143
|
position: relative;
|
|
109
144
|
}
|
|
110
|
-
.toggle-interactive .toggle-interactive--button[data-v-
|
|
145
|
+
.toggle-interactive .toggle-interactive--button[data-v-96e3ab0e] {
|
|
111
146
|
position: absolute;
|
|
112
147
|
bottom: var(--default-grid-baseline);
|
|
113
148
|
inset-inline-end: var(--default-grid-baseline);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('../assets/NcActionButton-
|
|
1
|
+
require('../assets/NcActionButton-CwGeOQFe.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
const mdi = require("./mdi-DTiP6a6e.cjs");
|
|
4
4
|
const NcIconSvgWrapper = require("./NcIconSvgWrapper-Bbl4kXZI.cjs");
|
|
@@ -180,4 +180,4 @@ var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
|
180
180
|
);
|
|
181
181
|
const NcActionButton = __component__.exports;
|
|
182
182
|
exports.NcActionButton = NcActionButton;
|
|
183
|
-
//# sourceMappingURL=NcActionButton-
|
|
183
|
+
//# sourceMappingURL=NcActionButton-B1jvJWjl.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NcActionButton-CiYel4_C.cjs","sources":["../../src/components/NcActionButton/NcActionButton.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Delete')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDelete\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :close-after-click=\"true\" @click=\"showMessage('Delete and close menu')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDelete and close\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :is-menu=\"true\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPlus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tCreate\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :disabled=\"true\" @click=\"showMessage('Disabled')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDisabled button\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport IconTrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'\n\timport IconPlus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tIconTrashCanOutline,\n\t\t\tIconPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n```\n\nIf you're using a long text, you can specify a `name` prop.\n\nFor the same purpose, but in a more compact way, `description` prop can be used.\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPlus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd new\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton name=\"Long button\" @click=\"showMessage('Delete')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tThis button is associated with a very long text.\\nAnd with new lines too.\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton description=\"Subline description for the button\" @click=\"showMessage('Edit')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPencilOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tEdit\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport IconTrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'\n\timport IconPencilOutline from 'vue-material-design-icons/PencilOutline.vue'\n\timport IconPlus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tIconTrashCanOutline,\n\t\t\tIconPencilOutline,\n\t\t\tIconPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n\n```\n\nAction icon attribute with a single action\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPlus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd new\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport IconPlus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tIconPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n\n```\n\nYou can also use a custom icon, for example from the vue-material-design-icons library:\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<IconHandBackLeftOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise left hand\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<IconHandBackRightOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise right hand\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport IconHandBackLeftOutline from 'vue-material-design-icons/HandBackLeftOutline.vue'\nimport IconHandBackRightOutline from 'vue-material-design-icons/HandBackRightOutline.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconHandBackLeftOutline,\n\t\tIconHandBackRightOutline,\n\t},\n}\n</script>\n```\n\n### With different model behavior\nBy default the button will act like a normal button, but it is also possible to change the behavior to a toggle button, checkbox button or radio button.\n\nFor example to have the button act like a toggle button just set the `modelValue` property to the toggle state:\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton :model-value.sync=\"fullscreen\">\n\t\t\t<template #icon>\n\t\t\t\t<IconFullscreen :size=\"20\" />\n\t\t\t</template>\n\t\t\tFullscreen\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport IconFullscreen from 'vue-material-design-icons/Fullscreen.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconFullscreen,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfullscreen: true,\n\t\t}\n\t},\n}\n</script>\n```\n\nAnother example would be using it with checkbox semantics, to enable or disable features.\nThis also allows tri-state behavior (`true`, `false`, `null`) in which case `aria-checked` will be either `true`, `false` or `mixed`.\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton :model-value.sync=\"handRaised\" type=\"checkbox\">\n\t\t\t<template #icon>\n\t\t\t\t<IconHandBackLeftOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise hand\n\t\t</NcActionButton>\n\t\t<NcActionButton :model-value.sync=\"fullscreen\" type=\"checkbox\">\n\t\t\t<template #icon>\n\t\t\t\t<IconFullscreen :size=\"20\" />\n\t\t\t</template>\n\t\t\tFullscreen\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport IconHandBackLeftOutline from 'vue-material-design-icons/HandBackLeftOutline.vue'\nimport IconFullscreen from 'vue-material-design-icons/Fullscreen.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconHandBackLeftOutline,\n\t\tIconFullscreen,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfullscreen: true,\n\t\t\thandRaised: false,\n\t\t}\n\t},\n}\n</script>\n```\n\nIt is also possible to use the button with radio semantics, this is only possible in menus and not for inline actions!\n\nWith a string `modelValue`, checked state is determined by the `value` property and updates `modelValue` with the new `value` string.\n\nWith a boolean `modelValue`, checked state is determined by `modelValue` and updates to `true` on check.\n\nNote: unlike native radio buttons, `NcActionButton` are not grouped by name, so you need to connect them by bind correct `modelValue``.\n\n```vue\n<template>\n\t<div>\n\t\t<NcActions>\n\t\t\t<NcActionButton :model-value.sync=\"payment\" type=\"radio\" value=\"cash\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconCash :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPay with cash\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :model-value.sync=\"payment\" type=\"radio\" value=\"card\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconCreditCardOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPay by card\n\t\t\t</NcActionButton>\n\t\t\t<NcActionSeparator />\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isLeft\" @update:modelValue=\"setAlign('Left', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconFormatAlignLeft :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tLeft\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isCenter\" @update:modelValue=\"setAlign('Center', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconFormatAlignCenter :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tCenter\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isRight\" @update:modelValue=\"setAlign('Right', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconFormatAlignRight :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tRight\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t\t<p>payment = \"{{ payment }}\"</p>\n\t\t<p>align.isLeft = {{ align.isLeft }}</p>\n\t\t<p>align.isCenter = {{ align.isCenter }}</p>\n\t\t<p>align.isRight = {{ align.isRight }}</p>\n\t</div>\n</template>\n<script>\nimport IconCash from 'vue-material-design-icons/Cash.vue'\nimport IconCreditCardOutline from 'vue-material-design-icons/CreditCardOutline.vue'\nimport IconFormatAlignLeft from 'vue-material-design-icons/FormatAlignLeft.vue'\nimport IconFormatAlignCenter from 'vue-material-design-icons/FormatAlignCenter.vue'\nimport IconFormatAlignRight from 'vue-material-design-icons/FormatAlignRight.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconCash,\n\t\tIconCreditCardOutline,\n\t\tIconFormatAlignLeft,\n\t\tIconFormatAlignCenter,\n\t\tIconFormatAlignRight,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tpayment: 'card',\n\t\t\talign: {\n\t\t\t\tisLeft: false,\n\t\t\t\tisCenter: true,\n\t\t\t\tisRight: false,\n\t\t\t},\n\t\t}\n\t},\n\tmethods: {\n\t\tsetAlign(direction, value) {\n\t\t\tthis.align.isLeft = false\n\t\t\tthis.align.isCenter = false\n\t\t\tthis.align.isRight = false\n\t\t\tthis.align[`is${direction}`] = value\n\t\t},\n\t}\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<button\n\t\t\t:aria-label=\"ariaLabel\"\n\t\t\tclass=\"action-button button-vue\"\n\t\t\t:class=\"{\n\t\t\t\t'action-button--active': isChecked,\n\t\t\t\tfocusable: isFocusable,\n\t\t\t}\"\n\t\t\t:disabled=\"disabled\"\n\t\t\t:title=\"title\"\n\t\t\t:type=\"nativeType\"\n\t\t\tv-bind=\"buttonAttributes\"\n\t\t\t@click=\"handleClick\">\n\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<span\n\t\t\t\t\t:class=\"[isIconUrl ? 'action-button__icon--url' : icon]\"\n\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"action-button__icon\" />\n\t\t\t</slot>\n\n\t\t\t<!-- long text with name -->\n\t\t\t<span class=\"action-button__longtext-wrapper\">\n\t\t\t\t<strong\n\t\t\t\t\tv-if=\"name\"\n\t\t\t\t\tclass=\"action-button__name\">\n\t\t\t\t\t{{ name }}\n\t\t\t\t</strong>\n\t\t\t\t<!-- white space is shown on longtext, so we can't\n\t\t\t\t\tput {{ text }} on a new line for code readability -->\n\t\t\t\t<span\n\t\t\t\t\tv-if=\"isLongText\"\n\t\t\t\t\tclass=\"action-button__longtext\"\n\t\t\t\t\tv-text=\"text\" />\n\t\t\t\t<!-- default text display -->\n\t\t\t\t<span\n\t\t\t\t\tv-else\n\t\t\t\t\tclass=\"action-button__text\">\n\t\t\t\t\t{{ text }}\n\t\t\t\t</span>\n\t\t\t\t<span\n\t\t\t\t\tv-if=\"description\"\n\t\t\t\t\tclass=\"action-button__description\"\n\t\t\t\t\tv-text=\"description\" />\n\t\t\t</span>\n\n\t\t\t<!-- right(in LTR) or left(in RTL) arrow icon when there is a sub-menu -->\n\t\t\t<NcIconSvgWrapper\n\t\t\t\tv-if=\"isMenu\"\n\t\t\t\tclass=\"action-button__menu-icon\"\n\t\t\t\tdirectional\n\t\t\t\t:path=\"mdiChevronRight\" />\n\t\t\t<NcIconSvgWrapper v-else-if=\"isChecked\" :path=\"mdiCheck\" class=\"action-button__pressed-icon\" />\n\n\t\t\t<span v-else-if=\"isChecked === false\" class=\"action-button__pressed-icon material-design-icon\" />\n\n\t\t\t<!-- fake slot to gather inner text -->\n\t\t\t<slot v-if=\"false\" />\n\t\t</button>\n\t</li>\n</template>\n\n<script>\nimport { mdiCheck, mdiChevronRight } from '@mdi/js'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/NcIconSvgWrapper.vue'\nimport ActionTextMixin from '../../mixins/actionText.js'\n\n/**\n * Button component to be used in Actions\n */\nexport default {\n\tname: 'NcActionButton',\n\n\tcomponents: {\n\t\tNcIconSvgWrapper,\n\t},\n\n\tmixins: [ActionTextMixin],\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: 'NcActions:isSemanticMenu',\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.\n\t\t * @todo Add a check in @nextcloud/vue 9 that this prop is not provided,\n\t\t * otherwise root element will inherit incorrect aria-hidden.\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\t// eslint-disable-next-line vue/no-boolean-default\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * disabled state of the action button\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * If this is a menu, a chevron icon will\n\t\t * be added at the end of the line\n\t\t */\n\t\tisMenu: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The button's behavior, by default the button acts like a normal button with optional toggle button behavior if `modelValue` is `true` or `false`.\n\t\t * But you can also set to checkbox button behavior with tri-state or radio button like behavior.\n\t\t * This extends the native HTML button type attribute.\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'button',\n\t\t\tvalidator: (behavior) => ['button', 'checkbox', 'radio', 'reset', 'submit'].includes(behavior),\n\t\t},\n\n\t\t/**\n\t\t * The buttons state if `type` is 'checkbox' or 'radio' (meaning if it is pressed / selected).\n\t\t * For checkbox and toggle button behavior - boolean value.\n\t\t * For radio button behavior - could be a boolean checked or a string with the value of the button.\n\t\t * Note: Unlike native radio buttons, NcActionButton are not grouped by name, so you need to connect them by bind correct modelValue.\n\t\t *\n\t\t * **This is not availabe for `type='submit'` or `type='reset'`**\n\t\t *\n\t\t * If using `type='checkbox'` a `model-value` of `true` means checked, `false` means unchecked and `null` means indeterminate (tri-state)\n\t\t * For `type='radio'` `null` is equal to `false`\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: [Boolean, String],\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The value used for the `modelValue` when this component is used with radio behavior\n\t\t * Similar to the `value` attribute of `<input type=\"radio\">`\n\t\t */\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Small underlying text content of the entry\n\t\t */\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\tsetup() {\n\t\treturn {\n\t\t\tmdiCheck,\n\t\t\tmdiChevronRight,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * determines if the action is focusable\n\t\t *\n\t\t * @return {boolean} is the action focusable ?\n\t\t */\n\t\tisFocusable() {\n\t\t\treturn !this.disabled\n\t\t},\n\n\t\t/**\n\t\t * The current \"checked\" or \"pressed\" state for the model behavior\n\t\t */\n\t\tisChecked() {\n\t\t\tif (this.type === 'radio' && typeof this.modelValue !== 'boolean') {\n\t\t\t\treturn this.modelValue === this.value\n\t\t\t}\n\t\t\treturn this.modelValue\n\t\t},\n\n\t\t/**\n\t\t * The native HTML type to set on the button\n\t\t */\n\t\tnativeType() {\n\t\t\tif (this.type === 'submit' || this.type === 'reset') {\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn 'button'\n\t\t},\n\n\t\t/**\n\t\t * HTML attributes to bind to the <button>\n\t\t */\n\t\tbuttonAttributes() {\n\t\t\tconst attributes = {}\n\n\t\t\tif (this.isInSemanticMenu) {\n\t\t\t\t// By default it needs to be a menu item in semantic menus\n\t\t\t\tattributes.role = 'menuitem'\n\n\t\t\t\tif (this.type === 'radio') {\n\t\t\t\t\tattributes.role = 'menuitemradio'\n\t\t\t\t\tattributes['aria-checked'] = this.isChecked ? 'true' : 'false'\n\t\t\t\t} else if (this.type === 'checkbox' || (this.nativeType === 'button' && this.modelValue !== null)) {\n\t\t\t\t\t// either if checkbox behavior was set or the model value is not unset\n\t\t\t\t\tattributes.role = 'menuitemcheckbox'\n\t\t\t\t\tattributes['aria-checked'] = this.modelValue === null ? 'mixed' : (this.modelValue ? 'true' : 'false')\n\t\t\t\t}\n\t\t\t} else if (this.modelValue !== null && this.nativeType === 'button') {\n\t\t\t\t// In case this has a modelValue it is considered a toggle button, so we need to set the aria-pressed\n\t\t\t\tattributes['aria-pressed'] = this.modelValue ? 'true' : 'false'\n\t\t\t}\n\n\t\t\treturn attributes\n\t\t},\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Forward click event, let mixin handle the close-after-click and emit new modelValue if needed\n\t\t *\n\t\t * @param {MouseEvent} event The click event\n\t\t */\n\t\thandleClick(event) {\n\t\t\tthis.onClick(event)\n\t\t\t// If modelValue or type is set (so modelValue might be null for tri-state) we need to update it\n\t\t\tif (this.modelValue !== null || this.type !== 'button') {\n\t\t\t\tif (this.type === 'radio') {\n\t\t\t\t\tif (typeof this.modelValue !== 'boolean') {\n\t\t\t\t\t\t// String-value radios behavior is similar to native - click on checked radio does nothing\n\t\t\t\t\t\tif (!this.isChecked) {\n\t\t\t\t\t\t\tthis.$emit('update:modelValue', this.value)\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Boolean radio allows to uncheck\n\t\t\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Checkbox toggles value\n\t\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@use '../../assets/action.scss' as *;\n@include action-active;\n@include action--disabled;\n@include action-item('button');\n\n.action-button {\n\t&__pressed-icon {\n\t\tmargin-inline: auto calc($icon-margin * -1);\n\t}\n\n\t* {\n\t\tcursor: pointer;\n\t}\n}\n</style>\n"],"names":["NcIconSvgWrapper","ActionTextMixin","mdiCheck","mdiChevronRight"],"mappings":";;;;;AA4YA,MAAA,YAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA,kBAAAA,iBAAAA;AAAAA,EACA;AAAA,EAEA,QAAA,CAAAC,WAAAA,eAAA;AAAA,EAEA,QAAA;AAAA,IACA,kBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,YAAA;AAAA,MACA,MAAA;AAAA;AAAA,MAEA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAA,aAAA,CAAA,UAAA,YAAA,SAAA,SAAA,QAAA,EAAA,SAAA,QAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAaA,YAAA;AAAA,MACA,MAAA,CAAA,SAAA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,aAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,QAAA;AACA,WAAA;AAAA,MACA,UAAAC,IAAAA;AAAAA,MACA,iBAAAC,IAAAA;AAAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,cAAA;AACA,aAAA,CAAA,KAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,YAAA;AACA,UAAA,KAAA,SAAA,WAAA,OAAA,KAAA,eAAA,WAAA;AACA,eAAA,KAAA,eAAA,KAAA;AAAA,MACA;AACA,aAAA,KAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,aAAA;AACA,UAAA,KAAA,SAAA,YAAA,KAAA,SAAA,SAAA;AACA,eAAA,KAAA;AAAA,MACA;AACA,aAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,mBAAA;AACA,YAAA,aAAA,CAAA;AAEA,UAAA,KAAA,kBAAA;AAEA,mBAAA,OAAA;AAEA,YAAA,KAAA,SAAA,SAAA;AACA,qBAAA,OAAA;AACA,qBAAA,cAAA,IAAA,KAAA,YAAA,SAAA;AAAA,QACA,WAAA,KAAA,SAAA,cAAA,KAAA,eAAA,YAAA,KAAA,eAAA,MAAA;AAEA,qBAAA,OAAA;AACA,qBAAA,cAAA,IAAA,KAAA,eAAA,OAAA,UAAA,KAAA,aAAA,SAAA;AAAA,QACA;AAAA,MACA,WAAA,KAAA,eAAA,QAAA,KAAA,eAAA,UAAA;AAEA,mBAAA,cAAA,IAAA,KAAA,aAAA,SAAA;AAAA,MACA;AAEA,aAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,YAAA,OAAA;AACA,WAAA,QAAA,KAAA;AAEA,UAAA,KAAA,eAAA,QAAA,KAAA,SAAA,UAAA;AACA,YAAA,KAAA,SAAA,SAAA;AACA,cAAA,OAAA,KAAA,eAAA,WAAA;AAEA,gBAAA,CAAA,KAAA,WAAA;AACA,mBAAA,MAAA,qBAAA,KAAA,KAAA;AAAA,YACA;AAAA,UACA,OAAA;AAEA,iBAAA,MAAA,qBAAA,CAAA,KAAA,SAAA;AAAA,UACA;AAAA,QACA,OAAA;AAEA,eAAA,MAAA,qBAAA,CAAA,KAAA,SAAA;AAAA,QACA;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"NcActionButton-B1jvJWjl.cjs","sources":["../../src/components/NcActionButton/NcActionButton.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Delete')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDelete\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :close-after-click=\"true\" @click=\"showMessage('Delete and close menu')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDelete and close\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :is-menu=\"true\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPlus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tCreate\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :disabled=\"true\" @click=\"showMessage('Disabled')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDisabled button\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport IconTrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'\n\timport IconPlus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tIconTrashCanOutline,\n\t\t\tIconPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n```\n\nIf you're using a long text, you can specify a `name` prop.\n\nFor the same purpose, but in a more compact way, `description` prop can be used.\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPlus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd new\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton name=\"Long button\" @click=\"showMessage('Delete')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tThis button is associated with a very long text.\\nAnd with new lines too.\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton description=\"Subline description for the button\" @click=\"showMessage('Edit')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPencilOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tEdit\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport IconTrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'\n\timport IconPencilOutline from 'vue-material-design-icons/PencilOutline.vue'\n\timport IconPlus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tIconTrashCanOutline,\n\t\t\tIconPencilOutline,\n\t\t\tIconPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n\n```\n\nAction icon attribute with a single action\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPlus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd new\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport IconPlus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tIconPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n\n```\n\nYou can also use a custom icon, for example from the vue-material-design-icons library:\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<IconHandBackLeftOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise left hand\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<IconHandBackRightOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise right hand\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport IconHandBackLeftOutline from 'vue-material-design-icons/HandBackLeftOutline.vue'\nimport IconHandBackRightOutline from 'vue-material-design-icons/HandBackRightOutline.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconHandBackLeftOutline,\n\t\tIconHandBackRightOutline,\n\t},\n}\n</script>\n```\n\n### With different model behavior\nBy default the button will act like a normal button, but it is also possible to change the behavior to a toggle button, checkbox button or radio button.\n\nFor example to have the button act like a toggle button just set the `modelValue` property to the toggle state:\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton :model-value.sync=\"fullscreen\">\n\t\t\t<template #icon>\n\t\t\t\t<IconFullscreen :size=\"20\" />\n\t\t\t</template>\n\t\t\tFullscreen\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport IconFullscreen from 'vue-material-design-icons/Fullscreen.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconFullscreen,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfullscreen: true,\n\t\t}\n\t},\n}\n</script>\n```\n\nAnother example would be using it with checkbox semantics, to enable or disable features.\nThis also allows tri-state behavior (`true`, `false`, `null`) in which case `aria-checked` will be either `true`, `false` or `mixed`.\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton :model-value.sync=\"handRaised\" type=\"checkbox\">\n\t\t\t<template #icon>\n\t\t\t\t<IconHandBackLeftOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise hand\n\t\t</NcActionButton>\n\t\t<NcActionButton :model-value.sync=\"fullscreen\" type=\"checkbox\">\n\t\t\t<template #icon>\n\t\t\t\t<IconFullscreen :size=\"20\" />\n\t\t\t</template>\n\t\t\tFullscreen\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport IconHandBackLeftOutline from 'vue-material-design-icons/HandBackLeftOutline.vue'\nimport IconFullscreen from 'vue-material-design-icons/Fullscreen.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconHandBackLeftOutline,\n\t\tIconFullscreen,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfullscreen: true,\n\t\t\thandRaised: false,\n\t\t}\n\t},\n}\n</script>\n```\n\nIt is also possible to use the button with radio semantics, this is only possible in menus and not for inline actions!\n\nWith a string `modelValue`, checked state is determined by the `value` property and updates `modelValue` with the new `value` string.\n\nWith a boolean `modelValue`, checked state is determined by `modelValue` and updates to `true` on check.\n\nNote: unlike native radio buttons, `NcActionButton` are not grouped by name, so you need to connect them by bind correct `modelValue``.\n\n```vue\n<template>\n\t<div>\n\t\t<NcActions>\n\t\t\t<NcActionButton :model-value.sync=\"payment\" type=\"radio\" value=\"cash\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconCash :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPay with cash\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :model-value.sync=\"payment\" type=\"radio\" value=\"card\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconCreditCardOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPay by card\n\t\t\t</NcActionButton>\n\t\t\t<NcActionSeparator />\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isLeft\" @update:modelValue=\"setAlign('Left', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconFormatAlignLeft :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tLeft\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isCenter\" @update:modelValue=\"setAlign('Center', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconFormatAlignCenter :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tCenter\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isRight\" @update:modelValue=\"setAlign('Right', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconFormatAlignRight :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tRight\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t\t<p>payment = \"{{ payment }}\"</p>\n\t\t<p>align.isLeft = {{ align.isLeft }}</p>\n\t\t<p>align.isCenter = {{ align.isCenter }}</p>\n\t\t<p>align.isRight = {{ align.isRight }}</p>\n\t</div>\n</template>\n<script>\nimport IconCash from 'vue-material-design-icons/Cash.vue'\nimport IconCreditCardOutline from 'vue-material-design-icons/CreditCardOutline.vue'\nimport IconFormatAlignLeft from 'vue-material-design-icons/FormatAlignLeft.vue'\nimport IconFormatAlignCenter from 'vue-material-design-icons/FormatAlignCenter.vue'\nimport IconFormatAlignRight from 'vue-material-design-icons/FormatAlignRight.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconCash,\n\t\tIconCreditCardOutline,\n\t\tIconFormatAlignLeft,\n\t\tIconFormatAlignCenter,\n\t\tIconFormatAlignRight,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tpayment: 'card',\n\t\t\talign: {\n\t\t\t\tisLeft: false,\n\t\t\t\tisCenter: true,\n\t\t\t\tisRight: false,\n\t\t\t},\n\t\t}\n\t},\n\tmethods: {\n\t\tsetAlign(direction, value) {\n\t\t\tthis.align.isLeft = false\n\t\t\tthis.align.isCenter = false\n\t\t\tthis.align.isRight = false\n\t\t\tthis.align[`is${direction}`] = value\n\t\t},\n\t}\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<button\n\t\t\t:aria-label=\"ariaLabel\"\n\t\t\tclass=\"action-button button-vue\"\n\t\t\t:class=\"{\n\t\t\t\t'action-button--active': isChecked,\n\t\t\t\tfocusable: isFocusable,\n\t\t\t}\"\n\t\t\t:disabled=\"disabled\"\n\t\t\t:title=\"title\"\n\t\t\t:type=\"nativeType\"\n\t\t\tv-bind=\"buttonAttributes\"\n\t\t\t@click=\"handleClick\">\n\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<span\n\t\t\t\t\t:class=\"[isIconUrl ? 'action-button__icon--url' : icon]\"\n\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"action-button__icon\" />\n\t\t\t</slot>\n\n\t\t\t<!-- long text with name -->\n\t\t\t<span class=\"action-button__longtext-wrapper\">\n\t\t\t\t<strong\n\t\t\t\t\tv-if=\"name\"\n\t\t\t\t\tclass=\"action-button__name\">\n\t\t\t\t\t{{ name }}\n\t\t\t\t</strong>\n\t\t\t\t<!-- white space is shown on longtext, so we can't\n\t\t\t\t\tput {{ text }} on a new line for code readability -->\n\t\t\t\t<span\n\t\t\t\t\tv-if=\"isLongText\"\n\t\t\t\t\tclass=\"action-button__longtext\"\n\t\t\t\t\tv-text=\"text\" />\n\t\t\t\t<!-- default text display -->\n\t\t\t\t<span\n\t\t\t\t\tv-else\n\t\t\t\t\tclass=\"action-button__text\">\n\t\t\t\t\t{{ text }}\n\t\t\t\t</span>\n\t\t\t\t<span\n\t\t\t\t\tv-if=\"description\"\n\t\t\t\t\tclass=\"action-button__description\"\n\t\t\t\t\tv-text=\"description\" />\n\t\t\t</span>\n\n\t\t\t<!-- right(in LTR) or left(in RTL) arrow icon when there is a sub-menu -->\n\t\t\t<NcIconSvgWrapper\n\t\t\t\tv-if=\"isMenu\"\n\t\t\t\tclass=\"action-button__menu-icon\"\n\t\t\t\tdirectional\n\t\t\t\t:path=\"mdiChevronRight\" />\n\t\t\t<NcIconSvgWrapper v-else-if=\"isChecked\" :path=\"mdiCheck\" class=\"action-button__pressed-icon\" />\n\n\t\t\t<span v-else-if=\"isChecked === false\" class=\"action-button__pressed-icon material-design-icon\" />\n\n\t\t\t<!-- fake slot to gather inner text -->\n\t\t\t<slot v-if=\"false\" />\n\t\t</button>\n\t</li>\n</template>\n\n<script>\nimport { mdiCheck, mdiChevronRight } from '@mdi/js'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/NcIconSvgWrapper.vue'\nimport ActionTextMixin from '../../mixins/actionText.js'\n\n/**\n * Button component to be used in Actions\n */\nexport default {\n\tname: 'NcActionButton',\n\n\tcomponents: {\n\t\tNcIconSvgWrapper,\n\t},\n\n\tmixins: [ActionTextMixin],\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: 'NcActions:isSemanticMenu',\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.\n\t\t * @todo Add a check in @nextcloud/vue 9 that this prop is not provided,\n\t\t * otherwise root element will inherit incorrect aria-hidden.\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\t// eslint-disable-next-line vue/no-boolean-default\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * disabled state of the action button\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * If this is a menu, a chevron icon will\n\t\t * be added at the end of the line\n\t\t */\n\t\tisMenu: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The button's behavior, by default the button acts like a normal button with optional toggle button behavior if `modelValue` is `true` or `false`.\n\t\t * But you can also set to checkbox button behavior with tri-state or radio button like behavior.\n\t\t * This extends the native HTML button type attribute.\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'button',\n\t\t\tvalidator: (behavior) => ['button', 'checkbox', 'radio', 'reset', 'submit'].includes(behavior),\n\t\t},\n\n\t\t/**\n\t\t * The buttons state if `type` is 'checkbox' or 'radio' (meaning if it is pressed / selected).\n\t\t * For checkbox and toggle button behavior - boolean value.\n\t\t * For radio button behavior - could be a boolean checked or a string with the value of the button.\n\t\t * Note: Unlike native radio buttons, NcActionButton are not grouped by name, so you need to connect them by bind correct modelValue.\n\t\t *\n\t\t * **This is not availabe for `type='submit'` or `type='reset'`**\n\t\t *\n\t\t * If using `type='checkbox'` a `model-value` of `true` means checked, `false` means unchecked and `null` means indeterminate (tri-state)\n\t\t * For `type='radio'` `null` is equal to `false`\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: [Boolean, String],\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The value used for the `modelValue` when this component is used with radio behavior\n\t\t * Similar to the `value` attribute of `<input type=\"radio\">`\n\t\t */\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Small underlying text content of the entry\n\t\t */\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\tsetup() {\n\t\treturn {\n\t\t\tmdiCheck,\n\t\t\tmdiChevronRight,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * determines if the action is focusable\n\t\t *\n\t\t * @return {boolean} is the action focusable ?\n\t\t */\n\t\tisFocusable() {\n\t\t\treturn !this.disabled\n\t\t},\n\n\t\t/**\n\t\t * The current \"checked\" or \"pressed\" state for the model behavior\n\t\t */\n\t\tisChecked() {\n\t\t\tif (this.type === 'radio' && typeof this.modelValue !== 'boolean') {\n\t\t\t\treturn this.modelValue === this.value\n\t\t\t}\n\t\t\treturn this.modelValue\n\t\t},\n\n\t\t/**\n\t\t * The native HTML type to set on the button\n\t\t */\n\t\tnativeType() {\n\t\t\tif (this.type === 'submit' || this.type === 'reset') {\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn 'button'\n\t\t},\n\n\t\t/**\n\t\t * HTML attributes to bind to the <button>\n\t\t */\n\t\tbuttonAttributes() {\n\t\t\tconst attributes = {}\n\n\t\t\tif (this.isInSemanticMenu) {\n\t\t\t\t// By default it needs to be a menu item in semantic menus\n\t\t\t\tattributes.role = 'menuitem'\n\n\t\t\t\tif (this.type === 'radio') {\n\t\t\t\t\tattributes.role = 'menuitemradio'\n\t\t\t\t\tattributes['aria-checked'] = this.isChecked ? 'true' : 'false'\n\t\t\t\t} else if (this.type === 'checkbox' || (this.nativeType === 'button' && this.modelValue !== null)) {\n\t\t\t\t\t// either if checkbox behavior was set or the model value is not unset\n\t\t\t\t\tattributes.role = 'menuitemcheckbox'\n\t\t\t\t\tattributes['aria-checked'] = this.modelValue === null ? 'mixed' : (this.modelValue ? 'true' : 'false')\n\t\t\t\t}\n\t\t\t} else if (this.modelValue !== null && this.nativeType === 'button') {\n\t\t\t\t// In case this has a modelValue it is considered a toggle button, so we need to set the aria-pressed\n\t\t\t\tattributes['aria-pressed'] = this.modelValue ? 'true' : 'false'\n\t\t\t}\n\n\t\t\treturn attributes\n\t\t},\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Forward click event, let mixin handle the close-after-click and emit new modelValue if needed\n\t\t *\n\t\t * @param {MouseEvent} event The click event\n\t\t */\n\t\thandleClick(event) {\n\t\t\tthis.onClick(event)\n\t\t\t// If modelValue or type is set (so modelValue might be null for tri-state) we need to update it\n\t\t\tif (this.modelValue !== null || this.type !== 'button') {\n\t\t\t\tif (this.type === 'radio') {\n\t\t\t\t\tif (typeof this.modelValue !== 'boolean') {\n\t\t\t\t\t\t// String-value radios behavior is similar to native - click on checked radio does nothing\n\t\t\t\t\t\tif (!this.isChecked) {\n\t\t\t\t\t\t\tthis.$emit('update:modelValue', this.value)\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Boolean radio allows to uncheck\n\t\t\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Checkbox toggles value\n\t\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@use '../../assets/action.scss' as *;\n@include action-active;\n@include action--disabled;\n@include action-item('button');\n\n.action-button {\n\t&__pressed-icon {\n\t\tmargin-inline: auto calc($icon-margin * -1);\n\t}\n\n\t* {\n\t\tcursor: pointer;\n\t}\n}\n</style>\n"],"names":["NcIconSvgWrapper","ActionTextMixin","mdiCheck","mdiChevronRight"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../assets/NcActionButton-
|
|
1
|
+
import '../assets/NcActionButton-CwGeOQFe.css';
|
|
2
2
|
import { m as mdiChevronRight, a as mdiCheck } from "./mdi-DkJglNiS.mjs";
|
|
3
3
|
import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-Bui9PhAS.mjs";
|
|
4
4
|
import { A as ActionTextMixin } from "./actionText-BMig9Egt.mjs";
|
|
@@ -181,4 +181,4 @@ const NcActionButton = __component__.exports;
|
|
|
181
181
|
export {
|
|
182
182
|
NcActionButton as N
|
|
183
183
|
};
|
|
184
|
-
//# sourceMappingURL=NcActionButton-
|
|
184
|
+
//# sourceMappingURL=NcActionButton-D7uypboC.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NcActionButton-K4jUGMlW.mjs","sources":["../../src/components/NcActionButton/NcActionButton.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Delete')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDelete\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :close-after-click=\"true\" @click=\"showMessage('Delete and close menu')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDelete and close\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :is-menu=\"true\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPlus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tCreate\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :disabled=\"true\" @click=\"showMessage('Disabled')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDisabled button\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport IconTrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'\n\timport IconPlus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tIconTrashCanOutline,\n\t\t\tIconPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n```\n\nIf you're using a long text, you can specify a `name` prop.\n\nFor the same purpose, but in a more compact way, `description` prop can be used.\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPlus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd new\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton name=\"Long button\" @click=\"showMessage('Delete')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tThis button is associated with a very long text.\\nAnd with new lines too.\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton description=\"Subline description for the button\" @click=\"showMessage('Edit')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPencilOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tEdit\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport IconTrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'\n\timport IconPencilOutline from 'vue-material-design-icons/PencilOutline.vue'\n\timport IconPlus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tIconTrashCanOutline,\n\t\t\tIconPencilOutline,\n\t\t\tIconPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n\n```\n\nAction icon attribute with a single action\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPlus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd new\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport IconPlus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tIconPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n\n```\n\nYou can also use a custom icon, for example from the vue-material-design-icons library:\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<IconHandBackLeftOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise left hand\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<IconHandBackRightOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise right hand\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport IconHandBackLeftOutline from 'vue-material-design-icons/HandBackLeftOutline.vue'\nimport IconHandBackRightOutline from 'vue-material-design-icons/HandBackRightOutline.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconHandBackLeftOutline,\n\t\tIconHandBackRightOutline,\n\t},\n}\n</script>\n```\n\n### With different model behavior\nBy default the button will act like a normal button, but it is also possible to change the behavior to a toggle button, checkbox button or radio button.\n\nFor example to have the button act like a toggle button just set the `modelValue` property to the toggle state:\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton :model-value.sync=\"fullscreen\">\n\t\t\t<template #icon>\n\t\t\t\t<IconFullscreen :size=\"20\" />\n\t\t\t</template>\n\t\t\tFullscreen\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport IconFullscreen from 'vue-material-design-icons/Fullscreen.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconFullscreen,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfullscreen: true,\n\t\t}\n\t},\n}\n</script>\n```\n\nAnother example would be using it with checkbox semantics, to enable or disable features.\nThis also allows tri-state behavior (`true`, `false`, `null`) in which case `aria-checked` will be either `true`, `false` or `mixed`.\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton :model-value.sync=\"handRaised\" type=\"checkbox\">\n\t\t\t<template #icon>\n\t\t\t\t<IconHandBackLeftOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise hand\n\t\t</NcActionButton>\n\t\t<NcActionButton :model-value.sync=\"fullscreen\" type=\"checkbox\">\n\t\t\t<template #icon>\n\t\t\t\t<IconFullscreen :size=\"20\" />\n\t\t\t</template>\n\t\t\tFullscreen\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport IconHandBackLeftOutline from 'vue-material-design-icons/HandBackLeftOutline.vue'\nimport IconFullscreen from 'vue-material-design-icons/Fullscreen.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconHandBackLeftOutline,\n\t\tIconFullscreen,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfullscreen: true,\n\t\t\thandRaised: false,\n\t\t}\n\t},\n}\n</script>\n```\n\nIt is also possible to use the button with radio semantics, this is only possible in menus and not for inline actions!\n\nWith a string `modelValue`, checked state is determined by the `value` property and updates `modelValue` with the new `value` string.\n\nWith a boolean `modelValue`, checked state is determined by `modelValue` and updates to `true` on check.\n\nNote: unlike native radio buttons, `NcActionButton` are not grouped by name, so you need to connect them by bind correct `modelValue``.\n\n```vue\n<template>\n\t<div>\n\t\t<NcActions>\n\t\t\t<NcActionButton :model-value.sync=\"payment\" type=\"radio\" value=\"cash\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconCash :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPay with cash\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :model-value.sync=\"payment\" type=\"radio\" value=\"card\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconCreditCardOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPay by card\n\t\t\t</NcActionButton>\n\t\t\t<NcActionSeparator />\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isLeft\" @update:modelValue=\"setAlign('Left', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconFormatAlignLeft :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tLeft\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isCenter\" @update:modelValue=\"setAlign('Center', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconFormatAlignCenter :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tCenter\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isRight\" @update:modelValue=\"setAlign('Right', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconFormatAlignRight :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tRight\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t\t<p>payment = \"{{ payment }}\"</p>\n\t\t<p>align.isLeft = {{ align.isLeft }}</p>\n\t\t<p>align.isCenter = {{ align.isCenter }}</p>\n\t\t<p>align.isRight = {{ align.isRight }}</p>\n\t</div>\n</template>\n<script>\nimport IconCash from 'vue-material-design-icons/Cash.vue'\nimport IconCreditCardOutline from 'vue-material-design-icons/CreditCardOutline.vue'\nimport IconFormatAlignLeft from 'vue-material-design-icons/FormatAlignLeft.vue'\nimport IconFormatAlignCenter from 'vue-material-design-icons/FormatAlignCenter.vue'\nimport IconFormatAlignRight from 'vue-material-design-icons/FormatAlignRight.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconCash,\n\t\tIconCreditCardOutline,\n\t\tIconFormatAlignLeft,\n\t\tIconFormatAlignCenter,\n\t\tIconFormatAlignRight,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tpayment: 'card',\n\t\t\talign: {\n\t\t\t\tisLeft: false,\n\t\t\t\tisCenter: true,\n\t\t\t\tisRight: false,\n\t\t\t},\n\t\t}\n\t},\n\tmethods: {\n\t\tsetAlign(direction, value) {\n\t\t\tthis.align.isLeft = false\n\t\t\tthis.align.isCenter = false\n\t\t\tthis.align.isRight = false\n\t\t\tthis.align[`is${direction}`] = value\n\t\t},\n\t}\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<button\n\t\t\t:aria-label=\"ariaLabel\"\n\t\t\tclass=\"action-button button-vue\"\n\t\t\t:class=\"{\n\t\t\t\t'action-button--active': isChecked,\n\t\t\t\tfocusable: isFocusable,\n\t\t\t}\"\n\t\t\t:disabled=\"disabled\"\n\t\t\t:title=\"title\"\n\t\t\t:type=\"nativeType\"\n\t\t\tv-bind=\"buttonAttributes\"\n\t\t\t@click=\"handleClick\">\n\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<span\n\t\t\t\t\t:class=\"[isIconUrl ? 'action-button__icon--url' : icon]\"\n\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"action-button__icon\" />\n\t\t\t</slot>\n\n\t\t\t<!-- long text with name -->\n\t\t\t<span class=\"action-button__longtext-wrapper\">\n\t\t\t\t<strong\n\t\t\t\t\tv-if=\"name\"\n\t\t\t\t\tclass=\"action-button__name\">\n\t\t\t\t\t{{ name }}\n\t\t\t\t</strong>\n\t\t\t\t<!-- white space is shown on longtext, so we can't\n\t\t\t\t\tput {{ text }} on a new line for code readability -->\n\t\t\t\t<span\n\t\t\t\t\tv-if=\"isLongText\"\n\t\t\t\t\tclass=\"action-button__longtext\"\n\t\t\t\t\tv-text=\"text\" />\n\t\t\t\t<!-- default text display -->\n\t\t\t\t<span\n\t\t\t\t\tv-else\n\t\t\t\t\tclass=\"action-button__text\">\n\t\t\t\t\t{{ text }}\n\t\t\t\t</span>\n\t\t\t\t<span\n\t\t\t\t\tv-if=\"description\"\n\t\t\t\t\tclass=\"action-button__description\"\n\t\t\t\t\tv-text=\"description\" />\n\t\t\t</span>\n\n\t\t\t<!-- right(in LTR) or left(in RTL) arrow icon when there is a sub-menu -->\n\t\t\t<NcIconSvgWrapper\n\t\t\t\tv-if=\"isMenu\"\n\t\t\t\tclass=\"action-button__menu-icon\"\n\t\t\t\tdirectional\n\t\t\t\t:path=\"mdiChevronRight\" />\n\t\t\t<NcIconSvgWrapper v-else-if=\"isChecked\" :path=\"mdiCheck\" class=\"action-button__pressed-icon\" />\n\n\t\t\t<span v-else-if=\"isChecked === false\" class=\"action-button__pressed-icon material-design-icon\" />\n\n\t\t\t<!-- fake slot to gather inner text -->\n\t\t\t<slot v-if=\"false\" />\n\t\t</button>\n\t</li>\n</template>\n\n<script>\nimport { mdiCheck, mdiChevronRight } from '@mdi/js'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/NcIconSvgWrapper.vue'\nimport ActionTextMixin from '../../mixins/actionText.js'\n\n/**\n * Button component to be used in Actions\n */\nexport default {\n\tname: 'NcActionButton',\n\n\tcomponents: {\n\t\tNcIconSvgWrapper,\n\t},\n\n\tmixins: [ActionTextMixin],\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: 'NcActions:isSemanticMenu',\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.\n\t\t * @todo Add a check in @nextcloud/vue 9 that this prop is not provided,\n\t\t * otherwise root element will inherit incorrect aria-hidden.\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\t// eslint-disable-next-line vue/no-boolean-default\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * disabled state of the action button\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * If this is a menu, a chevron icon will\n\t\t * be added at the end of the line\n\t\t */\n\t\tisMenu: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The button's behavior, by default the button acts like a normal button with optional toggle button behavior if `modelValue` is `true` or `false`.\n\t\t * But you can also set to checkbox button behavior with tri-state or radio button like behavior.\n\t\t * This extends the native HTML button type attribute.\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'button',\n\t\t\tvalidator: (behavior) => ['button', 'checkbox', 'radio', 'reset', 'submit'].includes(behavior),\n\t\t},\n\n\t\t/**\n\t\t * The buttons state if `type` is 'checkbox' or 'radio' (meaning if it is pressed / selected).\n\t\t * For checkbox and toggle button behavior - boolean value.\n\t\t * For radio button behavior - could be a boolean checked or a string with the value of the button.\n\t\t * Note: Unlike native radio buttons, NcActionButton are not grouped by name, so you need to connect them by bind correct modelValue.\n\t\t *\n\t\t * **This is not availabe for `type='submit'` or `type='reset'`**\n\t\t *\n\t\t * If using `type='checkbox'` a `model-value` of `true` means checked, `false` means unchecked and `null` means indeterminate (tri-state)\n\t\t * For `type='radio'` `null` is equal to `false`\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: [Boolean, String],\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The value used for the `modelValue` when this component is used with radio behavior\n\t\t * Similar to the `value` attribute of `<input type=\"radio\">`\n\t\t */\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Small underlying text content of the entry\n\t\t */\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\tsetup() {\n\t\treturn {\n\t\t\tmdiCheck,\n\t\t\tmdiChevronRight,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * determines if the action is focusable\n\t\t *\n\t\t * @return {boolean} is the action focusable ?\n\t\t */\n\t\tisFocusable() {\n\t\t\treturn !this.disabled\n\t\t},\n\n\t\t/**\n\t\t * The current \"checked\" or \"pressed\" state for the model behavior\n\t\t */\n\t\tisChecked() {\n\t\t\tif (this.type === 'radio' && typeof this.modelValue !== 'boolean') {\n\t\t\t\treturn this.modelValue === this.value\n\t\t\t}\n\t\t\treturn this.modelValue\n\t\t},\n\n\t\t/**\n\t\t * The native HTML type to set on the button\n\t\t */\n\t\tnativeType() {\n\t\t\tif (this.type === 'submit' || this.type === 'reset') {\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn 'button'\n\t\t},\n\n\t\t/**\n\t\t * HTML attributes to bind to the <button>\n\t\t */\n\t\tbuttonAttributes() {\n\t\t\tconst attributes = {}\n\n\t\t\tif (this.isInSemanticMenu) {\n\t\t\t\t// By default it needs to be a menu item in semantic menus\n\t\t\t\tattributes.role = 'menuitem'\n\n\t\t\t\tif (this.type === 'radio') {\n\t\t\t\t\tattributes.role = 'menuitemradio'\n\t\t\t\t\tattributes['aria-checked'] = this.isChecked ? 'true' : 'false'\n\t\t\t\t} else if (this.type === 'checkbox' || (this.nativeType === 'button' && this.modelValue !== null)) {\n\t\t\t\t\t// either if checkbox behavior was set or the model value is not unset\n\t\t\t\t\tattributes.role = 'menuitemcheckbox'\n\t\t\t\t\tattributes['aria-checked'] = this.modelValue === null ? 'mixed' : (this.modelValue ? 'true' : 'false')\n\t\t\t\t}\n\t\t\t} else if (this.modelValue !== null && this.nativeType === 'button') {\n\t\t\t\t// In case this has a modelValue it is considered a toggle button, so we need to set the aria-pressed\n\t\t\t\tattributes['aria-pressed'] = this.modelValue ? 'true' : 'false'\n\t\t\t}\n\n\t\t\treturn attributes\n\t\t},\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Forward click event, let mixin handle the close-after-click and emit new modelValue if needed\n\t\t *\n\t\t * @param {MouseEvent} event The click event\n\t\t */\n\t\thandleClick(event) {\n\t\t\tthis.onClick(event)\n\t\t\t// If modelValue or type is set (so modelValue might be null for tri-state) we need to update it\n\t\t\tif (this.modelValue !== null || this.type !== 'button') {\n\t\t\t\tif (this.type === 'radio') {\n\t\t\t\t\tif (typeof this.modelValue !== 'boolean') {\n\t\t\t\t\t\t// String-value radios behavior is similar to native - click on checked radio does nothing\n\t\t\t\t\t\tif (!this.isChecked) {\n\t\t\t\t\t\t\tthis.$emit('update:modelValue', this.value)\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Boolean radio allows to uncheck\n\t\t\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Checkbox toggles value\n\t\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@use '../../assets/action.scss' as *;\n@include action-active;\n@include action--disabled;\n@include action-item('button');\n\n.action-button {\n\t&__pressed-icon {\n\t\tmargin-inline: auto calc($icon-margin * -1);\n\t}\n\n\t* {\n\t\tcursor: pointer;\n\t}\n}\n</style>\n"],"names":[],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"NcActionButton-D7uypboC.mjs","sources":["../../src/components/NcActionButton/NcActionButton.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Delete')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDelete\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :close-after-click=\"true\" @click=\"showMessage('Delete and close menu')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDelete and close\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :is-menu=\"true\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPlus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tCreate\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :disabled=\"true\" @click=\"showMessage('Disabled')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDisabled button\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport IconTrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'\n\timport IconPlus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tIconTrashCanOutline,\n\t\t\tIconPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n```\n\nIf you're using a long text, you can specify a `name` prop.\n\nFor the same purpose, but in a more compact way, `description` prop can be used.\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPlus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd new\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton name=\"Long button\" @click=\"showMessage('Delete')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconTrashCanOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tThis button is associated with a very long text.\\nAnd with new lines too.\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton description=\"Subline description for the button\" @click=\"showMessage('Edit')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPencilOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tEdit\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport IconTrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'\n\timport IconPencilOutline from 'vue-material-design-icons/PencilOutline.vue'\n\timport IconPlus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tIconTrashCanOutline,\n\t\t\tIconPencilOutline,\n\t\t\tIconPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n\n```\n\nAction icon attribute with a single action\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconPlus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd new\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport IconPlus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tIconPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n\n```\n\nYou can also use a custom icon, for example from the vue-material-design-icons library:\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<IconHandBackLeftOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise left hand\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<IconHandBackRightOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise right hand\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport IconHandBackLeftOutline from 'vue-material-design-icons/HandBackLeftOutline.vue'\nimport IconHandBackRightOutline from 'vue-material-design-icons/HandBackRightOutline.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconHandBackLeftOutline,\n\t\tIconHandBackRightOutline,\n\t},\n}\n</script>\n```\n\n### With different model behavior\nBy default the button will act like a normal button, but it is also possible to change the behavior to a toggle button, checkbox button or radio button.\n\nFor example to have the button act like a toggle button just set the `modelValue` property to the toggle state:\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton :model-value.sync=\"fullscreen\">\n\t\t\t<template #icon>\n\t\t\t\t<IconFullscreen :size=\"20\" />\n\t\t\t</template>\n\t\t\tFullscreen\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport IconFullscreen from 'vue-material-design-icons/Fullscreen.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconFullscreen,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfullscreen: true,\n\t\t}\n\t},\n}\n</script>\n```\n\nAnother example would be using it with checkbox semantics, to enable or disable features.\nThis also allows tri-state behavior (`true`, `false`, `null`) in which case `aria-checked` will be either `true`, `false` or `mixed`.\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton :model-value.sync=\"handRaised\" type=\"checkbox\">\n\t\t\t<template #icon>\n\t\t\t\t<IconHandBackLeftOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise hand\n\t\t</NcActionButton>\n\t\t<NcActionButton :model-value.sync=\"fullscreen\" type=\"checkbox\">\n\t\t\t<template #icon>\n\t\t\t\t<IconFullscreen :size=\"20\" />\n\t\t\t</template>\n\t\t\tFullscreen\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport IconHandBackLeftOutline from 'vue-material-design-icons/HandBackLeftOutline.vue'\nimport IconFullscreen from 'vue-material-design-icons/Fullscreen.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconHandBackLeftOutline,\n\t\tIconFullscreen,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfullscreen: true,\n\t\t\thandRaised: false,\n\t\t}\n\t},\n}\n</script>\n```\n\nIt is also possible to use the button with radio semantics, this is only possible in menus and not for inline actions!\n\nWith a string `modelValue`, checked state is determined by the `value` property and updates `modelValue` with the new `value` string.\n\nWith a boolean `modelValue`, checked state is determined by `modelValue` and updates to `true` on check.\n\nNote: unlike native radio buttons, `NcActionButton` are not grouped by name, so you need to connect them by bind correct `modelValue``.\n\n```vue\n<template>\n\t<div>\n\t\t<NcActions>\n\t\t\t<NcActionButton :model-value.sync=\"payment\" type=\"radio\" value=\"cash\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconCash :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPay with cash\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :model-value.sync=\"payment\" type=\"radio\" value=\"card\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconCreditCardOutline :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPay by card\n\t\t\t</NcActionButton>\n\t\t\t<NcActionSeparator />\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isLeft\" @update:modelValue=\"setAlign('Left', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconFormatAlignLeft :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tLeft\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isCenter\" @update:modelValue=\"setAlign('Center', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconFormatAlignCenter :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tCenter\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isRight\" @update:modelValue=\"setAlign('Right', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<IconFormatAlignRight :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tRight\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t\t<p>payment = \"{{ payment }}\"</p>\n\t\t<p>align.isLeft = {{ align.isLeft }}</p>\n\t\t<p>align.isCenter = {{ align.isCenter }}</p>\n\t\t<p>align.isRight = {{ align.isRight }}</p>\n\t</div>\n</template>\n<script>\nimport IconCash from 'vue-material-design-icons/Cash.vue'\nimport IconCreditCardOutline from 'vue-material-design-icons/CreditCardOutline.vue'\nimport IconFormatAlignLeft from 'vue-material-design-icons/FormatAlignLeft.vue'\nimport IconFormatAlignCenter from 'vue-material-design-icons/FormatAlignCenter.vue'\nimport IconFormatAlignRight from 'vue-material-design-icons/FormatAlignRight.vue'\n\nexport default {\n\tcomponents: {\n\t\tIconCash,\n\t\tIconCreditCardOutline,\n\t\tIconFormatAlignLeft,\n\t\tIconFormatAlignCenter,\n\t\tIconFormatAlignRight,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tpayment: 'card',\n\t\t\talign: {\n\t\t\t\tisLeft: false,\n\t\t\t\tisCenter: true,\n\t\t\t\tisRight: false,\n\t\t\t},\n\t\t}\n\t},\n\tmethods: {\n\t\tsetAlign(direction, value) {\n\t\t\tthis.align.isLeft = false\n\t\t\tthis.align.isCenter = false\n\t\t\tthis.align.isRight = false\n\t\t\tthis.align[`is${direction}`] = value\n\t\t},\n\t}\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<button\n\t\t\t:aria-label=\"ariaLabel\"\n\t\t\tclass=\"action-button button-vue\"\n\t\t\t:class=\"{\n\t\t\t\t'action-button--active': isChecked,\n\t\t\t\tfocusable: isFocusable,\n\t\t\t}\"\n\t\t\t:disabled=\"disabled\"\n\t\t\t:title=\"title\"\n\t\t\t:type=\"nativeType\"\n\t\t\tv-bind=\"buttonAttributes\"\n\t\t\t@click=\"handleClick\">\n\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<span\n\t\t\t\t\t:class=\"[isIconUrl ? 'action-button__icon--url' : icon]\"\n\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"action-button__icon\" />\n\t\t\t</slot>\n\n\t\t\t<!-- long text with name -->\n\t\t\t<span class=\"action-button__longtext-wrapper\">\n\t\t\t\t<strong\n\t\t\t\t\tv-if=\"name\"\n\t\t\t\t\tclass=\"action-button__name\">\n\t\t\t\t\t{{ name }}\n\t\t\t\t</strong>\n\t\t\t\t<!-- white space is shown on longtext, so we can't\n\t\t\t\t\tput {{ text }} on a new line for code readability -->\n\t\t\t\t<span\n\t\t\t\t\tv-if=\"isLongText\"\n\t\t\t\t\tclass=\"action-button__longtext\"\n\t\t\t\t\tv-text=\"text\" />\n\t\t\t\t<!-- default text display -->\n\t\t\t\t<span\n\t\t\t\t\tv-else\n\t\t\t\t\tclass=\"action-button__text\">\n\t\t\t\t\t{{ text }}\n\t\t\t\t</span>\n\t\t\t\t<span\n\t\t\t\t\tv-if=\"description\"\n\t\t\t\t\tclass=\"action-button__description\"\n\t\t\t\t\tv-text=\"description\" />\n\t\t\t</span>\n\n\t\t\t<!-- right(in LTR) or left(in RTL) arrow icon when there is a sub-menu -->\n\t\t\t<NcIconSvgWrapper\n\t\t\t\tv-if=\"isMenu\"\n\t\t\t\tclass=\"action-button__menu-icon\"\n\t\t\t\tdirectional\n\t\t\t\t:path=\"mdiChevronRight\" />\n\t\t\t<NcIconSvgWrapper v-else-if=\"isChecked\" :path=\"mdiCheck\" class=\"action-button__pressed-icon\" />\n\n\t\t\t<span v-else-if=\"isChecked === false\" class=\"action-button__pressed-icon material-design-icon\" />\n\n\t\t\t<!-- fake slot to gather inner text -->\n\t\t\t<slot v-if=\"false\" />\n\t\t</button>\n\t</li>\n</template>\n\n<script>\nimport { mdiCheck, mdiChevronRight } from '@mdi/js'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/NcIconSvgWrapper.vue'\nimport ActionTextMixin from '../../mixins/actionText.js'\n\n/**\n * Button component to be used in Actions\n */\nexport default {\n\tname: 'NcActionButton',\n\n\tcomponents: {\n\t\tNcIconSvgWrapper,\n\t},\n\n\tmixins: [ActionTextMixin],\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: 'NcActions:isSemanticMenu',\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.\n\t\t * @todo Add a check in @nextcloud/vue 9 that this prop is not provided,\n\t\t * otherwise root element will inherit incorrect aria-hidden.\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\t// eslint-disable-next-line vue/no-boolean-default\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * disabled state of the action button\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * If this is a menu, a chevron icon will\n\t\t * be added at the end of the line\n\t\t */\n\t\tisMenu: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The button's behavior, by default the button acts like a normal button with optional toggle button behavior if `modelValue` is `true` or `false`.\n\t\t * But you can also set to checkbox button behavior with tri-state or radio button like behavior.\n\t\t * This extends the native HTML button type attribute.\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'button',\n\t\t\tvalidator: (behavior) => ['button', 'checkbox', 'radio', 'reset', 'submit'].includes(behavior),\n\t\t},\n\n\t\t/**\n\t\t * The buttons state if `type` is 'checkbox' or 'radio' (meaning if it is pressed / selected).\n\t\t * For checkbox and toggle button behavior - boolean value.\n\t\t * For radio button behavior - could be a boolean checked or a string with the value of the button.\n\t\t * Note: Unlike native radio buttons, NcActionButton are not grouped by name, so you need to connect them by bind correct modelValue.\n\t\t *\n\t\t * **This is not availabe for `type='submit'` or `type='reset'`**\n\t\t *\n\t\t * If using `type='checkbox'` a `model-value` of `true` means checked, `false` means unchecked and `null` means indeterminate (tri-state)\n\t\t * For `type='radio'` `null` is equal to `false`\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: [Boolean, String],\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The value used for the `modelValue` when this component is used with radio behavior\n\t\t * Similar to the `value` attribute of `<input type=\"radio\">`\n\t\t */\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Small underlying text content of the entry\n\t\t */\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\tsetup() {\n\t\treturn {\n\t\t\tmdiCheck,\n\t\t\tmdiChevronRight,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * determines if the action is focusable\n\t\t *\n\t\t * @return {boolean} is the action focusable ?\n\t\t */\n\t\tisFocusable() {\n\t\t\treturn !this.disabled\n\t\t},\n\n\t\t/**\n\t\t * The current \"checked\" or \"pressed\" state for the model behavior\n\t\t */\n\t\tisChecked() {\n\t\t\tif (this.type === 'radio' && typeof this.modelValue !== 'boolean') {\n\t\t\t\treturn this.modelValue === this.value\n\t\t\t}\n\t\t\treturn this.modelValue\n\t\t},\n\n\t\t/**\n\t\t * The native HTML type to set on the button\n\t\t */\n\t\tnativeType() {\n\t\t\tif (this.type === 'submit' || this.type === 'reset') {\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn 'button'\n\t\t},\n\n\t\t/**\n\t\t * HTML attributes to bind to the <button>\n\t\t */\n\t\tbuttonAttributes() {\n\t\t\tconst attributes = {}\n\n\t\t\tif (this.isInSemanticMenu) {\n\t\t\t\t// By default it needs to be a menu item in semantic menus\n\t\t\t\tattributes.role = 'menuitem'\n\n\t\t\t\tif (this.type === 'radio') {\n\t\t\t\t\tattributes.role = 'menuitemradio'\n\t\t\t\t\tattributes['aria-checked'] = this.isChecked ? 'true' : 'false'\n\t\t\t\t} else if (this.type === 'checkbox' || (this.nativeType === 'button' && this.modelValue !== null)) {\n\t\t\t\t\t// either if checkbox behavior was set or the model value is not unset\n\t\t\t\t\tattributes.role = 'menuitemcheckbox'\n\t\t\t\t\tattributes['aria-checked'] = this.modelValue === null ? 'mixed' : (this.modelValue ? 'true' : 'false')\n\t\t\t\t}\n\t\t\t} else if (this.modelValue !== null && this.nativeType === 'button') {\n\t\t\t\t// In case this has a modelValue it is considered a toggle button, so we need to set the aria-pressed\n\t\t\t\tattributes['aria-pressed'] = this.modelValue ? 'true' : 'false'\n\t\t\t}\n\n\t\t\treturn attributes\n\t\t},\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Forward click event, let mixin handle the close-after-click and emit new modelValue if needed\n\t\t *\n\t\t * @param {MouseEvent} event The click event\n\t\t */\n\t\thandleClick(event) {\n\t\t\tthis.onClick(event)\n\t\t\t// If modelValue or type is set (so modelValue might be null for tri-state) we need to update it\n\t\t\tif (this.modelValue !== null || this.type !== 'button') {\n\t\t\t\tif (this.type === 'radio') {\n\t\t\t\t\tif (typeof this.modelValue !== 'boolean') {\n\t\t\t\t\t\t// String-value radios behavior is similar to native - click on checked radio does nothing\n\t\t\t\t\t\tif (!this.isChecked) {\n\t\t\t\t\t\t\tthis.$emit('update:modelValue', this.value)\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Boolean radio allows to uncheck\n\t\t\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Checkbox toggles value\n\t\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@use '../../assets/action.scss' as *;\n@include action-active;\n@include action--disabled;\n@include action-item('button');\n\n.action-button {\n\t&__pressed-icon {\n\t\tmargin-inline: auto calc($icon-margin * -1);\n\t}\n\n\t* {\n\t\tcursor: pointer;\n\t}\n}\n</style>\n"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('../assets/NcActionCheckbox-
|
|
1
|
+
require('../assets/NcActionCheckbox-DG9SyAAy.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
const mdi = require("./mdi-DTiP6a6e.cjs");
|
|
4
4
|
const Vue = require("vue");
|
|
@@ -135,4 +135,4 @@ var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
|
135
135
|
);
|
|
136
136
|
const NcActionCheckbox = __component__.exports;
|
|
137
137
|
exports.NcActionCheckbox = NcActionCheckbox;
|
|
138
|
-
//# sourceMappingURL=NcActionCheckbox-
|
|
138
|
+
//# sourceMappingURL=NcActionCheckbox-B3vUOSeb.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NcActionCheckbox-
|
|
1
|
+
{"version":3,"file":"NcActionCheckbox-B3vUOSeb.cjs","sources":["../../src/components/NcActionCheckbox/NcActionCheckbox.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionCheckbox @change=\"log('(un)checked !')\">First choice</NcActionCheckbox>\n\t\t<NcActionCheckbox value=\"second\" @change=\"log('(un)checked !')\">Second choice</NcActionCheckbox>\n\t\t<NcActionCheckbox v-model=\"checkboxValue\" @change=\"log('(un)checked !')\">Third choice (checked)</NcActionCheckbox>\n\t\t<NcActionCheckbox :disabled=\"true\" @change=\"log('(un)checked !')\">Second choice (disabled)</NcActionCheckbox>\n\t</NcActions>\n</template>\n\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tcheckboxValue: true,\n\t\t}\n\t},\n\n\tmethods: {\n\t\tlog: console.log,\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<label class=\"action-checkbox\" :role=\"isInSemanticMenu && 'menuitemcheckbox'\" :aria-checked=\"isInSemanticMenu && localModel.toString()\">\n\t\t\t<span class=\"action-checkbox__icon\">\n\t\t\t\t<input\n\t\t\t\t\t:id=\"id\"\n\t\t\t\t\tv-model=\"localModel\"\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tclass=\"action-checkbox__input\"\n\t\t\t\t\t:class=\"{ focusable: !disabled }\"\n\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t@change=\"onChange\">\n\t\t\t\t<NcIconSvgWrapper :path=\"localModel ? mdiCheckboxMarked : mdiCheckboxBlankOutline\" :size=\"20\" />\n\t\t\t</span>\n\t\t\t<span class=\"action-checkbox__text\">{{ text }}</span>\n\t\t</label>\n\t</li>\n</template>\n\n<script>\nimport { mdiCheckboxBlankOutline, mdiCheckboxMarked } from '@mdi/js'\nimport { ref, watch } from 'vue'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/NcIconSvgWrapper.vue'\nimport { useModelMigration } from '../../composables/useModelMigration.ts'\nimport ActionGlobalMixin from '../../mixins/actionGlobal.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\n\nexport default {\n\tname: 'NcActionCheckbox',\n\n\tcomponents: {\n\t\tNcIconSvgWrapper,\n\t},\n\n\tmixins: [ActionGlobalMixin],\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: 'NcActions:isSemanticMenu',\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tmodel: {\n\t\tprop: 'modelValue',\n\t\tevent: 'update:modelValue',\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * id attribute of the checkbox element\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'action-' + GenRandomId(),\n\t\t\tvalidator: (id) => id.trim() !== '',\n\t\t},\n\n\t\t/**\n\t\t * Removed in v9 - use `modelValue` (`v-model`) instead\n\t\t *\n\t\t * @deprecated\n\t\t */\n\t\tchecked: {\n\t\t\ttype: Boolean,\n\t\t\t// eslint-disable-next-line vue/no-boolean-default\n\t\t\tdefault: undefined,\n\t\t},\n\n\t\t/**\n\t\t * checked state of the the checkbox element\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * value of the checkbox input\n\t\t */\n\t\tvalue: {\n\t\t\ttype: [String, Number],\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * disabled state of the checkbox element\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\temits: [\n\t\t/** Native change event */\n\t\t'change',\n\t\t/** Checkbox is checked */\n\t\t'check',\n\t\t/** Checkbox is unchecked */\n\t\t'uncheck',\n\t\t/**\n\t\t * Removed in v9 - use `update:modelValue` (`v-model`) instead\n\t\t *\n\t\t * @deprecated\n\t\t */\n\t\t'update:checked',\n\t\t/**\n\t\t * Emitted when the checkbox state is changed\n\t\t *\n\t\t * @type {boolean}\n\t\t */\n\t\t'update:modelValue',\n\t\t/** Same as update:modelValue for Vue 2 compatibility */\n\t\t'update:model-value',\n\t],\n\n\tsetup() {\n\t\tconst model = useModelMigration('checked', 'update:checked')\n\n\t\t// For backward compatibility to support using without v-model binding (passive model)\n\t\tconst localModel = ref(model.value)\n\t\twatch(model, (newValue) => (localModel.value = newValue), { flush: 'sync' })\n\t\twatch(localModel, (newValue) => (model.value = newValue), { flush: 'sync' })\n\n\t\treturn {\n\t\t\tlocalModel,\n\t\t\tmdiCheckboxBlankOutline,\n\t\t\tmdiCheckboxMarked,\n\t\t}\n\t},\n\n\tmethods: {\n\t\tonChange(event) {\n\t\t\tthis.$emit('change', event)\n\t\t\tif (event.target.checked) {\n\t\t\t\tthis.$emit('check')\n\t\t\t} else {\n\t\t\t\tthis.$emit('uncheck')\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@use '../../assets/action.scss' as *;\n@include action-active;\n@include action--disabled;\n@include action-item('checkbox');\n\n.action:has(:focus-visible) {\n\toutline: 2px solid currentColor;\n}\n\n.action-checkbox {\n\t&__icon {\n\t\tcolor: var(--color-primary-element);\n\t}\n\n\t&__input {\n\t\twidth: 20px;\n\t\theight: 20px;\n\t\tmargin: auto;\n\t\tposition: absolute;\n\t\tz-index: -1;\n\t\topacity: 0 !important;\n\t}\n}\n</style>\n"],"names":["NcIconSvgWrapper","ActionGlobalMixin","GenRandomId","useModelMigration","ref","watch","mdiCheckboxBlankOutline","mdiCheckboxMarked"],"mappings":";;;;;;;;AA8DA,MAAA,YAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA,kBAAAA,iBAAAA;AAAAA,EACA;AAAA,EAEA,QAAA,CAAAC,aAAAA,iBAAA;AAAA,EAEA,QAAA;AAAA,IACA,kBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA,IACA,MAAA;AAAA,IACA,OAAA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,IAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA,MAAA,YAAAC,wBAAA;AAAA,MACA,WAAA,CAAA,OAAA,GAAA,KAAA,MAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,SAAA;AAAA,MACA,MAAA;AAAA;AAAA,MAEA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,YAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,OAAA;AAAA,MACA,MAAA,CAAA,QAAA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA,IAEA;AAAA;AAAA,IAEA;AAAA;AAAA,IAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA;AAAA;AAAA,IAEA;AAAA,EACA;AAAA,EAEA,QAAA;AACA,UAAA,QAAAC,oCAAA,WAAA,gBAAA;AAGA,UAAA,aAAAC,QAAA,MAAA,KAAA;AACAC,cAAA,OAAA,CAAA,aAAA,WAAA,QAAA,UAAA,EAAA,OAAA,OAAA,CAAA;AACAA,cAAA,YAAA,CAAA,aAAA,MAAA,QAAA,UAAA,EAAA,OAAA,OAAA,CAAA;AAEA,WAAA;AAAA,MACA;AAAA,MACA,yBAAAC,IAAAA;AAAAA,MACA,mBAAAC,IAAAA;AAAAA,IACA;AAAA,EACA;AAAA,EAEA,SAAA;AAAA,IACA,SAAA,OAAA;AACA,WAAA,MAAA,UAAA,KAAA;AACA,UAAA,MAAA,OAAA,SAAA;AACA,aAAA,MAAA,OAAA;AAAA,MACA,OAAA;AACA,aAAA,MAAA,SAAA;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../assets/NcActionCheckbox-
|
|
1
|
+
import '../assets/NcActionCheckbox-DG9SyAAy.css';
|
|
2
2
|
import { i as mdiCheckboxMarked, j as mdiCheckboxBlankOutline } from "./mdi-DkJglNiS.mjs";
|
|
3
3
|
import { ref, watch } from "vue";
|
|
4
4
|
import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-Bui9PhAS.mjs";
|
|
@@ -136,4 +136,4 @@ const NcActionCheckbox = __component__.exports;
|
|
|
136
136
|
export {
|
|
137
137
|
NcActionCheckbox as N
|
|
138
138
|
};
|
|
139
|
-
//# sourceMappingURL=NcActionCheckbox-
|
|
139
|
+
//# sourceMappingURL=NcActionCheckbox-Cbg5yktN.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NcActionCheckbox-
|
|
1
|
+
{"version":3,"file":"NcActionCheckbox-Cbg5yktN.mjs","sources":["../../src/components/NcActionCheckbox/NcActionCheckbox.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionCheckbox @change=\"log('(un)checked !')\">First choice</NcActionCheckbox>\n\t\t<NcActionCheckbox value=\"second\" @change=\"log('(un)checked !')\">Second choice</NcActionCheckbox>\n\t\t<NcActionCheckbox v-model=\"checkboxValue\" @change=\"log('(un)checked !')\">Third choice (checked)</NcActionCheckbox>\n\t\t<NcActionCheckbox :disabled=\"true\" @change=\"log('(un)checked !')\">Second choice (disabled)</NcActionCheckbox>\n\t</NcActions>\n</template>\n\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tcheckboxValue: true,\n\t\t}\n\t},\n\n\tmethods: {\n\t\tlog: console.log,\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<label class=\"action-checkbox\" :role=\"isInSemanticMenu && 'menuitemcheckbox'\" :aria-checked=\"isInSemanticMenu && localModel.toString()\">\n\t\t\t<span class=\"action-checkbox__icon\">\n\t\t\t\t<input\n\t\t\t\t\t:id=\"id\"\n\t\t\t\t\tv-model=\"localModel\"\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tclass=\"action-checkbox__input\"\n\t\t\t\t\t:class=\"{ focusable: !disabled }\"\n\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t@change=\"onChange\">\n\t\t\t\t<NcIconSvgWrapper :path=\"localModel ? mdiCheckboxMarked : mdiCheckboxBlankOutline\" :size=\"20\" />\n\t\t\t</span>\n\t\t\t<span class=\"action-checkbox__text\">{{ text }}</span>\n\t\t</label>\n\t</li>\n</template>\n\n<script>\nimport { mdiCheckboxBlankOutline, mdiCheckboxMarked } from '@mdi/js'\nimport { ref, watch } from 'vue'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/NcIconSvgWrapper.vue'\nimport { useModelMigration } from '../../composables/useModelMigration.ts'\nimport ActionGlobalMixin from '../../mixins/actionGlobal.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\n\nexport default {\n\tname: 'NcActionCheckbox',\n\n\tcomponents: {\n\t\tNcIconSvgWrapper,\n\t},\n\n\tmixins: [ActionGlobalMixin],\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: 'NcActions:isSemanticMenu',\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tmodel: {\n\t\tprop: 'modelValue',\n\t\tevent: 'update:modelValue',\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * id attribute of the checkbox element\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'action-' + GenRandomId(),\n\t\t\tvalidator: (id) => id.trim() !== '',\n\t\t},\n\n\t\t/**\n\t\t * Removed in v9 - use `modelValue` (`v-model`) instead\n\t\t *\n\t\t * @deprecated\n\t\t */\n\t\tchecked: {\n\t\t\ttype: Boolean,\n\t\t\t// eslint-disable-next-line vue/no-boolean-default\n\t\t\tdefault: undefined,\n\t\t},\n\n\t\t/**\n\t\t * checked state of the the checkbox element\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * value of the checkbox input\n\t\t */\n\t\tvalue: {\n\t\t\ttype: [String, Number],\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * disabled state of the checkbox element\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\temits: [\n\t\t/** Native change event */\n\t\t'change',\n\t\t/** Checkbox is checked */\n\t\t'check',\n\t\t/** Checkbox is unchecked */\n\t\t'uncheck',\n\t\t/**\n\t\t * Removed in v9 - use `update:modelValue` (`v-model`) instead\n\t\t *\n\t\t * @deprecated\n\t\t */\n\t\t'update:checked',\n\t\t/**\n\t\t * Emitted when the checkbox state is changed\n\t\t *\n\t\t * @type {boolean}\n\t\t */\n\t\t'update:modelValue',\n\t\t/** Same as update:modelValue for Vue 2 compatibility */\n\t\t'update:model-value',\n\t],\n\n\tsetup() {\n\t\tconst model = useModelMigration('checked', 'update:checked')\n\n\t\t// For backward compatibility to support using without v-model binding (passive model)\n\t\tconst localModel = ref(model.value)\n\t\twatch(model, (newValue) => (localModel.value = newValue), { flush: 'sync' })\n\t\twatch(localModel, (newValue) => (model.value = newValue), { flush: 'sync' })\n\n\t\treturn {\n\t\t\tlocalModel,\n\t\t\tmdiCheckboxBlankOutline,\n\t\t\tmdiCheckboxMarked,\n\t\t}\n\t},\n\n\tmethods: {\n\t\tonChange(event) {\n\t\t\tthis.$emit('change', event)\n\t\t\tif (event.target.checked) {\n\t\t\t\tthis.$emit('check')\n\t\t\t} else {\n\t\t\t\tthis.$emit('uncheck')\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@use '../../assets/action.scss' as *;\n@include action-active;\n@include action--disabled;\n@include action-item('checkbox');\n\n.action:has(:focus-visible) {\n\toutline: 2px solid currentColor;\n}\n\n.action-checkbox {\n\t&__icon {\n\t\tcolor: var(--color-primary-element);\n\t}\n\n\t&__input {\n\t\twidth: 20px;\n\t\theight: 20px;\n\t\tmargin: auto;\n\t\tposition: absolute;\n\t\tz-index: -1;\n\t\topacity: 0 !important;\n\t}\n}\n</style>\n"],"names":[],"mappings":";;;;;;;AA8DA,MAAA,YAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,QAAA,CAAA,iBAAA;AAAA,EAEA,QAAA;AAAA,IACA,kBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA,IACA,MAAA;AAAA,IACA,OAAA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,IAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA,MAAA,YAAA,YAAA;AAAA,MACA,WAAA,CAAA,OAAA,GAAA,KAAA,MAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,SAAA;AAAA,MACA,MAAA;AAAA;AAAA,MAEA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,YAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,OAAA;AAAA,MACA,MAAA,CAAA,QAAA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA,IAEA;AAAA;AAAA,IAEA;AAAA;AAAA,IAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA;AAAA;AAAA,IAEA;AAAA,EACA;AAAA,EAEA,QAAA;AACA,UAAA,QAAA,kBAAA,WAAA,gBAAA;AAGA,UAAA,aAAA,IAAA,MAAA,KAAA;AACA,UAAA,OAAA,CAAA,aAAA,WAAA,QAAA,UAAA,EAAA,OAAA,OAAA,CAAA;AACA,UAAA,YAAA,CAAA,aAAA,MAAA,QAAA,UAAA,EAAA,OAAA,OAAA,CAAA;AAEA,WAAA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,SAAA;AAAA,IACA,SAAA,OAAA;AACA,WAAA,MAAA,UAAA,KAAA;AACA,UAAA,MAAA,OAAA,SAAA;AACA,aAAA,MAAA,OAAA;AAAA,MACA,OAAA;AACA,aAAA,MAAA,SAAA;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('../assets/NcActionInput-
|
|
1
|
+
require('../assets/NcActionInput-ESkvZDNh.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
const Vue = require("vue");
|
|
4
4
|
const useModelMigration = require("./useModelMigration-D5zhrNXr.cjs");
|
|
@@ -6,8 +6,8 @@ const _l10n = require("./_l10n-skrZri3h.cjs");
|
|
|
6
6
|
const actionGlobal = require("./actionGlobal-L0Ls8tPJ.cjs");
|
|
7
7
|
const GenRandomId = require("./GenRandomId-D7iOvpZS.cjs");
|
|
8
8
|
const Components_NcDateTimePickerNative = require("../Components/NcDateTimePickerNative.cjs");
|
|
9
|
-
const NcPasswordField = require("./NcPasswordField-
|
|
10
|
-
const NcTextField = require("./NcTextField-
|
|
9
|
+
const NcPasswordField = require("./NcPasswordField-9QeCVkJe.cjs");
|
|
10
|
+
const NcTextField = require("./NcTextField-2tiCeGZw.cjs");
|
|
11
11
|
const _pluginVue2_normalizer = require("./_plugin-vue2_normalizer-V0q-tHlQ.cjs");
|
|
12
12
|
const _interopNamespaceDefaultOnly = (e) => Object.freeze(Object.defineProperty({ __proto__: null, default: e }, Symbol.toStringTag, { value: "Module" }));
|
|
13
13
|
_l10n.register(_l10n.t50);
|
|
@@ -284,8 +284,8 @@ var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
|
284
284
|
_sfc_staticRenderFns,
|
|
285
285
|
false,
|
|
286
286
|
null,
|
|
287
|
-
"
|
|
287
|
+
"7f2f2ad1"
|
|
288
288
|
);
|
|
289
289
|
const NcActionInput = __component__.exports;
|
|
290
290
|
exports.NcActionInput = NcActionInput;
|
|
291
|
-
//# sourceMappingURL=NcActionInput-
|
|
291
|
+
//# sourceMappingURL=NcActionInput-DITmqZz5.cjs.map
|