@livinglogic/livingapi 0.10.0 → 0.13.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/CHANGELOG.md +68 -0
- package/README.md +2 -2
- package/dist/esm-node/livingapi.js +1 -1823
- package/dist/esm-node/livingapi.js.map +1 -1
- package/dist/esm-static/livingapi.js +1 -1823
- package/dist/esm-static/livingapi.js.map +1 -1
- package/dist/umd/livingapi.js +1 -1
- package/dist/umd/livingapi.js.map +1 -1
- package/package.json +14 -11
- package/rollup.config.js +1 -1
- package/src/livingapi.js +1641 -186
|
@@ -1,1824 +1,2 @@
|
|
|
1
|
-
import * as ul4 from '/static/ul4/1.0.0/dist/esm/ul4.js';
|
|
2
|
-
import { AttributeError, Proto, _repr, _makeset, _ismap, ArgumentError, _isobject, TypeError as TypeError$1, expose, _bool, _havemap, _format, _islist, _ne, _asjson, _fromjson, register } from '/static/ul4/1.0.0/dist/esm/ul4.js';
|
|
3
|
-
|
|
4
|
-
function _classCallCheck(instance, Constructor) {
|
|
5
|
-
if (!(instance instanceof Constructor)) {
|
|
6
|
-
throw new TypeError("Cannot call a class as a function");
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function _defineProperties(target, props) {
|
|
11
|
-
for (var i = 0; i < props.length; i++) {
|
|
12
|
-
var descriptor = props[i];
|
|
13
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
14
|
-
descriptor.configurable = true;
|
|
15
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
16
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
21
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
22
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
23
|
-
return Constructor;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function _inherits(subClass, superClass) {
|
|
27
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
28
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
32
|
-
constructor: {
|
|
33
|
-
value: subClass,
|
|
34
|
-
writable: true,
|
|
35
|
-
configurable: true
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function _getPrototypeOf(o) {
|
|
42
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
43
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
44
|
-
};
|
|
45
|
-
return _getPrototypeOf(o);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function _setPrototypeOf(o, p) {
|
|
49
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
50
|
-
o.__proto__ = p;
|
|
51
|
-
return o;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
return _setPrototypeOf(o, p);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function _assertThisInitialized(self) {
|
|
58
|
-
if (self === void 0) {
|
|
59
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return self;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function _possibleConstructorReturn(self, call) {
|
|
66
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
67
|
-
return call;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return _assertThisInitialized(self);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function _superPropBase(object, property) {
|
|
74
|
-
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
75
|
-
object = _getPrototypeOf(object);
|
|
76
|
-
if (object === null) break;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return object;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function _get(target, property, receiver) {
|
|
83
|
-
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
84
|
-
_get = Reflect.get;
|
|
85
|
-
} else {
|
|
86
|
-
_get = function _get(target, property, receiver) {
|
|
87
|
-
var base = _superPropBase(target, property);
|
|
88
|
-
|
|
89
|
-
if (!base) return;
|
|
90
|
-
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
91
|
-
|
|
92
|
-
if (desc.get) {
|
|
93
|
-
return desc.get.call(receiver);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
return desc.value;
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return _get(target, property, receiver || target);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function _slicedToArray(arr, i) {
|
|
104
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function _toConsumableArray(arr) {
|
|
108
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function _arrayWithoutHoles(arr) {
|
|
112
|
-
if (Array.isArray(arr)) {
|
|
113
|
-
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
|
114
|
-
|
|
115
|
-
return arr2;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
function _arrayWithHoles(arr) {
|
|
120
|
-
if (Array.isArray(arr)) return arr;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function _iterableToArray(iter) {
|
|
124
|
-
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
function _iterableToArrayLimit(arr, i) {
|
|
128
|
-
var _arr = [];
|
|
129
|
-
var _n = true;
|
|
130
|
-
var _d = false;
|
|
131
|
-
var _e = undefined;
|
|
132
|
-
|
|
133
|
-
try {
|
|
134
|
-
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
135
|
-
_arr.push(_s.value);
|
|
136
|
-
|
|
137
|
-
if (i && _arr.length === i) break;
|
|
138
|
-
}
|
|
139
|
-
} catch (err) {
|
|
140
|
-
_d = true;
|
|
141
|
-
_e = err;
|
|
142
|
-
} finally {
|
|
143
|
-
try {
|
|
144
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
145
|
-
} finally {
|
|
146
|
-
if (_d) throw _e;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
return _arr;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
function _nonIterableSpread() {
|
|
154
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
function _nonIterableRest() {
|
|
158
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
var version = "0.10.0";
|
|
162
|
-
|
|
163
|
-
var Base =
|
|
164
|
-
/*#__PURE__*/
|
|
165
|
-
function (_ul4$Proto) {
|
|
166
|
-
_inherits(Base, _ul4$Proto);
|
|
167
|
-
|
|
168
|
-
function Base() {
|
|
169
|
-
_classCallCheck(this, Base);
|
|
170
|
-
|
|
171
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Base).call(this));
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
_createClass(Base, [{
|
|
175
|
-
key: "ul4ondump",
|
|
176
|
-
value: function ul4ondump(encoder) {
|
|
177
|
-
for (var i = 0; i < this._ul4onattrs.length; ++i) {
|
|
178
|
-
encoder.dump(this._dumpUL4ONAttr(this._ul4onattrs[i]));
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}, {
|
|
182
|
-
key: "_dumpUL4ONAttr",
|
|
183
|
-
value: function _dumpUL4ONAttr(name) {
|
|
184
|
-
return this[name];
|
|
185
|
-
}
|
|
186
|
-
}, {
|
|
187
|
-
key: "ul4onload",
|
|
188
|
-
value: function ul4onload(decoder) {
|
|
189
|
-
var i = 0;
|
|
190
|
-
|
|
191
|
-
for (var iter = decoder.loadcontent();; ++i) {
|
|
192
|
-
var iteritem = iter.next();
|
|
193
|
-
if (iteritem.done) break;
|
|
194
|
-
if (i < this._ul4onattrs.length) this._loadUL4ONAttr(this._ul4onattrs[i], iteritem.value);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
for (; i < this._ul4onattrs.length; ++i) {
|
|
198
|
-
this._setDefaultUL4ONAttr(this._ul4onattrs[i]);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}, {
|
|
202
|
-
key: "_loadUL4ONAttr",
|
|
203
|
-
value: function _loadUL4ONAttr(name, value) {
|
|
204
|
-
this[name] = value;
|
|
205
|
-
}
|
|
206
|
-
}, {
|
|
207
|
-
key: "_setDefaultUL4ONAttr",
|
|
208
|
-
value: function _setDefaultUL4ONAttr(name) {
|
|
209
|
-
this[name] = null;
|
|
210
|
-
}
|
|
211
|
-
}, {
|
|
212
|
-
key: "__getattr__",
|
|
213
|
-
value: function __getattr__(name) {
|
|
214
|
-
if (this._ul4attrs.has(name)) {
|
|
215
|
-
var value = this[name];
|
|
216
|
-
|
|
217
|
-
if (typeof value === "function") {
|
|
218
|
-
var realvalue = value.bind(this);
|
|
219
|
-
realvalue._ul4_name = value._ul4_name || value.name;
|
|
220
|
-
realvalue._ul4_signature = value._ul4_signature;
|
|
221
|
-
realvalue._ul4_needsobject = value._ul4_needsobject;
|
|
222
|
-
realvalue._ul4_needscontext = value._ul4_needscontext;
|
|
223
|
-
return realvalue;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
return value;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
throw new AttributeError(this, name);
|
|
230
|
-
}
|
|
231
|
-
}, {
|
|
232
|
-
key: "__repr__",
|
|
233
|
-
value: function __repr__() {
|
|
234
|
-
return "<" + this.constructor.name + ">";
|
|
235
|
-
}
|
|
236
|
-
}]);
|
|
237
|
-
|
|
238
|
-
return Base;
|
|
239
|
-
}(Proto);
|
|
240
|
-
var Handler =
|
|
241
|
-
/*#__PURE__*/
|
|
242
|
-
function () {
|
|
243
|
-
function Handler() {
|
|
244
|
-
_classCallCheck(this, Handler);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
_createClass(Handler, [{
|
|
248
|
-
key: "save",
|
|
249
|
-
value: function save(record) {}
|
|
250
|
-
}, {
|
|
251
|
-
key: "delete",
|
|
252
|
-
value: function _delete(record) {}
|
|
253
|
-
}]);
|
|
254
|
-
|
|
255
|
-
return Handler;
|
|
256
|
-
}();
|
|
257
|
-
var Globals =
|
|
258
|
-
/*#__PURE__*/
|
|
259
|
-
function (_Base) {
|
|
260
|
-
_inherits(Globals, _Base);
|
|
261
|
-
|
|
262
|
-
function Globals() {
|
|
263
|
-
var _this;
|
|
264
|
-
|
|
265
|
-
_classCallCheck(this, Globals);
|
|
266
|
-
|
|
267
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(Globals).call(this));
|
|
268
|
-
_this.version = null;
|
|
269
|
-
_this.platform = null;
|
|
270
|
-
_this.user = null;
|
|
271
|
-
_this.maxdbactions = null;
|
|
272
|
-
_this.maxtemplateruntime = null;
|
|
273
|
-
_this.flashmessages = null;
|
|
274
|
-
_this.handler = new Handler();
|
|
275
|
-
return _this;
|
|
276
|
-
} // distance between two geo coordinates (see https://de.wikipedia.org/wiki/Orthodrome#Genauere_Formel_zur_Abstandsberechnung_auf_der_Erde)
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
_createClass(Globals, [{
|
|
280
|
-
key: "__repr__",
|
|
281
|
-
value: function __repr__() {
|
|
282
|
-
return "<Globals version=" + _repr(this.version) + ">";
|
|
283
|
-
}
|
|
284
|
-
}], [{
|
|
285
|
-
key: "geodist",
|
|
286
|
-
value: function geodist(geo1, geo2) {
|
|
287
|
-
var sqsin = function sqsin(x) {
|
|
288
|
-
x = Math.sin(x);
|
|
289
|
-
return x * x;
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
var sqcos = function sqsos(x) {
|
|
293
|
-
x = Math.cos(x);
|
|
294
|
-
return x * x;
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
var deg2rad = Math.PI / 180; // Conversion factor degree -> radians
|
|
298
|
-
|
|
299
|
-
var radius = 6378.137; // Equatorial radius of earth in km
|
|
300
|
-
|
|
301
|
-
var flat = 1 / 298.257223563; // Earth flattening
|
|
302
|
-
|
|
303
|
-
var lat1 = geo1.lat * deg2rad;
|
|
304
|
-
var long1 = geo1["long"] * deg2rad;
|
|
305
|
-
var lat2 = geo2.lat * deg2rad;
|
|
306
|
-
var long2 = geo2["long"] * deg2rad;
|
|
307
|
-
var F = (lat1 + lat2) / 2;
|
|
308
|
-
var G = (lat1 - lat2) / 2;
|
|
309
|
-
var l = (long1 - long2) / 2;
|
|
310
|
-
var S = sqsin(G) * sqcos(l) + sqcos(F) * sqsin(l);
|
|
311
|
-
var C = sqcos(G) * sqcos(l) + sqsin(F) * sqsin(l);
|
|
312
|
-
var w = Math.atan(Math.sqrt(S / C));
|
|
313
|
-
var D = 2 * w * radius;
|
|
314
|
-
var T = Math.sqrt(S * C) / w;
|
|
315
|
-
var H1 = (3 * T - 1) / (2 * C);
|
|
316
|
-
var H2 = (3 * T + 1) / (2 * S);
|
|
317
|
-
var s = D * (1 + flat * H1 * sqsin(F) * sqcos(G) - flat * H2 * sqcos(F) * sqsin(G));
|
|
318
|
-
return s;
|
|
319
|
-
}
|
|
320
|
-
}]);
|
|
321
|
-
|
|
322
|
-
return Globals;
|
|
323
|
-
}(Base);
|
|
324
|
-
Globals.prototype._ul4onattrs = ["version", "platform", "user", "maxdbactions", "maxtemplateruntime", "flashmessages"];
|
|
325
|
-
Globals.prototype._ul4attrs = _makeset("version", "platform", "user", "maxdbactions", "maxtemplateruntime", "flashmessages");
|
|
326
|
-
var FlashMessage =
|
|
327
|
-
/*#__PURE__*/
|
|
328
|
-
function (_Base2) {
|
|
329
|
-
_inherits(FlashMessage, _Base2);
|
|
330
|
-
|
|
331
|
-
function FlashMessage() {
|
|
332
|
-
_classCallCheck(this, FlashMessage);
|
|
333
|
-
|
|
334
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(FlashMessage).apply(this, arguments));
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
_createClass(FlashMessage, [{
|
|
338
|
-
key: "__repr__",
|
|
339
|
-
value: function __repr__() {
|
|
340
|
-
return "<FlashMessage type=" + _repr(this.type) + " title=" + _repr(this.title) + ">";
|
|
341
|
-
}
|
|
342
|
-
}]);
|
|
343
|
-
|
|
344
|
-
return FlashMessage;
|
|
345
|
-
}(Base);
|
|
346
|
-
FlashMessage.prototype._ul4onattrs = ["timestamp", "type", "title", "message"];
|
|
347
|
-
FlashMessage.prototype._ul4attrs = _makeset("timestamp", "type", "title", "message");
|
|
348
|
-
var App =
|
|
349
|
-
/*#__PURE__*/
|
|
350
|
-
function (_Base3) {
|
|
351
|
-
_inherits(App, _Base3);
|
|
352
|
-
|
|
353
|
-
function App() {
|
|
354
|
-
_classCallCheck(this, App);
|
|
355
|
-
|
|
356
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(App).apply(this, arguments));
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
_createClass(App, [{
|
|
360
|
-
key: "__repr__",
|
|
361
|
-
value: function __repr__() {
|
|
362
|
-
return "<App id=" + _repr(this.id) + " name=" + _repr(this.name) + ">";
|
|
363
|
-
}
|
|
364
|
-
}, {
|
|
365
|
-
key: "insert",
|
|
366
|
-
value: function insert() {
|
|
367
|
-
var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
368
|
-
|
|
369
|
-
var record = this.__call__(values);
|
|
370
|
-
|
|
371
|
-
this.globals.handler.save(this);
|
|
372
|
-
return record;
|
|
373
|
-
}
|
|
374
|
-
}, {
|
|
375
|
-
key: "__call__",
|
|
376
|
-
value: function __call__() {
|
|
377
|
-
var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
378
|
-
var record = new Record(this);
|
|
379
|
-
|
|
380
|
-
if (_ismap(values)) {
|
|
381
|
-
var _iteratorNormalCompletion = true;
|
|
382
|
-
var _didIteratorError = false;
|
|
383
|
-
var _iteratorError = undefined;
|
|
384
|
-
|
|
385
|
-
try {
|
|
386
|
-
for (var _iterator = values.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
387
|
-
var _step$value = _slicedToArray(_step.value, 2),
|
|
388
|
-
key = _step$value[0],
|
|
389
|
-
value = _step$value[1];
|
|
390
|
-
|
|
391
|
-
if (!record.fields.has(key)) throw new ArgumentError("update() get an unexpected keyword argument " + _repr(key));
|
|
392
|
-
record.fields.get(key).value = value;
|
|
393
|
-
}
|
|
394
|
-
} catch (err) {
|
|
395
|
-
_didIteratorError = true;
|
|
396
|
-
_iteratorError = err;
|
|
397
|
-
} finally {
|
|
398
|
-
try {
|
|
399
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
400
|
-
_iterator["return"]();
|
|
401
|
-
}
|
|
402
|
-
} finally {
|
|
403
|
-
if (_didIteratorError) {
|
|
404
|
-
throw _iteratorError;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
} else if (_isobject(values)) {
|
|
409
|
-
for (var key in values) {
|
|
410
|
-
if (!record.fields.has(key)) throw new ArgumentError("update() get an unexpected keyword argument " + _repr(key));
|
|
411
|
-
record.fields.get(key).value = values[key];
|
|
412
|
-
}
|
|
413
|
-
} else throw new TypeError$1("values must be an object or a Map");
|
|
414
|
-
|
|
415
|
-
return record;
|
|
416
|
-
}
|
|
417
|
-
}, {
|
|
418
|
-
key: "__getattr__",
|
|
419
|
-
value: function __getattr__(name) {
|
|
420
|
-
if (name.startsWith("c_")) {
|
|
421
|
-
if (!this.controls.has(name.substr(2))) throw new AttributeError(this, name);
|
|
422
|
-
return this.controls.get(name.substr(2));
|
|
423
|
-
} else return _get(_getPrototypeOf(App.prototype), "__getattr__", this).call(this, name);
|
|
424
|
-
}
|
|
425
|
-
}]);
|
|
426
|
-
|
|
427
|
-
return App;
|
|
428
|
-
}(Base);
|
|
429
|
-
App.prototype._ul4onattrs = ["id", "globals", "name", "description", "language", "startlink", "iconlarge", "iconsmall", "createdby", "controls", "records", "recordcount", "installation", "categories", "params", "views", "datamanagement_identifier", "basetable", "primarykey", "insertprocedure", "updateprocedure", "deleteprocedure", "templates", "createdat", "updatedat", "updatedby"];
|
|
430
|
-
App.prototype._ul4attrs = _makeset("id", "globals", "name", "description", "language", "startlink", "iconlarge", "iconsmall", "createdat", "createdby", "updatedat", "updatedby", "controls", "records", "recordcount", "installation", "categories", "params", "views", "datamanagement_identifier", "insert");
|
|
431
|
-
expose(App.prototype.__call__, ["**values"], {
|
|
432
|
-
"needsobject": true
|
|
433
|
-
});
|
|
434
|
-
expose(App.prototype.insert, ["**values"], {
|
|
435
|
-
"needsobject": true
|
|
436
|
-
});
|
|
437
|
-
var View =
|
|
438
|
-
/*#__PURE__*/
|
|
439
|
-
function (_Base4) {
|
|
440
|
-
_inherits(View, _Base4);
|
|
441
|
-
|
|
442
|
-
function View() {
|
|
443
|
-
_classCallCheck(this, View);
|
|
444
|
-
|
|
445
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(View).apply(this, arguments));
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
_createClass(View, [{
|
|
449
|
-
key: "__repr__",
|
|
450
|
-
value: function __repr__() {
|
|
451
|
-
return "<View id=" + _repr(this.id) + " name=" + _repr(this.name) + ">";
|
|
452
|
-
}
|
|
453
|
-
}]);
|
|
454
|
-
|
|
455
|
-
return View;
|
|
456
|
-
}(Base);
|
|
457
|
-
View.prototype._ul4onattrs = ["id", "name", "app", "order", "width", "height", "start", "end"];
|
|
458
|
-
View.prototype._ul4attrs = _makeset("id", "name", "app", "order", "width", "height", "start", "end");
|
|
459
|
-
var DataSourceData =
|
|
460
|
-
/*#__PURE__*/
|
|
461
|
-
function (_Base5) {
|
|
462
|
-
_inherits(DataSourceData, _Base5);
|
|
463
|
-
|
|
464
|
-
function DataSourceData() {
|
|
465
|
-
_classCallCheck(this, DataSourceData);
|
|
466
|
-
|
|
467
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(DataSourceData).apply(this, arguments));
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
_createClass(DataSourceData, [{
|
|
471
|
-
key: "__repr__",
|
|
472
|
-
value: function __repr__() {
|
|
473
|
-
return "<DataSource.Data id=" + _repr(this.id) + " identifier=" + _repr(this.identifier) + ">";
|
|
474
|
-
}
|
|
475
|
-
}]);
|
|
476
|
-
|
|
477
|
-
return DataSourceData;
|
|
478
|
-
}(Base);
|
|
479
|
-
DataSourceData.prototype._ul4onattrs = ["id", "identifier", "app", "apps"];
|
|
480
|
-
DataSourceData.prototype._ul4attrs = _makeset("id", "identifier", "app", "apps");
|
|
481
|
-
var Record =
|
|
482
|
-
/*#__PURE__*/
|
|
483
|
-
function (_Base6) {
|
|
484
|
-
_inherits(Record, _Base6);
|
|
485
|
-
|
|
486
|
-
function Record(app) {
|
|
487
|
-
var _this2;
|
|
488
|
-
|
|
489
|
-
_classCallCheck(this, Record);
|
|
490
|
-
|
|
491
|
-
_this2 = _possibleConstructorReturn(this, _getPrototypeOf(Record).call(this));
|
|
492
|
-
_this2.id = null;
|
|
493
|
-
_this2.app = app;
|
|
494
|
-
_this2.createdat = null;
|
|
495
|
-
_this2.createdby = null;
|
|
496
|
-
_this2.updatedat = null;
|
|
497
|
-
_this2.updatedby = null;
|
|
498
|
-
_this2.updatecount = 0;
|
|
499
|
-
_this2._sparsevalues = new Map();
|
|
500
|
-
_this2._values = null;
|
|
501
|
-
_this2._fields = null;
|
|
502
|
-
_this2.children = new Map();
|
|
503
|
-
_this2.attachments = null;
|
|
504
|
-
_this2.errors = [];
|
|
505
|
-
_this2._is_deleted = false;
|
|
506
|
-
return _this2;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
_createClass(Record, [{
|
|
510
|
-
key: "__repr__",
|
|
511
|
-
value: function __repr__() {
|
|
512
|
-
var v = ["<Record id=", _repr(this.id)];
|
|
513
|
-
var _iteratorNormalCompletion2 = true;
|
|
514
|
-
var _didIteratorError2 = false;
|
|
515
|
-
var _iteratorError2 = undefined;
|
|
516
|
-
|
|
517
|
-
try {
|
|
518
|
-
for (var _iterator2 = this.fields.values()[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
519
|
-
var field = _step2.value;
|
|
520
|
-
|
|
521
|
-
if (field.control.priority) {
|
|
522
|
-
v.push(" v_");
|
|
523
|
-
v.push(field.control.identifier);
|
|
524
|
-
v.push("=");
|
|
525
|
-
v.push(_repr(field.value)); // FIXME: This might lead to infinite recursions
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
} catch (err) {
|
|
529
|
-
_didIteratorError2 = true;
|
|
530
|
-
_iteratorError2 = err;
|
|
531
|
-
} finally {
|
|
532
|
-
try {
|
|
533
|
-
if (!_iteratorNormalCompletion2 && _iterator2["return"] != null) {
|
|
534
|
-
_iterator2["return"]();
|
|
535
|
-
}
|
|
536
|
-
} finally {
|
|
537
|
-
if (_didIteratorError2) {
|
|
538
|
-
throw _iteratorError2;
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
v.push(">");
|
|
544
|
-
return v.join("");
|
|
545
|
-
}
|
|
546
|
-
}, {
|
|
547
|
-
key: "is_dirty",
|
|
548
|
-
value: function is_dirty() {
|
|
549
|
-
if (this.id === null) return true;
|
|
550
|
-
var _iteratorNormalCompletion3 = true;
|
|
551
|
-
var _didIteratorError3 = false;
|
|
552
|
-
var _iteratorError3 = undefined;
|
|
553
|
-
|
|
554
|
-
try {
|
|
555
|
-
for (var _iterator3 = this.fields.values()[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
|
|
556
|
-
var field = _step3.value;
|
|
557
|
-
if (field.is_dirty()) return true;
|
|
558
|
-
}
|
|
559
|
-
} catch (err) {
|
|
560
|
-
_didIteratorError3 = true;
|
|
561
|
-
_iteratorError3 = err;
|
|
562
|
-
} finally {
|
|
563
|
-
try {
|
|
564
|
-
if (!_iteratorNormalCompletion3 && _iterator3["return"] != null) {
|
|
565
|
-
_iterator3["return"]();
|
|
566
|
-
}
|
|
567
|
-
} finally {
|
|
568
|
-
if (_didIteratorError3) {
|
|
569
|
-
throw _iteratorError3;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
return false;
|
|
575
|
-
}
|
|
576
|
-
}, {
|
|
577
|
-
key: "has_errors",
|
|
578
|
-
value: function has_errors() {
|
|
579
|
-
if (this.errors.length !== 0) return true;
|
|
580
|
-
var _iteratorNormalCompletion4 = true;
|
|
581
|
-
var _didIteratorError4 = false;
|
|
582
|
-
var _iteratorError4 = undefined;
|
|
583
|
-
|
|
584
|
-
try {
|
|
585
|
-
for (var _iterator4 = this.fields.values()[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
|
|
586
|
-
var field = _step4.value;
|
|
587
|
-
if (field.has_errors()) return true;
|
|
588
|
-
}
|
|
589
|
-
} catch (err) {
|
|
590
|
-
_didIteratorError4 = true;
|
|
591
|
-
_iteratorError4 = err;
|
|
592
|
-
} finally {
|
|
593
|
-
try {
|
|
594
|
-
if (!_iteratorNormalCompletion4 && _iterator4["return"] != null) {
|
|
595
|
-
_iterator4["return"]();
|
|
596
|
-
}
|
|
597
|
-
} finally {
|
|
598
|
-
if (_didIteratorError4) {
|
|
599
|
-
throw _iteratorError4;
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
return false;
|
|
605
|
-
}
|
|
606
|
-
}, {
|
|
607
|
-
key: "delete",
|
|
608
|
-
value: function _delete() {
|
|
609
|
-
return this.app.globals.handler["delete"](this);
|
|
610
|
-
}
|
|
611
|
-
}, {
|
|
612
|
-
key: "save",
|
|
613
|
-
value: function save() {
|
|
614
|
-
this.app.globals.handler.save(this);
|
|
615
|
-
}
|
|
616
|
-
}, {
|
|
617
|
-
key: "update",
|
|
618
|
-
value: function update() {
|
|
619
|
-
var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
620
|
-
|
|
621
|
-
if (_ismap(values)) {
|
|
622
|
-
var _iteratorNormalCompletion5 = true;
|
|
623
|
-
var _didIteratorError5 = false;
|
|
624
|
-
var _iteratorError5 = undefined;
|
|
625
|
-
|
|
626
|
-
try {
|
|
627
|
-
for (var _iterator5 = values.entries()[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
|
|
628
|
-
var _step5$value = _slicedToArray(_step5.value, 2),
|
|
629
|
-
key = _step5$value[0],
|
|
630
|
-
value = _step5$value[1];
|
|
631
|
-
|
|
632
|
-
if (!this.fields.has(key)) throw new ArgumentError("update() get an unexpected keyword argument " + _repr(key));
|
|
633
|
-
fields.get(key).value = value;
|
|
634
|
-
}
|
|
635
|
-
} catch (err) {
|
|
636
|
-
_didIteratorError5 = true;
|
|
637
|
-
_iteratorError5 = err;
|
|
638
|
-
} finally {
|
|
639
|
-
try {
|
|
640
|
-
if (!_iteratorNormalCompletion5 && _iterator5["return"] != null) {
|
|
641
|
-
_iterator5["return"]();
|
|
642
|
-
}
|
|
643
|
-
} finally {
|
|
644
|
-
if (_didIteratorError5) {
|
|
645
|
-
throw _iteratorError5;
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
} else if (_isobject(values)) {
|
|
650
|
-
for (var key in values) {
|
|
651
|
-
if (!this.fields.has(key)) throw new ArgumentError("update() get an unexpected keyword argument " + _repr(key));
|
|
652
|
-
record.fields.get(key).value = values[key];
|
|
653
|
-
}
|
|
654
|
-
} else throw new TypeError$1("values must be an object or a Map");
|
|
655
|
-
|
|
656
|
-
this.app.globals.handler.save(this);
|
|
657
|
-
}
|
|
658
|
-
}, {
|
|
659
|
-
key: "search",
|
|
660
|
-
value: function search(_search) {
|
|
661
|
-
for (var identifier in _search) {
|
|
662
|
-
var fieldsearch = _search[identifier];
|
|
663
|
-
|
|
664
|
-
if (_bool(fieldsearch)) {
|
|
665
|
-
if (!this.fields.get(identifier).search(fieldsearch)) return false;
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
return true;
|
|
670
|
-
}
|
|
671
|
-
}, {
|
|
672
|
-
key: "_dumpUL4ONAttr",
|
|
673
|
-
value: function _dumpUL4ONAttr(name) {
|
|
674
|
-
if (name === "values") return this._sparsevalues;else return this[name];
|
|
675
|
-
}
|
|
676
|
-
}, {
|
|
677
|
-
key: "_loadUL4ONAttr",
|
|
678
|
-
value: function _loadUL4ONAttr(name, value) {
|
|
679
|
-
if (name === "values") {
|
|
680
|
-
this._sparsevalues = value;
|
|
681
|
-
this._values = null;
|
|
682
|
-
this._fields = null;
|
|
683
|
-
} else this[name] = value;
|
|
684
|
-
}
|
|
685
|
-
}, {
|
|
686
|
-
key: "__getattr__",
|
|
687
|
-
value: function __getattr__(name) {
|
|
688
|
-
if (name.startsWith("c_")) return this.children.get(name.substr(2));else if (name.startsWith("f_")) return this.fields.get(name.substr(2));else if (name.startsWith("v_")) return this.values.get(name.substr(2));else return this[name];
|
|
689
|
-
}
|
|
690
|
-
}, {
|
|
691
|
-
key: "__setattr__",
|
|
692
|
-
value: function __setattr__(name, value) {
|
|
693
|
-
if (name.startsWith("c_")) this.children[name.substr(2)] = value;else if (name.startsWith("v_")) this.fields.get(name.substr(2)).value = value;else throw new AttributeError(this, name);
|
|
694
|
-
}
|
|
695
|
-
}, {
|
|
696
|
-
key: "values",
|
|
697
|
-
get: function get() {
|
|
698
|
-
if (this._values === null) {
|
|
699
|
-
this._values = _havemap ? new Map() : {};
|
|
700
|
-
var _iteratorNormalCompletion6 = true;
|
|
701
|
-
var _didIteratorError6 = false;
|
|
702
|
-
var _iteratorError6 = undefined;
|
|
703
|
-
|
|
704
|
-
try {
|
|
705
|
-
for (var _iterator6 = this.app.controls.entries()[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
|
|
706
|
-
var _step6$value = _slicedToArray(_step6.value, 2),
|
|
707
|
-
identifier = _step6$value[0],
|
|
708
|
-
control = _step6$value[1];
|
|
709
|
-
|
|
710
|
-
var fieldvalue = this._sparsevalues.get(identifier);
|
|
711
|
-
|
|
712
|
-
if (typeof fieldvalue === "undefined") fieldvalue = null;
|
|
713
|
-
|
|
714
|
-
this._values.set(identifier, fieldvalue);
|
|
715
|
-
}
|
|
716
|
-
} catch (err) {
|
|
717
|
-
_didIteratorError6 = true;
|
|
718
|
-
_iteratorError6 = err;
|
|
719
|
-
} finally {
|
|
720
|
-
try {
|
|
721
|
-
if (!_iteratorNormalCompletion6 && _iterator6["return"] != null) {
|
|
722
|
-
_iterator6["return"]();
|
|
723
|
-
}
|
|
724
|
-
} finally {
|
|
725
|
-
if (_didIteratorError6) {
|
|
726
|
-
throw _iteratorError6;
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
return this._values;
|
|
733
|
-
}
|
|
734
|
-
}, {
|
|
735
|
-
key: "fields",
|
|
736
|
-
get: function get() {
|
|
737
|
-
if (this._fields === null) {
|
|
738
|
-
this._fields = _havemap ? new Map() : {};
|
|
739
|
-
var _iteratorNormalCompletion7 = true;
|
|
740
|
-
var _didIteratorError7 = false;
|
|
741
|
-
var _iteratorError7 = undefined;
|
|
742
|
-
|
|
743
|
-
try {
|
|
744
|
-
for (var _iterator7 = this.values.entries()[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
|
|
745
|
-
var _step7$value = _slicedToArray(_step7.value, 2),
|
|
746
|
-
identifier = _step7$value[0],
|
|
747
|
-
value = _step7$value[1];
|
|
748
|
-
|
|
749
|
-
var field = new Field(this.app.controls.get(identifier), this, value);
|
|
750
|
-
|
|
751
|
-
this._fields.set(identifier, field);
|
|
752
|
-
}
|
|
753
|
-
} catch (err) {
|
|
754
|
-
_didIteratorError7 = true;
|
|
755
|
-
_iteratorError7 = err;
|
|
756
|
-
} finally {
|
|
757
|
-
try {
|
|
758
|
-
if (!_iteratorNormalCompletion7 && _iterator7["return"] != null) {
|
|
759
|
-
_iterator7["return"]();
|
|
760
|
-
}
|
|
761
|
-
} finally {
|
|
762
|
-
if (_didIteratorError7) {
|
|
763
|
-
throw _iteratorError7;
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
return this._fields;
|
|
770
|
-
}
|
|
771
|
-
}]);
|
|
772
|
-
|
|
773
|
-
return Record;
|
|
774
|
-
}(Base);
|
|
775
|
-
Record.prototype._ul4onattrs = ["id", "app", "createdat", "createdby", "updatedat", "updatedby", "updatecount", "values", "attachments", "children"];
|
|
776
|
-
Record.prototype._ul4attrs = _makeset("id", "app", "createdat", "createdby", "updatedat", "updatedby", "updatecount", "values", "attachments", "children");
|
|
777
|
-
expose(Record.prototype.is_dirty, []);
|
|
778
|
-
expose(Record.prototype.has_errors, []);
|
|
779
|
-
expose(Record.prototype["delete"], []);
|
|
780
|
-
expose(Record.prototype.save, []);
|
|
781
|
-
expose(Record.prototype.update, ["**values"], {
|
|
782
|
-
"needsobject": true
|
|
783
|
-
});
|
|
784
|
-
var Control =
|
|
785
|
-
/*#__PURE__*/
|
|
786
|
-
function (_Base7) {
|
|
787
|
-
_inherits(Control, _Base7);
|
|
788
|
-
|
|
789
|
-
function Control() {
|
|
790
|
-
_classCallCheck(this, Control);
|
|
791
|
-
|
|
792
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Control).apply(this, arguments));
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
_createClass(Control, [{
|
|
796
|
-
key: "__repr__",
|
|
797
|
-
value: function __repr__() {
|
|
798
|
-
return "<" + this.__type__ + " id=" + _repr(this.id) + " identifier=" + _repr(this.identifier) + ">";
|
|
799
|
-
}
|
|
800
|
-
}, {
|
|
801
|
-
key: "_logsearch",
|
|
802
|
-
value: function _logsearch(value, search) {} //console.log("Searching for " + ul4._repr(search.value) + " in " + ul4._repr(this) + " with operator " + search.operator + " in value " + ul4._repr(value));
|
|
803
|
-
// base implemntation, always returns ``false`` (i.e. "not found")
|
|
804
|
-
// ``value`` is the value of the field
|
|
805
|
-
// ``search`` is an object with information what we're searching for
|
|
806
|
-
// keys in ``search`` are: ``operator`` (and ``value`` (if required by the operator))
|
|
807
|
-
|
|
808
|
-
}, {
|
|
809
|
-
key: "search",
|
|
810
|
-
value: function search(value, _search2) {
|
|
811
|
-
return false;
|
|
812
|
-
}
|
|
813
|
-
}]);
|
|
814
|
-
|
|
815
|
-
return Control;
|
|
816
|
-
}(Base);
|
|
817
|
-
Control.prototype.type = null;
|
|
818
|
-
Control.prototype.subtype = null;
|
|
819
|
-
Control.prototype._ul4onattrs = ["id", "identifier", "field", "app", "label", "priority", "order", "default", "ininsertprocedure", "inupdateprocedure"];
|
|
820
|
-
Control.prototype._ul4attrs = _makeset("id", "identifier", "field", "app", "label", "priority", "order", "default", "ininsertprocedure", "inupdateprocedure");
|
|
821
|
-
var BoolControl =
|
|
822
|
-
/*#__PURE__*/
|
|
823
|
-
function (_Control) {
|
|
824
|
-
_inherits(BoolControl, _Control);
|
|
825
|
-
|
|
826
|
-
function BoolControl() {
|
|
827
|
-
_classCallCheck(this, BoolControl);
|
|
828
|
-
|
|
829
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(BoolControl).apply(this, arguments));
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
_createClass(BoolControl, [{
|
|
833
|
-
key: "search",
|
|
834
|
-
// ``search`` must by ``null``, ``false`` or ``true``
|
|
835
|
-
value: function search(value, _search3) {
|
|
836
|
-
this._logsearch(value, _search3);
|
|
837
|
-
|
|
838
|
-
if (_search3.operator === "equals") return _search3.value === value;else return false;
|
|
839
|
-
}
|
|
840
|
-
}]);
|
|
841
|
-
|
|
842
|
-
return BoolControl;
|
|
843
|
-
}(Control);
|
|
844
|
-
BoolControl.prototype.type = "bool";
|
|
845
|
-
var IntControl =
|
|
846
|
-
/*#__PURE__*/
|
|
847
|
-
function (_Control2) {
|
|
848
|
-
_inherits(IntControl, _Control2);
|
|
849
|
-
|
|
850
|
-
function IntControl() {
|
|
851
|
-
_classCallCheck(this, IntControl);
|
|
852
|
-
|
|
853
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(IntControl).apply(this, arguments));
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
_createClass(IntControl, [{
|
|
857
|
-
key: "search",
|
|
858
|
-
// ``search.value`` must by ``null`` or an integer
|
|
859
|
-
value: function search(value, _search4) {
|
|
860
|
-
this._logsearch(value, _search4);
|
|
861
|
-
|
|
862
|
-
if (_search4.operator === "equals") return _search4.value === value;else return false;
|
|
863
|
-
}
|
|
864
|
-
}]);
|
|
865
|
-
|
|
866
|
-
return IntControl;
|
|
867
|
-
}(Control);
|
|
868
|
-
IntControl.prototype.type = "int";
|
|
869
|
-
var NumberControl =
|
|
870
|
-
/*#__PURE__*/
|
|
871
|
-
function (_Control3) {
|
|
872
|
-
_inherits(NumberControl, _Control3);
|
|
873
|
-
|
|
874
|
-
function NumberControl() {
|
|
875
|
-
_classCallCheck(this, NumberControl);
|
|
876
|
-
|
|
877
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(NumberControl).apply(this, arguments));
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
_createClass(NumberControl, [{
|
|
881
|
-
key: "search",
|
|
882
|
-
// ``search.value`` must by ``null`` or an integer
|
|
883
|
-
value: function search(value, _search5) {
|
|
884
|
-
this._logsearch(value, _search5);
|
|
885
|
-
|
|
886
|
-
if (_search5.operator === "equals") return _search5.value === value;else if (_search5.operator === "range") {
|
|
887
|
-
if (value === null) return false;
|
|
888
|
-
return (_search5.minvalue === null || _search5.minvalue <= value) && (_search5.maxvalue === null || value < _search5.maxvalue);
|
|
889
|
-
} else return false;
|
|
890
|
-
}
|
|
891
|
-
}]);
|
|
892
|
-
|
|
893
|
-
return NumberControl;
|
|
894
|
-
}(Control);
|
|
895
|
-
NumberControl.prototype.type = "number";
|
|
896
|
-
var StringControl =
|
|
897
|
-
/*#__PURE__*/
|
|
898
|
-
function (_Control4) {
|
|
899
|
-
_inherits(StringControl, _Control4);
|
|
900
|
-
|
|
901
|
-
function StringControl() {
|
|
902
|
-
_classCallCheck(this, StringControl);
|
|
903
|
-
|
|
904
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(StringControl).apply(this, arguments));
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
_createClass(StringControl, [{
|
|
908
|
-
key: "search",
|
|
909
|
-
value: function search(value, _search6) {
|
|
910
|
-
this._logsearch(value, _search6);
|
|
911
|
-
|
|
912
|
-
if (_search6.operator === "equals") return _search6.value === value;else if (_search6.operator === "contains") {
|
|
913
|
-
if (_search6.value === null || value === null) return _search6.value === value;else return value.toLowerCase().indexOf(_search6.value.toLowerCase()) >= 0;
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
}]);
|
|
917
|
-
|
|
918
|
-
return StringControl;
|
|
919
|
-
}(Control);
|
|
920
|
-
StringControl.prototype.type = "string";
|
|
921
|
-
var TextControl =
|
|
922
|
-
/*#__PURE__*/
|
|
923
|
-
function (_StringControl) {
|
|
924
|
-
_inherits(TextControl, _StringControl);
|
|
925
|
-
|
|
926
|
-
function TextControl() {
|
|
927
|
-
_classCallCheck(this, TextControl);
|
|
928
|
-
|
|
929
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(TextControl).apply(this, arguments));
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
return TextControl;
|
|
933
|
-
}(StringControl);
|
|
934
|
-
TextControl.prototype.subtype = "text";
|
|
935
|
-
var EmailControl =
|
|
936
|
-
/*#__PURE__*/
|
|
937
|
-
function (_StringControl2) {
|
|
938
|
-
_inherits(EmailControl, _StringControl2);
|
|
939
|
-
|
|
940
|
-
function EmailControl() {
|
|
941
|
-
_classCallCheck(this, EmailControl);
|
|
942
|
-
|
|
943
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(EmailControl).apply(this, arguments));
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
return EmailControl;
|
|
947
|
-
}(StringControl);
|
|
948
|
-
EmailControl.prototype.subtype = "email";
|
|
949
|
-
var URLControl =
|
|
950
|
-
/*#__PURE__*/
|
|
951
|
-
function (_StringControl3) {
|
|
952
|
-
_inherits(URLControl, _StringControl3);
|
|
953
|
-
|
|
954
|
-
function URLControl() {
|
|
955
|
-
_classCallCheck(this, URLControl);
|
|
956
|
-
|
|
957
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(URLControl).apply(this, arguments));
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
return URLControl;
|
|
961
|
-
}(StringControl);
|
|
962
|
-
URLControl.prototype.subtype = "url";
|
|
963
|
-
var TelControl =
|
|
964
|
-
/*#__PURE__*/
|
|
965
|
-
function (_StringControl4) {
|
|
966
|
-
_inherits(TelControl, _StringControl4);
|
|
967
|
-
|
|
968
|
-
function TelControl() {
|
|
969
|
-
_classCallCheck(this, TelControl);
|
|
970
|
-
|
|
971
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(TelControl).apply(this, arguments));
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
return TelControl;
|
|
975
|
-
}(StringControl);
|
|
976
|
-
TelControl.prototype.subtype = "tel";
|
|
977
|
-
var PasswordControl =
|
|
978
|
-
/*#__PURE__*/
|
|
979
|
-
function (_StringControl5) {
|
|
980
|
-
_inherits(PasswordControl, _StringControl5);
|
|
981
|
-
|
|
982
|
-
function PasswordControl() {
|
|
983
|
-
_classCallCheck(this, PasswordControl);
|
|
984
|
-
|
|
985
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(PasswordControl).apply(this, arguments));
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
return PasswordControl;
|
|
989
|
-
}(StringControl);
|
|
990
|
-
PasswordControl.prototype.subtype = "password";
|
|
991
|
-
var TextAreaControl =
|
|
992
|
-
/*#__PURE__*/
|
|
993
|
-
function (_StringControl6) {
|
|
994
|
-
_inherits(TextAreaControl, _StringControl6);
|
|
995
|
-
|
|
996
|
-
function TextAreaControl() {
|
|
997
|
-
_classCallCheck(this, TextAreaControl);
|
|
998
|
-
|
|
999
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(TextAreaControl).apply(this, arguments));
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
return TextAreaControl;
|
|
1003
|
-
}(StringControl);
|
|
1004
|
-
TextAreaControl.prototype.subtype = "textarea";
|
|
1005
|
-
TextAreaControl.prototype._ul4onattrs = StringControl.prototype._ul4onattrs.concat(["encrypted"]);
|
|
1006
|
-
TextAreaControl.prototype._ul4attrs = _makeset.apply(ul4, _toConsumableArray(StringControl.prototype._ul4attrs).concat(["encrypted"]));
|
|
1007
|
-
var DateControl =
|
|
1008
|
-
/*#__PURE__*/
|
|
1009
|
-
function (_Control5) {
|
|
1010
|
-
_inherits(DateControl, _Control5);
|
|
1011
|
-
|
|
1012
|
-
function DateControl() {
|
|
1013
|
-
_classCallCheck(this, DateControl);
|
|
1014
|
-
|
|
1015
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(DateControl).apply(this, arguments));
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
_createClass(DateControl, [{
|
|
1019
|
-
key: "formatstring",
|
|
1020
|
-
value: function formatstring(language) {
|
|
1021
|
-
language = language || this.app.language;
|
|
1022
|
-
if (language === "de") return "%d.%m.%Y";else return "%m/%d/%Y";
|
|
1023
|
-
} // searchvalue must be ``null``, a ``Date`` object or a string
|
|
1024
|
-
|
|
1025
|
-
}, {
|
|
1026
|
-
key: "search",
|
|
1027
|
-
value: function search(value, _search7) {
|
|
1028
|
-
this._logsearch(value, _search7);
|
|
1029
|
-
|
|
1030
|
-
var searchvalue = _search7.value;
|
|
1031
|
-
if (Object.prototype.toString.call(searchvalue) == "[object Date]") searchvalue = _format(searchvalue, this.formatstring(), this.app.language);
|
|
1032
|
-
if (value !== null) value = _format(value, this.formatstring(), this.app.language);
|
|
1033
|
-
if (_search7.operator === "equals") return searchvalue === value;else if (_search7.operator === "contains") {
|
|
1034
|
-
if (searchvalue === null || value === null) return searchvalue === value;else return value.toLowerCase().indexOf(searchvalue.toLowerCase()) >= 0;
|
|
1035
|
-
} else return false;
|
|
1036
|
-
}
|
|
1037
|
-
}]);
|
|
1038
|
-
|
|
1039
|
-
return DateControl;
|
|
1040
|
-
}(Control);
|
|
1041
|
-
DateControl.prototype.type = "date";
|
|
1042
|
-
DateControl.prototype.subtype = "date";
|
|
1043
|
-
var DatetimeMinuteControl =
|
|
1044
|
-
/*#__PURE__*/
|
|
1045
|
-
function (_DateControl) {
|
|
1046
|
-
_inherits(DatetimeMinuteControl, _DateControl);
|
|
1047
|
-
|
|
1048
|
-
function DatetimeMinuteControl() {
|
|
1049
|
-
_classCallCheck(this, DatetimeMinuteControl);
|
|
1050
|
-
|
|
1051
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(DatetimeMinuteControl).apply(this, arguments));
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
_createClass(DatetimeMinuteControl, [{
|
|
1055
|
-
key: "formatstring",
|
|
1056
|
-
value: function formatstring(language) {
|
|
1057
|
-
language = language || this.app.language;
|
|
1058
|
-
if (language === "de") return "%d.%m.%Y %H:%M";else return "%m/%d/%Y %H:%M";
|
|
1059
|
-
}
|
|
1060
|
-
}]);
|
|
1061
|
-
|
|
1062
|
-
return DatetimeMinuteControl;
|
|
1063
|
-
}(DateControl);
|
|
1064
|
-
DatetimeMinuteControl.prototype.subtype = "datetimeminute";
|
|
1065
|
-
var DatetimeSecondControl =
|
|
1066
|
-
/*#__PURE__*/
|
|
1067
|
-
function (_DateControl2) {
|
|
1068
|
-
_inherits(DatetimeSecondControl, _DateControl2);
|
|
1069
|
-
|
|
1070
|
-
function DatetimeSecondControl() {
|
|
1071
|
-
_classCallCheck(this, DatetimeSecondControl);
|
|
1072
|
-
|
|
1073
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(DatetimeSecondControl).apply(this, arguments));
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
_createClass(DatetimeSecondControl, [{
|
|
1077
|
-
key: "formatstring",
|
|
1078
|
-
value: function formatstring(language) {
|
|
1079
|
-
language = language || this.app.language;
|
|
1080
|
-
if (language === "de") return "%d.%m.%Y %H:%M:%S";else return "%m/%d/%Y %H:%M:%S";
|
|
1081
|
-
}
|
|
1082
|
-
}]);
|
|
1083
|
-
|
|
1084
|
-
return DatetimeSecondControl;
|
|
1085
|
-
}(DateControl);
|
|
1086
|
-
DatetimeSecondControl.prototype.subtype = "datetimesecond";
|
|
1087
|
-
var LookupControl =
|
|
1088
|
-
/*#__PURE__*/
|
|
1089
|
-
function (_Control6) {
|
|
1090
|
-
_inherits(LookupControl, _Control6);
|
|
1091
|
-
|
|
1092
|
-
function LookupControl() {
|
|
1093
|
-
_classCallCheck(this, LookupControl);
|
|
1094
|
-
|
|
1095
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(LookupControl).apply(this, arguments));
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
_createClass(LookupControl, [{
|
|
1099
|
-
key: "search",
|
|
1100
|
-
// ``search.value`` must be ``null`` or a ``LookupItem`` key
|
|
1101
|
-
value: function search(value, _search8) {
|
|
1102
|
-
if (_search8.operator === "equals") {
|
|
1103
|
-
if (value === null) return _search8.value === null;else return value.key === _search8.value;
|
|
1104
|
-
} else return false;
|
|
1105
|
-
}
|
|
1106
|
-
}]);
|
|
1107
|
-
|
|
1108
|
-
return LookupControl;
|
|
1109
|
-
}(Control);
|
|
1110
|
-
LookupControl.prototype.type = "lookup";
|
|
1111
|
-
LookupControl.prototype._ul4onattrs = Control.prototype._ul4onattrs.concat(["lookupdata"]);
|
|
1112
|
-
LookupControl.prototype._ul4attrs = _makeset.apply(ul4, _toConsumableArray(Control.prototype._ul4attrs).concat(["lookupdata"]));
|
|
1113
|
-
var LookupSelectControl =
|
|
1114
|
-
/*#__PURE__*/
|
|
1115
|
-
function (_LookupControl) {
|
|
1116
|
-
_inherits(LookupSelectControl, _LookupControl);
|
|
1117
|
-
|
|
1118
|
-
function LookupSelectControl() {
|
|
1119
|
-
_classCallCheck(this, LookupSelectControl);
|
|
1120
|
-
|
|
1121
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(LookupSelectControl).apply(this, arguments));
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
return LookupSelectControl;
|
|
1125
|
-
}(LookupControl);
|
|
1126
|
-
LookupSelectControl.prototype.subtype = "select";
|
|
1127
|
-
var LookupRadioControl =
|
|
1128
|
-
/*#__PURE__*/
|
|
1129
|
-
function (_LookupControl2) {
|
|
1130
|
-
_inherits(LookupRadioControl, _LookupControl2);
|
|
1131
|
-
|
|
1132
|
-
function LookupRadioControl() {
|
|
1133
|
-
_classCallCheck(this, LookupRadioControl);
|
|
1134
|
-
|
|
1135
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(LookupRadioControl).apply(this, arguments));
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
return LookupRadioControl;
|
|
1139
|
-
}(LookupControl);
|
|
1140
|
-
LookupRadioControl.prototype.subtype = "radio";
|
|
1141
|
-
var LookupChoiceControl =
|
|
1142
|
-
/*#__PURE__*/
|
|
1143
|
-
function (_LookupControl3) {
|
|
1144
|
-
_inherits(LookupChoiceControl, _LookupControl3);
|
|
1145
|
-
|
|
1146
|
-
function LookupChoiceControl() {
|
|
1147
|
-
_classCallCheck(this, LookupChoiceControl);
|
|
1148
|
-
|
|
1149
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(LookupChoiceControl).apply(this, arguments));
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
return LookupChoiceControl;
|
|
1153
|
-
}(LookupControl);
|
|
1154
|
-
LookupChoiceControl.prototype.subtype = "choice";
|
|
1155
|
-
var AppLookupControl =
|
|
1156
|
-
/*#__PURE__*/
|
|
1157
|
-
function (_Control7) {
|
|
1158
|
-
_inherits(AppLookupControl, _Control7);
|
|
1159
|
-
|
|
1160
|
-
function AppLookupControl() {
|
|
1161
|
-
_classCallCheck(this, AppLookupControl);
|
|
1162
|
-
|
|
1163
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(AppLookupControl).apply(this, arguments));
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
_createClass(AppLookupControl, [{
|
|
1167
|
-
key: "search",
|
|
1168
|
-
// ``search.value`` must be an object containing the search criteria for the referenced record
|
|
1169
|
-
value: function search(value, _search9) {
|
|
1170
|
-
if (value === null || _search9.value === null) return value === _search9.value;else return value.search(_search9);
|
|
1171
|
-
}
|
|
1172
|
-
}]);
|
|
1173
|
-
|
|
1174
|
-
return AppLookupControl;
|
|
1175
|
-
}(Control);
|
|
1176
|
-
AppLookupControl.prototype.type = "applookup";
|
|
1177
|
-
AppLookupControl.prototype._ul4onattrs = Control.prototype._ul4onattrs.concat(["lookupapp", "lookupcontrols"]);
|
|
1178
|
-
AppLookupControl.prototype._ul4attrs = _makeset.apply(ul4, _toConsumableArray(Control.prototype._ul4attrs).concat(["lookupapp", "lookupcontrols"]));
|
|
1179
|
-
var AppLookupSelectControl =
|
|
1180
|
-
/*#__PURE__*/
|
|
1181
|
-
function (_AppLookupControl) {
|
|
1182
|
-
_inherits(AppLookupSelectControl, _AppLookupControl);
|
|
1183
|
-
|
|
1184
|
-
function AppLookupSelectControl() {
|
|
1185
|
-
_classCallCheck(this, AppLookupSelectControl);
|
|
1186
|
-
|
|
1187
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(AppLookupSelectControl).apply(this, arguments));
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
return AppLookupSelectControl;
|
|
1191
|
-
}(AppLookupControl);
|
|
1192
|
-
AppLookupSelectControl.prototype.subtype = "select";
|
|
1193
|
-
var AppLookupRadioControl =
|
|
1194
|
-
/*#__PURE__*/
|
|
1195
|
-
function (_AppLookupControl2) {
|
|
1196
|
-
_inherits(AppLookupRadioControl, _AppLookupControl2);
|
|
1197
|
-
|
|
1198
|
-
function AppLookupRadioControl() {
|
|
1199
|
-
_classCallCheck(this, AppLookupRadioControl);
|
|
1200
|
-
|
|
1201
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(AppLookupRadioControl).apply(this, arguments));
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
return AppLookupRadioControl;
|
|
1205
|
-
}(AppLookupControl);
|
|
1206
|
-
AppLookupRadioControl.prototype.subtype = "radio";
|
|
1207
|
-
var AppLookupChoiceControl =
|
|
1208
|
-
/*#__PURE__*/
|
|
1209
|
-
function (_AppLookupControl3) {
|
|
1210
|
-
_inherits(AppLookupChoiceControl, _AppLookupControl3);
|
|
1211
|
-
|
|
1212
|
-
function AppLookupChoiceControl() {
|
|
1213
|
-
_classCallCheck(this, AppLookupChoiceControl);
|
|
1214
|
-
|
|
1215
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(AppLookupChoiceControl).apply(this, arguments));
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
return AppLookupChoiceControl;
|
|
1219
|
-
}(AppLookupControl);
|
|
1220
|
-
AppLookupChoiceControl.prototype.subtype = "choice";
|
|
1221
|
-
var MultipleLookupControl =
|
|
1222
|
-
/*#__PURE__*/
|
|
1223
|
-
function (_LookupControl4) {
|
|
1224
|
-
_inherits(MultipleLookupControl, _LookupControl4);
|
|
1225
|
-
|
|
1226
|
-
function MultipleLookupControl() {
|
|
1227
|
-
_classCallCheck(this, MultipleLookupControl);
|
|
1228
|
-
|
|
1229
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(MultipleLookupControl).apply(this, arguments));
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
_createClass(MultipleLookupControl, [{
|
|
1233
|
-
key: "search",
|
|
1234
|
-
// search.value must be ``null`` or a ``LookupItem`` key
|
|
1235
|
-
value: function search(value, _search10) {
|
|
1236
|
-
if (_search10.operator === "equals") {
|
|
1237
|
-
var _iteratorNormalCompletion8 = true;
|
|
1238
|
-
var _didIteratorError8 = false;
|
|
1239
|
-
var _iteratorError8 = undefined;
|
|
1240
|
-
|
|
1241
|
-
try {
|
|
1242
|
-
for (var _iterator8 = value[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {
|
|
1243
|
-
var item = _step8.value;
|
|
1244
|
-
if (item.key === _search10.value) return true;
|
|
1245
|
-
}
|
|
1246
|
-
} catch (err) {
|
|
1247
|
-
_didIteratorError8 = true;
|
|
1248
|
-
_iteratorError8 = err;
|
|
1249
|
-
} finally {
|
|
1250
|
-
try {
|
|
1251
|
-
if (!_iteratorNormalCompletion8 && _iterator8["return"] != null) {
|
|
1252
|
-
_iterator8["return"]();
|
|
1253
|
-
}
|
|
1254
|
-
} finally {
|
|
1255
|
-
if (_didIteratorError8) {
|
|
1256
|
-
throw _iteratorError8;
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
return false;
|
|
1262
|
-
} else return false;
|
|
1263
|
-
}
|
|
1264
|
-
}]);
|
|
1265
|
-
|
|
1266
|
-
return MultipleLookupControl;
|
|
1267
|
-
}(LookupControl);
|
|
1268
|
-
MultipleLookupControl.prototype.subtype = "multiplelookup";
|
|
1269
|
-
var MultipleLookupSelectControl =
|
|
1270
|
-
/*#__PURE__*/
|
|
1271
|
-
function (_MultipleLookupContro) {
|
|
1272
|
-
_inherits(MultipleLookupSelectControl, _MultipleLookupContro);
|
|
1273
|
-
|
|
1274
|
-
function MultipleLookupSelectControl() {
|
|
1275
|
-
_classCallCheck(this, MultipleLookupSelectControl);
|
|
1276
|
-
|
|
1277
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(MultipleLookupSelectControl).apply(this, arguments));
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
return MultipleLookupSelectControl;
|
|
1281
|
-
}(MultipleLookupControl);
|
|
1282
|
-
MultipleLookupSelectControl.prototype.subtype = "select";
|
|
1283
|
-
var MultipleLookupCheckboxControl =
|
|
1284
|
-
/*#__PURE__*/
|
|
1285
|
-
function (_MultipleLookupContro2) {
|
|
1286
|
-
_inherits(MultipleLookupCheckboxControl, _MultipleLookupContro2);
|
|
1287
|
-
|
|
1288
|
-
function MultipleLookupCheckboxControl() {
|
|
1289
|
-
_classCallCheck(this, MultipleLookupCheckboxControl);
|
|
1290
|
-
|
|
1291
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(MultipleLookupCheckboxControl).apply(this, arguments));
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
return MultipleLookupCheckboxControl;
|
|
1295
|
-
}(MultipleLookupControl);
|
|
1296
|
-
MultipleLookupCheckboxControl.prototype.subtype = "checkbox";
|
|
1297
|
-
var MultipleLookupChoiceControl =
|
|
1298
|
-
/*#__PURE__*/
|
|
1299
|
-
function (_MultipleLookupContro3) {
|
|
1300
|
-
_inherits(MultipleLookupChoiceControl, _MultipleLookupContro3);
|
|
1301
|
-
|
|
1302
|
-
function MultipleLookupChoiceControl() {
|
|
1303
|
-
_classCallCheck(this, MultipleLookupChoiceControl);
|
|
1304
|
-
|
|
1305
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(MultipleLookupChoiceControl).apply(this, arguments));
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
return MultipleLookupChoiceControl;
|
|
1309
|
-
}(MultipleLookupControl);
|
|
1310
|
-
MultipleLookupChoiceControl.prototype.subtype = "choice";
|
|
1311
|
-
var MultipleAppLookupControl =
|
|
1312
|
-
/*#__PURE__*/
|
|
1313
|
-
function (_AppLookupControl4) {
|
|
1314
|
-
_inherits(MultipleAppLookupControl, _AppLookupControl4);
|
|
1315
|
-
|
|
1316
|
-
function MultipleAppLookupControl() {
|
|
1317
|
-
_classCallCheck(this, MultipleAppLookupControl);
|
|
1318
|
-
|
|
1319
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(MultipleAppLookupControl).apply(this, arguments));
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
_createClass(MultipleAppLookupControl, [{
|
|
1323
|
-
key: "search",
|
|
1324
|
-
// ``search.value`` must be an object containing the search criteria for the referenced record
|
|
1325
|
-
value: function search(value, _search11) {
|
|
1326
|
-
if (_search11.operator === "equals") {
|
|
1327
|
-
if (_search11.value === null) return value.length === 0;else {
|
|
1328
|
-
var _iteratorNormalCompletion9 = true;
|
|
1329
|
-
var _didIteratorError9 = false;
|
|
1330
|
-
var _iteratorError9 = undefined;
|
|
1331
|
-
|
|
1332
|
-
try {
|
|
1333
|
-
for (var _iterator9 = value[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) {
|
|
1334
|
-
var item = _step9.value;
|
|
1335
|
-
if (item.search(_search11.value)) return true;
|
|
1336
|
-
}
|
|
1337
|
-
} catch (err) {
|
|
1338
|
-
_didIteratorError9 = true;
|
|
1339
|
-
_iteratorError9 = err;
|
|
1340
|
-
} finally {
|
|
1341
|
-
try {
|
|
1342
|
-
if (!_iteratorNormalCompletion9 && _iterator9["return"] != null) {
|
|
1343
|
-
_iterator9["return"]();
|
|
1344
|
-
}
|
|
1345
|
-
} finally {
|
|
1346
|
-
if (_didIteratorError9) {
|
|
1347
|
-
throw _iteratorError9;
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
return false;
|
|
1353
|
-
}
|
|
1354
|
-
} else return false;
|
|
1355
|
-
}
|
|
1356
|
-
}]);
|
|
1357
|
-
|
|
1358
|
-
return MultipleAppLookupControl;
|
|
1359
|
-
}(AppLookupControl);
|
|
1360
|
-
MultipleAppLookupControl.prototype.type = "multipleapplookup";
|
|
1361
|
-
var MultipleAppLookupSelectControl =
|
|
1362
|
-
/*#__PURE__*/
|
|
1363
|
-
function (_MultipleAppLookupCon) {
|
|
1364
|
-
_inherits(MultipleAppLookupSelectControl, _MultipleAppLookupCon);
|
|
1365
|
-
|
|
1366
|
-
function MultipleAppLookupSelectControl() {
|
|
1367
|
-
_classCallCheck(this, MultipleAppLookupSelectControl);
|
|
1368
|
-
|
|
1369
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(MultipleAppLookupSelectControl).apply(this, arguments));
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
return MultipleAppLookupSelectControl;
|
|
1373
|
-
}(MultipleAppLookupControl);
|
|
1374
|
-
MultipleAppLookupSelectControl.prototype.subtype = "select";
|
|
1375
|
-
var MultipleAppLookupCheckboxControl =
|
|
1376
|
-
/*#__PURE__*/
|
|
1377
|
-
function (_MultipleAppLookupCon2) {
|
|
1378
|
-
_inherits(MultipleAppLookupCheckboxControl, _MultipleAppLookupCon2);
|
|
1379
|
-
|
|
1380
|
-
function MultipleAppLookupCheckboxControl() {
|
|
1381
|
-
_classCallCheck(this, MultipleAppLookupCheckboxControl);
|
|
1382
|
-
|
|
1383
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(MultipleAppLookupCheckboxControl).apply(this, arguments));
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
return MultipleAppLookupCheckboxControl;
|
|
1387
|
-
}(MultipleAppLookupControl);
|
|
1388
|
-
MultipleAppLookupCheckboxControl.prototype.subtype = "checkbox";
|
|
1389
|
-
var MultipleAppLookupChoiceControl =
|
|
1390
|
-
/*#__PURE__*/
|
|
1391
|
-
function (_MultipleAppLookupCon3) {
|
|
1392
|
-
_inherits(MultipleAppLookupChoiceControl, _MultipleAppLookupCon3);
|
|
1393
|
-
|
|
1394
|
-
function MultipleAppLookupChoiceControl() {
|
|
1395
|
-
_classCallCheck(this, MultipleAppLookupChoiceControl);
|
|
1396
|
-
|
|
1397
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(MultipleAppLookupChoiceControl).apply(this, arguments));
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
return MultipleAppLookupChoiceControl;
|
|
1401
|
-
}(MultipleAppLookupControl);
|
|
1402
|
-
MultipleAppLookupChoiceControl.prototype.subtype = "choice";
|
|
1403
|
-
var GeoControl =
|
|
1404
|
-
/*#__PURE__*/
|
|
1405
|
-
function (_Control8) {
|
|
1406
|
-
_inherits(GeoControl, _Control8);
|
|
1407
|
-
|
|
1408
|
-
function GeoControl() {
|
|
1409
|
-
_classCallCheck(this, GeoControl);
|
|
1410
|
-
|
|
1411
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(GeoControl).apply(this, arguments));
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
return GeoControl;
|
|
1415
|
-
}(Control);
|
|
1416
|
-
GeoControl.prototype.type = "geo";
|
|
1417
|
-
var FileControl =
|
|
1418
|
-
/*#__PURE__*/
|
|
1419
|
-
function (_Control9) {
|
|
1420
|
-
_inherits(FileControl, _Control9);
|
|
1421
|
-
|
|
1422
|
-
function FileControl() {
|
|
1423
|
-
_classCallCheck(this, FileControl);
|
|
1424
|
-
|
|
1425
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(FileControl).apply(this, arguments));
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
return FileControl;
|
|
1429
|
-
}(Control);
|
|
1430
|
-
FileControl.prototype.type = "file";
|
|
1431
|
-
var ButtonControl =
|
|
1432
|
-
/*#__PURE__*/
|
|
1433
|
-
function (_Control10) {
|
|
1434
|
-
_inherits(ButtonControl, _Control10);
|
|
1435
|
-
|
|
1436
|
-
function ButtonControl() {
|
|
1437
|
-
_classCallCheck(this, ButtonControl);
|
|
1438
|
-
|
|
1439
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(ButtonControl).apply(this, arguments));
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
return ButtonControl;
|
|
1443
|
-
}(Control);
|
|
1444
|
-
ButtonControl.prototype.type = "button";
|
|
1445
|
-
var Field =
|
|
1446
|
-
/*#__PURE__*/
|
|
1447
|
-
function (_Base8) {
|
|
1448
|
-
_inherits(Field, _Base8);
|
|
1449
|
-
|
|
1450
|
-
function Field(control, record, value) {
|
|
1451
|
-
var _this3;
|
|
1452
|
-
|
|
1453
|
-
_classCallCheck(this, Field);
|
|
1454
|
-
|
|
1455
|
-
_this3 = _possibleConstructorReturn(this, _getPrototypeOf(Field).call(this));
|
|
1456
|
-
_this3.control = control;
|
|
1457
|
-
_this3.record = record;
|
|
1458
|
-
_this3._value = value;
|
|
1459
|
-
_this3._dirty = false;
|
|
1460
|
-
_this3.errors = [];
|
|
1461
|
-
return _this3;
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
_createClass(Field, [{
|
|
1465
|
-
key: "is_empty",
|
|
1466
|
-
value: function is_empty() {
|
|
1467
|
-
return this._value === null || _islist(this._value) && this._value.length === 0;
|
|
1468
|
-
}
|
|
1469
|
-
}, {
|
|
1470
|
-
key: "is_dirty",
|
|
1471
|
-
value: function is_dirty() {
|
|
1472
|
-
return this._dirty;
|
|
1473
|
-
}
|
|
1474
|
-
}, {
|
|
1475
|
-
key: "has_errors",
|
|
1476
|
-
value: function has_errors() {
|
|
1477
|
-
return this.errors.length !== 0;
|
|
1478
|
-
}
|
|
1479
|
-
}, {
|
|
1480
|
-
key: "search",
|
|
1481
|
-
value: function search(searchvalue) {
|
|
1482
|
-
return this.control.search(this.value, searchvalue);
|
|
1483
|
-
}
|
|
1484
|
-
}, {
|
|
1485
|
-
key: "__repr__",
|
|
1486
|
-
value: function __repr__() {
|
|
1487
|
-
var s = "<Field identifier=";
|
|
1488
|
-
s += _repr(this.control.identifier);
|
|
1489
|
-
if (this._dirty) s += " is_dirty()=True";
|
|
1490
|
-
if (this.errors.length !== 0) s += " has_errors()=True";
|
|
1491
|
-
s += ">";
|
|
1492
|
-
return s;
|
|
1493
|
-
}
|
|
1494
|
-
}, {
|
|
1495
|
-
key: "value",
|
|
1496
|
-
get: function get() {
|
|
1497
|
-
return this._value;
|
|
1498
|
-
},
|
|
1499
|
-
set: function set(value) {
|
|
1500
|
-
var oldvalue = this._value;
|
|
1501
|
-
|
|
1502
|
-
if (_ne(oldvalue, value)) {
|
|
1503
|
-
this.record.values.set(this.control.identifier, value);
|
|
1504
|
-
this._value = value;
|
|
1505
|
-
this._dirty = true;
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
}]);
|
|
1509
|
-
|
|
1510
|
-
return Field;
|
|
1511
|
-
}(Base);
|
|
1512
|
-
var LookupItem =
|
|
1513
|
-
/*#__PURE__*/
|
|
1514
|
-
function (_Base9) {
|
|
1515
|
-
_inherits(LookupItem, _Base9);
|
|
1516
|
-
|
|
1517
|
-
function LookupItem() {
|
|
1518
|
-
_classCallCheck(this, LookupItem);
|
|
1519
|
-
|
|
1520
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(LookupItem).apply(this, arguments));
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
_createClass(LookupItem, [{
|
|
1524
|
-
key: "__repr__",
|
|
1525
|
-
value: function __repr__() {
|
|
1526
|
-
return "<LookupItem key=" + _repr(this.key) + " label=" + _repr(this.label) + ">";
|
|
1527
|
-
}
|
|
1528
|
-
}]);
|
|
1529
|
-
|
|
1530
|
-
return LookupItem;
|
|
1531
|
-
}(Base);
|
|
1532
|
-
LookupItem.prototype._ul4onattrs = ["key", "label"];
|
|
1533
|
-
LookupItem.prototype._ul4attrs = _makeset("key", "label");
|
|
1534
|
-
var User =
|
|
1535
|
-
/*#__PURE__*/
|
|
1536
|
-
function (_Base10) {
|
|
1537
|
-
_inherits(User, _Base10);
|
|
1538
|
-
|
|
1539
|
-
function User() {
|
|
1540
|
-
_classCallCheck(this, User);
|
|
1541
|
-
|
|
1542
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(User).apply(this, arguments));
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
_createClass(User, [{
|
|
1546
|
-
key: "__repr__",
|
|
1547
|
-
value: function __repr__() {
|
|
1548
|
-
return "<User id=" + _repr(this.id) + " firstname=" + _repr(this.firstname) + " surname=" + _repr(this.surname) + " email=" + _repr(this.email) + ">";
|
|
1549
|
-
}
|
|
1550
|
-
}]);
|
|
1551
|
-
|
|
1552
|
-
return User;
|
|
1553
|
-
}(Base);
|
|
1554
|
-
User.prototype._ul4onattrs = ["_id", "id", "gender", "firstname", "surname", "initials", "email", "language", "avatarsmall", "avatarlarge", "keyviews"];
|
|
1555
|
-
User.prototype._ul4attrs = _makeset("_id", "id", "gender", "firstname", "surname", "initials", "email", "language", "avatarsmall", "avatarlarge", "keyviews");
|
|
1556
|
-
var File =
|
|
1557
|
-
/*#__PURE__*/
|
|
1558
|
-
function (_Base11) {
|
|
1559
|
-
_inherits(File, _Base11);
|
|
1560
|
-
|
|
1561
|
-
function File() {
|
|
1562
|
-
_classCallCheck(this, File);
|
|
1563
|
-
|
|
1564
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(File).apply(this, arguments));
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
_createClass(File, [{
|
|
1568
|
-
key: "__repr__",
|
|
1569
|
-
value: function __repr__() {
|
|
1570
|
-
return "<File id=" + _repr(this.id) + " url=" + _repr(this.url) + " filename=" + _repr(this.filename) + ">";
|
|
1571
|
-
}
|
|
1572
|
-
}]);
|
|
1573
|
-
|
|
1574
|
-
return File;
|
|
1575
|
-
}(Base);
|
|
1576
|
-
File.prototype._ul4onattrs = ["id", "url", "filename", "mimetype", "width", "height", "internalid", "createdat", "size"];
|
|
1577
|
-
File.prototype._ul4attrs = _makeset("id", "url", "filename", "mimetype", "width", "height", "size", "createdat");
|
|
1578
|
-
var Geo =
|
|
1579
|
-
/*#__PURE__*/
|
|
1580
|
-
function (_Base12) {
|
|
1581
|
-
_inherits(Geo, _Base12);
|
|
1582
|
-
|
|
1583
|
-
function Geo(lat, _long, info) {
|
|
1584
|
-
var _this4;
|
|
1585
|
-
|
|
1586
|
-
_classCallCheck(this, Geo);
|
|
1587
|
-
|
|
1588
|
-
_this4 = _possibleConstructorReturn(this, _getPrototypeOf(Geo).call(this));
|
|
1589
|
-
_this4.lat = lat;
|
|
1590
|
-
_this4["long"] = _long;
|
|
1591
|
-
_this4.info = info;
|
|
1592
|
-
return _this4;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
_createClass(Geo, [{
|
|
1596
|
-
key: "__repr__",
|
|
1597
|
-
value: function __repr__() {
|
|
1598
|
-
return "<Geo lat=" + _repr(this.lat) + " long=" + _repr(this["long"]) + " info=" + _repr(this.info) + ">";
|
|
1599
|
-
}
|
|
1600
|
-
}]);
|
|
1601
|
-
|
|
1602
|
-
return Geo;
|
|
1603
|
-
}(Base);
|
|
1604
|
-
Geo.prototype._ul4onattrs = ["lat", "long", "info"];
|
|
1605
|
-
Geo.prototype._ul4attrs = _makeset("lat", "long", "info");
|
|
1606
|
-
var Attachment =
|
|
1607
|
-
/*#__PURE__*/
|
|
1608
|
-
function (_Base13) {
|
|
1609
|
-
_inherits(Attachment, _Base13);
|
|
1610
|
-
|
|
1611
|
-
function Attachment() {
|
|
1612
|
-
_classCallCheck(this, Attachment);
|
|
1613
|
-
|
|
1614
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Attachment).apply(this, arguments));
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
_createClass(Attachment, [{
|
|
1618
|
-
key: "__repr__",
|
|
1619
|
-
value: function __repr__() {
|
|
1620
|
-
return "<" + this.__type__ + " id=" + _repr(this.id) + " label=" + _repr(this.label) + ">";
|
|
1621
|
-
}
|
|
1622
|
-
}]);
|
|
1623
|
-
|
|
1624
|
-
return Attachment;
|
|
1625
|
-
}(Base);
|
|
1626
|
-
Attachment.prototype._ul4onattrs = ["id", "record", "label", "active"];
|
|
1627
|
-
Attachment.prototype._ul4attrs = _makeset("id", "record", "label", "active");
|
|
1628
|
-
var NoteAttachment =
|
|
1629
|
-
/*#__PURE__*/
|
|
1630
|
-
function (_Attachment) {
|
|
1631
|
-
_inherits(NoteAttachment, _Attachment);
|
|
1632
|
-
|
|
1633
|
-
function NoteAttachment() {
|
|
1634
|
-
_classCallCheck(this, NoteAttachment);
|
|
1635
|
-
|
|
1636
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(NoteAttachment).apply(this, arguments));
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
return NoteAttachment;
|
|
1640
|
-
}(Attachment);
|
|
1641
|
-
NoteAttachment.prototype.type = "noteattachment";
|
|
1642
|
-
NoteAttachment.prototype._ul4onattrs = Attachment.prototype._ul4onattrs.concat(["value"]);
|
|
1643
|
-
NoteAttachment.prototype._ul4attrs = _makeset.apply(ul4, _toConsumableArray(Attachment.prototype._ul4onattrs).concat(["value"]));
|
|
1644
|
-
var URLAttachment =
|
|
1645
|
-
/*#__PURE__*/
|
|
1646
|
-
function (_Attachment2) {
|
|
1647
|
-
_inherits(URLAttachment, _Attachment2);
|
|
1648
|
-
|
|
1649
|
-
function URLAttachment() {
|
|
1650
|
-
_classCallCheck(this, URLAttachment);
|
|
1651
|
-
|
|
1652
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(URLAttachment).apply(this, arguments));
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
|
-
return URLAttachment;
|
|
1656
|
-
}(Attachment);
|
|
1657
|
-
URLAttachment.prototype.type = "urlattachment";
|
|
1658
|
-
URLAttachment.prototype._ul4onattrs = Attachment.prototype._ul4onattrs.concat(["value"]);
|
|
1659
|
-
URLAttachment.prototype._ul4attrs = _makeset.apply(ul4, _toConsumableArray(Attachment.prototype._ul4onattrs).concat(["value"]));
|
|
1660
|
-
var FileAttachment =
|
|
1661
|
-
/*#__PURE__*/
|
|
1662
|
-
function (_Attachment3) {
|
|
1663
|
-
_inherits(FileAttachment, _Attachment3);
|
|
1664
|
-
|
|
1665
|
-
function FileAttachment() {
|
|
1666
|
-
_classCallCheck(this, FileAttachment);
|
|
1667
|
-
|
|
1668
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(FileAttachment).apply(this, arguments));
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
return FileAttachment;
|
|
1672
|
-
}(Attachment);
|
|
1673
|
-
FileAttachment.prototype.type = "fileattachment";
|
|
1674
|
-
FileAttachment.prototype._ul4onattrs = Attachment.prototype._ul4onattrs.concat(["value"]);
|
|
1675
|
-
FileAttachment.prototype._ul4attrs = _makeset.apply(ul4, _toConsumableArray(Attachment.prototype._ul4onattrs).concat(["value"]));
|
|
1676
|
-
var ImageAttachment =
|
|
1677
|
-
/*#__PURE__*/
|
|
1678
|
-
function (_Attachment4) {
|
|
1679
|
-
_inherits(ImageAttachment, _Attachment4);
|
|
1680
|
-
|
|
1681
|
-
function ImageAttachment() {
|
|
1682
|
-
_classCallCheck(this, ImageAttachment);
|
|
1683
|
-
|
|
1684
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(ImageAttachment).apply(this, arguments));
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
|
-
return ImageAttachment;
|
|
1688
|
-
}(Attachment);
|
|
1689
|
-
ImageAttachment.prototype.type = "imageattachment";
|
|
1690
|
-
ImageAttachment.prototype._ul4onattrs = Attachment.prototype._ul4onattrs.concat(["original", "thumb", "small", "medium", "large"]);
|
|
1691
|
-
ImageAttachment.prototype._ul4attrs = _makeset.apply(ul4, _toConsumableArray(Attachment.prototype._ul4onattrs).concat(["original", "thumb", "small", "medium", "large"]));
|
|
1692
|
-
var JSONAttachment =
|
|
1693
|
-
/*#__PURE__*/
|
|
1694
|
-
function (_Attachment5) {
|
|
1695
|
-
_inherits(JSONAttachment, _Attachment5);
|
|
1696
|
-
|
|
1697
|
-
function JSONAttachment() {
|
|
1698
|
-
_classCallCheck(this, JSONAttachment);
|
|
1699
|
-
|
|
1700
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(JSONAttachment).apply(this, arguments));
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
_createClass(JSONAttachment, [{
|
|
1704
|
-
key: "_dumpUL4ONAttr",
|
|
1705
|
-
value: function _dumpUL4ONAttr(name) {
|
|
1706
|
-
if (name === "value") return _asjson(this.value);else return this[name];
|
|
1707
|
-
}
|
|
1708
|
-
}, {
|
|
1709
|
-
key: "_loadUL4ONAttr",
|
|
1710
|
-
value: function _loadUL4ONAttr(name, value) {
|
|
1711
|
-
if (name === "value") this.value = _fromjson(value);else this[name] = value;
|
|
1712
|
-
}
|
|
1713
|
-
}]);
|
|
1714
|
-
|
|
1715
|
-
return JSONAttachment;
|
|
1716
|
-
}(Attachment);
|
|
1717
|
-
JSONAttachment.prototype.type = "jsonattachment";
|
|
1718
|
-
JSONAttachment.prototype._ul4onattrs = Attachment.prototype._ul4onattrs.concat(["value"]);
|
|
1719
|
-
JSONAttachment.prototype._ul4attrs = _makeset.apply(ul4, _toConsumableArray(Attachment.prototype._ul4onattrs).concat(["value"]));
|
|
1720
|
-
var Installation =
|
|
1721
|
-
/*#__PURE__*/
|
|
1722
|
-
function (_Base14) {
|
|
1723
|
-
_inherits(Installation, _Base14);
|
|
1724
|
-
|
|
1725
|
-
function Installation() {
|
|
1726
|
-
_classCallCheck(this, Installation);
|
|
1727
|
-
|
|
1728
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Installation).apply(this, arguments));
|
|
1729
|
-
}
|
|
1730
|
-
|
|
1731
|
-
_createClass(Installation, [{
|
|
1732
|
-
key: "__repr__",
|
|
1733
|
-
value: function __repr__() {
|
|
1734
|
-
return "<Installation id=" + _repr(this.id) + " name=" + _repr(this.name) + ">";
|
|
1735
|
-
}
|
|
1736
|
-
}]);
|
|
1737
|
-
|
|
1738
|
-
return Installation;
|
|
1739
|
-
}(Base);
|
|
1740
|
-
Installation.prototype._ul4onattrs = ["id", "name"];
|
|
1741
|
-
Installation.prototype._ul4attrs = _makeset("id", "name");
|
|
1742
|
-
var Category =
|
|
1743
|
-
/*#__PURE__*/
|
|
1744
|
-
function (_Base15) {
|
|
1745
|
-
_inherits(Category, _Base15);
|
|
1746
|
-
|
|
1747
|
-
function Category() {
|
|
1748
|
-
_classCallCheck(this, Category);
|
|
1749
|
-
|
|
1750
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(Category).apply(this, arguments));
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
_createClass(Category, [{
|
|
1754
|
-
key: "__repr__",
|
|
1755
|
-
value: function __repr__() {
|
|
1756
|
-
var v = [];
|
|
1757
|
-
var category = this;
|
|
1758
|
-
|
|
1759
|
-
while (category !== null) {
|
|
1760
|
-
v.splice(0, 0, category.identifier);
|
|
1761
|
-
category = category.parent;
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
return "<Category id=" + _repr(this.id) + " identifierpath=" + _repr(v.join("/")) + +" name=" + _repr(this.name) + ">";
|
|
1765
|
-
}
|
|
1766
|
-
}]);
|
|
1767
|
-
|
|
1768
|
-
return Category;
|
|
1769
|
-
}(Base);
|
|
1770
|
-
Category.prototype._ul4onattrs = ["id", "identifier", "name", "order", "parent", "children", "apps"];
|
|
1771
|
-
Category.prototype._ul4attrs = _makeset("id", "identifier", "name", "order", "parent", "children", "apps");
|
|
1772
|
-
var KeyView =
|
|
1773
|
-
/*#__PURE__*/
|
|
1774
|
-
function (_Base16) {
|
|
1775
|
-
_inherits(KeyView, _Base16);
|
|
1776
|
-
|
|
1777
|
-
function KeyView() {
|
|
1778
|
-
_classCallCheck(this, KeyView);
|
|
1779
|
-
|
|
1780
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(KeyView).apply(this, arguments));
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
|
-
_createClass(KeyView, [{
|
|
1784
|
-
key: "__repr__",
|
|
1785
|
-
value: function __repr__() {
|
|
1786
|
-
return "<KeyView id=" + _repr(this.id) + " identifier=" + _repr(this.identifier) + ">";
|
|
1787
|
-
}
|
|
1788
|
-
}]);
|
|
1789
|
-
|
|
1790
|
-
return KeyView;
|
|
1791
|
-
}(Base);
|
|
1792
|
-
KeyView.prototype._ul4onattrs = ["id", "identifier", "name", "key", "user"];
|
|
1793
|
-
KeyView.prototype._ul4attrs = _makeset("id", "identifier", "name", "key", "user");
|
|
1794
|
-
var AppParameter =
|
|
1795
|
-
/*#__PURE__*/
|
|
1796
|
-
function (_Base17) {
|
|
1797
|
-
_inherits(AppParameter, _Base17);
|
|
1798
|
-
|
|
1799
|
-
function AppParameter() {
|
|
1800
|
-
_classCallCheck(this, AppParameter);
|
|
1801
|
-
|
|
1802
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(AppParameter).apply(this, arguments));
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
_createClass(AppParameter, [{
|
|
1806
|
-
key: "__repr__",
|
|
1807
|
-
value: function __repr__() {
|
|
1808
|
-
return "<AppParameter id=" + _repr(this.id) + " identifier=" + _repr(this.identifier) + ">";
|
|
1809
|
-
}
|
|
1810
|
-
}]);
|
|
1811
|
-
|
|
1812
|
-
return AppParameter;
|
|
1813
|
-
}(Base);
|
|
1814
|
-
AppParameter.prototype._ul4onattrs = ["id", "app", "identifier", "description", "value"];
|
|
1815
|
-
AppParameter.prototype._ul4attrs = _makeset("id", "app", "identifier", "description", "value");
|
|
1816
|
-
var classes = [Globals, FlashMessage, App, View, DataSourceData, Record, BoolControl, IntControl, NumberControl, TextControl, EmailControl, URLControl, TelControl, PasswordControl, TextAreaControl, DateControl, DatetimeMinuteControl, DatetimeSecondControl, LookupControl, LookupSelectControl, LookupRadioControl, LookupChoiceControl, AppLookupControl, AppLookupSelectControl, AppLookupRadioControl, AppLookupChoiceControl, MultipleLookupControl, MultipleLookupSelectControl, MultipleLookupCheckboxControl, MultipleLookupChoiceControl, MultipleAppLookupControl, MultipleAppLookupSelectControl, MultipleAppLookupCheckboxControl, MultipleAppLookupChoiceControl, GeoControl, FileControl, ButtonControl, Field, LookupItem, User, File, Geo, NoteAttachment, URLAttachment, FileAttachment, ImageAttachment, JSONAttachment, Installation, Category, KeyView, AppParameter];
|
|
1817
|
-
|
|
1818
|
-
for (var _i = 0, _classes = classes; _i < _classes.length; _i++) {
|
|
1819
|
-
var _constructor = _classes[_i];
|
|
1820
|
-
register("de.livinglogic.livingapi." + _constructor.name.toLowerCase(), _constructor);
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
export { App, AppLookupChoiceControl, AppLookupControl, AppLookupRadioControl, AppLookupSelectControl, AppParameter, Attachment, Base, BoolControl, ButtonControl, Category, Control, DataSourceData, DateControl, DatetimeMinuteControl, DatetimeSecondControl, EmailControl, Field, File, FileAttachment, FileControl, FlashMessage, Geo, GeoControl, Globals, Handler, ImageAttachment, Installation, IntControl, JSONAttachment, KeyView, LookupChoiceControl, LookupControl, LookupItem, LookupRadioControl, LookupSelectControl, MultipleAppLookupCheckboxControl, MultipleAppLookupChoiceControl, MultipleAppLookupControl, MultipleAppLookupSelectControl, MultipleLookupCheckboxControl, MultipleLookupChoiceControl, MultipleLookupControl, MultipleLookupSelectControl, NoteAttachment, NumberControl, PasswordControl, Record, StringControl, TelControl, TextAreaControl, TextControl, URLAttachment, URLControl, User, View, version };
|
|
1
|
+
import*as e from"/static/ul4/1.1.1/dist/esm/ul4.js";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var r,o=_getPrototypeOf(e);if(t){var l=_getPrototypeOf(this).constructor;r=Reflect.construct(o,arguments,l)}else r=o.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _get(e,t,r){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(e,t,r){var o=function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}(e,t);if(o){var l=Object.getOwnPropertyDescriptor(o,t);return l.get?l.get.call(r):l.value}})(e,t,r||e)}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var o,l,n=[],a=!0,i=!1;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){i=!0,l=e}finally{try{a||null==r.return||r.return()}finally{if(i)throw l}}return n}(e,t)||_unsupportedIterableToArray(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_unsupportedIterableToArray(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,F=function(){};return{s:F,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,n=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return n=e.done,e},e:function(e){a=!0,l=e},f:function(){try{n||null==r.return||r.return()}finally{if(a)throw l}}}}var t,r,o,l,n,a,i,u,s,p,c,d,_,h,f,y,v,m,k,g,C,b="0.13.0",A=function(t){_inherits(Base,e.Proto);var r=_createSuper(Base);function Base(e){var t;return _classCallCheck(this,Base),(t=r.call(this)).id=e,t}return _createClass(Base,[{key:"ul4onid",get:function get(){return this.id}},{key:"ul4ondump",value:function ul4ondump(e){for(var t=0;t<this._ul4onattrs.length;++t)e.dump(this._dumpUL4ONAttr(this._ul4onattrs[t]))}},{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(e){return this[e]}},{key:"ul4onload",value:function ul4onload(e){for(var t=0,r=e.loadcontent();;++t){var o=r.next();if(o.done)break;t<this._ul4onattrs.length&&this._loadUL4ONAttr(this._ul4onattrs[t],o.value)}for(;t<this._ul4onattrs.length;++t)this._setDefaultUL4ONAttr(this._ul4onattrs[t])}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(e,t){this[e]=t}},{key:"_setDefaultUL4ONAttr",value:function _setDefaultUL4ONAttr(e){this[e]=null}},{key:e.symbols.getattr,value:function value(t){if(this._ul4attrs.has(t)){var value=this[t];if("function"==typeof value){var r=value.bind(this);return r._ul4_name=value._ul4_name||value.name,r._ul4_signature=value._ul4_signature,r._ul4_needsobject=value._ul4_needsobject,r._ul4_needscontext=value._ul4_needscontext,r}return value}throw new e.AttributeError(this,t)}},{key:e.symbols.repr,value:function value(){return"<"+this.constructor.name+">"}},{key:"toString",value:function toString(){return this[e.symbols.repr]()}}]),Base}(),L=function(){function Handler(){_classCallCheck(this,Handler)}return _createClass(Handler,[{key:"save",value:function save(e){}},{key:"delete",value:function _delete(e){}}]),Handler}();t=e.symbols.repr;var w=function(r){_inherits(Globals,A);var o=_createSuper(Globals);function Globals(e){var t;return _classCallCheck(this,Globals),(t=o.call(this,e)).version=null,t.hostname=null,t.platform=null,t.user=null,t.lang=null,t.app=null,t.record=null,t.maxdbactions=null,t.maxtemplateruntime=null,t.flashmessages=null,t.handler=new L,t}return _createClass(Globals,[{key:"scaledURL",value:function scaledURL(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"fill",l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"sm",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,i=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,s=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,p=arguments.length>10&&void 0!==arguments[10]?arguments[10]:null,c=!(arguments.length>11&&void 0!==arguments[11])||arguments[11],d=null;e instanceof Ee&&(e="https://"+this.hostname+e.url,(d=encodeURIComponent(e.filename))!=e.filename&&(d=null));var _="";return _+=c?"/imgproxycache/insecure":"/imgproxy/insecure","fit"!==o&&(_+="/rt:"+o),null!=t&&(_+="/w:"+t),null!=r&&(_+="/h:"+r),l&&(_+="/el:1"),null!=n&&(_+="/g:"+n),null!=a&&(_+="/q:"+a),null!==i&&i%360!=0&&(_+="/rot:"+rotatet),null!=u&&(_+="/bl:"+u),null!=s&&(_+="/sh:"+s),null!=p&&(_+="/f:"+p),null!=d&&(_+="/fn:"+d),_+="/plain/"+encodeURIComponent(e)}},{key:t,value:function value(){return"<Globals version="+e._repr(this.version)+">"}}],[{key:"geodist",value:function geodist(e,t){var r=function sqsin(e){return(e=Math.sin(e))*e},o=function sqsos(e){return(e=Math.cos(e))*e},l=Math.PI/180,n=1/298.257223563,a=e.lat*l,i=e.long*l,u=t.lat*l,s=(a+u)/2,p=(a-u)/2,c=(i-t.long*l)/2,d=r(p)*o(c)+o(s)*r(c),_=o(p)*o(c)+r(s)*r(c),h=Math.atan(Math.sqrt(d/_)),f=2*h*6378.137,y=Math.sqrt(d*_)/h,v=(3*y+1)/(2*d);return f*(1+n*((3*y-1)/(2*_))*r(s)*o(p)-n*v*o(s)*r(p))}}]),Globals}();_defineProperty(w,"classdoc","Global information"),w.prototype._ul4onattrs=["version","platform","user","maxdbactions","maxtemplateruntime","flashmessages","lang","datasources","hostname","app","record","google_api_key","mode","view_template_id","email_template_id","view_id"],w.prototype._ul4attrs=new Set(["version","hostname","platform","user","lang","app","record","maxdbactions","maxtemplateruntime","flashmessages","mode"]),r=e.symbols.repr;var S=function(t){_inherits(FlashMessage,A);var o=_createSuper(FlashMessage);function FlashMessage(){return _classCallCheck(this,FlashMessage),o.apply(this,arguments)}return _createClass(FlashMessage,[{key:r,value:function value(){return"<FlashMessage type="+e._repr(this.type)+" title="+e._repr(this.title)+">"}}]),FlashMessage}();_defineProperty(S,"classdoc","A flash message in a web page"),S.prototype._ul4onattrs=["timestamp","type","title","message"],S.prototype._ul4attrs=new Set(["timestamp","type","title","message"]),o=e.symbols.repr,l=e.symbols.call,n=e.symbols.getattr;var P=function(t){_inherits(App,A);var r=_createSuper(App);function App(){return _classCallCheck(this,App),r.apply(this,arguments)}return _createClass(App,[{key:o,value:function value(){return"<App id="+e._repr(this.id)+" name="+e._repr(this.name)+">"}},{key:"insert",value:function insert(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this[e.symbols.call](t);return this.globals.handler.save(this),r}},{key:"layout_controls",get:function get(){return null===this.active_view?new Map:this.active_view.layout_controls}},{key:l,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new O(null,this);if(e._ismap(t)){var o,l=_createForOfIteratorHelper(t.keys());try{for(l.s();!(o=l.n()).done;){var n=o.value;if(!r.fields.has(n))throw new e.ArgumentError(e._repr(this)+"() get an unexpected keyword argument "+e._repr(n))}}catch(e){l.e(e)}finally{l.f()}r._make_fields(!0,t,null,null)}else{if(!e._isobject(t))throw new e.TypeError("values must be an object or a Map");for(var a in t)if(!r.fields.has(a))throw new e.ArgumentError(e._repr(this)+"() get an unexpected keyword argument "+e._repr(a));r._make_fields(!0,new Map(e._list(e.dicttype.items(t))),null,null)}return r}},{key:n,value:function value(t){if(t.startsWith("c_")){if(!this.controls.has(t.substr(2)))throw new e.AttributeError(this,t);return this.controls.get(t.substr(2))}return _get(_getPrototypeOf(App.prototype),e.symbols.getattr,this).call(this,t)}},{key:"active_view",get:function get(){return this._active_view}},{key:"active_view",set:function set(t){if(null===t);else if("string"==typeof t){if(null===this.views||!this.views.has(t))throw new e.ValueError("View "+e._repr(t)+" not found!");t=this.views.get(t)}else{if(!(t instanceof M))throw new e.TypeError(e._repr(t)+" is not a view!");if(t.app!==this)throw new e.ValueError("View "+e._repr(t)+" belongs to the wrong app!")}this._active_view=t}}]),App}();_defineProperty(P,"classdoc","A LivingApps application"),P.prototype._ul4onattrs=["globals","name","description","lang","startlink","iconlarge","iconsmall","createdby","controls","records","recordcount","installation","categories","params","views","datamanagement_identifier","basetable","primarykey","insertprocedure","updateprocedure","deleteprocedure","templates","createdat","updatedat","updatedby","superid","favorite","_active_view"],P.prototype._ul4attrs=new Set(["id","globals","name","description","lang","startlink","iconlarge","iconsmall","createdat","createdby","updatedat","updatedby","controls","records","recordcount","installation","categories","params","views","datamanagement_identifier","insert","favorite","_active_view"]),e.expose(P.prototype[e.symbols.call],["**values"],{needsobject:!0}),e.expose(P.prototype.insert,["**values"],{needsobject:!0}),a=e.symbols.repr;var M=function(t){_inherits(View,A);var r=_createSuper(View);function View(){return _classCallCheck(this,View),r.apply(this,arguments)}return _createClass(View,[{key:a,value:function value(){return"<View id="+e._repr(this.id)+" name="+e._repr(this.name)+">"}}]),View}();_defineProperty(M,"classdoc","An input form for a LivingApps application"),M.prototype._ul4onattrs=["name","combined_type","app","order","width","height","start","end","controls","layout_controls","lang"],M.prototype._ul4attrs=new Set(["id","name","combined_type","app","order","width","height","start","end","controls","layout_controls","lang"]),i=e.symbols.repr;var x=function(t){_inherits(DataSourceData,A);var r=_createSuper(DataSourceData);function DataSourceData(){return _classCallCheck(this,DataSourceData),r.apply(this,arguments)}return _createClass(DataSourceData,[{key:i,value:function value(){return"<DataSource.Data id="+e._repr(this.id)+" identifier="+e._repr(this.identifier)+">"}}]),DataSourceData}();_defineProperty(x,"classdoc","The data resulting from a data source configuration"),x.prototype._ul4onattrs=["identifier","app","apps"],x.prototype._ul4attrs=new Set(["id","identifier","app","apps"]),u=e.symbols.repr,s=e.symbols.getattr,p=e.symbols.setattr;var O=function(t){_inherits(Record,A);var r=_createSuper(Record);function Record(e,t){var o;return _classCallCheck(this,Record),(o=r.call(this,e)).app=t,o.createdat=null,o.createdby=null,o.updatedat=null,o.updatedby=null,o.updatecount=0,o._sparsevalues=new Map,o._values=null,o._fields=null,o.children=new Map,o.attachments=null,o.errors=[],o._sparsefielderrors=null,o._sparsefieldlookupdata=null,o._is_deleted=!1,o._is_new=!0,o}return _createClass(Record,[{key:"_make_fields",value:function _make_fields(e,t,r,o){var l,n=new Map,a=_createForOfIteratorHelper(this.app.controls.values());try{for(a.s();!(l=a.n()).done;){var i=l.value,u=i.identifier,s=null;null!==t&&(e&&!t.has(u)?s=i.default:t.has(u)&&(s=t.get(u)));var p=new T(i,this,s);n.set(u,p),null!==r&&r.has(u)&&(p.errors=r.get(u)),null!==o&&o.has(u)&&(p.lookupdata=o.get(u))}}catch(e){a.e(e)}finally{a.f()}this._fields=n,this._sparsevalues=null,this._sparsefielderrors=null,this._sparselookupdata=null}},{key:u,value:function value(){var t,r=["<Record id=",e._repr(this.id)],o=_createForOfIteratorHelper(this.fields.values());try{for(o.s();!(t=o.n()).done;){var l=t.value;l.control.priority&&!l.is_empty()&&(r.push(" v_"),r.push(l.control.identifier),r.push("="),r.push(e._repr(l.value)))}}catch(e){o.e(e)}finally{o.f()}return r.push(" state="),r.push(e._repr(this.state)),r.push(">"),r.join("")}},{key:"state",get:function get(){return this._is_deleted?"deleted":this._is_new?"new":this.is_dirty()?"dirty":"saved"}},{key:"values",get:function get(){if(null===this._values){this._values=new Map;var e,t=_createForOfIteratorHelper(this.fields.values());try{for(t.s();!(e=t.n()).done;){var r=e.value;this._values.set(r.control.identifier,r.value)}}catch(e){t.e(e)}finally{t.f()}}return this._values}},{key:"fields",get:function get(){return null===this._fields&&this._make_fields(!1,this._sparsevalues,this._sparsefielderrors,this._sparsefieldlookupdata),this._fields}},{key:"is_dirty",value:function is_dirty(){if(null===this.id)return!0;var e,t=_createForOfIteratorHelper(this.fields.values());try{for(t.s();!(e=t.n()).done;){if(e.value.is_dirty())return!0}}catch(e){t.e(e)}finally{t.f()}return!1}},{key:"has_errors",value:function has_errors(){if(0!==this.errors.length)return!0;var e,t=_createForOfIteratorHelper(this.fields.values());try{for(t.s();!(e=t.n()).done;){if(e.value.has_errors())return!0}}catch(e){t.e(e)}finally{t.f()}return!1}},{key:"delete",value:function _delete(){var e=this.app.globals.handler.delete(this);return this._is_deleted=!0,e}},{key:"save",value:function save(){this.app.globals.handler.save(this)}},{key:"update",value:function update(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e._ismap(t)){var r,o=_createForOfIteratorHelper(t.entries());try{for(o.s();!(r=o.n()).done;){var l=_slicedToArray(r.value,2),n=l[0],a=l[1];if(!this.fields.has(n))throw new e.ArgumentError("update() get an unexpected keyword argument "+e._repr(n));fields.get(n).value=a}}catch(e){o.e(e)}finally{o.f()}}else{if(!e._isobject(t))throw new e.TypeError("values must be an object or a Map");for(var i in t){if(!this.fields.has(i))throw new e.ArgumentError("update() get an unexpected keyword argument "+e._repr(i));record.fields.get(i).value=t[i]}}this.app.globals.handler.save(this)}},{key:"search",value:function search(t){for(var r in t){var o=t[r];if(e._bool(o)&&!this.fields.get(r).search(o))return!1}return!0}},{key:"ul4onload",value:function ul4onload(e){_get(_getPrototypeOf(Record.prototype),"ul4onload",this).call(this,e),this._is_new=!1}},{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(e){return"values"===e?this._sparsevalues:this[e]}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(e,t){"values"===e?(this._sparsevalues=t,this._values=null,this._fields=null):this[e]=t}},{key:s,value:function value(e){return e.startsWith("c_")?this.children.get(e.substr(2)):e.startsWith("f_")?this.fields.get(e.substr(2)):e.startsWith("v_")?this.values.get(e.substr(2)):this[e]}},{key:p,value:function value(t,r){if(t.startsWith("c_"))this.children[t.substr(2)]=r;else{if(!t.startsWith("v_"))throw new e.AttributeError(this,t);this.fields.get(t.substr(2)).value=r}}}]),Record}();_defineProperty(O,"classdoc","A record of a LivingApp application"),O.prototype._ul4onattrs=["app","createdat","createdby","updatedat","updatedby","updatecount","_sparsevalues","attachments","children","errors","_sparsefielderrors","_sparsefieldlookupdata"],O.prototype._ul4attrs=new Set(["id","app","createdat","createdby","updatedat","updatedby","updatecount","values","attachments","children","errors"]),e.expose(O.prototype.is_dirty,[]),e.expose(O.prototype.has_errors,[]),e.expose(O.prototype.delete,[]),e.expose(O.prototype.save,[]),e.expose(O.prototype.update,["**values"],{needsobject:!0}),c=e.symbols.repr;var T=function(t){_inherits(Field,A);var r=_createSuper(Field);function Field(e,t,o){var l;return _classCallCheck(this,Field),(l=r.call(this,null)).control=e,l.record=t,l._label=null,l._value=o,l._dirty=!1,l._lookupdate=null,l.errors=[],l}return _createClass(Field,[{key:"value",get:function get(){return this._value},set:function set(t){var r=this._value,o={value:t,errors:[]};this._validate(o),e._ne(r,o.value)&&(this.record.values.set(this.control.identifier,o.value),this._value=o.value,this._dirty=!0),this.errors=o.errors}},{key:"_validate",value:function _validate(e){}},{key:"label",get:function get(){return null!==this._label?this._label:this.control.label},set:function set(e){this._label=e}},{key:"globals",get:function get(){return this.control.globals}},{key:"is_empty",value:function is_empty(){return null===this._value||e._islist(this._value)&&0===this._value.length}},{key:"is_dirty",value:function is_dirty(){return this._dirty}},{key:"has_errors",value:function has_errors(){return 0!==this.errors.length}},{key:"search",value:function search(e){return this.control.search(this.value,e)}},{key:"msg_field_required",value:function msg_field_required(e){switch(this.globals.lang){case"de":return'"'.concat(this.label,'" wird benötigt!');default:return'"'.concat(this.label,'" is required!')}}},{key:"msg_field_wrong_type",value:function msg_field_wrong_type(t){return'"'.concat(this.label,"\" doesn't support the type ").concat(e._type(t).name,"!")}},{key:"msg_bool_truerequired",value:function msg_bool_truerequired(e){return'"'.concat(this.label,'" only accepts "Yes"!')}},{key:"msg_string_tooshort",value:function msg_string_tooshort(e){return'"'.concat(this.label,'" is too short. Tou must use at least ').concat(this.control.minlength," characters!")}},{key:"msg_string_toolong",value:function msg_string_toolong(e){return'"'.concat(this.label,'" is too long. You may use at most ').concat(this.control.maxlength," characters!")}},{key:"msg_email_format",value:function msg_email_format(e){return'"'.concat(this.label,'" must be a valid email address!')}},{key:"msg_url_format",value:function msg_url_format(e){return'"'.concat(this.label,'" must be a valid URL!')}},{key:"msg_tel_format",value:function msg_tel_format(e){return'"'.concat(this.label,'" must be a valid phone number!')}},{key:"msg_date_format",value:function msg_date_format(e){return'"'.concat(this.label,"\" doesn't support this date format!")}},{key:"msg_lookup_wrongitem",value:function msg_lookup_wrongitem(t){return"The option ".concat(e._repr(t),' for "').concat(this.label,"\" doesn't belong to this lookup!")}},{key:"msg_lookup_unknownkey",value:function msg_lookup_unknownkey(t){return"The option ".concat(e._repr(t),' for "').concat(this.label,'" is unknown!')}},{key:"msg_applookup_wrongrecord",value:function msg_applookup_wrongrecord(t){return"The record ".concat(e._repr(t),' for "').concat(this.label,"\" doesn't belong to the correct app!")}},{key:"msg_applookup_unknownkey",value:function msg_applookup_unknownkey(t){return"The record ".concat(e._repr(t),' for "').concat(this.label,"\" can't be found!")}},{key:c,value:function value(){var t="<Field identifier=";return t+=e._repr(this.control.identifier),this._dirty&&(t+=" is_dirty()=True"),this.errors.length>0&&(t+=" has_errors()=True"),t+=">"}}]),Field}();_defineProperty(T,"classdoc","Holds the value of a field of a record (and related information)"),T.prototype._ul4onattrs=["control","record","label","value","errors","enabled","writable","visible"],T.prototype._ul4attrs=new Set(["control","record","label","value","errors","enabled","writable","visible"]);var I=function(e){_inherits(BoolField,T);var t=_createSuper(BoolField);function BoolField(){return _classCallCheck(this,BoolField),t.apply(this,arguments)}return _createClass(BoolField,[{key:"_validate",value:function _validate(e){null===e.value?this.control.required&&e.errors.push(this.msg_field_required(e.value)):"boolean"==typeof e.value?this.control.required&&!e.value&&e.errors.push(this.msg_bool_truerequired(e.value)):(e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null)}}]),BoolField}();_defineProperty(I,"classdoc","Holds the value of a bool field of a record (and related information)");var D=function(e){_inherits(IntField,T);var t=_createSuper(IntField);function IntField(){return _classCallCheck(this,IntField),t.apply(this,arguments)}return _createClass(IntField,[{key:"_validate",value:function _validate(e){null===e.value?this.control.required&&e.errors.push(this.msg_field_required(e.value)):"number"==typeof e.value&&Math.round(e.value)===e.value||e.errors.push(this.msg_field_wrong_type(e.value))}}]),IntField}();_defineProperty(D,"classdoc","Holds the value of an int field of a record (and related information)");var H=function(e){_inherits(NumberField,T);var t=_createSuper(NumberField);function NumberField(){return _classCallCheck(this,NumberField),t.apply(this,arguments)}return _createClass(NumberField,[{key:"_validate",value:function _validate(e){null===e.value||""===e.value?(this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null):"number"!=typeof e.value&&e.errors.push(this.msg_field_wrong_type(e.value))}}]),NumberField}();_defineProperty(H,"classdoc","Holds the value of a number field of a record (and related information)");var R=function(e){_inherits(StringField,T);var t=_createSuper(StringField);function StringField(){return _classCallCheck(this,StringField),t.apply(this,arguments)}return _createClass(StringField,[{key:"_validate",value:function _validate(e){if(null===e.value||""===e.value)this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null;else if("string"==typeof e.value){var t=this.control.minlength,r=this.control.maxlength;null!==t&&e.value.length<t&&e.errors.push(this.msg_string_tooshort(e.value)),null!==r&&e.value.length>r&&e.errors.push(this.msg_string_toolong(e.value))}else e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null}}]),StringField}();_defineProperty(R,"classdoc","Holds the value of a string field of a record (and related information)");var U=function(e){_inherits(EmailField,R);var t=_createSuper(EmailField);function EmailField(){return _classCallCheck(this,EmailField),t.apply(this,arguments)}return _createClass(EmailField,[{key:"_validate",value:function _validate(e){if("string"==typeof e.value&&e.value.length>0){/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i.test(e.value)||e.errors.push(this.msg_email_format(e.value))}_get(_getPrototypeOf(EmailField.prototype),"_validate",this).call(this,e)}}]),EmailField}();_defineProperty(U,"classdoc","Holds the value of a string/email field of a record (and related information)");var N=function(e){_inherits(URLField,R);var t=_createSuper(URLField);function URLField(){return _classCallCheck(this,URLField),t.apply(this,arguments)}return _createClass(URLField,[{key:"_validate",value:function _validate(e){if("string"==typeof e.value&&e.value.length>0){var t=null;try{t=new URL(e.value)}catch(t){e.errors.push(this.msg_url_format(e.value))}null!==t&&"http:"!==t.protocol&&"https:"!==t.protocol&&e.errors.push(this.msg_url_format(e.value))}_get(_getPrototypeOf(URLField.prototype),"_validate",this).call(this,e)}}]),URLField}();_defineProperty(N,"classdoc","Holds the value of a string/url field of a record (and related information)");var B=function(e){_inherits(TelField,R);var t=_createSuper(TelField);function TelField(){return _classCallCheck(this,TelField),t.apply(this,arguments)}return _createClass(TelField,[{key:"_validate",value:function _validate(e){if("string"==typeof e.value&&e.value.length>0){/^\\+?[0-9 /()-]+$/.test(e.value)||e.errors.push(this.msg_tel_format(e.value))}_get(_getPrototypeOf(TelField.prototype),"_validate",this).call(this,e)}}]),TelField}();_defineProperty(B,"classdoc","Holds the value of a string/tel field of a record (and related information)");var q=function(e){_inherits(TextAreaField,R);var t=_createSuper(TextAreaField);function TextAreaField(){return _classCallCheck(this,TextAreaField),t.apply(this,arguments)}return TextAreaField}();_defineProperty(q,"classdoc","Holds the value of a string/textarea field of a record (and related information)");var j=function(e){_inherits(HTMLField,R);var t=_createSuper(HTMLField);function HTMLField(){return _classCallCheck(this,HTMLField),t.apply(this,arguments)}return HTMLField}();_defineProperty(j,"classdoc","Holds the value of a string/html field of a record (and related information)");var V=function(e){_inherits(GeoField,T);var t=_createSuper(GeoField);function GeoField(){return _classCallCheck(this,GeoField),t.apply(this,arguments)}return _createClass(GeoField,[{key:"_validate",value:function _validate(e){null===e.value||""===e.value?(this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null):e.value instanceof Ge||(e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null)}}]),GeoField}();_defineProperty(V,"classdoc","Holds the value of a geo field of a record (and related information)");var E=function(e){_inherits(FileField,T);var t=_createSuper(FileField);function FileField(){return _classCallCheck(this,FileField),t.apply(this,arguments)}return _createClass(FileField,[{key:"_validate",value:function _validate(e){null===e.value||""===e.value?(this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null):e.value instanceof Ee||(e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null)}}]),FileField}();_defineProperty(E,"classdoc","Holds the value of a file field of a record (and related information)");var G=function(e){_inherits(FileSignatureField,E);var t=_createSuper(FileSignatureField);function FileSignatureField(){return _classCallCheck(this,FileSignatureField),t.apply(this,arguments)}return _createClass(FileSignatureField,[{key:"_validate",value:function _validate(e){_get(_getPrototypeOf(FileSignatureField.prototype),"_validate",this).call(this,e)}}]),FileSignatureField}();_defineProperty(G,"classdoc","Holds the value of a file/signature field of a record (and related information)");var Y=function(e){_inherits(DateFieldBase,T);var t=_createSuper(DateFieldBase);function DateFieldBase(){return _classCallCheck(this,DateFieldBase),t.apply(this,arguments)}return _createClass(DateFieldBase,[{key:"_validate",value:function _validate(e){if(null===e.value||""===e.value)this.control.required&&e.errors.push(this.msg_field_required(e.value)),e.value=null;else if(e.value instanceof Date)e.value=this._convert(new Date(e.value.getTime()));else if("string"==typeof e.value){var t=null;10===e.value.length?t=new Date(e.value+"T00:00:00"):16===e.value.length?t=new Date(e.value+":00"):19===e.value.length&&(t=new Date(e.value)),null===t||Number.isNaN(t.getYear())?e.errors.push(this.msg_date_format(e.value)):e.value=this._convert(t)}else e.errors.push(this.msg_field_wrong_type(e.value)),e.value=null}}]),DateFieldBase}();_defineProperty(Y,"classdoc","Holds the value of a date field of a record (and related information)");var z=function(t){_inherits(DateField,Y);var r=_createSuper(DateField);function DateField(){return _classCallCheck(this,DateField),r.apply(this,arguments)}return _createClass(DateField,[{key:"_convert",value:function _convert(t){return new e.Date_(t.getFullYear(),t.getMonth()+1,t.getDate())}}]),DateField}();_defineProperty(z,"classdoc","Holds the value of a date/date field of a record (and related information)");var W=function(e){_inherits(DatetimeMinuteField,Y);var t=_createSuper(DatetimeMinuteField);function DatetimeMinuteField(){return _classCallCheck(this,DatetimeMinuteField),t.apply(this,arguments)}return _createClass(DatetimeMinuteField,[{key:"_convert",value:function _convert(e){return e.setSeconds(0),e.setMilliseconds(0),e}}]),DatetimeMinuteField}();_defineProperty(W,"classdoc","Holds the value of a date/datetimeminute field of a record (and related information)");var J=function(e){_inherits(DatetimeSecondField,Y);var t=_createSuper(DatetimeSecondField);function DatetimeSecondField(){return _classCallCheck(this,DatetimeSecondField),t.apply(this,arguments)}return _createClass(DatetimeSecondField,[{key:"_convert",value:function _convert(e){return e.setMilliseconds(0),e}}]),DatetimeSecondField}();_defineProperty(J,"classdoc","Holds the value of a date/datetimesecond field of a record (and related information)");var K=function(e){_inherits(LookupFieldBase,T);var t=_createSuper(LookupFieldBase);function LookupFieldBase(){return _classCallCheck(this,LookupFieldBase),t.apply(this,arguments)}return _createClass(LookupFieldBase,[{key:"lookupdata",get:function get(){return null!==this._lookupdate?this._lookupdate:this.control.lookupdata},set:function set(e){this._lookupdate=e}},{key:"_find_lookupitem",value:function _find_lookupitem(e){var t=e.value;if("string"==typeof t){if(null===this.lookupdata)return;var r=this.lookupdata.get(t);if(void 0===r)if(this.control.autoexpandable){var o,l=_createForOfIteratorHelper(this.lookupdata.values());try{for(l.s();!(o=l.n()).done;){var n=o.value;if(t===n.label)return void(e.value=n)}}catch(e){l.e(e)}finally{l.f()}}else e.errors.push(this.msg_lookup_unknownkey(t)),e.value=null;else e.value=r}else if(t instanceof Re){this.control.lookupdata.get(t.key)!==t&&(e.errors.push(this.msg_lookup_wrongitem(t)),e.value=null)}else e.errors.push(this.msg_field_wrong_type(t)),e.value=null}}]),LookupFieldBase}();_defineProperty(K,"classdoc","Base type of LookupField and MultipleLookupField");var $=function(e){_inherits(LookupField,K);var t=_createSuper(LookupField);function LookupField(){return _classCallCheck(this,LookupField),t.apply(this,arguments)}return _createClass(LookupField,[{key:"_validate",value:function _validate(e){var t=e.value;null===t||""===t||this.control.nonekey===t?(this.control.required&&e.errors.push(this.msg_field_required(t)),e.value=null):this._find_lookupitem(e)}}]),LookupField}();_defineProperty($,"classdoc","Holds the value of a lookup field of a record (and related information)");var Z=function(e){_inherits(MultipleLookupField,K);var t=_createSuper(MultipleLookupField);function MultipleLookupField(){return _classCallCheck(this,MultipleLookupField),t.apply(this,arguments)}return _createClass(MultipleLookupField,[{key:"_validate",value:function _validate(e){var t=e.value,r="[object Array]"===Object.prototype.toString.call(t);if(null===t||""===t||this.control.nonekey===t||r&&0===t.length)this.control.required&&e.errors.push(this.msg_field_required(t)),e.value=[];else if(r){var o,l=[],n=_createForOfIteratorHelper(t);try{for(n.s();!(o=n.n()).done;){var a={value:o.value,errors:[]};this._find_lookupitem(a),a.errors.length>0?e.errors=[].concat(_toConsumableArray(e.errors),_toConsumableArray(a.errors)):l.push(a.value)}}catch(e){n.e(e)}finally{n.f()}e.value=l}else this._find_lookupitem(e),e.errors.length>0?e.value=[]:e.value=[e.value]}}]),MultipleLookupField}();_defineProperty(Z,"classdoc","Holds the value of a multiple lookup field of a record (and related information)");var Q=function(e){_inherits(AppLookupFieldBase,T);var t=_createSuper(AppLookupFieldBase);function AppLookupFieldBase(){return _classCallCheck(this,AppLookupFieldBase),t.apply(this,arguments)}return _createClass(AppLookupFieldBase,[{key:"lookupdata",get:function get(){return null!==this._lookupdate?this._lookupdate:null!==this.control.lookup_app.records?this.control.lookup_app.records:new Map},set:function set(e){this._lookupdate=e}},{key:"_find_record",value:function _find_record(e){var t=e.value;if("string"==typeof t){var r=this.lookupdata.get(t);void 0===r?(e.errors.push(this.msg_applookup_unknownkey(t)),e.value=null):e.value=r}else t instanceof O?t.app!==this.control.lookup_app&&(e.errors.push(this.msg_applookup_wrongrecord(t)),e.value=null):(e.errors.push(this.msg_field_wrong_type(t)),e.value=null)}}]),AppLookupFieldBase}();_defineProperty(Q,"classdoc","Base type of AppLookupField and MultipleAppLookupField");var X=function(e){_inherits(AppLookupField,Q);var t=_createSuper(AppLookupField);function AppLookupField(){return _classCallCheck(this,AppLookupField),t.apply(this,arguments)}return _createClass(AppLookupField,[{key:"_validate",value:function _validate(e){this._find_record(e)}}]),AppLookupField}();_defineProperty(X,"classdoc","Holds the value of a applookup field of a record (and related information)");var ee=function(e){_inherits(MultipleAppLookupField,Q);var t=_createSuper(MultipleAppLookupField);function MultipleAppLookupField(){return _classCallCheck(this,MultipleAppLookupField),t.apply(this,arguments)}return _createClass(MultipleAppLookupField,[{key:"_validate",value:function _validate(e){var t=e.value,r="[object Array]"===Object.prototype.toString.call(t);if(null===t||""===t||this.control.nonekey===t||r&&0===t.length)this.control.required&&e.errors.push(this.msg_field_required(t)),e.value=[];else if(r){var o,l=[],n=_createForOfIteratorHelper(t);try{for(n.s();!(o=n.n()).done;){var a={value:o.value,errors:[]};this._find_record(a),a.errors.length>0?e.errors=[].concat(_toConsumableArray(e.errors),_toConsumableArray(a.errors)):l.push(a.value)}}catch(e){n.e(e)}finally{n.f()}e.value=l}else this._find_record(e),e.errors.length>0?e.value=[]:e.value=[e.value]}}]),MultipleAppLookupField}();_defineProperty(ee,"classdoc","Holds the value of a multiple applookup field of a record (and related information)");var te=function(t){_inherits(Control,A);var r=_createSuper(Control);function Control(){return _classCallCheck(this,Control),r.apply(this,arguments)}return _createClass(Control,[{key:e.symbols.repr,value:function value(){return"<"+this.constructor.name+" id="+e._repr(this.id)+" identifier="+e._repr(this.identifier)+">"}},{key:"globals",get:function get(){return this.app.globals}},{key:"fulltype",get:function get(){return this.subtype?this.type+"/"+this.subtype:this.type}},{key:"label",get:function get(){var e=this._view_control();if(null===e)return this._label;var t=e.label;return null===t?this._label:t}},{key:"label",set:function set(e){this._label=e}},{key:"default",get:function get(){return null}},{key:"top",get:function get(){var e=this._view_control();return null!==e?e.top:null}},{key:"left",get:function get(){var e=this._view_control();return null!==e?e.left:null}},{key:"width",get:function get(){var e=this._view_control();return null!==e?e.width:null}},{key:"height",get:function get(){var e=this._view_control();return null!==e?e.height:null}},{key:"liveupdate",get:function get(){var e=this._view_control();return null!==e&&e.liveupdate}},{key:"tabindex",get:function get(){var e=this._view_control();return null!==e?e.tabindex:null}},{key:"required",get:function get(){var e=this._view_control();return null!==e&&e.required}},{key:"mode",get:function get(){var e=this._view_control();return null!==e?e.mode:"edit"}},{key:"labelpos",get:function get(){var e=this._view_control();return null!==e?e.labelpos:"left"}},{key:"labelwidth",get:function get(){var e=this._view_control();return null!==e?e.labelwidth:null}},{key:"autoalign",get:function get(){var e=this._view_control();return null===e||e.autoalign}},{key:"in_active_view",get:function get(){return null!==this._view_control()}},{key:"_view_control",value:function _view_control(){if(null===this.app._active_view)return null;var e=this.app._active_view.controls.get(this.identifier);return null!=e?e:null}},{key:"_logsearch",value:function _logsearch(e,t){}},{key:"search",value:function search(e,t){return!1}}]),Control}();te.prototype.type=null,te.prototype.subtype=null,te.prototype._ul4onattrs=["identifier","fieldname","app","_label","priority","order","ininsertprocedure","inupdateprocedure"],te.prototype._ul4attrs=new Set(["id","identifier","fieldname","app","priority","order","ininsertprocedure","inupdateprocedure","fulltype","label","top","left","width","height","liveupdate","tabindex","required","mode","labelpos","autoalign","in_active_view"]);var re=function(e){_inherits(BoolControl,te);var t=_createSuper(BoolControl);function BoolControl(){return _classCallCheck(this,BoolControl),t.apply(this,arguments)}return _createClass(BoolControl,[{key:"search",value:function search(e,t){return this._logsearch(e,t),"equals"===t.operator&&t.value===e}}]),BoolControl}();_defineProperty(re,"classdoc","A LivingApps boolean field (type 'bool')"),re.prototype.type="bool",re.prototype.fieldtype=I;var oe=function(e){_inherits(IntControl,te);var t=_createSuper(IntControl);function IntControl(){return _classCallCheck(this,IntControl),t.apply(this,arguments)}return _createClass(IntControl,[{key:"search",value:function search(e,t){return this._logsearch(e,t),"equals"===t.operator&&t.value===e}}]),IntControl}();_defineProperty(oe,"classdoc","A LivingApps integer field (type 'int')"),oe.prototype.type="int",oe.prototype.fieldtype=D;var le=function(e){_inherits(PlaceholderControl,te);var t=_createSuper(PlaceholderControl);function PlaceholderControl(){return _classCallCheck(this,PlaceholderControl),t.apply(this,arguments)}return _createClass(PlaceholderControl,[{key:"placeholder",get:function get(){var e=this._view_control();return null===e?null:e.placeholder}}]),PlaceholderControl}();_defineProperty(le,"classdoc","A LivingApps multiplelookup field (type 'multiplelookup/select')"),le.prototype._ul4attrs=new Set([].concat(_toConsumableArray(te.prototype._ul4attrs),["placeholder"]));var ne=function(e){_inherits(NumberControl,le);var t=_createSuper(NumberControl);function NumberControl(){return _classCallCheck(this,NumberControl),t.apply(this,arguments)}return _createClass(NumberControl,[{key:"search",value:function search(e,t){return this._logsearch(e,t),"equals"===t.operator?t.value===e:"range"===t.operator&&(null!==e&&((null===t.minvalue||t.minvalue<=e)&&(null===t.maxvalue||e<t.maxvalue)))}}]),NumberControl}();_defineProperty(ne,"classdoc","A LivingApps number field (type 'number')"),ne.prototype.type="number",ne.prototype.fieldtype=H;var ae=function(t){_inherits(StringControl,le);var r=_createSuper(StringControl);function StringControl(){return _classCallCheck(this,StringControl),r.apply(this,arguments)}return _createClass(StringControl,[{key:"_user_placeholder",value:function _user_placeholder(t,r){if(null===r)return null;switch(r){case"{gender}":return null!==t?t.gender:null;case"{title}":return null!==t?t.title:null;case"{firstname}":return null!==t?t.firstname:null;case"{surname}":return null!==t?t.surname:null;case"{account}":return null!==t?t.email:null;case"{streetname}":return null!==t?t.streetname:null;case"{streetnumber}":return null!==t?t.streetnumber:null;case"{street}":return null===t?null:null===t.street?t.streetnumber:null===t.streetnumber?t.street:t.street+" "+t.streetnumber;case"{zip}":return null!==t?t.zip:null;case"{phone}":return null!==t?t.phone:null;case"{fax}":return null!==t?t.fax:null;case"{company}":return null!==t?t.company:null;case"{city}":return null!==t?t.city:null;case"{summary}":return null!==t?t.summary:null;case"{interests}":return null!==t?t.interests:null;case"{personal_website}":return null!==t?t.personal_website:null;case"{company_website}":return null!==t?t.company_website:null;case"{position}":return null!==t?t.position:null;case"{department}":return null!==t?t.department:null;case"{today}":return e.today();default:return r}}},{key:"default",get:function get(){var e=this._view_control();return null===e?null:this._user_placeholder(this.app.globals.user,e.default)}},{key:"minlength",get:function get(){var e=this._view_control();if(null===e)return 0;var t=e.minlength;return null===t||t<0?0:t}},{key:"maxlength",get:function get(){var e=this._view_control();if(null===e)return 4e3;var t=e.maxlength;return null===t||t<0||t>4e3?4e3:t}},{key:"search",value:function search(e,t){return this._logsearch(e,t),"equals"===t.operator?t.value===e:"contains"===t.operator?null===t.value||null===e?t.value===e:e.toLowerCase().indexOf(t.value.toLowerCase())>=0:void 0}}]),StringControl}();ae.prototype.type="string";var ie=function(e){_inherits(TextControl,ae);var t=_createSuper(TextControl);function TextControl(){return _classCallCheck(this,TextControl),t.apply(this,arguments)}return TextControl}();_defineProperty(ie,"classdoc","A LivingApps text field (type 'string/text')"),ie.prototype.subtype="text",ie.prototype.fieldtype=R;var ue=function(e){_inherits(EmailControl,ae);var t=_createSuper(EmailControl);function EmailControl(){return _classCallCheck(this,EmailControl),t.apply(this,arguments)}return EmailControl}();_defineProperty(ue,"classdoc","A LivingApps email field (type 'string/email')"),ue.prototype.subtype="email",ue.prototype.fieldtype=U;var se=function(e){_inherits(URLControl,ae);var t=_createSuper(URLControl);function URLControl(){return _classCallCheck(this,URLControl),t.apply(this,arguments)}return URLControl}();_defineProperty(se,"classdoc","A LivingApps URL field (type 'string/url')"),se.prototype.subtype="url",se.prototype.fieldtype=N;var pe=function(e){_inherits(TelControl,ae);var t=_createSuper(TelControl);function TelControl(){return _classCallCheck(this,TelControl),t.apply(this,arguments)}return TelControl}();_defineProperty(pe,"classdoc","A LivingApps phone number field (type 'string/tel')"),pe.prototype.subtype="tel",pe.prototype.fieldtype=B;var ce=function(e){_inherits(TextAreaControl,ae);var t=_createSuper(TextAreaControl);function TextAreaControl(){return _classCallCheck(this,TextAreaControl),t.apply(this,arguments)}return _createClass(TextAreaControl,[{key:"maxlength",get:function get(){var e=this._view_control();if(null===e)return null;if(null!==this.encrypted)return null;var t=e.maxlength;return t<0?null:t}}]),TextAreaControl}();_defineProperty(ce,"classdoc","A LivingApps textarea field (type 'string/textarea')"),ce.prototype.subtype="textarea",ce.prototype.fieldtype=q,ce.prototype._ul4onattrs=[].concat(_toConsumableArray(ae.prototype._ul4onattrs),["encrypted"]),ce.prototype._ul4attrs=new Set([].concat(_toConsumableArray(ae.prototype._ul4attrs),["encrypted"]));var de=function(e){_inherits(HTMLControl,ae);var t=_createSuper(HTMLControl);function HTMLControl(){return _classCallCheck(this,HTMLControl),t.apply(this,arguments)}return HTMLControl}();_defineProperty(de,"classdoc","A LivingApps HTML field (type 'string/html')"),de.prototype.subtype="html",de.prototype.fieldtype=j;var _e=function(t){_inherits(DateControl,le);var r=_createSuper(DateControl);function DateControl(){return _classCallCheck(this,DateControl),r.apply(this,arguments)}return _createClass(DateControl,[{key:"default",get:function get(){var t=this._view_control();return null===t?null:"{today}"===t.default?e.today():null}},{key:"formatstring",value:function formatstring(e){return"de"===(e=e||this.app.language)?"%d.%m.%Y":"%m/%d/%Y"}},{key:"search",value:function search(t,r){this._logsearch(t,r);var o=r.value;return"[object Date]"==Object.prototype.toString.call(o)&&(o=e._format(o,this.formatstring(),this.app.language)),null!==t&&(t=e._format(t,this.formatstring(),this.app.language)),"equals"===r.operator?o===t:"contains"===r.operator&&(null===o||null===t?o===t:t.toLowerCase().indexOf(o.toLowerCase())>=0)}}]),DateControl}();_defineProperty(_e,"classdoc","A LivingApps date field (type 'date/date')"),_e.prototype.type="date",_e.prototype.subtype="date",_e.prototype.fieldtype=z;var he=function(e){_inherits(DatetimeMinuteControl,_e);var t=_createSuper(DatetimeMinuteControl);function DatetimeMinuteControl(){return _classCallCheck(this,DatetimeMinuteControl),t.apply(this,arguments)}return _createClass(DatetimeMinuteControl,[{key:"default",get:function get(){var e=this._view_control();if(null===e)return null;if("{today}"===e.default){var t=new Date;return t.setSeconds(0),t.setMilliseconds(0),t}return null}},{key:"formatstring",value:function formatstring(e){return"de"===(e=e||this.app.language)?"%d.%m.%Y %H:%M":"%m/%d/%Y %H:%M"}}]),DatetimeMinuteControl}();_defineProperty(he,"classdoc","A LivingApps date field (type 'date/datetimeminute')"),he.prototype.subtype="datetimeminute",he.prototype.fieldtype=W;var fe=function(e){_inherits(DatetimeSecondControl,_e);var t=_createSuper(DatetimeSecondControl);function DatetimeSecondControl(){return _classCallCheck(this,DatetimeSecondControl),t.apply(this,arguments)}return _createClass(DatetimeSecondControl,[{key:"default",get:function get(){var e=this._view_control();if(null===e)return null;if("{today}"===e.default){var t=new Date;return t.setMilliseconds(0),t}return null}},{key:"formatstring",value:function formatstring(e){return"de"===(e=e||this.app.language)?"%d.%m.%Y %H:%M:%S":"%m/%d/%Y %H:%M:%S"}}]),DatetimeSecondControl}();_defineProperty(fe,"classdoc","A LivingApps date field (type 'date/datetimesecond')"),fe.prototype.subtype="datetimesecond",fe.prototype.fieldtype=J;var ye=function(e){_inherits(LookupControl,te);var t=_createSuper(LookupControl);function LookupControl(){return _classCallCheck(this,LookupControl),t.apply(this,arguments)}return _createClass(LookupControl,[{key:"default",get:function get(){var e,t=this._view_control();return null===t?null:null!==(e=this.lookupdata.get(t))&&void 0!==e?e:null}},{key:"autoexpandable",get:function get(){var e=this._view_control();return null!==e&&e.autoexpandable}},{key:"nonekey",get:function get(){var e=this._view_control();return null===e?null:e.lookupnonekey}},{key:"nonelabel",get:function get(){var e=this._view_control();return null===e?null:e.lookupnonelabel}},{key:"search",value:function search(e,t){return"equals"===t.operator&&(null===e?null===t.value:e.key===t.value)}}]),LookupControl}();ye.prototype.type="lookup",ye.prototype.fieldtype=$,ye.prototype._ul4onattrs=[].concat(_toConsumableArray(te.prototype._ul4onattrs),["lookupdata"]),ye.prototype._ul4attrs=new Set([].concat(_toConsumableArray(te.prototype._ul4attrs),["lookupdata"]));var ve=function(e){_inherits(LookupSelectControl,ye);var t=_createSuper(LookupSelectControl);function LookupSelectControl(){return _classCallCheck(this,LookupSelectControl),t.apply(this,arguments)}return LookupSelectControl}();_defineProperty(ve,"classdoc","A LivingApps lookup field (type 'lookup/select')"),ve.prototype.subtype="select";var me=function(e){_inherits(LookupRadioControl,ye);var t=_createSuper(LookupRadioControl);function LookupRadioControl(){return _classCallCheck(this,LookupRadioControl),t.apply(this,arguments)}return LookupRadioControl}();_defineProperty(me,"classdoc","A LivingApps lookup field (type 'lookup/radio')"),me.prototype.subtype="radio";var ke=function(e){_inherits(LookupChoiceControl,ye);var t=_createSuper(LookupChoiceControl);function LookupChoiceControl(){return _classCallCheck(this,LookupChoiceControl),t.apply(this,arguments)}return LookupChoiceControl}();_defineProperty(ke,"classdoc","A LivingApps lookup field (type 'lookup/choice')"),ke.prototype.subtype="choice";var ge=function(e){_inherits(AppLookupControl,te);var t=_createSuper(AppLookupControl);function AppLookupControl(){return _classCallCheck(this,AppLookupControl),t.apply(this,arguments)}return _createClass(AppLookupControl,[{key:"search",value:function search(e,t){return null===e||null===t.value?e===t.value:e.search(t)}}]),AppLookupControl}();ge.prototype.type="applookup",ge.prototype.fieldtype=X,ge.prototype._ul4onattrs=[].concat(_toConsumableArray(te.prototype._ul4onattrs),["lookup_app","lookup_controls","local_master_control","local_detail_controls","remote_master_control"]),ge.prototype._ul4attrs=new Set([].concat(_toConsumableArray(te.prototype._ul4attrs),["lookup_app","lookup_controls","local_master_control","local_detail_controls","remote_master_control"]));var Ce=function(e){_inherits(AppLookupSelectControl,ge);var t=_createSuper(AppLookupSelectControl);function AppLookupSelectControl(){return _classCallCheck(this,AppLookupSelectControl),t.apply(this,arguments)}return AppLookupSelectControl}();_defineProperty(Ce,"classdoc","A LivingApps applookup field (type 'applookup/select')"),Ce.prototype.subtype="select";var be=function(e){_inherits(AppLookupRadioControl,ge);var t=_createSuper(AppLookupRadioControl);function AppLookupRadioControl(){return _classCallCheck(this,AppLookupRadioControl),t.apply(this,arguments)}return AppLookupRadioControl}();_defineProperty(be,"classdoc","A LivingApps applookup field (type 'applookup/radio')"),be.prototype.subtype="radio";var Ae=function(e){_inherits(AppLookupChoiceControl,ge);var t=_createSuper(AppLookupChoiceControl);function AppLookupChoiceControl(){return _classCallCheck(this,AppLookupChoiceControl),t.apply(this,arguments)}return AppLookupChoiceControl}();_defineProperty(Ae,"classdoc","A LivingApps applookup field (type 'applookup/choice')"),Ae.prototype.subtype="choice";var Le=function(e){_inherits(MultipleLookupControl,ye);var t=_createSuper(MultipleLookupControl);function MultipleLookupControl(){return _classCallCheck(this,MultipleLookupControl),t.apply(this,arguments)}return _createClass(MultipleLookupControl,[{key:"default",get:function get(){var e=this._view_control();if(null===e)return null;var t=this.lookupdata.get(e);return void 0!==t?[t]:[]}},{key:"search",value:function search(e,t){if("equals"===t.operator){var r,o=_createForOfIteratorHelper(e);try{for(o.s();!(r=o.n()).done;){if(r.value.key===t.value)return!0}}catch(e){o.e(e)}finally{o.f()}return!1}return!1}}]),MultipleLookupControl}();Le.prototype.subtype="multiplelookup",Le.prototype.fieldtype=Z;var we=function(e){_inherits(MultipleLookupSelectControl,Le);var t=_createSuper(MultipleLookupSelectControl);function MultipleLookupSelectControl(){return _classCallCheck(this,MultipleLookupSelectControl),t.apply(this,arguments)}return MultipleLookupSelectControl}();_defineProperty(we,"classdoc","A LivingApps multiplelookup field (type 'multiplelookup/select')"),we.prototype.subtype="select";var Se=function(e){_inherits(MultipleLookupCheckboxControl,Le);var t=_createSuper(MultipleLookupCheckboxControl);function MultipleLookupCheckboxControl(){return _classCallCheck(this,MultipleLookupCheckboxControl),t.apply(this,arguments)}return MultipleLookupCheckboxControl}();_defineProperty(Se,"classdoc","A LivingApps multiplelookup field (type 'multiplelookup/checkbox')"),Se.prototype.subtype="checkbox";var Fe=function(e){_inherits(MultipleLookupChoiceControl,Le);var t=_createSuper(MultipleLookupChoiceControl);function MultipleLookupChoiceControl(){return _classCallCheck(this,MultipleLookupChoiceControl),t.apply(this,arguments)}return MultipleLookupChoiceControl}();_defineProperty(Fe,"classdoc","A LivingApps multiplelookup field (type 'multiplelookup/choice')"),Fe.prototype.subtype="choice";var Pe=function(e){_inherits(MultipleAppLookupControl,ge);var t=_createSuper(MultipleAppLookupControl);function MultipleAppLookupControl(){return _classCallCheck(this,MultipleAppLookupControl),t.apply(this,arguments)}return _createClass(MultipleAppLookupControl,[{key:"search",value:function search(e,t){if("equals"===t.operator){if(null===t.value)return 0===e.length;var r,o=_createForOfIteratorHelper(e);try{for(o.s();!(r=o.n()).done;){if(r.value.search(t.value))return!0}}catch(e){o.e(e)}finally{o.f()}return!1}return!1}}]),MultipleAppLookupControl}();Pe.prototype.type="multipleapplookup",Pe.prototype.fieldtype=ee;var Me=function(e){_inherits(MultipleAppLookupSelectControl,Pe);var t=_createSuper(MultipleAppLookupSelectControl);function MultipleAppLookupSelectControl(){return _classCallCheck(this,MultipleAppLookupSelectControl),t.apply(this,arguments)}return MultipleAppLookupSelectControl}();_defineProperty(Me,"classdoc","A LivingApps multiple applookup field (type 'multipleapplookup/select')"),Me.prototype.subtype="select";var xe=function(e){_inherits(MultipleAppLookupCheckboxControl,Pe);var t=_createSuper(MultipleAppLookupCheckboxControl);function MultipleAppLookupCheckboxControl(){return _classCallCheck(this,MultipleAppLookupCheckboxControl),t.apply(this,arguments)}return MultipleAppLookupCheckboxControl}();_defineProperty(xe,"classdoc","A LivingApps multiple applookup field (type 'multipleapplookup/checkbox')"),xe.prototype.subtype="checkbox";var Oe=function(e){_inherits(MultipleAppLookupChoiceControl,Pe);var t=_createSuper(MultipleAppLookupChoiceControl);function MultipleAppLookupChoiceControl(){return _classCallCheck(this,MultipleAppLookupChoiceControl),t.apply(this,arguments)}return MultipleAppLookupChoiceControl}();_defineProperty(Oe,"classdoc","A LivingApps multiple applookup field (type 'multipleapplookup/choice')"),Oe.prototype.subtype="choice";var Te=function(e){_inherits(GeoControl,te);var t=_createSuper(GeoControl);function GeoControl(){return _classCallCheck(this,GeoControl),t.apply(this,arguments)}return GeoControl}();_defineProperty(Te,"classdoc","A LivingApps geo field (type 'geo')"),Te.prototype.type="geo",Te.prototype.fieldtype=V;var Ie=function(e){_inherits(FileControl,te);var t=_createSuper(FileControl);function FileControl(){return _classCallCheck(this,FileControl),t.apply(this,arguments)}return FileControl}();_defineProperty(Ie,"classdoc","A LivingApps upload field (type 'file')"),Ie.prototype.type="file",Ie.prototype.fieldtype=E;var De=function(e){_inherits(FileSignatureControl,Ie);var t=_createSuper(FileSignatureControl);function FileSignatureControl(){return _classCallCheck(this,FileSignatureControl),t.apply(this,arguments)}return FileSignatureControl}();_defineProperty(De,"classdoc","A LivingApps signature image field (type 'file/signature')"),De.prototype.subtype="signature",De.prototype.fieldtype=G;var He=function(e){_inherits(ButtonControl,te);var t=_createSuper(ButtonControl);function ButtonControl(){return _classCallCheck(this,ButtonControl),t.apply(this,arguments)}return ButtonControl}();He.prototype.type="button",d=e.symbols.repr;var Re=function(t){_inherits(LookupItem,A);var r=_createSuper(LookupItem);function LookupItem(){return _classCallCheck(this,LookupItem),r.apply(this,arguments)}return _createClass(LookupItem,[{key:"label",get:function get(){if(null===this.control)return this._label;var e=this._view_lookupitem();if(null===e)return this._label;var t=e.label;return null===t?this._label:t}},{key:"visible",get:function get(){if(null===this.control)return!0;var e=this._view_lookupitem();return null===e||e.visible}},{key:"_view_lookupitem",value:function _view_lookupitem(){var e=this.control.identifier,t=this.control.app.active_view;if(null!==t&&null!==t.controls){var r=t.controls.get(e);if(void 0!==r&&void 0!==r.lookupdata&&null!==r.lookupdata){var o=r.lookupdata.get(this.key);if(void 0!==o)return o}}return null}},{key:d,value:function value(){var t="<LookupItem key="+e._repr(this.key)+" label="+e._repr(this.label);return this.visible||(t+="visible=False"),t+">"}}]),LookupItem}();_defineProperty(Re,"classdoc","An option in a lookup control/field"),Re.prototype._ul4onattrs=["control","key","_label"],Re.prototype._ul4attrs=new Set(["id","control","key","label"]),_=e.symbols.repr;var Ue=function(t){_inherits(ViewLookupItem,A);var r=_createSuper(ViewLookupItem);function ViewLookupItem(){return _classCallCheck(this,ViewLookupItem),r.apply(this,arguments)}return _createClass(ViewLookupItem,[{key:_,value:function value(){var t="<ViewLookupItem key="+e._repr(this.key)+" label="+e._repr(this.label);return this.visible||(t+=" visible=False"),t+">"}}]),ViewLookupItem}();_defineProperty(Ue,"classdoc","View specific information about a lookup item"),Ue.prototype._ul4onattrs=["key","label","visible"],Ue.prototype._ul4attrs=new Set(["key","label","visible"]),h=e.symbols.repr;var Ne=function(t){_inherits(LayoutControl,A);var r=_createSuper(LayoutControl);function LayoutControl(){return _classCallCheck(this,LayoutControl),r.apply(this,arguments)}return _createClass(LayoutControl,[{key:h,value:function value(){return"<"+this.constructor.name+" id="+e._repr(this.id)+" identifier="+e._repr(this.identifier)+">"}}]),LayoutControl}();_defineProperty(Ne,"classdoc","A decoration in an input form"),Ne.prototype._ul4onattrs=["label","identifier","view","top","left","width","height"],Ne.prototype._ul4attrs=new Set(["id","label","identifier","view","top","left","width","height"]);var Be=function(e){_inherits(HTMLLayoutControl,Ne);var t=_createSuper(HTMLLayoutControl);function HTMLLayoutControl(){return _classCallCheck(this,HTMLLayoutControl),t.apply(this,arguments)}return HTMLLayoutControl}();_defineProperty(Be,"classdoc","An HTML decoration in an input form"),Be.prototype._ul4onattrs=[].concat(_toConsumableArray(Ne.prototype._ul4onattrs),["value"]),Be.prototype._ul4attrs=new Set([Ne.prototype._ul4attrs,"value"]);var qe=function(e){_inherits(ImageLayoutControl,Ne);var t=_createSuper(ImageLayoutControl);function ImageLayoutControl(){return _classCallCheck(this,ImageLayoutControl),t.apply(this,arguments)}return ImageLayoutControl}();_defineProperty(qe,"classdoc","An image decoration in an input form"),qe.prototype._ul4onattrs=[].concat(_toConsumableArray(Ne.prototype._ul4onattrs),["original","scaled"]),qe.prototype._ul4attrs=new Set([Ne.prototype._ul4attrs,"original","scaled"]);var je=function(e){_inherits(ViewControl,A);var t=_createSuper(ViewControl);function ViewControl(){return _classCallCheck(this,ViewControl),t.apply(this,arguments)}return _createClass(ViewControl,[{key:"mode",get:function get(){return this._mode?"display":"edit"}}]),ViewControl}();_defineProperty(je,"classdoc","Contains view specific information aboutn a control"),je.prototype._ul4onattrs=["view","control","top","left","width","height","liveupdate","default","tabindex","minlength","maxlength","required","placeholder","_mode","labelpos","lookupnonekey","lookupnonelabel","label","autoalign","labelwidth","lookupdata","autoexpandable"],je.prototype._ul4attrs=new Set(["id","view","control","top","left","width","height","liveupdate","default","tabindex","minlength","maxlength","required","placeholder","mode","labelpos","lookupnonekey","lookupnonelabel","label","autoalign","labelwidth","lookupdata","autoexpandable"]),f=e.symbols.repr;var Ve=function(t){_inherits(User,A);var r=_createSuper(User);function User(){return _classCallCheck(this,User),r.apply(this,arguments)}return _createClass(User,[{key:f,value:function value(){return"<User id="+e._repr(this.id)+" firstname="+e._repr(this.firstname)+" surname="+e._repr(this.surname)+" email="+e._repr(this.email)+">"}}]),User}();_defineProperty(Ve,"classdoc","A LivingApps user/account"),Ve.prototype._ul4onattrs=["_id","gender","title","firstname","surname","initials","email","streetname","streetnumber","zip","city","phone","fax","lang","avatarsmall","avatarlarge","summary","interests","personalwebsite","companywebsite","company","position","department","keyviews"],Ve.prototype._ul4attrs=new Set(["id","_id","gender","title","firstname","surname","initials","email","streetname","streetnumber","zip","city","phone","fax","lang","avatarsmall","avatarlarge","summary","interests","personalwebsite","companywebsite","company","position","department","keyviews"]),y=e.symbols.repr;var Ee=function(t){_inherits(File,A);var r=_createSuper(File);function File(){return _classCallCheck(this,File),r.apply(this,arguments)}return _createClass(File,[{key:y,value:function value(){return"<File id="+e._repr(this.id)+" url="+e._repr(this.url)+" filename="+e._repr(this.filename)+">"}}]),File}();_defineProperty(Ee,"classdoc","An uploaded file"),Ee.prototype._ul4onattrs=["url","filename","mimetype","width","height","internalid","createdat","size"],Ee.prototype._ul4attrs=new Set(["id","url","filename","mimetype","width","height","size","createdat"]),v=e.symbols.repr;var Ge=function(t){_inherits(Geo,A);var r=_createSuper(Geo);function Geo(e,t,o){var l;return _classCallCheck(this,Geo),(l=r.call(this,null)).lat=e,l.long=t,l.info=o,l}return _createClass(Geo,[{key:v,value:function value(){return"<Geo lat="+e._repr(this.lat)+" long="+e._repr(this.long)+" info="+e._repr(this.info)+">"}}]),Geo}();_defineProperty(Ge,"classdoc","Geographical coordinates and location information"),Ge.prototype._ul4onattrs=["lat","long","info"],Ge.prototype._ul4attrs=new Set(["lat","long","info"]);var Ye=function(t){_inherits(Attachment,A);var r=_createSuper(Attachment);function Attachment(){return _classCallCheck(this,Attachment),r.apply(this,arguments)}return _createClass(Attachment,[{key:e.symbols.repr,value:function value(){return"<"+this.constructor.name+" id="+e._repr(this.id)+" label="+e._repr(this.label)+">"}}]),Attachment}();Ye.prototype._ul4onattrs=["record","label","active"],Ye.prototype._ul4attrs=new Set(["id","record","label","active"]);var ze=function(e){_inherits(NoteAttachment,Ye);var t=_createSuper(NoteAttachment);function NoteAttachment(){return _classCallCheck(this,NoteAttachment),t.apply(this,arguments)}return NoteAttachment}();_defineProperty(ze,"classdoc","A note attachment of a record"),ze.prototype.type="noteattachment",ze.prototype._ul4onattrs=[].concat(_toConsumableArray(Ye.prototype._ul4onattrs),["value"]),ze.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Ye.prototype._ul4onattrs),["value"]));var We=function(e){_inherits(URLAttachment,Ye);var t=_createSuper(URLAttachment);function URLAttachment(){return _classCallCheck(this,URLAttachment),t.apply(this,arguments)}return URLAttachment}();_defineProperty(We,"classdoc","A URL attachment of a record"),We.prototype.type="urlattachment",We.prototype._ul4onattrs=[].concat(_toConsumableArray(Ye.prototype._ul4onattrs),["value"]),We.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Ye.prototype._ul4onattrs),["value"]));var Je=function(e){_inherits(FileAttachment,Ye);var t=_createSuper(FileAttachment);function FileAttachment(){return _classCallCheck(this,FileAttachment),t.apply(this,arguments)}return FileAttachment}();_defineProperty(Je,"classdoc","A file attachment of a record"),Je.prototype.type="fileattachment",Je.prototype._ul4onattrs=[].concat(_toConsumableArray(Ye.prototype._ul4onattrs),["value"]),Je.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Ye.prototype._ul4onattrs),["value"]));var Ke=function(e){_inherits(ImageAttachment,Ye);var t=_createSuper(ImageAttachment);function ImageAttachment(){return _classCallCheck(this,ImageAttachment),t.apply(this,arguments)}return ImageAttachment}();_defineProperty(Ke,"classdoc","An image attachment of a record"),Ke.prototype.type="imageattachment",Ke.prototype._ul4onattrs=[].concat(_toConsumableArray(Ye.prototype._ul4onattrs),["original","thumb","small","medium","large"]),Ke.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Ye.prototype._ul4onattrs),["original","thumb","small","medium","large"]));var $e=function(t){_inherits(JSONAttachment,Ye);var r=_createSuper(JSONAttachment);function JSONAttachment(){return _classCallCheck(this,JSONAttachment),r.apply(this,arguments)}return _createClass(JSONAttachment,[{key:"_dumpUL4ONAttr",value:function _dumpUL4ONAttr(t){return"value"===t?e._asjson(this.value):this[t]}},{key:"_loadUL4ONAttr",value:function _loadUL4ONAttr(t,r){"value"===t?this.value=e._fromjson(r):this[t]=r}}]),JSONAttachment}();_defineProperty($e,"classdoc","A JSON attachment of a record"),$e.prototype.type="jsonattachment",$e.prototype._ul4onattrs=[].concat(_toConsumableArray(Ye.prototype._ul4onattrs),["value"]),$e.prototype._ul4attrs=new Set([].concat(_toConsumableArray(Ye.prototype._ul4onattrs),["value"])),m=e.symbols.repr;var Ze=function(t){_inherits(Installation,A);var r=_createSuper(Installation);function Installation(){return _classCallCheck(this,Installation),r.apply(this,arguments)}return _createClass(Installation,[{key:m,value:function value(){return"<Installation id="+e._repr(this.id)+" name="+e._repr(this.name)+">"}}]),Installation}();_defineProperty(Ze,"classdoc","The installation that created an app"),Ze.prototype._ul4onattrs=["name"],Ze.prototype._ul4attrs=new Set(["id","name"]),k=e.symbols.repr;var Qe=function(t){_inherits(Category,A);var r=_createSuper(Category);function Category(){return _classCallCheck(this,Category),r.apply(this,arguments)}return _createClass(Category,[{key:k,value:function value(){for(var t=[],r=this;null!==r;)t.splice(0,0,r.identifier),r=r.parent;return"<Category id="+e._repr(this.id)+" identifierpath="+e._repr(t.join("/"))+NaN+e._repr(this.name)+">"}}]),Category}();_defineProperty(Qe,"classdoc","A navigation category"),Qe.prototype._ul4onattrs=["identifier","name","order","parent","children","apps"],Qe.prototype._ul4attrs=new Set(["id","identifier","name","order","parent","children","apps"]),g=e.symbols.repr;var Xe=function(t){_inherits(KeyView,A);var r=_createSuper(KeyView);function KeyView(){return _classCallCheck(this,KeyView),r.apply(this,arguments)}return _createClass(KeyView,[{key:g,value:function value(){return"<KeyView id="+e._repr(this.id)+" identifier="+e._repr(this.identifier)+">"}}]),KeyView}();_defineProperty(Xe,"classdoc","Object granting access to a view template"),Xe.prototype._ul4onattrs=["identifier","name","key","user"],Xe.prototype._ul4attrs=new Set(["id","identifier","name","key","user"]),C=e.symbols.repr;var et=function(t){_inherits(AppParameter,A);var r=_createSuper(AppParameter);function AppParameter(){return _classCallCheck(this,AppParameter),r.apply(this,arguments)}return _createClass(AppParameter,[{key:C,value:function value(){return"<AppParameter id="+e._repr(this.id)+" identifier="+e._repr(this.identifier)+">"}}]),AppParameter}();_defineProperty(et,"classdoc","A parameter of a LivingApps application"),et.prototype._ul4onattrs=["app","identifier","description","value"],et.prototype._ul4attrs=new Set(["id","app","identifier","description","value"]);for(var tt=0,rt=[w,S,P,M,x,O,re,oe,ne,ie,ue,se,pe,ce,_e,he,fe,ye,ve,me,ke,ge,Ce,be,Ae,Le,we,Se,Fe,Pe,Me,xe,Oe,Te,Ie,De,He,T,I,R,U,N,B,q,j,D,H,V,E,G,Y,z,W,J,K,$,Z,Q,X,ee,Re,Ue,Ne,Be,qe,je,Ve,Ee,Ge,ze,We,Je,Ke,$e,Ze,Qe,Xe,et];tt<rt.length;tt++){var ot=rt[tt];e.register("de.livinglogic.livingapi."+ot.name.toLowerCase(),ot)}export{P as App,Ae as AppLookupChoiceControl,ge as AppLookupControl,X as AppLookupField,Q as AppLookupFieldBase,be as AppLookupRadioControl,Ce as AppLookupSelectControl,et as AppParameter,Ye as Attachment,A as Base,re as BoolControl,I as BoolField,He as ButtonControl,Qe as Category,te as Control,x as DataSourceData,_e as DateControl,z as DateField,Y as DateFieldBase,he as DatetimeMinuteControl,W as DatetimeMinuteField,fe as DatetimeSecondControl,J as DatetimeSecondField,ue as EmailControl,U as EmailField,T as Field,Ee as File,Je as FileAttachment,Ie as FileControl,E as FileField,De as FileSignatureControl,G as FileSignatureField,S as FlashMessage,Ge as Geo,Te as GeoControl,V as GeoField,w as Globals,de as HTMLControl,j as HTMLField,Be as HTMLLayoutControl,L as Handler,Ke as ImageAttachment,qe as ImageLayoutControl,Ze as Installation,oe as IntControl,D as IntField,$e as JSONAttachment,Xe as KeyView,Ne as LayoutControl,ke as LookupChoiceControl,ye as LookupControl,$ as LookupField,K as LookupFieldBase,Re as LookupItem,me as LookupRadioControl,ve as LookupSelectControl,xe as MultipleAppLookupCheckboxControl,Oe as MultipleAppLookupChoiceControl,Pe as MultipleAppLookupControl,ee as MultipleAppLookupField,Me as MultipleAppLookupSelectControl,Se as MultipleLookupCheckboxControl,Fe as MultipleLookupChoiceControl,Le as MultipleLookupControl,Z as MultipleLookupField,we as MultipleLookupSelectControl,ze as NoteAttachment,ne as NumberControl,H as NumberField,O as Record,ae as StringControl,R as StringField,pe as TelControl,B as TelField,ce as TextAreaControl,q as TextAreaField,ie as TextControl,We as URLAttachment,se as URLControl,N as URLField,Ve as User,M as View,je as ViewControl,Ue as ViewLookupItem,b as version};
|
|
1824
2
|
//# sourceMappingURL=livingapi.js.map
|