@gisce/ooui 2.36.0 → 2.37.0-alpha.1

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
@@ -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,7 +1548,7 @@ 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
  }
@@ -1584,35 +1586,38 @@ class $ {
1584
1586
  case "buttonGroup":
1585
1587
  this._widgetClass = We;
1586
1588
  break;
1589
+ case "action_buttons":
1590
+ this._widgetClass = Te;
1591
+ break;
1587
1592
  case "selection":
1588
1593
  this._widgetClass = z;
1589
1594
  break;
1590
1595
  case "many2one":
1591
- this._widgetClass = Te;
1596
+ this._widgetClass = ze;
1592
1597
  break;
1593
1598
  case "boolean":
1594
1599
  this._widgetClass = te;
1595
1600
  break;
1596
1601
  case "integer":
1597
- this._widgetClass = Se;
1602
+ this._widgetClass = Ie;
1598
1603
  break;
1599
1604
  case "float":
1600
1605
  this._widgetClass = G;
1601
1606
  break;
1602
1607
  case "float_time":
1603
- this._widgetClass = Ie;
1608
+ this._widgetClass = Ee;
1604
1609
  break;
1605
1610
  case "date":
1606
- this._widgetClass = Ye;
1611
+ this._widgetClass = De;
1607
1612
  break;
1608
1613
  case "datetime":
1609
- this._widgetClass = De;
1614
+ this._widgetClass = je;
1610
1615
  break;
1611
1616
  case "progressbar":
1612
- this._widgetClass = Ve;
1617
+ this._widgetClass = Ye;
1613
1618
  break;
1614
1619
  case "markdown":
1615
- this._widgetClass = ze;
1620
+ this._widgetClass = Se;
1616
1621
  break;
1617
1622
  case "many2many":
1618
1623
  case "one2many":
@@ -1623,67 +1628,67 @@ class $ {
1623
1628
  this._widgetClass = K;
1624
1629
  break;
1625
1630
  case "separator":
1626
- this._widgetClass = je;
1631
+ this._widgetClass = Me;
1627
1632
  break;
1628
1633
  case "url":
1629
1634
  this._widgetClass = A;
1630
1635
  break;
1631
1636
  case "email":
1632
- this._widgetClass = Ke;
1637
+ this._widgetClass = Ze;
1633
1638
  break;
1634
1639
  case "reference":
1635
- this._widgetClass = Me;
1640
+ this._widgetClass = Ae;
1636
1641
  break;
1637
1642
  case "binary":
1638
- this._widgetClass = Ae;
1643
+ this._widgetClass = Ne;
1639
1644
  break;
1640
1645
  case "image":
1641
- this._widgetClass = Ne;
1646
+ this._widgetClass = Be;
1642
1647
  break;
1643
1648
  case "fiber_grid":
1644
- this._widgetClass = Be;
1649
+ this._widgetClass = Re;
1645
1650
  break;
1646
1651
  case "timeline":
1647
- this._widgetClass = Re;
1652
+ this._widgetClass = Le;
1648
1653
  break;
1649
1654
  case "indicator":
1650
- this._widgetClass = Le;
1655
+ this._widgetClass = Ge;
1651
1656
  break;
1652
1657
  case "tags":
1653
- this._widgetClass = Ge;
1658
+ this._widgetClass = $e;
1654
1659
  break;
1655
1660
  case "tag":
1656
- this._widgetClass = $e;
1661
+ this._widgetClass = qe;
1657
1662
  break;
1658
1663
  case "avatar":
1659
1664
  this._widgetClass = ke;
1660
1665
  break;
1661
1666
  case "radio":
1662
- this._widgetClass = qe;
1667
+ this._widgetClass = Je;
1663
1668
  break;
1664
1669
  case "multicheckbox":
1665
1670
  this._widgetClass = se;
1666
1671
  break;
1667
1672
  case "switch":
1668
- this._widgetClass = Je;
1673
+ this._widgetClass = He;
1669
1674
  break;
1670
1675
  case "steps":
1671
- this._widgetClass = He;
1676
+ this._widgetClass = Qe;
1672
1677
  break;
1673
1678
  case "codeeditor":
1674
1679
  this._widgetClass = re;
1675
1680
  break;
1676
1681
  case "time":
1677
- this._widgetClass = Qe;
1682
+ this._widgetClass = Xe;
1678
1683
  break;
1679
1684
  case "html_preview":
1680
- this._widgetClass = Ee;
1685
+ this._widgetClass = Ve;
1681
1686
  break;
1682
1687
  case "alert":
1683
- this._widgetClass = Xe;
1688
+ this._widgetClass = Ue;
1684
1689
  break;
1685
1690
  case "comments_timeline":
1686
- this._widgetClass = Ue;
1691
+ this._widgetClass = Ke;
1687
1692
  break;
1688
1693
  case "json":
1689
1694
  this._widgetClass = H;
@@ -1695,10 +1700,10 @@ class $ {
1695
1700
  this._widgetClass = R;
1696
1701
  break;
1697
1702
  case "carousel":
1698
- this._widgetClass = Ze;
1703
+ this._widgetClass = et;
1699
1704
  break;
1700
1705
  case "colorPicker":
1701
- this._widgetClass = et;
1706
+ this._widgetClass = tt;
1702
1707
  break;
1703
1708
  }
1704
1709
  }
@@ -1721,7 +1726,7 @@ class $ {
1721
1726
  }
1722
1727
  }
1723
1728
  }
1724
- const tt = ({
1729
+ const it = ({
1725
1730
  fieldName: i,
1726
1731
  values: t,
1727
1732
  fields: e
@@ -1746,7 +1751,7 @@ const tt = ({
1746
1751
  n[o] = u.some((_) => _);
1747
1752
  }
1748
1753
  return n;
1749
- }, it = ({
1754
+ }, st = ({
1750
1755
  states: i,
1751
1756
  values: t
1752
1757
  }) => {
@@ -1755,7 +1760,7 @@ const tt = ({
1755
1760
  const e = i.split(",");
1756
1761
  return e.length === 0 ? {} : e.includes(t.state) ? {} : { invisible: !0 };
1757
1762
  };
1758
- function st({
1763
+ function rt({
1759
1764
  values: i = {},
1760
1765
  fieldName: t,
1761
1766
  fields: e = {}
@@ -1783,7 +1788,7 @@ const ne = ({
1783
1788
  return d.forEach((c) => {
1784
1789
  const b = c[1];
1785
1790
  if (!c[1].includes("'") && c[1] !== "true" && c[1] !== "false") {
1786
- const x = st({
1791
+ const x = rt({
1787
1792
  values: t,
1788
1793
  fields: e,
1789
1794
  fieldName: b === "active_id" ? "id" : b
@@ -1798,7 +1803,7 @@ const ne = ({
1798
1803
  } catch {
1799
1804
  return;
1800
1805
  }
1801
- }, Wt = (i) => {
1806
+ }, Tt = (i) => {
1802
1807
  const t = [];
1803
1808
  try {
1804
1809
  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) => {
@@ -1818,14 +1823,14 @@ function ae(i) {
1818
1823
  function le(i) {
1819
1824
  return typeof i == "object" && i !== null && typeof i != "string";
1820
1825
  }
1821
- const rt = (i) => {
1826
+ const nt = (i) => {
1822
1827
  const t = i.trim().replace(")", "").split("("), e = t[0], n = t[1].split(",").map((a) => a.trim());
1823
1828
  return {
1824
1829
  method: e,
1825
1830
  args: n
1826
1831
  };
1827
1832
  };
1828
- function nt(i) {
1833
+ function at(i) {
1829
1834
  const t = [];
1830
1835
  function e(s) {
1831
1836
  const n = [];
@@ -1837,7 +1842,7 @@ function nt(i) {
1837
1842
  e(s);
1838
1843
  return t.flat();
1839
1844
  }
1840
- class Tt {
1845
+ class zt {
1841
1846
  constructor(t, e = 4) {
1842
1847
  /**
1843
1848
  * Object containing fields specification of the form.
@@ -1953,7 +1958,7 @@ class Tt {
1953
1958
  container: this._container,
1954
1959
  values: s
1955
1960
  });
1956
- const l = nt(this._container._rows);
1961
+ const l = at(this._container._rows);
1957
1962
  l.forEach((u) => {
1958
1963
  const _ = u;
1959
1964
  _._id && _._context && (this._contextForFields[_._id] = u._context);
@@ -1996,10 +2001,10 @@ class Tt {
1996
2001
  widgetType: l
1997
2002
  });
1998
2003
  let g;
1999
- l === "button" && h.states ? g = it({
2004
+ l === "button" && h.states ? g = st({
2000
2005
  states: h.states,
2001
2006
  values: s
2002
- }) : g = tt({
2007
+ }) : g = it({
2003
2008
  fieldName: h.name,
2004
2009
  values: s,
2005
2010
  fields: this._fields
@@ -2009,7 +2014,7 @@ class Tt {
2009
2014
  values: s,
2010
2015
  fields: this._fields
2011
2016
  });
2012
- h.on_change && (this._onChangeFields[h.name] = rt(
2017
+ h.on_change && (this._onChangeFields[h.name] = nt(
2013
2018
  h.on_change
2014
2019
  ));
2015
2020
  let b;
@@ -2041,7 +2046,7 @@ class Tt {
2041
2046
  function Q(i) {
2042
2047
  return i ? Array.isArray(i) && i.length > 0 ? !0 : typeof i == "string" && i !== "" && i !== "[]" : !1;
2043
2048
  }
2044
- class zt {
2049
+ class St {
2045
2050
  constructor(t) {
2046
2051
  /**
2047
2052
  * Object containing fields specification of the form.
@@ -2155,7 +2160,7 @@ class zt {
2155
2160
  return this._columns.find((e) => e.findById ? e.findById(t) : !1);
2156
2161
  }
2157
2162
  }
2158
- const at = {
2163
+ const lt = {
2159
2164
  text: "text",
2160
2165
  many2one: "many2one",
2161
2166
  char: "char",
@@ -2168,7 +2173,7 @@ const at = {
2168
2173
  date: "date",
2169
2174
  datetime: "datetime"
2170
2175
  };
2171
- class St {
2176
+ class It {
2172
2177
  constructor(t, e, s = 8) {
2173
2178
  /**
2174
2179
  * Object containing the specific fields for primary and secondary search fields
@@ -2216,7 +2221,7 @@ class St {
2216
2221
  colspan: 2
2217
2222
  }, { type: a, widget: l } = n;
2218
2223
  let o = l ?? a;
2219
- return at[o] === void 0 && (o = a), e.createWidget(o, n);
2224
+ return lt[o] === void 0 && (o = a), e.createWidget(o, n);
2220
2225
  });
2221
2226
  }
2222
2227
  /**
@@ -2227,7 +2232,7 @@ class St {
2227
2232
  return this.advancedSearchContainer.findById(t);
2228
2233
  }
2229
2234
  }
2230
- const It = ({
2235
+ const Et = ({
2231
2236
  domain: i,
2232
2237
  widgetFieldName: t
2233
2238
  }) => {
@@ -2242,8 +2247,8 @@ const It = ({
2242
2247
  n.length - 1
2243
2248
  )) : (o = n, u = "id"), o === t && e.push([u, a, l]);
2244
2249
  }), e;
2245
- }, Et = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((t) => t.trim()).filter((t) => !t.includes("'"));
2246
- class lt {
2250
+ }, Vt = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((t) => t.trim()).filter((t) => !t.includes("'"));
2251
+ class ot {
2247
2252
  constructor(t) {
2248
2253
  r(this, "_action_id", null);
2249
2254
  r(this, "_position", null);
@@ -2256,7 +2261,7 @@ class lt {
2256
2261
  return this._position;
2257
2262
  }
2258
2263
  }
2259
- class Vt {
2264
+ class Yt {
2260
2265
  constructor(t) {
2261
2266
  r(this, "_string", null);
2262
2267
  r(this, "_items", []);
@@ -2264,7 +2269,7 @@ class Vt {
2264
2269
  this._string = e.attributes.string || null;
2265
2270
  const { children: s } = e;
2266
2271
  s.forEach((n) => {
2267
- n.tagName === "dashboard_item" && this._items.push(new lt(n.attributes));
2272
+ n.tagName === "dashboard_item" && this._items.push(new ot(n.attributes));
2268
2273
  });
2269
2274
  }
2270
2275
  get string() {
@@ -2328,7 +2333,7 @@ class ce extends oe {
2328
2333
  return this._suffix;
2329
2334
  }
2330
2335
  }
2331
- class ot extends ce {
2336
+ class ct extends ce {
2332
2337
  constructor(e, s) {
2333
2338
  super(e, s);
2334
2339
  r(this, "_field");
@@ -2348,7 +2353,7 @@ class ot extends ce {
2348
2353
  return this._operator;
2349
2354
  }
2350
2355
  }
2351
- const ct = (i) => {
2356
+ const ut = (i) => {
2352
2357
  const t = [];
2353
2358
  let e;
2354
2359
  if (i.forEach((s) => {
@@ -2358,10 +2363,10 @@ const ct = (i) => {
2358
2363
  throw new Error(`Field ${l} doesn't have an axis`);
2359
2364
  if (!l)
2360
2365
  throw new Error("Missing name attribute for field");
2361
- n === "x" ? e = new ht({
2366
+ n === "x" ? e = new _t({
2362
2367
  name: l
2363
2368
  }) : n === "y" && t.push(
2364
- new dt({
2369
+ new ht({
2365
2370
  name: l,
2366
2371
  operator: a,
2367
2372
  label: o,
@@ -2384,7 +2389,7 @@ class j extends oe {
2384
2389
  r(this, "_x");
2385
2390
  r(this, "_y");
2386
2391
  this._type = e;
2387
- const n = ct(s.children);
2392
+ const n = ut(s.children);
2388
2393
  this._x = n.x, this._y = n.y;
2389
2394
  }
2390
2395
  get x() {
@@ -2394,17 +2399,17 @@ class j extends oe {
2394
2399
  return this._y;
2395
2400
  }
2396
2401
  }
2397
- const ut = {
2402
+ const dt = {
2398
2403
  indicator: ce,
2399
- indicatorField: ot,
2404
+ indicatorField: ct,
2400
2405
  line: j,
2401
2406
  bar: j,
2402
2407
  pie: j
2403
- }, Yt = (i) => {
2408
+ }, Dt = (i) => {
2404
2409
  const t = D.parse(i).filter((n) => n.tagName === "graph")[0], e = t.attributes.type;
2405
2410
  if (!e)
2406
2411
  throw new Error(`${e} is not a valid graph`);
2407
- const s = ut[e];
2412
+ const s = dt[e];
2408
2413
  if (!s)
2409
2414
  throw new Error(`${e} not found as a GraphModel`);
2410
2415
  return new s(e, t);
@@ -2422,7 +2427,7 @@ class ue {
2422
2427
  return this._axis;
2423
2428
  }
2424
2429
  }
2425
- class dt extends ue {
2430
+ class ht extends ue {
2426
2431
  constructor({
2427
2432
  name: e,
2428
2433
  operator: s,
@@ -2445,12 +2450,12 @@ class dt extends ue {
2445
2450
  return this._stacked;
2446
2451
  }
2447
2452
  }
2448
- class ht extends ue {
2453
+ class _t extends ue {
2449
2454
  constructor({ name: t }) {
2450
2455
  super({ name: t, axis: "x" });
2451
2456
  }
2452
2457
  }
2453
- const _t = ({ ooui: i }) => {
2458
+ const ft = ({ ooui: i }) => {
2454
2459
  const e = [i.x.name];
2455
2460
  return i.y ? (i.y.forEach((s) => {
2456
2461
  s.operator !== "count" && !e.includes(s.name) && e.push(s.name), s.label && !e.includes(s.label) && e.push(s.label);
@@ -2472,27 +2477,27 @@ function q({
2472
2477
  }
2473
2478
  return { value: n, label: n };
2474
2479
  }
2475
- const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2480
+ const jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2476
2481
  __proto__: null,
2477
- getFieldsToRetrieve: _t,
2482
+ getFieldsToRetrieve: ft,
2478
2483
  getValueAndLabelForField: q
2479
2484
  }, Symbol.toStringTag, { value: "Module" }));
2480
- function ft({
2485
+ function gt({
2481
2486
  values: i,
2482
2487
  timerange: t,
2483
2488
  interval: e = 1
2484
2489
  }) {
2485
- const s = bt({
2490
+ const s = yt({
2486
2491
  values: i,
2487
2492
  timerange: t
2488
2493
  });
2489
- return gt({
2494
+ return mt({
2490
2495
  values: s,
2491
2496
  timerange: t,
2492
2497
  interval: e
2493
2498
  });
2494
2499
  }
2495
- function gt({
2500
+ function mt({
2496
2501
  values: i,
2497
2502
  timerange: t,
2498
2503
  interval: e = 1
@@ -2510,7 +2515,7 @@ function gt({
2510
2515
  return;
2511
2516
  const d = h.x, g = u[_ + 1].x;
2512
2517
  if (!de([d, g], a)) {
2513
- const c = mt({
2518
+ const c = bt({
2514
2519
  dates: [d, g],
2515
2520
  timerange: t,
2516
2521
  interval: e
@@ -2527,7 +2532,7 @@ function gt({
2527
2532
  }
2528
2533
  }), s.sort((o, u) => o.x < u.x ? -1 : o.x > u.x ? 1 : 0);
2529
2534
  }
2530
- function mt({
2535
+ function bt({
2531
2536
  dates: i,
2532
2537
  timerange: t,
2533
2538
  interval: e = 1
@@ -2549,11 +2554,11 @@ function mt({
2549
2554
  }
2550
2555
  return s;
2551
2556
  }
2552
- function bt({
2557
+ function yt({
2553
2558
  values: i,
2554
2559
  timerange: t
2555
2560
  }) {
2556
- const e = yt({
2561
+ const e = xt({
2557
2562
  values: i,
2558
2563
  timerange: t
2559
2564
  }), s = [], n = he({
@@ -2571,23 +2576,23 @@ function bt({
2571
2576
  });
2572
2577
  }), s;
2573
2578
  }
2574
- function yt({
2579
+ function xt({
2575
2580
  values: i,
2576
2581
  timerange: t
2577
2582
  }) {
2578
2583
  return i.map((e) => ({
2579
2584
  ...e,
2580
- x: xt({
2585
+ x: pt({
2581
2586
  date: e.x,
2582
2587
  timerange: t
2583
2588
  })
2584
2589
  }));
2585
2590
  }
2586
- function xt({
2591
+ function pt({
2587
2592
  date: i,
2588
2593
  timerange: t
2589
2594
  }) {
2590
- let e = pt(i);
2595
+ let e = wt(i);
2591
2596
  const s = T(i, e);
2592
2597
  switch (t) {
2593
2598
  case "hour": {
@@ -2613,7 +2618,7 @@ function xt({
2613
2618
  }
2614
2619
  return s.format(e);
2615
2620
  }
2616
- function pt(i) {
2621
+ function wt(i) {
2617
2622
  return i.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
2618
2623
  }
2619
2624
  function de(i, t) {
@@ -2654,7 +2659,7 @@ function E(i) {
2654
2659
  return "YYYY-MM-DD HH:mm";
2655
2660
  }
2656
2661
  }
2657
- const wt = {
2662
+ const Ft = {
2658
2663
  count: "count",
2659
2664
  "+": "sum",
2660
2665
  "-": "subtract",
@@ -2662,7 +2667,7 @@ const wt = {
2662
2667
  avg: "average",
2663
2668
  min: "min",
2664
2669
  max: "max"
2665
- }, Ft = ({
2670
+ }, vt = ({
2666
2671
  ooui: i,
2667
2672
  values: t,
2668
2673
  fields: e,
@@ -2729,7 +2734,7 @@ const wt = {
2729
2734
  (c) => c.x !== !1
2730
2735
  ));
2731
2736
  let d = h;
2732
- i.timerange ? d = ft({
2737
+ i.timerange ? d = gt({
2733
2738
  values: d,
2734
2739
  timerange: i.timerange,
2735
2740
  interval: i.interval
@@ -2811,7 +2816,7 @@ function B({
2811
2816
  s[a] || (s[a] = { label: l, entries: [] }), s[a].entries.push(n);
2812
2817
  }), s;
2813
2818
  }
2814
- function vt(i) {
2819
+ function Ct(i) {
2815
2820
  let t = [];
2816
2821
  return Object.keys(i).forEach((e) => {
2817
2822
  const s = i[e];
@@ -2834,84 +2839,85 @@ function fe(i, t = 0.1) {
2834
2839
  max: n + a
2835
2840
  };
2836
2841
  }
2837
- const jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2842
+ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2838
2843
  __proto__: null,
2839
- getAllObjectsInGroupedValues: vt,
2844
+ getAllObjectsInGroupedValues: Ct,
2840
2845
  getMinMax: fe,
2841
2846
  getValueForOperator: Y,
2842
2847
  getValuesForYField: N,
2843
2848
  getValuesGroupedByField: B,
2844
2849
  getYAxisFieldname: _e,
2845
- labelsForOperator: wt,
2846
- processGraphData: Ft
2850
+ labelsForOperator: Ft,
2851
+ processGraphData: vt
2847
2852
  }, Symbol.toStringTag, { value: "Module" }));
2848
2853
  export {
2849
- Xe as Alert,
2854
+ Te as ActionButtons,
2855
+ Ue as Alert,
2850
2856
  ke as Avatar,
2851
- Ae as Binary,
2857
+ Ne as Binary,
2852
2858
  te as Boolean,
2853
2859
  ee as Button,
2854
2860
  We as ButtonGroup,
2855
- Ze as Carousel,
2861
+ et as Carousel,
2856
2862
  A as Char,
2857
2863
  re as CodeEditor,
2858
- et as ColorPicker,
2859
- Ue as Comments,
2864
+ tt as ColorPicker,
2865
+ Ke as Comments,
2860
2866
  V as Container,
2861
2867
  w as ContainerWidget,
2862
- Vt as Dashboard,
2863
- lt as DashboardItem,
2864
- Ye as Date,
2865
- De as DateTime,
2866
- Ke as Email,
2868
+ Yt as Dashboard,
2869
+ ot as DashboardItem,
2870
+ De as Date,
2871
+ je as DateTime,
2872
+ Ze as Email,
2867
2873
  f as Field,
2868
2874
  G as Float,
2869
- Ie as FloatTime,
2870
- Tt as Form,
2875
+ Ee as FloatTime,
2876
+ zt as Form,
2871
2877
  oe as Graph,
2872
2878
  ue as GraphAxis,
2873
2879
  j as GraphChart,
2874
2880
  ce as GraphIndicator,
2875
- ot as GraphIndicatorField,
2876
- ht as GraphXAxis,
2877
- dt as GraphYAxis,
2881
+ ct as GraphIndicatorField,
2882
+ _t as GraphXAxis,
2883
+ ht as GraphYAxis,
2878
2884
  Pe as Group,
2879
- Ee as HTMLPreview,
2880
- Ne as Image,
2881
- Le as Indicator,
2882
- Se as Integer,
2885
+ Ve as HTMLPreview,
2886
+ Be as Image,
2887
+ Ge as Indicator,
2888
+ Ie as Integer,
2883
2889
  H as JSONField,
2884
2890
  Z as Label,
2885
- Te as Many2one,
2886
- ze as Markdown,
2891
+ ze as Many2one,
2892
+ Se as Markdown,
2887
2893
  se as MultiCheckbox,
2888
2894
  K as NewLine,
2889
2895
  M as Notebook,
2890
2896
  ie as One2many,
2891
2897
  Oe as Page,
2892
- Ve as ProgressBar,
2893
- qe as Radio,
2894
- Me as Reference,
2895
- at as SearchFieldTypes,
2896
- St as SearchFilter,
2898
+ Ye as ProgressBar,
2899
+ Je as Radio,
2900
+ Ae as Reference,
2901
+ lt as SearchFieldTypes,
2902
+ It as SearchFilter,
2897
2903
  z as Selection,
2898
- je as Separator,
2904
+ Me as Separator,
2899
2905
  R as Spinner,
2900
- He as Steps,
2901
- Je as Switch,
2902
- $e as Tag,
2903
- Ge as Tags,
2906
+ Qe as Steps,
2907
+ He as Switch,
2908
+ qe as Tag,
2909
+ $e as Tags,
2904
2910
  L as Text,
2905
- Qe as Time,
2906
- Re as Timeline,
2907
- zt as Tree,
2911
+ Xe as Time,
2912
+ Le as Timeline,
2913
+ St as Tree,
2908
2914
  C as Widget,
2909
- Dt as graphFieldUtils,
2910
- jt as graphProcessor,
2915
+ jt as graphFieldUtils,
2916
+ Mt as graphProcessor,
2911
2917
  ne as parseContext,
2912
- Wt as parseContextFields,
2913
- Et as parseDomainFields,
2914
- Yt as parseGraph,
2915
- It as transformDomainForChildWidget
2918
+ Tt as parseContextFields,
2919
+ Vt as parseDomainFields,
2920
+ Dt as parseGraph,
2921
+ Et as transformDomainForChildWidget
2916
2922
  };
2917
2923
  //# sourceMappingURL=ooui.es.js.map