@tano.page/workbench 0.14.0 → 0.15.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/package.json +21 -8
- package/src/App.vue +76 -17
- package/src/appearance/appearance.ts +14 -4
- package/src/appearance/components/ThemePresetPreview.vue +52 -8
- package/src/appearance/interface-font.ts +99 -0
- package/src/appearance/theme.ts +26 -10
- package/src/appearance/use-interface-font.ts +30 -0
- package/src/assets/mail-provider-icons/NOTICE.txt +27 -0
- package/src/assets/mail-provider-icons/aliyun-mail.svg +3 -0
- package/src/assets/mail-provider-icons/gmail.svg +1 -0
- package/src/assets/mail-provider-icons/icloud.svg +12 -0
- package/src/assets/mail-provider-icons/netease-126.svg +5 -0
- package/src/assets/mail-provider-icons/netease-163.svg +5 -0
- package/src/assets/mail-provider-icons/qq.svg +9 -0
- package/src/assets/mail-provider-icons/tencent-exmail.svg +4 -0
- package/src/assistant/components/AssistantChangeList.vue +98 -21
- package/src/assistant/components/AssistantPanel.vue +424 -7
- package/src/assistant/components/PluginToolProposalCard.vue +235 -0
- package/src/assistant/engine.ts +56 -3
- package/src/assistant/files.ts +5 -13
- package/src/assistant/inbox.ts +1 -148
- package/src/assistant/locales/de-DE.json +4 -1
- package/src/assistant/locales/en-US.json +4 -1
- package/src/assistant/locales/es-ES.json +4 -1
- package/src/assistant/locales/ja-JP.json +4 -1
- package/src/assistant/locales/zh-CN.json +4 -1
- package/src/assistant/locales/zh-TW.json +4 -1
- package/src/assistant/mention-autocomplete.ts +69 -0
- package/src/assistant/prompts.ts +7 -0
- package/src/assistant/results.ts +20 -86
- package/src/assistant/store.ts +319 -12
- package/src/assistant/structures.ts +7 -5
- package/src/assistant/tasks.ts +3 -5
- package/src/assistant/workspace-bridge.ts +1 -1
- package/src/composables/use-document-actions.ts +38 -20
- package/src/composables/use-file-tree-controller.ts +7 -12
- package/src/composables/use-workbench-history.ts +2 -4
- package/src/composables/use-workbench-modals.ts +6 -1
- package/src/composables/use-workbench-outline.ts +0 -5
- package/src/composables/use-workbench-shortcuts.ts +26 -22
- package/src/data-tables/data-tables.ts +1 -2
- package/src/documents/components/DocumentHistoryPanel.vue +3 -1
- package/src/features.ts +1 -0
- package/src/fonts/Inter-Latin-Italic.woff2 +0 -0
- package/src/fonts/Inter-Latin.woff2 +0 -0
- package/src/fonts/TanoUISansSC-Bold.woff2 +0 -0
- package/src/fonts/TanoUISansSC-Medium.woff2 +0 -0
- package/src/fonts/TanoUISansSC-Regular.woff2 +0 -0
- package/src/help/help-milestones.ts +3 -5
- package/src/i18n/locales/de-DE.json +349 -3
- package/src/i18n/locales/en-US.json +349 -2
- package/src/i18n/locales/es-ES.json +349 -3
- package/src/i18n/locales/ja-JP.json +348 -2
- package/src/i18n/locales/zh-TW.json +348 -2
- package/src/mail/components/MailAccountDialog.vue +449 -0
- package/src/mail/components/MailComposerDialog.vue +325 -0
- package/src/mail/components/MailProviderIcon.vue +30 -0
- package/src/mail/components/MailWorkspaceView.vue +820 -0
- package/src/mail/components/SidebarMail.vue +133 -0
- package/src/mail/mail-avatar.ts +17 -0
- package/src/mail/mail-bridge.ts +68 -0
- package/src/mail/mail-calendar.ts +208 -0
- package/src/mail/mail-markdown.ts +195 -0
- package/src/mail/types.ts +226 -0
- package/src/objects/components/ObjectDetailModal.vue +1001 -0
- package/src/objects/workspace-objects.ts +1 -1
- package/src/plan-sync/types.ts +6 -3
- package/src/plans/calendar-interaction.ts +194 -0
- package/src/plans/calendar.ts +63 -7
- package/src/plans/components/CalendarDayPopover.vue +172 -39
- package/src/plans/components/CalendarView.vue +1736 -276
- package/src/plans/components/PlanArchiveDialog.vue +295 -0
- package/src/plans/components/PlanDateField.vue +6 -4
- package/src/plans/components/PlanDetailPanel.vue +227 -32
- package/src/plans/components/PlanEventList.vue +16 -4
- package/src/plans/components/SidebarPlan.vue +22 -15
- package/src/plans/components/TaskRepeatControls.vue +169 -30
- package/src/plans/local-reminders.ts +149 -0
- package/src/plans/personal-plans.ts +10 -1
- package/src/plans/plan-date.ts +8 -1
- package/src/plans/plan-migration.ts +95 -0
- package/src/plans/recurrence.ts +95 -0
- package/src/plans/task-repeat.ts +8 -8
- package/src/plans/timeline-layout.ts +92 -0
- package/src/plugins/assistant-bridge.ts +520 -0
- package/src/plugins/attachment-reader.ts +3 -1
- package/src/plugins/cache-storage.ts +42 -2
- package/src/plugins/components/PluginAutomations.vue +3 -3
- package/src/plugins/components/PluginCatalogBrowser.vue +17 -8
- package/src/plugins/components/PluginChangeSummary.vue +16 -3
- package/src/plugins/components/PluginConnections.vue +1 -1
- package/src/plugins/components/PluginCustomView.vue +2 -2
- package/src/plugins/components/PluginDetailPage.vue +129 -54
- package/src/plugins/components/PluginDocumentSlot.vue +63 -0
- package/src/plugins/components/PluginExplorer.vue +15 -21
- package/src/plugins/components/PluginImportDialog.vue +410 -0
- package/src/plugins/components/PluginInstaller.vue +39 -145
- package/src/plugins/components/PluginListItem.vue +3 -0
- package/src/plugins/components/PluginMaintenance.vue +21 -6
- package/src/plugins/components/PluginRuntimePanel.vue +3 -3
- package/src/plugins/components/PluginSettingsForm.vue +111 -0
- package/src/plugins/components/PluginStatusBar.vue +161 -0
- package/src/plugins/components/PluginSurface.vue +18 -6
- package/src/plugins/components/PluginUiDialog.vue +452 -0
- package/src/plugins/excalidraw/bundle.tano-plugin.json +1 -1
- package/src/plugins/excalidraw/manifest.json +12 -1
- package/src/plugins/host.ts +662 -43
- package/src/plugins/native.ts +2 -10
- package/src/plugins/overlay-mapping.ts +125 -0
- package/src/plugins/packages.ts +73 -1
- package/src/plugins/plugin-permissions.ts +57 -0
- package/src/plugins/plugin-sdk.ts +174 -8
- package/src/plugins/policy.ts +53 -3
- package/src/plugins/presentation-preview/bundle.tano-plugin.json +1 -1
- package/src/plugins/presentation-preview/manifest.json +2 -1
- package/src/plugins/queries.ts +3 -1
- package/src/plugins/sandbox.ts +15 -1
- package/src/plugins/use-plugin-actions.ts +67 -20
- package/src/plugins/user-plugins.ts +254 -0
- package/src/plugins/word-preview/bundle.tano-plugin.json +1 -1
- package/src/plugins/word-preview/manifest.json +13 -1
- package/src/plugins/workbench.ts +175 -2
- package/src/plugins/worker.js +105 -8
- package/src/plugins/workspace-plugin-runtime.ts +23 -7
- package/src/plugins/workspace-plugins.ts +212 -21
- package/src/runtime.ts +101 -3
- package/src/settings/components/SettingsAppearancePage.vue +46 -0
- package/src/settings/components/SettingsDocumentsPage.vue +0 -1
- package/src/settings/components/settings-search.ts +2 -3
- package/src/shell/components/SidebarNavigation.vue +22 -2
- package/src/shell/components/WorkbenchContextMenus.vue +21 -8
- package/src/shell/components/WorkbenchModals.vue +27 -46
- package/src/shell/components/WorkbenchPanes.vue +267 -84
- package/src/shell/components/WorkspaceBreadcrumb.vue +6 -14
- package/src/shell/components/WorkspaceViewSwitcher.vue +12 -7
- package/src/shell/use-workbench.ts +116 -145
- package/src/shell/workbench-async-components.ts +14 -5
- package/src/stores/mail.ts +414 -0
- package/src/stores/plan-sync.ts +2 -1
- package/src/stores/plans.ts +2 -9
- package/src/stores/workspace-knowledge.ts +1 -113
- package/src/stores/workspace-plugins-state.ts +537 -14
- package/src/stores/workspace-tabs-layout.ts +5 -43
- package/src/stores/workspace.ts +69 -66
- package/src/styles/agent-diff-modals.css +0 -7
- package/src/styles/dark-theme.css +3 -3
- package/src/styles/inspector.css +0 -59
- package/src/styles/layout-themes.css +346 -0
- package/src/styles/mail.css +1568 -0
- package/src/styles/mobile.css +2 -2
- package/src/styles/recent-and-media.css +0 -17
- package/src/styles/theme-contract.css +3 -3
- package/src/styles/workbench-shell.css +110 -17
- package/src/styles/workspace-states.css +9 -33
- package/src/styles.css +1 -1
- package/src/tabs/components/DesktopTabs.vue +0 -3
- package/src/tabs/components/NewTabPicker.vue +10 -4
- package/src/tabs/tab-label.ts +0 -1
- package/src/workspace/components/WorkspaceGeneralSettings.vue +0 -13
- package/src/workspace/components/WorkspaceIconPicker.vue +28 -6
- package/src/workspace/workspace-comments.ts +11 -151
- package/src/workspace/workspace-welcome.ts +1 -1
- package/src/documents/components/FormulaMenu.vue +0 -50
- package/src/files/components/FileDatabasePage.vue +0 -152
- package/src/files/components/FolderHomeIcon.vue +0 -12
- package/src/objects/components/ObjectDatabasePage.vue +0 -100
- package/src/objects/components/ObjectPanel.vue +0 -554
- package/src/plans/components/PersonalPlanDialog.vue +0 -105
- package/src/shell/components/WorkspaceViewPage.vue +0 -127
- package/src/shell/components/WorkspaceViewTab.vue +0 -24
- package/src/styles/object-panel.css +0 -163
- package/src/workspace/components/GitInspectionPanel.vue +0 -35
- package/src/workspace/components/WorkspaceSyncPanel.vue +0 -50
- package/src/workspace/welcome-slogans.ts +0 -11
- package/src/workspace/workspace-git.ts +0 -35
- package/src/workspace/workspace-sync.ts +0 -46
- package/src/workspace/workspace-views.ts +0 -48
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useWindowContext } from '../../windows/context';
|
|
3
|
+
const { document } = useWindowContext();
|
|
4
|
+
|
|
5
|
+
import { vSurfaceMotion } from '@tano/editor/surface-motion';
|
|
6
|
+
import { t } from '../../i18n/i18n';
|
|
7
|
+
import { computed, onBeforeUnmount, onMounted, ref } from 'vue';
|
|
8
|
+
import { Archive, CalendarDays, ListTodo, RotateCcw, Search, X } from 'lucide-vue-next';
|
|
9
|
+
import { isPlanObject } from '@tano/protocol';
|
|
10
|
+
import type { ObjectRecord } from '../../objects/workspace-objects';
|
|
11
|
+
import { usePlanStore, type PlanScope } from '../../stores/plans';
|
|
12
|
+
import { eventDueDate, isCheckableEvent } from '../calendar';
|
|
13
|
+
import { planKey, planSourceLabel } from '../personal-plans';
|
|
14
|
+
|
|
15
|
+
const props = defineProps<{ scope: PlanScope | 'all' }>();
|
|
16
|
+
const emit = defineEmits<{ close: []; selectEvent: [key: string] }>();
|
|
17
|
+
|
|
18
|
+
const plans = usePlanStore();
|
|
19
|
+
const query = ref('');
|
|
20
|
+
const busyKey = ref('');
|
|
21
|
+
const error = ref('');
|
|
22
|
+
const searchInput = ref<HTMLInputElement>();
|
|
23
|
+
const previousFocus = document.activeElement as HTMLElement | null;
|
|
24
|
+
|
|
25
|
+
const archived = computed(() => {
|
|
26
|
+
const needle = query.value.trim().toLocaleLowerCase();
|
|
27
|
+
return plans
|
|
28
|
+
.recordsFor(props.scope)
|
|
29
|
+
.filter((record) => isPlanObject(record.object) && record.object.archived)
|
|
30
|
+
.filter(
|
|
31
|
+
(record) =>
|
|
32
|
+
!needle ||
|
|
33
|
+
`${record.object.name}\n${record.object.description}`
|
|
34
|
+
.toLocaleLowerCase()
|
|
35
|
+
.includes(needle),
|
|
36
|
+
)
|
|
37
|
+
.sort((a, b) => a.object.name.localeCompare(b.object.name, 'zh-CN'));
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
function dateLabel(record: ObjectRecord) {
|
|
41
|
+
const properties = record.object.properties;
|
|
42
|
+
if (typeof properties.date === 'string' && properties.date) return properties.date;
|
|
43
|
+
if (typeof properties.start === 'string' && properties.start) return properties.start.slice(0, 10);
|
|
44
|
+
const due = eventDueDate(record);
|
|
45
|
+
return due ? t('截止 {0}', [due]) : '';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async function restore(record: ObjectRecord) {
|
|
49
|
+
const key = planKey(record);
|
|
50
|
+
if (busyKey.value || !plans.canEdit(record)) return;
|
|
51
|
+
busyKey.value = key;
|
|
52
|
+
error.value = '';
|
|
53
|
+
try {
|
|
54
|
+
await plans.update(record, { ...record.object, archived: false });
|
|
55
|
+
} catch (reason) {
|
|
56
|
+
error.value = reason instanceof Error ? reason.message : String(reason);
|
|
57
|
+
} finally {
|
|
58
|
+
busyKey.value = '';
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function openItem(record: ObjectRecord) {
|
|
63
|
+
emit('selectEvent', planKey(record));
|
|
64
|
+
emit('close');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
onMounted(() => {
|
|
68
|
+
searchInput.value?.focus();
|
|
69
|
+
});
|
|
70
|
+
onBeforeUnmount(() => {
|
|
71
|
+
if (previousFocus?.isConnected) previousFocus.focus();
|
|
72
|
+
});
|
|
73
|
+
</script>
|
|
74
|
+
|
|
75
|
+
<template>
|
|
76
|
+
<div
|
|
77
|
+
v-surface-motion="'PlanArchiveDialog:0'"
|
|
78
|
+
class="modal-backdrop"
|
|
79
|
+
@mousedown.self="emit('close')"
|
|
80
|
+
@keydown.esc.stop.prevent="emit('close')"
|
|
81
|
+
>
|
|
82
|
+
<section
|
|
83
|
+
class="modal plan-archive-dialog"
|
|
84
|
+
role="dialog"
|
|
85
|
+
aria-modal="true"
|
|
86
|
+
:aria-label="t('已归档事项')"
|
|
87
|
+
>
|
|
88
|
+
<header class="plan-archive-header">
|
|
89
|
+
<div>
|
|
90
|
+
<h2><Archive :size="17" aria-hidden="true" />{{ t('已归档事项') }}</h2>
|
|
91
|
+
<p>{{ t('已归档的事件与任务不会出现在日历和计划列表中,可随时查看或恢复。') }}</p>
|
|
92
|
+
</div>
|
|
93
|
+
<button
|
|
94
|
+
type="button"
|
|
95
|
+
class="icon-button"
|
|
96
|
+
:aria-label="t('关闭')"
|
|
97
|
+
:data-tooltip="t('关闭 · Esc')"
|
|
98
|
+
@click="emit('close')"
|
|
99
|
+
>
|
|
100
|
+
<X :size="18" />
|
|
101
|
+
</button>
|
|
102
|
+
</header>
|
|
103
|
+
|
|
104
|
+
<div class="plan-archive-search">
|
|
105
|
+
<Search :size="15" aria-hidden="true" />
|
|
106
|
+
<input
|
|
107
|
+
ref="searchInput"
|
|
108
|
+
v-model="query"
|
|
109
|
+
type="search"
|
|
110
|
+
:aria-label="t('搜索已归档事项')"
|
|
111
|
+
:placeholder="t('搜索已归档的事件或任务…')"
|
|
112
|
+
/>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<p v-if="error" class="plan-archive-error" role="alert">{{ error }}</p>
|
|
116
|
+
|
|
117
|
+
<ul v-if="archived.length" class="plan-archive-list" :aria-label="t('已归档事项列表')">
|
|
118
|
+
<li v-for="record in archived" :key="planKey(record)" class="plan-archive-row">
|
|
119
|
+
<button
|
|
120
|
+
type="button"
|
|
121
|
+
class="plan-archive-open"
|
|
122
|
+
@click="openItem(record)"
|
|
123
|
+
>
|
|
124
|
+
<ListTodo v-if="isCheckableEvent(record)" :size="15" aria-hidden="true" />
|
|
125
|
+
<CalendarDays v-else :size="15" aria-hidden="true" />
|
|
126
|
+
<span class="plan-archive-info">
|
|
127
|
+
<strong>{{ record.object.name }}</strong>
|
|
128
|
+
<small v-if="scope === 'all' || dateLabel(record)">
|
|
129
|
+
<template v-if="scope === 'all'">{{ planSourceLabel(record) }}</template>
|
|
130
|
+
<template v-if="scope === 'all' && dateLabel(record)"> · </template>
|
|
131
|
+
<template v-if="dateLabel(record)">{{ dateLabel(record) }}</template>
|
|
132
|
+
</small>
|
|
133
|
+
</span>
|
|
134
|
+
</button>
|
|
135
|
+
<button
|
|
136
|
+
type="button"
|
|
137
|
+
class="plan-archive-restore"
|
|
138
|
+
:disabled="busyKey === planKey(record) || !plans.canEdit(record)"
|
|
139
|
+
@click="restore(record)"
|
|
140
|
+
>
|
|
141
|
+
<RotateCcw :size="13" aria-hidden="true" />{{
|
|
142
|
+
busyKey === planKey(record) ? t('恢复中…') : t('恢复')
|
|
143
|
+
}}
|
|
144
|
+
</button>
|
|
145
|
+
</li>
|
|
146
|
+
</ul>
|
|
147
|
+
<div v-else class="plan-archive-empty">
|
|
148
|
+
<Archive :size="24" :stroke-width="1.5" aria-hidden="true" />
|
|
149
|
+
<p>{{ query.trim() ? t('没有找到匹配的已归档事项。') : t('当前范围内没有已归档的事件或任务。') }}</p>
|
|
150
|
+
</div>
|
|
151
|
+
</section>
|
|
152
|
+
</div>
|
|
153
|
+
</template>
|
|
154
|
+
|
|
155
|
+
<style scoped>
|
|
156
|
+
.plan-archive-dialog {
|
|
157
|
+
width: min(520px, 100%);
|
|
158
|
+
max-height: min(640px, calc(100dvh - 40px));
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column;
|
|
161
|
+
gap: 12px;
|
|
162
|
+
}
|
|
163
|
+
.plan-archive-header {
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: flex-start;
|
|
166
|
+
justify-content: space-between;
|
|
167
|
+
gap: 12px;
|
|
168
|
+
}
|
|
169
|
+
.plan-archive-header h2 {
|
|
170
|
+
display: flex;
|
|
171
|
+
align-items: center;
|
|
172
|
+
gap: 8px;
|
|
173
|
+
margin: 0;
|
|
174
|
+
font-size: 16px;
|
|
175
|
+
}
|
|
176
|
+
.plan-archive-header p {
|
|
177
|
+
margin: 4px 0 0;
|
|
178
|
+
font-size: 12px;
|
|
179
|
+
color: var(--muted);
|
|
180
|
+
line-height: 1.5;
|
|
181
|
+
}
|
|
182
|
+
.plan-archive-search {
|
|
183
|
+
display: flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
gap: 8px;
|
|
186
|
+
padding: 0 10px;
|
|
187
|
+
border: 1px solid var(--line);
|
|
188
|
+
border-radius: 8px;
|
|
189
|
+
background: var(--surface);
|
|
190
|
+
color: var(--muted);
|
|
191
|
+
}
|
|
192
|
+
.plan-archive-search input {
|
|
193
|
+
flex: 1;
|
|
194
|
+
min-width: 0;
|
|
195
|
+
height: 34px;
|
|
196
|
+
border: 0;
|
|
197
|
+
background: transparent;
|
|
198
|
+
color: var(--text);
|
|
199
|
+
font: inherit;
|
|
200
|
+
font-size: 13px;
|
|
201
|
+
outline: none;
|
|
202
|
+
}
|
|
203
|
+
.plan-archive-error {
|
|
204
|
+
margin: 0;
|
|
205
|
+
font-size: 12px;
|
|
206
|
+
color: var(--danger);
|
|
207
|
+
}
|
|
208
|
+
.plan-archive-list {
|
|
209
|
+
list-style: none;
|
|
210
|
+
margin: 0;
|
|
211
|
+
padding: 0;
|
|
212
|
+
overflow-y: auto;
|
|
213
|
+
display: grid;
|
|
214
|
+
gap: 4px;
|
|
215
|
+
}
|
|
216
|
+
.plan-archive-row {
|
|
217
|
+
display: flex;
|
|
218
|
+
align-items: center;
|
|
219
|
+
gap: 8px;
|
|
220
|
+
padding: 6px 8px;
|
|
221
|
+
border-radius: 8px;
|
|
222
|
+
}
|
|
223
|
+
.plan-archive-row:hover {
|
|
224
|
+
background: var(--hover);
|
|
225
|
+
}
|
|
226
|
+
.plan-archive-open {
|
|
227
|
+
flex: 1;
|
|
228
|
+
min-width: 0;
|
|
229
|
+
display: flex;
|
|
230
|
+
align-items: center;
|
|
231
|
+
gap: 10px;
|
|
232
|
+
border: 0;
|
|
233
|
+
padding: 2px 0;
|
|
234
|
+
background: transparent;
|
|
235
|
+
color: var(--text);
|
|
236
|
+
text-align: left;
|
|
237
|
+
font: inherit;
|
|
238
|
+
cursor: pointer;
|
|
239
|
+
}
|
|
240
|
+
.plan-archive-open > svg {
|
|
241
|
+
flex: none;
|
|
242
|
+
color: var(--muted);
|
|
243
|
+
}
|
|
244
|
+
.plan-archive-info {
|
|
245
|
+
display: grid;
|
|
246
|
+
gap: 2px;
|
|
247
|
+
min-width: 0;
|
|
248
|
+
}
|
|
249
|
+
.plan-archive-info strong {
|
|
250
|
+
font-size: 13px;
|
|
251
|
+
font-weight: 500;
|
|
252
|
+
overflow: hidden;
|
|
253
|
+
text-overflow: ellipsis;
|
|
254
|
+
white-space: nowrap;
|
|
255
|
+
}
|
|
256
|
+
.plan-archive-info small {
|
|
257
|
+
font-size: 11px;
|
|
258
|
+
color: var(--muted);
|
|
259
|
+
}
|
|
260
|
+
.plan-archive-restore {
|
|
261
|
+
flex: none;
|
|
262
|
+
display: inline-flex;
|
|
263
|
+
align-items: center;
|
|
264
|
+
gap: 5px;
|
|
265
|
+
height: 28px;
|
|
266
|
+
padding: 0 10px;
|
|
267
|
+
border: 1px solid var(--line);
|
|
268
|
+
border-radius: 6px;
|
|
269
|
+
background: var(--paper);
|
|
270
|
+
color: var(--text);
|
|
271
|
+
font: inherit;
|
|
272
|
+
font-size: 12px;
|
|
273
|
+
cursor: pointer;
|
|
274
|
+
}
|
|
275
|
+
.plan-archive-restore:hover:not(:disabled) {
|
|
276
|
+
background: var(--surface);
|
|
277
|
+
border-color: var(--control-border);
|
|
278
|
+
}
|
|
279
|
+
.plan-archive-restore:disabled {
|
|
280
|
+
opacity: 0.5;
|
|
281
|
+
cursor: not-allowed;
|
|
282
|
+
}
|
|
283
|
+
.plan-archive-empty {
|
|
284
|
+
display: grid;
|
|
285
|
+
justify-items: center;
|
|
286
|
+
gap: 8px;
|
|
287
|
+
padding: 28px 16px;
|
|
288
|
+
color: var(--muted);
|
|
289
|
+
text-align: center;
|
|
290
|
+
font-size: 13px;
|
|
291
|
+
}
|
|
292
|
+
.plan-archive-empty p {
|
|
293
|
+
margin: 0;
|
|
294
|
+
}
|
|
295
|
+
</style>
|
|
@@ -172,11 +172,11 @@ watch(() => props.disabled, disabled => { if (disabled) pickerOpen.value = false
|
|
|
172
172
|
.plan-date-picker { position: relative; }
|
|
173
173
|
.plan-date-picker.with-leading { padding-left: 20px; border-left: 1px solid var(--line); }
|
|
174
174
|
.plan-date-field .plan-schedule-trigger { gap: 10px; min-height: 36px; padding: 4px 6px; border-radius: 6px; font-size: 15px; color: var(--text-secondary); }
|
|
175
|
-
.plan-date-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; min-width: 176px; padding:
|
|
175
|
+
.plan-date-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; min-width: 176px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--overlay-shadow, 0 6px 24px #0f0f0f1c); }
|
|
176
176
|
.with-leading .plan-date-menu { left: 20px; }
|
|
177
|
-
.plan-date-field .plan-date-menu button { display: flex; width: 100%; padding: 9px; gap: 10px; color: var(--text-secondary); font-size: 13px; text-align: left; }
|
|
177
|
+
.plan-date-field .plan-date-menu button { display: flex; width: 100%; padding: 8px 9px; gap: 10px; border-radius: 6px; color: var(--text-secondary); font-size: 13px; text-align: left; }
|
|
178
178
|
.plan-date-menu button span { flex: 1; }
|
|
179
|
-
.plan-date-field .plan-date-menu button[aria-checked='true'] { background: var(--accent); color: var(--
|
|
179
|
+
.plan-date-field .plan-date-menu button[aria-checked='true'] { background: var(--accent); color: var(--text); font-weight: 500; }
|
|
180
180
|
.plan-date-field button:hover:not(:disabled) { background: var(--hover); color: var(--text); }
|
|
181
181
|
.plan-date-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px; margin-top: 22px; }
|
|
182
182
|
.plan-date-inputs > label, .plan-date-input { display: grid; gap: 8px; min-width: 0; }
|
|
@@ -184,7 +184,9 @@ watch(() => props.disabled, disabled => { if (disabled) pickerOpen.value = false
|
|
|
184
184
|
.plan-date-precision { flex-shrink: 0; white-space: nowrap; }
|
|
185
185
|
.plan-date-field input { box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--paper); font: inherit; font-size: 14px; }
|
|
186
186
|
.plan-date-field :is(input, button):disabled { opacity: 0.55; cursor: not-allowed; }
|
|
187
|
-
.plan-date-field
|
|
187
|
+
.plan-date-field button:focus-visible { outline: 2px solid var(--focus-ring, var(--green)); outline-offset: 2px; }
|
|
188
|
+
.plan-date-field input:hover:not(:disabled) { border-color: var(--control-border); }
|
|
189
|
+
.plan-date-field input:focus-visible { outline: none; border-color: color-mix(in srgb, var(--text) 40%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent); }
|
|
188
190
|
.plan-date-field.is-compact .plan-date-heading { justify-content: space-between; gap: 8px; min-height: 28px; }
|
|
189
191
|
.plan-date-field.is-compact .plan-schedule-trigger { padding: 0; gap: 7px; min-height: 28px; font-size: 12px; }
|
|
190
192
|
.plan-date-field.is-compact .plan-schedule-trigger > svg:first-child { width: 15px; height: 15px; }
|