@tano.page/workbench 0.14.0 → 0.16.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 +50 -16
- package/src/App.vue +82 -752
- 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/agent-identities.ts +1 -97
- package/src/assistant/agent-task-context.ts +1 -54
- package/src/assistant/attachments.ts +1 -1
- package/src/assistant/completion.ts +1 -61
- package/src/assistant/components/AssistantChangeList.vue +98 -21
- package/src/assistant/components/AssistantPanel.vue +425 -8
- package/src/assistant/components/PluginToolProposalCard.vue +235 -0
- package/src/assistant/connection-actions.ts +237 -0
- package/src/assistant/document-mentions.ts +1 -33
- package/src/assistant/engine.ts +1 -532
- package/src/assistant/execution.ts +6 -33
- package/src/assistant/files.ts +5 -13
- package/src/assistant/hash.ts +1 -4
- package/src/assistant/inbox.ts +1 -148
- package/src/assistant/language.ts +10 -37
- package/src/assistant/mention-autocomplete.ts +69 -0
- package/src/assistant/plugin-bridge-builder.ts +146 -0
- package/src/assistant/prompts.ts +1 -58
- package/src/assistant/proposal-actions.ts +336 -0
- package/src/assistant/results.ts +20 -86
- package/src/assistant/store.ts +167 -327
- package/src/assistant/structures.ts +1 -155
- package/src/assistant/tasks.ts +8 -96
- package/src/assistant/tool-rules.ts +1 -7
- 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-help.ts +177 -0
- package/src/composables/use-workbench-history.ts +2 -4
- package/src/composables/use-workbench-lifecycle.ts +249 -0
- package/src/composables/use-workbench-modals.ts +6 -1
- package/src/composables/use-workbench-outline.ts +0 -5
- package/src/composables/use-workbench-settings.ts +185 -0
- package/src/composables/use-workbench-shortcuts.ts +40 -1021
- package/src/composables/use-workbench-views.ts +325 -0
- package/src/data-tables/data-tables.ts +1 -2
- package/src/documents/components/DocumentActionMenu.vue +279 -0
- package/src/documents/components/DocumentHistoryPanel.vue +3 -1
- package/src/documents/components/DocumentInspector.vue +168 -0
- package/src/documents/components/DocumentPane.vue +482 -0
- package/src/documents/description-merge.ts +1 -9
- package/src/features.ts +1 -0
- package/src/files/components/FileMetadataPanel.vue +49 -15
- 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/locale-catalogs.ts +7 -6
- package/src/i18n/locale-registry.ts +8 -6
- package/src/i18n/locales/de-DE.json +371 -3
- package/src/i18n/locales/en-US.json +371 -2
- package/src/i18n/locales/es-ES.json +371 -3
- package/src/i18n/locales/ja-JP.json +370 -2
- package/src/i18n/locales/zh-TW.json +370 -2
- package/src/mail/components/MailAccountDialog.vue +450 -0
- package/src/mail/components/MailComposerDialog.vue +326 -0
- package/src/mail/components/MailProviderIcon.vue +30 -0
- package/src/mail/components/MailWorkspaceView.vue +821 -0
- package/src/mail/components/SidebarMail.vue +134 -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/content-references.ts +6 -56
- package/src/objects/wiki-links.ts +1 -48
- package/src/objects/workspace-objects.ts +3 -4
- package/src/plan-sync/types.ts +6 -3
- package/src/plans/calendar-interaction.ts +194 -0
- package/src/plans/calendar.ts +65 -9
- package/src/plans/components/CalendarAgendaView.vue +165 -0
- package/src/plans/components/CalendarDayPopover.vue +172 -39
- package/src/plans/components/CalendarFilterBar.vue +128 -0
- package/src/plans/components/CalendarMonthView.vue +224 -0
- package/src/plans/components/CalendarQuickCreateDialog.vue +269 -0
- package/src/plans/components/CalendarTimelineView.vue +517 -0
- package/src/plans/components/CalendarTopbarControls.vue +101 -0
- package/src/plans/components/CalendarView.vue +264 -748
- package/src/plans/components/CalendarYearView.vue +138 -0
- package/src/plans/components/PlanArchiveDialog.vue +295 -0
- package/src/plans/components/PlanConnectionsDialog.vue +1 -1
- 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/components/calendar-shared.css +192 -0
- package/src/plans/composables/use-calendar-interactions.ts +396 -0
- package/src/plans/composables/use-calendar-scroll.ts +420 -0
- 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 +136 -57
- package/src/plugins/components/PluginDeveloperArea.vue +192 -0
- package/src/plugins/components/PluginDocumentSlot.vue +63 -0
- package/src/plugins/components/PluginExplorer.vue +21 -25
- package/src/plugins/components/PluginImportDialog.vue +410 -0
- package/src/plugins/components/PluginInstaller.vue +273 -288
- package/src/plugins/components/PluginListItem.vue +3 -0
- package/src/plugins/components/PluginMaintenance.vue +37 -34
- package/src/plugins/components/PluginRepositoryStorage.vue +4 -2
- package/src/plugins/components/PluginRuntimePanel.vue +3 -3
- package/src/plugins/components/PluginSettingsForm.vue +112 -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/components/PluginsTabPage.vue +61 -0
- package/src/plugins/components/plugin-center.css +5 -0
- package/src/plugins/data.ts +9 -86
- package/src/plugins/editor-plugin-adapters.ts +169 -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-data.ts +2 -3
- package/src/plugins/plugin-permissions.ts +57 -0
- package/src/plugins/plugin-rpc-router.ts +558 -0
- package/src/plugins/plugin-sdk.ts +1 -94
- package/src/plugins/plugin-ui-dialogs.ts +167 -0
- 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 +1 -73
- 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/view-header.ts +2 -7
- 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 +103 -4
- package/src/settings/components/SettingsAppearancePage.vue +46 -0
- package/src/settings/components/SettingsDocumentsPage.vue +0 -1
- package/src/settings/components/SettingsPanel.vue +8 -3
- package/src/settings/components/WorkbenchSettings.vue +20 -7
- package/src/settings/components/settings-context.ts +1 -1
- package/src/settings/components/settings-search.ts +2 -3
- package/src/settings/settings-tab.ts +1 -0
- package/src/shell/command-palette.ts +3 -3
- package/src/shell/components/EditorToolbar.vue +8 -9
- package/src/shell/components/EditorTools.vue +1 -5
- package/src/shell/components/PaneTopbar.vue +393 -0
- package/src/shell/components/SelectionToolbar.vue +0 -2
- package/src/shell/components/SidebarNavigation.vue +22 -2
- package/src/shell/components/WorkbenchContextMenus.vue +58 -34
- package/src/shell/components/WorkbenchModals.vue +47 -62
- package/src/shell/components/WorkbenchPanes.vue +371 -1342
- package/src/shell/components/WorkbenchSidebar.vue +486 -0
- package/src/shell/components/WorkspaceBreadcrumb.vue +6 -14
- package/src/shell/components/WorkspaceViewSwitcher.vue +12 -7
- package/src/shell/pane-registry.ts +69 -0
- package/src/shell/use-surface-dismissal.ts +219 -0
- package/src/shell/use-workbench-commands.ts +599 -0
- package/src/shell/use-workbench-keybindings.ts +337 -0
- package/src/shell/use-workbench.ts +531 -1153
- package/src/shell/workbench-async-components.ts +14 -5
- package/src/shell/workbench-context.ts +30 -3
- 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-document-io.ts +807 -0
- package/src/stores/workspace-file-ops.ts +1 -1
- package/src/stores/workspace-knowledge.ts +2 -114
- package/src/stores/workspace-lifecycle.ts +459 -0
- package/src/stores/workspace-plugins-state.ts +254 -259
- package/src/stores/workspace-session.ts +287 -0
- package/src/stores/workspace-tabs-layout.ts +6 -44
- package/src/stores/workspace-types.ts +50 -0
- package/src/stores/workspace.ts +184 -1363
- 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 +0 -1
- package/src/tabs/components/DesktopTabs.vue +19 -14
- package/src/tabs/components/NewTabPicker.vue +10 -4
- package/src/tabs/tab-label.ts +0 -1
- package/src/windows/AuxiliaryWindows.vue +2 -2
- package/src/windows/use-window-event-bridge.ts +152 -0
- package/src/workspace/components/TemplateLibrary.vue +1 -1
- package/src/workspace/components/WorkspaceGeneralSettings.vue +0 -13
- package/src/workspace/components/WorkspaceIconPicker.vue +30 -7
- package/src/workspace/components/WorkspacePickerMenu.vue +317 -0
- package/src/workspace/workspace-comments.ts +11 -151
- package/src/workspace/workspace-welcome.ts +1 -1
- package/src/assistant/locales/de-DE.json +0 -126
- package/src/assistant/locales/en-US.json +0 -126
- package/src/assistant/locales/es-ES.json +0 -126
- package/src/assistant/locales/ja-JP.json +0 -126
- package/src/assistant/locales/zh-CN.json +0 -126
- package/src/assistant/locales/zh-TW.json +0 -126
- package/src/assistant/task-prompts.json +0 -39
- 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,269 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { nextTick, ref, useId, watch } from 'vue';
|
|
3
|
+
import { CalendarDays, FolderOpen, ListTodo, X } from 'lucide-vue-next';
|
|
4
|
+
import { vSurfaceMotion } from '@tano/editor/surface-motion';
|
|
5
|
+
import { t } from '../../i18n/i18n';
|
|
6
|
+
import { useWindowContext } from '../../windows/context';
|
|
7
|
+
import type { PlanScope } from '../../stores/plans';
|
|
8
|
+
import type { PlanDateValue } from '../plan-date';
|
|
9
|
+
import PlanDateField from './PlanDateField.vue';
|
|
10
|
+
|
|
11
|
+
export interface QuickCreateDraft {
|
|
12
|
+
name: string;
|
|
13
|
+
checkable: boolean;
|
|
14
|
+
planDate: PlanDateValue;
|
|
15
|
+
scope: PlanScope;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const props = defineProps<{
|
|
19
|
+
draft?: QuickCreateDraft;
|
|
20
|
+
saving: boolean;
|
|
21
|
+
error: string;
|
|
22
|
+
defaultDate: string;
|
|
23
|
+
canCreateWorkspace: boolean;
|
|
24
|
+
canCreatePersonal: boolean;
|
|
25
|
+
}>();
|
|
26
|
+
|
|
27
|
+
const emit = defineEmits<{
|
|
28
|
+
close: [];
|
|
29
|
+
submit: [];
|
|
30
|
+
}>();
|
|
31
|
+
|
|
32
|
+
const { document } = useWindowContext();
|
|
33
|
+
const nameInput = ref<HTMLInputElement>();
|
|
34
|
+
const scopeId = useId();
|
|
35
|
+
|
|
36
|
+
watch(
|
|
37
|
+
() => props.draft,
|
|
38
|
+
async (draft) => {
|
|
39
|
+
if (!draft) return;
|
|
40
|
+
await nextTick();
|
|
41
|
+
nameInput.value?.focus();
|
|
42
|
+
},
|
|
43
|
+
);
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
<template>
|
|
47
|
+
<Teleport :to="document.body">
|
|
48
|
+
<div
|
|
49
|
+
v-if="draft"
|
|
50
|
+
v-surface-motion="'CalendarView:create'"
|
|
51
|
+
class="calendar-create-backdrop"
|
|
52
|
+
@mousedown.self="emit('close')"
|
|
53
|
+
>
|
|
54
|
+
<section
|
|
55
|
+
class="calendar-create-dialog"
|
|
56
|
+
role="dialog"
|
|
57
|
+
aria-modal="true"
|
|
58
|
+
:aria-label="t('新建事件')"
|
|
59
|
+
@keydown.esc.stop.prevent="emit('close')"
|
|
60
|
+
>
|
|
61
|
+
<header>
|
|
62
|
+
<h2>{{ t('新建事件') }}</h2>
|
|
63
|
+
<button type="button" class="calendar-create-close" :aria-label="t('关闭')" :disabled="saving" @click="emit('close')">
|
|
64
|
+
<X :size="16" />
|
|
65
|
+
</button>
|
|
66
|
+
</header>
|
|
67
|
+
<form @submit.prevent="emit('submit')">
|
|
68
|
+
<input
|
|
69
|
+
ref="nameInput"
|
|
70
|
+
v-model="draft.name"
|
|
71
|
+
class="calendar-create-title"
|
|
72
|
+
:aria-label="t('事件名称')"
|
|
73
|
+
:placeholder="t('记下一件事…')"
|
|
74
|
+
autocomplete="off"
|
|
75
|
+
required
|
|
76
|
+
maxlength="200"
|
|
77
|
+
:disabled="saving"
|
|
78
|
+
/>
|
|
79
|
+
<div class="calendar-create-properties">
|
|
80
|
+
<div class="calendar-create-row calendar-create-time">
|
|
81
|
+
<span class="calendar-create-label"><CalendarDays :size="15" aria-hidden="true" />{{ t('时间安排') }}</span>
|
|
82
|
+
<PlanDateField
|
|
83
|
+
v-model="draft.planDate"
|
|
84
|
+
:default-date="defaultDate"
|
|
85
|
+
:required="!draft.checkable"
|
|
86
|
+
:disabled="saving"
|
|
87
|
+
compact
|
|
88
|
+
/>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="calendar-create-row">
|
|
91
|
+
<span class="calendar-create-label"><ListTodo :size="15" aria-hidden="true" />{{ t('类型') }}</span>
|
|
92
|
+
<label class="calendar-create-checkable">
|
|
93
|
+
<input v-model="draft.checkable" type="checkbox" :disabled="saving" />
|
|
94
|
+
<span>{{ t('需要完成') }}</span>
|
|
95
|
+
</label>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="calendar-create-row">
|
|
98
|
+
<label class="calendar-create-label" :for="scopeId"><FolderOpen :size="15" aria-hidden="true" />{{ t('保存到') }}</label>
|
|
99
|
+
<select :id="scopeId" v-model="draft.scope" class="calendar-create-scope" :disabled="saving">
|
|
100
|
+
<option value="workspace" :disabled="!canCreateWorkspace">{{ t('工作区') }}</option>
|
|
101
|
+
<option value="personal" :disabled="!canCreatePersonal">{{ t('个人') }}</option>
|
|
102
|
+
</select>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
<p v-if="error" class="calendar-create-error" role="alert">{{ error }}</p>
|
|
106
|
+
<footer>
|
|
107
|
+
<button type="button" :disabled="saving" @click="emit('close')">{{ t('取消') }}</button>
|
|
108
|
+
<button type="submit" class="calendar-create-submit" :disabled="saving || !draft.name.trim()">
|
|
109
|
+
{{ saving ? t('保存中…') : t('创建') }}
|
|
110
|
+
</button>
|
|
111
|
+
</footer>
|
|
112
|
+
</form>
|
|
113
|
+
</section>
|
|
114
|
+
</div>
|
|
115
|
+
</Teleport>
|
|
116
|
+
</template>
|
|
117
|
+
|
|
118
|
+
<style scoped>
|
|
119
|
+
/* ---- Quick create dialog (teleported: keep its own tokens) ------------------ */
|
|
120
|
+
.calendar-create-backdrop {
|
|
121
|
+
position: fixed;
|
|
122
|
+
inset: 0;
|
|
123
|
+
z-index: 80;
|
|
124
|
+
display: grid;
|
|
125
|
+
place-items: center;
|
|
126
|
+
padding: 16px;
|
|
127
|
+
background: #161a2233;
|
|
128
|
+
backdrop-filter: blur(3px);
|
|
129
|
+
}
|
|
130
|
+
.calendar-create-dialog {
|
|
131
|
+
--create-label: 92px;
|
|
132
|
+
width: min(520px, 100%);
|
|
133
|
+
padding: 16px 20px 18px;
|
|
134
|
+
border: 1px solid var(--line);
|
|
135
|
+
border-radius: var(--radius-dialog, 14px);
|
|
136
|
+
background: var(--paper);
|
|
137
|
+
color: var(--text);
|
|
138
|
+
box-shadow: var(--dialog-shadow, 0 16px 48px #0003);
|
|
139
|
+
}
|
|
140
|
+
.calendar-create-dialog header {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
justify-content: space-between;
|
|
144
|
+
gap: 12px;
|
|
145
|
+
margin-bottom: 6px;
|
|
146
|
+
}
|
|
147
|
+
.calendar-create-dialog h2 { margin: 0; color: var(--text-secondary); font-size: 12px; font-weight: 500; }
|
|
148
|
+
.calendar-create-close {
|
|
149
|
+
display: grid;
|
|
150
|
+
place-items: center;
|
|
151
|
+
width: 28px;
|
|
152
|
+
height: 28px;
|
|
153
|
+
margin-right: -6px;
|
|
154
|
+
border-radius: 7px;
|
|
155
|
+
color: var(--muted);
|
|
156
|
+
}
|
|
157
|
+
.calendar-create-close:hover:not(:disabled) { background: var(--hover); color: var(--text); }
|
|
158
|
+
.calendar-create-title {
|
|
159
|
+
box-sizing: border-box;
|
|
160
|
+
width: calc(100% + 16px);
|
|
161
|
+
margin: 0 -8px 10px;
|
|
162
|
+
padding: 6px 8px;
|
|
163
|
+
border: 1px solid transparent;
|
|
164
|
+
border-radius: 8px;
|
|
165
|
+
background: transparent;
|
|
166
|
+
color: var(--text);
|
|
167
|
+
font: inherit;
|
|
168
|
+
font-size: 20px;
|
|
169
|
+
font-weight: 600;
|
|
170
|
+
line-height: 1.4;
|
|
171
|
+
}
|
|
172
|
+
.calendar-create-title::placeholder { color: var(--muted); opacity: 0.7; font-weight: 500; }
|
|
173
|
+
.calendar-create-title:hover:not(:disabled, :focus) { background: var(--hover); }
|
|
174
|
+
.calendar-create-title:focus,
|
|
175
|
+
.calendar-create-title:focus-visible { outline: none; background: transparent; }
|
|
176
|
+
.calendar-create-properties { display: grid; gap: 4px; padding: 12px 0 4px; border-top: 1px solid var(--line); }
|
|
177
|
+
.calendar-create-row { display: grid; grid-template-columns: var(--create-label) minmax(0, 1fr); column-gap: 12px; align-items: start; min-width: 0; }
|
|
178
|
+
.calendar-create-label { display: flex; align-items: center; gap: 8px; min-height: 32px; color: var(--muted); font-size: 13px; }
|
|
179
|
+
.calendar-create-label svg { flex: none; }
|
|
180
|
+
.calendar-create-dialog .calendar-create-scope,
|
|
181
|
+
.calendar-create-dialog .calendar-create-time :deep(.plan-date-field input) {
|
|
182
|
+
box-sizing: border-box;
|
|
183
|
+
height: 32px;
|
|
184
|
+
min-width: 140px;
|
|
185
|
+
max-width: 100%;
|
|
186
|
+
justify-self: start;
|
|
187
|
+
margin: 0;
|
|
188
|
+
padding: 0 8px;
|
|
189
|
+
border: 1px solid transparent;
|
|
190
|
+
border-radius: 6px;
|
|
191
|
+
background-color: transparent;
|
|
192
|
+
color: var(--text);
|
|
193
|
+
font: inherit;
|
|
194
|
+
font-size: 13px;
|
|
195
|
+
transition: background-color var(--motion-quick) var(--ease-standard), border-color var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard);
|
|
196
|
+
}
|
|
197
|
+
.calendar-create-dialog .calendar-create-time :deep(.plan-date-field input) { width: auto; }
|
|
198
|
+
.calendar-create-dialog .calendar-create-scope {
|
|
199
|
+
appearance: none;
|
|
200
|
+
padding-right: 26px;
|
|
201
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8985' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
202
|
+
background-repeat: no-repeat;
|
|
203
|
+
background-position: right 8px center;
|
|
204
|
+
cursor: pointer;
|
|
205
|
+
}
|
|
206
|
+
.calendar-create-dialog .calendar-create-scope:hover:not(:disabled, :focus),
|
|
207
|
+
.calendar-create-dialog .calendar-create-time :deep(.plan-date-field input:hover:not(:disabled, :focus)) { border-color: transparent; background-color: var(--hover); }
|
|
208
|
+
.calendar-create-dialog .calendar-create-scope:focus-visible,
|
|
209
|
+
.calendar-create-dialog .calendar-create-time :deep(.plan-date-field input:focus-visible) {
|
|
210
|
+
outline: none;
|
|
211
|
+
border-color: color-mix(in srgb, var(--text) 35%, var(--line));
|
|
212
|
+
background-color: var(--paper);
|
|
213
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 7%, transparent);
|
|
214
|
+
}
|
|
215
|
+
.calendar-create-time :deep(.plan-date-field.is-compact .plan-date-heading) { justify-content: flex-start; gap: 2px; min-height: 32px; }
|
|
216
|
+
.calendar-create-time :deep(.plan-date-field.is-compact .plan-schedule-trigger) { gap: 4px; min-height: 32px; padding: 0 6px 0 8px; border-radius: 6px; color: var(--text); font-size: 13px; }
|
|
217
|
+
.calendar-create-time :deep(.plan-date-field.is-compact .plan-schedule-trigger > svg:first-child) { display: none; }
|
|
218
|
+
.calendar-create-time :deep(.plan-date-field.is-compact .plan-schedule-trigger > svg:last-child) { color: var(--muted); }
|
|
219
|
+
.calendar-create-time :deep(.plan-date-field.is-compact .compact-precision) { color: var(--muted); border-radius: 6px; }
|
|
220
|
+
.calendar-create-time :deep(.plan-date-field.is-compact .plan-date-inputs) { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 4px; }
|
|
221
|
+
.calendar-create-time :deep(.plan-date-field.is-compact .plan-date-input) { display: grid; gap: 0; }
|
|
222
|
+
.calendar-create-time :deep(.plan-date-field.is-compact .plan-date-label) { min-height: 0; padding: 2px 9px 0; }
|
|
223
|
+
.calendar-create-time :deep(.plan-date-field.is-compact .plan-date-label label) { font-size: 11px; color: var(--muted); }
|
|
224
|
+
.calendar-create-checkable {
|
|
225
|
+
display: inline-flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
justify-self: start;
|
|
228
|
+
gap: 7px;
|
|
229
|
+
min-height: 32px;
|
|
230
|
+
padding: 0 8px;
|
|
231
|
+
border-radius: 6px;
|
|
232
|
+
font-size: 13px;
|
|
233
|
+
color: var(--text);
|
|
234
|
+
cursor: pointer;
|
|
235
|
+
user-select: none;
|
|
236
|
+
transition: background-color var(--motion-quick) var(--ease-standard);
|
|
237
|
+
}
|
|
238
|
+
.calendar-create-checkable:hover { background: var(--hover); }
|
|
239
|
+
.calendar-create-error { margin: 10px 0 0; color: var(--danger, #c24141); font-size: 12px; }
|
|
240
|
+
.calendar-create-dialog footer {
|
|
241
|
+
display: flex;
|
|
242
|
+
justify-content: flex-end;
|
|
243
|
+
gap: 8px;
|
|
244
|
+
margin-top: 14px;
|
|
245
|
+
padding-top: 14px;
|
|
246
|
+
border-top: 1px solid var(--line);
|
|
247
|
+
}
|
|
248
|
+
.calendar-create-dialog footer button {
|
|
249
|
+
min-height: 32px;
|
|
250
|
+
padding: 0 14px;
|
|
251
|
+
border: 1px solid var(--line);
|
|
252
|
+
border-radius: 7px;
|
|
253
|
+
color: var(--text-secondary);
|
|
254
|
+
font-size: 13px;
|
|
255
|
+
}
|
|
256
|
+
.calendar-create-dialog footer button:hover:not(:disabled) { background: var(--hover); color: var(--text); }
|
|
257
|
+
.calendar-create-dialog footer .calendar-create-submit {
|
|
258
|
+
min-width: 72px;
|
|
259
|
+
border-color: transparent;
|
|
260
|
+
background: var(--green-fill);
|
|
261
|
+
color: var(--on-accent, #fff);
|
|
262
|
+
font-weight: 500;
|
|
263
|
+
}
|
|
264
|
+
.calendar-create-dialog footer .calendar-create-submit:hover:not(:disabled) { background: var(--green-fill-hover); color: var(--on-accent, #fff); }
|
|
265
|
+
.calendar-create-dialog footer .calendar-create-submit:disabled { opacity: 1; background: var(--hover); color: var(--muted); }
|
|
266
|
+
@media (max-width: 700px) {
|
|
267
|
+
.calendar-create-row { grid-template-columns: minmax(0, 1fr); }
|
|
268
|
+
}
|
|
269
|
+
</style>
|