mirror of
https://github.com/nextcloud/server.git
synced 2026-05-23 18:46:30 -04:00
chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
parent
774c2529ec
commit
b391606dca
262 changed files with 225 additions and 225 deletions
|
|
@ -1,2 +0,0 @@
|
|||
import{a as t}from"./index-C1xmmKTZ-CbM7Rwzk.chunk.mjs";import{t as e}from"./translation-DoG5ZELJ-qG-IUmJ9.chunk.mjs";import{C as m,a}from"./CommentView-D216HWrk.chunk.mjs";import{l as p}from"./activity-DTtkYccO.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-Cq65q_y4.chunk.mjs";import"./NcModal-kyWZ3UFC-BFCuvkUX.chunk.mjs";import"./ArrowRight-Dhovin9F.chunk.mjs";import"./Web-CGuHI0VK.chunk.mjs";import"./index-Qk7XyFpu.chunk.mjs";import"./TrashCanOutline-BIDNdZit.chunk.mjs";import"./mdi-BRNjcMva.chunk.mjs";import"./pinia-BhysKopn.chunk.mjs";import"./PencilOutline-D41UuJ1c.chunk.mjs";/* empty css */import"./NcAvatar-ruClKRzS-BuRoHF_z.chunk.mjs";import"./index-DyIQJkdD.chunk.mjs";import"./util-BAw8pNOw.chunk.mjs";import"./colors-BfjxNgsx-81LL1BYe.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-hzqBU3TL.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-CZ2hcAIu.chunk.mjs";import"./NcUserBubble-BE6yD-R0-Cup_klxg.chunk.mjs";import"./GetComments-B2v7Uq3R.chunk.mjs";import"./index-ChCMSD7B.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-BVDYfKH6.chunk.mjs.map
|
||||
2
dist/ActivityCommentAction-P9Iql4ja.chunk.mjs
vendored
Normal file
2
dist/ActivityCommentAction-P9Iql4ja.chunk.mjs
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
import{a as t}from"./index-C1xmmKTZ-r7P3d7Rj.chunk.mjs";import{t as e}from"./translation-DoG5ZELJ-qG-IUmJ9.chunk.mjs";import{C as m,a}from"./CommentView-CS_3FLiZ.chunk.mjs";import{l as p}from"./activity-DTtkYccO.chunk.mjs";import{b as i,r as s,o as n,c,m as u}from"./preload-helper-HEeJwHUd.chunk.mjs";import{_ as l}from"./public-CvthP4YJ.chunk.mjs";import"./NcDialog-nDc1gW50-C6kKhPt3.chunk.mjs";import"./NcModal-kyWZ3UFC-Bhycn9Yn.chunk.mjs";import"./ArrowRight-b3XAkWmg.chunk.mjs";import"./Web-D3MaWivE.chunk.mjs";import"./index-Qk7XyFpu.chunk.mjs";import"./TrashCanOutline-_KWmPu03.chunk.mjs";import"./mdi-io605rGS.chunk.mjs";import"./pinia-wb4HskLa.chunk.mjs";import"./PencilOutline-Bf19fWD8.chunk.mjs";/* empty css */import"./NcAvatar-ruClKRzS-PI-nYw3k.chunk.mjs";import"./index-hnFmNpnF.chunk.mjs";import"./util-BAw8pNOw.chunk.mjs";import"./colors-BfjxNgsx-DR9TkNfP.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-DCJTKIB_.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-CEsVOC1q.chunk.mjs";import"./NcUserBubble-BE6yD-R0-kBqLvCrF.chunk.mjs";import"./GetComments-Dxgh1PGl.chunk.mjs";import"./index-3-MV6QIx.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-P9Iql4ja.chunk.mjs.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"ActivityCommentAction-BVDYfKH6.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-P9Iql4ja.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"}
|
||||
2
dist/ActivityCommentEntry-D1RU4pOW.chunk.mjs
vendored
2
dist/ActivityCommentEntry-D1RU4pOW.chunk.mjs
vendored
|
|
@ -1,2 +0,0 @@
|
|||
import{t as s}from"./translation-DoG5ZELJ-qG-IUmJ9.chunk.mjs";import{C as p,a}from"./CommentView-D216HWrk.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-Qk7XyFpu.chunk.mjs";import"./pinia-BhysKopn.chunk.mjs";import"./PencilOutline-D41UuJ1c.chunk.mjs";import"./ArrowRight-Dhovin9F.chunk.mjs";import"./Web-CGuHI0VK.chunk.mjs";import"./NcModal-kyWZ3UFC-BFCuvkUX.chunk.mjs";/* empty css */import"./NcAvatar-ruClKRzS-BuRoHF_z.chunk.mjs";import"./index-DyIQJkdD.chunk.mjs";import"./util-BAw8pNOw.chunk.mjs";import"./colors-BfjxNgsx-81LL1BYe.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-hzqBU3TL.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-CZ2hcAIu.chunk.mjs";import"./TrashCanOutline-BIDNdZit.chunk.mjs";import"./NcUserBubble-BE6yD-R0-Cup_klxg.chunk.mjs";import"./index-C1xmmKTZ-CbM7Rwzk.chunk.mjs";import"./NcDialog-nDc1gW50-Cq65q_y4.chunk.mjs";import"./mdi-BRNjcMva.chunk.mjs";import"./activity-DTtkYccO.chunk.mjs";import"./GetComments-B2v7Uq3R.chunk.mjs";import"./index-ChCMSD7B.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-D1RU4pOW.chunk.mjs.map
|
||||
2
dist/ActivityCommentEntry-DrDiWRTT.chunk.mjs
vendored
Normal file
2
dist/ActivityCommentEntry-DrDiWRTT.chunk.mjs
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
import{t as s}from"./translation-DoG5ZELJ-qG-IUmJ9.chunk.mjs";import{C as p,a}from"./CommentView-CS_3FLiZ.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-HEeJwHUd.chunk.mjs";import"./index-Qk7XyFpu.chunk.mjs";import"./pinia-wb4HskLa.chunk.mjs";import"./PencilOutline-Bf19fWD8.chunk.mjs";import"./ArrowRight-b3XAkWmg.chunk.mjs";import"./Web-D3MaWivE.chunk.mjs";import"./NcModal-kyWZ3UFC-Bhycn9Yn.chunk.mjs";/* empty css */import"./NcAvatar-ruClKRzS-PI-nYw3k.chunk.mjs";import"./index-hnFmNpnF.chunk.mjs";import"./util-BAw8pNOw.chunk.mjs";import"./colors-BfjxNgsx-DR9TkNfP.chunk.mjs";import"./NcUserStatusIcon-JWiuiAXe-DCJTKIB_.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-CEsVOC1q.chunk.mjs";import"./TrashCanOutline-_KWmPu03.chunk.mjs";import"./NcUserBubble-BE6yD-R0-kBqLvCrF.chunk.mjs";import"./index-C1xmmKTZ-r7P3d7Rj.chunk.mjs";import"./NcDialog-nDc1gW50-C6kKhPt3.chunk.mjs";import"./mdi-io605rGS.chunk.mjs";import"./activity-DTtkYccO.chunk.mjs";import"./GetComments-Dxgh1PGl.chunk.mjs";import"./index-3-MV6QIx.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-DrDiWRTT.chunk.mjs.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"ActivityCommentEntry-D1RU4pOW.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-DrDiWRTT.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"}
|
||||
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 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-DyIQJkdD.chunk.mjs";import{a as C}from"./index-C1xmmKTZ-CbM7Rwzk.chunk.mjs";import{t as s}from"./translation-DoG5ZELJ-qG-IUmJ9.chunk.mjs";import{b as L}from"./index-Qk7XyFpu.chunk.mjs";import{N}from"./ArrowRight-Dhovin9F.chunk.mjs";import{N as S}from"./NcSelect-B1uITk_3-DZL6hcTu.chunk.mjs";import{N as z}from"./NcCheckboxRadioSwitch-D0gFwEVl-Bhi8al97.chunk.mjs";import{N as A}from"./NcPasswordField-BOLzDHBJ-fq1V4k2z.chunk.mjs";import{_ as E}from"./NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-Ddm0cXFK.chunk.mjs";import{a as c,C as k}from"./types-DA0J4btB.chunk.mjs";import{l as P}from"./logger-DIaUF1Hw.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-BQG1N_a4.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-HEeJwHUd.chunk.mjs";import{c as q}from"./index-hnFmNpnF.chunk.mjs";import{a as C}from"./index-C1xmmKTZ-r7P3d7Rj.chunk.mjs";import{t as s}from"./translation-DoG5ZELJ-qG-IUmJ9.chunk.mjs";import{b as L}from"./index-Qk7XyFpu.chunk.mjs";import{N}from"./ArrowRight-b3XAkWmg.chunk.mjs";import{N as S}from"./NcSelect-B1uITk_3-BtpqR3Fh.chunk.mjs";import{N as z}from"./NcCheckboxRadioSwitch-D0gFwEVl-nMb-HlZ4.chunk.mjs";import{N as A}from"./NcPasswordField-BOLzDHBJ-J2gvpRQo.chunk.mjs";import{_ as E}from"./NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-D-ENREqk.chunk.mjs";import{a as c,C as k}from"./types-C8qb17HL.chunk.mjs";import{l as P}from"./logger-DIaUF1Hw.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-C7JHZaMW.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,A as h,_ as p,b as C}from"./Web-CGuHI0VK.chunk.mjs";import{b as _,o as i,f as e,g as o,j as b,t as s,u as d,k,h as r,i as y,m}from"./preload-helper-D9xEqq8S.chunk.mjs";import{_ as A}from"./public-CvthP4YJ.chunk.mjs";const H={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},v=["aria-hidden","aria-label"],V=["fill","width","height"],w={d:"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"},z={key:0};function M(a,l,t,c,f,g){return i(),e("span",m(a.$attrs,{"aria-hidden":t.title?null:"true","aria-label":t.title,class:"material-design-icon help-circle-icon",role:"img",onClick:l[0]||(l[0]=n=>a.$emit("click",n))}),[(i(),e("svg",{fill:t.fillColor,class:"material-design-icon__svg",width:t.size,height:t.size,viewBox:"0 0 24 24"},[o("path",w,[t.title?(i(),e("title",z,s(t.title),1)):r("",!0)])],8,V))],16,v)}const S=p(H,[["render",M]]);u(h);const x={class:"settings-section"},$={class:"settings-section__name"},I=["aria-label","href","title"],N={key:0,class:"settings-section__desc"},U=_({__name:"NcSettingsSection",props:{name:{},description:{default:""},docUrl:{default:""}},setup(a){const l=C("External documentation");return(t,c)=>(i(),e("div",x,[o("h2",$,[b(s(t.name)+" ",1),t.docUrl?(i(),e("a",{key:0,"aria-label":d(l),class:"settings-section__info",href:t.docUrl,rel:"noreferrer nofollow",target:"_blank",title:d(l)},[k(S,{size:20})],8,I)):r("",!0)]),t.description?(i(),e("p",N,s(t.description),1)):r("",!0),y(t.$slots,"default",{},void 0,!0)]))}}),T=p(U,[["__scopeId","data-v-9cedb949"]]),B={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},L=["aria-hidden","aria-label"],Z=["fill","width","height"],j={d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},E={key:0};function q(a,l,t,c,f,g){return i(),e("span",m(a.$attrs,{"aria-hidden":t.title?null:"true","aria-label":t.title,class:"material-design-icon content-copy-icon",role:"img",onClick:l[0]||(l[0]=n=>a.$emit("click",n))}),[(i(),e("svg",{fill:t.fillColor,class:"material-design-icon__svg",width:t.size,height:t.size,viewBox:"0 0 24 24"},[o("path",j,[t.title?(i(),e("title",E,s(t.title),1)):r("",!0)])],8,Z))],16,L)}const G=A(B,[["render",q]]);export{G as I,T as N};
|
||||
//# sourceMappingURL=ContentCopy-DiWYhREk.chunk.mjs.map
|
||||
import{r as u,A as h,_ as p,b as C}from"./Web-D3MaWivE.chunk.mjs";import{b as _,o as i,f as e,g as o,j as b,t as s,u as d,k,h as r,i as y,m}from"./preload-helper-HEeJwHUd.chunk.mjs";import{_ as A}from"./public-CvthP4YJ.chunk.mjs";const H={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},v=["aria-hidden","aria-label"],V=["fill","width","height"],w={d:"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"},z={key:0};function M(a,l,t,c,f,g){return i(),e("span",m(a.$attrs,{"aria-hidden":t.title?null:"true","aria-label":t.title,class:"material-design-icon help-circle-icon",role:"img",onClick:l[0]||(l[0]=n=>a.$emit("click",n))}),[(i(),e("svg",{fill:t.fillColor,class:"material-design-icon__svg",width:t.size,height:t.size,viewBox:"0 0 24 24"},[o("path",w,[t.title?(i(),e("title",z,s(t.title),1)):r("",!0)])],8,V))],16,v)}const S=p(H,[["render",M]]);u(h);const x={class:"settings-section"},$={class:"settings-section__name"},I=["aria-label","href","title"],N={key:0,class:"settings-section__desc"},U=_({__name:"NcSettingsSection",props:{name:{},description:{default:""},docUrl:{default:""}},setup(a){const l=C("External documentation");return(t,c)=>(i(),e("div",x,[o("h2",$,[b(s(t.name)+" ",1),t.docUrl?(i(),e("a",{key:0,"aria-label":d(l),class:"settings-section__info",href:t.docUrl,rel:"noreferrer nofollow",target:"_blank",title:d(l)},[k(S,{size:20})],8,I)):r("",!0)]),t.description?(i(),e("p",N,s(t.description),1)):r("",!0),y(t.$slots,"default",{},void 0,!0)]))}}),T=p(U,[["__scopeId","data-v-9cedb949"]]),B={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},L=["aria-hidden","aria-label"],Z=["fill","width","height"],j={d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},E={key:0};function q(a,l,t,c,f,g){return i(),e("span",m(a.$attrs,{"aria-hidden":t.title?null:"true","aria-label":t.title,class:"material-design-icon content-copy-icon",role:"img",onClick:l[0]||(l[0]=n=>a.$emit("click",n))}),[(i(),e("svg",{fill:t.fillColor,class:"material-design-icon__svg",width:t.size,height:t.size,viewBox:"0 0 24 24"},[o("path",j,[t.title?(i(),e("title",E,s(t.title),1)):r("",!0)])],8,Z))],16,L)}const G=A(B,[["render",q]]);export{G as I,T as N};
|
||||
//# sourceMappingURL=ContentCopy-DQ5J7uDC.chunk.mjs.map
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
|||
import{t}from"./translation-DoG5ZELJ-qG-IUmJ9.chunk.mjs";import{N as u}from"./NcDialog-nDc1gW50-Cq65q_y4.chunk.mjs";import{N as d}from"./mdi-BRNjcMva.chunk.mjs";import{N as p}from"./NcPasswordField-BOLzDHBJ-fq1V4k2z.chunk.mjs";import{_ as c}from"./NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-Ddm0cXFK.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-Qk7XyFpu.chunk.mjs";import"./NcModal-kyWZ3UFC-BFCuvkUX.chunk.mjs";import"./ArrowRight-Dhovin9F.chunk.mjs";import"./Web-CGuHI0VK.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";import"./TrashCanOutline-BIDNdZit.chunk.mjs";import"./index-DyIQJkdD.chunk.mjs";import"./util-BAw8pNOw.chunk.mjs";import"./NcInputField-CPL-a_MM-DBTTMHwb.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-C1pkT-kY.chunk.mjs.map
|
||||
import{t}from"./translation-DoG5ZELJ-qG-IUmJ9.chunk.mjs";import{N as u}from"./NcDialog-nDc1gW50-C6kKhPt3.chunk.mjs";import{N as d}from"./mdi-io605rGS.chunk.mjs";import{N as p}from"./NcPasswordField-BOLzDHBJ-J2gvpRQo.chunk.mjs";import{_ as c}from"./NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-D-ENREqk.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-HEeJwHUd.chunk.mjs";import"./index-Qk7XyFpu.chunk.mjs";import"./NcModal-kyWZ3UFC-Bhycn9Yn.chunk.mjs";import"./ArrowRight-b3XAkWmg.chunk.mjs";import"./Web-D3MaWivE.chunk.mjs";import"./public-CvthP4YJ.chunk.mjs";import"./TrashCanOutline-_KWmPu03.chunk.mjs";import"./index-hnFmNpnF.chunk.mjs";import"./util-BAw8pNOw.chunk.mjs";import"./NcInputField-CPL-a_MM-DyD-MbPM.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-CrB205vV.chunk.mjs.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"CredentialsDialog-C1pkT-kY.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-CrB205vV.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-CbM7Rwzk.chunk.mjs";import{t as y}from"./translation-DoG5ZELJ-qG-IUmJ9.chunk.mjs";import{v as M}from"./NcAvatar-ruClKRzS-BuRoHF_z.chunk.mjs";import{N}from"./ArrowRight-Dhovin9F.chunk.mjs";import{N as S}from"./NcEmptyContent-CDgWCt_m-COaI3ToI.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-D216HWrk.chunk.mjs";import{l as v}from"./activity-DTtkYccO.chunk.mjs";import{c as j,g as U,D as w}from"./GetComments-B2v7Uq3R.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-r7P3d7Rj.chunk.mjs";import{t as y}from"./translation-DoG5ZELJ-qG-IUmJ9.chunk.mjs";import{v as M}from"./NcAvatar-ruClKRzS-PI-nYw3k.chunk.mjs";import{N}from"./ArrowRight-b3XAkWmg.chunk.mjs";import{N as S}from"./NcEmptyContent-CDgWCt_m-CHPr_hW3.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-HEeJwHUd.chunk.mjs";import{C as P,a as b}from"./CommentView-CS_3FLiZ.chunk.mjs";import{l as v}from"./activity-DTtkYccO.chunk.mjs";import{c as j,g as U,D as w}from"./GetComments-Dxgh1PGl.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-CbM7Rwzk.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-BWddkPXe.chunk.mjs.map
|
||||
//# sourceMappingURL=FilesSidebarTab-BYnZjnN1.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
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-D41UuJ1c.chunk.mjs";import{j as _,B as b,C as S}from"./NcModal-kyWZ3UFC-BFCuvkUX.chunk.mjs";import{_ as f}from"./Web-CGuHI0VK.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-CZ2hcAIu.chunk.mjs.map
|
||||
import{A as d}from"./PencilOutline-Bf19fWD8.chunk.mjs";import{j as _,B as b,C as S}from"./NcModal-kyWZ3UFC-Bhycn9Yn.chunk.mjs";import{_ as f}from"./Web-D3MaWivE.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-HEeJwHUd.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-CEsVOC1q.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-BFCuvkUX.chunk.mjs";import{r as Z,b as R,N as aa,i as ea,_ as la,c as ta}from"./Web-CGuHI0VK.chunk.mjs";import{N as oa}from"./ArrowRight-Dhovin9F.chunk.mjs";import{N as na}from"./TrashCanOutline-BIDNdZit.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-Cq65q_y4.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-HEeJwHUd.chunk.mjs";import{u as X,N as Y}from"./NcModal-kyWZ3UFC-Bhycn9Yn.chunk.mjs";import{r as Z,b as R,N as aa,i as ea,_ as la,c as ta}from"./Web-D3MaWivE.chunk.mjs";import{N as oa}from"./ArrowRight-b3XAkWmg.chunk.mjs";import{N as na}from"./TrashCanOutline-_KWmPu03.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-C6kKhPt3.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{_ as l,c as p}from"./Web-CGuHI0VK.chunk.mjs";import{b as r,o as s,f as o,i as a,h as n,u as e,j as c,t as d}from"./preload-helper-D9xEqq8S.chunk.mjs";const m=["aria-labelledby"],_={key:0,class:"empty-content__icon","aria-hidden":"true"},y=["id"],u={key:2,class:"empty-content__description"},$={key:3,class:"empty-content__action"},v=r({__name:"NcEmptyContent",props:{description:{default:""},name:{default:""}},setup(b){const i=p();return(t,f)=>(s(),o("div",{"aria-labelledby":e(i),class:"empty-content",role:"note"},[t.$slots.icon?(s(),o("div",_,[a(t.$slots,"icon",{},void 0,!0)])):n("",!0),t.name!==""||t.$slots.name?(s(),o("div",{key:1,id:e(i),class:"empty-content__name"},[a(t.$slots,"name",{},()=>[c(d(t.name),1)],!0)],8,y)):n("",!0),t.description!==""||t.$slots.description?(s(),o("p",u,[a(t.$slots,"description",{},()=>[c(d(t.description),1)],!0)])):n("",!0),t.$slots.action?(s(),o("div",$,[a(t.$slots,"action",{},void 0,!0)])):n("",!0)],8,m))}}),N=l(v,[["__scopeId","data-v-b101d636"]]);export{N};
|
||||
//# sourceMappingURL=NcEmptyContent-CDgWCt_m-COaI3ToI.chunk.mjs.map
|
||||
import{_ as l,c as p}from"./Web-D3MaWivE.chunk.mjs";import{b as r,o as s,f as o,i as a,h as n,u as e,j as c,t as d}from"./preload-helper-HEeJwHUd.chunk.mjs";const m=["aria-labelledby"],_={key:0,class:"empty-content__icon","aria-hidden":"true"},y=["id"],u={key:2,class:"empty-content__description"},$={key:3,class:"empty-content__action"},v=r({__name:"NcEmptyContent",props:{description:{default:""},name:{default:""}},setup(b){const i=p();return(t,f)=>(s(),o("div",{"aria-labelledby":e(i),class:"empty-content",role:"note"},[t.$slots.icon?(s(),o("div",_,[a(t.$slots,"icon",{},void 0,!0)])):n("",!0),t.name!==""||t.$slots.name?(s(),o("div",{key:1,id:e(i),class:"empty-content__name"},[a(t.$slots,"name",{},()=>[c(d(t.name),1)],!0)],8,y)):n("",!0),t.description!==""||t.$slots.description?(s(),o("p",u,[a(t.$slots,"description",{},()=>[c(d(t.description),1)],!0)])):n("",!0),t.$slots.action?(s(),o("div",$,[a(t.$slots,"action",{},void 0,!0)])):n("",!0)],8,m))}}),N=l(v,[["__scopeId","data-v-b101d636"]]);export{N};
|
||||
//# sourceMappingURL=NcEmptyContent-CDgWCt_m-CHPr_hW3.chunk.mjs.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"NcEmptyContent-CDgWCt_m-COaI3ToI.chunk.mjs","sources":["../node_modules/@nextcloud/vue/dist/chunks/NcEmptyContent-CDgWCt_m.mjs"],"sourcesContent":["import '../assets/NcEmptyContent-CLjlZ-UT.css';\nimport { defineComponent, openBlock, createElementBlock, unref, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from \"vue\";\nimport { c as createElementId } from \"./createElementId-DhjFt1I9.mjs\";\nimport { _ as _export_sfc } from \"./_plugin-vue_export-helper-1tPrXgE0.mjs\";\nconst _hoisted_1 = [\"aria-labelledby\"];\nconst _hoisted_2 = {\n key: 0,\n class: \"empty-content__icon\",\n \"aria-hidden\": \"true\"\n};\nconst _hoisted_3 = [\"id\"];\nconst _hoisted_4 = {\n key: 2,\n class: \"empty-content__description\"\n};\nconst _hoisted_5 = {\n key: 3,\n class: \"empty-content__action\"\n};\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n __name: \"NcEmptyContent\",\n props: {\n description: { default: \"\" },\n name: { default: \"\" }\n },\n setup(__props) {\n const nameId = createElementId();\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"div\", {\n \"aria-labelledby\": unref(nameId),\n class: \"empty-content\",\n role: \"note\"\n }, [\n _ctx.$slots.icon ? (openBlock(), createElementBlock(\"div\", _hoisted_2, [\n renderSlot(_ctx.$slots, \"icon\", {}, void 0, true)\n ])) : createCommentVNode(\"\", true),\n _ctx.name !== \"\" || _ctx.$slots.name ? (openBlock(), createElementBlock(\"div\", {\n key: 1,\n id: unref(nameId),\n class: \"empty-content__name\"\n }, [\n renderSlot(_ctx.$slots, \"name\", {}, () => [\n createTextVNode(toDisplayString(_ctx.name), 1)\n ], true)\n ], 8, _hoisted_3)) : createCommentVNode(\"\", true),\n _ctx.description !== \"\" || _ctx.$slots.description ? (openBlock(), createElementBlock(\"p\", _hoisted_4, [\n renderSlot(_ctx.$slots, \"description\", {}, () => [\n createTextVNode(toDisplayString(_ctx.description), 1)\n ], true)\n ])) : createCommentVNode(\"\", true),\n _ctx.$slots.action ? (openBlock(), createElementBlock(\"div\", _hoisted_5, [\n renderSlot(_ctx.$slots, \"action\", {}, void 0, true)\n ])) : createCommentVNode(\"\", true)\n ], 8, _hoisted_1);\n };\n }\n});\nconst NcEmptyContent = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"__scopeId\", \"data-v-b101d636\"]]);\nexport {\n NcEmptyContent as N\n};\n//# sourceMappingURL=NcEmptyContent-CDgWCt_m.mjs.map\n"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_sfc_main","defineComponent","__props","nameId","createElementId","_ctx","_cache","openBlock","createElementBlock","unref","renderSlot","createCommentVNode","createTextVNode","toDisplayString","NcEmptyContent","_export_sfc"],"mappings":"6JAIA,MAAMA,EAAa,CAAC,iBAAiB,EAC/BC,EAAa,CACjB,IAAK,EACL,MAAO,sBACP,cAAe,MACjB,EACMC,EAAa,CAAC,IAAI,EAClBC,EAAa,CACjB,IAAK,EACL,MAAO,4BACT,EACMC,EAAa,CACjB,IAAK,EACL,MAAO,uBACT,EACMC,EAA4BC,EAAgB,CAChD,OAAQ,iBACR,MAAO,CACL,YAAa,CAAE,QAAS,EAAE,EAC1B,KAAM,CAAE,QAAS,EAAE,CACvB,EACE,MAAMC,EAAS,CACb,MAAMC,EAASC,EAAe,EAC9B,MAAO,CAACC,EAAMC,KACLC,EAAS,EAAIC,EAAmB,MAAO,CAC5C,kBAAmBC,EAAMN,CAAM,EAC/B,MAAO,gBACP,KAAM,MACd,EAAS,CACDE,EAAK,OAAO,MAAQE,EAAS,EAAIC,EAAmB,MAAOZ,EAAY,CACrEc,EAAWL,EAAK,OAAQ,OAAQ,CAAA,EAAI,OAAQ,EAAI,CAC1D,CAAS,GAAKM,EAAmB,GAAI,EAAI,EACjCN,EAAK,OAAS,IAAMA,EAAK,OAAO,MAAQE,EAAS,EAAIC,EAAmB,MAAO,CAC7E,IAAK,EACL,GAAIC,EAAMN,CAAM,EAChB,MAAO,qBACjB,EAAW,CACDO,EAAWL,EAAK,OAAQ,OAAQ,CAAA,EAAI,IAAM,CACxCO,EAAgBC,EAAgBR,EAAK,IAAI,EAAG,CAAC,CACzD,EAAa,EAAI,CACjB,EAAW,EAAGR,CAAU,GAAKc,EAAmB,GAAI,EAAI,EAChDN,EAAK,cAAgB,IAAMA,EAAK,OAAO,aAAeE,IAAaC,EAAmB,IAAKV,EAAY,CACrGY,EAAWL,EAAK,OAAQ,cAAe,CAAA,EAAI,IAAM,CAC/CO,EAAgBC,EAAgBR,EAAK,WAAW,EAAG,CAAC,CAChE,EAAa,EAAI,CACjB,CAAS,GAAKM,EAAmB,GAAI,EAAI,EACjCN,EAAK,OAAO,QAAUE,EAAS,EAAIC,EAAmB,MAAOT,EAAY,CACvEW,EAAWL,EAAK,OAAQ,SAAU,CAAA,EAAI,OAAQ,EAAI,CAC5D,CAAS,GAAKM,EAAmB,GAAI,EAAI,CACzC,EAAS,EAAGhB,CAAU,EAEpB,CACF,CAAC,EACKmB,EAAiCC,EAAYf,EAAW,CAAC,CAAC,YAAa,iBAAiB,CAAC,CAAC","x_google_ignoreList":[0]}
|
||||
{"version":3,"file":"NcEmptyContent-CDgWCt_m-CHPr_hW3.chunk.mjs","sources":["../node_modules/@nextcloud/vue/dist/chunks/NcEmptyContent-CDgWCt_m.mjs"],"sourcesContent":["import '../assets/NcEmptyContent-CLjlZ-UT.css';\nimport { defineComponent, openBlock, createElementBlock, unref, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from \"vue\";\nimport { c as createElementId } from \"./createElementId-DhjFt1I9.mjs\";\nimport { _ as _export_sfc } from \"./_plugin-vue_export-helper-1tPrXgE0.mjs\";\nconst _hoisted_1 = [\"aria-labelledby\"];\nconst _hoisted_2 = {\n key: 0,\n class: \"empty-content__icon\",\n \"aria-hidden\": \"true\"\n};\nconst _hoisted_3 = [\"id\"];\nconst _hoisted_4 = {\n key: 2,\n class: \"empty-content__description\"\n};\nconst _hoisted_5 = {\n key: 3,\n class: \"empty-content__action\"\n};\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n __name: \"NcEmptyContent\",\n props: {\n description: { default: \"\" },\n name: { default: \"\" }\n },\n setup(__props) {\n const nameId = createElementId();\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"div\", {\n \"aria-labelledby\": unref(nameId),\n class: \"empty-content\",\n role: \"note\"\n }, [\n _ctx.$slots.icon ? (openBlock(), createElementBlock(\"div\", _hoisted_2, [\n renderSlot(_ctx.$slots, \"icon\", {}, void 0, true)\n ])) : createCommentVNode(\"\", true),\n _ctx.name !== \"\" || _ctx.$slots.name ? (openBlock(), createElementBlock(\"div\", {\n key: 1,\n id: unref(nameId),\n class: \"empty-content__name\"\n }, [\n renderSlot(_ctx.$slots, \"name\", {}, () => [\n createTextVNode(toDisplayString(_ctx.name), 1)\n ], true)\n ], 8, _hoisted_3)) : createCommentVNode(\"\", true),\n _ctx.description !== \"\" || _ctx.$slots.description ? (openBlock(), createElementBlock(\"p\", _hoisted_4, [\n renderSlot(_ctx.$slots, \"description\", {}, () => [\n createTextVNode(toDisplayString(_ctx.description), 1)\n ], true)\n ])) : createCommentVNode(\"\", true),\n _ctx.$slots.action ? (openBlock(), createElementBlock(\"div\", _hoisted_5, [\n renderSlot(_ctx.$slots, \"action\", {}, void 0, true)\n ])) : createCommentVNode(\"\", true)\n ], 8, _hoisted_1);\n };\n }\n});\nconst NcEmptyContent = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"__scopeId\", \"data-v-b101d636\"]]);\nexport {\n NcEmptyContent as N\n};\n//# sourceMappingURL=NcEmptyContent-CDgWCt_m.mjs.map\n"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_sfc_main","defineComponent","__props","nameId","createElementId","_ctx","_cache","openBlock","createElementBlock","unref","renderSlot","createCommentVNode","createTextVNode","toDisplayString","NcEmptyContent","_export_sfc"],"mappings":"6JAIA,MAAMA,EAAa,CAAC,iBAAiB,EAC/BC,EAAa,CACjB,IAAK,EACL,MAAO,sBACP,cAAe,MACjB,EACMC,EAAa,CAAC,IAAI,EAClBC,EAAa,CACjB,IAAK,EACL,MAAO,4BACT,EACMC,EAAa,CACjB,IAAK,EACL,MAAO,uBACT,EACMC,EAA4BC,EAAgB,CAChD,OAAQ,iBACR,MAAO,CACL,YAAa,CAAE,QAAS,EAAE,EAC1B,KAAM,CAAE,QAAS,EAAE,CACvB,EACE,MAAMC,EAAS,CACb,MAAMC,EAASC,EAAe,EAC9B,MAAO,CAACC,EAAMC,KACLC,EAAS,EAAIC,EAAmB,MAAO,CAC5C,kBAAmBC,EAAMN,CAAM,EAC/B,MAAO,gBACP,KAAM,MACd,EAAS,CACDE,EAAK,OAAO,MAAQE,EAAS,EAAIC,EAAmB,MAAOZ,EAAY,CACrEc,EAAWL,EAAK,OAAQ,OAAQ,CAAA,EAAI,OAAQ,EAAI,CAC1D,CAAS,GAAKM,EAAmB,GAAI,EAAI,EACjCN,EAAK,OAAS,IAAMA,EAAK,OAAO,MAAQE,EAAS,EAAIC,EAAmB,MAAO,CAC7E,IAAK,EACL,GAAIC,EAAMN,CAAM,EAChB,MAAO,qBACjB,EAAW,CACDO,EAAWL,EAAK,OAAQ,OAAQ,CAAA,EAAI,IAAM,CACxCO,EAAgBC,EAAgBR,EAAK,IAAI,EAAG,CAAC,CACzD,EAAa,EAAI,CACjB,EAAW,EAAGR,CAAU,GAAKc,EAAmB,GAAI,EAAI,EAChDN,EAAK,cAAgB,IAAMA,EAAK,OAAO,aAAeE,IAAaC,EAAmB,IAAKV,EAAY,CACrGY,EAAWL,EAAK,OAAQ,cAAe,CAAA,EAAI,IAAM,CAC/CO,EAAgBC,EAAgBR,EAAK,WAAW,EAAG,CAAC,CAChE,EAAa,EAAI,CACjB,CAAS,GAAKM,EAAmB,GAAI,EAAI,EACjCN,EAAK,OAAO,QAAUE,EAAS,EAAIC,EAAmB,MAAOT,EAAY,CACvEW,EAAWL,EAAK,OAAQ,SAAU,CAAA,EAAI,OAAQ,EAAI,CAC5D,CAAS,GAAKM,EAAmB,GAAI,EAAI,CACzC,EAAS,EAAGhB,CAAU,EAEpB,CACF,CAAC,EACKmB,EAAiCC,EAAYf,EAAW,CAAC,CAAC,YAAa,iBAAiB,CAAC,CAAC","x_google_ignoreList":[0]}
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
import{b as L,z as V,J as j,A,o as i,f as n,g as p,m as q,t as h,h as u,K as z,L as D,i as v,c as t,w as J,u as s,j as K,F as M,C as y,D as o}from"./preload-helper-D9xEqq8S.chunk.mjs";import{N as S,e as g,f as m,i as x}from"./ArrowRight-Dhovin9F.chunk.mjs";import{_ as E,N as d,c as G}from"./Web-CGuHI0VK.chunk.mjs";const H={class:"input-field__main-wrapper"},P=["id","aria-describedby","disabled","placeholder","type","value"],Q=["for"],R={class:"input-field__icon input-field__icon--leading"},U={key:2,class:"input-field__icon input-field__icon--trailing"},W=["id"],X=L({inheritAttrs:!1,__name:"NcInputField",props:y({class:{default:""},inputClass:{default:""},id:{default:()=>G()},label:{default:void 0},labelOutside:{type:Boolean},type:{default:"text"},placeholder:{default:void 0},showTrailingButton:{type:Boolean},trailingButtonLabel:{default:void 0},success:{type:Boolean},error:{type:Boolean},helperText:{default:""},disabled:{type:Boolean},pill:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:y(["trailingButtonClick"],["update:modelValue"]),setup(c,{expose:B,emit:k}){const r=V(c,"modelValue"),l=c,$=k;B({focus:N,select:O});const f=j(),b=A("input"),T=o(()=>l.showTrailingButton||l.success),w=o(()=>{if(l.placeholder)return l.placeholder;if(l.label)return x?l.label:""}),_=o(()=>l.label||l.labelOutside),C=o(()=>{const e=[];return l.helperText&&e.push(`${l.id}-helper-text`),f["aria-describedby"]&&e.push(String(f["aria-describedby"])),e.join(" ")||void 0});function N(e){b.value.focus(e)}function O(){b.value.select()}function F(e){const a=e.target;r.value=l.type==="number"&&typeof r.value=="number"?parseFloat(a.value):a.value}return(e,a)=>(i(),n("div",{class:M(["input-field",[{"input-field--disabled":e.disabled,"input-field--error":e.error,"input-field--label-outside":e.labelOutside||!_.value,"input-field--leading-icon":!!e.$slots.icon,"input-field--trailing-icon":T.value,"input-field--pill":e.pill,"input-field--success":e.success,"input-field--legacy":s(x)},e.$props.class]])},[p("div",H,[p("input",q(e.$attrs,{id:e.id,ref:"input","aria-describedby":C.value,"aria-live":"polite",class:["input-field__input",e.inputClass],disabled:e.disabled,placeholder:w.value,type:e.type,value:r.value.toString(),onInput:F}),null,16,P),!e.labelOutside&&_.value?(i(),n("label",{key:0,class:"input-field__label",for:e.id},h(e.label),9,Q)):u("",!0),z(p("div",R,[v(e.$slots,"icon",{},void 0,!0)],512),[[D,!!e.$slots.icon]]),e.showTrailingButton?(i(),t(S,{key:1,class:"input-field__trailing-button","aria-label":e.trailingButtonLabel,disabled:e.disabled,variant:"tertiary-no-background",onClick:a[0]||(a[0]=I=>$("trailingButtonClick",I))},{icon:J(()=>[v(e.$slots,"trailing-button-icon",{},void 0,!0)]),_:3},8,["aria-label","disabled"])):e.success||e.error?(i(),n("div",U,[e.success?(i(),t(d,{key:0,path:s(g)},null,8,["path"])):(i(),t(d,{key:1,path:s(m)},null,8,["path"]))])):u("",!0)]),e.helperText?(i(),n("p",{key:0,id:`${e.id}-helper-text`,class:"input-field__helper-text-message"},[e.success?(i(),t(d,{key:0,class:"input-field__helper-text-message__icon",path:s(g),inline:""},null,8,["path"])):e.error?(i(),t(d,{key:1,class:"input-field__helper-text-message__icon",path:s(m),inline:""},null,8,["path"])):u("",!0),K(" "+h(e.helperText),1)],8,W)):u("",!0)],2))}}),le=E(X,[["__scopeId","data-v-fccfce00"]]);export{le as N};
|
||||
//# sourceMappingURL=NcInputField-CPL-a_MM-DBTTMHwb.chunk.mjs.map
|
||||
import{b as L,z as V,J as j,A,o as i,f as n,g as p,m as q,t as h,h as u,K as z,L as D,i as v,c as t,w as J,u as s,j as K,F as M,C as y,D as o}from"./preload-helper-HEeJwHUd.chunk.mjs";import{N as S,e as g,f as m,i as x}from"./ArrowRight-b3XAkWmg.chunk.mjs";import{_ as E,N as d,c as G}from"./Web-D3MaWivE.chunk.mjs";const H={class:"input-field__main-wrapper"},P=["id","aria-describedby","disabled","placeholder","type","value"],Q=["for"],R={class:"input-field__icon input-field__icon--leading"},U={key:2,class:"input-field__icon input-field__icon--trailing"},W=["id"],X=L({inheritAttrs:!1,__name:"NcInputField",props:y({class:{default:""},inputClass:{default:""},id:{default:()=>G()},label:{default:void 0},labelOutside:{type:Boolean},type:{default:"text"},placeholder:{default:void 0},showTrailingButton:{type:Boolean},trailingButtonLabel:{default:void 0},success:{type:Boolean},error:{type:Boolean},helperText:{default:""},disabled:{type:Boolean},pill:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:y(["trailingButtonClick"],["update:modelValue"]),setup(c,{expose:B,emit:k}){const r=V(c,"modelValue"),l=c,$=k;B({focus:N,select:O});const f=j(),b=A("input"),T=o(()=>l.showTrailingButton||l.success),w=o(()=>{if(l.placeholder)return l.placeholder;if(l.label)return x?l.label:""}),_=o(()=>l.label||l.labelOutside),C=o(()=>{const e=[];return l.helperText&&e.push(`${l.id}-helper-text`),f["aria-describedby"]&&e.push(String(f["aria-describedby"])),e.join(" ")||void 0});function N(e){b.value.focus(e)}function O(){b.value.select()}function F(e){const a=e.target;r.value=l.type==="number"&&typeof r.value=="number"?parseFloat(a.value):a.value}return(e,a)=>(i(),n("div",{class:M(["input-field",[{"input-field--disabled":e.disabled,"input-field--error":e.error,"input-field--label-outside":e.labelOutside||!_.value,"input-field--leading-icon":!!e.$slots.icon,"input-field--trailing-icon":T.value,"input-field--pill":e.pill,"input-field--success":e.success,"input-field--legacy":s(x)},e.$props.class]])},[p("div",H,[p("input",q(e.$attrs,{id:e.id,ref:"input","aria-describedby":C.value,"aria-live":"polite",class:["input-field__input",e.inputClass],disabled:e.disabled,placeholder:w.value,type:e.type,value:r.value.toString(),onInput:F}),null,16,P),!e.labelOutside&&_.value?(i(),n("label",{key:0,class:"input-field__label",for:e.id},h(e.label),9,Q)):u("",!0),z(p("div",R,[v(e.$slots,"icon",{},void 0,!0)],512),[[D,!!e.$slots.icon]]),e.showTrailingButton?(i(),t(S,{key:1,class:"input-field__trailing-button","aria-label":e.trailingButtonLabel,disabled:e.disabled,variant:"tertiary-no-background",onClick:a[0]||(a[0]=I=>$("trailingButtonClick",I))},{icon:J(()=>[v(e.$slots,"trailing-button-icon",{},void 0,!0)]),_:3},8,["aria-label","disabled"])):e.success||e.error?(i(),n("div",U,[e.success?(i(),t(d,{key:0,path:s(g)},null,8,["path"])):(i(),t(d,{key:1,path:s(m)},null,8,["path"]))])):u("",!0)]),e.helperText?(i(),n("p",{key:0,id:`${e.id}-helper-text`,class:"input-field__helper-text-message"},[e.success?(i(),t(d,{key:0,class:"input-field__helper-text-message__icon",path:s(g),inline:""},null,8,["path"])):e.error?(i(),t(d,{key:1,class:"input-field__helper-text-message__icon",path:s(m),inline:""},null,8,["path"])):u("",!0),K(" "+h(e.helperText),1)],8,W)):u("",!0)],2))}}),le=E(X,[["__scopeId","data-v-fccfce00"]]);export{le as N};
|
||||
//# sourceMappingURL=NcInputField-CPL-a_MM-DyD-MbPM.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{l as k,c as V,d as S}from"./ArrowRight-Dhovin9F.chunk.mjs";import{c as N}from"./index-DyIQJkdD.chunk.mjs";import{g as F}from"./public-CvthP4YJ.chunk.mjs";import{d as L,c as M}from"./index-Qk7XyFpu.chunk.mjs";import{r as $,e as z,_ as A,b as n,N as D}from"./Web-CGuHI0VK.chunk.mjs";import{N as H}from"./NcInputField-CPL-a_MM-DBTTMHwb.chunk.mjs";import{b as I,z as c,n as O,A as U,o as j,c as q,B as E,w as v,i as G,k as J,u as o,m as K,C as m,l as f,D as h}from"./preload-helper-D9xEqq8S.chunk.mjs";$(z);const Q=I({__name:"NcPasswordField",props:m({class:{},inputClass:{default:""},id:{},label:{},labelOutside:{type:Boolean},placeholder:{},showTrailingButton:{type:Boolean,default:!0},success:{type:Boolean},error:{type:Boolean},helperText:{},disabled:{type:Boolean},pill:{type:Boolean},checkPasswordStrength:{type:Boolean},minlength:{default:void 0},asText:{type:Boolean}},{modelValue:{default:""},modelModifiers:{},visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:m(["valid","invalid"],["update:modelValue","update:visible"]),setup(l,{expose:w,emit:y}){const s=c(l,"modelValue"),a=c(l,"visible"),t=l,d=y;O(s,L(b,500)),w({focus:_,select:C});const{password_policy:g}=F(),u=U("inputField"),i=f(""),r=f(),x=h(()=>{const e={...t};return delete e.checkPasswordStrength,delete e.minlength,delete e.asText,delete e.error,delete e.helperText,delete e.inputClass,delete e.success,e}),B=h(()=>t.minlength??(t.checkPasswordStrength?g?.minLength:void 0)??void 0);async function b(){if(t.checkPasswordStrength)try{const{data:e}=await N.post(M("apps/password_policy/api/v1/validate"),{password:s.value});if(r.value=e.ocs.data.passed,e.ocs.data.passed){i.value=n("Password is secure"),d("valid");return}i.value=e.ocs.data.reason,d("invalid")}catch(e){k.error("Password policy returned an error",{error:e})}}function T(){a.value=!a.value}function _(e){u.value.focus(e)}function C(){u.value.select()}return(e,p)=>(j(),q(H,K(x.value,{ref:"inputField",modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=P=>s.value=P),error:e.error||r.value===!1,helperText:e.helperText||i.value,inputClass:[e.inputClass,{"password-field__input--secure-text":!a.value&&e.asText}],minlength:B.value,success:e.success||r.value===!0,trailingButtonLabel:a.value?o(n)("Hide password"):o(n)("Show password"),type:a.value||e.asText?"text":"password",onTrailingButtonClick:T}),E({"trailing-button-icon":v(()=>[J(D,{path:a.value?o(V):o(S)},null,8,["path"])]),_:2},[e.$slots.icon?{name:"icon",fn:v(()=>[G(e.$slots,"icon",{},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","error","helperText","inputClass","minlength","success","trailingButtonLabel","type"]))}}),se=A(Q,[["__scopeId","data-v-00e75248"]]);export{se as N};
|
||||
//# sourceMappingURL=NcPasswordField-BOLzDHBJ-fq1V4k2z.chunk.mjs.map
|
||||
import{l as k,c as V,d as S}from"./ArrowRight-b3XAkWmg.chunk.mjs";import{c as N}from"./index-hnFmNpnF.chunk.mjs";import{g as F}from"./public-CvthP4YJ.chunk.mjs";import{d as L,c as M}from"./index-Qk7XyFpu.chunk.mjs";import{r as $,e as z,_ as A,b as n,N as D}from"./Web-D3MaWivE.chunk.mjs";import{N as H}from"./NcInputField-CPL-a_MM-DyD-MbPM.chunk.mjs";import{b as I,z as c,n as O,A as U,o as j,c as q,B as E,w as v,i as G,k as J,u as o,m as K,C as m,l as f,D as h}from"./preload-helper-HEeJwHUd.chunk.mjs";$(z);const Q=I({__name:"NcPasswordField",props:m({class:{},inputClass:{default:""},id:{},label:{},labelOutside:{type:Boolean},placeholder:{},showTrailingButton:{type:Boolean,default:!0},success:{type:Boolean},error:{type:Boolean},helperText:{},disabled:{type:Boolean},pill:{type:Boolean},checkPasswordStrength:{type:Boolean},minlength:{default:void 0},asText:{type:Boolean}},{modelValue:{default:""},modelModifiers:{},visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:m(["valid","invalid"],["update:modelValue","update:visible"]),setup(l,{expose:w,emit:y}){const s=c(l,"modelValue"),a=c(l,"visible"),t=l,d=y;O(s,L(b,500)),w({focus:_,select:C});const{password_policy:g}=F(),u=U("inputField"),i=f(""),r=f(),x=h(()=>{const e={...t};return delete e.checkPasswordStrength,delete e.minlength,delete e.asText,delete e.error,delete e.helperText,delete e.inputClass,delete e.success,e}),B=h(()=>t.minlength??(t.checkPasswordStrength?g?.minLength:void 0)??void 0);async function b(){if(t.checkPasswordStrength)try{const{data:e}=await N.post(M("apps/password_policy/api/v1/validate"),{password:s.value});if(r.value=e.ocs.data.passed,e.ocs.data.passed){i.value=n("Password is secure"),d("valid");return}i.value=e.ocs.data.reason,d("invalid")}catch(e){k.error("Password policy returned an error",{error:e})}}function T(){a.value=!a.value}function _(e){u.value.focus(e)}function C(){u.value.select()}return(e,p)=>(j(),q(H,K(x.value,{ref:"inputField",modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=P=>s.value=P),error:e.error||r.value===!1,helperText:e.helperText||i.value,inputClass:[e.inputClass,{"password-field__input--secure-text":!a.value&&e.asText}],minlength:B.value,success:e.success||r.value===!0,trailingButtonLabel:a.value?o(n)("Hide password"):o(n)("Show password"),type:a.value||e.asText?"text":"password",onTrailingButtonClick:T}),E({"trailing-button-icon":v(()=>[J(D,{path:a.value?o(V):o(S)},null,8,["path"])]),_:2},[e.$slots.icon?{name:"icon",fn:v(()=>[G(e.$slots,"icon",{},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","error","helperText","inputClass","minlength","success","trailingButtonLabel","type"]))}}),se=A(Q,[["__scopeId","data-v-00e75248"]]);export{se as N};
|
||||
//# sourceMappingURL=NcPasswordField-BOLzDHBJ-J2gvpRQo.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,4 +1,4 @@
|
|||
import{r as V,h as N,b as r,_ as x}from"./Web-CGuHI0VK.chunk.mjs";import{l as g}from"./ArrowRight-Dhovin9F.chunk.mjs";import{N as c,a as T}from"./NcSelect-B1uITk_3-DZL6hcTu.chunk.mjs";import{c as O}from"./index-DyIQJkdD.chunk.mjs";import{h as v}from"./index-Qk7XyFpu.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-D3MaWivE.chunk.mjs";import{l as g}from"./ArrowRight-b3XAkWmg.chunk.mjs";import{N as c,a as T}from"./NcSelect-B1uITk_3-BtpqR3Fh.chunk.mjs";import{c as O}from"./index-hnFmNpnF.chunk.mjs";import{h as v}from"./index-Qk7XyFpu.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-HEeJwHUd.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-CGuHI0VK.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-BbtQBBYz.chunk.mjs.map
|
||||
//# sourceMappingURL=NcSelectTags-B3_tcJAf-SyfKBPF1.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{m as v,a as x,b as V}from"./ArrowRight-Dhovin9F.chunk.mjs";import{r as k,t as w,a as I,b as t,N as c}from"./Web-CGuHI0VK.chunk.mjs";import{N as d}from"./NcInputField-CPL-a_MM-DBTTMHwb.chunk.mjs";import{b as O,z as j,A as C,o as l,c as n,B as E,w as p,i as F,u as a,m as N,C as T,D as _}from"./preload-helper-D9xEqq8S.chunk.mjs";k(I,w);const $=O({__name:"NcTextField",props:T({class:{},inputClass:{},id:{},label:{},labelOutside:{type:Boolean},type:{},placeholder:{},showTrailingButton:{type:Boolean},trailingButtonLabel:{default:void 0},success:{type:Boolean},error:{type:Boolean},helperText:{},disabled:{type:Boolean},pill:{type:Boolean},trailingButtonIcon:{default:"close"}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(s,{expose:m}){const i=j(s,"modelValue"),r=s;m({focus:y,select:h});const u=C("inputField"),f={arrowEnd:t("Save changes"),close:t("Clear text"),undo:t("Undo changes")},B=new Set(Object.keys(d.props)),b=_(()=>{const e=Object.fromEntries(Object.entries(r).filter(([o])=>B.has(o)));return e.trailingButtonLabel??=f[r.trailingButtonIcon],e});function y(e){u.value.focus(e)}function h(){u.value.select()}return(e,o)=>(l(),n(a(d),N(b.value,{ref:"inputField",modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=g=>i.value=g)}),E({_:2},[e.$slots.icon?{name:"icon",fn:p(()=>[F(e.$slots,"icon")]),key:"0"}:void 0,e.type!=="search"?{name:"trailing-button-icon",fn:p(()=>[e.trailingButtonIcon==="arrowEnd"?(l(),n(a(c),{key:0,directional:"",path:a(v)},null,8,["path"])):(l(),n(a(c),{key:1,path:e.trailingButtonIcon==="undo"?a(x):a(V)},null,8,["path"]))]),key:"1"}:void 0]),1040,["modelValue"]))}});export{$ as _};
|
||||
//# sourceMappingURL=NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-Ddm0cXFK.chunk.mjs.map
|
||||
import{m as v,a as x,b as V}from"./ArrowRight-b3XAkWmg.chunk.mjs";import{r as k,t as w,a as I,b as t,N as c}from"./Web-D3MaWivE.chunk.mjs";import{N as d}from"./NcInputField-CPL-a_MM-DyD-MbPM.chunk.mjs";import{b as O,z as j,A as C,o as l,c as n,B as E,w as p,i as F,u as a,m as N,C as T,D as _}from"./preload-helper-HEeJwHUd.chunk.mjs";k(I,w);const $=O({__name:"NcTextField",props:T({class:{},inputClass:{},id:{},label:{},labelOutside:{type:Boolean},type:{},placeholder:{},showTrailingButton:{type:Boolean},trailingButtonLabel:{default:void 0},success:{type:Boolean},error:{type:Boolean},helperText:{},disabled:{type:Boolean},pill:{type:Boolean},trailingButtonIcon:{default:"close"}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(s,{expose:m}){const i=j(s,"modelValue"),r=s;m({focus:y,select:h});const u=C("inputField"),f={arrowEnd:t("Save changes"),close:t("Clear text"),undo:t("Undo changes")},B=new Set(Object.keys(d.props)),b=_(()=>{const e=Object.fromEntries(Object.entries(r).filter(([o])=>B.has(o)));return e.trailingButtonLabel??=f[r.trailingButtonIcon],e});function y(e){u.value.focus(e)}function h(){u.value.select()}return(e,o)=>(l(),n(a(d),N(b.value,{ref:"inputField",modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=g=>i.value=g)}),E({_:2},[e.$slots.icon?{name:"icon",fn:p(()=>[F(e.$slots,"icon")]),key:"0"}:void 0,e.type!=="search"?{name:"trailing-button-icon",fn:p(()=>[e.trailingButtonIcon==="arrowEnd"?(l(),n(a(c),{key:0,directional:"",path:a(v)},null,8,["path"])):(l(),n(a(c),{key:1,path:e.trailingButtonIcon==="undo"?a(x):a(V)},null,8,["path"]))]),key:"1"}:void 0]),1040,["modelValue"]))}});export{$ as _};
|
||||
//# sourceMappingURL=NcTextField.vue_vue_type_script_setup_true_lang-B-4HNjYH-D-ENREqk.chunk.mjs.map
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue