diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index bdcf41dd64..2ecd601587 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -90,6 +90,8 @@ table { p:first-child { margin-block-start: 0; } // First and last padding p:last-child { margin-block-end: 0; } +// .popup .tr-body:hover { background-color: transparent !important; } // Remove highlights table rows in popups + /* Flex */ .flex { display: flex; } .inline-flex { display: inline-flex; } @@ -183,6 +185,10 @@ p:last-child { margin-block-end: 0; } .icon { margin-right: .25rem; color: var(--theme-content-dark-color); + &.small-size { + width: 1.5rem; + height: 1.5rem; + } } &:hover .icon { color: var(--theme-caption-color); } } diff --git a/packages/ui/src/components/Dropdown.svelte b/packages/ui/src/components/Dropdown.svelte index 59c07dd85f..a554bf5a66 100644 --- a/packages/ui/src/components/Dropdown.svelte +++ b/packages/ui/src/components/Dropdown.svelte @@ -29,9 +29,9 @@ export let icon: Asset | AnySvelteComponent = Add export let label: IntlString - export let placeholder: IntlString + export let placeholder: string export let items: ListItem[] = [{ item: tesla, label: 'Tesla' }, { item: google, label: 'Google' }] - export let selected: ListItem | undefined + export let selected: ListItem | undefined = undefined export let show: boolean = false let btn: HTMLElement @@ -73,7 +73,7 @@
- {#if selected}{selected.label}{:else}
diff --git a/packages/ui/src/components/PopupInstance.svelte b/packages/ui/src/components/PopupInstance.svelte index e0f732976d..1358b21040 100644 --- a/packages/ui/src/components/PopupInstance.svelte +++ b/packages/ui/src/components/PopupInstance.svelte @@ -48,7 +48,8 @@ show = false modalHTML.style.left = modalHTML.style.right = modalHTML.style.top = modalHTML.style.bottom = '' if (typeof element !== 'string') { - const rect = element.getBoundingClientRect() + let el: HTMLElement = element as HTMLElement + const rect = el.getBoundingClientRect() const rectPopup = modalHTML.getBoundingClientRect() // Vertical if (rect.bottom + rectPopup.height + 28 <= document.body.clientHeight) diff --git a/packages/ui/src/types.ts b/packages/ui/src/types.ts index 2229201cdd..e82d449a80 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' | 'account' | 'full' +export type PopupAlignment = HTMLElement | EventTarget | null | 'right' | 'float' | 'account' | 'full' export type TooltipAligment = 'top' | 'bottom' | 'left' | 'right' diff --git a/plugins/attachment-assets/lang/en.json b/plugins/attachment-assets/lang/en.json index 9d98a20cfe..1005646234 100644 --- a/plugins/attachment-assets/lang/en.json +++ b/plugins/attachment-assets/lang/en.json @@ -2,6 +2,7 @@ "string": { "UploadDropFilesHere": "Upload or drop files here", "NoAttachments": "There are no attachments for this", - "AddAttachment": "uploaded an attachment" + "AddAttachment": "uploaded an attachment", + "Attachments": "Attachments" } } \ No newline at end of file diff --git a/plugins/attachment-resources/src/components/Attachments.svelte b/plugins/attachment-resources/src/components/Attachments.svelte index f282222a96..98c4268a7a 100644 --- a/plugins/attachment-resources/src/components/Attachments.svelte +++ b/plugins/attachment-resources/src/components/Attachments.svelte @@ -27,7 +27,7 @@ export let space: Ref export let _class: Ref> - export let attachments: number + export let attachments: number | undefined = undefined let inputFile: HTMLInputElement let loading = 0 diff --git a/plugins/attachment-resources/src/components/AttachmentsPresenter.svelte b/plugins/attachment-resources/src/components/AttachmentsPresenter.svelte index bc368259b9..ff15c01f4f 100644 --- a/plugins/attachment-resources/src/components/AttachmentsPresenter.svelte +++ b/plugins/attachment-resources/src/components/AttachmentsPresenter.svelte @@ -18,13 +18,14 @@ import type { Doc } from '@anticrm/core' import { Tooltip, IconAttachment } from '@anticrm/ui' import AttachmentPopup from './AttachmentPopup.svelte' + import attachment from '../plugin' export let value: Doc & { attachments?: number } {#if value && value.attachments && value.attachments > 0} - +
 {value.attachments}
diff --git a/plugins/attachment-resources/src/plugin.ts b/plugins/attachment-resources/src/plugin.ts index 1d9e1e585c..98708e60b8 100644 --- a/plugins/attachment-resources/src/plugin.ts +++ b/plugins/attachment-resources/src/plugin.ts @@ -21,6 +21,7 @@ import attachment, { attachmentId } from '@anticrm/attachment' export default mergeIds(attachmentId, attachment, { string: { NoAttachments: '' as IntlString, - UploadDropFilesHere: '' as IntlString + UploadDropFilesHere: '' as IntlString, + Attachments: '' as IntlString } }) diff --git a/plugins/chunter-resources/package.json b/plugins/chunter-resources/package.json index bd3f52f073..f30b26d666 100644 --- a/plugins/chunter-resources/package.json +++ b/plugins/chunter-resources/package.json @@ -9,7 +9,8 @@ "build:docs": "api-extractor run --local", "lint": "svelte-check && eslint", "lint:fix": "eslint --fix src", - "format": "prettier --write --plugin-search-dir=. src && eslint --fix src" + "format": "prettier --write --plugin-search-dir=. src && eslint --fix src", + "svelte-check": "svelte-check" }, "devDependencies": { "svelte-loader": "^3.1.2", diff --git a/plugins/chunter-resources/src/components/ChannelSeparator.svelte b/plugins/chunter-resources/src/components/ChannelSeparator.svelte index 1d06ab2498..aed03c7a0c 100644 --- a/plugins/chunter-resources/src/components/ChannelSeparator.svelte +++ b/plugins/chunter-resources/src/components/ChannelSeparator.svelte @@ -14,7 +14,7 @@ --> {#if isPerson(value)} - + {:else} {/if} diff --git a/plugins/contact-resources/src/components/Contacts.svelte b/plugins/contact-resources/src/components/Contacts.svelte index 10a2101a92..35a2bc9f7b 100644 --- a/plugins/contact-resources/src/components/Contacts.svelte +++ b/plugins/contact-resources/src/components/Contacts.svelte @@ -63,6 +63,7 @@ + diff --git a/plugins/contact-resources/src/components/CreateOrganization.svelte b/plugins/contact-resources/src/components/CreateOrganization.svelte index efc681505d..f4d4c53ffb 100644 --- a/plugins/contact-resources/src/components/CreateOrganization.svelte +++ b/plugins/contact-resources/src/components/CreateOrganization.svelte @@ -15,7 +15,6 @@ --> 0} space={contact.space.Contacts} @@ -58,7 +57,7 @@
-
+
diff --git a/plugins/contact-resources/src/components/CreatePerson.svelte b/plugins/contact-resources/src/components/CreatePerson.svelte index a1886214ca..7096f5c715 100644 --- a/plugins/contact-resources/src/components/CreatePerson.svelte +++ b/plugins/contact-resources/src/components/CreatePerson.svelte @@ -15,7 +15,7 @@ --> -
-
-
{value.name}
-
- - +{#if value} +
+  {value.name} +
+{/if} diff --git a/plugins/contact-resources/src/plugin.ts b/plugins/contact-resources/src/plugin.ts index 972787a882..ac4c43118b 100644 --- a/plugins/contact-resources/src/plugin.ts +++ b/plugins/contact-resources/src/plugin.ts @@ -24,6 +24,7 @@ export default mergeIds(contactId, contact, { Contacts: '' as IntlString, CreatePerson: '' as IntlString, CreatePersons: '' as IntlString, + CreateOrganization: '' as IntlString, CreateOrganizations: '' as IntlString, Organizations: '' as IntlString, SelectFolder: '' as IntlString, diff --git a/plugins/gmail-assets/lang/en.json b/plugins/gmail-assets/lang/en.json index 9640216428..5543b61792 100644 --- a/plugins/gmail-assets/lang/en.json +++ b/plugins/gmail-assets/lang/en.json @@ -15,6 +15,7 @@ "Reply": "Reply", "Subject": "Subject", "Send": "Send", - "NewMessageTo": "New message to" + "NewMessageTo": "New message to", + "Cancel": "Cancel" } } \ No newline at end of file diff --git a/plugins/gmail-resources/package.json b/plugins/gmail-resources/package.json index 60c157ebb4..54024f4cca 100644 --- a/plugins/gmail-resources/package.json +++ b/plugins/gmail-resources/package.json @@ -9,7 +9,8 @@ "build:docs": "api-extractor run --local", "lint": "svelte-check && eslint", "lint:fix": "eslint --fix src", - "format": "prettier --write --plugin-search-dir=. src && eslint --fix src" + "format": "prettier --write --plugin-search-dir=. src && eslint --fix src", + "svelte-check": "svelte-check" }, "devDependencies": { "@anticrm/platform-rig": "~0.6.0", diff --git a/plugins/gmail-resources/src/components/Chats.svelte b/plugins/gmail-resources/src/components/Chats.svelte index bf39ee0c12..1b5b6d36ce 100644 --- a/plugins/gmail-resources/src/components/Chats.svelte +++ b/plugins/gmail-resources/src/components/Chats.svelte @@ -13,6 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. --> + {#if value.applications && value.applications > 0} - +
 {value.applications}
diff --git a/plugins/recruit-resources/src/components/CreateVacancy.svelte b/plugins/recruit-resources/src/components/CreateVacancy.svelte index 33738e9e8a..197f5b7368 100644 --- a/plugins/recruit-resources/src/components/CreateVacancy.svelte +++ b/plugins/recruit-resources/src/components/CreateVacancy.svelte @@ -64,7 +64,7 @@ > - + diff --git a/plugins/recruit-resources/src/components/EditVacancy.svelte b/plugins/recruit-resources/src/components/EditVacancy.svelte index 0f9056b5fa..0d82dd6051 100644 --- a/plugins/recruit-resources/src/components/EditVacancy.svelte +++ b/plugins/recruit-resources/src/components/EditVacancy.svelte @@ -80,7 +80,7 @@ {#if selected === 0} {onChange('name', object.name)}}/> - {onChange('description', object.description)}}/> + {onChange('description', object.description)}}/>
Description @@ -92,7 +92,7 @@
{:else if selected === 1} - + {:else if selected === 2} {/if} diff --git a/plugins/recruit-resources/src/components/KanbanCard.svelte b/plugins/recruit-resources/src/components/KanbanCard.svelte index b0bc24c54e..545ab7dff4 100644 --- a/plugins/recruit-resources/src/components/KanbanCard.svelte +++ b/plugins/recruit-resources/src/components/KanbanCard.svelte @@ -40,7 +40,7 @@
{formatName(object.$lookup?.attachedTo?.name)}
{object.$lookup?.attachedTo?.title ?? ''}
-
+
diff --git a/plugins/recruit-resources/src/components/YesNo.svelte b/plugins/recruit-resources/src/components/YesNo.svelte index 608406c521..8666b312cd 100644 --- a/plugins/recruit-resources/src/components/YesNo.svelte +++ b/plugins/recruit-resources/src/components/YesNo.svelte @@ -14,14 +14,15 @@ --> diff --git a/plugins/recruit-resources/src/plugin.ts b/plugins/recruit-resources/src/plugin.ts index 10f63ed15a..5e08b1310e 100644 --- a/plugins/recruit-resources/src/plugin.ts +++ b/plugins/recruit-resources/src/plugin.ts @@ -44,7 +44,11 @@ export default mergeIds(recruitId, recruit, { AssignRecruiter: '' as IntlString, Recruiters: '' as IntlString, UnAssignRecruiter: '' as IntlString, - Create: '' as IntlString + Create: '' as IntlString, + Applications: '' as IntlString, + ThisVacancyIsPrivate: '' as IntlString, + Description: '' as IntlString, + Company: '' as IntlString }, space: { CandidatesPublic: '' as Ref