tg-listv 0.1.16 → 0.1.17
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 +110 -69
- package/dist/tglistv.common.js.map +1 -1
- package/dist/tglistv.umd.js +110 -69
- package/dist/tglistv.umd.js.map +1 -1
- package/dist/tglistv.umd.min.js +2 -2
- package/dist/tglistv.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/tglistv.common.js
CHANGED
|
@@ -38792,7 +38792,7 @@ if (typeof window !== 'undefined') {
|
|
|
38792
38792
|
// Indicate to webpack that this file can be concatenated
|
|
38793
38793
|
/* harmony default export */ var setPublicPath = (null);
|
|
38794
38794
|
|
|
38795
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cea975cc-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=
|
|
38795
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cea975cc-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=fd8865d6&
|
|
38796
38796
|
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){
|
|
38797
38797
|
var data = ref.data;
|
|
38798
38798
|
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){
|
|
@@ -38809,7 +38809,7 @@ return [_vm._t("customcard",null,{"data":{row:data.row,columnlist:data.columnlis
|
|
|
38809
38809
|
var staticRenderFns = []
|
|
38810
38810
|
|
|
38811
38811
|
|
|
38812
|
-
// CONCATENATED MODULE: ./src/components/TgList.vue?vue&type=template&id=
|
|
38812
|
+
// CONCATENATED MODULE: ./src/components/TgList.vue?vue&type=template&id=fd8865d6&
|
|
38813
38813
|
|
|
38814
38814
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
38815
38815
|
var es_symbol = __webpack_require__("a4d3");
|
|
@@ -38888,8 +38888,8 @@ var es_string_includes = __webpack_require__("2532");
|
|
|
38888
38888
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
38889
38889
|
var es_array_from = __webpack_require__("a630");
|
|
38890
38890
|
|
|
38891
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cea975cc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DataTable.vue?vue&type=template&id=
|
|
38892
|
-
var
|
|
38891
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cea975cc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DataTable.vue?vue&type=template&id=021da994&
|
|
38892
|
+
var DataTablevue_type_template_id_021da994_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{class:'table-responsive ' + _vm.tableClasses,staticStyle:{"overflow-x":"auto"}},[_c('table',{staticClass:"table table-bordered mt-0",staticStyle:{"width":"100%","min-width":"100%"},attrs:{"id":'tablelistingdata_' + _vm.randomNumberForIds}},[_c('thead',{staticClass:"thead-bg"},[_c('tr',[((typeof(_vm.showCheckBox) === 'undefined' || _vm.showCheckBox == true))?_c('th',{staticClass:"text-center",staticStyle:{"width":"50px !important"}},[(_vm.selectionType == 'multiple')?_c('label',{class:{'form-check form-check-inline' : true}},[_c('div',{staticClass:"custom-control custom-checkbox custom-control-inline"},[_c('input',{staticClass:"chkItems custom-control-input",attrs:{"id":'chkAll_' + _vm.randomNumberForIds,"value":"","type":"checkbox"},on:{"change":function($event){return _vm.onChangeEventOfCheckbox($event)}}}),_c('label',{staticClass:"custom-control-label",attrs:{"for":'chkAll_' + _vm.randomNumberForIds}})])]):_vm._e()]):_vm._e(),_vm._l((_vm.Headers),function(item,headerIndex){return [(item.VISIBLE)?_c('th',{key:headerIndex,class:{'text-center': item.COLUMN_NAME=='status', 'text-right':(item.DATA_TYPE=='decimal' || item.DATA_TYPE=='currency' || item.DATA_TYPE=='int' || item.DATA_TYPE=='bigint'), 'resizable-column': !_vm.isChild},staticStyle:{"text-transform":"capitalize","position":"relative"},style:(_vm.getColumnStyle(item)),attrs:{"id":item.COLUMN_NAME}},[(item.VISIBLE && item.SORTABLE == true && _vm.isChild == false)?_c('span',{class:{
|
|
38893
38893
|
'sort text-overflow-dynamic-container': item.SORTABLE == true,
|
|
38894
38894
|
'tb_headerSortUp': _vm.SortExp == 'ASC' && _vm.SortBy == item.COLUMN_NAME,
|
|
38895
38895
|
'tb_headerSortDown':
|
|
@@ -38898,10 +38898,10 @@ var DataTablevue_type_template_id_b7d0829e_render = function () {var _vm=this;va
|
|
|
38898
38898
|
&& typeof(key.settings.clickEvent) != 'undefined' && key.settings.clickEvent != null && key.settings.isInSlot != true)?_c('RouterLink',{attrs:{"id":"viewLeadeContent_a","to":typeof(item.rowDetailsUrl)!='undefined' ? item.rowDetailsUrl : ''},nativeOn:{"click":function($event){return _vm.clickEventCheck(key,item)}}},[_vm._v(" "+_vm._s(((typeof(key.settings.formatter) === 'function')?key.settings.formatter(item, key):_vm.TruncateStrDynamic(item[key.COLUMN_NAME], key)))+" ")]):_vm._e(),(typeof(key.settings) != 'undefined' && key.settings != null && (typeof(key.settings.clickEvent) === 'undefined' || key.settings.clickEvent == null) && key.settings.isInSlot != true)?_c('span',{attrs:{"title":item[key.COLUMN_NAME]}},[_vm._v(" "+_vm._s(((typeof(key.settings.formatter) === 'function')?key.settings.formatter(item, key):_vm.TruncateStrDynamic(item[key.COLUMN_NAME], key)))+" ")]):_vm._e(),(typeof(key.settings) === 'undefined' || key.settings == null)?_c('span',{attrs:{"title":item[key.COLUMN_NAME]}},[_vm._v(" "+_vm._s(_vm.TruncateStrDynamic(item[key.COLUMN_NAME], key))+" ")]):_vm._e()],1):_vm._e()]],2):_vm._e()]}),(_vm.IsShowAction == true)?_c('RowActions',{attrs:{"item":item,"index":dataIndex,"identityColumn":_vm.identityColumn,"listActionsMethod":_vm.renderRowActionMethod},on:{"ButtonClick":_vm.ButtonClick}}):_vm._e()],2),(typeof(item.child) != 'undefined' && item.child.isShowChild == true)?_c('tr',[_c('td',{attrs:{"colspan":(_vm.Headers.length + 2)}},[_c('data-table',{attrs:{"name":'child' + dataIndex,"Data":item.child.data,"noRecord":((typeof(item.child.data) != 'undefined' && item.child.data.length > 0) ? false: true),"Headers":(typeof(item.child.headers) != 'undefined' ? item.child.headers: _vm.Headers),"SortExp":_vm.SortExp,"SortBy":_vm.SortBy,"isChild":true,"UserPageSize":_vm.UserPageSize,"totalrecords":(typeof(item.child.data) != 'undefined' ? item.child.data.length: 0),"IsShowAction":_vm.IsShowAction,"renderRowActionMethod":_vm.renderRowActionMethod,"identityColumn":_vm.identityColumn,"subModuleCode":_vm.subModuleCode,"NorecordfoundText":_vm.NorecordfoundText,"showCheckBox":_vm.showCheckBox,"selectionType":_vm.selectionType},on:{"sortdata":_vm.sortdata,"ButtonClick":_vm.ChildButtonClick,"PagerMethod":_vm.pagerMethod,"EventOfCheckbox":_vm.onChangeEventOfCheckbox},scopedSlots:_vm._u([{key:"slotdata",fn:function(ref){
|
|
38899
38899
|
var data = ref.data;
|
|
38900
38900
|
return [_vm._t("slotdata",null,{"data":{row:data.row,column:data.column,listtype:_vm.selectedView}})]}}],null,true)})],1)]):_vm._e()]}),(_vm.noRecord || _vm.Data.length == 0)?_c('tr',[_c('td',{staticClass:"text-center text-danger no-record",attrs:{"colspan":"17"}},[_vm._v(_vm._s(_vm.NorecordfoundText))])]):_vm._e()],2)])]),(_vm.isChild == false)?_c('Pager',{attrs:{"UserPageSize":_vm.UserPageSize,"CurrentPageNumber":_vm.currentPage,"numberofrecords":_vm.totalrecords,"prev-text":_vm.$t('Previous'),"first-text":_vm.$t('First'),"last-text":_vm.$t('Last'),"next-text":_vm.$t('Next')},on:{"SetCurrentPage":_vm.pagerMethod}}):_vm._e()],1)}
|
|
38901
|
-
var
|
|
38901
|
+
var DataTablevue_type_template_id_021da994_staticRenderFns = []
|
|
38902
38902
|
|
|
38903
38903
|
|
|
38904
|
-
// CONCATENATED MODULE: ./src/components/DataTable.vue?vue&type=template&id=
|
|
38904
|
+
// CONCATENATED MODULE: ./src/components/DataTable.vue?vue&type=template&id=021da994&
|
|
38905
38905
|
|
|
38906
38906
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
38907
38907
|
var es_json_stringify = __webpack_require__("e9c4");
|
|
@@ -39787,35 +39787,38 @@ var Pager_component = normalizeComponent(
|
|
|
39787
39787
|
var thElement = document.getElementById(header.COLUMN_NAME);
|
|
39788
39788
|
var width = "";
|
|
39789
39789
|
|
|
39790
|
-
if (thElement) {
|
|
39791
|
-
if
|
|
39792
|
-
|
|
39793
|
-
|
|
39794
|
-
|
|
39790
|
+
if (thElement && header.VISIBLE) {
|
|
39791
|
+
// Use saved width if present; otherwise use current width so all columns have explicit widths
|
|
39792
|
+
// (prevents resizing one column from flexing others when showCheckbox is false)
|
|
39793
|
+
if (ths.columnWidths[header.COLUMN_NAME]) {
|
|
39794
|
+
width = ths.columnWidths[header.COLUMN_NAME] + 'px';
|
|
39795
|
+
} else {
|
|
39796
|
+
var current = parseInt(thElement.offsetWidth, 10);
|
|
39795
39797
|
|
|
39796
|
-
|
|
39797
|
-
|
|
39798
|
+
if (current > 200) {
|
|
39799
|
+
width = 200 + 'px';
|
|
39800
|
+
} else if (current > 0) {
|
|
39801
|
+
width = current + 'px';
|
|
39802
|
+
}
|
|
39803
|
+
}
|
|
39798
39804
|
}
|
|
39799
39805
|
|
|
39800
|
-
if (thElement && width
|
|
39806
|
+
if (thElement && width !== "") {
|
|
39801
39807
|
thElement.style.width = width;
|
|
39802
39808
|
thElement.style.minWidth = width;
|
|
39803
|
-
thElement.style.maxWidth = width; // Also apply to corresponding td elements
|
|
39809
|
+
thElement.style.maxWidth = width; // Also apply to corresponding td elements (only in full data rows)
|
|
39804
39810
|
|
|
39805
|
-
var
|
|
39806
|
-
var table = document.getElementById(tableId);
|
|
39811
|
+
var table = thElement.closest('table');
|
|
39807
39812
|
|
|
39808
39813
|
if (table) {
|
|
39814
|
+
var headerRow = table.querySelector('thead tr');
|
|
39815
|
+
var allThs = Array.from(headerRow.querySelectorAll('th'));
|
|
39816
|
+
var columnIndex = allThs.indexOf(thElement);
|
|
39809
39817
|
var rows = table.querySelectorAll('tbody tr');
|
|
39810
39818
|
rows.forEach(function (row) {
|
|
39811
|
-
var cells = row.querySelectorAll('td');
|
|
39812
|
-
// We need to match by column index in the header
|
|
39813
|
-
|
|
39814
|
-
var headerRow = thElement.parentNode;
|
|
39815
|
-
var allThs = Array.from(headerRow.querySelectorAll('th'));
|
|
39816
|
-
var columnIndex = allThs.indexOf(thElement);
|
|
39819
|
+
var cells = row.querySelectorAll('td');
|
|
39817
39820
|
|
|
39818
|
-
if (cells[columnIndex]) {
|
|
39821
|
+
if (cells.length === allThs.length && cells[columnIndex]) {
|
|
39819
39822
|
cells[columnIndex].style.width = width;
|
|
39820
39823
|
cells[columnIndex].style.minWidth = width;
|
|
39821
39824
|
cells[columnIndex].style.maxWidth = width;
|
|
@@ -39826,19 +39829,46 @@ var Pager_component = normalizeComponent(
|
|
|
39826
39829
|
});
|
|
39827
39830
|
});
|
|
39828
39831
|
},
|
|
39832
|
+
// Freeze current width on every column so only the resized column changes during drag
|
|
39833
|
+
freezeAllColumnWidths: function freezeAllColumnWidths(table) {
|
|
39834
|
+
if (!table) return;
|
|
39835
|
+
var headerRow = table.querySelector('thead tr');
|
|
39836
|
+
if (!headerRow) return;
|
|
39837
|
+
var thElements = Array.from(headerRow.querySelectorAll('th'));
|
|
39838
|
+
thElements.forEach(function (th, colIndex) {
|
|
39839
|
+
var w = th.offsetWidth;
|
|
39840
|
+
if (w <= 0) return;
|
|
39841
|
+
var width = w + 'px';
|
|
39842
|
+
th.style.width = width;
|
|
39843
|
+
th.style.minWidth = width;
|
|
39844
|
+
th.style.maxWidth = width;
|
|
39845
|
+
var rows = table.querySelectorAll('tbody tr');
|
|
39846
|
+
rows.forEach(function (row) {
|
|
39847
|
+
var cells = row.querySelectorAll('td');
|
|
39848
|
+
|
|
39849
|
+
if (cells.length === thElements.length && cells[colIndex]) {
|
|
39850
|
+
cells[colIndex].style.width = width;
|
|
39851
|
+
cells[colIndex].style.minWidth = width;
|
|
39852
|
+
cells[colIndex].style.maxWidth = width;
|
|
39853
|
+
}
|
|
39854
|
+
});
|
|
39855
|
+
});
|
|
39856
|
+
},
|
|
39829
39857
|
startResize: function startResize(event, columnName) {
|
|
39830
39858
|
var ths = this;
|
|
39831
39859
|
if (ths.isChild) return;
|
|
39832
39860
|
event.preventDefault();
|
|
39833
39861
|
event.stopPropagation();
|
|
39862
|
+
var thElement = document.getElementById(columnName);
|
|
39863
|
+
if (!thElement) return;
|
|
39864
|
+
var table = thElement.closest('table');
|
|
39865
|
+
if (!table) return; // Freeze all column widths so only the dragged column changes (fixes showCheckbox=false)
|
|
39866
|
+
|
|
39867
|
+
ths.freezeAllColumnWidths(table);
|
|
39834
39868
|
ths.isResizing = true;
|
|
39835
39869
|
ths.resizingColumn = columnName;
|
|
39836
39870
|
ths.startX = event.pageX;
|
|
39837
|
-
|
|
39838
|
-
|
|
39839
|
-
if (thElement) {
|
|
39840
|
-
ths.startWidth = thElement.offsetWidth;
|
|
39841
|
-
}
|
|
39871
|
+
ths.startWidth = thElement.offsetWidth;
|
|
39842
39872
|
|
|
39843
39873
|
var onResizeHandler = function onResizeHandler(e) {
|
|
39844
39874
|
ths.onResize(e);
|
|
@@ -39860,33 +39890,27 @@ var Pager_component = normalizeComponent(
|
|
|
39860
39890
|
var diff = event.pageX - this.startX;
|
|
39861
39891
|
var newWidth = Math.max(50, this.startWidth + diff);
|
|
39862
39892
|
var thElement = document.getElementById(this.resizingColumn);
|
|
39863
|
-
|
|
39864
|
-
|
|
39865
|
-
|
|
39866
|
-
|
|
39867
|
-
|
|
39868
|
-
|
|
39869
|
-
|
|
39870
|
-
|
|
39871
|
-
|
|
39872
|
-
|
|
39873
|
-
|
|
39874
|
-
|
|
39875
|
-
|
|
39876
|
-
|
|
39877
|
-
|
|
39878
|
-
|
|
39879
|
-
|
|
39880
|
-
|
|
39881
|
-
|
|
39882
|
-
if (cells[columnIndex]) {
|
|
39883
|
-
cells[columnIndex].style.width = newWidth + 'px';
|
|
39884
|
-
cells[columnIndex].style.minWidth = newWidth + 'px';
|
|
39885
|
-
cells[columnIndex].style.maxWidth = newWidth + 'px';
|
|
39886
|
-
}
|
|
39887
|
-
});
|
|
39893
|
+
if (!thElement) return;
|
|
39894
|
+
var table = thElement.closest('table');
|
|
39895
|
+
if (!table) return;
|
|
39896
|
+
thElement.style.width = newWidth + 'px';
|
|
39897
|
+
thElement.style.minWidth = newWidth + 'px';
|
|
39898
|
+
thElement.style.maxWidth = newWidth + 'px';
|
|
39899
|
+
var headerRow = table.querySelector('thead tr');
|
|
39900
|
+
if (!headerRow) return;
|
|
39901
|
+
var thElements = Array.from(headerRow.querySelectorAll('th'));
|
|
39902
|
+
var columnIndex = thElements.indexOf(thElement);
|
|
39903
|
+
if (columnIndex === -1) return;
|
|
39904
|
+
var rows = table.querySelectorAll('tbody tr');
|
|
39905
|
+
rows.forEach(function (row) {
|
|
39906
|
+
var cells = row.querySelectorAll('td');
|
|
39907
|
+
|
|
39908
|
+
if (cells.length === thElements.length && cells[columnIndex]) {
|
|
39909
|
+
cells[columnIndex].style.width = newWidth + 'px';
|
|
39910
|
+
cells[columnIndex].style.minWidth = newWidth + 'px';
|
|
39911
|
+
cells[columnIndex].style.maxWidth = newWidth + 'px';
|
|
39888
39912
|
}
|
|
39889
|
-
}
|
|
39913
|
+
});
|
|
39890
39914
|
},
|
|
39891
39915
|
stopResize: function stopResize(event) {
|
|
39892
39916
|
if (!this.isResizing) return;
|
|
@@ -40034,8 +40058,8 @@ var DataTablevue_type_style_index_0_lang_css_ = __webpack_require__("6224");
|
|
|
40034
40058
|
|
|
40035
40059
|
var DataTable_component = normalizeComponent(
|
|
40036
40060
|
components_DataTablevue_type_script_lang_js_,
|
|
40037
|
-
|
|
40038
|
-
|
|
40061
|
+
DataTablevue_type_template_id_021da994_render,
|
|
40062
|
+
DataTablevue_type_template_id_021da994_staticRenderFns,
|
|
40039
40063
|
false,
|
|
40040
40064
|
null,
|
|
40041
40065
|
null,
|
|
@@ -48350,16 +48374,22 @@ var list_header_buttonNew_component = normalizeComponent(
|
|
|
48350
48374
|
}
|
|
48351
48375
|
|
|
48352
48376
|
try {
|
|
48353
|
-
|
|
48354
|
-
|
|
48377
|
+
//let checkIfExists = this.ListData.filter((x) => { return (x.isCheckBoxDisabled != true && (typeof(x.isSelected) == 'undefined' || x.isSelected == false ))});
|
|
48378
|
+
var checkedCount = this.ListData.filter(function (x) {
|
|
48379
|
+
return x.isCheckBoxDisabled != true && typeof x.isSelected != 'undefined' && x.isSelected == true;
|
|
48380
|
+
});
|
|
48381
|
+
var listCount = this.ListData.filter(function (x) {
|
|
48382
|
+
return x.isCheckBoxDisabled != true;
|
|
48355
48383
|
});
|
|
48356
48384
|
|
|
48357
|
-
if (
|
|
48358
|
-
document.getElementById("chkAll_" + this.randomNumberForIds).checked = false;
|
|
48359
|
-
} else {
|
|
48385
|
+
if (listCount.length > 0 && checkedCount.length == listCount.length) {
|
|
48360
48386
|
document.getElementById("chkAll_" + this.randomNumberForIds).checked = true;
|
|
48387
|
+
} else {
|
|
48388
|
+
document.getElementById("chkAll_" + this.randomNumberForIds).checked = false;
|
|
48361
48389
|
}
|
|
48362
|
-
} catch (err) {
|
|
48390
|
+
} catch (err) {
|
|
48391
|
+
document.getElementById("chkAll_" + this.randomNumberForIds).checked = false;
|
|
48392
|
+
}
|
|
48363
48393
|
}
|
|
48364
48394
|
},
|
|
48365
48395
|
created: function created() {
|
|
@@ -48572,15 +48602,26 @@ var list_header_buttonNew_component = normalizeComponent(
|
|
|
48572
48602
|
ths.$set(item, 'isSelected', e.target.checked);
|
|
48573
48603
|
}
|
|
48574
48604
|
|
|
48575
|
-
var
|
|
48576
|
-
return x.isCheckBoxDisabled != true &&
|
|
48605
|
+
var checkedCount = ths.ListData.filter(function (x) {
|
|
48606
|
+
return x.isCheckBoxDisabled != true && typeof x.isSelected != 'undefined' && x.isSelected == true;
|
|
48607
|
+
});
|
|
48608
|
+
var listCount = ths.ListData.filter(function (x) {
|
|
48609
|
+
return x.isCheckBoxDisabled != true;
|
|
48577
48610
|
});
|
|
48611
|
+
console.log("checkedCount.length", checkedCount.length);
|
|
48612
|
+
console.log("listCount.length", listCount.length);
|
|
48578
48613
|
|
|
48579
|
-
if (
|
|
48580
|
-
document.getElementById("chkAll_" +
|
|
48614
|
+
if (listCount.length > 0 && checkedCount.length == listCount.length) {
|
|
48615
|
+
document.getElementById("chkAll_" + this.randomNumberForIds).checked = true;
|
|
48581
48616
|
} else {
|
|
48582
|
-
document.getElementById("chkAll_" +
|
|
48583
|
-
}
|
|
48617
|
+
document.getElementById("chkAll_" + this.randomNumberForIds).checked = false;
|
|
48618
|
+
} // let checkIfExists = ths.ListData.filter((x) => { return (x.isCheckBoxDisabled != true && (typeof(x.isSelected) == 'undefined' || x.isSelected == false ))});
|
|
48619
|
+
// if(checkIfExists.length > 0){
|
|
48620
|
+
// document.getElementById("chkAll_" + ths.randomNumberForIds).checked = false;
|
|
48621
|
+
// } else{
|
|
48622
|
+
// document.getElementById("chkAll_" + ths.randomNumberForIds).checked = true;
|
|
48623
|
+
// }
|
|
48624
|
+
|
|
48584
48625
|
}
|
|
48585
48626
|
|
|
48586
48627
|
if (e.target.id.includes("chkAll") && e.target.classList.contains("chkItems")) {
|