classcard-ui 0.2.274 → 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.274",
3
+ "version": "0.2.278",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -5,19 +5,42 @@
5
5
  <div>
6
6
  <button
7
7
  type="white"
8
- @click="toggleDropdown = !toggleDropdown"
8
+ @click.stop="toggleDropdown = !toggleDropdown"
9
9
  @blur="close()"
10
- class="inline-flex justify-center w-full rounded-full border-none p-2 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-600"
10
+ class="
11
+ inline-flex
12
+ justify-center
13
+ w-full
14
+ rounded-full
15
+ border-none
16
+ p-2
17
+ focus:outline-none
18
+ focus:ring-2 focus:ring-offset-2 focus:ring-indigo-600
19
+ "
11
20
  aria-haspopup="true"
12
21
  aria-expanded="true"
13
22
  >
14
- <c-icon :name="icon.name" :type="icon.type" :class="icon.class"></c-icon>
23
+ <c-icon
24
+ :name="icon.name"
25
+ :type="icon.type"
26
+ :class="icon.class"
27
+ ></c-icon>
15
28
  </button>
16
29
  </div>
17
30
  <div
18
31
  v-show="toggleDropdown"
19
32
  :class="classes"
20
- class="origin-top-right z-10 absolute mt-2 -mr-1 rounded-md shadow-lg bg-white ring-1 ring-gray-900 ring-opacity-5"
33
+ class="
34
+ origin-top-right
35
+ z-10
36
+ absolute
37
+ mt-2
38
+ -mr-1
39
+ rounded-md
40
+ shadow-lg
41
+ bg-white
42
+ ring-1 ring-gray-900 ring-opacity-5
43
+ "
21
44
  >
22
45
  <div
23
46
  class="py-2 w-max"
@@ -28,8 +51,16 @@
28
51
  <a
29
52
  v-for="item in items"
30
53
  v-bind:key="item.text"
31
- @mousedown="dropdownAction(item)"
32
- class="flex px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900 cursor-pointer"
54
+ @mousedown.stop="dropdownAction(item)"
55
+ class="
56
+ flex
57
+ px-4
58
+ py-2
59
+ text-sm text-gray-700
60
+ hover:bg-gray-100
61
+ hover:text-gray-900
62
+ cursor-pointer
63
+ "
33
64
  role="menuitem"
34
65
  >
35
66
  {{ item.text }}
@@ -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>
package/src/icons.js CHANGED
@@ -195,4 +195,6 @@ export default {
195
195
  save: "M7.707 10.293a1 1 0 10-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 11.586V6h5a2 2 0 012 2v7a2 2 0 01-2 2H4a2 2 0 01-2-2V8a2 2 0 012-2h5v5.586l-1.293-1.293zM9 4a1 1 0 012 0v2H9V4z",
196
196
  "clipboard-list-solid":
197
197
  "M9 2a1 1 0 000 2h2a1 1 0 100-2H9z M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm3 4a1 1 0 000 2h.01a1 1 0 100-2H7zm3 0a1 1 0 000 2h3a1 1 0 100-2h-3zm-3 4a1 1 0 100 2h.01a1 1 0 100-2H7zm3 0a1 1 0 100 2h3a1 1 0 100-2h-3z",
198
+ "clipboard-check-outline":
199
+ "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4",
198
200
  };