@gisce/ooui 0.5.1 → 0.5.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.
|
@@ -2,9 +2,9 @@ import { Operator } from ".";
|
|
|
2
2
|
import { GraphType } from "./Graph";
|
|
3
3
|
import { GraphIndicator } from "./GraphIndicator";
|
|
4
4
|
export declare class GraphIndicatorField extends GraphIndicator {
|
|
5
|
-
_field: string |
|
|
6
|
-
get field(): string |
|
|
7
|
-
_operator: Operator |
|
|
8
|
-
get operator(): Operator |
|
|
5
|
+
_field: string | undefined;
|
|
6
|
+
get field(): string | undefined;
|
|
7
|
+
_operator: Operator | undefined;
|
|
8
|
+
get operator(): Operator | undefined;
|
|
9
9
|
constructor(type: GraphType, element: HTMLElement);
|
|
10
10
|
}
|
|
@@ -16,13 +16,11 @@ var GraphIndicatorField = /** @class */ (function (_super) {
|
|
|
16
16
|
__extends(GraphIndicatorField, _super);
|
|
17
17
|
function GraphIndicatorField(type, element) {
|
|
18
18
|
var _this = _super.call(this, type, element) || this;
|
|
19
|
-
_this._field = null;
|
|
20
|
-
_this._operator = null;
|
|
21
19
|
Array.prototype.forEach.call(element.childNodes, function (child) {
|
|
22
20
|
if (child.nodeType === child.ELEMENT_NODE && child.nodeName === "field") {
|
|
23
21
|
var name_1 = child.getAttribute("name");
|
|
24
22
|
var operator = child.getAttribute("operator");
|
|
25
|
-
_this._field = name_1;
|
|
23
|
+
_this._field = name_1 || undefined;
|
|
26
24
|
_this._operator = operator;
|
|
27
25
|
}
|
|
28
26
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphIndicatorField.js","sourceRoot":"","sources":["../../src/Graph/GraphIndicatorField.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;IAAyC,uCAAc;IAWrD,6BAAY,IAAe,EAAE,OAAoB;QAAjD,YACE,kBAAM,IAAI,EAAE,OAAO,CAAC,SAUrB;
|
|
1
|
+
{"version":3,"file":"GraphIndicatorField.js","sourceRoot":"","sources":["../../src/Graph/GraphIndicatorField.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;IAAyC,uCAAc;IAWrD,6BAAY,IAAe,EAAE,OAAoB;QAAjD,YACE,kBAAM,IAAI,EAAE,OAAO,CAAC,SAUrB;QARC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,UAAC,KAAc;YAC9D,IAAI,KAAK,CAAC,QAAQ,KAAK,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,QAAQ,KAAK,OAAO,EAAE;gBACvE,IAAM,MAAI,GAAG,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;gBACxC,IAAM,QAAQ,GAAG,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;gBAChD,KAAI,CAAC,MAAM,GAAG,MAAI,IAAI,SAAS,CAAC;gBAChC,KAAI,CAAC,SAAS,GAAG,QAAoB,CAAC;aACvC;QACH,CAAC,CAAC,CAAC;;IACL,CAAC;IApBD,sBAAI,sCAAK;aAAT;YACE,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;;;OAAA;IAGD,sBAAI,yCAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,SAAS,CAAC;QACxB,CAAC;;;OAAA;IAcH,0BAAC;AAAD,CAAC,AAvBD,CAAyC,cAAc,GAuBtD"}
|
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@ import { GraphType } from "./Graph";
|
|
|
3
3
|
import { GraphIndicator } from "./GraphIndicator";
|
|
4
4
|
|
|
5
5
|
export class GraphIndicatorField extends GraphIndicator {
|
|
6
|
-
_field: string |
|
|
7
|
-
get field(): string |
|
|
6
|
+
_field: string | undefined;
|
|
7
|
+
get field(): string | undefined {
|
|
8
8
|
return this._field;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
_operator: Operator |
|
|
12
|
-
get operator(): Operator |
|
|
11
|
+
_operator: Operator | undefined;
|
|
12
|
+
get operator(): Operator | undefined {
|
|
13
13
|
return this._operator;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -20,7 +20,7 @@ export class GraphIndicatorField extends GraphIndicator {
|
|
|
20
20
|
if (child.nodeType === child.ELEMENT_NODE && child.nodeName === "field") {
|
|
21
21
|
const name = child.getAttribute("name");
|
|
22
22
|
const operator = child.getAttribute("operator");
|
|
23
|
-
this._field = name;
|
|
23
|
+
this._field = name || undefined;
|
|
24
24
|
this._operator = operator as Operator;
|
|
25
25
|
}
|
|
26
26
|
});
|