@azrico/webobject 1.4.128 → 1.4.130

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.
@@ -19,20 +19,20 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
19
19
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20
20
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
21
21
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
22
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
23
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
24
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
22
26
  function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
23
27
  function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
28
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
24
29
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
30
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
27
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
28
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
30
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
31
31
  function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
32
32
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
33
33
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
34
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
35
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
34
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
35
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
36
36
  function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
37
37
  var _setSubProperty = /*#__PURE__*/new WeakSet();
38
38
  var _getSubProperty = /*#__PURE__*/new WeakSet();
@@ -41,14 +41,13 @@ var _setDefaultProperty = /*#__PURE__*/new WeakSet();
41
41
  var _setDefaultPropertyNow = /*#__PURE__*/new WeakSet();
42
42
  var _getProperty = /*#__PURE__*/new WeakSet();
43
43
  var _setSaveResultObject = /*#__PURE__*/new WeakSet();
44
- var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _clearRefreshFunction, _setRefreshFunction, _addRefreshFunction, _runRefreshFunction, _setAll, _setSubValue, _pushValue, _pushValues, _notifyChanged, _reset, _resetAll, _event_run, _event_add, _setTemp2, _delete_cache) {
44
+ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject) {
45
45
  _inherits(SimpleObject, _MapableObject);
46
- var _super = _createSuper(SimpleObject);
47
46
  function SimpleObject() {
48
47
  var _this;
49
48
  var is_readonly = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
50
49
  _classCallCheck(this, SimpleObject);
51
- _this = _super.call(this);
50
+ _this = _callSuper(this, SimpleObject);
52
51
  /**
53
52
  * set the response of last save from site
54
53
  * @param toObj
@@ -130,15 +129,15 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
130
129
  }
131
130
  }, {
132
131
  key: "setValue",
133
- value:
132
+ value: (
134
133
  /**
135
134
  * set value
136
135
  * @param key
137
136
  * @param value
138
137
  * @return true if changed , false otherwise
139
138
  */
140
- function setValue(_x, _x2) {
141
- return (_setValue = _setValue || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(key, value) {
139
+ function () {
140
+ var _setValue = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(key, value) {
142
141
  var sendChanges,
143
142
  isValueChanged,
144
143
  oldval,
@@ -187,12 +186,16 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
187
186
  return _context.stop();
188
187
  }
189
188
  }, _callee, this, [[8,, 11, 16]]);
190
- }))).apply(this, arguments);
191
- }
189
+ }));
190
+ function setValue(_x, _x2) {
191
+ return _setValue.apply(this, arguments);
192
+ }
193
+ return setValue;
194
+ }())
192
195
  }, {
193
196
  key: "setTemp",
194
- value: function setTemp(_x3, _x4) {
195
- return (_setTemp = _setTemp || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(key, value) {
197
+ value: function () {
198
+ var _setTemp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(key, value) {
196
199
  var sendChanges,
197
200
  isValueChanged,
198
201
  _args2 = arguments;
@@ -217,12 +220,16 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
217
220
  return _context2.stop();
218
221
  }
219
222
  }, _callee2, this);
220
- }))).apply(this, arguments);
221
- } /* ---------------------------- refresh functions --------------------------- */
223
+ }));
224
+ function setTemp(_x3, _x4) {
225
+ return _setTemp.apply(this, arguments);
226
+ }
227
+ return setTemp;
228
+ }() /* ---------------------------- refresh functions --------------------------- */
222
229
  }, {
223
230
  key: "clearRefreshFunction",
224
- value: function clearRefreshFunction() {
225
- return (_clearRefreshFunction = _clearRefreshFunction || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
231
+ value: (function () {
232
+ var _clearRefreshFunction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
226
233
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
227
234
  while (1) switch (_context3.prev = _context3.next) {
228
235
  case 0:
@@ -232,12 +239,16 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
232
239
  return _context3.stop();
233
240
  }
234
241
  }, _callee3, this);
235
- }))).apply(this, arguments);
236
- }
242
+ }));
243
+ function clearRefreshFunction() {
244
+ return _clearRefreshFunction.apply(this, arguments);
245
+ }
246
+ return clearRefreshFunction;
247
+ }())
237
248
  }, {
238
249
  key: "setRefreshFunction",
239
- value: function setRefreshFunction(_x5) {
240
- return (_setRefreshFunction = _setRefreshFunction || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(new_fnc) {
250
+ value: function () {
251
+ var _setRefreshFunction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(new_fnc) {
241
252
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
242
253
  while (1) switch (_context4.prev = _context4.next) {
243
254
  case 0:
@@ -250,12 +261,16 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
250
261
  return _context4.stop();
251
262
  }
252
263
  }, _callee4, this);
253
- }))).apply(this, arguments);
254
- }
264
+ }));
265
+ function setRefreshFunction(_x5) {
266
+ return _setRefreshFunction.apply(this, arguments);
267
+ }
268
+ return setRefreshFunction;
269
+ }()
255
270
  }, {
256
271
  key: "addRefreshFunction",
257
- value: function addRefreshFunction(_x6, _x7) {
258
- return (_addRefreshFunction = _addRefreshFunction || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(key, new_fnc) {
272
+ value: function () {
273
+ var _addRefreshFunction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(key, new_fnc) {
259
274
  var oldFunctions;
260
275
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
261
276
  while (1) switch (_context5.prev = _context5.next) {
@@ -274,12 +289,16 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
274
289
  return _context5.stop();
275
290
  }
276
291
  }, _callee5, this);
277
- }))).apply(this, arguments);
278
- }
292
+ }));
293
+ function addRefreshFunction(_x6, _x7) {
294
+ return _addRefreshFunction.apply(this, arguments);
295
+ }
296
+ return addRefreshFunction;
297
+ }()
279
298
  }, {
280
299
  key: "runRefreshFunction",
281
- value: function runRefreshFunction() {
282
- return (_runRefreshFunction = _runRefreshFunction || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
300
+ value: function () {
301
+ var _runRefreshFunction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
283
302
  var oldFunctions,
284
303
  fncArray,
285
304
  _len,
@@ -320,8 +339,12 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
320
339
  return _context6.stop();
321
340
  }
322
341
  }, _callee6, this);
323
- }))).apply(this, arguments);
324
- }
342
+ }));
343
+ function runRefreshFunction() {
344
+ return _runRefreshFunction.apply(this, arguments);
345
+ }
346
+ return runRefreshFunction;
347
+ }()
325
348
  /* -------------------------------------------------------------------------- */
326
349
  /**
327
350
  * calls `setValue` function for all props of `setObj`
@@ -331,8 +354,8 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
331
354
  */
332
355
  }, {
333
356
  key: "setAll",
334
- value: function setAll(_x8) {
335
- return (_setAll = _setAll || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(setObj) {
357
+ value: (function () {
358
+ var _setAll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(setObj) {
336
359
  var changeablesOnly,
337
360
  finalRes,
338
361
  checkKeys,
@@ -371,14 +394,19 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
371
394
  return _context7.stop();
372
395
  }
373
396
  }, _callee7, this);
374
- }))).apply(this, arguments);
375
- }
397
+ }));
398
+ function setAll(_x8) {
399
+ return _setAll.apply(this, arguments);
400
+ }
401
+ return setAll;
402
+ }()
376
403
  /**
377
404
  * set value of a key only if the value is empty (null,undef,"")
378
405
  * @param key
379
406
  * @param value
380
407
  * @returns
381
408
  */
409
+ )
382
410
  }, {
383
411
  key: "setDefaultValue",
384
412
  value: function setDefaultValue(key, value) {
@@ -386,7 +414,7 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
386
414
  }
387
415
  }, {
388
416
  key: "setSubValue",
389
- value:
417
+ value: (
390
418
  /**
391
419
  * set key of subObject
392
420
  * @param key
@@ -394,8 +422,8 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
394
422
  * @param subvalue
395
423
  * @return true if changed , false otherwise
396
424
  */
397
- function setSubValue(_x9, _x10, _x11) {
398
- return (_setSubValue = _setSubValue || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(key, objKey, subvalue) {
425
+ function () {
426
+ var _setSubValue = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(key, objKey, subvalue) {
399
427
  var sendChanges,
400
428
  isValueChanged,
401
429
  subval,
@@ -444,11 +472,15 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
444
472
  return _context8.stop();
445
473
  }
446
474
  }, _callee8, this, [[8,, 11, 16]]);
447
- }))).apply(this, arguments);
448
- }
475
+ }));
476
+ function setSubValue(_x9, _x10, _x11) {
477
+ return _setSubValue.apply(this, arguments);
478
+ }
479
+ return setSubValue;
480
+ }())
449
481
  }, {
450
482
  key: "pushValue",
451
- value:
483
+ value: (
452
484
  /**
453
485
  * Push a single value to array property
454
486
  * @param key
@@ -456,8 +488,8 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
456
488
  * @param sendChanges
457
489
  * @returns
458
490
  */
459
- function pushValue(_x12, _x13) {
460
- return (_pushValue = _pushValue || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(key, value) {
491
+ function () {
492
+ var _pushValue = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(key, value) {
461
493
  var sendChanges,
462
494
  _args9 = arguments;
463
495
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
@@ -473,8 +505,12 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
473
505
  return _context9.stop();
474
506
  }
475
507
  }, _callee9, this);
476
- }))).apply(this, arguments);
477
- }
508
+ }));
509
+ function pushValue(_x12, _x13) {
510
+ return _pushValue.apply(this, arguments);
511
+ }
512
+ return pushValue;
513
+ }()
478
514
  /**
479
515
  * Push a list of values to array property
480
516
  * @param key
@@ -482,10 +518,11 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
482
518
  * @param sendChanges
483
519
  * @returns
484
520
  */
521
+ )
485
522
  }, {
486
523
  key: "pushValues",
487
- value: function pushValues(_x14, _x15) {
488
- return (_pushValues = _pushValues || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(key, values) {
524
+ value: (function () {
525
+ var _pushValues = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(key, values) {
489
526
  var sendChanges,
490
527
  tempArray,
491
528
  _args10 = arguments;
@@ -539,12 +576,16 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
539
576
  return _context10.stop();
540
577
  }
541
578
  }, _callee10, this);
542
- }))).apply(this, arguments);
543
- }
579
+ }));
580
+ function pushValues(_x14, _x15) {
581
+ return _pushValues.apply(this, arguments);
582
+ }
583
+ return pushValues;
584
+ }())
544
585
  }, {
545
586
  key: "notifyChanged",
546
- value: function notifyChanged(_x16, _x17, _x18, _x19) {
547
- return (_notifyChanged = _notifyChanged || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(type, key, value, subvalue) {
587
+ value: function () {
588
+ var _notifyChanged = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(type, key, value, subvalue) {
548
589
  var lc, manager_class;
549
590
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
550
591
  while (1) switch (_context11.prev = _context11.next) {
@@ -572,8 +613,12 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
572
613
  return _context11.stop();
573
614
  }
574
615
  }, _callee11, this);
575
- }))).apply(this, arguments);
576
- }
616
+ }));
617
+ function notifyChanged(_x16, _x17, _x18, _x19) {
618
+ return _notifyChanged.apply(this, arguments);
619
+ }
620
+ return notifyChanged;
621
+ }()
577
622
  /**
578
623
  * check if a key can be changed on an object
579
624
  * @param object the object we are checking
@@ -610,7 +655,7 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
610
655
  }
611
656
  }
612
657
  /**
613
- * apply changes for the given field
658
+ * apply changes for the given fields
614
659
  * @param key
615
660
  * @returns
616
661
  */
@@ -639,8 +684,8 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
639
684
  */
640
685
  }, {
641
686
  key: "reset",
642
- value: function reset(_x20) {
643
- return (_reset = _reset || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(key) {
687
+ value: (function () {
688
+ var _reset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(key) {
644
689
  var notifyChanged,
645
690
  _args12 = arguments;
646
691
  return _regeneratorRuntime().wrap(function _callee12$(_context12) {
@@ -656,17 +701,22 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
656
701
  return _context12.stop();
657
702
  }
658
703
  }, _callee12, this);
659
- }))).apply(this, arguments);
660
- }
704
+ }));
705
+ function reset(_x20) {
706
+ return _reset.apply(this, arguments);
707
+ }
708
+ return reset;
709
+ }()
661
710
  /**
662
711
  * reset all values back to their original
663
712
  * difference between this and clear_changes is that this function also calls on_change
664
713
  * @param key
665
714
  */
715
+ )
666
716
  }, {
667
717
  key: "resetAll",
668
- value: function resetAll() {
669
- return (_resetAll = _resetAll || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
718
+ value: (function () {
719
+ var _resetAll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
670
720
  var notifyChanged,
671
721
  fr,
672
722
  key,
@@ -703,13 +753,18 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
703
753
  return _context13.stop();
704
754
  }
705
755
  }, _callee13, this);
706
- }))).apply(this, arguments);
707
- }
756
+ }));
757
+ function resetAll() {
758
+ return _resetAll.apply(this, arguments);
759
+ }
760
+ return resetAll;
761
+ }()
708
762
  /**
709
763
  * clear and discard all changes
710
764
  * does not call any on_change functions
711
765
  * @returns
712
766
  */
767
+ )
713
768
  }, {
714
769
  key: "clear_changes",
715
770
  value: function clear_changes() {
@@ -870,12 +925,12 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
870
925
  }
871
926
  }, {
872
927
  key: "event_run",
873
- value:
928
+ value: (
874
929
  /* -------------------------------------------------------------------------- */
875
930
  /* Events */
876
931
  /* -------------------------------------------------------------------------- */
877
- function event_run(_x21) {
878
- return (_event_run = _event_run || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(eventName) {
932
+ function () {
933
+ var _event_run = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(eventName) {
879
934
  var _this$manager;
880
935
  var _len2,
881
936
  params,
@@ -903,8 +958,12 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
903
958
  return _context14.stop();
904
959
  }
905
960
  }, _callee14, this);
906
- }))).apply(this, arguments);
907
- }
961
+ }));
962
+ function event_run(_x21) {
963
+ return _event_run.apply(this, arguments);
964
+ }
965
+ return event_run;
966
+ }())
908
967
  }, {
909
968
  key: "event_use",
910
969
  value: function event_use(name, runEvent) {
@@ -927,8 +986,8 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
927
986
  }
928
987
  }, {
929
988
  key: "event_add",
930
- value: function event_add(_x22, _x23, _x24) {
931
- return (_event_add = _event_add || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(name, uname, runEvent) {
989
+ value: function () {
990
+ var _event_add = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(name, uname, runEvent) {
932
991
  var onlyOn,
933
992
  runOnce,
934
993
  _args15 = arguments;
@@ -951,8 +1010,12 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
951
1010
  return _context15.stop();
952
1011
  }
953
1012
  }, _callee15, this);
954
- }))).apply(this, arguments);
955
- }
1013
+ }));
1014
+ function event_add(_x22, _x23, _x24) {
1015
+ return _event_add.apply(this, arguments);
1016
+ }
1017
+ return event_add;
1018
+ }()
956
1019
  /* -------------------------------------------------------------------------- */
957
1020
  /* Original */
958
1021
  /* -------------------------------------------------------------------------- */
@@ -1290,8 +1353,8 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
1290
1353
  }
1291
1354
  }, {
1292
1355
  key: "setTemp",
1293
- value: function setTemp(_x25, _x26, _x27) {
1294
- return (_setTemp2 = _setTemp2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(obj, key, value) {
1356
+ value: (function () {
1357
+ var _setTemp2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(obj, key, value) {
1295
1358
  var sendChanges,
1296
1359
  _args16 = arguments;
1297
1360
  return _regeneratorRuntime().wrap(function _callee16$(_context16) {
@@ -1321,8 +1384,12 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
1321
1384
  return _context16.stop();
1322
1385
  }
1323
1386
  }, _callee16);
1324
- }))).apply(this, arguments);
1325
- }
1387
+ }));
1388
+ function setTemp(_x25, _x26, _x27) {
1389
+ return _setTemp2.apply(this, arguments);
1390
+ }
1391
+ return setTemp;
1392
+ }())
1326
1393
  }, {
1327
1394
  key: "factoryClear",
1328
1395
  value: function factoryClear(obj) {
@@ -1331,8 +1398,8 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
1331
1398
  }
1332
1399
  }, {
1333
1400
  key: "delete_cache",
1334
- value: function delete_cache(_x28) {
1335
- return (_delete_cache = _delete_cache || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(context) {
1401
+ value: function () {
1402
+ var _delete_cache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(context) {
1336
1403
  var cacheKey;
1337
1404
  return _regeneratorRuntime().wrap(function _callee17$(_context17) {
1338
1405
  while (1) switch (_context17.prev = _context17.next) {
@@ -1361,8 +1428,12 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
1361
1428
  return _context17.stop();
1362
1429
  }
1363
1430
  }, _callee17, this);
1364
- }))).apply(this, arguments);
1365
- }
1431
+ }));
1432
+ function delete_cache(_x28) {
1433
+ return _delete_cache.apply(this, arguments);
1434
+ }
1435
+ return delete_cache;
1436
+ }()
1366
1437
  }, {
1367
1438
  key: "get_canModify",
1368
1439
  value: function get_canModify(o) {
@@ -1380,7 +1451,6 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject, _setValue, _setTemp, _
1380
1451
  }]);
1381
1452
  return SimpleObject;
1382
1453
  }(_MapableObject2.MapableObject);
1383
- exports.SimpleObject = SimpleObject;
1384
1454
  function _setSubProperty2(key, subkey, value) {
1385
1455
  var subobj = _classPrivateMethodGet(this, _getProperty, _getProperty2).call(this, key);
1386
1456
  //@ts-ignore
@@ -1466,5 +1536,4 @@ _defineProperty(SimpleObject, "__importColumns", void 0);
1466
1536
  //these fields can be used when importing and checking if an item exists
1467
1537
  _defineProperty(SimpleObject, "__checkProperties", void 0);
1468
1538
  _defineProperty(SimpleObject, "__use_delta", true);
1469
- var _default = SimpleObject;
1470
- exports["default"] = _default;
1539
+ var _default = exports["default"] = SimpleObject;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.4.128",
3
+ "version": "1.4.130",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",
@@ -72,13 +72,13 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "@azrico/convert": "^1.0.5",
75
- "@azrico/event": "^1.2.17",
75
+ "@azrico/event": "^1.2.25",
76
76
  "@azrico/global": "^1.3.69",
77
77
  "@azrico/math": "^1.0.5",
78
78
  "@azrico/object": "^1.4.101",
79
79
  "@azrico/string": "^1.2.91",
80
- "@azrico/types": "^1.0.5",
81
- "@azrico/uid": "^1.0.7"
80
+ "@azrico/types": "^1.0.8",
81
+ "@azrico/uid": "^1.0.8"
82
82
  },
83
83
  "packageManager": "yarn@3.5.0"
84
84
  }