@modeltables/fontawesome-vuetify 1.2.0 → 1.3.0
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/components/headerFilters/Filters.vue +3 -3
- package/components/index.d.ts +1 -1
- package/components/models/tablemodels.d.ts +1 -1
- package/components/models/tablemodels.js +1 -1
- package/components/models/tablemodels.ts +1 -1
- package/components/sort/SortView.vue +5 -4
- package/components/table/TableView.vue +3 -3
- package/components/table/data/ItemView.vue +3 -3
- package/dist/index.amd.ts +2 -2
- package/dist/index.esm.ts +92 -89
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { isDateTime, isNumber, isString } from '../helpers/instances';
|
|
|
5
5
|
import Date from '@/components/headerFilters/Date.vue';
|
|
6
6
|
import Number from '@/components/headerFilters/Number.vue';
|
|
7
7
|
import Text from '@/components/headerFilters/Text.vue';
|
|
8
|
-
import {
|
|
8
|
+
import { Options } from '@/components/models/tablemodels';
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
11
|
components: {
|
|
@@ -28,9 +28,9 @@ export default {
|
|
|
28
28
|
required: true
|
|
29
29
|
},
|
|
30
30
|
options: {
|
|
31
|
-
type:
|
|
31
|
+
type: Options,
|
|
32
32
|
required: true,
|
|
33
|
-
default: () => new
|
|
33
|
+
default: () => new Options()
|
|
34
34
|
},
|
|
35
35
|
prop: {
|
|
36
36
|
type: String,
|
package/components/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! @licence MIT */
|
|
2
2
|
|
|
3
3
|
export { default as TableView } from "@/components/table/TableView.vue";
|
|
4
|
-
export { HeaderModel, PaginatonModel, PaginatedResponse,
|
|
4
|
+
export { HeaderModel, PaginatonModel, PaginatedResponse, Options } from '@/components/models/tablemodels';
|
|
5
5
|
|
|
6
6
|
/*!
|
|
7
7
|
* Vuetify Labs v3.4.0 by vuetify - https://vuetifyjs.com
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
|
3
3
|
import { faCaretDown, faCaretUp } from '@fortawesome/free-solid-svg-icons';
|
|
4
|
-
import {
|
|
4
|
+
import { Options } from '@/components/models/tablemodels';
|
|
5
5
|
export default {
|
|
6
6
|
components: {
|
|
7
7
|
FontAwesomeIcon
|
|
8
8
|
},
|
|
9
9
|
props: {
|
|
10
10
|
options: {
|
|
11
|
-
type:
|
|
11
|
+
type: Options,
|
|
12
12
|
required: true,
|
|
13
|
-
default: () => new
|
|
13
|
+
default: () => new Options()
|
|
14
14
|
},
|
|
15
15
|
prop: {
|
|
16
16
|
type: Object,
|
|
@@ -44,7 +44,8 @@ export default {
|
|
|
44
44
|
</script>
|
|
45
45
|
|
|
46
46
|
<template>
|
|
47
|
-
<div
|
|
47
|
+
<div v-if="index > 0"
|
|
48
|
+
style="display: flex">
|
|
48
49
|
{{ prop.title }}
|
|
49
50
|
<div v-if="prop.sort">
|
|
50
51
|
<FontAwesomeIcon @click="sort($event, prop, index)" :icon="carretDown"></FontAwesomeIcon>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { ref } from 'vue'
|
|
3
3
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
|
4
4
|
import { faRefresh, faSearch } from '@fortawesome/free-solid-svg-icons';
|
|
5
|
-
import { HeaderModel,
|
|
5
|
+
import { HeaderModel, Options } from '@/components/models/tablemodels';
|
|
6
6
|
import { PaginatonModel } from '@/components/models/tablemodels';
|
|
7
7
|
import { change, load, rowClick, search } from '@/components/helpers/resources';
|
|
8
8
|
import Date from '@/components/headerFilters/Date.vue';
|
|
@@ -21,9 +21,9 @@ export default {
|
|
|
21
21
|
default: () => []
|
|
22
22
|
},
|
|
23
23
|
options: {
|
|
24
|
-
type:
|
|
24
|
+
type: Options,
|
|
25
25
|
required: false,
|
|
26
|
-
default: () => new
|
|
26
|
+
default: () => new Options()
|
|
27
27
|
},
|
|
28
28
|
name: {
|
|
29
29
|
type: String
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { isDateTime, toDate } from '@/components/helpers/instances';
|
|
3
|
-
import {
|
|
3
|
+
import { Options } from '@/components/models/tablemodels';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
props: {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
required: true
|
|
18
18
|
},
|
|
19
19
|
options: {
|
|
20
|
-
type:
|
|
20
|
+
type: Options,
|
|
21
21
|
required: false,
|
|
22
|
-
default: () => new
|
|
22
|
+
default: () => new Options()
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
watch: {
|