@gisce/ooui 2.38.0 → 2.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ooui.es.js CHANGED
@@ -5,7 +5,7 @@ import { decode as xe } from "html-entities";
5
5
  import { evaluateCondition as pe } from "@gisce/conscheck";
6
6
  import * as D from "txml";
7
7
  import T from "moment";
8
- const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe = ({
8
+ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), ve = ({
9
9
  entry: i,
10
10
  values: t,
11
11
  fields: e
@@ -69,7 +69,7 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
69
69
  }) => {
70
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);
72
+ const x = h[g].map((y) => ve({ entry: y, values: t, fields: e })).every((y) => y);
73
73
  x ? u[g] = !0 : g === "readonly" && !x && s === "button" && (u[g] = !1);
74
74
  }
75
75
  return u;
@@ -84,7 +84,7 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
84
84
  }
85
85
  else
86
86
  return i;
87
- }, ve = ({
87
+ }, Fe = ({
88
88
  attrs: i,
89
89
  values: t,
90
90
  fields: e,
@@ -127,7 +127,7 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
127
127
  let a = {};
128
128
  if (i.json_attrs)
129
129
  try {
130
- a = ve({
130
+ a = Fe({
131
131
  attrs: i.json_attrs,
132
132
  values: t,
133
133
  fields: e,
@@ -669,8 +669,8 @@ const W = class W extends w {
669
669
  }
670
670
  };
671
671
  r(W, "_defaultColspan", 3);
672
- let M = W;
673
- class R extends w {
672
+ let N = W;
673
+ class j extends w {
674
674
  constructor(e) {
675
675
  super(e);
676
676
  r(this, "_loading", !1);
@@ -683,7 +683,7 @@ class R extends w {
683
683
  this._loading = e;
684
684
  }
685
685
  }
686
- class Pe extends R {
686
+ class Pe extends j {
687
687
  constructor(e) {
688
688
  super(e);
689
689
  r(this, "_icon", null);
@@ -696,7 +696,7 @@ class Pe extends R {
696
696
  this._icon = e;
697
697
  }
698
698
  }
699
- class Oe extends R {
699
+ class Oe extends j {
700
700
  constructor(e) {
701
701
  var s;
702
702
  super(e);
@@ -1182,9 +1182,9 @@ class Me extends C {
1182
1182
  return null;
1183
1183
  }
1184
1184
  }
1185
- class Ae extends z {
1185
+ class Ne extends z {
1186
1186
  }
1187
- class Ne extends f {
1187
+ class Ae extends f {
1188
1188
  constructor(e) {
1189
1189
  super(e);
1190
1190
  /**
@@ -1567,6 +1567,39 @@ class it extends f {
1567
1567
  return console.log(this.parsedWidgetProps), ((t = this.parsedWidgetProps) == null ? void 0 : t.showValue) ?? !1;
1568
1568
  }
1569
1569
  }
1570
+ class st extends j {
1571
+ constructor(e) {
1572
+ super(e);
1573
+ r(this, "_title", null);
1574
+ r(this, "_icon", null);
1575
+ /**
1576
+ * Height of the card component
1577
+ */
1578
+ r(this, "_height");
1579
+ if (e && (e.title && (this._title = e.title), e.icon && (this._icon = e.icon), e.height)) {
1580
+ const s = parseInt(e.height);
1581
+ this._height = isNaN(s) ? void 0 : s;
1582
+ }
1583
+ }
1584
+ get title() {
1585
+ return this._title;
1586
+ }
1587
+ set title(e) {
1588
+ this._title = e;
1589
+ }
1590
+ get icon() {
1591
+ return this._icon;
1592
+ }
1593
+ set icon(e) {
1594
+ this._icon = e;
1595
+ }
1596
+ get height() {
1597
+ return this._height;
1598
+ }
1599
+ set height(e) {
1600
+ this._height = e;
1601
+ }
1602
+ }
1570
1603
  class $ {
1571
1604
  constructor() {
1572
1605
  /**
@@ -1577,7 +1610,7 @@ class $ {
1577
1610
  setWidgetClass(t) {
1578
1611
  switch (t) {
1579
1612
  case "notebook":
1580
- this._widgetClass = M;
1613
+ this._widgetClass = N;
1581
1614
  break;
1582
1615
  case "page":
1583
1616
  this._widgetClass = Pe;
@@ -1585,6 +1618,9 @@ class $ {
1585
1618
  case "group":
1586
1619
  this._widgetClass = Oe;
1587
1620
  break;
1621
+ case "card":
1622
+ this._widgetClass = st;
1623
+ break;
1588
1624
  case "label":
1589
1625
  this._widgetClass = Z;
1590
1626
  break;
@@ -1651,10 +1687,10 @@ class $ {
1651
1687
  this._widgetClass = Ze;
1652
1688
  break;
1653
1689
  case "reference":
1654
- this._widgetClass = Ae;
1690
+ this._widgetClass = Ne;
1655
1691
  break;
1656
1692
  case "binary":
1657
- this._widgetClass = Ne;
1693
+ this._widgetClass = Ae;
1658
1694
  break;
1659
1695
  case "image":
1660
1696
  this._widgetClass = Be;
@@ -1711,7 +1747,7 @@ class $ {
1711
1747
  this._widgetClass = H;
1712
1748
  break;
1713
1749
  case "spinner":
1714
- this._widgetClass = R;
1750
+ this._widgetClass = j;
1715
1751
  break;
1716
1752
  case "carousel":
1717
1753
  this._widgetClass = et;
@@ -1731,6 +1767,7 @@ class $ {
1731
1767
  case "notebook":
1732
1768
  case "page":
1733
1769
  case "group":
1770
+ case "card":
1734
1771
  return new this._widgetClass({ ...e, type: s });
1735
1772
  case "button":
1736
1773
  return new this._widgetClass({
@@ -1743,7 +1780,7 @@ class $ {
1743
1780
  }
1744
1781
  }
1745
1782
  }
1746
- const st = ({
1783
+ const rt = ({
1747
1784
  fieldName: i,
1748
1785
  values: t,
1749
1786
  fields: e
@@ -1768,7 +1805,7 @@ const st = ({
1768
1805
  n[o] = d.some((_) => _);
1769
1806
  }
1770
1807
  return n;
1771
- }, rt = ({
1808
+ }, nt = ({
1772
1809
  states: i,
1773
1810
  values: t
1774
1811
  }) => {
@@ -1777,7 +1814,7 @@ const st = ({
1777
1814
  const e = i.split(",");
1778
1815
  return e.length === 0 ? {} : e.includes(t.state) ? {} : { invisible: !0 };
1779
1816
  };
1780
- function nt({
1817
+ function at({
1781
1818
  values: i = {},
1782
1819
  fieldName: t,
1783
1820
  fields: e = {}
@@ -1805,7 +1842,7 @@ const ne = ({
1805
1842
  return u.forEach((c) => {
1806
1843
  const b = c[1];
1807
1844
  if (!c[1].includes("'") && c[1] !== "true" && c[1] !== "false") {
1808
- const x = nt({
1845
+ const x = at({
1809
1846
  values: t,
1810
1847
  fields: e,
1811
1848
  fieldName: b === "active_id" ? "id" : b
@@ -1820,7 +1857,7 @@ const ne = ({
1820
1857
  } catch {
1821
1858
  return;
1822
1859
  }
1823
- }, zt = (i) => {
1860
+ }, St = (i) => {
1824
1861
  const t = [];
1825
1862
  try {
1826
1863
  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) => {
@@ -1840,14 +1877,14 @@ function ae(i) {
1840
1877
  function le(i) {
1841
1878
  return typeof i == "object" && i !== null && typeof i != "string";
1842
1879
  }
1843
- const at = (i) => {
1880
+ const lt = (i) => {
1844
1881
  const t = i.trim().replace(")", "").split("("), e = t[0], n = t[1].split(",").map((a) => a.trim());
1845
1882
  return {
1846
1883
  method: e,
1847
1884
  args: n
1848
1885
  };
1849
1886
  };
1850
- function lt(i) {
1887
+ function ot(i) {
1851
1888
  const t = [];
1852
1889
  function e(s) {
1853
1890
  const n = [];
@@ -1859,7 +1896,7 @@ function lt(i) {
1859
1896
  e(s);
1860
1897
  return t.flat();
1861
1898
  }
1862
- class St {
1899
+ class It {
1863
1900
  constructor(t, e = 4) {
1864
1901
  /**
1865
1902
  * Object containing fields specification of the form.
@@ -1975,7 +2012,7 @@ class St {
1975
2012
  container: this._container,
1976
2013
  values: s
1977
2014
  });
1978
- const l = lt(this._container._rows);
2015
+ const l = ot(this._container._rows);
1979
2016
  l.forEach((d) => {
1980
2017
  const _ = d;
1981
2018
  _._id && _._context && (this._contextForFields[_._id] = d._context);
@@ -1988,7 +2025,7 @@ class St {
1988
2025
  }) {
1989
2026
  const n = new $();
1990
2027
  t.filter((a) => typeof a == "object").forEach((a) => {
1991
- var F, v;
2028
+ var v, F;
1992
2029
  const { tagName: l, attributes: o, children: d } = a;
1993
2030
  let _ = l, h = o;
1994
2031
  if (l === "field") {
@@ -2018,24 +2055,24 @@ class St {
2018
2055
  widgetType: l
2019
2056
  });
2020
2057
  let g;
2021
- l === "button" && h.states ? g = rt({
2058
+ l === "button" && h.states ? g = nt({
2022
2059
  states: h.states,
2023
2060
  values: s
2024
- }) : g = st({
2061
+ }) : g = rt({
2025
2062
  fieldName: h.name,
2026
2063
  values: s,
2027
2064
  fields: this._fields
2028
2065
  });
2029
2066
  const c = ne({
2030
- context: h.context || ((F = this._fields[h.name]) == null ? void 0 : F.context),
2067
+ context: h.context || ((v = this._fields[h.name]) == null ? void 0 : v.context),
2031
2068
  values: s,
2032
2069
  fields: this._fields
2033
2070
  });
2034
- h.on_change && (this._onChangeFields[h.name] = at(
2071
+ h.on_change && (this._onChangeFields[h.name] = lt(
2035
2072
  h.on_change
2036
2073
  ));
2037
2074
  let b;
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;
2075
+ Q(h.domain) ? b = h.domain : Q((F = this._fields[h.name]) == null ? void 0 : F.domain) && (b = this._fields[h.name].domain), this._keyIdx = this._keyIdx + 1;
2039
2076
  const x = {
2040
2077
  ...u,
2041
2078
  ...g,
@@ -2063,7 +2100,7 @@ class St {
2063
2100
  function Q(i) {
2064
2101
  return i ? Array.isArray(i) && i.length > 0 ? !0 : typeof i == "string" && i !== "" && i !== "[]" : !1;
2065
2102
  }
2066
- class It {
2103
+ class Et {
2067
2104
  constructor(t) {
2068
2105
  /**
2069
2106
  * Object containing fields specification of the form.
@@ -2177,7 +2214,7 @@ class It {
2177
2214
  return this._columns.find((e) => e.findById ? e.findById(t) : !1);
2178
2215
  }
2179
2216
  }
2180
- const ot = {
2217
+ const ct = {
2181
2218
  text: "text",
2182
2219
  many2one: "many2one",
2183
2220
  char: "char",
@@ -2190,7 +2227,7 @@ const ot = {
2190
2227
  date: "date",
2191
2228
  datetime: "datetime"
2192
2229
  };
2193
- class Et {
2230
+ class Vt {
2194
2231
  constructor(t, e, s = 8) {
2195
2232
  /**
2196
2233
  * Object containing the specific fields for primary and secondary search fields
@@ -2238,7 +2275,7 @@ class Et {
2238
2275
  colspan: 2
2239
2276
  }, { type: a, widget: l } = n;
2240
2277
  let o = l ?? a;
2241
- return ot[o] === void 0 && (o = a), e.createWidget(o, n);
2278
+ return ct[o] === void 0 && (o = a), e.createWidget(o, n);
2242
2279
  });
2243
2280
  }
2244
2281
  /**
@@ -2249,7 +2286,7 @@ class Et {
2249
2286
  return this.advancedSearchContainer.findById(t);
2250
2287
  }
2251
2288
  }
2252
- const Vt = ({
2289
+ const Yt = ({
2253
2290
  domain: i,
2254
2291
  widgetFieldName: t
2255
2292
  }) => {
@@ -2264,8 +2301,8 @@ const Vt = ({
2264
2301
  n.length - 1
2265
2302
  )) : (o = n, d = "id"), o === t && e.push([d, a, l]);
2266
2303
  }), e;
2267
- }, Yt = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((t) => t.trim()).filter((t) => !t.includes("'"));
2268
- class ct {
2304
+ }, Dt = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((t) => t.trim()).filter((t) => !t.includes("'"));
2305
+ class dt {
2269
2306
  constructor(t) {
2270
2307
  r(this, "_action_id", null);
2271
2308
  r(this, "_position", null);
@@ -2278,7 +2315,7 @@ class ct {
2278
2315
  return this._position;
2279
2316
  }
2280
2317
  }
2281
- class Dt {
2318
+ class jt {
2282
2319
  constructor(t) {
2283
2320
  r(this, "_string", null);
2284
2321
  r(this, "_items", []);
@@ -2286,7 +2323,7 @@ class Dt {
2286
2323
  this._string = e.attributes.string || null;
2287
2324
  const { children: s } = e;
2288
2325
  s.forEach((n) => {
2289
- n.tagName === "dashboard_item" && this._items.push(new ct(n.attributes));
2326
+ n.tagName === "dashboard_item" && this._items.push(new dt(n.attributes));
2290
2327
  });
2291
2328
  }
2292
2329
  get string() {
@@ -2350,7 +2387,7 @@ class ce extends oe {
2350
2387
  return this._suffix;
2351
2388
  }
2352
2389
  }
2353
- class dt extends ce {
2390
+ class ut extends ce {
2354
2391
  constructor(e, s) {
2355
2392
  super(e, s);
2356
2393
  r(this, "_field");
@@ -2370,7 +2407,7 @@ class dt extends ce {
2370
2407
  return this._operator;
2371
2408
  }
2372
2409
  }
2373
- const ut = (i) => {
2410
+ const ht = (i) => {
2374
2411
  const t = [];
2375
2412
  let e;
2376
2413
  if (i.forEach((s) => {
@@ -2380,10 +2417,10 @@ const ut = (i) => {
2380
2417
  throw new Error(`Field ${l} doesn't have an axis`);
2381
2418
  if (!l)
2382
2419
  throw new Error("Missing name attribute for field");
2383
- n === "x" ? e = new ft({
2420
+ n === "x" ? e = new gt({
2384
2421
  name: l
2385
2422
  }) : n === "y" && t.push(
2386
- new _t({
2423
+ new ft({
2387
2424
  name: l,
2388
2425
  operator: a,
2389
2426
  label: o,
@@ -2400,13 +2437,13 @@ const ut = (i) => {
2400
2437
  y: t
2401
2438
  };
2402
2439
  };
2403
- class j extends oe {
2440
+ class M extends oe {
2404
2441
  constructor(e, s) {
2405
2442
  super(s);
2406
2443
  r(this, "_x");
2407
2444
  r(this, "_y");
2408
2445
  this._type = e;
2409
- const n = ut(s.children);
2446
+ const n = ht(s.children);
2410
2447
  this._x = n.x, this._y = n.y;
2411
2448
  }
2412
2449
  get x() {
@@ -2416,17 +2453,17 @@ class j extends oe {
2416
2453
  return this._y;
2417
2454
  }
2418
2455
  }
2419
- const ht = {
2456
+ const _t = {
2420
2457
  indicator: ce,
2421
- indicatorField: dt,
2422
- line: j,
2423
- bar: j,
2424
- pie: j
2425
- }, jt = (i) => {
2458
+ indicatorField: ut,
2459
+ line: M,
2460
+ bar: M,
2461
+ pie: M
2462
+ }, Mt = (i) => {
2426
2463
  const t = D.parse(i).filter((n) => n.tagName === "graph")[0], e = t.attributes.type;
2427
2464
  if (!e)
2428
2465
  throw new Error(`${e} is not a valid graph`);
2429
- const s = ht[e];
2466
+ const s = _t[e];
2430
2467
  if (!s)
2431
2468
  throw new Error(`${e} not found as a GraphModel`);
2432
2469
  return new s(e, t);
@@ -2444,7 +2481,7 @@ class de {
2444
2481
  return this._axis;
2445
2482
  }
2446
2483
  }
2447
- class _t extends de {
2484
+ class ft extends de {
2448
2485
  constructor({
2449
2486
  name: e,
2450
2487
  operator: s,
@@ -2467,12 +2504,12 @@ class _t extends de {
2467
2504
  return this._stacked;
2468
2505
  }
2469
2506
  }
2470
- class ft extends de {
2507
+ class gt extends de {
2471
2508
  constructor({ name: t }) {
2472
2509
  super({ name: t, axis: "x" });
2473
2510
  }
2474
2511
  }
2475
- const gt = ({ ooui: i }) => {
2512
+ const mt = ({ ooui: i }) => {
2476
2513
  const e = [i.x.name];
2477
2514
  return i.y ? (i.y.forEach((s) => {
2478
2515
  s.operator !== "count" && !e.includes(s.name) && e.push(s.name), s.label && !e.includes(s.label) && e.push(s.label);
@@ -2494,27 +2531,27 @@ function q({
2494
2531
  }
2495
2532
  return { value: n, label: n };
2496
2533
  }
2497
- const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2534
+ const Nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2498
2535
  __proto__: null,
2499
- getFieldsToRetrieve: gt,
2536
+ getFieldsToRetrieve: mt,
2500
2537
  getValueAndLabelForField: q
2501
2538
  }, Symbol.toStringTag, { value: "Module" }));
2502
- function mt({
2539
+ function bt({
2503
2540
  values: i,
2504
2541
  timerange: t,
2505
2542
  interval: e = 1
2506
2543
  }) {
2507
- const s = xt({
2544
+ const s = pt({
2508
2545
  values: i,
2509
2546
  timerange: t
2510
2547
  });
2511
- return bt({
2548
+ return yt({
2512
2549
  values: s,
2513
2550
  timerange: t,
2514
2551
  interval: e
2515
2552
  });
2516
2553
  }
2517
- function bt({
2554
+ function yt({
2518
2555
  values: i,
2519
2556
  timerange: t,
2520
2557
  interval: e = 1
@@ -2532,7 +2569,7 @@ function bt({
2532
2569
  return;
2533
2570
  const u = h.x, g = d[_ + 1].x;
2534
2571
  if (!ue([u, g], a)) {
2535
- const c = yt({
2572
+ const c = xt({
2536
2573
  dates: [u, g],
2537
2574
  timerange: t,
2538
2575
  interval: e
@@ -2549,7 +2586,7 @@ function bt({
2549
2586
  }
2550
2587
  }), s.sort((o, d) => o.x < d.x ? -1 : o.x > d.x ? 1 : 0);
2551
2588
  }
2552
- function yt({
2589
+ function xt({
2553
2590
  dates: i,
2554
2591
  timerange: t,
2555
2592
  interval: e = 1
@@ -2571,11 +2608,11 @@ function yt({
2571
2608
  }
2572
2609
  return s;
2573
2610
  }
2574
- function xt({
2611
+ function pt({
2575
2612
  values: i,
2576
2613
  timerange: t
2577
2614
  }) {
2578
- const e = pt({
2615
+ const e = wt({
2579
2616
  values: i,
2580
2617
  timerange: t
2581
2618
  }), s = [], n = he({
@@ -2593,19 +2630,19 @@ function xt({
2593
2630
  });
2594
2631
  }), s;
2595
2632
  }
2596
- function pt({
2633
+ function wt({
2597
2634
  values: i,
2598
2635
  timerange: t
2599
2636
  }) {
2600
2637
  return i.map((e) => ({
2601
2638
  ...e,
2602
- x: wt({
2639
+ x: vt({
2603
2640
  date: e.x,
2604
2641
  timerange: t
2605
2642
  })
2606
2643
  }));
2607
2644
  }
2608
- function wt({
2645
+ function vt({
2609
2646
  date: i,
2610
2647
  timerange: t
2611
2648
  }) {
@@ -2676,7 +2713,7 @@ function E(i) {
2676
2713
  return "YYYY-MM-DD HH:mm";
2677
2714
  }
2678
2715
  }
2679
- const vt = {
2716
+ const Ct = {
2680
2717
  count: "count",
2681
2718
  "+": "sum",
2682
2719
  "-": "subtract",
@@ -2684,13 +2721,13 @@ const vt = {
2684
2721
  avg: "average",
2685
2722
  min: "min",
2686
2723
  max: "max"
2687
- }, Ct = ({
2724
+ }, kt = ({
2688
2725
  ooui: i,
2689
2726
  values: t,
2690
2727
  fields: e,
2691
2728
  options: s
2692
2729
  }) => {
2693
- const n = B({
2730
+ const n = R({
2694
2731
  fieldName: i.x.name,
2695
2732
  values: t,
2696
2733
  fields: e
@@ -2699,13 +2736,13 @@ const vt = {
2699
2736
  Object.keys(n).forEach((b) => {
2700
2737
  const x = n[b].label, y = n[b].entries;
2701
2738
  if (c.label) {
2702
- const F = B({
2739
+ const v = R({
2703
2740
  fieldName: c.label,
2704
2741
  values: y,
2705
2742
  fields: e
2706
2743
  });
2707
- Object.keys(F).forEach((v) => {
2708
- const p = F[v].entries, S = F[v].label, ge = N({
2744
+ Object.keys(v).forEach((F) => {
2745
+ const p = v[F].entries, S = v[F].label, ge = B({
2709
2746
  entries: p,
2710
2747
  fields: e,
2711
2748
  fieldName: c.name
@@ -2722,17 +2759,17 @@ const vt = {
2722
2759
  });
2723
2760
  });
2724
2761
  } else {
2725
- const F = N({
2762
+ const v = B({
2726
2763
  entries: y,
2727
2764
  fields: e,
2728
2765
  fieldName: c.name
2729
- }), v = Y({
2730
- values: F,
2766
+ }), F = Y({
2767
+ values: v,
2731
2768
  operator: c.operator
2732
2769
  });
2733
2770
  a.push({
2734
2771
  x: x || !1,
2735
- value: v,
2772
+ value: F,
2736
2773
  type: _e({
2737
2774
  yAxis: c,
2738
2775
  fields: e
@@ -2751,7 +2788,7 @@ const vt = {
2751
2788
  (c) => c.x !== !1
2752
2789
  ));
2753
2790
  let u = h;
2754
- i.timerange ? u = mt({
2791
+ i.timerange ? u = bt({
2755
2792
  values: u,
2756
2793
  timerange: i.timerange,
2757
2794
  interval: i.interval
@@ -2769,7 +2806,7 @@ const vt = {
2769
2806
  }
2770
2807
  return g;
2771
2808
  };
2772
- function N({
2809
+ function B({
2773
2810
  entries: i,
2774
2811
  fieldName: t,
2775
2812
  fields: e
@@ -2818,7 +2855,7 @@ function Y({
2818
2855
  function I(i) {
2819
2856
  return Math.round((i + Number.EPSILON) * 100) / 100;
2820
2857
  }
2821
- function B({
2858
+ function R({
2822
2859
  fieldName: i,
2823
2860
  fields: t,
2824
2861
  values: e
@@ -2833,7 +2870,7 @@ function B({
2833
2870
  s[a] || (s[a] = { label: l, entries: [] }), s[a].entries.push(n);
2834
2871
  }), s;
2835
2872
  }
2836
- function kt(i) {
2873
+ function Pt(i) {
2837
2874
  let t = [];
2838
2875
  return Object.keys(i).forEach((e) => {
2839
2876
  const s = i[e];
@@ -2858,23 +2895,24 @@ function fe(i, t = 0.1) {
2858
2895
  }
2859
2896
  const At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2860
2897
  __proto__: null,
2861
- getAllObjectsInGroupedValues: kt,
2898
+ getAllObjectsInGroupedValues: Pt,
2862
2899
  getMinMax: fe,
2863
2900
  getValueForOperator: Y,
2864
- getValuesForYField: N,
2865
- getValuesGroupedByField: B,
2901
+ getValuesForYField: B,
2902
+ getValuesGroupedByField: R,
2866
2903
  getYAxisFieldname: _e,
2867
- labelsForOperator: vt,
2868
- processGraphData: Ct
2904
+ labelsForOperator: Ct,
2905
+ processGraphData: kt
2869
2906
  }, Symbol.toStringTag, { value: "Module" }));
2870
2907
  export {
2871
2908
  Te as ActionButtons,
2872
2909
  Ue as Alert,
2873
2910
  ke as Avatar,
2874
- Ne as Binary,
2911
+ Ae as Binary,
2875
2912
  te as Boolean,
2876
2913
  ee as Button,
2877
2914
  We as ButtonGroup,
2915
+ st as Card,
2878
2916
  et as Carousel,
2879
2917
  A as Char,
2880
2918
  re as CodeEditor,
@@ -2882,22 +2920,22 @@ export {
2882
2920
  Ke as Comments,
2883
2921
  V as Container,
2884
2922
  w as ContainerWidget,
2885
- Dt as Dashboard,
2886
- ct as DashboardItem,
2923
+ jt as Dashboard,
2924
+ dt as DashboardItem,
2887
2925
  De as Date,
2888
2926
  je as DateTime,
2889
2927
  Ze as Email,
2890
2928
  f as Field,
2891
2929
  G as Float,
2892
2930
  Ee as FloatTime,
2893
- St as Form,
2931
+ It as Form,
2894
2932
  oe as Graph,
2895
2933
  de as GraphAxis,
2896
- j as GraphChart,
2934
+ M as GraphChart,
2897
2935
  ce as GraphIndicator,
2898
- dt as GraphIndicatorField,
2899
- ft as GraphXAxis,
2900
- _t as GraphYAxis,
2936
+ ut as GraphIndicatorField,
2937
+ gt as GraphXAxis,
2938
+ ft as GraphYAxis,
2901
2939
  Oe as Group,
2902
2940
  Ve as HTMLPreview,
2903
2941
  Be as Image,
@@ -2909,18 +2947,18 @@ export {
2909
2947
  Se as Markdown,
2910
2948
  se as MultiCheckbox,
2911
2949
  K as NewLine,
2912
- M as Notebook,
2950
+ N as Notebook,
2913
2951
  ie as One2many,
2914
2952
  Pe as Page,
2915
2953
  Ye as ProgressBar,
2916
2954
  it as QRCode,
2917
2955
  Je as Radio,
2918
- Ae as Reference,
2919
- ot as SearchFieldTypes,
2920
- Et as SearchFilter,
2956
+ Ne as Reference,
2957
+ ct as SearchFieldTypes,
2958
+ Vt as SearchFilter,
2921
2959
  z as Selection,
2922
2960
  Me as Separator,
2923
- R as Spinner,
2961
+ j as Spinner,
2924
2962
  Qe as Steps,
2925
2963
  He as Switch,
2926
2964
  qe as Tag,
@@ -2928,14 +2966,14 @@ export {
2928
2966
  L as Text,
2929
2967
  Xe as Time,
2930
2968
  Le as Timeline,
2931
- It as Tree,
2969
+ Et as Tree,
2932
2970
  C as Widget,
2933
- Mt as graphFieldUtils,
2971
+ Nt as graphFieldUtils,
2934
2972
  At as graphProcessor,
2935
2973
  ne as parseContext,
2936
- zt as parseContextFields,
2937
- Yt as parseDomainFields,
2938
- jt as parseGraph,
2939
- Vt as transformDomainForChildWidget
2974
+ St as parseContextFields,
2975
+ Dt as parseDomainFields,
2976
+ Mt as parseGraph,
2977
+ Yt as transformDomainForChildWidget
2940
2978
  };
2941
2979
  //# sourceMappingURL=ooui.es.js.map