ninegrid2 6.248.0 → 6.250.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.
@@ -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((filterOption, i) => {
18156
- const groupLabel = `<span class="group">${cell.textContent}${filterButton.filterOptions.length > 1 ? ` #${i + 1} (${filterOption.colnm})` : ""}</span>`;
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.activeTmpl.querySelector(`[data-col="${col}"][data-bind="${filterOption.colnm}"]`);
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(filterOption.colnm);
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: filterOption.colnm,
18177
- CHK: filterOption.data.length === 0 || filterOption.data.nineBinarySearch(o.v || "") >= 0 ? "Y" : "N",
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();
@@ -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((filterOption, i) => {
18154
- const groupLabel = `<span class="group">${cell.textContent}${filterButton.filterOptions.length > 1 ? ` #${i + 1} (${filterOption.colnm})` : ""}</span>`;
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.activeTmpl.querySelector(`[data-col="${col}"][data-bind="${filterOption.colnm}"]`);
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(filterOption.colnm);
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: filterOption.colnm,
18175
- CHK: filterOption.data.length === 0 || filterOption.data.nineBinarySearch(o.v || "") >= 0 ? "Y" : "N",
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();
@@ -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((filterOption, i) => {
333
- const groupLabel = `<span class="group">${cell.textContent}${filterButton.filterOptions.length > 1 ? ` #${i + 1} (${filterOption.colnm})` : ""}</span>`;
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.activeTmpl.querySelector(`[data-col="${col}"][data-bind="${filterOption.colnm}"]`);
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(filterOption.colnm);
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: filterOption.colnm,
354
- CHK: filterOption.data.length === 0 || filterOption.data.nineBinarySearch(o.v || "") >= 0 ? "Y" : "N",
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.248.0",
4
+ "version": "6.250.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -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((filterOption, i) => {
333
- const groupLabel = `<span class="group">${cell.textContent}${filterButton.filterOptions.length > 1 ? ` #${i + 1} (${filterOption.colnm})` : ""}</span>`;
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.activeTmpl.querySelector(`[data-col="${col}"][data-bind="${filterOption.colnm}"]`);
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(filterOption.colnm);
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: filterOption.colnm,
354
- CHK: filterOption.data.length === 0 || filterOption.data.nineBinarySearch(o.v || "") >= 0 ? "Y" : "N",
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();