@gisce/ooui 2.37.1 → 2.38.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
@@ -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,12 +1548,12 @@ 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
  }
1554
- class tt extends f {
1556
+ class it extends f {
1555
1557
  get width() {
1556
1558
  var t;
1557
1559
  return (t = this.parsedWidgetProps) == null ? void 0 : t.width;
@@ -1598,35 +1600,38 @@ class $ {
1598
1600
  case "buttonGroup":
1599
1601
  this._widgetClass = We;
1600
1602
  break;
1603
+ case "action_buttons":
1604
+ this._widgetClass = Te;
1605
+ break;
1601
1606
  case "selection":
1602
1607
  this._widgetClass = z;
1603
1608
  break;
1604
1609
  case "many2one":
1605
- this._widgetClass = Te;
1610
+ this._widgetClass = ze;
1606
1611
  break;
1607
1612
  case "boolean":
1608
1613
  this._widgetClass = te;
1609
1614
  break;
1610
1615
  case "integer":
1611
- this._widgetClass = Se;
1616
+ this._widgetClass = Ie;
1612
1617
  break;
1613
1618
  case "float":
1614
1619
  this._widgetClass = G;
1615
1620
  break;
1616
1621
  case "float_time":
1617
- this._widgetClass = Ie;
1622
+ this._widgetClass = Ee;
1618
1623
  break;
1619
1624
  case "date":
1620
- this._widgetClass = Ye;
1625
+ this._widgetClass = De;
1621
1626
  break;
1622
1627
  case "datetime":
1623
- this._widgetClass = De;
1628
+ this._widgetClass = je;
1624
1629
  break;
1625
1630
  case "progressbar":
1626
- this._widgetClass = Ve;
1631
+ this._widgetClass = Ye;
1627
1632
  break;
1628
1633
  case "markdown":
1629
- this._widgetClass = ze;
1634
+ this._widgetClass = Se;
1630
1635
  break;
1631
1636
  case "many2many":
1632
1637
  case "one2many":
@@ -1637,67 +1642,67 @@ class $ {
1637
1642
  this._widgetClass = K;
1638
1643
  break;
1639
1644
  case "separator":
1640
- this._widgetClass = je;
1645
+ this._widgetClass = Me;
1641
1646
  break;
1642
1647
  case "url":
1643
1648
  this._widgetClass = A;
1644
1649
  break;
1645
1650
  case "email":
1646
- this._widgetClass = Ke;
1651
+ this._widgetClass = Ze;
1647
1652
  break;
1648
1653
  case "reference":
1649
- this._widgetClass = Me;
1654
+ this._widgetClass = Ae;
1650
1655
  break;
1651
1656
  case "binary":
1652
- this._widgetClass = Ae;
1657
+ this._widgetClass = Ne;
1653
1658
  break;
1654
1659
  case "image":
1655
- this._widgetClass = Ne;
1660
+ this._widgetClass = Be;
1656
1661
  break;
1657
1662
  case "fiber_grid":
1658
- this._widgetClass = Be;
1663
+ this._widgetClass = Re;
1659
1664
  break;
1660
1665
  case "timeline":
1661
- this._widgetClass = Re;
1666
+ this._widgetClass = Le;
1662
1667
  break;
1663
1668
  case "indicator":
1664
- this._widgetClass = Le;
1669
+ this._widgetClass = Ge;
1665
1670
  break;
1666
1671
  case "tags":
1667
- this._widgetClass = Ge;
1672
+ this._widgetClass = $e;
1668
1673
  break;
1669
1674
  case "tag":
1670
- this._widgetClass = $e;
1675
+ this._widgetClass = qe;
1671
1676
  break;
1672
1677
  case "avatar":
1673
1678
  this._widgetClass = ke;
1674
1679
  break;
1675
1680
  case "radio":
1676
- this._widgetClass = qe;
1681
+ this._widgetClass = Je;
1677
1682
  break;
1678
1683
  case "multicheckbox":
1679
1684
  this._widgetClass = se;
1680
1685
  break;
1681
1686
  case "switch":
1682
- this._widgetClass = Je;
1687
+ this._widgetClass = He;
1683
1688
  break;
1684
1689
  case "steps":
1685
- this._widgetClass = He;
1690
+ this._widgetClass = Qe;
1686
1691
  break;
1687
1692
  case "codeeditor":
1688
1693
  this._widgetClass = re;
1689
1694
  break;
1690
1695
  case "time":
1691
- this._widgetClass = Qe;
1696
+ this._widgetClass = Xe;
1692
1697
  break;
1693
1698
  case "html_preview":
1694
- this._widgetClass = Ee;
1699
+ this._widgetClass = Ve;
1695
1700
  break;
1696
1701
  case "alert":
1697
- this._widgetClass = Xe;
1702
+ this._widgetClass = Ue;
1698
1703
  break;
1699
1704
  case "comments_timeline":
1700
- this._widgetClass = Ue;
1705
+ this._widgetClass = Ke;
1701
1706
  break;
1702
1707
  case "json":
1703
1708
  this._widgetClass = H;
@@ -1709,13 +1714,13 @@ class $ {
1709
1714
  this._widgetClass = R;
1710
1715
  break;
1711
1716
  case "carousel":
1712
- this._widgetClass = Ze;
1717
+ this._widgetClass = et;
1713
1718
  break;
1714
1719
  case "colorPicker":
1715
- this._widgetClass = et;
1720
+ this._widgetClass = tt;
1716
1721
  break;
1717
1722
  case "qrcode":
1718
- this._widgetClass = tt;
1723
+ this._widgetClass = it;
1719
1724
  break;
1720
1725
  }
1721
1726
  }
@@ -1738,7 +1743,7 @@ class $ {
1738
1743
  }
1739
1744
  }
1740
1745
  }
1741
- const it = ({
1746
+ const st = ({
1742
1747
  fieldName: i,
1743
1748
  values: t,
1744
1749
  fields: e
@@ -1763,7 +1768,7 @@ const it = ({
1763
1768
  n[o] = d.some((_) => _);
1764
1769
  }
1765
1770
  return n;
1766
- }, st = ({
1771
+ }, rt = ({
1767
1772
  states: i,
1768
1773
  values: t
1769
1774
  }) => {
@@ -1772,7 +1777,7 @@ const it = ({
1772
1777
  const e = i.split(",");
1773
1778
  return e.length === 0 ? {} : e.includes(t.state) ? {} : { invisible: !0 };
1774
1779
  };
1775
- function rt({
1780
+ function nt({
1776
1781
  values: i = {},
1777
1782
  fieldName: t,
1778
1783
  fields: e = {}
@@ -1800,7 +1805,7 @@ const ne = ({
1800
1805
  return u.forEach((c) => {
1801
1806
  const b = c[1];
1802
1807
  if (!c[1].includes("'") && c[1] !== "true" && c[1] !== "false") {
1803
- const x = rt({
1808
+ const x = nt({
1804
1809
  values: t,
1805
1810
  fields: e,
1806
1811
  fieldName: b === "active_id" ? "id" : b
@@ -1815,7 +1820,7 @@ const ne = ({
1815
1820
  } catch {
1816
1821
  return;
1817
1822
  }
1818
- }, Tt = (i) => {
1823
+ }, zt = (i) => {
1819
1824
  const t = [];
1820
1825
  try {
1821
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) => {
@@ -1835,14 +1840,14 @@ function ae(i) {
1835
1840
  function le(i) {
1836
1841
  return typeof i == "object" && i !== null && typeof i != "string";
1837
1842
  }
1838
- const nt = (i) => {
1843
+ const at = (i) => {
1839
1844
  const t = i.trim().replace(")", "").split("("), e = t[0], n = t[1].split(",").map((a) => a.trim());
1840
1845
  return {
1841
1846
  method: e,
1842
1847
  args: n
1843
1848
  };
1844
1849
  };
1845
- function at(i) {
1850
+ function lt(i) {
1846
1851
  const t = [];
1847
1852
  function e(s) {
1848
1853
  const n = [];
@@ -1854,7 +1859,7 @@ function at(i) {
1854
1859
  e(s);
1855
1860
  return t.flat();
1856
1861
  }
1857
- class zt {
1862
+ class St {
1858
1863
  constructor(t, e = 4) {
1859
1864
  /**
1860
1865
  * Object containing fields specification of the form.
@@ -1970,7 +1975,7 @@ class zt {
1970
1975
  container: this._container,
1971
1976
  values: s
1972
1977
  });
1973
- const l = at(this._container._rows);
1978
+ const l = lt(this._container._rows);
1974
1979
  l.forEach((d) => {
1975
1980
  const _ = d;
1976
1981
  _._id && _._context && (this._contextForFields[_._id] = d._context);
@@ -2013,10 +2018,10 @@ class zt {
2013
2018
  widgetType: l
2014
2019
  });
2015
2020
  let g;
2016
- l === "button" && h.states ? g = st({
2021
+ l === "button" && h.states ? g = rt({
2017
2022
  states: h.states,
2018
2023
  values: s
2019
- }) : g = it({
2024
+ }) : g = st({
2020
2025
  fieldName: h.name,
2021
2026
  values: s,
2022
2027
  fields: this._fields
@@ -2026,7 +2031,7 @@ class zt {
2026
2031
  values: s,
2027
2032
  fields: this._fields
2028
2033
  });
2029
- h.on_change && (this._onChangeFields[h.name] = nt(
2034
+ h.on_change && (this._onChangeFields[h.name] = at(
2030
2035
  h.on_change
2031
2036
  ));
2032
2037
  let b;
@@ -2058,7 +2063,7 @@ class zt {
2058
2063
  function Q(i) {
2059
2064
  return i ? Array.isArray(i) && i.length > 0 ? !0 : typeof i == "string" && i !== "" && i !== "[]" : !1;
2060
2065
  }
2061
- class St {
2066
+ class It {
2062
2067
  constructor(t) {
2063
2068
  /**
2064
2069
  * Object containing fields specification of the form.
@@ -2172,7 +2177,7 @@ class St {
2172
2177
  return this._columns.find((e) => e.findById ? e.findById(t) : !1);
2173
2178
  }
2174
2179
  }
2175
- const lt = {
2180
+ const ot = {
2176
2181
  text: "text",
2177
2182
  many2one: "many2one",
2178
2183
  char: "char",
@@ -2185,7 +2190,7 @@ const lt = {
2185
2190
  date: "date",
2186
2191
  datetime: "datetime"
2187
2192
  };
2188
- class It {
2193
+ class Et {
2189
2194
  constructor(t, e, s = 8) {
2190
2195
  /**
2191
2196
  * Object containing the specific fields for primary and secondary search fields
@@ -2233,7 +2238,7 @@ class It {
2233
2238
  colspan: 2
2234
2239
  }, { type: a, widget: l } = n;
2235
2240
  let o = l ?? a;
2236
- return lt[o] === void 0 && (o = a), e.createWidget(o, n);
2241
+ return ot[o] === void 0 && (o = a), e.createWidget(o, n);
2237
2242
  });
2238
2243
  }
2239
2244
  /**
@@ -2244,7 +2249,7 @@ class It {
2244
2249
  return this.advancedSearchContainer.findById(t);
2245
2250
  }
2246
2251
  }
2247
- const Et = ({
2252
+ const Vt = ({
2248
2253
  domain: i,
2249
2254
  widgetFieldName: t
2250
2255
  }) => {
@@ -2259,8 +2264,8 @@ const Et = ({
2259
2264
  n.length - 1
2260
2265
  )) : (o = n, d = "id"), o === t && e.push([d, a, l]);
2261
2266
  }), e;
2262
- }, Vt = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((t) => t.trim()).filter((t) => !t.includes("'"));
2263
- class ot {
2267
+ }, Yt = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((t) => t.trim()).filter((t) => !t.includes("'"));
2268
+ class ct {
2264
2269
  constructor(t) {
2265
2270
  r(this, "_action_id", null);
2266
2271
  r(this, "_position", null);
@@ -2273,7 +2278,7 @@ class ot {
2273
2278
  return this._position;
2274
2279
  }
2275
2280
  }
2276
- class Yt {
2281
+ class Dt {
2277
2282
  constructor(t) {
2278
2283
  r(this, "_string", null);
2279
2284
  r(this, "_items", []);
@@ -2281,7 +2286,7 @@ class Yt {
2281
2286
  this._string = e.attributes.string || null;
2282
2287
  const { children: s } = e;
2283
2288
  s.forEach((n) => {
2284
- n.tagName === "dashboard_item" && this._items.push(new ot(n.attributes));
2289
+ n.tagName === "dashboard_item" && this._items.push(new ct(n.attributes));
2285
2290
  });
2286
2291
  }
2287
2292
  get string() {
@@ -2345,7 +2350,7 @@ class ce extends oe {
2345
2350
  return this._suffix;
2346
2351
  }
2347
2352
  }
2348
- class ct extends ce {
2353
+ class dt extends ce {
2349
2354
  constructor(e, s) {
2350
2355
  super(e, s);
2351
2356
  r(this, "_field");
@@ -2365,7 +2370,7 @@ class ct extends ce {
2365
2370
  return this._operator;
2366
2371
  }
2367
2372
  }
2368
- const dt = (i) => {
2373
+ const ut = (i) => {
2369
2374
  const t = [];
2370
2375
  let e;
2371
2376
  if (i.forEach((s) => {
@@ -2375,10 +2380,10 @@ const dt = (i) => {
2375
2380
  throw new Error(`Field ${l} doesn't have an axis`);
2376
2381
  if (!l)
2377
2382
  throw new Error("Missing name attribute for field");
2378
- n === "x" ? e = new _t({
2383
+ n === "x" ? e = new ft({
2379
2384
  name: l
2380
2385
  }) : n === "y" && t.push(
2381
- new ht({
2386
+ new _t({
2382
2387
  name: l,
2383
2388
  operator: a,
2384
2389
  label: o,
@@ -2401,7 +2406,7 @@ class j extends oe {
2401
2406
  r(this, "_x");
2402
2407
  r(this, "_y");
2403
2408
  this._type = e;
2404
- const n = dt(s.children);
2409
+ const n = ut(s.children);
2405
2410
  this._x = n.x, this._y = n.y;
2406
2411
  }
2407
2412
  get x() {
@@ -2411,17 +2416,17 @@ class j extends oe {
2411
2416
  return this._y;
2412
2417
  }
2413
2418
  }
2414
- const ut = {
2419
+ const ht = {
2415
2420
  indicator: ce,
2416
- indicatorField: ct,
2421
+ indicatorField: dt,
2417
2422
  line: j,
2418
2423
  bar: j,
2419
2424
  pie: j
2420
- }, Dt = (i) => {
2425
+ }, jt = (i) => {
2421
2426
  const t = D.parse(i).filter((n) => n.tagName === "graph")[0], e = t.attributes.type;
2422
2427
  if (!e)
2423
2428
  throw new Error(`${e} is not a valid graph`);
2424
- const s = ut[e];
2429
+ const s = ht[e];
2425
2430
  if (!s)
2426
2431
  throw new Error(`${e} not found as a GraphModel`);
2427
2432
  return new s(e, t);
@@ -2439,7 +2444,7 @@ class de {
2439
2444
  return this._axis;
2440
2445
  }
2441
2446
  }
2442
- class ht extends de {
2447
+ class _t extends de {
2443
2448
  constructor({
2444
2449
  name: e,
2445
2450
  operator: s,
@@ -2462,12 +2467,12 @@ class ht extends de {
2462
2467
  return this._stacked;
2463
2468
  }
2464
2469
  }
2465
- class _t extends de {
2470
+ class ft extends de {
2466
2471
  constructor({ name: t }) {
2467
2472
  super({ name: t, axis: "x" });
2468
2473
  }
2469
2474
  }
2470
- const ft = ({ ooui: i }) => {
2475
+ const gt = ({ ooui: i }) => {
2471
2476
  const e = [i.x.name];
2472
2477
  return i.y ? (i.y.forEach((s) => {
2473
2478
  s.operator !== "count" && !e.includes(s.name) && e.push(s.name), s.label && !e.includes(s.label) && e.push(s.label);
@@ -2489,27 +2494,27 @@ function q({
2489
2494
  }
2490
2495
  return { value: n, label: n };
2491
2496
  }
2492
- const jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2497
+ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2493
2498
  __proto__: null,
2494
- getFieldsToRetrieve: ft,
2499
+ getFieldsToRetrieve: gt,
2495
2500
  getValueAndLabelForField: q
2496
2501
  }, Symbol.toStringTag, { value: "Module" }));
2497
- function gt({
2502
+ function mt({
2498
2503
  values: i,
2499
2504
  timerange: t,
2500
2505
  interval: e = 1
2501
2506
  }) {
2502
- const s = yt({
2507
+ const s = xt({
2503
2508
  values: i,
2504
2509
  timerange: t
2505
2510
  });
2506
- return mt({
2511
+ return bt({
2507
2512
  values: s,
2508
2513
  timerange: t,
2509
2514
  interval: e
2510
2515
  });
2511
2516
  }
2512
- function mt({
2517
+ function bt({
2513
2518
  values: i,
2514
2519
  timerange: t,
2515
2520
  interval: e = 1
@@ -2527,7 +2532,7 @@ function mt({
2527
2532
  return;
2528
2533
  const u = h.x, g = d[_ + 1].x;
2529
2534
  if (!ue([u, g], a)) {
2530
- const c = bt({
2535
+ const c = yt({
2531
2536
  dates: [u, g],
2532
2537
  timerange: t,
2533
2538
  interval: e
@@ -2544,7 +2549,7 @@ function mt({
2544
2549
  }
2545
2550
  }), s.sort((o, d) => o.x < d.x ? -1 : o.x > d.x ? 1 : 0);
2546
2551
  }
2547
- function bt({
2552
+ function yt({
2548
2553
  dates: i,
2549
2554
  timerange: t,
2550
2555
  interval: e = 1
@@ -2566,11 +2571,11 @@ function bt({
2566
2571
  }
2567
2572
  return s;
2568
2573
  }
2569
- function yt({
2574
+ function xt({
2570
2575
  values: i,
2571
2576
  timerange: t
2572
2577
  }) {
2573
- const e = xt({
2578
+ const e = pt({
2574
2579
  values: i,
2575
2580
  timerange: t
2576
2581
  }), s = [], n = he({
@@ -2588,23 +2593,23 @@ function yt({
2588
2593
  });
2589
2594
  }), s;
2590
2595
  }
2591
- function xt({
2596
+ function pt({
2592
2597
  values: i,
2593
2598
  timerange: t
2594
2599
  }) {
2595
2600
  return i.map((e) => ({
2596
2601
  ...e,
2597
- x: pt({
2602
+ x: wt({
2598
2603
  date: e.x,
2599
2604
  timerange: t
2600
2605
  })
2601
2606
  }));
2602
2607
  }
2603
- function pt({
2608
+ function wt({
2604
2609
  date: i,
2605
2610
  timerange: t
2606
2611
  }) {
2607
- let e = wt(i);
2612
+ let e = Ft(i);
2608
2613
  const s = T(i, e);
2609
2614
  switch (t) {
2610
2615
  case "hour": {
@@ -2630,7 +2635,7 @@ function pt({
2630
2635
  }
2631
2636
  return s.format(e);
2632
2637
  }
2633
- function wt(i) {
2638
+ function Ft(i) {
2634
2639
  return i.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
2635
2640
  }
2636
2641
  function ue(i, t) {
@@ -2671,7 +2676,7 @@ function E(i) {
2671
2676
  return "YYYY-MM-DD HH:mm";
2672
2677
  }
2673
2678
  }
2674
- const Ft = {
2679
+ const vt = {
2675
2680
  count: "count",
2676
2681
  "+": "sum",
2677
2682
  "-": "subtract",
@@ -2679,7 +2684,7 @@ const Ft = {
2679
2684
  avg: "average",
2680
2685
  min: "min",
2681
2686
  max: "max"
2682
- }, vt = ({
2687
+ }, Ct = ({
2683
2688
  ooui: i,
2684
2689
  values: t,
2685
2690
  fields: e,
@@ -2746,7 +2751,7 @@ const Ft = {
2746
2751
  (c) => c.x !== !1
2747
2752
  ));
2748
2753
  let u = h;
2749
- i.timerange ? u = gt({
2754
+ i.timerange ? u = mt({
2750
2755
  values: u,
2751
2756
  timerange: i.timerange,
2752
2757
  interval: i.interval
@@ -2828,7 +2833,7 @@ function B({
2828
2833
  s[a] || (s[a] = { label: l, entries: [] }), s[a].entries.push(n);
2829
2834
  }), s;
2830
2835
  }
2831
- function Ct(i) {
2836
+ function kt(i) {
2832
2837
  let t = [];
2833
2838
  return Object.keys(i).forEach((e) => {
2834
2839
  const s = i[e];
@@ -2851,85 +2856,86 @@ function fe(i, t = 0.1) {
2851
2856
  max: n + a
2852
2857
  };
2853
2858
  }
2854
- const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2859
+ const At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2855
2860
  __proto__: null,
2856
- getAllObjectsInGroupedValues: Ct,
2861
+ getAllObjectsInGroupedValues: kt,
2857
2862
  getMinMax: fe,
2858
2863
  getValueForOperator: Y,
2859
2864
  getValuesForYField: N,
2860
2865
  getValuesGroupedByField: B,
2861
2866
  getYAxisFieldname: _e,
2862
- labelsForOperator: Ft,
2863
- processGraphData: vt
2867
+ labelsForOperator: vt,
2868
+ processGraphData: Ct
2864
2869
  }, Symbol.toStringTag, { value: "Module" }));
2865
2870
  export {
2866
- Xe as Alert,
2871
+ Te as ActionButtons,
2872
+ Ue as Alert,
2867
2873
  ke as Avatar,
2868
- Ae as Binary,
2874
+ Ne as Binary,
2869
2875
  te as Boolean,
2870
2876
  ee as Button,
2871
2877
  We as ButtonGroup,
2872
- Ze as Carousel,
2878
+ et as Carousel,
2873
2879
  A as Char,
2874
2880
  re as CodeEditor,
2875
- et as ColorPicker,
2876
- Ue as Comments,
2881
+ tt as ColorPicker,
2882
+ Ke as Comments,
2877
2883
  V as Container,
2878
2884
  w as ContainerWidget,
2879
- Yt as Dashboard,
2880
- ot as DashboardItem,
2881
- Ye as Date,
2882
- De as DateTime,
2883
- Ke as Email,
2885
+ Dt as Dashboard,
2886
+ ct as DashboardItem,
2887
+ De as Date,
2888
+ je as DateTime,
2889
+ Ze as Email,
2884
2890
  f as Field,
2885
2891
  G as Float,
2886
- Ie as FloatTime,
2887
- zt as Form,
2892
+ Ee as FloatTime,
2893
+ St as Form,
2888
2894
  oe as Graph,
2889
2895
  de as GraphAxis,
2890
2896
  j as GraphChart,
2891
2897
  ce as GraphIndicator,
2892
- ct as GraphIndicatorField,
2893
- _t as GraphXAxis,
2894
- ht as GraphYAxis,
2898
+ dt as GraphIndicatorField,
2899
+ ft as GraphXAxis,
2900
+ _t as GraphYAxis,
2895
2901
  Oe as Group,
2896
- Ee as HTMLPreview,
2897
- Ne as Image,
2898
- Le as Indicator,
2899
- Se as Integer,
2902
+ Ve as HTMLPreview,
2903
+ Be as Image,
2904
+ Ge as Indicator,
2905
+ Ie as Integer,
2900
2906
  H as JSONField,
2901
2907
  Z as Label,
2902
- Te as Many2one,
2903
- ze as Markdown,
2908
+ ze as Many2one,
2909
+ Se as Markdown,
2904
2910
  se as MultiCheckbox,
2905
2911
  K as NewLine,
2906
2912
  M as Notebook,
2907
2913
  ie as One2many,
2908
2914
  Pe as Page,
2909
- Ve as ProgressBar,
2910
- tt as QRCode,
2911
- qe as Radio,
2912
- Me as Reference,
2913
- lt as SearchFieldTypes,
2914
- It as SearchFilter,
2915
+ Ye as ProgressBar,
2916
+ it as QRCode,
2917
+ Je as Radio,
2918
+ Ae as Reference,
2919
+ ot as SearchFieldTypes,
2920
+ Et as SearchFilter,
2915
2921
  z as Selection,
2916
- je as Separator,
2922
+ Me as Separator,
2917
2923
  R as Spinner,
2918
- He as Steps,
2919
- Je as Switch,
2920
- $e as Tag,
2921
- Ge as Tags,
2924
+ Qe as Steps,
2925
+ He as Switch,
2926
+ qe as Tag,
2927
+ $e as Tags,
2922
2928
  L as Text,
2923
- Qe as Time,
2924
- Re as Timeline,
2925
- St as Tree,
2929
+ Xe as Time,
2930
+ Le as Timeline,
2931
+ It as Tree,
2926
2932
  C as Widget,
2927
- jt as graphFieldUtils,
2928
- Mt as graphProcessor,
2933
+ Mt as graphFieldUtils,
2934
+ At as graphProcessor,
2929
2935
  ne as parseContext,
2930
- Tt as parseContextFields,
2931
- Vt as parseDomainFields,
2932
- Dt as parseGraph,
2933
- Et as transformDomainForChildWidget
2936
+ zt as parseContextFields,
2937
+ Yt as parseDomainFields,
2938
+ jt as parseGraph,
2939
+ Vt as transformDomainForChildWidget
2934
2940
  };
2935
2941
  //# sourceMappingURL=ooui.es.js.map