@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.
Files changed (191) hide show
  1. package/README.md +10 -0
  2. package/dist/Binary.d.ts +14 -0
  3. package/dist/Binary.js +46 -0
  4. package/dist/Binary.js.map +1 -0
  5. package/dist/Boolean.d.ts +8 -0
  6. package/dist/Boolean.js +26 -0
  7. package/dist/Boolean.js.map +1 -0
  8. package/dist/Button.d.ts +29 -0
  9. package/dist/Button.js +108 -0
  10. package/dist/Button.js.map +1 -0
  11. package/dist/Char.d.ts +26 -0
  12. package/dist/Char.js +89 -0
  13. package/dist/Char.js.map +1 -0
  14. package/dist/Container.d.ts +44 -0
  15. package/dist/Container.js +148 -0
  16. package/dist/Container.js.map +1 -0
  17. package/dist/ContainerWidget.d.ts +42 -0
  18. package/dist/ContainerWidget.js +125 -0
  19. package/dist/ContainerWidget.js.map +1 -0
  20. package/dist/Date.d.ts +8 -0
  21. package/dist/Date.js +26 -0
  22. package/dist/Date.js.map +1 -0
  23. package/dist/DateTime.d.ts +8 -0
  24. package/dist/DateTime.js +26 -0
  25. package/dist/DateTime.js.map +1 -0
  26. package/dist/FiberGrid.d.ts +5 -0
  27. package/dist/FiberGrid.js +23 -0
  28. package/dist/FiberGrid.js.map +1 -0
  29. package/dist/Field.d.ts +59 -0
  30. package/dist/Field.js +162 -0
  31. package/dist/Field.js.map +1 -0
  32. package/dist/Float.d.ts +24 -0
  33. package/dist/Float.js +64 -0
  34. package/dist/Float.js.map +1 -0
  35. package/dist/FloatTime.d.ts +7 -0
  36. package/dist/FloatTime.js +26 -0
  37. package/dist/FloatTime.js.map +1 -0
  38. package/dist/Form.d.ts +53 -0
  39. package/dist/Form.js +199 -0
  40. package/dist/Form.js.map +1 -0
  41. package/dist/Group.d.ts +5 -0
  42. package/dist/Group.js +23 -0
  43. package/dist/Group.js.map +1 -0
  44. package/dist/Image.d.ts +7 -0
  45. package/dist/Image.js +26 -0
  46. package/dist/Image.js.map +1 -0
  47. package/dist/Integer.d.ts +8 -0
  48. package/dist/Integer.js +26 -0
  49. package/dist/Integer.js.map +1 -0
  50. package/dist/Label.d.ts +23 -0
  51. package/dist/Label.js +80 -0
  52. package/dist/Label.js.map +1 -0
  53. package/dist/Many2many.d.ts +26 -0
  54. package/dist/Many2many.js +80 -0
  55. package/dist/Many2many.js.map +1 -0
  56. package/dist/Many2one.d.ts +20 -0
  57. package/dist/Many2one.js +63 -0
  58. package/dist/Many2one.js.map +1 -0
  59. package/dist/NewLine.d.ts +5 -0
  60. package/dist/NewLine.js +26 -0
  61. package/dist/NewLine.js.map +1 -0
  62. package/dist/Notebook.d.ts +8 -0
  63. package/dist/Notebook.js +41 -0
  64. package/dist/Notebook.js.map +1 -0
  65. package/dist/One2many.d.ts +44 -0
  66. package/dist/One2many.js +130 -0
  67. package/dist/One2many.js.map +1 -0
  68. package/dist/Page.d.ts +5 -0
  69. package/dist/Page.js +23 -0
  70. package/dist/Page.js.map +1 -0
  71. package/dist/ProgressBar.d.ts +7 -0
  72. package/dist/ProgressBar.js +26 -0
  73. package/dist/ProgressBar.js.map +1 -0
  74. package/dist/Reference.d.ts +7 -0
  75. package/dist/Reference.js +26 -0
  76. package/dist/Reference.js.map +1 -0
  77. package/dist/SearchFilter.d.ts +28 -0
  78. package/dist/SearchFilter.js +81 -0
  79. package/dist/SearchFilter.js.map +1 -0
  80. package/dist/Selection.d.ts +20 -0
  81. package/dist/Selection.js +63 -0
  82. package/dist/Selection.js.map +1 -0
  83. package/dist/Separator.d.ts +12 -0
  84. package/dist/Separator.js +46 -0
  85. package/dist/Separator.js.map +1 -0
  86. package/dist/Text.d.ts +29 -0
  87. package/dist/Text.js +96 -0
  88. package/dist/Text.js.map +1 -0
  89. package/dist/Timeline.d.ts +17 -0
  90. package/dist/Timeline.js +56 -0
  91. package/dist/Timeline.js.map +1 -0
  92. package/dist/Tree.d.ts +31 -0
  93. package/dist/Tree.js +96 -0
  94. package/dist/Tree.js.map +1 -0
  95. package/dist/Widget.d.ts +47 -0
  96. package/dist/Widget.js +116 -0
  97. package/dist/Widget.js.map +1 -0
  98. package/dist/WidgetFactory.d.ts +9 -0
  99. package/dist/WidgetFactory.js +157 -0
  100. package/dist/WidgetFactory.js.map +1 -0
  101. package/dist/helpers/attributeParser.d.ts +6 -0
  102. package/dist/helpers/attributeParser.js +83 -0
  103. package/dist/helpers/attributeParser.js.map +1 -0
  104. package/dist/helpers/contextParser.d.ts +5 -0
  105. package/dist/helpers/contextParser.js +52 -0
  106. package/dist/helpers/contextParser.js.map +1 -0
  107. package/dist/helpers/domainParser.d.ts +5 -0
  108. package/dist/helpers/domainParser.js +26 -0
  109. package/dist/helpers/domainParser.js.map +1 -0
  110. package/dist/helpers/fieldParser.d.ts +5 -0
  111. package/dist/helpers/fieldParser.js +20 -0
  112. package/dist/helpers/fieldParser.js.map +1 -0
  113. package/dist/helpers/nodeParser.d.ts +7 -0
  114. package/dist/helpers/nodeParser.js +50 -0
  115. package/dist/helpers/nodeParser.js.map +1 -0
  116. package/dist/helpers/onChangeParser.d.ts +5 -0
  117. package/dist/helpers/onChangeParser.js +16 -0
  118. package/dist/helpers/onChangeParser.js.map +1 -0
  119. package/dist/helpers/stateParser.d.ts +14 -0
  120. package/dist/helpers/stateParser.js +46 -0
  121. package/dist/helpers/stateParser.js.map +1 -0
  122. package/dist/index.d.ts +33 -0
  123. package/dist/index.js +34 -0
  124. package/dist/index.js.map +1 -0
  125. package/package.json +49 -0
  126. package/src/Binary.ts +29 -0
  127. package/src/Boolean.ts +12 -0
  128. package/src/Button.ts +78 -0
  129. package/src/Char.ts +65 -0
  130. package/src/Container.ts +171 -0
  131. package/src/ContainerWidget.ts +105 -0
  132. package/src/Date.ts +12 -0
  133. package/src/DateTime.ts +12 -0
  134. package/src/FiberGrid.ts +9 -0
  135. package/src/Field.ts +147 -0
  136. package/src/Float.ts +45 -0
  137. package/src/FloatTime.ts +8 -0
  138. package/src/Form.ts +212 -0
  139. package/src/Group.ts +9 -0
  140. package/src/Image.ts +8 -0
  141. package/src/Integer.ts +13 -0
  142. package/src/Label.ts +46 -0
  143. package/src/Many2many.ts +59 -0
  144. package/src/Many2one.ts +44 -0
  145. package/src/NewLine.ts +9 -0
  146. package/src/Notebook.ts +24 -0
  147. package/src/One2many.ts +106 -0
  148. package/src/Page.ts +9 -0
  149. package/src/ProgressBar.ts +8 -0
  150. package/src/Reference.ts +10 -0
  151. package/src/SearchFilter.ts +81 -0
  152. package/src/Selection.ts +44 -0
  153. package/src/Separator.ts +30 -0
  154. package/src/Text.ts +76 -0
  155. package/src/Timeline.ts +44 -0
  156. package/src/Tree.ts +93 -0
  157. package/src/Widget.ts +121 -0
  158. package/src/WidgetFactory.ts +158 -0
  159. package/src/helpers/attributeParser.ts +108 -0
  160. package/src/helpers/contextParser.ts +66 -0
  161. package/src/helpers/domainParser.ts +39 -0
  162. package/src/helpers/fieldParser.ts +27 -0
  163. package/src/helpers/nodeParser.ts +57 -0
  164. package/src/helpers/onChangeParser.ts +18 -0
  165. package/src/helpers/stateParser.ts +62 -0
  166. package/src/index.ts +67 -0
  167. package/src/spec/Boolean.spec.ts +36 -0
  168. package/src/spec/Button.spec.ts +58 -0
  169. package/src/spec/Char.spec.ts +80 -0
  170. package/src/spec/Container.spec.ts +47 -0
  171. package/src/spec/ContainerWidget.spec.ts +35 -0
  172. package/src/spec/Date.spec.ts +36 -0
  173. package/src/spec/DateTime.spec.ts +36 -0
  174. package/src/spec/Float.spec.ts +29 -0
  175. package/src/spec/Form.spec.ts +976 -0
  176. package/src/spec/Group.spec.ts +32 -0
  177. package/src/spec/Label.spec.ts +46 -0
  178. package/src/spec/Many2many.spec.ts +36 -0
  179. package/src/spec/Many2one.spec.ts +36 -0
  180. package/src/spec/One2many.spec.ts +354 -0
  181. package/src/spec/SearchFilter.spec.ts +955 -0
  182. package/src/spec/Selection.spec.ts +52 -0
  183. package/src/spec/Separator.spec.ts +14 -0
  184. package/src/spec/Tree.spec.ts +214 -0
  185. package/src/spec/Widget.spec.ts +45 -0
  186. package/src/spec/WidgetFactory.spec.ts +40 -0
  187. package/src/spec/attributeParser.spec.ts +173 -0
  188. package/src/spec/contextParser.spec.ts +57 -0
  189. package/src/spec/domainParser.spec.ts +40 -0
  190. package/src/spec/fixtures/WidgetImpl.ts +10 -0
  191. package/src/spec/stateParser.spec.ts +161 -0
package/dist/Form.js ADDED
@@ -0,0 +1,199 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import WidgetFactory from "./WidgetFactory";
13
+ import Container from "./Container";
14
+ import ContainerWidget from "./ContainerWidget";
15
+ import { parseNodes } from "./helpers/nodeParser";
16
+ import { evaluateAttributes } from "./helpers/attributeParser";
17
+ import { evaluateStates, evaluateButtonStates } from "./helpers/stateParser";
18
+ import { parseContext } from "./helpers/contextParser";
19
+ import { parseOnChange } from "./helpers/onChangeParser";
20
+ var Form = /** @class */ (function () {
21
+ /*
22
+ _widgets = {
23
+ *[Symbol.iterator]() {
24
+ if (this._container && this._container.length) {
25
+ this._container.forEach((item) => {
26
+
27
+ // yield item
28
+ });
29
+ }
30
+ }
31
+ };
32
+ get widgets() {
33
+ return this._widgets;
34
+ }
35
+ */
36
+ function Form(fields, columns) {
37
+ if (columns === void 0) { columns = 4; }
38
+ this._string = null;
39
+ /**
40
+ * Widget type
41
+ */
42
+ this._type = "form";
43
+ /**
44
+ * Determines if form is read only (default is false)
45
+ */
46
+ this._readOnly = false;
47
+ /**
48
+ * Context
49
+ */
50
+ this._context = {};
51
+ /**
52
+ * Collection of onChange actions for fields
53
+ */
54
+ this._onChangeFields = {};
55
+ this._fields = fields;
56
+ this._container = new Container(columns);
57
+ }
58
+ Object.defineProperty(Form.prototype, "fields", {
59
+ get: function () {
60
+ return this._fields;
61
+ },
62
+ enumerable: false,
63
+ configurable: true
64
+ });
65
+ Object.defineProperty(Form.prototype, "container", {
66
+ get: function () {
67
+ return this._container;
68
+ },
69
+ enumerable: false,
70
+ configurable: true
71
+ });
72
+ Object.defineProperty(Form.prototype, "string", {
73
+ get: function () {
74
+ return this._string;
75
+ },
76
+ enumerable: false,
77
+ configurable: true
78
+ });
79
+ Object.defineProperty(Form.prototype, "type", {
80
+ get: function () {
81
+ return this._type;
82
+ },
83
+ enumerable: false,
84
+ configurable: true
85
+ });
86
+ Object.defineProperty(Form.prototype, "readOnly", {
87
+ get: function () {
88
+ return this._readOnly;
89
+ },
90
+ set: function (value) {
91
+ this._readOnly = value;
92
+ },
93
+ enumerable: false,
94
+ configurable: true
95
+ });
96
+ Object.defineProperty(Form.prototype, "context", {
97
+ get: function () {
98
+ return this._context;
99
+ },
100
+ set: function (value) {
101
+ this._context = value;
102
+ },
103
+ enumerable: false,
104
+ configurable: true
105
+ });
106
+ Object.defineProperty(Form.prototype, "onChangeFields", {
107
+ get: function () {
108
+ return this._onChangeFields;
109
+ },
110
+ set: function (value) {
111
+ this._onChangeFields = value;
112
+ },
113
+ enumerable: false,
114
+ configurable: true
115
+ });
116
+ Form.prototype.parse = function (xml, options) {
117
+ var _a = options || {}, _b = _a.values, values = _b === void 0 ? {} : _b, _c = _a.readOnly, readOnly = _c === void 0 ? false : _c;
118
+ var parser = new DOMParser();
119
+ var view = parser.parseFromString(xml, "text/xml");
120
+ this._string = view.documentElement.getAttribute("string");
121
+ this._readOnly = readOnly;
122
+ this._context = values["id"]
123
+ ? { active_id: values["id"], active_ids: [values["id"]] }
124
+ : {};
125
+ this.parseNode({
126
+ node: view.documentElement,
127
+ container: this._container,
128
+ values: values,
129
+ });
130
+ };
131
+ Form.prototype.parseNode = function (_a) {
132
+ var _this = this;
133
+ var node = _a.node, container = _a.container, values = _a.values;
134
+ var widgetFactory = new WidgetFactory();
135
+ var nodesParsed = parseNodes(node.childNodes, this._fields);
136
+ nodesParsed.forEach(function (nodeParsed) {
137
+ var tag = nodeParsed.tag, tagAttributes = nodeParsed.tagAttributes, child = nodeParsed.child;
138
+ var evaluatedTagAttributes = evaluateAttributes({
139
+ tagAttributes: tagAttributes,
140
+ values: values,
141
+ fields: _this._fields,
142
+ });
143
+ var evaluatedStateAttributes;
144
+ if (tag === "button" && tagAttributes.states) {
145
+ evaluatedStateAttributes = evaluateButtonStates({
146
+ states: tagAttributes.states,
147
+ values: values,
148
+ });
149
+ }
150
+ else {
151
+ evaluatedStateAttributes = evaluateStates({
152
+ fieldName: tagAttributes.name,
153
+ values: values,
154
+ fields: _this._fields,
155
+ });
156
+ }
157
+ var widgetContext = parseContext({
158
+ context: tagAttributes["context"] || _this._fields["context"],
159
+ values: values,
160
+ fields: _this._fields,
161
+ });
162
+ if (tag !== "button") {
163
+ _this._context = __assign(__assign({}, _this._context), widgetContext);
164
+ }
165
+ if (tagAttributes["on_change"]) {
166
+ _this._onChangeFields[tagAttributes.name] = parseOnChange(tagAttributes["on_change"]);
167
+ }
168
+ var domain = undefined;
169
+ if (tagAttributes["domain"] &&
170
+ tagAttributes["domain"] !== "" &&
171
+ tagAttributes["domain"] !== "[]") {
172
+ domain = tagAttributes["domain"];
173
+ }
174
+ if (_this._fields[tagAttributes.name] &&
175
+ _this._fields[tagAttributes.name].domain &&
176
+ _this._fields[tagAttributes.name].domain !== "" &&
177
+ _this._fields[tagAttributes.name].domain !== "[]") {
178
+ domain = _this._fields[tagAttributes.name].domain;
179
+ }
180
+ var widget = widgetFactory.createWidget(tag, __assign(__assign(__assign({}, evaluatedTagAttributes), evaluatedStateAttributes), { context: widgetContext, domain: domain }));
181
+ if (widget instanceof ContainerWidget) {
182
+ _this.parseNode({ node: child, container: widget.container, values: values });
183
+ }
184
+ // If the form is set to readonly, reflect it to its children
185
+ widget.readOnly = widget.readOnly || _this.readOnly;
186
+ container.addWidget(widget);
187
+ });
188
+ };
189
+ /**
190
+ * Calls container's findById method to find the widgets matching with param id
191
+ * @param {string} id id to find
192
+ */
193
+ Form.prototype.findById = function (id) {
194
+ return this.container.findById(id);
195
+ };
196
+ return Form;
197
+ }());
198
+ export default Form;
199
+ //# sourceMappingURL=Form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.js","sourceRoot":"","sources":["../src/Form.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAOzD;IA4DE;;;;;;;;;;;;;;MAcE;IAEF,cAAY,MAAc,EAAE,OAAmB;QAAnB,wBAAA,EAAA,WAAmB;QA9D/C,YAAO,GAAkB,IAAI,CAAC;QAK9B;;WAEG;QACH,UAAK,GAAW,MAAM,CAAC;QAKvB;;WAEG;QACH,cAAS,GAAY,KAAK,CAAC;QAQ3B;;WAEG;QACH,aAAQ,GAAQ,EAAE,CAAC;QAQnB;;WAEG;QACH,oBAAe,GAAQ,EAAE,CAAC;QAyBxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IA1ED,sBAAI,wBAAM;aAAV;YACE,OAAO,IAAI,CAAC,OAAO,CAAC;QACtB,CAAC;;;OAAA;IAGD,sBAAI,2BAAS;aAAb;YACE,OAAO,IAAI,CAAC,UAAU,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M,QAAA,EAAE,CAAC,CAAC;aACtE;YAED,6DAA6D;YAC7D,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,KAAI,CAAC,QAAQ,CAAC;YACnD,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,uBAAQ,GAAR,UAAS,EAAU;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACrC,CAAC;IACH,WAAC;AAAD,CAAC,AAlMD,IAkMC;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,5 @@
1
+ import ContainerWidget from "./ContainerWidget";
2
+ declare class Group extends ContainerWidget {
3
+ constructor(props: any);
4
+ }
5
+ export default Group;
package/dist/Group.js ADDED
@@ -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 ContainerWidget from "./ContainerWidget";
15
+ var Group = /** @class */ (function (_super) {
16
+ __extends(Group, _super);
17
+ function Group(props) {
18
+ return _super.call(this, props) || this;
19
+ }
20
+ return Group;
21
+ }(ContainerWidget));
22
+ export default Group;
23
+ //# sourceMappingURL=Group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Group.js","sourceRoot":"","sources":["../src/Group.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD;IAAoB,yBAAe;IAC/B,eAAY,KAAU;eACpB,kBAAM,KAAK,CAAC;IACd,CAAC;IACL,YAAC;AAAD,CAAC,AAJD,CAAoB,eAAe,GAIlC;AAED,eAAe,KAAK,CAAC"}
@@ -0,0 +1,7 @@
1
+ import Field from "./Field";
2
+ /**
3
+ * Image base64 field
4
+ */
5
+ declare class Image extends Field {
6
+ }
7
+ export default Image;
package/dist/Image.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
+ * Image base64 field
17
+ */
18
+ var Image = /** @class */ (function (_super) {
19
+ __extends(Image, _super);
20
+ function Image() {
21
+ return _super !== null && _super.apply(this, arguments) || this;
22
+ }
23
+ return Image;
24
+ }(Field));
25
+ export default Image;
26
+ //# sourceMappingURL=Image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image.js","sourceRoot":"","sources":["../src/Image.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B;;GAEG;AACH;IAAoB,yBAAK;IAAzB;;IAA2B,CAAC;IAAD,YAAC;AAAD,CAAC,AAA5B,CAAoB,KAAK,GAAG;AAE5B,eAAe,KAAK,CAAC"}
@@ -0,0 +1,8 @@
1
+ import Field from "./Field";
2
+ /**
3
+ * Integer input
4
+ */
5
+ declare class Integer extends Field {
6
+ constructor(props?: any);
7
+ }
8
+ export default Integer;
@@ -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
+ * Integer input
17
+ */
18
+ var Integer = /** @class */ (function (_super) {
19
+ __extends(Integer, _super);
20
+ function Integer(props) {
21
+ return _super.call(this, props) || this;
22
+ }
23
+ return Integer;
24
+ }(Field));
25
+ export default Integer;
26
+ //# sourceMappingURL=Integer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Integer.js","sourceRoot":"","sources":["../src/Integer.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B;;GAEG;AACH;IAAsB,2BAAK;IAEzB,iBAAY,KAAW;eACrB,kBAAM,KAAK,CAAC;IACd,CAAC;IACH,cAAC;AAAD,CAAC,AALD,CAAsB,KAAK,GAK1B;AAED,eAAe,OAAO,CAAC"}
@@ -0,0 +1,23 @@
1
+ import Field from "./Field";
2
+ declare class Label extends Field {
3
+ /**
4
+ * Label text
5
+ */
6
+ _text: string;
7
+ get text(): string;
8
+ set text(value: string);
9
+ /**
10
+ * Align text
11
+ */
12
+ _align: string;
13
+ get align(): string;
14
+ set align(value: string);
15
+ /**
16
+ * Id of the field that this label goes with. Null if it's an independent label
17
+ */
18
+ _fieldForLabel: string | null;
19
+ get fieldForLabel(): string | null;
20
+ set fieldForLabel(value: string | null);
21
+ constructor(props?: any);
22
+ }
23
+ export default Label;
package/dist/Label.js ADDED
@@ -0,0 +1,80 @@
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
+ var __assign = (this && this.__assign) || function () {
15
+ __assign = Object.assign || function(t) {
16
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
17
+ s = arguments[i];
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
19
+ t[p] = s[p];
20
+ }
21
+ return t;
22
+ };
23
+ return __assign.apply(this, arguments);
24
+ };
25
+ import Field from "./Field";
26
+ var Label = /** @class */ (function (_super) {
27
+ __extends(Label, _super);
28
+ function Label(props) {
29
+ var _this = _super.call(this, __assign(__assign({}, props), { nolabel: true })) || this;
30
+ /**
31
+ * Label text
32
+ */
33
+ _this._text = "";
34
+ /**
35
+ * Align text
36
+ */
37
+ _this._align = "left";
38
+ /**
39
+ * Id of the field that this label goes with. Null if it's an independent label
40
+ */
41
+ _this._fieldForLabel = null;
42
+ if (props === null || props === void 0 ? void 0 : props.fieldForLabel) {
43
+ _this._fieldForLabel = props.fieldForLabel;
44
+ }
45
+ return _this;
46
+ }
47
+ Object.defineProperty(Label.prototype, "text", {
48
+ get: function () {
49
+ return this._text;
50
+ },
51
+ set: function (value) {
52
+ this._text = value;
53
+ },
54
+ enumerable: false,
55
+ configurable: true
56
+ });
57
+ Object.defineProperty(Label.prototype, "align", {
58
+ get: function () {
59
+ return this._align;
60
+ },
61
+ set: function (value) {
62
+ this._align = value;
63
+ },
64
+ enumerable: false,
65
+ configurable: true
66
+ });
67
+ Object.defineProperty(Label.prototype, "fieldForLabel", {
68
+ get: function () {
69
+ return this._fieldForLabel;
70
+ },
71
+ set: function (value) {
72
+ this._fieldForLabel = value;
73
+ },
74
+ enumerable: false,
75
+ configurable: true
76
+ });
77
+ return Label;
78
+ }(Field));
79
+ export default Label;
80
+ //# sourceMappingURL=Label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.js","sourceRoot":"","sources":["../src/Label.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B;IAAoB,yBAAK;IAkCvB,eAAY,KAAW;QAAvB,YACE,wCAAW,KAAK,KAAE,OAAO,EAAE,IAAI,IAAG,SAKnC;QAvCD;;WAEG;QACH,WAAK,GAAW,EAAE,CAAC;QAQnB;;WAEG;QACH,YAAM,GAAW,MAAM,CAAC;QAQxB;;WAEG;QACH,oBAAc,GAAkB,IAAI,CAAC;QAWnC,IAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,EAAE;YACxB,KAAI,CAAC,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC;SAC3C;;IACH,CAAC;IAnCD,sBAAI,uBAAI;aAAR;YACE,OAAO,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC;aACD,UAAS,KAAa;YACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACrB,CAAC;;;OAHA;IASD,sBAAI,wBAAK;aAAT;YACE,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;aACD,UAAU,KAAa;YACrB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACtB,CAAC;;;OAHA;IASD,sBAAI,gCAAa;aAAjB;YACE,OAAO,IAAI,CAAC,cAAc,CAAC;QAC7B,CAAC;aACD,UAAkB,KAAoB;YACpC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAHA;IAYH,YAAC;AAAD,CAAC,AAzCD,CAAoB,KAAK,GAyCxB;AAED,eAAe,KAAK,CAAC"}
@@ -0,0 +1,26 @@
1
+ import Field from "./Field";
2
+ /**
3
+ * A Many2many relationship field
4
+ */
5
+ declare class Many2many extends Field {
6
+ /**
7
+ * Field size
8
+ */
9
+ _size: number;
10
+ get size(): number;
11
+ set size(value: number);
12
+ /**
13
+ * Relation
14
+ */
15
+ _relation: string;
16
+ get relation(): string;
17
+ set relation(value: string);
18
+ /**
19
+ * Must expand widget
20
+ */
21
+ _mustExpand: boolean;
22
+ get mustExpand(): boolean;
23
+ set mustExpand(value: boolean);
24
+ constructor(props: any);
25
+ }
26
+ export default Many2many;
@@ -0,0 +1,80 @@
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
+ * A Many2many relationship field
17
+ */
18
+ var Many2many = /** @class */ (function (_super) {
19
+ __extends(Many2many, _super);
20
+ function Many2many(props) {
21
+ var _this = _super.call(this, props) || this;
22
+ /**
23
+ * Field size
24
+ */
25
+ _this._size = 150;
26
+ /**
27
+ * Relation
28
+ */
29
+ _this._relation = "";
30
+ /**
31
+ * Must expand widget
32
+ */
33
+ _this._mustExpand = false;
34
+ if (props) {
35
+ if (props.size) {
36
+ _this._size = props.size;
37
+ }
38
+ if (props.relation) {
39
+ _this._relation = props.relation;
40
+ }
41
+ if (!props.colspan) {
42
+ _this._mustExpand = true;
43
+ }
44
+ }
45
+ return _this;
46
+ }
47
+ Object.defineProperty(Many2many.prototype, "size", {
48
+ get: function () {
49
+ return this._size;
50
+ },
51
+ set: function (value) {
52
+ this._size = value;
53
+ },
54
+ enumerable: false,
55
+ configurable: true
56
+ });
57
+ Object.defineProperty(Many2many.prototype, "relation", {
58
+ get: function () {
59
+ return this._relation;
60
+ },
61
+ set: function (value) {
62
+ this._relation = value;
63
+ },
64
+ enumerable: false,
65
+ configurable: true
66
+ });
67
+ Object.defineProperty(Many2many.prototype, "mustExpand", {
68
+ get: function () {
69
+ return this._mustExpand;
70
+ },
71
+ set: function (value) {
72
+ this._mustExpand = value;
73
+ },
74
+ enumerable: false,
75
+ configurable: true
76
+ });
77
+ return Many2many;
78
+ }(Field));
79
+ export default Many2many;
80
+ //# sourceMappingURL=Many2many.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Many2many.js","sourceRoot":"","sources":["../src/Many2many.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B;;GAEG;AACH;IAAwB,6BAAK;IAkC3B,mBAAY,KAAU;QAAtB,YACE,kBAAM,KAAK,CAAC,SAeb;QAjDD;;WAEG;QACH,WAAK,GAAW,GAAG,CAAC;QAQpB;;WAEG;QACH,eAAS,GAAW,EAAE,CAAC;QAQvB;;WAEG;QACF,iBAAW,GAAY,KAAK,CAAC;QAW5B,IAAI,KAAK,EAAE;YACT,IAAI,KAAK,CAAC,IAAI,EAAE;gBACd,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC;aACzB;YAED,IAAI,KAAK,CAAC,QAAQ,EAAE;gBAClB,KAAI,CAAC,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAC;aACjC;YAED,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;gBAClB,KAAI,CAAC,WAAW,GAAG,IAAI,CAAC;aACzB;SACF;;IACH,CAAC;IA7CD,sBAAI,2BAAI;aAAR;YACE,OAAO,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC;aACD,UAAS,KAAa;YACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACrB,CAAC;;;OAHA;IASD,sBAAI,+BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,SAAS,CAAC;QACxB,CAAC;aACD,UAAa,KAAa;YACxB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAHA;IASA,sBAAI,iCAAU;aAAd;YACE,OAAO,IAAI,CAAC,WAAW,CAAC;QAC1B,CAAC;aACD,UAAe,KAAc;YAC3B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAHA;IAsBJ,gBAAC;AAAD,CAAC,AAnDD,CAAwB,KAAK,GAmD5B;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,20 @@
1
+ import Field from "./Field";
2
+ /**
3
+ * A many2one relationship field
4
+ */
5
+ declare class Many2one extends Field {
6
+ /**
7
+ * Field size
8
+ */
9
+ _size: number;
10
+ get size(): number;
11
+ set size(value: number);
12
+ /**
13
+ * Relation
14
+ */
15
+ _relation: string;
16
+ get relation(): string;
17
+ set relation(value: string);
18
+ constructor(props: any);
19
+ }
20
+ export default Many2one;
@@ -0,0 +1,63 @@
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
+ * A many2one relationship field
17
+ */
18
+ var Many2one = /** @class */ (function (_super) {
19
+ __extends(Many2one, _super);
20
+ function Many2one(props) {
21
+ var _this = _super.call(this, props) || this;
22
+ /**
23
+ * Field size
24
+ */
25
+ _this._size = 150;
26
+ /**
27
+ * Relation
28
+ */
29
+ _this._relation = "";
30
+ if (props) {
31
+ if (props.size) {
32
+ _this._size = props.size;
33
+ }
34
+ if (props.relation) {
35
+ _this._relation = props.relation;
36
+ }
37
+ }
38
+ return _this;
39
+ }
40
+ Object.defineProperty(Many2one.prototype, "size", {
41
+ get: function () {
42
+ return this._size;
43
+ },
44
+ set: function (value) {
45
+ this._size = value;
46
+ },
47
+ enumerable: false,
48
+ configurable: true
49
+ });
50
+ Object.defineProperty(Many2one.prototype, "relation", {
51
+ get: function () {
52
+ return this._relation;
53
+ },
54
+ set: function (value) {
55
+ this._relation = value;
56
+ },
57
+ enumerable: false,
58
+ configurable: true
59
+ });
60
+ return Many2one;
61
+ }(Field));
62
+ export default Many2one;
63
+ //# sourceMappingURL=Many2one.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Many2one.js","sourceRoot":"","sources":["../src/Many2one.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B;;GAEG;AACH;IAAuB,4BAAK;IAuB1B,kBAAY,KAAU;QAAtB,YACE,kBAAM,KAAK,CAAC,SAWb;QAlCD;;WAEG;QACH,WAAK,GAAW,GAAG,CAAC;QAQpB;;WAEG;QACH,eAAS,GAAW,EAAE,CAAC;QAWrB,IAAI,KAAK,EAAE;YACT,IAAI,KAAK,CAAC,IAAI,EAAE;gBACd,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC;aACzB;YAED,IAAI,KAAK,CAAC,QAAQ,EAAE;gBAClB,KAAI,CAAC,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAC;aACjC;SACF;;IACH,CAAC;IA9BD,sBAAI,0BAAI;aAAR;YACE,OAAO,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC;aACD,UAAS,KAAa;YACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACrB,CAAC;;;OAHA;IASD,sBAAI,8BAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,SAAS,CAAC;QACxB,CAAC;aACD,UAAa,KAAa;YACxB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACzB,CAAC;;;OAHA;IAkBH,eAAC;AAAD,CAAC,AApCD,CAAuB,KAAK,GAoC3B;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import Widget from "./Widget";
2
+ declare class NewLine extends Widget {
3
+ findById(id: string): null;
4
+ }
5
+ export default NewLine;
@@ -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 Widget from "./Widget";
15
+ var NewLine = /** @class */ (function (_super) {
16
+ __extends(NewLine, _super);
17
+ function NewLine() {
18
+ return _super !== null && _super.apply(this, arguments) || this;
19
+ }
20
+ NewLine.prototype.findById = function (id) {
21
+ return null;
22
+ };
23
+ return NewLine;
24
+ }(Widget));
25
+ export default NewLine;
26
+ //# sourceMappingURL=NewLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewLine.js","sourceRoot":"","sources":["../src/NewLine.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B;IAAsB,2BAAM;IAA5B;;IAIA,CAAC;IAHC,0BAAQ,GAAR,UAAS,EAAU;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IACH,cAAC;AAAD,CAAC,AAJD,CAAsB,MAAM,GAI3B;AAED,eAAe,OAAO,CAAC"}