easycomponentstools 1.0.0-dev.15 → 1.0.0-dev.17
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/package.json +1 -2
- package/src/components/Form/types/map/CustomMapAutoComplete.vue +1 -1
- package/src/components/Table/EasyTable.vue +12 -6
- package/src/components/Table/Headers/DialogColumns.vue +1 -1
- package/src/components/Table/Headers/ExportData.vue +5 -5
- package/src/components/Table/Headers/Filters.vue +2 -2
- package/src/components/Table/Headers/Headers.vue +2 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easycomponentstools",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.0-dev.
|
|
4
|
+
"version": "1.0.0-dev.17",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Easy Vue Components",
|
|
7
7
|
"keywords": [
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@mdi/font": "^7.4.47",
|
|
53
|
-
"@tmcw/togeojson": "^7.1.2",
|
|
54
53
|
"@types/google.maps": "^3.65.0",
|
|
55
54
|
"json-as-xlsx": "^2.5.6",
|
|
56
55
|
"lucide-static": "^0.577.0",
|
|
@@ -150,8 +150,10 @@ const deletion = (id: string | number) => {
|
|
|
150
150
|
})
|
|
151
151
|
.then(async (response) => {
|
|
152
152
|
if (!response.ok) {
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
throw {
|
|
154
|
+
statusCode: response.status,
|
|
155
|
+
data: await response.json(),
|
|
156
|
+
}
|
|
155
157
|
}
|
|
156
158
|
return response.json()
|
|
157
159
|
})
|
|
@@ -173,8 +175,10 @@ const multipleDelete = () => {
|
|
|
173
175
|
})
|
|
174
176
|
.then(async (response) => {
|
|
175
177
|
if (!response.ok) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
+
throw {
|
|
179
|
+
statusCode: response.status,
|
|
180
|
+
data: await response.json(),
|
|
181
|
+
}
|
|
178
182
|
}
|
|
179
183
|
return response.json()
|
|
180
184
|
})
|
|
@@ -201,8 +205,10 @@ const getData = async () => {
|
|
|
201
205
|
fetch(`${props.api.get}?${params}`, { method: 'GET' })
|
|
202
206
|
.then(async (response) => {
|
|
203
207
|
if (!response.ok) {
|
|
204
|
-
|
|
205
|
-
|
|
208
|
+
throw {
|
|
209
|
+
statusCode: response.status,
|
|
210
|
+
data: await response.json(),
|
|
211
|
+
}
|
|
206
212
|
}
|
|
207
213
|
return response.json()
|
|
208
214
|
})
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
style="margin-left: -14px"
|
|
8
8
|
class="text-md-body-large"
|
|
9
9
|
>
|
|
10
|
-
<i class="icon-columns-3 mr-1" /> {{ $i18n.t('table.columns') }}
|
|
10
|
+
<i class="icon icon-columns-3 mr-1" /> {{ $i18n.t('table.columns') }}
|
|
11
11
|
</v-btn>
|
|
12
12
|
</template>
|
|
13
13
|
<v-card class="list_draggable" @mousemove="onDragMove">
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<v-list-item :disabled="disabledComputed" @click="$useDataTableExport.exportData('pdf')">
|
|
4
|
-
<i class="icon-file-sliders" /> PDF
|
|
4
|
+
<i class="icon icon-file-sliders" /> PDF
|
|
5
5
|
</v-list-item>
|
|
6
6
|
<v-list-item :disabled="disabledComputed" @click="$useDataTableExport.exportData('csv')">
|
|
7
|
-
<i class="icon-file-sliders" /> CSV
|
|
7
|
+
<i class="icon icon-file-sliders" /> CSV
|
|
8
8
|
</v-list-item>
|
|
9
9
|
<v-list-item :disabled="disabledComputed" @click="$useDataTableExport.exportData('xlsx')">
|
|
10
|
-
<i class="icon-file-sliders" /> EXCEL
|
|
10
|
+
<i class="icon icon-file-sliders" /> EXCEL
|
|
11
11
|
</v-list-item>
|
|
12
12
|
<v-list-item :disabled="disabledComputed" @click="$useDataTableExport.exportData('word')">
|
|
13
|
-
<i class="icon-file-sliders" /> WORD
|
|
13
|
+
<i class="icon icon-file-sliders" /> WORD
|
|
14
14
|
</v-list-item>
|
|
15
15
|
<v-list-item :disabled="disabledComputed" @click="$useDataTableExport.exportData('print')">
|
|
16
|
-
<i class="icon-file-sliders" /> {{ $i18n.t('table.print') }}
|
|
16
|
+
<i class="icon icon-file-sliders" /> {{ $i18n.t('table.print') }}
|
|
17
17
|
</v-list-item>
|
|
18
18
|
</div>
|
|
19
19
|
</template>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
class="mr-2"
|
|
8
8
|
@click="clear"
|
|
9
9
|
>
|
|
10
|
-
<i class="icon-funnel-x"></i>
|
|
10
|
+
<i class="icon icon-funnel-x"></i>
|
|
11
11
|
</v-btn>
|
|
12
12
|
<v-btn
|
|
13
13
|
v-bind="props"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:width="active_filters.length === 0 ? '100%' : '50%'"
|
|
16
16
|
@click="dialog = true"
|
|
17
17
|
>
|
|
18
|
-
<i class="icon-funnel mr-1"></i> {{ $i18n.t('table.filters') }}
|
|
18
|
+
<i class="icon icon-funnel mr-1"></i> {{ $i18n.t('table.filters') }}
|
|
19
19
|
</v-btn>
|
|
20
20
|
<v-dialog v-model="dialog" width="600">
|
|
21
21
|
<v-card>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</v-col>
|
|
19
19
|
<v-col cols="12" md="12" lg="2" sm="12" class="d-flex justify-end">
|
|
20
20
|
<v-btn v-if="create" color="primary" width="100%" @click="create">
|
|
21
|
-
<i class="icon-plus" /> {{ $i18n.t('table.create') }}
|
|
21
|
+
<i class="icon icon-plus" /> {{ $i18n.t('table.create') }}
|
|
22
22
|
</v-btn>
|
|
23
23
|
</v-col>
|
|
24
24
|
<v-col cols="12" md="12" lg="2" sm="12" class="d-flex justify-end">
|
|
@@ -52,11 +52,10 @@
|
|
|
52
52
|
<v-row
|
|
53
53
|
v-if="multipleDeletion && selected.length !== 0"
|
|
54
54
|
class="mb-2 d-flex justify-end multipleDeletion"
|
|
55
|
-
style="margin-top: -50px"
|
|
56
55
|
>
|
|
57
56
|
<v-col cols="12" md="12" lg="2" sm="12">
|
|
58
57
|
<v-btn color="error" width="100%" @click="multipleDelete">
|
|
59
|
-
<i class="icon-trash" /> {{ $i18n.t('table.delete') }}
|
|
58
|
+
<i class="icon icon-trash" /> {{ $i18n.t('table.delete') }}
|
|
60
59
|
</v-btn>
|
|
61
60
|
</v-col>
|
|
62
61
|
</v-row>
|