@gisce/ooui 2.1.0 → 2.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../src/Form.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AASlD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,cAAM,IAAI;IACR;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,MAAM,QAET;IAED,UAAU,EAAE,SAAS,CAAC;IACtB,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,IAAI,MAAM,IAAI,MAAM,GAAG,IAAI,CAE1B;IAED;;OAEG;IACH,KAAK,EAAE,MAAM,CAAU;IACvB,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,SAAS,EAAE,OAAO,CAAS;IAC3B,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,CAAC,KAAK,EAAE,OAAO,EAE1B;IAED;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAM;IACnB,IAAI,OAAO,IAAI,GAAG,CAEjB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,GAAG,EAErB;IAED;;OAEG;IACH,eAAe,EAAE,GAAG,CAAM;IAC1B,IAAI,cAAc,IAAI,GAAG,CAExB;IAED,IAAI,cAAc,CAAC,KAAK,EAAE,GAAG,EAE5B;IAkBD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAK;IACpB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,EAEvB;IAED;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAM;IAChC,IAAI,eAAe,IAAI,MAAM,EAAE,CAE9B;IAED,IAAI,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,EAElC;gBAEW,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,MAAU;IAK/C,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAqB7C,SAAS,CAAC,EACR,MAAM,EACN,SAAS,EACT,MAAM,GACP,EAAE;QACD,MAAM,EAAE,UAAU,EAAE,CAAC;QACrB,SAAS,EAAE,SAAS,CAAC;QACrB,MAAM,EAAE,GAAG,CAAC;KACb;IA2GD;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAGpC;AAaD,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../src/Form.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAUlD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,cAAM,IAAI;IACR;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,MAAM,QAET;IAED,UAAU,EAAE,SAAS,CAAC;IACtB,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,IAAI,MAAM,IAAI,MAAM,GAAG,IAAI,CAE1B;IAED;;OAEG;IACH,KAAK,EAAE,MAAM,CAAU;IACvB,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,SAAS,EAAE,OAAO,CAAS;IAC3B,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,CAAC,KAAK,EAAE,OAAO,EAE1B;IAED;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAM;IACnB,IAAI,OAAO,IAAI,GAAG,CAEjB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,GAAG,EAErB;IAED;;OAEG;IACH,eAAe,EAAE,GAAG,CAAM;IAC1B,IAAI,cAAc,IAAI,GAAG,CAExB;IAED,IAAI,cAAc,CAAC,KAAK,EAAE,GAAG,EAE5B;IAkBD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAK;IACpB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,EAEvB;IAED;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAM;IAChC,IAAI,eAAe,IAAI,MAAM,EAAE,CAE9B;IAED,IAAI,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,EAElC;gBAEW,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,MAAU;IAK/C,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAqB7C,SAAS,CAAC,EACR,MAAM,EACN,SAAS,EACT,MAAM,GACP,EAAE;QACD,MAAM,EAAE,UAAU,EAAE,CAAC;QACrB,SAAS,EAAE,SAAS,CAAC;QACrB,MAAM,EAAE,GAAG,CAAC;KACb;IA+GD;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAGpC;AAaD,eAAe,IAAI,CAAC"}
package/dist/ooui.es.js CHANGED
@@ -1,8 +1,8 @@
1
- var oe = Object.defineProperty;
2
- var ce = (s, t, e) => t in s ? oe(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
- var n = (s, t, e) => (ce(s, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { decode as de } from "html-entities";
5
- import { evaluateCondition as ue } from "@gisce/conscheck";
1
+ var ce = Object.defineProperty;
2
+ var de = (s, t, e) => t in s ? ce(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
+ var n = (s, t, e) => (de(s, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import { decode as ue } from "html-entities";
5
+ import { evaluateCondition as he } from "@gisce/conscheck";
6
6
  import * as Y from "txml";
7
7
  import E from "moment";
8
8
  const F = class F {
@@ -108,7 +108,7 @@ const F = class F {
108
108
  */
109
109
  n(F, "_defaultColspan", 1);
110
110
  let v = F;
111
- const he = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), _e = ({
111
+ const _e = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), fe = ({
112
112
  entry: s,
113
113
  values: t,
114
114
  fields: e
@@ -144,7 +144,7 @@ const he = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), _e
144
144
  default:
145
145
  return !1;
146
146
  }
147
- }, b = (s) => de(s, { level: "xml" }), q = ({
147
+ }, b = (s) => ue(s, { level: "xml" }), q = ({
148
148
  fieldName: s,
149
149
  valueInObject: t,
150
150
  expectedValue: e,
@@ -164,7 +164,7 @@ const he = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), _e
164
164
  modifiedExpectedValue: null,
165
165
  directOutcome: !1
166
166
  } : (r.modifiedValueInObject = i[s].type === "boolean" ? !!t : t, i[s].type === "many2one" && e === !1 && t === void 0 ? r.modifiedExpectedValue = void 0 : (r.modifiedValueInObject = r.modifiedValueInObject === void 0 ? !1 : r.modifiedValueInObject, r.modifiedValueInObject = r.modifiedValueInObject === null ? !1 : r.modifiedValueInObject), i[s].type === "many2one" && Array.isArray(r.modifiedValueInObject) && r.modifiedValueInObject[0] === void 0 && (r.modifiedValueInObject = !1), i[s].type === "boolean" && (e === 0 || e === 1) && (r.modifiedExpectedValue = e !== 0), r);
167
- }, fe = ({
167
+ }, ge = ({
168
168
  attrs: s,
169
169
  values: t,
170
170
  fields: e,
@@ -172,11 +172,11 @@ const he = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), _e
172
172
  }) => {
173
173
  const h = s.replace(/\(/g, "[").replace(/\)/g, "]").replace(/'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), _ = b(h), u = JSON.parse(_), d = {};
174
174
  for (const c of Object.keys(u)) {
175
- const p = u[c].map((m) => _e({ entry: m, values: t, fields: e })).every((m) => m);
176
- p ? d[c] = !0 : c === "readonly" && !p && i === "button" && (d[c] = !1);
175
+ const y = u[c].map((m) => fe({ entry: m, values: t, fields: e })).every((m) => m);
176
+ y ? d[c] = !0 : c === "readonly" && !y && i === "button" && (d[c] = !1);
177
177
  }
178
178
  return d;
179
- }, ge = ({
179
+ }, me = ({
180
180
  attrs: s,
181
181
  values: t,
182
182
  fields: e
@@ -186,7 +186,7 @@ const he = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), _e
186
186
  i.replace(/'/g, '"')
187
187
  ), a = {};
188
188
  for (const l of Object.keys(r))
189
- a[l] = ue({
189
+ a[l] = he({
190
190
  object: t,
191
191
  condition: r[l],
192
192
  evaluateFieldComparison: ({
@@ -206,7 +206,7 @@ const he = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), _e
206
206
  "Error parsing new json_attrs. Original string: " + s
207
207
  ) : i;
208
208
  }
209
- }, me = ({
209
+ }, be = ({
210
210
  tagAttributes: s,
211
211
  values: t,
212
212
  fields: e,
@@ -214,14 +214,14 @@ const he = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), _e
214
214
  fallbackMode: r = !0
215
215
  }) => {
216
216
  let a = {}, l = {};
217
- if (s.attrs && (l = fe({
217
+ if (s.attrs && (l = ge({
218
218
  attrs: s.attrs,
219
219
  values: t,
220
220
  fields: e,
221
221
  widgetType: i
222
222
  })), s.json_attrs)
223
223
  try {
224
- a = ge({
224
+ a = me({
225
225
  attrs: s.json_attrs,
226
226
  values: t,
227
227
  fields: e
@@ -287,7 +287,7 @@ class g extends v {
287
287
  * Values and keys
288
288
  */
289
289
  n(this, "_selectionValues", /* @__PURE__ */ new Map([]));
290
- this._activated = !0, e && (e.name && (this._id = e.name), e.activated && (this._activated = e.activated), e.string && (this._label = b(e.string)), e.help && (this._tooltip = b(e.help)), e.nolabel && (e.nolabel === "1" || typeof e.nolabel == "boolean" && e.nolabel === !0) && (this._nolabel = !0), e.required && (e.required === "1" || e.required === !0 || e.required === "True") && (this._required = !0), e.sum && (this._sum = b(e.sum)), e.selection && (this._selectionValues = new Map(e.selection)), e.help_inline && (this.tooltipInline = he(e.help_inline)));
290
+ this._activated = !0, e && (e.name && (this._id = e.name), e.activated && (this._activated = e.activated), e.string && (this._label = b(e.string)), e.help && (this._tooltip = b(e.help)), e.nolabel && (e.nolabel === "1" || typeof e.nolabel == "boolean" && e.nolabel === !0) && (this._nolabel = !0), e.required && (e.required === "1" || e.required === !0 || e.required === "True") && (this._required = !0), e.sum && (this._sum = b(e.sum)), e.selection && (this._selectionValues = new Map(e.selection)), e.help_inline && (this.tooltipInline = _e(e.help_inline)));
291
291
  }
292
292
  get id() {
293
293
  return this._id;
@@ -351,7 +351,7 @@ class g extends v {
351
351
  return this._id === e ? this : null;
352
352
  }
353
353
  }
354
- class be extends g {
354
+ class ye extends g {
355
355
  }
356
356
  class J extends v {
357
357
  findById(t) {
@@ -616,7 +616,7 @@ const O = class O extends C {
616
616
  };
617
617
  n(O, "_defaultColspan", 3);
618
618
  let M = O;
619
- class ye extends C {
619
+ class Q extends C {
620
620
  constructor(e) {
621
621
  super(e);
622
622
  n(this, "_icon", null);
@@ -642,7 +642,7 @@ class pe extends C {
642
642
  this._icon = e;
643
643
  }
644
644
  }
645
- class Q extends g {
645
+ class X extends g {
646
646
  constructor(e) {
647
647
  super({
648
648
  ...e,
@@ -873,7 +873,7 @@ class we extends g {
873
873
  }
874
874
  class ve extends B {
875
875
  }
876
- class X extends g {
876
+ class U extends g {
877
877
  constructor(t) {
878
878
  super(t);
879
879
  }
@@ -966,7 +966,7 @@ class Te extends g {
966
966
  this._mustExpand = e;
967
967
  }
968
968
  }
969
- class U extends g {
969
+ class K extends g {
970
970
  constructor(e) {
971
971
  super(e);
972
972
  /**
@@ -1098,7 +1098,7 @@ class We extends g {
1098
1098
  super(t);
1099
1099
  }
1100
1100
  }
1101
- class Ve extends U {
1101
+ class Ve extends K {
1102
1102
  constructor(e) {
1103
1103
  super(e);
1104
1104
  /**
@@ -1158,7 +1158,7 @@ class Ye extends T {
1158
1158
  this._suffix = e;
1159
1159
  }
1160
1160
  }
1161
- class K extends g {
1161
+ class Z extends g {
1162
1162
  constructor(e) {
1163
1163
  super(e);
1164
1164
  /**
@@ -1211,7 +1211,7 @@ class K extends g {
1211
1211
  this._columns = e;
1212
1212
  }
1213
1213
  }
1214
- class De extends K {
1214
+ class De extends Z {
1215
1215
  }
1216
1216
  class je extends T {
1217
1217
  get colors() {
@@ -1234,7 +1234,7 @@ class Me extends T {
1234
1234
  this._direction = e;
1235
1235
  }
1236
1236
  }
1237
- class Ne extends X {
1237
+ class Ne extends U {
1238
1238
  }
1239
1239
  class Ae extends g {
1240
1240
  constructor(e) {
@@ -1290,7 +1290,7 @@ class L {
1290
1290
  this._widgetClass = M;
1291
1291
  break;
1292
1292
  case "page":
1293
- this._widgetClass = ye;
1293
+ this._widgetClass = Q;
1294
1294
  break;
1295
1295
  case "group":
1296
1296
  this._widgetClass = pe;
@@ -1305,7 +1305,7 @@ class L {
1305
1305
  this._widgetClass = B;
1306
1306
  break;
1307
1307
  case "button":
1308
- this._widgetClass = Q;
1308
+ this._widgetClass = X;
1309
1309
  break;
1310
1310
  case "buttonGroup":
1311
1311
  this._widgetClass = xe;
@@ -1317,7 +1317,7 @@ class L {
1317
1317
  this._widgetClass = we;
1318
1318
  break;
1319
1319
  case "boolean":
1320
- this._widgetClass = X;
1320
+ this._widgetClass = U;
1321
1321
  break;
1322
1322
  case "integer":
1323
1323
  this._widgetClass = Ce;
@@ -1345,7 +1345,7 @@ class L {
1345
1345
  break;
1346
1346
  case "one2many":
1347
1347
  case "one2many_list":
1348
- this._widgetClass = U;
1348
+ this._widgetClass = K;
1349
1349
  break;
1350
1350
  case "newline":
1351
1351
  this._widgetClass = J;
@@ -1384,13 +1384,13 @@ class L {
1384
1384
  this._widgetClass = je;
1385
1385
  break;
1386
1386
  case "avatar":
1387
- this._widgetClass = be;
1387
+ this._widgetClass = ye;
1388
1388
  break;
1389
1389
  case "radio":
1390
1390
  this._widgetClass = Me;
1391
1391
  break;
1392
1392
  case "multicheckbox":
1393
- this._widgetClass = K;
1393
+ this._widgetClass = Z;
1394
1394
  break;
1395
1395
  case "switch":
1396
1396
  this._widgetClass = Ne;
@@ -1475,23 +1475,23 @@ const qe = ({
1475
1475
  try {
1476
1476
  if (!s)
1477
1477
  return;
1478
- if (ee(s) || typeof s != "string")
1478
+ if (te(s) || typeof s != "string")
1479
1479
  return s;
1480
- const i = Z(s);
1480
+ const i = ee(s);
1481
1481
  if (i !== null)
1482
1482
  return i;
1483
1483
  if (s.trim().length === 0)
1484
1484
  return;
1485
1485
  const d = s.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((f) => f.split(":")), c = {};
1486
1486
  return d.forEach((f) => {
1487
- const y = f[1];
1487
+ const p = f[1];
1488
1488
  if (!f[1].includes("'") && f[1] !== "true" && f[1] !== "false") {
1489
- const p = Re({
1489
+ const y = Re({
1490
1490
  values: t,
1491
1491
  fields: e,
1492
- fieldName: y === "active_id" ? "id" : y
1492
+ fieldName: p === "active_id" ? "id" : p
1493
1493
  });
1494
- c[f[0].replace(/'/g, "")] = p || void 0;
1494
+ c[f[0].replace(/'/g, "")] = y || void 0;
1495
1495
  } else
1496
1496
  f[1] === "true" ? c[f[0].replace(/'/g, "")] = !0 : f[1] === "false" ? c[f[0].replace(/'/g, "")] = !1 : c[f[0].replace(/'/g, "")] = f[1].replace(
1497
1497
  /'/g,
@@ -1504,21 +1504,21 @@ const qe = ({
1504
1504
  }, bt = (s) => {
1505
1505
  const t = [];
1506
1506
  try {
1507
- return !s || ee(s) || typeof s != "string" ? t : Z(s) !== null ? [] : (s.trim().length === 0 || s.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((d) => d.split(":")).forEach((d) => {
1507
+ return !s || te(s) || typeof s != "string" ? t : ee(s) !== null ? [] : (s.trim().length === 0 || s.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((d) => d.split(":")).forEach((d) => {
1508
1508
  !d[1].includes("'") && d[1] !== "true" && d[1] !== "false" && t.push(d[1].replace(/'/g, ""));
1509
1509
  }), t);
1510
1510
  } catch {
1511
1511
  }
1512
1512
  return t;
1513
1513
  };
1514
- function Z(s) {
1514
+ function ee(s) {
1515
1515
  try {
1516
1516
  return JSON.parse(s.replace(/'/g, '"'));
1517
1517
  } catch {
1518
1518
  return null;
1519
1519
  }
1520
1520
  }
1521
- function ee(s) {
1521
+ function te(s) {
1522
1522
  return typeof s == "object" && s !== null && typeof s != "string";
1523
1523
  }
1524
1524
  const Je = (s) => {
@@ -1655,7 +1655,7 @@ class yt {
1655
1655
  fieldsWidgetType: this._fields[x].type
1656
1656
  };
1657
1657
  }
1658
- const d = me({
1658
+ const d = be({
1659
1659
  tagAttributes: u,
1660
1660
  values: i,
1661
1661
  fields: this._fields,
@@ -1678,20 +1678,22 @@ class yt {
1678
1678
  u.on_change && (this._onChangeFields[u.name] = Je(
1679
1679
  u.on_change
1680
1680
  ));
1681
- let y;
1682
- R(u.domain) && (y = u.domain), R((P = this._fields[u.name]) == null ? void 0 : P.domain) && (y = this._fields[u.name].domain), this._keyIdx = this._keyIdx + 1;
1683
- const p = {
1681
+ let p;
1682
+ R(u.domain) && (p = u.domain), R((P = this._fields[u.name]) == null ? void 0 : P.domain) && (p = this._fields[u.name].domain), this._keyIdx = this._keyIdx + 1;
1683
+ const y = {
1684
1684
  ...d,
1685
1685
  ...c,
1686
1686
  context: f,
1687
- domain: y,
1687
+ domain: p,
1688
1688
  key: `${this._keyIdx}`
1689
- }, m = r.createWidget(_, p);
1690
- m.invisible && m instanceof g && this._invisibleFields.push(p.name), m instanceof C && this.parseNode({
1689
+ };
1690
+ e instanceof Q && e.readOnly && (y.readonly = !0);
1691
+ const m = r.createWidget(_, y);
1692
+ m.invisible && m instanceof g && this._invisibleFields.push(y.name), m instanceof C && this.parseNode({
1691
1693
  fields: h,
1692
1694
  container: m.container,
1693
1695
  values: i
1694
- }), m instanceof Q && m.readOnly !== void 0 || (m.readOnly = m.readOnly || this.readOnly), e.addWidget(m);
1696
+ }), m instanceof X && m.readOnly !== void 0 || (m.readOnly = m.readOnly || this.readOnly), e.addWidget(m);
1695
1697
  });
1696
1698
  }
1697
1699
  /**
@@ -1903,7 +1905,7 @@ class Ct {
1903
1905
  return this._items;
1904
1906
  }
1905
1907
  }
1906
- class te {
1908
+ class se {
1907
1909
  constructor(t) {
1908
1910
  n(this, "_string", null);
1909
1911
  n(this, "_type");
@@ -1921,7 +1923,7 @@ class te {
1921
1923
  }
1922
1924
  }
1923
1925
  const Xe = (s) => s === 1 || s === "1" || s === !0 || s === "True";
1924
- class se extends te {
1926
+ class ie extends se {
1925
1927
  constructor(e, i) {
1926
1928
  super(i);
1927
1929
  n(this, "_color", null);
@@ -1947,7 +1949,7 @@ class se extends te {
1947
1949
  return this._suffix;
1948
1950
  }
1949
1951
  }
1950
- class Ue extends se {
1952
+ class Ue extends ie {
1951
1953
  constructor(e, i) {
1952
1954
  super(e, i);
1953
1955
  n(this, "_field");
@@ -1997,7 +1999,7 @@ const Ke = (s) => {
1997
1999
  y: t
1998
2000
  };
1999
2001
  };
2000
- class j extends te {
2002
+ class j extends se {
2001
2003
  constructor(e, i) {
2002
2004
  super(i);
2003
2005
  n(this, "_x");
@@ -2014,7 +2016,7 @@ class j extends te {
2014
2016
  }
2015
2017
  }
2016
2018
  const Ze = {
2017
- indicator: se,
2019
+ indicator: ie,
2018
2020
  indicatorField: Ue,
2019
2021
  line: j,
2020
2022
  bar: j,
@@ -2028,7 +2030,7 @@ const Ze = {
2028
2030
  throw new Error(`${e} not found as a GraphModel`);
2029
2031
  return new i(e, t);
2030
2032
  };
2031
- class ie {
2033
+ class ne {
2032
2034
  constructor({ name: t, axis: e }) {
2033
2035
  n(this, "_name");
2034
2036
  n(this, "_axis");
@@ -2041,7 +2043,7 @@ class ie {
2041
2043
  return this._axis;
2042
2044
  }
2043
2045
  }
2044
- class et extends ie {
2046
+ class et extends ne {
2045
2047
  constructor({
2046
2048
  name: e,
2047
2049
  operator: i,
@@ -2064,7 +2066,7 @@ class et extends ie {
2064
2066
  return this._stacked;
2065
2067
  }
2066
2068
  }
2067
- class tt extends ie {
2069
+ class tt extends ne {
2068
2070
  constructor({ name: t }) {
2069
2071
  super({ name: t, axis: "x" });
2070
2072
  }
@@ -2114,7 +2116,7 @@ function nt({
2114
2116
  timerange: t
2115
2117
  }) {
2116
2118
  let e = [];
2117
- const i = re({
2119
+ const i = ae({
2118
2120
  values: s,
2119
2121
  groupBy: "type-stacked"
2120
2122
  }), r = `${t}s`;
@@ -2125,7 +2127,7 @@ function nt({
2125
2127
  if (e.push(_), h === o.length - 1)
2126
2128
  return;
2127
2129
  const u = _.x, d = o[h + 1].x;
2128
- if (!ne([u, d], r)) {
2130
+ if (!re([u, d], r)) {
2129
2131
  const c = rt({
2130
2132
  dates: [u, d],
2131
2133
  timerange: t
@@ -2152,7 +2154,7 @@ function rt({
2152
2154
  const r = s.sort((a, l) => a < l ? -1 : a > l ? 1 : 0);
2153
2155
  for (let a = 0; a < r.length - 1; a++) {
2154
2156
  const l = r[a], o = r[a + 1];
2155
- if (!ne([l, o], i)) {
2157
+ if (!re([l, o], i)) {
2156
2158
  const h = E(l, I(i)).add(1, i), _ = E(o, I(i));
2157
2159
  for (; h.isBefore(_); )
2158
2160
  e.push(h.format(I(i))), h.add(1, i);
@@ -2167,7 +2169,7 @@ function at({
2167
2169
  const e = lt({
2168
2170
  values: s,
2169
2171
  timerange: t
2170
- }), i = [], r = re({
2172
+ }), i = [], r = ae({
2171
2173
  values: e,
2172
2174
  groupBy: "all"
2173
2175
  });
@@ -2227,7 +2229,7 @@ function ot({
2227
2229
  function ct(s) {
2228
2230
  return s.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
2229
2231
  }
2230
- function ne(s, t) {
2232
+ function re(s, t) {
2231
2233
  let e = !1;
2232
2234
  const i = I(t);
2233
2235
  if (s.length === 0)
@@ -2240,7 +2242,7 @@ function ne(s, t) {
2240
2242
  }
2241
2243
  return e;
2242
2244
  }
2243
- function re({
2245
+ function ae({
2244
2246
  values: s,
2245
2247
  groupBy: t
2246
2248
  }) {
@@ -2286,11 +2288,11 @@ const dt = {
2286
2288
  }), a = [];
2287
2289
  s.y.forEach((c) => {
2288
2290
  Object.keys(r).forEach((f) => {
2289
- const y = r[f].label, p = r[f].entries;
2291
+ const p = r[f].label, y = r[f].entries;
2290
2292
  if (c.label) {
2291
2293
  const m = A({
2292
2294
  fieldName: c.label,
2293
- values: p,
2295
+ values: y,
2294
2296
  fields: e
2295
2297
  });
2296
2298
  Object.keys(m).forEach((w) => {
@@ -2298,13 +2300,13 @@ const dt = {
2298
2300
  entries: P,
2299
2301
  fields: e,
2300
2302
  fieldName: c.name
2301
- }), le = V({
2303
+ }), oe = V({
2302
2304
  values: z,
2303
2305
  operator: c.operator
2304
2306
  });
2305
2307
  a.push({
2306
- x: y || !1,
2307
- value: le,
2308
+ x: p || !1,
2309
+ value: oe,
2308
2310
  type: x,
2309
2311
  operator: c.operator,
2310
2312
  stacked: c.stacked
@@ -2312,7 +2314,7 @@ const dt = {
2312
2314
  });
2313
2315
  } else {
2314
2316
  const m = N({
2315
- entries: p,
2317
+ entries: y,
2316
2318
  fields: e,
2317
2319
  fieldName: c.name
2318
2320
  }), w = V({
@@ -2320,9 +2322,9 @@ const dt = {
2320
2322
  operator: c.operator
2321
2323
  });
2322
2324
  a.push({
2323
- x: y || !1,
2325
+ x: p || !1,
2324
2326
  value: w,
2325
- type: ae({
2327
+ type: le({
2326
2328
  yAxis: c,
2327
2329
  fields: e
2328
2330
  }),
@@ -2420,7 +2422,7 @@ function ht(s) {
2420
2422
  t = t.concat(i.entries);
2421
2423
  }), t;
2422
2424
  }
2423
- function ae({
2425
+ function le({
2424
2426
  yAxis: s,
2425
2427
  fields: t
2426
2428
  }) {
@@ -2433,15 +2435,15 @@ const Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2433
2435
  getValueForOperator: V,
2434
2436
  getValuesForYField: N,
2435
2437
  getValuesGroupedByField: A,
2436
- getYAxisFieldname: ae,
2438
+ getYAxisFieldname: le,
2437
2439
  labelsForOperator: dt,
2438
2440
  processGraphData: ut
2439
2441
  }, Symbol.toStringTag, { value: "Module" }));
2440
2442
  export {
2441
- be as Avatar,
2443
+ ye as Avatar,
2442
2444
  Se as Binary,
2443
- X as Boolean,
2444
- Q as Button,
2445
+ U as Boolean,
2446
+ X as Button,
2445
2447
  xe as ButtonGroup,
2446
2448
  D as Char,
2447
2449
  Be as CodeEditor,
@@ -2455,10 +2457,10 @@ export {
2455
2457
  G as Float,
2456
2458
  Fe as FloatTime,
2457
2459
  yt as Form,
2458
- te as Graph,
2459
- ie as GraphAxis,
2460
+ se as Graph,
2461
+ ne as GraphAxis,
2460
2462
  j as GraphChart,
2461
- se as GraphIndicator,
2463
+ ie as GraphIndicator,
2462
2464
  Ue as GraphIndicatorField,
2463
2465
  tt as GraphXAxis,
2464
2466
  et as GraphYAxis,
@@ -2470,11 +2472,11 @@ export {
2470
2472
  Te as Many2many,
2471
2473
  we as Many2one,
2472
2474
  ve as Markdown,
2473
- K as MultiCheckbox,
2475
+ Z as MultiCheckbox,
2474
2476
  J as NewLine,
2475
2477
  M as Notebook,
2476
- U as One2many,
2477
- ye as Page,
2478
+ K as One2many,
2479
+ Q as Page,
2478
2480
  ke as ProgressBar,
2479
2481
  Me as Radio,
2480
2482
  ze as Reference,