@gisce/ooui 2.36.0 → 2.37.0-alpha.2

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
@@ -1,8 +1,8 @@
1
1
  var be = Object.defineProperty;
2
2
  var ye = (i, t, e) => t in i ? be(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var r = (i, t, e) => (ye(i, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { decode as xe } from "html-entities";
5
- import { evaluateCondition as pe } from "@gisce/conscheck";
4
+ import { decode as pe } from "html-entities";
5
+ import { evaluateCondition as xe } from "@gisce/conscheck";
6
6
  import * as D from "txml";
7
7
  import T from "moment";
8
8
  const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe = ({
@@ -41,7 +41,7 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
41
41
  default:
42
42
  return !1;
43
43
  }
44
- }, m = (i) => xe(i, { level: "xml" }), X = ({
44
+ }, m = (i) => pe(i, { level: "xml" }), X = ({
45
45
  fieldName: i,
46
46
  valueInObject: t,
47
47
  expectedValue: e,
@@ -67,12 +67,12 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
67
67
  fields: e,
68
68
  widgetType: s
69
69
  }) => {
70
- const u = i.replace(/\(/g, "[").replace(/\)/g, "]").replace(/'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), _ = m(u), h = JSON.parse(_), d = {};
70
+ const d = i.replace(/\(/g, "[").replace(/\)/g, "]").replace(/'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), _ = m(d), h = JSON.parse(_), u = {};
71
71
  for (const g of Object.keys(h)) {
72
- const x = h[g].map((y) => Fe({ entry: y, values: t, fields: e })).every((y) => y);
73
- x ? d[g] = !0 : g === "readonly" && !x && s === "button" && (d[g] = !1);
72
+ const p = h[g].map((y) => Fe({ entry: y, values: t, fields: e })).every((y) => y);
73
+ p ? u[g] = !0 : g === "readonly" && !p && s === "button" && (u[g] = !1);
74
74
  }
75
- return d;
75
+ return u;
76
76
  }, U = (i) => {
77
77
  if (i === void 0)
78
78
  return {};
@@ -95,21 +95,21 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
95
95
  n.replace(/'/g, '"')
96
96
  ), l = {};
97
97
  for (const o of Object.keys(a)) {
98
- const u = pe({
98
+ const d = xe({
99
99
  object: t,
100
100
  condition: a[o],
101
101
  evaluateFieldComparison: ({
102
102
  fieldName: _,
103
103
  valueInObject: h,
104
- expectedValue: d
104
+ expectedValue: u
105
105
  }) => X({
106
106
  fieldName: _,
107
107
  valueInObject: h,
108
- expectedValue: d,
108
+ expectedValue: u,
109
109
  fields: e
110
110
  })
111
111
  });
112
- u ? l[o] = !0 : o === "readonly" && !u && s === "button" && (l[o] = !1);
112
+ d ? l[o] = !0 : o === "readonly" && !d && s === "button" && (l[o] = !1);
113
113
  }
114
114
  return l;
115
115
  } catch (n) {
@@ -157,7 +157,7 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
157
157
  attrs: void 0,
158
158
  json_attrs: void 0
159
159
  };
160
- }, k = (i) => i === 1 || i === "1" || i === !0 || i === "True" || i === "true", O = class O {
160
+ }, k = (i) => i === 1 || i === "1" || i === !0 || i === "True" || i === "true", P = class P {
161
161
  constructor(t) {
162
162
  /**
163
163
  * Determines if widget is read only (default is undefined)
@@ -194,13 +194,13 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
194
194
  * Base type of the field
195
195
  */
196
196
  r(this, "_fieldType", "");
197
- this._colspan = O._defaultColspan, this._invisible = !1, t && (t.colspan && (this._colspan = +t.colspan), t.readonly !== void 0 && (this._readOnly = k(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 = m(JSON.stringify(t.domain)) : this._domain = m(t.domain)), t.type && (this._fieldType = t.fieldsWidgetType), t.widget_props && (this._parsedWidgetProps = U(t.widget_props)), t.key && (this._key = t.key), t.is_function && (this._isFunction = t.is_function), t.is_sortable && (this._isSortable = t.is_sortable));
197
+ this._colspan = P._defaultColspan, this._invisible = !1, t && (t.colspan && (this._colspan = +t.colspan), t.readonly !== void 0 && (this._readOnly = k(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 = m(JSON.stringify(t.domain)) : this._domain = m(t.domain)), t.type && (this._fieldType = t.fieldsWidgetType), t.widget_props && (this._parsedWidgetProps = U(t.widget_props)), t.key && (this._key = t.key), t.is_function && (this._isFunction = t.is_function), t.is_sortable && (this._isSortable = t.is_sortable));
198
198
  }
199
199
  static get defaultColspan() {
200
- return O._defaultColspan;
200
+ return P._defaultColspan;
201
201
  }
202
202
  static set defaultColspan(t) {
203
- O._defaultColspan = t;
203
+ P._defaultColspan = t;
204
204
  }
205
205
  get readOnly() {
206
206
  return this._readOnly;
@@ -266,8 +266,8 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
266
266
  /**
267
267
  * Default colspan
268
268
  */
269
- r(O, "_defaultColspan", 1);
270
- let C = O;
269
+ r(P, "_defaultColspan", 1);
270
+ let C = P;
271
271
  class f extends C {
272
272
  constructor(e) {
273
273
  super(e);
@@ -571,7 +571,7 @@ class V {
571
571
  }), e;
572
572
  }
573
573
  }
574
- const P = class P extends C {
574
+ const O = class O extends C {
575
575
  constructor(e) {
576
576
  super(e);
577
577
  /**
@@ -594,7 +594,7 @@ const P = class P extends C {
594
594
  r(this, "_label", "");
595
595
  this._container = new V(
596
596
  e == null ? void 0 : e.col,
597
- P._defaultColspan,
597
+ O._defaultColspan,
598
598
  this.readOnly,
599
599
  e == null ? void 0 : e.key
600
600
  ), e && (e.name && (this._id = e.name), e.colspan ? this._container.colspan = +e.colspan : this._mustExpand = !0, e.string && (this._label = m(e.string)));
@@ -606,10 +606,10 @@ const P = class P extends C {
606
606
  this._id = e;
607
607
  }
608
608
  static get defaultColspan() {
609
- return P._defaultColspan;
609
+ return O._defaultColspan;
610
610
  }
611
611
  static set defaultColspan(e) {
612
- P._defaultColspan = e;
612
+ O._defaultColspan = e;
613
613
  }
614
614
  get container() {
615
615
  return this._container;
@@ -643,8 +643,8 @@ const P = class P extends C {
643
643
  return e === this.id ? this : this.container.findById(e);
644
644
  }
645
645
  };
646
- r(P, "_defaultColspan", 6);
647
- let w = P;
646
+ r(O, "_defaultColspan", 6);
647
+ let w = O;
648
648
  const W = class W extends w {
649
649
  constructor(e) {
650
650
  super(e);
@@ -683,7 +683,7 @@ class R extends w {
683
683
  this._loading = e;
684
684
  }
685
685
  }
686
- class Oe extends R {
686
+ class Pe extends R {
687
687
  constructor(e) {
688
688
  super(e);
689
689
  r(this, "_icon", null);
@@ -696,7 +696,7 @@ class Oe extends R {
696
696
  this._icon = e;
697
697
  }
698
698
  }
699
- class Pe extends R {
699
+ class Oe extends R {
700
700
  constructor(e) {
701
701
  var s;
702
702
  super(e);
@@ -833,6 +833,8 @@ class We extends w {
833
833
  return this._container.rows.flat().filter((e) => !e.invisible);
834
834
  }
835
835
  }
836
+ class Te extends f {
837
+ }
836
838
  class A extends f {
837
839
  constructor(e) {
838
840
  super(e);
@@ -956,7 +958,7 @@ class z extends f {
956
958
  this._size = e;
957
959
  }
958
960
  }
959
- class Te extends f {
961
+ class ze extends f {
960
962
  constructor(e) {
961
963
  super(e);
962
964
  /**
@@ -991,14 +993,14 @@ class Te extends f {
991
993
  return this.parsedWidgetProps.showMenu;
992
994
  }
993
995
  }
994
- class ze extends L {
996
+ class Se extends L {
995
997
  }
996
998
  class te extends f {
997
999
  constructor(t) {
998
1000
  super(t);
999
1001
  }
1000
1002
  }
1001
- class Se extends f {
1003
+ class Ie extends f {
1002
1004
  constructor(t) {
1003
1005
  super(t);
1004
1006
  }
@@ -1036,18 +1038,18 @@ class G extends f {
1036
1038
  this._decimalDigits = e;
1037
1039
  }
1038
1040
  }
1039
- class Ie extends G {
1041
+ class Ee extends G {
1040
1042
  }
1041
- class Ee extends f {
1043
+ class Ve extends f {
1042
1044
  }
1043
- class Ve extends G {
1045
+ class Ye extends G {
1044
1046
  }
1045
- class Ye extends f {
1047
+ class De extends f {
1046
1048
  constructor(t) {
1047
1049
  super(t);
1048
1050
  }
1049
1051
  }
1050
- class De extends f {
1052
+ class je extends f {
1051
1053
  constructor(e) {
1052
1054
  super(e);
1053
1055
  r(this, "_timezone");
@@ -1154,7 +1156,7 @@ class ie extends f {
1154
1156
  this._infinite = e;
1155
1157
  }
1156
1158
  }
1157
- class je extends C {
1159
+ class Me extends C {
1158
1160
  constructor(e) {
1159
1161
  super(e);
1160
1162
  /**
@@ -1180,9 +1182,9 @@ class je extends C {
1180
1182
  return null;
1181
1183
  }
1182
1184
  }
1183
- class Me extends z {
1185
+ class Ae extends z {
1184
1186
  }
1185
- class Ae extends f {
1187
+ class Ne extends f {
1186
1188
  constructor(e) {
1187
1189
  super(e);
1188
1190
  /**
@@ -1198,18 +1200,18 @@ class Ae extends f {
1198
1200
  this._filenameField = e;
1199
1201
  }
1200
1202
  }
1201
- class Ne extends f {
1203
+ class Be extends f {
1202
1204
  get showControls() {
1203
1205
  var t;
1204
1206
  return ((t = this.parsedWidgetProps) == null ? void 0 : t.showControls) ?? !0;
1205
1207
  }
1206
1208
  }
1207
- class Be extends f {
1209
+ class Re extends f {
1208
1210
  constructor(t) {
1209
1211
  super(t);
1210
1212
  }
1211
1213
  }
1212
- class Re extends ie {
1214
+ class Le extends ie {
1213
1215
  constructor(e) {
1214
1216
  super(e);
1215
1217
  /**
@@ -1241,7 +1243,7 @@ class Re extends ie {
1241
1243
  return this.parsedWidgetProps.colorField;
1242
1244
  }
1243
1245
  }
1244
- class Le extends z {
1246
+ class Ge extends z {
1245
1247
  constructor(e) {
1246
1248
  super(e);
1247
1249
  r(this, "_nolabel", !0);
@@ -1368,9 +1370,9 @@ class se extends f {
1368
1370
  this._columns = e;
1369
1371
  }
1370
1372
  }
1371
- class Ge extends se {
1373
+ class $e extends se {
1372
1374
  }
1373
- class $e extends z {
1375
+ class qe extends z {
1374
1376
  get colors() {
1375
1377
  return this._parsedWidgetProps.colors || {};
1376
1378
  }
@@ -1379,7 +1381,7 @@ class $e extends z {
1379
1381
  return ((t = this._parsedWidgetProps) == null ? void 0 : t.colorField) || null;
1380
1382
  }
1381
1383
  }
1382
- class qe extends z {
1384
+ class Je extends z {
1383
1385
  constructor(e) {
1384
1386
  super(e);
1385
1387
  /**
@@ -1395,9 +1397,9 @@ class qe extends z {
1395
1397
  this._direction = e;
1396
1398
  }
1397
1399
  }
1398
- class Je extends te {
1400
+ class He extends te {
1399
1401
  }
1400
- class He extends f {
1402
+ class Qe extends f {
1401
1403
  constructor(e) {
1402
1404
  super(e);
1403
1405
  /**
@@ -1440,12 +1442,12 @@ class re extends L {
1440
1442
  this._lang = e;
1441
1443
  }
1442
1444
  }
1443
- class Qe extends f {
1445
+ class Xe extends f {
1444
1446
  constructor(t) {
1445
1447
  super(t);
1446
1448
  }
1447
1449
  }
1448
- class Xe extends w {
1450
+ class Ue extends w {
1449
1451
  constructor(e) {
1450
1452
  super(e);
1451
1453
  /**
@@ -1485,7 +1487,7 @@ class Xe extends w {
1485
1487
  return this._container.rows.flat().filter((e) => !e.invisible);
1486
1488
  }
1487
1489
  }
1488
- class Ue extends f {
1490
+ class Ke extends f {
1489
1491
  constructor(e) {
1490
1492
  super(e);
1491
1493
  /**
@@ -1510,7 +1512,7 @@ class H extends re {
1510
1512
  r(this, "_lang", "json");
1511
1513
  }
1512
1514
  }
1513
- class Ke extends f {
1515
+ class Ze extends f {
1514
1516
  constructor(e) {
1515
1517
  super(e);
1516
1518
  r(this, "_multi", !1);
@@ -1530,7 +1532,7 @@ class Ke extends f {
1530
1532
  this._size = e;
1531
1533
  }
1532
1534
  }
1533
- class Ze extends w {
1535
+ class et extends w {
1534
1536
  constructor(e) {
1535
1537
  super(e);
1536
1538
  r(this, "_autoPlay", !0);
@@ -1546,11 +1548,25 @@ class Ze extends w {
1546
1548
  return this._container.rows.flat().filter((e) => !e.invisible);
1547
1549
  }
1548
1550
  }
1549
- class et extends A {
1551
+ class tt extends A {
1550
1552
  get showText() {
1551
1553
  return this.parsedWidgetProps.show_text ?? !0;
1552
1554
  }
1553
1555
  }
1556
+ class it extends f {
1557
+ get width() {
1558
+ var t;
1559
+ return (t = this.parsedWidgetProps) == null ? void 0 : t.width;
1560
+ }
1561
+ get border() {
1562
+ var t;
1563
+ return ((t = this.parsedWidgetProps) == null ? void 0 : t.border) ?? !1;
1564
+ }
1565
+ get showValue() {
1566
+ var t;
1567
+ return console.log(this.parsedWidgetProps), ((t = this.parsedWidgetProps) == null ? void 0 : t.showValue) ?? !1;
1568
+ }
1569
+ }
1554
1570
  class $ {
1555
1571
  constructor() {
1556
1572
  /**
@@ -1564,10 +1580,10 @@ class $ {
1564
1580
  this._widgetClass = M;
1565
1581
  break;
1566
1582
  case "page":
1567
- this._widgetClass = Oe;
1583
+ this._widgetClass = Pe;
1568
1584
  break;
1569
1585
  case "group":
1570
- this._widgetClass = Pe;
1586
+ this._widgetClass = Oe;
1571
1587
  break;
1572
1588
  case "label":
1573
1589
  this._widgetClass = Z;
@@ -1584,35 +1600,38 @@ class $ {
1584
1600
  case "buttonGroup":
1585
1601
  this._widgetClass = We;
1586
1602
  break;
1603
+ case "action_buttons":
1604
+ this._widgetClass = Te;
1605
+ break;
1587
1606
  case "selection":
1588
1607
  this._widgetClass = z;
1589
1608
  break;
1590
1609
  case "many2one":
1591
- this._widgetClass = Te;
1610
+ this._widgetClass = ze;
1592
1611
  break;
1593
1612
  case "boolean":
1594
1613
  this._widgetClass = te;
1595
1614
  break;
1596
1615
  case "integer":
1597
- this._widgetClass = Se;
1616
+ this._widgetClass = Ie;
1598
1617
  break;
1599
1618
  case "float":
1600
1619
  this._widgetClass = G;
1601
1620
  break;
1602
1621
  case "float_time":
1603
- this._widgetClass = Ie;
1622
+ this._widgetClass = Ee;
1604
1623
  break;
1605
1624
  case "date":
1606
- this._widgetClass = Ye;
1625
+ this._widgetClass = De;
1607
1626
  break;
1608
1627
  case "datetime":
1609
- this._widgetClass = De;
1628
+ this._widgetClass = je;
1610
1629
  break;
1611
1630
  case "progressbar":
1612
- this._widgetClass = Ve;
1631
+ this._widgetClass = Ye;
1613
1632
  break;
1614
1633
  case "markdown":
1615
- this._widgetClass = ze;
1634
+ this._widgetClass = Se;
1616
1635
  break;
1617
1636
  case "many2many":
1618
1637
  case "one2many":
@@ -1623,67 +1642,67 @@ class $ {
1623
1642
  this._widgetClass = K;
1624
1643
  break;
1625
1644
  case "separator":
1626
- this._widgetClass = je;
1645
+ this._widgetClass = Me;
1627
1646
  break;
1628
1647
  case "url":
1629
1648
  this._widgetClass = A;
1630
1649
  break;
1631
1650
  case "email":
1632
- this._widgetClass = Ke;
1651
+ this._widgetClass = Ze;
1633
1652
  break;
1634
1653
  case "reference":
1635
- this._widgetClass = Me;
1654
+ this._widgetClass = Ae;
1636
1655
  break;
1637
1656
  case "binary":
1638
- this._widgetClass = Ae;
1657
+ this._widgetClass = Ne;
1639
1658
  break;
1640
1659
  case "image":
1641
- this._widgetClass = Ne;
1660
+ this._widgetClass = Be;
1642
1661
  break;
1643
1662
  case "fiber_grid":
1644
- this._widgetClass = Be;
1663
+ this._widgetClass = Re;
1645
1664
  break;
1646
1665
  case "timeline":
1647
- this._widgetClass = Re;
1666
+ this._widgetClass = Le;
1648
1667
  break;
1649
1668
  case "indicator":
1650
- this._widgetClass = Le;
1669
+ this._widgetClass = Ge;
1651
1670
  break;
1652
1671
  case "tags":
1653
- this._widgetClass = Ge;
1672
+ this._widgetClass = $e;
1654
1673
  break;
1655
1674
  case "tag":
1656
- this._widgetClass = $e;
1675
+ this._widgetClass = qe;
1657
1676
  break;
1658
1677
  case "avatar":
1659
1678
  this._widgetClass = ke;
1660
1679
  break;
1661
1680
  case "radio":
1662
- this._widgetClass = qe;
1681
+ this._widgetClass = Je;
1663
1682
  break;
1664
1683
  case "multicheckbox":
1665
1684
  this._widgetClass = se;
1666
1685
  break;
1667
1686
  case "switch":
1668
- this._widgetClass = Je;
1687
+ this._widgetClass = He;
1669
1688
  break;
1670
1689
  case "steps":
1671
- this._widgetClass = He;
1690
+ this._widgetClass = Qe;
1672
1691
  break;
1673
1692
  case "codeeditor":
1674
1693
  this._widgetClass = re;
1675
1694
  break;
1676
1695
  case "time":
1677
- this._widgetClass = Qe;
1696
+ this._widgetClass = Xe;
1678
1697
  break;
1679
1698
  case "html_preview":
1680
- this._widgetClass = Ee;
1699
+ this._widgetClass = Ve;
1681
1700
  break;
1682
1701
  case "alert":
1683
- this._widgetClass = Xe;
1702
+ this._widgetClass = Ue;
1684
1703
  break;
1685
1704
  case "comments_timeline":
1686
- this._widgetClass = Ue;
1705
+ this._widgetClass = Ke;
1687
1706
  break;
1688
1707
  case "json":
1689
1708
  this._widgetClass = H;
@@ -1695,10 +1714,13 @@ class $ {
1695
1714
  this._widgetClass = R;
1696
1715
  break;
1697
1716
  case "carousel":
1698
- this._widgetClass = Ze;
1717
+ this._widgetClass = et;
1699
1718
  break;
1700
1719
  case "colorPicker":
1701
- this._widgetClass = et;
1720
+ this._widgetClass = tt;
1721
+ break;
1722
+ case "qrcode":
1723
+ this._widgetClass = it;
1702
1724
  break;
1703
1725
  }
1704
1726
  }
@@ -1721,7 +1743,7 @@ class $ {
1721
1743
  }
1722
1744
  }
1723
1745
  }
1724
- const tt = ({
1746
+ const st = ({
1725
1747
  fieldName: i,
1726
1748
  values: t,
1727
1749
  fields: e
@@ -1735,18 +1757,18 @@ const tt = ({
1735
1757
  const n = {}, a = {};
1736
1758
  for (const o of Object.keys(s))
1737
1759
  if (t.state === o) {
1738
- const u = s[o];
1739
- for (const _ of u) {
1740
- const [h, d] = _;
1741
- a[h] || (a[h] = []), a[h].push(d);
1760
+ const d = s[o];
1761
+ for (const _ of d) {
1762
+ const [h, u] = _;
1763
+ a[h] || (a[h] = []), a[h].push(u);
1742
1764
  }
1743
1765
  }
1744
1766
  for (const o of Object.keys(a)) {
1745
- const u = a[o];
1746
- n[o] = u.some((_) => _);
1767
+ const d = a[o];
1768
+ n[o] = d.some((_) => _);
1747
1769
  }
1748
1770
  return n;
1749
- }, it = ({
1771
+ }, rt = ({
1750
1772
  states: i,
1751
1773
  values: t
1752
1774
  }) => {
@@ -1755,7 +1777,7 @@ const tt = ({
1755
1777
  const e = i.split(",");
1756
1778
  return e.length === 0 ? {} : e.includes(t.state) ? {} : { invisible: !0 };
1757
1779
  };
1758
- function st({
1780
+ function nt({
1759
1781
  values: i = {},
1760
1782
  fieldName: t,
1761
1783
  fields: e = {}
@@ -1779,16 +1801,16 @@ const ne = ({
1779
1801
  return s;
1780
1802
  if (i.trim().length === 0)
1781
1803
  return;
1782
- 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(":")), g = {};
1783
- return d.forEach((c) => {
1804
+ 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 = {};
1805
+ return u.forEach((c) => {
1784
1806
  const b = c[1];
1785
1807
  if (!c[1].includes("'") && c[1] !== "true" && c[1] !== "false") {
1786
- const x = st({
1808
+ const p = nt({
1787
1809
  values: t,
1788
1810
  fields: e,
1789
1811
  fieldName: b === "active_id" ? "id" : b
1790
1812
  });
1791
- g[c[0].replace(/'/g, "")] = x || void 0;
1813
+ g[c[0].replace(/'/g, "")] = p || void 0;
1792
1814
  } else
1793
1815
  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(
1794
1816
  /'/g,
@@ -1798,11 +1820,11 @@ const ne = ({
1798
1820
  } catch {
1799
1821
  return;
1800
1822
  }
1801
- }, Wt = (i) => {
1823
+ }, zt = (i) => {
1802
1824
  const t = [];
1803
1825
  try {
1804
- return !i || le(i) || typeof i != "string" ? t : ae(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) => {
1805
- !d[1].includes("'") && d[1] !== "true" && d[1] !== "false" && t.push(d[1].replace(/'/g, ""));
1826
+ return !i || le(i) || typeof i != "string" ? t : ae(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) => {
1827
+ !u[1].includes("'") && u[1] !== "true" && u[1] !== "false" && t.push(u[1].replace(/'/g, ""));
1806
1828
  }), t);
1807
1829
  } catch {
1808
1830
  }
@@ -1818,14 +1840,14 @@ function ae(i) {
1818
1840
  function le(i) {
1819
1841
  return typeof i == "object" && i !== null && typeof i != "string";
1820
1842
  }
1821
- const rt = (i) => {
1843
+ const at = (i) => {
1822
1844
  const t = i.trim().replace(")", "").split("("), e = t[0], n = t[1].split(",").map((a) => a.trim());
1823
1845
  return {
1824
1846
  method: e,
1825
1847
  args: n
1826
1848
  };
1827
1849
  };
1828
- function nt(i) {
1850
+ function lt(i) {
1829
1851
  const t = [];
1830
1852
  function e(s) {
1831
1853
  const n = [];
@@ -1837,7 +1859,7 @@ function nt(i) {
1837
1859
  e(s);
1838
1860
  return t.flat();
1839
1861
  }
1840
- class Tt {
1862
+ class St {
1841
1863
  constructor(t, e = 4) {
1842
1864
  /**
1843
1865
  * Object containing fields specification of the form.
@@ -1947,17 +1969,17 @@ class Tt {
1947
1969
  }
1948
1970
  parse(t, e) {
1949
1971
  var o;
1950
- const { values: s = {}, readOnly: n = !1 } = e || {}, a = D.parse(t).filter((u) => u.tagName === "form")[0];
1972
+ const { values: s = {}, readOnly: n = !1 } = e || {}, a = D.parse(t).filter((d) => d.tagName === "form")[0];
1951
1973
  this._string = ((o = a.attributes) == null ? void 0 : o.string) || null, this._string && (this._string = m(this._string)), this._readOnly = n, this._context = s.id ? { active_id: s.id, active_ids: [s.id] } : {}, this._invisibleFields = [], this.parseNode({
1952
1974
  fields: a.children,
1953
1975
  container: this._container,
1954
1976
  values: s
1955
1977
  });
1956
- const l = nt(this._container._rows);
1957
- l.forEach((u) => {
1958
- const _ = u;
1959
- _._id && _._context && (this._contextForFields[_._id] = u._context);
1960
- }), this._autorefreshableFields = l.filter((u) => u instanceof f && u.autoRefresh).map((u) => u._id);
1978
+ const l = lt(this._container._rows);
1979
+ l.forEach((d) => {
1980
+ const _ = d;
1981
+ _._id && _._context && (this._contextForFields[_._id] = d._context);
1982
+ }), this._autorefreshableFields = l.filter((d) => d instanceof f && d.autoRefresh).map((d) => d._id);
1961
1983
  }
1962
1984
  parseNode({
1963
1985
  fields: t,
@@ -1967,39 +1989,39 @@ class Tt {
1967
1989
  const n = new $();
1968
1990
  t.filter((a) => typeof a == "object").forEach((a) => {
1969
1991
  var F, v;
1970
- const { tagName: l, attributes: o, children: u } = a;
1992
+ const { tagName: l, attributes: o, children: d } = a;
1971
1993
  let _ = l, h = o;
1972
1994
  if (l === "field") {
1973
- const { name: p, widget: S } = o;
1995
+ const { name: x, widget: S } = o;
1974
1996
  if (S)
1975
1997
  _ = S;
1976
- else if (p) {
1977
- if (!this._fields[p])
1998
+ else if (x) {
1999
+ if (!this._fields[x])
1978
2000
  throw new Error(
1979
- `Field ${p} doesn't exist in fields defintion`
2001
+ `Field ${x} doesn't exist in fields defintion`
1980
2002
  );
1981
- _ = this._fields[p].type, o.widget_props = {
2003
+ _ = this._fields[x].type, o.widget_props = {
1982
2004
  ...U(o.widget_props),
1983
- ...this._fields[p].widget_props || {}
2005
+ ...this._fields[x].widget_props || {}
1984
2006
  };
1985
2007
  }
1986
2008
  h = {
1987
- ...this._fields[p],
2009
+ ...this._fields[x],
1988
2010
  ...o,
1989
- fieldsWidgetType: this._fields[p].type
2011
+ fieldsWidgetType: this._fields[x].type
1990
2012
  };
1991
2013
  }
1992
- const d = Ce({
2014
+ const u = Ce({
1993
2015
  tagAttributes: h,
1994
2016
  values: s,
1995
2017
  fields: this._fields,
1996
2018
  widgetType: l
1997
2019
  });
1998
2020
  let g;
1999
- l === "button" && h.states ? g = it({
2021
+ l === "button" && h.states ? g = rt({
2000
2022
  states: h.states,
2001
2023
  values: s
2002
- }) : g = tt({
2024
+ }) : g = st({
2003
2025
  fieldName: h.name,
2004
2026
  values: s,
2005
2027
  fields: this._fields
@@ -2009,22 +2031,22 @@ class Tt {
2009
2031
  values: s,
2010
2032
  fields: this._fields
2011
2033
  });
2012
- h.on_change && (this._onChangeFields[h.name] = rt(
2034
+ h.on_change && (this._onChangeFields[h.name] = at(
2013
2035
  h.on_change
2014
2036
  ));
2015
2037
  let b;
2016
2038
  Q(h.domain) ? b = h.domain : Q((v = this._fields[h.name]) == null ? void 0 : v.domain) && (b = this._fields[h.name].domain), this._keyIdx = this._keyIdx + 1;
2017
- const x = {
2018
- ...d,
2039
+ const p = {
2040
+ ...u,
2019
2041
  ...g,
2020
2042
  context: c,
2021
2043
  domain: b,
2022
2044
  key: `${this._keyIdx}`
2023
2045
  };
2024
- e.readOnly && (x.readonly = !0);
2025
- const y = n.createWidget(_, x);
2026
- y.invisible && y instanceof f && this._invisibleFields.push(x.name), y instanceof w && this.parseNode({
2027
- fields: u,
2046
+ e.readOnly && (p.readonly = !0);
2047
+ const y = n.createWidget(_, p);
2048
+ y.invisible && y instanceof f && this._invisibleFields.push(p.name), y instanceof w && this.parseNode({
2049
+ fields: d,
2028
2050
  container: y.container,
2029
2051
  values: s
2030
2052
  }), y instanceof ee && y.readOnly !== void 0 || (y.readOnly = y.readOnly || this.readOnly), e.addWidget(y);
@@ -2041,7 +2063,7 @@ class Tt {
2041
2063
  function Q(i) {
2042
2064
  return i ? Array.isArray(i) && i.length > 0 ? !0 : typeof i == "string" && i !== "" && i !== "[]" : !1;
2043
2065
  }
2044
- class zt {
2066
+ class It {
2045
2067
  constructor(t) {
2046
2068
  /**
2047
2069
  * Object containing fields specification of the form.
@@ -2120,30 +2142,30 @@ class zt {
2120
2142
  const { tagName: a, attributes: l } = n;
2121
2143
  let o = null;
2122
2144
  if (a === "field") {
2123
- const { name: u, widget: _ } = l;
2145
+ const { name: d, widget: _ } = l;
2124
2146
  let h = l;
2125
- if (u) {
2126
- if (!this._fields[u])
2127
- throw new Error(`Field ${u} doesn't exist in fields defintion`);
2128
- const d = this._fields[u];
2129
- 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;
2147
+ if (d) {
2148
+ if (!this._fields[d])
2149
+ throw new Error(`Field ${d} doesn't exist in fields defintion`);
2150
+ const u = this._fields[d];
2151
+ 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;
2130
2152
  const g = ne({
2131
- context: l.context || d.context,
2153
+ context: l.context || u.context,
2132
2154
  values: {},
2133
2155
  fields: this._fields
2134
2156
  });
2135
2157
  h = {
2136
- ...d,
2158
+ ...u,
2137
2159
  ...l,
2138
- fieldsWidgetType: d == null ? void 0 : d.type,
2160
+ fieldsWidgetType: u == null ? void 0 : u.type,
2139
2161
  context: g
2140
- }, this._contextForFields[u] = g;
2162
+ }, this._contextForFields[d] = g;
2141
2163
  }
2142
2164
  if (_ && (o = _), !h.invisible) {
2143
- const d = s.createWidget(o, h);
2144
- this._columns.push(d);
2165
+ const u = s.createWidget(o, h);
2166
+ this._columns.push(u);
2145
2167
  }
2146
- k(h.autorefresh) && this._autorefreshableFields.push(u);
2168
+ k(h.autorefresh) && this._autorefreshableFields.push(d);
2147
2169
  }
2148
2170
  });
2149
2171
  }
@@ -2155,7 +2177,7 @@ class zt {
2155
2177
  return this._columns.find((e) => e.findById ? e.findById(t) : !1);
2156
2178
  }
2157
2179
  }
2158
- const at = {
2180
+ const ot = {
2159
2181
  text: "text",
2160
2182
  many2one: "many2one",
2161
2183
  char: "char",
@@ -2168,7 +2190,7 @@ const at = {
2168
2190
  date: "date",
2169
2191
  datetime: "datetime"
2170
2192
  };
2171
- class St {
2193
+ class Et {
2172
2194
  constructor(t, e, s = 8) {
2173
2195
  /**
2174
2196
  * Object containing the specific fields for primary and secondary search fields
@@ -2216,7 +2238,7 @@ class St {
2216
2238
  colspan: 2
2217
2239
  }, { type: a, widget: l } = n;
2218
2240
  let o = l ?? a;
2219
- return at[o] === void 0 && (o = a), e.createWidget(o, n);
2241
+ return ot[o] === void 0 && (o = a), e.createWidget(o, n);
2220
2242
  });
2221
2243
  }
2222
2244
  /**
@@ -2227,7 +2249,7 @@ class St {
2227
2249
  return this.advancedSearchContainer.findById(t);
2228
2250
  }
2229
2251
  }
2230
- const It = ({
2252
+ const Vt = ({
2231
2253
  domain: i,
2232
2254
  widgetFieldName: t
2233
2255
  }) => {
@@ -2236,14 +2258,14 @@ const It = ({
2236
2258
  if (!Array.isArray(s))
2237
2259
  return;
2238
2260
  const [n, a, l] = s;
2239
- let o, u;
2240
- n.indexOf(".") !== -1 ? (o = n.substr(0, n.indexOf(".")), u = n.substr(
2261
+ let o, d;
2262
+ n.indexOf(".") !== -1 ? (o = n.substr(0, n.indexOf(".")), d = n.substr(
2241
2263
  n.indexOf(".") + 1,
2242
2264
  n.length - 1
2243
- )) : (o = n, u = "id"), o === t && e.push([u, a, l]);
2265
+ )) : (o = n, d = "id"), o === t && e.push([d, a, l]);
2244
2266
  }), e;
2245
- }, Et = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((t) => t.trim()).filter((t) => !t.includes("'"));
2246
- class lt {
2267
+ }, Yt = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((t) => t.trim()).filter((t) => !t.includes("'"));
2268
+ class ct {
2247
2269
  constructor(t) {
2248
2270
  r(this, "_action_id", null);
2249
2271
  r(this, "_position", null);
@@ -2256,7 +2278,7 @@ class lt {
2256
2278
  return this._position;
2257
2279
  }
2258
2280
  }
2259
- class Vt {
2281
+ class Dt {
2260
2282
  constructor(t) {
2261
2283
  r(this, "_string", null);
2262
2284
  r(this, "_items", []);
@@ -2264,7 +2286,7 @@ class Vt {
2264
2286
  this._string = e.attributes.string || null;
2265
2287
  const { children: s } = e;
2266
2288
  s.forEach((n) => {
2267
- n.tagName === "dashboard_item" && this._items.push(new lt(n.attributes));
2289
+ n.tagName === "dashboard_item" && this._items.push(new ct(n.attributes));
2268
2290
  });
2269
2291
  }
2270
2292
  get string() {
@@ -2328,7 +2350,7 @@ class ce extends oe {
2328
2350
  return this._suffix;
2329
2351
  }
2330
2352
  }
2331
- class ot extends ce {
2353
+ class dt extends ce {
2332
2354
  constructor(e, s) {
2333
2355
  super(e, s);
2334
2356
  r(this, "_field");
@@ -2348,24 +2370,24 @@ class ot extends ce {
2348
2370
  return this._operator;
2349
2371
  }
2350
2372
  }
2351
- const ct = (i) => {
2373
+ const ut = (i) => {
2352
2374
  const t = [];
2353
2375
  let e;
2354
2376
  if (i.forEach((s) => {
2355
2377
  if (s.tagName === "field") {
2356
- const n = s.attributes.axis, a = s.attributes.operator, l = s.attributes.name, o = s.attributes.label || void 0, u = s.attributes.stacked || void 0;
2378
+ const n = s.attributes.axis, a = s.attributes.operator, l = s.attributes.name, o = s.attributes.label || void 0, d = s.attributes.stacked || void 0;
2357
2379
  if (!n)
2358
2380
  throw new Error(`Field ${l} doesn't have an axis`);
2359
2381
  if (!l)
2360
2382
  throw new Error("Missing name attribute for field");
2361
- n === "x" ? e = new ht({
2383
+ n === "x" ? e = new ft({
2362
2384
  name: l
2363
2385
  }) : n === "y" && t.push(
2364
- new dt({
2386
+ new _t({
2365
2387
  name: l,
2366
2388
  operator: a,
2367
2389
  label: o,
2368
- stacked: u
2390
+ stacked: d
2369
2391
  })
2370
2392
  );
2371
2393
  }
@@ -2384,7 +2406,7 @@ class j extends oe {
2384
2406
  r(this, "_x");
2385
2407
  r(this, "_y");
2386
2408
  this._type = e;
2387
- const n = ct(s.children);
2409
+ const n = ut(s.children);
2388
2410
  this._x = n.x, this._y = n.y;
2389
2411
  }
2390
2412
  get x() {
@@ -2394,22 +2416,22 @@ class j extends oe {
2394
2416
  return this._y;
2395
2417
  }
2396
2418
  }
2397
- const ut = {
2419
+ const ht = {
2398
2420
  indicator: ce,
2399
- indicatorField: ot,
2421
+ indicatorField: dt,
2400
2422
  line: j,
2401
2423
  bar: j,
2402
2424
  pie: j
2403
- }, Yt = (i) => {
2425
+ }, jt = (i) => {
2404
2426
  const t = D.parse(i).filter((n) => n.tagName === "graph")[0], e = t.attributes.type;
2405
2427
  if (!e)
2406
2428
  throw new Error(`${e} is not a valid graph`);
2407
- const s = ut[e];
2429
+ const s = ht[e];
2408
2430
  if (!s)
2409
2431
  throw new Error(`${e} not found as a GraphModel`);
2410
2432
  return new s(e, t);
2411
2433
  };
2412
- class ue {
2434
+ class de {
2413
2435
  constructor({ name: t, axis: e }) {
2414
2436
  r(this, "_name");
2415
2437
  r(this, "_axis");
@@ -2422,7 +2444,7 @@ class ue {
2422
2444
  return this._axis;
2423
2445
  }
2424
2446
  }
2425
- class dt extends ue {
2447
+ class _t extends de {
2426
2448
  constructor({
2427
2449
  name: e,
2428
2450
  operator: s,
@@ -2445,12 +2467,12 @@ class dt extends ue {
2445
2467
  return this._stacked;
2446
2468
  }
2447
2469
  }
2448
- class ht extends ue {
2470
+ class ft extends de {
2449
2471
  constructor({ name: t }) {
2450
2472
  super({ name: t, axis: "x" });
2451
2473
  }
2452
2474
  }
2453
- const _t = ({ ooui: i }) => {
2475
+ const gt = ({ ooui: i }) => {
2454
2476
  const e = [i.x.name];
2455
2477
  return i.y ? (i.y.forEach((s) => {
2456
2478
  s.operator !== "count" && !e.includes(s.name) && e.push(s.name), s.label && !e.includes(s.label) && e.push(s.label);
@@ -2472,27 +2494,27 @@ function q({
2472
2494
  }
2473
2495
  return { value: n, label: n };
2474
2496
  }
2475
- const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2497
+ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2476
2498
  __proto__: null,
2477
- getFieldsToRetrieve: _t,
2499
+ getFieldsToRetrieve: gt,
2478
2500
  getValueAndLabelForField: q
2479
2501
  }, Symbol.toStringTag, { value: "Module" }));
2480
- function ft({
2502
+ function mt({
2481
2503
  values: i,
2482
2504
  timerange: t,
2483
2505
  interval: e = 1
2484
2506
  }) {
2485
- const s = bt({
2507
+ const s = pt({
2486
2508
  values: i,
2487
2509
  timerange: t
2488
2510
  });
2489
- return gt({
2511
+ return bt({
2490
2512
  values: s,
2491
2513
  timerange: t,
2492
2514
  interval: e
2493
2515
  });
2494
2516
  }
2495
- function gt({
2517
+ function bt({
2496
2518
  values: i,
2497
2519
  timerange: t,
2498
2520
  interval: e = 1
@@ -2503,15 +2525,15 @@ function gt({
2503
2525
  groupBy: "type-stacked"
2504
2526
  }), a = `${t}s`;
2505
2527
  return Object.keys(n).forEach((o) => {
2506
- const u = n[o];
2507
- for (let _ = 0; _ < u.length; _++) {
2508
- const h = u[_];
2509
- if (s.push(h), _ === u.length - 1)
2528
+ const d = n[o];
2529
+ for (let _ = 0; _ < d.length; _++) {
2530
+ const h = d[_];
2531
+ if (s.push(h), _ === d.length - 1)
2510
2532
  return;
2511
- const d = h.x, g = u[_ + 1].x;
2512
- if (!de([d, g], a)) {
2513
- const c = mt({
2514
- dates: [d, g],
2533
+ const u = h.x, g = d[_ + 1].x;
2534
+ if (!ue([u, g], a)) {
2535
+ const c = yt({
2536
+ dates: [u, g],
2515
2537
  timerange: t,
2516
2538
  interval: e
2517
2539
  });
@@ -2525,9 +2547,9 @@ function gt({
2525
2547
  );
2526
2548
  }
2527
2549
  }
2528
- }), s.sort((o, u) => o.x < u.x ? -1 : o.x > u.x ? 1 : 0);
2550
+ }), s.sort((o, d) => o.x < d.x ? -1 : o.x > d.x ? 1 : 0);
2529
2551
  }
2530
- function mt({
2552
+ function yt({
2531
2553
  dates: i,
2532
2554
  timerange: t,
2533
2555
  interval: e = 1
@@ -2537,23 +2559,23 @@ function mt({
2537
2559
  return i;
2538
2560
  const a = i.sort((l, o) => l < o ? -1 : l > o ? 1 : 0);
2539
2561
  for (let l = 0; l < a.length - 1; l++) {
2540
- const o = a[l], u = a[l + 1];
2541
- if (!de([o, u], n)) {
2562
+ const o = a[l], d = a[l + 1];
2563
+ if (!ue([o, d], n)) {
2542
2564
  const _ = T(o, E(n)).add(
2543
2565
  e,
2544
2566
  n
2545
- ), h = T(u, E(n));
2567
+ ), h = T(d, E(n));
2546
2568
  for (; _.isBefore(h); )
2547
2569
  s.push(_.format(E(n))), _.add(e, n);
2548
2570
  }
2549
2571
  }
2550
2572
  return s;
2551
2573
  }
2552
- function bt({
2574
+ function pt({
2553
2575
  values: i,
2554
2576
  timerange: t
2555
2577
  }) {
2556
- const e = yt({
2578
+ const e = xt({
2557
2579
  values: i,
2558
2580
  timerange: t
2559
2581
  }), s = [], n = he({
@@ -2561,33 +2583,33 @@ function bt({
2561
2583
  groupBy: "all"
2562
2584
  });
2563
2585
  return Object.keys(n).forEach((a) => {
2564
- const l = n[a], o = l[0].operator === "count" ? "+" : l[0].operator, u = Y({
2586
+ const l = n[a], o = l[0].operator === "count" ? "+" : l[0].operator, d = Y({
2565
2587
  values: l.map((_) => _.value),
2566
2588
  operator: o
2567
2589
  });
2568
2590
  s.push({
2569
2591
  ...l[0],
2570
- value: u
2592
+ value: d
2571
2593
  });
2572
2594
  }), s;
2573
2595
  }
2574
- function yt({
2596
+ function xt({
2575
2597
  values: i,
2576
2598
  timerange: t
2577
2599
  }) {
2578
2600
  return i.map((e) => ({
2579
2601
  ...e,
2580
- x: xt({
2602
+ x: wt({
2581
2603
  date: e.x,
2582
2604
  timerange: t
2583
2605
  })
2584
2606
  }));
2585
2607
  }
2586
- function xt({
2608
+ function wt({
2587
2609
  date: i,
2588
2610
  timerange: t
2589
2611
  }) {
2590
- let e = pt(i);
2612
+ let e = Ft(i);
2591
2613
  const s = T(i, e);
2592
2614
  switch (t) {
2593
2615
  case "hour": {
@@ -2613,10 +2635,10 @@ function xt({
2613
2635
  }
2614
2636
  return s.format(e);
2615
2637
  }
2616
- function pt(i) {
2638
+ function Ft(i) {
2617
2639
  return i.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
2618
2640
  }
2619
- function de(i, t) {
2641
+ function ue(i, t) {
2620
2642
  let e = !1;
2621
2643
  const s = E(t);
2622
2644
  if (i.length === 0)
@@ -2654,7 +2676,7 @@ function E(i) {
2654
2676
  return "YYYY-MM-DD HH:mm";
2655
2677
  }
2656
2678
  }
2657
- const wt = {
2679
+ const vt = {
2658
2680
  count: "count",
2659
2681
  "+": "sum",
2660
2682
  "-": "subtract",
@@ -2662,7 +2684,7 @@ const wt = {
2662
2684
  avg: "average",
2663
2685
  min: "min",
2664
2686
  max: "max"
2665
- }, Ft = ({
2687
+ }, Ct = ({
2666
2688
  ooui: i,
2667
2689
  values: t,
2668
2690
  fields: e,
@@ -2675,7 +2697,7 @@ const wt = {
2675
2697
  }), a = [];
2676
2698
  i.y.forEach((c) => {
2677
2699
  Object.keys(n).forEach((b) => {
2678
- const x = n[b].label, y = n[b].entries;
2700
+ const p = n[b].label, y = n[b].entries;
2679
2701
  if (c.label) {
2680
2702
  const F = B({
2681
2703
  fieldName: c.label,
@@ -2683,8 +2705,8 @@ const wt = {
2683
2705
  fields: e
2684
2706
  });
2685
2707
  Object.keys(F).forEach((v) => {
2686
- const p = F[v].entries, S = F[v].label, ge = N({
2687
- entries: p,
2708
+ const x = F[v].entries, S = F[v].label, ge = N({
2709
+ entries: x,
2688
2710
  fields: e,
2689
2711
  fieldName: c.name
2690
2712
  }), me = Y({
@@ -2692,7 +2714,7 @@ const wt = {
2692
2714
  operator: c.operator
2693
2715
  });
2694
2716
  a.push({
2695
- x: x || !1,
2717
+ x: p || !1,
2696
2718
  value: me,
2697
2719
  type: S,
2698
2720
  operator: c.operator,
@@ -2709,7 +2731,7 @@ const wt = {
2709
2731
  operator: c.operator
2710
2732
  });
2711
2733
  a.push({
2712
- x: x || !1,
2734
+ x: p || !1,
2713
2735
  value: v,
2714
2736
  type: _e({
2715
2737
  yAxis: c,
@@ -2728,21 +2750,21 @@ const wt = {
2728
2750
  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(
2729
2751
  (c) => c.x !== !1
2730
2752
  ));
2731
- let d = h;
2732
- i.timerange ? d = ft({
2733
- values: d,
2753
+ let u = h;
2754
+ i.timerange ? u = mt({
2755
+ values: u,
2734
2756
  timerange: i.timerange,
2735
2757
  interval: i.interval
2736
- }) : i.type == "pie" && (d = h.sort((c, b) => b.value - c.value));
2758
+ }) : i.type == "pie" && (u = h.sort((c, b) => b.value - c.value));
2737
2759
  const g = {
2738
- data: d,
2760
+ data: u,
2739
2761
  isGroup: o || l,
2740
2762
  isStack: o
2741
2763
  };
2742
2764
  if (i.type === "line" && i.y_range && (g.yAxisOpts = {
2743
2765
  mode: i.y_range
2744
2766
  }, i.y_range === "auto")) {
2745
- const { min: c, max: b } = fe(d);
2767
+ const { min: c, max: b } = fe(u);
2746
2768
  g.yAxisOpts.valueOpts = { min: c, max: b };
2747
2769
  }
2748
2770
  return g;
@@ -2811,7 +2833,7 @@ function B({
2811
2833
  s[a] || (s[a] = { label: l, entries: [] }), s[a].entries.push(n);
2812
2834
  }), s;
2813
2835
  }
2814
- function vt(i) {
2836
+ function kt(i) {
2815
2837
  let t = [];
2816
2838
  return Object.keys(i).forEach((e) => {
2817
2839
  const s = i[e];
@@ -2834,84 +2856,86 @@ function fe(i, t = 0.1) {
2834
2856
  max: n + a
2835
2857
  };
2836
2858
  }
2837
- const jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2859
+ const At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2838
2860
  __proto__: null,
2839
- getAllObjectsInGroupedValues: vt,
2861
+ getAllObjectsInGroupedValues: kt,
2840
2862
  getMinMax: fe,
2841
2863
  getValueForOperator: Y,
2842
2864
  getValuesForYField: N,
2843
2865
  getValuesGroupedByField: B,
2844
2866
  getYAxisFieldname: _e,
2845
- labelsForOperator: wt,
2846
- processGraphData: Ft
2867
+ labelsForOperator: vt,
2868
+ processGraphData: Ct
2847
2869
  }, Symbol.toStringTag, { value: "Module" }));
2848
2870
  export {
2849
- Xe as Alert,
2871
+ Te as ActionButtons,
2872
+ Ue as Alert,
2850
2873
  ke as Avatar,
2851
- Ae as Binary,
2874
+ Ne as Binary,
2852
2875
  te as Boolean,
2853
2876
  ee as Button,
2854
2877
  We as ButtonGroup,
2855
- Ze as Carousel,
2878
+ et as Carousel,
2856
2879
  A as Char,
2857
2880
  re as CodeEditor,
2858
- et as ColorPicker,
2859
- Ue as Comments,
2881
+ tt as ColorPicker,
2882
+ Ke as Comments,
2860
2883
  V as Container,
2861
2884
  w as ContainerWidget,
2862
- Vt as Dashboard,
2863
- lt as DashboardItem,
2864
- Ye as Date,
2865
- De as DateTime,
2866
- Ke as Email,
2885
+ Dt as Dashboard,
2886
+ ct as DashboardItem,
2887
+ De as Date,
2888
+ je as DateTime,
2889
+ Ze as Email,
2867
2890
  f as Field,
2868
2891
  G as Float,
2869
- Ie as FloatTime,
2870
- Tt as Form,
2892
+ Ee as FloatTime,
2893
+ St as Form,
2871
2894
  oe as Graph,
2872
- ue as GraphAxis,
2895
+ de as GraphAxis,
2873
2896
  j as GraphChart,
2874
2897
  ce as GraphIndicator,
2875
- ot as GraphIndicatorField,
2876
- ht as GraphXAxis,
2877
- dt as GraphYAxis,
2878
- Pe as Group,
2879
- Ee as HTMLPreview,
2880
- Ne as Image,
2881
- Le as Indicator,
2882
- Se as Integer,
2898
+ dt as GraphIndicatorField,
2899
+ ft as GraphXAxis,
2900
+ _t as GraphYAxis,
2901
+ Oe as Group,
2902
+ Ve as HTMLPreview,
2903
+ Be as Image,
2904
+ Ge as Indicator,
2905
+ Ie as Integer,
2883
2906
  H as JSONField,
2884
2907
  Z as Label,
2885
- Te as Many2one,
2886
- ze as Markdown,
2908
+ ze as Many2one,
2909
+ Se as Markdown,
2887
2910
  se as MultiCheckbox,
2888
2911
  K as NewLine,
2889
2912
  M as Notebook,
2890
2913
  ie as One2many,
2891
- Oe as Page,
2892
- Ve as ProgressBar,
2893
- qe as Radio,
2894
- Me as Reference,
2895
- at as SearchFieldTypes,
2896
- St as SearchFilter,
2914
+ Pe as Page,
2915
+ Ye as ProgressBar,
2916
+ it as QRCode,
2917
+ Je as Radio,
2918
+ Ae as Reference,
2919
+ ot as SearchFieldTypes,
2920
+ Et as SearchFilter,
2897
2921
  z as Selection,
2898
- je as Separator,
2922
+ Me as Separator,
2899
2923
  R as Spinner,
2900
- He as Steps,
2901
- Je as Switch,
2902
- $e as Tag,
2903
- Ge as Tags,
2924
+ Qe as Steps,
2925
+ He as Switch,
2926
+ qe as Tag,
2927
+ $e as Tags,
2904
2928
  L as Text,
2905
- Qe as Time,
2906
- Re as Timeline,
2907
- zt as Tree,
2929
+ Xe as Time,
2930
+ Le as Timeline,
2931
+ It as Tree,
2908
2932
  C as Widget,
2909
- Dt as graphFieldUtils,
2910
- jt as graphProcessor,
2933
+ Mt as graphFieldUtils,
2934
+ At as graphProcessor,
2911
2935
  ne as parseContext,
2912
- Wt as parseContextFields,
2913
- Et as parseDomainFields,
2914
- Yt as parseGraph,
2915
- It as transformDomainForChildWidget
2936
+ zt as parseContextFields,
2937
+ Yt as parseDomainFields,
2938
+ jt as parseGraph,
2939
+ Vt as transformDomainForChildWidget
2916
2940
  };
2917
2941
  //# sourceMappingURL=ooui.es.js.map