2021-09-26 11:18:19 +00:00
|
|
|
<!--
|
|
|
|
// Copyright © 2020, 2021 Anticrm Platform Contributors.
|
|
|
|
// Copyright © 2021 Hardcore Engineering Inc.
|
|
|
|
//
|
|
|
|
// 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">
|
|
|
|
|
2021-09-26 13:48:53 +00:00
|
|
|
import type { Candidate } from '@anticrm/recruit'
|
2021-09-27 08:06:05 +00:00
|
|
|
import { CircleButton, IconFile, Label, Tooltip } from '@anticrm/ui'
|
2021-09-26 13:48:53 +00:00
|
|
|
import Vacancy from './icons/Vacancy.svelte'
|
2021-09-26 14:17:05 +00:00
|
|
|
import ApplicationsPopup from './ApplicationsPopup.svelte'
|
2021-09-26 11:18:19 +00:00
|
|
|
|
2021-09-26 13:48:53 +00:00
|
|
|
export let value: Candidate
|
2021-09-26 11:18:19 +00:00
|
|
|
|
2021-09-26 14:17:05 +00:00
|
|
|
let trigger: HTMLElement
|
2021-09-26 13:48:53 +00:00
|
|
|
const apps = [{ label: 'Lead analyst', description: 'Tesla' },
|
|
|
|
{ label: 'Principal analyst', description: 'Google' }]
|
2021-09-26 11:18:19 +00:00
|
|
|
</script>
|
|
|
|
|
2021-09-26 11:20:46 +00:00
|
|
|
{#if value.applications && value.applications > 0}
|
2021-09-27 08:06:05 +00:00
|
|
|
<Tooltip label={'Applications'} component={ApplicationsPopup} props={{ value: value }}>
|
|
|
|
<div class="flex-row-center">
|
|
|
|
<div class="icon"><IconFile size={'small'} /></div>
|
|
|
|
{value.applications}
|
|
|
|
</div>
|
|
|
|
</Tooltip>
|
2021-09-26 11:18:19 +00:00
|
|
|
{/if}
|
2021-09-26 13:48:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2021-09-27 08:06:05 +00:00
|
|
|
.icon {
|
|
|
|
margin-right: .25rem;
|
|
|
|
transform-origin: center center;
|
|
|
|
transform: scale(.75);
|
|
|
|
opacity: .6;
|
2021-09-26 13:48:53 +00:00
|
|
|
}
|
|
|
|
</style>
|