@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.
@@ -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 { TableOptions } from '@/components/models/tablemodels';
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: TableOptions,
31
+ type: Options,
32
32
  required: true,
33
- default: () => new TableOptions()
33
+ default: () => new Options()
34
34
  },
35
35
  prop: {
36
36
  type: String,
@@ -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, TableOptions } from '@/components/models/tablemodels';
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
@@ -19,7 +19,7 @@ export declare class PaginatedResponse<T> {
19
19
  Items: Array<T>;
20
20
  }
21
21
 
22
- export declare class TableOptions {
22
+ export declare class Options {
23
23
  Key?: string;
24
24
  Name?: string;
25
25
  }
@@ -25,7 +25,7 @@ export class PaginatedResponse {
25
25
  }
26
26
  }
27
27
 
28
- export class TableOptions {
28
+ export class Options {
29
29
  constructor() {
30
30
  this.Key = "Id";
31
31
  this.Name = undefined;
@@ -19,7 +19,7 @@ export class PaginatedResponse<T>{
19
19
  Items: Array<T> = []
20
20
  }
21
21
 
22
- export class TableOptions{
22
+ export class Options{
23
23
  Key?: string;
24
24
  Name?: string;
25
25
  }
@@ -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 { TableOptions } from '@/components/models/tablemodels';
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: TableOptions,
11
+ type: Options,
12
12
  required: true,
13
- default: () => new TableOptions()
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 style="display: flex">
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, TableOptions } from '@/components/models/tablemodels';
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: TableOptions,
24
+ type: Options,
25
25
  required: false,
26
- default: () => new TableOptions()
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 { TableOptions } from '@/components/models/tablemodels';
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: TableOptions,
20
+ type: Options,
21
21
  required: false,
22
- default: () => new TableOptions()
22
+ default: () => new Options()
23
23
  }
24
24
  },
25
25
  watch: {