tg-listv 0.0.15 → 0.0.16
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 +79 -24
- package/dist/tglistv.common.js.map +1 -1
- package/dist/tglistv.umd.js +79 -24
- package/dist/tglistv.umd.js.map +1 -1
- package/dist/tglistv.umd.min.js +4 -4
- package/dist/tglistv.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/tglistv.common.js
CHANGED
|
@@ -31138,10 +31138,10 @@ if (typeof window !== 'undefined') {
|
|
|
31138
31138
|
// Indicate to webpack that this file can be concatenated
|
|
31139
31139
|
/* harmony default export */ var setPublicPath = (null);
|
|
31140
31140
|
|
|
31141
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1e3db1ba-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=
|
|
31141
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1e3db1ba-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=65e71738&
|
|
31142
31142
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[((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)]},[_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(),(_vm.HeaderButtons)?_c('div',{staticClass:"col-md-12 p-0"},[_c('list-header-buttons',{attrs:{"icons":_vm.HeaderButtonArrayForUpdate,"listType":_vm.listType},on:{"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'))?_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,"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){
|
|
31143
31143
|
var data = ref.data;
|
|
31144
|
-
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,"customcard":_vm.IsShowCustomCard,"IsShowAction":_vm.IsShowAction,"identityColumn":_vm.IdentityColumn,"subModuleCode":_vm.SubModuleCode,"LegendArray":_vm.LegendArray,"renderRowActionMethod":_vm.RenderRowActionMethod},on:{"PagerMethod":_vm.pagerMethod,"ButtonClick":_vm.actionButtonClick,"EventOfCheckbox":_vm.onChangeEventOfCheckbox},scopedSlots:_vm._u([{key:"slotdata",fn:function(ref){
|
|
31144
|
+
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,"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){
|
|
31145
31145
|
var data = ref.data;
|
|
31146
31146
|
return [_vm._t("slotdata",null,{"data":{row:data.row,column:data.column,listtype:_vm.selectedView}})]}},{key:"customcard",fn:function(ref){
|
|
31147
31147
|
var data = ref.data;
|
|
@@ -31153,7 +31153,7 @@ return [_vm._t("customcard",null,{"data":{row:data.row,columnlist:data.columnlis
|
|
|
31153
31153
|
var staticRenderFns = []
|
|
31154
31154
|
|
|
31155
31155
|
|
|
31156
|
-
// CONCATENATED MODULE: ./src/components/TgList.vue?vue&type=template&id=
|
|
31156
|
+
// CONCATENATED MODULE: ./src/components/TgList.vue?vue&type=template&id=65e71738&
|
|
31157
31157
|
|
|
31158
31158
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
31159
31159
|
var es_symbol = __webpack_require__("a4d3");
|
|
@@ -31908,8 +31908,8 @@ var DataTable_component = normalizeComponent(
|
|
|
31908
31908
|
)
|
|
31909
31909
|
|
|
31910
31910
|
/* harmony default export */ var DataTable = (DataTable_component.exports);
|
|
31911
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1e3db1ba-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/left-search.vue?vue&type=template&id=
|
|
31912
|
-
var
|
|
31911
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1e3db1ba-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/left-search.vue?vue&type=template&id=8cb2b136&
|
|
31912
|
+
var left_searchvue_type_template_id_8cb2b136_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"col-md-12 p-0"},[_c('div',{staticClass:"theme-primary partition"},[(_vm.header)?_c('span',{staticClass:"p-name text-white"},[_vm._v(_vm._s(_vm.header))]):_vm._e()])]),_c('div',{staticClass:"accordion md-accordion left-filter mt-2",attrs:{"id":"accordionEx","role":"tablist","aria-multiselectable":"true"}},[_c('div',{staticClass:"card"},[_c('div',{staticClass:"card-header filter-head",attrs:{"role":"tab","id":"headingOne1"}},[_c('h5',{staticClass:"mb-0"},[_c('em',{staticClass:"fa fa-filter",attrs:{"aria-hidden":"true"}}),_vm._v(" Search "),_c('span',{staticClass:"expand_all_filters"},[_c('span',{attrs:{"id":"SearchData"},on:{"click":function($event){return _vm.SearchData()}}},[_vm._m(0)]),_c('span',{on:{"click":function($event){return _vm.ClearFilter()}}},[_vm._m(1)]),_c('span',{staticClass:"collapsed ancExpandAllCollapseAll",attrs:{"data-target":".multi-collapse","data-toggle":"collapse"},on:{"click":function($event){return _vm.ExpandCollapsedAll()}}},[_vm._m(2)])])])])]),_c('div',{staticClass:"card-panel"},_vm._l((_vm.Fields),function(field,fieldIndex){return _c('div',{key:fieldIndex,staticClass:"card"},[_c('div',{staticClass:"card-header",attrs:{"role":"tab","id":'headingOnee' + fieldIndex}},[_c('h5',{staticClass:"mb-0"},[_c('a',{staticClass:"collapsed",attrs:{"data-toggle":"collapse","data-parent":"#accordionEx","href":'#collapseOne'+fieldIndex,"aria-expanded":"false","aria-controls":'collapseOne'+fieldIndex}},[_c('em',{class:'fa ' + field.fieldIcon,attrs:{"aria-hidden":"true"}}),_c('span',{class:{'filter':field.isSearch}},[_vm._v(_vm._s(field.fieldName))]),_c('em',{staticClass:"fa fa-angle-down rotate-icon",attrs:{"aria-hidden":"true"}})]),_c('a',{class:{'tab-Search-btn': true, 'd-block': field.value.length > 0},attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.SearchData()}}},[_c('em',{staticClass:"fa fa-search",attrs:{"aria-hidden":"true"}})])])]),_c('div',{staticClass:"collapse multi-collapse",attrs:{"id":'collapseOne'+fieldIndex,"role":"tabpanel","aria-labelledby":'headingOnee' + fieldIndex,"data-parent":"#accordionEx"}},[_c('div',{staticClass:"card-body pt-0"},[(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')?_c('div',{staticClass:"form-group"},[_c('div',{class:{'input-group':true, 'mb-2':(field.fieldType == 'date-range') }},[_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){
|
|
31913
31913
|
var inputValue = ref.inputValue;
|
|
31914
31914
|
var inputEvents = ref.inputEvents;
|
|
31915
31915
|
var togglePopover = ref.togglePopover;
|
|
@@ -31918,10 +31918,10 @@ var inputValue = ref.inputValue;
|
|
|
31918
31918
|
var inputEvents = ref.inputEvents;
|
|
31919
31919
|
var togglePopover = ref.togglePopover;
|
|
31920
31920
|
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== 'radio' || field.fieldType== 'checkbox')?_c('div',{staticClass:"form-group"},_vm._l((field.listOptions),function(item,index){return _c('div',{key:index,class:{'custom-control w-auto custom-control-inline': true, 'custom-radio': field.fieldType== 'radio', 'custom-checkbox': field.fieldType== 'checkbox'}},[(field.fieldType== 'radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],staticClass:"custom-control-input dynamic",attrs:{"type":"radio","id":'customcheckbox'+fieldIndex+index,"name":"selectedDealOwner"},domProps:{"value":item.value,"checked":_vm._q(field.value,item.value)},on:{"change":function($event){return _vm.$set(field, "value", item.value)}}}):_vm._e(),(field.fieldType== 'checkbox')?_c('input',{staticClass:"custom-control-input dynamic",attrs:{"type":"checkbox","id":'customcheckbox'+fieldIndex+index,"name":"selectedDealOwner"},domProps:{"checked":_vm.CheckIfSelected(field, item.value),"value":item.value},on:{"change":function($event){return _vm.UpdateCheckedValues(field, item.value, $event)}}}):_vm._e(),_c('label',{staticClass:"custom-control-label",attrs:{"for":'customcheckbox'+fieldIndex+index}},[_vm._v(_vm._s(item.name))])])}),0):_vm._e(),(field.fieldType== 'ddl-radio' || field.fieldType== 'ddl-check')?_c('div',{staticClass:"form-group"},[_c('vue-scroll',[_c('div',{staticClass:"w-100 d-flex flex-wrap filterscroll filterscroll_leftsearch"},_vm._l((field.listOptions),function(btn,index){return _c('button',{key:index,class:{'btn search-tag searchtagfloat float-left':true, 'd-none':_vm.CheckValueSelectedForbadge(btn.value, field.value, field.isSearch)},attrs:{"type":"button"}},[_c('span',{staticClass:"tag-name"},[_vm._v(_vm._s(btn.name))]),_c('span',{staticClass:"badge text-dark",on:{"click":function($event){return _vm.ClearFilerForbadge(btn.value, field, fieldIndex)}}},[_vm._v("×")])])}),0)]),_c('div',{staticClass:"w-100"},[_vm._m(3,true),_c('vue-scroll',[_c('div',{staticClass:"form-group filterscroll filterscroll_leftsearch",staticStyle:{"max-height":"200px"}},[(field.fieldType == 'ddl-check')?_c('div',{staticClass:"custom-control custom-checkbox custom-control-inline w-100"},[_c('input',{staticClass:"custom-control-input dynamic customcheckboxselectall",attrs:{"id":'customcheckboxselectall'+fieldIndex,"type":"checkbox"},on:{"change":function($event){return _vm.SelectAllRecords(field, $event)}}}),_c('label',{staticClass:"custom-control-label",attrs:{"for":'customcheckboxselectall'+fieldIndex,"type":"checkbox"}},[_vm._v("Select All")])]):_vm._e(),_vm._l((field.listOptions),function(item,index){return _c('div',{key:index,class:{'custom-control custom-checkbox custom-control-inline w-100': true, 'custom-radio': field.fieldType== 'ddl-radio','custom-checkbox': field.fieldType=='ddl-check'}},[(field.fieldType== 'ddl-radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],staticClass:"custom-control-input dynamic",attrs:{"type":"radio","id":'customcheckbox'+fieldIndex+index,"name":"selectedDealOwner"},domProps:{"value":item.value,"checked":_vm._q(field.value,item.value)},on:{"change":function($event){return _vm.$set(field, "value", item.value)}}}):_vm._e(),(field.fieldType== 'ddl-check')?_c('input',{staticClass:"custom-control-input dynamic",attrs:{"type":"checkbox","id":'customcheckbox'+fieldIndex+index,"name":"selectedDealOwner"},domProps:{"checked":_vm.CheckIfSelected(field, item.value),"value":item.value},on:{"change":function($event){return _vm.UpdateCheckedValues(field, item.value, $event, 'customcheckboxselectall'+fieldIndex)}}}):_vm._e(),_c('label',{staticClass:"custom-control-label",attrs:{"for":'customcheckbox'+fieldIndex+index}},[_vm._v(_vm._s(item.name))])])})],2)])],1)],1):_vm._e(),(field.fieldType== 'ddl-multilevel')?_c('div',{staticClass:"form-group"},[(field.listOptions && field.listOptions.length>0)?_c('v-jstree',{ref:"tree",refInFor:true,attrs:{"opened":false,"data":field.listOptions,"show-checkbox":"","multiple":"","allow-batch":"","whole-row":""},on:{"item-click":function($event){return _vm.JsTreeClick(field)}}}):_vm._e()],1):_vm._e()])])])}),0)]),_c('div',{staticClass:"bottom_filter_button"},[_c('a',{staticClass:"collapsed",attrs:{"href":"javascript:;","data-target":".multi-collapse","data-toggle":"collapse"},on:{"click":_vm.ExpandCollapsedAll}},[_vm._v("ExpandAllCollapseAll")])])])}
|
|
31921
|
-
var
|
|
31921
|
+
var left_searchvue_type_template_id_8cb2b136_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',{staticClass:"collapsed",attrs:{"href":"javascript:;","title":"Search","data-toggle-tooltip":"tooltip"}},[_c('em',{staticClass:"fa fa-search",attrs:{"aria-hidden":"true"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',{staticClass:"collapsed",attrs:{"title":"Reset","href":"javascript:;","data-toggle-tooltip":"tooltip"}},[_c('em',{staticClass:"fa fa-repeat",attrs:{"aria-hidden":"true"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',{staticClass:"collapsed",attrs:{"href":"javascript:;","title":"ExpandAllCollapseAll","data-toggle-tooltip":"tooltip"}},[_c('em',{staticClass:"fa fa-sort-desc",attrs:{"aria-hidden":"true"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"p-0 mb-1 w-100"},[_c('div',{staticClass:"input-group customsearchbox"},[_c('input',{staticClass:"form-control searchcustomfilter border-right-0",attrs:{"type":"text","Placeholder":"Search","autocomplete":"off"}}),_c('div',{staticClass:"input-group-append"},[_c('span',{staticClass:"input-group-text bg-transparent bg-white border-left-0"},[_c('em',{staticClass:"fa fa-search"})])])])])}]
|
|
31922
31922
|
|
|
31923
31923
|
|
|
31924
|
-
// CONCATENATED MODULE: ./src/components/left-search.vue?vue&type=template&id=
|
|
31924
|
+
// CONCATENATED MODULE: ./src/components/left-search.vue?vue&type=template&id=8cb2b136&
|
|
31925
31925
|
|
|
31926
31926
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
31927
31927
|
var es_array_find = __webpack_require__("7db0");
|
|
@@ -31999,6 +31999,7 @@ var vue_jstree_default = /*#__PURE__*/__webpack_require__.n(vue_jstree);
|
|
|
31999
31999
|
methods: {
|
|
32000
32000
|
JsTreeClick: function JsTreeClick(item) {
|
|
32001
32001
|
var selectedItems = [];
|
|
32002
|
+
console.log(this.$refs.tree.handleRecursionNodeChilds);
|
|
32002
32003
|
this.$refs.tree.handleRecursionNodeChilds(this.$refs.tree, function (node) {
|
|
32003
32004
|
Array.from(node.data).forEach(function (node_item) {
|
|
32004
32005
|
if (node_item.selected) {
|
|
@@ -32141,10 +32142,21 @@ var vue_jstree_default = /*#__PURE__*/__webpack_require__.n(vue_jstree);
|
|
|
32141
32142
|
if (item.value.length > 0 && item.fieldSearchConditionName.length > 0) {
|
|
32142
32143
|
searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
|
|
32143
32144
|
var orCondition = "";
|
|
32145
|
+
var orJsonCondition = "";
|
|
32144
32146
|
var val = item.value.replace(/'/g, "''");
|
|
32145
|
-
item.fieldSearchConditionName.forEach(function (field) {
|
|
32147
|
+
item.fieldSearchConditionName.forEach(function (field, index) {
|
|
32146
32148
|
orCondition += $.trim(orCondition) != "" ? " OR " : "(";
|
|
32147
|
-
orCondition += " " + field + " LIKE '%" + val + "%'";
|
|
32149
|
+
orCondition += " " + field + " LIKE '%" + val + "%'"; // json condition
|
|
32150
|
+
|
|
32151
|
+
orJsonCondition += $.trim(orJsonCondition) != "" ? " OR " : "(";
|
|
32152
|
+
orJsonCondition += " LIKE '%" + val + "%'";
|
|
32153
|
+
|
|
32154
|
+
if (index === item.fieldSearchConditionName.length - 1) {
|
|
32155
|
+
orJsonCondition += " OR " + item.fieldSearchConditionName.join("+' '+") + " LIKE '%" + val + "%'";
|
|
32156
|
+
orJsonCondition += orJsonCondition + ")";
|
|
32157
|
+
orJsonCondition += orJsonCondition + ")";
|
|
32158
|
+
searchConditionJson[field] = orJsonCondition;
|
|
32159
|
+
}
|
|
32148
32160
|
});
|
|
32149
32161
|
var combinedCondition = "";
|
|
32150
32162
|
|
|
@@ -32158,7 +32170,6 @@ var vue_jstree_default = /*#__PURE__*/__webpack_require__.n(vue_jstree);
|
|
|
32158
32170
|
|
|
32159
32171
|
orCondition += combinedCondition + ")";
|
|
32160
32172
|
searchCondition += orCondition + ")";
|
|
32161
|
-
searchConditionJson[item.fieldName] = orCondition;
|
|
32162
32173
|
item.isSearch = true;
|
|
32163
32174
|
} else {
|
|
32164
32175
|
item.isSearch = false;
|
|
@@ -32171,9 +32182,18 @@ var vue_jstree_default = /*#__PURE__*/__webpack_require__.n(vue_jstree);
|
|
|
32171
32182
|
if (item.value.length > 0 && item.fieldSearchConditionName.length > 0) {
|
|
32172
32183
|
searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
|
|
32173
32184
|
var orCondition = "";
|
|
32174
|
-
|
|
32185
|
+
var orJsonCondition = "";
|
|
32186
|
+
item.fieldSearchConditionName.forEach(function (field, index) {
|
|
32175
32187
|
orCondition += $.trim(orCondition) != "" ? " OR " : "(";
|
|
32176
|
-
orCondition += " " + field + " = '" + item.value + "'";
|
|
32188
|
+
orCondition += " " + field + " = '" + item.value + "'"; // json condition
|
|
32189
|
+
|
|
32190
|
+
orJsonCondition += $.trim(orJsonCondition) != "" ? " OR " : "(";
|
|
32191
|
+
orJsonCondition += " " + field + " = '" + item.value + "'";
|
|
32192
|
+
|
|
32193
|
+
if (index === item.fieldSearchConditionName.length - 1) {
|
|
32194
|
+
orJsonCondition += ")";
|
|
32195
|
+
searchConditionJson[field] = orJsonCondition;
|
|
32196
|
+
}
|
|
32177
32197
|
});
|
|
32178
32198
|
orCondition += ")";
|
|
32179
32199
|
searchCondition += orCondition + ")";
|
|
@@ -32190,11 +32210,20 @@ var vue_jstree_default = /*#__PURE__*/__webpack_require__.n(vue_jstree);
|
|
|
32190
32210
|
if (item.value.length > 0 && item.fieldSearchConditionName.length > 0) {
|
|
32191
32211
|
searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
|
|
32192
32212
|
var orCondition = "";
|
|
32213
|
+
var orJsonCondition = "";
|
|
32193
32214
|
var valueArray = item.value.split(",");
|
|
32194
32215
|
var finalValues = "'" + valueArray.join("','") + "'";
|
|
32195
|
-
item.fieldSearchConditionName.forEach(function (field) {
|
|
32216
|
+
item.fieldSearchConditionName.forEach(function (field, index) {
|
|
32196
32217
|
orCondition += $.trim(orCondition) != "" ? " OR " : "(";
|
|
32197
|
-
orCondition += " " + field + " in (" + finalValues + ")";
|
|
32218
|
+
orCondition += " " + field + " in (" + finalValues + ")"; // json condition
|
|
32219
|
+
|
|
32220
|
+
orJsonCondition += $.trim(orJsonCondition) != "" ? " OR " : "(";
|
|
32221
|
+
orJsonCondition += " " + field + " in (" + finalValues + ")";
|
|
32222
|
+
|
|
32223
|
+
if (index === item.fieldSearchConditionName.length - 1) {
|
|
32224
|
+
orJsonCondition += ")";
|
|
32225
|
+
searchConditionJson[field] = orJsonCondition;
|
|
32226
|
+
}
|
|
32198
32227
|
});
|
|
32199
32228
|
orCondition += ")";
|
|
32200
32229
|
searchCondition += orCondition + ")";
|
|
@@ -32210,11 +32239,20 @@ var vue_jstree_default = /*#__PURE__*/__webpack_require__.n(vue_jstree);
|
|
|
32210
32239
|
if (item.value != null && item.value.length > 0 && item.fieldSearchConditionName.length > 0) {
|
|
32211
32240
|
searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
|
|
32212
32241
|
var orCondition = "";
|
|
32242
|
+
var orJsonCondition = "";
|
|
32213
32243
|
var selectedDate = moment_default()(item.value, item.datePickerConfig.format);
|
|
32214
32244
|
var dateWithYYYYMMDD = selectedDate.format("YYYY-MM-DD");
|
|
32215
32245
|
item.fieldSearchConditionName.forEach(function (field) {
|
|
32216
32246
|
orCondition += $.trim(orCondition) != "" ? " OR " : "(";
|
|
32217
|
-
orCondition += " CONVERT(DATE, " + field + ") = '" + dateWithYYYYMMDD + "'";
|
|
32247
|
+
orCondition += " CONVERT(DATE, " + field + ") = '" + dateWithYYYYMMDD + "'"; // json condition
|
|
32248
|
+
|
|
32249
|
+
orJsonCondition += $.trim(orJsonCondition) != "" ? " OR " : "(";
|
|
32250
|
+
orJsonCondition += " CONVERT(DATE, " + field + ") = '" + dateWithYYYYMMDD + "'";
|
|
32251
|
+
|
|
32252
|
+
if (index === item.fieldSearchConditionName.length - 1) {
|
|
32253
|
+
orJsonCondition += ")";
|
|
32254
|
+
searchConditionJson[field] = orJsonCondition;
|
|
32255
|
+
}
|
|
32218
32256
|
});
|
|
32219
32257
|
orCondition += ")";
|
|
32220
32258
|
searchCondition += orCondition + ")";
|
|
@@ -32230,7 +32268,8 @@ var vue_jstree_default = /*#__PURE__*/__webpack_require__.n(vue_jstree);
|
|
|
32230
32268
|
if ((item.value != null && item.value.length > 0 || item.secondValue != null && item.secondValue.length > 0) && item.fieldSearchConditionName.length > 0) {
|
|
32231
32269
|
searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
|
|
32232
32270
|
var orCondition = "";
|
|
32233
|
-
|
|
32271
|
+
var orJsonCondition = "";
|
|
32272
|
+
item.fieldSearchConditionName.forEach(function (field, index) {
|
|
32234
32273
|
orCondition += $.trim(orCondition) != "" ? " OR " : "(";
|
|
32235
32274
|
var splitfield = field.split("|");
|
|
32236
32275
|
var internalCondition = "";
|
|
@@ -32253,6 +32292,12 @@ var vue_jstree_default = /*#__PURE__*/__webpack_require__.n(vue_jstree);
|
|
|
32253
32292
|
}
|
|
32254
32293
|
|
|
32255
32294
|
orCondition += internalCondition;
|
|
32295
|
+
|
|
32296
|
+
if (index === item.fieldSearchConditionName.length - 1) {
|
|
32297
|
+
orJsonCondition += internalCondition;
|
|
32298
|
+
orJsonCondition += ")";
|
|
32299
|
+
searchConditionJson[field] = orJsonCondition;
|
|
32300
|
+
}
|
|
32256
32301
|
});
|
|
32257
32302
|
orCondition += ")";
|
|
32258
32303
|
searchCondition += orCondition + ")";
|
|
@@ -32312,8 +32357,8 @@ var vue_jstree_default = /*#__PURE__*/__webpack_require__.n(vue_jstree);
|
|
|
32312
32357
|
|
|
32313
32358
|
var left_search_component = normalizeComponent(
|
|
32314
32359
|
components_left_searchvue_type_script_lang_js_,
|
|
32315
|
-
|
|
32316
|
-
|
|
32360
|
+
left_searchvue_type_template_id_8cb2b136_render,
|
|
32361
|
+
left_searchvue_type_template_id_8cb2b136_staticRenderFns,
|
|
32317
32362
|
false,
|
|
32318
32363
|
null,
|
|
32319
32364
|
null,
|
|
@@ -32322,12 +32367,12 @@ var left_search_component = normalizeComponent(
|
|
|
32322
32367
|
)
|
|
32323
32368
|
|
|
32324
32369
|
/* harmony default export */ var left_search = (left_search_component.exports);
|
|
32325
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1e3db1ba-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=
|
|
32326
|
-
var
|
|
32327
|
-
var
|
|
32370
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1e3db1ba-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=adf00bf2&
|
|
32371
|
+
var CardViewvue_type_template_id_adf00bf2_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':true},staticStyle:{"border-width":"5px 2px 2px","border-style":"solid","border-color":"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,"listActions":_vm.renderRowActionMethod(row),"listType":"Card"},on:{"button-click":_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:{"numberofrecords":_vm.TotalRecords,"CurrentPageNumber":_vm.CurrentPageNumber,"prev-text":"Prev","first-text":"First","last-text":"Last","next-text":"Next"},on:{"SetCurrentPage":_vm.pagerMethod}})],1)}
|
|
32372
|
+
var CardViewvue_type_template_id_adf00bf2_staticRenderFns = []
|
|
32328
32373
|
|
|
32329
32374
|
|
|
32330
|
-
// CONCATENATED MODULE: ./src/components/CardView.vue?vue&type=template&id=
|
|
32375
|
+
// CONCATENATED MODULE: ./src/components/CardView.vue?vue&type=template&id=adf00bf2&
|
|
32331
32376
|
|
|
32332
32377
|
// 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/CardView.vue?vue&type=script&lang=js&
|
|
32333
32378
|
|
|
@@ -32345,6 +32390,14 @@ var CardViewvue_type_template_id_bbdf30d2_staticRenderFns = []
|
|
|
32345
32390
|
type: Array,
|
|
32346
32391
|
required: true
|
|
32347
32392
|
},
|
|
32393
|
+
noRecord: {
|
|
32394
|
+
type: Boolean,
|
|
32395
|
+
required: true
|
|
32396
|
+
},
|
|
32397
|
+
NorecordfoundText: {
|
|
32398
|
+
type: String,
|
|
32399
|
+
required: true
|
|
32400
|
+
},
|
|
32348
32401
|
columns: {
|
|
32349
32402
|
type: Array,
|
|
32350
32403
|
required: true
|
|
@@ -32485,8 +32538,8 @@ var CardViewvue_type_style_index_0_lang_css_ = __webpack_require__("7d46");
|
|
|
32485
32538
|
|
|
32486
32539
|
var CardView_component = normalizeComponent(
|
|
32487
32540
|
components_CardViewvue_type_script_lang_js_,
|
|
32488
|
-
|
|
32489
|
-
|
|
32541
|
+
CardViewvue_type_template_id_adf00bf2_render,
|
|
32542
|
+
CardViewvue_type_template_id_adf00bf2_staticRenderFns,
|
|
32490
32543
|
false,
|
|
32491
32544
|
null,
|
|
32492
32545
|
null,
|
|
@@ -32873,6 +32926,8 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
|
32873
32926
|
//
|
|
32874
32927
|
//
|
|
32875
32928
|
//
|
|
32929
|
+
//
|
|
32930
|
+
//
|
|
32876
32931
|
//
|
|
32877
32932
|
// Data table Compoonent for deiplaying data into the tabel.
|
|
32878
32933
|
|