diff --git a/packages/ui/src/components/Card.svelte b/packages/presentation/src/components/Card.svelte similarity index 87% rename from packages/ui/src/components/Card.svelte rename to packages/presentation/src/components/Card.svelte index 88df818876..a25c9da7ee 100644 --- a/packages/ui/src/components/Card.svelte +++ b/packages/presentation/src/components/Card.svelte @@ -18,13 +18,16 @@ import type { IntlString } from '@anticrm/platform' import { createEventDispatcher } from 'svelte' + import type { Ref, Class, Space } from '@anticrm/core' // import Close from './internal/icons/Close.svelte' // import ScrollBox from './ScrollBox.svelte' - import Button from './Button.svelte' - import Label from './Label.svelte' - import IconFolder from './icons/Folder.svelte' + import Button from '@anticrm/ui/src/components/Button.svelte' + import Label from '@anticrm/ui/src/components/Label.svelte' + import IconFolder from '@anticrm/ui/src/components/icons/Folder.svelte' + import SpaceSelect from './SpaceSelect.svelte' + export let spaceClass: Ref> export let label: IntlString export let okLabel: IntlString export let okAction: () => void @@ -47,6 +50,7 @@ Select Project + diff --git a/packages/presentation/src/components/SpaceInfo.svelte b/packages/presentation/src/components/SpaceInfo.svelte new file mode 100644 index 0000000000..91f69eb030 --- /dev/null +++ b/packages/presentation/src/components/SpaceInfo.svelte @@ -0,0 +1,51 @@ + + + + +
+ + +
+ + \ No newline at end of file diff --git a/packages/presentation/src/components/SpaceSelect.svelte b/packages/presentation/src/components/SpaceSelect.svelte new file mode 100644 index 0000000000..8364478b09 --- /dev/null +++ b/packages/presentation/src/components/SpaceSelect.svelte @@ -0,0 +1,99 @@ + + + +
+ + +
+
+
+ {#if selected}{selected.name}{:else}
+
+
+ + diff --git a/packages/presentation/src/components/SpacesPopup.svelte b/packages/presentation/src/components/SpacesPopup.svelte new file mode 100644 index 0000000000..039909ac89 --- /dev/null +++ b/packages/presentation/src/components/SpacesPopup.svelte @@ -0,0 +1,93 @@ + + + + + + diff --git a/packages/presentation/src/components/UserBox copy.svelte b/packages/presentation/src/components/UserBox copy.svelte deleted file mode 100644 index 1fe0086a6e..0000000000 --- a/packages/presentation/src/components/UserBox copy.svelte +++ /dev/null @@ -1,133 +0,0 @@ - - - -
- - - -
-
- -
-
- - {#each objects as person} - - {/each} -
- -
-
-
- {#if selected}{selected.firstName + ' ' + selected.lastName}{:else}
-
-
- - diff --git a/packages/presentation/src/components/UserBox.svelte b/packages/presentation/src/components/UserBox.svelte index 81deb25cf6..321e4fd22f 100644 --- a/packages/presentation/src/components/UserBox.svelte +++ b/packages/presentation/src/components/UserBox.svelte @@ -26,8 +26,6 @@ import type { Ref, Class } from '@anticrm/core' import type { Person } from '@anticrm/contact' - import contact from '@anticrm/contact' - export let _class: Ref> export let title: IntlString export let caption: IntlString @@ -40,7 +38,7 @@ const client = getClient() async function updateSelected(value: Ref) { - selected = await client.findOne(contact.class.Person, { _id: value }) + selected = await client.findOne(_class, { _id: value }) } $: updateSelected(value) diff --git a/packages/presentation/src/index.ts b/packages/presentation/src/index.ts index 52a6cd0583..d53a87dd23 100644 --- a/packages/presentation/src/index.ts +++ b/packages/presentation/src/index.ts @@ -21,3 +21,4 @@ export { default as UserInfo } from './components/UserInfo.svelte' export { default as Avatar } from './components/Avatar.svelte' export { default as MessageViewer } from './components/MessageViewer.svelte' export { default as AttributeEditor } from './components/AttributeEditor.svelte' +export { default as Card } from './components/Card.svelte' diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts index 792f60b173..6c20f7df42 100644 --- a/packages/ui/src/index.ts +++ b/packages/ui/src/index.ts @@ -52,7 +52,6 @@ export { default as Loading } from './components/Loading.svelte' export { default as Popup } from './components/Popup.svelte' export { default as CircleButton } from './components/CircleButton.svelte' export { default as Link } from './components/Link.svelte' -export { default as Card } from './components/Card.svelte' export { default as IconAdd } from './components/icons/Add.svelte' export { default as IconClose } from './components/icons/Close.svelte' diff --git a/plugins/recruit-resources/src/components/CreateApplication.svelte b/plugins/recruit-resources/src/components/CreateApplication.svelte index 4201e1c5d5..d4bd2ef1ac 100644 --- a/plugins/recruit-resources/src/components/CreateApplication.svelte +++ b/plugins/recruit-resources/src/components/CreateApplication.svelte @@ -16,8 +16,8 @@