@gisce/ooui 2.25.0 → 2.26.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
@@ -653,7 +653,7 @@ const P = class P extends w {
653
653
  };
654
654
  n(P, "_defaultColspan", 3);
655
655
  let M = P;
656
- class B extends w {
656
+ class L extends w {
657
657
  constructor(e) {
658
658
  super(e);
659
659
  n(this, "_loading", !1);
@@ -666,7 +666,7 @@ class B extends w {
666
666
  this._loading = e;
667
667
  }
668
668
  }
669
- class Oe extends B {
669
+ class Oe extends L {
670
670
  constructor(e) {
671
671
  super(e);
672
672
  n(this, "_icon", null);
@@ -679,11 +679,17 @@ class Oe extends B {
679
679
  this._icon = e;
680
680
  }
681
681
  }
682
- class Pe extends B {
682
+ class Pe extends L {
683
683
  constructor(e) {
684
684
  super(e);
685
685
  n(this, "_icon", null);
686
- e && e.icon && (this._icon = e.icon);
686
+ n(this, "_height");
687
+ if (e && (e.icon && (this._icon = e.icon), e.height))
688
+ try {
689
+ this._height = parseInt(e.height);
690
+ } catch {
691
+ console.log("Error parsing height"), this._height = void 0;
692
+ }
687
693
  }
688
694
  get icon() {
689
695
  return this._icon;
@@ -691,6 +697,12 @@ class Pe extends B {
691
697
  set icon(e) {
692
698
  this._icon = e;
693
699
  }
700
+ get height() {
701
+ return this._height;
702
+ }
703
+ set height(e) {
704
+ this._height = e;
705
+ }
694
706
  }
695
707
  class Z extends f {
696
708
  constructor(e) {
@@ -795,7 +807,7 @@ class Te extends w {
795
807
  return this._container.rows.flat().filter((e) => !e.invisible);
796
808
  }
797
809
  }
798
- class q extends f {
810
+ class N extends f {
799
811
  constructor(e) {
800
812
  super(e);
801
813
  /**
@@ -838,7 +850,7 @@ class q extends f {
838
850
  this._translatable = e;
839
851
  }
840
852
  }
841
- class L extends f {
853
+ class G extends f {
842
854
  constructor(e) {
843
855
  super(e);
844
856
  /**
@@ -944,7 +956,7 @@ class We extends f {
944
956
  this._relation = e;
945
957
  }
946
958
  }
947
- class Ee extends L {
959
+ class Ee extends G {
948
960
  }
949
961
  class ee extends f {
950
962
  constructor(t) {
@@ -956,7 +968,7 @@ class Ie extends f {
956
968
  super(t);
957
969
  }
958
970
  }
959
- class G extends f {
971
+ class R extends f {
960
972
  constructor(e) {
961
973
  super(e);
962
974
  /**
@@ -989,11 +1001,11 @@ class G extends f {
989
1001
  this._decimalDigits = e;
990
1002
  }
991
1003
  }
992
- class Se extends G {
1004
+ class Se extends R {
993
1005
  }
994
1006
  class ze extends f {
995
1007
  }
996
- class Ve extends G {
1008
+ class Ve extends R {
997
1009
  }
998
1010
  class Ye extends f {
999
1011
  constructor(t) {
@@ -1344,7 +1356,7 @@ class He extends f {
1344
1356
  this._lastStep = e;
1345
1357
  }
1346
1358
  }
1347
- class se extends L {
1359
+ class se extends G {
1348
1360
  constructor(e) {
1349
1361
  super(e);
1350
1362
  n(this, "_lang", null);
@@ -1463,7 +1475,12 @@ class Ze extends w {
1463
1475
  return this._container.rows.flat().filter((e) => !e.invisible);
1464
1476
  }
1465
1477
  }
1466
- class R {
1478
+ class et extends N {
1479
+ get showText() {
1480
+ return this.parsedWidgetProps.show_text ?? !0;
1481
+ }
1482
+ }
1483
+ class $ {
1467
1484
  constructor() {
1468
1485
  /**
1469
1486
  * Widget class
@@ -1485,10 +1502,10 @@ class R {
1485
1502
  this._widgetClass = K;
1486
1503
  break;
1487
1504
  case "char":
1488
- this._widgetClass = q;
1505
+ this._widgetClass = N;
1489
1506
  break;
1490
1507
  case "text":
1491
- this._widgetClass = L;
1508
+ this._widgetClass = G;
1492
1509
  break;
1493
1510
  case "button":
1494
1511
  this._widgetClass = Z;
@@ -1509,7 +1526,7 @@ class R {
1509
1526
  this._widgetClass = Ie;
1510
1527
  break;
1511
1528
  case "float":
1512
- this._widgetClass = G;
1529
+ this._widgetClass = R;
1513
1530
  break;
1514
1531
  case "float_time":
1515
1532
  this._widgetClass = Se;
@@ -1538,7 +1555,7 @@ class R {
1538
1555
  this._widgetClass = je;
1539
1556
  break;
1540
1557
  case "url":
1541
- this._widgetClass = q;
1558
+ this._widgetClass = N;
1542
1559
  break;
1543
1560
  case "email":
1544
1561
  this._widgetClass = Ke;
@@ -1604,11 +1621,14 @@ class R {
1604
1621
  this._widgetClass = J;
1605
1622
  break;
1606
1623
  case "spinner":
1607
- this._widgetClass = B;
1624
+ this._widgetClass = L;
1608
1625
  break;
1609
1626
  case "carousel":
1610
1627
  this._widgetClass = Ze;
1611
1628
  break;
1629
+ case "colorPicker":
1630
+ this._widgetClass = et;
1631
+ break;
1612
1632
  }
1613
1633
  }
1614
1634
  createWidget(t, e) {
@@ -1630,7 +1650,7 @@ class R {
1630
1650
  }
1631
1651
  }
1632
1652
  }
1633
- const et = ({
1653
+ const tt = ({
1634
1654
  fieldName: i,
1635
1655
  values: t,
1636
1656
  fields: e
@@ -1655,7 +1675,7 @@ const et = ({
1655
1675
  r[o] = u.some((_) => _);
1656
1676
  }
1657
1677
  return r;
1658
- }, tt = ({
1678
+ }, it = ({
1659
1679
  states: i,
1660
1680
  values: t
1661
1681
  }) => {
@@ -1664,7 +1684,7 @@ const et = ({
1664
1684
  const e = i.split(",");
1665
1685
  return e.length === 0 ? {} : e.includes(t.state) ? {} : { invisible: !0 };
1666
1686
  };
1667
- function it({
1687
+ function st({
1668
1688
  values: i = {},
1669
1689
  fieldName: t,
1670
1690
  fields: e = {}
@@ -1692,7 +1712,7 @@ const ne = ({
1692
1712
  return d.forEach((c) => {
1693
1713
  const m = c[1];
1694
1714
  if (!c[1].includes("'") && c[1] !== "true" && c[1] !== "false") {
1695
- const p = it({
1715
+ const p = st({
1696
1716
  values: t,
1697
1717
  fields: e,
1698
1718
  fieldName: m === "active_id" ? "id" : m
@@ -1707,7 +1727,7 @@ const ne = ({
1707
1727
  } catch {
1708
1728
  return;
1709
1729
  }
1710
- }, Pt = (i) => {
1730
+ }, Tt = (i) => {
1711
1731
  const t = [];
1712
1732
  try {
1713
1733
  return !i || ae(i) || typeof i != "string" ? t : re(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) => {
@@ -1727,14 +1747,14 @@ function re(i) {
1727
1747
  function ae(i) {
1728
1748
  return typeof i == "object" && i !== null && typeof i != "string";
1729
1749
  }
1730
- const st = (i) => {
1750
+ const nt = (i) => {
1731
1751
  const t = i.trim().replace(")", "").split("("), e = t[0], r = t[1].split(",").map((a) => a.trim());
1732
1752
  return {
1733
1753
  method: e,
1734
1754
  args: r
1735
1755
  };
1736
1756
  };
1737
- function nt(i) {
1757
+ function rt(i) {
1738
1758
  const t = [];
1739
1759
  function e(s) {
1740
1760
  const r = [];
@@ -1746,7 +1766,7 @@ function nt(i) {
1746
1766
  e(s);
1747
1767
  return t.flat();
1748
1768
  }
1749
- class Tt {
1769
+ class Wt {
1750
1770
  constructor(t, e = 4) {
1751
1771
  /**
1752
1772
  * Object containing fields specification of the form.
@@ -1862,7 +1882,7 @@ class Tt {
1862
1882
  container: this._container,
1863
1883
  values: s
1864
1884
  });
1865
- const l = nt(this._container._rows);
1885
+ const l = rt(this._container._rows);
1866
1886
  l.forEach((u) => {
1867
1887
  const _ = u;
1868
1888
  _._id && _._context && (this._contextForFields[_._id] = u._context);
@@ -1873,7 +1893,7 @@ class Tt {
1873
1893
  container: e,
1874
1894
  values: s
1875
1895
  }) {
1876
- const r = new R();
1896
+ const r = new $();
1877
1897
  t.filter((a) => typeof a == "object").forEach((a) => {
1878
1898
  var v, F;
1879
1899
  const { tagName: l, attributes: o, children: u } = a;
@@ -1905,10 +1925,10 @@ class Tt {
1905
1925
  widgetType: l
1906
1926
  });
1907
1927
  let g;
1908
- l === "button" && h.states ? g = tt({
1928
+ l === "button" && h.states ? g = it({
1909
1929
  states: h.states,
1910
1930
  values: s
1911
- }) : g = et({
1931
+ }) : g = tt({
1912
1932
  fieldName: h.name,
1913
1933
  values: s,
1914
1934
  fields: this._fields
@@ -1918,7 +1938,7 @@ class Tt {
1918
1938
  values: s,
1919
1939
  fields: this._fields
1920
1940
  });
1921
- h.on_change && (this._onChangeFields[h.name] = st(
1941
+ h.on_change && (this._onChangeFields[h.name] = nt(
1922
1942
  h.on_change
1923
1943
  ));
1924
1944
  let m;
@@ -1950,7 +1970,7 @@ class Tt {
1950
1970
  function H(i) {
1951
1971
  return i ? Array.isArray(i) && i.length > 0 ? !0 : typeof i == "string" && i !== "" && i !== "[]" : !1;
1952
1972
  }
1953
- class Wt {
1973
+ class Et {
1954
1974
  constructor(t) {
1955
1975
  /**
1956
1976
  * Object containing fields specification of the form.
@@ -2024,7 +2044,7 @@ class Wt {
2024
2044
  parse(t) {
2025
2045
  const e = D.parse(t).filter((r) => r.tagName === "tree")[0];
2026
2046
  this._string = e.attributes.string || null, this._string && (this._string = b(this._string)), this._colors = e.attributes.colors || null, this._colors && (this._colors = b(this._colors)), this._status = e.attributes.status || null, this._status && (this._status = b(this._status)), this._editable = e.attributes.editable || null, this._infinite = e.attributes.infinite || !1;
2027
- const s = new R();
2047
+ const s = new $();
2028
2048
  e.children.forEach((r) => {
2029
2049
  const { tagName: a, attributes: l } = r;
2030
2050
  let o = null;
@@ -2064,7 +2084,7 @@ class Wt {
2064
2084
  return this._columns.find((e) => e.findById ? e.findById(t) : !1);
2065
2085
  }
2066
2086
  }
2067
- const rt = {
2087
+ const at = {
2068
2088
  text: "text",
2069
2089
  many2one: "many2one",
2070
2090
  char: "char",
@@ -2077,7 +2097,7 @@ const rt = {
2077
2097
  date: "date",
2078
2098
  datetime: "datetime"
2079
2099
  };
2080
- class Et {
2100
+ class It {
2081
2101
  constructor(t, e, s = 8) {
2082
2102
  /**
2083
2103
  * Object containing the specific fields for primary and secondary search fields
@@ -2104,7 +2124,7 @@ class Et {
2104
2124
  return this._advancedSearchContainer;
2105
2125
  }
2106
2126
  parse() {
2107
- const t = new R();
2127
+ const t = new $();
2108
2128
  this.parseFields(
2109
2129
  this.searchFields.primary,
2110
2130
  t
@@ -2125,7 +2145,7 @@ class Et {
2125
2145
  colspan: 2
2126
2146
  }, { type: a, widget: l } = r;
2127
2147
  let o = l ?? a;
2128
- return rt[o] === void 0 && (o = a), e.createWidget(o, r);
2148
+ return at[o] === void 0 && (o = a), e.createWidget(o, r);
2129
2149
  });
2130
2150
  }
2131
2151
  /**
@@ -2136,7 +2156,7 @@ class Et {
2136
2156
  return this.advancedSearchContainer.findById(t);
2137
2157
  }
2138
2158
  }
2139
- const It = ({
2159
+ const St = ({
2140
2160
  domain: i,
2141
2161
  widgetFieldName: t
2142
2162
  }) => {
@@ -2151,8 +2171,8 @@ const It = ({
2151
2171
  r.length - 1
2152
2172
  )) : (o = r, u = "id"), o === t && e.push([u, a, l]);
2153
2173
  }), e;
2154
- }, St = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((t) => t.trim()).filter((t) => !t.includes("'"));
2155
- class at {
2174
+ }, zt = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((t) => t.trim()).filter((t) => !t.includes("'"));
2175
+ class lt {
2156
2176
  constructor(t) {
2157
2177
  n(this, "_action_id", null);
2158
2178
  n(this, "_position", null);
@@ -2165,7 +2185,7 @@ class at {
2165
2185
  return this._position;
2166
2186
  }
2167
2187
  }
2168
- class zt {
2188
+ class Vt {
2169
2189
  constructor(t) {
2170
2190
  n(this, "_string", null);
2171
2191
  n(this, "_items", []);
@@ -2173,7 +2193,7 @@ class zt {
2173
2193
  this._string = e.attributes.string || null;
2174
2194
  const { children: s } = e;
2175
2195
  s.forEach((r) => {
2176
- r.tagName === "dashboard_item" && this._items.push(new at(r.attributes));
2196
+ r.tagName === "dashboard_item" && this._items.push(new lt(r.attributes));
2177
2197
  });
2178
2198
  }
2179
2199
  get string() {
@@ -2237,7 +2257,7 @@ class oe extends le {
2237
2257
  return this._suffix;
2238
2258
  }
2239
2259
  }
2240
- class lt extends oe {
2260
+ class ot extends oe {
2241
2261
  constructor(e, s) {
2242
2262
  super(e, s);
2243
2263
  n(this, "_field");
@@ -2257,7 +2277,7 @@ class lt extends oe {
2257
2277
  return this._operator;
2258
2278
  }
2259
2279
  }
2260
- const ot = (i) => {
2280
+ const ct = (i) => {
2261
2281
  const t = [];
2262
2282
  let e;
2263
2283
  if (i.forEach((s) => {
@@ -2267,10 +2287,10 @@ const ot = (i) => {
2267
2287
  throw new Error(`Field ${l} doesn't have an axis`);
2268
2288
  if (!l)
2269
2289
  throw new Error("Missing name attribute for field");
2270
- r === "x" ? e = new dt({
2290
+ r === "x" ? e = new ht({
2271
2291
  name: l
2272
2292
  }) : r === "y" && t.push(
2273
- new ut({
2293
+ new dt({
2274
2294
  name: l,
2275
2295
  operator: a,
2276
2296
  label: o,
@@ -2293,7 +2313,7 @@ class j extends le {
2293
2313
  n(this, "_x");
2294
2314
  n(this, "_y");
2295
2315
  this._type = e;
2296
- const r = ot(s.children);
2316
+ const r = ct(s.children);
2297
2317
  this._x = r.x, this._y = r.y;
2298
2318
  }
2299
2319
  get x() {
@@ -2303,17 +2323,17 @@ class j extends le {
2303
2323
  return this._y;
2304
2324
  }
2305
2325
  }
2306
- const ct = {
2326
+ const ut = {
2307
2327
  indicator: oe,
2308
- indicatorField: lt,
2328
+ indicatorField: ot,
2309
2329
  line: j,
2310
2330
  bar: j,
2311
2331
  pie: j
2312
- }, Vt = (i) => {
2332
+ }, Yt = (i) => {
2313
2333
  const t = D.parse(i).filter((r) => r.tagName === "graph")[0], e = t.attributes.type;
2314
2334
  if (!e)
2315
2335
  throw new Error(`${e} is not a valid graph`);
2316
- const s = ct[e];
2336
+ const s = ut[e];
2317
2337
  if (!s)
2318
2338
  throw new Error(`${e} not found as a GraphModel`);
2319
2339
  return new s(e, t);
@@ -2331,7 +2351,7 @@ class ce {
2331
2351
  return this._axis;
2332
2352
  }
2333
2353
  }
2334
- class ut extends ce {
2354
+ class dt extends ce {
2335
2355
  constructor({
2336
2356
  name: e,
2337
2357
  operator: s,
@@ -2354,18 +2374,18 @@ class ut extends ce {
2354
2374
  return this._stacked;
2355
2375
  }
2356
2376
  }
2357
- class dt extends ce {
2377
+ class ht extends ce {
2358
2378
  constructor({ name: t }) {
2359
2379
  super({ name: t, axis: "x" });
2360
2380
  }
2361
2381
  }
2362
- const ht = ({ ooui: i }) => {
2382
+ const _t = ({ ooui: i }) => {
2363
2383
  const e = [i.x.name];
2364
2384
  return i.y ? (i.y.forEach((s) => {
2365
2385
  s.operator !== "count" && !e.includes(s.name) && e.push(s.name), s.label && !e.includes(s.label) && e.push(s.label);
2366
2386
  }), e) : [];
2367
2387
  };
2368
- function $({
2388
+ function q({
2369
2389
  fields: i,
2370
2390
  values: t,
2371
2391
  fieldName: e
@@ -2381,27 +2401,27 @@ function $({
2381
2401
  }
2382
2402
  return { value: r, label: r };
2383
2403
  }
2384
- const Yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2404
+ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2385
2405
  __proto__: null,
2386
- getFieldsToRetrieve: ht,
2387
- getValueAndLabelForField: $
2406
+ getFieldsToRetrieve: _t,
2407
+ getValueAndLabelForField: q
2388
2408
  }, Symbol.toStringTag, { value: "Module" }));
2389
- function _t({
2409
+ function ft({
2390
2410
  values: i,
2391
2411
  timerange: t,
2392
2412
  interval: e = 1
2393
2413
  }) {
2394
- const s = mt({
2414
+ const s = bt({
2395
2415
  values: i,
2396
2416
  timerange: t
2397
2417
  });
2398
- return ft({
2418
+ return gt({
2399
2419
  values: s,
2400
2420
  timerange: t,
2401
2421
  interval: e
2402
2422
  });
2403
2423
  }
2404
- function ft({
2424
+ function gt({
2405
2425
  values: i,
2406
2426
  timerange: t,
2407
2427
  interval: e = 1
@@ -2419,7 +2439,7 @@ function ft({
2419
2439
  return;
2420
2440
  const d = h.x, g = u[_ + 1].x;
2421
2441
  if (!ue([d, g], a)) {
2422
- const c = gt({
2442
+ const c = mt({
2423
2443
  dates: [d, g],
2424
2444
  timerange: t,
2425
2445
  interval: e
@@ -2436,7 +2456,7 @@ function ft({
2436
2456
  }
2437
2457
  }), s.sort((o, u) => o.x < u.x ? -1 : o.x > u.x ? 1 : 0);
2438
2458
  }
2439
- function gt({
2459
+ function mt({
2440
2460
  dates: i,
2441
2461
  timerange: t,
2442
2462
  interval: e = 1
@@ -2458,11 +2478,11 @@ function gt({
2458
2478
  }
2459
2479
  return s;
2460
2480
  }
2461
- function mt({
2481
+ function bt({
2462
2482
  values: i,
2463
2483
  timerange: t
2464
2484
  }) {
2465
- const e = bt({
2485
+ const e = yt({
2466
2486
  values: i,
2467
2487
  timerange: t
2468
2488
  }), s = [], r = de({
@@ -2480,23 +2500,23 @@ function mt({
2480
2500
  });
2481
2501
  }), s;
2482
2502
  }
2483
- function bt({
2503
+ function yt({
2484
2504
  values: i,
2485
2505
  timerange: t
2486
2506
  }) {
2487
2507
  return i.map((e) => ({
2488
2508
  ...e,
2489
- x: yt({
2509
+ x: pt({
2490
2510
  date: e.x,
2491
2511
  timerange: t
2492
2512
  })
2493
2513
  }));
2494
2514
  }
2495
- function yt({
2515
+ function pt({
2496
2516
  date: i,
2497
2517
  timerange: t
2498
2518
  }) {
2499
- let e = pt(i);
2519
+ let e = xt(i);
2500
2520
  const s = T(i, e);
2501
2521
  switch (t) {
2502
2522
  case "hour": {
@@ -2522,7 +2542,7 @@ function yt({
2522
2542
  }
2523
2543
  return s.format(e);
2524
2544
  }
2525
- function pt(i) {
2545
+ function xt(i) {
2526
2546
  return i.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
2527
2547
  }
2528
2548
  function ue(i, t) {
@@ -2563,7 +2583,7 @@ function z(i) {
2563
2583
  return "YYYY-MM-DD HH:mm";
2564
2584
  }
2565
2585
  }
2566
- const xt = {
2586
+ const wt = {
2567
2587
  count: "count",
2568
2588
  "+": "sum",
2569
2589
  "-": "subtract",
@@ -2571,13 +2591,13 @@ const xt = {
2571
2591
  avg: "average",
2572
2592
  min: "min",
2573
2593
  max: "max"
2574
- }, wt = ({
2594
+ }, vt = ({
2575
2595
  ooui: i,
2576
2596
  values: t,
2577
2597
  fields: e,
2578
2598
  options: s
2579
2599
  }) => {
2580
- const r = A({
2600
+ const r = B({
2581
2601
  fieldName: i.x.name,
2582
2602
  values: t,
2583
2603
  fields: e
@@ -2586,13 +2606,13 @@ const xt = {
2586
2606
  Object.keys(r).forEach((m) => {
2587
2607
  const p = r[m].label, y = r[m].entries;
2588
2608
  if (c.label) {
2589
- const v = A({
2609
+ const v = B({
2590
2610
  fieldName: c.label,
2591
2611
  values: y,
2592
2612
  fields: e
2593
2613
  });
2594
2614
  Object.keys(v).forEach((F) => {
2595
- const x = v[F].entries, I = v[F].label, fe = N({
2615
+ const x = v[F].entries, I = v[F].label, fe = A({
2596
2616
  entries: x,
2597
2617
  fields: e,
2598
2618
  fieldName: c.name
@@ -2609,7 +2629,7 @@ const xt = {
2609
2629
  });
2610
2630
  });
2611
2631
  } else {
2612
- const v = N({
2632
+ const v = A({
2613
2633
  entries: y,
2614
2634
  fields: e,
2615
2635
  fieldName: c.name
@@ -2638,7 +2658,7 @@ const xt = {
2638
2658
  (c) => c.x !== !1
2639
2659
  ));
2640
2660
  let d = h;
2641
- i.timerange ? d = _t({
2661
+ i.timerange ? d = ft({
2642
2662
  values: d,
2643
2663
  timerange: i.timerange,
2644
2664
  interval: i.interval
@@ -2656,12 +2676,12 @@ const xt = {
2656
2676
  }
2657
2677
  return g;
2658
2678
  };
2659
- function N({
2679
+ function A({
2660
2680
  entries: i,
2661
2681
  fieldName: t,
2662
2682
  fields: e
2663
2683
  }) {
2664
- return i.map((s) => $({
2684
+ return i.map((s) => q({
2665
2685
  fieldName: t,
2666
2686
  values: s,
2667
2687
  fields: e
@@ -2705,14 +2725,14 @@ function Y({
2705
2725
  function S(i) {
2706
2726
  return Math.round((i + Number.EPSILON) * 100) / 100;
2707
2727
  }
2708
- function A({
2728
+ function B({
2709
2729
  fieldName: i,
2710
2730
  fields: t,
2711
2731
  values: e
2712
2732
  }) {
2713
2733
  const s = {};
2714
2734
  return e.forEach((r) => {
2715
- const { value: a, label: l } = $({
2735
+ const { value: a, label: l } = q({
2716
2736
  fields: t,
2717
2737
  values: r,
2718
2738
  fieldName: i
@@ -2720,7 +2740,7 @@ function A({
2720
2740
  s[a] || (s[a] = { label: l, entries: [] }), s[a].entries.push(r);
2721
2741
  }), s;
2722
2742
  }
2723
- function vt(i) {
2743
+ function Ft(i) {
2724
2744
  let t = [];
2725
2745
  return Object.keys(i).forEach((e) => {
2726
2746
  const s = i[e];
@@ -2743,16 +2763,16 @@ function _e(i, t = 0.1) {
2743
2763
  max: r + a
2744
2764
  };
2745
2765
  }
2746
- const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2766
+ const jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2747
2767
  __proto__: null,
2748
- getAllObjectsInGroupedValues: vt,
2768
+ getAllObjectsInGroupedValues: Ft,
2749
2769
  getMinMax: _e,
2750
2770
  getValueForOperator: Y,
2751
- getValuesForYField: N,
2752
- getValuesGroupedByField: A,
2771
+ getValuesForYField: A,
2772
+ getValuesGroupedByField: B,
2753
2773
  getYAxisFieldname: he,
2754
- labelsForOperator: xt,
2755
- processGraphData: wt
2774
+ labelsForOperator: wt,
2775
+ processGraphData: vt
2756
2776
  }, Symbol.toStringTag, { value: "Module" }));
2757
2777
  export {
2758
2778
  Xe as Alert,
@@ -2762,27 +2782,28 @@ export {
2762
2782
  Z as Button,
2763
2783
  Te as ButtonGroup,
2764
2784
  Ze as Carousel,
2765
- q as Char,
2785
+ N as Char,
2766
2786
  se as CodeEditor,
2787
+ et as ColorPicker,
2767
2788
  Ue as Comments,
2768
2789
  V as Container,
2769
2790
  w as ContainerWidget,
2770
- zt as Dashboard,
2771
- at as DashboardItem,
2791
+ Vt as Dashboard,
2792
+ lt as DashboardItem,
2772
2793
  Ye as Date,
2773
2794
  De as DateTime,
2774
2795
  Ke as Email,
2775
2796
  f as Field,
2776
- G as Float,
2797
+ R as Float,
2777
2798
  Se as FloatTime,
2778
- Tt as Form,
2799
+ Wt as Form,
2779
2800
  le as Graph,
2780
2801
  ce as GraphAxis,
2781
2802
  j as GraphChart,
2782
2803
  oe as GraphIndicator,
2783
- lt as GraphIndicatorField,
2784
- dt as GraphXAxis,
2785
- ut as GraphYAxis,
2804
+ ot as GraphIndicatorField,
2805
+ ht as GraphXAxis,
2806
+ dt as GraphYAxis,
2786
2807
  Pe as Group,
2787
2808
  ze as HTMLPreview,
2788
2809
  Ae as Image,
@@ -2800,26 +2821,26 @@ export {
2800
2821
  Ve as ProgressBar,
2801
2822
  qe as Radio,
2802
2823
  Me as Reference,
2803
- rt as SearchFieldTypes,
2804
- Et as SearchFilter,
2824
+ at as SearchFieldTypes,
2825
+ It as SearchFilter,
2805
2826
  E as Selection,
2806
2827
  je as Separator,
2807
- B as Spinner,
2828
+ L as Spinner,
2808
2829
  He as Steps,
2809
2830
  Je as Switch,
2810
2831
  $e as Tag,
2811
2832
  Re as Tags,
2812
- L as Text,
2833
+ G as Text,
2813
2834
  Qe as Time,
2814
2835
  Le as Timeline,
2815
- Wt as Tree,
2836
+ Et as Tree,
2816
2837
  C as Widget,
2817
- Yt as graphFieldUtils,
2818
- Dt as graphProcessor,
2838
+ Dt as graphFieldUtils,
2839
+ jt as graphProcessor,
2819
2840
  ne as parseContext,
2820
- Pt as parseContextFields,
2821
- St as parseDomainFields,
2822
- Vt as parseGraph,
2823
- It as transformDomainForChildWidget
2841
+ Tt as parseContextFields,
2842
+ zt as parseDomainFields,
2843
+ Yt as parseGraph,
2844
+ St as transformDomainForChildWidget
2824
2845
  };
2825
2846
  //# sourceMappingURL=ooui.es.js.map