classcard-ui 0.2.296 → 0.2.300

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.296",
3
+ "version": "0.2.300",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -53,6 +53,8 @@
53
53
  "eslint": "^6.7.2",
54
54
  "eslint-plugin-vue": "^6.2.2",
55
55
  "postcss": "^7.0.36",
56
+ "prettier": "^2.5.1",
57
+ "prettier-plugin-tailwindcss": "^0.1.6",
56
58
  "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.14",
57
59
  "vue-template-compiler": "^2.6.14"
58
60
  },
@@ -1,10 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- <div
4
- slot="table-actions"
5
- v-if="tableActions"
6
- class="bg-gray-50 rounded-lg p-3 mb-4"
7
- >
3
+ <div slot="table-actions" v-if="tableActions" class="mb-4 rounded-lg bg-gray-50 p-3">
8
4
  <div class="flex justify-between">
9
5
  <div v-if="searching">
10
6
  <c-input
@@ -22,55 +18,22 @@
22
18
  <div>
23
19
  <button
24
20
  @click="handleToggle"
25
- class="
26
- inline-flex
27
- justify-center
28
- w-full
29
- rounded-md
30
- border border-gray-200
31
- shadow-sm
32
- px-2
33
- py-2
34
- bg-white
35
- text-sm
36
- font-medium
37
- hover:bg-gray-50
38
- focus:outline-none focus:outline-none
39
- focus:ring-2 focus:ring-offset-2 focus:ring-indigo-600
40
- "
21
+ class="focus:outline-none inline-flex w-full justify-center rounded-md border border-gray-200 bg-white px-2 py-2 text-sm font-medium shadow-sm hover:bg-gray-50 focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2"
41
22
  aria-haspopup="true"
42
23
  aria-expanded="true"
43
24
  >
44
- <c-icon
45
- name="view-board"
46
- type="solid"
47
- class="text-gray-400 h-5 w-5"
48
- ></c-icon>
25
+ <c-icon name="view-board" type="solid" class="h-5 w-5 text-gray-400"></c-icon>
49
26
  <c-icon
50
27
  name="chevron-down"
51
28
  type="solid"
52
- class="ml-1 text-gray-400 h-5 w-5"
29
+ class="ml-1 h-5 w-5 text-gray-400"
53
30
  ></c-icon>
54
31
  </button>
55
32
  </div>
56
33
  <!-- dropdown having list of all columns to show hide -->
57
34
  <div
58
35
  v-if="toggleDropdown"
59
- class="
60
- origin-top-right
61
- absolute
62
- right-0
63
- mt-2
64
- -mr-1
65
- w-56
66
- rounded-md
67
- shadow-lg
68
- bg-white
69
- ring-1 ring-gray-900 ring-opacity-5
70
- z-100
71
- overflow-y-auto
72
- max-h-96
73
- "
36
+ class="absolute right-0 z-10 mt-2 -mr-1 max-h-96 w-56 origin-top-right overflow-y-auto rounded-md bg-white shadow-lg ring-1 ring-gray-900 ring-opacity-5"
74
37
  tabindex="0"
75
38
  @blur="handleToggle"
76
39
  >
@@ -84,15 +47,7 @@
84
47
  href="#"
85
48
  v-for="column in showHideColumnList"
86
49
  v-bind:key="column.field"
87
- class="
88
- flex
89
- block
90
- px-4
91
- py-2
92
- text-sm text-gray-700
93
- hover:bg-gray-100
94
- hover:text-gray-900
95
- "
50
+ class="block flex px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900"
96
51
  role="menuitem"
97
52
  >
98
53
  <c-checkbox
@@ -121,12 +76,10 @@
121
76
  </div>
122
77
 
123
78
  <vue-good-table
124
- class="border-solid border-2 border-gray-100 rounded-lg overflow-hidden"
79
+ class="overflow-hidden rounded-lg border-2 border-solid border-gray-100"
125
80
  mode="remote"
126
81
  ref="my-table"
127
- :styleClass="
128
- showLoader ? 'vgt-table opacity-50 pointer-events-none' : 'vgt-table'
129
- "
82
+ :styleClass="showLoader ? 'vgt-table opacity-50 pointer-events-none' : 'vgt-table'"
130
83
  row-style-class="focus:outline-none"
131
84
  min-height="400px"
132
85
  :globalSearch="true"
@@ -170,21 +123,21 @@
170
123
  <c-icon
171
124
  v-if="props.column.direction == null"
172
125
  name="sort-ascending-solid"
173
- class="h-5 w-5 ml-3 invisible sortingIcon"
126
+ class="sortingIcon invisible ml-3 h-5 w-5"
174
127
  type="solid"
175
128
  ></c-icon>
176
129
  <!-- renders when direction is asc -->
177
130
  <c-icon
178
131
  v-else-if="props.column.direction == 'asc'"
179
132
  name="sort-ascending-solid"
180
- class="h-5 w-5 ml-3"
133
+ class="ml-3 h-5 w-5"
181
134
  type="solid"
182
135
  ></c-icon>
183
136
  <!-- renders when direction is desc -->
184
137
  <c-icon
185
138
  v-else-if="props.column.direction == 'desc'"
186
139
  name="sort-descending-solid"
187
- class="h-5 w-5 ml-3"
140
+ class="ml-3 h-5 w-5"
188
141
  type="solid"
189
142
  ></c-icon>
190
143
  </span>
@@ -195,11 +148,7 @@
195
148
  <template slot="table-row" slot-scope="props">
196
149
  <!-- renders if drag and drop is present in table -->
197
150
  <span v-if="props.column.field == 'drag'">
198
- <c-icon
199
- name="menu-solid"
200
- type="solid"
201
- class="h-5 w-5 text-gray-500 handle"
202
- ></c-icon>
151
+ <c-icon name="menu-solid" type="solid" class="handle h-5 w-5 text-gray-500"></c-icon>
203
152
  </span>
204
153
  <!-- if customization or adding another form element is required -->
205
154
  <span v-else-if="props.column.customizeColumn">
@@ -223,7 +172,7 @@
223
172
  <!-- Custom loader for table -->
224
173
  <template slot="loadingContent">
225
174
  <svg
226
- class="animate-spin h-7 w-7 text-white ml-auto mr-auto"
175
+ class="ml-auto mr-auto h-7 w-7 animate-spin text-white"
227
176
  xmlns="http://www.w3.org/2000/svg"
228
177
  fill="none"
229
178
  viewBox="0 0 24 24"
@@ -376,12 +325,8 @@ export default {
376
325
  },
377
326
  // array of rows after drag and drop
378
327
  rearrange(oldIndex, newIndex) {
379
- const movedItem = this.reorderedArray.find(
380
- (item, index) => index === oldIndex
381
- );
382
- const remainingItems = this.reorderedArray.filter(
383
- (item, index) => index !== oldIndex
384
- );
328
+ const movedItem = this.reorderedArray.find((item, index) => index === oldIndex);
329
+ const remainingItems = this.reorderedArray.filter((item, index) => index !== oldIndex);
385
330
  const reorderedItems = [
386
331
  ...remainingItems.slice(0, newIndex),
387
332
  movedItem,
package/src/icons.js CHANGED
@@ -39,6 +39,8 @@ export default {
39
39
  "M19.9,12.66a1,1,0,0,1,0-1.32L21.18,9.9a1,1,0,0,0,.12-1.17l-2-3.46a1,1,0,0,0-1.07-.48l-1.88.38a1,1,0,0,1-1.15-.66l-.61-1.83A1,1,0,0,0,13.64,2h-4a1,1,0,0,0-1,.68L8.08,4.51a1,1,0,0,1-1.15.66L5,4.79A1,1,0,0,0,4,5.27L2,8.73A1,1,0,0,0,2.1,9.9l1.27,1.44a1,1,0,0,1,0,1.32L2.1,14.1A1,1,0,0,0,2,15.27l2,3.46a1,1,0,0,0,1.07.48l1.88-.38a1,1,0,0,1,1.15.66l.61,1.83a1,1,0,0,0,1,.68h4a1,1,0,0,0,.95-.68l.61-1.83a1,1,0,0,1,1.15-.66l1.88.38a1,1,0,0,0,1.07-.48l2-3.46a1,1,0,0,0-.12-1.17ZM18.41,14l.8.9-1.28,2.22-1.18-.24a3,3,0,0,0-3.45,2L12.92,20H10.36L10,18.86a3,3,0,0,0-3.45-2l-1.18.24L4.07,14.89l.8-.9a3,3,0,0,0,0-4l-.8-.9L5.35,6.89l1.18.24a3,3,0,0,0,3.45-2L10.36,4h2.56l.38,1.14a3,3,0,0,0,3.45,2l1.18-.24,1.28,2.22-.8.9A3,3,0,0,0,18.41,14ZM11.64,8a4,4,0,1,0,4,4A4,4,0,0,0,11.64,8Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,11.64,14Z",
40
40
  integration:
41
41
  "M10,13H4a1,1,0,0,0-1,1v6a1,1,0,0,0,1,1h6a1,1,0,0,0,1-1V14A1,1,0,0,0,10,13ZM9,19H5V15H9ZM20,3H14a1,1,0,0,0-1,1v6a1,1,0,0,0,1,1h6a1,1,0,0,0,1-1V4A1,1,0,0,0,20,3ZM19,9H15V5h4Zm1,7H18V14a1,1,0,0,0-2,0v2H14a1,1,0,0,0,0,2h2v2a1,1,0,0,0,2,0V18h2a1,1,0,0,0,0-2ZM10,3H4A1,1,0,0,0,3,4v6a1,1,0,0,0,1,1h6a1,1,0,0,0,1-1V4A1,1,0,0,0,10,3ZM9,9H5V5H9Z",
42
+ "clipboard-solid":
43
+ "M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z",
42
44
  clipboard:
43
45
  "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 2",
44
46
  package:
@@ -199,4 +201,6 @@ export default {
199
201
  "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",
200
202
  "clipboard-check-outline":
201
203
  "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",
204
+ "home":
205
+ "M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"
202
206
  };