classcard-ui 0.2.800 → 0.2.802
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/dist/classcard-ui.common.js +58 -88
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +58 -88
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CTable/CTable.vue +6 -36
package/package.json
CHANGED
|
@@ -167,15 +167,14 @@
|
|
|
167
167
|
mode="remote"
|
|
168
168
|
ref="my-table"
|
|
169
169
|
:styleClass="
|
|
170
|
-
|
|
170
|
+
isLoading ? 'vgt-table opacity-50 pointer-events-none' : 'vgt-table'
|
|
171
171
|
"
|
|
172
172
|
:row-style-class="rowStyleClassFn"
|
|
173
173
|
min-height="400px"
|
|
174
174
|
:globalSearch="true"
|
|
175
|
-
:isLoading="showLoader"
|
|
176
175
|
:totalRows="totalRecords"
|
|
177
176
|
:columns="cols"
|
|
178
|
-
:rows="
|
|
177
|
+
:rows="[]"
|
|
179
178
|
:search-options="{
|
|
180
179
|
enabled: searching,
|
|
181
180
|
externalQuery: searchTerm,
|
|
@@ -235,7 +234,7 @@
|
|
|
235
234
|
{{ props.column.label }}
|
|
236
235
|
</span>
|
|
237
236
|
</template>
|
|
238
|
-
<div slot="emptystate">
|
|
237
|
+
<div slot="emptystate" v-if="isLoading">
|
|
239
238
|
<vue-skeleton-loader
|
|
240
239
|
v-for="(item, index) in 10"
|
|
241
240
|
:key="index"
|
|
@@ -277,30 +276,6 @@
|
|
|
277
276
|
@setNextPage="setNextPageRecords"
|
|
278
277
|
></c-pagination>
|
|
279
278
|
</template>
|
|
280
|
-
<!-- Custom loader for table -->
|
|
281
|
-
<template slot="loadingContent">
|
|
282
|
-
<svg
|
|
283
|
-
class="ml-auto mr-auto h-7 w-7 animate-spin text-white"
|
|
284
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
285
|
-
fill="none"
|
|
286
|
-
viewBox="0 0 24 24"
|
|
287
|
-
>
|
|
288
|
-
<circle
|
|
289
|
-
class="opacity-25"
|
|
290
|
-
cx="12"
|
|
291
|
-
cy="12"
|
|
292
|
-
r="10"
|
|
293
|
-
stroke="currentColor"
|
|
294
|
-
stroke-width="4"
|
|
295
|
-
></circle>
|
|
296
|
-
<path
|
|
297
|
-
class="opacity-75"
|
|
298
|
-
fill="currentColor"
|
|
299
|
-
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
300
|
-
></path>
|
|
301
|
-
</svg>
|
|
302
|
-
</template>
|
|
303
|
-
<!-- <div slot="emptystate"></div> -->
|
|
304
279
|
</vue-good-table>
|
|
305
280
|
</div>
|
|
306
281
|
</template>
|
|
@@ -353,10 +328,6 @@ export default {
|
|
|
353
328
|
type: Boolean,
|
|
354
329
|
default: true,
|
|
355
330
|
},
|
|
356
|
-
// To show and hide loader on table
|
|
357
|
-
isLoading: {
|
|
358
|
-
type: Boolean,
|
|
359
|
-
},
|
|
360
331
|
// All the buttons displayed on top right side of table
|
|
361
332
|
tableActions: {
|
|
362
333
|
type: Boolean,
|
|
@@ -369,6 +340,9 @@ export default {
|
|
|
369
340
|
searchQuery: {
|
|
370
341
|
type: String,
|
|
371
342
|
},
|
|
343
|
+
isLoading: {
|
|
344
|
+
type: Boolean,
|
|
345
|
+
},
|
|
372
346
|
// Total number of rows in a table to calculate page numbers
|
|
373
347
|
totalRecords: {
|
|
374
348
|
type: String,
|
|
@@ -464,7 +438,6 @@ export default {
|
|
|
464
438
|
return {
|
|
465
439
|
toggleDropdown: false,
|
|
466
440
|
toggleDownloadDropdown: false,
|
|
467
|
-
showLoader: this.isLoading,
|
|
468
441
|
searchTerm: this.searchQuery ? this.searchQuery : "",
|
|
469
442
|
paginationRecords: this.paginationData,
|
|
470
443
|
reorderedArray: [...this.rows],
|
|
@@ -563,9 +536,6 @@ export default {
|
|
|
563
536
|
},
|
|
564
537
|
},
|
|
565
538
|
watch: {
|
|
566
|
-
isLoading() {
|
|
567
|
-
this.showLoader = this.isLoading;
|
|
568
|
-
},
|
|
569
539
|
paginationData(newValue, oldValue) {
|
|
570
540
|
if (!isEqual(newValue, oldValue)) {
|
|
571
541
|
this.paginationRecords = newValue;
|