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.
@@ -59841,7 +59841,8 @@ var CIconvue_type_template_id_d574955c_staticRenderFns = []
59841
59841
  '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',
59842
59842
  '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',
59843
59843
  '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',
59844
- 'check-circle-outline': 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'
59844
+ 'check-circle-outline': 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z',
59845
+ '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'
59845
59846
  });
59846
59847
  // 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&
59847
59848
 
@@ -65756,8 +65757,8 @@ var CStats_component = normalizeComponent(
65756
65757
  // CONCATENATED MODULE: ./src/components/CSwitch/index.js
65757
65758
 
65758
65759
  /* harmony default export */ var components_CSwitch = (CSwitch);
65759
- // 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&
65760
- 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":{
65760
+ // 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&
65761
+ 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":{
65761
65762
  enabled: _vm.searching,
65762
65763
  placeholder: _vm.searchPlaceholder,
65763
65764
  trigger: 'enter',
@@ -65773,10 +65774,10 @@ var CTablevue_type_template_id_544ccc38_render = function () {var _vm=this;var _
65773
65774
  enabled: _vm.sorting,
65774
65775
  initialSortBy: _vm.initialSortField,
65775
65776
  },"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)}
65776
- var CTablevue_type_template_id_544ccc38_staticRenderFns = []
65777
+ var CTablevue_type_template_id_123873fd_staticRenderFns = []
65777
65778
 
65778
65779
 
65779
- // CONCATENATED MODULE: ./src/components/CTable/CTable.vue?vue&type=template&id=544ccc38&
65780
+ // CONCATENATED MODULE: ./src/components/CTable/CTable.vue?vue&type=template&id=123873fd&
65780
65781
 
65781
65782
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 5 modules
65782
65783
  var toConsumableArray = __webpack_require__("2909");
@@ -65809,7 +65810,6 @@ var sortable_default = /*#__PURE__*/__webpack_require__.n(es5_sortable);
65809
65810
 
65810
65811
 
65811
65812
 
65812
-
65813
65813
  //
65814
65814
  //
65815
65815
  //
@@ -66099,7 +66099,8 @@ var sortable_default = /*#__PURE__*/__webpack_require__.n(es5_sortable);
66099
66099
  toggleDropdown: false,
66100
66100
  showLoader: this.isLoading,
66101
66101
  searchTerm: "",
66102
- paginationRecords: this.paginationData
66102
+ paginationRecords: this.paginationData,
66103
+ reorderedArray: Object(toConsumableArray["a" /* default */])(this.rows)
66103
66104
  };
66104
66105
  },
66105
66106
  methods: {
@@ -66112,24 +66113,15 @@ var sortable_default = /*#__PURE__*/__webpack_require__.n(es5_sortable);
66112
66113
  },
66113
66114
  // array of rows after drag and drop
66114
66115
  rearrange: function rearrange(oldIndex, newIndex) {
66115
- var reorderedArray = [];
66116
- this.rows.forEach(function (row) {
66117
- reorderedArray.push({
66118
- oldID: row.id
66119
- });
66120
- });
66121
- var movedItem = this.rows.find(function (item, index) {
66116
+ var movedItem = this.reorderedArray.find(function (item, index) {
66122
66117
  return index === oldIndex;
66123
66118
  });
66124
- var remainingItems = this.rows.filter(function (item, index) {
66119
+ var remainingItems = this.reorderedArray.filter(function (item, index) {
66125
66120
  return index !== oldIndex;
66126
66121
  });
66127
66122
  var reorderedItems = [].concat(Object(toConsumableArray["a" /* default */])(remainingItems.slice(0, newIndex)), [movedItem], Object(toConsumableArray["a" /* default */])(remainingItems.slice(newIndex)));
66128
- reorderedItems.forEach(function (row, index) {
66129
- reorderedArray[index].newID = row.id;
66130
- });
66131
- this.$emit('reordered', reorderedArray);
66132
- return reorderedArray;
66123
+ this.reorderedArray = Object(toConsumableArray["a" /* default */])(reorderedItems);
66124
+ this.$emit('reordered', this.reorderedArray);
66133
66125
  },
66134
66126
  // listing functions
66135
66127
  sortChange: function sortChange(params) {
@@ -66180,8 +66172,8 @@ var CTablevue_type_style_index_0_lang_css_ = __webpack_require__("8485");
66180
66172
 
66181
66173
  var CTable_component = normalizeComponent(
66182
66174
  CTable_CTablevue_type_script_lang_js_,
66183
- CTablevue_type_template_id_544ccc38_render,
66184
- CTablevue_type_template_id_544ccc38_staticRenderFns,
66175
+ CTablevue_type_template_id_123873fd_render,
66176
+ CTablevue_type_template_id_123873fd_staticRenderFns,
66185
66177
  false,
66186
66178
  null,
66187
66179
  null,