mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-06 01:37:42 +02:00
Fix build cache (#1996)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
category = detail.category ?? undefined
|
||||
selectedTagElements.set(Array.from(detail.elements ?? []).map((it) => it._id))
|
||||
}
|
||||
const handleChange = (evt: any) => updateCategory(evt.detail)
|
||||
</script>
|
||||
|
||||
<div class="ac-header full">
|
||||
@@ -83,11 +84,7 @@
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Component
|
||||
is={tags.component.TagsCategoryBar}
|
||||
props={{ targetClass: _class, category }}
|
||||
on:change={(evt) => updateCategory(evt.detail)}
|
||||
/>
|
||||
<Component is={tags.component.TagsCategoryBar} props={{ targetClass: _class, category }} on:change={handleChange} />
|
||||
|
||||
<TableBrowser
|
||||
{_class}
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
onMount(() => {
|
||||
dispatch('open', { ignoreKeys: ['comments', 'name', 'description', 'number'] })
|
||||
})
|
||||
const onChangeDescription = (evt: CustomEvent<any>) => change('description', evt.detail)
|
||||
</script>
|
||||
|
||||
{#if object !== undefined}
|
||||
@@ -60,7 +61,7 @@
|
||||
<StyledTextBox
|
||||
bind:content={object.description}
|
||||
placeholder={plugin.string.TaskDescriptionPlaceholder}
|
||||
on:value={(evt) => change('description', evt.detail)}
|
||||
on:value={onChangeDescription}
|
||||
/>
|
||||
</div>
|
||||
</Grid>
|
||||
|
||||
@@ -48,14 +48,7 @@
|
||||
<div class="mr-2">
|
||||
<Component is={notification.component.NotificationPresenter} props={{ value: object }} />
|
||||
</div>
|
||||
<ActionIcon
|
||||
label={task.string.More}
|
||||
action={(evt) => {
|
||||
showMenu(evt)
|
||||
}}
|
||||
icon={IconMoreH}
|
||||
size={'small'}
|
||||
/>
|
||||
<ActionIcon label={task.string.More} action={showMenu} icon={IconMoreH} size={'small'} />
|
||||
</div>
|
||||
</div>
|
||||
<div class="caption-color mb-3 lines-limit-4">{object.name}</div>
|
||||
|
||||
@@ -118,6 +118,30 @@
|
||||
}
|
||||
|
||||
$: updateQuery(search, selectedDoneStates)
|
||||
const handleSelect = (result: any) => {
|
||||
if (result.type === 'select') {
|
||||
const res = result.detail
|
||||
if (res.id === 'AllStates') {
|
||||
doneStatusesView = false
|
||||
state = undefined
|
||||
withoutDone = false
|
||||
selectedDoneStates.clear()
|
||||
updateQuery(search, selectedDoneStates)
|
||||
} else if (res.id === 'DoneStates') {
|
||||
doneStatusesView = true
|
||||
state = undefined
|
||||
selectedDoneStates.clear()
|
||||
updateQuery(search, selectedDoneStates)
|
||||
}
|
||||
}
|
||||
}
|
||||
const handleDoneSelect = (result: any) => {
|
||||
if (result.type === 'select') {
|
||||
const res = result.detail
|
||||
if (res.id === 'NoDoneState') noDoneClick()
|
||||
else doneStateClick(res.id)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="header">
|
||||
@@ -127,37 +151,10 @@
|
||||
{ id: 'DoneStates', labelIntl: task.string.DoneStates }
|
||||
]}
|
||||
multiselect={false}
|
||||
on:select={(result) => {
|
||||
if (result.type === 'select') {
|
||||
const res = result.detail
|
||||
if (res.id === 'AllStates') {
|
||||
doneStatusesView = false
|
||||
state = undefined
|
||||
withoutDone = false
|
||||
selectedDoneStates.clear()
|
||||
updateQuery(search, selectedDoneStates)
|
||||
} else if (res.id === 'DoneStates') {
|
||||
doneStatusesView = true
|
||||
state = undefined
|
||||
selectedDoneStates.clear()
|
||||
updateQuery(search, selectedDoneStates)
|
||||
}
|
||||
}
|
||||
}}
|
||||
on:select={handleSelect}
|
||||
/>
|
||||
{#if doneStatusesView}
|
||||
<TabList
|
||||
items={itemsDS}
|
||||
bind:selected={selectedDS}
|
||||
multiselect
|
||||
on:select={(result) => {
|
||||
if (result.type === 'select') {
|
||||
const res = result.detail
|
||||
if (res.id === 'NoDoneState') noDoneClick()
|
||||
else doneStateClick(res.id)
|
||||
}
|
||||
}}
|
||||
/>
|
||||
<TabList items={itemsDS} bind:selected={selectedDS} multiselect on:select={handleDoneSelect} />
|
||||
{:else}
|
||||
<StatesBar bind:state {space} gap={'none'} on:change={() => updateQuery(search, selectedDoneStates)} />
|
||||
{/if}
|
||||
|
||||
@@ -92,6 +92,16 @@
|
||||
}
|
||||
)
|
||||
}
|
||||
const onContent = (evt: any) => {
|
||||
listProvider.update(evt.detail)
|
||||
}
|
||||
const onObjFocus = (evt: any) => {
|
||||
listProvider.updateFocus(evt.detail)
|
||||
}
|
||||
const handleCheck = (evt: any) => {
|
||||
listProvider.updateSelection(evt.detail.docs, evt.detail.value)
|
||||
}
|
||||
const onContextMenu = (evt: any) => showMenu(evt.detail.evt, evt.detail.objects)
|
||||
</script>
|
||||
|
||||
{#await cardPresenter then presenter}
|
||||
@@ -111,17 +121,11 @@
|
||||
{states}
|
||||
fieldName={'state'}
|
||||
rankFieldName={'rank'}
|
||||
on:content={(evt) => {
|
||||
listProvider.update(evt.detail)
|
||||
}}
|
||||
on:obj-focus={(evt) => {
|
||||
listProvider.updateFocus(evt.detail)
|
||||
}}
|
||||
on:content={onContent}
|
||||
on:obj-focus={onObjFocus}
|
||||
checked={$selectionStore ?? []}
|
||||
on:check={(evt) => {
|
||||
listProvider.updateSelection(evt.detail.docs, evt.detail.value)
|
||||
}}
|
||||
on:contextmenu={(evt) => showMenu(evt.detail.evt, evt.detail.objects)}
|
||||
on:check={handleCheck}
|
||||
on:contextmenu={onContextMenu}
|
||||
selection={listProvider.current($focusStore)}
|
||||
>
|
||||
<svelte:fragment slot="card" let:object let:dragged>
|
||||
|
||||
@@ -42,14 +42,7 @@
|
||||
},
|
||||
{ limit: 1 }
|
||||
)
|
||||
</script>
|
||||
|
||||
<Button
|
||||
{kind}
|
||||
{size}
|
||||
{width}
|
||||
{justify}
|
||||
on:click={(ev) => {
|
||||
const handleClick = (ev: MouseEvent) => {
|
||||
if (!opened) {
|
||||
opened = true
|
||||
showPopup(StatesPopup, { space }, eventToHTMLElement(ev), (result) => {
|
||||
@@ -60,8 +53,10 @@
|
||||
opened = false
|
||||
})
|
||||
}
|
||||
}}
|
||||
>
|
||||
}
|
||||
</script>
|
||||
|
||||
<Button {kind} {size} {width} {justify} on:click={handleClick}>
|
||||
<svelte:fragment slot="content">
|
||||
{#if state}
|
||||
<StatePresenter value={state} />
|
||||
|
||||
@@ -30,8 +30,6 @@
|
||||
let dueTo: number | null = null
|
||||
let latestItem: TodoItem | undefined = undefined
|
||||
|
||||
$: _space = space
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
const client = getClient()
|
||||
const todoItemsQuery = createQuery()
|
||||
|
||||
Reference in New Issue
Block a user