@nextcloud/vue 9.0.0-rc.9 → 9.0.1
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 +26 -2
- package/dist/assets/{NcActions-9-KEdXq2.css → NcActions-Bqx-6r2h.css} +11 -11
- package/dist/assets/{NcAppContent-BC1UrvXW.css → NcAppContent-w2GK951A.css} +19 -19
- package/dist/assets/{NcAppSettingsDialog-CW1IxPWr.css → NcAppSettingsDialog-Csh7L4r1.css} +10 -10
- package/dist/assets/{NcAppSettingsSection-C4JF60e-.css → NcAppSettingsSection-qx2jbXXG.css} +3 -3
- package/dist/assets/{NcAvatar-CqZ-kryM.css → NcAvatar-CtFA4-sC.css} +24 -24
- package/dist/assets/{NcColorPicker-BUxqqYfq.css → NcColorPicker-DtGrgPdj.css} +42 -33
- package/dist/assets/{NcRadioGroupButton-B1hPj4B8.css → NcRadioGroupButton-6mf16D0h.css} +16 -15
- package/dist/assets/{referencePickerModal-B9tq1n_R.css → referencePickerModal-B4dORP5P.css} +17 -17
- package/dist/chunks/{NcActionButton-D8JTFCmI.mjs → NcActionButton-BAaRMesp.mjs} +2 -2
- package/dist/chunks/{NcActionButton-D8JTFCmI.mjs.map → NcActionButton-BAaRMesp.mjs.map} +1 -1
- package/dist/chunks/{NcActionButtonGroup-4-oVar5v.mjs → NcActionButtonGroup-CMnSKp08.mjs} +2 -2
- package/dist/chunks/{NcActionButtonGroup-4-oVar5v.mjs.map → NcActionButtonGroup-CMnSKp08.mjs.map} +1 -1
- package/dist/chunks/{NcActionInput-VRjeb_HB.mjs → NcActionInput-_ccoTcPV.mjs} +5 -5
- package/dist/chunks/{NcActionInput-VRjeb_HB.mjs.map → NcActionInput-_ccoTcPV.mjs.map} +1 -1
- package/dist/chunks/{NcActionTextEditable-DT1X0o3v.mjs → NcActionTextEditable-CzI0V4-P.mjs} +2 -2
- package/dist/chunks/{NcActionTextEditable-DT1X0o3v.mjs.map → NcActionTextEditable-CzI0V4-P.mjs.map} +1 -1
- package/dist/chunks/{NcActions-B1Zg0lCE.mjs → NcActions-Ccr8kkyh.mjs} +6 -6
- package/dist/chunks/{NcActions-B1Zg0lCE.mjs.map → NcActions-Ccr8kkyh.mjs.map} +1 -1
- package/dist/chunks/{NcAppContent-C0PyJQuL.mjs → NcAppContent-CFhtQHrc.mjs} +14 -19
- package/dist/chunks/NcAppContent-CFhtQHrc.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigation-CFXc92ve.mjs → NcAppNavigation-CxnSGi06.mjs} +3 -3
- package/dist/chunks/{NcAppNavigation-CFXc92ve.mjs.map → NcAppNavigation-CxnSGi06.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-8IL1TQhc.mjs → NcAppNavigationCaption-C35kejgM.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationCaption-8IL1TQhc.mjs.map → NcAppNavigationCaption-C35kejgM.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-DQKh1kuI.mjs → NcAppNavigationItem-C08oNLGX.mjs} +5 -5
- package/dist/chunks/{NcAppNavigationItem-DQKh1kuI.mjs.map → NcAppNavigationItem-C08oNLGX.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-EiuAARhC.mjs → NcAppNavigationNewItem-BuL6tIOy.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationNewItem-EiuAARhC.mjs.map → NcAppNavigationNewItem-BuL6tIOy.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-4s_h51nG.mjs → NcAppNavigationSearch-CFXt-xr0.mjs} +3 -3
- package/dist/chunks/{NcAppNavigationSearch-4s_h51nG.mjs.map → NcAppNavigationSearch-CFXt-xr0.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-BZXKmqAD.mjs → NcAppNavigationSettings-DQ8Xle74.mjs} +3 -3
- package/dist/chunks/{NcAppNavigationSettings-BZXKmqAD.mjs.map → NcAppNavigationSettings-DQ8Xle74.mjs.map} +1 -1
- package/dist/chunks/NcAppSettingsDialog-CqoSAJb6.mjs +164 -0
- package/dist/chunks/NcAppSettingsDialog-CqoSAJb6.mjs.map +1 -0
- package/dist/chunks/{NcAppSettingsSection-tccU68DQ.mjs → NcAppSettingsSection-BNTUyNUo.mjs} +9 -4
- package/dist/chunks/NcAppSettingsSection-BNTUyNUo.mjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-CaRxsIi3.mjs → NcAppSidebar-CjQtPAhV.mjs} +4 -4
- package/dist/chunks/{NcAppSidebar-CaRxsIi3.mjs.map → NcAppSidebar-CjQtPAhV.mjs.map} +1 -1
- package/dist/chunks/{NcAssistantButton-V44xlwm5.mjs → NcAssistantButton-BdYyxDoX.mjs} +3 -3
- package/dist/chunks/{NcAssistantButton-V44xlwm5.mjs.map → NcAssistantButton-BdYyxDoX.mjs.map} +1 -1
- package/dist/chunks/{NcAssistantIcon-BQZQIt5W.mjs → NcAssistantIcon-ClJKOiGi.mjs} +2 -2
- package/dist/chunks/{NcAssistantIcon-BQZQIt5W.mjs.map → NcAssistantIcon-ClJKOiGi.mjs.map} +1 -1
- package/dist/chunks/{NcAvatar-Bdy7vKd8.mjs → NcAvatar-BkmHv-oY.mjs} +9 -9
- package/dist/chunks/{NcAvatar-Bdy7vKd8.mjs.map → NcAvatar-BkmHv-oY.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-DCs3D5xv.mjs → NcBreadcrumb-NKaosido.mjs} +2 -2
- package/dist/chunks/{NcBreadcrumb-DCs3D5xv.mjs.map → NcBreadcrumb-NKaosido.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-CG1-NUFL.mjs → NcBreadcrumbs-CYt9wRvh.mjs} +4 -4
- package/dist/chunks/{NcBreadcrumbs-CG1-NUFL.mjs.map → NcBreadcrumbs-CYt9wRvh.mjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-DdIGHhQz.mjs → NcCheckboxRadioSwitch-BWumYbec.mjs} +2 -2
- package/dist/chunks/{NcCheckboxRadioSwitch-DdIGHhQz.mjs.map → NcCheckboxRadioSwitch-BWumYbec.mjs.map} +1 -1
- package/dist/chunks/{NcChip-D_5q7NZO.mjs → NcChip-CoZcWPtf.mjs} +5 -5
- package/dist/chunks/{NcChip-D_5q7NZO.mjs.map → NcChip-CoZcWPtf.mjs.map} +1 -1
- package/dist/chunks/{NcCollectionList-kmngwwsK.mjs → NcCollectionList-DGNf9nD5.mjs} +7 -7
- package/dist/chunks/{NcCollectionList-kmngwwsK.mjs.map → NcCollectionList-DGNf9nD5.mjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-BA2HkCh_.mjs → NcColorPicker-Cs5tFS-S.mjs} +63 -34
- package/dist/chunks/NcColorPicker-Cs5tFS-S.mjs.map +1 -0
- package/dist/chunks/{NcContent-BPZeQ3Wr.mjs → NcContent-BhYN55Pl.mjs} +2 -2
- package/dist/chunks/{NcContent-BPZeQ3Wr.mjs.map → NcContent-BhYN55Pl.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-nMY8_RHq.mjs → NcDashboardWidget-CP-yuVVt.mjs} +5 -5
- package/dist/chunks/{NcDashboardWidget-nMY8_RHq.mjs.map → NcDashboardWidget-CP-yuVVt.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-qMv-p11B.mjs → NcDashboardWidgetItem-Hcj96Ghk.mjs} +4 -4
- package/dist/chunks/{NcDashboardWidgetItem-qMv-p11B.mjs.map → NcDashboardWidgetItem-Hcj96Ghk.mjs.map} +1 -1
- package/dist/chunks/{NcDateTimePicker-CCOph7f6.mjs → NcDateTimePicker-B5u2bt7M.mjs} +4 -4
- package/dist/chunks/{NcDateTimePicker-CCOph7f6.mjs.map → NcDateTimePicker-B5u2bt7M.mjs.map} +1 -1
- package/dist/chunks/{NcDateTimePickerNative-BS-cYf6V.mjs → NcDateTimePickerNative-MeggPJLT.mjs} +2 -2
- package/dist/chunks/{NcDateTimePickerNative-BS-cYf6V.mjs.map → NcDateTimePickerNative-MeggPJLT.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-7-cxNVxV.mjs → NcDialog-CmRabANI.mjs} +3 -3
- package/dist/chunks/{NcDialog-7-cxNVxV.mjs.map → NcDialog-CmRabANI.mjs.map} +1 -1
- package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-CUKZOcC7.mjs → NcDialogButton.vue_vue_type_script_setup_true_lang-DhkdaEaZ.mjs} +2 -2
- package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-CUKZOcC7.mjs.map → NcDialogButton.vue_vue_type_script_setup_true_lang-DhkdaEaZ.mjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-DT7vZdsR.mjs → NcEmojiPicker-DWI-aSaL.mjs} +7 -7
- package/dist/chunks/{NcEmojiPicker-DT7vZdsR.mjs.map → NcEmojiPicker-DWI-aSaL.mjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-D9l9GfP0.mjs → NcInputConfirmCancel-D3HznHAG.mjs} +2 -2
- package/dist/chunks/{NcInputConfirmCancel-D9l9GfP0.mjs.map → NcInputConfirmCancel-D3HznHAG.mjs.map} +1 -1
- package/dist/chunks/{NcInputField-D5lRaUiK.mjs → NcInputField-BYFjEj7Z.mjs} +2 -2
- package/dist/chunks/{NcInputField-D5lRaUiK.mjs.map → NcInputField-BYFjEj7Z.mjs.map} +1 -1
- package/dist/chunks/{NcKbd-kRS12jei.mjs → NcKbd-B3epGXRo.mjs} +2 -2
- package/dist/chunks/{NcKbd-kRS12jei.mjs.map → NcKbd-B3epGXRo.mjs.map} +1 -1
- package/dist/chunks/{NcListItem-BxxYYPjv.mjs → NcListItem-C6dI--9M.mjs} +2 -2
- package/dist/chunks/{NcListItem-BxxYYPjv.mjs.map → NcListItem-C6dI--9M.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-zxWWjgoO.mjs → NcListItemIcon-DJdMrwuH.mjs} +2 -2
- package/dist/chunks/{NcListItemIcon-zxWWjgoO.mjs.map → NcListItemIcon-DJdMrwuH.mjs.map} +1 -1
- package/dist/chunks/{NcModal-vyUsS1qu.mjs → NcModal-DLFgq7Qy.mjs} +5 -5
- package/dist/chunks/{NcModal-vyUsS1qu.mjs.map → NcModal-DLFgq7Qy.mjs.map} +1 -1
- package/dist/chunks/{NcNoteCard-glxPCBcu.mjs → NcNoteCard-BomepG0z.mjs} +2 -2
- package/dist/chunks/{NcNoteCard-glxPCBcu.mjs.map → NcNoteCard-BomepG0z.mjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-CbeEJLKt.mjs → NcPasswordField-CLv9QZOP.mjs} +4 -4
- package/dist/chunks/{NcPasswordField-CbeEJLKt.mjs.map → NcPasswordField-CLv9QZOP.mjs.map} +1 -1
- package/dist/chunks/{NcPopover-D8iSVK-p.mjs → NcPopover-C-MTaPCs.mjs} +12 -2
- package/dist/chunks/NcPopover-C-MTaPCs.mjs.map +1 -0
- package/dist/chunks/{NcRadioGroupButton-WXtnV-iL.mjs → NcRadioGroupButton-C4BDgB0X.mjs} +7 -7
- package/dist/chunks/NcRadioGroupButton-C4BDgB0X.mjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-BwCcw217.mjs → NcRelatedResourcesPanel-C044oJVp.mjs} +4 -4
- package/dist/chunks/{NcRelatedResourcesPanel-BwCcw217.mjs.map → NcRelatedResourcesPanel-C044oJVp.mjs.map} +1 -1
- package/dist/chunks/{NcRichContenteditable-ByDxlcix.mjs → NcRichContenteditable-9R0mziQM.mjs} +11 -11
- package/dist/chunks/{NcRichContenteditable-ByDxlcix.mjs.map → NcRichContenteditable-9R0mziQM.mjs.map} +1 -1
- package/dist/chunks/{NcRichText-jQc4sfgS.mjs → NcRichText-BkqS2HWy.mjs} +3 -3
- package/dist/chunks/{NcRichText-jQc4sfgS.mjs.map → NcRichText-BkqS2HWy.mjs.map} +1 -1
- package/dist/chunks/{NcSelect-D8ZEOizf.mjs → NcSelect-BN2tEhoU.mjs} +2 -2
- package/dist/chunks/{NcSelect-D8ZEOizf.mjs.map → NcSelect-BN2tEhoU.mjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-DrMDRnwZ.mjs → NcSelectTags-Ctd1Tqch.mjs} +3 -3
- package/dist/chunks/{NcSelectTags-DrMDRnwZ.mjs.map → NcSelectTags-Ctd1Tqch.mjs.map} +1 -1
- package/dist/chunks/{NcSelectUsers-DdT04dN1.mjs → NcSelectUsers-ChK3xM3c.mjs} +3 -3
- package/dist/chunks/{NcSelectUsers-DdT04dN1.mjs.map → NcSelectUsers-ChK3xM3c.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-Bp99Q74i.mjs → NcSettingsSection-Cnwb4E5s.mjs} +2 -2
- package/dist/chunks/{NcSettingsSection-Bp99Q74i.mjs.map → NcSettingsSection-Cnwb4E5s.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-BkPLZPNn.mjs → NcSettingsSelectGroup-MrKSvUll.mjs} +3 -3
- package/dist/chunks/{NcSettingsSelectGroup-BkPLZPNn.mjs.map → NcSettingsSelectGroup-MrKSvUll.mjs.map} +1 -1
- package/dist/chunks/{NcTextArea-DeoDvFwH.mjs → NcTextArea-f6VqBxce.mjs} +2 -2
- package/dist/chunks/{NcTextArea-DeoDvFwH.mjs.map → NcTextArea-f6VqBxce.mjs.map} +1 -1
- package/dist/chunks/{NcTextField.vue_vue_type_script_setup_true_lang-C7tMhmsN.mjs → NcTextField.vue_vue_type_script_setup_true_lang-Dl9AQfwW.mjs} +4 -4
- package/dist/chunks/{NcTextField.vue_vue_type_script_setup_true_lang-C7tMhmsN.mjs.map → NcTextField.vue_vue_type_script_setup_true_lang-Dl9AQfwW.mjs.map} +1 -1
- package/dist/chunks/NcTimezonePicker.vue_vue_type_script_setup_true_lang-BexVGMhR.mjs +66 -0
- package/dist/chunks/NcTimezonePicker.vue_vue_type_script_setup_true_lang-BexVGMhR.mjs.map +1 -0
- package/dist/chunks/{NcUserBubble-CklD5ttg.mjs → NcUserBubble-DfxVEEZg.mjs} +3 -3
- package/dist/chunks/{NcUserBubble-CklD5ttg.mjs.map → NcUserBubble-DfxVEEZg.mjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-DiX6zPGT.mjs → NcUserStatusIcon-GpeB4Zhc.mjs} +2 -2
- package/dist/chunks/{NcUserStatusIcon-DiX6zPGT.mjs.map → NcUserStatusIcon-GpeB4Zhc.mjs.map} +1 -1
- package/dist/chunks/{_l10n-CeXHJQB0.mjs → _l10n-BPfpECk_.mjs} +54 -58
- package/dist/chunks/_l10n-BPfpECk_.mjs.map +1 -0
- package/dist/chunks/autolink-U5pBzLgI.mjs.map +1 -1
- package/dist/chunks/{colors-BZi52VLk.mjs → colors-ZSK8bG_B.mjs} +15 -26
- package/dist/chunks/colors-ZSK8bG_B.mjs.map +1 -0
- package/dist/chunks/customPickerElements-4pQTZUnk.mjs.map +1 -1
- package/dist/chunks/{mdi-D_GPbmUY.mjs → mdi-Cjx8NyEs.mjs} +14 -12
- package/dist/chunks/{mdi-D_GPbmUY.mjs.map → mdi-Cjx8NyEs.mjs.map} +1 -1
- package/dist/chunks/{referencePickerModal-B2XHvg0V.mjs → referencePickerModal-BgBJRzaB.mjs} +157 -185
- package/dist/chunks/referencePickerModal-BgBJRzaB.mjs.map +1 -0
- package/dist/chunks/useAppSettingsDialog-Dn48dw1k.mjs +10 -0
- package/dist/chunks/useAppSettingsDialog-Dn48dw1k.mjs.map +1 -0
- package/dist/components/NcActionButton/index.mjs +1 -1
- package/dist/components/NcActionButtonGroup/index.mjs +1 -1
- package/dist/components/NcActionInput/NcActionInput.vue.d.ts +18 -15
- package/dist/components/NcActionInput/index.mjs +1 -1
- package/dist/components/NcActionTextEditable/index.mjs +1 -1
- package/dist/components/NcActions/index.mjs +1 -1
- package/dist/components/NcAppContent/NcAppContent.vue.d.ts +0 -3
- package/dist/components/NcAppContent/index.mjs +1 -1
- package/dist/components/NcAppNavigation/index.mjs +1 -1
- package/dist/components/NcAppNavigationCaption/index.mjs +1 -1
- package/dist/components/NcAppNavigationItem/index.mjs +1 -1
- package/dist/components/NcAppNavigationNewItem/index.mjs +1 -1
- package/dist/components/NcAppNavigationSearch/index.mjs +1 -1
- package/dist/components/NcAppNavigationSettings/index.mjs +1 -1
- package/dist/components/NcAppSettingsDialog/NcAppSettingsDialog.vue.d.ts +46 -333
- package/dist/components/NcAppSettingsDialog/index.d.ts +4 -0
- package/dist/components/NcAppSettingsDialog/index.mjs +1 -1
- package/dist/components/NcAppSettingsDialog/useAppSettingsDialog.d.ts +24 -0
- package/dist/components/NcAppSettingsSection/NcAppSettingsSection.vue.d.ts +4 -1
- package/dist/components/NcAppSettingsSection/index.mjs +1 -1
- package/dist/components/NcAppSidebar/index.mjs +1 -1
- package/dist/components/NcAssistantButton/index.mjs +1 -1
- package/dist/components/NcAssistantIcon/index.mjs +1 -1
- package/dist/components/NcAvatar/index.mjs +1 -1
- package/dist/components/NcBreadcrumb/index.mjs +1 -1
- package/dist/components/NcBreadcrumbs/index.mjs +1 -1
- package/dist/components/NcCheckboxRadioSwitch/index.mjs +1 -1
- package/dist/components/NcChip/index.mjs +1 -1
- package/dist/components/NcCollectionList/index.mjs +1 -1
- package/dist/components/NcColorPicker/NcColorPicker.vue.d.ts +10 -5
- package/dist/components/NcColorPicker/index.mjs +1 -1
- package/dist/components/NcContent/index.mjs +1 -1
- package/dist/components/NcDashboardWidget/index.mjs +1 -1
- package/dist/components/NcDashboardWidgetItem/index.mjs +1 -1
- package/dist/components/NcDateTimePicker/NcDateTimePicker.vue.d.ts +2 -2
- package/dist/components/NcDateTimePicker/index.mjs +1 -1
- package/dist/components/NcDateTimePickerNative/index.mjs +1 -1
- package/dist/components/NcDialog/index.mjs +1 -1
- package/dist/components/NcDialogButton/index.mjs +1 -1
- package/dist/components/NcEmojiPicker/NcEmojiPicker.vue.d.ts +16 -13
- package/dist/components/NcEmojiPicker/index.mjs +1 -1
- package/dist/components/NcInputField/index.mjs +1 -1
- package/dist/components/NcKbd/index.mjs +1 -1
- package/dist/components/NcListItem/index.mjs +1 -1
- package/dist/components/NcListItemIcon/index.mjs +1 -1
- package/dist/components/NcModal/index.mjs +1 -1
- package/dist/components/NcNoteCard/index.mjs +1 -1
- package/dist/components/NcPasswordField/index.mjs +1 -1
- package/dist/components/NcPopover/index.mjs +1 -1
- package/dist/components/NcRadioGroupButton/index.mjs +1 -1
- package/dist/components/NcRelatedResourcesPanel/index.mjs +1 -1
- package/dist/components/NcRichContenteditable/index.mjs +1 -1
- package/dist/components/NcRichText/NcReferenceList.vue.d.ts +14 -185
- package/dist/components/NcRichText/NcReferencePicker/NcRawLinkInput.vue.d.ts +13 -184
- package/dist/components/NcRichText/NcReferencePicker/NcReferencePicker.vue.d.ts +13 -184
- package/dist/components/NcRichText/NcReferencePicker/NcReferencePickerModal.vue.d.ts +13 -184
- package/dist/components/NcRichText/NcReferenceWidget.vue.d.ts +20 -184
- package/dist/components/NcRichText/NcRichText.vue.d.ts +14 -185
- package/dist/components/NcRichText/autolink.d.ts +1 -1
- package/dist/components/NcRichText/index.mjs +3 -3
- package/dist/components/NcSelect/index.mjs +1 -1
- package/dist/components/NcSelectTags/index.mjs +1 -1
- package/dist/components/NcSelectUsers/index.mjs +1 -1
- package/dist/components/NcSettingsSection/index.mjs +1 -1
- package/dist/components/NcSettingsSelectGroup/index.mjs +1 -1
- package/dist/components/NcTextArea/index.mjs +1 -1
- package/dist/components/NcTextField/index.mjs +1 -1
- package/dist/components/NcTimezonePicker/NcTimezonePicker.vue.d.ts +14 -1
- package/dist/components/NcTimezonePicker/index.mjs +1 -1
- package/dist/components/NcTimezonePicker/timezoneUtils.d.ts +8 -0
- package/dist/components/NcUserBubble/index.mjs +1 -1
- package/dist/components/NcUserStatusIcon/index.mjs +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/composables/useFormatDateTime/index.mjs +1 -1
- package/dist/composables/useHotKey/index.d.ts +4 -2
- package/dist/composables/useHotKey/index.mjs.map +1 -1
- package/dist/functions/reference/index.mjs +1 -1
- package/dist/functions/reference/widgets.d.ts +14 -2
- package/dist/functions/usernameToColor/index.mjs +1 -1
- package/dist/index.mjs +56 -56
- package/dist/utils/colors.d.ts +2 -0
- package/package.json +15 -16
- package/dist/chunks/NcAppContent-C0PyJQuL.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsDialog-GHmlZjop.mjs +0 -261
- package/dist/chunks/NcAppSettingsDialog-GHmlZjop.mjs.map +0 -1
- package/dist/chunks/NcAppSettingsSection-tccU68DQ.mjs.map +0 -1
- package/dist/chunks/NcColorPicker-BA2HkCh_.mjs.map +0 -1
- package/dist/chunks/NcPopover-D8iSVK-p.mjs.map +0 -1
- package/dist/chunks/NcRadioGroupButton-WXtnV-iL.mjs.map +0 -1
- package/dist/chunks/NcTimezonePicker.vue_vue_type_script_setup_true_lang-DcUR0zAy.mjs +0 -98
- package/dist/chunks/NcTimezonePicker.vue_vue_type_script_setup_true_lang-DcUR0zAy.mjs.map +0 -1
- package/dist/chunks/_l10n-CeXHJQB0.mjs.map +0 -1
- package/dist/chunks/colors-BZi52VLk.mjs.map +0 -1
- package/dist/chunks/referencePickerModal-B2XHvg0V.mjs.map +0 -1
- package/dist/components/NcTimezonePicker/timezoneDataProviderService.d.ts +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_l10n-BPfpECk_.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autolink-U5pBzLgI.mjs","sources":["../../src/components/NcRichText/helpers.ts","../../src/components/NcRichText/autolink.ts"],"sourcesContent":["/*!\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { Literal } from 'unist'\n\n/**\n * Unist literal node with string value like code blocks or text nodes\n */\nexport interface TextNode extends Literal {\n\tvalue: string\n}\n\n/**\n * Regex pattern to match links to be resolved by the link-reference provider\n */\nexport const URL_PATTERN = /(\\s|^)(https?:\\/\\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig\n\n/**\n * Regex pattern to identify strings as links and then making them clickable\n */\nexport const URL_PATTERN_AUTOLINK = /(\\s|\\(|^)((https?:\\/\\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig\n","/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { Router } from 'vue-router'\n\nimport { getBaseUrl, getRootUrl } from '@nextcloud/router'\nimport { u } from 'unist-builder'\nimport { SKIP, visit } from 'unist-util-visit'\nimport { defineComponent, h } from 'vue'\nimport logger from '../../utils/logger.ts'\nimport { URL_PATTERN_AUTOLINK } from './helpers.js'\n\nconst NcLink = defineComponent({\n\tname: 'NcLink',\n\tprops: {\n\t\thref: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\trender() {\n\t\treturn h('a', {\n\t\t\thref: this.href,\n\t\t\trel: 'noopener noreferrer',\n\t\t\ttarget: '_blank',\n\t\t\tclass: 'rich-text--external-link',\n\t\t}, [this.href.trim()])\n\t},\n})\n\n/**\n *\n * @param root0\n * @param root0.autolink\n * @param root0.useMarkdown\n * @param root0.useExtendedMarkdown\n */\nexport function remarkAutolink({ autolink, useMarkdown, useExtendedMarkdown }) {\n\treturn function(tree) {\n\t\t// remark-gfm has its own autolink parser which can not be disabled\n\t\t// and thus a local one is not needed\n\t\tif (useExtendedMarkdown || !useMarkdown || !autolink) {\n\t\t\treturn\n\t\t}\n\n\t\tvisit(tree, (node) => node.type === 'text', (node, index, parent) => {\n\t\t\tlet parsed = parseUrl(node.value)\n\t\t\tif (typeof parsed === 'string') {\n\t\t\t\tparsed = [u('text', parsed)]\n\t\t\t} else {\n\t\t\t\tparsed = parsed\n\t\t\t\t\t.map((n) => {\n\t\t\t\t\t\tif (typeof n === 'string') {\n\t\t\t\t\t\t\treturn u('text', n)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn u('link', {\n\t\t\t\t\t\t\turl: n.props.href,\n\t\t\t\t\t\t}, [u('text', n.props.href)])\n\t\t\t\t\t})\n\t\t\t\t\t.filter((x) => x)\n\t\t\t\t\t.flat()\n\t\t\t}\n\n\t\t\tparent.children.splice(index, 1, ...parsed)\n\t\t\treturn [SKIP, (index ?? 0) + parsed.length]\n\t\t})\n\t}\n}\n\n/**\n *\n * @param text\n */\nexport function parseUrl(text: string) {\n\tlet match = URL_PATTERN_AUTOLINK.exec(text)\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tconst list: (string | Record<string, any>)[] = []\n\tlet start = 0\n\twhile (match !== null) {\n\t\tlet href = match[2]!\n\t\tlet textAfter\n\t\tlet textBefore = text.substring(start, match.index + match[1]!.length)\n\t\tif (href[0] === ' ') {\n\t\t\ttextBefore += href[0]\n\t\t\thref = href.substring(1).trim()\n\t\t}\n\t\tconst lastChar = href[(href.length - 1)]\n\t\tif (lastChar === '.' || lastChar === ',' || lastChar === ';' || (match[0][0] === '(' && lastChar === ')')) {\n\t\t\thref = href.substring(0, href.length - 1)\n\t\t\ttextAfter = lastChar\n\t\t}\n\t\tlist.push(textBefore)\n\t\tlist.push({ component: NcLink, props: { href } })\n\t\tif (textAfter) {\n\t\t\tlist.push(textAfter)\n\t\t}\n\t\tstart = match.index + match[0].length\n\t\tmatch = URL_PATTERN_AUTOLINK.exec(text)\n\t}\n\tlist.push(text.substring(start))\n\tconst joinedText = list.map((item) => typeof item === 'string' ? item : item.props.href).join('')\n\tif (text === joinedText) {\n\t\treturn list\n\t}\n\tlogger.error('[NcRichText] Failed to reassemble the chunked text: ' + text)\n\treturn text\n}\n\n/**\n * Try to get path for router link from an absolute or relative URL.\n *\n * @param router - VueRouter instance of the router link\n * @param url - absolute URL to parse\n * @return a path that can be used in the router link or null if this URL doesn't match this router config\n * @example http://cloud.ltd/nextcloud/index.php/apps/files/favorites?fileid=2#fragment => /files/favorites?fileid=2#fragment\n */\nexport function getRoute(router: Router, url: string): string | null {\n\t/**\n\t * http://cloud.ltd /nextcloud /index.php /apps/files /favorites?fileid=2#fragment\n\t * |_____origin____|___________router-base____________| |\n\t * |__________base____________| |______________relative-url______________|\n\t * | |___root___|_optional_|__app-base__|_________router-path_______|\n\t */\n\n\tconst removePrefix = (str, prefix) => str.startsWith(prefix) ? str.slice(prefix.length) : str\n\tconst removePrefixes = (str, ...prefixes) => prefixes.reduce((acc, prefix) => removePrefix(acc, prefix), str)\n\n\t// Router is not defined in the app => not an app route\n\tif (!router) {\n\t\treturn null\n\t}\n\n\tconst isAbsoluteURL = /^https?:\\/\\//.test(url)\n\n\t// URL is a \"mailto:\", \"tel:\" or any custom app protocol link\n\tconst isNonHttpLink = /^[a-z][a-z0-9+.-]*:.+/.test(url)\n\tif (!isAbsoluteURL && isNonHttpLink) {\n\t\treturn null\n\t}\n\n\t// URL is not a link to this Nextcloud server instance => not an app route\n\tif (isAbsoluteURL && !url.startsWith(getBaseUrl())) {\n\t\treturn null\n\t}\n\n\tif (!isAbsoluteURL && !url.startsWith('/')) {\n\t\t// Relative URL without a leading slash are not allowed\n\t\t// VueRouter handles such urls according to the URL RFC,\n\t\t// for example, being on /call/abc page, link \"def\" is resolved as \"/call/def\" relative to \"/call/\".\n\t\t// We don't want to support such links,\n\t\t// so relative URL MUST start with a slash.\n\t\treturn null\n\t}\n\n\t// URL relative to the instance root\n\tconst relativeUrl = isAbsoluteURL ? removePrefixes(url, getBaseUrl(), '/index.php') : url\n\n\t// Router base relative to the instance root (app-base above)\n\tconst relativeRouterBase = removePrefixes(router.options.history.base, getRootUrl(), '/index.php')\n\n\t// Root route may have an empty '' path, fallback to '/'\n\tconst potentialRouterPath = removePrefixes(relativeUrl, relativeRouterBase) || '/'\n\n\t// Check if there is actually matching route in the router for this path\n\tconst route = router.resolve(potentialRouterPath)\n\n\tif (!route.matched.length) {\n\t\treturn null\n\t}\n\n\treturn route.fullPath\n}\n"],"names":[],"mappings":";;;;;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,cAAc;AAKpB,MAAM,uBAAuB;ACRpC,MAAM,SAAS,gBAAgB;AAAA,EAC9B,MAAM;AAAA,EACN,OAAO;AAAA,IACN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IAAA;AAAA,EACX;AAAA,EAED,SAAS;AACR,WAAO,EAAE,KAAK;AAAA,MACb,MAAM,KAAK;AAAA,MACX,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,OAAO;AAAA,IAAA,GACL,CAAC,KAAK,KAAK,KAAA,CAAM,CAAC;AAAA,EACtB;AACD,CAAC;AASM,SAAS,eAAe,EAAE,UAAU,aAAa,uBAAuB;AAC9E,SAAO,SAAS,MAAM;AAGrB,QAAI,uBAAuB,CAAC,eAAe,CAAC,UAAU;AACrD;AAAA,IACD;AAEA,UAAM,MAAM,CAAC,SAAS,KAAK,SAAS,QAAQ,CAAC,MAAM,OAAO,WAAW;AACpE,UAAI,SAAS,SAAS,KAAK,KAAK;AAChC,UAAI,OAAO,WAAW,UAAU;AAC/B,iBAAS,CAAC,EAAE,QAAQ,MAAM,CAAC;AAAA,MAC5B,OAAO;AACN,iBAAS,OACP,IAAI,CAAC,MAAM;AACX,cAAI,OAAO,MAAM,UAAU;AAC1B,mBAAO,EAAE,QAAQ,CAAC;AAAA,UACnB;AAEA,iBAAO,EAAE,QAAQ;AAAA,YAChB,KAAK,EAAE,MAAM;AAAA,UAAA,GACX,CAAC,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC,CAAC;AAAA,QAC7B,CAAC,EACA,OAAO,CAAC,MAAM,CAAC,EACf,KAAA;AAA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olink-U5pBzLgI.mjs","sources":["../../src/components/NcRichText/helpers.ts","../../src/components/NcRichText/autolink.ts"],"sourcesContent":["/*!\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { Literal } from 'unist'\n\n/**\n * Unist literal node with string value like code blocks or text nodes\n */\nexport interface TextNode extends Literal {\n\tvalue: string\n}\n\n/**\n * Regex pattern to match links to be resolved by the link-reference provider\n */\nexport const URL_PATTERN = /(\\s|^)(https?:\\/\\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig\n\n/**\n * Regex pattern to identify strings as links and then making them clickable\n */\nexport const URL_PATTERN_AUTOLINK = /(\\s|\\(|^)((https?:\\/\\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig\n","/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { Router } from 'vue-router'\n\nimport { getBaseUrl, getRootUrl } from '@nextcloud/router'\nimport { u } from 'unist-builder'\nimport { SKIP, visit } from 'unist-util-visit'\nimport { defineComponent, h } from 'vue'\nimport logger from '../../utils/logger.ts'\nimport { URL_PATTERN_AUTOLINK } from './helpers.js'\n\nconst NcLink = defineComponent({\n\tname: 'NcLink',\n\tprops: {\n\t\thref: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\trender() {\n\t\treturn h('a', {\n\t\t\thref: this.href,\n\t\t\trel: 'noopener noreferrer',\n\t\t\ttarget: '_blank',\n\t\t\tclass: 'rich-text--external-link',\n\t\t}, [this.href.trim()])\n\t},\n})\n\n/**\n *\n * @param root0\n * @param root0.autolink\n * @param root0.useMarkdown\n * @param root0.useExtendedMarkdown\n */\nexport function remarkAutolink({ autolink, useMarkdown, useExtendedMarkdown }) {\n\treturn function(tree) {\n\t\t// remark-gfm has its own autolink parser which can not be disabled\n\t\t// and thus a local one is not needed\n\t\tif (useExtendedMarkdown || !useMarkdown || !autolink) {\n\t\t\treturn\n\t\t}\n\n\t\tvisit(tree, (node) => node.type === 'text', (node, index, parent) => {\n\t\t\tlet parsed = parseUrl(node.value)\n\t\t\tif (typeof parsed === 'string') {\n\t\t\t\tparsed = [u('text', parsed)]\n\t\t\t} else {\n\t\t\t\tparsed = parsed\n\t\t\t\t\t.map((n) => {\n\t\t\t\t\t\tif (typeof n === 'string') {\n\t\t\t\t\t\t\treturn u('text', n)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn u('link', {\n\t\t\t\t\t\t\turl: n.props.href,\n\t\t\t\t\t\t}, [u('text', n.props.href)])\n\t\t\t\t\t})\n\t\t\t\t\t.filter((x) => x)\n\t\t\t\t\t.flat()\n\t\t\t}\n\n\t\t\tparent.children.splice(index, 1, ...parsed)\n\t\t\treturn [SKIP, (index ?? 0) + parsed.length]\n\t\t})\n\t}\n}\n\n/**\n *\n * @param text\n */\nexport function parseUrl(text: string) {\n\tlet match = URL_PATTERN_AUTOLINK.exec(text)\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tconst list: (string | Record<string, any>)[] = []\n\tlet start = 0\n\twhile (match !== null) {\n\t\tlet href = match[2]!\n\t\tlet textAfter\n\t\tlet textBefore = text.substring(start, match.index + match[1]!.length)\n\t\tif (href[0] === ' ') {\n\t\t\ttextBefore += href[0]\n\t\t\thref = href.substring(1).trim()\n\t\t}\n\t\tconst lastChar = href[(href.length - 1)]\n\t\tif (lastChar === '.' || lastChar === ',' || lastChar === ';' || (match[0][0] === '(' && lastChar === ')')) {\n\t\t\thref = href.substring(0, href.length - 1)\n\t\t\ttextAfter = lastChar\n\t\t}\n\t\tlist.push(textBefore)\n\t\tlist.push({ component: NcLink, props: { href } })\n\t\tif (textAfter) {\n\t\t\tlist.push(textAfter)\n\t\t}\n\t\tstart = match.index + match[0].length\n\t\tmatch = URL_PATTERN_AUTOLINK.exec(text)\n\t}\n\tlist.push(text.substring(start))\n\tconst joinedText = list.map((item) => typeof item === 'string' ? item : item.props.href).join('')\n\tif (text === joinedText) {\n\t\treturn list\n\t}\n\tlogger.error('[NcRichText] Failed to reassemble the chunked text: ' + text)\n\treturn text\n}\n\n/**\n * Try to get path for router link from an absolute or relative URL.\n *\n * @param router - VueRouter instance of the router link\n * @param url - absolute URL to parse\n * @return a path that can be used in the router link or null if this URL doesn't match this router config\n * @example http://cloud.ltd/nextcloud/index.php/apps/files/favorites?fileid=2#fragment => /files/favorites?fileid=2#fragment\n */\nexport function getRoute(router: Router | null, url: string): string | null {\n\t/**\n\t * http://cloud.ltd /nextcloud /index.php /apps/files /favorites?fileid=2#fragment\n\t * |_____origin____|___________router-base____________| |\n\t * |__________base____________| |______________relative-url______________|\n\t * | |___root___|_optional_|__app-base__|_________router-path_______|\n\t */\n\n\tconst removePrefix = (str, prefix) => str.startsWith(prefix) ? str.slice(prefix.length) : str\n\tconst removePrefixes = (str, ...prefixes) => prefixes.reduce((acc, prefix) => removePrefix(acc, prefix), str)\n\n\t// Router is not defined in the app => not an app route\n\tif (!router) {\n\t\treturn null\n\t}\n\n\tconst isAbsoluteURL = /^https?:\\/\\//.test(url)\n\n\t// URL is a \"mailto:\", \"tel:\" or any custom app protocol link\n\tconst isNonHttpLink = /^[a-z][a-z0-9+.-]*:.+/.test(url)\n\tif (!isAbsoluteURL && isNonHttpLink) {\n\t\treturn null\n\t}\n\n\t// URL is not a link to this Nextcloud server instance => not an app route\n\tif (isAbsoluteURL && !url.startsWith(getBaseUrl())) {\n\t\treturn null\n\t}\n\n\tif (!isAbsoluteURL && !url.startsWith('/')) {\n\t\t// Relative URL without a leading slash are not allowed\n\t\t// VueRouter handles such urls according to the URL RFC,\n\t\t// for example, being on /call/abc page, link \"def\" is resolved as \"/call/def\" relative to \"/call/\".\n\t\t// We don't want to support such links,\n\t\t// so relative URL MUST start with a slash.\n\t\treturn null\n\t}\n\n\t// URL relative to the instance root\n\tconst relativeUrl = isAbsoluteURL ? removePrefixes(url, getBaseUrl(), '/index.php') : url\n\n\t// Router base relative to the instance root (app-base above)\n\tconst relativeRouterBase = removePrefixes(router.options.history.base, getRootUrl(), '/index.php')\n\n\t// Root route may have an empty '' path, fallback to '/'\n\tconst potentialRouterPath = removePrefixes(relativeUrl, relativeRouterBase) || '/'\n\n\t// Check if there is actually matching route in the router for this path\n\tconst route = router.resolve(potentialRouterPath)\n\n\tif (!route.matched.length) {\n\t\treturn null\n\t}\n\n\treturn route.fullPath\n}\n"],"names":[],"mappings":";;;;;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,cAAc;AAKpB,MAAM,uBAAuB;ACRpC,MAAM,SAAS,gBAAgB;AAAA,EAC9B,MAAM;AAAA,EACN,OAAO;AAAA,IACN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IAAA;AAAA,EACX;AAAA,EAED,SAAS;AACR,WAAO,EAAE,KAAK;AAAA,MACb,MAAM,KAAK;AAAA,MACX,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,OAAO;AAAA,IAAA,GACL,CAAC,KAAK,KAAK,KAAA,CAAM,CAAC;AAAA,EACtB;AACD,CAAC;AASM,SAAS,eAAe,EAAE,UAAU,aAAa,uBAAuB;AAC9E,SAAO,SAAS,MAAM;AAGrB,QAAI,uBAAuB,CAAC,eAAe,CAAC,UAAU;AACrD;AAAA,IACD;AAEA,UAAM,MAAM,CAAC,SAAS,KAAK,SAAS,QAAQ,CAAC,MAAM,OAAO,WAAW;AACpE,UAAI,SAAS,SAAS,KAAK,KAAK;AAChC,UAAI,OAAO,WAAW,UAAU;AAC/B,iBAAS,CAAC,EAAE,QAAQ,MAAM,CAAC;AAAA,MAC5B,OAAO;AACN,iBAAS,OACP,IAAI,CAAC,MAAM;AACX,cAAI,OAAO,MAAM,UAAU;AAC1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
4
4
|
/**
|
|
@@ -44,14 +44,14 @@ function mixPalette(steps, color1, color2) {
|
|
|
44
44
|
}
|
|
45
45
|
return palette;
|
|
46
46
|
}
|
|
47
|
+
const COLOR_RED = new Color(182, 70, 157, t("Purple"));
|
|
48
|
+
const COLOR_YELLOW = new Color(221, 203, 85, t("Gold"));
|
|
49
|
+
const COLOR_BLUE = new Color(0, 130, 201, t("Nextcloud blue"));
|
|
50
|
+
const COLOR_BLACK = new Color(0, 0, 0, t("Black"));
|
|
51
|
+
const COLOR_WHITE = new Color(255, 255, 255, t("White"));
|
|
47
52
|
const defaultPalette = [
|
|
48
53
|
/* eslint-disable @stylistic/function-call-argument-newline -- Allow to put translators comments */
|
|
49
|
-
|
|
50
|
-
182,
|
|
51
|
-
70,
|
|
52
|
-
157,
|
|
53
|
-
t("Purple")
|
|
54
|
-
),
|
|
54
|
+
COLOR_RED,
|
|
55
55
|
new Color(
|
|
56
56
|
191,
|
|
57
57
|
103,
|
|
@@ -73,12 +73,7 @@ const defaultPalette = [
|
|
|
73
73
|
t("Whiskey")
|
|
74
74
|
// TRANSLATORS: A color name for RGB(211, 169, 103)
|
|
75
75
|
),
|
|
76
|
-
|
|
77
|
-
221,
|
|
78
|
-
203,
|
|
79
|
-
85,
|
|
80
|
-
t("Gold")
|
|
81
|
-
),
|
|
76
|
+
COLOR_YELLOW,
|
|
82
77
|
new Color(
|
|
83
78
|
165,
|
|
84
79
|
184,
|
|
@@ -100,12 +95,7 @@ const defaultPalette = [
|
|
|
100
95
|
t("Boston Blue")
|
|
101
96
|
// TRANSLATORS: A color name for RGB(55, 148, 172)
|
|
102
97
|
),
|
|
103
|
-
|
|
104
|
-
0,
|
|
105
|
-
130,
|
|
106
|
-
201,
|
|
107
|
-
t("Nextcloud blue")
|
|
108
|
-
),
|
|
98
|
+
COLOR_BLUE,
|
|
109
99
|
new Color(
|
|
110
100
|
45,
|
|
111
101
|
115,
|
|
@@ -130,17 +120,16 @@ const defaultPalette = [
|
|
|
130
120
|
/* eslint-enable @stylistic/function-call-argument-newline */
|
|
131
121
|
];
|
|
132
122
|
function generatePalette(steps) {
|
|
133
|
-
const
|
|
134
|
-
const
|
|
135
|
-
const
|
|
136
|
-
const palette1 = mixPalette(steps, red, yellow);
|
|
137
|
-
const palette2 = mixPalette(steps, yellow, blue);
|
|
138
|
-
const palette3 = mixPalette(steps, blue, red);
|
|
123
|
+
const palette1 = mixPalette(steps, COLOR_RED, COLOR_YELLOW);
|
|
124
|
+
const palette2 = mixPalette(steps, COLOR_YELLOW, COLOR_BLUE);
|
|
125
|
+
const palette3 = mixPalette(steps, COLOR_BLUE, COLOR_RED);
|
|
139
126
|
return palette1.concat(palette2).concat(palette3);
|
|
140
127
|
}
|
|
141
128
|
export {
|
|
142
129
|
Color as C,
|
|
130
|
+
COLOR_BLACK as a,
|
|
131
|
+
COLOR_WHITE as b,
|
|
143
132
|
defaultPalette as d,
|
|
144
133
|
generatePalette as g
|
|
145
134
|
};
|
|
146
|
-
//# sourceMappingURL=colors-
|
|
135
|
+
//# sourceMappingURL=colors-ZSK8bG_B.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors-ZSK8bG_B.mjs","sources":["../../src/utils/colors.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { t } from '../l10n.ts'\n\nexport class Color {\n\t/**\n\t * @param r - The red value\n\t * @param g - The green value\n\t * @param b - The blue value\n\t * @param name - The name of the color\n\t */\n\tconstructor(\n\t\tpublic readonly r: number,\n\t\tpublic readonly g: number,\n\t\tpublic readonly b: number,\n\t\tpublic readonly name?: string,\n\t) {\n\t\tthis.r = Math.min(r, 255)\n\t\tthis.g = Math.min(g, 255)\n\t\tthis.b = Math.min(b, 255)\n\t\tthis.name = name\n\t}\n\n\t/**\n\t * The hexadecimal color string.\n\t */\n\tget color(): string {\n\t\tconst toHex = (int: number) => `00${int.toString(16)}`.slice(-2)\n\t\treturn `#${toHex(this.r)}${toHex(this.g)}${toHex(this.b)}`\n\t}\n}\n\n/**\n * Calculate the increment needed to blend color1 into color2 within specified number of steps.\n *\n * @param steps - The number of steps\n * @param color1 - The color to start with\n * @param color2 - The color to end at\n * @return The increment needed per color channel\n */\nfunction calculateStepIncrement(steps: number, color1: Color, color2: Color): { r: number, g: number, b: number } {\n\treturn {\n\t\tr: (color2.r - color1.r) / steps,\n\t\tg: (color2.g - color1.g) / steps,\n\t\tb: (color2.b - color1.b) / steps,\n\t}\n}\n\n/**\n * Create a color palette from two colors\n *\n * @param steps - The number of steps the palette should have\n * @param color1 - The first color to mix\n * @param color2 - The second color to mix\n * @return The created palette array (mixed `color1` and `color2` with `steps` steps)\n */\nfunction mixPalette(steps: number, color1: Color, color2: Color): Color[] {\n\tconst palette: Color[] = []\n\tpalette.push(color1)\n\tconst increment = calculateStepIncrement(steps, color1, color2)\n\tfor (let i = 1; i < steps; i++) {\n\t\tconst r = Math.floor(color1.r + increment.r * i)\n\t\tconst g = Math.floor(color1.g + increment.g * i)\n\t\tconst b = Math.floor(color1.b + increment.b * i)\n\t\tpalette.push(new Color(r, g, b))\n\t}\n\treturn palette\n}\n\n// This are our default base colors we use for mixing palettes\nconst COLOR_RED = new Color(182, 70, 157, t('Purple'))\nconst COLOR_YELLOW = new Color(221, 203, 85, t('Gold'))\nconst COLOR_BLUE = new Color(0, 130, 201, t('Nextcloud blue'))\n// Special \"none\"-colors\nexport const COLOR_BLACK = new Color(0, 0, 0, t('Black'))\nexport const COLOR_WHITE = new Color(255, 255, 255, t('White'))\n\n/**\n * Like GenColor(4) but with labels\n */\nexport const defaultPalette = [\n\t/* eslint-disable @stylistic/function-call-argument-newline -- Allow to put translators comments */\n\tCOLOR_RED,\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\tCOLOR_YELLOW,\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\tCOLOR_BLUE,\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\t/* eslint-enable @stylistic/function-call-argument-newline */\n]\n\n/**\n * Generate colors from the official nextcloud color\n * You can provide how many colors you want (multiplied by 3).\n *\n * For example if steps is set to 6, then 3 colors * 6 will result in 18 generated colors.\n *\n * @param steps - Number of steps to go from a color to another\n */\nexport function generatePalette(steps: number): Color[] {\n\tif (steps <= 0) {\n\t\tsteps = 6\n\t}\n\n\tif (steps === 4) {\n\t\treturn [...defaultPalette]\n\t}\n\n\tconst palette1 = mixPalette(steps, COLOR_RED, COLOR_YELLOW)\n\tconst palette2 = mixPalette(steps, COLOR_YELLOW, COLOR_BLUE)\n\tconst palette3 = mixPalette(steps, COLOR_BLUE, COLOR_RED)\n\n\treturn palette1.concat(palette2).concat(palette3)\n}\n"],"names":[],"mappings":";;AAOO,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlB,YACiB,GACA,GACA,GACA,MAC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W,WAAW,OAAO,cAAc,UAAU;AAC3D,QAAM,WAAW,WAAW,OAAO,YAAY,SAAS;AAExD,SAAO,SAAS,OAAO,QAAQ,EAAE,OAAO,QAAQ;AACjD;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customPickerElements-4pQTZUnk.mjs","sources":["../../src/functions/reference/widgets.ts","../../src/functions/reference/customPickerElements.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport logger from '../../utils/logger.ts'\n\nexport interface
|
|
1
|
+
{"version":3,"file":"customPickerElements-4pQTZUnk.mjs","sources":["../../src/functions/reference/widgets.ts","../../src/functions/reference/customPickerElements.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport logger from '../../utils/logger.ts'\n\n/** Reference interface (copied from OpenAPI core) */\nexport interface ReferenceWidgetObject {\n\trichObjectType: string\n\trichObject: {\n\t\t[key: string]: Record<string, unknown> | null\n\t}\n\topenGraphObject: {\n\t\tid: string\n\t\tname: string\n\t\tdescription: string | null\n\t\tthumb: string | null\n\t\tlink: string\n\t}\n\taccessible: boolean\n}\n\nexport interface ReferenceWidgetRenderProperties extends ReferenceWidgetObject {\n\tinteractive: boolean\n}\n\ntype ReferenceWidgetRenderCallback = (el: HTMLElement, properties: ReferenceWidgetRenderProperties) => void\ntype ReferenceWidgetDestroyCallback = (el: HTMLElement) => void\n\nexport interface ReferenceWidgetProps {\n\tid: string\n\thasInteractiveView: boolean\n\tfullWidth: boolean\n\tcallback: ReferenceWidgetRenderCallback\n\tonDestroy: ReferenceWidgetDestroyCallback\n}\n\nwindow._vue_richtext_widgets ??= {}\nwindow._registerWidget ??= (id: string, callback: ReferenceWidgetRenderCallback, onDestroy: ReferenceWidgetDestroyCallback, props: Partial<ReferenceWidgetProps>) => {\n\tregisterWidget(id, callback, onDestroy, props)\n}\n\n/**\n * Register a new reference widget\n *\n * @param id - Id tof the widget\n * @param callback - Render callback\n * @param onDestroy - Cleanup callback\n * @param props - Widget props\n */\nexport function registerWidget(\n\tid: string,\n\tcallback: ReferenceWidgetRenderCallback,\n\tonDestroy: ReferenceWidgetDestroyCallback = () => {},\n\tprops?: Partial<ReferenceWidgetProps>,\n) {\n\tconst propsWithDefaults = {\n\t\thasInteractiveView: true,\n\t\tfullWidth: false,\n\t\t...props,\n\t}\n\n\tif (window._vue_richtext_widgets[id]) {\n\t\tlogger.error(`[ReferencePicker]: Widget for id ${id} already registered`)\n\t\treturn\n\t}\n\n\twindow._vue_richtext_widgets[id] = {\n\t\tid,\n\t\tcallback,\n\t\tonDestroy,\n\t\t...propsWithDefaults,\n\t}\n}\n\n/**\n * Render a reference widget to a given HTML element.\n *\n * @param el - The element to render widget to\n * @param options - render options\n */\nexport function renderWidget(el: HTMLElement, options: ReferenceWidgetRenderProperties) {\n\tconst { richObjectType, richObject, accessible, interactive } = options\n\tif (richObjectType === 'open-graph') {\n\t\treturn\n\t}\n\n\tif (!window._vue_richtext_widgets[richObjectType]) {\n\t\tlogger.error('Widget for rich object type ' + richObjectType + ' not registered')\n\t\treturn\n\t}\n\n\twindow._vue_richtext_widgets[richObjectType].callback(el, { richObjectType, richObject, accessible, interactive })\n}\n\n/**\n * Call the cleanup callback of the reference widget for given object type.\n *\n * @param richObjectType - The object type\n * @param el - The element\n */\nexport function destroyWidget(richObjectType: string, el: HTMLElement) {\n\tif (richObjectType === 'open-graph') {\n\t\treturn\n\t}\n\n\tif (!window._vue_richtext_widgets[richObjectType]) {\n\t\treturn\n\t}\n\n\twindow._vue_richtext_widgets[richObjectType].onDestroy(el)\n}\n\n/**\n * Check if a widget with the give id is registered.\n *\n * @param id - Id of the widget\n */\nexport function isWidgetRegistered(id: string): boolean {\n\treturn !!window._vue_richtext_widgets[id]\n}\n\n/**\n * Check if the given widget has an interactive view.\n *\n * @param id - Id of the widget\n */\nexport function hasInteractiveView(id: string): boolean {\n\treturn !!window._vue_richtext_widgets[id]?.hasInteractiveView\n}\n\n/**\n * Check if the widget supports full width.\n *\n * @param id - Id of the widget\n */\nexport function hasFullWidth(id: string): boolean {\n\treturn !!window._vue_richtext_widgets[id]?.fullWidth\n}\n","/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport logger from '../../utils/logger.ts'\n\nwindow._vue_richtext_custom_picker_elements ??= {}\nwindow._registerCustomPickerElement ??= registerCustomPickerElement\n\n/**\n * Representation of the render callback result\n * It contains a dom element and an object (Vue instance or other fancy things)\n */\nexport class NcCustomPickerRenderResult {\n\tpublic element: HTMLElement\n\tpublic object: object\n\n\t/**\n\t * @param element - The HTML element\n\t * @param object - The object\n\t */\n\tconstructor(element: HTMLElement, object: object) {\n\t\tthis.element = element\n\t\tthis.object = object\n\t}\n}\n\ninterface CustomPickerElementProps {\n\tproviderId: number\n\taccessible: boolean\n}\n\ntype CustomPickerElementRegistrationCallback = (el: HTMLElement, options: CustomPickerElementProps) => void\ntype CustomPickerElementDestroyCallback = (el: HTMLElement, result: NcCustomPickerRenderResult) => void\n\nexport interface CustomPickerElement {\n\tid: string\n\tsize: 'small' | 'normal' | 'large' | 'full'\n\n\tcallback: CustomPickerElementRegistrationCallback\n\tonDestroy: CustomPickerElementDestroyCallback\n}\n\n/**\n * @param id - Id of the element to check\n */\nexport function isCustomPickerElementRegistered(id: string): boolean {\n\treturn !!window._vue_richtext_custom_picker_elements[id]\n}\n\n/**\n * @param id - Id of the element to get\n */\nexport function getCustomPickerElementSize(id: string): 'small' | 'normal' | 'large' | 'full' | null {\n\tconst size = window._vue_richtext_custom_picker_elements[id]?.size\n\tif (size && ['small', 'normal', 'large', 'full'].includes(size)) {\n\t\treturn size\n\t}\n\treturn null\n}\n\n/**\n * @param id - Id of element to register\n * @param callback - Render callback\n * @param onDestroy - Cleanup callback\n * @param size - Size of the element\n */\nexport function registerCustomPickerElement(\n\tid: string,\n\tcallback: CustomPickerElementRegistrationCallback,\n\tonDestroy: CustomPickerElementDestroyCallback = () => {},\n\tsize: CustomPickerElement['size'] = 'large',\n) {\n\tif (window._vue_richtext_custom_picker_elements[id]) {\n\t\tlogger.error(`Custom reference picker element for id ${id} already registered`)\n\t\treturn\n\t}\n\n\twindow._vue_richtext_custom_picker_elements[id] = {\n\t\tid,\n\t\tcallback,\n\t\tonDestroy,\n\t\tsize,\n\t}\n}\n\n/**\n * @param el - element to render to\n * @param options - Element options\n */\nexport function renderCustomPickerElement(el: HTMLElement, options: CustomPickerElementProps) {\n\tconst { providerId, accessible } = options\n\tif (!window._vue_richtext_custom_picker_elements[providerId]) {\n\t\tlogger.error(`Custom reference picker element for reference provider ID ${providerId} not registered`)\n\t\treturn\n\t}\n\n\treturn window._vue_richtext_custom_picker_elements[providerId]\n\t\t.callback(el, { providerId, accessible })\n}\n\n/**\n * @param providerId - Provider id of element to destroy\n * @param el - The element to destroy element from\n * @param renderResult - The render result\n */\nexport function destroyCustomPickerElement(providerId: string, el: HTMLElement, renderResult: NcCustomPickerRenderResult) {\n\tif (!window._vue_richtext_custom_picker_elements[providerId]) {\n\t\treturn\n\t}\n\n\twindow._vue_richtext_custom_picker_elements[providerId]\n\t\t.onDestroy(el, renderResult)\n}\n"],"names":[],"mappings":";AAsCA,OAAO,0BAA0B,CAAA;AACjC,OAAO,oBAAoB,CAAC,IAAY,UAAyC,WAA2C,UAAyC;AACpK,iBAAe,IAAI,UAAU,WAAW,KAAK;AAC9C;AAUO,SAAS,eACf,IACA,UACA,YAA4C,MAAM;AAAC,GACnD,OACC;AACD,QAAM,oBAAoB;AAAA,IACzB,oBAAoB;AAAA,IACpB,WAAW;AAAA,IACX,GAAG;AAAA,EAAA;AAGJ,MAAI,OAAO,sBAAsB,EAAE,GAAG;AACrC,WAAO,MAAM,oCAAoC,EAAE,qBAAqB;AACxE;AA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C,SAAS,UAAU,SAAS,MAAM,EAAE,SAAS,IAAI,GAAG;AAChE,WAAO;AAAA,EACR;AACA,SAAO;AACR;AAQO,SAAS,4BACf,IACA,UACA,YAAgD,MAAM;AAAC,GACvD,OAAoC,SACnC;AACD,MAAI,OAAO,qCAAqC,EAAE,GAAG;AACpD,WAAO,MAAM,0CAA0C,EAAE,qBAAqB;AAC9E;AAAA,EACD;AAEA,SAAO,qCAAqC,EAAE,IAAI;AAAA,IACjD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEF;AAMO,SAAS,0BAA0B,IAAiB,SAAmC;AAC7F,QAAM,EAAE,YAAY,WAAA,IAAe;AACnC,MAAI,CAAC,OAAO,qCAAqC,UAAU,GAAG;AAC7D,WAAO,MAAM,6DAA6D,UAAU,iBAAiB;AACrG;AAAA,EACD;AAEA,SAAO,OAAO,qCAAqC,UAAU,EAC3D,SAAS,IAAI,EAAE,YAAY,YAAY;AAC1C;AAOO,SAAS,2BAA2B,YAAoB,IAAiB,cAA0C;AACzH,MAAI,CAAC,OAAO,qCAAqC,UAAU,GAAG;AAC7D;AAAA,EACD;AAEA,SAAO,qCAAqC,UAAU,EACpD,UAAU,IAAI,YAAY;AAC7B;"}
|
|
@@ -12,6 +12,7 @@ var mdiChevronRight = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.5
|
|
|
12
12
|
var mdiChevronUp = "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z";
|
|
13
13
|
var mdiClock = "M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z";
|
|
14
14
|
var mdiClose = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";
|
|
15
|
+
var mdiCloseCircleOutline = "M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22C17.53,22 22,17.53 22,12C22,6.47 17.53,2 12,2M14.59,8L12,10.59L9.41,8L8,9.41L10.59,12L8,14.59L9.41,16L12,13.41L14.59,16L16,14.59L13.41,12L16,9.41L14.59,8Z";
|
|
15
16
|
var mdiCog = "M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z";
|
|
16
17
|
var mdiCogOutline = "M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12A2,2 0 0,0 12,10M10,22C9.75,22 9.54,21.82 9.5,21.58L9.13,18.93C8.5,18.68 7.96,18.34 7.44,17.94L4.95,18.95C4.73,19.03 4.46,18.95 4.34,18.73L2.34,15.27C2.21,15.05 2.27,14.78 2.46,14.63L4.57,12.97L4.5,12L4.57,11L2.46,9.37C2.27,9.22 2.21,8.95 2.34,8.73L4.34,5.27C4.46,5.05 4.73,4.96 4.95,5.05L7.44,6.05C7.96,5.66 8.5,5.32 9.13,5.07L9.5,2.42C9.54,2.18 9.75,2 10,2H14C14.25,2 14.46,2.18 14.5,2.42L14.87,5.07C15.5,5.32 16.04,5.66 16.56,6.05L19.05,5.05C19.27,4.96 19.54,5.05 19.66,5.27L21.66,8.73C21.79,8.95 21.73,9.22 21.54,9.37L19.43,11L19.5,12L19.43,13L21.54,14.63C21.73,14.78 21.79,15.05 21.66,15.27L19.66,18.73C19.54,18.95 19.27,19.04 19.05,18.95L16.56,17.95C16.04,18.34 15.5,18.68 14.87,18.93L14.5,21.58C14.46,21.82 14.25,22 14,22H10M11.25,4L10.88,6.61C9.68,6.86 8.62,7.5 7.85,8.39L5.44,7.35L4.69,8.65L6.8,10.2C6.4,11.37 6.4,12.64 6.8,13.8L4.68,15.36L5.43,16.66L7.86,15.62C8.63,16.5 9.68,17.14 10.87,17.38L11.24,20H12.76L13.13,17.39C14.32,17.14 15.37,16.5 16.14,15.62L18.57,16.66L19.32,15.36L17.2,13.81C17.6,12.64 17.6,11.37 17.2,10.2L19.31,8.65L18.56,7.35L16.15,8.39C15.38,7.5 14.32,6.86 13.12,6.62L12.75,4H11.25Z";
|
|
17
18
|
var mdiCreation = "M19,1L17.74,3.75L15,5L17.74,6.26L19,9L20.25,6.26L23,5L20.25,3.75M9,4L6.5,9.5L1,12L6.5,14.5L9,20L11.5,14.5L17,12L11.5,9.5M19,15L17.74,17.74L15,19L17.74,20.25L19,23L20.25,20.25L23,19L20.25,17.74";
|
|
@@ -36,16 +37,17 @@ export {
|
|
|
36
37
|
mdiEyeOff as k,
|
|
37
38
|
mdiEye as l,
|
|
38
39
|
mdiArrowRight as m,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
mdiCloseCircleOutline as n,
|
|
41
|
+
mdiArrowLeft as o,
|
|
42
|
+
mdiDotsHorizontal as p,
|
|
43
|
+
mdiChevronUp as q,
|
|
44
|
+
mdiChevronDown as r,
|
|
45
|
+
mdiChevronLeft as s,
|
|
46
|
+
mdiClock as t,
|
|
47
|
+
mdiCalendarBlank as u,
|
|
48
|
+
mdiCog as v,
|
|
49
|
+
mdiCogOutline as w,
|
|
50
|
+
mdiMenuOpen as x,
|
|
51
|
+
mdiMenu as y
|
|
50
52
|
};
|
|
51
|
-
//# sourceMappingURL=mdi-
|
|
53
|
+
//# sourceMappingURL=mdi-Cjx8NyEs.mjs.map
|