ninegrid2 6.95.0 → 6.98.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.
@@ -12065,7 +12065,7 @@ class ngCellEx extends HTMLElement
12065
12065
  row = parseInt(row);
12066
12066
  const fn = expr.replace("()", "");
12067
12067
 
12068
- console.log(fn, this.owner[fn]);
12068
+ //console.log(fn, this.owner[fn]);
12069
12069
 
12070
12070
  if (this.owner[fn]) {
12071
12071
  return this.owner[fn].call(this, data, row, this.cell);
@@ -12076,7 +12076,7 @@ class ngCellEx extends HTMLElement
12076
12076
  return this.owner.exprFunction(expr).call(this, data, row, this.owner.data);
12077
12077
  //return this.owner.exprFunction2(expr).call(this, data, row, this.owner.data);
12078
12078
  } catch (e) {
12079
- console.error(e, expr, data, row);
12079
+ //console.error(e, expr, data, row);
12080
12080
  return ["NG-COMBO"].includes(this.tagName) ? "" : expr;
12081
12081
  }
12082
12082
  }
@@ -17100,6 +17100,10 @@ class ngDataManager
17100
17100
 
17101
17101
  this.exprFunction = (s) => {
17102
17102
 
17103
+ s = s.replaceAll("ninegrid.ROW.ORDER", ninegrid.ROW.ORDER);
17104
+
17105
+
17106
+
17103
17107
  let args = '...args';
17104
17108
  let body = 'let [data, currow, all] = args; currow = Number(currow); return ' + s + ';';
17105
17109
 
@@ -12063,7 +12063,7 @@ class ngCellEx extends HTMLElement
12063
12063
  row = parseInt(row);
12064
12064
  const fn = expr.replace("()", "");
12065
12065
 
12066
- console.log(fn, this.owner[fn]);
12066
+ //console.log(fn, this.owner[fn]);
12067
12067
 
12068
12068
  if (this.owner[fn]) {
12069
12069
  return this.owner[fn].call(this, data, row, this.cell);
@@ -12074,7 +12074,7 @@ class ngCellEx extends HTMLElement
12074
12074
  return this.owner.exprFunction(expr).call(this, data, row, this.owner.data);
12075
12075
  //return this.owner.exprFunction2(expr).call(this, data, row, this.owner.data);
12076
12076
  } catch (e) {
12077
- console.error(e, expr, data, row);
12077
+ //console.error(e, expr, data, row);
12078
12078
  return ["NG-COMBO"].includes(this.tagName) ? "" : expr;
12079
12079
  }
12080
12080
  }
@@ -17098,6 +17098,10 @@ class ngDataManager
17098
17098
 
17099
17099
  this.exprFunction = (s) => {
17100
17100
 
17101
+ s = s.replaceAll("ninegrid.ROW.ORDER", ninegrid.ROW.ORDER);
17102
+
17103
+
17104
+
17101
17105
  let args = '...args';
17102
17106
  let body = 'let [data, currow, all] = args; currow = Number(currow); return ' + s + ';';
17103
17107
 
@@ -524,7 +524,7 @@ export class ngCellEx extends HTMLElement
524
524
  row = parseInt(row);
525
525
  const fn = expr.replace("()", "");
526
526
 
527
- console.log(fn, this.owner[fn]);
527
+ //console.log(fn, this.owner[fn]);
528
528
 
529
529
  if (this.owner[fn]) {
530
530
  return this.owner[fn].call(this, data, row, this.cell);
@@ -535,7 +535,7 @@ export class ngCellEx extends HTMLElement
535
535
  return this.owner.exprFunction(expr).call(this, data, row, this.owner.data);
536
536
  //return this.owner.exprFunction2(expr).call(this, data, row, this.owner.data);
537
537
  } catch (e) {
538
- console.error(e, expr, data, row);
538
+ //console.error(e, expr, data, row);
539
539
  return ["NG-COMBO"].includes(this.tagName) ? "" : expr;
540
540
  }
541
541
  }
@@ -123,6 +123,10 @@ export class ngDataManager
123
123
 
124
124
  this.exprFunction = (s) => {
125
125
 
126
+ s = s.replaceAll("ninegrid.ROW.ORDER", ninegrid.ROW.ORDER);
127
+
128
+
129
+
126
130
  let args = '...args';
127
131
  let body = 'let [data, currow, all] = args; currow = Number(currow); return ' + s + ';';
128
132
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.95.0",
4
+ "version": "6.98.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -524,7 +524,7 @@ export class ngCellEx extends HTMLElement
524
524
  row = parseInt(row);
525
525
  const fn = expr.replace("()", "");
526
526
 
527
- console.log(fn, this.owner[fn]);
527
+ //console.log(fn, this.owner[fn]);
528
528
 
529
529
  if (this.owner[fn]) {
530
530
  return this.owner[fn].call(this, data, row, this.cell);
@@ -535,7 +535,7 @@ export class ngCellEx extends HTMLElement
535
535
  return this.owner.exprFunction(expr).call(this, data, row, this.owner.data);
536
536
  //return this.owner.exprFunction2(expr).call(this, data, row, this.owner.data);
537
537
  } catch (e) {
538
- console.error(e, expr, data, row);
538
+ //console.error(e, expr, data, row);
539
539
  return ["NG-COMBO"].includes(this.tagName) ? "" : expr;
540
540
  }
541
541
  }
@@ -123,6 +123,10 @@ export class ngDataManager
123
123
 
124
124
  this.exprFunction = (s) => {
125
125
 
126
+ s = s.replaceAll("ninegrid.ROW.ORDER", ninegrid.ROW.ORDER);
127
+
128
+
129
+
126
130
  let args = '...args';
127
131
  let body = 'let [data, currow, all] = args; currow = Number(currow); return ' + s + ';';
128
132