Merge pull request #61212 from nextcloud/backport/61163/stable34
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 (stable34, main, 8.4, stable34, --tags ~@large files_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, capabilities_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, collaboration_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, comments_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, dav_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, federation_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, file_conversions) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, files_reminders) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, filesdrop_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, guests_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, ldap_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, openldap_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, openldap_numerical_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, remoteapi_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, routing_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, setup_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, sharees_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, sharing_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, theming_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite (stable34, main, 8.4, stable34, videoverification_features) (push) Blocked by required conditions
Integration sqlite / integration-sqlite-summary (push) Blocked by required conditions

[stable34] fix(appstore): bring back "update all" button
This commit is contained in:
Andy Scherzinger 2026-06-11 23:24:02 +02:00 committed by GitHub
commit 4343bcd7e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
236 changed files with 409 additions and 211 deletions

View file

@ -0,0 +1,166 @@
<!--
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
-->
<script setup lang="ts">
import type { IAppstoreApp, IAppstoreExApp } from '../apps.d.ts'
import { mdiCheck, mdiInformationOutline, mdiUpdate, mdiWeb } from '@mdi/js'
import { showError } from '@nextcloud/dialogs'
import { getLanguage, t } from '@nextcloud/l10n'
import { NcButton, NcDialog, NcIconSvgWrapper, NcLoadingIcon, NcNoteCard } from '@nextcloud/vue'
import { computed, ref } from 'vue'
import MarkdownPreview from './MarkdownPreview.vue'
import { useUpdatesStore } from '../store/updates.ts'
import logger from '../utils/logger.ts'
const props = defineProps<{
apps: (IAppstoreApp | IAppstoreExApp)[]
}>()
const emit = defineEmits<{
close: []
}>()
const store = useUpdatesStore()
const showDetails = ref('')
const isUpdating = ref(false)
const changelogText = computed(() => {
if (!showDetails.value) {
return ''
}
const app = props.apps.find((app) => app.id === showDetails.value)
if (!app || !app.releases || app.releases.length === 0) {
return ''
}
const [release] = app.releases
const localizedEntry = release.translations[getLanguage()]
return localizedEntry?.changelog ?? release.translations.en?.changelog ?? ''
})
/**
* Handle update all apps
*/
async function onUpdate() {
isUpdating.value = true
for (const app of props.apps) {
try {
await store.updateApp(app.id)
} catch (error) {
logger.error(`Failed to update app ${app.id}`, { error })
showError(t('appstore', 'Failed to update app {appName}', { appName: app.name }))
}
}
isUpdating.value = false
emit('close')
}
</script>
<template>
<NcDialog :contentClasses="$style.updateAllDialog" size="normal" :name="t('appstore', 'Update all apps')">
<p>{{ t('appstore', 'Are you sure you want to update all apps?') }}</p>
<ul>
<li v-for="app in apps" :key="app.id" :class="$style.updateAllDialog__listEntry">
<div :class="$style.updateAllDialog__listEntryContent">
<div :class="$style.updateAllDialog__listEntryHeading">
<NcIconSvgWrapper
:path="app.update ? mdiUpdate : mdiCheck"
:name="app.update ? undefined : t('appstore', 'Update done')" />
<span :class="$style.updateAllDialog__listEntryName">{{ app.name }} ({{ app.version }} {{ app.update }})</span>
</div>
<div :class="$style.updateAllDialog__listEntryActions">
<NcButton
v-if="app.website"
:aria-label="t('appstore', 'View website')"
:title="t('appstore', 'View website')"
:href="app.website"
target="_blank"
variant="tertiary">
<template #icon>
<NcIconSvgWrapper :path="mdiWeb" />
</template>
</NcButton>
<NcButton
v-if="app.releases"
:aria-label="t('appstore', 'Show details')"
:title="t('appstore', 'Show details')"
:pressed="showDetails === app.id"
@update:pressed="showDetails = $event ? app.id : ''">
<template #icon>
<NcIconSvgWrapper :path="mdiInformationOutline" />
</template>
</NcButton>
</div>
</div>
</li>
</ul>
<NcNoteCard
:class="$style.updateAllDialog__listEntryDetails"
:heading="t('appstore', 'Details')"
type="info">
<MarkdownPreview
:minHeadingLevel="3"
:text="changelogText" />
</NcNoteCard>
<template #actions>
<NcButton variant="tertiary" @click="emit('close')">
{{ t('appstore', 'Cancel') }}
</NcButton>
<NcButton variant="primary" @click="onUpdate">
<template v-if="isUpdating" #icon>
<NcLoadingIcon />
</template>
{{ t('appstore', 'Update all') }}
</NcButton>
</template>
</NcDialog>
</template>
<style module>
.updateAllDialog {
min-height: 50vh !important;
}
.updateAllDialog__list {
display: flex;
flex-direction: row;
gap: calc(3 * var(--default-grid-baseline));
}
.updateAllDialog__listEntry {
display: flex;
flex-direction: column;
gap: calc(2 * var(--default-grid-baseline));
padding: calc(2 * var(--default-grid-baseline));
}
.updateAllDialog__listEntryHeading {
display: flex;
}
.updateAllDialog__listEntryName {
font-weight: 500;
line-height: var(--default-clickable-area);
}
.updateAllDialog__listEntryActions {
display: flex;
flex-direction: row;
gap: var(--default-grid-baseline);
}
.updateAllDialog__listEntryContent {
display: flex;
justify-content: space-between;
}
.updateAllDialog__listEntryDetails {
margin: 0;
}
</style>

View file

@ -49,6 +49,7 @@ export const useUpdatesStore = defineStore('updates', () => {
internalUpdateCount.value = Math.max(internalUpdateCount.value - 1, 0)
}
app.update = undefined
rebuildNavigation()
} catch (error) {
logger.error('Failed to update app', { appId, error })

View file

@ -4,8 +4,10 @@
-->
<script setup lang="ts">
import { mdiUpdate } from '@mdi/js'
import { t } from '@nextcloud/l10n'
import { computed } from 'vue'
import { NcIconSvgWrapper, spawnDialog } from '@nextcloud/vue'
import { computed, defineAsyncComponent } from 'vue'
import { useRoute } from 'vue-router'
import NcButton from '@nextcloud/vue/components/NcButton'
import NcEmptyContent from '@nextcloud/vue/components/NcEmptyContent'
@ -15,10 +17,14 @@ import AppTable from '../components/AppTable/AppTable.vue'
import AppToolbar from '../components/AppToolbar.vue'
import { useFilteredApps } from '../composables/useFilteredApps.ts'
import { useAppsStore } from '../store/apps.ts'
import { useUpdatesStore } from '../store/updates.ts'
import { useUserSettingsStore } from '../store/userSettings.ts'
const UpdateAllDialog = defineAsyncComponent(() => import('../components/UpdateAllDialog.vue'))
const route = useRoute()
const store = useAppsStore()
const updatesStore = useUpdatesStore()
const userSettings = useUserSettingsStore()
const currentCategory = computed(() => route.params!.category as 'enabled' | 'installed' | 'disabled' | 'updates')
@ -30,16 +36,36 @@ const apps = computed(() => {
} else if (currentCategory.value === 'disabled') {
return store.apps.filter((app) => app.installed && !app.active)
} else if (currentCategory.value === 'updates') {
return store.apps.filter((app) => app.update)
return store.apps.filter((app) => app.active && app.update)
}
return []
})
const visibleApps = useFilteredApps(apps)
/**
* Handle update all apps
*/
async function onUpdateAll() {
await spawnDialog(UpdateAllDialog, {
apps: visibleApps.value,
})
}
</script>
<template>
<AppToolbar />
<NcButton
v-if="currentCategory === 'updates' && updatesStore.updateCount > 0"
:class="$style.appstoreManage__updateAllButton"
variant="primary"
@click="onUpdateAll">
<template #icon>
<NcIconSvgWrapper :path="mdiUpdate" />
</template>
{{ t('appstore', 'Update all applications') }}
</NcButton>
<!-- Apps list -->
<NcEmptyContent
v-if="store.isLoadingApps"
@ -69,4 +95,9 @@ const visibleApps = useFilteredApps(apps)
.appstoreManage {
margin-bottom: var(--body-container-margin);
}
.appstoreManage__updateAllButton {
margin-inline: var(--app-navigation-padding);
margin-block: calc(3 * var(--default-grid-baseline));
}
</style>

View file

@ -1,2 +1,2 @@
import{a as t}from"./index-C1xmmKTZ-CeESs0Yi.chunk.mjs";import{t as e}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{C as m,a}from"./CommentView-BT4knYtH.chunk.mjs";import{l as p}from"./activity-CgsVnLJG.chunk.mjs";import{b as i,r as s,o as n,c,m as u}from"./Web-CVG0oWkS.chunk.mjs";import{_ as l}from"./public-C1mLBHT3.chunk.mjs";import"./index-BwhGLTdD.chunk.mjs";import"./NcModal-DyOZxq9E-DJ8lRVba.chunk.mjs";import"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import"./index-B-dGqfIG.chunk.mjs";import"./TrashCanOutline-ImpP8zID.chunk.mjs";import"./mdi-BsuzcJkY.chunk.mjs";import"./pinia-Dn16KcVd.chunk.mjs";import"./PencilOutline-CVTKhaas.chunk.mjs";/* empty css */import"./NcAvatar-QYahYt2p-B6sbjze-.chunk.mjs";import"./index-BrNm47xe.chunk.mjs";import"./util-Alk1iwuj.chunk.mjs";import"./ArrowRight-CLsEMAPw.chunk.mjs";import"./colors-2YFh1g7z-Esf5_Pnk.chunk.mjs";import"./NcUserStatusIcon-CNh1vXUF-BrBSNJ0h.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-GKzS94MD.chunk.mjs";import"./NcUserBubble-BnaGHDoD-CXGIMXGu.chunk.mjs";import"./GetComments-DSuBVNUT.chunk.mjs";import"./index-DscLWkdM.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 S=l(d,[["render",C],["__scopeId","data-v-29a1e244"]]);export{S as default};
//# sourceMappingURL=ActivityCommentAction-BqoKcCNg.chunk.mjs.map
import{a as t}from"./index-C1xmmKTZ-BlRBA4Z1.chunk.mjs";import{t as e}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{C as m,a}from"./CommentView-B8E30FYP.chunk.mjs";import{l as p}from"./activity-CgsVnLJG.chunk.mjs";import{b as i,r as s,o as n,c,m as u}from"./Web-CVG0oWkS.chunk.mjs";import{_ as l}from"./public-C1mLBHT3.chunk.mjs";import"./index-CpKA6aNV.chunk.mjs";import"./NcModal-DyOZxq9E-BdQAvnZZ.chunk.mjs";import"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import"./index-B-dGqfIG.chunk.mjs";import"./TrashCanOutline-ImpP8zID.chunk.mjs";import"./mdi-C7UShXbV.chunk.mjs";import"./pinia-Dn16KcVd.chunk.mjs";import"./PencilOutline-Dpim2F3F.chunk.mjs";/* empty css */import"./NcAvatar-QYahYt2p-Bub13UC0.chunk.mjs";import"./index-BrNm47xe.chunk.mjs";import"./util-Alk1iwuj.chunk.mjs";import"./ArrowRight-CLsEMAPw.chunk.mjs";import"./colors-2YFh1g7z-Esf5_Pnk.chunk.mjs";import"./NcUserStatusIcon-CNh1vXUF-BrBSNJ0h.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-DJNkT_h3.chunk.mjs";import"./NcUserBubble-BnaGHDoD-DBPIicof.chunk.mjs";import"./GetComments-DSuBVNUT.chunk.mjs";import"./index-DscLWkdM.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 S=l(d,[["render",C],["__scopeId","data-v-29a1e244"]]);export{S as default};
//# sourceMappingURL=ActivityCommentAction-vWjum8WA.chunk.mjs.map

View file

@ -1 +1 @@
{"version":3,"file":"ActivityCommentAction-BqoKcCNg.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":"ktCAyBA,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-vWjum8WA.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":"ktCAyBA,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"}

View file

@ -1,2 +1,2 @@
import{t as s}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{C as p,a}from"./CommentView-BT4knYtH.chunk.mjs";import{_ as i}from"./public-C1mLBHT3.chunk.mjs";import{r as n,o as c,c as u,m as l}from"./Web-CVG0oWkS.chunk.mjs";import"./index-B-dGqfIG.chunk.mjs";import"./pinia-Dn16KcVd.chunk.mjs";import"./PencilOutline-CVTKhaas.chunk.mjs";import"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import"./NcModal-DyOZxq9E-DJ8lRVba.chunk.mjs";/* empty css */import"./NcAvatar-QYahYt2p-B6sbjze-.chunk.mjs";import"./index-BrNm47xe.chunk.mjs";import"./util-Alk1iwuj.chunk.mjs";import"./ArrowRight-CLsEMAPw.chunk.mjs";import"./colors-2YFh1g7z-Esf5_Pnk.chunk.mjs";import"./NcUserStatusIcon-CNh1vXUF-BrBSNJ0h.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-GKzS94MD.chunk.mjs";import"./TrashCanOutline-ImpP8zID.chunk.mjs";import"./NcUserBubble-BnaGHDoD-CXGIMXGu.chunk.mjs";import"./index-C1xmmKTZ-CeESs0Yi.chunk.mjs";import"./index-BwhGLTdD.chunk.mjs";import"./mdi-BsuzcJkY.chunk.mjs";import"./activity-CgsVnLJG.chunk.mjs";import"./GetComments-DSuBVNUT.chunk.mjs";import"./index-DscLWkdM.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,e,o,f,m,C){const r=n("Comment");return c(),u(r,l({ref:"comment",tag:"li"},o.comment.props,{autoComplete:t.autoComplete,resourceType:t.resourceType,message:m.commentMessage,resourceId:t.resourceId,userData:t.genMentionsData(o.comment.props.mentions),class:"comments-activity",onDelete:e[0]||(e[0]=y=>o.reloadCallback())}),null,16,["autoComplete","resourceType","message","resourceId","userData"])}const Q=i(d,[["render",g],["__scopeId","data-v-afc310f1"]]);export{Q as default};
//# sourceMappingURL=ActivityCommentEntry-Ckeq2NDx.chunk.mjs.map
import{t as s}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{C as p,a}from"./CommentView-B8E30FYP.chunk.mjs";import{_ as i}from"./public-C1mLBHT3.chunk.mjs";import{r as n,o as c,c as u,m as l}from"./Web-CVG0oWkS.chunk.mjs";import"./index-B-dGqfIG.chunk.mjs";import"./pinia-Dn16KcVd.chunk.mjs";import"./PencilOutline-Dpim2F3F.chunk.mjs";import"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import"./NcModal-DyOZxq9E-BdQAvnZZ.chunk.mjs";/* empty css */import"./NcAvatar-QYahYt2p-Bub13UC0.chunk.mjs";import"./index-BrNm47xe.chunk.mjs";import"./util-Alk1iwuj.chunk.mjs";import"./ArrowRight-CLsEMAPw.chunk.mjs";import"./colors-2YFh1g7z-Esf5_Pnk.chunk.mjs";import"./NcUserStatusIcon-CNh1vXUF-BrBSNJ0h.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-DJNkT_h3.chunk.mjs";import"./TrashCanOutline-ImpP8zID.chunk.mjs";import"./NcUserBubble-BnaGHDoD-DBPIicof.chunk.mjs";import"./index-C1xmmKTZ-BlRBA4Z1.chunk.mjs";import"./index-CpKA6aNV.chunk.mjs";import"./mdi-C7UShXbV.chunk.mjs";import"./activity-CgsVnLJG.chunk.mjs";import"./GetComments-DSuBVNUT.chunk.mjs";import"./index-DscLWkdM.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,e,o,f,m,C){const r=n("Comment");return c(),u(r,l({ref:"comment",tag:"li"},o.comment.props,{autoComplete:t.autoComplete,resourceType:t.resourceType,message:m.commentMessage,resourceId:t.resourceId,userData:t.genMentionsData(o.comment.props.mentions),class:"comments-activity",onDelete:e[0]||(e[0]=y=>o.reloadCallback())}),null,16,["autoComplete","resourceType","message","resourceId","userData"])}const Q=i(d,[["render",g],["__scopeId","data-v-afc310f1"]]);export{Q as default};
//# sourceMappingURL=ActivityCommentEntry-CdVPVw6t.chunk.mjs.map

View file

@ -1 +1 @@
{"version":3,"file":"ActivityCommentEntry-Ckeq2NDx.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":"wrCA0BA,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-CdVPVw6t.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":"wrCA0BA,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

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

@ -1,2 +1,2 @@
import{b as y,n as g,u as l,o as r,c as p,C as h,w as v,j as _,t as V,s as b,z as M,f as d,F as x,B as w,L as K,M as U,k as f,l as j}from"./Web-CVG0oWkS.chunk.mjs";import{c as q}from"./index-BrNm47xe.chunk.mjs";import{a as L}from"./index-C1xmmKTZ-CeESs0Yi.chunk.mjs";import{t as s}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{b as N}from"./index-B-dGqfIG.chunk.mjs";import{N as S}from"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import{N as z}from"./index-HEii3ZrW.chunk.mjs";import{N as A}from"./NcCheckboxRadioSwitch-B0KUiKrb-BMjYufv5.chunk.mjs";import{N as B}from"./NcPasswordField-ykWHv_hw-Cw2SHBDh.chunk.mjs";import{_ as C}from"./NcTextField.vue_vue_type_script_setup_true_lang-DgvCZDmR-CrGIqP5N.chunk.mjs";import{a as c,C as k}from"./types-WYhBkpeu.chunk.mjs";import{l as E}from"./logger-n22jyIXx.chunk.mjs";const P=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(B):l(C)),{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(A),{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();M(t,()=>{t.value&&(a.value.private_key="",a.value.public_key="")});async function i(){try{const{data:o}=await q.post(N("/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){E.error("Error generating RSA key pair",{error:o}),L(s("files_external","Error generating key pair"))}}return(o,m)=>(r(),d("div",null,[(r(!0),d(x,null,w(e.authMechanism.configuration,(n,u)=>K((r(),p(P,{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(z),{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(S),{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,P as _};
//# sourceMappingURL=AuthMechanismRsa-Cwzvj2A3.chunk.mjs.map
import{b as y,n as g,u as l,o as r,c as p,C as h,w as v,j as _,t as V,s as b,z as M,f as d,F as x,B as w,L as K,M as U,k as f,l as j}from"./Web-CVG0oWkS.chunk.mjs";import{c as q}from"./index-BrNm47xe.chunk.mjs";import{a as L}from"./index-C1xmmKTZ-BlRBA4Z1.chunk.mjs";import{t as s}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{b as N}from"./index-B-dGqfIG.chunk.mjs";import{N as S}from"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import{N as z}from"./index-DDqb2SdQ.chunk.mjs";import{N as A}from"./NcCheckboxRadioSwitch-B0KUiKrb-BMjYufv5.chunk.mjs";import{N as B}from"./NcPasswordField-ykWHv_hw-Cw2SHBDh.chunk.mjs";import{_ as C}from"./NcTextField.vue_vue_type_script_setup_true_lang-DgvCZDmR-CrGIqP5N.chunk.mjs";import{a as c,C as k}from"./types-CgSMmHuJ.chunk.mjs";import{l as E}from"./logger-n22jyIXx.chunk.mjs";const P=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(B):l(C)),{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(A),{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();M(t,()=>{t.value&&(a.value.private_key="",a.value.public_key="")});async function i(){try{const{data:o}=await q.post(N("/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){E.error("Error generating RSA key pair",{error:o}),L(s("files_external","Error generating key pair"))}}return(o,m)=>(r(),d("div",null,[(r(!0),d(x,null,w(e.authMechanism.configuration,(n,u)=>K((r(),p(P,{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(z),{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(S),{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,P as _};
//# sourceMappingURL=AuthMechanismRsa-BDpynzdt.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

View file

@ -1,2 +1,2 @@
import{t}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{N as u}from"./index-BwhGLTdD.chunk.mjs";import{N as d}from"./mdi-BsuzcJkY.chunk.mjs";import{N as p}from"./NcPasswordField-ykWHv_hw-Cw2SHBDh.chunk.mjs";import{_ as c}from"./NcTextField.vue_vue_type_script_setup_true_lang-DgvCZDmR-CrGIqP5N.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"./Web-CVG0oWkS.chunk.mjs";import"./index-B-dGqfIG.chunk.mjs";import"./NcModal-DyOZxq9E-DJ8lRVba.chunk.mjs";import"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import"./TrashCanOutline-ImpP8zID.chunk.mjs";import"./public-C1mLBHT3.chunk.mjs";import"./index-BrNm47xe.chunk.mjs";import"./util-Alk1iwuj.chunk.mjs";import"./NcInputField-C3iof9pY-BIeFuK2c.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-CM6Yw4b3.chunk.mjs.map
import{t}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{N as u}from"./index-CpKA6aNV.chunk.mjs";import{N as d}from"./mdi-C7UShXbV.chunk.mjs";import{N as p}from"./NcPasswordField-ykWHv_hw-Cw2SHBDh.chunk.mjs";import{_ as c}from"./NcTextField.vue_vue_type_script_setup_true_lang-DgvCZDmR-CrGIqP5N.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"./Web-CVG0oWkS.chunk.mjs";import"./index-B-dGqfIG.chunk.mjs";import"./NcModal-DyOZxq9E-BdQAvnZZ.chunk.mjs";import"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import"./TrashCanOutline-ImpP8zID.chunk.mjs";import"./public-C1mLBHT3.chunk.mjs";import"./index-BrNm47xe.chunk.mjs";import"./util-Alk1iwuj.chunk.mjs";import"./NcInputField-C3iof9pY-BIeFuK2c.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-BvCTPVMH.chunk.mjs.map

View file

@ -1 +1 @@
{"version":3,"file":"CredentialsDialog-CM6Yw4b3.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":"40BAiBA,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-BvCTPVMH.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":"40BAiBA,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"}

View file

@ -1,2 +1,2 @@
import{b as w,l as h,z as I,o as p,f as y,t as N,u as a,h as D,g as u,k as r,w as d,c as k,m as M,T,F as q,B as z,v as s,G as A}from"./Web-CVG0oWkS.chunk.mjs";import{f as B,g as F,h as G,i as P}from"./mdi-BsuzcJkY.chunk.mjs";import{t as n}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{N as f}from"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import{N as g}from"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import{c as S,D as j,u as E}from"./DiscoverTypePost-BCs8Wuew.chunk.mjs";import{_ as H}from"./public-C1mLBHT3.chunk.mjs";import"./index-B-dGqfIG.chunk.mjs";import"./index-BpJn58mk.chunk.mjs";import"./appstore-main.mjs";import"./pinia-Dn16KcVd.chunk.mjs";import"./NcContent-Dd15hgck-BO82eoqa.chunk.mjs";import"./NcModal-DyOZxq9E-DJ8lRVba.chunk.mjs";import"./PencilOutline-CVTKhaas.chunk.mjs";import"./NcTextArea-BwFQx9Bj-DPiGPuCQ.chunk.mjs";import"./index-HEii3ZrW.chunk.mjs";import"./TrashCanOutline-ImpP8zID.chunk.mjs";import"./TrayArrowDown-pWpgffUY.chunk.mjs";import"./NcInputField-C3iof9pY-BIeFuK2c.chunk.mjs";import"./index-BwhGLTdD.chunk.mjs";import"./NcAvatar-QYahYt2p-B6sbjze-.chunk.mjs";import"./index-BrNm47xe.chunk.mjs";import"./util-Alk1iwuj.chunk.mjs";import"./ArrowRight-CLsEMAPw.chunk.mjs";import"./colors-2YFh1g7z-Esf5_Pnk.chunk.mjs";import"./NcUserStatusIcon-CNh1vXUF-BrBSNJ0h.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-GKzS94MD.chunk.mjs";import"./NcEmptyContent--TRhmNAW-ynM-mZKT.chunk.mjs";import"./NcBreadcrumbs-5gl8Syfa-CW5QNUA_.chunk.mjs";import"./NcPasswordField-ykWHv_hw-Cw2SHBDh.chunk.mjs";import"./NcTextField.vue_vue_type_script_setup_true_lang-DgvCZDmR-CrGIqP5N.chunk.mjs";/* empty css */import"./NcCheckboxRadioSwitch-B0KUiKrb-BMjYufv5.chunk.mjs";import"./Plus-DrYPk6mX.chunk.mjs";import"./index-BL1zU5ZX.chunk.mjs";import"./index-B8j2UOwE.chunk.mjs";import"./NcEmojiPicker-DG3qO_fi-C6ID1-jK.chunk.mjs";import"./emoji-C8k9NUlo-rFKNlNNR.chunk.mjs";import"./index-bfyY3p45.chunk.mjs";/* empty css */import"./index-B7Ckn99n.chunk.mjs";import"./NcSelectTags-D3tAMWYx-B8zEI_63.chunk.mjs";import"./ContentCopy-BebwfDO9.chunk.mjs";import"./NcUserBubble-BnaGHDoD-CXGIMXGu.chunk.mjs";import"./modulepreload-polyfill-BxzAKjcf.chunk.mjs";import"./index-C1xmmKTZ-CeESs0Yi.chunk.mjs";import"./index-C5RtAcX5.chunk.mjs";const J=["aria-roledescription","aria-labelledby"],K=["id"],L={class:"app-discover-carousel__wrapper"},O={class:"app-discover-carousel__button-wrapper"},Q={class:"app-discover-carousel__button-wrapper"},R=["aria-label"],U=w({__name:"DiscoverTypeCarousel",props:{...S,content:{type:Array,required:!0}},setup(m){const t=m,$=E(s(()=>t.headline)),e=h(Math.min(1,t.content.length-1)),c=h(t.content[e.value]),C=s(()=>e.value<t.content.length-1),x=s(()=>e.value>0),l=s(()=>t.id??(Math.random()+1).toString(36).substring(7)),v=s(()=>`${l.value}-h`),b=h("slide-in");return I(()=>e.value,(_,i)=>{_<i?b.value="slide-in":b.value="slide-out",A(()=>{c.value=t.content[e.value]})}),(_,i)=>(p(),y("section",{"aria-roledescription":a(n)("appstore","Carousel"),"aria-labelledby":v.value?`${v.value}`:void 0},[_.headline?(p(),y("h3",{key:0,id:v.value},N(a($)),9,K)):D("",!0),u("div",L,[u("div",O,[r(a(f),{class:"app-discover-carousel__button app-discover-carousel__button--previous",variant:"tertiary-no-background","aria-label":a(n)("appstore","Previous slide"),disabled:!x.value,onClick:i[0]||(i[0]=o=>e.value-=1)},{icon:d(()=>[r(a(g),{path:a(B)},null,8,["path"])]),_:1},8,["aria-label","disabled"])]),r(T,{name:b.value,mode:"out-in"},{default:d(()=>[(p(),k(j,M(c.value,{key:c.value.id??e.value,"aria-labelledby":`${l.value}-tab-${e.value}`,domId:`${l.value}-tabpanel-${e.value}`,inline:"",role:"tabpanel"}),null,16,["aria-labelledby","domId"]))]),_:1},8,["name"]),u("div",Q,[r(a(f),{class:"app-discover-carousel__button app-discover-carousel__button--next",variant:"tertiary-no-background","aria-label":a(n)("appstore","Next slide"),disabled:!C.value,onClick:i[1]||(i[1]=o=>e.value+=1)},{icon:d(()=>[r(a(g),{path:a(F)},null,8,["path"])]),_:1},8,["aria-label","disabled"])])]),u("div",{class:"app-discover-carousel__tabs",role:"tablist","aria-label":a(n)("appstore","Choose slide to display")},[(p(!0),y(q,null,z(m.content.length,o=>(p(),k(a(f),{id:`${l.value}-tab-${o}`,key:o,"aria-label":a(n)("appstore","{index} of {total}",{index:o,total:m.content.length}),"aria-controls":`${l.value}-tabpanel-${o}`,"aria-selected":`${e.value===o-1}`,role:"tab",variant:"tertiary-no-background",onClick:V=>e.value=o-1},{icon:d(()=>[r(a(g),{path:e.value===o-1?a(G):a(P)},null,8,["path"])]),_:2},1032,["id","aria-label","aria-controls","aria-selected","onClick"]))),128))],8,R)],8,J))}}),Ka=H(U,[["__scopeId","data-v-89f194e4"]]);export{Ka as default};
//# sourceMappingURL=DiscoverTypeCarousel-BXBb_L14.chunk.mjs.map
import{b as w,l as h,z as I,o as p,f as y,t as N,u as a,h as D,g as u,k as r,w as d,c as k,m as M,T,F as q,B as z,v as s,G as A}from"./Web-CVG0oWkS.chunk.mjs";import{f as B,g as F,h as G,i as P}from"./mdi-C7UShXbV.chunk.mjs";import{t as n}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{N as f}from"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import{N as g}from"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import{c as S,D as j,u as E}from"./DiscoverTypePost-Hm78tLhB.chunk.mjs";import{_ as H}from"./public-C1mLBHT3.chunk.mjs";import"./index-B-dGqfIG.chunk.mjs";import"./index-BpJn58mk.chunk.mjs";import"./appstore-main.mjs";import"./pinia-Dn16KcVd.chunk.mjs";import"./NcContent-Dd15hgck-DppRj7SH.chunk.mjs";import"./NcModal-DyOZxq9E-BdQAvnZZ.chunk.mjs";import"./PencilOutline-Dpim2F3F.chunk.mjs";import"./NcTextArea-BwFQx9Bj-BU3jAwAZ.chunk.mjs";import"./index-DDqb2SdQ.chunk.mjs";import"./TrashCanOutline-ImpP8zID.chunk.mjs";import"./TrayArrowDown-Bj3JaRN-.chunk.mjs";import"./NcInputField-C3iof9pY-BIeFuK2c.chunk.mjs";import"./index-CpKA6aNV.chunk.mjs";import"./NcAvatar-QYahYt2p-Bub13UC0.chunk.mjs";import"./index-BrNm47xe.chunk.mjs";import"./util-Alk1iwuj.chunk.mjs";import"./ArrowRight-CLsEMAPw.chunk.mjs";import"./colors-2YFh1g7z-Esf5_Pnk.chunk.mjs";import"./NcUserStatusIcon-CNh1vXUF-BrBSNJ0h.chunk.mjs";import"./NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL-DJNkT_h3.chunk.mjs";import"./NcEmptyContent--TRhmNAW-ynM-mZKT.chunk.mjs";import"./NcBreadcrumbs-5gl8Syfa-DaWJPUd4.chunk.mjs";import"./NcPasswordField-ykWHv_hw-Cw2SHBDh.chunk.mjs";import"./NcTextField.vue_vue_type_script_setup_true_lang-DgvCZDmR-CrGIqP5N.chunk.mjs";/* empty css */import"./NcCheckboxRadioSwitch-B0KUiKrb-BMjYufv5.chunk.mjs";import"./Plus-BtFRCcos.chunk.mjs";import"./index-CLbLZ9Sj.chunk.mjs";import"./index-BnTwDDAI.chunk.mjs";import"./NcEmojiPicker-DG3qO_fi-BTfb-VU2.chunk.mjs";import"./emoji-C8k9NUlo-rFKNlNNR.chunk.mjs";import"./index-CQNaX4BV.chunk.mjs";/* empty css */import"./index-BU0KVS8x.chunk.mjs";import"./NcSelectTags-D3tAMWYx-ta-36YmL.chunk.mjs";import"./ContentCopy-BebwfDO9.chunk.mjs";import"./NcUserBubble-BnaGHDoD-DBPIicof.chunk.mjs";import"./modulepreload-polyfill-BxzAKjcf.chunk.mjs";import"./index-C1xmmKTZ-BlRBA4Z1.chunk.mjs";import"./index-BedT10F6.chunk.mjs";const J=["aria-roledescription","aria-labelledby"],K=["id"],L={class:"app-discover-carousel__wrapper"},O={class:"app-discover-carousel__button-wrapper"},Q={class:"app-discover-carousel__button-wrapper"},R=["aria-label"],U=w({__name:"DiscoverTypeCarousel",props:{...S,content:{type:Array,required:!0}},setup(m){const t=m,$=E(s(()=>t.headline)),e=h(Math.min(1,t.content.length-1)),c=h(t.content[e.value]),C=s(()=>e.value<t.content.length-1),x=s(()=>e.value>0),l=s(()=>t.id??(Math.random()+1).toString(36).substring(7)),v=s(()=>`${l.value}-h`),b=h("slide-in");return I(()=>e.value,(_,i)=>{_<i?b.value="slide-in":b.value="slide-out",A(()=>{c.value=t.content[e.value]})}),(_,i)=>(p(),y("section",{"aria-roledescription":a(n)("appstore","Carousel"),"aria-labelledby":v.value?`${v.value}`:void 0},[_.headline?(p(),y("h3",{key:0,id:v.value},N(a($)),9,K)):D("",!0),u("div",L,[u("div",O,[r(a(f),{class:"app-discover-carousel__button app-discover-carousel__button--previous",variant:"tertiary-no-background","aria-label":a(n)("appstore","Previous slide"),disabled:!x.value,onClick:i[0]||(i[0]=o=>e.value-=1)},{icon:d(()=>[r(a(g),{path:a(B)},null,8,["path"])]),_:1},8,["aria-label","disabled"])]),r(T,{name:b.value,mode:"out-in"},{default:d(()=>[(p(),k(j,M(c.value,{key:c.value.id??e.value,"aria-labelledby":`${l.value}-tab-${e.value}`,domId:`${l.value}-tabpanel-${e.value}`,inline:"",role:"tabpanel"}),null,16,["aria-labelledby","domId"]))]),_:1},8,["name"]),u("div",Q,[r(a(f),{class:"app-discover-carousel__button app-discover-carousel__button--next",variant:"tertiary-no-background","aria-label":a(n)("appstore","Next slide"),disabled:!C.value,onClick:i[1]||(i[1]=o=>e.value+=1)},{icon:d(()=>[r(a(g),{path:a(F)},null,8,["path"])]),_:1},8,["aria-label","disabled"])])]),u("div",{class:"app-discover-carousel__tabs",role:"tablist","aria-label":a(n)("appstore","Choose slide to display")},[(p(!0),y(q,null,z(m.content.length,o=>(p(),k(a(f),{id:`${l.value}-tab-${o}`,key:o,"aria-label":a(n)("appstore","{index} of {total}",{index:o,total:m.content.length}),"aria-controls":`${l.value}-tabpanel-${o}`,"aria-selected":`${e.value===o-1}`,role:"tab",variant:"tertiary-no-background",onClick:V=>e.value=o-1},{icon:d(()=>[r(a(g),{path:e.value===o-1?a(G):a(P)},null,8,["path"])]),_:2},1032,["id","aria-label","aria-controls","aria-selected","onClick"]))),128))],8,R)],8,J))}}),Ka=H(U,[["__scopeId","data-v-89f194e4"]]);export{Ka as default};
//# sourceMappingURL=DiscoverTypeCarousel-BFg9GMVY.chunk.mjs.map

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
import{j as D}from"./mdi-BsuzcJkY.chunk.mjs";import{c as E}from"./index-B-dGqfIG.chunk.mjs";import{u as L,a as W}from"./index-BpJn58mk.chunk.mjs";import{N as C}from"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import{g as F}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{v as l,b as H,H as M,o as r,f as n,c as d,w as v,C as c,j as G,t as N,u as m,g as S,h as f,F as J,B as K,y as O,l as h}from"./Web-CVG0oWkS.chunk.mjs";import{A as P}from"./appstore-main.mjs";import{_ as Q}from"./public-C1mLBHT3.chunk.mjs";function k(e){const t=F();return l(()=>e?.value?R(e.value,t):null)}function R(e,t){return e[t]??e[t.split("_")[0]]??e.en??null}const U={type:{type:String,required:!0,validator:e=>typeof e=="string"&&P.includes(e)},id:{type:String,required:!0},date:{type:Number,required:!1,default:void 0},expiryDate:{type:Number,required:!1,default:void 0},headline:{type:Object,required:!1,default:()=>null},link:{type:String,required:!1,default:()=>null}},V=["id"],X=["src","srcset","type"],Y=["src","alt"],Z={class:"app-discover-post__play-icon-wrapper"},$=H({__name:"DiscoverTypePost",props:{...U,text:{type:Object,required:!1,default:()=>null},media:{type:Object,required:!1,default:()=>null},inline:{type:Boolean,required:!1,default:!1},domId:{type:String,required:!1,default:null}},setup(e){const t=e,g=k(l(()=>t.headline)),b=k(l(()=>t.text)),s=k(l(()=>t.media?.content)),p=l(()=>s.value!==null?[s.value.src].flat():void 0),w=l(()=>s.value?.alt??""),i=l(()=>p.value?.[0]?.mime.startsWith("image/")===!0),A=l(()=>!g.value&&!b.value),q=l(()=>s.value?.link??t.link),_=h(!1),I=l(()=>s.value?.link&&_.value),j=h(),{width:T}=L(j),z=l(()=>T.value<600);function y(a){return a.startsWith("/")?a:E("/apps/appstore/api/v1/discover/media?fileName={fileName}",{fileName:a})}const o=h(),B=W(o,{threshold:.3});return M(()=>{if(!i.value&&o.value){const a=o.value;B.value?(a.muted=!0,a.play()):(a.pause(),a.ended&&(a.currentTime=0,_.value=!1))}}),(a,x)=>(r(),n("article",{id:e.domId,ref_key:"container",ref:j,class:O(["app-discover-post",{"app-discover-post--reverse":e.media&&e.media.alignment==="start","app-discover-post--small":z.value}])},[a.headline||e.text?(r(),d(c(a.link?"AppLink":"div"),{key:0,href:a.link,class:"app-discover-post__text"},{default:v(()=>[(r(),d(c(e.inline?"h4":"h3"),null,{default:v(()=>[G(N(m(g)),1)]),_:1})),S("p",null,N(m(b)),1)]),_:1},8,["href"])):f("",!0),p.value?(r(),d(c(q.value?"AppLink":"div"),{key:1,href:q.value,class:O(["app-discover-post__media",{"app-discover-post__media--fullwidth":A.value,"app-discover-post__media--start":e.media?.alignment==="start","app-discover-post__media--end":e.media?.alignment==="end"}])},{default:v(()=>[(r(),d(c(i.value?"picture":"video"),{ref_key:"mediaElement",ref:o,class:"app-discover-post__media-element",muted:!i.value,playsinline:!i.value,preload:!i.value&&"auto",onEnded:x[0]||(x[0]=u=>_.value=!0)},{default:v(()=>[(r(!0),n(J,null,K(p.value,u=>(r(),n("source",{key:u.src,src:i.value?void 0:y(u.src),srcset:i.value?y(u.src):void 0,type:u.mime},null,8,X))),128)),i.value?(r(),n("img",{key:0,src:y(p.value[0].src),alt:w.value},null,8,Y)):f("",!0)]),_:1},40,["muted","playsinline","preload"])),S("div",Z,[!i.value&&I.value?(r(),d(m(C),{key:0,class:"app-discover-post__play-icon",path:m(D),size:92},null,8,["path"])):f("",!0)])]),_:1},8,["href","class"])):f("",!0)],10,V))}}),ee=Q($,[["__scopeId","data-v-e48b0e2c"]]),pe=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"}));export{ee as D,pe as a,U as c,k as u};
//# sourceMappingURL=DiscoverTypePost-BCs8Wuew.chunk.mjs.map
import{j as D}from"./mdi-C7UShXbV.chunk.mjs";import{c as E}from"./index-B-dGqfIG.chunk.mjs";import{u as L,a as W}from"./index-BpJn58mk.chunk.mjs";import{N as C}from"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import{g as F}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{v as l,b as H,H as M,o as r,f as n,c as d,w as v,C as c,j as G,t as N,u as m,g as S,h as f,F as J,B as K,y as O,l as h}from"./Web-CVG0oWkS.chunk.mjs";import{A as P}from"./appstore-main.mjs";import{_ as Q}from"./public-C1mLBHT3.chunk.mjs";function k(e){const t=F();return l(()=>e?.value?R(e.value,t):null)}function R(e,t){return e[t]??e[t.split("_")[0]]??e.en??null}const U={type:{type:String,required:!0,validator:e=>typeof e=="string"&&P.includes(e)},id:{type:String,required:!0},date:{type:Number,required:!1,default:void 0},expiryDate:{type:Number,required:!1,default:void 0},headline:{type:Object,required:!1,default:()=>null},link:{type:String,required:!1,default:()=>null}},V=["id"],X=["src","srcset","type"],Y=["src","alt"],Z={class:"app-discover-post__play-icon-wrapper"},$=H({__name:"DiscoverTypePost",props:{...U,text:{type:Object,required:!1,default:()=>null},media:{type:Object,required:!1,default:()=>null},inline:{type:Boolean,required:!1,default:!1},domId:{type:String,required:!1,default:null}},setup(e){const t=e,g=k(l(()=>t.headline)),b=k(l(()=>t.text)),s=k(l(()=>t.media?.content)),p=l(()=>s.value!==null?[s.value.src].flat():void 0),w=l(()=>s.value?.alt??""),i=l(()=>p.value?.[0]?.mime.startsWith("image/")===!0),A=l(()=>!g.value&&!b.value),q=l(()=>s.value?.link??t.link),_=h(!1),I=l(()=>s.value?.link&&_.value),j=h(),{width:T}=L(j),z=l(()=>T.value<600);function y(a){return a.startsWith("/")?a:E("/apps/appstore/api/v1/discover/media?fileName={fileName}",{fileName:a})}const o=h(),B=W(o,{threshold:.3});return M(()=>{if(!i.value&&o.value){const a=o.value;B.value?(a.muted=!0,a.play()):(a.pause(),a.ended&&(a.currentTime=0,_.value=!1))}}),(a,x)=>(r(),n("article",{id:e.domId,ref_key:"container",ref:j,class:O(["app-discover-post",{"app-discover-post--reverse":e.media&&e.media.alignment==="start","app-discover-post--small":z.value}])},[a.headline||e.text?(r(),d(c(a.link?"AppLink":"div"),{key:0,href:a.link,class:"app-discover-post__text"},{default:v(()=>[(r(),d(c(e.inline?"h4":"h3"),null,{default:v(()=>[G(N(m(g)),1)]),_:1})),S("p",null,N(m(b)),1)]),_:1},8,["href"])):f("",!0),p.value?(r(),d(c(q.value?"AppLink":"div"),{key:1,href:q.value,class:O(["app-discover-post__media",{"app-discover-post__media--fullwidth":A.value,"app-discover-post__media--start":e.media?.alignment==="start","app-discover-post__media--end":e.media?.alignment==="end"}])},{default:v(()=>[(r(),d(c(i.value?"picture":"video"),{ref_key:"mediaElement",ref:o,class:"app-discover-post__media-element",muted:!i.value,playsinline:!i.value,preload:!i.value&&"auto",onEnded:x[0]||(x[0]=u=>_.value=!0)},{default:v(()=>[(r(!0),n(J,null,K(p.value,u=>(r(),n("source",{key:u.src,src:i.value?void 0:y(u.src),srcset:i.value?y(u.src):void 0,type:u.mime},null,8,X))),128)),i.value?(r(),n("img",{key:0,src:y(p.value[0].src),alt:w.value},null,8,Y)):f("",!0)]),_:1},40,["muted","playsinline","preload"])),S("div",Z,[!i.value&&I.value?(r(),d(m(C),{key:0,class:"app-discover-post__play-icon",path:m(D),size:92},null,8,["path"])):f("",!0)])]),_:1},8,["href","class"])):f("",!0)],10,V))}}),ee=Q($,[["__scopeId","data-v-e48b0e2c"]]),pe=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"}));export{ee as D,pe as a,U as c,k as u};
//# sourceMappingURL=DiscoverTypePost-Hm78tLhB.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

View file

@ -1,4 +1,4 @@
import{a as H}from"./index-C1xmmKTZ-CeESs0Yi.chunk.mjs";import{t as y}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{v as M}from"./NcAvatar-QYahYt2p-B6sbjze-.chunk.mjs";import{N}from"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import{N as S}from"./NcEmptyContent--TRhmNAW-ynM-mZKT.chunk.mjs";import{_ as f}from"./public-C1mLBHT3.chunk.mjs";import{o as s,f as r,g as I,t as p,h as d,m as h,r as c,ah as z,L,k as m,F as C,c as _,w as g,B as O,j as B,y as F,b as $,v as q}from"./Web-CVG0oWkS.chunk.mjs";import{C as P,a as v}from"./CommentView-BT4knYtH.chunk.mjs";import{l as b}from"./activity-CgsVnLJG.chunk.mjs";import{c as j,g as U,D as w}from"./GetComments-DSuBVNUT.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"],G=["fill","width","height"],J={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"},K={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",J,[e.title?(s(),r("title",K,p(e.title),1)):d("",!0)])],8,G))],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 H}from"./index-C1xmmKTZ-BlRBA4Z1.chunk.mjs";import{t as y}from"./translation-DoG5ZELJ-DGHp0fUA.chunk.mjs";import{v as M}from"./NcAvatar-QYahYt2p-Bub13UC0.chunk.mjs";import{N}from"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import{N as S}from"./NcEmptyContent--TRhmNAW-ynM-mZKT.chunk.mjs";import{_ as f}from"./public-C1mLBHT3.chunk.mjs";import{o as s,f as r,g as I,t as p,h as d,m as h,r as c,ah as z,L,k as m,F as C,c as _,w as g,B as O,j as B,y as F,b as $,v as q}from"./Web-CVG0oWkS.chunk.mjs";import{C as P,a as v}from"./CommentView-B8E30FYP.chunk.mjs";import{l as b}from"./activity-CgsVnLJG.chunk.mjs";import{c as j,g as U,D as w}from"./GetComments-DSuBVNUT.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"],G=["fill","width","height"],J={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"},K={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",J,[e.title?(s(),r("title",K,p(e.title),1)):d("",!0)])],8,G))],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 H}from"./index-C1xmmKTZ-CeESs0Yi.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:v,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:v,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){H(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"),b.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):b.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=c("Comment"),V=c("IconMessageReplyTextOutline"),k=c("NcEmptyContent"),R=c("IconAlertCircleOutline"),A=c("IconRefresh"),T=c("NcButton"),x=z("element-visibility");return L((s(),r("div",{class:F(["comments",{"icon-loading":n.isFirstLoading}])},[m(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(()=>[m(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":D=>u.props.message=D,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},[m(k,{class:"comments__error",name:i.error},{icon:g(()=>[m(R)]),_:1},8,["name"]),m(T,{class:"comments__retry",onClick:n.getComments},{icon:g(()=>[m(A)]),default:g(()=>[B(" "+p(n.t("comments","Retry")),1)]),_:1},8,["onClick"])],64)):d("",!0)],64))],2)),[[x,n.onVisibilityChange]])}const _e=f(he,[["render",Ce],["__scopeId","data-v-2295a278"]]),Ie=$({__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)}}),He=Object.freeze(Object.defineProperty({__proto__:null,default:Ie},Symbol.toStringTag,{value:"Module"}));export{_e as C,He as F};
//# sourceMappingURL=FilesSidebarTab-CeNpEHgc.chunk.mjs.map
//# sourceMappingURL=FilesSidebarTab-CADi3BtH.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

View file

@ -1,2 +1,2 @@
import{A as d}from"./PencilOutline-CVTKhaas.chunk.mjs";import{d as _,p as C,q as S}from"./NcModal-DyOZxq9E-DJ8lRVba.chunk.mjs";import{_ as f}from"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import{o as a,f as o,g as n,i as x,Q as g,y as k,t as l,h as y,r as I,k as v,w as h,b as w,u as T,v as m,a6 as p}from"./Web-CVG0oWkS.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"],q=["textContent"],A={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,q)):(a(),o("span",A,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}}},B=["role"],O={key:0,class:"action-router__longtext-wrapper"},D={class:"action-router__name"},Q=["textContent"],z=["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"},[v(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:h(()=>[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",D,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,Q)])):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,B)}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=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-GKzS94MD.chunk.mjs.map
import{A as d}from"./PencilOutline-Dpim2F3F.chunk.mjs";import{d as _,p as C,q as S}from"./NcModal-DyOZxq9E-BdQAvnZZ.chunk.mjs";import{_ as f}from"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import{o as a,f as o,g as n,i as x,Q as g,y as k,t as l,h as y,r as I,k as v,w as h,b as w,u as T,v as m,a6 as p}from"./Web-CVG0oWkS.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"],q=["textContent"],A={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,q)):(a(),o("span",A,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}}},B=["role"],O={key:0,class:"action-router__longtext-wrapper"},D={class:"action-router__name"},Q=["textContent"],z=["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"},[v(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:h(()=>[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",D,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,Q)])):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,B)}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=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-DJNkT_h3.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

View file

@ -1,4 +1,4 @@
import{r as V,h as N,b as r,_ as x}from"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import{l as g}from"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import{N as c,a as T}from"./index-HEii3ZrW.chunk.mjs";import{c as O}from"./index-BrNm47xe.chunk.mjs";import{h as v}from"./index-B-dGqfIG.chunk.mjs";import{r as m,o as w,c as F,q as S,B as $,w as n,i as A,I as D,O as I,k as h,m as P}from"./Web-CVG0oWkS.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"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import{l as g}from"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import{N as c,a as T}from"./index-DDqb2SdQ.chunk.mjs";import{c as O}from"./index-BrNm47xe.chunk.mjs";import{h as v}from"./index-B-dGqfIG.chunk.mjs";import{r as m,o as w,c as F,q as S,B as $,w as n,i as A,I as D,O as I,k as h,m as P}from"./Web-CVG0oWkS.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"./createElementId-DhjFt1I9-BR-WXAA3.chun
<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 H=x(E,[["render",_]]);export{H as N};
//# sourceMappingURL=NcSelectTags-D3tAMWYx-B8zEI_63.chunk.mjs.map
//# sourceMappingURL=NcSelectTags-D3tAMWYx-ta-36YmL.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

View file

@ -1,2 +1,2 @@
import{R as z}from"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import{N as U}from"./NcAvatar-QYahYt2p-B6sbjze-.chunk.mjs";import{m as k}from"./NcModal-DyOZxq9E-DJ8lRVba.chunk.mjs";import{_ as y}from"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import{b as x,n as R,z as S,o as l,c,w as i,i as o,C as b,m as B,k as C,Q as L,g as M,t as H,f as g,h as Q,s as f,v as s,al as T}from"./Web-CVG0oWkS.chunk.mjs";const W={};function j(r,n){return l(),g("div",null,[o(r.$slots,"trigger")])}const q=y(W,[["render",j]]),A={class:"user-bubble__name"},D={key:0,class:"user-bubble__secondary"},E=x({__name:"NcUserBubble",props:f({avatarImage:{default:void 0},user:{default:void 0},displayName:{default:void 0},showUserStatus:{type:Boolean},url:{default:void 0},to:{default:void 0},primary:{type:Boolean},size:{default:20},margin:{default:2}},{open:{type:Boolean},openModifiers:{}}),emits:f(["click"],["update:open"]),setup(r,{emit:n}){const d=R(r,"open"),e=r,_=n,m=s(()=>{if(!e.avatarImage)return!1;try{return!!new URL(e.avatarImage)}catch{return!1}}),p=s(()=>!!e.avatarImage),h=s(()=>({marginInlineStart:`${e.margin}px`})),v=s(()=>{if(!e.url||e.url.trim()==="")return!1;try{return!!new URL(e.url,e.url?.startsWith?.("/")?window.location.href:void 0)}catch{return T("[NcUserBubble] Invalid URL passed",{url:e.url}),!1}}),w=s(()=>v.value?e.url:void 0),N=s(()=>v.value?"a":e.to?z:"div"),I=s(()=>({height:`${e.size}px`,lineHeight:`${e.size}px`,borderRadius:`${e.size/2}px`}));return S([()=>e.displayName,()=>e.user],()=>{!e.displayName&&e.user}),(a,t)=>(l(),c(b(a.$slots.default?k:q),{shown:d.value,"onUpdate:shown":t[1]||(t[1]=u=>d.value=u),class:"user-bubble__wrapper",trigger:"hover focus"},{trigger:i(({attrs:u})=>[(l(),c(b(N.value),B({class:["user-bubble__content",{"user-bubble__content--primary":a.primary}],style:I.value,to:a.to,href:w.value},u,{onClick:t[0]||(t[0]=$=>_("click",$))}),{default:i(()=>[C(U,{url:p.value&&m.value?a.avatarImage:void 0,iconClass:p.value&&!m.value?a.avatarImage:void 0,user:a.user,displayName:a.displayName,size:a.size-a.margin*2,style:L(h.value),disableTooltip:"",disableMenu:"",hideStatus:!a.showUserStatus,class:"user-bubble__avatar"},null,8,["url","iconClass","user","displayName","size","style","hideStatus"]),M("span",A,H(a.displayName||a.user),1),a.$slots.name?(l(),g("span",D,[o(a.$slots,"name",{},void 0,!0)])):Q("",!0)]),_:2},1040,["class","style","to","href"]))]),default:i(()=>[o(a.$slots,"default",{},void 0,!0)]),_:3},40,["shown"]))}}),J=y(E,[["__scopeId","data-v-9189d023"]]);export{J as N};
//# sourceMappingURL=NcUserBubble-BnaGHDoD-CXGIMXGu.chunk.mjs.map
import{R as z}from"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import{N as U}from"./NcAvatar-QYahYt2p-Bub13UC0.chunk.mjs";import{m as k}from"./NcModal-DyOZxq9E-BdQAvnZZ.chunk.mjs";import{_ as y}from"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import{b as x,n as R,z as S,o as l,c,w as i,i as o,C as b,m as B,k as C,Q as L,g as M,t as H,f as g,h as Q,s as f,v as s,al as T}from"./Web-CVG0oWkS.chunk.mjs";const W={};function j(r,n){return l(),g("div",null,[o(r.$slots,"trigger")])}const q=y(W,[["render",j]]),A={class:"user-bubble__name"},D={key:0,class:"user-bubble__secondary"},E=x({__name:"NcUserBubble",props:f({avatarImage:{default:void 0},user:{default:void 0},displayName:{default:void 0},showUserStatus:{type:Boolean},url:{default:void 0},to:{default:void 0},primary:{type:Boolean},size:{default:20},margin:{default:2}},{open:{type:Boolean},openModifiers:{}}),emits:f(["click"],["update:open"]),setup(r,{emit:n}){const d=R(r,"open"),e=r,_=n,m=s(()=>{if(!e.avatarImage)return!1;try{return!!new URL(e.avatarImage)}catch{return!1}}),p=s(()=>!!e.avatarImage),h=s(()=>({marginInlineStart:`${e.margin}px`})),v=s(()=>{if(!e.url||e.url.trim()==="")return!1;try{return!!new URL(e.url,e.url?.startsWith?.("/")?window.location.href:void 0)}catch{return T("[NcUserBubble] Invalid URL passed",{url:e.url}),!1}}),w=s(()=>v.value?e.url:void 0),N=s(()=>v.value?"a":e.to?z:"div"),I=s(()=>({height:`${e.size}px`,lineHeight:`${e.size}px`,borderRadius:`${e.size/2}px`}));return S([()=>e.displayName,()=>e.user],()=>{!e.displayName&&e.user}),(a,t)=>(l(),c(b(a.$slots.default?k:q),{shown:d.value,"onUpdate:shown":t[1]||(t[1]=u=>d.value=u),class:"user-bubble__wrapper",trigger:"hover focus"},{trigger:i(({attrs:u})=>[(l(),c(b(N.value),B({class:["user-bubble__content",{"user-bubble__content--primary":a.primary}],style:I.value,to:a.to,href:w.value},u,{onClick:t[0]||(t[0]=$=>_("click",$))}),{default:i(()=>[C(U,{url:p.value&&m.value?a.avatarImage:void 0,iconClass:p.value&&!m.value?a.avatarImage:void 0,user:a.user,displayName:a.displayName,size:a.size-a.margin*2,style:L(h.value),disableTooltip:"",disableMenu:"",hideStatus:!a.showUserStatus,class:"user-bubble__avatar"},null,8,["url","iconClass","user","displayName","size","style","hideStatus"]),M("span",A,H(a.displayName||a.user),1),a.$slots.name?(l(),g("span",D,[o(a.$slots,"name",{},void 0,!0)])):Q("",!0)]),_:2},1040,["class","style","to","href"]))]),default:i(()=>[o(a.$slots,"default",{},void 0,!0)]),_:3},40,["shown"]))}}),J=y(E,[["__scopeId","data-v-9189d023"]]);export{J as N};
//# sourceMappingURL=NcUserBubble-BnaGHDoD-DBPIicof.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

View file

@ -1,2 +1,2 @@
import{b as y}from"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import{N as k}from"./PencilOutline-CVTKhaas.chunk.mjs";import{a as b}from"./NcModal-DyOZxq9E-DJ8lRVba.chunk.mjs";import{r as P,y as x,N as g,b as H,_ as S}from"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import{b as V,x as $,o as t,f as s,i as p,c as d,h as o,g as C,j as _,t as f,w as u,k as z,u as N,y as w,v as M,m as B}from"./Web-CVG0oWkS.chunk.mjs";import{_ as I}from"./public-C1mLBHT3.chunk.mjs";P(x);const L={key:0,class:"nc-chip__icon"},j={class:"nc-chip__text"},A=V({__name:"NcChip",props:{ariaLabelClose:{default:H("Close")},actionsContainer:{default:"body"},text:{default:""},iconPath:{default:void 0},iconSvg:{default:void 0},noClose:{type:Boolean},variant:{default:"secondary"}},emits:["close"],setup(n,{emit:e}){const i=n,h=e,r=$(),l=M(()=>!i.noClose),c=()=>!!r.actions,m=()=>!!(i.iconPath||i.iconSvg||r.icon);return(a,v)=>(t(),s("div",{class:w(["nc-chip",{[`nc-chip--${a.variant}`]:!0,"nc-chip--no-actions":a.noClose&&!c(),"nc-chip--no-icon":!m()}])},[m()?(t(),s("span",L,[p(a.$slots,"icon",{},()=>[a.iconPath||a.iconSvg?(t(),d(g,{key:0,inline:"",path:a.iconPath,svg:a.iconPath?void 0:a.iconSvg,size:18},null,8,["path","svg"])):o("",!0)],!0)])):o("",!0),C("span",j,[p(a.$slots,"default",{},()=>[_(f(a.text),1)],!0)]),l.value||c()?(t(),d(b,{key:1,class:"nc-chip__actions",container:a.actionsContainer,forceMenu:!l.value,variant:"tertiary-no-background"},{default:u(()=>[l.value?(t(),d(k,{key:0,closeAfterClick:"",onClick:v[0]||(v[0]=J=>h("close"))},{icon:u(()=>[z(g,{path:N(y),size:20},null,8,["path"])]),default:u(()=>[_(" "+f(a.ariaLabelClose),1)]),_:1})):o("",!0),p(a.$slots,"actions",{},void 0,!0)]),_:3},8,["container","forceMenu"])):o("",!0)],2))}}),U=S(A,[["__scopeId","data-v-8f5d3c40"]]),Z={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},q=["aria-hidden","aria-label"],D=["fill","width","height"],E={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},F={key:0};function G(n,e,i,h,r,l){return t(),s("span",B(n.$attrs,{"aria-hidden":i.title?null:"true","aria-label":i.title,class:"material-design-icon plus-icon",role:"img",onClick:e[0]||(e[0]=c=>n.$emit("click",c))}),[(t(),s("svg",{fill:i.fillColor,class:"material-design-icon__svg",width:i.size,height:i.size,viewBox:"0 0 24 24"},[C("path",E,[i.title?(t(),s("title",F,f(i.title),1)):o("",!0)])],8,D))],16,q)}const X=I(Z,[["render",G]]);export{U as N,X as P};
//# sourceMappingURL=Plus-DrYPk6mX.chunk.mjs.map
import{b as y}from"./logger-D3RVzcfQ-Bkys46hi.chunk.mjs";import{N as k}from"./PencilOutline-Dpim2F3F.chunk.mjs";import{a as b}from"./NcModal-DyOZxq9E-BdQAvnZZ.chunk.mjs";import{r as P,y as x,N as g,b as H,_ as S}from"./createElementId-DhjFt1I9-BR-WXAA3.chunk.mjs";import{b as V,x as $,o as t,f as s,i as p,c as d,h as o,g as C,j as _,t as f,w as u,k as z,u as N,y as w,v as M,m as B}from"./Web-CVG0oWkS.chunk.mjs";import{_ as I}from"./public-C1mLBHT3.chunk.mjs";P(x);const L={key:0,class:"nc-chip__icon"},j={class:"nc-chip__text"},A=V({__name:"NcChip",props:{ariaLabelClose:{default:H("Close")},actionsContainer:{default:"body"},text:{default:""},iconPath:{default:void 0},iconSvg:{default:void 0},noClose:{type:Boolean},variant:{default:"secondary"}},emits:["close"],setup(n,{emit:e}){const i=n,h=e,r=$(),l=M(()=>!i.noClose),c=()=>!!r.actions,m=()=>!!(i.iconPath||i.iconSvg||r.icon);return(a,v)=>(t(),s("div",{class:w(["nc-chip",{[`nc-chip--${a.variant}`]:!0,"nc-chip--no-actions":a.noClose&&!c(),"nc-chip--no-icon":!m()}])},[m()?(t(),s("span",L,[p(a.$slots,"icon",{},()=>[a.iconPath||a.iconSvg?(t(),d(g,{key:0,inline:"",path:a.iconPath,svg:a.iconPath?void 0:a.iconSvg,size:18},null,8,["path","svg"])):o("",!0)],!0)])):o("",!0),C("span",j,[p(a.$slots,"default",{},()=>[_(f(a.text),1)],!0)]),l.value||c()?(t(),d(b,{key:1,class:"nc-chip__actions",container:a.actionsContainer,forceMenu:!l.value,variant:"tertiary-no-background"},{default:u(()=>[l.value?(t(),d(k,{key:0,closeAfterClick:"",onClick:v[0]||(v[0]=J=>h("close"))},{icon:u(()=>[z(g,{path:N(y),size:20},null,8,["path"])]),default:u(()=>[_(" "+f(a.ariaLabelClose),1)]),_:1})):o("",!0),p(a.$slots,"actions",{},void 0,!0)]),_:3},8,["container","forceMenu"])):o("",!0)],2))}}),U=S(A,[["__scopeId","data-v-8f5d3c40"]]),Z={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},q=["aria-hidden","aria-label"],D=["fill","width","height"],E={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},F={key:0};function G(n,e,i,h,r,l){return t(),s("span",B(n.$attrs,{"aria-hidden":i.title?null:"true","aria-label":i.title,class:"material-design-icon plus-icon",role:"img",onClick:e[0]||(e[0]=c=>n.$emit("click",c))}),[(t(),s("svg",{fill:i.fillColor,class:"material-design-icon__svg",width:i.size,height:i.size,viewBox:"0 0 24 24"},[C("path",E,[i.title?(t(),s("title",F,f(i.title),1)):o("",!0)])],8,D))],16,q)}const X=I(Z,[["render",G]]);export{U as N,X as P};
//# sourceMappingURL=Plus-BtFRCcos.chunk.mjs.map

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