tg-listv 0.1.8 → 0.1.10
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 +167 -67
- package/dist/tglistv.common.js.map +1 -1
- package/dist/tglistv.css +1 -1
- package/dist/tglistv.umd.js +167 -67
- package/dist/tglistv.umd.js.map +1 -1
- package/dist/tglistv.umd.min.js +3 -3
- package/dist/tglistv.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/tglistv.common.js
CHANGED
|
@@ -87,13 +87,6 @@ module.exports =
|
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/ "006c":
|
|
91
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
92
|
-
|
|
93
|
-
// extracted by mini-css-extract-plugin
|
|
94
|
-
|
|
95
|
-
/***/ }),
|
|
96
|
-
|
|
97
90
|
/***/ "00b4":
|
|
98
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
99
92
|
|
|
@@ -25028,6 +25021,13 @@ module.exports = {
|
|
|
25028
25021
|
};
|
|
25029
25022
|
|
|
25030
25023
|
|
|
25024
|
+
/***/ }),
|
|
25025
|
+
|
|
25026
|
+
/***/ "6bab":
|
|
25027
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
25028
|
+
|
|
25029
|
+
// extracted by mini-css-extract-plugin
|
|
25030
|
+
|
|
25031
25031
|
/***/ }),
|
|
25032
25032
|
|
|
25033
25033
|
/***/ "6d1e":
|
|
@@ -32762,17 +32762,6 @@ module.exports = noop;
|
|
|
32762
32762
|
|
|
32763
32763
|
// extracted by mini-css-extract-plugin
|
|
32764
32764
|
|
|
32765
|
-
/***/ }),
|
|
32766
|
-
|
|
32767
|
-
/***/ "bedb":
|
|
32768
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
32769
|
-
|
|
32770
|
-
"use strict";
|
|
32771
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Autocomplete_vue_vue_type_style_index_0_id_24d11668_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("006c");
|
|
32772
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Autocomplete_vue_vue_type_style_index_0_id_24d11668_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Autocomplete_vue_vue_type_style_index_0_id_24d11668_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
32773
|
-
/* unused harmony reexport * */
|
|
32774
|
-
|
|
32775
|
-
|
|
32776
32765
|
/***/ }),
|
|
32777
32766
|
|
|
32778
32767
|
/***/ "c04e":
|
|
@@ -38493,6 +38482,17 @@ if ($stringify) {
|
|
|
38493
38482
|
}
|
|
38494
38483
|
|
|
38495
38484
|
|
|
38485
|
+
/***/ }),
|
|
38486
|
+
|
|
38487
|
+
/***/ "eb1b":
|
|
38488
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
38489
|
+
|
|
38490
|
+
"use strict";
|
|
38491
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Autocomplete_vue_vue_type_style_index_0_id_0d240705_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6bab");
|
|
38492
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Autocomplete_vue_vue_type_style_index_0_id_0d240705_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Autocomplete_vue_vue_type_style_index_0_id_0d240705_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
38493
|
+
/* unused harmony reexport * */
|
|
38494
|
+
|
|
38495
|
+
|
|
38496
38496
|
/***/ }),
|
|
38497
38497
|
|
|
38498
38498
|
/***/ "efec":
|
|
@@ -38756,7 +38756,7 @@ if (typeof window !== 'undefined') {
|
|
|
38756
38756
|
// Indicate to webpack that this file can be concatenated
|
|
38757
38757
|
/* harmony default export */ var setPublicPath = (null);
|
|
38758
38758
|
|
|
38759
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1bc84821-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/TgList.vue?vue&type=template&id=
|
|
38759
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1bc84821-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/TgList.vue?vue&type=template&id=0bf4f24a&
|
|
38760
38760
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.classes},[((typeof(_vm.SearchPosition) === 'undefined' || _vm.SearchPosition == 'left') && _vm.SearchFields && _vm.SearchFields != null && _vm.SearchFields.length > 0)?_c('div',{staticClass:"left-menu-tab",attrs:{"id":"crmleftsearch"}},[_c('left-search',{ref:"leftSearch",attrs:{"header":_vm.HeaderText,"isShowHeaderText":_vm.isShowHeaderText,"fields":_vm.SearchFields,"modulename":_vm.ModuleName},on:{"SetLeftSearch":_vm.leftCommonSearch,"ClearFilter":_vm.ClearFilter}})],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 (!_vm.isNewDesign)?_c('li',{class:'cursor-pointer ' + _vm.widgetClassArray[(index%5)],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))])]),_c('i',{class:'fa ' + widget.icon,attrs:{"aria-hidden":"true"}})]):_vm._e()}),_vm._l((_vm.widgets),function(widget,index){return (_vm.isNewDesign)?_c('li',{class:'cursor-pointer ' + _vm.widgetClassArray[(index%5)],staticStyle:{"cursor":"pointer !important"},on:{"click":function($event){return _vm.onWidgetClick(widget, $event)}}},[_c('i',{class:'fa ' + widget.icon,attrs:{"aria-hidden":"true"}}),_c('h3',[_c('span',[_vm._v(_vm._s(widget.name))]),_c('br'),_vm._v(" "+_vm._s(widget.value)+" ")])]):_vm._e()})],2):_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:{"header":_vm.HeaderText,"isShowHeaderText":(_vm.isShowHeaderText && ((typeof(_vm.SearchFields) == 'undefined' || _vm.SearchFields.length == 0) || _vm.SearchPosition == 'top')),"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},scopedSlots:_vm._u([{key:"headerleftbuttons",fn:function(ref){
|
|
38761
38761
|
var data = ref.data;
|
|
38762
38762
|
return [_vm._t("headerleftbuttons",null,{"data":{data: data}})]}}],null,true)})],1):_vm._e(),(( _vm.SearchPosition == 'top') && _vm.SearchFields && _vm.SearchFields != null && _vm.SearchFields.length > 0)?_c('div',{staticClass:"top-menu-tab border p-3",attrs:{"id":"crmleftsearch"}},[_c('top-search',{ref:"topSearch",attrs:{"header":_vm.HeaderText,"fields":_vm.SearchFields,"isShowHeaderText":_vm.isShowHeaderText,"modulename":_vm.ModuleName},on:{"SetLeftSearch":_vm.leftCommonSearch,"ClearFilter":_vm.ClearFilter}})],1):_vm._e(),_c('div',{staticClass:"py-2 d-inline-block"},[_vm._l((_vm.LegendArray),function(lgnd){return [_c('span',{class:lgnd.class,staticStyle:{"border":"1px solid rgb(238, 238, 238)"}}),_vm._v(_vm._s(lgnd.text)+" ")]})],2),_c('div',{staticClass:"listing tg-listv 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,"tableClasses":_vm.tableClasses,"UserPageSize":_vm.PageSize,"totalrecords":_vm.TotalRecordsForPaging,"IsShowAction":_vm.IsShowAction,"randomNumberForIds":_vm.randomNumberForIds,"renderRowActionMethod":_vm.RenderRowActionMethod,"identityColumn":_vm.IdentityColumn,"subModuleCode":_vm.SubModuleCode,"NorecordfoundText":_vm.NorecordfoundText,"showCheckBox":_vm.showCheckBox,"selectionType":_vm.selectionType,"CurrentPageNumber":_vm.currentPage,"enabledataTruncate":_vm.enabledataTruncate(),"dataTruncateLength":_vm.dataTruncateLength},on:{"sortdata":_vm.sortdata,"ButtonClick":_vm.actionButtonClick,"PagerMethod":_vm.pagerMethod,"EventOfCheckbox":_vm.onChangeEventOfCheckbox},scopedSlots:_vm._u([{key:"slotdata",fn:function(ref){
|
|
@@ -38773,7 +38773,7 @@ return [_vm._t("customcard",null,{"data":{row:data.row,columnlist:data.columnlis
|
|
|
38773
38773
|
var staticRenderFns = []
|
|
38774
38774
|
|
|
38775
38775
|
|
|
38776
|
-
// CONCATENATED MODULE: ./src/components/TgList.vue?vue&type=template&id=
|
|
38776
|
+
// CONCATENATED MODULE: ./src/components/TgList.vue?vue&type=template&id=0bf4f24a&
|
|
38777
38777
|
|
|
38778
38778
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
38779
38779
|
var es_symbol = __webpack_require__("a4d3");
|
|
@@ -40008,8 +40008,8 @@ var DataTable_component = normalizeComponent(
|
|
|
40008
40008
|
)
|
|
40009
40009
|
|
|
40010
40010
|
/* harmony default export */ var DataTable = (DataTable_component.exports);
|
|
40011
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1bc84821-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/left-search.vue?vue&type=template&id=
|
|
40012
|
-
var
|
|
40011
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1bc84821-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/left-search.vue?vue&type=template&id=0b49c94e&
|
|
40012
|
+
var left_searchvue_type_template_id_0b49c94e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.header)?_c('div',{staticClass:"col-md-12 p-0 mb-2"},[_c('div',{staticClass:"theme-primary partition"},[_c('span',{staticClass:"p-name text-white"},[_vm._v(_vm._s(_vm.header))])])]):_vm._e(),_c('div',{staticClass:"accordion md-accordion left-filter",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(" "+_vm._s(_vm.$t("Search"))+" "),_c('span',{staticClass:"expand_all_filters"},[_c('span',{attrs:{"id":"SearchData"},on:{"click":function($event){return _vm.SearchData()}}},[_c('a',{staticClass:"collapsed",attrs:{"href":"javascript:;","title":_vm.$t('Search'),"data-toggle-tooltip":"tooltip"}},[_c('em',{staticClass:"fa fa-search",attrs:{"aria-hidden":"true"}})])]),_c('span',{on:{"click":function($event){return _vm.ClearFilter()}}},[_c('a',{staticClass:"collapsed",attrs:{"title":_vm.$t('Reset'),"href":"javascript:;","data-toggle-tooltip":"tooltip"}},[_c('em',{staticClass:"fa fa-repeat",attrs:{"aria-hidden":"true"}})])]),_c('span',{staticClass:"collapsed ancExpandAllCollapseAll",attrs:{"data-target":".multi-collapse","data-toggle":"collapse"},on:{"click":function($event){return _vm.ExpandCollapsedAll()}}},[_c('a',{staticClass:"collapsed",attrs:{"href":"javascript:;","title":_vm.$t('ExpandAllCollapseAll'),"data-toggle-tooltip":"tooltip"}},[_c('em',{staticClass:"fa fa-sort-desc",attrs:{"aria-hidden":"true"}})])])])])])]),_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(_vm.$t(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==0?String(field.value).length>0:field.value)},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"}],ref:field.fieldName,refInFor:true,staticClass:"form-control search",attrs:{"placeholder":_vm.getPlaceholder(field),"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"}],ref:field.fieldName,refInFor:true,staticClass:"form-control search",attrs:{"placeholder":_vm.getPlaceholder(field),"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"}],ref:field.fieldName,refInFor:true,staticClass:"form-control search",attrs:{"placeholder":_vm.getPlaceholder(field),"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 == 'numeric-range')?[_c('div',{staticClass:"form-group"},[( false)?undefined:( false)?undefined:_c('input',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],staticClass:"form-control search",attrs:{"placeholder":_vm.getPlaceholderforAnyField(field, 'from'),"type":'number'},domProps:{"value":(field.value)},on:{"keydown":function($event){return _vm.SearchOnEnter($event, field, 'from')},"input":function($event){if($event.target.composing){ return; }_vm.$set(field, "value", $event.target.value)}}})]),_c('div',{staticClass:"form-group"},[( false)?undefined:( false)?undefined:_c('input',{directives:[{name:"model",rawName:"v-model",value:(field.secondValue),expression:"field.secondValue"}],staticClass:"form-control search",attrs:{"placeholder":_vm.getPlaceholderforAnyField(field, 'to'),"type":'number'},domProps:{"value":(field.secondValue)},on:{"keydown":function($event){return _vm.SearchOnEnter($event, field, 'to')},"input":function($event){if($event.target.composing){ return; }_vm.$set(field, "secondValue", $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('DatePicker',{ref:field.fieldName,refInFor:true,staticClass:"input-group",staticStyle:{"flex-wrap":"nowrap"},attrs:{"locale":_vm.lang,"is24hr":false,"name":'DateFrom' + fieldIndex,"mode":_vm.getModeofDateField(field),"masks":_vm.getFormat(field),"popover":_vm.popover,"min-date":_vm.getMinmumDate(field, 'dateFrom'),"max-date":_vm.getMaxDate(field, 'dateFrom'),"minute-increment":5},on:{"input":function($event){return _vm.SetMinMaxValueForDatePicker(field, 'datefrom')}},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
40013
40013
|
var inputValue = ref.inputValue;
|
|
40014
40014
|
var inputEvents = ref.inputEvents;
|
|
40015
40015
|
var togglePopover = ref.togglePopover;
|
|
@@ -40017,11 +40017,11 @@ return [_c('input',_vm._g({staticClass:"form-control",attrs:{"placeholder":_vm.g
|
|
|
40017
40017
|
var inputValue = ref.inputValue;
|
|
40018
40018
|
var inputEvents = ref.inputEvents;
|
|
40019
40019
|
var togglePopover = ref.togglePopover;
|
|
40020
|
-
return [_c('input',_vm._g({staticClass:"form-control",attrs:{"placeholder":_vm.getPlaceholderforAnyField(field, '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(),_c('vue-scroll',[(field.fieldType== 'radio' || field.fieldType== 'checkbox')?_c('div',{staticClass:"form-group d-flex",staticStyle:{"max-height":"200px","flex-direction":"column"}},_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"}],ref:field.fieldName,refInFor:true,staticClass:"custom-control-input dynamic",attrs:{"type":"radio","id":'customcheckbox'+fieldIndex+index,"name":'RadioButtonForLeftSearch' + fieldIndex},domProps:{"value":item.value,"checked":_vm._q(field.value,item.value)},on:{"change":[function($event){return _vm.$set(field, "value", item.value)},function($event){return _vm.onChangeforDDL(field, $event)}]}}):_vm._e(),(field.fieldType== 'checkbox')?_c('input',{ref:field.fieldName,refInFor:true,staticClass:"custom-control-input dynamic",attrs:{"type":"checkbox","id":'customcheckbox'+fieldIndex+index,"name":'CheckboxButtonForLeftSearch' + fieldIndex},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",staticStyle:{"max-height":"200px"}},_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"},[_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"},on:{"keyup":function($event){return _vm.onLeftSearchLocalFilter($event)}}}),_vm._m(0,true)])]),_c('vue-scroll',[_c('div',{staticClass:"form-group filterscroll filterscroll_leftsearch",staticStyle:{"max-height":"200px"}},[(field.fieldType == 'ddl-check' && field.listOptions.length > 0)?_c('div',{staticClass:"custom-control custom-checkbox custom-control-inline w-100"},[_c('input',{ref:field.fieldName,refInFor:true,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(),(field.listOptions.length == 0)?_c('div',{staticClass:"text-center text-danger no-record",staticStyle:{"font-size":"12px"}},[_vm._v("No Record available")]):_vm._e(),_vm._l((field.listOptions),function(item,index){return _c('div',{key:index,class:{'custom-control 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"}],ref:field.fieldName,refInFor:true,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)},function($event){return _vm.onChangeforDDL(field, $event)}]}}):_vm._e(),(field.fieldType== 'ddl-check')?_c('input',{ref:field.fieldName,refInFor:true,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('tree-select',{ref:field.fieldName,refInFor:true,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')?_c('div',{staticClass:"form-group"},[_c('select',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],ref:field.fieldName,refInFor:true,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(),(field.fieldType == 'searchableselect')?_c('div',{staticClass:"form-group ddl-custom-searchableselect"},[_c('searchable-select',{ref:field.fieldName,refInFor:true,attrs:{"items":field.listOptions,"max-visible-chips":2,"action-buttons":_vm.computedActionButtons(field),"item-fields":_vm.computedItemFields(field),"group-fields":_vm.computedGroupFields(field),"max-render-items":_vm.computedMaxRenderItems(field),"lazy-load":true,"multiple":field.isMultiple,"label":field.fieldName,"placeholder":field.placeholder,"status-field-config":field.statusFieldConfig,"min-search-length":field.minSearchLength},on:{"change":function($event){return _vm.onSearchableChange($event, field)}},model:{value:(field.value),callback:function ($$v) {_vm.$set(field, "value", $$v)},expression:"field.value"}})],1):_vm._e()],
|
|
40021
|
-
var
|
|
40020
|
+
return [_c('input',_vm._g({staticClass:"form-control",attrs:{"placeholder":_vm.getPlaceholderforAnyField(field, '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(),_c('vue-scroll',[(field.fieldType== 'radio' || field.fieldType== 'checkbox')?_c('div',{staticClass:"form-group d-flex",staticStyle:{"max-height":"200px","flex-direction":"column"}},_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"}],ref:field.fieldName,refInFor:true,staticClass:"custom-control-input dynamic",attrs:{"type":"radio","id":'customcheckbox'+fieldIndex+index,"name":'RadioButtonForLeftSearch' + fieldIndex},domProps:{"value":item.value,"checked":_vm._q(field.value,item.value)},on:{"change":[function($event){return _vm.$set(field, "value", item.value)},function($event){return _vm.onChangeforDDL(field, $event)}]}}):_vm._e(),(field.fieldType== 'checkbox')?_c('input',{ref:field.fieldName,refInFor:true,staticClass:"custom-control-input dynamic",attrs:{"type":"checkbox","id":'customcheckbox'+fieldIndex+index,"name":'CheckboxButtonForLeftSearch' + fieldIndex},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",staticStyle:{"max-height":"200px"}},_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"},[_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"},on:{"keyup":function($event){return _vm.onLeftSearchLocalFilter($event)}}}),_vm._m(0,true)])]),_c('vue-scroll',[_c('div',{staticClass:"form-group filterscroll filterscroll_leftsearch",staticStyle:{"max-height":"200px"}},[(field.fieldType == 'ddl-check' && field.listOptions.length > 0)?_c('div',{staticClass:"custom-control custom-checkbox custom-control-inline w-100"},[_c('input',{ref:field.fieldName,refInFor:true,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(),(field.listOptions.length == 0)?_c('div',{staticClass:"text-center text-danger no-record",staticStyle:{"font-size":"12px"}},[_vm._v("No Record available")]):_vm._e(),_vm._l((field.listOptions),function(item,index){return _c('div',{key:index,class:{'custom-control 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"}],ref:field.fieldName,refInFor:true,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)},function($event){return _vm.onChangeforDDL(field, $event)}]}}):_vm._e(),(field.fieldType== 'ddl-check')?_c('input',{ref:field.fieldName,refInFor:true,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('tree-select',{ref:field.fieldName,refInFor:true,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')?_c('div',{staticClass:"form-group"},[_c('select',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],ref:field.fieldName,refInFor:true,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(),(field.fieldType == 'searchableselect')?_c('div',{staticClass:"form-group ddl-custom-searchableselect"},[_c('searchable-select',{ref:field.fieldName,refInFor:true,attrs:{"items":field.listOptions,"max-visible-chips":2,"action-buttons":_vm.computedActionButtons(field),"item-fields":_vm.computedItemFields(field),"group-fields":_vm.computedGroupFields(field),"max-render-items":_vm.computedMaxRenderItems(field),"lazy-load":true,"multiple":field.isMultiple,"label":field.fieldName,"placeholder":field.placeholder,"status-field-config":field.statusFieldConfig,"min-search-length":field.minSearchLength},on:{"change":function($event){return _vm.onSearchableChange($event, field)}},model:{value:(field.value),callback:function ($$v) {_vm.$set(field, "value", $$v)},expression:"field.value"}})],1):_vm._e()],2)])])}),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(_vm._s(_vm.$t('ExpandAllCollapseAll')))])])])}
|
|
40021
|
+
var left_searchvue_type_template_id_0b49c94e_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _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"})])])}]
|
|
40022
40022
|
|
|
40023
40023
|
|
|
40024
|
-
// CONCATENATED MODULE: ./src/components/left-search.vue?vue&type=template&id=
|
|
40024
|
+
// CONCATENATED MODULE: ./src/components/left-search.vue?vue&type=template&id=0b49c94e&
|
|
40025
40025
|
|
|
40026
40026
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.to-primitive.js
|
|
40027
40027
|
var es_symbol_to_primitive = __webpack_require__("8172");
|
|
@@ -40561,18 +40561,18 @@ function _objectSpread2(e) {
|
|
|
40561
40561
|
}
|
|
40562
40562
|
|
|
40563
40563
|
|
|
40564
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1bc84821-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Autocomplete.vue?vue&type=template&id=
|
|
40565
|
-
var
|
|
40564
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1bc84821-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Autocomplete.vue?vue&type=template&id=0d240705&scoped=true&
|
|
40565
|
+
var Autocompletevue_type_template_id_0d240705_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"custom-autocomplete mt-0",class:{ 'is-disabled': _vm.disabled, 'has-error': _vm.hasError }},[(!_vm.multiple)?_c('div',{staticClass:"autocomplete-wrapper",attrs:{"id":_vm.label}},[_c('div',{staticClass:"input-group"},[_c('input',{ref:"input",staticClass:"form-control",class:{ 'is-invalid': _vm.hasError, 'form-control-sm': _vm.density === 'compact', 'form-control-lg': _vm.density === 'comfortable' },attrs:{"type":"text","placeholder":_vm.placeholder,"disabled":_vm.disabled},domProps:{"value":_vm.displayText},on:{"input":_vm.onInput,"focus":_vm.onFocus,"blur":_vm.onBlur,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.handleEnter.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"arrow-down",undefined,$event.key,undefined)){ return null; }$event.preventDefault();return _vm.navigateDown.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"arrow-up",undefined,$event.key,undefined)){ return null; }$event.preventDefault();return _vm.navigateUp.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"escape",undefined,$event.key,undefined)){ return null; }return _vm.closeMenu.apply(null, arguments)}]}}),_c('div',{staticClass:"input-group-append"},[(_vm.clearable && _vm.selectedValue)?_c('button',{staticClass:"btn btn-outline-secondary",attrs:{"type":"button","tabindex":"-1"},on:{"click":_vm.clearSelection}},[_c('i',{staticClass:"fa fa-times"})]):_vm._e(),_c('button',{staticClass:"btn btn-outline-secondary dropdown-toggle",class:{ 'active': _vm.isMenuOpen },attrs:{"type":"button","tabindex":"-1"},on:{"click":_vm.toggleMenu1}},[_c('i',{staticClass:"fa",class:_vm.loading ? 'fa-spinner fa-spin' : 'fa-chevron-down'})])])]),(_vm.isMenuOpen)?_c('div',{ref:"menu",staticClass:"autocomplete-menu",style:({ maxHeight: _vm.menuMaxHeight + 'px' }),on:{"scroll":_vm.onMenuScroll}},[(_vm.loading && !_vm.hasItems)?_c('div',{staticClass:"autocomplete-loading"},[_vm._m(0),_c('div',{staticClass:"mt-2 text-muted small"},[_vm._v("Loading...")])]):(!_vm.loading && !_vm.hasItems && _vm.searchTerm.length >= _vm.minSearchLength)?_c('div',{staticClass:"autocomplete-no-data"},[_c('i',{staticClass:"fa fa-search text-muted",staticStyle:{"font-size":"2rem"}}),_c('div',{staticClass:"mt-2 text-muted"},[_vm._v(_vm._s(_vm.noDataText))]),_c('div',{staticClass:"text-muted small"},[_vm._v("Try adjusting your search terms")])]):(_vm.hasGrouping)?_c('div',{staticClass:"autocomplete-grouped"},_vm._l((_vm.paginatedGroupedItems),function(group,groupIndex){return _c('div',{key:group.group || groupIndex,staticClass:"autocomplete-group"},[_c('div',{staticClass:"autocomplete-group-header"},[(_vm.groupFields.length > 0)?_c('div',{staticClass:"d-flex flex-column"},[_c('div',{staticClass:"font-weight-bold font-14"},[_vm._v(_vm._s(group.group))]),(_vm.groupFields.length > 1)?_c('div',{staticClass:"small text-muted mt-1"},_vm._l((_vm.groupFields),function(field,idx){return _c('span',{key:field},[(idx > 0)?_c('span',[_vm._v(" • ")]):_vm._e(),(_vm.getGroupFieldValue(group, field))?_c('span',[_vm._v(_vm._s(field)+": "+_vm._s(_vm.getGroupFieldValue(group, field)))]):_vm._e()])}),0):_vm._e()]):_c('div',[_vm._v(_vm._s(group.group))])]),_c('ul',{staticClass:"list-group list-group-flush"},_vm._l((group.items),function(item,itemIndex){return _c('li',{key:_vm.getItemValue(item),staticClass:"list-group-item autocomplete-item",class:{
|
|
40566
40566
|
'active': _vm.getFlatIndex(groupIndex, itemIndex) === _vm.highlightedIndex,
|
|
40567
40567
|
'selected': _vm.isSelected(item)
|
|
40568
|
-
},staticStyle:{"cursor":"pointer"},on:{"click":function($event){$event.preventDefault();return _vm.selectItem(item, $event)},"mouseenter":function($event){_vm.highlightedIndex = _vm.getFlatIndex(groupIndex, itemIndex)}}},[_c('div',{staticClass:"d-flex align-items-center"},[(_vm.multiple)?_c('div',{staticClass:"autocomplete-checkbox-wrapper mr-2"},[_c('input',{staticClass:"autocomplete-checkbox",attrs:{"type":"checkbox","tabindex":"-1"},domProps:{"checked":_vm.isSelected(item)},on:{"click":function($event){$event.stopPropagation()
|
|
40568
|
+
},staticStyle:{"cursor":"pointer"},on:{"click":function($event){$event.preventDefault();return _vm.selectItem(item, $event)},"mouseenter":function($event){_vm.highlightedIndex = _vm.getFlatIndex(groupIndex, itemIndex)}}},[_c('div',{staticClass:"d-flex align-items-center"},[(_vm.multiple)?_c('div',{staticClass:"autocomplete-checkbox-wrapper mr-2"},[_c('input',{staticClass:"autocomplete-checkbox",attrs:{"type":"checkbox","tabindex":"-1"},domProps:{"checked":_vm.isSelected(item)},on:{"click":function($event){$event.stopPropagation();return _vm.selectItem(item, $event)}}}),_c('i',{staticClass:"fa fa-check autocomplete-check-icon"})]):_vm._e(),(item.raw && item.raw.category)?_c('span',{staticClass:"badge badge-secondary mr-2",staticStyle:{"font-size":"0.75rem"}},[_vm._v(" "+_vm._s(item.raw.category)+" ")]):_vm._e(),_c('div',{staticClass:"flex-grow-1"},[(_vm.itemFields.length > 0)?_c('div',{staticClass:"font-weight-400",class:{ 'text-dark': _vm.isSelected(item) },domProps:{"innerHTML":_vm._s(_vm.formatItemFields(item))}}):_c('div',{staticClass:"font-weight-400",class:{ 'text-dark': _vm.isSelected(item) }},[_vm._v(_vm._s(_vm.getItemText(item)))]),(!_vm.itemFields.length && _vm.getItemDescription(item))?_c('div',{staticClass:"text-muted small mt-1"},[_vm._v(_vm._s(_vm.getItemDescription(item)))]):_vm._e()]),(_vm.isSelected(item) && !_vm.multiple)?_c('i',{staticClass:"fa fa-check text-success ml-2",staticStyle:{"font-size":"1.1rem"}}):_vm._e()])])}),0)])}),0):_c('ul',{staticClass:"list-group list-group-flush"},_vm._l((_vm.paginatedDisplayItems),function(item,index){return _c('li',{key:_vm.getItemValue(item),staticClass:"list-group-item autocomplete-item",class:{ 'active': index === _vm.highlightedIndex, 'selected': _vm.isSelected(item) },staticStyle:{"cursor":"pointer"},on:{"click":function($event){$event.preventDefault();return _vm.selectItem(item, $event)},"mouseenter":function($event){_vm.highlightedIndex = index}}},[_c('div',{staticClass:"d-flex align-items-center"},[(_vm.multiple)?_c('input',{staticClass:"mr-2",attrs:{"type":"checkbox","tabindex":"-1"},domProps:{"checked":_vm.isSelected(item)},on:{"click":function($event){$event.stopPropagation();return _vm.selectItem(item, $event)}}}):_vm._e(),(item.raw && item.raw.category)?_c('span',{staticClass:"badge badge-primary mr-2"},[_vm._v(" "+_vm._s(item.raw.category)+" ")]):_vm._e(),_c('div',{staticClass:"flex-grow-1"},[(_vm.itemFields.length > 0)?_c('div',{staticClass:"font-weight-400",domProps:{"innerHTML":_vm._s(_vm.formatItemFields(item))}}):_c('div',{staticClass:"font-weight-400"},[_vm._v(_vm._s(_vm.getItemText(item)))]),(!_vm.itemFields.length && _vm.getItemDescription(item))?_c('div',{staticClass:"text-muted small mt-1"},[_vm._v(_vm._s(_vm.getItemDescription(item)))]):_vm._e()]),(_vm.isSelected(item) && !_vm.multiple)?_c('i',{staticClass:"fa fa-check text-primary ml-2"}):_vm._e()])])}),0)]):_vm._e()]):_c('div',{staticClass:"autocomplete-wrapper"},[_c('div',{staticClass:"input-group"},[_c('div',{staticClass:"form-control autocomplete-chips-container",class:{ 'is-invalid': _vm.hasError, 'form-control-sm': _vm.density === 'compact', 'form-control-lg': _vm.density === 'comfortable' }},[_c('div',{staticClass:"d-flex flex-wrap align-items-center"},[_vm._l((_vm.visibleChips),function(selectedItem,index){return [(index < _vm.maxVisibleChipsCount)?_c('span',{key:_vm.getItemValue(selectedItem),staticClass:"badge badge-primary mr-1 mb-1 pl-2 autocomplete-chip",attrs:{"title":_vm.getChipText(selectedItem)}},[_c('span',{staticClass:"autocomplete-chip-text",domProps:{"innerHTML":_vm._s(_vm.getChipText(selectedItem))}}),_c('button',{staticClass:"close ml-1 autocomplete-chip-close",attrs:{"type":"button","tabindex":"-1","aria-label":'Remove ' + (_vm.getChipText(selectedItem).replace(/<[^>]*>/g, ''))},on:{"click":function($event){$event.stopPropagation();_vm.removeItem(_vm.getItemValue(selectedItem))}}},[_c('span',{attrs:{"aria-hidden":"true"}},[_vm._v("×")])])]):_vm._e()]}),(_vm.remainingChipsCount > 0)?_c('span',{staticClass:"badge badge-secondary mr-1 mb-1 pl-2 autocomplete-chip autocomplete-chip-more",attrs:{"title":(_vm.remainingChipsCount + " more selected")}},[_c('span',{staticClass:"autocomplete-chip-text"},[_vm._v("+ "+_vm._s(_vm.remainingChipsCount)+" more")])]):_vm._e(),_c('input',{ref:"input",staticClass:"autocomplete-input-inline",attrs:{"type":"text","placeholder":_vm.selectedItems.length === 0 ? _vm.placeholder : '',"disabled":_vm.disabled},domProps:{"value":_vm.searchTerm},on:{"input":_vm.onInput,"focus":_vm.onFocus,"blur":_vm.onBlur,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.handleEnter.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"arrow-down",undefined,$event.key,undefined)){ return null; }$event.preventDefault();return _vm.navigateDown.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"arrow-up",undefined,$event.key,undefined)){ return null; }$event.preventDefault();return _vm.navigateUp.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"escape",undefined,$event.key,undefined)){ return null; }return _vm.closeMenu.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"backspace",undefined,$event.key,undefined)){ return null; }return _vm.handleBackspace.apply(null, arguments)}]}})],2)]),_c('div',{staticClass:"input-group-append"},[(_vm.clearable && (_vm.currentValue && (Array.isArray(_vm.currentValue) ? _vm.currentValue.length > 0 : true)))?_c('button',{staticClass:"btn btn-outline-secondary",attrs:{"type":"button","tabindex":"-1"},on:{"click":_vm.clearSelection}},[_c('i',{staticClass:"fa fa-times"})]):_vm._e(),_c('button',{staticClass:"btn btn-outline-secondary dropdown-toggle",class:{ 'active': _vm.isMenuOpen },attrs:{"type":"button","tabindex":"-1"},on:{"click":_vm.toggleMenu1}},[_c('i',{staticClass:"fa",class:_vm.loading ? 'fa-spinner fa-spin' : 'fa-chevron-down'})])])]),(_vm.isMenuOpen)?_c('div',{ref:"menu",staticClass:"autocomplete-menu",style:({ maxHeight: _vm.menuMaxHeight + 'px' }),on:{"scroll":_vm.onMenuScroll}},[(_vm.hasActionButtons)?_c('div',{staticClass:"autocomplete-actions p-2 border-bottom"},[_c('div',{staticClass:"d-flex flex-wrap gap-1"},[(_vm.actionButtons.selectAll)?_c('button',{staticClass:"btn btn-sm btn-outline-primary",attrs:{"type":"button","disabled":_vm.disabled || _vm.allSelected},on:{"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.selectAll($event)}}},[_c('i',{staticClass:"fa fa-check-square mr-1"}),_vm._v(" Select All ")]):_vm._e(),(_vm.actionButtons.active)?_c('button',{staticClass:"btn btn-sm btn-outline-success",class:{ 'active': _vm.filterStatus === 'active' },attrs:{"type":"button","disabled":_vm.disabled},on:{"click":function($event){return _vm.filterByStatus('active')}}},[_c('i',{staticClass:"fa fa-check-circle mr-1"}),_vm._v(" Active ")]):_vm._e(),(_vm.actionButtons.inactive)?_c('button',{staticClass:"btn btn-sm btn-outline-secondary",class:{ 'active': _vm.filterStatus === 'inactive' },attrs:{"type":"button","disabled":_vm.disabled},on:{"click":function($event){return _vm.filterByStatus('inactive')}}},[_c('i',{staticClass:"fa fa-times-circle mr-1"}),_vm._v(" Inactive ")]):_vm._e(),(_vm.actionButtons.clear)?_c('button',{staticClass:"btn btn-sm btn-outline-danger",attrs:{"type":"button","disabled":_vm.disabled || !_vm.hasSelectedItems},on:{"click":_vm.clearSelection}},[_c('i',{staticClass:"fa fa-times mr-1"}),_vm._v(" Clear ")]):_vm._e()])]):_vm._e(),(_vm.loading && !_vm.hasItems)?_c('div',{staticClass:"autocomplete-loading"},[_vm._m(1),_c('div',{staticClass:"mt-2 text-muted small"},[_vm._v("Loading...")])]):(!_vm.loading && !_vm.hasItems && _vm.searchTerm.length >= _vm.minSearchLength)?_c('div',{staticClass:"autocomplete-no-data"},[_c('i',{staticClass:"fa fa-search text-muted",staticStyle:{"font-size":"2rem"}}),_c('div',{staticClass:"mt-2 text-muted"},[_vm._v(_vm._s(_vm.noDataText))]),_c('div',{staticClass:"text-muted small"},[_vm._v("Try adjusting your search terms")])]):(_vm.hasGrouping)?_c('div',{staticClass:"autocomplete-grouped"},_vm._l((_vm.paginatedGroupedItems),function(group,groupIndex){return _c('div',{key:group.group || groupIndex,staticClass:"autocomplete-group"},[_c('div',{staticClass:"autocomplete-group-header"},[(_vm.groupFields.length > 0)?_c('div',{staticClass:"d-flex flex-column"},[_c('div',{staticClass:"font-weight-bold font-14"},[_vm._v(_vm._s(group.group))]),(_vm.groupFields.length > 1)?_c('div',{staticClass:"small text-muted mt-1"},_vm._l((_vm.groupFields),function(field,idx){return _c('span',{key:field},[(idx > 0)?_c('span',[_vm._v(" • ")]):_vm._e(),(_vm.getGroupFieldValue(group, field))?_c('span',[_vm._v(_vm._s(field)+": "+_vm._s(_vm.getGroupFieldValue(group, field)))]):_vm._e()])}),0):_vm._e()]):_c('div',[_vm._v(_vm._s(group.group))])]),_c('ul',{staticClass:"list-group list-group-flush"},_vm._l((group.items),function(item,itemIndex){return _c('li',{key:_vm.getItemValue(item),staticClass:"list-group-item autocomplete-item",class:{
|
|
40569
40569
|
'active': _vm.getFlatIndex(groupIndex, itemIndex) === _vm.highlightedIndex,
|
|
40570
40570
|
'selected': _vm.isSelected(item)
|
|
40571
|
-
},staticStyle:{"cursor":"pointer"},on:{"click":function($event){$event.preventDefault();return _vm.selectItem(item, $event)},"mouseenter":function($event){_vm.highlightedIndex = _vm.getFlatIndex(groupIndex, itemIndex)}}},[_c('div',{staticClass:"d-flex align-items-center"},[(_vm.multiple)?_c('div',{staticClass:"autocomplete-checkbox-wrapper mr-2"},[_c('input',{staticClass:"autocomplete-checkbox",attrs:{"type":"checkbox","tabindex":"-1"},domProps:{"checked":_vm.isSelected(item)},on:{"click":function($event){$event.stopPropagation()
|
|
40572
|
-
var
|
|
40571
|
+
},staticStyle:{"cursor":"pointer"},on:{"click":function($event){$event.preventDefault();return _vm.selectItem(item, $event)},"mouseenter":function($event){_vm.highlightedIndex = _vm.getFlatIndex(groupIndex, itemIndex)}}},[_c('div',{staticClass:"d-flex align-items-center"},[(_vm.multiple)?_c('div',{staticClass:"autocomplete-checkbox-wrapper mr-2"},[_c('input',{staticClass:"autocomplete-checkbox",attrs:{"type":"checkbox","tabindex":"-1"},domProps:{"checked":_vm.isSelected(item)},on:{"click":function($event){$event.stopPropagation();return _vm.selectItem(item, $event)}}}),_c('i',{staticClass:"fa fa-check autocomplete-check-icon"})]):_vm._e(),(item.raw && item.raw.category)?_c('span',{staticClass:"badge badge-secondary mr-2",staticStyle:{"font-size":"0.75rem"}},[_vm._v(" "+_vm._s(item.raw.category)+" ")]):_vm._e(),_c('div',{staticClass:"flex-grow-1"},[(_vm.itemFields.length > 0)?_c('div',{staticClass:"font-weight-400",class:{ 'text-dark': _vm.isSelected(item) },domProps:{"innerHTML":_vm._s(_vm.formatItemFields(item))}}):_c('div',{staticClass:"font-weight-400",class:{ 'text-dark': _vm.isSelected(item) }},[_vm._v(_vm._s(_vm.getItemText(item)))]),(!_vm.itemFields.length && _vm.getItemDescription(item))?_c('div',{staticClass:"text-muted small mt-1"},[_vm._v(_vm._s(_vm.getItemDescription(item)))]):_vm._e()]),(_vm.isSelected(item) && !_vm.multiple)?_c('i',{staticClass:"fa fa-check text-success ml-2",staticStyle:{"font-size":"1.1rem"}}):_vm._e()])])}),0)])}),0):_c('ul',{staticClass:"list-group list-group-flush"},_vm._l((_vm.paginatedDisplayItems),function(item,index){return _c('li',{key:_vm.getItemValue(item),staticClass:"list-group-item autocomplete-item",class:{ 'active': index === _vm.highlightedIndex, 'selected': _vm.isSelected(item) },staticStyle:{"cursor":"pointer"},on:{"click":function($event){$event.preventDefault();return _vm.selectItem(item, $event)},"mouseenter":function($event){_vm.highlightedIndex = index}}},[_c('div',{staticClass:"d-flex align-items-center"},[(_vm.multiple)?_c('input',{staticClass:"mr-2",attrs:{"type":"checkbox","tabindex":"-1"},domProps:{"checked":_vm.isSelected(item)},on:{"click":function($event){$event.stopPropagation();return _vm.selectItem(item, $event)}}}):_vm._e(),(item.raw && item.raw.category)?_c('span',{staticClass:"badge badge-primary mr-2"},[_vm._v(" "+_vm._s(item.raw.category)+" ")]):_vm._e(),_c('div',{staticClass:"flex-grow-1"},[(_vm.itemFields.length > 0)?_c('div',{staticClass:"font-weight-400",domProps:{"innerHTML":_vm._s(_vm.formatItemFields(item))}}):_c('div',{staticClass:"font-weight-400"},[_vm._v(_vm._s(_vm.getItemText(item)))]),(!_vm.itemFields.length && _vm.getItemDescription(item))?_c('div',{staticClass:"text-muted small mt-1"},[_vm._v(_vm._s(_vm.getItemDescription(item)))]):_vm._e()]),(_vm.isSelected(item) && !_vm.multiple)?_c('i',{staticClass:"fa fa-check text-primary ml-2"}):_vm._e()])])}),0)]):_vm._e()]),(!_vm.hideDetails && _vm.hasError)?_c('div',{staticClass:"invalid-feedback d-block"},_vm._l((_vm.errorMessagesArray),function(error,index){return _c('div',{key:index},[_vm._v(_vm._s(error))])}),0):_vm._e()])}
|
|
40572
|
+
var Autocompletevue_type_template_id_0d240705_scoped_true_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"spinner-border spinner-border-sm text-primary",attrs:{"role":"status"}},[_c('span',{staticClass:"sr-only"},[_vm._v("Loading...")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"spinner-border spinner-border-sm text-primary",attrs:{"role":"status"}},[_c('span',{staticClass:"sr-only"},[_vm._v("Loading...")])])}]
|
|
40573
40573
|
|
|
40574
40574
|
|
|
40575
|
-
// CONCATENATED MODULE: ./src/components/Autocomplete.vue?vue&type=template&id=
|
|
40575
|
+
// CONCATENATED MODULE: ./src/components/Autocomplete.vue?vue&type=template&id=0d240705&scoped=true&
|
|
40576
40576
|
|
|
40577
40577
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
40578
40578
|
function _arrayLikeToArray(r, a) {
|
|
@@ -41832,16 +41832,13 @@ var es_set = __webpack_require__("6062");
|
|
|
41832
41832
|
}
|
|
41833
41833
|
},
|
|
41834
41834
|
selectItem: function selectItem(item, event) {
|
|
41835
|
-
//
|
|
41835
|
+
// Stop bubbling so the <li> click doesn't fire twice,
|
|
41836
|
+
// but let the browser toggle the checkbox normally.
|
|
41836
41837
|
if (event) {
|
|
41837
|
-
event.preventDefault();
|
|
41838
41838
|
event.stopPropagation();
|
|
41839
41839
|
event.stopImmediatePropagation();
|
|
41840
|
-
}
|
|
41841
|
-
|
|
41840
|
+
}
|
|
41842
41841
|
|
|
41843
|
-
console.log('selectItem called for single item:', item);
|
|
41844
|
-
console.log('Item value:', this.getItemValue(item));
|
|
41845
41842
|
var value = this.getItemValue(item);
|
|
41846
41843
|
var currentVal = this.currentValue;
|
|
41847
41844
|
|
|
@@ -41855,18 +41852,13 @@ var es_set = __webpack_require__("6062");
|
|
|
41855
41852
|
var index = selectedValues.findIndex(function (sv) {
|
|
41856
41853
|
return String(sv) === String(value);
|
|
41857
41854
|
});
|
|
41858
|
-
console.log('Current selected values:', selectedValues);
|
|
41859
|
-
console.log('Item value to toggle:', value);
|
|
41860
|
-
console.log('Index found:', index);
|
|
41861
41855
|
|
|
41862
41856
|
if (index > -1) {
|
|
41863
41857
|
// Remove if already selected
|
|
41864
41858
|
selectedValues.splice(index, 1);
|
|
41865
|
-
console.log('Removed item. New selection:', selectedValues);
|
|
41866
41859
|
} else {
|
|
41867
41860
|
// Add if not selected - ONLY this single item
|
|
41868
41861
|
selectedValues.push(value);
|
|
41869
|
-
console.log('Added single item. New selection:', selectedValues);
|
|
41870
41862
|
} // Emit both events for Vue 2 and Vue 3 compatibility
|
|
41871
41863
|
|
|
41872
41864
|
|
|
@@ -42161,8 +42153,8 @@ var es_set = __webpack_require__("6062");
|
|
|
42161
42153
|
});
|
|
42162
42154
|
// CONCATENATED MODULE: ./src/components/Autocomplete.vue?vue&type=script&lang=js&
|
|
42163
42155
|
/* harmony default export */ var components_Autocompletevue_type_script_lang_js_ = (Autocompletevue_type_script_lang_js_);
|
|
42164
|
-
// EXTERNAL MODULE: ./src/components/Autocomplete.vue?vue&type=style&index=0&id=
|
|
42165
|
-
var
|
|
42156
|
+
// EXTERNAL MODULE: ./src/components/Autocomplete.vue?vue&type=style&index=0&id=0d240705&scoped=true&lang=css&
|
|
42157
|
+
var Autocompletevue_type_style_index_0_id_0d240705_scoped_true_lang_css_ = __webpack_require__("eb1b");
|
|
42166
42158
|
|
|
42167
42159
|
// CONCATENATED MODULE: ./src/components/Autocomplete.vue
|
|
42168
42160
|
|
|
@@ -42175,11 +42167,11 @@ var Autocompletevue_type_style_index_0_id_24d11668_scoped_true_lang_css_ = __web
|
|
|
42175
42167
|
|
|
42176
42168
|
var Autocomplete_component = normalizeComponent(
|
|
42177
42169
|
components_Autocompletevue_type_script_lang_js_,
|
|
42178
|
-
|
|
42179
|
-
|
|
42170
|
+
Autocompletevue_type_template_id_0d240705_scoped_true_render,
|
|
42171
|
+
Autocompletevue_type_template_id_0d240705_scoped_true_staticRenderFns,
|
|
42180
42172
|
false,
|
|
42181
42173
|
null,
|
|
42182
|
-
"
|
|
42174
|
+
"0d240705",
|
|
42183
42175
|
null
|
|
42184
42176
|
|
|
42185
42177
|
)
|
|
@@ -43170,7 +43162,7 @@ var _methods;
|
|
|
43170
43162
|
if (item.value.length > 0 && (item.fieldSearchConditionName.length > 0 || item.hasOwnProperty('paramName'))) {
|
|
43171
43163
|
searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
|
|
43172
43164
|
var orCondition = "";
|
|
43173
|
-
var val = item.value.replace(/'/g, "''");
|
|
43165
|
+
var val = encodeURI(item.value.replace(/'/g, "''"));
|
|
43174
43166
|
|
|
43175
43167
|
if (item.hasOwnProperty('paramName')) {
|
|
43176
43168
|
searchConditionJson[item.paramName] = val;
|
|
@@ -43337,6 +43329,43 @@ var _methods;
|
|
|
43337
43329
|
item.isSearch = false;
|
|
43338
43330
|
}
|
|
43339
43331
|
|
|
43332
|
+
break;
|
|
43333
|
+
|
|
43334
|
+
case "numeric-range":
|
|
43335
|
+
if ((item.value || item.secondValue) && (item.fieldSearchConditionName.length > 0 || item.hasOwnProperty("paramName"))) {
|
|
43336
|
+
searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
|
|
43337
|
+
var orCondition = "";
|
|
43338
|
+
item.fieldSearchConditionName.forEach(function (field, index) {
|
|
43339
|
+
orCondition += $.trim(orCondition) != "" ? " OR " : "(";
|
|
43340
|
+
var splitfield = field.split("|");
|
|
43341
|
+
var internalCondition = "";
|
|
43342
|
+
|
|
43343
|
+
if (item.value != null && item.value != "") {
|
|
43344
|
+
if (item.hasOwnProperty("paramName")) {
|
|
43345
|
+
searchConditionJson[item.paramName] = item.value;
|
|
43346
|
+
}
|
|
43347
|
+
|
|
43348
|
+
internalCondition = " " + splitfield[0] + " >= '" + item.value + "'";
|
|
43349
|
+
}
|
|
43350
|
+
|
|
43351
|
+
if (item.secondValue != null && item.secondValue.length > 0) {
|
|
43352
|
+
if (item.hasOwnProperty("paramName") && searchConditionJson[item.paramName]) {
|
|
43353
|
+
searchConditionJson[item.paramName] = searchConditionJson[item.paramName] + "|" + item.secondValue;
|
|
43354
|
+
}
|
|
43355
|
+
|
|
43356
|
+
internalCondition += $.trim(internalCondition) != "" ? " AND " : "";
|
|
43357
|
+
internalCondition += " " + splitfield[1] + " <= '" + item.secondValue + "'";
|
|
43358
|
+
}
|
|
43359
|
+
|
|
43360
|
+
orCondition += internalCondition;
|
|
43361
|
+
});
|
|
43362
|
+
orCondition += ")";
|
|
43363
|
+
searchCondition += orCondition + ")";
|
|
43364
|
+
item.isSearch = true;
|
|
43365
|
+
} else {
|
|
43366
|
+
item.isSearch = false;
|
|
43367
|
+
}
|
|
43368
|
+
|
|
43340
43369
|
break;
|
|
43341
43370
|
}
|
|
43342
43371
|
}); //}
|
|
@@ -43363,7 +43392,7 @@ var _methods;
|
|
|
43363
43392
|
'json': searchConditionJson
|
|
43364
43393
|
}); //vueObj.callbackfunction();
|
|
43365
43394
|
},
|
|
43366
|
-
SearchOnEnter: function SearchOnEnter(event, itm) {
|
|
43395
|
+
SearchOnEnter: function SearchOnEnter(event, itm, t) {
|
|
43367
43396
|
if (itm.isNumeric != undefined && itm.isNumeric == true && /[0-9]/.test(event.key) == false && event.key != "Backspace") {
|
|
43368
43397
|
event.preventDefault();
|
|
43369
43398
|
}
|
|
@@ -43508,6 +43537,20 @@ var _methods;
|
|
|
43508
43537
|
}
|
|
43509
43538
|
} else if (item.fieldType == 'date') {
|
|
43510
43539
|
return item.placeholder ? item.placeholder : item.format ? item.format : this.$t("DateTo");
|
|
43540
|
+
} else if (item.fieldType == 'numeric-range') {
|
|
43541
|
+
if (type == "from") {
|
|
43542
|
+
if (item.hasOwnProperty("fromConfig")) {
|
|
43543
|
+
return item.fromConfig.placeholder ? item.fromConfig.placeholder : this.$t("From");
|
|
43544
|
+
} else {
|
|
43545
|
+
return this.$t("From");
|
|
43546
|
+
}
|
|
43547
|
+
} else if (type == "to") {
|
|
43548
|
+
if (item.hasOwnProperty("toConfig")) {
|
|
43549
|
+
return item.toConfig.placeholder ? item.toConfig.placeholder : this.$t("To");
|
|
43550
|
+
} else {
|
|
43551
|
+
return this.$t("To");
|
|
43552
|
+
}
|
|
43553
|
+
}
|
|
43511
43554
|
}
|
|
43512
43555
|
|
|
43513
43556
|
return "";
|
|
@@ -43525,8 +43568,8 @@ var _methods;
|
|
|
43525
43568
|
|
|
43526
43569
|
var left_search_component = normalizeComponent(
|
|
43527
43570
|
components_left_searchvue_type_script_lang_js_,
|
|
43528
|
-
|
|
43529
|
-
|
|
43571
|
+
left_searchvue_type_template_id_0b49c94e_render,
|
|
43572
|
+
left_searchvue_type_template_id_0b49c94e_staticRenderFns,
|
|
43530
43573
|
false,
|
|
43531
43574
|
null,
|
|
43532
43575
|
null,
|
|
@@ -43535,8 +43578,8 @@ var left_search_component = normalizeComponent(
|
|
|
43535
43578
|
)
|
|
43536
43579
|
|
|
43537
43580
|
/* harmony default export */ var left_search = (left_search_component.exports);
|
|
43538
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1bc84821-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/top-search.vue?vue&type=template&id=
|
|
43539
|
-
var
|
|
43581
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1bc84821-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/top-search.vue?vue&type=template&id=6f26ce2c&
|
|
43582
|
+
var top_searchvue_type_template_id_6f26ce2c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:"page-action w-100"},[_c('div',{staticClass:"container-fluid p-0"},[_c('div',{staticClass:"row p-0"},[_vm._l((_vm.Fields),function(field,fieldIndex){return _c('div',{key:fieldIndex,staticClass:"col-sm-12 col-md-6 col-lg-4 col-xl-4 float-left"},[(_vm.Fields.length>1)?_c('label',[_vm._v(_vm._s(_vm.$t(field.fieldName))+":")]):_vm._e(),(field.fieldType == 'numeric-range')?_c('div',{staticClass:"row mb-2"},[_c('div',{staticClass:"col-md-6"},[_c('div',{staticClass:"form-group"},[( false)?undefined:( false)?undefined:_c('input',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],staticClass:"form-control search",attrs:{"placeholder":_vm.getPlaceholderforAnyField(field, 'from'),"type":'number'},domProps:{"value":(field.value)},on:{"keydown":function($event){return _vm.SearchOnEnter($event, field, 'from')},"input":function($event){if($event.target.composing){ return; }_vm.$set(field, "value", $event.target.value)}}})])]),_c('div',{staticClass:"col-md-6"},[_c('div',{staticClass:"form-group"},[( false)?undefined:( false)?undefined:_c('input',{directives:[{name:"model",rawName:"v-model",value:(field.secondValue),expression:"field.secondValue"}],staticClass:"form-control search",attrs:{"placeholder":_vm.getPlaceholderforAnyField(field, 'to'),"type":'number'},domProps:{"value":(field.secondValue)},on:{"keydown":function($event){return _vm.SearchOnEnter($event, field, 'to')},"input":function($event){if($event.target.composing){ return; }_vm.$set(field, "secondValue", $event.target.value)}}})])])]):_vm._e(),(field.fieldType == 'text')?_c('div',{staticClass:"form-group mb-2"},[((field.isNumeric == true ? 'number' : 'text')==='checkbox')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],staticClass:"form-control search",attrs:{"placeholder":_vm.$t(field.fieldName),"type":"checkbox"},domProps:{"checked":Array.isArray(field.value)?_vm._i(field.value,null)>-1:(field.value)},on:{"keydown":function($event){return _vm.SearchOnEnter($event, field)},"change":function($event){var $$a=field.value,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(field, "value", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(field, "value", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(field, "value", $$c)}}}}):((field.isNumeric == true ? 'number' : 'text')==='radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],staticClass:"form-control search",attrs:{"placeholder":_vm.$t(field.fieldName),"type":"radio"},domProps:{"checked":_vm._q(field.value,null)},on:{"keydown":function($event){return _vm.SearchOnEnter($event, field)},"change":function($event){return _vm.$set(field, "value", null)}}}):_c('input',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],staticClass:"form-control search",attrs:{"placeholder":_vm.$t(field.fieldName),"type":field.isNumeric == true ? 'number' : 'text'},domProps:{"value":(field.value)},on:{"keydown":function($event){return _vm.SearchOnEnter($event, field)},"input":function($event){if($event.target.composing){ return; }_vm.$set(field, "value", $event.target.value)}}})]):_vm._e(),(field.fieldType == 'date' || field.fieldType == 'date-range'
|
|
43540
43583
|
)?_c('div',{staticClass:"row mb-2"},[_c('div',{class:(field.fieldType == 'date-range')? 'col-md-6': 'col-md-12'},[_c('div',{staticClass:"input-group"},[_c('DatePicker',{ref:field.fieldName,refInFor:true,staticClass:"input-group",staticStyle:{"flex-wrap":"nowrap"},attrs:{"locale":_vm.lang,"is24hr":false,"name":'DateFrom' + fieldIndex,"mode":_vm.getModeofDateField(field),"masks":_vm.getFormat(field),"popover":_vm.popover,"min-date":_vm.getMinmumDate(field, 'dateFrom'),"max-date":_vm.getMaxDate(field, 'dateFrom'),"minute-increment":5},on:{"input":function($event){return _vm.SetMinMaxValueForDatePicker(field, 'datefrom')}},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
43541
43584
|
var inputValue = ref.inputValue;
|
|
43542
43585
|
var inputEvents = ref.inputEvents;
|
|
@@ -43546,10 +43589,10 @@ return [_c('input',_vm._g({staticClass:"form-control",attrs:{"placeholder":_vm.g
|
|
|
43546
43589
|
var inputEvents = ref.inputEvents;
|
|
43547
43590
|
var togglePopover = ref.togglePopover;
|
|
43548
43591
|
return [_c('input',_vm._g({staticClass:"form-control",attrs:{"placeholder":_vm.getPlaceholderforAnyField(field, 'dateTo')},domProps:{"value":inputValue}},inputEvents)),_c('div',{staticClass:"input-group-append",on:{"click":function($event){return togglePopover()}}},[_c('span',{staticClass:"input-group-text"},[_c('em',{staticClass:"fa fa-calendar"})])])]}}],null,true),model:{value:(field.secondValue),callback:function ($$v) {_vm.$set(field, "secondValue", $$v)},expression:"field.secondValue"}})],1)]):_vm._e()]):_vm._e(),(field.fieldType == 'ddl-multilevel')?_c('div',{staticClass:"form-group mb-2"},[(field.listOptions && field.listOptions.length > 0)?_c('tree-select',{ref:field.fieldName,refInFor:true,attrs:{"placeholder":"Select Location","multiple":false,"options":field.listOptions},model:{value:(field.value),callback:function ($$v) {_vm.$set(field, "value", $$v)},expression:"field.value"}}):_vm._e()],1):_vm._e(),(field.fieldType == 'dropdown' || field.fieldType == 'ddl-radio' || field.fieldType == 'ddl-check' || field.fieldType == 'radio' || field.fieldType == 'checkbox')?_c('div',{staticClass:"form-group mb-2"},[_c('select',{directives:[{name:"model",rawName:"v-model",value:(field.value),expression:"field.value"}],ref:field.fieldName,refInFor:true,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])}}},[((field.isDefaultOptionReq != false))?_c('option',{attrs:{"value":""}},[_vm._v(_vm._s(_vm.$t("Select"))+" "+_vm._s(_vm.$t(field.fieldName)))]):_vm._e(),_vm._l((field.listOptions),function(option){return _c('option',{domProps:{"value":option.value}},[_vm._v(" "+_vm._s(option.name)+" ")])})],2)]):_vm._e(),(field.fieldType == 'searchableselect')?_c('div',{staticClass:"form-group mb-2"},[_c('searchable-select',{ref:field.fieldName,refInFor:true,attrs:{"items":field.listOptions,"max-visible-chips":2,"action-buttons":_vm.computedActionButtons(field),"item-fields":_vm.computedItemFields(field),"group-fields":_vm.computedGroupFields(field),"max-render-items":_vm.computedMaxRenderItems(field),"lazy-load":true,"multiple":field.isMultiple,"label":field.fieldName,"placeholder":field.placeholder,"status-field-config":field.statusFieldConfig,"min-search-length":field.minSearchLength},on:{"blur":function($event){return _vm.onSearchableChange($event, field, 'blur')},"change":function($event){return _vm.onSearchableChange($event, field, 'change')}},model:{value:(field.value),callback:function ($$v) {_vm.$set(field, "value", $$v)},expression:"field.value"}})],1):_vm._e()])}),_c('div',{class:{'col-sm-12 col-md-3 col-lg-3 col-xl-3 float-left': (((_vm.fields.length % 3) > 0) || _vm.fields.length == 1), 'mt-4': (((_vm.fields.length % 3) > 0) && _vm.fields.length > 1), 'col-sm-12 col-md-12 col-lg-12 col-xl-12 text-right pr-1 mt-3':((_vm.fields.length % 3) == 0) }},[_c('div',{staticClass:"background-0 text-left form-check-inline"},[_c('a',{staticClass:"btn btn-success mr-1 px-4",attrs:{"title":_vm.$t('Search'),"id":"Go","href":"javascript:;","data-toggle-tooltip":"tooltip","data-original-title":_vm.$t('Search')},on:{"click":function($event){return _vm.SearchData()}}},[_c('i',{staticClass:"fa fa-search"}),_vm._v(" "+_vm._s(_vm.$t("Search")))]),_c('a',{staticClass:"btn btn-danger clearsearchtext px-4",attrs:{"href":"javascript:void(0);","title":_vm.$t('Clear'),"data-toggle-tooltip":"tooltip","data-original-title":_vm.$t('Clear')},on:{"click":function($event){return _vm.ClearFilter()}}},[_c('i',{staticClass:"fa fa-refresh"}),_vm._v(" "+_vm._s(_vm.$t("Clear")))])])])],2)])])}
|
|
43549
|
-
var
|
|
43592
|
+
var top_searchvue_type_template_id_6f26ce2c_staticRenderFns = []
|
|
43550
43593
|
|
|
43551
43594
|
|
|
43552
|
-
// CONCATENATED MODULE: ./src/components/top-search.vue?vue&type=template&id=
|
|
43595
|
+
// CONCATENATED MODULE: ./src/components/top-search.vue?vue&type=template&id=6f26ce2c&
|
|
43553
43596
|
|
|
43554
43597
|
// 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&
|
|
43555
43598
|
|
|
@@ -43796,7 +43839,7 @@ var top_searchvue_type_template_id_7d1182ee_staticRenderFns = []
|
|
|
43796
43839
|
if (item.value.length > 0 && (item.fieldSearchConditionName.length > 0 || item.hasOwnProperty("paramName"))) {
|
|
43797
43840
|
searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
|
|
43798
43841
|
var orCondition = "";
|
|
43799
|
-
var val = item.value.replace(/'/g, "''");
|
|
43842
|
+
var val = encodeURI(item.value.replace(/'/g, "''"));
|
|
43800
43843
|
|
|
43801
43844
|
if (item.hasOwnProperty("paramName")) {
|
|
43802
43845
|
searchConditionJson[item.paramName] = val;
|
|
@@ -43998,6 +44041,43 @@ var top_searchvue_type_template_id_7d1182ee_staticRenderFns = []
|
|
|
43998
44041
|
item.isSearch = false;
|
|
43999
44042
|
}
|
|
44000
44043
|
|
|
44044
|
+
break;
|
|
44045
|
+
|
|
44046
|
+
case "numeric-range":
|
|
44047
|
+
if ((item.value || item.secondValue) && (item.fieldSearchConditionName.length > 0 || item.hasOwnProperty("paramName"))) {
|
|
44048
|
+
searchCondition += $.trim(searchCondition) != "" ? " AND (" : "(";
|
|
44049
|
+
var orCondition = "";
|
|
44050
|
+
item.fieldSearchConditionName.forEach(function (field, index) {
|
|
44051
|
+
orCondition += $.trim(orCondition) != "" ? " OR " : "(";
|
|
44052
|
+
var splitfield = field.split("|");
|
|
44053
|
+
var internalCondition = "";
|
|
44054
|
+
|
|
44055
|
+
if (item.value != null && item.value != "") {
|
|
44056
|
+
if (item.hasOwnProperty("paramName")) {
|
|
44057
|
+
searchConditionJson[item.paramName] = item.value;
|
|
44058
|
+
}
|
|
44059
|
+
|
|
44060
|
+
internalCondition = " " + splitfield[0] + " >= '" + item.value + "'";
|
|
44061
|
+
}
|
|
44062
|
+
|
|
44063
|
+
if (item.secondValue != null && item.secondValue.length > 0) {
|
|
44064
|
+
if (item.hasOwnProperty("paramName") && searchConditionJson[item.paramName]) {
|
|
44065
|
+
searchConditionJson[item.paramName] = searchConditionJson[item.paramName] + "|" + item.secondValue;
|
|
44066
|
+
}
|
|
44067
|
+
|
|
44068
|
+
internalCondition += $.trim(internalCondition) != "" ? " AND " : "";
|
|
44069
|
+
internalCondition += " " + splitfield[1] + " <= '" + item.secondValue + "'";
|
|
44070
|
+
}
|
|
44071
|
+
|
|
44072
|
+
orCondition += internalCondition;
|
|
44073
|
+
});
|
|
44074
|
+
orCondition += ")";
|
|
44075
|
+
searchCondition += orCondition + ")";
|
|
44076
|
+
item.isSearch = true;
|
|
44077
|
+
} else {
|
|
44078
|
+
item.isSearch = false;
|
|
44079
|
+
}
|
|
44080
|
+
|
|
44001
44081
|
break;
|
|
44002
44082
|
}
|
|
44003
44083
|
}); //}
|
|
@@ -44024,8 +44104,8 @@ var top_searchvue_type_template_id_7d1182ee_staticRenderFns = []
|
|
|
44024
44104
|
json: searchConditionJson
|
|
44025
44105
|
}); //vueObj.callbackfunction();
|
|
44026
44106
|
},
|
|
44027
|
-
SearchOnEnter: function SearchOnEnter(event, itm) {
|
|
44028
|
-
if (itm.isNumeric != undefined && itm.isNumeric == true && /[0-9]/.test(event.key) == false && event.key != "Backspace") {
|
|
44107
|
+
SearchOnEnter: function SearchOnEnter(event, itm, t) {
|
|
44108
|
+
if ((itm.isNumeric != undefined && itm.isNumeric == true || itm.fieldType == "numeric-range") && /[0-9]/.test(event.key) == false && event.key != "Backspace") {
|
|
44029
44109
|
event.preventDefault();
|
|
44030
44110
|
}
|
|
44031
44111
|
|
|
@@ -44154,6 +44234,20 @@ var top_searchvue_type_template_id_7d1182ee_staticRenderFns = []
|
|
|
44154
44234
|
}
|
|
44155
44235
|
} else if (item.fieldType == 'date') {
|
|
44156
44236
|
return item.placeholder ? item.placeholder : item.format ? item.format : this.$t("DateTo");
|
|
44237
|
+
} else if (item.fieldType == 'numeric-range') {
|
|
44238
|
+
if (type == "from") {
|
|
44239
|
+
if (item.hasOwnProperty("fromConfig")) {
|
|
44240
|
+
return item.fromConfig.placeholder ? item.fromConfig.placeholder : this.$t("From");
|
|
44241
|
+
} else {
|
|
44242
|
+
return this.$t("From");
|
|
44243
|
+
}
|
|
44244
|
+
} else if (type == "to") {
|
|
44245
|
+
if (item.hasOwnProperty("toConfig")) {
|
|
44246
|
+
return item.toConfig.placeholder ? item.toConfig.placeholder : this.$t("To");
|
|
44247
|
+
} else {
|
|
44248
|
+
return this.$t("To");
|
|
44249
|
+
}
|
|
44250
|
+
}
|
|
44157
44251
|
}
|
|
44158
44252
|
|
|
44159
44253
|
return "";
|
|
@@ -44172,8 +44266,8 @@ var top_searchvue_type_template_id_7d1182ee_staticRenderFns = []
|
|
|
44172
44266
|
|
|
44173
44267
|
var top_search_component = normalizeComponent(
|
|
44174
44268
|
components_top_searchvue_type_script_lang_js_,
|
|
44175
|
-
|
|
44176
|
-
|
|
44269
|
+
top_searchvue_type_template_id_6f26ce2c_render,
|
|
44270
|
+
top_searchvue_type_template_id_6f26ce2c_staticRenderFns,
|
|
44177
44271
|
false,
|
|
44178
44272
|
null,
|
|
44179
44273
|
null,
|
|
@@ -45292,11 +45386,13 @@ var list_header_buttonNew_component = normalizeComponent(
|
|
|
45292
45386
|
methods: {
|
|
45293
45387
|
getQueryStringParams: function getQueryStringParams() {
|
|
45294
45388
|
var vm = this;
|
|
45389
|
+
var CallSearchMethod = false;
|
|
45295
45390
|
|
|
45296
45391
|
if (vm.routeInfo != null && vm.routeInfo.currentRoute != null && vm.routeInfo.currentRoute.query != null && _typeof(vm.routeInfo.currentRoute.query) === 'object') {
|
|
45297
45392
|
var query = vm.routeInfo.currentRoute.query;
|
|
45298
45393
|
vm.SearchFields.forEach(function (y) {
|
|
45299
45394
|
if (y.paramName != null && query.hasOwnProperty(y.paramName)) {
|
|
45395
|
+
CallSearchMethod = true;
|
|
45300
45396
|
var queryVal = query[y.paramName];
|
|
45301
45397
|
|
|
45302
45398
|
if (y.fieldType == "date-range") {
|
|
@@ -45336,13 +45432,17 @@ var list_header_buttonNew_component = normalizeComponent(
|
|
|
45336
45432
|
}
|
|
45337
45433
|
}); // After applying query params, trigger search so the list refreshes with filters.
|
|
45338
45434
|
|
|
45339
|
-
|
|
45340
|
-
|
|
45341
|
-
vm.$refs.leftSearch.SearchData
|
|
45342
|
-
|
|
45343
|
-
|
|
45344
|
-
|
|
45345
|
-
|
|
45435
|
+
if (CallSearchMethod) {
|
|
45436
|
+
vm.$nextTick(function () {
|
|
45437
|
+
if ((typeof vm.SearchPosition === 'undefined' || vm.SearchPosition == 'left') && vm.$refs.leftSearch && typeof vm.$refs.leftSearch.SearchData === 'function') {
|
|
45438
|
+
vm.$refs.leftSearch.SearchData();
|
|
45439
|
+
CallSearchMethod = false;
|
|
45440
|
+
} else if (vm.SearchPosition == 'top' && vm.$refs.topSearch && typeof vm.$refs.topSearch.SearchData === 'function') {
|
|
45441
|
+
vm.$refs.topSearch.SearchData();
|
|
45442
|
+
CallSearchMethod = false;
|
|
45443
|
+
}
|
|
45444
|
+
});
|
|
45445
|
+
}
|
|
45346
45446
|
}
|
|
45347
45447
|
},
|
|
45348
45448
|
enabledataTruncate: function enabledataTruncate() {
|