ninegrid2 6.218.0 → 6.220.0
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/bundle.cjs.js +2 -65
- package/dist/bundle.esm.js +2 -65
- package/dist/etc/ngFiltering.js +2 -65
- package/package.json +1 -1
- package/src/etc/ngFiltering.js +2 -65
package/dist/bundle.cjs.js
CHANGED
|
@@ -18036,24 +18036,8 @@ class ngFiltering
|
|
|
18036
18036
|
arr[i] = Number(arr[i]);
|
|
18037
18037
|
}
|
|
18038
18038
|
}
|
|
18039
|
-
|
|
18040
|
-
/** filtering button 용 데이타 */
|
|
18041
|
-
/**
|
|
18042
|
-
filterData.push({
|
|
18043
|
-
"colnm" : key,
|
|
18044
|
-
"data" : arr,
|
|
18045
|
-
}); */
|
|
18046
|
-
//console.log(arr);
|
|
18047
|
-
|
|
18048
|
-
|
|
18049
|
-
//console.log(arr, idx, arr.nineBinarySearch(m.v[idx]));
|
|
18050
18039
|
|
|
18051
18040
|
this.#owner.data.getValidData().filter(m => { return arr.nineBinarySearch(m.v[idx] || '') < 0; }).map(m => { m.__ng.filtered = true; });
|
|
18052
|
-
|
|
18053
|
-
|
|
18054
|
-
//break;
|
|
18055
|
-
|
|
18056
|
-
|
|
18057
18041
|
}
|
|
18058
18042
|
|
|
18059
18043
|
|
|
@@ -18454,24 +18438,8 @@ class ngFilterPanel extends HTMLElement
|
|
|
18454
18438
|
|
|
18455
18439
|
open = (filterButton) => {
|
|
18456
18440
|
|
|
18457
|
-
/**
|
|
18458
18441
|
const owner = this.shadow.closest("nine-grid");
|
|
18459
18442
|
|
|
18460
|
-
var cell = filterButton.closest("th,td");
|
|
18461
|
-
|
|
18462
|
-
var l = $(filterButton).offset().left - $(owner).offset().left;// - $(this).width() + $(e.target).width() + 1;
|
|
18463
|
-
if (l < 0) l = 0;
|
|
18464
|
-
if (l + $(this).width() > $(owner).width()) l = $(owner).width() - $(this).width() - 5;
|
|
18465
|
-
|
|
18466
|
-
var t = $(cell).offset().top + $(cell).height()- $(owner).offset().top;//$(e.target).offset().top + $(e.target).height() + 2;
|
|
18467
|
-
|
|
18468
|
-
//$(this).offset({left: l, top: t});
|
|
18469
|
-
$(this).css({left: l, top: t});
|
|
18470
|
-
*/
|
|
18471
|
-
|
|
18472
|
-
const owner = this.shadow.closest("nine-grid");
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
18443
|
/** 위치 */
|
|
18476
18444
|
const cell = filterButton.closest("th,td");
|
|
18477
18445
|
|
|
@@ -18519,6 +18487,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
18519
18487
|
|
|
18520
18488
|
//console.log(data);
|
|
18521
18489
|
|
|
18490
|
+
/**
|
|
18522
18491
|
owner.body.querySelectorAll("ng-filter-button").forEach(el => {
|
|
18523
18492
|
//console.log(el);
|
|
18524
18493
|
if (el.closest('th,td').dataset.col != col && el.filterOptions) {
|
|
@@ -18535,50 +18504,17 @@ class ngFilterPanel extends HTMLElement
|
|
|
18535
18504
|
}
|
|
18536
18505
|
});
|
|
18537
18506
|
}
|
|
18538
|
-
});
|
|
18539
|
-
|
|
18540
|
-
//console.log(data);
|
|
18541
|
-
|
|
18542
|
-
/**
|
|
18543
|
-
$("ng-filter-button", owner.body).each((index,el) => {
|
|
18544
|
-
|
|
18545
|
-
if (el.closest('th,td').dataset.col == col || !el.filterData) return true;
|
|
18546
|
-
|
|
18547
|
-
|
|
18548
|
-
console.log(el.filterData, el.colnms, el.dataset.bind);
|
|
18549
|
-
|
|
18550
|
-
el.colnms.forEach(colnm => {
|
|
18551
|
-
var idx = owner.fields.indexOf(colnm);
|
|
18552
|
-
|
|
18553
|
-
console.log(idx);
|
|
18554
|
-
|
|
18555
|
-
if (idx >= 0) {
|
|
18556
|
-
data = data.filter(m => { return el.filterData.nineBinarySearch(m.v[idx] || '') >= 0; });
|
|
18557
|
-
}
|
|
18558
|
-
});
|
|
18559
|
-
|
|
18560
|
-
//data = data.filter(rowData => { return el.filterData.findIndex(item => (item.DATA || '') == (rowData[item.COLNM] || '') ) >= 0; });
|
|
18561
18507
|
}); */
|
|
18562
18508
|
|
|
18563
|
-
|
|
18564
18509
|
var ds = [];
|
|
18565
|
-
//colnms = [...new Set(colnms)];
|
|
18566
|
-
|
|
18567
|
-
//const colnms = [...new Set(filterButton.filterOptions.map(item => item.colnm))];
|
|
18568
|
-
|
|
18569
18510
|
filterButton.filterOptions.forEach((filterOption,i) => {
|
|
18570
18511
|
|
|
18571
|
-
//const colnm = filterOption.colnm;
|
|
18572
|
-
//console.log(filterOption);
|
|
18573
|
-
|
|
18574
18512
|
ds.push({
|
|
18575
18513
|
LVL: 1,
|
|
18576
18514
|
CHK: 'N',
|
|
18577
18515
|
DATA2: '<span class="group">' + $(filterButton).closest('th,td').text() + (filterButton.filterOptions.length > 1 ? ` #${i+1} (${filterOption.colnm})` : '') + '</span>',
|
|
18578
18516
|
});
|
|
18579
18517
|
|
|
18580
|
-
|
|
18581
|
-
|
|
18582
18518
|
/**
|
|
18583
18519
|
var cell = $(`[data-col=${col}][data-bind=${filterOption.colnm}]`, owner.template);
|
|
18584
18520
|
var expr = cell.attr("data-expr");
|
|
@@ -18605,6 +18541,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
18605
18541
|
console.log(data, data2);
|
|
18606
18542
|
|
|
18607
18543
|
[...new Set(data2.sort( (a,b) => { return (a.v2||'') > (b.v2||'') ? 1 : ((a.v2||'') < (b.v2||'') ? -1 : 0); } ).map((m) => JSON.stringify(m)))].map((m) => JSON.parse(m)).forEach(o => {
|
|
18544
|
+
console.log(filterOption, o);
|
|
18608
18545
|
ds.push({
|
|
18609
18546
|
LVL : 2,
|
|
18610
18547
|
DATA : o.v,
|
package/dist/bundle.esm.js
CHANGED
|
@@ -18034,24 +18034,8 @@ class ngFiltering
|
|
|
18034
18034
|
arr[i] = Number(arr[i]);
|
|
18035
18035
|
}
|
|
18036
18036
|
}
|
|
18037
|
-
|
|
18038
|
-
/** filtering button 용 데이타 */
|
|
18039
|
-
/**
|
|
18040
|
-
filterData.push({
|
|
18041
|
-
"colnm" : key,
|
|
18042
|
-
"data" : arr,
|
|
18043
|
-
}); */
|
|
18044
|
-
//console.log(arr);
|
|
18045
|
-
|
|
18046
|
-
|
|
18047
|
-
//console.log(arr, idx, arr.nineBinarySearch(m.v[idx]));
|
|
18048
18037
|
|
|
18049
18038
|
this.#owner.data.getValidData().filter(m => { return arr.nineBinarySearch(m.v[idx] || '') < 0; }).map(m => { m.__ng.filtered = true; });
|
|
18050
|
-
|
|
18051
|
-
|
|
18052
|
-
//break;
|
|
18053
|
-
|
|
18054
|
-
|
|
18055
18039
|
}
|
|
18056
18040
|
|
|
18057
18041
|
|
|
@@ -18452,24 +18436,8 @@ class ngFilterPanel extends HTMLElement
|
|
|
18452
18436
|
|
|
18453
18437
|
open = (filterButton) => {
|
|
18454
18438
|
|
|
18455
|
-
/**
|
|
18456
18439
|
const owner = this.shadow.closest("nine-grid");
|
|
18457
18440
|
|
|
18458
|
-
var cell = filterButton.closest("th,td");
|
|
18459
|
-
|
|
18460
|
-
var l = $(filterButton).offset().left - $(owner).offset().left;// - $(this).width() + $(e.target).width() + 1;
|
|
18461
|
-
if (l < 0) l = 0;
|
|
18462
|
-
if (l + $(this).width() > $(owner).width()) l = $(owner).width() - $(this).width() - 5;
|
|
18463
|
-
|
|
18464
|
-
var t = $(cell).offset().top + $(cell).height()- $(owner).offset().top;//$(e.target).offset().top + $(e.target).height() + 2;
|
|
18465
|
-
|
|
18466
|
-
//$(this).offset({left: l, top: t});
|
|
18467
|
-
$(this).css({left: l, top: t});
|
|
18468
|
-
*/
|
|
18469
|
-
|
|
18470
|
-
const owner = this.shadow.closest("nine-grid");
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
18441
|
/** 위치 */
|
|
18474
18442
|
const cell = filterButton.closest("th,td");
|
|
18475
18443
|
|
|
@@ -18517,6 +18485,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
18517
18485
|
|
|
18518
18486
|
//console.log(data);
|
|
18519
18487
|
|
|
18488
|
+
/**
|
|
18520
18489
|
owner.body.querySelectorAll("ng-filter-button").forEach(el => {
|
|
18521
18490
|
//console.log(el);
|
|
18522
18491
|
if (el.closest('th,td').dataset.col != col && el.filterOptions) {
|
|
@@ -18533,50 +18502,17 @@ class ngFilterPanel extends HTMLElement
|
|
|
18533
18502
|
}
|
|
18534
18503
|
});
|
|
18535
18504
|
}
|
|
18536
|
-
});
|
|
18537
|
-
|
|
18538
|
-
//console.log(data);
|
|
18539
|
-
|
|
18540
|
-
/**
|
|
18541
|
-
$("ng-filter-button", owner.body).each((index,el) => {
|
|
18542
|
-
|
|
18543
|
-
if (el.closest('th,td').dataset.col == col || !el.filterData) return true;
|
|
18544
|
-
|
|
18545
|
-
|
|
18546
|
-
console.log(el.filterData, el.colnms, el.dataset.bind);
|
|
18547
|
-
|
|
18548
|
-
el.colnms.forEach(colnm => {
|
|
18549
|
-
var idx = owner.fields.indexOf(colnm);
|
|
18550
|
-
|
|
18551
|
-
console.log(idx);
|
|
18552
|
-
|
|
18553
|
-
if (idx >= 0) {
|
|
18554
|
-
data = data.filter(m => { return el.filterData.nineBinarySearch(m.v[idx] || '') >= 0; });
|
|
18555
|
-
}
|
|
18556
|
-
});
|
|
18557
|
-
|
|
18558
|
-
//data = data.filter(rowData => { return el.filterData.findIndex(item => (item.DATA || '') == (rowData[item.COLNM] || '') ) >= 0; });
|
|
18559
18505
|
}); */
|
|
18560
18506
|
|
|
18561
|
-
|
|
18562
18507
|
var ds = [];
|
|
18563
|
-
//colnms = [...new Set(colnms)];
|
|
18564
|
-
|
|
18565
|
-
//const colnms = [...new Set(filterButton.filterOptions.map(item => item.colnm))];
|
|
18566
|
-
|
|
18567
18508
|
filterButton.filterOptions.forEach((filterOption,i) => {
|
|
18568
18509
|
|
|
18569
|
-
//const colnm = filterOption.colnm;
|
|
18570
|
-
//console.log(filterOption);
|
|
18571
|
-
|
|
18572
18510
|
ds.push({
|
|
18573
18511
|
LVL: 1,
|
|
18574
18512
|
CHK: 'N',
|
|
18575
18513
|
DATA2: '<span class="group">' + $(filterButton).closest('th,td').text() + (filterButton.filterOptions.length > 1 ? ` #${i+1} (${filterOption.colnm})` : '') + '</span>',
|
|
18576
18514
|
});
|
|
18577
18515
|
|
|
18578
|
-
|
|
18579
|
-
|
|
18580
18516
|
/**
|
|
18581
18517
|
var cell = $(`[data-col=${col}][data-bind=${filterOption.colnm}]`, owner.template);
|
|
18582
18518
|
var expr = cell.attr("data-expr");
|
|
@@ -18603,6 +18539,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
18603
18539
|
console.log(data, data2);
|
|
18604
18540
|
|
|
18605
18541
|
[...new Set(data2.sort( (a,b) => { return (a.v2||'') > (b.v2||'') ? 1 : ((a.v2||'') < (b.v2||'') ? -1 : 0); } ).map((m) => JSON.stringify(m)))].map((m) => JSON.parse(m)).forEach(o => {
|
|
18542
|
+
console.log(filterOption, o);
|
|
18606
18543
|
ds.push({
|
|
18607
18544
|
LVL : 2,
|
|
18608
18545
|
DATA : o.v,
|
package/dist/etc/ngFiltering.js
CHANGED
|
@@ -104,24 +104,8 @@ export class ngFiltering
|
|
|
104
104
|
arr[i] = Number(arr[i]);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
|
|
108
|
-
/** filtering button 용 데이타 */
|
|
109
|
-
/**
|
|
110
|
-
filterData.push({
|
|
111
|
-
"colnm" : key,
|
|
112
|
-
"data" : arr,
|
|
113
|
-
}); */
|
|
114
|
-
//console.log(arr);
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
//console.log(arr, idx, arr.nineBinarySearch(m.v[idx]));
|
|
118
107
|
|
|
119
108
|
this.#owner.data.getValidData().filter(m => { return arr.nineBinarySearch(m.v[idx] || '') < 0; }).map(m => { m.__ng.filtered = true; });
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
//break;
|
|
123
|
-
|
|
124
|
-
|
|
125
109
|
}
|
|
126
110
|
|
|
127
111
|
|
|
@@ -527,24 +511,8 @@ class ngFilterPanel extends HTMLElement
|
|
|
527
511
|
|
|
528
512
|
open = (filterButton) => {
|
|
529
513
|
|
|
530
|
-
/**
|
|
531
|
-
const owner = this.shadow.closest("nine-grid");
|
|
532
|
-
|
|
533
|
-
var cell = filterButton.closest("th,td");
|
|
534
|
-
|
|
535
|
-
var l = $(filterButton).offset().left - $(owner).offset().left;// - $(this).width() + $(e.target).width() + 1;
|
|
536
|
-
if (l < 0) l = 0;
|
|
537
|
-
if (l + $(this).width() > $(owner).width()) l = $(owner).width() - $(this).width() - 5;
|
|
538
|
-
|
|
539
|
-
var t = $(cell).offset().top + $(cell).height()- $(owner).offset().top;//$(e.target).offset().top + $(e.target).height() + 2;
|
|
540
|
-
|
|
541
|
-
//$(this).offset({left: l, top: t});
|
|
542
|
-
$(this).css({left: l, top: t});
|
|
543
|
-
*/
|
|
544
|
-
|
|
545
514
|
const owner = this.shadow.closest("nine-grid");
|
|
546
515
|
|
|
547
|
-
|
|
548
516
|
/** 위치 */
|
|
549
517
|
const cell = filterButton.closest("th,td");
|
|
550
518
|
|
|
@@ -592,6 +560,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
592
560
|
|
|
593
561
|
//console.log(data);
|
|
594
562
|
|
|
563
|
+
/**
|
|
595
564
|
owner.body.querySelectorAll("ng-filter-button").forEach(el => {
|
|
596
565
|
//console.log(el);
|
|
597
566
|
if (el.closest('th,td').dataset.col != col && el.filterOptions) {
|
|
@@ -608,50 +577,17 @@ class ngFilterPanel extends HTMLElement
|
|
|
608
577
|
}
|
|
609
578
|
});
|
|
610
579
|
}
|
|
611
|
-
});
|
|
612
|
-
|
|
613
|
-
//console.log(data);
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
$("ng-filter-button", owner.body).each((index,el) => {
|
|
617
|
-
|
|
618
|
-
if (el.closest('th,td').dataset.col == col || !el.filterData) return true;
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
console.log(el.filterData, el.colnms, el.dataset.bind);
|
|
622
|
-
|
|
623
|
-
el.colnms.forEach(colnm => {
|
|
624
|
-
var idx = owner.fields.indexOf(colnm);
|
|
625
|
-
|
|
626
|
-
console.log(idx);
|
|
627
|
-
|
|
628
|
-
if (idx >= 0) {
|
|
629
|
-
data = data.filter(m => { return el.filterData.nineBinarySearch(m.v[idx] || '') >= 0; });
|
|
630
|
-
}
|
|
631
|
-
});
|
|
632
|
-
|
|
633
|
-
//data = data.filter(rowData => { return el.filterData.findIndex(item => (item.DATA || '') == (rowData[item.COLNM] || '') ) >= 0; });
|
|
634
580
|
}); */
|
|
635
581
|
|
|
636
|
-
|
|
637
582
|
var ds = [];
|
|
638
|
-
//colnms = [...new Set(colnms)];
|
|
639
|
-
|
|
640
|
-
//const colnms = [...new Set(filterButton.filterOptions.map(item => item.colnm))];
|
|
641
|
-
|
|
642
583
|
filterButton.filterOptions.forEach((filterOption,i) => {
|
|
643
584
|
|
|
644
|
-
//const colnm = filterOption.colnm;
|
|
645
|
-
//console.log(filterOption);
|
|
646
|
-
|
|
647
585
|
ds.push({
|
|
648
586
|
LVL: 1,
|
|
649
587
|
CHK: 'N',
|
|
650
588
|
DATA2: '<span class="group">' + $(filterButton).closest('th,td').text() + (filterButton.filterOptions.length > 1 ? ` #${i+1} (${filterOption.colnm})` : '') + '</span>',
|
|
651
589
|
});
|
|
652
590
|
|
|
653
|
-
|
|
654
|
-
|
|
655
591
|
/**
|
|
656
592
|
var cell = $(`[data-col=${col}][data-bind=${filterOption.colnm}]`, owner.template);
|
|
657
593
|
var expr = cell.attr("data-expr");
|
|
@@ -678,6 +614,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
678
614
|
console.log(data, data2);
|
|
679
615
|
|
|
680
616
|
[...new Set(data2.sort( (a,b) => { return (a.v2||'') > (b.v2||'') ? 1 : ((a.v2||'') < (b.v2||'') ? -1 : 0); } ).map((m) => JSON.stringify(m)))].map((m) => JSON.parse(m)).forEach(o => {
|
|
617
|
+
console.log(filterOption, o);
|
|
681
618
|
ds.push({
|
|
682
619
|
LVL : 2,
|
|
683
620
|
DATA : o.v,
|
package/package.json
CHANGED
package/src/etc/ngFiltering.js
CHANGED
|
@@ -104,24 +104,8 @@ export class ngFiltering
|
|
|
104
104
|
arr[i] = Number(arr[i]);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
|
|
108
|
-
/** filtering button 용 데이타 */
|
|
109
|
-
/**
|
|
110
|
-
filterData.push({
|
|
111
|
-
"colnm" : key,
|
|
112
|
-
"data" : arr,
|
|
113
|
-
}); */
|
|
114
|
-
//console.log(arr);
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
//console.log(arr, idx, arr.nineBinarySearch(m.v[idx]));
|
|
118
107
|
|
|
119
108
|
this.#owner.data.getValidData().filter(m => { return arr.nineBinarySearch(m.v[idx] || '') < 0; }).map(m => { m.__ng.filtered = true; });
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
//break;
|
|
123
|
-
|
|
124
|
-
|
|
125
109
|
}
|
|
126
110
|
|
|
127
111
|
|
|
@@ -527,24 +511,8 @@ class ngFilterPanel extends HTMLElement
|
|
|
527
511
|
|
|
528
512
|
open = (filterButton) => {
|
|
529
513
|
|
|
530
|
-
/**
|
|
531
|
-
const owner = this.shadow.closest("nine-grid");
|
|
532
|
-
|
|
533
|
-
var cell = filterButton.closest("th,td");
|
|
534
|
-
|
|
535
|
-
var l = $(filterButton).offset().left - $(owner).offset().left;// - $(this).width() + $(e.target).width() + 1;
|
|
536
|
-
if (l < 0) l = 0;
|
|
537
|
-
if (l + $(this).width() > $(owner).width()) l = $(owner).width() - $(this).width() - 5;
|
|
538
|
-
|
|
539
|
-
var t = $(cell).offset().top + $(cell).height()- $(owner).offset().top;//$(e.target).offset().top + $(e.target).height() + 2;
|
|
540
|
-
|
|
541
|
-
//$(this).offset({left: l, top: t});
|
|
542
|
-
$(this).css({left: l, top: t});
|
|
543
|
-
*/
|
|
544
|
-
|
|
545
514
|
const owner = this.shadow.closest("nine-grid");
|
|
546
515
|
|
|
547
|
-
|
|
548
516
|
/** 위치 */
|
|
549
517
|
const cell = filterButton.closest("th,td");
|
|
550
518
|
|
|
@@ -592,6 +560,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
592
560
|
|
|
593
561
|
//console.log(data);
|
|
594
562
|
|
|
563
|
+
/**
|
|
595
564
|
owner.body.querySelectorAll("ng-filter-button").forEach(el => {
|
|
596
565
|
//console.log(el);
|
|
597
566
|
if (el.closest('th,td').dataset.col != col && el.filterOptions) {
|
|
@@ -608,50 +577,17 @@ class ngFilterPanel extends HTMLElement
|
|
|
608
577
|
}
|
|
609
578
|
});
|
|
610
579
|
}
|
|
611
|
-
});
|
|
612
|
-
|
|
613
|
-
//console.log(data);
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
$("ng-filter-button", owner.body).each((index,el) => {
|
|
617
|
-
|
|
618
|
-
if (el.closest('th,td').dataset.col == col || !el.filterData) return true;
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
console.log(el.filterData, el.colnms, el.dataset.bind);
|
|
622
|
-
|
|
623
|
-
el.colnms.forEach(colnm => {
|
|
624
|
-
var idx = owner.fields.indexOf(colnm);
|
|
625
|
-
|
|
626
|
-
console.log(idx);
|
|
627
|
-
|
|
628
|
-
if (idx >= 0) {
|
|
629
|
-
data = data.filter(m => { return el.filterData.nineBinarySearch(m.v[idx] || '') >= 0; });
|
|
630
|
-
}
|
|
631
|
-
});
|
|
632
|
-
|
|
633
|
-
//data = data.filter(rowData => { return el.filterData.findIndex(item => (item.DATA || '') == (rowData[item.COLNM] || '') ) >= 0; });
|
|
634
580
|
}); */
|
|
635
581
|
|
|
636
|
-
|
|
637
582
|
var ds = [];
|
|
638
|
-
//colnms = [...new Set(colnms)];
|
|
639
|
-
|
|
640
|
-
//const colnms = [...new Set(filterButton.filterOptions.map(item => item.colnm))];
|
|
641
|
-
|
|
642
583
|
filterButton.filterOptions.forEach((filterOption,i) => {
|
|
643
584
|
|
|
644
|
-
//const colnm = filterOption.colnm;
|
|
645
|
-
//console.log(filterOption);
|
|
646
|
-
|
|
647
585
|
ds.push({
|
|
648
586
|
LVL: 1,
|
|
649
587
|
CHK: 'N',
|
|
650
588
|
DATA2: '<span class="group">' + $(filterButton).closest('th,td').text() + (filterButton.filterOptions.length > 1 ? ` #${i+1} (${filterOption.colnm})` : '') + '</span>',
|
|
651
589
|
});
|
|
652
590
|
|
|
653
|
-
|
|
654
|
-
|
|
655
591
|
/**
|
|
656
592
|
var cell = $(`[data-col=${col}][data-bind=${filterOption.colnm}]`, owner.template);
|
|
657
593
|
var expr = cell.attr("data-expr");
|
|
@@ -678,6 +614,7 @@ class ngFilterPanel extends HTMLElement
|
|
|
678
614
|
console.log(data, data2);
|
|
679
615
|
|
|
680
616
|
[...new Set(data2.sort( (a,b) => { return (a.v2||'') > (b.v2||'') ? 1 : ((a.v2||'') < (b.v2||'') ? -1 : 0); } ).map((m) => JSON.stringify(m)))].map((m) => JSON.parse(m)).forEach(o => {
|
|
617
|
+
console.log(filterOption, o);
|
|
681
618
|
ds.push({
|
|
682
619
|
LVL : 2,
|
|
683
620
|
DATA : o.v,
|