tg-listv 0.0.89 → 0.0.90
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/tglistv.common.js +253 -20
- package/dist/tglistv.common.js.map +1 -1
- package/dist/tglistv.css +1 -1
- package/dist/tglistv.umd.js +253 -20
- package/dist/tglistv.umd.js.map +1 -1
- package/dist/tglistv.umd.min.js +3 -3
- package/dist/tglistv.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/tglistv.common.js
CHANGED
|
@@ -2851,6 +2851,13 @@ module.exports = {
|
|
|
2851
2851
|
};
|
|
2852
2852
|
|
|
2853
2853
|
|
|
2854
|
+
/***/ }),
|
|
2855
|
+
|
|
2856
|
+
/***/ "58f1":
|
|
2857
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2858
|
+
|
|
2859
|
+
// extracted by mini-css-extract-plugin
|
|
2860
|
+
|
|
2854
2861
|
/***/ }),
|
|
2855
2862
|
|
|
2856
2863
|
/***/ "5926":
|
|
@@ -3355,6 +3362,17 @@ __webpack_require__("1c59");
|
|
|
3355
3362
|
module.exports = typeof window == 'object' && typeof Deno != 'object';
|
|
3356
3363
|
|
|
3357
3364
|
|
|
3365
|
+
/***/ }),
|
|
3366
|
+
|
|
3367
|
+
/***/ "6224":
|
|
3368
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3369
|
+
|
|
3370
|
+
"use strict";
|
|
3371
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DataTable_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("58f1");
|
|
3372
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DataTable_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DataTable_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
3373
|
+
/* unused harmony reexport * */
|
|
3374
|
+
|
|
3375
|
+
|
|
3358
3376
|
/***/ }),
|
|
3359
3377
|
|
|
3360
3378
|
/***/ "6374":
|
|
@@ -17612,20 +17630,23 @@ var web_dom_collections_for_each = __webpack_require__("159b");
|
|
|
17612
17630
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
17613
17631
|
var es_array_from = __webpack_require__("a630");
|
|
17614
17632
|
|
|
17615
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a33ad36a-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/DataTable.vue?vue&type=template&id=
|
|
17616
|
-
var
|
|
17633
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a33ad36a-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/DataTable.vue?vue&type=template&id=5e7b1317&
|
|
17634
|
+
var DataTablevue_type_template_id_5e7b1317_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{class:'table-responsive ' + _vm.tableClasses,staticStyle:{"overflow-x":"auto"}},[_c('table',{staticClass:"table table-bordered mt-0",staticStyle:{"width":"100%","min-width":"100%"},attrs:{"id":'tablelistingdata_' + _vm.randomNumberForIds}},[_c('thead',{staticClass:"thead-bg"},[_c('tr',[((typeof(_vm.showCheckBox) === 'undefined' || _vm.showCheckBox == true))?_c('th',{staticClass:"text-center",staticStyle:{"width":"50px !important"}},[(_vm.selectionType == 'multiple')?_c('label',{class:{'form-check form-check-inline' : true}},[_c('div',{staticClass:"custom-control custom-checkbox custom-control-inline"},[_c('input',{staticClass:"chkItems custom-control-input",attrs:{"id":'chkAll_' + _vm.randomNumberForIds,"value":"","type":"checkbox"},on:{"change":function($event){return _vm.onChangeEventOfCheckbox($event)}}}),_c('label',{staticClass:"custom-control-label",attrs:{"for":'chkAll_' + _vm.randomNumberForIds}})])]):_vm._e()]):_vm._e(),_vm._l((_vm.Headers),function(item,headerIndex){return [(item.VISIBLE)?_c('th',{key:headerIndex,class:{'text-center': item.COLUMN_NAME=='status', 'text-right':(item.DATA_TYPE=='decimal' || item.DATA_TYPE=='currency' || item.DATA_TYPE=='int' || item.DATA_TYPE=='bigint'), 'resizable-column': !_vm.isChild},staticStyle:{"text-transform":"capitalize","position":"relative"},style:(_vm.getColumnStyle(item)),attrs:{"id":item.COLUMN_NAME}},[(item.VISIBLE && item.SORTABLE == true && _vm.isChild == false)?_c('span',{class:{
|
|
17617
17635
|
'sort': item.SORTABLE == true,
|
|
17618
17636
|
'tb_headerSortUp': _vm.SortExp == 'ASC' && _vm.SortBy == item.COLUMN_NAME,
|
|
17619
17637
|
'tb_headerSortDown':
|
|
17620
17638
|
_vm.SortExp == 'DESC' && _vm.SortBy == item.COLUMN_NAME,
|
|
17621
|
-
},on:{"click":function($event){return _vm.sortdata(item.COLUMN_NAME)}}},[_vm._v(" "+_vm._s(_vm.$t(item.DISPLAY_NAME))+" ")]):_vm._e(),(item.SORTABLE == false || item.SORTABLE == null || _vm.isChild == true)?_c('span',[_vm._v(" "+_vm._s(_vm.$t(item.DISPLAY_NAME))+" ")]):_vm._e()]):_vm._e()]}),(_vm.IsShowAction == true)?_c('th',{staticClass:"nonresize text-center",staticStyle:{"width":"100px !important"}},[_c('span',[_vm._v(_vm._s(_vm.$t('Action')))])]):_vm._e()],2)]),_c('tbody',[_vm._l((_vm.Data),function(item,dataIndex){return [_c('tr',{class:item.additionalClass,style:(item.CssStyle)},[((typeof(_vm.showCheckBox) === 'undefined' || _vm.showCheckBox == true))?_c('td',{staticClass:"text-center"},[_c('label',{class:{'form-check form-check-inline' : true},attrs:{"disabled":item.isCheckBoxDisabled}},[(_vm.selectionType == 'multiple')?_c('div',{staticClass:"custom-control custom-checkbox custom-control-inline"},[_c('input',{staticClass:"chkItems custom-control-input",attrs:{"id":'Checkbox_'+ _vm.randomNumberForIds + '_' + dataIndex,"disabled":item.isCheckBoxDisabled,"type":"checkbox"},domProps:{"checked":item.isSelected,"value":item[_vm.identityColumn]},on:{"change":function($event){return _vm.onChangeEventOfCheckbox($event, item)}}}),_c('label',{staticClass:"custom-control-label",attrs:{"for":'Checkbox_'+ _vm.randomNumberForIds + '_' + dataIndex}})]):_vm._e(),(_vm.selectionType == 'single')?_c('div',{staticClass:"custom-control custom-radio custom-control-inline"},[_c('input',{staticClass:"chkItems custom-control-input",attrs:{"name":'radiobox_'+ _vm.randomNumberForIds,"disabled":item.isCheckBoxDisabled,"type":"radio"},domProps:{"checked":item.isSelected,"value":item[_vm.identityColumn]},on:{"change":function($event){return _vm.onChangeEventOfRadiobox($event, item)}}}),_c('label',{staticClass:"custom-control-label",attrs:{"for":'radiobox__'+ _vm.randomNumberForIds + '_' + dataIndex}})]):_vm._e()])]):_vm._e(),_vm._l((_vm.Headers),function(key,headerIndex){return [(key.VISIBLE)?_c('td',{key:headerIndex,class:_vm.tdClasses(key, item)},[(typeof(key.settings) != 'undefined' && key.settings != null && typeof(key.settings.isInSlot) != 'undefined' && key.settings.isInSlot == true)?[(typeof(item.child) != 'undefined' && item.child.isShowExpandButton == true && item.child.isShowChild == false && headerIndex == 0)?_c('a',{staticClass:"parentwithchild d-inline-block parent-childrow chkItems",attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.onExpndChild(item)}}},[_c('i',{staticClass:"fa fa-chevron-right"})]):_vm._e(),(typeof(item.child) != 'undefined' && item.child.isShowExpandButton == true && item.child.isShowChild == true && headerIndex == 0)?_c('a',{staticClass:"parentwithchild d-inline-block parent-childrow chkItems",attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.onCollapeChild(item)}}},[_c('i',{staticClass:"fa fa-chevron-down"})]):_vm._e(),_c('span',[_vm._t("slotdata",null,{"data":{row:item,column:key}})],2)]:[(typeof(item.child) != 'undefined' && item.child.isShowExpandButton == true && item.child.isShowChild == false && headerIndex == 0)?_c('a',{staticClass:"parentwithchild d-inline-block parent-childrow chkItems",attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.onExpndChild(item)}}},[_c('i',{staticClass:"fa fa-chevron-right"})]):_vm._e(),(typeof(item.child) != 'undefined' && item.child.isShowExpandButton == true && item.child.isShowChild == true && headerIndex == 0)?_c('a',{staticClass:"parentwithchild d-inline-block parent-childrow chkItems",attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.onCollapeChild(item)}}},[_c('i',{staticClass:"fa fa-chevron-down"})]):_vm._e(),((key.DATA_TYPE=='date' || key.DATA_TYPE=='datetime') && (key.DATA_TYPE !='decimal'))?_c('span',[_vm._v(_vm._s(_vm.$options.filters.formatDate(item[key.COLUMN_NAME])))]):_vm._e(),((key.DATA_TYPE=='decimal' || key.DATA_TYPE=='int' || key.DATA_TYPE=='bigint'))?_c('span',[_vm._v(_vm._s(_vm.$n(item[key.COLUMN_NAME])))]):_vm._e(),((key.DATA_TYPE=='currency'))?_c('span',[_vm._v(_vm._s(_vm.$n(item[key.COLUMN_NAME], 'currency')))]):_vm._e(),((key.DATA_TYPE!='date' && key.DATA_TYPE!='datetime' && key.DATA_TYPE!='decimal' && key.DATA_TYPE != 'int' && key.DATA_TYPE != 'bigint'))?_c('span',{attrs:{"title":item[key.COLUMN_NAME]}},[(typeof(key.settings) != 'undefined' && key.settings != null
|
|
17639
|
+
},on:{"click":function($event){return _vm.sortdata(item.COLUMN_NAME)}}},[_vm._v(" "+_vm._s(_vm.$t(item.DISPLAY_NAME))+" ")]):_vm._e(),(item.SORTABLE == false || item.SORTABLE == null || _vm.isChild == true)?_c('span',[_vm._v(" "+_vm._s(_vm.$t(item.DISPLAY_NAME))+" ")]):_vm._e(),(!_vm.isChild)?_c('div',{staticClass:"resize-handle",attrs:{"title":_vm.$t('Drag to resize column')},on:{"mousedown":function($event){return _vm.startResize($event, item.COLUMN_NAME)}}},[_c('em',{staticClass:"fa fa-ellipsis-v"})]):_vm._e()]):_vm._e()]}),(_vm.IsShowAction == true)?_c('th',{staticClass:"nonresize text-center sticky-action-column",staticStyle:{"width":"100px !important","position":"sticky","right":"0","z-index":"10","background-color":"inherit"}},[_c('span',[_vm._v(_vm._s(_vm.$t('Action')))])]):_vm._e()],2)]),_c('tbody',[_vm._l((_vm.Data),function(item,dataIndex){return [_c('tr',{class:item.additionalClass,style:(item.CssStyle)},[((typeof(_vm.showCheckBox) === 'undefined' || _vm.showCheckBox == true))?_c('td',{staticClass:"text-center"},[_c('label',{class:{'form-check form-check-inline' : true},attrs:{"disabled":item.isCheckBoxDisabled}},[(_vm.selectionType == 'multiple')?_c('div',{staticClass:"custom-control custom-checkbox custom-control-inline"},[_c('input',{staticClass:"chkItems custom-control-input",attrs:{"id":'Checkbox_'+ _vm.randomNumberForIds + '_' + dataIndex,"disabled":item.isCheckBoxDisabled,"type":"checkbox"},domProps:{"checked":item.isSelected,"value":item[_vm.identityColumn]},on:{"change":function($event){return _vm.onChangeEventOfCheckbox($event, item)}}}),_c('label',{staticClass:"custom-control-label",attrs:{"for":'Checkbox_'+ _vm.randomNumberForIds + '_' + dataIndex}})]):_vm._e(),(_vm.selectionType == 'single')?_c('div',{staticClass:"custom-control custom-radio custom-control-inline"},[_c('input',{staticClass:"chkItems custom-control-input",attrs:{"name":'radiobox_'+ _vm.randomNumberForIds,"disabled":item.isCheckBoxDisabled,"type":"radio"},domProps:{"checked":item.isSelected,"value":item[_vm.identityColumn]},on:{"change":function($event){return _vm.onChangeEventOfRadiobox($event, item)}}}),_c('label',{staticClass:"custom-control-label",attrs:{"for":'radiobox__'+ _vm.randomNumberForIds + '_' + dataIndex}})]):_vm._e()])]):_vm._e(),_vm._l((_vm.Headers),function(key,headerIndex){return [(key.VISIBLE)?_c('td',{key:headerIndex,class:_vm.tdClasses(key, item)},[(typeof(key.settings) != 'undefined' && key.settings != null && typeof(key.settings.isInSlot) != 'undefined' && key.settings.isInSlot == true)?[(typeof(item.child) != 'undefined' && item.child.isShowExpandButton == true && item.child.isShowChild == false && headerIndex == 0)?_c('a',{staticClass:"parentwithchild d-inline-block parent-childrow chkItems",attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.onExpndChild(item)}}},[_c('i',{staticClass:"fa fa-chevron-right"})]):_vm._e(),(typeof(item.child) != 'undefined' && item.child.isShowExpandButton == true && item.child.isShowChild == true && headerIndex == 0)?_c('a',{staticClass:"parentwithchild d-inline-block parent-childrow chkItems",attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.onCollapeChild(item)}}},[_c('i',{staticClass:"fa fa-chevron-down"})]):_vm._e(),_c('span',[_vm._t("slotdata",null,{"data":{row:item,column:key}})],2)]:[(typeof(item.child) != 'undefined' && item.child.isShowExpandButton == true && item.child.isShowChild == false && headerIndex == 0)?_c('a',{staticClass:"parentwithchild d-inline-block parent-childrow chkItems",attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.onExpndChild(item)}}},[_c('i',{staticClass:"fa fa-chevron-right"})]):_vm._e(),(typeof(item.child) != 'undefined' && item.child.isShowExpandButton == true && item.child.isShowChild == true && headerIndex == 0)?_c('a',{staticClass:"parentwithchild d-inline-block parent-childrow chkItems",attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.onCollapeChild(item)}}},[_c('i',{staticClass:"fa fa-chevron-down"})]):_vm._e(),((key.DATA_TYPE=='date' || key.DATA_TYPE=='datetime') && (key.DATA_TYPE !='decimal'))?_c('span',[_vm._v(_vm._s(_vm.$options.filters.formatDate(item[key.COLUMN_NAME])))]):_vm._e(),((key.DATA_TYPE=='decimal' || key.DATA_TYPE=='int' || key.DATA_TYPE=='bigint'))?_c('span',[_vm._v(_vm._s(_vm.$n(item[key.COLUMN_NAME])))]):_vm._e(),((key.DATA_TYPE=='currency'))?_c('span',[_vm._v(_vm._s(_vm.$n(item[key.COLUMN_NAME], 'currency')))]):_vm._e(),((key.DATA_TYPE!='date' && key.DATA_TYPE!='datetime' && key.DATA_TYPE!='decimal' && key.DATA_TYPE != 'int' && key.DATA_TYPE != 'bigint'))?_c('span',{attrs:{"title":item[key.COLUMN_NAME]}},[(typeof(key.settings) != 'undefined' && key.settings != null
|
|
17622
17640
|
&& typeof(key.settings.clickEvent) != 'undefined' && key.settings.clickEvent != null && key.settings.isInSlot != true)?_c('RouterLink',{attrs:{"id":"viewLeadeContent_a","to":typeof(item.rowDetailsUrl)!='undefined' ? item.rowDetailsUrl : ''},nativeOn:{"click":function($event){return _vm.clickEventCheck(key,item)}}},[_vm._v(" "+_vm._s(((typeof(key.settings.formatter) === 'function')?key.settings.formatter(item, key):_vm.TruncateStr(item[key.COLUMN_NAME],30)))+" ")]):_vm._e(),(typeof(key.settings) != 'undefined' && key.settings != null && (typeof(key.settings.clickEvent) === 'undefined' || key.settings.clickEvent == null) && key.settings.isInSlot != true)?_c('span',{attrs:{"title":item[key.COLUMN_NAME]}},[_vm._v(_vm._s(((typeof(key.settings.formatter) === 'function')?key.settings.formatter(item, key):_vm.TruncateStr(item[key.COLUMN_NAME],30))))]):_vm._e(),(typeof(key.settings) === 'undefined' || key.settings == null)?_c('span',{attrs:{"title":item[key.COLUMN_NAME]}},[_vm._v(_vm._s(_vm.TruncateStr(item[key.COLUMN_NAME],30)))]):_vm._e()],1):_vm._e()]],2):_vm._e()]}),(_vm.IsShowAction == true)?_c('RowActions',{attrs:{"item":item,"index":dataIndex,"identityColumn":_vm.identityColumn,"listActionsMethod":_vm.renderRowActionMethod},on:{"ButtonClick":_vm.ButtonClick}}):_vm._e()],2),(typeof(item.child) != 'undefined' && item.child.isShowChild == true)?_c('tr',[_c('td',{attrs:{"colspan":(_vm.Headers.length + 2)}},[_c('data-table',{attrs:{"name":'child' + dataIndex,"Data":item.child.data,"noRecord":((typeof(item.child.data) != 'undefined' && item.child.data.length > 0) ? false: true),"Headers":(typeof(item.child.headers) != 'undefined' ? item.child.headers: _vm.Headers),"SortExp":_vm.SortExp,"SortBy":_vm.SortBy,"isChild":true,"UserPageSize":_vm.UserPageSize,"totalrecords":(typeof(item.child.data) != 'undefined' ? item.child.data.length: 0),"IsShowAction":_vm.IsShowAction,"renderRowActionMethod":_vm.renderRowActionMethod,"identityColumn":_vm.identityColumn,"subModuleCode":_vm.subModuleCode,"NorecordfoundText":_vm.NorecordfoundText,"showCheckBox":_vm.showCheckBox,"selectionType":_vm.selectionType},on:{"sortdata":_vm.sortdata,"ButtonClick":_vm.ChildButtonClick,"PagerMethod":_vm.pagerMethod,"EventOfCheckbox":_vm.onChangeEventOfCheckbox},scopedSlots:_vm._u([{key:"slotdata",fn:function(ref){
|
|
17623
17641
|
var data = ref.data;
|
|
17624
17642
|
return [_vm._t("slotdata",null,{"data":{row:data.row,column:data.column,listtype:_vm.selectedView}})]}}],null,true)})],1)]):_vm._e()]}),(_vm.noRecord)?_c('tr',[_c('td',{staticClass:"text-center text-danger no-record",attrs:{"colspan":"17"}},[_vm._v(_vm._s(_vm.NorecordfoundText))])]):_vm._e()],2)])]),(_vm.isChild == false)?_c('Pager',{attrs:{"UserPageSize":_vm.UserPageSize,"numberofrecords":_vm.totalrecords,"prev-text":_vm.$t('Previous'),"first-text":_vm.$t('First'),"last-text":_vm.$t('Last'),"next-text":_vm.$t('Next')},on:{"SetCurrentPage":_vm.pagerMethod}}):_vm._e()],1)}
|
|
17625
|
-
var
|
|
17643
|
+
var DataTablevue_type_template_id_5e7b1317_staticRenderFns = []
|
|
17644
|
+
|
|
17626
17645
|
|
|
17646
|
+
// CONCATENATED MODULE: ./src/components/DataTable.vue?vue&type=template&id=5e7b1317&
|
|
17627
17647
|
|
|
17628
|
-
//
|
|
17648
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
17649
|
+
var es_json_stringify = __webpack_require__("e9c4");
|
|
17629
17650
|
|
|
17630
17651
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
17631
17652
|
var es_regexp_exec = __webpack_require__("ac1f");
|
|
@@ -17633,12 +17654,12 @@ var es_regexp_exec = __webpack_require__("ac1f");
|
|
|
17633
17654
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
17634
17655
|
var es_regexp_test = __webpack_require__("00b4");
|
|
17635
17656
|
|
|
17636
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a33ad36a-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/RowActions.vue?vue&type=template&id=
|
|
17637
|
-
var
|
|
17638
|
-
var
|
|
17657
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a33ad36a-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/RowActions.vue?vue&type=template&id=9e09db04&
|
|
17658
|
+
var RowActionsvue_type_template_id_9e09db04_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('justWraper',{style:((_vm.listType == 'List')? 'display: table-cell;text-align: center; position: sticky !important;right: 0 !important;z-index: 10 !important;vertical-align: middle;' : '')},[(_vm.listType == 'List' && _vm.listActions.length > 2)?_c('td',{staticClass:"text-center mobile-action",style:((_vm.listType == 'List')?'display: block;': '')},[_c('span',{staticClass:"actions mobileaction"},[_c('em',{staticClass:"fa fa-ellipsis-h action_icon",attrs:{"aria-hidden":"true"}}),_c('span',{staticClass:"action-list-box"},[_c('span',{staticClass:"list-actions",attrs:{"id":"action-list"}},[_vm._l((_vm.listActions),function(action){return [(action.isVisible == true && typeof action.callbackfunction != 'undefined')?_c('a',{class:{'actions-onclick': true, 'disabled': (typeof action.isDisabled != 'undefined' && action.isDisabled == true)},attrs:{"typetitle":_vm.$t(action.title),"typefor":_vm.$t(action.title),"value":_vm.item[_vm.identityColumn],"title":_vm.$t(action.title)},on:{"click":function($event){return _vm.ClickEvent(action.isDisabled, action.callbackfunction,_vm.item,_vm.index,$event)}}},[_c('em',{class:action.icon + ' ' + ((typeof action.isDisabled != 'undefined' && action.isDisabled == true)?'disabled': '')}),_c('span',{staticClass:"text"},[_vm._v(" "+_vm._s(_vm.$t(action.title))+" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.replaceText(action.additionalSpan))}})])]):_vm._e(),(action.isVisible == true && typeof action.callbackfunction == 'undefined')?_c('RouterLink',{class:{'actions-onclick': true, 'disabled': (typeof action.isDisabled != 'undefined' && action.isDisabled == true)},attrs:{"to":_vm.replaceText(action.href),"title":_vm.$t(action.title)}},[_c('em',{class:action.icon + ' ' + ((typeof action.isDisabled != 'undefined' && action.isDisabled == true)?'disabled': '')}),_vm._v(" "),_c('br'),_c('span',{staticClass:"text"},[_vm._v(" "+_vm._s(action.title))])]):_vm._e()]}),_c('em',{staticClass:"fa fa-times close close-action",attrs:{"aria-hidden":"true"}})],2)])])]):_vm._e(),(_vm.listType == 'List' && _vm.listActions.length <= 2)?_c('td',{staticClass:"text-center single-action",style:((_vm.listType == 'List')?'display: inline-block': '')},[_vm._l((_vm.listActions),function(action){return [(action.isVisible == true && typeof action.callbackfunction != 'undefined')?_c('a',{class:{'actions-onclick': true, 'disabled': (typeof action.isDisabled != 'undefined' && action.isDisabled == true)},attrs:{"typetitle":_vm.$t(action.title),"typefor":_vm.$t(action.title),"value":_vm.item[_vm.identityColumn],"title":_vm.$t(action.title)},on:{"click":function($event){return _vm.ClickEvent(action.isDisabled, action.callbackfunction,_vm.item,_vm.index,$event)}}},[_c('em',{class:action.icon + ' ' + ((typeof action.isDisabled != 'undefined' && action.isDisabled == true)?'disabled': '')})]):_vm._e(),(action.isVisible == true && typeof action.callbackfunction == 'undefined')?_c('RouterLink',{class:{'actions-onclick': true, 'disabled': (typeof action.isDisabled != 'undefined' && action.isDisabled == true)},attrs:{"to":_vm.replaceText(action.href),"title":_vm.$t(action.title)}},[_c('em',{class:action.icon + ' ' + ((typeof action.isDisabled != 'undefined' && action.isDisabled == true)?'disabled': '')})]):_vm._e()]})],2):_vm._e(),_vm._l((_vm.listActions),function(action){return (_vm.listType == 'Card')?[((action.isVisible == true && typeof action.callbackfunction != 'undefined'))?_c('a',{class:'round-icon-small ' + ((action.class) ? action.class : 'btn-info') + ' ' + ((typeof action.isDisabled != 'undefined' && action.isDisabled == true)?'disabled': ''),attrs:{"typetitle":_vm.$t(action.title),"typefor":_vm.$t(action.title),"value":_vm.item[_vm.identityColumn],"title":_vm.$t(action.title),"data-toggle-tooltip":"tooltip","data-original-title":_vm.$t(action.title)},on:{"click":function($event){return _vm.ClickEvent(action.isDisabled, action.callbackfunction,_vm.item,_vm.index,$event)}}},[_c('em',{class:_vm.CardActionIcon(action.icon) + ' ' + ((typeof action.isDisabled != 'undefined' && action.isDisabled == true)?'disabled': '')})]):_vm._e(),(action.isVisible == true && typeof action.callbackfunction == 'undefined')?_c('RouterLink',{class:'round-icon-small ' + ((action.class) ? action.class : 'btn-info') + ' ' + ((typeof action.isDisabled != 'undefined' && action.isDisabled == true)?'disabled': ''),attrs:{"to":_vm.replaceText(action.href),"title":action.title}},[_c('em',{class:_vm.CardActionIcon(action.icon) + ' ' + ((typeof action.isDisabled != 'undefined' && action.isDisabled == true)?'disabled': '')})]):_vm._e()]:_vm._e()}),_vm._l((_vm.listActions),function(action){return (_vm.listType == 'Kanban')?[(action.isVisible == true && typeof action.callbackfunction != 'undefined')?_c('a',{class:{'actions-onclick': true, 'disabled': (typeof action.isDisabled != 'undefined' && action.isDisabled == true)},attrs:{"typetitle":_vm.$t(action.title),"typefor":_vm.$t(action.title),"value":_vm.item[_vm.identityColumn],"title":_vm.$t(action.title)},on:{"click":function($event){return _vm.ClickEvent(action.isDisabled, action.callbackfunction,_vm.item,_vm.index,$event)}}},[_c('i',{class:action.icon + ' ' + ((typeof action.isDisabled != 'undefined' && action.isDisabled == true)?'disabled': '')}),_c('span',{staticClass:"text"},[_vm._v(" "+_vm._s(_vm.$t(action.title))+" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.replaceText(action.additionalSpan))}})])]):_vm._e(),(action.isVisible == true && typeof action.callbackfunction == 'undefined')?_c('RouterLink',{class:{'actions-onclick': true, 'disabled': (typeof action.isDisabled != 'undefined' && action.isDisabled == true)},attrs:{"to":_vm.replaceText(action.href),"title":_vm.$t(action.title)}},[_c('i',{class:action.icon + ' ' + ((typeof action.isDisabled != 'undefined' && action.isDisabled == true)?'disabled': '')}),_c('span',{staticClass:"text"},[_vm._v(" "+_vm._s(_vm.$t(action.title)))])]):_vm._e()]:_vm._e()})],2)}
|
|
17659
|
+
var RowActionsvue_type_template_id_9e09db04_staticRenderFns = []
|
|
17639
17660
|
|
|
17640
17661
|
|
|
17641
|
-
// CONCATENATED MODULE: ./src/components/RowActions.vue?vue&type=template&id=
|
|
17662
|
+
// CONCATENATED MODULE: ./src/components/RowActions.vue?vue&type=template&id=9e09db04&
|
|
17642
17663
|
|
|
17643
17664
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
17644
17665
|
var es_string_replace = __webpack_require__("5319");
|
|
@@ -17913,8 +17934,8 @@ function normalizeComponent (
|
|
|
17913
17934
|
|
|
17914
17935
|
var component = normalizeComponent(
|
|
17915
17936
|
components_RowActionsvue_type_script_lang_js_,
|
|
17916
|
-
|
|
17917
|
-
|
|
17937
|
+
RowActionsvue_type_template_id_9e09db04_render,
|
|
17938
|
+
RowActionsvue_type_template_id_9e09db04_staticRenderFns,
|
|
17918
17939
|
false,
|
|
17919
17940
|
null,
|
|
17920
17941
|
null,
|
|
@@ -18150,6 +18171,17 @@ var Pager_component = normalizeComponent(
|
|
|
18150
18171
|
|
|
18151
18172
|
|
|
18152
18173
|
|
|
18174
|
+
|
|
18175
|
+
|
|
18176
|
+
|
|
18177
|
+
|
|
18178
|
+
|
|
18179
|
+
//
|
|
18180
|
+
//
|
|
18181
|
+
//
|
|
18182
|
+
//
|
|
18183
|
+
//
|
|
18184
|
+
//
|
|
18153
18185
|
//
|
|
18154
18186
|
//
|
|
18155
18187
|
//
|
|
@@ -18371,6 +18403,20 @@ var Pager_component = normalizeComponent(
|
|
|
18371
18403
|
},
|
|
18372
18404
|
UserPageSize: function UserPageSize(value) {
|
|
18373
18405
|
this.PageSize = value;
|
|
18406
|
+
},
|
|
18407
|
+
Data: function Data() {
|
|
18408
|
+
// Reapply column widths when data changes
|
|
18409
|
+
var ths = this;
|
|
18410
|
+
this.$nextTick(function () {
|
|
18411
|
+
ths.applyColumnWidths();
|
|
18412
|
+
});
|
|
18413
|
+
},
|
|
18414
|
+
Headers: function Headers() {
|
|
18415
|
+
// Reapply column widths when headers change
|
|
18416
|
+
var ths = this;
|
|
18417
|
+
this.$nextTick(function () {
|
|
18418
|
+
ths.applyColumnWidths();
|
|
18419
|
+
});
|
|
18374
18420
|
}
|
|
18375
18421
|
},
|
|
18376
18422
|
data: function data() {
|
|
@@ -18378,10 +18424,179 @@ var Pager_component = normalizeComponent(
|
|
|
18378
18424
|
showActions: this.NewArray(100),
|
|
18379
18425
|
Actions: [],
|
|
18380
18426
|
TotalRecords: 0,
|
|
18381
|
-
PageSize: this.UserPageSize
|
|
18427
|
+
PageSize: this.UserPageSize,
|
|
18428
|
+
columnWidths: {},
|
|
18429
|
+
isResizing: false,
|
|
18430
|
+
resizingColumn: null,
|
|
18431
|
+
startX: 0,
|
|
18432
|
+
startWidth: 0
|
|
18382
18433
|
};
|
|
18383
18434
|
},
|
|
18435
|
+
mounted: function mounted() {
|
|
18436
|
+
this.loadColumnWidths();
|
|
18437
|
+
this.applyColumnWidths();
|
|
18438
|
+
},
|
|
18384
18439
|
methods: {
|
|
18440
|
+
getColumnStyle: function getColumnStyle(item) {
|
|
18441
|
+
var style = {};
|
|
18442
|
+
|
|
18443
|
+
if (item.COLUMN_NAME == 'status_name') {
|
|
18444
|
+
style.width = '10%';
|
|
18445
|
+
} else if (this.columnWidths[item.COLUMN_NAME]) {
|
|
18446
|
+
style.width = this.columnWidths[item.COLUMN_NAME] + 'px';
|
|
18447
|
+
style.minWidth = this.columnWidths[item.COLUMN_NAME] + 'px';
|
|
18448
|
+
}
|
|
18449
|
+
|
|
18450
|
+
return style;
|
|
18451
|
+
},
|
|
18452
|
+
loadColumnWidths: function loadColumnWidths() {
|
|
18453
|
+
if (this.isChild) return;
|
|
18454
|
+
|
|
18455
|
+
try {
|
|
18456
|
+
var storageKey = 'tglist_column_widths_' + this.subModuleCode;
|
|
18457
|
+
var savedWidths = localStorage.getItem(storageKey);
|
|
18458
|
+
|
|
18459
|
+
if (savedWidths) {
|
|
18460
|
+
this.columnWidths = JSON.parse(savedWidths);
|
|
18461
|
+
}
|
|
18462
|
+
} catch (e) {
|
|
18463
|
+
console.error('Error loading column widths:', e);
|
|
18464
|
+
}
|
|
18465
|
+
},
|
|
18466
|
+
saveColumnWidths: function saveColumnWidths() {
|
|
18467
|
+
if (this.isChild) return;
|
|
18468
|
+
|
|
18469
|
+
try {
|
|
18470
|
+
var storageKey = 'tglist_column_widths_' + this.subModuleCode;
|
|
18471
|
+
localStorage.setItem(storageKey, JSON.stringify(this.columnWidths));
|
|
18472
|
+
} catch (e) {
|
|
18473
|
+
console.error('Error saving column widths:', e);
|
|
18474
|
+
}
|
|
18475
|
+
},
|
|
18476
|
+
applyColumnWidths: function applyColumnWidths() {
|
|
18477
|
+
var ths = this;
|
|
18478
|
+
this.$nextTick(function () {
|
|
18479
|
+
if (ths.isChild) return;
|
|
18480
|
+
ths.Headers.forEach(function (header) {
|
|
18481
|
+
if (header.VISIBLE && ths.columnWidths[header.COLUMN_NAME]) {
|
|
18482
|
+
var width = ths.columnWidths[header.COLUMN_NAME] + 'px';
|
|
18483
|
+
var thElement = document.getElementById(header.COLUMN_NAME);
|
|
18484
|
+
|
|
18485
|
+
if (thElement) {
|
|
18486
|
+
thElement.style.width = width;
|
|
18487
|
+
thElement.style.minWidth = width; // Also apply to corresponding td elements
|
|
18488
|
+
|
|
18489
|
+
var tableId = 'tablelistingdata_' + ths.randomNumberForIds;
|
|
18490
|
+
var table = document.getElementById(tableId);
|
|
18491
|
+
|
|
18492
|
+
if (table) {
|
|
18493
|
+
var rows = table.querySelectorAll('tbody tr');
|
|
18494
|
+
rows.forEach(function (row) {
|
|
18495
|
+
var cells = row.querySelectorAll('td'); // Find the td that corresponds to this column
|
|
18496
|
+
// We need to match by column index in the header
|
|
18497
|
+
|
|
18498
|
+
var headerRow = thElement.parentNode;
|
|
18499
|
+
var allThs = Array.from(headerRow.querySelectorAll('th'));
|
|
18500
|
+
var columnIndex = allThs.indexOf(thElement);
|
|
18501
|
+
|
|
18502
|
+
if (cells[columnIndex]) {
|
|
18503
|
+
cells[columnIndex].style.width = width;
|
|
18504
|
+
cells[columnIndex].style.minWidth = width;
|
|
18505
|
+
}
|
|
18506
|
+
});
|
|
18507
|
+
}
|
|
18508
|
+
}
|
|
18509
|
+
}
|
|
18510
|
+
});
|
|
18511
|
+
});
|
|
18512
|
+
},
|
|
18513
|
+
startResize: function startResize(event, columnName) {
|
|
18514
|
+
var ths = this;
|
|
18515
|
+
if (ths.isChild) return;
|
|
18516
|
+
event.preventDefault();
|
|
18517
|
+
event.stopPropagation();
|
|
18518
|
+
ths.isResizing = true;
|
|
18519
|
+
ths.resizingColumn = columnName;
|
|
18520
|
+
ths.startX = event.pageX;
|
|
18521
|
+
var thElement = document.getElementById(columnName);
|
|
18522
|
+
|
|
18523
|
+
if (thElement) {
|
|
18524
|
+
ths.startWidth = thElement.offsetWidth;
|
|
18525
|
+
}
|
|
18526
|
+
|
|
18527
|
+
var onResizeHandler = function onResizeHandler(e) {
|
|
18528
|
+
ths.onResize(e);
|
|
18529
|
+
};
|
|
18530
|
+
|
|
18531
|
+
var stopResizeHandler = function stopResizeHandler(e) {
|
|
18532
|
+
ths.stopResize(e);
|
|
18533
|
+
};
|
|
18534
|
+
|
|
18535
|
+
ths._onResizeHandler = onResizeHandler;
|
|
18536
|
+
ths._stopResizeHandler = stopResizeHandler;
|
|
18537
|
+
document.addEventListener('mousemove', onResizeHandler);
|
|
18538
|
+
document.addEventListener('mouseup', stopResizeHandler);
|
|
18539
|
+
document.body.style.cursor = 'col-resize';
|
|
18540
|
+
document.body.style.userSelect = 'none';
|
|
18541
|
+
},
|
|
18542
|
+
onResize: function onResize(event) {
|
|
18543
|
+
if (!this.isResizing || !this.resizingColumn) return;
|
|
18544
|
+
var diff = event.pageX - this.startX;
|
|
18545
|
+
var newWidth = Math.max(50, this.startWidth + diff);
|
|
18546
|
+
var thElement = document.getElementById(this.resizingColumn);
|
|
18547
|
+
|
|
18548
|
+
if (thElement) {
|
|
18549
|
+
thElement.style.width = newWidth + 'px';
|
|
18550
|
+
thElement.style.minWidth = newWidth + 'px'; // Also update corresponding td elements
|
|
18551
|
+
|
|
18552
|
+
var tableId = 'tablelistingdata_' + this.randomNumberForIds;
|
|
18553
|
+
var table = document.getElementById(tableId);
|
|
18554
|
+
var ths = this;
|
|
18555
|
+
|
|
18556
|
+
if (table) {
|
|
18557
|
+
// Get all th elements in the header row
|
|
18558
|
+
var headerRow = thElement.parentNode;
|
|
18559
|
+
var thElements = Array.from(headerRow.querySelectorAll('th'));
|
|
18560
|
+
var columnIndex = thElements.indexOf(thElement);
|
|
18561
|
+
var rows = table.querySelectorAll('tbody tr');
|
|
18562
|
+
rows.forEach(function (row) {
|
|
18563
|
+
var cells = row.querySelectorAll('td');
|
|
18564
|
+
|
|
18565
|
+
if (cells[columnIndex]) {
|
|
18566
|
+
cells[columnIndex].style.width = newWidth + 'px';
|
|
18567
|
+
cells[columnIndex].style.minWidth = newWidth + 'px';
|
|
18568
|
+
}
|
|
18569
|
+
});
|
|
18570
|
+
}
|
|
18571
|
+
}
|
|
18572
|
+
},
|
|
18573
|
+
stopResize: function stopResize(event) {
|
|
18574
|
+
if (!this.isResizing) return;
|
|
18575
|
+
|
|
18576
|
+
if (this.resizingColumn) {
|
|
18577
|
+
var thElement = document.getElementById(this.resizingColumn);
|
|
18578
|
+
|
|
18579
|
+
if (thElement) {
|
|
18580
|
+
var finalWidth = thElement.offsetWidth;
|
|
18581
|
+
this.$set(this.columnWidths, this.resizingColumn, finalWidth);
|
|
18582
|
+
this.saveColumnWidths();
|
|
18583
|
+
}
|
|
18584
|
+
}
|
|
18585
|
+
|
|
18586
|
+
this.isResizing = false;
|
|
18587
|
+
this.resizingColumn = null;
|
|
18588
|
+
|
|
18589
|
+
if (this._onResizeHandler) {
|
|
18590
|
+
document.removeEventListener('mousemove', this._onResizeHandler);
|
|
18591
|
+
}
|
|
18592
|
+
|
|
18593
|
+
if (this._stopResizeHandler) {
|
|
18594
|
+
document.removeEventListener('mouseup', this._stopResizeHandler);
|
|
18595
|
+
}
|
|
18596
|
+
|
|
18597
|
+
document.body.style.cursor = '';
|
|
18598
|
+
document.body.style.userSelect = '';
|
|
18599
|
+
},
|
|
18385
18600
|
tdClasses: function tdClasses(key, item) {
|
|
18386
18601
|
var rtnValues = "";
|
|
18387
18602
|
|
|
@@ -18459,22 +18674,36 @@ var Pager_component = normalizeComponent(
|
|
|
18459
18674
|
clickEventCheck: function clickEventCheck(key, item) {
|
|
18460
18675
|
typeof key.settings.clickEvent === 'function' && typeof item.rowDetailsUrl === 'undefined' ? key.settings.clickEvent(item, key) : '';
|
|
18461
18676
|
}
|
|
18677
|
+
},
|
|
18678
|
+
beforeDestroy: function beforeDestroy() {
|
|
18679
|
+
// Clean up event listeners
|
|
18680
|
+
if (this._onResizeHandler) {
|
|
18681
|
+
document.removeEventListener('mousemove', this._onResizeHandler);
|
|
18682
|
+
}
|
|
18683
|
+
|
|
18684
|
+
if (this._stopResizeHandler) {
|
|
18685
|
+
document.removeEventListener('mouseup', this._stopResizeHandler);
|
|
18686
|
+
}
|
|
18462
18687
|
}
|
|
18463
18688
|
});
|
|
18464
18689
|
// CONCATENATED MODULE: ./src/components/DataTable.vue?vue&type=script&lang=js&
|
|
18465
18690
|
/* harmony default export */ var components_DataTablevue_type_script_lang_js_ = (DataTablevue_type_script_lang_js_);
|
|
18691
|
+
// EXTERNAL MODULE: ./src/components/DataTable.vue?vue&type=style&index=0&lang=css&
|
|
18692
|
+
var DataTablevue_type_style_index_0_lang_css_ = __webpack_require__("6224");
|
|
18693
|
+
|
|
18466
18694
|
// CONCATENATED MODULE: ./src/components/DataTable.vue
|
|
18467
18695
|
|
|
18468
18696
|
|
|
18469
18697
|
|
|
18470
18698
|
|
|
18471
18699
|
|
|
18700
|
+
|
|
18472
18701
|
/* normalize component */
|
|
18473
18702
|
|
|
18474
18703
|
var DataTable_component = normalizeComponent(
|
|
18475
18704
|
components_DataTablevue_type_script_lang_js_,
|
|
18476
|
-
|
|
18477
|
-
|
|
18705
|
+
DataTablevue_type_template_id_5e7b1317_render,
|
|
18706
|
+
DataTablevue_type_template_id_5e7b1317_staticRenderFns,
|
|
18478
18707
|
false,
|
|
18479
18708
|
null,
|
|
18480
18709
|
null,
|
|
@@ -21847,8 +22076,8 @@ var left_search_component = normalizeComponent(
|
|
|
21847
22076
|
)
|
|
21848
22077
|
|
|
21849
22078
|
/* harmony default export */ var left_search = (left_search_component.exports);
|
|
21850
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a33ad36a-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/top-search.vue?vue&type=template&id=
|
|
21851
|
-
var
|
|
22079
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a33ad36a-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/top-search.vue?vue&type=template&id=74e7c3b8&
|
|
22080
|
+
var top_searchvue_type_template_id_74e7c3b8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:"page-action w-100"},[_c('div',{staticClass:"container-fluid p-0"},[_c('div',{staticClass:"row p-0"},[_vm._l((_vm.Fields),function(field,fieldIndex){return _c('div',{key:fieldIndex,staticClass:"col-sm-12 col-md-6 col-lg-4 col-xl-4 float-left"},[(_vm.Fields.length>1)?_c('label',[_vm._v(_vm._s(_vm.$t(field.fieldName)))]):_vm._e(),(field.fieldType == 'text')?_c('div',{staticClass:"form-group mb-2"},[((field.isNumeric == true ? 'number' : 'text')==='checkbox')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],staticClass:"form-control search",attrs:{"placeholder":_vm.$t(field.fieldName),"type":"checkbox"},domProps:{"checked":Array.isArray(field.value)?_vm._i(field.value,null)>-1:(field.value)},on:{"keydown":function($event){return _vm.SearchOnEnter($event, field)},"change":function($event){var $$a=field.value,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(field, "value", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(field, "value", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(field, "value", $$c)}}}}):((field.isNumeric == true ? 'number' : 'text')==='radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],staticClass:"form-control search",attrs:{"placeholder":_vm.$t(field.fieldName),"type":"radio"},domProps:{"checked":_vm._q(field.value,null)},on:{"keydown":function($event){return _vm.SearchOnEnter($event, field)},"change":function($event){return _vm.$set(field, "value", null)}}}):_c('input',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],staticClass:"form-control search",attrs:{"placeholder":_vm.$t(field.fieldName),"type":field.isNumeric == true ? 'number' : 'text'},domProps:{"value":(field.value)},on:{"keydown":function($event){return _vm.SearchOnEnter($event, field)},"input":function($event){if($event.target.composing){ return; }_vm.$set(field, "value", $event.target.value)}}})]):_vm._e(),(field.fieldType == 'date' || field.fieldType == 'date-range'
|
|
21852
22081
|
)?_c('div',{staticClass:"row mb-2"},[_c('div',{class:(field.fieldType == 'date-range')? 'col-md-6': 'col-md-12'},[_c('div',{staticClass:"input-group"},[_c('v-date-picker',{staticClass:"input-group",attrs:{"popover":_vm.popover,"model-config":_vm.modelConfig,"minute-increment":5,"name":'DateFrom' + fieldIndex,"change":_vm.SetMinMaxValueForDatePicker(field, 'datefrom')},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
21853
22082
|
var inputValue = ref.inputValue;
|
|
21854
22083
|
var inputEvents = ref.inputEvents;
|
|
@@ -21860,10 +22089,10 @@ return [_c('input',_vm._g({staticClass:"form-control",attrs:{"placeholder":field
|
|
|
21860
22089
|
var inputEvents = ref.inputEvents;
|
|
21861
22090
|
var togglePopover = ref.togglePopover;
|
|
21862
22091
|
return [_c('input',_vm._g({staticClass:"form-control",attrs:{"placeholder":"DateTo"},domProps:{"value":inputValue}},inputEvents)),_c('div',{staticClass:"input-group-append",on:{"click":function($event){return togglePopover()}}},[_c('span',{staticClass:"input-group-text"},[_c('em',{staticClass:"fa fa-calendar"})])])]}}],null,true),model:{value:(field.secondValue),callback:function ($$v) {_vm.$set(field, "secondValue", $$v)},expression:"field.secondValue"}})],1)]):_vm._e()]):_vm._e(),(field.fieldType == 'ddl-multilevel')?_c('div',{staticClass:"form-group mb-2"},[(field.listOptions && field.listOptions.length > 0)?_c('tree-select',{attrs:{"placeholder":"Select Location","multiple":false,"options":field.listOptions},model:{value:(field.value),callback:function ($$v) {_vm.$set(field, "value", $$v)},expression:"field.value"}}):_vm._e()],1):_vm._e(),(field.fieldType == 'dropdown' || field.fieldType == 'ddl-radio' || field.fieldType == 'ddl-check' || field.fieldType == 'radio' || field.fieldType == 'checkbox')?_c('div',{staticClass:"form-group mb-2"},[_c('select',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],staticClass:"form-control",attrs:{"id":'dropdown' + fieldIndex},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.$set(field, "value", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{"value":""}},[_vm._v(_vm._s(_vm.$t("Select"))+" "+_vm._s(_vm.$t(field.fieldName)))]),_vm._l((field.listOptions),function(option){return _c('option',{domProps:{"value":option.value}},[_vm._v(" "+_vm._s(option.name)+" ")])})],2)]):_vm._e(),(field.fieldType == 'searchableselect')?_c('div',{staticClass:"form-group mb-2"},[_c('searchable-select',{attrs:{"items":field.listOptions,"max-visible-chips":2,"action-buttons":_vm.computedActionButtons(field),"item-fields":_vm.computedItemFields(field),"group-fields":_vm.computedGroupFields(field),"max-render-items":_vm.computedMaxRenderItems(field),"lazy-load":true,"multiple":field.isMultiple,"label":field.fieldName,"placeholder":field.placeholder,"status-field-config":field.statusFieldConfig,"min-search-length":field.minSearchLength},on:{"change":function($event){return _vm.onSearchableChange($event, field)}},model:{value:(field.value),callback:function ($$v) {_vm.$set(field, "value", $$v)},expression:"field.value"}})],1):_vm._e()])}),_c('div',{class:{'col-sm-12 col-md-3 col-lg-3 col-xl-3 float-left': (((_vm.fields.length % 4) > 0) || _vm.fields.length == 1), 'mt-4': (((_vm.fields.length % 4) > 0) && _vm.fields.length > 1), 'col-sm-12 col-md-12 col-lg-12 col-xl-12 text-right pr-1 mt-3':((_vm.fields.length % 4) == 0) }},[_c('div',{staticClass:"background-0 text-left form-check-inline"},[_c('a',{staticClass:"btn btn-success mr-1 px-4",attrs:{"title":"","id":"Go","href":"javascript:;","data-toggle-tooltip":"tooltip","data-original-title":"Search"},on:{"click":function($event){return _vm.SearchData()}}},[_c('i',{staticClass:"fa fa-search"})]),_c('a',{staticClass:"btn btn-danger clearsearchtext px-4",attrs:{"href":"javascript:void(0);","title":"","data-toggle-tooltip":"tooltip","data-original-title":"Clear all "},on:{"click":function($event){return _vm.ClearFilter()}}},[_c('i',{staticClass:"fa fa-refresh"})])])])],2)])])}
|
|
21863
|
-
var
|
|
22092
|
+
var top_searchvue_type_template_id_74e7c3b8_staticRenderFns = []
|
|
21864
22093
|
|
|
21865
22094
|
|
|
21866
|
-
// CONCATENATED MODULE: ./src/components/top-search.vue?vue&type=template&id=
|
|
22095
|
+
// CONCATENATED MODULE: ./src/components/top-search.vue?vue&type=template&id=74e7c3b8&
|
|
21867
22096
|
|
|
21868
22097
|
// 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/top-search.vue?vue&type=script&lang=js&
|
|
21869
22098
|
|
|
@@ -22081,6 +22310,10 @@ imo;
|
|
|
22081
22310
|
item.datePickerConfig.maxDate = new Date();
|
|
22082
22311
|
}
|
|
22083
22312
|
}
|
|
22313
|
+
|
|
22314
|
+
if (item.hasOwnProperty("onChange")) {
|
|
22315
|
+
item.onChange(item, type);
|
|
22316
|
+
}
|
|
22084
22317
|
},
|
|
22085
22318
|
SearchData: function SearchData() {
|
|
22086
22319
|
var vueObj = this;
|
|
@@ -22350,8 +22583,8 @@ imo;
|
|
|
22350
22583
|
|
|
22351
22584
|
var top_search_component = normalizeComponent(
|
|
22352
22585
|
components_top_searchvue_type_script_lang_js_,
|
|
22353
|
-
|
|
22354
|
-
|
|
22586
|
+
top_searchvue_type_template_id_74e7c3b8_render,
|
|
22587
|
+
top_searchvue_type_template_id_74e7c3b8_staticRenderFns,
|
|
22355
22588
|
false,
|
|
22356
22589
|
null,
|
|
22357
22590
|
null,
|