tg-listv 0.0.49 → 0.0.51

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.
@@ -36734,8 +36734,8 @@ if (typeof window !== 'undefined') {
36734
36734
  // Indicate to webpack that this file can be concatenated
36735
36735
  /* harmony default export */ var setPublicPath = (null);
36736
36736
 
36737
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"78403d1f-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/TgList.vue?vue&type=template&id=5e01ebdc&
36738
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"container-fluid mt-2 p-0"},[((typeof(_vm.SearchPosition) === 'undefined' || _vm.SearchPosition == 'left') && _vm.SearchFields)?_c('div',{staticClass:"left-menu-tab",attrs:{"id":"crmleftsearch"}},[_c('leftsearch',{attrs:{"header":_vm.HeaderText,"fields":_vm.SearchFields,"modulename":_vm.ModuleName},on:{"SetLeftSearch":_vm.leftCommonSearch}})],1):_vm._e(),_c('div',{class:{'right-content': ((typeof(_vm.SearchPosition) === 'undefined' || _vm.SearchPosition == 'left') && _vm.SearchFields)}},[(_vm.widgets.length > 0)?_c('ul',{staticClass:"dashbord-widget WalkHRLeaveWidgetContent_ul"},_vm._l((_vm.widgets),function(widget,index){return _c('li',{class:'cursor-pointer ' + _vm.widgetClassArray[(index%4)],staticStyle:{"cursor":"pointer !important"},on:{"click":function($event){return _vm.onWidgetClick(widget, $event)}}},[_c('h3',[_vm._v(_vm._s(widget.value)),_c('br'),_c('span',[_vm._v(_vm._s(widget.name))])]),_vm._v(" "),_c('i',{class:'fa ' + widget.icon,attrs:{"aria-hidden":"true"}})])}),0):_vm._e(),_c('div',{staticStyle:{"clear":"both"}}),(_vm.HeaderButtons)?_c('div',{staticClass:"col-md-12 p-0"},[_c('list-header-button-new',{ref:"tgListHeaderButtons",attrs:{"icons":_vm.HeaderButtonArrayForUpdate,"submodulecode":_vm.SubModuleCode,"modulename":_vm.ModuleName,"ViewList":_vm.ViewList,"listType":_vm.listType},on:{"ApplyView":_vm.OnApplyView,"ButtonClick":_vm.commonHeaderButtonClick,"ChangeViewEvent":_vm.ChangeViewEvent}})],1):_vm._e(),_c('div',{staticClass:"py-2 d-inline-block"},[_vm._l((_vm.LegendArray),function(lgnd){return [_c('span',{class:lgnd.class}),_vm._v(_vm._s(lgnd.text)+" ")]})],2),_c('div',{staticClass:"listing mt-2"},[((typeof(_vm.SearchPosition) === 'undefined' || _vm.SearchPosition == 'left') && typeof(_vm.SearchFields) != 'undefined' && _vm.SearchFields.length > 0)?_c('div',{staticClass:"expand-list",class:{'d-none':_vm.SearchPosition=='none'}},[_c('a',{class:{'expand-list-btn justify-content-center align-items-center': true, 'filter-selected':_vm.IsFilterApplied==true},attrs:{"href":"javascript:;"}},[_c('em',{staticClass:"icon-solid arrow-solid-left text-white",staticStyle:{"font-size":"9pt"}})])]):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.ErrorText),expression:"ErrorText"}],staticClass:"text-center text-danger"},[_vm._v(_vm._s(_vm.ErrorText))]),(_vm.ListData && _vm.selectedView == 'List')?_c('DataTable',{attrs:{"Data":_vm.ListData,"noRecord":_vm.noRecord,"Headers":_vm.HeaderData,"SortExp":_vm.SortExp,"SortBy":_vm.SortBy,"UserPageSize":_vm.PageSize,"totalrecords":_vm.TotalRecordsForPaging,"IsShowAction":_vm.IsShowAction,"renderRowActionMethod":_vm.RenderRowActionMethod,"identityColumn":_vm.IdentityColumn,"subModuleCode":_vm.SubModuleCode,"NorecordfoundText":_vm.NorecordfoundText,"showCheckBox":_vm.showCheckBox},on:{"sortdata":_vm.sortdata,"ButtonClick":_vm.actionButtonClick,"PagerMethod":_vm.pagerMethod,"EventOfCheckbox":_vm.onChangeEventOfCheckbox},scopedSlots:_vm._u([{key:"slotdata",fn:function(ref){
36737
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"78403d1f-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/TgList.vue?vue&type=template&id=f4b34d54&
36738
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"container-fluid mt-2 p-0"},[((typeof(_vm.SearchPosition) === 'undefined' || _vm.SearchPosition == 'left') && _vm.SearchFields)?_c('div',{staticClass:"left-menu-tab",attrs:{"id":"crmleftsearch"}},[_c('leftsearch',{attrs:{"header":_vm.HeaderText,"fields":_vm.SearchFields,"modulename":_vm.ModuleName},on:{"SetLeftSearch":_vm.leftCommonSearch}})],1):_vm._e(),_c('div',{class:{'right-content': ((typeof(_vm.SearchPosition) === 'undefined' || _vm.SearchPosition == 'left') && _vm.SearchFields)}},[(_vm.widgets.length > 0)?_c('ul',{staticClass:"dashbord-widget WalkHRLeaveWidgetContent_ul"},_vm._l((_vm.widgets),function(widget,index){return _c('li',{class:'cursor-pointer ' + _vm.widgetClassArray[(index%4)],staticStyle:{"cursor":"pointer !important"},on:{"click":function($event){return _vm.onWidgetClick(widget, $event)}}},[_c('h3',[_vm._v(_vm._s(widget.value)),_c('br'),_c('span',[_vm._v(_vm._s(widget.name))])]),_vm._v(" "),_c('i',{class:'fa ' + widget.icon,attrs:{"aria-hidden":"true"}})])}),0):_vm._e(),_c('div',{staticStyle:{"clear":"both"}}),(_vm.HeaderButtons)?_c('div',{staticClass:"col-md-12 p-0"},[_c('list-header-button-new',{ref:"tgListHeaderButtons",attrs:{"icons":_vm.HeaderButtonArrayForUpdate,"submodulecode":_vm.SubModuleCode,"modulename":_vm.ModuleName,"ViewList":_vm.ViewList,"listType":_vm.listType},on:{"ApplyView":_vm.OnApplyView,"ButtonClick":_vm.commonHeaderButtonClick,"ChangeViewEvent":_vm.ChangeViewEvent}})],1):_vm._e(),(( _vm.SearchPosition == 'top') && _vm.SearchFields)?_c('div',{staticClass:"top-menu-tab",attrs:{"id":"crmleftsearch"}},[_c('topsearch',{attrs:{"header":_vm.HeaderText,"fields":_vm.SearchFields,"modulename":_vm.ModuleName},on:{"SetLeftSearch":_vm.leftCommonSearch}})],1):_vm._e(),_c('div',{staticClass:"py-2 d-inline-block"},[_vm._l((_vm.LegendArray),function(lgnd){return [_c('span',{class:lgnd.class}),_vm._v(_vm._s(lgnd.text)+" ")]})],2),_c('div',{staticClass:"listing mt-2"},[((typeof(_vm.SearchPosition) === 'undefined' || _vm.SearchPosition == 'left') && typeof(_vm.SearchFields) != 'undefined' && _vm.SearchFields.length > 0)?_c('div',{staticClass:"expand-list",class:{'d-none':_vm.SearchPosition=='none'}},[_c('a',{class:{'expand-list-btn justify-content-center align-items-center': true, 'filter-selected':_vm.IsFilterApplied==true},attrs:{"href":"javascript:;"}},[_c('em',{staticClass:"icon-solid arrow-solid-left text-white",staticStyle:{"font-size":"9pt"}})])]):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.ErrorText),expression:"ErrorText"}],staticClass:"text-center text-danger"},[_vm._v(_vm._s(_vm.ErrorText))]),(_vm.ListData && _vm.selectedView == 'List')?_c('DataTable',{attrs:{"Data":_vm.ListData,"noRecord":_vm.noRecord,"Headers":_vm.HeaderData,"SortExp":_vm.SortExp,"SortBy":_vm.SortBy,"UserPageSize":_vm.PageSize,"totalrecords":_vm.TotalRecordsForPaging,"IsShowAction":_vm.IsShowAction,"renderRowActionMethod":_vm.RenderRowActionMethod,"identityColumn":_vm.IdentityColumn,"subModuleCode":_vm.SubModuleCode,"NorecordfoundText":_vm.NorecordfoundText,"showCheckBox":_vm.showCheckBox},on:{"sortdata":_vm.sortdata,"ButtonClick":_vm.actionButtonClick,"PagerMethod":_vm.pagerMethod,"EventOfCheckbox":_vm.onChangeEventOfCheckbox},scopedSlots:_vm._u([{key:"slotdata",fn:function(ref){
36739
36739
  var data = ref.data;
36740
36740
  return [_vm._t("slotdata",null,{"data":{row:data.row,column:data.column,listtype:_vm.selectedView}})]}}],null,true)}):_vm._e(),(_vm.ListData && _vm.selectedView == 'Card')?_c('CardView',{attrs:{"data":_vm.ListData,"columns":_vm.HeaderData,"totalrecords":_vm.TotalRecordsForPaging,"UserPageSize":_vm.PageSize,"customcard":_vm.IsShowCustomCard,"IsShowAction":_vm.IsShowAction,"identityColumn":_vm.IdentityColumn,"subModuleCode":_vm.SubModuleCode,"LegendArray":_vm.LegendArray,"noRecord":_vm.noRecord,"NorecordfoundText":_vm.NorecordfoundText,"renderRowActionMethod":_vm.RenderRowActionMethod},on:{"PagerMethod":_vm.pagerMethod,"ButtonClick":_vm.actionButtonClick,"EventOfCheckbox":_vm.onChangeEventOfCheckbox},scopedSlots:_vm._u([{key:"slotdata",fn:function(ref){
36741
36741
  var data = ref.data;
@@ -36749,7 +36749,7 @@ return [_vm._t("customcard",null,{"data":{row:data.row,columnlist:data.columnlis
36749
36749
  var staticRenderFns = []
36750
36750
 
36751
36751
 
36752
- // CONCATENATED MODULE: ./src/components/TgList.vue?vue&type=template&id=5e01ebdc&
36752
+ // CONCATENATED MODULE: ./src/components/TgList.vue?vue&type=template&id=f4b34d54&
36753
36753
 
36754
36754
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
36755
36755
  var es_symbol = __webpack_require__("a4d3");
@@ -36807,20 +36807,20 @@ var web_dom_collections_for_each = __webpack_require__("159b");
36807
36807
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
36808
36808
  var es_array_from = __webpack_require__("a630");
36809
36809
 
36810
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"78403d1f-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=573a141b&
36811
- var DataTablevue_type_template_id_573a141b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"table-responsive table-fix-header"},[_c('table',{staticClass:"table table-bordered mt-0",staticStyle:{"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"}},[_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._l((_vm.Headers),function(item,headerIndex){return [(item.VISIBLE)?_c('th',{key:headerIndex,class:{'text-center':_vm.subModuleCode=='CRM_BRANDS'&& item.COLUMN_NAME=='Social' || _vm.subModuleCode=='CRM_COMMUNICATION_MODES'&& item.COLUMN_NAME=='status'},staticStyle:{"text-transform":"capitalize"},style:([(item.COLUMN_NAME=='status_name') ? {'width':'10%'} : {'width':''}]),attrs:{"id":item.COLUMN_NAME}},[(item.VISIBLE && item.SORTABLE == true && _vm.isChild == false)?_c('span',{class:{
36810
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"78403d1f-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=a071960c&
36811
+ var DataTablevue_type_template_id_a071960c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"table-responsive table-fix-header"},[_c('table',{staticClass:"table table-bordered mt-0",staticStyle:{"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"}},[_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._l((_vm.Headers),function(item,headerIndex){return [(item.VISIBLE)?_c('th',{key:headerIndex,class:{'text-center':_vm.subModuleCode=='CRM_BRANDS'&& item.COLUMN_NAME=='Social' || _vm.subModuleCode=='CRM_COMMUNICATION_MODES'&& item.COLUMN_NAME=='status'},staticStyle:{"text-transform":"capitalize"},style:([(item.COLUMN_NAME=='status_name') ? {'width':'10%'} : {'width':''}]),attrs:{"id":item.COLUMN_NAME}},[(item.VISIBLE && item.SORTABLE == true && _vm.isChild == false)?_c('span',{class:{
36812
36812
  'sort': item.SORTABLE == true,
36813
36813
  'tb_headerSortUp': _vm.SortExp == 'ASC' && _vm.SortBy == item.COLUMN_NAME,
36814
36814
  'tb_headerSortDown':
36815
36815
  _vm.SortExp == 'DESC' && _vm.SortBy == item.COLUMN_NAME,
36816
- },on:{"click":function($event){return _vm.sortdata(item.COLUMN_NAME)}}},[_vm._v(" "+_vm._s(item.DISPLAY_NAME)+" ")]):_vm._e(),(item.SORTABLE == false || _vm.isChild == true)?_c('span',[_vm._v(" "+_vm._s(item.DISPLAY_NAME)+" ")]):_vm._e()]):_vm._e()]}),(_vm.IsShowAction == true)?_c('th',{staticClass:"nonresize text-center"},[_c('span',[_vm._v("Action")])]):_vm._e()],2)]),_c('tbody',[_vm._l((_vm.Data),function(item,dataIndex){return [_c('tr',{class:item.additionalClass},[((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}},[_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}})])]),(typeof(item.child) != 'undefined' && item.child.isShowExpandButton == true && item.child.isShowChild == false)?_c('a',{staticClass:"parentwithchild d-inline-block parent-childrow chkItems",staticStyle:{"float":"right !important"},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)?_c('a',{staticClass:"parentwithchild d-inline-block parent-childrow chkItems",staticStyle:{"float":"right !important"},attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.onCollapeChild(item)}}},[_c('i',{staticClass:"fa fa-chevron-down"})]):_vm._e()]):_vm._e(),_vm._l((_vm.Headers),function(key,headerIndex){return [(key.VISIBLE)?_c('td',{key:headerIndex,class:{'text-right':key.DATA_TYPE=='decimal'}},[((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'))?_c('span',[_vm._v(_vm._s(_vm.$options.filters.currency(item[key.COLUMN_NAME])))]):_vm._e(),((key.DATA_TYPE!='date' && key.DATA_TYPE!='datetime' && key.DATA_TYPE!='decimal'))?_c('span',{attrs:{"title":item[key.COLUMN_NAME]}},[(typeof(key.settings) != 'undefined' && key.settings != null
36816
+ },on:{"click":function($event){return _vm.sortdata(item.COLUMN_NAME)}}},[_vm._v(" "+_vm._s(item.DISPLAY_NAME)+" ")]):_vm._e(),(item.SORTABLE == false || _vm.isChild == true)?_c('span',[_vm._v(" "+_vm._s(item.DISPLAY_NAME)+" ")]):_vm._e()]):_vm._e()]}),(_vm.IsShowAction == true)?_c('th',{staticClass:"nonresize text-center"},[_c('span',[_vm._v("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}},[_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}})])]),(typeof(item.child) != 'undefined' && item.child.isShowExpandButton == true && item.child.isShowChild == false)?_c('a',{staticClass:"parentwithchild d-inline-block parent-childrow chkItems",staticStyle:{"float":"right !important"},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)?_c('a',{staticClass:"parentwithchild d-inline-block parent-childrow chkItems",staticStyle:{"float":"right !important"},attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.onCollapeChild(item)}}},[_c('i',{staticClass:"fa fa-chevron-down"})]):_vm._e()]):_vm._e(),_vm._l((_vm.Headers),function(key,headerIndex){return [(key.VISIBLE)?_c('td',{key:headerIndex,class:{'text-right':key.DATA_TYPE=='decimal'}},[((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'))?_c('span',[_vm._v(_vm._s(_vm.$options.filters.currency(item[key.COLUMN_NAME])))]):_vm._e(),((key.DATA_TYPE!='date' && key.DATA_TYPE!='datetime' && key.DATA_TYPE!='decimal'))?_c('span',{attrs:{"title":item[key.COLUMN_NAME]}},[(typeof(key.settings) != 'undefined' && key.settings != null
36817
36817
  && 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(),(typeof(key.settings) != 'undefined' && key.settings != null && typeof(key.settings.isInSlot) != 'undefined' && key.settings.isInSlot == true)?_vm._t("slotdata",null,{"data":{row:item,column:key}}):_vm._e()],2):_vm._e()]):_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},on:{"sortdata":_vm.sortdata,"ButtonClick":_vm.ChildButtonClick,"PagerMethod":_vm.pagerMethod,"EventOfCheckbox":_vm.onChangeEventOfCheckbox},scopedSlots:_vm._u([{key:"slotdata",fn:function(ref){
36818
36818
  var data = ref.data;
36819
36819
  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":"Prev","first-text":"First","last-text":"Last","next-text":"Next"},on:{"SetCurrentPage":_vm.pagerMethod}}):_vm._e()],1)}
36820
- var DataTablevue_type_template_id_573a141b_staticRenderFns = []
36820
+ var DataTablevue_type_template_id_a071960c_staticRenderFns = []
36821
36821
 
36822
36822
 
36823
- // CONCATENATED MODULE: ./src/components/DataTable.vue?vue&type=template&id=573a141b&
36823
+ // CONCATENATED MODULE: ./src/components/DataTable.vue?vue&type=template&id=a071960c&
36824
36824
 
36825
36825
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
36826
36826
  var es_regexp_exec = __webpack_require__("ac1f");
@@ -37638,8 +37638,8 @@ var Pager_component = normalizeComponent(
37638
37638
 
37639
37639
  var DataTable_component = normalizeComponent(
37640
37640
  components_DataTablevue_type_script_lang_js_,
37641
- DataTablevue_type_template_id_573a141b_render,
37642
- DataTablevue_type_template_id_573a141b_staticRenderFns,
37641
+ DataTablevue_type_template_id_a071960c_render,
37642
+ DataTablevue_type_template_id_a071960c_staticRenderFns,
37643
37643
  false,
37644
37644
  null,
37645
37645
  null,
@@ -38150,6 +38150,477 @@ var left_search_component = normalizeComponent(
38150
38150
  )
38151
38151
 
38152
38152
  /* harmony default export */ var left_search = (left_search_component.exports);
38153
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"78403d1f-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=2e6271fb&
38154
+ var top_searchvue_type_template_id_2e6271fb_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 pt-2"},[_vm._l((_vm.Fields),function(field,fieldIndex){return _c('div',{key:fieldIndex,staticClass:"col-sm-12 col-md-3 col-lg-3 col-xl-3 float-left"},[(_vm.Fields.length>1)?_c('label',[_vm._v(_vm._s(field.fieldName))]):_vm._e(),(field.fieldType == 'text')?_c('div',{staticClass:"form-group"},[((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":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":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":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'
38155
+ )?_c('div',{staticClass:"form-group"},[_c('div',{class:{
38156
+ 'input-group': true,
38157
+ 'mb-2': field.fieldType == 'date-range',
38158
+ }},[_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){
38159
+ var inputValue = ref.inputValue;
38160
+ var inputEvents = ref.inputEvents;
38161
+ var togglePopover = ref.togglePopover;
38162
+ return [_c('input',_vm._g({staticClass:"form-control",attrs:{"placeholder":field.fieldType == 'date-range'
38163
+ ? 'DateFrom'
38164
+ : field.fieldName},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.value),callback:function ($$v) {_vm.$set(field, "value", $$v)},expression:"field.value"}})],1),(field.fieldType == 'date-range')?_c('div',{staticClass:"input-group"},[_c('v-date-picker',{staticClass:"input-group",attrs:{"popover":_vm.popover,"model-config":_vm.modelConfig,"minute-increment":5,"name":'DateTo' + fieldIndex,"change":_vm.SetMinMaxValueForDatePicker(field, 'dateto')},scopedSlots:_vm._u([{key:"default",fn:function(ref){
38165
+ var inputValue = ref.inputValue;
38166
+ var inputEvents = ref.inputEvents;
38167
+ var togglePopover = ref.togglePopover;
38168
+ 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"},[(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"},[_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])}}},_vm._l((field.listOptions),function(option){return _c('option',{domProps:{"value":option.value}},[_vm._v(" "+_vm._s(option.name)+" ")])}),0)]):_vm._e()])}),_c('div',{staticClass:"col-5 float-left pl-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)])])}
38169
+ var top_searchvue_type_template_id_2e6271fb_staticRenderFns = []
38170
+
38171
+
38172
+ // CONCATENATED MODULE: ./src/components/top-search.vue?vue&type=template&id=2e6271fb&
38173
+
38174
+ // 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&
38175
+
38176
+
38177
+
38178
+
38179
+
38180
+
38181
+
38182
+
38183
+
38184
+
38185
+
38186
+
38187
+
38188
+
38189
+
38190
+
38191
+ /* harmony default export */ var top_searchvue_type_script_lang_js_ = ({
38192
+ props: {
38193
+ fields: {
38194
+ type: Array,
38195
+ required: true
38196
+ },
38197
+ header: {
38198
+ type: String,
38199
+ default: ""
38200
+ }
38201
+ },
38202
+ data: function data() {
38203
+ return {
38204
+ Fields: this.fields,
38205
+ //this.fields
38206
+ popover: {
38207
+ visibility: "click"
38208
+ },
38209
+ modelConfig: {
38210
+ type: "string",
38211
+ mask: "YYYY-MM-DD"
38212
+ }
38213
+ };
38214
+ },
38215
+ watch: {
38216
+ fields: function fields(value) {
38217
+ console.log(value);
38218
+ this.Fields = value != null && value.length > 0 ? value : [];
38219
+ }
38220
+ },
38221
+ mounted: function mounted() {},
38222
+ methods: {
38223
+ onLeftSearchLocalFilter: function onLeftSearchLocalFilter(e) {
38224
+ var val = $(e.target).val();
38225
+ $(e.target).closest(".form-group").find("input:checkbox,input:radio").each(function () {
38226
+ val = String(val).toLowerCase();
38227
+ var text = String($(e.target).closest(".custom-control").find(".custom-control-label").text()).toLowerCase();
38228
+
38229
+ if (text.includes(val)) {
38230
+ $(e.target).closest("div.custom-control").show();
38231
+ } else {
38232
+ $(e.target).closest("div.custom-control").hide();
38233
+ }
38234
+ });
38235
+ var evnt = e.target;
38236
+ setTimeout(function () {
38237
+ if ($(evnt).closest(".form-group").find(".custom-control").length > 0) {
38238
+ if ($(evnt).closest(".form-group").find(".custom-control:visible").length > 0) {
38239
+ $(evnt).closest(".form-group").find("div.no-record").remove();
38240
+ } else {
38241
+ if ($(evnt).closest(".form-group").find("div.no-record").length == 0) {
38242
+ $(evnt).closest(".form-group").append('<div class="text-center text-danger no-record" style="font-size: 12px;">No Record available</div>');
38243
+ }
38244
+ }
38245
+ }
38246
+ }, 200);
38247
+ },
38248
+ JsTreeClick: function JsTreeClick(field, node, item, e) {
38249
+ field.value = String(item.id);
38250
+ },
38251
+ isBlank: function isBlank(str) {
38252
+ return !str || /^\s*$/.test(str);
38253
+ },
38254
+ ExpandCollapsedAll: function ExpandCollapsedAll() {
38255
+ if ($('span[data-target=".multi-collapse"],a[data-target=".multi-collapse"]').hasClass("collapsed")) {
38256
+ setTimeout(function () {
38257
+ $('span[data-target=".multi-collapse"],a[data-target=".multi-collapse"]').removeClass("collapsed");
38258
+ $(".left-menu-tab .card").each(function () {
38259
+ $(this).find(".card-header h5 a").removeClass("collapsed");
38260
+ $(this).find(".card-header h5 a").attr("aria-expanded", "true");
38261
+ $(this).find(".multi-collapse").collapse("show");
38262
+ });
38263
+ }, 500);
38264
+ } else {
38265
+ setTimeout(function () {
38266
+ $('span[data-target=".multi-collapse"],a[data-target=".multi-collapse"]').addClass("collapsed");
38267
+ $(".left-menu-tab .card").each(function () {
38268
+ $(this).find(".card-header h5 a").addClass("collapsed");
38269
+ $(this).find(".card-header h5 a").attr("aria-expanded", "false");
38270
+ $(this).find(".multi-collapse").collapse("hide");
38271
+ });
38272
+ }, 500);
38273
+ }
38274
+ },
38275
+ ClearFilter: function ClearFilter() {
38276
+ $.each(this.Fields, function (index, item) {
38277
+ item.isSearch = false;
38278
+
38279
+ if (item.fieldType == "ddl-multilevel") {
38280
+ item.value = null;
38281
+ } else {
38282
+ item.value = "";
38283
+ }
38284
+
38285
+ item.secondValue = "";
38286
+
38287
+ if (item.fieldType == "ddl-check") {
38288
+ $("#customcheckboxselectall" + index).prop("checked", false);
38289
+ }
38290
+
38291
+ $(".tab-Search-btn").css("display", "none");
38292
+ });
38293
+ $(".searchcustomfilter").val("");
38294
+ $(".searchcustomfilter").trigger("keyup");
38295
+ this.SearchData();
38296
+ setTimeout(function () {
38297
+ $('span[data-target=".multi-collapse"],a[data-target=".multi-collapse"]').addClass("collapsed");
38298
+ $(".left-menu-tab .card").each(function () {
38299
+ $(this).find(".card-header h5 a").addClass("collapsed");
38300
+ $(this).find(".card-header h5 a").attr("aria-expanded", "false");
38301
+ $(this).find(".multi-collapse").collapse("hide");
38302
+ });
38303
+ }, 500);
38304
+ },
38305
+ CheckValueSelectedForbadge: function CheckValueSelectedForbadge(badgeValue, selectedValue, isSearch) {
38306
+ var array = selectedValue.split(",");
38307
+
38308
+ if (array.includes(badgeValue) && isSearch == true) {
38309
+ return false;
38310
+ } else {
38311
+ return true;
38312
+ }
38313
+ },
38314
+ ClearFilerForbadge: function ClearFilerForbadge(badgeValue, item, fieldIndex) {
38315
+ var array = item.value.split(",");
38316
+ var index = array.indexOf(badgeValue);
38317
+ array.splice(index, 1);
38318
+ item.value = array.join(",");
38319
+
38320
+ try {
38321
+ if (item.fieldType == "ddl-check") {
38322
+ if (item.value.split(",").length == item.listOptions.length) {
38323
+ $("#customcheckboxselectall" + fieldIndex).prop("checked", true);
38324
+ } else {
38325
+ $("#customcheckboxselectall" + fieldIndex).prop("checked", false);
38326
+ }
38327
+ }
38328
+ } catch (e) {}
38329
+
38330
+ this.SearchData();
38331
+ },
38332
+ UpdateCheckedValues: function UpdateCheckedValues(fieldItem, value, event, selectAllId) {
38333
+ if (value) {
38334
+ value = String(value);
38335
+ }
38336
+
38337
+ if (event.target.checked == true) {
38338
+ if (fieldItem.value != "") {
38339
+ var array = fieldItem.value.split(",");
38340
+ array.push(value);
38341
+ fieldItem.value = array.join(",");
38342
+ } else {
38343
+ fieldItem.value = value;
38344
+ }
38345
+ } else {
38346
+ var array = fieldItem.value.split(",");
38347
+ var index = array.indexOf(value);
38348
+ array.splice(index, 1);
38349
+ fieldItem.value = array.join(",");
38350
+ }
38351
+
38352
+ try {
38353
+ if (fieldItem.value.split(",").length == fieldItem.listOptions.length) {
38354
+ $("#" + selectAllId).prop("checked", true);
38355
+ } else {
38356
+ $("#" + selectAllId).prop("checked", false);
38357
+ }
38358
+ } catch (e) {}
38359
+
38360
+ this.onChangeforDDL(fieldItem, event);
38361
+ },
38362
+ CheckIfSelected: function CheckIfSelected(item, value) {
38363
+ var array = item.value.split(",");
38364
+ var index = array.indexOf(value);
38365
+ return index > -1;
38366
+ },
38367
+ SetMinMaxValueForDatePicker: function SetMinMaxValueForDatePicker(item, type) {
38368
+ if (item.fieldType == "date-range") {
38369
+ if (type == "datefrom" && item.value != null && item.value != "") {
38370
+ var selectedDate = moment_default()(item.value, item.datePickerConfig.format);
38371
+ item.secondDatePickerConfig.minDate = new Date(selectedDate);
38372
+ } else if (type == "dateto" && item.secondValue != null && item.secondValue != "") {
38373
+ var selectedDate = moment_default()(item.secondValue, item.secondDatePickerConfig.format);
38374
+ item.datePickerConfig.maxDate = new Date(selectedDate);
38375
+ } else if (type == "datefrom" && item.value == "") {
38376
+ var day = new Date().getDate();
38377
+ var Year = new Date().getFullYear() - 1;
38378
+ var month = new Date().getMonth() + 1;
38379
+ var olddate = moment_default()(String(month + "/" + day + "/" + Year), "MM/DD/YYYY").format("MM-dd-yyyy");
38380
+ item.secondDatePickerConfig.minDate = new Date(olddate);
38381
+ item.datePickerConfig.maxDate = new Date();
38382
+ }
38383
+ }
38384
+ },
38385
+ SearchData: function SearchData() {
38386
+ var vueObj = this;
38387
+ var searchCondition = "";
38388
+ var searchConditionJson = {}; //if (vueObj.modulename == "CRM" || vueObj.modulename == "HR" || vueObj.modulename == "Expense" || vueObj.modulename == "FSM") {
38389
+
38390
+ $.each(vueObj.Fields, function (index, item) {
38391
+ switch (item.fieldType) {
38392
+ case "text":
38393
+ if (item.value.length > 0 && (item.fieldSearchConditionName.length > 0 || item.hasOwnProperty("paramName"))) {
38394
+ searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
38395
+ var orCondition = "";
38396
+ var val = item.value.replace(/'/g, "''");
38397
+
38398
+ if (item.hasOwnProperty("paramName")) {
38399
+ searchConditionJson[item.paramName] = val;
38400
+ }
38401
+
38402
+ item.fieldSearchConditionName.forEach(function (field, index) {
38403
+ orCondition += $.trim(orCondition) != "" ? " OR " : "(";
38404
+ orCondition += " " + field + " LIKE '%" + val + "%'";
38405
+ });
38406
+ var combinedCondition = "";
38407
+
38408
+ if (item.fieldSearchConditionName.length > 1) {
38409
+ if (vueObj.$route.path == "/CRM/ContactListing") {
38410
+ combinedCondition = " OR " + item.fieldSearchConditionName.join(" %2B ' ' %2B ") + " LIKE '%" + val + "%'";
38411
+ } else {
38412
+ combinedCondition = " OR " + item.fieldSearchConditionName.join("+' '+") + " LIKE '%" + val + "%'";
38413
+ }
38414
+ }
38415
+
38416
+ orCondition += combinedCondition + ")";
38417
+ searchCondition += orCondition + ")";
38418
+ item.isSearch = true;
38419
+ } else {
38420
+ item.isSearch = false;
38421
+ }
38422
+
38423
+ break;
38424
+
38425
+ case "ddl-radio":
38426
+ case "radio":
38427
+ case "dropdown":
38428
+ if (item.value) {
38429
+ item.value = String(item.value);
38430
+ }
38431
+
38432
+ if (item.value.length > 0 && (item.fieldSearchConditionName.length > 0 || item.hasOwnProperty("paramName"))) {
38433
+ searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
38434
+ var orCondition = "";
38435
+
38436
+ if (item.hasOwnProperty("paramName")) {
38437
+ searchConditionJson[item.paramName] = item.value;
38438
+ }
38439
+
38440
+ item.fieldSearchConditionName.forEach(function (field, index) {
38441
+ orCondition += $.trim(orCondition) != "" ? " OR " : "(";
38442
+ orCondition += " " + field + " = '" + item.value + "'";
38443
+ });
38444
+ orCondition += ")";
38445
+ searchCondition += orCondition + ")";
38446
+ item.isSearch = true;
38447
+ } else {
38448
+ item.isSearch = false;
38449
+ }
38450
+
38451
+ break;
38452
+
38453
+ case "ddl-check":
38454
+ case "checkbox":
38455
+ case "ddl-multilevel":
38456
+ if (item.value) {
38457
+ item.value = String(item.value);
38458
+ }
38459
+
38460
+ if (item.value != null && item.value.length > 0 && (item.fieldSearchConditionName.length > 0 || item.hasOwnProperty("paramName"))) {
38461
+ searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
38462
+ var orCondition = "";
38463
+ var valueArray = item.value.split(",");
38464
+ var finalValues = "'" + valueArray.join("','") + "'";
38465
+
38466
+ if (item.hasOwnProperty("paramName")) {
38467
+ searchConditionJson[item.paramName] = item.value;
38468
+ }
38469
+
38470
+ item.fieldSearchConditionName.forEach(function (field, index) {
38471
+ orCondition += $.trim(orCondition) != "" ? " OR " : "(";
38472
+ orCondition += " " + field + " in (" + finalValues + ")";
38473
+ });
38474
+ orCondition += ")";
38475
+ searchCondition += orCondition + ")";
38476
+ item.isSearch = true;
38477
+ } else {
38478
+ item.isSearch = false;
38479
+ }
38480
+
38481
+ break;
38482
+
38483
+ case "date":
38484
+ if (item.value && (item.fieldSearchConditionName.length > 0 || item.hasOwnProperty("paramName"))) {
38485
+ searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
38486
+ var orCondition = "";
38487
+ var selectedDate = moment_default()(item.value, item.datePickerConfig.format);
38488
+ var dateWithYYYYMMDD = selectedDate.format("YYYY-MM-DD");
38489
+
38490
+ if (item.hasOwnProperty("paramName")) {
38491
+ searchConditionJson[item.paramName] = dateWithYYYYMMDD;
38492
+ }
38493
+
38494
+ item.fieldSearchConditionName.forEach(function (field) {
38495
+ orCondition += $.trim(orCondition) != "" ? " OR " : "(";
38496
+ orCondition += " CONVERT(DATE, " + field + ") = '" + dateWithYYYYMMDD + "'";
38497
+ });
38498
+ orCondition += ")";
38499
+ searchCondition += orCondition + ")";
38500
+ item.isSearch = true;
38501
+ } else {
38502
+ item.isSearch = false;
38503
+ }
38504
+
38505
+ break;
38506
+
38507
+ case "date-range":
38508
+ if ((item.value || item.secondValue) && (item.fieldSearchConditionName.length > 0 || item.hasOwnProperty("paramName"))) {
38509
+ searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
38510
+ var orCondition = "";
38511
+ item.fieldSearchConditionName.forEach(function (field, index) {
38512
+ orCondition += $.trim(orCondition) != "" ? " OR " : "(";
38513
+ var splitfield = field.split("|");
38514
+ var internalCondition = "";
38515
+
38516
+ if (item.value != null && item.value.length > 0) {
38517
+ var _selectedDate = moment_default()(item.value, item.datePickerConfig.format);
38518
+
38519
+ var _dateWithYYYYMMDD = _selectedDate.format("YYYY-MM-DD");
38520
+
38521
+ if (item.hasOwnProperty("paramName")) {
38522
+ searchConditionJson[item.paramName] = _dateWithYYYYMMDD;
38523
+ }
38524
+
38525
+ internalCondition = " CONVERT(DATE, " + splitfield[0] + ") >= '" + _dateWithYYYYMMDD + "'";
38526
+ }
38527
+
38528
+ if (item.secondValue != null && item.secondValue.length > 0) {
38529
+ var _selectedDate2 = moment_default()(item.secondValue, item.secondDatePickerConfig.format);
38530
+
38531
+ var _dateWithYYYYMMDD2 = _selectedDate2.format("YYYY-MM-DD");
38532
+
38533
+ if (item.hasOwnProperty("paramName") && searchConditionJson[item.paramName]) {
38534
+ searchConditionJson[item.paramName] = searchConditionJson[item.paramName] + "|" + _dateWithYYYYMMDD2;
38535
+ }
38536
+
38537
+ internalCondition += $.trim(internalCondition) != "" ? " AND " : "";
38538
+ internalCondition += " CONVERT(DATE, " + splitfield[1] + ") <= '" + _dateWithYYYYMMDD2 + "'";
38539
+ }
38540
+
38541
+ orCondition += internalCondition;
38542
+ });
38543
+ orCondition += ")";
38544
+ searchCondition += orCondition + ")";
38545
+ item.isSearch = true;
38546
+ } else {
38547
+ item.isSearch = false;
38548
+ }
38549
+
38550
+ break;
38551
+ }
38552
+ }); //}
38553
+ //vueObj.$parent.PageNumber = 1;
38554
+ //vueObj.$parent.GroupStart = vueObj.$parent.PageNumber;
38555
+ //vueObj.$parent.GroupEnd = vueObj.$parent.PageNumber + 2;
38556
+ //vueObj.$parent.conditionForInstantSearch = "";
38557
+ //vueObj.$parent.conditionForInstantSearch = searchCondition;
38558
+
38559
+ console.log(searchConditionJson);
38560
+ var qs = "";
38561
+
38562
+ if (searchConditionJson) {
38563
+ qs = Object.keys(searchConditionJson).map(function (key) {
38564
+ return "".concat(key, "=").concat(searchConditionJson[key]);
38565
+ }).join("&");
38566
+ console.log(qs);
38567
+ }
38568
+
38569
+ this.$emit("SetLeftSearch", {
38570
+ PageNumber: 1,
38571
+ searchCondition: searchCondition,
38572
+ searchConditionJson: qs
38573
+ }); //vueObj.callbackfunction();
38574
+ },
38575
+ SearchOnEnter: function SearchOnEnter(event, itm) {
38576
+ if (itm.isNumeric != undefined && itm.isNumeric == true && /[0-9]/.test(event.key) == false && event.key != "Backspace") {
38577
+ event.preventDefault();
38578
+ }
38579
+
38580
+ if (event.keyCode == 13) {
38581
+ this.SearchData();
38582
+ }
38583
+ },
38584
+ SelectAllRecords: function SelectAllRecords(field, e) {
38585
+ if (e.target.checked == true) {
38586
+ var selectAll = "";
38587
+ field.listOptions.forEach(function (item) {
38588
+ selectAll += selectAll == "" ? item.value : "," + item.value;
38589
+ });
38590
+ field.value = selectAll;
38591
+ } else {
38592
+ field.value = "";
38593
+ }
38594
+ },
38595
+ onChangeforDDL: function onChangeforDDL(field, e) {
38596
+ if (field && field.hasOwnProperty("onChange")) {
38597
+ field.onChange(field, e);
38598
+ }
38599
+ }
38600
+ }
38601
+ });
38602
+ // CONCATENATED MODULE: ./src/components/top-search.vue?vue&type=script&lang=js&
38603
+ /* harmony default export */ var components_top_searchvue_type_script_lang_js_ = (top_searchvue_type_script_lang_js_);
38604
+ // CONCATENATED MODULE: ./src/components/top-search.vue
38605
+
38606
+
38607
+
38608
+
38609
+
38610
+ /* normalize component */
38611
+
38612
+ var top_search_component = normalizeComponent(
38613
+ components_top_searchvue_type_script_lang_js_,
38614
+ top_searchvue_type_template_id_2e6271fb_render,
38615
+ top_searchvue_type_template_id_2e6271fb_staticRenderFns,
38616
+ false,
38617
+ null,
38618
+ null,
38619
+ null
38620
+
38621
+ )
38622
+
38623
+ /* harmony default export */ var top_search = (top_search_component.exports);
38153
38624
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"78403d1f-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/CardView.vue?vue&type=template&id=d1171b32&
38154
38625
  var CardViewvue_type_template_id_d1171b32_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"talygen-card-view"},[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-12 mb-2"},_vm._l((_vm.LegendArray),function(legend){return _c('div',{staticClass:"mr-2 d-inline-block"},[_c('span',{staticClass:"colorboxsquare",class:legend.class,style:({'background':legend.backgroundColor})}),_vm._v(_vm._s(legend.name)+" ")])}),0)]),_c('div',{staticClass:"row card-view bg-border custom-box-width"},[_vm._l((_vm.data),function(row,index){return _c('div',{key:index,staticClass:"col-md-12 col-lg-6 col-xl-3 mb-3 fsmaddresscontrol"},[(!_vm.customcard)?_c('div',{class:'card-box ' + ((typeof(row.additionalClass) != 'undefined')? row.additionalClass: '' ),style:('border-width: 5px 2px 2px; border-style: solid; border-color:' + ((typeof(row.color_code) != 'undefined')? row.color_code: 'rgb(153 153 153)' ) + '; border-image: initial;')},[_c('div',{staticClass:"mb-2"},[_c('div',{staticClass:"custom-control custom-checkbox"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(row.isSelected),expression:"row.isSelected"}],staticClass:"chkItems",attrs:{"disabled":row.isCheckBoxDisabled,"type":"checkbox"},domProps:{"value":row[_vm.identityColumn],"checked":Array.isArray(row.isSelected)?_vm._i(row.isSelected,row[_vm.identityColumn])>-1:(row.isSelected)},on:{"change":[function($event){var $$a=row.isSelected,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=row[_vm.identityColumn],$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(row, "isSelected", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(row, "isSelected", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(row, "isSelected", $$c)}},function($event){return _vm.onChangeEventOfCheckbox($event, _vm.item)}]}})]),((_vm.columns[0].DATA_TYPE=='date' || _vm.columns[0].DATA_TYPE=='datetime') && (_vm.columns[0].DATA_TYPE !='decimal'))?_c('span',[_vm._v(_vm._s(_vm.$options.filters.formatDate(row[_vm.columns[0].COLUMN_NAME])))]):_vm._e(),((_vm.columns[0].DATA_TYPE=='decimal'))?_c('span',[_vm._v(_vm._s(_vm.$options.filters.currency(row[_vm.columns[0].COLUMN_NAME])))]):_vm._e(),((_vm.columns[0].DATA_TYPE!='date' && _vm.columns[0].DATA_TYPE!='datetime' && _vm.columns[0].DATA_TYPE!='decimal'))?_c('span',{attrs:{"title":row[_vm.columns[0].COLUMN_NAME]}},[(typeof(_vm.columns[0].settings) != 'undefined' && _vm.columns[0].settings != null && typeof(_vm.columns[0].settings.clickEvent) != 'undefined' && _vm.columns[0].settings.clickEvent != null && _vm.columns[0].settings.isInSlot != true)?_c('a',{attrs:{"id":"viewLeadeContent_a","href":"javascript:;"},on:{"click":function($event){return _vm.clickEventCheck(_vm.columns,row)}}},[_vm._v(_vm._s(((typeof(_vm.columns[0].settings.formatter) === 'function')?_vm.columns[0].settings.formatter(row, _vm.columns[0]):_vm.TruncateStr(row[_vm.columns[0].COLUMN_NAME],30))))]):_vm._e(),(typeof(_vm.columns[0].settings) != 'undefined' && _vm.columns[0].settings != null && (typeof(_vm.columns[0].settings.clickEvent) === 'undefined' || _vm.columns[0].settings.clickEvent == null) && _vm.columns[0].settings.isInSlot != true)?_c('span',{attrs:{"title":row[_vm.columns[0].COLUMN_NAME]}},[_vm._v(_vm._s(((typeof(_vm.columns[0].settings.formatter) === 'function')?_vm.columns[0].settings.formatter(row, _vm.columns[0]):_vm.TruncateStr(row[_vm.columns[0].COLUMN_NAME],30))))]):_vm._e(),(typeof(_vm.columns[0].settings) === 'undefined' || _vm.columns[0].settings == null)?_c('span',{attrs:{"title":row[_vm.columns[0].COLUMN_NAME]}},[_vm._v(_vm._s(_vm.TruncateStr(row[_vm.columns[0].COLUMN_NAME],30)))]):_vm._e(),(typeof(_vm.columns[0].settings) != 'undefined' && _vm.columns[0].settings != null && typeof(_vm.columns[0].settings.isInSlot) != 'undefined' && _vm.columns[0].settings.isInSlot == true)?_vm._t("slotdata",null,{"data":{row:row,column:_vm.columns[0]}}):_vm._e()],2):_vm._e()]),_c('div',{staticClass:"card-detail-main filterscrollForCardView"},_vm._l((_vm.columns),function(key,index){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShowColumn(row,key) && index > 0),expression:"isShowColumn(row,key) && index > 0"}],key:index,staticClass:"card-detail"},[_c('i',{class:'fa '+ _vm.defaultIconsForColumn(key),attrs:{"data-name":key.COLUMN_NAME,"aria-hidden":"true"}}),((key.DATA_TYPE=='date' || key.DATA_TYPE=='datetime') && (key.DATA_TYPE !='decimal'))?_c('span',[_vm._v(_vm._s(_vm.$options.filters.formatDate(row[key.COLUMN_NAME])))]):_vm._e(),((key.DATA_TYPE=='decimal'))?_c('span',[_vm._v(_vm._s(_vm.$options.filters.currency(row[key.COLUMN_NAME])))]):_vm._e(),((key.DATA_TYPE!='date' && key.DATA_TYPE!='datetime' && key.DATA_TYPE!='decimal'))?_c('span',{attrs:{"title":row[key.COLUMN_NAME]}},[(typeof(key.settings) != 'undefined' && key.settings != null && typeof(key.settings.clickEvent) != 'undefined' && key.settings.clickEvent != null && key.settings.isInSlot != true)?_c('a',{attrs:{"id":"viewLeadeContent_a","href":"javascript:;"},on:{"click":function($event){return _vm.clickEventCheck2(key,row)}}},[_vm._v(_vm._s(((typeof(key.settings.formatter) === 'function')?key.settings.formatter(row, key):_vm.TruncateStr(row[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":row[key.COLUMN_NAME]}},[_vm._v(_vm._s(((typeof(key.settings.formatter) === 'function')?key.settings.formatter(row, key):_vm.TruncateStr(row[key.COLUMN_NAME],30))))]):_vm._e(),(typeof(key.settings) === 'undefined' || key.settings == null)?_c('span',{attrs:{"title":row[key.COLUMN_NAME]}},[_vm._v(_vm._s(_vm.TruncateStr(row[key.COLUMN_NAME],30)))]):_vm._e(),(typeof(key.settings) != 'undefined' && key.settings != null && typeof(key.settings.isInSlot) != 'undefined' && key.settings.isInSlot == true)?_vm._t("slotdata",null,{"data":{row:row,column:key}}):_vm._e()],2):_vm._e()])}),0),_c('div',{staticClass:"bottom-action",staticStyle:{"background":"none !important"}},[_vm._l((_vm.columns),function(key){return [(typeof(key.settings) !== 'undefined' && key.settings != null && typeof(key.settings.isForTag) !== 'undefined' && key.settings.isForTag == true)?_c('div',{class:'px-2 text-center text-white d-block ' + _vm.tagColor(row, key)},[_vm._v(" "+_vm._s(row[key.COLUMN_NAME]=='Active'?'Draft':row[key.COLUMN_NAME])+" ")]):_vm._e()]}),_c('div',{staticClass:"card-action my-2"},[(_vm.IsShowAction == true)?_c('RowActions',{attrs:{"item":row,"index":index,"identityColumn":_vm.identityColumn,"listActionsMethod":_vm.renderRowActionMethod,"listType":"Card"},on:{"ButtonClick":_vm.ButtonClick}}):_vm._e()],1)],2)]):_vm._e(),(_vm.customcard)?[_vm._t("customcard",null,{"data":{row:row,columnlist:_vm.columns, onchangecheckbox:_vm.onChangeEventOfCheckbox }})]:_vm._e()],2)}),(_vm.noRecord)?_c('div',{staticClass:"table-responsive table-fix-header text-center p-2 border",staticStyle:{"height":"46px"}},[_c('span',{staticClass:"text-center text-danger no-record",attrs:{"colspan":"17"}},[_vm._v(_vm._s(_vm.NorecordfoundText))])]):_vm._e()],2),_c('Pager',{attrs:{"UserPageSize":_vm.UserPageSize,"numberofrecords":_vm.TotalRecords,"CurrentPageNumber":_vm.CurrentPageNumber,"prev-text":"Prev","first-text":"First","last-text":"Last","next-text":"Next"},on:{"SetCurrentPage":_vm.pagerMethod}})],1)}
38155
38626
  var CardViewvue_type_template_id_d1171b32_staticRenderFns = []
@@ -38908,11 +39379,21 @@ var list_header_buttonNew_component = normalizeComponent(
38908
39379
  //
38909
39380
  //
38910
39381
  //
39382
+ //
39383
+ //
39384
+ //
39385
+ //
39386
+ //
39387
+ //
39388
+ //
39389
+ //
38911
39390
  //
38912
39391
  // Data table Compoonent for deiplaying data into the tabel.
38913
39392
 
38914
39393
  // Left Search component for displaying left search
38915
39394
 
39395
+ // Left Search component for displaying left search
39396
+
38916
39397
  // Card Vuew Component used for card view.
38917
39398
 
38918
39399
 
@@ -38925,6 +39406,7 @@ var list_header_buttonNew_component = normalizeComponent(
38925
39406
  DataTable: DataTable,
38926
39407
  "list-header-buttons": list_header_buttons,
38927
39408
  leftsearch: left_search,
39409
+ topsearch: top_search,
38928
39410
  CardView: CardView,
38929
39411
  KanbanView: KanbanView,
38930
39412
  ListHeaderButtonNew: list_header_buttonNew