classcard-ui 0.2.277 → 0.2.278

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.277",
3
+ "version": "0.2.278",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,10 +1,18 @@
1
1
  <template>
2
- <div class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6">
2
+ <div
3
+ class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6"
4
+ >
3
5
  <div class="flex-1 flex justify-between sm:hidden">
4
- <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
6
+ <a
7
+ href="#"
8
+ class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"
9
+ >
5
10
  Previous
6
11
  </a>
7
- <a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
12
+ <a
13
+ href="#"
14
+ class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"
15
+ >
8
16
  Next
9
17
  </a>
10
18
  </div>
@@ -12,30 +20,44 @@
12
20
  <div>
13
21
  <p class="text-sm text-gray-700">
14
22
  Showing
15
- <span class="font-medium">1</span>
23
+ <span class="font-medium">{{ setPaginationRecords.from }}</span>
16
24
  to
17
- <span class="font-medium">10</span>
25
+ <span class="font-medium">{{ setPaginationRecords.to }}</span>
18
26
  of
19
- <span class="font-medium">97</span>
27
+ <span class="font-medium">{{ setPaginationRecords.totalRecords }}</span>
20
28
  results
21
29
  </p>
22
30
  </div>
23
31
  <div>
24
- <nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
32
+ <nav
33
+ class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px"
34
+ aria-label="Pagination"
35
+ >
25
36
  <div class="hidden md:-mt-px md:flex">
26
- <div href="#"
37
+ <div
38
+ href="#"
27
39
  @click="currentPageNumber == '1' ? '' : goToPreviousPage()"
28
40
  class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-r-0 border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
29
41
  :class="
30
- currentPageNumber == '1'
31
- ? 'text-gray-400 pointer-events-none'
32
- : 'text-gray-500 hover:text-gray-700 group cursor-pointer'
42
+ currentPageNumber == '1'
43
+ ? 'text-gray-400 pointer-events-none'
44
+ : 'text-gray-500 hover:text-gray-700 group cursor-pointer'
33
45
  "
34
- >
46
+ >
35
47
  <span class="sr-only">Previous</span>
36
48
  <!-- Heroicon name: solid/chevron-left -->
37
- <svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
38
- <path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
49
+ <svg
50
+ class="h-5 w-5"
51
+ xmlns="http://www.w3.org/2000/svg"
52
+ viewBox="0 0 20 20"
53
+ fill="currentColor"
54
+ aria-hidden="true"
55
+ >
56
+ <path
57
+ fill-rule="evenodd"
58
+ d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z"
59
+ clip-rule="evenodd"
60
+ />
39
61
  </svg>
40
62
  </div>
41
63
  <div
@@ -45,7 +67,9 @@
45
67
  page == currentPageNumber
46
68
  ? 'z-10 bg-indigo-50 border-indigo-500 text-indigo-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium'
47
69
  : '',
48
- page === '...' ? 'bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border border-r-0 text-sm font-medium' : '',
70
+ page === '...'
71
+ ? 'bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border border-r-0 text-sm font-medium'
72
+ : '',
49
73
  page !== currentPageNumber && page !== '...'
50
74
  ? 'bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border border-r-0 text-sm font-medium'
51
75
  : '',
@@ -57,19 +81,30 @@
57
81
  {{ page }}
58
82
  </div>
59
83
  </div>
60
- <div href="#"
61
- class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
62
- @click="currentPageNumber == lastPageNumber ? '' : goToNextPage()"
63
- :class="
64
- currentPageNumber == lastPageNumber
65
- ? 'text-gray-400 pointer-events-none'
66
- : 'text-gray-500 hover:text-gray-700 group cursor-pointer'
67
- "
84
+ <div
85
+ href="#"
86
+ class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
87
+ @click="currentPageNumber == lastPageNumber ? '' : goToNextPage()"
88
+ :class="
89
+ currentPageNumber == lastPageNumber
90
+ ? 'text-gray-400 pointer-events-none'
91
+ : 'text-gray-500 hover:text-gray-700 group cursor-pointer'
92
+ "
68
93
  >
69
94
  <span class="sr-only">Next</span>
70
95
  <!-- Heroicon name: solid/chevron-right -->
71
- <svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
72
- <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
96
+ <svg
97
+ class="h-5 w-5"
98
+ xmlns="http://www.w3.org/2000/svg"
99
+ viewBox="0 0 20 20"
100
+ fill="currentColor"
101
+ aria-hidden="true"
102
+ >
103
+ <path
104
+ fill-rule="evenodd"
105
+ d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
106
+ clip-rule="evenodd"
107
+ />
73
108
  </svg>
74
109
  </div>
75
110
  </div>
@@ -95,9 +130,7 @@ export default {
95
130
  type: Function,
96
131
  },
97
132
  },
98
- components: {
99
-
100
- },
133
+ components: {},
101
134
  data() {
102
135
  return {
103
136
  currentPageNumber: this.setPaginationRecords.currentPage,
@@ -152,4 +185,4 @@ export default {
152
185
  },
153
186
  },
154
187
  };
155
- </script>
188
+ </script>