Merge pull request #59033 from nextcloud/fix/files-external-issues
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Integration sqlite / changes (push) Waiting to run
Integration sqlite / integration-sqlite (master, 8.4, main, --tags ~@large files_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, capabilities_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, collaboration_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, comments_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, dav_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, federation_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, file_conversions) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, files_reminders) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, filesdrop_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, ldap_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, openldap_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, openldap_numerical_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, remoteapi_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, routing_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, setup_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, sharees_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, sharing_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, theming_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (master, 8.4, main, videoverification_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite-summary (push) Blocked by required conditions
Psalm static code analysis / static-code-analysis (push) Waiting to run
Psalm static code analysis / static-code-analysis-security (push) Waiting to run
Psalm static code analysis / static-code-analysis-ocp (push) Waiting to run
Psalm static code analysis / static-code-analysis-ncu (push) Waiting to run
Psalm static code analysis / static-code-analysis-strict (push) Waiting to run

fix(files_external): properly handle API errors
This commit is contained in:
Ferdinand Thiessen 2026-03-18 15:10:22 +01:00 committed by GitHub
commit 35606bc6bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
370 changed files with 1016 additions and 901 deletions

View file

@ -33,7 +33,7 @@ const open = defineModel<boolean>('open', { default: true })
const {
storage = { backendOptions: {}, mountOptions: {}, type: isAdmin ? 'system' : 'personal' },
} = defineProps<{
storage?: Partial<IStorage> & { backendOptions: IStorage['backendOptions'] }
storage?: Partial<IStorage>
}>()
defineEmits<{
@ -88,7 +88,7 @@ watch(authMechanisms, () => {
:label="t('files_external', 'Folder name')"
required />
<MountOptions v-model="internalStorage.mountOptions" />
<MountOptions v-model="internalStorage.mountOptions!" />
<ApplicableEntities
v-if="isAdmin"
@ -112,13 +112,13 @@ watch(authMechanisms, () => {
required />
<BackendConfiguration
v-if="backend"
v-if="backend && internalStorage.backendOptions"
v-model="internalStorage.backendOptions"
:class="$style.externalStorageDialog__configuration"
:configuration="backend.configuration" />
<AuthMechanismConfiguration
v-if="authMechanism"
v-if="authMechanism && internalStorage.backendOptions"
v-model="internalStorage.backendOptions"
:class="$style.externalStorageDialog__configuration"
:authMechanism="authMechanism" />

View file

@ -14,17 +14,14 @@ import NcButton from '@nextcloud/vue/components/NcButton'
import NcCheckboxRadioSwitch from '@nextcloud/vue/components/NcCheckboxRadioSwitch'
import NcIconSvgWrapper from '@nextcloud/vue/components/NcIconSvgWrapper'
import NcSelect from '@nextcloud/vue/components/NcSelect'
import { parseMountOptions } from '../../store/storages.ts'
import { MountOptionsCheckFilesystem } from '../../types.ts'
const mountOptions = defineModel<Partial<IMountOptions>>({ required: true })
watchEffect(() => {
if (Object.keys(mountOptions.value).length === 0) {
mountOptions.value.encrypt = true
mountOptions.value.previews = true
mountOptions.value.enable_sharing = false
mountOptions.value.filesystem_check_changes = MountOptionsCheckFilesystem.OncePerRequest
mountOptions.value.encoding_compatibility = false
mountOptions.value.readonly = false
// parse and initialize with defaults if needed
mountOptions.value = parseMountOptions(mountOptions.value)
}
})

View file

@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import type { IStorage } from '../types.d.ts'
import type { IStorage } from '../types.ts'
import axios from '@nextcloud/axios'
import { loadState } from '@nextcloud/initial-state'
@ -11,6 +11,7 @@ import { addPasswordConfirmationInterceptors, PwdConfirmationMode } from '@nextc
import { generateUrl } from '@nextcloud/router'
import { defineStore } from 'pinia'
import { ref, toRaw } from 'vue'
import { MountOptionsCheckFilesystem } from '../types.ts'
const { isAdmin } = loadState<{ isAdmin: boolean }>('files_external', 'settings')
@ -30,7 +31,7 @@ export const useStorages = defineStore('files_external--storages', () => {
toRaw(storage),
{ confirmPassword: PwdConfirmationMode.Strict },
)
globalStorages.value.push(data)
globalStorages.value.push(parseStorage(data))
}
/**
@ -45,7 +46,7 @@ export const useStorages = defineStore('files_external--storages', () => {
toRaw(storage),
{ confirmPassword: PwdConfirmationMode.Strict },
)
userStorages.value.push(data)
userStorages.value.push(parseStorage(data))
}
/**
@ -77,7 +78,7 @@ export const useStorages = defineStore('files_external--storages', () => {
{ confirmPassword: PwdConfirmationMode.Strict },
)
overrideStorage(data)
overrideStorage(parseStorage(data))
}
/**
@ -87,7 +88,7 @@ export const useStorages = defineStore('files_external--storages', () => {
*/
async function reloadStorage(storage: IStorage) {
const { data } = await axios.get(getUrl(storage))
overrideStorage(data)
overrideStorage(parseStorage(data))
}
// initialize the store
@ -111,6 +112,7 @@ export const useStorages = defineStore('files_external--storages', () => {
const url = `apps/files_external/${type}`
const { data } = await axios.get<Record<number, IStorage>>(generateUrl(url))
return Object.values(data)
.map(parseStorage)
}
/**
@ -150,3 +152,45 @@ export const useStorages = defineStore('files_external--storages', () => {
}
}
})
/**
* @param storage - The storage from API
*/
function parseStorage(storage: IStorage) {
return {
...storage,
mountOptions: parseMountOptions(storage.mountOptions),
}
}
/**
* Parse the mount options and convert string boolean values to
* actual booleans and numeric strings to numbers
*
* @param options - The mount options to parse
*/
export function parseMountOptions(options: IStorage['mountOptions']) {
const mountOptions = { ...options }
mountOptions.encrypt = convertBooleanOptions(mountOptions.encrypt, true)
mountOptions.previews = convertBooleanOptions(mountOptions.previews, true)
mountOptions.enable_sharing = convertBooleanOptions(mountOptions.enable_sharing, false)
mountOptions.filesystem_check_changes = typeof mountOptions.filesystem_check_changes === 'string'
? Number.parseInt(mountOptions.filesystem_check_changes)
: (mountOptions.filesystem_check_changes ?? MountOptionsCheckFilesystem.OncePerRequest)
mountOptions.encoding_compatibility = convertBooleanOptions(mountOptions.encoding_compatibility, false)
mountOptions.readonly = convertBooleanOptions(mountOptions.readonly, false)
return mountOptions
}
/**
* Convert backend encoding of boolean options
*
* @param option - The option value from API
* @param fallback - The fallback (default) value
*/
function convertBooleanOptions(option: unknown, fallback = false) {
if (option === undefined) {
return fallback
}
return option === true || option === 'true' || option === '1'
}

View file

@ -59,7 +59,8 @@ async function addStorage(storage?: Partial<IStorage>) {
}
newStorage.value = undefined
} catch (error) {
logger.error('Failed to add external storage', { error })
logger.error('Failed to add external storage', { error, storage })
newStorage.value = { ...storage }
showDialog.value = true
}
}
@ -134,8 +135,8 @@ async function addStorage(storage?: Partial<IStorage>) {
</NcButton>
<AddExternalStorageDialog
v-model="newStorage"
v-model:open="showDialog"
:storage="newStorage"
@close="addStorage" />
<UserMountSettings v-if="settings.isAdmin" />

View file

@ -0,0 +1,2 @@
import{f as g,B as y,u as o,o as n,g as p,N as h,w as v,v as _,t as V,E as k,i as x,c as d,H as K,I as M,K as w,L as U,h as f,r as q}from"./runtime-dom.esm-bundler-CKxgtjB6.chunk.mjs";import{c as E}from"./index-2a6kOrDy.chunk.mjs";import{a as L}from"./index-C1xmmKTZ-DF4bDPEh.chunk.mjs";import{t as s}from"./translation-DoG5ZELJ-XUrtIRvk.chunk.mjs";import{g as N}from"./createElementId-DhjFt1I9-DdwCqgaq.chunk.mjs";import{N as S}from"./autolink-U5pBzLgI-D1NMH9bI.chunk.mjs";import{N as j}from"./NcSelect-B1uITk_3-0e2p8qEi.chunk.mjs";import{N as A}from"./NcCheckboxRadioSwitch-D0gFwEVl-BbcIGLyw.chunk.mjs";import{N as B}from"./NcPasswordField-BOLzDHBJ-CKSnPt2n.chunk.mjs";import{_ as C}from"./TrashCanOutline-DmYYOQ4b.chunk.mjs";import{C as c,a as b}from"./types-Dild8a3G.chunk.mjs";import{l as z}from"./logger-resIultJ.chunk.mjs";const P=g({__name:"ConfigurationEntry",props:k({configKey:{},configOption:{}},{modelValue:{type:[String,Boolean],default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=y(e,"modelValue");return(t,i)=>e.configOption.type!==o(c).Boolean?(n(),p(h(e.configOption.type===o(c).Password?o(B):o(C)),{key:0,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),name:e.configKey,required:!(e.configOption.flags&o(b).Optional),label:e.configOption.value,title:e.configOption.tooltip},null,8,["modelValue","name","required","label","title"])):(n(),p(o(A),{key:1,modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=l=>a.value=l),type:"switch",title:e.configOption.tooltip},{default:v(()=>[_(V(e.configOption.value),1)]),_:1},8,["modelValue","title"]))}}),R=g({__name:"AuthMechanismRsa",props:k({authMechanism:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=y(e,"modelValue"),t=q();x(t,()=>{t.value&&(a.value.private_key="",a.value.public_key="")});async function i(){try{const{data:l}=await E.post(N("/apps/files_external/ajax/public_key.php"),{keyLength:t.value});a.value.private_key=l.data.private_key,a.value.public_key=l.data.public_key}catch(l){z.error("Error generating RSA key pair",{error:l}),L(s("files_external","Error generating key pair"))}}return(l,m)=>(n(),d("div",null,[(n(!0),d(K,null,M(e.authMechanism.configuration,(r,u)=>w((n(),p(P,{key:r.value,modelValue:a.value[u],"onUpdate:modelValue":O=>a.value[u]=O,configKey:u,configOption:r},null,8,["modelValue","onUpdate:modelValue","configKey","configOption"])),[[U,!(r.flags&o(b).Hidden)]])),128)),f(o(j),{modelValue:t.value,"onUpdate:modelValue":m[0]||(m[0]=r=>t.value=r),clearable:!1,inputLabel:o(s)("files_external","Key size"),options:[1024,2048,4096],required:""},null,8,["modelValue","inputLabel"]),f(o(S),{disabled:!t.value,wide:"",onClick:i},{default:v(()=>[_(V(o(s)("files_external","Generate keys")),1)]),_:1},8,["disabled"])]))}}),$=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));export{$ as A,P as _};
//# sourceMappingURL=AuthMechanismRsa-CX_mdruD.chunk.mjs.map

File diff suppressed because one or more lines are too long

View file

@ -1,2 +0,0 @@
import{f as y,q as g,u as o,o as n,g as p,I as h,w as v,j as _,t as V,y as k,s as x,c as d,F as M,C as q,E as w,G as K,h as f,r as U}from"./runtime-dom.esm-bundler-DPEdZePn.chunk.mjs";import{c as j}from"./index-BCebL___.chunk.mjs";import{a as C}from"./index-C1xmmKTZ-CGpLs37u.chunk.mjs";import{t as s}from"./translation-DoG5ZELJ-XUrtIRvk.chunk.mjs";import{g as E}from"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";import{N}from"./autolink-U5pBzLgI-Bpd-_ISJ.chunk.mjs";import{N as S}from"./NcSelect-DLheQ2yp-DujwD-Lb.chunk.mjs";import{N as A}from"./NcCheckboxRadioSwitch-BMsPx74L-fxtySBP5.chunk.mjs";import{N as L}from"./NcPasswordField-uaMO2pdt-Y_frnjqT.chunk.mjs";import{_ as z}from"./TrashCanOutline-CIT5iIpm.chunk.mjs";import{C as c,a as b}from"./types-DjW25Xxr.chunk.mjs";import{l as B}from"./logger-resIultJ.chunk.mjs";const P=y({__name:"ConfigurationEntry",props:k({configKey:{},configOption:{}},{modelValue:{type:[String,Boolean],default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=g(e,"modelValue");return(t,i)=>e.configOption.type!==o(c).Boolean?(n(),p(h(e.configOption.type===o(c).Password?o(L):o(z)),{key:0,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),name:e.configKey,required:!(e.configOption.flags&o(b).Optional),label:e.configOption.value,title:e.configOption.tooltip},null,8,["modelValue","name","required","label","title"])):(n(),p(o(A),{key:1,modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=l=>a.value=l),type:"switch",title:e.configOption.tooltip},{default:v(()=>[_(V(e.configOption.value),1)]),_:1},8,["modelValue","title"]))}}),R=y({__name:"AuthMechanismRsa",props:k({authMechanism:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=g(e,"modelValue"),t=U();x(t,()=>{t.value&&(a.value.private_key="",a.value.public_key="")});async function i(){try{const{data:l}=await j.post(E("/apps/files_external/ajax/public_key.php"),{keyLength:t.value});a.value.private_key=l.data.private_key,a.value.public_key=l.data.public_key}catch(l){B.error("Error generating RSA key pair",{error:l}),C(s("files_external","Error generating key pair"))}}return(l,m)=>(n(),d("div",null,[(n(!0),d(M,null,q(e.authMechanism.configuration,(r,u)=>w((n(),p(P,{key:r.value,modelValue:a.value[u],"onUpdate:modelValue":O=>a.value[u]=O,configKey:u,configOption:r},null,8,["modelValue","onUpdate:modelValue","configKey","configOption"])),[[K,!(r.flags&o(b).Hidden)]])),128)),f(o(S),{modelValue:t.value,"onUpdate:modelValue":m[0]||(m[0]=r=>t.value=r),clearable:!1,inputLabel:o(s)("files_external","Key size"),options:[1024,2048,4096],required:""},null,8,["modelValue","inputLabel"]),f(o(N),{disabled:!t.value,wide:"",onClick:i},{default:v(()=>[_(V(o(s)("files_external","Generate keys")),1)]),_:1},8,["disabled"])]))}}),$=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));export{$ as A,P as _};
//# sourceMappingURL=AuthMechanismRsa-ClWp2M4c.chunk.mjs.map

View file

@ -1,2 +1,2 @@
import{r as g,B as h,_ as p,a as C}from"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";import{f as _,o as i,c as e,b as o,j as y,t as s,u as d,h as H,e as r,n as b,m}from"./runtime-dom.esm-bundler-DPEdZePn.chunk.mjs";import{a as k}from"./index-Ma7sfat2.chunk.mjs";const A={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,u){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(A,[["render",M]]);g(h);const x={class:"settings-section"},$={class:"settings-section__name"},I=["aria-label","href","title"],N={key:0,class:"settings-section__desc"},B=_({__name:"NcSettingsSection",props:{name:{},description:{default:""},docUrl:{default:""}},setup(a){const l=C("External documentation");return(t,c)=>(i(),e("div",x,[o("h2",$,[y(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)},[H(S,{size:20})],8,I)):r("",!0)]),t.description?(i(),e("p",N,s(t.description),1)):r("",!0),b(t.$slots,"default",{},void 0,!0)]))}}),T=p(B,[["__scopeId","data-v-9cedb949"]]),U={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,u){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=k(U,[["render",q]]);export{G as I,T as N};
//# sourceMappingURL=ContentCopy-DcIrS3JP.chunk.mjs.map
import{r as g,B as h,_ as p,a as C}from"./createElementId-DhjFt1I9-DdwCqgaq.chunk.mjs";import{f as _,o as i,c as e,b as o,v as y,t as s,u as d,h as H,e as r,z as b,m}from"./runtime-dom.esm-bundler-CKxgtjB6.chunk.mjs";import{a as k}from"./index-BgmsSgl5.chunk.mjs";const A={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},v=["aria-hidden","aria-label"],z=["fill","width","height"],V={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"},w={key:0};function M(a,l,t,c,f,u){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",V,[t.title?(i(),e("title",w,s(t.title),1)):r("",!0)])],8,z))],16,v)}const S=p(A,[["render",M]]);g(h);const x={class:"settings-section"},$={class:"settings-section__name"},I=["aria-label","href","title"],N={key:0,class:"settings-section__desc"},B=_({__name:"NcSettingsSection",props:{name:{},description:{default:""},docUrl:{default:""}},setup(a){const l=C("External documentation");return(t,c)=>(i(),e("div",x,[o("h2",$,[y(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)},[H(S,{size:20})],8,I)):r("",!0)]),t.description?(i(),e("p",N,s(t.description),1)):r("",!0),b(t.$slots,"default",{},void 0,!0)]))}}),T=p(B,[["__scopeId","data-v-9cedb949"]]),U={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"],E={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"},j={key:0};function q(a,l,t,c,f,u){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",E,[t.title?(i(),e("title",j,s(t.title),1)):r("",!0)])],8,Z))],16,L)}const G=k(U,[["render",q]]);export{G as I,T as N};
//# sourceMappingURL=ContentCopy-ljx8CODs.chunk.mjs.map

View file

@ -5,7 +5,7 @@ SPDX-FileCopyrightText: Rob Cresswell <robcresswell@pm.me>
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- vue-material-design-icons
- version: 5.3.1

File diff suppressed because one or more lines are too long

View file

@ -5,7 +5,7 @@ SPDX-FileCopyrightText: Rob Cresswell <robcresswell@pm.me>
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- vue-material-design-icons
- version: 5.3.1

View file

@ -1,2 +1,2 @@
import{t}from"./translation-DoG5ZELJ-XUrtIRvk.chunk.mjs";import{N as u}from"./index-CKn3f84a.chunk.mjs";import{N as d}from"./mdi-Cgau7A4L.chunk.mjs";import{N as p}from"./NcPasswordField-uaMO2pdt-Y_frnjqT.chunk.mjs";import{_ as c}from"./TrashCanOutline-CIT5iIpm.chunk.mjs";import{f as g,o as h,g as f,w as x,h as s,u as e,r as n}from"./runtime-dom.esm-bundler-DPEdZePn.chunk.mjs";import"./index-Bndk0DrU.chunk.mjs";import"./NcModal-DHryP_87-Cy2jN0l1.chunk.mjs";import"./autolink-U5pBzLgI-Bpd-_ISJ.chunk.mjs";import"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";import"./Web-BMpaLM07.chunk.mjs";import"./index-Ma7sfat2.chunk.mjs";import"./index-BCebL___.chunk.mjs";import"./index-sH3U_332.chunk.mjs";import"./NcInputField-o5OFv3z6-CZbWqg6Y.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)=>(h(),f(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-Du34Aomc.chunk.mjs.map
import{t}from"./translation-DoG5ZELJ-XUrtIRvk.chunk.mjs";import{N as u}from"./index-CrY7NZWO.chunk.mjs";import{N as d}from"./mdi--cNatcgF.chunk.mjs";import{N as p}from"./NcPasswordField-BOLzDHBJ-CKSnPt2n.chunk.mjs";import{_ as c}from"./TrashCanOutline-DmYYOQ4b.chunk.mjs";import{f as g,o as h,g as f,w as x,h as s,u as e,r as n}from"./runtime-dom.esm-bundler-CKxgtjB6.chunk.mjs";import"./index-Bndk0DrU.chunk.mjs";import"./NcModal-kyWZ3UFC-CC38MZrD.chunk.mjs";import"./autolink-U5pBzLgI-D1NMH9bI.chunk.mjs";import"./createElementId-DhjFt1I9-DdwCqgaq.chunk.mjs";import"./Web-DS-WBH9c.chunk.mjs";import"./index-BgmsSgl5.chunk.mjs";import"./index-2a6kOrDy.chunk.mjs";import"./index-sH3U_332.chunk.mjs";import"./NcInputField-CPL-a_MM-R1bsVnGI.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)=>(h(),f(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-B31YbvoI.chunk.mjs.map

View file

@ -1 +1 @@
{"version":3,"file":"CredentialsDialog-Du34Aomc.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":"6yBAiBA,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-B31YbvoI.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":"6yBAiBA,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

View file

@ -7,5 +7,5 @@ This file is generated from multiple sources. Included packages:
- version: 7.3.0
- license: AGPL-3.0-or-later
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later

File diff suppressed because one or more lines are too long

View file

@ -7,5 +7,5 @@ This file is generated from multiple sources. Included packages:
- version: 7.3.0
- license: AGPL-3.0-or-later
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later

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

View file

@ -8,7 +8,7 @@ SPDX-FileCopyrightText: ts-md5 developers
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 14.2.1

File diff suppressed because one or more lines are too long

View file

@ -8,7 +8,7 @@ SPDX-FileCopyrightText: ts-md5 developers
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 14.2.1

File diff suppressed because one or more lines are too long

View file

@ -7,7 +7,7 @@ SPDX-FileCopyrightText: p-queue developers
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- eventemitter3
- version: 5.0.1

View file

@ -7,7 +7,7 @@ SPDX-FileCopyrightText: p-queue developers
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- eventemitter3
- version: 5.0.1

View file

@ -3,5 +3,5 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later

View file

@ -3,5 +3,5 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later

File diff suppressed because one or more lines are too long

View file

@ -12,5 +12,5 @@ This file is generated from multiple sources. Included packages:
- version: 3.6.1
- license: MIT
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later

View file

@ -12,5 +12,5 @@ This file is generated from multiple sources. Included packages:
- version: 3.6.1
- license: MIT
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later

File diff suppressed because one or more lines are too long

View file

@ -5,7 +5,7 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- splitpanes
- version: 4.0.4

File diff suppressed because one or more lines are too long

View file

@ -5,7 +5,7 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- splitpanes
- version: 4.0.4

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

View file

@ -0,0 +1,2 @@
import{A as d}from"./PencilOutline-Qk8GS-l0.chunk.mjs";import{d as _,z as C,A as S}from"./NcModal-kyWZ3UFC-CC38MZrD.chunk.mjs";import{_ as f}from"./createElementId-DhjFt1I9-DdwCqgaq.chunk.mjs";import{o as a,c as o,b as n,z as x,P as g,A as k,t as l,e as y,s as I,h,w as v,f as w,u as T,F as m,a0 as p}from"./runtime-dom.esm-bundler-CKxgtjB6.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"],A=["download","href","aria-label","target","title","role"],U={key:0,class:"action-link__longtext-wrapper"},N={class:"action-link__name"},$=["textContent"],j=["textContent"],R={key:2,class:"action-link__text"};function W(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",U,[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,$)])):e.isLongText?(a(),o("span",{key:1,class:"action-link__longtext",textContent:l(e.text)},null,8,j)):(a(),o("span",R,l(e.text),1)),y("",!0)],8,A)],8,M)}const X=f(L,[["render",W],["__scopeId","data-v-32f01b7a"]]),q={name:"NcActionRouter",mixins:[d],inject:{isInSemanticMenu:{from:_,default:!1}},props:{to:{type:[String,Object],required:!0}}},z=["role"],B={key:0,class:"action-router__longtext-wrapper"},O={class:"action-router__name"},D=["textContent"],F=["textContent"],P={key:2,class:"action-router__text"};function E(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",B,[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,D)])):e.isLongText?(a(),o("span",{key:1,class:"action-router__longtext",textContent:l(e.text)},null,8,F)):(a(),o("span",P,l(e.text),1)),y("",!0)]),_:3},8,["aria-label","role","title","to","onClick"])],8,z)}const Y=f(q,[["render",E],["__scopeId","data-v-87267750"]]),G=["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=C(p(()=>t.timestamp),u),s=m(()=>t.relativeTime?r.value:c.value);return(b,H)=>(a(),o("span",{class:"nc-datetime",dir:"auto","data-timestamp":b.timestamp,title:T(c),textContent:l(s.value)},null,8,G))}});export{X as N,Z as _,Y as a};
//# sourceMappingURL=NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-CDFdx-HI.chunk.mjs.map

View file

@ -3,5 +3,5 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later

View file

@ -3,5 +3,5 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later

View file

@ -1,2 +0,0 @@
import{A as d}from"./PencilOutline-BEazDXA8.chunk.mjs";import{d as _,B as b,C as S}from"./NcModal-DHryP_87-Cy2jN0l1.chunk.mjs";import{_ as f}from"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";import{o as a,c as o,b as n,n as x,K as g,p as k,t as l,e as y,i as I,h,w as v,f as w,u as T,z as m,_ as p}from"./runtime-dom.esm-bundler-DPEdZePn.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"],N={key:0,class:"action-link__longtext-wrapper"},$={class:"action-link__name"},j=["textContent"],A=["textContent"],B={key:2,class:"action-link__text"};function R(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",N,[n("strong",$,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,j)])):e.isLongText?(a(),o("span",{key:1,class:"action-link__longtext",textContent:l(e.text)},null,8,A)):(a(),o("span",B,l(e.text),1)),y("",!0)],8,U)],8,M)}const X=f(L,[["render",R],["__scopeId","data-v-32f01b7a"]]),W={name:"NcActionRouter",mixins:[d],inject:{isInSemanticMenu:{from:_,default:!1}},props:{to:{type:[String,Object],required:!0}}},q=["role"],O={key:0,class:"action-router__longtext-wrapper"},z={class:"action-router__name"},D=["textContent"],K=["textContent"],E={key:2,class:"action-router__text"};function F(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",O,[n("strong",z,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,D)])):e.isLongText?(a(),o("span",{key:1,class:"action-router__longtext",textContent:l(e.text)},null,8,K)):(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",F],["__scopeId","data-v-87267750"]]),G=["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,H)=>(a(),o("span",{class:"nc-datetime",dir:"auto","data-timestamp":C.timestamp,title:T(c),textContent:l(s.value)},null,8,G))}});export{X as N,Z as _,Y as a};
//# sourceMappingURL=NcDateTime.vue_vue_type_script_setup_true_lang-BhB8yA4U-B7cQ5dZh.chunk.mjs.map

File diff suppressed because one or more lines are too long

View file

@ -5,7 +5,7 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- emoji-mart-vue-fast
- version: 15.0.5

View file

@ -5,7 +5,7 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- emoji-mart-vue-fast
- version: 15.0.5

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
import{k as d,f as l,o as e,c as s,n as t,e as o,u as n,j as r,t as i,aj as p,ak as m,al as u,am as f,F as y,an as v,ao as h,a8 as S,ap as C,af as R,T,aq as w,ar as _,as as g,at as k,au as E,ab as x,z as b,g as V,b as B,av as P,x as N,h as $,aw as I,a as M,d as z,P as D,a5 as H,X as A,ax as j,ae as U,a6 as K,ay as O,S as W,R as F,az as q,V as G,a4 as L,U as J,aA as Q,aB as X,Q as Y,y as Z,m as aa,M as ea,aC as sa,p as ta,ad as oa,K as na,aD as ra,N as ia,O as ca,aE as la,aF as da,aG as pa,A as ma,aH as ua,aI as fa,Y as ya,aJ as va,B as ha,aK as Sa,aL as Ca,aM as Ra,aN as Ta,a7 as wa,aO as _a,aP as ga,aQ as ka,L as Ea,a3 as xa,r as ba,aR as Va,C as Ba,i as Pa,aa as Na,I as $a,aS as Ia,aT as Ma,aU as za,aV as Da,aW as Ha,ac as Aa,aX as ja,aY as Ua,J as Ka,W as Oa,_ as Wa,Z as Fa,a2 as qa,D as Ga,a0 as La,a1 as Ja,q as Qa,aZ as Xa,l as Ya,v as Za,a_ as ae,ag as ee,G as se,a$ as te,ai as oe,s as ne,a9 as re,b0 as ie,w as ce,E as le,$ as de,H as pe,b1 as me}from"./runtime-dom.esm-bundler-DPEdZePn.chunk.mjs";import{_ as ue,c as fe}from"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";const ke=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:p,BaseTransitionPropsValidators:m,Comment:u,EffectScope:f,Fragment:y,ReactiveEffect:v,Static:h,Teleport:S,Text:C,Transition:R,TransitionGroup:T,VueElement:w,callWithAsyncErrorHandling:_,callWithErrorHandling:g,camelize:k,capitalize:E,cloneVNode:x,computed:b,createApp:d,createBlock:V,createCommentVNode:o,createElementBlock:s,createElementVNode:B,createRenderer:P,createSlots:N,createTextVNode:r,createVNode:$,customRef:I,defineAsyncComponent:M,defineComponent:l,defineCustomElement:z,effectScope:D,getCurrentInstance:H,getCurrentScope:A,getTransitionRawChildren:j,guardReactiveProps:U,h:K,handleError:O,hasInjectionContext:W,inject:F,isProxy:q,isReactive:G,isReadonly:L,isRef:J,isShallow:Q,isVNode:X,markRaw:Y,mergeModels:Z,mergeProps:aa,nextTick:ea,nodeOps:sa,normalizeClass:ta,normalizeProps:oa,normalizeStyle:na,onActivated:ra,onBeforeMount:ia,onBeforeUnmount:ca,onBeforeUpdate:la,onDeactivated:da,onErrorCaptured:pa,onMounted:ma,onRenderTracked:ua,onRenderTriggered:fa,onScopeDispose:ya,onServerPrefetch:va,onUnmounted:ha,onUpdated:Sa,onWatcherCleanup:Ca,openBlock:e,patchProp:Ra,popScopeId:Ta,provide:wa,proxyRefs:_a,pushScopeId:ga,queuePostFlushCb:ka,reactive:Ea,readonly:xa,ref:ba,render:Va,renderList:Ba,renderSlot:t,resolveComponent:Pa,resolveDirective:Na,resolveDynamicComponent:$a,resolveTransitionHooks:Ia,setBlockTracking:Ma,setTransitionHooks:za,shallowReactive:Da,shallowReadonly:Ha,shallowRef:Aa,ssrContextKey:ja,toDisplayString:i,toHandlerKey:Ua,toHandlers:Ka,toRaw:Oa,toRef:Wa,toRefs:Fa,toValue:qa,unref:n,useAttrs:Ga,useCssVars:La,useId:Ja,useModel:Qa,useSSRContext:Xa,useSlots:Ya,useTemplateRef:Za,useTransitionState:ae,vModelText:ee,vShow:se,version:te,warn:oe,watch:ne,watchEffect:re,watchSyncEffect:ie,withCtx:ce,withDirectives:le,withKeys:de,withModifiers:pe,withScopeId:me},Symbol.toStringTag,{value:"Module"})),ye=["aria-labelledby"],ve={key:0,class:"empty-content__icon","aria-hidden":"true"},he=["id"],Se={key:2,class:"empty-content__description"},Ce={key:3,class:"empty-content__action"},Re=l({__name:"NcEmptyContent",props:{description:{default:""},name:{default:""}},setup(Te){const c=fe();return(a,we)=>(e(),s("div",{"aria-labelledby":n(c),class:"empty-content",role:"note"},[a.$slots.icon?(e(),s("div",ve,[t(a.$slots,"icon",{},void 0,!0)])):o("",!0),a.name!==""||a.$slots.name?(e(),s("div",{key:1,id:n(c),class:"empty-content__name"},[t(a.$slots,"name",{},()=>[r(i(a.name),1)],!0)],8,he)):o("",!0),a.description!==""||a.$slots.description?(e(),s("p",Se,[t(a.$slots,"description",{},()=>[r(i(a.description),1)],!0)])):o("",!0),a.$slots.action?(e(),s("div",Ce,[t(a.$slots,"action",{},void 0,!0)])):o("",!0)],8,ye))}}),Ee=ue(Re,[["__scopeId","data-v-b101d636"]]);export{Ee as N,ke as v};
//# sourceMappingURL=NcEmptyContent-B8-90BSI-BbZilwDO.chunk.mjs.map
import{x as d,f as l,o as e,c as s,z as t,e as o,u as n,v as r,t as i,aj as p,ak as m,al as u,am as f,H as y,an as v,ao as h,a8 as S,ap as C,af as R,T,aq as w,ar as _,as as g,at as k,au as E,ab as x,F as b,g as V,b as B,av as P,D as N,h as $,aw as I,a as M,d as z,U as D,q as H,l as A,ax as j,ae as U,a6 as K,ay as O,X as W,W as F,az as q,Z as G,a5 as L,Y as J,aA as Q,aB as X,V as Y,E as Z,m as aa,n as ea,aC as sa,A as ta,ad as oa,P as na,aD as ra,R as ia,S as ca,aE as la,aF as da,aG as pa,k as ma,aH as ua,aI as fa,p as ya,aJ as va,G as ha,aK as Sa,aL as Ca,aM as Ra,aN as Ta,a7 as wa,aO as _a,aP as ga,aQ as ka,Q as Ea,a4 as xa,r as ba,aR as Va,I as Ba,s as Pa,aa as Na,N as $a,aS as Ia,aT as Ma,aU as za,aV as Da,aW as Ha,ac as Aa,aX as ja,aY as Ua,O as Ka,_ as Oa,a0 as Wa,$ as Fa,j as qa,J as Ga,a2 as La,a3 as Ja,B as Qa,aZ as Xa,y as Ya,C as Za,a_ as ae,ag as ee,L as se,a$ as te,ai as oe,i as ne,a9 as re,b0 as ie,w as ce,K as le,a1 as de,M as pe,b1 as me}from"./runtime-dom.esm-bundler-CKxgtjB6.chunk.mjs";import{_ as ue,c as fe}from"./createElementId-DhjFt1I9-DdwCqgaq.chunk.mjs";const ke=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:p,BaseTransitionPropsValidators:m,Comment:u,EffectScope:f,Fragment:y,ReactiveEffect:v,Static:h,Teleport:S,Text:C,Transition:R,TransitionGroup:T,VueElement:w,callWithAsyncErrorHandling:_,callWithErrorHandling:g,camelize:k,capitalize:E,cloneVNode:x,computed:b,createApp:d,createBlock:V,createCommentVNode:o,createElementBlock:s,createElementVNode:B,createRenderer:P,createSlots:N,createTextVNode:r,createVNode:$,customRef:I,defineAsyncComponent:M,defineComponent:l,defineCustomElement:z,effectScope:D,getCurrentInstance:H,getCurrentScope:A,getTransitionRawChildren:j,guardReactiveProps:U,h:K,handleError:O,hasInjectionContext:W,inject:F,isProxy:q,isReactive:G,isReadonly:L,isRef:J,isShallow:Q,isVNode:X,markRaw:Y,mergeModels:Z,mergeProps:aa,nextTick:ea,nodeOps:sa,normalizeClass:ta,normalizeProps:oa,normalizeStyle:na,onActivated:ra,onBeforeMount:ia,onBeforeUnmount:ca,onBeforeUpdate:la,onDeactivated:da,onErrorCaptured:pa,onMounted:ma,onRenderTracked:ua,onRenderTriggered:fa,onScopeDispose:ya,onServerPrefetch:va,onUnmounted:ha,onUpdated:Sa,onWatcherCleanup:Ca,openBlock:e,patchProp:Ra,popScopeId:Ta,provide:wa,proxyRefs:_a,pushScopeId:ga,queuePostFlushCb:ka,reactive:Ea,readonly:xa,ref:ba,render:Va,renderList:Ba,renderSlot:t,resolveComponent:Pa,resolveDirective:Na,resolveDynamicComponent:$a,resolveTransitionHooks:Ia,setBlockTracking:Ma,setTransitionHooks:za,shallowReactive:Da,shallowReadonly:Ha,shallowRef:Aa,ssrContextKey:ja,toDisplayString:i,toHandlerKey:Ua,toHandlers:Ka,toRaw:Oa,toRef:Wa,toRefs:Fa,toValue:qa,unref:n,useAttrs:Ga,useCssVars:La,useId:Ja,useModel:Qa,useSSRContext:Xa,useSlots:Ya,useTemplateRef:Za,useTransitionState:ae,vModelText:ee,vShow:se,version:te,warn:oe,watch:ne,watchEffect:re,watchSyncEffect:ie,withCtx:ce,withDirectives:le,withKeys:de,withModifiers:pe,withScopeId:me},Symbol.toStringTag,{value:"Module"})),ye=["aria-labelledby"],ve={key:0,class:"empty-content__icon","aria-hidden":"true"},he=["id"],Se={key:2,class:"empty-content__description"},Ce={key:3,class:"empty-content__action"},Re=l({__name:"NcEmptyContent",props:{description:{default:""},name:{default:""}},setup(Te){const c=fe();return(a,we)=>(e(),s("div",{"aria-labelledby":n(c),class:"empty-content",role:"note"},[a.$slots.icon?(e(),s("div",ve,[t(a.$slots,"icon",{},void 0,!0)])):o("",!0),a.name!==""||a.$slots.name?(e(),s("div",{key:1,id:n(c),class:"empty-content__name"},[t(a.$slots,"name",{},()=>[r(i(a.name),1)],!0)],8,he)):o("",!0),a.description!==""||a.$slots.description?(e(),s("p",Se,[t(a.$slots,"description",{},()=>[r(i(a.description),1)],!0)])):o("",!0),a.$slots.action?(e(),s("div",Ce,[t(a.$slots,"action",{},void 0,!0)])):o("",!0)],8,ye))}}),Ee=ue(Re,[["__scopeId","data-v-b101d636"]]);export{Ee as N,ke as v};
//# sourceMappingURL=NcEmptyContent-CDgWCt_m-Dz_uR0NU.chunk.mjs.map

View file

@ -5,7 +5,7 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- vue
- version: 3.5.30

View file

@ -1 +1 @@
{"version":3,"file":"NcEmptyContent-B8-90BSI-BbZilwDO.chunk.mjs","sources":["../node_modules/@nextcloud/vue/dist/chunks/NcEmptyContent-B8-90BSI.mjs"],"sourcesContent":["import '../assets/NcEmptyContent-CLjlZ-UT.css';\nimport { defineComponent, createElementBlock, openBlock, unref, createCommentVNode, renderSlot, 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-B8-90BSI.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":"+7FAIMA,GAAa,CAAC,iBAAiB,EAC/BC,GAAa,CACjB,IAAK,EACL,MAAO,sBACP,cAAe,MACjB,EACMC,GAAa,CAAC,IAAI,EAClBC,GAAa,CACjB,IAAK,EACL,MAAO,4BACT,EACMC,GAAa,CACjB,IAAK,EACL,MAAO,uBACT,EACMC,GAA4BC,EAAgB,CAChD,OAAQ,iBACR,MAAO,CACL,YAAa,CAAE,QAAS,EAAE,EAC1B,KAAM,CAAE,QAAS,EAAE,CACvB,EACE,MAAMC,GAAS,CACb,MAAMC,EAASC,GAAe,EAC9B,MAAO,CAACC,EAAMC,MACLC,EAAS,EAAIC,EAAmB,MAAO,CAC5C,kBAAmBC,EAAMN,CAAM,EAC/B,MAAO,gBACP,KAAM,MACd,EAAS,CACDE,EAAK,OAAO,MAAQE,EAAS,EAAIC,EAAmB,MAAOZ,GAAY,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,EAAU,GAAKc,EAAmB,GAAI,EAAI,EAChDN,EAAK,cAAgB,IAAMA,EAAK,OAAO,aAAeE,IAAaC,EAAmB,IAAKV,GAAY,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,GAAY,CACvEW,EAAWL,EAAK,OAAQ,SAAU,CAAA,EAAI,OAAQ,EAAI,CAC5D,CAAS,GAAKM,EAAmB,GAAI,EAAI,CACzC,EAAS,EAAGhB,EAAU,EAEpB,CACF,CAAC,EACKmB,GAAiCC,GAAYf,GAAW,CAAC,CAAC,YAAa,iBAAiB,CAAC,CAAC","x_google_ignoreList":[0]}
{"version":3,"file":"NcEmptyContent-CDgWCt_m-Dz_uR0NU.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":"+7FAIMA,GAAa,CAAC,iBAAiB,EAC/BC,GAAa,CACjB,IAAK,EACL,MAAO,sBACP,cAAe,MACjB,EACMC,GAAa,CAAC,IAAI,EAClBC,GAAa,CACjB,IAAK,EACL,MAAO,4BACT,EACMC,GAAa,CACjB,IAAK,EACL,MAAO,uBACT,EACMC,GAA4BC,EAAgB,CAChD,OAAQ,iBACR,MAAO,CACL,YAAa,CAAE,QAAS,EAAE,EAC1B,KAAM,CAAE,QAAS,EAAE,CACvB,EACE,MAAMC,GAAS,CACb,MAAMC,EAASC,GAAe,EAC9B,MAAO,CAACC,EAAMC,MACLC,EAAS,EAAIC,EAAmB,MAAO,CAC5C,kBAAmBC,EAAMN,CAAM,EAC/B,MAAO,gBACP,KAAM,MACd,EAAS,CACDE,EAAK,OAAO,MAAQE,EAAS,EAAIC,EAAmB,MAAOZ,GAAY,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,EAAU,GAAKc,EAAmB,GAAI,EAAI,EAChDN,EAAK,cAAgB,IAAMA,EAAK,OAAO,aAAeE,IAAaC,EAAmB,IAAKV,GAAY,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,GAAY,CACvEW,EAAWL,EAAK,OAAQ,SAAU,CAAA,EAAI,OAAQ,EAAI,CAC5D,CAAS,GAAKM,EAAmB,GAAI,EAAI,CACzC,EAAS,EAAGhB,EAAU,EAEpB,CACF,CAAC,EACKmB,GAAiCC,GAAYf,GAAW,CAAC,CAAC,YAAa,iBAAiB,CAAC,CAAC","x_google_ignoreList":[0]}

View file

@ -5,7 +5,7 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- vue
- version: 3.5.30

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
import{f as L,B as V,J as A,C as j,o as i,c as n,b as p,m as q,t as h,e as u,K as z,L as E,z as v,g as t,w as J,u as s,v as K,A as M,E as y,F as o}from"./runtime-dom.esm-bundler-CKxgtjB6.chunk.mjs";import{N as S,b as g,c as m,i as B}from"./autolink-U5pBzLgI-D1NMH9bI.chunk.mjs";import{_ as D,N as d,c as G}from"./createElementId-DhjFt1I9-DdwCqgaq.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:x,emit:k}){const r=V(c,"modelValue"),l=c,$=k;x({focus:N,select:O});const f=A(),b=j("input"),T=o(()=>l.showTrailingButton||l.success),w=o(()=>{if(l.placeholder)return l.placeholder;if(l.label)return B?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(B)},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),[[E,!!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=D(X,[["__scopeId","data-v-fccfce00"]]);export{le as N};
//# sourceMappingURL=NcInputField-CPL-a_MM-R1bsVnGI.chunk.mjs.map

View file

@ -0,0 +1,7 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.6.0
- license: AGPL-3.0-or-later

View file

@ -0,0 +1,7 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.6.0
- license: AGPL-3.0-or-later

File diff suppressed because one or more lines are too long

View file

@ -1,2 +0,0 @@
import{f as j,q,D as F,v as L,o as i,c as n,b as p,m as z,t as h,e as u,E as A,G as D,n as v,g as t,w as E,u as s,j as G,p as M,y,z as o}from"./runtime-dom.esm-bundler-DPEdZePn.chunk.mjs";import{N as S,b as g,c as m,i as x}from"./autolink-U5pBzLgI-Bpd-_ISJ.chunk.mjs";import{_ as H,N as d,c as J}from"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";const K={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=j({inheritAttrs:!1,__name:"NcInputField",props:y({class:{default:""},inputClass:{default:""},id:{default:()=>J()},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=q(c,"modelValue"),l=c,$=k;B({focus:N,select:O});const f=F(),b=L("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 I(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",K,[p("input",z(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:I}),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),A(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]=V=>$("trailingButtonClick",V))},{icon:E(()=>[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),G(" "+h(e.helperText),1)],8,W)):u("",!0)],2))}}),le=H(X,[["__scopeId","data-v-bfba6aa6"]]);export{le as N};
//# sourceMappingURL=NcInputField-o5OFv3z6-CZbWqg6Y.chunk.mjs.map

View file

@ -1,7 +0,0 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- license: AGPL-3.0-or-later

View file

@ -1,7 +0,0 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- license: AGPL-3.0-or-later

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

View file

@ -9,25 +9,25 @@ SPDX-FileCopyrightText: atomiks
This file is generated from multiple sources. Included packages:
- @floating-ui/core
- version: 1.7.4
- version: 1.7.5
- license: MIT
- @floating-ui/dom
- version: 1.1.1
- license: MIT
- @floating-ui/utils
- version: 0.2.10
- version: 0.2.11
- license: MIT
- @nextcloud/l10n
- version: 3.4.1
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 14.1.0
- version: 14.2.1
- license: MIT
- @vueuse/shared
- version: 14.1.0
- version: 14.2.1
- license: MIT
- floating-vue
- version: 5.2.2

File diff suppressed because one or more lines are too long

View file

@ -9,25 +9,25 @@ SPDX-FileCopyrightText: atomiks
This file is generated from multiple sources. Included packages:
- @floating-ui/core
- version: 1.7.4
- version: 1.7.5
- license: MIT
- @floating-ui/dom
- version: 1.1.1
- license: MIT
- @floating-ui/utils
- version: 0.2.10
- version: 0.2.11
- license: MIT
- @nextcloud/l10n
- version: 3.4.1
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 14.1.0
- version: 14.2.1
- license: MIT
- @vueuse/shared
- version: 14.1.0
- version: 14.2.1
- license: MIT
- floating-vue
- version: 5.2.2

View file

@ -1,2 +1,2 @@
import{l as V,m as C,a as S}from"./autolink-U5pBzLgI-Bpd-_ISJ.chunk.mjs";import{c as N}from"./index-BCebL___.chunk.mjs";import{g as F}from"./index-Ma7sfat2.chunk.mjs";import{r as L,d as M,_ as $,b as q,a as n,N as z}from"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";import{d as H}from"./index-Bndk0DrU.chunk.mjs";import{N as I}from"./NcInputField-o5OFv3z6-CZbWqg6Y.chunk.mjs";import{f as O,q as c,s as U,v as j,o as A,g as D,x as E,w as v,n as G,h as J,u as o,m as K,y as m,r as f,z as h}from"./runtime-dom.esm-bundler-DPEdZePn.chunk.mjs";L(M);const Q=O({__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:y,emit:w}){const s=c(l,"modelValue"),a=c(l,"visible"),t=l,d=w;U(s,H(b,500)),y({focus:_,select:P});const{password_policy:g}=F(),u=j("inputField"),r=f(""),i=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(q("apps/password_policy/api/v1/validate"),{password:s.value});if(i.value=e.ocs.data.passed,e.ocs.data.passed){r.value=n("Password is secure"),d("valid");return}r.value=e.ocs.data.reason,d("invalid")}catch(e){V.error("Password policy returned an error",{error:e})}}function T(){a.value=!a.value}function _(e){u.value.focus(e)}function P(){u.value.select()}return(e,p)=>(A(),D(I,K(x.value,{ref:"inputField",modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=k=>s.value=k),error:e.error||i.value===!1,helperText:e.helperText||r.value,inputClass:[e.inputClass,{"password-field__input--secure-text":!a.value&&e.asText}],minlength:B.value,success:e.success||i.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(z,{path:a.value?o(C):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=$(Q,[["__scopeId","data-v-00e75248"]]);export{se as N};
//# sourceMappingURL=NcPasswordField-uaMO2pdt-Y_frnjqT.chunk.mjs.map
import{l as V,m as k,a as S}from"./autolink-U5pBzLgI-D1NMH9bI.chunk.mjs";import{c as F}from"./index-2a6kOrDy.chunk.mjs";import{g as N}from"./index-BgmsSgl5.chunk.mjs";import{r as L,d as M,_ as $,b as z,a as n,N as D}from"./createElementId-DhjFt1I9-DdwCqgaq.chunk.mjs";import{d as E}from"./index-Bndk0DrU.chunk.mjs";import{N as H}from"./NcInputField-CPL-a_MM-R1bsVnGI.chunk.mjs";import{f as I,B as c,i as O,C as U,o as j,g as q,D as A,w as v,z as G,h as J,u as o,m as K,E as m,r as f,F as h}from"./runtime-dom.esm-bundler-CKxgtjB6.chunk.mjs";L(M);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,E(b,500)),w({focus:_,select:C});const{password_policy:g}=N(),u=U("inputField"),r=f(""),i=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 F.post(z("apps/password_policy/api/v1/validate"),{password:s.value});if(i.value=e.ocs.data.passed,e.ocs.data.passed){r.value=n("Password is secure"),d("valid");return}r.value=e.ocs.data.reason,d("invalid")}catch(e){V.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||i.value===!1,helperText:e.helperText||r.value,inputClass:[e.inputClass,{"password-field__input--secure-text":!a.value&&e.asText}],minlength:B.value,success:e.success||i.value===!0,trailingButtonLabel:a.value?o(n)("Hide password"):o(n)("Show password"),type:a.value||e.asText?"text":"password",onTrailingButtonClick:T}),A({"trailing-button-icon":v(()=>[J(D,{path:a.value?o(k):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=$(Q,[["__scopeId","data-v-00e75248"]]);export{se as N};
//# sourceMappingURL=NcPasswordField-BOLzDHBJ-CKSnPt2n.chunk.mjs.map

View file

@ -0,0 +1,7 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.6.0
- license: AGPL-3.0-or-later

View file

@ -0,0 +1,7 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.6.0
- license: AGPL-3.0-or-later

View file

@ -1,7 +0,0 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- license: AGPL-3.0-or-later

View file

@ -1,7 +0,0 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 9.5.0
- license: AGPL-3.0-or-later

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

View file

@ -1,5 +1,4 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-License-Identifier: ISC
SPDX-License-Identifier: MIT
SPDX-FileCopyrightText: Andrea Giammarchi
@ -10,15 +9,13 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
SPDX-FileCopyrightText: Sindre Sorhus
SPDX-FileCopyrightText: Stefan Thomas <justmoon@members.fsf.org> (http://www.justmoon.net)
SPDX-FileCopyrightText: Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)
SPDX-FileCopyrightText: Victor Felder <victor@draft.li> (https://draft.li)
SPDX-FileCopyrightText: inline-style-parser developers
SPDX-FileCopyrightText: rhysd <lin90162@yahoo.co.jp>
This file is generated from multiple sources. Included packages:
- @nextcloud/sharing
- version: 0.3.0
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 9.5.0
- version: 9.6.0
- license: AGPL-3.0-or-later
- @ungap/structured-clone
- version: 1.3.0
@ -62,6 +59,9 @@ This file is generated from multiple sources. Included packages:
- is-plain-obj
- version: 4.1.0
- license: MIT
- longest-streak
- version: 3.1.0
- license: MIT
- mdast-squeeze-paragraphs
- version: 6.0.0
- license: MIT
@ -74,9 +74,15 @@ This file is generated from multiple sources. Included packages:
- mdast-util-newline-to-break
- version: 2.0.0
- license: MIT
- mdast-util-phrasing
- version: 4.1.0
- license: MIT
- mdast-util-to-hast
- version: 13.2.1
- license: MIT
- mdast-util-to-markdown
- version: 2.1.2
- license: MIT
- mdast-util-to-string
- version: 4.0.0
- license: MIT
@ -152,6 +158,9 @@ This file is generated from multiple sources. Included packages:
- remark-rehype
- version: 11.1.2
- license: MIT
- remark-stringify
- version: 11.0.0
- license: MIT
- remark-unlink-protocols
- version: 1.0.0
- license: MIT
@ -185,3 +194,6 @@ This file is generated from multiple sources. Included packages:
- vfile-message
- version: 4.0.3
- license: MIT
- zwitch
- version: 2.0.4
- license: MIT

Some files were not shown because too many files have changed in this diff Show more