@gisce/ooui 0.1.0
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 +10 -0
- package/dist/Binary.d.ts +14 -0
- package/dist/Binary.js +46 -0
- package/dist/Binary.js.map +1 -0
- package/dist/Boolean.d.ts +8 -0
- package/dist/Boolean.js +26 -0
- package/dist/Boolean.js.map +1 -0
- package/dist/Button.d.ts +29 -0
- package/dist/Button.js +108 -0
- package/dist/Button.js.map +1 -0
- package/dist/Char.d.ts +26 -0
- package/dist/Char.js +89 -0
- package/dist/Char.js.map +1 -0
- package/dist/Container.d.ts +44 -0
- package/dist/Container.js +148 -0
- package/dist/Container.js.map +1 -0
- package/dist/ContainerWidget.d.ts +42 -0
- package/dist/ContainerWidget.js +125 -0
- package/dist/ContainerWidget.js.map +1 -0
- package/dist/Date.d.ts +8 -0
- package/dist/Date.js +26 -0
- package/dist/Date.js.map +1 -0
- package/dist/DateTime.d.ts +8 -0
- package/dist/DateTime.js +26 -0
- package/dist/DateTime.js.map +1 -0
- package/dist/FiberGrid.d.ts +5 -0
- package/dist/FiberGrid.js +23 -0
- package/dist/FiberGrid.js.map +1 -0
- package/dist/Field.d.ts +59 -0
- package/dist/Field.js +162 -0
- package/dist/Field.js.map +1 -0
- package/dist/Float.d.ts +24 -0
- package/dist/Float.js +64 -0
- package/dist/Float.js.map +1 -0
- package/dist/FloatTime.d.ts +7 -0
- package/dist/FloatTime.js +26 -0
- package/dist/FloatTime.js.map +1 -0
- package/dist/Form.d.ts +53 -0
- package/dist/Form.js +199 -0
- package/dist/Form.js.map +1 -0
- package/dist/Group.d.ts +5 -0
- package/dist/Group.js +23 -0
- package/dist/Group.js.map +1 -0
- package/dist/Image.d.ts +7 -0
- package/dist/Image.js +26 -0
- package/dist/Image.js.map +1 -0
- package/dist/Integer.d.ts +8 -0
- package/dist/Integer.js +26 -0
- package/dist/Integer.js.map +1 -0
- package/dist/Label.d.ts +23 -0
- package/dist/Label.js +80 -0
- package/dist/Label.js.map +1 -0
- package/dist/Many2many.d.ts +26 -0
- package/dist/Many2many.js +80 -0
- package/dist/Many2many.js.map +1 -0
- package/dist/Many2one.d.ts +20 -0
- package/dist/Many2one.js +63 -0
- package/dist/Many2one.js.map +1 -0
- package/dist/NewLine.d.ts +5 -0
- package/dist/NewLine.js +26 -0
- package/dist/NewLine.js.map +1 -0
- package/dist/Notebook.d.ts +8 -0
- package/dist/Notebook.js +41 -0
- package/dist/Notebook.js.map +1 -0
- package/dist/One2many.d.ts +44 -0
- package/dist/One2many.js +130 -0
- package/dist/One2many.js.map +1 -0
- package/dist/Page.d.ts +5 -0
- package/dist/Page.js +23 -0
- package/dist/Page.js.map +1 -0
- package/dist/ProgressBar.d.ts +7 -0
- package/dist/ProgressBar.js +26 -0
- package/dist/ProgressBar.js.map +1 -0
- package/dist/Reference.d.ts +7 -0
- package/dist/Reference.js +26 -0
- package/dist/Reference.js.map +1 -0
- package/dist/SearchFilter.d.ts +28 -0
- package/dist/SearchFilter.js +81 -0
- package/dist/SearchFilter.js.map +1 -0
- package/dist/Selection.d.ts +20 -0
- package/dist/Selection.js +63 -0
- package/dist/Selection.js.map +1 -0
- package/dist/Separator.d.ts +12 -0
- package/dist/Separator.js +46 -0
- package/dist/Separator.js.map +1 -0
- package/dist/Text.d.ts +29 -0
- package/dist/Text.js +96 -0
- package/dist/Text.js.map +1 -0
- package/dist/Timeline.d.ts +17 -0
- package/dist/Timeline.js +56 -0
- package/dist/Timeline.js.map +1 -0
- package/dist/Tree.d.ts +31 -0
- package/dist/Tree.js +96 -0
- package/dist/Tree.js.map +1 -0
- package/dist/Widget.d.ts +47 -0
- package/dist/Widget.js +116 -0
- package/dist/Widget.js.map +1 -0
- package/dist/WidgetFactory.d.ts +9 -0
- package/dist/WidgetFactory.js +157 -0
- package/dist/WidgetFactory.js.map +1 -0
- package/dist/helpers/attributeParser.d.ts +6 -0
- package/dist/helpers/attributeParser.js +83 -0
- package/dist/helpers/attributeParser.js.map +1 -0
- package/dist/helpers/contextParser.d.ts +5 -0
- package/dist/helpers/contextParser.js +52 -0
- package/dist/helpers/contextParser.js.map +1 -0
- package/dist/helpers/domainParser.d.ts +5 -0
- package/dist/helpers/domainParser.js +26 -0
- package/dist/helpers/domainParser.js.map +1 -0
- package/dist/helpers/fieldParser.d.ts +5 -0
- package/dist/helpers/fieldParser.js +20 -0
- package/dist/helpers/fieldParser.js.map +1 -0
- package/dist/helpers/nodeParser.d.ts +7 -0
- package/dist/helpers/nodeParser.js +50 -0
- package/dist/helpers/nodeParser.js.map +1 -0
- package/dist/helpers/onChangeParser.d.ts +5 -0
- package/dist/helpers/onChangeParser.js +16 -0
- package/dist/helpers/onChangeParser.js.map +1 -0
- package/dist/helpers/stateParser.d.ts +14 -0
- package/dist/helpers/stateParser.js +46 -0
- package/dist/helpers/stateParser.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/package.json +49 -0
- package/src/Binary.ts +29 -0
- package/src/Boolean.ts +12 -0
- package/src/Button.ts +78 -0
- package/src/Char.ts +65 -0
- package/src/Container.ts +171 -0
- package/src/ContainerWidget.ts +105 -0
- package/src/Date.ts +12 -0
- package/src/DateTime.ts +12 -0
- package/src/FiberGrid.ts +9 -0
- package/src/Field.ts +147 -0
- package/src/Float.ts +45 -0
- package/src/FloatTime.ts +8 -0
- package/src/Form.ts +212 -0
- package/src/Group.ts +9 -0
- package/src/Image.ts +8 -0
- package/src/Integer.ts +13 -0
- package/src/Label.ts +46 -0
- package/src/Many2many.ts +59 -0
- package/src/Many2one.ts +44 -0
- package/src/NewLine.ts +9 -0
- package/src/Notebook.ts +24 -0
- package/src/One2many.ts +106 -0
- package/src/Page.ts +9 -0
- package/src/ProgressBar.ts +8 -0
- package/src/Reference.ts +10 -0
- package/src/SearchFilter.ts +81 -0
- package/src/Selection.ts +44 -0
- package/src/Separator.ts +30 -0
- package/src/Text.ts +76 -0
- package/src/Timeline.ts +44 -0
- package/src/Tree.ts +93 -0
- package/src/Widget.ts +121 -0
- package/src/WidgetFactory.ts +158 -0
- package/src/helpers/attributeParser.ts +108 -0
- package/src/helpers/contextParser.ts +66 -0
- package/src/helpers/domainParser.ts +39 -0
- package/src/helpers/fieldParser.ts +27 -0
- package/src/helpers/nodeParser.ts +57 -0
- package/src/helpers/onChangeParser.ts +18 -0
- package/src/helpers/stateParser.ts +62 -0
- package/src/index.ts +67 -0
- package/src/spec/Boolean.spec.ts +36 -0
- package/src/spec/Button.spec.ts +58 -0
- package/src/spec/Char.spec.ts +80 -0
- package/src/spec/Container.spec.ts +47 -0
- package/src/spec/ContainerWidget.spec.ts +35 -0
- package/src/spec/Date.spec.ts +36 -0
- package/src/spec/DateTime.spec.ts +36 -0
- package/src/spec/Float.spec.ts +29 -0
- package/src/spec/Form.spec.ts +976 -0
- package/src/spec/Group.spec.ts +32 -0
- package/src/spec/Label.spec.ts +46 -0
- package/src/spec/Many2many.spec.ts +36 -0
- package/src/spec/Many2one.spec.ts +36 -0
- package/src/spec/One2many.spec.ts +354 -0
- package/src/spec/SearchFilter.spec.ts +955 -0
- package/src/spec/Selection.spec.ts +52 -0
- package/src/spec/Separator.spec.ts +14 -0
- package/src/spec/Tree.spec.ts +214 -0
- package/src/spec/Widget.spec.ts +45 -0
- package/src/spec/WidgetFactory.spec.ts +40 -0
- package/src/spec/attributeParser.spec.ts +173 -0
- package/src/spec/contextParser.spec.ts +57 -0
- package/src/spec/domainParser.spec.ts +40 -0
- package/src/spec/fixtures/WidgetImpl.ts +10 -0
- package/src/spec/stateParser.spec.ts +161 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import Widget from "./Widget";
|
|
15
|
+
import Container from "./Container";
|
|
16
|
+
var ContainerWidget = /** @class */ (function (_super) {
|
|
17
|
+
__extends(ContainerWidget, _super);
|
|
18
|
+
function ContainerWidget(props) {
|
|
19
|
+
var _this = _super.call(this, props) || this;
|
|
20
|
+
/**
|
|
21
|
+
* Field identifier
|
|
22
|
+
*
|
|
23
|
+
* Corresponds to the field's name attribute from xml
|
|
24
|
+
*/
|
|
25
|
+
_this._id = "";
|
|
26
|
+
/**
|
|
27
|
+
* Must expand widget
|
|
28
|
+
*/
|
|
29
|
+
_this._mustExpand = false;
|
|
30
|
+
/**
|
|
31
|
+
* Container label
|
|
32
|
+
*/
|
|
33
|
+
_this._label = "";
|
|
34
|
+
_this._container = new Container(props && props.col, ContainerWidget._defaultColspan, _this.readOnly);
|
|
35
|
+
if (props) {
|
|
36
|
+
if (props.name) {
|
|
37
|
+
_this._id = props.name;
|
|
38
|
+
}
|
|
39
|
+
if (props.colspan) {
|
|
40
|
+
_this._container.colspan = +props.colspan;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
_this._mustExpand = true;
|
|
44
|
+
}
|
|
45
|
+
if (props.string) {
|
|
46
|
+
_this._label = props.string;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return _this;
|
|
50
|
+
}
|
|
51
|
+
Object.defineProperty(ContainerWidget.prototype, "id", {
|
|
52
|
+
get: function () {
|
|
53
|
+
return this._id;
|
|
54
|
+
},
|
|
55
|
+
set: function (value) {
|
|
56
|
+
this._id = value;
|
|
57
|
+
},
|
|
58
|
+
enumerable: false,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(ContainerWidget, "defaultColspan", {
|
|
62
|
+
get: function () {
|
|
63
|
+
return ContainerWidget._defaultColspan;
|
|
64
|
+
},
|
|
65
|
+
set: function (value) {
|
|
66
|
+
ContainerWidget._defaultColspan = value;
|
|
67
|
+
},
|
|
68
|
+
enumerable: false,
|
|
69
|
+
configurable: true
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(ContainerWidget.prototype, "container", {
|
|
72
|
+
get: function () {
|
|
73
|
+
return this._container;
|
|
74
|
+
},
|
|
75
|
+
set: function (value) {
|
|
76
|
+
this._container = value;
|
|
77
|
+
},
|
|
78
|
+
enumerable: false,
|
|
79
|
+
configurable: true
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(ContainerWidget.prototype, "colspan", {
|
|
82
|
+
get: function () {
|
|
83
|
+
return this._container.colspan;
|
|
84
|
+
},
|
|
85
|
+
set: function (value) {
|
|
86
|
+
this._container.colspan = +value;
|
|
87
|
+
},
|
|
88
|
+
enumerable: false,
|
|
89
|
+
configurable: true
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(ContainerWidget.prototype, "mustExpand", {
|
|
92
|
+
get: function () {
|
|
93
|
+
return this._mustExpand;
|
|
94
|
+
},
|
|
95
|
+
set: function (value) {
|
|
96
|
+
this._mustExpand = value;
|
|
97
|
+
},
|
|
98
|
+
enumerable: false,
|
|
99
|
+
configurable: true
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(ContainerWidget.prototype, "label", {
|
|
102
|
+
get: function () {
|
|
103
|
+
return this._label;
|
|
104
|
+
},
|
|
105
|
+
set: function (value) {
|
|
106
|
+
this._label = value;
|
|
107
|
+
},
|
|
108
|
+
enumerable: false,
|
|
109
|
+
configurable: true
|
|
110
|
+
});
|
|
111
|
+
/**
|
|
112
|
+
* Calls container's findById method to find the widgets matching with param id
|
|
113
|
+
* @param {string} id id to find
|
|
114
|
+
*/
|
|
115
|
+
ContainerWidget.prototype.findById = function (id) {
|
|
116
|
+
if (id === this.id) {
|
|
117
|
+
return this;
|
|
118
|
+
}
|
|
119
|
+
return this.container.findById(id);
|
|
120
|
+
};
|
|
121
|
+
ContainerWidget._defaultColspan = 6;
|
|
122
|
+
return ContainerWidget;
|
|
123
|
+
}(Widget));
|
|
124
|
+
export default ContainerWidget;
|
|
125
|
+
//# sourceMappingURL=ContainerWidget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerWidget.js","sourceRoot":"","sources":["../src/ContainerWidget.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC;IAA8B,mCAAM;IA8DlC,yBAAY,KAAW;QAAvB,YACE,kBAAM,KAAK,CAAC,SAuBb;QArFD;;;;WAIG;QACH,SAAG,GAAW,EAAE,CAAC;QAkCjB;;WAEG;QACH,iBAAW,GAAY,KAAK,CAAC;QAQ7B;;WAEG;QACH,YAAM,GAAW,EAAE,CAAC;QAWlB,KAAI,CAAC,UAAU,GAAG,IAAI,SAAS,CAC7B,KAAK,IAAI,KAAK,CAAC,GAAG,EAClB,eAAe,CAAC,eAAe,EAC/B,KAAI,CAAC,QAAQ,CACd,CAAC;QAEF,IAAI,KAAK,EAAE;YACT,IAAI,KAAK,CAAC,IAAI,EAAE;gBACd,KAAI,CAAC,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC;aACvB;YAED,IAAI,KAAK,CAAC,OAAO,EAAE;gBACjB,KAAI,CAAC,UAAU,CAAC,OAAO,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC;aAC1C;iBAAM;gBACL,KAAI,CAAC,WAAW,GAAG,IAAI,CAAC;aACzB;YAED,IAAI,KAAK,CAAC,MAAM,EAAE;gBAChB,KAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;aAC5B;SACF;;IACH,CAAC;IA/ED,s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AED,eAAe,eAAe,CAAC"}
|
package/dist/Date.d.ts
ADDED
package/dist/Date.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import Field from "./Field";
|
|
15
|
+
/**
|
|
16
|
+
* Date input
|
|
17
|
+
*/
|
|
18
|
+
var Date = /** @class */ (function (_super) {
|
|
19
|
+
__extends(Date, _super);
|
|
20
|
+
function Date(props) {
|
|
21
|
+
return _super.call(this, props) || this;
|
|
22
|
+
}
|
|
23
|
+
return Date;
|
|
24
|
+
}(Field));
|
|
25
|
+
export default Date;
|
|
26
|
+
//# sourceMappingURL=Date.js.map
|
package/dist/Date.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Date.js","sourceRoot":"","sources":["../src/Date.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B;;GAEG;AACH;IAAmB,wBAAK;IACtB,cAAY,KAAW;eACrB,kBAAM,KAAK,CAAC;IACd,CAAC;IACH,WAAC;AAAD,CAAC,AAJD,CAAmB,KAAK,GAIvB;AAED,eAAe,IAAI,CAAC"}
|
package/dist/DateTime.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import Field from "./Field";
|
|
15
|
+
/**
|
|
16
|
+
* DateTime input
|
|
17
|
+
*/
|
|
18
|
+
var DateTime = /** @class */ (function (_super) {
|
|
19
|
+
__extends(DateTime, _super);
|
|
20
|
+
function DateTime(props) {
|
|
21
|
+
return _super.call(this, props) || this;
|
|
22
|
+
}
|
|
23
|
+
return DateTime;
|
|
24
|
+
}(Field));
|
|
25
|
+
export default DateTime;
|
|
26
|
+
//# sourceMappingURL=DateTime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTime.js","sourceRoot":"","sources":["../src/DateTime.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B;;GAEG;AACH;IAAuB,4BAAK;IAC1B,kBAAY,KAAW;eACrB,kBAAM,KAAK,CAAC;IACd,CAAC;IACH,eAAC;AAAD,CAAC,AAJD,CAAuB,KAAK,GAI3B;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import Field from "./Field";
|
|
15
|
+
var FiberGrid = /** @class */ (function (_super) {
|
|
16
|
+
__extends(FiberGrid, _super);
|
|
17
|
+
function FiberGrid(props) {
|
|
18
|
+
return _super.call(this, props) || this;
|
|
19
|
+
}
|
|
20
|
+
return FiberGrid;
|
|
21
|
+
}(Field));
|
|
22
|
+
export default FiberGrid;
|
|
23
|
+
//# sourceMappingURL=FiberGrid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiberGrid.js","sourceRoot":"","sources":["../src/FiberGrid.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B;IAAwB,6BAAK;IAC3B,mBAAY,KAAU;eACpB,kBAAM,KAAK,CAAC;IACd,CAAC;IACH,gBAAC;AAAD,CAAC,AAJD,CAAwB,KAAK,GAI5B;AAED,eAAe,SAAS,CAAC"}
|
package/dist/Field.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import Widget from "./Widget";
|
|
2
|
+
declare class Field extends Widget {
|
|
3
|
+
/**
|
|
4
|
+
* Field identifier
|
|
5
|
+
*
|
|
6
|
+
* Corresponds to the field's name attribute from xml
|
|
7
|
+
*/
|
|
8
|
+
_id: string;
|
|
9
|
+
get id(): string;
|
|
10
|
+
set id(value: string);
|
|
11
|
+
/**
|
|
12
|
+
* Label
|
|
13
|
+
*/
|
|
14
|
+
_label: string;
|
|
15
|
+
get label(): string;
|
|
16
|
+
set label(value: string);
|
|
17
|
+
/**
|
|
18
|
+
* No label
|
|
19
|
+
*
|
|
20
|
+
* This field hasn't got to show the label
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
_nolabel: boolean;
|
|
24
|
+
get nolabel(): boolean;
|
|
25
|
+
set nolabel(value: boolean);
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* Required field
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
_required: boolean;
|
|
32
|
+
get required(): boolean;
|
|
33
|
+
set required(value: boolean);
|
|
34
|
+
/**
|
|
35
|
+
* Tooltip
|
|
36
|
+
*/
|
|
37
|
+
_tooltip?: string;
|
|
38
|
+
get tooltip(): string | undefined;
|
|
39
|
+
set tooltip(value: string | undefined);
|
|
40
|
+
/**
|
|
41
|
+
* Activated (default is true)
|
|
42
|
+
*/
|
|
43
|
+
_activated: boolean;
|
|
44
|
+
get activated(): boolean;
|
|
45
|
+
set activated(value: boolean);
|
|
46
|
+
/**
|
|
47
|
+
* Sum - sum parameter (label), this will mean that we have to sum this field in the tree
|
|
48
|
+
*/
|
|
49
|
+
_sum?: string;
|
|
50
|
+
get sum(): string | undefined;
|
|
51
|
+
set sum(value: string | undefined);
|
|
52
|
+
constructor(props: any);
|
|
53
|
+
/**
|
|
54
|
+
* Returns this instance in case this id matches param id.
|
|
55
|
+
* @param {string} id id (name) to find
|
|
56
|
+
*/
|
|
57
|
+
findById(id: string): Field | null;
|
|
58
|
+
}
|
|
59
|
+
export default Field;
|
package/dist/Field.js
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import Widget from "./Widget";
|
|
15
|
+
var Field = /** @class */ (function (_super) {
|
|
16
|
+
__extends(Field, _super);
|
|
17
|
+
function Field(props) {
|
|
18
|
+
var _this = _super.call(this, props) || this;
|
|
19
|
+
/**
|
|
20
|
+
* Field identifier
|
|
21
|
+
*
|
|
22
|
+
* Corresponds to the field's name attribute from xml
|
|
23
|
+
*/
|
|
24
|
+
_this._id = "";
|
|
25
|
+
/**
|
|
26
|
+
* Label
|
|
27
|
+
*/
|
|
28
|
+
_this._label = "";
|
|
29
|
+
/**
|
|
30
|
+
* No label
|
|
31
|
+
*
|
|
32
|
+
* This field hasn't got to show the label
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
_this._nolabel = false;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* Required field
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
_this._required = false;
|
|
42
|
+
/**
|
|
43
|
+
* Activated (default is true)
|
|
44
|
+
*/
|
|
45
|
+
_this._activated = true;
|
|
46
|
+
// Activated by default
|
|
47
|
+
_this._activated = true;
|
|
48
|
+
if (props) {
|
|
49
|
+
if (props.name) {
|
|
50
|
+
_this._id = props.name;
|
|
51
|
+
}
|
|
52
|
+
if (props.activated) {
|
|
53
|
+
_this._activated = props.activated;
|
|
54
|
+
}
|
|
55
|
+
if (props.string) {
|
|
56
|
+
_this._label = props.string;
|
|
57
|
+
}
|
|
58
|
+
if (props.help) {
|
|
59
|
+
_this._tooltip = props.help;
|
|
60
|
+
}
|
|
61
|
+
if (props.nolabel &&
|
|
62
|
+
(props.nolabel === "1" ||
|
|
63
|
+
(typeof props.nolabel === "boolean" && props.nolabel === true))) {
|
|
64
|
+
_this._nolabel = true;
|
|
65
|
+
}
|
|
66
|
+
if (props.required &&
|
|
67
|
+
(props.required === "1" ||
|
|
68
|
+
props.required === true ||
|
|
69
|
+
props.required === "True")) {
|
|
70
|
+
_this._required = true;
|
|
71
|
+
}
|
|
72
|
+
if (props.sum) {
|
|
73
|
+
_this._sum = props.sum;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return _this;
|
|
77
|
+
}
|
|
78
|
+
Object.defineProperty(Field.prototype, "id", {
|
|
79
|
+
get: function () {
|
|
80
|
+
return this._id;
|
|
81
|
+
},
|
|
82
|
+
set: function (value) {
|
|
83
|
+
this._id = value;
|
|
84
|
+
},
|
|
85
|
+
enumerable: false,
|
|
86
|
+
configurable: true
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(Field.prototype, "label", {
|
|
89
|
+
get: function () {
|
|
90
|
+
return this._label;
|
|
91
|
+
},
|
|
92
|
+
set: function (value) {
|
|
93
|
+
this._label = value;
|
|
94
|
+
},
|
|
95
|
+
enumerable: false,
|
|
96
|
+
configurable: true
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(Field.prototype, "nolabel", {
|
|
99
|
+
get: function () {
|
|
100
|
+
return this._nolabel;
|
|
101
|
+
},
|
|
102
|
+
set: function (value) {
|
|
103
|
+
this._nolabel = value;
|
|
104
|
+
},
|
|
105
|
+
enumerable: false,
|
|
106
|
+
configurable: true
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(Field.prototype, "required", {
|
|
109
|
+
get: function () {
|
|
110
|
+
return this._required;
|
|
111
|
+
},
|
|
112
|
+
set: function (value) {
|
|
113
|
+
this._required = value;
|
|
114
|
+
},
|
|
115
|
+
enumerable: false,
|
|
116
|
+
configurable: true
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(Field.prototype, "tooltip", {
|
|
119
|
+
get: function () {
|
|
120
|
+
return this._tooltip;
|
|
121
|
+
},
|
|
122
|
+
set: function (value) {
|
|
123
|
+
this._tooltip = value;
|
|
124
|
+
},
|
|
125
|
+
enumerable: false,
|
|
126
|
+
configurable: true
|
|
127
|
+
});
|
|
128
|
+
Object.defineProperty(Field.prototype, "activated", {
|
|
129
|
+
get: function () {
|
|
130
|
+
return this._activated;
|
|
131
|
+
},
|
|
132
|
+
set: function (value) {
|
|
133
|
+
this._activated = value;
|
|
134
|
+
},
|
|
135
|
+
enumerable: false,
|
|
136
|
+
configurable: true
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(Field.prototype, "sum", {
|
|
139
|
+
get: function () {
|
|
140
|
+
return this._sum;
|
|
141
|
+
},
|
|
142
|
+
set: function (value) {
|
|
143
|
+
this._sum = value;
|
|
144
|
+
},
|
|
145
|
+
enumerable: false,
|
|
146
|
+
configurable: true
|
|
147
|
+
});
|
|
148
|
+
/**
|
|
149
|
+
* Returns this instance in case this id matches param id.
|
|
150
|
+
* @param {string} id id (name) to find
|
|
151
|
+
*/
|
|
152
|
+
Field.prototype.findById = function (id) {
|
|
153
|
+
var r = null;
|
|
154
|
+
if (this._id === id) {
|
|
155
|
+
r = this;
|
|
156
|
+
}
|
|
157
|
+
return r;
|
|
158
|
+
};
|
|
159
|
+
return Field;
|
|
160
|
+
}(Widget));
|
|
161
|
+
export default Field;
|
|
162
|
+
//# sourceMappingURL=Field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Field.js","sourceRoot":"","sources":["../src/Field.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B;IAAoB,yBAAM;IAqFxB,eAAY,KAAU;QAAtB,YACE,kBAAM,KAAK,CAAC,SA2Cb;QAhID;;;;WAIG;QACH,SAAG,GAAW,EAAE,CAAC;QAQjB;;WAEG;QACH,YAAM,GAAW,EAAE,CAAC;QAQpB;;;;;WAKG;QACH,cAAQ,GAAY,KAAK,CAAC;QAQ1B;;;;WAIG;QACH,eAAS,GAAY,KAAK,CAAC;QAmB3B;;WAEG;QACH,gBAAU,GAAY,IAAI,CAAC;QA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
3
|
+
* Float input
|
|
4
|
+
*/
|
|
5
|
+
declare class Float extends Field {
|
|
6
|
+
/**
|
|
7
|
+
* Integer digits
|
|
8
|
+
*
|
|
9
|
+
* Number of integer digits that will be part of the float
|
|
10
|
+
*/
|
|
11
|
+
_integerDigits: number;
|
|
12
|
+
get integerDigits(): number;
|
|
13
|
+
set integerDigits(value: number);
|
|
14
|
+
/**
|
|
15
|
+
* Decimal digits
|
|
16
|
+
*
|
|
17
|
+
* Number of decimal digits that will be part of the float
|
|
18
|
+
*/
|
|
19
|
+
_decimalDigits: number;
|
|
20
|
+
get decimalDigits(): number;
|
|
21
|
+
set decimalDigits(value: number);
|
|
22
|
+
constructor(props?: any);
|
|
23
|
+
}
|
|
24
|
+
export default Float;
|
package/dist/Float.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import Field from "./Field";
|
|
15
|
+
/**
|
|
16
|
+
* Float input
|
|
17
|
+
*/
|
|
18
|
+
var Float = /** @class */ (function (_super) {
|
|
19
|
+
__extends(Float, _super);
|
|
20
|
+
function Float(props) {
|
|
21
|
+
var _this = _super.call(this, props) || this;
|
|
22
|
+
/**
|
|
23
|
+
* Integer digits
|
|
24
|
+
*
|
|
25
|
+
* Number of integer digits that will be part of the float
|
|
26
|
+
*/
|
|
27
|
+
_this._integerDigits = 16;
|
|
28
|
+
/**
|
|
29
|
+
* Decimal digits
|
|
30
|
+
*
|
|
31
|
+
* Number of decimal digits that will be part of the float
|
|
32
|
+
*/
|
|
33
|
+
_this._decimalDigits = 2;
|
|
34
|
+
if (props === null || props === void 0 ? void 0 : props.digits) {
|
|
35
|
+
var _a = props.digits, integers = _a[0], decimals = _a[1];
|
|
36
|
+
_this._integerDigits = integers;
|
|
37
|
+
_this._decimalDigits = decimals;
|
|
38
|
+
}
|
|
39
|
+
return _this;
|
|
40
|
+
}
|
|
41
|
+
Object.defineProperty(Float.prototype, "integerDigits", {
|
|
42
|
+
get: function () {
|
|
43
|
+
return this._integerDigits;
|
|
44
|
+
},
|
|
45
|
+
set: function (value) {
|
|
46
|
+
this._integerDigits = value;
|
|
47
|
+
},
|
|
48
|
+
enumerable: false,
|
|
49
|
+
configurable: true
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(Float.prototype, "decimalDigits", {
|
|
52
|
+
get: function () {
|
|
53
|
+
return this._decimalDigits;
|
|
54
|
+
},
|
|
55
|
+
set: function (value) {
|
|
56
|
+
this._decimalDigits = value;
|
|
57
|
+
},
|
|
58
|
+
enumerable: false,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
return Float;
|
|
62
|
+
}(Field));
|
|
63
|
+
export default Float;
|
|
64
|
+
//# sourceMappingURL=Float.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Float.js","sourceRoot":"","sources":["../src/Float.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B;;GAEG;AACH;IAAoB,yBAAK;IA4BvB,eAAY,KAAW;QAAvB,YACE,kBAAM,KAAK,CAAC,SAOb;QAlCD;;;;WAIG;QACH,oBAAc,GAAW,EAAE,CAAC;QAQ5B;;;;WAIG;QACH,oBAAc,GAAW,CAAC,CAAC;QAWzB,IAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,EAAE;YACX,IAAA,KAAuB,KAAK,CAAC,MAAM,EAAlC,QAAQ,QAAA,EAAE,QAAQ,QAAgB,CAAC;YAC1C,KAAI,CAAC,cAAc,GAAG,QAAQ,CAAC;YAC/B,KAAI,CAAC,cAAc,GAAG,QAAQ,CAAC;SAChC;;IACH,CAAC;IA5BD,sBAAI,gCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,cAAc,CAAC;QAC7B,CAAC;aACD,UAAkB,KAAa;YAC7B,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAHA;IAWD,sBAAI,gCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,cAAc,CAAC;QAC7B,CAAC;aACD,UAAkB,KAAa;YAC7B,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAHA;IAcH,YAAC;AAAD,CAAC,AArCD,CAAoB,KAAK,GAqCxB;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import Float from "./Float";
|
|
15
|
+
/**
|
|
16
|
+
* FloatTime input
|
|
17
|
+
*/
|
|
18
|
+
var FloatTime = /** @class */ (function (_super) {
|
|
19
|
+
__extends(FloatTime, _super);
|
|
20
|
+
function FloatTime() {
|
|
21
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
22
|
+
}
|
|
23
|
+
return FloatTime;
|
|
24
|
+
}(Float));
|
|
25
|
+
export default FloatTime;
|
|
26
|
+
//# sourceMappingURL=FloatTime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatTime.js","sourceRoot":"","sources":["../src/FloatTime.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B;;GAEG;AACH;IAAwB,6BAAK;IAA7B;;IAA+B,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAhC,CAAwB,KAAK,GAAG;AAEhC,eAAe,SAAS,CAAC"}
|
package/dist/Form.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import Container from "./Container";
|
|
2
|
+
import Widget from "./Widget";
|
|
3
|
+
export declare type FormParseOptions = {
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
values?: any;
|
|
6
|
+
};
|
|
7
|
+
declare class Form {
|
|
8
|
+
/**
|
|
9
|
+
* Object containing fields specification of the form.
|
|
10
|
+
*/
|
|
11
|
+
_fields: any;
|
|
12
|
+
get fields(): any;
|
|
13
|
+
_container: Container;
|
|
14
|
+
get container(): Container;
|
|
15
|
+
_string: string | null;
|
|
16
|
+
get string(): string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Widget type
|
|
19
|
+
*/
|
|
20
|
+
_type: string;
|
|
21
|
+
get type(): string;
|
|
22
|
+
/**
|
|
23
|
+
* Determines if form is read only (default is false)
|
|
24
|
+
*/
|
|
25
|
+
_readOnly: boolean;
|
|
26
|
+
get readOnly(): boolean;
|
|
27
|
+
set readOnly(value: boolean);
|
|
28
|
+
/**
|
|
29
|
+
* Context
|
|
30
|
+
*/
|
|
31
|
+
_context: any;
|
|
32
|
+
get context(): any;
|
|
33
|
+
set context(value: any);
|
|
34
|
+
/**
|
|
35
|
+
* Collection of onChange actions for fields
|
|
36
|
+
*/
|
|
37
|
+
_onChangeFields: any;
|
|
38
|
+
get onChangeFields(): any;
|
|
39
|
+
set onChangeFields(value: any);
|
|
40
|
+
constructor(fields: Object, columns?: number);
|
|
41
|
+
parse(xml: string, options?: FormParseOptions): void;
|
|
42
|
+
parseNode({ node, container, values, }: {
|
|
43
|
+
node: Element;
|
|
44
|
+
container: Container;
|
|
45
|
+
values: any;
|
|
46
|
+
}): void;
|
|
47
|
+
/**
|
|
48
|
+
* Calls container's findById method to find the widgets matching with param id
|
|
49
|
+
* @param {string} id id to find
|
|
50
|
+
*/
|
|
51
|
+
findById(id: string): Widget | null;
|
|
52
|
+
}
|
|
53
|
+
export default Form;
|