@@ -1267,20 +1274,29 @@
: t('fileManage.expandRetrievalHistory', { count: retrievalTimelineCount })
}}
-
-
-
-
{{ event.displayTitle }}
-
{{ event.displayMeta }}
+
+
+
+
+
{{ event.displayTitle }}
+
{{ event.displayMeta }}
+
+
{{ event.displayDescription }}
-
{{ event.displayDescription }}
-
+
@@ -1853,6 +1869,90 @@ const detailTimelineRows = computed(() => {
const visibleDetailTimeline = computed(() =>
isLifecycleExpanded.value ? detailTimelineRows.value : detailTimelineRows.value.slice(0, 3)
)
+
+const LIFECYCLE_ANIMATION_MS = 180
+const getAnimationDelay = (element: Element) => {
+ const row = element as HTMLElement
+ const siblingIndex = Array.from(row.parentElement?.children || []).indexOf(row)
+ return Math.min(Math.max(siblingIndex, 0) * 18, 72)
+}
+const beforeLifecycleRowEnter = (element: Element) => {
+ const row = element as HTMLElement
+ row.style.height = '0px'
+ row.style.opacity = '0'
+ row.style.overflow = 'clip'
+ row.style.transform = 'translate3d(0, -0.35rem, 0) scale(0.985)'
+}
+const enterLifecycleRow = (element: Element, done: () => void) => {
+ const row = element as HTMLElement
+ const delay = getAnimationDelay(row)
+ const height = row.scrollHeight
+ requestAnimationFrame(() => {
+ row.style.transition = `height ${LIFECYCLE_ANIMATION_MS}ms cubic-bezier(0.22, 1, 0.36, 1) ${delay}ms, opacity ${LIFECYCLE_ANIMATION_MS}ms cubic-bezier(0.22, 1, 0.36, 1) ${delay}ms, transform ${LIFECYCLE_ANIMATION_MS}ms cubic-bezier(0.22, 1, 0.36, 1) ${delay}ms`
+ row.style.height = `${height}px`
+ row.style.opacity = '1'
+ row.style.transform = 'translate3d(0, 0, 0) scale(1)'
+ window.setTimeout(() => {
+ row.style.transition = ''
+ row.style.height = ''
+ row.style.overflow = ''
+ done()
+ }, LIFECYCLE_ANIMATION_MS + delay)
+ })
+}
+const leaveLifecycleRow = (element: Element, done: () => void) => {
+ const row = element as HTMLElement
+ row.style.height = `${row.scrollHeight}px`
+ row.style.overflow = 'clip'
+ row.style.transition = `height 140ms cubic-bezier(0.4, 0, 1, 1), opacity 140ms cubic-bezier(0.4, 0, 1, 1), transform 140ms cubic-bezier(0.4, 0, 1, 1)`
+ requestAnimationFrame(() => {
+ row.style.height = '0px'
+ row.style.opacity = '0'
+ row.style.transform = 'translate3d(0, -0.25rem, 0) scale(0.985)'
+ window.setTimeout(done, 140)
+ })
+}
+const beforeRetrievalPanelEnter = (element: Element) => {
+ const panel = element as HTMLElement
+ panel.style.height = '0px'
+ panel.style.opacity = '0'
+ panel.style.transform = 'translate3d(0, -0.25rem, 0)'
+ panel.style.overflow = 'clip'
+}
+const enterRetrievalPanel = (element: Element, done: () => void) => {
+ const panel = element as HTMLElement
+ const height = panel.scrollHeight
+ requestAnimationFrame(() => {
+ panel.style.transition = `height ${LIFECYCLE_ANIMATION_MS}ms cubic-bezier(0.22, 1, 0.36, 1), opacity ${LIFECYCLE_ANIMATION_MS}ms cubic-bezier(0.22, 1, 0.36, 1), transform ${LIFECYCLE_ANIMATION_MS}ms cubic-bezier(0.22, 1, 0.36, 1)`
+ panel.style.height = `${height}px`
+ panel.style.opacity = '1'
+ panel.style.transform = 'translate3d(0, 0, 0)'
+ window.setTimeout(done, LIFECYCLE_ANIMATION_MS)
+ })
+}
+const afterRetrievalPanelEnter = (element: Element) => {
+ const panel = element as HTMLElement
+ panel.style.height = ''
+ panel.style.opacity = ''
+ panel.style.transform = ''
+ panel.style.transition = ''
+ panel.style.overflow = ''
+}
+const beforeRetrievalPanelLeave = (element: Element) => {
+ const panel = element as HTMLElement
+ panel.style.height = `${panel.scrollHeight}px`
+ panel.style.overflow = 'clip'
+}
+const leaveRetrievalPanel = (element: Element, done: () => void) => {
+ const panel = element as HTMLElement
+ requestAnimationFrame(() => {
+ panel.style.transition = `height 140ms cubic-bezier(0.4, 0, 1, 1), opacity 140ms cubic-bezier(0.4, 0, 1, 1), transform 140ms cubic-bezier(0.4, 0, 1, 1)`
+ panel.style.height = '0px'
+ panel.style.opacity = '0'
+ panel.style.transform = 'translate3d(0, -0.25rem, 0)'
+ window.setTimeout(done, 140)
+ })
+}
watch(
() => selectedFileDetail.value?.id,
() => {