classcard-ui 0.2.186 → 0.2.190

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.
@@ -59850,7 +59850,8 @@ var CIconvue_type_template_id_d574955c_staticRenderFns = []
59850
59850
  'globe-alt-solid': 'M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z',
59851
59851
  'x-circle-solid': 'M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z',
59852
59852
  'x-circle-outline': 'M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z',
59853
- 'check-circle-outline': 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'
59853
+ 'check-circle-outline': 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z',
59854
+ 'play-solid': 'M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z'
59854
59855
  });
59855
59856
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CIcon/CIcon.vue?vue&type=script&lang=js&
59856
59857
 
@@ -65765,8 +65766,8 @@ var CStats_component = normalizeComponent(
65765
65766
  // CONCATENATED MODULE: ./src/components/CSwitch/index.js
65766
65767
 
65767
65768
  /* harmony default export */ var components_CSwitch = (CSwitch);
65768
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"fb2328fa-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CTable/CTable.vue?vue&type=template&id=544ccc38&
65769
- var CTablevue_type_template_id_544ccc38_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('vue-good-table',{ref:"my-table",attrs:{"mode":"remote","styleClass":_vm.showLoader ? 'vgt-table opacity-50 pointer-events-none' : 'vgt-table',"row-style-class":"focus:outline-none","min-height":"400px","globalSearch":true,"isLoading":_vm.showLoader,"totalRows":_vm.totalRecords,"columns":_vm.cols,"rows":_vm.rows,"search-options":{
65769
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"fb2328fa-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CTable/CTable.vue?vue&type=template&id=123873fd&
65770
+ var CTablevue_type_template_id_123873fd_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('vue-good-table',{ref:"my-table",attrs:{"mode":"remote","styleClass":_vm.showLoader ? 'vgt-table opacity-50 pointer-events-none' : 'vgt-table',"row-style-class":"focus:outline-none","min-height":"400px","globalSearch":true,"isLoading":_vm.showLoader,"totalRows":_vm.totalRecords,"columns":_vm.cols,"rows":_vm.rows,"search-options":{
65770
65771
  enabled: _vm.searching,
65771
65772
  placeholder: _vm.searchPlaceholder,
65772
65773
  trigger: 'enter',
@@ -65782,10 +65783,10 @@ var CTablevue_type_template_id_544ccc38_render = function () {var _vm=this;var _
65782
65783
  enabled: _vm.sorting,
65783
65784
  initialSortBy: _vm.initialSortField,
65784
65785
  },"pagination-options":{ enabled: _vm.pagination }},on:{"on-selected-rows-change":_vm.selectionChanged,"on-sort-change":_vm.sortChange,"on-search":_vm.onSearching,"on-row-click":_vm.onRowClick},scopedSlots:_vm._u([{key:"table-column",fn:function(props){return [(props.column.sortable || _vm.sorting)?_c('span',{staticClass:"flex"},[_c('div',[_vm._v(" "+_vm._s(props.column.label)+" ")]),(props.column.direction == null)?_c('c-icon',{staticClass:"h-5 w-5 ml-3 invisible sortingIcon",attrs:{"name":"sort-ascending-solid","type":"solid"}}):(props.column.direction == 'asc')?_c('c-icon',{staticClass:"h-5 w-5 ml-3",attrs:{"name":"sort-ascending-solid","type":"solid"}}):(props.column.direction == 'desc')?_c('c-icon',{staticClass:"h-5 w-5 ml-3",attrs:{"name":"sort-descending-solid","type":"solid"}}):_vm._e()],1):_c('span',[_vm._v(" "+_vm._s(props.column.label)+" ")])]}},{key:"table-row",fn:function(props){return [(props.column.field == 'drag')?_c('span',[_c('c-icon',{staticClass:"h-5 w-5 text-gray-500 handle",attrs:{"name":"menu-solid","type":"solid"}})],1):(props.column.customizeColumn)?_c('span',[_vm._t("default",null,{"records":props})],2):_c('span',[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]}}])},[_vm._v(" > "),(_vm.tableActions)?_c('div',{attrs:{"slot":"table-actions"},slot:"table-actions"},[_c('div',{staticClass:"flex flex-row-reverse"},[_c('div',[_c('c-button-icon',{staticClass:"ml-3",attrs:{"type":"white","icon":{ name: 'download', type: 'outline', class: 'h-5 w-5 text-gray-400' }}})],1),_c('div',{staticClass:"relative inline-block text-left"},[_c('div',[_c('button',{staticClass:"inline-flex justify-center w-full rounded-md border border-gray-200 shadow-sm px-2 py-2 bg-white text-sm font-medium hover:bg-gray-50 focus:outline-none focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-600",attrs:{"aria-haspopup":"true","aria-expanded":"true"},on:{"click":function($event){_vm.toggleDropdown = !_vm.toggleDropdown}}},[_c('c-icon',{staticClass:"text-gray-400 h-5 w-5",attrs:{"name":"view-board","type":"solid"}}),_c('c-icon',{staticClass:"ml-1 text-gray-400 h-5 w-5",attrs:{"name":"chevron-down","type":"solid"}})],1)]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.toggleDropdown),expression:"toggleDropdown"}],staticClass:"origin-top-right absolute right-0 mt-2 -mr-1 w-56 rounded-md shadow-lg bg-white ring-1 ring-gray-900 ring-opacity-5 z-100 overflow-y-auto max-h-96"},[_c('div',{staticClass:"py-1",attrs:{"role":"menu","aria-orientation":"vertical","aria-labelledby":"option-menu"}},_vm._l((_vm.showHideColumnList),function(column){return _c('a',{key:column.field,staticClass:"flex block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900",attrs:{"href":"#","role":"menuitem"}},[_c('c-checkbox',{attrs:{"label":column.label,"value":!column.hidden},on:{"onChange":function($event){return _vm.showHideColumn($event, column.field)}}})],1)}),0)])]),_vm._t("action")],2)]):_vm._e(),(_vm.pagination)?_c('template',{slot:"pagination-bottom"},[(_vm.paginationRecords.totalRecords > 0)?_c('c-pagination',{attrs:{"setPaginationRecords":_vm.paginationRecords},on:{"setCurrentPage":_vm.setCurrentPageRecords,"setPreviousPage":_vm.setPreviousPageRecords,"setNextPage":_vm.setNextPageRecords}}):_vm._e()],1):_vm._e(),_c('template',{slot:"loadingContent"},[_c('svg',{staticClass:"animate-spin h-10 w-10 ml-auto mr-auto",attrs:{"xmlns":"http://www.w3.org/2000/svg","fill":"none","viewBox":"0 0 24 24"}},[_c('circle',{staticClass:"opacity-25",attrs:{"cx":"12","cy":"12","r":"10","stroke":"currentColor","stroke-width":"4"}}),_c('path',{staticClass:"opacity-75",attrs:{"fill":"currentColor","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"}})])])],2)],1)}
65785
- var CTablevue_type_template_id_544ccc38_staticRenderFns = []
65786
+ var CTablevue_type_template_id_123873fd_staticRenderFns = []
65786
65787
 
65787
65788
 
65788
- // CONCATENATED MODULE: ./src/components/CTable/CTable.vue?vue&type=template&id=544ccc38&
65789
+ // CONCATENATED MODULE: ./src/components/CTable/CTable.vue?vue&type=template&id=123873fd&
65789
65790
 
65790
65791
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 5 modules
65791
65792
  var toConsumableArray = __webpack_require__("2909");
@@ -65818,7 +65819,6 @@ var sortable_default = /*#__PURE__*/__webpack_require__.n(es5_sortable);
65818
65819
 
65819
65820
 
65820
65821
 
65821
-
65822
65822
  //
65823
65823
  //
65824
65824
  //
@@ -66108,7 +66108,8 @@ var sortable_default = /*#__PURE__*/__webpack_require__.n(es5_sortable);
66108
66108
  toggleDropdown: false,
66109
66109
  showLoader: this.isLoading,
66110
66110
  searchTerm: "",
66111
- paginationRecords: this.paginationData
66111
+ paginationRecords: this.paginationData,
66112
+ reorderedArray: Object(toConsumableArray["a" /* default */])(this.rows)
66112
66113
  };
66113
66114
  },
66114
66115
  methods: {
@@ -66121,24 +66122,15 @@ var sortable_default = /*#__PURE__*/__webpack_require__.n(es5_sortable);
66121
66122
  },
66122
66123
  // array of rows after drag and drop
66123
66124
  rearrange: function rearrange(oldIndex, newIndex) {
66124
- var reorderedArray = [];
66125
- this.rows.forEach(function (row) {
66126
- reorderedArray.push({
66127
- oldID: row.id
66128
- });
66129
- });
66130
- var movedItem = this.rows.find(function (item, index) {
66125
+ var movedItem = this.reorderedArray.find(function (item, index) {
66131
66126
  return index === oldIndex;
66132
66127
  });
66133
- var remainingItems = this.rows.filter(function (item, index) {
66128
+ var remainingItems = this.reorderedArray.filter(function (item, index) {
66134
66129
  return index !== oldIndex;
66135
66130
  });
66136
66131
  var reorderedItems = [].concat(Object(toConsumableArray["a" /* default */])(remainingItems.slice(0, newIndex)), [movedItem], Object(toConsumableArray["a" /* default */])(remainingItems.slice(newIndex)));
66137
- reorderedItems.forEach(function (row, index) {
66138
- reorderedArray[index].newID = row.id;
66139
- });
66140
- this.$emit('reordered', reorderedArray);
66141
- return reorderedArray;
66132
+ this.reorderedArray = Object(toConsumableArray["a" /* default */])(reorderedItems);
66133
+ this.$emit('reordered', this.reorderedArray);
66142
66134
  },
66143
66135
  // listing functions
66144
66136
  sortChange: function sortChange(params) {
@@ -66189,8 +66181,8 @@ var CTablevue_type_style_index_0_lang_css_ = __webpack_require__("8485");
66189
66181
 
66190
66182
  var CTable_component = normalizeComponent(
66191
66183
  CTable_CTablevue_type_script_lang_js_,
66192
- CTablevue_type_template_id_544ccc38_render,
66193
- CTablevue_type_template_id_544ccc38_staticRenderFns,
66184
+ CTablevue_type_template_id_123873fd_render,
66185
+ CTablevue_type_template_id_123873fd_staticRenderFns,
66194
66186
  false,
66195
66187
  null,
66196
66188
  null,