@gisce/ooui 0.19.5-rc.0 → 0.19.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SearchFilter.d.ts +1 -0
- package/dist/SearchFilter.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/ooui.es.js +71 -56
- package/dist/ooui.es.js.map +1 -1
- package/dist/ooui.umd.js +5 -5
- package/dist/ooui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/SearchFilter.ts +18 -1
- package/src/index.ts +2 -1
- package/src/spec/SearchFilter.spec.ts +13 -0
package/dist/SearchFilter.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import WidgetFactory from "./WidgetFactory";
|
|
|
2
2
|
import Container from "./Container";
|
|
3
3
|
import Widget from "./Widget";
|
|
4
4
|
import Form from "./Form";
|
|
5
|
+
export declare const SearchFieldTypes: any;
|
|
5
6
|
declare class SearchFilter {
|
|
6
7
|
/**
|
|
7
8
|
* Object containing the specific fields for primary and secondary search fields
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchFilter.d.ts","sourceRoot":"","sources":["SearchFilter.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,cAAM,YAAY;IAChB;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC;IACnB,IAAI,YAAY,QAEf;IAED;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,MAAM,QAET;IAED,sBAAsB,EAAE,SAAS,CAAC;IAClC,IAAI,qBAAqB,IAAI,SAAS,CAErC;IAED,wBAAwB,EAAE,SAAS,CAAC;IACpC,IAAI,uBAAuB,IAAI,SAAS,CAEvC;IAED;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,OAAO,WAEV;gBAGC,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,MAAU;IASrB,KAAK;IAyBL,WAAW,CACT,YAAY,EAAE,MAAM,EAAE,EACtB,aAAa,EAAE,aAAa,EAC5B,IAAI,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"SearchFilter.d.ts","sourceRoot":"","sources":["SearchFilter.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,eAAO,MAAM,gBAAgB,EAAE,GAY9B,CAAC;AAEF,cAAM,YAAY;IAChB;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC;IACnB,IAAI,YAAY,QAEf;IAED;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,MAAM,QAET;IAED,sBAAsB,EAAE,SAAS,CAAC;IAClC,IAAI,qBAAqB,IAAI,SAAS,CAErC;IAED,wBAAwB,EAAE,SAAS,CAAC;IACpC,IAAI,uBAAuB,IAAI,SAAS,CAEvC;IAED;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,OAAO,WAEV;gBAGC,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,MAAU;IASrB,KAAK;IAyBL,WAAW,CACT,YAAY,EAAE,MAAM,EAAE,EACtB,aAAa,EAAE,aAAa,EAC5B,IAAI,EAAE,IAAI;IAiBZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAGpC;AAED,eAAe,YAAY,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import DateTime from "./DateTime";
|
|
|
18
18
|
import Many2many from "./Many2many";
|
|
19
19
|
import Markdown from "./Markdown";
|
|
20
20
|
import One2many from "./One2many";
|
|
21
|
-
import SearchFilter from "./SearchFilter";
|
|
21
|
+
import SearchFilter, { SearchFieldTypes } from "./SearchFilter";
|
|
22
22
|
import Text from "./Text";
|
|
23
23
|
import Label from "./Label";
|
|
24
24
|
import Notebook from "./Notebook";
|
|
@@ -47,5 +47,5 @@ import { Graph, GraphAxis, GraphIndicator, GraphIndicatorField, GraphChart, pars
|
|
|
47
47
|
import type { GraphType, Operator } from "./Graph";
|
|
48
48
|
import * as graphProcessor from "./Graph/processor/graphProcessor";
|
|
49
49
|
import * as graphFieldUtils from "./Graph/processor/fieldUtils";
|
|
50
|
-
export { Char, Selection, Many2one, Field, Widget, Form, Tree, NewLine, Boolean, One2many, Integer, Float, FloatTime, Date, DateTime, Many2many, SearchFilter, Container, ContainerWidget, Text, ProgressBar, Notebook, Group, Page, Label, Separator, Button, ButtonGroup, Reference, Binary, Image, parseContext, transformDomainForChildWidget, Timeline, Indicator, Dashboard, DashboardItem, Graph, GraphAxis, GraphYAxis, GraphXAxis, GraphIndicator, GraphChart, GraphType, parseGraph, Operator, GraphIndicatorField, graphProcessor, graphFieldUtils, Tags, Tag, MultiCheckbox, Markdown, Radio, Switch, Steps, CodeEditor, };
|
|
50
|
+
export { Char, Selection, Many2one, Field, Widget, Form, Tree, NewLine, Boolean, One2many, Integer, Float, FloatTime, Date, DateTime, Many2many, SearchFilter, Container, ContainerWidget, Text, ProgressBar, Notebook, Group, Page, Label, Separator, Button, ButtonGroup, Reference, Binary, Image, parseContext, transformDomainForChildWidget, Timeline, Indicator, Dashboard, DashboardItem, Graph, GraphAxis, GraphYAxis, GraphXAxis, GraphIndicator, GraphChart, GraphType, parseGraph, Operator, GraphIndicatorField, graphProcessor, graphFieldUtils, Tags, Tag, MultiCheckbox, Markdown, Radio, Switch, Steps, CodeEditor, SearchFieldTypes, };
|
|
51
51
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,YAAY,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,SAA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/dist/ooui.es.js
CHANGED
|
@@ -4202,7 +4202,7 @@ class us {
|
|
|
4202
4202
|
function vr(t) {
|
|
4203
4203
|
return t ? Array.isArray(t) && t.length > 0 ? !0 : typeof t == "string" && t !== "" && t !== "[]" : !1;
|
|
4204
4204
|
}
|
|
4205
|
-
class
|
|
4205
|
+
class Ds {
|
|
4206
4206
|
constructor(e) {
|
|
4207
4207
|
this._columns = [], this._string = null, this._type = "tree", this._colors = null, this._editable = null, this._fields = e;
|
|
4208
4208
|
}
|
|
@@ -4258,7 +4258,20 @@ class Os {
|
|
|
4258
4258
|
});
|
|
4259
4259
|
}
|
|
4260
4260
|
}
|
|
4261
|
-
|
|
4261
|
+
const fs = {
|
|
4262
|
+
text: "text",
|
|
4263
|
+
many2one: "many2one",
|
|
4264
|
+
char: "char",
|
|
4265
|
+
boolean: "boolean",
|
|
4266
|
+
selection: "selection",
|
|
4267
|
+
float: "float",
|
|
4268
|
+
float_time: "float_time",
|
|
4269
|
+
progressbar: "progressbar",
|
|
4270
|
+
integer: "integer",
|
|
4271
|
+
date: "date",
|
|
4272
|
+
datetime: "datetime"
|
|
4273
|
+
};
|
|
4274
|
+
class Ms {
|
|
4262
4275
|
get searchFields() {
|
|
4263
4276
|
return this._searchFields;
|
|
4264
4277
|
}
|
|
@@ -4300,15 +4313,16 @@ class Ds {
|
|
|
4300
4313
|
...this.fields[n],
|
|
4301
4314
|
name: n,
|
|
4302
4315
|
colspan: 2
|
|
4303
|
-
}, { type: f } = u
|
|
4304
|
-
|
|
4316
|
+
}, { type: f } = u;
|
|
4317
|
+
let g = (a = (s = i.findById(n)) == null ? void 0 : s.type) != null ? a : f;
|
|
4318
|
+
return fs[g] === void 0 && (g = f), r.createWidget(g, u);
|
|
4305
4319
|
});
|
|
4306
4320
|
}
|
|
4307
4321
|
findById(e) {
|
|
4308
4322
|
return this.advancedSearchContainer.findById(e);
|
|
4309
4323
|
}
|
|
4310
4324
|
}
|
|
4311
|
-
const
|
|
4325
|
+
const ks = ({
|
|
4312
4326
|
domain: t,
|
|
4313
4327
|
widgetFieldName: e
|
|
4314
4328
|
}) => {
|
|
@@ -4324,7 +4338,7 @@ const Ms = ({
|
|
|
4324
4338
|
)) : (u = n, f = "id"), u === e && r.push([f, s, a]);
|
|
4325
4339
|
}), r;
|
|
4326
4340
|
};
|
|
4327
|
-
class
|
|
4341
|
+
class cs {
|
|
4328
4342
|
constructor(e) {
|
|
4329
4343
|
this._action_id = null, this._position = null, e.action_id && (this._action_id = e.action_id), e.position && (this._position = e.position);
|
|
4330
4344
|
}
|
|
@@ -4335,14 +4349,14 @@ class fs {
|
|
|
4335
4349
|
return this._position;
|
|
4336
4350
|
}
|
|
4337
4351
|
}
|
|
4338
|
-
class
|
|
4352
|
+
class Ps {
|
|
4339
4353
|
constructor(e) {
|
|
4340
4354
|
this._string = null, this._items = [];
|
|
4341
4355
|
const r = rt(e).filter((n) => n.tagName === "dashboard")[0];
|
|
4342
4356
|
this._string = r.attributes.string || null;
|
|
4343
4357
|
const { children: i } = r;
|
|
4344
4358
|
i.forEach((n) => {
|
|
4345
|
-
n.tagName === "dashboard_item" && this._items.push(new
|
|
4359
|
+
n.tagName === "dashboard_item" && this._items.push(new cs(n.attributes));
|
|
4346
4360
|
});
|
|
4347
4361
|
}
|
|
4348
4362
|
get string() {
|
|
@@ -4366,10 +4380,10 @@ class bi {
|
|
|
4366
4380
|
return this._timerange;
|
|
4367
4381
|
}
|
|
4368
4382
|
}
|
|
4369
|
-
const
|
|
4383
|
+
const hs = (t) => t === 1 || t === "1" || t === !0 || t === "True";
|
|
4370
4384
|
class mi extends bi {
|
|
4371
4385
|
constructor(e, r) {
|
|
4372
|
-
super(r), this._color = null, this._icon = null, this._totalDomain = null, this._showPercent = !1, this._suffix = null, this._type = e, this._color = r.attributes.color || null, this._color && (this._color = $(this._color)), this._icon = r.attributes.icon || null, this._icon && (this._icon = $(this._icon)), this._suffix = r.attributes.suffix || null, this._totalDomain = r.attributes.totalDomain || null, this._showPercent =
|
|
4386
|
+
super(r), this._color = null, this._icon = null, this._totalDomain = null, this._showPercent = !1, this._suffix = null, this._type = e, this._color = r.attributes.color || null, this._color && (this._color = $(this._color)), this._icon = r.attributes.icon || null, this._icon && (this._icon = $(this._icon)), this._suffix = r.attributes.suffix || null, this._totalDomain = r.attributes.totalDomain || null, this._showPercent = hs(r.attributes.showPercent);
|
|
4373
4387
|
}
|
|
4374
4388
|
get color() {
|
|
4375
4389
|
return this._color;
|
|
@@ -4387,7 +4401,7 @@ class mi extends bi {
|
|
|
4387
4401
|
return this._suffix;
|
|
4388
4402
|
}
|
|
4389
4403
|
}
|
|
4390
|
-
class
|
|
4404
|
+
class ds extends mi {
|
|
4391
4405
|
constructor(e, r) {
|
|
4392
4406
|
super(e, r);
|
|
4393
4407
|
const { children: i } = r;
|
|
@@ -4405,7 +4419,7 @@ class hs extends mi {
|
|
|
4405
4419
|
return this._operator;
|
|
4406
4420
|
}
|
|
4407
4421
|
}
|
|
4408
|
-
const
|
|
4422
|
+
const gs = (t) => {
|
|
4409
4423
|
const e = [];
|
|
4410
4424
|
let r;
|
|
4411
4425
|
if (t.forEach((i) => {
|
|
@@ -4415,10 +4429,10 @@ const ds = (t) => {
|
|
|
4415
4429
|
throw new Error(`Field ${a} doesn't have an axis`);
|
|
4416
4430
|
if (!a)
|
|
4417
4431
|
throw new Error("Missing name attribute for field");
|
|
4418
|
-
n === "x" ? r = new
|
|
4432
|
+
n === "x" ? r = new ys({
|
|
4419
4433
|
name: a
|
|
4420
4434
|
}) : n === "y" && e.push(
|
|
4421
|
-
new
|
|
4435
|
+
new ps({
|
|
4422
4436
|
name: a,
|
|
4423
4437
|
operator: s,
|
|
4424
4438
|
label: u,
|
|
@@ -4438,7 +4452,7 @@ const ds = (t) => {
|
|
|
4438
4452
|
class Dt extends bi {
|
|
4439
4453
|
constructor(e, r) {
|
|
4440
4454
|
super(r), this._type = e;
|
|
4441
|
-
const i =
|
|
4455
|
+
const i = gs(r.children);
|
|
4442
4456
|
this._x = i.x, this._y = i.y;
|
|
4443
4457
|
}
|
|
4444
4458
|
get x() {
|
|
@@ -4448,17 +4462,17 @@ class Dt extends bi {
|
|
|
4448
4462
|
return this._y;
|
|
4449
4463
|
}
|
|
4450
4464
|
}
|
|
4451
|
-
const
|
|
4465
|
+
const _s = {
|
|
4452
4466
|
indicator: mi,
|
|
4453
|
-
indicatorField:
|
|
4467
|
+
indicatorField: ds,
|
|
4454
4468
|
line: Dt,
|
|
4455
4469
|
bar: Dt,
|
|
4456
4470
|
pie: Dt
|
|
4457
|
-
},
|
|
4471
|
+
}, Ns = (t) => {
|
|
4458
4472
|
const e = rt(t).filter((n) => n.tagName === "graph")[0], r = e.attributes.type;
|
|
4459
4473
|
if (!r)
|
|
4460
4474
|
throw new Error(`${r} is not a valid graph`);
|
|
4461
|
-
const i =
|
|
4475
|
+
const i = _s[r];
|
|
4462
4476
|
if (!i)
|
|
4463
4477
|
throw new Error(`${r} not found as a GraphModel`);
|
|
4464
4478
|
return new i(r, e);
|
|
@@ -4474,7 +4488,7 @@ class vi {
|
|
|
4474
4488
|
this._name = e, this._axis = r;
|
|
4475
4489
|
}
|
|
4476
4490
|
}
|
|
4477
|
-
class
|
|
4491
|
+
class ps extends vi {
|
|
4478
4492
|
constructor({
|
|
4479
4493
|
name: e,
|
|
4480
4494
|
operator: r,
|
|
@@ -4493,12 +4507,12 @@ class _s extends vi {
|
|
|
4493
4507
|
return this._stacked;
|
|
4494
4508
|
}
|
|
4495
4509
|
}
|
|
4496
|
-
class
|
|
4510
|
+
class ys extends vi {
|
|
4497
4511
|
constructor({ name: e }) {
|
|
4498
4512
|
super({ name: e, axis: "x" });
|
|
4499
4513
|
}
|
|
4500
4514
|
}
|
|
4501
|
-
const
|
|
4515
|
+
const ws = ({ ooui: t }) => {
|
|
4502
4516
|
const r = [t.x.name];
|
|
4503
4517
|
return t.y ? (t.y.forEach((i) => {
|
|
4504
4518
|
i.operator !== "count" && !r.includes(i.name) && r.push(i.name), i.label && !r.includes(i.label) && r.push(i.label);
|
|
@@ -4520,25 +4534,25 @@ function er({
|
|
|
4520
4534
|
}
|
|
4521
4535
|
return { value: n, label: n };
|
|
4522
4536
|
}
|
|
4523
|
-
const
|
|
4537
|
+
const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4524
4538
|
__proto__: null,
|
|
4525
|
-
getFieldsToRetrieve:
|
|
4539
|
+
getFieldsToRetrieve: ws,
|
|
4526
4540
|
getValueAndLabelForField: er
|
|
4527
4541
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4528
|
-
function
|
|
4542
|
+
function bs({
|
|
4529
4543
|
values: t,
|
|
4530
4544
|
timerange: e
|
|
4531
4545
|
}) {
|
|
4532
|
-
const r =
|
|
4546
|
+
const r = Es({
|
|
4533
4547
|
values: t,
|
|
4534
4548
|
timerange: e
|
|
4535
4549
|
});
|
|
4536
|
-
return
|
|
4550
|
+
return ms({
|
|
4537
4551
|
values: r,
|
|
4538
4552
|
timerange: e
|
|
4539
4553
|
});
|
|
4540
4554
|
}
|
|
4541
|
-
function
|
|
4555
|
+
function ms({
|
|
4542
4556
|
values: t,
|
|
4543
4557
|
timerange: e
|
|
4544
4558
|
}) {
|
|
@@ -4555,7 +4569,7 @@ function bs({
|
|
|
4555
4569
|
return;
|
|
4556
4570
|
const b = g.x, w = u[f + 1].x;
|
|
4557
4571
|
if (!Ei([b, w], n)) {
|
|
4558
|
-
const _ =
|
|
4572
|
+
const _ = vs({
|
|
4559
4573
|
dates: [b, w],
|
|
4560
4574
|
timerange: e
|
|
4561
4575
|
});
|
|
@@ -4571,7 +4585,7 @@ function bs({
|
|
|
4571
4585
|
}
|
|
4572
4586
|
}), r.sort((a, u) => a.x < u.x ? -1 : a.x > u.x ? 1 : 0);
|
|
4573
4587
|
}
|
|
4574
|
-
function
|
|
4588
|
+
function vs({
|
|
4575
4589
|
dates: t,
|
|
4576
4590
|
timerange: e
|
|
4577
4591
|
}) {
|
|
@@ -4589,11 +4603,11 @@ function ms({
|
|
|
4589
4603
|
}
|
|
4590
4604
|
return r;
|
|
4591
4605
|
}
|
|
4592
|
-
function
|
|
4606
|
+
function Es({
|
|
4593
4607
|
values: t,
|
|
4594
4608
|
timerange: e
|
|
4595
4609
|
}) {
|
|
4596
|
-
const r =
|
|
4610
|
+
const r = xs({
|
|
4597
4611
|
values: t,
|
|
4598
4612
|
timerange: e
|
|
4599
4613
|
});
|
|
@@ -4613,23 +4627,23 @@ function vs({
|
|
|
4613
4627
|
});
|
|
4614
4628
|
}), i;
|
|
4615
4629
|
}
|
|
4616
|
-
function
|
|
4630
|
+
function xs({
|
|
4617
4631
|
values: t,
|
|
4618
4632
|
timerange: e
|
|
4619
4633
|
}) {
|
|
4620
4634
|
return t.map((r) => ({
|
|
4621
4635
|
...r,
|
|
4622
|
-
x:
|
|
4636
|
+
x: Rs({
|
|
4623
4637
|
date: r.x,
|
|
4624
4638
|
timerange: e
|
|
4625
4639
|
})
|
|
4626
4640
|
}));
|
|
4627
4641
|
}
|
|
4628
|
-
function
|
|
4642
|
+
function Rs({
|
|
4629
4643
|
date: t,
|
|
4630
4644
|
timerange: e
|
|
4631
4645
|
}) {
|
|
4632
|
-
let r =
|
|
4646
|
+
let r = Ss(t);
|
|
4633
4647
|
const i = Me(t, r);
|
|
4634
4648
|
switch (e) {
|
|
4635
4649
|
case "hour": {
|
|
@@ -4655,7 +4669,7 @@ function xs({
|
|
|
4655
4669
|
}
|
|
4656
4670
|
return i.format(r);
|
|
4657
4671
|
}
|
|
4658
|
-
function
|
|
4672
|
+
function Ss(t) {
|
|
4659
4673
|
return t.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
4660
4674
|
}
|
|
4661
4675
|
function Ei(t, e) {
|
|
@@ -4696,7 +4710,7 @@ function Ge(t) {
|
|
|
4696
4710
|
return "YYYY";
|
|
4697
4711
|
}
|
|
4698
4712
|
}
|
|
4699
|
-
const
|
|
4713
|
+
const Ts = {
|
|
4700
4714
|
count: "count",
|
|
4701
4715
|
"+": "sum",
|
|
4702
4716
|
"-": "subtract",
|
|
@@ -4704,7 +4718,7 @@ const Ss = {
|
|
|
4704
4718
|
avg: "average",
|
|
4705
4719
|
min: "min",
|
|
4706
4720
|
max: "max"
|
|
4707
|
-
},
|
|
4721
|
+
}, Cs = ({
|
|
4708
4722
|
ooui: t,
|
|
4709
4723
|
values: e,
|
|
4710
4724
|
fields: r,
|
|
@@ -4771,7 +4785,7 @@ const Ss = {
|
|
|
4771
4785
|
(_) => _.x !== !1
|
|
4772
4786
|
));
|
|
4773
4787
|
let w = b;
|
|
4774
|
-
return t.timerange ? w =
|
|
4788
|
+
return t.timerange ? w = bs({
|
|
4775
4789
|
values: w,
|
|
4776
4790
|
timerange: t.timerange
|
|
4777
4791
|
}) : t.type == "pie" && (w = b.sort((_, m) => m.value - _.value)), {
|
|
@@ -4844,7 +4858,7 @@ function Lt({
|
|
|
4844
4858
|
i[s] || (i[s] = { label: a, entries: [] }), i[s].entries.push(n);
|
|
4845
4859
|
}), i;
|
|
4846
4860
|
}
|
|
4847
|
-
function
|
|
4861
|
+
function As(t) {
|
|
4848
4862
|
let e = [];
|
|
4849
4863
|
return Object.keys(t).forEach((r) => {
|
|
4850
4864
|
const i = t[r];
|
|
@@ -4858,14 +4872,14 @@ function Ri({
|
|
|
4858
4872
|
const r = e[t.name];
|
|
4859
4873
|
return r && r.string ? r.string : t.name;
|
|
4860
4874
|
}
|
|
4861
|
-
const
|
|
4875
|
+
const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4862
4876
|
__proto__: null,
|
|
4863
|
-
labelsForOperator:
|
|
4864
|
-
processGraphData:
|
|
4877
|
+
labelsForOperator: Ts,
|
|
4878
|
+
processGraphData: Cs,
|
|
4865
4879
|
getValuesForYField: Bt,
|
|
4866
4880
|
getValueForOperator: tt,
|
|
4867
4881
|
getValuesGroupedByField: Lt,
|
|
4868
|
-
getAllObjectsInGroupedValues:
|
|
4882
|
+
getAllObjectsInGroupedValues: As,
|
|
4869
4883
|
getYAxisFieldname: Ri
|
|
4870
4884
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4871
4885
|
export {
|
|
@@ -4877,8 +4891,8 @@ export {
|
|
|
4877
4891
|
en as CodeEditor,
|
|
4878
4892
|
Je as Container,
|
|
4879
4893
|
Ce as ContainerWidget,
|
|
4880
|
-
|
|
4881
|
-
|
|
4894
|
+
Ps as Dashboard,
|
|
4895
|
+
cs as DashboardItem,
|
|
4882
4896
|
Ui as Date,
|
|
4883
4897
|
Wi as DateTime,
|
|
4884
4898
|
W as Field,
|
|
@@ -4889,9 +4903,9 @@ export {
|
|
|
4889
4903
|
vi as GraphAxis,
|
|
4890
4904
|
Dt as GraphChart,
|
|
4891
4905
|
mi as GraphIndicator,
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4906
|
+
ds as GraphIndicatorField,
|
|
4907
|
+
ys as GraphXAxis,
|
|
4908
|
+
ps as GraphYAxis,
|
|
4895
4909
|
Di as Group,
|
|
4896
4910
|
Vi as Image,
|
|
4897
4911
|
Gi as Indicator,
|
|
@@ -4908,7 +4922,8 @@ export {
|
|
|
4908
4922
|
Li as ProgressBar,
|
|
4909
4923
|
Xi as Radio,
|
|
4910
4924
|
zi as Reference,
|
|
4911
|
-
|
|
4925
|
+
fs as SearchFieldTypes,
|
|
4926
|
+
Ms as SearchFilter,
|
|
4912
4927
|
Pe as Selection,
|
|
4913
4928
|
Yi as Separator,
|
|
4914
4929
|
Zi as Steps,
|
|
@@ -4917,12 +4932,12 @@ export {
|
|
|
4917
4932
|
Ji as Tags,
|
|
4918
4933
|
Ut as Text,
|
|
4919
4934
|
Hi as Timeline,
|
|
4920
|
-
|
|
4935
|
+
Ds as Tree,
|
|
4921
4936
|
Te as Widget,
|
|
4922
|
-
|
|
4923
|
-
|
|
4937
|
+
Is as graphFieldUtils,
|
|
4938
|
+
Bs as graphProcessor,
|
|
4924
4939
|
an as parseContext,
|
|
4925
|
-
|
|
4926
|
-
|
|
4940
|
+
Ns as parseGraph,
|
|
4941
|
+
ks as transformDomainForChildWidget
|
|
4927
4942
|
};
|
|
4928
4943
|
//# sourceMappingURL=ooui.es.js.map
|