aegon-dangerious 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-report/components/AiPromptGenerateDialog.vue +349 -0
- package/build-report/components/CapsuleScrollbar.vue +145 -0
- package/build-report/components/ChapterTitleScroll.vue +292 -0
- package/build-report/components/PromptField.vue +314 -0
- package/build-report/components/RecentReportsTable.vue +408 -0
- package/build-report/components/ReportChapterPreview.vue +437 -0
- package/build-report/components/ReportChapterWorkspace.vue +923 -0
- package/build-report/components/ReportCollapsibleSection.vue +132 -0
- package/build-report/components/ReportConfigPanel.vue +609 -0
- package/build-report/components/ReportGenerateSettingsPanel.vue +403 -0
- package/build-report/components/ReportGeneratingPanel.vue +908 -0
- package/build-report/components/ReportHistoryList.vue +157 -0
- package/build-report/components/ReportHistoryPanel.vue +140 -0
- package/build-report/components/ReportPromptPanel.vue +445 -0
- package/build-report/components/ReportSectionConfirmPopover.vue +232 -0
- package/build-report/components/ReportSourceFileSummary.vue +544 -0
- package/build-report/components/ReportSourcesMoreOverlay.vue +279 -0
- package/build-report/components/ReportSourcesPanel.vue +1055 -0
- package/build-report/components/ReportTemplateDetail.vue +176 -0
- package/build-report/components/ReportTemplateEditorFormPanel.vue +602 -0
- package/build-report/components/ReportTemplatePicker.vue +802 -0
- package/build-report/components/ReportTemplatePromptField.vue +314 -0
- package/build-report/components/ReportWorkflowSidebar.vue +104 -0
- package/build-report/components/reportEdit.vue +334 -0
- package/build-report/index.vue +646 -0
- package/build-report/report-list.vue +407 -0
- package/build-report/report-template-data.ts +248 -0
- package/build-report/styles/report-workflow-dialog.css +33 -0
- package/build-report/useReportWorkflow.ts +343 -0
- package/build-report/utils/report-edit-route.ts +109 -0
- package/build-report/utils/scroll.ts +361 -0
- package/package.json +12 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section ref="rootRef" class="report-collapsible-section" :class="{ 'is-collapsed': !open }">
|
|
3
|
+
<button ref="toggleRef" type="button" class="report-collapsible-section__toggle" @click="handleToggle">
|
|
4
|
+
<span class="report-collapsible-section__title">{{ title }}</span>
|
|
5
|
+
<span class="report-collapsible-section__trailing">
|
|
6
|
+
<span v-if="$slots.actions" class="report-collapsible-section__actions" @click.stop>
|
|
7
|
+
<slot name="actions" />
|
|
8
|
+
</span>
|
|
9
|
+
<span class="report-collapsible-section__arrow" :class="{ 'is-open': open }" aria-hidden="true" />
|
|
10
|
+
</span>
|
|
11
|
+
</button>
|
|
12
|
+
<div v-show="open" class="report-collapsible-section__body">
|
|
13
|
+
<slot />
|
|
14
|
+
</div>
|
|
15
|
+
</section>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script setup lang="ts">
|
|
19
|
+
import { ref } from 'vue'
|
|
20
|
+
|
|
21
|
+
defineProps<{
|
|
22
|
+
title: string
|
|
23
|
+
}>()
|
|
24
|
+
|
|
25
|
+
const open = defineModel<boolean>('open', { default: true })
|
|
26
|
+
|
|
27
|
+
const COLLAPSE_DELAY_MS = 300
|
|
28
|
+
|
|
29
|
+
const emit = defineEmits<{
|
|
30
|
+
'before-collapse': [done: (hadOpenOverlays: boolean) => void]
|
|
31
|
+
}>()
|
|
32
|
+
|
|
33
|
+
function collapse(hadOpenOverlays = false) {
|
|
34
|
+
window.setTimeout(() => {
|
|
35
|
+
open.value = false
|
|
36
|
+
}, hadOpenOverlays ? COLLAPSE_DELAY_MS : 0)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function handleToggle() {
|
|
40
|
+
if (!open.value) {
|
|
41
|
+
open.value = true
|
|
42
|
+
return
|
|
43
|
+
}
|
|
44
|
+
let handled = false
|
|
45
|
+
emit('before-collapse', (hadOpenOverlays) => {
|
|
46
|
+
handled = true
|
|
47
|
+
collapse(hadOpenOverlays)
|
|
48
|
+
})
|
|
49
|
+
if (!handled) {
|
|
50
|
+
collapse()
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const rootRef = ref<HTMLElement | null>(null)
|
|
55
|
+
const toggleRef = ref<HTMLElement | null>(null)
|
|
56
|
+
|
|
57
|
+
defineExpose({
|
|
58
|
+
rootRef,
|
|
59
|
+
toggleRef,
|
|
60
|
+
})
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<style scoped>
|
|
64
|
+
.report-collapsible-section {
|
|
65
|
+
padding: 14px 16px;
|
|
66
|
+
border: 1px solid #ebeef5;
|
|
67
|
+
border-radius: 8px;
|
|
68
|
+
background: #fff;
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.report-collapsible-section__toggle {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: space-between;
|
|
76
|
+
width: 100%;
|
|
77
|
+
margin: 0;
|
|
78
|
+
padding: 0 0 14px;
|
|
79
|
+
border: 0;
|
|
80
|
+
border-bottom: 1px solid #ebeef5;
|
|
81
|
+
background: none;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.report-collapsible-section.is-collapsed .report-collapsible-section__toggle {
|
|
86
|
+
padding-bottom: 0;
|
|
87
|
+
border-bottom: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.report-collapsible-section__title {
|
|
91
|
+
font-size: 18px;
|
|
92
|
+
font-weight: 700;
|
|
93
|
+
color: #303133;
|
|
94
|
+
line-height: 1.2;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.report-collapsible-section__trailing {
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: 12px;
|
|
101
|
+
flex-shrink: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.report-collapsible-section__actions {
|
|
105
|
+
display: inline-flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
gap: 10px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.report-collapsible-section__arrow {
|
|
111
|
+
display: inline-block;
|
|
112
|
+
width: 0;
|
|
113
|
+
height: 0;
|
|
114
|
+
border-left: 5px solid transparent;
|
|
115
|
+
border-right: 5px solid transparent;
|
|
116
|
+
border-bottom: 7px solid #c53355;
|
|
117
|
+
transition: transform 0.2s ease;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.report-collapsible-section__arrow.is-open {
|
|
121
|
+
transform: rotate(180deg);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.report-collapsible-section__body {
|
|
125
|
+
padding-top: 0;
|
|
126
|
+
min-width: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.report-collapsible-section.is-collapsed {
|
|
130
|
+
padding-bottom: 14px;
|
|
131
|
+
}
|
|
132
|
+
</style>
|