super-page-runtime 2.3.12-sit1 → 2.3.12-sit2

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.
@@ -176,27 +176,27 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
176
176
  d(Y, J, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
177
177
  }
178
178
  }
179
- function Ve(e3, t2) {
180
- if (!t2 && !Y.dataTypeMaps) return;
181
- const n2 = t2 || Y.dataTypeMaps;
182
- let o2 = [];
183
- if (e3) for (var i2 in e3) {
184
- const t3 = e3[i2];
185
- if (null != t3 && "" !== t3) if (t3 instanceof Array) {
186
- if (t3.length > 0) {
179
+ function Ve(e3) {
180
+ if (!Y.dataTypeMaps) return;
181
+ const t2 = Y.dataTypeMaps;
182
+ let n2 = [];
183
+ if (e3) for (var o2 in e3) {
184
+ const a2 = e3[o2];
185
+ if (null != a2 && "" !== a2) if (a2 instanceof Array) {
186
+ if (a2.length > 0) {
187
187
  const e4 = [];
188
- for (var a2 = 0; a2 < t3.length; a2++) {
189
- const o3 = {};
190
- o3.leftBracket = 0 === a2 ? "((" : "(", o3.propName = i2, o3.propDbName = i2, o3.dataType = n2[i2] ? n2[i2] : "TEXT", o3.operator = "EQ", o3.propValue = t3[a2], a2 === t3.length - 1 ? (o3.rightBracket = "))", o3.joinSign = "and") : (o3.rightBracket = ")", o3.joinSign = "or"), e4.push(o3);
188
+ for (var i2 = 0; i2 < a2.length; i2++) {
189
+ const n3 = {};
190
+ n3.leftBracket = 0 === i2 ? "((" : "(", n3.propName = o2, n3.propDbName = o2, n3.dataType = t2[o2] ? t2[o2] : "TEXT", n3.operator = "EQ", n3.propValue = a2[i2], i2 === a2.length - 1 ? (n3.rightBracket = "))", n3.joinSign = "and") : (n3.rightBracket = ")", n3.joinSign = "or"), e4.push(n3);
191
191
  }
192
- o2 = o2.concat(e4);
192
+ n2 = n2.concat(e4);
193
193
  }
194
194
  } else {
195
195
  const e4 = { leftBracket: "(" };
196
- e4.propName = i2, e4.propDbName = i2, e4.dataType = n2[i2] ? n2[i2] : "TEXT", e4.operator = "EQ", e4.propValue = t3, Ze(e4, i2), e4.rightBracket = ")", e4.joinSign = "and", o2.push(e4);
196
+ e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2, Ze(e4, o2), e4.rightBracket = ")", e4.joinSign = "and", n2.push(e4);
197
197
  }
198
198
  }
199
- ue.value.toolbarRefresh(null, null, o2);
199
+ ue.value.toolbarRefresh(null, null, n2);
200
200
  }
201
201
  function je(e3) {
202
202
  const t2 = Ne();
@@ -364,7 +364,10 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
364
364
  }, getTableData: function() {
365
365
  var _a;
366
366
  return (_a = ue.value) == null ? void 0 : _a.getTableData();
367
- }, searchGridData: Ve }), (e3, t2) => {
367
+ }, handleSearch: function(e3, t2) {
368
+ var _a;
369
+ return (_a = ue.value) == null ? void 0 : _a.handleSearch(e3, t2);
370
+ } }), (e3, t2) => {
368
371
  const n2 = a("super-grid");
369
372
  return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), onSelect: Fe, onSelectAll: He, onSelectionChange: Ue, onCellClick: Le, onCellDblclick: Me, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(P), onCanShowMobileSearch: ze, onGridOnmounted: we }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, z);
370
373
  };
@@ -2,8 +2,8 @@ import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as
2
2
  import i from "./sub-table-runtime.vue.js";
3
3
  import c from "./main-table-runtime.vue.js";
4
4
  const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: f2 }) {
5
- const s = e2, g = s.pageContext.pageType, d = t(null), v = s.configure.uuid, p = s.pageContext.superGridItems, S = p ? p[v] : null;
6
- d.value = S ? S.configure ? JSON.parse(S.configure) : null : s.configure;
5
+ const s = e2, g = s.pageContext.pageType, d = t(null), v = s.configure.uuid, S = s.pageContext.superGridItems, p = S ? S[v] : null;
6
+ d.value = p ? p.configure ? JSON.parse(p.configure) : null : s.configure;
7
7
  const T = s.configure.runtime ? s.configure.runtime : {};
8
8
  T.style, T.class;
9
9
  const C = t(true), b = t(null);
@@ -72,9 +72,9 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
72
72
  }, addRequiredClass: function(e3, t2, n2) {
73
73
  var _a;
74
74
  (_a = b.value) == null ? void 0 : _a.addRequiredClass(e3, t2, n2);
75
- }, searchGridData: function(e3, t2) {
75
+ }, handleSearch: function(e3, t2) {
76
76
  var _a;
77
- (_a = b.value) == null ? void 0 : _a.searchGridData(e3, t2);
77
+ (_a = b.value) == null ? void 0 : _a.handleSearch(e3, t2);
78
78
  } }), (e3, t2) => (a(), u("div", null, [r(g) && "form" === r(g) && C.value ? (a(), o(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (a(), o(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
79
79
  } });
80
80
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.12-sit1",
3
+ "version": "2.3.12-sit2",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -48,7 +48,7 @@
48
48
  "@vitejs/plugin-vue-jsx": "^3.1.0",
49
49
  "@vue/eslint-config-prettier": "^8.0.0",
50
50
  "@vue/test-utils": "^2.4.4",
51
- "agilebuilder-ui": "1.1.50-sit1",
51
+ "agilebuilder-ui": "1.1.50-sit3",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",