diff --git a/models/model-rig/profiles/default/tsconfig.json b/models/model-rig/profiles/default/tsconfig.json index a12d687d00..6bc3c8fe3b 100644 --- a/models/model-rig/profiles/default/tsconfig.json +++ b/models/model-rig/profiles/default/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "esnext", + "target": "ES2018", "module": "commonjs", "declaration": true, "strict": true, diff --git a/packages/panel/src/components/Panel.svelte b/packages/panel/src/components/Panel.svelte index a6fd55b505..70e5217d5c 100644 --- a/packages/panel/src/components/Panel.svelte +++ b/packages/panel/src/components/Panel.svelte @@ -19,7 +19,7 @@ import type { Doc } from '@anticrm/core' import type { Asset } from '@anticrm/platform' import type { AnyComponent, AnySvelteComponent } from '@anticrm/ui' - import { Icon,IconClose,IconExpand, Component } from '@anticrm/ui' + import { Icon, IconClose, IconExpand, IconMoreH, Component, ActionIcon } from '@anticrm/ui' import { createEventDispatcher } from 'svelte' export let title: string @@ -36,15 +36,13 @@ {#if fullSize}
-
-
- {#if typeof (icon) === 'string'} - - {:else} - - {/if} +
+ +
+
{title}
+
Candidate pool name
-
{title}
+
{#if $$slots.subtitle}
{/if}
@@ -59,14 +57,14 @@ {:else}
-
- {#if typeof (icon) === 'string'} - - {:else} - - {/if} +
+
-
{title}
+
+
{title}
+
Candidate pool name
+
+
{#if $$slots.subtitle}
{/if} @@ -101,19 +99,10 @@ .header { flex-shrink: 0; - padding: 0 2.5rem 0 2rem; + padding: 0 2rem 0 2.5rem; height: 4rem; + color: var(--theme-content-accent-color); border-bottom: 1px solid var(--theme-dialog-divider); - - .icon { opacity: .6; } - .title { - flex-grow: 1; - margin-left: .5rem; - font-weight: 500; - font-size: 1rem; - color: var(--theme-caption-color); - user-select: none; - } } .subtitle { @@ -129,7 +118,9 @@ display: flex; flex-direction: column; - height: max-content; + height: max-content; + + .header { padding: 0 6rem 0 2.5rem; } } .fullSize { @@ -164,15 +155,10 @@ right: 2rem; .tool { - margin-left: .75rem; - opacity: .4; + margin-left: 1rem; + color: var(--theme-content-accent-color); cursor: pointer; - - .icon { - transform-origin: center center; - transform: scale(.75); - } - &:hover { opacity: 1; } + &:hover { color: var(--theme-caption-color); } } } diff --git a/packages/presentation/src/components/Channels.svelte b/packages/presentation/src/components/Channels.svelte index 0b68e55b66..9ad18a32a4 100644 --- a/packages/presentation/src/components/Channels.svelte +++ b/packages/presentation/src/components/Channels.svelte @@ -82,7 +82,7 @@ {#each displayItems as item}
{ dispatch('click', item) }}> - +
{/each} diff --git a/packages/theme/styles/_colors.scss b/packages/theme/styles/_colors.scss index 227d12fb0f..7a1620634d 100644 --- a/packages/theme/styles/_colors.scss +++ b/packages/theme/styles/_colors.scss @@ -74,6 +74,8 @@ --theme-border-modal: rgba(0, 0, 0, 0.2); --theme-chat-selection: radial-gradient(135.96% 3333.35% at -2.36% -27.63%, rgba(210, 183, 156, 0.11) 0%, rgba(204, 196, 184, 0.0785128) 20.8%, rgba(104, 104, 114, 0.11) 100%); --theme-chat-divider: rgb(36, 36, 41); + --theme-incoming-msg: rgba(67, 67, 72, .3); + --theme-outcoming-msg: rgba(67, 67, 72, .6); --theme-card-bg: rgba(222, 222, 240, .2); --theme-card-bg-dark: rgba(222, 222, 240, .1); @@ -150,6 +152,8 @@ --theme-border-modal: rgba(0, 0, 0, 0.2); --theme-chat-selection: radial-gradient(135.96% 3333.35% at -2.36% -27.63%, rgba(210, 183, 156, 0.11) 0%, rgba(204, 196, 184, 0.0785128) 20.8%, rgba(104, 104, 114, 0.11) 100%); --theme-chat-divider: rgb(66, 65, 76); + --theme-incoming-msg: rgba(67, 67, 72, .3); + --theme-outcoming-msg: rgba(67, 67, 72, .6); --theme-card-bg: rgba(222, 222, 240, .2); --theme-card-bg-dark: rgba(222, 222, 240, .1); @@ -225,6 +229,8 @@ --theme-border-modal: rgba(0, 0, 0, 0.2); --theme-chat-selection: radial-gradient(135.96% 3333.35% at -2.36% -27.63%, rgba(210, 183, 156, 0.11) 0%, rgba(204, 196, 184, 0.0785128) 20.8%, rgba(104, 104, 114, 0.11) 100%); --theme-chat-divider: rgb(233, 233, 233); + --theme-incoming-msg: rgba(67, 67, 72, .3); + --theme-outcoming-msg: rgba(67, 67, 72, .6); --theme-card-bg: rgba(255, 255, 255, .6); --theme-card-bg-dark: rgba(255, 255, 255, .3); diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 5b347ccc0d..845ed108c6 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -143,6 +143,7 @@ p:last-child { margin-block-end: 0; } align-items: stretch; } .justify-between { justify-content: space-between; } +.justify-end { justify-content: flex-end; } .safari-gap-1 { & > * { margin-right: .25rem; } @@ -186,9 +187,11 @@ p:last-child { margin-block-end: 0; } .ml-2 { margin-left: .5rem; } .ml-3 { margin-left: .75rem; } .ml-4 { margin-left: 1rem; } +.ml-6 { margin-left: 1.5rem; } .mr-1 { margin-right: .25rem; } .mr-2 { margin-right: .5rem; } .mr-4 { margin-right: 1rem; } +.mr-6 { margin-right: 1.5rem; } .mr-8 { margin-right: 2rem; } .mt-2 { margin-top: .5rem; } .mt-5 { margin-top: 1.25rem; } diff --git a/packages/ui/src/components/ActionIcon.svelte b/packages/ui/src/components/ActionIcon.svelte index 7bfe3cd330..10c804729c 100644 --- a/packages/ui/src/components/ActionIcon.svelte +++ b/packages/ui/src/components/ActionIcon.svelte @@ -20,48 +20,44 @@ import Icon from './Icon.svelte' import Tooltip from './Tooltip.svelte' - export let label: IntlString + export let label: IntlString = '' as IntlString export let direction: TooltipAligment | undefined = undefined export let icon: Asset | AnySvelteComponent export let size: 'small' | 'medium' | 'large' - export let action: (ev?: Event) => Promise | void + export let action: (ev?: Event) => Promise | void = async () => { } export let invisible: boolean = false diff --git a/packages/ui/src/components/CircleButton.svelte b/packages/ui/src/components/CircleButton.svelte index 83ce85d24d..99855a51a7 100644 --- a/packages/ui/src/components/CircleButton.svelte +++ b/packages/ui/src/components/CircleButton.svelte @@ -61,6 +61,7 @@ &.selected { background-color: var(--theme-button-bg-hovered); } &.transparent { background-color: rgba(31, 31, 37, .3); } &.primary { + color: var(--primary-button-color); background-color: var(--primary-button-enabled); border-color: var(--primary-button-border); &:hover { background-color: var(--primary-button-hovered); } diff --git a/packages/ui/src/components/icons/Expand.svelte b/packages/ui/src/components/icons/Expand.svelte index 8f677fdd1c..c46fe7705d 100644 --- a/packages/ui/src/components/icons/Expand.svelte +++ b/packages/ui/src/components/icons/Expand.svelte @@ -1,6 +1,6 @@ diff --git a/packages/ui/src/components/icons/Share.svelte b/packages/ui/src/components/icons/Share.svelte index 92e7ee3df0..a88899c62e 100644 --- a/packages/ui/src/components/icons/Share.svelte +++ b/packages/ui/src/components/icons/Share.svelte @@ -1,6 +1,6 @@ diff --git a/plugins/activity-resources/src/components/Activity.svelte b/plugins/activity-resources/src/components/Activity.svelte index b31af55d09..1ff93b47d9 100644 --- a/plugins/activity-resources/src/components/Activity.svelte +++ b/plugins/activity-resources/src/components/Activity.svelte @@ -56,8 +56,8 @@ {#if fullSize}
-
-
Activity
+
+
Activity
@@ -78,8 +78,8 @@
-
-
Activity
+
+
Activity
{#if txes} @@ -103,15 +103,12 @@ border-bottom: 1px solid var(--theme-card-divider); .icon { - opacity: 0.6; - } - .title { - flex-grow: 1; - margin-left: 0.5rem; - font-weight: 500; - font-size: 1rem; + margin-right: 1rem; + width: 2.25rem; + height: 2.25rem; color: var(--theme-caption-color); - user-select: none; + background-color: var(--primary-button-enabled); + border-radius: 50%; } } .activity { @@ -133,7 +130,7 @@ .right-content { flex-grow: 1; - padding: 2.25rem 2.5rem 0; + padding: 1.5rem 2.5rem 0; background-color: var(--theme-dialog-accent); } diff --git a/plugins/recruit-resources/src/components/CandidateCard.svelte b/plugins/recruit-resources/src/components/CandidateCard.svelte index f30f7c58ad..0d116efb16 100644 --- a/plugins/recruit-resources/src/components/CandidateCard.svelte +++ b/plugins/recruit-resources/src/components/CandidateCard.svelte @@ -27,8 +27,8 @@ {#if candidate}
{formatName(candidate.name)}
-
{candidate.title}
-
{candidate.city}
+
{candidate.title ?? ''}
+
{candidate.city ?? ''}
{/if}
diff --git a/plugins/recruit-resources/src/components/VacancyCard.svelte b/plugins/recruit-resources/src/components/VacancyCard.svelte index b65c1cc014..5f99ecb543 100644 --- a/plugins/recruit-resources/src/components/VacancyCard.svelte +++ b/plugins/recruit-resources/src/components/VacancyCard.svelte @@ -27,7 +27,7 @@
{#if vacancy}
{vacancy.name}
-
{vacancy.description}
+
{vacancy.description ?? ''}
{/if}
diff --git a/plugins/recruit-resources/src/components/icons/Contact.svelte b/plugins/recruit-resources/src/components/icons/Contact.svelte index 102018834c..9066476ee1 100644 --- a/plugins/recruit-resources/src/components/icons/Contact.svelte +++ b/plugins/recruit-resources/src/components/icons/Contact.svelte @@ -16,7 +16,7 @@ diff --git a/plugins/telegram-resources/src/components/Chat.svelte b/plugins/telegram-resources/src/components/Chat.svelte index d1ca49a952..bf1e0294c2 100644 --- a/plugins/telegram-resources/src/components/Chat.svelte +++ b/plugins/telegram-resources/src/components/Chat.svelte @@ -21,7 +21,7 @@ import type { TelegramMessage } from '@anticrm/telegram' import type { Contact, EmployeeAccount } from '@anticrm/contact' import contact from '@anticrm/contact' - import { ActionIcon, IconShare, Button, Grid, ScrollBox, showPopup } from '@anticrm/ui' + import { ActionIcon, IconShare, Button, Grid, ScrollBox, showPopup, CircleButton } from '@anticrm/ui' import Message from './Message.svelte' import TelegramIcon from './icons/Telegram.svelte' import { getCurrentAccount, Ref, Space } from '@anticrm/core' @@ -181,15 +181,14 @@
-
-
-
Telegram
-
-
- { selectable = !selectable }} /> +
+
+
Telegram
+
You and Anastasia
+ { selectable = !selectable }} />
-
+
{#if messages} @@ -210,18 +209,18 @@ {selected.length} messages selected
-
-
{:else if enabled} - + {:else}
-
@@ -231,34 +230,34 @@ diff --git a/plugins/telegram-resources/src/components/Date.svelte b/plugins/telegram-resources/src/components/Date.svelte index b33f7f4b5c..e39776640f 100644 --- a/plugins/telegram-resources/src/components/Date.svelte +++ b/plugins/telegram-resources/src/components/Date.svelte @@ -20,18 +20,18 @@ -
+
{new Intl.DateTimeFormat('default', { day: 'numeric', month: 'long' }).format(message.modifiedOn)}
diff --git a/plugins/telegram-resources/src/components/Message.svelte b/plugins/telegram-resources/src/components/Message.svelte index 022ba644d2..a178de39f0 100644 --- a/plugins/telegram-resources/src/components/Message.svelte +++ b/plugins/telegram-resources/src/components/Message.svelte @@ -41,48 +41,32 @@ const dispatch = createEventDispatcher() -
{ dispatch('select', message) }}> -
- {#if name} -
{formatName(name)}
- {/if} -
-
-
{new Date(message.modifiedOn).toLocaleString('default', { hour: 'numeric', minute: 'numeric'})}
+
{ dispatch('select', message) }}> +
+
+ +
+
+
{new Date(message.modifiedOn).toLocaleString('default', { hour: 'numeric', minute: 'numeric'})}
+
{#if selectable} -
- -
+
{/if}
diff --git a/plugins/telegram-resources/src/components/icons/Telegram.svelte b/plugins/telegram-resources/src/components/icons/Telegram.svelte index e2673862f7..32271c6b1e 100644 --- a/plugins/telegram-resources/src/components/icons/Telegram.svelte +++ b/plugins/telegram-resources/src/components/icons/Telegram.svelte @@ -16,7 +16,7 @@ diff --git a/plugins/workbench-resources/src/components/NavHeader.svelte b/plugins/workbench-resources/src/components/NavHeader.svelte index 03e523df68..01ded05c12 100644 --- a/plugins/workbench-resources/src/components/NavHeader.svelte +++ b/plugins/workbench-resources/src/components/NavHeader.svelte @@ -19,26 +19,17 @@ import workbench from '../plugin' export let label: IntlString - export let action: () => Promise | void + // export let action: () => Promise | void -
- - + diff --git a/plugins/workbench-resources/src/components/SpaceHeader.svelte b/plugins/workbench-resources/src/components/SpaceHeader.svelte index 30dc360d02..3514cb73f6 100644 --- a/plugins/workbench-resources/src/components/SpaceHeader.svelte +++ b/plugins/workbench-resources/src/components/SpaceHeader.svelte @@ -61,8 +61,8 @@ grid-auto-columns: min-content; gap: .75rem; align-items: center; - padding: 0 2rem 0 2.5rem; - height: 4.5rem; - min-height: 4.5rem; + padding: 0 1.75rem 0 2.5rem; + height: 4rem; + min-height: 4rem; } diff --git a/plugins/workbench-resources/src/components/Workbench.svelte b/plugins/workbench-resources/src/components/Workbench.svelte index d9a52027d2..4841a74868 100644 --- a/plugins/workbench-resources/src/components/Workbench.svelte +++ b/plugins/workbench-resources/src/components/Workbench.svelte @@ -113,7 +113,7 @@ {#if navigator && visibileNav}
{#if currentApplication} - {}} /> + {/if}