@gisce/ooui 2.39.0 → 2.40.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/Image.d.ts +7 -0
- package/dist/Image.d.ts.map +1 -1
- package/dist/Kanban.d.ts +80 -0
- package/dist/Kanban.d.ts.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/ooui.es.js +1184 -1008
- package/dist/ooui.es.js.map +1 -1
- package/package.json +1 -1
- package/src/Image.ts +34 -0
- package/src/Kanban.ts +285 -0
- package/src/index.ts +2 -0
- package/src/spec/Image.spec.ts +28 -0
- package/src/spec/Kanban.spec.ts +364 -0
package/dist/ooui.es.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var r = (i,
|
|
4
|
-
import { decode as
|
|
5
|
-
import { evaluateCondition as
|
|
6
|
-
import * as
|
|
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 I from "txml";
|
|
7
7
|
import T from "moment";
|
|
8
|
-
const
|
|
8
|
+
const wt = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Ft = ({
|
|
9
9
|
entry: i,
|
|
10
|
-
values:
|
|
11
|
-
fields:
|
|
10
|
+
values: e,
|
|
11
|
+
fields: t
|
|
12
12
|
}) => {
|
|
13
|
-
let [s, n, a] = i,
|
|
14
|
-
const
|
|
13
|
+
let [s, n, a] = i, o = e[s];
|
|
14
|
+
const l = U({
|
|
15
15
|
fieldName: s,
|
|
16
|
-
valueInObject:
|
|
16
|
+
valueInObject: o,
|
|
17
17
|
expectedValue: a,
|
|
18
|
-
fields:
|
|
18
|
+
fields: t
|
|
19
19
|
});
|
|
20
|
-
if (
|
|
21
|
-
return
|
|
22
|
-
switch (
|
|
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()) {
|
|
23
23
|
case "=":
|
|
24
24
|
case "==":
|
|
25
|
-
return
|
|
25
|
+
return o == a;
|
|
26
26
|
case "<>":
|
|
27
27
|
case "!=":
|
|
28
|
-
return
|
|
28
|
+
return o != a;
|
|
29
29
|
case ">":
|
|
30
|
-
return
|
|
30
|
+
return o > a;
|
|
31
31
|
case ">=":
|
|
32
|
-
return
|
|
32
|
+
return o >= a;
|
|
33
33
|
case "<":
|
|
34
|
-
return
|
|
34
|
+
return o < a;
|
|
35
35
|
case "<=":
|
|
36
|
-
return
|
|
36
|
+
return o <= a;
|
|
37
37
|
case "in":
|
|
38
|
-
return a.includes(
|
|
38
|
+
return a.includes(o);
|
|
39
39
|
case "not in":
|
|
40
|
-
return !a.includes(
|
|
40
|
+
return !a.includes(o);
|
|
41
41
|
default:
|
|
42
42
|
return !1;
|
|
43
43
|
}
|
|
44
|
-
},
|
|
44
|
+
}, g = (i) => xt(i, { level: "xml" }), U = ({
|
|
45
45
|
fieldName: i,
|
|
46
|
-
valueInObject:
|
|
47
|
-
expectedValue:
|
|
46
|
+
valueInObject: e,
|
|
47
|
+
expectedValue: t,
|
|
48
48
|
fields: s = {}
|
|
49
49
|
}) => {
|
|
50
50
|
const n = {
|
|
51
|
-
modifiedValueInObject:
|
|
51
|
+
modifiedValueInObject: e,
|
|
52
52
|
modifiedExpectedValue: null,
|
|
53
53
|
directOutcome: void 0
|
|
54
54
|
};
|
|
@@ -56,24 +56,24 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), ve
|
|
|
56
56
|
modifiedValueInObject: null,
|
|
57
57
|
modifiedExpectedValue: null,
|
|
58
58
|
directOutcome: !1
|
|
59
|
-
} :
|
|
59
|
+
} : e === void 0 && s[i].type !== "boolean" && s[i].type !== "many2one" && s[i].type !== "selection" && typeof t != "boolean" ? {
|
|
60
60
|
modifiedValueInObject: null,
|
|
61
61
|
modifiedExpectedValue: null,
|
|
62
62
|
directOutcome: !1
|
|
63
|
-
} : (n.modifiedValueInObject = s[i].type === "boolean" ? !!
|
|
64
|
-
},
|
|
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);
|
|
64
|
+
}, Q = ({
|
|
65
65
|
attrs: i,
|
|
66
|
-
values:
|
|
67
|
-
fields:
|
|
66
|
+
values: e,
|
|
67
|
+
fields: t,
|
|
68
68
|
widgetType: s
|
|
69
69
|
}) => {
|
|
70
|
-
const d = i.replace(/\(/g, "[").replace(/\)/g, "]").replace(/'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), _ =
|
|
71
|
-
for (const
|
|
72
|
-
const x = h[
|
|
73
|
-
x ? u[
|
|
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
74
|
}
|
|
75
75
|
return u;
|
|
76
|
-
},
|
|
76
|
+
}, Z = (i) => {
|
|
77
77
|
if (i === void 0)
|
|
78
78
|
return {};
|
|
79
79
|
if (typeof i == "string")
|
|
@@ -84,71 +84,71 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), ve
|
|
|
84
84
|
}
|
|
85
85
|
else
|
|
86
86
|
return i;
|
|
87
|
-
},
|
|
87
|
+
}, vt = ({
|
|
88
88
|
attrs: i,
|
|
89
|
-
values:
|
|
90
|
-
fields:
|
|
89
|
+
values: e,
|
|
90
|
+
fields: t,
|
|
91
91
|
widgetType: s
|
|
92
92
|
}) => {
|
|
93
93
|
try {
|
|
94
|
-
const n =
|
|
94
|
+
const n = g(i), a = JSON.parse(
|
|
95
95
|
n.replace(/'/g, '"')
|
|
96
|
-
),
|
|
97
|
-
for (const
|
|
98
|
-
const d =
|
|
99
|
-
object:
|
|
100
|
-
condition: a[
|
|
96
|
+
), o = {};
|
|
97
|
+
for (const l of Object.keys(a)) {
|
|
98
|
+
const d = pt({
|
|
99
|
+
object: e,
|
|
100
|
+
condition: a[l],
|
|
101
101
|
evaluateFieldComparison: ({
|
|
102
102
|
fieldName: _,
|
|
103
103
|
valueInObject: h,
|
|
104
104
|
expectedValue: u
|
|
105
|
-
}) =>
|
|
105
|
+
}) => U({
|
|
106
106
|
fieldName: _,
|
|
107
107
|
valueInObject: h,
|
|
108
108
|
expectedValue: u,
|
|
109
|
-
fields:
|
|
109
|
+
fields: t
|
|
110
110
|
})
|
|
111
111
|
});
|
|
112
|
-
d ? l
|
|
112
|
+
d ? o[l] = !0 : l === "readonly" && !d && s === "button" && (o[l] = !1);
|
|
113
113
|
}
|
|
114
|
-
return
|
|
114
|
+
return o;
|
|
115
115
|
} catch (n) {
|
|
116
116
|
throw console.error(n), n instanceof SyntaxError ? new Error(
|
|
117
117
|
"Error parsing new json_attrs. Original string: " + i
|
|
118
118
|
) : n;
|
|
119
119
|
}
|
|
120
|
-
},
|
|
120
|
+
}, Ct = ({
|
|
121
121
|
tagAttributes: i,
|
|
122
|
-
values:
|
|
123
|
-
fields:
|
|
122
|
+
values: e,
|
|
123
|
+
fields: t,
|
|
124
124
|
widgetType: s,
|
|
125
125
|
fallbackMode: n = !0
|
|
126
126
|
}) => {
|
|
127
127
|
let a = {};
|
|
128
128
|
if (i.json_attrs)
|
|
129
129
|
try {
|
|
130
|
-
a =
|
|
130
|
+
a = vt({
|
|
131
131
|
attrs: i.json_attrs,
|
|
132
|
-
values:
|
|
133
|
-
fields:
|
|
132
|
+
values: e,
|
|
133
|
+
fields: t,
|
|
134
134
|
widgetType: s
|
|
135
135
|
});
|
|
136
|
-
} catch (
|
|
136
|
+
} catch (o) {
|
|
137
137
|
if (n && i.attrs)
|
|
138
|
-
a =
|
|
138
|
+
a = Q({
|
|
139
139
|
attrs: i.attrs,
|
|
140
|
-
values:
|
|
141
|
-
fields:
|
|
140
|
+
values: e,
|
|
141
|
+
fields: t,
|
|
142
142
|
widgetType: s
|
|
143
143
|
});
|
|
144
144
|
else
|
|
145
|
-
throw
|
|
145
|
+
throw o;
|
|
146
146
|
}
|
|
147
147
|
else
|
|
148
|
-
i.attrs && (a =
|
|
148
|
+
i.attrs && (a = Q({
|
|
149
149
|
attrs: i.attrs,
|
|
150
|
-
values:
|
|
151
|
-
fields:
|
|
150
|
+
values: e,
|
|
151
|
+
fields: t,
|
|
152
152
|
widgetType: s
|
|
153
153
|
}));
|
|
154
154
|
return {
|
|
@@ -157,8 +157,8 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), ve
|
|
|
157
157
|
attrs: void 0,
|
|
158
158
|
json_attrs: void 0
|
|
159
159
|
};
|
|
160
|
-
},
|
|
161
|
-
constructor(
|
|
160
|
+
}, p = (i) => i === 1 || i === "1" || i === !0 || i === "True" || i === "true", P = class P {
|
|
161
|
+
constructor(e) {
|
|
162
162
|
/**
|
|
163
163
|
* Determines if widget is read only (default is undefined)
|
|
164
164
|
*/
|
|
@@ -194,67 +194,67 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), ve
|
|
|
194
194
|
* Base type of the field
|
|
195
195
|
*/
|
|
196
196
|
r(this, "_fieldType", "");
|
|
197
|
-
this._colspan = P._defaultColspan, this._invisible = !1,
|
|
197
|
+
this._colspan = P._defaultColspan, this._invisible = !1, e && (e.colspan && (this._colspan = +e.colspan), e.readonly !== void 0 && (this._readOnly = p(e.readonly)), e.invisible && (e.invisible === 1 || e.invisible === "1" || e.invisible === !0) && (this._invisible = !0), e.type && (this._type = e.type), e.context && (this._context = e.context), e.domain && (typeof e.domain != "string" ? this._domain = g(JSON.stringify(e.domain)) : this._domain = g(e.domain)), e.type && (this._fieldType = e.fieldsWidgetType), e.widget_props && (this._parsedWidgetProps = Z(e.widget_props)), e.key && (this._key = e.key), e.is_function && (this._isFunction = e.is_function), e.is_sortable && (this._isSortable = e.is_sortable));
|
|
198
198
|
}
|
|
199
199
|
static get defaultColspan() {
|
|
200
200
|
return P._defaultColspan;
|
|
201
201
|
}
|
|
202
|
-
static set defaultColspan(
|
|
203
|
-
P._defaultColspan =
|
|
202
|
+
static set defaultColspan(e) {
|
|
203
|
+
P._defaultColspan = e;
|
|
204
204
|
}
|
|
205
205
|
get readOnly() {
|
|
206
206
|
return this._readOnly;
|
|
207
207
|
}
|
|
208
|
-
set readOnly(
|
|
209
|
-
this._readOnly =
|
|
208
|
+
set readOnly(e) {
|
|
209
|
+
this._readOnly = e;
|
|
210
210
|
}
|
|
211
211
|
get colspan() {
|
|
212
212
|
return this._colspan;
|
|
213
213
|
}
|
|
214
|
-
set colspan(
|
|
215
|
-
this._colspan = +
|
|
214
|
+
set colspan(e) {
|
|
215
|
+
this._colspan = +e;
|
|
216
216
|
}
|
|
217
217
|
get invisible() {
|
|
218
218
|
return this._invisible;
|
|
219
219
|
}
|
|
220
|
-
set invisible(
|
|
221
|
-
this._invisible =
|
|
220
|
+
set invisible(e) {
|
|
221
|
+
this._invisible = e;
|
|
222
222
|
}
|
|
223
223
|
get type() {
|
|
224
224
|
return this._type;
|
|
225
225
|
}
|
|
226
|
-
set type(
|
|
227
|
-
this._type =
|
|
226
|
+
set type(e) {
|
|
227
|
+
this._type = e;
|
|
228
228
|
}
|
|
229
229
|
get context() {
|
|
230
230
|
return this._context;
|
|
231
231
|
}
|
|
232
|
-
set context(
|
|
233
|
-
this._context =
|
|
232
|
+
set context(e) {
|
|
233
|
+
this._context = e;
|
|
234
234
|
}
|
|
235
235
|
get domain() {
|
|
236
236
|
return this._domain;
|
|
237
237
|
}
|
|
238
|
-
set domain(
|
|
239
|
-
this._domain =
|
|
238
|
+
set domain(e) {
|
|
239
|
+
this._domain = e;
|
|
240
240
|
}
|
|
241
241
|
get key() {
|
|
242
242
|
return this._key;
|
|
243
243
|
}
|
|
244
|
-
set key(
|
|
245
|
-
this._key =
|
|
244
|
+
set key(e) {
|
|
245
|
+
this._key = e;
|
|
246
246
|
}
|
|
247
247
|
get parsedWidgetProps() {
|
|
248
248
|
return this._parsedWidgetProps;
|
|
249
249
|
}
|
|
250
|
-
set parsedWidgetProps(
|
|
251
|
-
this._parsedWidgetProps =
|
|
250
|
+
set parsedWidgetProps(e) {
|
|
251
|
+
this._parsedWidgetProps = e;
|
|
252
252
|
}
|
|
253
253
|
get isFunction() {
|
|
254
254
|
return this._isFunction;
|
|
255
255
|
}
|
|
256
|
-
set isFunction(
|
|
257
|
-
this._isFunction =
|
|
256
|
+
set isFunction(e) {
|
|
257
|
+
this._isFunction = e;
|
|
258
258
|
}
|
|
259
259
|
get isSortable() {
|
|
260
260
|
return this._isSortable;
|
|
@@ -267,10 +267,10 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), ve
|
|
|
267
267
|
* Default colspan
|
|
268
268
|
*/
|
|
269
269
|
r(P, "_defaultColspan", 1);
|
|
270
|
-
let
|
|
271
|
-
class f extends
|
|
272
|
-
constructor(
|
|
273
|
-
super(
|
|
270
|
+
let k = P;
|
|
271
|
+
class f extends k {
|
|
272
|
+
constructor(t) {
|
|
273
|
+
super(t);
|
|
274
274
|
/**
|
|
275
275
|
* Field identifier
|
|
276
276
|
*
|
|
@@ -316,55 +316,55 @@ class f extends C {
|
|
|
316
316
|
r(this, "_selectionValues", /* @__PURE__ */ new Map([]));
|
|
317
317
|
r(this, "_autoRefresh", !1);
|
|
318
318
|
r(this, "_raw_props");
|
|
319
|
-
this._activated = !0,
|
|
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)));
|
|
320
320
|
}
|
|
321
321
|
get id() {
|
|
322
322
|
return this._id;
|
|
323
323
|
}
|
|
324
|
-
set id(
|
|
325
|
-
this._id =
|
|
324
|
+
set id(t) {
|
|
325
|
+
this._id = t;
|
|
326
326
|
}
|
|
327
327
|
get label() {
|
|
328
328
|
return this._label;
|
|
329
329
|
}
|
|
330
|
-
set label(
|
|
331
|
-
this._label =
|
|
330
|
+
set label(t) {
|
|
331
|
+
this._label = t;
|
|
332
332
|
}
|
|
333
333
|
get nolabel() {
|
|
334
334
|
return this._nolabel;
|
|
335
335
|
}
|
|
336
|
-
set nolabel(
|
|
337
|
-
this._nolabel =
|
|
336
|
+
set nolabel(t) {
|
|
337
|
+
this._nolabel = t;
|
|
338
338
|
}
|
|
339
339
|
get required() {
|
|
340
340
|
return this._required;
|
|
341
341
|
}
|
|
342
|
-
set required(
|
|
343
|
-
this._required =
|
|
342
|
+
set required(t) {
|
|
343
|
+
this._required = t;
|
|
344
344
|
}
|
|
345
345
|
get tooltip() {
|
|
346
346
|
return this._tooltip;
|
|
347
347
|
}
|
|
348
|
-
set tooltip(
|
|
349
|
-
this._tooltip =
|
|
348
|
+
set tooltip(t) {
|
|
349
|
+
this._tooltip = t;
|
|
350
350
|
}
|
|
351
351
|
get tooltipInline() {
|
|
352
352
|
return this._tooltipInline;
|
|
353
353
|
}
|
|
354
|
-
set tooltipInline(
|
|
355
|
-
this._tooltipInline =
|
|
354
|
+
set tooltipInline(t) {
|
|
355
|
+
this._tooltipInline = t;
|
|
356
356
|
}
|
|
357
357
|
get activated() {
|
|
358
358
|
return this._activated;
|
|
359
359
|
}
|
|
360
|
-
set activated(
|
|
361
|
-
this._activated =
|
|
360
|
+
set activated(t) {
|
|
361
|
+
this._activated = t;
|
|
362
362
|
}
|
|
363
363
|
get sum() {
|
|
364
364
|
return this._sum;
|
|
365
365
|
}
|
|
366
|
-
set sum(
|
|
367
|
-
this._sum =
|
|
366
|
+
set sum(t) {
|
|
367
|
+
this._sum = t;
|
|
368
368
|
}
|
|
369
369
|
get suffix() {
|
|
370
370
|
return this._parsedWidgetProps.suffix || "";
|
|
@@ -375,20 +375,20 @@ class f extends C {
|
|
|
375
375
|
get selectionValues() {
|
|
376
376
|
return this._selectionValues;
|
|
377
377
|
}
|
|
378
|
-
set selectionValues(
|
|
379
|
-
this._selectionValues =
|
|
378
|
+
set selectionValues(t) {
|
|
379
|
+
this._selectionValues = t;
|
|
380
380
|
}
|
|
381
381
|
get autoRefresh() {
|
|
382
382
|
return this._autoRefresh ?? !1;
|
|
383
383
|
}
|
|
384
|
-
set autoRefresh(
|
|
385
|
-
this._autoRefresh =
|
|
384
|
+
set autoRefresh(t) {
|
|
385
|
+
this._autoRefresh = t;
|
|
386
386
|
}
|
|
387
387
|
get readOnly() {
|
|
388
388
|
return this.autoRefresh ? !0 : super.readOnly;
|
|
389
389
|
}
|
|
390
|
-
set readOnly(
|
|
391
|
-
super.readOnly =
|
|
390
|
+
set readOnly(t) {
|
|
391
|
+
super.readOnly = t;
|
|
392
392
|
}
|
|
393
393
|
get raw_props() {
|
|
394
394
|
return this._raw_props;
|
|
@@ -397,20 +397,20 @@ class f extends C {
|
|
|
397
397
|
* Returns this instance in case this id matches param id.
|
|
398
398
|
* @param {string} id id (name) to find
|
|
399
399
|
*/
|
|
400
|
-
findById(
|
|
401
|
-
return this._id ===
|
|
400
|
+
findById(t) {
|
|
401
|
+
return this._id === t ? this : null;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
class
|
|
404
|
+
class kt extends f {
|
|
405
405
|
}
|
|
406
|
-
class
|
|
407
|
-
findById(
|
|
406
|
+
class tt extends k {
|
|
407
|
+
findById(e) {
|
|
408
408
|
return null;
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
class
|
|
412
|
-
constructor(
|
|
413
|
-
super({ ...
|
|
411
|
+
class et extends f {
|
|
412
|
+
constructor(t) {
|
|
413
|
+
super({ ...t, nolabel: !0 });
|
|
414
414
|
/**
|
|
415
415
|
* Label text
|
|
416
416
|
*/
|
|
@@ -431,45 +431,45 @@ class Z extends f {
|
|
|
431
431
|
* Id of the field that this label goes with. Null if it's an independent label
|
|
432
432
|
*/
|
|
433
433
|
r(this, "_fieldForLabel", null);
|
|
434
|
-
|
|
434
|
+
t != null && t.fieldForLabel && (this._fieldForLabel = t.fieldForLabel), t.widget_props && (this.parsedWidgetProps.label_type && (this.labelType = this.parsedWidgetProps.label_type), this.parsedWidgetProps.label_size && (this.labelSize = this.parsedWidgetProps.label_size)), t != null && t.align && (this.align = t.align);
|
|
435
435
|
}
|
|
436
436
|
get text() {
|
|
437
437
|
return this._text;
|
|
438
438
|
}
|
|
439
|
-
set text(
|
|
440
|
-
this._text =
|
|
439
|
+
set text(t) {
|
|
440
|
+
this._text = t;
|
|
441
441
|
}
|
|
442
442
|
get align() {
|
|
443
443
|
return this._align;
|
|
444
444
|
}
|
|
445
|
-
set align(
|
|
446
|
-
this._align =
|
|
445
|
+
set align(t) {
|
|
446
|
+
this._align = t;
|
|
447
447
|
}
|
|
448
448
|
get labelType() {
|
|
449
449
|
return this._labelType;
|
|
450
450
|
}
|
|
451
|
-
set labelType(
|
|
452
|
-
this._labelType =
|
|
451
|
+
set labelType(t) {
|
|
452
|
+
this._labelType = t;
|
|
453
453
|
}
|
|
454
454
|
get labelSize() {
|
|
455
455
|
return this._labelSize;
|
|
456
456
|
}
|
|
457
|
-
set labelSize(
|
|
458
|
-
this._labelSize =
|
|
457
|
+
set labelSize(t) {
|
|
458
|
+
this._labelSize = t;
|
|
459
459
|
}
|
|
460
460
|
get humanDate() {
|
|
461
|
-
var
|
|
462
|
-
return
|
|
461
|
+
var t;
|
|
462
|
+
return p(((t = this._parsedWidgetProps) == null ? void 0 : t.human_date) ?? !1);
|
|
463
463
|
}
|
|
464
464
|
get fieldForLabel() {
|
|
465
465
|
return this._fieldForLabel;
|
|
466
466
|
}
|
|
467
|
-
set fieldForLabel(
|
|
468
|
-
this._fieldForLabel =
|
|
467
|
+
set fieldForLabel(t) {
|
|
468
|
+
this._fieldForLabel = t;
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
class
|
|
472
|
-
constructor(
|
|
471
|
+
class Y {
|
|
472
|
+
constructor(e = 4, t = 6, s = !1, n = void 0) {
|
|
473
473
|
/**
|
|
474
474
|
* Number of columns the container is divided
|
|
475
475
|
*/
|
|
@@ -491,25 +491,25 @@ class V {
|
|
|
491
491
|
* Unique key for container
|
|
492
492
|
*/
|
|
493
493
|
r(this, "_key");
|
|
494
|
-
this._columns =
|
|
494
|
+
this._columns = e, this._colspan = t, this._rows = [[]], this._index = 0, this._readOnly = s, this._key = n;
|
|
495
495
|
}
|
|
496
496
|
get columns() {
|
|
497
497
|
return this._columns;
|
|
498
498
|
}
|
|
499
|
-
set columns(
|
|
500
|
-
this._columns =
|
|
499
|
+
set columns(e) {
|
|
500
|
+
this._columns = e;
|
|
501
501
|
}
|
|
502
502
|
get colspan() {
|
|
503
503
|
return this._colspan;
|
|
504
504
|
}
|
|
505
|
-
set colspan(
|
|
506
|
-
this._colspan =
|
|
505
|
+
set colspan(e) {
|
|
506
|
+
this._colspan = e;
|
|
507
507
|
}
|
|
508
508
|
get rows() {
|
|
509
509
|
return this._rows;
|
|
510
510
|
}
|
|
511
|
-
set rows(
|
|
512
|
-
this._rows =
|
|
511
|
+
set rows(e) {
|
|
512
|
+
this._rows = e;
|
|
513
513
|
}
|
|
514
514
|
get index() {
|
|
515
515
|
return this._index;
|
|
@@ -517,43 +517,43 @@ class V {
|
|
|
517
517
|
get readOnly() {
|
|
518
518
|
return this._readOnly;
|
|
519
519
|
}
|
|
520
|
-
set readOnly(
|
|
521
|
-
this._readOnly =
|
|
520
|
+
set readOnly(e) {
|
|
521
|
+
this._readOnly = e;
|
|
522
522
|
}
|
|
523
523
|
get key() {
|
|
524
524
|
return this._key;
|
|
525
525
|
}
|
|
526
|
-
set key(
|
|
527
|
-
this._key =
|
|
526
|
+
set key(e) {
|
|
527
|
+
this._key = e;
|
|
528
528
|
}
|
|
529
529
|
/**
|
|
530
530
|
* Returns the next free position
|
|
531
531
|
*/
|
|
532
532
|
freePosition() {
|
|
533
|
-
const
|
|
534
|
-
return this._columns -
|
|
533
|
+
const e = this._rows[this._index].filter((t) => !t.invisible).reduce((t, s) => t + s.colspan, 0);
|
|
534
|
+
return this._columns - e;
|
|
535
535
|
}
|
|
536
|
-
addWidget(
|
|
537
|
-
const s = [], n =
|
|
538
|
-
if (
|
|
536
|
+
addWidget(e, t) {
|
|
537
|
+
const s = [], n = t ? t.addLabel : !0;
|
|
538
|
+
if (e instanceof tt) {
|
|
539
539
|
this._rows.push([]), this._index++;
|
|
540
540
|
return;
|
|
541
541
|
}
|
|
542
|
-
if (
|
|
543
|
-
|
|
544
|
-
const
|
|
545
|
-
name:
|
|
546
|
-
string:
|
|
547
|
-
invisible:
|
|
548
|
-
help:
|
|
549
|
-
fieldForLabel:
|
|
550
|
-
key: `${
|
|
542
|
+
if (e.colspan > this._columns && (e.colspan = this._columns), e.readOnly = e.readOnly || this.readOnly, n && e instanceof f && !e.nolabel) {
|
|
543
|
+
e.colspan > 1 && (e.colspan -= 1);
|
|
544
|
+
const o = new et({
|
|
545
|
+
name: e.id + "_label",
|
|
546
|
+
string: e.label,
|
|
547
|
+
invisible: e.invisible,
|
|
548
|
+
help: e.tooltip,
|
|
549
|
+
fieldForLabel: e.id,
|
|
550
|
+
key: `${e.key}-label`
|
|
551
551
|
});
|
|
552
|
-
|
|
552
|
+
o.type = "label", s.push(o), s.push(e);
|
|
553
553
|
} else
|
|
554
|
-
s.push(
|
|
554
|
+
s.push(e);
|
|
555
555
|
s.reduce(
|
|
556
|
-
(
|
|
556
|
+
(o, l) => o + l.colspan,
|
|
557
557
|
0
|
|
558
558
|
) > this.freePosition() && (this._rows.push([]), this._index++), this._rows[this._index] = this._rows[this._index].concat(s);
|
|
559
559
|
}
|
|
@@ -561,19 +561,19 @@ class V {
|
|
|
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
|
-
findById(
|
|
564
|
+
findById(e) {
|
|
565
565
|
var s;
|
|
566
|
-
let
|
|
566
|
+
let t = null;
|
|
567
567
|
return (s = this._rows) != null && s.length && this._rows.forEach((n) => {
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
t || n != null && n.length && n.forEach((a) => {
|
|
569
|
+
t || a && (t = a.findById(e));
|
|
570
570
|
});
|
|
571
|
-
}),
|
|
571
|
+
}), t;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
const O = class O extends
|
|
575
|
-
constructor(
|
|
576
|
-
super(
|
|
574
|
+
const O = class O extends k {
|
|
575
|
+
constructor(t) {
|
|
576
|
+
super(t);
|
|
577
577
|
/**
|
|
578
578
|
* Field identifier
|
|
579
579
|
*
|
|
@@ -592,120 +592,120 @@ const O = class O extends C {
|
|
|
592
592
|
* Container label
|
|
593
593
|
*/
|
|
594
594
|
r(this, "_label", "");
|
|
595
|
-
this._container = new
|
|
596
|
-
|
|
595
|
+
this._container = new Y(
|
|
596
|
+
t == null ? void 0 : t.col,
|
|
597
597
|
O._defaultColspan,
|
|
598
598
|
this.readOnly,
|
|
599
|
-
|
|
600
|
-
),
|
|
599
|
+
t == null ? void 0 : t.key
|
|
600
|
+
), t && (t.name && (this._id = t.name), t.colspan ? this._container.colspan = +t.colspan : this._mustExpand = !0, t.string && (this._label = g(t.string)));
|
|
601
601
|
}
|
|
602
602
|
get id() {
|
|
603
603
|
return this._id;
|
|
604
604
|
}
|
|
605
|
-
set id(
|
|
606
|
-
this._id =
|
|
605
|
+
set id(t) {
|
|
606
|
+
this._id = t;
|
|
607
607
|
}
|
|
608
608
|
static get defaultColspan() {
|
|
609
609
|
return O._defaultColspan;
|
|
610
610
|
}
|
|
611
|
-
static set defaultColspan(
|
|
612
|
-
O._defaultColspan =
|
|
611
|
+
static set defaultColspan(t) {
|
|
612
|
+
O._defaultColspan = t;
|
|
613
613
|
}
|
|
614
614
|
get container() {
|
|
615
615
|
return this._container;
|
|
616
616
|
}
|
|
617
|
-
set container(
|
|
618
|
-
this._container =
|
|
617
|
+
set container(t) {
|
|
618
|
+
this._container = t;
|
|
619
619
|
}
|
|
620
620
|
get colspan() {
|
|
621
621
|
return this._container.colspan;
|
|
622
622
|
}
|
|
623
|
-
set colspan(
|
|
624
|
-
this._container.colspan = +
|
|
623
|
+
set colspan(t) {
|
|
624
|
+
this._container.colspan = +t;
|
|
625
625
|
}
|
|
626
626
|
get mustExpand() {
|
|
627
627
|
return this._mustExpand;
|
|
628
628
|
}
|
|
629
|
-
set mustExpand(
|
|
630
|
-
this._mustExpand =
|
|
629
|
+
set mustExpand(t) {
|
|
630
|
+
this._mustExpand = t;
|
|
631
631
|
}
|
|
632
632
|
get label() {
|
|
633
633
|
return this._label;
|
|
634
634
|
}
|
|
635
|
-
set label(
|
|
636
|
-
this._label =
|
|
635
|
+
set label(t) {
|
|
636
|
+
this._label = t;
|
|
637
637
|
}
|
|
638
638
|
/**
|
|
639
639
|
* Calls container's findById method to find the widgets matching with param id
|
|
640
640
|
* @param {string} id id to find
|
|
641
641
|
*/
|
|
642
|
-
findById(
|
|
643
|
-
return
|
|
642
|
+
findById(t) {
|
|
643
|
+
return t === this.id ? this : this.container.findById(t);
|
|
644
644
|
}
|
|
645
645
|
};
|
|
646
646
|
r(O, "_defaultColspan", 6);
|
|
647
|
-
let
|
|
648
|
-
const W = class W extends
|
|
649
|
-
constructor(
|
|
650
|
-
super(
|
|
647
|
+
let F = O;
|
|
648
|
+
const W = class W extends F {
|
|
649
|
+
constructor(t) {
|
|
650
|
+
super(t);
|
|
651
651
|
r(this, "_tabPosition", "top");
|
|
652
652
|
r(this, "_pages", []);
|
|
653
|
-
this.colspan = W._defaultColspan,
|
|
653
|
+
this.colspan = W._defaultColspan, t && (t.colspan && (this.colspan = t.colspan), t.tabpos && (this._tabPosition = t.tabpos));
|
|
654
654
|
}
|
|
655
655
|
static get defaultColspan() {
|
|
656
656
|
return W._defaultColspan;
|
|
657
657
|
}
|
|
658
|
-
static set defaultColspan(
|
|
659
|
-
W._defaultColspan =
|
|
658
|
+
static set defaultColspan(t) {
|
|
659
|
+
W._defaultColspan = t;
|
|
660
660
|
}
|
|
661
661
|
get tabPosition() {
|
|
662
662
|
return this._tabPosition;
|
|
663
663
|
}
|
|
664
|
-
set tabPosition(
|
|
665
|
-
this._tabPosition =
|
|
664
|
+
set tabPosition(t) {
|
|
665
|
+
this._tabPosition = t;
|
|
666
666
|
}
|
|
667
667
|
get pages() {
|
|
668
668
|
return [].concat.apply([], this._container.rows);
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
671
|
r(W, "_defaultColspan", 3);
|
|
672
|
-
let
|
|
673
|
-
class
|
|
674
|
-
constructor(
|
|
675
|
-
super(
|
|
672
|
+
let B = W;
|
|
673
|
+
class N extends F {
|
|
674
|
+
constructor(t) {
|
|
675
|
+
super(t);
|
|
676
676
|
r(this, "_loading", !1);
|
|
677
|
-
|
|
677
|
+
t && t.loading && (this._loading = t.loading);
|
|
678
678
|
}
|
|
679
679
|
get loading() {
|
|
680
680
|
return this._loading;
|
|
681
681
|
}
|
|
682
|
-
set loading(
|
|
683
|
-
this._loading =
|
|
682
|
+
set loading(t) {
|
|
683
|
+
this._loading = t;
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
|
-
class
|
|
687
|
-
constructor(
|
|
688
|
-
super(
|
|
686
|
+
class Pt extends N {
|
|
687
|
+
constructor(t) {
|
|
688
|
+
super(t);
|
|
689
689
|
r(this, "_icon", null);
|
|
690
|
-
|
|
690
|
+
t.icon && (this._icon = t.icon);
|
|
691
691
|
}
|
|
692
692
|
get icon() {
|
|
693
693
|
return this._icon;
|
|
694
694
|
}
|
|
695
|
-
set icon(
|
|
696
|
-
this._icon =
|
|
695
|
+
set icon(t) {
|
|
696
|
+
this._icon = t;
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
|
-
class
|
|
700
|
-
constructor(
|
|
699
|
+
class Ot extends N {
|
|
700
|
+
constructor(t) {
|
|
701
701
|
var s;
|
|
702
|
-
super(
|
|
702
|
+
super(t);
|
|
703
703
|
r(this, "_icon", null);
|
|
704
704
|
r(this, "_height");
|
|
705
705
|
r(this, "_backgroundColor");
|
|
706
|
-
if (
|
|
706
|
+
if (t && (t.icon && (this._icon = t.icon), t.height))
|
|
707
707
|
try {
|
|
708
|
-
this._height = parseInt(
|
|
708
|
+
this._height = parseInt(t.height);
|
|
709
709
|
} catch {
|
|
710
710
|
console.log("Error parsing height"), this._height = void 0;
|
|
711
711
|
}
|
|
@@ -714,27 +714,27 @@ class Oe extends j {
|
|
|
714
714
|
get icon() {
|
|
715
715
|
return this._icon;
|
|
716
716
|
}
|
|
717
|
-
set icon(
|
|
718
|
-
this._icon =
|
|
717
|
+
set icon(t) {
|
|
718
|
+
this._icon = t;
|
|
719
719
|
}
|
|
720
720
|
get height() {
|
|
721
721
|
return this._height;
|
|
722
722
|
}
|
|
723
|
-
set height(
|
|
724
|
-
this._height =
|
|
723
|
+
set height(t) {
|
|
724
|
+
this._height = t;
|
|
725
725
|
}
|
|
726
726
|
get backgroundColor() {
|
|
727
727
|
return this._backgroundColor;
|
|
728
728
|
}
|
|
729
|
-
set backgroundColor(
|
|
730
|
-
this._backgroundColor =
|
|
729
|
+
set backgroundColor(t) {
|
|
730
|
+
this._backgroundColor = t;
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
|
-
class
|
|
734
|
-
constructor(
|
|
733
|
+
class G extends f {
|
|
734
|
+
constructor(t) {
|
|
735
735
|
super({
|
|
736
|
-
...
|
|
737
|
-
nolabel: (
|
|
736
|
+
...t,
|
|
737
|
+
nolabel: (t == null ? void 0 : t.nolabel) !== void 0 ? t.nolabel : !0
|
|
738
738
|
});
|
|
739
739
|
/**
|
|
740
740
|
* Type
|
|
@@ -754,13 +754,13 @@ class ee extends f {
|
|
|
754
754
|
r(this, "_confirmMessage", "");
|
|
755
755
|
r(this, "_primary", !1);
|
|
756
756
|
r(this, "_danger", !1);
|
|
757
|
-
if (
|
|
758
|
-
if (
|
|
759
|
-
const s =
|
|
757
|
+
if (t) {
|
|
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
760
|
(s === "1" || s === 1 || s === !0) && (this._primary = !0);
|
|
761
761
|
}
|
|
762
|
-
if (
|
|
763
|
-
const s =
|
|
762
|
+
if (t.danger) {
|
|
763
|
+
const s = t.danger;
|
|
764
764
|
(s === "1" || s === 1 || s === !0) && (this._danger = !0);
|
|
765
765
|
}
|
|
766
766
|
}
|
|
@@ -768,45 +768,45 @@ class ee extends f {
|
|
|
768
768
|
get buttonType() {
|
|
769
769
|
return this._buttonType;
|
|
770
770
|
}
|
|
771
|
-
set buttonType(
|
|
772
|
-
this._buttonType =
|
|
771
|
+
set buttonType(t) {
|
|
772
|
+
this._buttonType = t;
|
|
773
773
|
}
|
|
774
774
|
get caption() {
|
|
775
775
|
return this._caption;
|
|
776
776
|
}
|
|
777
|
-
set caption(
|
|
778
|
-
this._caption =
|
|
777
|
+
set caption(t) {
|
|
778
|
+
this._caption = t;
|
|
779
779
|
}
|
|
780
780
|
get icon() {
|
|
781
781
|
return this._icon;
|
|
782
782
|
}
|
|
783
|
-
set icon(
|
|
784
|
-
this._icon =
|
|
783
|
+
set icon(t) {
|
|
784
|
+
this._icon = t;
|
|
785
785
|
}
|
|
786
786
|
get confirmMessage() {
|
|
787
787
|
return this._confirmMessage;
|
|
788
788
|
}
|
|
789
|
-
set confirmMessage(
|
|
790
|
-
this._confirmMessage =
|
|
789
|
+
set confirmMessage(t) {
|
|
790
|
+
this._confirmMessage = t;
|
|
791
791
|
}
|
|
792
792
|
get primary() {
|
|
793
793
|
return this._primary;
|
|
794
794
|
}
|
|
795
|
-
set primary(
|
|
796
|
-
this._primary =
|
|
795
|
+
set primary(t) {
|
|
796
|
+
this._primary = t;
|
|
797
797
|
}
|
|
798
798
|
get danger() {
|
|
799
799
|
return this._danger;
|
|
800
800
|
}
|
|
801
|
-
set danger(
|
|
802
|
-
this._danger =
|
|
801
|
+
set danger(t) {
|
|
802
|
+
this._danger = t;
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
|
-
class
|
|
806
|
-
constructor(
|
|
807
|
-
super(
|
|
805
|
+
class Wt extends F {
|
|
806
|
+
constructor(t) {
|
|
807
|
+
super(t);
|
|
808
808
|
r(this, "_defaultName", "");
|
|
809
|
-
|
|
809
|
+
t.default && (this._defaultName = t.default);
|
|
810
810
|
}
|
|
811
811
|
get defaultName() {
|
|
812
812
|
return this._defaultName;
|
|
@@ -815,11 +815,11 @@ class We extends w {
|
|
|
815
815
|
return this.buttons.find((s) => s.id === this.defaultName) || this.buttons[0];
|
|
816
816
|
}
|
|
817
817
|
get colspan() {
|
|
818
|
-
var
|
|
819
|
-
return ((
|
|
818
|
+
var t;
|
|
819
|
+
return ((t = this.defaultButton) == null ? void 0 : t.colspan) || 1;
|
|
820
820
|
}
|
|
821
|
-
set colspan(
|
|
822
|
-
this.defaultButton && (this.defaultButton.colspan =
|
|
821
|
+
set colspan(t) {
|
|
822
|
+
this.defaultButton && (this.defaultButton.colspan = t);
|
|
823
823
|
}
|
|
824
824
|
get secondaryButtons() {
|
|
825
825
|
return this.buttons.filter(
|
|
@@ -830,14 +830,14 @@ class We extends w {
|
|
|
830
830
|
);
|
|
831
831
|
}
|
|
832
832
|
get buttons() {
|
|
833
|
-
return this._container.rows.flat().filter((
|
|
833
|
+
return this._container.rows.flat().filter((t) => !t.invisible);
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
class
|
|
836
|
+
class Tt extends f {
|
|
837
837
|
}
|
|
838
838
|
class A extends f {
|
|
839
|
-
constructor(
|
|
840
|
-
super(
|
|
839
|
+
constructor(t) {
|
|
840
|
+
super(t);
|
|
841
841
|
/**
|
|
842
842
|
* Field place holder
|
|
843
843
|
*/
|
|
@@ -848,13 +848,13 @@ class A extends f {
|
|
|
848
848
|
r(this, "_size");
|
|
849
849
|
r(this, "_isPassword", !1);
|
|
850
850
|
r(this, "_translatable", !1);
|
|
851
|
-
|
|
851
|
+
t && (t.size && (this._size = t.size), t.password && (this.isPassword = t.password === "True"), t.translate && (this.translatable = t.translate === "True" || t.translate === !0));
|
|
852
852
|
}
|
|
853
853
|
get placeholder() {
|
|
854
854
|
return this._placeholder;
|
|
855
855
|
}
|
|
856
|
-
set placeholder(
|
|
857
|
-
this._placeholder =
|
|
856
|
+
set placeholder(t) {
|
|
857
|
+
this._placeholder = t;
|
|
858
858
|
}
|
|
859
859
|
get showCount() {
|
|
860
860
|
return this.parsedWidgetProps.showCount || !1;
|
|
@@ -862,25 +862,25 @@ class A extends f {
|
|
|
862
862
|
get size() {
|
|
863
863
|
return this._size;
|
|
864
864
|
}
|
|
865
|
-
set size(
|
|
866
|
-
this._size =
|
|
865
|
+
set size(t) {
|
|
866
|
+
this._size = t;
|
|
867
867
|
}
|
|
868
868
|
get isPassword() {
|
|
869
869
|
return this._isPassword;
|
|
870
870
|
}
|
|
871
|
-
set isPassword(
|
|
872
|
-
this._isPassword =
|
|
871
|
+
set isPassword(t) {
|
|
872
|
+
this._isPassword = t;
|
|
873
873
|
}
|
|
874
874
|
get translatable() {
|
|
875
875
|
return this._translatable;
|
|
876
876
|
}
|
|
877
|
-
set translatable(
|
|
878
|
-
this._translatable =
|
|
877
|
+
set translatable(t) {
|
|
878
|
+
this._translatable = t;
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
|
-
class
|
|
882
|
-
constructor(
|
|
883
|
-
super(
|
|
881
|
+
class $ extends f {
|
|
882
|
+
constructor(t) {
|
|
883
|
+
super(t);
|
|
884
884
|
/**
|
|
885
885
|
* Field place holder
|
|
886
886
|
*/
|
|
@@ -898,21 +898,21 @@ class L extends f {
|
|
|
898
898
|
*/
|
|
899
899
|
r(this, "_height");
|
|
900
900
|
r(this, "_translatable", !1);
|
|
901
|
-
if (
|
|
902
|
-
if (
|
|
901
|
+
if (t) {
|
|
902
|
+
if (t.placeholder && (this._placeholder = g(t.placeholder)), t.colspan || (this._mustExpand = !0), t.height)
|
|
903
903
|
try {
|
|
904
|
-
this._height = parseInt(
|
|
904
|
+
this._height = parseInt(t.height);
|
|
905
905
|
} catch {
|
|
906
906
|
this._height = void 0;
|
|
907
907
|
}
|
|
908
|
-
|
|
908
|
+
t.translate && (this.translatable = t.translate === "True" || t.translate === !0), t.size && (this.size = parseInt(t.size));
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
get placeholder() {
|
|
912
912
|
return this._placeholder;
|
|
913
913
|
}
|
|
914
|
-
set placeholder(
|
|
915
|
-
this._placeholder =
|
|
914
|
+
set placeholder(t) {
|
|
915
|
+
this._placeholder = t;
|
|
916
916
|
}
|
|
917
917
|
get showCount() {
|
|
918
918
|
return this.parsedWidgetProps.showCount || !1;
|
|
@@ -920,47 +920,47 @@ class L extends f {
|
|
|
920
920
|
get size() {
|
|
921
921
|
return this._size;
|
|
922
922
|
}
|
|
923
|
-
set size(
|
|
924
|
-
this._size =
|
|
923
|
+
set size(t) {
|
|
924
|
+
this._size = t;
|
|
925
925
|
}
|
|
926
926
|
get mustExpand() {
|
|
927
927
|
return this._mustExpand;
|
|
928
928
|
}
|
|
929
|
-
set mustExpand(
|
|
930
|
-
this._mustExpand =
|
|
929
|
+
set mustExpand(t) {
|
|
930
|
+
this._mustExpand = t;
|
|
931
931
|
}
|
|
932
932
|
get height() {
|
|
933
933
|
return this._height;
|
|
934
934
|
}
|
|
935
|
-
set height(
|
|
936
|
-
this._height =
|
|
935
|
+
set height(t) {
|
|
936
|
+
this._height = t;
|
|
937
937
|
}
|
|
938
938
|
get translatable() {
|
|
939
939
|
return this._translatable;
|
|
940
940
|
}
|
|
941
|
-
set translatable(
|
|
942
|
-
this._translatable =
|
|
941
|
+
set translatable(t) {
|
|
942
|
+
this._translatable = t;
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
class z extends f {
|
|
946
|
-
constructor(
|
|
947
|
-
super(
|
|
946
|
+
constructor(t) {
|
|
947
|
+
super(t);
|
|
948
948
|
/**
|
|
949
949
|
* Field size
|
|
950
950
|
*/
|
|
951
951
|
r(this, "_size", 150);
|
|
952
|
-
|
|
952
|
+
t && t.size && (this._size = t.size);
|
|
953
953
|
}
|
|
954
954
|
get size() {
|
|
955
955
|
return this._size;
|
|
956
956
|
}
|
|
957
|
-
set size(
|
|
958
|
-
this._size =
|
|
957
|
+
set size(t) {
|
|
958
|
+
this._size = t;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
class
|
|
962
|
-
constructor(
|
|
963
|
-
super(
|
|
961
|
+
class It extends f {
|
|
962
|
+
constructor(t) {
|
|
963
|
+
super(t);
|
|
964
964
|
/**
|
|
965
965
|
* Field size
|
|
966
966
|
*/
|
|
@@ -969,19 +969,19 @@ class ze extends f {
|
|
|
969
969
|
* Relation
|
|
970
970
|
*/
|
|
971
971
|
r(this, "_relation", "");
|
|
972
|
-
|
|
972
|
+
t && (t.size && (this._size = t.size), t.relation && (this._relation = t.relation));
|
|
973
973
|
}
|
|
974
974
|
get size() {
|
|
975
975
|
return this._size;
|
|
976
976
|
}
|
|
977
|
-
set size(
|
|
978
|
-
this._size =
|
|
977
|
+
set size(t) {
|
|
978
|
+
this._size = t;
|
|
979
979
|
}
|
|
980
980
|
get relation() {
|
|
981
981
|
return this._relation;
|
|
982
982
|
}
|
|
983
|
-
set relation(
|
|
984
|
-
this._relation =
|
|
983
|
+
set relation(t) {
|
|
984
|
+
this._relation = t;
|
|
985
985
|
}
|
|
986
986
|
get showFolder() {
|
|
987
987
|
return this.parsedWidgetProps.showFolder;
|
|
@@ -993,21 +993,21 @@ class ze extends f {
|
|
|
993
993
|
return this.parsedWidgetProps.showMenu;
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
-
class
|
|
997
|
-
}
|
|
998
|
-
class te extends f {
|
|
999
|
-
constructor(t) {
|
|
1000
|
-
super(t);
|
|
1001
|
-
}
|
|
996
|
+
class zt extends $ {
|
|
1002
997
|
}
|
|
1003
|
-
class
|
|
1004
|
-
constructor(
|
|
1005
|
-
super(
|
|
998
|
+
class it extends f {
|
|
999
|
+
constructor(e) {
|
|
1000
|
+
super(e);
|
|
1006
1001
|
}
|
|
1007
1002
|
}
|
|
1008
|
-
class
|
|
1003
|
+
class St extends f {
|
|
1009
1004
|
constructor(e) {
|
|
1010
1005
|
super(e);
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
class q extends f {
|
|
1009
|
+
constructor(t) {
|
|
1010
|
+
super(t);
|
|
1011
1011
|
/**
|
|
1012
1012
|
* Integer digits
|
|
1013
1013
|
*
|
|
@@ -1020,51 +1020,51 @@ class G extends f {
|
|
|
1020
1020
|
* Number of decimal digits that will be part of the float
|
|
1021
1021
|
*/
|
|
1022
1022
|
r(this, "_decimalDigits", 2);
|
|
1023
|
-
if (
|
|
1024
|
-
const [s, n] =
|
|
1023
|
+
if (t != null && t.digits) {
|
|
1024
|
+
const [s, n] = t.digits;
|
|
1025
1025
|
this._integerDigits = s, this._decimalDigits = n;
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
1028
|
get integerDigits() {
|
|
1029
1029
|
return this._integerDigits;
|
|
1030
1030
|
}
|
|
1031
|
-
set integerDigits(
|
|
1032
|
-
this._integerDigits =
|
|
1031
|
+
set integerDigits(t) {
|
|
1032
|
+
this._integerDigits = t;
|
|
1033
1033
|
}
|
|
1034
1034
|
get decimalDigits() {
|
|
1035
1035
|
return this._decimalDigits;
|
|
1036
1036
|
}
|
|
1037
|
-
set decimalDigits(
|
|
1038
|
-
this._decimalDigits =
|
|
1037
|
+
set decimalDigits(t) {
|
|
1038
|
+
this._decimalDigits = t;
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
class
|
|
1042
|
-
}
|
|
1043
|
-
class Ve extends f {
|
|
1041
|
+
class Et extends q {
|
|
1044
1042
|
}
|
|
1045
|
-
class
|
|
1043
|
+
class Vt extends f {
|
|
1046
1044
|
}
|
|
1047
|
-
class
|
|
1048
|
-
constructor(t) {
|
|
1049
|
-
super(t);
|
|
1050
|
-
}
|
|
1045
|
+
class Yt extends q {
|
|
1051
1046
|
}
|
|
1052
|
-
class
|
|
1047
|
+
class jt extends f {
|
|
1053
1048
|
constructor(e) {
|
|
1054
1049
|
super(e);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
class Nt extends f {
|
|
1053
|
+
constructor(t) {
|
|
1054
|
+
super(t);
|
|
1055
1055
|
r(this, "_timezone");
|
|
1056
|
-
this._timezone = (
|
|
1056
|
+
this._timezone = (t == null ? void 0 : t.timezone) || void 0;
|
|
1057
1057
|
}
|
|
1058
1058
|
get timezone() {
|
|
1059
1059
|
return this._timezone;
|
|
1060
1060
|
}
|
|
1061
|
-
set timezone(
|
|
1062
|
-
this._timezone =
|
|
1061
|
+
set timezone(t) {
|
|
1062
|
+
this._timezone = t;
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
class
|
|
1066
|
-
constructor(
|
|
1067
|
-
super(
|
|
1065
|
+
class st extends f {
|
|
1066
|
+
constructor(t) {
|
|
1067
|
+
super(t);
|
|
1068
1068
|
/**
|
|
1069
1069
|
* Field size
|
|
1070
1070
|
*/
|
|
@@ -1097,123 +1097,150 @@ class ie extends f {
|
|
|
1097
1097
|
* Infinite mode
|
|
1098
1098
|
*/
|
|
1099
1099
|
r(this, "_infinite");
|
|
1100
|
-
if (
|
|
1101
|
-
if (
|
|
1100
|
+
if (t) {
|
|
1101
|
+
if (t.size && (this._size = t.size), t.relation && (this._relation = t.relation), t.mode && (this._mode = t.mode.split(",")), t.views && (this._views = t.views), t.colspan ? this.colspan = t.colspan : this._mustExpand = !0, t.inv_field && (this._inv_field = t.inv_field), t.height)
|
|
1102
1102
|
try {
|
|
1103
|
-
this._height = parseInt(
|
|
1103
|
+
this._height = parseInt(t.height);
|
|
1104
1104
|
} catch {
|
|
1105
1105
|
this._height = void 0;
|
|
1106
1106
|
}
|
|
1107
|
-
|
|
1107
|
+
t.widget_props && (this._infinite = t.widget_props.infinite);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
get size() {
|
|
1111
1111
|
return this._size;
|
|
1112
1112
|
}
|
|
1113
|
-
set size(
|
|
1114
|
-
this._size =
|
|
1113
|
+
set size(t) {
|
|
1114
|
+
this._size = t;
|
|
1115
1115
|
}
|
|
1116
1116
|
get relation() {
|
|
1117
1117
|
return this._relation;
|
|
1118
1118
|
}
|
|
1119
|
-
set relation(
|
|
1120
|
-
this._relation =
|
|
1119
|
+
set relation(t) {
|
|
1120
|
+
this._relation = t;
|
|
1121
1121
|
}
|
|
1122
1122
|
get inv_field() {
|
|
1123
1123
|
return this._inv_field;
|
|
1124
1124
|
}
|
|
1125
|
-
set inv_field(
|
|
1126
|
-
this._inv_field =
|
|
1125
|
+
set inv_field(t) {
|
|
1126
|
+
this._inv_field = t;
|
|
1127
1127
|
}
|
|
1128
1128
|
get views() {
|
|
1129
1129
|
return this._views;
|
|
1130
1130
|
}
|
|
1131
|
-
set views(
|
|
1132
|
-
this._views =
|
|
1131
|
+
set views(t) {
|
|
1132
|
+
this._views = t;
|
|
1133
1133
|
}
|
|
1134
1134
|
get mode() {
|
|
1135
1135
|
return this._mode;
|
|
1136
1136
|
}
|
|
1137
|
-
set mode(
|
|
1138
|
-
this._mode =
|
|
1137
|
+
set mode(t) {
|
|
1138
|
+
this._mode = t;
|
|
1139
1139
|
}
|
|
1140
1140
|
get mustExpand() {
|
|
1141
1141
|
return this._mustExpand;
|
|
1142
1142
|
}
|
|
1143
|
-
set mustExpand(
|
|
1144
|
-
this._mustExpand =
|
|
1143
|
+
set mustExpand(t) {
|
|
1144
|
+
this._mustExpand = t;
|
|
1145
1145
|
}
|
|
1146
1146
|
get height() {
|
|
1147
1147
|
return this._height;
|
|
1148
1148
|
}
|
|
1149
|
-
set height(
|
|
1150
|
-
this._height =
|
|
1149
|
+
set height(t) {
|
|
1150
|
+
this._height = t;
|
|
1151
1151
|
}
|
|
1152
1152
|
get infinite() {
|
|
1153
1153
|
return this._infinite;
|
|
1154
1154
|
}
|
|
1155
|
-
set infinite(
|
|
1156
|
-
this._infinite =
|
|
1155
|
+
set infinite(t) {
|
|
1156
|
+
this._infinite = t;
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
|
-
class
|
|
1160
|
-
constructor(
|
|
1161
|
-
super(
|
|
1159
|
+
class Dt extends k {
|
|
1160
|
+
constructor(t) {
|
|
1161
|
+
super(t);
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Label
|
|
1164
1164
|
*/
|
|
1165
1165
|
r(this, "_label", "");
|
|
1166
1166
|
r(this, "_icon", null);
|
|
1167
|
-
|
|
1167
|
+
t && (t.string && (this._label = g(t.string)), t.icon && (this._icon = t.icon));
|
|
1168
1168
|
}
|
|
1169
1169
|
get label() {
|
|
1170
1170
|
return this._label;
|
|
1171
1171
|
}
|
|
1172
|
-
set label(
|
|
1173
|
-
this._label =
|
|
1172
|
+
set label(t) {
|
|
1173
|
+
this._label = t;
|
|
1174
1174
|
}
|
|
1175
1175
|
get icon() {
|
|
1176
1176
|
return this._icon;
|
|
1177
1177
|
}
|
|
1178
|
-
set icon(
|
|
1179
|
-
this._icon =
|
|
1178
|
+
set icon(t) {
|
|
1179
|
+
this._icon = t;
|
|
1180
1180
|
}
|
|
1181
|
-
findById(
|
|
1181
|
+
findById(t) {
|
|
1182
1182
|
return null;
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
|
-
class
|
|
1185
|
+
class Mt extends z {
|
|
1186
1186
|
}
|
|
1187
|
-
class
|
|
1188
|
-
constructor(
|
|
1189
|
-
super(
|
|
1187
|
+
class Bt extends f {
|
|
1188
|
+
constructor(t) {
|
|
1189
|
+
super(t);
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Filename field name
|
|
1192
1192
|
*/
|
|
1193
1193
|
r(this, "_filenameField", "");
|
|
1194
|
-
|
|
1194
|
+
t && t.filename && (this._filenameField = t.filename);
|
|
1195
1195
|
}
|
|
1196
1196
|
get filenameField() {
|
|
1197
1197
|
return this._filenameField;
|
|
1198
1198
|
}
|
|
1199
|
-
set filenameField(
|
|
1200
|
-
this._filenameField =
|
|
1199
|
+
set filenameField(t) {
|
|
1200
|
+
this._filenameField = t;
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
|
-
class
|
|
1203
|
+
class At extends f {
|
|
1204
|
+
constructor(t) {
|
|
1205
|
+
super(t);
|
|
1206
|
+
r(this, "_width");
|
|
1207
|
+
r(this, "_height");
|
|
1208
|
+
if (t) {
|
|
1209
|
+
if (t.width) {
|
|
1210
|
+
const s = parseInt(t.width);
|
|
1211
|
+
this._width = isNaN(s) ? void 0 : s;
|
|
1212
|
+
}
|
|
1213
|
+
if (t.height) {
|
|
1214
|
+
const s = parseInt(t.height);
|
|
1215
|
+
this._height = isNaN(s) ? void 0 : s;
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
get width() {
|
|
1220
|
+
return this._width;
|
|
1221
|
+
}
|
|
1222
|
+
set width(t) {
|
|
1223
|
+
this._width = t;
|
|
1224
|
+
}
|
|
1225
|
+
get height() {
|
|
1226
|
+
return this._height;
|
|
1227
|
+
}
|
|
1228
|
+
set height(t) {
|
|
1229
|
+
this._height = t;
|
|
1230
|
+
}
|
|
1204
1231
|
get showControls() {
|
|
1205
1232
|
var t;
|
|
1206
1233
|
return ((t = this.parsedWidgetProps) == null ? void 0 : t.showControls) ?? !0;
|
|
1207
1234
|
}
|
|
1208
1235
|
}
|
|
1209
|
-
class
|
|
1210
|
-
constructor(t) {
|
|
1211
|
-
super(t);
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
class Le extends ie {
|
|
1236
|
+
class Rt extends f {
|
|
1215
1237
|
constructor(e) {
|
|
1216
1238
|
super(e);
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
class Lt extends st {
|
|
1242
|
+
constructor(t) {
|
|
1243
|
+
super(t);
|
|
1217
1244
|
/**
|
|
1218
1245
|
* Title field
|
|
1219
1246
|
*/
|
|
@@ -1227,14 +1254,14 @@ class Le extends ie {
|
|
|
1227
1254
|
get titleField() {
|
|
1228
1255
|
return this._titleField;
|
|
1229
1256
|
}
|
|
1230
|
-
set titleField(
|
|
1231
|
-
this._titleField =
|
|
1257
|
+
set titleField(t) {
|
|
1258
|
+
this._titleField = t;
|
|
1232
1259
|
}
|
|
1233
1260
|
get summaryField() {
|
|
1234
1261
|
return this._summaryField;
|
|
1235
1262
|
}
|
|
1236
|
-
set summaryField(
|
|
1237
|
-
this._summaryField =
|
|
1263
|
+
set summaryField(t) {
|
|
1264
|
+
this._summaryField = t;
|
|
1238
1265
|
}
|
|
1239
1266
|
get iconField() {
|
|
1240
1267
|
return this.parsedWidgetProps.iconField;
|
|
@@ -1243,9 +1270,9 @@ class Le extends ie {
|
|
|
1243
1270
|
return this.parsedWidgetProps.colorField;
|
|
1244
1271
|
}
|
|
1245
1272
|
}
|
|
1246
|
-
class
|
|
1247
|
-
constructor(
|
|
1248
|
-
super(
|
|
1273
|
+
class Gt extends z {
|
|
1274
|
+
constructor(t) {
|
|
1275
|
+
super(t);
|
|
1249
1276
|
r(this, "_nolabel", !0);
|
|
1250
1277
|
r(this, "_card");
|
|
1251
1278
|
r(this, "_icon");
|
|
@@ -1261,33 +1288,33 @@ class Ge extends z {
|
|
|
1261
1288
|
r(this, "_actionField");
|
|
1262
1289
|
r(this, "_height");
|
|
1263
1290
|
r(this, "_autoRefresh");
|
|
1264
|
-
if (this._card = !1, this._icon = "", this._suffix = "", this._autoRefresh = !1, this._parsedWidgetProps && (this._card = this._parsedWidgetProps.card || !1, this._icon =
|
|
1265
|
-
if (
|
|
1291
|
+
if (this._card = !1, this._icon = "", this._suffix = "", this._autoRefresh = !1, this._parsedWidgetProps && (this._card = this._parsedWidgetProps.card || !1, this._icon = g(this._parsedWidgetProps.icon) || "", this._suffix = this._parsedWidgetProps.suffix || "", this._color = g(this._parsedWidgetProps.color) || ""), t) {
|
|
1292
|
+
if (t.action_id && (this._actionId = parseInt(t.action_id)), t.action_field && (this._actionField = t.action_field), t.height)
|
|
1266
1293
|
try {
|
|
1267
|
-
this._height = parseInt(
|
|
1294
|
+
this._height = parseInt(t.height);
|
|
1268
1295
|
} catch (s) {
|
|
1269
1296
|
console.error(s);
|
|
1270
1297
|
}
|
|
1271
|
-
this._autoRefresh =
|
|
1298
|
+
this._autoRefresh = p(t.autorefresh);
|
|
1272
1299
|
}
|
|
1273
1300
|
}
|
|
1274
1301
|
get card() {
|
|
1275
1302
|
return this._card;
|
|
1276
1303
|
}
|
|
1277
|
-
set card(
|
|
1278
|
-
this._card =
|
|
1304
|
+
set card(t) {
|
|
1305
|
+
this._card = t;
|
|
1279
1306
|
}
|
|
1280
1307
|
get icon() {
|
|
1281
1308
|
return this._icon;
|
|
1282
1309
|
}
|
|
1283
|
-
set icon(
|
|
1284
|
-
this._icon =
|
|
1310
|
+
set icon(t) {
|
|
1311
|
+
this._icon = t;
|
|
1285
1312
|
}
|
|
1286
1313
|
get suffix() {
|
|
1287
1314
|
return this._suffix;
|
|
1288
1315
|
}
|
|
1289
|
-
set suffix(
|
|
1290
|
-
this._suffix =
|
|
1316
|
+
set suffix(t) {
|
|
1317
|
+
this._suffix = t;
|
|
1291
1318
|
}
|
|
1292
1319
|
get color() {
|
|
1293
1320
|
return this._color;
|
|
@@ -1295,31 +1322,31 @@ class Ge extends z {
|
|
|
1295
1322
|
get actionId() {
|
|
1296
1323
|
return this._actionId;
|
|
1297
1324
|
}
|
|
1298
|
-
set actionId(
|
|
1299
|
-
this._actionId =
|
|
1325
|
+
set actionId(t) {
|
|
1326
|
+
this._actionId = t;
|
|
1300
1327
|
}
|
|
1301
1328
|
get actionField() {
|
|
1302
1329
|
return this._actionField;
|
|
1303
1330
|
}
|
|
1304
|
-
set actionField(
|
|
1305
|
-
this._actionField =
|
|
1331
|
+
set actionField(t) {
|
|
1332
|
+
this._actionField = t;
|
|
1306
1333
|
}
|
|
1307
1334
|
get height() {
|
|
1308
1335
|
return this._height;
|
|
1309
1336
|
}
|
|
1310
|
-
set height(
|
|
1311
|
-
this._height =
|
|
1337
|
+
set height(t) {
|
|
1338
|
+
this._height = t;
|
|
1312
1339
|
}
|
|
1313
1340
|
get autoRefresh() {
|
|
1314
1341
|
return this._autoRefresh;
|
|
1315
1342
|
}
|
|
1316
|
-
set autoRefresh(
|
|
1317
|
-
this._autoRefresh =
|
|
1343
|
+
set autoRefresh(t) {
|
|
1344
|
+
this._autoRefresh = t;
|
|
1318
1345
|
}
|
|
1319
1346
|
}
|
|
1320
|
-
class
|
|
1321
|
-
constructor(
|
|
1322
|
-
super(
|
|
1347
|
+
class rt extends f {
|
|
1348
|
+
constructor(t) {
|
|
1349
|
+
super(t);
|
|
1323
1350
|
/**
|
|
1324
1351
|
* Field size
|
|
1325
1352
|
*/
|
|
@@ -1337,119 +1364,119 @@ class se extends f {
|
|
|
1337
1364
|
*/
|
|
1338
1365
|
r(this, "_field", "name");
|
|
1339
1366
|
r(this, "_columns", 4);
|
|
1340
|
-
|
|
1367
|
+
t && (t.size && (this._size = t.size), t.relation && (this._relation = t.relation), t.inv_field && (this._inv_field = t.inv_field), this.parsedWidgetProps.hasOwnProperty("field") && (this._field = this.parsedWidgetProps.field), this.parsedWidgetProps.columns && (this._columns = this.parsedWidgetProps.columns));
|
|
1341
1368
|
}
|
|
1342
1369
|
get size() {
|
|
1343
1370
|
return this._size;
|
|
1344
1371
|
}
|
|
1345
|
-
set size(
|
|
1346
|
-
this._size =
|
|
1372
|
+
set size(t) {
|
|
1373
|
+
this._size = t;
|
|
1347
1374
|
}
|
|
1348
1375
|
get relation() {
|
|
1349
1376
|
return this._relation;
|
|
1350
1377
|
}
|
|
1351
|
-
set relation(
|
|
1352
|
-
this._relation =
|
|
1378
|
+
set relation(t) {
|
|
1379
|
+
this._relation = t;
|
|
1353
1380
|
}
|
|
1354
1381
|
get inv_field() {
|
|
1355
1382
|
return this._inv_field;
|
|
1356
1383
|
}
|
|
1357
|
-
set inv_field(
|
|
1358
|
-
this._inv_field =
|
|
1384
|
+
set inv_field(t) {
|
|
1385
|
+
this._inv_field = t;
|
|
1359
1386
|
}
|
|
1360
1387
|
get field() {
|
|
1361
1388
|
return this._field;
|
|
1362
1389
|
}
|
|
1363
|
-
set field(
|
|
1364
|
-
this._field =
|
|
1390
|
+
set field(t) {
|
|
1391
|
+
this._field = t;
|
|
1365
1392
|
}
|
|
1366
1393
|
get columns() {
|
|
1367
1394
|
return this._columns;
|
|
1368
1395
|
}
|
|
1369
|
-
set columns(
|
|
1370
|
-
this._columns =
|
|
1396
|
+
set columns(t) {
|
|
1397
|
+
this._columns = t;
|
|
1371
1398
|
}
|
|
1372
1399
|
}
|
|
1373
|
-
class $
|
|
1400
|
+
class $t extends rt {
|
|
1374
1401
|
}
|
|
1375
|
-
class
|
|
1402
|
+
class qt extends z {
|
|
1376
1403
|
get colors() {
|
|
1377
1404
|
return this._parsedWidgetProps.colors || {};
|
|
1378
1405
|
}
|
|
1379
1406
|
get colorField() {
|
|
1380
|
-
var
|
|
1381
|
-
return ((
|
|
1407
|
+
var e;
|
|
1408
|
+
return ((e = this._parsedWidgetProps) == null ? void 0 : e.colorField) || null;
|
|
1382
1409
|
}
|
|
1383
1410
|
}
|
|
1384
|
-
class
|
|
1385
|
-
constructor(
|
|
1386
|
-
super(
|
|
1411
|
+
class Jt extends z {
|
|
1412
|
+
constructor(t) {
|
|
1413
|
+
super(t);
|
|
1387
1414
|
/**
|
|
1388
1415
|
* Define the direction
|
|
1389
1416
|
*/
|
|
1390
1417
|
r(this, "_direction", "horizontal");
|
|
1391
|
-
|
|
1418
|
+
t && this.parsedWidgetProps.hasOwnProperty("direction") && (this._direction = this.parsedWidgetProps.direction);
|
|
1392
1419
|
}
|
|
1393
1420
|
get direction() {
|
|
1394
1421
|
return this._direction;
|
|
1395
1422
|
}
|
|
1396
|
-
set direction(
|
|
1397
|
-
this._direction =
|
|
1423
|
+
set direction(t) {
|
|
1424
|
+
this._direction = t;
|
|
1398
1425
|
}
|
|
1399
1426
|
}
|
|
1400
|
-
class
|
|
1427
|
+
class Ht extends it {
|
|
1401
1428
|
}
|
|
1402
|
-
class
|
|
1403
|
-
constructor(
|
|
1404
|
-
super(
|
|
1429
|
+
class Qt extends f {
|
|
1430
|
+
constructor(t) {
|
|
1431
|
+
super(t);
|
|
1405
1432
|
/**
|
|
1406
1433
|
* Relation
|
|
1407
1434
|
*/
|
|
1408
1435
|
r(this, "_relation", "");
|
|
1409
1436
|
r(this, "_errorField", null);
|
|
1410
1437
|
r(this, "_lastStep", !0);
|
|
1411
|
-
|
|
1438
|
+
t && (t.relation && (this._relation = t.relation), this.parsedWidgetProps.hasOwnProperty("error_field") && (this._errorField = this.parsedWidgetProps.error_field), this.parsedWidgetProps.hasOwnProperty("last_step") && (this._lastStep = this.parsedWidgetProps.last_step));
|
|
1412
1439
|
}
|
|
1413
1440
|
get relation() {
|
|
1414
1441
|
return this._relation;
|
|
1415
1442
|
}
|
|
1416
|
-
set relation(
|
|
1417
|
-
this._relation =
|
|
1443
|
+
set relation(t) {
|
|
1444
|
+
this._relation = t;
|
|
1418
1445
|
}
|
|
1419
1446
|
get errorField() {
|
|
1420
1447
|
return this._errorField;
|
|
1421
1448
|
}
|
|
1422
|
-
set errorField(
|
|
1423
|
-
this._errorField =
|
|
1449
|
+
set errorField(t) {
|
|
1450
|
+
this._errorField = t;
|
|
1424
1451
|
}
|
|
1425
1452
|
get lastStep() {
|
|
1426
1453
|
return this._lastStep;
|
|
1427
1454
|
}
|
|
1428
|
-
set lastStep(
|
|
1429
|
-
this._lastStep =
|
|
1455
|
+
set lastStep(t) {
|
|
1456
|
+
this._lastStep = t;
|
|
1430
1457
|
}
|
|
1431
1458
|
}
|
|
1432
|
-
class
|
|
1433
|
-
constructor(
|
|
1434
|
-
super(
|
|
1459
|
+
class nt extends $ {
|
|
1460
|
+
constructor(t) {
|
|
1461
|
+
super(t);
|
|
1435
1462
|
r(this, "_lang", null);
|
|
1436
|
-
|
|
1463
|
+
t && this.parsedWidgetProps.lang && (this._lang = this.parsedWidgetProps.lang);
|
|
1437
1464
|
}
|
|
1438
1465
|
get lang() {
|
|
1439
1466
|
return this._lang;
|
|
1440
1467
|
}
|
|
1441
|
-
set lang(
|
|
1442
|
-
this._lang =
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
class Xe extends f {
|
|
1446
|
-
constructor(t) {
|
|
1447
|
-
super(t);
|
|
1468
|
+
set lang(t) {
|
|
1469
|
+
this._lang = t;
|
|
1448
1470
|
}
|
|
1449
1471
|
}
|
|
1450
|
-
class
|
|
1472
|
+
class Kt extends f {
|
|
1451
1473
|
constructor(e) {
|
|
1452
1474
|
super(e);
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
class Xt extends F {
|
|
1478
|
+
constructor(t) {
|
|
1479
|
+
super(t);
|
|
1453
1480
|
/**
|
|
1454
1481
|
* Alert type
|
|
1455
1482
|
*/
|
|
@@ -1457,447 +1484,447 @@ class Ue extends w {
|
|
|
1457
1484
|
r(this, "_title", "");
|
|
1458
1485
|
r(this, "_text", "");
|
|
1459
1486
|
r(this, "_icon", null);
|
|
1460
|
-
|
|
1487
|
+
t && (t.alert_type && (this._alertType = t.alert_type), t.title && (this._title = t.title), t.text && (this._text = t.text), t.icon && (this._icon = t.icon));
|
|
1461
1488
|
}
|
|
1462
1489
|
get alertType() {
|
|
1463
1490
|
return this._alertType;
|
|
1464
1491
|
}
|
|
1465
|
-
set alertType(
|
|
1466
|
-
this._alertType =
|
|
1492
|
+
set alertType(t) {
|
|
1493
|
+
this._alertType = t;
|
|
1467
1494
|
}
|
|
1468
1495
|
get title() {
|
|
1469
1496
|
return this._title;
|
|
1470
1497
|
}
|
|
1471
|
-
set title(
|
|
1472
|
-
this._title =
|
|
1498
|
+
set title(t) {
|
|
1499
|
+
this._title = t;
|
|
1473
1500
|
}
|
|
1474
1501
|
get text() {
|
|
1475
1502
|
return this._text;
|
|
1476
1503
|
}
|
|
1477
|
-
set text(
|
|
1478
|
-
this._text =
|
|
1504
|
+
set text(t) {
|
|
1505
|
+
this._text = t;
|
|
1479
1506
|
}
|
|
1480
1507
|
get icon() {
|
|
1481
1508
|
return this._icon;
|
|
1482
1509
|
}
|
|
1483
|
-
set icon(
|
|
1484
|
-
this._icon =
|
|
1510
|
+
set icon(t) {
|
|
1511
|
+
this._icon = t;
|
|
1485
1512
|
}
|
|
1486
1513
|
get buttons() {
|
|
1487
|
-
return this._container.rows.flat().filter((
|
|
1514
|
+
return this._container.rows.flat().filter((t) => !t.invisible);
|
|
1488
1515
|
}
|
|
1489
1516
|
}
|
|
1490
|
-
class
|
|
1491
|
-
constructor(
|
|
1492
|
-
super(
|
|
1517
|
+
class Ut extends f {
|
|
1518
|
+
constructor(t) {
|
|
1519
|
+
super(t);
|
|
1493
1520
|
/**
|
|
1494
1521
|
* Height of the comments component
|
|
1495
1522
|
*/
|
|
1496
1523
|
r(this, "_height");
|
|
1497
|
-
if (
|
|
1498
|
-
const s = parseInt(
|
|
1524
|
+
if (t.height) {
|
|
1525
|
+
const s = parseInt(t.height);
|
|
1499
1526
|
this._height = isNaN(s) ? void 0 : s;
|
|
1500
1527
|
}
|
|
1501
1528
|
}
|
|
1502
1529
|
get height() {
|
|
1503
1530
|
return this._height;
|
|
1504
1531
|
}
|
|
1505
|
-
set height(
|
|
1506
|
-
this._height =
|
|
1532
|
+
set height(t) {
|
|
1533
|
+
this._height = t;
|
|
1507
1534
|
}
|
|
1508
1535
|
}
|
|
1509
|
-
class
|
|
1536
|
+
class K extends nt {
|
|
1510
1537
|
constructor() {
|
|
1511
1538
|
super(...arguments);
|
|
1512
1539
|
r(this, "_lang", "json");
|
|
1513
1540
|
}
|
|
1514
1541
|
}
|
|
1515
|
-
class
|
|
1516
|
-
constructor(
|
|
1517
|
-
super(
|
|
1542
|
+
class Zt extends f {
|
|
1543
|
+
constructor(t) {
|
|
1544
|
+
super(t);
|
|
1518
1545
|
r(this, "_multi", !1);
|
|
1519
1546
|
r(this, "_size");
|
|
1520
|
-
|
|
1547
|
+
t && t.size && (this.size = t.size), this.parsedWidgetProps.multi && (this.multi = this.parsedWidgetProps.multi);
|
|
1521
1548
|
}
|
|
1522
1549
|
get multi() {
|
|
1523
1550
|
return this._multi;
|
|
1524
1551
|
}
|
|
1525
|
-
set multi(
|
|
1526
|
-
this._multi =
|
|
1552
|
+
set multi(t) {
|
|
1553
|
+
this._multi = t;
|
|
1527
1554
|
}
|
|
1528
1555
|
get size() {
|
|
1529
1556
|
return this._size;
|
|
1530
1557
|
}
|
|
1531
|
-
set size(
|
|
1532
|
-
this._size =
|
|
1558
|
+
set size(t) {
|
|
1559
|
+
this._size = t;
|
|
1533
1560
|
}
|
|
1534
1561
|
}
|
|
1535
|
-
class
|
|
1536
|
-
constructor(
|
|
1537
|
-
super(
|
|
1562
|
+
class te extends F {
|
|
1563
|
+
constructor(t) {
|
|
1564
|
+
super(t);
|
|
1538
1565
|
r(this, "_autoPlay", !0);
|
|
1539
|
-
|
|
1566
|
+
t && "auto_play" in t && (this._autoPlay = p(t.auto_play));
|
|
1540
1567
|
}
|
|
1541
1568
|
get autoPlay() {
|
|
1542
1569
|
return this._autoPlay;
|
|
1543
1570
|
}
|
|
1544
|
-
set autoPlay(
|
|
1545
|
-
this._autoPlay =
|
|
1571
|
+
set autoPlay(t) {
|
|
1572
|
+
this._autoPlay = t;
|
|
1546
1573
|
}
|
|
1547
1574
|
get items() {
|
|
1548
|
-
return this._container.rows.flat().filter((
|
|
1575
|
+
return this._container.rows.flat().filter((t) => !t.invisible);
|
|
1549
1576
|
}
|
|
1550
1577
|
}
|
|
1551
|
-
class
|
|
1578
|
+
class ee extends A {
|
|
1552
1579
|
get showText() {
|
|
1553
1580
|
return this.parsedWidgetProps.show_text ?? !0;
|
|
1554
1581
|
}
|
|
1555
1582
|
}
|
|
1556
|
-
class
|
|
1583
|
+
class ie extends f {
|
|
1557
1584
|
get width() {
|
|
1558
|
-
var
|
|
1559
|
-
return (
|
|
1585
|
+
var e;
|
|
1586
|
+
return (e = this.parsedWidgetProps) == null ? void 0 : e.width;
|
|
1560
1587
|
}
|
|
1561
1588
|
get border() {
|
|
1562
|
-
var
|
|
1563
|
-
return ((
|
|
1589
|
+
var e;
|
|
1590
|
+
return ((e = this.parsedWidgetProps) == null ? void 0 : e.border) ?? !1;
|
|
1564
1591
|
}
|
|
1565
1592
|
get showValue() {
|
|
1566
|
-
var
|
|
1567
|
-
return console.log(this.parsedWidgetProps), ((
|
|
1593
|
+
var e;
|
|
1594
|
+
return console.log(this.parsedWidgetProps), ((e = this.parsedWidgetProps) == null ? void 0 : e.showValue) ?? !1;
|
|
1568
1595
|
}
|
|
1569
1596
|
}
|
|
1570
|
-
class
|
|
1571
|
-
constructor(
|
|
1572
|
-
super(
|
|
1597
|
+
class se extends N {
|
|
1598
|
+
constructor(t) {
|
|
1599
|
+
super(t);
|
|
1573
1600
|
r(this, "_title", null);
|
|
1574
1601
|
r(this, "_icon", null);
|
|
1575
1602
|
/**
|
|
1576
1603
|
* Height of the card component
|
|
1577
1604
|
*/
|
|
1578
1605
|
r(this, "_height");
|
|
1579
|
-
if (
|
|
1580
|
-
const s = parseInt(
|
|
1606
|
+
if (t && (t.title && (this._title = t.title), t.icon && (this._icon = t.icon), t.height)) {
|
|
1607
|
+
const s = parseInt(t.height);
|
|
1581
1608
|
this._height = isNaN(s) ? void 0 : s;
|
|
1582
1609
|
}
|
|
1583
1610
|
}
|
|
1584
1611
|
get title() {
|
|
1585
1612
|
return this._title;
|
|
1586
1613
|
}
|
|
1587
|
-
set title(
|
|
1588
|
-
this._title =
|
|
1614
|
+
set title(t) {
|
|
1615
|
+
this._title = t;
|
|
1589
1616
|
}
|
|
1590
1617
|
get icon() {
|
|
1591
1618
|
return this._icon;
|
|
1592
1619
|
}
|
|
1593
|
-
set icon(
|
|
1594
|
-
this._icon =
|
|
1620
|
+
set icon(t) {
|
|
1621
|
+
this._icon = t;
|
|
1595
1622
|
}
|
|
1596
1623
|
get height() {
|
|
1597
1624
|
return this._height;
|
|
1598
1625
|
}
|
|
1599
|
-
set height(
|
|
1600
|
-
this._height =
|
|
1626
|
+
set height(t) {
|
|
1627
|
+
this._height = t;
|
|
1601
1628
|
}
|
|
1602
1629
|
}
|
|
1603
|
-
class
|
|
1630
|
+
class D {
|
|
1604
1631
|
constructor() {
|
|
1605
1632
|
/**
|
|
1606
1633
|
* Widget class
|
|
1607
1634
|
*/
|
|
1608
1635
|
r(this, "_widgetClass");
|
|
1609
1636
|
}
|
|
1610
|
-
setWidgetClass(
|
|
1611
|
-
switch (
|
|
1637
|
+
setWidgetClass(e) {
|
|
1638
|
+
switch (e) {
|
|
1612
1639
|
case "notebook":
|
|
1613
|
-
this._widgetClass =
|
|
1640
|
+
this._widgetClass = B;
|
|
1614
1641
|
break;
|
|
1615
1642
|
case "page":
|
|
1616
|
-
this._widgetClass =
|
|
1643
|
+
this._widgetClass = Pt;
|
|
1617
1644
|
break;
|
|
1618
1645
|
case "group":
|
|
1619
|
-
this._widgetClass =
|
|
1646
|
+
this._widgetClass = Ot;
|
|
1620
1647
|
break;
|
|
1621
1648
|
case "card":
|
|
1622
|
-
this._widgetClass =
|
|
1649
|
+
this._widgetClass = se;
|
|
1623
1650
|
break;
|
|
1624
1651
|
case "label":
|
|
1625
|
-
this._widgetClass =
|
|
1652
|
+
this._widgetClass = et;
|
|
1626
1653
|
break;
|
|
1627
1654
|
case "char":
|
|
1628
1655
|
this._widgetClass = A;
|
|
1629
1656
|
break;
|
|
1630
1657
|
case "text":
|
|
1631
|
-
this._widgetClass =
|
|
1658
|
+
this._widgetClass = $;
|
|
1632
1659
|
break;
|
|
1633
1660
|
case "button":
|
|
1634
|
-
this._widgetClass =
|
|
1661
|
+
this._widgetClass = G;
|
|
1635
1662
|
break;
|
|
1636
1663
|
case "buttonGroup":
|
|
1637
|
-
this._widgetClass =
|
|
1664
|
+
this._widgetClass = Wt;
|
|
1638
1665
|
break;
|
|
1639
1666
|
case "action_buttons":
|
|
1640
|
-
this._widgetClass =
|
|
1667
|
+
this._widgetClass = Tt;
|
|
1641
1668
|
break;
|
|
1642
1669
|
case "selection":
|
|
1643
1670
|
this._widgetClass = z;
|
|
1644
1671
|
break;
|
|
1645
1672
|
case "many2one":
|
|
1646
|
-
this._widgetClass =
|
|
1673
|
+
this._widgetClass = It;
|
|
1647
1674
|
break;
|
|
1648
1675
|
case "boolean":
|
|
1649
|
-
this._widgetClass =
|
|
1676
|
+
this._widgetClass = it;
|
|
1650
1677
|
break;
|
|
1651
1678
|
case "integer":
|
|
1652
|
-
this._widgetClass =
|
|
1679
|
+
this._widgetClass = St;
|
|
1653
1680
|
break;
|
|
1654
1681
|
case "float":
|
|
1655
|
-
this._widgetClass =
|
|
1682
|
+
this._widgetClass = q;
|
|
1656
1683
|
break;
|
|
1657
1684
|
case "float_time":
|
|
1658
|
-
this._widgetClass =
|
|
1685
|
+
this._widgetClass = Et;
|
|
1659
1686
|
break;
|
|
1660
1687
|
case "date":
|
|
1661
|
-
this._widgetClass =
|
|
1688
|
+
this._widgetClass = jt;
|
|
1662
1689
|
break;
|
|
1663
1690
|
case "datetime":
|
|
1664
|
-
this._widgetClass =
|
|
1691
|
+
this._widgetClass = Nt;
|
|
1665
1692
|
break;
|
|
1666
1693
|
case "progressbar":
|
|
1667
|
-
this._widgetClass =
|
|
1694
|
+
this._widgetClass = Yt;
|
|
1668
1695
|
break;
|
|
1669
1696
|
case "markdown":
|
|
1670
|
-
this._widgetClass =
|
|
1697
|
+
this._widgetClass = zt;
|
|
1671
1698
|
break;
|
|
1672
1699
|
case "many2many":
|
|
1673
1700
|
case "one2many":
|
|
1674
1701
|
case "one2many_list":
|
|
1675
|
-
this._widgetClass =
|
|
1702
|
+
this._widgetClass = st;
|
|
1676
1703
|
break;
|
|
1677
1704
|
case "newline":
|
|
1678
|
-
this._widgetClass =
|
|
1705
|
+
this._widgetClass = tt;
|
|
1679
1706
|
break;
|
|
1680
1707
|
case "separator":
|
|
1681
|
-
this._widgetClass =
|
|
1708
|
+
this._widgetClass = Dt;
|
|
1682
1709
|
break;
|
|
1683
1710
|
case "url":
|
|
1684
1711
|
this._widgetClass = A;
|
|
1685
1712
|
break;
|
|
1686
1713
|
case "email":
|
|
1687
|
-
this._widgetClass =
|
|
1714
|
+
this._widgetClass = Zt;
|
|
1688
1715
|
break;
|
|
1689
1716
|
case "reference":
|
|
1690
|
-
this._widgetClass =
|
|
1717
|
+
this._widgetClass = Mt;
|
|
1691
1718
|
break;
|
|
1692
1719
|
case "binary":
|
|
1693
|
-
this._widgetClass =
|
|
1720
|
+
this._widgetClass = Bt;
|
|
1694
1721
|
break;
|
|
1695
1722
|
case "image":
|
|
1696
|
-
this._widgetClass =
|
|
1723
|
+
this._widgetClass = At;
|
|
1697
1724
|
break;
|
|
1698
1725
|
case "fiber_grid":
|
|
1699
|
-
this._widgetClass =
|
|
1726
|
+
this._widgetClass = Rt;
|
|
1700
1727
|
break;
|
|
1701
1728
|
case "timeline":
|
|
1702
|
-
this._widgetClass =
|
|
1729
|
+
this._widgetClass = Lt;
|
|
1703
1730
|
break;
|
|
1704
1731
|
case "indicator":
|
|
1705
|
-
this._widgetClass =
|
|
1732
|
+
this._widgetClass = Gt;
|
|
1706
1733
|
break;
|
|
1707
1734
|
case "tags":
|
|
1708
|
-
this._widgetClass = $
|
|
1735
|
+
this._widgetClass = $t;
|
|
1709
1736
|
break;
|
|
1710
1737
|
case "tag":
|
|
1711
|
-
this._widgetClass =
|
|
1738
|
+
this._widgetClass = qt;
|
|
1712
1739
|
break;
|
|
1713
1740
|
case "avatar":
|
|
1714
|
-
this._widgetClass =
|
|
1741
|
+
this._widgetClass = kt;
|
|
1715
1742
|
break;
|
|
1716
1743
|
case "radio":
|
|
1717
|
-
this._widgetClass =
|
|
1744
|
+
this._widgetClass = Jt;
|
|
1718
1745
|
break;
|
|
1719
1746
|
case "multicheckbox":
|
|
1720
|
-
this._widgetClass =
|
|
1747
|
+
this._widgetClass = rt;
|
|
1721
1748
|
break;
|
|
1722
1749
|
case "switch":
|
|
1723
|
-
this._widgetClass =
|
|
1750
|
+
this._widgetClass = Ht;
|
|
1724
1751
|
break;
|
|
1725
1752
|
case "steps":
|
|
1726
|
-
this._widgetClass =
|
|
1753
|
+
this._widgetClass = Qt;
|
|
1727
1754
|
break;
|
|
1728
1755
|
case "codeeditor":
|
|
1729
|
-
this._widgetClass =
|
|
1756
|
+
this._widgetClass = nt;
|
|
1730
1757
|
break;
|
|
1731
1758
|
case "time":
|
|
1732
|
-
this._widgetClass =
|
|
1759
|
+
this._widgetClass = Kt;
|
|
1733
1760
|
break;
|
|
1734
1761
|
case "html_preview":
|
|
1735
|
-
this._widgetClass =
|
|
1762
|
+
this._widgetClass = Vt;
|
|
1736
1763
|
break;
|
|
1737
1764
|
case "alert":
|
|
1738
|
-
this._widgetClass =
|
|
1765
|
+
this._widgetClass = Xt;
|
|
1739
1766
|
break;
|
|
1740
1767
|
case "comments_timeline":
|
|
1741
|
-
this._widgetClass =
|
|
1768
|
+
this._widgetClass = Ut;
|
|
1742
1769
|
break;
|
|
1743
1770
|
case "json":
|
|
1744
|
-
this._widgetClass =
|
|
1771
|
+
this._widgetClass = K;
|
|
1745
1772
|
break;
|
|
1746
1773
|
case "arrow_steps":
|
|
1747
|
-
this._widgetClass =
|
|
1774
|
+
this._widgetClass = K;
|
|
1748
1775
|
break;
|
|
1749
1776
|
case "spinner":
|
|
1750
|
-
this._widgetClass =
|
|
1777
|
+
this._widgetClass = N;
|
|
1751
1778
|
break;
|
|
1752
1779
|
case "carousel":
|
|
1753
|
-
this._widgetClass =
|
|
1780
|
+
this._widgetClass = te;
|
|
1754
1781
|
break;
|
|
1755
1782
|
case "colorPicker":
|
|
1756
|
-
this._widgetClass =
|
|
1783
|
+
this._widgetClass = ee;
|
|
1757
1784
|
break;
|
|
1758
1785
|
case "qrcode":
|
|
1759
|
-
this._widgetClass =
|
|
1786
|
+
this._widgetClass = ie;
|
|
1760
1787
|
break;
|
|
1761
1788
|
}
|
|
1762
1789
|
}
|
|
1763
|
-
createWidget(
|
|
1790
|
+
createWidget(e, t) {
|
|
1764
1791
|
this._widgetClass = void 0;
|
|
1765
|
-
let s =
|
|
1766
|
-
switch (this.setWidgetClass(
|
|
1792
|
+
let s = e;
|
|
1793
|
+
switch (this.setWidgetClass(e), this._widgetClass === void 0 && (s = t.fieldsWidgetType, this.setWidgetClass(t.fieldsWidgetType)), this._widgetClass === void 0 && (this._widgetClass = k), e) {
|
|
1767
1794
|
case "notebook":
|
|
1768
1795
|
case "page":
|
|
1769
1796
|
case "group":
|
|
1770
1797
|
case "card":
|
|
1771
|
-
return new this._widgetClass({ ...
|
|
1798
|
+
return new this._widgetClass({ ...t, type: s });
|
|
1772
1799
|
case "button":
|
|
1773
1800
|
return new this._widgetClass({
|
|
1774
|
-
...
|
|
1775
|
-
type:
|
|
1776
|
-
buttonType:
|
|
1801
|
+
...t,
|
|
1802
|
+
type: e,
|
|
1803
|
+
buttonType: t.type
|
|
1777
1804
|
});
|
|
1778
1805
|
default:
|
|
1779
|
-
return new this._widgetClass({ ...
|
|
1806
|
+
return new this._widgetClass({ ...t, type: s });
|
|
1780
1807
|
}
|
|
1781
1808
|
}
|
|
1782
1809
|
}
|
|
1783
|
-
const
|
|
1810
|
+
const re = ({
|
|
1784
1811
|
fieldName: i,
|
|
1785
|
-
values:
|
|
1786
|
-
fields:
|
|
1812
|
+
values: e,
|
|
1813
|
+
fields: t
|
|
1787
1814
|
}) => {
|
|
1788
|
-
var
|
|
1815
|
+
var o;
|
|
1789
1816
|
if (!i)
|
|
1790
1817
|
return {};
|
|
1791
|
-
const s = (
|
|
1818
|
+
const s = (o = t[i]) == null ? void 0 : o.states;
|
|
1792
1819
|
if (!s)
|
|
1793
1820
|
return {};
|
|
1794
1821
|
const n = {}, a = {};
|
|
1795
|
-
for (const
|
|
1796
|
-
if (
|
|
1797
|
-
const d = s[
|
|
1822
|
+
for (const l of Object.keys(s))
|
|
1823
|
+
if (e.state === l) {
|
|
1824
|
+
const d = s[l];
|
|
1798
1825
|
for (const _ of d) {
|
|
1799
1826
|
const [h, u] = _;
|
|
1800
1827
|
a[h] || (a[h] = []), a[h].push(u);
|
|
1801
1828
|
}
|
|
1802
1829
|
}
|
|
1803
|
-
for (const
|
|
1804
|
-
const d = a[
|
|
1805
|
-
n[
|
|
1830
|
+
for (const l of Object.keys(a)) {
|
|
1831
|
+
const d = a[l];
|
|
1832
|
+
n[l] = d.some((_) => _);
|
|
1806
1833
|
}
|
|
1807
1834
|
return n;
|
|
1808
|
-
},
|
|
1835
|
+
}, ne = ({
|
|
1809
1836
|
states: i,
|
|
1810
|
-
values:
|
|
1837
|
+
values: e
|
|
1811
1838
|
}) => {
|
|
1812
|
-
if (!(
|
|
1839
|
+
if (!(e != null && e.state))
|
|
1813
1840
|
return {};
|
|
1814
|
-
const
|
|
1815
|
-
return
|
|
1841
|
+
const t = i.split(",");
|
|
1842
|
+
return t.length === 0 ? {} : t.includes(e.state) ? {} : { invisible: !0 };
|
|
1816
1843
|
};
|
|
1817
|
-
function
|
|
1844
|
+
function ae({
|
|
1818
1845
|
values: i = {},
|
|
1819
|
-
fieldName:
|
|
1820
|
-
fields:
|
|
1846
|
+
fieldName: e,
|
|
1847
|
+
fields: t = {}
|
|
1821
1848
|
}) {
|
|
1822
1849
|
var n;
|
|
1823
|
-
const s = ((n = e
|
|
1824
|
-
return s === "many2one" ? i[
|
|
1850
|
+
const s = ((n = t[e]) == null ? void 0 : n.type) || "passthrough";
|
|
1851
|
+
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);
|
|
1825
1852
|
}
|
|
1826
|
-
const
|
|
1853
|
+
const J = ({
|
|
1827
1854
|
context: i,
|
|
1828
|
-
values:
|
|
1829
|
-
fields:
|
|
1855
|
+
values: e,
|
|
1856
|
+
fields: t
|
|
1830
1857
|
}) => {
|
|
1831
1858
|
try {
|
|
1832
1859
|
if (!i)
|
|
1833
1860
|
return;
|
|
1834
|
-
if (
|
|
1861
|
+
if (lt(i) || typeof i != "string")
|
|
1835
1862
|
return i;
|
|
1836
|
-
const s =
|
|
1863
|
+
const s = at(i);
|
|
1837
1864
|
if (s !== null)
|
|
1838
1865
|
return s;
|
|
1839
1866
|
if (i.trim().length === 0)
|
|
1840
1867
|
return;
|
|
1841
|
-
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(":")),
|
|
1868
|
+
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 = {};
|
|
1842
1869
|
return u.forEach((c) => {
|
|
1843
1870
|
const b = c[1];
|
|
1844
1871
|
if (!c[1].includes("'") && c[1] !== "true" && c[1] !== "false") {
|
|
1845
|
-
const x =
|
|
1846
|
-
values:
|
|
1847
|
-
fields:
|
|
1872
|
+
const x = ae({
|
|
1873
|
+
values: e,
|
|
1874
|
+
fields: t,
|
|
1848
1875
|
fieldName: b === "active_id" ? "id" : b
|
|
1849
1876
|
});
|
|
1850
|
-
|
|
1877
|
+
m[c[0].replace(/'/g, "")] = x || void 0;
|
|
1851
1878
|
} else
|
|
1852
|
-
c[1] === "true" ?
|
|
1879
|
+
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(
|
|
1853
1880
|
/'/g,
|
|
1854
1881
|
""
|
|
1855
1882
|
);
|
|
1856
|
-
}),
|
|
1883
|
+
}), m;
|
|
1857
1884
|
} catch {
|
|
1858
1885
|
return;
|
|
1859
1886
|
}
|
|
1860
|
-
},
|
|
1861
|
-
const
|
|
1887
|
+
}, ze = (i) => {
|
|
1888
|
+
const e = [];
|
|
1862
1889
|
try {
|
|
1863
|
-
return !i ||
|
|
1864
|
-
!u[1].includes("'") && u[1] !== "true" && u[1] !== "false" &&
|
|
1865
|
-
}),
|
|
1890
|
+
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) => {
|
|
1891
|
+
!u[1].includes("'") && u[1] !== "true" && u[1] !== "false" && e.push(u[1].replace(/'/g, ""));
|
|
1892
|
+
}), e);
|
|
1866
1893
|
} catch {
|
|
1867
1894
|
}
|
|
1868
|
-
return
|
|
1895
|
+
return e;
|
|
1869
1896
|
};
|
|
1870
|
-
function
|
|
1897
|
+
function at(i) {
|
|
1871
1898
|
try {
|
|
1872
1899
|
return JSON.parse(i.replace(/'/g, '"'));
|
|
1873
1900
|
} catch {
|
|
1874
1901
|
return null;
|
|
1875
1902
|
}
|
|
1876
1903
|
}
|
|
1877
|
-
function
|
|
1904
|
+
function lt(i) {
|
|
1878
1905
|
return typeof i == "object" && i !== null && typeof i != "string";
|
|
1879
1906
|
}
|
|
1880
|
-
const
|
|
1881
|
-
const
|
|
1907
|
+
const le = (i) => {
|
|
1908
|
+
const e = i.trim().replace(")", "").split("("), t = e[0], n = e[1].split(",").map((a) => a.trim());
|
|
1882
1909
|
return {
|
|
1883
|
-
method:
|
|
1910
|
+
method: t,
|
|
1884
1911
|
args: n
|
|
1885
1912
|
};
|
|
1886
1913
|
};
|
|
1887
|
-
function
|
|
1888
|
-
const
|
|
1889
|
-
function
|
|
1914
|
+
function oe(i) {
|
|
1915
|
+
const e = [];
|
|
1916
|
+
function t(s) {
|
|
1890
1917
|
const n = [];
|
|
1891
1918
|
for (const a of s)
|
|
1892
|
-
a instanceof
|
|
1893
|
-
n.length > 0 &&
|
|
1919
|
+
a instanceof F ? t(a._container.rows.flat()) : n.push(a);
|
|
1920
|
+
n.length > 0 && e.push(n);
|
|
1894
1921
|
}
|
|
1895
1922
|
for (const s of i)
|
|
1896
|
-
|
|
1897
|
-
return
|
|
1923
|
+
t(s);
|
|
1924
|
+
return e.flat();
|
|
1898
1925
|
}
|
|
1899
|
-
class
|
|
1900
|
-
constructor(
|
|
1926
|
+
class Se {
|
|
1927
|
+
constructor(e, t = 4) {
|
|
1901
1928
|
/**
|
|
1902
1929
|
* Object containing fields specification of the form.
|
|
1903
1930
|
*/
|
|
@@ -1951,7 +1978,7 @@ class It {
|
|
|
1951
1978
|
* Context for each field in the form
|
|
1952
1979
|
*/
|
|
1953
1980
|
r(this, "_contextForFields", {});
|
|
1954
|
-
this._fields =
|
|
1981
|
+
this._fields = e, this._container = new Y(t, 6, !1, "root");
|
|
1955
1982
|
}
|
|
1956
1983
|
get fields() {
|
|
1957
1984
|
return this._fields;
|
|
@@ -1968,32 +1995,32 @@ class It {
|
|
|
1968
1995
|
get readOnly() {
|
|
1969
1996
|
return this._readOnly;
|
|
1970
1997
|
}
|
|
1971
|
-
set readOnly(
|
|
1972
|
-
this._readOnly =
|
|
1998
|
+
set readOnly(e) {
|
|
1999
|
+
this._readOnly = e;
|
|
1973
2000
|
}
|
|
1974
2001
|
get context() {
|
|
1975
2002
|
return this._context;
|
|
1976
2003
|
}
|
|
1977
|
-
set context(
|
|
1978
|
-
this._context =
|
|
2004
|
+
set context(e) {
|
|
2005
|
+
this._context = e;
|
|
1979
2006
|
}
|
|
1980
2007
|
get onChangeFields() {
|
|
1981
2008
|
return this._onChangeFields;
|
|
1982
2009
|
}
|
|
1983
|
-
set onChangeFields(
|
|
1984
|
-
this._onChangeFields =
|
|
2010
|
+
set onChangeFields(e) {
|
|
2011
|
+
this._onChangeFields = e;
|
|
1985
2012
|
}
|
|
1986
2013
|
get keyIdx() {
|
|
1987
2014
|
return this._keyIdx;
|
|
1988
2015
|
}
|
|
1989
|
-
set keyIdx(
|
|
1990
|
-
this._keyIdx =
|
|
2016
|
+
set keyIdx(e) {
|
|
2017
|
+
this._keyIdx = e;
|
|
1991
2018
|
}
|
|
1992
2019
|
get invisibleFields() {
|
|
1993
2020
|
return this._invisibleFields;
|
|
1994
2021
|
}
|
|
1995
|
-
set invisibleFields(
|
|
1996
|
-
this._invisibleFields =
|
|
2022
|
+
set invisibleFields(e) {
|
|
2023
|
+
this._invisibleFields = e;
|
|
1997
2024
|
}
|
|
1998
2025
|
get autorefreshableFields() {
|
|
1999
2026
|
return this._autorefreshableFields;
|
|
@@ -2001,107 +2028,107 @@ class It {
|
|
|
2001
2028
|
get contextForFields() {
|
|
2002
2029
|
return this._contextForFields;
|
|
2003
2030
|
}
|
|
2004
|
-
set contextForFields(
|
|
2005
|
-
this._contextForFields =
|
|
2031
|
+
set contextForFields(e) {
|
|
2032
|
+
this._contextForFields = e;
|
|
2006
2033
|
}
|
|
2007
|
-
parse(
|
|
2008
|
-
var
|
|
2009
|
-
const { values: s = {}, readOnly: n = !1 } =
|
|
2010
|
-
this._string = ((
|
|
2034
|
+
parse(e, t) {
|
|
2035
|
+
var l;
|
|
2036
|
+
const { values: s = {}, readOnly: n = !1 } = t || {}, a = I.parse(e).filter((d) => d.tagName === "form")[0];
|
|
2037
|
+
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({
|
|
2011
2038
|
fields: a.children,
|
|
2012
2039
|
container: this._container,
|
|
2013
2040
|
values: s
|
|
2014
2041
|
});
|
|
2015
|
-
const
|
|
2016
|
-
|
|
2042
|
+
const o = oe(this._container._rows);
|
|
2043
|
+
o.forEach((d) => {
|
|
2017
2044
|
const _ = d;
|
|
2018
2045
|
_._id && _._context && (this._contextForFields[_._id] = d._context);
|
|
2019
|
-
}), this._autorefreshableFields =
|
|
2046
|
+
}), this._autorefreshableFields = o.filter((d) => d instanceof f && d.autoRefresh).map((d) => d._id);
|
|
2020
2047
|
}
|
|
2021
2048
|
parseNode({
|
|
2022
|
-
fields:
|
|
2023
|
-
container:
|
|
2049
|
+
fields: e,
|
|
2050
|
+
container: t,
|
|
2024
2051
|
values: s
|
|
2025
2052
|
}) {
|
|
2026
|
-
const n = new
|
|
2027
|
-
|
|
2028
|
-
var v,
|
|
2029
|
-
const { tagName:
|
|
2030
|
-
let _ =
|
|
2031
|
-
if (
|
|
2032
|
-
const { name:
|
|
2053
|
+
const n = new D();
|
|
2054
|
+
e.filter((a) => typeof a == "object").forEach((a) => {
|
|
2055
|
+
var v, C;
|
|
2056
|
+
const { tagName: o, attributes: l, children: d } = a;
|
|
2057
|
+
let _ = o, h = l;
|
|
2058
|
+
if (o === "field") {
|
|
2059
|
+
const { name: w, widget: S } = l;
|
|
2033
2060
|
if (S)
|
|
2034
2061
|
_ = S;
|
|
2035
|
-
else if (
|
|
2036
|
-
if (!this._fields[
|
|
2062
|
+
else if (w) {
|
|
2063
|
+
if (!this._fields[w])
|
|
2037
2064
|
throw new Error(
|
|
2038
|
-
`Field ${
|
|
2065
|
+
`Field ${w} doesn't exist in fields defintion`
|
|
2039
2066
|
);
|
|
2040
|
-
_ = this._fields[
|
|
2041
|
-
...
|
|
2042
|
-
...this._fields[
|
|
2067
|
+
_ = this._fields[w].type, l.widget_props = {
|
|
2068
|
+
...Z(l.widget_props),
|
|
2069
|
+
...this._fields[w].widget_props || {}
|
|
2043
2070
|
};
|
|
2044
2071
|
}
|
|
2045
2072
|
h = {
|
|
2046
|
-
...this._fields[
|
|
2047
|
-
...
|
|
2048
|
-
fieldsWidgetType: this._fields[
|
|
2073
|
+
...this._fields[w],
|
|
2074
|
+
...l,
|
|
2075
|
+
fieldsWidgetType: this._fields[w].type
|
|
2049
2076
|
};
|
|
2050
2077
|
}
|
|
2051
|
-
const u =
|
|
2078
|
+
const u = Ct({
|
|
2052
2079
|
tagAttributes: h,
|
|
2053
2080
|
values: s,
|
|
2054
2081
|
fields: this._fields,
|
|
2055
|
-
widgetType:
|
|
2082
|
+
widgetType: o
|
|
2056
2083
|
});
|
|
2057
|
-
let
|
|
2058
|
-
|
|
2084
|
+
let m;
|
|
2085
|
+
o === "button" && h.states ? m = ne({
|
|
2059
2086
|
states: h.states,
|
|
2060
2087
|
values: s
|
|
2061
|
-
}) :
|
|
2088
|
+
}) : m = re({
|
|
2062
2089
|
fieldName: h.name,
|
|
2063
2090
|
values: s,
|
|
2064
2091
|
fields: this._fields
|
|
2065
2092
|
});
|
|
2066
|
-
const c =
|
|
2093
|
+
const c = J({
|
|
2067
2094
|
context: h.context || ((v = this._fields[h.name]) == null ? void 0 : v.context),
|
|
2068
2095
|
values: s,
|
|
2069
2096
|
fields: this._fields
|
|
2070
2097
|
});
|
|
2071
|
-
h.on_change && (this._onChangeFields[h.name] =
|
|
2098
|
+
h.on_change && (this._onChangeFields[h.name] = le(
|
|
2072
2099
|
h.on_change
|
|
2073
2100
|
));
|
|
2074
2101
|
let b;
|
|
2075
|
-
|
|
2102
|
+
X(h.domain) ? b = h.domain : X((C = this._fields[h.name]) == null ? void 0 : C.domain) && (b = this._fields[h.name].domain), this._keyIdx = this._keyIdx + 1;
|
|
2076
2103
|
const x = {
|
|
2077
2104
|
...u,
|
|
2078
|
-
...
|
|
2105
|
+
...m,
|
|
2079
2106
|
context: c,
|
|
2080
2107
|
domain: b,
|
|
2081
2108
|
key: `${this._keyIdx}`
|
|
2082
2109
|
};
|
|
2083
|
-
|
|
2110
|
+
t.readOnly && (x.readonly = !0);
|
|
2084
2111
|
const y = n.createWidget(_, x);
|
|
2085
|
-
y.invisible && y instanceof f && this._invisibleFields.push(x.name), y instanceof
|
|
2112
|
+
y.invisible && y instanceof f && this._invisibleFields.push(x.name), y instanceof F && this.parseNode({
|
|
2086
2113
|
fields: d,
|
|
2087
2114
|
container: y.container,
|
|
2088
2115
|
values: s
|
|
2089
|
-
}), y instanceof
|
|
2116
|
+
}), y instanceof G && y.readOnly !== void 0 || (y.readOnly = y.readOnly || this.readOnly), t.addWidget(y);
|
|
2090
2117
|
});
|
|
2091
2118
|
}
|
|
2092
2119
|
/**
|
|
2093
2120
|
* Calls container's findById method to find the widgets matching with param id
|
|
2094
2121
|
* @param {string} id id to find
|
|
2095
2122
|
*/
|
|
2096
|
-
findById(
|
|
2097
|
-
return this.container.findById(
|
|
2123
|
+
findById(e) {
|
|
2124
|
+
return this.container.findById(e);
|
|
2098
2125
|
}
|
|
2099
2126
|
}
|
|
2100
|
-
function
|
|
2127
|
+
function X(i) {
|
|
2101
2128
|
return i ? Array.isArray(i) && i.length > 0 ? !0 : typeof i == "string" && i !== "" && i !== "[]" : !1;
|
|
2102
2129
|
}
|
|
2103
|
-
class
|
|
2104
|
-
constructor(
|
|
2130
|
+
class Ee {
|
|
2131
|
+
constructor(e) {
|
|
2105
2132
|
/**
|
|
2106
2133
|
* Object containing fields specification of the form.
|
|
2107
2134
|
*/
|
|
@@ -2133,7 +2160,7 @@ class Et {
|
|
|
2133
2160
|
* Is infinite
|
|
2134
2161
|
*/
|
|
2135
2162
|
r(this, "_infinite", !1);
|
|
2136
|
-
this._fields =
|
|
2163
|
+
this._fields = e;
|
|
2137
2164
|
}
|
|
2138
2165
|
get fields() {
|
|
2139
2166
|
return this._fields;
|
|
@@ -2159,8 +2186,8 @@ class Et {
|
|
|
2159
2186
|
get contextForFields() {
|
|
2160
2187
|
return this._contextForFields;
|
|
2161
2188
|
}
|
|
2162
|
-
set contextForFields(
|
|
2163
|
-
this._contextForFields =
|
|
2189
|
+
set contextForFields(e) {
|
|
2190
|
+
this._contextForFields = e;
|
|
2164
2191
|
}
|
|
2165
2192
|
get autorefreshableFields() {
|
|
2166
2193
|
return this._autorefreshableFields;
|
|
@@ -2168,41 +2195,41 @@ class Et {
|
|
|
2168
2195
|
get infinite() {
|
|
2169
2196
|
return this._infinite;
|
|
2170
2197
|
}
|
|
2171
|
-
set infinite(
|
|
2172
|
-
this._infinite =
|
|
2198
|
+
set infinite(e) {
|
|
2199
|
+
this._infinite = e;
|
|
2173
2200
|
}
|
|
2174
|
-
parse(
|
|
2175
|
-
const
|
|
2176
|
-
this._string =
|
|
2177
|
-
const s = new
|
|
2178
|
-
|
|
2179
|
-
const { tagName: a, attributes:
|
|
2180
|
-
let
|
|
2201
|
+
parse(e) {
|
|
2202
|
+
const t = I.parse(e).filter((n) => n.tagName === "tree")[0];
|
|
2203
|
+
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;
|
|
2204
|
+
const s = new D();
|
|
2205
|
+
t.children.forEach((n) => {
|
|
2206
|
+
const { tagName: a, attributes: o } = n;
|
|
2207
|
+
let l = null;
|
|
2181
2208
|
if (a === "field") {
|
|
2182
|
-
const { name: d, widget: _ } =
|
|
2183
|
-
let h =
|
|
2209
|
+
const { name: d, widget: _ } = o;
|
|
2210
|
+
let h = o;
|
|
2184
2211
|
if (d) {
|
|
2185
2212
|
if (!this._fields[d])
|
|
2186
2213
|
throw new Error(`Field ${d} doesn't exist in fields defintion`);
|
|
2187
2214
|
const u = this._fields[d];
|
|
2188
|
-
|
|
2189
|
-
const
|
|
2190
|
-
context:
|
|
2215
|
+
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;
|
|
2216
|
+
const m = J({
|
|
2217
|
+
context: o.context || u.context,
|
|
2191
2218
|
values: {},
|
|
2192
2219
|
fields: this._fields
|
|
2193
2220
|
});
|
|
2194
2221
|
h = {
|
|
2195
2222
|
...u,
|
|
2196
|
-
...
|
|
2223
|
+
...o,
|
|
2197
2224
|
fieldsWidgetType: u == null ? void 0 : u.type,
|
|
2198
|
-
context:
|
|
2199
|
-
}, this._contextForFields[d] =
|
|
2225
|
+
context: m
|
|
2226
|
+
}, this._contextForFields[d] = m;
|
|
2200
2227
|
}
|
|
2201
|
-
if (_ && (
|
|
2202
|
-
const u = s.createWidget(
|
|
2228
|
+
if (_ && (l = _), !h.invisible) {
|
|
2229
|
+
const u = s.createWidget(l, h);
|
|
2203
2230
|
this._columns.push(u);
|
|
2204
2231
|
}
|
|
2205
|
-
|
|
2232
|
+
p(h.autorefresh) && this._autorefreshableFields.push(d);
|
|
2206
2233
|
}
|
|
2207
2234
|
});
|
|
2208
2235
|
}
|
|
@@ -2210,11 +2237,159 @@ class Et {
|
|
|
2210
2237
|
* Find the widgets matching with param id
|
|
2211
2238
|
* @param {string} id id to find
|
|
2212
2239
|
*/
|
|
2213
|
-
findById(
|
|
2214
|
-
return this._columns.find((
|
|
2240
|
+
findById(e) {
|
|
2241
|
+
return this._columns.find((t) => t.findById ? t.findById(e) : !1);
|
|
2215
2242
|
}
|
|
2216
2243
|
}
|
|
2217
|
-
|
|
2244
|
+
class Ve {
|
|
2245
|
+
constructor(e) {
|
|
2246
|
+
/**
|
|
2247
|
+
* Object containing fields specification of the kanban.
|
|
2248
|
+
*/
|
|
2249
|
+
r(this, "_fields");
|
|
2250
|
+
/**
|
|
2251
|
+
* Array of field widgets to display in cards
|
|
2252
|
+
*/
|
|
2253
|
+
r(this, "_card_fields", []);
|
|
2254
|
+
/**
|
|
2255
|
+
* Array of button widgets to display in cards
|
|
2256
|
+
*/
|
|
2257
|
+
r(this, "_buttons", []);
|
|
2258
|
+
r(this, "_string", null);
|
|
2259
|
+
/**
|
|
2260
|
+
* Widget type
|
|
2261
|
+
*/
|
|
2262
|
+
r(this, "_type", "kanban");
|
|
2263
|
+
/**
|
|
2264
|
+
* Field that defines the columns (e.g., "state")
|
|
2265
|
+
*/
|
|
2266
|
+
r(this, "_column_field", null);
|
|
2267
|
+
/**
|
|
2268
|
+
* Enable dragging cards between columns
|
|
2269
|
+
*/
|
|
2270
|
+
r(this, "_drag", !0);
|
|
2271
|
+
/**
|
|
2272
|
+
* Enable sorting cards within columns
|
|
2273
|
+
*/
|
|
2274
|
+
r(this, "_sort", !0);
|
|
2275
|
+
/**
|
|
2276
|
+
* Enable setting max cards per column (WIP limits)
|
|
2277
|
+
*/
|
|
2278
|
+
r(this, "_set_max_cards", !1);
|
|
2279
|
+
/**
|
|
2280
|
+
* Color expression value (e.g., "blue:state=='draft';green:state=='done'")
|
|
2281
|
+
*/
|
|
2282
|
+
r(this, "_colors", null);
|
|
2283
|
+
/**
|
|
2284
|
+
* Context for each field in the kanban
|
|
2285
|
+
*/
|
|
2286
|
+
r(this, "_contextForFields", {});
|
|
2287
|
+
/**
|
|
2288
|
+
* Map of fields that have sum aggregation
|
|
2289
|
+
* Key: field name, Value: sum label (e.g., "Total hours")
|
|
2290
|
+
*/
|
|
2291
|
+
r(this, "_aggregations", {});
|
|
2292
|
+
this._fields = e;
|
|
2293
|
+
}
|
|
2294
|
+
get fields() {
|
|
2295
|
+
return this._fields;
|
|
2296
|
+
}
|
|
2297
|
+
get card_fields() {
|
|
2298
|
+
return this._card_fields;
|
|
2299
|
+
}
|
|
2300
|
+
get buttons() {
|
|
2301
|
+
return this._buttons;
|
|
2302
|
+
}
|
|
2303
|
+
get string() {
|
|
2304
|
+
return this._string;
|
|
2305
|
+
}
|
|
2306
|
+
get type() {
|
|
2307
|
+
return this._type;
|
|
2308
|
+
}
|
|
2309
|
+
get column_field() {
|
|
2310
|
+
return this._column_field;
|
|
2311
|
+
}
|
|
2312
|
+
get drag() {
|
|
2313
|
+
return this._drag;
|
|
2314
|
+
}
|
|
2315
|
+
get sort() {
|
|
2316
|
+
return this._sort;
|
|
2317
|
+
}
|
|
2318
|
+
get set_max_cards() {
|
|
2319
|
+
return this._set_max_cards;
|
|
2320
|
+
}
|
|
2321
|
+
get colors() {
|
|
2322
|
+
return this._colors;
|
|
2323
|
+
}
|
|
2324
|
+
get contextForFields() {
|
|
2325
|
+
return this._contextForFields;
|
|
2326
|
+
}
|
|
2327
|
+
set contextForFields(e) {
|
|
2328
|
+
this._contextForFields = e;
|
|
2329
|
+
}
|
|
2330
|
+
get aggregations() {
|
|
2331
|
+
return this._aggregations;
|
|
2332
|
+
}
|
|
2333
|
+
parse(e) {
|
|
2334
|
+
const t = I.parse(e).filter((n) => n.tagName === "kanban")[0];
|
|
2335
|
+
if (this._string = t.attributes.string || null, this._string && (this._string = g(this._string)), this._column_field = t.attributes.column_field || null, !this._column_field)
|
|
2336
|
+
throw new Error("Kanban view must have a column_field attribute");
|
|
2337
|
+
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));
|
|
2338
|
+
const s = new D();
|
|
2339
|
+
t.children.forEach((n) => {
|
|
2340
|
+
const { tagName: a, attributes: o } = n;
|
|
2341
|
+
a === "field" ? this._parseField(n, o, s) : a === "button" && this._parseButton(n, o);
|
|
2342
|
+
});
|
|
2343
|
+
}
|
|
2344
|
+
_parseField(e, t, s) {
|
|
2345
|
+
const { name: n, widget: a, sum: o } = t;
|
|
2346
|
+
if (!n)
|
|
2347
|
+
return;
|
|
2348
|
+
if (!this._fields[n])
|
|
2349
|
+
throw new Error(`Field ${n} doesn't exist in fields definition`);
|
|
2350
|
+
const l = this._fields[n];
|
|
2351
|
+
let d = l.type;
|
|
2352
|
+
(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;
|
|
2353
|
+
const _ = J({
|
|
2354
|
+
context: t.context || l.context,
|
|
2355
|
+
values: {},
|
|
2356
|
+
fields: this._fields
|
|
2357
|
+
}), h = {
|
|
2358
|
+
...l,
|
|
2359
|
+
...t,
|
|
2360
|
+
fieldsWidgetType: l == null ? void 0 : l.type,
|
|
2361
|
+
context: _
|
|
2362
|
+
};
|
|
2363
|
+
if (this._contextForFields[n] = _, a && (d = a), !h.invisible) {
|
|
2364
|
+
const u = s.createWidget(
|
|
2365
|
+
d,
|
|
2366
|
+
h
|
|
2367
|
+
);
|
|
2368
|
+
o && (u.sum = g(o), this._aggregations[n] = g(o)), this._card_fields.push(u);
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2371
|
+
_parseButton(e, t) {
|
|
2372
|
+
const { name: s, type: n, string: a, states: o } = t;
|
|
2373
|
+
if (!s)
|
|
2374
|
+
return;
|
|
2375
|
+
const l = {
|
|
2376
|
+
...t,
|
|
2377
|
+
name: s,
|
|
2378
|
+
buttonType: n || "object",
|
|
2379
|
+
string: a || ""
|
|
2380
|
+
}, d = new G(l);
|
|
2381
|
+
o && (d.states = o), this._buttons.push(d);
|
|
2382
|
+
}
|
|
2383
|
+
/**
|
|
2384
|
+
* Find the widgets matching with param id
|
|
2385
|
+
* @param {string} id id to find
|
|
2386
|
+
*/
|
|
2387
|
+
findById(e) {
|
|
2388
|
+
const t = this._card_fields.find((n) => n.findById ? n.findById(e) : !1);
|
|
2389
|
+
return t || this._buttons.find((n) => n.findById ? n.findById(e) : !1) || null;
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
const ce = {
|
|
2218
2393
|
text: "text",
|
|
2219
2394
|
many2one: "many2one",
|
|
2220
2395
|
char: "char",
|
|
@@ -2227,8 +2402,8 @@ const ct = {
|
|
|
2227
2402
|
date: "date",
|
|
2228
2403
|
datetime: "datetime"
|
|
2229
2404
|
};
|
|
2230
|
-
class
|
|
2231
|
-
constructor(
|
|
2405
|
+
class Ye {
|
|
2406
|
+
constructor(e, t, s = 8) {
|
|
2232
2407
|
/**
|
|
2233
2408
|
* Object containing the specific fields for primary and secondary search fields
|
|
2234
2409
|
*/
|
|
@@ -2239,7 +2414,7 @@ class Vt {
|
|
|
2239
2414
|
r(this, "_fields");
|
|
2240
2415
|
r(this, "_simpleSearchContainer");
|
|
2241
2416
|
r(this, "_advancedSearchContainer");
|
|
2242
|
-
this._searchFields =
|
|
2417
|
+
this._searchFields = e, this._fields = t, this._simpleSearchContainer = new Y(s), this._advancedSearchContainer = new Y(s);
|
|
2243
2418
|
}
|
|
2244
2419
|
get searchFields() {
|
|
2245
2420
|
return this._searchFields;
|
|
@@ -2254,59 +2429,59 @@ class Vt {
|
|
|
2254
2429
|
return this._advancedSearchContainer;
|
|
2255
2430
|
}
|
|
2256
2431
|
parse() {
|
|
2257
|
-
const
|
|
2432
|
+
const e = new D();
|
|
2258
2433
|
this.parseFields(
|
|
2259
2434
|
this.searchFields.primary,
|
|
2260
|
-
|
|
2435
|
+
e
|
|
2261
2436
|
).forEach((n) => {
|
|
2262
2437
|
this.simpleSearchContainer.addWidget(n, { addLabel: !1 }), this.advancedSearchContainer.addWidget(n, { addLabel: !1 });
|
|
2263
2438
|
}), this.parseFields(
|
|
2264
2439
|
this.searchFields.secondary,
|
|
2265
|
-
|
|
2440
|
+
e
|
|
2266
2441
|
).forEach((n) => {
|
|
2267
2442
|
this.advancedSearchContainer.addWidget(n, { addLabel: !1 });
|
|
2268
2443
|
});
|
|
2269
2444
|
}
|
|
2270
|
-
parseFields(
|
|
2271
|
-
return
|
|
2445
|
+
parseFields(e, t) {
|
|
2446
|
+
return e.map((s) => {
|
|
2272
2447
|
const n = {
|
|
2273
2448
|
...this.fields[s],
|
|
2274
2449
|
name: s,
|
|
2275
2450
|
colspan: 2
|
|
2276
|
-
}, { type: a, widget:
|
|
2277
|
-
let
|
|
2278
|
-
return
|
|
2451
|
+
}, { type: a, widget: o } = n;
|
|
2452
|
+
let l = o ?? a;
|
|
2453
|
+
return ce[l] === void 0 && (l = a), t.createWidget(l, n);
|
|
2279
2454
|
});
|
|
2280
2455
|
}
|
|
2281
2456
|
/**
|
|
2282
2457
|
* Calls container's findById method to find the widgets matching with param id
|
|
2283
2458
|
* @param {string} id id to find
|
|
2284
2459
|
*/
|
|
2285
|
-
findById(
|
|
2286
|
-
return this.advancedSearchContainer.findById(
|
|
2460
|
+
findById(e) {
|
|
2461
|
+
return this.advancedSearchContainer.findById(e);
|
|
2287
2462
|
}
|
|
2288
2463
|
}
|
|
2289
|
-
const
|
|
2464
|
+
const je = ({
|
|
2290
2465
|
domain: i,
|
|
2291
|
-
widgetFieldName:
|
|
2466
|
+
widgetFieldName: e
|
|
2292
2467
|
}) => {
|
|
2293
|
-
const
|
|
2468
|
+
const t = [];
|
|
2294
2469
|
return i.forEach((s) => {
|
|
2295
2470
|
if (!Array.isArray(s))
|
|
2296
2471
|
return;
|
|
2297
|
-
const [n, a,
|
|
2298
|
-
let
|
|
2299
|
-
n.indexOf(".") !== -1 ? (
|
|
2472
|
+
const [n, a, o] = s;
|
|
2473
|
+
let l, d;
|
|
2474
|
+
n.indexOf(".") !== -1 ? (l = n.substr(0, n.indexOf(".")), d = n.substr(
|
|
2300
2475
|
n.indexOf(".") + 1,
|
|
2301
2476
|
n.length - 1
|
|
2302
|
-
)) : (
|
|
2303
|
-
}),
|
|
2304
|
-
},
|
|
2305
|
-
class
|
|
2306
|
-
constructor(
|
|
2477
|
+
)) : (l = n, d = "id"), l === e && t.push([d, a, o]);
|
|
2478
|
+
}), t;
|
|
2479
|
+
}, Ne = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((e) => e.trim()).filter((e) => !e.includes("'"));
|
|
2480
|
+
class de {
|
|
2481
|
+
constructor(e) {
|
|
2307
2482
|
r(this, "_action_id", null);
|
|
2308
2483
|
r(this, "_position", null);
|
|
2309
|
-
|
|
2484
|
+
e.action_id && (this._action_id = e.action_id), e.position && (this._position = e.position);
|
|
2310
2485
|
}
|
|
2311
2486
|
get action_id() {
|
|
2312
2487
|
return this._action_id;
|
|
@@ -2315,15 +2490,15 @@ class dt {
|
|
|
2315
2490
|
return this._position;
|
|
2316
2491
|
}
|
|
2317
2492
|
}
|
|
2318
|
-
class
|
|
2319
|
-
constructor(
|
|
2493
|
+
class De {
|
|
2494
|
+
constructor(e) {
|
|
2320
2495
|
r(this, "_string", null);
|
|
2321
2496
|
r(this, "_items", []);
|
|
2322
|
-
const
|
|
2323
|
-
this._string =
|
|
2324
|
-
const { children: s } =
|
|
2497
|
+
const t = I.parse(e).filter((n) => n.tagName === "dashboard")[0];
|
|
2498
|
+
this._string = t.attributes.string || null;
|
|
2499
|
+
const { children: s } = t;
|
|
2325
2500
|
s.forEach((n) => {
|
|
2326
|
-
n.tagName === "dashboard_item" && this._items.push(new
|
|
2501
|
+
n.tagName === "dashboard_item" && this._items.push(new de(n.attributes));
|
|
2327
2502
|
});
|
|
2328
2503
|
}
|
|
2329
2504
|
get string() {
|
|
@@ -2333,16 +2508,16 @@ class jt {
|
|
|
2333
2508
|
return this._items;
|
|
2334
2509
|
}
|
|
2335
2510
|
}
|
|
2336
|
-
class
|
|
2337
|
-
constructor(
|
|
2511
|
+
class ot {
|
|
2512
|
+
constructor(e) {
|
|
2338
2513
|
r(this, "_string", null);
|
|
2339
2514
|
r(this, "_type");
|
|
2340
2515
|
r(this, "_timerange", null);
|
|
2341
2516
|
r(this, "_interval", 1);
|
|
2342
2517
|
r(this, "_y_range", "default");
|
|
2343
|
-
if (this._string =
|
|
2344
|
-
const
|
|
2345
|
-
(
|
|
2518
|
+
if (this._string = e.attributes.string || null, this._timerange = e.attributes.timerange || null, e.attributes.interval && (this._interval = parseInt(e.attributes.interval)), e.attributes.y_range) {
|
|
2519
|
+
const t = e.attributes.y_range;
|
|
2520
|
+
(t === "auto" || t === "full" || t === "default") && (this._y_range = t);
|
|
2346
2521
|
}
|
|
2347
2522
|
}
|
|
2348
2523
|
get string() {
|
|
@@ -2361,15 +2536,15 @@ class oe {
|
|
|
2361
2536
|
return this._y_range;
|
|
2362
2537
|
}
|
|
2363
2538
|
}
|
|
2364
|
-
class
|
|
2365
|
-
constructor(
|
|
2539
|
+
class ct extends ot {
|
|
2540
|
+
constructor(t, s) {
|
|
2366
2541
|
super(s);
|
|
2367
2542
|
r(this, "_color", null);
|
|
2368
2543
|
r(this, "_icon", null);
|
|
2369
2544
|
r(this, "_totalDomain", null);
|
|
2370
2545
|
r(this, "_showPercent", !1);
|
|
2371
2546
|
r(this, "_suffix", null);
|
|
2372
|
-
this._type =
|
|
2547
|
+
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);
|
|
2373
2548
|
}
|
|
2374
2549
|
get color() {
|
|
2375
2550
|
return this._color;
|
|
@@ -2387,16 +2562,16 @@ class ce extends oe {
|
|
|
2387
2562
|
return this._suffix;
|
|
2388
2563
|
}
|
|
2389
2564
|
}
|
|
2390
|
-
class
|
|
2391
|
-
constructor(
|
|
2392
|
-
super(
|
|
2565
|
+
class ue extends ct {
|
|
2566
|
+
constructor(t, s) {
|
|
2567
|
+
super(t, s);
|
|
2393
2568
|
r(this, "_field");
|
|
2394
2569
|
r(this, "_operator");
|
|
2395
2570
|
const { children: n } = s;
|
|
2396
2571
|
n.forEach((a) => {
|
|
2397
2572
|
if (a.tagName === "field") {
|
|
2398
|
-
const
|
|
2399
|
-
this._field =
|
|
2573
|
+
const o = a.attributes.name, l = a.attributes.operator;
|
|
2574
|
+
this._field = o || void 0, this._operator = l;
|
|
2400
2575
|
}
|
|
2401
2576
|
});
|
|
2402
2577
|
}
|
|
@@ -2407,43 +2582,43 @@ class ut extends ce {
|
|
|
2407
2582
|
return this._operator;
|
|
2408
2583
|
}
|
|
2409
2584
|
}
|
|
2410
|
-
const
|
|
2411
|
-
const
|
|
2412
|
-
let
|
|
2585
|
+
const he = (i) => {
|
|
2586
|
+
const e = [];
|
|
2587
|
+
let t;
|
|
2413
2588
|
if (i.forEach((s) => {
|
|
2414
2589
|
if (s.tagName === "field") {
|
|
2415
|
-
const n = s.attributes.axis, a = s.attributes.operator,
|
|
2590
|
+
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;
|
|
2416
2591
|
if (!n)
|
|
2417
|
-
throw new Error(`Field ${
|
|
2418
|
-
if (!
|
|
2592
|
+
throw new Error(`Field ${o} doesn't have an axis`);
|
|
2593
|
+
if (!o)
|
|
2419
2594
|
throw new Error("Missing name attribute for field");
|
|
2420
|
-
n === "x" ?
|
|
2421
|
-
name:
|
|
2422
|
-
}) : n === "y" &&
|
|
2423
|
-
new
|
|
2424
|
-
name:
|
|
2595
|
+
n === "x" ? t = new ge({
|
|
2596
|
+
name: o
|
|
2597
|
+
}) : n === "y" && e.push(
|
|
2598
|
+
new fe({
|
|
2599
|
+
name: o,
|
|
2425
2600
|
operator: a,
|
|
2426
|
-
label:
|
|
2601
|
+
label: l,
|
|
2427
2602
|
stacked: d
|
|
2428
2603
|
})
|
|
2429
2604
|
);
|
|
2430
2605
|
}
|
|
2431
|
-
}), !
|
|
2606
|
+
}), !t)
|
|
2432
2607
|
throw new Error("No x axis found");
|
|
2433
|
-
if (!
|
|
2608
|
+
if (!e.length)
|
|
2434
2609
|
throw new Error("No y axis found. At least we need one y axis");
|
|
2435
2610
|
return {
|
|
2436
|
-
x:
|
|
2437
|
-
y:
|
|
2611
|
+
x: t,
|
|
2612
|
+
y: e
|
|
2438
2613
|
};
|
|
2439
2614
|
};
|
|
2440
|
-
class M extends
|
|
2441
|
-
constructor(
|
|
2615
|
+
class M extends ot {
|
|
2616
|
+
constructor(t, s) {
|
|
2442
2617
|
super(s);
|
|
2443
2618
|
r(this, "_x");
|
|
2444
2619
|
r(this, "_y");
|
|
2445
|
-
this._type =
|
|
2446
|
-
const n =
|
|
2620
|
+
this._type = t;
|
|
2621
|
+
const n = he(s.children);
|
|
2447
2622
|
this._x = n.x, this._y = n.y;
|
|
2448
2623
|
}
|
|
2449
2624
|
get x() {
|
|
@@ -2453,26 +2628,26 @@ class M extends oe {
|
|
|
2453
2628
|
return this._y;
|
|
2454
2629
|
}
|
|
2455
2630
|
}
|
|
2456
|
-
const
|
|
2457
|
-
indicator:
|
|
2458
|
-
indicatorField:
|
|
2631
|
+
const _e = {
|
|
2632
|
+
indicator: ct,
|
|
2633
|
+
indicatorField: ue,
|
|
2459
2634
|
line: M,
|
|
2460
2635
|
bar: M,
|
|
2461
2636
|
pie: M
|
|
2462
|
-
},
|
|
2463
|
-
const
|
|
2464
|
-
if (!
|
|
2465
|
-
throw new Error(`${
|
|
2466
|
-
const s =
|
|
2637
|
+
}, Me = (i) => {
|
|
2638
|
+
const e = I.parse(i).filter((n) => n.tagName === "graph")[0], t = e.attributes.type;
|
|
2639
|
+
if (!t)
|
|
2640
|
+
throw new Error(`${t} is not a valid graph`);
|
|
2641
|
+
const s = _e[t];
|
|
2467
2642
|
if (!s)
|
|
2468
|
-
throw new Error(`${
|
|
2469
|
-
return new s(
|
|
2643
|
+
throw new Error(`${t} not found as a GraphModel`);
|
|
2644
|
+
return new s(t, e);
|
|
2470
2645
|
};
|
|
2471
|
-
class
|
|
2472
|
-
constructor({ name:
|
|
2646
|
+
class dt {
|
|
2647
|
+
constructor({ name: e, axis: t }) {
|
|
2473
2648
|
r(this, "_name");
|
|
2474
2649
|
r(this, "_axis");
|
|
2475
|
-
this._name =
|
|
2650
|
+
this._name = e, this._axis = t;
|
|
2476
2651
|
}
|
|
2477
2652
|
get name() {
|
|
2478
2653
|
return this._name;
|
|
@@ -2481,14 +2656,14 @@ class de {
|
|
|
2481
2656
|
return this._axis;
|
|
2482
2657
|
}
|
|
2483
2658
|
}
|
|
2484
|
-
class
|
|
2659
|
+
class fe extends dt {
|
|
2485
2660
|
constructor({
|
|
2486
|
-
name:
|
|
2661
|
+
name: t,
|
|
2487
2662
|
operator: s,
|
|
2488
2663
|
label: n,
|
|
2489
2664
|
stacked: a
|
|
2490
2665
|
}) {
|
|
2491
|
-
super({ name:
|
|
2666
|
+
super({ name: t, axis: "y" });
|
|
2492
2667
|
r(this, "_operator");
|
|
2493
2668
|
r(this, "_label");
|
|
2494
2669
|
r(this, "_stacked");
|
|
@@ -2504,75 +2679,75 @@ class ft extends de {
|
|
|
2504
2679
|
return this._stacked;
|
|
2505
2680
|
}
|
|
2506
2681
|
}
|
|
2507
|
-
class
|
|
2508
|
-
constructor({ name:
|
|
2509
|
-
super({ name:
|
|
2682
|
+
class ge extends dt {
|
|
2683
|
+
constructor({ name: e }) {
|
|
2684
|
+
super({ name: e, axis: "x" });
|
|
2510
2685
|
}
|
|
2511
2686
|
}
|
|
2512
|
-
const
|
|
2513
|
-
const
|
|
2687
|
+
const me = ({ ooui: i }) => {
|
|
2688
|
+
const t = [i.x.name];
|
|
2514
2689
|
return i.y ? (i.y.forEach((s) => {
|
|
2515
|
-
s.operator !== "count" && !
|
|
2516
|
-
}),
|
|
2690
|
+
s.operator !== "count" && !t.includes(s.name) && t.push(s.name), s.label && !t.includes(s.label) && t.push(s.label);
|
|
2691
|
+
}), t) : [];
|
|
2517
2692
|
};
|
|
2518
|
-
function
|
|
2693
|
+
function H({
|
|
2519
2694
|
fields: i,
|
|
2520
|
-
values:
|
|
2521
|
-
fieldName:
|
|
2695
|
+
values: e,
|
|
2696
|
+
fieldName: t
|
|
2522
2697
|
}) {
|
|
2523
|
-
const s = i[
|
|
2698
|
+
const s = i[t], n = e[t];
|
|
2524
2699
|
if (!s)
|
|
2525
|
-
throw new Error(`Field ${
|
|
2700
|
+
throw new Error(`Field ${t} not found`);
|
|
2526
2701
|
if (s.type === "many2one")
|
|
2527
2702
|
return n ? { value: n[0], label: n[1] } : { value: !1, label: void 0 };
|
|
2528
2703
|
if (s.type === "selection") {
|
|
2529
|
-
const
|
|
2530
|
-
return
|
|
2704
|
+
const o = s.selection.find((l) => l[0] === n);
|
|
2705
|
+
return o ? { value: n, label: o[1] } : { value: !1, label: void 0 };
|
|
2531
2706
|
}
|
|
2532
2707
|
return { value: n, label: n };
|
|
2533
2708
|
}
|
|
2534
|
-
const
|
|
2709
|
+
const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2535
2710
|
__proto__: null,
|
|
2536
|
-
getFieldsToRetrieve:
|
|
2537
|
-
getValueAndLabelForField:
|
|
2711
|
+
getFieldsToRetrieve: me,
|
|
2712
|
+
getValueAndLabelForField: H
|
|
2538
2713
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2539
|
-
function
|
|
2714
|
+
function be({
|
|
2540
2715
|
values: i,
|
|
2541
|
-
timerange:
|
|
2542
|
-
interval:
|
|
2716
|
+
timerange: e,
|
|
2717
|
+
interval: t = 1
|
|
2543
2718
|
}) {
|
|
2544
|
-
const s =
|
|
2719
|
+
const s = pe({
|
|
2545
2720
|
values: i,
|
|
2546
|
-
timerange:
|
|
2721
|
+
timerange: e
|
|
2547
2722
|
});
|
|
2548
|
-
return
|
|
2723
|
+
return ye({
|
|
2549
2724
|
values: s,
|
|
2550
|
-
timerange:
|
|
2551
|
-
interval:
|
|
2725
|
+
timerange: e,
|
|
2726
|
+
interval: t
|
|
2552
2727
|
});
|
|
2553
2728
|
}
|
|
2554
|
-
function
|
|
2729
|
+
function ye({
|
|
2555
2730
|
values: i,
|
|
2556
|
-
timerange:
|
|
2557
|
-
interval:
|
|
2731
|
+
timerange: e,
|
|
2732
|
+
interval: t = 1
|
|
2558
2733
|
}) {
|
|
2559
2734
|
let s = [];
|
|
2560
|
-
const n =
|
|
2735
|
+
const n = ht({
|
|
2561
2736
|
values: i,
|
|
2562
2737
|
groupBy: "type-stacked"
|
|
2563
|
-
}), a = `${
|
|
2564
|
-
return Object.keys(n).forEach((
|
|
2565
|
-
const d = n[
|
|
2738
|
+
}), a = `${e}s`;
|
|
2739
|
+
return Object.keys(n).forEach((l) => {
|
|
2740
|
+
const d = n[l];
|
|
2566
2741
|
for (let _ = 0; _ < d.length; _++) {
|
|
2567
2742
|
const h = d[_];
|
|
2568
2743
|
if (s.push(h), _ === d.length - 1)
|
|
2569
2744
|
return;
|
|
2570
|
-
const u = h.x,
|
|
2571
|
-
if (!
|
|
2572
|
-
const c =
|
|
2573
|
-
dates: [u,
|
|
2574
|
-
timerange:
|
|
2575
|
-
interval:
|
|
2745
|
+
const u = h.x, m = d[_ + 1].x;
|
|
2746
|
+
if (!ut([u, m], a)) {
|
|
2747
|
+
const c = xe({
|
|
2748
|
+
dates: [u, m],
|
|
2749
|
+
timerange: e,
|
|
2750
|
+
interval: t
|
|
2576
2751
|
});
|
|
2577
2752
|
s = s.concat(
|
|
2578
2753
|
c.map((b) => ({
|
|
@@ -2584,121 +2759,121 @@ function yt({
|
|
|
2584
2759
|
);
|
|
2585
2760
|
}
|
|
2586
2761
|
}
|
|
2587
|
-
}), s.sort((
|
|
2762
|
+
}), s.sort((l, d) => l.x < d.x ? -1 : l.x > d.x ? 1 : 0);
|
|
2588
2763
|
}
|
|
2589
|
-
function
|
|
2764
|
+
function xe({
|
|
2590
2765
|
dates: i,
|
|
2591
|
-
timerange:
|
|
2592
|
-
interval:
|
|
2766
|
+
timerange: e,
|
|
2767
|
+
interval: t = 1
|
|
2593
2768
|
}) {
|
|
2594
|
-
const s = [], n = `${
|
|
2769
|
+
const s = [], n = `${e}s`;
|
|
2595
2770
|
if (i.length === 1)
|
|
2596
2771
|
return i;
|
|
2597
|
-
const a = i.sort((
|
|
2598
|
-
for (let
|
|
2599
|
-
const
|
|
2600
|
-
if (!
|
|
2601
|
-
const _ = T(
|
|
2602
|
-
|
|
2772
|
+
const a = i.sort((o, l) => o < l ? -1 : o > l ? 1 : 0);
|
|
2773
|
+
for (let o = 0; o < a.length - 1; o++) {
|
|
2774
|
+
const l = a[o], d = a[o + 1];
|
|
2775
|
+
if (!ut([l, d], n)) {
|
|
2776
|
+
const _ = T(l, V(n)).add(
|
|
2777
|
+
t,
|
|
2603
2778
|
n
|
|
2604
|
-
), h = T(d,
|
|
2779
|
+
), h = T(d, V(n));
|
|
2605
2780
|
for (; _.isBefore(h); )
|
|
2606
|
-
s.push(_.format(
|
|
2781
|
+
s.push(_.format(V(n))), _.add(t, n);
|
|
2607
2782
|
}
|
|
2608
2783
|
}
|
|
2609
2784
|
return s;
|
|
2610
2785
|
}
|
|
2611
|
-
function
|
|
2786
|
+
function pe({
|
|
2612
2787
|
values: i,
|
|
2613
|
-
timerange:
|
|
2788
|
+
timerange: e
|
|
2614
2789
|
}) {
|
|
2615
|
-
const
|
|
2790
|
+
const t = we({
|
|
2616
2791
|
values: i,
|
|
2617
|
-
timerange:
|
|
2618
|
-
}), s = [], n =
|
|
2619
|
-
values:
|
|
2792
|
+
timerange: e
|
|
2793
|
+
}), s = [], n = ht({
|
|
2794
|
+
values: t,
|
|
2620
2795
|
groupBy: "all"
|
|
2621
2796
|
});
|
|
2622
2797
|
return Object.keys(n).forEach((a) => {
|
|
2623
|
-
const
|
|
2624
|
-
values:
|
|
2625
|
-
operator:
|
|
2798
|
+
const o = n[a], l = o[0].operator === "count" ? "+" : o[0].operator, d = j({
|
|
2799
|
+
values: o.map((_) => _.value),
|
|
2800
|
+
operator: l
|
|
2626
2801
|
});
|
|
2627
2802
|
s.push({
|
|
2628
|
-
...
|
|
2803
|
+
...o[0],
|
|
2629
2804
|
value: d
|
|
2630
2805
|
});
|
|
2631
2806
|
}), s;
|
|
2632
2807
|
}
|
|
2633
|
-
function
|
|
2808
|
+
function we({
|
|
2634
2809
|
values: i,
|
|
2635
|
-
timerange:
|
|
2810
|
+
timerange: e
|
|
2636
2811
|
}) {
|
|
2637
|
-
return i.map((
|
|
2638
|
-
...
|
|
2639
|
-
x:
|
|
2640
|
-
date:
|
|
2641
|
-
timerange:
|
|
2812
|
+
return i.map((t) => ({
|
|
2813
|
+
...t,
|
|
2814
|
+
x: Fe({
|
|
2815
|
+
date: t.x,
|
|
2816
|
+
timerange: e
|
|
2642
2817
|
})
|
|
2643
2818
|
}));
|
|
2644
2819
|
}
|
|
2645
|
-
function
|
|
2820
|
+
function Fe({
|
|
2646
2821
|
date: i,
|
|
2647
|
-
timerange:
|
|
2822
|
+
timerange: e
|
|
2648
2823
|
}) {
|
|
2649
|
-
let
|
|
2650
|
-
const s = T(i,
|
|
2651
|
-
switch (
|
|
2824
|
+
let t = ve(i);
|
|
2825
|
+
const s = T(i, t);
|
|
2826
|
+
switch (e) {
|
|
2652
2827
|
case "hour": {
|
|
2653
|
-
|
|
2828
|
+
t = "YYYY-MM-DD HH:00";
|
|
2654
2829
|
break;
|
|
2655
2830
|
}
|
|
2656
2831
|
case "day": {
|
|
2657
|
-
|
|
2832
|
+
t = "YYYY-MM-DD";
|
|
2658
2833
|
break;
|
|
2659
2834
|
}
|
|
2660
2835
|
case "week": {
|
|
2661
|
-
|
|
2836
|
+
t = "YYYY-WW";
|
|
2662
2837
|
break;
|
|
2663
2838
|
}
|
|
2664
2839
|
case "month": {
|
|
2665
|
-
|
|
2840
|
+
t = "YYYY-MM";
|
|
2666
2841
|
break;
|
|
2667
2842
|
}
|
|
2668
2843
|
case "year": {
|
|
2669
|
-
|
|
2844
|
+
t = "YYYY";
|
|
2670
2845
|
break;
|
|
2671
2846
|
}
|
|
2672
2847
|
}
|
|
2673
|
-
return s.format(
|
|
2848
|
+
return s.format(t);
|
|
2674
2849
|
}
|
|
2675
|
-
function
|
|
2850
|
+
function ve(i) {
|
|
2676
2851
|
return i.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
2677
2852
|
}
|
|
2678
|
-
function
|
|
2679
|
-
let
|
|
2680
|
-
const s =
|
|
2853
|
+
function ut(i, e) {
|
|
2854
|
+
let t = !1;
|
|
2855
|
+
const s = V(e);
|
|
2681
2856
|
if (i.length === 0)
|
|
2682
2857
|
return !1;
|
|
2683
2858
|
if (i.length === 1)
|
|
2684
2859
|
return !0;
|
|
2685
2860
|
for (let n = 0; n < i.length - 1; n++) {
|
|
2686
|
-
const a = T(i[n], s),
|
|
2687
|
-
Math.abs(
|
|
2861
|
+
const a = T(i[n], s), l = T(i[n + 1], s).diff(a, e);
|
|
2862
|
+
Math.abs(l) === 1 ? t = !0 : t = !1;
|
|
2688
2863
|
}
|
|
2689
|
-
return
|
|
2864
|
+
return t;
|
|
2690
2865
|
}
|
|
2691
|
-
function
|
|
2866
|
+
function ht({
|
|
2692
2867
|
values: i,
|
|
2693
|
-
groupBy:
|
|
2868
|
+
groupBy: e
|
|
2694
2869
|
}) {
|
|
2695
|
-
const
|
|
2870
|
+
const t = {};
|
|
2696
2871
|
return i.forEach((s) => {
|
|
2697
|
-
const n = s.x, a = s.type,
|
|
2698
|
-
|
|
2699
|
-
}),
|
|
2872
|
+
const n = s.x, a = s.type, o = s.stacked, l = e === "all" ? `${n}-${a}-${o}` : `${a}-${o}`;
|
|
2873
|
+
t[l] || (t[l] = []), t[l].push(s);
|
|
2874
|
+
}), t;
|
|
2700
2875
|
}
|
|
2701
|
-
function
|
|
2876
|
+
function V(i) {
|
|
2702
2877
|
switch (i) {
|
|
2703
2878
|
case "days":
|
|
2704
2879
|
return "YYYY-MM-DD";
|
|
@@ -2713,7 +2888,7 @@ function E(i) {
|
|
|
2713
2888
|
return "YYYY-MM-DD HH:mm";
|
|
2714
2889
|
}
|
|
2715
2890
|
}
|
|
2716
|
-
const
|
|
2891
|
+
const Ce = {
|
|
2717
2892
|
count: "count",
|
|
2718
2893
|
"+": "sum",
|
|
2719
2894
|
"-": "subtract",
|
|
@@ -2721,58 +2896,58 @@ const Ct = {
|
|
|
2721
2896
|
avg: "average",
|
|
2722
2897
|
min: "min",
|
|
2723
2898
|
max: "max"
|
|
2724
|
-
},
|
|
2899
|
+
}, ke = ({
|
|
2725
2900
|
ooui: i,
|
|
2726
|
-
values:
|
|
2727
|
-
fields:
|
|
2901
|
+
values: e,
|
|
2902
|
+
fields: t,
|
|
2728
2903
|
options: s
|
|
2729
2904
|
}) => {
|
|
2730
|
-
const n =
|
|
2905
|
+
const n = L({
|
|
2731
2906
|
fieldName: i.x.name,
|
|
2732
|
-
values:
|
|
2733
|
-
fields:
|
|
2907
|
+
values: e,
|
|
2908
|
+
fields: t
|
|
2734
2909
|
}), a = [];
|
|
2735
2910
|
i.y.forEach((c) => {
|
|
2736
2911
|
Object.keys(n).forEach((b) => {
|
|
2737
2912
|
const x = n[b].label, y = n[b].entries;
|
|
2738
2913
|
if (c.label) {
|
|
2739
|
-
const v =
|
|
2914
|
+
const v = L({
|
|
2740
2915
|
fieldName: c.label,
|
|
2741
2916
|
values: y,
|
|
2742
|
-
fields:
|
|
2917
|
+
fields: t
|
|
2743
2918
|
});
|
|
2744
|
-
Object.keys(v).forEach((
|
|
2745
|
-
const
|
|
2746
|
-
entries:
|
|
2747
|
-
fields:
|
|
2919
|
+
Object.keys(v).forEach((C) => {
|
|
2920
|
+
const w = v[C].entries, S = v[C].label, gt = R({
|
|
2921
|
+
entries: w,
|
|
2922
|
+
fields: t,
|
|
2748
2923
|
fieldName: c.name
|
|
2749
|
-
}),
|
|
2750
|
-
values:
|
|
2924
|
+
}), mt = j({
|
|
2925
|
+
values: gt,
|
|
2751
2926
|
operator: c.operator
|
|
2752
2927
|
});
|
|
2753
2928
|
a.push({
|
|
2754
2929
|
x: x || !1,
|
|
2755
|
-
value:
|
|
2930
|
+
value: mt,
|
|
2756
2931
|
type: S,
|
|
2757
2932
|
operator: c.operator,
|
|
2758
2933
|
stacked: c.stacked
|
|
2759
2934
|
});
|
|
2760
2935
|
});
|
|
2761
2936
|
} else {
|
|
2762
|
-
const v =
|
|
2937
|
+
const v = R({
|
|
2763
2938
|
entries: y,
|
|
2764
|
-
fields:
|
|
2939
|
+
fields: t,
|
|
2765
2940
|
fieldName: c.name
|
|
2766
|
-
}),
|
|
2941
|
+
}), C = j({
|
|
2767
2942
|
values: v,
|
|
2768
2943
|
operator: c.operator
|
|
2769
2944
|
});
|
|
2770
2945
|
a.push({
|
|
2771
2946
|
x: x || !1,
|
|
2772
|
-
value:
|
|
2773
|
-
type:
|
|
2947
|
+
value: C,
|
|
2948
|
+
type: _t({
|
|
2774
2949
|
yAxis: c,
|
|
2775
|
-
fields:
|
|
2950
|
+
fields: t
|
|
2776
2951
|
}),
|
|
2777
2952
|
operator: c.operator,
|
|
2778
2953
|
stacked: c.stacked
|
|
@@ -2780,200 +2955,201 @@ const Ct = {
|
|
|
2780
2955
|
}
|
|
2781
2956
|
});
|
|
2782
2957
|
});
|
|
2783
|
-
const
|
|
2958
|
+
const o = i.y.some((c) => c.label !== void 0), l = i.y.some((c) => c.stacked !== void 0);
|
|
2784
2959
|
let _ = [...a.sort((c, b) => c.x < b.x ? -1 : c.x > b.x ? 1 : 0)];
|
|
2785
|
-
|
|
2960
|
+
l && i.y.filter((c) => c.stacked !== void 0).length > 1 && (_ = _.map((c) => ({ ...c, type: `${c.type} - ${c.stacked}` })));
|
|
2786
2961
|
let h = [..._];
|
|
2787
2962
|
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(
|
|
2788
2963
|
(c) => c.x !== !1
|
|
2789
2964
|
));
|
|
2790
2965
|
let u = h;
|
|
2791
|
-
i.timerange ? u =
|
|
2966
|
+
i.timerange ? u = be({
|
|
2792
2967
|
values: u,
|
|
2793
2968
|
timerange: i.timerange,
|
|
2794
2969
|
interval: i.interval
|
|
2795
2970
|
}) : i.type == "pie" && (u = h.sort((c, b) => b.value - c.value));
|
|
2796
|
-
const
|
|
2971
|
+
const m = {
|
|
2797
2972
|
data: u,
|
|
2798
|
-
isGroup:
|
|
2799
|
-
isStack:
|
|
2973
|
+
isGroup: l || o,
|
|
2974
|
+
isStack: l
|
|
2800
2975
|
};
|
|
2801
|
-
if (i.type === "line" && i.y_range && (
|
|
2976
|
+
if (i.type === "line" && i.y_range && (m.yAxisOpts = {
|
|
2802
2977
|
mode: i.y_range
|
|
2803
2978
|
}, i.y_range === "auto")) {
|
|
2804
|
-
const { min: c, max: b } =
|
|
2805
|
-
|
|
2979
|
+
const { min: c, max: b } = ft(u);
|
|
2980
|
+
m.yAxisOpts.valueOpts = { min: c, max: b };
|
|
2806
2981
|
}
|
|
2807
|
-
return
|
|
2982
|
+
return m;
|
|
2808
2983
|
};
|
|
2809
|
-
function
|
|
2984
|
+
function R({
|
|
2810
2985
|
entries: i,
|
|
2811
|
-
fieldName:
|
|
2812
|
-
fields:
|
|
2986
|
+
fieldName: e,
|
|
2987
|
+
fields: t
|
|
2813
2988
|
}) {
|
|
2814
|
-
return i.map((s) =>
|
|
2815
|
-
fieldName:
|
|
2989
|
+
return i.map((s) => H({
|
|
2990
|
+
fieldName: e,
|
|
2816
2991
|
values: s,
|
|
2817
|
-
fields:
|
|
2992
|
+
fields: t
|
|
2818
2993
|
})).map(({ value: s, label: n }) => n);
|
|
2819
2994
|
}
|
|
2820
|
-
function
|
|
2995
|
+
function j({
|
|
2821
2996
|
operator: i,
|
|
2822
|
-
values:
|
|
2997
|
+
values: e
|
|
2823
2998
|
}) {
|
|
2824
2999
|
switch (i) {
|
|
2825
3000
|
case "count":
|
|
2826
|
-
return
|
|
3001
|
+
return e.length;
|
|
2827
3002
|
case "+":
|
|
2828
|
-
return
|
|
2829
|
-
|
|
2830
|
-
return
|
|
3003
|
+
return E(
|
|
3004
|
+
e.reduce(function(t, s) {
|
|
3005
|
+
return t + s;
|
|
2831
3006
|
})
|
|
2832
3007
|
);
|
|
2833
3008
|
case "-":
|
|
2834
|
-
return
|
|
2835
|
-
|
|
2836
|
-
return
|
|
3009
|
+
return E(
|
|
3010
|
+
e.reduce(function(t, s) {
|
|
3011
|
+
return t - s;
|
|
2837
3012
|
})
|
|
2838
3013
|
);
|
|
2839
3014
|
case "*":
|
|
2840
|
-
return
|
|
2841
|
-
|
|
2842
|
-
return
|
|
3015
|
+
return E(
|
|
3016
|
+
e.reduce(function(t, s) {
|
|
3017
|
+
return t * s;
|
|
2843
3018
|
})
|
|
2844
3019
|
);
|
|
2845
3020
|
case "avg": {
|
|
2846
|
-
const s =
|
|
2847
|
-
return
|
|
3021
|
+
const s = e.reduce((n, a) => n + a, 0) / e.length || 0;
|
|
3022
|
+
return E(s);
|
|
2848
3023
|
}
|
|
2849
3024
|
case "min":
|
|
2850
|
-
return Math.min(...
|
|
3025
|
+
return Math.min(...e);
|
|
2851
3026
|
case "max":
|
|
2852
|
-
return Math.max(...
|
|
3027
|
+
return Math.max(...e);
|
|
2853
3028
|
}
|
|
2854
3029
|
}
|
|
2855
|
-
function
|
|
3030
|
+
function E(i) {
|
|
2856
3031
|
return Math.round((i + Number.EPSILON) * 100) / 100;
|
|
2857
3032
|
}
|
|
2858
|
-
function
|
|
3033
|
+
function L({
|
|
2859
3034
|
fieldName: i,
|
|
2860
|
-
fields:
|
|
2861
|
-
values:
|
|
3035
|
+
fields: e,
|
|
3036
|
+
values: t
|
|
2862
3037
|
}) {
|
|
2863
3038
|
const s = {};
|
|
2864
|
-
return
|
|
2865
|
-
const { value: a, label:
|
|
2866
|
-
fields:
|
|
3039
|
+
return t.forEach((n) => {
|
|
3040
|
+
const { value: a, label: o } = H({
|
|
3041
|
+
fields: e,
|
|
2867
3042
|
values: n,
|
|
2868
3043
|
fieldName: i
|
|
2869
3044
|
});
|
|
2870
|
-
s[a] || (s[a] = { label:
|
|
3045
|
+
s[a] || (s[a] = { label: o, entries: [] }), s[a].entries.push(n);
|
|
2871
3046
|
}), s;
|
|
2872
3047
|
}
|
|
2873
|
-
function
|
|
2874
|
-
let
|
|
2875
|
-
return Object.keys(i).forEach((
|
|
2876
|
-
const s = i[
|
|
2877
|
-
|
|
2878
|
-
}),
|
|
3048
|
+
function Pe(i) {
|
|
3049
|
+
let e = [];
|
|
3050
|
+
return Object.keys(i).forEach((t) => {
|
|
3051
|
+
const s = i[t];
|
|
3052
|
+
e = e.concat(s.entries);
|
|
3053
|
+
}), e;
|
|
2879
3054
|
}
|
|
2880
|
-
function
|
|
3055
|
+
function _t({
|
|
2881
3056
|
yAxis: i,
|
|
2882
|
-
fields:
|
|
3057
|
+
fields: e
|
|
2883
3058
|
}) {
|
|
2884
|
-
const
|
|
2885
|
-
return
|
|
3059
|
+
const t = e[i.name];
|
|
3060
|
+
return t != null && t.string ? t.string : i.name;
|
|
2886
3061
|
}
|
|
2887
|
-
function
|
|
3062
|
+
function ft(i, e = 0.1) {
|
|
2888
3063
|
if (i.length === 0)
|
|
2889
3064
|
throw new Error("The values array cannot be empty.");
|
|
2890
|
-
const
|
|
3065
|
+
const t = i.map((o) => o.value), s = Math.min(...t), n = Math.max(...t), a = (n - s) * e;
|
|
2891
3066
|
return {
|
|
2892
3067
|
min: s - a,
|
|
2893
3068
|
max: n + a
|
|
2894
3069
|
};
|
|
2895
3070
|
}
|
|
2896
|
-
const
|
|
3071
|
+
const Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2897
3072
|
__proto__: null,
|
|
2898
|
-
getAllObjectsInGroupedValues:
|
|
2899
|
-
getMinMax:
|
|
2900
|
-
getValueForOperator:
|
|
2901
|
-
getValuesForYField:
|
|
2902
|
-
getValuesGroupedByField:
|
|
2903
|
-
getYAxisFieldname:
|
|
2904
|
-
labelsForOperator:
|
|
2905
|
-
processGraphData:
|
|
3073
|
+
getAllObjectsInGroupedValues: Pe,
|
|
3074
|
+
getMinMax: ft,
|
|
3075
|
+
getValueForOperator: j,
|
|
3076
|
+
getValuesForYField: R,
|
|
3077
|
+
getValuesGroupedByField: L,
|
|
3078
|
+
getYAxisFieldname: _t,
|
|
3079
|
+
labelsForOperator: Ce,
|
|
3080
|
+
processGraphData: ke
|
|
2906
3081
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2907
3082
|
export {
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
3083
|
+
Tt as ActionButtons,
|
|
3084
|
+
Xt as Alert,
|
|
3085
|
+
kt as Avatar,
|
|
3086
|
+
Bt as Binary,
|
|
3087
|
+
it as Boolean,
|
|
3088
|
+
G as Button,
|
|
3089
|
+
Wt as ButtonGroup,
|
|
3090
|
+
se as Card,
|
|
3091
|
+
te as Carousel,
|
|
2917
3092
|
A as Char,
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
3093
|
+
nt as CodeEditor,
|
|
3094
|
+
ee as ColorPicker,
|
|
3095
|
+
Ut as Comments,
|
|
3096
|
+
Y as Container,
|
|
3097
|
+
F as ContainerWidget,
|
|
3098
|
+
De as Dashboard,
|
|
3099
|
+
de as DashboardItem,
|
|
3100
|
+
jt as Date,
|
|
3101
|
+
Nt as DateTime,
|
|
3102
|
+
Zt as Email,
|
|
2928
3103
|
f as Field,
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
3104
|
+
q as Float,
|
|
3105
|
+
Et as FloatTime,
|
|
3106
|
+
Se as Form,
|
|
3107
|
+
ot as Graph,
|
|
3108
|
+
dt as GraphAxis,
|
|
2934
3109
|
M as GraphChart,
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
3110
|
+
ct as GraphIndicator,
|
|
3111
|
+
ue as GraphIndicatorField,
|
|
3112
|
+
ge as GraphXAxis,
|
|
3113
|
+
fe as GraphYAxis,
|
|
3114
|
+
Ot as Group,
|
|
3115
|
+
Vt as HTMLPreview,
|
|
3116
|
+
At as Image,
|
|
3117
|
+
Gt as Indicator,
|
|
3118
|
+
St as Integer,
|
|
3119
|
+
K as JSONField,
|
|
3120
|
+
Ve as Kanban,
|
|
3121
|
+
et as Label,
|
|
3122
|
+
It as Many2one,
|
|
3123
|
+
zt as Markdown,
|
|
3124
|
+
rt as MultiCheckbox,
|
|
3125
|
+
tt as NewLine,
|
|
3126
|
+
B as Notebook,
|
|
3127
|
+
st as One2many,
|
|
3128
|
+
Pt as Page,
|
|
3129
|
+
Yt as ProgressBar,
|
|
3130
|
+
ie as QRCode,
|
|
3131
|
+
Jt as Radio,
|
|
3132
|
+
Mt as Reference,
|
|
3133
|
+
ce as SearchFieldTypes,
|
|
3134
|
+
Ye as SearchFilter,
|
|
2959
3135
|
z as Selection,
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
$
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
3136
|
+
Dt as Separator,
|
|
3137
|
+
N as Spinner,
|
|
3138
|
+
Qt as Steps,
|
|
3139
|
+
Ht as Switch,
|
|
3140
|
+
qt as Tag,
|
|
3141
|
+
$t as Tags,
|
|
3142
|
+
$ as Text,
|
|
3143
|
+
Kt as Time,
|
|
3144
|
+
Lt as Timeline,
|
|
3145
|
+
Ee as Tree,
|
|
3146
|
+
k as Widget,
|
|
3147
|
+
Be as graphFieldUtils,
|
|
3148
|
+
Ae as graphProcessor,
|
|
3149
|
+
J as parseContext,
|
|
3150
|
+
ze as parseContextFields,
|
|
3151
|
+
Ne as parseDomainFields,
|
|
3152
|
+
Me as parseGraph,
|
|
3153
|
+
je as transformDomainForChildWidget
|
|
2978
3154
|
};
|
|
2979
3155
|
//# sourceMappingURL=ooui.es.js.map
|