@tano.page/workbench 0.15.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 +35 -14
- package/src/App.vue +68 -797
- 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/AssistantPanel.vue +1 -1
- package/src/assistant/connection-actions.ts +237 -0
- package/src/assistant/document-mentions.ts +1 -33
- package/src/assistant/engine.ts +1 -585
- package/src/assistant/execution.ts +6 -33
- package/src/assistant/hash.ts +1 -4
- package/src/assistant/language.ts +10 -37
- package/src/assistant/plugin-bridge-builder.ts +146 -0
- package/src/assistant/prompts.ts +1 -65
- package/src/assistant/proposal-actions.ts +336 -0
- package/src/assistant/store.ts +87 -554
- package/src/assistant/structures.ts +1 -157
- package/src/assistant/tasks.ts +8 -94
- package/src/assistant/tool-rules.ts +1 -7
- package/src/composables/use-workbench-help.ts +177 -0
- package/src/composables/use-workbench-lifecycle.ts +249 -0
- package/src/composables/use-workbench-settings.ts +185 -0
- package/src/composables/use-workbench-shortcuts.ts +37 -1022
- package/src/composables/use-workbench-views.ts +325 -0
- package/src/documents/components/DocumentActionMenu.vue +279 -0
- 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/files/components/FileMetadataPanel.vue +49 -15
- package/src/i18n/locale-catalogs.ts +7 -6
- package/src/i18n/locale-registry.ts +8 -6
- package/src/i18n/locales/de-DE.json +23 -1
- package/src/i18n/locales/en-US.json +23 -1
- package/src/i18n/locales/es-ES.json +23 -1
- package/src/i18n/locales/ja-JP.json +23 -1
- package/src/i18n/locales/zh-TW.json +23 -1
- package/src/mail/components/MailAccountDialog.vue +1 -0
- package/src/mail/components/MailComposerDialog.vue +1 -0
- package/src/mail/components/MailWorkspaceView.vue +1 -0
- package/src/mail/components/SidebarMail.vue +1 -0
- package/src/objects/content-references.ts +6 -56
- package/src/objects/wiki-links.ts +1 -48
- package/src/objects/workspace-objects.ts +2 -3
- package/src/plans/calendar.ts +2 -2
- package/src/plans/components/CalendarAgendaView.vue +165 -0
- 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 +162 -2106
- package/src/plans/components/CalendarYearView.vue +138 -0
- package/src/plans/components/PlanConnectionsDialog.vue +1 -1
- 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/plugins/components/PluginDetailPage.vue +10 -6
- package/src/plugins/components/PluginDeveloperArea.vue +192 -0
- package/src/plugins/components/PluginExplorer.vue +6 -4
- package/src/plugins/components/PluginImportDialog.vue +1 -1
- package/src/plugins/components/PluginInstaller.vue +269 -178
- package/src/plugins/components/PluginMaintenance.vue +37 -49
- package/src/plugins/components/PluginRepositoryStorage.vue +4 -2
- package/src/plugins/components/PluginSettingsForm.vue +2 -1
- 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/plugin-data.ts +2 -3
- package/src/plugins/plugin-rpc-router.ts +558 -0
- package/src/plugins/plugin-sdk.ts +1 -260
- package/src/plugins/plugin-ui-dialogs.ts +167 -0
- package/src/plugins/queries.ts +1 -75
- package/src/plugins/view-header.ts +2 -7
- package/src/runtime.ts +3 -2
- 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/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/WorkbenchContextMenus.vue +37 -26
- package/src/shell/components/WorkbenchModals.vue +22 -18
- package/src/shell/components/WorkbenchPanes.vue +358 -1512
- package/src/shell/components/WorkbenchSidebar.vue +486 -0
- 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 +488 -1081
- package/src/shell/workbench-context.ts +30 -3
- package/src/stores/workspace-document-io.ts +807 -0
- package/src/stores/workspace-file-ops.ts +1 -1
- package/src/stores/workspace-knowledge.ts +1 -1
- package/src/stores/workspace-lifecycle.ts +459 -0
- package/src/stores/workspace-plugins-state.ts +71 -599
- package/src/stores/workspace-session.ts +287 -0
- package/src/stores/workspace-tabs-layout.ts +1 -1
- package/src/stores/workspace-types.ts +50 -0
- package/src/stores/workspace.ts +163 -1345
- package/src/styles.css +0 -1
- package/src/tabs/components/DesktopTabs.vue +19 -11
- 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/WorkspaceIconPicker.vue +5 -4
- package/src/workspace/components/WorkspacePickerMenu.vue +317 -0
- package/src/assistant/locales/de-DE.json +0 -129
- package/src/assistant/locales/en-US.json +0 -129
- package/src/assistant/locales/es-ES.json +0 -129
- package/src/assistant/locales/ja-JP.json +0 -129
- package/src/assistant/locales/zh-CN.json +0 -129
- package/src/assistant/locales/zh-TW.json +0 -129
- package/src/assistant/task-prompts.json +0 -39
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { t, uiLocale } from '../../i18n/i18n';
|
|
3
|
+
import type { ObjectRecord } from '../../objects/workspace-objects';
|
|
4
|
+
import { calendarDayEntries, localDayKey, monthDays } from '../calendar';
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
scrollingYears: readonly number[];
|
|
8
|
+
planned: readonly ObjectRecord[];
|
|
9
|
+
today: string;
|
|
10
|
+
weekdays: readonly string[];
|
|
11
|
+
dayPopoverKey?: string;
|
|
12
|
+
dayPopoverId: string;
|
|
13
|
+
}>();
|
|
14
|
+
|
|
15
|
+
const emit = defineEmits<{
|
|
16
|
+
'select-month': [date: Date];
|
|
17
|
+
'open-day-popover': [day: Date, event: MouseEvent];
|
|
18
|
+
}>();
|
|
19
|
+
|
|
20
|
+
const monthsForYear = (year: number) =>
|
|
21
|
+
Array.from({ length: 12 }, (_, month) => {
|
|
22
|
+
const date = new Date(year, month, 1);
|
|
23
|
+
return { date, days: monthDays(date) };
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const dayPopoverEntries = (day: Date) => calendarDayEntries(props.planned, day);
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<div class="calendar-year-view">
|
|
31
|
+
<section v-for="year in scrollingYears" :key="year" class="calendar-year-section" :data-year="year">
|
|
32
|
+
<h2 class="calendar-year-heading">{{ new Date(year, 0, 1).toLocaleDateString(uiLocale, { year: 'numeric' }) }}</h2>
|
|
33
|
+
<div class="calendar-year-grid">
|
|
34
|
+
<section v-for="month in monthsForYear(year)" :key="month.date.getMonth()" class="calendar-year-month">
|
|
35
|
+
<button type="button" class="calendar-year-month-title" @click="emit('select-month', month.date)">
|
|
36
|
+
{{ month.date.toLocaleDateString(uiLocale, { month: 'long' }) }}
|
|
37
|
+
</button>
|
|
38
|
+
<div class="calendar-year-weekdays" aria-hidden="true">
|
|
39
|
+
<span v-for="name in weekdays" :key="name">{{ name }}</span>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="calendar-year-days">
|
|
42
|
+
<template v-for="day in month.days" :key="localDayKey(day)">
|
|
43
|
+
<span v-if="day.getMonth() !== month.date.getMonth()" aria-hidden="true" />
|
|
44
|
+
<button
|
|
45
|
+
v-else
|
|
46
|
+
type="button"
|
|
47
|
+
:class="{ today: localDayKey(day) === today, selected: localDayKey(day) === dayPopoverKey }"
|
|
48
|
+
:aria-label="t('{0},{1} 个事件', [localDayKey(day), dayPopoverEntries(day).length])"
|
|
49
|
+
aria-haspopup="dialog"
|
|
50
|
+
:aria-expanded="localDayKey(day) === dayPopoverKey"
|
|
51
|
+
:aria-controls="localDayKey(day) === dayPopoverKey ? dayPopoverId : undefined"
|
|
52
|
+
@click="emit('open-day-popover', day, $event)"
|
|
53
|
+
>
|
|
54
|
+
<span class="calendar-year-date">{{ day.getDate() }}</span>
|
|
55
|
+
<i v-if="dayPopoverEntries(day).length" class="calendar-year-event-dot" aria-hidden="true" />
|
|
56
|
+
</button>
|
|
57
|
+
</template>
|
|
58
|
+
</div>
|
|
59
|
+
</section>
|
|
60
|
+
</div>
|
|
61
|
+
</section>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<style scoped>
|
|
66
|
+
.calendar-year-heading {
|
|
67
|
+
max-width: 1200px;
|
|
68
|
+
margin: 0 auto;
|
|
69
|
+
padding: 26px 28px 0;
|
|
70
|
+
color: var(--text);
|
|
71
|
+
font-size: 18px;
|
|
72
|
+
font-weight: 600;
|
|
73
|
+
}
|
|
74
|
+
.calendar-year-grid {
|
|
75
|
+
display: grid;
|
|
76
|
+
grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
|
|
77
|
+
gap: 12px 14px;
|
|
78
|
+
max-width: 1200px;
|
|
79
|
+
margin: 0 auto;
|
|
80
|
+
padding: 18px 20px 28px;
|
|
81
|
+
}
|
|
82
|
+
.calendar-year-month {
|
|
83
|
+
min-width: 0;
|
|
84
|
+
padding: 10px 8px 12px;
|
|
85
|
+
border-radius: 10px;
|
|
86
|
+
transition: background-color var(--motion-base) var(--ease-standard);
|
|
87
|
+
}
|
|
88
|
+
.calendar-year-month:hover { background: color-mix(in srgb, var(--surface) 45%, var(--paper)); }
|
|
89
|
+
.calendar-year-month-title {
|
|
90
|
+
margin: 0 0 8px;
|
|
91
|
+
padding: 3px 8px;
|
|
92
|
+
border-radius: 6px;
|
|
93
|
+
color: var(--text);
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
font-weight: 600;
|
|
96
|
+
}
|
|
97
|
+
.calendar-year-month-title:hover { background: var(--hover); color: var(--text); }
|
|
98
|
+
.calendar-year-weekdays,
|
|
99
|
+
.calendar-year-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
|
|
100
|
+
.calendar-year-weekdays span { padding-bottom: 4px; color: var(--muted); font-size: 10px; }
|
|
101
|
+
.calendar-year-days button,
|
|
102
|
+
.calendar-year-days > span { width: 28px; height: 28px; margin: auto; font-size: 11px; }
|
|
103
|
+
.calendar-year-days button {
|
|
104
|
+
display: grid;
|
|
105
|
+
place-items: center;
|
|
106
|
+
position: relative;
|
|
107
|
+
padding: 0;
|
|
108
|
+
border-radius: 50%;
|
|
109
|
+
color: var(--text-secondary);
|
|
110
|
+
font-variant-numeric: tabular-nums;
|
|
111
|
+
}
|
|
112
|
+
.calendar-year-days button:hover { background: none; }
|
|
113
|
+
.calendar-year-date {
|
|
114
|
+
display: grid;
|
|
115
|
+
place-items: center;
|
|
116
|
+
width: 22px;
|
|
117
|
+
height: 22px;
|
|
118
|
+
border-radius: 50%;
|
|
119
|
+
transition: background-color var(--motion-quick) var(--ease-standard), color var(--motion-quick) var(--ease-standard), scale var(--motion-spring) var(--ease-spring);
|
|
120
|
+
}
|
|
121
|
+
.calendar-year-days button:hover:not(.today) > .calendar-year-date { background: var(--hover); color: var(--text); }
|
|
122
|
+
.calendar-year-event-dot {
|
|
123
|
+
position: absolute;
|
|
124
|
+
bottom: 0;
|
|
125
|
+
left: 50%;
|
|
126
|
+
width: 4px;
|
|
127
|
+
height: 4px;
|
|
128
|
+
margin-left: -2px;
|
|
129
|
+
border-radius: 50%;
|
|
130
|
+
background: color-mix(in srgb, var(--text) 55%, var(--paper));
|
|
131
|
+
}
|
|
132
|
+
.calendar-year-days button.selected:not(.today) > .calendar-year-date { color: var(--text); background: var(--selected); box-shadow: inset 0 0 0 1px var(--control-border); }
|
|
133
|
+
.calendar-year-days button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
|
|
134
|
+
@media (max-width: 700px) {
|
|
135
|
+
.calendar-year-heading { padding: 18px 18px 0; }
|
|
136
|
+
.calendar-year-grid { padding: 12px; }
|
|
137
|
+
}
|
|
138
|
+
</style>
|
|
@@ -136,7 +136,7 @@ const time = (value?: string) => value ? new Date(value).toLocaleString(uiLocale
|
|
|
136
136
|
</article>
|
|
137
137
|
<p class="connection-note">{{ t('自动同步在应用打开时每 5 分钟进行。断开连接保留已下载的本地事项。') }}</p>
|
|
138
138
|
</section>
|
|
139
|
-
<section class="connection-import-row"><div class="connection-symbol"><FileUp :size="22" /></div><div><strong>{{ t('从文件导入') }}</strong><p>{{ kind === 'calendar' ? t('导入 .ics 日历文件,先预览再保存。') : t('导入 .ics
|
|
139
|
+
<section class="connection-import-row"><div class="connection-symbol"><FileUp :size="22" /></div><div><strong>{{ t('从文件导入') }}</strong><p>{{ kind === 'calendar' ? t('导入 .ics 日历文件,先预览再保存。') : t('导入 .ics 文件中的待办任务。') }}</p></div><button class="connection-outline" @click="file?.click()">{{ t('选择文件') }}</button></section>
|
|
140
140
|
<section class="connection-section"><h3>{{ kind === 'calendar' ? t('添加日历') : t('添加任务清单') }}</h3><p v-if="!sync.available" class="connection-note">{{ t('账号同步在桌面版中使用。当前可导入文件,数据仅保存在{0}。', [workspace.isDemo ? t('此浏览器') : t('当前设备')]) }}</p><div class="connection-providers"><button v-for="p in providerChoices" :key="p.id" :disabled="!sync.available || working" @click="chooseProvider(p.id)"><Cloud :size="20" /><span>{{ p.name }}</span><Plus :size="15" /></button></div></section>
|
|
141
141
|
<section v-if="savedAccounts.length" class="connection-section"><h3>{{ t('已授权账号') }}</h3><div v-for="a in savedAccounts" :key="a.id" class="connection-account"><span>{{ a.label }}</span><button :disabled="working || !!sync.busy" @click="run(() => selectAccount(a))">{{ t('选择清单') }}<ChevronRight :size="13" /></button><button :disabled="working || !!sync.busy || sync.connections.some(c => c.accountId === a.id)" @click="run(() => sync.removeAccount(a.id))">{{ t('移除授权') }}</button></div></section>
|
|
142
142
|
</template>
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/* ---- Calendar palette -----------------------------------------------------
|
|
2
|
+
Items read their colour from --tone: workspace items use the product ink,
|
|
3
|
+
personal items a quiet blue, deadlines amber, overdue the danger colour.
|
|
4
|
+
Fills and seams are mixed from the tone so every theme stays consistent. */
|
|
5
|
+
.calendar-shell {
|
|
6
|
+
--cal-ink: var(--text);
|
|
7
|
+
--cal-personal: #3d6cc9;
|
|
8
|
+
--cal-due: #b7791f;
|
|
9
|
+
--cal-overdue: var(--danger, #c24141);
|
|
10
|
+
--cal-radius: 6px;
|
|
11
|
+
--cal-today: color-mix(in srgb, var(--text) 2.5%, transparent);
|
|
12
|
+
--cal-lift: 0 1px 2px rgb(15 15 15 / 0.06), 0 6px 16px -6px rgb(15 15 15 / 0.18);
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
flex: 1;
|
|
16
|
+
min-height: 0;
|
|
17
|
+
min-width: 0;
|
|
18
|
+
background: var(--paper);
|
|
19
|
+
}
|
|
20
|
+
:root[data-theme='dark'] .calendar-shell {
|
|
21
|
+
--cal-personal: #86a6ea;
|
|
22
|
+
--cal-due: #d9b26a;
|
|
23
|
+
--cal-today: color-mix(in srgb, var(--text) 3.5%, transparent);
|
|
24
|
+
--cal-lift: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 20px -6px rgb(0 0 0 / 0.55);
|
|
25
|
+
}
|
|
26
|
+
.calendar-shell :where(.calendar-view-event, .calendar-view-date-event, .calendar-month-event, .calendar-agenda-row) {
|
|
27
|
+
--tone: var(--cal-ink);
|
|
28
|
+
}
|
|
29
|
+
.calendar-shell .is-personal { --tone: var(--cal-personal); }
|
|
30
|
+
.calendar-shell .is-due { --tone: var(--cal-due); }
|
|
31
|
+
.calendar-shell .is-overdue { --tone: var(--cal-overdue); }
|
|
32
|
+
|
|
33
|
+
/* ---- Scroll container ---------------------------------------------------- */
|
|
34
|
+
.calendar-view {
|
|
35
|
+
flex: 1;
|
|
36
|
+
min-height: 0;
|
|
37
|
+
overflow: auto;
|
|
38
|
+
background: var(--paper);
|
|
39
|
+
}
|
|
40
|
+
.calendar-view-timeline,
|
|
41
|
+
.calendar-view-month,
|
|
42
|
+
.calendar-view-year { overflow-anchor: none; }
|
|
43
|
+
/* Switching between views fades the new layout in instead of snapping. */
|
|
44
|
+
.calendar-shell :is(.calendar-view-inner, .calendar-month-view, .calendar-year-view, .calendar-agenda-view) {
|
|
45
|
+
animation: tano-fade-in var(--motion-base) var(--ease-standard);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* ---- Shared item pieces -------------------------------------------------- */
|
|
49
|
+
.calendar-shell .calendar-inline-check {
|
|
50
|
+
flex: none;
|
|
51
|
+
display: grid;
|
|
52
|
+
place-items: center;
|
|
53
|
+
width: 16px;
|
|
54
|
+
height: 16px;
|
|
55
|
+
padding: 0;
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
color: color-mix(in srgb, var(--tone, var(--text)) 55%, var(--muted));
|
|
58
|
+
}
|
|
59
|
+
.calendar-shell .calendar-inline-check:hover:not(:disabled) {
|
|
60
|
+
color: var(--tone, var(--text));
|
|
61
|
+
background: color-mix(in srgb, var(--tone, var(--text)) 12%, transparent);
|
|
62
|
+
}
|
|
63
|
+
/* Checks sit inside draggable items, which the global press motion skips. */
|
|
64
|
+
.calendar-shell .calendar-inline-check:active:not(:disabled) { scale: 0.86; }
|
|
65
|
+
.calendar-shell .calendar-inline-check:disabled { opacity: 0.45; cursor: not-allowed; }
|
|
66
|
+
.calendar-shell .is-completed .calendar-inline-check { color: var(--tone, var(--text)); }
|
|
67
|
+
.calendar-shell .calendar-due-flag { flex: none; color: var(--cal-due); }
|
|
68
|
+
.calendar-shell .is-overdue .calendar-due-flag { color: var(--cal-overdue); }
|
|
69
|
+
.calendar-shell .calendar-item-trigger {
|
|
70
|
+
flex: 1;
|
|
71
|
+
min-width: 0;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
text-overflow: ellipsis;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
text-align: left;
|
|
76
|
+
color: inherit;
|
|
77
|
+
font: inherit;
|
|
78
|
+
}
|
|
79
|
+
.calendar-shell .calendar-item-trigger:hover { color: inherit; }
|
|
80
|
+
.calendar-shell .calendar-item-time {
|
|
81
|
+
margin-right: 5px;
|
|
82
|
+
color: var(--muted);
|
|
83
|
+
font-variant-numeric: tabular-nums;
|
|
84
|
+
}
|
|
85
|
+
.calendar-shell .is-draggable { cursor: grab; }
|
|
86
|
+
.calendar-shell .is-draggable:active { cursor: grabbing; }
|
|
87
|
+
.calendar-shell .is-dragging { opacity: 0.38; }
|
|
88
|
+
.calendar-shell .is-completed .calendar-item-trigger,
|
|
89
|
+
.calendar-shell .is-completed .calendar-view-event-body strong,
|
|
90
|
+
.calendar-shell .is-completed .calendar-agenda-item span {
|
|
91
|
+
color: var(--muted);
|
|
92
|
+
text-decoration: line-through;
|
|
93
|
+
text-decoration-color: color-mix(in srgb, var(--muted) 70%, transparent);
|
|
94
|
+
}
|
|
95
|
+
.calendar-shell .is-overdue .calendar-item-trigger { color: color-mix(in srgb, var(--tone) 75%, var(--text)); }
|
|
96
|
+
|
|
97
|
+
/* Shared today pill */
|
|
98
|
+
.calendar-shell .calendar-view-day-heading.today strong,
|
|
99
|
+
.calendar-shell .calendar-month-date.today,
|
|
100
|
+
.calendar-shell .calendar-year-days button.today > .calendar-year-date {
|
|
101
|
+
color: var(--on-accent, white);
|
|
102
|
+
background: var(--green-fill);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Shared drop target highlight */
|
|
106
|
+
.calendar-shell .calendar-view-date-events.is-drop-target,
|
|
107
|
+
.calendar-shell .calendar-month-cell.is-drop-target {
|
|
108
|
+
background: color-mix(in srgb, var(--text) 5%, var(--paper));
|
|
109
|
+
box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 45%, transparent);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* All-day chips in the timeline header and every chip in the month grid. */
|
|
113
|
+
.calendar-shell :is(.calendar-view-date-event, .calendar-month-event) {
|
|
114
|
+
flex-shrink: 0;
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: 5px;
|
|
118
|
+
box-sizing: border-box;
|
|
119
|
+
height: 22px;
|
|
120
|
+
padding: 0 7px 0 5px;
|
|
121
|
+
border-radius: 5px;
|
|
122
|
+
background: color-mix(in srgb, var(--tone) 8%, var(--paper));
|
|
123
|
+
color: var(--text);
|
|
124
|
+
font-size: 11px;
|
|
125
|
+
line-height: 22px;
|
|
126
|
+
transition:
|
|
127
|
+
background-color var(--motion-quick) var(--ease-standard),
|
|
128
|
+
box-shadow var(--motion-base) var(--ease-standard),
|
|
129
|
+
opacity var(--motion-base) var(--ease-standard);
|
|
130
|
+
}
|
|
131
|
+
.calendar-shell :is(.calendar-view-date-event, .calendar-month-event):not(:has(.calendar-inline-check, .calendar-due-flag)) {
|
|
132
|
+
padding-left: 8px;
|
|
133
|
+
}
|
|
134
|
+
.calendar-shell :is(.calendar-view-date-event, .calendar-month-event):hover,
|
|
135
|
+
.calendar-shell :is(.calendar-view-date-event, .calendar-month-event):focus-within {
|
|
136
|
+
background: color-mix(in srgb, var(--tone) 14%, var(--paper));
|
|
137
|
+
}
|
|
138
|
+
.calendar-shell :is(.calendar-view-date-event, .calendar-month-event).is-due {
|
|
139
|
+
background: color-mix(in srgb, var(--tone) 7%, var(--paper));
|
|
140
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent);
|
|
141
|
+
}
|
|
142
|
+
.calendar-shell :is(.calendar-view-date-event, .calendar-month-event).is-due:hover {
|
|
143
|
+
background: color-mix(in srgb, var(--tone) 13%, var(--paper));
|
|
144
|
+
}
|
|
145
|
+
.calendar-shell :is(.calendar-view-date-event, .calendar-month-event).is-completed {
|
|
146
|
+
background: color-mix(in srgb, var(--tone) 4%, var(--paper));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* Shared checkbox styling for filter bar and quick-create dialog */
|
|
150
|
+
.calendar-filter-completed input,
|
|
151
|
+
.calendar-create-checkable input {
|
|
152
|
+
appearance: none;
|
|
153
|
+
position: relative;
|
|
154
|
+
flex: none;
|
|
155
|
+
width: 14px;
|
|
156
|
+
height: 14px;
|
|
157
|
+
margin: 0;
|
|
158
|
+
border: 1.5px solid var(--control-border);
|
|
159
|
+
border-radius: 4px;
|
|
160
|
+
background: var(--paper);
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
transition: background-color var(--motion-quick) var(--ease-standard), border-color var(--motion-quick) var(--ease-standard);
|
|
163
|
+
}
|
|
164
|
+
.calendar-filter-completed input::after,
|
|
165
|
+
.calendar-create-checkable input::after {
|
|
166
|
+
content: '';
|
|
167
|
+
position: absolute;
|
|
168
|
+
left: 3.5px;
|
|
169
|
+
top: 0.5px;
|
|
170
|
+
width: 3.5px;
|
|
171
|
+
height: 7px;
|
|
172
|
+
border: solid var(--on-accent, #fff);
|
|
173
|
+
border-width: 0 1.5px 1.5px 0;
|
|
174
|
+
rotate: 45deg;
|
|
175
|
+
scale: 0.4;
|
|
176
|
+
opacity: 0;
|
|
177
|
+
transition: scale var(--motion-spring) var(--ease-spring-bouncy), opacity var(--motion-quick) var(--ease-standard);
|
|
178
|
+
}
|
|
179
|
+
.calendar-filter-completed input:checked,
|
|
180
|
+
.calendar-create-checkable input:checked { border-color: var(--green-fill); background: var(--green-fill); }
|
|
181
|
+
.calendar-filter-completed input:checked::after,
|
|
182
|
+
.calendar-create-checkable input:checked::after { scale: 1; opacity: 1; }
|
|
183
|
+
.calendar-filter-completed:hover input:not(:checked),
|
|
184
|
+
.calendar-create-checkable:hover input:not(:checked, :disabled) { border-color: var(--text-secondary); }
|
|
185
|
+
.calendar-filter-completed input:focus-visible,
|
|
186
|
+
.calendar-create-checkable input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
|
187
|
+
|
|
188
|
+
@media (prefers-reduced-motion: reduce) {
|
|
189
|
+
.calendar-shell :is(.calendar-view-inner, .calendar-month-view, .calendar-year-view, .calendar-agenda-view, .calendar-view-event, .calendar-slot-preview, .calendar-error-banner) {
|
|
190
|
+
animation: none;
|
|
191
|
+
}
|
|
192
|
+
}
|