ninegrid2 6.247.0 → 6.249.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 +6 -6
- package/dist/bundle.esm.js +6 -6
- package/dist/etc/ngFiltering.js +6 -6
- package/package.json +1 -1
- package/src/etc/ngFiltering.js +6 -6
package/dist/bundle.cjs.js
CHANGED
|
@@ -18152,15 +18152,15 @@ class ngFilterPanel extends HTMLElement
|
|
|
18152
18152
|
this.col = col;
|
|
18153
18153
|
this.#button = filterButton;
|
|
18154
18154
|
|
|
18155
|
-
const ds = filterButton.filterOptions.map((
|
|
18156
|
-
const groupLabel = `<span class="group">${cell.textContent}${filterButton.filterOptions.length > 1 ? ` #${i + 1} (${
|
|
18155
|
+
const ds = filterButton.filterOptions.map((opt, i) => {
|
|
18156
|
+
const groupLabel = `<span class="group">${cell.textContent}${filterButton.filterOptions.length > 1 ? ` #${i + 1} (${opt.colnm})` : ""}</span>`;
|
|
18157
18157
|
|
|
18158
|
-
const cellEl = this.#owner.
|
|
18158
|
+
const cellEl = this.#owner.activeTmpl.querySelector(`[data-col="${col}"][data-bind="${opt.colnm}"]`);
|
|
18159
18159
|
const expr = cellEl?.getAttribute("data-expr");
|
|
18160
18160
|
const exprFunc = expr ? this.#owner.exprFunction(expr) : null;
|
|
18161
18161
|
|
|
18162
18162
|
const data2 = data.map(rowData => {
|
|
18163
|
-
const idx = this.#owner.fields.indexOf(
|
|
18163
|
+
const idx = this.#owner.fields.indexOf(opt.colnm);
|
|
18164
18164
|
return expr ? { v: rowData.v[idx], v2: exprFunc(this.#owner.data.conv(rowData), rowData.__ng.rowidx, this.#owner.data) } : { v: rowData.v[idx], v2: rowData.v[idx] };
|
|
18165
18165
|
});
|
|
18166
18166
|
|
|
@@ -18173,8 +18173,8 @@ class ngFilterPanel extends HTMLElement
|
|
|
18173
18173
|
LVL: 2,
|
|
18174
18174
|
DATA: o.v,
|
|
18175
18175
|
DATA2: o.v2 || ` <span class="empty">(empty)</span> ${o.v}`,
|
|
18176
|
-
COLNM:
|
|
18177
|
-
CHK:
|
|
18176
|
+
COLNM: opt.colnm,
|
|
18177
|
+
CHK: opt.data.length === 0 || opt.data.nineBinarySearch(o.v || "") >= 0 ? "Y" : "N",
|
|
18178
18178
|
}))
|
|
18179
18179
|
];
|
|
18180
18180
|
}).flat();
|
package/dist/bundle.esm.js
CHANGED
|
@@ -18150,15 +18150,15 @@ class ngFilterPanel extends HTMLElement
|
|
|
18150
18150
|
this.col = col;
|
|
18151
18151
|
this.#button = filterButton;
|
|
18152
18152
|
|
|
18153
|
-
const ds = filterButton.filterOptions.map((
|
|
18154
|
-
const groupLabel = `<span class="group">${cell.textContent}${filterButton.filterOptions.length > 1 ? ` #${i + 1} (${
|
|
18153
|
+
const ds = filterButton.filterOptions.map((opt, i) => {
|
|
18154
|
+
const groupLabel = `<span class="group">${cell.textContent}${filterButton.filterOptions.length > 1 ? ` #${i + 1} (${opt.colnm})` : ""}</span>`;
|
|
18155
18155
|
|
|
18156
|
-
const cellEl = this.#owner.
|
|
18156
|
+
const cellEl = this.#owner.activeTmpl.querySelector(`[data-col="${col}"][data-bind="${opt.colnm}"]`);
|
|
18157
18157
|
const expr = cellEl?.getAttribute("data-expr");
|
|
18158
18158
|
const exprFunc = expr ? this.#owner.exprFunction(expr) : null;
|
|
18159
18159
|
|
|
18160
18160
|
const data2 = data.map(rowData => {
|
|
18161
|
-
const idx = this.#owner.fields.indexOf(
|
|
18161
|
+
const idx = this.#owner.fields.indexOf(opt.colnm);
|
|
18162
18162
|
return expr ? { v: rowData.v[idx], v2: exprFunc(this.#owner.data.conv(rowData), rowData.__ng.rowidx, this.#owner.data) } : { v: rowData.v[idx], v2: rowData.v[idx] };
|
|
18163
18163
|
});
|
|
18164
18164
|
|
|
@@ -18171,8 +18171,8 @@ class ngFilterPanel extends HTMLElement
|
|
|
18171
18171
|
LVL: 2,
|
|
18172
18172
|
DATA: o.v,
|
|
18173
18173
|
DATA2: o.v2 || ` <span class="empty">(empty)</span> ${o.v}`,
|
|
18174
|
-
COLNM:
|
|
18175
|
-
CHK:
|
|
18174
|
+
COLNM: opt.colnm,
|
|
18175
|
+
CHK: opt.data.length === 0 || opt.data.nineBinarySearch(o.v || "") >= 0 ? "Y" : "N",
|
|
18176
18176
|
}))
|
|
18177
18177
|
];
|
|
18178
18178
|
}).flat();
|
package/dist/etc/ngFiltering.js
CHANGED
|
@@ -329,15 +329,15 @@ class ngFilterPanel extends HTMLElement
|
|
|
329
329
|
this.col = col;
|
|
330
330
|
this.#button = filterButton;
|
|
331
331
|
|
|
332
|
-
const ds = filterButton.filterOptions.map((
|
|
333
|
-
const groupLabel = `<span class="group">${cell.textContent}${filterButton.filterOptions.length > 1 ? ` #${i + 1} (${
|
|
332
|
+
const ds = filterButton.filterOptions.map((opt, i) => {
|
|
333
|
+
const groupLabel = `<span class="group">${cell.textContent}${filterButton.filterOptions.length > 1 ? ` #${i + 1} (${opt.colnm})` : ""}</span>`;
|
|
334
334
|
|
|
335
|
-
const cellEl = this.#owner.
|
|
335
|
+
const cellEl = this.#owner.activeTmpl.querySelector(`[data-col="${col}"][data-bind="${opt.colnm}"]`);
|
|
336
336
|
const expr = cellEl?.getAttribute("data-expr");
|
|
337
337
|
const exprFunc = expr ? this.#owner.exprFunction(expr) : null;
|
|
338
338
|
|
|
339
339
|
const data2 = data.map(rowData => {
|
|
340
|
-
const idx = this.#owner.fields.indexOf(
|
|
340
|
+
const idx = this.#owner.fields.indexOf(opt.colnm);
|
|
341
341
|
return expr ? { v: rowData.v[idx], v2: exprFunc(this.#owner.data.conv(rowData), rowData.__ng.rowidx, this.#owner.data) } : { v: rowData.v[idx], v2: rowData.v[idx] };
|
|
342
342
|
});
|
|
343
343
|
|
|
@@ -350,8 +350,8 @@ class ngFilterPanel extends HTMLElement
|
|
|
350
350
|
LVL: 2,
|
|
351
351
|
DATA: o.v,
|
|
352
352
|
DATA2: o.v2 || ` <span class="empty">(empty)</span> ${o.v}`,
|
|
353
|
-
COLNM:
|
|
354
|
-
CHK:
|
|
353
|
+
COLNM: opt.colnm,
|
|
354
|
+
CHK: opt.data.length === 0 || opt.data.nineBinarySearch(o.v || "") >= 0 ? "Y" : "N",
|
|
355
355
|
}))
|
|
356
356
|
];
|
|
357
357
|
}).flat();
|
package/package.json
CHANGED
package/src/etc/ngFiltering.js
CHANGED
|
@@ -329,15 +329,15 @@ class ngFilterPanel extends HTMLElement
|
|
|
329
329
|
this.col = col;
|
|
330
330
|
this.#button = filterButton;
|
|
331
331
|
|
|
332
|
-
const ds = filterButton.filterOptions.map((
|
|
333
|
-
const groupLabel = `<span class="group">${cell.textContent}${filterButton.filterOptions.length > 1 ? ` #${i + 1} (${
|
|
332
|
+
const ds = filterButton.filterOptions.map((opt, i) => {
|
|
333
|
+
const groupLabel = `<span class="group">${cell.textContent}${filterButton.filterOptions.length > 1 ? ` #${i + 1} (${opt.colnm})` : ""}</span>`;
|
|
334
334
|
|
|
335
|
-
const cellEl = this.#owner.
|
|
335
|
+
const cellEl = this.#owner.activeTmpl.querySelector(`[data-col="${col}"][data-bind="${opt.colnm}"]`);
|
|
336
336
|
const expr = cellEl?.getAttribute("data-expr");
|
|
337
337
|
const exprFunc = expr ? this.#owner.exprFunction(expr) : null;
|
|
338
338
|
|
|
339
339
|
const data2 = data.map(rowData => {
|
|
340
|
-
const idx = this.#owner.fields.indexOf(
|
|
340
|
+
const idx = this.#owner.fields.indexOf(opt.colnm);
|
|
341
341
|
return expr ? { v: rowData.v[idx], v2: exprFunc(this.#owner.data.conv(rowData), rowData.__ng.rowidx, this.#owner.data) } : { v: rowData.v[idx], v2: rowData.v[idx] };
|
|
342
342
|
});
|
|
343
343
|
|
|
@@ -350,8 +350,8 @@ class ngFilterPanel extends HTMLElement
|
|
|
350
350
|
LVL: 2,
|
|
351
351
|
DATA: o.v,
|
|
352
352
|
DATA2: o.v2 || ` <span class="empty">(empty)</span> ${o.v}`,
|
|
353
|
-
COLNM:
|
|
354
|
-
CHK:
|
|
353
|
+
COLNM: opt.colnm,
|
|
354
|
+
CHK: opt.data.length === 0 || opt.data.nineBinarySearch(o.v || "") >= 0 ? "Y" : "N",
|
|
355
355
|
}))
|
|
356
356
|
];
|
|
357
357
|
}).flat();
|