tg-listv 0.1.2 → 0.1.3

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.
@@ -39148,12 +39148,12 @@ var component = normalizeComponent(
39148
39148
  )
39149
39149
 
39150
39150
  /* harmony default export */ var RowActions = (component.exports);
39151
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1bc84821-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Pager.vue?vue&type=template&id=793a6cdc&
39152
- var Pagervue_type_template_id_793a6cdc_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.TotalPages>0)?_c('div',{staticClass:"nu-paging"},[_c('nav',{attrs:{"aria-label":"Page navigation example col-sm-12 col-md-12 col-lg-12 col-xl-12 float-left"}},[_c('ul',{staticClass:"pagination row"},[_c('li',{staticClass:"col-sm-12 col-md-6 col-lg-6 col-xl-6 float-left choose-page"},[_c('span',{staticClass:"mr-2"},[_vm._v("Show")]),_c('span',{staticClass:"select"},[_c('select',{directives:[{name:"model",rawName:"v-model",value:(_vm.PageSize),expression:"PageSize"}],staticClass:"form-control form-control-sm",attrs:{"id":"pageSize","name":"pageSize"},on:{"change":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return val}); _vm.PageSize=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.SetPageSize]}},_vm._l((_vm.PageSizeOption),function(item){return _c('option',{domProps:{"value":item}},[_vm._v(_vm._s(item))])}),0)]),_c('span',{staticClass:"ms-2"},[_vm._v(_vm._s((" Showing " + (((_vm.CurrentPage-1)*_vm.PageSize)+1) + " to " + ((_vm.PageSize*_vm.CurrentPage > _vm.TotalRecords ? _vm.TotalRecords : _vm.PageSize*_vm.CurrentPage)) + " of " + _vm.TotalRecords + " entries")))])]),_c('li',{staticClass:"col-sm-12 col-md-6 col-lg-6 col-xl-6 float-left"},[(_vm.TotalPages>1)?_c('ul',{staticClass:"paging-count"},[_c('li',{staticClass:"page-item"},[(_vm.CurrentPage!=1)?_c('a',{staticClass:"page-link first",attrs:{"title":_vm.firstText,"href":"javascript:;","val":"1"},on:{"click":function($event){return _vm.SetCurrentPage(1)}}},[_vm._v(_vm._s(_vm.firstText))]):_vm._e(),(_vm.CurrentPage==1)?_c('a',{staticClass:"page-link first disabled",attrs:{"title":_vm.firstText,"val":"1"}},[_vm._v(_vm._s(_vm.firstText))]):_vm._e()]),_c('li',{staticClass:"page-item"},[(_vm.CurrentPage!=1)?_c('a',{staticClass:"page-link previous",attrs:{"title":_vm.prevText,"href":"javascript:;"},on:{"click":function($event){return _vm.SetCurrentPage(_vm.CurrentPage-1)}}},[_vm._v(_vm._s(_vm.prevText))]):_vm._e(),(_vm.CurrentPage==1)?_c('a',{staticClass:"page-link previous disabled",attrs:{"title":_vm.prevText}},[_vm._v(_vm._s(_vm.prevText))]):_vm._e()]),_vm._l((_vm.TotalPages),function(data,index){return [(data>=_vm.GroupStart && data<=_vm.GroupEnd)?_c('li',{staticClass:"page-item"},[(index+1==_vm.CurrentPage)?_c('a',{staticClass:"page-link active",attrs:{"href":"javascript:;"}},[_vm._v(_vm._s(index+1))]):_vm._e(),(index+1!=_vm.CurrentPage)?_c('a',{staticClass:"page-link",attrs:{"href":"javascript:;","val":index},on:{"click":function($event){return _vm.SetCurrentPage(index+1)}}},[_vm._v(_vm._s(index+1))]):_vm._e()]):_vm._e()]}),_c('li',{staticClass:"page-item"},[(_vm.CurrentPage<_vm.TotalPages)?_c('a',{staticClass:"page-link next",attrs:{"title":_vm.nextText,"href":"javascript:;"},on:{"click":function($event){return _vm.SetCurrentPage(_vm.CurrentPage+1)}}},[_vm._v(_vm._s(_vm.nextText))]):_vm._e(),(_vm.CurrentPage>=_vm.TotalPages)?_c('a',{staticClass:"page-link disabled next",attrs:{"title":_vm.nextText}},[_vm._v(_vm._s(_vm.nextText))]):_vm._e()]),_c('li',{staticClass:"page-item"},[(_vm.CurrentPage!=_vm.TotalPages)?_c('a',{staticClass:"page-link next",attrs:{"title":_vm.lastText,"href":"javascript:;","val":_vm.TotalPages},on:{"click":function($event){return _vm.SetCurrentPage(_vm.TotalPages)}}},[_vm._v(_vm._s(_vm.lastText))]):_vm._e(),(_vm.CurrentPage==_vm.TotalPages)?_c('a',{staticClass:"page-link next disabled",attrs:{"title":_vm.lastText,"val":_vm.TotalPages}},[_vm._v(_vm._s(_vm.lastText))]):_vm._e()])],2):_vm._e()])])])]):_vm._e()}
39153
- var Pagervue_type_template_id_793a6cdc_staticRenderFns = []
39151
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1bc84821-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Pager.vue?vue&type=template&id=789320e8&
39152
+ var Pagervue_type_template_id_789320e8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.TotalPages>0)?_c('div',{staticClass:"nu-paging"},[_c('nav',{attrs:{"aria-label":"Page navigation example col-sm-12 col-md-12 col-lg-12 col-xl-12 float-left"}},[_c('ul',{staticClass:"pagination row"},[_c('li',{staticClass:"col-sm-12 col-md-6 col-lg-6 col-xl-6 float-left choose-page"},[_c('span',{staticClass:"mr-2"},[_vm._v("Show")]),_c('span',{staticClass:"select"},[_c('select',{directives:[{name:"model",rawName:"v-model",value:(_vm.PageSize),expression:"PageSize"}],staticClass:"form-control form-control-sm",attrs:{"id":"pageSize","name":"pageSize"},on:{"change":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return val}); _vm.PageSize=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.SetPageSize]}},_vm._l((_vm.PageSizeOption),function(item){return _c('option',{domProps:{"value":item}},[_vm._v(_vm._s(item))])}),0)]),_c('span',{staticClass:"ms-2"},[_vm._v(_vm._s((" Showing " + (((_vm.CurrentPage-1)*_vm.PageSize)+1) + " to " + ((_vm.PageSize*_vm.CurrentPage > _vm.TotalRecords ? _vm.TotalRecords : _vm.PageSize*_vm.CurrentPage)) + " of " + _vm.TotalRecords + " entries")))])]),_c('li',{staticClass:"col-sm-12 col-md-6 col-lg-6 col-xl-6 float-left"},[(_vm.TotalPages>1)?_c('ul',{staticClass:"paging-count"},[_c('li',{staticClass:"page-item"},[(_vm.CurrentPage!=1)?_c('a',{staticClass:"page-link first",attrs:{"title":_vm.firstText,"href":"javascript:;","val":"1"},on:{"click":function($event){return _vm.SetCurrentPage(1)}}},[_vm._v(_vm._s(_vm.firstText))]):_vm._e(),(_vm.CurrentPage==1)?_c('a',{staticClass:"page-link first disabled",attrs:{"title":_vm.firstText,"val":"1"}},[_vm._v(_vm._s(_vm.firstText))]):_vm._e()]),_c('li',{staticClass:"page-item"},[(_vm.CurrentPage!=1)?_c('a',{staticClass:"page-link previous",attrs:{"title":_vm.prevText,"href":"javascript:;"},on:{"click":function($event){return _vm.SetCurrentPage(_vm.CurrentPage-1)}}},[_vm._v(_vm._s(_vm.prevText))]):_vm._e(),(_vm.CurrentPage==1)?_c('a',{staticClass:"page-link previous disabled",attrs:{"title":_vm.prevText}},[_vm._v(_vm._s(_vm.prevText))]):_vm._e()]),_c('li',{staticClass:"page-item"},[(_vm.GroupStart == _vm.CurrentPage)?_c('a',{staticClass:"page-link active",attrs:{"href":"javascript:;"}},[_vm._v(_vm._s(_vm.GroupStart))]):_vm._e(),((_vm.GroupStart)!=_vm.CurrentPage)?_c('a',{staticClass:"page-link",attrs:{"href":"javascript:;","val":_vm.GroupStart},on:{"click":function($event){return _vm.SetCurrentPage(_vm.GroupStart)}}},[_vm._v(_vm._s(_vm.GroupStart))]):_vm._e()]),(_vm.GroupEnd > 1)?_c('li',{staticClass:"page-item"},[((_vm.GroupStart + 1) == _vm.CurrentPage)?_c('a',{staticClass:"page-link active",attrs:{"href":"javascript:;"}},[_vm._v(_vm._s(_vm.GroupStart + 1))]):_vm._e(),((_vm.GroupStart + 1) != _vm.CurrentPage)?_c('a',{staticClass:"page-link",attrs:{"href":"javascript:;","val":(_vm.GroupStart + 1)},on:{"click":function($event){_vm.SetCurrentPage((_vm.GroupStart + 1))}}},[_vm._v(_vm._s(_vm.GroupStart + 1))]):_vm._e()]):_vm._e(),(_vm.GroupEnd > 2)?_c('li',{staticClass:"page-item"},[(_vm.GroupEnd == _vm.CurrentPage)?_c('a',{staticClass:"page-link active",attrs:{"href":"javascript:;"}},[_vm._v(_vm._s(_vm.GroupEnd))]):_vm._e(),(_vm.GroupEnd != _vm.CurrentPage)?_c('a',{staticClass:"page-link",attrs:{"href":"javascript:;","val":_vm.GroupEnd},on:{"click":function($event){return _vm.SetCurrentPage(_vm.GroupEnd)}}},[_vm._v(_vm._s(_vm.GroupEnd))]):_vm._e()]):_vm._e(),_c('li',{staticClass:"page-item"},[(_vm.CurrentPage<_vm.TotalPages)?_c('a',{staticClass:"page-link next",attrs:{"title":_vm.nextText,"href":"javascript:;"},on:{"click":function($event){return _vm.SetCurrentPage(_vm.CurrentPage+1)}}},[_vm._v(_vm._s(_vm.nextText))]):_vm._e(),(_vm.CurrentPage>=_vm.TotalPages)?_c('a',{staticClass:"page-link disabled next",attrs:{"title":_vm.nextText}},[_vm._v(_vm._s(_vm.nextText))]):_vm._e()]),_c('li',{staticClass:"page-item"},[(_vm.CurrentPage!=_vm.TotalPages)?_c('a',{staticClass:"page-link next",attrs:{"title":_vm.lastText,"href":"javascript:;","val":_vm.TotalPages},on:{"click":function($event){return _vm.SetCurrentPage(_vm.TotalPages)}}},[_vm._v(_vm._s(_vm.lastText))]):_vm._e(),(_vm.CurrentPage==_vm.TotalPages)?_c('a',{staticClass:"page-link next disabled",attrs:{"title":_vm.lastText,"val":_vm.TotalPages}},[_vm._v(_vm._s(_vm.lastText))]):_vm._e()])]):_vm._e()])])])]):_vm._e()}
39153
+ var Pagervue_type_template_id_789320e8_staticRenderFns = []
39154
39154
 
39155
39155
 
39156
- // CONCATENATED MODULE: ./src/components/Pager.vue?vue&type=template&id=793a6cdc&
39156
+ // CONCATENATED MODULE: ./src/components/Pager.vue?vue&type=template&id=789320e8&
39157
39157
 
39158
39158
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Pager.vue?vue&type=script&lang=js&
39159
39159
 
@@ -39201,6 +39201,18 @@ var Pagervue_type_template_id_793a6cdc_staticRenderFns = []
39201
39201
  //
39202
39202
  //
39203
39203
  //
39204
+ //
39205
+ //
39206
+ //
39207
+ //
39208
+ //
39209
+ //
39210
+ //
39211
+ //
39212
+ //
39213
+ //
39214
+ //
39215
+ //
39204
39216
  /* harmony default export */ var Pagervue_type_script_lang_js_ = ({
39205
39217
  props: {
39206
39218
  numberofrecords: {
@@ -39263,8 +39275,16 @@ var Pagervue_type_template_id_793a6cdc_staticRenderFns = []
39263
39275
  this.GroupStart = this.PageNumber - 1;
39264
39276
  this.GroupEnd = this.PageNumber + 1;
39265
39277
  } else {
39266
- this.GroupStart = 1;
39267
- this.GroupEnd = 3;
39278
+ if (this.TotalPages == 1) {
39279
+ this.GroupStart = 1;
39280
+ this.GroupEnd = 1;
39281
+ } else if (this.TotalPages == 2) {
39282
+ this.GroupStart = 1;
39283
+ this.GroupEnd = 2;
39284
+ } else {
39285
+ this.GroupStart = 1;
39286
+ this.GroupEnd = 3;
39287
+ }
39268
39288
  }
39269
39289
  },
39270
39290
  CurrentPageNumber: function CurrentPageNumber(value) {
@@ -39296,8 +39316,16 @@ var Pagervue_type_template_id_793a6cdc_staticRenderFns = []
39296
39316
  this.GroupStart = this.PageNumber - 1;
39297
39317
  this.GroupEnd = this.PageNumber + 1;
39298
39318
  } else {
39299
- this.GroupStart = 1;
39300
- this.GroupEnd = 3;
39319
+ if (this.TotalPages == 1) {
39320
+ this.GroupStart = 1;
39321
+ this.GroupEnd = 1;
39322
+ } else if (this.TotalPages == 2) {
39323
+ this.GroupStart = 1;
39324
+ this.GroupEnd = 2;
39325
+ } else {
39326
+ this.GroupStart = 1;
39327
+ this.GroupEnd = 3;
39328
+ }
39301
39329
  }
39302
39330
  },
39303
39331
  methods: {
@@ -39361,8 +39389,8 @@ var Pagervue_type_template_id_793a6cdc_staticRenderFns = []
39361
39389
 
39362
39390
  var Pager_component = normalizeComponent(
39363
39391
  components_Pagervue_type_script_lang_js_,
39364
- Pagervue_type_template_id_793a6cdc_render,
39365
- Pagervue_type_template_id_793a6cdc_staticRenderFns,
39392
+ Pagervue_type_template_id_789320e8_render,
39393
+ Pagervue_type_template_id_789320e8_staticRenderFns,
39366
39394
  false,
39367
39395
  null,
39368
39396
  null,