mirror of
https://github.com/nextcloud/server.git
synced 2026-05-23 10:37:27 -04:00
chore: rebuild frontend assets
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
This commit is contained in:
parent
15279b44d8
commit
61b00b20c8
172 changed files with 155 additions and 155 deletions
|
|
@ -1,2 +1,2 @@
|
|||
import{a as t}from"./index-C1xmmKTZ-XKFVqjxi.chunk.mjs";import{t as e}from"./translation-DoG5ZELJ-8aobdbPK.chunk.mjs";import{C as m,a}from"./CommentView-i-vD_4je.chunk.mjs";import{l as p}from"./activity-DdSAHrqw.chunk.mjs";import{b as i,r as s,o as n,c,m as u}from"./preload-helper-D9xEqq8S.chunk.mjs";import{_ as l}from"./public-CvthP4YJ.chunk.mjs";import"./NcDialog-nDc1gW50-BF3zId_C.chunk.mjs";import"./NcModal-kyWZ3UFC-DO8otox5.chunk.mjs";import"./ArrowRight-YxbwZNEK.chunk.mjs";import"./Web-7MW_v0ET.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./TrashCanOutline-COIylzhj.chunk.mjs";import"./mdi-B3j1XNhV.chunk.mjs";import"./pinia-BhysKopn.chunk.mjs";import"./PencilOutline-BE2yOTiX.chunk.mjs";/* empty css */import"./NcAvatar-ruClKRzS-B7xYQpkD.chunk.mjs";import"./index-DqG-5vGV.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./colors-BfjxNgsx-DzIYAbgd.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-YBMsdL44.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-CEiPv5af.chunk.mjs";import"./NcUserBubble-BE6yD-R0-SSK_qJmL.chunk.mjs";import"./GetComments-CLT9798q.chunk.mjs";import"./index-6X1fPKhd.chunk.mjs";const d=i({components:{Comment:a},mixins:[m],props:{reloadCallback:{type:Function,required:!0}},methods:{onNewComment(){try{this.reloadCallback()}catch(o){t(e("comments","Could not reload comments")),p.error("Could not reload comments",{error:o})}}}});function C(o,f,y,w,D,N){const r=s("Comment");return n(),c(r,u(o.editorData,{autoComplete:o.autoComplete,resourceType:o.resourceType,editor:!0,userData:o.userData,resourceId:o.resourceId,class:"comments-action",onNew:o.onNewComment}),null,16,["autoComplete","resourceType","userData","resourceId","onNew"])}const R=l(d,[["render",C],["__scopeId","data-v-29a1e244"]]);export{R as default};
|
||||
//# sourceMappingURL=ActivityCommentAction-405nWX-y.chunk.mjs.map
|
||||
import{a as t}from"./index-C1xmmKTZ-D9UcfQ8l.chunk.mjs";import{t as e}from"./translation-DoG5ZELJ-8aobdbPK.chunk.mjs";import{C as m,a}from"./CommentView-BcLEW8jI.chunk.mjs";import{l as p}from"./activity-DdSAHrqw.chunk.mjs";import{b as i,r as s,o as n,c,m as u}from"./preload-helper-D9xEqq8S.chunk.mjs";import{_ as l}from"./public-CvthP4YJ.chunk.mjs";import"./NcDialog-nDc1gW50-3T3eF19-.chunk.mjs";import"./NcModal-kyWZ3UFC-CERVOxI8.chunk.mjs";import"./ArrowRight-YxbwZNEK.chunk.mjs";import"./Web-7MW_v0ET.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./TrashCanOutline-COIylzhj.chunk.mjs";import"./mdi-B3j1XNhV.chunk.mjs";import"./pinia-BhysKopn.chunk.mjs";import"./PencilOutline-BxS_o9Cp.chunk.mjs";/* empty css */import"./NcAvatar-ruClKRzS-Cdu1JNz7.chunk.mjs";import"./index-DqG-5vGV.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./colors-BfjxNgsx-DzIYAbgd.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-YBMsdL44.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-BwW7u5_-.chunk.mjs";import"./NcUserBubble-BE6yD-R0-3FBPn44i.chunk.mjs";import"./GetComments-CLT9798q.chunk.mjs";import"./index-6X1fPKhd.chunk.mjs";const d=i({components:{Comment:a},mixins:[m],props:{reloadCallback:{type:Function,required:!0}},methods:{onNewComment(){try{this.reloadCallback()}catch(o){t(e("comments","Could not reload comments")),p.error("Could not reload comments",{error:o})}}}});function C(o,f,y,w,D,N){const r=s("Comment");return n(),c(r,u(o.editorData,{autoComplete:o.autoComplete,resourceType:o.resourceType,editor:!0,userData:o.userData,resourceId:o.resourceId,class:"comments-action",onNew:o.onNewComment}),null,16,["autoComplete","resourceType","userData","resourceId","onNew"])}const R=l(d,[["render",C],["__scopeId","data-v-29a1e244"]]);export{R as default};
|
||||
//# sourceMappingURL=ActivityCommentAction-je_NAOcD.chunk.mjs.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"ActivityCommentAction-405nWX-y.chunk.mjs","sources":["../build/frontend/apps/comments/src/views/ActivityCommentAction.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<Comment\n\t\tv-bind=\"editorData\"\n\t\t:autoComplete=\"autoComplete\"\n\t\t:resourceType=\"resourceType\"\n\t\t:editor=\"true\"\n\t\t:userData=\"userData\"\n\t\t:resourceId=\"resourceId\"\n\t\tclass=\"comments-action\"\n\t\t@new=\"onNewComment\" />\n</template>\n\n<script lang=\"ts\">\nimport { showError } from '@nextcloud/dialogs'\nimport { t } from '@nextcloud/l10n'\nimport { defineComponent } from 'vue'\nimport Comment from '../components/Comment.vue'\nimport logger from '../logger.ts'\nimport CommentView from '../mixins/CommentView.ts'\n\nexport default defineComponent({\n\tcomponents: {\n\t\tComment,\n\t},\n\n\tmixins: [CommentView],\n\tprops: {\n\t\treloadCallback: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonNewComment() {\n\t\t\ttry {\n\t\t\t\t// just force reload\n\t\t\t\tthis.reloadCallback()\n\t\t\t} catch (error) {\n\t\t\t\tshowError(t('comments', 'Could not reload comments'))\n\t\t\t\tlogger.error('Could not reload comments', { error })\n\t\t\t}\n\t\t},\n\t},\n})\n</script>\n\n<style scoped>\n.comments-action {\n\tpadding: 0;\n}\n</style>\n"],"names":["_sfc_main","defineComponent","Comment","CommentView","error","showError","t","logger","_createBlock","_component_Comment","_mergeProps","_ctx"],"mappings":"uqCAyBA,MAAAA,EAAeC,EAAgB,CAC9B,WAAY,CACX,QAAAC,CAAA,EAGD,OAAQ,CAACC,CAAW,EACpB,MAAO,CACN,eAAgB,CACf,KAAM,SACN,SAAU,EAAA,CACX,EAGD,QAAS,CACR,cAAe,CACd,GAAI,CAEH,KAAK,eAAA,CACN,OAASC,EAAO,CACfC,EAAUC,EAAE,WAAY,2BAA2B,CAAC,EACpDC,EAAO,MAAM,4BAA6B,CAAE,MAAAH,CAAA,CAAO,CACpD,CACD,CAAA,CAEF,CAAC,0DA3CAI,EAQuBC,EARvBC,EAQuBC,EAPd,WAAU,CACjB,aAAcA,EAAA,aACd,aAAcA,EAAA,aACd,OAAQ,GACR,SAAUA,EAAA,SACV,WAAYA,EAAA,WACb,MAAM,kBACL,MAAKA,EAAA,YAAA,CAAA,EAAA,KAAA,GAAA,CAAA,eAAA,eAAA,WAAA,aAAA,OAAA,CAAA"}
|
||||
{"version":3,"file":"ActivityCommentAction-je_NAOcD.chunk.mjs","sources":["../build/frontend/apps/comments/src/views/ActivityCommentAction.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<Comment\n\t\tv-bind=\"editorData\"\n\t\t:autoComplete=\"autoComplete\"\n\t\t:resourceType=\"resourceType\"\n\t\t:editor=\"true\"\n\t\t:userData=\"userData\"\n\t\t:resourceId=\"resourceId\"\n\t\tclass=\"comments-action\"\n\t\t@new=\"onNewComment\" />\n</template>\n\n<script lang=\"ts\">\nimport { showError } from '@nextcloud/dialogs'\nimport { t } from '@nextcloud/l10n'\nimport { defineComponent } from 'vue'\nimport Comment from '../components/Comment.vue'\nimport logger from '../logger.ts'\nimport CommentView from '../mixins/CommentView.ts'\n\nexport default defineComponent({\n\tcomponents: {\n\t\tComment,\n\t},\n\n\tmixins: [CommentView],\n\tprops: {\n\t\treloadCallback: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonNewComment() {\n\t\t\ttry {\n\t\t\t\t// just force reload\n\t\t\t\tthis.reloadCallback()\n\t\t\t} catch (error) {\n\t\t\t\tshowError(t('comments', 'Could not reload comments'))\n\t\t\t\tlogger.error('Could not reload comments', { error })\n\t\t\t}\n\t\t},\n\t},\n})\n</script>\n\n<style scoped>\n.comments-action {\n\tpadding: 0;\n}\n</style>\n"],"names":["_sfc_main","defineComponent","Comment","CommentView","error","showError","t","logger","_createBlock","_component_Comment","_mergeProps","_ctx"],"mappings":"uqCAyBA,MAAAA,EAAeC,EAAgB,CAC9B,WAAY,CACX,QAAAC,CAAA,EAGD,OAAQ,CAACC,CAAW,EACpB,MAAO,CACN,eAAgB,CACf,KAAM,SACN,SAAU,EAAA,CACX,EAGD,QAAS,CACR,cAAe,CACd,GAAI,CAEH,KAAK,eAAA,CACN,OAASC,EAAO,CACfC,EAAUC,EAAE,WAAY,2BAA2B,CAAC,EACpDC,EAAO,MAAM,4BAA6B,CAAE,MAAAH,CAAA,CAAO,CACpD,CACD,CAAA,CAEF,CAAC,0DA3CAI,EAQuBC,EARvBC,EAQuBC,EAPd,WAAU,CACjB,aAAcA,EAAA,aACd,aAAcA,EAAA,aACd,OAAQ,GACR,SAAUA,EAAA,SACV,WAAYA,EAAA,WACb,MAAM,kBACL,MAAKA,EAAA,YAAA,CAAA,EAAA,KAAA,GAAA,CAAA,eAAA,eAAA,WAAA,aAAA,OAAA,CAAA"}
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
import{t as s}from"./translation-DoG5ZELJ-8aobdbPK.chunk.mjs";import{C as p,a}from"./CommentView-i-vD_4je.chunk.mjs";import{_ as i}from"./public-CvthP4YJ.chunk.mjs";import{r as n,o as c,c as u,m as l}from"./preload-helper-D9xEqq8S.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./pinia-BhysKopn.chunk.mjs";import"./PencilOutline-BE2yOTiX.chunk.mjs";import"./ArrowRight-YxbwZNEK.chunk.mjs";import"./Web-7MW_v0ET.chunk.mjs";import"./NcModal-kyWZ3UFC-DO8otox5.chunk.mjs";/* empty css */import"./NcAvatar-ruClKRzS-B7xYQpkD.chunk.mjs";import"./index-DqG-5vGV.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./colors-BfjxNgsx-DzIYAbgd.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-YBMsdL44.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-CEiPv5af.chunk.mjs";import"./TrashCanOutline-COIylzhj.chunk.mjs";import"./NcUserBubble-BE6yD-R0-SSK_qJmL.chunk.mjs";import"./index-C1xmmKTZ-XKFVqjxi.chunk.mjs";import"./NcDialog-nDc1gW50-BF3zId_C.chunk.mjs";import"./mdi-B3j1XNhV.chunk.mjs";import"./activity-DdSAHrqw.chunk.mjs";import"./GetComments-CLT9798q.chunk.mjs";import"./index-6X1fPKhd.chunk.mjs";const d={name:"ActivityCommentEntry",components:{Comment:a},mixins:[p],props:{comment:{type:Object,required:!0},reloadCallback:{type:Function,required:!0}},data(){return{commentMessage:""}},watch:{comment(){this.commentMessage=this.comment.props.message}},mounted(){this.commentMessage=this.comment.props.message},methods:{t:s}};function g(t,o,e,f,m,C){const r=n("Comment");return c(),u(r,l({ref:"comment",tag:"li"},e.comment.props,{autoComplete:t.autoComplete,resourceType:t.resourceType,message:m.commentMessage,resourceId:t.resourceId,userData:t.genMentionsData(e.comment.props.mentions),class:"comments-activity",onDelete:o[0]||(o[0]=y=>e.reloadCallback())}),null,16,["autoComplete","resourceType","message","resourceId","userData"])}const P=i(d,[["render",g],["__scopeId","data-v-afc310f1"]]);export{P as default};
|
||||
//# sourceMappingURL=ActivityCommentEntry-Bt73TEE1.chunk.mjs.map
|
||||
import{t as s}from"./translation-DoG5ZELJ-8aobdbPK.chunk.mjs";import{C as p,a}from"./CommentView-BcLEW8jI.chunk.mjs";import{_ as i}from"./public-CvthP4YJ.chunk.mjs";import{r as n,o as c,c as u,m as l}from"./preload-helper-D9xEqq8S.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./pinia-BhysKopn.chunk.mjs";import"./PencilOutline-BxS_o9Cp.chunk.mjs";import"./ArrowRight-YxbwZNEK.chunk.mjs";import"./Web-7MW_v0ET.chunk.mjs";import"./NcModal-kyWZ3UFC-CERVOxI8.chunk.mjs";/* empty css */import"./NcAvatar-ruClKRzS-Cdu1JNz7.chunk.mjs";import"./index-DqG-5vGV.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./colors-BfjxNgsx-DzIYAbgd.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-YBMsdL44.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-BwW7u5_-.chunk.mjs";import"./TrashCanOutline-COIylzhj.chunk.mjs";import"./NcUserBubble-BE6yD-R0-3FBPn44i.chunk.mjs";import"./index-C1xmmKTZ-D9UcfQ8l.chunk.mjs";import"./NcDialog-nDc1gW50-3T3eF19-.chunk.mjs";import"./mdi-B3j1XNhV.chunk.mjs";import"./activity-DdSAHrqw.chunk.mjs";import"./GetComments-CLT9798q.chunk.mjs";import"./index-6X1fPKhd.chunk.mjs";const d={name:"ActivityCommentEntry",components:{Comment:a},mixins:[p],props:{comment:{type:Object,required:!0},reloadCallback:{type:Function,required:!0}},data(){return{commentMessage:""}},watch:{comment(){this.commentMessage=this.comment.props.message}},mounted(){this.commentMessage=this.comment.props.message},methods:{t:s}};function g(t,o,e,f,m,C){const r=n("Comment");return c(),u(r,l({ref:"comment",tag:"li"},e.comment.props,{autoComplete:t.autoComplete,resourceType:t.resourceType,message:m.commentMessage,resourceId:t.resourceId,userData:t.genMentionsData(e.comment.props.mentions),class:"comments-activity",onDelete:o[0]||(o[0]=y=>e.reloadCallback())}),null,16,["autoComplete","resourceType","message","resourceId","userData"])}const P=i(d,[["render",g],["__scopeId","data-v-afc310f1"]]);export{P as default};
|
||||
//# sourceMappingURL=ActivityCommentEntry-Xj4h8BJT.chunk.mjs.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"ActivityCommentEntry-Bt73TEE1.chunk.mjs","sources":["../build/frontend/apps/comments/src/views/ActivityCommentEntry.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<Comment\n\t\tref=\"comment\"\n\t\ttag=\"li\"\n\t\tv-bind=\"comment.props\"\n\t\t:autoComplete=\"autoComplete\"\n\t\t:resourceType=\"resourceType\"\n\t\t:message=\"commentMessage\"\n\t\t:resourceId=\"resourceId\"\n\t\t:userData=\"genMentionsData(comment.props.mentions)\"\n\t\tclass=\"comments-activity\"\n\t\t@delete=\"reloadCallback()\" />\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue'\n\nimport { t } from '@nextcloud/l10n'\nimport Comment from '../components/Comment.vue'\nimport CommentView from '../mixins/CommentView.ts'\n\nexport default {\n\tname: 'ActivityCommentEntry',\n\n\tcomponents: {\n\t\tComment,\n\t},\n\n\tmixins: [CommentView],\n\tprops: {\n\t\tcomment: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\n\t\treloadCallback: {\n\t\t\ttype: Function as PropType<() => void>,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tcommentMessage: '',\n\t\t}\n\t},\n\n\twatch: {\n\t\tcomment() {\n\t\t\tthis.commentMessage = this.comment.props.message\n\t\t},\n\t},\n\n\tmounted() {\n\t\tthis.commentMessage = this.comment.props.message\n\t},\n\n\tmethods: {\n\t\tt,\n\t},\n}\n</script>\n\n<style scoped>\n.comments-activity {\n\tpadding: 0;\n}\n</style>\n"],"names":["_sfc_main","Comment","CommentView","t","_openBlock","_createBlock","_component_Comment","_mergeProps","$props","_ctx","$data","_cache"],"mappings":"6oCA0BA,MAAAA,EAAe,CACd,KAAM,uBAEN,WAAY,CACX,QAAAC,CAAA,EAGD,OAAQ,CAACC,CAAW,EACpB,MAAO,CACN,QAAS,CACR,KAAM,OACN,SAAU,EAAA,EAGX,eAAgB,CACf,KAAM,SACN,SAAU,EAAA,CACX,EAGD,MAAO,CACN,MAAO,CACN,eAAgB,EAAA,CAElB,EAEA,MAAO,CACN,SAAU,CACT,KAAK,eAAiB,KAAK,QAAQ,MAAM,OAC1C,CAAA,EAGD,SAAU,CACT,KAAK,eAAiB,KAAK,QAAQ,MAAM,OAC1C,EAEA,QAAS,CAAA,EACRC,CAAA,CAEF,+CA3DC,OAAAC,EAAA,EAAAC,EAU8BC,EAV9BC,EAU8B,CAT7B,IAAI,UACJ,IAAI,IAAA,EACIC,UAAQ,MAAK,CACpB,aAAcC,EAAA,aACd,aAAcA,EAAA,aACd,QAASC,EAAA,eACT,WAAYD,EAAA,WACZ,SAAUA,EAAA,gBAAgBD,EAAA,QAAQ,MAAM,QAAQ,EACjD,MAAM,oBACL,SAAMG,eAAEH,EAAA,eAAA,EAAc,CAAA,EAAA,KAAA,GAAA,CAAA,eAAA,eAAA,UAAA,aAAA,UAAA,CAAA"}
|
||||
{"version":3,"file":"ActivityCommentEntry-Xj4h8BJT.chunk.mjs","sources":["../build/frontend/apps/comments/src/views/ActivityCommentEntry.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<Comment\n\t\tref=\"comment\"\n\t\ttag=\"li\"\n\t\tv-bind=\"comment.props\"\n\t\t:autoComplete=\"autoComplete\"\n\t\t:resourceType=\"resourceType\"\n\t\t:message=\"commentMessage\"\n\t\t:resourceId=\"resourceId\"\n\t\t:userData=\"genMentionsData(comment.props.mentions)\"\n\t\tclass=\"comments-activity\"\n\t\t@delete=\"reloadCallback()\" />\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue'\n\nimport { t } from '@nextcloud/l10n'\nimport Comment from '../components/Comment.vue'\nimport CommentView from '../mixins/CommentView.ts'\n\nexport default {\n\tname: 'ActivityCommentEntry',\n\n\tcomponents: {\n\t\tComment,\n\t},\n\n\tmixins: [CommentView],\n\tprops: {\n\t\tcomment: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\n\t\treloadCallback: {\n\t\t\ttype: Function as PropType<() => void>,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tcommentMessage: '',\n\t\t}\n\t},\n\n\twatch: {\n\t\tcomment() {\n\t\t\tthis.commentMessage = this.comment.props.message\n\t\t},\n\t},\n\n\tmounted() {\n\t\tthis.commentMessage = this.comment.props.message\n\t},\n\n\tmethods: {\n\t\tt,\n\t},\n}\n</script>\n\n<style scoped>\n.comments-activity {\n\tpadding: 0;\n}\n</style>\n"],"names":["_sfc_main","Comment","CommentView","t","_openBlock","_createBlock","_component_Comment","_mergeProps","$props","_ctx","$data","_cache"],"mappings":"6oCA0BA,MAAAA,EAAe,CACd,KAAM,uBAEN,WAAY,CACX,QAAAC,CAAA,EAGD,OAAQ,CAACC,CAAW,EACpB,MAAO,CACN,QAAS,CACR,KAAM,OACN,SAAU,EAAA,EAGX,eAAgB,CACf,KAAM,SACN,SAAU,EAAA,CACX,EAGD,MAAO,CACN,MAAO,CACN,eAAgB,EAAA,CAElB,EAEA,MAAO,CACN,SAAU,CACT,KAAK,eAAiB,KAAK,QAAQ,MAAM,OAC1C,CAAA,EAGD,SAAU,CACT,KAAK,eAAiB,KAAK,QAAQ,MAAM,OAC1C,EAEA,QAAS,CAAA,EACRC,CAAA,CAEF,+CA3DC,OAAAC,EAAA,EAAAC,EAU8BC,EAV9BC,EAU8B,CAT7B,IAAI,UACJ,IAAI,IAAA,EACIC,UAAQ,MAAK,CACpB,aAAcC,EAAA,aACd,aAAcA,EAAA,aACd,QAASC,EAAA,eACT,WAAYD,EAAA,WACZ,SAAUA,EAAA,gBAAgBD,EAAA,QAAQ,MAAM,QAAQ,EACjD,MAAM,oBACL,SAAMG,eAAEH,EAAA,eAAA,EAAc,CAAA,EAAA,KAAA,GAAA,CAAA,eAAA,eAAA,UAAA,aAAA,UAAA,CAAA"}
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
import{b as y,z as g,u as l,o as r,c as p,P as h,w as v,j as _,t as V,C as b,n as x,f as d,H as K,I as M,K as w,L as U,k as f,l as j}from"./preload-helper-D9xEqq8S.chunk.mjs";import{c as q}from"./index-DqG-5vGV.chunk.mjs";import{a as C}from"./index-C1xmmKTZ-XKFVqjxi.chunk.mjs";import{t as s}from"./translation-DoG5ZELJ-8aobdbPK.chunk.mjs";import{b as L}from"./index-Bp9-GhMo.chunk.mjs";import{N}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as S}from"./NcSelect-B1uITk_3-B0TPRkMI.chunk.mjs";import{N as z}from"./NcCheckboxRadioSwitch-D0gFwEVl-C7shEyvA.chunk.mjs";import{N as A}from"./NcPasswordField-BOLzDHBJ-BKSfVdzU.chunk.mjs";import{_ as E}from"./NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-zA0ct3s7.chunk.mjs";import{a as c,C as k}from"./types-BxtqAax_.chunk.mjs";import{l as P}from"./logger-DJqOozHk.chunk.mjs";const B=y({__name:"ConfigurationEntry",props:b({configKey:{},configOption:{}},{modelValue:{type:[String,Boolean],default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=g(e,"modelValue");return(t,i)=>e.configOption.type!==l(c).Boolean?(r(),p(h(e.configOption.type===l(c).Password?l(A):l(E)),{key:0,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=o=>a.value=o),name:e.configKey,required:!(e.configOption.flags&l(k).Optional),label:e.configOption.value,title:e.configOption.tooltip},null,8,["modelValue","name","required","label","title"])):(r(),p(l(z),{key:1,modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=o=>a.value=o),type:"switch",title:e.configOption.tooltip},{default:v(()=>[_(V(e.configOption.value),1)]),_:1},8,["modelValue","title"]))}}),R=y({__name:"AuthMechanismRsa",props:b({authMechanism:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=g(e,"modelValue"),t=j();x(t,()=>{t.value&&(a.value.private_key="",a.value.public_key="")});async function i(){try{const{data:o}=await q.post(L("/apps/files_external/ajax/public_key.php"),{keyLength:t.value});a.value.private_key=o.data.private_key,a.value.public_key=o.data.public_key}catch(o){P.error("Error generating RSA key pair",{error:o}),C(s("files_external","Error generating key pair"))}}return(o,m)=>(r(),d("div",null,[(r(!0),d(K,null,M(e.authMechanism.configuration,(n,u)=>w((r(),p(B,{key:n.value,modelValue:a.value[u],"onUpdate:modelValue":O=>a.value[u]=O,configKey:u,configOption:n},null,8,["modelValue","onUpdate:modelValue","configKey","configOption"])),[[U,!(n.flags&l(k).Hidden)]])),128)),f(l(S),{modelValue:t.value,"onUpdate:modelValue":m[0]||(m[0]=n=>t.value=n),clearable:!1,inputLabel:l(s)("files_external","Key size"),options:[1024,2048,4096],required:""},null,8,["modelValue","inputLabel"]),f(l(N),{disabled:!t.value,wide:"",onClick:i},{default:v(()=>[_(V(l(s)("files_external","Generate keys")),1)]),_:1},8,["disabled"])]))}}),$=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));export{$ as A,B as _};
|
||||
//# sourceMappingURL=AuthMechanismRsa-CTDsZajz.chunk.mjs.map
|
||||
import{b as y,z as g,u as l,o as r,c as p,P as h,w as v,j as _,t as V,C as b,n as x,f as d,H as K,I as M,K as w,L as U,k as f,l as j}from"./preload-helper-D9xEqq8S.chunk.mjs";import{c as q}from"./index-DqG-5vGV.chunk.mjs";import{a as C}from"./index-C1xmmKTZ-D9UcfQ8l.chunk.mjs";import{t as s}from"./translation-DoG5ZELJ-8aobdbPK.chunk.mjs";import{b as L}from"./index-Bp9-GhMo.chunk.mjs";import{N}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as S}from"./NcSelect-B1uITk_3-CfU6clNa.chunk.mjs";import{N as z}from"./NcCheckboxRadioSwitch-D0gFwEVl-C7shEyvA.chunk.mjs";import{N as A}from"./NcPasswordField-BOLzDHBJ-BKSfVdzU.chunk.mjs";import{_ as E}from"./NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-zA0ct3s7.chunk.mjs";import{a as c,C as k}from"./types-BxtqAax_.chunk.mjs";import{l as P}from"./logger-DJqOozHk.chunk.mjs";const B=y({__name:"ConfigurationEntry",props:b({configKey:{},configOption:{}},{modelValue:{type:[String,Boolean],default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=g(e,"modelValue");return(t,i)=>e.configOption.type!==l(c).Boolean?(r(),p(h(e.configOption.type===l(c).Password?l(A):l(E)),{key:0,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=o=>a.value=o),name:e.configKey,required:!(e.configOption.flags&l(k).Optional),label:e.configOption.value,title:e.configOption.tooltip},null,8,["modelValue","name","required","label","title"])):(r(),p(l(z),{key:1,modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=o=>a.value=o),type:"switch",title:e.configOption.tooltip},{default:v(()=>[_(V(e.configOption.value),1)]),_:1},8,["modelValue","title"]))}}),R=y({__name:"AuthMechanismRsa",props:b({authMechanism:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=g(e,"modelValue"),t=j();x(t,()=>{t.value&&(a.value.private_key="",a.value.public_key="")});async function i(){try{const{data:o}=await q.post(L("/apps/files_external/ajax/public_key.php"),{keyLength:t.value});a.value.private_key=o.data.private_key,a.value.public_key=o.data.public_key}catch(o){P.error("Error generating RSA key pair",{error:o}),C(s("files_external","Error generating key pair"))}}return(o,m)=>(r(),d("div",null,[(r(!0),d(K,null,M(e.authMechanism.configuration,(n,u)=>w((r(),p(B,{key:n.value,modelValue:a.value[u],"onUpdate:modelValue":O=>a.value[u]=O,configKey:u,configOption:n},null,8,["modelValue","onUpdate:modelValue","configKey","configOption"])),[[U,!(n.flags&l(k).Hidden)]])),128)),f(l(S),{modelValue:t.value,"onUpdate:modelValue":m[0]||(m[0]=n=>t.value=n),clearable:!1,inputLabel:l(s)("files_external","Key size"),options:[1024,2048,4096],required:""},null,8,["modelValue","inputLabel"]),f(l(N),{disabled:!t.value,wide:"",onClick:i},{default:v(()=>[_(V(l(s)("files_external","Generate keys")),1)]),_:1},8,["disabled"])]))}}),$=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));export{$ as A,B as _};
|
||||
//# sourceMappingURL=AuthMechanismRsa-Djy768m5.chunk.mjs.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
|||
import{t}from"./translation-DoG5ZELJ-8aobdbPK.chunk.mjs";import{N as u}from"./NcDialog-nDc1gW50-BF3zId_C.chunk.mjs";import{N as d}from"./mdi-B3j1XNhV.chunk.mjs";import{N as p}from"./NcPasswordField-BOLzDHBJ-BKSfVdzU.chunk.mjs";import{_ as c}from"./NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-zA0ct3s7.chunk.mjs";import{b as g,o as f,c as h,w as x,k as s,u as e,l as n}from"./preload-helper-D9xEqq8S.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./NcModal-kyWZ3UFC-DO8otox5.chunk.mjs";import"./ArrowRight-YxbwZNEK.chunk.mjs";import"./Web-7MW_v0ET.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";import"./TrashCanOutline-COIylzhj.chunk.mjs";import"./index-DqG-5vGV.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcInputField-CPL-a_MM-BYLCq7JD.chunk.mjs";const D=g({__name:"CredentialsDialog",emits:["close"],setup(_){const o=n(""),r=n(""),m=[{label:t("files_external","Confirm"),type:"submit",variant:"primary"}];return(i,a)=>(f(),h(e(u),{buttons:m,class:"external-storage-auth",closeOnClickOutside:"","data-cy-external-storage-auth":"",isForm:"",name:e(t)("files_external","Storage credentials"),outTransition:"",onSubmit:a[2]||(a[2]=l=>i.$emit("close",{login:o.value,password:r.value})),"onUpdate:open":a[3]||(a[3]=l=>i.$emit("close"))},{default:x(()=>[s(e(d),{class:"external-storage-auth__header",text:e(t)("files_external","To access the storage, you need to provide the authentication credentials."),type:"info"},null,8,["text"]),s(e(c),{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),autofocus:"",class:"external-storage-auth__login","data-cy-external-storage-auth-dialog-login":"",label:e(t)("files_external","Login"),placeholder:e(t)("files_external","Enter the storage login"),minlength:"2",name:"login",required:""},null,8,["modelValue","label","placeholder"]),s(e(p),{modelValue:r.value,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value=l),class:"external-storage-auth__password","data-cy-external-storage-auth-dialog-password":"",label:e(t)("files_external","Password"),placeholder:e(t)("files_external","Enter the storage password"),name:"password",required:""},null,8,["modelValue","label","placeholder"])]),_:1},8,["name"]))}});export{D as default};
|
||||
//# sourceMappingURL=CredentialsDialog-CxElPbaA.chunk.mjs.map
|
||||
import{t}from"./translation-DoG5ZELJ-8aobdbPK.chunk.mjs";import{N as u}from"./NcDialog-nDc1gW50-3T3eF19-.chunk.mjs";import{N as d}from"./mdi-B3j1XNhV.chunk.mjs";import{N as p}from"./NcPasswordField-BOLzDHBJ-BKSfVdzU.chunk.mjs";import{_ as c}from"./NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-zA0ct3s7.chunk.mjs";import{b as g,o as f,c as h,w as x,k as s,u as e,l as n}from"./preload-helper-D9xEqq8S.chunk.mjs";import"./index-Bp9-GhMo.chunk.mjs";import"./NcModal-kyWZ3UFC-CERVOxI8.chunk.mjs";import"./ArrowRight-YxbwZNEK.chunk.mjs";import"./Web-7MW_v0ET.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";import"./TrashCanOutline-COIylzhj.chunk.mjs";import"./index-DqG-5vGV.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./NcInputField-CPL-a_MM-BYLCq7JD.chunk.mjs";const D=g({__name:"CredentialsDialog",emits:["close"],setup(_){const o=n(""),r=n(""),m=[{label:t("files_external","Confirm"),type:"submit",variant:"primary"}];return(i,a)=>(f(),h(e(u),{buttons:m,class:"external-storage-auth",closeOnClickOutside:"","data-cy-external-storage-auth":"",isForm:"",name:e(t)("files_external","Storage credentials"),outTransition:"",onSubmit:a[2]||(a[2]=l=>i.$emit("close",{login:o.value,password:r.value})),"onUpdate:open":a[3]||(a[3]=l=>i.$emit("close"))},{default:x(()=>[s(e(d),{class:"external-storage-auth__header",text:e(t)("files_external","To access the storage, you need to provide the authentication credentials."),type:"info"},null,8,["text"]),s(e(c),{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),autofocus:"",class:"external-storage-auth__login","data-cy-external-storage-auth-dialog-login":"",label:e(t)("files_external","Login"),placeholder:e(t)("files_external","Enter the storage login"),minlength:"2",name:"login",required:""},null,8,["modelValue","label","placeholder"]),s(e(p),{modelValue:r.value,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value=l),class:"external-storage-auth__password","data-cy-external-storage-auth-dialog-password":"",label:e(t)("files_external","Password"),placeholder:e(t)("files_external","Enter the storage password"),name:"password",required:""},null,8,["modelValue","label","placeholder"])]),_:1},8,["name"]))}});export{D as default};
|
||||
//# sourceMappingURL=CredentialsDialog-B4en-AQo.chunk.mjs.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"CredentialsDialog-CxElPbaA.chunk.mjs","sources":["../build/frontend/apps/files_external/src/views/CredentialsDialog.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport { t } from '@nextcloud/l10n'\nimport { ref } from 'vue'\nimport NcDialog from '@nextcloud/vue/components/NcDialog'\nimport NcNoteCard from '@nextcloud/vue/components/NcNoteCard'\nimport NcPasswordField from '@nextcloud/vue/components/NcPasswordField'\nimport NcTextField from '@nextcloud/vue/components/NcTextField'\n\ndefineEmits<{\n\tclose: [payload?: { login: string, password: string }]\n}>()\n\nconst login = ref('')\nconst password = ref('')\n\nconst dialogButtons: InstanceType<typeof NcDialog>['buttons'] = [{\n\tlabel: t('files_external', 'Confirm'),\n\ttype: 'submit',\n\tvariant: 'primary',\n}]\n</script>\n\n<template>\n\t<NcDialog\n\t\t:buttons=\"dialogButtons\"\n\t\tclass=\"external-storage-auth\"\n\t\tcloseOnClickOutside\n\t\tdata-cy-external-storage-auth\n\t\tisForm\n\t\t:name=\"t('files_external', 'Storage credentials')\"\n\t\toutTransition\n\t\t@submit=\"$emit('close', { login, password })\"\n\t\t@update:open=\"$emit('close')\">\n\t\t<!-- Header -->\n\t\t<NcNoteCard\n\t\t\tclass=\"external-storage-auth__header\"\n\t\t\t:text=\"t('files_external', 'To access the storage, you need to provide the authentication credentials.')\"\n\t\t\ttype=\"info\" />\n\n\t\t<!-- Login -->\n\t\t<NcTextField\n\t\t\tv-model=\"login\"\n\t\t\tautofocus\n\t\t\tclass=\"external-storage-auth__login\"\n\t\t\tdata-cy-external-storage-auth-dialog-login\n\t\t\t:label=\"t('files_external', 'Login')\"\n\t\t\t:placeholder=\"t('files_external', 'Enter the storage login')\"\n\t\t\tminlength=\"2\"\n\t\t\tname=\"login\"\n\t\t\trequired />\n\n\t\t<!-- Password -->\n\t\t<NcPasswordField\n\t\t\tv-model=\"password\"\n\t\t\tclass=\"external-storage-auth__password\"\n\t\t\tdata-cy-external-storage-auth-dialog-password\n\t\t\t:label=\"t('files_external', 'Password')\"\n\t\t\t:placeholder=\"t('files_external', 'Enter the storage password')\"\n\t\t\tname=\"password\"\n\t\t\trequired />\n\t</NcDialog>\n</template>\n"],"names":["login","ref","password","dialogButtons","t","_createBlock","_unref","NcDialog","_cache","$event","$emit","_createVNode","NcNoteCard","NcTextField","NcPasswordField"],"mappings":"y0BAiBA,MAAMA,EAAQC,EAAI,EAAE,EACdC,EAAWD,EAAI,EAAE,EAEjBE,EAA0D,CAAC,CAChE,MAAOC,EAAE,iBAAkB,SAAS,EACpC,KAAM,SACN,QAAS,SAAA,CACT,oBAIAC,EAqCWC,EAAAC,CAAA,EAAA,CApCT,QAASJ,EACV,MAAM,wBACN,oBAAA,GACA,gCAAA,GACA,OAAA,GACC,KAAMG,EAAAF,CAAA,EAAC,iBAAA,qBAAA,EACR,cAAA,GACC,SAAMI,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAAEC,EAAAA,MAAK,QAAA,CAAA,MAAYV,EAAA,eAAOE,EAAA,MAAQ,GACxC,+BAAaQ,EAAAA,MAAK,OAAA,EAAA,aAEnB,IAGe,CAHfC,EAGeL,EAAAM,CAAA,EAAA,CAFd,MAAM,gCACL,KAAMN,EAAAF,CAAA,EAAC,iBAAA,4EAAA,EACR,KAAK,MAAA,mBAGNO,EASYL,EAAAO,CAAA,EAAA,YARFb,EAAA,2CAAAA,EAAK,MAAAS,GACd,UAAA,GACA,MAAM,+BACN,6CAAA,GACC,MAAOH,EAAAF,CAAA,EAAC,iBAAA,OAAA,EACR,YAAaE,EAAAF,CAAA,EAAC,iBAAA,yBAAA,EACf,UAAU,IACV,KAAK,QACL,SAAA,EAAA,+CAGDO,EAOYL,EAAAQ,CAAA,EAAA,YANFZ,EAAA,2CAAAA,EAAQ,MAAAO,GACjB,MAAM,kCACN,gDAAA,GACC,MAAOH,EAAAF,CAAA,EAAC,iBAAA,UAAA,EACR,YAAaE,EAAAF,CAAA,EAAC,iBAAA,4BAAA,EACf,KAAK,WACL,SAAA,EAAA"}
|
||||
{"version":3,"file":"CredentialsDialog-B4en-AQo.chunk.mjs","sources":["../build/frontend/apps/files_external/src/views/CredentialsDialog.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport { t } from '@nextcloud/l10n'\nimport { ref } from 'vue'\nimport NcDialog from '@nextcloud/vue/components/NcDialog'\nimport NcNoteCard from '@nextcloud/vue/components/NcNoteCard'\nimport NcPasswordField from '@nextcloud/vue/components/NcPasswordField'\nimport NcTextField from '@nextcloud/vue/components/NcTextField'\n\ndefineEmits<{\n\tclose: [payload?: { login: string, password: string }]\n}>()\n\nconst login = ref('')\nconst password = ref('')\n\nconst dialogButtons: InstanceType<typeof NcDialog>['buttons'] = [{\n\tlabel: t('files_external', 'Confirm'),\n\ttype: 'submit',\n\tvariant: 'primary',\n}]\n</script>\n\n<template>\n\t<NcDialog\n\t\t:buttons=\"dialogButtons\"\n\t\tclass=\"external-storage-auth\"\n\t\tcloseOnClickOutside\n\t\tdata-cy-external-storage-auth\n\t\tisForm\n\t\t:name=\"t('files_external', 'Storage credentials')\"\n\t\toutTransition\n\t\t@submit=\"$emit('close', { login, password })\"\n\t\t@update:open=\"$emit('close')\">\n\t\t<!-- Header -->\n\t\t<NcNoteCard\n\t\t\tclass=\"external-storage-auth__header\"\n\t\t\t:text=\"t('files_external', 'To access the storage, you need to provide the authentication credentials.')\"\n\t\t\ttype=\"info\" />\n\n\t\t<!-- Login -->\n\t\t<NcTextField\n\t\t\tv-model=\"login\"\n\t\t\tautofocus\n\t\t\tclass=\"external-storage-auth__login\"\n\t\t\tdata-cy-external-storage-auth-dialog-login\n\t\t\t:label=\"t('files_external', 'Login')\"\n\t\t\t:placeholder=\"t('files_external', 'Enter the storage login')\"\n\t\t\tminlength=\"2\"\n\t\t\tname=\"login\"\n\t\t\trequired />\n\n\t\t<!-- Password -->\n\t\t<NcPasswordField\n\t\t\tv-model=\"password\"\n\t\t\tclass=\"external-storage-auth__password\"\n\t\t\tdata-cy-external-storage-auth-dialog-password\n\t\t\t:label=\"t('files_external', 'Password')\"\n\t\t\t:placeholder=\"t('files_external', 'Enter the storage password')\"\n\t\t\tname=\"password\"\n\t\t\trequired />\n\t</NcDialog>\n</template>\n"],"names":["login","ref","password","dialogButtons","t","_createBlock","_unref","NcDialog","_cache","$event","$emit","_createVNode","NcNoteCard","NcTextField","NcPasswordField"],"mappings":"y0BAiBA,MAAMA,EAAQC,EAAI,EAAE,EACdC,EAAWD,EAAI,EAAE,EAEjBE,EAA0D,CAAC,CAChE,MAAOC,EAAE,iBAAkB,SAAS,EACpC,KAAM,SACN,QAAS,SAAA,CACT,oBAIAC,EAqCWC,EAAAC,CAAA,EAAA,CApCT,QAASJ,EACV,MAAM,wBACN,oBAAA,GACA,gCAAA,GACA,OAAA,GACC,KAAMG,EAAAF,CAAA,EAAC,iBAAA,qBAAA,EACR,cAAA,GACC,SAAMI,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAAEC,EAAAA,MAAK,QAAA,CAAA,MAAYV,EAAA,eAAOE,EAAA,MAAQ,GACxC,+BAAaQ,EAAAA,MAAK,OAAA,EAAA,aAEnB,IAGe,CAHfC,EAGeL,EAAAM,CAAA,EAAA,CAFd,MAAM,gCACL,KAAMN,EAAAF,CAAA,EAAC,iBAAA,4EAAA,EACR,KAAK,MAAA,mBAGNO,EASYL,EAAAO,CAAA,EAAA,YARFb,EAAA,2CAAAA,EAAK,MAAAS,GACd,UAAA,GACA,MAAM,+BACN,6CAAA,GACC,MAAOH,EAAAF,CAAA,EAAC,iBAAA,OAAA,EACR,YAAaE,EAAAF,CAAA,EAAC,iBAAA,yBAAA,EACf,UAAU,IACV,KAAK,QACL,SAAA,EAAA,+CAGDO,EAOYL,EAAAQ,CAAA,EAAA,YANFZ,EAAA,2CAAAA,EAAQ,MAAAO,GACjB,MAAM,kCACN,gDAAA,GACC,MAAOH,EAAAF,CAAA,EAAC,iBAAA,UAAA,EACR,YAAaE,EAAAF,CAAA,EAAC,iBAAA,4BAAA,EACf,KAAK,WACL,SAAA,EAAA"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,4 @@
|
|||
import{a as x}from"./index-C1xmmKTZ-XKFVqjxi.chunk.mjs";import{t as y}from"./translation-DoG5ZELJ-8aobdbPK.chunk.mjs";import{v as M}from"./NcAvatar-ruClKRzS-B7xYQpkD.chunk.mjs";import{N}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as S}from"./NcEmptyContent-CDgWCt_m-SjrDEqRZ.chunk.mjs";import{_ as f}from"./public-CvthP4YJ.chunk.mjs";import{f as r,g as I,t as p,h as d,m as h,o as s,K as z,k as c,H as C,c as _,w as g,I as O,F,ae as L,r as m,j as $,b as B,D as q}from"./preload-helper-D9xEqq8S.chunk.mjs";import{C as P,a as b}from"./CommentView-i-vD_4je.chunk.mjs";import{l as v}from"./activity-DdSAHrqw.chunk.mjs";import{c as j,g as U,D as w}from"./GetComments-CLT9798q.chunk.mjs";const E={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Z=["aria-hidden","aria-label"],K=["fill","width","height"],G={d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"},J={key:0};function Q(t,o,e,a,i,n){return s(),r("span",h(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon alert-circle-outline-icon",role:"img",onClick:o[0]||(o[0]=l=>t.$emit("click",l))}),[(s(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[I("path",G,[e.title?(s(),r("title",J,p(e.title),1)):d("",!0)])],8,K))],16,Z)}const W=f(E,[["render",Q]]),X={name:"MessageReplyTextOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Y=["aria-hidden","aria-label"],ee=["fill","width","height"],te={d:"M9 11H18V13H9V11M18 7H6V9H18V7M22 4V22L18 18H4C2.9 18 2 17.11 2 16V4C2 2.9 2.9 2 4 2H20C21.1 2 22 2.89 22 4M20 4H4V16H18.83L20 17.17V4Z"},oe={key:0};function se(t,o,e,a,i,n){return s(),r("span",h(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon message-reply-text-outline-icon",role:"img",onClick:o[0]||(o[0]=l=>t.$emit("click",l))}),[(s(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[I("path",te,[e.title?(s(),r("title",oe,p(e.title),1)):d("",!0)])],8,ee))],16,Y)}const re=f(X,[["render",se]]),ie={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ne=["aria-hidden","aria-label"],ae=["fill","width","height"],le={d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"},ce={key:0};function me(t,o,e,a,i,n){return s(),r("span",h(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon refresh-icon",role:"img",onClick:o[0]||(o[0]=l=>t.$emit("click",l))}),[(s(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[I("path",le,[e.title?(s(),r("title",ce,p(e.title),1)):d("",!0)])],8,ae))],16,ne)}const de=f(ie,[["render",me]]);function ue(t,o,e){const a=["",t,o].join("/"),i=e.toUTCString();return j.customRequest(a,{method:"PROPPATCH",data:`<?xml version="1.0"?>
|
||||
import{a as x}from"./index-C1xmmKTZ-D9UcfQ8l.chunk.mjs";import{t as y}from"./translation-DoG5ZELJ-8aobdbPK.chunk.mjs";import{v as M}from"./NcAvatar-ruClKRzS-Cdu1JNz7.chunk.mjs";import{N}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as S}from"./NcEmptyContent-CDgWCt_m-SjrDEqRZ.chunk.mjs";import{_ as f}from"./public-CvthP4YJ.chunk.mjs";import{f as r,g as I,t as p,h as d,m as h,o as s,K as z,k as c,H as C,c as _,w as g,I as O,F,ae as L,r as m,j as $,b as B,D as q}from"./preload-helper-D9xEqq8S.chunk.mjs";import{C as P,a as b}from"./CommentView-BcLEW8jI.chunk.mjs";import{l as v}from"./activity-DdSAHrqw.chunk.mjs";import{c as j,g as U,D as w}from"./GetComments-CLT9798q.chunk.mjs";const E={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Z=["aria-hidden","aria-label"],K=["fill","width","height"],G={d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"},J={key:0};function Q(t,o,e,a,i,n){return s(),r("span",h(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon alert-circle-outline-icon",role:"img",onClick:o[0]||(o[0]=l=>t.$emit("click",l))}),[(s(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[I("path",G,[e.title?(s(),r("title",J,p(e.title),1)):d("",!0)])],8,K))],16,Z)}const W=f(E,[["render",Q]]),X={name:"MessageReplyTextOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Y=["aria-hidden","aria-label"],ee=["fill","width","height"],te={d:"M9 11H18V13H9V11M18 7H6V9H18V7M22 4V22L18 18H4C2.9 18 2 17.11 2 16V4C2 2.9 2.9 2 4 2H20C21.1 2 22 2.89 22 4M20 4H4V16H18.83L20 17.17V4Z"},oe={key:0};function se(t,o,e,a,i,n){return s(),r("span",h(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon message-reply-text-outline-icon",role:"img",onClick:o[0]||(o[0]=l=>t.$emit("click",l))}),[(s(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[I("path",te,[e.title?(s(),r("title",oe,p(e.title),1)):d("",!0)])],8,ee))],16,Y)}const re=f(X,[["render",se]]),ie={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ne=["aria-hidden","aria-label"],ae=["fill","width","height"],le={d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"},ce={key:0};function me(t,o,e,a,i,n){return s(),r("span",h(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon refresh-icon",role:"img",onClick:o[0]||(o[0]=l=>t.$emit("click",l))}),[(s(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[I("path",le,[e.title?(s(),r("title",ce,p(e.title),1)):d("",!0)])],8,ae))],16,ne)}const de=f(ie,[["render",me]]);function ue(t,o,e){const a=["",t,o].join("/"),i=e.toUTCString();return j.customRequest(a,{method:"PROPPATCH",data:`<?xml version="1.0"?>
|
||||
<d:propertyupdate
|
||||
xmlns:d="DAV:"
|
||||
xmlns:oc="http://owncloud.org/ns">
|
||||
|
|
@ -8,4 +8,4 @@ import{a as x}from"./index-C1xmmKTZ-XKFVqjxi.chunk.mjs";import{t as y}from"./tra
|
|||
</d:prop>
|
||||
</d:set>
|
||||
</d:propertyupdate>`})}function pe(t){const o=new AbortController,e=o.signal;return{request:async function(a,i){return await t(a,{signal:e,...i})},abort:()=>o.abort()}}const he={name:"CommentsApp",components:{Comment:b,NcEmptyContent:S,NcButton:N,IconRefresh:de,IconMessageReplyTextOutline:re,IconAlertCircleOutline:W},directives:{elementVisibility:M},mixins:[P],expose:["update"],data(){return{error:"",loading:!1,done:!1,offset:0,comments:[],cancelRequest:()=>{},Comment:b,userData:{}}},computed:{hasComments(){return this.comments.length>0},isFirstLoading(){return this.loading&&this.offset===0}},watch:{resourceId(){this.currentResourceId=this.resourceId}},methods:{t:y,async onVisibilityChange(t){if(t)try{await ue(this.resourceType,this.currentResourceId,new Date)}catch(o){x(o.message||y("comments","Failed to mark comments as read"))}},async update(t){this.currentResourceId=t,this.resetState(),await this.getComments()},onScrollBottomReached(){this.error||this.done||this.loading||this.getComments()},async getComments(){this.cancelRequest("cancel");try{this.loading=!0,this.error="";const{request:t,abort:o}=pe(U);this.cancelRequest=o;const{data:e}=await t({resourceType:this.resourceType,resourceId:this.currentResourceId},{offset:this.offset})||{data:[]};this.logger.debug(`Processed ${e.length} comments`,{comments:e}),e.length<w&&(this.done=!0);for(const a of e)a.props.actorId=a.props.actorId.toString();this.comments=[...this.comments,...e],this.offset+=w}catch(t){if(t.message==="cancel")return;this.error=y("comments","Unable to load the comments list"),v.error("Error loading the comments list",{error:t})}finally{this.loading=!1}},onNewComment(t){this.comments.unshift(t)},onDelete(t){const o=this.comments.findIndex(e=>e.props.id===t);o>-1?this.comments.splice(o,1):v.error("Could not find the deleted comment in the list",{id:t})},resetState(){this.error="",this.loading=!1,this.done=!1,this.offset=0,this.comments=[]}}},ge={key:1},fe={key:2,class:"comments__info icon-loading"},ye={key:3,class:"comments__info"};function Ce(t,o,e,a,i,n){const l=m("Comment"),V=m("IconMessageReplyTextOutline"),k=m("NcEmptyContent"),R=m("IconAlertCircleOutline"),A=m("IconRefresh"),T=m("NcButton"),D=L("element-visibility");return z((s(),r("div",{class:F(["comments",{"icon-loading":n.isFirstLoading}])},[c(l,h(t.editorData,{editor:"",autoComplete:t.autoComplete,resourceType:t.resourceType,userData:i.userData,resourceId:t.currentResourceId,class:"comments__writer",onNew:n.onNewComment}),null,16,["autoComplete","resourceType","userData","resourceId","onNew"]),n.isFirstLoading?d("",!0):(s(),r(C,{key:0},[!n.hasComments&&i.done?(s(),_(k,{key:0,class:"comments__empty",name:n.t("comments","No comments yet, start the conversation!")},{icon:g(()=>[c(V)]),_:1},8,["name"])):(s(),r("ul",ge,[(s(!0),r(C,null,O(i.comments,u=>(s(),_(l,h({key:u.props.id,modelValue:u.props.message,"onUpdate:modelValue":H=>u.props.message=H,tag:"li"},{ref_for:!0},u.props,{autoComplete:t.autoComplete,resourceType:t.resourceType,resourceId:t.currentResourceId,userData:t.genMentionsData(u.props.mentions),class:"comments__list",onDelete:n.onDelete}),null,16,["modelValue","onUpdate:modelValue","autoComplete","resourceType","resourceId","userData","onDelete"]))),128))])),i.loading&&!n.isFirstLoading?(s(),r("div",fe)):n.hasComments&&i.done?(s(),r("div",ye,p(n.t("comments","No more messages")),1)):i.error?(s(),r(C,{key:4},[c(k,{class:"comments__error",name:i.error},{icon:g(()=>[c(R)]),_:1},8,["name"]),c(T,{class:"comments__retry",onClick:n.getComments},{icon:g(()=>[c(A)]),default:g(()=>[$(" "+p(n.t("comments","Retry")),1)]),_:1},8,["onClick"])],64)):d("",!0)],64))],2)),[[D,n.onVisibilityChange]])}const _e=f(he,[["render",Ce],["__scopeId","data-v-2295a278"]]),Ie=B({__name:"FilesSidebarTab",props:{node:{},active:{type:Boolean},folder:{},view:{}},setup(t){const o=t,e=q(()=>o.node?.fileid);return(a,i)=>e.value!==void 0?(s(),_(_e,{key:e.value,resourceId:e.value,resourceType:"files"},null,8,["resourceId"])):d("",!0)}}),xe=Object.freeze(Object.defineProperty({__proto__:null,default:Ie},Symbol.toStringTag,{value:"Module"}));export{_e as C,xe as F};
|
||||
//# sourceMappingURL=FilesSidebarTab-Ba3R5IDp.chunk.mjs.map
|
||||
//# sourceMappingURL=FilesSidebarTab-B9_T3qDw.chunk.mjs.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
|||
import{A as d}from"./PencilOutline-BE2yOTiX.chunk.mjs";import{j as _,B as b,C as S}from"./NcModal-kyWZ3UFC-DO8otox5.chunk.mjs";import{_ as f}from"./Web-7MW_v0ET.chunk.mjs";import{o as a,f as o,g as n,i as x,R as g,F as k,t as l,h as y,r as I,k as h,w as v,b as w,u as T,D as m,a1 as p}from"./preload-helper-D9xEqq8S.chunk.mjs";const L={name:"NcActionLink",mixins:[d],inject:{isInSemanticMenu:{from:_,default:!1}},props:{href:{type:String,required:!0,validator:e=>{try{return new URL(e)}catch{return e.startsWith("#")||e.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:e=>e&&(!e.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(e)>-1)},title:{type:String,default:null}}},M=["role"],U=["download","href","aria-label","target","title","role"],j={key:0,class:"action-link__longtext-wrapper"},N={class:"action-link__name"},R=["textContent"],$=["textContent"],A={key:2,class:"action-link__text"};function B(e,t,i,u,c,r){return a(),o("li",{class:"action",role:r.isInSemanticMenu&&"presentation"},[n("a",{download:i.download,href:i.href,"aria-label":e.ariaLabel,target:i.target,title:i.title,class:"action-link focusable",rel:"nofollow noreferrer noopener",role:r.isInSemanticMenu&&"menuitem",onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},[x(e.$slots,"icon",{},()=>[n("span",{"aria-hidden":"true",class:k(["action-link__icon",[e.isIconUrl?"action-link__icon--url":e.icon]]),style:g({backgroundImage:e.isIconUrl?`url(${e.icon})`:null})},null,6)],!0),e.name?(a(),o("span",j,[n("strong",N,l(e.name),1),t[1]||(t[1]=n("br",null,null,-1)),n("span",{class:"action-link__longtext",textContent:l(e.text)},null,8,R)])):e.isLongText?(a(),o("span",{key:1,class:"action-link__longtext",textContent:l(e.text)},null,8,$)):(a(),o("span",A,l(e.text),1)),y("",!0)],8,U)],8,M)}const X=f(L,[["render",B],["__scopeId","data-v-32f01b7a"]]),W={name:"NcActionRouter",mixins:[d],inject:{isInSemanticMenu:{from:_,default:!1}},props:{to:{type:[String,Object],required:!0}}},q=["role"],D={key:0,class:"action-router__longtext-wrapper"},O={class:"action-router__name"},F=["textContent"],z=["textContent"],E={key:2,class:"action-router__text"};function G(e,t,i,u,c,r){const s=I("RouterLink");return a(),o("li",{class:"action",role:r.isInSemanticMenu&&"presentation"},[h(s,{"aria-label":e.ariaLabel,class:"action-router focusable",rel:"nofollow noreferrer noopener",role:r.isInSemanticMenu&&"menuitem",title:e.title,to:i.to,onClick:e.onClick},{default:v(()=>[x(e.$slots,"icon",{},()=>[n("span",{"aria-hidden":"true",class:k(["action-router__icon",[e.isIconUrl?"action-router__icon--url":e.icon]]),style:g({backgroundImage:e.isIconUrl?`url(${e.icon})`:null})},null,6)],!0),e.name?(a(),o("span",D,[n("strong",O,l(e.name),1),t[0]||(t[0]=n("br",null,null,-1)),n("span",{class:"action-router__longtext",textContent:l(e.text)},null,8,F)])):e.isLongText?(a(),o("span",{key:1,class:"action-router__longtext",textContent:l(e.text)},null,8,z)):(a(),o("span",E,l(e.text),1)),y("",!0)]),_:3},8,["aria-label","role","title","to","onClick"])],8,q)}const Y=f(W,[["render",G],["__scopeId","data-v-87267750"]]),H=["data-timestamp","title","textContent"],Z=w({__name:"NcDateTime",props:{timestamp:{},format:{default:()=>({timeStyle:"medium",dateStyle:"short"})},relativeTime:{type:[Boolean,String],default:"long"},ignoreSeconds:{type:Boolean}},setup(e){const t=e,i=m(()=>({format:t.format})),u=m(()=>({ignoreSeconds:t.ignoreSeconds,relativeTime:t.relativeTime||"long",update:t.relativeTime!==!1})),c=S(p(()=>t.timestamp),i),r=b(p(()=>t.timestamp),u),s=m(()=>t.relativeTime?r.value:c.value);return(C,J)=>(a(),o("span",{class:"nc-datetime",dir:"auto","data-timestamp":C.timestamp,title:T(c),textContent:l(s.value)},null,8,H))}});export{X as N,Z as _,Y as a};
|
||||
//# sourceMappingURL=NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-CEiPv5af.chunk.mjs.map
|
||||
import{A as d}from"./PencilOutline-BxS_o9Cp.chunk.mjs";import{j as _,B as b,C as S}from"./NcModal-kyWZ3UFC-CERVOxI8.chunk.mjs";import{_ as f}from"./Web-7MW_v0ET.chunk.mjs";import{o as a,f as o,g as n,i as x,R as g,F as k,t as l,h as y,r as I,k as h,w as v,b as w,u as T,D as m,a1 as p}from"./preload-helper-D9xEqq8S.chunk.mjs";const L={name:"NcActionLink",mixins:[d],inject:{isInSemanticMenu:{from:_,default:!1}},props:{href:{type:String,required:!0,validator:e=>{try{return new URL(e)}catch{return e.startsWith("#")||e.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:e=>e&&(!e.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(e)>-1)},title:{type:String,default:null}}},M=["role"],U=["download","href","aria-label","target","title","role"],j={key:0,class:"action-link__longtext-wrapper"},N={class:"action-link__name"},R=["textContent"],$=["textContent"],A={key:2,class:"action-link__text"};function B(e,t,i,u,c,r){return a(),o("li",{class:"action",role:r.isInSemanticMenu&&"presentation"},[n("a",{download:i.download,href:i.href,"aria-label":e.ariaLabel,target:i.target,title:i.title,class:"action-link focusable",rel:"nofollow noreferrer noopener",role:r.isInSemanticMenu&&"menuitem",onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},[x(e.$slots,"icon",{},()=>[n("span",{"aria-hidden":"true",class:k(["action-link__icon",[e.isIconUrl?"action-link__icon--url":e.icon]]),style:g({backgroundImage:e.isIconUrl?`url(${e.icon})`:null})},null,6)],!0),e.name?(a(),o("span",j,[n("strong",N,l(e.name),1),t[1]||(t[1]=n("br",null,null,-1)),n("span",{class:"action-link__longtext",textContent:l(e.text)},null,8,R)])):e.isLongText?(a(),o("span",{key:1,class:"action-link__longtext",textContent:l(e.text)},null,8,$)):(a(),o("span",A,l(e.text),1)),y("",!0)],8,U)],8,M)}const X=f(L,[["render",B],["__scopeId","data-v-32f01b7a"]]),W={name:"NcActionRouter",mixins:[d],inject:{isInSemanticMenu:{from:_,default:!1}},props:{to:{type:[String,Object],required:!0}}},q=["role"],D={key:0,class:"action-router__longtext-wrapper"},O={class:"action-router__name"},F=["textContent"],z=["textContent"],E={key:2,class:"action-router__text"};function G(e,t,i,u,c,r){const s=I("RouterLink");return a(),o("li",{class:"action",role:r.isInSemanticMenu&&"presentation"},[h(s,{"aria-label":e.ariaLabel,class:"action-router focusable",rel:"nofollow noreferrer noopener",role:r.isInSemanticMenu&&"menuitem",title:e.title,to:i.to,onClick:e.onClick},{default:v(()=>[x(e.$slots,"icon",{},()=>[n("span",{"aria-hidden":"true",class:k(["action-router__icon",[e.isIconUrl?"action-router__icon--url":e.icon]]),style:g({backgroundImage:e.isIconUrl?`url(${e.icon})`:null})},null,6)],!0),e.name?(a(),o("span",D,[n("strong",O,l(e.name),1),t[0]||(t[0]=n("br",null,null,-1)),n("span",{class:"action-router__longtext",textContent:l(e.text)},null,8,F)])):e.isLongText?(a(),o("span",{key:1,class:"action-router__longtext",textContent:l(e.text)},null,8,z)):(a(),o("span",E,l(e.text),1)),y("",!0)]),_:3},8,["aria-label","role","title","to","onClick"])],8,q)}const Y=f(W,[["render",G],["__scopeId","data-v-87267750"]]),H=["data-timestamp","title","textContent"],Z=w({__name:"NcDateTime",props:{timestamp:{},format:{default:()=>({timeStyle:"medium",dateStyle:"short"})},relativeTime:{type:[Boolean,String],default:"long"},ignoreSeconds:{type:Boolean}},setup(e){const t=e,i=m(()=>({format:t.format})),u=m(()=>({ignoreSeconds:t.ignoreSeconds,relativeTime:t.relativeTime||"long",update:t.relativeTime!==!1})),c=S(p(()=>t.timestamp),i),r=b(p(()=>t.timestamp),u),s=m(()=>t.relativeTime?r.value:c.value);return(C,J)=>(a(),o("span",{class:"nc-datetime",dir:"auto","data-timestamp":C.timestamp,title:T(c),textContent:l(s.value)},null,8,H))}});export{X as N,Z as _,Y as a};
|
||||
//# sourceMappingURL=NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-BwW7u5_-.chunk.mjs.map
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
|||
import{e as Q,b as z,o as u,c as v,w as y,j as U,t as A,i as b,u as d,h as B,l as F,z as j,E as G,A as D,g as p,P as H,m as h,Q as J,F as E,f as L,H as K,I as W,C as O,D as r}from"./preload-helper-D9xEqq8S.chunk.mjs";import{u as X,N as Y}from"./NcModal-kyWZ3UFC-DO8otox5.chunk.mjs";import{r as Z,b as R,N as aa,i as ea,_ as la,c as ta}from"./Web-7MW_v0ET.chunk.mjs";import{N as oa}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as na}from"./TrashCanOutline-COIylzhj.chunk.mjs";function ya(c,n={},i={}){let{container:e}=i;"container"in n&&typeof n.container=="string"&&(e??=n.container);const t=(typeof e=="string"&&document.querySelector(e)||document.body).appendChild(document.createElement("div"));return new Promise((m,l)=>{const s=Q(c,{...n,container:null,onClose(...o){const f=o.length>1?o:o[0];s.unmount(),t.remove(),m(f)},"onVue:unmounted":()=>{s.unmount(),t.remove(),l(new Error("Dialog was unmounted without close event"))}});s.mount(t)})}Z(ea);const ia=z({__name:"NcDialogButton",props:{callback:{type:Function,default:()=>{}},disabled:{type:Boolean,default:!1},icon:{default:void 0},label:{},type:{default:"button"},variant:{default:"tertiary"}},emits:["click"],setup(c,{emit:n}){const i=c,e=n,t=F(!1);async function m(l){if(!t.value){t.value=!0;try{const s=i.type==="reset"?!1:void 0,o=await i.callback?.()??s;o!==!1&&e("click",l,o)}finally{t.value=!1}}}return(l,s)=>(u(),v(d(oa),{"aria-label":l.label,disabled:l.disabled,type:l.type,variant:l.variant,onClick:m},{icon:y(()=>[b(l.$slots,"icon",{},()=>[t.value?(u(),v(d(na),{key:0,name:d(R)("Loading …")},null,8,["name"])):l.icon!==void 0?(u(),v(d(aa),{key:1,svg:l.icon},null,8,["svg"])):B("",!0)])]),default:y(()=>[U(A(l.label)+" ",1)]),_:3},8,["aria-label","disabled","type","variant"]))}}),sa=["id","textContent"],ua=["aria-label","aria-labelledby"],ra={class:"dialog__text"},da={class:"dialog__actions"},ca=z({__name:"NcDialog",props:O({name:{},message:{default:""},additionalTrapElements:{default:()=>[]},container:{default:"body"},size:{default:"small"},buttons:{default:()=>[]},isForm:{type:Boolean},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},outTransition:{type:Boolean},navigationAriaLabel:{default:""},navigationAriaLabelledby:{default:""},contentClasses:{default:""},dialogClasses:{default:""},navigationClasses:{default:""}},{open:{type:Boolean,default:!0},openModifiers:{}}),emits:O(["closing","reset","submit"],["update:open"]),setup(c,{emit:n}){const i=j(c,"open"),e=c,t=n,m=G(),l=D("wrapper"),{width:s}=X(l,{width:900,height:0}),o=r(()=>s.value<876),f=r(()=>m?.navigation!==void 0),_=ta(),$=r(()=>e.navigationAriaLabel||void 0),I=r(()=>{if(!e.navigationAriaLabel)return e.navigationAriaLabelledby||_}),N=D("dialogElement"),C=r(()=>e.isForm&&!f.value?"form":"div"),V=r(()=>C.value!=="form"?{}:{submit(a){a.preventDefault(),t("submit",a)},reset(a){a.preventDefault(),t("reset",a)}}),w=F(!0);function P(a,g){a.type==="submit"&&C.value==="form"&&"reportValidity"in N.value&&!N.value.reportValidity()||(T(g),window.setTimeout(()=>x(),300))}function T(a){w.value=!1,t("closing",a)}function x(){w.value=!0,i.value=!1}const S=r(()=>({noClose:e.noClose,container:e.container===void 0?"body":e.container,labelId:_,size:e.size,show:i.value&&w.value,outTransition:e.outTransition,closeOnClickOutside:e.closeOnClickOutside,additionalTrapElements:e.additionalTrapElements}));return(a,g)=>i.value?(u(),v(d(Y),h({key:0,class:"dialog__modal",disableSwipe:""},S.value,{onClose:x,"onUpdate:show":g[0]||(g[0]=k=>T())}),{default:y(()=>[p("h2",{id:d(_),class:"dialog__name",textContent:A(a.name)},null,8,sa),(u(),v(H(C.value),h({ref:"dialogElement",class:["dialog",a.dialogClasses]},J(V.value)),{default:y(()=>[p("div",{ref:"wrapper",class:E(["dialog__wrapper",[{"dialog__wrapper--collapsed":o.value}]])},[f.value?(u(),L("nav",{key:0,class:E(["dialog__navigation",a.navigationClasses]),"aria-label":$.value,"aria-labelledby":I.value},[b(a.$slots,"navigation",{isCollapsed:o.value},void 0,!0)],10,ua)):B("",!0),p("div",{class:E(["dialog__content",a.contentClasses])},[b(a.$slots,"default",{},()=>[p("p",ra,A(a.message),1)],!0)],2)],2),p("div",da,[b(a.$slots,"actions",{},()=>[(u(!0),L(K,null,W(a.buttons,(k,q)=>(u(),v(d(ia),h({key:q},{ref_for:!0},k,{onClick:(va,M)=>P(k,M)}),null,16,["onClick"]))),128))],!0)])]),_:3},16,["class"]))]),_:3},16)):B("",!0)}}),_a=la(ca,[["__scopeId","data-v-24e91b99"]]);export{_a as N,ya as s};
|
||||
//# sourceMappingURL=NcDialog-nDc1gW50-BF3zId_C.chunk.mjs.map
|
||||
import{e as Q,b as z,o as u,c as v,w as y,j as U,t as A,i as b,u as d,h as B,l as F,z as j,E as G,A as D,g as p,P as H,m as h,Q as J,F as E,f as L,H as K,I as W,C as O,D as r}from"./preload-helper-D9xEqq8S.chunk.mjs";import{u as X,N as Y}from"./NcModal-kyWZ3UFC-CERVOxI8.chunk.mjs";import{r as Z,b as R,N as aa,i as ea,_ as la,c as ta}from"./Web-7MW_v0ET.chunk.mjs";import{N as oa}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as na}from"./TrashCanOutline-COIylzhj.chunk.mjs";function ya(c,n={},i={}){let{container:e}=i;"container"in n&&typeof n.container=="string"&&(e??=n.container);const t=(typeof e=="string"&&document.querySelector(e)||document.body).appendChild(document.createElement("div"));return new Promise((m,l)=>{const s=Q(c,{...n,container:null,onClose(...o){const f=o.length>1?o:o[0];s.unmount(),t.remove(),m(f)},"onVue:unmounted":()=>{s.unmount(),t.remove(),l(new Error("Dialog was unmounted without close event"))}});s.mount(t)})}Z(ea);const ia=z({__name:"NcDialogButton",props:{callback:{type:Function,default:()=>{}},disabled:{type:Boolean,default:!1},icon:{default:void 0},label:{},type:{default:"button"},variant:{default:"tertiary"}},emits:["click"],setup(c,{emit:n}){const i=c,e=n,t=F(!1);async function m(l){if(!t.value){t.value=!0;try{const s=i.type==="reset"?!1:void 0,o=await i.callback?.()??s;o!==!1&&e("click",l,o)}finally{t.value=!1}}}return(l,s)=>(u(),v(d(oa),{"aria-label":l.label,disabled:l.disabled,type:l.type,variant:l.variant,onClick:m},{icon:y(()=>[b(l.$slots,"icon",{},()=>[t.value?(u(),v(d(na),{key:0,name:d(R)("Loading …")},null,8,["name"])):l.icon!==void 0?(u(),v(d(aa),{key:1,svg:l.icon},null,8,["svg"])):B("",!0)])]),default:y(()=>[U(A(l.label)+" ",1)]),_:3},8,["aria-label","disabled","type","variant"]))}}),sa=["id","textContent"],ua=["aria-label","aria-labelledby"],ra={class:"dialog__text"},da={class:"dialog__actions"},ca=z({__name:"NcDialog",props:O({name:{},message:{default:""},additionalTrapElements:{default:()=>[]},container:{default:"body"},size:{default:"small"},buttons:{default:()=>[]},isForm:{type:Boolean},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},outTransition:{type:Boolean},navigationAriaLabel:{default:""},navigationAriaLabelledby:{default:""},contentClasses:{default:""},dialogClasses:{default:""},navigationClasses:{default:""}},{open:{type:Boolean,default:!0},openModifiers:{}}),emits:O(["closing","reset","submit"],["update:open"]),setup(c,{emit:n}){const i=j(c,"open"),e=c,t=n,m=G(),l=D("wrapper"),{width:s}=X(l,{width:900,height:0}),o=r(()=>s.value<876),f=r(()=>m?.navigation!==void 0),_=ta(),$=r(()=>e.navigationAriaLabel||void 0),I=r(()=>{if(!e.navigationAriaLabel)return e.navigationAriaLabelledby||_}),N=D("dialogElement"),C=r(()=>e.isForm&&!f.value?"form":"div"),V=r(()=>C.value!=="form"?{}:{submit(a){a.preventDefault(),t("submit",a)},reset(a){a.preventDefault(),t("reset",a)}}),w=F(!0);function P(a,g){a.type==="submit"&&C.value==="form"&&"reportValidity"in N.value&&!N.value.reportValidity()||(T(g),window.setTimeout(()=>x(),300))}function T(a){w.value=!1,t("closing",a)}function x(){w.value=!0,i.value=!1}const S=r(()=>({noClose:e.noClose,container:e.container===void 0?"body":e.container,labelId:_,size:e.size,show:i.value&&w.value,outTransition:e.outTransition,closeOnClickOutside:e.closeOnClickOutside,additionalTrapElements:e.additionalTrapElements}));return(a,g)=>i.value?(u(),v(d(Y),h({key:0,class:"dialog__modal",disableSwipe:""},S.value,{onClose:x,"onUpdate:show":g[0]||(g[0]=k=>T())}),{default:y(()=>[p("h2",{id:d(_),class:"dialog__name",textContent:A(a.name)},null,8,sa),(u(),v(H(C.value),h({ref:"dialogElement",class:["dialog",a.dialogClasses]},J(V.value)),{default:y(()=>[p("div",{ref:"wrapper",class:E(["dialog__wrapper",[{"dialog__wrapper--collapsed":o.value}]])},[f.value?(u(),L("nav",{key:0,class:E(["dialog__navigation",a.navigationClasses]),"aria-label":$.value,"aria-labelledby":I.value},[b(a.$slots,"navigation",{isCollapsed:o.value},void 0,!0)],10,ua)):B("",!0),p("div",{class:E(["dialog__content",a.contentClasses])},[b(a.$slots,"default",{},()=>[p("p",ra,A(a.message),1)],!0)],2)],2),p("div",da,[b(a.$slots,"actions",{},()=>[(u(!0),L(K,null,W(a.buttons,(k,q)=>(u(),v(d(ia),h({key:q},{ref_for:!0},k,{onClick:(va,M)=>P(k,M)}),null,16,["onClick"]))),128))],!0)])]),_:3},16,["class"]))]),_:3},16)):B("",!0)}}),_a=la(ca,[["__scopeId","data-v-24e91b99"]]);export{_a as N,ya as s};
|
||||
//# sourceMappingURL=NcDialog-nDc1gW50-3T3eF19-.chunk.mjs.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,4 @@
|
|||
import{r as V,h as N,b as r,_ as x}from"./Web-7MW_v0ET.chunk.mjs";import{l as g}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as c,a as T}from"./NcSelect-B1uITk_3-B0TPRkMI.chunk.mjs";import{c as O}from"./index-DqG-5vGV.chunk.mjs";import{h as v}from"./index-Bp9-GhMo.chunk.mjs";import{r as m,o as w,c as F,B as S,I as $,w as n,i as A,N as D,O as I,k as h,m as P}from"./preload-helper-D9xEqq8S.chunk.mjs";V(N);function u(e){let t={};if(e.nodeType===1){if(e.attributes.length>0){t["@attributes"]={};for(let s=0;s<e.attributes.length;s++){const o=e.attributes.item(s);t["@attributes"][o.nodeName]=o.nodeValue}}}else e.nodeType===3&&(t=e.nodeValue);if(e.hasChildNodes())for(let s=0;s<e.childNodes.length;s++){const o=e.childNodes.item(s),a=o.nodeName;if(typeof t[a]>"u")t[a]=u(o);else{if(typeof t[a].push>"u"){const l=t[a];t[a]=[],t[a].push(l)}t[a].push(u(o))}}return t}function B(e){let t=null;try{t=new DOMParser().parseFromString(e,"text/xml")}catch(s){g.error("[NcSelectTags] Failed to parse xml document",{error:s})}return t}function f(e){const t=u(B(e))["d:multistatus"]["d:response"],s=[];for(const o in t){const a=t[o]["d:propstat"];a["d:status"]["#text"]==="HTTP/1.1 200 OK"&&s.push({id:parseInt(a["d:prop"]["oc:id"]["#text"]),displayName:a["d:prop"]["oc:display-name"]["#text"],canAssign:a["d:prop"]["oc:can-assign"]["#text"]==="true",userAssignable:a["d:prop"]["oc:user-assignable"]["#text"]==="true",userVisible:a["d:prop"]["oc:user-visible"]["#text"]==="true"})}return s}async function L(){if(window.NextcloudVueDocs)return Promise.resolve(f(window.NextcloudVueDocs.tags));const e=await O({method:"PROPFIND",url:v("dav")+"/systemtags/",data:`<?xml version="1.0"?>
|
||||
import{r as V,h as N,b as r,_ as x}from"./Web-7MW_v0ET.chunk.mjs";import{l as g}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as c,a as T}from"./NcSelect-B1uITk_3-CfU6clNa.chunk.mjs";import{c as O}from"./index-DqG-5vGV.chunk.mjs";import{h as v}from"./index-Bp9-GhMo.chunk.mjs";import{r as m,o as w,c as F,B as S,I as $,w as n,i as A,N as D,O as I,k as h,m as P}from"./preload-helper-D9xEqq8S.chunk.mjs";V(N);function u(e){let t={};if(e.nodeType===1){if(e.attributes.length>0){t["@attributes"]={};for(let s=0;s<e.attributes.length;s++){const o=e.attributes.item(s);t["@attributes"][o.nodeName]=o.nodeValue}}}else e.nodeType===3&&(t=e.nodeValue);if(e.hasChildNodes())for(let s=0;s<e.childNodes.length;s++){const o=e.childNodes.item(s),a=o.nodeName;if(typeof t[a]>"u")t[a]=u(o);else{if(typeof t[a].push>"u"){const l=t[a];t[a]=[],t[a].push(l)}t[a].push(u(o))}}return t}function B(e){let t=null;try{t=new DOMParser().parseFromString(e,"text/xml")}catch(s){g.error("[NcSelectTags] Failed to parse xml document",{error:s})}return t}function f(e){const t=u(B(e))["d:multistatus"]["d:response"],s=[];for(const o in t){const a=t[o]["d:propstat"];a["d:status"]["#text"]==="HTTP/1.1 200 OK"&&s.push({id:parseInt(a["d:prop"]["oc:id"]["#text"]),displayName:a["d:prop"]["oc:display-name"]["#text"],canAssign:a["d:prop"]["oc:can-assign"]["#text"]==="true",userAssignable:a["d:prop"]["oc:user-assignable"]["#text"]==="true",userVisible:a["d:prop"]["oc:user-visible"]["#text"]==="true"})}return s}async function L(){if(window.NextcloudVueDocs)return Promise.resolve(f(window.NextcloudVueDocs.tags));const e=await O({method:"PROPFIND",url:v("dav")+"/systemtags/",data:`<?xml version="1.0"?>
|
||||
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
|
||||
<d:prop>
|
||||
<oc:id />
|
||||
|
|
@ -8,4 +8,4 @@ import{r as V,h as N,b as r,_ as x}from"./Web-7MW_v0ET.chunk.mjs";import{l as g}
|
|||
<oc:can-assign />
|
||||
</d:prop>
|
||||
</d:propfind>`});return f(e.data)}const E={name:"NcSelectTags",components:{NcEllipsisedOption:T,NcSelect:c},props:{...c.props,fetchTags:{type:Boolean,default:!0},getOptionLabel:{type:Function,default:e=>{const{displayName:t,userVisible:s,userAssignable:o}=e;return s===!1?r("{tag} (invisible)",{tag:t}):o===!1?r("{tag} (restricted)",{tag:t}):t}},limit:{type:Number,default:5},multiple:{type:Boolean,default:!0},optionsFilter:{type:Function,default:null},passthru:{type:Boolean,default:!1},placeholder:{type:String,default:r("Select a tag")},modelValue:{type:[Number,Array,Object],default:null}," ":{}},emits:["update:modelValue"," "],data(){return{search:"",availableTags:[]}},computed:{availableOptions(){return this.optionsFilter?this.tags.filter(this.optionsFilter):this.tags},localValue(){return this.passthru?this.modelValue:this.tags.length===0?[]:this.multiple?this.modelValue.filter(e=>e!=="").map(e=>this.tags.find(t=>t.id===e)):this.tags.find(e=>e.id===this.modelValue)},propsToForward(){const e={...this.$props};return delete e.fetchTags,delete e.optionsFilter,delete e.passthru,e},tags(){return this.fetchTags?this.availableTags:this.options}},async created(){if(this.fetchTags)try{const e=await L();this.availableTags=e}catch(e){g.error("[NcSelectTags] Loading systemtags failed",e)}},methods:{handleInput(e){if(this.passthru){this.$emit("update:modelValue",e);return}this.multiple?this.$emit("update:modelValue",e.map(t=>t.id)):e===null?this.$emit("update:modelValue",null):this.$emit("update:modelValue",e.id)}}};function _(e,t,s,o,a,l){const p=m("NcEllipsisedOption"),b=m("NcSelect");return w(),F(b,P(l.propsToForward,{options:l.availableOptions,closeOnSelect:!s.multiple,modelValue:l.localValue,onSearch:t[0]||(t[0]=i=>a.search=i),"onUpdate:modelValue":l.handleInput}),S({option:n(i=>[h(p,{name:s.getOptionLabel(i),search:a.search},null,8,["name","search"])]),"selected-option":n(i=>[h(p,{name:s.getOptionLabel(i),search:a.search},null,8,["name","search"])]),_:2},[$(e.$slots,(i,d)=>({name:d,fn:n(y=>[A(e.$slots,d,D(I(y)))])}))]),1040,["options","closeOnSelect","modelValue","onUpdate:modelValue"])}const K=x(E,[["render",_]]);export{K as N};
|
||||
//# sourceMappingURL=NcSelectTags-B3_tcJAf-DlWHH7QM.chunk.mjs.map
|
||||
//# sourceMappingURL=NcSelectTags-B3_tcJAf-oA3TyNBM.chunk.mjs.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
|||
import{R as U}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as z}from"./NcAvatar-ruClKRzS-B7xYQpkD.chunk.mjs";import{y as R}from"./NcModal-kyWZ3UFC-DO8otox5.chunk.mjs";import{_ as y}from"./Web-7MW_v0ET.chunk.mjs";import{b as k,z as x,n as S,o as l,c,w as i,i as o,P as b,m as B,k as C,R as L,g as M,t as j,f as g,h as D,C as f,D as s,aj as H}from"./preload-helper-D9xEqq8S.chunk.mjs";const P={};function T(r,n){return l(),g("div",null,[o(r.$slots,"trigger")])}const W=y(P,[["render",T]]),q={class:"user-bubble__name"},A={key:0,class:"user-bubble__secondary"},E=k({__name:"NcUserBubble",props:f({avatarImage:{default:void 0},user:{default:void 0},displayName:{default:void 0},showUserStatus:{type:Boolean},url:{default:void 0},to:{default:void 0},primary:{type:Boolean},size:{default:20},margin:{default:2}},{open:{type:Boolean},openModifiers:{}}),emits:f(["click"],["update:open"]),setup(r,{emit:n}){const d=x(r,"open"),e=r,_=n,p=s(()=>{if(!e.avatarImage)return!1;try{return!!new URL(e.avatarImage)}catch{return!1}}),m=s(()=>!!e.avatarImage),h=s(()=>({marginInlineStart:`${e.margin}px`})),v=s(()=>{if(!e.url||e.url.trim()==="")return!1;try{return!!new URL(e.url,e.url?.startsWith?.("/")?window.location.href:void 0)}catch{return H("[NcUserBubble] Invalid URL passed",{url:e.url}),!1}}),w=s(()=>v.value?e.url:void 0),N=s(()=>v.value?"a":e.to?U:"div"),I=s(()=>({height:`${e.size}px`,lineHeight:`${e.size}px`,borderRadius:`${e.size/2}px`}));return S([()=>e.displayName,()=>e.user],()=>{!e.displayName&&e.user}),(a,t)=>(l(),c(b(a.$slots.default?R:W),{shown:d.value,"onUpdate:shown":t[1]||(t[1]=u=>d.value=u),class:"user-bubble__wrapper",trigger:"hover focus"},{trigger:i(({attrs:u})=>[(l(),c(b(N.value),B({class:["user-bubble__content",{"user-bubble__content--primary":a.primary}],style:I.value,to:a.to,href:w.value},u,{onClick:t[0]||(t[0]=$=>_("click",$))}),{default:i(()=>[C(z,{url:m.value&&p.value?a.avatarImage:void 0,iconClass:m.value&&!p.value?a.avatarImage:void 0,user:a.user,displayName:a.displayName,size:a.size-a.margin*2,style:L(h.value),disableTooltip:"",disableMenu:"",hideStatus:!a.showUserStatus,class:"user-bubble__avatar"},null,8,["url","iconClass","user","displayName","size","style","hideStatus"]),M("span",q,j(a.displayName||a.user),1),a.$slots.name?(l(),g("span",A,[o(a.$slots,"name",{},void 0,!0)])):D("",!0)]),_:2},1040,["class","style","to","href"]))]),default:i(()=>[o(a.$slots,"default",{},void 0,!0)]),_:3},40,["shown"]))}}),K=y(E,[["__scopeId","data-v-9189d023"]]);export{K as N};
|
||||
//# sourceMappingURL=NcUserBubble-BE6yD-R0-SSK_qJmL.chunk.mjs.map
|
||||
import{R as U}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as z}from"./NcAvatar-ruClKRzS-Cdu1JNz7.chunk.mjs";import{y as R}from"./NcModal-kyWZ3UFC-CERVOxI8.chunk.mjs";import{_ as y}from"./Web-7MW_v0ET.chunk.mjs";import{b as k,z as x,n as S,o as l,c,w as i,i as o,P as b,m as B,k as C,R as L,g as M,t as j,f as g,h as D,C as f,D as s,aj as H}from"./preload-helper-D9xEqq8S.chunk.mjs";const P={};function T(r,n){return l(),g("div",null,[o(r.$slots,"trigger")])}const W=y(P,[["render",T]]),q={class:"user-bubble__name"},A={key:0,class:"user-bubble__secondary"},E=k({__name:"NcUserBubble",props:f({avatarImage:{default:void 0},user:{default:void 0},displayName:{default:void 0},showUserStatus:{type:Boolean},url:{default:void 0},to:{default:void 0},primary:{type:Boolean},size:{default:20},margin:{default:2}},{open:{type:Boolean},openModifiers:{}}),emits:f(["click"],["update:open"]),setup(r,{emit:n}){const d=x(r,"open"),e=r,_=n,p=s(()=>{if(!e.avatarImage)return!1;try{return!!new URL(e.avatarImage)}catch{return!1}}),m=s(()=>!!e.avatarImage),h=s(()=>({marginInlineStart:`${e.margin}px`})),v=s(()=>{if(!e.url||e.url.trim()==="")return!1;try{return!!new URL(e.url,e.url?.startsWith?.("/")?window.location.href:void 0)}catch{return H("[NcUserBubble] Invalid URL passed",{url:e.url}),!1}}),w=s(()=>v.value?e.url:void 0),N=s(()=>v.value?"a":e.to?U:"div"),I=s(()=>({height:`${e.size}px`,lineHeight:`${e.size}px`,borderRadius:`${e.size/2}px`}));return S([()=>e.displayName,()=>e.user],()=>{!e.displayName&&e.user}),(a,t)=>(l(),c(b(a.$slots.default?R:W),{shown:d.value,"onUpdate:shown":t[1]||(t[1]=u=>d.value=u),class:"user-bubble__wrapper",trigger:"hover focus"},{trigger:i(({attrs:u})=>[(l(),c(b(N.value),B({class:["user-bubble__content",{"user-bubble__content--primary":a.primary}],style:I.value,to:a.to,href:w.value},u,{onClick:t[0]||(t[0]=$=>_("click",$))}),{default:i(()=>[C(z,{url:m.value&&p.value?a.avatarImage:void 0,iconClass:m.value&&!p.value?a.avatarImage:void 0,user:a.user,displayName:a.displayName,size:a.size-a.margin*2,style:L(h.value),disableTooltip:"",disableMenu:"",hideStatus:!a.showUserStatus,class:"user-bubble__avatar"},null,8,["url","iconClass","user","displayName","size","style","hideStatus"]),M("span",q,j(a.displayName||a.user),1),a.$slots.name?(l(),g("span",A,[o(a.$slots,"name",{},void 0,!0)])):D("",!0)]),_:2},1040,["class","style","to","href"]))]),default:i(()=>[o(a.$slots,"default",{},void 0,!0)]),_:3},40,["shown"]))}}),K=y(E,[["__scopeId","data-v-9189d023"]]);export{K as N};
|
||||
//# sourceMappingURL=NcUserBubble-BE6yD-R0-3FBPn44i.chunk.mjs.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
|||
import{b as k}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as y}from"./PencilOutline-BE2yOTiX.chunk.mjs";import{a as b}from"./NcModal-kyWZ3UFC-DO8otox5.chunk.mjs";import{r as P,z,N as g,b as H,_ as S}from"./Web-7MW_v0ET.chunk.mjs";import{b as V,E as $,o as t,f as s,i as p,c as d,h as o,g as C,j as _,t as f,w as u,k as x,u as w,F as N,D as M,m as B}from"./preload-helper-D9xEqq8S.chunk.mjs";import{_ as I}from"./public-CvthP4YJ.chunk.mjs";P(z);const L={key:0,class:"nc-chip__icon"},j={class:"nc-chip__text"},A=V({__name:"NcChip",props:{ariaLabelClose:{default:H("Close")},actionsContainer:{default:"body"},text:{default:""},iconPath:{default:void 0},iconSvg:{default:void 0},noClose:{type:Boolean},variant:{default:"secondary"}},emits:["close"],setup(n,{emit:e}){const i=n,h=e,r=$(),l=M(()=>!i.noClose),c=()=>!!r.actions,m=()=>!!(i.iconPath||i.iconSvg||r.icon);return(a,v)=>(t(),s("div",{class:N(["nc-chip",{[`nc-chip--${a.variant}`]:!0,"nc-chip--no-actions":a.noClose&&!c(),"nc-chip--no-icon":!m()}])},[m()?(t(),s("span",L,[p(a.$slots,"icon",{},()=>[a.iconPath||a.iconSvg?(t(),d(g,{key:0,inline:"",path:a.iconPath,svg:a.iconPath?void 0:a.iconSvg,size:18},null,8,["path","svg"])):o("",!0)],!0)])):o("",!0),C("span",j,[p(a.$slots,"default",{},()=>[_(f(a.text),1)],!0)]),l.value||c()?(t(),d(b,{key:1,class:"nc-chip__actions",container:a.actionsContainer,forceMenu:!l.value,variant:"tertiary-no-background"},{default:u(()=>[l.value?(t(),d(y,{key:0,closeAfterClick:"",onClick:v[0]||(v[0]=J=>h("close"))},{icon:u(()=>[x(g,{path:w(k),size:20},null,8,["path"])]),default:u(()=>[_(" "+f(a.ariaLabelClose),1)]),_:1})):o("",!0),p(a.$slots,"actions",{},void 0,!0)]),_:3},8,["container","forceMenu"])):o("",!0)],2))}}),U=S(A,[["__scopeId","data-v-8f5d3c40"]]),D={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},E=["aria-hidden","aria-label"],F=["fill","width","height"],Z={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},q={key:0};function G(n,e,i,h,r,l){return t(),s("span",B(n.$attrs,{"aria-hidden":i.title?null:"true","aria-label":i.title,class:"material-design-icon plus-icon",role:"img",onClick:e[0]||(e[0]=c=>n.$emit("click",c))}),[(t(),s("svg",{fill:i.fillColor,class:"material-design-icon__svg",width:i.size,height:i.size,viewBox:"0 0 24 24"},[C("path",Z,[i.title?(t(),s("title",q,f(i.title),1)):o("",!0)])],8,F))],16,E)}const X=I(D,[["render",G]]);export{U as N,X as P};
|
||||
//# sourceMappingURL=Plus-uZcrt3zr.chunk.mjs.map
|
||||
import{b as k}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as y}from"./PencilOutline-BxS_o9Cp.chunk.mjs";import{a as b}from"./NcModal-kyWZ3UFC-CERVOxI8.chunk.mjs";import{r as P,z,N as g,b as H,_ as S}from"./Web-7MW_v0ET.chunk.mjs";import{b as V,E as $,o as t,f as s,i as p,c as d,h as o,g as C,j as _,t as f,w as u,k as x,u as w,F as N,D as M,m as B}from"./preload-helper-D9xEqq8S.chunk.mjs";import{_ as I}from"./public-CvthP4YJ.chunk.mjs";P(z);const L={key:0,class:"nc-chip__icon"},j={class:"nc-chip__text"},A=V({__name:"NcChip",props:{ariaLabelClose:{default:H("Close")},actionsContainer:{default:"body"},text:{default:""},iconPath:{default:void 0},iconSvg:{default:void 0},noClose:{type:Boolean},variant:{default:"secondary"}},emits:["close"],setup(n,{emit:e}){const i=n,h=e,r=$(),l=M(()=>!i.noClose),c=()=>!!r.actions,m=()=>!!(i.iconPath||i.iconSvg||r.icon);return(a,v)=>(t(),s("div",{class:N(["nc-chip",{[`nc-chip--${a.variant}`]:!0,"nc-chip--no-actions":a.noClose&&!c(),"nc-chip--no-icon":!m()}])},[m()?(t(),s("span",L,[p(a.$slots,"icon",{},()=>[a.iconPath||a.iconSvg?(t(),d(g,{key:0,inline:"",path:a.iconPath,svg:a.iconPath?void 0:a.iconSvg,size:18},null,8,["path","svg"])):o("",!0)],!0)])):o("",!0),C("span",j,[p(a.$slots,"default",{},()=>[_(f(a.text),1)],!0)]),l.value||c()?(t(),d(b,{key:1,class:"nc-chip__actions",container:a.actionsContainer,forceMenu:!l.value,variant:"tertiary-no-background"},{default:u(()=>[l.value?(t(),d(y,{key:0,closeAfterClick:"",onClick:v[0]||(v[0]=J=>h("close"))},{icon:u(()=>[x(g,{path:w(k),size:20},null,8,["path"])]),default:u(()=>[_(" "+f(a.ariaLabelClose),1)]),_:1})):o("",!0),p(a.$slots,"actions",{},void 0,!0)]),_:3},8,["container","forceMenu"])):o("",!0)],2))}}),U=S(A,[["__scopeId","data-v-8f5d3c40"]]),D={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},E=["aria-hidden","aria-label"],F=["fill","width","height"],Z={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},q={key:0};function G(n,e,i,h,r,l){return t(),s("span",B(n.$attrs,{"aria-hidden":i.title?null:"true","aria-label":i.title,class:"material-design-icon plus-icon",role:"img",onClick:e[0]||(e[0]=c=>n.$emit("click",c))}),[(t(),s("svg",{fill:i.fillColor,class:"material-design-icon__svg",width:i.size,height:i.size,viewBox:"0 0 24 24"},[C("path",Z,[i.title?(t(),s("title",q,f(i.title),1)):o("",!0)])],8,F))],16,E)}const X=I(D,[["render",G]]);export{U as N,X as P};
|
||||
//# sourceMappingURL=Plus-B2QN71yS.chunk.mjs.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
|||
import{c as d}from"./index-DqG-5vGV.chunk.mjs";import{b as h,c as m,d as C}from"./index-Bp9-GhMo.chunk.mjs";import{A as _,N as I}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as S}from"./NcEmptyContent-CDgWCt_m-SjrDEqRZ.chunk.mjs";import{N as U}from"./NcSelect-B1uITk_3-B0TPRkMI.chunk.mjs";import{A as R,l as g}from"./logger-CHeKh3CN.chunk.mjs";import{_ as A}from"./public-CvthP4YJ.chunk.mjs";import{r as s,o as b,f as O,g as a,t as f,k as c,w as u,j as y,c as x,h as T}from"./preload-helper-D9xEqq8S.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./Web-7MW_v0ET.chunk.mjs";import"./translation-DoG5ZELJ-8aobdbPK.chunk.mjs";import"./NcModal-kyWZ3UFC-DO8otox5.chunk.mjs";import"./TrashCanOutline-COIylzhj.chunk.mjs";const $={name:"ProfilesCustomPicker",components:{NcSelect:U,NcButton:I,NcEmptyContent:S,AccountOutline:R,ArrowRightIcon:_},props:{providerId:{type:String,required:!0},accessible:{type:Boolean,default:!1}},emits:["submit"],data(){return{searchQuery:"",loading:!1,resultUrl:null,reference:null,profiles:[],selectedProfile:null,abortController:null}},computed:{options(){return this.searchQuery!==""?this.profiles:[]},noResultText(){return this.loading?t("profile","Searching …"):t("profile","Not found")}},mounted(){this.focusOnInput()},methods:{focusOnInput(){this.$nextTick(()=>{this.$refs["profiles-search-input"].$el.getElementsByTagName("input")[0]?.focus()})},async searchForProfile(e){e.trim()===""||e.trim().length<3||(this.searchQuery=e.trim(),this.loading=!0,await this.debounceFindProfiles(e))},debounceFindProfiles:C(function(...e){this.findProfiles(...e)},300),async findProfiles(e){const r=m("core/autocomplete/get?search={searchQuery}&itemType=%20&itemId=%20&shareTypes[]=0&limit=20",{searchQuery:e});try{const n=await d.get(r);this.profiles=n.data.ocs.data.map(i=>({user:i.id,displayName:i.label,icon:i.icon,subtitle:i.subline,isNoUser:i.source.startsWith("users")}))}catch(n){g.error("profile_picker: error while searching for users",{error:n})}finally{this.loading=!1}},submit(){this.resultUrl=window.location.origin+h(`/u/${this.selectedProfile.user.trim().toLowerCase()}`,null,{noRewrite:!0}),this.$emit("submit",this.resultUrl),this.$el.dispatchEvent(new CustomEvent("submit",{detail:this.resultUrl,bubbles:!0}))},async resolveResult(e){this.loading=!0,this.abortController=new AbortController,this.selectedProfile=e,this.resultUrl=window.location.origin+h(`/u/${this.selectedProfile.user.trim().toLowerCase()}`,null,{noRewrite:!0});try{const r=await d.get(m("references/resolve",2)+"?reference="+encodeURIComponent(this.resultUrl),{signal:this.abortController.signal});this.reference=r.data.ocs.data.references[this.resultUrl]}catch(r){g.error("profile_picker: error resolving the user profile link",{error:r})}finally{this.loading=!1}},clearSelection(){this.selectedProfile=null,this.resultUrl=null,this.reference=null}}},B={class:"profile-picker"},E={class:"profile-picker__heading"},Q={class:"input-wrapper"},F={class:"profile-picker__footer"};function V(e,r,n,i,o,l){const w=s("NcSelect"),P=s("AccountOutline"),k=s("NcEmptyContent"),N=s("ArrowRightIcon"),v=s("NcButton");return b(),O("div",B,[a("div",E,[a("h2",null,f(e.t("profile","Profile picker")),1),a("div",Q,[c(w,{ref:"profiles-search-input",modelValue:o.selectedProfile,"onUpdate:modelValue":r[0]||(r[0]=p=>o.selectedProfile=p),inputId:"profiles-search",loading:o.loading,filterable:!1,placeholder:e.t("profile","Search for a user profile"),clearSearchOnBlur:()=>!1,multiple:!1,options:l.options,label:"displayName",onSearch:l.searchForProfile,"onOption:selecting":l.resolveResult},{"no-options":u(({search:p})=>[y(f(p?l.noResultText:e.t("profile","Search for a user profile. Start typing")),1)]),_:1},8,["modelValue","loading","placeholder","options","onSearch","onOption:selecting"])]),c(k,{class:"empty-content"},{icon:u(()=>[c(P,{size:20})]),_:1})]),a("div",F,[o.selectedProfile!==null?(b(),x(v,{key:0,variant:"primary","aria-label":e.t("profile","Insert selected user profile link"),disabled:o.loading||o.selectedProfile===null,onClick:l.submit},{icon:u(()=>[c(N)]),default:u(()=>[y(f(e.t("profile","Insert"))+" ",1)]),_:1},8,["aria-label","disabled","onClick"])):T("",!0)])])}const Z=A($,[["render",V],["__scopeId","data-v-5dbe4c82"]]);export{Z as default};
|
||||
//# sourceMappingURL=ProfilesCustomPicker-D0VTmaly.chunk.mjs.map
|
||||
import{c as d}from"./index-DqG-5vGV.chunk.mjs";import{b as h,c as m,d as C}from"./index-Bp9-GhMo.chunk.mjs";import{A as _,N as I}from"./ArrowRight-YxbwZNEK.chunk.mjs";import{N as S}from"./NcEmptyContent-CDgWCt_m-SjrDEqRZ.chunk.mjs";import{N as U}from"./NcSelect-B1uITk_3-CfU6clNa.chunk.mjs";import{A as R,l as g}from"./logger-CHeKh3CN.chunk.mjs";import{_ as A}from"./public-CvthP4YJ.chunk.mjs";import{r as s,o as b,f as O,g as a,t as f,k as c,w as u,j as y,c as x,h as T}from"./preload-helper-D9xEqq8S.chunk.mjs";import"./util-Caafb9Jl.chunk.mjs";import"./Web-7MW_v0ET.chunk.mjs";import"./translation-DoG5ZELJ-8aobdbPK.chunk.mjs";import"./NcModal-kyWZ3UFC-CERVOxI8.chunk.mjs";import"./TrashCanOutline-COIylzhj.chunk.mjs";const $={name:"ProfilesCustomPicker",components:{NcSelect:U,NcButton:I,NcEmptyContent:S,AccountOutline:R,ArrowRightIcon:_},props:{providerId:{type:String,required:!0},accessible:{type:Boolean,default:!1}},emits:["submit"],data(){return{searchQuery:"",loading:!1,resultUrl:null,reference:null,profiles:[],selectedProfile:null,abortController:null}},computed:{options(){return this.searchQuery!==""?this.profiles:[]},noResultText(){return this.loading?t("profile","Searching …"):t("profile","Not found")}},mounted(){this.focusOnInput()},methods:{focusOnInput(){this.$nextTick(()=>{this.$refs["profiles-search-input"].$el.getElementsByTagName("input")[0]?.focus()})},async searchForProfile(e){e.trim()===""||e.trim().length<3||(this.searchQuery=e.trim(),this.loading=!0,await this.debounceFindProfiles(e))},debounceFindProfiles:C(function(...e){this.findProfiles(...e)},300),async findProfiles(e){const r=m("core/autocomplete/get?search={searchQuery}&itemType=%20&itemId=%20&shareTypes[]=0&limit=20",{searchQuery:e});try{const n=await d.get(r);this.profiles=n.data.ocs.data.map(i=>({user:i.id,displayName:i.label,icon:i.icon,subtitle:i.subline,isNoUser:i.source.startsWith("users")}))}catch(n){g.error("profile_picker: error while searching for users",{error:n})}finally{this.loading=!1}},submit(){this.resultUrl=window.location.origin+h(`/u/${this.selectedProfile.user.trim().toLowerCase()}`,null,{noRewrite:!0}),this.$emit("submit",this.resultUrl),this.$el.dispatchEvent(new CustomEvent("submit",{detail:this.resultUrl,bubbles:!0}))},async resolveResult(e){this.loading=!0,this.abortController=new AbortController,this.selectedProfile=e,this.resultUrl=window.location.origin+h(`/u/${this.selectedProfile.user.trim().toLowerCase()}`,null,{noRewrite:!0});try{const r=await d.get(m("references/resolve",2)+"?reference="+encodeURIComponent(this.resultUrl),{signal:this.abortController.signal});this.reference=r.data.ocs.data.references[this.resultUrl]}catch(r){g.error("profile_picker: error resolving the user profile link",{error:r})}finally{this.loading=!1}},clearSelection(){this.selectedProfile=null,this.resultUrl=null,this.reference=null}}},B={class:"profile-picker"},E={class:"profile-picker__heading"},Q={class:"input-wrapper"},F={class:"profile-picker__footer"};function V(e,r,n,i,o,l){const w=s("NcSelect"),P=s("AccountOutline"),k=s("NcEmptyContent"),N=s("ArrowRightIcon"),v=s("NcButton");return b(),O("div",B,[a("div",E,[a("h2",null,f(e.t("profile","Profile picker")),1),a("div",Q,[c(w,{ref:"profiles-search-input",modelValue:o.selectedProfile,"onUpdate:modelValue":r[0]||(r[0]=p=>o.selectedProfile=p),inputId:"profiles-search",loading:o.loading,filterable:!1,placeholder:e.t("profile","Search for a user profile"),clearSearchOnBlur:()=>!1,multiple:!1,options:l.options,label:"displayName",onSearch:l.searchForProfile,"onOption:selecting":l.resolveResult},{"no-options":u(({search:p})=>[y(f(p?l.noResultText:e.t("profile","Search for a user profile. Start typing")),1)]),_:1},8,["modelValue","loading","placeholder","options","onSearch","onOption:selecting"])]),c(k,{class:"empty-content"},{icon:u(()=>[c(P,{size:20})]),_:1})]),a("div",F,[o.selectedProfile!==null?(b(),x(v,{key:0,variant:"primary","aria-label":e.t("profile","Insert selected user profile link"),disabled:o.loading||o.selectedProfile===null,onClick:l.submit},{icon:u(()=>[c(N)]),default:u(()=>[y(f(e.t("profile","Insert"))+" ",1)]),_:1},8,["aria-label","disabled","onClick"])):T("",!0)])])}const Z=A($,[["render",V],["__scopeId","data-v-5dbe4c82"]]);export{Z as default};
|
||||
//# sourceMappingURL=ProfilesCustomPicker-DcWvhZBo.chunk.mjs.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue