Add EditCandidates, EditVacancy and SpacePanel (#293)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2021-11-03 14:01:21 +01:00
committed by GitHub
parent 4aa9ab877b
commit 18ca47a4e0
44 changed files with 1401 additions and 1117 deletions
@@ -0,0 +1,40 @@
<!--
// Copyright © 2020 Anticrm Platform Contributors.
//
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. You may
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
-->
<script lang="ts">
import { createEventDispatcher } from 'svelte'
import { TextArea, EditBox, ToggleWithLabel, Grid, IconToDo } from '@anticrm/ui'
import { SpacePanel } from '@anticrm/presentation'
import type { Ref, Space, Doc, Class } from '@anticrm/core'
import task from '../plugin'
export let _id: Ref<Doc>
export let spaceClass: Ref<Class<Space>>
const dispatch = createEventDispatcher()
let name: string
let description: string
</script>
<SpacePanel label={'Open'}
icon={task.icon.Task}
on:close={() => { dispatch('close') }}>
<Grid column={1} rowGap={1.5}>
<EditBox label={'Task name'} icon={IconToDo} bind:value={name} placeholder={'Task name'} focus/>
<ToggleWithLabel label={'MakePrivate'} description={'MakePrivateDescription'}/>
</Grid>
</SpacePanel>