@gisce/ooui 2.40.0-alpha.3 → 2.40.0-alpha.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/Graph/GraphIndicator.d.ts +2 -0
- package/dist/Graph/GraphIndicator.d.ts.map +1 -1
- package/dist/Kanban.d.ts +4 -2
- package/dist/Kanban.d.ts.map +1 -1
- package/dist/ooui.es.js +23 -17
- package/dist/ooui.es.js.map +1 -1
- package/package.json +1 -1
- package/src/Graph/GraphIndicator.ts +6 -0
- package/src/Kanban.ts +13 -6
- package/src/spec/Graph.spec.ts +25 -0
- package/src/spec/Kanban.spec.ts +5 -6
|
@@ -9,6 +9,8 @@ export declare class GraphIndicator extends Graph {
|
|
|
9
9
|
get totalDomain(): string | null;
|
|
10
10
|
_showPercent: boolean;
|
|
11
11
|
get showPercent(): boolean;
|
|
12
|
+
_progressbar: boolean;
|
|
13
|
+
get progressbar(): boolean;
|
|
12
14
|
_suffix: string | null;
|
|
13
15
|
get suffix(): string | null;
|
|
14
16
|
constructor(type: GraphType, element: ParsedNode);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphIndicator.d.ts","sourceRoot":"","sources":["../../src/Graph/GraphIndicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAsB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGvE,qBAAa,cAAe,SAAQ,KAAK;IACvC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC7B,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;IAED,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC5B,IAAI,IAAI,IAAI,MAAM,GAAG,IAAI,CAExB;IAED,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;IACnC,IAAI,WAAW,IAAI,MAAM,GAAG,IAAI,CAE/B;IAED,YAAY,EAAE,OAAO,CAAS;IAC9B,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,IAAI,MAAM,IAAI,MAAM,GAAG,IAAI,CAE1B;gBAEW,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU;
|
|
1
|
+
{"version":3,"file":"GraphIndicator.d.ts","sourceRoot":"","sources":["../../src/Graph/GraphIndicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAsB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGvE,qBAAa,cAAe,SAAQ,KAAK;IACvC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC7B,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;IAED,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC5B,IAAI,IAAI,IAAI,MAAM,GAAG,IAAI,CAExB;IAED,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;IACnC,IAAI,WAAW,IAAI,MAAM,GAAG,IAAI,CAE/B;IAED,YAAY,EAAE,OAAO,CAAS;IAC9B,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,YAAY,EAAE,OAAO,CAAS;IAC9B,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,IAAI,MAAM,IAAI,MAAM,GAAG,IAAI,CAE1B;gBAEW,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU;CAiBjD"}
|
package/dist/Kanban.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ declare class Kanban {
|
|
|
24
24
|
get buttons(): KanbanButton[];
|
|
25
25
|
_string: string | null;
|
|
26
26
|
get string(): string | null;
|
|
27
|
+
_status: string | null;
|
|
28
|
+
get status(): string | null;
|
|
27
29
|
/**
|
|
28
30
|
* Widget type
|
|
29
31
|
*/
|
|
@@ -32,8 +34,8 @@ declare class Kanban {
|
|
|
32
34
|
/**
|
|
33
35
|
* Field that defines the columns (e.g., "state")
|
|
34
36
|
*/
|
|
35
|
-
_column_field: string
|
|
36
|
-
get column_field(): string
|
|
37
|
+
_column_field: string;
|
|
38
|
+
get column_field(): string;
|
|
37
39
|
/**
|
|
38
40
|
* Enable dragging cards between columns
|
|
39
41
|
*/
|
package/dist/Kanban.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kanban.d.ts","sourceRoot":"","sources":["../src/Kanban.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,MAAM,MAAM,UAAU,CAAC;AAM9B,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,cAAM,MAAM;IACV;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,MAAM,QAET;IAED;;OAEG;IACH,YAAY,EAAE,WAAW,EAAE,CAAM;IACjC,IAAI,WAAW,IAAI,WAAW,EAAE,CAE/B;IAED;;OAEG;IACH,QAAQ,EAAE,YAAY,EAAE,CAAM;IAC9B,IAAI,OAAO,IAAI,YAAY,EAAE,CAE5B;IAED,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,IAAI,MAAM,IAAI,MAAM,GAAG,IAAI,CAE1B;IAED;;OAEG;IACH,KAAK,EAAE,MAAM,CAAY;IACzB,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Kanban.d.ts","sourceRoot":"","sources":["../src/Kanban.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,MA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,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAE1C;IAED,IAAI,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAE9C;IAED;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM;IAC3C,IAAI,YAAY,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEzC;gBAEW,MAAM,EAAE,MAAM;IAI1B,KAAK,CAAC,GAAG,EAAE,MAAM;IAkDjB,OAAO,CAAC,WAAW;IAkEnB,OAAO,CAAC,YAAY;IAwBpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAqBpC;AAED,eAAe,MAAM,CAAC"}
|
package/dist/ooui.es.js
CHANGED
|
@@ -1462,7 +1462,7 @@ class Ht extends I {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
class Qt extends it {
|
|
1464
1464
|
}
|
|
1465
|
-
class
|
|
1465
|
+
class Xt extends f {
|
|
1466
1466
|
constructor(t) {
|
|
1467
1467
|
super(t);
|
|
1468
1468
|
/**
|
|
@@ -1505,7 +1505,7 @@ class nt extends $ {
|
|
|
1505
1505
|
this._lang = t;
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
|
-
class
|
|
1508
|
+
class Kt extends f {
|
|
1509
1509
|
constructor(e) {
|
|
1510
1510
|
super(e);
|
|
1511
1511
|
}
|
|
@@ -1569,7 +1569,7 @@ class Zt extends f {
|
|
|
1569
1569
|
this._height = t;
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
|
-
class
|
|
1572
|
+
class X extends nt {
|
|
1573
1573
|
constructor() {
|
|
1574
1574
|
super(...arguments);
|
|
1575
1575
|
r(this, "_lang", "json");
|
|
@@ -1789,13 +1789,13 @@ class D {
|
|
|
1789
1789
|
this._widgetClass = Qt;
|
|
1790
1790
|
break;
|
|
1791
1791
|
case "steps":
|
|
1792
|
-
this._widgetClass =
|
|
1792
|
+
this._widgetClass = Xt;
|
|
1793
1793
|
break;
|
|
1794
1794
|
case "codeeditor":
|
|
1795
1795
|
this._widgetClass = nt;
|
|
1796
1796
|
break;
|
|
1797
1797
|
case "time":
|
|
1798
|
-
this._widgetClass =
|
|
1798
|
+
this._widgetClass = Kt;
|
|
1799
1799
|
break;
|
|
1800
1800
|
case "html_preview":
|
|
1801
1801
|
this._widgetClass = Vt;
|
|
@@ -1807,10 +1807,10 @@ class D {
|
|
|
1807
1807
|
this._widgetClass = Zt;
|
|
1808
1808
|
break;
|
|
1809
1809
|
case "json":
|
|
1810
|
-
this._widgetClass =
|
|
1810
|
+
this._widgetClass = X;
|
|
1811
1811
|
break;
|
|
1812
1812
|
case "arrow_steps":
|
|
1813
|
-
this._widgetClass =
|
|
1813
|
+
this._widgetClass = X;
|
|
1814
1814
|
break;
|
|
1815
1815
|
case "spinner":
|
|
1816
1816
|
this._widgetClass = N;
|
|
@@ -2138,7 +2138,7 @@ class Ee {
|
|
|
2138
2138
|
h.on_change
|
|
2139
2139
|
));
|
|
2140
2140
|
let b;
|
|
2141
|
-
|
|
2141
|
+
K(h.domain) ? b = h.domain : K((C = this._fields[h.name]) == null ? void 0 : C.domain) && (b = this._fields[h.name].domain), this._keyIdx = this._keyIdx + 1;
|
|
2142
2142
|
const x = {
|
|
2143
2143
|
...u,
|
|
2144
2144
|
...m,
|
|
@@ -2163,7 +2163,7 @@ class Ee {
|
|
|
2163
2163
|
return this.container.findById(e);
|
|
2164
2164
|
}
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2166
|
+
function K(i) {
|
|
2167
2167
|
return i ? Array.isArray(i) && i.length > 0 ? !0 : typeof i == "string" && i !== "" && i !== "[]" : !1;
|
|
2168
2168
|
}
|
|
2169
2169
|
class Ve {
|
|
@@ -2295,6 +2295,7 @@ class Ye {
|
|
|
2295
2295
|
*/
|
|
2296
2296
|
r(this, "_buttons", []);
|
|
2297
2297
|
r(this, "_string", null);
|
|
2298
|
+
r(this, "_status", null);
|
|
2298
2299
|
/**
|
|
2299
2300
|
* Widget type
|
|
2300
2301
|
*/
|
|
@@ -2302,7 +2303,7 @@ class Ye {
|
|
|
2302
2303
|
/**
|
|
2303
2304
|
* Field that defines the columns (e.g., "state")
|
|
2304
2305
|
*/
|
|
2305
|
-
r(this, "_column_field",
|
|
2306
|
+
r(this, "_column_field", "state");
|
|
2306
2307
|
/**
|
|
2307
2308
|
* Enable dragging cards between columns
|
|
2308
2309
|
*/
|
|
@@ -2342,6 +2343,9 @@ class Ye {
|
|
|
2342
2343
|
get string() {
|
|
2343
2344
|
return this._string;
|
|
2344
2345
|
}
|
|
2346
|
+
get status() {
|
|
2347
|
+
return this._status;
|
|
2348
|
+
}
|
|
2345
2349
|
get type() {
|
|
2346
2350
|
return this._type;
|
|
2347
2351
|
}
|
|
@@ -2371,9 +2375,7 @@ class Ye {
|
|
|
2371
2375
|
}
|
|
2372
2376
|
parse(e) {
|
|
2373
2377
|
const t = T.parse(e).filter((n) => n.tagName === "kanban")[0];
|
|
2374
|
-
|
|
2375
|
-
throw new Error("Kanban view must have a column_field attribute");
|
|
2376
|
-
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));
|
|
2378
|
+
this._string = t.attributes.string || null, this._string && (this._string = g(this._string)), this._column_field = t.attributes.column_field || "state", this._drag = t.attributes.drag !== void 0 ? p(t.attributes.drag) : !0, this._sort = t.attributes.sort !== void 0 ? p(t.attributes.sort) : !0, this._set_max_cards = t.attributes.set_max_cards !== void 0 ? p(t.attributes.set_max_cards) : !1, this._colors = t.attributes.colors || null, this._colors && (this._colors = g(this._colors)), this._status = t.attributes.status || null, this._status && (this._status = g(this._status));
|
|
2377
2379
|
const s = new D();
|
|
2378
2380
|
t.children.forEach((n) => {
|
|
2379
2381
|
const { tagName: a, attributes: o } = n;
|
|
@@ -2582,8 +2584,9 @@ class ct extends ot {
|
|
|
2582
2584
|
r(this, "_icon", null);
|
|
2583
2585
|
r(this, "_totalDomain", null);
|
|
2584
2586
|
r(this, "_showPercent", !1);
|
|
2587
|
+
r(this, "_progressbar", !1);
|
|
2585
2588
|
r(this, "_suffix", null);
|
|
2586
|
-
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);
|
|
2589
|
+
this._type = t, this._color = s.attributes.color || null, this._color && (this._color = g(this._color)), this._icon = s.attributes.icon || null, this._icon && (this._icon = g(this._icon)), this._suffix = s.attributes.suffix || null, this._totalDomain = g(s.attributes.totalDomain) || null, this._showPercent = p(s.attributes.showPercent), this._progressbar = p(s.attributes.progressbar);
|
|
2587
2590
|
}
|
|
2588
2591
|
get color() {
|
|
2589
2592
|
return this._color;
|
|
@@ -2597,6 +2600,9 @@ class ct extends ot {
|
|
|
2597
2600
|
get showPercent() {
|
|
2598
2601
|
return this._showPercent;
|
|
2599
2602
|
}
|
|
2603
|
+
get progressbar() {
|
|
2604
|
+
return this._progressbar;
|
|
2605
|
+
}
|
|
2600
2606
|
get suffix() {
|
|
2601
2607
|
return this._suffix;
|
|
2602
2608
|
}
|
|
@@ -3156,7 +3162,7 @@ export {
|
|
|
3156
3162
|
At as Image,
|
|
3157
3163
|
$t as Indicator,
|
|
3158
3164
|
St as Integer,
|
|
3159
|
-
|
|
3165
|
+
X as JSONField,
|
|
3160
3166
|
Ye as Kanban,
|
|
3161
3167
|
et as Label,
|
|
3162
3168
|
Tt as Many2one,
|
|
@@ -3175,12 +3181,12 @@ export {
|
|
|
3175
3181
|
I as Selection,
|
|
3176
3182
|
Dt as Separator,
|
|
3177
3183
|
N as Spinner,
|
|
3178
|
-
|
|
3184
|
+
Xt as Steps,
|
|
3179
3185
|
Qt as Switch,
|
|
3180
3186
|
Jt as Tag,
|
|
3181
3187
|
qt as Tags,
|
|
3182
3188
|
$ as Text,
|
|
3183
|
-
|
|
3189
|
+
Kt as Time,
|
|
3184
3190
|
Gt as Timeline,
|
|
3185
3191
|
Ve as Tree,
|
|
3186
3192
|
k as Widget,
|