@gisce/ooui 2.21.0-alpha.2 → 2.21.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/ooui.es.js CHANGED
@@ -5,7 +5,7 @@ import { decode as me } from "html-entities";
5
5
  import { evaluateCondition as be } from "@gisce/conscheck";
6
6
  import * as Y from "txml";
7
7
  import P from "moment";
8
- const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe = ({
8
+ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), xe = ({
9
9
  entry: i,
10
10
  values: t,
11
11
  fields: e
@@ -61,18 +61,18 @@ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe
61
61
  modifiedExpectedValue: null,
62
62
  directOutcome: !1
63
63
  } : (r.modifiedValueInObject = s[i].type === "boolean" ? !!t : t, s[i].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), s[i].type === "many2one" && Array.isArray(r.modifiedValueInObject) && r.modifiedValueInObject[0] === void 0 && (r.modifiedValueInObject = !1), s[i].type === "boolean" && (e === 0 || e === 1) && (r.modifiedExpectedValue = e !== 0), r);
64
- }, xe = ({
64
+ }, pe = ({
65
65
  attrs: i,
66
66
  values: t,
67
67
  fields: e,
68
68
  widgetType: s
69
69
  }) => {
70
- const d = i.replace(/\(/g, "[").replace(/\)/g, "]").replace(/'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), _ = b(d), h = JSON.parse(_), u = {};
71
- for (const g of Object.keys(h)) {
72
- const p = h[g].map((y) => pe({ entry: y, values: t, fields: e })).every((y) => y);
73
- p ? u[g] = !0 : g === "readonly" && !p && s === "button" && (u[g] = !1);
70
+ const h = i.replace(/\(/g, "[").replace(/\)/g, "]").replace(/'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), _ = b(h), u = JSON.parse(_), d = {};
71
+ for (const f of Object.keys(u)) {
72
+ const x = u[f].map((y) => xe({ entry: y, values: t, fields: e })).every((y) => y);
73
+ x ? d[f] = !0 : f === "readonly" && !x && s === "button" && (d[f] = !1);
74
74
  }
75
- return u;
75
+ return d;
76
76
  }, we = ({
77
77
  attrs: i,
78
78
  values: t,
@@ -84,21 +84,21 @@ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe
84
84
  r.replace(/'/g, '"')
85
85
  ), l = {};
86
86
  for (const o of Object.keys(a)) {
87
- const d = be({
87
+ const h = be({
88
88
  object: t,
89
89
  condition: a[o],
90
90
  evaluateFieldComparison: ({
91
91
  fieldName: _,
92
- valueInObject: h,
93
- expectedValue: u
92
+ valueInObject: u,
93
+ expectedValue: d
94
94
  }) => H({
95
95
  fieldName: _,
96
- valueInObject: h,
97
- expectedValue: u,
96
+ valueInObject: u,
97
+ expectedValue: d,
98
98
  fields: e
99
99
  })
100
100
  });
101
- d ? l[o] = !0 : o === "readonly" && !d && s === "button" && (l[o] = !1);
101
+ h ? l[o] = !0 : o === "readonly" && !h && s === "button" && (l[o] = !1);
102
102
  }
103
103
  return l;
104
104
  } catch (r) {
@@ -114,7 +114,7 @@ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe
114
114
  fallbackMode: r = !0
115
115
  }) => {
116
116
  let a = {}, l = {};
117
- if (i.attrs && (l = xe({
117
+ if (i.attrs && (l = pe({
118
118
  attrs: i.attrs,
119
119
  values: t,
120
120
  fields: e,
@@ -141,7 +141,7 @@ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe
141
141
  attrs: void 0,
142
142
  json_attrs: void 0
143
143
  };
144
- }, D = (i) => i === 1 || i === "1" || i === !0 || i === "True" || i === "true", k = class k {
144
+ }, k = class k {
145
145
  constructor(t) {
146
146
  /**
147
147
  * Determines if widget is read only (default is undefined)
@@ -174,7 +174,7 @@ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe
174
174
  n(this, "_parsedWidgetProps", {});
175
175
  n(this, "_isFunction");
176
176
  if (this._colspan = k._defaultColspan, this._invisible = !1, t) {
177
- if (t.colspan && (this._colspan = +t.colspan), t.readonly !== void 0 && (this._readOnly = D(t.readonly)), t.invisible && (t.invisible === 1 || t.invisible === "1" || t.invisible === !0) && (this._invisible = !0), t.type && (this._type = t.type), t.context && (this._context = t.context), t.domain && (typeof t.domain != "string" ? this._domain = b(JSON.stringify(t.domain)) : this._domain = b(t.domain)), t.widget_props)
177
+ if (t.colspan && (this._colspan = +t.colspan), t.readonly !== void 0 && (t.readonly === "1" || t.readonly === 1 || t.readonly === !0 ? this._readOnly = !0 : (t.readonly === "0" || t.readonly === 0 || t.readonly === !1) && (this._readOnly = !1)), t.invisible && (t.invisible === 1 || t.invisible === "1" || t.invisible === !0) && (this._invisible = !0), t.type && (this._type = t.type), t.context && (this._context = t.context), t.domain && (typeof t.domain != "string" ? this._domain = b(JSON.stringify(t.domain)) : this._domain = b(t.domain)), t.widget_props)
178
178
  if (typeof t.widget_props == "string")
179
179
  try {
180
180
  this._parsedWidgetProps = JSON.parse(
@@ -254,7 +254,7 @@ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe
254
254
  */
255
255
  n(k, "_defaultColspan", 1);
256
256
  let C = k;
257
- class f extends C {
257
+ class g extends C {
258
258
  constructor(e) {
259
259
  super(e);
260
260
  /**
@@ -304,8 +304,7 @@ class f extends C {
304
304
  * Base type of the field
305
305
  */
306
306
  n(this, "_fieldType", "");
307
- n(this, "_autoRefresh", !1);
308
- this._activated = !0, e && (e.name && (this._id = e.name), e.type && (this._fieldType = e.fieldsWidgetType), 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 = ye(e.help_inline)), e.autorefresh && (this.autoRefresh = D(e.autorefresh)));
307
+ this._activated = !0, e && (e.name && (this._id = e.name), e.type && (this._fieldType = e.fieldsWidgetType), 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 = ye(e.help_inline)));
309
308
  }
310
309
  get id() {
311
310
  return this._id;
@@ -364,18 +363,6 @@ class f extends C {
364
363
  get fieldType() {
365
364
  return this._fieldType;
366
365
  }
367
- get autoRefresh() {
368
- return this._autoRefresh ?? !1;
369
- }
370
- set autoRefresh(e) {
371
- this._autoRefresh = e;
372
- }
373
- get readOnly() {
374
- return this.autoRefresh ? !0 : super.readOnly;
375
- }
376
- set readOnly(e) {
377
- super.readOnly = e;
378
- }
379
366
  /**
380
367
  * Returns this instance in case this id matches param id.
381
368
  * @param {string} id id (name) to find
@@ -384,14 +371,14 @@ class f extends C {
384
371
  return this._id === e ? this : null;
385
372
  }
386
373
  }
387
- class Fe extends f {
374
+ class Fe extends g {
388
375
  }
389
376
  class Q extends C {
390
377
  findById(t) {
391
378
  return null;
392
379
  }
393
380
  }
394
- class X extends f {
381
+ class X extends g {
395
382
  constructor(e) {
396
383
  super({ ...e, nolabel: !0 });
397
384
  /**
@@ -518,7 +505,7 @@ class z {
518
505
  this._rows.push([]), this._index++;
519
506
  return;
520
507
  }
521
- if (t.colspan > this._columns && (t.colspan = this._columns), t.readOnly = t.readOnly || this.readOnly, r && t instanceof f && !t.nolabel) {
508
+ if (t.colspan > this._columns && (t.colspan = this._columns), t.readOnly = t.readOnly || this.readOnly, r && t instanceof g && !t.nolabel) {
522
509
  t.colspan > 1 && (t.colspan -= 1);
523
510
  const l = new X({
524
511
  name: t.id + "_label",
@@ -623,8 +610,8 @@ const O = class O extends C {
623
610
  }
624
611
  };
625
612
  n(O, "_defaultColspan", 6);
626
- let x = O;
627
- const T = class T extends x {
613
+ let v = O;
614
+ const T = class T extends v {
628
615
  constructor(e) {
629
616
  super(e);
630
617
  n(this, "_tabPosition", "top");
@@ -648,8 +635,21 @@ const T = class T extends x {
648
635
  }
649
636
  };
650
637
  n(T, "_defaultColspan", 3);
651
- let M = T;
652
- class Ce extends x {
638
+ let j = T;
639
+ class A extends v {
640
+ constructor(e) {
641
+ super(e);
642
+ n(this, "_loading", !1);
643
+ e && e.loading && (this._loading = e.loading);
644
+ }
645
+ get loading() {
646
+ return this._loading;
647
+ }
648
+ set loading(e) {
649
+ this._loading = e;
650
+ }
651
+ }
652
+ class Ce extends A {
653
653
  constructor(e) {
654
654
  super(e);
655
655
  n(this, "_icon", null);
@@ -662,7 +662,7 @@ class Ce extends x {
662
662
  this._icon = e;
663
663
  }
664
664
  }
665
- class ke extends x {
665
+ class ke extends A {
666
666
  constructor(e) {
667
667
  super(e);
668
668
  n(this, "_icon", null);
@@ -675,7 +675,7 @@ class ke extends x {
675
675
  this._icon = e;
676
676
  }
677
677
  }
678
- class U extends f {
678
+ class U extends g {
679
679
  constructor(e) {
680
680
  super({
681
681
  ...e,
@@ -747,7 +747,7 @@ class U extends f {
747
747
  this._danger = e;
748
748
  }
749
749
  }
750
- class Oe extends x {
750
+ class Oe extends v {
751
751
  constructor(e) {
752
752
  super(e);
753
753
  n(this, "_defaultName", "");
@@ -778,7 +778,7 @@ class Oe extends x {
778
778
  return this._container.rows.flat().filter((e) => !e.invisible);
779
779
  }
780
780
  }
781
- class $ extends f {
781
+ class R extends g {
782
782
  constructor(e) {
783
783
  super(e);
784
784
  /**
@@ -821,7 +821,7 @@ class $ extends f {
821
821
  this._translatable = e;
822
822
  }
823
823
  }
824
- class B extends f {
824
+ class B extends g {
825
825
  constructor(e) {
826
826
  super(e);
827
827
  /**
@@ -885,7 +885,7 @@ class B extends f {
885
885
  this._translatable = e;
886
886
  }
887
887
  }
888
- class W extends f {
888
+ class W extends g {
889
889
  constructor(e) {
890
890
  super(e);
891
891
  /**
@@ -901,7 +901,7 @@ class W extends f {
901
901
  this._size = e;
902
902
  }
903
903
  }
904
- class Te extends f {
904
+ class Te extends g {
905
905
  constructor(e) {
906
906
  super(e);
907
907
  /**
@@ -929,17 +929,17 @@ class Te extends f {
929
929
  }
930
930
  class Pe extends B {
931
931
  }
932
- class K extends f {
932
+ class K extends g {
933
933
  constructor(t) {
934
934
  super(t);
935
935
  }
936
936
  }
937
- class We extends f {
937
+ class We extends g {
938
938
  constructor(t) {
939
939
  super(t);
940
940
  }
941
941
  }
942
- class L extends f {
942
+ class L extends g {
943
943
  constructor(e) {
944
944
  super(e);
945
945
  /**
@@ -974,21 +974,21 @@ class L extends f {
974
974
  }
975
975
  class Ee extends L {
976
976
  }
977
- class Ie extends f {
977
+ class Ie extends g {
978
978
  }
979
979
  class Se extends L {
980
980
  }
981
- class ze extends f {
981
+ class ze extends g {
982
982
  constructor(t) {
983
983
  super(t);
984
984
  }
985
985
  }
986
- class Ve extends f {
986
+ class Ve extends g {
987
987
  constructor(t) {
988
988
  super(t);
989
989
  }
990
990
  }
991
- class Z extends f {
991
+ class Z extends g {
992
992
  constructor(e) {
993
993
  super(e);
994
994
  /**
@@ -1110,7 +1110,7 @@ class Ye extends C {
1110
1110
  }
1111
1111
  class De extends W {
1112
1112
  }
1113
- class je extends f {
1113
+ class je extends g {
1114
1114
  constructor(e) {
1115
1115
  super(e);
1116
1116
  /**
@@ -1126,13 +1126,13 @@ class je extends f {
1126
1126
  this._filenameField = e;
1127
1127
  }
1128
1128
  }
1129
- class Me extends f {
1129
+ class Me extends g {
1130
1130
  get showControls() {
1131
1131
  var t;
1132
1132
  return ((t = this.parsedWidgetProps) == null ? void 0 : t.showControls) ?? !0;
1133
1133
  }
1134
1134
  }
1135
- class Ne extends f {
1135
+ class Ne extends g {
1136
1136
  constructor(t) {
1137
1137
  super(t);
1138
1138
  }
@@ -1219,7 +1219,7 @@ class Be extends W {
1219
1219
  this._height = e;
1220
1220
  }
1221
1221
  }
1222
- class ee extends f {
1222
+ class ee extends g {
1223
1223
  constructor(e) {
1224
1224
  super(e);
1225
1225
  /**
@@ -1279,7 +1279,7 @@ class Ge extends W {
1279
1279
  return this._parsedWidgetProps.colors || {};
1280
1280
  }
1281
1281
  }
1282
- class Re extends W {
1282
+ class $e extends W {
1283
1283
  constructor(e) {
1284
1284
  super(e);
1285
1285
  /**
@@ -1295,9 +1295,9 @@ class Re extends W {
1295
1295
  this._direction = e;
1296
1296
  }
1297
1297
  }
1298
- class $e extends K {
1298
+ class Re extends K {
1299
1299
  }
1300
- class qe extends f {
1300
+ class qe extends g {
1301
1301
  constructor(e) {
1302
1302
  super(e);
1303
1303
  /**
@@ -1340,12 +1340,12 @@ class te extends B {
1340
1340
  this._lang = e;
1341
1341
  }
1342
1342
  }
1343
- class Je extends f {
1343
+ class Je extends g {
1344
1344
  constructor(t) {
1345
1345
  super(t);
1346
1346
  }
1347
1347
  }
1348
- class He extends x {
1348
+ class He extends v {
1349
1349
  constructor(e) {
1350
1350
  super(e);
1351
1351
  /**
@@ -1385,7 +1385,7 @@ class He extends x {
1385
1385
  return this._container.rows.flat().filter((e) => !e.invisible);
1386
1386
  }
1387
1387
  }
1388
- class Qe extends f {
1388
+ class Qe extends g {
1389
1389
  constructor(e) {
1390
1390
  super(e);
1391
1391
  /**
@@ -1410,7 +1410,7 @@ class q extends te {
1410
1410
  n(this, "_lang", "json");
1411
1411
  }
1412
1412
  }
1413
- class Xe extends f {
1413
+ class Xe extends g {
1414
1414
  constructor(e) {
1415
1415
  super(e);
1416
1416
  n(this, "_multi", !1);
@@ -1430,19 +1430,6 @@ class Xe extends f {
1430
1430
  this._size = e;
1431
1431
  }
1432
1432
  }
1433
- class Ue extends x {
1434
- constructor(e) {
1435
- super(e);
1436
- n(this, "_loading", !1);
1437
- e && e.loading && (this._loading = e.loading);
1438
- }
1439
- get loading() {
1440
- return this._loading;
1441
- }
1442
- set loading(e) {
1443
- this._loading = e;
1444
- }
1445
- }
1446
1433
  class G {
1447
1434
  constructor() {
1448
1435
  /**
@@ -1453,7 +1440,7 @@ class G {
1453
1440
  setWidgetClass(t) {
1454
1441
  switch (t) {
1455
1442
  case "notebook":
1456
- this._widgetClass = M;
1443
+ this._widgetClass = j;
1457
1444
  break;
1458
1445
  case "page":
1459
1446
  this._widgetClass = Ce;
@@ -1465,7 +1452,7 @@ class G {
1465
1452
  this._widgetClass = X;
1466
1453
  break;
1467
1454
  case "char":
1468
- this._widgetClass = $;
1455
+ this._widgetClass = R;
1469
1456
  break;
1470
1457
  case "text":
1471
1458
  this._widgetClass = B;
@@ -1518,7 +1505,7 @@ class G {
1518
1505
  this._widgetClass = Ye;
1519
1506
  break;
1520
1507
  case "url":
1521
- this._widgetClass = $;
1508
+ this._widgetClass = R;
1522
1509
  break;
1523
1510
  case "email":
1524
1511
  this._widgetClass = Xe;
@@ -1551,13 +1538,13 @@ class G {
1551
1538
  this._widgetClass = Fe;
1552
1539
  break;
1553
1540
  case "radio":
1554
- this._widgetClass = Re;
1541
+ this._widgetClass = $e;
1555
1542
  break;
1556
1543
  case "multicheckbox":
1557
1544
  this._widgetClass = ee;
1558
1545
  break;
1559
1546
  case "switch":
1560
- this._widgetClass = $e;
1547
+ this._widgetClass = Re;
1561
1548
  break;
1562
1549
  case "steps":
1563
1550
  this._widgetClass = qe;
@@ -1584,7 +1571,7 @@ class G {
1584
1571
  this._widgetClass = q;
1585
1572
  break;
1586
1573
  case "spinner":
1587
- this._widgetClass = Ue;
1574
+ this._widgetClass = A;
1588
1575
  break;
1589
1576
  }
1590
1577
  }
@@ -1607,7 +1594,7 @@ class G {
1607
1594
  }
1608
1595
  }
1609
1596
  }
1610
- const Ke = ({
1597
+ const Ue = ({
1611
1598
  fieldName: i,
1612
1599
  values: t,
1613
1600
  fields: e
@@ -1621,18 +1608,18 @@ const Ke = ({
1621
1608
  const r = {}, a = {};
1622
1609
  for (const o of Object.keys(s))
1623
1610
  if (t.state === o) {
1624
- const d = s[o];
1625
- for (const _ of d) {
1626
- const [h, u] = _;
1627
- a[h] || (a[h] = []), a[h].push(u);
1611
+ const h = s[o];
1612
+ for (const _ of h) {
1613
+ const [u, d] = _;
1614
+ a[u] || (a[u] = []), a[u].push(d);
1628
1615
  }
1629
1616
  }
1630
1617
  for (const o of Object.keys(a)) {
1631
- const d = a[o];
1632
- r[o] = d.some((_) => _);
1618
+ const h = a[o];
1619
+ r[o] = h.some((_) => _);
1633
1620
  }
1634
1621
  return r;
1635
- }, Ze = ({
1622
+ }, Ke = ({
1636
1623
  states: i,
1637
1624
  values: t
1638
1625
  }) => {
@@ -1641,7 +1628,7 @@ const Ke = ({
1641
1628
  const e = i.split(",");
1642
1629
  return e.length === 0 ? {} : e.includes(t.state) ? {} : { invisible: !0 };
1643
1630
  };
1644
- function et({
1631
+ function Ze({
1645
1632
  values: i = {},
1646
1633
  fieldName: t,
1647
1634
  fields: e = {}
@@ -1665,30 +1652,30 @@ const ie = ({
1665
1652
  return s;
1666
1653
  if (i.trim().length === 0)
1667
1654
  return;
1668
- const u = i.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((c) => c.split(":")), g = {};
1669
- return u.forEach((c) => {
1655
+ const d = i.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((c) => c.split(":")), f = {};
1656
+ return d.forEach((c) => {
1670
1657
  const m = c[1];
1671
1658
  if (!c[1].includes("'") && c[1] !== "true" && c[1] !== "false") {
1672
- const p = et({
1659
+ const x = Ze({
1673
1660
  values: t,
1674
1661
  fields: e,
1675
1662
  fieldName: m === "active_id" ? "id" : m
1676
1663
  });
1677
- g[c[0].replace(/'/g, "")] = p || void 0;
1664
+ f[c[0].replace(/'/g, "")] = x || void 0;
1678
1665
  } else
1679
- c[1] === "true" ? g[c[0].replace(/'/g, "")] = !0 : c[1] === "false" ? g[c[0].replace(/'/g, "")] = !1 : g[c[0].replace(/'/g, "")] = c[1].replace(
1666
+ c[1] === "true" ? f[c[0].replace(/'/g, "")] = !0 : c[1] === "false" ? f[c[0].replace(/'/g, "")] = !1 : f[c[0].replace(/'/g, "")] = c[1].replace(
1680
1667
  /'/g,
1681
1668
  ""
1682
1669
  );
1683
- }), g;
1670
+ }), f;
1684
1671
  } catch {
1685
1672
  return;
1686
1673
  }
1687
1674
  }, kt = (i) => {
1688
1675
  const t = [];
1689
1676
  try {
1690
- return !i || ne(i) || typeof i != "string" ? t : se(i) !== null ? [] : (i.trim().length === 0 || i.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((u) => u.split(":")).forEach((u) => {
1691
- !u[1].includes("'") && u[1] !== "true" && u[1] !== "false" && t.push(u[1].replace(/'/g, ""));
1677
+ return !i || ne(i) || typeof i != "string" ? t : se(i) !== null ? [] : (i.trim().length === 0 || i.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((d) => d.split(":")).forEach((d) => {
1678
+ !d[1].includes("'") && d[1] !== "true" && d[1] !== "false" && t.push(d[1].replace(/'/g, ""));
1692
1679
  }), t);
1693
1680
  } catch {
1694
1681
  }
@@ -1704,19 +1691,19 @@ function se(i) {
1704
1691
  function ne(i) {
1705
1692
  return typeof i == "object" && i !== null && typeof i != "string";
1706
1693
  }
1707
- const tt = (i) => {
1694
+ const et = (i) => {
1708
1695
  const t = i.trim().replace(")", "").split("("), e = t[0], r = t[1].split(",").map((a) => a.trim());
1709
1696
  return {
1710
1697
  method: e,
1711
1698
  args: r
1712
1699
  };
1713
1700
  };
1714
- function it(i) {
1701
+ function tt(i) {
1715
1702
  const t = [];
1716
1703
  function e(s) {
1717
1704
  const r = [];
1718
1705
  for (const a of s)
1719
- a instanceof x ? e(a._container.rows.flat()) : r.push(a);
1706
+ a instanceof v ? e(a._container.rows.flat()) : r.push(a);
1720
1707
  r.length > 0 && t.push(r);
1721
1708
  }
1722
1709
  for (const s of i)
@@ -1770,10 +1757,6 @@ class Ot {
1770
1757
  * List of invisible fields
1771
1758
  */
1772
1759
  n(this, "_invisibleFields", []);
1773
- /**
1774
- * List of autorefreshable fields
1775
- */
1776
- n(this, "_autorefreshableFields", []);
1777
1760
  /**
1778
1761
  * Context for each field in the form
1779
1762
  */
@@ -1822,9 +1805,6 @@ class Ot {
1822
1805
  set invisibleFields(t) {
1823
1806
  this._invisibleFields = t;
1824
1807
  }
1825
- get autorefreshableFields() {
1826
- return this._autorefreshableFields;
1827
- }
1828
1808
  get contextForFields() {
1829
1809
  return this._contextForFields;
1830
1810
  }
@@ -1833,17 +1813,15 @@ class Ot {
1833
1813
  }
1834
1814
  parse(t, e) {
1835
1815
  var o;
1836
- const { values: s = {}, readOnly: r = !1 } = e || {}, a = Y.parse(t).filter((d) => d.tagName === "form")[0];
1816
+ const { values: s = {}, readOnly: r = !1 } = e || {}, a = Y.parse(t).filter((h) => h.tagName === "form")[0];
1837
1817
  this._string = ((o = a.attributes) == null ? void 0 : o.string) || null, this._string && (this._string = b(this._string)), this._readOnly = r, this._context = s.id ? { active_id: s.id, active_ids: [s.id] } : {}, this._invisibleFields = [], this.parseNode({
1838
1818
  fields: a.children,
1839
1819
  container: this._container,
1840
1820
  values: s
1821
+ }), tt(this._container._rows).forEach((h) => {
1822
+ const _ = h;
1823
+ _._id && _._context && (this._contextForFields[_._id] = h._context);
1841
1824
  });
1842
- const l = it(this._container._rows);
1843
- l.forEach((d) => {
1844
- const _ = d;
1845
- _._id && _._context && (this._contextForFields[_._id] = d._context);
1846
- }), this._autorefreshableFields = l.filter((d) => d instanceof f && d.autoRefresh).map((d) => d._id);
1847
1825
  }
1848
1826
  parseNode({
1849
1827
  fields: t,
@@ -1852,62 +1830,62 @@ class Ot {
1852
1830
  }) {
1853
1831
  const r = new G();
1854
1832
  t.filter((a) => typeof a == "object").forEach((a) => {
1855
- var w, F;
1856
- const { tagName: l, attributes: o, children: d } = a;
1857
- let _ = l, h = o;
1833
+ var p, F;
1834
+ const { tagName: l, attributes: o, children: h } = a;
1835
+ let _ = l, u = o;
1858
1836
  if (l === "field") {
1859
- const { name: v, widget: E } = o;
1837
+ const { name: w, widget: E } = o;
1860
1838
  if (E)
1861
1839
  _ = E;
1862
- else if (v) {
1863
- if (!this._fields[v])
1840
+ else if (w) {
1841
+ if (!this._fields[w])
1864
1842
  throw new Error(
1865
- `Field ${v} doesn't exist in fields defintion`
1843
+ `Field ${w} doesn't exist in fields defintion`
1866
1844
  );
1867
- _ = this._fields[v].type;
1845
+ _ = this._fields[w].type;
1868
1846
  }
1869
- h = {
1870
- ...this._fields[v],
1847
+ u = {
1848
+ ...this._fields[w],
1871
1849
  ...o,
1872
- fieldsWidgetType: this._fields[v].type
1850
+ fieldsWidgetType: this._fields[w].type
1873
1851
  };
1874
1852
  }
1875
- const u = ve({
1876
- tagAttributes: h,
1853
+ const d = ve({
1854
+ tagAttributes: u,
1877
1855
  values: s,
1878
1856
  fields: this._fields,
1879
1857
  widgetType: l
1880
1858
  });
1881
- let g;
1882
- l === "button" && h.states ? g = Ze({
1883
- states: h.states,
1859
+ let f;
1860
+ l === "button" && u.states ? f = Ke({
1861
+ states: u.states,
1884
1862
  values: s
1885
- }) : g = Ke({
1886
- fieldName: h.name,
1863
+ }) : f = Ue({
1864
+ fieldName: u.name,
1887
1865
  values: s,
1888
1866
  fields: this._fields
1889
1867
  });
1890
1868
  const c = ie({
1891
- context: h.context || ((w = this._fields[h.name]) == null ? void 0 : w.context),
1869
+ context: u.context || ((p = this._fields[u.name]) == null ? void 0 : p.context),
1892
1870
  values: s,
1893
1871
  fields: this._fields
1894
1872
  });
1895
- h.on_change && (this._onChangeFields[h.name] = tt(
1896
- h.on_change
1873
+ u.on_change && (this._onChangeFields[u.name] = et(
1874
+ u.on_change
1897
1875
  ));
1898
1876
  let m;
1899
- J(h.domain) ? m = h.domain : J((F = this._fields[h.name]) == null ? void 0 : F.domain) && (m = this._fields[h.name].domain), this._keyIdx = this._keyIdx + 1;
1900
- const p = {
1901
- ...u,
1902
- ...g,
1877
+ J(u.domain) ? m = u.domain : J((F = this._fields[u.name]) == null ? void 0 : F.domain) && (m = this._fields[u.name].domain), this._keyIdx = this._keyIdx + 1;
1878
+ const x = {
1879
+ ...d,
1880
+ ...f,
1903
1881
  context: c,
1904
1882
  domain: m,
1905
1883
  key: `${this._keyIdx}`
1906
1884
  };
1907
- e.readOnly && (p.readonly = !0);
1908
- const y = r.createWidget(_, p);
1909
- y.invisible && y instanceof f && this._invisibleFields.push(p.name), y instanceof x && this.parseNode({
1910
- fields: d,
1885
+ e.readOnly && (x.readonly = !0);
1886
+ const y = r.createWidget(_, x);
1887
+ y.invisible && y instanceof g && this._invisibleFields.push(x.name), y instanceof v && this.parseNode({
1888
+ fields: h,
1911
1889
  container: y.container,
1912
1890
  values: s
1913
1891
  }), y instanceof U && y.readOnly !== void 0 || (y.readOnly = y.readOnly || this.readOnly), e.addWidget(y);
@@ -1949,10 +1927,6 @@ class Tt {
1949
1927
  * Context for each field in the form
1950
1928
  */
1951
1929
  n(this, "_contextForFields", {});
1952
- /**
1953
- * List of autorefreshable fields
1954
- */
1955
- n(this, "_autorefreshableFields", []);
1956
1930
  /**
1957
1931
  * Is infinite
1958
1932
  */
@@ -1986,9 +1960,6 @@ class Tt {
1986
1960
  set contextForFields(t) {
1987
1961
  this._contextForFields = t;
1988
1962
  }
1989
- get autorefreshableFields() {
1990
- return this._autorefreshableFields;
1991
- }
1992
1963
  get infinite() {
1993
1964
  return this._infinite;
1994
1965
  }
@@ -2003,30 +1974,29 @@ class Tt {
2003
1974
  const { tagName: a, attributes: l } = r;
2004
1975
  let o = null;
2005
1976
  if (a === "field") {
2006
- const { name: d, widget: _ } = l;
2007
- let h = l;
2008
- if (d) {
2009
- if (!this._fields[d])
2010
- throw new Error(`Field ${d} doesn't exist in fields defintion`);
2011
- const u = this._fields[d];
2012
- o = u.type, (Array.isArray(u == null ? void 0 : u.domain) && (u == null ? void 0 : u.domain.length) === 0 || (u == null ? void 0 : u.domain) === !1) && l.domain && l.domain.length > 0 && delete u.domain;
2013
- const g = ie({
2014
- context: l.context || u.context,
1977
+ const { name: h, widget: _ } = l;
1978
+ let u = l;
1979
+ if (h) {
1980
+ if (!this._fields[h])
1981
+ throw new Error(`Field ${h} doesn't exist in fields defintion`);
1982
+ const d = this._fields[h];
1983
+ o = d.type, (Array.isArray(d == null ? void 0 : d.domain) && (d == null ? void 0 : d.domain.length) === 0 || (d == null ? void 0 : d.domain) === !1) && l.domain && l.domain.length > 0 && delete d.domain;
1984
+ const f = ie({
1985
+ context: l.context || d.context,
2015
1986
  values: {},
2016
1987
  fields: this._fields
2017
1988
  });
2018
- h = {
2019
- ...u,
1989
+ u = {
1990
+ ...d,
2020
1991
  ...l,
2021
- fieldsWidgetType: u == null ? void 0 : u.type,
2022
- context: g
2023
- }, this._contextForFields[d] = g;
1992
+ fieldsWidgetType: d == null ? void 0 : d.type,
1993
+ context: f
1994
+ }, this._contextForFields[h] = f;
2024
1995
  }
2025
- if (_ && (o = _), !h.invisible) {
2026
- const u = s.createWidget(o, h);
2027
- this._columns.push(u);
1996
+ if (_ && (o = _), !u.invisible) {
1997
+ const d = s.createWidget(o, u);
1998
+ this._columns.push(d);
2028
1999
  }
2029
- D(h.autorefresh) && this._autorefreshableFields.push(d);
2030
2000
  }
2031
2001
  });
2032
2002
  }
@@ -2038,7 +2008,7 @@ class Tt {
2038
2008
  return this._columns.find((e) => e.findById ? e.findById(t) : !1);
2039
2009
  }
2040
2010
  }
2041
- const st = {
2011
+ const it = {
2042
2012
  text: "text",
2043
2013
  many2one: "many2one",
2044
2014
  char: "char",
@@ -2099,7 +2069,7 @@ class Pt {
2099
2069
  colspan: 2
2100
2070
  }, { type: a, widget: l } = r;
2101
2071
  let o = l ?? a;
2102
- return st[o] === void 0 && (o = a), e.createWidget(o, r);
2072
+ return it[o] === void 0 && (o = a), e.createWidget(o, r);
2103
2073
  });
2104
2074
  }
2105
2075
  /**
@@ -2119,14 +2089,14 @@ const Wt = ({
2119
2089
  if (!Array.isArray(s))
2120
2090
  return;
2121
2091
  const [r, a, l] = s;
2122
- let o, d;
2123
- r.indexOf(".") !== -1 ? (o = r.substr(0, r.indexOf(".")), d = r.substr(
2092
+ let o, h;
2093
+ r.indexOf(".") !== -1 ? (o = r.substr(0, r.indexOf(".")), h = r.substr(
2124
2094
  r.indexOf(".") + 1,
2125
2095
  r.length - 1
2126
- )) : (o = r, d = "id"), o === t && e.push([d, a, l]);
2096
+ )) : (o = r, h = "id"), o === t && e.push([h, a, l]);
2127
2097
  }), e;
2128
2098
  }, Et = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((t) => t.trim()).filter((t) => !t.includes("'"));
2129
- class nt {
2099
+ class st {
2130
2100
  constructor(t) {
2131
2101
  n(this, "_action_id", null);
2132
2102
  n(this, "_position", null);
@@ -2147,7 +2117,7 @@ class It {
2147
2117
  this._string = e.attributes.string || null;
2148
2118
  const { children: s } = e;
2149
2119
  s.forEach((r) => {
2150
- r.tagName === "dashboard_item" && this._items.push(new nt(r.attributes));
2120
+ r.tagName === "dashboard_item" && this._items.push(new st(r.attributes));
2151
2121
  });
2152
2122
  }
2153
2123
  get string() {
@@ -2185,6 +2155,7 @@ class re {
2185
2155
  return this._y_range;
2186
2156
  }
2187
2157
  }
2158
+ const nt = (i) => i === 1 || i === "1" || i === !0 || i === "True";
2188
2159
  class ae extends re {
2189
2160
  constructor(e, s) {
2190
2161
  super(s);
@@ -2193,7 +2164,7 @@ class ae extends re {
2193
2164
  n(this, "_totalDomain", null);
2194
2165
  n(this, "_showPercent", !1);
2195
2166
  n(this, "_suffix", null);
2196
- this._type = e, this._color = s.attributes.color || null, this._color && (this._color = b(this._color)), this._icon = s.attributes.icon || null, this._icon && (this._icon = b(this._icon)), this._suffix = s.attributes.suffix || null, this._totalDomain = b(s.attributes.totalDomain) || null, this._showPercent = D(s.attributes.showPercent);
2167
+ this._type = e, this._color = s.attributes.color || null, this._color && (this._color = b(this._color)), this._icon = s.attributes.icon || null, this._icon && (this._icon = b(this._icon)), this._suffix = s.attributes.suffix || null, this._totalDomain = b(s.attributes.totalDomain) || null, this._showPercent = nt(s.attributes.showPercent);
2197
2168
  }
2198
2169
  get color() {
2199
2170
  return this._color;
@@ -2236,7 +2207,7 @@ const at = (i) => {
2236
2207
  let e;
2237
2208
  if (i.forEach((s) => {
2238
2209
  if (s.tagName === "field") {
2239
- const r = s.attributes.axis, a = s.attributes.operator, l = s.attributes.name, o = s.attributes.label || void 0, d = s.attributes.stacked || void 0;
2210
+ const r = s.attributes.axis, a = s.attributes.operator, l = s.attributes.name, o = s.attributes.label || void 0, h = s.attributes.stacked || void 0;
2240
2211
  if (!r)
2241
2212
  throw new Error(`Field ${l} doesn't have an axis`);
2242
2213
  if (!l)
@@ -2248,7 +2219,7 @@ const at = (i) => {
2248
2219
  name: l,
2249
2220
  operator: a,
2250
2221
  label: o,
2251
- stacked: d
2222
+ stacked: h
2252
2223
  })
2253
2224
  );
2254
2225
  }
@@ -2261,7 +2232,7 @@ const at = (i) => {
2261
2232
  y: t
2262
2233
  };
2263
2234
  };
2264
- class j extends re {
2235
+ class D extends re {
2265
2236
  constructor(e, s) {
2266
2237
  super(s);
2267
2238
  n(this, "_x");
@@ -2280,9 +2251,9 @@ class j extends re {
2280
2251
  const lt = {
2281
2252
  indicator: ae,
2282
2253
  indicatorField: rt,
2283
- line: j,
2284
- bar: j,
2285
- pie: j
2254
+ line: D,
2255
+ bar: D,
2256
+ pie: D
2286
2257
  }, St = (i) => {
2287
2258
  const t = Y.parse(i).filter((r) => r.tagName === "graph")[0], e = t.attributes.type;
2288
2259
  if (!e)
@@ -2339,7 +2310,7 @@ const dt = ({ ooui: i }) => {
2339
2310
  s.operator !== "count" && !e.includes(s.name) && e.push(s.name), s.label && !e.includes(s.label) && e.push(s.label);
2340
2311
  }), e) : [];
2341
2312
  };
2342
- function R({
2313
+ function $({
2343
2314
  fields: i,
2344
2315
  values: t,
2345
2316
  fieldName: e
@@ -2358,7 +2329,7 @@ function R({
2358
2329
  const zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2359
2330
  __proto__: null,
2360
2331
  getFieldsToRetrieve: dt,
2361
- getValueAndLabelForField: R
2332
+ getValueAndLabelForField: $
2362
2333
  }, Symbol.toStringTag, { value: "Module" }));
2363
2334
  function ut({
2364
2335
  values: i,
@@ -2386,15 +2357,15 @@ function ht({
2386
2357
  groupBy: "type-stacked"
2387
2358
  }), a = `${t}s`;
2388
2359
  return Object.keys(r).forEach((o) => {
2389
- const d = r[o];
2390
- for (let _ = 0; _ < d.length; _++) {
2391
- const h = d[_];
2392
- if (s.push(h), _ === d.length - 1)
2360
+ const h = r[o];
2361
+ for (let _ = 0; _ < h.length; _++) {
2362
+ const u = h[_];
2363
+ if (s.push(u), _ === h.length - 1)
2393
2364
  return;
2394
- const u = h.x, g = d[_ + 1].x;
2395
- if (!oe([u, g], a)) {
2365
+ const d = u.x, f = h[_ + 1].x;
2366
+ if (!oe([d, f], a)) {
2396
2367
  const c = _t({
2397
- dates: [u, g],
2368
+ dates: [d, f],
2398
2369
  timerange: t,
2399
2370
  interval: e
2400
2371
  });
@@ -2402,13 +2373,13 @@ function ht({
2402
2373
  c.map((m) => ({
2403
2374
  x: m,
2404
2375
  value: 0,
2405
- type: h.type,
2406
- stacked: h.stacked
2376
+ type: u.type,
2377
+ stacked: u.stacked
2407
2378
  }))
2408
2379
  );
2409
2380
  }
2410
2381
  }
2411
- }), s.sort((o, d) => o.x < d.x ? -1 : o.x > d.x ? 1 : 0);
2382
+ }), s.sort((o, h) => o.x < h.x ? -1 : o.x > h.x ? 1 : 0);
2412
2383
  }
2413
2384
  function _t({
2414
2385
  dates: i,
@@ -2420,13 +2391,13 @@ function _t({
2420
2391
  return i;
2421
2392
  const a = i.sort((l, o) => l < o ? -1 : l > o ? 1 : 0);
2422
2393
  for (let l = 0; l < a.length - 1; l++) {
2423
- const o = a[l], d = a[l + 1];
2424
- if (!oe([o, d], r)) {
2394
+ const o = a[l], h = a[l + 1];
2395
+ if (!oe([o, h], r)) {
2425
2396
  const _ = P(o, S(r)).add(
2426
2397
  e,
2427
2398
  r
2428
- ), h = P(d, S(r));
2429
- for (; _.isBefore(h); )
2399
+ ), u = P(h, S(r));
2400
+ for (; _.isBefore(u); )
2430
2401
  s.push(_.format(S(r))), _.add(e, r);
2431
2402
  }
2432
2403
  }
@@ -2444,13 +2415,13 @@ function ft({
2444
2415
  groupBy: "all"
2445
2416
  });
2446
2417
  return Object.keys(r).forEach((a) => {
2447
- const l = r[a], o = l[0].operator === "count" ? "+" : l[0].operator, d = V({
2418
+ const l = r[a], o = l[0].operator === "count" ? "+" : l[0].operator, h = V({
2448
2419
  values: l.map((_) => _.value),
2449
2420
  operator: o
2450
2421
  });
2451
2422
  s.push({
2452
2423
  ...l[0],
2453
- value: d
2424
+ value: h
2454
2425
  });
2455
2426
  }), s;
2456
2427
  }
@@ -2545,29 +2516,29 @@ const yt = {
2545
2516
  avg: "average",
2546
2517
  min: "min",
2547
2518
  max: "max"
2548
- }, pt = ({
2519
+ }, xt = ({
2549
2520
  ooui: i,
2550
2521
  values: t,
2551
2522
  fields: e,
2552
2523
  options: s
2553
2524
  }) => {
2554
- const r = A({
2525
+ const r = N({
2555
2526
  fieldName: i.x.name,
2556
2527
  values: t,
2557
2528
  fields: e
2558
2529
  }), a = [];
2559
2530
  i.y.forEach((c) => {
2560
2531
  Object.keys(r).forEach((m) => {
2561
- const p = r[m].label, y = r[m].entries;
2532
+ const x = r[m].label, y = r[m].entries;
2562
2533
  if (c.label) {
2563
- const w = A({
2534
+ const p = N({
2564
2535
  fieldName: c.label,
2565
2536
  values: y,
2566
2537
  fields: e
2567
2538
  });
2568
- Object.keys(w).forEach((F) => {
2569
- const v = w[F].entries, E = w[F].label, he = N({
2570
- entries: v,
2539
+ Object.keys(p).forEach((F) => {
2540
+ const w = p[F].entries, E = p[F].label, he = M({
2541
+ entries: w,
2571
2542
  fields: e,
2572
2543
  fieldName: c.name
2573
2544
  }), _e = V({
@@ -2575,7 +2546,7 @@ const yt = {
2575
2546
  operator: c.operator
2576
2547
  });
2577
2548
  a.push({
2578
- x: p || !1,
2549
+ x: x || !1,
2579
2550
  value: _e,
2580
2551
  type: E,
2581
2552
  operator: c.operator,
@@ -2583,16 +2554,16 @@ const yt = {
2583
2554
  });
2584
2555
  });
2585
2556
  } else {
2586
- const w = N({
2557
+ const p = M({
2587
2558
  entries: y,
2588
2559
  fields: e,
2589
2560
  fieldName: c.name
2590
2561
  }), F = V({
2591
- values: w,
2562
+ values: p,
2592
2563
  operator: c.operator
2593
2564
  });
2594
2565
  a.push({
2595
- x: p || !1,
2566
+ x: x || !1,
2596
2567
  value: F,
2597
2568
  type: de({
2598
2569
  yAxis: c,
@@ -2607,35 +2578,35 @@ const yt = {
2607
2578
  const l = i.y.some((c) => c.label !== void 0), o = i.y.some((c) => c.stacked !== void 0);
2608
2579
  let _ = [...a.sort((c, m) => c.x < m.x ? -1 : c.x > m.x ? 1 : 0)];
2609
2580
  o && i.y.filter((c) => c.stacked !== void 0).length > 1 && (_ = _.map((c) => ({ ...c, type: `${c.type} - ${c.stacked}` })));
2610
- let h = [..._];
2611
- i.type === "pie" && h.some((c) => c.x === !1) ? h = h.map((c) => c.x === !1 ? { ...c, x: (s == null ? void 0 : s.uninformedString) || "Not informed" } : c) : _.some((c) => c.x === !1) && (h = h.filter(
2581
+ let u = [..._];
2582
+ i.type === "pie" && u.some((c) => c.x === !1) ? u = u.map((c) => c.x === !1 ? { ...c, x: (s == null ? void 0 : s.uninformedString) || "Not informed" } : c) : _.some((c) => c.x === !1) && (u = u.filter(
2612
2583
  (c) => c.x !== !1
2613
2584
  ));
2614
- let u = h;
2615
- i.timerange ? u = ut({
2616
- values: u,
2585
+ let d = u;
2586
+ i.timerange ? d = ut({
2587
+ values: d,
2617
2588
  timerange: i.timerange,
2618
2589
  interval: i.interval
2619
- }) : i.type == "pie" && (u = h.sort((c, m) => m.value - c.value));
2620
- const g = {
2621
- data: u,
2590
+ }) : i.type == "pie" && (d = u.sort((c, m) => m.value - c.value));
2591
+ const f = {
2592
+ data: d,
2622
2593
  isGroup: o || l,
2623
2594
  isStack: o
2624
2595
  };
2625
- if (i.type === "line" && i.y_range && (g.yAxisOpts = {
2596
+ if (i.type === "line" && i.y_range && (f.yAxisOpts = {
2626
2597
  mode: i.y_range
2627
2598
  }, i.y_range === "auto")) {
2628
- const { min: c, max: m } = ue(u);
2629
- g.yAxisOpts.valueOpts = { min: c, max: m };
2599
+ const { min: c, max: m } = ue(d);
2600
+ f.yAxisOpts.valueOpts = { min: c, max: m };
2630
2601
  }
2631
- return g;
2602
+ return f;
2632
2603
  };
2633
- function N({
2604
+ function M({
2634
2605
  entries: i,
2635
2606
  fieldName: t,
2636
2607
  fields: e
2637
2608
  }) {
2638
- return i.map((s) => R({
2609
+ return i.map((s) => $({
2639
2610
  fieldName: t,
2640
2611
  values: s,
2641
2612
  fields: e
@@ -2679,14 +2650,14 @@ function V({
2679
2650
  function I(i) {
2680
2651
  return Math.round((i + Number.EPSILON) * 100) / 100;
2681
2652
  }
2682
- function A({
2653
+ function N({
2683
2654
  fieldName: i,
2684
2655
  fields: t,
2685
2656
  values: e
2686
2657
  }) {
2687
2658
  const s = {};
2688
2659
  return e.forEach((r) => {
2689
- const { value: a, label: l } = R({
2660
+ const { value: a, label: l } = $({
2690
2661
  fields: t,
2691
2662
  values: r,
2692
2663
  fieldName: i
@@ -2694,7 +2665,7 @@ function A({
2694
2665
  s[a] || (s[a] = { label: l, entries: [] }), s[a].entries.push(r);
2695
2666
  }), s;
2696
2667
  }
2697
- function xt(i) {
2668
+ function pt(i) {
2698
2669
  let t = [];
2699
2670
  return Object.keys(i).forEach((e) => {
2700
2671
  const s = i[e];
@@ -2719,14 +2690,14 @@ function ue(i, t = 0.1) {
2719
2690
  }
2720
2691
  const Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2721
2692
  __proto__: null,
2722
- getAllObjectsInGroupedValues: xt,
2693
+ getAllObjectsInGroupedValues: pt,
2723
2694
  getMinMax: ue,
2724
2695
  getValueForOperator: V,
2725
- getValuesForYField: N,
2726
- getValuesGroupedByField: A,
2696
+ getValuesForYField: M,
2697
+ getValuesGroupedByField: N,
2727
2698
  getYAxisFieldname: de,
2728
2699
  labelsForOperator: yt,
2729
- processGraphData: pt
2700
+ processGraphData: xt
2730
2701
  }, Symbol.toStringTag, { value: "Module" }));
2731
2702
  export {
2732
2703
  He as Alert,
@@ -2735,23 +2706,23 @@ export {
2735
2706
  K as Boolean,
2736
2707
  U as Button,
2737
2708
  Oe as ButtonGroup,
2738
- $ as Char,
2709
+ R as Char,
2739
2710
  te as CodeEditor,
2740
2711
  Qe as Comments,
2741
2712
  z as Container,
2742
- x as ContainerWidget,
2713
+ v as ContainerWidget,
2743
2714
  It as Dashboard,
2744
- nt as DashboardItem,
2715
+ st as DashboardItem,
2745
2716
  ze as Date,
2746
2717
  Ve as DateTime,
2747
2718
  Xe as Email,
2748
- f as Field,
2719
+ g as Field,
2749
2720
  L as Float,
2750
2721
  Ee as FloatTime,
2751
2722
  Ot as Form,
2752
2723
  re as Graph,
2753
2724
  le as GraphAxis,
2754
- j as GraphChart,
2725
+ D as GraphChart,
2755
2726
  ae as GraphIndicator,
2756
2727
  rt as GraphIndicatorField,
2757
2728
  ct as GraphXAxis,
@@ -2767,19 +2738,19 @@ export {
2767
2738
  Pe as Markdown,
2768
2739
  ee as MultiCheckbox,
2769
2740
  Q as NewLine,
2770
- M as Notebook,
2741
+ j as Notebook,
2771
2742
  Z as One2many,
2772
2743
  Ce as Page,
2773
2744
  Se as ProgressBar,
2774
- Re as Radio,
2745
+ $e as Radio,
2775
2746
  De as Reference,
2776
- st as SearchFieldTypes,
2747
+ it as SearchFieldTypes,
2777
2748
  Pt as SearchFilter,
2778
2749
  W as Selection,
2779
2750
  Ye as Separator,
2780
- Ue as Spinner,
2751
+ A as Spinner,
2781
2752
  qe as Steps,
2782
- $e as Switch,
2753
+ Re as Switch,
2783
2754
  Ge as Tag,
2784
2755
  Le as Tags,
2785
2756
  B as Text,