Allow Mixin Add/Edit/Delete operations (#2247)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2022-08-05 14:48:31 +07:00
committed by GitHub
parent 00131ed0a3
commit ae09613d5f
29 changed files with 552 additions and 170 deletions
@@ -13,25 +13,25 @@
// limitations under the License.
-->
<script lang="ts">
import { createEventDispatcher } from 'svelte'
import { flip } from 'svelte/animate'
import { Doc, WithLookup } from '@anticrm/core'
import { Issue, IssueStatus, Team } from '@anticrm/tracker'
import { getEventPositionElement, showPanel, showPopup } from '@anticrm/ui'
import {
ActionContext,
ContextMenu,
FixedColumn,
ListSelectionProvider,
SelectDirection,
FixedColumn
SelectDirection
} from '@anticrm/view-resources'
import { showPanel, showPopup } from '@anticrm/ui'
import tracker from '../../../plugin'
import { createEventDispatcher } from 'svelte'
import { flip } from 'svelte/animate'
import { getIssueId } from '../../../issues'
import tracker from '../../../plugin'
import Circles from '../../icons/Circles.svelte'
import AssigneeEditor from '../AssigneeEditor.svelte'
import DueDateEditor from '../DueDateEditor.svelte'
import StatusEditor from '../StatusEditor.svelte'
import PriorityEditor from '../PriorityEditor.svelte'
import StatusEditor from '../StatusEditor.svelte'
export let issues: Issue[]
export let issueStatuses: WithLookup<IssueStatus>[]
@@ -70,11 +70,7 @@
}
function showContextMenu (ev: MouseEvent, object: Issue) {
showPopup(
ContextMenu,
{ object },
{ getBoundingClientRect: () => DOMRect.fromRect({ width: 1, height: 1, x: ev.clientX, y: ev.clientY }) }
)
showPopup(ContextMenu, { object }, getEventPositionElement(ev))
}
const listProvider = new ListSelectionProvider((offset: 1 | -1 | 0, of?: Doc, dir?: SelectDirection) => {