@nextcloud/vue 9.0.0-rc.0 → 9.0.0-rc.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 +11 -0
- package/dist/assets/{NcAppNavigationItem-DRU-cLRN.css → NcAppNavigationItem-Cq6ZYdmT.css} +30 -30
- package/dist/assets/{NcAppSettingsDialog-DZfD_UEa.css → NcAppSettingsDialog-DMWosHw9.css} +10 -10
- package/dist/assets/{NcAppSidebar-GFQ62pY2.css → NcAppSidebar-DejDBLy4.css} +75 -63
- package/dist/assets/{NcChip-CKtzzrlA.css → NcChip-C-0jMpNk.css} +9 -9
- package/dist/assets/{NcDashboardWidget-xV4o6Cen.css → NcDashboardWidget-BEYk4O95.css} +12 -12
- package/dist/assets/{NcEmptyContent-D1O466rM.css → NcEmptyContent-BqnUPzZQ.css} +9 -9
- package/dist/assets/{NcIconSvgWrapper-BzRHs8iB.css → NcIconSvgWrapper-BO9Dme5J.css} +12 -9
- package/dist/assets/{NcListItem-Byw-ayOI.css → NcListItem-D6F_oFLK.css} +44 -44
- package/dist/assets/{referencePickerModal-CkGgDb19.css → referencePickerModal-DAD-jv3F.css} +23 -23
- package/dist/chunks/{NcActionButtonGroup-Dqt8Gekb.mjs → NcActionButtonGroup-VJlvSBVZ.mjs} +2 -2
- package/dist/chunks/{NcActionButtonGroup-Dqt8Gekb.mjs.map → NcActionButtonGroup-VJlvSBVZ.mjs.map} +1 -1
- package/dist/chunks/{NcActionInput-C_rmP0eZ.mjs → NcActionInput-D1R71Reh.mjs} +7 -7
- package/dist/chunks/{NcActionInput-C_rmP0eZ.mjs.map → NcActionInput-D1R71Reh.mjs.map} +1 -1
- package/dist/chunks/{NcActions-DpYAcY6a.mjs → NcActions-2UedVnLW.mjs} +3 -3
- package/dist/chunks/{NcActions-DpYAcY6a.mjs.map → NcActions-2UedVnLW.mjs.map} +1 -1
- package/dist/chunks/{NcAppContent-BMiA5ySy.mjs → NcAppContent-Bdlo1JwI.mjs} +2 -2
- package/dist/chunks/{NcAppContent-BMiA5ySy.mjs.map → NcAppContent-Bdlo1JwI.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigation-DuLUJbsJ.mjs → NcAppNavigation-BHLzIgKf.mjs} +2 -2
- package/dist/chunks/{NcAppNavigation-DuLUJbsJ.mjs.map → NcAppNavigation-BHLzIgKf.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-DTVdWgpf.mjs → NcAppNavigationCaption-D1_4GAVS.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationCaption-DTVdWgpf.mjs.map → NcAppNavigationCaption-D1_4GAVS.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-5KG5Pl2c.mjs → NcAppNavigationItem-Cxzp2qW7.mjs} +67 -67
- package/dist/chunks/{NcAppNavigationItem-5KG5Pl2c.mjs.map → NcAppNavigationItem-Cxzp2qW7.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-CRCOC0hV.mjs → NcAppNavigationNewItem-BNFUFCCJ.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationNewItem-CRCOC0hV.mjs.map → NcAppNavigationNewItem-BNFUFCCJ.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-AT_S98B0.mjs → NcAppNavigationSearch-B7w1J5K3.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationSearch-AT_S98B0.mjs.map → NcAppNavigationSearch-B7w1J5K3.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-DFsvNlME.mjs → NcAppNavigationSettings-aTOqq_-d.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationSettings-DFsvNlME.mjs.map → NcAppNavigationSettings-aTOqq_-d.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-CqZs9ls-.mjs → NcAppNavigationToggle-CSD4yx6Z.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationToggle-CqZs9ls-.mjs.map → NcAppNavigationToggle-CSD4yx6Z.mjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-CTUoQezW.mjs → NcAppSettingsDialog-DJhRLDT2.mjs} +7 -7
- package/dist/chunks/{NcAppSettingsDialog-CTUoQezW.mjs.map → NcAppSettingsDialog-DJhRLDT2.mjs.map} +1 -1
- package/dist/chunks/{NcAppSidebar-B7shIqzm.mjs → NcAppSidebar-Dnb5U9gv.mjs} +285 -272
- package/dist/chunks/NcAppSidebar-Dnb5U9gv.mjs.map +1 -0
- package/dist/chunks/NcAppSidebarHeader.vue_vue_type_script_setup_true_lang-0j0aFDeK.mjs +30 -0
- package/dist/chunks/NcAppSidebarHeader.vue_vue_type_script_setup_true_lang-0j0aFDeK.mjs.map +1 -0
- package/dist/chunks/{NcAvatar-CvPCBukb.mjs → NcAvatar-Cg9PDzho.mjs} +6 -6
- package/dist/chunks/{NcAvatar-CvPCBukb.mjs.map → NcAvatar-Cg9PDzho.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-C3qGDt3z.mjs → NcBreadcrumb-DpW0HXlg.mjs} +2 -2
- package/dist/chunks/{NcBreadcrumb-C3qGDt3z.mjs.map → NcBreadcrumb-DpW0HXlg.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-DtBCo9yI.mjs → NcBreadcrumbs-CbQjZLpZ.mjs} +3 -3
- package/dist/chunks/{NcBreadcrumbs-DtBCo9yI.mjs.map → NcBreadcrumbs-CbQjZLpZ.mjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-DrNlVZw8.mjs → NcCheckboxRadioSwitch-BmzUQ-WN.mjs} +2 -2
- package/dist/chunks/{NcCheckboxRadioSwitch-DrNlVZw8.mjs.map → NcCheckboxRadioSwitch-BmzUQ-WN.mjs.map} +1 -1
- package/dist/chunks/{NcChip-Cq8DrWKb.mjs → NcChip-BQRPT42V.mjs} +9 -12
- package/dist/chunks/NcChip-BQRPT42V.mjs.map +1 -0
- package/dist/chunks/{NcCollectionList-CFuwV9sI.mjs → NcCollectionList-CUlNTcYX.mjs} +5 -5
- package/dist/chunks/{NcCollectionList-CFuwV9sI.mjs.map → NcCollectionList-CUlNTcYX.mjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-Clo5oIYN.mjs → NcColorPicker-DGwM1Zki.mjs} +4 -4
- package/dist/chunks/{NcColorPicker-Clo5oIYN.mjs.map → NcColorPicker-DGwM1Zki.mjs.map} +1 -1
- package/dist/chunks/{NcContent-CUuf0HwJ.mjs → NcContent-BhN8SiS1.mjs} +3 -3
- package/dist/chunks/{NcContent-CUuf0HwJ.mjs.map → NcContent-BhN8SiS1.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-CXw7Hxc8.mjs → NcDashboardWidget-CC2pZ6GI.mjs} +7 -7
- package/dist/chunks/{NcDashboardWidget-CXw7Hxc8.mjs.map → NcDashboardWidget-CC2pZ6GI.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-C6GoJEri.mjs → NcDashboardWidgetItem-BsHwLKh3.mjs} +3 -3
- package/dist/chunks/{NcDashboardWidgetItem-C6GoJEri.mjs.map → NcDashboardWidgetItem-BsHwLKh3.mjs.map} +1 -1
- package/dist/chunks/{NcDateTime.vue_vue_type_script_setup_true_lang-BYXau4sd.mjs → NcDateTime.vue_vue_type_script_setup_true_lang-CKX0mNnP.mjs} +2 -2
- package/dist/chunks/{NcDateTime.vue_vue_type_script_setup_true_lang-BYXau4sd.mjs.map → NcDateTime.vue_vue_type_script_setup_true_lang-CKX0mNnP.mjs.map} +1 -1
- package/dist/chunks/{NcDateTimePicker-CDFvxL3U.mjs → NcDateTimePicker-BM9F_PSI.mjs} +4 -4
- package/dist/chunks/{NcDateTimePicker-CDFvxL3U.mjs.map → NcDateTimePicker-BM9F_PSI.mjs.map} +1 -1
- package/dist/chunks/{NcDateTimePickerNative-BRuMK89z.mjs → NcDateTimePickerNative-DoGQFKev.mjs} +2 -2
- package/dist/chunks/{NcDateTimePickerNative-BRuMK89z.mjs.map → NcDateTimePickerNative-DoGQFKev.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-BX0IET9Y.mjs → NcDialog-CbXsHgYI.mjs} +2 -2
- package/dist/chunks/{NcDialog-BX0IET9Y.mjs.map → NcDialog-CbXsHgYI.mjs.map} +1 -1
- package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-DbzPc_gW.mjs → NcDialogButton.vue_vue_type_script_setup_true_lang-DR0Yn-dH.mjs} +3 -3
- package/dist/chunks/{NcDialogButton.vue_vue_type_script_setup_true_lang-DbzPc_gW.mjs.map → NcDialogButton.vue_vue_type_script_setup_true_lang-DR0Yn-dH.mjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-C30Ofq8B.mjs → NcEmojiPicker-B0y1ZY5N.mjs} +6 -6
- package/dist/chunks/{NcEmojiPicker-C30Ofq8B.mjs.map → NcEmojiPicker-B0y1ZY5N.mjs.map} +1 -1
- package/dist/chunks/NcEmptyContent-CBWBkBL8.mjs +56 -0
- package/dist/chunks/NcEmptyContent-CBWBkBL8.mjs.map +1 -0
- package/dist/chunks/{NcHeaderMenu-CEH_-KT_.mjs → NcHeaderMenu-D-WDQIHd.mjs} +2 -2
- package/dist/chunks/{NcHeaderMenu-CEH_-KT_.mjs.map → NcHeaderMenu-D-WDQIHd.mjs.map} +1 -1
- package/dist/chunks/{NcIconSvgWrapper-Bc3ogp8T.mjs → NcIconSvgWrapper-DZBRQNfG.mjs} +4 -4
- package/dist/chunks/{NcIconSvgWrapper-Bc3ogp8T.mjs.map → NcIconSvgWrapper-DZBRQNfG.mjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-DeWD9uc6.mjs → NcInputConfirmCancel-CUJM5y0h.mjs} +2 -2
- package/dist/chunks/{NcInputConfirmCancel-DeWD9uc6.mjs.map → NcInputConfirmCancel-CUJM5y0h.mjs.map} +1 -1
- package/dist/chunks/{NcListItem-CVX52kG-.mjs → NcListItem-Bx_uxyFR.mjs} +5 -5
- package/dist/chunks/{NcListItem-CVX52kG-.mjs.map → NcListItem-Bx_uxyFR.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-Cc6vXRrY.mjs → NcListItemIcon-CytWJM69.mjs} +3 -3
- package/dist/chunks/{NcListItemIcon-Cc6vXRrY.mjs.map → NcListItemIcon-CytWJM69.mjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-CYPRKGml.mjs → NcPasswordField-Cac3cpVY.mjs} +2 -2
- package/dist/chunks/{NcPasswordField-CYPRKGml.mjs.map → NcPasswordField-Cac3cpVY.mjs.map} +1 -1
- package/dist/chunks/{NcPopover-EPnt2iHh.mjs → NcPopover-CzrFCS-2.mjs} +4 -2
- package/dist/chunks/{NcPopover-EPnt2iHh.mjs.map → NcPopover-CzrFCS-2.mjs.map} +1 -1
- package/dist/chunks/{NcRelatedResourcesPanel-Bcy58V31.mjs → NcRelatedResourcesPanel-BBKk-jjB.mjs} +3 -3
- package/dist/chunks/{NcRelatedResourcesPanel-Bcy58V31.mjs.map → NcRelatedResourcesPanel-BBKk-jjB.mjs.map} +1 -1
- package/dist/chunks/{NcRichContenteditable-BR08SbpA.mjs → NcRichContenteditable-gt56b0Uw.mjs} +8 -8
- package/dist/chunks/{NcRichContenteditable-BR08SbpA.mjs.map → NcRichContenteditable-gt56b0Uw.mjs.map} +1 -1
- package/dist/chunks/{NcRichText-jZif8PdV.mjs → NcRichText-CMRNgGQw.mjs} +3 -3
- package/dist/chunks/{NcRichText-jZif8PdV.mjs.map → NcRichText-CMRNgGQw.mjs.map} +1 -1
- package/dist/chunks/{NcSelect-BkTH-Yqm.mjs → NcSelect-DFMnY4fI.mjs} +2 -2
- package/dist/chunks/{NcSelect-BkTH-Yqm.mjs.map → NcSelect-DFMnY4fI.mjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-BY8LM7qV.mjs → NcSelectTags-BpFmhbdp.mjs} +3 -3
- package/dist/chunks/{NcSelectTags-BY8LM7qV.mjs.map → NcSelectTags-BpFmhbdp.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsInputText-B129n9sr.mjs → NcSettingsInputText-CMBC7DaG.mjs} +2 -2
- package/dist/chunks/{NcSettingsInputText-B129n9sr.mjs.map → NcSettingsInputText-CMBC7DaG.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-CjWtq7TT.mjs → NcSettingsSection-Crla6NXM.mjs} +2 -2
- package/dist/chunks/{NcSettingsSection-CjWtq7TT.mjs.map → NcSettingsSection-Crla6NXM.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-B8uq0KIw.mjs → NcSettingsSelectGroup-BOv1UgHX.mjs} +3 -3
- package/dist/chunks/{NcSettingsSelectGroup-B8uq0KIw.mjs.map → NcSettingsSelectGroup-BOv1UgHX.mjs.map} +1 -1
- package/dist/chunks/{NcTextField-KGXtf7Y6.mjs → NcTextField-Dzv_qpmt.mjs} +2 -2
- package/dist/chunks/{NcTextField-KGXtf7Y6.mjs.map → NcTextField-Dzv_qpmt.mjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-DxoB-jLa.mjs → NcTimezonePicker.vue_vue_type_script_setup_true_lang-BK7HxZja.mjs} +3 -3
- package/dist/chunks/{NcTimezonePicker.vue_vue_type_script_setup_true_lang-DxoB-jLa.mjs.map → NcTimezonePicker.vue_vue_type_script_setup_true_lang-BK7HxZja.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-qqRewR9C.mjs → NcUserBubble-CnsRuBNe.mjs} +3 -3
- package/dist/chunks/{NcUserBubble-qqRewR9C.mjs.map → NcUserBubble-CnsRuBNe.mjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-DpZVD4HJ.mjs → NcUserStatusIcon-M_93a-z6.mjs} +2 -2
- package/dist/chunks/{NcUserStatusIcon-DpZVD4HJ.mjs.map → NcUserStatusIcon-M_93a-z6.mjs.map} +1 -1
- package/dist/chunks/NcVNodes.vue_vue_type_script_lang-BqUHinRZ.mjs +23 -0
- package/dist/chunks/NcVNodes.vue_vue_type_script_lang-BqUHinRZ.mjs.map +1 -0
- package/dist/chunks/{ScopeComponent-BIpNSmeE.mjs → ScopeComponent-Cr_cohWX.mjs} +2 -2
- package/dist/chunks/{ScopeComponent-BIpNSmeE.mjs.map → ScopeComponent-Cr_cohWX.mjs.map} +1 -1
- package/dist/chunks/{_l10n-BNGeEX3W.mjs → _l10n-dinIMiE_.mjs} +16 -16
- package/dist/chunks/_l10n-dinIMiE_.mjs.map +1 -0
- package/dist/chunks/{colors-CSUSQx1k.mjs → colors-AMTxjrbV.mjs} +2 -2
- package/dist/chunks/{colors-CSUSQx1k.mjs.map → colors-AMTxjrbV.mjs.map} +1 -1
- package/dist/chunks/{referencePickerModal-DzM7CkKN.mjs → referencePickerModal-CMgdGDsm.mjs} +9 -9
- package/dist/chunks/{referencePickerModal-DzM7CkKN.mjs.map → referencePickerModal-CMgdGDsm.mjs.map} +1 -1
- package/dist/chunks/{useFormatDateTime-BPGWjR3-.mjs → useFormatDateTime-lk3QDXbQ.mjs} +2 -2
- package/dist/chunks/{useFormatDateTime-BPGWjR3-.mjs.map → useFormatDateTime-lk3QDXbQ.mjs.map} +1 -1
- package/dist/chunks/{usernameToColor-Bl9NGU_9.mjs → usernameToColor-CmB20TBI.mjs} +2 -2
- package/dist/chunks/{usernameToColor-Bl9NGU_9.mjs.map → usernameToColor-CmB20TBI.mjs.map} +1 -1
- package/dist/components/NcActionButtonGroup/index.mjs +1 -1
- package/dist/components/NcActionCheckbox/NcActionCheckbox.vue.d.ts +1 -1
- package/dist/components/NcActionInput/index.mjs +1 -1
- package/dist/components/NcActionRadio/NcActionRadio.vue.d.ts +1 -1
- package/dist/components/NcActionTextEditable/NcActionTextEditable.vue.d.ts +2 -2
- package/dist/components/NcActions/index.mjs +1 -1
- 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/NcAppNavigationToggle/index.mjs +1 -1
- package/dist/components/NcAppSettingsDialog/index.mjs +1 -1
- package/dist/components/NcAppSidebar/NcAppSidebarTabs.vue.d.ts +7 -3
- package/dist/components/NcAppSidebar/index.mjs +1 -1
- package/dist/components/NcAppSidebarHeader/NcAppSidebarHeader.vue.d.ts +18 -0
- package/dist/components/NcAppSidebarHeader/index.d.ts +5 -0
- package/dist/components/NcAppSidebarHeader/index.mjs +5 -0
- package/dist/components/NcAppSidebarHeader/index.mjs.map +1 -0
- 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/NcChip.vue.d.ts +33 -6
- package/dist/components/NcChip/index.mjs +1 -1
- package/dist/components/NcCollectionList/index.mjs +1 -1
- 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/NcDateTime/index.mjs +1 -1
- package/dist/components/NcDateTimePicker/index.mjs +1 -1
- package/dist/components/NcDateTimePickerNative/index.mjs +1 -1
- package/dist/components/NcDialog/NcDialog.vue.d.ts +4 -4
- package/dist/components/NcDialog/index.mjs +1 -1
- package/dist/components/NcDialogButton/NcDialogButton.vue.d.ts +1 -1
- package/dist/components/NcDialogButton/index.mjs +1 -1
- package/dist/components/NcEmojiPicker/index.mjs +1 -1
- package/dist/components/NcEmptyContent/NcEmptyContent.vue.d.ts +58 -28
- package/dist/components/NcEmptyContent/index.d.ts +4 -0
- package/dist/components/NcEmptyContent/index.mjs +1 -1
- package/dist/components/NcHeaderMenu/index.mjs +1 -1
- package/dist/components/NcIconSvgWrapper/NcIconSvgWrapper.vue.d.ts +1 -1
- package/dist/components/NcIconSvgWrapper/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 +4 -4
- package/dist/components/NcPasswordField/index.mjs +1 -1
- package/dist/components/NcPopover/index.mjs +1 -1
- package/dist/components/NcRelatedResourcesPanel/index.mjs +1 -1
- package/dist/components/NcRichContenteditable/NcRichContenteditable.vue.d.ts +3 -3
- package/dist/components/NcRichContenteditable/index.mjs +1 -1
- package/dist/components/NcRichText/NcReferencePicker/NcProviderList.vue.d.ts +41 -20
- package/dist/components/NcRichText/NcReferencePicker/NcSearch.vue.d.ts +41 -20
- 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 +2 -2
- package/dist/components/NcSettingsInputText/NcSettingsInputText.vue.d.ts +3 -3
- package/dist/components/NcSettingsInputText/index.mjs +1 -1
- package/dist/components/NcSettingsSection/index.mjs +1 -1
- package/dist/components/NcSettingsSelectGroup/NcSettingsSelectGroup.vue.d.ts +2 -2
- package/dist/components/NcSettingsSelectGroup/index.mjs +1 -1
- package/dist/components/NcTextArea/NcTextArea.vue.d.ts +1 -1
- package/dist/components/NcTextField/index.mjs +1 -1
- package/dist/components/NcTimezonePicker/index.mjs +1 -1
- package/dist/components/NcUserBubble/index.mjs +1 -1
- package/dist/components/NcUserStatusIcon/index.mjs +1 -1
- package/dist/components/NcVNodes/NcVNodes.vue.d.ts +8 -3
- package/dist/components/NcVNodes/index.d.ts +4 -0
- package/dist/components/NcVNodes/index.mjs +2 -21
- package/dist/components/NcVNodes/index.mjs.map +1 -1
- package/dist/components/index.d.ts +3 -2
- package/dist/directives/Focus/index.d.ts +2 -3
- package/dist/directives/Focus/index.mjs +1 -2
- package/dist/directives/Focus/index.mjs.map +1 -1
- package/dist/directives/index.d.ts +1 -1
- package/dist/functions/dialog/index.d.ts +8 -1
- package/dist/functions/dialog/index.mjs.map +1 -1
- package/dist/functions/reference/index.mjs +1 -1
- package/dist/functions/usernameToColor/index.mjs +1 -1
- package/dist/index.mjs +63 -61
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunks/NcAppSidebar-B7shIqzm.mjs.map +0 -1
- package/dist/chunks/NcChip-Cq8DrWKb.mjs.map +0 -1
- package/dist/chunks/NcEmptyContent-BQnIrQQn.mjs +0 -68
- package/dist/chunks/NcEmptyContent-BQnIrQQn.mjs.map +0 -1
- package/dist/chunks/_l10n-BNGeEX3W.mjs.map +0 -1
|
@@ -167,28 +167,49 @@ declare const _default: import('vue').DefineComponent<{}, {}, {
|
|
|
167
167
|
text: string;
|
|
168
168
|
highlight: unknown[];
|
|
169
169
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
170
|
-
NcEmptyContent:
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
|
|
170
|
+
NcEmptyContent: {
|
|
171
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
172
|
+
description?: string;
|
|
173
|
+
name?: string;
|
|
174
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
175
|
+
name: string;
|
|
176
|
+
description: string;
|
|
177
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
178
|
+
P: {};
|
|
179
|
+
B: {};
|
|
180
|
+
D: {};
|
|
181
|
+
C: {};
|
|
182
|
+
M: {};
|
|
183
|
+
Defaults: {};
|
|
184
|
+
}, Readonly<{
|
|
185
|
+
description?: string;
|
|
186
|
+
name?: string;
|
|
187
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
188
|
+
name: string;
|
|
189
|
+
description: string;
|
|
190
|
+
}>;
|
|
191
|
+
__isFragment?: never;
|
|
192
|
+
__isTeleport?: never;
|
|
193
|
+
__isSuspense?: never;
|
|
194
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
195
|
+
description?: string;
|
|
196
|
+
name?: string;
|
|
197
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
189
198
|
name: string;
|
|
190
199
|
description: string;
|
|
191
|
-
}, {},
|
|
200
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
201
|
+
$slots: Readonly<{
|
|
202
|
+
action?: import('vue').Slot;
|
|
203
|
+
icon?: import('vue').Slot;
|
|
204
|
+
name?: import('vue').Slot;
|
|
205
|
+
description?: import('vue').Slot;
|
|
206
|
+
}> & {
|
|
207
|
+
action?: import('vue').Slot;
|
|
208
|
+
icon?: import('vue').Slot;
|
|
209
|
+
name?: import('vue').Slot;
|
|
210
|
+
description?: import('vue').Slot;
|
|
211
|
+
};
|
|
212
|
+
});
|
|
192
213
|
LinkVariantIcon: any;
|
|
193
214
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
194
215
|
export default _default;
|
|
@@ -68,28 +68,49 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
68
68
|
}, {}, {
|
|
69
69
|
LinkVariantIcon: any;
|
|
70
70
|
DotsHorizontalIcon: any;
|
|
71
|
-
NcEmptyContent:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
71
|
+
NcEmptyContent: {
|
|
72
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
73
|
+
description?: string;
|
|
74
|
+
name?: string;
|
|
75
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
76
|
+
name: string;
|
|
77
|
+
description: string;
|
|
78
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
79
|
+
P: {};
|
|
80
|
+
B: {};
|
|
81
|
+
D: {};
|
|
82
|
+
C: {};
|
|
83
|
+
M: {};
|
|
84
|
+
Defaults: {};
|
|
85
|
+
}, Readonly<{
|
|
86
|
+
description?: string;
|
|
87
|
+
name?: string;
|
|
88
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
89
|
+
name: string;
|
|
90
|
+
description: string;
|
|
91
|
+
}>;
|
|
92
|
+
__isFragment?: never;
|
|
93
|
+
__isTeleport?: never;
|
|
94
|
+
__isSuspense?: never;
|
|
95
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
96
|
+
description?: string;
|
|
97
|
+
name?: string;
|
|
98
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
90
99
|
name: string;
|
|
91
100
|
description: string;
|
|
92
|
-
}, {},
|
|
101
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
102
|
+
$slots: Readonly<{
|
|
103
|
+
action?: import('vue').Slot;
|
|
104
|
+
icon?: import('vue').Slot;
|
|
105
|
+
name?: import('vue').Slot;
|
|
106
|
+
description?: import('vue').Slot;
|
|
107
|
+
}> & {
|
|
108
|
+
action?: import('vue').Slot;
|
|
109
|
+
icon?: import('vue').Slot;
|
|
110
|
+
name?: import('vue').Slot;
|
|
111
|
+
description?: import('vue').Slot;
|
|
112
|
+
};
|
|
113
|
+
});
|
|
93
114
|
NcSelect: import('vue').DefineComponent<{}, {
|
|
94
115
|
avatarSize: number;
|
|
95
116
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { N as NcRichText } from "../../chunks/NcRichText-
|
|
2
|
-
import { a } from "../../chunks/NcRichText-
|
|
1
|
+
import { N as NcRichText } from "../../chunks/NcRichText-CMRNgGQw.mjs";
|
|
2
|
+
import { a } from "../../chunks/NcRichText-CMRNgGQw.mjs";
|
|
3
3
|
import { N, d, i, b, r, c, a as a2 } from "../../chunks/index-BF8joS9W.mjs";
|
|
4
|
-
import { e, f, N as N2, h, a as a3, g, b as b2, c as c2, d as d2, s } from "../../chunks/referencePickerModal-
|
|
4
|
+
import { e, f, N as N2, h, a as a3, g, b as b2, c as c2, d as d2, s } from "../../chunks/referencePickerModal-CMgdGDsm.mjs";
|
|
5
5
|
export {
|
|
6
6
|
N as NcCustomPickerRenderResult,
|
|
7
7
|
a as NcReferenceList,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../assets/index-D9L0rgJk.css';
|
|
2
2
|
import { defineComponent, mergeModels, useModel, ref, watch, createBlock, openBlock, unref, mergeProps, withCtx, createVNode } from "vue";
|
|
3
|
-
import { N as NcListItemIcon } from "../../chunks/NcListItemIcon-
|
|
4
|
-
import { N as NcSelect } from "../../chunks/NcSelect-
|
|
3
|
+
import { N as NcListItemIcon } from "../../chunks/NcListItemIcon-CytWJM69.mjs";
|
|
4
|
+
import { N as NcSelect } from "../../chunks/NcSelect-DFMnY4fI.mjs";
|
|
5
5
|
import { _ as _export_sfc } from "../../chunks/_plugin-vue_export-helper-1tPrXgE0.mjs";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "NcSelectUsers",
|
|
@@ -46,7 +46,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
46
46
|
onInput(event: any): void;
|
|
47
47
|
onSubmit(event: any): void;
|
|
48
48
|
onChange(event: any): void;
|
|
49
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("submit" | "
|
|
49
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("submit" | "input" | "update:modelValue" | "change")[], "submit" | "input" | "update:modelValue" | "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
50
50
|
/**
|
|
51
51
|
* label of the select group element
|
|
52
52
|
*/
|
|
@@ -85,9 +85,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
85
85
|
};
|
|
86
86
|
}>> & Readonly<{
|
|
87
87
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
88
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
89
|
-
onInput?: ((...args: any[]) => any) | undefined;
|
|
90
88
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
90
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
91
91
|
}>, {
|
|
92
92
|
id: string;
|
|
93
93
|
disabled: boolean;
|
|
@@ -92,7 +92,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
92
92
|
* Debounce the group search (reduce API calls)
|
|
93
93
|
*/
|
|
94
94
|
onSearch: debounce.DebouncedFunction<(query: any) => void>;
|
|
95
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("
|
|
95
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("input" | "update:modelValue" | "error")[], "input" | "update:modelValue" | "error", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
96
96
|
/**
|
|
97
97
|
* The text of the label element of the select group input
|
|
98
98
|
*/
|
|
@@ -132,9 +132,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
132
132
|
default: boolean;
|
|
133
133
|
};
|
|
134
134
|
}>> & Readonly<{
|
|
135
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
136
135
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
137
136
|
onError?: ((...args: any[]) => any) | undefined;
|
|
137
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
138
138
|
}>, {
|
|
139
139
|
id: string;
|
|
140
140
|
disabled: boolean;
|
|
@@ -192,10 +192,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
192
192
|
}>> & Readonly<{
|
|
193
193
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
194
194
|
}>, {
|
|
195
|
+
label: string;
|
|
195
196
|
disabled: boolean;
|
|
196
197
|
inputClass: string | Record<string, any>;
|
|
197
198
|
labelOutside: boolean;
|
|
198
|
-
label: string;
|
|
199
199
|
placeholder: string;
|
|
200
200
|
error: boolean;
|
|
201
201
|
resize: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
1
2
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
3
|
/**
|
|
3
4
|
* The vnodes to render
|
|
4
5
|
*/
|
|
5
6
|
vnodes: {
|
|
6
|
-
type:
|
|
7
|
+
type: PropType<VNode | VNode[]>;
|
|
7
8
|
default: null;
|
|
8
9
|
};
|
|
9
10
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -11,10 +12,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
11
12
|
* The vnodes to render
|
|
12
13
|
*/
|
|
13
14
|
vnodes: {
|
|
14
|
-
type:
|
|
15
|
+
type: PropType<VNode | VNode[]>;
|
|
15
16
|
default: null;
|
|
16
17
|
};
|
|
17
18
|
}>> & Readonly<{}>, {
|
|
18
|
-
vnodes:
|
|
19
|
+
vnodes: VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}> | VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>[];
|
|
19
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
25
|
export default _default;
|
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
name: "NcVNodes",
|
|
3
|
-
props: {
|
|
4
|
-
/**
|
|
5
|
-
* The vnodes to render
|
|
6
|
-
*/
|
|
7
|
-
vnodes: {
|
|
8
|
-
type: [Array, Object],
|
|
9
|
-
default: null
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
/**
|
|
13
|
-
* The render function to display the component
|
|
14
|
-
*
|
|
15
|
-
* @return {object} The created VNode
|
|
16
|
-
*/
|
|
17
|
-
render() {
|
|
18
|
-
return this.vnodes || this.$slots?.default?.({});
|
|
19
|
-
}
|
|
20
|
-
};
|
|
1
|
+
import { _ } from "../../chunks/NcVNodes.vue_vue_type_script_lang-BqUHinRZ.mjs";
|
|
21
2
|
export {
|
|
22
|
-
|
|
3
|
+
_ as default
|
|
23
4
|
};
|
|
24
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -30,6 +30,7 @@ export { default as NcAppNavigationSpacer } from './NcAppNavigationSpacer/index.
|
|
|
30
30
|
export { default as NcAppSettingsDialog } from './NcAppSettingsDialog/index.js';
|
|
31
31
|
export { default as NcAppSettingsSection } from './NcAppSettingsSection/index.js';
|
|
32
32
|
export { default as NcAppSidebar } from './NcAppSidebar/index.js';
|
|
33
|
+
export { default as NcAppSidebarHeader } from './NcAppSidebarHeader/index.ts';
|
|
33
34
|
export { default as NcAppSidebarTab } from './NcAppSidebarTab/index.js';
|
|
34
35
|
export { default as NcAvatar } from './NcAvatar/index.js';
|
|
35
36
|
export { default as NcBlurHash } from './NcBlurHash/index.js';
|
|
@@ -51,7 +52,7 @@ export { default as NcDialog } from './NcDialog/index.js';
|
|
|
51
52
|
export { default as NcDialogButton } from './NcDialogButton/index.js';
|
|
52
53
|
export { default as NcEllipsisedOption } from './NcEllipsisedOption/index.js';
|
|
53
54
|
export { default as NcEmojiPicker } from './NcEmojiPicker/index.js';
|
|
54
|
-
export { default as NcEmptyContent } from './NcEmptyContent/index.
|
|
55
|
+
export { default as NcEmptyContent } from './NcEmptyContent/index.ts';
|
|
55
56
|
export { default as NcGuestContent } from './NcGuestContent/index.js';
|
|
56
57
|
export { default as NcHeaderButton } from './NcHeaderButton/index';
|
|
57
58
|
export { default as NcHeaderMenu } from './NcHeaderMenu/index.js';
|
|
@@ -62,7 +63,6 @@ export { default as NcListItem } from './NcListItem/index.js';
|
|
|
62
63
|
export { default as NcListItemIcon } from './NcListItemIcon/index.js';
|
|
63
64
|
export { default as NcLoadingIcon } from './NcLoadingIcon/index.js';
|
|
64
65
|
export { default as NcModal } from './NcModal/index.js';
|
|
65
|
-
export { default as NcVNodes } from './NcVNodes/index.js';
|
|
66
66
|
export { default as NcNoteCard } from './NcNoteCard/index.js';
|
|
67
67
|
export { default as NcPasswordField } from './NcPasswordField/index.js';
|
|
68
68
|
export { default as NcPopover } from './NcPopover/index.js';
|
|
@@ -81,3 +81,4 @@ export { default as NcTextField } from './NcTextField/index.js';
|
|
|
81
81
|
export { default as NcTimezonePicker } from './NcTimezonePicker/index.ts';
|
|
82
82
|
export { default as NcUserBubble } from './NcUserBubble/index.js';
|
|
83
83
|
export { default as NcUserStatusIcon } from './NcUserStatusIcon/index.js';
|
|
84
|
+
export { default as NcVNodes } from './NcVNodes/index.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../src/directives/Focus/index.
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../src/directives/Focus/index.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { ObjectDirective } from 'vue'\n\nconst directive: ObjectDirective<HTMLElement> = {\n\tmounted(el: HTMLElement) {\n\t\tel.focus()\n\t},\n}\n\nexport default directive\n"],"names":[],"mappings":"AAOA,MAAM,YAA0C;AAAA,EAC/C,QAAQ,IAAiB;AACxB,OAAG,MAAM;AAAA,EAAA;AAEX;"}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
3
3
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
4
4
|
*/
|
|
5
|
-
export { default as Focus } from './Focus/index.
|
|
5
|
+
export { default as Focus } from './Focus/index.ts';
|
|
6
6
|
export { default as Linkify } from './Linkify/index.ts';
|
|
@@ -3,7 +3,14 @@ type ComponentProps<T extends Component> = T extends new (...args: any) => {
|
|
|
3
3
|
$props: infer P;
|
|
4
4
|
} ? P : never;
|
|
5
5
|
type DialogComponent<T extends Component> = 'onClose' extends keyof ComponentProps<T> ? T : 'Please provide a Dialog Component that supports `@close` event';
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Event payload array normalized to a single value when payload has only one argument,
|
|
8
|
+
* including one optional argument
|
|
9
|
+
*/
|
|
10
|
+
type NormalizedPayload<T> = T extends [] ? void : T extends [infer F] ? F : T extends {
|
|
11
|
+
length: 0 | 1;
|
|
12
|
+
0?: infer F;
|
|
13
|
+
} ? F | undefined : T;
|
|
7
14
|
type ClosePayload<T> = T extends {
|
|
8
15
|
onClose?: (...args: infer P) => any;
|
|
9
16
|
} ? P : never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../src/functions/dialog/index.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { Component } from 'vue'\nimport { createApp } from 'vue'\n\ntype ComponentProps<T extends Component> = T extends new (...args: any) => { $props: infer P }\n\t? P\n\t: never\n\ntype DialogComponent<T extends Component> = 'onClose' extends keyof ComponentProps<T>\n\t? T\n\t: 'Please provide a Dialog Component that supports `@close` event'\n\ntype NormalizedPayload<T> = T extends []\n\t? void\n\t: T extends [infer F]\n\t\t? F\n\t\t: T\n\ntype ClosePayload<T> = T extends { onClose?: (...args: infer P) => any }\n\t? P\n\t: never\n\ntype SpawnDialogOptions = {\n\t/**\n\t * Container to mount the dialog to\n\t * @default document.body\n\t */\n\tcontainer?: Element | string\n}\n\n/**\n * Spawn a single-use Vue dialog instance to get the result when it is closed\n *\n * @param dialog - Dialog component to spawn\n * @param props - Props to pass to the dialog instance\n * @param options - Spawning options\n * @return Promise resolved with the `close` event payload\n */\nexport function spawnDialog<\n\tC extends Component,\n\tE extends ClosePayload<ComponentProps<C>>,\n>(dialog: DialogComponent<C>, props: Partial<ComponentProps<C>> = {}, options: SpawnDialogOptions = {}): Promise<NormalizedPayload<E>> {\n\tlet { container } = options\n\n\t// For backwards compatibility try to use container from props\n\tif ('container' in props && typeof props.container === 'string') {\n\t\tcontainer ??= props.container\n\t}\n\n\t// Resolve container to an Element or fallback to document.body\n\tconst resolvedContainer = (typeof container === 'string' && document.querySelector(container)) || document.body\n\n\t// Create root container element for the dialog\n\tconst element = resolvedContainer.appendChild(document.createElement('div'))\n\n\treturn new Promise((resolve, reject) => {\n\t\tconst app = createApp(dialog as Component, {\n\t\t\t...props,\n\t\t\t// If dialog has no `container` prop passing a falsy value does nothing\n\t\t\t// Otherwise it is expected that `null` disables teleport and mounts dialog in place like NcDialog/NcModal\n\t\t\tcontainer: null,\n\t\t\tonClose(...rest: E) {\n\t\t\t\tconst payload = (rest.length > 1 ? rest : rest[0]) as NormalizedPayload<E>\n\n\t\t\t\tapp.unmount()\n\t\t\t\telement.remove()\n\t\t\t\tresolve(payload)\n\t\t\t},\n\t\t\t'onVue:unmounted'() {\n\t\t\t\tapp.unmount()\n\t\t\t\telement.remove()\n\t\t\t\treject(new Error('Dialog was unmounted without close event'))\n\t\t\t},\n\t\t})\n\n\t\tapp.mount(element)\n\t})\n}\n"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../src/functions/dialog/index.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { Component } from 'vue'\nimport { createApp } from 'vue'\n\ntype ComponentProps<T extends Component> = T extends new (...args: any) => { $props: infer P }\n\t? P\n\t: never\n\ntype DialogComponent<T extends Component> = 'onClose' extends keyof ComponentProps<T>\n\t? T\n\t: 'Please provide a Dialog Component that supports `@close` event'\n\n/**\n * Event payload array normalized to a single value when payload has only one argument,\n * including one optional argument\n */\ntype NormalizedPayload<T> = T extends []\n\t? void\n\t: T extends [infer F]\n\t\t? F\n\t\t: T extends { length: 0 | 1, 0?: infer F }\n\t\t\t? F | undefined\n\t\t\t: T\n\ntype ClosePayload<T> = T extends { onClose?: (...args: infer P) => any }\n\t? P\n\t: never\n\ntype SpawnDialogOptions = {\n\t/**\n\t * Container to mount the dialog to\n\t * @default document.body\n\t */\n\tcontainer?: Element | string\n}\n\n/**\n * Spawn a single-use Vue dialog instance to get the result when it is closed\n *\n * @param dialog - Dialog component to spawn\n * @param props - Props to pass to the dialog instance\n * @param options - Spawning options\n * @return Promise resolved with the `close` event payload\n */\nexport function spawnDialog<\n\tC extends Component,\n\tE extends ClosePayload<ComponentProps<C>>,\n>(dialog: DialogComponent<C>, props: Partial<ComponentProps<C>> = {}, options: SpawnDialogOptions = {}): Promise<NormalizedPayload<E>> {\n\tlet { container } = options\n\n\t// For backwards compatibility try to use container from props\n\tif ('container' in props && typeof props.container === 'string') {\n\t\tcontainer ??= props.container\n\t}\n\n\t// Resolve container to an Element or fallback to document.body\n\tconst resolvedContainer = (typeof container === 'string' && document.querySelector(container)) || document.body\n\n\t// Create root container element for the dialog\n\tconst element = resolvedContainer.appendChild(document.createElement('div'))\n\n\treturn new Promise((resolve, reject) => {\n\t\tconst app = createApp(dialog as Component, {\n\t\t\t...props,\n\t\t\t// If dialog has no `container` prop passing a falsy value does nothing\n\t\t\t// Otherwise it is expected that `null` disables teleport and mounts dialog in place like NcDialog/NcModal\n\t\t\tcontainer: null,\n\t\t\tonClose(...rest: E) {\n\t\t\t\tconst payload = (rest.length > 1 ? rest : rest[0]) as NormalizedPayload<E>\n\n\t\t\t\tapp.unmount()\n\t\t\t\telement.remove()\n\t\t\t\tresolve(payload)\n\t\t\t},\n\t\t\t'onVue:unmounted'() {\n\t\t\t\tapp.unmount()\n\t\t\t\telement.remove()\n\t\t\t\treject(new Error('Dialog was unmounted without close event'))\n\t\t\t},\n\t\t})\n\n\t\tapp.mount(element)\n\t})\n}\n"],"names":[],"mappings":";AAiDO,SAAS,YAGd,QAA4B,QAAoC,CAAA,GAAI,UAA8B,CAAA,GAAmC;AAClI,MAAA,EAAE,cAAc;AAGpB,MAAI,eAAe,SAAS,OAAO,MAAM,cAAc,UAAU;AAChE,kBAAc,MAAM;AAAA,EAAA;AAIf,QAAA,oBAAqB,OAAO,cAAc,YAAY,SAAS,cAAc,SAAS,KAAM,SAAS;AAG3G,QAAM,UAAU,kBAAkB,YAAY,SAAS,cAAc,KAAK,CAAC;AAE3E,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACjC,UAAA,MAAM,UAAU,QAAqB;AAAA,MAC1C,GAAG;AAAA;AAAA;AAAA,MAGH,WAAW;AAAA,MACX,WAAW,MAAS;AACnB,cAAM,UAAW,KAAK,SAAS,IAAI,OAAO,KAAK,CAAC;AAEhD,YAAI,QAAQ;AACZ,gBAAQ,OAAO;AACf,gBAAQ,OAAO;AAAA,MAChB;AAAA,MACA,oBAAoB;AACnB,YAAI,QAAQ;AACZ,gBAAQ,OAAO;AACR,eAAA,IAAI,MAAM,0CAA0C,CAAC;AAAA,MAAA;AAAA,IAC7D,CACA;AAED,QAAI,MAAM,OAAO;AAAA,EAAA,CACjB;AACF;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { N, h, d, i, b, r, c, a } from "../../chunks/index-BF8joS9W.mjs";
|
|
2
|
-
import { a as a2, g, b as b2, c as c2, d as d2, s } from "../../chunks/referencePickerModal-
|
|
2
|
+
import { a as a2, g, b as b2, c as c2, d as d2, s } from "../../chunks/referencePickerModal-CMgdGDsm.mjs";
|
|
3
3
|
export {
|
|
4
4
|
N as NcCustomPickerRenderResult,
|
|
5
5
|
a2 as anyLinkProviderId,
|