diff --git a/packages/kanban/src/components/Kanban.svelte b/packages/kanban/src/components/Kanban.svelte index 075edf6fa2..9a7d664e5d 100644 --- a/packages/kanban/src/components/Kanban.svelte +++ b/packages/kanban/src/components/Kanban.svelte @@ -361,9 +361,6 @@ padding: 1.5rem 2rem 0; } - .scrollable { - height: 100%; - } .card-container { background-color: var(--board-card-bg-color); border-radius: 0.25rem; diff --git a/packages/presentation/src/components/SpaceMultiBoxList.svelte b/packages/presentation/src/components/SpaceMultiBoxList.svelte index c4aacac293..fb8daf1dc1 100644 --- a/packages/presentation/src/components/SpaceMultiBoxList.svelte +++ b/packages/presentation/src/components/SpaceMultiBoxList.svelte @@ -66,7 +66,7 @@ {#if selectedItems.length > 0}
{#await translate(presentation.string.NumberSpaces, { count: selectedItems.length }) then text} - {text} + {text} {/await}
{/if} diff --git a/packages/presentation/src/components/SpaceSelect.svelte b/packages/presentation/src/components/SpaceSelect.svelte index 0db6580929..3c76b3606d 100644 --- a/packages/presentation/src/components/SpaceSelect.svelte +++ b/packages/presentation/src/components/SpaceSelect.svelte @@ -80,7 +80,7 @@ diff --git a/packages/presentation/src/components/UserBox.svelte b/packages/presentation/src/components/UserBox.svelte index 0492338db5..3b194a9cf7 100644 --- a/packages/presentation/src/components/UserBox.svelte +++ b/packages/presentation/src/components/UserBox.svelte @@ -123,7 +123,7 @@ {justify} on:click={_click} > - + {#if selected} {#if size === 'x-large'} @@ -146,7 +146,7 @@ {justify} on:click={_click} > - + {#if selected} {#if size === 'x-large' || size === 'large'} diff --git a/packages/presentation/src/components/UserBoxList.svelte b/packages/presentation/src/components/UserBoxList.svelte index 6004fd71e7..c7e7a67aab 100644 --- a/packages/presentation/src/components/UserBoxList.svelte +++ b/packages/presentation/src/components/UserBoxList.svelte @@ -78,10 +78,10 @@ > {#if persons.length > 0} -
+
{#await translate(presentation.string.NumberMembers, { count: persons.length }) then text} - {text} + {text} {/await}
{/if} diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 23b9587291..869c596baa 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -592,6 +592,8 @@ a.no-line { text-overflow: ellipsis; overflow: hidden; min-width: 0; + + &.disabled { pointer-events: none; } } .lines-limit-2, .lines-limit-4 { diff --git a/packages/theme/styles/dialogs.scss b/packages/theme/styles/dialogs.scss index 0a77459142..17db5bd9ec 100644 --- a/packages/theme/styles/dialogs.scss +++ b/packages/theme/styles/dialogs.scss @@ -104,6 +104,33 @@ border-radius: 0 0 .5rem .5rem; } + .antiCard-group { + padding: .5rem 1rem; + + &:not(:last-child) { border-bottom: 1px solid var(--popup-divider); } + &.grid { + display: grid; + grid-template-columns: 5rem auto; + grid-auto-rows: minmax(2rem, auto); + column-gap: .5rem; + + .label { + display: flex; + align-items: center; + text-align: left; + font-weight: 500; + font-size: .75rem; + line-height: .75rem; + color: var(--content-color); + } + .value { + display: flex; + align-items: center; + justify-content: flex-end; + } + } + } + &.dialog { width: 40rem; height: max-content; diff --git a/packages/ui/src/components/Button.svelte b/packages/ui/src/components/Button.svelte index 47cab7a391..838034e23a 100644 --- a/packages/ui/src/components/Button.svelte +++ b/packages/ui/src/components/Button.svelte @@ -120,13 +120,11 @@ {#if loading} {:else if label} - + {:else if $$slots.content} - - - + {/if} diff --git a/packages/ui/src/components/Dropdown.svelte b/packages/ui/src/components/Dropdown.svelte index 235b464ae5..86b18e65eb 100644 --- a/packages/ui/src/components/Dropdown.svelte +++ b/packages/ui/src/components/Dropdown.svelte @@ -58,7 +58,7 @@ } }} > - + {#if selected}{selected.label}{:else} diff --git a/packages/ui/src/components/DropdownLabels.svelte b/packages/ui/src/components/DropdownLabels.svelte index 8fdc98d056..8243f2c7ca 100644 --- a/packages/ui/src/components/DropdownLabels.svelte +++ b/packages/ui/src/components/DropdownLabels.svelte @@ -73,7 +73,7 @@ } }} > - + {#if selectedItem}{selectedItem.label}{:else} diff --git a/packages/ui/src/components/DropdownLabelsIntl.svelte b/packages/ui/src/components/DropdownLabelsIntl.svelte index 1a26a1e6dd..37e8a3a452 100644 --- a/packages/ui/src/components/DropdownLabelsIntl.svelte +++ b/packages/ui/src/components/DropdownLabelsIntl.svelte @@ -65,11 +65,12 @@ } }} > - + {#if selectedItem} diff --git a/packages/ui/src/components/DropdownRecord.svelte b/packages/ui/src/components/DropdownRecord.svelte new file mode 100644 index 0000000000..642444a6f9 --- /dev/null +++ b/packages/ui/src/components/DropdownRecord.svelte @@ -0,0 +1,46 @@ + + +
+ +
diff --git a/packages/ui/src/components/DropdownRecordPopup.svelte b/packages/ui/src/components/DropdownRecordPopup.svelte new file mode 100644 index 0000000000..e83c0bd6cf --- /dev/null +++ b/packages/ui/src/components/DropdownRecordPopup.svelte @@ -0,0 +1,83 @@ + + + +
+
+
+ + + {@const item = objects[idx]} + + + + +
+
+
diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts index 3eea89c7cd..3aedcc39bd 100644 --- a/packages/ui/src/index.ts +++ b/packages/ui/src/index.ts @@ -90,6 +90,7 @@ export { default as Dropdown } from './components/Dropdown.svelte' export { default as DropdownPopup } from './components/DropdownPopup.svelte' export { default as DropdownLabels } from './components/DropdownLabels.svelte' export { default as DropdownLabelsIntl } from './components/DropdownLabelsIntl.svelte' +export { default as DropdownRecord } from './components/DropdownRecord.svelte' export { default as ShowMore } from './components/ShowMore.svelte' export { default as Menu } from './components/Menu.svelte' export { default as TimeShiftPicker } from './components/TimeShiftPicker.svelte' diff --git a/plugins/contact-resources/src/components/OrganizationEditor.svelte b/plugins/contact-resources/src/components/OrganizationEditor.svelte index e6c1091c0b..3a1444e329 100644 --- a/plugins/contact-resources/src/components/OrganizationEditor.svelte +++ b/plugins/contact-resources/src/components/OrganizationEditor.svelte @@ -17,7 +17,8 @@ import { Ref } from '@anticrm/core' import { IntlString } from '@anticrm/platform' import { createQuery } from '@anticrm/presentation' - import { DropdownPopup, Label, showPopup } from '@anticrm/ui' + import { DropdownPopup, Label, showPopup, Button } from '@anticrm/ui' + import type { ButtonKind, ButtonSize } from '@anticrm/ui' import { ListItem } from '@anticrm/ui/src/types' import contact from '../plugin' import Company from './icons/Company.svelte' @@ -25,7 +26,11 @@ export let value: Ref | undefined export let label: IntlString = contact.string.Organization export let onChange: (value: any) => void - export let kind: 'no-border' | 'link' = 'no-border' + + export let kind: ButtonKind = 'no-border' + export let size: ButtonSize = 'small' + export let justify: 'left' | 'center' = 'center' + export let width: string | undefined = 'min-content' const query = createQuery() @@ -57,64 +62,47 @@ let opened: boolean = false const icon = Company - let container: HTMLElement + let tool: HTMLElement -
{ +
+
+ + {#if selected} +
+
+ {selected.label} +
+ {:else} + + {/if} +
+ diff --git a/plugins/recruit-resources/src/components/CreateApplication.svelte b/plugins/recruit-resources/src/components/CreateApplication.svelte index 9a6f57d94b..e0857bb7c5 100644 --- a/plugins/recruit-resources/src/components/CreateApplication.svelte +++ b/plugins/recruit-resources/src/components/CreateApplication.svelte @@ -292,7 +292,7 @@ ) }} > -
+
{#if selectedState}
{selectedState.title} diff --git a/plugins/recruit-resources/src/components/CreateCandidate.svelte b/plugins/recruit-resources/src/components/CreateCandidate.svelte index 36c90c94a8..b043a24198 100644 --- a/plugins/recruit-resources/src/components/CreateCandidate.svelte +++ b/plugins/recruit-resources/src/components/CreateCandidate.svelte @@ -537,7 +537,7 @@ }} > - {resume.name} + {resume.name} {:else} diff --git a/plugins/recruit-resources/src/components/YesNo.svelte b/plugins/recruit-resources/src/components/YesNo.svelte index e9e5beed4d..eeec7f0f80 100644 --- a/plugins/recruit-resources/src/components/YesNo.svelte +++ b/plugins/recruit-resources/src/components/YesNo.svelte @@ -46,7 +46,7 @@ }} > -
+
diff --git a/plugins/setting-resources/src/components/typeEditors/EnumSelect.svelte b/plugins/setting-resources/src/components/typeEditors/EnumSelect.svelte index ec805cdae5..729728e871 100644 --- a/plugins/setting-resources/src/components/typeEditors/EnumSelect.svelte +++ b/plugins/setting-resources/src/components/typeEditors/EnumSelect.svelte @@ -70,7 +70,7 @@ diff --git a/plugins/tags-resources/src/components/CreateTagElement.svelte b/plugins/tags-resources/src/components/CreateTagElement.svelte index 40c40afcd2..c989c4b1f2 100644 --- a/plugins/tags-resources/src/components/CreateTagElement.svelte +++ b/plugins/tags-resources/src/components/CreateTagElement.svelte @@ -113,7 +113,7 @@
diff --git a/plugins/tags-resources/src/components/TagsDropdownEditor.svelte b/plugins/tags-resources/src/components/TagsDropdownEditor.svelte index 6e0ff6ffff..b24d555dcf 100644 --- a/plugins/tags-resources/src/components/TagsDropdownEditor.svelte +++ b/plugins/tags-resources/src/components/TagsDropdownEditor.svelte @@ -85,7 +85,7 @@ > {#if items.length > 0} -
+
{#await translate(countLabel, { count: items.length }) then text} {text} {/await} diff --git a/plugins/task-resources/src/components/state/DoneStateEditor.svelte b/plugins/task-resources/src/components/state/DoneStateEditor.svelte index 6101372e92..ba100441e1 100644 --- a/plugins/task-resources/src/components/state/DoneStateEditor.svelte +++ b/plugins/task-resources/src/components/state/DoneStateEditor.svelte @@ -75,11 +75,11 @@ > {#if state} - +
{:else} -
+
-
{/if} diff --git a/plugins/task-resources/src/components/state/StateEditor.svelte b/plugins/task-resources/src/components/state/StateEditor.svelte index 4d1c53cee8..d74e79ae59 100644 --- a/plugins/task-resources/src/components/state/StateEditor.svelte +++ b/plugins/task-resources/src/components/state/StateEditor.svelte @@ -59,7 +59,7 @@ diff --git a/plugins/tracker-assets/assets/icons.svg b/plugins/tracker-assets/assets/icons.svg index 520b4e699a..60eadf80d0 100644 --- a/plugins/tracker-assets/assets/icons.svg +++ b/plugins/tracker-assets/assets/icons.svg @@ -77,7 +77,7 @@ - + diff --git a/plugins/tracker-resources/src/components/DropdownNative.svelte b/plugins/tracker-resources/src/components/DropdownNative.svelte deleted file mode 100644 index 4646393101..0000000000 --- a/plugins/tracker-resources/src/components/DropdownNative.svelte +++ /dev/null @@ -1,39 +0,0 @@ - - - - - diff --git a/plugins/tracker-resources/src/components/ProjectSelector.svelte b/plugins/tracker-resources/src/components/ProjectSelector.svelte index 89ca115ac5..9f97d079c6 100644 --- a/plugins/tracker-resources/src/components/ProjectSelector.svelte +++ b/plugins/tracker-resources/src/components/ProjectSelector.svelte @@ -104,7 +104,7 @@ > {#if projectText} - {projectText} + {projectText} {/if} diff --git a/plugins/tracker-resources/src/components/StatusSelector.svelte b/plugins/tracker-resources/src/components/StatusSelector.svelte index 6956c7d07b..73e8a98fd1 100644 --- a/plugins/tracker-resources/src/components/StatusSelector.svelte +++ b/plugins/tracker-resources/src/components/StatusSelector.svelte @@ -59,7 +59,7 @@ > {#if selectedStatusLabel} - {selectedStatusLabel} + {selectedStatusLabel} {/if} diff --git a/plugins/tracker-resources/src/components/issues/Issues.svelte b/plugins/tracker-resources/src/components/issues/Issues.svelte index 06b862261a..5690fea59e 100644 --- a/plugins/tracker-resources/src/components/issues/Issues.svelte +++ b/plugins/tracker-resources/src/components/issues/Issues.svelte @@ -448,13 +448,15 @@ {#if currentTeam} -
-
- {#if label} - {label} - {:else} -