@gisce/ooui 2.40.0-alpha.5 → 2.40.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ooui.es.js CHANGED
@@ -1,163 +1,163 @@
1
- var bt = Object.defineProperty;
2
- var yt = (i, e, t) => e in i ? bt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var r = (i, e, t) => (yt(i, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { decode as xt } from "html-entities";
5
- import { evaluateCondition as pt } from "@gisce/conscheck";
6
- import * as T from "txml";
7
- import z from "moment";
8
- const wt = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Ft = ({
9
- entry: i,
1
+ var xt = Object.defineProperty;
2
+ var pt = (s, e, t) => e in s ? xt(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
+ var r = (s, e, t) => (pt(s, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { decode as wt } from "html-entities";
5
+ import { evaluateCondition as Ft } from "@gisce/conscheck";
6
+ import * as I from "txml";
7
+ import T from "moment";
8
+ const vt = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), Ct = ({
9
+ entry: s,
10
10
  values: e,
11
11
  fields: t
12
12
  }) => {
13
- let [s, n, a] = i, o = e[s];
14
- const l = U({
15
- fieldName: s,
13
+ let [i, n, l] = s, o = e[i];
14
+ const a = U({
15
+ fieldName: i,
16
16
  valueInObject: o,
17
- expectedValue: a,
17
+ expectedValue: l,
18
18
  fields: t
19
19
  });
20
- if (l.directOutcome !== void 0)
21
- return l.directOutcome;
22
- switch (l.modifiedValueInObject !== null && (o = l.modifiedValueInObject), l.modifiedExpectedValue !== null && (a = l.modifiedExpectedValue), n.toLowerCase()) {
20
+ if (a.directOutcome !== void 0)
21
+ return a.directOutcome;
22
+ switch (a.modifiedValueInObject !== null && (o = a.modifiedValueInObject), a.modifiedExpectedValue !== null && (l = a.modifiedExpectedValue), n.toLowerCase()) {
23
23
  case "=":
24
24
  case "==":
25
- return o == a;
25
+ return o == l;
26
26
  case "<>":
27
27
  case "!=":
28
- return o != a;
28
+ return o != l;
29
29
  case ">":
30
- return o > a;
30
+ return o > l;
31
31
  case ">=":
32
- return o >= a;
32
+ return o >= l;
33
33
  case "<":
34
- return o < a;
34
+ return o < l;
35
35
  case "<=":
36
- return o <= a;
36
+ return o <= l;
37
37
  case "in":
38
- return a.includes(o);
38
+ return l.includes(o);
39
39
  case "not in":
40
- return !a.includes(o);
40
+ return !l.includes(o);
41
41
  default:
42
42
  return !1;
43
43
  }
44
- }, g = (i) => xt(i, { level: "xml" }), U = ({
45
- fieldName: i,
44
+ }, g = (s) => wt(s, { level: "xml" }), U = ({
45
+ fieldName: s,
46
46
  valueInObject: e,
47
47
  expectedValue: t,
48
- fields: s = {}
48
+ fields: i = {}
49
49
  }) => {
50
50
  const n = {
51
51
  modifiedValueInObject: e,
52
52
  modifiedExpectedValue: null,
53
53
  directOutcome: void 0
54
54
  };
55
- return s[i] === void 0 ? {
55
+ return i[s] === void 0 ? {
56
56
  modifiedValueInObject: null,
57
57
  modifiedExpectedValue: null,
58
58
  directOutcome: !1
59
- } : e === void 0 && s[i].type !== "boolean" && s[i].type !== "many2one" && s[i].type !== "selection" && typeof t != "boolean" ? {
59
+ } : e === void 0 && i[s].type !== "boolean" && i[s].type !== "many2one" && i[s].type !== "selection" && typeof t != "boolean" ? {
60
60
  modifiedValueInObject: null,
61
61
  modifiedExpectedValue: null,
62
62
  directOutcome: !1
63
- } : (n.modifiedValueInObject = s[i].type === "boolean" ? !!e : e, s[i].type === "many2one" && t === !1 && e === void 0 ? n.modifiedExpectedValue = void 0 : (n.modifiedValueInObject === void 0 ? n.modifiedValueInObject = !1 : Array.isArray(n.modifiedValueInObject) && n.modifiedValueInObject[0] !== void 0 && (n.modifiedValueInObject = n.modifiedValueInObject[0]), n.modifiedValueInObject === null && (n.modifiedValueInObject = !1)), s[i].type === "many2one" && Array.isArray(n.modifiedValueInObject) && n.modifiedValueInObject[0] === void 0 && (n.modifiedValueInObject = !1), s[i].type === "boolean" && (t === 0 || t === 1) && (n.modifiedExpectedValue = t !== 0), n);
63
+ } : (n.modifiedValueInObject = i[s].type === "boolean" ? !!e : e, i[s].type === "many2one" && t === !1 && e === void 0 ? n.modifiedExpectedValue = void 0 : (n.modifiedValueInObject === void 0 ? n.modifiedValueInObject = !1 : Array.isArray(n.modifiedValueInObject) && n.modifiedValueInObject[0] !== void 0 && (n.modifiedValueInObject = n.modifiedValueInObject[0]), n.modifiedValueInObject === null && (n.modifiedValueInObject = !1)), i[s].type === "many2one" && Array.isArray(n.modifiedValueInObject) && n.modifiedValueInObject[0] === void 0 && (n.modifiedValueInObject = !1), i[s].type === "boolean" && (t === 0 || t === 1) && (n.modifiedExpectedValue = t !== 0), n);
64
64
  }, Q = ({
65
- attrs: i,
65
+ attrs: s,
66
66
  values: e,
67
67
  fields: t,
68
- widgetType: s
68
+ widgetType: i
69
69
  }) => {
70
- const d = i.replace(/\(/g, "[").replace(/\)/g, "]").replace(/'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), _ = g(d), h = JSON.parse(_), u = {};
71
- for (const m of Object.keys(h)) {
72
- const x = h[m].map((y) => Ft({ entry: y, values: e, fields: t })).every((y) => y);
73
- x ? u[m] = !0 : m === "readonly" && !x && s === "button" && (u[m] = !1);
74
- }
75
- return u;
76
- }, Z = (i) => {
77
- if (i === void 0)
70
+ const c = s.replace(/\(/g, "[").replace(/\)/g, "]").replace(/'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), _ = g(c), u = JSON.parse(_), h = {};
71
+ for (const m of Object.keys(u)) {
72
+ const x = u[m].map((y) => Ct({ entry: y, values: e, fields: t })).every((y) => y);
73
+ x ? h[m] = !0 : m === "readonly" && !x && i === "button" && (h[m] = !1);
74
+ }
75
+ return h;
76
+ }, Z = (s) => {
77
+ if (s === void 0)
78
78
  return {};
79
- if (typeof i == "string")
79
+ if (typeof s == "string")
80
80
  try {
81
- return JSON.parse(i.replace(/'/g, '"'));
81
+ return JSON.parse(s.replace(/'/g, '"'));
82
82
  } catch {
83
83
  return console.error("Error parsing widget_props"), {};
84
84
  }
85
85
  else
86
- return i;
87
- }, vt = ({
88
- attrs: i,
86
+ return s;
87
+ }, kt = ({
88
+ attrs: s,
89
89
  values: e,
90
90
  fields: t,
91
- widgetType: s
91
+ widgetType: i
92
92
  }) => {
93
93
  try {
94
- const n = g(i), a = JSON.parse(
94
+ const n = g(s), l = JSON.parse(
95
95
  n.replace(/'/g, '"')
96
96
  ), o = {};
97
- for (const l of Object.keys(a)) {
98
- const d = pt({
97
+ for (const a of Object.keys(l)) {
98
+ const c = Ft({
99
99
  object: e,
100
- condition: a[l],
100
+ condition: l[a],
101
101
  evaluateFieldComparison: ({
102
102
  fieldName: _,
103
- valueInObject: h,
104
- expectedValue: u
103
+ valueInObject: u,
104
+ expectedValue: h
105
105
  }) => U({
106
106
  fieldName: _,
107
- valueInObject: h,
108
- expectedValue: u,
107
+ valueInObject: u,
108
+ expectedValue: h,
109
109
  fields: t
110
110
  })
111
111
  });
112
- d ? o[l] = !0 : l === "readonly" && !d && s === "button" && (o[l] = !1);
112
+ c ? o[a] = !0 : a === "readonly" && !c && i === "button" && (o[a] = !1);
113
113
  }
114
114
  return o;
115
115
  } catch (n) {
116
116
  throw console.error(n), n instanceof SyntaxError ? new Error(
117
- "Error parsing new json_attrs. Original string: " + i
117
+ "Error parsing new json_attrs. Original string: " + s
118
118
  ) : n;
119
119
  }
120
- }, Ct = ({
121
- tagAttributes: i,
120
+ }, tt = ({
121
+ tagAttributes: s,
122
122
  values: e,
123
123
  fields: t,
124
- widgetType: s,
124
+ widgetType: i,
125
125
  fallbackMode: n = !0
126
126
  }) => {
127
- let a = {};
128
- if (i.json_attrs)
127
+ let l = {};
128
+ if (s.json_attrs)
129
129
  try {
130
- a = vt({
131
- attrs: i.json_attrs,
130
+ l = kt({
131
+ attrs: s.json_attrs,
132
132
  values: e,
133
133
  fields: t,
134
- widgetType: s
134
+ widgetType: i
135
135
  });
136
136
  } catch (o) {
137
- if (n && i.attrs)
138
- a = Q({
139
- attrs: i.attrs,
137
+ if (n && s.attrs)
138
+ l = Q({
139
+ attrs: s.attrs,
140
140
  values: e,
141
141
  fields: t,
142
- widgetType: s
142
+ widgetType: i
143
143
  });
144
144
  else
145
145
  throw o;
146
146
  }
147
147
  else
148
- i.attrs && (a = Q({
149
- attrs: i.attrs,
148
+ s.attrs && (l = Q({
149
+ attrs: s.attrs,
150
150
  values: e,
151
151
  fields: t,
152
- widgetType: s
152
+ widgetType: i
153
153
  }));
154
154
  return {
155
- ...i,
156
- ...a,
155
+ ...s,
156
+ ...l,
157
157
  attrs: void 0,
158
158
  json_attrs: void 0
159
159
  };
160
- }, p = (i) => i === 1 || i === "1" || i === !0 || i === "True" || i === "true", P = class P {
160
+ }, p = (s) => s === 1 || s === "1" || s === !0 || s === "True" || s === "true", P = class P {
161
161
  constructor(e) {
162
162
  /**
163
163
  * Determines if widget is read only (default is undefined)
@@ -316,7 +316,7 @@ class f extends k {
316
316
  r(this, "_selectionValues", /* @__PURE__ */ new Map([]));
317
317
  r(this, "_autoRefresh", !1);
318
318
  r(this, "_raw_props");
319
- this._activated = !0, t && (this._raw_props = t, t.name && (this._id = t.name), t.activated && (this._activated = t.activated), t.string && (this._label = g(t.string)), t.help && (this._tooltip = g(t.help)), t.nolabel && (t.nolabel === "1" || typeof t.nolabel == "boolean" && t.nolabel === !0) && (this._nolabel = !0), t.required && (t.required === "1" || t.required === !0 || t.required === "True") && (this._required = !0), t.sum && (this._sum = g(t.sum)), t.selection && (this._selectionValues = new Map(t.selection)), t.help_inline && (this.tooltipInline = wt(t.help_inline)), t.autorefresh && (this.autoRefresh = p(t.autorefresh)));
319
+ this._activated = !0, t && (this._raw_props = t, t.name && (this._id = t.name), t.activated && (this._activated = t.activated), t.string && (this._label = g(t.string)), t.help && (this._tooltip = g(t.help)), t.nolabel && (t.nolabel === "1" || typeof t.nolabel == "boolean" && t.nolabel === !0) && (this._nolabel = !0), t.required && (t.required === "1" || t.required === !0 || t.required === "True") && (this._required = !0), t.sum && (this._sum = g(t.sum)), t.selection && (this._selectionValues = new Map(t.selection)), t.help_inline && (this.tooltipInline = vt(t.help_inline)), t.autorefresh && (this.autoRefresh = p(t.autorefresh)));
320
320
  }
321
321
  get id() {
322
322
  return this._id;
@@ -401,14 +401,14 @@ class f extends k {
401
401
  return this._id === t ? this : null;
402
402
  }
403
403
  }
404
- class kt extends f {
404
+ class Pt extends f {
405
405
  }
406
- class tt extends k {
406
+ class et extends k {
407
407
  findById(e) {
408
408
  return null;
409
409
  }
410
410
  }
411
- class et extends f {
411
+ class st extends f {
412
412
  constructor(t) {
413
413
  super({ ...t, nolabel: !0 });
414
414
  /**
@@ -468,8 +468,8 @@ class et extends f {
468
468
  this._fieldForLabel = t;
469
469
  }
470
470
  }
471
- class Y {
472
- constructor(e = 4, t = 6, s = !1, n = void 0) {
471
+ class z {
472
+ constructor(e = 4, t = 6, i = !1, n = void 0) {
473
473
  /**
474
474
  * Number of columns the container is divided
475
475
  */
@@ -491,7 +491,7 @@ class Y {
491
491
  * Unique key for container
492
492
  */
493
493
  r(this, "_key");
494
- this._columns = e, this._colspan = t, this._rows = [[]], this._index = 0, this._readOnly = s, this._key = n;
494
+ this._columns = e, this._colspan = t, this._rows = [[]], this._index = 0, this._readOnly = i, this._key = n;
495
495
  }
496
496
  get columns() {
497
497
  return this._columns;
@@ -530,18 +530,18 @@ class Y {
530
530
  * Returns the next free position
531
531
  */
532
532
  freePosition() {
533
- const e = this._rows[this._index].filter((t) => !t.invisible).reduce((t, s) => t + s.colspan, 0);
533
+ const e = this._rows[this._index].filter((t) => !t.invisible).reduce((t, i) => t + i.colspan, 0);
534
534
  return this._columns - e;
535
535
  }
536
536
  addWidget(e, t) {
537
- const s = [], n = t ? t.addLabel : !0;
538
- if (e instanceof tt) {
537
+ const i = [], n = t ? t.addLabel : !0;
538
+ if (e instanceof et) {
539
539
  this._rows.push([]), this._index++;
540
540
  return;
541
541
  }
542
542
  if (e.colspan > this._columns && (e.colspan = this._columns), e.readOnly = e.readOnly || this.readOnly, n && e instanceof f && !e.nolabel) {
543
543
  e.colspan > 1 && (e.colspan -= 1);
544
- const o = new et({
544
+ const o = new st({
545
545
  name: e.id + "_label",
546
546
  string: e.label,
547
547
  invisible: e.invisible,
@@ -549,24 +549,24 @@ class Y {
549
549
  fieldForLabel: e.id,
550
550
  key: `${e.key}-label`
551
551
  });
552
- o.type = "label", s.push(o), s.push(e);
552
+ o.type = "label", i.push(o), i.push(e);
553
553
  } else
554
- s.push(e);
555
- s.reduce(
556
- (o, l) => o + l.colspan,
554
+ i.push(e);
555
+ i.reduce(
556
+ (o, a) => o + a.colspan,
557
557
  0
558
- ) > this.freePosition() && (this._rows.push([]), this._index++), this._rows[this._index] = this._rows[this._index].concat(s);
558
+ ) > this.freePosition() && (this._rows.push([]), this._index++), this._rows[this._index] = this._rows[this._index].concat(i);
559
559
  }
560
560
  /**
561
561
  * Traverses children to find a matching container or widget with the exact same id.
562
562
  * @param {string} id id (name) of the field or container to find
563
563
  */
564
564
  findById(e) {
565
- var s;
565
+ var i;
566
566
  let t = null;
567
- return (s = this._rows) != null && s.length && this._rows.forEach((n) => {
568
- t || n != null && n.length && n.forEach((a) => {
569
- t || a && (t = a.findById(e));
567
+ return (i = this._rows) != null && i.length && this._rows.forEach((n) => {
568
+ t || n != null && n.length && n.forEach((l) => {
569
+ t || l && (t = l.findById(e));
570
570
  });
571
571
  }), t;
572
572
  }
@@ -592,7 +592,7 @@ const O = class O extends k {
592
592
  * Container label
593
593
  */
594
594
  r(this, "_label", "");
595
- this._container = new Y(
595
+ this._container = new z(
596
596
  t == null ? void 0 : t.col,
597
597
  O._defaultColspan,
598
598
  this.readOnly,
@@ -683,7 +683,7 @@ class N extends F {
683
683
  this._loading = t;
684
684
  }
685
685
  }
686
- class Pt extends N {
686
+ class Ot extends N {
687
687
  constructor(t) {
688
688
  super(t);
689
689
  r(this, "_icon", null);
@@ -696,9 +696,9 @@ class Pt extends N {
696
696
  this._icon = t;
697
697
  }
698
698
  }
699
- class Ot extends N {
699
+ class Wt extends N {
700
700
  constructor(t) {
701
- var s;
701
+ var i;
702
702
  super(t);
703
703
  r(this, "_icon", null);
704
704
  r(this, "_height");
@@ -709,7 +709,7 @@ class Ot extends N {
709
709
  } catch {
710
710
  console.log("Error parsing height"), this._height = void 0;
711
711
  }
712
- (s = this._parsedWidgetProps) != null && s.backgroundColor && (this._backgroundColor = this._parsedWidgetProps.backgroundColor);
712
+ (i = this._parsedWidgetProps) != null && i.backgroundColor && (this._backgroundColor = this._parsedWidgetProps.backgroundColor);
713
713
  }
714
714
  get icon() {
715
715
  return this._icon;
@@ -730,7 +730,7 @@ class Ot extends N {
730
730
  this._backgroundColor = t;
731
731
  }
732
732
  }
733
- class G extends f {
733
+ class A extends f {
734
734
  constructor(t) {
735
735
  super({
736
736
  ...t,
@@ -756,12 +756,12 @@ class G extends f {
756
756
  r(this, "_danger", !1);
757
757
  if (t) {
758
758
  if (t.string && (this._caption = g(t.string)), t.buttonType && (this._buttonType = t.buttonType), t.confirm && (this._confirmMessage = g(t.confirm)), t.special && t.special === "cancel" && (this._buttonType = "cancel"), t.icon && (this._icon = t.icon), t.primary) {
759
- const s = t.primary;
760
- (s === "1" || s === 1 || s === !0) && (this._primary = !0);
759
+ const i = t.primary;
760
+ (i === "1" || i === 1 || i === !0) && (this._primary = !0);
761
761
  }
762
762
  if (t.danger) {
763
- const s = t.danger;
764
- (s === "1" || s === 1 || s === !0) && (this._danger = !0);
763
+ const i = t.danger;
764
+ (i === "1" || i === 1 || i === !0) && (this._danger = !0);
765
765
  }
766
766
  }
767
767
  }
@@ -802,7 +802,7 @@ class G extends f {
802
802
  this._danger = t;
803
803
  }
804
804
  }
805
- class Wt extends F {
805
+ class Tt extends F {
806
806
  constructor(t) {
807
807
  super(t);
808
808
  r(this, "_defaultName", "");
@@ -812,7 +812,7 @@ class Wt extends F {
812
812
  return this._defaultName;
813
813
  }
814
814
  get defaultButton() {
815
- return this.buttons.find((s) => s.id === this.defaultName) || this.buttons[0];
815
+ return this.buttons.find((i) => i.id === this.defaultName) || this.buttons[0];
816
816
  }
817
817
  get colspan() {
818
818
  var t;
@@ -823,9 +823,9 @@ class Wt extends F {
823
823
  }
824
824
  get secondaryButtons() {
825
825
  return this.buttons.filter(
826
- (s) => {
826
+ (i) => {
827
827
  var n;
828
- return s.id !== ((n = this.defaultButton) == null ? void 0 : n.id);
828
+ return i.id !== ((n = this.defaultButton) == null ? void 0 : n.id);
829
829
  }
830
830
  );
831
831
  }
@@ -835,7 +835,7 @@ class Wt extends F {
835
835
  }
836
836
  class zt extends f {
837
837
  }
838
- class A extends f {
838
+ class R extends f {
839
839
  constructor(t) {
840
840
  super(t);
841
841
  /**
@@ -942,7 +942,7 @@ class $ extends f {
942
942
  this._translatable = t;
943
943
  }
944
944
  }
945
- class I extends f {
945
+ class S extends f {
946
946
  constructor(t) {
947
947
  super(t);
948
948
  /**
@@ -958,7 +958,7 @@ class I extends f {
958
958
  this._size = t;
959
959
  }
960
960
  }
961
- class Tt extends f {
961
+ class It extends f {
962
962
  constructor(t) {
963
963
  super(t);
964
964
  /**
@@ -993,14 +993,14 @@ class Tt extends f {
993
993
  return this.parsedWidgetProps.showMenu;
994
994
  }
995
995
  }
996
- class It extends $ {
996
+ class St extends $ {
997
997
  }
998
998
  class it extends f {
999
999
  constructor(e) {
1000
1000
  super(e);
1001
1001
  }
1002
1002
  }
1003
- class St extends f {
1003
+ class Et extends f {
1004
1004
  constructor(e) {
1005
1005
  super(e);
1006
1006
  }
@@ -1021,8 +1021,8 @@ class q extends f {
1021
1021
  */
1022
1022
  r(this, "_decimalDigits", 2);
1023
1023
  if (t != null && t.digits) {
1024
- const [s, n] = t.digits;
1025
- this._integerDigits = s, this._decimalDigits = n;
1024
+ const [i, n] = t.digits;
1025
+ this._integerDigits = i, this._decimalDigits = n;
1026
1026
  }
1027
1027
  }
1028
1028
  get integerDigits() {
@@ -1038,11 +1038,11 @@ class q extends f {
1038
1038
  this._decimalDigits = t;
1039
1039
  }
1040
1040
  }
1041
- class Et extends q {
1041
+ class Vt extends q {
1042
1042
  }
1043
- class Vt extends f {
1043
+ class Yt extends f {
1044
1044
  }
1045
- class Yt extends q {
1045
+ class Dt extends q {
1046
1046
  }
1047
1047
  class jt extends f {
1048
1048
  constructor(e) {
@@ -1062,7 +1062,7 @@ class Nt extends f {
1062
1062
  this._timezone = t;
1063
1063
  }
1064
1064
  }
1065
- class st extends f {
1065
+ class rt extends f {
1066
1066
  constructor(t) {
1067
1067
  super(t);
1068
1068
  /**
@@ -1156,7 +1156,7 @@ class st extends f {
1156
1156
  this._infinite = t;
1157
1157
  }
1158
1158
  }
1159
- class Dt extends k {
1159
+ class At extends k {
1160
1160
  constructor(t) {
1161
1161
  super(t);
1162
1162
  /**
@@ -1182,7 +1182,7 @@ class Dt extends k {
1182
1182
  return null;
1183
1183
  }
1184
1184
  }
1185
- class Mt extends I {
1185
+ class Mt extends S {
1186
1186
  }
1187
1187
  class Bt extends f {
1188
1188
  constructor(t) {
@@ -1200,19 +1200,19 @@ class Bt extends f {
1200
1200
  this._filenameField = t;
1201
1201
  }
1202
1202
  }
1203
- class At extends f {
1203
+ class Rt extends f {
1204
1204
  constructor(t) {
1205
1205
  super(t);
1206
1206
  r(this, "_width");
1207
1207
  r(this, "_height");
1208
1208
  if (t) {
1209
1209
  if (t.width) {
1210
- const s = parseInt(t.width);
1211
- this._width = isNaN(s) ? void 0 : s;
1210
+ const i = parseInt(t.width);
1211
+ this._width = isNaN(i) ? void 0 : i;
1212
1212
  }
1213
1213
  if (t.height) {
1214
- const s = parseInt(t.height);
1215
- this._height = isNaN(s) ? void 0 : s;
1214
+ const i = parseInt(t.height);
1215
+ this._height = isNaN(i) ? void 0 : i;
1216
1216
  }
1217
1217
  }
1218
1218
  }
@@ -1233,7 +1233,7 @@ class At extends f {
1233
1233
  return ((t = this.parsedWidgetProps) == null ? void 0 : t.showControls) ?? !0;
1234
1234
  }
1235
1235
  }
1236
- class Rt extends f {
1236
+ class Lt extends f {
1237
1237
  constructor(t) {
1238
1238
  super({ ...t, nolabel: !0 });
1239
1239
  /**
@@ -1269,12 +1269,12 @@ class Rt extends f {
1269
1269
  this._color = t;
1270
1270
  }
1271
1271
  }
1272
- class Lt extends f {
1272
+ class Gt extends f {
1273
1273
  constructor(e) {
1274
1274
  super(e);
1275
1275
  }
1276
1276
  }
1277
- class Gt extends st {
1277
+ class $t extends rt {
1278
1278
  constructor(t) {
1279
1279
  super(t);
1280
1280
  /**
@@ -1306,7 +1306,7 @@ class Gt extends st {
1306
1306
  return this.parsedWidgetProps.colorField;
1307
1307
  }
1308
1308
  }
1309
- class $t extends I {
1309
+ class qt extends S {
1310
1310
  constructor(t) {
1311
1311
  super(t);
1312
1312
  r(this, "_nolabel", !0);
@@ -1328,8 +1328,8 @@ class $t extends I {
1328
1328
  if (t.action_id && (this._actionId = parseInt(t.action_id)), t.action_field && (this._actionField = t.action_field), t.height)
1329
1329
  try {
1330
1330
  this._height = parseInt(t.height);
1331
- } catch (s) {
1332
- console.error(s);
1331
+ } catch (i) {
1332
+ console.error(i);
1333
1333
  }
1334
1334
  this._autoRefresh = p(t.autorefresh);
1335
1335
  }
@@ -1380,7 +1380,7 @@ class $t extends I {
1380
1380
  this._autoRefresh = t;
1381
1381
  }
1382
1382
  }
1383
- class rt extends f {
1383
+ class nt extends f {
1384
1384
  constructor(t) {
1385
1385
  super(t);
1386
1386
  /**
@@ -1433,9 +1433,9 @@ class rt extends f {
1433
1433
  this._columns = t;
1434
1434
  }
1435
1435
  }
1436
- class qt extends rt {
1436
+ class Jt extends nt {
1437
1437
  }
1438
- class Jt extends I {
1438
+ class Ht extends S {
1439
1439
  get colors() {
1440
1440
  return this._parsedWidgetProps.colors || {};
1441
1441
  }
@@ -1444,7 +1444,7 @@ class Jt extends I {
1444
1444
  return ((e = this._parsedWidgetProps) == null ? void 0 : e.colorField) || null;
1445
1445
  }
1446
1446
  }
1447
- class Ht extends I {
1447
+ class Qt extends S {
1448
1448
  constructor(t) {
1449
1449
  super(t);
1450
1450
  /**
@@ -1460,7 +1460,7 @@ class Ht extends I {
1460
1460
  this._direction = t;
1461
1461
  }
1462
1462
  }
1463
- class Qt extends it {
1463
+ class Kt extends it {
1464
1464
  }
1465
1465
  class Xt extends f {
1466
1466
  constructor(t) {
@@ -1492,7 +1492,7 @@ class Xt extends f {
1492
1492
  this._lastStep = t;
1493
1493
  }
1494
1494
  }
1495
- class nt extends $ {
1495
+ class at extends $ {
1496
1496
  constructor(t) {
1497
1497
  super(t);
1498
1498
  r(this, "_lang", null);
@@ -1505,12 +1505,12 @@ class nt extends $ {
1505
1505
  this._lang = t;
1506
1506
  }
1507
1507
  }
1508
- class Kt extends f {
1508
+ class Ut extends f {
1509
1509
  constructor(e) {
1510
1510
  super(e);
1511
1511
  }
1512
1512
  }
1513
- class Ut extends F {
1513
+ class Zt extends F {
1514
1514
  constructor(t) {
1515
1515
  super(t);
1516
1516
  /**
@@ -1550,7 +1550,7 @@ class Ut extends F {
1550
1550
  return this._container.rows.flat().filter((t) => !t.invisible);
1551
1551
  }
1552
1552
  }
1553
- class Zt extends f {
1553
+ class te extends f {
1554
1554
  constructor(t) {
1555
1555
  super(t);
1556
1556
  /**
@@ -1558,8 +1558,8 @@ class Zt extends f {
1558
1558
  */
1559
1559
  r(this, "_height");
1560
1560
  if (t.height) {
1561
- const s = parseInt(t.height);
1562
- this._height = isNaN(s) ? void 0 : s;
1561
+ const i = parseInt(t.height);
1562
+ this._height = isNaN(i) ? void 0 : i;
1563
1563
  }
1564
1564
  }
1565
1565
  get height() {
@@ -1569,13 +1569,13 @@ class Zt extends f {
1569
1569
  this._height = t;
1570
1570
  }
1571
1571
  }
1572
- class X extends nt {
1572
+ class K extends at {
1573
1573
  constructor() {
1574
1574
  super(...arguments);
1575
1575
  r(this, "_lang", "json");
1576
1576
  }
1577
1577
  }
1578
- class te extends f {
1578
+ class ee extends f {
1579
1579
  constructor(t) {
1580
1580
  super(t);
1581
1581
  r(this, "_multi", !1);
@@ -1595,7 +1595,7 @@ class te extends f {
1595
1595
  this._size = t;
1596
1596
  }
1597
1597
  }
1598
- class ee extends F {
1598
+ class se extends F {
1599
1599
  constructor(t) {
1600
1600
  super(t);
1601
1601
  r(this, "_autoPlay", !0);
@@ -1611,12 +1611,12 @@ class ee extends F {
1611
1611
  return this._container.rows.flat().filter((t) => !t.invisible);
1612
1612
  }
1613
1613
  }
1614
- class ie extends A {
1614
+ class ie extends R {
1615
1615
  get showText() {
1616
1616
  return this.parsedWidgetProps.show_text ?? !0;
1617
1617
  }
1618
1618
  }
1619
- class se extends f {
1619
+ class re extends f {
1620
1620
  get width() {
1621
1621
  var e;
1622
1622
  return (e = this.parsedWidgetProps) == null ? void 0 : e.width;
@@ -1630,7 +1630,7 @@ class se extends f {
1630
1630
  return console.log(this.parsedWidgetProps), ((e = this.parsedWidgetProps) == null ? void 0 : e.showValue) ?? !1;
1631
1631
  }
1632
1632
  }
1633
- class re extends N {
1633
+ class ne extends N {
1634
1634
  constructor(t) {
1635
1635
  super(t);
1636
1636
  r(this, "_title", null);
@@ -1640,8 +1640,8 @@ class re extends N {
1640
1640
  */
1641
1641
  r(this, "_height");
1642
1642
  if (t && (t.title && (this._title = t.title), t.icon && (this._icon = t.icon), t.height)) {
1643
- const s = parseInt(t.height);
1644
- this._height = isNaN(s) ? void 0 : s;
1643
+ const i = parseInt(t.height);
1644
+ this._height = isNaN(i) ? void 0 : i;
1645
1645
  }
1646
1646
  }
1647
1647
  get title() {
@@ -1663,7 +1663,7 @@ class re extends N {
1663
1663
  this._height = t;
1664
1664
  }
1665
1665
  }
1666
- class D {
1666
+ class E {
1667
1667
  constructor() {
1668
1668
  /**
1669
1669
  * Widget class
@@ -1676,49 +1676,49 @@ class D {
1676
1676
  this._widgetClass = B;
1677
1677
  break;
1678
1678
  case "page":
1679
- this._widgetClass = Pt;
1679
+ this._widgetClass = Ot;
1680
1680
  break;
1681
1681
  case "group":
1682
- this._widgetClass = Ot;
1682
+ this._widgetClass = Wt;
1683
1683
  break;
1684
1684
  case "card":
1685
- this._widgetClass = re;
1685
+ this._widgetClass = ne;
1686
1686
  break;
1687
1687
  case "label":
1688
- this._widgetClass = et;
1688
+ this._widgetClass = st;
1689
1689
  break;
1690
1690
  case "char":
1691
- this._widgetClass = A;
1691
+ this._widgetClass = R;
1692
1692
  break;
1693
1693
  case "text":
1694
1694
  this._widgetClass = $;
1695
1695
  break;
1696
1696
  case "button":
1697
- this._widgetClass = G;
1697
+ this._widgetClass = A;
1698
1698
  break;
1699
1699
  case "buttonGroup":
1700
- this._widgetClass = Wt;
1700
+ this._widgetClass = Tt;
1701
1701
  break;
1702
1702
  case "action_buttons":
1703
1703
  this._widgetClass = zt;
1704
1704
  break;
1705
1705
  case "selection":
1706
- this._widgetClass = I;
1706
+ this._widgetClass = S;
1707
1707
  break;
1708
1708
  case "many2one":
1709
- this._widgetClass = Tt;
1709
+ this._widgetClass = It;
1710
1710
  break;
1711
1711
  case "boolean":
1712
1712
  this._widgetClass = it;
1713
1713
  break;
1714
1714
  case "integer":
1715
- this._widgetClass = St;
1715
+ this._widgetClass = Et;
1716
1716
  break;
1717
1717
  case "float":
1718
1718
  this._widgetClass = q;
1719
1719
  break;
1720
1720
  case "float_time":
1721
- this._widgetClass = Et;
1721
+ this._widgetClass = Vt;
1722
1722
  break;
1723
1723
  case "date":
1724
1724
  this._widgetClass = jt;
@@ -1727,27 +1727,27 @@ class D {
1727
1727
  this._widgetClass = Nt;
1728
1728
  break;
1729
1729
  case "progressbar":
1730
- this._widgetClass = Yt;
1730
+ this._widgetClass = Dt;
1731
1731
  break;
1732
1732
  case "markdown":
1733
- this._widgetClass = It;
1733
+ this._widgetClass = St;
1734
1734
  break;
1735
1735
  case "many2many":
1736
1736
  case "one2many":
1737
1737
  case "one2many_list":
1738
- this._widgetClass = st;
1738
+ this._widgetClass = rt;
1739
1739
  break;
1740
1740
  case "newline":
1741
- this._widgetClass = tt;
1741
+ this._widgetClass = et;
1742
1742
  break;
1743
1743
  case "separator":
1744
- this._widgetClass = Dt;
1744
+ this._widgetClass = At;
1745
1745
  break;
1746
1746
  case "url":
1747
- this._widgetClass = A;
1747
+ this._widgetClass = R;
1748
1748
  break;
1749
1749
  case "email":
1750
- this._widgetClass = te;
1750
+ this._widgetClass = ee;
1751
1751
  break;
1752
1752
  case "reference":
1753
1753
  this._widgetClass = Mt;
@@ -1756,85 +1756,85 @@ class D {
1756
1756
  this._widgetClass = Bt;
1757
1757
  break;
1758
1758
  case "image":
1759
- this._widgetClass = At;
1759
+ this._widgetClass = Rt;
1760
1760
  break;
1761
1761
  case "icon":
1762
- this._widgetClass = Rt;
1762
+ this._widgetClass = Lt;
1763
1763
  break;
1764
1764
  case "fiber_grid":
1765
- this._widgetClass = Lt;
1765
+ this._widgetClass = Gt;
1766
1766
  break;
1767
1767
  case "timeline":
1768
- this._widgetClass = Gt;
1768
+ this._widgetClass = $t;
1769
1769
  break;
1770
1770
  case "indicator":
1771
- this._widgetClass = $t;
1771
+ this._widgetClass = qt;
1772
1772
  break;
1773
1773
  case "tags":
1774
- this._widgetClass = qt;
1774
+ this._widgetClass = Jt;
1775
1775
  break;
1776
1776
  case "tag":
1777
- this._widgetClass = Jt;
1777
+ this._widgetClass = Ht;
1778
1778
  break;
1779
1779
  case "avatar":
1780
- this._widgetClass = kt;
1780
+ this._widgetClass = Pt;
1781
1781
  break;
1782
1782
  case "radio":
1783
- this._widgetClass = Ht;
1783
+ this._widgetClass = Qt;
1784
1784
  break;
1785
1785
  case "multicheckbox":
1786
- this._widgetClass = rt;
1786
+ this._widgetClass = nt;
1787
1787
  break;
1788
1788
  case "switch":
1789
- this._widgetClass = Qt;
1789
+ this._widgetClass = Kt;
1790
1790
  break;
1791
1791
  case "steps":
1792
1792
  this._widgetClass = Xt;
1793
1793
  break;
1794
1794
  case "codeeditor":
1795
- this._widgetClass = nt;
1795
+ this._widgetClass = at;
1796
1796
  break;
1797
1797
  case "time":
1798
- this._widgetClass = Kt;
1798
+ this._widgetClass = Ut;
1799
1799
  break;
1800
1800
  case "html_preview":
1801
- this._widgetClass = Vt;
1801
+ this._widgetClass = Yt;
1802
1802
  break;
1803
1803
  case "alert":
1804
- this._widgetClass = Ut;
1804
+ this._widgetClass = Zt;
1805
1805
  break;
1806
1806
  case "comments_timeline":
1807
- this._widgetClass = Zt;
1807
+ this._widgetClass = te;
1808
1808
  break;
1809
1809
  case "json":
1810
- this._widgetClass = X;
1810
+ this._widgetClass = K;
1811
1811
  break;
1812
1812
  case "arrow_steps":
1813
- this._widgetClass = X;
1813
+ this._widgetClass = K;
1814
1814
  break;
1815
1815
  case "spinner":
1816
1816
  this._widgetClass = N;
1817
1817
  break;
1818
1818
  case "carousel":
1819
- this._widgetClass = ee;
1819
+ this._widgetClass = se;
1820
1820
  break;
1821
1821
  case "colorPicker":
1822
1822
  this._widgetClass = ie;
1823
1823
  break;
1824
1824
  case "qrcode":
1825
- this._widgetClass = se;
1825
+ this._widgetClass = re;
1826
1826
  break;
1827
1827
  }
1828
1828
  }
1829
1829
  createWidget(e, t) {
1830
1830
  this._widgetClass = void 0;
1831
- let s = e;
1832
- switch (this.setWidgetClass(e), this._widgetClass === void 0 && (s = t.fieldsWidgetType, this.setWidgetClass(t.fieldsWidgetType)), this._widgetClass === void 0 && (this._widgetClass = k), e) {
1831
+ let i = e;
1832
+ switch (this.setWidgetClass(e), this._widgetClass === void 0 && (i = t.fieldsWidgetType, this.setWidgetClass(t.fieldsWidgetType)), this._widgetClass === void 0 && (this._widgetClass = k), e) {
1833
1833
  case "notebook":
1834
1834
  case "page":
1835
1835
  case "group":
1836
1836
  case "card":
1837
- return new this._widgetClass({ ...t, type: s });
1837
+ return new this._widgetClass({ ...t, type: i });
1838
1838
  case "button":
1839
1839
  return new this._widgetClass({
1840
1840
  ...t,
@@ -1842,80 +1842,80 @@ class D {
1842
1842
  buttonType: t.type
1843
1843
  });
1844
1844
  default:
1845
- return new this._widgetClass({ ...t, type: s });
1845
+ return new this._widgetClass({ ...t, type: i });
1846
1846
  }
1847
1847
  }
1848
1848
  }
1849
- const ne = ({
1850
- fieldName: i,
1849
+ const ae = ({
1850
+ fieldName: s,
1851
1851
  values: e,
1852
1852
  fields: t
1853
1853
  }) => {
1854
1854
  var o;
1855
- if (!i)
1856
- return {};
1857
- const s = (o = t[i]) == null ? void 0 : o.states;
1858
1855
  if (!s)
1859
1856
  return {};
1860
- const n = {}, a = {};
1861
- for (const l of Object.keys(s))
1862
- if (e.state === l) {
1863
- const d = s[l];
1864
- for (const _ of d) {
1865
- const [h, u] = _;
1866
- a[h] || (a[h] = []), a[h].push(u);
1857
+ const i = (o = t[s]) == null ? void 0 : o.states;
1858
+ if (!i)
1859
+ return {};
1860
+ const n = {}, l = {};
1861
+ for (const a of Object.keys(i))
1862
+ if (e.state === a) {
1863
+ const c = i[a];
1864
+ for (const _ of c) {
1865
+ const [u, h] = _;
1866
+ l[u] || (l[u] = []), l[u].push(h);
1867
1867
  }
1868
1868
  }
1869
- for (const l of Object.keys(a)) {
1870
- const d = a[l];
1871
- n[l] = d.some((_) => _);
1869
+ for (const a of Object.keys(l)) {
1870
+ const c = l[a];
1871
+ n[a] = c.some((_) => _);
1872
1872
  }
1873
1873
  return n;
1874
- }, ae = ({
1875
- states: i,
1874
+ }, lt = ({
1875
+ states: s,
1876
1876
  values: e
1877
1877
  }) => {
1878
1878
  if (!(e != null && e.state))
1879
1879
  return {};
1880
- const t = i.split(",");
1880
+ const t = s.split(",");
1881
1881
  return t.length === 0 ? {} : t.includes(e.state) ? {} : { invisible: !0 };
1882
1882
  };
1883
1883
  function le({
1884
- values: i = {},
1884
+ values: s = {},
1885
1885
  fieldName: e,
1886
1886
  fields: t = {}
1887
1887
  }) {
1888
1888
  var n;
1889
- const s = ((n = t[e]) == null ? void 0 : n.type) || "passthrough";
1890
- return s === "many2one" ? i[e] ? i[e][0] || null : !1 : s === "one2many" || s === "many2many" ? i[e].map((a) => a.id) : i != null && i[e] ? i == null ? void 0 : i[e] : e.includes("'") ? e : parseInt(e);
1889
+ const i = ((n = t[e]) == null ? void 0 : n.type) || "passthrough";
1890
+ return i === "many2one" ? s[e] ? s[e][0] || null : !1 : i === "one2many" || i === "many2many" ? s[e].map((l) => l.id) : s != null && s[e] ? s == null ? void 0 : s[e] : e.includes("'") ? e : parseInt(e);
1891
1891
  }
1892
1892
  const J = ({
1893
- context: i,
1893
+ context: s,
1894
1894
  values: e,
1895
1895
  fields: t
1896
1896
  }) => {
1897
1897
  try {
1898
- if (!i)
1898
+ if (!s)
1899
1899
  return;
1900
- if (lt(i) || typeof i != "string")
1901
- return i;
1902
- const s = at(i);
1903
- if (s !== null)
1900
+ if (ct(s) || typeof s != "string")
1904
1901
  return s;
1905
- if (i.trim().length === 0)
1902
+ const i = ot(s);
1903
+ if (i !== null)
1904
+ return i;
1905
+ if (s.trim().length === 0)
1906
1906
  return;
1907
- const u = i.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((c) => c.split(":")), m = {};
1908
- return u.forEach((c) => {
1909
- const b = c[1];
1910
- if (!c[1].includes("'") && c[1] !== "true" && c[1] !== "false") {
1907
+ const h = s.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((d) => d.split(":")), m = {};
1908
+ return h.forEach((d) => {
1909
+ const b = d[1];
1910
+ if (!d[1].includes("'") && d[1] !== "true" && d[1] !== "false") {
1911
1911
  const x = le({
1912
1912
  values: e,
1913
1913
  fields: t,
1914
1914
  fieldName: b === "active_id" ? "id" : b
1915
1915
  });
1916
- m[c[0].replace(/'/g, "")] = x || void 0;
1916
+ m[d[0].replace(/'/g, "")] = x || void 0;
1917
1917
  } else
1918
- c[1] === "true" ? m[c[0].replace(/'/g, "")] = !0 : c[1] === "false" ? m[c[0].replace(/'/g, "")] = !1 : m[c[0].replace(/'/g, "")] = c[1].replace(
1918
+ d[1] === "true" ? m[d[0].replace(/'/g, "")] = !0 : d[1] === "false" ? m[d[0].replace(/'/g, "")] = !1 : m[d[0].replace(/'/g, "")] = d[1].replace(
1919
1919
  /'/g,
1920
1920
  ""
1921
1921
  );
@@ -1923,43 +1923,43 @@ const J = ({
1923
1923
  } catch {
1924
1924
  return;
1925
1925
  }
1926
- }, Se = (i) => {
1926
+ }, Se = (s) => {
1927
1927
  const e = [];
1928
1928
  try {
1929
- return !i || lt(i) || typeof i != "string" ? e : at(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) => {
1930
- !u[1].includes("'") && u[1] !== "true" && u[1] !== "false" && e.push(u[1].replace(/'/g, ""));
1929
+ return !s || ct(s) || typeof s != "string" ? e : ot(s) !== null ? [] : (s.trim().length === 0 || s.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((h) => h.split(":")).forEach((h) => {
1930
+ !h[1].includes("'") && h[1] !== "true" && h[1] !== "false" && e.push(h[1].replace(/'/g, ""));
1931
1931
  }), e);
1932
1932
  } catch {
1933
1933
  }
1934
1934
  return e;
1935
1935
  };
1936
- function at(i) {
1936
+ function ot(s) {
1937
1937
  try {
1938
- return JSON.parse(i.replace(/'/g, '"'));
1938
+ return JSON.parse(s.replace(/'/g, '"'));
1939
1939
  } catch {
1940
1940
  return null;
1941
1941
  }
1942
1942
  }
1943
- function lt(i) {
1944
- return typeof i == "object" && i !== null && typeof i != "string";
1943
+ function ct(s) {
1944
+ return typeof s == "object" && s !== null && typeof s != "string";
1945
1945
  }
1946
- const oe = (i) => {
1947
- const e = i.trim().replace(")", "").split("("), t = e[0], n = e[1].split(",").map((a) => a.trim());
1946
+ const oe = (s) => {
1947
+ const e = s.trim().replace(")", "").split("("), t = e[0], n = e[1].split(",").map((l) => l.trim());
1948
1948
  return {
1949
1949
  method: t,
1950
1950
  args: n
1951
1951
  };
1952
1952
  };
1953
- function ce(i) {
1953
+ function ce(s) {
1954
1954
  const e = [];
1955
- function t(s) {
1955
+ function t(i) {
1956
1956
  const n = [];
1957
- for (const a of s)
1958
- a instanceof F ? t(a._container.rows.flat()) : n.push(a);
1957
+ for (const l of i)
1958
+ l instanceof F ? t(l._container.rows.flat()) : n.push(l);
1959
1959
  n.length > 0 && e.push(n);
1960
1960
  }
1961
- for (const s of i)
1962
- t(s);
1961
+ for (const i of s)
1962
+ t(i);
1963
1963
  return e.flat();
1964
1964
  }
1965
1965
  class Ee {
@@ -2017,7 +2017,7 @@ class Ee {
2017
2017
  * Context for each field in the form
2018
2018
  */
2019
2019
  r(this, "_contextForFields", {});
2020
- this._fields = e, this._container = new Y(t, 6, !1, "root");
2020
+ this._fields = e, this._container = new z(t, 6, !1, "root");
2021
2021
  }
2022
2022
  get fields() {
2023
2023
  return this._fields;
@@ -2071,88 +2071,88 @@ class Ee {
2071
2071
  this._contextForFields = e;
2072
2072
  }
2073
2073
  parse(e, t) {
2074
- var l;
2075
- const { values: s = {}, readOnly: n = !1 } = t || {}, a = T.parse(e).filter((d) => d.tagName === "form")[0];
2076
- this._string = ((l = a.attributes) == null ? void 0 : l.string) || null, this._string && (this._string = g(this._string)), this._readOnly = n, this._context = s.id ? { active_id: s.id, active_ids: [s.id] } : {}, this._invisibleFields = [], this.parseNode({
2077
- fields: a.children,
2074
+ var a;
2075
+ const { values: i = {}, readOnly: n = !1 } = t || {}, l = I.parse(e).filter((c) => c.tagName === "form")[0];
2076
+ this._string = ((a = l.attributes) == null ? void 0 : a.string) || null, this._string && (this._string = g(this._string)), this._readOnly = n, this._context = i.id ? { active_id: i.id, active_ids: [i.id] } : {}, this._invisibleFields = [], this.parseNode({
2077
+ fields: l.children,
2078
2078
  container: this._container,
2079
- values: s
2079
+ values: i
2080
2080
  });
2081
2081
  const o = ce(this._container._rows);
2082
- o.forEach((d) => {
2083
- const _ = d;
2084
- _._id && _._context && (this._contextForFields[_._id] = d._context);
2085
- }), this._autorefreshableFields = o.filter((d) => d instanceof f && d.autoRefresh).map((d) => d._id);
2082
+ o.forEach((c) => {
2083
+ const _ = c;
2084
+ _._id && _._context && (this._contextForFields[_._id] = c._context);
2085
+ }), this._autorefreshableFields = o.filter((c) => c instanceof f && c.autoRefresh).map((c) => c._id);
2086
2086
  }
2087
2087
  parseNode({
2088
2088
  fields: e,
2089
2089
  container: t,
2090
- values: s
2090
+ values: i
2091
2091
  }) {
2092
- const n = new D();
2093
- e.filter((a) => typeof a == "object").forEach((a) => {
2092
+ const n = new E();
2093
+ e.filter((l) => typeof l == "object").forEach((l) => {
2094
2094
  var v, C;
2095
- const { tagName: o, attributes: l, children: d } = a;
2096
- let _ = o, h = l;
2095
+ const { tagName: o, attributes: a, children: c } = l;
2096
+ let _ = o, u = a;
2097
2097
  if (o === "field") {
2098
- const { name: w, widget: S } = l;
2099
- if (S)
2100
- _ = S;
2098
+ const { name: w, widget: V } = a;
2099
+ if (V)
2100
+ _ = V;
2101
2101
  else if (w) {
2102
2102
  if (!this._fields[w])
2103
2103
  throw new Error(
2104
2104
  `Field ${w} doesn't exist in fields defintion`
2105
2105
  );
2106
- _ = this._fields[w].type, l.widget_props = {
2107
- ...Z(l.widget_props),
2106
+ _ = this._fields[w].type, a.widget_props = {
2107
+ ...Z(a.widget_props),
2108
2108
  ...this._fields[w].widget_props || {}
2109
2109
  };
2110
2110
  }
2111
- h = {
2111
+ u = {
2112
2112
  ...this._fields[w],
2113
- ...l,
2113
+ ...a,
2114
2114
  fieldsWidgetType: this._fields[w].type
2115
2115
  };
2116
2116
  }
2117
- const u = Ct({
2118
- tagAttributes: h,
2119
- values: s,
2117
+ const h = tt({
2118
+ tagAttributes: u,
2119
+ values: i,
2120
2120
  fields: this._fields,
2121
2121
  widgetType: o
2122
2122
  });
2123
2123
  let m;
2124
- o === "button" && h.states ? m = ae({
2125
- states: h.states,
2126
- values: s
2127
- }) : m = ne({
2128
- fieldName: h.name,
2129
- values: s,
2124
+ o === "button" && u.states ? m = lt({
2125
+ states: u.states,
2126
+ values: i
2127
+ }) : m = ae({
2128
+ fieldName: u.name,
2129
+ values: i,
2130
2130
  fields: this._fields
2131
2131
  });
2132
- const c = J({
2133
- context: h.context || ((v = this._fields[h.name]) == null ? void 0 : v.context),
2134
- values: s,
2132
+ const d = J({
2133
+ context: u.context || ((v = this._fields[u.name]) == null ? void 0 : v.context),
2134
+ values: i,
2135
2135
  fields: this._fields
2136
2136
  });
2137
- h.on_change && (this._onChangeFields[h.name] = oe(
2138
- h.on_change
2137
+ u.on_change && (this._onChangeFields[u.name] = oe(
2138
+ u.on_change
2139
2139
  ));
2140
2140
  let b;
2141
- K(h.domain) ? b = h.domain : K((C = this._fields[h.name]) == null ? void 0 : C.domain) && (b = this._fields[h.name].domain), this._keyIdx = this._keyIdx + 1;
2141
+ X(u.domain) ? b = u.domain : X((C = this._fields[u.name]) == null ? void 0 : C.domain) && (b = this._fields[u.name].domain), this._keyIdx = this._keyIdx + 1;
2142
2142
  const x = {
2143
- ...u,
2143
+ ...h,
2144
2144
  ...m,
2145
- context: c,
2145
+ context: d,
2146
2146
  domain: b,
2147
2147
  key: `${this._keyIdx}`
2148
2148
  };
2149
2149
  t.readOnly && (x.readonly = !0);
2150
2150
  const y = n.createWidget(_, x);
2151
2151
  y.invisible && y instanceof f && this._invisibleFields.push(x.name), y instanceof F && this.parseNode({
2152
- fields: d,
2152
+ fields: c,
2153
2153
  container: y.container,
2154
- values: s
2155
- }), y instanceof G && y.readOnly !== void 0 || (y.readOnly = y.readOnly || this.readOnly), t.addWidget(y);
2154
+ values: i
2155
+ }), y instanceof A && y.readOnly !== void 0 || (y.readOnly = y.readOnly || this.readOnly), t.addWidget(y);
2156
2156
  });
2157
2157
  }
2158
2158
  /**
@@ -2163,8 +2163,8 @@ class Ee {
2163
2163
  return this.container.findById(e);
2164
2164
  }
2165
2165
  }
2166
- function K(i) {
2167
- return i ? Array.isArray(i) && i.length > 0 ? !0 : typeof i == "string" && i !== "" && i !== "[]" : !1;
2166
+ function X(s) {
2167
+ return s ? Array.isArray(s) && s.length > 0 ? !0 : typeof s == "string" && s !== "" && s !== "[]" : !1;
2168
2168
  }
2169
2169
  class Ve {
2170
2170
  constructor(e) {
@@ -2238,37 +2238,37 @@ class Ve {
2238
2238
  this._infinite = e;
2239
2239
  }
2240
2240
  parse(e) {
2241
- const t = T.parse(e).filter((n) => n.tagName === "tree")[0];
2241
+ const t = I.parse(e).filter((n) => n.tagName === "tree")[0];
2242
2242
  this._string = t.attributes.string || null, this._string && (this._string = g(this._string)), this._colors = t.attributes.colors || null, this._colors && (this._colors = g(this._colors)), this._status = t.attributes.status || null, this._status && (this._status = g(this._status)), this._editable = t.attributes.editable || null, this._infinite = t.attributes.infinite || !1;
2243
- const s = new D();
2243
+ const i = new E();
2244
2244
  t.children.forEach((n) => {
2245
- const { tagName: a, attributes: o } = n;
2246
- let l = null;
2247
- if (a === "field") {
2248
- const { name: d, widget: _ } = o;
2249
- let h = o;
2250
- if (d) {
2251
- if (!this._fields[d])
2252
- throw new Error(`Field ${d} doesn't exist in fields defintion`);
2253
- const u = this._fields[d];
2254
- l = u.type, (Array.isArray(u == null ? void 0 : u.domain) && (u == null ? void 0 : u.domain.length) === 0 || (u == null ? void 0 : u.domain) === !1) && o.domain && o.domain.length > 0 && delete u.domain;
2245
+ const { tagName: l, attributes: o } = n;
2246
+ let a = null;
2247
+ if (l === "field") {
2248
+ const { name: c, widget: _ } = o;
2249
+ let u = o;
2250
+ if (c) {
2251
+ if (!this._fields[c])
2252
+ throw new Error(`Field ${c} doesn't exist in fields defintion`);
2253
+ const h = this._fields[c];
2254
+ a = h.type, (Array.isArray(h == null ? void 0 : h.domain) && (h == null ? void 0 : h.domain.length) === 0 || (h == null ? void 0 : h.domain) === !1) && o.domain && o.domain.length > 0 && delete h.domain;
2255
2255
  const m = J({
2256
- context: o.context || u.context,
2256
+ context: o.context || h.context,
2257
2257
  values: {},
2258
2258
  fields: this._fields
2259
2259
  });
2260
- h = {
2261
- ...u,
2260
+ u = {
2261
+ ...h,
2262
2262
  ...o,
2263
- fieldsWidgetType: u == null ? void 0 : u.type,
2263
+ fieldsWidgetType: h == null ? void 0 : h.type,
2264
2264
  context: m
2265
- }, this._contextForFields[d] = m;
2265
+ }, this._contextForFields[c] = m;
2266
2266
  }
2267
- if (_ && (l = _), !h.invisible) {
2268
- const u = s.createWidget(l, h);
2269
- this._columns.push(u);
2267
+ if (_ && (a = _), !u.invisible) {
2268
+ const h = i.createWidget(a, u);
2269
+ this._columns.push(h);
2270
2270
  }
2271
- p(h.autorefresh) && this._autorefreshableFields.push(d);
2271
+ p(u.autorefresh) && this._autorefreshableFields.push(c);
2272
2272
  }
2273
2273
  });
2274
2274
  }
@@ -2304,14 +2304,19 @@ class Ye {
2304
2304
  * Field that defines the columns (e.g., "state")
2305
2305
  */
2306
2306
  r(this, "_column_field", "state");
2307
+ /**
2308
+ * Domain for filtering columns (for many2one fields)
2309
+ * Example: "[('fold', '!=', True)]"
2310
+ */
2311
+ r(this, "_column_domain", null);
2307
2312
  /**
2308
2313
  * Enable dragging cards between columns
2309
2314
  */
2310
2315
  r(this, "_drag", !0);
2311
2316
  /**
2312
- * Enable sorting cards within columns
2317
+ * Field name to use for sorting cards within columns
2313
2318
  */
2314
- r(this, "_sort", !0);
2319
+ r(this, "_sort");
2315
2320
  /**
2316
2321
  * Enable setting max cards per column (WIP limits)
2317
2322
  */
@@ -2352,6 +2357,9 @@ class Ye {
2352
2357
  get column_field() {
2353
2358
  return this._column_field;
2354
2359
  }
2360
+ get column_domain() {
2361
+ return this._column_domain;
2362
+ }
2355
2363
  get drag() {
2356
2364
  return this._drag;
2357
2365
  }
@@ -2374,52 +2382,52 @@ class Ye {
2374
2382
  return this._aggregations;
2375
2383
  }
2376
2384
  parse(e) {
2377
- const t = T.parse(e).filter((n) => n.tagName === "kanban")[0];
2378
- this._string = t.attributes.string || null, this._string && (this._string = g(this._string)), this._column_field = t.attributes.column_field || "state", this._drag = t.attributes.drag !== void 0 ? p(t.attributes.drag) : !0, this._sort = t.attributes.sort !== void 0 ? p(t.attributes.sort) : !0, this._set_max_cards = t.attributes.set_max_cards !== void 0 ? p(t.attributes.set_max_cards) : !1, this._colors = t.attributes.colors || null, this._colors && (this._colors = g(this._colors)), this._status = t.attributes.status || null, this._status && (this._status = g(this._status));
2379
- const s = new D();
2385
+ const t = I.parse(e).filter((n) => n.tagName === "kanban")[0];
2386
+ this._string = t.attributes.string || null, this._string && (this._string = g(this._string)), this._column_field = t.attributes.column_field || "state", this._column_domain = t.attributes.column_domain || null, this._drag = t.attributes.drag !== void 0 ? p(t.attributes.drag) : !0, this._sort = t.attributes.sort || void 0, this._set_max_cards = t.attributes.set_max_cards !== void 0 ? p(t.attributes.set_max_cards) : !1, this._colors = t.attributes.colors || null, this._colors && (this._colors = g(this._colors)), this._status = t.attributes.status || null, this._status && (this._status = g(this._status));
2387
+ const i = new E();
2380
2388
  t.children.forEach((n) => {
2381
- const { tagName: a, attributes: o } = n;
2382
- a === "field" ? this._parseField(n, o, s) : a === "button" && this._parseButton(n, o);
2389
+ const { tagName: l, attributes: o } = n;
2390
+ l === "field" ? this._parseField(n, o, i) : l === "button" && this._parseButton(n, o);
2383
2391
  });
2384
2392
  }
2385
- _parseField(e, t, s) {
2386
- const { name: n, widget: a, sum: o } = t;
2393
+ _parseField(e, t, i) {
2394
+ const { name: n, widget: l, sum: o } = t;
2387
2395
  if (!n)
2388
2396
  return;
2389
2397
  if (!this._fields[n])
2390
2398
  throw new Error(`Field ${n} doesn't exist in fields definition`);
2391
- const l = this._fields[n];
2392
- let d = l.type;
2393
- (Array.isArray(l == null ? void 0 : l.domain) && (l == null ? void 0 : l.domain.length) === 0 || (l == null ? void 0 : l.domain) === !1) && t.domain && t.domain.length > 0 && delete l.domain;
2399
+ const a = this._fields[n];
2400
+ let c = a.type;
2401
+ (Array.isArray(a == null ? void 0 : a.domain) && (a == null ? void 0 : a.domain.length) === 0 || (a == null ? void 0 : a.domain) === !1) && t.domain && t.domain.length > 0 && delete a.domain;
2394
2402
  const _ = J({
2395
- context: t.context || l.context,
2403
+ context: t.context || a.context,
2396
2404
  values: {},
2397
2405
  fields: this._fields
2398
- }), h = {
2399
- ...l,
2406
+ }), u = {
2407
+ ...a,
2400
2408
  ...t,
2401
- fieldsWidgetType: l == null ? void 0 : l.type,
2409
+ fieldsWidgetType: a == null ? void 0 : a.type,
2402
2410
  context: _
2403
2411
  };
2404
- if (this._contextForFields[n] = _, a && (d = a), !h.invisible) {
2405
- const u = s.createWidget(
2406
- d,
2407
- h
2412
+ if (this._contextForFields[n] = _, l && (c = l), !u.invisible) {
2413
+ const h = i.createWidget(
2414
+ c,
2415
+ u
2408
2416
  );
2409
- o && (u.sum = g(o), this._aggregations[n] = g(o)), this._card_fields.push(u);
2417
+ o && (h.sum = g(o), this._aggregations[n] = g(o)), this._card_fields.push(h);
2410
2418
  }
2411
2419
  }
2412
2420
  _parseButton(e, t) {
2413
- const { name: s, type: n, string: a, states: o } = t;
2414
- if (!s)
2421
+ const { name: i, type: n, string: l, states: o } = t;
2422
+ if (!i)
2415
2423
  return;
2416
- const l = {
2424
+ const a = {
2417
2425
  ...t,
2418
- name: s,
2426
+ name: i,
2419
2427
  buttonType: n || "object",
2420
- string: a || ""
2421
- }, d = new G(l);
2422
- o && (d.states = o), this._buttons.push(d);
2428
+ string: l || ""
2429
+ }, c = new A(a);
2430
+ o && (c.states = o), this._buttons.push(c);
2423
2431
  }
2424
2432
  /**
2425
2433
  * Find the widgets matching with param id
@@ -2430,6 +2438,48 @@ class Ye {
2430
2438
  return t || this._buttons.find((n) => n.findById ? n.findById(e) : !1) || null;
2431
2439
  }
2432
2440
  }
2441
+ class De {
2442
+ constructor(e) {
2443
+ r(this, "_kanbanDef");
2444
+ this._kanbanDef = e;
2445
+ }
2446
+ get kanbanDef() {
2447
+ return this._kanbanDef;
2448
+ }
2449
+ parse(e, t) {
2450
+ const i = (t == null ? void 0 : t.readOnly) ?? !1, n = new z(1, 12, i), l = new E();
2451
+ let o = 0;
2452
+ return this._kanbanDef.card_fields.forEach((a) => {
2453
+ o++;
2454
+ const c = tt({
2455
+ tagAttributes: a.raw_props || {},
2456
+ values: e,
2457
+ fields: this._kanbanDef.fields,
2458
+ widgetType: a.type || "field"
2459
+ }), _ = {
2460
+ ...a.raw_props || {},
2461
+ ...c,
2462
+ key: `field_${o}`
2463
+ };
2464
+ i && (_.readonly = !0);
2465
+ const u = a.type || "field", h = l.createWidget(u, _);
2466
+ n.addWidget(h, { addLabel: !a.nolabel });
2467
+ }), this._kanbanDef.buttons.forEach((a) => {
2468
+ o++;
2469
+ const c = a.states ? lt({
2470
+ states: a.states,
2471
+ values: e
2472
+ }) : {}, _ = {
2473
+ ...a.raw_props || {},
2474
+ ...c,
2475
+ key: `button_${o}`
2476
+ };
2477
+ i && (_.readonly = !0);
2478
+ const u = new A(_);
2479
+ n.addWidget(u, { addLabel: !1 });
2480
+ }), n;
2481
+ }
2482
+ }
2433
2483
  const de = {
2434
2484
  text: "text",
2435
2485
  many2one: "many2one",
@@ -2444,7 +2494,7 @@ const de = {
2444
2494
  datetime: "datetime"
2445
2495
  };
2446
2496
  class je {
2447
- constructor(e, t, s = 8) {
2497
+ constructor(e, t, i = 8) {
2448
2498
  /**
2449
2499
  * Object containing the specific fields for primary and secondary search fields
2450
2500
  */
@@ -2455,7 +2505,7 @@ class je {
2455
2505
  r(this, "_fields");
2456
2506
  r(this, "_simpleSearchContainer");
2457
2507
  r(this, "_advancedSearchContainer");
2458
- this._searchFields = e, this._fields = t, this._simpleSearchContainer = new Y(s), this._advancedSearchContainer = new Y(s);
2508
+ this._searchFields = e, this._fields = t, this._simpleSearchContainer = new z(i), this._advancedSearchContainer = new z(i);
2459
2509
  }
2460
2510
  get searchFields() {
2461
2511
  return this._searchFields;
@@ -2470,7 +2520,7 @@ class je {
2470
2520
  return this._advancedSearchContainer;
2471
2521
  }
2472
2522
  parse() {
2473
- const e = new D();
2523
+ const e = new E();
2474
2524
  this.parseFields(
2475
2525
  this.searchFields.primary,
2476
2526
  e
@@ -2484,14 +2534,14 @@ class je {
2484
2534
  });
2485
2535
  }
2486
2536
  parseFields(e, t) {
2487
- return e.map((s) => {
2537
+ return e.map((i) => {
2488
2538
  const n = {
2489
- ...this.fields[s],
2490
- name: s,
2539
+ ...this.fields[i],
2540
+ name: i,
2491
2541
  colspan: 2
2492
- }, { type: a, widget: o } = n;
2493
- let l = o ?? a;
2494
- return de[l] === void 0 && (l = a), t.createWidget(l, n);
2542
+ }, { type: l, widget: o } = n;
2543
+ let a = o ?? l;
2544
+ return de[a] === void 0 && (a = l), t.createWidget(a, n);
2495
2545
  });
2496
2546
  }
2497
2547
  /**
@@ -2503,21 +2553,21 @@ class je {
2503
2553
  }
2504
2554
  }
2505
2555
  const Ne = ({
2506
- domain: i,
2556
+ domain: s,
2507
2557
  widgetFieldName: e
2508
2558
  }) => {
2509
2559
  const t = [];
2510
- return i.forEach((s) => {
2511
- if (!Array.isArray(s))
2560
+ return s.forEach((i) => {
2561
+ if (!Array.isArray(i))
2512
2562
  return;
2513
- const [n, a, o] = s;
2514
- let l, d;
2515
- n.indexOf(".") !== -1 ? (l = n.substr(0, n.indexOf(".")), d = n.substr(
2563
+ const [n, l, o] = i;
2564
+ let a, c;
2565
+ n.indexOf(".") !== -1 ? (a = n.substr(0, n.indexOf(".")), c = n.substr(
2516
2566
  n.indexOf(".") + 1,
2517
2567
  n.length - 1
2518
- )) : (l = n, d = "id"), l === e && t.push([d, a, o]);
2568
+ )) : (a = n, c = "id"), a === e && t.push([c, l, o]);
2519
2569
  }), t;
2520
- }, De = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((e) => e.trim()).filter((e) => !e.includes("'"));
2570
+ }, Ae = (s) => typeof s != "string" ? [] : s.replace(/[()[\]]/g, "").split(",").map((e) => e.trim()).filter((e) => !e.includes("'"));
2521
2571
  class ue {
2522
2572
  constructor(e) {
2523
2573
  r(this, "_action_id", null);
@@ -2535,10 +2585,10 @@ class Me {
2535
2585
  constructor(e) {
2536
2586
  r(this, "_string", null);
2537
2587
  r(this, "_items", []);
2538
- const t = T.parse(e).filter((n) => n.tagName === "dashboard")[0];
2588
+ const t = I.parse(e).filter((n) => n.tagName === "dashboard")[0];
2539
2589
  this._string = t.attributes.string || null;
2540
- const { children: s } = t;
2541
- s.forEach((n) => {
2590
+ const { children: i } = t;
2591
+ i.forEach((n) => {
2542
2592
  n.tagName === "dashboard_item" && this._items.push(new ue(n.attributes));
2543
2593
  });
2544
2594
  }
@@ -2549,7 +2599,7 @@ class Me {
2549
2599
  return this._items;
2550
2600
  }
2551
2601
  }
2552
- class ot {
2602
+ class dt {
2553
2603
  constructor(e) {
2554
2604
  r(this, "_string", null);
2555
2605
  r(this, "_type");
@@ -2577,16 +2627,16 @@ class ot {
2577
2627
  return this._y_range;
2578
2628
  }
2579
2629
  }
2580
- class ct extends ot {
2581
- constructor(t, s) {
2582
- super(s);
2630
+ class ut extends dt {
2631
+ constructor(t, i) {
2632
+ super(i);
2583
2633
  r(this, "_color", null);
2584
2634
  r(this, "_icon", null);
2585
2635
  r(this, "_totalDomain", null);
2586
2636
  r(this, "_showPercent", !1);
2587
2637
  r(this, "_progressbar", !1);
2588
2638
  r(this, "_suffix", null);
2589
- this._type = t, this._color = s.attributes.color || null, this._color && (this._color = g(this._color)), this._icon = s.attributes.icon || null, this._icon && (this._icon = g(this._icon)), this._suffix = s.attributes.suffix || null, this._totalDomain = g(s.attributes.totalDomain) || null, this._showPercent = p(s.attributes.showPercent), this._progressbar = p(s.attributes.progressbar);
2639
+ this._type = t, this._color = i.attributes.color || null, this._color && (this._color = g(this._color)), this._icon = i.attributes.icon || null, this._icon && (this._icon = g(this._icon)), this._suffix = i.attributes.suffix || null, this._totalDomain = g(i.attributes.totalDomain) || null, this._showPercent = p(i.attributes.showPercent), this._progressbar = p(i.attributes.progressbar);
2590
2640
  }
2591
2641
  get color() {
2592
2642
  return this._color;
@@ -2607,16 +2657,16 @@ class ct extends ot {
2607
2657
  return this._suffix;
2608
2658
  }
2609
2659
  }
2610
- class he extends ct {
2611
- constructor(t, s) {
2612
- super(t, s);
2660
+ class he extends ut {
2661
+ constructor(t, i) {
2662
+ super(t, i);
2613
2663
  r(this, "_field");
2614
2664
  r(this, "_operator");
2615
- const { children: n } = s;
2616
- n.forEach((a) => {
2617
- if (a.tagName === "field") {
2618
- const o = a.attributes.name, l = a.attributes.operator;
2619
- this._field = o || void 0, this._operator = l;
2665
+ const { children: n } = i;
2666
+ n.forEach((l) => {
2667
+ if (l.tagName === "field") {
2668
+ const o = l.attributes.name, a = l.attributes.operator;
2669
+ this._field = o || void 0, this._operator = a;
2620
2670
  }
2621
2671
  });
2622
2672
  }
@@ -2627,12 +2677,12 @@ class he extends ct {
2627
2677
  return this._operator;
2628
2678
  }
2629
2679
  }
2630
- const _e = (i) => {
2680
+ const _e = (s) => {
2631
2681
  const e = [];
2632
2682
  let t;
2633
- if (i.forEach((s) => {
2634
- if (s.tagName === "field") {
2635
- const n = s.attributes.axis, a = s.attributes.operator, o = s.attributes.name, l = s.attributes.label || void 0, d = s.attributes.stacked || void 0;
2683
+ if (s.forEach((i) => {
2684
+ if (i.tagName === "field") {
2685
+ const n = i.attributes.axis, l = i.attributes.operator, o = i.attributes.name, a = i.attributes.label || void 0, c = i.attributes.stacked || void 0;
2636
2686
  if (!n)
2637
2687
  throw new Error(`Field ${o} doesn't have an axis`);
2638
2688
  if (!o)
@@ -2642,9 +2692,9 @@ const _e = (i) => {
2642
2692
  }) : n === "y" && e.push(
2643
2693
  new ge({
2644
2694
  name: o,
2645
- operator: a,
2646
- label: l,
2647
- stacked: d
2695
+ operator: l,
2696
+ label: a,
2697
+ stacked: c
2648
2698
  })
2649
2699
  );
2650
2700
  }
@@ -2657,13 +2707,13 @@ const _e = (i) => {
2657
2707
  y: e
2658
2708
  };
2659
2709
  };
2660
- class M extends ot {
2661
- constructor(t, s) {
2662
- super(s);
2710
+ class M extends dt {
2711
+ constructor(t, i) {
2712
+ super(i);
2663
2713
  r(this, "_x");
2664
2714
  r(this, "_y");
2665
2715
  this._type = t;
2666
- const n = _e(s.children);
2716
+ const n = _e(i.children);
2667
2717
  this._x = n.x, this._y = n.y;
2668
2718
  }
2669
2719
  get x() {
@@ -2674,21 +2724,21 @@ class M extends ot {
2674
2724
  }
2675
2725
  }
2676
2726
  const fe = {
2677
- indicator: ct,
2727
+ indicator: ut,
2678
2728
  indicatorField: he,
2679
2729
  line: M,
2680
2730
  bar: M,
2681
2731
  pie: M
2682
- }, Be = (i) => {
2683
- const e = T.parse(i).filter((n) => n.tagName === "graph")[0], t = e.attributes.type;
2732
+ }, Be = (s) => {
2733
+ const e = I.parse(s).filter((n) => n.tagName === "graph")[0], t = e.attributes.type;
2684
2734
  if (!t)
2685
2735
  throw new Error(`${t} is not a valid graph`);
2686
- const s = fe[t];
2687
- if (!s)
2736
+ const i = fe[t];
2737
+ if (!i)
2688
2738
  throw new Error(`${t} not found as a GraphModel`);
2689
- return new s(t, e);
2739
+ return new i(t, e);
2690
2740
  };
2691
- class dt {
2741
+ class ht {
2692
2742
  constructor({ name: e, axis: t }) {
2693
2743
  r(this, "_name");
2694
2744
  r(this, "_axis");
@@ -2701,18 +2751,18 @@ class dt {
2701
2751
  return this._axis;
2702
2752
  }
2703
2753
  }
2704
- class ge extends dt {
2754
+ class ge extends ht {
2705
2755
  constructor({
2706
2756
  name: t,
2707
- operator: s,
2757
+ operator: i,
2708
2758
  label: n,
2709
- stacked: a
2759
+ stacked: l
2710
2760
  }) {
2711
2761
  super({ name: t, axis: "y" });
2712
2762
  r(this, "_operator");
2713
2763
  r(this, "_label");
2714
2764
  r(this, "_stacked");
2715
- this._operator = s, this._label = n, this._stacked = a;
2765
+ this._operator = i, this._label = n, this._stacked = l;
2716
2766
  }
2717
2767
  get operator() {
2718
2768
  return this._operator;
@@ -2724,137 +2774,137 @@ class ge extends dt {
2724
2774
  return this._stacked;
2725
2775
  }
2726
2776
  }
2727
- class me extends dt {
2777
+ class me extends ht {
2728
2778
  constructor({ name: e }) {
2729
2779
  super({ name: e, axis: "x" });
2730
2780
  }
2731
2781
  }
2732
- const be = ({ ooui: i }) => {
2733
- const t = [i.x.name];
2734
- return i.y ? (i.y.forEach((s) => {
2735
- s.operator !== "count" && !t.includes(s.name) && t.push(s.name), s.label && !t.includes(s.label) && t.push(s.label);
2782
+ const be = ({ ooui: s }) => {
2783
+ const t = [s.x.name];
2784
+ return s.y ? (s.y.forEach((i) => {
2785
+ i.operator !== "count" && !t.includes(i.name) && t.push(i.name), i.label && !t.includes(i.label) && t.push(i.label);
2736
2786
  }), t) : [];
2737
2787
  };
2738
2788
  function H({
2739
- fields: i,
2789
+ fields: s,
2740
2790
  values: e,
2741
2791
  fieldName: t
2742
2792
  }) {
2743
- const s = i[t], n = e[t];
2744
- if (!s)
2793
+ const i = s[t], n = e[t];
2794
+ if (!i)
2745
2795
  throw new Error(`Field ${t} not found`);
2746
- if (s.type === "many2one")
2796
+ if (i.type === "many2one")
2747
2797
  return n ? { value: n[0], label: n[1] } : { value: !1, label: void 0 };
2748
- if (s.type === "selection") {
2749
- const o = s.selection.find((l) => l[0] === n);
2798
+ if (i.type === "selection") {
2799
+ const o = i.selection.find((a) => a[0] === n);
2750
2800
  return o ? { value: n, label: o[1] } : { value: !1, label: void 0 };
2751
2801
  }
2752
2802
  return { value: n, label: n };
2753
2803
  }
2754
- const Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2804
+ const Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2755
2805
  __proto__: null,
2756
2806
  getFieldsToRetrieve: be,
2757
2807
  getValueAndLabelForField: H
2758
2808
  }, Symbol.toStringTag, { value: "Module" }));
2759
2809
  function ye({
2760
- values: i,
2810
+ values: s,
2761
2811
  timerange: e,
2762
2812
  interval: t = 1
2763
2813
  }) {
2764
- const s = we({
2765
- values: i,
2814
+ const i = we({
2815
+ values: s,
2766
2816
  timerange: e
2767
2817
  });
2768
2818
  return xe({
2769
- values: s,
2819
+ values: i,
2770
2820
  timerange: e,
2771
2821
  interval: t
2772
2822
  });
2773
2823
  }
2774
2824
  function xe({
2775
- values: i,
2825
+ values: s,
2776
2826
  timerange: e,
2777
2827
  interval: t = 1
2778
2828
  }) {
2779
- let s = [];
2780
- const n = ht({
2781
- values: i,
2829
+ let i = [];
2830
+ const n = ft({
2831
+ values: s,
2782
2832
  groupBy: "type-stacked"
2783
- }), a = `${e}s`;
2784
- return Object.keys(n).forEach((l) => {
2785
- const d = n[l];
2786
- for (let _ = 0; _ < d.length; _++) {
2787
- const h = d[_];
2788
- if (s.push(h), _ === d.length - 1)
2833
+ }), l = `${e}s`;
2834
+ return Object.keys(n).forEach((a) => {
2835
+ const c = n[a];
2836
+ for (let _ = 0; _ < c.length; _++) {
2837
+ const u = c[_];
2838
+ if (i.push(u), _ === c.length - 1)
2789
2839
  return;
2790
- const u = h.x, m = d[_ + 1].x;
2791
- if (!ut([u, m], a)) {
2792
- const c = pe({
2793
- dates: [u, m],
2840
+ const h = u.x, m = c[_ + 1].x;
2841
+ if (!_t([h, m], l)) {
2842
+ const d = pe({
2843
+ dates: [h, m],
2794
2844
  timerange: e,
2795
2845
  interval: t
2796
2846
  });
2797
- s = s.concat(
2798
- c.map((b) => ({
2847
+ i = i.concat(
2848
+ d.map((b) => ({
2799
2849
  x: b,
2800
2850
  value: 0,
2801
- type: h.type,
2802
- stacked: h.stacked
2851
+ type: u.type,
2852
+ stacked: u.stacked
2803
2853
  }))
2804
2854
  );
2805
2855
  }
2806
2856
  }
2807
- }), s.sort((l, d) => l.x < d.x ? -1 : l.x > d.x ? 1 : 0);
2857
+ }), i.sort((a, c) => a.x < c.x ? -1 : a.x > c.x ? 1 : 0);
2808
2858
  }
2809
2859
  function pe({
2810
- dates: i,
2860
+ dates: s,
2811
2861
  timerange: e,
2812
2862
  interval: t = 1
2813
2863
  }) {
2814
- const s = [], n = `${e}s`;
2815
- if (i.length === 1)
2816
- return i;
2817
- const a = i.sort((o, l) => o < l ? -1 : o > l ? 1 : 0);
2818
- for (let o = 0; o < a.length - 1; o++) {
2819
- const l = a[o], d = a[o + 1];
2820
- if (!ut([l, d], n)) {
2821
- const _ = z(l, V(n)).add(
2864
+ const i = [], n = `${e}s`;
2865
+ if (s.length === 1)
2866
+ return s;
2867
+ const l = s.sort((o, a) => o < a ? -1 : o > a ? 1 : 0);
2868
+ for (let o = 0; o < l.length - 1; o++) {
2869
+ const a = l[o], c = l[o + 1];
2870
+ if (!_t([a, c], n)) {
2871
+ const _ = T(a, D(n)).add(
2822
2872
  t,
2823
2873
  n
2824
- ), h = z(d, V(n));
2825
- for (; _.isBefore(h); )
2826
- s.push(_.format(V(n))), _.add(t, n);
2874
+ ), u = T(c, D(n));
2875
+ for (; _.isBefore(u); )
2876
+ i.push(_.format(D(n))), _.add(t, n);
2827
2877
  }
2828
2878
  }
2829
- return s;
2879
+ return i;
2830
2880
  }
2831
2881
  function we({
2832
- values: i,
2882
+ values: s,
2833
2883
  timerange: e
2834
2884
  }) {
2835
2885
  const t = Fe({
2836
- values: i,
2886
+ values: s,
2837
2887
  timerange: e
2838
- }), s = [], n = ht({
2888
+ }), i = [], n = ft({
2839
2889
  values: t,
2840
2890
  groupBy: "all"
2841
2891
  });
2842
- return Object.keys(n).forEach((a) => {
2843
- const o = n[a], l = o[0].operator === "count" ? "+" : o[0].operator, d = j({
2892
+ return Object.keys(n).forEach((l) => {
2893
+ const o = n[l], a = o[0].operator === "count" ? "+" : o[0].operator, c = j({
2844
2894
  values: o.map((_) => _.value),
2845
- operator: l
2895
+ operator: a
2846
2896
  });
2847
- s.push({
2897
+ i.push({
2848
2898
  ...o[0],
2849
- value: d
2899
+ value: c
2850
2900
  });
2851
- }), s;
2901
+ }), i;
2852
2902
  }
2853
2903
  function Fe({
2854
- values: i,
2904
+ values: s,
2855
2905
  timerange: e
2856
2906
  }) {
2857
- return i.map((t) => ({
2907
+ return s.map((t) => ({
2858
2908
  ...t,
2859
2909
  x: ve({
2860
2910
  date: t.x,
@@ -2863,11 +2913,11 @@ function Fe({
2863
2913
  }));
2864
2914
  }
2865
2915
  function ve({
2866
- date: i,
2916
+ date: s,
2867
2917
  timerange: e
2868
2918
  }) {
2869
- let t = Ce(i);
2870
- const s = z(i, t);
2919
+ let t = Ce(s);
2920
+ const i = T(s, t);
2871
2921
  switch (e) {
2872
2922
  case "hour": {
2873
2923
  t = "YYYY-MM-DD HH:00";
@@ -2890,36 +2940,36 @@ function ve({
2890
2940
  break;
2891
2941
  }
2892
2942
  }
2893
- return s.format(t);
2943
+ return i.format(t);
2894
2944
  }
2895
- function Ce(i) {
2896
- return i.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
2945
+ function Ce(s) {
2946
+ return s.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
2897
2947
  }
2898
- function ut(i, e) {
2948
+ function _t(s, e) {
2899
2949
  let t = !1;
2900
- const s = V(e);
2901
- if (i.length === 0)
2950
+ const i = D(e);
2951
+ if (s.length === 0)
2902
2952
  return !1;
2903
- if (i.length === 1)
2953
+ if (s.length === 1)
2904
2954
  return !0;
2905
- for (let n = 0; n < i.length - 1; n++) {
2906
- const a = z(i[n], s), l = z(i[n + 1], s).diff(a, e);
2907
- Math.abs(l) === 1 ? t = !0 : t = !1;
2955
+ for (let n = 0; n < s.length - 1; n++) {
2956
+ const l = T(s[n], i), a = T(s[n + 1], i).diff(l, e);
2957
+ Math.abs(a) === 1 ? t = !0 : t = !1;
2908
2958
  }
2909
2959
  return t;
2910
2960
  }
2911
- function ht({
2912
- values: i,
2961
+ function ft({
2962
+ values: s,
2913
2963
  groupBy: e
2914
2964
  }) {
2915
2965
  const t = {};
2916
- return i.forEach((s) => {
2917
- const n = s.x, a = s.type, o = s.stacked, l = e === "all" ? `${n}-${a}-${o}` : `${a}-${o}`;
2918
- t[l] || (t[l] = []), t[l].push(s);
2966
+ return s.forEach((i) => {
2967
+ const n = i.x, l = i.type, o = i.stacked, a = e === "all" ? `${n}-${l}-${o}` : `${l}-${o}`;
2968
+ t[a] || (t[a] = []), t[a].push(i);
2919
2969
  }), t;
2920
2970
  }
2921
- function V(i) {
2922
- switch (i) {
2971
+ function D(s) {
2972
+ switch (s) {
2923
2973
  case "days":
2924
2974
  return "YYYY-MM-DD";
2925
2975
  case "weeks":
@@ -2942,129 +2992,129 @@ const ke = {
2942
2992
  min: "min",
2943
2993
  max: "max"
2944
2994
  }, Pe = ({
2945
- ooui: i,
2995
+ ooui: s,
2946
2996
  values: e,
2947
2997
  fields: t,
2948
- options: s
2998
+ options: i
2949
2999
  }) => {
2950
- const n = L({
2951
- fieldName: i.x.name,
3000
+ const n = G({
3001
+ fieldName: s.x.name,
2952
3002
  values: e,
2953
3003
  fields: t
2954
- }), a = [];
2955
- i.y.forEach((c) => {
3004
+ }), l = [];
3005
+ s.y.forEach((d) => {
2956
3006
  Object.keys(n).forEach((b) => {
2957
3007
  const x = n[b].label, y = n[b].entries;
2958
- if (c.label) {
2959
- const v = L({
2960
- fieldName: c.label,
3008
+ if (d.label) {
3009
+ const v = G({
3010
+ fieldName: d.label,
2961
3011
  values: y,
2962
3012
  fields: t
2963
3013
  });
2964
3014
  Object.keys(v).forEach((C) => {
2965
- const w = v[C].entries, S = v[C].label, gt = R({
3015
+ const w = v[C].entries, V = v[C].label, bt = L({
2966
3016
  entries: w,
2967
3017
  fields: t,
2968
- fieldName: c.name
2969
- }), mt = j({
2970
- values: gt,
2971
- operator: c.operator
3018
+ fieldName: d.name
3019
+ }), yt = j({
3020
+ values: bt,
3021
+ operator: d.operator
2972
3022
  });
2973
- a.push({
3023
+ l.push({
2974
3024
  x: x || !1,
2975
- value: mt,
2976
- type: S,
2977
- operator: c.operator,
2978
- stacked: c.stacked
3025
+ value: yt,
3026
+ type: V,
3027
+ operator: d.operator,
3028
+ stacked: d.stacked
2979
3029
  });
2980
3030
  });
2981
3031
  } else {
2982
- const v = R({
3032
+ const v = L({
2983
3033
  entries: y,
2984
3034
  fields: t,
2985
- fieldName: c.name
3035
+ fieldName: d.name
2986
3036
  }), C = j({
2987
3037
  values: v,
2988
- operator: c.operator
3038
+ operator: d.operator
2989
3039
  });
2990
- a.push({
3040
+ l.push({
2991
3041
  x: x || !1,
2992
3042
  value: C,
2993
- type: _t({
2994
- yAxis: c,
3043
+ type: gt({
3044
+ yAxis: d,
2995
3045
  fields: t
2996
3046
  }),
2997
- operator: c.operator,
2998
- stacked: c.stacked
3047
+ operator: d.operator,
3048
+ stacked: d.stacked
2999
3049
  });
3000
3050
  }
3001
3051
  });
3002
3052
  });
3003
- const o = i.y.some((c) => c.label !== void 0), l = i.y.some((c) => c.stacked !== void 0);
3004
- let _ = [...a.sort((c, b) => c.x < b.x ? -1 : c.x > b.x ? 1 : 0)];
3005
- l && i.y.filter((c) => c.stacked !== void 0).length > 1 && (_ = _.map((c) => ({ ...c, type: `${c.type} - ${c.stacked}` })));
3006
- let h = [..._];
3007
- i.type === "pie" && h.some((c) => c.x === !1) ? h = h.map((c) => c.x === !1 ? { ...c, x: (s == null ? void 0 : s.uninformedString) || "Not informed" } : c) : _.some((c) => c.x === !1) && (h = h.filter(
3008
- (c) => c.x !== !1
3053
+ const o = s.y.some((d) => d.label !== void 0), a = s.y.some((d) => d.stacked !== void 0);
3054
+ let _ = [...l.sort((d, b) => d.x < b.x ? -1 : d.x > b.x ? 1 : 0)];
3055
+ a && s.y.filter((d) => d.stacked !== void 0).length > 1 && (_ = _.map((d) => ({ ...d, type: `${d.type} - ${d.stacked}` })));
3056
+ let u = [..._];
3057
+ s.type === "pie" && u.some((d) => d.x === !1) ? u = u.map((d) => d.x === !1 ? { ...d, x: (i == null ? void 0 : i.uninformedString) || "Not informed" } : d) : _.some((d) => d.x === !1) && (u = u.filter(
3058
+ (d) => d.x !== !1
3009
3059
  ));
3010
- let u = h;
3011
- i.timerange ? u = ye({
3012
- values: u,
3013
- timerange: i.timerange,
3014
- interval: i.interval
3015
- }) : i.type == "pie" && (u = h.sort((c, b) => b.value - c.value));
3060
+ let h = u;
3061
+ s.timerange ? h = ye({
3062
+ values: h,
3063
+ timerange: s.timerange,
3064
+ interval: s.interval
3065
+ }) : s.type == "pie" && (h = u.sort((d, b) => b.value - d.value));
3016
3066
  const m = {
3017
- data: u,
3018
- isGroup: l || o,
3019
- isStack: l
3067
+ data: h,
3068
+ isGroup: a || o,
3069
+ isStack: a
3020
3070
  };
3021
- if (i.type === "line" && i.y_range && (m.yAxisOpts = {
3022
- mode: i.y_range
3023
- }, i.y_range === "auto")) {
3024
- const { min: c, max: b } = ft(u);
3025
- m.yAxisOpts.valueOpts = { min: c, max: b };
3071
+ if (s.type === "line" && s.y_range && (m.yAxisOpts = {
3072
+ mode: s.y_range
3073
+ }, s.y_range === "auto")) {
3074
+ const { min: d, max: b } = mt(h);
3075
+ m.yAxisOpts.valueOpts = { min: d, max: b };
3026
3076
  }
3027
3077
  return m;
3028
3078
  };
3029
- function R({
3030
- entries: i,
3079
+ function L({
3080
+ entries: s,
3031
3081
  fieldName: e,
3032
3082
  fields: t
3033
3083
  }) {
3034
- return i.map((s) => H({
3084
+ return s.map((i) => H({
3035
3085
  fieldName: e,
3036
- values: s,
3086
+ values: i,
3037
3087
  fields: t
3038
- })).map(({ value: s, label: n }) => n);
3088
+ })).map(({ value: i, label: n }) => n);
3039
3089
  }
3040
3090
  function j({
3041
- operator: i,
3091
+ operator: s,
3042
3092
  values: e
3043
3093
  }) {
3044
- switch (i) {
3094
+ switch (s) {
3045
3095
  case "count":
3046
3096
  return e.length;
3047
3097
  case "+":
3048
- return E(
3049
- e.reduce(function(t, s) {
3050
- return t + s;
3098
+ return Y(
3099
+ e.reduce(function(t, i) {
3100
+ return t + i;
3051
3101
  })
3052
3102
  );
3053
3103
  case "-":
3054
- return E(
3055
- e.reduce(function(t, s) {
3056
- return t - s;
3104
+ return Y(
3105
+ e.reduce(function(t, i) {
3106
+ return t - i;
3057
3107
  })
3058
3108
  );
3059
3109
  case "*":
3060
- return E(
3061
- e.reduce(function(t, s) {
3062
- return t * s;
3110
+ return Y(
3111
+ e.reduce(function(t, i) {
3112
+ return t * i;
3063
3113
  })
3064
3114
  );
3065
3115
  case "avg": {
3066
- const s = e.reduce((n, a) => n + a, 0) / e.length || 0;
3067
- return E(s);
3116
+ const i = e.reduce((n, l) => n + l, 0) / e.length || 0;
3117
+ return Y(i);
3068
3118
  }
3069
3119
  case "min":
3070
3120
  return Math.min(...e);
@@ -3072,129 +3122,130 @@ function j({
3072
3122
  return Math.max(...e);
3073
3123
  }
3074
3124
  }
3075
- function E(i) {
3076
- return Math.round((i + Number.EPSILON) * 100) / 100;
3125
+ function Y(s) {
3126
+ return Math.round((s + Number.EPSILON) * 100) / 100;
3077
3127
  }
3078
- function L({
3079
- fieldName: i,
3128
+ function G({
3129
+ fieldName: s,
3080
3130
  fields: e,
3081
3131
  values: t
3082
3132
  }) {
3083
- const s = {};
3133
+ const i = {};
3084
3134
  return t.forEach((n) => {
3085
- const { value: a, label: o } = H({
3135
+ const { value: l, label: o } = H({
3086
3136
  fields: e,
3087
3137
  values: n,
3088
- fieldName: i
3138
+ fieldName: s
3089
3139
  });
3090
- s[a] || (s[a] = { label: o, entries: [] }), s[a].entries.push(n);
3091
- }), s;
3140
+ i[l] || (i[l] = { label: o, entries: [] }), i[l].entries.push(n);
3141
+ }), i;
3092
3142
  }
3093
- function Oe(i) {
3143
+ function Oe(s) {
3094
3144
  let e = [];
3095
- return Object.keys(i).forEach((t) => {
3096
- const s = i[t];
3097
- e = e.concat(s.entries);
3145
+ return Object.keys(s).forEach((t) => {
3146
+ const i = s[t];
3147
+ e = e.concat(i.entries);
3098
3148
  }), e;
3099
3149
  }
3100
- function _t({
3101
- yAxis: i,
3150
+ function gt({
3151
+ yAxis: s,
3102
3152
  fields: e
3103
3153
  }) {
3104
- const t = e[i.name];
3105
- return t != null && t.string ? t.string : i.name;
3154
+ const t = e[s.name];
3155
+ return t != null && t.string ? t.string : s.name;
3106
3156
  }
3107
- function ft(i, e = 0.1) {
3108
- if (i.length === 0)
3157
+ function mt(s, e = 0.1) {
3158
+ if (s.length === 0)
3109
3159
  throw new Error("The values array cannot be empty.");
3110
- const t = i.map((o) => o.value), s = Math.min(...t), n = Math.max(...t), a = (n - s) * e;
3160
+ const t = s.map((o) => o.value), i = Math.min(...t), n = Math.max(...t), l = (n - i) * e;
3111
3161
  return {
3112
- min: s - a,
3113
- max: n + a
3162
+ min: i - l,
3163
+ max: n + l
3114
3164
  };
3115
3165
  }
3116
- const Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3166
+ const Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3117
3167
  __proto__: null,
3118
3168
  getAllObjectsInGroupedValues: Oe,
3119
- getMinMax: ft,
3169
+ getMinMax: mt,
3120
3170
  getValueForOperator: j,
3121
- getValuesForYField: R,
3122
- getValuesGroupedByField: L,
3123
- getYAxisFieldname: _t,
3171
+ getValuesForYField: L,
3172
+ getValuesGroupedByField: G,
3173
+ getYAxisFieldname: gt,
3124
3174
  labelsForOperator: ke,
3125
3175
  processGraphData: Pe
3126
3176
  }, Symbol.toStringTag, { value: "Module" }));
3127
3177
  export {
3128
3178
  zt as ActionButtons,
3129
- Ut as Alert,
3130
- kt as Avatar,
3179
+ Zt as Alert,
3180
+ Pt as Avatar,
3131
3181
  Bt as Binary,
3132
3182
  it as Boolean,
3133
- G as Button,
3134
- Wt as ButtonGroup,
3135
- re as Card,
3136
- ee as Carousel,
3137
- A as Char,
3138
- nt as CodeEditor,
3183
+ A as Button,
3184
+ Tt as ButtonGroup,
3185
+ ne as Card,
3186
+ se as Carousel,
3187
+ R as Char,
3188
+ at as CodeEditor,
3139
3189
  ie as ColorPicker,
3140
- Zt as Comments,
3141
- Y as Container,
3190
+ te as Comments,
3191
+ z as Container,
3142
3192
  F as ContainerWidget,
3143
3193
  Me as Dashboard,
3144
3194
  ue as DashboardItem,
3145
3195
  jt as Date,
3146
3196
  Nt as DateTime,
3147
- te as Email,
3197
+ ee as Email,
3148
3198
  f as Field,
3149
3199
  q as Float,
3150
- Et as FloatTime,
3200
+ Vt as FloatTime,
3151
3201
  Ee as Form,
3152
- ot as Graph,
3153
- dt as GraphAxis,
3202
+ dt as Graph,
3203
+ ht as GraphAxis,
3154
3204
  M as GraphChart,
3155
- ct as GraphIndicator,
3205
+ ut as GraphIndicator,
3156
3206
  he as GraphIndicatorField,
3157
3207
  me as GraphXAxis,
3158
3208
  ge as GraphYAxis,
3159
- Ot as Group,
3160
- Vt as HTMLPreview,
3161
- Rt as Icon,
3162
- At as Image,
3163
- $t as Indicator,
3164
- St as Integer,
3165
- X as JSONField,
3209
+ Wt as Group,
3210
+ Yt as HTMLPreview,
3211
+ Lt as Icon,
3212
+ Rt as Image,
3213
+ qt as Indicator,
3214
+ Et as Integer,
3215
+ K as JSONField,
3166
3216
  Ye as Kanban,
3167
- et as Label,
3168
- Tt as Many2one,
3169
- It as Markdown,
3170
- rt as MultiCheckbox,
3171
- tt as NewLine,
3217
+ De as KanbanCard,
3218
+ st as Label,
3219
+ It as Many2one,
3220
+ St as Markdown,
3221
+ nt as MultiCheckbox,
3222
+ et as NewLine,
3172
3223
  B as Notebook,
3173
- st as One2many,
3174
- Pt as Page,
3175
- Yt as ProgressBar,
3176
- se as QRCode,
3177
- Ht as Radio,
3224
+ rt as One2many,
3225
+ Ot as Page,
3226
+ Dt as ProgressBar,
3227
+ re as QRCode,
3228
+ Qt as Radio,
3178
3229
  Mt as Reference,
3179
3230
  de as SearchFieldTypes,
3180
3231
  je as SearchFilter,
3181
- I as Selection,
3182
- Dt as Separator,
3232
+ S as Selection,
3233
+ At as Separator,
3183
3234
  N as Spinner,
3184
3235
  Xt as Steps,
3185
- Qt as Switch,
3186
- Jt as Tag,
3187
- qt as Tags,
3236
+ Kt as Switch,
3237
+ Ht as Tag,
3238
+ Jt as Tags,
3188
3239
  $ as Text,
3189
- Kt as Time,
3190
- Gt as Timeline,
3240
+ Ut as Time,
3241
+ $t as Timeline,
3191
3242
  Ve as Tree,
3192
3243
  k as Widget,
3193
- Ae as graphFieldUtils,
3194
- Re as graphProcessor,
3244
+ Re as graphFieldUtils,
3245
+ Le as graphProcessor,
3195
3246
  J as parseContext,
3196
3247
  Se as parseContextFields,
3197
- De as parseDomainFields,
3248
+ Ae as parseDomainFields,
3198
3249
  Be as parseGraph,
3199
3250
  Ne as transformDomainForChildWidget
3200
3251
  };