classcard-ui 0.2.849 → 0.2.852

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.849",
3
+ "version": "0.2.852",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -7,13 +7,26 @@
7
7
  >
8
8
  <div class="flex items-center justify-between">
9
9
  <div v-if="searching" class="flex items-center">
10
- <c-input
10
+ <!-- <c-input
11
11
  v-model="searchTerm"
12
12
  :isValidate="searching"
13
13
  :placeholder="searchPlaceholder"
14
14
  class="-mt-1 mr-3 w-auto sm:w-56"
15
15
  type="text"
16
- ></c-input>
16
+ ></c-input> -->
17
+
18
+ <div @click="handleRowExpand">
19
+ <c-button-icon
20
+ type="rounded-hover"
21
+ :icon="{
22
+ name: 'pencil-solid',
23
+ type: 'solid',
24
+ class: 'h-5 w-5 text-gray-500',
25
+ }"
26
+ class="ml-3"
27
+ ></c-button-icon>
28
+ </div>
29
+
17
30
  <slot name="tableInfo"></slot>
18
31
  </div>
19
32
  <div class="flex flex-1 justify-end">
@@ -295,7 +308,7 @@ import CButtonIcon from "../CButtonIcon/CButtonIcon.vue";
295
308
  import "vue-good-table/dist/vue-good-table.css";
296
309
  import { VueGoodTable } from "vue-good-table";
297
310
  import Sortable from "@shopify/draggable/lib/es5/sortable.js";
298
- import CInput from "../CInput/CInput.vue";
311
+ // import CInput from "../CInput/CInput.vue";
299
312
  import { debounce, isEqual } from "lodash-es";
300
313
  import VueSkeletonLoader from "skeleton-loader-vue";
301
314
 
@@ -307,7 +320,7 @@ export default {
307
320
  VueGoodTable,
308
321
  CPagination,
309
322
  CButtonIcon,
310
- CInput,
323
+ // CInput,
311
324
  VueSkeletonLoader,
312
325
  },
313
326
  props: {
@@ -444,7 +457,6 @@ export default {
444
457
  sortable.on("sortable:stop", (e) => this.rearrange(e.oldIndex, e.newIndex));
445
458
  document.addEventListener("keydown", this.handleControlClick, true);
446
459
  document.addEventListener("keyup", this.handleControlRelease, true);
447
- this.$refs["my-table"].expandAll();
448
460
  },
449
461
  destroyed() {
450
462
  //to remove the event listener
@@ -565,6 +577,11 @@ export default {
565
577
  this.toggleDownloadDropdown = false;
566
578
  this.$emit("handleDownloadOptionButton", value);
567
579
  },
580
+
581
+ handleRowExpand() {
582
+ console.log("test");
583
+ this.$refs["my-table"].expandAll();
584
+ },
568
585
  },
569
586
  watch: {
570
587
  paginationData(newValue, oldValue) {
@@ -577,6 +594,14 @@ export default {
577
594
  this.reorderedArray = newValue;
578
595
  }
579
596
  },
597
+ enableGrouping: {
598
+ handler(value) {
599
+ console.log(value);
600
+ if (value == true) {
601
+ this.$refs["my-table"].expandAll();
602
+ }
603
+ },
604
+ },
580
605
  },
581
606
  };
582
607
  </script>