@modeltables/fontawesome-vuetify 1.0.4 → 1.0.5

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.
@@ -1,7 +1,7 @@
1
1
  /*! @licence MIT */
2
2
 
3
3
  export { default as TableView } from "./table/TableView.vue";
4
- export { HeaderModel, PaginatonModel, PaginatedResponse } from './models/table-models';
4
+ export { HeaderModel, PaginatonModel, PaginatedResponse } from './models/tablemodels';
5
5
 
6
6
  /*!
7
7
  * Vuetify Labs v3.4.0 by vuetify - https://vuetifyjs.com
@@ -0,0 +1,7 @@
1
+ // Minimal build entry for Vue CLI pages
2
+ console.log('components/index.js loaded for build');
3
+
4
+ // If you want to mount a demo app during build, import Vue and mount here.
5
+ // import { createApp } from 'vue';
6
+ // import App from './App.vue';
7
+ // createApp(App).mount('#app');
@@ -0,0 +1,20 @@
1
+ export declare class HeaderModel {
2
+ title: string;
3
+ key?: string;
4
+ sort?: any;
5
+ }
6
+
7
+ export declare class PaginatonModel {
8
+ PageCount: number;
9
+ PerPage: number;
10
+ CurrentPage: number;
11
+ TotalCount: number;
12
+ }
13
+
14
+ export declare class PaginatedResponse<T> {
15
+ PageSize?: number;
16
+ PageCount?: number;
17
+ CurrentPage?: number;
18
+ TotalCount?: number;
19
+ Items: Array<T>;
20
+ }
@@ -0,0 +1,26 @@
1
+ export class HeaderModel {
2
+ constructor() {
3
+ this.title = '';
4
+ this.key = undefined;
5
+ this.sort = undefined;
6
+ }
7
+ }
8
+
9
+ export class PaginatonModel {
10
+ constructor() {
11
+ this.PageCount = 1;
12
+ this.PerPage = 10;
13
+ this.CurrentPage = 1;
14
+ this.TotalCount = 0;
15
+ }
16
+ }
17
+
18
+ export class PaginatedResponse {
19
+ constructor() {
20
+ this.PageSize = undefined;
21
+ this.PageCount = undefined;
22
+ this.CurrentPage = undefined;
23
+ this.TotalCount = undefined;
24
+ this.Items = [];
25
+ }
26
+ }
@@ -1,8 +1,12 @@
1
1
  <script lang="ts">
2
2
  import { faArrowAltCircleDown } from '@fortawesome/free-regular-svg-icons';
3
3
  import { faChevronLeft, faChevronRight, faFastBackward, faFastForward } from '@fortawesome/free-solid-svg-icons';
4
+ import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
4
5
 
5
6
  export default {
7
+ components: {
8
+ FontAwesomeIcon: FontAwesomeIcon
9
+ },
6
10
  props: {
7
11
  totalCount: {
8
12
  type: Number,
@@ -2,7 +2,8 @@
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, PaginatonModel } from '../models/table-models';
5
+ import { HeaderModel } from './../models/tablemodels';
6
+ import { PaginatonModel } from './../models/tablemodels';
6
7
  import { change, Id, load, rowClick, search } from '../helpers/resources';
7
8
  import Date from '../headerFilters/Date.vue';
8
9
  import Search from '../search/SearchView.vue';
@@ -16,31 +17,27 @@ import DataItem from './data/ItemView.vue';
16
17
  export default {
17
18
  props: {
18
19
  dataheader: {
19
- type: Array<HeaderModel>,
20
+ type: Array<HeaderModel[]>,
21
+ default: () => []
20
22
  },
21
23
  key: {
22
24
  type: String,
23
- required: true,
24
25
  default: () => 'Id'
25
26
  },
26
27
  name: {
27
28
  type: String
28
29
  },
29
30
  dataItems: {
30
- type: Array as () => any[],
31
- reactive: true,
31
+ type: Array<Object[]>,
32
32
  required: true
33
33
  },
34
34
  currentItem: {
35
35
  type: Object,
36
- reactive: true,
37
36
  required: false
38
-
39
37
  },
40
38
  currentId: {
41
39
  type: Number,
42
- reactive: true,
43
- required: false
40
+ required: false
44
41
  },
45
42
  loading: {
46
43
  type: Boolean,
@@ -289,7 +286,7 @@ export default {
289
286
  @filterValue="filterValue($event, filters[prop])">
290
287
  </Filters>
291
288
  </td>
292
- </tr>>
289
+ </tr>
293
290
  <tr @dblclick="updateItem(item, $event)">
294
291
  <td v-for="(prop) in Object.keys(item)">
295
292
  <DataItem