@antcde/component-library 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/component-library.css +1 -1
- package/dist/index.js +17133 -18175
- package/dist/types/components/BaseAppCard.vue.d.ts +18 -4
- package/dist/types/components/BaseAppCardSkeleton.vue.d.ts +2 -0
- package/dist/types/components/BaseDeleteDialog.vue.d.ts +20 -7
- package/dist/types/components/RBAC/Permissions/PermissionCard.vue.d.ts +1 -1
- package/dist/types/components/TasksFlow/useTaskFlow.d.ts +7 -5
- package/dist/types/index.d.ts +3 -1
- package/lib/DocumentManager/DocumentDrop.vue +2 -6
- package/lib/DocumentManager/DocumentManager.vue +45 -43
- package/lib/DocumentManager/hooks/useDms.ts +1 -3
- package/lib/DocumentManager/index.ts +1 -1
- package/lib/DocumentManager/lang/translations/de.json +36 -0
- package/lib/DocumentManager/lang/translations/en.json +38 -0
- package/lib/DocumentManager/lang/translations/nl.json +36 -0
- package/lib/DocumentManager/utils.ts +1 -1
- package/lib/ForgeViewer/ForgeViewer.vue +6 -5
- package/lib/ForgeViewer/lang/translations/de.json +6 -0
- package/lib/ForgeViewer/lang/translations/en.json +6 -0
- package/lib/ForgeViewer/lang/translations/nl.json +6 -0
- package/lib/ForgeViewer/useForgeViewer.ts +0 -1
- package/lib/GisViewer/GisViewer.vue +14 -8
- package/lib/GisViewer/useGisViewer.ts +3 -3
- package/package.json +4 -3
- package/lib/TableViewer/TableViewer.vue +0 -79
- package/lib/TableViewer/composables/columns.ts +0 -51
- package/lib/TableViewer/composables/records.ts +0 -70
- package/lib/TableViewer/composables/relations.ts +0 -8
- package/lib/TableViewer/composables/useFile.ts +0 -20
- package/lib/TableViewer/core/Columns/ColumnForm.vue +0 -443
- package/lib/TableViewer/core/Columns/ColumnItem.vue +0 -225
- package/lib/TableViewer/core/Columns/ColumnsList.vue +0 -142
- package/lib/TableViewer/core/Columns/ForeignKeyColumnItem.vue +0 -165
- package/lib/TableViewer/core/Columns/ForeignKeyColumnsList.vue +0 -55
- package/lib/TableViewer/core/Dialog/DeleteConfirmationDialog.vue +0 -63
- package/lib/TableViewer/core/Filters/ConditionItem.vue +0 -133
- package/lib/TableViewer/core/Filters/ConditionsList.vue +0 -53
- package/lib/TableViewer/core/Filters/FiltersEditor.vue +0 -48
- package/lib/TableViewer/core/Filters/QueriesList.vue +0 -63
- package/lib/TableViewer/core/Filters/QueryItem.vue +0 -112
- package/lib/TableViewer/core/Records/RecordCell.vue +0 -108
- package/lib/TableViewer/core/Records/RecordForm.vue +0 -146
- package/lib/TableViewer/core/Records/RecordHeader.vue +0 -82
- package/lib/TableViewer/core/Records/RecordInput.vue +0 -234
- package/lib/TableViewer/core/Records/RecordValue.vue +0 -170
- package/lib/TableViewer/core/Records/RecordsTable.vue +0 -274
- package/lib/TableViewer/core/Records/RecordsTableToolbar.vue +0 -210
- package/lib/TableViewer/core/Revisions/RevisionComparisonCell.vue +0 -50
- package/lib/TableViewer/core/Revisions/RevisionComparisonTable.vue +0 -98
- package/lib/TableViewer/core/Revisions/RevisionHistory.vue +0 -156
- package/lib/TableViewer/core/Revisions/RevisionSelector.vue +0 -140
- package/lib/TableViewer/core/Tables/TableEditor.vue +0 -136
- package/lib/TableViewer/core/Tables/TableItem.vue +0 -162
- package/lib/TableViewer/core/Tables/TableViewer.vue +0 -28
- package/lib/TableViewer/core/Tables/TablesList.vue +0 -116
- package/lib/TableViewer/index.ts +0 -4
- package/lib/TableViewer/services/file-handler.ts +0 -84
- package/lib/TableViewer/stores/client.ts +0 -18
- package/lib/TableViewer/stores/columnRelation.ts +0 -106
- package/lib/TableViewer/stores/columns.ts +0 -171
- package/lib/TableViewer/stores/conditions.ts +0 -86
- package/lib/TableViewer/stores/permissions.ts +0 -102
- package/lib/TableViewer/stores/queries.ts +0 -80
- package/lib/TableViewer/stores/records.ts +0 -325
- package/lib/TableViewer/stores/relations.ts +0 -89
- package/lib/TableViewer/stores/revisions.ts +0 -194
- package/lib/TableViewer/stores/roles.ts +0 -109
- package/lib/TableViewer/stores/table.ts +0 -130
- package/lib/TableViewer/stores/tables.ts +0 -65
- package/lib/TableViewer/types/app.d.ts +0 -5
- package/lib/TableViewer/types/column.d.ts +0 -28
- package/lib/TableViewer/types/permission.d.ts +0 -12
- package/lib/TableViewer/types/project.d.ts +0 -37
- package/lib/TableViewer/types/relations.d.ts +0 -7
- package/lib/TableViewer/types/tables.d.ts +0 -69
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import type { Column } from '@antcde/connect-ts/services/ColumnService'
|
|
2
|
-
import type { ColumnRelation } from '@antcde/connect-ts/services/Table/ColumnRelationService'
|
|
3
|
-
import { defineStore } from 'pinia'
|
|
4
|
-
import { computed, ref } from 'vue'
|
|
5
|
-
import { useClientStore } from './client'
|
|
6
|
-
import { useConditionStore } from './conditions'
|
|
7
|
-
import { useTableStore } from './table'
|
|
8
|
-
import type { ColumnRequestBody } from '../types/column'
|
|
9
|
-
|
|
10
|
-
export const useColumnStore = defineStore('ant.apps.table.viewer.columns', () => {
|
|
11
|
-
const isFetching = ref(false)
|
|
12
|
-
const isCreating = ref(false)
|
|
13
|
-
const isUpdating = ref(false)
|
|
14
|
-
const isDeleting = ref(false)
|
|
15
|
-
|
|
16
|
-
const columns = ref<Column[]>([])
|
|
17
|
-
const columnsAlias = ref<{
|
|
18
|
-
[key: string]: any
|
|
19
|
-
}>({})
|
|
20
|
-
|
|
21
|
-
const clientStore = useClientStore()
|
|
22
|
-
const { client } = clientStore
|
|
23
|
-
const connect = client?.connect
|
|
24
|
-
|
|
25
|
-
const tableStore = useTableStore()
|
|
26
|
-
const conditionStore = useConditionStore()
|
|
27
|
-
|
|
28
|
-
const columnsConfiguration = computed(() => getColumnsConfiguration())
|
|
29
|
-
|
|
30
|
-
async function fetchColumns() {
|
|
31
|
-
if (!tableStore.table || !connect) {
|
|
32
|
-
return
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
try {
|
|
36
|
-
isFetching.value = true
|
|
37
|
-
columns.value = (await connect.columns.getColumns(tableStore.table.id)) ?? []
|
|
38
|
-
} finally {
|
|
39
|
-
isFetching.value = false
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
async function fetchTableColumns(tableId: string) {
|
|
44
|
-
if (!connect) {
|
|
45
|
-
return []
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return (await connect.columns.getColumns(tableId)) ?? []
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function getColumnsConfiguration() {
|
|
52
|
-
return columns.value.map((column: Column) => {
|
|
53
|
-
return {
|
|
54
|
-
name: column.name,
|
|
55
|
-
as: columnsAlias.value[column.id] ?? column.name,
|
|
56
|
-
conditions: conditionStore.getApplicableConditions(column),
|
|
57
|
-
relation: {
|
|
58
|
-
include: !!column.column_relation,
|
|
59
|
-
fields: ['id', column.column_relation?.display_label]
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
})
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function getColumn(id: string) {
|
|
66
|
-
return columns.value.find((column: Column) => column.id === id)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function getColumnIndex(id: string) {
|
|
70
|
-
return columns.value.findIndex((column: Column) => column.id === id)
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function setColumnAlias(column: Column, alias: string) {
|
|
74
|
-
columnsAlias.value = {
|
|
75
|
-
...columnsAlias.value,
|
|
76
|
-
[column.id]: alias
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
async function addColumn(column: Column) {
|
|
81
|
-
if (!tableStore.table?.id || !connect) {
|
|
82
|
-
return
|
|
83
|
-
}
|
|
84
|
-
try {
|
|
85
|
-
isCreating.value = true
|
|
86
|
-
const newColumn = await connect.columns.createColumn({
|
|
87
|
-
name: column.name,
|
|
88
|
-
type: column.type,
|
|
89
|
-
default_value: column.default_value,
|
|
90
|
-
options_value: column.options_value,
|
|
91
|
-
order: column.order,
|
|
92
|
-
required: column.required,
|
|
93
|
-
is_unique: column.is_unique,
|
|
94
|
-
table: tableStore.table.id
|
|
95
|
-
})
|
|
96
|
-
columns.value.push(newColumn)
|
|
97
|
-
} finally {
|
|
98
|
-
isCreating.value = false
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
async function updateColumn(columnId: string, column: ColumnRequestBody) {
|
|
103
|
-
if (!connect) return
|
|
104
|
-
try {
|
|
105
|
-
isUpdating.value = true
|
|
106
|
-
await connect.columns.updateColumn(columnId, {
|
|
107
|
-
name: column.name,
|
|
108
|
-
required: column.required,
|
|
109
|
-
default_value: column.default_value
|
|
110
|
-
})
|
|
111
|
-
const columnIndex = columns.value.findIndex((item: Column) => item.id === columnId)
|
|
112
|
-
columns.value.splice(columnIndex, 1, {
|
|
113
|
-
...columns.value[columnIndex],
|
|
114
|
-
name: column.name,
|
|
115
|
-
required: column.required,
|
|
116
|
-
default_value: column.default_value
|
|
117
|
-
})
|
|
118
|
-
} finally {
|
|
119
|
-
isUpdating.value = false
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function setColumnRelation(columnId: string, relation: ColumnRelation | null) {
|
|
124
|
-
const columnIndex = columns.value.findIndex((item: Column) => item.id === columnId)
|
|
125
|
-
columns.value.splice(columnIndex, 1, {
|
|
126
|
-
...columns.value[columnIndex],
|
|
127
|
-
column_relation: relation
|
|
128
|
-
})
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
async function deleteColumn(columnId: string) {
|
|
132
|
-
if (!connect) return
|
|
133
|
-
try {
|
|
134
|
-
isDeleting.value = true
|
|
135
|
-
await connect.columns.deleteColumn(columnId)
|
|
136
|
-
columns.value = columns.value.filter((item: Column) => item.id !== columnId)
|
|
137
|
-
} finally {
|
|
138
|
-
isDeleting.value = false
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
function reset() {
|
|
143
|
-
columns.value = []
|
|
144
|
-
columnsAlias.value = {}
|
|
145
|
-
isFetching.value = false
|
|
146
|
-
isCreating.value = false
|
|
147
|
-
isUpdating.value = false
|
|
148
|
-
isDeleting.value = false
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
return {
|
|
152
|
-
columns,
|
|
153
|
-
isFetching,
|
|
154
|
-
isCreating,
|
|
155
|
-
isUpdating,
|
|
156
|
-
isDeleting,
|
|
157
|
-
columnsAlias,
|
|
158
|
-
columnsConfiguration,
|
|
159
|
-
reset,
|
|
160
|
-
getColumn,
|
|
161
|
-
getColumnIndex,
|
|
162
|
-
addColumn,
|
|
163
|
-
updateColumn,
|
|
164
|
-
deleteColumn,
|
|
165
|
-
fetchColumns,
|
|
166
|
-
setColumnAlias,
|
|
167
|
-
getColumnsConfiguration,
|
|
168
|
-
setColumnRelation,
|
|
169
|
-
fetchTableColumns
|
|
170
|
-
}
|
|
171
|
-
})
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type { Column } from '../types/column'
|
|
2
|
-
import { defineStore } from 'pinia'
|
|
3
|
-
import { computed, ref } from 'vue'
|
|
4
|
-
import { useRecordStore } from './records'
|
|
5
|
-
|
|
6
|
-
export interface Condition {
|
|
7
|
-
id: string
|
|
8
|
-
column?: string
|
|
9
|
-
applied?: boolean
|
|
10
|
-
operator?: string
|
|
11
|
-
boolean?: string
|
|
12
|
-
value?: string
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const useConditionStore = defineStore('ant.apps.table.viewer.conditions', () => {
|
|
16
|
-
const conditions = ref<Condition[]>([])
|
|
17
|
-
|
|
18
|
-
const recordStore = useRecordStore()
|
|
19
|
-
|
|
20
|
-
const appliedAndValidConditions = computed(() => {
|
|
21
|
-
return conditions.value.filter((condition) => {
|
|
22
|
-
return !!condition.column && !!condition.applied && !!condition.value && !!condition.operator
|
|
23
|
-
})
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
function addCondition() {
|
|
27
|
-
conditions.value.push({
|
|
28
|
-
id: Math.random().toString(36)
|
|
29
|
-
})
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function updateCondition(id: string, condition: Partial<Condition>) {
|
|
33
|
-
const index = conditions.value.findIndex((c) => c.id === id)
|
|
34
|
-
if (index !== -1) {
|
|
35
|
-
conditions.value[index] = { ...conditions.value[index], ...condition }
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function removeCondition(id: string) {
|
|
40
|
-
conditions.value = conditions.value.filter((c) => c.id !== id)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function applyConditions() {
|
|
44
|
-
conditions.value.forEach((c) => (c.applied = true))
|
|
45
|
-
recordStore.fetchRecords()
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function clearConditions() {
|
|
49
|
-
reset()
|
|
50
|
-
recordStore.fetchRecords()
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function getApplicableConditions(column: Column) {
|
|
54
|
-
return conditions.value
|
|
55
|
-
.filter(
|
|
56
|
-
(condition: Condition) =>
|
|
57
|
-
condition.column === column.id &&
|
|
58
|
-
!!condition.applied &&
|
|
59
|
-
!!condition.value &&
|
|
60
|
-
!!condition.operator
|
|
61
|
-
)
|
|
62
|
-
.map((condition) => {
|
|
63
|
-
return {
|
|
64
|
-
operator: condition.operator,
|
|
65
|
-
value: condition.value,
|
|
66
|
-
column: column.id
|
|
67
|
-
}
|
|
68
|
-
})
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function reset() {
|
|
72
|
-
conditions.value = []
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return {
|
|
76
|
-
conditions,
|
|
77
|
-
reset,
|
|
78
|
-
addCondition,
|
|
79
|
-
removeCondition,
|
|
80
|
-
updateCondition,
|
|
81
|
-
appliedAndValidConditions,
|
|
82
|
-
clearConditions,
|
|
83
|
-
applyConditions,
|
|
84
|
-
getApplicableConditions
|
|
85
|
-
}
|
|
86
|
-
})
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import type { Permission } from '../types/permission'
|
|
2
|
-
import { defineStore } from 'pinia'
|
|
3
|
-
import { ref } from 'vue'
|
|
4
|
-
import { useClientStore } from './client'
|
|
5
|
-
import { useTableStore } from './table'
|
|
6
|
-
|
|
7
|
-
export const usePermissionStore = defineStore('ant.apps.table.viewer.permissions', () => {
|
|
8
|
-
const permissions = ref<Permission[]>([])
|
|
9
|
-
const isFetching = ref(false)
|
|
10
|
-
const isDeleting = ref(false)
|
|
11
|
-
const isCreating = ref(false)
|
|
12
|
-
const isUpdating = ref(false)
|
|
13
|
-
|
|
14
|
-
const tableStore = useTableStore()
|
|
15
|
-
const clientStore = useClientStore()
|
|
16
|
-
const { client } = clientStore
|
|
17
|
-
const connect = client?.connect
|
|
18
|
-
|
|
19
|
-
async function fetchPermissions() {
|
|
20
|
-
try {
|
|
21
|
-
if (!tableStore.table?.id || !connect) {
|
|
22
|
-
return
|
|
23
|
-
}
|
|
24
|
-
permissions.value = await connect.permissions.getPermissions(tableStore.table.id)
|
|
25
|
-
isFetching.value = false
|
|
26
|
-
}
|
|
27
|
-
finally {
|
|
28
|
-
isFetching.value = false
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
async function createPermission(permissionItem: Partial<Permission>) {
|
|
33
|
-
try {
|
|
34
|
-
if (!tableStore.table?.id || !connect) {
|
|
35
|
-
return
|
|
36
|
-
}
|
|
37
|
-
isCreating.value = true
|
|
38
|
-
const createdPermissions = await connect.permissions.createPermission({
|
|
39
|
-
permissions: [
|
|
40
|
-
{
|
|
41
|
-
...permissionItem,
|
|
42
|
-
table_id: tableStore.table.id,
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
})
|
|
46
|
-
permissions.value.push(createdPermissions[0])
|
|
47
|
-
}
|
|
48
|
-
finally {
|
|
49
|
-
isCreating.value = false
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
async function updatePermission(permissionItem: Permission) {
|
|
54
|
-
if (!permissionItem || !connect)
|
|
55
|
-
return
|
|
56
|
-
try {
|
|
57
|
-
isUpdating.value = true
|
|
58
|
-
|
|
59
|
-
const updatedPermissions = await connect.permissions.createPermission({
|
|
60
|
-
permissions: [permissionItem],
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
const permissionIndex = permissions.value.findIndex(
|
|
64
|
-
(item: Permission) => permissionItem.id === item.id,
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
permissions.value.splice(permissionIndex, 1, updatedPermissions[0])
|
|
68
|
-
|
|
69
|
-
isUpdating.value = false
|
|
70
|
-
}
|
|
71
|
-
finally {
|
|
72
|
-
isUpdating.value = false
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
async function deletePermission(permissionItem: Permission) {
|
|
77
|
-
if (!permissionItem || !connect)
|
|
78
|
-
return
|
|
79
|
-
try {
|
|
80
|
-
isDeleting.value = true
|
|
81
|
-
await connect.permissions.deletePermission(permissionItem.id)
|
|
82
|
-
permissions.value = permissions.value.filter(
|
|
83
|
-
(item: Permission) => item.id !== permissionItem.id,
|
|
84
|
-
)
|
|
85
|
-
}
|
|
86
|
-
finally {
|
|
87
|
-
isDeleting.value = false
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
return {
|
|
92
|
-
permissions,
|
|
93
|
-
isFetching,
|
|
94
|
-
isDeleting,
|
|
95
|
-
isCreating,
|
|
96
|
-
isUpdating,
|
|
97
|
-
fetchPermissions,
|
|
98
|
-
createPermission,
|
|
99
|
-
updatePermission,
|
|
100
|
-
deletePermission,
|
|
101
|
-
}
|
|
102
|
-
})
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import type { TableQuery, TableQueryColumn } from '@antcde/connect-ts/services/TableQueryService'
|
|
2
|
-
import { defineStore } from 'pinia'
|
|
3
|
-
import { ref } from 'vue'
|
|
4
|
-
import { useClientStore } from './client'
|
|
5
|
-
import { useTableStore } from './table'
|
|
6
|
-
|
|
7
|
-
export const useQueryStore = defineStore('ant.apps.table.viewer.queries', () => {
|
|
8
|
-
const queries = ref<TableQuery[]>([])
|
|
9
|
-
const isFetching = ref(false)
|
|
10
|
-
const isCreating = ref(false)
|
|
11
|
-
const isUpdating = ref(false)
|
|
12
|
-
const isDeleting = ref(false)
|
|
13
|
-
|
|
14
|
-
const clientStore = useClientStore()
|
|
15
|
-
const { client } = clientStore
|
|
16
|
-
const connect = client?.connect
|
|
17
|
-
const tableStore = useTableStore()
|
|
18
|
-
|
|
19
|
-
async function fetchQueries() {
|
|
20
|
-
if (!tableStore.table?.id || !connect) {
|
|
21
|
-
return
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
try {
|
|
25
|
-
isFetching.value = true
|
|
26
|
-
queries.value = await connect.tableQueries.all(tableStore.table.id)
|
|
27
|
-
}
|
|
28
|
-
finally {
|
|
29
|
-
isFetching.value = false
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
async function createQuery(name: string, content: Array<TableQueryColumn>) {
|
|
34
|
-
if (!tableStore.table?.id || !connect) {
|
|
35
|
-
return
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
try {
|
|
39
|
-
isCreating.value = true
|
|
40
|
-
const newQuery = await connect.tableQueries.create({
|
|
41
|
-
name,
|
|
42
|
-
content,
|
|
43
|
-
tableId: tableStore.table.id,
|
|
44
|
-
})
|
|
45
|
-
queries.value.push((newQuery as unknown as TableQuery))
|
|
46
|
-
}
|
|
47
|
-
finally {
|
|
48
|
-
isCreating.value = false
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
async function deleteQuery(query: TableQuery) {
|
|
53
|
-
if (!tableStore.table?.id || !connect) {
|
|
54
|
-
return
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
try {
|
|
58
|
-
isDeleting.value = true
|
|
59
|
-
await connect.tableQueries.delete({
|
|
60
|
-
queryId: query.id,
|
|
61
|
-
tableId: tableStore.table.id,
|
|
62
|
-
})
|
|
63
|
-
queries.value = queries.value.filter(q => query.id !== q.id)
|
|
64
|
-
}
|
|
65
|
-
finally {
|
|
66
|
-
isDeleting.value = false
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return {
|
|
71
|
-
queries,
|
|
72
|
-
isFetching,
|
|
73
|
-
isCreating,
|
|
74
|
-
isUpdating,
|
|
75
|
-
isDeleting,
|
|
76
|
-
fetchQueries,
|
|
77
|
-
createQuery,
|
|
78
|
-
deleteQuery,
|
|
79
|
-
}
|
|
80
|
-
})
|