@nextcloud/vue 8.11.0 → 8.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -1
- package/dist/Components/NcActionButtonGroup.cjs +1 -1
- package/dist/Components/NcActionButtonGroup.mjs +1 -1
- package/dist/Components/NcActionInput.cjs +1 -1
- package/dist/Components/NcActionInput.mjs +1 -1
- package/dist/Components/NcActions.cjs +1 -1
- package/dist/Components/NcActions.mjs +1 -1
- package/dist/Components/NcAppContent.cjs +1 -1
- package/dist/Components/NcAppContent.mjs +1 -1
- package/dist/Components/NcAppNavigation.cjs +1 -1
- package/dist/Components/NcAppNavigation.mjs +1 -1
- package/dist/Components/NcAppNavigationCaption.cjs +1 -1
- package/dist/Components/NcAppNavigationCaption.mjs +1 -1
- package/dist/Components/NcAppNavigationItem.cjs +1 -1
- package/dist/Components/NcAppNavigationItem.mjs +1 -1
- package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
- package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
- package/dist/Components/NcAppNavigationSettings.cjs +1 -1
- package/dist/Components/NcAppNavigationSettings.mjs +1 -1
- package/dist/Components/NcAppNavigationToggle.cjs +1 -1
- package/dist/Components/NcAppNavigationToggle.mjs +1 -1
- package/dist/Components/NcAppSettingsDialog.cjs +1 -1
- package/dist/Components/NcAppSettingsDialog.mjs +1 -1
- package/dist/Components/NcAppSidebar.cjs +1 -1
- package/dist/Components/NcAppSidebar.mjs +1 -1
- package/dist/Components/NcAvatar.cjs +1 -1
- package/dist/Components/NcAvatar.mjs +1 -1
- package/dist/Components/NcBreadcrumb.cjs +1 -1
- package/dist/Components/NcBreadcrumb.mjs +1 -1
- package/dist/Components/NcBreadcrumbs.cjs +1 -1
- package/dist/Components/NcBreadcrumbs.mjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.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/NcDateTime.cjs +1 -1
- package/dist/Components/NcDateTime.mjs +1 -1
- package/dist/Components/NcDateTimePicker.cjs +2 -2
- 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/NcEmojiPicker.cjs +1 -1
- package/dist/Components/NcEmojiPicker.mjs +1 -1
- package/dist/Components/NcHeaderMenu.cjs +1 -1
- package/dist/Components/NcHeaderMenu.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 +1 -1
- package/dist/Components/NcModal.mjs +3 -3
- package/dist/Components/NcPasswordField.cjs +1 -1
- package/dist/Components/NcPasswordField.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 +2 -2
- package/dist/Components/NcRichText.cjs +1 -1
- package/dist/Components/NcRichText.mjs +3 -3
- package/dist/Components/NcSelect.cjs +1 -1
- package/dist/Components/NcSelect.mjs +1 -1
- package/dist/Components/NcSelectTags.cjs +1 -1
- package/dist/Components/NcSelectTags.mjs +1 -1
- package/dist/Components/NcSettingsInputText.cjs +1 -1
- package/dist/Components/NcSettingsInputText.mjs +1 -1
- package/dist/Components/NcSettingsSection.cjs +1 -1
- package/dist/Components/NcSettingsSection.mjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
- package/dist/Components/NcTextField.cjs +1 -1
- package/dist/Components/NcTextField.mjs +1 -1
- package/dist/Components/NcTimezonePicker.cjs +1 -1
- package/dist/Components/NcTimezonePicker.mjs +1 -1
- package/dist/Components/NcUserBubble.cjs +1 -1
- package/dist/Components/NcUserBubble.mjs +1 -1
- package/dist/Components/NcUserStatusIcon.cjs +1 -1
- package/dist/Components/NcUserStatusIcon.mjs +1 -1
- package/dist/Functions/reference.cjs +1 -1
- package/dist/Functions/reference.mjs +1 -1
- package/dist/Functions/usernameToColor.cjs +1 -1
- package/dist/Functions/usernameToColor.mjs +1 -1
- package/dist/Mixins/richEditor.cjs +1 -1
- package/dist/Mixins/richEditor.mjs +1 -1
- package/dist/assets/{NcActionInput-DjNK8ORa.css → NcActionInput-8F2WF3yH.css} +67 -67
- package/dist/assets/{NcActions-DL7ZZIjx.css → NcActions-CiiQkX9v.css} +12 -12
- package/dist/assets/{NcAppNavigation-BgGJuJPv.css → NcAppNavigation-wkQJnaLW.css} +12 -12
- package/dist/assets/{NcAppNavigationItem-BxoyzD83.css → NcAppNavigationItem-hYyNqvah.css} +44 -44
- package/dist/assets/{NcAppSidebar-BGQX62or.css → NcAppSidebar-DlVjDHcd.css} +45 -50
- package/dist/assets/{NcAvatar-j5b9vXAH.css → NcAvatar-BozWHt1s.css} +27 -27
- package/dist/assets/{NcBreadcrumbs-oFXQlxy-.css → NcBreadcrumbs-E-TglkuV.css} +7 -7
- package/dist/assets/{NcDateTimePicker-D8gouVII.css → NcDateTimePicker-q_BLnhHU.css} +10 -10
- package/dist/assets/{NcDialog-M36tj7nk.css → NcDialog-DEKSpcnR.css} +17 -16
- package/dist/assets/NcListItem-BIFTbr17.css +180 -0
- package/dist/assets/{NcMentionBubble-BhiXWJv8.css → NcMentionBubble-7PQ8wEko.css} +9 -9
- package/dist/assets/{NcRichContenteditable-DvTdg1DO.css → NcRichContenteditable-BQ2-fqnd.css} +10 -10
- package/dist/assets/{NcRichText-D2BBsB-_.css → NcRichText-DNXuHl34.css} +76 -65
- package/dist/chunks/{GenColors-SRrPRTFN.mjs → GenColors-Dceu3ds2.mjs} +1 -1
- package/dist/chunks/{GenColors-SRrPRTFN.mjs.map → GenColors-Dceu3ds2.mjs.map} +1 -1
- package/dist/chunks/{GenColors-BCHzPRPI.cjs → GenColors-hkqGpnOK.cjs} +1 -1
- package/dist/chunks/{GenColors-BCHzPRPI.cjs.map → GenColors-hkqGpnOK.cjs.map} +1 -1
- package/dist/chunks/{NcActionButtonGroup-Dc9G34Er.cjs → NcActionButtonGroup-B1XhnIBl.cjs} +1 -1
- package/dist/chunks/{NcActionButtonGroup-Dc9G34Er.cjs.map → NcActionButtonGroup-B1XhnIBl.cjs.map} +1 -1
- package/dist/chunks/{NcActionButtonGroup-BS4fKDux.mjs → NcActionButtonGroup-DU1taycQ.mjs} +1 -1
- package/dist/chunks/{NcActionButtonGroup-BS4fKDux.mjs.map → NcActionButtonGroup-DU1taycQ.mjs.map} +1 -1
- package/dist/chunks/{NcActionInput-B_upGNjs.mjs → NcActionInput-53RB9uQe.mjs} +6 -6
- package/dist/chunks/NcActionInput-53RB9uQe.mjs.map +1 -0
- package/dist/chunks/{NcActionInput-C6WR9W8-.cjs → NcActionInput-N2wrvq5K.cjs} +3 -3
- package/dist/chunks/NcActionInput-N2wrvq5K.cjs.map +1 -0
- package/dist/chunks/{NcActions-DL722iMU.cjs → NcActions-BtvXtZF4.cjs} +55 -35
- package/dist/chunks/{NcActions-ClU5w8U1.mjs.map → NcActions-BtvXtZF4.cjs.map} +1 -1
- package/dist/chunks/{NcActions-ClU5w8U1.mjs → NcActions-DiFslXqv.mjs} +84 -64
- package/dist/chunks/{NcActions-DL722iMU.cjs.map → NcActions-DiFslXqv.mjs.map} +1 -1
- package/dist/chunks/{NcAppContent-CZUuFw1x.mjs → NcAppContent-BDhK1rUf.mjs} +1 -1
- package/dist/chunks/{NcAppContent-CZUuFw1x.mjs.map → NcAppContent-BDhK1rUf.mjs.map} +1 -1
- package/dist/chunks/{NcAppContent-CyPht0ua.cjs → NcAppContent-Be1m1O_W.cjs} +1 -1
- package/dist/chunks/{NcAppContent-CyPht0ua.cjs.map → NcAppContent-Be1m1O_W.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigation-8_Bef_ph.mjs → NcAppNavigation-CElLRpH-.mjs} +3 -3
- package/dist/chunks/{NcAppNavigation-8_Bef_ph.mjs.map → NcAppNavigation-CElLRpH-.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigation-BPCfq5ox.cjs → NcAppNavigation-DKUnWfen.cjs} +3 -3
- package/dist/chunks/{NcAppNavigation-BPCfq5ox.cjs.map → NcAppNavigation-DKUnWfen.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-DNugUyEL.cjs → NcAppNavigationCaption-Cdcv-0jj.cjs} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-DNugUyEL.cjs.map → NcAppNavigationCaption-Cdcv-0jj.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-DZl4aJXn.mjs → NcAppNavigationCaption-DI7SIPdI.mjs} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-DZl4aJXn.mjs.map → NcAppNavigationCaption-DI7SIPdI.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-znyy3LU1.cjs → NcAppNavigationItem-7xN_CMHW.cjs} +6 -8
- package/dist/chunks/{NcAppNavigationItem-D7L6HxhH.mjs.map → NcAppNavigationItem-7xN_CMHW.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-D7L6HxhH.mjs → NcAppNavigationItem-Djfc0DPY.mjs} +8 -10
- package/dist/chunks/{NcAppNavigationItem-znyy3LU1.cjs.map → NcAppNavigationItem-Djfc0DPY.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-DgPfNmx6.cjs → NcAppNavigationNewItem-5B4-U2NI.cjs} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-DgPfNmx6.cjs.map → NcAppNavigationNewItem-5B4-U2NI.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-CRLPUH7B.mjs → NcAppNavigationNewItem-CN3vYnc_.mjs} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-CRLPUH7B.mjs.map → NcAppNavigationNewItem-CN3vYnc_.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-DPb0p_eD.cjs → NcAppNavigationSettings-Cnr4jYzW.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationSettings-DPb0p_eD.cjs.map → NcAppNavigationSettings-Cnr4jYzW.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-EcktukV4.mjs → NcAppNavigationSettings-LmpAoM-x.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationSettings-EcktukV4.mjs.map → NcAppNavigationSettings-LmpAoM-x.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-CSOgniTa.cjs → NcAppNavigationToggle-B5XmO21v.cjs} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-CSOgniTa.cjs.map → NcAppNavigationToggle-B5XmO21v.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-DwO9-oiH.mjs → NcAppNavigationToggle-D0oeWL17.mjs} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-DwO9-oiH.mjs.map → NcAppNavigationToggle-D0oeWL17.mjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-EIsS0HU9.cjs → NcAppSettingsDialog-B6crPJ6a.cjs} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-EIsS0HU9.cjs.map → NcAppSettingsDialog-B6crPJ6a.cjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-fgbU_-h8.mjs → NcAppSettingsDialog-BLOgrVCz.mjs} +2 -2
- package/dist/chunks/{NcAppSettingsDialog-fgbU_-h8.mjs.map → NcAppSettingsDialog-BLOgrVCz.mjs.map} +1 -1
- package/dist/chunks/{NcAppSidebar-BbEflEtM.mjs → NcAppSidebar-CqER6-dl.mjs} +18 -12
- package/dist/chunks/NcAppSidebar-CqER6-dl.mjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-DNAgJFfm.cjs → NcAppSidebar-qC5-u1p0.cjs} +18 -12
- package/dist/chunks/NcAppSidebar-qC5-u1p0.cjs.map +1 -0
- package/dist/chunks/{NcAvatar-k_VeT7Vp.mjs → NcAvatar-BBhoG-za.mjs} +96 -92
- package/dist/chunks/NcAvatar-BBhoG-za.mjs.map +1 -0
- package/dist/chunks/{NcAvatar-CDeuGCns.cjs → NcAvatar-BuqOk4mX.cjs} +66 -67
- package/dist/chunks/NcAvatar-BuqOk4mX.cjs.map +1 -0
- package/dist/chunks/{NcBreadcrumb-6--UKRl5.cjs → NcBreadcrumb-BRpLGeLr.cjs} +1 -1
- package/dist/chunks/{NcBreadcrumb-6--UKRl5.cjs.map → NcBreadcrumb-BRpLGeLr.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-Yg1njNwp.mjs → NcBreadcrumb-BxCf2hEA.mjs} +1 -1
- package/dist/chunks/{NcBreadcrumb-Yg1njNwp.mjs.map → NcBreadcrumb-BxCf2hEA.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-CgSLqCmo.cjs → NcBreadcrumbs-BKPXzHC1.cjs} +28 -28
- package/dist/chunks/{NcBreadcrumbs-CgSLqCmo.cjs.map → NcBreadcrumbs-BKPXzHC1.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-DXD2Kiak.mjs → NcBreadcrumbs-BmK-6Q-n.mjs} +25 -25
- package/dist/chunks/{NcBreadcrumbs-DXD2Kiak.mjs.map → NcBreadcrumbs-BmK-6Q-n.mjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-BS2C-YSz.cjs → NcCheckboxRadioSwitch-B9w3Znu7.cjs} +2 -2
- package/dist/chunks/{NcCheckboxRadioSwitch-BS2C-YSz.cjs.map → NcCheckboxRadioSwitch-B9w3Znu7.cjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-BRPYihez.mjs → NcCheckboxRadioSwitch-BOl1O2zi.mjs} +2 -2
- package/dist/chunks/{NcCheckboxRadioSwitch-BRPYihez.mjs.map → NcCheckboxRadioSwitch-BOl1O2zi.mjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-CURkxtfw.mjs → NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-CCwH-BzH.mjs} +1 -1
- package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-CCwH-BzH.mjs.map +1 -0
- package/dist/chunks/{NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-B5QWlofX.cjs → NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-DAxGPyzS.cjs} +1 -1
- package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-DAxGPyzS.cjs.map +1 -0
- package/dist/chunks/{NcColorPicker-DNGismgl.mjs → NcColorPicker-CeoImUTC.mjs} +2 -2
- package/dist/chunks/{NcColorPicker-DNGismgl.mjs.map → NcColorPicker-CeoImUTC.mjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-D0rQKQAy.cjs → NcColorPicker-DOcxlY35.cjs} +1 -1
- package/dist/chunks/{NcColorPicker-D0rQKQAy.cjs.map → NcColorPicker-DOcxlY35.cjs.map} +1 -1
- package/dist/chunks/{NcContent-DCmLP8Ly.mjs → NcContent-BPA0KfuT.mjs} +1 -1
- package/dist/chunks/{NcContent-DCmLP8Ly.mjs.map → NcContent-BPA0KfuT.mjs.map} +1 -1
- package/dist/chunks/{NcContent-BXfreK7p.cjs → NcContent-DbFAEdX_.cjs} +1 -1
- package/dist/chunks/{NcContent-BXfreK7p.cjs.map → NcContent-DbFAEdX_.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-6UWLF9LM.mjs → NcDashboardWidget-2-nW7dII.mjs} +3 -3
- package/dist/chunks/{NcDashboardWidget-6UWLF9LM.mjs.map → NcDashboardWidget-2-nW7dII.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-CPXbrHii.cjs → NcDashboardWidget-auMQiAFt.cjs} +1 -1
- package/dist/chunks/{NcDashboardWidget-CPXbrHii.cjs.map → NcDashboardWidget-auMQiAFt.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-bFGf6_R7.mjs → NcDashboardWidgetItem-D2yoF9Oo.mjs} +2 -2
- package/dist/chunks/{NcDashboardWidgetItem-bFGf6_R7.mjs.map → NcDashboardWidgetItem-D2yoF9Oo.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-Buh2BPAN.cjs → NcDashboardWidgetItem-xqVAP32n.cjs} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-Buh2BPAN.cjs.map → NcDashboardWidgetItem-xqVAP32n.cjs.map} +1 -1
- package/dist/chunks/{NcDateTime-GW15p7yp.mjs → NcDateTime-CeOdKcvC.mjs} +1 -1
- package/dist/chunks/{NcDateTime-GW15p7yp.mjs.map → NcDateTime-CeOdKcvC.mjs.map} +1 -1
- package/dist/chunks/{NcDateTime-DG_XAvbT.cjs → NcDateTime-DneyKibb.cjs} +1 -1
- package/dist/chunks/{NcDateTime-DG_XAvbT.cjs.map → NcDateTime-DneyKibb.cjs.map} +1 -1
- package/dist/chunks/{NcDialog-D6YSjidf.mjs → NcDialog-C_1rhUHk.mjs} +2 -2
- package/dist/chunks/{NcDialog-D6YSjidf.mjs.map → NcDialog-C_1rhUHk.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-C6nYgBDF.cjs → NcDialog-Ciz0hlFn.cjs} +2 -2
- package/dist/chunks/{NcDialog-C6nYgBDF.cjs.map → NcDialog-Ciz0hlFn.cjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-B34sLJKs.mjs → NcEmojiPicker-Cie30NYK.mjs} +4 -4
- package/dist/chunks/{NcEmojiPicker-B34sLJKs.mjs.map → NcEmojiPicker-Cie30NYK.mjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-BDcdqsgr.cjs → NcEmojiPicker-S2pfwxlK.cjs} +1 -1
- package/dist/chunks/{NcEmojiPicker-BDcdqsgr.cjs.map → NcEmojiPicker-S2pfwxlK.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-BUeI4DGP.cjs → NcHeaderMenu-58OTmM-5.cjs} +1 -1
- package/dist/chunks/{NcHeaderMenu-BUeI4DGP.cjs.map → NcHeaderMenu-58OTmM-5.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-CXBimxcN.mjs → NcHeaderMenu-DOGXti7v.mjs} +1 -1
- package/dist/chunks/{NcHeaderMenu-CXBimxcN.mjs.map → NcHeaderMenu-DOGXti7v.mjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-CVgJcgbg.cjs → NcInputConfirmCancel-DVmY85-V.cjs} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-CVgJcgbg.cjs.map → NcInputConfirmCancel-DVmY85-V.cjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-GFlH1B9I.mjs → NcInputConfirmCancel-Nn_JgG9d.mjs} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-GFlH1B9I.mjs.map → NcInputConfirmCancel-Nn_JgG9d.mjs.map} +1 -1
- package/dist/chunks/{NcListItem-BDrxkM0q.cjs → NcListItem-B_MPLJ_8.cjs} +3 -3
- package/dist/chunks/{NcListItem-rlwo19vU.mjs.map → NcListItem-B_MPLJ_8.cjs.map} +1 -1
- package/dist/chunks/{NcListItem-rlwo19vU.mjs → NcListItem-BopkGRDs.mjs} +4 -4
- package/dist/chunks/{NcListItem-BDrxkM0q.cjs.map → NcListItem-BopkGRDs.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-Bwl8bKaY.mjs → NcListItemIcon-CI23iFQz.mjs} +2 -2
- package/dist/chunks/{NcListItemIcon-Bwl8bKaY.mjs.map → NcListItemIcon-CI23iFQz.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-D_cwlGhm.cjs → NcListItemIcon-Dwgi2cPr.cjs} +2 -2
- package/dist/chunks/{NcListItemIcon-D_cwlGhm.cjs.map → NcListItemIcon-Dwgi2cPr.cjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-D91QgkSR.mjs → NcPasswordField-BgSp7dK4.mjs} +1 -1
- package/dist/chunks/{NcPasswordField-D91QgkSR.mjs.map → NcPasswordField-BgSp7dK4.mjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-EDrr_9PG.cjs → NcPasswordField-BooDzf0Z.cjs} +1 -1
- package/dist/chunks/{NcPasswordField-EDrr_9PG.cjs.map → NcPasswordField-BooDzf0Z.cjs.map} +1 -1
- package/dist/chunks/{NcRelatedResourcesPanel-DaLcC_9H.mjs → NcRelatedResourcesPanel-Ch1b_Gl3.mjs} +2 -2
- package/dist/chunks/{NcRelatedResourcesPanel-DaLcC_9H.mjs.map → NcRelatedResourcesPanel-Ch1b_Gl3.mjs.map} +1 -1
- package/dist/chunks/{NcRelatedResourcesPanel-DDL8rJnB.cjs → NcRelatedResourcesPanel-DaiuNCYU.cjs} +1 -1
- package/dist/chunks/{NcRelatedResourcesPanel-DDL8rJnB.cjs.map → NcRelatedResourcesPanel-DaiuNCYU.cjs.map} +1 -1
- package/dist/chunks/{NcRichContenteditable-DjUF2Kzl.cjs → NcRichContenteditable-BF3BkdqM.cjs} +10 -14
- package/dist/chunks/NcRichContenteditable-BF3BkdqM.cjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-CaeNwWTC.mjs → NcRichContenteditable-CEqdmoem.mjs} +15 -19
- package/dist/chunks/NcRichContenteditable-CEqdmoem.mjs.map +1 -0
- package/dist/chunks/{NcRichText-DVnS4C_H.mjs → NcRichText-CUKFkHQg.mjs} +72 -62
- package/dist/chunks/NcRichText-CUKFkHQg.mjs.map +1 -0
- package/dist/chunks/{NcRichText-D_p79y2S.cjs → NcRichText-DCkExl5g.cjs} +65 -55
- package/dist/chunks/NcRichText-DCkExl5g.cjs.map +1 -0
- package/dist/chunks/{NcSelect-BVCCppX6.cjs → NcSelect-Bn3oTHtq.cjs} +1 -1
- package/dist/chunks/{NcSelect-BVCCppX6.cjs.map → NcSelect-Bn3oTHtq.cjs.map} +1 -1
- package/dist/chunks/{NcSelect-BjojUUy7.mjs → NcSelect-Bo71Yd6L.mjs} +2 -2
- package/dist/chunks/{NcSelect-BjojUUy7.mjs.map → NcSelect-Bo71Yd6L.mjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-CIa3RL2u.mjs → NcSelectTags-9aCrLRT0.mjs} +2 -2
- package/dist/chunks/{NcSelectTags-CIa3RL2u.mjs.map → NcSelectTags-9aCrLRT0.mjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-b_FdAE_d.cjs → NcSelectTags-CgYWiDjX.cjs} +1 -1
- package/dist/chunks/{NcSelectTags-b_FdAE_d.cjs.map → NcSelectTags-CgYWiDjX.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsInputText-D_wATSbL.cjs → NcSettingsInputText-1i2TqdMB.cjs} +1 -1
- package/dist/chunks/{NcSettingsInputText-D_wATSbL.cjs.map → NcSettingsInputText-1i2TqdMB.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsInputText-BESxHP0m.mjs → NcSettingsInputText-JboV8u2l.mjs} +1 -1
- package/dist/chunks/{NcSettingsInputText-BESxHP0m.mjs.map → NcSettingsInputText-JboV8u2l.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-TG0j5-kd.cjs → NcSettingsSection-CNMpCD3o.cjs} +1 -1
- package/dist/chunks/{NcSettingsSection-TG0j5-kd.cjs.map → NcSettingsSection-CNMpCD3o.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-BzN6JXnV.mjs → NcSettingsSection-Lgwm3w2e.mjs} +1 -1
- package/dist/chunks/{NcSettingsSection-BzN6JXnV.mjs.map → NcSettingsSection-Lgwm3w2e.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-JJ4LZALf.cjs → NcSettingsSelectGroup-CgUJmyF7.cjs} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-JJ4LZALf.cjs.map → NcSettingsSelectGroup-CgUJmyF7.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-BRov--RO.mjs → NcSettingsSelectGroup-DUzmbtZx.mjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-BRov--RO.mjs.map → NcSettingsSelectGroup-DUzmbtZx.mjs.map} +1 -1
- package/dist/chunks/{NcTextField-DgzR5_48.cjs → NcTextField-B5cUYgRy.cjs} +1 -1
- package/dist/chunks/{NcTextField-DgzR5_48.cjs.map → NcTextField-B5cUYgRy.cjs.map} +1 -1
- package/dist/chunks/{NcTextField-BPGi70PD.mjs → NcTextField-D_eUEl2B.mjs} +1 -1
- package/dist/chunks/{NcTextField-BPGi70PD.mjs.map → NcTextField-D_eUEl2B.mjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-8ZYdOp_g.cjs → NcTimezonePicker-BF5TeadZ.cjs} +1 -1
- package/dist/chunks/{NcTimezonePicker-8ZYdOp_g.cjs.map → NcTimezonePicker-BF5TeadZ.cjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-jCKohlic.mjs → NcTimezonePicker-CH1lkCMF.mjs} +2 -2
- package/dist/chunks/{NcTimezonePicker-jCKohlic.mjs.map → NcTimezonePicker-CH1lkCMF.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-Bfph5VfL.cjs → NcUserBubble-BadEJRgs.cjs} +1 -1
- package/dist/chunks/{NcUserBubble-Bfph5VfL.cjs.map → NcUserBubble-BadEJRgs.cjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-DwKN1aRa.mjs → NcUserBubble-C0HbPO9p.mjs} +1 -1
- package/dist/chunks/{NcUserBubble-DwKN1aRa.mjs.map → NcUserBubble-C0HbPO9p.mjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-Bu_nFfO_.cjs → NcUserStatusIcon-B69NZ9Hw.cjs} +1 -1
- package/dist/chunks/{NcUserStatusIcon-Bu_nFfO_.cjs.map → NcUserStatusIcon-B69NZ9Hw.cjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-Blep5GZX.mjs → NcUserStatusIcon-HOUdT_MR.mjs} +1 -1
- package/dist/chunks/{NcUserStatusIcon-Blep5GZX.mjs.map → NcUserStatusIcon-HOUdT_MR.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-CGJeYf1D.mjs → ScopeComponent-Dz4pyD77.mjs} +1 -1
- package/dist/chunks/{ScopeComponent-CGJeYf1D.mjs.map → ScopeComponent-Dz4pyD77.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-BiLZtJeb.cjs → ScopeComponent-IO407Bzb.cjs} +1 -1
- package/dist/chunks/{ScopeComponent-BiLZtJeb.cjs.map → ScopeComponent-IO407Bzb.cjs.map} +1 -1
- package/dist/chunks/_l10n-B8iumFKB.cjs +66 -0
- package/dist/chunks/_l10n-B8iumFKB.cjs.map +1 -0
- package/dist/chunks/_l10n-BaNxGGXy.mjs +68 -0
- package/dist/chunks/_l10n-BaNxGGXy.mjs.map +1 -0
- package/dist/chunks/autolink-DNGB8YSW.mjs +86 -0
- package/dist/chunks/autolink-DNGB8YSW.mjs.map +1 -0
- package/dist/chunks/autolink-MMzlO_Ai.cjs +82 -0
- package/dist/chunks/autolink-MMzlO_Ai.cjs.map +1 -0
- package/dist/chunks/getAvatarUrl-BHpn8LgJ.mjs +32 -0
- package/dist/chunks/getAvatarUrl-BHpn8LgJ.mjs.map +1 -0
- package/dist/chunks/getAvatarUrl-CjIpoO6I.cjs +31 -0
- package/dist/chunks/getAvatarUrl-CjIpoO6I.cjs.map +1 -0
- package/dist/chunks/{index-CVsxVZon.cjs → index-CMnR5Pf6.cjs} +7 -12
- package/dist/chunks/index-CMnR5Pf6.cjs.map +1 -0
- package/dist/chunks/{index-BAVa4G2v.mjs → index-uiNhPYvS.mjs} +23 -28
- package/dist/chunks/index-uiNhPYvS.mjs.map +1 -0
- package/dist/chunks/{referencePickerModal-ChgMFkNu.mjs → referencePickerModal-AvSHyw1b.mjs} +4 -4
- package/dist/chunks/{referencePickerModal-ChgMFkNu.mjs.map → referencePickerModal-AvSHyw1b.mjs.map} +1 -1
- package/dist/chunks/{referencePickerModal-DRZH-El6.cjs → referencePickerModal-B_Su3XpN.cjs} +1 -1
- package/dist/chunks/{referencePickerModal-DRZH-El6.cjs.map → referencePickerModal-B_Su3XpN.cjs.map} +1 -1
- package/dist/chunks/{usernameToColor-DrnKFnLP.mjs → usernameToColor-BHkzj1tb.mjs} +1 -1
- package/dist/chunks/{usernameToColor-DrnKFnLP.mjs.map → usernameToColor-BHkzj1tb.mjs.map} +1 -1
- package/dist/chunks/{usernameToColor-BG9PjZRM.cjs → usernameToColor-DA36rR48.cjs} +1 -1
- package/dist/chunks/{usernameToColor-BG9PjZRM.cjs.map → usernameToColor-DA36rR48.cjs.map} +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +45 -45
- package/dist/utils/getAvatarUrl.d.ts +22 -0
- package/package.json +2 -1
- package/dist/assets/NcListItem--ilRNXci.css +0 -179
- package/dist/chunks/NcActionInput-B_upGNjs.mjs.map +0 -1
- package/dist/chunks/NcActionInput-C6WR9W8-.cjs.map +0 -1
- package/dist/chunks/NcAppSidebar-BbEflEtM.mjs.map +0 -1
- package/dist/chunks/NcAppSidebar-DNAgJFfm.cjs.map +0 -1
- package/dist/chunks/NcAvatar-CDeuGCns.cjs.map +0 -1
- package/dist/chunks/NcAvatar-k_VeT7Vp.mjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-B5QWlofX.cjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-CURkxtfw.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-CaeNwWTC.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-DjUF2Kzl.cjs.map +0 -1
- package/dist/chunks/NcRichText-DVnS4C_H.mjs.map +0 -1
- package/dist/chunks/NcRichText-D_p79y2S.cjs.map +0 -1
- package/dist/chunks/_l10n-BG5lXDmm.cjs +0 -66
- package/dist/chunks/_l10n-BG5lXDmm.cjs.map +0 -1
- package/dist/chunks/_l10n-Cj65IvRp.mjs +0 -68
- package/dist/chunks/_l10n-Cj65IvRp.mjs.map +0 -1
- package/dist/chunks/autolink-BtgUDDdk.mjs +0 -59
- package/dist/chunks/autolink-BtgUDDdk.mjs.map +0 -1
- package/dist/chunks/autolink-D0rLUkqm.cjs +0 -55
- package/dist/chunks/autolink-D0rLUkqm.cjs.map +0 -1
- package/dist/chunks/index-BAVa4G2v.mjs.map +0 -1
- package/dist/chunks/index-CVsxVZon.cjs.map +0 -1
|
@@ -33,58 +33,66 @@
|
|
|
33
33
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
|
-
.material-design-icon[data-v-
|
|
36
|
+
.material-design-icon[data-v-95ce8ae1] {
|
|
37
37
|
display: flex;
|
|
38
38
|
align-self: center;
|
|
39
39
|
justify-self: center;
|
|
40
40
|
align-items: center;
|
|
41
41
|
justify-content: center;
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
li.task-list-item > ul[data-v-95ce8ae1],
|
|
44
|
+
li.task-list-item > ol[data-v-95ce8ae1],
|
|
45
|
+
li.task-list-item > li[data-v-95ce8ae1],
|
|
46
|
+
li.task-list-item > blockquote[data-v-95ce8ae1],
|
|
47
|
+
li.task-list-item > pre[data-v-95ce8ae1] {
|
|
48
|
+
margin-inline-start: 15px;
|
|
49
|
+
margin-block-end: 0;
|
|
50
|
+
}
|
|
51
|
+
.rich-text--wrapper[data-v-95ce8ae1] {
|
|
44
52
|
word-break: break-word;
|
|
45
53
|
line-height: 1.5;
|
|
46
54
|
}
|
|
47
|
-
.rich-text--wrapper .rich-text--fallback[data-v-
|
|
48
|
-
.rich-text--wrapper .rich-text-component[data-v-
|
|
55
|
+
.rich-text--wrapper .rich-text--fallback[data-v-95ce8ae1],
|
|
56
|
+
.rich-text--wrapper .rich-text-component[data-v-95ce8ae1] {
|
|
49
57
|
display: inline;
|
|
50
58
|
}
|
|
51
|
-
.rich-text--wrapper .rich-text--external-link[data-v-
|
|
59
|
+
.rich-text--wrapper .rich-text--external-link[data-v-95ce8ae1] {
|
|
52
60
|
text-decoration: underline;
|
|
53
61
|
}
|
|
54
|
-
.rich-text--wrapper .rich-text--external-link[data-v-
|
|
62
|
+
.rich-text--wrapper .rich-text--external-link[data-v-95ce8ae1]:after {
|
|
55
63
|
content: " ↗";
|
|
56
64
|
}
|
|
57
|
-
.rich-text--wrapper .rich-text--ordered-list .rich-text--list-item[data-v-
|
|
65
|
+
.rich-text--wrapper .rich-text--ordered-list .rich-text--list-item[data-v-95ce8ae1] {
|
|
58
66
|
list-style: decimal;
|
|
59
67
|
}
|
|
60
|
-
.rich-text--wrapper .rich-text--un-ordered-list .rich-text--list-item[data-v-
|
|
68
|
+
.rich-text--wrapper .rich-text--un-ordered-list .rich-text--list-item[data-v-95ce8ae1] {
|
|
61
69
|
list-style: initial;
|
|
62
70
|
}
|
|
63
|
-
.rich-text--wrapper .rich-text--list-item[data-v-
|
|
71
|
+
.rich-text--wrapper .rich-text--list-item[data-v-95ce8ae1] {
|
|
64
72
|
white-space: initial;
|
|
65
73
|
color: var(--color-text-light);
|
|
66
74
|
padding: initial;
|
|
67
75
|
margin-left: 20px;
|
|
68
76
|
}
|
|
69
|
-
.rich-text--wrapper .rich-text--list-item.task-list-item[data-v-
|
|
77
|
+
.rich-text--wrapper .rich-text--list-item.task-list-item[data-v-95ce8ae1] {
|
|
70
78
|
list-style: none;
|
|
71
79
|
white-space: initial;
|
|
72
80
|
color: var(--color-text-light);
|
|
73
81
|
}
|
|
74
|
-
.rich-text--wrapper .rich-text--list-item.task-list-item input[data-v-
|
|
82
|
+
.rich-text--wrapper .rich-text--list-item.task-list-item input[data-v-95ce8ae1] {
|
|
75
83
|
min-height: initial;
|
|
76
84
|
}
|
|
77
|
-
.rich-text--wrapper .rich-text--strong[data-v-
|
|
85
|
+
.rich-text--wrapper .rich-text--strong[data-v-95ce8ae1] {
|
|
78
86
|
white-space: initial;
|
|
79
87
|
font-weight: 700;
|
|
80
88
|
color: var(--color-text-light);
|
|
81
89
|
}
|
|
82
|
-
.rich-text--wrapper .rich-text--italic[data-v-
|
|
90
|
+
.rich-text--wrapper .rich-text--italic[data-v-95ce8ae1] {
|
|
83
91
|
white-space: initial;
|
|
84
92
|
font-style: italic;
|
|
85
93
|
color: var(--color-text-light);
|
|
86
94
|
}
|
|
87
|
-
.rich-text--wrapper .rich-text--heading[data-v-
|
|
95
|
+
.rich-text--wrapper .rich-text--heading[data-v-95ce8ae1] {
|
|
88
96
|
white-space: initial;
|
|
89
97
|
font-size: initial;
|
|
90
98
|
color: var(--color-text-light);
|
|
@@ -92,127 +100,130 @@
|
|
|
92
100
|
margin-top: 5px;
|
|
93
101
|
font-weight: 700;
|
|
94
102
|
}
|
|
95
|
-
.rich-text--wrapper .rich-text--heading.rich-text--heading-1[data-v-
|
|
103
|
+
.rich-text--wrapper .rich-text--heading.rich-text--heading-1[data-v-95ce8ae1] {
|
|
96
104
|
font-size: 20px;
|
|
97
105
|
}
|
|
98
|
-
.rich-text--wrapper .rich-text--heading.rich-text--heading-2[data-v-
|
|
106
|
+
.rich-text--wrapper .rich-text--heading.rich-text--heading-2[data-v-95ce8ae1] {
|
|
99
107
|
font-size: 19px;
|
|
100
108
|
}
|
|
101
|
-
.rich-text--wrapper .rich-text--heading.rich-text--heading-3[data-v-
|
|
109
|
+
.rich-text--wrapper .rich-text--heading.rich-text--heading-3[data-v-95ce8ae1] {
|
|
102
110
|
font-size: 18px;
|
|
103
111
|
}
|
|
104
|
-
.rich-text--wrapper .rich-text--heading.rich-text--heading-4[data-v-
|
|
112
|
+
.rich-text--wrapper .rich-text--heading.rich-text--heading-4[data-v-95ce8ae1] {
|
|
105
113
|
font-size: 17px;
|
|
106
114
|
}
|
|
107
|
-
.rich-text--wrapper .rich-text--heading.rich-text--heading-5[data-v-
|
|
115
|
+
.rich-text--wrapper .rich-text--heading.rich-text--heading-5[data-v-95ce8ae1] {
|
|
108
116
|
font-size: 16px;
|
|
109
117
|
}
|
|
110
|
-
.rich-text--wrapper .rich-text--heading.rich-text--heading-6[data-v-
|
|
118
|
+
.rich-text--wrapper .rich-text--heading.rich-text--heading-6[data-v-95ce8ae1] {
|
|
111
119
|
font-size: 15px;
|
|
112
120
|
}
|
|
113
|
-
.rich-text--wrapper .rich-text--hr[data-v-
|
|
121
|
+
.rich-text--wrapper .rich-text--hr[data-v-95ce8ae1] {
|
|
114
122
|
border-top: 1px solid var(--color-border-dark);
|
|
115
123
|
border-bottom: 0;
|
|
116
124
|
}
|
|
117
|
-
.rich-text--wrapper .rich-text--pre[data-v-
|
|
125
|
+
.rich-text--wrapper .rich-text--pre[data-v-95ce8ae1] {
|
|
118
126
|
border: 1px solid var(--color-border-dark);
|
|
119
127
|
background-color: var(--color-background-dark);
|
|
120
128
|
padding: 5px;
|
|
121
129
|
}
|
|
122
|
-
.rich-text--wrapper .rich-text--code[data-v-
|
|
130
|
+
.rich-text--wrapper .rich-text--code[data-v-95ce8ae1] {
|
|
123
131
|
background-color: var(--color-background-dark);
|
|
124
132
|
}
|
|
125
|
-
.rich-text--wrapper .rich-text--blockquote[data-v-
|
|
133
|
+
.rich-text--wrapper .rich-text--blockquote[data-v-95ce8ae1] {
|
|
126
134
|
border-left: 3px solid var(--color-border-dark);
|
|
127
135
|
padding-left: 5px;
|
|
128
136
|
}
|
|
129
|
-
.rich-text--wrapper .rich-text--table[data-v-
|
|
137
|
+
.rich-text--wrapper .rich-text--table[data-v-95ce8ae1] {
|
|
130
138
|
border-collapse: collapse;
|
|
131
139
|
}
|
|
132
|
-
.rich-text--wrapper .rich-text--table thead tr th[data-v-
|
|
140
|
+
.rich-text--wrapper .rich-text--table thead tr th[data-v-95ce8ae1] {
|
|
133
141
|
border: 1px solid var(--color-border-dark);
|
|
134
142
|
font-weight: 700;
|
|
135
143
|
padding: 6px 13px;
|
|
136
144
|
}
|
|
137
|
-
.rich-text--wrapper .rich-text--table tbody tr td[data-v-
|
|
145
|
+
.rich-text--wrapper .rich-text--table tbody tr td[data-v-95ce8ae1] {
|
|
138
146
|
border: 1px solid var(--color-border-dark);
|
|
139
147
|
padding: 6px 13px;
|
|
140
148
|
}
|
|
141
|
-
.rich-text--wrapper .rich-text--table tbody tr[data-v-
|
|
149
|
+
.rich-text--wrapper .rich-text--table tbody tr[data-v-95ce8ae1]:nth-child(2n) {
|
|
142
150
|
background-color: var(--color-background-dark);
|
|
143
151
|
}
|
|
144
|
-
.rich-text--wrapper-markdown div > *[data-v-
|
|
145
|
-
.rich-text--wrapper-markdown blockquote > *[data-v-
|
|
152
|
+
.rich-text--wrapper-markdown div > *[data-v-95ce8ae1]:first-child,
|
|
153
|
+
.rich-text--wrapper-markdown blockquote > *[data-v-95ce8ae1]:first-child {
|
|
146
154
|
margin-top: 0 !important;
|
|
147
155
|
}
|
|
148
|
-
.rich-text--wrapper-markdown div > *[data-v-
|
|
149
|
-
.rich-text--wrapper-markdown blockquote > *[data-v-
|
|
156
|
+
.rich-text--wrapper-markdown div > *[data-v-95ce8ae1]:last-child,
|
|
157
|
+
.rich-text--wrapper-markdown blockquote > *[data-v-95ce8ae1]:last-child {
|
|
150
158
|
margin-bottom: 0 !important;
|
|
151
159
|
}
|
|
152
|
-
.rich-text--wrapper-markdown h1[data-v-
|
|
153
|
-
.rich-text--wrapper-markdown h2[data-v-
|
|
154
|
-
.rich-text--wrapper-markdown h3[data-v-
|
|
155
|
-
.rich-text--wrapper-markdown h4[data-v-
|
|
156
|
-
.rich-text--wrapper-markdown h5[data-v-
|
|
157
|
-
.rich-text--wrapper-markdown h6[data-v-
|
|
158
|
-
.rich-text--wrapper-markdown p[data-v-
|
|
159
|
-
.rich-text--wrapper-markdown ul[data-v-
|
|
160
|
-
.rich-text--wrapper-markdown ol[data-v-
|
|
161
|
-
.rich-text--wrapper-markdown blockquote[data-v-
|
|
162
|
-
.rich-text--wrapper-markdown pre[data-v-
|
|
160
|
+
.rich-text--wrapper-markdown h1[data-v-95ce8ae1],
|
|
161
|
+
.rich-text--wrapper-markdown h2[data-v-95ce8ae1],
|
|
162
|
+
.rich-text--wrapper-markdown h3[data-v-95ce8ae1],
|
|
163
|
+
.rich-text--wrapper-markdown h4[data-v-95ce8ae1],
|
|
164
|
+
.rich-text--wrapper-markdown h5[data-v-95ce8ae1],
|
|
165
|
+
.rich-text--wrapper-markdown h6[data-v-95ce8ae1],
|
|
166
|
+
.rich-text--wrapper-markdown p[data-v-95ce8ae1],
|
|
167
|
+
.rich-text--wrapper-markdown ul[data-v-95ce8ae1],
|
|
168
|
+
.rich-text--wrapper-markdown ol[data-v-95ce8ae1],
|
|
169
|
+
.rich-text--wrapper-markdown blockquote[data-v-95ce8ae1],
|
|
170
|
+
.rich-text--wrapper-markdown pre[data-v-95ce8ae1] {
|
|
163
171
|
margin-top: 0;
|
|
164
172
|
margin-bottom: 1em;
|
|
165
173
|
}
|
|
166
|
-
.rich-text--wrapper-markdown h1[data-v-
|
|
167
|
-
.rich-text--wrapper-markdown h2[data-v-
|
|
168
|
-
.rich-text--wrapper-markdown h3[data-v-
|
|
169
|
-
.rich-text--wrapper-markdown h4[data-v-
|
|
170
|
-
.rich-text--wrapper-markdown h5[data-v-
|
|
171
|
-
.rich-text--wrapper-markdown h6[data-v-
|
|
174
|
+
.rich-text--wrapper-markdown h1[data-v-95ce8ae1],
|
|
175
|
+
.rich-text--wrapper-markdown h2[data-v-95ce8ae1],
|
|
176
|
+
.rich-text--wrapper-markdown h3[data-v-95ce8ae1],
|
|
177
|
+
.rich-text--wrapper-markdown h4[data-v-95ce8ae1],
|
|
178
|
+
.rich-text--wrapper-markdown h5[data-v-95ce8ae1],
|
|
179
|
+
.rich-text--wrapper-markdown h6[data-v-95ce8ae1] {
|
|
172
180
|
font-weight: 700;
|
|
173
181
|
}
|
|
174
|
-
.rich-text--wrapper-markdown h1[data-v-
|
|
182
|
+
.rich-text--wrapper-markdown h1[data-v-95ce8ae1] {
|
|
175
183
|
font-size: 30px;
|
|
176
184
|
}
|
|
177
|
-
.rich-text--wrapper-markdown ul[data-v-
|
|
178
|
-
.rich-text--wrapper-markdown ol[data-v-
|
|
185
|
+
.rich-text--wrapper-markdown ul[data-v-95ce8ae1],
|
|
186
|
+
.rich-text--wrapper-markdown ol[data-v-95ce8ae1] {
|
|
179
187
|
padding-left: 15px;
|
|
180
188
|
}
|
|
181
|
-
.rich-text--wrapper-markdown ul[data-v-
|
|
189
|
+
.rich-text--wrapper-markdown ul[data-v-95ce8ae1] {
|
|
182
190
|
list-style-type: disc;
|
|
183
191
|
}
|
|
184
|
-
.rich-text--wrapper-markdown ul.contains-task-list[data-v-
|
|
192
|
+
.rich-text--wrapper-markdown ul.contains-task-list[data-v-95ce8ae1] {
|
|
185
193
|
list-style-type: none;
|
|
186
194
|
padding: 0;
|
|
187
195
|
}
|
|
188
|
-
.rich-text--wrapper-markdown table[data-v-
|
|
196
|
+
.rich-text--wrapper-markdown table[data-v-95ce8ae1] {
|
|
189
197
|
border-collapse: collapse;
|
|
190
198
|
border: 2px solid var(--color-border-maxcontrast);
|
|
191
199
|
}
|
|
192
|
-
.rich-text--wrapper-markdown table th[data-v-
|
|
193
|
-
.rich-text--wrapper-markdown table td[data-v-
|
|
200
|
+
.rich-text--wrapper-markdown table th[data-v-95ce8ae1],
|
|
201
|
+
.rich-text--wrapper-markdown table td[data-v-95ce8ae1] {
|
|
194
202
|
padding: var(--default-grid-baseline);
|
|
195
203
|
border: 1px solid var(--color-border-maxcontrast);
|
|
196
204
|
}
|
|
197
|
-
.rich-text--wrapper-markdown table th[data-v-
|
|
198
|
-
.rich-text--wrapper-markdown table td[data-v-
|
|
205
|
+
.rich-text--wrapper-markdown table th[data-v-95ce8ae1]:first-child,
|
|
206
|
+
.rich-text--wrapper-markdown table td[data-v-95ce8ae1]:first-child {
|
|
199
207
|
border-left: 0;
|
|
200
208
|
}
|
|
201
|
-
.rich-text--wrapper-markdown table th[data-v-
|
|
202
|
-
.rich-text--wrapper-markdown table td[data-v-
|
|
209
|
+
.rich-text--wrapper-markdown table th[data-v-95ce8ae1]:last-child,
|
|
210
|
+
.rich-text--wrapper-markdown table td[data-v-95ce8ae1]:last-child {
|
|
203
211
|
border-right: 0;
|
|
204
212
|
}
|
|
205
|
-
.rich-text--wrapper-markdown table tr:first-child th[data-v-
|
|
213
|
+
.rich-text--wrapper-markdown table tr:first-child th[data-v-95ce8ae1] {
|
|
206
214
|
border-top: 0;
|
|
207
215
|
}
|
|
208
|
-
.rich-text--wrapper-markdown table tr:last-child td[data-v-
|
|
216
|
+
.rich-text--wrapper-markdown table tr:last-child td[data-v-95ce8ae1] {
|
|
209
217
|
border-bottom: 0;
|
|
210
218
|
}
|
|
211
|
-
.rich-text--wrapper-markdown blockquote[data-v-
|
|
219
|
+
.rich-text--wrapper-markdown blockquote[data-v-95ce8ae1] {
|
|
212
220
|
padding-left: 13px;
|
|
213
221
|
border-left: 2px solid var(--color-border-dark);
|
|
214
222
|
color: var(--color-text-lighter);
|
|
215
223
|
}
|
|
216
|
-
a[data-v-
|
|
224
|
+
a[data-v-95ce8ae1]:not(.rich-text--component) {
|
|
217
225
|
text-decoration: underline;
|
|
218
226
|
}
|
|
227
|
+
[data-v-95ce8ae1] .checkbox-content__text {
|
|
228
|
+
gap: 4px;
|
|
229
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenColors-
|
|
1
|
+
{"version":3,"file":"GenColors-Dceu3ds2.mjs","sources":["../../src/utils/GenColors.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n * @author Grigorii K. Shartsev <me@shgk.me>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { t } from '../l10n.js'\n\nexport class Color {\n\n\t/**\n\t * @param {number} r The red value\n\t * @param {number} g The green value\n\t * @param {number} b The blue value\n\t * @param {string} [name] The name of the color\n\t */\n\tconstructor(r, g, b, name) {\n\t\tthis.r = r\n\t\tthis.g = g\n\t\tthis.b = b\n\t\tif (name) {\n\t\t\tthis.name = name\n\t\t}\n\t}\n\n\tget color() {\n\t\tconst toHex = (num) => `00${num.toString(16)}`.slice(-2)\n\t\treturn `#${toHex(this.r)}${toHex(this.g)}${toHex(this.b)}`\n\t}\n\n}\n\n/**\n * Calculate the number of steps\n *\n * @param {number} steps The number of steps\n * @param {Array} ends The ends\n * @return {Array} Array containing the number of steps per color\n */\nfunction stepCalc(steps, ends) {\n\tconst step = new Array(3)\n\tstep[0] = (ends[1].r - ends[0].r) / steps\n\tstep[1] = (ends[1].g - ends[0].g) / steps\n\tstep[2] = (ends[1].b - ends[0].b) / steps\n\treturn step\n}\n\n/**\n * Create a color palette from two colors\n *\n * @param {number} steps The number of steps the palette has\n * @param {Color} color1 The first color\n * @param {Color} color2 The second color\n * @return {Array} The created palette array\n */\nfunction mixPalette(steps, color1, color2) {\n\tconst palette = []\n\tpalette.push(color1)\n\tconst step = stepCalc(steps, [color1, color2])\n\tfor (let i = 1; i < steps; i++) {\n\t\tconst r = Math.floor(color1.r + step[0] * i)\n\t\tconst g = Math.floor(color1.g + step[1] * i)\n\t\tconst b = Math.floor(color1.b + step[2] * i)\n\t\tpalette.push(new Color(r, g, b))\n\t}\n\treturn palette\n}\n\n/**\n * Like GenColor(4) but with labels\n */\nexport const defaultPalette = [\n\tnew Color(182, 70, 157, t('Purple')),\n\tnew Color(\n\t\t191, 103, 139,\n\t\tt('Rosy brown'), // TRANSLATORS: A color name for RGB(191, 103, 139)\n\t),\n\tnew Color(\n\t\t201, 136, 121,\n\t\tt('Feldspar'), // TRANSLATORS: A color name for RGB(201, 136, 121)\n\t),\n\tnew Color(\n\t\t211, 169, 103,\n\t\tt('Whiskey'), // TRANSLATORS: A color name for RGB(211, 169, 103)\n\t),\n\tnew Color(\n\t\t221, 203, 85,\n\t\tt('Gold'),\n\t),\n\tnew Color(\n\t\t165, 184, 114,\n\t\tt('Olivine'), // TRANSLATORS: A color name for RGB(165, 184, 114)\n\t),\n\tnew Color(\n\t\t110, 166, 143,\n\t\tt('Acapulco'), // TRANSLATORS: A color name for RGB(110, 166, 143)\n\t),\n\tnew Color(\n\t\t55, 148, 172,\n\t\tt('Boston Blue'), // TRANSLATORS: A color name for RGB(55, 148, 172)\n\t),\n\tnew Color(\n\t\t0, 130, 201,\n\t\tt('Nextcloud blue'),\n\t),\n\tnew Color(\n\t\t45, 115, 190,\n\t\tt('Mariner'), // TRANSLATORS: A color name for RGB(45, 115, 190)\n\t),\n\tnew Color(\n\t\t91, 100, 179,\n\t\tt('Blue Violet'), // TRANSLATORS: A color name for RGB(91, 100, 179)\n\t),\n\tnew Color(\n\t\t136, 85, 168,\n\t\tt('Deluge'), // TRANSLATORS: A color name for RGB(136, 85, 168)\n\t),\n]\n\n/**\n * Generate colors from the official nextcloud color\n * You can provide how many colors you want (multiplied by 3)\n * if step = 6\n * 3 colors * 6 will result in 18 generated colors\n *\n * @param {number} [steps] Number of steps to go from a color to another\n * @return {object[]}\n */\nexport function GenColors(steps) {\n\tif (!steps) {\n\t\tsteps = 6\n\t}\n\n\tif (steps === 4) {\n\t\treturn defaultPalette\n\t}\n\n\tconst red = new Color(182, 70, 157, t('Purple'))\n\tconst yellow = new Color(221, 203, 85, t('Gold'))\n\tconst blue = new Color(0, 130, 201, t('Nextcloud blue'))\n\n\tconst palette1 = mixPalette(steps, red, yellow)\n\tconst palette2 = mixPalette(steps, yellow, blue)\n\tconst palette3 = mixPalette(steps, blue, red)\n\n\treturn palette1.concat(palette2).concat(palette3)\n}\n"],"names":["Color","r","g","b","name","toHex","num","stepCalc","steps","ends","step","mixPalette","color1","color2","palette","i","defaultPalette","t","GenColors","red","yellow","blue","palette1","palette2","palette3"],"mappings":";;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBO,MAAMA,EAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlB,YAAYC,GAAGC,GAAGC,GAAGC,GAAM;AAC1B,SAAK,IAAIH,GACT,KAAK,IAAIC,GACT,KAAK,IAAIC,GACLC,MACH,KAAK,OAAOA;AAAA,EAEb;AAAA,EAED,IAAI,QAAQ;AACX,UAAMC,IAAQ,CAACC,MAAQ,KAAK,OAAAA,EAAI,SAAS,EAAE,GAAI,MAAM,EAAE;AACvD,WAAO,IAAI,OAAAD,EAAM,KAAK,CAAC,GAAI,OAAAA,EAAM,KAAK,CAAC,GAAI,OAAAA,EAAM,KAAK,CAAC;AAAA,EACvD;AAEF;AASA,SAASE,EAASC,GAAOC,GAAM;AAC9B,QAAMC,IAAO,IAAI,MAAM,CAAC;AACxB,SAAAA,EAAK,CAAC,KAAKD,EAAK,CAA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ent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n * @author Grigorii K. Shartsev <me@shgk.me>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { t } from '../l10n.js'\n\nexport class Color {\n\n\t/**\n\t * @param {number} r The red value\n\t * @param {number} g The green value\n\t * @param {number} b The blue value\n\t * @param {string} [name] The name of the color\n\t */\n\tconstructor(r, g, b, name) {\n\t\tthis.r = r\n\t\tthis.g = g\n\t\tthis.b = b\n\t\tif (name) {\n\t\t\tthis.name = name\n\t\t}\n\t}\n\n\tget color() {\n\t\tconst toHex = (num) => `00${num.toString(16)}`.slice(-2)\n\t\treturn `#${toHex(this.r)}${toHex(this.g)}${toHex(this.b)}`\n\t}\n\n}\n\n/**\n * Calculate the number of steps\n *\n * @param {number} steps The number of steps\n * @param {Array} ends The ends\n * @return {Array} Array containing the number of steps per color\n */\nfunction stepCalc(steps, ends) {\n\tconst step = new Array(3)\n\tstep[0] = (ends[1].r - ends[0].r) / steps\n\tstep[1] = (ends[1].g - ends[0].g) / steps\n\tstep[2] = (ends[1].b - ends[0].b) / steps\n\treturn step\n}\n\n/**\n * Create a color palette from two colors\n *\n * @param {number} steps The number of steps the palette has\n * @param {Color} color1 The first color\n * @param {Color} color2 The second color\n * @return {Array} The created palette array\n */\nfunction mixPalette(steps, color1, color2) {\n\tconst palette = []\n\tpalette.push(color1)\n\tconst step = stepCalc(steps, [color1, color2])\n\tfor (let i = 1; i < steps; i++) {\n\t\tconst r = Math.floor(color1.r + step[0] * i)\n\t\tconst g = Math.floor(color1.g + step[1] * i)\n\t\tconst b = Math.floor(color1.b + step[2] * i)\n\t\tpalette.push(new Color(r, g, b))\n\t}\n\treturn palette\n}\n\n/**\n * Like GenColor(4) but with labels\n */\nexport const defaultPalette = [\n\tnew Color(182, 70, 157, t('Purple')),\n\tnew Color(\n\t\t191, 103, 139,\n\t\tt('Rosy brown'), // TRANSLATORS: A color name for RGB(191, 103, 139)\n\t),\n\tnew Color(\n\t\t201, 136, 121,\n\t\tt('Feldspar'), // TRANSLATORS: A color name for RGB(201, 136, 121)\n\t),\n\tnew Color(\n\t\t211, 169, 103,\n\t\tt('Whiskey'), // TRANSLATORS: A color name for RGB(211, 169, 103)\n\t),\n\tnew Color(\n\t\t221, 203, 85,\n\t\tt('Gold'),\n\t),\n\tnew Color(\n\t\t165, 184, 114,\n\t\tt('Olivine'), // TRANSLATORS: A color name for RGB(165, 184, 114)\n\t),\n\tnew Color(\n\t\t110, 166, 143,\n\t\tt('Acapulco'), // TRANSLATORS: A color name for RGB(110, 166, 143)\n\t),\n\tnew Color(\n\t\t55, 148, 172,\n\t\tt('Boston Blue'), // TRANSLATORS: A color name for RGB(55, 148, 172)\n\t),\n\tnew Color(\n\t\t0, 130, 201,\n\t\tt('Nextcloud blue'),\n\t),\n\tnew Color(\n\t\t45, 115, 190,\n\t\tt('Mariner'), // TRANSLATORS: A color name for RGB(45, 115, 190)\n\t),\n\tnew Color(\n\t\t91, 100, 179,\n\t\tt('Blue Violet'), // TRANSLATORS: A color name for RGB(91, 100, 179)\n\t),\n\tnew Color(\n\t\t136, 85, 168,\n\t\tt('Deluge'), // TRANSLATORS: A color name for RGB(136, 85, 168)\n\t),\n]\n\n/**\n * Generate colors from the official nextcloud color\n * You can provide how many colors you want (multiplied by 3)\n * if step = 6\n * 3 colors * 6 will result in 18 generated colors\n *\n * @param {number} [steps] Number of steps to go from a color to another\n * @return {object[]}\n */\nexport function GenColors(steps) {\n\tif (!steps) {\n\t\tsteps = 6\n\t}\n\n\tif (steps === 4) {\n\t\treturn defaultPalette\n\t}\n\n\tconst red = new Color(182, 70, 157, t('Purple'))\n\tconst yellow = new Color(221, 203, 85, t('Gold'))\n\tconst blue = new Color(0, 130, 201, t('Nextcloud blue'))\n\n\tconst palette1 = mixPalette(steps, red, yellow)\n\tconst palette2 = mixPalette(steps, yellow, blue)\n\tconst palette3 = mixPalette(steps, blue, red)\n\n\treturn palette1.concat(palette2).concat(palette3)\n}\n"],"names":["Color","r","g","b","name","toHex","num","stepCalc","steps","ends","step","mixPalette","color1","color2","palette","i","defaultPalette","t","GenColors","red","yellow","blue","palette1","palette2","palette3"],"mappings":";;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBO,MAAMA,EAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlB,YAAYC,GAAGC,GAAGC,GAAGC,GAAM;AAC1B,SAAK,IAAIH,GACT,KAAK,IAAIC,GACT,KAAK,IAAIC,GACLC,MACH,KAAK,OAAOA;AAAA,EAEb;AAAA,EAED,IAAI,QAAQ;AACX,UAAMC,IAAQ,CAACC,MAAQ,KAAK,OAAAA,EAAI,SAAS,EAAE,GAAI,MAAM,EAAE;AACvD,WAAO,IAAI,OAAAD,EAAM,KAAK,CAAC,GAAI,OAAAA,EAAM,KAAK,CAAC,GAAI,OAAAA,EAAM,KAAK,CAAC;AAAA,EACvD;AAEF;AASA,SAASE,EAASC,GAAOC,GAAM;AAC9B,QAAMC,IAAO,IAAI,MAAM,CAAC;AACxB,SAAAA,EAAK,CAAC,KAAKD,EAAK,CAAC,EAAE,IAAIA,EAAK,CAAC,EAAE,KAAKD,GACpCE,EAAK,CAAC,KAAKD,EAAK,CAAC,EAAE,IAAIA,EAAK,CAAC,EAAE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-B2O1GMbH.cjs"), t = require("./_l10n-
|
|
3
|
+
const r = require("vue"), o = require("./GenRandomId-B2O1GMbH.cjs"), t = require("./_l10n-B8iumFKB.cjs"), s = require("./_plugin-vue2_normalizer-GXKvuwrq.cjs");
|
|
4
4
|
t.register();
|
|
5
5
|
const a = r.defineComponent({
|
|
6
6
|
name: "NcActionButtonGroup",
|
package/dist/chunks/{NcActionButtonGroup-Dc9G34Er.cjs.map → NcActionButtonGroup-B1XhnIBl.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NcActionButtonGroup-
|
|
1
|
+
{"version":3,"file":"NcActionButtonGroup-B1XhnIBl.cjs","sources":["../../src/components/NcActionButtonGroup/NcActionButtonGroup.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2022\n -\n - @license AGPL-3.0-or-later\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots,\nto group buttons as one visual action, like for text alignment.\nThis should be used sparingly for accessibility.\n\n```vue\n<template>\n\t<div style=\"display: flex; align-items: center;\">\n\t\t<NcActions>\n\t\t\t<NcActionButtonGroup name=\"Text alignment\">\n\t\t\t\t<NcActionButton aria-label=\"Align left\"\n\t\t\t\t\t:model-value.sync=\"alignment\"\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tvalue=\"l\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<AlignLeft :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcActionButton>\n\t\t\t\t<NcActionButton aria-label=\"Align center\"\n\t\t\t\t\t:model-value.sync=\"alignment\"\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tvalue=\"c\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<AlignCenter :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcActionButton>\n\t\t\t\t<NcActionButton aria-label=\"Align right\"\n\t\t\t\t\t:model-value.sync=\"alignment\"\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tvalue=\"r\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<AlignRight :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcActionButton>\n\t\t\t</NcActionButtonGroup>\n\t\t\t<NcActionButton :close-after-click=\"true\"\n\t\t\t\t@click=\"showMessage('Some other action')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tSome other action\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</div>\n</template>\n<script>\nimport AlignLeft from 'vue-material-design-icons/AlignHorizontalLeft'\nimport AlignRight from 'vue-material-design-icons/AlignHorizontalRight'\nimport AlignCenter from 'vue-material-design-icons/AlignHorizontalCenter'\nimport Plus from 'vue-material-design-icons/Plus'\n\nexport default {\n\tcomponents: {\n\t\tAlignLeft,\n\t\tAlignRight,\n\t\tAlignCenter,\n\t\tPlus,\n\t},\n\tdata() {\n\t\treturn { alignment: 'l' }\n\t},\n\tmethods: {\n\t\tshowMessage(msg) {\n\t\t\talert(msg)\n\t\t},\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"nc-button-group-base\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<div v-if=\"name\" :id=\"labelId\">\n\t\t\t{{ name }}\n\t\t</div>\n\t\t<ul class=\"nc-button-group-content\" role=\"group\" :aria-labelledby=\"name ? labelId : undefined\">\n\t\t\t<slot />\n\t\t</ul>\n\t</li>\n</template>\n\n<script>\nimport { defineComponent } from 'vue'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport { t } from '../../l10n.js'\n\n/**\n * A wrapper for allowing inlining NcAction components within the action menu\n */\nexport default defineComponent({\n\tname: 'NcActionButtonGroup',\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: 'NcActions:isSemanticMenu',\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Optional text shown below the button group\n\t\t */\n\t\tname: {\n\t\t\trequired: false,\n\t\t\tdefault: undefined,\n\t\t\ttype: String,\n\t\t},\n\t},\n\n\tsetup() {\n\t\treturn {\n\t\t\tlabelId: `nc-action-button-group-${GenRandomId()}`,\n\t\t}\n\t},\n\n\tmethods: {\n\t\tt,\n\t},\n})\n</script>\n\n<style lang=\"scss\">\n.nc-button-group-base {\n\t>div {\n\t\ttext-align: center;\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n\n\tul.nc-button-group-content {\n\t\tdisplay: flex;\n\t\tgap: 4px; // required for the focus-visible outline\n\t\tjustify-content: space-between;\n\t\tli {\n\t\t\tflex: 1 1;\n\t\t}\n\n\t\t.action-button {\n\t\t\t// Fix action buttons beeing shifted to the left (right padding)\n\t\t\tpadding: 0 !important;\n\t\t\twidth: 100%;\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: center;\n\n\t\t\t&.action-button--active {\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-radius: var(--border-radius-large);\n\t\t\t\tcolor: var(--color-primary-element-text);\n\n\t\t\t\t&:hover, &:focus, &:focus-within {\n\t\t\t\t\tbackground-color: var(--color-primary-element-hover);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.action-button__pressed-icon {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n</style>\n"],"names":["_sfc_main","defineComponent","GenRandomId","t"],"mappings":";;;AA8GA,MAAAA,IAAAC,EAAAA,gBAAA;AAAA,EACA,MAAA;AAAA,EAEA,QAAA;AAAA,IACA,kBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,MAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,QAAA;AACA,WAAA;AAAA,MACA,SAAA,0BAAAC,OAAAA,EAAA,YAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,SAAA;AAAA,IACA,GAAAC,EAAA;AAAA,EACA;AACA,CAAA;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../assets/NcActionButtonGroup-ChehtUip.css';
|
|
2
2
|
import { defineComponent as t } from "vue";
|
|
3
3
|
import { G as r } from "./GenRandomId-BW3iYFf9.mjs";
|
|
4
|
-
import { r as a, a as o } from "./_l10n-
|
|
4
|
+
import { r as a, a as o } from "./_l10n-BaNxGGXy.mjs";
|
|
5
5
|
import { n as s } from "./_plugin-vue2_normalizer-Bj5bLKV4.mjs";
|
|
6
6
|
a();
|
|
7
7
|
const i = t({
|
package/dist/chunks/{NcActionButtonGroup-BS4fKDux.mjs.map → NcActionButtonGroup-DU1taycQ.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NcActionButtonGroup-
|
|
1
|
+
{"version":3,"file":"NcActionButtonGroup-DU1taycQ.mjs","sources":["../../src/components/NcActionButtonGroup/NcActionButtonGroup.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2022\n -\n - @license AGPL-3.0-or-later\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots,\nto group buttons as one visual action, like for text alignment.\nThis should be used sparingly for accessibility.\n\n```vue\n<template>\n\t<div style=\"display: flex; align-items: center;\">\n\t\t<NcActions>\n\t\t\t<NcActionButtonGroup name=\"Text alignment\">\n\t\t\t\t<NcActionButton aria-label=\"Align left\"\n\t\t\t\t\t:model-value.sync=\"alignment\"\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tvalue=\"l\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<AlignLeft :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcActionButton>\n\t\t\t\t<NcActionButton aria-label=\"Align center\"\n\t\t\t\t\t:model-value.sync=\"alignment\"\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tvalue=\"c\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<AlignCenter :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcActionButton>\n\t\t\t\t<NcActionButton aria-label=\"Align right\"\n\t\t\t\t\t:model-value.sync=\"alignment\"\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tvalue=\"r\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<AlignRight :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcActionButton>\n\t\t\t</NcActionButtonGroup>\n\t\t\t<NcActionButton :close-after-click=\"true\"\n\t\t\t\t@click=\"showMessage('Some other action')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tSome other action\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</div>\n</template>\n<script>\nimport AlignLeft from 'vue-material-design-icons/AlignHorizontalLeft'\nimport AlignRight from 'vue-material-design-icons/AlignHorizontalRight'\nimport AlignCenter from 'vue-material-design-icons/AlignHorizontalCenter'\nimport Plus from 'vue-material-design-icons/Plus'\n\nexport default {\n\tcomponents: {\n\t\tAlignLeft,\n\t\tAlignRight,\n\t\tAlignCenter,\n\t\tPlus,\n\t},\n\tdata() {\n\t\treturn { alignment: 'l' }\n\t},\n\tmethods: {\n\t\tshowMessage(msg) {\n\t\t\talert(msg)\n\t\t},\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"nc-button-group-base\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<div v-if=\"name\" :id=\"labelId\">\n\t\t\t{{ name }}\n\t\t</div>\n\t\t<ul class=\"nc-button-group-content\" role=\"group\" :aria-labelledby=\"name ? labelId : undefined\">\n\t\t\t<slot />\n\t\t</ul>\n\t</li>\n</template>\n\n<script>\nimport { defineComponent } from 'vue'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport { t } from '../../l10n.js'\n\n/**\n * A wrapper for allowing inlining NcAction components within the action menu\n */\nexport default defineComponent({\n\tname: 'NcActionButtonGroup',\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: 'NcActions:isSemanticMenu',\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Optional text shown below the button group\n\t\t */\n\t\tname: {\n\t\t\trequired: false,\n\t\t\tdefault: undefined,\n\t\t\ttype: String,\n\t\t},\n\t},\n\n\tsetup() {\n\t\treturn {\n\t\t\tlabelId: `nc-action-button-group-${GenRandomId()}`,\n\t\t}\n\t},\n\n\tmethods: {\n\t\tt,\n\t},\n})\n</script>\n\n<style lang=\"scss\">\n.nc-button-group-base {\n\t>div {\n\t\ttext-align: center;\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n\n\tul.nc-button-group-content {\n\t\tdisplay: flex;\n\t\tgap: 4px; // required for the focus-visible outline\n\t\tjustify-content: space-between;\n\t\tli {\n\t\t\tflex: 1 1;\n\t\t}\n\n\t\t.action-button {\n\t\t\t// Fix action buttons beeing shifted to the left (right padding)\n\t\t\tpadding: 0 !important;\n\t\t\twidth: 100%;\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: center;\n\n\t\t\t&.action-button--active {\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-radius: var(--border-radius-large);\n\t\t\t\tcolor: var(--color-primary-element-text);\n\n\t\t\t\t&:hover, &:focus, &:focus-within {\n\t\t\t\t\tbackground-color: var(--color-primary-element-hover);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.action-button__pressed-icon {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n</style>\n"],"names":["_sfc_main","defineComponent","GenRandomId","t"],"mappings":";;;;;AA8GA,MAAAA,IAAAC,EAAA;AAAA,EACA,MAAA;AAAA,EAEA,QAAA;AAAA,IACA,kBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,MAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,QAAA;AACA,WAAA;AAAA,MACA,SAAA,0BAAA,OAAAC,EAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,SAAA;AAAA,IACA,GAAAC;AAAA,EACA;AACA,CAAA;;;;;;;;;;;;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import '../assets/NcActionInput-
|
|
1
|
+
import '../assets/NcActionInput-8F2WF3yH.css';
|
|
2
2
|
import l from "../Components/NcDateTimePicker.mjs";
|
|
3
3
|
import n from "../Components/NcDateTimePickerNative.mjs";
|
|
4
|
-
import { N as r } from "./NcPasswordField-
|
|
5
|
-
import { N as o } from "./NcSelect-
|
|
6
|
-
import { N as c } from "./NcTextField-
|
|
4
|
+
import { N as r } from "./NcPasswordField-BgSp7dK4.mjs";
|
|
5
|
+
import { N as o } from "./NcSelect-Bo71Yd6L.mjs";
|
|
6
|
+
import { N as c } from "./NcTextField-D_eUEl2B.mjs";
|
|
7
7
|
import { A as u } from "./actionGlobal-D49NL940.mjs";
|
|
8
8
|
import { G as s } from "./GenRandomId-BW3iYFf9.mjs";
|
|
9
|
-
import { r as d, f as p, a as b } from "./_l10n-
|
|
9
|
+
import { r as d, f as p, a as b } from "./_l10n-BaNxGGXy.mjs";
|
|
10
10
|
import { n as m } from "./_plugin-vue2_normalizer-Bj5bLKV4.mjs";
|
|
11
11
|
d(p);
|
|
12
12
|
const f = {
|
|
@@ -234,7 +234,7 @@ var _ = function() {
|
|
|
234
234
|
h,
|
|
235
235
|
!1,
|
|
236
236
|
null,
|
|
237
|
-
"
|
|
237
|
+
"3706febe",
|
|
238
238
|
null,
|
|
239
239
|
null
|
|
240
240
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcActionInput-53RB9uQe.mjs","sources":["../../src/components/NcActionInput/NcActionInput.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n -\n - @author John Molakvoæ <skjnldsv@protonmail.com>\n - @author Marco Ambrosini <marcoambrosini@icloud.com>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\nIt is recommended to not only provide a placeholder, but also a label.\nThe label should describe what input is expected and the placehold what format the input should have.\n\nAll undocumented attributes will be bound to the input, the datepicker or the select component, e.g. `maxlength`, `not-before`.\nFor the `NcSelect` component, all events will be passed through. Please see the `NcSelect` component's documentation for more details and examples.\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionInput :value.sync=\"text\" :label-outside=\"true\" label=\"Label outside the input\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput :value.sync=\"text\" :show-trailing-button=\"false\" label=\"Input without trailing button\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput :value.sync=\"text\" label=\"Input with placeholder\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tThis is the placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"password\" :value.sync=\"text\" label=\"Password with visible label\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Key :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPassword placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"password\" :value.sync=\"text\" :show-trailing-button=\"false\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Key :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPassword placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"color\" :value.sync=\"color\" label=\"Favorite color\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Eyedropper :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tColor placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput label=\"Visible label\" :value.sync=\"text\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tInput with visible label\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput :disabled=\"true\" label=\"This is a disabled input\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Close :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"date\" isNativePicker :value=\"new Date()\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPlease pick a date\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"date\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPlease pick a date\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput\n\t\t\t\ttype=\"multiselect\"\n\t\t\t\tinput-label=\"Fruit selection\"\n\t\t\t\t:options=\"['Apple', 'Banana', 'Cherry']\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPlease pick a fruit\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput\n\t\t\t\tv-model=\"multiSelected\"\n\t\t\t\ttype=\"multiselect\"\n\t\t\t\tinput-label=\"Fruit selection\"\n\t\t\t\ttrack-by=\"id\"\n\t\t\t\t:append-to-body=\"true\"\n\t\t\t\t:multiple=\"true\"\n\t\t\t\t:options=\"[{label:'Apple', id: 'apple'}, {label:'Banana', id: 'banana'}, {label:'Cherry', id: 'cherry'}]\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPlease pick a fruit object\n\t\t\t</NcActionInput>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport Close from 'vue-material-design-icons/Close'\n\timport Eyedropper from 'vue-material-design-icons/Eyedropper'\n\timport Key from 'vue-material-design-icons/Key'\n\timport Pencil from 'vue-material-design-icons/Pencil'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tClose,\n\t\t\tEyedropper,\n\t\t\tKey,\n\t\t\tPencil,\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tcolor: '#0082C9',\n\t\t\t\ttext: 'This is the input text',\n\t\t\t\tmultiSelected: [],\n\t\t\t}\n\t\t},\n\t}\n\t</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\">\n\t\t<span :class=\"{\n\t\t\t\t'action-input-picker--disabled': disabled,\n\t\t\t\t'action-input--visible-label': labelOutside && label,\n\t\t\t}\"\n\t\t\tclass=\"action-input\"\n\t\t\t@mouseleave=\"onLeave\">\n\t\t\t<span class=\"action-input__icon-wrapper\">\n\t\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t\t<slot name=\"icon\">\n\t\t\t\t\t<span :class=\"[isIconUrl ? 'action-input__icon--url' : icon]\"\n\t\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclass=\"action-input__icon\" />\n\t\t\t\t</slot>\n\t\t\t</span>\n\n\t\t\t<!-- form and input -->\n\t\t\t<form ref=\"form\"\n\t\t\t\tclass=\"action-input__form\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t@submit.prevent=\"onSubmit\">\n\t\t\t\t<div class=\"action-input__container\">\n\t\t\t\t\t<label v-if=\"label && labelOutside\"\n\t\t\t\t\t\tclass=\"action-input__text-label\"\n\t\t\t\t\t\t:class=\"{ 'action-input__text-label--hidden': !labelOutside}\"\n\t\t\t\t\t\t:for=\"inputId\">\n\t\t\t\t\t\t{{ label }}\n\t\t\t\t\t</label>\n\t\t\t\t\t<div class=\"action-input__input-container\">\n\n\t\t\t\t\t\t<NcDateTimePicker v-if=\"datePickerType\"\n\t\t\t\t\t\t\tref=\"datetimepicker\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\tstyle=\"z-index: 99999999999;\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:type=\"datePickerType\"\n\t\t\t\t\t\t\t:input-class=\"['mx-input', { focusable: isFocusable }]\"\n\t\t\t\t\t\t\tclass=\"action-input__datetimepicker\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t@change=\"onChange\" />\n\n\t\t\t\t\t\t<NcDateTimePickerNative v-else-if=\"isNativePicker\"\n\t\t\t\t\t\t\t:id=\"idNativeDateTimePicker\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:type=\"nativeDatePickerType\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\tclass=\"action-input__datetimepicker\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@input=\"$emit('input', $event)\"\n\t\t\t\t\t\t\t@change=\"$emit('change', $event)\" />\n\n\t\t\t\t\t\t<NcSelect v-else-if=\"isMultiselectType\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:append-to-body=\"$attrs.appendToBody || $attrs['append-to-body'] || false\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\tclass=\"action-input__multi\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\tv-on=\"$listeners\" />\n\n\t\t\t\t\t\t<NcPasswordField v-else-if=\"type==='password'\"\n\t\t\t\t\t\t\t:id=\"inputId\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:label=\"label\"\n\t\t\t\t\t\t\t:label-outside=\"!label || labelOutside\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\t:show-trailing-button=\"showTrailingButton && !disabled\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\tv-on=\"$listeners\"\n\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t@change=\"onChange\" />\n\n\t\t\t\t\t\t<div v-else-if=\"type === 'color'\" class=\"action-input__container\">\n\t\t\t\t\t\t\t<label v-if=\"label && type === 'color'\"\n\t\t\t\t\t\t\t\tclass=\"action-input__text-label\"\n\t\t\t\t\t\t\t\t:class=\"{ 'action-input__text-label--hidden': !labelOutside}\"\n\t\t\t\t\t\t\t\t:for=\"inputId\">\n\t\t\t\t\t\t\t\t{{ label }}\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t<div class=\"action-input__input-container\">\n\t\t\t\t\t\t\t\t<NcColorPicker id=\"inputId\"\n\t\t\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t\t\tclass=\"colorpicker__trigger\"\n\t\t\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t\t\tv-on=\"$listeners\"\n\t\t\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t\t\t@submit=\"$refs.form.requestSubmit()\">\n\t\t\t\t\t\t\t\t\t<button :style=\"{'background-color': value}\"\n\t\t\t\t\t\t\t\t\t\tclass=\"colorpicker__preview\"\n\t\t\t\t\t\t\t\t\t\t:class=\"{ focusable: isFocusable }\" />\n\t\t\t\t\t\t\t\t</NcColorPicker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<NcTextField v-else\n\t\t\t\t\t\t\t:id=\"inputId\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:label=\"label\"\n\t\t\t\t\t\t\t:label-outside=\"!label || labelOutside\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\t:type=\"type\"\n\t\t\t\t\t\t\ttrailing-button-icon=\"arrowRight\"\n\t\t\t\t\t\t\t:trailing-button-label=\"trailingButtonLabel\"\n\t\t\t\t\t\t\t:show-trailing-button=\"showTrailingButton && !disabled\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\tv-on=\"$listeners\"\n\t\t\t\t\t\t\t@trailing-button-click=\"$refs.form.requestSubmit()\"\n\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t@change=\"onChange\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</span>\n\t</li>\n</template>\n\n<script>\nimport NcDateTimePicker from '../NcDateTimePicker/index.js'\nimport NcDateTimePickerNative from '../NcDateTimePickerNative/index.js'\nimport NcPasswordField from '../NcPasswordField/index.js'\nimport NcSelect from '../NcSelect/index.js'\nimport NcTextField from '../NcTextField/index.js'\nimport ActionGlobalMixin from '../../mixins/actionGlobal.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport { t } from '../../l10n.js'\n\nexport default {\n\tname: 'NcActionInput',\n\n\tcomponents: {\n\t\tNcDateTimePicker,\n\t\tNcDateTimePickerNative,\n\t\tNcPasswordField,\n\t\tNcSelect,\n\t\tNcTextField,\n\t},\n\n\tmixins: [ActionGlobalMixin],\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\t\t/**\n\t\t * id attribute of the text input element\n\t\t */\n\t\tinputId: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'action-input-' + GenRandomId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * type attribute of the input field\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'text',\n\t\t\tvalidator(type) {\n\t\t\t\treturn ['date', 'datetime-local', 'month', 'multiselect',\n\t\t\t\t\t'number', 'password', 'search', 'tel',\n\t\t\t\t\t'text', 'time', 'url', 'week', 'color',\n\t\t\t\t\t'email'].indexOf(type) > -1\n\t\t\t},\n\t\t},\n\t\t/**\n\t\t * id attribute for the native date time picker\n\t\t */\n\t\tidNativeDateTimePicker: {\n\t\t\ttype: String,\n\t\t\tdefault: 'date-time-picker_id',\n\t\t},\n\t\t/**\n\t\t * Flag to use a native date time picker\n\t\t */\n\t\tisNativePicker: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * The visible input label for accessibility purposes.\n\t\t */\n\t\tlabel: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * If you want to show the label just above the\n\t\t * input field, pass in `true` to this prop.\n\t\t */\n\t\tlabelOutside: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t\t/**\n\t\t * value attribute of the input field\n\t\t */\n\t\tvalue: {\n\t\t\ttype: [String, Date, Number, Array],\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * disabled state of the input field\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * aria-label attribute of the input field\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * @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\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * Attribute forwarded to the underlying NcPasswordField and NcTextField\n\t\t */\n\t\tshowTrailingButton: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t\t/**\n\t\t * Trailing button label forwarded to the underlying NcTextField\n\t\t */\n\t\ttrailingButtonLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: t('Submit'),\n\t\t},\n\t},\n\n\temits: [\n\t\t'input',\n\t\t'submit',\n\t\t'change',\n\t\t'update:value',\n\t],\n\n\tcomputed: {\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn new URL(this.icon)\n\t\t\t} catch (error) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\n\t\tisMultiselectType() {\n\t\t\treturn this.type === 'multiselect'\n\t\t},\n\n\t\tnativeDatePickerType() {\n\t\t\tswitch (this.type) {\n\t\t\tcase 'date':\n\t\t\tcase 'month':\n\t\t\tcase 'time':\n\t\t\tcase 'week':\n\t\t\tcase 'datetime-local':\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\n\t\tdatePickerType() {\n\t\t\tif (!this.isNativePicker) {\n\t\t\t\tswitch (this.type) {\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'month':\n\t\t\t\tcase 'time':\n\t\t\t\t\treturn this.type\n\n\t\t\t\tcase 'datetime-local':\n\t\t\t\t\treturn 'datetime'\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\t\t/**\n\t\t * determines if the action is focusable\n\t\t *\n\t\t * @return {boolean} is the action focusable ?\n\t\t */\n\t\tisFocusable() {\n\t\t\treturn !this.disabled\n\t\t},\n\t},\n\n\tmethods: {\n\t\t// closing datepicker popup on mouseleave = unfocus\n\t\tonLeave() {\n\t\t\tif (this.$refs.datetimepicker && this.$refs.datetimepicker.$refs.datepicker) {\n\t\t\t\tthis.$refs.datetimepicker.$refs.datepicker.closePopup()\n\t\t\t}\n\t\t},\n\t\tonInput(event) {\n\t\t\t/**\n\t\t\t * Emitted on input events of the text field\n\t\t\t *\n\t\t\t * @type {Event|Date}\n\t\t\t */\n\t\t\tthis.$emit('input', event)\n\t\t\t/**\n\t\t\t * Emitted when the inputs value changes\n\t\t\t * ! DatetimePicker only send the value\n\t\t\t *\n\t\t\t * @type {string|Date}\n\t\t\t */\n\t\t\tthis.$emit('update:value', event.target ? event.target.value : event)\n\t\t},\n\t\tonSubmit(event) {\n\t\t\tevent.preventDefault()\n\t\t\tevent.stopPropagation()\n\t\t\tif (!this.disabled) {\n\t\t\t\t/**\n\t\t\t\t * Emitted on submit of the input field\n\t\t\t\t *\n\t\t\t\t * @type {Event}\n\t\t\t\t */\n\t\t\t\tthis.$emit('submit', event)\n\t\t\t} else {\n\t\t\t\t// ignore submit\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t\tonChange(event) {\n\t\t\t/**\n\t\t\t * Emitted on change of the input field\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('change', event)\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import '../../assets/inputs';\n@import '../../assets/action';\n@include action-active;\n@include action--disabled;\n\n$input-margin: 4px;\n\n.action-input {\n\tdisplay: flex;\n\talign-items: flex-start;\n\n\twidth: 100%;\n\theight: auto;\n\tmargin: 0;\n\tpadding: 0;\n\n\tcursor: pointer;\n\twhite-space: nowrap;\n\n\tcolor: var(--color-main-text);\n\tborder: 0;\n\tborder-radius: 0; // otherwise Safari will cut the border-radius area\n\tbackground-color: transparent;\n\tbox-shadow: none;\n\n\tfont-weight: normal;\n\n\t&__icon-wrapper {\n\t\tdisplay: flex;\n\t\talign-self: center;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\t&:deep(.material-design-icon) {\n\t\t\twidth: $clickable-area;\n\t\t\theight: $clickable-area;\n\t\t\topacity: $opacity_full;\n\n\t\t\t.material-design-icon__svg {\n\t\t\t\tvertical-align: middle;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > span {\n\t\tcursor: pointer;\n\t\twhite-space: nowrap;\n\t}\n\n\t&__icon {\n\t\tmin-width: 0; /* Overwrite icons*/\n\t\tmin-height: 0;\n\t\t/* Keep padding to define the width to\n\t\t\tassure correct position of a possible text */\n\t\tpadding: #{math.div($clickable-area, 2)} 0 #{math.div($clickable-area, 2)} $clickable-area;\n\n\t\tbackground-position: #{$icon-margin} center;\n\t\tbackground-size: $icon-size;\n\t}\n\n\t// Forms & text inputs\n\t&__form {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tflex: 1 1 auto;\n\n\t\tmargin: $input-margin 0;\n\t\tpadding-right: $icon-margin;\n\t}\n\n\t&__container {\n\t\twidth: 100%;\n\t}\n\n\t&__input-container {\n\t\tdisplay: flex;\n\n\t\t.colorpicker {\n\t\t\t&__trigger,\n\t\t\t&__preview {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t&__preview {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 36px;\n\t\t\t\tborder-radius: var(--border-radius-large);\n\t\t\t\tborder: 2px solid var(--color-border-maxcontrast);\n\t\t\t\tbox-shadow: none !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__text-label {\n\t\tpadding: 4px 0;\n\t\tdisplay: block;\n\n\t\t&--hidden {\n\t\t\tposition: absolute;\n\t\t\tleft: -10000px;\n\t\t\ttop: auto;\n\t\t\twidth: 1px;\n\t\t\theight: 1px;\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t&__datetimepicker {\n\t\twidth: 100%;\n\n\t\t:deep(.mx-input) {\n\t\t\tmargin: 0;\n\t\t}\n\t}\n\n\t&__multi {\n\t\twidth: 100%;\n\t}\n}\n\n// if a form is the last of the list\n// add the same bottomMargin as the right padding\n// for visual balance\nli:last-child > .action-input {\n\tpadding-bottom: $icon-margin - $input-margin;\n}\n\n// same for first item\nli:first-child > .action-input:not(.action-input--visible-label) {\n\tpadding-top: $icon-margin - $input-margin;\n}\n\n</style>\n"],"names":["_sfc_main","NcDateTimePicker","NcDateTimePickerNative","NcPasswordField","NcSelect","NcTextField","ActionGlobalMixin","GenRandomId","id","type","t","event"],"mappings":";;;;;;;;;;AAmRA,MAAAA,IAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA,kBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,aAAAC;AAAA,EACA;AAAA,EAEA,QAAA,CAAAC,CAAA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,IAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA,MAAA,YAAAC,EAAA;AAAA,MACA,WAAA,CAAAC,MAAAA,EAAA,KAAA,MAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA,SAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA,MAAA,kBAAAD,EAAA;AAAA,MACA,WAAA,CAAAC,MAAAA,EAAA,KAAA,MAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAAC,GAAA;AACA,eAAA;AAAA,UAAA;AAAA,UAAA;AAAA,UAAA;AAAA,UAAA;AAAA,UACA;AAAA,UAAA;AAAA,UAAA;AAAA,UAAA;AAAA,UACA;AAAA,UAAA;AAAA,UAAA;AAAA,UAAA;AAAA,UAAA;AAAA,UACA;AAAA,QAAA,EAAA,QAAAA,CAAA,IAAA;AAAA,MACA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA,wBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA,gBAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA,OAAA;AAAA,MACA,MAA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AA;AAAA,UAEA,KAAA;AACA,mBAAA;AAAA,QACA;AAEA,aAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,cAAA;AACA,aAAA,CAAA,KAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,SAAA;AAAA;AAAA,IAEA,UAAA;AACA,MAAA,KAAA,MAAA,kBAAA,KAAA,MAAA,eAAA,MAAA,cACA,KAAA,MAAA,eAAA,MAAA,WAAA,WAAA;AAAA,IAEA;AAAA,IACA,QAAAC,GAAA;AAMA,WAAA,MAAA,SAAAA,CAAA,GAOA,KAAA,MAAA,gBAAAA,EAAA,SAAAA,EAAA,OAAA,QAAAA,CAAA;AAAA,IACA;AAAA,IACA,SAAAA,GAAA;AAGA,UAFAA,EAAA,eAAA,GACAA,EAAA,gBAAA,GACA,CAAA,KAAA;AAMA,aAAA,MAAA,UAAAA,CAAA;AAAA;AAGA,eAAA;AAAA,IAEA;AAAA,IACA,SAAAA,GAAA;AAMA,WAAA,MAAA,UAAAA,CAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
require('../assets/NcActionInput-
|
|
1
|
+
require('../assets/NcActionInput-8F2WF3yH.css');
|
|
2
2
|
"use strict";
|
|
3
|
-
const n = require("../Components/NcDateTimePicker.cjs"), r = require("../Components/NcDateTimePickerNative.cjs"), c = require("./NcPasswordField-
|
|
3
|
+
const n = require("../Components/NcDateTimePicker.cjs"), r = require("../Components/NcDateTimePickerNative.cjs"), c = require("./NcPasswordField-BooDzf0Z.cjs"), o = require("./NcSelect-Bn3oTHtq.cjs"), u = require("./NcTextField-B5cUYgRy.cjs"), d = require("./actionGlobal-DL1VaQzF.cjs"), s = require("./GenRandomId-B2O1GMbH.cjs"), l = require("./_l10n-B8iumFKB.cjs"), p = require("./_plugin-vue2_normalizer-GXKvuwrq.cjs");
|
|
4
4
|
l.register(l.t41);
|
|
5
5
|
const b = {
|
|
6
6
|
name: "NcActionInput",
|
|
@@ -227,7 +227,7 @@ var m = function() {
|
|
|
227
227
|
_,
|
|
228
228
|
!1,
|
|
229
229
|
null,
|
|
230
|
-
"
|
|
230
|
+
"3706febe",
|
|
231
231
|
null,
|
|
232
232
|
null
|
|
233
233
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcActionInput-N2wrvq5K.cjs","sources":["../../src/components/NcActionInput/NcActionInput.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n -\n - @author John Molakvoæ <skjnldsv@protonmail.com>\n - @author Marco Ambrosini <marcoambrosini@icloud.com>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\nIt is recommended to not only provide a placeholder, but also a label.\nThe label should describe what input is expected and the placehold what format the input should have.\n\nAll undocumented attributes will be bound to the input, the datepicker or the select component, e.g. `maxlength`, `not-before`.\nFor the `NcSelect` component, all events will be passed through. Please see the `NcSelect` component's documentation for more details and examples.\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionInput :value.sync=\"text\" :label-outside=\"true\" label=\"Label outside the input\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput :value.sync=\"text\" :show-trailing-button=\"false\" label=\"Input without trailing button\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput :value.sync=\"text\" label=\"Input with placeholder\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tThis is the placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"password\" :value.sync=\"text\" label=\"Password with visible label\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Key :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPassword placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"password\" :value.sync=\"text\" :show-trailing-button=\"false\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Key :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPassword placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"color\" :value.sync=\"color\" label=\"Favorite color\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Eyedropper :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tColor placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput label=\"Visible label\" :value.sync=\"text\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tInput with visible label\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput :disabled=\"true\" label=\"This is a disabled input\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Close :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"date\" isNativePicker :value=\"new Date()\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPlease pick a date\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"date\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPlease pick a date\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput\n\t\t\t\ttype=\"multiselect\"\n\t\t\t\tinput-label=\"Fruit selection\"\n\t\t\t\t:options=\"['Apple', 'Banana', 'Cherry']\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPlease pick a fruit\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput\n\t\t\t\tv-model=\"multiSelected\"\n\t\t\t\ttype=\"multiselect\"\n\t\t\t\tinput-label=\"Fruit selection\"\n\t\t\t\ttrack-by=\"id\"\n\t\t\t\t:append-to-body=\"true\"\n\t\t\t\t:multiple=\"true\"\n\t\t\t\t:options=\"[{label:'Apple', id: 'apple'}, {label:'Banana', id: 'banana'}, {label:'Cherry', id: 'cherry'}]\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPlease pick a fruit object\n\t\t\t</NcActionInput>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport Close from 'vue-material-design-icons/Close'\n\timport Eyedropper from 'vue-material-design-icons/Eyedropper'\n\timport Key from 'vue-material-design-icons/Key'\n\timport Pencil from 'vue-material-design-icons/Pencil'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tClose,\n\t\t\tEyedropper,\n\t\t\tKey,\n\t\t\tPencil,\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tcolor: '#0082C9',\n\t\t\t\ttext: 'This is the input text',\n\t\t\t\tmultiSelected: [],\n\t\t\t}\n\t\t},\n\t}\n\t</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\">\n\t\t<span :class=\"{\n\t\t\t\t'action-input-picker--disabled': disabled,\n\t\t\t\t'action-input--visible-label': labelOutside && label,\n\t\t\t}\"\n\t\t\tclass=\"action-input\"\n\t\t\t@mouseleave=\"onLeave\">\n\t\t\t<span class=\"action-input__icon-wrapper\">\n\t\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t\t<slot name=\"icon\">\n\t\t\t\t\t<span :class=\"[isIconUrl ? 'action-input__icon--url' : icon]\"\n\t\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclass=\"action-input__icon\" />\n\t\t\t\t</slot>\n\t\t\t</span>\n\n\t\t\t<!-- form and input -->\n\t\t\t<form ref=\"form\"\n\t\t\t\tclass=\"action-input__form\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t@submit.prevent=\"onSubmit\">\n\t\t\t\t<div class=\"action-input__container\">\n\t\t\t\t\t<label v-if=\"label && labelOutside\"\n\t\t\t\t\t\tclass=\"action-input__text-label\"\n\t\t\t\t\t\t:class=\"{ 'action-input__text-label--hidden': !labelOutside}\"\n\t\t\t\t\t\t:for=\"inputId\">\n\t\t\t\t\t\t{{ label }}\n\t\t\t\t\t</label>\n\t\t\t\t\t<div class=\"action-input__input-container\">\n\n\t\t\t\t\t\t<NcDateTimePicker v-if=\"datePickerType\"\n\t\t\t\t\t\t\tref=\"datetimepicker\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\tstyle=\"z-index: 99999999999;\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:type=\"datePickerType\"\n\t\t\t\t\t\t\t:input-class=\"['mx-input', { focusable: isFocusable }]\"\n\t\t\t\t\t\t\tclass=\"action-input__datetimepicker\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t@change=\"onChange\" />\n\n\t\t\t\t\t\t<NcDateTimePickerNative v-else-if=\"isNativePicker\"\n\t\t\t\t\t\t\t:id=\"idNativeDateTimePicker\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:type=\"nativeDatePickerType\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\tclass=\"action-input__datetimepicker\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@input=\"$emit('input', $event)\"\n\t\t\t\t\t\t\t@change=\"$emit('change', $event)\" />\n\n\t\t\t\t\t\t<NcSelect v-else-if=\"isMultiselectType\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:append-to-body=\"$attrs.appendToBody || $attrs['append-to-body'] || false\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\tclass=\"action-input__multi\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\tv-on=\"$listeners\" />\n\n\t\t\t\t\t\t<NcPasswordField v-else-if=\"type==='password'\"\n\t\t\t\t\t\t\t:id=\"inputId\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:label=\"label\"\n\t\t\t\t\t\t\t:label-outside=\"!label || labelOutside\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\t:show-trailing-button=\"showTrailingButton && !disabled\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\tv-on=\"$listeners\"\n\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t@change=\"onChange\" />\n\n\t\t\t\t\t\t<div v-else-if=\"type === 'color'\" class=\"action-input__container\">\n\t\t\t\t\t\t\t<label v-if=\"label && type === 'color'\"\n\t\t\t\t\t\t\t\tclass=\"action-input__text-label\"\n\t\t\t\t\t\t\t\t:class=\"{ 'action-input__text-label--hidden': !labelOutside}\"\n\t\t\t\t\t\t\t\t:for=\"inputId\">\n\t\t\t\t\t\t\t\t{{ label }}\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t<div class=\"action-input__input-container\">\n\t\t\t\t\t\t\t\t<NcColorPicker id=\"inputId\"\n\t\t\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t\t\tclass=\"colorpicker__trigger\"\n\t\t\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t\t\tv-on=\"$listeners\"\n\t\t\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t\t\t@submit=\"$refs.form.requestSubmit()\">\n\t\t\t\t\t\t\t\t\t<button :style=\"{'background-color': value}\"\n\t\t\t\t\t\t\t\t\t\tclass=\"colorpicker__preview\"\n\t\t\t\t\t\t\t\t\t\t:class=\"{ focusable: isFocusable }\" />\n\t\t\t\t\t\t\t\t</NcColorPicker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<NcTextField v-else\n\t\t\t\t\t\t\t:id=\"inputId\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:label=\"label\"\n\t\t\t\t\t\t\t:label-outside=\"!label || labelOutside\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\t:type=\"type\"\n\t\t\t\t\t\t\ttrailing-button-icon=\"arrowRight\"\n\t\t\t\t\t\t\t:trailing-button-label=\"trailingButtonLabel\"\n\t\t\t\t\t\t\t:show-trailing-button=\"showTrailingButton && !disabled\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\tv-on=\"$listeners\"\n\t\t\t\t\t\t\t@trailing-button-click=\"$refs.form.requestSubmit()\"\n\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t@change=\"onChange\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</span>\n\t</li>\n</template>\n\n<script>\nimport NcDateTimePicker from '../NcDateTimePicker/index.js'\nimport NcDateTimePickerNative from '../NcDateTimePickerNative/index.js'\nimport NcPasswordField from '../NcPasswordField/index.js'\nimport NcSelect from '../NcSelect/index.js'\nimport NcTextField from '../NcTextField/index.js'\nimport ActionGlobalMixin from '../../mixins/actionGlobal.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport { t } from '../../l10n.js'\n\nexport default {\n\tname: 'NcActionInput',\n\n\tcomponents: {\n\t\tNcDateTimePicker,\n\t\tNcDateTimePickerNative,\n\t\tNcPasswordField,\n\t\tNcSelect,\n\t\tNcTextField,\n\t},\n\n\tmixins: [ActionGlobalMixin],\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\t\t/**\n\t\t * id attribute of the text input element\n\t\t */\n\t\tinputId: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'action-input-' + GenRandomId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * type attribute of the input field\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'text',\n\t\t\tvalidator(type) {\n\t\t\t\treturn ['date', 'datetime-local', 'month', 'multiselect',\n\t\t\t\t\t'number', 'password', 'search', 'tel',\n\t\t\t\t\t'text', 'time', 'url', 'week', 'color',\n\t\t\t\t\t'email'].indexOf(type) > -1\n\t\t\t},\n\t\t},\n\t\t/**\n\t\t * id attribute for the native date time picker\n\t\t */\n\t\tidNativeDateTimePicker: {\n\t\t\ttype: String,\n\t\t\tdefault: 'date-time-picker_id',\n\t\t},\n\t\t/**\n\t\t * Flag to use a native date time picker\n\t\t */\n\t\tisNativePicker: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * The visible input label for accessibility purposes.\n\t\t */\n\t\tlabel: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * If you want to show the label just above the\n\t\t * input field, pass in `true` to this prop.\n\t\t */\n\t\tlabelOutside: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t\t/**\n\t\t * value attribute of the input field\n\t\t */\n\t\tvalue: {\n\t\t\ttype: [String, Date, Number, Array],\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * disabled state of the input field\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * aria-label attribute of the input field\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * @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\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * Attribute forwarded to the underlying NcPasswordField and NcTextField\n\t\t */\n\t\tshowTrailingButton: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t\t/**\n\t\t * Trailing button label forwarded to the underlying NcTextField\n\t\t */\n\t\ttrailingButtonLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: t('Submit'),\n\t\t},\n\t},\n\n\temits: [\n\t\t'input',\n\t\t'submit',\n\t\t'change',\n\t\t'update:value',\n\t],\n\n\tcomputed: {\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn new URL(this.icon)\n\t\t\t} catch (error) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\n\t\tisMultiselectType() {\n\t\t\treturn this.type === 'multiselect'\n\t\t},\n\n\t\tnativeDatePickerType() {\n\t\t\tswitch (this.type) {\n\t\t\tcase 'date':\n\t\t\tcase 'month':\n\t\t\tcase 'time':\n\t\t\tcase 'week':\n\t\t\tcase 'datetime-local':\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\n\t\tdatePickerType() {\n\t\t\tif (!this.isNativePicker) {\n\t\t\t\tswitch (this.type) {\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'month':\n\t\t\t\tcase 'time':\n\t\t\t\t\treturn this.type\n\n\t\t\t\tcase 'datetime-local':\n\t\t\t\t\treturn 'datetime'\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\t\t/**\n\t\t * determines if the action is focusable\n\t\t *\n\t\t * @return {boolean} is the action focusable ?\n\t\t */\n\t\tisFocusable() {\n\t\t\treturn !this.disabled\n\t\t},\n\t},\n\n\tmethods: {\n\t\t// closing datepicker popup on mouseleave = unfocus\n\t\tonLeave() {\n\t\t\tif (this.$refs.datetimepicker && this.$refs.datetimepicker.$refs.datepicker) {\n\t\t\t\tthis.$refs.datetimepicker.$refs.datepicker.closePopup()\n\t\t\t}\n\t\t},\n\t\tonInput(event) {\n\t\t\t/**\n\t\t\t * Emitted on input events of the text field\n\t\t\t *\n\t\t\t * @type {Event|Date}\n\t\t\t */\n\t\t\tthis.$emit('input', event)\n\t\t\t/**\n\t\t\t * Emitted when the inputs value changes\n\t\t\t * ! DatetimePicker only send the value\n\t\t\t *\n\t\t\t * @type {string|Date}\n\t\t\t */\n\t\t\tthis.$emit('update:value', event.target ? event.target.value : event)\n\t\t},\n\t\tonSubmit(event) {\n\t\t\tevent.preventDefault()\n\t\t\tevent.stopPropagation()\n\t\t\tif (!this.disabled) {\n\t\t\t\t/**\n\t\t\t\t * Emitted on submit of the input field\n\t\t\t\t *\n\t\t\t\t * @type {Event}\n\t\t\t\t */\n\t\t\t\tthis.$emit('submit', event)\n\t\t\t} else {\n\t\t\t\t// ignore submit\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t\tonChange(event) {\n\t\t\t/**\n\t\t\t * Emitted on change of the input field\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('change', event)\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import '../../assets/inputs';\n@import '../../assets/action';\n@include action-active;\n@include action--disabled;\n\n$input-margin: 4px;\n\n.action-input {\n\tdisplay: flex;\n\talign-items: flex-start;\n\n\twidth: 100%;\n\theight: auto;\n\tmargin: 0;\n\tpadding: 0;\n\n\tcursor: pointer;\n\twhite-space: nowrap;\n\n\tcolor: var(--color-main-text);\n\tborder: 0;\n\tborder-radius: 0; // otherwise Safari will cut the border-radius area\n\tbackground-color: transparent;\n\tbox-shadow: none;\n\n\tfont-weight: normal;\n\n\t&__icon-wrapper {\n\t\tdisplay: flex;\n\t\talign-self: center;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\t&:deep(.material-design-icon) {\n\t\t\twidth: $clickable-area;\n\t\t\theight: $clickable-area;\n\t\t\topacity: $opacity_full;\n\n\t\t\t.material-design-icon__svg {\n\t\t\t\tvertical-align: middle;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > span {\n\t\tcursor: pointer;\n\t\twhite-space: nowrap;\n\t}\n\n\t&__icon {\n\t\tmin-width: 0; /* Overwrite icons*/\n\t\tmin-height: 0;\n\t\t/* Keep padding to define the width to\n\t\t\tassure correct position of a possible text */\n\t\tpadding: #{math.div($clickable-area, 2)} 0 #{math.div($clickable-area, 2)} $clickable-area;\n\n\t\tbackground-position: #{$icon-margin} center;\n\t\tbackground-size: $icon-size;\n\t}\n\n\t// Forms & text inputs\n\t&__form {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tflex: 1 1 auto;\n\n\t\tmargin: $input-margin 0;\n\t\tpadding-right: $icon-margin;\n\t}\n\n\t&__container {\n\t\twidth: 100%;\n\t}\n\n\t&__input-container {\n\t\tdisplay: flex;\n\n\t\t.colorpicker {\n\t\t\t&__trigger,\n\t\t\t&__preview {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t&__preview {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 36px;\n\t\t\t\tborder-radius: var(--border-radius-large);\n\t\t\t\tborder: 2px solid var(--color-border-maxcontrast);\n\t\t\t\tbox-shadow: none !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__text-label {\n\t\tpadding: 4px 0;\n\t\tdisplay: block;\n\n\t\t&--hidden {\n\t\t\tposition: absolute;\n\t\t\tleft: -10000px;\n\t\t\ttop: auto;\n\t\t\twidth: 1px;\n\t\t\theight: 1px;\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t&__datetimepicker {\n\t\twidth: 100%;\n\n\t\t:deep(.mx-input) {\n\t\t\tmargin: 0;\n\t\t}\n\t}\n\n\t&__multi {\n\t\twidth: 100%;\n\t}\n}\n\n// if a form is the last of the list\n// add the same bottomMargin as the right padding\n// for visual balance\nli:last-child > .action-input {\n\tpadding-bottom: $icon-margin - $input-margin;\n}\n\n// same for first item\nli:first-child > .action-input:not(.action-input--visible-label) {\n\tpadding-top: $icon-margin - $input-margin;\n}\n\n</style>\n"],"names":["_sfc_main","NcDateTimePicker","NcDateTimePickerNative","NcPasswordField","NcSelect","NcTextField","ActionGlobalMixin","GenRandomId","id","type","t","event"],"mappings":";;;AAmRA,MAAAA,IAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA,kBAAAC;AAAAA,IACA,wBAAAC;AAAAA,IACA,iBAAAC,EAAA;AAAA,IACA,UAAAC,EAAA;AAAA,IACA,aAAAC,EAAA;AAAA,EACA;AAAA,EAEA,QAAA,CAAAC,EAAAA,i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