diff --git a/packages/presentation/src/components/Channels.svelte b/packages/presentation/src/components/Channels.svelte index 72397a02a5..f3590f2b1f 100644 --- a/packages/presentation/src/components/Channels.svelte +++ b/packages/presentation/src/components/Channels.svelte @@ -163,6 +163,7 @@ padding: 1rem; top: 2.25rem; right: 0; + min-width: 100%; background-color: var(--theme-button-bg-focused); border: 1px solid var(--theme-button-border-enabled); border-radius: .75rem; diff --git a/packages/presentation/src/components/Panel.svelte b/packages/presentation/src/components/Panel.svelte new file mode 100644 index 0000000000..eb9bb73d51 --- /dev/null +++ b/packages/presentation/src/components/Panel.svelte @@ -0,0 +1,178 @@ + + + + +
+
+ +
+
+
+ {#if typeof (icon) === 'string'} + + {:else} + + {/if} +
+
+
+
+ +
+
+ +
+
+
+
Activity
+
+
+ +
+
+ +
+
{ fullSize = !fullSize }}>
+
{ dispatch('close') }}>
+
+
+ + \ No newline at end of file diff --git a/packages/presentation/src/index.ts b/packages/presentation/src/index.ts index d5cccbc911..d44aed3cf1 100644 --- a/packages/presentation/src/index.ts +++ b/packages/presentation/src/index.ts @@ -23,3 +23,4 @@ export { default as MessageViewer } from './components/MessageViewer.svelte' export { default as AttributeEditor } from './components/AttributeEditor.svelte' export { default as Card } from './components/Card.svelte' export { default as Channels } from './components/Channels.svelte' +export { default as Panel } from './components/Panel.svelte' diff --git a/packages/ui/src/components/PopupInstance.svelte b/packages/ui/src/components/PopupInstance.svelte index 7aca119c82..60d6eee5f4 100644 --- a/packages/ui/src/components/PopupInstance.svelte +++ b/packages/ui/src/components/PopupInstance.svelte @@ -57,6 +57,11 @@ $: { modalHTML.style.top = '4rem' modalHTML.style.bottom = '4rem' modalHTML.style.right = '4rem' + } else if (element === 'full') { + modalHTML.style.top = '0' + modalHTML.style.bottom = '0' + modalHTML.style.left = '0' + modalHTML.style.right = '0' } } else { modalHTML.style.top = '50%' diff --git a/packages/ui/src/components/icons/Activity.svelte b/packages/ui/src/components/icons/Activity.svelte new file mode 100644 index 0000000000..2bb24a2e7f --- /dev/null +++ b/packages/ui/src/components/icons/Activity.svelte @@ -0,0 +1,10 @@ + + + + + + + diff --git a/packages/ui/src/components/icons/Close.svelte b/packages/ui/src/components/icons/Close.svelte index 1897290eed..d4cc4bcaaf 100644 --- a/packages/ui/src/components/icons/Close.svelte +++ b/packages/ui/src/components/icons/Close.svelte @@ -3,6 +3,6 @@ const fill: string = 'var(--theme-caption-color)' - - + + diff --git a/packages/ui/src/components/icons/Expand.svelte b/packages/ui/src/components/icons/Expand.svelte new file mode 100644 index 0000000000..8f677fdd1c --- /dev/null +++ b/packages/ui/src/components/icons/Expand.svelte @@ -0,0 +1,9 @@ + + + + + + diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts index 88e30e6221..a1085931af 100644 --- a/packages/ui/src/index.ts +++ b/packages/ui/src/index.ts @@ -66,6 +66,8 @@ export { default as IconMoreH } from './components/icons/MoreH.svelte' export { default as IconFile } from './components/icons/File.svelte' export { default as IconAttachment } from './components/icons/Attachment.svelte' export { default as IconThread } from './components/icons/Thread.svelte' +export { default as IconExpand } from './components/icons/Expand.svelte' +export { default as IconActivity } from './components/icons/Activity.svelte' export * from './utils' diff --git a/packages/ui/src/types.ts b/packages/ui/src/types.ts index 265b5109c4..767f00a728 100644 --- a/packages/ui/src/types.ts +++ b/packages/ui/src/types.ts @@ -54,7 +54,7 @@ export interface Tab { export type TabModel = Tab[] -export type PopupAlignment = HTMLElement | 'right' | 'float' +export type PopupAlignment = HTMLElement | 'right' | 'float' | 'full' export type TooltipAligment = 'top' | 'bottom' | 'left' | 'right' diff --git a/plugins/contact-resources/src/components/PersonPresenter.svelte b/plugins/contact-resources/src/components/PersonPresenter.svelte index 3621e9ae40..c57089e736 100644 --- a/plugins/contact-resources/src/components/PersonPresenter.svelte +++ b/plugins/contact-resources/src/components/PersonPresenter.svelte @@ -29,7 +29,7 @@ async function onClick() { const clazz = hierarchy.getClass(value._class) const editorMixin = hierarchy.as(clazz, view.mixin.ObjectEditor) const editor = await getResource(editorMixin.editor) - showPopup(editor, { object: value }, 'float') + showPopup(editor, { object: value }, 'full') } diff --git a/plugins/recruit-resources/src/components/EditCandidate.svelte b/plugins/recruit-resources/src/components/EditCandidate.svelte index 15642a0309..937a942d38 100644 --- a/plugins/recruit-resources/src/components/EditCandidate.svelte +++ b/plugins/recruit-resources/src/components/EditCandidate.svelte @@ -17,9 +17,10 @@ import { createEventDispatcher } from 'svelte' import type { Ref, Space, Doc } from '@anticrm/core' import { Tabs } from '@anticrm/ui' - import { getClient } from '@anticrm/presentation' + import { getClient, Panel } from '@anticrm/presentation' import type { Candidate } from '@anticrm/recruit' import DialogHeader from './DialogHeader.svelte' + import Contact from './icons/Contact.svelte' import chunter from '@anticrm/chunter' @@ -97,28 +98,32 @@ -
+ + + { dispatch('close') }}> + + diff --git a/plugins/recruit-resources/src/components/icons/Contact.svelte b/plugins/recruit-resources/src/components/icons/Contact.svelte new file mode 100644 index 0000000000..102018834c --- /dev/null +++ b/plugins/recruit-resources/src/components/icons/Contact.svelte @@ -0,0 +1,26 @@ + + + + + + + + +